@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
|
@@ -3,12 +3,12 @@ import { g as resolveStateDir, i as isNixMode, l as resolveGatewayLockDir, o as
|
|
|
3
3
|
import { a as setConsoleSubsystemFilter, d as defaultRuntime, n as runtimeForLogger, o as setConsoleTimestampPrefix, t as createSubsystemLogger } from "./subsystem-DjdBljTA.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { i as logAcceptedEnvOption, r as isTruthyEnvValue } from "./entry.js";
|
|
6
|
-
import { Ai as DEFAULT_MODEL, B as OpenClawSchema, Er as resolveThinkingDefault, F as readConfigFileSnapshotForWrite, Fn as resolveSubagentMaxConcurrent, I as resolveConfigSnapshotHash, Jn as loadAuthProfileStoreForRuntime, M as loadConfig, Mn as buildTalkConfigResponse, N as parseConfigJson5, P as readConfigFileSnapshot, Pn as resolveAgentMaxConcurrent, R as writeConfigFile, Si as normalizeSecretInput, St as AVATAR_MAX_BYTES, Tt as isAvatarImageDataUrl, Un as upsertAuthProfile, _r as resolveAllowedModelRef, ai as resolveApiKeyForProvider, ar as buildAllowedModelSet, at as parseDurationMs, bn as applyLegacyMigrations, br as resolveDefaultModelForAgent, dr as isCliProvider, ir as isPidAlive, j as createConfigIO, ji as DEFAULT_PROVIDER, k as migrateLegacyConfig, ki as DEFAULT_CONTEXT_TOKENS, kt as looksLikeAvatarPath, l as resolveApiKeyForProfile, lr as getModelRefStatus, mr as normalizeModelSelection, ot as parseByteSize, wr as resolveSubagentConfiguredModelSelection, wt as isAvatarHttpUrl, xi as normalizeOptionalSecretInput, xn as ensureControlUiAllowedOriginsForNonLoopbackBind, xr as resolveHooksGmailModel, yn as applyMergePatch, yr as resolveConfiguredModelRef, z as validateConfigObjectWithPlugins } from "./auth-profiles-
|
|
6
|
+
import { Ai as DEFAULT_MODEL, B as OpenClawSchema, Er as resolveThinkingDefault, F as readConfigFileSnapshotForWrite, Fn as resolveSubagentMaxConcurrent, I as resolveConfigSnapshotHash, Jn as loadAuthProfileStoreForRuntime, M as loadConfig, Mn as buildTalkConfigResponse, N as parseConfigJson5, P as readConfigFileSnapshot, Pn as resolveAgentMaxConcurrent, R as writeConfigFile, Si as normalizeSecretInput, St as AVATAR_MAX_BYTES, Tt as isAvatarImageDataUrl, Un as upsertAuthProfile, _r as resolveAllowedModelRef, ai as resolveApiKeyForProvider, ar as buildAllowedModelSet, at as parseDurationMs, bn as applyLegacyMigrations, br as resolveDefaultModelForAgent, dr as isCliProvider, ir as isPidAlive, j as createConfigIO, ji as DEFAULT_PROVIDER, k as migrateLegacyConfig, ki as DEFAULT_CONTEXT_TOKENS, kt as looksLikeAvatarPath, l as resolveApiKeyForProfile, lr as getModelRefStatus, mr as normalizeModelSelection, ot as parseByteSize, wr as resolveSubagentConfiguredModelSelection, wt as isAvatarHttpUrl, xi as normalizeOptionalSecretInput, xn as ensureControlUiAllowedOriginsForNonLoopbackBind, xr as resolveHooksGmailModel, yn as applyMergePatch, yr as resolveConfiguredModelRef, z as validateConfigObjectWithPlugins } from "./auth-profiles-Ncv1fyN5.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-CVXyxgq3.js";
|
|
8
|
-
import { a as resolveAgentDir, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, i as resolveAgentConfig, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, n as listAgentEntries, r as listAgentIds, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
8
|
+
import { a as resolveAgentDir, c as resolveAgentModelFallbacksOverride, d as resolveDefaultAgentId, i as resolveAgentConfig, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, n as listAgentEntries, r as listAgentIds, u as resolveAgentWorkspaceDir } from "./agent-scope-CJelRKYY.js";
|
|
9
9
|
import { S as isCronRunSessionKey, T as parseAgentSessionKey, c as normalizeAgentId, g as normalizeAccountId$1, h as DEFAULT_ACCOUNT_ID, l as normalizeMainKey, m as toAgentStoreSessionKey, o as classifySessionKeyShape, p as toAgentRequestSessionKey, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, w as isSubagentSessionKey } from "./session-key-BLprDJYq.js";
|
|
10
10
|
import { E as isPlainObject, T as truncateUtf16Safe, n as clamp, s as ensureDir, v as resolveUserPath, x as shortenHomePath } from "./utils-DIzy5B5o.js";
|
|
11
|
-
import { A as isNotFoundPathError, C as openBoundaryFileSync, P as matchesSkillFilter, S as openBoundaryFile, T as sameFileIdentity, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_SOUL_FILENAME, d as ensureAgentWorkspace, h as resolveDefaultAgentWorkspaceDir, i as DEFAULT_HEARTBEAT_FILENAME, l as DEFAULT_TOOLS_FILENAME, o as DEFAULT_MEMORY_ALT_FILENAME, p as isWorkspaceOnboardingCompleted, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_MEMORY_FILENAME, t as DEFAULT_AGENTS_FILENAME, u as DEFAULT_USER_FILENAME, v as resolveWorkspaceTemplateDir, w as openVerifiedFileSync, y as resolveOpenClawPackageRoot } from "./workspace-
|
|
11
|
+
import { A as isNotFoundPathError, C as openBoundaryFileSync, P as matchesSkillFilter, S as openBoundaryFile, T as sameFileIdentity, a as DEFAULT_IDENTITY_FILENAME, c as DEFAULT_SOUL_FILENAME, d as ensureAgentWorkspace, h as resolveDefaultAgentWorkspaceDir, i as DEFAULT_HEARTBEAT_FILENAME, l as DEFAULT_TOOLS_FILENAME, o as DEFAULT_MEMORY_ALT_FILENAME, p as isWorkspaceOnboardingCompleted, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_MEMORY_FILENAME, t as DEFAULT_AGENTS_FILENAME, u as DEFAULT_USER_FILENAME, v as resolveWorkspaceTemplateDir, w as openVerifiedFileSync, y as resolveOpenClawPackageRoot } from "./workspace-BHfqkuYN.js";
|
|
12
12
|
import { i as logWarn, t as logDebug } from "./logger-BJMfryJd.js";
|
|
13
13
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-CEAvKSx9.js";
|
|
14
14
|
import "./github-copilot-token-CulJ9J5l.js";
|
|
@@ -16,163 +16,163 @@ import "./host-env-security-CJMD0__Z.js";
|
|
|
16
16
|
import { n as resolveRuntimeServiceVersion, t as VERSION } from "./version-CGDNfh5C.js";
|
|
17
17
|
import "./env-vars-Dw0EwyGP.js";
|
|
18
18
|
import { C as clearInternalHooks, E as triggerInternalHook, T as registerInternalHook, h as createEmptyPluginRegistry, t as CHANNEL_IDS, u as getActivePluginRegistry, w as createInternalHookEvent } from "./registry-7fg1BnMw.js";
|
|
19
|
-
import { u as isTestDefaultMemorySlotDisabled } from "./manifest-registry-
|
|
20
|
-
import "./dock-
|
|
21
|
-
import "./model-
|
|
22
|
-
import "./pi-model-discovery-
|
|
19
|
+
import { u as isTestDefaultMemorySlotDisabled } from "./manifest-registry-Kbw8YPsZ.js";
|
|
20
|
+
import "./dock-DXBor-4C.js";
|
|
21
|
+
import "./model-D49_t4Rw.js";
|
|
22
|
+
import "./pi-model-discovery-B7QZQW84.js";
|
|
23
23
|
import { d as hasBinary } from "./frontmatter-I4t5UjzX.js";
|
|
24
|
-
import { c as resolveBundledSkillsDir, i as loadWorkspaceSkillEntries, r as buildWorkspaceSkillSnapshot } from "./skills-
|
|
25
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
26
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
24
|
+
import { c as resolveBundledSkillsDir, i as loadWorkspaceSkillEntries, r as buildWorkspaceSkillSnapshot } from "./skills-CqO2kuTQ.js";
|
|
25
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-CwNBr-6E.js";
|
|
26
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-C1TG3OK0.js";
|
|
27
27
|
import { _ as normalizeGatewayClientMode, f as GATEWAY_CLIENT_CAPS, g as hasGatewayClientCap, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, p as GATEWAY_CLIENT_IDS, r as isGatewayCliClient, s as isWebchatClient, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BiM2wKMK.js";
|
|
28
|
-
import { $ as resolveAgentMainSessionKey, A as readSessionPreviewItemsFromTranscript, B as cleanStaleLockFiles, C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, G as resolveSessionResetPolicy, I as stripInlineDirectiveTagsForDisplay, L as stripInlineDirectiveTagsFromMessageForDisplay, M as resolveSessionTranscriptCandidates, N as stripEnvelopeFromMessage, O as cleanupArchivedSessionTranscripts, P as stripEnvelopeFromMessages, Q as canonicalizeMainSessionAlias, R as jsonUtf8Bytes, T as archiveFileOnDisk, U as evaluateSessionFreshness, Y as mergeSessionEntry, Z as setSessionRuntimeModel, d as updateSessionStore, et as resolveExplicitAgentSessionKey, it as snapshotSessionOrigin, k as readSessionMessages, n as parseSessionThreadInfo, nt as resolveMainSessionKeyFromConfig, o as loadSessionStore, t as extractDeliveryInfo, tt as resolveMainSessionKey, x as mergeDeliveryContext, y as deliveryContextFromSession } from "./sessions-
|
|
29
|
-
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin, v as normalizeWhatsAppTarget } from "./plugins-
|
|
30
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
31
|
-
import "./accounts-
|
|
28
|
+
import { $ as resolveAgentMainSessionKey, A as readSessionPreviewItemsFromTranscript, B as cleanStaleLockFiles, C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, G as resolveSessionResetPolicy, I as stripInlineDirectiveTagsForDisplay, L as stripInlineDirectiveTagsFromMessageForDisplay, M as resolveSessionTranscriptCandidates, N as stripEnvelopeFromMessage, O as cleanupArchivedSessionTranscripts, P as stripEnvelopeFromMessages, Q as canonicalizeMainSessionAlias, R as jsonUtf8Bytes, T as archiveFileOnDisk, U as evaluateSessionFreshness, Y as mergeSessionEntry, Z as setSessionRuntimeModel, d as updateSessionStore, et as resolveExplicitAgentSessionKey, it as snapshotSessionOrigin, k as readSessionMessages, n as parseSessionThreadInfo, nt as resolveMainSessionKeyFromConfig, o as loadSessionStore, t as extractDeliveryInfo, tt as resolveMainSessionKey, x as mergeDeliveryContext, y as deliveryContextFromSession } from "./sessions-ChAmoyIS.js";
|
|
29
|
+
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin, v as normalizeWhatsAppTarget } from "./plugins-BYHJoTB8.js";
|
|
30
|
+
import { i as resolveWhatsAppAccount } from "./accounts-ESSExMvC.js";
|
|
31
|
+
import "./accounts-Dr4JgFGK.js";
|
|
32
32
|
import "./logging-CcxUDNcI.js";
|
|
33
|
-
import "./accounts-
|
|
34
|
-
import { t as buildChannelAccountBindings } from "./bindings-
|
|
35
|
-
import "./send-
|
|
36
|
-
import "./send-
|
|
37
|
-
import { $n as normalizeSendPolicy, $t as isExternalHookSession, A as agentCommandFromIngress, Ar as waitForActiveTasks, At as formatRestartSentinelMessage, Br as onAgentEvent, Bt as normalizeOptionalSessionKey, C as readJsonBodyWithLimit, Cr as OPENAI_TTS_VOICES, D as sleepWithAbort, Dn as formatZonedTimestamp, Dr as markGatewayDraining, E as computeBackoff, Er as getTotalQueueSize, Et as runWithModelFallback, F as createDefaultDeps, Fn as isSystemEventContextChanged, Ft as normalizeHttpWebhookUrl, Gn as DEFAULT_INPUT_IMAGE_MIMES, Gt as buildDeliveryFromLegacyPayload, Ht as normalizePayloadToSystemText, I as createOutboundSendDeps$1, Ir as stripHeartbeatToken, It as normalizeCronJobCreate, Jn as extractFileContentFromSource, Kn as DEFAULT_INPUT_MAX_REDIRECTS, Kt as hasLegacyDeliveryHints, L as resolveAgentAvatar, Lr as clearAgentRunContext, Lt as normalizeCronJobPatch, M as resolveAgentDeliveryPlan, Mr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Mt as summarizeRestartSentinel, N as resolveAgentOutboundTarget, Or as resetAllLanes, Ot as consumeRestartSentinel, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Pt as writeRestartSentinel, Qn as resolveAgentTimeoutMs, Qt as getHookType, Rn as requestHeartbeatNow, Rr as emitAgentEvent, Rt as inferLegacyName, S as handleSlackHttpRequest, Sn as loadProviderUsageSummary, Sr as OPENAI_TTS_MODELS, St as resolveOutboundChannelPlugin, Un as ACP_SESSION_IDENTITY_RENDERER_VERSION, Ut as normalizeRequiredName, Vr as registerAgentRunContext, Vt as normalizeOptionalText, W as buildHistoryContextFromEntries, Wn as DEFAULT_INPUT_IMAGE_MAX_BYTES, Wt as migrateLegacyCronPayload, Xn as normalizeMimeList, Xt as buildSafeExternalPrompt, Yn as extractImageContentFromSource, Zn as resolveInputFileLimits, Zt as detectSuspiciousPatterns, _ as loadOpenClawPlugins, _n as setPreRestartDeferralCheck, _r as resolveTtsPrefsPath, _t as resolveOutboundSessionRoute, a as runSubagentAnnounceFlow, b as resolveAgentOutboundIdentity, bn as normalizeGroupActivation, br as setTtsProvider, bt as resolveOutboundTarget, c as abortEmbeddedPiRun, cn as parseVerboseOverride, cr as resolveAgentSessionDirs, ct as resolveCronStyleNow, d as applyToolPolicyPipeline, dn as deferGatewayRestartUntilIdle, dr as getTtsProvider, dt as runCliAgent, en as applyBrowserProxyPaths, er as resolveSendPolicy, f as buildDefaultToolPolicyPipelineSteps, fn as emitGatewayRestart, fr as isTtsEnabled, ft as createOpenClawTools, gn as setGatewaySigusr1RestartPolicy, gr as resolveTtsConfig, gt as ensureOutboundSessionEntry, h as resolvePluginTools, hn as scheduleGatewaySigusr1Restart, hr as resolveTtsAutoMode, ir as stopSubagentsForRequester, jr as CommandLane, kr as setCommandLaneConcurrency, kt as formatDoctorNonInteractiveHint, l as getActiveEmbeddedRunCount, ln as buildOutboundSessionContext, lr as resolveUserTimezone, lt as getCliSessionId, m as getPluginToolMeta, mn as markGatewaySigusr1RestartHandled, mr as resolveTtsApiKey, mt as resolveAnnounceTargetFromKey, n as initSubagentRegistry, nn as resolveSessionAuthProfileOverride, nt as createReplyDispatcher, o as clearSessionQueues, on as applyModelOverrideToSessionEntry, ot as BARE_SESSION_RESET_PROMPT, pn as isGatewaySigusr1RestartExternallyAllowed, pr as isTtsProviderConfigured, pt as readLatestAssistantReply, qn as DEFAULT_INPUT_TIMEOUT_MS, qt as stripLegacyDeliveryFields, r as listDescendantRunsForRequester, rr as isAbortRequestText, rt as getTotalPendingReplies, s as runEmbeddedPiAgent, sn as applyVerboseOverride, sr as getAcpSessionManager, t as countActiveDescendantRuns, tn as persistBrowserProxyFiles, tt as dispatchInboundMessage, u as waitForEmbeddedPiRunEnd, un as consumeGatewaySigusr1RestartAuthorization, ur as clearBootstrapSnapshot, ut as setCliSessionId, v as createPluginRuntime, vn as triggerOpenClawRestart, vr as resolveTtsProviderOrder, w as requestBodyErrorToText, wr as getActiveTaskCount, wt as resetDirectoryCache, xr as textToSpeech, xt as resolveSessionDeliveryTarget, yn as unbindThreadBindingsBySessionKey, yr as setTtsEnabled, zr as getAgentRunContext, zt as normalizeOptionalAgentId } from "./subagent-registry-
|
|
33
|
+
import "./accounts-C0g5--0e.js";
|
|
34
|
+
import { t as buildChannelAccountBindings } from "./bindings-C2tByF8e.js";
|
|
35
|
+
import "./send-BaweV9LV.js";
|
|
36
|
+
import "./send-aCOVuBQ6.js";
|
|
37
|
+
import { $n as normalizeSendPolicy, $t as isExternalHookSession, A as agentCommandFromIngress, Ar as waitForActiveTasks, At as formatRestartSentinelMessage, Br as onAgentEvent, Bt as normalizeOptionalSessionKey, C as readJsonBodyWithLimit, Cr as OPENAI_TTS_VOICES, D as sleepWithAbort, Dn as formatZonedTimestamp, Dr as markGatewayDraining, E as computeBackoff, Er as getTotalQueueSize, Et as runWithModelFallback, F as createDefaultDeps, Fn as isSystemEventContextChanged, Ft as normalizeHttpWebhookUrl, Gn as DEFAULT_INPUT_IMAGE_MIMES, Gt as buildDeliveryFromLegacyPayload, Ht as normalizePayloadToSystemText, I as createOutboundSendDeps$1, Ir as stripHeartbeatToken, It as normalizeCronJobCreate, Jn as extractFileContentFromSource, Kn as DEFAULT_INPUT_MAX_REDIRECTS, Kt as hasLegacyDeliveryHints, L as resolveAgentAvatar, Lr as clearAgentRunContext, Lt as normalizeCronJobPatch, M as resolveAgentDeliveryPlan, Mr as DEFAULT_HEARTBEAT_ACK_MAX_CHARS, Mt as summarizeRestartSentinel, N as resolveAgentOutboundTarget, Or as resetAllLanes, Ot as consumeRestartSentinel, P as createOutboundSendDeps, Pn as enqueueSystemEvent, Pt as writeRestartSentinel, Qn as resolveAgentTimeoutMs, Qt as getHookType, Rn as requestHeartbeatNow, Rr as emitAgentEvent, Rt as inferLegacyName, S as handleSlackHttpRequest, Sn as loadProviderUsageSummary, Sr as OPENAI_TTS_MODELS, St as resolveOutboundChannelPlugin, Un as ACP_SESSION_IDENTITY_RENDERER_VERSION, Ut as normalizeRequiredName, Vr as registerAgentRunContext, Vt as normalizeOptionalText, W as buildHistoryContextFromEntries, Wn as DEFAULT_INPUT_IMAGE_MAX_BYTES, Wt as migrateLegacyCronPayload, Xn as normalizeMimeList, Xt as buildSafeExternalPrompt, Yn as extractImageContentFromSource, Zn as resolveInputFileLimits, Zt as detectSuspiciousPatterns, _ as loadOpenClawPlugins, _n as setPreRestartDeferralCheck, _r as resolveTtsPrefsPath, _t as resolveOutboundSessionRoute, a as runSubagentAnnounceFlow, b as resolveAgentOutboundIdentity, bn as normalizeGroupActivation, br as setTtsProvider, bt as resolveOutboundTarget, c as abortEmbeddedPiRun, cn as parseVerboseOverride, cr as resolveAgentSessionDirs, ct as resolveCronStyleNow, d as applyToolPolicyPipeline, dn as deferGatewayRestartUntilIdle, dr as getTtsProvider, dt as runCliAgent, en as applyBrowserProxyPaths, er as resolveSendPolicy, f as buildDefaultToolPolicyPipelineSteps, fn as emitGatewayRestart, fr as isTtsEnabled, ft as createOpenClawTools, gn as setGatewaySigusr1RestartPolicy, gr as resolveTtsConfig, gt as ensureOutboundSessionEntry, h as resolvePluginTools, hn as scheduleGatewaySigusr1Restart, hr as resolveTtsAutoMode, ir as stopSubagentsForRequester, jr as CommandLane, kr as setCommandLaneConcurrency, kt as formatDoctorNonInteractiveHint, l as getActiveEmbeddedRunCount, ln as buildOutboundSessionContext, lr as resolveUserTimezone, lt as getCliSessionId, m as getPluginToolMeta, mn as markGatewaySigusr1RestartHandled, mr as resolveTtsApiKey, mt as resolveAnnounceTargetFromKey, n as initSubagentRegistry, nn as resolveSessionAuthProfileOverride, nt as createReplyDispatcher, o as clearSessionQueues, on as applyModelOverrideToSessionEntry, ot as BARE_SESSION_RESET_PROMPT, pn as isGatewaySigusr1RestartExternallyAllowed, pr as isTtsProviderConfigured, pt as readLatestAssistantReply, qn as DEFAULT_INPUT_TIMEOUT_MS, qt as stripLegacyDeliveryFields, r as listDescendantRunsForRequester, rr as isAbortRequestText, rt as getTotalPendingReplies, s as runEmbeddedPiAgent, sn as applyVerboseOverride, sr as getAcpSessionManager, t as countActiveDescendantRuns, tn as persistBrowserProxyFiles, tt as dispatchInboundMessage, u as waitForEmbeddedPiRunEnd, un as consumeGatewaySigusr1RestartAuthorization, ur as clearBootstrapSnapshot, ut as setCliSessionId, v as createPluginRuntime, vn as triggerOpenClawRestart, vr as resolveTtsProviderOrder, w as requestBodyErrorToText, wr as getActiveTaskCount, wt as resetDirectoryCache, xr as textToSpeech, xt as resolveSessionDeliveryTarget, yn as unbindThreadBindingsBySessionKey, yr as setTtsEnabled, zr as getAgentRunContext, zt as normalizeOptionalAgentId } from "./subagent-registry-D4xGq2uc.js";
|
|
38
38
|
import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, s as resolveSessionTranscriptsDirForAgent } from "./paths-CFzDnbY4.js";
|
|
39
39
|
import { i as normalizeInputProvenance } from "./input-provenance-BDYpbBeC.js";
|
|
40
40
|
import "./chat-envelope-AUuZAcrC.js";
|
|
41
|
-
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-
|
|
42
|
-
import { $ as validateNodePairApproveParams, $t as roleScopesAllow, A as validateCronStatusParams, At as validateWizardStartParams, B as validateExecApprovalsGetParams, C as validateConfigSetParams, Ct as validateToolsCatalogParams, D as validateCronRemoveParams, Dt as validateWebLoginWaitParams, E as validateCronListParams, Et as validateWebLoginStartParams, F as validateDevicePairRemoveParams, G as validateModelsAuthSetParams, Gt as rejectDevicePairing, H as validateExecApprovalsNodeSetParams, Ht as ensureDeviceToken, I as validateDeviceTokenRevokeParams, It as parseSessionLabel, J as validateNodeDescribeParams, Jt as revokeDeviceToken, K as validateModelsListParams, Kt as removePairedDevice, L as validateDeviceTokenRotateParams, Lt as buildDeviceAuthPayload, M as validateDevicePairApproveParams, Mt as PROTOCOL_VERSION, N as validateDevicePairListParams, Nt as ErrorCodes, O as validateCronRunParams, Ot as validateWizardCancelParams, P as validateDevicePairRejectParams, Pt as errorShape, Q as validateNodeListParams, Qt as verifyDeviceToken, R as validateExecApprovalRequestParams, Rt as buildDeviceAuthPayloadV3, S as validateConfigSchemaParams, St as validateTalkModeParams, T as validateCronAddParams, Tt as validateWakeParams, U as validateExecApprovalsSetParams, Ut as getPairedDevice, V as validateExecApprovalsNodeGetParams, Vt as approveDevicePairing, W as validateLogsTailParams, Wt as listDevicePairing, X as validateNodeInvokeParams, Xt as summarizeDeviceTokens, Y as validateNodeEventParams, Yt as rotateDeviceToken, Z as validateNodeInvokeResultParams, Zt as updatePairedDeviceMetadata, _ as validateChatInjectParams, _t as validateSkillsBinsParams, a as validateAgentWaitParams, at as validatePollParams, b as validateConfigGetParams, bt as validateSkillsUpdateParams, c as validateAgentsFilesGetParams, ct as validateSendParams, d as validateAgentsListParams, dt as validateSessionsListParams, et as validateNodePairListParams, f as validateAgentsUpdateParams, ft as validateSessionsPatchParams, g as validateChatHistoryParams, gt as validateSessionsUsageParams, h as validateChatAbortParams, ht as validateSessionsResolveParams, i as validateAgentParams, in as verifyDeviceSignature, it as validateNodeRenameParams, j as validateCronUpdateParams, jt as validateWizardStatusParams, k as validateCronRunsParams, kt as validateWizardNextParams, l as validateAgentsFilesListParams, lt as validateSessionsCompactParams, m as validateChannelsStatusParams, mt as validateSessionsResetParams, n as formatValidationErrors, nt as validateNodePairRequestParams, o as validateAgentsCreateParams, ot as validatePushTestParams, p as validateChannelsLogoutParams, pt as validateSessionsPreviewParams, q as validateModelsVerifyParams, qt as requestDevicePairing, r as validateAgentIdentityParams, rn as normalizeDevicePublicKeyBase64Url, rt as validateNodePairVerifyParams, s as validateAgentsDeleteParams, st as validateRequestFrame, tn as deriveDeviceIdFromPublicKey, tt as validateNodePairRejectParams, u as validateAgentsFilesSetParams, ut as validateSessionsDeleteParams, v as validateChatSendParams, vt as validateSkillsInstallParams, w as validateConnectParams, wt as validateUpdateRunParams, x as validateConfigPatchParams, xt as validateTalkConfigParams, y as validateConfigApplyParams, yt as validateSkillsStatusParams, z as validateExecApprovalResolveParams, zt as normalizeDeviceMetadataForAuth } from "./client-
|
|
43
|
-
import { f as loadGatewayTlsRuntime$1, l as authorizeOperatorScopesForMethod, n as callGateway, s as ADMIN_SCOPE$3, u as isNodeRoleMethod } from "./call-
|
|
41
|
+
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-DrZ4qfxw.js";
|
|
42
|
+
import { $ as validateNodePairApproveParams, $t as roleScopesAllow, A as validateCronStatusParams, At as validateWizardStartParams, B as validateExecApprovalsGetParams, C as validateConfigSetParams, Ct as validateToolsCatalogParams, D as validateCronRemoveParams, Dt as validateWebLoginWaitParams, E as validateCronListParams, Et as validateWebLoginStartParams, F as validateDevicePairRemoveParams, G as validateModelsAuthSetParams, Gt as rejectDevicePairing, H as validateExecApprovalsNodeSetParams, Ht as ensureDeviceToken, I as validateDeviceTokenRevokeParams, It as parseSessionLabel, J as validateNodeDescribeParams, Jt as revokeDeviceToken, K as validateModelsListParams, Kt as removePairedDevice, L as validateDeviceTokenRotateParams, Lt as buildDeviceAuthPayload, M as validateDevicePairApproveParams, Mt as PROTOCOL_VERSION, N as validateDevicePairListParams, Nt as ErrorCodes, O as validateCronRunParams, Ot as validateWizardCancelParams, P as validateDevicePairRejectParams, Pt as errorShape, Q as validateNodeListParams, Qt as verifyDeviceToken, R as validateExecApprovalRequestParams, Rt as buildDeviceAuthPayloadV3, S as validateConfigSchemaParams, St as validateTalkModeParams, T as validateCronAddParams, Tt as validateWakeParams, U as validateExecApprovalsSetParams, Ut as getPairedDevice, V as validateExecApprovalsNodeGetParams, Vt as approveDevicePairing, W as validateLogsTailParams, Wt as listDevicePairing, X as validateNodeInvokeParams, Xt as summarizeDeviceTokens, Y as validateNodeEventParams, Yt as rotateDeviceToken, Z as validateNodeInvokeResultParams, Zt as updatePairedDeviceMetadata, _ as validateChatInjectParams, _t as validateSkillsBinsParams, a as validateAgentWaitParams, at as validatePollParams, b as validateConfigGetParams, bt as validateSkillsUpdateParams, c as validateAgentsFilesGetParams, ct as validateSendParams, d as validateAgentsListParams, dt as validateSessionsListParams, et as validateNodePairListParams, f as validateAgentsUpdateParams, ft as validateSessionsPatchParams, g as validateChatHistoryParams, gt as validateSessionsUsageParams, h as validateChatAbortParams, ht as validateSessionsResolveParams, i as validateAgentParams, in as verifyDeviceSignature, it as validateNodeRenameParams, j as validateCronUpdateParams, jt as validateWizardStatusParams, k as validateCronRunsParams, kt as validateWizardNextParams, l as validateAgentsFilesListParams, lt as validateSessionsCompactParams, m as validateChannelsStatusParams, mt as validateSessionsResetParams, n as formatValidationErrors, nt as validateNodePairRequestParams, o as validateAgentsCreateParams, ot as validatePushTestParams, p as validateChannelsLogoutParams, pt as validateSessionsPreviewParams, q as validateModelsVerifyParams, qt as requestDevicePairing, r as validateAgentIdentityParams, rn as normalizeDevicePublicKeyBase64Url, rt as validateNodePairVerifyParams, s as validateAgentsDeleteParams, st as validateRequestFrame, tn as deriveDeviceIdFromPublicKey, tt as validateNodePairRejectParams, u as validateAgentsFilesSetParams, ut as validateSessionsDeleteParams, v as validateChatSendParams, vt as validateSkillsInstallParams, w as validateConnectParams, wt as validateUpdateRunParams, x as validateConfigPatchParams, xt as validateTalkConfigParams, y as validateConfigApplyParams, yt as validateSkillsStatusParams, z as validateExecApprovalResolveParams, zt as normalizeDeviceMetadataForAuth } from "./client-D3Y8sx9i.js";
|
|
43
|
+
import { f as loadGatewayTlsRuntime$1, l as authorizeOperatorScopesForMethod, n as callGateway, s as ADMIN_SCOPE$3, u as isNodeRoleMethod } from "./call-BolSRDlL.js";
|
|
44
44
|
import "./pairing-token-BsirnXyL.js";
|
|
45
45
|
import { t as safeEqualSecret } from "./secret-equal-CzmdvIUc.js";
|
|
46
|
-
import { a as isTrustedProxyAddress, c as pickPrimaryLanIPv4, d as resolveGatewayListenHosts, f as rawDataToString, l as resolveClientIp, n as isLoopbackAddress, o as isValidIPv4, r as isLoopbackHost, s as normalizeHostHeader, t as isLocalishHost, u as resolveGatewayBindHost } from "./net-
|
|
47
|
-
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-
|
|
46
|
+
import { a as isTrustedProxyAddress, c as pickPrimaryLanIPv4, d as resolveGatewayListenHosts, f as rawDataToString, l as resolveClientIp, n as isLoopbackAddress, o as isValidIPv4, r as isLoopbackHost, s as normalizeHostHeader, t as isLocalishHost, u as resolveGatewayBindHost } from "./net-B6xk1xkz.js";
|
|
47
|
+
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-DcxtJZA8.js";
|
|
48
48
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Cfwlih4q.js";
|
|
49
|
-
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext } from "./with-timeout-
|
|
50
|
-
import { j as runGlobalGatewayStopSafely, k as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-
|
|
51
|
-
import { d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, m as isDiagnosticsEnabled } from "./diagnostic-
|
|
49
|
+
import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext } from "./with-timeout-DbFn1lEx.js";
|
|
50
|
+
import { j as runGlobalGatewayStopSafely, k as getGlobalHookRunner, o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads } from "./deliver-DRKtTsvj.js";
|
|
51
|
+
import { d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, m as isDiagnosticsEnabled } from "./diagnostic-D2YBqJR0.js";
|
|
52
52
|
import "./diagnostic-session-state-B5Z0I32_.js";
|
|
53
|
-
import { S as saveCronStore, b as loadCronStore, x as resolveCronStorePath } from "./send-
|
|
54
|
-
import { c as detectMime } from "./image-ops-
|
|
55
|
-
import "./pi-embedded-helpers-
|
|
56
|
-
import { C as resolveToolProfilePolicy, _ as collectExplicitAllowlist, y as mergeAlsoAllowPolicy } from "./sandbox-
|
|
53
|
+
import { S as saveCronStore, b as loadCronStore, x as resolveCronStorePath } from "./send-CApiXnSH.js";
|
|
54
|
+
import { c as detectMime } from "./image-ops-Di37o6bN.js";
|
|
55
|
+
import "./pi-embedded-helpers-BYOv7Q7E.js";
|
|
56
|
+
import { C as resolveToolProfilePolicy, _ as collectExplicitAllowlist, y as mergeAlsoAllowPolicy } from "./sandbox-FcGYiz2w.js";
|
|
57
57
|
import { i as listCoreToolSections, n as PROFILE_OPTIONS, o as resolveCoreToolProfiles } from "./tool-catalog-CDe8aNjS.js";
|
|
58
|
-
import "./chrome-
|
|
58
|
+
import "./chrome-DNZHZwLH.js";
|
|
59
59
|
import { i as enableTailscaleServe, n as disableTailscaleServe, o as getTailnetHostname, r as enableTailscaleFunnel, t as disableTailscaleFunnel } from "./tailscale-BVIS18LB.js";
|
|
60
|
-
import { a as resolveGatewayAuth, c as AUTH_RATE_LIMIT_SCOPE_SHARED_SECRET, i as isLocalDirectRequest, l as createAuthRateLimiter, n as authorizeHttpGatewayConnect, o as AUTH_RATE_LIMIT_SCOPE_DEVICE_TOKEN, r as authorizeWsControlUiGatewayConnect, s as AUTH_RATE_LIMIT_SCOPE_HOOK_AUTH, t as assertGatewayAuthConfigured, u as normalizeRateLimitClientIp } from "./auth-
|
|
61
|
-
import { l as ensureGatewayStartupAuth, u as mergeGatewayTailscaleConfig } from "./server-context-
|
|
62
|
-
import "./paths-
|
|
60
|
+
import { a as resolveGatewayAuth, c as AUTH_RATE_LIMIT_SCOPE_SHARED_SECRET, i as isLocalDirectRequest, l as createAuthRateLimiter, n as authorizeHttpGatewayConnect, o as AUTH_RATE_LIMIT_SCOPE_DEVICE_TOKEN, r as authorizeWsControlUiGatewayConnect, s as AUTH_RATE_LIMIT_SCOPE_HOOK_AUTH, t as assertGatewayAuthConfigured, u as normalizeRateLimitClientIp } from "./auth-CzuZwE7M.js";
|
|
61
|
+
import { l as ensureGatewayStartupAuth, u as mergeGatewayTailscaleConfig } from "./server-context-CEq3QrPf.js";
|
|
62
|
+
import "./paths-C2VtkO4T.js";
|
|
63
63
|
import { a as testRegexWithBoundedInput, i as compileSafeRegex } from "./redact-C54hrUru.js";
|
|
64
64
|
import { o as isErrno, r as formatErrorMessage } from "./errors-vO-8U3CP.js";
|
|
65
|
-
import { i as openFileWithinRoot, l as writeFileWithinRoot, s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
66
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
67
|
-
import "./store-
|
|
68
|
-
import { n as inspectPortUsage, o as formatPortDiagnostics, t as ensurePortAvailable } from "./ports-
|
|
65
|
+
import { i as openFileWithinRoot, l as writeFileWithinRoot, s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-Bbp_1S9D.js";
|
|
66
|
+
import { n as SsrFBlockedError } from "./proxy-env-B3cJLAXi.js";
|
|
67
|
+
import "./store-H4Sy0kJE.js";
|
|
68
|
+
import { n as inspectPortUsage, o as formatPortDiagnostics, t as ensurePortAvailable } from "./ports-Bjm5w0DD.js";
|
|
69
69
|
import { t as movePathToTrash } from "./trash-3chEdbRK.js";
|
|
70
|
-
import "./server-middleware-
|
|
71
|
-
import "./tool-images-
|
|
70
|
+
import "./server-middleware-Bm0ro16L.js";
|
|
71
|
+
import "./tool-images-D1tcg9xW.js";
|
|
72
72
|
import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels } from "./thinking-BxCyPtl0.js";
|
|
73
|
-
import "./models-config-
|
|
74
|
-
import "./exec-approvals-allowlist-
|
|
75
|
-
import "./exec-safe-bin-runtime-policy-
|
|
76
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
77
|
-
import "./fetch-
|
|
78
|
-
import { g as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
79
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
80
|
-
import { x as extractTextFromChatContent } from "./image-
|
|
73
|
+
import "./models-config-BJTF5xb7.js";
|
|
74
|
+
import "./exec-approvals-allowlist-BjI4jCdB.js";
|
|
75
|
+
import "./exec-safe-bin-runtime-policy-DJT0CbIu.js";
|
|
76
|
+
import { n as loadModelCatalog } from "./model-catalog-B9xOhfnS.js";
|
|
77
|
+
import "./fetch-Ch8LsU9k.js";
|
|
78
|
+
import { g as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DgoTt2Qi.js";
|
|
79
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-B3dFBAUH.js";
|
|
80
|
+
import { x as extractTextFromChatContent } from "./image-2aQoIIQl.js";
|
|
81
81
|
import "./tool-display-BlfqPjyM.js";
|
|
82
|
-
import "./api-key-rotation-
|
|
82
|
+
import "./api-key-rotation-7AxlAIU7.js";
|
|
83
83
|
import "./proxy-fetch-GMe0fonX.js";
|
|
84
|
-
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
84
|
+
import { a as resolveAgentIdentity, t as createReplyPrefixOptions } from "./reply-prefix-CQi-DNJ_.js";
|
|
85
85
|
import "./chunk-Cct6991k.js";
|
|
86
|
-
import "./markdown-tables-
|
|
87
|
-
import "./ir-
|
|
86
|
+
import "./markdown-tables-B1FRFNMI.js";
|
|
87
|
+
import "./ir-CPt8jJjC.js";
|
|
88
88
|
import "./render-Bwu_WxwA.js";
|
|
89
|
-
import { a as ToolInputError } from "./target-errors-
|
|
90
|
-
import { r as isRestartEnabled } from "./commands-
|
|
91
|
-
import "./commands-registry-
|
|
89
|
+
import { a as ToolInputError } from "./target-errors-B_xyg1kW.js";
|
|
90
|
+
import { r as isRestartEnabled } from "./commands-CvjTbnpO.js";
|
|
91
|
+
import "./commands-registry-CMWIA5nS.js";
|
|
92
92
|
import "./fetch-BAIuE19S.js";
|
|
93
93
|
import "./retry-D-mebgYT.js";
|
|
94
|
-
import { a as readChannelAllowFromStoreSync } from "./pairing-store-
|
|
94
|
+
import { a as readChannelAllowFromStoreSync } from "./pairing-store-DVasdu6J.js";
|
|
95
95
|
import { a as mergeExecApprovalsSocketDefaults, c as readExecApprovalsSnapshot, p as saveExecApprovals, r as ensureExecApprovals, s as normalizeExecApprovals, t as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS } from "./exec-approvals-BdDof9Fq.js";
|
|
96
|
-
import { _ as matchSystemRunApprovalBinding, g as buildSystemRunApprovalBinding, h as resolveSystemRunApprovalRuntimeContext, m as resolveSystemRunApprovalRequestContext, v as missingSystemRunApprovalBinding, y as toSystemRunApprovalMismatchError } from "./nodes-screen-
|
|
97
|
-
import { n as resolveSystemRunCommand } from "./system-run-command
|
|
98
|
-
import { a as loadCombinedSessionStoreForGateway, c as resolveGatewaySessionStoreTarget, i as listSessionsFromStore, l as resolveSessionModelRef, o as loadSessionEntry, r as listAgentsForGateway, s as pruneLegacyStoreKeys, t as canonicalizeSpawnedByForAgent, u as lookupContextTokens } from "./session-utils-
|
|
96
|
+
import { _ as matchSystemRunApprovalBinding, g as buildSystemRunApprovalBinding, h as resolveSystemRunApprovalRuntimeContext, m as resolveSystemRunApprovalRequestContext, v as missingSystemRunApprovalBinding, y as toSystemRunApprovalMismatchError } from "./nodes-screen-DIBoM5tG.js";
|
|
97
|
+
import { n as resolveSystemRunCommand } from "./system-run-command-Bnym6gCM.js";
|
|
98
|
+
import { a as loadCombinedSessionStoreForGateway, c as resolveGatewaySessionStoreTarget, i as listSessionsFromStore, l as resolveSessionModelRef, o as loadSessionEntry, r as listAgentsForGateway, s as pruneLegacyStoreKeys, t as canonicalizeSpawnedByForAgent, u as lookupContextTokens } from "./session-utils-DdRL6aoq.js";
|
|
99
99
|
import { c as hasNonzeroUsage, i as loadSessionUsageTimeSeries, n as loadCostUsageSummary, r as loadSessionCostSummary, s as deriveSessionTotalTokens, t as discoverAllSessions } from "./session-cost-usage-BrBOYp_s.js";
|
|
100
100
|
import { n as formatTokenCount, r as formatUsd } from "./usage-format-BzVVjHV2.js";
|
|
101
|
-
import { S as registerSkillsChangeListener, _ as requestNodePairing, c as recordRemoteNodeInfo, d as removeRemoteNodeInfo, f as setSkillsRemoteRegistry, g as renamePairedNode, h as rejectNodePairing, l as refreshRemoteBinsForConnectedNodes, m as listNodePairing, o as getRemoteSkillEligibility, p as approveNodePairing, s as primeRemoteSkillsCache, u as refreshRemoteNodeBins, v as updatePairedNodeMetadata, x as getSkillsSnapshotVersion, y as verifyNodeToken } from "./skill-commands-
|
|
102
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
101
|
+
import { S as registerSkillsChangeListener, _ as requestNodePairing, c as recordRemoteNodeInfo, d as removeRemoteNodeInfo, f as setSkillsRemoteRegistry, g as renamePairedNode, h as rejectNodePairing, l as refreshRemoteBinsForConnectedNodes, m as listNodePairing, o as getRemoteSkillEligibility, p as approveNodePairing, s as primeRemoteSkillsCache, u as refreshRemoteNodeBins, v as updatePairedNodeMetadata, x as getSkillsSnapshotVersion, y as verifyNodeToken } from "./skill-commands-BIN2pI7T.js";
|
|
102
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-DxSNfi_Q.js";
|
|
103
103
|
import { t as getChannelActivity } from "./channel-activity-CfjrVNGV.js";
|
|
104
104
|
import { n as normalizePollInput } from "./polls-DXeUmcgz.js";
|
|
105
|
-
import "./tables-
|
|
106
|
-
import "./server-lifecycle-
|
|
105
|
+
import "./tables-CQmtKuyg.js";
|
|
106
|
+
import "./server-lifecycle-Dm-2uq1J.js";
|
|
107
107
|
import { i as parseAbsoluteTimeMs, n as resolveCronStaggerMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-Bi1uV655.js";
|
|
108
|
-
import { n as resolveMessageChannelSelection } from "./channel-selection-
|
|
109
|
-
import { i as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
110
|
-
import "./send-
|
|
111
|
-
import "./outbound-attachment-
|
|
108
|
+
import { n as resolveMessageChannelSelection } from "./channel-selection-DAkTNagG.js";
|
|
109
|
+
import { i as buildChannelUiCatalog, t as applyPluginAutoEnable } from "./plugin-auto-enable-BJBnaUzA.js";
|
|
110
|
+
import "./send-BND_guiq.js";
|
|
111
|
+
import "./outbound-attachment-C1mspOfp.js";
|
|
112
112
|
import "./delivery-queue-DTM1WpVs.js";
|
|
113
|
-
import "./send-
|
|
114
|
-
import "./resolve-route-
|
|
115
|
-
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-
|
|
113
|
+
import "./send-BCFY4Zon.js";
|
|
114
|
+
import "./resolve-route-qkwCBMOn.js";
|
|
115
|
+
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-CUqhItn9.js";
|
|
116
116
|
import "./proxy-DOLK7n4o.js";
|
|
117
|
-
import "./replies
|
|
118
|
-
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-
|
|
117
|
+
import "./replies-BTbk1yj0.js";
|
|
118
|
+
import { C as normalizeControlUiBasePath, S as buildControlUiAvatarUrl, c as handleReset, w as resolveAssistantAvatarUrl, x as CONTROL_UI_AVATAR_PREFIX } from "./onboard-helpers-D-l_4GyD.js";
|
|
119
119
|
import "./prompt-style-Czxj2d5H.js";
|
|
120
|
-
import "./pairing-labels-
|
|
121
|
-
import "./session-meta-
|
|
122
|
-
import { i as resolveMemoryBackendConfig, r as getMemorySearchManager } from "./memory-cli-
|
|
123
|
-
import { r as resolveMemorySearchConfig } from "./manager-
|
|
124
|
-
import "./query-expansion-
|
|
120
|
+
import "./pairing-labels-BDzfGlP0.js";
|
|
121
|
+
import "./session-meta-BmvLv08s.js";
|
|
122
|
+
import { i as resolveMemoryBackendConfig, r as getMemorySearchManager } from "./memory-cli-DF4DARLw.js";
|
|
123
|
+
import { r as resolveMemorySearchConfig } from "./manager-C5ViXKTz.js";
|
|
124
|
+
import "./query-expansion-DTVQFgNJ.js";
|
|
125
125
|
import { t as formatDocsLink } from "./links-CbS2yOg-.js";
|
|
126
126
|
import { n as runCommandWithRuntime } from "./cli-utils-aSBNHQae.js";
|
|
127
127
|
import { t as formatHelpExamples } from "./help-format-Bf46Qqc-.js";
|
|
128
128
|
import { n as withProgress } from "./progress-BkZzF3Qm.js";
|
|
129
|
-
import "./constants-
|
|
130
|
-
import "./context-window-guard-
|
|
129
|
+
import "./constants-D1Q8yQ1_.js";
|
|
130
|
+
import "./context-window-guard-BqrKjiIm.js";
|
|
131
131
|
import { i as onHeartbeatEvent, r as getLastHeartbeatEvent, t as resolveHeartbeatVisibility } from "./heartbeat-visibility-IKnrpY6x.js";
|
|
132
132
|
import { t as ensureOpenClawCliOnPath } from "./path-env-S7Od8UBX.js";
|
|
133
133
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-lwpZk6nY.js";
|
|
134
134
|
import { n as inheritOptionFromParent } from "./command-options-DGYxc3D_.js";
|
|
135
135
|
import { t as WizardCancelledError } from "./prompts-QSI6gA3k.js";
|
|
136
136
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D6BlzJnx.js";
|
|
137
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
138
|
-
import { t as isWithinDir } from "./path-safety-
|
|
139
|
-
import { t as assertCanonicalPathWithinBase } from "./install-safe-path-
|
|
140
|
-
import "./skill-scanner-
|
|
141
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
137
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-2cTTTDPj.js";
|
|
138
|
+
import { t as isWithinDir } from "./path-safety-Bpqz1wi_.js";
|
|
139
|
+
import { t as assertCanonicalPathWithinBase } from "./install-safe-path-lyrY4AbG.js";
|
|
140
|
+
import "./skill-scanner-CSmiOSFd.js";
|
|
141
|
+
import { n as formatConfigIssueLines } from "./issue-format-Bm-71lmf.js";
|
|
142
142
|
import { t as buildChannelAccountSnapshot } from "./status-BIupzBh9.js";
|
|
143
|
-
import "./channels-status-issues-
|
|
144
|
-
import { a as buildBaseHints, i as applySensitiveHints, n as redactConfigSnapshot, o as mapSensitivePaths, r as restoreRedactedValues, s as applyDerivedTags, t as redactConfigObject } from "./redact-snapshot-
|
|
145
|
-
import "./daemon-install-helpers-
|
|
143
|
+
import "./channels-status-issues-ib5LY9cR.js";
|
|
144
|
+
import { a as buildBaseHints, i as applySensitiveHints, n as redactConfigSnapshot, o as mapSensitivePaths, r as restoreRedactedValues, s as applyDerivedTags, t as redactConfigObject } from "./redact-snapshot-DiQrZF-C.js";
|
|
145
|
+
import "./daemon-install-helpers-DJg83rPu.js";
|
|
146
146
|
import "./runtime-guard-DzZMAUj_.js";
|
|
147
|
-
import "./systemd-
|
|
148
|
-
import "./service-
|
|
149
|
-
import "./lifecycle-core-
|
|
150
|
-
import "./systemd-hints-
|
|
147
|
+
import "./systemd-B-TNk1de.js";
|
|
148
|
+
import "./service-D_q10odK.js";
|
|
149
|
+
import "./lifecycle-core-BBoysuYG.js";
|
|
150
|
+
import "./systemd-hints-BtHGM1Jb.js";
|
|
151
151
|
import { t as parsePort$1 } from "./parse-port-Dq63ch6Y.js";
|
|
152
|
-
import { n as addGatewayServiceCommands } from "./daemon-cli-
|
|
153
|
-
import "./diagnostics-
|
|
152
|
+
import { n as addGatewayServiceCommands } from "./daemon-cli-SPY75752.js";
|
|
153
|
+
import "./diagnostics-D16lnwhz.js";
|
|
154
154
|
import "./table-9IueuXKv.js";
|
|
155
155
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-CtHiJvM6.js";
|
|
156
|
-
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-
|
|
157
|
-
import { a as probeGateway, n as collectEnabledInsecureOrDangerousFlags } from "./audit-
|
|
158
|
-
import { t as discoverGatewayBeacons } from "./bonjour-discovery-
|
|
159
|
-
import { i as pickGatewaySelfPresence, r as getStatusSummary } from "./status-
|
|
160
|
-
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-
|
|
161
|
-
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-
|
|
162
|
-
import { o as isBitseekBuild } from "./status.update-
|
|
163
|
-
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-
|
|
164
|
-
import { i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-
|
|
165
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
166
|
-
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-
|
|
156
|
+
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-CYOVnE8Z.js";
|
|
157
|
+
import { a as probeGateway, n as collectEnabledInsecureOrDangerousFlags } from "./audit-Dp7M6JvG.js";
|
|
158
|
+
import { t as discoverGatewayBeacons } from "./bonjour-discovery-CC78xmYI.js";
|
|
159
|
+
import { i as pickGatewaySelfPresence, r as getStatusSummary } from "./status-D_I-fLJF.js";
|
|
160
|
+
import { a as styleHealthChannelLine, c as setHeartbeatsEnabled, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines, u as isCronSystemEvent } from "./health-Gkd0akfz.js";
|
|
161
|
+
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-CTp_YbTN.js";
|
|
162
|
+
import { o as isBitseekBuild } from "./status.update-BX7tZJju.js";
|
|
163
|
+
import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-DSofwLgp.js";
|
|
164
|
+
import { i as prepareSecretsRuntimeSnapshot, n as clearSecretsRuntimeSnapshot, r as getActiveSecretsRuntimeSnapshot, t as activateSecretsRuntimeSnapshot } from "./runtime-BKPQGwlu.js";
|
|
165
|
+
import { t as runOnboardingWizard } from "./onboarding-_GD-DZHG.js";
|
|
166
|
+
import { a as sendApnsAlert, c as parseMessageWithAttachments, d as shouldLogWs, f as summarizeAgentEventForWsLog, i as resolveApnsAuthConfigFromEnv, l as formatForLog, n as normalizeApnsEnvironment, o as sendApnsBackgroundWake, p as setGatewayWsLogStyle, s as normalizeRpcAttachmentsToChatAttachments, t as loadApnsRegistration, u as logWs } from "./push-apns-DMeB2M_b.js";
|
|
167
167
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-C53ABYUi.js";
|
|
168
|
-
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-
|
|
169
|
-
import "./node-service-
|
|
170
|
-
import "./shared-
|
|
171
|
-
import { d as verifyOpenAiCompatibleModel } from "./onboard-custom.shared-
|
|
172
|
-
import { n as formatInstallFailureMessage, t as installSkill } from "./skills-install-
|
|
173
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
174
|
-
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-
|
|
175
|
-
import { n as forceFreePortAndWait } from "./ports-
|
|
168
|
+
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-bP6LYXJe.js";
|
|
169
|
+
import "./node-service-B10h5Sui.js";
|
|
170
|
+
import "./shared-ChzS9n9t.js";
|
|
171
|
+
import { d as verifyOpenAiCompatibleModel } from "./onboard-custom.shared-D6P-b1Wa.js";
|
|
172
|
+
import { n as formatInstallFailureMessage, t as installSkill } from "./skills-install-3PLvMn_P.js";
|
|
173
|
+
import { t as runGatewayUpdate } from "./update-runner-BUth8QlB.js";
|
|
174
|
+
import { i as shouldIncludeHook, r as resolveHookConfig, t as loadWorkspaceHookEntries } from "./workspace-AgsRlsqX.js";
|
|
175
|
+
import { n as forceFreePortAndWait } from "./ports-CmP85Z6Y.js";
|
|
176
176
|
import { spawn, spawnSync } from "node:child_process";
|
|
177
177
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
178
178
|
import path from "node:path";
|
|
@@ -181,7 +181,7 @@ import * as fsSync from "node:fs";
|
|
|
181
181
|
import fs from "node:fs";
|
|
182
182
|
import chalk from "chalk";
|
|
183
183
|
import { isDeepStrictEqual } from "node:util";
|
|
184
|
-
import
|
|
184
|
+
import fs$1 from "node:fs/promises";
|
|
185
185
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
186
186
|
import { z } from "zod";
|
|
187
187
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -1251,7 +1251,7 @@ function resolveCheckIntervalMs(cfg) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
async function readState(statePath) {
|
|
1253
1253
|
try {
|
|
1254
|
-
const raw = await
|
|
1254
|
+
const raw = await fs$1.readFile(statePath, "utf-8");
|
|
1255
1255
|
const parsed = JSON.parse(raw);
|
|
1256
1256
|
return parsed && typeof parsed === "object" ? parsed : {};
|
|
1257
1257
|
} catch {
|
|
@@ -1332,7 +1332,7 @@ async function runAutoUpdateCommand(params) {
|
|
|
1332
1332
|
path.join(params.root, "dist", "index.mjs")
|
|
1333
1333
|
];
|
|
1334
1334
|
for (const candidate of candidates) try {
|
|
1335
|
-
await
|
|
1335
|
+
await fs$1.access(candidate);
|
|
1336
1336
|
argv.push(execPath, candidate, ...baseArgs);
|
|
1337
1337
|
break;
|
|
1338
1338
|
} catch {}
|
|
@@ -4407,20 +4407,20 @@ async function drainPendingWrite(filePath) {
|
|
|
4407
4407
|
if (pending) await pending.catch(() => void 0);
|
|
4408
4408
|
}
|
|
4409
4409
|
async function pruneIfNeeded(filePath, opts) {
|
|
4410
|
-
const stat = await
|
|
4410
|
+
const stat = await fs$1.stat(filePath).catch(() => null);
|
|
4411
4411
|
if (!stat || stat.size <= opts.maxBytes) return;
|
|
4412
|
-
const lines = (await
|
|
4412
|
+
const lines = (await fs$1.readFile(filePath, "utf-8").catch(() => "")).split("\n").map((l) => l.trim()).filter(Boolean);
|
|
4413
4413
|
const kept = lines.slice(Math.max(0, lines.length - opts.keepLines));
|
|
4414
4414
|
const { randomBytes } = await import("node:crypto");
|
|
4415
4415
|
const tmp = `${filePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
4416
|
-
await
|
|
4417
|
-
await
|
|
4416
|
+
await fs$1.writeFile(tmp, `${kept.join("\n")}\n`, "utf-8");
|
|
4417
|
+
await fs$1.rename(tmp, filePath);
|
|
4418
4418
|
}
|
|
4419
4419
|
async function appendCronRunLog(filePath, entry, opts) {
|
|
4420
4420
|
const resolved = path.resolve(filePath);
|
|
4421
4421
|
const next = (writesByPath.get(resolved) ?? Promise.resolve()).catch(() => void 0).then(async () => {
|
|
4422
|
-
await
|
|
4423
|
-
await
|
|
4422
|
+
await fs$1.mkdir(path.dirname(resolved), { recursive: true });
|
|
4423
|
+
await fs$1.appendFile(resolved, `${JSON.stringify(entry)}\n`, "utf-8");
|
|
4424
4424
|
await pruneIfNeeded(resolved, {
|
|
4425
4425
|
maxBytes: opts?.maxBytes ?? DEFAULT_CRON_RUN_LOG_MAX_BYTES,
|
|
4426
4426
|
keepLines: opts?.keepLines ?? DEFAULT_CRON_RUN_LOG_KEEP_LINES
|
|
@@ -4514,7 +4514,7 @@ function filterRunLogEntries(entries, opts) {
|
|
|
4514
4514
|
async function readCronRunLogEntriesPage(filePath, opts) {
|
|
4515
4515
|
await drainPendingWrite(filePath);
|
|
4516
4516
|
const limit = Math.max(1, Math.min(200, Math.floor(opts?.limit ?? 50)));
|
|
4517
|
-
const raw = await
|
|
4517
|
+
const raw = await fs$1.readFile(path.resolve(filePath), "utf-8").catch(() => "");
|
|
4518
4518
|
const statuses = normalizeRunStatuses(opts);
|
|
4519
4519
|
const deliveryStatuses = normalizeDeliveryStatuses(opts);
|
|
4520
4520
|
const query = opts?.query?.trim().toLowerCase() ?? "";
|
|
@@ -4550,7 +4550,7 @@ async function readCronRunLogEntriesPageAll(opts) {
|
|
|
4550
4550
|
const query = opts.query?.trim().toLowerCase() ?? "";
|
|
4551
4551
|
const sortDir = opts.sortDir === "asc" ? "asc" : "desc";
|
|
4552
4552
|
const runsDir = path.resolve(path.dirname(path.resolve(opts.storePath)), "runs");
|
|
4553
|
-
const jsonlFiles = (await
|
|
4553
|
+
const jsonlFiles = (await fs$1.readdir(runsDir, { withFileTypes: true }).catch(() => [])).filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map((entry) => path.join(runsDir, entry.name));
|
|
4554
4554
|
if (jsonlFiles.length === 0) return {
|
|
4555
4555
|
entries: [],
|
|
4556
4556
|
total: 0,
|
|
@@ -4561,7 +4561,7 @@ async function readCronRunLogEntriesPageAll(opts) {
|
|
|
4561
4561
|
};
|
|
4562
4562
|
await Promise.all(jsonlFiles.map((f) => drainPendingWrite(f)));
|
|
4563
4563
|
const filtered = filterRunLogEntries((await Promise.all(jsonlFiles.map(async (filePath) => {
|
|
4564
|
-
return parseAllRunLogEntries(await
|
|
4564
|
+
return parseAllRunLogEntries(await fs$1.readFile(filePath, "utf-8").catch(() => ""));
|
|
4565
4565
|
}))).flat(), {
|
|
4566
4566
|
statuses,
|
|
4567
4567
|
deliveryStatuses,
|
|
@@ -9769,7 +9769,7 @@ function resolveAgentWorkspaceFileOrRespondError(params, respond) {
|
|
|
9769
9769
|
}
|
|
9770
9770
|
async function resolveWorkspaceRealPath(workspaceDir) {
|
|
9771
9771
|
try {
|
|
9772
|
-
return await
|
|
9772
|
+
return await fs$1.realpath(workspaceDir);
|
|
9773
9773
|
} catch {
|
|
9774
9774
|
return path.resolve(workspaceDir);
|
|
9775
9775
|
}
|
|
@@ -9793,7 +9793,7 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
9793
9793
|
}
|
|
9794
9794
|
let candidateLstat;
|
|
9795
9795
|
try {
|
|
9796
|
-
candidateLstat = await
|
|
9796
|
+
candidateLstat = await fs$1.lstat(candidatePath);
|
|
9797
9797
|
} catch (err) {
|
|
9798
9798
|
if (isNotFoundPathError(err)) {
|
|
9799
9799
|
if (params.allowMissing) return {
|
|
@@ -9813,7 +9813,7 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
9813
9813
|
if (candidateLstat.isSymbolicLink()) {
|
|
9814
9814
|
let targetReal;
|
|
9815
9815
|
try {
|
|
9816
|
-
targetReal = await
|
|
9816
|
+
targetReal = await fs$1.realpath(candidatePath);
|
|
9817
9817
|
} catch (err) {
|
|
9818
9818
|
if (isNotFoundPathError(err)) {
|
|
9819
9819
|
if (params.allowMissing) return {
|
|
@@ -9832,7 +9832,7 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
9832
9832
|
}
|
|
9833
9833
|
let targetStat;
|
|
9834
9834
|
try {
|
|
9835
|
-
targetStat = await
|
|
9835
|
+
targetStat = await fs$1.stat(targetReal);
|
|
9836
9836
|
} catch (err) {
|
|
9837
9837
|
if (isNotFoundPathError(err)) {
|
|
9838
9838
|
if (params.allowMissing) return {
|
|
@@ -9879,13 +9879,13 @@ async function resolveAgentWorkspaceFilePath(params) {
|
|
|
9879
9879
|
return {
|
|
9880
9880
|
kind: "ready",
|
|
9881
9881
|
requestPath,
|
|
9882
|
-
ioPath: await
|
|
9882
|
+
ioPath: await fs$1.realpath(candidatePath).catch(() => candidatePath),
|
|
9883
9883
|
workspaceReal
|
|
9884
9884
|
};
|
|
9885
9885
|
}
|
|
9886
9886
|
async function statFileSafely(filePath) {
|
|
9887
9887
|
try {
|
|
9888
|
-
const [stat, lstat] = await Promise.all([
|
|
9888
|
+
const [stat, lstat] = await Promise.all([fs$1.stat(filePath), fs$1.lstat(filePath)]);
|
|
9889
9889
|
if (lstat.isSymbolicLink() || !stat.isFile()) return null;
|
|
9890
9890
|
if (stat.nlink > 1) return null;
|
|
9891
9891
|
if (!sameFileIdentity(stat, lstat)) return null;
|
|
@@ -9970,7 +9970,7 @@ function resolveOptionalStringParam(value) {
|
|
|
9970
9970
|
async function moveToTrashBestEffort(pathname) {
|
|
9971
9971
|
if (!pathname) return;
|
|
9972
9972
|
try {
|
|
9973
|
-
await
|
|
9973
|
+
await fs$1.access(pathname);
|
|
9974
9974
|
} catch {
|
|
9975
9975
|
return;
|
|
9976
9976
|
}
|
|
@@ -10046,7 +10046,7 @@ const agentsHandlers = {
|
|
|
10046
10046
|
dir: workspaceDir,
|
|
10047
10047
|
ensureBootstrapFiles: !Boolean(nextConfig.agents?.defaults?.skipBootstrap)
|
|
10048
10048
|
});
|
|
10049
|
-
await
|
|
10049
|
+
await fs$1.mkdir(resolveSessionTranscriptsDirForAgent(agentId), { recursive: true });
|
|
10050
10050
|
await writeConfigFile(nextConfig);
|
|
10051
10051
|
const safeName = sanitizeIdentityLine(rawName);
|
|
10052
10052
|
const emoji = resolveOptionalStringParam(params.emoji);
|
|
@@ -10059,7 +10059,7 @@ const agentsHandlers = {
|
|
|
10059
10059
|
...avatar ? [`- Avatar: ${sanitizeIdentityLine(avatar)}`] : [],
|
|
10060
10060
|
""
|
|
10061
10061
|
];
|
|
10062
|
-
await
|
|
10062
|
+
await fs$1.appendFile(identityPath, lines.join("\n"), "utf-8");
|
|
10063
10063
|
respond(true, {
|
|
10064
10064
|
ok: true,
|
|
10065
10065
|
agentId,
|
|
@@ -10094,9 +10094,9 @@ const agentsHandlers = {
|
|
|
10094
10094
|
});
|
|
10095
10095
|
if (avatar) {
|
|
10096
10096
|
const workspace = workspaceDir ?? resolveAgentWorkspaceDir(nextConfig, agentId);
|
|
10097
|
-
await
|
|
10097
|
+
await fs$1.mkdir(workspace, { recursive: true });
|
|
10098
10098
|
const identityPath = path.join(workspace, DEFAULT_IDENTITY_FILENAME);
|
|
10099
|
-
await
|
|
10099
|
+
await fs$1.appendFile(identityPath, `\n- Avatar: ${sanitizeIdentityLine(avatar)}\n`, "utf-8");
|
|
10100
10100
|
}
|
|
10101
10101
|
respond(true, {
|
|
10102
10102
|
ok: true,
|
|
@@ -10220,7 +10220,7 @@ const agentsHandlers = {
|
|
|
10220
10220
|
const resolved = resolveAgentWorkspaceFileOrRespondError(params, respond);
|
|
10221
10221
|
if (!resolved) return;
|
|
10222
10222
|
const { agentId, workspaceDir, name } = resolved;
|
|
10223
|
-
await
|
|
10223
|
+
await fs$1.mkdir(workspaceDir, { recursive: true });
|
|
10224
10224
|
const filePath = path.join(workspaceDir, name);
|
|
10225
10225
|
const resolvedPath = await resolveWorkspaceFilePathOrRespond({
|
|
10226
10226
|
respond,
|
|
@@ -12513,14 +12513,14 @@ function isRollingLogFile(file) {
|
|
|
12513
12513
|
return ROLLING_LOG_RE.test(path.basename(file));
|
|
12514
12514
|
}
|
|
12515
12515
|
async function resolveLogFile(file) {
|
|
12516
|
-
if (await
|
|
12516
|
+
if (await fs$1.stat(file).catch(() => null)) return file;
|
|
12517
12517
|
if (!isRollingLogFile(file)) return file;
|
|
12518
12518
|
const dir = path.dirname(file);
|
|
12519
|
-
const entries = await
|
|
12519
|
+
const entries = await fs$1.readdir(dir, { withFileTypes: true }).catch(() => null);
|
|
12520
12520
|
if (!entries) return file;
|
|
12521
12521
|
return (await Promise.all(entries.filter((entry) => entry.isFile() && ROLLING_LOG_RE.test(entry.name)).map(async (entry) => {
|
|
12522
12522
|
const fullPath = path.join(dir, entry.name);
|
|
12523
|
-
const fileStat = await
|
|
12523
|
+
const fileStat = await fs$1.stat(fullPath).catch(() => null);
|
|
12524
12524
|
return fileStat ? {
|
|
12525
12525
|
path: fullPath,
|
|
12526
12526
|
mtimeMs: fileStat.mtimeMs
|
|
@@ -12528,7 +12528,7 @@ async function resolveLogFile(file) {
|
|
|
12528
12528
|
}))).filter((entry) => Boolean(entry)).toSorted((a, b) => b.mtimeMs - a.mtimeMs)[0]?.path ?? file;
|
|
12529
12529
|
}
|
|
12530
12530
|
async function readLogSlice(params) {
|
|
12531
|
-
const stat = await
|
|
12531
|
+
const stat = await fs$1.stat(params.file).catch(() => null);
|
|
12532
12532
|
if (!stat) return {
|
|
12533
12533
|
cursor: 0,
|
|
12534
12534
|
size: 0,
|
|
@@ -12566,7 +12566,7 @@ async function readLogSlice(params) {
|
|
|
12566
12566
|
truncated,
|
|
12567
12567
|
reset
|
|
12568
12568
|
};
|
|
12569
|
-
const handle = await
|
|
12569
|
+
const handle = await fs$1.open(params.file, "r");
|
|
12570
12570
|
try {
|
|
12571
12571
|
let prefix = "";
|
|
12572
12572
|
if (start > 0) {
|
|
@@ -13613,7 +13613,7 @@ const nodeHandlers = {
|
|
|
13613
13613
|
const p = params;
|
|
13614
13614
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
13615
13615
|
await respondUnavailableOnThrow(respond, async () => {
|
|
13616
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
13616
|
+
const { handleNodeEvent } = await import("./server-node-events-BE-B31Iv.js");
|
|
13617
13617
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
13618
13618
|
await handleNodeEvent({
|
|
13619
13619
|
deps: context.deps,
|
|
@@ -14359,11 +14359,11 @@ async function installLocalMarketSkill(params) {
|
|
|
14359
14359
|
candidatePath: sourceDir,
|
|
14360
14360
|
boundaryLabel: "market templates directory"
|
|
14361
14361
|
});
|
|
14362
|
-
if (!(await
|
|
14362
|
+
if (!(await fs$1.stat(sourceDir)).isDirectory()) return {
|
|
14363
14363
|
ok: false,
|
|
14364
14364
|
message: `Local template "${templateDir}" is not a directory.`
|
|
14365
14365
|
};
|
|
14366
|
-
if (!(await
|
|
14366
|
+
if (!(await fs$1.stat(sourceSkillPath)).isFile()) return {
|
|
14367
14367
|
ok: false,
|
|
14368
14368
|
message: `Local template "${templateDir}" is missing SKILL.md.`
|
|
14369
14369
|
};
|
|
@@ -14377,13 +14377,13 @@ async function installLocalMarketSkill(params) {
|
|
|
14377
14377
|
const workspaceSkillsDir = path.join(workspaceDir, "skills");
|
|
14378
14378
|
const targetDir = path.join(workspaceSkillsDir, templateDir);
|
|
14379
14379
|
try {
|
|
14380
|
-
await
|
|
14380
|
+
await fs$1.mkdir(workspaceSkillsDir, { recursive: true });
|
|
14381
14381
|
await assertCanonicalPathWithinBase({
|
|
14382
14382
|
baseDir: workspaceSkillsDir,
|
|
14383
14383
|
candidatePath: targetDir,
|
|
14384
14384
|
boundaryLabel: "workspace skills directory"
|
|
14385
14385
|
});
|
|
14386
|
-
await
|
|
14386
|
+
await fs$1.cp(sourceDir, targetDir, {
|
|
14387
14387
|
recursive: true,
|
|
14388
14388
|
force: true
|
|
14389
14389
|
});
|
|
@@ -17227,7 +17227,7 @@ function normalizeAgentPayload(payload) {
|
|
|
17227
17227
|
async function startBrowserControlServerIfEnabled() {
|
|
17228
17228
|
if (isTruthyEnvValue(process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER)) return null;
|
|
17229
17229
|
const override = process.env.OPENCLAW_BROWSER_CONTROL_MODULE?.trim();
|
|
17230
|
-
const mod = override ? await import(override) : await import("./server-
|
|
17230
|
+
const mod = override ? await import(override) : await import("./server-B9tR6Pn2.js");
|
|
17231
17231
|
const start = typeof mod.startBrowserControlServiceFromConfig === "function" ? mod.startBrowserControlServiceFromConfig : mod.startBrowserControlServerFromConfig;
|
|
17232
17232
|
const stop = typeof mod.stopBrowserControlService === "function" ? mod.stopBrowserControlService : mod.stopBrowserControlServer;
|
|
17233
17233
|
if (!start) return null;
|
|
@@ -17455,7 +17455,7 @@ async function resolveFileWithinRoot(rootReal, urlPath) {
|
|
|
17455
17455
|
if (normalized.endsWith("/")) return await tryOpen(path.posix.join(rel, "index.html"));
|
|
17456
17456
|
const candidate = path.join(rootReal, rel);
|
|
17457
17457
|
try {
|
|
17458
|
-
const st = await
|
|
17458
|
+
const st = await fs$1.lstat(candidate);
|
|
17459
17459
|
if (st.isSymbolicLink()) return null;
|
|
17460
17460
|
if (st.isDirectory()) return await tryOpen(path.posix.join(rel, "index.html"));
|
|
17461
17461
|
} catch {}
|
|
@@ -17492,8 +17492,8 @@ async function resolveA2uiRoot() {
|
|
|
17492
17492
|
for (const dir of candidates) try {
|
|
17493
17493
|
const indexPath = path.join(dir, "index.html");
|
|
17494
17494
|
const bundlePath = path.join(dir, "a2ui.bundle.js");
|
|
17495
|
-
await
|
|
17496
|
-
await
|
|
17495
|
+
await fs$1.stat(indexPath);
|
|
17496
|
+
await fs$1.stat(bundlePath);
|
|
17497
17497
|
return dir;
|
|
17498
17498
|
} catch {}
|
|
17499
17499
|
return null;
|
|
@@ -17502,7 +17502,7 @@ async function resolveA2uiRootReal() {
|
|
|
17502
17502
|
if (cachedA2uiRootReal !== void 0 && (cachedA2uiRootReal !== null || Date.now() - cachedA2uiResolvedAtMs < A2UI_ROOT_RETRY_NULL_AFTER_MS)) return cachedA2uiRootReal;
|
|
17503
17503
|
if (!resolvingA2uiRoot) resolvingA2uiRoot = (async () => {
|
|
17504
17504
|
const root = await resolveA2uiRoot();
|
|
17505
|
-
cachedA2uiRootReal = root ? await
|
|
17505
|
+
cachedA2uiRootReal = root ? await fs$1.realpath(root) : null;
|
|
17506
17506
|
cachedA2uiResolvedAtMs = Date.now();
|
|
17507
17507
|
resolvingA2uiRoot = null;
|
|
17508
17508
|
return cachedA2uiRootReal;
|
|
@@ -17723,13 +17723,13 @@ function normalizeBasePath(rawPath) {
|
|
|
17723
17723
|
}
|
|
17724
17724
|
async function prepareCanvasRoot(rootDir) {
|
|
17725
17725
|
await ensureDir(rootDir);
|
|
17726
|
-
const rootReal = await
|
|
17726
|
+
const rootReal = await fs$1.realpath(rootDir);
|
|
17727
17727
|
try {
|
|
17728
17728
|
const indexPath = path.join(rootReal, "index.html");
|
|
17729
|
-
await
|
|
17729
|
+
await fs$1.stat(indexPath);
|
|
17730
17730
|
} catch {
|
|
17731
17731
|
try {
|
|
17732
|
-
await
|
|
17732
|
+
await fs$1.writeFile(path.join(rootReal, "index.html"), defaultIndexHTML(), "utf8");
|
|
17733
17733
|
} catch {}
|
|
17734
17734
|
}
|
|
17735
17735
|
return rootReal;
|
|
@@ -20736,7 +20736,7 @@ async function resolveGatewayOwnerStatus(pid, payload, platform, port) {
|
|
|
20736
20736
|
}
|
|
20737
20737
|
async function readLockPayload(lockPath) {
|
|
20738
20738
|
try {
|
|
20739
|
-
const raw = await
|
|
20739
|
+
const raw = await fs$1.readFile(lockPath, "utf8");
|
|
20740
20740
|
const parsed = JSON.parse(raw);
|
|
20741
20741
|
if (typeof parsed.pid !== "number") return null;
|
|
20742
20742
|
if (typeof parsed.createdAt !== "string") return null;
|
|
@@ -20771,11 +20771,11 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20771
20771
|
const platform = opts.platform ?? process.platform;
|
|
20772
20772
|
const port = opts.port;
|
|
20773
20773
|
const { lockPath, configPath } = resolveGatewayLockPath(env);
|
|
20774
|
-
await
|
|
20774
|
+
await fs$1.mkdir(path.dirname(lockPath), { recursive: true });
|
|
20775
20775
|
const startedAt = Date.now();
|
|
20776
20776
|
let lastPayload = null;
|
|
20777
20777
|
while (Date.now() - startedAt < timeoutMs) try {
|
|
20778
|
-
const handle = await
|
|
20778
|
+
const handle = await fs$1.open(lockPath, "wx");
|
|
20779
20779
|
const startTime = platform === "linux" ? readLinuxStartTime(process.pid) : null;
|
|
20780
20780
|
const payload = {
|
|
20781
20781
|
pid: process.pid,
|
|
@@ -20789,7 +20789,7 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20789
20789
|
configPath,
|
|
20790
20790
|
release: async () => {
|
|
20791
20791
|
await handle.close().catch(() => void 0);
|
|
20792
|
-
await
|
|
20792
|
+
await fs$1.rm(lockPath, { force: true });
|
|
20793
20793
|
}
|
|
20794
20794
|
};
|
|
20795
20795
|
} catch (err) {
|
|
@@ -20798,7 +20798,7 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20798
20798
|
const ownerPid = lastPayload?.pid;
|
|
20799
20799
|
const ownerStatus = ownerPid ? await resolveGatewayOwnerStatus(ownerPid, lastPayload, platform, port) : "unknown";
|
|
20800
20800
|
if (ownerStatus === "dead" && ownerPid) {
|
|
20801
|
-
await
|
|
20801
|
+
await fs$1.rm(lockPath, { force: true });
|
|
20802
20802
|
continue;
|
|
20803
20803
|
}
|
|
20804
20804
|
if (ownerStatus !== "alive") {
|
|
@@ -20808,13 +20808,13 @@ async function acquireGatewayLock(opts = {}) {
|
|
|
20808
20808
|
stale = Number.isFinite(createdAt) ? Date.now() - createdAt > staleMs : false;
|
|
20809
20809
|
}
|
|
20810
20810
|
if (!stale) try {
|
|
20811
|
-
const st = await
|
|
20811
|
+
const st = await fs$1.stat(lockPath);
|
|
20812
20812
|
stale = Date.now() - st.mtimeMs > staleMs;
|
|
20813
20813
|
} catch {
|
|
20814
20814
|
stale = false;
|
|
20815
20815
|
}
|
|
20816
20816
|
if (stale) {
|
|
20817
|
-
await
|
|
20817
|
+
await fs$1.rm(lockPath, { force: true });
|
|
20818
20818
|
continue;
|
|
20819
20819
|
}
|
|
20820
20820
|
}
|
|
@@ -23124,7 +23124,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
23124
23124
|
if (!minimalTestGateway) cron.start().catch((err) => logCron.error(`failed to start: ${String(err)}`));
|
|
23125
23125
|
if (!minimalTestGateway) (async () => {
|
|
23126
23126
|
const { recoverPendingDeliveries } = await import("./delivery-queue-DTM1WpVs.js").then((n) => n.n);
|
|
23127
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
23127
|
+
const { deliverOutboundPayloads } = await import("./deliver-DRKtTsvj.js").then((n) => n.n);
|
|
23128
23128
|
await recoverPendingDeliveries({
|
|
23129
23129
|
deliver: deliverOutboundPayloads,
|
|
23130
23130
|
log: log.child("delivery-recovery"),
|