@bitseek/claw 1.2.5 → 1.2.6
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-DKvlV3Tm.js → accounts-C3iwoWUS.js} +1 -1
- package/dist/{accounts-D5DQlttG.js → accounts-CCbfXe4Y.js} +7 -7
- package/dist/{accounts-jPPbCJns.js → accounts-ChjgDDok.js} +1 -1
- package/dist/{acp-cli-BZnPaFm3.js → acp-cli-DIikR-tj.js} +8 -8
- package/dist/{agent-scope-CiBV1K6b.js → agent-scope-DHMu2mab.js} +1 -1
- package/dist/{agents.config-DQBEXhzA.js → agents.config-BoNoGEQI.js} +2 -2
- package/dist/{api-key-rotation-j4O7qxMf.js → api-key-rotation-CuHjsofV.js} +1 -1
- package/dist/{audio-preflight-BkoTbTIH.js → audio-preflight-BClvbKMQ.js} +36 -36
- package/dist/{audio-preflight-Dd9DDvqB.js → audio-preflight-BWOdDA2n.js} +4 -4
- package/dist/{audio-transcription-runner-Bx53bUS2.js → audio-transcription-runner-DaoqvWoi.js} +1 -1
- package/dist/{audio-transcription-runner-CF_UP4C7.js → audio-transcription-runner-Dv-MCA8E.js} +22 -22
- package/dist/{audit-1YVlVmk7.js → audit-BAGbgihO.js} +29 -29
- package/dist/{auth-Co2g3d8d.js → auth-B9WdgDjZ.js} +1 -1
- package/dist/{auth-choice-CdsMUqKA.js → auth-choice-CTCXt7WB.js} +12 -12
- package/dist/{auth-choice-BamWYpsc.js → auth-choice-FFUrxk0-.js} +14 -14
- package/dist/{auth-choice.apply-helpers-CQLQ5Tuk.js → auth-choice.apply-helpers-Dz2x-3CK.js} +1 -1
- package/dist/{auth-token-BjVRLcvi.js → auth-token-BPWVp11S.js} +1 -1
- package/dist/{bindings-Ck6aotGf.js → bindings-C0k4wFy7.js} +1 -1
- package/dist/{bonjour-discovery-CtUQb94i.js → bonjour-discovery-DXvZeG8M.js} +1 -1
- package/dist/{browser-cli-CaBLM5A6.js → browser-cli-BwtSgIvC.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-BGZQEHL4.js → call-B9Vrcbed.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-C6rIxLzo.js → channel-account-context-CeGx9Aq7.js} +5 -5
- package/dist/{channel-options-Bnnem_wD.js → channel-options-DmEaPgkZ.js} +3 -3
- package/dist/{channel-selection-TZJgoz5h.js → channel-selection-BDdjozhi.js} +1 -1
- package/dist/{channel-web-KY6EP9HT.js → channel-web-mFdbEE2o.js} +18 -18
- package/dist/{channels-cli-tJkvzsqO.js → channels-cli-CCTczoJM.js} +94 -94
- package/dist/{channels-status-issues-DeT1Znlx.js → channels-status-issues-Dir7g-Pc.js} +1 -1
- package/dist/{chrome-DzGCPEQK.js → chrome-2gfHr1cU.js} +4 -4
- package/dist/{chrome-C6zMSR36.js → chrome-CjTE-vWv.js} +8 -8
- package/dist/{clawbot-cli-Comysjn9.js → clawbot-cli-BMGBnmny.js} +5 -5
- package/dist/{cli-DOS1lPNs.js → cli-zsP2OqB6.js} +75 -75
- package/dist/{client-B91adiXh.js → client-BoUhzGrS.js} +2 -2
- package/dist/{command-registry-KxdBw74g.js → command-registry-okzYatr9.js} +4 -4
- package/dist/{commands-C6OLhl3n.js → commands-npgZubp3.js} +1 -1
- package/dist/{commands-registry-CVzTBX51.js → commands-registry-B5jHbfUL.js} +3 -3
- package/dist/{completion-cli-Cfp2m1Sy.js → completion-cli-BFxGdqak.js} +2 -2
- package/dist/{completion-cli-DU3T8Tur.js → completion-cli-Dm9dt8iw.js} +12 -12
- package/dist/{config-cli-DZpbwWvz.js → config-cli-CJVYN-g-.js} +7 -7
- package/dist/{config-guard-9BjlFVZx.js → config-guard-1SsvFO9G.js} +17 -17
- package/dist/{config-validation-BcxAhhcj.js → config-validation-BJ6PNk8H.js} +3 -3
- package/dist/{configure-CLMtWGiL.js → configure-DMwHaNHJ.js} +17 -17
- package/dist/{control-ui-assets-B_3g_YF0.js → control-ui-assets-DpInddpx.js} +1 -1
- package/dist/{cron-cli-C8kDGh6_.js → cron-cli-CyEcKgVG.js} +12 -12
- package/dist/{daemon-cli-RKWFtF-K.js → daemon-cli-CB9c5SXP.js} +15 -15
- package/dist/{daemon-install-DsJ0L8HP.js → daemon-install-Bqjc3wky.js} +4 -4
- package/dist/{daemon-install-helpers-CMWYg4_W.js → daemon-install-helpers-CGZBs-X3.js} +11 -11
- package/dist/{dashboard-BhAYjl6n.js → dashboard-8HFxt9IY.js} +2 -2
- package/dist/{deliver-Bn10XzRP.js → deliver-D4ugOkLr.js} +7 -7
- package/dist/{deliver-DXa06hfk.js → deliver-xY3h9X6N.js} +1 -1
- package/dist/{devices-cli-DoJBheGs.js → devices-cli-Bp8AMOPE.js} +8 -8
- package/dist/{diagnostic-DRPetA8l.js → diagnostic-phUWJbF_.js} +1 -1
- package/dist/{diagnostics-BHQgZbuI.js → diagnostics-D_AmByNE.js} +5 -5
- package/dist/{directory-cli-Brla3Idn.js → directory-cli-Bt3I30_e.js} +8 -8
- package/dist/{dns-cli-rEvE1LG9.js → dns-cli-DaTrsB61.js} +5 -5
- package/dist/{dock-BXksV3sC.js → dock-swzevZbj.js} +4 -4
- package/dist/{docs-cli-DtThi0Xf.js → docs-cli--2Qgcpvs.js} +4 -4
- package/dist/{doctor-completion-AraQfpv2.js → doctor-completion-UEYo4_U6.js} +2 -2
- package/dist/{doctor-completion-B6_JtN22.js → doctor-completion-wHIBxn-7.js} +1 -1
- package/dist/{doctor-config-flow-18ijj3KB.js → doctor-config-flow-DKaeaH2u.js} +15 -15
- package/dist/{enable-CJ75JA5u.js → enable-xlkWJvIn.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CGVHz3PX.js → exec-approvals-allowlist-fG-NsL-O.js} +1 -1
- package/dist/{exec-approvals-cli-DfcUJ9Sm.js → exec-approvals-cli-r7jbe_Rj.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-D7olAQMf.js → exec-safe-bin-runtime-policy-B9kCrTY1.js} +2 -2
- package/dist/{fetch-guard-D6eclxeP.js → fetch-guard-N12H9lEe.js} +1 -1
- package/dist/{fs-safe-p5lyYI__.js → fs-safe-BGAE6eOQ.js} +24 -24
- package/dist/{gateway-cli-CX2HA_sy.js → gateway-cli-BFo0WvJx.js} +63 -9
- package/dist/{gateway-cli-C6G3qMkR.js → gateway-cli-Bi6tzv7v.js} +222 -168
- package/dist/{gateway-rpc-CJVCek88.js → gateway-rpc-BHBGSN7Z.js} +1 -1
- package/dist/{health-Du8dO3vn.js → health-DlFSsTw-.js} +14 -14
- package/dist/{hooks-cli-DUIQuGjr.js → hooks-cli-CMLpJr6I.js} +83 -83
- package/dist/{hooks-status-ONaKEpUH.js → hooks-status-inMD7sD-.js} +1 -1
- package/dist/{image-B270IRGo.js → image-BzR2twGI.js} +5 -5
- package/dist/{image-Dd4lgi4H.js → image-DCyaYY2d.js} +1 -1
- package/dist/{image-ops-BAMcbVMS.js → image-ops-B6BeXmZU.js} +10 -10
- package/dist/index.js +85 -85
- package/dist/{inspect-C0e0Dmvg.js → inspect-BwbOLUun.js} +4 -4
- package/dist/{install-safe-path-CSqVUjL8.js → install-safe-path-DodF6oyk.js} +25 -25
- package/dist/{installs-BXOZ3DXs.js → installs-8bzJi35e.js} +9 -9
- package/dist/{ipv4-Bk-doiEE.js → ipv4-BY_PmkpX.js} +1 -1
- package/dist/{ir-BGgl4f9u.js → ir-vGBxQkIg.js} +6 -6
- package/dist/{issue-format-rk9Vpcxd.js → issue-format-B4oxePhU.js} +1 -1
- package/dist/{json-files-bJqSYqgg.js → json-files-C7p5SEie.js} +8 -8
- package/dist/{lifecycle-core-Bqse41aA.js → lifecycle-core-C5a4clqu.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{local-roots-jW0nhxVT.js → local-roots-Dcc5UeD8.js} +3 -3
- package/dist/{login-B2B75WGK.js → login-BM9p9nig.js} +3 -3
- package/dist/{login-qr-YjUycQZT.js → login-qr-CB4JWkHM.js} +6 -6
- package/dist/{logs-cli-Dyid6hUQ.js → logs-cli-DGdXLEv-.js} +9 -9
- package/dist/{manager-C9rftBaE.js → manager-X8AF3rQJ.js} +14 -14
- package/dist/{manifest-registry-B_U2pKBU.js → manifest-registry-HNrtHxxI.js} +1 -1
- package/dist/{markdown-tables-B5l_33qL.js → markdown-tables-XmfG1bwr.js} +1 -1
- package/dist/{memory-cli-o3L9NN74.js → memory-cli-87nxADqy.js} +12 -12
- package/dist/{model-FnrgCVyS.js → model-CESXYutI.js} +2 -2
- package/dist/{model-catalog-CjA5pRJF.js → model-catalog-DUHxH2xb.js} +3 -3
- package/dist/{model-picker-CMgjcqV_.js → model-picker-D705WMPf.js} +4 -4
- package/dist/{model-selection-xdfZxwgB.js → model-selection-DCo8MhsE.js} +16 -16
- package/dist/{models-cli-CHUbcM_y.js → models-cli-9x2mp4Ac.js} +85 -85
- package/dist/{models-config-Do1Ur_ov.js → models-config-Bgpjcu8R.js} +6 -6
- package/dist/{node-cli-DYOdgLUu.js → node-cli-DJnihsNr.js} +33 -33
- package/dist/{node-command-policy-BKUs_pS2.js → node-command-policy-BiPTB8BK.js} +1 -1
- package/dist/{node-service-6W3vqgVv.js → node-service-CfKJ5oC1.js} +1 -1
- package/dist/{nodes-cli-CQzck2kc.js → nodes-cli-4kBrEEti.js} +16 -16
- package/dist/{nodes-screen-Dptoharj.js → nodes-screen-FWjD2j3v.js} +7 -7
- package/dist/{npm-pack-install-Byr0kgft.js → npm-pack-install-CXheGnb0.js} +18 -18
- package/dist/{npm-resolution-Dv7nYiaP.js → npm-resolution-DIr_TibO.js} +5 -5
- package/dist/{onboard-D66uwNCb.js → onboard-B_MoYnrn.js} +1 -1
- package/dist/{onboard-DcI-IxL0.js → onboard-DEFQu6dU.js} +6 -6
- package/dist/{onboard-channels-CRpmgX82.js → onboard-channels-BuG5-e60.js} +20 -20
- package/dist/{onboard-custom-Bow6lZPm.js → onboard-custom-HI7NPx1u.js} +3 -3
- package/dist/{onboard-custom.shared-CBRRhb95.js → onboard-custom.shared-SWx67Er2.js} +2 -2
- package/dist/{onboard-helpers-B1AEo6oL.js → onboard-helpers-Jc1-4LBc.js} +11 -11
- package/dist/{onboard-hooks-CtxRk6l_.js → onboard-hooks-DFjIpeE_.js} +4 -4
- package/dist/{onboard-remote-DmHpLoWf.js → onboard-remote-BLAyUeAO.js} +3 -3
- package/dist/{onboard-skills-DwpZY5tZ.js → onboard-skills--XkA2Jj4.js} +4 -4
- package/dist/{onboarding-Dae6N665.js → onboarding-BQ2WB7tp.js} +13 -13
- package/dist/{onboarding-CZCgESNI.js → onboarding-CSnr51pR.js} +1 -1
- package/dist/{onboarding.finalize-B8nYvA0i.js → onboarding.finalize-BlMlIFRW.js} +4 -4
- package/dist/{onboarding.finalize-ANKeWCQe.js → onboarding.finalize-DAbr5Ar8.js} +87 -87
- package/dist/{onboarding.gateway-config-wXH6gE7c.js → onboarding.gateway-config-CMKjEPRA.js} +18 -18
- package/dist/{openai-model-default-Q7Hmy0eQ.js → openai-model-default-BTNz1OzV.js} +2 -2
- package/dist/{outbound-DlVJWa4u.js → outbound-Bf7VAx0-.js} +4 -4
- package/dist/{outbound-attachment-CZh4VjhT.js → outbound-attachment-Df5o7JIG.js} +2 -2
- package/dist/{pairing-cli-DAMLvDcA.js → pairing-cli-CA7Dxs-g.js} +9 -9
- package/dist/{pairing-labels-Cl7ROILg.js → pairing-labels-BBti3jJg.js} +1 -1
- package/dist/{pairing-store-DdZ0xMD7.js → pairing-store-DY0yrkuM.js} +3 -3
- package/dist/{path-alias-guards-DWh6tSaP.js → path-alias-guards-BNzjbOwM.js} +3 -3
- package/dist/{path-safety-COhgvniC.js → path-safety-dmCI2tpN.js} +1 -1
- package/dist/{paths-AxolTUEH.js → paths-BZfURxkW.js} +9 -9
- package/dist/{pi-embedded-DKX65Hec.js → pi-embedded-Bacc2S0h.js} +22 -22
- package/dist/{pi-embedded-helpers-BErNo2oq.js → pi-embedded-helpers-CMTVhLjq.js} +3 -3
- package/dist/{pi-embedded-helpers-ZTn-T7tW.js → pi-embedded-helpers-D3nc5XJW.js} +6 -6
- package/dist/{pi-model-discovery-DVhDvAnA.js → pi-model-discovery-BSytrsu4.js} +1 -1
- package/dist/{pi-tools.policy-eyXj0EY5.js → pi-tools.policy-Dwsq-Yaf.js} +5 -5
- package/dist/{plugin-auto-enable-D1WySsnE.js → plugin-auto-enable-4zXn-eVS.js} +3 -3
- package/dist/{plugin-registry-TOEmbMc4.js → plugin-registry-DsZTkNKu.js} +3 -3
- package/dist/plugin-sdk/{accounts-COLYAAOx.js → accounts-4WE2wtsW.js} +1 -1
- package/dist/plugin-sdk/{accounts-BZrkOo6-.js → accounts-AbI8uETR.js} +1 -1
- package/dist/plugin-sdk/{accounts-D_pT5EjF.js → accounts-BYcizTXn.js} +3 -3
- package/dist/plugin-sdk/{active-listener-DxBXcWm_.js → active-listener-pnqLAUOh.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-DT5pxpJB.js → agent-scope-_j3fIYCK.js} +3 -3
- package/dist/plugin-sdk/{api-key-rotation-Dl6Ad7Nj.js → api-key-rotation-CYI51U_M.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CkPj4OVY.js → audio-preflight-BTRRjPew.js} +33 -33
- package/dist/plugin-sdk/{audio-transcription-runner-BBn9jEMg.js → audio-transcription-runner-DFZS7uCO.js} +10 -10
- package/dist/plugin-sdk/{bindings-BSfhEjKN.js → bindings-CxxzC7gn.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-DAEbma-o.js → channel-activity-B3yZ-f-m.js} +3 -3
- package/dist/plugin-sdk/{channel-web-O79O_ah6.js → channel-web-D2q54sK-.js} +23 -23
- package/dist/plugin-sdk/{chrome-Dn0G4NoF.js → chrome-oPevdeh5.js} +7 -7
- package/dist/plugin-sdk/{chunk-cvtXztAT.js → chunk-BPyPeheZ.js} +1 -1
- package/dist/plugin-sdk/{command-format-BOJz3y1v.js → command-format-DvyMEXQo.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CZWv_JwZ.js → commands-registry-Dk8re8Lz.js} +5 -5
- package/dist/plugin-sdk/{config-DAwOhnVF.js → config-D7I2_X4P.js} +10 -10
- package/dist/plugin-sdk/{deliver-PdH-MCq8.js → deliver-NrIHn0__.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-BZvj-qNu.js → diagnostic-DL3k_wRi.js} +2 -2
- package/dist/plugin-sdk/{dock-BdR3OYZn.js → dock-CjdkiLH7.js} +6 -6
- package/dist/plugin-sdk/{errors-jusxdu7M.js → errors-DFTN4h2I.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dary6WwJ.js → fetch-guard-BivEyA4v.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DMCE0ej9.js → fs-safe-B256n7Ff.js} +3 -3
- package/dist/plugin-sdk/{image-B3A2l2ep.js → image-CkPzr3XN.js} +6 -6
- package/dist/plugin-sdk/{image-ops-DulHE5Qc.js → image-ops-C9GXWF3o.js} +1 -1
- package/dist/plugin-sdk/index.js +64 -64
- package/dist/plugin-sdk/{ir-BFXiJrsN.js → ir-BIm-jvIK.js} +6 -6
- package/dist/plugin-sdk/{local-roots-DssN60r6.js → local-roots-2AOXGUXW.js} +4 -4
- package/dist/plugin-sdk/{logger-Cr-x0vMf.js → logger-CNhs9eKJ.js} +1 -1
- package/dist/plugin-sdk/{login-D0ul3-6C.js → login-BcLiF9tC.js} +6 -6
- package/dist/plugin-sdk/{login-qr-XWKTFBuI.js → login-qr-GyPUodKJ.js} +9 -9
- package/dist/plugin-sdk/{manager-DGx_cF54.js → manager-DYLqNUb4.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-CsQpDNU5.js → markdown-tables-D9mmqMKi.js} +1 -1
- package/dist/plugin-sdk/{message-channel-CvNq-esz.js → message-channel-_CEZcqxE.js} +1 -1
- package/dist/plugin-sdk/{outbound-D29FHlQl.js → outbound-DdTsUaXa.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DRHrZUOx.js → outbound-attachment--hkuIDR1.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DpKV1B5p.js → path-alias-guards-BqUCBfUg.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CKEUWckk.js → pi-embedded-helpers-CTfvZz83.js} +17 -17
- package/dist/plugin-sdk/{pi-model-discovery-BPeQq9XM.js → pi-model-discovery-CK3Ih_kq.js} +1 -1
- package/dist/plugin-sdk/{plugins-DF_dKXTR.js → plugins-BpHAMNJ1.js} +6 -6
- package/dist/plugin-sdk/{proxy-BfmEDoun.js → proxy-BJdRZOnJ.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-BpHIgvBk.js → proxy-fetch-jmbopGcm.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BmmXDjtm.js → pw-ai-D0Kx7w1D.js} +13 -13
- package/dist/plugin-sdk/{qmd-manager-3hQbqkm5.js → qmd-manager-BDcutPp9.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-BOGLUWB7.js → query-expansion-C_X8SyEA.js} +2 -2
- package/dist/plugin-sdk/{redact-BOuKZWXa.js → redact-DH8u23pF.js} +1 -1
- package/dist/plugin-sdk/{registry-Cv-oHUj1.js → registry-HF8_S7QO.js} +2 -2
- package/dist/plugin-sdk/{replies-CddwWBTJ.js → replies-DbjvV4gf.js} +3 -3
- package/dist/plugin-sdk/{reply-YZQvouuF.js → reply-Cs_Ks2Mr.js} +93 -93
- package/dist/plugin-sdk/{reply-prefix-DXthVxCx.js → reply-prefix-KODsMNJ-.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-D3Y4F2Le.js → resolve-outbound-target-BPT4aNiD.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-DuwYYn4a.js → resolve-route-De2B5QY_.js} +4 -4
- package/dist/plugin-sdk/{retry-BMcrIz7L.js → retry-pZ8iKytf.js} +1 -1
- package/dist/plugin-sdk/{send-D0AaWnIj.js → send-1uW-uqPf.js} +7 -7
- package/dist/plugin-sdk/{send-C5USYGq7.js → send-BoNw1Bki.js} +8 -8
- package/dist/plugin-sdk/{send-B0ztz6QC.js → send-C-Rd2stz.js} +6 -6
- package/dist/plugin-sdk/{send-DJzwu8kk.js → send-CZIN8SDx.js} +15 -15
- package/dist/plugin-sdk/{send-DEyQJTzd.js → send-wCqsQs_s.js} +10 -10
- package/dist/plugin-sdk/{session-meta-ChWvKVWj.js → session-meta-7J-uHiM_.js} +1 -1
- package/dist/plugin-sdk/{session-BA7tVDpV.js → session-ooYcB82T.js} +5 -5
- package/dist/plugin-sdk/{sessions-BXps6YzJ.js → sessions-lAIo5l8W.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-B20uUsji.js → skill-commands-D1Q6hGS4.js} +5 -5
- package/dist/plugin-sdk/{skills-DXOTei42.js → skills-BWSDv2F_.js} +8 -8
- package/dist/plugin-sdk/{ssrf-Doxv9M7Q.js → ssrf-JKDwTi8i.js} +1 -1
- package/dist/plugin-sdk/{store-BZbE1V-C.js → store-BMeqzQAf.js} +2 -2
- package/dist/plugin-sdk/{subsystem-CM1s2lDT.js → subsystem-B0V8LFBA.js} +2 -2
- package/dist/plugin-sdk/{tables-BhH8EIqU.js → tables-DCSeBGBz.js} +1 -1
- package/dist/{target-errors-B1cYmIjq.js → plugin-sdk/target-errors-0u6pegQv.js} +2 -2
- package/dist/plugin-sdk/{tokens-DIE-Bf72.js → tokens-DF2_VTJy.js} +1 -1
- package/dist/plugin-sdk/{tool-images-heXfaJdb.js → tool-images-BbsgbHMZ.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-CygMSQUK.js → tool-loop-detection-JkCpGrfk.js} +2 -2
- package/dist/plugin-sdk/{utils-BcL6KGZf.js → utils-BfVxx6bk.js} +1 -1
- package/dist/plugin-sdk/web-B35hdNQ-.js +72 -0
- package/dist/plugin-sdk/{whatsapp-actions-CRean1yN.js → whatsapp-actions-tVcrGNQc.js} +25 -25
- package/dist/{plugins-CKWxMohB.js → plugins-Ce8ThYGQ.js} +2 -2
- package/dist/{plugins-cli-Clo_uyvq.js → plugins-cli-DxFh5OQi.js} +85 -85
- package/dist/{ports-DppAHKM-.js → ports-DXMCFRgn.js} +2 -2
- package/dist/{ports-BL-FP2jP.js → ports-wtEwdqsX.js} +1 -1
- package/dist/{program-DSOHn27G.js → program-DnjsZxiJ.js} +2 -2
- package/dist/{program-context-DfYJPL5N.js → program-context-36wFBslW.js} +43 -43
- package/dist/{prompt-select-styled-DG7woZ0E.js → prompt-select-styled-BkpL6eKQ.js} +1 -1
- package/dist/{prompt-select-styled-B2izefsj.js → prompt-select-styled-CJt-zhnt.js} +39 -39
- package/dist/{provider-auth-helpers-D_akOb8A.js → provider-auth-helpers-DeJ105rb.js} +5 -5
- package/dist/{proxy-env-ClbXa7vn.js → proxy-env-DhFUQlwP.js} +1 -1
- package/dist/{push-apns-DvNRo3EQ.js → push-apns-SIM2es-Y.js} +5 -5
- package/dist/{pw-ai-D21rIJ2z.js → pw-ai-BOQE6s45.js} +15 -15
- package/dist/{pw-ai-pkfCxzhV.js → pw-ai-DGwA7iCM.js} +1 -1
- package/dist/{qmd-manager-BD6lfN35.js → qmd-manager-DVKj0i6T.js} +20 -20
- package/dist/{qr-cli-BQGJJ5hp.js → qr-cli-Z4_Y6bva.js} +1 -1
- package/dist/{query-expansion-Dl85zpSb.js → query-expansion-B9kneDbd.js} +12 -12
- package/dist/{redact-snapshot-DCGL0k2M.js → redact-snapshot-BI4Ryuhy.js} +1 -1
- package/dist/{register.agent-DowGjvNc.js → register.agent-Cd2LVcga.js} +100 -100
- package/dist/register.configure-DGIWBQvN.js +174 -0
- package/dist/{register.init-DWQDniBg.js → register.init-DpFUY5Ed.js} +15 -15
- package/dist/{register.maintenance-DyTduYA4.js → register.maintenance-DAU-mVIz.js} +97 -97
- package/dist/{register.maintenance-CQivhR8Y.js → register.maintenance-R4RCi4f3.js} +5 -5
- package/dist/{register.message-DE-eKss6.js → register.message-B0CI0Q4o.js} +76 -76
- package/dist/{register.onboard-CWX2zarB.js → register.onboard-BGhXUfbX.js} +18 -18
- package/dist/{register.onboard-BRBPNENF.js → register.onboard-Di7iClKl.js} +2 -2
- package/dist/{register.setup-YcxKWN94.js → register.setup-Dm_dHAB-.js} +2 -2
- package/dist/{register.setup-DwZL0RXc.js → register.setup-nlXy06aa.js} +21 -21
- package/dist/{register.start-BHASi8Um.js → register.start-Dzss99ZY.js} +17 -17
- package/dist/{register.status-health-sessions-Cbva8fTK.js → register.status-health-sessions-B4eNiGWS.js} +89 -89
- package/dist/{register.subclis-CEq4Db2Q.js → register.subclis-1MobNhis.js} +3 -3
- package/dist/{replies-B6SXcEs0.js → replies-k5K96_46.js} +1 -1
- package/dist/{reply-D8Yu6-Ie.js → reply-DQMWsIE2.js} +156 -156
- package/dist/{reply-prefix-BttpF8VB.js → reply-prefix-aBvAQX6L.js} +1 -1
- package/dist/{resolve-route-Ck23oGqS.js → resolve-route-R565qQgt.js} +2 -2
- package/dist/{rpc-9jE_1PW0.js → rpc-CMyUzpcT.js} +1 -1
- package/dist/{run-main-BoenTqTz.js → run-main-CFGtfsPd.js} +3 -3
- package/dist/{runtime-Rd7ooKB0.js → runtime-D64ACWoX.js} +2 -2
- package/dist/{sandbox-BKa5RrBl.js → sandbox-DH9YtUfB.js} +18 -18
- package/dist/{sandbox-cli-BnpEc205.js → sandbox-cli-B1ThXy7C.js} +26 -26
- package/dist/{secrets-cli-CIxUNZyC.js → secrets-cli-BEjJ3GP-.js} +10 -10
- package/dist/{security-cli-BqOOeGxS.js → security-cli-Zma5k5BZ.js} +43 -43
- package/dist/{send-DuNBSJln.js → send-BQVNhO4Q.js} +5 -5
- package/dist/{send-SZBhACLn.js → send-CFUSH9C-.js} +8 -8
- package/dist/{send-Cua2kS5v.js → send-CabiU1-J.js} +6 -6
- package/dist/{send-ByUfPpKj.js → send-DmVTXBWW.js} +11 -11
- package/dist/{send-BntubUtK.js → send-NexNe2Wh.js} +6 -6
- package/dist/{server-Ct0J5VXf.js → server-DQ7D-B-v.js} +19 -19
- package/dist/{server-context-DWxmyV-0.js → server-context-Cr-Y4i6P.js} +12 -12
- package/dist/{server-lifecycle-B7aXKxY3.js → server-lifecycle-BVnXIEfI.js} +2 -2
- package/dist/{server-middleware-CO1brrgv.js → server-middleware-zyvA9rl9.js} +1 -1
- package/dist/{server-node-events-nakjzVDn.js → server-node-events-oa4mOmsp.js} +76 -76
- package/dist/{service-DqxfCr8y.js → service-BcFhE63y.js} +15 -15
- package/dist/{session-FOGqE7bj.js → session-Dl3x3d75.js} +1 -1
- package/dist/{session-meta-C-ox3bdI.js → session-meta-C6MooccR.js} +1 -1
- package/dist/{sessions-BpuJ64B0.js → sessions-sIaYsUyX.js} +15 -15
- package/dist/{shared-CgFPGTLU.js → shared-DNcLp2mA.js} +3 -3
- package/dist/{shared-BmSv3K8N.js → shared-sFrejcA4.js} +1 -1
- package/dist/{skill-commands-COl0HE54.js → skill-commands-C2_BOuyl.js} +5 -5
- package/dist/{skill-scanner-CsmM5F4F.js → skill-scanner-DYkQAh0l.js} +6 -6
- package/dist/{skills-BeFcXCoN.js → skills-BXLKd7i5.js} +3 -3
- package/dist/{skills-cli-D3ZteX5N.js → skills-cli-DrN4v5_m.js} +5 -5
- package/dist/{skills-install-B_Vda3dM.js → skills-install-CSfh8nRm.js} +6 -6
- package/dist/{skills-status-BEq0_fOn.js → skills-status-C7Q6Ezbv.js} +1 -1
- package/dist/{status-CQYA6EJN.js → status-rMgdZcE5.js} +25 -25
- package/dist/{status.update-HwSPC5ZX.js → status.update-D4GfnNDI.js} +2 -2
- package/dist/{store-B-nkOSsv.js → store-CRcBie8T.js} +5 -5
- package/dist/{system-cli-IYwpBiC6.js → system-cli-Bscj57lL.js} +9 -9
- package/dist/{system-run-command-C3OIMtEu.js → system-run-command-Cn5yQ2rv.js} +1 -1
- package/dist/{systemd-DJ5Red-Q.js → systemd-BIfjzi-4.js} +9 -9
- package/dist/{systemd-hints-D40Qx3hg.js → systemd-hints-CgtHwBfD.js} +6 -6
- package/dist/{systemd-linger-BK6kig-o.js → systemd-linger-0Vho6LMt.js} +1 -1
- package/dist/{tables-C9_oCtRN.js → tables-C5n2nXbu.js} +1 -1
- package/dist/{tailnet-BYBKD8Kh.js → tailnet-C8NwaQEp.js} +1 -1
- package/dist/{plugin-sdk/target-errors-QZay02Cv.js → target-errors-cerGxvCB.js} +4 -4
- package/dist/{tool-images-QWbHWc0F.js → tool-images-CgSADinH.js} +1 -1
- package/dist/{tui-Dd6DhgjX.js → tui-DNT0WnU-.js} +6 -6
- package/dist/{tui-cli-C3PCazFC.js → tui-cli-DTFq2wGK.js} +33 -33
- package/dist/{update-B1Dhhu_3.js → update-Mb6BH0o9.js} +3 -3
- package/dist/{update-cli-CuKW0N9W.js → update-cli--qEz2_Eg.js} +105 -105
- package/dist/{update-cli-D1B0Vytl.js → update-cli-Dbb1EPi2.js} +5 -5
- package/dist/{update-runner-DO6RodZW.js → update-runner-Dj_CAfd4.js} +16 -16
- package/dist/web-BQRkxG9u.js +126 -0
- package/dist/{web-V1uGLepo.js → web-CDHXvGxm.js} +6 -6
- package/dist/{webhooks-cli-BFdw7BAP.js → webhooks-cli-uXE9EOwT.js} +6 -6
- package/dist/{whatsapp-actions-CNoiLzRB.js → whatsapp-actions-DeX4x9sq.js} +19 -19
- package/dist/{with-timeout-tSH4Tex_.js → with-timeout-C-EETHnf.js} +3 -3
- package/dist/{workspace-dKMB109Q.js → workspace-1nc7aTpg.js} +1 -1
- package/dist/{workspace-CRdln__H.js → workspace-TersEUYu.js} +23 -23
- package/dist/{workspace-dirs-DcAUEsSG.js → workspace-dirs-DxTFH1r3.js} +1 -1
- package/dist/{ws-DKbBt0us.js → ws-E9v842O2.js} +2 -2
- package/dist/{wsl-yjQQ-PJd.js → wsl-Dg6XQcw5.js} +2 -2
- package/package.json +1 -1
- package/dist/plugin-sdk/web-jmxdxo0H.js +0 -72
- package/dist/register.configure-BZLa_c3k.js +0 -174
- package/dist/web-DbdjX4Hg.js +0 -126
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import { d as resolveIsNixMode, g as resolveStateDir, m as resolveOAuthDir, t as CONFIG_PATH, u as resolveGatewayPort, y as resolveRequiredHomeDir } from "./paths-BYr-iJJ9.js";
|
|
2
2
|
import { g as getResolvedLoggerSettings } from "./globals-uLeGcRW1.js";
|
|
3
3
|
import { C as sleep, S as shortenHomePath, y as resolveUserPath } from "./utils-CP51tiAi.js";
|
|
4
|
-
import { Vr as resolveAgentSessionDirs, a as DEFAULT_OAUTH_WARN_MS, dt as loadOpenClawPlugins, o as buildAuthHealthSummary, s as formatRemainingShort } from "./reply-
|
|
5
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
+
import { Vr as resolveAgentSessionDirs, a as DEFAULT_OAUTH_WARN_MS, dt as loadOpenClawPlugins, o as buildAuthHealthSummary, s as formatRemainingShort } from "./reply-DQMWsIE2.js";
|
|
5
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-DHMu2mab.js";
|
|
6
6
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
7
7
|
import { T as parseAgentSessionKey } from "./session-key-C9z4VQtw.js";
|
|
8
|
-
import { t as DEFAULT_AGENTS_FILENAME, y as resolveOpenClawPackageRoot } from "./workspace-
|
|
8
|
+
import { t as DEFAULT_AGENTS_FILENAME, y as resolveOpenClawPackageRoot } from "./workspace-TersEUYu.js";
|
|
9
9
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-BdDcFm8M.js";
|
|
10
|
-
import { Ci as CODEX_CLI_PROFILE_ID, Kt as readConfigFileSnapshot, Ni as DEFAULT_MODEL, Pi as DEFAULT_PROVIDER, Si as CLAUDE_CLI_PROFILE_ID, Xt as writeConfigFile, _ as resolveHooksGmailModel, a as getModelRefStatus, ci as ensureAuthProfileStore, ei as repairOAuthProfileIdMismatch, h as resolveConfiguredModelRef, pi as updateAuthProfileStoreWithLock, tt as resolveApiKeyForProvider, xt as resolveApiKeyForProfile, yt as resolveProfileUnusableUntilForDisplay } from "./model-selection-
|
|
10
|
+
import { Ci as CODEX_CLI_PROFILE_ID, Kt as readConfigFileSnapshot, Ni as DEFAULT_MODEL, Pi as DEFAULT_PROVIDER, Si as CLAUDE_CLI_PROFILE_ID, Xt as writeConfigFile, _ as resolveHooksGmailModel, a as getModelRefStatus, ci as ensureAuthProfileStore, ei as repairOAuthProfileIdMismatch, h as resolveConfiguredModelRef, pi as updateAuthProfileStoreWithLock, tt as resolveApiKeyForProvider, xt as resolveApiKeyForProfile, yt as resolveProfileUnusableUntilForDisplay } from "./model-selection-DCo8MhsE.js";
|
|
11
11
|
import { t as formatCliCommand } from "./command-format-DBmYTAza.js";
|
|
12
12
|
import { t as isTruthyEnvValue$1 } from "./env-4r1Vlroz.js";
|
|
13
|
-
import { D as DEFAULT_SANDBOX_COMMON_IMAGE, E as DEFAULT_SANDBOX_BROWSER_IMAGE, O as DEFAULT_SANDBOX_IMAGE, p as resolveSandboxScope } from "./sandbox-
|
|
14
|
-
import { d as resolveGatewayBindHost, i as isLoopbackHost } from "./ws-
|
|
15
|
-
import { a as resolveGatewayAuth } from "./auth-
|
|
16
|
-
import { a as inspectPortUsage, l as formatPortDiagnostics } from "./ports-
|
|
17
|
-
import { $ as resolveMainSessionKey, ct as cleanStaleLockFiles, it as isPrimarySessionTranscriptFileName, o as loadSessionStore, rt as formatSessionArchiveTimestamp } from "./sessions-
|
|
18
|
-
import { n as listChannelPlugins } from "./plugins-
|
|
13
|
+
import { D as DEFAULT_SANDBOX_COMMON_IMAGE, E as DEFAULT_SANDBOX_BROWSER_IMAGE, O as DEFAULT_SANDBOX_IMAGE, p as resolveSandboxScope } from "./sandbox-DH9YtUfB.js";
|
|
14
|
+
import { d as resolveGatewayBindHost, i as isLoopbackHost } from "./ws-E9v842O2.js";
|
|
15
|
+
import { a as resolveGatewayAuth } from "./auth-B9WdgDjZ.js";
|
|
16
|
+
import { a as inspectPortUsage, l as formatPortDiagnostics } from "./ports-DXMCFRgn.js";
|
|
17
|
+
import { $ as resolveMainSessionKey, ct as cleanStaleLockFiles, it as isPrimarySessionTranscriptFileName, o as loadSessionStore, rt as formatSessionArchiveTimestamp } from "./sessions-sIaYsUyX.js";
|
|
18
|
+
import { n as listChannelPlugins } from "./plugins-Ce8ThYGQ.js";
|
|
19
19
|
import { c as resolveStorePath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-BJLbJUqV.js";
|
|
20
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
21
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
22
|
-
import { l as resolveDmAllowState } from "./pi-tools.policy-
|
|
23
|
-
import { r as isWSLEnv, t as isWSL } from "./wsl-
|
|
24
|
-
import { h as randomToken, n as applyWizardMetadata, p as printWizardHeader, s as guardCancel } from "./onboard-helpers-
|
|
20
|
+
import { n as loadModelCatalog } from "./model-catalog-DUHxH2xb.js";
|
|
21
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-B9Vrcbed.js";
|
|
22
|
+
import { l as resolveDmAllowState } from "./pi-tools.policy-Dwsq-Yaf.js";
|
|
23
|
+
import { r as isWSLEnv, t as isWSL } from "./wsl-Dg6XQcw5.js";
|
|
24
|
+
import { h as randomToken, n as applyWizardMetadata, p as printWizardHeader, s as guardCancel } from "./onboard-helpers-Jc1-4LBc.js";
|
|
25
25
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-sTNfJFX8.js";
|
|
26
|
-
import { i as resolveMemoryBackendConfig } from "./memory-cli-
|
|
27
|
-
import { n as DEFAULT_LOCAL_MODEL, r as resolveMemorySearchConfig } from "./manager-
|
|
26
|
+
import { i as resolveMemoryBackendConfig } from "./memory-cli-87nxADqy.js";
|
|
27
|
+
import { n as DEFAULT_LOCAL_MODEL, r as resolveMemorySearchConfig } from "./manager-X8AF3rQJ.js";
|
|
28
28
|
import { f as resolveGatewaySystemdServiceName, h as resolveNodeLaunchAgentLabel, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-DywKPp3i.js";
|
|
29
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
29
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-C7Q6Ezbv.js";
|
|
30
30
|
import { t as note$1 } from "./note-CLcV1fjx.js";
|
|
31
|
-
import { t as collectChannelStatusIssues } from "./channels-status-issues-
|
|
32
|
-
import { d as resolveSystemNodeInfo, l as renderSystemNodeWarning, n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-
|
|
31
|
+
import { t as collectChannelStatusIssues } from "./channels-status-issues-Dir7g-Pc.js";
|
|
32
|
+
import { d as resolveSystemNodeInfo, l as renderSystemNodeWarning, n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-CGZBs-X3.js";
|
|
33
33
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-D8xmnSd2.js";
|
|
34
|
-
import { l as uninstallLegacySystemdUnits, r as isSystemdUserServiceAvailable } from "./systemd-
|
|
35
|
-
import { a as launchAgentPlistExists, i as isLaunchAgentLoaded, o as repairLaunchAgentBootstrap, r as isLaunchAgentListed, s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-
|
|
36
|
-
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, o as needsNodeRuntimeMigration, r as SERVICE_AUDIT_CODES, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-
|
|
37
|
-
import { t as readLastGatewayErrorLine } from "./diagnostics-
|
|
38
|
-
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-
|
|
39
|
-
import { r as healthCommand } from "./health-
|
|
40
|
-
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-
|
|
41
|
-
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-
|
|
42
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
34
|
+
import { l as uninstallLegacySystemdUnits, r as isSystemdUserServiceAvailable } from "./systemd-BIfjzi-4.js";
|
|
35
|
+
import { a as launchAgentPlistExists, i as isLaunchAgentLoaded, o as repairLaunchAgentBootstrap, r as isLaunchAgentListed, s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-BcFhE63y.js";
|
|
36
|
+
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, o as needsNodeRuntimeMigration, r as SERVICE_AUDIT_CODES, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-CgtHwBfD.js";
|
|
37
|
+
import { t as readLastGatewayErrorLine } from "./diagnostics-D_AmByNE.js";
|
|
38
|
+
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-BwbOLUun.js";
|
|
39
|
+
import { r as healthCommand } from "./health-DlFSsTw-.js";
|
|
40
|
+
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-DpInddpx.js";
|
|
41
|
+
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-CeGx9Aq7.js";
|
|
42
|
+
import { t as runGatewayUpdate } from "./update-runner-Dj_CAfd4.js";
|
|
43
43
|
import { n as logConfigUpdated } from "./logging-yFV4aFrN.js";
|
|
44
|
-
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-
|
|
44
|
+
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-DKaeaH2u.js";
|
|
45
45
|
import { n as noteOpenAIOAuthTlsPrerequisites } from "./oauth-tls-preflight-i1WBNTG8.js";
|
|
46
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-
|
|
46
|
+
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-0Vho6LMt.js";
|
|
47
47
|
import { t as formatHealthCheckFailure } from "./health-format-CEAJLEPm.js";
|
|
48
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
48
|
+
import { n as doctorShellCompletion } from "./doctor-completion-UEYo4_U6.js";
|
|
49
49
|
import fs from "node:fs";
|
|
50
50
|
import os from "node:os";
|
|
51
51
|
import path from "node:path";
|
|
52
52
|
import { promisify } from "node:util";
|
|
53
|
-
import
|
|
53
|
+
import fsPromises from "node:fs/promises";
|
|
54
54
|
import { execFile } from "node:child_process";
|
|
55
55
|
import { confirm, intro, outro, select } from "@clack/prompts";
|
|
56
56
|
|
|
@@ -548,16 +548,16 @@ async function cleanupLegacyLaunchdService(params) {
|
|
|
548
548
|
await execFileAsync$1("launchctl", ["unload", params.plistPath]).catch(() => void 0);
|
|
549
549
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
550
550
|
try {
|
|
551
|
-
await
|
|
551
|
+
await fsPromises.mkdir(trashDir, { recursive: true });
|
|
552
552
|
} catch {}
|
|
553
553
|
try {
|
|
554
|
-
await
|
|
554
|
+
await fsPromises.access(params.plistPath);
|
|
555
555
|
} catch {
|
|
556
556
|
return null;
|
|
557
557
|
}
|
|
558
558
|
const dest = path.join(trashDir, `${params.label}-${Date.now()}.plist`);
|
|
559
559
|
try {
|
|
560
|
-
await
|
|
560
|
+
await fsPromises.rename(params.plistPath, dest);
|
|
561
561
|
return dest;
|
|
562
562
|
} catch {
|
|
563
563
|
return null;
|
|
@@ -1901,11 +1901,11 @@ async function maybeRepairUiProtocolFreshness(_runtime, prompter) {
|
|
|
1901
1901
|
argv1: process.argv[1]
|
|
1902
1902
|
})).indexPath ?? resolveControlUiDistIndexPathForRoot(root);
|
|
1903
1903
|
try {
|
|
1904
|
-
const [schemaStats, uiStats] = await Promise.all([
|
|
1904
|
+
const [schemaStats, uiStats] = await Promise.all([fsPromises.stat(schemaPath).catch(() => null), fsPromises.stat(uiIndexPath).catch(() => null)]);
|
|
1905
1905
|
if (schemaStats && !uiStats) {
|
|
1906
1906
|
note$1(["- Control UI assets are missing.", "- Run: pnpm ui:build"].join("\n"), "UI");
|
|
1907
1907
|
const uiSourcesPath = path.join(root, "ui/package.json");
|
|
1908
|
-
if (!await
|
|
1908
|
+
if (!await fsPromises.stat(uiSourcesPath).catch(() => null)) {
|
|
1909
1909
|
note$1("Skipping UI build: ui/ sources not present.", "UI");
|
|
1910
1910
|
return;
|
|
1911
1911
|
}
|
|
@@ -1950,7 +1950,7 @@ async function maybeRepairUiProtocolFreshness(_runtime, prompter) {
|
|
|
1950
1950
|
initialValue: true
|
|
1951
1951
|
})) {
|
|
1952
1952
|
const uiSourcesPath = path.join(root, "ui/package.json");
|
|
1953
|
-
if (!await
|
|
1953
|
+
if (!await fsPromises.stat(uiSourcesPath).catch(() => null)) {
|
|
1954
1954
|
note$1("Skipping UI rebuild: ui/ sources not present.", "UI");
|
|
1955
1955
|
return;
|
|
1956
1956
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { dt as loadOpenClawPlugins, ut as createPluginLoaderLogger } from "./reply-
|
|
1
|
+
import { dt as loadOpenClawPlugins, ut as createPluginLoaderLogger } from "./reply-DQMWsIE2.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-BT74-yyS.js";
|
|
3
|
-
import { ai as upsertAuthProfile, ci as ensureAuthProfileStore, d as normalizeProviderId } from "./model-selection-
|
|
4
|
-
import { r as isWSLEnv } from "./wsl-
|
|
3
|
+
import { ai as upsertAuthProfile, ci as ensureAuthProfileStore, d as normalizeProviderId } from "./model-selection-DCo8MhsE.js";
|
|
4
|
+
import { r as isWSLEnv } from "./wsl-Dg6XQcw5.js";
|
|
5
5
|
import { r as stylePromptTitle } from "./prompt-style-sTNfJFX8.js";
|
|
6
|
-
import { f as updateConfig } from "./shared-
|
|
7
|
-
import { d as applyAuthProfileConfig } from "./auth-token-
|
|
6
|
+
import { f as updateConfig } from "./shared-DNcLp2mA.js";
|
|
7
|
+
import { d as applyAuthProfileConfig } from "./auth-token-BPWVp11S.js";
|
|
8
8
|
import { n as logConfigUpdated } from "./logging-yFV4aFrN.js";
|
|
9
9
|
import { intro, note, outro, spinner } from "@clack/prompts";
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dn as isLegacyIpv4Literal, Mn as parseCanonicalIpAddress, Nn as parseLooseIpAddress, Sn as isCanonicalDottedDecimalIPv4, Tn as isIpv4Address, bn as isBlockedSpecialUseIpv4Address, xn as isBlockedSpecialUseIpv6Address, yn as extractEmbeddedIpv4FromIpv6 } from "./model-selection-
|
|
1
|
+
import { Dn as isLegacyIpv4Literal, Mn as parseCanonicalIpAddress, Nn as parseLooseIpAddress, Sn as isCanonicalDottedDecimalIPv4, Tn as isIpv4Address, bn as isBlockedSpecialUseIpv4Address, xn as isBlockedSpecialUseIpv6Address, yn as extractEmbeddedIpv4FromIpv6 } from "./model-selection-DCo8MhsE.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BYr-iJJ9.js";
|
|
2
2
|
import { r as isVerbose } from "./globals-uLeGcRW1.js";
|
|
3
|
-
import { y as sniffMimeFromBase64 } from "./reply-
|
|
3
|
+
import { y as sniffMimeFromBase64 } from "./reply-DQMWsIE2.js";
|
|
4
4
|
import { s as shouldLogSubsystemToConsole, t as createSubsystemLogger } from "./subsystem-BT74-yyS.js";
|
|
5
5
|
import { T as parseAgentSessionKey } from "./session-key-C9z4VQtw.js";
|
|
6
6
|
import { n as redactSensitiveText, t as getDefaultRedactPatterns } from "./redact-Bf_pxORb.js";
|
|
7
|
-
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-
|
|
8
|
-
import { o as estimateBase64DecodedBytes } from "./tool-images-
|
|
7
|
+
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-C7p5SEie.js";
|
|
8
|
+
import { o as estimateBase64DecodedBytes } from "./tool-images-CgSADinH.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import chalk from "chalk";
|
|
11
|
-
import
|
|
11
|
+
import fsPromises from "node:fs/promises";
|
|
12
12
|
import { createHash, createPrivateKey, sign } from "node:crypto";
|
|
13
13
|
import http2 from "node:http2";
|
|
14
14
|
|
|
@@ -526,7 +526,7 @@ async function resolveApnsAuthConfigFromEnv(env = process.env) {
|
|
|
526
526
|
value: {
|
|
527
527
|
teamId,
|
|
528
528
|
keyId,
|
|
529
|
-
privateKey: normalizePrivateKey(await
|
|
529
|
+
privateKey: normalizePrivateKey(await fsPromises.readFile(keyPath, "utf8"))
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
} catch (err) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./paths-BYr-iJJ9.js";
|
|
2
2
|
import { k as resolvePreferredOpenClawTmpDir } from "./globals-uLeGcRW1.js";
|
|
3
3
|
import "./utils-CP51tiAi.js";
|
|
4
|
-
import "./agent-scope-
|
|
4
|
+
import "./agent-scope-DHMu2mab.js";
|
|
5
5
|
import "./subsystem-BT74-yyS.js";
|
|
6
|
-
import "./workspace-
|
|
6
|
+
import "./workspace-TersEUYu.js";
|
|
7
7
|
import "./logger-D04dg4Ex.js";
|
|
8
8
|
import "./exec-BdDcFm8M.js";
|
|
9
|
-
import "./model-selection-
|
|
9
|
+
import "./model-selection-DCo8MhsE.js";
|
|
10
10
|
import "./github-copilot-token-CVsUoC9m.js";
|
|
11
11
|
import { t as formatCliCommand } from "./command-format-DBmYTAza.js";
|
|
12
12
|
import "./boolean-BgXe2hyu.js";
|
|
@@ -14,20 +14,20 @@ import "./env-4r1Vlroz.js";
|
|
|
14
14
|
import "./host-env-security-BiAcoumI.js";
|
|
15
15
|
import "./env-vars-DM119fhK.js";
|
|
16
16
|
import "./registry-CUyWRciN.js";
|
|
17
|
-
import "./manifest-registry-
|
|
18
|
-
import { O as withNoProxyForCdpUrl, _ as appendCdpPath, b as getHeadersWithAuth, d as normalizeCdpWsUrl, g as withBrowserNavigationPolicy, h as assertBrowserNavigationResultAllowed, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, v as fetchJson, x as withCdpSocket } from "./chrome-
|
|
19
|
-
import "./tailnet-
|
|
20
|
-
import "./ws-
|
|
21
|
-
import "./path-alias-guards-
|
|
22
|
-
import { a as resolveStrictExistingPathsWithinRoot, n as DEFAULT_TRACE_DIR, r as DEFAULT_UPLOAD_DIR, s as DEFAULT_FILL_FIELD_TYPE, t as DEFAULT_DOWNLOAD_DIR } from "./paths-
|
|
17
|
+
import "./manifest-registry-HNrtHxxI.js";
|
|
18
|
+
import { O as withNoProxyForCdpUrl, _ as appendCdpPath, b as getHeadersWithAuth, d as normalizeCdpWsUrl, g as withBrowserNavigationPolicy, h as assertBrowserNavigationResultAllowed, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, v as fetchJson, x as withCdpSocket } from "./chrome-2gfHr1cU.js";
|
|
19
|
+
import "./tailnet-C8NwaQEp.js";
|
|
20
|
+
import "./ws-E9v842O2.js";
|
|
21
|
+
import "./path-alias-guards-BNzjbOwM.js";
|
|
22
|
+
import { a as resolveStrictExistingPathsWithinRoot, n as DEFAULT_TRACE_DIR, r as DEFAULT_UPLOAD_DIR, s as DEFAULT_FILL_FIELD_TYPE, t as DEFAULT_DOWNLOAD_DIR } from "./paths-BZfURxkW.js";
|
|
23
23
|
import "./redact-Bf_pxORb.js";
|
|
24
24
|
import { r as formatErrorMessage } from "./errors-D5pCqwf4.js";
|
|
25
|
-
import { c as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
26
|
-
import "./proxy-env-
|
|
27
|
-
import "./ports-
|
|
25
|
+
import { c as writeFileFromPathWithinRoot } from "./fs-safe-BGAE6eOQ.js";
|
|
26
|
+
import "./proxy-env-DhFUQlwP.js";
|
|
27
|
+
import "./ports-DXMCFRgn.js";
|
|
28
28
|
import { n as markPwAiLoaded } from "./diagnostic-session-state-BdsrlXSG.js";
|
|
29
29
|
import path from "node:path";
|
|
30
|
-
import
|
|
30
|
+
import fsPromises from "node:fs/promises";
|
|
31
31
|
import crypto from "node:crypto";
|
|
32
32
|
import { chromium, devices } from "playwright-core";
|
|
33
33
|
|
|
@@ -563,7 +563,7 @@ async function writeViaSiblingTempPath(params) {
|
|
|
563
563
|
});
|
|
564
564
|
renameSucceeded = true;
|
|
565
565
|
} finally {
|
|
566
|
-
if (!renameSucceeded) await
|
|
566
|
+
if (!renameSucceeded) await fsPromises.rm(tempPath, { force: true }).catch(() => {});
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
|
|
@@ -954,7 +954,7 @@ async function saveDownloadPayload(download, outPath) {
|
|
|
954
954
|
const suggested = download.suggestedFilename?.() || "download.bin";
|
|
955
955
|
const requestedPath = outPath?.trim();
|
|
956
956
|
const resolvedOutPath = path.resolve(requestedPath || buildTempDownloadPath(suggested));
|
|
957
|
-
await
|
|
957
|
+
await fsPromises.mkdir(path.dirname(resolvedOutPath), { recursive: true });
|
|
958
958
|
if (!requestedPath) await download.saveAs?.(resolvedOutPath);
|
|
959
959
|
else await writeViaSiblingTempPath({
|
|
960
960
|
rootDir: DEFAULT_DOWNLOAD_DIR,
|
|
@@ -10,7 +10,7 @@ import { n as formatCliCommand } from "./env-DNMZEG57.js";
|
|
|
10
10
|
import "./boolean-mcn6kL0s.js";
|
|
11
11
|
import "./internal-hooks-yQe6H47q.js";
|
|
12
12
|
import "./registry-CJCkqTms.js";
|
|
13
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
13
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-CjTE-vWv.js";
|
|
14
14
|
import "./path-alias-guards-CKjKIhQ3.js";
|
|
15
15
|
import "./redact-ScShueoF.js";
|
|
16
16
|
import { r as formatErrorMessage } from "./errors-DEkWxItM.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BYr-iJJ9.js";
|
|
2
2
|
import "./globals-uLeGcRW1.js";
|
|
3
3
|
import "./utils-CP51tiAi.js";
|
|
4
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-DHMu2mab.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-BT74-yyS.js";
|
|
6
6
|
import { T as parseAgentSessionKey } from "./session-key-C9z4VQtw.js";
|
|
7
|
-
import "./workspace-
|
|
7
|
+
import "./workspace-TersEUYu.js";
|
|
8
8
|
import "./logger-D04dg4Ex.js";
|
|
9
9
|
import "./exec-BdDcFm8M.js";
|
|
10
|
-
import "./path-alias-guards-
|
|
10
|
+
import "./path-alias-guards-BNzjbOwM.js";
|
|
11
11
|
import "./redact-Bf_pxORb.js";
|
|
12
|
-
import { l as writeFileWithinRoot } from "./fs-safe-
|
|
12
|
+
import { l as writeFileWithinRoot } from "./fs-safe-BGAE6eOQ.js";
|
|
13
13
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-De2cBnWX.js";
|
|
14
14
|
import "./paths-BJLbJUqV.js";
|
|
15
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
15
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-B9kneDbd.js";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import path from "node:path";
|
|
18
|
-
import
|
|
18
|
+
import fsPromises from "node:fs/promises";
|
|
19
19
|
import { spawn } from "node:child_process";
|
|
20
20
|
import readline from "node:readline";
|
|
21
21
|
|
|
@@ -291,10 +291,10 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
291
291
|
async initialize(mode) {
|
|
292
292
|
this.bootstrapCollections();
|
|
293
293
|
if (mode === "status") return;
|
|
294
|
-
await
|
|
295
|
-
await
|
|
296
|
-
await
|
|
297
|
-
if (this.sessionExporter) await
|
|
294
|
+
await fsPromises.mkdir(this.xdgConfigHome, { recursive: true });
|
|
295
|
+
await fsPromises.mkdir(this.xdgCacheHome, { recursive: true });
|
|
296
|
+
await fsPromises.mkdir(path.dirname(this.indexPath), { recursive: true });
|
|
297
|
+
if (this.sessionExporter) await fsPromises.mkdir(this.sessionExporter.dir, { recursive: true });
|
|
298
298
|
await this.symlinkSharedModels();
|
|
299
299
|
await this.ensureCollections();
|
|
300
300
|
if (this.qmd.update.onBoot) {
|
|
@@ -387,7 +387,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
387
387
|
}
|
|
388
388
|
async ensureCollectionPath(collection) {
|
|
389
389
|
if (!this.isDirectoryGlobPattern(collection.pattern)) return;
|
|
390
|
-
await
|
|
390
|
+
await fsPromises.mkdir(collection.path, { recursive: true });
|
|
391
391
|
}
|
|
392
392
|
isDirectoryGlobPattern(pattern) {
|
|
393
393
|
return pattern.includes("*") || pattern.includes("?") || pattern.includes("[");
|
|
@@ -831,19 +831,19 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
831
831
|
const defaultModelsDir = path.join(defaultCacheHome, "qmd", "models");
|
|
832
832
|
const targetModelsDir = path.join(this.xdgCacheHome, "qmd", "models");
|
|
833
833
|
try {
|
|
834
|
-
if (!(await
|
|
834
|
+
if (!(await fsPromises.stat(defaultModelsDir).catch((err) => {
|
|
835
835
|
if (err.code === "ENOENT") return null;
|
|
836
836
|
throw err;
|
|
837
837
|
}))?.isDirectory()) return;
|
|
838
838
|
try {
|
|
839
|
-
await
|
|
839
|
+
await fsPromises.lstat(targetModelsDir);
|
|
840
840
|
return;
|
|
841
841
|
} catch {}
|
|
842
842
|
try {
|
|
843
|
-
await
|
|
843
|
+
await fsPromises.symlink(defaultModelsDir, targetModelsDir, "dir");
|
|
844
844
|
} catch (symlinkErr) {
|
|
845
845
|
const code = symlinkErr.code;
|
|
846
|
-
if (process.platform === "win32" && (code === "EPERM" || code === "ENOTSUP")) await
|
|
846
|
+
if (process.platform === "win32" && (code === "EPERM" || code === "ENOTSUP")) await fsPromises.symlink(defaultModelsDir, targetModelsDir, "junction");
|
|
847
847
|
else throw symlinkErr;
|
|
848
848
|
}
|
|
849
849
|
log.debug(`symlinked qmd models: ${defaultModelsDir} → ${targetModelsDir}`);
|
|
@@ -1019,7 +1019,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1019
1019
|
const count = Math.max(1, lines ?? Number.POSITIVE_INFINITY);
|
|
1020
1020
|
let handle;
|
|
1021
1021
|
try {
|
|
1022
|
-
handle = await
|
|
1022
|
+
handle = await fsPromises.open(absPath);
|
|
1023
1023
|
} catch (err) {
|
|
1024
1024
|
if (isFileMissingError(err)) return { missing: true };
|
|
1025
1025
|
throw err;
|
|
@@ -1051,7 +1051,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1051
1051
|
try {
|
|
1052
1052
|
return {
|
|
1053
1053
|
missing: false,
|
|
1054
|
-
text: await
|
|
1054
|
+
text: await fsPromises.readFile(absPath, "utf-8")
|
|
1055
1055
|
};
|
|
1056
1056
|
} catch (err) {
|
|
1057
1057
|
if (isFileMissingError(err)) return { missing: true };
|
|
@@ -1068,7 +1068,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1068
1068
|
async exportSessions() {
|
|
1069
1069
|
if (!this.sessionExporter) return;
|
|
1070
1070
|
const exportDir = this.sessionExporter.dir;
|
|
1071
|
-
await
|
|
1071
|
+
await fsPromises.mkdir(exportDir, { recursive: true });
|
|
1072
1072
|
const files = await listSessionFilesForAgent(this.agentId);
|
|
1073
1073
|
const keep = /* @__PURE__ */ new Set();
|
|
1074
1074
|
const tracked = /* @__PURE__ */ new Set();
|
|
@@ -1094,11 +1094,11 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1094
1094
|
});
|
|
1095
1095
|
keep.add(target);
|
|
1096
1096
|
}
|
|
1097
|
-
const exported = await
|
|
1097
|
+
const exported = await fsPromises.readdir(exportDir).catch(() => []);
|
|
1098
1098
|
for (const name of exported) {
|
|
1099
1099
|
if (!name.endsWith(".md")) continue;
|
|
1100
1100
|
const full = path.join(exportDir, name);
|
|
1101
|
-
if (!keep.has(full)) await
|
|
1101
|
+
if (!keep.has(full)) await fsPromises.rm(full, { force: true });
|
|
1102
1102
|
}
|
|
1103
1103
|
for (const [sessionFile, state] of this.exportedSessionState) if (!tracked.has(sessionFile) || !state.target.startsWith(exportDir + path.sep)) this.exportedSessionState.delete(sessionFile);
|
|
1104
1104
|
}
|
|
@@ -3,7 +3,7 @@ import { u as resolveGatewayPort } from "./paths-BYr-iJJ9.js";
|
|
|
3
3
|
import { p as theme } from "./globals-uLeGcRW1.js";
|
|
4
4
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
5
5
|
import { t as runCommandWithTimeout } from "./exec-BdDcFm8M.js";
|
|
6
|
-
import { An as isRfc1918Ipv4Address, Cn as isCarrierGradeNatIpv4Address, Wt as loadConfig } from "./model-selection-
|
|
6
|
+
import { An as isRfc1918Ipv4Address, Cn as isCarrierGradeNatIpv4Address, Wt as loadConfig } from "./model-selection-DCo8MhsE.js";
|
|
7
7
|
import { t as formatDocsLink } from "./links-CM7pO4C5.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import qrcode from "qrcode-terminal";
|
|
@@ -5,7 +5,7 @@ import { s as resolveSessionTranscriptsDirForAgent } from "./paths-BJLbJUqV.js";
|
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/memory/fs-utils.ts
|
|
@@ -15,7 +15,7 @@ function isFileMissingError(err) {
|
|
|
15
15
|
async function statRegularFile(absPath) {
|
|
16
16
|
let stat;
|
|
17
17
|
try {
|
|
18
|
-
stat = await
|
|
18
|
+
stat = await fsPromises.lstat(absPath);
|
|
19
19
|
} catch (err) {
|
|
20
20
|
if (isFileMissingError(err)) return { missing: true };
|
|
21
21
|
throw err;
|
|
@@ -50,7 +50,7 @@ function isMemoryPath(relPath) {
|
|
|
50
50
|
return normalized.startsWith("memory/");
|
|
51
51
|
}
|
|
52
52
|
async function walkDir(dir, files) {
|
|
53
|
-
const entries = await
|
|
53
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true });
|
|
54
54
|
for (const entry of entries) {
|
|
55
55
|
const full = path.join(dir, entry.name);
|
|
56
56
|
if (entry.isSymbolicLink()) continue;
|
|
@@ -70,7 +70,7 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
70
70
|
const memoryDir = path.join(workspaceDir, "memory");
|
|
71
71
|
const addMarkdownFile = async (absPath) => {
|
|
72
72
|
try {
|
|
73
|
-
const stat = await
|
|
73
|
+
const stat = await fsPromises.lstat(absPath);
|
|
74
74
|
if (stat.isSymbolicLink() || !stat.isFile()) return;
|
|
75
75
|
if (!absPath.endsWith(".md")) return;
|
|
76
76
|
result.push(absPath);
|
|
@@ -79,12 +79,12 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
79
79
|
await addMarkdownFile(memoryFile);
|
|
80
80
|
await addMarkdownFile(altMemoryFile);
|
|
81
81
|
try {
|
|
82
|
-
const dirStat = await
|
|
82
|
+
const dirStat = await fsPromises.lstat(memoryDir);
|
|
83
83
|
if (!dirStat.isSymbolicLink() && dirStat.isDirectory()) await walkDir(memoryDir, result);
|
|
84
84
|
} catch {}
|
|
85
85
|
const normalizedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
86
86
|
if (normalizedExtraPaths.length > 0) for (const inputPath of normalizedExtraPaths) try {
|
|
87
|
-
const stat = await
|
|
87
|
+
const stat = await fsPromises.lstat(inputPath);
|
|
88
88
|
if (stat.isSymbolicLink()) continue;
|
|
89
89
|
if (stat.isDirectory()) {
|
|
90
90
|
await walkDir(inputPath, result);
|
|
@@ -98,7 +98,7 @@ async function listMemoryFiles(workspaceDir, extraPaths) {
|
|
|
98
98
|
for (const entry of result) {
|
|
99
99
|
let key = entry;
|
|
100
100
|
try {
|
|
101
|
-
key = await
|
|
101
|
+
key = await fsPromises.realpath(entry);
|
|
102
102
|
} catch {}
|
|
103
103
|
if (seen.has(key)) continue;
|
|
104
104
|
seen.add(key);
|
|
@@ -112,14 +112,14 @@ function hashText(value) {
|
|
|
112
112
|
async function buildFileEntry(absPath, workspaceDir) {
|
|
113
113
|
let stat;
|
|
114
114
|
try {
|
|
115
|
-
stat = await
|
|
115
|
+
stat = await fsPromises.stat(absPath);
|
|
116
116
|
} catch (err) {
|
|
117
117
|
if (isFileMissingError(err)) return null;
|
|
118
118
|
throw err;
|
|
119
119
|
}
|
|
120
120
|
let content;
|
|
121
121
|
try {
|
|
122
|
-
content = await
|
|
122
|
+
content = await fsPromises.readFile(absPath, "utf-8");
|
|
123
123
|
} catch (err) {
|
|
124
124
|
if (isFileMissingError(err)) return null;
|
|
125
125
|
throw err;
|
|
@@ -253,7 +253,7 @@ const log = createSubsystemLogger("memory");
|
|
|
253
253
|
async function listSessionFilesForAgent(agentId) {
|
|
254
254
|
const dir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
255
255
|
try {
|
|
256
|
-
return (await
|
|
256
|
+
return (await fsPromises.readdir(dir, { withFileTypes: true })).filter((entry) => entry.isFile()).map((entry) => entry.name).filter((name) => name.endsWith(".jsonl")).map((name) => path.join(dir, name));
|
|
257
257
|
} catch {
|
|
258
258
|
return [];
|
|
259
259
|
}
|
|
@@ -283,8 +283,8 @@ function extractSessionText(content) {
|
|
|
283
283
|
}
|
|
284
284
|
async function buildSessionEntry(absPath) {
|
|
285
285
|
try {
|
|
286
|
-
const stat = await
|
|
287
|
-
const lines = (await
|
|
286
|
+
const stat = await fsPromises.stat(absPath);
|
|
287
|
+
const lines = (await fsPromises.readFile(absPath, "utf-8")).split("\n");
|
|
288
288
|
const collected = [];
|
|
289
289
|
const lineMap = [];
|
|
290
290
|
for (let jsonlIdx = 0; jsonlIdx < lines.length; jsonlIdx++) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-BT74-yyS.js";
|
|
2
|
-
import { un as sensitive } from "./model-selection-
|
|
2
|
+
import { un as sensitive } from "./model-selection-DCo8MhsE.js";
|
|
3
3
|
import JSON5 from "json5";
|
|
4
4
|
import { isDeepStrictEqual } from "node:util";
|
|
5
5
|
import { z } from "zod";
|