wednesdayai 0.5.1-dev.24 → 0.5.1-dev.25
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-DCgndASv.js → agent-scope-BKsGMXqc.js} +3 -3
- package/dist/{agent-turn-runner-CEjdyv-R.js → agent-turn-runner-LKV3FMwQ.js} +6 -6
- package/dist/{api-key-rotation-dv2YbGr8.js → api-key-rotation-DZNFm4xG.js} +2 -2
- package/dist/{audio-preflight-C4_SRws-.js → audio-preflight-DQous9JR.js} +29 -29
- package/dist/{audio-transcription-runner-Ct0kBrps.js → audio-transcription-runner-BK3cV_ad.js} +26 -26
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +60 -60
- 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 +60 -60
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-Kn1_ykXE.js → channel-activity-BAxUpg5h.js} +3 -3
- package/dist/{chat-content-1fhcKTem.js → chat-content-BWkiC3u3.js} +34 -34
- package/dist/{chrome-DIGxu4IF.js → chrome-Dzgbe0zH.js} +23 -23
- package/dist/{chunk-CEygNI3g.js → chunk-Bvf22vTh.js} +3 -3
- package/dist/{command-queue-BIc3C-hI.js → command-queue-BOMFLCHM.js} +1 -1
- package/dist/{commands-registry-Cof4HjvY.js → commands-registry-Da3c0MbL.js} +2 -2
- package/dist/config.js +9 -9
- package/dist/{deliver-DrYdFhBN.js → deliver-CJjQbaJE.js} +29 -29
- package/dist/{diagnostic-N82VS3Qp.js → diagnostic-Dn_o8RGN.js} +5 -5
- package/dist/{plugin-sdk/errors-B671D37F.js → errors-1FTZDNVR.js} +1 -1
- package/dist/{fetch-B1ohBh6A.js → fetch-CnDdghbc.js} +8 -8
- package/dist/{fetch-guard-BXzVwvnJ.js → fetch-guard-B6BYdjiQ.js} +3 -3
- package/dist/{frontmatter-Cw_6jMAR.js → frontmatter-DvbDhvt1.js} +3 -3
- package/dist/{fs-safe-BK5ALzKD.js → fs-safe-IYMDplSg.js} +26 -26
- package/dist/{image-ops-C-5VgbLB.js → image-ops-BuzZGoUm.js} +1 -1
- package/dist/{ir-DioI2VyB.js → ir-CBsM7qoP.js} +5 -5
- package/dist/{legacy-names-CghFcfry.js → legacy-names-Ckds5WWe.js} +1 -1
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{logger-J4xjy-6D.js → logger-BeXVb5cn.js} +1 -1
- package/dist/{manager-D728Thsn.js → manager-BujYLKny.js} +18 -18
- package/dist/{markdown-tables-DfLMw9ti.js → markdown-tables-WuCFdPlC.js} +2 -2
- package/dist/{model-selection-BHGpQSa9.js → model-selection-CHi8o17y.js} +83 -83
- package/dist/{models-config-CJUMccZW.js → models-config-CAlyknIh.js} +2 -2
- package/dist/{outbound-attachment-DtVXUXnX.js → outbound-attachment-C6mfyze2.js} +2 -2
- package/dist/{outbound-message-hooks-7ErHCBLv.js → outbound-message-hooks-jUzcd2OQ.js} +5 -5
- package/dist/{path-alias-guards-E9ntDORB.js → path-alias-guards-BgOxr6f8.js} +1 -1
- package/dist/{pi-embedded-C1EQ2NQD.js → pi-embedded-aOKwlbog.js} +268 -268
- package/dist/{pi-embedded-utils-j-G6as7X.js → pi-embedded-utils-BGvDJMAA.js} +3 -3
- package/dist/{pi-model-discovery-BaH_6win.js → pi-model-discovery-CYfRyzsD.js} +7 -7
- package/dist/plugin-sdk/{agent-scope-BNKfH4PO.js → agent-scope-B5NskkwN.js} +2 -2
- package/dist/plugin-sdk/{agent-turn-execute-Dg4sVJSk.js → agent-turn-execute-C6g1y27e.js} +12 -12
- package/dist/plugin-sdk/agent-turn-execute-PXSa6POm.js +64 -0
- package/dist/plugin-sdk/{agent-turn-runner-CD9Y0Gsf.js → agent-turn-runner-BkP71ySA.js} +4 -4
- package/dist/plugin-sdk/agent-turn-runner-Cwg_qJSY.js +11 -0
- package/dist/plugin-sdk/{agent-turn-runner-D9SfXrDG.js → agent-turn-runner-DTwcFLVR.js} +7 -7
- package/dist/plugin-sdk/{api-key-rotation-BoeGT5k6.js → api-key-rotation-Dd5GYq7W.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-DpVKYTBy.js → audio-preflight-BTA2w6a8.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-GgmY1Zte.js → audio-preflight-CsMLbzm_.js} +5 -5
- package/dist/plugin-sdk/audio-preflight-OHqqRPPw.js +31 -0
- package/dist/plugin-sdk/{audio-transcription-runner-0gef4Ef0.js → audio-transcription-runner-2bpzZm3F.js} +1 -1
- package/dist/plugin-sdk/{audio-transcription-runner-BhFy0i3B.js → audio-transcription-runner-CW4PtJOr.js} +11 -11
- package/dist/plugin-sdk/{auth-profiles-DhZNx6fQ.js → auth-profiles-CxOZbtpA.js} +4 -4
- package/dist/plugin-sdk/{channel-activity-BlGuAYdc.js → channel-activity-WL5SZ4Ub.js} +3 -3
- package/dist/plugin-sdk/{chat-content-Dpzf2nbZ.js → chat-content-CCOQCwrz.js} +3 -3
- package/dist/plugin-sdk/{chat-content-BnSpex4r.js → chat-content-Csto0UEZ.js} +13 -13
- package/dist/plugin-sdk/{chrome-D9DwZOSC.js → chrome-C2bUQR0d.js} +8 -8
- package/dist/plugin-sdk/{chrome-CBH4Uiy-.js → chrome-DzzIT4YD.js} +13 -13
- package/dist/plugin-sdk/{chunk-DKwQiXuF.js → chunk-CWDKrXV-.js} +3 -3
- package/dist/plugin-sdk/{chunk-jn4LDLDQ.js → chunk-C_GT4tj0.js} +5 -5
- package/dist/plugin-sdk/{command-detection--t4OkqFt.js → command-detection-YLMxiTkq.js} +95 -95
- package/dist/plugin-sdk/{command-queue-Dd0-b1-g.js → command-queue-84-UYysZ.js} +1 -1
- package/dist/plugin-sdk/{command-queue-DfIjyemM.js → command-queue-BlcsvUrS.js} +7 -7
- package/dist/plugin-sdk/{command-queue-Cm8QKC0F.js → command-queue-J0ZpvnYU.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-COgT-iaa.js → commands-registry-Bq1VWa2x.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-C6FHOrPa.js → commands-registry-oILscT9a.js} +5 -5
- package/dist/plugin-sdk/{config-D2katwYr.js → config-Cp7sIoSP.js} +6 -6
- package/dist/plugin-sdk/{deliver-CeWz5Axp.js → deliver-1ptGm5gu.js} +14 -14
- package/dist/plugin-sdk/{deliver-CZVPDUrt.js → deliver-CT3Lk2kq.js} +1 -1
- package/dist/plugin-sdk/{deliver-D6hs0zDt.js → deliver-dkNTCb3Z.js} +3 -3
- package/dist/plugin-sdk/deliver-vvTRXMdO.js +35 -0
- package/dist/plugin-sdk/{diagnostic-ZVJ6ZVA6.js → diagnostic-BCs9q4kf.js} +6 -6
- package/dist/plugin-sdk/{diagnostic-Bi52EuT5.js → diagnostic-C-Clqb63.js} +1 -1
- package/dist/plugin-sdk/{diagnostic-DD94QWnh.js → diagnostic-W-ES89_S.js} +5 -5
- package/dist/{errors-COs_vQr3.js → plugin-sdk/errors-BAcXagTa.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-DWRMXy-Z.js → fetch-guard-5esEIw3C.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-CR39I5to.js → fs-safe-Qut4VUn8.js} +3 -3
- package/dist/plugin-sdk/{image-ops-C0wvHJkm.js → image-ops-B9MP8BwT.js} +1 -1
- package/dist/plugin-sdk/index.js +56 -56
- package/dist/plugin-sdk/{ir-CRNn4Wzv.js → ir-D6Bn5lOZ.js} +5 -5
- package/dist/plugin-sdk/{local-roots-D2LPLxOo.js → local-roots-1beRdBcS.js} +7 -7
- package/dist/plugin-sdk/{logger-F5PKgK4h.js → logger-DYxRK_FZ.js} +1 -1
- package/dist/plugin-sdk/manager-BgK1sRAg.js +16 -0
- package/dist/plugin-sdk/{manager-WrO0qTfU.js → manager-Dxv2YpgS.js} +7 -7
- package/dist/plugin-sdk/{markdown-tables-DunxiRpT.js → markdown-tables-5CSf45sS.js} +2 -2
- package/dist/plugin-sdk/markdown-tables-Q5ogPPem.js +9 -0
- package/dist/plugin-sdk/{models-config-DJUNPvmU.js → models-config-Dj4jLPMw.js} +2 -2
- package/dist/plugin-sdk/{monitor-BrUwRgsT.js → monitor-BHeL2-is.js} +32 -32
- package/dist/plugin-sdk/{outbound-attachment-Bw8Ac2Eh.js → outbound-attachment-DiQNpfYY.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DvB3vS9N.js → path-alias-guards-Cr_8wxeu.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-utils-CeNVVYT3.js → pi-embedded-utils-BmeLQMRx.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-utils-DCbfW5pR.js → pi-embedded-utils-Bx8SkKxs.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-_OwU2G2N.js → pi-model-discovery-CHCoH08E.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-Bt6iAhJo.js → pi-model-discovery-mXT8DqbW.js} +5 -5
- package/dist/plugin-sdk/provider-dispatcher-Bg7ik_9P.js +64 -0
- package/dist/plugin-sdk/{provider-dispatcher-Bx_RMlu-.js → provider-dispatcher-BkEWKVLB.js} +12 -12
- package/dist/plugin-sdk/{provider-image-DH8Jro3J.js → provider-image-BSV8WjkR.js} +1 -1
- package/dist/plugin-sdk/{provider-image-Cp4O6erC.js → provider-image-M3j6w2Xu.js} +6 -6
- package/dist/plugin-sdk/{provider-image-CBXOs7yQ.js → provider-image-QDVfXKph.js} +4 -4
- package/dist/plugin-sdk/provider-image-fv7acwPs.js +25 -0
- package/dist/plugin-sdk/{proxy-DhVCl72V.js → proxy-K3jUjtIm.js} +1 -1
- package/dist/plugin-sdk/proxy-LKdqVD6u.js +7 -0
- package/dist/plugin-sdk/{proxy-fetch-BSTGvynk.js → proxy-fetch-Dt3HV6r3.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BAIve7qq.js → pw-ai-CsU7HGvR.js} +10 -10
- package/dist/plugin-sdk/{pw-ai-BP4Kwaqc.js → pw-ai-QlS2E2LB.js} +1 -1
- package/dist/plugin-sdk/{qmd-manager-Dk95qYn7.js → qmd-manager-BHhDDFrn.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-CmmZw3Kz.js → query-expansion-BY2L8oSD.js} +2 -2
- package/dist/plugin-sdk/{recorder-CSYSJRCO.js → recorder-B_7zTSFA.js} +2 -2
- package/dist/plugin-sdk/{redact-YbcPIGWf.js → redact-C9Eu_AUI.js} +1 -1
- package/dist/plugin-sdk/{replies-CXs4_abR.js → replies-B3XUIs0b.js} +5 -5
- package/dist/plugin-sdk/replies-C4T9Nsqz.js +27 -0
- package/dist/plugin-sdk/{reply-directives-DjbLtWjg.js → reply-directives-D1IqpiHJ.js} +2 -2
- package/dist/plugin-sdk/{reply-prefix-DA4xCsnL.js → reply-prefix-Bf8Iqq8v.js} +1 -1
- package/dist/plugin-sdk/reply-prefix-C38vv65Y.js +7 -0
- package/dist/plugin-sdk/{resolve-route-Ouh7ZVw1.js → resolve-route-D0I4Llwy.js} +4 -4
- package/dist/plugin-sdk/{resolve-route-BDoLW8xr.js → resolve-route-JQF7nqo1.js} +5 -5
- package/dist/plugin-sdk/{runs-C1Lvxfri.js → runs-8iACp6xv.js} +3 -3
- package/dist/plugin-sdk/{runs-s1XnmHHC.js → runs-C75mB4si.js} +8 -8
- package/dist/plugin-sdk/{runs-DG49eFuR.js → runs-D0UdtKVI.js} +5 -5
- package/dist/plugin-sdk/runs-S1n4U4AS.js +27 -0
- package/dist/plugin-sdk/send--m_QWAPO.js +23 -0
- package/dist/plugin-sdk/{send-sl6DLsL2.js → send-4vK7xjJW.js} +15 -15
- package/dist/plugin-sdk/{send-YzrHr_2V.js → send-7iASSBg6.js} +6 -6
- package/dist/plugin-sdk/{send-BguPpGBL.js → send-BP8o2l4w.js} +2 -2
- package/dist/plugin-sdk/send-C4wz_kt5.js +28 -0
- package/dist/plugin-sdk/{send-DlYcVutL.js → send-CRZe2naD.js} +8 -8
- package/dist/plugin-sdk/{send-CcEF6VcP.js → send-CYZi6dwK.js} +1 -1
- package/dist/plugin-sdk/{send-Dzf8uETw.js → send-CzU3DnG8.js} +7 -7
- package/dist/plugin-sdk/send-D9H-XXzx.js +25 -0
- package/dist/plugin-sdk/{send-C6oFuvTF.js → send-DHH7532s.js} +6 -6
- package/dist/plugin-sdk/{send-BRN7Zt5N.js → send-Dhapzixp.js} +19 -19
- package/dist/plugin-sdk/send-DnFCjogv.js +24 -0
- package/dist/plugin-sdk/{session-context-BKcnHr0H.js → session-context-DVrSm2pD.js} +4 -4
- package/dist/plugin-sdk/session-meta-CT3hQSl7.js +13 -0
- package/dist/plugin-sdk/{session-meta-Ov3Sv55D.js → session-meta-Cho9XVh8.js} +1 -1
- package/dist/plugin-sdk/{sessions-CLYE50YG.js → sessions-D5KTt-gq.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-B3IuCuE6.js → skill-commands-Bv0tfv2Q.js} +4 -4
- package/dist/plugin-sdk/skill-commands-Clq-qaMe.js +13 -0
- package/dist/plugin-sdk/{skills-DcowK80n.js → skills-DO7OTK36.js} +6 -6
- package/dist/plugin-sdk/{ssrf-CkGpmmN1.js → ssrf-DPY1teOB.js} +1 -1
- package/dist/plugin-sdk/{store-B5Jssa25.js → store-nKIf4x6Y.js} +2 -2
- package/dist/plugin-sdk/{subagent-registry-B4EmS6cu.js → subagent-registry-DA50ITkO.js} +12 -12
- package/dist/plugin-sdk/subagent-registry-DSh4cze1.js +64 -0
- package/dist/plugin-sdk/{subsystem-C-lWCqvG.js → subsystem-CPqF9wja.js} +4 -4
- package/dist/plugin-sdk/{tables-CG00Lb4u.js → tables-CatynEzT.js} +1 -1
- package/dist/plugin-sdk/testing.js +12 -12
- package/dist/plugin-sdk/{tokens-Ctmmv-sn.js → tokens-DdbQh5HH.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-ys8oxWQM.js → tool-loop-detection-DazBiexb.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-CTKs_Jv9.js → user-run-recording-BXyHfYg3.js} +2 -2
- package/dist/plugin-sdk/user-run-recording-D80GJNVP.js +11 -0
- package/dist/{provider-image-CFq0C_z0.js → provider-image-CNBkTbhu.js} +6 -6
- package/dist/{proxy-CrSpy5Aw.js → proxy-Ds4gxPy8.js} +1 -1
- package/dist/{proxy-env-BxR4m86L.js → proxy-env-DAf-b2bM.js} +1 -1
- package/dist/{proxy-fetch-g109vqdt.js → proxy-fetch-M3YAp_Kv.js} +1 -1
- package/dist/{pw-ai-Dhm8_p5G.js → pw-ai-BcibeG9a.js} +14 -14
- package/dist/{qmd-manager-CU9iEql0.js → qmd-manager-C3UBJiCk.js} +12 -12
- package/dist/{query-expansion-B_2rETEo.js → query-expansion-BT5lS0um.js} +13 -13
- package/dist/{recorder-Clg9Kbqu.js → recorder-B08vNxya.js} +2 -2
- package/dist/{redact-DpE5Tg36.js → redact-CKI6SufO.js} +1 -1
- package/dist/{replies-Cty02S3t.js → replies-BHkXhmOj.js} +5 -5
- package/dist/{reply-directives-BIh2AkNd.js → reply-directives-DkfwzHl4.js} +2 -2
- package/dist/{reply-prefix-C-DjHvQK.js → reply-prefix-DS2s69iC.js} +1 -1
- package/dist/{resolve-route-DKZiteo6.js → resolve-route-DxuZn3_M.js} +5 -5
- package/dist/{runs-Ot6reoKK.js → runs-DFvW_PVw.js} +9 -9
- package/dist/{send-BXHsjIHr.js → send-2aTk7PU-.js} +28 -28
- package/dist/{send-Bf4geLyV.js → send-D2WSE41A.js} +8 -8
- package/dist/{send-CsDSBjFo.js → send-mILKKt54.js} +6 -6
- package/dist/{send-bwKTbNlJ.js → send-odd2G3DX.js} +7 -7
- package/dist/{send-DQvfLvpJ.js → send-yIxOvEiz.js} +6 -6
- package/dist/{session-meta-5XI6vLtM.js → session-meta-B8B6RwSE.js} +1 -1
- package/dist/{sessions-DF9biCmh.js → sessions-DC7A0bw-.js} +5 -5
- package/dist/{skill-commands-CAOvM2sb.js → skill-commands-DdVSQNce.js} +8 -8
- package/dist/{skills-VN1CJK6W.js → skills-BXMjgvRl.js} +21 -21
- package/dist/{store-HgGweM4u.js → store-BVdeIl7N.js} +7 -7
- package/dist/{tables-DkwNUhx1.js → tables-yHwb0GsI.js} +1 -1
- package/dist/{tokens-PMai9bNL.js → tokens-CXBau-U0.js} +1 -1
- package/dist/{tool-loop-detection-BqyMjpvr.js → tool-loop-detection-Bw8B0hV3.js} +2 -2
- package/dist/{user-run-recording-B1HujJiT.js → user-run-recording-8MZq1Us4.js} +2 -2
- package/dist/{workspace-Bj1Jegt-.js → workspace-DK2ZEkpT.js} +27 -27
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/github-copilot-token-DYYKoDuV.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/dist/plugin-sdk/agent-turn-execute-W6H2j8kO.js +0 -64
- package/dist/plugin-sdk/agent-turn-runner-BTedsvG2.js +0 -11
- package/dist/plugin-sdk/audio-preflight-CJ3oP-bs.js +0 -31
- package/dist/plugin-sdk/deliver-DaxxC7pS.js +0 -35
- package/dist/plugin-sdk/manager-DsV_4p9J.js +0 -16
- package/dist/plugin-sdk/markdown-tables-xTvb6uxj.js +0 -9
- package/dist/plugin-sdk/provider-dispatcher-BVBAjHBR.js +0 -64
- package/dist/plugin-sdk/provider-image-Wa7xYnAo.js +0 -25
- package/dist/plugin-sdk/proxy-BFnRHQ1U.js +0 -7
- package/dist/plugin-sdk/replies-RqNUByIO.js +0 -27
- package/dist/plugin-sdk/reply-prefix-30s91NpV.js +0 -7
- package/dist/plugin-sdk/runs-XrgntIht.js +0 -27
- package/dist/plugin-sdk/send-8sjelrtn.js +0 -25
- package/dist/plugin-sdk/send-BjroMkud.js +0 -24
- package/dist/plugin-sdk/send-CwcdQ1wT.js +0 -28
- package/dist/plugin-sdk/send-DuyWQ4Q4.js +0 -23
- package/dist/plugin-sdk/session-meta-JkAHgftu.js +0 -13
- package/dist/plugin-sdk/skill-commands-CZKr2EYZ.js +0 -13
- package/dist/plugin-sdk/subagent-registry-28cuPTO-.js +0 -64
- package/dist/plugin-sdk/user-run-recording-DIcSd0VJ.js +0 -11
- package/dist/subsystem-BZy3aWdW.js +0 -2761
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
-
import { l as resolveStateDir } from "./paths-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { H as normalizeOptionalAccountId, M as normalizeMainKey, Q as parseAgentSessionKey, V as normalizeAccountId, j as normalizeAgentId } from "./workspace-
|
|
6
|
-
import { Gt as getActivePluginRegistry, Jn as normalizeChannelId, Kn as getChannelPlugin, Tn as updateSessionStoreEntry, U as loadConfig, Un as resolveStorePath, Yn as getChannelDock, _n as loadSessionStore, ga as resolveOpenClawAgentDir, gn as listConfiguredSessionStorageAgentIds, ln as getConversationReadQuery, qt as getActivePluginRegistryVersion, sn as StorageReadAccessError } from "./model-selection-
|
|
7
|
-
import { L as resolveMainSessionKey, Mt as hasInterSessionUserProvenance, P as canonicalizeMainSessionAlias, Pt as getGlobalHookRunner, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript, o as parseInlineDirectives, ot as eventOrder } from "./sessions-
|
|
2
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-BKsGMXqc.js";
|
|
3
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-BaT-AAVZ.js";
|
|
5
|
+
import { H as normalizeOptionalAccountId, M as normalizeMainKey, Q as parseAgentSessionKey, V as normalizeAccountId, j as normalizeAgentId } from "./workspace-DK2ZEkpT.js";
|
|
6
|
+
import { Gt as getActivePluginRegistry, Jn as normalizeChannelId, Kn as getChannelPlugin, Tn as updateSessionStoreEntry, U as loadConfig, Un as resolveStorePath, Yn as getChannelDock, _n as loadSessionStore, ga as resolveOpenClawAgentDir, gn as listConfiguredSessionStorageAgentIds, ln as getConversationReadQuery, qt as getActivePluginRegistryVersion, sn as StorageReadAccessError } from "./model-selection-CHi8o17y.js";
|
|
7
|
+
import { L as resolveMainSessionKey, Mt as hasInterSessionUserProvenance, P as canonicalizeMainSessionAlias, Pt as getGlobalHookRunner, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript, o as parseInlineDirectives, ot as eventOrder } from "./sessions-DC7A0bw-.js";
|
|
8
8
|
import { n as generateSecureUuid } from "./secure-random-BEYczWtd.js";
|
|
9
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
10
|
-
import { o as hasErrnoCode } from "./errors-
|
|
11
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
12
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
13
|
-
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-
|
|
14
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
15
|
-
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
16
|
-
import { t as parseReplyDirectives } from "./reply-directives-
|
|
17
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
9
|
+
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-BWkiC3u3.js";
|
|
10
|
+
import { o as hasErrnoCode } from "./errors-1FTZDNVR.js";
|
|
11
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-CAlyknIh.js";
|
|
12
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-CnDdghbc.js";
|
|
13
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-Bvf22vTh.js";
|
|
14
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-WuCFdPlC.js";
|
|
15
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-jUzcd2OQ.js";
|
|
16
|
+
import { t as parseReplyDirectives } from "./reply-directives-DkfwzHl4.js";
|
|
17
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-mILKKt54.js";
|
|
18
18
|
import path from "node:path";
|
|
19
|
-
import
|
|
19
|
+
import syncFs from "node:fs";
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
21
21
|
import { setTimeout } from "node:timers/promises";
|
|
22
22
|
|
|
@@ -372,7 +372,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
372
372
|
await ensureOpenClawModelsJson(cfg);
|
|
373
373
|
} catch {}
|
|
374
374
|
try {
|
|
375
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
375
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-CYfRyzsD.js").then((n) => n.r);
|
|
376
376
|
const agentDir = resolveOpenClawAgentDir();
|
|
377
377
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
378
378
|
applyDiscoveredContextWindows({
|
|
@@ -688,7 +688,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
688
688
|
const root = resolveStateDir();
|
|
689
689
|
const agentsDir = path.join(root, "agents");
|
|
690
690
|
try {
|
|
691
|
-
return
|
|
691
|
+
return syncFs.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
692
692
|
} catch {
|
|
693
693
|
return [];
|
|
694
694
|
}
|
|
@@ -889,11 +889,11 @@ function resolveFailedDir(stateDir) {
|
|
|
889
889
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
890
890
|
async function ensureQueueDir(stateDir) {
|
|
891
891
|
const queueDir = resolveQueueDir(stateDir);
|
|
892
|
-
await
|
|
892
|
+
await syncFs.promises.mkdir(queueDir, {
|
|
893
893
|
recursive: true,
|
|
894
894
|
mode: 448
|
|
895
895
|
});
|
|
896
|
-
await
|
|
896
|
+
await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
897
897
|
recursive: true,
|
|
898
898
|
mode: 448
|
|
899
899
|
});
|
|
@@ -923,18 +923,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
923
923
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
924
924
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
925
925
|
const json = JSON.stringify(entry, null, 2);
|
|
926
|
-
await
|
|
926
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
927
927
|
encoding: "utf-8",
|
|
928
928
|
mode: 384
|
|
929
929
|
});
|
|
930
|
-
await
|
|
930
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
931
931
|
return id;
|
|
932
932
|
}
|
|
933
933
|
/** Remove a successfully delivered entry from the queue. */
|
|
934
934
|
async function ackDelivery(id, stateDir) {
|
|
935
935
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
936
936
|
try {
|
|
937
|
-
await
|
|
937
|
+
await syncFs.promises.unlink(filePath);
|
|
938
938
|
} catch (err) {
|
|
939
939
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
940
940
|
}
|
|
@@ -961,22 +961,22 @@ async function failDelivery(id, error, stateDir) {
|
|
|
961
961
|
return serializeByKey(filePath, () => failDeliveryWrite(filePath, error));
|
|
962
962
|
}
|
|
963
963
|
async function failDeliveryWrite(filePath, error) {
|
|
964
|
-
const raw = await
|
|
964
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
965
965
|
const entry = JSON.parse(raw);
|
|
966
966
|
entry.retryCount += 1;
|
|
967
967
|
entry.lastAttemptAt = Date.now();
|
|
968
968
|
entry.lastError = error;
|
|
969
969
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
970
|
-
await
|
|
970
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
971
971
|
encoding: "utf-8",
|
|
972
972
|
mode: 384
|
|
973
973
|
});
|
|
974
|
-
await
|
|
974
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
975
975
|
}
|
|
976
976
|
/** Read a queue entry raw; null when the file is missing. */
|
|
977
977
|
async function readEntryFile(filePath) {
|
|
978
978
|
try {
|
|
979
|
-
const raw = await
|
|
979
|
+
const raw = await syncFs.promises.readFile(filePath, "utf-8");
|
|
980
980
|
return JSON.parse(raw);
|
|
981
981
|
} catch (err) {
|
|
982
982
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
@@ -998,11 +998,11 @@ function markDeliveryPhase(filePath, transition) {
|
|
|
998
998
|
const next = transition(entry);
|
|
999
999
|
if (!next.advanced) return next;
|
|
1000
1000
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1001
|
-
await
|
|
1001
|
+
await syncFs.promises.writeFile(tmp, JSON.stringify(next.entry, null, 2), {
|
|
1002
1002
|
encoding: "utf-8",
|
|
1003
1003
|
mode: 384
|
|
1004
1004
|
});
|
|
1005
|
-
await
|
|
1005
|
+
await syncFs.promises.rename(tmp, filePath);
|
|
1006
1006
|
return next;
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { N as resolveAgentIdFromSessionKey } from "./workspace-
|
|
4
|
-
import { U as loadConfig } from "./model-selection-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BaT-AAVZ.js";
|
|
3
|
+
import { N as resolveAgentIdFromSessionKey } from "./workspace-DK2ZEkpT.js";
|
|
4
|
+
import { U as loadConfig } from "./model-selection-CHi8o17y.js";
|
|
5
5
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-DGRcTqIH.js";
|
|
6
6
|
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";
|
|
7
7
|
import { t as redactIdentifier } from "./redact-identifier-WYElxwAZ.js";
|
|
8
|
-
import { t as redactSensitiveText } from "./redact-
|
|
8
|
+
import { t as redactSensitiveText } from "./redact-CKI6SufO.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/agents/command-poll-backoff.ts
|
|
@@ -837,7 +837,7 @@ function startDiagnosticHeartbeat(config) {
|
|
|
837
837
|
if (ageMs > stuckSessionAbortMs && state.queueDepth > 0 && !state.capturedEnd && !state.abortDispatched && state.sessionId) {
|
|
838
838
|
state.abortDispatched = true;
|
|
839
839
|
diag.warn(`stuck-session abort: sessionId=${state.sessionId} progressAge=${Math.round(ageMs / 1e3)}s threshold=${Math.round(stuckSessionAbortMs / 1e3)}s queueDepth=${state.queueDepth}`);
|
|
840
|
-
import("./runs-
|
|
840
|
+
import("./runs-DFvW_PVw.js").then((n) => n.c).then(({ abortEmbeddedPiRun }) => {
|
|
841
841
|
if (state.sessionId && state.abortDispatched) abortEmbeddedPiRun(state.sessionId);
|
|
842
842
|
}).catch((err) => {
|
|
843
843
|
diag.warn(`stuck-session abort import failed: ${String(err)}`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { l as resolveStateDir } from "./paths-
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { U 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 { r as formatErrorChainMessage } from "./errors-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-BKsGMXqc.js";
|
|
2
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-BaT-AAVZ.js";
|
|
4
|
+
import { U as loadConfig } from "./model-selection-CHi8o17y.js";
|
|
5
|
+
import { t as redactSensitiveText } from "./redact-CKI6SufO.js";
|
|
6
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BuzZGoUm.js";
|
|
7
|
+
import { r as formatErrorChainMessage } from "./errors-1FTZDNVR.js";
|
|
8
8
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-Cj-XaaTu.js";
|
|
9
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-B6BYdjiQ.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-BeXVb5cn.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-DAf-b2bM.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Dyj5Y_Ss.js";
|
|
4
|
-
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-M3YAp_Kv.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-Ckds5WWe.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import syncFs 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
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
96
96
|
hasBinaryCache.set(bin, true);
|
|
97
97
|
return true;
|
|
98
98
|
} catch {}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as expandHomePrefix } from "./paths-
|
|
2
|
-
import { B as hasNodeErrorCode, H as isPathInside, I as sameFileIdentity, U as isSymlinkOpenError, V as isNotFoundPathError } from "./subsystem-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { u as expandHomePrefix } from "./paths-B_gs59ga.js";
|
|
2
|
+
import { B as hasNodeErrorCode, H as isPathInside, I as sameFileIdentity, U as isSymlinkOpenError, V as isNotFoundPathError } from "./subsystem-BaT-AAVZ.js";
|
|
3
|
+
import { i as logWarn } from "./logger-BeXVb5cn.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BgOxr6f8.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { constants } from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
8
|
-
import fs
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { pipeline } from "node:stream/promises";
|
|
11
11
|
|
|
@@ -25,19 +25,19 @@ const ensureTrailingSep = (value) => value.endsWith(path.sep) ? value : value +
|
|
|
25
25
|
async function expandRelativePathWithHome(relativePath) {
|
|
26
26
|
let home = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
27
27
|
try {
|
|
28
|
-
home = await fs
|
|
28
|
+
home = await fs.realpath(home);
|
|
29
29
|
} catch {}
|
|
30
30
|
return expandHomePrefix(relativePath, { home });
|
|
31
31
|
}
|
|
32
32
|
async function openVerifiedLocalFile(filePath, options) {
|
|
33
33
|
try {
|
|
34
|
-
if ((await fs
|
|
34
|
+
if ((await fs.lstat(filePath)).isDirectory()) throw new SafeOpenError("not-file", "not a file");
|
|
35
35
|
} catch (err) {
|
|
36
36
|
if (err instanceof SafeOpenError) throw err;
|
|
37
37
|
}
|
|
38
38
|
let handle;
|
|
39
39
|
try {
|
|
40
|
-
handle = await fs
|
|
40
|
+
handle = await fs.open(filePath, OPEN_READ_FLAGS);
|
|
41
41
|
} catch (err) {
|
|
42
42
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
43
43
|
if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
|
|
@@ -45,13 +45,13 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
45
45
|
throw err;
|
|
46
46
|
}
|
|
47
47
|
try {
|
|
48
|
-
const [stat, lstat] = await Promise.all([handle.stat(), fs
|
|
48
|
+
const [stat, lstat] = await Promise.all([handle.stat(), fs.lstat(filePath)]);
|
|
49
49
|
if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
|
|
50
50
|
if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
|
|
51
51
|
if (options?.rejectHardlinks && stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
52
52
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during read");
|
|
53
|
-
const realPath = await fs
|
|
54
|
-
const realStat = await fs
|
|
53
|
+
const realPath = await fs.realpath(filePath);
|
|
54
|
+
const realStat = await fs.stat(realPath);
|
|
55
55
|
if (options?.rejectHardlinks && realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
56
56
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
57
57
|
return {
|
|
@@ -69,7 +69,7 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
69
69
|
async function resolvePathWithinRoot(params) {
|
|
70
70
|
let rootReal;
|
|
71
71
|
try {
|
|
72
|
-
rootReal = await fs
|
|
72
|
+
rootReal = await fs.realpath(params.rootDir);
|
|
73
73
|
} catch (err) {
|
|
74
74
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
|
|
75
75
|
throw err;
|
|
@@ -170,7 +170,7 @@ function buildAtomicWriteTempPath(targetPath) {
|
|
|
170
170
|
return path.join(dir, `.${base}.${process.pid}.${randomUUID()}.tmp`);
|
|
171
171
|
}
|
|
172
172
|
async function writeTempFileForAtomicReplace(params) {
|
|
173
|
-
const tempHandle = await fs
|
|
173
|
+
const tempHandle = await fs.open(params.tempPath, OPEN_WRITE_CREATE_FLAGS, params.mode);
|
|
174
174
|
try {
|
|
175
175
|
if (typeof params.data === "string") await tempHandle.writeFile(params.data, params.encoding ?? "utf8");
|
|
176
176
|
else await tempHandle.writeFile(params.data);
|
|
@@ -180,7 +180,7 @@ async function writeTempFileForAtomicReplace(params) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async function verifyAtomicWriteResult(params) {
|
|
183
|
-
const rootWithSep = ensureTrailingSep(await fs
|
|
183
|
+
const rootWithSep = ensureTrailingSep(await fs.realpath(params.rootDir));
|
|
184
184
|
const opened = await openVerifiedLocalFile(params.targetPath, { rejectHardlinks: true });
|
|
185
185
|
try {
|
|
186
186
|
if (!sameFileIdentity(opened.stat, params.expectedStat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
@@ -191,13 +191,13 @@ async function verifyAtomicWriteResult(params) {
|
|
|
191
191
|
}
|
|
192
192
|
async function resolveOpenedFileRealPathForHandle(handle, ioPath) {
|
|
193
193
|
try {
|
|
194
|
-
return await fs
|
|
194
|
+
return await fs.realpath(ioPath);
|
|
195
195
|
} catch (err) {
|
|
196
196
|
if (!isNotFoundPathError(err)) throw err;
|
|
197
197
|
}
|
|
198
198
|
const fdCandidates = process.platform === "linux" ? [`/proc/self/fd/${handle.fd}`, `/dev/fd/${handle.fd}`] : process.platform === "win32" ? [] : [`/dev/fd/${handle.fd}`];
|
|
199
199
|
for (const fdPath of fdCandidates) try {
|
|
200
|
-
return await fs
|
|
200
|
+
return await fs.realpath(fdPath);
|
|
201
201
|
} catch {}
|
|
202
202
|
throw new SafeOpenError("path-mismatch", "unable to resolve opened file path");
|
|
203
203
|
}
|
|
@@ -212,10 +212,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
212
212
|
} catch (err) {
|
|
213
213
|
throw new SafeOpenError("invalid-path", "path alias escape blocked", { cause: err });
|
|
214
214
|
}
|
|
215
|
-
if (params.mkdir !== false) await fs
|
|
215
|
+
if (params.mkdir !== false) await fs.mkdir(path.dirname(resolved), { recursive: true });
|
|
216
216
|
let ioPath = resolved;
|
|
217
217
|
try {
|
|
218
|
-
const resolvedRealPath = await fs
|
|
218
|
+
const resolvedRealPath = await fs.realpath(resolved);
|
|
219
219
|
if (!isPathInside(rootWithSep, resolvedRealPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
220
220
|
ioPath = resolvedRealPath;
|
|
221
221
|
} catch (err) {
|
|
@@ -227,10 +227,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
227
227
|
let createdForWrite = false;
|
|
228
228
|
try {
|
|
229
229
|
try {
|
|
230
|
-
handle = await fs
|
|
230
|
+
handle = await fs.open(ioPath, OPEN_WRITE_EXISTING_FLAGS, fileMode);
|
|
231
231
|
} catch (err) {
|
|
232
232
|
if (!isNotFoundPathError(err)) throw err;
|
|
233
|
-
handle = await fs
|
|
233
|
+
handle = await fs.open(ioPath, OPEN_WRITE_CREATE_FLAGS, fileMode);
|
|
234
234
|
createdForWrite = true;
|
|
235
235
|
}
|
|
236
236
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
244
244
|
if (!stat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
245
245
|
if (stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
246
246
|
try {
|
|
247
|
-
const lstat = await fs
|
|
247
|
+
const lstat = await fs.lstat(ioPath);
|
|
248
248
|
if (lstat.isSymbolicLink() || !lstat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
249
249
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
250
250
|
} catch (err) {
|
|
@@ -252,7 +252,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
252
252
|
}
|
|
253
253
|
const realPath = await resolveOpenedFileRealPathForHandle(handle, ioPath);
|
|
254
254
|
openedRealPath = realPath;
|
|
255
|
-
const realStat = await fs
|
|
255
|
+
const realStat = await fs.stat(realPath);
|
|
256
256
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
257
257
|
if (realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
258
258
|
if (!isPathInside(rootWithSep, realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
@@ -267,7 +267,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
267
267
|
const cleanupCreatedPath = createdForWrite && err instanceof SafeOpenError;
|
|
268
268
|
const cleanupPath = openedRealPath ?? ioPath;
|
|
269
269
|
await handle.close().catch(() => {});
|
|
270
|
-
if (cleanupCreatedPath) await fs
|
|
270
|
+
if (cleanupCreatedPath) await fs.rm(cleanupPath, { force: true }).catch(() => {});
|
|
271
271
|
throw err;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -290,7 +290,7 @@ async function writeFileWithinRoot(params) {
|
|
|
290
290
|
encoding: params.encoding,
|
|
291
291
|
mode: targetMode || 384
|
|
292
292
|
});
|
|
293
|
-
await fs
|
|
293
|
+
await fs.rename(tempPath, destinationPath);
|
|
294
294
|
tempPath = null;
|
|
295
295
|
try {
|
|
296
296
|
await verifyAtomicWriteResult({
|
|
@@ -303,7 +303,7 @@ async function writeFileWithinRoot(params) {
|
|
|
303
303
|
throw err;
|
|
304
304
|
}
|
|
305
305
|
} finally {
|
|
306
|
-
if (tempPath) await fs
|
|
306
|
+
if (tempPath) await fs.rm(tempPath, { force: true }).catch(() => {});
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
async function copyFileWithinRoot(params) {
|
|
@@ -331,7 +331,7 @@ async function copyFileWithinRoot(params) {
|
|
|
331
331
|
});
|
|
332
332
|
await pipeline(sourceStream, targetStream);
|
|
333
333
|
} catch (err) {
|
|
334
|
-
if (target?.createdForWrite) await fs
|
|
334
|
+
if (target?.createdForWrite) await fs.rm(target.openedRealPath, { force: true }).catch(() => {});
|
|
335
335
|
throw err;
|
|
336
336
|
} finally {
|
|
337
337
|
if (!sourceClosedByStream) await source.handle.close().catch(() => {});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as logVerbose, h as shouldLogVerbose, st as resolveUserPath } from "./subsystem-
|
|
2
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
3
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
4
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
5
|
-
import { a as chunkText } from "./chunk-
|
|
1
|
+
import { f as logVerbose, h as shouldLogVerbose, st as resolveUserPath } from "./subsystem-BaT-AAVZ.js";
|
|
2
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-BuzZGoUm.js";
|
|
3
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-IYMDplSg.js";
|
|
4
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-CnDdghbc.js";
|
|
5
|
+
import { a as chunkText } from "./chunk-Bvf22vTh.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { Aa as DEFAULT_MODEL, ja as DEFAULT_PROVIDER, l as parseModelRef } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./send-
|
|
10
|
-
import "./send-
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
12
|
-
import "./tokens-
|
|
13
|
-
import "./sessions-
|
|
1
|
+
import { a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId } from "./agent-scope-BKsGMXqc.js";
|
|
2
|
+
import "./paths-B_gs59ga.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BaT-AAVZ.js";
|
|
4
|
+
import "./workspace-DK2ZEkpT.js";
|
|
5
|
+
import "./logger-BeXVb5cn.js";
|
|
6
|
+
import { Aa as DEFAULT_MODEL, ja as DEFAULT_PROVIDER, l as parseModelRef } from "./model-selection-CHi8o17y.js";
|
|
7
|
+
import "./github-copilot-token-DHoyZ4I0.js";
|
|
8
|
+
import "./legacy-names-Ckds5WWe.js";
|
|
9
|
+
import "./send-odd2G3DX.js";
|
|
10
|
+
import "./send-D2WSE41A.js";
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-aOKwlbog.js";
|
|
12
|
+
import "./tokens-CXBau-U0.js";
|
|
13
|
+
import "./sessions-DC7A0bw-.js";
|
|
14
14
|
import "./diagnostic-events-DGRcTqIH.js";
|
|
15
|
-
import "./diagnostic-
|
|
15
|
+
import "./diagnostic-Dn_o8RGN.js";
|
|
16
16
|
import "./diagnostic-session-state-Bnyx-w0F.js";
|
|
17
|
-
import "./redact-
|
|
18
|
-
import "./command-queue-
|
|
19
|
-
import "./send-
|
|
20
|
-
import "./image-ops-
|
|
21
|
-
import "./pi-model-discovery-
|
|
22
|
-
import "./chat-content-
|
|
23
|
-
import "./chrome-
|
|
24
|
-
import "./frontmatter-
|
|
25
|
-
import "./skills-
|
|
26
|
-
import "./path-alias-guards-
|
|
27
|
-
import "./errors-
|
|
28
|
-
import "./fs-safe-
|
|
29
|
-
import "./proxy-env-
|
|
30
|
-
import "./store-
|
|
17
|
+
import "./redact-CKI6SufO.js";
|
|
18
|
+
import "./command-queue-BOMFLCHM.js";
|
|
19
|
+
import "./send-2aTk7PU-.js";
|
|
20
|
+
import "./image-ops-BuzZGoUm.js";
|
|
21
|
+
import "./pi-model-discovery-CYfRyzsD.js";
|
|
22
|
+
import "./chat-content-BWkiC3u3.js";
|
|
23
|
+
import "./chrome-Dzgbe0zH.js";
|
|
24
|
+
import "./frontmatter-DvbDhvt1.js";
|
|
25
|
+
import "./skills-BXMjgvRl.js";
|
|
26
|
+
import "./path-alias-guards-BgOxr6f8.js";
|
|
27
|
+
import "./errors-1FTZDNVR.js";
|
|
28
|
+
import "./fs-safe-IYMDplSg.js";
|
|
29
|
+
import "./proxy-env-DAf-b2bM.js";
|
|
30
|
+
import "./store-BVdeIl7N.js";
|
|
31
31
|
import "./thinking-CcoiS9V4.js";
|
|
32
|
-
import "./models-config-
|
|
33
|
-
import "./audio-transcription-runner-
|
|
34
|
-
import "./pi-embedded-utils-
|
|
35
|
-
import "./provider-image-
|
|
36
|
-
import "./fetch-
|
|
37
|
-
import "./fetch-guard-
|
|
38
|
-
import "./proxy-fetch-
|
|
39
|
-
import "./api-key-rotation-
|
|
40
|
-
import "./reply-prefix-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./markdown-tables-
|
|
43
|
-
import "./ir-
|
|
32
|
+
import "./models-config-CAlyknIh.js";
|
|
33
|
+
import "./audio-transcription-runner-BK3cV_ad.js";
|
|
34
|
+
import "./pi-embedded-utils-BGvDJMAA.js";
|
|
35
|
+
import "./provider-image-CNBkTbhu.js";
|
|
36
|
+
import "./fetch-CnDdghbc.js";
|
|
37
|
+
import "./fetch-guard-B6BYdjiQ.js";
|
|
38
|
+
import "./proxy-fetch-M3YAp_Kv.js";
|
|
39
|
+
import "./api-key-rotation-DZNFm4xG.js";
|
|
40
|
+
import "./reply-prefix-DS2s69iC.js";
|
|
41
|
+
import "./chunk-Bvf22vTh.js";
|
|
42
|
+
import "./markdown-tables-WuCFdPlC.js";
|
|
43
|
+
import "./ir-CBsM7qoP.js";
|
|
44
44
|
import "./render-2Ztmr_V0.js";
|
|
45
|
-
import "./commands-registry-
|
|
46
|
-
import "./user-run-recording-
|
|
47
|
-
import "./recorder-
|
|
48
|
-
import "./agent-turn-runner-
|
|
49
|
-
import "./skill-commands-
|
|
50
|
-
import "./runs-
|
|
51
|
-
import "./outbound-message-hooks-
|
|
52
|
-
import "./deliver-
|
|
45
|
+
import "./commands-registry-Da3c0MbL.js";
|
|
46
|
+
import "./user-run-recording-8MZq1Us4.js";
|
|
47
|
+
import "./recorder-B08vNxya.js";
|
|
48
|
+
import "./agent-turn-runner-LKV3FMwQ.js";
|
|
49
|
+
import "./skill-commands-DdVSQNce.js";
|
|
50
|
+
import "./runs-DFvW_PVw.js";
|
|
51
|
+
import "./outbound-message-hooks-jUzcd2OQ.js";
|
|
52
|
+
import "./deliver-CJjQbaJE.js";
|
|
53
53
|
import "./fetch-BVyUaG_D.js";
|
|
54
|
-
import "./channel-activity-
|
|
55
|
-
import "./tables-
|
|
56
|
-
import "./reply-directives-
|
|
57
|
-
import "./send-
|
|
58
|
-
import "./outbound-attachment-
|
|
59
|
-
import "./send-
|
|
60
|
-
import "./resolve-route-
|
|
61
|
-
import "./proxy-
|
|
62
|
-
import "./replies-
|
|
63
|
-
import "./session-meta-
|
|
64
|
-
import "./manager-
|
|
65
|
-
import "./query-expansion-
|
|
54
|
+
import "./channel-activity-BAxUpg5h.js";
|
|
55
|
+
import "./tables-yHwb0GsI.js";
|
|
56
|
+
import "./reply-directives-DkfwzHl4.js";
|
|
57
|
+
import "./send-mILKKt54.js";
|
|
58
|
+
import "./outbound-attachment-C6mfyze2.js";
|
|
59
|
+
import "./send-yIxOvEiz.js";
|
|
60
|
+
import "./resolve-route-DxuZn3_M.js";
|
|
61
|
+
import "./proxy-Ds4gxPy8.js";
|
|
62
|
+
import "./replies-BHkXhmOj.js";
|
|
63
|
+
import "./session-meta-B8B6RwSE.js";
|
|
64
|
+
import "./manager-BujYLKny.js";
|
|
65
|
+
import "./query-expansion-BT5lS0um.js";
|
|
66
66
|
|
|
67
67
|
//#region src/hooks/llm-slug-generator.ts
|
|
68
68
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as info, g as warn, o as defaultRuntime, p as logVerboseConsole, t as createSubsystemLogger, u as danger, x as getLogger } from "./subsystem-
|
|
1
|
+
import { d as info, g as warn, o as defaultRuntime, p as logVerboseConsole, t as createSubsystemLogger, u as danger, x as getLogger } from "./subsystem-BaT-AAVZ.js";
|
|
2
2
|
|
|
3
3
|
//#region src/logger.ts
|
|
4
4
|
const subsystemPrefixRe = /^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;
|