@bitseek/claw 1.3.8-beta.3 → 1.3.8-beta.4
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-DtaSiAum.js → accounts-CQrvvU8V.js} +1 -1
- package/dist/{accounts-CTKra7aS.js → accounts-CzfKkJDx.js} +7 -7
- package/dist/{accounts-B4wV9IFm.js → accounts-YtMo-RPC.js} +1 -1
- package/dist/{acp-cli-CSRDFixR.js → acp-cli-C0Oz6RFa.js} +8 -8
- package/dist/{agent-scope-BrbgAMci.js → agent-scope-qYbUVCHn.js} +1 -1
- package/dist/{agents-B3roVbYI.js → agents-Co_-XzRP.js} +15 -15
- package/dist/{agents.config-BLKDc8io.js → agents.config-EnxTBynI.js} +2 -2
- package/dist/{api-key-rotation-BdoPDM3X.js → api-key-rotation-XTdz_cvI.js} +1 -1
- package/dist/{audio-preflight-Pdv9uiw6.js → audio-preflight-B6Jw9LUM.js} +36 -36
- package/dist/{audio-preflight-D-sfV0QK.js → audio-preflight-DWC4cRxQ.js} +4 -4
- package/dist/{audio-transcription-runner-BVp79Ioa.js → audio-transcription-runner-BC2TeD8r.js} +1 -1
- package/dist/{audio-transcription-runner-DBPatTZv.js → audio-transcription-runner-CF3DjqKy.js} +22 -22
- package/dist/{audit-p4lBCTPz.js → audit-pIY_GfjC.js} +29 -29
- package/dist/{auth-DuCrQ5K9.js → auth-DhaM6Od5.js} +1 -1
- package/dist/{auth-choice-BogBxPQ0.js → auth-choice-CfoGAmJm.js} +14 -14
- package/dist/{auth-choice-CWhbVAmr.js → auth-choice-r5CXFvMV.js} +12 -12
- package/dist/{auth-choice.apply-helpers-CtAelPdF.js → auth-choice.apply-helpers-DI1qnxc_.js} +1 -1
- package/dist/{auth-profiles-k09E8RLJ.js → auth-profiles-CDN1QqUB.js} +16 -16
- package/dist/{auth-token-CWb4NQTJ.js → auth-token-BtyMfDQt.js} +1 -1
- package/dist/{banner-DyZFjt3Q.js → banner-CDZD_rv-.js} +2 -2
- package/dist/{bindings-C9vpkXej.js → bindings-D9ZiGe2K.js} +1 -1
- package/dist/{bonjour-discovery-DyLRXLw1.js → bonjour-discovery-CBcz-0Ts.js} +1 -1
- package/dist/{browser-cli-CDsv9Dvw.js → browser-cli-CTcWXrJp.js} +12 -12
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-CBH5yDff.js → call-BSBuLNiX.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-C3TU0o4T.js → channel-account-context-Cc-TbAKt.js} +5 -5
- package/dist/{channel-options-9r0jhaF7.js → channel-options-BfDmqXBz.js} +3 -3
- package/dist/{channel-selection-DZrPYytY.js → channel-selection-BKyzCX35.js} +1 -1
- package/dist/{channel-web-Df9c4iPg.js → channel-web-DJtTLglg.js} +18 -18
- package/dist/{channels-cli-Bi5IcGws.js → channels-cli-BdbCWhq7.js} +95 -95
- package/dist/{channels-status-issues-Bb3ugkRr.js → channels-status-issues-Cn340Vbe.js} +1 -1
- package/dist/{chrome-D8KosHAE.js → chrome-CGMBwBlZ.js} +8 -8
- package/dist/{chrome-BVlYi4nu.js → chrome-zP7qr3zd.js} +4 -4
- package/dist/{clawbot-cli-CkZGXd20.js → clawbot-cli-Nk_oXaxe.js} +5 -5
- package/dist/{cli-2CbkQG_y.js → cli-BAFODF--.js} +76 -76
- package/dist/{client-CIji7FpE.js → client-Swf30UOh.js} +2 -2
- package/dist/{command-registry-Ciq2wbUi.js → command-registry-RTq7TBkJ.js} +13 -13
- package/dist/{commands-B7V-vN3N.js → commands-B8w5Izi1.js} +1 -1
- package/dist/{commands-registry-B6LbRm3U.js → commands-registry-Ctux_Nq3.js} +3 -3
- package/dist/{completion-cli-BtWS51xD.js → completion-cli-Cp4gleu_.js} +13 -13
- package/dist/{config-cli-DgKjaGSi.js → config-cli-BNaHtYNZ.js} +7 -7
- package/dist/{config-guard-D5XZLbXA.js → config-guard-CSxpqsBG.js} +3 -3
- package/dist/{config-validation-DT8qQYoa.js → config-validation-Tf6YL4jH.js} +3 -3
- package/dist/{configure-D51Hau9O.js → configure-Dwelp0U_.js} +17 -17
- package/dist/{control-ui-assets-Bn4e_1By.js → control-ui-assets-BxJ3OmP_.js} +1 -1
- package/dist/{cron-cli-D6OHJFdO.js → cron-cli-BrpTLnwT.js} +12 -12
- package/dist/{daemon-cli-BxFuWNM-.js → daemon-cli-S2o4Kcwu.js} +15 -15
- package/dist/{daemon-install-BjgH7Ld5.js → daemon-install-C0YHpEQQ.js} +4 -4
- package/dist/{daemon-install-helpers-Crntu4pF.js → daemon-install-helpers-DLIsWH31.js} +11 -11
- package/dist/{dashboard-B0FYUw0G.js → dashboard-B_7Hjxc6.js} +2 -2
- package/dist/{deliver-3f8JxB_A.js → deliver-CPCEIyDG.js} +1 -1
- package/dist/{deliver-Bm4UojU1.js → deliver-CQmmhMaR.js} +7 -7
- package/dist/{devices-cli-D2qzgS6n.js → devices-cli-CXtMoEZv.js} +8 -8
- package/dist/{diagnostic-DOls91uN.js → diagnostic-C5Por-ID.js} +1 -1
- package/dist/{diagnostics-D4xhje-h.js → diagnostics-0PFoNolS.js} +5 -5
- package/dist/{directory-cli-BDxc1M2a.js → directory-cli-NpBfkxfT.js} +8 -8
- package/dist/{dns-cli-DImurxu6.js → dns-cli-CNYoy9mq.js} +5 -5
- package/dist/{dock-CcEfMX5D.js → dock-CHDx-TGb.js} +4 -4
- package/dist/{docs-cli-Cp25W8Hv.js → docs-cli-CLZqiB15.js} +4 -4
- package/dist/{doctor-completion-YtQqTVcr.js → doctor-completion-CpA-KQ0h.js} +2 -2
- package/dist/{doctor-config-flow-DtaIUiEk.js → doctor-config-flow-m-m_m5Ot.js} +15 -15
- package/dist/{enable-Dfmg2SV3.js → enable-yaF2vNOj.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-IOB4HV3z.js → exec-approvals-allowlist-Cw4xMxbI.js} +1 -1
- package/dist/{exec-approvals-cli-B6X8jOx7.js → exec-approvals-cli-BffaLELS.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CEdwujzY.js → exec-safe-bin-runtime-policy-Bu0TwxE1.js} +2 -2
- package/dist/{fetch-guard-oYuVfv1t.js → fetch-guard-CQZ5FOwI.js} +1 -1
- package/dist/{fetch-BAv7yBBS.js → fetch-lTdl-0IY.js} +3 -3
- package/dist/{fs-safe--YXsniNZ.js → fs-safe-BQS_SZ0h.js} +24 -24
- package/dist/{gateway-cli-hP7_aftQ.js → gateway-cli-C44pKHoa.js} +161 -161
- package/dist/{gateway-rpc-C6F7QPVq.js → gateway-rpc-qWYRLZ-Z.js} +1 -1
- package/dist/{health-DOIxOlnm.js → health-DIS2FlPd.js} +14 -14
- package/dist/{hooks-cli-B3VUhq72.js → hooks-cli-C4Wqknt2.js} +84 -84
- package/dist/{hooks-status-qBCorl-z.js → hooks-status-BE0dSQIW.js} +1 -1
- package/dist/{image-BOSsTjNj.js → image-BgCM5v5-.js} +5 -5
- package/dist/{image-XbGdWslx.js → image-RroCfqy3.js} +1 -1
- package/dist/{image-ops-B2K36FLD.js → image-ops-HxQLrFqd.js} +10 -10
- package/dist/{inspect-DkrsY9Gy.js → inspect-DY_qpyux.js} +4 -4
- package/dist/{install-safe-path-DXP_88Em.js → install-safe-path-K9dhxxcy.js} +25 -25
- package/dist/{installs-DgI58LlC.js → installs-BYz0q4kc.js} +9 -9
- package/dist/{ipv4-BuO7nxQZ.js → ipv4-Bj71-jpu.js} +1 -1
- package/dist/{ir-BCl0dA3G.js → ir-C_-vG6Lv.js} +6 -6
- package/dist/{issue-format-Cat2txpr.js → issue-format-1i6b6tFd.js} +1 -1
- package/dist/{json-files-DrZ4qfxw.js → json-files-1hhV5hS6.js} +8 -8
- package/dist/{lifecycle-core-CliTbXyj.js → lifecycle-core-BZVbJEGI.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{login-_s-srXtA.js → login-KG5TFHFb.js} +3 -3
- package/dist/{login-qr-BNBXsYor.js → login-qr-D4L1NDeu.js} +6 -6
- package/dist/{logs-cli-B4Nwp099.js → logs-cli-D2lMkM4P.js} +9 -9
- package/dist/{manager-rK3J4Po3.js → manager-C0nx9SKi.js} +14 -14
- package/dist/{manifest-registry-hRB5Jb3F.js → manifest-registry-Co__Fy6F.js} +1 -1
- package/dist/{markdown-tables-Mk_tnsfY.js → markdown-tables-D47ZANhY.js} +1 -1
- package/dist/{memory-cli-BbEwsmor.js → memory-cli-BwxTb296.js} +12 -12
- package/dist/{model-Cd4C4aY1.js → model-C30BtXEI.js} +2 -2
- package/dist/{model-catalog-Chb7lzRo.js → model-catalog-C0pv85X0.js} +3 -3
- package/dist/{model-picker-CdgwJ2MU.js → model-picker-Dediiqpo.js} +4 -4
- package/dist/{models-CL1jaXSC.js → models-Dy35lY8K.js} +18 -18
- package/dist/{models-cli-BeARCGBj.js → models-cli-DBsERrAX.js} +81 -81
- package/dist/{models-config-CkOKPbk9.js → models-config-NbV2Gu7N.js} +6 -6
- package/dist/{net-Bxr80JTs.js → net-DrfP4uzJ.js} +2 -2
- package/dist/{node-cli-DelBH0Tb.js → node-cli-CnKN38mM.js} +33 -33
- package/dist/{node-command-policy-DKPye8Fx.js → node-command-policy-xyqdwsT9.js} +1 -1
- package/dist/{node-service-Cei5AkFg.js → node-service-DEfPXKwF.js} +1 -1
- package/dist/{nodes-cli-CLNRURvx.js → nodes-cli-CFaqvZCM.js} +16 -16
- package/dist/{nodes-screen-NjyoMja_.js → nodes-screen-DNzr75bx.js} +7 -7
- package/dist/{npm-pack-install-B5tn-EtA.js → npm-pack-install-U_Bbmdqc.js} +18 -18
- package/dist/{npm-resolution-Brdkv6mO.js → npm-resolution-BzCW7TCH.js} +5 -5
- package/dist/{onboard-CqSuI-jq.js → onboard-F7n3_iVh.js} +6 -6
- package/dist/{onboard-channels-gTeBkpnk.js → onboard-channels-CXnqSbh7.js} +20 -20
- package/dist/{onboard-custom-DhEI_A-m.js → onboard-custom-xXrb_3q4.js} +3 -3
- package/dist/{onboard-custom.shared-DoXUpHZV.js → onboard-custom.shared-fTdY9R_i.js} +2 -2
- package/dist/{onboard-helpers-ngPRx_6_.js → onboard-helpers-DX8Hw_zc.js} +11 -11
- package/dist/{onboard-hooks-CJvqjkid.js → onboard-hooks-DCPdhrCK.js} +4 -4
- package/dist/{onboard-remote-DRt29Vs4.js → onboard-remote-aF3GW6mE.js} +3 -3
- package/dist/{onboard-skills-CoWAaHHg.js → onboard-skills-CzFxXcom.js} +4 -4
- package/dist/{onboarding-Dp4X7ISI.js → onboarding-C3pHfO7a.js} +13 -13
- package/dist/{onboarding.finalize-DyQnfLTz.js → onboarding.finalize-Ca_Zcpts.js} +89 -89
- package/dist/{onboarding.gateway-config-B1orRdI7.js → onboarding.gateway-config-B5jnM62F.js} +18 -18
- package/dist/{openai-model-default-DRYz3m4d.js → openai-model-default-eaULYpD0.js} +2 -2
- package/dist/{outbound-BGJh4s6Y.js → outbound-CF1Hd23W.js} +4 -4
- package/dist/{outbound-attachment-Baso-yal.js → outbound-attachment-BMlPpVOn.js} +2 -2
- package/dist/{pairing-cli-DgUIYETM.js → pairing-cli-DkVLCjGa.js} +9 -9
- package/dist/{pairing-labels-BPTURWrI.js → pairing-labels-CesrJlbr.js} +1 -1
- package/dist/{pairing-store-WGGwqFJB.js → pairing-store-BcJH8WDh.js} +3 -3
- package/dist/{path-alias-guards-DdR4BKPM.js → path-alias-guards-C_j0uB0Y.js} +3 -3
- package/dist/{path-safety-DiJhMaUA.js → path-safety-BHBxNYfO.js} +1 -1
- package/dist/{paths-BPXmr3Zn.js → paths-Bj8pNglF.js} +9 -9
- package/dist/{pi-embedded-BJ2D2U7f.js → pi-embedded-DbU5C8eR.js} +22 -22
- package/dist/{pi-embedded-helpers-ET1kDdN1.js → pi-embedded-helpers-Cc4tC0fE.js} +6 -6
- package/dist/{pi-embedded-helpers-BL7vjkKS.js → pi-embedded-helpers-DAITpRHR.js} +3 -3
- package/dist/{pi-model-discovery-COnY_kTM.js → pi-model-discovery-ItDCP5Ab.js} +1 -1
- package/dist/{pi-tools.policy-Cp3wptYh.js → pi-tools.policy-BbLCMNCc.js} +5 -5
- package/dist/{plugin-auto-enable-Bm8hMcPA.js → plugin-auto-enable-BxiIEIvc.js} +3 -3
- package/dist/{plugin-registry-DWd-znRA.js → plugin-registry-DT2OvA5Z.js} +3 -3
- package/dist/{plugins-CO6qDFdk.js → plugins--_65-dc5.js} +2 -2
- package/dist/{plugins-cli-B90nR_VK.js → plugins-cli-BmJ7h0-l.js} +86 -86
- package/dist/{ports-CUjMnvTs.js → ports-Cw4Nwv2D.js} +1 -1
- package/dist/{ports-Dczj_PV_.js → ports-DgCQT1oY.js} +2 -2
- package/dist/{program-5vm1a5f-.js → program-CStT3Tdz.js} +84 -84
- package/dist/{prompt-select-styled-D5N-DZSk.js → prompt-select-styled-BOM_B36f.js} +39 -39
- package/dist/{provider-auth-helpers-Btf9aI1h.js → provider-auth-helpers-BubJ5s-y.js} +5 -5
- package/dist/{proxy-env-DQGTNk9X.js → proxy-env-DHBs_DSq.js} +1 -1
- package/dist/{push-apns-CzIypSJf.js → push-apns-Ck9shhvZ.js} +5 -5
- package/dist/{pw-ai-B5Q17lfW.js → pw-ai-BlcIl51R.js} +1 -1
- package/dist/{pw-ai-D1Ry3gcn.js → pw-ai-DYEHR6w8.js} +15 -15
- package/dist/{qmd-manager-BNFUTVvk.js → qmd-manager-BHSD3_rI.js} +20 -20
- package/dist/{qr-cli-BTrl8Tw4.js → qr-cli-CKOGSVK_.js} +1 -1
- package/dist/{query-expansion-CP4BjmxS.js → query-expansion-BkWbp0bs.js} +12 -12
- package/dist/{redact-snapshot-QpVJSBBX.js → redact-snapshot-BzZpHz-O.js} +1 -1
- package/dist/{register.agent-BksD8xqL.js → register.agent-DT71MEX9.js} +97 -97
- package/dist/register.configure-BWunAqlW.js +175 -0
- package/dist/{register.init-B26Ry-q0.js → register.init-CIS-LY0i.js} +16 -16
- package/dist/{register.maintenance-DZZc7WGW.js → register.maintenance-DWo73fOE.js} +99 -99
- package/dist/{register.message-DW2G2t5n.js → register.message-6kMQG_ny.js} +77 -77
- package/dist/{register.onboard-kzLJdF35.js → register.onboard-Cu-xLkmj.js} +18 -18
- package/dist/{register.setup-C5qExQuD.js → register.setup-DOgl3Biv.js} +21 -21
- package/dist/{register.start-CbfmMKWY.js → register.start-D0pe3Bgs.js} +17 -17
- package/dist/{register.status-health-sessions-CMZuvcON.js → register.status-health-sessions-tMSX9Z5o.js} +91 -91
- package/dist/{register.subclis-o8k-y9CC.js → register.subclis-BMjHVUZN.js} +31 -31
- package/dist/{replies-Dx5zA8IX.js → replies-uQ56Hw52.js} +1 -1
- package/dist/{reply-prefix-CS57j6KU.js → reply-prefix-XmrGZdy_.js} +1 -1
- package/dist/{resolve-route-Bxji0kZW.js → resolve-route-Ukn_7wVk.js} +2 -2
- package/dist/{rpc-cRmU1tSk.js → rpc-3QEhCMY4.js} +1 -1
- package/dist/{run-main-CEEV_P4Y.js → run-main-DoPcdD6j.js} +95 -95
- package/dist/{runtime-COI_IE2j.js → runtime-B4lkRQQD.js} +2 -2
- package/dist/{sandbox-BNSLjYyu.js → sandbox-CEIoYXZN.js} +18 -18
- package/dist/{sandbox-cli-C1OPjNfD.js → sandbox-cli-BrTy3weD.js} +26 -26
- package/dist/{secrets-cli-7Md_QcpC.js → secrets-cli-DeFPoA0b.js} +10 -10
- package/dist/{security-cli-D68NIF3V.js → security-cli-CpDjK_Rg.js} +43 -43
- package/dist/{send-C8xKNHVm.js → send-6U8MorA7.js} +6 -6
- package/dist/{send-DX2I6KZU.js → send-BY8NE-y9.js} +8 -8
- package/dist/{send-DikEpk7w.js → send-BdKdRPi6.js} +6 -6
- package/dist/{send-CUvJIfFz.js → send-CVDGeH7A.js} +11 -11
- package/dist/{send-BpYBrb6S.js → send-CtAy9-2u.js} +5 -5
- package/dist/{server-D_wuOlkf.js → server-C9XFPL3c.js} +19 -19
- package/dist/{server-context-Dl8XC4vq.js → server-context-DtOlWY9P.js} +12 -12
- package/dist/{server-lifecycle-BIuR7Tj0.js → server-lifecycle-CXzU2NM3.js} +2 -2
- package/dist/{server-middleware-C_4mR9wU.js → server-middleware-Bp3DeSvQ.js} +1 -1
- package/dist/{server-node-events-B-IAFJfU.js → server-node-events-BcOJ7KmG.js} +77 -77
- package/dist/{service-BcyKtT1n.js → service-DPP3q6R4.js} +15 -15
- package/dist/{session-DyGs2JIG.js → session-6uNAHyWp.js} +1 -1
- package/dist/{session-meta-C7WybT5h.js → session-meta-DGKTOhxQ.js} +1 -1
- package/dist/{session-utils-CYaFN47T.js → session-utils-hbZzVDyj.js} +6 -6
- package/dist/{sessions-Cd7cVPC-.js → sessions-CbWqJtkx.js} +4 -4
- package/dist/{sessions-i5lEEEca.js → sessions-DB4MRK6L.js} +15 -15
- package/dist/{shared-CL0m0H8G.js → shared-D6mi8wP1.js} +1 -1
- package/dist/{shared-BKC5qsuY.js → shared-yo9kxQZW.js} +3 -3
- package/dist/{skill-commands-Cl6M7kpE.js → skill-commands-Duha9iIC.js} +5 -5
- package/dist/{skill-scanner-WUtERLdW.js → skill-scanner-Di-O2Hg-.js} +6 -6
- package/dist/{skills-cli-C0gXv9PH.js → skills-cli-Dkjzn2SU.js} +5 -5
- package/dist/{skills-B18XPCNc.js → skills-dNa7QxCF.js} +3 -3
- package/dist/{skills-install-DYR6yH15.js → skills-install-ARBA7lP0.js} +6 -6
- package/dist/{skills-status-D9Rnj4xI.js → skills-status-B4yuFDEj.js} +1 -1
- package/dist/{status-Dwe_iuCP.js → status-CfL923KW.js} +26 -26
- package/dist/{status.update-C0psHodW.js → status.update-aARe-MF6.js} +2 -2
- package/dist/{store-D-c26kSk.js → store-BpvlJ70I.js} +5 -5
- package/dist/{subagent-registry-eE5PhOhY.js → subagent-registry-DEFti4F9.js} +157 -157
- package/dist/{system-cli-kpN0Gb37.js → system-cli-CYspMbRb.js} +9 -9
- package/dist/{system-run-command-DFxer2oq.js → system-run-command-BJQ7Q63p.js} +1 -1
- package/dist/{systemd-ebIdQGFn.js → systemd-BtVy3Rbo.js} +9 -9
- package/dist/{systemd-hints-tCX_kug7.js → systemd-hints-BetNJuAX.js} +6 -6
- package/dist/{systemd-linger-IFrOwkb9.js → systemd-linger-CWPZsER4.js} +1 -1
- package/dist/{tables-FZbGazqi.js → tables-Bv2Hq-F0.js} +1 -1
- package/dist/{tailnet-BKoOcmOa.js → tailnet-Dynp_Pgs.js} +1 -1
- package/dist/{target-errors-CL097N6P.js → target-errors-Bwi1jTIf.js} +4 -4
- package/dist/{tool-images-CXfdtMwT.js → tool-images-D7dXfsZW.js} +1 -1
- package/dist/{tui-D3HyXPhF.js → tui-CYj3VX-Y.js} +6 -6
- package/dist/{tui-cli-BYXDIVRr.js → tui-cli-g7SERHtf.js} +33 -33
- package/dist/{update-D372fHKr.js → update-DbGfT3_u.js} +3 -3
- package/dist/{update-cli-D2pd7IJi.js → update-cli-ny6m1bJQ.js} +107 -107
- package/dist/{update-runner-j5RoheCK.js → update-runner-BjX-ARIw.js} +16 -16
- package/dist/web-CqfFsaTH.js +127 -0
- package/dist/{web-DcyT3FlY.js → web-DoyNp6wO.js} +6 -6
- package/dist/{webhooks-cli-DgLGWDer.js → webhooks-cli-CoxuOMZ6.js} +6 -6
- package/dist/{whatsapp-actions-BC00XF83.js → whatsapp-actions-0CZKI1og.js} +19 -19
- package/dist/{with-timeout-DvPUrPuK.js → with-timeout-cpgy0l-9.js} +3 -3
- package/dist/{workspace-Cuq5sS-4.js → workspace-DYiAh9n2.js} +1 -1
- package/dist/{workspace-DkRZH7vl.js → workspace-DtFDeYRa.js} +23 -23
- package/dist/{workspace-dirs-DBhaJ0y_.js → workspace-dirs-BAyX7JI2.js} +1 -1
- package/dist/{wsl-KDz114y6.js → wsl-CiVud8tt.js} +2 -2
- package/package.json +1 -1
- package/dist/register.configure-CJVJLDtX.js +0 -175
- package/dist/web-Kse4dEsw.js +0 -127
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as CONFIG_DIR, v as resolveUserPath } from "./utils-BHAtQ0dM.js";
|
|
2
2
|
import { i as isPathInside, r as extensionUsesSkippedScannerPath } from "./legacy-names-D3aIn6ij.js";
|
|
3
|
-
import { o as loadPluginManifest, s as resolvePackageExtensionEntries } from "./manifest-registry-
|
|
4
|
-
import { S as validateRegistryNpmSpec } from "./skills-
|
|
5
|
-
import { c as writeFileFromPathWithinRoot } from "./fs-safe
|
|
6
|
-
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, r as safeDirName, u as resolveArchiveKind } from "./install-safe-path-
|
|
7
|
-
import { a as installPackageDir, c as resolveTimedInstallModeOptions, d as buildNpmResolutionFields, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-
|
|
8
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
3
|
+
import { o as loadPluginManifest, s as resolvePackageExtensionEntries } from "./manifest-registry-Co__Fy6F.js";
|
|
4
|
+
import { S as validateRegistryNpmSpec } from "./skills-dNa7QxCF.js";
|
|
5
|
+
import { c as writeFileFromPathWithinRoot } from "./fs-safe-BQS_SZ0h.js";
|
|
6
|
+
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, r as safeDirName, u as resolveArchiveKind } from "./install-safe-path-K9dhxxcy.js";
|
|
7
|
+
import { a as installPackageDir, c as resolveTimedInstallModeOptions, d as buildNpmResolutionFields, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-U_Bbmdqc.js";
|
|
8
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-Di-O2Hg-.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fsPromises from "node:fs/promises";
|
|
11
11
|
|
|
12
12
|
//#region src/plugins/install.ts
|
|
13
13
|
const MISSING_EXTENSIONS_ERROR = "package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example [\"./dist/index.js\"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions";
|
|
@@ -237,7 +237,7 @@ async function installPluginFromDir(params) {
|
|
|
237
237
|
ok: false,
|
|
238
238
|
error: `directory not found: ${dirPath}`
|
|
239
239
|
};
|
|
240
|
-
if (!(await
|
|
240
|
+
if (!(await fsPromises.stat(dirPath)).isDirectory()) return {
|
|
241
241
|
ok: false,
|
|
242
242
|
error: `not a directory: ${dirPath}`
|
|
243
243
|
};
|
|
@@ -254,7 +254,7 @@ async function installPluginFromFile(params) {
|
|
|
254
254
|
error: `file not found: ${filePath}`
|
|
255
255
|
};
|
|
256
256
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
257
|
-
await
|
|
257
|
+
await fsPromises.mkdir(extensionsDir, { recursive: true });
|
|
258
258
|
const pluginId = path.basename(filePath, path.extname(filePath)) || "plugin";
|
|
259
259
|
const pluginIdError = validatePluginId(pluginId);
|
|
260
260
|
if (pluginIdError) return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bt as parseCanonicalIpAddress, mt as isIpv6Address, ut as isCanonicalDottedDecimalIPv4 } from "./auth-profiles-
|
|
1
|
+
import { bt as parseCanonicalIpAddress, mt as isIpv6Address, ut as isCanonicalDottedDecimalIPv4 } from "./auth-profiles-CDN1QqUB.js";
|
|
2
2
|
import { o as getTailnetHostname } from "./tailscale-CFR4X5-p.js";
|
|
3
3
|
|
|
4
4
|
//#region src/gateway/gateway-config-prompts.shared.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as logVerbose, c as shouldLogVerbose } from "./globals-BSCHJiM2.js";
|
|
2
2
|
import { v as resolveUserPath } from "./utils-BHAtQ0dM.js";
|
|
3
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
4
|
-
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe
|
|
5
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
3
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-HxQLrFqd.js";
|
|
4
|
+
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-BQS_SZ0h.js";
|
|
5
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-lTdl-0IY.js";
|
|
6
6
|
import { a as chunkText } from "./chunk-C0-ifupK.js";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import fsPromises from "node:fs/promises";
|
|
10
10
|
import MarkdownIt from "markdown-it";
|
|
11
11
|
|
|
12
12
|
//#region src/web/media.ts
|
|
@@ -37,7 +37,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
37
37
|
const roots = localRoots ?? getDefaultLocalRoots();
|
|
38
38
|
let resolved;
|
|
39
39
|
try {
|
|
40
|
-
resolved = await
|
|
40
|
+
resolved = await fsPromises.realpath(mediaPath);
|
|
41
41
|
} catch {
|
|
42
42
|
resolved = path.resolve(mediaPath);
|
|
43
43
|
}
|
|
@@ -54,7 +54,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
54
54
|
for (const root of roots) {
|
|
55
55
|
let resolvedRoot;
|
|
56
56
|
try {
|
|
57
|
-
resolvedRoot = await
|
|
57
|
+
resolvedRoot = await fsPromises.realpath(root);
|
|
58
58
|
} catch {
|
|
59
59
|
resolvedRoot = path.resolve(root);
|
|
60
60
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fsPromises from "node:fs/promises";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/json-files.ts
|
|
6
6
|
async function readJsonFile(filePath) {
|
|
7
7
|
try {
|
|
8
|
-
const raw = await
|
|
8
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
9
9
|
return JSON.parse(raw);
|
|
10
10
|
} catch {
|
|
11
11
|
return null;
|
|
@@ -23,19 +23,19 @@ async function writeTextAtomic(filePath, content, options) {
|
|
|
23
23
|
const payload = options?.appendTrailingNewline && !content.endsWith("\n") ? `${content}\n` : content;
|
|
24
24
|
const mkdirOptions = { recursive: true };
|
|
25
25
|
if (typeof options?.ensureDirMode === "number") mkdirOptions.mode = options.ensureDirMode;
|
|
26
|
-
await
|
|
26
|
+
await fsPromises.mkdir(path.dirname(filePath), mkdirOptions);
|
|
27
27
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
28
28
|
try {
|
|
29
|
-
await
|
|
29
|
+
await fsPromises.writeFile(tmp, payload, "utf8");
|
|
30
30
|
try {
|
|
31
|
-
await
|
|
31
|
+
await fsPromises.chmod(tmp, mode);
|
|
32
32
|
} catch {}
|
|
33
|
-
await
|
|
33
|
+
await fsPromises.rename(tmp, filePath);
|
|
34
34
|
try {
|
|
35
|
-
await
|
|
35
|
+
await fsPromises.chmod(filePath, mode);
|
|
36
36
|
} catch {}
|
|
37
37
|
} finally {
|
|
38
|
-
await
|
|
38
|
+
await fsPromises.rm(tmp, { force: true }).catch(() => void 0);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function createAsyncLock() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { d as colorize, f as isRich, g as getResolvedLoggerSettings, p as theme } from "./globals-BSCHJiM2.js";
|
|
2
2
|
import { d as resolveIsNixMode } from "./paths-nt7fRu1x.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-CD-_2ECk.js";
|
|
4
|
-
import { M as loadConfig } from "./auth-profiles-
|
|
4
|
+
import { M as loadConfig } from "./auth-profiles-CDN1QqUB.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-DmULG-oQ.js";
|
|
6
6
|
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-DfK6Oke5.js";
|
|
7
7
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-CVdMnAs9.js";
|
|
8
|
-
import { t as isWSL } from "./wsl-
|
|
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-
|
|
8
|
+
import { t as isWSL } from "./wsl-CiVud8tt.js";
|
|
9
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-BtVy3Rbo.js";
|
|
10
|
+
import { s as resolveGatewayLogPaths } from "./service-DPP3q6R4.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-BetNJuAX.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-Dq63ch6Y.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -12,23 +12,23 @@ import "./internal-hooks-C4UXsKAh.js";
|
|
|
12
12
|
import "./registry-Bs6V63pB.js";
|
|
13
13
|
import "./dock-PS6Cbijx.js";
|
|
14
14
|
import "./tokens-CCB1NOWT.js";
|
|
15
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
15
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-DbU5C8eR.js";
|
|
16
16
|
import "./plugins-Bb5ZUMVr.js";
|
|
17
17
|
import "./accounts-DOJzOgGg.js";
|
|
18
18
|
import "./bindings-CE2f0JYJ.js";
|
|
19
19
|
import "./send-GspgS2Uv.js";
|
|
20
20
|
import "./send-BfGLjZZE.js";
|
|
21
|
-
import "./deliver-
|
|
21
|
+
import "./deliver-CPCEIyDG.js";
|
|
22
22
|
import "./diagnostic-CV9nsw1v.js";
|
|
23
23
|
import "./diagnostic-session-state-DBPrVBk3.js";
|
|
24
24
|
import "./accounts-DfC3W-lD.js";
|
|
25
25
|
import "./send-BZdvWSrh.js";
|
|
26
26
|
import "./image-ops-C78lEG57.js";
|
|
27
|
-
import "./audio-transcription-runner-
|
|
27
|
+
import "./audio-transcription-runner-BC2TeD8r.js";
|
|
28
28
|
import "./pi-model-discovery-CvWs_pjz.js";
|
|
29
29
|
import "./message-channel-DIKDbAh8.js";
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./chrome-
|
|
30
|
+
import "./pi-embedded-helpers-DAITpRHR.js";
|
|
31
|
+
import "./chrome-CGMBwBlZ.js";
|
|
32
32
|
import "./frontmatter-D6vByAHn.js";
|
|
33
33
|
import "./skills-LAE5JMgW.js";
|
|
34
34
|
import "./path-alias-guards-PnQzwnfs.js";
|
|
@@ -42,7 +42,7 @@ import "./accounts-HvaXu_5q.js";
|
|
|
42
42
|
import "./paths-BS6I69sP.js";
|
|
43
43
|
import "./tool-images-tUCksNOQ.js";
|
|
44
44
|
import "./thinking-BcOnJa2q.js";
|
|
45
|
-
import "./image-
|
|
45
|
+
import "./image-RroCfqy3.js";
|
|
46
46
|
import "./fetch-CDvWMekK.js";
|
|
47
47
|
import "./fetch-guard-DcHAb4_d.js";
|
|
48
48
|
import "./api-key-rotation-BbeoWkXC.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { l as success, n as info, t as danger } from "./globals-BSCHJiM2.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-CD-_2ECk.js";
|
|
4
|
-
import { M as loadConfig } from "./auth-profiles-
|
|
4
|
+
import { M as loadConfig } from "./auth-profiles-CDN1QqUB.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-DmULG-oQ.js";
|
|
6
6
|
import { r as logInfo } from "./logger-rnlD7CTs.js";
|
|
7
|
-
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-
|
|
8
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
7
|
+
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-CzfKkJDx.js";
|
|
8
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-6uNAHyWp.js";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
|
|
11
11
|
//#region src/web/login.ts
|
|
@@ -2,10 +2,10 @@ import { l as success, n as info, t as danger } from "./globals-BSCHJiM2.js";
|
|
|
2
2
|
import "./paths-nt7fRu1x.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-CD-_2ECk.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { M as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { M as loadConfig } from "./auth-profiles-CDN1QqUB.js";
|
|
6
|
+
import "./agent-scope-qYbUVCHn.js";
|
|
7
7
|
import "./utils-BHAtQ0dM.js";
|
|
8
|
-
import "./workspace-
|
|
8
|
+
import "./workspace-DtFDeYRa.js";
|
|
9
9
|
import { r as logInfo } from "./logger-rnlD7CTs.js";
|
|
10
10
|
import "./exec-lwQ7X6bf.js";
|
|
11
11
|
import "./github-copilot-token-b8zw2qi2.js";
|
|
@@ -13,10 +13,10 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
13
13
|
import "./version-CGDNfh5C.js";
|
|
14
14
|
import "./env-vars-Dw0EwyGP.js";
|
|
15
15
|
import "./registry-eN0IzwTo.js";
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-
|
|
16
|
+
import "./manifest-registry-Co__Fy6F.js";
|
|
17
|
+
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-CzfKkJDx.js";
|
|
18
18
|
import "./logging-CcxUDNcI.js";
|
|
19
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
19
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-6uNAHyWp.js";
|
|
20
20
|
import { randomUUID } from "node:crypto";
|
|
21
21
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
22
22
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -2,11 +2,11 @@ import { b as isValidTimeZone, d as colorize, f as isRich, p as theme, y as form
|
|
|
2
2
|
import "./paths-nt7fRu1x.js";
|
|
3
3
|
import { p as clearActiveProgressLine } from "./subsystem-CD-_2ECk.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-CDN1QqUB.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-DmULG-oQ.js";
|
|
7
|
-
import "./agent-scope-
|
|
7
|
+
import "./agent-scope-qYbUVCHn.js";
|
|
8
8
|
import "./utils-BHAtQ0dM.js";
|
|
9
|
-
import "./workspace-
|
|
9
|
+
import "./workspace-DtFDeYRa.js";
|
|
10
10
|
import "./logger-rnlD7CTs.js";
|
|
11
11
|
import "./exec-lwQ7X6bf.js";
|
|
12
12
|
import "./github-copilot-token-b8zw2qi2.js";
|
|
@@ -14,16 +14,16 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
14
14
|
import "./version-CGDNfh5C.js";
|
|
15
15
|
import "./env-vars-Dw0EwyGP.js";
|
|
16
16
|
import "./registry-eN0IzwTo.js";
|
|
17
|
-
import "./manifest-registry-
|
|
17
|
+
import "./manifest-registry-Co__Fy6F.js";
|
|
18
18
|
import "./message-channel-bQJz_2wn.js";
|
|
19
|
-
import "./client-
|
|
20
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
19
|
+
import "./client-Swf30UOh.js";
|
|
20
|
+
import { t as buildGatewayConnectionDetails } from "./call-BSBuLNiX.js";
|
|
21
21
|
import "./pairing-token-b8YwYBlW.js";
|
|
22
|
-
import "./net-
|
|
23
|
-
import "./tailnet-
|
|
22
|
+
import "./net-DrfP4uzJ.js";
|
|
23
|
+
import "./tailnet-Dynp_Pgs.js";
|
|
24
24
|
import { t as formatDocsLink } from "./links-B3vCyexf.js";
|
|
25
25
|
import "./progress-B-CzNZ2g.js";
|
|
26
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
26
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-qWYRLZ-Z.js";
|
|
27
27
|
import { t as parseLogLine } from "./parse-log-line-BrrE4onI.js";
|
|
28
28
|
import { setTimeout } from "node:timers/promises";
|
|
29
29
|
|
|
@@ -2,20 +2,20 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-nt7fRu1x.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-CD-_2ECk.js";
|
|
4
4
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
5
|
-
import { ai as resolveApiKeyForProvider, ii as requireApiKey, si as resolveEnvApiKey, xi as normalizeOptionalSecretInput } from "./auth-profiles-
|
|
6
|
-
import { a as resolveAgentDir, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import { ai as resolveApiKeyForProvider, ii as requireApiKey, si as resolveEnvApiKey, xi as normalizeOptionalSecretInput } from "./auth-profiles-CDN1QqUB.js";
|
|
6
|
+
import { a as resolveAgentDir, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-qYbUVCHn.js";
|
|
7
7
|
import { T as truncateUtf16Safe, i as clampNumber, r as clampInt, v as resolveUserPath } from "./utils-BHAtQ0dM.js";
|
|
8
8
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-Be1MArvM.js";
|
|
9
9
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-GAEkuGlu.js";
|
|
10
10
|
import { r as formatErrorMessage } from "./errors-BkARgYnD.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CQZ5FOwI.js";
|
|
12
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-XTdz_cvI.js";
|
|
13
13
|
import { n as retryAsync } from "./retry-CtBUwwIQ.js";
|
|
14
|
-
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-
|
|
14
|
+
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-BkWbp0bs.js";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import fs from "node:fs";
|
|
18
|
-
import
|
|
18
|
+
import fsPromises from "node:fs/promises";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
import chokidar from "chokidar";
|
|
21
21
|
import { createInterface } from "node:readline";
|
|
@@ -1047,7 +1047,7 @@ async function extractTimestamp(params) {
|
|
|
1047
1047
|
if (!params.workspaceDir) return null;
|
|
1048
1048
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1049
1049
|
try {
|
|
1050
|
-
const stat = await
|
|
1050
|
+
const stat = await fsPromises.stat(absolutePath);
|
|
1051
1051
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1052
1052
|
return new Date(stat.mtimeMs);
|
|
1053
1053
|
} catch {
|
|
@@ -2206,7 +2206,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2206
2206
|
const source = `${sourceBase}${suffix}`;
|
|
2207
2207
|
const target = `${targetBase}${suffix}`;
|
|
2208
2208
|
try {
|
|
2209
|
-
await
|
|
2209
|
+
await fsPromises.rename(source, target);
|
|
2210
2210
|
} catch (err) {
|
|
2211
2211
|
if (err.code !== "ENOENT") throw err;
|
|
2212
2212
|
}
|
|
@@ -2217,7 +2217,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2217
2217
|
"",
|
|
2218
2218
|
"-wal",
|
|
2219
2219
|
"-shm"
|
|
2220
|
-
].map((suffix) =>
|
|
2220
|
+
].map((suffix) => fsPromises.rm(`${basePath}${suffix}`, { force: true })));
|
|
2221
2221
|
}
|
|
2222
2222
|
ensureSchema() {
|
|
2223
2223
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2312,7 +2312,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2312
2312
|
if (!thresholds) return null;
|
|
2313
2313
|
let stat;
|
|
2314
2314
|
try {
|
|
2315
|
-
stat = await
|
|
2315
|
+
stat = await fsPromises.stat(sessionFile);
|
|
2316
2316
|
} catch {
|
|
2317
2317
|
return null;
|
|
2318
2318
|
}
|
|
@@ -2354,7 +2354,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2354
2354
|
if (end <= start) return 0;
|
|
2355
2355
|
let handle;
|
|
2356
2356
|
try {
|
|
2357
|
-
handle = await
|
|
2357
|
+
handle = await fsPromises.open(absPath, "r");
|
|
2358
2358
|
} catch (err) {
|
|
2359
2359
|
if (isFileMissingError(err)) return 0;
|
|
2360
2360
|
throw err;
|
|
@@ -3297,7 +3297,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3297
3297
|
});
|
|
3298
3298
|
return;
|
|
3299
3299
|
}
|
|
3300
|
-
const content = options.content ?? await
|
|
3300
|
+
const content = options.content ?? await fsPromises.readFile(entry.absPath, "utf-8");
|
|
3301
3301
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0), EMBEDDING_BATCH_MAX_TOKENS);
|
|
3302
3302
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
3303
3303
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
@@ -3716,7 +3716,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3716
3716
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3717
3717
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3718
3718
|
for (const additionalPath of additionalPaths) try {
|
|
3719
|
-
const stat = await
|
|
3719
|
+
const stat = await fsPromises.lstat(additionalPath);
|
|
3720
3720
|
if (stat.isSymbolicLink()) continue;
|
|
3721
3721
|
if (stat.isDirectory()) {
|
|
3722
3722
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3741,7 +3741,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3741
3741
|
};
|
|
3742
3742
|
let content;
|
|
3743
3743
|
try {
|
|
3744
|
-
content = await
|
|
3744
|
+
content = await fsPromises.readFile(absPath, "utf-8");
|
|
3745
3745
|
} catch (err) {
|
|
3746
3746
|
if (isFileMissingError(err)) return {
|
|
3747
3747
|
text: "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as resolveConfigDir, u as isRecord, v as resolveUserPath } from "./utils-BHAtQ0dM.js";
|
|
2
|
-
import { C as openBoundaryFileSync, _ as resolveWorkspaceExtensionsDir, j as isPathInside$1 } from "./workspace-
|
|
2
|
+
import { C as openBoundaryFileSync, _ as resolveWorkspaceExtensionsDir, j as isPathInside$1 } from "./workspace-DtFDeYRa.js";
|
|
3
3
|
import { n as MANIFEST_KEY } from "./legacy-names-D3aIn6ij.js";
|
|
4
4
|
import { l as normalizeChatChannelId } from "./registry-eN0IzwTo.js";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { g as normalizeAccountId } from "./session-key-BLprDJYq.js";
|
|
3
3
|
import { t as resolveAccountEntry } from "./account-lookup-9wuXWwa_.js";
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins--_65-dc5.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/markdown-tables.ts
|
|
7
7
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -2,12 +2,12 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { d as colorize, f as isRich, p as theme, s as setVerbose } from "./globals-BSCHJiM2.js";
|
|
3
3
|
import { g as resolveStateDir } from "./paths-nt7fRu1x.js";
|
|
4
4
|
import { d as defaultRuntime, t as createSubsystemLogger } from "./subsystem-CD-_2ECk.js";
|
|
5
|
-
import { M as loadConfig, at as parseDurationMs, hn as splitShellArgs } from "./auth-profiles-
|
|
6
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import { M as loadConfig, at as parseDurationMs, hn as splitShellArgs } from "./auth-profiles-CDN1QqUB.js";
|
|
6
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-qYbUVCHn.js";
|
|
7
7
|
import { b as shortenHomeInString, v as resolveUserPath, x as shortenHomePath } from "./utils-BHAtQ0dM.js";
|
|
8
8
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-Be1MArvM.js";
|
|
9
9
|
import { r as formatErrorMessage } from "./errors-BkARgYnD.js";
|
|
10
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
10
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-BkWbp0bs.js";
|
|
11
11
|
import { t as formatDocsLink } from "./links-B3vCyexf.js";
|
|
12
12
|
import { r as withManager } from "./cli-utils-aSBNHQae.js";
|
|
13
13
|
import { t as formatHelpExamples } from "./help-format-DXdeaYOY.js";
|
|
@@ -15,7 +15,7 @@ import { n as withProgress, r as withProgressTotals } from "./progress-B-CzNZ2g.
|
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import fs from "node:fs";
|
|
18
|
-
import
|
|
18
|
+
import fsPromises from "node:fs/promises";
|
|
19
19
|
|
|
20
20
|
//#region src/memory/backend-config.ts
|
|
21
21
|
const DEFAULT_BACKEND = "builtin";
|
|
@@ -228,7 +228,7 @@ async function getMemorySearchManager(params) {
|
|
|
228
228
|
if (cached) return { manager: cached };
|
|
229
229
|
}
|
|
230
230
|
try {
|
|
231
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
231
|
+
const { QmdMemoryManager } = await import("./qmd-manager-BHSD3_rI.js");
|
|
232
232
|
const primary = await QmdMemoryManager.create({
|
|
233
233
|
cfg: params.cfg,
|
|
234
234
|
agentId: params.agentId,
|
|
@@ -240,7 +240,7 @@ async function getMemorySearchManager(params) {
|
|
|
240
240
|
const wrapper = new FallbackMemoryManager({
|
|
241
241
|
primary,
|
|
242
242
|
fallbackFactory: async () => {
|
|
243
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
243
|
+
const { MemoryIndexManager } = await import("./manager-C0nx9SKi.js").then((n) => n.t);
|
|
244
244
|
return await MemoryIndexManager.get(params);
|
|
245
245
|
}
|
|
246
246
|
}, () => {
|
|
@@ -255,7 +255,7 @@ async function getMemorySearchManager(params) {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
try {
|
|
258
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
258
|
+
const { MemoryIndexManager } = await import("./manager-C0nx9SKi.js").then((n) => n.t);
|
|
259
259
|
return { manager: await MemoryIndexManager.get(params) };
|
|
260
260
|
} catch (err) {
|
|
261
261
|
return {
|
|
@@ -426,7 +426,7 @@ async function withMemoryManagerForAgent(params) {
|
|
|
426
426
|
}
|
|
427
427
|
async function checkReadableFile(pathname) {
|
|
428
428
|
try {
|
|
429
|
-
await
|
|
429
|
+
await fsPromises.access(pathname, fs.constants.R_OK);
|
|
430
430
|
return { exists: true };
|
|
431
431
|
} catch (err) {
|
|
432
432
|
const code = err.code;
|
|
@@ -443,7 +443,7 @@ async function scanSessionFiles(agentId) {
|
|
|
443
443
|
try {
|
|
444
444
|
return {
|
|
445
445
|
source: "sessions",
|
|
446
|
-
totalFiles: (await
|
|
446
|
+
totalFiles: (await fsPromises.readdir(sessionsDir, { withFileTypes: true })).filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).length,
|
|
447
447
|
issues
|
|
448
448
|
};
|
|
449
449
|
} catch (err) {
|
|
@@ -475,7 +475,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
475
475
|
if (alt.issue) issues.push(alt.issue);
|
|
476
476
|
const resolvedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
477
477
|
for (const extraPath of resolvedExtraPaths) try {
|
|
478
|
-
if ((await
|
|
478
|
+
if ((await fsPromises.lstat(extraPath)).isSymbolicLink()) continue;
|
|
479
479
|
const extraCheck = await checkReadableFile(extraPath);
|
|
480
480
|
if (extraCheck.issue) issues.push(extraCheck.issue);
|
|
481
481
|
} catch (err) {
|
|
@@ -485,7 +485,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
485
485
|
}
|
|
486
486
|
let dirReadable = null;
|
|
487
487
|
try {
|
|
488
|
-
await
|
|
488
|
+
await fsPromises.access(memoryDir, fs.constants.R_OK);
|
|
489
489
|
dirReadable = true;
|
|
490
490
|
} catch (err) {
|
|
491
491
|
const code = err.code;
|
|
@@ -533,7 +533,7 @@ async function summarizeQmdIndexArtifact(manager) {
|
|
|
533
533
|
if (!dbPath) return null;
|
|
534
534
|
let stat;
|
|
535
535
|
try {
|
|
536
|
-
stat = await
|
|
536
|
+
stat = await fsPromises.stat(dbPath);
|
|
537
537
|
} catch (err) {
|
|
538
538
|
const code = err.code;
|
|
539
539
|
if (code === "ENOENT") throw new Error(`QMD index file not found: ${shortenHomePath(dbPath)}`, { cause: err });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { er as resolveOpenClawAgentDir, hr as normalizeProviderId, ki as DEFAULT_CONTEXT_TOKENS } from "./auth-profiles-
|
|
2
|
+
import { er as resolveOpenClawAgentDir, hr as normalizeProviderId, ki as DEFAULT_CONTEXT_TOKENS } from "./auth-profiles-CDN1QqUB.js";
|
|
3
3
|
import { t as resolveAliasedOpenAiCompatibleModelId } from "./model-id-aliases-D3RpjKgo.js";
|
|
4
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
4
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-ItDCP5Ab.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/model-alias-lines.ts
|
|
7
7
|
function buildModelAliasLines(cfg) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-CD-_2ECk.js";
|
|
2
|
-
import { M as loadConfig, er as resolveOpenClawAgentDir } from "./auth-profiles-
|
|
2
|
+
import { M as loadConfig, er as resolveOpenClawAgentDir } from "./auth-profiles-CDN1QqUB.js";
|
|
3
3
|
import { t as resolveAliasedOpenAiCompatibleModelId } from "./model-id-aliases-D3RpjKgo.js";
|
|
4
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
4
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-NbV2Gu7N.js";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/model-catalog.ts
|
|
7
7
|
const log = createSubsystemLogger("model-catalog");
|
|
8
8
|
let modelCatalogPromise = null;
|
|
9
9
|
let hasLoggedModelCatalogError = false;
|
|
10
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
10
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-ItDCP5Ab.js").then((n) => n.r);
|
|
11
11
|
let importPiSdk = defaultImportPiSdk;
|
|
12
12
|
const CODEX_PROVIDER = "openai-codex";
|
|
13
13
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Ai as DEFAULT_MODEL, Bn as listProfilesForProvider, Kn as ensureAuthProfileStore, Wn as upsertAuthProfileWithLock, ar as buildAllowedModelSet, fr as modelKey, hr as normalizeProviderId, ji as DEFAULT_PROVIDER, ri as getCustomProviderApiKey, si as resolveEnvApiKey, sr as buildModelAliasIndex, yr as resolveConfiguredModelRef } from "./auth-profiles-
|
|
3
|
-
import { _ as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
4
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
5
|
-
import { i as formatTokenK } from "./shared-
|
|
2
|
+
import { Ai as DEFAULT_MODEL, Bn as listProfilesForProvider, Kn as ensureAuthProfileStore, Wn as upsertAuthProfileWithLock, ar as buildAllowedModelSet, fr as modelKey, hr as normalizeProviderId, ji as DEFAULT_PROVIDER, ri as getCustomProviderApiKey, si as resolveEnvApiKey, sr as buildModelAliasIndex, yr as resolveConfiguredModelRef } from "./auth-profiles-CDN1QqUB.js";
|
|
3
|
+
import { _ as resolveAgentModelPrimaryValue } from "./agent-scope-qYbUVCHn.js";
|
|
4
|
+
import { n as loadModelCatalog } from "./model-catalog-C0pv85X0.js";
|
|
5
|
+
import { i as formatTokenK } from "./shared-yo9kxQZW.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/openai-codex-model-default.ts
|
|
8
8
|
const OPENAI_CODEX_DEFAULT_MODEL = "openai-codex/gpt-5.3-codex";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as colorize, f as isRich$1, p as theme } from "./globals-BSCHJiM2.js";
|
|
3
3
|
import { t as CONFIG_PATH } from "./paths-nt7fRu1x.js";
|
|
4
|
-
import { $n as resolveAuthStorePathForDisplay, Ai as DEFAULT_MODEL, Bn as listProfilesForProvider, Hn as setAuthProfileOrder, Kn as ensureAuthProfileStore, M as loadConfig, Mi as resolveAuthProfileDisplayLabel, Sr as resolveModelRefFromString, Un as upsertAuthProfile, ai as resolveApiKeyForProvider, at as parseDurationMs, br as resolveDefaultModelForAgent, cr as findNormalizedProviderValue, er as resolveOpenClawAgentDir, fi as shouldEnableShellEnvFallback, fr as modelKey, gr as parseModelRef, hr as normalizeProviderId, ji as DEFAULT_PROVIDER, li as getShellEnvAppliedKeys, n as resolveAuthProfileOrder, oi as resolveAwsSdkEnvVarName, ri as getCustomProviderApiKey, s as resolveProfileUnusableUntilForDisplay, si as resolveEnvApiKey, sr as buildModelAliasIndex, yr as resolveConfiguredModelRef } from "./auth-profiles-
|
|
4
|
+
import { $n as resolveAuthStorePathForDisplay, Ai as DEFAULT_MODEL, Bn as listProfilesForProvider, Hn as setAuthProfileOrder, Kn as ensureAuthProfileStore, M as loadConfig, Mi as resolveAuthProfileDisplayLabel, Sr as resolveModelRefFromString, Un as upsertAuthProfile, ai as resolveApiKeyForProvider, at as parseDurationMs, br as resolveDefaultModelForAgent, cr as findNormalizedProviderValue, er as resolveOpenClawAgentDir, fi as shouldEnableShellEnvFallback, fr as modelKey, gr as parseModelRef, hr as normalizeProviderId, ji as DEFAULT_PROVIDER, li as getShellEnvAppliedKeys, n as resolveAuthProfileOrder, oi as resolveAwsSdkEnvVarName, ri as getCustomProviderApiKey, s as resolveProfileUnusableUntilForDisplay, si as resolveEnvApiKey, sr as buildModelAliasIndex, yr as resolveConfiguredModelRef } from "./auth-profiles-CDN1QqUB.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-DmULG-oQ.js";
|
|
6
|
-
import { _ as resolveAgentModelPrimaryValue, a as resolveAgentDir, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, g as resolveAgentModelFallbackValues, s as resolveAgentExplicitModelPrimary, u as resolveAgentWorkspaceDir, v as toAgentModelListLike } from "./agent-scope-
|
|
6
|
+
import { _ as resolveAgentModelPrimaryValue, a as resolveAgentDir, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, g as resolveAgentModelFallbackValues, s as resolveAgentExplicitModelPrimary, u as resolveAgentWorkspaceDir, v as toAgentModelListLike } from "./agent-scope-qYbUVCHn.js";
|
|
7
7
|
import { x as shortenHomePath } from "./utils-BHAtQ0dM.js";
|
|
8
|
-
import { h as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
9
|
-
import { r as resolveForwardCompatModel } from "./model-
|
|
10
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
11
|
-
import { Dt as describeFailoverError, En as maskApiKey, Sn as loadProviderUsageSummary, Tn as resolveUsageProviderId, an as formatRemainingShort, in as buildAuthHealthSummary, rn as DEFAULT_OAUTH_WARN_MS, s as runEmbeddedPiAgent, wn as formatUsageWindowSummary } from "./subagent-registry-
|
|
8
|
+
import { h as resolveDefaultAgentWorkspaceDir } from "./workspace-DtFDeYRa.js";
|
|
9
|
+
import { r as resolveForwardCompatModel } from "./model-C30BtXEI.js";
|
|
10
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-ItDCP5Ab.js";
|
|
11
|
+
import { Dt as describeFailoverError, En as maskApiKey, Sn as loadProviderUsageSummary, Tn as resolveUsageProviderId, an as formatRemainingShort, in as buildAuthHealthSummary, rn as DEFAULT_OAUTH_WARN_MS, s as runEmbeddedPiAgent, wn as formatUsageWindowSummary } from "./subagent-registry-DEFti4F9.js";
|
|
12
12
|
import { i as resolveSessionTranscriptPath, s as resolveSessionTranscriptsDirForAgent } from "./paths-Be1MArvM.js";
|
|
13
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
14
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
15
|
-
import { f as openUrl } from "./onboard-helpers-
|
|
13
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-NbV2Gu7N.js";
|
|
14
|
+
import { n as loadModelCatalog } from "./model-catalog-C0pv85X0.js";
|
|
15
|
+
import { f as openUrl } from "./onboard-helpers-DX8Hw_zc.js";
|
|
16
16
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-C1-jML6O.js";
|
|
17
17
|
import { r as withProgressTotals } from "./progress-B-CzNZ2g.js";
|
|
18
18
|
import { t as createClackPrompter } from "./clack-prompter-BxlqIZ7M.js";
|
|
19
19
|
import { t as renderTable } from "./table-CFrE3ObJ.js";
|
|
20
20
|
import { t as inferParamBFromIdOrName } from "./model-param-b-NJsgH2EF.js";
|
|
21
21
|
import { n as redactSecrets } from "./format-C-890_pY.js";
|
|
22
|
-
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-
|
|
23
|
-
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-
|
|
22
|
+
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-yo9kxQZW.js";
|
|
23
|
+
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-BtyMfDQt.js";
|
|
24
24
|
import { n as logConfigUpdated } from "./logging-BsBFegtS.js";
|
|
25
|
-
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
25
|
+
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-BubJ5s-y.js";
|
|
26
26
|
import path from "node:path";
|
|
27
|
-
import
|
|
27
|
+
import fsPromises from "node:fs/promises";
|
|
28
28
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
29
29
|
import crypto from "node:crypto";
|
|
30
30
|
import { Type } from "@sinclair/typebox";
|
|
@@ -829,8 +829,8 @@ function printModelTable(rows, runtime, opts = {}) {
|
|
|
829
829
|
//#region src/commands/models/list.list-command.ts
|
|
830
830
|
async function modelsListCommand(opts, runtime) {
|
|
831
831
|
ensureFlagCompatibility(opts);
|
|
832
|
-
const { loadConfig } = await import("./auth-profiles-
|
|
833
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
832
|
+
const { loadConfig } = await import("./auth-profiles-CDN1QqUB.js").then((n) => n.O);
|
|
833
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-CDN1QqUB.js").then((n) => n.t);
|
|
834
834
|
const cfg = loadConfig();
|
|
835
835
|
const authStore = ensureAuthProfileStore();
|
|
836
836
|
const providerFilter = (() => {
|
|
@@ -890,7 +890,7 @@ async function modelsListCommand(opts, runtime) {
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
if (!model) {
|
|
893
|
-
const { resolveModel } = await import("./model-
|
|
893
|
+
const { resolveModel } = await import("./model-C30BtXEI.js").then((n) => n.t);
|
|
894
894
|
model = resolveModel(entry.ref.provider, entry.ref.model, void 0, cfg).model;
|
|
895
895
|
}
|
|
896
896
|
if (opts.local && model && !isLocalBaseUrl(model.baseUrl)) continue;
|
|
@@ -1165,7 +1165,7 @@ async function probeTarget(params) {
|
|
|
1165
1165
|
};
|
|
1166
1166
|
const sessionId = `probe-${target.provider}-${crypto.randomUUID()}`;
|
|
1167
1167
|
const sessionFile = resolveSessionTranscriptPath(sessionId, agentId);
|
|
1168
|
-
await
|
|
1168
|
+
await fsPromises.mkdir(sessionDir, { recursive: true });
|
|
1169
1169
|
const start = Date.now();
|
|
1170
1170
|
try {
|
|
1171
1171
|
await runEmbeddedPiAgent({
|
|
@@ -1220,7 +1220,7 @@ async function runTargetsWithConcurrency(params) {
|
|
|
1220
1220
|
const agentDir = resolveOpenClawAgentDir();
|
|
1221
1221
|
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
1222
1222
|
const sessionDir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
1223
|
-
await
|
|
1223
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
1224
1224
|
let completed = 0;
|
|
1225
1225
|
const results = Array.from({ length: targets.length });
|
|
1226
1226
|
let cursor = 0;
|