wednesdayai 0.4.12-dev.733 → 0.4.12-dev.734
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/{acp-cli-Ciw9I0uZ.js → acp-cli-u6BEMShe.js} +15 -15
- package/dist/{agent-scope-CVpiV9_p.js → agent-scope-B5BtLhIC.js} +2 -2
- package/dist/{agent-scope-Isfe_TTc.js → agent-scope-C7A_L0Z6.js} +21 -21
- package/dist/{agent-turn-enqueue-Dm0JENbl.js → agent-turn-enqueue-oYjYy4W3.js} +6 -6
- package/dist/{agent-turn-recovery-adapter-OfuCod26.js → agent-turn-recovery-adapter-Ba_u8tsH.js} +3 -3
- package/dist/{agent-turn-runner-D9oWYU1F.js → agent-turn-runner-DJaul1fs.js} +5 -5
- package/dist/{agent-turn-runner-CHoOKwsD.js → agent-turn-runner-DN-XHX0T.js} +4 -4
- package/dist/{agent-turn-runner-BV_PeLdX.js → agent-turn-runner-iiGV_xDS.js} +6 -6
- package/dist/{agents.config-DDNucPjd.js → agents.config-YgM6ypSW.js} +3 -3
- package/dist/{api-B8kTLa-V.js → api-DTIIemyw.js} +1 -1
- package/dist/{api-key-rotation-C-jZ2g9h.js → api-key-rotation-DLl0JScq.js} +1 -1
- package/dist/{api-key-rotation-BhNw79Bu.js → api-key-rotation-Vhef3tyV.js} +1 -1
- package/dist/{artifacts-D7xTEspu.js → artifacts-CSUzSsVF.js} +1 -1
- package/dist/{audio-preflight-Cj5N8Fbp.js → audio-preflight-BWqiB-Gv.js} +38 -38
- package/dist/{audio-preflight-B0-wpy5i.js → audio-preflight-BfVCaStC.js} +5 -5
- package/dist/{audio-preflight-zbZPSZeC.js → audio-preflight-DmuNG6iD.js} +25 -25
- package/dist/{audio-transcription-runner-BTMTo0Oh.js → audio-transcription-runner-BddwFNQF.js} +26 -26
- package/dist/{audio-transcription-runner-DU-4s9T-.js → audio-transcription-runner-DV97sIzf.js} +1 -1
- package/dist/{audio-transcription-runner-DQOhmZXw.js → audio-transcription-runner-DskeI69N.js} +12 -12
- package/dist/{audit-Ch0W6MYl.js → audit-BdvUbSJW.js} +31 -31
- package/dist/{auth-RqerQcVN.js → auth-Bpsbop7P.js} +4 -4
- package/dist/{auth-choice-DwMUQqPs.js → auth-choice-C-PuOQwZ.js} +13 -13
- package/dist/{auth-choice-BYuFP7T_.js → auth-choice-Ci58poKa.js} +18 -18
- package/dist/{auth-choice.apply-helpers-BMb44QwW.js → auth-choice.apply-helpers-DOUrHdHL.js} +1 -1
- package/dist/{auth-token-D_jEtete.js → auth-token-CNieP0C6.js} +2 -2
- package/dist/{bonjour-discovery-g2GjlMwG.js → bonjour-discovery-DcI9gUqF.js} +3 -3
- package/dist/{browser-cli-Bz6AxM_A.js → browser-cli-B38yP_6r.js} +22 -22
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +56 -56
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-journal/handler.js +56 -56
- package/dist/bundled/session-memory/handler.js +56 -56
- package/dist/{call-CCfms07q.js → call-DcUNQRRs.js} +12 -12
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-DNIQLMZJ.js → channel-account-context-BLrrF35q.js} +7 -7
- package/dist/{channel-activity-sPbGjc5e.js → channel-activity-D6C30I8U.js} +2 -2
- package/dist/{channel-activity-CYX6jkoL.js → channel-activity-umvXZN1Q.js} +2 -2
- package/dist/{channel-options-BveWV11S.js → channel-options-GalVDUUs.js} +4 -4
- package/dist/{channel-selection-BRkNQi3I.js → channel-selection-BhS12YOf.js} +1 -1
- package/dist/{channels-cli-DAGiS54d.js → channels-cli-DG8Z_thL.js} +122 -122
- package/dist/{channels-status-issues-1yAXMoby.js → channels-status-issues-C3WZ-FHq.js} +1 -1
- package/dist/{chat-content-C9leVKVS.js → chat-content-CpbqvcYj.js} +13 -13
- package/dist/{chat-content-CBi2BuMN.js → chat-content-DTi4qPWl.js} +3 -3
- package/dist/{chrome-C6EL_Azx.js → chrome-3_0KrCjl.js} +8 -8
- package/dist/{chrome-K_3gICG0.js → chrome-BmOe128y.js} +6 -6
- package/dist/{chrome-B1W66RLB.js → chrome-QHHEijm4.js} +12 -12
- package/dist/{chunk-v83cSD3K.js → chunk-Cft1Qryu.js} +3 -3
- package/dist/{chunk-DsOlQSkR.js → chunk-DjzPpjFE.js} +3 -3
- package/dist/{clack-prompter-E1c9la4n.js → clack-prompter-5Rt5HC77.js} +5 -5
- package/dist/clawbot-cli-B_eFyFig.js +36 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-Dgi81MlW.js +166 -0
- package/dist/{client-VFkIaJUE.js → client-CfK_daL3.js} +3 -3
- package/dist/{client-profiles-CofHU2-i.js → client-profiles-DXMSQ3LL.js} +2 -2
- package/dist/{clipboard-BFomxx0G.js → clipboard-CXNhYcRG.js} +1 -1
- package/dist/{command-queue-9omEZYIX.js → command-queue--qG4Wxve.js} +1 -1
- package/dist/{command-queue-Cz-yW8Fn.js → command-queue-BeqPo1FP.js} +1 -1
- package/dist/{command-queue-C6BVo5I0.js → command-queue-Bwh4Cjht.js} +1 -1
- package/dist/{command-secret-targets-DCV5FIY6.js → command-secret-targets-Gl-QK3RO.js} +4 -4
- package/dist/{commands-CTxKrS5w.js → commands-DpelJzCu.js} +1 -1
- package/dist/{commands-registry-DGtDGKmr.js → commands-registry-Ccpns1_9.js} +2 -2
- package/dist/{commands-registry-DISO8Rbf.js → commands-registry-DQp53oMc.js} +3 -3
- package/dist/{completion-cli-DFNOXLps.js → completion-cli-CdiynSEq.js} +15 -15
- package/dist/{config-cli-p03mh4YX.js → config-cli-p-8y2wLT.js} +13 -13
- package/dist/{config-guard-Dzau_M6-.js → config-guard-B07Pi5M4.js} +17 -17
- package/dist/{config-validation-xc_nQppc.js → config-validation-DWz89icD.js} +4 -4
- package/dist/{configure-DmydR0wt.js → configure-C103cYIE.js} +25 -25
- package/dist/{control-ui-assets-CX17hVrY.js → control-ui-assets-3-KmlKzl.js} +3 -3
- package/dist/{controller-Cf_Sh5y1.js → controller-CwG8Zp_n.js} +1 -1
- package/dist/{credentials-CpbaIISJ.js → credentials-gpmh64hA.js} +1 -1
- package/dist/{cron-cli-BvII3wJp.js → cron-cli-y-JG-HVt.js} +17 -17
- package/dist/{daemon-cli-BS4lzrlG.js → daemon-cli-ChjPuLhH.js} +19 -19
- package/dist/{daemon-install-BAolTW-k.js → daemon-install-Cs7LQnph.js} +11 -11
- package/dist/{daemon-install-helpers-BXatJyxv.js → daemon-install-helpers-6Xe4iL6g.js} +13 -13
- package/dist/{deliver-CtrRdP0I.js → deliver-Bm3KCC7N.js} +14 -14
- package/dist/{deliver-BilN6eHm.js → deliver-BmkcRFC9.js} +1 -1
- package/dist/{deliver-BeUjHsuQ.js → deliver-QPSbsYeP.js} +15 -15
- package/dist/{devices-cli-CtaHqDZx.js → devices-cli-ByoED8_c.js} +15 -15
- package/dist/{diagnostic-C3MkA2d5.js → diagnostic-CCR8brX6.js} +1 -1
- package/dist/{diagnostic-INswCh23.js → diagnostic-CGl139nm.js} +5 -5
- package/dist/{diagnostic-CkzxbMOl.js → diagnostic-Chf-opgf.js} +4 -4
- package/dist/{diagnostics-BL7MaHFG.js → diagnostics-feLr7_11.js} +5 -5
- package/dist/{directory-cli-DvgdYM7w.js → directory-cli-Dm6bdo-K.js} +14 -14
- package/dist/{dns-cli-D0Jjy9ct.js → dns-cli-BV3f81WF.js} +13 -13
- package/dist/{docs-cli-CFi2HDrN.js → docs-cli-CtYEOTf5.js} +12 -12
- package/dist/{doctor-completion-B1SsMlh-.js → doctor-completion-Bx6uvkY3.js} +3 -3
- package/dist/{doctor-config-flow-DU0u9ath.js → doctor-config-flow-CHpbeQ8M.js} +17 -17
- package/dist/{enable-BRot9Tbi.js → enable-CODu9xqV.js} +2 -2
- package/dist/{env-DwhxSLZz.js → env-uQrKrEGz.js} +1 -1
- package/dist/{exec-approvals-allowlist-CVeFyVcd.js → exec-approvals-allowlist-BxG5LK_B.js} +1 -1
- package/dist/{exec-approvals-cli-Bwc8M8YG.js → exec-approvals-cli-Cnn9uvon.js} +25 -25
- package/dist/{exec-approvals-BS3OjF4g.js → exec-approvals-sC6Vto0t.js} +2 -2
- package/dist/{exec-BNayx9Nm.js → exec-g-Nx0X6p.js} +2 -2
- package/dist/{exec-safe-bin-runtime-policy-OSqMfz70.js → exec-safe-bin-runtime-policy-Bd1hExM6.js} +2 -2
- package/dist/{extension-relay-auth-Dcu8wthB.js → extension-relay-auth-NxDK9Fke.js} +10 -10
- package/dist/extensionAPI.js +12 -12
- package/dist/{fetch-cEFmY5z9.js → fetch-fy8exuqj.js} +6 -6
- package/dist/{fetch-guard-EajwxXjX.js → fetch-guard-CfI8OeSj.js} +3 -3
- package/dist/{fetch-guard-CBYchbZq.js → fetch-guard-tWQjMK2l.js} +3 -3
- package/dist/{frontmatter-BxEA3xXS.js → frontmatter-AubDiZG0.js} +3 -3
- package/dist/{fs-safe-B7Enj5xC.js → fs-safe-Ckd0hSqX.js} +3 -3
- package/dist/{fs-safe-B3ZR2kik.js → fs-safe-LwswEc9h.js} +25 -25
- package/dist/{gateway-cli-D_-cQdWs.js → gateway-cli-D37cHpSz.js} +222 -222
- package/dist/{gateway-rpc-CQYm-HLi.js → gateway-rpc-CiALr93w.js} +3 -3
- package/dist/{gmail-setup-utils-hfaqpEZm.js → gmail-setup-utils-XnNYe7e4.js} +2 -2
- package/dist/{health-jv7pcI79.js → health-BovdETb-.js} +12 -12
- package/dist/{health-format-CT7biLM5.js → health-format-UGHgSjMo.js} +1 -1
- package/dist/{heartbeat-tick-CrLpacK5.js → heartbeat-tick-gDighXQe.js} +2 -2
- package/dist/{help-format-CLct84oR.js → help-format-RRPzsWkf.js} +1 -1
- package/dist/{helpers-DPLyPWvP.js → helpers-DGWfGS2H.js} +1 -1
- package/dist/{hooks-cli-B-xZu7If.js → hooks-cli-3CvgoXOf.js} +110 -110
- package/dist/{hooks-status-uQ6F_qa5.js → hooks-status-Bk4EXCkN.js} +2 -2
- package/dist/{image-ops-CbGvIbf3.js → image-ops-BM9FiJs0.js} +1 -1
- package/dist/{image-ops-CHN4z44F.js → image-ops-C0lTPxIN.js} +11 -11
- package/dist/{incident-install-Cfpzkmd6.js → incident-install-BU8QyJJi.js} +14 -14
- package/dist/index.js +109 -109
- package/dist/{inspect-BHcKD0Mh.js → inspect-CEi0vY67.js} +4 -4
- package/dist/{install-safe-path-C_UxxVRx.js → install-safe-path-Cv53fge9.js} +25 -25
- package/dist/{installs-DfXrCFr4.js → installs-BZ7QGLTH.js} +10 -10
- package/dist/{ipv4-pualJW3L.js → ipv4-6tmOAqee.js} +2 -2
- package/dist/{ir-BZC8jqmM.js → ir-BcCmcdpx.js} +8 -8
- package/dist/{ir-rvMyPCLn.js → ir-YDUZgbxp.js} +5 -5
- package/dist/{issue-format-CKVc879T.js → issue-format-CMvPuN7V.js} +1 -1
- package/dist/{legacy-names-CLlrMq8r.js → legacy-names-DnKoTzf4.js} +1 -1
- package/dist/{lifecycle-core-nH5DqDS2.js → lifecycle-core-hNAWQhZw.js} +9 -9
- package/dist/{links-DtYJaVFO.js → links-DA_gi3gE.js} +1 -1
- package/dist/{live-repair-CajZtMx4.js → live-repair-BvevhX8_.js} +13 -13
- package/dist/llm-slug-generator.js +56 -56
- package/dist/{local-roots-C0gTK4Bz.js → local-roots-7K5PLW70.js} +5 -5
- package/dist/{log-tail--H82JYgg.js → log-tail-FFb_BPrV.js} +7 -7
- package/dist/{logger-Bd6qOjzT.js → logger-BSEmTtz1.js} +2 -2
- package/dist/{logger-DNehzD_s.js → logger-uA4S-xj7.js} +1 -1
- package/dist/{logging-CoqZ22Bj.js → logging-2kovqtbn.js} +1 -1
- package/dist/{logs-cli-Cgvd5nIw.js → logs-cli-BT3Btt4i.js} +21 -21
- package/dist/{manager-yZu-7wGz.js → manager-CAhprKqm.js} +7 -7
- package/dist/{manager-DOXQa7gV.js → manager-CVY-YEjj.js} +18 -18
- package/dist/{manager-fEgy3Cc5.js → manager-CuWMoixZ.js} +10 -10
- package/dist/{markdown-tables-CxNf_QKN.js → markdown-tables-BIUAAmJj.js} +2 -2
- package/dist/{markdown-tables-Dr-mscCB.js → markdown-tables-BhZ9rtSx.js} +2 -2
- package/dist/{memory-cli-DactP3dr.js → memory-cli-Dw2sfKV7.js} +19 -19
- package/dist/{model-STLFfNgZ.js → model-DXt9qubu.js} +2 -2
- package/dist/{model-catalog-CJO7nU3v.js → model-catalog-DjGr6SKN.js} +4 -4
- package/dist/{model-picker-Qj1lwU0B.js → model-picker-CxN0ohVn.js} +4 -4
- package/dist/{model-selection-DeMoFayq.js → model-selection-RcRokpsG.js} +9 -9
- package/dist/{model-selection-D74qlS0C.js → model-selection-Xe4QEYsC.js} +55 -55
- package/dist/{models-cli-BKsNo3af.js → models-cli-BipY6LjO.js} +114 -114
- package/dist/{models-config-Dj7fr0nB.js → models-config-CZHJduVo.js} +7 -7
- package/dist/{models-config-DtvN5oDH.js → models-config-xlk6m7OT.js} +2 -2
- package/dist/{node-cli-CUBwMhvB.js → node-cli-O46I0NdJ.js} +45 -45
- package/dist/{node-command-policy-2ZSrWLtG.js → node-command-policy-xF0dwumy.js} +1 -1
- package/dist/{node-service-CsTzpewy.js → node-service-D4squ4p0.js} +1 -1
- package/dist/{nodes-cli-CGX5t4Yt.js → nodes-cli-59j_7aot.js} +27 -27
- package/dist/{nodes-screen-CBDClxW8.js → nodes-screen-CBvwtWTJ.js} +8 -8
- package/dist/{note-0__etBQU.js → note-DNloJfK7.js} +2 -2
- package/dist/{npm-pack-install-DJFWFkSH.js → npm-pack-install-BbOwlaHm.js} +23 -23
- package/dist/{npm-resolution-BcTXjcVL.js → npm-resolution-DMiDvLdW.js} +5 -5
- package/dist/{oauth-tls-preflight-DXqH3JiS.js → oauth-tls-preflight-DXcfBi5s.js} +1 -1
- package/dist/{onboard-D8c-kpMi.js → onboard-BqfhNjlR.js} +11 -11
- package/dist/{onboard-channels-BlEe4jeB.js → onboard-channels-C7p_IgYg.js} +24 -24
- package/dist/{onboard-custom-BtI1nikv.js → onboard-custom-Cxcj391N.js} +4 -4
- package/dist/{onboard-helpers-CHJgaSLe.js → onboard-helpers-BHshJeiH.js} +14 -14
- package/dist/{onboard-hooks--LATkv_I.js → onboard-hooks-Cu6T2rFj.js} +7 -7
- package/dist/{onboard-remote-BomxZvc8.js → onboard-remote-CvI5wlAJ.js} +5 -5
- package/dist/{onboard-skills-u_E2_0PO.js → onboard-skills-C65mTllM.js} +4 -4
- package/dist/{onboarding-NS4yZFU0.js → onboarding-Cu0Vnxce.js} +18 -18
- package/dist/{onboarding.finalize-B38zvHLn.js → onboarding.finalize-DaXgygU1.js} +117 -117
- package/dist/{onboarding.gateway-config-BFwfGimv.js → onboarding.gateway-config-V_rpPuAI.js} +19 -19
- package/dist/{onboarding.secret-input-CfTAY72X.js → onboarding.secret-input-DwOMM1C_.js} +1 -1
- package/dist/{openai-model-default-Baj13Ct-.js → openai-model-default-D_zYYe_9.js} +2 -2
- package/dist/{openclaw-root-B2l0kAM1.js → openclaw-root-BGUYWYDG.js} +2 -2
- package/dist/{operator-commands-8955-2ij.js → operator-commands-C1JSSS9_.js} +7 -7
- package/dist/{outbound-attachment-DXOLYhTE.js → outbound-attachment-DV8nfM5h.js} +2 -2
- package/dist/{outbound-attachment-CLvbW9Xc.js → outbound-attachment-papyIJq7.js} +2 -2
- package/dist/{outbound-message-hooks-B3d6x2bV.js → outbound-message-hooks-C4OaIRmC.js} +5 -5
- package/dist/{outbound-message-hooks-Cqp1e1kN.js → outbound-message-hooks-DJIHczZE.js} +5 -5
- package/dist/{pairing-cli-HlVxPH4p.js → pairing-cli-B3kETJVT.js} +13 -13
- package/dist/{pairing-labels-CzfCTcWR.js → pairing-labels-DwJGNsPY.js} +1 -1
- package/dist/{pairing-store-ClC923Wz.js → pairing-store-Deylvw9t.js} +3 -3
- package/dist/{path-alias-guards-Bj0l9f26.js → path-alias-guards-CM0vBH_Z.js} +1 -1
- package/dist/{path-alias-guards-BWeHJfpx.js → path-alias-guards-CgeH2aSH.js} +3 -3
- package/dist/{path-env-BBelmr45.js → path-env-BpMauqkY.js} +1 -1
- package/dist/{path-safety-DMAi6_-A.js → path-safety-BTAa9g_F.js} +1 -1
- package/dist/{pi-embedded-BMxexBYS.js → pi-embedded-MxBrZ5X7.js} +28 -28
- package/dist/{pi-embedded-wTLTzzic.js → pi-embedded-OmBDo0DF.js} +91 -91
- package/dist/{pi-embedded-helpers-58qqCaMi.js → pi-embedded-helpers-CjMOJlwL.js} +8 -8
- package/dist/{pi-embedded-recovery-adapter-JHx8Xn5G.js → pi-embedded-recovery-adapter-Ded_keBv.js} +35 -35
- package/dist/{pi-embedded-utils-BHzcjLyI.js → pi-embedded-utils-BI0V7Kv6.js} +2 -2
- package/dist/{pi-embedded-utils-fl8kob5O.js → pi-embedded-utils-BRaMXyni.js} +3 -3
- package/dist/{pi-embedded-utils-BxBSc2aN.js → pi-embedded-utils-D6Ee9Uyb.js} +1 -1
- package/dist/{pi-model-discovery-D-MvwJ9N.js → pi-model-discovery-BnKlqzf2.js} +1 -1
- package/dist/{pi-model-discovery-BEinSrd8.js → pi-model-discovery-RM-t2m70.js} +1 -1
- package/dist/{pi-tools.policy-CQBCu2m0.js → pi-tools.policy-CNWwkqR2.js} +5 -5
- package/dist/{pid-alive-CQpmBPPl.js → pid-alive-C3qbS2SA.js} +1 -1
- package/dist/{plugin-owned-work-recovery-adapter-Bn-F7Hfx.js → plugin-owned-work-recovery-adapter-tgBosC-H.js} +10 -10
- package/dist/{plugin-registry-D0fdIYR7.js → plugin-registry-ecUtEnu8.js} +4 -4
- package/dist/plugin-sdk/provider-media-understanding.js +7 -7
- package/dist/{plugins-cli--o_AZsyD.js → plugins-cli-D1q-BD8n.js} +113 -113
- package/dist/{polling-timeout-BfQqGdT2.js → polling-timeout-HyiW4Q3a.js} +3 -3
- package/dist/{ports-CcN3W_2z.js → ports-CmfLs9tb.js} +2 -2
- package/dist/{ports-Cp281kk8.js → ports-DJ_M8scl.js} +6 -6
- package/dist/{program-context-Bvfo3zMR.js → program-context-BCw1Yuns.js} +47 -47
- package/dist/{progress-D7S5GoOi.js → progress-Cbn-oYkW.js} +2 -2
- package/dist/{prompt-select-styled-C4VXJH2H.js → prompt-select-styled-CSDZSzXV.js} +51 -51
- package/dist/{prompt-style-o9ooijd1.js → prompt-style-B2xUetmj.js} +1 -1
- package/dist/{provider-auth-helpers-BiqgXxJP.js → provider-auth-helpers-DhziUI1g.js} +6 -6
- package/dist/{provider-image-C5-IlVG0.js → provider-image-BXyzJKFR.js} +1 -1
- package/dist/{provider-image-BbsxRTqB.js → provider-image-DpILAK4L.js} +6 -6
- package/dist/{provider-image-mZ4mWjfm.js → provider-image-RrciW1DD.js} +6 -6
- package/dist/{proxy-DIf6ZG9s.js → proxy-BaYXOmCA.js} +1 -1
- package/dist/{proxy-FZnR0j7S.js → proxy-CXiTHFXk.js} +1 -1
- package/dist/{proxy-env-DMj9RqDZ.js → proxy-env-B_4G-Zvx.js} +1 -1
- package/dist/{proxy-fetch-BSYUeKDC.js → proxy-fetch-BdB5Hb7r.js} +1 -1
- package/dist/{proxy-fetch-CeK1ZBeq.js → proxy-fetch-DxABZ-6S.js} +1 -1
- package/dist/{push-apns-BAZ2gS1A.js → push-apns-C_8RshML.js} +10 -10
- package/dist/{pw-ai-C1CsyDRn.js → pw-ai-B9xme0Pq.js} +1 -1
- package/dist/{pw-ai-DV1vh3L9.js → pw-ai-BJm46rii.js} +11 -11
- package/dist/{pw-ai-CVNyf8Ps.js → pw-ai-cXnI0RSD.js} +21 -21
- package/dist/{qmd-manager-ZfBaKzRa.js → qmd-manager-5DFozdW5.js} +8 -8
- package/dist/{qmd-manager-DiABKT7O.js → qmd-manager-BQrWBuxv.js} +25 -25
- package/dist/{qr-cli-DGTUy-aw.js → qr-cli-BCEk7nPF.js} +8 -8
- package/dist/{query-expansion-BcXh1Hyc.js → query-expansion-96au1v0j.js} +14 -14
- package/dist/{query-expansion-BHpPid-F.js → query-expansion-AnpCkyvK.js} +2 -2
- package/dist/{reconcile-bundled-B64Cy2I8.js → reconcile-bundled-BN_64UUh.js} +3 -3
- package/dist/{recorder-BiGPFc4h.js → recorder-BdRGbnWA.js} +4 -4
- package/dist/{recorder-wcIhZTuf.js → recorder-CQ4TEexc.js} +4 -4
- package/dist/{recovery-adapter-DXIa6Q_V.js → recovery-adapter-B2XqKqkY.js} +7 -7
- package/dist/{recovery-adapter-CLaKhchi.js → recovery-adapter-G2cG0rVa.js} +3 -3
- package/dist/{recovery-adapter-DdG68ESY.js → recovery-adapter-T9ng5nO9.js} +3 -3
- package/dist/{recovery-prompt-ksHwpSU2.js → recovery-prompt-9MKTTZMu.js} +1 -1
- package/dist/{redact-CNUi9G7H.js → redact-CFlw_DPT.js} +2 -2
- package/dist/{redact-snapshot-Blr7A6nM.js → redact-snapshot-Dea1X-KK.js} +2 -2
- package/dist/{register.agent-BftkCSzq.js → register.agent-70W8aMjZ.js} +128 -128
- package/dist/register.configure-Dw8LtvvS.js +170 -0
- package/dist/{register.maintenance-DLvVIgj7.js → register.maintenance-BUn0KquU.js} +129 -129
- package/dist/{register.message-BkfkSHmX.js → register.message-B90VvAa9.js} +103 -103
- package/dist/{register.onboard-CoQl5Y0I.js → register.onboard-CvtqqARL.js} +24 -24
- package/dist/{register.setup-DLKvWced.js → register.setup-NvomFGXG.js} +27 -27
- package/dist/{register.status-health-sessions-BXjWk0Rf.js → register.status-health-sessions-raLVwOhK.js} +120 -120
- package/dist/{replay-DEbuRxsV.js → replay-BNSm4qb0.js} +1 -1
- package/dist/{replies-BaVRDgoi.js → replies-CX9Xycso.js} +4 -4
- package/dist/{replies-sGMpONzr.js → replies-CyFLfpjN.js} +4 -4
- package/dist/{reply-B_ZnZCbr.js → reply-BBWUbEms.js} +189 -189
- package/dist/{reply-directives-VihT5tNP.js → reply-directives-Ba6CeI2G.js} +2 -2
- package/dist/{reply-directives-DAFMLUk3.js → reply-directives-MYQDM4s1.js} +2 -2
- package/dist/{reply-prefix-C9ItOkY0.js → reply-prefix-DIYk1Bw7.js} +1 -1
- package/dist/{reply-prefix-C_GmvupX.js → reply-prefix-JMlWztfO.js} +1 -1
- package/dist/{resolve-route-ESAi6vf5.js → resolve-route-CgDtn6OF.js} +5 -5
- package/dist/{resolve-route-DItBlJTa.js → resolve-route-D59i7uq2.js} +5 -5
- package/dist/{rpc-C7PAon6G.js → rpc-Bb2CwMXM.js} +3 -3
- package/dist/{runs-BAWrhAPG.js → runs-D22rrc2J.js} +8 -8
- package/dist/{runs-DAxZxrkH.js → runs-PqmTA3bR.js} +7 -7
- package/dist/{runs-kMwrTbuD.js → runs-s2c7mYPm.js} +3 -3
- package/dist/{runtime-C2XMT9jZ.js → runtime-9MDCiTo5.js} +4 -4
- package/dist/{runtime-config-collectors-D8giqZX1.js → runtime-config-collectors-DsDVTJ9L.js} +1 -1
- package/dist/{runtime-guard-Ce3hA73q.js → runtime-guard-aqfwJvKU.js} +1 -1
- package/dist/{sandbox-CaDaMuIS.js → sandbox-72tGhoFB.js} +19 -19
- package/dist/{sandbox-cli-D09-_MhG.js → sandbox-cli-P_SvHFh0.js} +29 -29
- package/dist/{secrets-cli-D1rwgI_i.js → secrets-cli-BfWs6PM7.js} +19 -19
- package/dist/{security-cli-DQbLcpvg.js → security-cli-bCnaX9U1.js} +46 -46
- package/dist/{send-st-VqnD1.js → send-BetYjLRt.js} +6 -6
- package/dist/{send-9_nNhllu.js → send-CgOqje6b.js} +14 -14
- package/dist/{send-CSeSlBgP.js → send-D3ylt51d.js} +13 -13
- package/dist/{send-BYpMIfkf.js → send-DFDs0YVo.js} +8 -8
- package/dist/{send-xSaCPdp5.js → send-DIo9GaAd.js} +6 -6
- package/dist/{send-n4HUnjJL.js → send-DQKTiyZo.js} +14 -14
- package/dist/{send-Dlz0xalZ.js → send-DQsInb-M.js} +6 -6
- package/dist/{send-BHuAEQE3.js → send-DoMFLnPv.js} +1 -1
- package/dist/{send-DbTOnKy8.js → send-EUMoqR5x.js} +6 -6
- package/dist/{send-CvwC56PP.js → send-NC1Swsc7.js} +7 -7
- package/dist/{send-CUUoNRjN.js → send-isYw7gNy.js} +7 -7
- package/dist/{server-DNrc5ufA.js → server-COf8596I.js} +27 -27
- package/dist/{server-context-hLmBApV6.js → server-context-DPXHpsDT.js} +12 -12
- package/dist/{server-lifecycle-CuLYk0SE.js → server-lifecycle-BiT2RK1-.js} +3 -3
- package/dist/{server-middleware-DGHNQp4r.js → server-middleware-CJid88Uz.js} +1 -1
- package/dist/{server-node-events-32NLKlcp.js → server-node-events-DmNKXZqH.js} +103 -103
- package/dist/{service-CjlQTRXS.js → service-BYi3UODF.js} +15 -15
- package/dist/{session-consumer-agents-Tp24W-mn.js → session-consumer-agents-BNkbq0X0.js} +1 -1
- package/dist/{session-consumer-claim-sweep-DTdZIrGU.js → session-consumer-claim-sweep-qTcERA_U.js} +10 -10
- package/dist/{session-cost-usage-C8x0Ma2X.js → session-cost-usage-BuaT9Epp.js} +3 -3
- package/dist/{session-key-DeVMAKRZ.js → session-key-BxmJDkEI.js} +1 -1
- package/dist/{session-key-resolution-bGrvOHtd.js → session-key-resolution-4d3BG0mA.js} +5 -5
- package/dist/{session-meta-B70hyZ6H.js → session-meta-B2VOXhYi.js} +2 -2
- package/dist/{session-meta-Dhf9REA2.js → session-meta-qJ09DaOQ.js} +2 -2
- package/dist/{session-storage-BKoYylot.js → session-storage-v3yHC3M6.js} +9 -9
- package/dist/{sessions-oXRiWY1z.js → sessions-D_Z9ewVp.js} +18 -18
- package/dist/{sessions-claims-status-COBv4-9y.js → sessions-claims-status-BlZz_25A.js} +14 -14
- package/dist/{shared-CdvXdH5h.js → shared-BxpBpS9X.js} +2 -2
- package/dist/{shared-BzyqCGAR.js → shared-C8TVt9Tv.js} +4 -4
- package/dist/{skill-commands-DFbO0Pwj.js → skill-commands-BjOR0izt.js} +5 -5
- package/dist/{skill-commands-CcC4TPnA.js → skill-commands-D3U8ty_X.js} +7 -7
- package/dist/{skill-scanner-CtZuUDBn.js → skill-scanner-XMBq6JrQ.js} +7 -7
- package/dist/{skills-DX80qJzU.js → skills-BJ7s0Wfe.js} +6 -6
- package/dist/{skills-CD8SFzX0.js → skills-DueobKPc.js} +6 -6
- package/dist/{skills-cli-7_VZ_au1.js → skills-cli-Dt-g2aoD.js} +12 -12
- package/dist/{skills-install-O8JPmNxm.js → skills-install-CQfmtCLR.js} +9 -9
- package/dist/{skills-status-BE_oa3Dd.js → skills-status-Du76K8bv.js} +3 -3
- package/dist/{ssrf-DjjqWxdp.js → ssrf-CUBo6TIZ.js} +1 -1
- package/dist/{status--Lvi3tz9.js → status-C3eqPaNb.js} +38 -38
- package/dist/{status.update-CWMFCByv.js → status.update-BlFaGKuA.js} +2 -2
- package/dist/{store-CGnsRznR.js → store-DS83zC6I.js} +7 -7
- package/dist/{store-DIKyCinG.js → store-DwfBHQl9.js} +2 -2
- package/dist/{subsystem-BCjklMkJ.js → subsystem-CnnjiGCl.js} +4 -4
- package/dist/{subsystem-DU1uzmTH.js → subsystem-Cwzs7yN0.js} +1 -1
- package/dist/{supervisor-8TdOYzAn.js → supervisor-BkHwVnJ0.js} +2 -2
- package/dist/{supervisor-recovery-adapter-DvR4we0D.js → supervisor-recovery-adapter-Cmw-7toT.js} +10 -10
- package/dist/{system-cli-BJG4flcz.js → system-cli-DZo_Xeus.js} +16 -16
- package/dist/{system-run-command-B9eoNN_E.js → system-run-command-BCygkYAm.js} +2 -2
- package/dist/{systemd-BuE-CYAD.js → systemd-BD_TMCHG.js} +11 -11
- package/dist/{systemd-hints-_4BTlat8.js → systemd-hints-hI4IEn0G.js} +9 -9
- package/dist/{systemd-linger-BCLLdRLW.js → systemd-linger-CzdYcYLi.js} +2 -2
- package/dist/{table-BZCTLfip.js → table-WoBQBfIP.js} +2 -2
- package/dist/{tables-BvxLmMF8.js → tables-CwG3ab8g.js} +1 -1
- package/dist/{tables-D07R1ft9.js → tables-Dzfx8UwI.js} +1 -1
- package/dist/{tailnet-DZu3euUT.js → tailnet-CQ7A44gN.js} +1 -1
- package/dist/{tailscale--cedl8k7.js → tailscale-DfhEC7E3.js} +3 -3
- package/dist/{task-pipeline-boot-vMI_gNlk.js → task-pipeline-boot-h8Guy4BE.js} +102 -102
- package/dist/{task-runlog-retention-BE0zP95z.js → task-runlog-retention-AeS4_zJ9.js} +5 -5
- package/dist/{tasks-BWHXch35.js → tasks-CA7n154j.js} +14 -14
- package/dist/{tokens-9Mla_HDp.js → tokens-CtSIDTuO.js} +1 -1
- package/dist/{tokens-BkGFSf77.js → tokens-D0Wagzn5.js} +1 -1
- package/dist/{tool-display-D2nTy2g3.js → tool-display-B_gL6TP4.js} +1 -1
- package/dist/{tool-loop-detection-dvzbYw_Z.js → tool-loop-detection-B_KXzW0J.js} +2 -2
- package/dist/{tool-loop-detection-8uvf8mSd.js → tool-loop-detection-CAixnaA2.js} +1 -1
- package/dist/{trash-DWehd5bk.js → trash-B2rgeHwV.js} +3 -3
- package/dist/{tui-BA_R7cVj.js → tui-BkUR35kr.js} +9 -9
- package/dist/{tui-cli-DhmKosuh.js → tui-cli-Dx8Rq2LS.js} +34 -34
- package/dist/{update-FpPZoisy.js → update-BD9vD-O3.js} +3 -3
- package/dist/{update-cli-DPr6FZQx.js → update-cli-CtGdmnAx.js} +139 -139
- package/dist/{update-runner-CP_x4nIG.js → update-runner-CRgsunyU.js} +18 -18
- package/dist/{user-run-recording-CB_RnvEh.js → user-run-recording-CboLnb8e.js} +2 -2
- package/dist/{user-run-recording-Bw40Tyil.js → user-run-recording-Cx6DoQwH.js} +2 -2
- package/dist/{utils-CfKD3xTt.js → utils-RlDPCeiE.js} +7 -7
- package/dist/{validation-cli-BLYVzQJW.js → validation-cli-CP7Wtoi4.js} +102 -102
- package/dist/{web-cli-DmXJYuSq.js → web-cli-Cqrw6g5k.js} +3 -3
- package/dist/{web-client-assets-CISlpYd9.js → web-client-assets-BC6Q9ril.js} +1 -1
- package/dist/{webhooks-cli-GjZJ14FF.js → webhooks-cli-DO81W6GV.js} +13 -13
- package/dist/{widearea-dns-FDkEBJ9c.js → widearea-dns-BfsfK5rQ.js} +1 -1
- package/dist/{with-timeout-D2Gp5kcM.js → with-timeout-Cpd_eIHB.js} +6 -6
- package/dist/{workspace-pXJaZvDa.js → workspace-Btbae6MM.js} +2 -2
- package/dist/{workspace-DwaGPsZ8.js → workspace-DpuyoXQY.js} +2 -2
- package/dist/{workspace-dirs-DWQAyUTc.js → workspace-dirs-De3z5PEp.js} +1 -1
- package/dist/{ws-BkTpOVYX.js → ws-1r6e9Dys.js} +2 -2
- package/dist/{wsl-ypAd8C-g.js → wsl-D6pCsktY.js} +2 -2
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/clawbot-cli-WGBrdTF4.js +0 -36
- package/dist/cli-NNNYfyG4.js +0 -166
- package/dist/register.configure-Dt0U1PJD.js +0 -170
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BBP4yd-2.js";
|
|
3
|
-
import { A as setVerbose, F as isRich, I as theme, P as colorize, g as resolveUserPath, v as shortenHomeInString, y as shortenHomePath } from "./utils-
|
|
4
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { m as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { Al as splitShellArgs, Nt as loadConfig, Pa as parseDurationMs } from "./model-selection-
|
|
7
|
-
import { n as isPrimarySessionTranscriptFileName, p as resolveSessionTranscriptsDirForAgent } from "./artifacts-
|
|
3
|
+
import { A as setVerbose, F as isRich, I as theme, P as colorize, g as resolveUserPath, v as shortenHomeInString, y as shortenHomePath } from "./utils-RlDPCeiE.js";
|
|
4
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-C7A_L0Z6.js";
|
|
5
|
+
import { m as defaultRuntime, t as createSubsystemLogger } from "./subsystem-Cwzs7yN0.js";
|
|
6
|
+
import { Al as splitShellArgs, Nt as loadConfig, Pa as parseDurationMs } from "./model-selection-Xe4QEYsC.js";
|
|
7
|
+
import { n as isPrimarySessionTranscriptFileName, p as resolveSessionTranscriptsDirForAgent } from "./artifacts-CSUzSsVF.js";
|
|
8
8
|
import { i as formatErrorMessage } from "./errors-CtrilAlY.js";
|
|
9
|
-
import { r as getMemoryCommandSecretTargetIds, s as resolveCommandSecretRefsViaGateway } from "./command-secret-targets-
|
|
10
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
11
|
-
import { t as formatDocsLink } from "./links-
|
|
9
|
+
import { r as getMemoryCommandSecretTargetIds, s as resolveCommandSecretRefsViaGateway } from "./command-secret-targets-Gl-QK3RO.js";
|
|
10
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-96au1v0j.js";
|
|
11
|
+
import { t as formatDocsLink } from "./links-DA_gi3gE.js";
|
|
12
12
|
import { r as withManager } from "./cli-utils-CH2y4E2f.js";
|
|
13
|
-
import { t as formatHelpExamples } from "./help-format-
|
|
14
|
-
import { n as withProgress, r as withProgressTotals } from "./progress-
|
|
13
|
+
import { t as formatHelpExamples } from "./help-format-RRPzsWkf.js";
|
|
14
|
+
import { n as withProgress, r as withProgressTotals } from "./progress-Cbn-oYkW.js";
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import path from "node:path";
|
|
18
|
-
import
|
|
18
|
+
import fs$1 from "node:fs/promises";
|
|
19
19
|
|
|
20
20
|
//#region src/memory/backend-config.ts
|
|
21
21
|
const DEFAULT_BACKEND = "builtin";
|
|
@@ -233,7 +233,7 @@ async function getMemorySearchManager(params) {
|
|
|
233
233
|
if (cached) return { manager: cached };
|
|
234
234
|
}
|
|
235
235
|
try {
|
|
236
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
236
|
+
const { QmdMemoryManager } = await import("./qmd-manager-BQrWBuxv.js");
|
|
237
237
|
const primary = await QmdMemoryManager.create({
|
|
238
238
|
cfg: params.cfg,
|
|
239
239
|
agentId: params.agentId,
|
|
@@ -245,7 +245,7 @@ async function getMemorySearchManager(params) {
|
|
|
245
245
|
const wrapper = new FallbackMemoryManager({
|
|
246
246
|
primary,
|
|
247
247
|
fallbackFactory: async () => {
|
|
248
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
248
|
+
const { MemoryIndexManager } = await import("./manager-CVY-YEjj.js").then((n) => n.t);
|
|
249
249
|
return await MemoryIndexManager.get(params);
|
|
250
250
|
}
|
|
251
251
|
}, () => {
|
|
@@ -260,7 +260,7 @@ async function getMemorySearchManager(params) {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
try {
|
|
263
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
263
|
+
const { MemoryIndexManager } = await import("./manager-CVY-YEjj.js").then((n) => n.t);
|
|
264
264
|
return { manager: await MemoryIndexManager.get(params) };
|
|
265
265
|
} catch (err) {
|
|
266
266
|
return {
|
|
@@ -451,7 +451,7 @@ async function withMemoryManagerForAgent(params) {
|
|
|
451
451
|
}
|
|
452
452
|
async function checkReadableFile(pathname) {
|
|
453
453
|
try {
|
|
454
|
-
await
|
|
454
|
+
await fs$1.access(pathname, fs.constants.R_OK);
|
|
455
455
|
return { exists: true };
|
|
456
456
|
} catch (err) {
|
|
457
457
|
const code = err.code;
|
|
@@ -468,7 +468,7 @@ async function scanSessionFiles(agentId) {
|
|
|
468
468
|
try {
|
|
469
469
|
return {
|
|
470
470
|
source: "sessions",
|
|
471
|
-
totalFiles: (await
|
|
471
|
+
totalFiles: (await fs$1.readdir(sessionsDir, { withFileTypes: true })).filter((entry) => entry.isFile() && isPrimarySessionTranscriptFileName(entry.name)).length,
|
|
472
472
|
issues
|
|
473
473
|
};
|
|
474
474
|
} catch (err) {
|
|
@@ -500,7 +500,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
500
500
|
if (alt.issue) issues.push(alt.issue);
|
|
501
501
|
const resolvedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
502
502
|
for (const extraPath of resolvedExtraPaths) try {
|
|
503
|
-
if ((await
|
|
503
|
+
if ((await fs$1.lstat(extraPath)).isSymbolicLink()) continue;
|
|
504
504
|
const extraCheck = await checkReadableFile(extraPath);
|
|
505
505
|
if (extraCheck.issue) issues.push(extraCheck.issue);
|
|
506
506
|
} catch (err) {
|
|
@@ -510,7 +510,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
510
510
|
}
|
|
511
511
|
let dirReadable = null;
|
|
512
512
|
try {
|
|
513
|
-
await
|
|
513
|
+
await fs$1.access(memoryDir, fs.constants.R_OK);
|
|
514
514
|
dirReadable = true;
|
|
515
515
|
} catch (err) {
|
|
516
516
|
const code = err.code;
|
|
@@ -558,7 +558,7 @@ async function summarizeQmdIndexArtifact(manager) {
|
|
|
558
558
|
if (!dbPath) return null;
|
|
559
559
|
let stat;
|
|
560
560
|
try {
|
|
561
|
-
stat = await
|
|
561
|
+
stat = await fs$1.stat(dbPath);
|
|
562
562
|
} catch (err) {
|
|
563
563
|
const code = err.code;
|
|
564
564
|
if (code === "ENOENT") throw new Error(`QMD index file not found: ${shortenHomePath(dbPath)}`, { cause: err });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Gu as resolveOpenClawAgentDir, d as normalizeProviderId, ud as DEFAULT_CONTEXT_TOKENS } from "./model-selection-
|
|
3
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
2
|
+
import { Gu as resolveOpenClawAgentDir, d as normalizeProviderId, ud as DEFAULT_CONTEXT_TOKENS } from "./model-selection-Xe4QEYsC.js";
|
|
3
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-BnKlqzf2.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/model-alias-lines.ts
|
|
6
6
|
function buildModelAliasLines(cfg) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { Gu as resolveOpenClawAgentDir, Nt as loadConfig } from "./model-selection-
|
|
3
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-Cwzs7yN0.js";
|
|
2
|
+
import { Gu as resolveOpenClawAgentDir, Nt as loadConfig } from "./model-selection-Xe4QEYsC.js";
|
|
3
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-CZHJduVo.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/model-catalog.ts
|
|
6
6
|
const log = createSubsystemLogger("model-catalog");
|
|
7
7
|
let modelCatalogPromise = null;
|
|
8
8
|
let hasLoggedModelCatalogError = false;
|
|
9
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
9
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-BnKlqzf2.js").then((n) => n.r);
|
|
10
10
|
let importPiSdk = defaultImportPiSdk;
|
|
11
11
|
const CODEX_PROVIDER = "openai-codex";
|
|
12
12
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { F as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
3
|
-
import { Fu as upsertAuthProfileWithLock, Lu as ensureAuthProfileStore, at as resolveEnvApiKey, c as modelKey, d as normalizeProviderId, dd as DEFAULT_MODEL, fd as DEFAULT_PROVIDER, g as resolveConfiguredModelRef, ju as listProfilesForProvider, r as buildModelAliasIndex, t as buildAllowedModelSet, tt as getCustomProviderApiKey } from "./model-selection-
|
|
4
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
5
|
-
import { i as formatTokenK } from "./shared-
|
|
2
|
+
import { F as resolveAgentModelPrimaryValue } from "./agent-scope-C7A_L0Z6.js";
|
|
3
|
+
import { Fu as upsertAuthProfileWithLock, Lu as ensureAuthProfileStore, at as resolveEnvApiKey, c as modelKey, d as normalizeProviderId, dd as DEFAULT_MODEL, fd as DEFAULT_PROVIDER, g as resolveConfiguredModelRef, ju as listProfilesForProvider, r as buildModelAliasIndex, t as buildAllowedModelSet, tt as getCustomProviderApiKey } from "./model-selection-Xe4QEYsC.js";
|
|
4
|
+
import { n as loadModelCatalog } from "./model-catalog-DjGr6SKN.js";
|
|
5
|
+
import { i as formatTokenK } from "./shared-C8TVt9Tv.js";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/openai-codex-model-default.ts
|
|
8
8
|
const OPENAI_CODEX_DEFAULT_MODEL = "openai-codex/gpt-5.3-codex";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { _ as toAgentModelListLike, a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, g as resolveAgentModelPrimaryValue, l as resolveDefaultAgentId, r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { _ as toAgentModelListLike, a as resolveAgentEffectiveModelPrimary, c as resolveAgentWorkspaceDir, g as resolveAgentModelPrimaryValue, l as resolveDefaultAgentId, r as resolveAgentConfig } from "./agent-scope-B5BtLhIC.js";
|
|
3
3
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as expandHomePrefix, o as resolveOAuthDir, r as resolveConfigPath, s as resolveOAuthPath, t as DEFAULT_GATEWAY_PORT } from "./paths-Cvc9EM8Y.js";
|
|
4
|
-
import { A as resolveConfigIncludes, D as ConfigIncludeError, E as normalizeConfigPaths, F as openBoundaryFileSync, G as applyConfigEnvVars, H as isPathInside$2, J as MissingEnvVarError, M as isPathInside$1, O as INCLUDE_KEY, X as resolveConfigEnvVars, Y as containsEnvVarReference, b as getChildLogger, dt as sleep, f as logVerbose, it as normalizeE164, j as isBlockedObjectKey, k as readConfigIncludeFileWithGuards, n as stripAnsi, ot as resolveConfigDir, q as sanitizeHostExecEnv, rt as isRecord$3, st as resolveUserPath, t as createSubsystemLogger, w as createFileLogWriter } from "./subsystem-
|
|
4
|
+
import { A as resolveConfigIncludes, D as ConfigIncludeError, E as normalizeConfigPaths, F as openBoundaryFileSync, G as applyConfigEnvVars, H as isPathInside$2, J as MissingEnvVarError, M as isPathInside$1, O as INCLUDE_KEY, X as resolveConfigEnvVars, Y as containsEnvVarReference, b as getChildLogger, dt as sleep, f as logVerbose, it as normalizeE164, j as isBlockedObjectKey, k as readConfigIncludeFileWithGuards, n as stripAnsi, ot as resolveConfigDir, q as sanitizeHostExecEnv, rt as isRecord$3, st as resolveUserPath, t as createSubsystemLogger, w as createFileLogWriter } from "./subsystem-CnnjiGCl.js";
|
|
5
5
|
import { t as isPlainObject$2 } from "./plain-object-CLm2c5Nu.js";
|
|
6
|
-
import { A as normalizeMainKey, C as buildAgentMainSessionKey, E as expandIdentityLinksToMatchKeys, K as parseAgentSessionKey, L as DEFAULT_ACCOUNT_ID, R as normalizeAccountId$1, S as RAW_PEER_KEY_PREFIX, _ as runExec, k as normalizeAgentId, y as DEFAULT_AGENT_ID, z as normalizeOptionalAccountId } from "./workspace-
|
|
6
|
+
import { A as normalizeMainKey, C as buildAgentMainSessionKey, E as expandIdentityLinksToMatchKeys, K as parseAgentSessionKey, L as DEFAULT_ACCOUNT_ID, R as normalizeAccountId$1, S as RAW_PEER_KEY_PREFIX, _ as runExec, k as normalizeAgentId, y as DEFAULT_AGENT_ID, z as normalizeOptionalAccountId } from "./workspace-DpuyoXQY.js";
|
|
7
7
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-WSjo05vB.js";
|
|
8
|
-
import { a as registerInternalHook, s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-
|
|
9
|
-
import { _ as runTasksWithConcurrency, a as formatSessionArchiveTimestamp, c as parseSessionArchiveTimestamp, d as resolveSessionFilePath, g as resolveStorePath, m as resolveSessionTranscriptPathInDir, o as isPrimarySessionTranscriptFileName, p as resolveSessionTranscriptPath, s as isSessionArchiveArtifactName, t as redactSensitiveText, u as resolveDefaultSessionStorePath } from "./redact-
|
|
8
|
+
import { a as registerInternalHook, s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-DnKoTzf4.js";
|
|
9
|
+
import { _ as runTasksWithConcurrency, a as formatSessionArchiveTimestamp, c as parseSessionArchiveTimestamp, d as resolveSessionFilePath, g as resolveStorePath, m as resolveSessionTranscriptPathInDir, o as isPrimarySessionTranscriptFileName, p as resolveSessionTranscriptPath, s as isSessionArchiveArtifactName, t as redactSensitiveText, u as resolveDefaultSessionStorePath } from "./redact-CFlw_DPT.js";
|
|
10
10
|
import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-BnH5Yy9T.js";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import fs, { appendFile, chmod, mkdir, open, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
13
13
|
import os, { userInfo } from "node:os";
|
|
14
14
|
import path, { join } from "node:path";
|
|
15
15
|
import fs$1 from "node:fs";
|
|
16
|
-
import
|
|
16
|
+
import json5 from "json5";
|
|
17
17
|
import util, { isDeepStrictEqual } from "node:util";
|
|
18
18
|
import { execFileSync, spawn } from "node:child_process";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
@@ -22708,7 +22708,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
22708
22708
|
function normalizeDeps(overrides = {}) {
|
|
22709
22709
|
return {
|
|
22710
22710
|
fs: overrides.fs ?? fs$1,
|
|
22711
|
-
json5: overrides.json5 ??
|
|
22711
|
+
json5: overrides.json5 ?? json5,
|
|
22712
22712
|
env: overrides.env ?? process.env,
|
|
22713
22713
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
22714
22714
|
configPath: overrides.configPath ?? "",
|
|
@@ -22719,11 +22719,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
22719
22719
|
if (env !== process.env) return;
|
|
22720
22720
|
loadDotEnv({ quiet: true });
|
|
22721
22721
|
}
|
|
22722
|
-
function parseConfigJson5(raw, json5 =
|
|
22722
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
22723
22723
|
try {
|
|
22724
22724
|
return {
|
|
22725
22725
|
ok: true,
|
|
22726
|
-
parsed: json5.parse(raw)
|
|
22726
|
+
parsed: json5$1.parse(raw)
|
|
22727
22727
|
};
|
|
22728
22728
|
} catch (err) {
|
|
22729
22729
|
return {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { _ as expandHomePrefix, a as resolveCanonicalConfigPath, c as resolveDefaultConfigCandidates, d as resolveIsNixMode, f as resolveLegacyStateDirs, g as resolveStateDir, h as resolveOAuthPath, i as isNixMode, l as resolveGatewayLockDir, m as resolveOAuthDir, n as DEFAULT_GATEWAY_PORT, o as resolveConfigPath, p as resolveNewStateDir, r as STATE_DIR, s as resolveConfigPathCandidate, t as CONFIG_PATH, u as resolveGatewayPort, y as resolveRequiredHomeDir } from "./paths-BBP4yd-2.js";
|
|
3
|
-
import { At as resolveConfigEnvVars, C as truncateUtf16Safe, Et as sanitizeHostExecEnv, G as createFileLogWriter, L as getChildLogger, O as logVerbose, Ot as MissingEnvVarError, St as applyConfigEnvVars, at as resolveConfigIncludes, b as sleep, ct as isPathInside$1, d as isRecord$3, dt as openBoundaryFileSync, et as normalizeConfigPaths, f as normalizeE164, g as resolveUserPath, it as readConfigIncludeFileWithGuards, kt as containsEnvVarReference, m as resolveConfigDir, nt as INCLUDE_KEY, ot as isBlockedObjectKey, tt as ConfigIncludeError, yt as isPathInside$2 } from "./utils-
|
|
3
|
+
import { At as resolveConfigEnvVars, C as truncateUtf16Safe, Et as sanitizeHostExecEnv, G as createFileLogWriter, L as getChildLogger, O as logVerbose, Ot as MissingEnvVarError, St as applyConfigEnvVars, at as resolveConfigIncludes, b as sleep, ct as isPathInside$1, d as isRecord$3, dt as openBoundaryFileSync, et as normalizeConfigPaths, f as normalizeE164, g as resolveUserPath, it as readConfigIncludeFileWithGuards, kt as containsEnvVarReference, m as resolveConfigDir, nt as INCLUDE_KEY, ot as isBlockedObjectKey, tt as ConfigIncludeError, yt as isPathInside$2 } from "./utils-RlDPCeiE.js";
|
|
4
4
|
import { t as isPlainObject$2 } from "./plain-object-CLm2c5Nu.js";
|
|
5
|
-
import { F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, d as resolveDefaultAgentId, i as resolveAgentConfig, o as resolveAgentEffectiveModelPrimary, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import { l as stripAnsi, t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { D as BACKGROUND_SESSION_KEY_SEGMENT, E as normalizeOptionalAccountId, I as parseAgentSessionKey, O as HEARTBEAT_SESSION_KEY_SEGMENT, T as normalizeAccountId$1, _ as resolveConfiguredCanonicalIdentity, a as buildAgentMainSessionKey, c as computeIdentityLinkMatchKeys, g as resolveCanonicalIdentity, i as RAW_PEER_KEY_PREFIX, k as WAKE_GATE_SESSION_KEY_SEGMENT, l as computeIdentityLinkScopedMatchKey, m as normalizeMainKey, p as normalizeAgentId, t as DEFAULT_AGENT_ID, u as expandIdentityLinksToMatchKeys, w as DEFAULT_ACCOUNT_ID } from "./session-key-
|
|
8
|
-
import { n as runExec } from "./exec-
|
|
5
|
+
import { F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, d as resolveDefaultAgentId, i as resolveAgentConfig, o as resolveAgentEffectiveModelPrimary, u as resolveAgentWorkspaceDir } from "./agent-scope-C7A_L0Z6.js";
|
|
6
|
+
import { l as stripAnsi, t as createSubsystemLogger } from "./subsystem-Cwzs7yN0.js";
|
|
7
|
+
import { D as BACKGROUND_SESSION_KEY_SEGMENT, E as normalizeOptionalAccountId, I as parseAgentSessionKey, O as HEARTBEAT_SESSION_KEY_SEGMENT, T as normalizeAccountId$1, _ as resolveConfiguredCanonicalIdentity, a as buildAgentMainSessionKey, c as computeIdentityLinkMatchKeys, g as resolveCanonicalIdentity, i as RAW_PEER_KEY_PREFIX, k as WAKE_GATE_SESSION_KEY_SEGMENT, l as computeIdentityLinkScopedMatchKey, m as normalizeMainKey, p as normalizeAgentId, t as DEFAULT_AGENT_ID, u as expandIdentityLinksToMatchKeys, w as DEFAULT_ACCOUNT_ID } from "./session-key-BxmJDkEI.js";
|
|
8
|
+
import { n as runExec } from "./exec-g-Nx0X6p.js";
|
|
9
9
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-D9l3eOWF.js";
|
|
10
|
-
import { n as isPidAlive, t as getProcessStartTime } from "./pid-alive-
|
|
11
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
10
|
+
import { n as isPidAlive, t as getProcessStartTime } from "./pid-alive-C3qbS2SA.js";
|
|
11
|
+
import { t as isTruthyEnvValue } from "./env-uQrKrEGz.js";
|
|
12
12
|
import { n as resolveHostVersionInfo, t as VERSION } from "./version-C459_ZQ5.js";
|
|
13
|
-
import { c as resolveSessionFilePath, d as resolveSessionTranscriptPathInDir, h as runTasksWithConcurrency, i as parseSessionArchiveTimestamp, m as resolveStorePath, n as isPrimarySessionTranscriptFileName, r as isSessionArchiveArtifactName, s as resolveDefaultSessionStorePath, t as formatSessionArchiveTimestamp, u as resolveSessionTranscriptPath } from "./artifacts-
|
|
13
|
+
import { c as resolveSessionFilePath, d as resolveSessionTranscriptPathInDir, h as runTasksWithConcurrency, i as parseSessionArchiveTimestamp, m as resolveStorePath, n as isPrimarySessionTranscriptFileName, r as isSessionArchiveArtifactName, s as resolveDefaultSessionStorePath, t as formatSessionArchiveTimestamp, u as resolveSessionTranscriptPath } from "./artifacts-CSUzSsVF.js";
|
|
14
14
|
import { t as createWork } from "./envelope-Digt3Lnf.js";
|
|
15
15
|
import { a as serializeRetryPolicy, i as parseRetryPolicy, n as computeNextAvailableAtMs, r as isRetryExhausted, t as DEFAULT_TASK_RETRY_POLICY } from "./retry-policy-FBwX2QEP.js";
|
|
16
16
|
import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-Bpw8crN9.js";
|
|
@@ -26,7 +26,7 @@ import fs, { createReadStream } from "node:fs";
|
|
|
26
26
|
import os, { userInfo } from "node:os";
|
|
27
27
|
import path, { join } from "node:path";
|
|
28
28
|
import JSON5 from "json5";
|
|
29
|
-
import
|
|
29
|
+
import fs$1, { appendFile, chmod, mkdir, open, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
30
30
|
import util, { isDeepStrictEqual } from "node:util";
|
|
31
31
|
import { execFileSync, spawn } from "node:child_process";
|
|
32
32
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -307,7 +307,7 @@ function isCreatedAtStale(createdAt, staleMs) {
|
|
|
307
307
|
}
|
|
308
308
|
async function readLockPayload$1(lockPath) {
|
|
309
309
|
try {
|
|
310
|
-
const raw = await
|
|
310
|
+
const raw = await fs$1.readFile(lockPath, "utf8");
|
|
311
311
|
const parsed = JSON.parse(raw);
|
|
312
312
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
|
|
313
313
|
const payload = {
|
|
@@ -324,7 +324,7 @@ async function readLockPayload$1(lockPath) {
|
|
|
324
324
|
}
|
|
325
325
|
async function chmodIfSupported$2(filePath, mode) {
|
|
326
326
|
try {
|
|
327
|
-
await
|
|
327
|
+
await fs$1.chmod(filePath, mode);
|
|
328
328
|
} catch (err) {
|
|
329
329
|
if (process.platform === "win32") return;
|
|
330
330
|
throw err;
|
|
@@ -333,15 +333,15 @@ async function chmodIfSupported$2(filePath, mode) {
|
|
|
333
333
|
async function resolveNormalizedFilePath(filePath, options) {
|
|
334
334
|
const resolved = path.resolve(filePath);
|
|
335
335
|
const dir = path.dirname(resolved);
|
|
336
|
-
if (options.directoryMode === void 0) await
|
|
336
|
+
if (options.directoryMode === void 0) await fs$1.mkdir(dir, { recursive: true });
|
|
337
337
|
else {
|
|
338
|
-
await
|
|
338
|
+
await fs$1.mkdir(dir, {
|
|
339
339
|
recursive: true,
|
|
340
340
|
mode: options.directoryMode
|
|
341
341
|
});
|
|
342
342
|
await chmodIfSupported$2(dir, options.directoryMode);
|
|
343
343
|
}
|
|
344
|
-
const realDir = await
|
|
344
|
+
const realDir = await fs$1.realpath(dir);
|
|
345
345
|
return path.join(realDir, path.basename(resolved));
|
|
346
346
|
}
|
|
347
347
|
async function isStaleLock(lockPath, staleMs) {
|
|
@@ -356,7 +356,7 @@ async function isStaleLock(lockPath, staleMs) {
|
|
|
356
356
|
return false;
|
|
357
357
|
}
|
|
358
358
|
try {
|
|
359
|
-
const stat = await
|
|
359
|
+
const stat = await fs$1.stat(lockPath);
|
|
360
360
|
return Date.now() - stat.mtimeMs > staleMs;
|
|
361
361
|
} catch {
|
|
362
362
|
return true;
|
|
@@ -380,7 +380,7 @@ async function releaseHeldLock$1(normalizedFile) {
|
|
|
380
380
|
throw emitLockReleaseWarning("close", current.lockPath, err);
|
|
381
381
|
}
|
|
382
382
|
try {
|
|
383
|
-
await
|
|
383
|
+
await fs$1.rm(current.lockPath, { force: true });
|
|
384
384
|
} catch (err) {
|
|
385
385
|
current.count = 1;
|
|
386
386
|
throw emitLockReleaseWarning("remove", current.lockPath, err);
|
|
@@ -403,7 +403,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
403
403
|
let attempt = 0;
|
|
404
404
|
let staleReclaims = 0;
|
|
405
405
|
while (attempt < attempts) try {
|
|
406
|
-
const handle = await
|
|
406
|
+
const handle = await fs$1.open(lockPath, "wx");
|
|
407
407
|
try {
|
|
408
408
|
await handle.writeFile(JSON.stringify({
|
|
409
409
|
pid: process.pid,
|
|
@@ -412,7 +412,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
412
412
|
}, null, 2), "utf8");
|
|
413
413
|
} catch (writeErr) {
|
|
414
414
|
await handle.close().catch(() => void 0);
|
|
415
|
-
await
|
|
415
|
+
await fs$1.rm(lockPath, { force: true }).catch(() => void 0);
|
|
416
416
|
throw writeErr;
|
|
417
417
|
}
|
|
418
418
|
HELD_LOCKS$1.set(normalizedFile, {
|
|
@@ -428,7 +428,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
428
428
|
} catch (err) {
|
|
429
429
|
if (err.code !== "EEXIST") throw err;
|
|
430
430
|
if (await isStaleLock(lockPath, options.stale)) {
|
|
431
|
-
await
|
|
431
|
+
await fs$1.rm(lockPath, { force: true }).catch(() => void 0);
|
|
432
432
|
if (staleReclaims < attempts) {
|
|
433
433
|
staleReclaims += 1;
|
|
434
434
|
continue;
|
|
@@ -1731,7 +1731,7 @@ function createIcaclsResetCommand(targetPath, opts) {
|
|
|
1731
1731
|
//#region src/security/audit-fs.ts
|
|
1732
1732
|
async function safeStat(targetPath) {
|
|
1733
1733
|
try {
|
|
1734
|
-
const lst = await
|
|
1734
|
+
const lst = await fs$1.lstat(targetPath);
|
|
1735
1735
|
return {
|
|
1736
1736
|
ok: true,
|
|
1737
1737
|
isSymlink: lst.isSymbolicLink(),
|
|
@@ -1770,7 +1770,7 @@ async function inspectPathPermissions(targetPath, opts) {
|
|
|
1770
1770
|
let effectiveMode = st.mode;
|
|
1771
1771
|
let effectiveIsDir = st.isDir;
|
|
1772
1772
|
if (st.isSymlink) try {
|
|
1773
|
-
const target = await
|
|
1773
|
+
const target = await fs$1.stat(targetPath);
|
|
1774
1774
|
effectiveMode = typeof target.mode === "number" ? target.mode : st.mode;
|
|
1775
1775
|
effectiveIsDir = target.isDirectory();
|
|
1776
1776
|
} catch {}
|
|
@@ -2052,7 +2052,7 @@ async function assertSecurePath(params) {
|
|
|
2052
2052
|
if (stat.isSymlink) {
|
|
2053
2053
|
if (!params.allowSymlinkPath) throw new Error(`${params.label} must not be a symlink: ${effectivePath}`);
|
|
2054
2054
|
try {
|
|
2055
|
-
effectivePath = await
|
|
2055
|
+
effectivePath = await fs$1.realpath(effectivePath);
|
|
2056
2056
|
} catch {
|
|
2057
2057
|
throw new Error(`${params.label} symlink target is not readable: ${params.targetPath}`);
|
|
2058
2058
|
}
|
|
@@ -2100,7 +2100,7 @@ async function readFileProviderPayload(params) {
|
|
|
2100
2100
|
}, timeoutMs);
|
|
2101
2101
|
});
|
|
2102
2102
|
try {
|
|
2103
|
-
const payload = await Promise.race([
|
|
2103
|
+
const payload = await Promise.race([fs$1.readFile(secureFilePath, { signal: abortController.signal }), timeoutPromise]);
|
|
2104
2104
|
if (payload.byteLength > maxBytes) throw new Error(`File provider "${params.providerName}" exceeded maxBytes (${maxBytes}).`);
|
|
2105
2105
|
const text = payload.toString("utf8");
|
|
2106
2106
|
if (params.providerConfig.mode === "singleValue") return text.replace(/\r?\n$/, "");
|
|
@@ -7065,7 +7065,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
7065
7065
|
await held.handle.close();
|
|
7066
7066
|
} catch {}
|
|
7067
7067
|
try {
|
|
7068
|
-
await
|
|
7068
|
+
await fs$1.rm(held.lockPath, { force: true });
|
|
7069
7069
|
} catch {}
|
|
7070
7070
|
})();
|
|
7071
7071
|
try {
|
|
@@ -7144,7 +7144,7 @@ function registerCleanupHandlers() {
|
|
|
7144
7144
|
}
|
|
7145
7145
|
async function readLockPayload(lockPath) {
|
|
7146
7146
|
try {
|
|
7147
|
-
const raw = await
|
|
7147
|
+
const raw = await fs$1.readFile(lockPath, "utf8");
|
|
7148
7148
|
const parsed = JSON.parse(raw);
|
|
7149
7149
|
const payload = {};
|
|
7150
7150
|
if (isValidLockNumber(parsed.pid) && parsed.pid > 0) payload.pid = parsed.pid;
|
|
@@ -7188,7 +7188,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
|
|
|
7188
7188
|
if (!details.stale) return false;
|
|
7189
7189
|
if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
|
|
7190
7190
|
try {
|
|
7191
|
-
const stat = await
|
|
7191
|
+
const stat = await fs$1.stat(lockPath);
|
|
7192
7192
|
return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
|
|
7193
7193
|
} catch (error) {
|
|
7194
7194
|
return error?.code !== "ENOENT";
|
|
@@ -7206,7 +7206,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
7206
7206
|
const nowMs = params.nowMs ?? Date.now();
|
|
7207
7207
|
let entries = [];
|
|
7208
7208
|
try {
|
|
7209
|
-
entries = await
|
|
7209
|
+
entries = await fs$1.readdir(sessionsDir, { withFileTypes: true });
|
|
7210
7210
|
} catch (err) {
|
|
7211
7211
|
if (err.code === "ENOENT") return {
|
|
7212
7212
|
locks: [],
|
|
@@ -7225,7 +7225,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
7225
7225
|
removed: false
|
|
7226
7226
|
};
|
|
7227
7227
|
if (lockInfo.stale && removeStale) {
|
|
7228
|
-
await
|
|
7228
|
+
await fs$1.rm(lockPath, { force: true });
|
|
7229
7229
|
lockInfo.removed = true;
|
|
7230
7230
|
cleaned.push(lockInfo);
|
|
7231
7231
|
params.log?.warn?.(`removed stale session lock: ${lockPath} (${lockInfo.staleReasons.join(", ") || "unknown"})`);
|
|
@@ -7244,10 +7244,10 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
7244
7244
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
7245
7245
|
const sessionFile = path.resolve(params.sessionFile);
|
|
7246
7246
|
const sessionDir = path.dirname(sessionFile);
|
|
7247
|
-
await
|
|
7247
|
+
await fs$1.mkdir(sessionDir, { recursive: true });
|
|
7248
7248
|
let normalizedDir = sessionDir;
|
|
7249
7249
|
try {
|
|
7250
|
-
normalizedDir = await
|
|
7250
|
+
normalizedDir = await fs$1.realpath(sessionDir);
|
|
7251
7251
|
} catch {}
|
|
7252
7252
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
7253
7253
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -7265,7 +7265,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
7265
7265
|
attempt += 1;
|
|
7266
7266
|
let handle = null;
|
|
7267
7267
|
try {
|
|
7268
|
-
handle = await
|
|
7268
|
+
handle = await fs$1.open(lockPath, "wx");
|
|
7269
7269
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
7270
7270
|
const starttime = processIdentity.getProcessStartTime(process.pid);
|
|
7271
7271
|
const lockPayload = {
|
|
@@ -7291,7 +7291,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
7291
7291
|
await handle.close();
|
|
7292
7292
|
} catch {}
|
|
7293
7293
|
try {
|
|
7294
|
-
await
|
|
7294
|
+
await fs$1.rm(lockPath, { force: true });
|
|
7295
7295
|
} catch {}
|
|
7296
7296
|
}
|
|
7297
7297
|
if (err.code !== "EEXIST") throw err;
|
|
@@ -7306,7 +7306,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
|
|
|
7306
7306
|
stale: true,
|
|
7307
7307
|
staleReasons: inspected.staleReasons.includes("orphan-self-pid") ? inspected.staleReasons : [...inspected.staleReasons, "orphan-self-pid"]
|
|
7308
7308
|
} : inspected, staleMs, nowMs)) {
|
|
7309
|
-
await
|
|
7309
|
+
await fs$1.rm(lockPath, { force: true });
|
|
7310
7310
|
continue;
|
|
7311
7311
|
}
|
|
7312
7312
|
const delay = Math.min(1e3, 50 * attempt);
|
|
@@ -23304,7 +23304,7 @@ function parseDurationMs(raw, opts) {
|
|
|
23304
23304
|
//#region src/infra/json-files.ts
|
|
23305
23305
|
async function readJsonFile(filePath) {
|
|
23306
23306
|
try {
|
|
23307
|
-
const raw = await
|
|
23307
|
+
const raw = await fs$1.readFile(filePath, "utf8");
|
|
23308
23308
|
return JSON.parse(raw);
|
|
23309
23309
|
} catch {
|
|
23310
23310
|
return null;
|
|
@@ -23319,7 +23319,7 @@ async function writeJsonAtomic(filePath, value, options) {
|
|
|
23319
23319
|
}
|
|
23320
23320
|
async function chmodIfSupported(filePath, mode) {
|
|
23321
23321
|
try {
|
|
23322
|
-
await
|
|
23322
|
+
await fs$1.chmod(filePath, mode);
|
|
23323
23323
|
} catch (err) {
|
|
23324
23324
|
if (process.platform === "win32") return;
|
|
23325
23325
|
throw err;
|
|
@@ -23330,18 +23330,18 @@ async function writeTextAtomic(filePath, content, options) {
|
|
|
23330
23330
|
const payload = options?.appendTrailingNewline && !content.endsWith("\n") ? `${content}\n` : content;
|
|
23331
23331
|
const mkdirOptions = { recursive: true };
|
|
23332
23332
|
if (typeof options?.ensureDirMode === "number") mkdirOptions.mode = options.ensureDirMode;
|
|
23333
|
-
await
|
|
23333
|
+
await fs$1.mkdir(path.dirname(filePath), mkdirOptions);
|
|
23334
23334
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
23335
23335
|
try {
|
|
23336
|
-
await
|
|
23336
|
+
await fs$1.writeFile(tmp, payload, {
|
|
23337
23337
|
encoding: "utf8",
|
|
23338
23338
|
mode
|
|
23339
23339
|
});
|
|
23340
23340
|
await chmodIfSupported(tmp, mode);
|
|
23341
|
-
await
|
|
23341
|
+
await fs$1.rename(tmp, filePath);
|
|
23342
23342
|
await chmodIfSupported(filePath, mode);
|
|
23343
23343
|
} finally {
|
|
23344
|
-
await
|
|
23344
|
+
await fs$1.rm(tmp, { force: true }).catch(() => void 0);
|
|
23345
23345
|
}
|
|
23346
23346
|
}
|
|
23347
23347
|
function createAsyncLock() {
|
|
@@ -23460,7 +23460,7 @@ function validMarker(value) {
|
|
|
23460
23460
|
async function readRecord(filePath, validate) {
|
|
23461
23461
|
let raw;
|
|
23462
23462
|
try {
|
|
23463
|
-
raw = await
|
|
23463
|
+
raw = await fs$1.readFile(filePath, "utf8");
|
|
23464
23464
|
} catch (error) {
|
|
23465
23465
|
if (error.code === "ENOENT") return { status: "absent" };
|
|
23466
23466
|
return { status: "corrupt" };
|
|
@@ -23516,7 +23516,7 @@ async function readDisposition(filePath) {
|
|
|
23516
23516
|
async function readDispositionJsonl(filePath) {
|
|
23517
23517
|
let raw;
|
|
23518
23518
|
try {
|
|
23519
|
-
raw = await
|
|
23519
|
+
raw = await fs$1.readFile(filePath, "utf8");
|
|
23520
23520
|
} catch (error) {
|
|
23521
23521
|
return error.code === "ENOENT" ? { status: "absent" } : { status: "corrupt" };
|
|
23522
23522
|
}
|
|
@@ -23728,27 +23728,27 @@ async function classifyIdentityCorruption(stateDir, category, relativePath, iden
|
|
|
23728
23728
|
}
|
|
23729
23729
|
async function removeLinkedDestination(destination) {
|
|
23730
23730
|
try {
|
|
23731
|
-
await
|
|
23731
|
+
await fs$1.unlink(destination);
|
|
23732
23732
|
} catch {}
|
|
23733
23733
|
}
|
|
23734
23734
|
async function relocateWithoutReplacing(source, destination) {
|
|
23735
23735
|
if (path.resolve(source) === path.resolve(destination)) return "same-path";
|
|
23736
|
-
await
|
|
23736
|
+
await fs$1.mkdir(path.dirname(destination), { recursive: true });
|
|
23737
23737
|
try {
|
|
23738
|
-
await
|
|
23738
|
+
await fs$1.link(source, destination);
|
|
23739
23739
|
} catch (error) {
|
|
23740
23740
|
if (error.code !== "EEXIST") return "retained";
|
|
23741
23741
|
try {
|
|
23742
|
-
const [sourceBytes, destinationBytes] = await Promise.all([
|
|
23742
|
+
const [sourceBytes, destinationBytes] = await Promise.all([fs$1.readFile(source), fs$1.readFile(destination)]);
|
|
23743
23743
|
if (!sourceBytes.equals(destinationBytes)) return "retained";
|
|
23744
|
-
await
|
|
23744
|
+
await fs$1.unlink(source);
|
|
23745
23745
|
return "relocated";
|
|
23746
23746
|
} catch {
|
|
23747
23747
|
return "retained";
|
|
23748
23748
|
}
|
|
23749
23749
|
}
|
|
23750
23750
|
try {
|
|
23751
|
-
await
|
|
23751
|
+
await fs$1.unlink(source);
|
|
23752
23752
|
return "relocated";
|
|
23753
23753
|
} catch {
|
|
23754
23754
|
await removeLinkedDestination(destination);
|
|
@@ -23757,14 +23757,14 @@ async function relocateWithoutReplacing(source, destination) {
|
|
|
23757
23757
|
}
|
|
23758
23758
|
async function renameAsideWithoutReplacing(stateDir, source, nowMs) {
|
|
23759
23759
|
const destination = path.join(stateDir, "recovery", "manifest-corrupt", `${formatSessionArchiveTimestamp(nowMs())}.json`);
|
|
23760
|
-
await
|
|
23760
|
+
await fs$1.mkdir(path.dirname(destination), { recursive: true });
|
|
23761
23761
|
try {
|
|
23762
|
-
await
|
|
23762
|
+
await fs$1.link(source, destination);
|
|
23763
23763
|
} catch {
|
|
23764
23764
|
return false;
|
|
23765
23765
|
}
|
|
23766
23766
|
try {
|
|
23767
|
-
await
|
|
23767
|
+
await fs$1.unlink(source);
|
|
23768
23768
|
return true;
|
|
23769
23769
|
} catch {
|
|
23770
23770
|
await removeLinkedDestination(destination);
|
|
@@ -23875,7 +23875,7 @@ async function classifyManifestFileInternal(stateDir, filePath, opts = {}) {
|
|
|
23875
23875
|
async function walkFiles(directory, files) {
|
|
23876
23876
|
let entries;
|
|
23877
23877
|
try {
|
|
23878
|
-
entries = await
|
|
23878
|
+
entries = await fs$1.readdir(directory, { withFileTypes: true });
|
|
23879
23879
|
} catch (error) {
|
|
23880
23880
|
if (error.code === "ENOENT") return;
|
|
23881
23881
|
throw error;
|
|
@@ -24011,7 +24011,7 @@ async function resumeManifests(stateDir, opts) {
|
|
|
24011
24011
|
}
|
|
24012
24012
|
async function manifestExists(filePath) {
|
|
24013
24013
|
try {
|
|
24014
|
-
await
|
|
24014
|
+
await fs$1.access(filePath);
|
|
24015
24015
|
return true;
|
|
24016
24016
|
} catch (error) {
|
|
24017
24017
|
if (error.code === "ENOENT") return false;
|
|
@@ -24022,7 +24022,7 @@ async function hasNewerValidGeneration(stateDir, identity) {
|
|
|
24022
24022
|
const directory = path.dirname(manifestPath(stateDir, identity.kind, identity.assetId, identity.sessionId, identity.generationId));
|
|
24023
24023
|
let names;
|
|
24024
24024
|
try {
|
|
24025
|
-
names = await
|
|
24025
|
+
names = await fs$1.readdir(directory);
|
|
24026
24026
|
} catch (error) {
|
|
24027
24027
|
if (error.code === "ENOENT") return false;
|
|
24028
24028
|
throw error;
|
|
@@ -24054,7 +24054,7 @@ async function clearManifest(stateDir, identity, authorization) {
|
|
|
24054
24054
|
else if (authorization === "supersession") authorized = await hasNewerValidGeneration(stateDir, identity);
|
|
24055
24055
|
if (!authorized) throw new Error(`manifest clear is not authorized by ${authorization}`);
|
|
24056
24056
|
try {
|
|
24057
|
-
await
|
|
24057
|
+
await fs$1.unlink(filePath);
|
|
24058
24058
|
return "cleared";
|
|
24059
24059
|
} catch (error) {
|
|
24060
24060
|
if (error.code === "ENOENT") return "already-absent";
|
|
@@ -24100,7 +24100,7 @@ function matchesManifest(actual, manifest) {
|
|
|
24100
24100
|
}
|
|
24101
24101
|
async function unlinkIfPresent(filePath) {
|
|
24102
24102
|
try {
|
|
24103
|
-
await
|
|
24103
|
+
await fs$1.unlink(filePath);
|
|
24104
24104
|
} catch (error) {
|
|
24105
24105
|
if (error.code !== "ENOENT") throw error;
|
|
24106
24106
|
}
|