diff --git a/src/agent-runner-environment.ts b/src/agent-runner-environment.ts index aed5f00..685f842 100644 --- a/src/agent-runner-environment.ts +++ b/src/agent-runner-environment.ts @@ -20,10 +20,7 @@ import { } from './platform-prompts.js'; import type { AgentType, RegisteredGroup } from './types.js'; -function writeCodexApiKeyAuth( - authPath: string, - openaiKey: string, -): void { +function writeCodexApiKeyAuth(authPath: string, openaiKey: string): void { fs.writeFileSync( authPath, JSON.stringify( diff --git a/src/group-queue.ts b/src/group-queue.ts index 1cd9597..323f681 100644 --- a/src/group-queue.ts +++ b/src/group-queue.ts @@ -621,7 +621,9 @@ export class GroupQueue { if (graceWaitMs > 0) { await Promise.race([ Promise.all( - activeProcesses.map(({ process }) => this.waitForProcessExit(process)), + activeProcesses.map(({ process }) => + this.waitForProcessExit(process), + ), ), new Promise((resolve) => setTimeout(resolve, graceWaitMs)), ]); diff --git a/src/message-agent-executor.ts b/src/message-agent-executor.ts index 56c4b8c..110d32b 100644 --- a/src/message-agent-executor.ts +++ b/src/message-agent-executor.ts @@ -74,9 +74,7 @@ function isClaudeUsageExhaustedMessage(text: string): boolean { function isClaudeAuthExpiredMessage(text: string): boolean { const normalized = text.trim().toLowerCase().replace(/\s+/g, ' '); - const looksLikeAuthFailure = normalized.startsWith( - 'failed to authenticate', - ); + const looksLikeAuthFailure = normalized.startsWith('failed to authenticate'); const hasExpiredTokenMarker = normalized.includes('oauth token has expired') || normalized.includes('authentication_error') || diff --git a/src/provider-fallback.test.ts b/src/provider-fallback.test.ts index 5e03f5d..d21a2c2 100644 --- a/src/provider-fallback.test.ts +++ b/src/provider-fallback.test.ts @@ -104,7 +104,9 @@ describe('provider fallback usage recovery', () => { it('treats terminated 401 auth failures as an auth-expired fallback trigger', () => { expect( - detectFallbackTrigger('Failed to authenticate. API Error: 401 terminated'), + detectFallbackTrigger( + 'Failed to authenticate. API Error: 401 terminated', + ), ).toEqual({ shouldFallback: true, reason: 'auth-expired', diff --git a/src/task-scheduler.ts b/src/task-scheduler.ts index 2cb6a80..7272296 100644 --- a/src/task-scheduler.ts +++ b/src/task-scheduler.ts @@ -94,9 +94,7 @@ function isClaudeUsageExhaustedMessage(text: string): boolean { function isClaudeAuthExpiredMessage(text: string): boolean { const normalized = text.trim().toLowerCase().replace(/\s+/g, ' '); - const looksLikeAuthFailure = normalized.startsWith( - 'failed to authenticate', - ); + const looksLikeAuthFailure = normalized.startsWith('failed to authenticate'); const hasExpiredTokenMarker = normalized.includes('oauth token has expired') || normalized.includes('authentication_error') ||