@lawpath-tech/openclaw 2026.2.21-32 → 2026.2.21-33
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/{accounts-E1DMCEDO.js → accounts-BQX482gP.js} +1 -1
- package/dist/{accounts-Dl14M6E6.js → accounts-CAR30ERb.js} +1 -1
- package/dist/{accounts-D8ryuxvJ.js → accounts-CGBT0wQ4.js} +7 -7
- package/dist/{acp-cli-hedESiET.js → acp-cli-DZV917OP.js} +6 -6
- package/dist/{agent-scope-B6jLdNuI.js → agent-scope-BGlpyppa.js} +18 -18
- package/dist/{agents-DWpMpnrU.js → agents-B1Ai7rsS.js} +4 -4
- package/dist/{agents.config-DfN81iaS.js → agents.config-CxHnl-lL.js} +2 -2
- package/dist/{agents.config-bQuerf1-.js → agents.config-DX3tDviB.js} +1 -1
- package/dist/{api-key-rotation-ddrC-1k5.js → api-key-rotation-CMe3cUAn.js} +1 -1
- package/dist/{audio-preflight-DRE31Ab_.js → audio-preflight-Djsieqbl.js} +28 -28
- package/dist/{audit-DqzfLnre.js → audit-W6GUNtGq.js} +23 -23
- package/dist/{auth-choice-BWs44j21.js → auth-choice-CW81kzG9.js} +8 -8
- package/dist/{auth-choice-CNEPjZq2.js → auth-choice-DKrgElus.js} +1 -1
- package/dist/{auth-token-Il_1hz__.js → auth-token-3sJLQq8Y.js} +1 -1
- package/dist/{banner-CxaRxgic.js → banner-B3qK6V55.js} +1 -1
- package/dist/{bindings-D_90DJ1-.js → bindings-D_OoALBE.js} +1 -1
- package/dist/{browser-cli-DRksx_yW.js → browser-cli-pa0mgoQY.js} +9 -9
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/{call-CYa4YbMh.js → call-BVSmc2vl.js} +9 -9
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DOP9meV_.js → channel-options-CvSrxm2D.js} +1 -1
- package/dist/{channel-options-731cZrV3.js → channel-options-UCu5_Nv-.js} +2 -2
- package/dist/{channel-selection-NCqPAi5U.js → channel-selection-B3CpzNsC.js} +1 -1
- package/dist/{channel-web-BGJ5ln5L.js → channel-web-BUJggj7Y.js} +17 -17
- package/dist/{channels-cli-BSR5Ss_g.js → channels-cli-B5TJMyaR.js} +75 -75
- package/dist/{channels-cli-D3RDDRf1.js → channels-cli-CGweC0NS.js} +4 -4
- package/dist/{channels-status-issues-CNE14g1e.js → channels-status-issues-C4_sbL0E.js} +1 -1
- package/dist/{chrome-BlXdvPOB.js → chrome-C9MCXK8d.js} +2 -2
- package/dist/{clawbot-cli-__trjQJ4.js → clawbot-cli-B2jNAgQu.js} +4 -4
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DnIh8_UI.js → cli-B1suYn5Q.js} +62 -62
- package/dist/{cli-C7e7H1JP.js → cli-BFVjC6gz.js} +1 -1
- package/dist/{client-BW8Wuj5N.js → client-DkL-GDcp.js} +1 -1
- package/dist/{command-registry-Q4A7-DBA.js → command-registry-C3Cb6_lT.js} +9 -9
- package/dist/{commands-KvUzKZ-E.js → commands-DHoTLUfu.js} +1 -1
- package/dist/{commands-registry-DVVMuhaG.js → commands-registry-C6MwKIm9.js} +3 -3
- package/dist/{completion-cli-JhFn-BzZ.js → completion-cli-CiR_bu8-.js} +12 -12
- package/dist/{completion-cli-dC9YBc-k.js → completion-cli-D-U8-xK-.js} +2 -2
- package/dist/{config-JupjCURB.js → config-CkqfHk27.js} +2 -2
- package/dist/{config-cli-DOvNIX0v.js → config-cli-BOhut0nG.js} +4 -4
- package/dist/{config-cli-DMLSe-zW.js → config-cli-CsmTCdxD.js} +1 -1
- package/dist/{config-guard-5XdCrtj_.js → config-guard-C5fqJ2Ra.js} +12 -12
- package/dist/{config-validation-B1WJ3f4s.js → config-validation-cyW76mmN.js} +1 -1
- package/dist/{configure-Bvsehc2l.js → configure-B7NUZjG2.js} +15 -15
- package/dist/{configure-DjTsdvi-.js → configure-BWfLMNPf.js} +3 -3
- package/dist/{control-service-C7XguOvd.js → control-service-CPT8eogY.js} +4 -4
- package/dist/{control-ui-assets-BLVZXE2I.js → control-ui-assets-BcSek9LQ.js} +1 -1
- package/dist/{cron-cli-DJY2332p.js → cron-cli-B8A_gdlC.js} +10 -10
- package/dist/{daemon-cli-BWUQX0oT.js → daemon-cli-BY4RqUnr.js} +11 -11
- package/dist/{daemon-runtime-DWX-qIBl.js → daemon-runtime-b5AIw6-c.js} +10 -10
- package/dist/{deliver-DKhy3kV4.js → deliver-DPIPJHQH.js} +7 -7
- package/dist/{devices-cli-D4oN5nE1.js → devices-cli-lm3S1JQu.js} +6 -6
- package/dist/{diagnostics-DqqmUDc7.js → diagnostics-BTTjVvNB.js} +5 -5
- package/dist/{directory-cli-Cn5w5bQ0.js → directory-cli-BV3bixZh.js} +7 -7
- package/dist/{dm-policy-shared-CysWxa2H.js → dm-policy-shared-CrbkZ-FV.js} +2 -2
- package/dist/{dns-cli-CYB5gA5O.js → dns-cli-D7X1eTm3.js} +3 -3
- package/dist/{dock-CX_o0bdi.js → dock-B1xpMkYP.js} +4 -4
- package/dist/{docs-cli-Dsn3U8-1.js → docs-cli-C_3NO2uV.js} +1 -1
- package/dist/{doctor-completion-ZNTlXnGL.js → doctor-completion-CRCM30Gd.js} +1 -1
- package/dist/{doctor-completion-zUNacbyu.js → doctor-completion-GAbf1D6s.js} +2 -2
- package/dist/{doctor-config-flow-C9h7ENJ-.js → doctor-config-flow-BB3nWQcZ.js} +10 -10
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-BXXdOl4u.js → exec-approvals-cli-TT3Gh9kR.js} +13 -13
- package/dist/extensionAPI.js +1 -1
- package/dist/{fs-safe-CTDvb1DF.js → fs-safe-CUjO1ca2.js} +6 -6
- package/dist/{gateway-cli-B8-2FWEZ.js → gateway-cli-DGPCB6rN.js} +8 -8
- package/dist/{gateway-cli-BXP02v7b.js → gateway-cli-QMubBYii.js} +132 -132
- package/dist/{gateway-rpc-CqPT9Cep.js → gateway-rpc-BGGmDgbQ.js} +1 -1
- package/dist/{health-BFLhZBCV.js → health-CwpYY0fN.js} +13 -13
- package/dist/{health-Bm_bIcyw.js → health-DR30gLMN.js} +1 -1
- package/dist/{hooks-cli-DyN1Bq_w.js → hooks-cli-DNwlE26g.js} +2 -2
- package/dist/{hooks-cli-BVjpIkaS.js → hooks-cli-DlkiBMJi.js} +76 -76
- package/dist/{image-DtVdv4CQ.js → image-DC9YnAwO.js} +3 -3
- package/dist/{image-ops-Uvt51OHH.js → image-ops-B4PbaJHR.js} +10 -10
- package/dist/index.js +72 -72
- package/dist/{inspect-VKHaN3HT.js → inspect-gLKB4R6Z.js} +4 -4
- package/dist/{install-safe-path-Qqr_t_tH.js → install-safe-path-tCLiMpmO.js} +11 -11
- package/dist/{installs-BamQ1KDR.js → installs-Bbb02byQ.js} +10 -10
- package/dist/{ir-1SG-TkUZ.js → ir-D72mYI93.js} +6 -6
- package/dist/{lifecycle-core-DZJF3omV.js → lifecycle-core-DNgy-uKO.js} +5 -5
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{local-roots-25wkka6O.js → local-roots-B6Q8Hrfc.js} +2 -2
- package/dist/{login-BThY9qqp.js → login-Bz2k49Y4.js} +3 -3
- package/dist/{login-qr-BOOn03RH.js → login-qr-L9yhuI9H.js} +5 -5
- package/dist/{logs-cli-DoDfF8hD.js → logs-cli-B2PPoAkv.js} +7 -7
- package/dist/{manager-BVtzk7_v.js → manager-CDo24VZE.js} +13 -13
- package/dist/{markdown-tables-MNYCbYg1.js → markdown-tables-CXWxrKp3.js} +1 -1
- package/dist/{memory-cli-CS7LI30B.js → memory-cli-8SCKR9xc.js} +12 -12
- package/dist/{model-MOoXNngW.js → model-BKG0edkX.js} +1 -1
- package/dist/{model-catalog-CzLbr1ZD.js → model-catalog-CjwzHKkB.js} +4 -4
- package/dist/{model-picker-bpc3jJ5m.js → model-picker-NGiZaAei.js} +3 -3
- package/dist/{model-selection-C1pdWy7b.js → model-selection-0qDmOMXI.js} +9 -9
- package/dist/{models-Bd3CLEWM.js → models-DVkqCyTw.js} +2 -2
- package/dist/{models-cli-4QX1LFRs.js → models-cli-BEkmRLcC.js} +72 -72
- package/dist/{models-cli-D__CoxU_.js → models-cli-DVKgOKux.js} +3 -3
- package/dist/{models-config-BVp1ZtTh.js → models-config-CTi1zIkq.js} +7 -7
- package/dist/{node-cli-D-N_WPoP.js → node-cli-Cqkqlb01.js} +28 -28
- package/dist/{node-service-BESGjvfV.js → node-service-YmmWwF_4.js} +1 -1
- package/dist/{nodes-cli-Cn4uY_Gx.js → nodes-cli-xRiWzu3G.js} +10 -10
- package/dist/{nodes-screen-kFzB7013.js → nodes-screen-C-rbZoYt.js} +4 -4
- package/dist/{npm-registry-spec-pqZV9KaL.js → npm-registry-spec-Dw7Zv5pY.js} +9 -9
- package/dist/{onboard-DJUKlsWz.js → onboard-BS7ZSQTR.js} +13 -13
- package/dist/{onboard-DDzVmEvx.js → onboard-D9z9OO_A.js} +2 -2
- package/dist/{onboard-channels-BqW3maPJ.js → onboard-channels-CUuKFX-y.js} +5 -5
- package/dist/{onboard-channels-CrfL2B6W.js → onboard-channels-SRbD8DVG.js} +1 -1
- package/dist/{onboard-custom-D7KcpLUZ.js → onboard-custom-KUI3ky6Y.js} +3 -3
- package/dist/{onboard-helpers-C2-IAGyl.js → onboard-helpers-CuawFqeV.js} +8 -8
- package/dist/{onboard-hooks-Cf_rZ0y2.js → onboard-hooks-Cjnt0UN3.js} +1 -1
- package/dist/{onboard-remote-DujGEJSZ.js → onboard-remote-ClWpZWND.js} +1 -1
- package/dist/{onboard-skills-BCOMycP2.js → onboard-skills-wCr1UcGc.js} +4 -4
- package/dist/{onboarding-w8peVpJ9.js → onboarding-CQRQ7bCq.js} +13 -13
- package/dist/{onboarding-0IAGtYhr.js → onboarding-DVBEYCod.js} +3 -3
- package/dist/{onboarding.finalize-CwtvbQBP.js → onboarding.finalize-BRewG-HX.js} +74 -74
- package/dist/{onboarding.finalize-De4it5U3.js → onboarding.finalize-CTF-nyL8.js} +6 -6
- package/dist/{onboarding.gateway-config-BJ0SMGbj.js → onboarding.gateway-config-7sVZcOhj.js} +14 -14
- package/dist/{openai-model-default-DagaQbb0.js → openai-model-default-CZOgt9C7.js} +2 -2
- package/dist/{openclaw-root-CbWxAStx.js → openclaw-root-CQJwyH9q.js} +2 -2
- package/dist/{outbound-DPGxP4j6.js → outbound-BiC9-qyo.js} +4 -4
- package/dist/{plugin-sdk/outbound-attachment-Dukb2BCs.js → outbound-attachment-91Q9pKkZ.js} +2 -2
- package/dist/{pairing-cli-BZwhRsWv.js → pairing-cli-B5reDhJF.js} +8 -8
- package/dist/{pairing-labels-Cf9ie2Yo.js → pairing-labels-UbwdcASX.js} +1 -1
- package/dist/{pairing-store-BzMeXbOB.js → pairing-store-IkE0_gB1.js} +2 -2
- package/dist/{pairing-token-DAVfcYo5.js → pairing-token-DGufCZxz.js} +7 -7
- package/dist/{paths-BsnfCNkx.js → paths-CIvEoL0m.js} +1 -1
- package/dist/{pi-auth-json-BBbOI_P4.js → pi-auth-json-C5hwfgoJ.js} +3 -3
- package/dist/{pi-embedded-CIsGkiaB.js → pi-embedded-BqyWOcTK.js} +3 -3
- package/dist/{pi-embedded-helpers-B9uwWqnh.js → pi-embedded-helpers-BDEpQxcD.js} +6 -6
- package/dist/{pi-embedded-lJXJAe8z.js → pi-embedded-rXq7jDOy.js} +3 -3
- package/dist/{pi-tools.policy-BU3gaxu3.js → pi-tools.policy-CrKxTriv.js} +4 -4
- package/dist/{plugin-auto-enable-Dkg7tNsW.js → plugin-auto-enable-CU5zcL-D.js} +2 -2
- package/dist/{plugin-registry-DjJ5pV-y.js → plugin-registry-Bp0OjK16.js} +1 -1
- package/dist/{plugin-registry-BNUYtj9H.js → plugin-registry-Ca9kiZbZ.js} +3 -3
- package/dist/plugin-sdk/{accounts-CNg4Pivg.js → accounts-CIV6d4kn.js} +3 -3
- package/dist/plugin-sdk/{accounts-BdyAJ80w.js → accounts-cFYVb3Ir.js} +1 -1
- package/dist/plugin-sdk/{accounts-CDDBR5Pk.js → accounts-owMdcC84.js} +1 -1
- package/dist/plugin-sdk/{active-listener-C2nnC9Ax.js → active-listener-n6hyqnXA.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-CtPfsirh.js → agent-scope-DNY1MYCy.js} +2 -2
- package/dist/plugin-sdk/{agent-scope-BjU_kuyW.js → agent-scope-KjIvGpFh.js} +19 -19
- package/dist/plugin-sdk/{api-key-rotation-R4AkTIjD.js → api-key-rotation-nmjAMTZA.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BAMNt6M5.js → audio-preflight-BkbKy5kx.js} +24 -24
- package/dist/plugin-sdk/{bindings-BoFVi5SB.js → bindings-CopQpHHX.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-t_OI1MQf.js → channel-activity-CrDvXjCQ.js} +1 -1
- package/dist/plugin-sdk/{channel-web-hWtosBa_.js → channel-web-i7Q0e2xL.js} +22 -22
- package/dist/plugin-sdk/{chrome-D0tUj9ji.js → chrome-CrOYUXQ2.js} +3 -3
- package/dist/plugin-sdk/{chunk-CoyesYaI.js → chunk-D4rztYS_.js} +1 -1
- package/dist/plugin-sdk/{command-format-BZHLj2Pv.js → command-format-A8fPp85k.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-DhpIXuI8.js → commands-registry-BgL5BgCb.js} +4 -4
- package/dist/plugin-sdk/{config-C-kB5yPz.js → config-CpE4TWH0.js} +9 -9
- package/dist/plugin-sdk/{deliver-BHg_hqJG.js → deliver-DTKyGKVr.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-Bkobf9sL.js → diagnostic-AkXUmNj3.js} +1 -1
- package/dist/plugin-sdk/{image-DJgspIhI.js → image-D-2tr3lg.js} +4 -4
- package/dist/plugin-sdk/{image-ops-BeZ1nzVS.js → image-ops-D4rLqyFG.js} +1 -1
- package/dist/plugin-sdk/index.js +53 -53
- package/dist/plugin-sdk/{ir-CRPo3dMY.js → ir-hakANnEW.js} +4 -4
- package/dist/plugin-sdk/{local-roots-C5Ju-AZh.js → local-roots-CnaI2qJk.js} +3 -3
- package/dist/plugin-sdk/{login-ZAWRtiUn.js → login-CcPkuK_e.js} +7 -7
- package/dist/plugin-sdk/{login-qr-Vep4Qyfk.js → login-qr-C6rEbZ_4.js} +9 -9
- package/dist/plugin-sdk/{manager-BiSIuKTu.js → manager-D0UeotCy.js} +8 -8
- package/dist/plugin-sdk/{manager-BBcNMx7F.js → manager-DeHKg0Ym.js} +28 -28
- package/dist/plugin-sdk/{manifest-registry-DJWLGnsy.js → manifest-registry-COeXOYi0.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-D3ber0Yy.js → markdown-tables-Bf31F9r6.js} +1 -1
- package/dist/plugin-sdk/memory-host-search.js +4 -4
- package/dist/plugin-sdk/{message-channel-BvbVXKrt.js → message-channel-CMtCA18K.js} +1 -1
- package/dist/plugin-sdk/{model-selection-QOKxGwpD.js → model-selection-CneSW_JC.js} +4 -4
- package/dist/plugin-sdk/{outbound-simNZ392.js → outbound-ChKX7wv_.js} +7 -7
- package/dist/{outbound-attachment-D07lPNUZ.js → plugin-sdk/outbound-attachment-1oBost2D.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-DjRxrq8j.js → pi-auth-json-DfDP_Pzq.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-onFghmXi.js → pi-embedded-helpers-idRp2oNz.js} +17 -17
- package/dist/plugin-sdk/{plugins-Cmzpj_lq.js → plugins-CCHKO6PS.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-MetkkJzy.js → pw-ai-DC87yDnd.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-B5NFEjJd.js → qmd-manager-Ci6Ood2P.js} +2 -2
- package/dist/plugin-sdk/{qmd-manager-CD1M3q9a.js → qmd-manager-CnTnX_JH.js} +4 -4
- package/dist/plugin-sdk/{registry-BX2vORAB.js → registry-BlMOtcPL.js} +2 -2
- package/dist/plugin-sdk/{replies-_91oZTzt.js → replies-CvKNemz4.js} +3 -3
- package/dist/plugin-sdk/{reply-CKIG0ycG.js → reply-CrBuiTf0.js} +79 -79
- package/dist/plugin-sdk/{reply-prefix-DuegEkbr.js → reply-prefix-G9ruZ2EI.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-CeT5UKn8.js → resolve-outbound-target-D9fgJ-GG.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-DxmOOAQ3.js → resolve-route-yBLQIeuf.js} +3 -3
- package/dist/plugin-sdk/{retry-DOt8b7_o.js → retry-BG4opKt7.js} +1 -1
- package/dist/plugin-sdk/{runner-DycIbJjS.js → runner-BkVA5r9t.js} +9 -9
- package/dist/plugin-sdk/{send-5KyVAcYY.js → send-C40m59QO.js} +10 -10
- package/dist/plugin-sdk/{send-DWnqhh6N.js → send-CgLOABgR.js} +10 -10
- package/dist/plugin-sdk/{send-Du8i1Fom.js → send-CiTMY1uN.js} +7 -7
- package/dist/plugin-sdk/{send-BUW2Leik.js → send-DzgvnkSq.js} +7 -7
- package/dist/plugin-sdk/{send-Fch4vj7_.js → send-b1mZbvoC.js} +6 -6
- package/dist/plugin-sdk/{session-PaIae3bL.js → session-DBbj6znF.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-CNFldYrK.js → skill-commands-Cu6XAfOe.js} +5 -5
- package/dist/plugin-sdk/{skills-CJCz6K_W.js → skills-BTu_-5jA.js} +7 -7
- package/dist/plugin-sdk/{sqlite-Bmy459sE.js → sqlite-CH3lxc5D.js} +1 -1
- package/dist/plugin-sdk/{sqlite-CH_AglGD.js → sqlite-CcSeRdqy.js} +15 -15
- package/dist/plugin-sdk/{store-B_h0hmNL.js → store-DDOdV26p.js} +2 -2
- package/dist/plugin-sdk/{subsystem-DJYuxViY.js → subsystem-DoAZkah-.js} +1 -1
- package/dist/plugin-sdk/{tables-DCBJv1Oa.js → tables-DAJbUPhT.js} +1 -1
- package/dist/plugin-sdk/{target-errors-gEAboF7P.js → target-errors-CeKndUCY.js} +2 -2
- package/dist/plugin-sdk/{thinking-D8Se3YVf.js → thinking-lC2HmTea.js} +5 -5
- package/dist/plugin-sdk/{tokens-Cx0xANZO.js → tokens-Dag82kdi.js} +1 -1
- package/dist/plugin-sdk/{tool-images-CIoUqeS9.js → tool-images-D_St2NkT.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-B_Opna2S.js → tool-loop-detection-BAz1GNFQ.js} +2 -2
- package/dist/plugin-sdk/web-DXbKqGiu.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-DqfQYPke.js → whatsapp-actions-CicFq_6w.js} +21 -21
- package/dist/{plugins-BYw4LpqC.js → plugins-DufH79A4.js} +2 -2
- package/dist/{plugins-cli-CKU99tGc.js → plugins-cli-B54I3YDp.js} +71 -71
- package/dist/{plugins-cli-DBrRLw_b.js → plugins-cli-DQqPpkDg.js} +2 -2
- package/dist/{ports-CbYVfAGi.js → ports-B6fsVJW2.js} +1 -1
- package/dist/{ports-CJyNmOL8.js → ports-tyVdO5z0.js} +2 -2
- package/dist/{program-CuRfrHul.js → program-CiVPUyGe.js} +7 -7
- package/dist/{program-context-Ct_MVt2A.js → program-context-B8jVIvqn.js} +40 -40
- package/dist/{prompt-select-styled-BhdDmaM8.js → prompt-select-styled-DP6ORKEH.js} +4 -4
- package/dist/{prompt-select-styled-Cb9hZTTU.js → prompt-select-styled-XJNDuVI-.js} +37 -37
- package/dist/{provider-auth-helpers-CPkc9hAj.js → provider-auth-helpers-BvdnFgmZ.js} +1 -1
- package/dist/{provider-auth-helpers-B7bEwRrS.js → provider-auth-helpers-GlPRMdgU.js} +5 -5
- package/dist/{push-apns-BqDXb4kj.js → push-apns-4PMWZHdd.js} +4 -4
- package/dist/{push-apns-Cor1JBvm.js → push-apns-BLl8QvkS.js} +1 -1
- package/dist/{pw-ai-CWMnNfVs.js → pw-ai-fTf_Sq93.js} +7 -7
- package/dist/{qmd-manager-D72OxpMn.js → qmd-manager-CNVBA7OI.js} +18 -18
- package/dist/{qr-cli-jnAlWxJ1.js → qr-cli-BQpNL00w.js} +1 -1
- package/dist/{register.agent-CPhQWbIL.js → register.agent-DMDB7XFY.js} +6 -6
- package/dist/{register.agent-BY4qQIyM.js → register.agent-O8MfanIY.js} +81 -81
- package/dist/{register.configure-d_7CE6cU.js → register.configure-BnK5Jcux.js} +6 -6
- package/dist/register.configure-z-iZ8GQq.js +147 -0
- package/dist/{register.maintenance-BiQeKBPQ.js → register.maintenance-BnFA8dD9.js} +84 -84
- package/dist/{register.maintenance-CQVF8TPW.js → register.maintenance-DSLAHGdZ.js} +8 -8
- package/dist/{register.message-CprmJPCV.js → register.message-BEBbZm3E.js} +63 -63
- package/dist/{register.message-5XIQHlJd.js → register.message-Diwl2TLo.js} +2 -2
- package/dist/{register.onboard-D4hhxM8J.js → register.onboard-Bc4G3TMS.js} +4 -4
- package/dist/{register.onboard-DpvOjkyQ.js → register.onboard-gF_aeZ9o.js} +74 -74
- package/dist/{register.setup-MPlYCmF_.js → register.setup-B4r3oTHQ.js} +77 -77
- package/dist/{register.setup-D3PpeeN2.js → register.setup-CdWPBfRb.js} +4 -4
- package/dist/{register.status-health-sessions-BUzgM9fv.js → register.status-health-sessions-gEelqg9y.js} +75 -75
- package/dist/{register.status-health-sessions-BE5frGYt.js → register.status-health-sessions-gHKOUBxw.js} +3 -3
- package/dist/{register.subclis-BVUvjO4p.js → register.subclis-DflQa27k.js} +9 -9
- package/dist/{replies-BVBgaEtE.js → replies-BdkHHO5V.js} +1 -1
- package/dist/{reply-C7XZ5Kp3.js → reply-CM9fxt2r.js} +132 -132
- package/dist/{reply-prefix-CJc9NzGX.js → reply-prefix-CbuTBmdm.js} +1 -1
- package/dist/{resolve-route-C5pUt_LC.js → resolve-route-DuqgZ7wS.js} +2 -2
- package/dist/{routes-BgjaVwmu.js → routes-Bh-1i4ub.js} +8 -8
- package/dist/{rpc-DrpAw2Te.js → rpc-RAW16k0Y.js} +1 -1
- package/dist/{run-main-CmSuw5Re.js → run-main-3miuYYBs.js} +14 -14
- package/dist/{runner-fLI-fZ-v.js → runner-CXGYviGa.js} +20 -20
- package/dist/{sandbox-B1lVufmT.js → sandbox-Dbz4ladn.js} +18 -18
- package/dist/{sandbox-cli--odc2cPK.js → sandbox-cli-Dx1942n8.js} +20 -20
- package/dist/{security-cli-s6yE26pJ.js → security-cli-Ci7ujUBk.js} +36 -36
- package/dist/{send-YdmCYGSj.js → send-BGmblGeb.js} +6 -6
- package/dist/{send-_y-b5SXH.js → send-DUc9Jw32.js} +4 -4
- package/dist/{send-UJWeL6fz.js → send-ElgbtTa_.js} +6 -6
- package/dist/{send-DAb8zkAc.js → send-H5TFGeHl.js} +6 -6
- package/dist/{send-BilxFvrd.js → send-i695V0Ow.js} +13 -13
- package/dist/{server-context-DFBpyKBE.js → server-context-BN_KGt0e.js} +5 -5
- package/dist/{server-node-events-DeVBy3RG.js → server-node-events-BcfA38Ht.js} +2 -2
- package/dist/{server-node-events-E7ENYs3y.js → server-node-events-DzAfZuLY.js} +63 -63
- package/dist/{service-Bs5m4_g0.js → service-x8sNoic1.js} +15 -15
- package/dist/{session-Gi1pc_jn.js → session-SFd4vyTd.js} +2 -2
- package/dist/{session-dirs-Dz06Isny.js → session-dirs-BdEl6HTu.js} +16 -16
- package/dist/{session-dirs-DMMeC5kT.js → session-dirs-BeIjLerM.js} +1 -1
- package/dist/{sessions-fj33u4f-.js → sessions-CwvGRwvW.js} +13 -13
- package/dist/{shared-BYm87AKE.js → shared-BlqeHl3I.js} +1 -1
- package/dist/{shared-Btbxw_J6.js → shared-D-u4KNkt.js} +3 -3
- package/dist/{skill-commands-27Clp6Hw.js → skill-commands-VCmL7mMC.js} +5 -5
- package/dist/{skill-scanner-BRf3FyA6.js → skill-scanner-CMBwwxis.js} +5 -5
- package/dist/{skills-DO1RiQMB.js → skills-DhT6my9R.js} +4 -4
- package/dist/{skills-cli-D8Z6O8tz.js → skills-cli-AXXW1-ib.js} +7 -7
- package/dist/{skills-install-D2uuaBF9.js → skills-install-CHhkAUEW.js} +3 -3
- package/dist/{skills-status-C9NLYboA.js → skills-status-B90dNffv.js} +1 -1
- package/dist/{sqlite-DCO2j-0b.js → sqlite-CzeIEe5A.js} +12 -12
- package/dist/{status-DUJLCUGg.js → status-B0MQkmRx.js} +2 -2
- package/dist/{status-DppGMZ2s.js → status-CgApQy5C.js} +3 -3
- package/dist/{status-Di2Pqiji.js → status-DpOLEQn-.js} +1 -1
- package/dist/{status-DQmoPN3T.js → status-dZ2UgRzN.js} +25 -25
- package/dist/{status.update-CkYiGnzE.js → status.update-BdxnLoXT.js} +3 -3
- package/dist/{store-CLuh0zX0.js → store-YBnR7qvG.js} +5 -5
- package/dist/{subagent-registry-D3Pj0bnZ.js → subagent-registry-CEyaZMV5.js} +3 -3
- package/dist/{system-cli-DQpLuBbA.js → system-cli-CNufxt6H.js} +11 -11
- package/dist/{systemd-Blg-bgkO.js → systemd-_79iBiaB.js} +5 -5
- package/dist/{systemd-hints-pRBdkBPI.js → systemd-hints--ykZ9med.js} +6 -6
- package/dist/{systemd-linger-DqOrhpC-.js → systemd-linger--ZF5kAeJ.js} +1 -1
- package/dist/{tables-DhRyfXvl.js → tables-LYKSFoqx.js} +1 -1
- package/dist/{target-errors-DKUMw1tA.js → target-errors-BrrPOPT5.js} +4 -4
- package/dist/{tool-images-Cdj7iZ0t.js → tool-images-BCkPMulQ.js} +1 -1
- package/dist/{tui-DbvXHepE.js → tui-BfllwI0b.js} +7 -7
- package/dist/{tui-cli-CIqa9qRn.js → tui-cli-DM4ahQxS.js} +28 -28
- package/dist/{update-CqhqeDij.js → update-BNGNVRaT.js} +3 -3
- package/dist/{update-check-DOy5cGkD.js → update-check-CEFJiPeh.js} +5 -5
- package/dist/{update-cli-CsicqPiK.js → update-cli-COdYp-Y5.js} +8 -8
- package/dist/{update-cli-DJIsdQeJ.js → update-cli-Y2wT8mXS.js} +94 -94
- package/dist/{web-DRLO5z6-.js → web-CQ4AF_Y7.js} +1 -1
- package/dist/web-Cp6O0VTJ.js +109 -0
- package/dist/{web-DShT68Ix.js → web-D8FEwRAX.js} +1 -1
- package/dist/{web-EGziWSH9.js → web-c0XVFCZq.js} +1 -1
- package/dist/{webhooks-cli-BJ1WiH3W.js → webhooks-cli-Ay0jR658.js} +4 -4
- package/dist/{whatsapp-actions-lSqVUZ_h.js → whatsapp-actions-Dsvkb9dr.js} +15 -15
- package/dist/{with-timeout-OwJVCBFG.js → with-timeout-n3bwhefQ.js} +1 -1
- package/dist/{workspace-dirs-CuYuE5F1.js → workspace-dirs-DbX5fBAC.js} +1 -1
- package/dist/{wsl-BbXxnokd.js → wsl-C4424szg.js} +2 -2
- package/package.json +1 -1
- package/dist/plugin-sdk/web-HBE7hmNI.js +0 -65
- package/dist/register.configure-CtqFfgvY.js +0 -147
- package/dist/web-lXypZuaq.js +0 -109
package/dist/index.js
CHANGED
|
@@ -2,120 +2,120 @@
|
|
|
2
2
|
import "./paths-B4BZAPZh.js";
|
|
3
3
|
import { B as theme, P as setVerbose, T as toWhatsappJid, l as escapeRegExp, m as normalizeE164, n as assertWebChannel, z as isRich } from "./utils-BlC2Fskb.js";
|
|
4
4
|
import "./thinking-EAliFiVK.js";
|
|
5
|
-
import { Vt as createDefaultDeps, t as getReplyFromConfig, wt as resolveCommitHash } from "./reply-
|
|
5
|
+
import { Vt as createDefaultDeps, t as getReplyFromConfig, wt as resolveCommitHash } from "./reply-CM9fxt2r.js";
|
|
6
6
|
import "./registry-lBbEkQ26.js";
|
|
7
7
|
import { f as defaultRuntime, r as enableConsoleCapture, u as visibleWidth } from "./subsystem-Cu1fn6xi.js";
|
|
8
8
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-DwGfeG8v.js";
|
|
9
|
-
import "./agent-scope-
|
|
10
|
-
import "./model-selection-
|
|
9
|
+
import "./agent-scope-BGlpyppa.js";
|
|
10
|
+
import "./model-selection-0qDmOMXI.js";
|
|
11
11
|
import "./github-copilot-token-D2zp6kMZ.js";
|
|
12
12
|
import { n as replaceCliName, r as resolveCliName } from "./command-format-DEKzLnLg.js";
|
|
13
13
|
import "./boolean-BsqeuxE6.js";
|
|
14
14
|
import { r as normalizeEnv, t as isTruthyEnvValue } from "./env-C9RBJHeg.js";
|
|
15
15
|
import "./message-channel-DzkrSzpL.js";
|
|
16
|
-
import "./send-
|
|
17
|
-
import { H as VERSION, W as loadDotEnv, i as loadConfig } from "./config-
|
|
16
|
+
import "./send-i695V0Ow.js";
|
|
17
|
+
import { H as VERSION, W as loadDotEnv, i as loadConfig } from "./config-CkqfHk27.js";
|
|
18
18
|
import "./manifest-registry-YRUqEw3J.js";
|
|
19
|
-
import { _ as applyTemplate, u as installUnhandledRejectionHandler } from "./runner-
|
|
20
|
-
import "./image-
|
|
21
|
-
import "./models-config-
|
|
19
|
+
import { _ as applyTemplate, u as installUnhandledRejectionHandler } from "./runner-CXGYviGa.js";
|
|
20
|
+
import "./image-DC9YnAwO.js";
|
|
21
|
+
import "./models-config-CTi1zIkq.js";
|
|
22
22
|
import "./pi-model-discovery-4uUnLc3n.js";
|
|
23
|
-
import "./pi-embedded-helpers-
|
|
24
|
-
import "./sandbox-
|
|
25
|
-
import "./chrome-
|
|
23
|
+
import "./pi-embedded-helpers-BDEpQxcD.js";
|
|
24
|
+
import "./sandbox-Dbz4ladn.js";
|
|
25
|
+
import "./chrome-C9MCXK8d.js";
|
|
26
26
|
import { l as ensureBinary, u as promptYesNo } from "./tailscale-CuVYhW-O.js";
|
|
27
27
|
import "./auth-CxiLRCJi.js";
|
|
28
|
-
import "./server-context-
|
|
28
|
+
import "./server-context-BN_KGt0e.js";
|
|
29
29
|
import "./frontmatter-C_R2lwvR.js";
|
|
30
|
-
import "./skills-
|
|
31
|
-
import "./routes-
|
|
30
|
+
import "./skills-DhT6my9R.js";
|
|
31
|
+
import "./routes-Bh-1i4ub.js";
|
|
32
32
|
import "./redact-f-Q-hFt_.js";
|
|
33
33
|
import { r as formatUncaughtError } from "./errors-BF3TeRH2.js";
|
|
34
|
-
import "./fs-safe-
|
|
35
|
-
import "./paths-
|
|
34
|
+
import "./fs-safe-CUjO1ca2.js";
|
|
35
|
+
import "./paths-CIvEoL0m.js";
|
|
36
36
|
import "./ssrf-BCYMnxkM.js";
|
|
37
|
-
import "./image-ops-
|
|
38
|
-
import "./store-
|
|
39
|
-
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-
|
|
37
|
+
import "./image-ops-B4PbaJHR.js";
|
|
38
|
+
import "./store-YBnR7qvG.js";
|
|
39
|
+
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-tyVdO5z0.js";
|
|
40
40
|
import "./trash-C46e9E61.js";
|
|
41
|
-
import { A as deriveSessionKey, j as resolveSessionKey, l as saveSessionStore, o as loadSessionStore } from "./sessions-
|
|
42
|
-
import "./dock-
|
|
43
|
-
import "./plugins-
|
|
44
|
-
import "./accounts-
|
|
45
|
-
import "./accounts-
|
|
46
|
-
import "./accounts-
|
|
47
|
-
import "./bindings-
|
|
41
|
+
import { A as deriveSessionKey, j as resolveSessionKey, l as saveSessionStore, o as loadSessionStore } from "./sessions-CwvGRwvW.js";
|
|
42
|
+
import "./dock-B1xpMkYP.js";
|
|
43
|
+
import "./plugins-DufH79A4.js";
|
|
44
|
+
import "./accounts-CGBT0wQ4.js";
|
|
45
|
+
import "./accounts-BQX482gP.js";
|
|
46
|
+
import "./accounts-CAR30ERb.js";
|
|
47
|
+
import "./bindings-D_OoALBE.js";
|
|
48
48
|
import "./logging-w5jq5901.js";
|
|
49
|
-
import "./send-
|
|
49
|
+
import "./send-DUc9Jw32.js";
|
|
50
50
|
import { c as resolveStorePath } from "./paths-C6eomcf_.js";
|
|
51
|
-
import "./tool-images-
|
|
51
|
+
import "./tool-images-BCkPMulQ.js";
|
|
52
52
|
import "./tool-display-2OmEbBUF.js";
|
|
53
53
|
import "./fetch-guard-w97sP7Hz.js";
|
|
54
|
-
import "./api-key-rotation-
|
|
55
|
-
import "./local-roots-
|
|
56
|
-
import "./sqlite-
|
|
57
|
-
import "./model-catalog-
|
|
54
|
+
import "./api-key-rotation-CMe3cUAn.js";
|
|
55
|
+
import "./local-roots-B6Q8Hrfc.js";
|
|
56
|
+
import "./sqlite-CzeIEe5A.js";
|
|
57
|
+
import "./model-catalog-CjwzHKkB.js";
|
|
58
58
|
import "./tokens-BDil8-Uk.js";
|
|
59
|
-
import "./with-timeout-
|
|
60
|
-
import "./deliver-
|
|
59
|
+
import "./with-timeout-n3bwhefQ.js";
|
|
60
|
+
import "./deliver-DPIPJHQH.js";
|
|
61
61
|
import "./diagnostic-loJQGh5N.js";
|
|
62
62
|
import "./diagnostic-session-state-CUslJyKP.js";
|
|
63
|
-
import "./send-
|
|
64
|
-
import "./model-
|
|
65
|
-
import "./reply-prefix-
|
|
66
|
-
import "./memory-cli-
|
|
67
|
-
import "./manager-
|
|
63
|
+
import "./send-BGmblGeb.js";
|
|
64
|
+
import "./model-BKG0edkX.js";
|
|
65
|
+
import "./reply-prefix-CbuTBmdm.js";
|
|
66
|
+
import "./memory-cli-8SCKR9xc.js";
|
|
67
|
+
import "./manager-CDo24VZE.js";
|
|
68
68
|
import "./retry-BNSym93Y.js";
|
|
69
|
-
import "./target-errors-
|
|
69
|
+
import "./target-errors-BrrPOPT5.js";
|
|
70
70
|
import "./chunk-ZFvwZqoJ.js";
|
|
71
|
-
import "./markdown-tables-
|
|
72
|
-
import "./ir-
|
|
71
|
+
import "./markdown-tables-CXWxrKp3.js";
|
|
72
|
+
import "./ir-D72mYI93.js";
|
|
73
73
|
import "./render-CXDO_kgw.js";
|
|
74
|
-
import "./commands-
|
|
75
|
-
import "./commands-registry-
|
|
76
|
-
import "./client-
|
|
77
|
-
import "./call-
|
|
78
|
-
import "./pairing-token-
|
|
74
|
+
import "./commands-DHoTLUfu.js";
|
|
75
|
+
import "./commands-registry-C6MwKIm9.js";
|
|
76
|
+
import "./client-DkL-GDcp.js";
|
|
77
|
+
import "./call-BVSmc2vl.js";
|
|
78
|
+
import "./pairing-token-DGufCZxz.js";
|
|
79
79
|
import "./channel-activity-DplV01TN.js";
|
|
80
80
|
import "./fetch-EupTshKr.js";
|
|
81
|
-
import "./tables-
|
|
82
|
-
import "./send-
|
|
83
|
-
import "./pairing-store-
|
|
81
|
+
import "./tables-LYKSFoqx.js";
|
|
82
|
+
import "./send-ElgbtTa_.js";
|
|
83
|
+
import "./pairing-store-IkE0_gB1.js";
|
|
84
84
|
import "./proxy-DU7W9XSc.js";
|
|
85
85
|
import { t as formatDocsLink } from "./links-DHovuBDt.js";
|
|
86
86
|
import "./cli-utils-DN_hM6ov.js";
|
|
87
87
|
import "./help-format-BNbRyxky.js";
|
|
88
88
|
import "./progress-9gCu2IkR.js";
|
|
89
|
-
import "./resolve-route-
|
|
90
|
-
import "./replies-
|
|
91
|
-
import "./skill-commands-
|
|
92
|
-
import "./workspace-dirs-
|
|
93
|
-
import "./outbound-attachment-
|
|
89
|
+
import "./resolve-route-DuqgZ7wS.js";
|
|
90
|
+
import "./replies-BdkHHO5V.js";
|
|
91
|
+
import "./skill-commands-VCmL7mMC.js";
|
|
92
|
+
import "./workspace-dirs-DbX5fBAC.js";
|
|
93
|
+
import "./outbound-attachment-91Q9pKkZ.js";
|
|
94
94
|
import "./delivery-queue-CxDDEWQg.js";
|
|
95
95
|
import "./session-cost-usage-CNxpZ3DJ.js";
|
|
96
|
-
import "./send-
|
|
97
|
-
import "./onboard-helpers-
|
|
96
|
+
import "./send-H5TFGeHl.js";
|
|
97
|
+
import "./onboard-helpers-CuawFqeV.js";
|
|
98
98
|
import "./prompt-style-ChA72PBX.js";
|
|
99
|
-
import "./pairing-labels-
|
|
99
|
+
import "./pairing-labels-UbwdcASX.js";
|
|
100
100
|
import "./exec-approvals-CAr0jd5Q.js";
|
|
101
|
-
import "./nodes-screen-
|
|
102
|
-
import "./control-service-
|
|
101
|
+
import "./nodes-screen-C-rbZoYt.js";
|
|
102
|
+
import "./control-service-CPT8eogY.js";
|
|
103
103
|
import "./stagger-B6VQyn1F.js";
|
|
104
|
-
import "./channel-selection-
|
|
105
|
-
import "./pi-tools.policy-
|
|
106
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
107
|
-
import "./outbound-
|
|
108
|
-
import "./session-
|
|
109
|
-
import "./login-
|
|
104
|
+
import "./channel-selection-B3CpzNsC.js";
|
|
105
|
+
import "./pi-tools.policy-CrKxTriv.js";
|
|
106
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-BUJggj7Y.js";
|
|
107
|
+
import "./outbound-BiC9-qyo.js";
|
|
108
|
+
import "./session-SFd4vyTd.js";
|
|
109
|
+
import "./login-Bz2k49Y4.js";
|
|
110
110
|
import { t as isMainModule } from "./is-main-DrpmTCqv.js";
|
|
111
111
|
import { t as ensureOpenClawCliOnPath } from "./path-env-W6noyCja.js";
|
|
112
112
|
import { t as assertSupportedRuntime } from "./runtime-guard--qRBajR0.js";
|
|
113
|
-
import "./ports-
|
|
113
|
+
import "./ports-B6fsVJW2.js";
|
|
114
114
|
import { a as hasFlag, i as getVerboseFlag, n as getCommandPath, o as hasHelpOrVersion, s as hasRootVersionAlias } from "./argv-iDNY1AU9.js";
|
|
115
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
115
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-B8jVIvqn.js";
|
|
116
116
|
import "./catalog-C7TxlaHu.js";
|
|
117
|
-
import "./plugin-registry-
|
|
118
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
117
|
+
import "./plugin-registry-Ca9kiZbZ.js";
|
|
118
|
+
import { n as resolveCliChannelOptions } from "./channel-options-UCu5_Nv-.js";
|
|
119
119
|
import process$1 from "node:process";
|
|
120
120
|
import { fileURLToPath } from "node:url";
|
|
121
121
|
import { Command } from "commander";
|
|
@@ -509,13 +509,13 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
509
509
|
setVerbose(verbose);
|
|
510
510
|
if (!verbose) process.env.NODE_NO_WARNINGS ??= "1";
|
|
511
511
|
if (commandPath[0] === "doctor" || commandPath[0] === "completion") return;
|
|
512
|
-
const { ensureConfigReady } = await import("./config-guard-
|
|
512
|
+
const { ensureConfigReady } = await import("./config-guard-C5fqJ2Ra.js");
|
|
513
513
|
await ensureConfigReady({
|
|
514
514
|
runtime: defaultRuntime,
|
|
515
515
|
commandPath
|
|
516
516
|
});
|
|
517
517
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
518
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
518
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-Ca9kiZbZ.js").then((n) => n.n);
|
|
519
519
|
ensurePluginRegistryLoaded();
|
|
520
520
|
}
|
|
521
521
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, n as GATEWAY_SERVICE_KIND, r as GATEWAY_SERVICE_MARKER } from "./constants-CEbQvI8z.js";
|
|
2
|
-
import { n as execSchtasks } from "./service-
|
|
2
|
+
import { n as execSchtasks } from "./service-x8sNoic1.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/daemon/inspect.ts
|
|
7
7
|
const EXTRA_MARKERS = [
|
|
@@ -76,14 +76,14 @@ function isLegacyLabel(label) {
|
|
|
76
76
|
}
|
|
77
77
|
async function readDirEntries(dir) {
|
|
78
78
|
try {
|
|
79
|
-
return await
|
|
79
|
+
return await fs.readdir(dir);
|
|
80
80
|
} catch {
|
|
81
81
|
return [];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
async function readUtf8File(filePath) {
|
|
85
85
|
try {
|
|
86
|
-
return await
|
|
86
|
+
return await fs.readFile(filePath, "utf8");
|
|
87
87
|
} catch {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as resolveSafeBaseDir } from "./path-safety-BqPJ8DDQ.js";
|
|
2
2
|
import { createWriteStream } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs$1 from "node:fs/promises";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
7
7
|
import { Readable, Transform } from "node:stream";
|
|
@@ -69,9 +69,9 @@ function resolveArchiveKind(filePath) {
|
|
|
69
69
|
async function resolvePackedRootDir(extractDir) {
|
|
70
70
|
const direct = path.join(extractDir, "package");
|
|
71
71
|
try {
|
|
72
|
-
if ((await
|
|
72
|
+
if ((await fs$1.stat(direct)).isDirectory()) return direct;
|
|
73
73
|
} catch {}
|
|
74
|
-
const dirs = (await
|
|
74
|
+
const dirs = (await fs$1.readdir(extractDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
75
75
|
if (dirs.length !== 1) throw new Error(`unexpected archive layout (dirs: ${dirs.join(", ")})`);
|
|
76
76
|
const onlyDir = dirs[0];
|
|
77
77
|
if (!onlyDir) throw new Error("unexpected archive layout (no package dir found)");
|
|
@@ -144,8 +144,8 @@ async function readZipEntryStream(entry) {
|
|
|
144
144
|
}
|
|
145
145
|
async function extractZip(params) {
|
|
146
146
|
const limits = resolveExtractLimits(params.limits);
|
|
147
|
-
if ((await
|
|
148
|
-
const buffer = await
|
|
147
|
+
if ((await fs$1.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
148
|
+
const buffer = await fs$1.readFile(params.archivePath);
|
|
149
149
|
const zip = await JSZip.loadAsync(buffer);
|
|
150
150
|
const entries = Object.values(zip.files);
|
|
151
151
|
const strip = Math.max(0, Math.floor(params.stripComponents ?? 0));
|
|
@@ -162,21 +162,21 @@ async function extractZip(params) {
|
|
|
162
162
|
originalPath: entry.name
|
|
163
163
|
});
|
|
164
164
|
if (entry.dir) {
|
|
165
|
-
await
|
|
165
|
+
await fs$1.mkdir(outPath, { recursive: true });
|
|
166
166
|
continue;
|
|
167
167
|
}
|
|
168
|
-
await
|
|
168
|
+
await fs$1.mkdir(path.dirname(outPath), { recursive: true });
|
|
169
169
|
budget.startEntry();
|
|
170
170
|
const readable = await readZipEntryStream(entry);
|
|
171
171
|
try {
|
|
172
172
|
await pipeline(readable, createExtractBudgetTransform({ onChunkBytes: budget.addBytes }), createWriteStream(outPath));
|
|
173
173
|
} catch (err) {
|
|
174
|
-
await
|
|
174
|
+
await fs$1.unlink(outPath).catch(() => void 0);
|
|
175
175
|
throw err;
|
|
176
176
|
}
|
|
177
177
|
if (typeof entry.unixPermissions === "number") {
|
|
178
178
|
const mode = entry.unixPermissions & 511;
|
|
179
|
-
if (mode !== 0) await
|
|
179
|
+
if (mode !== 0) await fs$1.chmod(outPath, mode).catch(() => void 0);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -236,14 +236,14 @@ async function extractArchive(params) {
|
|
|
236
236
|
}
|
|
237
237
|
async function fileExists(filePath) {
|
|
238
238
|
try {
|
|
239
|
-
await
|
|
239
|
+
await fs$1.stat(filePath);
|
|
240
240
|
return true;
|
|
241
241
|
} catch {
|
|
242
242
|
return false;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
async function readJsonFile(filePath) {
|
|
246
|
-
const raw = await
|
|
246
|
+
const raw = await fs$1.readFile(filePath, "utf-8");
|
|
247
247
|
return JSON.parse(raw);
|
|
248
248
|
}
|
|
249
249
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as CONFIG_DIR, y as resolveUserPath } from "./utils-BlC2Fskb.js";
|
|
2
2
|
import { i as isPathInside, n as MANIFEST_KEY, r as extensionUsesSkippedScannerPath } from "./legacy-names-u6U1_9U0.js";
|
|
3
|
-
import { a as extractArchive, c as resolveArchiveKind, i as unscopedPackageName, l as resolvePackedRootDir, n as safeDirName, o as fileExists, s as readJsonFile, t as resolveSafeInstallDir } from "./install-safe-path-
|
|
4
|
-
import { a as installPackageDir, i as withTempDir, n as installFromNpmSpecArchive, r as resolveArchiveSourcePath, t as validateRegistryNpmSpec } from "./npm-registry-spec-
|
|
5
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
3
|
+
import { a as extractArchive, c as resolveArchiveKind, i as unscopedPackageName, l as resolvePackedRootDir, n as safeDirName, o as fileExists, s as readJsonFile, t as resolveSafeInstallDir } from "./install-safe-path-tCLiMpmO.js";
|
|
4
|
+
import { a as installPackageDir, i as withTempDir, n as installFromNpmSpecArchive, r as resolveArchiveSourcePath, t as validateRegistryNpmSpec } from "./npm-registry-spec-Dw7Zv5pY.js";
|
|
5
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-CMBwwxis.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fs from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region src/plugins/install.ts
|
|
10
10
|
const defaultLogger = {};
|
|
@@ -116,7 +116,7 @@ async function installPluginFromPackageDir(params) {
|
|
|
116
116
|
logger.warn?.(`Plugin "${pluginId}" code safety scan failed (${String(err)}). Installation continues; run "openclaw security audit --deep" after install.`);
|
|
117
117
|
}
|
|
118
118
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
119
|
-
await
|
|
119
|
+
await fs.mkdir(extensionsDir, { recursive: true });
|
|
120
120
|
const targetDirResult = resolveSafeInstallDir({
|
|
121
121
|
baseDir: extensionsDir,
|
|
122
122
|
id: pluginId,
|
|
@@ -180,7 +180,7 @@ async function installPluginFromArchive(params) {
|
|
|
180
180
|
const archivePath = archivePathResult.path;
|
|
181
181
|
return await withTempDir("openclaw-plugin-", async (tmpDir) => {
|
|
182
182
|
const extractDir = path.join(tmpDir, "extract");
|
|
183
|
-
await
|
|
183
|
+
await fs.mkdir(extractDir, { recursive: true });
|
|
184
184
|
logger.info?.(`Extracting ${archivePath}…`);
|
|
185
185
|
try {
|
|
186
186
|
await extractArchive({
|
|
@@ -221,7 +221,7 @@ async function installPluginFromDir(params) {
|
|
|
221
221
|
ok: false,
|
|
222
222
|
error: `directory not found: ${dirPath}`
|
|
223
223
|
};
|
|
224
|
-
if (!(await
|
|
224
|
+
if (!(await fs.stat(dirPath)).isDirectory()) return {
|
|
225
225
|
ok: false,
|
|
226
226
|
error: `not a directory: ${dirPath}`
|
|
227
227
|
};
|
|
@@ -243,7 +243,7 @@ async function installPluginFromFile(params) {
|
|
|
243
243
|
error: `file not found: ${filePath}`
|
|
244
244
|
};
|
|
245
245
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
246
|
-
await
|
|
246
|
+
await fs.mkdir(extensionsDir, { recursive: true });
|
|
247
247
|
const pluginId = path.basename(filePath, path.extname(filePath)) || "plugin";
|
|
248
248
|
const pluginIdError = validatePluginId(pluginId);
|
|
249
249
|
if (pluginIdError) return {
|
|
@@ -257,7 +257,7 @@ async function installPluginFromFile(params) {
|
|
|
257
257
|
};
|
|
258
258
|
if (dryRun) return buildFileInstallResult(pluginId, targetFile);
|
|
259
259
|
logger.info?.(`Installing to ${targetFile}…`);
|
|
260
|
-
await
|
|
260
|
+
await fs.copyFile(filePath, targetFile);
|
|
261
261
|
return buildFileInstallResult(pluginId, targetFile);
|
|
262
262
|
}
|
|
263
263
|
async function installPluginFromNpmSpec(params) {
|
|
@@ -303,7 +303,7 @@ async function installPluginFromPath(params) {
|
|
|
303
303
|
ok: false,
|
|
304
304
|
error: `path not found: ${resolved}`
|
|
305
305
|
};
|
|
306
|
-
if ((await
|
|
306
|
+
if ((await fs.stat(resolved)).isDirectory()) return await installPluginFromDir({
|
|
307
307
|
dirPath: resolved,
|
|
308
308
|
extensionsDir: params.extensionsDir,
|
|
309
309
|
timeoutMs: params.timeoutMs,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { F as shouldLogVerbose, M as logVerbose, y as resolveUserPath } from "./utils-BlC2Fskb.js";
|
|
2
|
-
import { r as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
3
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
4
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
2
|
+
import { r as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-CUjO1ca2.js";
|
|
3
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-B4PbaJHR.js";
|
|
4
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-B6Q8Hrfc.js";
|
|
5
5
|
import { a as chunkText } from "./chunk-ZFvwZqoJ.js";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
import MarkdownIt from "markdown-it";
|
|
10
10
|
|
|
11
11
|
//#region src/web/media.ts
|
|
@@ -24,7 +24,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
24
24
|
const roots = localRoots ?? getDefaultLocalRoots();
|
|
25
25
|
let resolved;
|
|
26
26
|
try {
|
|
27
|
-
resolved = await
|
|
27
|
+
resolved = await fs.realpath(mediaPath);
|
|
28
28
|
} catch {
|
|
29
29
|
resolved = path.resolve(mediaPath);
|
|
30
30
|
}
|
|
@@ -41,7 +41,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
41
41
|
for (const root of roots) {
|
|
42
42
|
let resolvedRoot;
|
|
43
43
|
try {
|
|
44
|
-
resolvedRoot = await
|
|
44
|
+
resolvedRoot = await fs.realpath(root);
|
|
45
45
|
} catch {
|
|
46
46
|
resolvedRoot = path.resolve(root);
|
|
47
47
|
}
|
|
@@ -2,13 +2,13 @@ import { d as resolveIsNixMode } from "./paths-B4BZAPZh.js";
|
|
|
2
2
|
import { B as theme, R as colorize, U as getResolvedLoggerSettings, z as isRich } from "./utils-BlC2Fskb.js";
|
|
3
3
|
import { f as defaultRuntime } from "./subsystem-Cu1fn6xi.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-DEKzLnLg.js";
|
|
5
|
-
import { i as loadConfig } from "./config-
|
|
5
|
+
import { i as loadConfig } from "./config-CkqfHk27.js";
|
|
6
6
|
import { c as pickPrimaryLanIPv4 } from "./ws-C7EXRv8z.js";
|
|
7
|
-
import { t as isWSL } from "./wsl-
|
|
7
|
+
import { t as isWSL } from "./wsl-C4424szg.js";
|
|
8
8
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-CEbQvI8z.js";
|
|
9
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
10
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
11
|
-
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints
|
|
9
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-_79iBiaB.js";
|
|
10
|
+
import { s as resolveGatewayLogPaths } from "./service-x8sNoic1.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints--ykZ9med.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-DSdUR1RE.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -4,7 +4,7 @@ import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWork
|
|
|
4
4
|
import "./subsystem-DvzaTaH5.js";
|
|
5
5
|
import "./workspace-BBrPy5so.js";
|
|
6
6
|
import "./tokens-HGSJ1Ptu.js";
|
|
7
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
7
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-rXq7jDOy.js";
|
|
8
8
|
import "./plugins-3wQdZi9n.js";
|
|
9
9
|
import "./accounts-I_wbc6A8.js";
|
|
10
10
|
import "./boolean-B8-BqKGQ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-B4BZAPZh.js";
|
|
2
2
|
import { X as resolvePreferredOpenClawTmpDir } from "./utils-BlC2Fskb.js";
|
|
3
|
-
import { c as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
3
|
+
import { c as resolveAgentWorkspaceDir } from "./agent-scope-BGlpyppa.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-B4PbaJHR.js";
|
|
5
5
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-w97sP7Hz.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
@@ -3,9 +3,9 @@ import { I as success, O as danger, k as info } from "./utils-BlC2Fskb.js";
|
|
|
3
3
|
import { f as defaultRuntime } from "./subsystem-Cu1fn6xi.js";
|
|
4
4
|
import { o as logInfo } from "./exec-DwGfeG8v.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-DEKzLnLg.js";
|
|
6
|
-
import { i as loadConfig } from "./config-
|
|
7
|
-
import { n as resolveWhatsAppAccount, o as logoutWeb } from "./accounts-
|
|
8
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
6
|
+
import { i as loadConfig } from "./config-CkqfHk27.js";
|
|
7
|
+
import { n as resolveWhatsAppAccount, o as logoutWeb } from "./accounts-CGBT0wQ4.js";
|
|
8
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-SFd4vyTd.js";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
|
|
11
11
|
//#region src/web/login.ts
|
|
@@ -3,16 +3,16 @@ import { I as success, O as danger, k as info } from "./utils-BlC2Fskb.js";
|
|
|
3
3
|
import "./registry-lBbEkQ26.js";
|
|
4
4
|
import { f as defaultRuntime } from "./subsystem-Cu1fn6xi.js";
|
|
5
5
|
import { o as logInfo } from "./exec-DwGfeG8v.js";
|
|
6
|
-
import "./agent-scope-
|
|
7
|
-
import "./model-selection-
|
|
6
|
+
import "./agent-scope-BGlpyppa.js";
|
|
7
|
+
import "./model-selection-0qDmOMXI.js";
|
|
8
8
|
import "./github-copilot-token-D2zp6kMZ.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
10
|
import "./env-C9RBJHeg.js";
|
|
11
|
-
import { i as loadConfig } from "./config-
|
|
11
|
+
import { i as loadConfig } from "./config-CkqfHk27.js";
|
|
12
12
|
import "./manifest-registry-YRUqEw3J.js";
|
|
13
|
-
import { m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, u as readWebSelfId } from "./accounts-
|
|
13
|
+
import { m as webAuthExists, n as resolveWhatsAppAccount, o as logoutWeb, u as readWebSelfId } from "./accounts-CGBT0wQ4.js";
|
|
14
14
|
import "./logging-w5jq5901.js";
|
|
15
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
15
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-SFd4vyTd.js";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
17
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
18
18
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -3,21 +3,21 @@ import { B as theme, R as colorize, z as isRich } from "./utils-BlC2Fskb.js";
|
|
|
3
3
|
import "./registry-lBbEkQ26.js";
|
|
4
4
|
import { c as formatLocalIsoWithOffset, m as clearActiveProgressLine } from "./subsystem-Cu1fn6xi.js";
|
|
5
5
|
import "./exec-DwGfeG8v.js";
|
|
6
|
-
import "./agent-scope-
|
|
7
|
-
import "./model-selection-
|
|
6
|
+
import "./agent-scope-BGlpyppa.js";
|
|
7
|
+
import "./model-selection-0qDmOMXI.js";
|
|
8
8
|
import "./github-copilot-token-D2zp6kMZ.js";
|
|
9
9
|
import { t as formatCliCommand } from "./command-format-DEKzLnLg.js";
|
|
10
10
|
import "./boolean-BsqeuxE6.js";
|
|
11
11
|
import "./env-C9RBJHeg.js";
|
|
12
12
|
import "./message-channel-DzkrSzpL.js";
|
|
13
|
-
import "./config-
|
|
13
|
+
import "./config-CkqfHk27.js";
|
|
14
14
|
import "./manifest-registry-YRUqEw3J.js";
|
|
15
|
-
import "./client-
|
|
16
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
17
|
-
import "./pairing-token-
|
|
15
|
+
import "./client-DkL-GDcp.js";
|
|
16
|
+
import { t as buildGatewayConnectionDetails } from "./call-BVSmc2vl.js";
|
|
17
|
+
import "./pairing-token-DGufCZxz.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-DHovuBDt.js";
|
|
19
19
|
import "./progress-9gCu2IkR.js";
|
|
20
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
20
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BGGmDgbQ.js";
|
|
21
21
|
import { t as parseLogLine } from "./parse-log-line-BHCUQaF3.js";
|
|
22
22
|
import { setTimeout } from "node:timers/promises";
|
|
23
23
|
|
|
@@ -2,19 +2,19 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-B4BZAPZh.js";
|
|
3
3
|
import { E as truncateUtf16Safe, a as clampNumber, i as clampInt, y as resolveUserPath } from "./utils-BlC2Fskb.js";
|
|
4
4
|
import { t as createSubsystemLogger } from "./subsystem-Cu1fn6xi.js";
|
|
5
|
-
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { K as requireApiKey, q as resolveApiKeyForProvider } from "./model-selection-
|
|
5
|
+
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, r as resolveAgentConfig } from "./agent-scope-BGlpyppa.js";
|
|
6
|
+
import { K as requireApiKey, q as resolveApiKeyForProvider } from "./model-selection-0qDmOMXI.js";
|
|
7
7
|
import { t as isTruthyEnvValue } from "./env-C9RBJHeg.js";
|
|
8
8
|
import { n as formatErrorMessage } from "./errors-BF3TeRH2.js";
|
|
9
9
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-C6eomcf_.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DdnTeoR1.js";
|
|
11
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
12
|
-
import { _ as statRegularFile, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as isFileMissingError, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath } from "./sqlite-
|
|
11
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-CMe3cUAn.js";
|
|
12
|
+
import { _ as statRegularFile, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as isFileMissingError, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath } from "./sqlite-CzeIEe5A.js";
|
|
13
13
|
import { n as retryAsync } from "./retry-BNSym93Y.js";
|
|
14
14
|
import fs from "node:fs";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fs$1 from "node:fs/promises";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import { createInterface } from "node:readline";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
@@ -819,7 +819,7 @@ async function extractTimestamp(params) {
|
|
|
819
819
|
if (!params.workspaceDir) return null;
|
|
820
820
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
821
821
|
try {
|
|
822
|
-
const stat = await
|
|
822
|
+
const stat = await fs$1.stat(absolutePath);
|
|
823
823
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
824
824
|
return new Date(stat.mtimeMs);
|
|
825
825
|
} catch {
|
|
@@ -1904,7 +1904,7 @@ var MemoryManagerSyncOps = class {
|
|
|
1904
1904
|
const source = `${sourceBase}${suffix}`;
|
|
1905
1905
|
const target = `${targetBase}${suffix}`;
|
|
1906
1906
|
try {
|
|
1907
|
-
await
|
|
1907
|
+
await fs$1.rename(source, target);
|
|
1908
1908
|
} catch (err) {
|
|
1909
1909
|
if (err.code !== "ENOENT") throw err;
|
|
1910
1910
|
}
|
|
@@ -1915,7 +1915,7 @@ var MemoryManagerSyncOps = class {
|
|
|
1915
1915
|
"",
|
|
1916
1916
|
"-wal",
|
|
1917
1917
|
"-shm"
|
|
1918
|
-
].map((suffix) =>
|
|
1918
|
+
].map((suffix) => fs$1.rm(`${basePath}${suffix}`, { force: true })));
|
|
1919
1919
|
}
|
|
1920
1920
|
ensureSchema() {
|
|
1921
1921
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2010,7 +2010,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2010
2010
|
if (!thresholds) return null;
|
|
2011
2011
|
let stat;
|
|
2012
2012
|
try {
|
|
2013
|
-
stat = await
|
|
2013
|
+
stat = await fs$1.stat(sessionFile);
|
|
2014
2014
|
} catch {
|
|
2015
2015
|
return null;
|
|
2016
2016
|
}
|
|
@@ -2052,7 +2052,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2052
2052
|
if (end <= start) return 0;
|
|
2053
2053
|
let handle;
|
|
2054
2054
|
try {
|
|
2055
|
-
handle = await
|
|
2055
|
+
handle = await fs$1.open(absPath, "r");
|
|
2056
2056
|
} catch (err) {
|
|
2057
2057
|
if (isFileMissingError(err)) return 0;
|
|
2058
2058
|
throw err;
|
|
@@ -2968,7 +2968,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
2968
2968
|
});
|
|
2969
2969
|
return;
|
|
2970
2970
|
}
|
|
2971
|
-
const content = options.content ?? await
|
|
2971
|
+
const content = options.content ?? await fs$1.readFile(entry.absPath, "utf-8");
|
|
2972
2972
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0));
|
|
2973
2973
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
2974
2974
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
@@ -3550,7 +3550,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3550
3550
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3551
3551
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3552
3552
|
for (const additionalPath of additionalPaths) try {
|
|
3553
|
-
const stat = await
|
|
3553
|
+
const stat = await fs$1.lstat(additionalPath);
|
|
3554
3554
|
if (stat.isSymbolicLink()) continue;
|
|
3555
3555
|
if (stat.isDirectory()) {
|
|
3556
3556
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3575,7 +3575,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3575
3575
|
};
|
|
3576
3576
|
let content;
|
|
3577
3577
|
try {
|
|
3578
|
-
content = await
|
|
3578
|
+
content = await fs$1.readFile(absPath, "utf-8");
|
|
3579
3579
|
} catch (err) {
|
|
3580
3580
|
if (isFileMissingError(err)) return {
|
|
3581
3581
|
text: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { h as normalizeAccountId } from "./session-key-DCt45XZa.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-DufH79A4.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|