wednesdayai 0.5.1-dev.41 → 0.5.1-dev.42
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-DUbhjnHb.js → agent-scope-BJFJ0deZ.js} +18 -18
- package/dist/{agent-scope-CXfIHPTl.js → agent-scope-CoIdVzmg.js} +2 -2
- package/dist/{agent-turn-execute-8DU-jztX.js → agent-turn-execute-CIlMMXNu.js} +168 -168
- package/dist/{agent-turn-runner-y0WL6xuI.js → agent-turn-runner-BkWusthz.js} +3 -3
- package/dist/{agent-turn-runner-BJqs23F_.js → agent-turn-runner-FwkD42Me.js} +6 -6
- package/dist/{agent-turn-runner-DHc4lH66.js → agent-turn-runner-SxjOzPCD.js} +6 -6
- package/dist/{api-key-rotation-DAI1NT_a.js → api-key-rotation-1GnreUfv.js} +1 -1
- package/dist/{api-key-rotation-PK29aYV9.js → api-key-rotation-1bTDnvBU.js} +2 -2
- package/dist/{api-key-rotation-B8RAiYZ_.js → api-key-rotation-BWj1Itf-.js} +2 -2
- package/dist/{audio-preflight-DaYu-alJ.js → audio-preflight-CCjuApbs.js} +25 -25
- package/dist/{audio-preflight-Cio-wP6C.js → audio-preflight-CKxOmHZL.js} +22 -22
- package/dist/{audio-preflight-Bdn8EyXv.js → audio-preflight-cWE_jPq7.js} +14 -14
- package/dist/{audio-transcription-runner-MJ65xlDX.js → audio-transcription-runner-Bk1wu6OC.js} +8 -8
- package/dist/{audio-transcription-runner-DW04B1B-.js → audio-transcription-runner-DgFYIaIw.js} +12 -12
- package/dist/{audio-transcription-runner-D_-_mf4m.js → audio-transcription-runner-DrIyj8a5.js} +25 -25
- 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/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chat-content-DtaSiJ_7.js → chat-content-B7yKTLAY.js} +9 -9
- package/dist/{chat-content-DIjp-kW-.js → chat-content-BdADRLL0.js} +17 -17
- package/dist/{chat-content-tQ21BnhN.js → chat-content-BgW4rG28.js} +24 -24
- package/dist/{chrome-DxiDoVpi.js → chrome-DNTX4D1k.js} +13 -13
- package/dist/{chrome-C9TkYQeh.js → chrome-DQ2kyZpc.js} +14 -14
- package/dist/{chrome-BRVJGvQa.js → chrome-W4kkryVf.js} +5 -5
- package/dist/{chunk-DCCRrNDr.js → chunk-BAxcOCcV.js} +3 -3
- package/dist/{chunk-CGvXEMAJ.js → chunk-BBj2TedD.js} +1 -1
- package/dist/{chunk-50mU2Avf.js → chunk-BEuk6eCG.js} +3 -3
- package/dist/{command-queue-De2GI8TP.js → command-queue-CRm1AADE.js} +1 -1
- package/dist/{command-queue-yDJ733aN.js → command-queue-D_saM8MV.js} +1 -1
- package/dist/{commands-registry-CzTzqbi9.js → commands-registry-C-BDBl_b.js} +2 -2
- package/dist/{commands-registry-C3LKhQLY.js → commands-registry-CtR9mXss.js} +2 -2
- package/dist/{commands-registry-BO2o7Un9.js → commands-registry-b4F_78R4.js} +1 -1
- package/dist/{config-D5tWLhng.js → config-CPcuaNsB.js} +26 -26
- package/dist/config.js +3 -3
- package/dist/{credentials-DdZjLLBj.js → credentials-2Kd9Ahu7.js} +1 -1
- package/dist/{credentials-BAWD9O8L.js → credentials-BhiiI_Nr.js} +1 -1
- package/dist/{credentials-GPboJeMC.js → credentials-U5jLZxJ-.js} +1 -1
- package/dist/{deliver-Cqo4_R0v.js → deliver-Ap_fWjsf.js} +14 -14
- package/dist/{deliver-x1MM90HA.js → deliver-BQSIZZRd.js} +11 -11
- package/dist/{deliver-DeMElZFE.js → deliver-BufoibUD.js} +15 -15
- package/dist/{diagnostic-Nq6B3DZr.js → diagnostic--vAGyKdB.js} +3 -3
- package/dist/{diagnostic-BqFtliY1.js → diagnostic-BSnQ1U_E.js} +3 -3
- package/dist/{plugin-sdk/errors-BcCM5PTR.js → errors-BzL6hu4G.js} +1 -1
- package/dist/{errors-D8k7j4A4.js → errors-DnOtx_vg.js} +1 -1
- package/dist/extensionAPI.js +40 -40
- package/dist/{fetch-TzOudNO4.js → fetch-BJ9kDOw8.js} +7 -7
- package/dist/{fetch-CLvElPgY.js → fetch-DJPbv7La.js} +1 -1
- package/dist/{fetch-Cpgrvssj.js → fetch-DQjTi7nc.js} +1 -1
- package/dist/{fetch-CHncmQms.js → fetch-DUVm-Rj1.js} +7 -7
- package/dist/{fetch-DG4n5iR6.js → fetch-DmpLwwor.js} +1 -1
- package/dist/{fetch-BzeUsif1.js → fetch-JiVpsY-F.js} +2 -2
- package/dist/{fetch-guard-kz-XQlCx.js → fetch-guard-BySb6coS.js} +2 -2
- package/dist/{fetch-guard-BZlxmZcA.js → fetch-guard-CRERUrFK.js} +2 -2
- package/dist/{fetch-guard-D49piGJ5.js → fetch-guard-Dn6Z6n6a.js} +1 -1
- package/dist/{frontmatter-BDLxOane.js → frontmatter-NYeLKFIP.js} +3 -3
- package/dist/{fs-safe-BH37Yhl8.js → fs-safe-C3qJHn62.js} +25 -25
- package/dist/{fs-safe-BjrptUz1.js → fs-safe-DOdeIkaS.js} +3 -3
- package/dist/{plugin-sdk/image-ops-1WkFRYfC.js → image-ops-BTgGxcIG.js} +2 -2
- package/dist/{image-ops-BWgZn39_.js → image-ops-DEUr_rAC.js} +1 -1
- package/dist/{plugin-sdk/ir-BnNIPrDz.js → ir-B0rUqFWs.js} +5 -5
- package/dist/{ir-vVwcX8JG.js → ir-Bra81NIe.js} +2 -2
- package/dist/{ir-Btci3Wse.js → ir-IKFrcD2H.js} +8 -8
- package/dist/{json-files-C3L53Qrl.js → json-files-DNv3G6Vg.js} +7 -7
- package/dist/{legacy-names-BKv-k5-D.js → legacy-names-D7ywm6_7.js} +1 -1
- package/dist/llm-slug-generator.js +55 -55
- package/dist/{manager-Nw8a10KA.js → manager-3Exjl08V.js} +7 -7
- package/dist/{manager-BPk0HUHz.js → manager-Cb_Lde6Q.js} +14 -14
- package/dist/{manager-DRfrqzWR.js → manager-DIIInXxQ.js} +4 -4
- package/dist/{markdown-tables-CzhZ9VCB.js → markdown-tables-7TebvIj0.js} +1 -1
- package/dist/{markdown-tables-BJqhUgli.js → markdown-tables-Crj_Y0Qx.js} +2 -2
- package/dist/{markdown-tables-By4yQcHS.js → markdown-tables-lzV8Hoxc.js} +2 -2
- package/dist/{model-selection-DkRYDpst.js → model-selection-DFW5CGMj.js} +1 -1
- package/dist/{model-selection-JA-6f5ss.js → model-selection-_StPBPAp.js} +9 -9
- package/dist/{models-config-Cbzv_acs.js → models-config-D3M9er_C.js} +2 -2
- package/dist/{models-config-TH00YNHC.js → models-config-DkEpc_7A.js} +7 -7
- package/dist/{models-config-BaSANr-E.js → models-config-tNRAxYqz.js} +1 -1
- package/dist/{nudge-Da1ePscI.js → nudge-B06CLLon.js} +9 -9
- package/dist/{nudge-DVGzMWUi.js → nudge-BR_K1LnT.js} +16 -16
- package/dist/{nudge-Chvj0Rw2.js → nudge-DklIe0bB.js} +10 -10
- package/dist/{outbound-attachment-DegoJUYB.js → outbound-attachment-BeSAM8qU.js} +1 -1
- package/dist/{outbound-attachment-CZwlqfbE.js → outbound-attachment-CCQDMmDH.js} +2 -2
- package/dist/{outbound-attachment-DAUmCye_.js → outbound-attachment-DFIzmC4e.js} +2 -2
- package/dist/{outbound-message-hooks-CIrC0qAA.js → outbound-message-hooks-Bn5_bObR.js} +5 -5
- package/dist/{outbound-message-hooks-Bqu2fu_R.js → outbound-message-hooks-C9zh-qk0.js} +4 -4
- package/dist/{outbound-message-hooks-bMw-LLuz.js → outbound-message-hooks-CrrbzX7U.js} +2 -2
- package/dist/{path-alias-guards-CGcezGX3.js → path-alias-guards-B9AcbQl6.js} +3 -3
- package/dist/{plugin-sdk/path-alias-guards-D1I2TIj4.js → path-alias-guards-aXY57qPv.js} +1 -1
- package/dist/{pi-embedded-BSVP6xD2.js → pi-embedded-CL5jkXds.js} +64 -64
- package/dist/{pi-embedded-W4tWwQw6.js → pi-embedded-DGpkqagr.js} +80 -80
- package/dist/{pi-embedded-utils-DF7kfQx2.js → pi-embedded-utils-CQ3KPjMe.js} +3 -3
- package/dist/{pi-embedded-utils-BF4B99Db.js → pi-embedded-utils-D9zLeiKy.js} +1 -1
- package/dist/{pi-embedded-utils-B6eeyw2H.js → pi-embedded-utils-DD7HmeWR.js} +3 -3
- package/dist/{pi-model-discovery-ym24jTFO.js → pi-model-discovery-BTuzuVh1.js} +1 -1
- package/dist/{pi-model-discovery-VTZCKDCd.js → pi-model-discovery-C4WE3mR2.js} +1 -1
- package/dist/{pi-model-discovery-B5oKc4R3.js → pi-model-discovery-DiGB5xAq.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-BnbrZIzh.js → agent-scope-Cy5bPtkD.js} +1 -1
- package/dist/plugin-sdk/{agent-turn-execute-Bj1_MqWi.js → agent-turn-execute-Cr_GYkDb.js} +79 -79
- package/dist/plugin-sdk/{agent-turn-runner-zbex5xar.js → agent-turn-runner-CBR6kAt-.js} +6 -6
- package/dist/plugin-sdk/{api-key-rotation-Dpyf5O6z.js → api-key-rotation-BKcVxTy8.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-DlNHpUpW.js → audio-preflight-BVKGoA22.js} +23 -23
- package/dist/plugin-sdk/{audio-transcription-runner-BNWmQAJ3.js → audio-transcription-runner-Cvfignlt.js} +10 -10
- package/dist/plugin-sdk/{chrome-DwoV5WFU.js → chrome-Djvom4Ij.js} +6 -6
- package/dist/plugin-sdk/{chunk-CBTJQenE.js → chunk-Bh4ffo9K.js} +3 -3
- package/dist/plugin-sdk/{command-queue-hSL_BIod.js → command-queue-DxcAKezg.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-vhM5U22x.js → commands-registry-CCiWhIrU.js} +2 -2
- package/dist/plugin-sdk/{credentials-oF38Hm9r.js → credentials-BFdx8hCQ.js} +1 -1
- package/dist/plugin-sdk/{deliver-CkQB8s_s.js → deliver-Cf-VdZA7.js} +14 -14
- package/dist/plugin-sdk/{diagnostic-nUTVaBEe.js → diagnostic-BpXW-Rhw.js} +3 -3
- package/dist/{errors-BWpk4nzX.js → plugin-sdk/errors-BH3DYZVB.js} +1 -1
- package/dist/plugin-sdk/{fetch-DV_cKD5m.js → fetch-B9WuvLLv.js} +7 -7
- package/dist/plugin-sdk/{fetch-BNHoA66Z.js → fetch-BxGJD3sH.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dpd7hJ0h.js → fetch-guard-CJhIVznN.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-CnAPtYPG.js → fs-safe-BQ8e0fFk.js} +3 -3
- package/dist/{image-ops-C54shfkj.js → plugin-sdk/image-ops-CqatVl0e.js} +12 -12
- package/dist/{ir-SWdqg35s.js → plugin-sdk/ir-C1cLQG0N.js} +5 -5
- package/dist/plugin-sdk/{manager-uIw894nB.js → manager-xGWNrW5i.js} +7 -7
- package/dist/plugin-sdk/{markdown-tables-D6Jl1s9s.js → markdown-tables-DnMUQn1V.js} +2 -2
- package/dist/plugin-sdk/{model-auth-Beiv1ujI.js → model-auth-pNsZhRxq.js} +7 -7
- package/dist/plugin-sdk/{models-config-DrzOHxl5.js → models-config-d-LFEKVs.js} +2 -2
- package/dist/plugin-sdk/{nudge-czM3OOTT.js → nudge-BvirROp6.js} +8 -8
- package/dist/plugin-sdk/{openai-compatible-video-Dy57wpNv.js → openai-compatible-video-BxPbkLMy.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-BoSR20RK.js → outbound-attachment-DkIWM5yK.js} +2 -2
- package/dist/plugin-sdk/{outbound-message-hooks-eUNVCJ0m.js → outbound-message-hooks-DsAvrOUy.js} +4 -4
- package/dist/{path-alias-guards-CgO2FpVx.js → plugin-sdk/path-alias-guards-CF0cvXKB.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BRSkUtFR.js → pi-embedded-helpers-Ctve63Vr.js} +15 -15
- package/dist/plugin-sdk/{pi-embedded-utils-DcsHTJ1m.js → pi-embedded-utils-cecBA96E.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-HVno_0HD.js → pi-model-discovery-CMOEq078.js} +1 -1
- package/dist/plugin-sdk/provider-media-understanding.js +20 -20
- package/dist/plugin-sdk/{pw-ai-B1OqkFDb.js → pw-ai-Bl2Z9GYg.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-Ip6QnhA7.js → qmd-manager-DY9c1S_2.js} +8 -8
- package/dist/plugin-sdk/{qmd-scope-DMNjwnEQ.js → qmd-scope-C3rw3Qjd.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-DV-ECmRb.js → query-expansion-BhXha2GI.js} +2 -2
- package/dist/plugin-sdk/{recorder-XQ8ZjG7j.js → recorder-DccHbgBz.js} +2 -2
- package/dist/plugin-sdk/{redact-C3T6IWmQ.js → redact-CXDVzhSq.js} +1 -1
- package/dist/plugin-sdk/{replies-HCqRS_IF.js → replies-CyyZdjYH.js} +5 -5
- package/dist/plugin-sdk/{reply-directives-Bn4oBJnk.js → reply-directives-CXKYiQC1.js} +2 -2
- package/dist/{reply-prefix-BTUna5vE.js → plugin-sdk/reply-prefix-DL3DiQEo.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-Djrs4IWv.js → resolve-route-CsiTWvoi.js} +3 -3
- package/dist/plugin-sdk/{runs-DN-UxJ44.js → runs-ByM3uA8B.js} +8 -8
- package/dist/plugin-sdk/{send-DnJb7LiP.js → send-BwuMsQ_p.js} +8 -8
- package/dist/plugin-sdk/{send-AstP-BDn.js → send-D0UAWWai.js} +8 -8
- package/dist/plugin-sdk/{send-D3hVSNy0.js → send-Dgf6n9kX.js} +6 -6
- package/dist/plugin-sdk/{send-D5C72eu6.js → send-qUR5w2lM.js} +7 -7
- package/dist/plugin-sdk/{session-meta-pKpwf1nQ.js → session-meta-B_alDqcD.js} +1 -1
- package/dist/plugin-sdk/{sessions-BfBjVuaP.js → sessions-CkJfRajZ.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-Bk_STwKa.js → skill-commands-D5O0FXiW.js} +4 -4
- package/dist/plugin-sdk/{skills-BArFQgKX.js → skills-ByCpoIW7.js} +6 -6
- package/dist/plugin-sdk/{ssrf-B2UnPTf3.js → ssrf-aLKAjCHj.js} +1 -1
- package/dist/plugin-sdk/{store-D8eITlWs.js → store-KaVQ5gHj.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Btq0amiz.js → subsystem-DGPv0F8I.js} +4 -4
- package/dist/plugin-sdk/{tables-Bj_zeTwr.js → tables-CONj5xDV.js} +1 -1
- package/dist/plugin-sdk/{tokens-mfZMXas7.js → tokens-DUGBy1gM.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-CnFqoQKh.js → tool-loop-detection-Cl4-Vsd_.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-DQBPNzif.js → user-run-recording--8aaZMPs.js} +2 -2
- package/dist/plugin-sdk/{ws-DN6RmfyQ.js → ws-C7BGsi5P.js} +1 -1
- package/dist/{proxy-env-DKs0W5v1.js → proxy-env-Bw8nAERJ.js} +1 -1
- package/dist/{proxy-env-C0UK-5dm.js → proxy-env-RzbogHFe.js} +1 -1
- package/dist/{proxy-env-DtzLr6mZ.js → proxy-env-dFmQfhFb.js} +1 -1
- package/dist/{pw-ai-KPNOiYzf.js → pw-ai-B2n3DHPt.js} +12 -12
- package/dist/{pw-ai-CEk9Jaqd.js → pw-ai-C6ZFN6As.js} +13 -13
- package/dist/{pw-ai-8QlHyDLL.js → pw-ai-D55f0Pr9.js} +4 -4
- package/dist/{qmd-manager-BmiJlIMN.js → qmd-manager-BZSlXT1A.js} +23 -23
- package/dist/{qmd-manager-B_ED_NmL.js → qmd-manager-C4rOtrQS.js} +2 -2
- package/dist/{qmd-manager-BFUaPUn-.js → qmd-manager-jLSZ3VID.js} +10 -10
- package/dist/{qmd-scope-DLLTbQwp.js → qmd-scope-BN4oVeLu.js} +1 -1
- package/dist/{qmd-scope-CUCeRWxr.js → qmd-scope-BOfwIKTy.js} +1 -1
- package/dist/{query-expansion-DLN1Vjgr.js → query-expansion-BDAO12Ha.js} +11 -11
- package/dist/{query-expansion-BVj0lCGG.js → query-expansion-Dm_RIg6M.js} +1 -1
- package/dist/{query-expansion-CbOJZTFH.js → query-expansion-UPsVmvEm.js} +2 -2
- package/dist/{recorder-jnBdoV4s.js → recorder-Bp_onP2d.js} +2 -2
- package/dist/{recorder-BowlGHGe.js → recorder-DRV1SIKe.js} +1 -1
- package/dist/{recorder-CndF3Klo.js → recorder-DvYXNusz.js} +2 -2
- package/dist/{redact-C8xjZT-F.js → redact-CysJDryP.js} +1 -1
- package/dist/{redact-B6sHOW29.js → redact-D--orJnz.js} +1 -1
- package/dist/{replies-7qxW8HcU.js → replies-BL7cHT2h.js} +4 -4
- package/dist/{replies-CoEfccKv.js → replies-DAavcLc9.js} +5 -5
- package/dist/{replies-lKn2Mrkb.js → replies-DfoUf3N4.js} +5 -5
- package/dist/{reply-directives-BclP76MA.js → reply-directives-B_wfvntf.js} +2 -2
- package/dist/{reply-directives-DarQZxqY.js → reply-directives-D4Hftiqp.js} +1 -1
- package/dist/{reply-directives-Djre3xI1.js → reply-directives-DsGD4aw1.js} +2 -2
- package/dist/{plugin-sdk/reply-prefix-CCyygbH2.js → reply-prefix-C08CPcgE.js} +1 -1
- package/dist/{reply-prefix-DiyN1oc7.js → reply-prefix-gWrzAQtZ.js} +1 -1
- package/dist/{resolve-route-ClI5pltd.js → resolve-route-BP1OpZqn.js} +3 -3
- package/dist/{resolve-route-B15qdahX.js → resolve-route-D96zWGGF.js} +1 -1
- package/dist/{resolve-route-BmA3wi9D.js → resolve-route-RQpYXVl1.js} +4 -4
- package/dist/{runs-efmPtrdw.js → runs-Bf_VVVBE.js} +8 -8
- package/dist/{runs-5zWtWfx5.js → runs-CAO_rrxJ.js} +5 -5
- package/dist/{runs-DffCseDM.js → runs-DGr28sFu.js} +8 -8
- package/dist/{send-TVImOmCV.js → send-BOm8dqOB.js} +13 -13
- package/dist/{send-ChgWfhHL.js → send-C-m_74Nc.js} +8 -8
- package/dist/{send-B3c56zXa.js → send-C0kXNcyD.js} +8 -8
- package/dist/{send-CLnmNoGF.js → send-CNMPyQyQ.js} +7 -7
- package/dist/{send-Dy4zxtn3.js → send-CS1yI0B4.js} +6 -6
- package/dist/{send-BZrEBJKt.js → send-DFsyNWFI.js} +7 -7
- package/dist/{send-NLqVlKnJ.js → send-DYRbKT7y.js} +6 -6
- package/dist/{send-Co-6tb50.js → send-DkJqx60r.js} +8 -8
- package/dist/{send-Cl-ugSMv.js → send-Dv__vEQx.js} +5 -5
- package/dist/{send-DJypuRge.js → send-FQrlCKRx.js} +6 -6
- package/dist/{send-DdyIJ_uy.js → send-T9aTnSyS.js} +4 -4
- package/dist/{send-DkHxW8Pg.js → send-oHqfck_E.js} +6 -6
- package/dist/{session-meta-CE9Oi0tA.js → session-meta-BCY_pfg7.js} +1 -1
- package/dist/{session-meta-DgpwY0ah.js → session-meta-CyokAxEY.js} +1 -1
- package/dist/{session-meta-DDeeNkQv.js → session-meta-DVKEsZNl.js} +1 -1
- package/dist/{sessions-B-dL4q0P.js → sessions-A1wDmvXO.js} +1 -1
- package/dist/{sessions-DkSPJ2k9.js → sessions-CzjW7wiR.js} +4 -4
- package/dist/{sessions-BgTvNzNv.js → sessions-IqyeyMXp.js} +4 -4
- package/dist/{skill-commands-K9_D6a_V.js → skill-commands-BfK22Jmi.js} +4 -4
- package/dist/{skill-commands-1Axnvvz6.js → skill-commands-CZ8IAEbM.js} +2 -2
- package/dist/{skill-commands-BOG-33Ja.js → skill-commands-DYJDIogS.js} +5 -5
- package/dist/{skills-CrNvxe8D.js → skills-D6riKXOf.js} +6 -6
- package/dist/{skills-CMwL1GBr.js → skills-D7jLGkoP.js} +1 -1
- package/dist/{skills-Ci9t7Gax.js → skills-jb4bSwT6.js} +4 -4
- package/dist/{store-DJPbhmBq.js → store-Bt16sey6.js} +2 -2
- package/dist/{store-B6wZFu_5.js → store-CsI6l-8d.js} +7 -7
- package/dist/{subsystem-B9soUuXQ.js → subsystem-BTMrlJ-R.js} +7 -7
- package/dist/{tables-rCzAF-en.js → tables-BFlTcF5k.js} +1 -1
- package/dist/{tables-CYp9eWuv.js → tables-BTIafSNy.js} +1 -1
- package/dist/{tables-BaYGY_Hk.js → tables-tChtQWdX.js} +1 -1
- package/dist/{tokens-DwuYAzrE.js → tokens-C2ll8wSq.js} +1 -1
- package/dist/{tokens-KbWGDYPC.js → tokens-qfLiLlNv.js} +1 -1
- package/dist/{tool-loop-detection-B2G2F3vq.js → tool-loop-detection-CiexABx1.js} +1 -1
- package/dist/{tool-loop-detection-BwJFCGqI.js → tool-loop-detection-D0CRFNOH.js} +1 -1
- package/dist/{user-run-recording-Bax2KSZY.js → user-run-recording-CTOXtrSm.js} +1 -1
- package/dist/{user-run-recording-B_-S5l8q.js → user-run-recording-D-7cPbdf.js} +2 -2
- package/dist/{user-run-recording-DIqKTo0U.js → user-run-recording-DJedyUge.js} +2 -2
- package/dist/{workspace-D5PKyvm-.js → workspace-xnzx7wEV.js} +1 -1
- package/dist/{ws-CWxX8WDm.js → ws-CQigqc-W.js} +1 -1
- package/dist/{ws-CSU92Z2r.js → ws-D51UDdBH.js} +1 -1
- package/dist/{ws-CmKUpGwq.js → ws-DLbfGWAn.js} +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/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/subsystem-cFv2jJm-.js +0 -2777
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { An as normalizeChannelId, Da as resolveOpenClawAgentDir, Jt as listConfiguredSessionStorageAgentIds, On as getChannelPlugin, Tn as getChannelDock, Vt as getConversationReadQuery, Yt as loadSessionStore, c as loadConfig, gt as getActivePluginRegistry, rn as updateSessionStoreEntry, vt as getActivePluginRegistryVersion, xn as resolveStorePath, zt as StorageReadAccessError } from "./config-
|
|
2
|
+
import { An as normalizeChannelId, Da as resolveOpenClawAgentDir, Jt as listConfiguredSessionStorageAgentIds, On as getChannelPlugin, Tn as getChannelDock, Vt as getConversationReadQuery, Yt as loadSessionStore, c as loadConfig, gt as getActivePluginRegistry, rn as updateSessionStoreEntry, vt as getActivePluginRegistryVersion, xn as resolveStorePath, zt as StorageReadAccessError } from "./config-CPcuaNsB.js";
|
|
3
3
|
import { _ as resolveStateDir } from "./paths-C7aURmuZ.js";
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { X as normalizeMainKey, Y as normalizeAgentId, at as normalizeAccountId, c as resolveDefaultAgentId, ht as parseAgentSessionKey, ot as normalizeOptionalAccountId } from "./agent-scope-
|
|
6
|
-
import { A as eventOrder, It as canonicalizeMainSessionAlias, K as parseInlineDirectives, a as resolveMirroredTranscriptText, b as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, zt as resolveMainSessionKey } from "./sessions-
|
|
7
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
8
|
-
import { i as hasErrnoCode } from "./errors-
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-BTMrlJ-R.js";
|
|
5
|
+
import { X as normalizeMainKey, Y as normalizeAgentId, at as normalizeAccountId, c as resolveDefaultAgentId, ht as parseAgentSessionKey, ot as normalizeOptionalAccountId } from "./agent-scope-BJFJ0deZ.js";
|
|
6
|
+
import { A as eventOrder, It as canonicalizeMainSessionAlias, K as parseInlineDirectives, a as resolveMirroredTranscriptText, b as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, zt as resolveMainSessionKey } from "./sessions-IqyeyMXp.js";
|
|
7
|
+
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-BgW4rG28.js";
|
|
8
|
+
import { i as hasErrnoCode } from "./errors-DnOtx_vg.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-CYWiC9Ek.js";
|
|
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-
|
|
10
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-DkEpc_7A.js";
|
|
11
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-BJ9kDOw8.js";
|
|
12
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BEuk6eCG.js";
|
|
13
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-Crj_Y0Qx.js";
|
|
14
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-C9zh-qk0.js";
|
|
15
|
+
import { t as parseReplyDirectives } from "./reply-directives-B_wfvntf.js";
|
|
16
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-C0kXNcyD.js";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
import fs from "node:fs";
|
|
19
19
|
import path from "node:path";
|
|
@@ -351,7 +351,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
351
351
|
await ensureOpenClawModelsJson(cfg);
|
|
352
352
|
} catch {}
|
|
353
353
|
try {
|
|
354
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
354
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-C4WE3mR2.js").then((n) => n.r);
|
|
355
355
|
const agentDir = resolveOpenClawAgentDir();
|
|
356
356
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
357
357
|
applyDiscoveredContextWindows({
|
|
@@ -2,18 +2,18 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { K as normalizeAgentId, c as resolveDefaultAgentId, ft as parseAgentSessionKey, nt as normalizeAccountId, q as normalizeMainKey, rt as normalizeOptionalAccountId } from "./agent-scope-Js3kUihf.js";
|
|
3
3
|
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
5
|
-
import { Cn as loadSessionStore, Kt as getActivePluginRegistryVersion, Mn as updateSessionStoreEntry, Sn as listConfiguredSessionStorageAgentIds, U as loadConfig, Wt as getActivePluginRegistry, Xn as resolveStorePath, ar as normalizeChannelId, er as getChannelDock, hn as getConversationReadQuery, pn as StorageReadAccessError, rr as getChannelPlugin, va as resolveOpenClawAgentDir } from "./model-selection-
|
|
6
|
-
import { L as resolveMainSessionKey, Nt as getGlobalHookRunner, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, at as eventOrder, i as appendAssistantMessageToSessionTranscript, o as parseInlineDirectives } from "./sessions-
|
|
5
|
+
import { Cn as loadSessionStore, Kt as getActivePluginRegistryVersion, Mn as updateSessionStoreEntry, Sn as listConfiguredSessionStorageAgentIds, U as loadConfig, Wt as getActivePluginRegistry, Xn as resolveStorePath, ar as normalizeChannelId, er as getChannelDock, hn as getConversationReadQuery, pn as StorageReadAccessError, rr as getChannelPlugin, va as resolveOpenClawAgentDir } from "./model-selection-DFW5CGMj.js";
|
|
6
|
+
import { L as resolveMainSessionKey, Nt as getGlobalHookRunner, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, at as eventOrder, i as appendAssistantMessageToSessionTranscript, o as parseInlineDirectives } from "./sessions-A1wDmvXO.js";
|
|
7
7
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
8
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
8
|
+
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-B7yKTLAY.js";
|
|
9
9
|
import { i as hasErrnoCode } from "./errors-B_bbUZmd.js";
|
|
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-
|
|
10
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-tNRAxYqz.js";
|
|
11
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-JiVpsY-F.js";
|
|
12
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BBj2TedD.js";
|
|
13
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-7TebvIj0.js";
|
|
14
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-CrrbzX7U.js";
|
|
15
|
+
import { t as parseReplyDirectives } from "./reply-directives-D4Hftiqp.js";
|
|
16
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-FQrlCKRx.js";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import syncFs from "node:fs";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
@@ -351,7 +351,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
351
351
|
await ensureOpenClawModelsJson(cfg);
|
|
352
352
|
} catch {}
|
|
353
353
|
try {
|
|
354
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
354
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DiGB5xAq.js").then((n) => n.r);
|
|
355
355
|
const agentDir = resolveOpenClawAgentDir();
|
|
356
356
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
357
357
|
applyDiscoveredContextWindows({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
+
import { l as resolveDefaultAgentId } from "./agent-scope-CoIdVzmg.js";
|
|
3
3
|
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { F as normalizeAgentId, G as normalizeAccountId, I as normalizeMainKey, K as normalizeOptionalAccountId, tt as parseAgentSessionKey } from "./workspace-
|
|
6
|
-
import { $n as getChannelPlugin, Gt as getActivePluginRegistryVersion, Kn as resolveStorePath, On as updateSessionStoreEntry, U as loadConfig, Ut as getActivePluginRegistry, Xn as getChannelDock, bn as loadSessionStore, fn as getConversationReadQuery, pa as resolveOpenClawAgentDir, tr as normalizeChannelId, un as StorageReadAccessError, yn as listConfiguredSessionStorageAgentIds } from "./model-selection-
|
|
7
|
-
import { L as resolveMainSessionKey, Nt as getGlobalHookRunner, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, at as eventOrder, i as appendAssistantMessageToSessionTranscript, jt as hasInterSessionUserProvenance, o as parseInlineDirectives } from "./sessions-
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
5
|
+
import { F as normalizeAgentId, G as normalizeAccountId, I as normalizeMainKey, K as normalizeOptionalAccountId, tt as parseAgentSessionKey } from "./workspace-xnzx7wEV.js";
|
|
6
|
+
import { $n as getChannelPlugin, Gt as getActivePluginRegistryVersion, Kn as resolveStorePath, On as updateSessionStoreEntry, U as loadConfig, Ut as getActivePluginRegistry, Xn as getChannelDock, bn as loadSessionStore, fn as getConversationReadQuery, pa as resolveOpenClawAgentDir, tr as normalizeChannelId, un as StorageReadAccessError, yn as listConfiguredSessionStorageAgentIds } from "./model-selection-_StPBPAp.js";
|
|
7
|
+
import { L as resolveMainSessionKey, Nt as getGlobalHookRunner, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, at as eventOrder, i as appendAssistantMessageToSessionTranscript, jt as hasInterSessionUserProvenance, o as parseInlineDirectives } from "./sessions-CzjW7wiR.js";
|
|
8
8
|
import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
|
|
9
|
-
import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-
|
|
10
|
-
import { i 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-BdADRLL0.js";
|
|
10
|
+
import { i as hasErrnoCode } from "./errors-BzL6hu4G.js";
|
|
11
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-D3M9er_C.js";
|
|
12
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DUVm-Rj1.js";
|
|
13
|
+
import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BAxcOCcV.js";
|
|
14
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-lzV8Hoxc.js";
|
|
15
|
+
import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-Bn5_bObR.js";
|
|
16
|
+
import { t as parseReplyDirectives } from "./reply-directives-DsGD4aw1.js";
|
|
17
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-DkJqx60r.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import syncFs from "node:fs";
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
@@ -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-BTuzuVh1.js").then((n) => n.r);
|
|
376
376
|
const agentDir = resolveOpenClawAgentDir();
|
|
377
377
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
378
378
|
applyDiscoveredContextWindows({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BTMrlJ-R.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { Z as resolveAgentIdFromSessionKey } from "./agent-scope-
|
|
4
|
+
import { Z as resolveAgentIdFromSessionKey } from "./agent-scope-BJFJ0deZ.js";
|
|
5
5
|
import { t as redactIdentifier } from "./redact-identifier-bNChjxxW.js";
|
|
6
6
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-DGRcTqIH.js";
|
|
7
|
-
import { t as redactSensitiveText } from "./redact-
|
|
7
|
+
import { t as redactSensitiveText } from "./redact-D--orJnz.js";
|
|
8
8
|
import { a as recordTurnDuration, i as recordSessionChannelCorrelation, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-B2VnYC0m.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
3
3
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
4
|
-
import { L as resolveAgentIdFromSessionKey } from "./workspace-
|
|
4
|
+
import { L as resolveAgentIdFromSessionKey } from "./workspace-xnzx7wEV.js";
|
|
5
5
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-BTSwhIfk.js";
|
|
6
6
|
import { a as recordTurnDuration, i as recordSessionChannelCorrelation, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-DJQj3Ka7.js";
|
|
7
7
|
import { t as redactIdentifier } from "./redact-identifier-C_VCQ34e.js";
|
|
8
|
-
import { t as redactSensitiveText } from "./redact-
|
|
8
|
+
import { t as redactSensitiveText } from "./redact-CysJDryP.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/agents/command-poll-backoff.ts
|
package/dist/extensionAPI.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { i as resolveAgentDir, s as resolveAgentWorkspaceDir, x as ensureAgentWorkspace } from "./agent-scope-Js3kUihf.js";
|
|
2
2
|
import "./paths-B_gs59ga.js";
|
|
3
3
|
import "./subsystem-DynBFcQj.js";
|
|
4
|
-
import { Cn as loadSessionStore, Kn as resolveSessionFilePath, Ma as DEFAULT_PROVIDER, Xn as resolveStorePath, h as resolveThinkingDefault, ja as DEFAULT_MODEL, kn as saveSessionStore } from "./model-selection-
|
|
4
|
+
import { Cn as loadSessionStore, Kn as resolveSessionFilePath, Ma as DEFAULT_PROVIDER, Xn as resolveStorePath, h as resolveThinkingDefault, ja as DEFAULT_MODEL, kn as saveSessionStore } from "./model-selection-DFW5CGMj.js";
|
|
5
5
|
import { a as resolveAgentIdentity } from "./reply-prefix-4eNR7tt6.js";
|
|
6
6
|
import "./github-copilot-token-BJeEWDJb.js";
|
|
7
|
-
import "./send-
|
|
8
|
-
import "./send-
|
|
7
|
+
import "./send-Dv__vEQx.js";
|
|
8
|
+
import "./send-CS1yI0B4.js";
|
|
9
9
|
import "./tokens-D81t1pbF.js";
|
|
10
|
-
import { a as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
11
|
-
import "./sessions-
|
|
10
|
+
import { a as resolveAgentTimeoutMs, t as runEmbeddedPiAgent } from "./pi-embedded-CL5jkXds.js";
|
|
11
|
+
import "./sessions-A1wDmvXO.js";
|
|
12
12
|
import "./diagnostic-events-DMwgeRgr.js";
|
|
13
13
|
import "./diagnostic-XckGznW_.js";
|
|
14
14
|
import "./diagnostic-session-state-CkpWUesj.js";
|
|
15
15
|
import "./redact-DsVjtfGq.js";
|
|
16
16
|
import "./command-queue-K_AfPnin.js";
|
|
17
17
|
import "./image-ops-Dk3eDp_u.js";
|
|
18
|
-
import "./pi-model-discovery-
|
|
19
|
-
import "./chat-content-
|
|
20
|
-
import "./chrome-
|
|
21
|
-
import "./ws-
|
|
22
|
-
import "./skills-
|
|
18
|
+
import "./pi-model-discovery-DiGB5xAq.js";
|
|
19
|
+
import "./chat-content-B7yKTLAY.js";
|
|
20
|
+
import "./chrome-DQ2kyZpc.js";
|
|
21
|
+
import "./ws-CQigqc-W.js";
|
|
22
|
+
import "./skills-D7jLGkoP.js";
|
|
23
23
|
import "./path-alias-guards-nWrE5acE.js";
|
|
24
24
|
import "./errors-B_bbUZmd.js";
|
|
25
25
|
import "./fs-safe-CFEZK0gv.js";
|
|
26
|
-
import "./proxy-env-
|
|
26
|
+
import "./proxy-env-RzbogHFe.js";
|
|
27
27
|
import "./store-CMoTRwPk.js";
|
|
28
28
|
import "./thinking-D6R5MauW.js";
|
|
29
|
-
import "./nudge-
|
|
30
|
-
import "./models-config-
|
|
31
|
-
import "./audio-transcription-runner-
|
|
32
|
-
import "./pi-embedded-utils-
|
|
33
|
-
import "./fetch-
|
|
34
|
-
import "./fetch-guard-
|
|
35
|
-
import "./api-key-rotation-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./markdown-tables-
|
|
38
|
-
import "./ir-
|
|
29
|
+
import "./nudge-DklIe0bB.js";
|
|
30
|
+
import "./models-config-tNRAxYqz.js";
|
|
31
|
+
import "./audio-transcription-runner-Bk1wu6OC.js";
|
|
32
|
+
import "./pi-embedded-utils-D9zLeiKy.js";
|
|
33
|
+
import "./fetch-JiVpsY-F.js";
|
|
34
|
+
import "./fetch-guard-Dn6Z6n6a.js";
|
|
35
|
+
import "./api-key-rotation-1GnreUfv.js";
|
|
36
|
+
import "./chunk-BBj2TedD.js";
|
|
37
|
+
import "./markdown-tables-7TebvIj0.js";
|
|
38
|
+
import "./ir-Bra81NIe.js";
|
|
39
39
|
import "./render-95l30zcf.js";
|
|
40
|
-
import "./commands-registry-
|
|
41
|
-
import "./user-run-recording-
|
|
42
|
-
import "./recorder-
|
|
43
|
-
import "./agent-turn-runner-
|
|
40
|
+
import "./commands-registry-b4F_78R4.js";
|
|
41
|
+
import "./user-run-recording-CTOXtrSm.js";
|
|
42
|
+
import "./recorder-DRV1SIKe.js";
|
|
43
|
+
import "./agent-turn-runner-BkWusthz.js";
|
|
44
44
|
import "./pairing-files-IkbpvWkm.js";
|
|
45
|
-
import "./runs-
|
|
46
|
-
import "./outbound-message-hooks-
|
|
47
|
-
import "./deliver-
|
|
48
|
-
import "./fetch-
|
|
49
|
-
import "./skill-commands-
|
|
50
|
-
import "./tables-
|
|
51
|
-
import "./reply-directives-
|
|
52
|
-
import "./send-
|
|
53
|
-
import "./outbound-attachment-
|
|
54
|
-
import "./send-
|
|
55
|
-
import "./resolve-route-
|
|
56
|
-
import "./session-meta-
|
|
57
|
-
import "./replies-
|
|
58
|
-
import "./manager-
|
|
59
|
-
import "./query-expansion-
|
|
45
|
+
import "./runs-CAO_rrxJ.js";
|
|
46
|
+
import "./outbound-message-hooks-CrrbzX7U.js";
|
|
47
|
+
import "./deliver-BQSIZZRd.js";
|
|
48
|
+
import "./fetch-DQjTi7nc.js";
|
|
49
|
+
import "./skill-commands-CZ8IAEbM.js";
|
|
50
|
+
import "./tables-BFlTcF5k.js";
|
|
51
|
+
import "./reply-directives-D4Hftiqp.js";
|
|
52
|
+
import "./send-FQrlCKRx.js";
|
|
53
|
+
import "./outbound-attachment-BeSAM8qU.js";
|
|
54
|
+
import "./send-T9aTnSyS.js";
|
|
55
|
+
import "./resolve-route-D96zWGGF.js";
|
|
56
|
+
import "./session-meta-CyokAxEY.js";
|
|
57
|
+
import "./replies-BL7cHT2h.js";
|
|
58
|
+
import "./manager-DIIInXxQ.js";
|
|
59
|
+
import "./query-expansion-Dm_RIg6M.js";
|
|
60
60
|
|
|
61
61
|
export { DEFAULT_MODEL, DEFAULT_PROVIDER, ensureAgentWorkspace, loadSessionStore, resolveAgentDir, resolveAgentIdentity, resolveAgentTimeoutMs, resolveAgentWorkspaceDir, resolveSessionFilePath, resolveStorePath, resolveThinkingDefault, runEmbeddedPiAgent, saveSessionStore };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as loadConfig } from "./config-
|
|
1
|
+
import { c as loadConfig } from "./config-CPcuaNsB.js";
|
|
2
2
|
import { _ as resolveStateDir } from "./paths-C7aURmuZ.js";
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-BTMrlJ-R.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import { t as redactSensitiveText } from "./redact-
|
|
7
|
-
import { n as formatErrorChainMessage } from "./errors-
|
|
8
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-BJFJ0deZ.js";
|
|
6
|
+
import { t as redactSensitiveText } from "./redact-D--orJnz.js";
|
|
7
|
+
import { n as formatErrorChainMessage } from "./errors-DnOtx_vg.js";
|
|
8
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BTgGxcIG.js";
|
|
9
9
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-D91c_y3Q.js";
|
|
10
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
10
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CRERUrFK.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
|
|
13
13
|
//#region src/media/local-roots.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-CoIdVzmg.js";
|
|
2
2
|
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
|
-
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
+
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-DynBFcQj.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { U as loadConfig } from "./model-selection-
|
|
6
|
-
import { t as redactSensitiveText } from "./redact-
|
|
7
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
8
|
-
import { n as formatErrorChainMessage } from "./errors-
|
|
5
|
+
import { U as loadConfig } from "./model-selection-_StPBPAp.js";
|
|
6
|
+
import { t as redactSensitiveText } from "./redact-CysJDryP.js";
|
|
7
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-DEUr_rAC.js";
|
|
8
|
+
import { n as formatErrorChainMessage } from "./errors-BzL6hu4G.js";
|
|
9
9
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-Cj-XaaTu.js";
|
|
10
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
10
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BySb6coS.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
|
|
13
13
|
//#region src/media/local-roots.ts
|
|
@@ -2,12 +2,12 @@ import { s as resolveAgentWorkspaceDir } from "./agent-scope-Js3kUihf.js";
|
|
|
2
2
|
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
3
|
import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-DynBFcQj.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { U as loadConfig } from "./model-selection-
|
|
5
|
+
import { U as loadConfig } from "./model-selection-DFW5CGMj.js";
|
|
6
6
|
import { t as redactSensitiveText } from "./redact-DsVjtfGq.js";
|
|
7
7
|
import { c as detectMime, l as extensionForMime } from "./image-ops-Dk3eDp_u.js";
|
|
8
8
|
import { n as formatErrorChainMessage } from "./errors-B_bbUZmd.js";
|
|
9
9
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CWMxbvLB.js";
|
|
10
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
10
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Dn6Z6n6a.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
|
|
13
13
|
//#region src/media/local-roots.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as logWarn, x as logInfo } from "./workspace-
|
|
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 { S as logWarn, x as logInfo } from "./workspace-xnzx7wEV.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-dFmQfhFb.js";
|
|
3
3
|
import { EnvHttpProxyAgent, FormData, ProxyAgent, fetch as fetch$1 } from "undici";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/fetch-timeout.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as logWarn, j as logInfo } from "./agent-scope-
|
|
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 { M as logWarn, j as logInfo } from "./agent-scope-BJFJ0deZ.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-Bw8nAERJ.js";
|
|
3
3
|
import { EnvHttpProxyAgent, FormData, ProxyAgent, fetch as fetch$1 } from "undici";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/fetch-timeout.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as logWarn, j as logInfo } from "./agent-scope-Js3kUihf.js";
|
|
2
|
-
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-RzbogHFe.js";
|
|
3
3
|
import { EnvHttpProxyAgent, FormData, ProxyAgent, fetch as fetch$1 } from "undici";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/fetch-timeout.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-
|
|
1
|
+
import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-D7ywm6_7.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import syncFs from "node:fs";
|
|
4
|
-
import
|
|
4
|
+
import JSON5 from "json5";
|
|
5
5
|
import YAML from "yaml";
|
|
6
6
|
|
|
7
7
|
//#region src/shared/config-eval.ts
|
|
@@ -258,7 +258,7 @@ function resolveOpenClawManifestBlock(params) {
|
|
|
258
258
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
259
259
|
if (!raw) return;
|
|
260
260
|
try {
|
|
261
|
-
const parsed =
|
|
261
|
+
const parsed = JSON5.parse(raw);
|
|
262
262
|
if (!parsed || typeof parsed !== "object") return;
|
|
263
263
|
return readManifestNamespace(parsed);
|
|
264
264
|
} catch {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as expandHomePrefix } from "./paths-C7aURmuZ.js";
|
|
2
|
-
import { $ as sameFileIdentity, at as isPathInside, it as isNotFoundPathError, ot as isSymlinkOpenError, rt as hasNodeErrorCode } from "./subsystem-
|
|
3
|
-
import { M as logWarn } from "./agent-scope-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
2
|
+
import { $ as sameFileIdentity, at as isPathInside, it as isNotFoundPathError, ot as isSymlinkOpenError, rt as hasNodeErrorCode } from "./subsystem-BTMrlJ-R.js";
|
|
3
|
+
import { M as logWarn } from "./agent-scope-BJFJ0deZ.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-B9AcbQl6.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { constants } from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import fs$1 from "node:fs/promises";
|
|
10
10
|
import { pipeline } from "node:stream/promises";
|
|
11
11
|
|
|
12
12
|
//#region src/infra/fs-safe.ts
|
|
@@ -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
|
|
28
|
+
home = await fs$1.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
|
|
34
|
+
if ((await fs$1.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
|
|
40
|
+
handle = await fs$1.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(),
|
|
48
|
+
const [stat, lstat] = await Promise.all([handle.stat(), fs$1.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
|
|
54
|
-
const realStat = await
|
|
53
|
+
const realPath = await fs$1.realpath(filePath);
|
|
54
|
+
const realStat = await fs$1.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
|
|
72
|
+
rootReal = await fs$1.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
|
|
173
|
+
const tempHandle = await fs$1.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
|
|
183
|
+
const rootWithSep = ensureTrailingSep(await fs$1.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
|
|
194
|
+
return await fs$1.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
|
|
200
|
+
return await fs$1.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
|
|
215
|
+
if (params.mkdir !== false) await fs$1.mkdir(path.dirname(resolved), { recursive: true });
|
|
216
216
|
let ioPath = resolved;
|
|
217
217
|
try {
|
|
218
|
-
const resolvedRealPath = await
|
|
218
|
+
const resolvedRealPath = await fs$1.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
|
|
230
|
+
handle = await fs$1.open(ioPath, OPEN_WRITE_EXISTING_FLAGS, fileMode);
|
|
231
231
|
} catch (err) {
|
|
232
232
|
if (!isNotFoundPathError(err)) throw err;
|
|
233
|
-
handle = await
|
|
233
|
+
handle = await fs$1.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
|
|
247
|
+
const lstat = await fs$1.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
|
|
255
|
+
const realStat = await fs$1.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
|
|
270
|
+
if (cleanupCreatedPath) await fs$1.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
|
|
293
|
+
await fs$1.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
|
|
306
|
+
if (tempPath) await fs$1.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
|
|
334
|
+
if (target?.createdForWrite) await fs$1.rm(target.openedRealPath, { force: true }).catch(() => {});
|
|
335
335
|
throw err;
|
|
336
336
|
} finally {
|
|
337
337
|
if (!sourceClosedByStream) await source.handle.close().catch(() => {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
3
|
-
import { S as logWarn } from "./workspace-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
2
|
+
import { B as hasNodeErrorCode, H as isPathInside, I as sameFileIdentity, U as isSymlinkOpenError, V as isNotFoundPathError } from "./subsystem-DynBFcQj.js";
|
|
3
|
+
import { S as logWarn } from "./workspace-xnzx7wEV.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-aXY57qPv.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { constants } from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as runExec } from "./agent-scope-
|
|
2
|
-
import path from "node:path";
|
|
1
|
+
import { D as runExec } from "./agent-scope-BJFJ0deZ.js";
|
|
3
2
|
import os from "node:os";
|
|
3
|
+
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import { fileTypeFromBuffer } from "file-type";
|
|
6
6
|
|