wednesdayai 0.4.12-dev.710 → 0.4.12-dev.711
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-turn-runner-CSJ7K-qH.js → agent-turn-runner-CzcuyJfX.js} +3 -3
- package/dist/{agent-turn-runner-BLs4Ze4E.js → agent-turn-runner-D20dK54z.js} +3 -3
- package/dist/{audio-preflight-du2uHs-4.js → audio-preflight-BaO74c_3.js} +5 -5
- package/dist/{audio-preflight-yuM9Q3qh.js → audio-preflight-ifCgpG3c.js} +5 -5
- package/dist/{audio-transcription-runner-FfIrRn4I.js → audio-transcription-runner-DSleiNVB.js} +1 -1
- package/dist/{audio-transcription-runner-CgPA8_eG.js → audio-transcription-runner-ipSQoPp8.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +12 -12
- package/dist/bundled/session-journal/handler.js +12 -12
- package/dist/bundled/session-memory/handler.js +12 -12
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-LXphB5pc.js → chrome-CNQX5WHQ.js} +8 -8
- package/dist/{chrome-BkJgMZjT.js → chrome-DTJprCGv.js} +8 -8
- package/dist/{command-queue-DucYxKKF.js → command-queue-BTAxEdto.js} +1 -1
- package/dist/{command-queue-pxXPODlc.js → command-queue-CmpLmuvI.js} +1 -1
- package/dist/{deliver-fwGuXC0n.js → deliver-CVWbwPkb.js} +1 -1
- package/dist/{deliver-C2LfK8gc.js → deliver-w75wDKKY.js} +1 -1
- package/dist/{diagnostic-BB6k_yiT.js → diagnostic-DI-K8155.js} +1 -1
- package/dist/{diagnostic-CAr_isBb.js → diagnostic-fsCzQqR5.js} +1 -1
- package/dist/extensionAPI.js +12 -12
- package/dist/llm-slug-generator.js +12 -12
- package/dist/{pi-embedded-Crcz2UcZ.js → pi-embedded-BcRvgwKi.js} +28 -28
- package/dist/{pi-embedded-Cc3lahlj.js → pi-embedded-DsDG-ETP.js} +28 -28
- package/dist/{pi-embedded-helpers-DVvJRC5S.js → pi-embedded-helpers-5JApWu7A.js} +3 -3
- package/dist/{pi-embedded-helpers-BeX1k1Wg.js → pi-embedded-helpers-B6OLZ8x-.js} +3 -3
- package/dist/{pi-embedded-utils-BoaQCwP7.js → pi-embedded-utils-kHMmP2Xh.js} +1 -1
- package/dist/{pi-embedded-utils-CshCmG-R.js → pi-embedded-utils-yppaAMWD.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-BLF4nZUv.js → agent-scope-BYp_CjdU.js} +2 -2
- package/dist/plugin-sdk/{agent-turn-execute-BHrvxgTJ.js → agent-turn-execute-Cjl_kBtQ.js} +12 -12
- package/dist/plugin-sdk/agent-turn-execute-DYtSZF3l.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-DhNGCN_q.js → agent-turn-runner-CDA8JPSH.js} +3 -3
- package/dist/plugin-sdk/{agent-turn-runner-YBWX_qXk.js → agent-turn-runner-CeC9JbVM.js} +6 -6
- package/dist/plugin-sdk/agent-turn-runner-P-MKFb_i.js +11 -0
- package/dist/plugin-sdk/{api-key-rotation-XDUKz2gd.js → api-key-rotation-CDNf_4cI.js} +2 -2
- package/dist/plugin-sdk/{artifacts-HAYpGlG1.js → artifacts-BMLMg3MG.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BVO3xBbT.js → audio-preflight-Bi8RI9zM.js} +5 -5
- package/dist/plugin-sdk/{audio-preflight-BS29OWk3.js → audio-preflight-BmKL6FNP.js} +2 -2
- package/dist/plugin-sdk/audio-preflight-DlGohKMs.js +28 -0
- package/dist/plugin-sdk/{audio-transcription-runner-DXiOiQMw.js → audio-transcription-runner-CGgNZVZv.js} +1 -1
- package/dist/plugin-sdk/{audio-transcription-runner-BNafitZj.js → audio-transcription-runner-TBjJv_mZ.js} +10 -10
- package/dist/plugin-sdk/{auth-profiles-CCJQoedi.js → auth-profiles-DHZjW8Vk.js} +5 -5
- package/dist/plugin-sdk/{channel-activity-BKwRzYJb.js → channel-activity-Dr4PYej7.js} +3 -3
- package/dist/plugin-sdk/{chrome-D0eLSqkP.js → chrome-BDy1zYAr.js} +4 -4
- package/dist/plugin-sdk/{chrome-DDIL8pIX.js → chrome-CT_6RvJg.js} +8 -8
- package/dist/plugin-sdk/{chunk-DI-5pBck.js → chunk-BTSnO1wn.js} +6 -6
- package/dist/plugin-sdk/{chunk-CDvvv9SU.js → chunk-DGQdf0JN.js} +3 -3
- package/dist/plugin-sdk/{command-detection-B3xgM_Na.js → command-detection-w_6bwXGh.js} +85 -85
- package/dist/plugin-sdk/{command-queue-BnJsJc_w.js → command-queue-CeaLVs8O.js} +8 -8
- package/dist/plugin-sdk/{command-queue-CHiQj9Ji.js → command-queue-DFSOdqCK.js} +1 -1
- package/dist/plugin-sdk/{command-queue-BnuzwTj2.js → command-queue-DH8k55DC.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-Do_g2It_.js → commands-registry-8sy0wsK_.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-DpLk11E7.js → commands-registry-N6f_lsxF.js} +2 -2
- package/dist/plugin-sdk/{config-CQNfmIC8.js → config-Biusjzx-.js} +7 -7
- package/dist/plugin-sdk/{deliver-L6eu6zyG.js → deliver-BgHA8c9F.js} +11 -11
- package/dist/plugin-sdk/deliver-DBCz1GqU.js +32 -0
- package/dist/plugin-sdk/{deliver-DZoYhDxC.js → deliver-DuDcszu1.js} +3 -3
- package/dist/plugin-sdk/{deliver-BD3gpFAY.js → deliver-_UyigkEK.js} +1 -1
- package/dist/plugin-sdk/{diagnostic-DfxuMWHd.js → diagnostic-Bni_8VyY.js} +7 -7
- package/dist/plugin-sdk/{diagnostic-C7lPoqyv.js → diagnostic-D6hSjxiv.js} +5 -5
- package/dist/plugin-sdk/{diagnostic-BhLorIrS.js → diagnostic-Dk57KVjE.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-CZT8FU1i.js → fetch-guard-C1a1KfEb.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-B0JgGdXa.js → fs-safe-CbZ6uRVv.js} +3 -3
- package/dist/plugin-sdk/{hook-runner-global-WRI53ibi.js → hook-runner-global-BvxlnAyu.js} +3 -3
- package/dist/plugin-sdk/{image-ops-kuILYHZv.js → image-ops-DY_SZfXk.js} +1 -1
- package/dist/plugin-sdk/index.js +54 -54
- package/dist/plugin-sdk/{ir-Bm7oqkwT.js → ir-BNohi6ZW.js} +5 -5
- package/dist/plugin-sdk/{local-roots-D-CHzVr1.js → local-roots-Bm7nDW20.js} +7 -7
- package/dist/plugin-sdk/{logger-BSK-0Yjx.js → logger-D6KsqbNW.js} +1 -1
- package/dist/plugin-sdk/{manager-D2jffdjH.js → manager-B_vK9MbM.js} +8 -8
- package/dist/plugin-sdk/manager-ByaW_O4Y.js +16 -0
- package/dist/plugin-sdk/{markdown-tables-DIWQQ2W1.js → markdown-tables-G4vK24xc.js} +2 -2
- package/dist/plugin-sdk/markdown-tables-J4hZ7eWU.js +10 -0
- package/dist/plugin-sdk/{outbound-attachment-CtKKNyms.js → outbound-attachment-Cw7T2Mrt.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-CHfCMaeX.js → path-alias-guards-CVybi_GQ.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BRymkO_1.js → pi-embedded-helpers-B_jgacW8.js} +11 -11
- package/dist/plugin-sdk/{pi-embedded-helpers-D74AHWBs.js → pi-embedded-helpers-CELD3Ns3.js} +3 -3
- package/dist/plugin-sdk/{pi-embedded-utils-DQaOun1y.js → pi-embedded-utils-AFQ-oCFM.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-utils-BHmc3RVS.js → pi-embedded-utils-DOXEm_H8.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-6BBajZds.js → pi-model-discovery-DWUrLRLg.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-4X7_2_nP.js → pi-model-discovery-DWw1ReX-.js} +6 -6
- package/dist/plugin-sdk/provider-dispatcher-Co_hyl4q.js +61 -0
- package/dist/plugin-sdk/{provider-dispatcher-B4-Qor7x.js → provider-dispatcher-D7HHFW68.js} +12 -12
- package/dist/plugin-sdk/provider-image-B_dJDOl5.js +22 -0
- package/dist/plugin-sdk/{provider-image-g3vmjlkZ.js → provider-image-Bumd1GBG.js} +4 -4
- package/dist/plugin-sdk/{provider-image-DBye3Ln5.js → provider-image-CEQrHWYz.js} +5 -5
- package/dist/plugin-sdk/{provider-image-Cy9HRMER.js → provider-image-CbZOYl0b.js} +1 -1
- package/dist/plugin-sdk/{proxy-DJ2nskkh.js → proxy-BWc9guJs.js} +1 -1
- package/dist/plugin-sdk/proxy-DwbYzxBy.js +7 -0
- package/dist/plugin-sdk/{proxy-fetch-CuQpjpkI.js → proxy-fetch-BYkGxQnh.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BJrhPMHJ.js → pw-ai-DQv6Xhce.js} +10 -10
- package/dist/plugin-sdk/{pw-ai-DlM8D_uP.js → pw-ai-hVucoF_I.js} +1 -1
- package/dist/plugin-sdk/{qmd-manager-DhW_frb3.js → qmd-manager-CpV0SFnY.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-NpBeKA8F.js → query-expansion-CwmHvvV_.js} +3 -3
- package/dist/plugin-sdk/{recorder-DdbAQ2HO.js → recorder-BXZMRSjO.js} +4 -4
- package/dist/plugin-sdk/{redact-CUjmZn2Y.js → redact-C88Ryyfs.js} +1 -1
- package/dist/plugin-sdk/replies-B9uDLFOE.js +25 -0
- package/dist/plugin-sdk/{replies-Dw3jvqpR.js → replies-l2hZAzbt.js} +4 -4
- package/dist/plugin-sdk/{reply-directives-BS8Ge06Z.js → reply-directives-BwxzQXmX.js} +2 -2
- package/dist/plugin-sdk/reply-prefix-BQMEQam1.js +7 -0
- package/dist/plugin-sdk/{reply-prefix-Dt1hESHJ.js → reply-prefix-qLQRxqrf.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-BpLuk-wC.js → resolve-route-50KoArP9.js} +4 -4
- package/dist/plugin-sdk/{resolve-route-DiQTL1qI.js → resolve-route-6v1HVvWk.js} +6 -6
- package/dist/plugin-sdk/{runs-Dzlj-BO5.js → runs-B3DB63tB.js} +5 -5
- package/dist/plugin-sdk/runs-BQhYekhr.js +25 -0
- package/dist/plugin-sdk/{runs-B4G4Txj3.js → runs-CPWQbljV.js} +3 -3
- package/dist/plugin-sdk/{runs-D6fAvItC.js → runs-CiohhBb8.js} +7 -7
- package/dist/plugin-sdk/{send-CpXGZgrS.js → send-BMSqETcU.js} +6 -6
- package/dist/plugin-sdk/{send-DHNKlQPv.js → send-C28pxKhC.js} +2 -2
- package/dist/plugin-sdk/send-CeWqZTK0.js +23 -0
- package/dist/plugin-sdk/{send-BDwTyH6I.js → send-Cv2CGnsK.js} +8 -8
- package/dist/plugin-sdk/{send-Ce2XBaKF.js → send-Cx6gHjnA.js} +6 -6
- package/dist/plugin-sdk/send-CzcKgBBf.js +25 -0
- package/dist/plugin-sdk/{send-Tg5PT6ci.js → send-DE9YP1gQ.js} +1 -1
- package/dist/plugin-sdk/{send-R0HB1-l-.js → send-DG4MQPPm.js} +13 -13
- package/dist/plugin-sdk/{send-CE_6VOiQ.js → send-DM6RpDCL.js} +7 -7
- package/dist/plugin-sdk/{send-GMYUhBtJ.js → send-DO0C4Uva.js} +19 -19
- package/dist/plugin-sdk/send-Dvna5ey-.js +27 -0
- package/dist/plugin-sdk/send-xPV0QIjh.js +24 -0
- package/dist/plugin-sdk/{session-meta-BU2WXD0N.js → session-meta-CiqJP0pO.js} +2 -2
- package/dist/plugin-sdk/session-meta-n4SCcAbJ.js +10 -0
- package/dist/plugin-sdk/skill-commands-BOV3NIbU.js +14 -0
- package/dist/plugin-sdk/{skill-commands-BYfWIPfV.js → skill-commands-CE_SkRQk.js} +5 -5
- package/dist/plugin-sdk/{skills-BuJjEYto.js → skills-CjW6uGTa.js} +6 -6
- package/dist/plugin-sdk/{ssrf-DiAz1Z_z.js → ssrf-BUCEDxp5.js} +2 -2
- package/dist/plugin-sdk/{store-Bl3Yjf_w.js → store-yBNTHg3N.js} +2 -2
- package/dist/plugin-sdk/{subagent-registry-Bqy1eaWs.js → subagent-registry-DxZN7H_j.js} +12 -12
- package/dist/plugin-sdk/subagent-registry-jIsL_HVh.js +61 -0
- package/dist/plugin-sdk/{subsystem-B2x33s9h.js → subsystem-CUUKL6Fr.js} +4 -4
- package/dist/plugin-sdk/{tables-CTmQQyfU.js → tables-DKYi6grj.js} +1 -1
- package/dist/plugin-sdk/testing.js +12 -12
- package/dist/plugin-sdk/{tokens-DxJSOoJn.js → tokens-ysZUkYZZ.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-Buouaxew.js → tool-loop-detection-LsvZ1dIY.js} +1 -1
- package/dist/plugin-sdk/{tools-eYgqnPUk.js → tools-CmHC6oYK.js} +32 -32
- package/dist/plugin-sdk/{user-run-recording-juCW_uQ-.js → user-run-recording-BMaK7jNR.js} +2 -2
- package/dist/plugin-sdk/user-run-recording-DiKcNdjn.js +11 -0
- package/dist/{provider-image-DKahfwcK.js → provider-image-B6rtzRjG.js} +1 -1
- package/dist/{provider-image-Bi2L9LWh.js → provider-image-Cb4z6zUu.js} +1 -1
- package/dist/{pw-ai-8155GQ_R.js → pw-ai-C-x3J1Kk.js} +1 -1
- package/dist/{pw-ai-pYtWxKPR.js → pw-ai-DziGw6Jy.js} +1 -1
- package/dist/{runs-CbUW3Ez6.js → runs-ifeon3f1.js} +3 -3
- package/dist/{runs-BauIdJqy.js → runs-ucQd8Fc-.js} +3 -3
- package/dist/{send-DGkCYk9Q.js → send-CZqH55k_.js} +1 -1
- package/dist/{send-Dd2SE0h0.js → send-TscXeVY8.js} +1 -1
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/elevenlabs/src/realtime-transcription-provider.ts +1 -1
- package/extensions/elevenlabs/src/streaming-speech-provider.ts +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/agent-turn-execute-C4MQxaT2.js +0 -61
- package/dist/plugin-sdk/agent-turn-runner-e_lJzDgA.js +0 -11
- package/dist/plugin-sdk/audio-preflight-DE04bi4M.js +0 -28
- package/dist/plugin-sdk/deliver-D4fWK65M.js +0 -32
- package/dist/plugin-sdk/manager-BlYRVNJI.js +0 -16
- package/dist/plugin-sdk/markdown-tables-cZSKCBuW.js +0 -10
- package/dist/plugin-sdk/provider-dispatcher-D7bchiJq.js +0 -61
- package/dist/plugin-sdk/provider-image-CNlYbRab.js +0 -22
- package/dist/plugin-sdk/proxy-D2uiu68M.js +0 -7
- package/dist/plugin-sdk/replies-XUkqz_7S.js +0 -25
- package/dist/plugin-sdk/reply-prefix-MU3uY52y.js +0 -7
- package/dist/plugin-sdk/runs-R28wdt7j.js +0 -25
- package/dist/plugin-sdk/send-Cg2VXcO0.js +0 -27
- package/dist/plugin-sdk/send-DAs6FmWB.js +0 -23
- package/dist/plugin-sdk/send-UIQH_kN6.js +0 -25
- package/dist/plugin-sdk/send-tASIQF-Q.js +0 -24
- package/dist/plugin-sdk/session-meta-Dd1ZONel.js +0 -10
- package/dist/plugin-sdk/skill-commands-C7ZE3rKj.js +0 -14
- package/dist/plugin-sdk/subagent-registry-2P8D5Trx.js +0 -61
- package/dist/plugin-sdk/user-run-recording-BMikDBXR.js +0 -11
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import { a as resolveGatewayPort, c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, n as STATE_DIR, r as resolveConfigPath } from "./paths-KIDAzMH-.js";
|
|
2
|
-
import { $ as resolveUserPath, Ct as normalizeLogLevel, G as formatTerminalLink, K as isRecord$1, M as normalizeWindowsPathForComparison, P as isDangerousHostEnvVarName, S as openBoundaryFileSync, U as ensureDir$3, V as clampInt, W as escapeRegExp, Y as normalizeE164, _t as theme, a as createNonExitingRuntime, c as registerActiveProgressLine, dt as setVerbose, ft as shouldLogVerbose, gt as isRich, h as INCLUDE_KEY, ht as colorize, it as sliceUtf16Safe, l as unregisterActiveProgressLine, lt as logVerbose, mt as warn, nt as shortenHomePath, o as defaultRuntime, ot as truncateUtf16Safe, rt as sleep$1, s as clearActiveProgressLine, st as danger, t as createSubsystemLogger, tt as shortenHomeInString, u as appendFileLog, v as isBlockedObjectKey, vt as getChildLogger, wt as resolvePreferredOpenClawTmpDir, x as openBoundaryFile, z as CONFIG_DIR } from "./subsystem-
|
|
2
|
+
import { $ as resolveUserPath, Ct as normalizeLogLevel, G as formatTerminalLink, K as isRecord$1, M as normalizeWindowsPathForComparison, P as isDangerousHostEnvVarName, S as openBoundaryFileSync, U as ensureDir$3, V as clampInt, W as escapeRegExp, Y as normalizeE164, _t as theme, a as createNonExitingRuntime, c as registerActiveProgressLine, dt as setVerbose, ft as shouldLogVerbose, gt as isRich, h as INCLUDE_KEY, ht as colorize, it as sliceUtf16Safe, l as unregisterActiveProgressLine, lt as logVerbose, mt as warn, nt as shortenHomePath, o as defaultRuntime, ot as truncateUtf16Safe, rt as sleep$1, s as clearActiveProgressLine, st as danger, t as createSubsystemLogger, tt as shortenHomeInString, u as appendFileLog, v as isBlockedObjectKey, vt as getChildLogger, wt as resolvePreferredOpenClawTmpDir, x as openBoundaryFile, z as CONFIG_DIR } from "./subsystem-CUUKL6Fr.js";
|
|
3
3
|
import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
|
|
4
|
-
import { $ as normalizeOptionalAccountId, A as resolveAgentModelFallbackValues, B as isKnownAgentMainSessionKey, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as buildAgentMainSessionKey, G as resolveCanonicalIdentity, H as normalizeAgentId, J as resolveThreadSessionKeys, K as resolveConfiguredCanonicalIdentity, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as normalizeAccountId$3, R as classifySessionKeyShape, S as filterBootstrapFilesForSession, U as normalizeMainKey, V as isValidAgentId, W as resolveAgentIdFromSessionKey, X as toAgentStoreSessionKey, Y as sanitizeAgentId, Z as DEFAULT_ACCOUNT_ID, _ as DEFAULT_IDENTITY_FILENAME, at as isSubagentSessionKey, c as resolveDefaultAgentId, d as resolveSessionAgentId, et as WAKE_GATE_SESSION_KEY_SEGMENT, f as resolveSessionAgentIds, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, it as isCronSessionKey, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, nt as getSubagentDepth, o as resolveAgentSkillsFilter, ot as parseAgentSessionKey, q as resolveLinkedPeerIdForChannel, r as resolveAgentConfig, rt as isAcpSessionKey, s as resolveAgentWorkspaceDir, st as resolveThreadParentSessionKey, t as hasConfiguredModelFallbacks, tt as deriveSessionChatType, u as resolveRunModelFallbacksOverride, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-
|
|
5
|
-
import { $a as listBufferedPluginTaskPasses, $o as resolveReasoningDefault, $s as resolveAuthProfileDisplayLabel, Aa as resolveGatewayMessageChannel, Ai as listTelegramAccountIds, An as normalizeInputProvenance, Ao as normalizeSafeBinProfileFixtures, Ar as SESSION_RUN_STATUSES, As as resolveSecretRefValues, B as ASSISTANT_IDENTITY_COLORS, Ba as resolveSessionLockMaxHoldFromTimeout, Bn as resolveAndPersistSessionFile, Bo as resolveAgentMaxConcurrent, Br as setSessionRuntimeModel, Bs as resolveCliName, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as INTERNAL_MESSAGE_CHANNEL, Cn as capArrayByJsonBytes, Co as extractShellWrapperInlineCommand, Cs as getSoonestCooldownExpiry, Ct as normalizeAnyChannelId, Da as isMarkdownCapableMessageChannel, Dn as INPUT_PROVENANCE_KIND_VALUES, Do as unwrapKnownShellMultiplexerInvocation, Dr as makeZeroUsageSnapshot, Ds as resolveProfilesUnavailableReason, Dt as getActiveGatewayPluginRegistry, Ea as isInternalMessageChannel, En as parseInlineDirectives$1, Eo as unwrapKnownDispatchWrapperInvocation, Er as hasNonzeroUsage, Es as markAuthProfileUsed, Et as resolveChannelConfigId, Fa as normalizeAtHashSlug, Fn as parseDurationMs, Fo as resolveDiscordPreviewStreamMode, Fr as resolveSessionResetType, Ft as createPluginRegistry, Ga as stringEnum, Gi as resolveSlackBotToken, Gn as DB_SESSION_HYDRATION_LIMIT, Go as isCliProvider, Gr as deriveSessionMetaPatch, Gs as markAuthProfileGood, Ha as channelTargetSchema, Hi as resolveSlackAccount, Hn as isJsonlSessionBackend, Ho as buildConfiguredAllowlistKeys, Hr as resolveAgentMainSessionKey, Ht as matchPluginCommand, Ia as normalizeHyphenSlug, In as extractDeliveryInfo, Io as resolveSlackNativeStreaming, Ir as resolveThreadFlag, It as normalizePluginHttpPath, Ja as actionRequiresTarget, Jn as onSessionTranscriptUpdate, Jo as normalizeProviderId, Jr as normalizeChannelId$1, Js as resolveAuthStorePathForDisplay, Ka as applyTargetToParams, Ki as listEnabledSignalAccounts, Kn as hydrateSessionManagerFromDb, Ko as modelKey, Kr as getChannelPlugin, Ks as ensureAuthProfileStore, La as normalizeStringEntries, Ln as parseSessionThreadInfo, Lo as resolveSlackStreamingMode, Lr as DEFAULT_RESET_TRIGGERS, Ls as secretRefKey, Lt as buildPluginHealthReport, Ma as GATEWAY_CLIENT_IDS, Mi as resolveTelegramAccount, Mn as createAsyncLock, Mo as applyMergePatch, Mr as evaluateSessionFreshness, Ms as isNonEmptyString, Mt as setActivePluginRegistry, Na as GATEWAY_CLIENT_MODES, Ni as resolveTelegramToken, Nn as readJsonFile, No as isSafeExecutableValue, Nr as resolveChannelResetConfig, Ns as isRecord$2, Nt as addRegisteredPluginApi, Oa as listDeliverableMessageChannels, Oi as createTelegramActionGate, On as applyInputProvenanceToUserMessage, Oo as splitShellArgs, Or as normalizeUsage, Os as resolveApiKeyForProfile, Ot as getActivePluginRegistry, Pa as GATEWAY_CLIENT_NAMES, Pi as buildChannelAccountBindings, Pn as writeJsonAtomic, Po as mapStreamingModeToSlackLegacyDraftStreamMode, Pr as resolveSessionResetPolicy, Ps as parseDotPath, Pt as clearRegisteredPluginApis, Qa as discardBufferedPluginTaskPasses, Qn as TASK_RUN_STATUSES, Qo as resolveModelRefFromString, Ra as normalizeStringEntriesLower, Rn as appendAssistantMessageToSessionTranscript, Rr as mergeSessionEntry, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as resolveGroupSessionKey, Sn as archiveSessionTranscripts, So as resolveCommandResolutionFromArgv, St as listChatChannels, Ta as isGatewayMessageChannel, Tn as extractToolCallNames, To as isShellWrapperExecutable, Tr as deriveSessionTotalTokens, Ts as markAuthProfileFailure, Tt as normalizeChatChannelId, Ua as channelTargetsSchema, Ui as resolveSlackReplyToMode, Un as createPrimaryWriteInterceptor, Uo as buildModelAliasIndex, Ur as resolveExplicitAgentSessionKey, Us as dedupeProfileIds, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as readTaskWorkStates, Vn as withPreservationWriterPermit, Vo as buildAllowedModelSet, Vr as canonicalizeMainSessionAlias, Vt as listPluginCommands, Wa as optionalStringEnum, Wi as resolveSlackAppToken, Wn as drainPendingPrimaryWrites, Wo as findNormalizedProviderValue, Wr as resolveMainSessionKey, Ws as listProfilesForProvider, Xo as resolveConfiguredModelRef, Yi as resolveSignalAccount, Yo as parseModelRef, Ys as resolveOpenClawAgentDir, Zn as TASK_RUN_MODES, Zo as resolveDefaultModelForAgent, Zs as withFileLock, _ as resolveTelegramCustomCommands, _a as resolveChannelGroupPolicy, _c as parseBooleanValue$1, _n as deliveryContextKey, _o as isWindowsPlatform, _s as resolveApiKeyForProvider, _t as safeStatSync, a as writeConfigFile, ai as parseSlackTarget, an as getConfiguredSessionStorageRuntime, ao as unsetConfigOverride, ar as createCurrentUserPromptEnvelope, at as isPathWithinRoot, bn as normalizeSessionDeliveryFields, bo as matchAllowlist, br as emitDiagnosticEvent, bs as resolveAuthProfileOrder, bt as CHAT_CHANNEL_ORDER, cc as resolveSecretInputRef, cn as readSessionUpdatedAt, co as setConfigValueAtPath, cr as mergePromptContributions, cs as OLLAMA_NATIVE_BASE_URL, ct as loadPluginManifestRegistry, da as createDiscordActionGate, dc as DEFAULT_MODEL, di as listChannelDocks, dn as updateLastRoute, do as isTrustedSafeBinPath, dr as buildInboundMetaSystemPrompt, ds as buildAssistantMessageWithZeroUsage, dt as isBundledChannelEnabledByChannelConfig, en as createInternalHookEvent, eo as replaceBufferedPluginTaskPasses, es as resolveSubagentSpawnModelSelection, fc as DEFAULT_PROVIDER, fn as updateSessionStore, fo as listWritableExplicitTrustedSafeBinDirs, fr as buildInboundUserContextPrefix, fs as buildStreamErrorAssistantMessage, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as normalizeDiscordToken, gc as isTruthyEnvValue, gn as deliveryContextFromSession, go as buildEnforcedShellCommand, gr as resolveSenderLabel, gs as requireApiKey, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as resolveDiscordAccount, hc as resolveShellEnvFallbackTimeoutMs, hn as resolveCacheTtlMs$1, ho as analyzeShellCommand, hr as resolveTimezone, hs as getCustomProviderApiKey, ht as discoverOpenClawPlugins, ia as hasAnyWhatsAppAuth, ic as hasConfiguredSecretInput, in as getActivePreservationLease, io as setConfigOverride, ir as sha256, it as isAvatarHttpUrl, ja as resolveMessageChannel, jn as jsonUtf8Bytes, jo as resolveSafeBinProfiles, jr as resolveSessionKey, js as describeUnknownError$1, jt as requireActivePluginRegistry, ka as normalizeMessageChannel, ki as listEnabledTelegramAccounts, kn as hasInterSessionUserProvenance, ko as SAFE_BIN_PROFILES, kt as getActivePluginRegistryKey, lc as splitTrailingAuthProfile, ln as recordSessionMetaFromInbound, lo as unsetConfigValueAtPath, lr as toJsonValue$1, ls as createOllamaStreamFn, lt as BUNDLED_ENABLED_BY_DEFAULT, mc as getShellPathFromLoginShell, mn as isCacheEnabled, mo as validateSafeBinArgv, mr as formatZonedTimestamp, ms as getApiKeyForModel, mt as resolveMemorySlotDecision, n as loadConfig, na as isWhatsAppGroupJid, no as getConfigOverrides, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oc as normalizeResolvedSecretInputString, oi as resolveSlackChannelId, on as isPreservationArmed, oo as getConfigValueAtPath, ot as isSupportedLocalAvatarExtension, pa as listEnabledDiscordAccounts, pc as VERSION, pi as normalizeSignalMessagingTarget, pn as updateSessionStoreEntry, po as normalizeTrustedSafeBinDirs, pr as formatUtcTimestamp, ps as buildUsageWithNoCost, pt as resolveEffectiveEnableState, qa as actionHasTarget, qn as emitSessionTranscriptUpdate, qo as normalizeModelRef$2, qr as listChannelPlugins, r as readConfigFileSnapshot, ra as normalizeWhatsAppTarget, rc as coerceSecretRef, ro as resetConfigOverrides, rr as sanitizeJsonb, rt as isAvatarDataUrl, sa as resolveWhatsAppAccount, sn as loadSessionStore, so as parseConfigPath, ss as retryAsync, st as validateJsonSchemaValue, tc as normalizeSecretInput, tn as triggerInternalHook, to as RecoveryAdmissionError, ts as resolveThinkingDefault, ua as resolveIMessageAccount, uc as DEFAULT_CONTEXT_TOKENS, ui as getChannelDock, un as syncConfiguredSessionTranscriptToRuntime, uo as getTrustedSafeBinDirs, us as buildAssistantMessage, ut as applyTestPluginDefaults, va as resolveChannelGroupRequireMention, vc as resolveOwnerDisplaySetting, vn as mergeDeliveryContext, vo as splitCommandChain, vs as resolveEnvApiKey, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as isDeliverableMessageChannel, wn as countToolResults, wo as isDispatchWrapperExecutable, wr as derivePromptTokens, ws as isProfileInCooldown, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as resolveAccountEntry, xn as normalizeAccountId$4, xo as resolveAllowlistCandidatePath, xr as isDiagnosticsEnabled, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as resolveChannelGroupToolsPolicy, yn as normalizeDeliveryContext, yo as DEFAULT_SAFE_BINS, ys as resolveModelAuthMode, za as acquireSessionWriteLock, zo as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, zr as resolveFreshSessionTotalTokens, zs as formatCliCommand, zt as executePluginCommand } from "./config-
|
|
4
|
+
import { $ as normalizeOptionalAccountId, A as resolveAgentModelFallbackValues, B as isKnownAgentMainSessionKey, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as buildAgentMainSessionKey, G as resolveCanonicalIdentity, H as normalizeAgentId, J as resolveThreadSessionKeys, K as resolveConfiguredCanonicalIdentity, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as normalizeAccountId$3, R as classifySessionKeyShape, S as filterBootstrapFilesForSession, U as normalizeMainKey, V as isValidAgentId, W as resolveAgentIdFromSessionKey, X as toAgentStoreSessionKey, Y as sanitizeAgentId, Z as DEFAULT_ACCOUNT_ID, _ as DEFAULT_IDENTITY_FILENAME, at as isSubagentSessionKey, c as resolveDefaultAgentId, d as resolveSessionAgentId, et as WAKE_GATE_SESSION_KEY_SEGMENT, f as resolveSessionAgentIds, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, it as isCronSessionKey, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, nt as getSubagentDepth, o as resolveAgentSkillsFilter, ot as parseAgentSessionKey, q as resolveLinkedPeerIdForChannel, r as resolveAgentConfig, rt as isAcpSessionKey, s as resolveAgentWorkspaceDir, st as resolveThreadParentSessionKey, t as hasConfiguredModelFallbacks, tt as deriveSessionChatType, u as resolveRunModelFallbacksOverride, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-BYp_CjdU.js";
|
|
5
|
+
import { $a as listBufferedPluginTaskPasses, $o as resolveReasoningDefault, $s as resolveAuthProfileDisplayLabel, Aa as resolveGatewayMessageChannel, Ai as listTelegramAccountIds, An as normalizeInputProvenance, Ao as normalizeSafeBinProfileFixtures, Ar as SESSION_RUN_STATUSES, As as resolveSecretRefValues, B as ASSISTANT_IDENTITY_COLORS, Ba as resolveSessionLockMaxHoldFromTimeout, Bn as resolveAndPersistSessionFile, Bo as resolveAgentMaxConcurrent, Br as setSessionRuntimeModel, Bs as resolveCliName, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as INTERNAL_MESSAGE_CHANNEL, Cn as capArrayByJsonBytes, Co as extractShellWrapperInlineCommand, Cs as getSoonestCooldownExpiry, Ct as normalizeAnyChannelId, Da as isMarkdownCapableMessageChannel, Dn as INPUT_PROVENANCE_KIND_VALUES, Do as unwrapKnownShellMultiplexerInvocation, Dr as makeZeroUsageSnapshot, Ds as resolveProfilesUnavailableReason, Dt as getActiveGatewayPluginRegistry, Ea as isInternalMessageChannel, En as parseInlineDirectives$1, Eo as unwrapKnownDispatchWrapperInvocation, Er as hasNonzeroUsage, Es as markAuthProfileUsed, Et as resolveChannelConfigId, Fa as normalizeAtHashSlug, Fn as parseDurationMs, Fo as resolveDiscordPreviewStreamMode, Fr as resolveSessionResetType, Ft as createPluginRegistry, Ga as stringEnum, Gi as resolveSlackBotToken, Gn as DB_SESSION_HYDRATION_LIMIT, Go as isCliProvider, Gr as deriveSessionMetaPatch, Gs as markAuthProfileGood, Ha as channelTargetSchema, Hi as resolveSlackAccount, Hn as isJsonlSessionBackend, Ho as buildConfiguredAllowlistKeys, Hr as resolveAgentMainSessionKey, Ht as matchPluginCommand, Ia as normalizeHyphenSlug, In as extractDeliveryInfo, Io as resolveSlackNativeStreaming, Ir as resolveThreadFlag, It as normalizePluginHttpPath, Ja as actionRequiresTarget, Jn as onSessionTranscriptUpdate, Jo as normalizeProviderId, Jr as normalizeChannelId$1, Js as resolveAuthStorePathForDisplay, Ka as applyTargetToParams, Ki as listEnabledSignalAccounts, Kn as hydrateSessionManagerFromDb, Ko as modelKey, Kr as getChannelPlugin, Ks as ensureAuthProfileStore, La as normalizeStringEntries, Ln as parseSessionThreadInfo, Lo as resolveSlackStreamingMode, Lr as DEFAULT_RESET_TRIGGERS, Ls as secretRefKey, Lt as buildPluginHealthReport, Ma as GATEWAY_CLIENT_IDS, Mi as resolveTelegramAccount, Mn as createAsyncLock, Mo as applyMergePatch, Mr as evaluateSessionFreshness, Ms as isNonEmptyString, Mt as setActivePluginRegistry, Na as GATEWAY_CLIENT_MODES, Ni as resolveTelegramToken, Nn as readJsonFile, No as isSafeExecutableValue, Nr as resolveChannelResetConfig, Ns as isRecord$2, Nt as addRegisteredPluginApi, Oa as listDeliverableMessageChannels, Oi as createTelegramActionGate, On as applyInputProvenanceToUserMessage, Oo as splitShellArgs, Or as normalizeUsage, Os as resolveApiKeyForProfile, Ot as getActivePluginRegistry, Pa as GATEWAY_CLIENT_NAMES, Pi as buildChannelAccountBindings, Pn as writeJsonAtomic, Po as mapStreamingModeToSlackLegacyDraftStreamMode, Pr as resolveSessionResetPolicy, Ps as parseDotPath, Pt as clearRegisteredPluginApis, Qa as discardBufferedPluginTaskPasses, Qn as TASK_RUN_STATUSES, Qo as resolveModelRefFromString, Ra as normalizeStringEntriesLower, Rn as appendAssistantMessageToSessionTranscript, Rr as mergeSessionEntry, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as resolveGroupSessionKey, Sn as archiveSessionTranscripts, So as resolveCommandResolutionFromArgv, St as listChatChannels, Ta as isGatewayMessageChannel, Tn as extractToolCallNames, To as isShellWrapperExecutable, Tr as deriveSessionTotalTokens, Ts as markAuthProfileFailure, Tt as normalizeChatChannelId, Ua as channelTargetsSchema, Ui as resolveSlackReplyToMode, Un as createPrimaryWriteInterceptor, Uo as buildModelAliasIndex, Ur as resolveExplicitAgentSessionKey, Us as dedupeProfileIds, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as readTaskWorkStates, Vn as withPreservationWriterPermit, Vo as buildAllowedModelSet, Vr as canonicalizeMainSessionAlias, Vt as listPluginCommands, Wa as optionalStringEnum, Wi as resolveSlackAppToken, Wn as drainPendingPrimaryWrites, Wo as findNormalizedProviderValue, Wr as resolveMainSessionKey, Ws as listProfilesForProvider, Xo as resolveConfiguredModelRef, Yi as resolveSignalAccount, Yo as parseModelRef, Ys as resolveOpenClawAgentDir, Zn as TASK_RUN_MODES, Zo as resolveDefaultModelForAgent, Zs as withFileLock, _ as resolveTelegramCustomCommands, _a as resolveChannelGroupPolicy, _c as parseBooleanValue$1, _n as deliveryContextKey, _o as isWindowsPlatform, _s as resolveApiKeyForProvider, _t as safeStatSync, a as writeConfigFile, ai as parseSlackTarget, an as getConfiguredSessionStorageRuntime, ao as unsetConfigOverride, ar as createCurrentUserPromptEnvelope, at as isPathWithinRoot, bn as normalizeSessionDeliveryFields, bo as matchAllowlist, br as emitDiagnosticEvent, bs as resolveAuthProfileOrder, bt as CHAT_CHANNEL_ORDER, cc as resolveSecretInputRef, cn as readSessionUpdatedAt, co as setConfigValueAtPath, cr as mergePromptContributions, cs as OLLAMA_NATIVE_BASE_URL, ct as loadPluginManifestRegistry, da as createDiscordActionGate, dc as DEFAULT_MODEL, di as listChannelDocks, dn as updateLastRoute, do as isTrustedSafeBinPath, dr as buildInboundMetaSystemPrompt, ds as buildAssistantMessageWithZeroUsage, dt as isBundledChannelEnabledByChannelConfig, en as createInternalHookEvent, eo as replaceBufferedPluginTaskPasses, es as resolveSubagentSpawnModelSelection, fc as DEFAULT_PROVIDER, fn as updateSessionStore, fo as listWritableExplicitTrustedSafeBinDirs, fr as buildInboundUserContextPrefix, fs as buildStreamErrorAssistantMessage, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as normalizeDiscordToken, gc as isTruthyEnvValue, gn as deliveryContextFromSession, go as buildEnforcedShellCommand, gr as resolveSenderLabel, gs as requireApiKey, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as resolveDiscordAccount, hc as resolveShellEnvFallbackTimeoutMs, hn as resolveCacheTtlMs$1, ho as analyzeShellCommand, hr as resolveTimezone, hs as getCustomProviderApiKey, ht as discoverOpenClawPlugins, ia as hasAnyWhatsAppAuth, ic as hasConfiguredSecretInput, in as getActivePreservationLease, io as setConfigOverride, ir as sha256, it as isAvatarHttpUrl, ja as resolveMessageChannel, jn as jsonUtf8Bytes, jo as resolveSafeBinProfiles, jr as resolveSessionKey, js as describeUnknownError$1, jt as requireActivePluginRegistry, ka as normalizeMessageChannel, ki as listEnabledTelegramAccounts, kn as hasInterSessionUserProvenance, ko as SAFE_BIN_PROFILES, kt as getActivePluginRegistryKey, lc as splitTrailingAuthProfile, ln as recordSessionMetaFromInbound, lo as unsetConfigValueAtPath, lr as toJsonValue$1, ls as createOllamaStreamFn, lt as BUNDLED_ENABLED_BY_DEFAULT, mc as getShellPathFromLoginShell, mn as isCacheEnabled, mo as validateSafeBinArgv, mr as formatZonedTimestamp, ms as getApiKeyForModel, mt as resolveMemorySlotDecision, n as loadConfig, na as isWhatsAppGroupJid, no as getConfigOverrides, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oc as normalizeResolvedSecretInputString, oi as resolveSlackChannelId, on as isPreservationArmed, oo as getConfigValueAtPath, ot as isSupportedLocalAvatarExtension, pa as listEnabledDiscordAccounts, pc as VERSION, pi as normalizeSignalMessagingTarget, pn as updateSessionStoreEntry, po as normalizeTrustedSafeBinDirs, pr as formatUtcTimestamp, ps as buildUsageWithNoCost, pt as resolveEffectiveEnableState, qa as actionHasTarget, qn as emitSessionTranscriptUpdate, qo as normalizeModelRef$2, qr as listChannelPlugins, r as readConfigFileSnapshot, ra as normalizeWhatsAppTarget, rc as coerceSecretRef, ro as resetConfigOverrides, rr as sanitizeJsonb, rt as isAvatarDataUrl, sa as resolveWhatsAppAccount, sn as loadSessionStore, so as parseConfigPath, ss as retryAsync, st as validateJsonSchemaValue, tc as normalizeSecretInput, tn as triggerInternalHook, to as RecoveryAdmissionError, ts as resolveThinkingDefault, ua as resolveIMessageAccount, uc as DEFAULT_CONTEXT_TOKENS, ui as getChannelDock, un as syncConfiguredSessionTranscriptToRuntime, uo as getTrustedSafeBinDirs, us as buildAssistantMessage, ut as applyTestPluginDefaults, va as resolveChannelGroupRequireMention, vc as resolveOwnerDisplaySetting, vn as mergeDeliveryContext, vo as splitCommandChain, vs as resolveEnvApiKey, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as isDeliverableMessageChannel, wn as countToolResults, wo as isDispatchWrapperExecutable, wr as derivePromptTokens, ws as isProfileInCooldown, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as resolveAccountEntry, xn as normalizeAccountId$4, xo as resolveAllowlistCandidatePath, xr as isDiagnosticsEnabled, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as resolveChannelGroupToolsPolicy, yn as normalizeDeliveryContext, yo as DEFAULT_SAFE_BINS, ys as resolveModelAuthMode, za as acquireSessionWriteLock, zo as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, zr as resolveFreshSessionTotalTokens, zs as formatCliCommand, zt as executePluginCommand } from "./config-Biusjzx-.js";
|
|
6
6
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-BzpcrxaW.js";
|
|
7
|
-
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-
|
|
8
|
-
import { c as resolveSessionFilePathOptions, d as resolveSessionTranscriptsDirForAgent, f as resolveStorePath, l as resolveSessionTranscriptPath, n as isPrimarySessionTranscriptFileName, o as resolveDefaultSessionStorePath, p as runTasksWithConcurrency, s as resolveSessionFilePath } from "./artifacts-
|
|
7
|
+
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-D6KsqbNW.js";
|
|
8
|
+
import { c as resolveSessionFilePathOptions, d as resolveSessionTranscriptsDirForAgent, f as resolveStorePath, l as resolveSessionTranscriptPath, n as isPrimarySessionTranscriptFileName, o as resolveDefaultSessionStorePath, p as runTasksWithConcurrency, s as resolveSessionFilePath } from "./artifacts-BMLMg3MG.js";
|
|
9
9
|
import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-Byxk5Gak.js";
|
|
10
|
-
import { $ as fetchChannelPermissionsDiscord, A as addRoleDiscord, At as resolveChannelEntryMatchWithFallback, B as removeRoleDiscord, C as fetchMessageDiscord, Ct as resolveDiscordSystemLocation, D as readMessagesDiscord, Dt as buildChannelKeyCandidates, E as pinMessageDiscord, Et as applyChannelMatchMeta, F as fetchRoleInfoDiscord, G as createChannelDiscord, H as listGuildEmojisDiscord, I as fetchVoiceStatusDiscord, J as moveChannelDiscord, K as deleteChannelDiscord, L as kickMemberDiscord, M as createScheduledEventDiscord, N as fetchChannelInfoDiscord, O as searchMessagesDiscord, Ot as normalizeChannelSlug, P as fetchMemberInfoDiscord, R as listGuildChannelsDiscord, S as editMessageDiscord, St as formatDiscordUserTag, T as listThreadsDiscord, Tt as fetchDiscord, U as uploadEmojiDiscord, V as timeoutMemberDiscord, W as uploadStickerDiscord, X as setChannelPermissionDiscord, Y as removeChannelPermissionDiscord, Z as stripUndefinedFields, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as createThreadDiscord, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as banMemberDiscord, k as unpinMessageDiscord, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as editChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as listPinsDiscord, wt as resolveTimestampMs, x as deleteMessageDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listScheduledEventsDiscord } from "./send-
|
|
11
|
-
import { a as enqueueAgentTurn, c as peekDelayedAgentTurn, f as KeyedAsyncQueue, i as clearDelayedReleaseHold, l as setDelayedReleaseHold, n as tryGetAgentTurnRuntime, o as isClaimableAgentTurnWorkId, r as agentTurnIdempotencyKey, s as mergeDelayedAgentTurn, t as getAgentTurnRuntime } from "./agent-turn-runner-
|
|
10
|
+
import { $ as fetchChannelPermissionsDiscord, A as addRoleDiscord, At as resolveChannelEntryMatchWithFallback, B as removeRoleDiscord, C as fetchMessageDiscord, Ct as resolveDiscordSystemLocation, D as readMessagesDiscord, Dt as buildChannelKeyCandidates, E as pinMessageDiscord, Et as applyChannelMatchMeta, F as fetchRoleInfoDiscord, G as createChannelDiscord, H as listGuildEmojisDiscord, I as fetchVoiceStatusDiscord, J as moveChannelDiscord, K as deleteChannelDiscord, L as kickMemberDiscord, M as createScheduledEventDiscord, N as fetchChannelInfoDiscord, O as searchMessagesDiscord, Ot as normalizeChannelSlug, P as fetchMemberInfoDiscord, R as listGuildChannelsDiscord, S as editMessageDiscord, St as formatDiscordUserTag, T as listThreadsDiscord, Tt as fetchDiscord, U as uploadEmojiDiscord, V as timeoutMemberDiscord, W as uploadStickerDiscord, X as setChannelPermissionDiscord, Y as removeChannelPermissionDiscord, Z as stripUndefinedFields, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as createThreadDiscord, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as banMemberDiscord, k as unpinMessageDiscord, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as editChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as listPinsDiscord, wt as resolveTimestampMs, x as deleteMessageDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listScheduledEventsDiscord } from "./send-Cv2CGnsK.js";
|
|
11
|
+
import { a as enqueueAgentTurn, c as peekDelayedAgentTurn, f as KeyedAsyncQueue, i as clearDelayedReleaseHold, l as setDelayedReleaseHold, n as tryGetAgentTurnRuntime, o as isClaimableAgentTurnWorkId, r as agentTurnIdempotencyKey, s as mergeDelayedAgentTurn, t as getAgentTurnRuntime } from "./agent-turn-runner-CeC9JbVM.js";
|
|
12
12
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-BVVZ4csV.js";
|
|
13
13
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-CiGIllmg.js";
|
|
14
|
-
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-
|
|
15
|
-
import { a as isBlockedHostnameOrIp, d as collectErrorGraphCandidates, g as hasErrnoCode, h as formatUncaughtError, l as normalizeHostname, m as formatErrorMessage, p as formatErrorChainMessage, t as SsrFBlockedError, v as readErrorName } from "./ssrf-
|
|
16
|
-
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-
|
|
14
|
+
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-C88Ryyfs.js";
|
|
15
|
+
import { a as isBlockedHostnameOrIp, d as collectErrorGraphCandidates, g as hasErrnoCode, h as formatUncaughtError, l as normalizeHostname, m as formatErrorMessage, p as formatErrorChainMessage, t as SsrFBlockedError, v as readErrorName } from "./ssrf-BUCEDxp5.js";
|
|
16
|
+
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-Dr4PYej7.js";
|
|
17
17
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-Cs7e44no.js";
|
|
18
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
19
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
20
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
21
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
22
|
-
import { r as makeProxyFetch } from "./proxy-fetch-
|
|
18
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CVybi_GQ.js";
|
|
19
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-CbZ6uRVv.js";
|
|
20
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-DY_SZfXk.js";
|
|
21
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-C1a1KfEb.js";
|
|
22
|
+
import { r as makeProxyFetch } from "./proxy-fetch-BYkGxQnh.js";
|
|
23
23
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-BQnigH8P.js";
|
|
24
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
25
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
24
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-Bm7nDW20.js";
|
|
25
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-BNohi6ZW.js";
|
|
26
26
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-DQqVJhbI.js";
|
|
27
|
-
import { a as chunkMarkdownTextWithMode, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownText, l as resolveChunkMode, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
28
|
-
import { t as resolveMarkdownTableMode } from "./markdown-tables-
|
|
29
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
30
|
-
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-
|
|
31
|
-
import { $ as resolveTelegramThreadSpec, A as splitTelegramCaption, B as buildTelegramThreadParams, C as recordApiRequest, Ct as isSenderIdAllowed, D as registerAccount, E as recordWebhook, F as buildSenderLabel, G as hasBotMention, H as describeReplyTarget, I as buildSenderName, J as resolveTelegramForumThreadId, K as normalizeForwardedContext, L as buildTelegramGroupFrom, M as loadCronStore, N as resolveCronStorePath, O as releaseAccountOwner, P as buildGroupLabel, Q as resolveTelegramStreamMode, R as buildTelegramGroupPeerId, S as getTelegramFleetSupervisor, St as firstDefined$1, T as recordUpdate, Tt as resolveGroupAllowFromSources, U as expandTextLinks, V as buildTypingThreadParams, W as extractTelegramLocation, X as resolveTelegramMediaPlaceholder, Y as resolveTelegramGroupAllowFromContext, Z as resolveTelegramReplyId, _ as markdownToTelegramChunks, _t as upsertChannelPairingRequest, a as reactMessageTelegram, b as wrapFileReferencesInHtml, bt as getPairingAdapter, c as sendStickerTelegram, ct as formatLocationText, d as extractTelegramErrorText, et as isSenderAllowed$1, f as isDefiniteTelegramRequestNonDeliveryError, g as isTelegramEditMayHaveLandedError, gt as removeChannelAllowFromStoreEntry, h as isTelegramClientRejection, i as editMessageTelegram, it as isVoiceCompatibleAudio, j as withTelegramApiErrorLogging, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as toLocationContext, m as isSafeToRetrySendError, mt as readChannelAllowFromStore, n as createForumTopicTelegram, nt as normalizeDmAllowFromWithStore$1, o as sendMessageTelegram, ot as parseTelegramTarget, p as isRecoverableTelegramNetworkError, pt as addChannelAllowFromStoreEntry, q as resolveTelegramDirectPeerId, r as deleteMessageTelegram, rt as resolveSenderAllowMatch$1, s as sendPollTelegram, st as resolveTelegramTargetChatType, t as buildInlineKeyboard, tt as normalizeAllowFrom$2, u as wasSentByBot, v as markdownToTelegramHtml, vt as readJsonFileWithFallback, w as recordState, wt as mergeDmAllowFromSources, x as fingerprintTelegramToken, xt as listPairingChannels, y as renderTelegramHtmlText, yt as writeJsonFileAtomically, z as buildTelegramParentPeer } from "./send-
|
|
32
|
-
import { $ as expandToolGroups, A as isTransientHttpError, B as registerBrowserRoutes, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, G as resolveBrowserControlAuth, H as resolveProfile, I as ensureSandboxWorkspaceForSession, J as buildPluginToolGroups, K as resolveSandboxConfigForAgent, L as resolveSandboxContext, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, Q as stripPluginOnlyAllowlist, R as resolveSandboxRuntimeStatus, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as getBridgeAuthForPort, V as resolveBrowserConfig, W as ensureBrowserControlAuth, X as expandPolicyWithPluginGroups, Y as collectExplicitAllowlist, Z as mergeAlsoAllowPolicy, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, at as ensureSessionHeader, b as isAuthAssistantError, c as extractToolCallsFromAssistant, ct as sanitizeGoogleTurnOrdering, d as downgradeOpenAIFunctionCallReasoningPairs, dt as sanitizeImageBlocks, et as normalizeToolName, f as downgradeOpenAIReasoningBlocks, ft as sanitizeToolResultImages, g as formatAssistantErrorText, h as classifyFailoverReason, ht as estimateBase64DecodedBytes, it as buildBootstrapContextFiles, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, lt as resolveGatewayCredentialsFromConfig, m as BILLING_ERROR_USER_MESSAGE, mt as canonicalizeBase64, n as validateGeminiTurns, nt as compileGlobPatterns, o as normalizeTextForComparison, ot as resolveBootstrapMaxChars, p as isGoogleModelApi, pt as resolveImageSanitizationLimits, q as applyOwnerOnlyToolPolicy, r as pickFallbackThinkingLevel, rt as matchesAnyGlobPattern, s as sanitizeSessionMessagesImages, st as resolveBootstrapTotalMaxChars, t as validateAnthropicTurns, tt as resolveToolProfilePolicy, u as sanitizeToolCallIdsForCloudCodeAssist, ut as trimToUndefined$1, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as createBrowserRouteContext } from "./pi-embedded-helpers-
|
|
33
|
-
import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, r as normalizeSlackOutboundText, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-
|
|
34
|
-
import { S as modelSupportsVision, T as buildRandomTempFilePath, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, b as findModelInCatalog, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, w as registerUnhandledRejectionHandler, x as loadModelCatalog, y as resolveAttachmentKind } from "./audio-transcription-runner-
|
|
35
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-
|
|
36
|
-
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
37
|
-
import { a as getRemoteSkillEligibility, c as getSkillsSnapshotVersion, d as pruneExpiredPending, f as resolvePairingPaths, i as resolveSkillCommandInvocation, l as generatePairingToken, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as rejectPendingPairingRequest } from "./skill-commands-
|
|
38
|
-
import { c as resolveSandboxInputPath, d as applySkillEnvOverrides, f as applySkillEnvOverridesFromSnapshot, i as resolveSkillsPromptForRun, n as buildWorkspaceSkillSnapshot, o as assertMediaNotDataUrl, r as loadWorkspaceSkillEntries, s as assertSandboxPath, u as resolveSandboxedMediaSource } from "./skills-
|
|
39
|
-
import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, J as resolveClientIp, K as isLoopbackHost, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, Y as rawDataToString, q as isSecureWebSocketUrl, s as resolveLsofCommandSync } from "./chrome-
|
|
40
|
-
import { _ as buildTargetResolverSignature, a as normalizeReplyPayloadsForDelivery, c as applyReplyTagsToPayload, d as filterMessagingToolMediaDuplicates, f as isRenderablePayload, g as resolveReplyToMode, h as createReplyToModeFilterForChannel, i as normalizeOutboundPayloadsForJson, l as applyReplyThreading, m as shouldSuppressReasoningPayload, n as formatOutboundPayloadLog, o as throwIfAborted, p as shouldSuppressMessagingToolReplies, r as normalizeOutboundPayloads, s as loadChannelOutboundAdapter, t as deliverOutboundPayloads, u as filterMessagingToolDuplicates, v as normalizeChannelTargetInput, y as normalizeTargetForProvider } from "./deliver-
|
|
41
|
-
import { _ as buildPluginTurnIdentity, b as fireAndForgetHook, c as applyMessageSendingHook, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as buildPluginRuntimeIdentity, h as toPluginMessageReceivedEvent, l as createMessageSentEmitter, m as toPluginMessageContext, n as initializeGlobalHookRunner, o as buildOutboundSessionContext, p as toInternalMessageTranscribedContext, r as promptBuildResultToContribution, s as resolveOutboundSessionId, t as getGlobalHookRunner, u as deriveInboundMessageHookContext, v as resolveProviderPromptCacheKey, y as resolveProviderRuntimeIdentity } from "./hook-runner-global-
|
|
42
|
-
import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
43
|
-
import { C as resolveNativeCommandsEnabled, S as isRestartEnabled, a as isCommandEnabled, b as isCommandFlagEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, p as normalizeCommandBody, r as findCommandByNativeName, u as listNativeCommandSpecs, v as serializeCommandArgs, w as resolveNativeSkillsEnabled, x as isNativeCommandsExplicitlyDisabled, y as shouldHandleTextCommands } from "./commands-registry-
|
|
27
|
+
import { a as chunkMarkdownTextWithMode, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownText, l as resolveChunkMode, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, u as resolveChunkNewlinePacking } from "./chunk-DGQdf0JN.js";
|
|
28
|
+
import { t as resolveMarkdownTableMode } from "./markdown-tables-G4vK24xc.js";
|
|
29
|
+
import { t as convertMarkdownTables } from "./tables-DKYi6grj.js";
|
|
30
|
+
import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-BMSqETcU.js";
|
|
31
|
+
import { $ as resolveTelegramThreadSpec, A as splitTelegramCaption, B as buildTelegramThreadParams, C as recordApiRequest, Ct as isSenderIdAllowed, D as registerAccount, E as recordWebhook, F as buildSenderLabel, G as hasBotMention, H as describeReplyTarget, I as buildSenderName, J as resolveTelegramForumThreadId, K as normalizeForwardedContext, L as buildTelegramGroupFrom, M as loadCronStore, N as resolveCronStorePath, O as releaseAccountOwner, P as buildGroupLabel, Q as resolveTelegramStreamMode, R as buildTelegramGroupPeerId, S as getTelegramFleetSupervisor, St as firstDefined$1, T as recordUpdate, Tt as resolveGroupAllowFromSources, U as expandTextLinks, V as buildTypingThreadParams, W as extractTelegramLocation, X as resolveTelegramMediaPlaceholder, Y as resolveTelegramGroupAllowFromContext, Z as resolveTelegramReplyId, _ as markdownToTelegramChunks, _t as upsertChannelPairingRequest, a as reactMessageTelegram, b as wrapFileReferencesInHtml, bt as getPairingAdapter, c as sendStickerTelegram, ct as formatLocationText, d as extractTelegramErrorText, et as isSenderAllowed$1, f as isDefiniteTelegramRequestNonDeliveryError, g as isTelegramEditMayHaveLandedError, gt as removeChannelAllowFromStoreEntry, h as isTelegramClientRejection, i as editMessageTelegram, it as isVoiceCompatibleAudio, j as withTelegramApiErrorLogging, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as toLocationContext, m as isSafeToRetrySendError, mt as readChannelAllowFromStore, n as createForumTopicTelegram, nt as normalizeDmAllowFromWithStore$1, o as sendMessageTelegram, ot as parseTelegramTarget, p as isRecoverableTelegramNetworkError, pt as addChannelAllowFromStoreEntry, q as resolveTelegramDirectPeerId, r as deleteMessageTelegram, rt as resolveSenderAllowMatch$1, s as sendPollTelegram, st as resolveTelegramTargetChatType, t as buildInlineKeyboard, tt as normalizeAllowFrom$2, u as wasSentByBot, v as markdownToTelegramHtml, vt as readJsonFileWithFallback, w as recordState, wt as mergeDmAllowFromSources, x as fingerprintTelegramToken, xt as listPairingChannels, y as renderTelegramHtmlText, yt as writeJsonFileAtomically, z as buildTelegramParentPeer } from "./send-DG4MQPPm.js";
|
|
32
|
+
import { $ as expandToolGroups, A as isTransientHttpError, B as registerBrowserRoutes, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, G as resolveBrowserControlAuth, H as resolveProfile, I as ensureSandboxWorkspaceForSession, J as buildPluginToolGroups, K as resolveSandboxConfigForAgent, L as resolveSandboxContext, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, Q as stripPluginOnlyAllowlist, R as resolveSandboxRuntimeStatus, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as getBridgeAuthForPort, V as resolveBrowserConfig, W as ensureBrowserControlAuth, X as expandPolicyWithPluginGroups, Y as collectExplicitAllowlist, Z as mergeAlsoAllowPolicy, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, at as ensureSessionHeader, b as isAuthAssistantError, c as extractToolCallsFromAssistant, ct as sanitizeGoogleTurnOrdering, d as downgradeOpenAIFunctionCallReasoningPairs, dt as sanitizeImageBlocks, et as normalizeToolName, f as downgradeOpenAIReasoningBlocks, ft as sanitizeToolResultImages, g as formatAssistantErrorText, h as classifyFailoverReason, ht as estimateBase64DecodedBytes, it as buildBootstrapContextFiles, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, lt as resolveGatewayCredentialsFromConfig, m as BILLING_ERROR_USER_MESSAGE, mt as canonicalizeBase64, n as validateGeminiTurns, nt as compileGlobPatterns, o as normalizeTextForComparison, ot as resolveBootstrapMaxChars, p as isGoogleModelApi, pt as resolveImageSanitizationLimits, q as applyOwnerOnlyToolPolicy, r as pickFallbackThinkingLevel, rt as matchesAnyGlobPattern, s as sanitizeSessionMessagesImages, st as resolveBootstrapTotalMaxChars, t as validateAnthropicTurns, tt as resolveToolProfilePolicy, u as sanitizeToolCallIdsForCloudCodeAssist, ut as trimToUndefined$1, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as createBrowserRouteContext } from "./pi-embedded-helpers-B_jgacW8.js";
|
|
33
|
+
import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, r as normalizeSlackOutboundText, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-DM6RpDCL.js";
|
|
34
|
+
import { S as modelSupportsVision, T as buildRandomTempFilePath, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, b as findModelInCatalog, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, w as registerUnhandledRejectionHandler, x as loadModelCatalog, y as resolveAttachmentKind } from "./audio-transcription-runner-TBjJv_mZ.js";
|
|
35
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-qLQRxqrf.js";
|
|
36
|
+
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-ysZUkYZZ.js";
|
|
37
|
+
import { a as getRemoteSkillEligibility, c as getSkillsSnapshotVersion, d as pruneExpiredPending, f as resolvePairingPaths, i as resolveSkillCommandInvocation, l as generatePairingToken, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as rejectPendingPairingRequest } from "./skill-commands-CE_SkRQk.js";
|
|
38
|
+
import { c as resolveSandboxInputPath, d as applySkillEnvOverrides, f as applySkillEnvOverridesFromSnapshot, i as resolveSkillsPromptForRun, n as buildWorkspaceSkillSnapshot, o as assertMediaNotDataUrl, r as loadWorkspaceSkillEntries, s as assertSandboxPath, u as resolveSandboxedMediaSource } from "./skills-CjW6uGTa.js";
|
|
39
|
+
import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, J as resolveClientIp, K as isLoopbackHost, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, Y as rawDataToString, q as isSecureWebSocketUrl, s as resolveLsofCommandSync } from "./chrome-BDy1zYAr.js";
|
|
40
|
+
import { _ as buildTargetResolverSignature, a as normalizeReplyPayloadsForDelivery, c as applyReplyTagsToPayload, d as filterMessagingToolMediaDuplicates, f as isRenderablePayload, g as resolveReplyToMode, h as createReplyToModeFilterForChannel, i as normalizeOutboundPayloadsForJson, l as applyReplyThreading, m as shouldSuppressReasoningPayload, n as formatOutboundPayloadLog, o as throwIfAborted, p as shouldSuppressMessagingToolReplies, r as normalizeOutboundPayloads, s as loadChannelOutboundAdapter, t as deliverOutboundPayloads, u as filterMessagingToolDuplicates, v as normalizeChannelTargetInput, y as normalizeTargetForProvider } from "./deliver-BgHA8c9F.js";
|
|
41
|
+
import { _ as buildPluginTurnIdentity, b as fireAndForgetHook, c as applyMessageSendingHook, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as buildPluginRuntimeIdentity, h as toPluginMessageReceivedEvent, l as createMessageSentEmitter, m as toPluginMessageContext, n as initializeGlobalHookRunner, o as buildOutboundSessionContext, p as toInternalMessageTranscribedContext, r as promptBuildResultToContribution, s as resolveOutboundSessionId, t as getGlobalHookRunner, u as deriveInboundMessageHookContext, v as resolveProviderPromptCacheKey, y as resolveProviderRuntimeIdentity } from "./hook-runner-global-BvxlnAyu.js";
|
|
42
|
+
import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-yBNTHg3N.js";
|
|
43
|
+
import { C as resolveNativeCommandsEnabled, S as isRestartEnabled, a as isCommandEnabled, b as isCommandFlagEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, p as normalizeCommandBody, r as findCommandByNativeName, u as listNativeCommandSpecs, v as serializeCommandArgs, w as resolveNativeSkillsEnabled, x as isNativeCommandsExplicitlyDisabled, y as shouldHandleTextCommands } from "./commands-registry-N6f_lsxF.js";
|
|
44
44
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-FnAYAFD8.js";
|
|
45
45
|
import { t as redactIdentifier } from "./redact-identifier-COJGJSys.js";
|
|
46
46
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-DwyIZ8dH.js";
|
|
47
|
-
import { D as recordSystemPromptHashComparison, E as logWebhookReceived, F as resetCommandPollCount, M as stopDiagnosticHeartbeat, N as boundDiagnosticContent, O as refreshRunProgress, P as recordCommandPoll, S as logToolExecutionStarted, T as logWebhookProcessed, a as logMessageProcessed, b as logToolExecutionBlocked, c as logModelCallError, d as logRunStarted, f as logSessionStateChange, j as startDiagnosticHeartbeat, o as logMessageQueued, u as logRunCompleted, w as logWebhookError, x as logToolExecutionCompleted } from "./diagnostic-
|
|
47
|
+
import { D as recordSystemPromptHashComparison, E as logWebhookReceived, F as resetCommandPollCount, M as stopDiagnosticHeartbeat, N as boundDiagnosticContent, O as refreshRunProgress, P as recordCommandPoll, S as logToolExecutionStarted, T as logWebhookProcessed, a as logMessageProcessed, b as logToolExecutionBlocked, c as logModelCallError, d as logRunStarted, f as logSessionStateChange, j as startDiagnosticHeartbeat, o as logMessageQueued, u as logRunCompleted, w as logWebhookError, x as logToolExecutionCompleted } from "./diagnostic-D6hSjxiv.js";
|
|
48
48
|
import { n as getDiagnosticSessionState, o as redactChannelCorrelation } from "./diagnostic-session-state-BJKtT9MA.js";
|
|
49
49
|
import { t as CommandLane } from "./lanes-CIgsHd2u.js";
|
|
50
|
-
import { a as enqueueCommandInLane, i as clearCommandLane, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-
|
|
51
|
-
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-
|
|
52
|
-
import { a as resolveProviderVisionModelFromConfig, i as decodeDataUrl, n as coerceImageAssistantText, o as minimaxUnderstandImage, r as coerceImageModelConfig, s as ensureOpenClawModelsJson } from "./provider-image-
|
|
53
|
-
import { _ as extractTextFromChatContent, a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-
|
|
50
|
+
import { a as enqueueCommandInLane, i as clearCommandLane, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-DFSOdqCK.js";
|
|
51
|
+
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-DWUrLRLg.js";
|
|
52
|
+
import { a as resolveProviderVisionModelFromConfig, i as decodeDataUrl, n as coerceImageAssistantText, o as minimaxUnderstandImage, r as coerceImageModelConfig, s as ensureOpenClawModelsJson } from "./provider-image-CEQrHWYz.js";
|
|
53
|
+
import { _ as extractTextFromChatContent, a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-DOXEm_H8.js";
|
|
54
54
|
import { n as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-CcqKLbvR.js";
|
|
55
|
-
import { _ as clearAgentRunContext, a as isEmbeddedPiRunActive, b as registerAgentRunContext, c as setActiveEmbeddedRun, d as handleMessageStart, f as handleMessageUpdate, g as endModelCall, h as createInlineCodeState, i as endInFlightEmbeddedAttempt, l as waitForEmbeddedPiRunEnd, m as buildCodeSpanIndex, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as emitEmbeddedAgentEvent, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as handleMessageEnd, v as emitAgentEvent, y as onAgentEvent } from "./runs-
|
|
56
|
-
import { a as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
57
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
58
|
-
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-
|
|
59
|
-
import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-
|
|
60
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
61
|
-
import { t as createTelegramPollingTransport } from "./proxy-
|
|
62
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
63
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
64
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
65
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
55
|
+
import { _ as clearAgentRunContext, a as isEmbeddedPiRunActive, b as registerAgentRunContext, c as setActiveEmbeddedRun, d as handleMessageStart, f as handleMessageUpdate, g as endModelCall, h as createInlineCodeState, i as endInFlightEmbeddedAttempt, l as waitForEmbeddedPiRunEnd, m as buildCodeSpanIndex, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as emitEmbeddedAgentEvent, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as handleMessageEnd, v as emitAgentEvent, y as onAgentEvent } from "./runs-CiohhBb8.js";
|
|
56
|
+
import { a as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-BXZMRSjO.js";
|
|
57
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-Cx6gHjnA.js";
|
|
58
|
+
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-BwxzQXmX.js";
|
|
59
|
+
import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-BMaK7jNR.js";
|
|
60
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-50KoArP9.js";
|
|
61
|
+
import { t as createTelegramPollingTransport } from "./proxy-BWc9guJs.js";
|
|
62
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-l2hZAzbt.js";
|
|
63
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-CiqJP0pO.js";
|
|
64
|
+
import { n as resolveMemorySearchConfig } from "./manager-B_vK9MbM.js";
|
|
65
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-CwmHvvV_.js";
|
|
66
66
|
import { createRequire } from "node:module";
|
|
67
67
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
68
68
|
import * as path$1 from "node:path";
|
|
69
69
|
import path, { basename, isAbsolute, join } from "node:path";
|
|
70
70
|
import { inspect, isDeepStrictEqual, promisify } from "node:util";
|
|
71
|
-
import
|
|
71
|
+
import JSON5 from "json5";
|
|
72
72
|
import os, { homedir } from "node:os";
|
|
73
73
|
import * as fs$2 from "node:fs/promises";
|
|
74
74
|
import fs$1, { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -17055,7 +17055,7 @@ async function sendTranscriptEcho(params) {
|
|
|
17055
17055
|
}
|
|
17056
17056
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
17057
17057
|
try {
|
|
17058
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
17058
|
+
const { deliverOutboundPayloads } = await import("./deliver-DBCz1GqU.js");
|
|
17059
17059
|
await deliverOutboundPayloads({
|
|
17060
17060
|
cfg,
|
|
17061
17061
|
channel: normalizedChannel,
|
|
@@ -24667,7 +24667,7 @@ async function routeReply(params) {
|
|
|
24667
24667
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
24668
24668
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
24669
24669
|
try {
|
|
24670
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
24670
|
+
const { deliverOutboundPayloads } = await import("./deliver-DBCz1GqU.js");
|
|
24671
24671
|
const outboundSession = buildOutboundSessionContext({
|
|
24672
24672
|
cfg,
|
|
24673
24673
|
agentId: resolvedAgentId,
|
|
@@ -26985,7 +26985,7 @@ function requestNudge(input, cfg = loadConfig(), deps) {
|
|
|
26985
26985
|
const { backbone, runner } = getAgentTurnRuntime();
|
|
26986
26986
|
const id = await enqueueAgentTurn(backbone, payload);
|
|
26987
26987
|
if (!isClaimableAgentTurnWorkId(id)) return;
|
|
26988
|
-
const { runMainAgentTurn } = await import("./agent-turn-execute-
|
|
26988
|
+
const { runMainAgentTurn } = await import("./agent-turn-execute-DYtSZF3l.js");
|
|
26989
26989
|
await runner.claimAndExecute({
|
|
26990
26990
|
workId: id,
|
|
26991
26991
|
execute: (claim) => runMainAgentTurn(claim.message.payload)
|
|
@@ -28268,7 +28268,7 @@ async function handleHeartbeatError(params) {
|
|
|
28268
28268
|
const AGENT_TURN_PROMPT = "Process the pending system events for this session.";
|
|
28269
28269
|
async function ackAnnounceExecuted(payload) {
|
|
28270
28270
|
if (payload.kind !== "announce") return;
|
|
28271
|
-
const { markSubagentAnnounceExecuted } = await import("./subagent-registry-
|
|
28271
|
+
const { markSubagentAnnounceExecuted } = await import("./subagent-registry-jIsL_HVh.js");
|
|
28272
28272
|
for (const runId of [payload.runId, ...payload.mergedRunIds ?? []]) try {
|
|
28273
28273
|
await markSubagentAnnounceExecuted(runId);
|
|
28274
28274
|
} catch {}
|
|
@@ -28515,7 +28515,7 @@ function normalizeSessionKey(value) {
|
|
|
28515
28515
|
function readSessionStore(storePath) {
|
|
28516
28516
|
try {
|
|
28517
28517
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
28518
|
-
const parsed =
|
|
28518
|
+
const parsed = JSON5.parse(raw);
|
|
28519
28519
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
28520
28520
|
} catch {}
|
|
28521
28521
|
return {};
|
|
@@ -28744,7 +28744,7 @@ const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
|
28744
28744
|
let subagentRegistryAccessPromise;
|
|
28745
28745
|
const STALLED_SIBLING_ANNOUNCE_HOLD_MS = 5 * 6e4;
|
|
28746
28746
|
function loadSubagentRegistryAccess() {
|
|
28747
|
-
if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-
|
|
28747
|
+
if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-jIsL_HVh.js").catch((err) => {
|
|
28748
28748
|
const message = err instanceof Error && err.message ? err.message : String(err);
|
|
28749
28749
|
defaultRuntime.log(`[warn] subagent registry access import failed: ${message}`);
|
|
28750
28750
|
subagentRegistryAccessPromise = void 0;
|
|
@@ -31599,7 +31599,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
31599
31599
|
await ensureOpenClawModelsJson(cfg);
|
|
31600
31600
|
} catch {}
|
|
31601
31601
|
try {
|
|
31602
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
31602
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DWw1ReX-.js");
|
|
31603
31603
|
const agentDir = resolveOpenClawAgentDir();
|
|
31604
31604
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
31605
31605
|
applyDiscoveredContextWindows({
|
|
@@ -42013,7 +42013,7 @@ async function createModelSelectionState(params) {
|
|
|
42013
42013
|
}
|
|
42014
42014
|
}
|
|
42015
42015
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
42016
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
42016
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-DHZjW8Vk.js");
|
|
42017
42017
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
42018
42018
|
const providerKey = normalizeProviderId(provider);
|
|
42019
42019
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -60454,7 +60454,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
60454
60454
|
return;
|
|
60455
60455
|
}
|
|
60456
60456
|
try {
|
|
60457
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
60457
|
+
const { deliverOutboundPayloads } = await import("./deliver-DBCz1GqU.js");
|
|
60458
60458
|
const outboundSession = buildOutboundSessionContext({
|
|
60459
60459
|
cfg: params.cfg,
|
|
60460
60460
|
sessionKey: params.sessionKey
|
|
@@ -65275,7 +65275,7 @@ async function describeStickerImage(params) {
|
|
|
65275
65275
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
65276
65276
|
try {
|
|
65277
65277
|
const buffer = await fs$1.readFile(imagePath);
|
|
65278
|
-
const { describeImageWithModel } = await import("./provider-image-
|
|
65278
|
+
const { describeImageWithModel } = await import("./provider-image-B_dJDOl5.js");
|
|
65279
65279
|
return (await describeImageWithModel({
|
|
65280
65280
|
buffer,
|
|
65281
65281
|
fileName: "sticker.webp",
|
|
@@ -66543,7 +66543,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
66543
66543
|
let transcript;
|
|
66544
66544
|
let carry;
|
|
66545
66545
|
if (needsPreflightTranscription) try {
|
|
66546
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
66546
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DlGohKMs.js");
|
|
66547
66547
|
const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
|
|
66548
66548
|
if (uploadable.length > 0) {
|
|
66549
66549
|
const preflight = await transcribeFirstAudio({
|
|
@@ -73680,23 +73680,23 @@ function createDefaultDeps() {
|
|
|
73680
73680
|
};
|
|
73681
73681
|
},
|
|
73682
73682
|
sendMessageTelegram: async (...args) => {
|
|
73683
|
-
const { sendMessageTelegram } = await import("./send-
|
|
73683
|
+
const { sendMessageTelegram } = await import("./send-Dvna5ey-.js");
|
|
73684
73684
|
return await sendMessageTelegram(...args);
|
|
73685
73685
|
},
|
|
73686
73686
|
sendMessageDiscord: async (...args) => {
|
|
73687
|
-
const { sendMessageDiscord } = await import("./send-
|
|
73687
|
+
const { sendMessageDiscord } = await import("./send-DO0C4Uva.js");
|
|
73688
73688
|
return await sendMessageDiscord(...args);
|
|
73689
73689
|
},
|
|
73690
73690
|
sendMessageSlack: async (...args) => {
|
|
73691
|
-
const { sendMessageSlack } = await import("./send-
|
|
73691
|
+
const { sendMessageSlack } = await import("./send-CeWqZTK0.js");
|
|
73692
73692
|
return await sendMessageSlack(...args);
|
|
73693
73693
|
},
|
|
73694
73694
|
sendMessageSignal: async (...args) => {
|
|
73695
|
-
const { sendMessageSignal } = await import("./send-
|
|
73695
|
+
const { sendMessageSignal } = await import("./send-xPV0QIjh.js");
|
|
73696
73696
|
return await sendMessageSignal(...args);
|
|
73697
73697
|
},
|
|
73698
73698
|
sendMessageIMessage: async (...args) => {
|
|
73699
|
-
const { sendMessageIMessage } = await import("./send-
|
|
73699
|
+
const { sendMessageIMessage } = await import("./send-CzcKgBBf.js");
|
|
73700
73700
|
return await sendMessageIMessage(...args);
|
|
73701
73701
|
}
|
|
73702
73702
|
};
|
|
@@ -85163,7 +85163,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
85163
85163
|
}
|
|
85164
85164
|
let commandsRegistry;
|
|
85165
85165
|
async function getCommandsRegistry() {
|
|
85166
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
85166
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-8sy0wsK_.js");
|
|
85167
85167
|
return commandsRegistry;
|
|
85168
85168
|
}
|
|
85169
85169
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -85493,14 +85493,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
85493
85493
|
const channelName = channelInfo?.name;
|
|
85494
85494
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
85495
85495
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
85496
|
-
import("./resolve-route-
|
|
85496
|
+
import("./resolve-route-6v1HVvWk.js"),
|
|
85497
85497
|
import("./inbound-context-BmQfexVy.js"),
|
|
85498
|
-
import("./provider-dispatcher-
|
|
85498
|
+
import("./provider-dispatcher-Co_hyl4q.js")
|
|
85499
85499
|
]);
|
|
85500
85500
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
85501
85501
|
import("./conversation-label-TAXJpeGu.js"),
|
|
85502
|
-
import("./reply-prefix-
|
|
85503
|
-
import("./session-meta-
|
|
85502
|
+
import("./reply-prefix-BQMEQam1.js"),
|
|
85503
|
+
import("./session-meta-n4SCcAbJ.js")
|
|
85504
85504
|
]);
|
|
85505
85505
|
const route = resolveAgentRoute({
|
|
85506
85506
|
cfg,
|
|
@@ -85565,9 +85565,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
85565
85565
|
});
|
|
85566
85566
|
const deliverSlashPayloads = async (replies) => {
|
|
85567
85567
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
85568
|
-
import("./replies-
|
|
85569
|
-
import("./chunk-
|
|
85570
|
-
import("./markdown-tables-
|
|
85568
|
+
import("./replies-B9uDLFOE.js"),
|
|
85569
|
+
import("./chunk-BTSnO1wn.js"),
|
|
85570
|
+
import("./markdown-tables-J4hZ7eWU.js")
|
|
85571
85571
|
]);
|
|
85572
85572
|
await deliverSlackSlashReplies({
|
|
85573
85573
|
replies,
|
|
@@ -85621,7 +85621,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
85621
85621
|
let nativeCommands = [];
|
|
85622
85622
|
if (nativeEnabled) {
|
|
85623
85623
|
reg = await getCommandsRegistry();
|
|
85624
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
85624
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-BOV3NIbU.js")).listSkillCommandsForAgents({ cfg }) : [];
|
|
85625
85625
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
85626
85626
|
skillCommands,
|
|
85627
85627
|
provider: "slack"
|
|
@@ -86140,7 +86140,7 @@ async function auditTelegramGroupMembership(params) {
|
|
|
86140
86140
|
groups: [],
|
|
86141
86141
|
elapsedMs: Date.now() - started
|
|
86142
86142
|
};
|
|
86143
|
-
const fetcher = params.proxyUrl ? (await import("./proxy-
|
|
86143
|
+
const fetcher = params.proxyUrl ? (await import("./proxy-DwbYzxBy.js")).makeProxyFetch(params.proxyUrl) : fetch;
|
|
86144
86144
|
const { fetchWithTimeout } = await import("./fetch-timeout-DyPq8Phs.js");
|
|
86145
86145
|
const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
|
|
86146
86146
|
const groups = [];
|
|
@@ -88674,7 +88674,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
88674
88674
|
let audioPreflightCarry;
|
|
88675
88675
|
const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
|
|
88676
88676
|
if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
|
|
88677
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
88677
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-DlGohKMs.js");
|
|
88678
88678
|
const preflight = await transcribeFirstAudio({
|
|
88679
88679
|
ctx: {
|
|
88680
88680
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -93076,7 +93076,7 @@ async function getMemorySearchManager(params) {
|
|
|
93076
93076
|
if (cached) return { manager: cached };
|
|
93077
93077
|
}
|
|
93078
93078
|
try {
|
|
93079
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
93079
|
+
const { QmdMemoryManager } = await import("./qmd-manager-CpV0SFnY.js");
|
|
93080
93080
|
const primary = await QmdMemoryManager.create({
|
|
93081
93081
|
cfg: params.cfg,
|
|
93082
93082
|
agentId: params.agentId,
|
|
@@ -93088,7 +93088,7 @@ async function getMemorySearchManager(params) {
|
|
|
93088
93088
|
const wrapper = new FallbackMemoryManager({
|
|
93089
93089
|
primary,
|
|
93090
93090
|
fallbackFactory: async () => {
|
|
93091
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
93091
|
+
const { MemoryIndexManager } = await import("./manager-ByaW_O4Y.js");
|
|
93092
93092
|
return await MemoryIndexManager.get(params);
|
|
93093
93093
|
}
|
|
93094
93094
|
}, () => {
|
|
@@ -93103,7 +93103,7 @@ async function getMemorySearchManager(params) {
|
|
|
93103
93103
|
}
|
|
93104
93104
|
}
|
|
93105
93105
|
try {
|
|
93106
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
93106
|
+
const { MemoryIndexManager } = await import("./manager-ByaW_O4Y.js");
|
|
93107
93107
|
return { manager: await MemoryIndexManager.get(params) };
|
|
93108
93108
|
} catch (err) {
|
|
93109
93109
|
return {
|
|
@@ -94150,7 +94150,7 @@ function createPluginRuntime(options = {}) {
|
|
|
94150
94150
|
workStates: readTaskWorkStates
|
|
94151
94151
|
},
|
|
94152
94152
|
resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
|
|
94153
|
-
sessions: { startUserRun: async (params) => (await import("./user-run-recording-
|
|
94153
|
+
sessions: { startUserRun: async (params) => (await import("./user-run-recording-DiKcNdjn.js")).startUserSessionRun(params) }
|
|
94154
94154
|
};
|
|
94155
94155
|
Object.defineProperty(runtime, "analysis", {
|
|
94156
94156
|
enumerable: true,
|
|
@@ -95656,7 +95656,7 @@ async function recordLoopOutcome(args) {
|
|
|
95656
95656
|
if (!args.ctx?.sessionKey) return;
|
|
95657
95657
|
try {
|
|
95658
95658
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-CuiQDC7d.js");
|
|
95659
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
95659
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-LsvZ1dIY.js");
|
|
95660
95660
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
95661
95661
|
sessionKey: args.ctx.sessionKey,
|
|
95662
95662
|
sessionId: args.ctx?.agentId
|
|
@@ -95683,8 +95683,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
95683
95683
|
const params = args.params;
|
|
95684
95684
|
if (args.ctx?.sessionKey) {
|
|
95685
95685
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-CuiQDC7d.js");
|
|
95686
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
95687
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
95686
|
+
const { logToolLoopAction } = await import("./diagnostic-Bni_8VyY.js");
|
|
95687
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-LsvZ1dIY.js");
|
|
95688
95688
|
const sessionState = getDiagnosticSessionState({
|
|
95689
95689
|
sessionKey: args.ctx.sessionKey,
|
|
95690
95690
|
sessionId: args.ctx?.agentId
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./paths-KIDAzMH-.js";
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./config-
|
|
2
|
+
import "./subsystem-CUUKL6Fr.js";
|
|
3
|
+
import "./agent-scope-BYp_CjdU.js";
|
|
4
|
+
import "./config-Biusjzx-.js";
|
|
5
5
|
import "./github-copilot-token-BzpcrxaW.js";
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./artifacts-
|
|
8
|
-
import "./redact-
|
|
9
|
-
import "./diagnostic-
|
|
6
|
+
import "./logger-D6KsqbNW.js";
|
|
7
|
+
import "./artifacts-BMLMg3MG.js";
|
|
8
|
+
import "./redact-C88Ryyfs.js";
|
|
9
|
+
import "./diagnostic-D6hSjxiv.js";
|
|
10
10
|
import "./diagnostic-session-state-BJKtT9MA.js";
|
|
11
|
-
import { a as enqueueCommandInLane, i as clearCommandLane, n as CommandLaneClearedError, o as getCommandLaneSnapshots, r as GatewayDrainingError, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-
|
|
11
|
+
import { a as enqueueCommandInLane, i as clearCommandLane, n as CommandLaneClearedError, o as getCommandLaneSnapshots, r as GatewayDrainingError, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-DFSOdqCK.js";
|
|
12
12
|
|
|
13
13
|
export { getQueueSize };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as logLaneTaskCompleted, n as logLaneDequeue, r as logLaneEnqueue, t as diag } from "./diagnostic-
|
|
1
|
+
import { i as logLaneTaskCompleted, n as logLaneDequeue, r as logLaneEnqueue, t as diag } from "./diagnostic-D6hSjxiv.js";
|
|
2
2
|
import { t as CommandLane } from "./lanes-CIgsHd2u.js";
|
|
3
3
|
|
|
4
4
|
//#region src/process/command-queue.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as __exportAll } from "./proxy-env-ubutfW07.js";
|
|
2
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
2
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-Dk57KVjE.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DLWRMvoo.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./paths-KIDAzMH-.js";
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./config-
|
|
2
|
+
import "./subsystem-CUUKL6Fr.js";
|
|
3
|
+
import "./agent-scope-BYp_CjdU.js";
|
|
4
|
+
import "./config-Biusjzx-.js";
|
|
5
5
|
import "./github-copilot-token-BzpcrxaW.js";
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./artifacts-
|
|
8
|
-
import { _ as resolveTextCommand, a as isCommandEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, i as getCommandDetection, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, o as isCommandMessage, p as normalizeCommandBody, r as findCommandByNativeName, s as isNativeCommandSurface, t as buildCommandText, u as listNativeCommandSpecs, v as serializeCommandArgs, y as shouldHandleTextCommands } from "./commands-registry-
|
|
6
|
+
import "./logger-D6KsqbNW.js";
|
|
7
|
+
import "./artifacts-BMLMg3MG.js";
|
|
8
|
+
import { _ as resolveTextCommand, a as isCommandEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, i as getCommandDetection, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, o as isCommandMessage, p as normalizeCommandBody, r as findCommandByNativeName, s as isNativeCommandSurface, t as buildCommandText, u as listNativeCommandSpecs, v as serializeCommandArgs, y as shouldHandleTextCommands } from "./commands-registry-N6f_lsxF.js";
|
|
9
9
|
import "./thinking-FnAYAFD8.js";
|
|
10
10
|
|
|
11
11
|
export { buildCommandText, buildCommandTextFromArgs, findCommandByNativeName, getCommandDetection, isCommandEnabled, isCommandMessage, isNativeCommandSurface, listChatCommands, listChatCommandsForConfig, listNativeCommandSpecs, listNativeCommandSpecsForConfig, maybeResolveTextAlias, normalizeCommandBody, parseCommandArgs, resolveCommandArgChoices, resolveCommandArgMenu, resolveTextCommand, serializeCommandArgs, shouldHandleTextCommands };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as escapeRegExp } from "./subsystem-
|
|
1
|
+
import { W as escapeRegExp } from "./subsystem-CUUKL6Fr.js";
|
|
2
2
|
import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
|
|
3
|
-
import { Jr as normalizeChannelId, Ot as getActivePluginRegistry, Xo as resolveConfiguredModelRef, dc as DEFAULT_MODEL, di as listChannelDocks, fc as DEFAULT_PROVIDER } from "./config-
|
|
3
|
+
import { Jr as normalizeChannelId, Ot as getActivePluginRegistry, Xo as resolveConfiguredModelRef, dc as DEFAULT_MODEL, di as listChannelDocks, fc as DEFAULT_PROVIDER } from "./config-Biusjzx-.js";
|
|
4
4
|
import { r as listThinkingLevels } from "./thinking-FnAYAFD8.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as expandHomePrefix, o as resolveOAuthDir, r as resolveConfigPath, s as resolveOAuthPath, t as DEFAULT_GATEWAY_PORT } from "./paths-KIDAzMH-.js";
|
|
2
|
-
import { $ as resolveUserPath, A as isPathInside$2, F as sanitizeHostExecEnv, I as MissingEnvVarError, K as isRecord$3, L as containsEnvVarReference, N as applyConfigEnvVars, R as resolveConfigEnvVars, S as openBoundaryFileSync, Y as normalizeE164, Z as resolveConfigDir, _ as resolveConfigIncludes, d as createFileLogWriter, g as readConfigIncludeFileWithGuards, h as INCLUDE_KEY, lt as logVerbose, m as ConfigIncludeError, n as stripAnsi, p as normalizeConfigPaths, rt as sleep, t as createSubsystemLogger, v as isBlockedObjectKey, vt as getChildLogger, y as isPathInside$1 } from "./subsystem-
|
|
2
|
+
import { $ as resolveUserPath, A as isPathInside$2, F as sanitizeHostExecEnv, I as MissingEnvVarError, K as isRecord$3, L as containsEnvVarReference, N as applyConfigEnvVars, R as resolveConfigEnvVars, S as openBoundaryFileSync, Y as normalizeE164, Z as resolveConfigDir, _ as resolveConfigIncludes, d as createFileLogWriter, g as readConfigIncludeFileWithGuards, h as INCLUDE_KEY, lt as logVerbose, m as ConfigIncludeError, n as stripAnsi, p as normalizeConfigPaths, rt as sleep, t as createSubsystemLogger, v as isBlockedObjectKey, vt as getChildLogger, y as isPathInside$1 } from "./subsystem-CUUKL6Fr.js";
|
|
3
3
|
import { t as isPlainObject$2 } from "./plain-object-BTbonVRI.js";
|
|
4
|
-
import { $ as normalizeOptionalAccountId, D as runExec, F as buildAgentMainSessionKey, H as normalizeAgentId, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, Q as normalizeAccountId$1, U as normalizeMainKey, Z as DEFAULT_ACCOUNT_ID, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as resolveAgentModelPrimaryValue, ot as parseAgentSessionKey, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, z as expandIdentityLinksToMatchKeys } from "./agent-scope-
|
|
4
|
+
import { $ as normalizeOptionalAccountId, D as runExec, F as buildAgentMainSessionKey, H as normalizeAgentId, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, Q as normalizeAccountId$1, U as normalizeMainKey, Z as DEFAULT_ACCOUNT_ID, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as resolveAgentModelPrimaryValue, ot as parseAgentSessionKey, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, z as expandIdentityLinksToMatchKeys } from "./agent-scope-BYp_CjdU.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-BzpcrxaW.js";
|
|
6
|
-
import { f as resolveStorePath, i as parseSessionArchiveTimestamp, l as resolveSessionTranscriptPath, n as isPrimarySessionTranscriptFileName, o as resolveDefaultSessionStorePath, p as runTasksWithConcurrency, r as isSessionArchiveArtifactName, s as resolveSessionFilePath, t as formatSessionArchiveTimestamp, u as resolveSessionTranscriptPathInDir } from "./artifacts-
|
|
6
|
+
import { f as resolveStorePath, i as parseSessionArchiveTimestamp, l as resolveSessionTranscriptPath, n as isPrimarySessionTranscriptFileName, o as resolveDefaultSessionStorePath, p as runTasksWithConcurrency, r as isSessionArchiveArtifactName, s as resolveSessionFilePath, t as formatSessionArchiveTimestamp, u as resolveSessionTranscriptPathInDir } from "./artifacts-BMLMg3MG.js";
|
|
7
7
|
import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-Byxk5Gak.js";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path, { join } from "node:path";
|
|
11
11
|
import util, { isDeepStrictEqual } from "node:util";
|
|
12
|
-
import
|
|
12
|
+
import JSON5 from "json5";
|
|
13
13
|
import os, { userInfo } from "node:os";
|
|
14
14
|
import fs$1, { appendFile, chmod, mkdir, open, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
15
15
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -26895,7 +26895,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
26895
26895
|
function normalizeDeps(overrides = {}) {
|
|
26896
26896
|
return {
|
|
26897
26897
|
fs: overrides.fs ?? fs,
|
|
26898
|
-
json5: overrides.json5 ??
|
|
26898
|
+
json5: overrides.json5 ?? JSON5,
|
|
26899
26899
|
env: overrides.env ?? process.env,
|
|
26900
26900
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
26901
26901
|
configPath: overrides.configPath ?? "",
|
|
@@ -26906,11 +26906,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
26906
26906
|
if (env !== process.env) return;
|
|
26907
26907
|
loadDotEnv({ quiet: true });
|
|
26908
26908
|
}
|
|
26909
|
-
function parseConfigJson5(raw, json5
|
|
26909
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
26910
26910
|
try {
|
|
26911
26911
|
return {
|
|
26912
26912
|
ok: true,
|
|
26913
|
-
parsed: json5
|
|
26913
|
+
parsed: json5.parse(raw)
|
|
26914
26914
|
};
|
|
26915
26915
|
} catch (err) {
|
|
26916
26916
|
return {
|