Format retry transition refactor files

This commit is contained in:
ejclaw
2026-04-07 02:50:08 +09:00
parent b8e8c9dabf
commit 58b20fad6c
5 changed files with 33 additions and 36 deletions

View File

@@ -1410,9 +1410,8 @@ describe('runAgentForGroup room memory', () => {
expect( expect(
vi.mocked(db.insertPairedTurnOutput).mock.invocationCallOrder[0], vi.mocked(db.insertPairedTurnOutput).mock.invocationCallOrder[0],
).toBeLessThan( ).toBeLessThan(
vi.mocked( vi.mocked(pairedExecutionContext.completePairedExecutionContext).mock
pairedExecutionContext.completePairedExecutionContext, .invocationCallOrder[0],
).mock.invocationCallOrder[0],
); );
}); });

View File

@@ -34,9 +34,7 @@ import {
} from './paired-execution-context.js'; } from './paired-execution-context.js';
import { resolveCodexFallbackHandoff } from './paired-turn-fallback.js'; import { resolveCodexFallbackHandoff } from './paired-turn-fallback.js';
import { resolveExecutionTarget } from './message-runtime-rules.js'; import { resolveExecutionTarget } from './message-runtime-rules.js';
import { import { resolvePairedFollowUpQueueAction } from './message-agent-executor-rules.js';
resolvePairedFollowUpQueueAction,
} from './message-agent-executor-rules.js';
import { buildRoomRoleContext } from './room-role-context.js'; import { buildRoomRoleContext } from './room-role-context.js';
import { type AgentTriggerReason } from './agent-error-detection.js'; import { type AgentTriggerReason } from './agent-error-detection.js';
import { import {

View File

@@ -851,7 +851,10 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): {
chatJid, chatJid,
getRecentChatMessages(chatJid, 20), getRecentChatMessages(chatJid, 20),
), ),
lastDeliveredMessages: labelPairedSenders(chatJid, missedMessages), lastDeliveredMessages: labelPairedSenders(
chatJid,
missedMessages,
),
resolveChannel, resolveChannel,
}) })
: null; : null;

View File

@@ -141,10 +141,7 @@ export function transitionPairedTaskStatus(args: {
currentStatus: PairedTaskStatus; currentStatus: PairedTaskStatus;
nextStatus: PairedTaskStatus; nextStatus: PairedTaskStatus;
updatedAt: string; updatedAt: string;
patch?: Omit< patch?: Omit<Parameters<typeof updatePairedTask>[1], 'status' | 'updated_at'>;
Parameters<typeof updatePairedTask>[1],
'status' | 'updated_at'
>;
}): void { }): void {
assertPairedTaskStatusTransition({ assertPairedTaskStatusTransition({
currentStatus: args.currentStatus, currentStatus: args.currentStatus,