Format retry transition refactor files
This commit is contained in:
@@ -1410,9 +1410,8 @@ describe('runAgentForGroup room memory', () => {
|
||||
expect(
|
||||
vi.mocked(db.insertPairedTurnOutput).mock.invocationCallOrder[0],
|
||||
).toBeLessThan(
|
||||
vi.mocked(
|
||||
pairedExecutionContext.completePairedExecutionContext,
|
||||
).mock.invocationCallOrder[0],
|
||||
vi.mocked(pairedExecutionContext.completePairedExecutionContext).mock
|
||||
.invocationCallOrder[0],
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -34,9 +34,7 @@ import {
|
||||
} from './paired-execution-context.js';
|
||||
import { resolveCodexFallbackHandoff } from './paired-turn-fallback.js';
|
||||
import { resolveExecutionTarget } from './message-runtime-rules.js';
|
||||
import {
|
||||
resolvePairedFollowUpQueueAction,
|
||||
} from './message-agent-executor-rules.js';
|
||||
import { resolvePairedFollowUpQueueAction } from './message-agent-executor-rules.js';
|
||||
import { buildRoomRoleContext } from './room-role-context.js';
|
||||
import { type AgentTriggerReason } from './agent-error-detection.js';
|
||||
import {
|
||||
|
||||
@@ -851,7 +851,10 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): {
|
||||
chatJid,
|
||||
getRecentChatMessages(chatJid, 20),
|
||||
),
|
||||
lastDeliveredMessages: labelPairedSenders(chatJid, missedMessages),
|
||||
lastDeliveredMessages: labelPairedSenders(
|
||||
chatJid,
|
||||
missedMessages,
|
||||
),
|
||||
resolveChannel,
|
||||
})
|
||||
: null;
|
||||
|
||||
@@ -141,10 +141,7 @@ export function transitionPairedTaskStatus(args: {
|
||||
currentStatus: PairedTaskStatus;
|
||||
nextStatus: PairedTaskStatus;
|
||||
updatedAt: string;
|
||||
patch?: Omit<
|
||||
Parameters<typeof updatePairedTask>[1],
|
||||
'status' | 'updated_at'
|
||||
>;
|
||||
patch?: Omit<Parameters<typeof updatePairedTask>[1], 'status' | 'updated_at'>;
|
||||
}): void {
|
||||
assertPairedTaskStatusTransition({
|
||||
currentStatus: args.currentStatus,
|
||||
|
||||
Reference in New Issue
Block a user