@bitseek/claw 1.3.3 → 1.3.5
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-C7-qIj9S.js → accounts-C0g5--0e.js} +1 -1
- package/dist/{accounts-BuH44wOf.js → accounts-Dr4JgFGK.js} +1 -1
- package/dist/{accounts-YiXpEWQB.js → accounts-ESSExMvC.js} +7 -7
- package/dist/{acp-cli-C0E6TWGs.js → acp-cli-CbjSFq1x.js} +8 -8
- package/dist/{agent-scope-CY2-lUIY.js → agent-scope-CJelRKYY.js} +1 -1
- package/dist/{agents-ORCxWsDn.js → agents-BqONdWNu.js} +15 -15
- package/dist/{agents.config-DrY6s7HL.js → agents.config-2cTTTDPj.js} +2 -2
- package/dist/{agents.config-CvgerNZr.js → agents.config-DhIvFsFv.js} +1 -1
- package/dist/{api-key-rotation-C7SJO4Nd.js → api-key-rotation-7AxlAIU7.js} +1 -1
- package/dist/{audio-preflight-DXJR9ICy.js → audio-preflight-C2pZmbnM.js} +4 -4
- package/dist/{audio-preflight-FcKPBDaM.js → audio-preflight-uJePeeJ2.js} +36 -36
- package/dist/{audio-transcription-runner-S9u5-nsu.js → audio-transcription-runner-CQ4BMvGX.js} +1 -1
- package/dist/{audio-transcription-runner-DLL_6E3Z.js → audio-transcription-runner-DgoTt2Qi.js} +22 -22
- package/dist/{audit-Bq33mo12.js → audit-Dp7M6JvG.js} +29 -29
- package/dist/{auth-BH8QpwSt.js → auth-CzuZwE7M.js} +1 -1
- package/dist/{auth-choice-BkF1geyi.js → auth-choice-CxRgsY3j.js} +6 -6
- package/dist/{auth-choice-BogsyP9d.js → auth-choice-D6WGnKQk.js} +4 -4
- package/dist/{auth-choice-o_B6r3SA.js → auth-choice-Da9Ml4DK.js} +16 -16
- package/dist/{auth-choice-BDXGghAn.js → auth-choice-lhaABxGx.js} +13 -13
- package/dist/{auth-choice.apply-helpers-D9JJjYV4.js → auth-choice.apply-helpers-ir8GviGs.js} +1 -1
- package/dist/{auth-profiles-1D0rBps3.js → auth-profiles-Ncv1fyN5.js} +16 -16
- package/dist/{auth-token-3AxkbvQY.js → auth-token-BTTsYSXG.js} +4 -3
- package/dist/{auth-token-KkSq49WV.js → auth-token-KZZH9ZpM.js} +3 -2
- package/dist/{banner-iVOjYALn.js → banner-CMCfl-_K.js} +2 -2
- package/dist/{bindings-8T2naFRm.js → bindings-C2tByF8e.js} +1 -1
- package/dist/{bonjour-discovery-Dfc3n2GZ.js → bonjour-discovery-CC78xmYI.js} +1 -1
- package/dist/{browser-cli-YWbP4I14.js → browser-cli-vRHyP5Tu.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-DKqpA9Z1.js → call-BolSRDlL.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Df8XiNL_.js → channel-account-context-DSofwLgp.js} +5 -5
- package/dist/{channel-options-Bhkc7_f4.js → channel-options-Didnr81h.js} +1 -1
- package/dist/{channel-options-DBkdFJpv.js → channel-options-gDhT85r4.js} +3 -3
- package/dist/{channel-selection-DvH0eFfq.js → channel-selection-DAkTNagG.js} +1 -1
- package/dist/{channel-web-DFMP-9oI.js → channel-web-C45x6ahP.js} +18 -18
- package/dist/{channel-web-B0P0EVvO.js → channel-web-rP0VBNIt.js} +1 -1
- package/dist/{channels-cli-Cpg0eE35.js → channels-cli-BpiA2BQE.js} +8 -8
- package/dist/{channels-cli-Cb31JAsk.js → channels-cli-CZQbGl-H.js} +97 -97
- package/dist/{channels-status-issues-DbgzPgIT.js → channels-status-issues-ib5LY9cR.js} +1 -1
- package/dist/{chrome-Cs1O_rOB.js → chrome-DNZHZwLH.js} +4 -4
- package/dist/{chrome-Dvo1iZKa.js → chrome-DWfXErGH.js} +8 -8
- package/dist/{clawbot-cli-DS7XFNhh.js → clawbot-cli-B0Hd9quY.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-C3lgF34a.js → cli-Cvdtw0CY.js} +3 -3
- package/dist/{cli-DnShryy2.js → cli-D5yg1LCm.js} +78 -78
- package/dist/{client-CbelTUyH.js → client-D3Y8sx9i.js} +2 -2
- package/dist/{command-registry-BPSOtew_.js → command-registry-DshPN0jE.js} +13 -13
- package/dist/{commands-B8GXg7jc.js → commands-CvjTbnpO.js} +1 -1
- package/dist/{commands-registry-CL_GSOWa.js → commands-registry-CMWIA5nS.js} +3 -3
- package/dist/{completion-cli-DaFk2P3E.js → completion-cli-BD1Wf-K1.js} +1 -1
- package/dist/{completion-cli-D5rxhSoX.js → completion-cli-Ds2kVMMx.js} +13 -13
- package/dist/{config-cli-CnGjfuxR.js → config-cli-BtvOIDkG.js} +7 -7
- package/dist/{config-cli-CgcDfxer.js → config-cli-C-yIXgGr.js} +1 -1
- package/dist/{config-guard-KdPUbj6b.js → config-guard-D3uYbBeN.js} +3 -3
- package/dist/{config-validation-BAPzXTIZ.js → config-validation-C_edTHc_.js} +3 -3
- package/dist/{configure-vAteyJCB.js → configure-CgbTpfrx.js} +17 -17
- package/dist/{configure-DQNSyoHA.js → configure-DflayaB2.js} +4 -4
- package/dist/constants-BJMtcGm_.js +16 -0
- package/dist/constants-D1Q8yQ1_.js +16 -0
- package/dist/{context-window-guard-BEDyA5YL.js → context-window-guard-BqrKjiIm.js} +1 -1
- package/dist/{context-window-guard-DeogNTcc.js → context-window-guard-DfLcl4Sl.js} +1 -1
- package/dist/control-ui/assets/index-CZbqZLPL.js.map +1 -1
- package/dist/{control-ui-assets-DOt9K_XQ.js → control-ui-assets-CTp_YbTN.js} +1 -1
- package/dist/{cron-cli-BODa5Hjv.js → cron-cli-DrMOzU3j.js} +12 -12
- package/dist/{daemon-cli-0UQHVorp.js → daemon-cli-SPY75752.js} +15 -15
- package/dist/{daemon-install-IXSut9Ak.js → daemon-install-BWb3fVhk.js} +4 -4
- package/dist/{daemon-install-helpers-CVMHs8zT.js → daemon-install-helpers-DJg83rPu.js} +11 -11
- package/dist/{dashboard-DKQ1mukA.js → dashboard-CCwQ2XPE.js} +2 -2
- package/dist/{deliver-CC3F9Kbq.js → deliver-DRKtTsvj.js} +7 -7
- package/dist/{deliver-NVEoeWVm.js → deliver-zrYSWfQ5.js} +1 -1
- package/dist/{devices-cli-BxHaos-D.js → devices-cli-DEi-I2cs.js} +8 -8
- package/dist/{diagnostic-C6IGpsPB.js → diagnostic-D2YBqJR0.js} +1 -1
- package/dist/{diagnostics-DKQWCTrs.js → diagnostics-D16lnwhz.js} +5 -5
- package/dist/{directory-cli-CM0yj3EJ.js → directory-cli-C-hoa-kc.js} +8 -8
- package/dist/{dns-cli-4V7j2QJt.js → dns-cli-bfQXNsnB.js} +5 -5
- package/dist/{dock-6qH4Y0HH.js → dock-DXBor-4C.js} +4 -4
- package/dist/{docs-cli-B4OKIYf3.js → docs-cli-Bk3ByNGZ.js} +4 -4
- package/dist/{doctor-completion-C8NZ7PLx.js → doctor-completion-DpsPIdur.js} +2 -2
- package/dist/{doctor-completion-D1lF2gak.js → doctor-completion-f2gLNSUa.js} +1 -1
- package/dist/{doctor-config-flow-CRh5VUYo.js → doctor-config-flow-DhnDuMG9.js} +15 -15
- package/dist/{enable-Dg2l-a-F.js → enable-DUzrhH2H.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CuJvX5ng.js → exec-approvals-allowlist-BjI4jCdB.js} +1 -1
- package/dist/{exec-approvals-cli-CG_sEqkm.js → exec-approvals-cli-DjgEYE6-.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-Dvdq9iDc.js → exec-safe-bin-runtime-policy-DJT0CbIu.js} +2 -2
- package/dist/{fetch-CIaHb2Cp.js → fetch-Ch8LsU9k.js} +3 -3
- package/dist/{fetch-guard-t4V7UlQC.js → fetch-guard-B3dFBAUH.js} +1 -1
- package/dist/{fs-safe-keI0663i.js → fs-safe-Bbp_1S9D.js} +24 -24
- package/dist/{gateway-cli-BKlWGZ1k.js → gateway-cli-3rP04OO5.js} +11 -11
- package/dist/{gateway-cli-Cq0anbXD.js → gateway-cli-CbVaqoxB.js} +163 -163
- package/dist/{gateway-rpc-BT-pYZR-.js → gateway-rpc-CH4zohVW.js} +1 -1
- package/dist/{health-B-UhwtkZ.js → health-DaN3xECS.js} +1 -1
- package/dist/{health-DF5uVHJ8.js → health-Gkd0akfz.js} +14 -14
- package/dist/{hooks-cli-C8hrIyKL.js → hooks-cli-gRM8FMyG.js} +86 -86
- package/dist/{hooks-cli-BNyDiG6r.js → hooks-cli-n5Weiheq.js} +4 -4
- package/dist/{hooks-status-DD2TFR4J.js → hooks-status-BjqUFVk2.js} +1 -1
- package/dist/{image-NGniYRpo.js → image-2aQoIIQl.js} +5 -5
- package/dist/{image-CSuemKkK.js → image-DnxYCkHO.js} +1 -1
- package/dist/{image-ops-lN_xsQHN.js → image-ops-Di37o6bN.js} +10 -10
- package/dist/index.js +8 -8
- package/dist/{inspect-BxpKPHIb.js → inspect-8xmwRHN0.js} +4 -4
- package/dist/{install-safe-path-BP03c-sO.js → install-safe-path-lyrY4AbG.js} +25 -25
- package/dist/{installs-CpGSqQzs.js → installs-B-WNFE2v.js} +9 -9
- package/dist/{ipv4-yOt1RWEn.js → ipv4-aGQhzP5g.js} +1 -1
- package/dist/{ir-DSD5UBLt.js → ir-CPt8jJjC.js} +6 -6
- package/dist/{issue-format-oiZHuL_T.js → issue-format-Bm-71lmf.js} +1 -1
- package/dist/{json-files-1hhV5hS6.js → json-files-DrZ4qfxw.js} +8 -8
- package/dist/{lifecycle-core-B6CCivG-.js → lifecycle-core-BBoysuYG.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{login-DMdb2smS.js → login-CUi8T8WR.js} +3 -3
- package/dist/{login-qr-D4Z_nKS0.js → login-qr-BaGgKfeX.js} +6 -6
- package/dist/{logs-cli-CyIoR_sQ.js → logs-cli-BeBjeWxt.js} +9 -9
- package/dist/{manager-B9EfOw_y.js → manager-C5ViXKTz.js} +14 -14
- package/dist/{manifest-registry-CBF8Vfz8.js → manifest-registry-Kbw8YPsZ.js} +1 -1
- package/dist/{markdown-tables-w90v38Ry.js → markdown-tables-B1FRFNMI.js} +1 -1
- package/dist/{memory-cli-CuLSqZSI.js → memory-cli-DF4DARLw.js} +12 -12
- package/dist/{model-Bkq6198v.js → model-D49_t4Rw.js} +2 -2
- package/dist/{model-catalog-DgMq7sEI.js → model-catalog-B9xOhfnS.js} +3 -3
- package/dist/{model-picker-GYsO_IgK.js → model-picker-DaLz-bqQ.js} +4 -4
- package/dist/{models-Bht60MxY.js → models-CJodAVSF.js} +18 -18
- package/dist/{models-cli-S6G_2scT.js → models-cli-B1Dwj01V.js} +5 -5
- package/dist/{models-cli-BgBuBuEk.js → models-cli-Ceb37L0t.js} +83 -83
- package/dist/{models-config-SG5a8tJD.js → models-config-BJTF5xb7.js} +6 -6
- package/dist/{net-DfmnTN89.js → net-B6xk1xkz.js} +2 -2
- package/dist/{node-cli-Csot4WhY.js → node-cli-hD2wltn8.js} +33 -33
- package/dist/{node-command-policy-zI2Nd_XZ.js → node-command-policy-bP6LYXJe.js} +1 -1
- package/dist/{node-service-DHWADbz3.js → node-service-B10h5Sui.js} +1 -1
- package/dist/{nodes-cli-BJF1Kb0I.js → nodes-cli-BaO6VigE.js} +16 -16
- package/dist/{nodes-screen-C9ytNi_p.js → nodes-screen-DIBoM5tG.js} +7 -7
- package/dist/{npm-pack-install-BkSJrEoq.js → npm-pack-install-C9DS0YeS.js} +18 -18
- package/dist/{npm-resolution-B74nY0RB.js → npm-resolution-B5fqS6mO.js} +5 -5
- package/dist/{npm-resolution-DIvETHTU.js → npm-resolution-dNC8uD0I.js} +1 -1
- package/dist/{onboard-B6HW9q6Q.js → onboard-CE9V4Lb7.js} +6 -6
- package/dist/{onboard-channels-DJVM_aUx.js → onboard-channels-DPIysHDh.js} +20 -20
- package/dist/{onboard-channels-pzjW5IfR.js → onboard-channels-DQ1rkv4c.js} +1 -1
- package/dist/{onboard-custom-2Dhma9aa.js → onboard-custom-BhL4byJI.js} +1 -1
- package/dist/{onboard-custom-CRXcWyfJ.js → onboard-custom-Ca3nnlVy.js} +3 -3
- package/dist/{onboard-custom.shared-CNcCdRsS.js → onboard-custom.shared-D6P-b1Wa.js} +3 -3
- package/dist/{onboard-custom.shared-BVWW8dhE.js → onboard-custom.shared-vjI8sl9Q.js} +1 -1
- package/dist/{onboard-helpers-2jZi8DyE.js → onboard-helpers-D-l_4GyD.js} +11 -11
- package/dist/{onboard-hooks-D8MxBe6j.js → onboard-hooks-DDwA_gb0.js} +4 -4
- package/dist/{onboard-CnMe8gwt.js → onboard-qD3I6PJW.js} +3 -3
- package/dist/{onboard-remote-Dfkyladm.js → onboard-remote-B023mLV2.js} +3 -3
- package/dist/{onboard-skills-rw0449ZN.js → onboard-skills-UbGzjecs.js} +4 -4
- package/dist/{onboarding-DHOKHrHh.js → onboarding-CjwEj4uN.js} +4 -4
- package/dist/{onboarding-Cnod4Rtf.js → onboarding-_GD-DZHG.js} +13 -13
- package/dist/{onboarding.finalize-CRJ2ikq7.js → onboarding.finalize-B5hA5lV8.js} +7 -7
- package/dist/{onboarding.finalize-Boa2idzu.js → onboarding.finalize-kX5lNpGT.js} +91 -91
- package/dist/{onboarding.gateway-config-DYsZSw1-.js → onboarding.gateway-config-Dvu99ZRI.js} +18 -18
- package/dist/{openai-model-default-D4FwcmmB.js → openai-model-default-BHaYGK6i.js} +2 -2
- package/dist/{openai-model-default-DUmVSDlR.js → openai-model-default-op8vboY6.js} +1 -1
- package/dist/{outbound-B33AvY5n.js → outbound-DP_Pdp7e.js} +4 -4
- package/dist/{outbound-attachment-BGnMFNUJ.js → outbound-attachment-C1mspOfp.js} +2 -2
- package/dist/{pairing-cli-Df3Pa86k.js → pairing-cli-BwaiwEE0.js} +9 -9
- package/dist/{pairing-labels-DsUsf_bd.js → pairing-labels-BDzfGlP0.js} +1 -1
- package/dist/{pairing-store-DISFyfXe.js → pairing-store-DVasdu6J.js} +3 -3
- package/dist/{path-alias-guards-GklztZEg.js → path-alias-guards-CwNBr-6E.js} +3 -3
- package/dist/{path-safety-D310le-T.js → path-safety-Bpqz1wi_.js} +1 -1
- package/dist/{paths-BDiNGPdu.js → paths-C2VtkO4T.js} +9 -9
- package/dist/{pi-embedded-C1bjl5QY.js → pi-embedded-BQqt592d.js} +22 -22
- package/dist/{pi-embedded-helpers-jjDKx95g.js → pi-embedded-helpers-BYOv7Q7E.js} +6 -6
- package/dist/{pi-embedded-helpers-BUAKpUH7.js → pi-embedded-helpers-Bo7e-QzJ.js} +3 -3
- package/dist/{pi-model-discovery-D4cae7Aa.js → pi-model-discovery-B7QZQW84.js} +1 -1
- package/dist/{pi-tools.policy-Cjhz5iy7.js → pi-tools.policy-CUqhItn9.js} +5 -5
- package/dist/{plugin-auto-enable-Bz7g0nLn.js → plugin-auto-enable-BJBnaUzA.js} +3 -3
- package/dist/{plugin-registry-C-GmY3jR.js → plugin-registry-2CmN8Jv2.js} +1 -1
- package/dist/{plugin-registry-MDhg7Qi4.js → plugin-registry-NaHPDM1s.js} +3 -3
- package/dist/plugin-sdk/bitseek/constants.d.ts +3 -1
- package/dist/{plugins-DaKbDkTU.js → plugins-BYHJoTB8.js} +2 -2
- package/dist/{plugins-cli-C48Zjd96.js → plugins-cli-DwKgp7q7.js} +88 -88
- package/dist/{plugins-cli-Dmby2yHh.js → plugins-cli-o6KJO4Qe.js} +4 -4
- package/dist/{ports-rhtsAoOq.js → ports-Bjm5w0DD.js} +2 -2
- package/dist/{ports-CkYr4Wsz.js → ports-CmP85Z6Y.js} +1 -1
- package/dist/{program-SWTF9VwN.js → program-BTBw45uK.js} +86 -86
- package/dist/{program-context-BEi8inrG.js → program-context-CqvVc2Bn.js} +18 -18
- package/dist/{prompt-select-styled-CmtT9U6P.js → prompt-select-styled-7VZwhnhd.js} +39 -39
- package/dist/{prompt-select-styled-uWynTnGe.js → prompt-select-styled-DK1SacDX.js} +4 -4
- package/dist/{provider-auth-helpers-DnnYgfnU.js → provider-auth-helpers-CzSm0FSu.js} +5 -5
- package/dist/{provider-auth-helpers-D-NWKlbH.js → provider-auth-helpers-hI1pbI9r.js} +2 -2
- package/dist/{proxy-env-zRmsnQyF.js → proxy-env-B3cJLAXi.js} +1 -1
- package/dist/{push-apns-DpNqlhRp.js → push-apns-DMeB2M_b.js} +5 -5
- package/dist/{push-apns-CxuflGia.js → push-apns-DZ0qaSFA.js} +1 -1
- package/dist/{pw-ai-shcztqUJ.js → pw-ai-BuJ96cBK.js} +15 -15
- package/dist/{pw-ai-K29PikaU.js → pw-ai-Cu3cnNF0.js} +1 -1
- package/dist/{qmd-manager-Dkj5bE5Q.js → qmd-manager-CU27lJu6.js} +20 -20
- package/dist/{qr-cli-CVeJLILo.js → qr-cli-D5wWchj3.js} +1 -1
- package/dist/{query-expansion-C_gNfBxn.js → query-expansion-DTVQFgNJ.js} +12 -12
- package/dist/{redact-snapshot-jjHvRNNQ.js → redact-snapshot-DiQrZF-C.js} +1 -1
- package/dist/{register.agent-KPyI7NIX.js → register.agent-BBOmACUM.js} +99 -99
- package/dist/{register.agent-CM2WrDiT.js → register.agent-D9rmYCMS.js} +10 -10
- package/dist/register.configure-BJ7l1h-A.js +175 -0
- package/dist/{register.configure-DO4EtzQf.js → register.configure-CZF2XAPO.js} +13 -13
- package/dist/{register.init-fbZRTWnn.js → register.init-BXkISfms.js} +18 -17
- package/dist/{register.init--ZybjVz2.js → register.init-BvMr7cj9.js} +3 -2
- package/dist/{register.maintenance-5ovOEoCx.js → register.maintenance-FKHpDu3E.js} +101 -101
- package/dist/{register.maintenance-BEr69U9Q.js → register.maintenance-qjXr4IGe.js} +9 -9
- package/dist/{register.message-C4WVGh_P.js → register.message-BME4m1Jr.js} +79 -79
- package/dist/{register.message-5nFfiTjN.js → register.message-Cs0mwtTw.js} +4 -4
- package/dist/{register.onboard-CYlc-JLy.js → register.onboard--_sGklZ6.js} +18 -18
- package/dist/{register.onboard-DRJusS4p.js → register.onboard-BzpyjklK.js} +2 -2
- package/dist/{register.setup-CFj3zDQ5.js → register.setup-Degyv4Bj.js} +2 -2
- package/dist/{register.setup-Cz9kVlNj.js → register.setup-qYawYgIM.js} +21 -21
- package/dist/{register.start-BesEIeyG.js → register.start-DErNT3nQ.js} +17 -17
- package/dist/{register.status-health-sessions-BPLHKCVT.js → register.status-health-sessions-Czq26k6E.js} +93 -93
- package/dist/{register.status-health-sessions-5YEbsmFq.js → register.status-health-sessions-wp3A615j.js} +5 -5
- package/dist/{register.subclis-BPpxGpDU.js → register.subclis-DkDc3aKk.js} +31 -31
- package/dist/{replies--7kgWzUI.js → replies-BTbk1yj0.js} +1 -1
- package/dist/{reply-DocHuCQP.js → reply-OEcNPoWd.js} +4 -4
- package/dist/{reply-prefix-Db6C8_77.js → reply-prefix-CQi-DNJ_.js} +1 -1
- package/dist/{resolve-route-DqGvgUbS.js → resolve-route-qkwCBMOn.js} +2 -2
- package/dist/{rpc-Da_4fj6k.js → rpc-Cnf8pyqe.js} +1 -1
- package/dist/{run-main-D4CxtTIj.js → run-main-VaM4RFaa.js} +97 -97
- package/dist/{runtime-Dtwe1yzQ.js → runtime-BKPQGwlu.js} +2 -2
- package/dist/{sandbox-7BPxFdm0.js → sandbox-FcGYiz2w.js} +18 -18
- package/dist/{sandbox-cli-fNztPATd.js → sandbox-cli-I_Ee8o_F.js} +26 -26
- package/dist/{secrets-cli-Buc9vA9M.js → secrets-cli-Y5Ae8654.js} +10 -10
- package/dist/{security-cli-CBa6BNve.js → security-cli-Cxh4Msyp.js} +43 -43
- package/dist/{send-B_g5mC7P.js → send-BCFY4Zon.js} +6 -6
- package/dist/{send-BIDQVuz-.js → send-BND_guiq.js} +6 -6
- package/dist/{send-B9F6v1RI.js → send-BaweV9LV.js} +5 -5
- package/dist/{send-Xi705BIB.js → send-CApiXnSH.js} +8 -8
- package/dist/{send-Dt2MU1Ez.js → send-aCOVuBQ6.js} +11 -11
- package/dist/{server-DGSKOG9H.js → server-B9tR6Pn2.js} +19 -19
- package/dist/{server-context-PzcGGZd6.js → server-context-CEq3QrPf.js} +12 -12
- package/dist/{server-lifecycle-DKHhAN2b.js → server-lifecycle-Dm-2uq1J.js} +2 -2
- package/dist/{server-middleware-DV0oZmRx.js → server-middleware-Bm0ro16L.js} +1 -1
- package/dist/{server-node-events-C_CyfSiL.js → server-node-events-BE-B31Iv.js} +79 -79
- package/dist/{server-node-events-CZ-3bwB5.js → server-node-events-h5NyibKC.js} +4 -4
- package/dist/{service-BP_KUPqt.js → service-D_q10odK.js} +15 -15
- package/dist/{session-zBCRyIT4.js → session-BilXyYPK.js} +1 -1
- package/dist/{session-meta-DVRsY69Q.js → session-meta-BmvLv08s.js} +1 -1
- package/dist/{session-utils-CJnxY0Iq.js → session-utils-DdRL6aoq.js} +6 -6
- package/dist/{sessions-DvmE9uli.js → sessions-ChAmoyIS.js} +15 -15
- package/dist/{sessions-D6w_y8HL.js → sessions-CktkDWsc.js} +4 -4
- package/dist/{shared-CdPG7WbR.js → shared-CYOVnE8Z.js} +1 -1
- package/dist/{shared-BpCAsQdK.js → shared-ChzS9n9t.js} +3 -3
- package/dist/{skill-commands-xxmr2qwC.js → skill-commands-BIN2pI7T.js} +5 -5
- package/dist/{skill-scanner-CWbaA3Xe.js → skill-scanner-CSmiOSFd.js} +6 -6
- package/dist/{skills-Cn4HFdI6.js → skills-CqO2kuTQ.js} +3 -3
- package/dist/{skills-cli-fx9XRVfF.js → skills-cli-CCfNGx-q.js} +5 -5
- package/dist/{skills-install-8BRmLudM.js → skills-install-3PLvMn_P.js} +6 -6
- package/dist/{skills-status-KyIZObis.js → skills-status-C1TG3OK0.js} +1 -1
- package/dist/{status-DGYiEE9b.js → status-CmNVuywF.js} +2 -2
- package/dist/{status-Cpa2ZBOB.js → status-D_I-fLJF.js} +26 -26
- package/dist/{status.update-dR_eb-sA.js → status.update-BX7tZJju.js} +2 -2
- package/dist/{store-C-5s51Gr.js → store-H4Sy0kJE.js} +5 -5
- package/dist/{subagent-registry-BFi2AvAR.js → subagent-registry-D4xGq2uc.js} +158 -158
- package/dist/{system-cli-0oaOfAhE.js → system-cli-zS6TKEZN.js} +9 -9
- package/dist/{system-run-command--za6p_x3.js → system-run-command-Bnym6gCM.js} +1 -1
- package/dist/{systemd-BKKFcgDX.js → systemd-B-TNk1de.js} +9 -9
- package/dist/{systemd-hints-DWiwN7xP.js → systemd-hints-BtHGM1Jb.js} +6 -6
- package/dist/{systemd-linger-CxIMr-zT.js → systemd-linger-CTeOH7Nl.js} +1 -1
- package/dist/{tables-Dxff0JSr.js → tables-CQmtKuyg.js} +1 -1
- package/dist/{tailnet-Cu8EdqyP.js → tailnet-DcxtJZA8.js} +1 -1
- package/dist/{target-errors-BF6f4DMR.js → target-errors-B_xyg1kW.js} +4 -4
- package/dist/{tool-images-BdyT10Li.js → tool-images-D1tcg9xW.js} +1 -1
- package/dist/{tui-CpmJvFb8.js → tui-CaNLNBF2.js} +6 -6
- package/dist/{tui-cli-C3paex8S.js → tui-cli-YnPauYsR.js} +33 -33
- package/dist/{update-DeX-3j-N.js → update-Cn9hdCvW.js} +3 -3
- package/dist/{update-cli-BFovLSoE.js → update-cli-CWS0bKZV.js} +109 -109
- package/dist/{update-cli-GRNVZJPC.js → update-cli-Do4BIFSd.js} +9 -9
- package/dist/{update-runner-BEeaojMB.js → update-runner-BUth8QlB.js} +16 -16
- package/dist/{update-runner-C_NOsmrM.js → update-runner-D5vyQGte.js} +1 -1
- package/dist/{web-JHPqOF_6.js → web-Bc1AWW4q.js} +4 -4
- package/dist/{web-_gRUr5dM.js → web-C5gLi1bN.js} +6 -6
- package/dist/web-CQqnJkMB.js +127 -0
- package/dist/{webhooks-cli-D8OXryhs.js → webhooks-cli-BI8a49sS.js} +6 -6
- package/dist/{whatsapp-actions-DXHJuREZ.js → whatsapp-actions-DdiWBZ9X.js} +19 -19
- package/dist/{with-timeout-CL7ogNKf.js → with-timeout-DbFn1lEx.js} +3 -3
- package/dist/{workspace-V4tpdXSA.js → workspace-AgsRlsqX.js} +1 -1
- package/dist/{workspace-DzeL98px.js → workspace-BHfqkuYN.js} +23 -23
- package/dist/{workspace-dirs-pZ_2cckP.js → workspace-dirs-DxSNfi_Q.js} +1 -1
- package/dist/{wsl-CiVud8tt.js → wsl-KDz114y6.js} +2 -2
- package/docs/install/installer.md +7 -0
- package/package.json +6 -1
- package/dist/constants-CLQ_6hKz.js +0 -10
- package/dist/constants-DnSTSxcE.js +0 -10
- package/dist/register.configure-CLQG7kfp.js +0 -175
- package/dist/web-DgzOP2dY.js +0 -127
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-BnKiOk2S.js";
|
|
2
2
|
import { t as parseBooleanValue } from "./boolean-DtWR5bt3.js";
|
|
3
|
-
import { M as loadConfig, R as writeConfigFile, j as createConfigIO } from "./auth-profiles-
|
|
4
|
-
import { r as isLoopbackHost } from "./net-
|
|
5
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
6
|
-
import { A as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, C as stopChromeExtensionRelayServer, D as resolveCdpReachabilityTimeouts, E as PROFILE_POST_RESTART_WS_TIMEOUT_MS, F as DEFAULT_OPENCLAW_BROWSER_ENABLED, I as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, M as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, N as DEFAULT_BROWSER_EVALUATE_ENABLED, P as DEFAULT_OPENCLAW_BROWSER_COLOR, S as ensureChromeExtensionRelayServer, T as PROFILE_ATTACH_RETRY_TIMEOUT_MS, _ as appendCdpPath, a as resolveOpenClawUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as withBrowserNavigationPolicy, h as assertBrowserNavigationResultAllowed, i as launchOpenClawChrome, j as DEFAULT_AI_SNAPSHOT_MAX_CHARS, k as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopOpenClawChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchJson, w as CDP_JSON_NEW_TIMEOUT_MS, y as fetchOk } from "./chrome-
|
|
7
|
-
import { a as resolveGatewayAuth } from "./auth-
|
|
8
|
-
import { c as normalizeBrowserFormField, i as resolveExistingPathsWithinRoot, n as DEFAULT_TRACE_DIR, o as resolveWritablePathWithinRoot, r as DEFAULT_UPLOAD_DIR, t as DEFAULT_DOWNLOAD_DIR } from "./paths-
|
|
3
|
+
import { M as loadConfig, R as writeConfigFile, j as createConfigIO } from "./auth-profiles-Ncv1fyN5.js";
|
|
4
|
+
import { r as isLoopbackHost } from "./net-B6xk1xkz.js";
|
|
5
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-Di37o6bN.js";
|
|
6
|
+
import { A as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, C as stopChromeExtensionRelayServer, D as resolveCdpReachabilityTimeouts, E as PROFILE_POST_RESTART_WS_TIMEOUT_MS, F as DEFAULT_OPENCLAW_BROWSER_ENABLED, I as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, M as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, N as DEFAULT_BROWSER_EVALUATE_ENABLED, P as DEFAULT_OPENCLAW_BROWSER_COLOR, S as ensureChromeExtensionRelayServer, T as PROFILE_ATTACH_RETRY_TIMEOUT_MS, _ as appendCdpPath, a as resolveOpenClawUserDataDir, c as captureScreenshot, d as normalizeCdpWsUrl, f as snapshotAria, g as withBrowserNavigationPolicy, h as assertBrowserNavigationResultAllowed, i as launchOpenClawChrome, j as DEFAULT_AI_SNAPSHOT_MAX_CHARS, k as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, l as createTargetViaCdp, m as assertBrowserNavigationAllowed, n as isChromeCdpReady, o as stopOpenClawChrome, p as InvalidBrowserNavigationUrlError, r as isChromeReachable, s as resolveBrowserExecutableForPlatform, v as fetchJson, w as CDP_JSON_NEW_TIMEOUT_MS, y as fetchOk } from "./chrome-DNZHZwLH.js";
|
|
7
|
+
import { a as resolveGatewayAuth } from "./auth-CzuZwE7M.js";
|
|
8
|
+
import { c as normalizeBrowserFormField, i as resolveExistingPathsWithinRoot, n as DEFAULT_TRACE_DIR, o as resolveWritablePathWithinRoot, r as DEFAULT_UPLOAD_DIR, t as DEFAULT_DOWNLOAD_DIR } from "./paths-C2VtkO4T.js";
|
|
9
9
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-vO-8U3CP.js";
|
|
10
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
11
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
10
|
+
import { n as SsrFBlockedError } from "./proxy-env-B3cJLAXi.js";
|
|
11
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-H4Sy0kJE.js";
|
|
12
12
|
import { t as movePathToTrash } from "./trash-3chEdbRK.js";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import fs from "node:fs";
|
|
15
|
-
import
|
|
15
|
+
import fs$1 from "node:fs/promises";
|
|
16
16
|
import crypto from "node:crypto";
|
|
17
17
|
|
|
18
18
|
//#region src/gateway/startup-auth.ts
|
|
@@ -158,7 +158,7 @@ function isModuleNotFoundError(err) {
|
|
|
158
158
|
}
|
|
159
159
|
async function loadPwAiModule(mode) {
|
|
160
160
|
try {
|
|
161
|
-
return await import("./pw-ai-
|
|
161
|
+
return await import("./pw-ai-BuJ96cBK.js");
|
|
162
162
|
} catch (err) {
|
|
163
163
|
if (mode === "soft") return null;
|
|
164
164
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -316,7 +316,7 @@ async function withPlaywrightRouteContext(params) {
|
|
|
316
316
|
//#endregion
|
|
317
317
|
//#region src/browser/routes/output-paths.ts
|
|
318
318
|
async function ensureOutputRootDir(rootDir) {
|
|
319
|
-
await
|
|
319
|
+
await fs$1.mkdir(rootDir, { recursive: true });
|
|
320
320
|
}
|
|
321
321
|
async function resolveWritableOutputPathOrRespond(params) {
|
|
322
322
|
if (params.ensureRootDir) await ensureOutputRootDir(params.rootDir);
|
|
@@ -2507,7 +2507,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
2507
2507
|
//#region src/browser/server-context.reset.ts
|
|
2508
2508
|
async function closePlaywrightBrowserConnection() {
|
|
2509
2509
|
try {
|
|
2510
|
-
await (await import("./pw-ai-
|
|
2510
|
+
await (await import("./pw-ai-BuJ96cBK.js")).closePlaywrightBrowserConnection();
|
|
2511
2511
|
} catch {}
|
|
2512
2512
|
}
|
|
2513
2513
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ensureChromeExtensionRelayServer } from "./chrome-
|
|
2
|
-
import { a as resolveProfile, n as listKnownProfileNames, t as createBrowserRouteContext } from "./server-context-
|
|
1
|
+
import { S as ensureChromeExtensionRelayServer } from "./chrome-DNZHZwLH.js";
|
|
2
|
+
import { a as resolveProfile, n as listKnownProfileNames, t as createBrowserRouteContext } from "./server-context-CEq3QrPf.js";
|
|
3
3
|
|
|
4
4
|
//#region src/browser/server-lifecycle.ts
|
|
5
5
|
async function ensureExtensionRelayForProfiles(params) {
|
|
@@ -2,11 +2,11 @@ import "./globals-B68W7uN8.js";
|
|
|
2
2
|
import "./paths-BnKiOk2S.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-DjdBljTA.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-Ncv1fyN5.js";
|
|
6
|
+
import "./agent-scope-CJelRKYY.js";
|
|
7
7
|
import { l as normalizeMainKey } from "./session-key-BLprDJYq.js";
|
|
8
8
|
import "./utils-DIzy5B5o.js";
|
|
9
|
-
import "./workspace-
|
|
9
|
+
import "./workspace-BHfqkuYN.js";
|
|
10
10
|
import "./logger-BJMfryJd.js";
|
|
11
11
|
import "./exec-CEAvKSx9.js";
|
|
12
12
|
import "./github-copilot-token-CulJ9J5l.js";
|
|
@@ -14,113 +14,113 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
14
14
|
import "./version-CGDNfh5C.js";
|
|
15
15
|
import "./env-vars-Dw0EwyGP.js";
|
|
16
16
|
import "./registry-7fg1BnMw.js";
|
|
17
|
-
import "./manifest-registry-
|
|
18
|
-
import "./dock-
|
|
19
|
-
import "./model-
|
|
20
|
-
import "./pi-model-discovery-
|
|
17
|
+
import "./manifest-registry-Kbw8YPsZ.js";
|
|
18
|
+
import "./dock-DXBor-4C.js";
|
|
19
|
+
import "./model-D49_t4Rw.js";
|
|
20
|
+
import "./pi-model-discovery-B7QZQW84.js";
|
|
21
21
|
import "./frontmatter-I4t5UjzX.js";
|
|
22
|
-
import "./skills-
|
|
23
|
-
import "./path-alias-guards-
|
|
22
|
+
import "./skills-CqO2kuTQ.js";
|
|
23
|
+
import "./path-alias-guards-CwNBr-6E.js";
|
|
24
24
|
import "./message-channel-BiM2wKMK.js";
|
|
25
|
-
import { d as updateSessionStore } from "./sessions-
|
|
26
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
27
|
-
import "./accounts-
|
|
28
|
-
import "./accounts-
|
|
25
|
+
import { d as updateSessionStore } from "./sessions-ChAmoyIS.js";
|
|
26
|
+
import { r as normalizeChannelId } from "./plugins-BYHJoTB8.js";
|
|
27
|
+
import "./accounts-ESSExMvC.js";
|
|
28
|
+
import "./accounts-Dr4JgFGK.js";
|
|
29
29
|
import "./logging-CcxUDNcI.js";
|
|
30
|
-
import "./accounts-
|
|
31
|
-
import "./bindings-
|
|
32
|
-
import "./send-
|
|
33
|
-
import "./send-
|
|
34
|
-
import { A as agentCommandFromIngress, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Rn as requestHeartbeatNow, bt as resolveOutboundTarget, ln as buildOutboundSessionContext } from "./subagent-registry-
|
|
30
|
+
import "./accounts-C0g5--0e.js";
|
|
31
|
+
import "./bindings-C2tByF8e.js";
|
|
32
|
+
import "./send-BaweV9LV.js";
|
|
33
|
+
import "./send-aCOVuBQ6.js";
|
|
34
|
+
import { A as agentCommandFromIngress, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Rn as requestHeartbeatNow, bt as resolveOutboundTarget, ln as buildOutboundSessionContext } from "./subagent-registry-D4xGq2uc.js";
|
|
35
35
|
import "./paths-CFzDnbY4.js";
|
|
36
36
|
import "./chat-envelope-AUuZAcrC.js";
|
|
37
|
-
import "./client-
|
|
38
|
-
import "./call-
|
|
37
|
+
import "./client-D3Y8sx9i.js";
|
|
38
|
+
import "./call-BolSRDlL.js";
|
|
39
39
|
import "./pairing-token-BsirnXyL.js";
|
|
40
|
-
import "./net-
|
|
41
|
-
import "./tailnet-
|
|
40
|
+
import "./net-B6xk1xkz.js";
|
|
41
|
+
import "./tailnet-DcxtJZA8.js";
|
|
42
42
|
import "./tokens-Cfwlih4q.js";
|
|
43
|
-
import "./with-timeout-
|
|
44
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
45
|
-
import "./diagnostic-
|
|
43
|
+
import "./with-timeout-DbFn1lEx.js";
|
|
44
|
+
import { t as deliverOutboundPayloads } from "./deliver-DRKtTsvj.js";
|
|
45
|
+
import "./diagnostic-D2YBqJR0.js";
|
|
46
46
|
import "./diagnostic-session-state-B5Z0I32_.js";
|
|
47
|
-
import "./send-
|
|
48
|
-
import "./image-ops-
|
|
49
|
-
import "./pi-embedded-helpers-
|
|
50
|
-
import "./sandbox-
|
|
47
|
+
import "./send-CApiXnSH.js";
|
|
48
|
+
import "./image-ops-Di37o6bN.js";
|
|
49
|
+
import "./pi-embedded-helpers-BYOv7Q7E.js";
|
|
50
|
+
import "./sandbox-FcGYiz2w.js";
|
|
51
51
|
import "./tool-catalog-CDe8aNjS.js";
|
|
52
|
-
import "./chrome-
|
|
52
|
+
import "./chrome-DNZHZwLH.js";
|
|
53
53
|
import "./tailscale-BVIS18LB.js";
|
|
54
|
-
import "./auth-
|
|
55
|
-
import "./server-context-
|
|
56
|
-
import "./paths-
|
|
54
|
+
import "./auth-CzuZwE7M.js";
|
|
55
|
+
import "./server-context-CEq3QrPf.js";
|
|
56
|
+
import "./paths-C2VtkO4T.js";
|
|
57
57
|
import "./redact-C54hrUru.js";
|
|
58
58
|
import "./errors-vO-8U3CP.js";
|
|
59
|
-
import "./fs-safe-
|
|
60
|
-
import "./proxy-env-
|
|
61
|
-
import "./store-
|
|
62
|
-
import "./ports-
|
|
59
|
+
import "./fs-safe-Bbp_1S9D.js";
|
|
60
|
+
import "./proxy-env-B3cJLAXi.js";
|
|
61
|
+
import "./store-H4Sy0kJE.js";
|
|
62
|
+
import "./ports-Bjm5w0DD.js";
|
|
63
63
|
import "./trash-3chEdbRK.js";
|
|
64
|
-
import "./server-middleware-
|
|
65
|
-
import "./tool-images-
|
|
64
|
+
import "./server-middleware-Bm0ro16L.js";
|
|
65
|
+
import "./tool-images-D1tcg9xW.js";
|
|
66
66
|
import "./thinking-BxCyPtl0.js";
|
|
67
|
-
import "./models-config-
|
|
68
|
-
import "./exec-approvals-allowlist-
|
|
69
|
-
import "./exec-safe-bin-runtime-policy-
|
|
70
|
-
import "./model-catalog-
|
|
71
|
-
import "./fetch-
|
|
72
|
-
import "./audio-transcription-runner-
|
|
73
|
-
import "./fetch-guard-
|
|
74
|
-
import "./image-
|
|
67
|
+
import "./models-config-BJTF5xb7.js";
|
|
68
|
+
import "./exec-approvals-allowlist-BjI4jCdB.js";
|
|
69
|
+
import "./exec-safe-bin-runtime-policy-DJT0CbIu.js";
|
|
70
|
+
import "./model-catalog-B9xOhfnS.js";
|
|
71
|
+
import "./fetch-Ch8LsU9k.js";
|
|
72
|
+
import "./audio-transcription-runner-DgoTt2Qi.js";
|
|
73
|
+
import "./fetch-guard-B3dFBAUH.js";
|
|
74
|
+
import "./image-2aQoIIQl.js";
|
|
75
75
|
import "./tool-display-BlfqPjyM.js";
|
|
76
|
-
import "./api-key-rotation-
|
|
76
|
+
import "./api-key-rotation-7AxlAIU7.js";
|
|
77
77
|
import "./proxy-fetch-GMe0fonX.js";
|
|
78
|
-
import "./reply-prefix-
|
|
78
|
+
import "./reply-prefix-CQi-DNJ_.js";
|
|
79
79
|
import "./chunk-Cct6991k.js";
|
|
80
|
-
import "./markdown-tables-
|
|
81
|
-
import "./ir-
|
|
80
|
+
import "./markdown-tables-B1FRFNMI.js";
|
|
81
|
+
import "./ir-CPt8jJjC.js";
|
|
82
82
|
import "./render-Bwu_WxwA.js";
|
|
83
|
-
import "./target-errors-
|
|
84
|
-
import "./commands-
|
|
85
|
-
import "./commands-registry-
|
|
83
|
+
import "./target-errors-B_xyg1kW.js";
|
|
84
|
+
import "./commands-CvjTbnpO.js";
|
|
85
|
+
import "./commands-registry-CMWIA5nS.js";
|
|
86
86
|
import "./fetch-BAIuE19S.js";
|
|
87
87
|
import "./retry-D-mebgYT.js";
|
|
88
|
-
import "./pairing-store-
|
|
88
|
+
import "./pairing-store-DVasdu6J.js";
|
|
89
89
|
import "./exec-approvals-BdDof9Fq.js";
|
|
90
|
-
import "./nodes-screen-
|
|
91
|
-
import "./system-run-command
|
|
92
|
-
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-
|
|
90
|
+
import "./nodes-screen-DIBoM5tG.js";
|
|
91
|
+
import "./system-run-command-Bnym6gCM.js";
|
|
92
|
+
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-DdRL6aoq.js";
|
|
93
93
|
import "./session-cost-usage-BrBOYp_s.js";
|
|
94
|
-
import "./skill-commands-
|
|
95
|
-
import "./workspace-dirs-
|
|
94
|
+
import "./skill-commands-BIN2pI7T.js";
|
|
95
|
+
import "./workspace-dirs-DxSNfi_Q.js";
|
|
96
96
|
import "./channel-activity-CfjrVNGV.js";
|
|
97
|
-
import "./tables-
|
|
98
|
-
import "./server-lifecycle-
|
|
97
|
+
import "./tables-CQmtKuyg.js";
|
|
98
|
+
import "./server-lifecycle-Dm-2uq1J.js";
|
|
99
99
|
import "./stagger-Bi1uV655.js";
|
|
100
|
-
import "./channel-selection-
|
|
101
|
-
import "./plugin-auto-enable-
|
|
102
|
-
import "./send-
|
|
103
|
-
import "./outbound-attachment-
|
|
100
|
+
import "./channel-selection-DAkTNagG.js";
|
|
101
|
+
import "./plugin-auto-enable-BJBnaUzA.js";
|
|
102
|
+
import "./send-BND_guiq.js";
|
|
103
|
+
import "./outbound-attachment-C1mspOfp.js";
|
|
104
104
|
import "./delivery-queue-DTM1WpVs.js";
|
|
105
|
-
import "./send-
|
|
106
|
-
import "./resolve-route-
|
|
107
|
-
import "./pi-tools.policy-
|
|
105
|
+
import "./send-BCFY4Zon.js";
|
|
106
|
+
import "./resolve-route-qkwCBMOn.js";
|
|
107
|
+
import "./pi-tools.policy-CUqhItn9.js";
|
|
108
108
|
import "./proxy-DOLK7n4o.js";
|
|
109
|
-
import "./replies
|
|
110
|
-
import "./onboard-helpers-
|
|
109
|
+
import "./replies-BTbk1yj0.js";
|
|
110
|
+
import "./onboard-helpers-D-l_4GyD.js";
|
|
111
111
|
import "./prompt-style-Czxj2d5H.js";
|
|
112
|
-
import "./pairing-labels-
|
|
113
|
-
import "./session-meta-
|
|
114
|
-
import "./memory-cli-
|
|
115
|
-
import "./manager-
|
|
116
|
-
import "./query-expansion-
|
|
112
|
+
import "./pairing-labels-BDzfGlP0.js";
|
|
113
|
+
import "./session-meta-BmvLv08s.js";
|
|
114
|
+
import "./memory-cli-DF4DARLw.js";
|
|
115
|
+
import "./manager-C5ViXKTz.js";
|
|
116
|
+
import "./query-expansion-DTVQFgNJ.js";
|
|
117
117
|
import "./links-CbS2yOg-.js";
|
|
118
118
|
import "./cli-utils-aSBNHQae.js";
|
|
119
119
|
import "./help-format-Bf46Qqc-.js";
|
|
120
120
|
import "./progress-BkZzF3Qm.js";
|
|
121
|
-
import "./constants-
|
|
122
|
-
import "./context-window-guard-
|
|
123
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
121
|
+
import "./constants-D1Q8yQ1_.js";
|
|
122
|
+
import "./context-window-guard-BqrKjiIm.js";
|
|
123
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-DMeB2M_b.js";
|
|
124
124
|
import { randomUUID } from "node:crypto";
|
|
125
125
|
|
|
126
126
|
//#region src/gateway/server-node-events.ts
|
|
@@ -2,7 +2,7 @@ import "./paths-BYr-iJJ9.js";
|
|
|
2
2
|
import "./globals-uLeGcRW1.js";
|
|
3
3
|
import "./utils-CP51tiAi.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import { Ar as enqueueSystemEvent, D as pruneLegacyStoreKeys, E as loadSessionEntry, Ft as createOutboundSendDeps, Jn as buildOutboundSessionContext, O as resolveGatewaySessionStoreTarget, Pr as requestHeartbeatNow, jt as agentCommandFromIngress, kn as resolveOutboundTarget } from "./reply-
|
|
5
|
+
import { Ar as enqueueSystemEvent, D as pruneLegacyStoreKeys, E as loadSessionEntry, Ft as createOutboundSendDeps, Jn as buildOutboundSessionContext, O as resolveGatewaySessionStoreTarget, Pr as requestHeartbeatNow, jt as agentCommandFromIngress, kn as resolveOutboundTarget } from "./reply-OEcNPoWd.js";
|
|
6
6
|
import "./agent-scope-CiBV1K6b.js";
|
|
7
7
|
import { d as defaultRuntime } from "./subsystem-BT74-yyS.js";
|
|
8
8
|
import { l as normalizeMainKey } from "./session-key-C9z4VQtw.js";
|
|
@@ -117,9 +117,9 @@ import "./help-format-DvJmQzdo.js";
|
|
|
117
117
|
import "./progress-BNTrvrfJ.js";
|
|
118
118
|
import "./server-lifecycle-Dn1WcypX.js";
|
|
119
119
|
import "./stagger-BIZMWR_z.js";
|
|
120
|
-
import "./constants-
|
|
121
|
-
import "./context-window-guard-
|
|
122
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
120
|
+
import "./constants-BJMtcGm_.js";
|
|
121
|
+
import "./context-window-guard-DfLcl4Sl.js";
|
|
122
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-DZ0qaSFA.js";
|
|
123
123
|
import { randomUUID } from "node:crypto";
|
|
124
124
|
|
|
125
125
|
//#region src/gateway/server-node-events.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as resolveGatewayServiceDescription, l as resolveGatewayLaunchAgentLabel, m as resolveLegacyGatewayLaunchAgentLabels, p as resolveGatewayWindowsTaskName, t as GATEWAY_LAUNCH_AGENT_LABEL } from "./constants-CVdMnAs9.js";
|
|
2
|
-
import { _ as formatLine, a as readSystemdServiceRuntime, b as execFileUtf8, c as stopSystemdService, g as resolveHomeDir, h as resolveGatewayStateDir, i as readSystemdServiceExecStart, m as parseKeyValueOutput, n as isSystemdServiceEnabled, p as splitArgsPreservingQuotes, s as restartSystemdService, t as installSystemdService, u as uninstallSystemdService, v as toPosixPath, y as writeFormattedLines } from "./systemd-
|
|
2
|
+
import { _ as formatLine, a as readSystemdServiceRuntime, b as execFileUtf8, c as stopSystemdService, g as resolveHomeDir, h as resolveGatewayStateDir, i as readSystemdServiceExecStart, m as parseKeyValueOutput, n as isSystemdServiceEnabled, p as splitArgsPreservingQuotes, s as restartSystemdService, t as installSystemdService, u as uninstallSystemdService, v as toPosixPath, y as writeFormattedLines } from "./systemd-B-TNk1de.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/daemon/launchd-plist.ts
|
|
7
7
|
const LAUNCH_AGENT_THROTTLE_INTERVAL_SECONDS = 1;
|
|
@@ -16,7 +16,7 @@ const renderEnvDict = (env) => {
|
|
|
16
16
|
};
|
|
17
17
|
async function readLaunchAgentProgramArgumentsFromFile(plistPath) {
|
|
18
18
|
try {
|
|
19
|
-
const plist = await
|
|
19
|
+
const plist = await fs.readFile(plistPath, "utf8");
|
|
20
20
|
const programMatch = plist.match(/<key>ProgramArguments<\/key>\s*<array>([\s\S]*?)<\/array>/i);
|
|
21
21
|
if (!programMatch) return null;
|
|
22
22
|
const args = Array.from(programMatch[1].matchAll(/<string>([\s\S]*?)<\/string>/gi)).map((match) => plistUnescape(match[1] ?? "").trim());
|
|
@@ -130,7 +130,7 @@ async function isLaunchAgentListed(args) {
|
|
|
130
130
|
async function launchAgentPlistExists(env) {
|
|
131
131
|
try {
|
|
132
132
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
133
|
-
await
|
|
133
|
+
await fs.access(plistPath);
|
|
134
134
|
return true;
|
|
135
135
|
} catch {
|
|
136
136
|
return false;
|
|
@@ -190,7 +190,7 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
190
190
|
]);
|
|
191
191
|
await execLaunchctl(["unload", plistPath]);
|
|
192
192
|
try {
|
|
193
|
-
await
|
|
193
|
+
await fs.access(plistPath);
|
|
194
194
|
} catch {
|
|
195
195
|
stdout.write(`LaunchAgent not found at ${plistPath}\n`);
|
|
196
196
|
return;
|
|
@@ -199,8 +199,8 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
199
199
|
const trashDir = path.join(home, ".Trash");
|
|
200
200
|
const dest = path.join(trashDir, `${label}.plist`);
|
|
201
201
|
try {
|
|
202
|
-
await
|
|
203
|
-
await
|
|
202
|
+
await fs.mkdir(trashDir, { recursive: true });
|
|
203
|
+
await fs.rename(plistPath, dest);
|
|
204
204
|
stdout.write(`${formatLine("Moved LaunchAgent to Trash", dest)}\n`);
|
|
205
205
|
} catch {
|
|
206
206
|
stdout.write(`LaunchAgent remains at ${plistPath} (could not move)\n`);
|
|
@@ -244,7 +244,7 @@ async function stopLaunchAgent({ stdout, env }) {
|
|
|
244
244
|
}
|
|
245
245
|
async function installLaunchAgent({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
246
246
|
const { logDir, stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
247
|
-
await
|
|
247
|
+
await fs.mkdir(logDir, { recursive: true });
|
|
248
248
|
const domain = resolveGuiDomain();
|
|
249
249
|
const label = resolveLaunchAgentLabel({ env });
|
|
250
250
|
for (const legacyLabel of resolveLegacyGatewayLaunchAgentLabels(env.OPENCLAW_PROFILE)) {
|
|
@@ -256,11 +256,11 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
256
256
|
]);
|
|
257
257
|
await execLaunchctl(["unload", legacyPlistPath]);
|
|
258
258
|
try {
|
|
259
|
-
await
|
|
259
|
+
await fs.unlink(legacyPlistPath);
|
|
260
260
|
} catch {}
|
|
261
261
|
}
|
|
262
262
|
const plistPath = resolveLaunchAgentPlistPathForLabel(env, label);
|
|
263
|
-
await
|
|
263
|
+
await fs.mkdir(path.dirname(plistPath), { recursive: true });
|
|
264
264
|
const plist = buildLaunchAgentPlist({
|
|
265
265
|
label,
|
|
266
266
|
comment: resolveGatewayServiceDescription({
|
|
@@ -274,7 +274,7 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
274
274
|
stderrPath,
|
|
275
275
|
environment
|
|
276
276
|
});
|
|
277
|
-
await
|
|
277
|
+
await fs.writeFile(plistPath, plist, "utf8");
|
|
278
278
|
await execLaunchctl([
|
|
279
279
|
"bootout",
|
|
280
280
|
domain,
|
|
@@ -454,7 +454,7 @@ function resolveTaskUser(env) {
|
|
|
454
454
|
async function readScheduledTaskCommand(env) {
|
|
455
455
|
const scriptPath = resolveTaskScriptPath(env);
|
|
456
456
|
try {
|
|
457
|
-
const content = await
|
|
457
|
+
const content = await fs.readFile(scriptPath, "utf8");
|
|
458
458
|
let workingDirectory = "";
|
|
459
459
|
let commandLine = "";
|
|
460
460
|
const environment = {};
|
|
@@ -544,7 +544,7 @@ async function assertSchtasksAvailable() {
|
|
|
544
544
|
async function installScheduledTask({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
545
545
|
await assertSchtasksAvailable();
|
|
546
546
|
const scriptPath = resolveTaskScriptPath(env);
|
|
547
|
-
await
|
|
547
|
+
await fs.mkdir(path.dirname(scriptPath), { recursive: true });
|
|
548
548
|
const script = buildTaskScript({
|
|
549
549
|
description: resolveGatewayServiceDescription({
|
|
550
550
|
env,
|
|
@@ -555,7 +555,7 @@ async function installScheduledTask({ env, stdout, programArguments, workingDire
|
|
|
555
555
|
workingDirectory,
|
|
556
556
|
environment
|
|
557
557
|
});
|
|
558
|
-
await
|
|
558
|
+
await fs.writeFile(scriptPath, script, "utf8");
|
|
559
559
|
const taskName = resolveTaskName(env);
|
|
560
560
|
const baseArgs = [
|
|
561
561
|
"/Create",
|
|
@@ -607,7 +607,7 @@ async function uninstallScheduledTask({ env, stdout }) {
|
|
|
607
607
|
]);
|
|
608
608
|
const scriptPath = resolveTaskScriptPath(env);
|
|
609
609
|
try {
|
|
610
|
-
await
|
|
610
|
+
await fs.unlink(scriptPath);
|
|
611
611
|
stdout.write(`${formatLine("Removed task script", scriptPath)}\n`);
|
|
612
612
|
} catch {
|
|
613
613
|
stdout.write(`Task script not found at ${scriptPath}\n`);
|
|
@@ -2,7 +2,7 @@ import { l as success, m as getChildLogger, t as danger, v as toPinoLikeLogger }
|
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
3
3
|
import { s as ensureDir, v as resolveUserPath } from "./utils-DIzy5B5o.js";
|
|
4
4
|
import { t as VERSION } from "./version-CGDNfh5C.js";
|
|
5
|
-
import { f as readCredsJsonRaw, g as resolveWebCredsPath, h as resolveWebCredsBackupPath, m as resolveDefaultWebAuthDir, u as maybeRestoreCredsFromBackup } from "./accounts-
|
|
5
|
+
import { f as readCredsJsonRaw, g as resolveWebCredsPath, h as resolveWebCredsBackupPath, m as resolveDefaultWebAuthDir, u as maybeRestoreCredsFromBackup } from "./accounts-ESSExMvC.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as recordSessionMetaFromInbound } from "./sessions-
|
|
2
|
+
import { c as recordSessionMetaFromInbound } from "./sessions-ChAmoyIS.js";
|
|
3
3
|
import { c as resolveStorePath } from "./paths-CFzDnbY4.js";
|
|
4
4
|
|
|
5
5
|
//#region src/channels/session-meta.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { U as FLAG_TERMINATOR, W as consumeRootOptionToken } from "./globals-B68W7uN8.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BnKiOk2S.js";
|
|
3
|
-
import { Ai as DEFAULT_MODEL, At as resolveAvatarMime, Ct as isAvatarDataUrl, Et as isPathWithinRoot, M as loadConfig, Ot as isWorkspaceRelativeAvatarPath, St as AVATAR_MAX_BYTES, br as resolveDefaultModelForAgent, er as resolveOpenClawAgentDir, gr as parseModelRef, ji as DEFAULT_PROVIDER, ki as DEFAULT_CONTEXT_TOKENS, ur as inferUniqueProviderFromConfiguredModels, wt as isAvatarHttpUrl, yr as resolveConfiguredModelRef } from "./auth-profiles-
|
|
4
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
+
import { Ai as DEFAULT_MODEL, At as resolveAvatarMime, Ct as isAvatarDataUrl, Et as isPathWithinRoot, M as loadConfig, Ot as isWorkspaceRelativeAvatarPath, St as AVATAR_MAX_BYTES, br as resolveDefaultModelForAgent, er as resolveOpenClawAgentDir, gr as parseModelRef, ji as DEFAULT_PROVIDER, ki as DEFAULT_CONTEXT_TOKENS, ur as inferUniqueProviderFromConfiguredModels, wt as isAvatarHttpUrl, yr as resolveConfiguredModelRef } from "./auth-profiles-Ncv1fyN5.js";
|
|
4
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-CJelRKYY.js";
|
|
5
5
|
import { S as isCronRunSessionKey, T as parseAgentSessionKey, c as normalizeAgentId, l as normalizeMainKey } from "./session-key-BLprDJYq.js";
|
|
6
|
-
import { C as openBoundaryFileSync } from "./workspace-
|
|
6
|
+
import { C as openBoundaryFileSync } from "./workspace-BHfqkuYN.js";
|
|
7
7
|
import { t as resolveAliasedOpenAiCompatibleModelId } from "./model-id-aliases-D3RpjKgo.js";
|
|
8
|
-
import { $ as resolveAgentMainSessionKey, C as normalizeSessionDeliveryFields, Q as canonicalizeMainSessionAlias, X as resolveFreshSessionTotalTokens, j as readSessionTitleFieldsFromTranscript, o as loadSessionStore, st as buildGroupDisplayName, tt as resolveMainSessionKey } from "./sessions-
|
|
8
|
+
import { $ as resolveAgentMainSessionKey, C as normalizeSessionDeliveryFields, Q as canonicalizeMainSessionAlias, X as resolveFreshSessionTotalTokens, j as readSessionTitleFieldsFromTranscript, o as loadSessionStore, st as buildGroupDisplayName, tt as resolveMainSessionKey } from "./sessions-ChAmoyIS.js";
|
|
9
9
|
import { c as resolveStorePath } from "./paths-CFzDnbY4.js";
|
|
10
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
10
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-BJTF5xb7.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import fs from "node:fs";
|
|
13
13
|
|
|
@@ -113,7 +113,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
113
113
|
await ensureOpenClawModelsJson(cfg);
|
|
114
114
|
} catch {}
|
|
115
115
|
try {
|
|
116
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
116
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-B7QZQW84.js").then((n) => n.r);
|
|
117
117
|
const agentDir = resolveOpenClawAgentDir();
|
|
118
118
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
119
119
|
applyDiscoveredContextWindows({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { y as resolveRequiredHomeDir } from "./paths-BnKiOk2S.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-DjdBljTA.js";
|
|
3
|
-
import { M as loadConfig, at as parseDurationMs, ir as isPidAlive, nr as resolveProcessScopedMap, ot as parseByteSize, rr as getProcessStartTime } from "./auth-profiles-
|
|
3
|
+
import { M as loadConfig, at as parseDurationMs, ir as isPidAlive, nr as resolveProcessScopedMap, ot as parseByteSize, rr as getProcessStartTime } from "./auth-profiles-Ncv1fyN5.js";
|
|
4
4
|
import { _ as normalizeOptionalAccountId, c as normalizeAgentId, l as normalizeMainKey, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID } from "./session-key-BLprDJYq.js";
|
|
5
5
|
import { p as normalizeE164 } from "./utils-DIzy5B5o.js";
|
|
6
|
-
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-
|
|
6
|
+
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-DXBor-4C.js";
|
|
7
7
|
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-BiM2wKMK.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-CfYBRycO.js";
|
|
9
9
|
import { n as resolveConversationLabel } from "./conversation-label-mOUC6IlY.js";
|
|
10
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
10
|
+
import { r as normalizeChannelId } from "./plugins-BYHJoTB8.js";
|
|
11
11
|
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, t as resolveDefaultSessionStorePath } from "./paths-CFzDnbY4.js";
|
|
12
12
|
import { r as hasInterSessionUserProvenance } from "./input-provenance-BDYpbBeC.js";
|
|
13
13
|
import { n as stripMessageIdHints, o as extractToolCallNames, r as stripInboundMetadata, s as hasToolCall, t as stripEnvelope } from "./chat-envelope-AUuZAcrC.js";
|
|
14
|
-
import { i as writeTextAtomic } from "./json-files-
|
|
14
|
+
import { i as writeTextAtomic } from "./json-files-DrZ4qfxw.js";
|
|
15
15
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-GAEkuGlu.js";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import fs from "node:fs";
|
|
19
|
-
import
|
|
19
|
+
import fs$1 from "node:fs/promises";
|
|
20
20
|
import crypto from "node:crypto";
|
|
21
21
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
22
22
|
|
|
@@ -480,7 +480,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
480
480
|
await held.handle.close();
|
|
481
481
|
} catch {}
|
|
482
482
|
try {
|
|
483
|
-
await
|
|
483
|
+
await fs$1.rm(held.lockPath, { force: true });
|
|
484
484
|
} catch {}
|
|
485
485
|
})();
|
|
486
486
|
try {
|
|
@@ -559,7 +559,7 @@ function registerCleanupHandlers() {
|
|
|
559
559
|
}
|
|
560
560
|
async function readLockPayload(lockPath) {
|
|
561
561
|
try {
|
|
562
|
-
const raw = await
|
|
562
|
+
const raw = await fs$1.readFile(lockPath, "utf8");
|
|
563
563
|
const parsed = JSON.parse(raw);
|
|
564
564
|
const payload = {};
|
|
565
565
|
if (isValidLockNumber(parsed.pid) && parsed.pid > 0) payload.pid = parsed.pid;
|
|
@@ -603,7 +603,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
|
|
|
603
603
|
if (!details.stale) return false;
|
|
604
604
|
if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
|
|
605
605
|
try {
|
|
606
|
-
const stat = await
|
|
606
|
+
const stat = await fs$1.stat(lockPath);
|
|
607
607
|
return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
|
|
608
608
|
} catch (error) {
|
|
609
609
|
return error?.code !== "ENOENT";
|
|
@@ -621,7 +621,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
621
621
|
const nowMs = params.nowMs ?? Date.now();
|
|
622
622
|
let entries = [];
|
|
623
623
|
try {
|
|
624
|
-
entries = await
|
|
624
|
+
entries = await fs$1.readdir(sessionsDir, { withFileTypes: true });
|
|
625
625
|
} catch (err) {
|
|
626
626
|
if (err.code === "ENOENT") return {
|
|
627
627
|
locks: [],
|
|
@@ -640,7 +640,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
640
640
|
removed: false
|
|
641
641
|
};
|
|
642
642
|
if (lockInfo.stale && removeStale) {
|
|
643
|
-
await
|
|
643
|
+
await fs$1.rm(lockPath, { force: true });
|
|
644
644
|
lockInfo.removed = true;
|
|
645
645
|
cleaned.push(lockInfo);
|
|
646
646
|
params.log?.warn?.(`removed stale session lock: ${lockPath} (${lockInfo.staleReasons.join(", ") || "unknown"})`);
|
|
@@ -659,10 +659,10 @@ async function acquireSessionWriteLock(params) {
|
|
|
659
659
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
660
660
|
const sessionFile = path.resolve(params.sessionFile);
|
|
661
661
|
const sessionDir = path.dirname(sessionFile);
|
|
662
|
-
await
|
|
662
|
+
await fs$1.mkdir(sessionDir, { recursive: true });
|
|
663
663
|
let normalizedDir = sessionDir;
|
|
664
664
|
try {
|
|
665
|
-
normalizedDir = await
|
|
665
|
+
normalizedDir = await fs$1.realpath(sessionDir);
|
|
666
666
|
} catch {}
|
|
667
667
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
668
668
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -680,7 +680,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
680
680
|
attempt += 1;
|
|
681
681
|
let handle = null;
|
|
682
682
|
try {
|
|
683
|
-
handle = await
|
|
683
|
+
handle = await fs$1.open(lockPath, "wx");
|
|
684
684
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
685
685
|
const starttime = getProcessStartTime(process.pid);
|
|
686
686
|
const lockPayload = {
|
|
@@ -706,7 +706,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
706
706
|
await handle.close();
|
|
707
707
|
} catch {}
|
|
708
708
|
try {
|
|
709
|
-
await
|
|
709
|
+
await fs$1.rm(lockPath, { force: true });
|
|
710
710
|
} catch {}
|
|
711
711
|
}
|
|
712
712
|
if (err.code !== "EEXIST") throw err;
|
|
@@ -721,7 +721,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
721
721
|
stale: true,
|
|
722
722
|
staleReasons: inspected.staleReasons.includes("orphan-self-pid") ? inspected.staleReasons : [...inspected.staleReasons, "orphan-self-pid"]
|
|
723
723
|
} : inspected, staleMs, nowMs)) {
|
|
724
|
-
await
|
|
724
|
+
await fs$1.rm(lockPath, { force: true });
|
|
725
725
|
continue;
|
|
726
726
|
}
|
|
727
727
|
const delay = Math.min(1e3, 50 * attempt);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { f as isRich, n as info, p as theme } from "./globals-B68W7uN8.js";
|
|
3
|
-
import { Ai as DEFAULT_MODEL, M as loadConfig, ji as DEFAULT_PROVIDER, ki as DEFAULT_CONTEXT_TOKENS, yr as resolveConfiguredModelRef } from "./auth-profiles-
|
|
4
|
-
import { d as resolveDefaultAgentId, r as listAgentIds } from "./agent-scope-
|
|
3
|
+
import { Ai as DEFAULT_MODEL, M as loadConfig, ji as DEFAULT_PROVIDER, ki as DEFAULT_CONTEXT_TOKENS, yr as resolveConfiguredModelRef } from "./auth-profiles-Ncv1fyN5.js";
|
|
4
|
+
import { d as resolveDefaultAgentId, r as listAgentIds } from "./agent-scope-CJelRKYY.js";
|
|
5
5
|
import { T as parseAgentSessionKey, c as normalizeAgentId } from "./session-key-BLprDJYq.js";
|
|
6
|
-
import { X as resolveFreshSessionTotalTokens, o as loadSessionStore } from "./sessions-
|
|
6
|
+
import { X as resolveFreshSessionTotalTokens, o as loadSessionStore } from "./sessions-ChAmoyIS.js";
|
|
7
7
|
import { c as resolveStorePath } from "./paths-CFzDnbY4.js";
|
|
8
8
|
import { n as formatTimeAgo } from "./format-relative-DdvuDKIv.js";
|
|
9
|
-
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-
|
|
9
|
+
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-DdRL6aoq.js";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/session-store-targets.ts
|
|
12
12
|
function dedupeTargetsByStorePath(targets) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as defaultRuntime } from "./subsystem-DjdBljTA.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
3
3
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-CVdMnAs9.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-D_q10odK.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
const toOptionString = (value) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as readConfigFileSnapshot, R as writeConfigFile, Sr as resolveModelRefFromString, fr as modelKey, ji as DEFAULT_PROVIDER, sr as buildModelAliasIndex } from "./auth-profiles-
|
|
1
|
+
import { P as readConfigFileSnapshot, R as writeConfigFile, Sr as resolveModelRefFromString, fr as modelKey, ji as DEFAULT_PROVIDER, sr as buildModelAliasIndex } from "./auth-profiles-Ncv1fyN5.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
3
|
-
import { r as listAgentIds, v as toAgentModelListLike } from "./agent-scope-
|
|
3
|
+
import { r as listAgentIds, v as toAgentModelListLike } from "./agent-scope-CJelRKYY.js";
|
|
4
4
|
import { c as normalizeAgentId } from "./session-key-BLprDJYq.js";
|
|
5
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
5
|
+
import { n as formatConfigIssueLines } from "./issue-format-Bm-71lmf.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/models/shared.ts
|
|
8
8
|
const ensureFlagCompatibility = (opts) => {
|