11export { resolveEffectiveModelFallbacks } from "../../agents/agent-scope.js" ;
22export { resolveBootstrapWarningSignaturesSeen } from "../../agents/bootstrap-budget.js" ;
3- export { getCliSessionId , runCliAgent } from "../../agents/cli-runner.runtime.js" ;
43export { resolveFastModeState } from "../../agents/fast-mode.js" ;
54export { resolveNestedAgentLane } from "../../agents/lanes.js" ;
65export { LiveSessionModelSwitchError } from "../../agents/live-model-switch.js" ;
@@ -15,3 +14,26 @@ export { normalizeVerboseLevel } from "../../auto-reply/thinking.js";
1514export { resolveSessionTranscriptPath } from "../../config/sessions.js" ;
1615export { registerAgentRunContext } from "../../infra/agent-events.js" ;
1716export { logWarn } from "../../logger.js" ;
17+
18+ let cronExecutionCliRuntimePromise :
19+ | Promise < typeof import ( "./run-execution-cli.runtime.js" ) >
20+ | undefined ;
21+
22+ async function loadCronExecutionCliRuntime ( ) {
23+ cronExecutionCliRuntimePromise ??= import ( "./run-execution-cli.runtime.js" ) ;
24+ return await cronExecutionCliRuntimePromise ;
25+ }
26+
27+ export async function getCliSessionId (
28+ ...args : Parameters < typeof import ( "../../agents/cli-session.js" ) . getCliSessionId >
29+ ) : Promise < ReturnType < typeof import ( "../../agents/cli-session.js" ) . getCliSessionId > > {
30+ const runtime = await loadCronExecutionCliRuntime ( ) ;
31+ return runtime . getCliSessionId ( ...args ) ;
32+ }
33+
34+ export async function runCliAgent (
35+ ...args : Parameters < typeof import ( "../../agents/cli-runner.js" ) . runCliAgent >
36+ ) : ReturnType < typeof import ( "../../agents/cli-runner.js" ) . runCliAgent > {
37+ const runtime = await loadCronExecutionCliRuntime ( ) ;
38+ return runtime . runCliAgent ( ...args ) ;
39+ }
0 commit comments