wednesdayai 0.4.12-dev.721 → 0.4.12-dev.722
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-scope-cbxkoURo.js → agent-scope-DxKPMu8w.js} +3 -3
- package/dist/{agent-turn-runner-CXf6g-6f.js → agent-turn-runner-LlrD6k2x.js} +5 -5
- package/dist/{api-key-rotation-BMnyfyGD.js → api-key-rotation-Br7_jaAV.js} +2 -2
- package/dist/{artifacts-DUhYSSmK.js → artifacts-QHme-vnS.js} +4 -4
- package/dist/{audio-preflight-ifCgpG3c.js → audio-preflight-B_5sTSyb.js} +27 -27
- package/dist/{audio-transcription-runner-ipSQoPp8.js → audio-transcription-runner-XFfvRPXl.js} +11 -11
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +58 -58
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +58 -58
- package/dist/bundled/session-memory/handler.js +58 -58
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-BJHm_pDV.js → channel-activity-DNq7LYjU.js} +3 -3
- package/dist/{chrome-DTJprCGv.js → chrome-FHxGdLnd.js} +15 -15
- package/dist/{chunk-eNEsWhab.js → chunk-BhntPUH_.js} +3 -3
- package/dist/{command-queue-smA8JaO_.js → command-queue-CkNuNlmY.js} +1 -1
- package/dist/{commands-registry-DdQg21ct.js → commands-registry-DC0fovy_.js} +2 -2
- package/dist/config.js +9 -9
- package/dist/daemon-cli.js +7 -7
- package/dist/{deliver-CVWbwPkb.js → deliver-CXqNQ8yi.js} +24 -24
- package/dist/{diagnostic-DI-K8155.js → diagnostic-Bbg-zObh.js} +5 -5
- package/dist/{fetch-BzXaK9px.js → fetch-BoHKSk-O.js} +8 -8
- package/dist/{fetch-guard-0mkjBgri.js → fetch-guard-TJjLK0FV.js} +3 -3
- package/dist/{frontmatter-PMByWrfP.js → frontmatter-saAwiKEb.js} +5 -5
- package/dist/{fs-safe-DwICJjkN.js → fs-safe-LRpYbPaA.js} +4 -4
- package/dist/{github-copilot-token-WSjo05vB.js → github-copilot-token-zGOMIGSh.js} +7 -7
- package/dist/{image-ops-O8pHxo7i.js → image-ops-D_fm2PuR.js} +1 -1
- package/dist/{ir-fzpdYPWw.js → ir-C4MMLUJr.js} +5 -5
- package/dist/{legacy-names-CLlrMq8r.js → legacy-names-vLJrYADD.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{logger-DNehzD_s.js → logger-a0-zAY5a.js} +1 -1
- package/dist/{manager-DH-MILAU.js → manager-DdA_cy40.js} +12 -12
- package/dist/{markdown-tables-UWspJNAH.js → markdown-tables-Dd7jV1JF.js} +2 -2
- package/dist/{model-selection-9qbqwsOT.js → model-selection-CdZITU0t.js} +86 -86
- package/dist/{outbound-attachment-DVKqk30B.js → outbound-attachment-CqtMGpsJ.js} +2 -2
- package/dist/{outbound-message-hooks-S_VhlJs3.js → outbound-message-hooks-RBQbGzGm.js} +4 -4
- package/dist/{path-alias-guards-Cd5yHmTq.js → path-alias-guards-Zj-NwKjV.js} +1 -1
- package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
- package/dist/{pi-embedded-maiK_yr9.js → pi-embedded-COs_yO7U.js} +169 -169
- package/dist/{pi-embedded-helpers-5JApWu7A.js → pi-embedded-helpers-BYLOFsUc.js} +24 -24
- package/dist/{pi-embedded-utils-kHMmP2Xh.js → pi-embedded-utils-DOtaZ7KV.js} +3 -3
- package/dist/{pi-model-discovery-CsC6yTDG.js → pi-model-discovery-B9KKtGuw.js} +7 -7
- package/dist/plugin-sdk/{agent-scope-BQYVQxfQ.js → agent-scope-DU8uJiiv.js} +2 -2
- package/dist/plugin-sdk/agent-turn-execute-DoRgVKVO.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-CqIBwx4o.js → agent-turn-runner-pU0RGvg6.js} +6 -6
- package/dist/plugin-sdk/{api-key-rotation-BW3rq9Tg.js → api-key-rotation-Oe0hkmVQ.js} +2 -2
- package/dist/plugin-sdk/{artifacts-C8xK4Y3e.js → artifacts-Dk-7TtTn.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BVO3xBbT.js → audio-preflight-8hRbl8Io.js} +22 -22
- package/dist/plugin-sdk/{audio-transcription-runner-DXiOiQMw.js → audio-transcription-runner-CUsZFiEA.js} +11 -11
- package/dist/plugin-sdk/{auth-profiles-CIKTWees.js → auth-profiles-OgKl-vr-.js} +5 -5
- package/dist/plugin-sdk/{channel-activity-Ck83U_es.js → channel-activity-OIauZrkN.js} +3 -3
- package/dist/plugin-sdk/{chrome-DDIL8pIX.js → chrome-VZ0Zuu2w.js} +12 -12
- package/dist/plugin-sdk/{chunk-D6yDhUpF.js → chunk-BWz-lIzS.js} +4 -4
- package/dist/plugin-sdk/{command-queue-Cveon04f.js → command-queue-CbgNIrv6.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-DuwlD_aI.js → commands-registry-XW2hmbAE.js} +3 -3
- package/dist/plugin-sdk/{deliver-BD3gpFAY.js → deliver-B7W4NNsR.js} +11 -11
- package/dist/plugin-sdk/deliver-CJP9TznW.js +32 -0
- package/dist/plugin-sdk/{diagnostic-BhLorIrS.js → diagnostic-BRUM6uNI.js} +7 -7
- package/dist/plugin-sdk/{diagnostic-session-state-BjuWxrAM.js → diagnostic-session-state-BsHrQ7U3.js} +1 -1
- package/dist/plugin-sdk/{fetch-D1jXg-ju.js → fetch-C1vgNaXJ.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-DnwfMurj.js → fetch-guard-B2Wnl9Vi.js} +4 -4
- package/dist/plugin-sdk/{fetch-DFZXuu3W.js → fetch-hEreHolP.js} +7 -7
- package/dist/plugin-sdk/{fetch-timeout-D7XVWfxj.js → fetch-timeout-A1m6BOhm.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-BQ5cHy9G.js → fs-safe-ClebEeLz.js} +3 -3
- package/dist/plugin-sdk/{image-ops-0TjWNKUx.js → image-ops-Bm03YsK2.js} +1 -1
- package/dist/plugin-sdk/{inbound-context-Bfr5DkdO.js → inbound-context-Cmgtf5my.js} +1 -1
- package/dist/plugin-sdk/{ir-CbL0sVL2.js → ir-1CthVxHv.js} +5 -5
- package/dist/plugin-sdk/{logger-D5s3kiib.js → logger-BkzoyfHW.js} +1 -1
- package/dist/plugin-sdk/{manager-CHBt3PC-.js → manager-C4CJpRd9.js} +8 -8
- package/dist/plugin-sdk/manager-CPcI0Fhz.js +16 -0
- package/dist/plugin-sdk/{markdown-tables-CBGsimjo.js → markdown-tables-DZM4NfLU.js} +3 -3
- package/dist/plugin-sdk/{outbound-attachment-C5x2htXW.js → outbound-attachment-GMgXpDQm.js} +2 -2
- package/dist/plugin-sdk/{outbound-message-hooks-2YmJP9k-.js → outbound-message-hooks-BUHUdpjM.js} +3 -3
- package/dist/plugin-sdk/{path-alias-guards-BIPHhakQ.js → path-alias-guards-Dft7g-_v.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-D74AHWBs.js → pi-embedded-helpers-B-OOYT64.js} +11 -11
- package/dist/plugin-sdk/{pi-embedded-utils-DQaOun1y.js → pi-embedded-utils-BoSGTbYO.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-C37z3zkx.js → pi-model-discovery-DF6l-F8s.js} +2 -2
- package/dist/plugin-sdk/provider-dispatcher-CNLIHg-v.js +61 -0
- package/dist/plugin-sdk/provider-image-L_SRDPHU.js +22 -0
- package/dist/plugin-sdk/{provider-image-Cy9HRMER.js → provider-image-zNa1Cccq.js} +5 -5
- package/dist/plugin-sdk/{proxy-CjNR_U3u.js → proxy-CXI1ycJj.js} +2 -2
- package/dist/plugin-sdk/{proxy-env-ubutfW07.js → proxy-env-B3rQCyUO.js} +2 -2
- package/dist/plugin-sdk/{proxy-fetch-Cv4b428x.js → proxy-fetch-CNBkczcW.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DlM8D_uP.js → pw-ai-JJrE-B1e.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-Bv5B9pi9.js → qmd-manager-CkQhKIXI.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-CWwH9pqd.js → query-expansion-DjZsVofz.js} +3 -3
- package/dist/plugin-sdk/{recorder-C3qdhG-p.js → recorder-BU_faNrp.js} +4 -4
- package/dist/{redact-BOHmCPP_.js → plugin-sdk/redact-CdcLrd0n.js} +1 -1
- package/dist/plugin-sdk/{registry-BXmLBUZj.js → registry-tm0HFWKN.js} +7 -7
- package/dist/plugin-sdk/replies-BFjGWAPs.js +25 -0
- package/dist/plugin-sdk/{replies-CjeAGcJx.js → replies-CS2GXrd-.js} +4 -4
- package/dist/plugin-sdk/{reply-directives-OuX5Mba_.js → reply-directives-hfOVgXpA.js} +2 -2
- package/dist/plugin-sdk/{reply-prefix-C83iSHUo.js → reply-prefix-BKQgC6Vj.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-BLBv69wV.js → resolve-route-tqQv32nr.js} +5 -5
- package/dist/plugin-sdk/runs-CPA1-H-2.js +25 -0
- package/dist/plugin-sdk/{runs-B4G4Txj3.js → runs-H2FY7UEk.js} +8 -8
- package/dist/plugin-sdk/{send-BwoWjRrJ.js → send-BMhuEEtY.js} +9 -9
- package/dist/plugin-sdk/{send-BUAw8fe4.js → send-BjR1QHnz.js} +7 -7
- package/dist/plugin-sdk/{send-B2Kip2qd.js → send-CEtGyK32.js} +8 -8
- package/dist/plugin-sdk/{send-Tg5PT6ci.js → send-CF3PEjRy.js} +14 -14
- package/dist/plugin-sdk/send-CRtSAH8I.js +25 -0
- package/dist/plugin-sdk/send-CzxwgKvR.js +27 -0
- package/dist/plugin-sdk/{send-D_2cxLLi.js → send-DUJMd2d7.js} +20 -20
- package/dist/plugin-sdk/{send-CfSEKKlU.js → send-DdPdUcD0.js} +6 -6
- package/dist/plugin-sdk/send-DuCB2xbl.js +23 -0
- package/dist/plugin-sdk/send-DyYaWr3E.js +24 -0
- package/dist/plugin-sdk/{session-meta-D3W538Wj.js → session-meta-oR-S9C5J.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-ByVQek_m.js → skill-commands-Bh43SlDc.js} +6 -6
- package/dist/plugin-sdk/{skills-BGgry_YW.js → skills-CatBv8W4.js} +6 -6
- package/dist/plugin-sdk/{store-C6ZLKWUS.js → store-6JKvp2Zu.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-CAdT47aY.js +61 -0
- package/dist/plugin-sdk/{subsystem-0F3fEqJW.js → subsystem-CchgWuXK.js} +4 -4
- package/dist/plugin-sdk/{tables-BCSRuiq_.js → tables-BPCP4CpE.js} +1 -1
- package/dist/plugin-sdk/testing.js +55 -55
- package/dist/plugin-sdk/{tokens-O0pGqOuf.js → tokens-Cioh8xR5.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-BG8uP1aD.js → tool-loop-detection-BN0lIxLx.js} +1 -1
- package/dist/plugin-sdk/{tools-Sk-IqHBP.js → tools-3raTfdu5.js} +102 -102
- package/dist/plugin-sdk/{user-run-recording-iS-qLIN9.js → user-run-recording-DlpzQk0X.js} +3 -3
- package/dist/{provider-image-Cb4z6zUu.js → provider-image-BllyLBJM.js} +5 -5
- package/dist/{proxy-env-i0jn5uxB.js → proxy-env-CzGKpJY_.js} +2 -2
- package/dist/{proxy-C9sq6M-h.js → proxy-fWL7CKDP.js} +1 -1
- package/dist/{proxy-fetch-CK5AQAYw.js → proxy-fetch-DCI0KuH6.js} +1 -1
- package/dist/{pw-ai-DziGw6Jy.js → pw-ai-CXSJw34w.js} +14 -14
- package/dist/{qmd-manager-p036XU01.js → qmd-manager-BwZ0V5fL.js} +10 -10
- package/dist/{query-expansion-30x7RlZY.js → query-expansion-31VWpPCz.js} +5 -5
- package/dist/{recorder-C_ViZLf1.js → recorder-DNRxe9C8.js} +4 -4
- package/dist/{plugin-sdk/redact-BEcZiZI1.js → redact-DZne_lu8.js} +1 -1
- package/dist/{replies-BsctLhfp.js → replies-NkETqb6B.js} +4 -4
- package/dist/{reply-directives-D9wYtPPy.js → reply-directives-DGITtNUL.js} +2 -2
- package/dist/{reply-prefix-C7WlN3qm.js → reply-prefix-DVkNDBNe.js} +1 -1
- package/dist/{resolve-route-BV8k5qjX.js → resolve-route-jDAjkfZE.js} +5 -5
- package/dist/{runs-ucQd8Fc-.js → runs-DGWNXyKA.js} +8 -8
- package/dist/{send-Tx-ew59_.js → send-CNLmncRW.js} +6 -6
- package/dist/{send-TscXeVY8.js → send-DEFcgo-1.js} +27 -27
- package/dist/{send-BGps2i_C.js → send-Do1AlhD5.js} +8 -8
- package/dist/{send-BiDcVZSc.js → send-Dq8ChBfS.js} +6 -6
- package/dist/{send-Ba3pDq6E.js → send-ENMm5qbW.js} +7 -7
- package/dist/{session-meta-DH__PMKt.js → session-meta-DuK_BrWT.js} +2 -2
- package/dist/{skill-commands-CRZajtK_.js → skill-commands-BhMQp_i8.js} +9 -9
- package/dist/{skills-DOc6uEd1.js → skills-ckuLxkyg.js} +21 -21
- package/dist/{store-xxN6qyAh.js → store-gQ6FSjVk.js} +2 -2
- package/dist/{subsystem-BCjklMkJ.js → subsystem-CPYnUTN4.js} +64 -64
- package/dist/{tables-o3ZpyPWV.js → tables-DEyD0zuy.js} +1 -1
- package/dist/{tokens-9Mla_HDp.js → tokens-9BPY4SaX.js} +1 -1
- package/dist/{tool-loop-detection-8uvf8mSd.js → tool-loop-detection-C1fqyXXD.js} +2 -2
- package/dist/{user-run-recording-CAk1Ketk.js → user-run-recording-B0XAAUwL.js} +2 -2
- package/dist/{workspace-Dbn4gFdH.js → workspace-B707AGIc.js} +9 -9
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/elevenlabs/src/streaming-speech-provider-faults.test.ts +2 -2
- package/extensions/elevenlabs/src/streaming-speech-provider.test.ts +19 -5
- package/extensions/elevenlabs/src/streaming-speech-provider.ts +3 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/agent-turn-execute-BRJa_EBt.js +0 -61
- package/dist/plugin-sdk/deliver-DZoYhDxC.js +0 -32
- package/dist/plugin-sdk/manager-Bqpqu2GS.js +0 -16
- package/dist/plugin-sdk/provider-dispatcher-NB8R-FyS.js +0 -61
- package/dist/plugin-sdk/provider-image-g3vmjlkZ.js +0 -22
- package/dist/plugin-sdk/replies-0gHRQjbA.js +0 -25
- package/dist/plugin-sdk/runs-Dzlj-BO5.js +0 -25
- package/dist/plugin-sdk/send-COofA0BG.js +0 -23
- package/dist/plugin-sdk/send-DHNKlQPv.js +0 -27
- package/dist/plugin-sdk/send-NUHfC-G_.js +0 -25
- package/dist/plugin-sdk/send-Tm5-7bLz.js +0 -24
- package/dist/plugin-sdk/subagent-registry-B5xaoVWq.js +0 -61
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { a as formatErrorMessage, i as formatErrorChainMessage, l as readErrorName, n as collectErrorGraphCandidates, o as formatUncaughtError, p as isBlockedHostnameOrIp, s as hasErrnoCode, u as SsrFBlockedError, y as normalizeHostname } from "./proxy-env-
|
|
2
|
-
import { $ as isJsonlSessionBackend, $a as DEFAULT_PROVIDER, $i as buildChannelAccountBindings, $n as splitCommandChain, $r as parseDotPath, $t as listTelegramAccountIds, A as mergeDeliveryContext, Aa as resolveSlackNativeStreaming, Ai as isShellWrapperExecutable, An as resolveMessageChannel, Ar as buildAssistantMessage, At as resolveSessionKey, B as applyInputProvenanceToUserMessage, Ba as resolveAuthStorePathForDisplay, Br as resolveAuthProfileOrder, Bt as canonicalizeMainSessionAlias, C as updateLastRoute, Ca as getActivePluginRegistryKey, Ci as resolveExecPolicyPreset, Cn as isDeliverableMessageChannel, Ct as derivePromptTokens, D as resolveCacheTtlMs$1, Da as isSafeExecutableValue, Di as resolveCommandResolutionFromArgv, Dn as listDeliverableMessageChannels, Dr as retryAsync, Dt as normalizeUsage, E as isCacheEnabled, Ea as setActivePluginRegistry, Ei as resolveAllowlistCandidatePath, En as isMarkdownCapableMessageChannel, Et as makeZeroUsageSnapshot, F as capArrayByJsonBytes, Fa as dedupeProfileIds, Fn as normalizeHyphenSlug, Fr as getCustomProviderApiKey, Ft as resolveThreadFlag, G as readJsonFile, Ga as normalizeSecretInput, Gn as getTrustedSafeBinDirs, Gr as markAuthProfileFailure, Gt as getChannelPlugin, H as normalizeInputProvenance, Ha as withFileLock, Hn as readConfigFileSnapshot, Ht as resolveExplicitAgentSessionKey, I as countToolResults, Ia as listProfilesForProvider, In as normalizeStringEntries, Ir as requireApiKey, It as DEFAULT_RESET_TRIGGERS, J as parseSessionThreadInfo, Ja as normalizeResolvedSecretInputString, Ji as AVATAR_MAX_BYTES, Jn as normalizeTrustedSafeBinDirs, Jr as resolveApiKeyForProfile, Jt as getChannelDock, K as writeJsonAtomic, Ka as coerceSecretRef, Kn as isTrustedSafeBinPath, Kr as markAuthProfileUsed, Kt as listChannelPlugins, L as extractToolCallNames, La as markAuthProfileGood, Ln as normalizeStringEntriesLower, Lr as resolveApiKeyForProvider, Lt as mergeSessionEntry, M as normalizeSessionDeliveryFields, Mi as unwrapKnownShellMultiplexerInvocation, Mn as GATEWAY_CLIENT_MODES, Mr as buildStreamErrorAssistantMessage, Mt as resolveChannelResetConfig, N as normalizeAccountId$3, Nn as GATEWAY_CLIENT_NAMES, Nr as buildUsageWithNoCost, Nt as resolveSessionResetPolicy, O as deliveryContextFromSession, Oa as mapStreamingModeToSlackLegacyDraftStreamMode, Oi as extractShellWrapperInlineCommand, On as normalizeMessageChannel, Or as OLLAMA_NATIVE_BASE_URL, P as archiveSessionTranscripts, Pi as parseDurationMs, Pn as normalizeAtHashSlug, Pr as getApiKeyForModel, Pt as resolveSessionResetType, Q as withPreservationWriterPermit, Qa as DEFAULT_MODEL, Qi as isSupportedLocalAvatarExtension, Qn as isWindowsPlatform, Qr as isRecord$1, Qt as listEnabledTelegramAccounts, R as parseInlineDirectives$1, Ra as ensureAuthProfileStore, Rn as acquireSessionWriteLock, Rr as resolveEnvApiKey, Rt as resolveFreshSessionTotalTokens, S as syncConfiguredSessionTranscriptToRuntime, Sa as getActivePluginRegistry, Si as secretRefKey, Sn as INTERNAL_MESSAGE_CHANNEL, T as updateSessionStoreEntry, Ta as requireActivePluginRegistry, Ti as matchAllowlist, Tn as isInternalMessageChannel, Tt as hasNonzeroUsage, U as jsonUtf8Bytes, Ua as resolveAuthProfileDisplayLabel, Ur as getSoonestCooldownExpiry, Ut as resolveMainSessionKey, V as hasInterSessionUserProvenance, Va as resolveOpenClawAgentDir, Vn as loadConfig, Vt as resolveAgentMainSessionKey, W as createAsyncLock, Wn as writeConfigFile, Wr as isProfileInCooldown, Wt as deriveSessionMetaPatch, Xa as splitTrailingAuthProfile, Xi as isAvatarHttpUrl, Xn as analyzeShellCommand, Xr as describeUnknownError$1, Xt as normalizeSignalMessagingTarget, Y as appendAssistantMessageToSessionTranscript, Ya as resolveSecretInputRef, Yi as isAvatarDataUrl, Yn as validateSafeBinArgv, Yr as resolveSecretRefValues, Yt as listChannelDocks, Z as resolveAndPersistSessionFile, Za as DEFAULT_CONTEXT_TOKENS, Zi as isPathWithinRoot, Zn as buildEnforcedShellCommand, Zr as isNonEmptyString, Zt as createTelegramActionGate, _ as getConfiguredSessionStorageRuntime, _a as normalizeAnyChannelId, _i as resolveIMessageAttachmentRoots, _n as resolveChannelGroupPolicy, _o as replaceBufferedPluginTaskPasses, _r as resolveDefaultModelForAgent, _t as formatZonedTimestamp, a as normalizePluginHttpPath, aa as isBundledChannelEnabledByChannelConfig, ai as unsetConfigOverride, an as resolveSlackBotToken, ao as resolveOwnerDisplaySetting, ar as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, at as onSessionTranscriptUpdate, b as readSessionUpdatedAt, ba as resolveChannelConfigId, bi as parseNonNegativeByteSize, bn as resolveAccountEntry, br as resolveSubagentSpawnModelSelection, bt as emitDiagnosticEvent, c as executePluginCommand, ca as resolveMemorySlotDecision, ci as setConfigValueAtPath, cn as isWhatsAppGroupJid, co as channelTargetsSchema, cr as buildConfiguredAllowlistKeys, d as matchPluginCommand, da as safeStatSync, di as TELEGRAM_COMMAND_NAME_PATTERN, dn as resolveWhatsAppAccount, do as applyTargetToParams, dr as isCliProvider, dt as createCurrentUserPromptEnvelope, ei as formatCliCommand, en as resolveTelegramAccount, eo as VERSION, er as splitShellArgs, et as createPrimaryWriteInterceptor, f as registerPluginCommand, fa as readManifestNamespace, fi as normalizeTelegramCommandName, fn as resolveIMessageAccount, fo as actionHasTarget, fr as modelKey, ft as mergePromptContributions, g as getActivePreservationLease, ga as listChatChannels, gn as normalizeDiscordToken, go as listBufferedPluginTaskPasses, gr as resolveConfiguredModelRef, gt as formatUtcTimestamp, ha as getChatChannelMeta, hi as isInboundPathAllowed, hn as resolveDiscordAccount, ho as discardBufferedPluginTaskPasses, hr as parseModelRef, ht as buildInboundUserContextPrefix, i as createPluginRegistry, ia as applyTestPluginDefaults, ii as setConfigOverride, in as resolveSlackAppToken, io as parseBooleanValue$1, ir as applyMergePatch, it as emitSessionTranscriptUpdate, j as normalizeDeliveryContext, ja as resolveSlackStreamingMode, ji as unwrapKnownDispatchWrapperInvocation, jn as GATEWAY_CLIENT_IDS, jr as buildAssistantMessageWithZeroUsage, jt as evaluateSessionFreshness, k as deliveryContextKey, ka as resolveDiscordPreviewStreamMode, ki as isDispatchWrapperExecutable, kn as resolveGatewayMessageChannel, kr as createOllamaStreamFn, kt as SESSION_RUN_STATUSES, l as getPluginCommandSpecs, la as discoverOpenClawPlugins, li as unsetConfigValueAtPath, ln as normalizeWhatsAppTarget, lo as optionalStringEnum, lr as buildModelAliasIndex, lt as sanitizeJsonb, m as triggerInternalHook, ma as CHAT_CHANNEL_ORDER, mn as listEnabledDiscordAccounts, mr as normalizeProviderId, mt as buildInboundMetaSystemPrompt, n as clearRegisteredPluginApis, na as loadPluginManifestRegistry, ni as getConfigOverrides, nn as resolveSlackAccount, no as resolveShellEnvFallbackTimeoutMs, nr as normalizeSafeBinProfileFixtures, nt as DB_SESSION_HYDRATION_LIMIT, o as buildPluginHealthReport, oa as normalizePluginsConfig, oi as getConfigValueAtPath, on as listEnabledSignalAccounts, oo as readTaskWorkStates, or as resolveAgentMaxConcurrent, ot as TASK_RUN_MODES, p as createInternalHookEvent, pi as resolveTelegramCustomCommands, pn as createDiscordActionGate, po as actionRequiresTarget, pr as normalizeModelRef$2, pt as toJsonValue$1, q as extractDeliveryInfo, qa as hasConfiguredSecretInput, qn as listWritableExplicitTrustedSafeBinDirs, qr as resolveProfilesUnavailableReason, qt as normalizeChannelId$1, ra as BUNDLED_ENABLED_BY_DEFAULT, ri as resetConfigOverrides, rn as resolveSlackReplyToMode, ro as isTruthyEnvValue, rr as resolveSafeBinProfiles, rt as hydrateSessionManagerFromDb, s as clearPluginCommands, sa as resolveEffectiveEnableState, si as parseConfigPath, sn as resolveSignalAccount, so as channelTargetSchema, sr as buildAllowedModelSet, st as TASK_RUN_STATUSES, t as addRegisteredPluginApi, ta as validateJsonSchemaValue, ti as resolveCliName, tn as resolveTelegramToken, to as getShellPathFromLoginShell, tr as SAFE_BIN_PROFILES, tt as drainPendingPrimaryWrites, u as listPluginCommands, ua as isPathInside, ui as validateConfigObjectWithPlugins, un as hasAnyWhatsAppAuth, uo as stringEnum, ur as findNormalizedProviderValue, ut as sha256, v as isPreservationArmed, va as normalizeChannelId$2, vi as resolveIMessageRemoteAttachmentRoots, vn as resolveChannelGroupRequireMention, vo as RecoveryAdmissionError, vr as resolveModelRefFromString, vt as resolveTimezone, w as updateSessionStore, wi as DEFAULT_SAFE_BINS, wn as isGatewayMessageChannel, wt as deriveSessionTotalTokens, x as recordSessionMetaFromInbound, xa as getActiveGatewayPluginRegistry, xi as ASSISTANT_IDENTITY_COLORS, xn as resolveGroupSessionKey, xr as resolveThinkingDefault, xt as isDiagnosticsEnabled, y as loadSessionStore, ya as normalizeChatChannelId, yi as normalizeScpRemoteHost, yn as resolveChannelGroupToolsPolicy, yr as resolveReasoningDefault, yt as resolveSenderLabel, z as INPUT_PROVENANCE_KIND_VALUES, zn as resolveSessionLockMaxHoldFromTimeout, zr as resolveModelAuthMode, zt as setSessionRuntimeModel } from "./registry-
|
|
1
|
+
import { a as formatErrorMessage, i as formatErrorChainMessage, l as readErrorName, n as collectErrorGraphCandidates, o as formatUncaughtError, p as isBlockedHostnameOrIp, s as hasErrnoCode, u as SsrFBlockedError, y as normalizeHostname } from "./proxy-env-B3rQCyUO.js";
|
|
2
|
+
import { $ as isJsonlSessionBackend, $a as DEFAULT_PROVIDER, $i as buildChannelAccountBindings, $n as splitCommandChain, $r as parseDotPath, $t as listTelegramAccountIds, A as mergeDeliveryContext, Aa as resolveSlackNativeStreaming, Ai as isShellWrapperExecutable, An as resolveMessageChannel, Ar as buildAssistantMessage, At as resolveSessionKey, B as applyInputProvenanceToUserMessage, Ba as resolveAuthStorePathForDisplay, Br as resolveAuthProfileOrder, Bt as canonicalizeMainSessionAlias, C as updateLastRoute, Ca as getActivePluginRegistryKey, Ci as resolveExecPolicyPreset, Cn as isDeliverableMessageChannel, Ct as derivePromptTokens, D as resolveCacheTtlMs$1, Da as isSafeExecutableValue, Di as resolveCommandResolutionFromArgv, Dn as listDeliverableMessageChannels, Dr as retryAsync, Dt as normalizeUsage, E as isCacheEnabled, Ea as setActivePluginRegistry, Ei as resolveAllowlistCandidatePath, En as isMarkdownCapableMessageChannel, Et as makeZeroUsageSnapshot, F as capArrayByJsonBytes, Fa as dedupeProfileIds, Fn as normalizeHyphenSlug, Fr as getCustomProviderApiKey, Ft as resolveThreadFlag, G as readJsonFile, Ga as normalizeSecretInput, Gn as getTrustedSafeBinDirs, Gr as markAuthProfileFailure, Gt as getChannelPlugin, H as normalizeInputProvenance, Ha as withFileLock, Hn as readConfigFileSnapshot, Ht as resolveExplicitAgentSessionKey, I as countToolResults, Ia as listProfilesForProvider, In as normalizeStringEntries, Ir as requireApiKey, It as DEFAULT_RESET_TRIGGERS, J as parseSessionThreadInfo, Ja as normalizeResolvedSecretInputString, Ji as AVATAR_MAX_BYTES, Jn as normalizeTrustedSafeBinDirs, Jr as resolveApiKeyForProfile, Jt as getChannelDock, K as writeJsonAtomic, Ka as coerceSecretRef, Kn as isTrustedSafeBinPath, Kr as markAuthProfileUsed, Kt as listChannelPlugins, L as extractToolCallNames, La as markAuthProfileGood, Ln as normalizeStringEntriesLower, Lr as resolveApiKeyForProvider, Lt as mergeSessionEntry, M as normalizeSessionDeliveryFields, Mi as unwrapKnownShellMultiplexerInvocation, Mn as GATEWAY_CLIENT_MODES, Mr as buildStreamErrorAssistantMessage, Mt as resolveChannelResetConfig, N as normalizeAccountId$3, Nn as GATEWAY_CLIENT_NAMES, Nr as buildUsageWithNoCost, Nt as resolveSessionResetPolicy, O as deliveryContextFromSession, Oa as mapStreamingModeToSlackLegacyDraftStreamMode, Oi as extractShellWrapperInlineCommand, On as normalizeMessageChannel, Or as OLLAMA_NATIVE_BASE_URL, P as archiveSessionTranscripts, Pi as parseDurationMs, Pn as normalizeAtHashSlug, Pr as getApiKeyForModel, Pt as resolveSessionResetType, Q as withPreservationWriterPermit, Qa as DEFAULT_MODEL, Qi as isSupportedLocalAvatarExtension, Qn as isWindowsPlatform, Qr as isRecord$1, Qt as listEnabledTelegramAccounts, R as parseInlineDirectives$1, Ra as ensureAuthProfileStore, Rn as acquireSessionWriteLock, Rr as resolveEnvApiKey, Rt as resolveFreshSessionTotalTokens, S as syncConfiguredSessionTranscriptToRuntime, Sa as getActivePluginRegistry, Si as secretRefKey, Sn as INTERNAL_MESSAGE_CHANNEL, T as updateSessionStoreEntry, Ta as requireActivePluginRegistry, Ti as matchAllowlist, Tn as isInternalMessageChannel, Tt as hasNonzeroUsage, U as jsonUtf8Bytes, Ua as resolveAuthProfileDisplayLabel, Ur as getSoonestCooldownExpiry, Ut as resolveMainSessionKey, V as hasInterSessionUserProvenance, Va as resolveOpenClawAgentDir, Vn as loadConfig, Vt as resolveAgentMainSessionKey, W as createAsyncLock, Wn as writeConfigFile, Wr as isProfileInCooldown, Wt as deriveSessionMetaPatch, Xa as splitTrailingAuthProfile, Xi as isAvatarHttpUrl, Xn as analyzeShellCommand, Xr as describeUnknownError$1, Xt as normalizeSignalMessagingTarget, Y as appendAssistantMessageToSessionTranscript, Ya as resolveSecretInputRef, Yi as isAvatarDataUrl, Yn as validateSafeBinArgv, Yr as resolveSecretRefValues, Yt as listChannelDocks, Z as resolveAndPersistSessionFile, Za as DEFAULT_CONTEXT_TOKENS, Zi as isPathWithinRoot, Zn as buildEnforcedShellCommand, Zr as isNonEmptyString, Zt as createTelegramActionGate, _ as getConfiguredSessionStorageRuntime, _a as normalizeAnyChannelId, _i as resolveIMessageAttachmentRoots, _n as resolveChannelGroupPolicy, _o as replaceBufferedPluginTaskPasses, _r as resolveDefaultModelForAgent, _t as formatZonedTimestamp, a as normalizePluginHttpPath, aa as isBundledChannelEnabledByChannelConfig, ai as unsetConfigOverride, an as resolveSlackBotToken, ao as resolveOwnerDisplaySetting, ar as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, at as onSessionTranscriptUpdate, b as readSessionUpdatedAt, ba as resolveChannelConfigId, bi as parseNonNegativeByteSize, bn as resolveAccountEntry, br as resolveSubagentSpawnModelSelection, bt as emitDiagnosticEvent, c as executePluginCommand, ca as resolveMemorySlotDecision, ci as setConfigValueAtPath, cn as isWhatsAppGroupJid, co as channelTargetsSchema, cr as buildConfiguredAllowlistKeys, d as matchPluginCommand, da as safeStatSync, di as TELEGRAM_COMMAND_NAME_PATTERN, dn as resolveWhatsAppAccount, do as applyTargetToParams, dr as isCliProvider, dt as createCurrentUserPromptEnvelope, ei as formatCliCommand, en as resolveTelegramAccount, eo as VERSION, er as splitShellArgs, et as createPrimaryWriteInterceptor, f as registerPluginCommand, fa as readManifestNamespace, fi as normalizeTelegramCommandName, fn as resolveIMessageAccount, fo as actionHasTarget, fr as modelKey, ft as mergePromptContributions, g as getActivePreservationLease, ga as listChatChannels, gn as normalizeDiscordToken, go as listBufferedPluginTaskPasses, gr as resolveConfiguredModelRef, gt as formatUtcTimestamp, ha as getChatChannelMeta, hi as isInboundPathAllowed, hn as resolveDiscordAccount, ho as discardBufferedPluginTaskPasses, hr as parseModelRef, ht as buildInboundUserContextPrefix, i as createPluginRegistry, ia as applyTestPluginDefaults, ii as setConfigOverride, in as resolveSlackAppToken, io as parseBooleanValue$1, ir as applyMergePatch, it as emitSessionTranscriptUpdate, j as normalizeDeliveryContext, ja as resolveSlackStreamingMode, ji as unwrapKnownDispatchWrapperInvocation, jn as GATEWAY_CLIENT_IDS, jr as buildAssistantMessageWithZeroUsage, jt as evaluateSessionFreshness, k as deliveryContextKey, ka as resolveDiscordPreviewStreamMode, ki as isDispatchWrapperExecutable, kn as resolveGatewayMessageChannel, kr as createOllamaStreamFn, kt as SESSION_RUN_STATUSES, l as getPluginCommandSpecs, la as discoverOpenClawPlugins, li as unsetConfigValueAtPath, ln as normalizeWhatsAppTarget, lo as optionalStringEnum, lr as buildModelAliasIndex, lt as sanitizeJsonb, m as triggerInternalHook, ma as CHAT_CHANNEL_ORDER, mn as listEnabledDiscordAccounts, mr as normalizeProviderId, mt as buildInboundMetaSystemPrompt, n as clearRegisteredPluginApis, na as loadPluginManifestRegistry, ni as getConfigOverrides, nn as resolveSlackAccount, no as resolveShellEnvFallbackTimeoutMs, nr as normalizeSafeBinProfileFixtures, nt as DB_SESSION_HYDRATION_LIMIT, o as buildPluginHealthReport, oa as normalizePluginsConfig, oi as getConfigValueAtPath, on as listEnabledSignalAccounts, oo as readTaskWorkStates, or as resolveAgentMaxConcurrent, ot as TASK_RUN_MODES, p as createInternalHookEvent, pi as resolveTelegramCustomCommands, pn as createDiscordActionGate, po as actionRequiresTarget, pr as normalizeModelRef$2, pt as toJsonValue$1, q as extractDeliveryInfo, qa as hasConfiguredSecretInput, qn as listWritableExplicitTrustedSafeBinDirs, qr as resolveProfilesUnavailableReason, qt as normalizeChannelId$1, ra as BUNDLED_ENABLED_BY_DEFAULT, ri as resetConfigOverrides, rn as resolveSlackReplyToMode, ro as isTruthyEnvValue, rr as resolveSafeBinProfiles, rt as hydrateSessionManagerFromDb, s as clearPluginCommands, sa as resolveEffectiveEnableState, si as parseConfigPath, sn as resolveSignalAccount, so as channelTargetSchema, sr as buildAllowedModelSet, st as TASK_RUN_STATUSES, t as addRegisteredPluginApi, ta as validateJsonSchemaValue, ti as resolveCliName, tn as resolveTelegramToken, to as getShellPathFromLoginShell, tr as SAFE_BIN_PROFILES, tt as drainPendingPrimaryWrites, u as listPluginCommands, ua as isPathInside, ui as validateConfigObjectWithPlugins, un as hasAnyWhatsAppAuth, uo as stringEnum, ur as findNormalizedProviderValue, ut as sha256, v as isPreservationArmed, va as normalizeChannelId$2, vi as resolveIMessageRemoteAttachmentRoots, vn as resolveChannelGroupRequireMention, vo as RecoveryAdmissionError, vr as resolveModelRefFromString, vt as resolveTimezone, w as updateSessionStore, wi as DEFAULT_SAFE_BINS, wn as isGatewayMessageChannel, wt as deriveSessionTotalTokens, x as recordSessionMetaFromInbound, xa as getActiveGatewayPluginRegistry, xi as ASSISTANT_IDENTITY_COLORS, xn as resolveGroupSessionKey, xr as resolveThinkingDefault, xt as isDiagnosticsEnabled, y as loadSessionStore, ya as normalizeChatChannelId, yi as normalizeScpRemoteHost, yn as resolveChannelGroupToolsPolicy, yr as resolveReasoningDefault, yt as resolveSenderLabel, z as INPUT_PROVENANCE_KIND_VALUES, zn as resolveSessionLockMaxHoldFromTimeout, zr as resolveModelAuthMode, zt as setSessionRuntimeModel } from "./registry-tm0HFWKN.js";
|
|
3
3
|
import { a as resolveGatewayPort, c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, n as STATE_DIR, r as resolveConfigPath } from "./paths-DnKvZ6zt.js";
|
|
4
|
-
import { B as appendFileLog, C as shortenHomePath, D as danger, E as truncateUtf16Safe, F as isRich, G as INCLUDE_KEY, H as normalizeLogLevel, I as theme, J as isBlockedObjectKey, L as getChildLogger, M as shouldLogVerbose, N as warn, P as colorize, Q as openBoundaryFileSync, S as shortenHomeInString, T as sliceUtf16Safe, Z as openBoundaryFile, _ as normalizeE164, a as createNonExitingRuntime, b as resolveUserPath, c as registerActiveProgressLine, d as clampInt, g as isRecord$2, h as formatTerminalLink, j as setVerbose, k as logVerbose, l as unregisterActiveProgressLine, lt as isDangerousHostEnvVarName, m as escapeRegExp, mt as resolvePreferredOpenClawTmpDir, o as defaultRuntime, p as ensureDir$3, s as clearActiveProgressLine, st as normalizeWindowsPathForComparison, t as createSubsystemLogger, u as CONFIG_DIR, w as sleep$1 } from "./subsystem-
|
|
4
|
+
import { B as appendFileLog, C as shortenHomePath, D as danger, E as truncateUtf16Safe, F as isRich, G as INCLUDE_KEY, H as normalizeLogLevel, I as theme, J as isBlockedObjectKey, L as getChildLogger, M as shouldLogVerbose, N as warn, P as colorize, Q as openBoundaryFileSync, S as shortenHomeInString, T as sliceUtf16Safe, Z as openBoundaryFile, _ as normalizeE164, a as createNonExitingRuntime, b as resolveUserPath, c as registerActiveProgressLine, d as clampInt, g as isRecord$2, h as formatTerminalLink, j as setVerbose, k as logVerbose, l as unregisterActiveProgressLine, lt as isDangerousHostEnvVarName, m as escapeRegExp, mt as resolvePreferredOpenClawTmpDir, o as defaultRuntime, p as ensureDir$3, s as clearActiveProgressLine, st as normalizeWindowsPathForComparison, t as createSubsystemLogger, u as CONFIG_DIR, w as sleep$1 } from "./subsystem-CchgWuXK.js";
|
|
5
5
|
import { t as isPlainObject } from "./plain-object-CLm2c5Nu.js";
|
|
6
|
-
import { $ as WAKE_GATE_SESSION_KEY_SEGMENT, A as resolveAgentModelFallbackValues, B as isValidAgentId, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as buildAgentMainSessionKey, G as resolveConfiguredCanonicalIdentity, H as normalizeMainKey, J as sanitizeAgentId, K as resolveLinkedPeerIdForChannel, L as classifySessionKeyShape, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as normalizeOptionalAccountId, S as filterBootstrapFilesForSession, U as resolveAgentIdFromSessionKey, V as normalizeAgentId, W as resolveCanonicalIdentity, X as DEFAULT_ACCOUNT_ID, Y as toAgentStoreSessionKey, Z as normalizeAccountId$4, _ as DEFAULT_IDENTITY_FILENAME, at as parseAgentSessionKey, c as resolveDefaultAgentId, d as resolveSessionAgentId, et as deriveSessionChatType, f as resolveSessionAgentIds, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, it as isSubagentSessionKey, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, nt as isAcpSessionKey, o as resolveAgentSkillsFilter, ot as resolveThreadParentSessionKey, q as resolveThreadSessionKeys, r as resolveAgentConfig, rt as isCronSessionKey, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, tt as getSubagentDepth, u as resolveRunModelFallbacksOverride, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace, z as isKnownAgentMainSessionKey } from "./agent-scope-
|
|
7
|
-
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-
|
|
6
|
+
import { $ as WAKE_GATE_SESSION_KEY_SEGMENT, A as resolveAgentModelFallbackValues, B as isValidAgentId, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as buildAgentMainSessionKey, G as resolveConfiguredCanonicalIdentity, H as normalizeMainKey, J as sanitizeAgentId, K as resolveLinkedPeerIdForChannel, L as classifySessionKeyShape, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as normalizeOptionalAccountId, S as filterBootstrapFilesForSession, U as resolveAgentIdFromSessionKey, V as normalizeAgentId, W as resolveCanonicalIdentity, X as DEFAULT_ACCOUNT_ID, Y as toAgentStoreSessionKey, Z as normalizeAccountId$4, _ as DEFAULT_IDENTITY_FILENAME, at as parseAgentSessionKey, c as resolveDefaultAgentId, d as resolveSessionAgentId, et as deriveSessionChatType, f as resolveSessionAgentIds, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, it as isSubagentSessionKey, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, m as DEFAULT_AGENT_WORKSPACE_DIR, n as listAgentIds, nt as isAcpSessionKey, o as resolveAgentSkillsFilter, ot as resolveThreadParentSessionKey, q as resolveThreadSessionKeys, r as resolveAgentConfig, rt as isCronSessionKey, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, tt as getSubagentDepth, u as resolveRunModelFallbacksOverride, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace, z as isKnownAgentMainSessionKey } from "./agent-scope-DU8uJiiv.js";
|
|
7
|
+
import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-BkzoyfHW.js";
|
|
8
8
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-CtAXGjCK.js";
|
|
9
|
-
import { c as resolveSessionFilePathOptions, d as resolveSessionTranscriptsDirForAgent, f as resolveStorePath, l as resolveSessionTranscriptPath, n as isPrimarySessionTranscriptFileName, o as resolveDefaultSessionStorePath, p as runTasksWithConcurrency, s as resolveSessionFilePath } from "./artifacts-
|
|
9
|
+
import { c as resolveSessionFilePathOptions, d as resolveSessionTranscriptsDirForAgent, f as resolveStorePath, l as resolveSessionTranscriptPath, n as isPrimarySessionTranscriptFileName, o as resolveDefaultSessionStorePath, p as runTasksWithConcurrency, s as resolveSessionFilePath } from "./artifacts-Dk-7TtTn.js";
|
|
10
10
|
import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-Byxk5Gak.js";
|
|
11
|
-
import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, o as buildSlackBlocksFallbackText, r as normalizeSlackOutboundText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-
|
|
12
|
-
import { $ as fetchChannelPermissionsDiscord, A as addRoleDiscord, 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, kt as resolveChannelEntryMatchWithFallback, 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-
|
|
13
|
-
import { a as clearDelayedReleaseHold, c as mergeDelayedAgentTurn, d as KeyedAsyncQueue, i as agentTurnIdempotencyKey, l as peekDelayedAgentTurn, n as getAgentTurnRuntime, o as enqueueAgentTurn, r as tryGetAgentTurnRuntime, s as isClaimableAgentTurnWorkId, u as setDelayedReleaseHold } from "./agent-turn-runner-
|
|
14
|
-
import { $ as resolveSandboxConfigForAgent, A as isFailoverAssistantError, B as isTimeoutErrorMessage, C as formatRawAssistantErrorForUi, D as isCloudCodeAssistFormatError, E as isBillingAssistantError, F as isTransientHttpError, G as registerBrowserRoutes, H as resolveSandboxContext, I as parseImageDimensionError, J as getBridgeAuthForPort, K as resolveBrowserConfig, L as parseImageSizeError, M as isLikelyContextOverflowError, N as isRateLimitAssistantError, O as isCompactionFailureError, P as isRawApiErrorPayload, Q as trimToUndefined$1, R as sanitizeUserFacingText, S as formatBillingErrorMessage, T as isAuthAssistantError, U as resolveSandboxRuntimeStatus, V as ensureSandboxWorkspaceForSession, W as createBrowserRouteContext, X as resolveBrowserControlAuth, Y as ensureBrowserControlAuth, Z as resolveGatewayCredentialsFromConfig, _ as downgradeOpenAIReasoningBlocks, a as isMessagingToolDuplicateNormalized, at as resolveBootstrapTotalMaxChars, b as classifyFailoverReason, c as sanitizeImageBlocks, ct as buildPluginToolGroups, d as canonicalizeBase64, dt as mergeAlsoAllowPolicy, et as compileGlobPatterns, f as estimateBase64DecodedBytes, ft as stripPluginOnlyAllowlist, g as downgradeOpenAIFunctionCallReasoningPairs, h as sanitizeToolCallIdsForCloudCodeAssist, ht as resolveToolProfilePolicy, it as resolveBootstrapMaxChars, j as isFailoverErrorMessage, k as isContextOverflowError, l as sanitizeToolResultImages, lt as collectExplicitAllowlist, m as extractToolResultId, mt as normalizeToolName, n as validateGeminiTurns, nt as buildBootstrapContextFiles, o as normalizeTextForComparison, ot as sanitizeGoogleTurnOrdering, p as extractToolCallsFromAssistant, pt as expandToolGroups, q as resolveProfile, r as pickFallbackThinkingLevel, rt as ensureSessionHeader, s as sanitizeSessionMessagesImages, st as applyOwnerOnlyToolPolicy, t as validateAnthropicTurns, tt as matchesAnyGlobPattern, u as resolveImageSanitizationLimits, ut as expandPolicyWithPluginGroups, v as isGoogleModelApi, w as getApiErrorPayloadFingerprint, x as formatAssistantErrorText, y as BILLING_ERROR_USER_MESSAGE, z as isAuthPermanentErrorMessage } from "./pi-embedded-helpers-
|
|
15
|
-
import { _ as resolveProviderPromptCacheKey, a as toInternalMessageReceivedContext, c as toPluginMessageReceivedEvent, d as resolveOutboundSessionId, f as getGlobalHookRunner, g as buildPluginTurnIdentity, h as buildPluginRuntimeIdentity, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, m as promptBuildResultToContribution, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, p as initializeGlobalHookRunner, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as buildOutboundSessionContext, v as resolveProviderRuntimeIdentity } from "./outbound-message-hooks-
|
|
11
|
+
import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, o as buildSlackBlocksFallbackText, r as normalizeSlackOutboundText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-BjR1QHnz.js";
|
|
12
|
+
import { $ as fetchChannelPermissionsDiscord, A as addRoleDiscord, 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, kt as resolveChannelEntryMatchWithFallback, 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-BMhuEEtY.js";
|
|
13
|
+
import { a as clearDelayedReleaseHold, c as mergeDelayedAgentTurn, d as KeyedAsyncQueue, i as agentTurnIdempotencyKey, l as peekDelayedAgentTurn, n as getAgentTurnRuntime, o as enqueueAgentTurn, r as tryGetAgentTurnRuntime, s as isClaimableAgentTurnWorkId, u as setDelayedReleaseHold } from "./agent-turn-runner-pU0RGvg6.js";
|
|
14
|
+
import { $ as resolveSandboxConfigForAgent, A as isFailoverAssistantError, B as isTimeoutErrorMessage, C as formatRawAssistantErrorForUi, D as isCloudCodeAssistFormatError, E as isBillingAssistantError, F as isTransientHttpError, G as registerBrowserRoutes, H as resolveSandboxContext, I as parseImageDimensionError, J as getBridgeAuthForPort, K as resolveBrowserConfig, L as parseImageSizeError, M as isLikelyContextOverflowError, N as isRateLimitAssistantError, O as isCompactionFailureError, P as isRawApiErrorPayload, Q as trimToUndefined$1, R as sanitizeUserFacingText, S as formatBillingErrorMessage, T as isAuthAssistantError, U as resolveSandboxRuntimeStatus, V as ensureSandboxWorkspaceForSession, W as createBrowserRouteContext, X as resolveBrowserControlAuth, Y as ensureBrowserControlAuth, Z as resolveGatewayCredentialsFromConfig, _ as downgradeOpenAIReasoningBlocks, a as isMessagingToolDuplicateNormalized, at as resolveBootstrapTotalMaxChars, b as classifyFailoverReason, c as sanitizeImageBlocks, ct as buildPluginToolGroups, d as canonicalizeBase64, dt as mergeAlsoAllowPolicy, et as compileGlobPatterns, f as estimateBase64DecodedBytes, ft as stripPluginOnlyAllowlist, g as downgradeOpenAIFunctionCallReasoningPairs, h as sanitizeToolCallIdsForCloudCodeAssist, ht as resolveToolProfilePolicy, it as resolveBootstrapMaxChars, j as isFailoverErrorMessage, k as isContextOverflowError, l as sanitizeToolResultImages, lt as collectExplicitAllowlist, m as extractToolResultId, mt as normalizeToolName, n as validateGeminiTurns, nt as buildBootstrapContextFiles, o as normalizeTextForComparison, ot as sanitizeGoogleTurnOrdering, p as extractToolCallsFromAssistant, pt as expandToolGroups, q as resolveProfile, r as pickFallbackThinkingLevel, rt as ensureSessionHeader, s as sanitizeSessionMessagesImages, st as applyOwnerOnlyToolPolicy, t as validateAnthropicTurns, tt as matchesAnyGlobPattern, u as resolveImageSanitizationLimits, ut as expandPolicyWithPluginGroups, v as isGoogleModelApi, w as getApiErrorPayloadFingerprint, x as formatAssistantErrorText, y as BILLING_ERROR_USER_MESSAGE, z as isAuthPermanentErrorMessage } from "./pi-embedded-helpers-B-OOYT64.js";
|
|
15
|
+
import { _ as resolveProviderPromptCacheKey, a as toInternalMessageReceivedContext, c as toPluginMessageReceivedEvent, d as resolveOutboundSessionId, f as getGlobalHookRunner, g as buildPluginTurnIdentity, h as buildPluginRuntimeIdentity, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, m as promptBuildResultToContribution, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, p as initializeGlobalHookRunner, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as buildOutboundSessionContext, v as resolveProviderRuntimeIdentity } from "./outbound-message-hooks-BUHUdpjM.js";
|
|
16
16
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DTYnjeA4.js";
|
|
17
|
-
import { a as resolveProviderVisionModelFromConfig, i as decodeDataUrl, n as coerceImageAssistantText, o as minimaxUnderstandImage, r as coerceImageModelConfig, s as ensureOpenClawModelsJson } from "./provider-image-
|
|
18
|
-
import { C as loadModelCatalog, S as findModelInCatalog, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, 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, v as buildRandomTempFilePath, w as modelSupportsVision, x as resolveAttachmentKind, y as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
19
|
-
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-
|
|
20
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
21
|
-
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-
|
|
22
|
-
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-
|
|
23
|
-
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
24
|
-
import { r as makeProxyFetch } from "./proxy-fetch-
|
|
25
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
26
|
-
import { _ as extractTextFromChatContent, a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-
|
|
27
|
-
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, V as resolveClientIp, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-
|
|
28
|
-
import { 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-
|
|
29
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
30
|
-
import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
31
|
-
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-
|
|
17
|
+
import { a as resolveProviderVisionModelFromConfig, i as decodeDataUrl, n as coerceImageAssistantText, o as minimaxUnderstandImage, r as coerceImageModelConfig, s as ensureOpenClawModelsJson } from "./provider-image-zNa1Cccq.js";
|
|
18
|
+
import { C as loadModelCatalog, S as findModelInCatalog, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, 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, v as buildRandomTempFilePath, w as modelSupportsVision, x as resolveAttachmentKind, y as registerUnhandledRejectionHandler } from "./audio-transcription-runner-CUsZFiEA.js";
|
|
19
|
+
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-hEreHolP.js";
|
|
20
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-Bm03YsK2.js";
|
|
21
|
+
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-CdcLrd0n.js";
|
|
22
|
+
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-A1m6BOhm.js";
|
|
23
|
+
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-B2Wnl9Vi.js";
|
|
24
|
+
import { r as makeProxyFetch } from "./proxy-fetch-CNBkczcW.js";
|
|
25
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DF6l-F8s.js";
|
|
26
|
+
import { _ as extractTextFromChatContent, a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-BoSGTbYO.js";
|
|
27
|
+
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, V as resolveClientIp, W as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-VZ0Zuu2w.js";
|
|
28
|
+
import { 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-CatBv8W4.js";
|
|
29
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Dft7g-_v.js";
|
|
30
|
+
import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-ClebEeLz.js";
|
|
31
|
+
import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-6JKvp2Zu.js";
|
|
32
32
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-B2UrD2xa.js";
|
|
33
33
|
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-CwmtMy_H.js";
|
|
34
|
-
import { $ as resolveTelegramThreadSpec, A as splitTelegramCaption, B as buildTelegramThreadParams, C as recordApiRequest, D as registerAccount, E as recordWebhook, F as buildSenderLabel, G as hasBotMention, H as describeReplyTarget, I as buildSenderName, J as resolveTelegramForumThreadId, K as normalizeForwardedContext, L as buildTelegramGroupFrom, M as loadCronStore, N as resolveCronStorePath, O as releaseAccountOwner, P as buildGroupLabel, Q as resolveTelegramStreamMode, R as buildTelegramGroupPeerId, S as getTelegramFleetSupervisor, T as recordUpdate, U as expandTextLinks, V as buildTypingThreadParams, W as extractTelegramLocation, X as resolveTelegramMediaPlaceholder, Y as resolveTelegramGroupAllowFromContext, Z as resolveTelegramReplyId, _ as markdownToTelegramChunks, _t as listPairingChannels, a as reactMessageTelegram, at as isSenderIdAllowed, b as wrapFileReferencesInHtml, bt as isVoiceCompatibleAudio, c as sendStickerTelegram, ct as formatLocationText, d as extractTelegramErrorText, dt as readChannelAllowFromStore, et as isSenderAllowed$1, f as isDefiniteTelegramRequestNonDeliveryError, ft as removeChannelAllowFromStoreEntry, g as isTelegramEditMayHaveLandedError, gt as getPairingAdapter, h as isTelegramClientRejection, ht as writeJsonFileAtomically, i as editMessageTelegram, it as firstDefined$1, j as withTelegramApiErrorLogging, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as toLocationContext, m as isSafeToRetrySendError, mt as readJsonFileWithFallback, n as createForumTopicTelegram, nt as normalizeDmAllowFromWithStore$1, o as sendMessageTelegram, ot as mergeDmAllowFromSources, p as isRecoverableTelegramNetworkError, pt as upsertChannelPairingRequest, q as resolveTelegramDirectPeerId, r as deleteMessageTelegram, rt as resolveSenderAllowMatch$1, s as sendPollTelegram, st as resolveGroupAllowFromSources, t as buildInlineKeyboard, tt as normalizeAllowFrom$2, u as wasSentByBot, ut as addChannelAllowFromStoreEntry, v as markdownToTelegramHtml, vt as parseTelegramTarget, w as recordState, x as fingerprintTelegramToken, y as renderTelegramHtmlText, yt as resolveTelegramTargetChatType, z as buildTelegramParentPeer } from "./send-
|
|
35
|
-
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
36
|
-
import { A as boundDiagnosticContent, C as logWebhookError, D as refreshRunProgress, E as recordSystemPromptHashComparison, M as resetCommandPollCount, O as startDiagnosticHeartbeat, S as logToolExecutionStarted, T as logWebhookReceived, b as logToolExecutionBlocked, d as logRunCompleted, f as logRunStarted, j as recordCommandPoll, k as stopDiagnosticHeartbeat, l as logModelCallError, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, w as logWebhookProcessed, x as logToolExecutionCompleted } from "./diagnostic-
|
|
37
|
-
import { r as getDiagnosticSessionState, s as redactChannelCorrelation } from "./diagnostic-session-state-
|
|
34
|
+
import { $ as resolveTelegramThreadSpec, A as splitTelegramCaption, B as buildTelegramThreadParams, C as recordApiRequest, D as registerAccount, E as recordWebhook, F as buildSenderLabel, G as hasBotMention, H as describeReplyTarget, I as buildSenderName, J as resolveTelegramForumThreadId, K as normalizeForwardedContext, L as buildTelegramGroupFrom, M as loadCronStore, N as resolveCronStorePath, O as releaseAccountOwner, P as buildGroupLabel, Q as resolveTelegramStreamMode, R as buildTelegramGroupPeerId, S as getTelegramFleetSupervisor, T as recordUpdate, U as expandTextLinks, V as buildTypingThreadParams, W as extractTelegramLocation, X as resolveTelegramMediaPlaceholder, Y as resolveTelegramGroupAllowFromContext, Z as resolveTelegramReplyId, _ as markdownToTelegramChunks, _t as listPairingChannels, a as reactMessageTelegram, at as isSenderIdAllowed, b as wrapFileReferencesInHtml, bt as isVoiceCompatibleAudio, c as sendStickerTelegram, ct as formatLocationText, d as extractTelegramErrorText, dt as readChannelAllowFromStore, et as isSenderAllowed$1, f as isDefiniteTelegramRequestNonDeliveryError, ft as removeChannelAllowFromStoreEntry, g as isTelegramEditMayHaveLandedError, gt as getPairingAdapter, h as isTelegramClientRejection, ht as writeJsonFileAtomically, i as editMessageTelegram, it as firstDefined$1, j as withTelegramApiErrorLogging, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as toLocationContext, m as isSafeToRetrySendError, mt as readJsonFileWithFallback, n as createForumTopicTelegram, nt as normalizeDmAllowFromWithStore$1, o as sendMessageTelegram, ot as mergeDmAllowFromSources, p as isRecoverableTelegramNetworkError, pt as upsertChannelPairingRequest, q as resolveTelegramDirectPeerId, r as deleteMessageTelegram, rt as resolveSenderAllowMatch$1, s as sendPollTelegram, st as resolveGroupAllowFromSources, t as buildInlineKeyboard, tt as normalizeAllowFrom$2, u as wasSentByBot, ut as addChannelAllowFromStoreEntry, v as markdownToTelegramHtml, vt as parseTelegramTarget, w as recordState, x as fingerprintTelegramToken, y as renderTelegramHtmlText, yt as resolveTelegramTargetChatType, z as buildTelegramParentPeer } from "./send-CF3PEjRy.js";
|
|
35
|
+
import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-Cioh8xR5.js";
|
|
36
|
+
import { A as boundDiagnosticContent, C as logWebhookError, D as refreshRunProgress, E as recordSystemPromptHashComparison, M as resetCommandPollCount, O as startDiagnosticHeartbeat, S as logToolExecutionStarted, T as logWebhookReceived, b as logToolExecutionBlocked, d as logRunCompleted, f as logRunStarted, j as recordCommandPoll, k as stopDiagnosticHeartbeat, l as logModelCallError, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, w as logWebhookProcessed, x as logToolExecutionCompleted } from "./diagnostic-BRUM6uNI.js";
|
|
37
|
+
import { r as getDiagnosticSessionState, s as redactChannelCorrelation } from "./diagnostic-session-state-BsHrQ7U3.js";
|
|
38
38
|
import { t as redactIdentifier } from "./redact-identifier-BN_ntAFs.js";
|
|
39
39
|
import { t as CommandLane } from "./lanes-DLWRMvoo.js";
|
|
40
|
-
import { a as getCommandLaneSnapshots, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, s as isQueuedCommandCancellation, t as CommandLaneAbortedError } from "./command-queue-
|
|
41
|
-
import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-
|
|
42
|
-
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-
|
|
43
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
44
|
-
import { _ as buildTargetResolverSignature, a as normalizeReplyPayloadsForDelivery, c as applyReplyTagsToPayload, d as filterMessagingToolMediaDuplicates, f as isRenderablePayload, g as resolveReplyToMode, h as createReplyToModeFilterForChannel, i as normalizeOutboundPayloadsForJson, l as applyReplyThreading, m as shouldSuppressReasoningPayload, n as formatOutboundPayloadLog, o as throwIfAborted, p as shouldSuppressMessagingToolReplies, r as normalizeOutboundPayloads, s as loadChannelOutboundAdapter, t as deliverOutboundPayloads, u as filterMessagingToolDuplicates, v as normalizeChannelTargetInput, y as normalizeTargetForProvider } from "./deliver-
|
|
45
|
-
import { a as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
46
|
-
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-
|
|
47
|
-
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-
|
|
48
|
-
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-
|
|
49
|
-
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-
|
|
40
|
+
import { a as getCommandLaneSnapshots, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, s as isQueuedCommandCancellation, t as CommandLaneAbortedError } from "./command-queue-CbgNIrv6.js";
|
|
41
|
+
import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-Bh43SlDc.js";
|
|
42
|
+
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-H2FY7UEk.js";
|
|
43
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-BKQgC6Vj.js";
|
|
44
|
+
import { _ as buildTargetResolverSignature, a as normalizeReplyPayloadsForDelivery, c as applyReplyTagsToPayload, d as filterMessagingToolMediaDuplicates, f as isRenderablePayload, g as resolveReplyToMode, h as createReplyToModeFilterForChannel, i as normalizeOutboundPayloadsForJson, l as applyReplyThreading, m as shouldSuppressReasoningPayload, n as formatOutboundPayloadLog, o as throwIfAborted, p as shouldSuppressMessagingToolReplies, r as normalizeOutboundPayloads, s as loadChannelOutboundAdapter, t as deliverOutboundPayloads, u as filterMessagingToolDuplicates, v as normalizeChannelTargetInput, y as normalizeTargetForProvider } from "./deliver-B7W4NNsR.js";
|
|
45
|
+
import { a as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-BU_faNrp.js";
|
|
46
|
+
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-Cmgtf5my.js";
|
|
47
|
+
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-XW2hmbAE.js";
|
|
48
|
+
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-C1vgNaXJ.js";
|
|
49
|
+
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-OIauZrkN.js";
|
|
50
50
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-CdUD5EUN.js";
|
|
51
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-
|
|
51
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-1CthVxHv.js";
|
|
52
52
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-FDYDS-Om.js";
|
|
53
|
-
import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-
|
|
54
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
55
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
56
|
-
import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-
|
|
57
|
-
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-
|
|
58
|
-
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-
|
|
59
|
-
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-
|
|
60
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
61
|
-
import { t as createTelegramPollingTransport } from "./proxy-
|
|
62
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
63
|
-
import { t as recordInboundSessionMetaSafe } from "./session-meta-
|
|
64
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
65
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
53
|
+
import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-BWz-lIzS.js";
|
|
54
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DZM4NfLU.js";
|
|
55
|
+
import { t as convertMarkdownTables } from "./tables-BPCP4CpE.js";
|
|
56
|
+
import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-DlpzQk0X.js";
|
|
57
|
+
import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-hfOVgXpA.js";
|
|
58
|
+
import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-CEtGyK32.js";
|
|
59
|
+
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-DdPdUcD0.js";
|
|
60
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-tqQv32nr.js";
|
|
61
|
+
import { t as createTelegramPollingTransport } from "./proxy-CXI1ycJj.js";
|
|
62
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-CS2GXrd-.js";
|
|
63
|
+
import { t as recordInboundSessionMetaSafe } from "./session-meta-oR-S9C5J.js";
|
|
64
|
+
import { n as resolveMemorySearchConfig } from "./manager-C4CJpRd9.js";
|
|
65
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-DjZsVofz.js";
|
|
66
66
|
import { createRequire } from "node:module";
|
|
67
67
|
import * as path$1 from "node:path";
|
|
68
68
|
import path, { basename, isAbsolute, join } from "node:path";
|
|
@@ -71,7 +71,7 @@ import { Type } from "@sinclair/typebox";
|
|
|
71
71
|
import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
72
72
|
import os, { homedir } from "node:os";
|
|
73
73
|
import { inspect, isDeepStrictEqual, promisify } from "node:util";
|
|
74
|
-
import
|
|
74
|
+
import json5 from "json5";
|
|
75
75
|
import * as fs$2 from "node:fs/promises";
|
|
76
76
|
import fs$1, { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
77
77
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -84,7 +84,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
84
84
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
85
85
|
import { createJiti } from "jiti";
|
|
86
86
|
import { createServer } from "node:http";
|
|
87
|
-
import WebSocket, { WebSocket
|
|
87
|
+
import WebSocket$1, { WebSocket } from "ws";
|
|
88
88
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
89
89
|
import { EdgeTTS } from "node-edge-tts";
|
|
90
90
|
import AjvPkg from "ajv";
|
|
@@ -9975,7 +9975,7 @@ var GatewayClient = class {
|
|
|
9975
9975
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
9976
9976
|
});
|
|
9977
9977
|
}
|
|
9978
|
-
this.ws = new WebSocket
|
|
9978
|
+
this.ws = new WebSocket(url, wsOptions);
|
|
9979
9979
|
this.ws.on("open", () => {
|
|
9980
9980
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
9981
9981
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -10171,7 +10171,7 @@ var GatewayClient = class {
|
|
|
10171
10171
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
10172
10172
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
10173
10173
|
this.connectTimer = setTimeout(() => {
|
|
10174
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket
|
|
10174
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
10175
10175
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
10176
10176
|
this.ws?.close(1008, "connect challenge timeout");
|
|
10177
10177
|
}, connectChallengeTimeoutMs);
|
|
@@ -10213,7 +10213,7 @@ var GatewayClient = class {
|
|
|
10213
10213
|
return null;
|
|
10214
10214
|
}
|
|
10215
10215
|
async request(method, params, opts) {
|
|
10216
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
10216
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
10217
10217
|
const id = randomUUID();
|
|
10218
10218
|
const frame = {
|
|
10219
10219
|
type: "req",
|
|
@@ -13228,7 +13228,7 @@ async function routeReply(params) {
|
|
|
13228
13228
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
13229
13229
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
13230
13230
|
try {
|
|
13231
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
13231
|
+
const { deliverOutboundPayloads } = await import("./deliver-CJP9TznW.js");
|
|
13232
13232
|
const outboundSession = buildOutboundSessionContext({
|
|
13233
13233
|
cfg,
|
|
13234
13234
|
agentId: resolvedAgentId,
|
|
@@ -14816,7 +14816,7 @@ async function sendTranscriptEcho(params) {
|
|
|
14816
14816
|
}
|
|
14817
14817
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
14818
14818
|
try {
|
|
14819
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
14819
|
+
const { deliverOutboundPayloads } = await import("./deliver-CJP9TznW.js");
|
|
14820
14820
|
await deliverOutboundPayloads({
|
|
14821
14821
|
cfg,
|
|
14822
14822
|
channel: normalizedChannel,
|
|
@@ -20962,7 +20962,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
20962
20962
|
await ensureOpenClawModelsJson(cfg);
|
|
20963
20963
|
} catch {}
|
|
20964
20964
|
try {
|
|
20965
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
20965
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DF6l-F8s.js").then((n) => n.r);
|
|
20966
20966
|
const agentDir = resolveOpenClawAgentDir();
|
|
20967
20967
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
20968
20968
|
applyDiscoveredContextWindows({
|
|
@@ -31128,7 +31128,7 @@ function normalizeSessionKey(value) {
|
|
|
31128
31128
|
function readSessionStore(storePath) {
|
|
31129
31129
|
try {
|
|
31130
31130
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
31131
|
-
const parsed =
|
|
31131
|
+
const parsed = json5.parse(raw);
|
|
31132
31132
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
31133
31133
|
} catch {}
|
|
31134
31134
|
return {};
|
|
@@ -32791,7 +32791,7 @@ async function createModelSelectionState(params) {
|
|
|
32791
32791
|
}
|
|
32792
32792
|
}
|
|
32793
32793
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
32794
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
32794
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-OgKl-vr-.js");
|
|
32795
32795
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
32796
32796
|
const providerKey = normalizeProviderId(provider);
|
|
32797
32797
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -53067,7 +53067,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
53067
53067
|
return;
|
|
53068
53068
|
}
|
|
53069
53069
|
try {
|
|
53070
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
53070
|
+
const { deliverOutboundPayloads } = await import("./deliver-CJP9TznW.js");
|
|
53071
53071
|
const outboundSession = buildOutboundSessionContext({
|
|
53072
53072
|
cfg: params.cfg,
|
|
53073
53073
|
sessionKey: params.sessionKey
|
|
@@ -54536,7 +54536,7 @@ function requestNudge(input, cfg = loadConfig(), deps) {
|
|
|
54536
54536
|
const { backbone, runner } = getAgentTurnRuntime();
|
|
54537
54537
|
const id = await enqueueAgentTurn(backbone, payload);
|
|
54538
54538
|
if (!isClaimableAgentTurnWorkId(id)) return;
|
|
54539
|
-
const { runMainAgentTurn } = await import("./agent-turn-execute-
|
|
54539
|
+
const { runMainAgentTurn } = await import("./agent-turn-execute-DoRgVKVO.js");
|
|
54540
54540
|
await runner.claimAndExecute({
|
|
54541
54541
|
workId: id,
|
|
54542
54542
|
execute: (claim) => runMainAgentTurn(claim.message.payload)
|
|
@@ -55819,7 +55819,7 @@ async function handleHeartbeatError(params) {
|
|
|
55819
55819
|
const AGENT_TURN_PROMPT = "Process the pending system events for this session.";
|
|
55820
55820
|
async function ackAnnounceExecuted(payload) {
|
|
55821
55821
|
if (payload.kind !== "announce") return;
|
|
55822
|
-
const { markSubagentAnnounceExecuted } = await import("./subagent-registry-
|
|
55822
|
+
const { markSubagentAnnounceExecuted } = await import("./subagent-registry-CAdT47aY.js");
|
|
55823
55823
|
for (const runId of [payload.runId, ...payload.mergedRunIds ?? []]) try {
|
|
55824
55824
|
await markSubagentAnnounceExecuted(runId);
|
|
55825
55825
|
} catch {}
|
|
@@ -56067,7 +56067,7 @@ const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
|
56067
56067
|
let subagentRegistryAccessPromise;
|
|
56068
56068
|
const STALLED_SIBLING_ANNOUNCE_HOLD_MS = 5 * 6e4;
|
|
56069
56069
|
function loadSubagentRegistryAccess() {
|
|
56070
|
-
if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-
|
|
56070
|
+
if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-CAdT47aY.js").catch((err) => {
|
|
56071
56071
|
const message = err instanceof Error && err.message ? err.message : String(err);
|
|
56072
56072
|
defaultRuntime.log(`[warn] subagent registry access import failed: ${message}`);
|
|
56073
56073
|
subagentRegistryAccessPromise = void 0;
|
|
@@ -58640,8 +58640,8 @@ function shouldEmitLoopWarning(state, warningKey, count) {
|
|
|
58640
58640
|
async function recordLoopOutcome(args) {
|
|
58641
58641
|
if (!args.ctx?.sessionKey) return;
|
|
58642
58642
|
try {
|
|
58643
|
-
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-
|
|
58644
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
58643
|
+
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-BsHrQ7U3.js").then((n) => n.n);
|
|
58644
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-BN0lIxLx.js");
|
|
58645
58645
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
58646
58646
|
sessionKey: args.ctx.sessionKey,
|
|
58647
58647
|
sessionId: args.ctx?.agentId
|
|
@@ -58667,9 +58667,9 @@ async function runBeforeToolCallHook(args) {
|
|
|
58667
58667
|
const toolName = normalizeToolName(args.toolName || "tool");
|
|
58668
58668
|
const params = args.params;
|
|
58669
58669
|
if (args.ctx?.sessionKey) {
|
|
58670
|
-
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-
|
|
58671
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
58672
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
58670
|
+
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-BsHrQ7U3.js").then((n) => n.n);
|
|
58671
|
+
const { logToolLoopAction } = await import("./diagnostic-BRUM6uNI.js").then((n) => n.n);
|
|
58672
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-BN0lIxLx.js");
|
|
58673
58673
|
const sessionState = getDiagnosticSessionState({
|
|
58674
58674
|
sessionKey: args.ctx.sessionKey,
|
|
58675
58675
|
sessionId: args.ctx?.agentId
|
|
@@ -64413,7 +64413,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
64413
64413
|
* Throws if the connection is not open.
|
|
64414
64414
|
*/
|
|
64415
64415
|
send(event) {
|
|
64416
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
64416
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
64417
64417
|
this.ws.send(JSON.stringify(event));
|
|
64418
64418
|
}
|
|
64419
64419
|
/**
|
|
@@ -64430,7 +64430,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
64430
64430
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
64431
64431
|
*/
|
|
64432
64432
|
isConnected() {
|
|
64433
|
-
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
64433
|
+
return this.ws !== null && this.ws.readyState === WebSocket$1.OPEN;
|
|
64434
64434
|
}
|
|
64435
64435
|
/**
|
|
64436
64436
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -64440,7 +64440,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
64440
64440
|
this._cancelRetryTimer();
|
|
64441
64441
|
if (this.ws) {
|
|
64442
64442
|
this.ws.removeAllListeners();
|
|
64443
|
-
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
64443
|
+
if (this.ws.readyState === WebSocket$1.OPEN || this.ws.readyState === WebSocket$1.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
64444
64444
|
this.ws = null;
|
|
64445
64445
|
}
|
|
64446
64446
|
}
|
|
@@ -64450,7 +64450,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
64450
64450
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
64451
64451
|
return;
|
|
64452
64452
|
}
|
|
64453
|
-
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
64453
|
+
const socket = new WebSocket$1(this.wsUrl, { headers: {
|
|
64454
64454
|
Authorization: `Bearer ${this.apiKey}`,
|
|
64455
64455
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
64456
64456
|
} });
|
|
@@ -76285,7 +76285,7 @@ async function describeStickerImage(params) {
|
|
|
76285
76285
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
76286
76286
|
try {
|
|
76287
76287
|
const buffer = await fs$1.readFile(imagePath);
|
|
76288
|
-
const { describeImageWithModel } = await import("./provider-image-
|
|
76288
|
+
const { describeImageWithModel } = await import("./provider-image-L_SRDPHU.js");
|
|
76289
76289
|
return (await describeImageWithModel({
|
|
76290
76290
|
buffer,
|
|
76291
76291
|
fileName: "sticker.webp",
|
|
@@ -77998,7 +77998,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
77998
77998
|
let transcript;
|
|
77999
77999
|
let carry;
|
|
78000
78000
|
if (needsPreflightTranscription) try {
|
|
78001
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
78001
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-8hRbl8Io.js");
|
|
78002
78002
|
const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
|
|
78003
78003
|
if (uploadable.length > 0) {
|
|
78004
78004
|
const preflight = await transcribeFirstAudio({
|
|
@@ -85202,23 +85202,23 @@ function createDefaultDeps() {
|
|
|
85202
85202
|
};
|
|
85203
85203
|
},
|
|
85204
85204
|
sendMessageTelegram: async (...args) => {
|
|
85205
|
-
const { sendMessageTelegram } = await import("./send-
|
|
85205
|
+
const { sendMessageTelegram } = await import("./send-CzxwgKvR.js");
|
|
85206
85206
|
return await sendMessageTelegram(...args);
|
|
85207
85207
|
},
|
|
85208
85208
|
sendMessageDiscord: async (...args) => {
|
|
85209
|
-
const { sendMessageDiscord } = await import("./send-
|
|
85209
|
+
const { sendMessageDiscord } = await import("./send-DUJMd2d7.js");
|
|
85210
85210
|
return await sendMessageDiscord(...args);
|
|
85211
85211
|
},
|
|
85212
85212
|
sendMessageSlack: async (...args) => {
|
|
85213
|
-
const { sendMessageSlack } = await import("./send-
|
|
85213
|
+
const { sendMessageSlack } = await import("./send-DuCB2xbl.js");
|
|
85214
85214
|
return await sendMessageSlack(...args);
|
|
85215
85215
|
},
|
|
85216
85216
|
sendMessageSignal: async (...args) => {
|
|
85217
|
-
const { sendMessageSignal } = await import("./send-
|
|
85217
|
+
const { sendMessageSignal } = await import("./send-DyYaWr3E.js");
|
|
85218
85218
|
return await sendMessageSignal(...args);
|
|
85219
85219
|
},
|
|
85220
85220
|
sendMessageIMessage: async (...args) => {
|
|
85221
|
-
const { sendMessageIMessage } = await import("./send-
|
|
85221
|
+
const { sendMessageIMessage } = await import("./send-CRtSAH8I.js");
|
|
85222
85222
|
return await sendMessageIMessage(...args);
|
|
85223
85223
|
}
|
|
85224
85224
|
};
|
|
@@ -88708,7 +88708,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
88708
88708
|
return super.registerClient(client);
|
|
88709
88709
|
}
|
|
88710
88710
|
createWebSocket(url) {
|
|
88711
|
-
return new WebSocket(url, { agent: wsAgent });
|
|
88711
|
+
return new WebSocket$1(url, { agent: wsAgent });
|
|
88712
88712
|
}
|
|
88713
88713
|
}
|
|
88714
88714
|
return new ProxyGatewayPlugin();
|
|
@@ -97529,7 +97529,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
97529
97529
|
}
|
|
97530
97530
|
let commandsRegistry;
|
|
97531
97531
|
async function getCommandsRegistry() {
|
|
97532
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
97532
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-XW2hmbAE.js").then((n) => n.n);
|
|
97533
97533
|
return commandsRegistry;
|
|
97534
97534
|
}
|
|
97535
97535
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -97859,14 +97859,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
97859
97859
|
const channelName = channelInfo?.name;
|
|
97860
97860
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
97861
97861
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
97862
|
-
import("./resolve-route-
|
|
97863
|
-
import("./inbound-context-
|
|
97864
|
-
import("./provider-dispatcher-
|
|
97862
|
+
import("./resolve-route-tqQv32nr.js").then((n) => n.r),
|
|
97863
|
+
import("./inbound-context-Cmgtf5my.js").then((n) => n.n),
|
|
97864
|
+
import("./provider-dispatcher-CNLIHg-v.js")
|
|
97865
97865
|
]);
|
|
97866
97866
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
|
|
97867
97867
|
import("./conversation-label-TAXJpeGu.js"),
|
|
97868
|
-
import("./reply-prefix-
|
|
97869
|
-
import("./session-meta-
|
|
97868
|
+
import("./reply-prefix-BKQgC6Vj.js").then((n) => n.n),
|
|
97869
|
+
import("./session-meta-oR-S9C5J.js").then((n) => n.n)
|
|
97870
97870
|
]);
|
|
97871
97871
|
const route = resolveAgentRoute({
|
|
97872
97872
|
cfg,
|
|
@@ -97931,9 +97931,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
97931
97931
|
});
|
|
97932
97932
|
const deliverSlashPayloads = async (replies) => {
|
|
97933
97933
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
97934
|
-
import("./replies-
|
|
97935
|
-
import("./chunk-
|
|
97936
|
-
import("./markdown-tables-
|
|
97934
|
+
import("./replies-BFjGWAPs.js"),
|
|
97935
|
+
import("./chunk-BWz-lIzS.js").then((n) => n.s),
|
|
97936
|
+
import("./markdown-tables-DZM4NfLU.js").then((n) => n.t)
|
|
97937
97937
|
]);
|
|
97938
97938
|
await deliverSlackSlashReplies({
|
|
97939
97939
|
replies,
|
|
@@ -97987,7 +97987,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
97987
97987
|
let nativeCommands = [];
|
|
97988
97988
|
if (nativeEnabled) {
|
|
97989
97989
|
reg = await getCommandsRegistry();
|
|
97990
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
97990
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-Bh43SlDc.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
97991
97991
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
97992
97992
|
skillCommands,
|
|
97993
97993
|
provider: "slack"
|
|
@@ -98506,8 +98506,8 @@ async function auditTelegramGroupMembership(params) {
|
|
|
98506
98506
|
groups: [],
|
|
98507
98507
|
elapsedMs: Date.now() - started
|
|
98508
98508
|
};
|
|
98509
|
-
const fetcher = params.proxyUrl ? (await import("./proxy-
|
|
98510
|
-
const { fetchWithTimeout } = await import("./fetch-timeout-
|
|
98509
|
+
const fetcher = params.proxyUrl ? (await import("./proxy-CXI1ycJj.js").then((n) => n.n)).makeProxyFetch(params.proxyUrl) : fetch;
|
|
98510
|
+
const { fetchWithTimeout } = await import("./fetch-timeout-A1m6BOhm.js").then((n) => n.r);
|
|
98511
98511
|
const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
|
|
98512
98512
|
const groups = [];
|
|
98513
98513
|
for (const chatId of params.groupIds) try {
|
|
@@ -101040,7 +101040,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
101040
101040
|
let audioPreflightCarry;
|
|
101041
101041
|
const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
|
|
101042
101042
|
if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
|
|
101043
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
101043
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-8hRbl8Io.js");
|
|
101044
101044
|
const preflight = await transcribeFirstAudio({
|
|
101045
101045
|
ctx: {
|
|
101046
101046
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -105450,7 +105450,7 @@ async function getMemorySearchManager(params) {
|
|
|
105450
105450
|
if (cached) return { manager: cached };
|
|
105451
105451
|
}
|
|
105452
105452
|
try {
|
|
105453
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
105453
|
+
const { QmdMemoryManager } = await import("./qmd-manager-CkQhKIXI.js");
|
|
105454
105454
|
const primary = await QmdMemoryManager.create({
|
|
105455
105455
|
cfg: params.cfg,
|
|
105456
105456
|
agentId: params.agentId,
|
|
@@ -105462,7 +105462,7 @@ async function getMemorySearchManager(params) {
|
|
|
105462
105462
|
const wrapper = new FallbackMemoryManager({
|
|
105463
105463
|
primary,
|
|
105464
105464
|
fallbackFactory: async () => {
|
|
105465
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
105465
|
+
const { MemoryIndexManager } = await import("./manager-CPcI0Fhz.js");
|
|
105466
105466
|
return await MemoryIndexManager.get(params);
|
|
105467
105467
|
}
|
|
105468
105468
|
}, () => {
|
|
@@ -105477,7 +105477,7 @@ async function getMemorySearchManager(params) {
|
|
|
105477
105477
|
}
|
|
105478
105478
|
}
|
|
105479
105479
|
try {
|
|
105480
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
105480
|
+
const { MemoryIndexManager } = await import("./manager-CPcI0Fhz.js");
|
|
105481
105481
|
return { manager: await MemoryIndexManager.get(params) };
|
|
105482
105482
|
} catch (err) {
|
|
105483
105483
|
return {
|
|
@@ -106535,7 +106535,7 @@ function createPluginRuntime(options = {}) {
|
|
|
106535
106535
|
workStates: readTaskWorkStates
|
|
106536
106536
|
},
|
|
106537
106537
|
resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
|
|
106538
|
-
sessions: { startUserRun: async (params) => (await import("./user-run-recording-
|
|
106538
|
+
sessions: { startUserRun: async (params) => (await import("./user-run-recording-DlpzQk0X.js").then((n) => n.n)).startUserSessionRun(params) }
|
|
106539
106539
|
};
|
|
106540
106540
|
Object.defineProperty(runtime, "analysis", {
|
|
106541
106541
|
enumerable: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as __exportAll } from "./proxy-env-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { b as __exportAll } from "./proxy-env-B3rQCyUO.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CchgWuXK.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DLWRMvoo.js";
|
|
4
|
-
import { a as resolveSessionRunStore, i as summarizeSessionRunPrompt, n as deriveSessionRunId, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
4
|
+
import { a as resolveSessionRunStore, i as summarizeSessionRunPrompt, n as deriveSessionRunId, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-BU_faNrp.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/lanes.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./agent-scope-
|
|
3
|
-
import { G as applyConfigEnvVars, rt as isRecord } from "./subsystem-
|
|
4
|
-
import { A as requireApiKey, O as getApiKeyForModel, U as loadConfig, Xa as resolveOpenClawAgentDir, _ as resolveImplicitBedrockProvider, eo as normalizeSecretInput, g as normalizeProviders, v as resolveImplicitCopilotProvider, y as resolveImplicitProviders } from "./model-selection-
|
|
5
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
6
|
-
import { t as extractAssistantText } from "./pi-embedded-utils-
|
|
2
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./agent-scope-DxKPMu8w.js";
|
|
3
|
+
import { G as applyConfigEnvVars, rt as isRecord } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { A as requireApiKey, O as getApiKeyForModel, U as loadConfig, Xa as resolveOpenClawAgentDir, _ as resolveImplicitBedrockProvider, eo as normalizeSecretInput, g as normalizeProviders, v as resolveImplicitCopilotProvider, y as resolveImplicitProviders } from "./model-selection-CdZITU0t.js";
|
|
5
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-B9KKtGuw.js";
|
|
6
|
+
import { t as extractAssistantText } from "./pi-embedded-utils-DOtaZ7KV.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ct as ipMatchesAnyCidr, dt as isCanonicalDottedDecimalIPv4, lt as isBlockedSpecialUseIpv4Address, mt as isLegacyIpv4Literal, pt as isIpv4Address, st as extractEmbeddedIpv4FromIpv6, ut as isBlockedSpecialUseIpv6Address, vt as parseCanonicalIpAddress, yt as parseLooseIpAddress } from "./model-selection-
|
|
2
|
-
import { t as redactSensitiveText } from "./redact-
|
|
1
|
+
import { ct as ipMatchesAnyCidr, dt as isCanonicalDottedDecimalIPv4, lt as isBlockedSpecialUseIpv4Address, mt as isLegacyIpv4Literal, pt as isIpv4Address, st as extractEmbeddedIpv4FromIpv6, ut as isBlockedSpecialUseIpv6Address, vt as parseCanonicalIpAddress, yt as parseLooseIpAddress } from "./model-selection-CdZITU0t.js";
|
|
2
|
+
import { t as redactSensitiveText } from "./redact-DZne_lu8.js";
|
|
3
3
|
import { lookup } from "node:dns";
|
|
4
4
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
5
5
|
import { Agent } from "undici";
|