Continue runtime and scheduler cleanup

This commit is contained in:
ejclaw
2026-04-08 01:06:47 +09:00
parent e1837759c0
commit 8e8c771ab1
13 changed files with 525 additions and 384 deletions

View File

@@ -0,0 +1,29 @@
import type {
AgentType,
Channel,
PairedRoomRole,
RegisteredGroup,
} from './types.js';
export type ExecuteTurnFn = (args: {
group: RegisteredGroup;
prompt: string;
chatJid: string;
runId: string;
channel: Channel;
startSeq: number | null;
endSeq: number | null;
deliveryRole?: PairedRoomRole;
hasHumanMessage?: boolean;
forcedRole?: PairedRoomRole;
forcedAgentType?: AgentType;
}) => Promise<{
outputStatus: 'success' | 'error';
deliverySucceeded: boolean;
visiblePhase: unknown;
}>;
export type RoleToChannelMap = Record<
'owner' | 'reviewer' | 'arbiter',
Channel | null
>;