wednesdayai 0.5.1-dev.16 → 0.5.1-dev.18
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-RZ_86Hry.js → agent-turn-runner-BbAHw335.js} +4 -4
- package/dist/{agent-turn-runner-BZsRah2w.js → agent-turn-runner-DbGjY15w.js} +4 -4
- package/dist/{audio-preflight-N3IMUMV2.js → audio-preflight-Bzzhm_8M.js} +5 -5
- package/dist/{audio-preflight-DxDzbiex.js → audio-preflight-DwVUrXwm.js} +5 -5
- package/dist/{audio-transcription-runner-DnHLOuPn.js → audio-transcription-runner-BqDe95Pk.js} +1 -1
- package/dist/{audio-transcription-runner-BYWHnzZM.js → audio-transcription-runner-CucQYVFh.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/{chat-content-DkPcvI9w.js → chat-content-CiVemWYE.js} +3 -3
- package/dist/{chat-content-CNvs-3LS.js → chat-content-JEeLEtZh.js} +3 -3
- package/dist/{chrome-dFSo1_sF.js → chrome-4jTVlQpd.js} +8 -8
- package/dist/{chrome-glihifKi.js → chrome-JlEj4UqL.js} +8 -8
- package/dist/{command-queue-CZGi-eNz.js → command-queue-B5xNavS5.js} +1 -1
- package/dist/{command-queue-xOASo2xC.js → command-queue-BqcKAGb3.js} +1 -1
- package/dist/{deliver-89sP2UlJ.js → deliver-4e_ry_KS.js} +1 -1
- package/dist/{deliver-0c1sNiRV.js → deliver-CtKR5Z53.js} +1 -1
- package/dist/{diagnostic-BlH1fRey.js → diagnostic-DsMw44mB.js} +1 -1
- package/dist/{diagnostic-LSsbNt3a.js → diagnostic-RevY_JWz.js} +1 -1
- package/dist/extensionAPI.js +12 -12
- package/dist/llm-slug-generator.js +12 -12
- package/dist/{pi-embedded-u2Kfy5Yc.js → pi-embedded-BNT-QAI1.js} +28 -28
- package/dist/{pi-embedded-DPXBoFpV.js → pi-embedded-BQyFKsbG.js} +28 -28
- package/dist/{pi-embedded-utils-ANns_vi3.js → pi-embedded-utils-Cj4G6DXf.js} +1 -1
- package/dist/{pi-embedded-utils-B23GfjTd.js → pi-embedded-utils-DpdiiI1_.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-B5NskkwN.js → agent-scope-BNKfH4PO.js} +2 -2
- package/dist/plugin-sdk/agent-turn-execute-BtwZA8xZ.js +64 -0
- package/dist/plugin-sdk/agent-turn-runner-B-na91o6.js +11 -0
- package/dist/plugin-sdk/{agent-turn-runner-D6zuhc3x.js → agent-turn-runner-BX8slUKi.js} +7 -7
- package/dist/plugin-sdk/{api-key-rotation-BgVKnFNK.js → api-key-rotation-DxnVA8XA.js} +2 -2
- package/dist/plugin-sdk/audio-preflight-B9GZAMFR.js +31 -0
- package/dist/plugin-sdk/{audio-preflight-7cDIqUpv.js → audio-preflight-CvX0Mepv.js} +2 -2
- package/dist/plugin-sdk/{audio-transcription-runner-Dspe6XnQ.js → audio-transcription-runner-NSIl1-hE.js} +11 -11
- package/dist/plugin-sdk/{auth-profiles-RWEEYl9x.js → auth-profiles-xPuLg-Ts.js} +4 -4
- package/dist/plugin-sdk/{channel-activity-CfmLZYjg.js → channel-activity-dpmr5Ewa.js} +3 -3
- package/dist/plugin-sdk/{chat-content-lz5nB0Dk.js → chat-content-DTqQBk5e.js} +13 -13
- package/dist/plugin-sdk/{chrome-CcHQU0Zq.js → chrome-CxCTkgms.js} +5 -5
- package/dist/plugin-sdk/{chunk-mkMF7zht.js → chunk-CeMCqxxd.js} +3 -3
- package/dist/plugin-sdk/{chunk-BtSkc7X5.js → chunk-DFblUyaE.js} +5 -5
- package/dist/plugin-sdk/{command-detection-Bovqfh9a.js → command-detection-Cm_XvIcd.js} +86 -86
- package/dist/plugin-sdk/{command-queue-DXesJuYp.js → command-queue-CobGvPiO.js} +7 -7
- package/dist/plugin-sdk/{command-queue-FGvsQ46J.js → command-queue-yUH60n5W.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CYuJOtt_.js → commands-registry-BrhhPaI1.js} +5 -5
- package/dist/plugin-sdk/{commands-registry-DPvKRkVU.js → commands-registry-D7zSlI4V.js} +2 -2
- package/dist/plugin-sdk/{config-DFS9IfuV.js → config-Dpl28Wbv.js} +6 -6
- package/dist/plugin-sdk/{deliver-BM4M2XOC.js → deliver-Co5gQ0BP.js} +14 -14
- package/dist/plugin-sdk/deliver-DwkbtAs2.js +35 -0
- package/dist/plugin-sdk/{diagnostic-BzHN36OQ.js → diagnostic-Cl6WeD3-.js} +6 -6
- package/dist/plugin-sdk/{diagnostic-7xblU8HS.js → diagnostic-v-KCP_U_.js} +5 -5
- package/dist/plugin-sdk/{errors-BAcXagTa.js → errors-B671D37F.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BmM51-0j.js → fetch-guard-x6ULwjiF.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-Qut4VUn8.js → fs-safe-CR39I5to.js} +3 -3
- package/dist/plugin-sdk/{image-ops-B9MP8BwT.js → image-ops-C0wvHJkm.js} +1 -1
- package/dist/plugin-sdk/index.js +56 -56
- package/dist/plugin-sdk/{ir-zzX20lNR.js → ir-CCKaE0XJ.js} +5 -5
- package/dist/plugin-sdk/{local-roots-DaCmxeLQ.js → local-roots-Dt2M3Tx3.js} +7 -7
- package/dist/plugin-sdk/{logger-DYxRK_FZ.js → logger-F5PKgK4h.js} +1 -1
- package/dist/plugin-sdk/{manager-B8lCGe7-.js → manager-Czbx7cHg.js} +7 -7
- package/dist/plugin-sdk/manager-DGydobPd.js +16 -0
- package/dist/plugin-sdk/markdown-tables-B4MKOmoP.js +9 -0
- package/dist/plugin-sdk/{markdown-tables-Dy6XYCOC.js → markdown-tables-CKSfEg1T.js} +2 -2
- package/dist/plugin-sdk/{models-config-CyIW7EFn.js → models-config-35KMhsBx.js} +2 -2
- package/dist/plugin-sdk/{outbound-attachment-BJ25qtXi.js → outbound-attachment-Coi7K2o8.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Cr_8wxeu.js → path-alias-guards-DvB3vS9N.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-utils-cVx_IkvQ.js → pi-embedded-utils-Cx4Z_ugG.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-Bi2K65cS.js → pi-model-discovery-BDiCpSnY.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-DDOaWO1I.js → pi-model-discovery-BZOPm3iF.js} +5 -5
- package/dist/plugin-sdk/provider-dispatcher-DsZ6ecvu.js +64 -0
- package/dist/plugin-sdk/provider-image-B-6m2B1K.js +25 -0
- package/dist/plugin-sdk/{provider-image-D-7TPZTL.js → provider-image-B8rFHkce.js} +6 -6
- package/dist/plugin-sdk/provider-media-understanding.js +7 -7
- package/dist/plugin-sdk/proxy-BFnRHQ1U.js +7 -0
- package/dist/plugin-sdk/{proxy-K3jUjtIm.js → proxy-DhVCl72V.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Dt3HV6r3.js → proxy-fetch-BSTGvynk.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DQF6Es8n.js → pw-ai-eT_32QXn.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-CI6JzEMx.js → qmd-manager-zFIdwoiB.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-DeAYAjPX.js → query-expansion-CfwubrnO.js} +2 -2
- package/dist/plugin-sdk/{recorder-Cmd1QfIp.js → recorder-jbNHrXSA.js} +2 -2
- package/dist/plugin-sdk/{redact-C9Eu_AUI.js → redact-YbcPIGWf.js} +1 -1
- package/dist/plugin-sdk/{replies-HspT8uPZ.js → replies-BQ2CJqx6.js} +5 -5
- package/dist/plugin-sdk/replies-CmTfW-Ae.js +27 -0
- package/dist/plugin-sdk/{reply-directives-CFyT70tN.js → reply-directives-BCiPcayO.js} +2 -2
- package/dist/plugin-sdk/reply-prefix-30s91NpV.js +7 -0
- package/dist/plugin-sdk/{reply-prefix-Bf8Iqq8v.js → reply-prefix-DA4xCsnL.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-BTqHGcGA.js → resolve-route-CfAwbWm-.js} +4 -4
- package/dist/plugin-sdk/{resolve-route-TX8OHkXX.js → resolve-route-CynPv-gG.js} +5 -5
- package/dist/plugin-sdk/{runs-qPN3dste.js → runs-CHq_XjJE.js} +8 -8
- package/dist/plugin-sdk/runs-axjSK9pB.js +27 -0
- package/dist/plugin-sdk/{send-BkFZULSw.js → send-1nSFA5hU.js} +6 -6
- package/dist/plugin-sdk/{send-CrS08BJa.js → send-B3KoL1ix.js} +6 -6
- package/dist/plugin-sdk/send-BFNnQRgz.js +28 -0
- package/dist/plugin-sdk/{send-zMiRQF_f.js → send-BP_fAEAR.js} +7 -7
- package/dist/plugin-sdk/send-C7T0uaBc.js +25 -0
- package/dist/plugin-sdk/{send-CUk5eFdy.js → send-DQUbAvQZ.js} +19 -19
- package/dist/plugin-sdk/send-DcgBIS2A.js +24 -0
- package/dist/plugin-sdk/send-QAQnHDvz.js +23 -0
- package/dist/plugin-sdk/{send-nCrBT6D1.js → send-UlpWBoMF.js} +8 -8
- package/dist/plugin-sdk/{send-DpCVPwXs.js → send-dROySqRo.js} +15 -15
- package/dist/plugin-sdk/{session-context-DrHDq5MO.js → session-context-CEqbSKXD.js} +4 -4
- package/dist/plugin-sdk/{session-meta-HbDyrE-T.js → session-meta-Cter9rJ4.js} +1 -1
- package/dist/plugin-sdk/session-meta-RMny_54C.js +13 -0
- package/dist/plugin-sdk/{sessions-Cv47NoA7.js → sessions-B5FswZMC.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-CwS3fXyq.js → skill-commands-D-Q9dlBe.js} +4 -4
- package/dist/plugin-sdk/skill-commands-D6SiJGZm.js +13 -0
- package/dist/plugin-sdk/{skills-gR-1iTft.js → skills---POvmMh.js} +6 -6
- package/dist/plugin-sdk/{ssrf-iwCKkbHu.js → ssrf-CuvvzHKa.js} +1 -1
- package/dist/plugin-sdk/{store-nKIf4x6Y.js → store-B5Jssa25.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-ByyvABjT.js +64 -0
- package/dist/plugin-sdk/{subsystem-CPqF9wja.js → subsystem-C-lWCqvG.js} +4 -4
- package/dist/plugin-sdk/{tables-DBrKJpRY.js → tables-7k0_QsiP.js} +1 -1
- package/dist/plugin-sdk/{tokens-DdbQh5HH.js → tokens-Ctmmv-sn.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-DazBiexb.js → tool-loop-detection-ys8oxWQM.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-Dkk0xw_V.js → user-run-recording-1_bX-TS5.js} +2 -2
- package/dist/plugin-sdk/user-run-recording-DJ3u-fmX.js +11 -0
- package/dist/{provider-image-dZLYTAXA.js → provider-image-Co913OJ0.js} +1 -1
- package/dist/{provider-image-4O0GQflh.js → provider-image-DzH1RyUw.js} +1 -1
- package/dist/{pw-ai-CwDp8y27.js → pw-ai-CYuPrZq-.js} +1 -1
- package/dist/{pw-ai-DvQ7UYpM.js → pw-ai-CtLOvepG.js} +1 -1
- package/dist/{runs-BTH4DqX0.js → runs-BupQ7VMF.js} +3 -3
- package/dist/{runs-k-tp_1n5.js → runs-nmDad4UE.js} +3 -3
- package/dist/{send-B3YPYuhJ.js → send-DE283zvU.js} +1 -1
- package/dist/{send-Be9ofWlp.js → send-DVBEPy78.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/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/ui-surfaces/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-C1r7qAv-.js +0 -64
- package/dist/plugin-sdk/agent-turn-runner-BemiiJUf.js +0 -11
- package/dist/plugin-sdk/audio-preflight-BX44UIpd.js +0 -31
- package/dist/plugin-sdk/deliver-DQFHkZ1P.js +0 -35
- package/dist/plugin-sdk/manager-C2KMpDjD.js +0 -16
- package/dist/plugin-sdk/markdown-tables-CgtSPoJj.js +0 -9
- package/dist/plugin-sdk/provider-dispatcher-VBJ94yeP.js +0 -64
- package/dist/plugin-sdk/provider-image-5N9uFv5J.js +0 -25
- package/dist/plugin-sdk/proxy-LKdqVD6u.js +0 -7
- package/dist/plugin-sdk/replies-h_GykiAT.js +0 -27
- package/dist/plugin-sdk/reply-prefix-C38vv65Y.js +0 -7
- package/dist/plugin-sdk/runs-BWpJd7Rd.js +0 -27
- package/dist/plugin-sdk/send-BcDRm5Nn.js +0 -24
- package/dist/plugin-sdk/send-CyCZ6HDK.js +0 -25
- package/dist/plugin-sdk/send-DSXaj0vV.js +0 -28
- package/dist/plugin-sdk/send-OsAYbuPg.js +0 -23
- package/dist/plugin-sdk/session-meta-42oSyKeI.js +0 -13
- package/dist/plugin-sdk/skill-commands--nnnEtH2.js +0 -13
- package/dist/plugin-sdk/subagent-registry-DDvF08Vr.js +0 -64
- package/dist/plugin-sdk/user-run-recording-tGqe27Pj.js +0 -11
|
@@ -1,79 +1,79 @@
|
|
|
1
1
|
import { a as resolveGatewayLockDir, f as resolveRequiredHomeDir, l as resolveStateDir, n as STATE_DIR, o as resolveGatewayPort, r as resolveConfigPath, u as expandHomePrefix } from "./paths-oi7j9L8A.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$3, 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$3, 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-C-lWCqvG.js";
|
|
3
3
|
import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
|
|
4
|
-
import { $ as sessionKeyAgentMatches, A as resolveAgentModelFallbackValues, B as classifySessionKeyShape, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as DEVICE_SENDER_PREFIX, G as isValidAgentId, J as resolveAgentIdFromSessionKey, K as normalizeAgentId, L as buildAgentMainSessionKey, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as sanitizeAgentId, S as filterBootstrapFilesForSession, W as isKnownAgentMainSessionKey, X as resolveConfiguredCanonicalIdentity, Y as resolveCanonicalIdentity, Z as resolveThreadSessionKeys, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, ct as getSubagentDepth, d as resolveSessionAgentId, et as toAgentStoreSessionKey, f as resolveSessionAgentIds, ft as isSubagentSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, lt as isAcpSessionKey, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as resolveThreadParentSessionKey, n as listAgentIds, nt as normalizeAccountId$3, o as resolveAgentSkillsFilter, ot as WAKE_GATE_SESSION_KEY_SEGMENT, pt as parseAgentSessionKey, q as normalizeMainKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, st as deriveSessionChatType, t as hasConfiguredModelFallbacks, tt as DEFAULT_ACCOUNT_ID, u as resolveRunModelFallbacksOverride, ut as isCronSessionKey, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-
|
|
5
|
-
import { $a as parseModelRef, $o as resolveAuthStorePathForDisplay, Aa as unwrapKnownDispatchWrapperInvocation, Ai as isMarkdownCapableMessageChannel, Ao as markAuthProfileUsed, B as ASSISTANT_IDENTITY_COLORS, Ba as resolveSlackNativeStreaming, Bi as resolveSessionLockMaxHoldFromTimeout, Bn as resolveGroupSessionKey, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as DEFAULT_SAFE_BINS, Ci as mergeDeliveryContext, Cn as mergeSessionEntry, Co as resolveModelAuthMode, Cr as normalizeAtHashSlug, Cs as isTruthyEnvValue, Ct as normalizeAnyChannelId, Da as extractShellWrapperInlineCommand, Di as isDeliverableMessageChannel, Dn as parseSessionIndexRecordKey, Do as getSoonestCooldownExpiry, Dr as createTelegramActionGate, Dt as getActiveGatewayPluginRegistry, Ea as resolveCommandResolutionFromArgv, Ei as INTERNAL_MESSAGE_CHANNEL, En as parseDurationMs, Er as normalizeStringEntriesLower, Et as resolveChannelConfigId, Fa as resolveSafeBinProfiles, Fi as GATEWAY_CLIENT_IDS, Fn as resolveSessionFilePathOptions, Fo as describeUnknownError$1, Ft as createPluginRegistry, Ga as buildAllowedModelSet, Go as resolveCliName, Gr as listEnabledSignalAccounts, Hn as listChannelPlugins, Hr as resolveSlackReplyToMode, Ht as matchPluginCommand, Ia as applyMergePatch, Ii as GATEWAY_CLIENT_MODES, In as resolveSessionTranscriptPath, Io as isNonEmptyString, It as normalizePluginHttpPath, Ja as findNormalizedProviderValue, Ji as optionalStringEnum, Jo as dedupeProfileIds, Jr as resolveSignalAccount, Ka as buildConfiguredAllowlistKeys, Ki as channelTargetSchema, La as isSafeExecutableValue, Li as GATEWAY_CLIENT_NAMES, Lo as isRecord$2, Lt as buildPluginHealthReport, Ma as splitShellArgs, Mi as normalizeMessageChannel, Mn as SESSION_RUN_STORE_FILE_NAME, Mo as resolveApiKeyForProfile, Mr as resolveTelegramToken, Mt as setActivePluginRegistry, Na as SAFE_BIN_PROFILES, Ni as resolveGatewayMessageChannel, Nr as buildChannelAccountBindings, Nt as addRegisteredPluginApi, Oa as isDispatchWrapperExecutable, Oi as isGatewayMessageChannel, Oo as isProfileInCooldown, Or as listEnabledTelegramAccounts, Ot as getActivePluginRegistry, Pa as normalizeSafeBinProfileFixtures, Pi as resolveMessageChannel, Pn as resolveSessionFilePath, Po as resolveSecretRefValues, Pt as clearRegisteredPluginApis, Qa as normalizeProviderId, Qi as actionRequiresTarget, Ra as mapStreamingModeToSlackLegacyDraftStreamMode, Ri as normalizeAccountId$4, Rn as resolveStorePath, Ro as parseDotPath, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as splitCommandChain, Si as deliveryContextKey, Sn as DEFAULT_RESET_TRIGGERS, So as resolveEnvApiKey, Ss as resolveShellEnvFallbackTimeoutMs, St as listChatChannels, Ta as resolveAllowlistCandidatePath, Ti as normalizeSessionDeliveryFields, Tn as setSessionRuntimeModel, Tr as normalizeStringEntries, Ts as resolveOwnerDisplaySetting, Tt as normalizeChatChannelId, Ua as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Un as normalizeChannelId$1, Uo as runTasksWithConcurrency, Ur as resolveSlackAppToken, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as resolveSlackStreamingMode, Vi as readTaskWorkStates, Vn as getChannelPlugin, Vo as secretRefKey, Vr as resolveSlackAccount, Vt as listPluginCommands, Wa as resolveAgentMaxConcurrent, Wo as formatCliCommand, Wr as resolveSlackBotToken, Xa as modelKey, Xi as applyTargetToParams, Xo as markAuthProfileGood, Ya as isCliProvider, Yi as stringEnum, Yo as listProfilesForProvider, Za as normalizeModelRef$2, Zi as actionHasTarget, Zo as ensureAuthProfileStore, _ as resolveTelegramCustomCommands, _a as normalizeTrustedSafeBinDirs, _i as resolveChannelGroupRequireMention, _n as refreshConfiguredSessionBindingEntry, _o as buildUsageWithNoCost, _s as DEFAULT_CONTEXT_TOKENS, _t as safeStatSync, a as writeConfigFile, aa as RecoveryAdmissionError, ao as resolveThinkingDefault, ar as getChannelDock, as as readProcessElapsedSeconds, at as isPathWithinRoot, ba as buildEnforcedShellCommand, bi as resolveAccountEntry, bn as updateSessionStoreEntry, bo as requireApiKey, bs as VERSION, bt as CHAT_CHANNEL_ORDER, ca as setConfigOverride, cn as closeReplacedConfiguredSessionStorageRuntime, cr as normalizeSignalMessagingTarget, cs as normalizeSecretInput, ct as loadPluginManifestRegistry, da as parseConfigPath, do as retryAsync, ds as hasConfiguredSecretInput, dt as isBundledChannelEnabledByChannelConfig, en as createInternalHookEvent, eo as resolveConfiguredModelRef, er as parseSlackTarget, es as resolveOpenClawAgentDir, fa as setConfigValueAtPath, fi as listEnabledDiscordAccounts, fn as loadSessionStore, fo as OLLAMA_NATIVE_BASE_URL, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as listWritableExplicitTrustedSafeBinDirs, gi as resolveChannelGroupPolicy, gn as recordSessionMetaFromInbound, go as buildStreamErrorAssistantMessage, gs as splitTrailingAuthProfile, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as isTrustedSafeBinPath, hi as normalizeDiscordToken, hn as readSessionUpdatedAt, ho as buildAssistantMessageWithZeroUsage, hs as resolveSecretInputRef, ht as discoverOpenClawPlugins, ia as replaceBufferedPluginTaskPasses, in as getConversationReadQuery, io as resolveSubagentSpawnModelSelection, is as isPidAlive, it as isAvatarHttpUrl, ja as unwrapKnownShellMultiplexerInvocation, ji as listDeliverableMessageChannels, jn as SAFE_SESSION_ID_RE, jo as resolveProfilesUnavailableReason, jr as resolveTelegramAccount, jt as requireActivePluginRegistry, ka as isShellWrapperExecutable, ki as isInternalMessageChannel, ko as markAuthProfileFailure, kr as listTelegramAccountIds, kt as getActivePluginRegistryKey, la as unsetConfigOverride, li as resolveIMessageAccount, ln as commitPreparedConfiguredSessionStorageRuntimeActivation, lt as BUNDLED_ENABLED_BY_DEFAULT, ma as getTrustedSafeBinDirs, mi as resolveDiscordAccount, mn as prepareConfiguredSessionStorageRuntimeActivation, mo as buildAssistantMessage, mt as resolveMemorySlotDecision, n as loadConfig, na as discardBufferedPluginTaskPasses, ni as normalizeWhatsAppTarget, nn as StorageReadAccessError, no as resolveModelRefFromString, ns as withFileLock, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oa as getConfigOverrides, oi as resolveWhatsAppAccount, on as requireSessionStorageRuntime, or as listChannelDocks, os as resolveAuthProfileDisplayLabel, ot as isSupportedLocalAvatarExtension, pa as unsetConfigValueAtPath, pn as loadSessionStoreFromDisk, po as createOllamaStreamFn, ps as normalizeResolvedSecretInputString, pt as resolveEffectiveEnableState, qa as buildModelAliasIndex, qi as channelTargetsSchema, r as readConfigFileSnapshot, ra as listBufferedPluginTaskPasses, ri as hasAnyWhatsAppAuth, rn as createConversationReadQuery, ro as resolveReasoningDefault, rs as resolveProcessScopedMap, rt as isAvatarDataUrl, sa as resetConfigOverrides, sn as closeConfiguredSessionStorageRuntime, st as validateJsonSchemaValue, ti as isWhatsAppGroupJid, tn as triggerInternalHook, to as resolveDefaultModelForAgent, tr as resolveSlackChannelId, ua as getConfigValueAtPath, ui as createDiscordActionGate, un as getConfiguredSessionStorageRuntime, us as coerceSecretRef, ut as applyTestPluginDefaults, va as validateSafeBinArgv, vi as resolveChannelGroupToolsPolicy, vn as updateLastRoute, vo as getApiKeyForModel, vs as DEFAULT_MODEL, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as matchAllowlist, wi as normalizeDeliveryContext, wn as resolveFreshSessionTotalTokens, wo as resolveAuthProfileOrder, wr as normalizeHyphenSlug, ws as parseBooleanValue$1, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as isWindowsPlatform, xi as deliveryContextFromSession, xo as resolveApiKeyForProvider, xs as getShellPathFromLoginShell, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as analyzeShellCommand, yn as updateSessionStore, yo as getCustomProviderApiKey, ys as DEFAULT_PROVIDER, za as resolveDiscordPreviewStreamMode, zi as acquireSessionWriteLock, zn as deriveSessionMetaPatch, zt as executePluginCommand } from "./config-
|
|
4
|
+
import { $ as sessionKeyAgentMatches, A as resolveAgentModelFallbackValues, B as classifySessionKeyShape, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as DEVICE_SENDER_PREFIX, G as isValidAgentId, J as resolveAgentIdFromSessionKey, K as normalizeAgentId, L as buildAgentMainSessionKey, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as sanitizeAgentId, S as filterBootstrapFilesForSession, W as isKnownAgentMainSessionKey, X as resolveConfiguredCanonicalIdentity, Y as resolveCanonicalIdentity, Z as resolveThreadSessionKeys, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, ct as getSubagentDepth, d as resolveSessionAgentId, et as toAgentStoreSessionKey, f as resolveSessionAgentIds, ft as isSubagentSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, lt as isAcpSessionKey, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as resolveThreadParentSessionKey, n as listAgentIds, nt as normalizeAccountId$3, o as resolveAgentSkillsFilter, ot as WAKE_GATE_SESSION_KEY_SEGMENT, pt as parseAgentSessionKey, q as normalizeMainKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, st as deriveSessionChatType, t as hasConfiguredModelFallbacks, tt as DEFAULT_ACCOUNT_ID, u as resolveRunModelFallbacksOverride, ut as isCronSessionKey, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-BNKfH4PO.js";
|
|
5
|
+
import { $a as parseModelRef, $o as resolveAuthStorePathForDisplay, Aa as unwrapKnownDispatchWrapperInvocation, Ai as isMarkdownCapableMessageChannel, Ao as markAuthProfileUsed, B as ASSISTANT_IDENTITY_COLORS, Ba as resolveSlackNativeStreaming, Bi as resolveSessionLockMaxHoldFromTimeout, Bn as resolveGroupSessionKey, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as DEFAULT_SAFE_BINS, Ci as mergeDeliveryContext, Cn as mergeSessionEntry, Co as resolveModelAuthMode, Cr as normalizeAtHashSlug, Cs as isTruthyEnvValue, Ct as normalizeAnyChannelId, Da as extractShellWrapperInlineCommand, Di as isDeliverableMessageChannel, Dn as parseSessionIndexRecordKey, Do as getSoonestCooldownExpiry, Dr as createTelegramActionGate, Dt as getActiveGatewayPluginRegistry, Ea as resolveCommandResolutionFromArgv, Ei as INTERNAL_MESSAGE_CHANNEL, En as parseDurationMs, Er as normalizeStringEntriesLower, Et as resolveChannelConfigId, Fa as resolveSafeBinProfiles, Fi as GATEWAY_CLIENT_IDS, Fn as resolveSessionFilePathOptions, Fo as describeUnknownError$1, Ft as createPluginRegistry, Ga as buildAllowedModelSet, Go as resolveCliName, Gr as listEnabledSignalAccounts, Hn as listChannelPlugins, Hr as resolveSlackReplyToMode, Ht as matchPluginCommand, Ia as applyMergePatch, Ii as GATEWAY_CLIENT_MODES, In as resolveSessionTranscriptPath, Io as isNonEmptyString, It as normalizePluginHttpPath, Ja as findNormalizedProviderValue, Ji as optionalStringEnum, Jo as dedupeProfileIds, Jr as resolveSignalAccount, Ka as buildConfiguredAllowlistKeys, Ki as channelTargetSchema, La as isSafeExecutableValue, Li as GATEWAY_CLIENT_NAMES, Lo as isRecord$2, Lt as buildPluginHealthReport, Ma as splitShellArgs, Mi as normalizeMessageChannel, Mn as SESSION_RUN_STORE_FILE_NAME, Mo as resolveApiKeyForProfile, Mr as resolveTelegramToken, Mt as setActivePluginRegistry, Na as SAFE_BIN_PROFILES, Ni as resolveGatewayMessageChannel, Nr as buildChannelAccountBindings, Nt as addRegisteredPluginApi, Oa as isDispatchWrapperExecutable, Oi as isGatewayMessageChannel, Oo as isProfileInCooldown, Or as listEnabledTelegramAccounts, Ot as getActivePluginRegistry, Pa as normalizeSafeBinProfileFixtures, Pi as resolveMessageChannel, Pn as resolveSessionFilePath, Po as resolveSecretRefValues, Pt as clearRegisteredPluginApis, Qa as normalizeProviderId, Qi as actionRequiresTarget, Ra as mapStreamingModeToSlackLegacyDraftStreamMode, Ri as normalizeAccountId$4, Rn as resolveStorePath, Ro as parseDotPath, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as splitCommandChain, Si as deliveryContextKey, Sn as DEFAULT_RESET_TRIGGERS, So as resolveEnvApiKey, Ss as resolveShellEnvFallbackTimeoutMs, St as listChatChannels, Ta as resolveAllowlistCandidatePath, Ti as normalizeSessionDeliveryFields, Tn as setSessionRuntimeModel, Tr as normalizeStringEntries, Ts as resolveOwnerDisplaySetting, Tt as normalizeChatChannelId, Ua as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Un as normalizeChannelId$1, Uo as runTasksWithConcurrency, Ur as resolveSlackAppToken, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as resolveSlackStreamingMode, Vi as readTaskWorkStates, Vn as getChannelPlugin, Vo as secretRefKey, Vr as resolveSlackAccount, Vt as listPluginCommands, Wa as resolveAgentMaxConcurrent, Wo as formatCliCommand, Wr as resolveSlackBotToken, Xa as modelKey, Xi as applyTargetToParams, Xo as markAuthProfileGood, Ya as isCliProvider, Yi as stringEnum, Yo as listProfilesForProvider, Za as normalizeModelRef$2, Zi as actionHasTarget, Zo as ensureAuthProfileStore, _ as resolveTelegramCustomCommands, _a as normalizeTrustedSafeBinDirs, _i as resolveChannelGroupRequireMention, _n as refreshConfiguredSessionBindingEntry, _o as buildUsageWithNoCost, _s as DEFAULT_CONTEXT_TOKENS, _t as safeStatSync, a as writeConfigFile, aa as RecoveryAdmissionError, ao as resolveThinkingDefault, ar as getChannelDock, as as readProcessElapsedSeconds, at as isPathWithinRoot, ba as buildEnforcedShellCommand, bi as resolveAccountEntry, bn as updateSessionStoreEntry, bo as requireApiKey, bs as VERSION, bt as CHAT_CHANNEL_ORDER, ca as setConfigOverride, cn as closeReplacedConfiguredSessionStorageRuntime, cr as normalizeSignalMessagingTarget, cs as normalizeSecretInput, ct as loadPluginManifestRegistry, da as parseConfigPath, do as retryAsync, ds as hasConfiguredSecretInput, dt as isBundledChannelEnabledByChannelConfig, en as createInternalHookEvent, eo as resolveConfiguredModelRef, er as parseSlackTarget, es as resolveOpenClawAgentDir, fa as setConfigValueAtPath, fi as listEnabledDiscordAccounts, fn as loadSessionStore, fo as OLLAMA_NATIVE_BASE_URL, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as listWritableExplicitTrustedSafeBinDirs, gi as resolveChannelGroupPolicy, gn as recordSessionMetaFromInbound, go as buildStreamErrorAssistantMessage, gs as splitTrailingAuthProfile, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as isTrustedSafeBinPath, hi as normalizeDiscordToken, hn as readSessionUpdatedAt, ho as buildAssistantMessageWithZeroUsage, hs as resolveSecretInputRef, ht as discoverOpenClawPlugins, ia as replaceBufferedPluginTaskPasses, in as getConversationReadQuery, io as resolveSubagentSpawnModelSelection, is as isPidAlive, it as isAvatarHttpUrl, ja as unwrapKnownShellMultiplexerInvocation, ji as listDeliverableMessageChannels, jn as SAFE_SESSION_ID_RE, jo as resolveProfilesUnavailableReason, jr as resolveTelegramAccount, jt as requireActivePluginRegistry, ka as isShellWrapperExecutable, ki as isInternalMessageChannel, ko as markAuthProfileFailure, kr as listTelegramAccountIds, kt as getActivePluginRegistryKey, la as unsetConfigOverride, li as resolveIMessageAccount, ln as commitPreparedConfiguredSessionStorageRuntimeActivation, lt as BUNDLED_ENABLED_BY_DEFAULT, ma as getTrustedSafeBinDirs, mi as resolveDiscordAccount, mn as prepareConfiguredSessionStorageRuntimeActivation, mo as buildAssistantMessage, mt as resolveMemorySlotDecision, n as loadConfig, na as discardBufferedPluginTaskPasses, ni as normalizeWhatsAppTarget, nn as StorageReadAccessError, no as resolveModelRefFromString, ns as withFileLock, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oa as getConfigOverrides, oi as resolveWhatsAppAccount, on as requireSessionStorageRuntime, or as listChannelDocks, os as resolveAuthProfileDisplayLabel, ot as isSupportedLocalAvatarExtension, pa as unsetConfigValueAtPath, pn as loadSessionStoreFromDisk, po as createOllamaStreamFn, ps as normalizeResolvedSecretInputString, pt as resolveEffectiveEnableState, qa as buildModelAliasIndex, qi as channelTargetsSchema, r as readConfigFileSnapshot, ra as listBufferedPluginTaskPasses, ri as hasAnyWhatsAppAuth, rn as createConversationReadQuery, ro as resolveReasoningDefault, rs as resolveProcessScopedMap, rt as isAvatarDataUrl, sa as resetConfigOverrides, sn as closeConfiguredSessionStorageRuntime, st as validateJsonSchemaValue, ti as isWhatsAppGroupJid, tn as triggerInternalHook, to as resolveDefaultModelForAgent, tr as resolveSlackChannelId, ua as getConfigValueAtPath, ui as createDiscordActionGate, un as getConfiguredSessionStorageRuntime, us as coerceSecretRef, ut as applyTestPluginDefaults, va as validateSafeBinArgv, vi as resolveChannelGroupToolsPolicy, vn as updateLastRoute, vo as getApiKeyForModel, vs as DEFAULT_MODEL, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as matchAllowlist, wi as normalizeDeliveryContext, wn as resolveFreshSessionTotalTokens, wo as resolveAuthProfileOrder, wr as normalizeHyphenSlug, ws as parseBooleanValue$1, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as isWindowsPlatform, xi as deliveryContextFromSession, xo as resolveApiKeyForProvider, xs as getShellPathFromLoginShell, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as analyzeShellCommand, yn as updateSessionStore, yo as getCustomProviderApiKey, ys as DEFAULT_PROVIDER, za as resolveDiscordPreviewStreamMode, zi as acquireSessionWriteLock, zn as deriveSessionMetaPatch, zt as executePluginCommand } from "./config-Dpl28Wbv.js";
|
|
6
6
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-BnKQ-aRX.js";
|
|
7
|
-
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-
|
|
7
|
+
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-F5PKgK4h.js";
|
|
8
8
|
import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-DA_qUFFI.js";
|
|
9
|
-
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-
|
|
10
|
-
import { A as eventOrder, At as resolveSessionResetPolicy, C as buildPluginRuntimeIdentity, Ct as hasNonzeroUsage, Dt as resolveSessionKey, E as resolveProviderRuntimeIdentity, Et as SESSION_RUN_STATUSES, Ft as resolveExplicitAgentSessionKey, G as deriveLegacyActorIdentity, H as buildEqualityProjection, I as validateCtxStorage, It as resolveMainSessionKey, J as sanitizeJsonb, K as sanitizeAppendEntry, L as TASK_RUN_MODES, Lt as isPrimarySessionTranscriptFileName, M as parseInlineDirectives$1, Mt as resolveThreadFlag, N as createSessionStorageRuntimeFromConfig, Nt as canonicalizeMainSessionAlias, Ot as evaluateSessionFreshness, P as resolveSessionStorageConfig, Pt as resolveAgentMainSessionKey, R as TASK_RUN_STATUSES, Rt as isSessionArchiveArtifactName, S as promptBuildResultToContribution, St as deriveSessionTotalTokens, T as resolveProviderPromptCacheKey, Tt as normalizeUsage, U as CREATE_CTX_STORAGE_OWNER_SQL, W as HIDDEN_HEARTBEAT_CUSTOM_TYPE, X as userIdFromSessionKey, Y as sha256, Z as createCurrentUserPromptEnvelope, _ as normalizeInputProvenance, _t as normalizeHttpWebhookUrl, a as resolveMirroredTranscriptText, at as renderInboundUserContext, b as initializeGlobalHookRunner, bt as parseAbsoluteTimeMs, c as drainPendingPrimaryWrites, ct as isRepresentableEpochMs, d as sanitizeToolCallInputs, dt as formatMessageStamp, et as mergePromptContributions, f as sanitizeToolUseResultPairing, g as hasInterSessionUserProvenance, gt as inferLegacyName, h as INPUT_PROVENANCE_KIND_VALUES, ht as resolveSenderLabel, i as appendAssistantMessageToSessionTranscript, it as collectInboundUserContext, j as pickLeaf, jt as resolveSessionResetType, k as DB_SESSION_HYDRATION_LIMIT, kt as resolveChannelResetConfig, l as guardSessionManager, lt as messageTime, m as sanitizeToolCallIdsForCloudCodeAssist, mt as resolveTimezone, n as parseSessionThreadInfo, o as openDbSessionManager, ot as attachMessageIngress, p as stripToolResultDetails, pt as formatZonedTimestamp, q as extractLegacyTranscriptEntryFields, r as resolveAndPersistSessionFile, rt as buildInboundMetaSystemPrompt, s as runSerializedBySession, st as getMessageIngress, t as extractDeliveryInfo, tt as toJsonValue$1, u as repairToolUseResultPairing, ut as stripMessageCarriers, v as getGlobalHookRunner, vt as normalizeCronStaggerMs, w as buildPluginTurnIdentity, wt as makeZeroUsageSnapshot, x as hasHookForPlugin, xt as derivePromptTokens, y as getGlobalPluginRegistry, yt as resolveDefaultCronStaggerMs } from "./sessions-
|
|
9
|
+
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-UlpWBoMF.js";
|
|
10
|
+
import { A as eventOrder, At as resolveSessionResetPolicy, C as buildPluginRuntimeIdentity, Ct as hasNonzeroUsage, Dt as resolveSessionKey, E as resolveProviderRuntimeIdentity, Et as SESSION_RUN_STATUSES, Ft as resolveExplicitAgentSessionKey, G as deriveLegacyActorIdentity, H as buildEqualityProjection, I as validateCtxStorage, It as resolveMainSessionKey, J as sanitizeJsonb, K as sanitizeAppendEntry, L as TASK_RUN_MODES, Lt as isPrimarySessionTranscriptFileName, M as parseInlineDirectives$1, Mt as resolveThreadFlag, N as createSessionStorageRuntimeFromConfig, Nt as canonicalizeMainSessionAlias, Ot as evaluateSessionFreshness, P as resolveSessionStorageConfig, Pt as resolveAgentMainSessionKey, R as TASK_RUN_STATUSES, Rt as isSessionArchiveArtifactName, S as promptBuildResultToContribution, St as deriveSessionTotalTokens, T as resolveProviderPromptCacheKey, Tt as normalizeUsage, U as CREATE_CTX_STORAGE_OWNER_SQL, W as HIDDEN_HEARTBEAT_CUSTOM_TYPE, X as userIdFromSessionKey, Y as sha256, Z as createCurrentUserPromptEnvelope, _ as normalizeInputProvenance, _t as normalizeHttpWebhookUrl, a as resolveMirroredTranscriptText, at as renderInboundUserContext, b as initializeGlobalHookRunner, bt as parseAbsoluteTimeMs, c as drainPendingPrimaryWrites, ct as isRepresentableEpochMs, d as sanitizeToolCallInputs, dt as formatMessageStamp, et as mergePromptContributions, f as sanitizeToolUseResultPairing, g as hasInterSessionUserProvenance, gt as inferLegacyName, h as INPUT_PROVENANCE_KIND_VALUES, ht as resolveSenderLabel, i as appendAssistantMessageToSessionTranscript, it as collectInboundUserContext, j as pickLeaf, jt as resolveSessionResetType, k as DB_SESSION_HYDRATION_LIMIT, kt as resolveChannelResetConfig, l as guardSessionManager, lt as messageTime, m as sanitizeToolCallIdsForCloudCodeAssist, mt as resolveTimezone, n as parseSessionThreadInfo, o as openDbSessionManager, ot as attachMessageIngress, p as stripToolResultDetails, pt as formatZonedTimestamp, q as extractLegacyTranscriptEntryFields, r as resolveAndPersistSessionFile, rt as buildInboundMetaSystemPrompt, s as runSerializedBySession, st as getMessageIngress, t as extractDeliveryInfo, tt as toJsonValue$1, u as repairToolUseResultPairing, ut as stripMessageCarriers, v as getGlobalHookRunner, vt as normalizeCronStaggerMs, w as buildPluginTurnIdentity, wt as makeZeroUsageSnapshot, x as hasHookForPlugin, xt as derivePromptTokens, y as getGlobalPluginRegistry, yt as resolveDefaultCronStaggerMs } from "./sessions-B5FswZMC.js";
|
|
11
11
|
import { a as isDiagnosticsEnabled, i as emitDiagnosticEvent } from "./diagnostic-events-Ba8-RH3Z.js";
|
|
12
|
-
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-
|
|
13
|
-
import { a as formatUncaughtError, c as readErrorName, i as formatErrorMessage, o as hasErrnoCode, r as formatErrorChainMessage, t as collectErrorGraphCandidates } from "./errors-
|
|
12
|
+
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-YbcPIGWf.js";
|
|
13
|
+
import { a as formatUncaughtError, c as readErrorName, i as formatErrorMessage, o as hasErrnoCode, r as formatErrorChainMessage, t as collectErrorGraphCandidates } from "./errors-B671D37F.js";
|
|
14
14
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-C9cNWasT.js";
|
|
15
15
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-BZzAoyap.js";
|
|
16
16
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BAyIy498.js";
|
|
17
|
-
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-
|
|
17
|
+
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-dpmr5Ewa.js";
|
|
18
18
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DNSaiajj.js";
|
|
19
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
20
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
21
|
-
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-
|
|
22
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
23
|
-
import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-
|
|
24
|
-
import { r as makeProxyFetch } from "./proxy-fetch-
|
|
19
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DvB3vS9N.js";
|
|
20
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-CR39I5to.js";
|
|
21
|
+
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-C0wvHJkm.js";
|
|
22
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-x6ULwjiF.js";
|
|
23
|
+
import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-CuvvzHKa.js";
|
|
24
|
+
import { r as makeProxyFetch } from "./proxy-fetch-BSTGvynk.js";
|
|
25
25
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-r2f8797y.js";
|
|
26
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
27
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
26
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-Dt2M3Tx3.js";
|
|
27
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-CCKaE0XJ.js";
|
|
28
28
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-CTMKhqLk.js";
|
|
29
|
-
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-
|
|
30
|
-
import { t as resolveMarkdownTableMode } from "./markdown-tables-
|
|
31
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
32
|
-
import { a as enqueueAgentTurn, c as peekDelayedAgentTurn, i as clearDelayedReleaseHold, l as setDelayedReleaseHold, n as tryGetAgentTurnRuntime, o as isClaimableAgentTurnWorkId, p as KeyedAsyncQueue, r as agentTurnIdempotencyKey, s as mergeDelayedAgentTurn, t as getAgentTurnRuntime, u as WORKSPACE_LANE_DENIED_REASON } from "./agent-turn-runner-
|
|
33
|
-
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-
|
|
34
|
-
import { $ as resolveTelegramStreamMode, A as splitTelegramCaption, B as buildTelegramParentPeer, C as recordApiRequest, Ct as firstDefined$1, D as registerAccount, E as recordWebhook, Et as resolveGroupAllowFromSources, F as buildGroupLabel, G as extractTelegramLocation, H as buildTypingThreadParams, I as buildSenderLabel, J as resolveTelegramDirectPeerId, K as hasBotMention, L as buildSenderName, M as withTelegramApiErrorLogging, N as loadCronStore, O as releaseAccountOwner, P as resolveCronStorePath, Q as resolveTelegramReplyId, R as buildTelegramGroupFrom, S as getTelegramFleetSupervisor, St as listPairingChannels, T as recordUpdate, Tt as mergeDmAllowFromSources, U as describeReplyTarget, V as buildTelegramThreadParams, W as expandTextLinks, X as resolveTelegramGroupAllowFromContext, Y as resolveTelegramForumThreadId, Z as resolveTelegramMediaPlaceholder, _ as markdownToTelegramChunks, _t as removeChannelAllowFromStoreEntry, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as wrapFileReferencesInHtml, bt as writeJsonFileAtomically, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as extractTelegramErrorText, et as resolveTelegramThreadSpec, f as isDefiniteTelegramRequestNonDeliveryError, g as isTelegramEditMayHaveLandedError, h as isTelegramClientRejection, ht as readChannelAllowFromStore, i as editMessageTelegram, it as resolveSenderAllowMatch$1, j as formatTelegramErrorMessage, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as formatLocationText, m as isSafeToRetrySendError, mt as addChannelAllowFromStoreEntry, n as createForumTopicTelegram, nt as normalizeAllowFrom$2, o as sendMessageTelegram, p as isRecoverableTelegramNetworkError, q as normalizeForwardedContext, r as deleteMessageTelegram, rt as normalizeDmAllowFromWithStore$1, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as isSenderAllowed$1, u as wasSentByBot, ut as toLocationContext, v as markdownToTelegramHtml, vt as upsertChannelPairingRequest, w as recordState, wt as isSenderIdAllowed, x as fingerprintTelegramToken, xt as getPairingAdapter, y as renderTelegramHtmlText, yt as readJsonFileWithFallback, z as buildTelegramGroupPeerId } from "./send-
|
|
29
|
+
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-CeMCqxxd.js";
|
|
30
|
+
import { t as resolveMarkdownTableMode } from "./markdown-tables-CKSfEg1T.js";
|
|
31
|
+
import { t as convertMarkdownTables } from "./tables-7k0_QsiP.js";
|
|
32
|
+
import { a as enqueueAgentTurn, c as peekDelayedAgentTurn, i as clearDelayedReleaseHold, l as setDelayedReleaseHold, n as tryGetAgentTurnRuntime, o as isClaimableAgentTurnWorkId, p as KeyedAsyncQueue, r as agentTurnIdempotencyKey, s as mergeDelayedAgentTurn, t as getAgentTurnRuntime, u as WORKSPACE_LANE_DENIED_REASON } from "./agent-turn-runner-BX8slUKi.js";
|
|
33
|
+
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-B3KoL1ix.js";
|
|
34
|
+
import { $ as resolveTelegramStreamMode, A as splitTelegramCaption, B as buildTelegramParentPeer, C as recordApiRequest, Ct as firstDefined$1, D as registerAccount, E as recordWebhook, Et as resolveGroupAllowFromSources, F as buildGroupLabel, G as extractTelegramLocation, H as buildTypingThreadParams, I as buildSenderLabel, J as resolveTelegramDirectPeerId, K as hasBotMention, L as buildSenderName, M as withTelegramApiErrorLogging, N as loadCronStore, O as releaseAccountOwner, P as resolveCronStorePath, Q as resolveTelegramReplyId, R as buildTelegramGroupFrom, S as getTelegramFleetSupervisor, St as listPairingChannels, T as recordUpdate, Tt as mergeDmAllowFromSources, U as describeReplyTarget, V as buildTelegramThreadParams, W as expandTextLinks, X as resolveTelegramGroupAllowFromContext, Y as resolveTelegramForumThreadId, Z as resolveTelegramMediaPlaceholder, _ as markdownToTelegramChunks, _t as removeChannelAllowFromStoreEntry, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as wrapFileReferencesInHtml, bt as writeJsonFileAtomically, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as extractTelegramErrorText, et as resolveTelegramThreadSpec, f as isDefiniteTelegramRequestNonDeliveryError, g as isTelegramEditMayHaveLandedError, h as isTelegramClientRejection, ht as readChannelAllowFromStore, i as editMessageTelegram, it as resolveSenderAllowMatch$1, j as formatTelegramErrorMessage, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as formatLocationText, m as isSafeToRetrySendError, mt as addChannelAllowFromStoreEntry, n as createForumTopicTelegram, nt as normalizeAllowFrom$2, o as sendMessageTelegram, p as isRecoverableTelegramNetworkError, q as normalizeForwardedContext, r as deleteMessageTelegram, rt as normalizeDmAllowFromWithStore$1, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as isSenderAllowed$1, u as wasSentByBot, ut as toLocationContext, v as markdownToTelegramHtml, vt as upsertChannelPairingRequest, w as recordState, wt as isSenderIdAllowed, x as fingerprintTelegramToken, xt as getPairingAdapter, y as renderTelegramHtmlText, yt as readJsonFileWithFallback, z as buildTelegramGroupPeerId } from "./send-dROySqRo.js";
|
|
35
35
|
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-6tlCSeCB.js";
|
|
36
|
-
import { $ as resolveToolProfilePolicy, A as parseImageSizeError, B as resolveProfile, C as isFailoverAssistantError, D as isRawApiErrorPayload, E as isRateLimitAssistantError, F as resolveSandboxContext, G as applyOwnerOnlyToolPolicy, H as ensureBrowserControlAuth, I as resolveSandboxRuntimeStatus, J as expandPolicyWithPluginGroups, K as buildPluginToolGroups, L as createBrowserRouteContext, M as isAuthPermanentErrorMessage, N as isTimeoutErrorMessage, O as isTransientHttpError, P as ensureSandboxWorkspaceForSession, Q as normalizeToolName, R as registerBrowserRoutes, S as isContextOverflowError, T as isLikelyContextOverflowError, U as resolveBrowserControlAuth, V as getBridgeAuthForPort, W as resolveSandboxConfigForAgent, X as stripPluginOnlyAllowlist, Y as mergeAlsoAllowPolicy, Z as expandToolGroups, _ as getApiErrorPayloadFingerprint, at as sanitizeGoogleTurnOrdering, b as isCloudCodeAssistFormatError, c as sanitizeSessionMessagesImages, ct as sanitizeImageBlocks, d as isGoogleModelApi, dt as canonicalizeBase64, et as compileGlobPatterns, f as BILLING_ERROR_USER_MESSAGE, ft as estimateBase64DecodedBytes, g as formatRawAssistantErrorForUi, h as formatBillingErrorMessage, i as pickFallbackThinkingLevel, it as resolveBootstrapTotalMaxChars, j as sanitizeUserFacingText, k as parseImageDimensionError, l as downgradeOpenAIFunctionCallReasoningPairs, lt as sanitizeToolResultImages, m as formatAssistantErrorText, n as validateAnthropicTurns, nt as buildBootstrapContextFiles, o as isMessagingToolDuplicateNormalized, ot as resolveGatewayCredentialsFromConfig, p as classifyFailoverReason, q as collectExplicitAllowlist, r as validateGeminiTurns, rt as resolveBootstrapMaxChars, s as normalizeTextForComparison, st as trimToUndefined$1, t as extractTextFromChatContent, tt as matchesAnyGlobPattern, u as downgradeOpenAIReasoningBlocks, ut as resolveImageSanitizationLimits, v as isAuthAssistantError, w as isFailoverErrorMessage, x as isCompactionFailureError, y as isBillingAssistantError, z as resolveBrowserConfig } from "./chat-content-
|
|
37
|
-
import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, r as normalizeSlackOutboundText, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-
|
|
38
|
-
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-
|
|
39
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-
|
|
40
|
-
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
41
|
-
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-
|
|
42
|
-
import { a as skillsSnapshotSourceDiffers, c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills
|
|
43
|
-
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-
|
|
44
|
-
import { A as normalizeTargetForProvider, C as isRenderablePayload, D as resolveReplyToMode, E as createReplyToModeFilterForChannel, M as transcriptEntriesToMessages, O as buildTargetResolverSignature, S as filterMessagingToolMediaDuplicates, T as shouldSuppressReasoningPayload, _ as sleepWithAbort, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as loadCombinedSessionStoreForGateway, d as countToolResults, f as extractToolCallNames, g as computeBackoff, h as resolveContextTokensForModel, i as normalizeOutboundPayloadsForJson, j as readFullTranscriptEntriesFromBackend, k as normalizeChannelTargetInput, l as capArrayByJsonBytes, m as lookupContextTokens, n as formatOutboundPayloadLog, o as throwIfAborted, p as jsonUtf8Bytes, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as stripLeadingInboundMetadata, v as loadChannelOutboundAdapter, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-
|
|
45
|
-
import { a as deriveInboundMessageHookContext, c as toInternalMessageTranscribedContext, d as fireAndForgetHook, i as createMessageSentEmitter, l as toPluginMessageContext, n as resolveOutboundSessionId, o as toInternalMessagePreprocessedContext, r as applyMessageSendingHook, s as toInternalMessageReceivedContext, t as buildOutboundSessionContext, u as toPluginMessageReceivedEvent } from "./session-context-
|
|
46
|
-
import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
47
|
-
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-
|
|
36
|
+
import { $ as resolveToolProfilePolicy, A as parseImageSizeError, B as resolveProfile, C as isFailoverAssistantError, D as isRawApiErrorPayload, E as isRateLimitAssistantError, F as resolveSandboxContext, G as applyOwnerOnlyToolPolicy, H as ensureBrowserControlAuth, I as resolveSandboxRuntimeStatus, J as expandPolicyWithPluginGroups, K as buildPluginToolGroups, L as createBrowserRouteContext, M as isAuthPermanentErrorMessage, N as isTimeoutErrorMessage, O as isTransientHttpError, P as ensureSandboxWorkspaceForSession, Q as normalizeToolName, R as registerBrowserRoutes, S as isContextOverflowError, T as isLikelyContextOverflowError, U as resolveBrowserControlAuth, V as getBridgeAuthForPort, W as resolveSandboxConfigForAgent, X as stripPluginOnlyAllowlist, Y as mergeAlsoAllowPolicy, Z as expandToolGroups, _ as getApiErrorPayloadFingerprint, at as sanitizeGoogleTurnOrdering, b as isCloudCodeAssistFormatError, c as sanitizeSessionMessagesImages, ct as sanitizeImageBlocks, d as isGoogleModelApi, dt as canonicalizeBase64, et as compileGlobPatterns, f as BILLING_ERROR_USER_MESSAGE, ft as estimateBase64DecodedBytes, g as formatRawAssistantErrorForUi, h as formatBillingErrorMessage, i as pickFallbackThinkingLevel, it as resolveBootstrapTotalMaxChars, j as sanitizeUserFacingText, k as parseImageDimensionError, l as downgradeOpenAIFunctionCallReasoningPairs, lt as sanitizeToolResultImages, m as formatAssistantErrorText, n as validateAnthropicTurns, nt as buildBootstrapContextFiles, o as isMessagingToolDuplicateNormalized, ot as resolveGatewayCredentialsFromConfig, p as classifyFailoverReason, q as collectExplicitAllowlist, r as validateGeminiTurns, rt as resolveBootstrapMaxChars, s as normalizeTextForComparison, st as trimToUndefined$1, t as extractTextFromChatContent, tt as matchesAnyGlobPattern, u as downgradeOpenAIReasoningBlocks, ut as resolveImageSanitizationLimits, v as isAuthAssistantError, w as isFailoverErrorMessage, x as isCompactionFailureError, y as isBillingAssistantError, z as resolveBrowserConfig } from "./chat-content-DTqQBk5e.js";
|
|
37
|
+
import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, r as normalizeSlackOutboundText, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-BP_fAEAR.js";
|
|
38
|
+
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-NSIl1-hE.js";
|
|
39
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-DA4xCsnL.js";
|
|
40
|
+
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-Ctmmv-sn.js";
|
|
41
|
+
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-D-Q9dlBe.js";
|
|
42
|
+
import { a as skillsSnapshotSourceDiffers, c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills---POvmMh.js";
|
|
43
|
+
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-CxCTkgms.js";
|
|
44
|
+
import { A as normalizeTargetForProvider, C as isRenderablePayload, D as resolveReplyToMode, E as createReplyToModeFilterForChannel, M as transcriptEntriesToMessages, O as buildTargetResolverSignature, S as filterMessagingToolMediaDuplicates, T as shouldSuppressReasoningPayload, _ as sleepWithAbort, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as loadCombinedSessionStoreForGateway, d as countToolResults, f as extractToolCallNames, g as computeBackoff, h as resolveContextTokensForModel, i as normalizeOutboundPayloadsForJson, j as readFullTranscriptEntriesFromBackend, k as normalizeChannelTargetInput, l as capArrayByJsonBytes, m as lookupContextTokens, n as formatOutboundPayloadLog, o as throwIfAborted, p as jsonUtf8Bytes, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as stripLeadingInboundMetadata, v as loadChannelOutboundAdapter, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-Co5gQ0BP.js";
|
|
45
|
+
import { a as deriveInboundMessageHookContext, c as toInternalMessageTranscribedContext, d as fireAndForgetHook, i as createMessageSentEmitter, l as toPluginMessageContext, n as resolveOutboundSessionId, o as toInternalMessagePreprocessedContext, r as applyMessageSendingHook, s as toInternalMessageReceivedContext, t as buildOutboundSessionContext, u as toPluginMessageReceivedEvent } from "./session-context-CEqbSKXD.js";
|
|
46
|
+
import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-B5Jssa25.js";
|
|
47
|
+
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-D7zSlI4V.js";
|
|
48
48
|
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-DW5zml_e.js";
|
|
49
49
|
import { t as redactIdentifier } from "./redact-identifier-BTIWtaa-.js";
|
|
50
|
-
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-
|
|
50
|
+
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-v-KCP_U_.js";
|
|
51
51
|
import { n as getDiagnosticSessionState, o as redactChannelCorrelation } from "./diagnostic-session-state-D_Vrp41k.js";
|
|
52
52
|
import { t as CommandLane } from "./lanes-DtESSyRO.js";
|
|
53
|
-
import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-
|
|
54
|
-
import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-
|
|
55
|
-
import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
53
|
+
import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-yUH60n5W.js";
|
|
54
|
+
import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-1_bX-TS5.js";
|
|
55
|
+
import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-jbNHrXSA.js";
|
|
56
56
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-BUw50iLW.js";
|
|
57
|
-
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-
|
|
58
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
59
|
-
import { 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-
|
|
60
|
-
import { a as decodeDataUrl, i as coerceImageModelConfig, n as minimaxUnderstandImage, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText } from "./provider-image-
|
|
57
|
+
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-BDiCpSnY.js";
|
|
58
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-35KMhsBx.js";
|
|
59
|
+
import { 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-Cx4Z_ugG.js";
|
|
60
|
+
import { a as decodeDataUrl, i as coerceImageModelConfig, n as minimaxUnderstandImage, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText } from "./provider-image-B8rFHkce.js";
|
|
61
61
|
import { n as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-lJN4H6fT.js";
|
|
62
|
-
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-
|
|
63
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
64
|
-
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-
|
|
65
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
66
|
-
import { t as createTelegramPollingTransport } from "./proxy-
|
|
67
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
68
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
69
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
70
|
-
import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-
|
|
62
|
+
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-CHq_XjJE.js";
|
|
63
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-1nSFA5hU.js";
|
|
64
|
+
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-BCiPcayO.js";
|
|
65
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-CfAwbWm-.js";
|
|
66
|
+
import { t as createTelegramPollingTransport } from "./proxy-DhVCl72V.js";
|
|
67
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-BQ2CJqx6.js";
|
|
68
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-Cter9rJ4.js";
|
|
69
|
+
import { n as resolveMemorySearchConfig } from "./manager-Czbx7cHg.js";
|
|
70
|
+
import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-CfwubrnO.js";
|
|
71
71
|
import { createRequire } from "node:module";
|
|
72
72
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
73
73
|
import * as path$1 from "node:path";
|
|
74
74
|
import path, { basename, isAbsolute, join } from "node:path";
|
|
75
75
|
import { inspect, isDeepStrictEqual, promisify } from "node:util";
|
|
76
|
-
import
|
|
76
|
+
import JSON5 from "json5";
|
|
77
77
|
import os, { homedir } from "node:os";
|
|
78
78
|
import * as fs$2 from "node:fs/promises";
|
|
79
79
|
import fs$1, { open } from "node:fs/promises";
|
|
@@ -17882,7 +17882,7 @@ async function sendTranscriptEcho(params) {
|
|
|
17882
17882
|
}
|
|
17883
17883
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
17884
17884
|
try {
|
|
17885
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
17885
|
+
const { deliverOutboundPayloads } = await import("./deliver-DwkbtAs2.js");
|
|
17886
17886
|
await deliverOutboundPayloads({
|
|
17887
17887
|
cfg,
|
|
17888
17888
|
channel: normalizedChannel,
|
|
@@ -25682,7 +25682,7 @@ async function routeReply(params) {
|
|
|
25682
25682
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
25683
25683
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
25684
25684
|
try {
|
|
25685
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
25685
|
+
const { deliverOutboundPayloads } = await import("./deliver-DwkbtAs2.js");
|
|
25686
25686
|
const outboundSession = buildOutboundSessionContext({
|
|
25687
25687
|
cfg,
|
|
25688
25688
|
agentId: resolvedAgentId,
|
|
@@ -28088,7 +28088,7 @@ function requestNudge(input, cfg = loadConfig(), deps) {
|
|
|
28088
28088
|
const { backbone, runner } = getAgentTurnRuntime();
|
|
28089
28089
|
const id = await enqueueAgentTurn(backbone, payload);
|
|
28090
28090
|
if (!isClaimableAgentTurnWorkId(id)) return;
|
|
28091
|
-
const { runMainAgentTurn } = await import("./agent-turn-execute-
|
|
28091
|
+
const { runMainAgentTurn } = await import("./agent-turn-execute-BtwZA8xZ.js");
|
|
28092
28092
|
await runner.claimAndExecute({
|
|
28093
28093
|
workId: id,
|
|
28094
28094
|
execute: (claim) => runMainAgentTurn(claim.message.payload)
|
|
@@ -29253,7 +29253,7 @@ async function handleHeartbeatError(params) {
|
|
|
29253
29253
|
const AGENT_TURN_PROMPT = "Process the pending system events for this session.";
|
|
29254
29254
|
async function ackAnnounceExecuted(payload) {
|
|
29255
29255
|
if (payload.kind !== "announce") return;
|
|
29256
|
-
const { markSubagentAnnounceExecuted } = await import("./subagent-registry-
|
|
29256
|
+
const { markSubagentAnnounceExecuted } = await import("./subagent-registry-ByyvABjT.js");
|
|
29257
29257
|
for (const runId of [payload.runId, ...payload.mergedRunIds ?? []]) try {
|
|
29258
29258
|
await markSubagentAnnounceExecuted(runId);
|
|
29259
29259
|
} catch {}
|
|
@@ -29521,7 +29521,7 @@ function normalizeSessionKey(value) {
|
|
|
29521
29521
|
function readSessionStore(storePath) {
|
|
29522
29522
|
try {
|
|
29523
29523
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
29524
|
-
const parsed =
|
|
29524
|
+
const parsed = JSON5.parse(raw);
|
|
29525
29525
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
29526
29526
|
} catch {}
|
|
29527
29527
|
return {};
|
|
@@ -29750,7 +29750,7 @@ const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
|
29750
29750
|
let subagentRegistryAccessPromise;
|
|
29751
29751
|
const STALLED_SIBLING_ANNOUNCE_HOLD_MS = 5 * 6e4;
|
|
29752
29752
|
function loadSubagentRegistryAccess() {
|
|
29753
|
-
if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-
|
|
29753
|
+
if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-ByyvABjT.js").catch((err) => {
|
|
29754
29754
|
const message = err instanceof Error && err.message ? err.message : String(err);
|
|
29755
29755
|
defaultRuntime.log(`[warn] subagent registry access import failed: ${message}`);
|
|
29756
29756
|
subagentRegistryAccessPromise = void 0;
|
|
@@ -43101,7 +43101,7 @@ async function createModelSelectionState(params) {
|
|
|
43101
43101
|
}
|
|
43102
43102
|
}
|
|
43103
43103
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
43104
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
43104
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-xPuLg-Ts.js");
|
|
43105
43105
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
43106
43106
|
const providerKey = normalizeProviderId(provider);
|
|
43107
43107
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -61082,7 +61082,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
61082
61082
|
return;
|
|
61083
61083
|
}
|
|
61084
61084
|
try {
|
|
61085
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
61085
|
+
const { deliverOutboundPayloads } = await import("./deliver-DwkbtAs2.js");
|
|
61086
61086
|
const outboundSession = buildOutboundSessionContext({
|
|
61087
61087
|
cfg: params.cfg,
|
|
61088
61088
|
sessionKey: params.sessionKey
|
|
@@ -66481,7 +66481,7 @@ async function describeStickerImage(params) {
|
|
|
66481
66481
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
66482
66482
|
try {
|
|
66483
66483
|
const buffer = await fs$1.readFile(imagePath);
|
|
66484
|
-
const { describeImageWithModel } = await import("./provider-image-
|
|
66484
|
+
const { describeImageWithModel } = await import("./provider-image-B-6m2B1K.js");
|
|
66485
66485
|
return (await describeImageWithModel({
|
|
66486
66486
|
buffer,
|
|
66487
66487
|
fileName: "sticker.webp",
|
|
@@ -67749,7 +67749,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
67749
67749
|
let transcript;
|
|
67750
67750
|
let carry;
|
|
67751
67751
|
if (needsPreflightTranscription) try {
|
|
67752
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
67752
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-B9GZAMFR.js");
|
|
67753
67753
|
const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
|
|
67754
67754
|
if (uploadable.length > 0) {
|
|
67755
67755
|
const preflight = await transcribeFirstAudio({
|
|
@@ -74927,23 +74927,23 @@ function createDefaultDeps() {
|
|
|
74927
74927
|
};
|
|
74928
74928
|
},
|
|
74929
74929
|
sendMessageTelegram: async (...args) => {
|
|
74930
|
-
const { sendMessageTelegram } = await import("./send-
|
|
74930
|
+
const { sendMessageTelegram } = await import("./send-BFNnQRgz.js");
|
|
74931
74931
|
return await sendMessageTelegram(...args);
|
|
74932
74932
|
},
|
|
74933
74933
|
sendMessageDiscord: async (...args) => {
|
|
74934
|
-
const { sendMessageDiscord } = await import("./send-
|
|
74934
|
+
const { sendMessageDiscord } = await import("./send-DQUbAvQZ.js");
|
|
74935
74935
|
return await sendMessageDiscord(...args);
|
|
74936
74936
|
},
|
|
74937
74937
|
sendMessageSlack: async (...args) => {
|
|
74938
|
-
const { sendMessageSlack } = await import("./send-
|
|
74938
|
+
const { sendMessageSlack } = await import("./send-QAQnHDvz.js");
|
|
74939
74939
|
return await sendMessageSlack(...args);
|
|
74940
74940
|
},
|
|
74941
74941
|
sendMessageSignal: async (...args) => {
|
|
74942
|
-
const { sendMessageSignal } = await import("./send-
|
|
74942
|
+
const { sendMessageSignal } = await import("./send-DcgBIS2A.js");
|
|
74943
74943
|
return await sendMessageSignal(...args);
|
|
74944
74944
|
},
|
|
74945
74945
|
sendMessageIMessage: async (...args) => {
|
|
74946
|
-
const { sendMessageIMessage } = await import("./send-
|
|
74946
|
+
const { sendMessageIMessage } = await import("./send-C7T0uaBc.js");
|
|
74947
74947
|
return await sendMessageIMessage(...args);
|
|
74948
74948
|
}
|
|
74949
74949
|
};
|
|
@@ -86560,7 +86560,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
86560
86560
|
}
|
|
86561
86561
|
let commandsRegistry;
|
|
86562
86562
|
async function getCommandsRegistry() {
|
|
86563
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
86563
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-BrhhPaI1.js");
|
|
86564
86564
|
return commandsRegistry;
|
|
86565
86565
|
}
|
|
86566
86566
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -86890,14 +86890,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
86890
86890
|
const channelName = channelInfo?.name;
|
|
86891
86891
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
86892
86892
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
86893
|
-
import("./resolve-route-
|
|
86893
|
+
import("./resolve-route-CynPv-gG.js"),
|
|
86894
86894
|
import("./inbound-context-CCKCHVrn.js"),
|
|
86895
|
-
import("./provider-dispatcher-
|
|
86895
|
+
import("./provider-dispatcher-DsZ6ecvu.js")
|
|
86896
86896
|
]);
|
|
86897
86897
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
86898
86898
|
import("./conversation-label-D3nMf3rZ.js"),
|
|
86899
|
-
import("./reply-prefix-
|
|
86900
|
-
import("./session-meta-
|
|
86899
|
+
import("./reply-prefix-30s91NpV.js"),
|
|
86900
|
+
import("./session-meta-RMny_54C.js")
|
|
86901
86901
|
]);
|
|
86902
86902
|
const route = resolveAgentRoute({
|
|
86903
86903
|
cfg,
|
|
@@ -86962,9 +86962,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
86962
86962
|
});
|
|
86963
86963
|
const deliverSlashPayloads = async (replies) => {
|
|
86964
86964
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
86965
|
-
import("./replies-
|
|
86966
|
-
import("./chunk-
|
|
86967
|
-
import("./markdown-tables-
|
|
86965
|
+
import("./replies-CmTfW-Ae.js"),
|
|
86966
|
+
import("./chunk-DFblUyaE.js"),
|
|
86967
|
+
import("./markdown-tables-B4MKOmoP.js")
|
|
86968
86968
|
]);
|
|
86969
86969
|
await deliverSlackSlashReplies({
|
|
86970
86970
|
replies,
|
|
@@ -87018,7 +87018,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
87018
87018
|
let nativeCommands = [];
|
|
87019
87019
|
if (nativeEnabled) {
|
|
87020
87020
|
reg = await getCommandsRegistry();
|
|
87021
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands
|
|
87021
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-D6SiJGZm.js")).listSkillCommandsForAgents({ cfg }) : [];
|
|
87022
87022
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
87023
87023
|
skillCommands,
|
|
87024
87024
|
provider: "slack"
|
|
@@ -87537,7 +87537,7 @@ async function auditTelegramGroupMembership(params) {
|
|
|
87537
87537
|
groups: [],
|
|
87538
87538
|
elapsedMs: Date.now() - started
|
|
87539
87539
|
};
|
|
87540
|
-
const fetcher = params.proxyUrl ? (await import("./proxy-
|
|
87540
|
+
const fetcher = params.proxyUrl ? (await import("./proxy-BFnRHQ1U.js")).makeProxyFetch(params.proxyUrl) : fetch;
|
|
87541
87541
|
const { fetchWithTimeout } = await import("./fetch-timeout-C7tnRm-P.js");
|
|
87542
87542
|
const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
|
|
87543
87543
|
const groups = [];
|
|
@@ -90096,7 +90096,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
90096
90096
|
let audioPreflightCarry;
|
|
90097
90097
|
const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
|
|
90098
90098
|
if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
|
|
90099
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
90099
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-B9GZAMFR.js");
|
|
90100
90100
|
const preflight = await transcribeFirstAudio({
|
|
90101
90101
|
ctx: {
|
|
90102
90102
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -94557,7 +94557,7 @@ async function getMemorySearchManager(params) {
|
|
|
94557
94557
|
if (cached) return { manager: cached };
|
|
94558
94558
|
}
|
|
94559
94559
|
try {
|
|
94560
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
94560
|
+
const { QmdMemoryManager } = await import("./qmd-manager-zFIdwoiB.js");
|
|
94561
94561
|
const primary = await QmdMemoryManager.create({
|
|
94562
94562
|
cfg: params.cfg,
|
|
94563
94563
|
agentId: params.agentId,
|
|
@@ -94569,7 +94569,7 @@ async function getMemorySearchManager(params) {
|
|
|
94569
94569
|
const wrapper = new FallbackMemoryManager({
|
|
94570
94570
|
primary,
|
|
94571
94571
|
fallbackFactory: async () => {
|
|
94572
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
94572
|
+
const { MemoryIndexManager } = await import("./manager-DGydobPd.js");
|
|
94573
94573
|
return await MemoryIndexManager.get(params);
|
|
94574
94574
|
}
|
|
94575
94575
|
}, () => {
|
|
@@ -94584,7 +94584,7 @@ async function getMemorySearchManager(params) {
|
|
|
94584
94584
|
}
|
|
94585
94585
|
}
|
|
94586
94586
|
try {
|
|
94587
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
94587
|
+
const { MemoryIndexManager } = await import("./manager-DGydobPd.js");
|
|
94588
94588
|
return { manager: await MemoryIndexManager.get(params) };
|
|
94589
94589
|
} catch (err) {
|
|
94590
94590
|
return {
|
|
@@ -99719,7 +99719,7 @@ function createPluginRuntime(options = {}) {
|
|
|
99719
99719
|
workStates: readTaskWorkStates
|
|
99720
99720
|
},
|
|
99721
99721
|
resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
|
|
99722
|
-
sessions: { startUserRun: async (params) => (await import("./user-run-recording-
|
|
99722
|
+
sessions: { startUserRun: async (params) => (await import("./user-run-recording-DJ3u-fmX.js")).startUserSessionRun(params) }
|
|
99723
99723
|
};
|
|
99724
99724
|
Object.defineProperty(runtime, "analysis", {
|
|
99725
99725
|
enumerable: true,
|
|
@@ -101250,7 +101250,7 @@ async function recordLoopOutcome(args) {
|
|
|
101250
101250
|
if (!args.ctx?.sessionKey) return;
|
|
101251
101251
|
try {
|
|
101252
101252
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-D69TmAGf.js");
|
|
101253
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
101253
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-ys8oxWQM.js");
|
|
101254
101254
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
101255
101255
|
sessionKey: args.ctx.sessionKey,
|
|
101256
101256
|
sessionId: args.ctx?.agentId
|
|
@@ -101277,8 +101277,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
101277
101277
|
const params = args.params;
|
|
101278
101278
|
if (args.ctx?.sessionKey) {
|
|
101279
101279
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-D69TmAGf.js");
|
|
101280
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
101281
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
101280
|
+
const { logToolLoopAction } = await import("./diagnostic-Cl6WeD3-.js");
|
|
101281
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-ys8oxWQM.js");
|
|
101282
101282
|
const sessionState = getDiagnosticSessionState({
|
|
101283
101283
|
sessionKey: args.ctx.sessionKey,
|
|
101284
101284
|
sessionId: args.ctx?.agentId
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./paths-oi7j9L8A.js";
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./config-
|
|
2
|
+
import "./subsystem-C-lWCqvG.js";
|
|
3
|
+
import "./agent-scope-BNKfH4PO.js";
|
|
4
|
+
import "./config-Dpl28Wbv.js";
|
|
5
5
|
import "./github-copilot-token-BnKQ-aRX.js";
|
|
6
|
-
import "./logger-
|
|
6
|
+
import "./logger-F5PKgK4h.js";
|
|
7
7
|
import "./diagnostic-events-Ba8-RH3Z.js";
|
|
8
|
-
import "./redact-
|
|
9
|
-
import "./diagnostic-
|
|
8
|
+
import "./redact-YbcPIGWf.js";
|
|
9
|
+
import "./diagnostic-v-KCP_U_.js";
|
|
10
10
|
import "./diagnostic-session-state-D_Vrp41k.js";
|
|
11
|
-
import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, n as CommandLaneClearedError, o as getCommandLaneSnapshots, r as GatewayDrainingError, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-
|
|
11
|
+
import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, n as CommandLaneClearedError, o as getCommandLaneSnapshots, r as GatewayDrainingError, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-yUH60n5W.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-v-KCP_U_.js";
|
|
2
2
|
import { t as CommandLane } from "./lanes-DtESSyRO.js";
|
|
3
3
|
|
|
4
4
|
//#region src/process/command-queue.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./paths-oi7j9L8A.js";
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./config-
|
|
2
|
+
import "./subsystem-C-lWCqvG.js";
|
|
3
|
+
import "./agent-scope-BNKfH4PO.js";
|
|
4
|
+
import "./config-Dpl28Wbv.js";
|
|
5
5
|
import "./github-copilot-token-BnKQ-aRX.js";
|
|
6
|
-
import "./logger-
|
|
7
|
-
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-F5PKgK4h.js";
|
|
7
|
+
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-D7zSlI4V.js";
|
|
8
8
|
import "./thinking-DW5zml_e.js";
|
|
9
9
|
|
|
10
10
|
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-C-lWCqvG.js";
|
|
2
2
|
import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
|
|
3
|
-
import { Ot as getActivePluginRegistry, Un as normalizeChannelId, eo as resolveConfiguredModelRef, or as listChannelDocks, vs as DEFAULT_MODEL, ys as DEFAULT_PROVIDER } from "./config-
|
|
3
|
+
import { Ot as getActivePluginRegistry, Un as normalizeChannelId, eo as resolveConfiguredModelRef, or as listChannelDocks, vs as DEFAULT_MODEL, ys as DEFAULT_PROVIDER } from "./config-Dpl28Wbv.js";
|
|
4
4
|
import { r as listThinkingLevels } from "./thinking-DW5zml_e.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as resolveOAuthPath, f as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as resolveStateDir, r as resolveConfigPath, s as resolveOAuthDir, t as DEFAULT_GATEWAY_PORT, u as expandHomePrefix } from "./paths-oi7j9L8A.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, W as escapeRegExp, 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, W as escapeRegExp, 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-C-lWCqvG.js";
|
|
3
3
|
import { t as isPlainObject$2 } from "./plain-object-BTbonVRI.js";
|
|
4
|
-
import { D as runExec, I as RAW_PEER_KEY_PREFIX, K as normalizeAgentId, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, U as expandIdentityLinksToMatchKeys, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as resolveAgentModelPrimaryValue, n as listAgentIds, nt as normalizeAccountId$1, pt as parseAgentSessionKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, tt as DEFAULT_ACCOUNT_ID } from "./agent-scope-
|
|
4
|
+
import { D as runExec, I as RAW_PEER_KEY_PREFIX, K as normalizeAgentId, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, U as expandIdentityLinksToMatchKeys, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as resolveAgentModelPrimaryValue, n as listAgentIds, nt as normalizeAccountId$1, pt as parseAgentSessionKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, tt as DEFAULT_ACCOUNT_ID } from "./agent-scope-BNKfH4PO.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-BnKQ-aRX.js";
|
|
6
6
|
import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-DA_qUFFI.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import util, { isDeepStrictEqual } from "node:util";
|
|
11
|
-
import
|
|
11
|
+
import JSON5 from "json5";
|
|
12
12
|
import os, { userInfo } from "node:os";
|
|
13
13
|
import fs$1 from "node:fs/promises";
|
|
14
14
|
import { execFileSync, spawn } from "node:child_process";
|
|
@@ -23977,7 +23977,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
23977
23977
|
function normalizeDeps(overrides = {}) {
|
|
23978
23978
|
return {
|
|
23979
23979
|
fs: overrides.fs ?? fs,
|
|
23980
|
-
json5: overrides.json5 ??
|
|
23980
|
+
json5: overrides.json5 ?? JSON5,
|
|
23981
23981
|
env: overrides.env ?? process.env,
|
|
23982
23982
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
23983
23983
|
configPath: overrides.configPath ?? "",
|
|
@@ -23988,11 +23988,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
23988
23988
|
if (env !== process.env) return;
|
|
23989
23989
|
loadDotEnv({ quiet: true });
|
|
23990
23990
|
}
|
|
23991
|
-
function parseConfigJson5(raw, json5
|
|
23991
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
23992
23992
|
try {
|
|
23993
23993
|
return {
|
|
23994
23994
|
ok: true,
|
|
23995
|
-
parsed: json5
|
|
23995
|
+
parsed: json5.parse(raw)
|
|
23996
23996
|
};
|
|
23997
23997
|
} catch (err) {
|
|
23998
23998
|
return {
|