UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

11 lines (10 loc) • 411 B
//#region src/agents/bootstrap-mode.ts /** Resolve the bootstrap mode for one agent run. */ function resolveBootstrapMode(e) { if (!e.bootstrapPending) return "none"; if (e.runKind === "cron") return "none"; if (!e.isPrimaryRun || !e.isInteractiveUserFacing) return "none"; return e.hasBootstrapFileAccess && e.isCanonicalWorkspace ? "full" : "limited"; } //#endregion export { resolveBootstrapMode as t };