refactor: move troubleshoot-agent to agents directory
- Move troubleshoot-agent.ts to src/agents/ - Update import paths in dependent files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
* 4. Expected: Session deleted
|
||||
*/
|
||||
|
||||
import type { Env, TroubleshootSession } from './types';
|
||||
import { createLogger } from './utils/logger';
|
||||
import { executeSearchWeb, executeLookupDocs } from './tools/search-tool';
|
||||
import { TROUBLESHOOT_STATUS } from './constants';
|
||||
import type { Env, TroubleshootSession } from '../types';
|
||||
import { createLogger } from '../utils/logger';
|
||||
import { executeSearchWeb, executeLookupDocs } from '../tools/search-tool';
|
||||
import { TROUBLESHOOT_STATUS } from '../constants';
|
||||
|
||||
const logger = createLogger('troubleshoot-agent');
|
||||
|
||||
@@ -184,7 +184,7 @@ async function callTroubleshootExpertAI(
|
||||
throw new Error('OPENAI_API_KEY not configured');
|
||||
}
|
||||
|
||||
const { getOpenAIUrl } = await import('./utils/api-urls');
|
||||
const { getOpenAIUrl } = await import('../utils/api-urls');
|
||||
|
||||
// Build conversation history
|
||||
const conversationHistory = session.messages.map(m => ({
|
||||
@@ -7,7 +7,7 @@ import { metrics } from './utils/metrics';
|
||||
import { getOpenAIUrl } from './utils/api-urls';
|
||||
import { ERROR_MESSAGES } from './constants/messages';
|
||||
import { getServerSession, processServerConsultation } from './agents/server-agent';
|
||||
import { getTroubleshootSession, processTroubleshoot } from './troubleshoot-agent';
|
||||
import { getTroubleshootSession, processTroubleshoot } from './agents/troubleshoot-agent';
|
||||
import { sendMessage } from './telegram';
|
||||
|
||||
const logger = createLogger('openai');
|
||||
|
||||
@@ -35,7 +35,7 @@ export async function executeManageTroubleshoot(
|
||||
return '🚫 트러블슈팅 기능을 사용할 수 없습니다.';
|
||||
}
|
||||
|
||||
const { getTroubleshootSession, saveTroubleshootSession, deleteTroubleshootSession } = await import('../troubleshoot-agent');
|
||||
const { getTroubleshootSession, saveTroubleshootSession, deleteTroubleshootSession } = await import('../agents/troubleshoot-agent');
|
||||
|
||||
if (action === 'cancel') {
|
||||
await deleteTroubleshootSession(env.SESSION_KV, telegramUserId);
|
||||
|
||||
Reference in New Issue
Block a user