wednesdayai 0.6.1-dev.7 → 0.6.1-dev.8
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-BtUvImH3.js → agent-scope-CCWcV-mm.js} +1 -1
- package/dist/{agent-scope-Baake9Zw.js → agent-scope-CmMflllE.js} +18 -18
- package/dist/{agent-scope-mW_bIVxB.js → agent-scope-Km9kFpGZ.js} +2 -2
- package/dist/{agent-turn-execute-FvKDpI0k.js → agent-turn-execute-C5BrtQw7.js} +167 -167
- package/dist/{agent-turn-execute-DCEdgfn4.js → agent-turn-execute-PcF36_4h.js} +81 -81
- package/dist/{agent-turn-runner-DORCoPIV.js → agent-turn-runner-BOwPjmul.js} +6 -6
- package/dist/{agent-turn-runner-N0SoqZOW.js → agent-turn-runner-DgRUf3t9.js} +6 -6
- package/dist/{agent-turn-runner-CbKGcl3C.js → agent-turn-runner-DsDYOkS0.js} +6 -6
- package/dist/{api-key-rotation-BYKEqCjs.js → api-key-rotation-B1g36Ktj.js} +2 -2
- package/dist/{api-key-rotation-Kb5UlnWS.js → api-key-rotation-DMxY8dgp.js} +2 -2
- package/dist/{api-key-rotation-C-vN-cou.js → api-key-rotation-SXWmHJ82.js} +2 -2
- package/dist/{audio-preflight-DOQ4t3Lt.js → audio-preflight-B3evE7-u.js} +22 -22
- package/dist/{audio-preflight-DXhf9Jw5.js → audio-preflight-CmPLA0Gs.js} +25 -25
- package/dist/{audio-preflight-NAEHXArO.js → audio-preflight-K7IUKCcp.js} +24 -24
- package/dist/{audio-transcription-runner-DLjBrgIp.js → audio-transcription-runner-4DK2O-7Z.js} +11 -11
- package/dist/{audio-transcription-runner-C2MeTPEc.js → audio-transcription-runner-DzJ9M4zn.js} +25 -25
- package/dist/{audio-transcription-runner-BPWmR980.js → audio-transcription-runner-LWApHLBl.js} +12 -12
- package/dist/{auth-Bxe2cFXo.js → auth-D2zwtjEE.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +55 -55
- package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-journal/handler.js +55 -55
- package/dist/bundled/session-memory/handler.js +55 -55
- package/dist/{call-QP6Xkgk6.js → call-BjvHhPTp.js} +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chat-content-1PkEbyji.js → chat-content-C9lS70TS.js} +15 -15
- package/dist/{chat-content-BpQAsNXf.js → chat-content-CHw0gp7N.js} +17 -17
- package/dist/{chat-content-CUEBE5sP.js → chat-content-OjzGhCu9.js} +24 -24
- package/dist/{chrome-DZUpRqr5.js → chrome-D26iRuov.js} +6 -6
- package/dist/{plugin-sdk/chrome-CuqV33Tq.js → chrome-DwJAYQrd.js} +23 -23
- package/dist/{chrome-CrQJ7sJy.js → chrome-n-0LtZ5p.js} +6 -6
- package/dist/{chunk-BOyW8CWf.js → chunk-BO29WISL.js} +3 -3
- package/dist/{chunk-DxrJ3Gup.js → chunk-BY0qWMC0.js} +3 -3
- package/dist/{chunk-DYUW1MQP.js → chunk-C7MQgQ4g.js} +3 -3
- package/dist/{command-queue-CXz9DVsG.js → command-queue-B7ny6IpS.js} +1 -1
- package/dist/{command-queue-D1UQrdty.js → command-queue-CRSJ0P07.js} +1 -1
- package/dist/{command-queue-C-FGbDJz.js → command-queue-n-3dr-XL.js} +1 -1
- package/dist/{commands-registry-D9HZmIAd.js → commands-registry-CcEHn1XI.js} +2 -2
- package/dist/{commands-registry-CMmeEgz2.js → commands-registry-Dv-b9PiZ.js} +2 -2
- package/dist/{commands-registry-Bew0o0-N.js → commands-registry-Dx4q8Stu.js} +2 -2
- package/dist/{config-Bsj2p2wE.js → config-i54suDg0.js} +26 -26
- package/dist/config.js +3 -3
- package/dist/{credentials-AMTaKIti.js → credentials-BNtHxB_l.js} +1 -1
- package/dist/{credentials-CxCFIe6D.js → credentials-DQ7lFgET.js} +1 -1
- package/dist/{credentials-CQxVmyVQ.js → credentials-Fr_P7kXi.js} +1 -1
- package/dist/daemon-cli.js +12 -12
- package/dist/{deliver-DhTGNP5K.js → deliver-BRmy8mNE.js} +14 -14
- package/dist/{deliver-DyypynBz.js → deliver-BqbB01OT.js} +14 -14
- package/dist/{deliver-CIRdl5yq.js → deliver-CRQ5Q9MI.js} +15 -15
- package/dist/{diagnostic-C2R8JTrg.js → diagnostic-CtDjU2cL.js} +3 -3
- package/dist/{diagnostic-ZN_usXW9.js → diagnostic-DnoZn-KN.js} +3 -3
- package/dist/{diagnostic-Dd6LtH4a.js → diagnostic-VK1bXt80.js} +3 -3
- package/dist/{errors-D-W6b40A.js → errors-0RH1PUyI.js} +1 -1
- package/dist/{errors-CnHQSI9_.js → errors-DbYMrbC6.js} +1 -1
- package/dist/{plugin-sdk/errors-CLQ_1plf.js → errors-PebfxiNw.js} +1 -1
- package/dist/{fetch-BfxA2OXM.js → fetch-B_5TQsLI.js} +1 -1
- package/dist/{fetch-C9itXZkj.js → fetch-CucaLVum.js} +1 -1
- package/dist/{fetch-DAVlU8on.js → fetch-CvQ4rHkA.js} +7 -7
- package/dist/{fetch-CouuWqcW.js → fetch-DMx7kUDq.js} +1 -1
- package/dist/{fetch-CB56RYbf.js → fetch-IBrV5cpo.js} +7 -7
- package/dist/{fetch-guard-CijCZ_b-.js → fetch-guard-1wmQV-Tr.js} +2 -2
- package/dist/{fetch-guard-DKsHmX2W.js → fetch-guard-Bwaekd5B.js} +2 -2
- package/dist/{fetch-guard-DYg-drum.js → fetch-guard-Cpegp1jz.js} +2 -2
- package/dist/{fetch-BT2I7cbc.js → fetch-wRt70JUw.js} +7 -7
- package/dist/{frontmatter-C2il6iYY.js → frontmatter-7crf_wMo.js} +3 -3
- package/dist/{fs-safe-CE8lX7WJ.js → fs-safe-Bb8-IeGg.js} +3 -3
- package/dist/{fs-safe-BxszbGp8.js → fs-safe-g7C2VmjR.js} +25 -25
- package/dist/{fs-safe-BdoohhEQ.js → fs-safe-zTwRJV2P.js} +3 -3
- package/dist/{group-B8al5pPW.js → group-CJxrdnQi.js} +7 -7
- package/dist/{image-ops-BidmoZQ2.js → image-ops-BnBkL2cb.js} +1 -1
- package/dist/{plugin-sdk/image-ops-BBVBwRM0.js → image-ops-D9RolAaO.js} +12 -12
- package/dist/{image-ops-u0MGFcmO.js → image-ops-DONWlnn2.js} +1 -1
- package/dist/{ir-DXeLOldW.js → ir-BMz0_JTj.js} +8 -8
- package/dist/{ir-Bf5kMPAy.js → ir-qxGmbhX1.js} +5 -5
- package/dist/{ir-Dl3iTDmU.js → ir-rI6qQBSg.js} +5 -5
- package/dist/{json-files-GB7e9l0R.js → json-files-B1gYf6W9.js} +7 -7
- package/dist/{legacy-names-CRCLZarD.js → legacy-names-Bx5L8LWT.js} +1 -1
- package/dist/llm-slug-generator.js +55 -55
- package/dist/{manager-YDyRTQUV.js → manager-BuEOjzym.js} +14 -14
- package/dist/{manager-DXW24oV1.js → manager-DiZNgASh.js} +7 -7
- package/dist/{manager-Dszac2Ws.js → manager-IIVZBivo.js} +7 -7
- package/dist/{markdown-tables-DdEOvPAH.js → markdown-tables-BtpvPNub.js} +2 -2
- package/dist/{markdown-tables-tr_7Fmw-.js → markdown-tables-D8MSIea0.js} +2 -2
- package/dist/{markdown-tables-DIw8tw96.js → markdown-tables-Dv-Fn4ps.js} +2 -2
- package/dist/{model-selection-ZyZ8C9Sz.js → model-selection-CVZg4wf8.js} +9 -9
- package/dist/{models-config-BhUXT1hF.js → models-config-3lhn9o5Q.js} +7 -7
- package/dist/{models-config-DIom_9je.js → models-config-BIR5Jl6Y.js} +2 -2
- package/dist/{models-config-CQAh0oG4.js → models-config-D8yjYakk.js} +2 -2
- package/dist/{net-CgCDDLO-.js → net-Ih2dkbnA.js} +1 -1
- package/dist/{nudge-BCCAsfyx.js → nudge-AEmyX8R6.js} +7 -7
- package/dist/{nudge-C0QSQl-l.js → nudge-Df4BNfRM.js} +9 -9
- package/dist/{nudge-CbzF1JFW.js → nudge-OjthVWgf.js} +16 -16
- package/dist/{outbound-attachment-83kY4_pp.js → outbound-attachment-BaRQnyDU.js} +2 -2
- package/dist/{outbound-attachment-xWf54r8i.js → outbound-attachment-CmkxUxFF.js} +2 -2
- package/dist/{outbound-attachment-BfJ7wb_J.js → outbound-attachment-DJGxSTr2.js} +2 -2
- package/dist/{outbound-message-hooks-IolzEbMD.js → outbound-message-hooks-CWaDtoFU.js} +4 -4
- package/dist/{outbound-message-hooks-D02COH42.js → outbound-message-hooks-D6fdkHcA.js} +5 -5
- package/dist/{outbound-message-hooks-BQNruXlp.js → outbound-message-hooks-DuS8ZzCg.js} +4 -4
- package/dist/{path-alias-guards-DMuDQY7-.js → path-alias-guards-BR5wRjxa.js} +1 -1
- package/dist/{path-alias-guards-CpIKU1Cq.js → path-alias-guards-CGgM-kfP.js} +3 -3
- package/dist/{path-alias-guards-BO9B8Ujj.js → path-alias-guards-CIxtmZUH.js} +1 -1
- package/dist/{pi-embedded-AaZc-fd0.js → pi-embedded-f8k37-ji.js} +80 -80
- package/dist/{plugin-sdk/pi-embedded-utils-Bs8GJcVC.js → pi-embedded-utils-CFD8XCEm.js} +3 -3
- package/dist/{pi-embedded-utils-CwgRLftX.js → pi-embedded-utils-D6bb0L0C.js} +3 -3
- package/dist/{pi-embedded-utils-CxTJd3C4.js → pi-embedded-utils-avtPd7wj.js} +3 -3
- package/dist/{pi-model-discovery-mp9nTslh.js → pi-model-discovery-B0qOEKz1.js} +1 -1
- package/dist/{pi-model-discovery-CpPL43Dt.js → pi-model-discovery-CdFFtQGN.js} +1 -1
- package/dist/{pi-model-discovery-DwUyqoo1.js → pi-model-discovery-DtlKqZOH.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-B8qbKhhI.js → agent-scope-Be-jpj9v.js} +1 -1
- package/dist/plugin-sdk/agent-turn-execute-Be8Qh2Bw.js +61 -0
- package/dist/plugin-sdk/{agent-turn-execute-yXQn2zCY.js → agent-turn-execute-D86ZmA4-.js} +65 -65
- package/dist/plugin-sdk/{agent-turn-runner-B-poPtP_.js → agent-turn-runner-C05hxUR0.js} +7 -7
- package/dist/plugin-sdk/{agent-turn-runner-CFEsvBCd.js → agent-turn-runner-CxEH_oDh.js} +3 -3
- package/dist/plugin-sdk/{api-key-rotation-Do8uKcvN.js → api-key-rotation-BSOYQ4qc.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-jl39nKbi.js → api-key-rotation-ChAeDYxy.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BFDNHENv.js → audio-preflight-CV1BDhSi.js} +15 -15
- package/dist/plugin-sdk/{audio-preflight-CvBQezNa.js → audio-preflight-CV8hn0ML.js} +22 -22
- package/dist/plugin-sdk/{audio-transcription-runner-DqBfb4fD.js → audio-transcription-runner-B5P3Ikr5.js} +7 -7
- package/dist/plugin-sdk/{audio-transcription-runner-Bx34SZcC.js → audio-transcription-runner-BskrbhXT.js} +11 -11
- package/dist/plugin-sdk/{auth-profiles-B9f3QHek.js → auth-profiles-Bjh8-BxW.js} +3 -3
- package/dist/plugin-sdk/{chat-content-CpC6DI0a.js → chat-content-Dv48ezjN.js} +15 -15
- package/dist/{chrome-BQRvL5_6.js → plugin-sdk/chrome-Ccd0oIRL.js} +8 -8
- package/dist/plugin-sdk/{chrome-BuRzWRZC.js → chrome-Djee-ZQ4.js} +6 -6
- package/dist/plugin-sdk/{chunk-B6pu3-QT.js → chunk-Ds0DViTU.js} +1 -1
- package/dist/plugin-sdk/{chunk-B5DJ9OSy.js → chunk-OLisVrnA.js} +4 -4
- package/dist/plugin-sdk/{command-queue-DNzxLFLp.js → command-queue-DKwo5KR5.js} +2 -2
- package/dist/plugin-sdk/{commands-registry-DQlTlZwD.js → commands-registry-B1nDgloc.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-BLvUWjLN.js → commands-registry-CbFYKesr.js} +3 -3
- package/dist/plugin-sdk/{credentials-qipHomyX.js → credentials-A4Z3kXiD.js} +1 -1
- package/dist/plugin-sdk/{credentials-y9Sghbm7.js → credentials-BphVNHsl.js} +1 -1
- package/dist/plugin-sdk/{deliver-Qit0vLPJ.js → deliver-DHCz4Dtv.js} +11 -11
- package/dist/plugin-sdk/deliver-UCpJHA8E.js +34 -0
- package/dist/plugin-sdk/{deliver-Ce7dREwO.js → deliver-cnS8GuO-.js} +14 -14
- package/dist/plugin-sdk/{diagnostic-D3BaH5T-.js → diagnostic-CfzW0_dx.js} +5 -5
- package/dist/plugin-sdk/{diagnostic-session-state-Ca-WhNi6.js → diagnostic-session-state-B0P3KV3G.js} +1 -1
- package/dist/{errors-CN5_QuWi.js → plugin-sdk/errors-BrdJv9v4.js} +1 -1
- package/dist/plugin-sdk/{fetch-CuWyAHvW.js → fetch-9sAWAc_2.js} +2 -2
- package/dist/plugin-sdk/{fetch-DZ--lOzI.js → fetch-DeK1fKwA.js} +7 -7
- package/dist/plugin-sdk/{fetch-BwuajxFn.js → fetch-DgyyeBob.js} +1 -1
- package/dist/plugin-sdk/fetch-DznZfJ5x.js +67 -0
- package/dist/plugin-sdk/{fetch-guard-BX6jBxKE.js → fetch-guard-D1A1wf4z.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Ce-ucfQG.js → fetch-guard-DHFG0AUk.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-CMnlphkT.js → fs-safe-BKrwJmFe.js} +3 -3
- package/dist/{image-ops-D_DwGLwy.js → plugin-sdk/image-ops-CUdIP6Hb.js} +2 -2
- package/dist/plugin-sdk/{inbound-context-BoAwxQia.js → inbound-context-JGyGh_6z.js} +1 -1
- package/dist/plugin-sdk/{ir-D-C6OU_g.js → ir-CShw6HQ4.js} +2 -2
- package/dist/plugin-sdk/{ir-DnqOk2R4.js → ir-CiCv2-fU.js} +5 -5
- package/dist/plugin-sdk/{manager-DULQ8IMM.js → manager-C0hS53l8.js} +7 -7
- package/dist/plugin-sdk/manager-CCHSaXUr.js +14 -0
- package/dist/plugin-sdk/{manager-BUK83x9w.js → manager-b7rkl95-.js} +4 -4
- package/dist/plugin-sdk/{markdown-tables-esO0kIio.js → markdown-tables-BMmTOUny.js} +3 -3
- package/dist/plugin-sdk/{markdown-tables-xkafNP0w.js → markdown-tables-fifmBw3T.js} +1 -1
- package/dist/plugin-sdk/{model-auth-Dm_kGvag.js → model-auth-CNca-eBd.js} +1 -1
- package/dist/plugin-sdk/{models-config-BP6ahg1c.js → models-config-3uPMrOQa.js} +2 -2
- package/dist/plugin-sdk/{models-config-d973WFny.js → models-config-B6w8XG1d.js} +1 -1
- package/dist/plugin-sdk/{monitor-Bi5mp8ZL.js → monitor-BFvMt0jv.js} +86 -86
- package/dist/plugin-sdk/{nudge-D9yHrAg6.js → nudge-CwP_UxdK.js} +9 -9
- package/dist/plugin-sdk/{nudge-C31EKVuV.js → nudge-DHoaL0VV.js} +10 -10
- package/dist/plugin-sdk/{openai-compatible-video-CmBqUEsR.js → openai-compatible-video-Dpm_3S9N.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-BIKJ2xZq.js → outbound-attachment-BmJGXjpk.js} +2 -2
- package/dist/plugin-sdk/{outbound-attachment-PUi9Lfwh.js → outbound-attachment-CSNvxAi5.js} +1 -1
- package/dist/plugin-sdk/{outbound-message-hooks-YVH4V7MO.js → outbound-message-hooks-BX0MYkzu.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Dy5NeCrQ.js → path-alias-guards-C02bovRa.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-z5kapszH.js → pi-embedded-helpers-C7sEml4L.js} +9 -9
- package/dist/plugin-sdk/{pi-embedded-utils-BXj-Gcqv.js → pi-embedded-utils-DPvEgOcW.js} +1 -1
- package/dist/{pi-embedded-utils-Bj7yEtOX.js → plugin-sdk/pi-embedded-utils-gdDvWLUF.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-DawOoDa-.js → pi-model-discovery-3ImxVoN0.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-GsWHJJdG.js → pi-model-discovery-Bf07_wdY.js} +2 -2
- package/dist/plugin-sdk/provider-dispatcher-HvZOc6pQ.js +61 -0
- package/dist/plugin-sdk/provider-media-understanding.js +12 -12
- package/dist/plugin-sdk/{proxy-env-BSt9Mpcu.js → proxy-env-CfbHPZsA.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-C25z96Gn.js → pw-ai-Beqk71S6.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-BsG21ZK4.js → pw-ai-DXxR9klb.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-B5fNIvSH.js → qmd-manager-C5StGWpa.js} +2 -2
- package/dist/plugin-sdk/{qmd-manager-CjRF-Or3.js → qmd-manager-D4W-fPSL.js} +8 -8
- package/dist/plugin-sdk/{qmd-scope-PjThGixm.js → qmd-scope-DaJOhdHL.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-YCr61JiI.js → query-expansion-CapDjXqr.js} +2 -2
- package/dist/plugin-sdk/{query-expansion-aeabmOoB.js → query-expansion-DTz7qRPP.js} +1 -1
- package/dist/plugin-sdk/{recorder-D11UEswC.js → recorder-DhKye4nA.js} +2 -2
- package/dist/plugin-sdk/{recorder-4g6Ys7WM.js → recorder-Vqz423Ad.js} +1 -1
- package/dist/{redact-D6Fnz9xQ.js → plugin-sdk/redact-DOs6fXcc.js} +1 -1
- package/dist/plugin-sdk/{registry-Blc7Ur1p.js → registry-ChehZpUt.js} +7 -7
- package/dist/plugin-sdk/{replies-BGF9ZYhP.js → replies-B3lla7iL.js} +4 -4
- package/dist/plugin-sdk/replies-n45TjLUD.js +25 -0
- package/dist/plugin-sdk/{replies-Ds6Gs9O1.js → replies-neHBbNGC.js} +5 -5
- package/dist/plugin-sdk/{reply-directives-CQkgAJUi.js → reply-directives-DA9871hC.js} +2 -2
- package/dist/plugin-sdk/{reply-directives-1f84jGQR.js → reply-directives-DJLXXoHQ.js} +1 -1
- package/dist/plugin-sdk/{reply-prefix-DXcqNnob.js → reply-prefix-BAlYiGmw.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-CEsUM5vo.js → resolve-route-Dl4Ce3AZ.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-uv0U8tYS.js → resolve-route-Dwcy4JTh.js} +4 -4
- package/dist/plugin-sdk/runs-Bt2gm5Xp.js +27 -0
- package/dist/plugin-sdk/{runs-BcONJGaf.js → runs-Ck82_Wm4.js} +9 -9
- package/dist/plugin-sdk/{runs-S66fmAnC.js → runs-CqxFUuhe.js} +5 -5
- package/dist/plugin-sdk/{send-OGWsKnuO.js → send-1C-UfqZI.js} +6 -6
- package/dist/plugin-sdk/{send-BWmu8FzD.js → send-8EsC7X_g.js} +6 -6
- package/dist/plugin-sdk/{send-i0O-CKxf.js → send-BYSZ2uje.js} +5 -5
- package/dist/plugin-sdk/send-CH2Mx-nc.js +21 -0
- package/dist/plugin-sdk/{send-q6CWajeW.js → send-CH99jRUS.js} +6 -6
- package/dist/plugin-sdk/{send-DEhSsv9Q.js → send-CY8x9hwE.js} +17 -17
- package/dist/plugin-sdk/send-CwmftnXc.js +23 -0
- package/dist/plugin-sdk/{send-BdHHzRJj.js → send-D0OAjXXT.js} +8 -8
- package/dist/plugin-sdk/send-D9CQkoPN.js +22 -0
- package/dist/plugin-sdk/{send-C-KL7_yP.js → send-DZ7mYxPL.js} +4 -4
- package/dist/plugin-sdk/{send-DROrgiQz.js → send-DhWniZ-V.js} +7 -7
- package/dist/plugin-sdk/{send-B0P5TLxU.js → send-ilRdM1HR.js} +8 -8
- package/dist/plugin-sdk/{session-context-CoIaRMhC.js → session-context-thuPOPkM.js} +4 -4
- package/dist/plugin-sdk/{session-meta-8qAu69tz.js → session-meta-BwYRhW4t.js} +1 -1
- package/dist/plugin-sdk/{session-meta-BUQosPKS.js → session-meta-ByvJn7Kl.js} +2 -2
- package/dist/plugin-sdk/{sessions-D9E4cWJg.js → sessions-CgDj1ZTy.js} +1 -1
- package/dist/plugin-sdk/{sessions-tKTWoGEX.js → sessions-DtBcB_m8.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-P3hLZCNa.js → skill-commands-Be5cYRNH.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-ID_uyMtr.js → skill-commands-CsHUFvTh.js} +5 -5
- package/dist/plugin-sdk/{skills-OofoxuSf.js → skills-BOWPxpRV.js} +1 -1
- package/dist/plugin-sdk/{skills-DzwqSw_l.js → skills-CvksRREn.js} +6 -6
- package/dist/plugin-sdk/{ssrf--z6niPq1.js → ssrf-CE6JboaJ.js} +1 -1
- package/dist/plugin-sdk/{store-8qnSslho.js → store-DgWeR64N.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-cUon6JW5.js +61 -0
- package/dist/plugin-sdk/{subsystem-DN6NBvi2.js → subsystem-D5N_K3VU.js} +4 -4
- package/dist/plugin-sdk/{tables-DLhtAl8Z.js → tables-BJrnW7Ji.js} +1 -1
- package/dist/plugin-sdk/{tables-BSg1_7xM.js → tables-ChcsUP-T.js} +1 -1
- package/dist/plugin-sdk/testing.js +53 -53
- package/dist/plugin-sdk/{tokens-DapRK87O.js → tokens-mqKTCfsk.js} +1 -1
- package/dist/{tool-loop-detection-nxXR6ZGf.js → plugin-sdk/tool-loop-detection-BemFvI2m.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-owC8f6ch.js → user-run-recording-ByPrMDAH.js} +3 -3
- package/dist/plugin-sdk/{user-run-recording-CA6k4GdI.js → user-run-recording-DOCUtYpE.js} +1 -1
- package/dist/plugin-sdk/{ws-PvXfVPuc.js → ws-BBwNh59J.js} +1 -1
- package/dist/plugin-sdk/{ws-OLAqwyxu.js → ws-DA5Ex9cq.js} +1 -1
- package/dist/{ports-BL2i8h5u.js → ports-Cm3dMy9r.js} +3 -3
- package/dist/{progress--ozQz5Eg.js → progress-B8VpRELC.js} +4 -4
- package/dist/{proxy-env-DdpqzP-l.js → proxy-env-B7QBeq1s.js} +1 -1
- package/dist/{proxy-env-D7bHQg8b.js → proxy-env-BHjp8Syz.js} +1 -1
- package/dist/{proxy-env-CJeQ_evL.js → proxy-env-CaYp3Tmy.js} +1 -1
- package/dist/{pw-ai-BkhhNN3w.js → pw-ai-B5inhxoy.js} +13 -13
- package/dist/{pw-ai-B2SByX7w.js → pw-ai-B8ja4Dql.js} +12 -12
- package/dist/{pw-ai-DEiZs8aM.js → pw-ai-BvZ8Bogr.js} +11 -11
- package/dist/{qmd-manager-Dp4uo_za.js → qmd-manager-CGW_u9NW.js} +10 -10
- package/dist/{qmd-manager-Cgmyvv9V.js → qmd-manager-Dbmi1ZgW.js} +8 -8
- package/dist/{qmd-manager-DKw1Rbr0.js → qmd-manager-ZTV3aWYR.js} +23 -23
- package/dist/{qmd-scope-CkSqCF4T.js → qmd-scope-8Jq9_xab.js} +1 -1
- package/dist/{qmd-scope-36e3ZqA5.js → qmd-scope-CYZoWcur.js} +1 -1
- package/dist/{qmd-scope-clNK4f03.js → qmd-scope-DjzSVgvF.js} +1 -1
- package/dist/{query-expansion-Bo6Nq4_Q.js → query-expansion-CEaQOg6W.js} +11 -11
- package/dist/{query-expansion-Dugjb4l7.js → query-expansion-CXDsQCKO.js} +2 -2
- package/dist/{query-expansion-DjdgqBNX.js → query-expansion-CYZYszMN.js} +2 -2
- package/dist/{recorder-N1dK-Cvg.js → recorder-BSty19u1.js} +2 -2
- package/dist/{recorder-CkRgWa0U.js → recorder-RGNqBtlw.js} +2 -2
- package/dist/{recorder-kj3bHJ67.js → recorder-jhTAww3T.js} +2 -2
- package/dist/{plugin-sdk/redact-DftAY2KL.js → redact-CoYHSFJI.js} +1 -1
- package/dist/{redact-BkE4uRXu.js → redact-Cp-v7ZNA.js} +1 -1
- package/dist/{redact-CUgFzobf.js → redact-Iu0CqZm1.js} +1 -1
- package/dist/{replies-Do4lDlRa.js → replies-CInXOOPX.js} +5 -5
- package/dist/{replies-j8824QFZ.js → replies-CurRxuDE.js} +5 -5
- package/dist/{replies-CuYbIr-y.js → replies-D9pr6ACc.js} +5 -5
- package/dist/{reply-directives-B3zz5cW7.js → reply-directives-BCjSa0AB.js} +2 -2
- package/dist/{reply-directives-C170Yb4-.js → reply-directives-DD05s-wb.js} +2 -2
- package/dist/{reply-directives-RLa2vaZi.js → reply-directives-ZtVs-j3A.js} +2 -2
- package/dist/{reply-prefix-BNVgeu7r.js → reply-prefix-B1C43_pb.js} +1 -1
- package/dist/{reply-prefix-DRy_GYH6.js → reply-prefix-Bc9Xxgh0.js} +1 -1
- package/dist/{reply-prefix-iNDFY95J.js → reply-prefix-CEDQ-mg9.js} +1 -1
- package/dist/{resolve-route-Dr7paibh.js → resolve-route-By5i3M-1.js} +3 -3
- package/dist/{resolve-route-Dw8kJVCQ.js → resolve-route-DYxy9AQV.js} +4 -4
- package/dist/{resolve-route-Cb-uluB3.js → resolve-route-DtRFnaEz.js} +3 -3
- package/dist/{runs-CTVu5e1l.js → runs-C5hqPjUn.js} +8 -8
- package/dist/{runs-C1VChB2N.js → runs-DTEVO_j3.js} +8 -8
- package/dist/{runs-Bz53XfRR.js → runs-WvxDbwXT.js} +8 -8
- package/dist/{send-C7Jir5X_.js → send-B8fG3QOF.js} +8 -8
- package/dist/{send-CrmrT9y3.js → send-BOjkedpl.js} +8 -8
- package/dist/{send-BUKHaBbX.js → send-BQtUtg0b.js} +8 -8
- package/dist/{send-C3NzAXnk.js → send-C76HubTD.js} +13 -13
- package/dist/{send-DN3d2hA9.js → send-CA5WfuIz.js} +6 -6
- package/dist/{send-CylIcBwW.js → send-CGdN-VPo.js} +7 -7
- package/dist/{send-BhF5ENhk.js → send-ChpeGx3e.js} +7 -7
- package/dist/{send-7QxBGDb6.js → send-DVAxl2sg.js} +8 -8
- package/dist/{send-CBKd1Tje.js → send-DWQN6n7O.js} +6 -6
- package/dist/{send-D6hE7Mbp.js → send-DjeU0NLm.js} +8 -8
- package/dist/{send-BrqnAR-x.js → send-LeMti0BS.js} +7 -7
- package/dist/{send-vkpb-Xkl.js → send-eXn1pSE6.js} +6 -6
- package/dist/{session-meta-CMeplFTy.js → session-meta-Btfsf4fe.js} +1 -1
- package/dist/{session-meta-DfqjhZ-q.js → session-meta-CbZBnut5.js} +1 -1
- package/dist/{session-meta-Cn_caqpV.js → session-meta-CodKE1pi.js} +1 -1
- package/dist/{sessions-DUqqSw4H.js → sessions-BrQFhhqN.js} +4 -4
- package/dist/{sessions-O7vI51ov.js → sessions-CFd8Ydiq.js} +4 -4
- package/dist/{sessions-Bg_OshuE.js → sessions-Cdx3HjRT.js} +4 -4
- package/dist/{skill-commands-14jegpcz.js → skill-commands-CNf71PIK.js} +4 -4
- package/dist/{skill-commands-CI1R5rmK.js → skill-commands-Clk1OxDK.js} +5 -5
- package/dist/{skill-commands-vLTDfdbS.js → skill-commands-VUGivt1_.js} +4 -4
- package/dist/{skills-DMHiOYO8.js → skills--Ui7bzMr.js} +4 -4
- package/dist/{skills-50IjplnQ.js → skills-D6DRAp_h.js} +6 -6
- package/dist/{skills-B-qk6VX5.js → skills-DrMz2n4d.js} +6 -6
- package/dist/{store-B5IVvyyw.js → store-BUy1ZbHu.js} +2 -2
- package/dist/{store-CyiSEypa.js → store-BkMCVm0M.js} +7 -7
- package/dist/{store-BBWgOw4t.js → store-DRaaTy6K.js} +2 -2
- package/dist/{subsystem-BCxHEOcF.js → subsystem-C30tnacl.js} +7 -7
- package/dist/{subsystem-BntNuBAj.js → subsystem-DY5Ww-lX.js} +4 -4
- package/dist/{subsystem-BOg9wqSC.js → subsystem-DoQFckDJ.js} +4 -4
- package/dist/{tables-BJM05Vww.js → tables-CV9YznLE.js} +1 -1
- package/dist/{tables-g6ObbHei.js → tables-CXnnw-yu.js} +1 -1
- package/dist/{tables-DlB8ZdGF.js → tables-DanZpP0m.js} +1 -1
- package/dist/{tokens-C-eSUgYi.js → tokens-BSTxLFq9.js} +1 -1
- package/dist/{tokens-Q7TMdIpT.js → tokens-C8E7C2l5.js} +1 -1
- package/dist/{tokens-BkeT4Aj7.js → tokens-DQ-CYBoK.js} +1 -1
- package/dist/{plugin-sdk/tool-loop-detection-c4qrG169.js → tool-loop-detection-4AIUOil2.js} +1 -1
- package/dist/{tool-loop-detection-CBkH6hsK.js → tool-loop-detection-B2ogHpfl.js} +1 -1
- package/dist/{tool-loop-detection-CurLYMEW.js → tool-loop-detection-CAaJBVkR.js} +1 -1
- package/dist/{user-run-recording-BpHCYVUd.js → user-run-recording-BbEaV78i.js} +2 -2
- package/dist/{user-run-recording-UT7JPaKB.js → user-run-recording-CG3WboP4.js} +2 -2
- package/dist/{user-run-recording-CV8Lr06M.js → user-run-recording-DYSEO3CI.js} +2 -2
- package/dist/{workspace-DldCsJtc.js → workspace-tcQXjttl.js} +1 -1
- package/dist/{ws-JG4Z9bZK.js → ws-CDG99mFW.js} +1 -1
- package/dist/{ws-Bmal4jqa.js → ws-DWkHsThw.js} +1 -1
- package/extensions/a2a/package.json +1 -1
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/identity-oidc/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/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/agent-turn-execute-BtUQWiQP.js +0 -61
- package/dist/plugin-sdk/deliver-CD4ei5Br.js +0 -34
- package/dist/plugin-sdk/fetch-C5VHDsI9.js +0 -67
- package/dist/plugin-sdk/manager-QkzJVwqn.js +0 -14
- package/dist/plugin-sdk/provider-dispatcher-DCgZNlgL.js +0 -61
- package/dist/plugin-sdk/replies-BbTr5z6G.js +0 -25
- package/dist/plugin-sdk/runs-CtRu02zx.js +0 -27
- package/dist/plugin-sdk/send-D8GPq4yJ.js +0 -23
- package/dist/plugin-sdk/send-DI5IHS6G.js +0 -21
- package/dist/plugin-sdk/send-DYYxf2PO.js +0 -22
- package/dist/plugin-sdk/subagent-registry-B-w_tcYs.js +0 -61
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ct as isPathInside, mt as resolvePreferredOpenClawTmpDir, p as CONFIG_DIR, st as isNotFoundPathError, t as createSubsystemLogger } from "./subsystem-C30tnacl.js";
|
|
2
|
+
import { n as loadConfig } from "./config-i54suDg0.js";
|
|
3
|
+
import { n as isLoopbackAddress, r as isLoopbackHost, t as rawDataToString } from "./ws-CDG99mFW.js";
|
|
4
|
+
import { a as isErrno } from "./errors-DbYMrbC6.js";
|
|
5
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-g7C2VmjR.js";
|
|
6
|
+
import { c as resolvePinnedHostnameWithPolicy, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-B7QBeq1s.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
|
-
import path from "node:path";
|
|
9
8
|
import os from "node:os";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import path from "node:path";
|
|
10
|
+
import fsp from "node:fs/promises";
|
|
12
11
|
import { createHmac } from "node:crypto";
|
|
12
|
+
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import net from "node:net";
|
|
14
14
|
import http, { createServer } from "node:http";
|
|
15
15
|
import https from "node:https";
|
|
16
|
-
import WebSocket
|
|
16
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
17
17
|
|
|
18
18
|
//#region src/browser/constants.ts
|
|
19
19
|
const DEFAULT_OPENCLAW_BROWSER_ENABLED = true;
|
|
@@ -66,28 +66,28 @@ function invalidPath(scopeLabel) {
|
|
|
66
66
|
}
|
|
67
67
|
async function resolveRealPathIfExists(targetPath) {
|
|
68
68
|
try {
|
|
69
|
-
return await
|
|
69
|
+
return await fsp.realpath(targetPath);
|
|
70
70
|
} catch {
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
async function resolveTrustedRootRealPath(rootDir) {
|
|
75
75
|
try {
|
|
76
|
-
const rootLstat = await
|
|
76
|
+
const rootLstat = await fsp.lstat(rootDir);
|
|
77
77
|
if (!rootLstat.isDirectory() || rootLstat.isSymbolicLink()) return;
|
|
78
|
-
return await
|
|
78
|
+
return await fsp.realpath(rootDir);
|
|
79
79
|
} catch {
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
async function validateCanonicalPathWithinRoot(params) {
|
|
84
84
|
try {
|
|
85
|
-
const candidateLstat = await
|
|
85
|
+
const candidateLstat = await fsp.lstat(params.candidatePath);
|
|
86
86
|
if (candidateLstat.isSymbolicLink()) return "invalid";
|
|
87
87
|
if (params.expect === "directory" && !candidateLstat.isDirectory()) return "invalid";
|
|
88
88
|
if (params.expect === "file" && !candidateLstat.isFile()) return "invalid";
|
|
89
89
|
if (params.expect === "file" && candidateLstat.nlink > 1) return "invalid";
|
|
90
|
-
const candidateRealPath = await
|
|
90
|
+
const candidateRealPath = await fsp.realpath(params.candidatePath);
|
|
91
91
|
return isPathInside(params.rootRealPath, candidateRealPath) ? "ok" : "invalid";
|
|
92
92
|
} catch (err) {
|
|
93
93
|
return isNotFoundPathError(err) ? "not-found" : "invalid";
|
|
@@ -165,7 +165,7 @@ async function resolveCheckedPathsWithinRoot(params) {
|
|
|
165
165
|
};
|
|
166
166
|
if (!rootRealPath || !raw || !path.isAbsolute(raw)) return lexicalPathResult;
|
|
167
167
|
try {
|
|
168
|
-
const resolvedExistingPath = await
|
|
168
|
+
const resolvedExistingPath = await fsp.realpath(raw);
|
|
169
169
|
const relativePath = path.relative(rootRealPath, resolvedExistingPath);
|
|
170
170
|
if (!isInRoot(relativePath)) return lexicalPathResult;
|
|
171
171
|
return {
|
|
@@ -501,7 +501,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
501
501
|
let extensionWs = null;
|
|
502
502
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
503
503
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
504
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
504
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
505
505
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
506
506
|
let extensionDisconnectCleanupTimer = null;
|
|
507
507
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -553,7 +553,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
553
553
|
let nextExtensionId = 1;
|
|
554
554
|
const sendToExtension = async (payload) => {
|
|
555
555
|
const ws = extensionWs;
|
|
556
|
-
if (!ws || ws.readyState !== WebSocket
|
|
556
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
557
557
|
ws.send(JSON.stringify(payload));
|
|
558
558
|
return await new Promise((resolve, reject) => {
|
|
559
559
|
const timer = setTimeout(() => {
|
|
@@ -570,12 +570,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
570
570
|
const broadcastToCdpClients = (evt) => {
|
|
571
571
|
const msg = JSON.stringify(evt);
|
|
572
572
|
for (const ws of cdpClients) {
|
|
573
|
-
if (ws.readyState !== WebSocket
|
|
573
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
574
574
|
ws.send(msg);
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
577
|
const sendResponseToCdp = (ws, res) => {
|
|
578
|
-
if (ws.readyState !== WebSocket
|
|
578
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
579
579
|
ws.send(JSON.stringify(res));
|
|
580
580
|
};
|
|
581
581
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -829,7 +829,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
829
829
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
832
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
833
833
|
try {
|
|
834
834
|
extensionWs.terminate();
|
|
835
835
|
} catch {}
|
|
@@ -862,7 +862,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
862
862
|
clearExtensionDisconnectCleanupTimer();
|
|
863
863
|
flushExtensionReconnectWaiters(true);
|
|
864
864
|
const ping = setInterval(() => {
|
|
865
|
-
if (ws.readyState !== WebSocket
|
|
865
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
866
866
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
867
867
|
}, 5e3);
|
|
868
868
|
ws.on("message", (data) => {
|
|
@@ -1218,7 +1218,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
1218
1218
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
1219
1219
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
1220
1220
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
1221
|
-
return new WebSocket
|
|
1221
|
+
return new WebSocket(wsUrl, {
|
|
1222
1222
|
handshakeTimeout: handshakeTimeoutMs,
|
|
1223
1223
|
...Object.keys(headers).length ? { headers } : {},
|
|
1224
1224
|
...agent ? { agent } : {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { H as loadConfig } from "./model-selection-
|
|
3
|
-
import { n as isLoopbackAddress, r as isLoopbackHost, t as rawDataToString } from "./ws-
|
|
4
|
-
import { a as isErrno } from "./errors-
|
|
5
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
6
|
-
import { c as resolvePinnedHostnameWithPolicy, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { H as isPathInside, V as isNotFoundPathError, Z as CONFIG_DIR, mt as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-DoQFckDJ.js";
|
|
2
|
+
import { H as loadConfig } from "./model-selection-CVZg4wf8.js";
|
|
3
|
+
import { n as isLoopbackAddress, r as isLoopbackHost, t as rawDataToString } from "./ws-DWkHsThw.js";
|
|
4
|
+
import { a as isErrno } from "./errors-PebfxiNw.js";
|
|
5
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-zTwRJV2P.js";
|
|
6
|
+
import { c as resolvePinnedHostnameWithPolicy, s as isPrivateNetworkAllowedByPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CaYp3Tmy.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-C30tnacl.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-CjGF4kza.js";
|
|
4
|
-
import { hr as INTERNAL_MESSAGE_CHANNEL, lr as resolveAccountEntry } from "./config-
|
|
5
|
-
import { ut as normalizeAccountId } from "./agent-scope-
|
|
4
|
+
import { hr as INTERNAL_MESSAGE_CHANNEL, lr as resolveAccountEntry } from "./config-i54suDg0.js";
|
|
5
|
+
import { ut as normalizeAccountId } from "./agent-scope-CmMflllE.js";
|
|
6
6
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-RrqZTgHp.js";
|
|
7
7
|
|
|
8
8
|
//#region src/auto-reply/chunk.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { in as resolveAccountEntry, r as INTERNAL_MESSAGE_CHANNEL } from "./group-
|
|
3
|
-
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { in as resolveAccountEntry, r as INTERNAL_MESSAGE_CHANNEL } from "./group-CJxrdnQi.js";
|
|
3
|
+
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-DY5Ww-lX.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { rt as normalizeAccountId } from "./agent-scope-
|
|
5
|
+
import { rt as normalizeAccountId } from "./agent-scope-CCWcV-mm.js";
|
|
6
6
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-CCv1Na2B.js";
|
|
7
7
|
|
|
8
8
|
//#region src/auto-reply/chunk.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { i as chunkTextByBreakResolver, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-DoQFckDJ.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { K as normalizeAccountId } from "./workspace-
|
|
5
|
-
import { Br as resolveAccountEntry, Kr as INTERNAL_MESSAGE_CHANNEL } from "./model-selection-
|
|
4
|
+
import { K as normalizeAccountId } from "./workspace-tcQXjttl.js";
|
|
5
|
+
import { Br as resolveAccountEntry, Kr as INTERNAL_MESSAGE_CHANNEL } from "./model-selection-CVZg4wf8.js";
|
|
6
6
|
import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-qxypc3zL.js";
|
|
7
7
|
|
|
8
8
|
//#region src/auto-reply/chunk.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as CommandLane } from "./lanes-DWpYhh13.js";
|
|
3
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
3
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-VK1bXt80.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
6
6
|
var command_queue_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as CommandLane } from "./lanes-CF2oNM6v.js";
|
|
3
|
-
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-
|
|
3
|
+
import { a as logLaneTaskCompleted, i as logLaneEnqueue, r as logLaneDequeue, t as diag } from "./diagnostic-CtDjU2cL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/process/command-queue.ts
|
|
6
6
|
var command_queue_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -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-DnoZn-KN.js";
|
|
3
3
|
import { t as CommandLane } from "./lanes-DBBnME5O.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 { _ as escapeRegExp } from "./subsystem-
|
|
2
|
+
import { _ as escapeRegExp } from "./subsystem-C30tnacl.js";
|
|
3
3
|
import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-CjGF4kza.js";
|
|
4
|
-
import { Ai as resolveConfiguredModelRef, Ba as DEFAULT_MODEL, In as normalizeChannelId, Mn as listChannelDocks, Va as DEFAULT_PROVIDER, bt as getActivePluginRegistry } from "./config-
|
|
4
|
+
import { Ai as resolveConfiguredModelRef, Ba as DEFAULT_MODEL, In as normalizeChannelId, Mn as listChannelDocks, Va as DEFAULT_PROVIDER, bt as getActivePluginRegistry } from "./config-i54suDg0.js";
|
|
5
5
|
import { r as listThinkingLevels } from "./thinking-DCaYRMt5.js";
|
|
6
6
|
|
|
7
7
|
//#region src/config/commands.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-DoQFckDJ.js";
|
|
3
3
|
import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { $t as getActivePluginRegistry, Aa as DEFAULT_MODEL, ja as DEFAULT_PROVIDER, lr as listChannelDocks, pr as normalizeChannelId, u as resolveConfiguredModelRef } from "./model-selection-
|
|
4
|
+
import { $t as getActivePluginRegistry, Aa as DEFAULT_MODEL, ja as DEFAULT_PROVIDER, lr as listChannelDocks, pr as normalizeChannelId, u as resolveConfiguredModelRef } from "./model-selection-CVZg4wf8.js";
|
|
5
5
|
import { r as listThinkingLevels } from "./thinking-DCaYRMt5.js";
|
|
6
6
|
|
|
7
7
|
//#region src/config/commands.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Bn as resolveConfiguredModelRef, Lt as normalizeChannelId, Nt as listChannelDocks, aa as DEFAULT_PROVIDER, ia as DEFAULT_MODEL, w as getActivePluginRegistry } from "./group-
|
|
3
|
-
import { m as escapeRegExp } from "./subsystem-
|
|
2
|
+
import { Bn as resolveConfiguredModelRef, Lt as normalizeChannelId, Nt as listChannelDocks, aa as DEFAULT_PROVIDER, ia as DEFAULT_MODEL, w as getActivePluginRegistry } from "./group-CJxrdnQi.js";
|
|
3
|
+
import { m as escapeRegExp } from "./subsystem-DY5Ww-lX.js";
|
|
4
4
|
import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
|
|
5
5
|
import { r as listThinkingLevels } from "./thinking-DjGGQMbY.js";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { _ as resolveStateDir, b as resolveRequiredHomeDir, c as resolveDefaultConfigCandidates, g as resolveOAuthPath, h as resolveOAuthDir, n as DEFAULT_GATEWAY_PORT, o as resolveConfigPath, v as expandHomePrefix } from "./paths-BZCDWJ55.js";
|
|
3
|
-
import { B as getChildLogger, C as resolveUserPath, D as sleep, J as INCLUDE_KEY, K as normalizeConfigPaths, M as logVerbose, Q as isPathInside$1, S as resolveConfigDir, W as createFileLogWriter, X as resolveConfigIncludes, Y as readConfigIncludeFileWithGuards, Z as isBlockedObjectKey, _ as escapeRegExp, b as normalizeE164, ct as isPathInside$2, d as containsEnvVarReference, dt as applyConfigEnvVars, f as resolveConfigEnvVars, n as stripAnsi, pt as sanitizeHostExecEnv, q as ConfigIncludeError, t as createSubsystemLogger, tt as openBoundaryFileSync, u as MissingEnvVarError, y as isRecord$3 } from "./subsystem-
|
|
3
|
+
import { B as getChildLogger, C as resolveUserPath, D as sleep, J as INCLUDE_KEY, K as normalizeConfigPaths, M as logVerbose, Q as isPathInside$1, S as resolveConfigDir, W as createFileLogWriter, X as resolveConfigIncludes, Y as readConfigIncludeFileWithGuards, Z as isBlockedObjectKey, _ as escapeRegExp, b as normalizeE164, ct as isPathInside$2, d as containsEnvVarReference, dt as applyConfigEnvVars, f as resolveConfigEnvVars, n as stripAnsi, pt as sanitizeHostExecEnv, q as ConfigIncludeError, t as createSubsystemLogger, tt as openBoundaryFileSync, u as MissingEnvVarError, y as isRecord$3 } from "./subsystem-C30tnacl.js";
|
|
4
4
|
import { n as resolveProcessScopedMap, t as isPlainObject$2 } from "./plain-object-CjGF4kza.js";
|
|
5
|
-
import { $ as normalizeAgentId, B as toAgentModelListLike, St as stripAgentSessionKeyPrefix, V as DEFAULT_AGENT_ID, W as RAW_PEER_KEY_PREFIX, X as expandIdentityLinksToMatchKeys, bt as parseAgentSessionKey, d as resolveAgentWorkspaceDir, dt as normalizeOptionalAccountId, f as resolveDefaultAgentId, j as runExec, l as resolveAgentEffectiveModelPrimary, lt as DEFAULT_ACCOUNT_ID, o as listAgentIds, s as resolveAgentConfig, ut as normalizeAccountId$1, z as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
5
|
+
import { $ as normalizeAgentId, B as toAgentModelListLike, St as stripAgentSessionKeyPrefix, V as DEFAULT_AGENT_ID, W as RAW_PEER_KEY_PREFIX, X as expandIdentityLinksToMatchKeys, bt as parseAgentSessionKey, d as resolveAgentWorkspaceDir, dt as normalizeOptionalAccountId, f as resolveDefaultAgentId, j as runExec, l as resolveAgentEffectiveModelPrimary, lt as DEFAULT_ACCOUNT_ID, o as listAgentIds, s as resolveAgentConfig, ut as normalizeAccountId$1, z as resolveAgentModelPrimaryValue } from "./agent-scope-CmMflllE.js";
|
|
6
6
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-KU60WOFB.js";
|
|
7
7
|
import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-BkRfLUVO.js";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
@@ -11,7 +11,7 @@ import fs from "node:fs";
|
|
|
11
11
|
import os, { userInfo } from "node:os";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import JSON5 from "json5";
|
|
14
|
-
import
|
|
14
|
+
import fsp from "node:fs/promises";
|
|
15
15
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
16
16
|
import { execFileSync, spawn } from "node:child_process";
|
|
17
17
|
import { fileURLToPath } from "node:url";
|
|
@@ -1164,7 +1164,7 @@ function isCreatedAtStale(createdAt, staleMs) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
async function readLockPayload$1(lockPath) {
|
|
1166
1166
|
try {
|
|
1167
|
-
const raw = await
|
|
1167
|
+
const raw = await fsp.readFile(lockPath, "utf8");
|
|
1168
1168
|
const parsed = JSON.parse(raw);
|
|
1169
1169
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
|
|
1170
1170
|
const payload = {
|
|
@@ -1181,7 +1181,7 @@ async function readLockPayload$1(lockPath) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
async function chmodIfSupported(filePath, mode) {
|
|
1183
1183
|
try {
|
|
1184
|
-
await
|
|
1184
|
+
await fsp.chmod(filePath, mode);
|
|
1185
1185
|
} catch (err) {
|
|
1186
1186
|
if (process.platform === "win32") return;
|
|
1187
1187
|
throw err;
|
|
@@ -1190,15 +1190,15 @@ async function chmodIfSupported(filePath, mode) {
|
|
|
1190
1190
|
async function resolveNormalizedFilePath(filePath, options) {
|
|
1191
1191
|
const resolved = path.resolve(filePath);
|
|
1192
1192
|
const dir = path.dirname(resolved);
|
|
1193
|
-
if (options.directoryMode === void 0) await
|
|
1193
|
+
if (options.directoryMode === void 0) await fsp.mkdir(dir, { recursive: true });
|
|
1194
1194
|
else {
|
|
1195
|
-
await
|
|
1195
|
+
await fsp.mkdir(dir, {
|
|
1196
1196
|
recursive: true,
|
|
1197
1197
|
mode: options.directoryMode
|
|
1198
1198
|
});
|
|
1199
1199
|
await chmodIfSupported(dir, options.directoryMode);
|
|
1200
1200
|
}
|
|
1201
|
-
const realDir = await
|
|
1201
|
+
const realDir = await fsp.realpath(dir);
|
|
1202
1202
|
return path.join(realDir, path.basename(resolved));
|
|
1203
1203
|
}
|
|
1204
1204
|
async function isStaleLock(lockPath, staleMs) {
|
|
@@ -1213,7 +1213,7 @@ async function isStaleLock(lockPath, staleMs) {
|
|
|
1213
1213
|
return false;
|
|
1214
1214
|
}
|
|
1215
1215
|
try {
|
|
1216
|
-
const stat = await
|
|
1216
|
+
const stat = await fsp.stat(lockPath);
|
|
1217
1217
|
return Date.now() - stat.mtimeMs > staleMs;
|
|
1218
1218
|
} catch {
|
|
1219
1219
|
return true;
|
|
@@ -1237,7 +1237,7 @@ async function releaseHeldLock$1(normalizedFile) {
|
|
|
1237
1237
|
throw emitLockReleaseWarning("close", current.lockPath, err);
|
|
1238
1238
|
}
|
|
1239
1239
|
try {
|
|
1240
|
-
await
|
|
1240
|
+
await fsp.rm(current.lockPath, { force: true });
|
|
1241
1241
|
} catch (err) {
|
|
1242
1242
|
current.count = 1;
|
|
1243
1243
|
throw emitLockReleaseWarning("remove", current.lockPath, err);
|
|
@@ -1260,7 +1260,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
1260
1260
|
let attempt = 0;
|
|
1261
1261
|
let staleReclaims = 0;
|
|
1262
1262
|
while (attempt < attempts) try {
|
|
1263
|
-
const handle = await
|
|
1263
|
+
const handle = await fsp.open(lockPath, "wx");
|
|
1264
1264
|
try {
|
|
1265
1265
|
await handle.writeFile(JSON.stringify({
|
|
1266
1266
|
pid: process.pid,
|
|
@@ -1269,7 +1269,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
1269
1269
|
}, null, 2), "utf8");
|
|
1270
1270
|
} catch (writeErr) {
|
|
1271
1271
|
await handle.close().catch(() => void 0);
|
|
1272
|
-
await
|
|
1272
|
+
await fsp.rm(lockPath, { force: true }).catch(() => void 0);
|
|
1273
1273
|
throw writeErr;
|
|
1274
1274
|
}
|
|
1275
1275
|
HELD_LOCKS$1.set(normalizedFile, {
|
|
@@ -1285,7 +1285,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
1285
1285
|
} catch (err) {
|
|
1286
1286
|
if (err.code !== "EEXIST") throw err;
|
|
1287
1287
|
if (await isStaleLock(lockPath, options.stale)) {
|
|
1288
|
-
await
|
|
1288
|
+
await fsp.rm(lockPath, { force: true }).catch(() => void 0);
|
|
1289
1289
|
if (staleReclaims < attempts) {
|
|
1290
1290
|
staleReclaims += 1;
|
|
1291
1291
|
continue;
|
|
@@ -2128,7 +2128,7 @@ function formatWindowsAclSummary(summary) {
|
|
|
2128
2128
|
//#region src/security/audit-fs.ts
|
|
2129
2129
|
async function safeStat(targetPath) {
|
|
2130
2130
|
try {
|
|
2131
|
-
const lst = await
|
|
2131
|
+
const lst = await fsp.lstat(targetPath);
|
|
2132
2132
|
return {
|
|
2133
2133
|
ok: true,
|
|
2134
2134
|
isSymlink: lst.isSymbolicLink(),
|
|
@@ -2167,7 +2167,7 @@ async function inspectPathPermissions(targetPath, opts) {
|
|
|
2167
2167
|
let effectiveMode = st.mode;
|
|
2168
2168
|
let effectiveIsDir = st.isDir;
|
|
2169
2169
|
if (st.isSymlink) try {
|
|
2170
|
-
const target = await
|
|
2170
|
+
const target = await fsp.stat(targetPath);
|
|
2171
2171
|
effectiveMode = typeof target.mode === "number" ? target.mode : st.mode;
|
|
2172
2172
|
effectiveIsDir = target.isDirectory();
|
|
2173
2173
|
} catch {}
|
|
@@ -2449,7 +2449,7 @@ async function assertSecurePath(params) {
|
|
|
2449
2449
|
if (stat.isSymlink) {
|
|
2450
2450
|
if (!params.allowSymlinkPath) throw new Error(`${params.label} must not be a symlink: ${effectivePath}`);
|
|
2451
2451
|
try {
|
|
2452
|
-
effectivePath = await
|
|
2452
|
+
effectivePath = await fsp.realpath(effectivePath);
|
|
2453
2453
|
} catch {
|
|
2454
2454
|
throw new Error(`${params.label} symlink target is not readable: ${params.targetPath}`);
|
|
2455
2455
|
}
|
|
@@ -2497,7 +2497,7 @@ async function readFileProviderPayload(params) {
|
|
|
2497
2497
|
}, timeoutMs);
|
|
2498
2498
|
});
|
|
2499
2499
|
try {
|
|
2500
|
-
const payload = await Promise.race([
|
|
2500
|
+
const payload = await Promise.race([fsp.readFile(secureFilePath, { signal: abortController.signal }), timeoutPromise]);
|
|
2501
2501
|
if (payload.byteLength > maxBytes) throw new Error(`File provider "${params.providerName}" exceeded maxBytes (${maxBytes}).`);
|
|
2502
2502
|
const text = payload.toString("utf8");
|
|
2503
2503
|
if (params.providerConfig.mode === "singleValue") return text.replace(/\r?\n$/, "");
|
|
@@ -13348,7 +13348,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
13348
13348
|
await held.handle.close();
|
|
13349
13349
|
} catch {}
|
|
13350
13350
|
try {
|
|
13351
|
-
await
|
|
13351
|
+
await fsp.rm(held.lockPath, { force: true });
|
|
13352
13352
|
} catch {}
|
|
13353
13353
|
})();
|
|
13354
13354
|
try {
|
|
@@ -13427,7 +13427,7 @@ function registerCleanupHandlers() {
|
|
|
13427
13427
|
}
|
|
13428
13428
|
async function readLockPayload(lockPath) {
|
|
13429
13429
|
try {
|
|
13430
|
-
const raw = await
|
|
13430
|
+
const raw = await fsp.readFile(lockPath, "utf8");
|
|
13431
13431
|
const parsed = JSON.parse(raw);
|
|
13432
13432
|
const payload = {};
|
|
13433
13433
|
if (isValidLockNumber(parsed.pid) && parsed.pid > 0) payload.pid = parsed.pid;
|
|
@@ -13471,7 +13471,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
|
|
|
13471
13471
|
if (!details.stale) return false;
|
|
13472
13472
|
if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
|
|
13473
13473
|
try {
|
|
13474
|
-
const stat = await
|
|
13474
|
+
const stat = await fsp.stat(lockPath);
|
|
13475
13475
|
return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
|
|
13476
13476
|
} catch (error) {
|
|
13477
13477
|
return error?.code !== "ENOENT";
|
|
@@ -13489,10 +13489,10 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
13489
13489
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
13490
13490
|
const sessionFile = path.resolve(params.sessionFile);
|
|
13491
13491
|
const sessionDir = path.dirname(sessionFile);
|
|
13492
|
-
await
|
|
13492
|
+
await fsp.mkdir(sessionDir, { recursive: true });
|
|
13493
13493
|
let normalizedDir = sessionDir;
|
|
13494
13494
|
try {
|
|
13495
|
-
normalizedDir = await
|
|
13495
|
+
normalizedDir = await fsp.realpath(sessionDir);
|
|
13496
13496
|
} catch {}
|
|
13497
13497
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
13498
13498
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -13510,7 +13510,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
13510
13510
|
attempt += 1;
|
|
13511
13511
|
let handle = null;
|
|
13512
13512
|
try {
|
|
13513
|
-
handle = await
|
|
13513
|
+
handle = await fsp.open(lockPath, "wx");
|
|
13514
13514
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
13515
13515
|
const starttime = processIdentity.getProcessStartTime(process.pid);
|
|
13516
13516
|
const lockPayload = {
|
|
@@ -13536,7 +13536,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
13536
13536
|
await handle.close();
|
|
13537
13537
|
} catch {}
|
|
13538
13538
|
try {
|
|
13539
|
-
await
|
|
13539
|
+
await fsp.rm(lockPath, { force: true });
|
|
13540
13540
|
} catch {}
|
|
13541
13541
|
}
|
|
13542
13542
|
if (err.code !== "EEXIST") throw err;
|
|
@@ -13551,7 +13551,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
13551
13551
|
stale: true,
|
|
13552
13552
|
staleReasons: inspected.staleReasons.includes("orphan-self-pid") ? inspected.staleReasons : [...inspected.staleReasons, "orphan-self-pid"]
|
|
13553
13553
|
} : inspected, staleMs, nowMs)) {
|
|
13554
|
-
await
|
|
13554
|
+
await fsp.rm(lockPath, { force: true });
|
|
13555
13555
|
continue;
|
|
13556
13556
|
}
|
|
13557
13557
|
const delay = Math.min(1e3, 50 * attempt);
|
|
@@ -16282,7 +16282,7 @@ function createPluginRegistry(registryParams) {
|
|
|
16282
16282
|
configurable: true,
|
|
16283
16283
|
value: {
|
|
16284
16284
|
...registryParams.runtime.signals,
|
|
16285
|
-
nudge: async (input) => (await import("./nudge-
|
|
16285
|
+
nudge: async (input) => (await import("./nudge-OjthVWgf.js").then((n) => n.t)).requestAuthorizedNudge({
|
|
16286
16286
|
kind: "plugin",
|
|
16287
16287
|
pluginId: record.id
|
|
16288
16288
|
}, input)
|
package/dist/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as resolveStateDir, a as resolveCanonicalConfigPath, c as resolveDefaultConfigCandidates, d as resolveIsNixMode, f as resolveLegacyStateDir, g as resolveOAuthPath, h as resolveOAuthDir, i as isNixMode, l as resolveGatewayLockDir, m as resolveNewStateDir, n as DEFAULT_GATEWAY_PORT, o as resolveConfigPath, p as resolveLegacyStateDirs, r as STATE_DIR, s as resolveConfigPathCandidate, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-BZCDWJ55.js";
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import { $a as setRuntimeConfigSnapshot, Aa as assertSecretInputResolved, Fa as normalizeSecretInputString, Ia as parseEnvTemplateSecretRef, Ja as advanceRuntimeConfigSnapshot, La as resolveSecretInputRef, Ma as hasConfiguredSecretInput, Na as isSecretRef, O as MODEL_APIS, Pa as normalizeResolvedSecretInputString, Qa as getRuntimeConfigSourceSnapshot, Xa as clearRuntimeConfigSnapshot, Ya as clearConfigCache, Za as getRuntimeConfigSnapshot, _ as validateConfigObject, a as writeConfigFile, b as validateConfigObjectWithPlugins, c as getConfigOverrides, cr as parseToolsBySenderTypedKey, d as unsetConfigOverride, g as parseConfigJson5, i as readConfigFileSnapshotForWrite, ja as coerceSecretRef, ka as DEFAULT_SECRET_PROVIDER_ALIAS, l as resetConfigOverrides, n as loadConfig, o as createConfigIO, r as readConfigFileSnapshot, s as applyConfigOverrides, sr as TOOLS_BY_SENDER_KEY_TYPES, t as migrateLegacyConfig, u as setConfigOverride, v as validateConfigObjectRaw, y as validateConfigObjectRawWithPlugins, yi as resolveConfigSnapshotHash } from "./config-
|
|
4
|
-
import "./agent-scope-
|
|
2
|
+
import "./subsystem-C30tnacl.js";
|
|
3
|
+
import { $a as setRuntimeConfigSnapshot, Aa as assertSecretInputResolved, Fa as normalizeSecretInputString, Ia as parseEnvTemplateSecretRef, Ja as advanceRuntimeConfigSnapshot, La as resolveSecretInputRef, Ma as hasConfiguredSecretInput, Na as isSecretRef, O as MODEL_APIS, Pa as normalizeResolvedSecretInputString, Qa as getRuntimeConfigSourceSnapshot, Xa as clearRuntimeConfigSnapshot, Ya as clearConfigCache, Za as getRuntimeConfigSnapshot, _ as validateConfigObject, a as writeConfigFile, b as validateConfigObjectWithPlugins, c as getConfigOverrides, cr as parseToolsBySenderTypedKey, d as unsetConfigOverride, g as parseConfigJson5, i as readConfigFileSnapshotForWrite, ja as coerceSecretRef, ka as DEFAULT_SECRET_PROVIDER_ALIAS, l as resetConfigOverrides, n as loadConfig, o as createConfigIO, r as readConfigFileSnapshot, s as applyConfigOverrides, sr as TOOLS_BY_SENDER_KEY_TYPES, t as migrateLegacyConfig, u as setConfigOverride, v as validateConfigObjectRaw, y as validateConfigObjectRawWithPlugins, yi as resolveConfigSnapshotHash } from "./config-i54suDg0.js";
|
|
4
|
+
import "./agent-scope-CmMflllE.js";
|
|
5
5
|
import "./github-copilot-token-KU60WOFB.js";
|
|
6
6
|
|
|
7
7
|
export { CONFIG_PATH, DEFAULT_GATEWAY_PORT, DEFAULT_SECRET_PROVIDER_ALIAS, MODEL_APIS, STATE_DIR, TOOLS_BY_SENDER_KEY_TYPES, advanceRuntimeConfigSnapshot, applyConfigOverrides, assertSecretInputResolved, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, createConfigIO, getConfigOverrides, getRuntimeConfigSnapshot, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, isNixMode, isSecretRef, loadConfig, migrateLegacyConfig, normalizeResolvedSecretInputString, normalizeSecretInputString, parseConfigJson5, parseEnvTemplateSecretRef, parseToolsBySenderTypedKey, readConfigFileSnapshot, readConfigFileSnapshotForWrite, resetConfigOverrides, resolveCanonicalConfigPath, resolveConfigPath, resolveConfigPathCandidate, resolveConfigSnapshotHash, resolveDefaultConfigCandidates, resolveGatewayLockDir, resolveGatewayPort, resolveIsNixMode, resolveLegacyStateDir, resolveLegacyStateDirs, resolveNewStateDir, resolveOAuthDir, resolveOAuthPath, resolveSecretInputRef, resolveStateDir, setConfigOverride, setRuntimeConfigSnapshot, unsetConfigOverride, validateConfigObject, validateConfigObjectRaw, validateConfigObjectRawWithPlugins, validateConfigObjectWithPlugins, writeConfigFile };
|
package/dist/daemon-cli.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Fa as VERSION, Ia as formatCliCommand, Ni as resolveGatewayConsoleBasePath, Vr as secretRefKey, ea as normalizeSecretInputString, fn as loadConfig, gn as createConfigIO, hn as writeConfigFile, m as GATEWAY_CLIENT_NAMES, p as GATEWAY_CLIENT_MODES, pn as readConfigFileSnapshot, ta as resolveSecretInputRef, vr as resolveSecretRefValues, xi as sanitizeTerminalText, za as docsSiteUrl } from "./group-
|
|
1
|
+
import { Fa as VERSION, Ia as formatCliCommand, Ni as resolveGatewayConsoleBasePath, Vr as secretRefKey, ea as normalizeSecretInputString, fn as loadConfig, gn as createConfigIO, hn as writeConfigFile, m as GATEWAY_CLIENT_NAMES, p as GATEWAY_CLIENT_MODES, pn as readConfigFileSnapshot, ta as resolveSecretInputRef, vr as resolveSecretRefValues, xi as sanitizeTerminalText, za as docsSiteUrl } from "./group-CJxrdnQi.js";
|
|
2
2
|
import { o as resolveGatewayPort, r as resolveConfigPath, s as resolveIsNixMode, u as resolveStateDir } from "./paths-2qlGWRjc.js";
|
|
3
|
-
import { C as shortenHomePath, F as isRich, I as theme, P as colorize, _t as isBunRuntime, o as defaultRuntime, ut as collectConfigServiceEnvVars, vt as isNodeRuntime, w as sleep, z as getResolvedLoggerSettings } from "./subsystem-
|
|
4
|
-
import { _ as resolveGatewayWindowsTaskName, a as randomToken, c as isWSLEnv, d as GATEWAY_SERVICE_MARKER, f as normalizeGatewayProfile, g as resolveGatewaySystemdServiceName, h as resolveGatewayServiceDescription, l as GATEWAY_LAUNCH_AGENT_LABEL, m as resolveGatewayProfileSuffix, o as resolveControlUiLinks, p as resolveGatewayLaunchAgentLabel, r as killProcessTree, s as isWSL, t as withProgress, u as GATEWAY_SERVICE_KIND, v as resolveLegacyGatewayLaunchAgentLabels, y as formatDocsLink } from "./progress
|
|
5
|
-
import "./agent-scope-
|
|
3
|
+
import { C as shortenHomePath, F as isRich, I as theme, P as colorize, _t as isBunRuntime, o as defaultRuntime, ut as collectConfigServiceEnvVars, vt as isNodeRuntime, w as sleep, z as getResolvedLoggerSettings } from "./subsystem-DY5Ww-lX.js";
|
|
4
|
+
import { _ as resolveGatewayWindowsTaskName, a as randomToken, c as isWSLEnv, d as GATEWAY_SERVICE_MARKER, f as normalizeGatewayProfile, g as resolveGatewaySystemdServiceName, h as resolveGatewayServiceDescription, l as GATEWAY_LAUNCH_AGENT_LABEL, m as resolveGatewayProfileSuffix, o as resolveControlUiLinks, p as resolveGatewayLaunchAgentLabel, r as killProcessTree, s as isWSL, t as withProgress, u as GATEWAY_SERVICE_KIND, v as resolveLegacyGatewayLaunchAgentLabels, y as formatDocsLink } from "./progress-B8VpRELC.js";
|
|
5
|
+
import "./agent-scope-CCWcV-mm.js";
|
|
6
6
|
import "./github-copilot-token-DpUzVZGF.js";
|
|
7
|
-
import "./sessions-
|
|
7
|
+
import "./sessions-Cdx3HjRT.js";
|
|
8
8
|
import "./diagnostic-events-e4_YKO7d.js";
|
|
9
|
-
import "./redact-
|
|
10
|
-
import "./errors-
|
|
11
|
-
import { f as loadGatewayTlsRuntime, n as callGateway } from "./call-
|
|
9
|
+
import "./redact-CoYHSFJI.js";
|
|
10
|
+
import "./errors-0RH1PUyI.js";
|
|
11
|
+
import { f as loadGatewayTlsRuntime, n as callGateway } from "./call-BjvHhPTp.js";
|
|
12
12
|
import "./pairing-files-BElZZJhA.js";
|
|
13
|
-
import { t as resolveGatewayAuth } from "./auth-
|
|
14
|
-
import { o as resolveGatewayBindHost, s as pickPrimaryTailnetIPv4 } from "./net-
|
|
15
|
-
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-
|
|
16
|
-
import { a as formatPortDiagnostics, i as classifyPortListener, n as inspectPortUsage } from "./ports-
|
|
13
|
+
import { t as resolveGatewayAuth } from "./auth-D2zwtjEE.js";
|
|
14
|
+
import { o as resolveGatewayBindHost, s as pickPrimaryTailnetIPv4 } from "./net-Ih2dkbnA.js";
|
|
15
|
+
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-BNtHxB_l.js";
|
|
16
|
+
import { a as formatPortDiagnostics, i as classifyPortListener, n as inspectPortUsage } from "./ports-Cm3dMy9r.js";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import fs from "node:fs/promises";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { _ as resolveStateDir } from "./paths-BZCDWJ55.js";
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { Gt as getConversationReadQuery, In as normalizeChannelId, Pn as getChannelPlugin, Sa as resolveOpenClawAgentDir, St as getActivePluginRegistryVersion, Ut as StorageReadAccessError, Zt as updateSessionStoreEntry, bn as resolveStorePath, bt as getActivePluginRegistry, cn as listConfiguredSessionStorageAgentIds, jn as getChannelDock, n as loadConfig, rn as loadSessionStore } from "./config-
|
|
5
|
-
import { $ as normalizeAgentId, a as listAgentEntries, bt as parseAgentSessionKey, dt as normalizeOptionalAccountId, et as normalizeMainKey, f as resolveDefaultAgentId, r as isAgentUserFacing, ut as normalizeAccountId } from "./agent-scope-
|
|
6
|
-
import { At as getGlobalHookRunner, L as resolveMainSessionKey, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript, nt as eventOrder, o as parseInlineDirectives } from "./sessions-
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-C30tnacl.js";
|
|
4
|
+
import { Gt as getConversationReadQuery, In as normalizeChannelId, Pn as getChannelPlugin, Sa as resolveOpenClawAgentDir, St as getActivePluginRegistryVersion, Ut as StorageReadAccessError, Zt as updateSessionStoreEntry, bn as resolveStorePath, bt as getActivePluginRegistry, cn as listConfiguredSessionStorageAgentIds, jn as getChannelDock, n as loadConfig, rn as loadSessionStore } from "./config-i54suDg0.js";
|
|
5
|
+
import { $ as normalizeAgentId, a as listAgentEntries, bt as parseAgentSessionKey, dt as normalizeOptionalAccountId, et as normalizeMainKey, f as resolveDefaultAgentId, r as isAgentUserFacing, ut as normalizeAccountId } from "./agent-scope-CmMflllE.js";
|
|
6
|
+
import { At as getGlobalHookRunner, L as resolveMainSessionKey, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript, nt as eventOrder, o as parseInlineDirectives } from "./sessions-CFd8Ydiq.js";
|
|
7
7
|
import { n as generateSecureUuid } from "./secure-random-faWesvBQ.js";
|
|
8
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
9
|
-
import { i as hasErrnoCode } from "./errors-
|
|
10
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
11
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
12
|
-
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-
|
|
13
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
14
|
-
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-
|
|
15
|
-
import { t as parseReplyDirectives } from "./reply-directives-
|
|
16
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
8
|
+
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-OjzGhCu9.js";
|
|
9
|
+
import { i as hasErrnoCode } from "./errors-DbYMrbC6.js";
|
|
10
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-3lhn9o5Q.js";
|
|
11
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-CvQ4rHkA.js";
|
|
12
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BO29WISL.js";
|
|
13
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Dv-Fn4ps.js";
|
|
14
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-CWaDtoFU.js";
|
|
15
|
+
import { t as parseReplyDirectives } from "./reply-directives-ZtVs-j3A.js";
|
|
16
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-DVAxl2sg.js";
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
@@ -462,7 +462,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
462
462
|
await ensureOpenClawModelsJson(cfg);
|
|
463
463
|
} catch {}
|
|
464
464
|
try {
|
|
465
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
465
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DtlKqZOH.js").then((n) => n.r);
|
|
466
466
|
const agentDir = resolveOpenClawAgentDir();
|
|
467
467
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
468
468
|
applyDiscoveredContextWindows({
|