wednesdayai 0.4.12-dev.703 → 0.4.12-dev.705
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/README.md +17 -37
- package/dist/{agent-scope-F7drwIgy.js → agent-scope-BGnYrze_.js} +3 -3
- package/dist/{agent-turn-runner-nWCLOjLp.js → agent-turn-runner-BpzPb_LQ.js} +5 -5
- package/dist/{agent-turn-runner-B-7YUyze.js → agent-turn-runner-CLScSQoW.js} +3 -3
- package/dist/{api-key-rotation-BP2NSDlP.js → api-key-rotation-C04Xj5nW.js} +2 -2
- package/dist/{audio-preflight-BqDFj2Ws.js → audio-preflight-BXfuOHLv.js} +27 -27
- package/dist/{audio-preflight-BXVADGV1.js → audio-preflight-D9KtmJay.js} +5 -5
- package/dist/{audio-transcription-runner-SSnrYiq8.js → audio-transcription-runner-BA6t6iSO.js} +11 -11
- package/dist/{audio-transcription-runner-rzX-3s-8.js → audio-transcription-runner-CdwSTFuT.js} +1 -1
- 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-IR8qx5kt.js → channel-activity-BVqxcijC.js} +3 -3
- package/dist/{chrome-BWMtx0mE.js → chrome-CGClRujb.js} +25 -25
- package/dist/{chrome-Dc923fsB.js → chrome-CTyhKrVS.js} +6 -6
- package/dist/{chunk-CuqMDQNC.js → chunk-odx78Acg.js} +3 -3
- package/dist/{command-queue-9A3kOAZN.js → command-queue-DKPv7dYN.js} +1 -1
- package/dist/{command-queue-Dbv34rZN.js → command-queue-o1awgKih.js} +1 -1
- package/dist/{commands-registry-gy0GLwWR.js → commands-registry-BEs7FrhT.js} +2 -2
- package/dist/{deliver-Co_a29nB.js → deliver-Bs58Ncxn.js} +1 -1
- package/dist/{deliver-C4Z63vgB.js → deliver-DrmyBByg.js} +24 -24
- package/dist/{diagnostic-Cfb2ONnX.js → diagnostic-Ba0VUozS.js} +1 -1
- package/dist/{diagnostic-BHAlpG8z.js → diagnostic-DmBrpD9P.js} +5 -5
- package/dist/extensionAPI.js +12 -12
- package/dist/{fetch-JP3BwRE3.js → fetch-DvY0ue_6.js} +8 -8
- package/dist/{fetch-guard-C4lEpM_9.js → fetch-guard-ri_5BFBs.js} +3 -3
- package/dist/{frontmatter-CNGr4YHw.js → frontmatter-Cw33lRgS.js} +3 -3
- package/dist/{fs-safe-BJgtqC5p.js → fs-safe-BNnzOM9C.js} +4 -4
- package/dist/{github-copilot-token-zGOMIGSh.js → github-copilot-token-WSjo05vB.js} +7 -7
- package/dist/{image-ops-B--THHJC.js → image-ops-pgAg_j4y.js} +1 -1
- package/dist/{ir-tsZDlE0-.js → ir-BHU3uh9A.js} +5 -5
- package/dist/{legacy-names-CBlBMsC7.js → legacy-names-DFLXH7MA.js} +1 -1
- package/dist/llm-slug-generator.js +58 -58
- package/dist/{logger-D7ojOVG0.js → logger-CkGiQRm7.js} +1 -1
- package/dist/{manager-nGC13TuB.js → manager-BUV9VkNZ.js} +12 -12
- package/dist/{markdown-tables-D9T2Ko0c.js → markdown-tables-D6t-eoFa.js} +2 -2
- package/dist/{model-selection-DZMms8JA.js → model-selection-DhXu1Q4_.js} +82 -82
- package/dist/{outbound-attachment-6FKwUHkE.js → outbound-attachment-C6U86gij.js} +2 -2
- package/dist/{outbound-message-hooks-CN_2VR3u.js → outbound-message-hooks-ClZq2IiI.js} +3 -3
- package/dist/{path-alias-guards-Bpl7jW13.js → path-alias-guards-y8gxUSMu.js} +1 -1
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-CQloEk2m.js → pi-embedded-Cklnkha9.js} +167 -167
- package/dist/{pi-embedded-tUqWFr9c.js → pi-embedded-DHw7Di5R.js} +28 -28
- package/dist/{pi-embedded-helpers-BvZj1LkK.js → pi-embedded-helpers-4qLKF7Ti.js} +3 -3
- package/dist/{pi-embedded-helpers-BEYLnz1t.js → pi-embedded-helpers-DYlkCsNL.js} +24 -24
- package/dist/{pi-embedded-utils-BgW57VPl.js → pi-embedded-utils-CHJI4-m4.js} +1 -1
- package/dist/{pi-embedded-utils-Cff_00Q1.js → pi-embedded-utils-DGuyV3oI.js} +3 -3
- package/dist/{pi-model-discovery-DWGauIf8.js → pi-model-discovery-C3dMscCT.js} +7 -7
- package/dist/plugin-sdk/{agent-scope-oQ89afhJ.js → agent-scope-DuxkVlZ-.js} +2 -2
- package/dist/plugin-sdk/agent-turn-execute-BDRcxLgW.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-CDH2OClz.js → agent-turn-runner-BJWQz-gA.js} +6 -6
- package/dist/plugin-sdk/agent-turn-runner-CzRmfMqm.js +11 -0
- package/dist/plugin-sdk/{api-key-rotation-DBFUeaE4.js → api-key-rotation-BYZhrCU3.js} +2 -2
- package/dist/plugin-sdk/{artifacts-CsH5S6T7.js → artifacts-BR0G7jgh.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-DT1RNzj0.js → audio-preflight-BOlD50bz.js} +2 -2
- package/dist/plugin-sdk/audio-preflight-CTGR5Hsd.js +28 -0
- package/dist/plugin-sdk/{audio-transcription-runner-CNdDOHDD.js → audio-transcription-runner-DEwdraKH.js} +10 -10
- package/dist/plugin-sdk/{auth-profiles-C5n3KjJR.js → auth-profiles-B80FVM6n.js} +5 -5
- package/dist/plugin-sdk/{channel-activity-CQ4sk3hC.js → channel-activity-CPP4IJ8j.js} +3 -3
- package/dist/plugin-sdk/{chrome-DgUMKrr1.js → chrome-Dio0wrAv.js} +4 -4
- package/dist/plugin-sdk/{chunk-BIyxDSyO.js → chunk-BjBBoHSQ.js} +6 -6
- package/dist/plugin-sdk/{chunk-CeoUVs5K.js → chunk-CXNOkk_w.js} +3 -3
- package/dist/plugin-sdk/{command-detection-QNHptKSJ.js → command-detection-C2mTIN0M.js} +85 -85
- package/dist/plugin-sdk/{command-queue-DNiG-3U6.js → command-queue-DRNi0Iq1.js} +8 -8
- package/dist/plugin-sdk/{command-queue-Df7MhgUx.js → command-queue-oI3bsfFo.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CA1olmQZ.js → commands-registry-B5LWTAu3.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-osjh0Rhk.js → commands-registry-CjulKOu8.js} +6 -6
- package/dist/plugin-sdk/{config-DOY8NkH8.js → config-CFfrK92W.js} +7 -7
- package/dist/plugin-sdk/deliver-Dk3XJhoF.js +32 -0
- package/dist/plugin-sdk/{deliver-Jovxpus7.js → deliver-NV7I9o8B.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-DHcuLQ06.js → diagnostic-5AC0iM1n.js} +7 -7
- package/dist/plugin-sdk/{diagnostic-BwHttr8I.js → diagnostic-CLEhveRO.js} +5 -5
- package/dist/plugin-sdk/{fetch-guard-D39-ff0z.js → fetch-guard-BzugbfpZ.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-DwFzR-43.js → fs-safe-BbukgmJs.js} +3 -3
- package/dist/plugin-sdk/{hook-runner-global-7dXl1XmR.js → hook-runner-global-B14CF25I.js} +2 -2
- package/dist/plugin-sdk/{image-ops-BRc6SYbt.js → image-ops-Deabe2XL.js} +1 -1
- package/dist/plugin-sdk/index.js +54 -54
- package/dist/plugin-sdk/{ir-C76Butsn.js → ir-DvNnbzRJ.js} +5 -5
- package/dist/plugin-sdk/{local-roots-Bj6ufCy4.js → local-roots-K7o6fRdl.js} +7 -7
- package/dist/plugin-sdk/{logger-k-GQ-YhX.js → logger-qbelrLm7.js} +1 -1
- package/dist/plugin-sdk/{manager-D_xKED_P.js → manager-CtpBjZ6_.js} +8 -8
- package/dist/plugin-sdk/manager-nDSdkr_r.js +16 -0
- package/dist/plugin-sdk/markdown-tables-4LuMGoDL.js +10 -0
- package/dist/plugin-sdk/{markdown-tables-nC8ncMEv.js → markdown-tables-DK-jmrsM.js} +2 -2
- package/dist/plugin-sdk/{outbound-attachment-DYb2ouJr.js → outbound-attachment-765m3HRN.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DuUj5pOa.js → path-alias-guards-DXgdWlVV.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DxreQHBo.js → pi-embedded-helpers-BHyLigAA.js} +11 -11
- package/dist/plugin-sdk/{pi-embedded-utils-CuF2a8B_.js → pi-embedded-utils-Bm-VMQvJ.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-vyiJ0WCg.js → pi-model-discovery-BHxWerwc.js} +6 -6
- package/dist/plugin-sdk/{pi-model-discovery-lbme_6ZY.js → pi-model-discovery-CtIzq4SZ.js} +1 -1
- package/dist/plugin-sdk/provider-dispatcher-W1pkLKIg.js +61 -0
- package/dist/plugin-sdk/provider-image-BXeNvw5h.js +22 -0
- package/dist/plugin-sdk/{provider-image-DmOszP1h.js → provider-image-DdGFXNcm.js} +5 -5
- package/dist/plugin-sdk/proxy-Bem5Ja8O.js +7 -0
- package/dist/plugin-sdk/{proxy-fetch-DR97MzBf.js → proxy-fetch-tDXPwHrY.js} +1 -1
- package/dist/plugin-sdk/{proxy-sWIy8aWT.js → proxy-vuhge5P0.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-Co1cAo_x.js → pw-ai-CVqwMy3L.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-BUZkDo-2.js → qmd-manager-CbKMbQqy.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-Dd_SnHAV.js → query-expansion-Czn3UuZE.js} +3 -3
- package/dist/plugin-sdk/{recorder-fSGqEPiN.js → recorder-B8eUr4qo.js} +4 -4
- package/dist/plugin-sdk/{redact-BqJzVqZS.js → redact-BN7L2dg6.js} +1 -1
- package/dist/plugin-sdk/replies-BOUte8J3.js +25 -0
- package/dist/plugin-sdk/{replies-D1R5YpXH.js → replies-Dq8vnfCv.js} +4 -4
- package/dist/plugin-sdk/{reply-directives-C2CFDtpy.js → reply-directives-D-GVQbm2.js} +2 -2
- package/dist/plugin-sdk/{reply-prefix-Vmv16GEM.js → reply-prefix-BnhAAeIw.js} +1 -1
- package/dist/plugin-sdk/reply-prefix-CyT5pXEH.js +7 -0
- package/dist/plugin-sdk/{resolve-route-Bm-xctoN.js → resolve-route-B-_3aGVu.js} +6 -6
- package/dist/plugin-sdk/{resolve-route-Cpk4y9HZ.js → resolve-route-DzFbdLUE.js} +4 -4
- package/dist/plugin-sdk/runs-BgcfLuqD.js +25 -0
- package/dist/plugin-sdk/{runs-B08Pf58t.js → runs-GYfRm1wm.js} +7 -7
- package/dist/plugin-sdk/{send-9tt88Cos.js → send-B5n5UHEj.js} +19 -19
- package/dist/plugin-sdk/send-CRsXDc8m.js +24 -0
- package/dist/plugin-sdk/{send-BQ2_sGJc.js → send-CilSx61t.js} +13 -13
- package/dist/plugin-sdk/{send-DGLXr2LH.js → send-D9b2K_jS.js} +8 -8
- package/dist/plugin-sdk/send-DGIuROFn.js +23 -0
- package/dist/plugin-sdk/send-DWgKIysx.js +27 -0
- package/dist/plugin-sdk/{send-BLYC96aw.js → send-Dp2tRhNb.js} +6 -6
- package/dist/plugin-sdk/send-RwdG7mzi.js +25 -0
- package/dist/plugin-sdk/{send-DK8kuk3o.js → send-Y056GDch.js} +6 -6
- package/dist/plugin-sdk/{send-CFqkd3U6.js → send-xTho5Weh.js} +7 -7
- package/dist/plugin-sdk/{session-meta-Bgk5sfbA.js → session-meta-D7wvEO0P.js} +2 -2
- package/dist/plugin-sdk/session-meta-J9PgeT7E.js +10 -0
- package/dist/plugin-sdk/{skill-commands-BYl06bB2.js → skill-commands-C6GZcZCO.js} +5 -5
- package/dist/plugin-sdk/skill-commands-DBvWVUnQ.js +14 -0
- package/dist/plugin-sdk/{skills-Cxhgf7RS.js → skills-CjJsBgbl.js} +6 -6
- package/dist/plugin-sdk/{ssrf-C6tFUn-U.js → ssrf-DR9xWewb.js} +2 -2
- package/dist/plugin-sdk/{store-yyHwOn7K.js → store-Bt0zQRQl.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-79qX0iO4.js +61 -0
- package/dist/plugin-sdk/{subsystem-D7nM2AoW.js → subsystem-B8AkdtCZ.js} +4 -4
- package/dist/plugin-sdk/{tables-CAn8Uiv7.js → tables-DHN3rZ24.js} +1 -1
- package/dist/plugin-sdk/{tokens-cnVX9Q87.js → tokens-D7bndIFM.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-fff6kmkP.js → tool-loop-detection-VTqBeC_h.js} +1 -1
- package/dist/plugin-sdk/user-run-recording-B_LG8df9.js +11 -0
- package/dist/plugin-sdk/{user-run-recording-BgXqB78i.js → user-run-recording-CQENQmgV.js} +2 -2
- package/dist/{provider-image-tTArxp_m.js → provider-image-BfLbSFcG.js} +5 -5
- package/dist/{provider-image-Cn_5jslf.js → provider-image-CtDp01Fm.js} +1 -1
- package/dist/{proxy-B2bQVN0b.js → proxy-CJMip70P.js} +1 -1
- package/dist/{proxy-env-b209l87p.js → proxy-env-BBllD0qI.js} +2 -2
- package/dist/{proxy-fetch-CNzfDJKL.js → proxy-fetch-C4a8MwFs.js} +1 -1
- package/dist/{pw-ai-Dt4AEbVC.js → pw-ai-5UgHGA7x.js} +14 -14
- package/dist/{pw-ai-CZUfhsmk.js → pw-ai-Dmtqq3b6.js} +1 -1
- package/dist/{qmd-manager-Bk4YLrFZ.js → qmd-manager-yHQXCPr6.js} +10 -10
- package/dist/{query-expansion-DKwGIeDe.js → query-expansion-DJVKyeDw.js} +5 -5
- package/dist/{recorder-BWzqo70i.js → recorder-BESd9rZt.js} +4 -4
- package/dist/{redact-BFxpQajB.js → redact-D8fpDrdk.js} +1 -1
- package/dist/{replies-BKYeJ-lN.js → replies-LVVUM-gg.js} +4 -4
- package/dist/{reply-directives-MtuQmZ3x.js → reply-directives-CZPJmH1t.js} +2 -2
- package/dist/{reply-prefix-BivNEMUT.js → reply-prefix-r6A18fKP.js} +1 -1
- package/dist/{resolve-route-BxKedPkn.js → resolve-route-Cnxsmfj5.js} +5 -5
- package/dist/{run-with-concurrency-DNTVyFZm.js → run-with-concurrency-VoSJL2UI.js} +4 -4
- package/dist/{runs-B5jL-JGA.js → runs-BKXuFolN.js} +3 -3
- package/dist/{runs-Bfd3xo6Q.js → runs-Dgl9DXVG.js} +8 -8
- package/dist/{send-Bo-flx6B.js → send-BWsYS2bT.js} +1 -1
- package/dist/{send-DEMG5oDJ.js → send-C0_Cahgz.js} +8 -8
- package/dist/{send-is_ecMF8.js → send-C6j-WuJq.js} +25 -25
- package/dist/{send-DWgzW_VE.js → send-CyDzxMSP.js} +6 -6
- package/dist/{send-7ZbQnb3_.js → send-D8garnHE.js} +7 -7
- package/dist/{send-BxB9kMh0.js → send-DTHoJI7v.js} +6 -6
- package/dist/{session-meta-Bq4VCJl1.js → session-meta-Du0u83SI.js} +2 -2
- package/dist/{skill-commands-BeW5zYf3.js → skill-commands-DycP7LkE.js} +9 -9
- package/dist/{skills-CoDdFrlM.js → skills-C-1FVOPz.js} +21 -21
- package/dist/{store-BMD4fV1_.js → store-q3G7wCsG.js} +2 -2
- package/dist/{subsystem-CtVr6mhM.js → subsystem-iTNW5QQR.js} +60 -60
- package/dist/{tables-77QYYFpZ.js → tables-Epd9B-UQ.js} +1 -1
- package/dist/{tokens-Cu6l17bG.js → tokens-iu44eB15.js} +1 -1
- package/dist/{tool-loop-detection-CyJWzj_y.js → tool-loop-detection-B_CTZm9s.js} +2 -2
- package/dist/{user-run-recording-_9PhRwgi.js → user-run-recording-DU3V9-R7.js} +2 -2
- package/dist/{workspace-DNApJm8a.js → workspace-TtYCbjn0.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/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/index.ts +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/learning-core/src/learning-schema.test.ts +1 -1
- package/extensions/learning-core/src/types.ts +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-MCfUSNAn.js +0 -61
- package/dist/plugin-sdk/agent-turn-runner-CxTKSm01.js +0 -11
- package/dist/plugin-sdk/audio-preflight-CvfZay92.js +0 -28
- package/dist/plugin-sdk/deliver-Cvf-McDg.js +0 -32
- package/dist/plugin-sdk/manager-BxgZBJqX.js +0 -16
- package/dist/plugin-sdk/markdown-tables-BfxWyPNL.js +0 -10
- package/dist/plugin-sdk/provider-dispatcher-CmuWLups.js +0 -61
- package/dist/plugin-sdk/provider-image-QXB69xur.js +0 -22
- package/dist/plugin-sdk/proxy-D8NLdDcu.js +0 -7
- package/dist/plugin-sdk/replies-CFdGwJzf.js +0 -25
- package/dist/plugin-sdk/reply-prefix-BNDj6UL_.js +0 -7
- package/dist/plugin-sdk/runs-DYKrmhVM.js +0 -25
- package/dist/plugin-sdk/send-CnAE3Jo0.js +0 -24
- package/dist/plugin-sdk/send-D0F57nZU.js +0 -23
- package/dist/plugin-sdk/send-DiZVGsNc.js +0 -27
- package/dist/plugin-sdk/send-Q46WVgnx.js +0 -25
- package/dist/plugin-sdk/session-meta-GZHIw3Fv.js +0 -10
- package/dist/plugin-sdk/skill-commands-CQmHbw9e.js +0 -14
- package/dist/plugin-sdk/subagent-registry-C5F7F59N.js +0 -61
- package/dist/plugin-sdk/user-run-recording-ZaA2WM4L.js +0 -11
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "../../agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "../../paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { D as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import { zn as hasInterSessionUserProvenance } from "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
8
|
-
import "../../legacy-names-
|
|
9
|
-
import { r as isPrimarySessionTranscriptFileName } from "../../run-with-concurrency-
|
|
10
|
-
import "../../send-
|
|
11
|
-
import "../../send-
|
|
12
|
-
import "../../pi-embedded-
|
|
13
|
-
import "../../agent-turn-runner-
|
|
14
|
-
import "../../tokens-
|
|
15
|
-
import "../../outbound-message-hooks-
|
|
16
|
-
import "../../diagnostic-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "../../agent-scope-BGnYrze_.js";
|
|
2
|
+
import { c as resolveStateDir } from "../../paths-Cvc9EM8Y.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "../../subsystem-iTNW5QQR.js";
|
|
4
|
+
import { D as resolveAgentIdFromSessionKey } from "../../workspace-TtYCbjn0.js";
|
|
5
|
+
import "../../logger-CkGiQRm7.js";
|
|
6
|
+
import { zn as hasInterSessionUserProvenance } from "../../model-selection-DhXu1Q4_.js";
|
|
7
|
+
import "../../github-copilot-token-WSjo05vB.js";
|
|
8
|
+
import "../../legacy-names-DFLXH7MA.js";
|
|
9
|
+
import { r as isPrimarySessionTranscriptFileName } from "../../run-with-concurrency-VoSJL2UI.js";
|
|
10
|
+
import "../../send-D8garnHE.js";
|
|
11
|
+
import "../../send-C0_Cahgz.js";
|
|
12
|
+
import "../../pi-embedded-Cklnkha9.js";
|
|
13
|
+
import "../../agent-turn-runner-BpzPb_LQ.js";
|
|
14
|
+
import "../../tokens-iu44eB15.js";
|
|
15
|
+
import "../../outbound-message-hooks-ClZq2IiI.js";
|
|
16
|
+
import "../../diagnostic-DmBrpD9P.js";
|
|
17
17
|
import "../../diagnostic-session-state-Bnyx-w0F.js";
|
|
18
|
-
import "../../redact-
|
|
19
|
-
import "../../command-queue-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../image-ops-
|
|
22
|
-
import "../../pi-model-discovery-
|
|
23
|
-
import "../../pi-embedded-helpers-
|
|
24
|
-
import "../../chrome-
|
|
25
|
-
import "../../frontmatter-
|
|
26
|
-
import "../../skills-
|
|
27
|
-
import "../../path-alias-guards-
|
|
28
|
-
import "../../proxy-env-
|
|
29
|
-
import { c as writeFileWithinRoot } from "../../fs-safe-
|
|
30
|
-
import "../../store-
|
|
18
|
+
import "../../redact-D8fpDrdk.js";
|
|
19
|
+
import "../../command-queue-o1awgKih.js";
|
|
20
|
+
import "../../send-C6j-WuJq.js";
|
|
21
|
+
import "../../image-ops-pgAg_j4y.js";
|
|
22
|
+
import "../../pi-model-discovery-C3dMscCT.js";
|
|
23
|
+
import "../../pi-embedded-helpers-DYlkCsNL.js";
|
|
24
|
+
import "../../chrome-CGClRujb.js";
|
|
25
|
+
import "../../frontmatter-Cw33lRgS.js";
|
|
26
|
+
import "../../skills-C-1FVOPz.js";
|
|
27
|
+
import "../../path-alias-guards-y8gxUSMu.js";
|
|
28
|
+
import "../../proxy-env-BBllD0qI.js";
|
|
29
|
+
import { c as writeFileWithinRoot } from "../../fs-safe-BNnzOM9C.js";
|
|
30
|
+
import "../../store-q3G7wCsG.js";
|
|
31
31
|
import "../../thinking-CwmtMy_H.js";
|
|
32
|
-
import "../../provider-image-
|
|
33
|
-
import "../../audio-transcription-runner-
|
|
34
|
-
import "../../fetch-
|
|
35
|
-
import "../../fetch-guard-
|
|
36
|
-
import "../../proxy-fetch-
|
|
37
|
-
import "../../api-key-rotation-
|
|
38
|
-
import "../../pi-embedded-utils-
|
|
39
|
-
import "../../reply-prefix-
|
|
40
|
-
import "../../chunk-
|
|
41
|
-
import "../../markdown-tables-
|
|
42
|
-
import "../../ir-
|
|
32
|
+
import "../../provider-image-BfLbSFcG.js";
|
|
33
|
+
import "../../audio-transcription-runner-BA6t6iSO.js";
|
|
34
|
+
import "../../fetch-DvY0ue_6.js";
|
|
35
|
+
import "../../fetch-guard-ri_5BFBs.js";
|
|
36
|
+
import "../../proxy-fetch-C4a8MwFs.js";
|
|
37
|
+
import "../../api-key-rotation-C04Xj5nW.js";
|
|
38
|
+
import "../../pi-embedded-utils-DGuyV3oI.js";
|
|
39
|
+
import "../../reply-prefix-r6A18fKP.js";
|
|
40
|
+
import "../../chunk-odx78Acg.js";
|
|
41
|
+
import "../../markdown-tables-D6t-eoFa.js";
|
|
42
|
+
import "../../ir-BHU3uh9A.js";
|
|
43
43
|
import "../../render-BZdJrUxT.js";
|
|
44
|
-
import "../../commands-registry-
|
|
45
|
-
import "../../skill-commands-
|
|
46
|
-
import "../../runs-
|
|
47
|
-
import "../../deliver-
|
|
48
|
-
import "../../recorder-
|
|
44
|
+
import "../../commands-registry-BEs7FrhT.js";
|
|
45
|
+
import "../../skill-commands-DycP7LkE.js";
|
|
46
|
+
import "../../runs-Dgl9DXVG.js";
|
|
47
|
+
import "../../deliver-DrmyBByg.js";
|
|
48
|
+
import "../../recorder-BESd9rZt.js";
|
|
49
49
|
import "../../fetch-D61IHNsz.js";
|
|
50
|
-
import "../../channel-activity-
|
|
51
|
-
import "../../tables-
|
|
52
|
-
import "../../user-run-recording-
|
|
53
|
-
import "../../reply-directives-
|
|
54
|
-
import "../../send-
|
|
55
|
-
import "../../outbound-attachment-
|
|
56
|
-
import "../../send-
|
|
57
|
-
import "../../resolve-route-
|
|
58
|
-
import "../../proxy-
|
|
59
|
-
import "../../replies-
|
|
60
|
-
import "../../session-meta-
|
|
61
|
-
import "../../manager-
|
|
62
|
-
import "../../query-expansion-
|
|
50
|
+
import "../../channel-activity-BVqxcijC.js";
|
|
51
|
+
import "../../tables-Epd9B-UQ.js";
|
|
52
|
+
import "../../user-run-recording-DU3V9-R7.js";
|
|
53
|
+
import "../../reply-directives-CZPJmH1t.js";
|
|
54
|
+
import "../../send-CyDzxMSP.js";
|
|
55
|
+
import "../../outbound-attachment-C6U86gij.js";
|
|
56
|
+
import "../../send-DTHoJI7v.js";
|
|
57
|
+
import "../../resolve-route-Cnxsmfj5.js";
|
|
58
|
+
import "../../proxy-CJMip70P.js";
|
|
59
|
+
import "../../replies-LVVUM-gg.js";
|
|
60
|
+
import "../../session-meta-Du0u83SI.js";
|
|
61
|
+
import "../../manager-BUV9VkNZ.js";
|
|
62
|
+
import "../../query-expansion-DJVKyeDw.js";
|
|
63
63
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
64
64
|
import { t as resolveHookConfig } from "../../config-ByLp3Z_t.js";
|
|
65
65
|
import fs from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d8e0bc0014d0c13dd6662d35db242ee6c9c9ae87508f9d916c7a71090fb6f2c6
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { b as resolveRetryConfig, x as retryAsync } from "./model-selection-
|
|
3
|
-
import { p as formatErrorMessage } from "./proxy-env-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
2
|
+
import { b as resolveRetryConfig, x as retryAsync } from "./model-selection-DhXu1Q4_.js";
|
|
3
|
+
import { p as formatErrorMessage } from "./proxy-env-BBllD0qI.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { Ct as normalizeIpAddress, J as loadConfig, St as isPrivateOrLoopbackIpAddress, vt as isIpInCidr, xt as isLoopbackIpAddress } from "./model-selection-
|
|
3
|
-
import { c as resolvePinnedHostnameWithPolicy, g as isErrno, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
4
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import syncFs from "node:fs";
|
|
7
|
-
import os from "node:os";
|
|
1
|
+
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
2
|
+
import { Ct as normalizeIpAddress, J as loadConfig, St as isPrivateOrLoopbackIpAddress, vt as isIpInCidr, xt as isLoopbackIpAddress } from "./model-selection-DhXu1Q4_.js";
|
|
3
|
+
import { c as resolvePinnedHostnameWithPolicy, g as isErrno, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-BBllD0qI.js";
|
|
4
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-BNnzOM9C.js";
|
|
8
5
|
import fs from "node:fs/promises";
|
|
6
|
+
import os from "node:os";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import fs$1 from "node:fs";
|
|
9
9
|
import { execFileSync, spawn } from "node:child_process";
|
|
10
10
|
import { createHmac } from "node:crypto";
|
|
11
11
|
import net from "node:net";
|
|
12
12
|
import http, { createServer } from "node:http";
|
|
13
13
|
import https from "node:https";
|
|
14
|
-
import WebSocket
|
|
14
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
15
15
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
16
16
|
|
|
17
17
|
//#region src/browser/constants.ts
|
|
@@ -647,7 +647,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
647
647
|
let extensionWs = null;
|
|
648
648
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
649
649
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
650
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
650
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
651
651
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
652
652
|
let extensionDisconnectCleanupTimer = null;
|
|
653
653
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -699,7 +699,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
699
699
|
let nextExtensionId = 1;
|
|
700
700
|
const sendToExtension = async (payload) => {
|
|
701
701
|
const ws = extensionWs;
|
|
702
|
-
if (!ws || ws.readyState !== WebSocket
|
|
702
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
703
703
|
ws.send(JSON.stringify(payload));
|
|
704
704
|
return await new Promise((resolve, reject) => {
|
|
705
705
|
const timer = setTimeout(() => {
|
|
@@ -716,12 +716,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
716
716
|
const broadcastToCdpClients = (evt) => {
|
|
717
717
|
const msg = JSON.stringify(evt);
|
|
718
718
|
for (const ws of cdpClients) {
|
|
719
|
-
if (ws.readyState !== WebSocket
|
|
719
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
720
720
|
ws.send(msg);
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
723
|
const sendResponseToCdp = (ws, res) => {
|
|
724
|
-
if (ws.readyState !== WebSocket
|
|
724
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
725
725
|
ws.send(JSON.stringify(res));
|
|
726
726
|
};
|
|
727
727
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -975,7 +975,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
975
975
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
976
976
|
return;
|
|
977
977
|
}
|
|
978
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
978
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
979
979
|
try {
|
|
980
980
|
extensionWs.terminate();
|
|
981
981
|
} catch {}
|
|
@@ -1008,7 +1008,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
1008
1008
|
clearExtensionDisconnectCleanupTimer();
|
|
1009
1009
|
flushExtensionReconnectWaiters(true);
|
|
1010
1010
|
const ping = setInterval(() => {
|
|
1011
|
-
if (ws.readyState !== WebSocket
|
|
1011
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
1012
1012
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
1013
1013
|
}, 5e3);
|
|
1014
1014
|
ws.on("message", (data) => {
|
|
@@ -1364,7 +1364,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
1364
1364
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
1365
1365
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
1366
1366
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
1367
|
-
return new WebSocket
|
|
1367
|
+
return new WebSocket(wsUrl, {
|
|
1368
1368
|
handshakeTimeout: handshakeTimeoutMs,
|
|
1369
1369
|
...Object.keys(headers).length ? { headers } : {},
|
|
1370
1370
|
...agent ? { agent } : {}
|
|
@@ -1649,7 +1649,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1649
1649
|
]);
|
|
1650
1650
|
function exists$1(filePath) {
|
|
1651
1651
|
try {
|
|
1652
|
-
return
|
|
1652
|
+
return fs$1.existsSync(filePath);
|
|
1653
1653
|
} catch {
|
|
1654
1654
|
return false;
|
|
1655
1655
|
}
|
|
@@ -1792,7 +1792,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
function readDesktopExecLine(desktopPath) {
|
|
1794
1794
|
try {
|
|
1795
|
-
const lines =
|
|
1795
|
+
const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1796
1796
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1797
1797
|
} catch {}
|
|
1798
1798
|
return null;
|
|
@@ -2050,7 +2050,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
2050
2050
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
2051
2051
|
function resolveLsofCommandSync() {
|
|
2052
2052
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
2053
|
-
|
|
2053
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
2054
2054
|
return candidate;
|
|
2055
2055
|
} catch {}
|
|
2056
2056
|
return "lsof";
|
|
@@ -2095,8 +2095,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
function safeReadJson(filePath) {
|
|
2097
2097
|
try {
|
|
2098
|
-
if (!
|
|
2099
|
-
const raw =
|
|
2098
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
2099
|
+
const raw = fs$1.readFileSync(filePath, "utf-8");
|
|
2100
2100
|
const parsed = JSON.parse(raw);
|
|
2101
2101
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2102
2102
|
return parsed;
|
|
@@ -2105,8 +2105,8 @@ function safeReadJson(filePath) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
2107
|
function safeWriteJson(filePath, data) {
|
|
2108
|
-
|
|
2109
|
-
|
|
2108
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2109
|
+
fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2110
2110
|
}
|
|
2111
2111
|
function setDeep(obj, keys, value) {
|
|
2112
2112
|
let node = obj;
|
|
@@ -2233,7 +2233,7 @@ function decorateOpenClawProfile(userDataDir, opts) {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
safeWriteJson(preferencesPath, prefs);
|
|
2235
2235
|
try {
|
|
2236
|
-
|
|
2236
|
+
fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2237
2237
|
} catch {}
|
|
2238
2238
|
}
|
|
2239
2239
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2249,7 +2249,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2249
2249
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2250
2250
|
function exists(filePath) {
|
|
2251
2251
|
try {
|
|
2252
|
-
return
|
|
2252
|
+
return fs$1.existsSync(filePath);
|
|
2253
2253
|
} catch {
|
|
2254
2254
|
return false;
|
|
2255
2255
|
}
|
|
@@ -2347,7 +2347,7 @@ async function launchOpenClawChrome(resolved, profile) {
|
|
|
2347
2347
|
const exe = resolveBrowserExecutable(resolved);
|
|
2348
2348
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2349
2349
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
2350
|
-
|
|
2350
|
+
fs$1.mkdirSync(userDataDir, { recursive: true });
|
|
2351
2351
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_OPENCLAW_BROWSER_COLOR).toUpperCase());
|
|
2352
2352
|
const spawnOnce = () => {
|
|
2353
2353
|
const args = [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { Ct as normalizeIpAddress, J as loadConfig, St as isPrivateOrLoopbackIpAddress, vt as isIpInCidr, xt as isLoopbackIpAddress } from "./model-selection-
|
|
3
|
-
import { c as resolvePinnedHostnameWithPolicy, g as isErrno, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
4
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
5
|
-
import fs from "node:fs/promises";
|
|
6
|
-
import os from "node:os";
|
|
1
|
+
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-CdS2B7jt.js";
|
|
2
|
+
import { Ct as normalizeIpAddress, J as loadConfig, St as isPrivateOrLoopbackIpAddress, vt as isIpInCidr, xt as isLoopbackIpAddress } from "./model-selection-Cd0R62vH.js";
|
|
3
|
+
import { c as resolvePinnedHostnameWithPolicy, g as isErrno, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CN44KnoG.js";
|
|
4
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-ZV-z8lDX.js";
|
|
7
5
|
import path from "node:path";
|
|
8
6
|
import syncFs from "node:fs";
|
|
7
|
+
import os from "node:os";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
import { execFileSync, spawn } from "node:child_process";
|
|
10
10
|
import { createHmac } from "node:crypto";
|
|
11
11
|
import net from "node:net";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { F as normalizeAccountId } from "./workspace-
|
|
4
|
-
import { Si as resolveAccountEntry, wi as INTERNAL_MESSAGE_CHANNEL } from "./model-selection-
|
|
2
|
+
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
3
|
+
import { F as normalizeAccountId } from "./workspace-TtYCbjn0.js";
|
|
4
|
+
import { Si as resolveAccountEntry, wi as INTERNAL_MESSAGE_CHANNEL } from "./model-selection-DhXu1Q4_.js";
|
|
5
5
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-DHXKaTRv.js";
|
|
6
6
|
|
|
7
7
|
//#region src/auto-reply/chunk.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
2
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-Ba0VUozS.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DBBnME5O.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
2
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-DmBrpD9P.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DTaUAkeG.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { tt as escapeRegExp } from "./subsystem-
|
|
2
|
+
import { tt as escapeRegExp } from "./subsystem-iTNW5QQR.js";
|
|
3
3
|
import { t as isPlainObject } from "./plain-object-CLm2c5Nu.js";
|
|
4
|
-
import { Gr as normalizeChannelId, Zt as getActivePluginRegistry, co as DEFAULT_PROVIDER, qr as listChannelDocks, so as DEFAULT_MODEL, u as resolveConfiguredModelRef } from "./model-selection-
|
|
4
|
+
import { Gr as normalizeChannelId, Zt as getActivePluginRegistry, co as DEFAULT_PROVIDER, qr as listChannelDocks, so as DEFAULT_MODEL, u as resolveConfiguredModelRef } from "./model-selection-DhXu1Q4_.js";
|
|
5
5
|
import { r as listThinkingLevels } from "./thinking-CwmtMy_H.js";
|
|
6
6
|
|
|
7
7
|
//#region src/config/commands.ts
|
|
@@ -5,7 +5,7 @@ import { t as createSubsystemLogger } from "./subsystem-CdS2B7jt.js";
|
|
|
5
5
|
import { $n as resolveMirroredTranscriptText, Bn as parseInlineDirectives, Qn as appendAssistantMessageToSessionTranscript, Qt as getActivePluginRegistry, Xr as getChannelDock, Yr as normalizeChannelId, en as getActivePluginRegistryVersion, qr as getChannelPlugin } from "./model-selection-Cd0R62vH.js";
|
|
6
6
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
7
7
|
import { n as createMessageSentEmitter, t as applyMessageSendingHook, u as getGlobalHookRunner } from "./outbound-message-hooks-BvyiXrg0.js";
|
|
8
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
8
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-4qLKF7Ti.js";
|
|
9
9
|
import { h as hasErrnoCode } from "./proxy-env-CN44KnoG.js";
|
|
10
10
|
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BIqtrGsq.js";
|
|
11
11
|
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-C_i5apVn.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { F as normalizeAccountId, I as normalizeOptionalAccountId } from "./workspace-
|
|
5
|
-
import { $t as getActivePluginRegistryVersion, Gr as normalizeChannelId, In as parseInlineDirectives, Jn as appendAssistantMessageToSessionTranscript, Kr as getChannelDock, Ur as getChannelPlugin, Yn as resolveMirroredTranscriptText, Zt as getActivePluginRegistry } from "./model-selection-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
4
|
+
import { F as normalizeAccountId, I as normalizeOptionalAccountId } from "./workspace-TtYCbjn0.js";
|
|
5
|
+
import { $t as getActivePluginRegistryVersion, Gr as normalizeChannelId, In as parseInlineDirectives, Jn as appendAssistantMessageToSessionTranscript, Kr as getChannelDock, Ur as getChannelPlugin, Yn as resolveMirroredTranscriptText, Zt as getActivePluginRegistry } from "./model-selection-DhXu1Q4_.js";
|
|
6
6
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
7
|
-
import { n as createMessageSentEmitter, t as applyMessageSendingHook, u as getGlobalHookRunner } from "./outbound-message-hooks-
|
|
8
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
9
|
-
import { h as hasErrnoCode } from "./proxy-env-
|
|
10
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
11
|
-
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-
|
|
12
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
13
|
-
import { t as parseReplyDirectives } from "./reply-directives-
|
|
14
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
7
|
+
import { n as createMessageSentEmitter, t as applyMessageSendingHook, u as getGlobalHookRunner } from "./outbound-message-hooks-ClZq2IiI.js";
|
|
8
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-DYlkCsNL.js";
|
|
9
|
+
import { h as hasErrnoCode } from "./proxy-env-BBllD0qI.js";
|
|
10
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DvY0ue_6.js";
|
|
11
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-odx78Acg.js";
|
|
12
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-D6t-eoFa.js";
|
|
13
|
+
import { t as parseReplyDirectives } from "./reply-directives-CZPJmH1t.js";
|
|
14
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-CyDzxMSP.js";
|
|
15
15
|
import path from "node:path";
|
|
16
|
-
import
|
|
16
|
+
import fs from "node:fs";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
19
|
//#region src/infra/outbound/target-normalization.ts
|
|
@@ -304,11 +304,11 @@ function resolveFailedDir(stateDir) {
|
|
|
304
304
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
305
305
|
async function ensureQueueDir(stateDir) {
|
|
306
306
|
const queueDir = resolveQueueDir(stateDir);
|
|
307
|
-
await
|
|
307
|
+
await fs.promises.mkdir(queueDir, {
|
|
308
308
|
recursive: true,
|
|
309
309
|
mode: 448
|
|
310
310
|
});
|
|
311
|
-
await
|
|
311
|
+
await fs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
312
312
|
recursive: true,
|
|
313
313
|
mode: 448
|
|
314
314
|
});
|
|
@@ -338,18 +338,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
338
338
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
339
339
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
340
340
|
const json = JSON.stringify(entry, null, 2);
|
|
341
|
-
await
|
|
341
|
+
await fs.promises.writeFile(tmp, json, {
|
|
342
342
|
encoding: "utf-8",
|
|
343
343
|
mode: 384
|
|
344
344
|
});
|
|
345
|
-
await
|
|
345
|
+
await fs.promises.rename(tmp, filePath);
|
|
346
346
|
return id;
|
|
347
347
|
}
|
|
348
348
|
/** Remove a successfully delivered entry from the queue. */
|
|
349
349
|
async function ackDelivery(id, stateDir) {
|
|
350
350
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
351
351
|
try {
|
|
352
|
-
await
|
|
352
|
+
await fs.promises.unlink(filePath);
|
|
353
353
|
} catch (err) {
|
|
354
354
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
355
355
|
}
|
|
@@ -376,22 +376,22 @@ async function failDelivery(id, error, stateDir) {
|
|
|
376
376
|
return serializeByKey(filePath, () => failDeliveryWrite(filePath, error));
|
|
377
377
|
}
|
|
378
378
|
async function failDeliveryWrite(filePath, error) {
|
|
379
|
-
const raw = await
|
|
379
|
+
const raw = await fs.promises.readFile(filePath, "utf-8");
|
|
380
380
|
const entry = JSON.parse(raw);
|
|
381
381
|
entry.retryCount += 1;
|
|
382
382
|
entry.lastAttemptAt = Date.now();
|
|
383
383
|
entry.lastError = error;
|
|
384
384
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
385
|
-
await
|
|
385
|
+
await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
386
386
|
encoding: "utf-8",
|
|
387
387
|
mode: 384
|
|
388
388
|
});
|
|
389
|
-
await
|
|
389
|
+
await fs.promises.rename(tmp, filePath);
|
|
390
390
|
}
|
|
391
391
|
/** Read a queue entry raw; null when the file is missing. */
|
|
392
392
|
async function readEntryFile(filePath) {
|
|
393
393
|
try {
|
|
394
|
-
const raw = await
|
|
394
|
+
const raw = await fs.promises.readFile(filePath, "utf-8");
|
|
395
395
|
return JSON.parse(raw);
|
|
396
396
|
} catch (err) {
|
|
397
397
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
@@ -413,11 +413,11 @@ function markDeliveryPhase(filePath, transition) {
|
|
|
413
413
|
const next = transition(entry);
|
|
414
414
|
if (!next.advanced) return next;
|
|
415
415
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
416
|
-
await
|
|
416
|
+
await fs.promises.writeFile(tmp, JSON.stringify(next.entry, null, 2), {
|
|
417
417
|
encoding: "utf-8",
|
|
418
418
|
mode: 384
|
|
419
419
|
});
|
|
420
|
-
await
|
|
420
|
+
await fs.promises.rename(tmp, filePath);
|
|
421
421
|
return next;
|
|
422
422
|
});
|
|
423
423
|
}
|
|
@@ -836,7 +836,7 @@ function startDiagnosticHeartbeat(config) {
|
|
|
836
836
|
if (ageMs > stuckSessionAbortMs && state.queueDepth > 0 && !state.capturedEnd && !state.abortDispatched && state.sessionId) {
|
|
837
837
|
state.abortDispatched = true;
|
|
838
838
|
diag.warn(`stuck-session abort: sessionId=${state.sessionId} progressAge=${Math.round(ageMs / 1e3)}s threshold=${Math.round(stuckSessionAbortMs / 1e3)}s queueDepth=${state.queueDepth}`);
|
|
839
|
-
import("./runs-
|
|
839
|
+
import("./runs-BKXuFolN.js").then((n) => n.o).then(({ abortEmbeddedPiRun }) => {
|
|
840
840
|
if (state.sessionId && state.abortDispatched) abortEmbeddedPiRun(state.sessionId);
|
|
841
841
|
}).catch((err) => {
|
|
842
842
|
diag.warn(`stuck-session abort import failed: ${String(err)}`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { D as resolveAgentIdFromSessionKey } from "./workspace-
|
|
4
|
-
import { J as loadConfig, yr as emitDiagnosticEvent } from "./model-selection-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-iTNW5QQR.js";
|
|
3
|
+
import { D as resolveAgentIdFromSessionKey } from "./workspace-TtYCbjn0.js";
|
|
4
|
+
import { J as loadConfig, yr as emitDiagnosticEvent } from "./model-selection-DhXu1Q4_.js";
|
|
5
5
|
import { a as recordSessionChannelCorrelation, i as pruneDiagnosticSessionStates, o as recordTurnDuration, r as getDiagnosticSessionState, s as redactChannelCorrelation, t as diagnosticSessionStates } from "./diagnostic-session-state-Bnyx-w0F.js";
|
|
6
6
|
import { t as redactIdentifier } from "./redact-identifier-WYElxwAZ.js";
|
|
7
|
-
import { t as redactSensitiveText } from "./redact-
|
|
7
|
+
import { t as redactSensitiveText } from "./redact-D8fpDrdk.js";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
9
9
|
|
|
10
10
|
//#region src/agents/command-poll-backoff.ts
|
|
@@ -836,7 +836,7 @@ function startDiagnosticHeartbeat(config) {
|
|
|
836
836
|
if (ageMs > stuckSessionAbortMs && state.queueDepth > 0 && !state.capturedEnd && !state.abortDispatched && state.sessionId) {
|
|
837
837
|
state.abortDispatched = true;
|
|
838
838
|
diag.warn(`stuck-session abort: sessionId=${state.sessionId} progressAge=${Math.round(ageMs / 1e3)}s threshold=${Math.round(stuckSessionAbortMs / 1e3)}s queueDepth=${state.queueDepth}`);
|
|
839
|
-
import("./runs-
|
|
839
|
+
import("./runs-Dgl9DXVG.js").then((n) => n.o).then(({ abortEmbeddedPiRun }) => {
|
|
840
840
|
if (state.sessionId && state.abortDispatched) abortEmbeddedPiRun(state.sessionId);
|
|
841
841
|
}).catch((err) => {
|
|
842
842
|
diag.warn(`stuck-session abort import failed: ${String(err)}`);
|
package/dist/extensionAPI.js
CHANGED
|
@@ -8,40 +8,40 @@ import "./github-copilot-token-Wgn3tC_h.js";
|
|
|
8
8
|
import { c as resolveSessionFilePath, p as resolveStorePath } from "./run-with-concurrency-B6da8eZU.js";
|
|
9
9
|
import "./send-CO-LvMjK.js";
|
|
10
10
|
import "./send-xgIWI2PD.js";
|
|
11
|
-
import { a as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
12
|
-
import "./agent-turn-runner-
|
|
11
|
+
import { a as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-DHw7Di5R.js";
|
|
12
|
+
import "./agent-turn-runner-CLScSQoW.js";
|
|
13
13
|
import "./tokens-CAPNeQwS.js";
|
|
14
14
|
import "./outbound-message-hooks-BvyiXrg0.js";
|
|
15
|
-
import "./diagnostic-
|
|
15
|
+
import "./diagnostic-Ba0VUozS.js";
|
|
16
16
|
import "./diagnostic-session-state-evjvR-jF.js";
|
|
17
17
|
import "./redact-DbgJD0JZ.js";
|
|
18
|
-
import "./command-queue-
|
|
19
|
-
import "./send-
|
|
18
|
+
import "./command-queue-DKPv7dYN.js";
|
|
19
|
+
import "./send-BWsYS2bT.js";
|
|
20
20
|
import "./image-ops-B06vFlU8.js";
|
|
21
21
|
import "./pi-model-discovery-CcbW2IAR.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-4qLKF7Ti.js";
|
|
23
|
+
import "./chrome-CTyhKrVS.js";
|
|
24
24
|
import "./skills-Ka1jnMtm.js";
|
|
25
25
|
import "./path-alias-guards-C6VPEcOr.js";
|
|
26
26
|
import "./proxy-env-CN44KnoG.js";
|
|
27
27
|
import "./fs-safe-ZV-z8lDX.js";
|
|
28
28
|
import "./store-D0mxlHp1.js";
|
|
29
29
|
import "./thinking-BOHpxvdU.js";
|
|
30
|
-
import "./provider-image-
|
|
31
|
-
import "./audio-transcription-runner-
|
|
30
|
+
import "./provider-image-CtDp01Fm.js";
|
|
31
|
+
import "./audio-transcription-runner-CdwSTFuT.js";
|
|
32
32
|
import "./fetch-BIqtrGsq.js";
|
|
33
33
|
import "./fetch-guard-BG1XdICd.js";
|
|
34
34
|
import "./proxy-fetch-BEd2aTrF.js";
|
|
35
35
|
import "./api-key-rotation-CRYeqQTt.js";
|
|
36
|
-
import "./pi-embedded-utils-
|
|
36
|
+
import "./pi-embedded-utils-CHJI4-m4.js";
|
|
37
37
|
import "./chunk-C_i5apVn.js";
|
|
38
38
|
import "./markdown-tables-BWtdABdw.js";
|
|
39
39
|
import "./ir-zoBt_gNc.js";
|
|
40
40
|
import "./render-CF8xRF8z.js";
|
|
41
41
|
import "./commands-registry-mmL-K_Ct.js";
|
|
42
42
|
import "./skill-commands-BR_cIzIt.js";
|
|
43
|
-
import "./runs-
|
|
44
|
-
import "./deliver-
|
|
43
|
+
import "./runs-BKXuFolN.js";
|
|
44
|
+
import "./deliver-Bs58Ncxn.js";
|
|
45
45
|
import "./recorder-jw4QZNEm.js";
|
|
46
46
|
import "./fetch-DLq-HKg5.js";
|
|
47
47
|
import "./channel-activity-CIl4YbwS.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { J as loadConfig } from "./model-selection-
|
|
5
|
-
import { t as redactSensitiveText } from "./redact-
|
|
6
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
7
|
-
import { f as formatErrorChainMessage } from "./proxy-env-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-BGnYrze_.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-iTNW5QQR.js";
|
|
4
|
+
import { J as loadConfig } from "./model-selection-DhXu1Q4_.js";
|
|
5
|
+
import { t as redactSensitiveText } from "./redact-D8fpDrdk.js";
|
|
6
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-pgAg_j4y.js";
|
|
7
|
+
import { f as formatErrorChainMessage } from "./proxy-env-BBllD0qI.js";
|
|
8
8
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CNiEVKpL.js";
|
|
9
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-ri_5BFBs.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
|
|
12
12
|
//#region src/media/local-roots.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as logWarn, r as logInfo } from "./logger-
|
|
2
|
-
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn, r as logInfo } from "./logger-CkGiQRm7.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-BBllD0qI.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-BfPtlUW6.js";
|
|
4
|
-
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-C4a8MwFs.js";
|
|
5
5
|
import { EnvHttpProxyAgent, FormData, fetch } from "undici";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/net/form-data.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-
|
|
1
|
+
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-DFLXH7MA.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
import JSON5 from "json5";
|
|
5
5
|
import YAML from "yaml";
|
|
6
6
|
|
|
@@ -92,7 +92,7 @@ function hasBinary(bin) {
|
|
|
92
92
|
for (const part of parts) for (const ext of extensions) {
|
|
93
93
|
const candidate = path.join(part, bin + ext);
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
96
96
|
hasBinaryCache.set(bin, true);
|
|
97
97
|
return true;
|
|
98
98
|
} catch {}
|