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,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as makeManagedProxyFetch, r as makeProxyFetch } from "./proxy-fetch-
|
|
2
|
+
import { n as makeManagedProxyFetch, r as makeProxyFetch } from "./proxy-fetch-DCI0KuH6.js";
|
|
3
3
|
|
|
4
4
|
//#region src/telegram/proxy.ts
|
|
5
5
|
var proxy_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { oi as formatCliCommand } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./artifacts-
|
|
10
|
-
import "./redact-
|
|
11
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
12
|
-
import "./path-alias-guards-
|
|
13
|
-
import { p as formatErrorMessage } from "./proxy-env-
|
|
14
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
1
|
+
import "./agent-scope-DxKPMu8w.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import "./workspace-B707AGIc.js";
|
|
5
|
+
import "./logger-a0-zAY5a.js";
|
|
6
|
+
import { oi as formatCliCommand } from "./model-selection-CdZITU0t.js";
|
|
7
|
+
import "./github-copilot-token-zGOMIGSh.js";
|
|
8
|
+
import "./legacy-names-vLJrYADD.js";
|
|
9
|
+
import "./artifacts-QHme-vnS.js";
|
|
10
|
+
import "./redact-DZne_lu8.js";
|
|
11
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-FHxGdLnd.js";
|
|
12
|
+
import "./path-alias-guards-Zj-NwKjV.js";
|
|
13
|
+
import { p as formatErrorMessage } from "./proxy-env-CzGKpJY_.js";
|
|
14
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-LRpYbPaA.js";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import crypto from "node:crypto";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { G as parseAgentSessionKey } from "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./artifacts-
|
|
7
|
-
import "./redact-
|
|
8
|
-
import "./path-alias-guards-
|
|
9
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-DxKPMu8w.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { G as parseAgentSessionKey } from "./workspace-B707AGIc.js";
|
|
5
|
+
import "./logger-a0-zAY5a.js";
|
|
6
|
+
import "./artifacts-QHme-vnS.js";
|
|
7
|
+
import "./redact-DZne_lu8.js";
|
|
8
|
+
import "./path-alias-guards-Zj-NwKjV.js";
|
|
9
|
+
import { c as writeFileWithinRoot } from "./fs-safe-LRpYbPaA.js";
|
|
10
10
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-CjNYeBcQ.js";
|
|
11
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
11
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-31VWpPCz.js";
|
|
12
12
|
import fs from "node:fs/promises";
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { d as resolveSessionTranscriptsDirForAgent, n as isPrimarySessionTranscriptFileName, p as runTasksWithConcurrency } from "./artifacts-
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
2
|
+
import { d as resolveSessionTranscriptsDirForAgent, n as isPrimarySessionTranscriptFileName, p as runTasksWithConcurrency } from "./artifacts-QHme-vnS.js";
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-DZne_lu8.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import syncFs from "node:fs";
|
|
8
8
|
import crypto from "node:crypto";
|
|
9
9
|
|
|
10
10
|
//#region src/memory/fs-utils.ts
|
|
@@ -30,7 +30,7 @@ async function statRegularFile(absPath) {
|
|
|
30
30
|
//#region src/memory/internal.ts
|
|
31
31
|
function ensureDir(dir) {
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
syncFs.mkdirSync(dir, { recursive: true });
|
|
34
34
|
} catch {}
|
|
35
35
|
return dir;
|
|
36
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { y as DEFAULT_AGENT_ID } from "./workspace-
|
|
3
|
-
import { br as createJsonlSessionRunStore, ln as getConfiguredSessionStorageRuntime, pr as emitDiagnosticEvent, tr as instrumentSessionRunsForRunInvalidation } from "./model-selection-
|
|
4
|
-
import { a as resolveDefaultSessionRunStorePath } from "./artifacts-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
2
|
+
import { y as DEFAULT_AGENT_ID } from "./workspace-B707AGIc.js";
|
|
3
|
+
import { br as createJsonlSessionRunStore, ln as getConfiguredSessionStorageRuntime, pr as emitDiagnosticEvent, tr as instrumentSessionRunsForRunInvalidation } from "./model-selection-CdZITU0t.js";
|
|
4
|
+
import { a as resolveDefaultSessionRunStorePath } from "./artifacts-QHme-vnS.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { createHash, randomUUID } from "node:crypto";
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
3
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
4
|
-
import { d as resolveOutboundSessionId, f as getGlobalHookRunner, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
5
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
2
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-ENMm5qbW.js";
|
|
3
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-9BPY4SaX.js";
|
|
4
|
+
import { d as resolveOutboundSessionId, f as getGlobalHookRunner, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-RBQbGzGm.js";
|
|
5
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-BhntPUH_.js";
|
|
6
6
|
|
|
7
7
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
8
8
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { An as parseInlineDirectives } from "./model-selection-
|
|
2
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
1
|
+
import { An as parseInlineDirectives } from "./model-selection-CdZITU0t.js";
|
|
2
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-9BPY4SaX.js";
|
|
3
3
|
import { r as parseFenceSpans } from "./fences-DHXKaTRv.js";
|
|
4
4
|
|
|
5
5
|
//#region src/media/audio-tags.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { r as resolveAgentConfig } from "./agent-scope-DxKPMu8w.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
-
import { h as shouldLogVerbose } from "./subsystem-
|
|
4
|
-
import { A as resolveCanonicalIdentity, D as normalizeAgentId, I as DEFAULT_ACCOUNT_ID, L as normalizeAccountId, P as sanitizeAgentId, S as buildAgentPeerSessionKey, b as DEFAULT_MAIN_KEY, x as buildAgentMainSessionKey, y as DEFAULT_AGENT_ID } from "./workspace-
|
|
5
|
-
import { t as logDebug } from "./logger-
|
|
6
|
-
import { Yr as listBindings } from "./model-selection-
|
|
2
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-DxKPMu8w.js";
|
|
3
|
+
import { h as shouldLogVerbose } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { A as resolveCanonicalIdentity, D as normalizeAgentId, I as DEFAULT_ACCOUNT_ID, L as normalizeAccountId, P as sanitizeAgentId, S as buildAgentPeerSessionKey, b as DEFAULT_MAIN_KEY, x as buildAgentMainSessionKey, y as DEFAULT_AGENT_ID } from "./workspace-B707AGIc.js";
|
|
5
|
+
import { t as logDebug } from "./logger-a0-zAY5a.js";
|
|
6
|
+
import { Yr as listBindings } from "./model-selection-CdZITU0t.js";
|
|
7
7
|
import { r as normalizeChatType } from "./conversation-label-BnH5Yy9T.js";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/resolve-route.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { C as appendFileLog } from "./subsystem-
|
|
4
|
-
import { Ua as isTruthyEnvValue, yr as normalizeUsage } from "./model-selection-
|
|
5
|
-
import { n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
6
|
-
import { D as refreshRunProgress, c as logModelCallCompleted, p as logSessionStateChange, s as logMessageQueued, t as diag, u as logModelCallStarted } from "./diagnostic-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { C as appendFileLog } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { Ua as isTruthyEnvValue, yr as normalizeUsage } from "./model-selection-CdZITU0t.js";
|
|
5
|
+
import { n as SILENT_REPLY_TOKEN } from "./tokens-9BPY4SaX.js";
|
|
6
|
+
import { D as refreshRunProgress, c as logModelCallCompleted, p as logSessionStateChange, s as logMessageQueued, t as diag, u as logModelCallStarted } from "./diagnostic-Bbg-zObh.js";
|
|
7
7
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bnyx-w0F.js";
|
|
8
|
-
import { a as isMessagingToolDuplicateNormalized, o as normalizeTextForComparison } from "./pi-embedded-helpers-
|
|
9
|
-
import { a as formatReasoningMessage, c as promoteThinkingTagsToBlocks, i as extractThinkingFromTaggedText, n as extractAssistantThinking, r as extractThinkingFromTaggedStream, t as extractAssistantText } from "./pi-embedded-utils-
|
|
8
|
+
import { a as isMessagingToolDuplicateNormalized, o as normalizeTextForComparison } from "./pi-embedded-helpers-BYLOFsUc.js";
|
|
9
|
+
import { a as formatReasoningMessage, c as promoteThinkingTagsToBlocks, i as extractThinkingFromTaggedText, n as extractAssistantThinking, r as extractThinkingFromTaggedStream, t as extractAssistantText } from "./pi-embedded-utils-DOtaZ7KV.js";
|
|
10
10
|
import { r as parseFenceSpans } from "./fences-DHXKaTRv.js";
|
|
11
|
-
import { t as parseReplyDirectives } from "./reply-directives-
|
|
11
|
+
import { t as parseReplyDirectives } from "./reply-directives-DGITtNUL.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
14
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { it as normalizeE164, st as resolveUserPath } from "./subsystem-
|
|
3
|
-
import { U as loadConfig, ci as resolveIMessageAccount } from "./model-selection-
|
|
4
|
-
import { m as kindFromMime } from "./image-ops-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
2
|
+
import { it as normalizeE164, st as resolveUserPath } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { U as loadConfig, ci as resolveIMessageAccount } from "./model-selection-CdZITU0t.js";
|
|
4
|
+
import { m as kindFromMime } from "./image-ops-D_fm2PuR.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dd7jV1JF.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-DEyD0zuy.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-CqtMGpsJ.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
3
|
-
import { Z as CONFIG_DIR, ct as safeParseJson, f as logVerbose, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger, u as danger } from "./subsystem-
|
|
4
|
-
import { I as DEFAULT_ACCOUNT_ID, L as normalizeAccountId } from "./workspace-
|
|
5
|
-
import { G as readConfigFileSnapshotForWrite, K as writeConfigFile, Kr as resolveTelegramAccount, Lr as getChannelPlugin, Rn as writeJsonAtomic, Rr as listChannelPlugins, U as loadConfig, Ua as isTruthyEnvValue, Za as withFileLock$1, ja as resolveTelegramPreviewStreamMode } from "./model-selection-
|
|
6
|
-
import { _ as logTelegramPoll, g as logTelegramDelivery, h as logTelegramApiRequest, m as logTelegramAccountState, v as logTelegramUpdate, y as logTelegramWebhook } from "./diagnostic-
|
|
2
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { Z as CONFIG_DIR, ct as safeParseJson, f as logVerbose, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger, u as danger } from "./subsystem-CPYnUTN4.js";
|
|
4
|
+
import { I as DEFAULT_ACCOUNT_ID, L as normalizeAccountId } from "./workspace-B707AGIc.js";
|
|
5
|
+
import { G as readConfigFileSnapshotForWrite, K as writeConfigFile, Kr as resolveTelegramAccount, Lr as getChannelPlugin, Rn as writeJsonAtomic, Rr as listChannelPlugins, U as loadConfig, Ua as isTruthyEnvValue, Za as withFileLock$1, ja as resolveTelegramPreviewStreamMode } from "./model-selection-CdZITU0t.js";
|
|
6
|
+
import { _ as logTelegramPoll, g as logTelegramDelivery, h as logTelegramApiRequest, m as logTelegramAccountState, v as logTelegramUpdate, y as logTelegramWebhook } from "./diagnostic-Bbg-zObh.js";
|
|
7
7
|
import { n as sha256HexPrefix, t as redactIdentifier } from "./redact-identifier-WYElxwAZ.js";
|
|
8
|
-
import { t as redactSensitiveText } from "./redact-
|
|
9
|
-
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-
|
|
10
|
-
import { _ as readErrorName, d as extractErrorCode, m as formatUncaughtError, p as formatErrorMessage, t as hasProxyEnvConfigured, u as collectErrorGraphCandidates } from "./proxy-env-
|
|
11
|
-
import { r as makeProxyFetch } from "./proxy-fetch-
|
|
12
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
13
|
-
import { a as loadWebMedia, n as markdownToIR } from "./ir-
|
|
8
|
+
import { t as redactSensitiveText } from "./redact-DZne_lu8.js";
|
|
9
|
+
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-D_fm2PuR.js";
|
|
10
|
+
import { _ as readErrorName, d as extractErrorCode, m as formatUncaughtError, p as formatErrorMessage, t as hasProxyEnvConfigured, u as collectErrorGraphCandidates } from "./proxy-env-CzGKpJY_.js";
|
|
11
|
+
import { r as makeProxyFetch } from "./proxy-fetch-DCI0KuH6.js";
|
|
12
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dd7jV1JF.js";
|
|
13
|
+
import { a as loadWebMedia, n as markdownToIR } from "./ir-C4MMLUJr.js";
|
|
14
14
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
15
15
|
import { t as resolveFetch } from "./fetch-D61IHNsz.js";
|
|
16
|
-
import { i as normalizePollInput, n as recordChannelActivity, o as createTelegramRetryRunner } from "./channel-activity-
|
|
16
|
+
import { i as normalizePollInput, n as recordChannelActivity, o as createTelegramRetryRunner } from "./channel-activity-DNq7LYjU.js";
|
|
17
17
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DzQsLh91.js";
|
|
18
18
|
import fs from "node:fs/promises";
|
|
19
19
|
import os from "node:os";
|
|
20
20
|
import path from "node:path";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import syncFs, { readFileSync } from "node:fs";
|
|
22
|
+
import json5 from "json5";
|
|
23
23
|
import process$1 from "node:process";
|
|
24
24
|
import crypto, { randomBytes } from "node:crypto";
|
|
25
25
|
import * as net$1 from "node:net";
|
|
@@ -157,7 +157,7 @@ function getPairingAdapter(channelId) {
|
|
|
157
157
|
//#region src/plugin-sdk/json-store.ts
|
|
158
158
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
159
159
|
try {
|
|
160
|
-
const parsed = safeParseJson(await
|
|
160
|
+
const parsed = safeParseJson(await syncFs.promises.readFile(filePath, "utf-8"));
|
|
161
161
|
if (parsed == null) return {
|
|
162
162
|
value: fallback,
|
|
163
163
|
exists: true
|
|
@@ -244,7 +244,7 @@ async function readPairingRequests(filePath) {
|
|
|
244
244
|
}
|
|
245
245
|
async function ensureJsonFile(filePath, fallback) {
|
|
246
246
|
try {
|
|
247
|
-
await
|
|
247
|
+
await syncFs.promises.access(filePath);
|
|
248
248
|
} catch {
|
|
249
249
|
await writeJsonFile(filePath, fallback);
|
|
250
250
|
}
|
|
@@ -400,7 +400,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
400
400
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
401
401
|
let stat = null;
|
|
402
402
|
try {
|
|
403
|
-
stat = await
|
|
403
|
+
stat = await syncFs.promises.stat(filePath);
|
|
404
404
|
} catch (err) {
|
|
405
405
|
if (err.code !== "ENOENT") throw err;
|
|
406
406
|
}
|
|
@@ -443,7 +443,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
443
443
|
});
|
|
444
444
|
let stat = null;
|
|
445
445
|
try {
|
|
446
|
-
stat = await
|
|
446
|
+
stat = await syncFs.promises.stat(filePath);
|
|
447
447
|
} catch {}
|
|
448
448
|
setAllowFromReadCache(filePath, {
|
|
449
449
|
exists: true,
|
|
@@ -1050,10 +1050,10 @@ function resolveCronStorePath(storePath) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
async function loadCronStore(storePath) {
|
|
1052
1052
|
try {
|
|
1053
|
-
const raw = await
|
|
1053
|
+
const raw = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1054
1054
|
let parsed;
|
|
1055
1055
|
try {
|
|
1056
|
-
parsed =
|
|
1056
|
+
parsed = json5.parse(raw);
|
|
1057
1057
|
} catch (err) {
|
|
1058
1058
|
throw new Error(`Failed to parse cron store at ${storePath}: ${String(err)}`, { cause: err });
|
|
1059
1059
|
}
|
|
@@ -1076,13 +1076,13 @@ async function loadCronStore(storePath) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
async function saveCronStore(storePath, store) {
|
|
1079
|
-
await
|
|
1079
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1080
1080
|
const json = JSON.stringify(store, null, 2);
|
|
1081
1081
|
const cached = serializedStoreCache.get(storePath);
|
|
1082
1082
|
if (cached === json) return;
|
|
1083
1083
|
let previous = cached ?? null;
|
|
1084
1084
|
if (previous === null) try {
|
|
1085
|
-
previous = await
|
|
1085
|
+
previous = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1086
1086
|
} catch (err) {
|
|
1087
1087
|
if (err.code !== "ENOENT") throw err;
|
|
1088
1088
|
}
|
|
@@ -1091,9 +1091,9 @@ async function saveCronStore(storePath, store) {
|
|
|
1091
1091
|
return;
|
|
1092
1092
|
}
|
|
1093
1093
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1094
|
-
await
|
|
1094
|
+
await syncFs.promises.writeFile(tmp, json, "utf-8");
|
|
1095
1095
|
if (previous !== null) try {
|
|
1096
|
-
await
|
|
1096
|
+
await syncFs.promises.copyFile(storePath, `${storePath}.bak`);
|
|
1097
1097
|
} catch {}
|
|
1098
1098
|
await renameWithRetry(tmp, storePath);
|
|
1099
1099
|
serializedStoreCache.set(storePath, json);
|
|
@@ -1102,7 +1102,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1102
1102
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1103
1103
|
async function renameWithRetry(src, dest) {
|
|
1104
1104
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1105
|
-
await
|
|
1105
|
+
await syncFs.promises.rename(src, dest);
|
|
1106
1106
|
return;
|
|
1107
1107
|
} catch (err) {
|
|
1108
1108
|
const code = err.code;
|
|
@@ -1111,8 +1111,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1111
1111
|
continue;
|
|
1112
1112
|
}
|
|
1113
1113
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1114
|
-
await
|
|
1115
|
-
await
|
|
1114
|
+
await syncFs.promises.copyFile(src, dest);
|
|
1115
|
+
await syncFs.promises.unlink(src).catch(() => {});
|
|
1116
1116
|
return;
|
|
1117
1117
|
}
|
|
1118
1118
|
throw err;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak } from "./subsystem-
|
|
3
|
-
import { U as loadConfig, b as resolveRetryConfig, di as resolveDiscordAccount, fi as normalizeDiscordToken, x as retryAsync } from "./model-selection-
|
|
2
|
+
import { mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { U as loadConfig, b as resolveRetryConfig, di as resolveDiscordAccount, fi as normalizeDiscordToken, x as retryAsync } from "./model-selection-CdZITU0t.js";
|
|
4
4
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CSakuiCy.js";
|
|
5
|
-
import { _ as maxBytesForKind, l as extensionForMime } from "./image-ops-
|
|
6
|
-
import { i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-
|
|
5
|
+
import { _ as maxBytesForKind, l as extensionForMime } from "./image-ops-D_fm2PuR.js";
|
|
6
|
+
import { i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-BhntPUH_.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dd7jV1JF.js";
|
|
8
|
+
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-C4MMLUJr.js";
|
|
9
9
|
import { t as resolveFetch } from "./fetch-D61IHNsz.js";
|
|
10
|
-
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, r as normalizePollDurationHours } from "./channel-activity-
|
|
10
|
+
import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, r as normalizePollDurationHours } from "./channel-activity-DNq7LYjU.js";
|
|
11
11
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DzQsLh91.js";
|
|
12
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
+
import { t as convertMarkdownTables } from "./tables-DEyD0zuy.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { promisify } from "node:util";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as avoidTrailingHighSurrogateBreak } from "./subsystem-
|
|
3
|
-
import { U as loadConfig, ti as resolveSignalAccount } from "./model-selection-
|
|
2
|
+
import { r as avoidTrailingHighSurrogateBreak } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { U as loadConfig, ti as resolveSignalAccount } from "./model-selection-CdZITU0t.js";
|
|
4
4
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
5
|
-
import { m as kindFromMime } from "./image-ops-
|
|
5
|
+
import { m as kindFromMime } from "./image-ops-D_fm2PuR.js";
|
|
6
6
|
import { n as fetchWithTimeout } from "./fetch-timeout-BfPtlUW6.js";
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dd7jV1JF.js";
|
|
8
|
+
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-C4MMLUJr.js";
|
|
9
9
|
import { t as resolveFetch } from "./fetch-D61IHNsz.js";
|
|
10
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
10
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-CqtMGpsJ.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/format.ts
|
|
13
13
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { f as logVerbose } from "./subsystem-
|
|
3
|
-
import { $r as resolveSlackBotToken, U as loadConfig, Xr as resolveSlackAccount } from "./model-selection-
|
|
2
|
+
import { f as logVerbose } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { $r as resolveSlackBotToken, U as loadConfig, Xr as resolveSlackAccount } from "./model-selection-CdZITU0t.js";
|
|
4
4
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-CSakuiCy.js";
|
|
5
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
5
|
+
import { i as isSilentReplyText } from "./tokens-9BPY4SaX.js";
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-TJjLK0FV.js";
|
|
7
|
+
import { d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, u as resolveChunkNewlinePacking } from "./chunk-BhntPUH_.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dd7jV1JF.js";
|
|
9
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-C4MMLUJr.js";
|
|
10
10
|
import { t as renderMarkdownWithMarkers } from "./render-BZdJrUxT.js";
|
|
11
11
|
import { WebClient } from "@slack/web-api";
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { pn as recordSessionMetaFromInbound } from "./model-selection-
|
|
3
|
-
import { f as resolveStorePath } from "./artifacts-
|
|
2
|
+
import { pn as recordSessionMetaFromInbound } from "./model-selection-CdZITU0t.js";
|
|
3
|
+
import { f as resolveStorePath } from "./artifacts-QHme-vnS.js";
|
|
4
4
|
|
|
5
5
|
//#region src/channels/session-meta.ts
|
|
6
6
|
var session_meta_exports = /* @__PURE__ */ __exportAll({ recordInboundSessionMetaSafe: () => recordInboundSessionMetaSafe });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-
|
|
3
|
-
import { c as resolveStateDir } from "./paths-
|
|
4
|
-
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { In as createAsyncLock } from "./model-selection-
|
|
6
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
2
|
+
import { c as resolveAgentWorkspaceDir, n as listAgentIds, s as resolveAgentSkillsFilter } from "./agent-scope-DxKPMu8w.js";
|
|
3
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
4
|
+
import { Z as CONFIG_DIR, f as logVerbose, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
5
|
+
import { In as createAsyncLock } from "./model-selection-CdZITU0t.js";
|
|
6
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-ckuLxkyg.js";
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-DC0fovy_.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
13
13
|
|
|
@@ -248,13 +248,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
248
248
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
249
249
|
for (const agentId of agentIds) {
|
|
250
250
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
251
|
-
if (!
|
|
251
|
+
if (!syncFs.existsSync(workspaceDir)) {
|
|
252
252
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
253
253
|
continue;
|
|
254
254
|
}
|
|
255
255
|
let canonicalDir;
|
|
256
256
|
try {
|
|
257
|
-
canonicalDir =
|
|
257
|
+
canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
258
258
|
} catch {
|
|
259
259
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
260
260
|
continue;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as normalizeSkillFilter } from "./agent-scope-
|
|
2
|
-
import { H as isPathInside, K as isDangerousHostEnvVarName, N as isPathInsideWithRealpath, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
4
|
-
import { At as normalizePluginsConfig, Et as loadPluginManifestRegistry, Mt as resolveMemorySlotDecision, jt as resolveEffectiveEnableState, ro as normalizeResolvedSecretInputString } from "./model-selection-
|
|
5
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
6
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { m as normalizeSkillFilter } from "./agent-scope-DxKPMu8w.js";
|
|
2
|
+
import { H as isPathInside, K as isDangerousHostEnvVarName, N as isPathInsideWithRealpath, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-CPYnUTN4.js";
|
|
3
|
+
import { h as resolveOpenClawPackageRootSync } from "./workspace-B707AGIc.js";
|
|
4
|
+
import { At as normalizePluginsConfig, Et as loadPluginManifestRegistry, Mt as resolveMemorySlotDecision, jt as resolveEffectiveEnableState, ro as normalizeResolvedSecretInputString } from "./model-selection-CdZITU0t.js";
|
|
5
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-saAwiKEb.js";
|
|
6
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Zj-NwKjV.js";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import syncFs from "node:fs";
|
|
10
10
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
11
11
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
12
12
|
|
|
@@ -542,13 +542,13 @@ function shortPath(value) {
|
|
|
542
542
|
//#region src/agents/skills/bundled-dir.ts
|
|
543
543
|
function looksLikeSkillsDir(dir) {
|
|
544
544
|
try {
|
|
545
|
-
const entries =
|
|
545
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
546
546
|
for (const entry of entries) {
|
|
547
547
|
if (entry.name.startsWith(".")) continue;
|
|
548
548
|
const fullPath = path.join(dir, entry.name);
|
|
549
549
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
550
550
|
if (entry.isDirectory()) {
|
|
551
|
-
if (
|
|
551
|
+
if (syncFs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
} catch {
|
|
@@ -563,7 +563,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
563
563
|
const execPath = opts.execPath ?? process.execPath;
|
|
564
564
|
const execDir = path.dirname(execPath);
|
|
565
565
|
const sibling = path.join(execDir, "skills");
|
|
566
|
-
if (
|
|
566
|
+
if (syncFs.existsSync(sibling)) return sibling;
|
|
567
567
|
} catch {}
|
|
568
568
|
try {
|
|
569
569
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -626,7 +626,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
626
626
|
const trimmed = raw.trim();
|
|
627
627
|
if (!trimmed) continue;
|
|
628
628
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
629
|
-
if (!
|
|
629
|
+
if (!syncFs.existsSync(candidate)) {
|
|
630
630
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
631
631
|
continue;
|
|
632
632
|
}
|
|
@@ -657,7 +657,7 @@ async function serializeByKey(key, task) {
|
|
|
657
657
|
|
|
658
658
|
//#endregion
|
|
659
659
|
//#region src/agents/skills/workspace.ts
|
|
660
|
-
const fsp =
|
|
660
|
+
const fsp = syncFs.promises;
|
|
661
661
|
const skillsLogger = createSubsystemLogger("skills");
|
|
662
662
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
663
663
|
/**
|
|
@@ -734,7 +734,7 @@ function resolveSkillsLimits(config) {
|
|
|
734
734
|
}
|
|
735
735
|
function listChildDirectories(dir) {
|
|
736
736
|
try {
|
|
737
|
-
const entries =
|
|
737
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
738
738
|
const dirs = [];
|
|
739
739
|
for (const entry of entries) {
|
|
740
740
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -745,7 +745,7 @@ function listChildDirectories(dir) {
|
|
|
745
745
|
continue;
|
|
746
746
|
}
|
|
747
747
|
if (entry.isSymbolicLink()) try {
|
|
748
|
-
if (
|
|
748
|
+
if (syncFs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
749
749
|
} catch {}
|
|
750
750
|
}
|
|
751
751
|
return dirs;
|
|
@@ -756,7 +756,7 @@ function listChildDirectories(dir) {
|
|
|
756
756
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
757
757
|
const nested = path.join(dir, "skills");
|
|
758
758
|
try {
|
|
759
|
-
if (!
|
|
759
|
+
if (!syncFs.existsSync(nested) || !syncFs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
760
760
|
} catch {
|
|
761
761
|
return { baseDir: dir };
|
|
762
762
|
}
|
|
@@ -765,7 +765,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
765
765
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
766
766
|
for (const name of toScan) {
|
|
767
767
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
768
|
-
if (
|
|
768
|
+
if (syncFs.existsSync(skillMd)) return {
|
|
769
769
|
baseDir: nested,
|
|
770
770
|
note: `Detected nested skills root at ${nested}`
|
|
771
771
|
};
|
|
@@ -785,9 +785,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
785
785
|
const loadSkills = (params) => {
|
|
786
786
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
787
787
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
788
|
-
if (
|
|
788
|
+
if (syncFs.existsSync(rootSkillMd)) {
|
|
789
789
|
try {
|
|
790
|
-
const size =
|
|
790
|
+
const size = syncFs.statSync(rootSkillMd).size;
|
|
791
791
|
if (size > limits.maxSkillFileBytes) {
|
|
792
792
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
793
793
|
dir: baseDir,
|
|
@@ -826,9 +826,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
826
826
|
for (const name of limitedChildren) {
|
|
827
827
|
const skillDir = path.join(baseDir, name);
|
|
828
828
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
829
|
-
if (!
|
|
829
|
+
if (!syncFs.existsSync(skillMd)) continue;
|
|
830
830
|
try {
|
|
831
|
-
const size =
|
|
831
|
+
const size = syncFs.statSync(skillMd).size;
|
|
832
832
|
if (size > limits.maxSkillFileBytes) {
|
|
833
833
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
834
834
|
skill: name,
|
|
@@ -896,7 +896,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
896
896
|
return Array.from(merged.values()).map((skill) => {
|
|
897
897
|
let frontmatter = {};
|
|
898
898
|
try {
|
|
899
|
-
frontmatter = parseFrontmatter(
|
|
899
|
+
frontmatter = parseFrontmatter(syncFs.readFileSync(skill.filePath, "utf-8"));
|
|
900
900
|
} catch {}
|
|
901
901
|
return {
|
|
902
902
|
skill,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as resolveConfigDir } from "./subsystem-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { ot as resolveConfigDir } from "./subsystem-CPYnUTN4.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-D_fm2PuR.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|