diff --git a/src/agent-runner.test.ts b/src/agent-runner.test.ts index b7744cf..7b8ad05 100644 --- a/src/agent-runner.test.ts +++ b/src/agent-runner.test.ts @@ -105,10 +105,7 @@ vi.mock('child_process', async () => { }; }); -import { - runAgentProcess, - AgentOutput, -} from './agent-runner.js'; +import { runAgentProcess, AgentOutput } from './agent-runner.js'; import * as agentRunnerEnvironment from './agent-runner-environment.js'; import type { RegisteredGroup } from './types.js'; @@ -681,5 +678,4 @@ OUROBOROS_LLM_BACKEND = "codex" expect.objectContaining({ newSessionId: 'stale-session' }), ); }); - }); diff --git a/src/index.ts b/src/index.ts index 9479238..7f1c169 100644 --- a/src/index.ts +++ b/src/index.ts @@ -71,7 +71,10 @@ import { Channel, NewMessage, RegisteredGroup } from './types.js'; import { logger } from './logger.js'; import { normalizeStoredSeqCursor } from './message-cursor.js'; import { initCodexTokenRotation } from './codex-token-rotation.js'; -import { hasAvailableClaudeToken, initTokenRotation } from './token-rotation.js'; +import { + hasAvailableClaudeToken, + initTokenRotation, +} from './token-rotation.js'; function isTerminalStatusMessage(text: string): boolean { const trimmed = text.trimStart(); diff --git a/src/message-agent-executor.test.ts b/src/message-agent-executor.test.ts index 2a815b6..240e139 100644 --- a/src/message-agent-executor.test.ts +++ b/src/message-agent-executor.test.ts @@ -1697,7 +1697,9 @@ describe('runAgentForGroup Claude rotation', () => { vi.mocked(agentRunner.runAgentProcess) .mockImplementationOnce(async (_group, input) => { expect(input.sessionId).toBe('stale-session-id'); - throw new Error('No conversation found with session ID: stale-session-id'); + throw new Error( + 'No conversation found with session ID: stale-session-id', + ); }) .mockImplementationOnce(async (_group, input, _onProcess, onOutput) => { expect(input.sessionId).toBeUndefined(); diff --git a/src/message-agent-executor.ts b/src/message-agent-executor.ts index 17bf68d..37ebe3b 100644 --- a/src/message-agent-executor.ts +++ b/src/message-agent-executor.ts @@ -480,7 +480,8 @@ export async function runAgentForGroup( sawVisibleOutput: false, sawSuccessNullResultWithoutOutput: false, }; - const attemptSessionId = provider === 'claude' ? currentSessionId : undefined; + const attemptSessionId = + provider === 'claude' ? currentSessionId : undefined; const wrappedOnOutput = onOutput ? async (output: AgentOutput) => { diff --git a/src/message-runtime.test.ts b/src/message-runtime.test.ts index 3f59290..048a022 100644 --- a/src/message-runtime.test.ts +++ b/src/message-runtime.test.ts @@ -1880,7 +1880,9 @@ describe('createMessageRuntime', () => { ]); vi.mocked(agentRunner.runAgentProcess).mockImplementation( async (_group, input, _onProcess, onOutput) => { - expect(input.prompt).toContain('paired_turn_outputs 에 저장된 reviewer 요약'); + expect(input.prompt).toContain( + 'paired_turn_outputs 에 저장된 reviewer 요약', + ); expect(input.prompt).not.toContain('리뷰어 디스코드 출력 원문'); await onOutput?.({ status: 'success', @@ -1925,7 +1927,10 @@ describe('createMessageRuntime', () => { expect(result).toBe(true); expect(agentRunner.runAgentProcess).toHaveBeenCalledTimes(1); - expect(channel.sendMessage).toHaveBeenCalledWith(chatJid, 'owner follow-up ok'); + expect(channel.sendMessage).toHaveBeenCalledWith( + chatJid, + 'owner follow-up ok', + ); }); it('reuses the shared arbiter prompt builder for pending arbiter turns', async () => {