wednesdayai 0.6.1-dev.47 → 0.6.1-dev.50
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-DwgE-JaK.js → acp-cli-COVr7c9K.js} +12 -12
- package/dist/{agent-DOJWHSTp.js → agent-BgBSmNaI.js} +11 -11
- package/dist/{agent-BzS-Bw92.js → agent-XU4Yrfkg.js} +19 -19
- package/dist/{agent-turn-enqueue-DNz67IZC.js → agent-turn-enqueue-C65boHpU.js} +6 -6
- package/dist/{agent-turn-execute-CVq_M1H9.js → agent-turn-execute-CijEn5uU.js} +81 -81
- package/dist/{agent-turn-recovery-adapter-CVhr928E.js → agent-turn-recovery-adapter-xa1CJlHy.js} +4 -4
- package/dist/{agent-turn-runner-MK7RWfZB.js → agent-turn-runner-ns-G6-qQ.js} +4 -4
- package/dist/{agent-turn-runner-BnpbHkgj.js → agent-turn-runner-zXi4ADUq.js} +6 -6
- package/dist/{agents-iPiwcs70.js → agents-DdxbZ1yR.js} +15 -15
- package/dist/{agents.config-Dh-NFmf1.js → agents.config-Du-EvARZ.js} +2 -2
- package/dist/{audit-D4zYMRNh.js → audit-0XGsgYln.js} +21 -21
- package/dist/{auth-BLSoSze_.js → auth-a3TKKlev.js} +4 -4
- package/dist/{auth-choice-2S2Bu397.js → auth-choice-6lPmGWX_.js} +13 -13
- package/dist/{auth-choice-CAlWQnS0.js → auth-choice-BlU5Jwiy.js} +16 -16
- package/dist/{auth-choice.apply-helpers-DXEH3kKc.js → auth-choice.apply-helpers-BT5h7Kd2.js} +1 -1
- package/dist/{auth-token-RZVdRVFL.js → auth-token-BJlagO1q.js} +2 -2
- package/dist/{banner-DPhzJGvu.js → banner-DTi0GYhj.js} +4 -4
- package/dist/{bonjour-discovery-BP2NnLb7.js → bonjour-discovery-BaPEhz6-.js} +3 -3
- package/dist/{browser-cli-DqPOdkfi.js → browser-cli-cJbbNuC-.js} +20 -20
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +32 -32
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +31 -31
- package/dist/bundled/session-memory/handler.js +32 -32
- package/dist/{call-DzGlAM6A.js → call-DC_l0C6c.js} +5 -5
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-feed-DAWwBcpU.js → catalog-feed-BPQiz-j4.js} +2 -2
- package/dist/{channel-account-context-DHCvTbB_.js → channel-account-context-BR30O-XA.js} +2 -2
- package/dist/{channel-options-C-m0chcy.js → channel-options-pWJ9tPoi.js} +3 -3
- package/dist/{channel-selection-o_GXmd3S.js → channel-selection-SzzxWFqF.js} +1 -1
- package/dist/{channels-cli-DDV8DQJF.js → channels-cli-DCPDMwOi.js} +102 -102
- package/dist/{channels-status-issues-CDGOGIDW.js → channels-status-issues-D7YJcPZY.js} +1 -1
- package/dist/{chrome-BblDtIhl.js → chrome-DaxSYq9x.js} +6 -6
- package/dist/{chrome-C1IRBXCq.js → chrome-cV7G42a8.js} +32 -32
- package/dist/{clack-prompter-X5gjXw2v.js → clack-prompter-CSTfawN7.js} +5 -5
- package/dist/clawbot-cli-N0qA9LCg.js +32 -0
- package/dist/cli-BS1xXWfW.js +147 -0
- package/dist/{client-RYxRFbaf.js → client-CXlXbWxa.js} +4 -4
- package/dist/{client-profiles-DJoOHmYb.js → client-profiles-BPSW-Pej.js} +2 -2
- package/dist/{clipboard-DqxGZScZ.js → clipboard-C0KqeNJz.js} +1 -1
- package/dist/{command-queue-CZNc1Y5b.js → command-queue-CypbHAAc.js} +1 -1
- package/dist/{command-queue-CgNl6dbc.js → command-queue-DCuGQ6oE.js} +1 -1
- package/dist/{command-registry-nGIVkV6u.js → command-registry-Dn80fYRF.js} +13 -13
- package/dist/{command-secret-targets-BwUg9MG7.js → command-secret-targets-DJebWnC0.js} +4 -4
- package/dist/{commands-P3aAWSG_.js → commands-C4yR5Eki.js} +1 -1
- package/dist/{commands-registry-jq_YarKY.js → commands-registry-DagIzqO7.js} +4 -4
- package/dist/{completion-cli-CdEHcp3V.js → completion-cli-CFOXdHq-.js} +5 -5
- package/dist/{config-cli-BDy6tJDD.js → config-cli-DtQjTEf3.js} +14 -14
- package/dist/{config-guard-I6AtTyZv.js → config-guard-J_hz16uv.js} +4 -4
- package/dist/{config-validation-otVjLKQn.js → config-validation-Db_ZJIqZ.js} +4 -4
- package/dist/{configure-u-u8aXM_.js → configure-DbO7EHyB.js} +22 -22
- package/dist/{console-CdR5lE0A.js → console-eDkX4znK.js} +1 -1
- package/dist/control-ui-v2/assets/{AgentsView-BtvwUvjT.js → AgentsView-K8DEVXxj.js} +1 -1
- package/dist/control-ui-v2/assets/{AutomationsView-Bm551KRf.js → AutomationsView-DO0ssbS6.js} +1 -1
- package/dist/control-ui-v2/assets/Badge-me4YM1lq.js +1 -0
- package/dist/control-ui-v2/assets/{Button-D5rMawzJ.js → Button-ralPMMNs.js} +1 -1
- package/dist/control-ui-v2/assets/{ChannelsView-Bmcrzyc8.js → ChannelsView-8vJB0hXL.js} +1 -1
- package/dist/control-ui-v2/assets/{ConfigForm-tS4Ekkuj.js → ConfigForm-IOs1Exic.js} +1 -1
- package/dist/control-ui-v2/assets/{ConfirmDialog-B-AAbwH-.js → ConfirmDialog-9ode6FP3.js} +1 -1
- package/dist/control-ui-v2/assets/{DataTable-BqqaNmU8.js → DataTable-BbRrWxor.js} +1 -1
- package/dist/control-ui-v2/assets/{DebugView-w3AcoKSJ.js → DebugView-hDoK-Miv.js} +1 -1
- package/dist/control-ui-v2/assets/{Dialog-Che1C2PS.js → Dialog-oJKnAIqZ.js} +1 -1
- package/dist/control-ui-v2/assets/{DreamsView-CRVOkZ0y.js → DreamsView-QBWBlJnW.js} +1 -1
- package/dist/control-ui-v2/assets/{EntityLink-D6UsLKQR.js → EntityLink-CMtTP9Dk.js} +1 -1
- package/dist/control-ui-v2/assets/{FilterPills-CA2lRy0A.js → FilterPills-C_zBIqFP.js} +1 -1
- package/dist/control-ui-v2/assets/{InstancesView-D1s_2Z-j.js → InstancesView-BlXUEHAU.js} +1 -1
- package/dist/control-ui-v2/assets/{LearningView-BOxsGx8P.js → LearningView-De4YeA4M.js} +1 -1
- package/dist/control-ui-v2/assets/{LogsView-DU03hzlQ.js → LogsView-CbllorCk.js} +1 -1
- package/dist/control-ui-v2/assets/{NodesView-DH8y_KeJ.js → NodesView-DD4GYH-6.js} +1 -1
- package/dist/control-ui-v2/assets/{OverviewView-DHPrvXcn.js → OverviewView-7YdkWdG1.js} +1 -1
- package/dist/control-ui-v2/assets/{Panel-DM0JsHgz.js → Panel-CqcbBXzJ.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginMount-DfCGGLsN.js → PluginMount-CIP5T99f.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginPageView-7zgkiz9P.js → PluginPageView-D-WSAQoY.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginPanels-BfBbsH_Z.js → PluginPanels-AFbR8qyk.js} +1 -1
- package/dist/control-ui-v2/assets/{RecoveryView-CrGTo_hu.js → RecoveryView-wCA7Nq9J.js} +1 -1
- package/dist/control-ui-v2/assets/{RunsView-Dp6Mtciq.js → RunsView-DucoEAaM.js} +1 -1
- package/dist/control-ui-v2/assets/{SessionsView-DbjlMwqU.js → SessionsView-0DgZ_-MW.js} +1 -1
- package/dist/control-ui-v2/assets/{SettingsView-Ci22dw48.js → SettingsView-CfTJTK06.js} +1 -1
- package/dist/control-ui-v2/assets/{SkillsView-7BGQcoCn.js → SkillsView-C_sMCqlY.js} +1 -1
- package/dist/control-ui-v2/assets/{Stat-DQyb-fKe.js → Stat-BRQhQ01w.js} +1 -1
- package/dist/control-ui-v2/assets/{StatusDot-CRJsKnJw.js → StatusDot-CjtPcYD9.js} +1 -1
- package/dist/control-ui-v2/assets/{StorageView-5BqFOHli.js → StorageView-B3vVHqxH.js} +1 -1
- package/dist/control-ui-v2/assets/{UpdatedAgo-D_q8xIeZ.js → UpdatedAgo-CJqGVu6_.js} +1 -1
- package/dist/control-ui-v2/assets/{UsageView-Bm9sF-Wt.js → UsageView-BUZtG2MG.js} +1 -1
- package/dist/control-ui-v2/assets/{config-store-zXNM_umy.js → config-store-DiHUH-77.js} +1 -1
- package/dist/control-ui-v2/assets/{format-DpM2rlEo.js → format-BPrfsCHW.js} +1 -1
- package/dist/control-ui-v2/assets/{gateway-features-C0JaT4JI.js → gateway-features-SDBnjY95.js} +1 -1
- package/dist/control-ui-v2/assets/{index-CGoFdGyu.js → index-ChHyE-y3.js} +1 -1
- package/dist/control-ui-v2/assets/{links-Bcw24zqI.js → links-vgPLVF05.js} +2 -2
- package/dist/control-ui-v2/assets/{run-rows-DVijLB79.js → run-rows-1MUje5J6.js} +1 -1
- package/dist/control-ui-v2/assets/{runs-store-Cxbnn8K8.js → runs-store-BZTDbQro.js} +1 -1
- package/dist/control-ui-v2/assets/{use-gateway-query-xtY3vmte.js → use-gateway-query-7iLwemQz.js} +1 -1
- package/dist/control-ui-v2/index.html +7 -7
- package/dist/{controller-ClPKFt9H.js → controller-Bibu9RBu.js} +1 -1
- package/dist/{credentials-D8xf4kQ3.js → credentials-BzwRYS__.js} +1 -1
- package/dist/{cron-cli-BcTM_Nir.js → cron-cli-C3uwnjAJ.js} +16 -16
- package/dist/{daemon-cli-mpcai9ZB.js → daemon-cli-DhSeyb4s.js} +18 -18
- package/dist/{daemon-install-Mm9lvcvD.js → daemon-install-DCXozUs7.js} +11 -11
- package/dist/{daemon-install-helpers-D74OoyoM.js → daemon-install-helpers-CU4mnKsx.js} +2 -2
- package/dist/{delete-agent-sessions-Drf95Usu.js → delete-agent-sessions-BNaCeFyf.js} +1 -1
- package/dist/{deliver-Di5lG5OI.js → deliver-DTy7SNq9.js} +11 -11
- package/dist/{deliver-BukUfhSv.js → deliver-XZwPv99X.js} +28 -28
- package/dist/{devices-cli-DfnrI4Q4.js → devices-cli-BZzq7Fou.js} +14 -14
- package/dist/{diagnostic-B4mnFYUK.js → diagnostic-5TT45xHw.js} +4 -4
- package/dist/{diagnostic-C8nY3mdC.js → diagnostic-CeSjaots.js} +3 -3
- package/dist/{diagnostics-BzqDQMJ0.js → diagnostics-aJloMvRL.js} +1 -1
- package/dist/{directory-cli-tEju7zyL.js → directory-cli-BdfsQsAd.js} +12 -12
- package/dist/{dm-policy-shared-DuFgR_0W.js → dm-policy-shared-BZGS_0kS.js} +5 -5
- package/dist/{dns-cli-1Fm79fkk.js → dns-cli-BXbIk9ti.js} +11 -11
- package/dist/{docs-cli-PbTOsDX0.js → docs-cli-DpSAY3cX.js} +12 -12
- package/dist/{doctor-4PvP20jU.js → doctor-8FDQmndb.js} +1 -1
- package/dist/{doctor-completion-D_hqUq1a.js → doctor-completion-D3c2yROu.js} +3 -3
- package/dist/{doctor-config-flow-Cn3VGUWv.js → doctor-config-flow-DsjAW_i3.js} +12 -12
- package/dist/{enable-CoZmUN1F.js → enable-BD-5STUq.js} +2 -2
- package/dist/entry.js +2 -2
- package/dist/{errors-C-0CPtkE.js → errors-BaBvv30m.js} +1 -1
- package/dist/{exec-CP66JVDC.js → exec-DiLAfuLr.js} +3 -3
- package/dist/{exec-approvals-DEidE9cu.js → exec-approvals-BwBMqZpq.js} +2 -2
- package/dist/{exec-approvals-allowlist-D3VLWMn3.js → exec-approvals-allowlist-DeajDmQz.js} +1 -1
- package/dist/{exec-approvals-cli-CD0A7x-1.js → exec-approvals-cli-D0vutwdC.js} +23 -23
- package/dist/{exec-safe-bin-runtime-policy-DgsZVxiX.js → exec-safe-bin-runtime-policy-GyiNcLWt.js} +2 -2
- package/dist/{extension-relay-auth-C4DY3BoO.js → extension-relay-auth-Vn4eJEcQ.js} +3 -3
- package/dist/{fences-D0-yWVSH.js → fences-CISax-La.js} +16 -16
- package/dist/{fetch-guard-DVeFm4CZ.js → fetch-guard-Bnzd4qWS.js} +2 -2
- package/dist/{fetch-guard-Bx35q9u4.js → fetch-guard-CDkEddFV.js} +2 -2
- package/dist/{frontmatter-QVz_zD_W.js → frontmatter-BtfJx9Sg.js} +3 -3
- package/dist/{frontmatter-BUaSX8Fz.js → frontmatter-Bzvwr1W7.js} +3 -3
- package/dist/{fs-safe-DA9gVh9s.js → fs-safe-D8HkhuMZ.js} +3 -3
- package/dist/{fs-safe-BV3IWmYM.js → fs-safe-jXfn3Elb.js} +26 -26
- package/dist/{gateway-cli-BGDf_UXv.js → gateway-cli-lPADWps2.js} +152 -152
- package/dist/{gateway-rpc-DpYzInuu.js → gateway-rpc-DQG3hBI5.js} +3 -3
- package/dist/{globals-BVh-VW1y.js → globals-BOYJmqPO.js} +4 -4
- package/dist/{gmail-setup-utils-BUD74IWH.js → gmail-setup-utils-Db0ZWkas.js} +3 -3
- package/dist/{health-DoUNuepo.js → health-CqBDDLKJ.js} +12 -12
- package/dist/{health-format-D_7YEfOK.js → health-format-B3wM0UeC.js} +1 -1
- package/dist/{heartbeat-tick-BRGg7O46.js → heartbeat-tick-DWTPRSj2.js} +1 -1
- package/dist/{help-format-B9fBC7YQ.js → help-format-3m9GNcQp.js} +1 -1
- package/dist/{helpers-BMCu08tD.js → helpers-ByEDcAjf.js} +1 -1
- package/dist/{hooks-cli-D6KMUi8J.js → hooks-cli-CuvmA2a8.js} +90 -90
- package/dist/{hooks-status-DsJcrJdW.js → hooks-status-D42ilCFd.js} +3 -3
- package/dist/{identity-cli-hw9RP7bb.js → identity-cli-eGQmm7Uf.js} +20 -20
- package/dist/{identity-links-DGrSQOyI.js → identity-links-CMiIcgvn.js} +4 -4
- package/dist/{image-ops-oycM9vAs.js → image-ops-BT8bD5QW.js} +2 -2
- package/dist/{inspect-y-Rf7C9M.js → inspect-DHJbh1BK.js} +1 -1
- package/dist/{install-package-dir-cFGJwdjt.js → install-package-dir-atID3P53.js} +4 -4
- package/dist/{install-safe-path-BKMVgfRM.js → install-safe-path-5pN67hCN.js} +3 -3
- package/dist/{installs-BpMec9Cz.js → installs-C8HDE8ek.js} +10 -10
- package/dist/{ipv4-_5izhCOd.js → ipv4-D-LmFWW3.js} +2 -2
- package/dist/{issue-format-BcCT1LCp.js → issue-format-3AjTJZ-g.js} +1 -1
- package/dist/{jobs-BADjbSd0.js → jobs-BGleUcI-.js} +3 -3
- package/dist/{legacy-names-DpNvKeY4.js → legacy-names-BncMDG8I.js} +26 -26
- package/dist/{legacy-names-D-gFhJkB.js → legacy-names-m85yQK-H.js} +4 -4
- package/dist/{lifecycle-core-BDcQzbfM.js → lifecycle-core-lEWBgzfk.js} +8 -8
- package/dist/{links-CNDAkRQK.js → links-C3uVLgry.js} +1 -1
- package/dist/llm-slug-generator.js +31 -31
- package/dist/{log-tail-P2iIBET-.js → log-tail-BVn--aNY.js} +1 -1
- package/dist/{logging-BrtVmOug.js → logging-CasLPWvm.js} +1 -1
- package/dist/{logs-cli-DNJpQfm5.js → logs-cli-C8g9JGRK.js} +15 -15
- package/dist/{manager-qTIsRkIR.js → manager-COuC5aCY.js} +16 -16
- package/dist/{manager-ANr3eRjC.js → manager-DO4sftxl.js} +6 -6
- package/dist/{manager-Byt2W-zl.js → manager-zauhsMSz.js} +7 -7
- package/dist/{memory-cli-C-kkAcSv.js → memory-cli-C6ChdKAF.js} +15 -15
- package/dist/{model-C0zdj1IG.js → model-CY6irdbq.js} +2 -2
- package/dist/{model-catalog-D2OnT5G5.js → model-catalog-PS0jzDnI.js} +4 -4
- package/dist/{model-picker-DqmubfPT.js → model-picker-CTFCXSBm.js} +4 -4
- package/dist/{model-selection-BFwMLFJs.js → model-selection-LDnLrnn_.js} +78 -78
- package/dist/{models-CpRbKJuJ.js → models-C3BadlQJ.js} +20 -20
- package/dist/{models-cli-DZkw5Jdo.js → models-cli-nmVozi2V.js} +92 -92
- package/dist/{models-config-C3Tq7XpJ.js → models-config-QyFOywkg.js} +2 -2
- package/dist/{net-CsWibfvZ.js → net-D11xIRO3.js} +2 -2
- package/dist/{net-ZNMDyvE6.js → net-DqV0ZX0o.js} +1 -1
- package/dist/{node-cli-Cnez-SsZ.js → node-cli-S-iiWwOu.js} +37 -37
- package/dist/{node-command-policy-07YXEli2.js → node-command-policy-CgAWdzL5.js} +1 -1
- package/dist/{node-service-CAIBDHUL.js → node-service-DZ8fTOrl.js} +1 -1
- package/dist/{nodes-cli-tf4VB1mc.js → nodes-cli-BsGZc9ap.js} +22 -22
- package/dist/{nodes-screen-BeGrUDun.js → nodes-screen-CE5ExO2h.js} +4 -4
- package/dist/{note-DU3J-cLi.js → note-3jvXiQ6d.js} +2 -2
- package/dist/{npm-pack-install-LDEh8ibx.js → npm-pack-install-hlogNf3I.js} +2 -2
- package/dist/{npm-resolution-hwnRhJMY.js → npm-resolution-HrhqxZv1.js} +5 -5
- package/dist/{nudge-DO_XorIH.js → nudge-E00XAyaB.js} +9 -9
- package/dist/{nudge-BwlwOlHp.js → nudge-dYyHjBXU.js} +32 -32
- package/dist/{oauth-tls-preflight-Dml1qLXe.js → oauth-tls-preflight-JLBGc5N0.js} +1 -1
- package/dist/{onboard-Ca24xZMF.js → onboard-DlZ1BOYr.js} +11 -11
- package/dist/{onboard-channels-D9_949pz.js → onboard-channels-CgNpTkpG.js} +16 -16
- package/dist/{onboard-custom-B-Mkie4R.js → onboard-custom-DCm_Y_rq.js} +4 -4
- package/dist/{onboard-helpers-ByWR3CzW.js → onboard-helpers-DM-4vR0k.js} +8 -8
- package/dist/{onboard-hooks-BeOBPHVT.js → onboard-hooks-8Pr9LF3E.js} +8 -8
- package/dist/{onboard-remote-Bcj3rkca.js → onboard-remote-DmGboWPK.js} +5 -5
- package/dist/{onboard-skills-naWc0YmQ.js → onboard-skills-CWqQ6_nv.js} +4 -4
- package/dist/{onboarding-BGv0OTQ7.js → onboarding-DP9CpRIE.js} +18 -18
- package/dist/{onboarding.finalize-DXb_92Cl.js → onboarding.finalize-BopskbFm.js} +98 -98
- package/dist/{onboarding.gateway-config-CWPurA78.js → onboarding.gateway-config-F79AgW-W.js} +21 -21
- package/dist/{onboarding.secret-input-CWSgVFz4.js → onboarding.secret-input-Dg2d19bw.js} +1 -1
- package/dist/{openai-model-default-DqvDB0tE.js → openai-model-default-DZdYjkgw.js} +2 -2
- package/dist/{operator-commands-DucDPVYt.js → operator-commands-73Jy7Whh.js} +6 -6
- package/dist/{outbound-attachment-9K5W_qRv.js → outbound-attachment-BJKAbId_.js} +8 -8
- package/dist/{outbound-attachment-TmKpX3fK.js → outbound-attachment-BWJTBdLV.js} +9 -9
- package/dist/{outbound-send-deps-CZSYC14H.js → outbound-send-deps-DhCughCA.js} +4 -4
- package/dist/{pairing-cli-Cu9D7InY.js → pairing-cli-B_Py5VFV.js} +19 -19
- package/dist/{pairing-labels-ByiR4xag.js → pairing-labels-g02uyuXJ.js} +1 -1
- package/dist/{pairing-store-BwhC2WSm.js → pairing-store-C6blSyqu.js} +3 -3
- package/dist/{path-alias-guards-1poj6WAF.js → path-alias-guards-BQTkQXB8.js} +1 -1
- package/dist/{path-safety-DVOKipvs.js → path-safety-DiKe4sLz.js} +1 -1
- package/dist/{pi-embedded-CSaAlmuo.js → pi-embedded-BIha9wV3.js} +227 -227
- package/dist/{pi-embedded-helpers-D-rwFjbw.js → pi-embedded-helpers-D9jcApuf.js} +5 -5
- package/dist/{pi-embedded-recovery-adapter-gFm3nWut.js → pi-embedded-recovery-adapter-BwHVGYu3.js} +37 -37
- package/dist/{pi-model-discovery-BO1rPzPp.js → pi-model-discovery-Wg17i5yr.js} +7 -7
- package/dist/{pi-model-discovery-B7YaarSR.js → pi-model-discovery-qfeaBTmR.js} +1 -1
- package/dist/{pid-alive-Dp9yiDJm.js → pid-alive-CVi1kpc0.js} +1 -1
- package/dist/{plugin-auto-enable-vtMrJ3Bo.js → plugin-auto-enable-BndBdzvN.js} +4 -4
- package/dist/{plugin-owned-work-recovery-adapter-khLJn2o6.js → plugin-owned-work-recovery-adapter-CU0jgkGU.js} +9 -9
- package/dist/{plugin-registry-Bdf1V0v4.js → plugin-registry-j-zdK9Aj.js} +4 -4
- package/dist/plugin-sdk/{agent-Dpwqmur5.js → agent-BGApB_hH.js} +33 -33
- package/dist/plugin-sdk/{agent-turn-execute-B4f6kU8t.js → agent-turn-execute-CovKPB71.js} +47 -47
- package/dist/plugin-sdk/{agent-turn-runner-8-elIcKG.js → agent-turn-runner-x5EwBtiy.js} +6 -6
- package/dist/plugin-sdk/{chrome-DmrLIg1A.js → chrome-CWrDqDvu.js} +6 -6
- package/dist/plugin-sdk/{command-queue-DbyHTkqC.js → command-queue-BjQhBzl0.js} +1 -1
- package/dist/plugin-sdk/{deliver-DRb5wg9T.js → deliver-Bufpy1Nj.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-BaEfjzoG.js → diagnostic-DWsfRRMb.js} +3 -3
- package/dist/plugin-sdk/{errors-Di-1W5oL.js → errors-CU4XzshA.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-D593bO1R.js → fetch-guard-Bkz_LvY1.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-B9qlEOPl.js → fs-safe-mU6OF_le.js} +2 -2
- package/dist/plugin-sdk/{image-ops-ByQhA5AW.js → image-ops-BN9LfKcr.js} +2 -2
- package/dist/plugin-sdk/{manager-BlVhEJyV.js → manager-CHVkW_mo.js} +5 -5
- package/dist/plugin-sdk/{model-auth-BYzo7BMW.js → model-auth-A8ol0IK6.js} +6 -6
- package/dist/plugin-sdk/{models-config-Df7qxXDT.js → models-config-DwWNe4wJ.js} +2 -2
- package/dist/plugin-sdk/{nudge-8hrtI-uQ.js → nudge-DKWORgbV.js} +6 -6
- package/dist/plugin-sdk/{openai-compatible-video-CC8O8EEM.js → openai-compatible-video-zjvEDFQp.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-D5Du9kSm.js → outbound-attachment-DDNTRL0U.js} +7 -7
- package/dist/plugin-sdk/{pi-embedded-helpers-DDrF73tt.js → pi-embedded-helpers-Pj_rV8qf.js} +13 -13
- package/dist/plugin-sdk/{pi-embedded-utils-DLlaty3W.js → pi-embedded-utils-D6jztEWf.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-Cgvb050_.js → pi-model-discovery-D_iAcUa4.js} +1 -1
- package/dist/plugin-sdk/provider-media-understanding.js +16 -16
- package/dist/plugin-sdk/{pw-ai-BEcGp8XY.js → pw-ai-BwgzJYjo.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-DXpe_ju8.js → qmd-manager-DAFEkAMD.js} +6 -6
- package/dist/plugin-sdk/{qmd-scope-DVIoXpLl.js → qmd-scope-DJLcA3NX.js} +1 -1
- package/dist/plugin-sdk/{query-expansion-D0qReab0.js → query-expansion-CkRCFmXy.js} +2 -2
- package/dist/plugin-sdk/{recorder-S1aQdgl5.js → recorder-Brvd3BNt.js} +2 -2
- package/dist/plugin-sdk/{redact-CcJnxu3z.js → redact-B42Dpjen.js} +1 -1
- package/dist/plugin-sdk/{reply-directives-CEvR8_X7.js → reply-directives-twMFpY3R.js} +2 -2
- package/dist/plugin-sdk/{runs-D6b6GEuq.js → runs-w3MS_VZ4.js} +7 -7
- package/dist/plugin-sdk/{send-_X4VJ-16.js → send-7QsCXN2z.js} +5 -5
- package/dist/plugin-sdk/{send-DC_wB-oy.js → send-7cDA7nYq.js} +4 -4
- package/dist/plugin-sdk/{sessions-V6UyW1ee.js → sessions-BkkGJf0L.js} +3 -3
- package/dist/plugin-sdk/{ssrf-BD-w1_r0.js → ssrf-Bul6kRmN.js} +1 -1
- package/dist/{subsystem-D1n05zOF.js → plugin-sdk/subsystem-ChbeeOSk.js} +5 -5
- package/dist/plugin-sdk/{tool-loop-detection-JyupU8MW.js → tool-loop-detection-CJDaraAN.js} +1 -1
- package/dist/plugin-sdk/{user-run-recording-BHAgBh4G.js → user-run-recording-BK8sYUEb.js} +2 -2
- package/dist/plugin-sdk/{ws-Cd1gQ37X.js → ws-zY8UZwJ_.js} +1 -1
- package/dist/{plugins-Do2VO-bb.js → plugins-50bsyRF5.js} +12 -12
- package/dist/{plugins-cli-ClCHi--i.js → plugins-cli-B7i09-Yu.js} +94 -94
- package/dist/{ports-wpTsMPMQ.js → ports-Cx-3VoKB.js} +1 -1
- package/dist/{ports-CkB6zd6B.js → ports-qsGNGnWb.js} +2 -2
- package/dist/{program-BNEbV10c.js → program-DVVCdH_Q.js} +91 -91
- package/dist/{progress-DRmPtDtg.js → progress-DLl5RtiT.js} +2 -2
- package/dist/{prompt-select-styled-CNJtUcHo.js → prompt-select-styled-kC6tnFRy.js} +39 -39
- package/dist/{prompt-style-DpZu7Rv0.js → prompt-style-C-jp54Ww.js} +1 -1
- package/dist/{provider-auth-helpers-BmlLx1lK.js → provider-auth-helpers-CoSW0VEc.js} +5 -5
- package/dist/{proxy-env-D2TojSO4.js → proxy-env-B8ko7FIe.js} +1 -1
- package/dist/{proxy-env-ieess7Mx.js → proxy-env-Cbti8B-h.js} +1 -1
- package/dist/{push-apns-B35KAhUm.js → push-apns-ouI2t6wj.js} +7 -7
- package/dist/{pw-ai-BP_oDyML.js → pw-ai-BHdnQCVz.js} +11 -11
- package/dist/{pw-ai-DBQU70P9.js → pw-ai-CXYAo13E.js} +15 -15
- package/dist/{qmd-manager-CHnF92RD.js → qmd-manager-BbwLXjLX.js} +9 -9
- package/dist/{qmd-manager-Cc8Yjnkj.js → qmd-manager-D53dwf0o.js} +11 -11
- package/dist/{qmd-scope-Bf9ewzqs.js → qmd-scope-BGPSkaGT.js} +1 -1
- package/dist/{qmd-scope-CS0DtNYO.js → qmd-scope-ZqGqqT7I.js} +1 -1
- package/dist/{qr-cli-BR65O0r3.js → qr-cli-C03g-Jln.js} +10 -10
- package/dist/{query-expansion-Bv4KqsqP.js → query-expansion-CfOEMDQH.js} +1 -1
- package/dist/{query-expansion-CRbSQ6uw.js → query-expansion-D6kYMMSG.js} +13 -13
- package/dist/{reconcile-bundled-DkR2LG6R.js → reconcile-bundled-BHSH7QIf.js} +3 -3
- package/dist/{recorder-Ln2SDZKW.js → recorder-B4tsZmjb.js} +2 -2
- package/dist/{recorder-DII7nv4x.js → recorder-CPMScZJa.js} +2 -2
- package/dist/{recovery-adapter-CyyO_Ekl.js → recovery-adapter-BJRNT8FV.js} +9 -9
- package/dist/{recovery-adapter-DOleMTp_.js → recovery-adapter-CZoZy-m9.js} +2 -2
- package/dist/{recovery-adapter-But7eE6o.js → recovery-adapter-CxLHOdbs.js} +3 -3
- package/dist/{recovery-prompt-BPdq27Tq.js → recovery-prompt-DjQfAUy6.js} +1 -1
- package/dist/{redact-CS0CgCEL.js → redact-DkgvOdb-.js} +1 -1
- package/dist/{redact-snapshot-CZVXlnxH.js → redact-snapshot-B0Hmde1v.js} +5 -5
- package/dist/{register.agent-BcT7F79Y.js → register.agent-CH14a6J3.js} +109 -109
- package/dist/register.configure-BXpFEa7d.js +152 -0
- package/dist/{register.maintenance-rxIW-tKO.js → register.maintenance-2jJXwpET.js} +111 -111
- package/dist/{register.message-BLuymT-f.js → register.message-o6R49haY.js} +86 -86
- package/dist/{register.onboard-PGgg72Sx.js → register.onboard-CYG4aJ_S.js} +26 -26
- package/dist/{register.setup-Fnakw3cB.js → register.setup-B9Mx2Csz.js} +28 -28
- package/dist/{register.status-health-sessions--aE04YLN.js → register.status-health-sessions-BdYJh1dD.js} +105 -105
- package/dist/{register.subclis-gCMZ4Bku.js → register.subclis-B8qYBt57.js} +34 -34
- package/dist/{reply-directives-DGXfbm15.js → reply-directives-C3TQE9y0.js} +49 -49
- package/dist/{reply-directives-Bzeg3um3.js → reply-directives-DL_tpnAW.js} +2 -2
- package/dist/{reset-B2CTuAPC.js → reset-CoOQ6-8Y.js} +1 -1
- package/dist/{rpc-C-oFxe45.js → rpc-gJ5XJBJ1.js} +3 -3
- package/dist/{run-main-B4g_4pz1.js → run-main-CtkFW7nv.js} +104 -104
- package/dist/{runs-KGTnMvSd.js → runs-CNSar-WP.js} +8 -8
- package/dist/{runs-HDGXsBua.js → runs-DLcRidXE.js} +6 -6
- package/dist/{runtime-CM06Vsh4.js → runtime-DQiHcfpT.js} +4 -4
- package/dist/{runtime-config-collectors-owiepuTT.js → runtime-config-collectors-CokvgXBK.js} +1 -1
- package/dist/{runtime-guard-BAkI3Ri4.js → runtime-guard-D4N1U69H.js} +1 -1
- package/dist/{sandbox-I0OArJYc.js → sandbox-CqhMEP_P.js} +15 -15
- package/dist/{sandbox-cli-Byd1iHHL.js → sandbox-cli-CJWXKmae.js} +35 -35
- package/dist/{secrets-cli-cvWxtbRr.js → secrets-cli-DEllaqgI.js} +17 -17
- package/dist/{security-cli-Dlr0WB3R.js → security-cli-CsBRazBA.js} +42 -42
- package/dist/{send-Bkdo82oz.js → send-41XrPhaV.js} +4 -4
- package/dist/{send-DVTBurfS.js → send-B3iJ8ToE.js} +5 -5
- package/dist/{send-CmECiyUu.js → send-Ch-mNnij.js} +4 -4
- package/dist/{send-C-k3_j2u.js → send-RssGHDsu.js} +4 -4
- package/dist/{server-CtKA1Cp0.js → server-BuyEF_-i.js} +23 -23
- package/dist/{server-context-Ca5AiDBb.js → server-context-Cm7u69Q7.js} +9 -9
- package/dist/{server-lifecycle-DTtM3Lhl.js → server-lifecycle-BG-u8nMU.js} +3 -3
- package/dist/{server-middleware-DDvaga1l.js → server-middleware-BizsA-re.js} +2 -2
- package/dist/{server-node-events-s5GkBDRY.js → server-node-events-C-Sm1NJJ.js} +87 -87
- package/dist/{service-BnFOyfze.js → service-Ox4QjIIv.js} +1 -1
- package/dist/{session-consumer-agents-FpCrtynZ.js → session-consumer-agents-Bjo2Pybw.js} +1 -1
- package/dist/{session-consumer-claim-sweep-Ccri2PgZ.js → session-consumer-claim-sweep-DcyQR1lf.js} +10 -10
- package/dist/{session-key-D38Dat68.js → session-key-DOpjqY4f.js} +1 -1
- package/dist/{session-storage-owner-B8-IRBP7.js → session-storage-owner-DSJotdF9.js} +8 -8
- package/dist/{session-storage-CAf99J7I.js → session-storage-sH-8KuPm.js} +7 -7
- package/dist/{session-store-targets-9oN46FBf.js → session-store-targets-BtKZ6O9-.js} +3 -3
- package/dist/{session-utils-CPdS25Fh.js → session-utils-acVEcYBx.js} +9 -9
- package/dist/{sessions-DjSoGXsL.js → sessions-B3-eoZNa.js} +6 -6
- package/dist/{sessions-CH1h_nhO.js → sessions-BoUKHlfq.js} +5 -5
- package/dist/{sessions-DoqXSqab.js → sessions-CkJwIbnD.js} +17 -17
- package/dist/{sessions-DyhCT0pp.js → sessions-WyhyMdoW.js} +5 -5
- package/dist/{sessions-claims-status-BzDkLrz5.js → sessions-claims-status-yyKjvPdI.js} +12 -12
- package/dist/{sessions-maintenance-core-Cnhlr59R.js → sessions-maintenance-core-DJHvi0-G.js} +5 -5
- package/dist/{setup-helpers-DtszvYvl.js → setup-helpers-BQv9HNqM.js} +1 -1
- package/dist/{shared-DneLSdUs.js → shared-BhyLuWyq.js} +4 -4
- package/dist/{shared-CgJjqVc_.js → shared-WARMxoiR.js} +2 -2
- package/dist/{skill-scanner-C2qUvy1A.js → skill-scanner-Dl8opLZe.js} +1 -1
- package/dist/{skills-CKjNigud.js → skills-BAtMgBiD.js} +4 -4
- package/dist/{skills-cli-DrWE30sF.js → skills-cli-BriosLsG.js} +19 -19
- package/dist/{skills-install-DYOyXyhf.js → skills-install-dlhAdjwE.js} +11 -11
- package/dist/{skills-status-CUqccvmE.js → skills-status-2pBbVUCf.js} +4 -4
- package/dist/{status-DJX7Nh9n.js → status-DWY8cs3q.js} +45 -45
- package/dist/{status.update-BjTs0tMA.js → status.update-C37l-lB3.js} +1 -1
- package/dist/{storage-config-MiCWhQ75.js → storage-config-CsGADkaH.js} +4 -4
- package/dist/{subsystem-BQlVwUGh.js → subsystem-C7-3a5Zr.js} +2 -2
- package/dist/{plugin-sdk/subsystem-BdiA7Q_t.js → subsystem-WQ4uaYQN.js} +74 -74
- package/dist/{supervisor-Tib9c0Rw.js → supervisor-CmU501hP.js} +2 -2
- package/dist/{system-cli-CE9TlrCx.js → system-cli-C5GELIKy.js} +14 -14
- package/dist/{system-run-command-CAIpFmMh.js → system-run-command-DU36hElD.js} +2 -2
- package/dist/{systemd-2lEi1s2h.js → systemd-BjNzb_4K.js} +2 -2
- package/dist/{systemd-hints-DQKdqw9A.js → systemd-hints-Ccpg4IDq.js} +3 -3
- package/dist/{systemd-linger-DUCPAGl8.js → systemd-linger-Om0p6z20.js} +2 -2
- package/dist/{table-BgEYg0Fr.js → table-aewm6YXw.js} +2 -2
- package/dist/{tailnet-Cf-zH8LX.js → tailnet-DFd-E-hz.js} +1 -1
- package/dist/{tailscale-CPYYbNsJ.js → tailscale-DAOiwlpJ.js} +2 -2
- package/dist/{task-pipeline-boot-MRo6ngzY.js → task-pipeline-boot-BYsUt1aD.js} +85 -85
- package/dist/{tasks-DlanUcxq.js → tasks-BH9BLMW5.js} +5 -5
- package/dist/{tasks-CEiohszX.js → tasks-zUDZ9WDS.js} +12 -12
- package/dist/{tool-display-BW2pVtBe.js → tool-display-gmmRfkw3.js} +1 -1
- package/dist/{tool-loop-detection-CEOjW4Zj.js → tool-loop-detection-CUWKSyGf.js} +2 -2
- package/dist/{tool-loop-detection-C0wLAXu8.js → tool-loop-detection-D_3ML-aV.js} +3 -3
- package/dist/{trash-DNn54Qs6.js → trash-ByCJFFqw.js} +3 -3
- package/dist/{tui-Df1UoEuB.js → tui-D3L5epd6.js} +9 -9
- package/dist/{tui-cli-Y-2Y0TeW.js → tui-cli-B9yGq3iI.js} +37 -37
- package/dist/{update-CmNsRKyB.js → update-BOw7sc5p.js} +3 -3
- package/dist/{update-cli-DSKMdoM3.js → update-cli-DMbakbAW.js} +120 -120
- package/dist/{update-runner-BiHwGWqV.js → update-runner-xWEkzp2Q.js} +5 -5
- package/dist/{user-run-recording-BijpJcES.js → user-run-recording-BxTnAUuI.js} +2 -2
- package/dist/{user-run-recording-DkuT1rGt.js → user-run-recording-CYg9LLHh.js} +2 -2
- package/dist/{validation-cli-exRDYYEc.js → validation-cli-CHqmdg5w.js} +84 -84
- package/dist/{web-cli-BX1XaHNZ.js → web-cli-DuQt0_V0.js} +3 -3
- package/dist/web-client/assets/{index-Cpg6_3Hi.js → index-CbKkwaEi.js} +1 -1
- package/dist/web-client/index.html +1 -1
- package/dist/{webhooks-cli-CkpR8Fzk.js → webhooks-cli-BmIhFbc4.js} +13 -13
- package/dist/{widearea-dns-DFhroEuN.js → widearea-dns-Dg8lFYi7.js} +1 -1
- package/dist/{with-timeout-DNQj_Xiv.js → with-timeout-maI6Hxh1.js} +6 -6
- package/dist/{workspace-Cl3X-aax.js → workspace-Bv2hEGNJ.js} +6 -6
- package/dist/{workspace-BmXTOUee.js → workspace-CNoka32n.js} +4 -4
- package/extensions/a2a/package.json +1 -1
- 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/identity-oidc/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/kokoro/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/ui-surfaces/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-sRVUxd_s.js +0 -32
- package/dist/cli-ax3_7oZf.js +0 -147
- package/dist/control-ui-v2/assets/Badge-sUgH4suZ.js +0 -1
- package/dist/github-copilot-token-Bm6yG6tw.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
- package/dist/register.configure-C_6WuEbz.js +0 -152
- /package/dist/{config-1om7Pwz0.js → config-CM9p9U7m.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import fs from "node:fs";
|
|
1
|
+
import { d as resolveEffectiveHomeDir, f as resolveRequiredHomeDir, r as resolveConfigPath, u as expandHomePrefix } from "./paths-B_gs59ga.js";
|
|
2
|
+
import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
|
|
4
3
|
import path from "node:path";
|
|
5
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
6
5
|
import os from "node:os";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import chalk, { Chalk } from "chalk";
|
|
7
|
+
import { Logger } from "tslog";
|
|
8
|
+
import json5 from "json5";
|
|
9
|
+
import fs from "node:fs/promises";
|
|
9
10
|
import { promisify } from "node:util";
|
|
10
11
|
import zlib from "node:zlib";
|
|
11
|
-
import chalk, { Chalk } from "chalk";
|
|
12
12
|
|
|
13
13
|
//#region src/infra/cli-root-options.ts
|
|
14
14
|
const FLAG_TERMINATOR = "--";
|
|
@@ -57,15 +57,15 @@ function getCommandPathInternal(argv, depth, opts) {
|
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/infra/tmp-openclaw-dir.ts
|
|
59
59
|
const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
|
|
60
|
-
const TMP_DIR_ACCESS_MODE =
|
|
60
|
+
const TMP_DIR_ACCESS_MODE = syncFs.constants.W_OK | syncFs.constants.X_OK;
|
|
61
61
|
function isNodeErrorWithCode(err, code) {
|
|
62
62
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
63
63
|
}
|
|
64
64
|
function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
65
|
-
const accessSync = options.accessSync ??
|
|
66
|
-
const chmodSync = options.chmodSync ??
|
|
67
|
-
const lstatSync = options.lstatSync ??
|
|
68
|
-
const mkdirSync = options.mkdirSync ??
|
|
65
|
+
const accessSync = options.accessSync ?? syncFs.accessSync;
|
|
66
|
+
const chmodSync = options.chmodSync ?? syncFs.chmodSync;
|
|
67
|
+
const lstatSync = options.lstatSync ?? syncFs.lstatSync;
|
|
68
|
+
const mkdirSync = options.mkdirSync ?? syncFs.mkdirSync;
|
|
69
69
|
const warn = options.warn ?? ((message) => console.warn(message));
|
|
70
70
|
const getuid = options.getuid ?? (() => {
|
|
71
71
|
try {
|
|
@@ -156,14 +156,14 @@ function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/utils.ts
|
|
158
158
|
async function ensureDir(dir) {
|
|
159
|
-
await
|
|
159
|
+
await syncFs.promises.mkdir(dir, { recursive: true });
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* Check if a file or directory exists at the given path.
|
|
163
163
|
*/
|
|
164
164
|
async function pathExists$1(targetPath) {
|
|
165
165
|
try {
|
|
166
|
-
await
|
|
166
|
+
await syncFs.promises.access(targetPath);
|
|
167
167
|
return true;
|
|
168
168
|
} catch {
|
|
169
169
|
return false;
|
|
@@ -253,7 +253,7 @@ function resolveConfigDir(env = process.env, homedir = os.homedir) {
|
|
|
253
253
|
if (override) return resolveUserPath(override);
|
|
254
254
|
const newDir = path.join(resolveRequiredHomeDir(env, homedir), ".openclaw");
|
|
255
255
|
try {
|
|
256
|
-
if (
|
|
256
|
+
if (syncFs.existsSync(newDir)) return newDir;
|
|
257
257
|
} catch {}
|
|
258
258
|
return newDir;
|
|
259
259
|
}
|
|
@@ -814,7 +814,7 @@ async function resolveBoundaryPathLexicalAsync(params) {
|
|
|
814
814
|
const stat = await readLexicalStat({
|
|
815
815
|
...sharedStepParams,
|
|
816
816
|
missingFromIndex: idx,
|
|
817
|
-
read: (cursor) => fs
|
|
817
|
+
read: (cursor) => fs.lstat(cursor)
|
|
818
818
|
});
|
|
819
819
|
if (!stat) break;
|
|
820
820
|
const disposition = handleLexicalStatDisposition({
|
|
@@ -851,7 +851,7 @@ function resolveBoundaryPathLexicalSync(params) {
|
|
|
851
851
|
rootCanonicalPath: params.rootCanonicalPath,
|
|
852
852
|
resolveParams: params.params,
|
|
853
853
|
absolutePath: params.absolutePath,
|
|
854
|
-
read: (cursor) =>
|
|
854
|
+
read: (cursor) => syncFs.lstatSync(cursor)
|
|
855
855
|
});
|
|
856
856
|
if (isPromiseLike(maybeStat)) throw new Error("Unexpected async lexical stat");
|
|
857
857
|
const stat = maybeStat;
|
|
@@ -986,7 +986,7 @@ async function resolvePathViaExistingAncestor(targetPath) {
|
|
|
986
986
|
}
|
|
987
987
|
if (!await pathExists(cursor)) return normalized;
|
|
988
988
|
try {
|
|
989
|
-
const resolvedAncestor = path.resolve(await fs
|
|
989
|
+
const resolvedAncestor = path.resolve(await fs.realpath(cursor));
|
|
990
990
|
if (missingSuffix.length === 0) return resolvedAncestor;
|
|
991
991
|
return path.resolve(resolvedAncestor, ...missingSuffix);
|
|
992
992
|
} catch {
|
|
@@ -997,15 +997,15 @@ function resolvePathViaExistingAncestorSync(targetPath) {
|
|
|
997
997
|
const normalized = path.resolve(targetPath);
|
|
998
998
|
let cursor = normalized;
|
|
999
999
|
const missingSuffix = [];
|
|
1000
|
-
while (!isFilesystemRoot(cursor) && !
|
|
1000
|
+
while (!isFilesystemRoot(cursor) && !syncFs.existsSync(cursor)) {
|
|
1001
1001
|
missingSuffix.unshift(path.basename(cursor));
|
|
1002
1002
|
const parent = path.dirname(cursor);
|
|
1003
1003
|
if (parent === cursor) break;
|
|
1004
1004
|
cursor = parent;
|
|
1005
1005
|
}
|
|
1006
|
-
if (!
|
|
1006
|
+
if (!syncFs.existsSync(cursor)) return normalized;
|
|
1007
1007
|
try {
|
|
1008
|
-
const resolvedAncestor = path.resolve(
|
|
1008
|
+
const resolvedAncestor = path.resolve(syncFs.realpathSync(cursor));
|
|
1009
1009
|
if (missingSuffix.length === 0) return resolvedAncestor;
|
|
1010
1010
|
return path.resolve(resolvedAncestor, ...missingSuffix);
|
|
1011
1011
|
} catch {
|
|
@@ -1016,7 +1016,7 @@ async function getPathKind(absolutePath, preserveFinalSymlink) {
|
|
|
1016
1016
|
try {
|
|
1017
1017
|
return {
|
|
1018
1018
|
exists: true,
|
|
1019
|
-
kind: toResolvedKind(preserveFinalSymlink ? await fs
|
|
1019
|
+
kind: toResolvedKind(preserveFinalSymlink ? await fs.lstat(absolutePath) : await fs.stat(absolutePath))
|
|
1020
1020
|
};
|
|
1021
1021
|
} catch (error) {
|
|
1022
1022
|
if (isNotFoundPathError(error)) return {
|
|
@@ -1030,7 +1030,7 @@ function getPathKindSync(absolutePath, preserveFinalSymlink) {
|
|
|
1030
1030
|
try {
|
|
1031
1031
|
return {
|
|
1032
1032
|
exists: true,
|
|
1033
|
-
kind: toResolvedKind(preserveFinalSymlink ?
|
|
1033
|
+
kind: toResolvedKind(preserveFinalSymlink ? syncFs.lstatSync(absolutePath) : syncFs.statSync(absolutePath))
|
|
1034
1034
|
};
|
|
1035
1035
|
} catch (error) {
|
|
1036
1036
|
if (isNotFoundPathError(error)) return {
|
|
@@ -1072,7 +1072,7 @@ function isFilesystemRoot(candidate) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
async function pathExists(targetPath) {
|
|
1074
1074
|
try {
|
|
1075
|
-
await fs
|
|
1075
|
+
await fs.lstat(targetPath);
|
|
1076
1076
|
return true;
|
|
1077
1077
|
} catch (error) {
|
|
1078
1078
|
if (isNotFoundPathError(error)) return false;
|
|
@@ -1081,19 +1081,19 @@ async function pathExists(targetPath) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
async function resolveSymlinkHopPath(symlinkPath) {
|
|
1083
1083
|
try {
|
|
1084
|
-
return path.resolve(await fs
|
|
1084
|
+
return path.resolve(await fs.realpath(symlinkPath));
|
|
1085
1085
|
} catch (error) {
|
|
1086
1086
|
if (!isNotFoundPathError(error)) throw error;
|
|
1087
|
-
const linkTarget = await fs
|
|
1087
|
+
const linkTarget = await fs.readlink(symlinkPath);
|
|
1088
1088
|
return resolvePathViaExistingAncestor(path.resolve(path.dirname(symlinkPath), linkTarget));
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
function resolveSymlinkHopPathSync(symlinkPath) {
|
|
1092
1092
|
try {
|
|
1093
|
-
return path.resolve(
|
|
1093
|
+
return path.resolve(syncFs.realpathSync(symlinkPath));
|
|
1094
1094
|
} catch (error) {
|
|
1095
1095
|
if (!isNotFoundPathError(error)) throw error;
|
|
1096
|
-
const linkTarget =
|
|
1096
|
+
const linkTarget = syncFs.readlinkSync(symlinkPath);
|
|
1097
1097
|
return resolvePathViaExistingAncestorSync(path.resolve(path.dirname(symlinkPath), linkTarget));
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
@@ -1119,7 +1119,7 @@ function sameFileIdentity(left, right) {
|
|
|
1119
1119
|
return sameFileIdentity$1(left, right);
|
|
1120
1120
|
}
|
|
1121
1121
|
function openVerifiedFileSync(params) {
|
|
1122
|
-
const ioFs = params.ioFs ??
|
|
1122
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
1123
1123
|
const allowedType = params.allowedType ?? "file";
|
|
1124
1124
|
const openReadFlags = ioFs.constants.O_RDONLY | (typeof ioFs.constants.O_NOFOLLOW === "number" ? ioFs.constants.O_NOFOLLOW : 0);
|
|
1125
1125
|
let fd = null;
|
|
@@ -1196,7 +1196,7 @@ function canUseBoundaryFileOpen(ioFs) {
|
|
|
1196
1196
|
return typeof ioFs.openSync === "function" && typeof ioFs.closeSync === "function" && typeof ioFs.fstatSync === "function" && typeof ioFs.lstatSync === "function" && typeof ioFs.realpathSync === "function" && typeof ioFs.readFileSync === "function" && typeof ioFs.constants === "object" && ioFs.constants !== null;
|
|
1197
1197
|
}
|
|
1198
1198
|
function openBoundaryFileSync(params) {
|
|
1199
|
-
const ioFs = params.ioFs ??
|
|
1199
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
1200
1200
|
const resolved = resolveBoundaryFilePathGeneric({
|
|
1201
1201
|
absolutePath: params.absolutePath,
|
|
1202
1202
|
resolve: (absolutePath) => resolveBoundaryPathSync({
|
|
@@ -1247,7 +1247,7 @@ function finalizeBoundaryFileOpen(params) {
|
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
async function openBoundaryFile(params) {
|
|
1250
|
-
const ioFs = params.ioFs ??
|
|
1250
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
1251
1251
|
const maybeResolved = resolveBoundaryFilePathGeneric({
|
|
1252
1252
|
absolutePath: params.absolutePath,
|
|
1253
1253
|
resolve: (absolutePath) => resolveBoundaryPath({
|
|
@@ -1302,7 +1302,7 @@ function isPathInside(basePath, candidatePath) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
function safeRealpathSync(filePath) {
|
|
1304
1304
|
try {
|
|
1305
|
-
return
|
|
1305
|
+
return syncFs.realpathSync(filePath);
|
|
1306
1306
|
} catch {
|
|
1307
1307
|
return null;
|
|
1308
1308
|
}
|
|
@@ -1423,7 +1423,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
1423
1423
|
const normalized = path.normalize(resolved);
|
|
1424
1424
|
if (!isPathInside(this.rootDir, normalized)) throw new ConfigIncludeError(`Include path escapes config directory: ${includePath} (root: ${this.rootDir})`, includePath);
|
|
1425
1425
|
try {
|
|
1426
|
-
const real =
|
|
1426
|
+
const real = syncFs.realpathSync(normalized);
|
|
1427
1427
|
if (!isPathInside(this.rootRealDir, real)) throw new ConfigIncludeError(`Include path resolves outside config directory (symlink): ${includePath} (root: ${this.rootDir})`, includePath);
|
|
1428
1428
|
} catch (err) {
|
|
1429
1429
|
if (err instanceof ConfigIncludeError) throw err;
|
|
@@ -1465,13 +1465,13 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
1465
1465
|
};
|
|
1466
1466
|
function safeRealpath(target) {
|
|
1467
1467
|
try {
|
|
1468
|
-
return
|
|
1468
|
+
return syncFs.realpathSync(target);
|
|
1469
1469
|
} catch {
|
|
1470
1470
|
return target;
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
function readConfigIncludeFileWithGuards(params) {
|
|
1474
|
-
const ioFs = params.ioFs ??
|
|
1474
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
1475
1475
|
const maxBytes = params.maxBytes ?? MAX_INCLUDE_FILE_BYTES;
|
|
1476
1476
|
if (!canUseBoundaryFileOpen(ioFs)) return ioFs.readFileSync(params.resolvedPath, "utf-8");
|
|
1477
1477
|
const opened = openBoundaryFileSync({
|
|
@@ -1494,13 +1494,13 @@ function readConfigIncludeFileWithGuards(params) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
const defaultResolver = {
|
|
1497
|
-
readFile: (p) =>
|
|
1497
|
+
readFile: (p) => syncFs.readFileSync(p, "utf-8"),
|
|
1498
1498
|
readFileWithGuards: ({ includePath, resolvedPath, rootRealDir }) => readConfigIncludeFileWithGuards({
|
|
1499
1499
|
includePath,
|
|
1500
1500
|
resolvedPath,
|
|
1501
1501
|
rootRealDir
|
|
1502
1502
|
}),
|
|
1503
|
-
parseJson: (raw) =>
|
|
1503
|
+
parseJson: (raw) => json5.parse(raw)
|
|
1504
1504
|
};
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -1555,16 +1555,16 @@ function normalizeConfigPaths(cfg) {
|
|
|
1555
1555
|
function readLoggingConfig() {
|
|
1556
1556
|
const configPath = resolveConfigPath();
|
|
1557
1557
|
try {
|
|
1558
|
-
if (!
|
|
1559
|
-
const raw =
|
|
1560
|
-
const resolvedIncludes = resolveConfigIncludes(
|
|
1561
|
-
readFile: (candidate) =>
|
|
1558
|
+
if (!syncFs.existsSync(configPath)) return;
|
|
1559
|
+
const raw = syncFs.readFileSync(configPath, "utf-8");
|
|
1560
|
+
const resolvedIncludes = resolveConfigIncludes(json5.parse(raw), configPath, {
|
|
1561
|
+
readFile: (candidate) => syncFs.readFileSync(candidate, "utf-8"),
|
|
1562
1562
|
readFileWithGuards: ({ includePath, resolvedPath, rootRealDir }) => readConfigIncludeFileWithGuards({
|
|
1563
1563
|
includePath,
|
|
1564
1564
|
resolvedPath,
|
|
1565
1565
|
rootRealDir
|
|
1566
1566
|
}),
|
|
1567
|
-
parseJson: (includeRaw) =>
|
|
1567
|
+
parseJson: (includeRaw) => json5.parse(includeRaw)
|
|
1568
1568
|
});
|
|
1569
1569
|
if (resolvedIncludes && typeof resolvedIncludes === "object" && "env" in resolvedIncludes) applyConfigEnvVars(resolvedIncludes);
|
|
1570
1570
|
const resolvedConfig = resolveConfigEnvVars(resolvedIncludes);
|
|
@@ -1755,7 +1755,7 @@ function rotateFileLog(filePath, policy, options = {}) {
|
|
|
1755
1755
|
skipped: true
|
|
1756
1756
|
};
|
|
1757
1757
|
if (policy.maxBackups <= 0) {
|
|
1758
|
-
|
|
1758
|
+
syncFs.rmSync(filePath, { force: true });
|
|
1759
1759
|
return {
|
|
1760
1760
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1761
1761
|
compressed: policy.compress === "gzip"
|
|
@@ -1764,9 +1764,9 @@ function rotateFileLog(filePath, policy, options = {}) {
|
|
|
1764
1764
|
rotateExistingBackups(filePath, policy.maxBackups);
|
|
1765
1765
|
const backup = `${filePath}.1${policy.compress === "gzip" ? ".gz" : ""}`;
|
|
1766
1766
|
if (policy.compress === "gzip") {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
} else
|
|
1767
|
+
syncFs.writeFileSync(backup, zlib.gzipSync(syncFs.readFileSync(filePath)), { mode: options.fileMode });
|
|
1768
|
+
syncFs.rmSync(filePath, { force: true });
|
|
1769
|
+
} else syncFs.renameSync(filePath, backup);
|
|
1770
1770
|
pruneExcessBackups(filePath, policy.maxBackups);
|
|
1771
1771
|
return {
|
|
1772
1772
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -1815,7 +1815,7 @@ function appendWithState(state, line, opts) {
|
|
|
1815
1815
|
async function appendNowAsync(state, policy, line, queuedBytes, opts) {
|
|
1816
1816
|
try {
|
|
1817
1817
|
state.activeOperation = "append";
|
|
1818
|
-
await
|
|
1818
|
+
await syncFs.promises.mkdir(path.dirname(policy.file), { recursive: true });
|
|
1819
1819
|
const currentBytes = await currentFileBytesAsync(policy.file);
|
|
1820
1820
|
if (currentBytes + queuedBytes > policy.maxFileBytes && currentBytes > 0) {
|
|
1821
1821
|
state.activeOperation = "rotate";
|
|
@@ -1824,13 +1824,13 @@ async function appendNowAsync(state, policy, line, queuedBytes, opts) {
|
|
|
1824
1824
|
strict: opts.strict
|
|
1825
1825
|
});
|
|
1826
1826
|
const rotationLine = state.lastRotation ? opts.onRotate?.(state.lastRotation) : void 0;
|
|
1827
|
-
if (rotationLine) await
|
|
1827
|
+
if (rotationLine) await syncFs.promises.appendFile(policy.file, rotationLine, {
|
|
1828
1828
|
encoding: "utf8",
|
|
1829
1829
|
mode: opts.fileMode
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
state.activeOperation = "append";
|
|
1833
|
-
await
|
|
1833
|
+
await syncFs.promises.appendFile(policy.file, line, {
|
|
1834
1834
|
encoding: "utf8",
|
|
1835
1835
|
mode: opts.fileMode
|
|
1836
1836
|
});
|
|
@@ -1845,7 +1845,7 @@ async function appendNowAsync(state, policy, line, queuedBytes, opts) {
|
|
|
1845
1845
|
function appendNow(state, policy, line, queuedBytes, opts) {
|
|
1846
1846
|
try {
|
|
1847
1847
|
state.activeOperation = "append";
|
|
1848
|
-
|
|
1848
|
+
syncFs.mkdirSync(path.dirname(policy.file), { recursive: true });
|
|
1849
1849
|
const currentBytes = currentFileBytes(policy.file);
|
|
1850
1850
|
if (currentBytes + queuedBytes > policy.maxFileBytes && currentBytes > 0) {
|
|
1851
1851
|
state.activeOperation = "rotate";
|
|
@@ -1854,13 +1854,13 @@ function appendNow(state, policy, line, queuedBytes, opts) {
|
|
|
1854
1854
|
strict: opts.strict
|
|
1855
1855
|
});
|
|
1856
1856
|
const rotationLine = state.lastRotation ? opts.onRotate?.(state.lastRotation) : void 0;
|
|
1857
|
-
if (rotationLine)
|
|
1857
|
+
if (rotationLine) syncFs.appendFileSync(policy.file, rotationLine, {
|
|
1858
1858
|
encoding: "utf8",
|
|
1859
1859
|
mode: opts.fileMode
|
|
1860
1860
|
});
|
|
1861
1861
|
}
|
|
1862
1862
|
state.activeOperation = "append";
|
|
1863
|
-
|
|
1863
|
+
syncFs.appendFileSync(policy.file, line, {
|
|
1864
1864
|
encoding: "utf8",
|
|
1865
1865
|
mode: opts.fileMode
|
|
1866
1866
|
});
|
|
@@ -1895,7 +1895,7 @@ async function rotateFileLogAsync(filePath, policy, options = {}) {
|
|
|
1895
1895
|
skipped: true
|
|
1896
1896
|
};
|
|
1897
1897
|
if (policy.maxBackups <= 0) {
|
|
1898
|
-
await
|
|
1898
|
+
await syncFs.promises.rm(filePath, { force: true });
|
|
1899
1899
|
return {
|
|
1900
1900
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1901
1901
|
compressed: policy.compress === "gzip"
|
|
@@ -1904,9 +1904,9 @@ async function rotateFileLogAsync(filePath, policy, options = {}) {
|
|
|
1904
1904
|
await rotateExistingBackupsAsync(filePath, policy.maxBackups);
|
|
1905
1905
|
const backup = `${filePath}.1${policy.compress === "gzip" ? ".gz" : ""}`;
|
|
1906
1906
|
if (policy.compress === "gzip") {
|
|
1907
|
-
await
|
|
1908
|
-
await
|
|
1909
|
-
} else await
|
|
1907
|
+
await syncFs.promises.writeFile(backup, await gzipAsync(await syncFs.promises.readFile(filePath)), { mode: options.fileMode });
|
|
1908
|
+
await syncFs.promises.rm(filePath, { force: true });
|
|
1909
|
+
} else await syncFs.promises.rename(filePath, backup);
|
|
1910
1910
|
await pruneExcessBackupsAsync(filePath, policy.maxBackups);
|
|
1911
1911
|
return {
|
|
1912
1912
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -1925,39 +1925,39 @@ async function rotateFileLogAsync(filePath, policy, options = {}) {
|
|
|
1925
1925
|
function rotateExistingBackups(filePath, maxBackups) {
|
|
1926
1926
|
for (const backup of listBackupEntries(filePath).toSorted((a, b) => b.slot - a.slot)) {
|
|
1927
1927
|
if (backup.slot >= maxBackups) {
|
|
1928
|
-
|
|
1928
|
+
syncFs.rmSync(backup.path, { force: true });
|
|
1929
1929
|
continue;
|
|
1930
1930
|
}
|
|
1931
1931
|
const target = `${filePath}.${backup.slot + 1}${backup.suffix}`;
|
|
1932
|
-
|
|
1933
|
-
|
|
1932
|
+
syncFs.rmSync(target, { force: true });
|
|
1933
|
+
syncFs.renameSync(backup.path, target);
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
1936
|
async function rotateExistingBackupsAsync(filePath, maxBackups) {
|
|
1937
1937
|
for (const backup of (await listBackupEntriesAsync(filePath)).toSorted((a, b) => b.slot - a.slot)) {
|
|
1938
1938
|
if (backup.slot >= maxBackups) {
|
|
1939
|
-
await
|
|
1939
|
+
await syncFs.promises.rm(backup.path, { force: true });
|
|
1940
1940
|
continue;
|
|
1941
1941
|
}
|
|
1942
1942
|
const target = `${filePath}.${backup.slot + 1}${backup.suffix}`;
|
|
1943
|
-
await
|
|
1944
|
-
await
|
|
1943
|
+
await syncFs.promises.rm(target, { force: true });
|
|
1944
|
+
await syncFs.promises.rename(backup.path, target);
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
function pruneExcessBackups(filePath, maxBackups) {
|
|
1948
1948
|
const retained = listBackupEntries(filePath).toSorted((a, b) => a.slot - b.slot || b.mtimeMs - a.mtimeMs);
|
|
1949
|
-
for (const backup of retained.slice(maxBackups))
|
|
1949
|
+
for (const backup of retained.slice(maxBackups)) syncFs.rmSync(backup.path, { force: true });
|
|
1950
1950
|
}
|
|
1951
1951
|
async function pruneExcessBackupsAsync(filePath, maxBackups) {
|
|
1952
1952
|
const retained = (await listBackupEntriesAsync(filePath)).toSorted((a, b) => a.slot - b.slot || b.mtimeMs - a.mtimeMs);
|
|
1953
|
-
for (const backup of retained.slice(maxBackups)) await
|
|
1953
|
+
for (const backup of retained.slice(maxBackups)) await syncFs.promises.rm(backup.path, { force: true });
|
|
1954
1954
|
}
|
|
1955
1955
|
function listBackupEntries(filePath) {
|
|
1956
1956
|
const dir = path.dirname(filePath);
|
|
1957
1957
|
const base = path.basename(filePath).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1958
1958
|
let names = [];
|
|
1959
1959
|
try {
|
|
1960
|
-
names =
|
|
1960
|
+
names = syncFs.readdirSync(dir);
|
|
1961
1961
|
} catch {
|
|
1962
1962
|
return [];
|
|
1963
1963
|
}
|
|
@@ -1968,7 +1968,7 @@ function listBackupEntries(filePath) {
|
|
|
1968
1968
|
const backupPath = path.join(dir, name);
|
|
1969
1969
|
let mtimeMs = 0;
|
|
1970
1970
|
try {
|
|
1971
|
-
mtimeMs =
|
|
1971
|
+
mtimeMs = syncFs.statSync(backupPath).mtimeMs;
|
|
1972
1972
|
} catch {
|
|
1973
1973
|
return [];
|
|
1974
1974
|
}
|
|
@@ -1985,7 +1985,7 @@ async function listBackupEntriesAsync(filePath) {
|
|
|
1985
1985
|
const base = path.basename(filePath).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1986
1986
|
let names = [];
|
|
1987
1987
|
try {
|
|
1988
|
-
names = await
|
|
1988
|
+
names = await syncFs.promises.readdir(dir);
|
|
1989
1989
|
} catch {
|
|
1990
1990
|
return [];
|
|
1991
1991
|
}
|
|
@@ -1995,7 +1995,7 @@ async function listBackupEntriesAsync(filePath) {
|
|
|
1995
1995
|
if (!match) return null;
|
|
1996
1996
|
const backupPath = path.join(dir, name);
|
|
1997
1997
|
try {
|
|
1998
|
-
const stat = await
|
|
1998
|
+
const stat = await syncFs.promises.stat(backupPath);
|
|
1999
1999
|
return {
|
|
2000
2000
|
path: backupPath,
|
|
2001
2001
|
slot: Number(match[1]),
|
|
@@ -2009,14 +2009,14 @@ async function listBackupEntriesAsync(filePath) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
function currentFileBytes(filePath) {
|
|
2011
2011
|
try {
|
|
2012
|
-
return
|
|
2012
|
+
return syncFs.statSync(filePath).size;
|
|
2013
2013
|
} catch {
|
|
2014
2014
|
return 0;
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
async function currentFileBytesAsync(filePath) {
|
|
2018
2018
|
try {
|
|
2019
|
-
return (await
|
|
2019
|
+
return (await syncFs.promises.stat(filePath)).size;
|
|
2020
2020
|
} catch {
|
|
2021
2021
|
return 0;
|
|
2022
2022
|
}
|
|
@@ -2177,7 +2177,7 @@ function buildLogger(settings) {
|
|
|
2177
2177
|
for (const transport of externalTransports) attachExternalTransport(logger, transport);
|
|
2178
2178
|
return logger;
|
|
2179
2179
|
}
|
|
2180
|
-
|
|
2180
|
+
syncFs.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
2181
2181
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
2182
2182
|
const primaryPolicy = resolveFileLogProfile(settings.writerConfig, "primary", {
|
|
2183
2183
|
file: settings.file,
|
|
@@ -2248,7 +2248,7 @@ function isRollingPath(file) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
function pruneOldRollingLogs(dir) {
|
|
2250
2250
|
try {
|
|
2251
|
-
const entries =
|
|
2251
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
2252
2252
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
2253
2253
|
for (const entry of entries) {
|
|
2254
2254
|
if (!entry.isFile()) continue;
|
|
@@ -2256,13 +2256,13 @@ function pruneOldRollingLogs(dir) {
|
|
|
2256
2256
|
const backupDateMs = rollingBackupDateMs(entry.name);
|
|
2257
2257
|
if (backupDateMs !== null) {
|
|
2258
2258
|
if (backupDateMs < cutoff) try {
|
|
2259
|
-
|
|
2259
|
+
syncFs.rmSync(fullPath, { force: true });
|
|
2260
2260
|
} catch {}
|
|
2261
2261
|
continue;
|
|
2262
2262
|
}
|
|
2263
2263
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
2264
2264
|
try {
|
|
2265
|
-
if (
|
|
2265
|
+
if (syncFs.statSync(fullPath).mtimeMs < cutoff) syncFs.rmSync(fullPath, { force: true });
|
|
2266
2266
|
} catch {}
|
|
2267
2267
|
}
|
|
2268
2268
|
} catch {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-CayHK8Kc.js";
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-C7-3a5Zr.js";
|
|
4
4
|
import { n as spawnWithFallback } from "./spawn-utils-Djcud2hg.js";
|
|
5
|
-
import { r as readProcessElapsedSeconds } from "./pid-alive-
|
|
5
|
+
import { r as readProcessElapsedSeconds } from "./pid-alive-CVi1kpc0.js";
|
|
6
6
|
import { t as getGatewayInstanceId } from "./gateway-instance-id-SIbgQpLX.js";
|
|
7
7
|
import { t as killProcessTree$1 } from "./kill-tree-N_tCnsPC.js";
|
|
8
8
|
import fs, { mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "./boolean-CYQfHIEb.js";
|
|
2
|
-
import "./legacy-names-
|
|
2
|
+
import "./legacy-names-m85yQK-H.js";
|
|
3
3
|
import "./paths-CayHK8Kc.js";
|
|
4
|
-
import { p as theme, t as danger } from "./globals-
|
|
5
|
-
import { d as defaultRuntime } from "./console-
|
|
6
|
-
import "./subsystem-
|
|
7
|
-
import "./exec-
|
|
8
|
-
import "./plugins-
|
|
4
|
+
import { p as theme, t as danger } from "./globals-BOYJmqPO.js";
|
|
5
|
+
import { d as defaultRuntime } from "./console-eDkX4znK.js";
|
|
6
|
+
import "./subsystem-C7-3a5Zr.js";
|
|
7
|
+
import "./exec-DiLAfuLr.js";
|
|
8
|
+
import "./plugins-50bsyRF5.js";
|
|
9
9
|
import "./retry-policy-BvyCs0Qe.js";
|
|
10
10
|
import "./version-CeEWmZ0w.js";
|
|
11
11
|
import "./github-copilot-token-CAAvAcZq.js";
|
|
12
|
-
import "./pid-alive-
|
|
12
|
+
import "./pid-alive-CVi1kpc0.js";
|
|
13
13
|
import "./static-app-BoycbWh_.js";
|
|
14
|
-
import "./net-
|
|
15
|
-
import "./tailnet-
|
|
14
|
+
import "./net-D11xIRO3.js";
|
|
15
|
+
import "./tailnet-DFd-E-hz.js";
|
|
16
16
|
import "./task-run-types-Dd3nCzGy.js";
|
|
17
|
-
import "./client-
|
|
18
|
-
import "./call-
|
|
19
|
-
import { t as formatDocsLink } from "./links-
|
|
20
|
-
import "./progress-
|
|
21
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
17
|
+
import "./client-CXlXbWxa.js";
|
|
18
|
+
import "./call-DC_l0C6c.js";
|
|
19
|
+
import { t as formatDocsLink } from "./links-C3uVLgry.js";
|
|
20
|
+
import "./progress-DLl5RtiT.js";
|
|
21
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DQG3hBI5.js";
|
|
22
22
|
|
|
23
23
|
//#region src/cli/system-cli.ts
|
|
24
24
|
const normalizeWakeMode = (raw) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { $a as unwrapDispatchWrappersForResolution, Qa as normalizeExecutableToken, Ya as hasEnvManipulationBeforeShellWrapper, io as resolveInlineCommandMatch, no as POSIX_INLINE_COMMAND_FLAGS, qa as extractShellWrapperCommand, ro as POWERSHELL_INLINE_COMMAND_FLAGS, to as unwrapKnownShellMultiplexerInvocation } from "./plugins-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-C7-3a5Zr.js";
|
|
2
|
+
import { $a as unwrapDispatchWrappersForResolution, Qa as normalizeExecutableToken, Ya as hasEnvManipulationBeforeShellWrapper, io as resolveInlineCommandMatch, no as POSIX_INLINE_COMMAND_FLAGS, qa as extractShellWrapperCommand, ro as POWERSHELL_INLINE_COMMAND_FLAGS, to as unwrapKnownShellMultiplexerInvocation } from "./plugins-50bsyRF5.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/system-run-command.ts
|
|
5
5
|
const log = createSubsystemLogger("infra/system-run-command");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as colorize, f as isRich, p as theme } from "./globals-
|
|
2
|
-
import { n as runExec, t as runCommandWithTimeout } from "./exec-
|
|
1
|
+
import { d as colorize, f as isRich, p as theme } from "./globals-BOYJmqPO.js";
|
|
2
|
+
import { n as runExec, t as runCommandWithTimeout } from "./exec-DiLAfuLr.js";
|
|
3
3
|
import { d as resolveGatewayProfileSuffix, f as resolveGatewayServiceDescription, i as LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES, p as resolveGatewaySystemdServiceName } from "./constants-DlfZC20U.js";
|
|
4
4
|
import { t as execFileUtf8 } from "./exec-file-D3cKPEXq.js";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as isNodeRuntime, x as isBunRuntime } from "./entry.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-GeSaucOC.js";
|
|
3
|
-
import { c as isVersionManagedNodePath, f as resolveSystemNodePath, o as getMinimalServicePathPartsFromEnv, s as isSystemNodePath } from "./daemon-install-helpers-
|
|
4
|
-
import { c as resolveLaunchAgentPlistPath } from "./service-
|
|
5
|
-
import { o as resolveSystemdUserUnitPath } from "./systemd-
|
|
3
|
+
import { c as isVersionManagedNodePath, f as resolveSystemNodePath, o as getMinimalServicePathPartsFromEnv, s as isSystemNodePath } from "./daemon-install-helpers-CU4mnKsx.js";
|
|
4
|
+
import { c as resolveLaunchAgentPlistPath } from "./service-Ox4QjIIv.js";
|
|
5
|
+
import { o as resolveSystemdUserUnitPath } from "./systemd-BjNzb_4K.js";
|
|
6
6
|
import { t as formatRuntimeStatusWithDetails } from "./runtime-status-Bx6LYt1F.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as note } from "./note-
|
|
3
|
-
import { d as enableSystemdUserLinger, f as readSystemdUserLingerStatus, r as isSystemdUserServiceAvailable } from "./systemd-
|
|
2
|
+
import { t as note } from "./note-3jvXiQ6d.js";
|
|
3
|
+
import { d as enableSystemdUserLinger, f as readSystemdUserLingerStatus, r as isSystemdUserServiceAvailable } from "./systemd-BjNzb_4K.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/systemd-linger.ts
|
|
6
6
|
var systemd_linger_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pt as displayString } from "./globals-
|
|
2
|
-
import { l as visibleWidth } from "./console-
|
|
1
|
+
import { pt as displayString } from "./globals-BOYJmqPO.js";
|
|
2
|
+
import { l as visibleWidth } from "./console-eDkX4znK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/terminal/table.ts
|
|
5
5
|
function repeat(ch, n) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as logVerbose, i as isYes, r as isVerbose } from "./globals-
|
|
2
|
-
import { n as runExec } from "./exec-
|
|
1
|
+
import { a as logVerbose, i as isYes, r as isVerbose } from "./globals-BOYJmqPO.js";
|
|
2
|
+
import { n as runExec } from "./exec-DiLAfuLr.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { stdin, stdout } from "node:process";
|
|
5
5
|
import readline from "node:readline/promises";
|