@qqbrowser/openclaw-qbot 0.0.139 → 0.0.142
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/account-lookup-CW-_CL7y.js +1 -0
- package/dist/acp-cli-BaslDuk6.js +1 -0
- package/dist/acp-cli-f5-uI85a.js +1 -0
- package/dist/active-listener-Cce5tcPa.js +1 -0
- package/dist/active-listener-D8VOdVx3.js +1 -0
- package/dist/active-listener-DeKRt_UV.js +1 -0
- package/dist/active-listener-Dle9QX40.js +1 -0
- package/dist/agent-scope-DAWJwFfl.js +1 -0
- package/dist/agent-scope-DXZc3eNT.js +1 -0
- package/dist/agents-Bpp_F5In.js +1 -0
- package/dist/agents.config-B6LRG9eP.js +1 -0
- package/dist/agents.config-DfIJAGcd.js +1 -0
- package/dist/allow-from-B6dI7oz8.js +1 -0
- package/dist/allow-from-DEeVIPKS.js +1 -0
- package/dist/api-BeG0ObSq.js +1 -0
- package/dist/api-Dx8x1KTs.js +1 -0
- package/dist/api-key-rotation-BRt-vnRV.js +1 -0
- package/dist/api-key-rotation-CCH1wYVU.js +1 -0
- package/dist/api-key-rotation-D0QU-kQ9.js +1 -0
- package/dist/api-key-rotation-Di6QgXx7.js +1 -0
- package/dist/arg-split-BOqSMBuf.js +1 -0
- package/dist/arg-split-DE5RqDHq.js +1 -0
- package/dist/audio-preflight-B5o7P9qi.js +1 -0
- package/dist/audio-preflight-CxD7VCHW.js +1 -0
- package/dist/audio-preflight-DKSCBKRb.js +1 -0
- package/dist/audio-preflight-Dpk8-Bmk.js +1 -0
- package/dist/audio-transcription-runner-Bd1OZC6K.js +1 -0
- package/dist/audio-transcription-runner-D4Bp6MM7.js +1 -0
- package/dist/audio-transcription-runner-DPwmBYQj.js +1 -0
- package/dist/audio-transcription-runner-DSr6OIz1.js +1 -0
- package/dist/audit-C7RP7G_g.js +1 -0
- package/dist/audit-jkdcAUep.js +1 -0
- package/dist/audit-membership-runtime-BpRsMj5-.js +1 -0
- package/dist/audit-membership-runtime-BsfLZNBj.js +1 -0
- package/dist/audit-membership-runtime-DRHirRmx.js +1 -0
- package/dist/audit-membership-runtime-g0dEWJTp.js +1 -0
- package/dist/audit-membership-runtime-kdyToskD.js +1 -0
- package/dist/auth-choice-B7LSoXZ_.js +1 -0
- package/dist/auth-choice-CxMH4c-u.js +1 -0
- package/dist/auth-choice-DvTApGhx.js +1 -0
- package/dist/auth-choice-EQdNd7jO.js +1 -0
- package/dist/auth-choice-options-B3WQyS7I.js +1 -0
- package/dist/auth-choice-options-Dw14noox.js +1 -0
- package/dist/auth-choice-prompt-uegl56cf.js +1 -0
- package/dist/auth-choice-prompt-xYj13czb.js +1 -0
- package/dist/auth-choice.apply-helpers-B7S-PcH_.js +1 -0
- package/dist/auth-choice.apply-helpers-gaL-oSft.js +1 -0
- package/dist/auth-profiles-T8DuH3ax.js +1 -0
- package/dist/auth-token-9OTF1FmL.js +1 -0
- package/dist/auth-token-kGltuM6S.js +1 -0
- package/dist/banner-9u45RL26.js +1 -0
- package/dist/bonjour-discovery-CFZXPega.js +1 -0
- package/dist/bonjour-discovery-CjivQOxi.js +1 -0
- package/dist/boolean-Ch3DfXPy.js +1 -0
- package/dist/boolean-D15s2V33.js +1 -0
- package/dist/boolean-DypnRoRK.js +1 -0
- package/dist/brew-COcDl8CB.js +1 -0
- package/dist/brew-DDPm_HfE.js +1 -0
- package/dist/browser-cli-DQHE2iPY.js +1 -0
- package/dist/browser-cli-Dt0ds-an.js +1 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -0
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -0
- package/dist/bundled/command-logger/handler.js +1 -0
- package/dist/bundled/session-memory/handler.js +1 -0
- package/dist/call-B8Fb4_oh.js +1 -0
- package/dist/call-CqoMqP5b.js +1 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +1705 -2
- package/dist/channel-account-context-BMPAMZEv.js +1 -0
- package/dist/channel-account-context-DAcarnqW.js +1 -0
- package/dist/channel-activity-B04WbrrK.js +1 -0
- package/dist/channel-activity-BBrgoad1.js +1 -0
- package/dist/channel-activity-CgbOWaay.js +1 -0
- package/dist/channel-activity-YIMhOAUo.js +1 -0
- package/dist/channel-activity-YjYNzCpJ.js +1 -0
- package/dist/channel-options-CEIzjOno.js +1 -0
- package/dist/channel-options-D2syI791.js +1 -0
- package/dist/channel-selection-BBeE1TmB.js +1 -0
- package/dist/channel-selection-CbNtbAEf.js +1 -0
- package/dist/channel-web-BrElpZAc.js +1 -0
- package/dist/channel-web-CxHbET4B.js +1 -0
- package/dist/channels/plugins/actions/discord.js +1 -0
- package/dist/channels/plugins/actions/signal.js +1 -0
- package/dist/channels/plugins/actions/telegram.js +1 -0
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -0
- package/dist/channels-cli-BmAJuuRs.js +1 -0
- package/dist/channels-cli-Dgosczr6.js +1 -0
- package/dist/channels-status-issues-8eFrGKyf.js +1 -0
- package/dist/channels-status-issues-PRgOT90w.js +1 -0
- package/dist/chat-envelope-Bznn2SoS.js +1 -0
- package/dist/chat-envelope-HVpKusFc.js +1 -0
- package/dist/clack-prompter-DBPdGdqp.js +1 -0
- package/dist/clack-prompter-Dq0aY6iM.js +1 -0
- package/dist/clawbot-cli-CgS7TkEx.js +1 -0
- package/dist/clawbot-cli-DZ2K0OTk.js +1 -0
- package/dist/cleanup-utils-BWm70DoD.js +1 -0
- package/dist/cleanup-utils-D-RhEX6F.js +1 -0
- package/dist/cli-BcnoCo4z.js +1 -0
- package/dist/cli-D8T2tphD.js +1 -0
- package/dist/cli-utils-BY7dLMFy.js +1 -0
- package/dist/cli-utils-BleB1eys.js +1 -0
- package/dist/clipboard-Bk8cviBt.js +1 -0
- package/dist/clipboard-CKT_VIkG.js +1 -0
- package/dist/cmd-argv-BBT5l8AV.js +1 -0
- package/dist/cmd-argv-Bh-KpaZ0.js +1 -0
- package/dist/command-format-BbDT1tlm.js +1 -0
- package/dist/command-format-CLxIPuLR.js +1 -0
- package/dist/command-options-BpOUDl2S.js +1 -0
- package/dist/command-options-Bq5nQxz6.js +1 -0
- package/dist/command-poll-backoff-BZLHYB2k.js +1 -0
- package/dist/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/command-poll-backoff-Df6cOQrX.js +1 -0
- package/dist/command-poll-backoff-endAPdwn.js +1 -0
- package/dist/command-registry-CfuXCRwV.js +1 -0
- package/dist/command-secret-targets-BVN3kiT9.js +1 -0
- package/dist/command-secret-targets-BlN-J_fA.js +1 -0
- package/dist/commands-CGpM84iR.js +1 -0
- package/dist/commands-Dy7duWlt.js +1 -0
- package/dist/commands-registry-B1x54ukc.js +1 -0
- package/dist/commands-registry-Cpl4QnG4.js +1 -0
- package/dist/commands-registry-D40KqYOm.js +1 -0
- package/dist/commands-registry-SeddSmFK.js +1 -0
- package/dist/compact-Dg66DXx_.js +1 -0
- package/dist/completion-cli-BZi4nuQb.js +1 -0
- package/dist/completion-cli-C40TWdsv.js +1 -0
- package/dist/config-BqW5S1xL.js +1 -0
- package/dist/config-D12ZLKqh.js +1 -0
- package/dist/config-cli-1ojSLwAj.js +1 -0
- package/dist/config-cli-CBte2b1h.js +1 -0
- package/dist/config-guard-BTNXbWoO.js +1 -0
- package/dist/config-guard-sYYx9zEF.js +1 -0
- package/dist/config-validation-C1La_IZU.js +1 -0
- package/dist/config-validation-DviYxW8Y.js +1 -0
- package/dist/configure-DJrNDEpR.js +1 -0
- package/dist/configure-kod4tmZa.js +1 -0
- package/dist/connection-auth-B_Uk6Vk8.js +1 -0
- package/dist/connection-auth-C8iru0UB.js +1 -0
- package/dist/context-window-guard-7crlatf9.js +1 -0
- package/dist/context-window-guard-CPChk363.js +1 -0
- package/dist/control-ui-assets-BIa0GGDg.js +1 -0
- package/dist/control-ui-assets-CTHGGgaX.js +1 -0
- package/dist/cron-cli-Dha16Lo-.js +1 -0
- package/dist/cron-cli-QHS2pKZ_.js +1 -0
- package/dist/daemon-cli-BuXTzSnU.js +1 -0
- package/dist/daemon-cli-DOTKuS7d.js +1 -0
- package/dist/daemon-cli.js +1 -0
- package/dist/daemon-install-C30rBssi.js +1 -0
- package/dist/daemon-install-HrqlOCrc.js +1 -0
- package/dist/daemon-install-plan.shared-CfA37Ut_.js +1 -0
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +1 -0
- package/dist/daemon-runtime-DHiDbRuC.js +1 -0
- package/dist/daemon-runtime-VcpeBRJV.js +1 -0
- package/dist/dangerous-name-matching-BOmvAibz.js +1 -0
- package/dist/dangerous-name-matching-DtllRqBD.js +1 -0
- package/dist/dangerous-tools-CFRYQJ6V.js +1 -0
- package/dist/dangerous-tools-oYCu5wfC.js +1 -0
- package/dist/deliver-56mQkDw3.js +1 -0
- package/dist/deliver-BFQ4Zx9z.js +1 -0
- package/dist/deliver-BHuhHfkH.js +1 -0
- package/dist/deliver-ClBkV2eD.js +1 -0
- package/dist/delivery-queue-CKbauSFq.js +1 -0
- package/dist/delivery-queue-nkPJu0fY.js +1 -0
- package/dist/device-pairing-CTFpaTrD.js +1 -0
- package/dist/device-pairing-QTK0dod3.js +1 -0
- package/dist/devices-cli-Ckxd0k0I.js +1 -0
- package/dist/devices-cli-Db36mBHq.js +1 -0
- package/dist/diagnostic-BrE4lMIf.js +1 -0
- package/dist/diagnostic-CDxNevIQ.js +1 -0
- package/dist/diagnostic-DOzHPnht.js +1 -0
- package/dist/diagnostic-DQq4Bwrs.js +1 -0
- package/dist/diagnostics-BgbeL9KE.js +1 -0
- package/dist/diagnostics-Cdctg9K_.js +1 -0
- package/dist/directory-cli-DDTaUkjW.js +1 -0
- package/dist/directory-cli-_gTFSHMW.js +1 -0
- package/dist/dns-cli--4PwtR2Y.js +1 -0
- package/dist/dns-cli-C4DwKquN.js +1 -0
- package/dist/docs-cli-Cdw9Iz9a.js +1 -0
- package/dist/docs-cli-ClD2UyX1.js +1 -0
- package/dist/doctor-completion-BJ6steqx.js +1 -0
- package/dist/doctor-completion-DMJhfrtC.js +1 -0
- package/dist/doctor-config-flow-D4F3mz4h.js +1 -0
- package/dist/doctor-config-flow-DnOyVZhQ.js +1 -0
- package/dist/enable-BhD84GhD.js +1 -0
- package/dist/enable-Ccf9wSM8.js +1 -0
- package/dist/entry-status-CCwwKO43.js +1 -0
- package/dist/entry-status-CoXkbJcX.js +1 -0
- package/dist/entry.js +1 -0
- package/dist/env-D7wNuBx1.js +1 -0
- package/dist/env-overrides-DHtB4kK3.js +1 -0
- package/dist/env-overrides-DXJbFrwI.js +1 -0
- package/dist/errors-6SQWM9dj.js +1 -0
- package/dist/errors-Bunti32V.js +1 -0
- package/dist/exec-B3eleY5O.js +1 -0
- package/dist/exec-DHqLtFYt.js +1 -0
- package/dist/exec-approvals-BXO9Cezj.js +1 -0
- package/dist/exec-approvals-BpBNEy6i.js +1 -0
- package/dist/exec-approvals-allowlist-CE3nYh0K.js +1 -0
- package/dist/exec-approvals-allowlist-D8mN7nxV.js +1 -0
- package/dist/exec-approvals-cli-CUcuN63y.js +1 -0
- package/dist/exec-approvals-cli-CxUGD08t.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-Dt0GchLp.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-dcCS_Adf.js +1 -0
- package/dist/fetch-B9tORjG8.js +1 -0
- package/dist/fetch-BJT3BrkJ.js +1 -0
- package/dist/fetch-B_wRifvZ.js +1 -0
- package/dist/fetch-Bn0mWg6a.js +1 -0
- package/dist/fetch-CQaNr5J1.js +1 -0
- package/dist/fetch-Ce-scEU-.js +1 -0
- package/dist/fetch-D0rZDHKO.js +1 -0
- package/dist/fetch-DHo17YmK.js +1 -0
- package/dist/fetch-Dh-apy46.js +1 -0
- package/dist/fetch-Dikjvc5M.js +1 -0
- package/dist/fetch-DsjPfQlp.js +1 -0
- package/dist/fetch-_g8lZ8K8.js +1 -0
- package/dist/fetch-guard-BrTtJw7h.js +1 -0
- package/dist/fetch-guard-D10s0raB.js +1 -0
- package/dist/fetch-guard-DPdY0NXR.js +1 -0
- package/dist/fetch-guard-cu7DGSRF.js +1 -0
- package/dist/fetch-hy0JKSsm.js +1 -0
- package/dist/fetch-timeout-CdYxWG9w.js +1 -0
- package/dist/fetch-timeout-Cj8_oAls.js +1 -0
- package/dist/fetch-timeout-DoOI_izT.js +1 -0
- package/dist/fetch-timeout-u8g99Ax0.js +1 -0
- package/dist/format-Bn1bwJKX.js +1 -0
- package/dist/format-Ce7I7s-k.js +1 -0
- package/dist/format-duration-C8AzNqKh.js +1 -0
- package/dist/format-duration-D5AMtmHa.js +1 -0
- package/dist/format-relative-B9pSIdGe.js +1 -0
- package/dist/format-relative-DkMjYy7z.js +1 -0
- package/dist/frontmatter-BkZkwkVO.js +1 -0
- package/dist/frontmatter-C7mzDNxd.js +1 -0
- package/dist/frontmatter-CzpfPBFl.js +1 -0
- package/dist/gateway-cli-CKu0FA7D.js +1 -0
- package/dist/gateway-cli-C_s9eMlC.js +1 -0
- package/dist/gateway-install-token-BCnuZeh1.js +1 -0
- package/dist/gateway-install-token-DiDvDPJQ.js +1 -0
- package/dist/gateway-rpc-iFvDyHYd.js +1 -0
- package/dist/gateway-rpc-tEEvY0kH.js +1 -0
- package/dist/github-copilot-token-C79yeDKS.js +1 -0
- package/dist/github-copilot-token-DGYAlOmV.js +1 -0
- package/dist/github-copilot-token-DePP-lIf.js +1 -0
- package/dist/github-copilot-token-wm6mbypz.js +1 -0
- package/dist/gmail-setup-utils-CYOH3zzx.js +1 -0
- package/dist/gmail-setup-utils-S-MyEGuj.js +1 -0
- package/dist/group-access-BHKVOhrj.js +1 -0
- package/dist/group-access-D2DOYMfr.js +1 -0
- package/dist/health-BgOggK9k.js +1 -0
- package/dist/health-PaRHFItm.js +1 -0
- package/dist/health-format-B1nj3Wfn.js +1 -0
- package/dist/health-format-VBr6LEpt.js +1 -0
- package/dist/heartbeat-visibility-BQ_esv2m.js +1 -0
- package/dist/heartbeat-visibility-q74UdY8O.js +1 -0
- package/dist/help-format-B4aEI7V9.js +1 -0
- package/dist/help-format-BRbF_INg.js +1 -0
- package/dist/helpers-COz1ghcB.js +1 -0
- package/dist/helpers-Cp8gcO6u.js +1 -0
- package/dist/hooks-cli-BzyzTNBx.js +1 -0
- package/dist/hooks-cli-CsBrScq0.js +1 -0
- package/dist/hooks-status-BHt-Xvh4.js +1 -0
- package/dist/hooks-status-CRJ4J0ZW.js +1 -0
- package/dist/image-BkWwI54C.js +1 -0
- package/dist/image-CcVQg-YN.js +1 -0
- package/dist/image-Cm1RUBqD.js +1 -0
- package/dist/image-DsoO5VP5.js +1 -0
- package/dist/index.js +1 -0
- package/dist/inspect-BKV-I1UE.js +1 -0
- package/dist/inspect-z59cgmYc.js +1 -0
- package/dist/install-safe-path-C6kc_8NW.js +1 -0
- package/dist/install-safe-path-iesxijn2.js +1 -0
- package/dist/installs-BNeI_oML.js +1 -0
- package/dist/installs-C1xQLuby.js +1 -0
- package/dist/ipv4-BOuNtoGn.js +1 -0
- package/dist/ipv4-CWdaEiVH.js +1 -0
- package/dist/ir-BF0M2kGp.js +1 -0
- package/dist/ir-D8Hh84ab.js +1 -0
- package/dist/ir-DBWscfBd.js +1 -0
- package/dist/ir-Dk7OQ4bA.js +1 -0
- package/dist/is-main-DG5ueqhF.js +1 -0
- package/dist/issue-format-BT7cQEt3.js +1 -0
- package/dist/issue-format-C_lNzrKa.js +1 -0
- package/dist/kill-tree-B3g7HrAO.js +1 -0
- package/dist/lifecycle-core-D9KNCvxY.js +1 -0
- package/dist/lifecycle-core-LM5UUUB1.js +1 -0
- package/dist/line/accounts.js +1 -0
- package/dist/line/send.js +1 -0
- package/dist/line/template-messages.js +1 -0
- package/dist/links-CBnmRP9D.js +1 -0
- package/dist/links-CySwdMcF.js +1 -0
- package/dist/llm-slug-generator.js +1 -0
- package/dist/load-options-BsOW74dp.js +1 -0
- package/dist/load-options-C7dLuybp.js +1 -0
- package/dist/load-options-DV4j6Aqb.js +1 -0
- package/dist/load-options-Dwt0CeEg.js +1 -0
- package/dist/local-roots-6waH0SZ0.js +1 -0
- package/dist/logger-5W0OocJW.js +1 -0
- package/dist/logger-Bl8URnrW.js +1 -0
- package/dist/logger-DwWqfo66.js +1 -0
- package/dist/logger-kQAOe3qp.js +1 -0
- package/dist/logging-Dqe9dxSX.js +1 -0
- package/dist/logging-tYw1NbJd.js +1 -0
- package/dist/login-BOlqRyr0.js +1 -0
- package/dist/login-CkWesqf_.js +1 -0
- package/dist/login-Do_NA1Je.js +1 -0
- package/dist/login-op9S8yqv.js +1 -0
- package/dist/login-qr-B6rxvoTS.js +1 -0
- package/dist/login-qr-BGH9zmhw.js +1 -0
- package/dist/login-qr-CiENvgog.js +1 -0
- package/dist/login-qr-DsV-lxFd.js +1 -0
- package/dist/login-qr-QcDMg23y.js +1 -0
- package/dist/logs-cli-B4eUg_87.js +1 -0
- package/dist/logs-cli-BA3Aso8a.js +1 -0
- package/dist/manager-4Y9fRgdw.js +1 -0
- package/dist/manager-C2YW7Hkq.js +1 -0
- package/dist/manager-Dtd_loL8.js +1 -0
- package/dist/manager-M1GKhLUC.js +1 -0
- package/dist/memory-cli-XaxtBQm1.js +1 -0
- package/dist/memory-cli-jhzJ3as7.js +1 -0
- package/dist/model-catalog-C1kpjR75.js +1 -0
- package/dist/model-catalog-COVzoZD9.js +1 -0
- package/dist/model-param-b-B0r2cPDw.js +1 -0
- package/dist/model-param-b-BqIr5rY5.js +1 -0
- package/dist/model-picker-D3ZSpr0i.js +1 -0
- package/dist/model-picker-bZNuI66U.js +1 -0
- package/dist/model-selection-B5JsBS9D.js +1 -0
- package/dist/model-selection-BlC_rXAN.js +1 -0
- package/dist/model-selection-vfhBuN9O.js +1 -0
- package/dist/models-C_Vg3Cty.js +1 -0
- package/dist/models-cli-CDZliTXq.js +1 -0
- package/dist/models-cli-bGr8jwAb.js +1 -0
- package/dist/models-config-CdMhNxKV.js +1 -0
- package/dist/models-config-_htt7eY5.js +1 -0
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +1 -0
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +1 -0
- package/dist/node-cli-5lYbDZ70.js +1 -0
- package/dist/node-cli-Br04Qmqo.js +1 -0
- package/dist/node-command-policy-CejeQemH.js +1 -0
- package/dist/node-command-policy-CqXhdnHh.js +1 -0
- package/dist/node-commands-8GBOiktk.js +1 -0
- package/dist/node-commands-DdkziOTx.js +1 -0
- package/dist/node-resolve-B3BJbmQX.js +1 -0
- package/dist/node-resolve-DLZf3-1V.js +1 -0
- package/dist/node-service-BRfrNp8l.js +1 -0
- package/dist/node-service-C0bl7jcZ.js +1 -0
- package/dist/node-shell-DyOfwHrh.js +1 -0
- package/dist/nodes-cli-8By8--bW.js +1 -0
- package/dist/nodes-cli-zq41EwJN.js +1 -0
- package/dist/nodes-screen-DECgxo6A.js +1 -0
- package/dist/note-D4GAwgha.js +1 -0
- package/dist/note-Dp-d_utk.js +1 -0
- package/dist/npm-pack-install-B23L-AtF.js +1 -0
- package/dist/npm-pack-install-C0te3Oap.js +1 -0
- package/dist/npm-resolution-BnJGLwhi.js +1 -0
- package/dist/npm-resolution-DWPloph4.js +1 -0
- package/dist/oauth-env-DAamJ1oz.js +1 -0
- package/dist/oauth-env-DSLBTWb1.js +1 -0
- package/dist/oauth-tls-preflight-BSBRDIfC.js +1 -0
- package/dist/oauth-tls-preflight-ByNjbUR5.js +1 -0
- package/dist/ollama-setup-BMEKWyIE.js +1 -0
- package/dist/ollama-setup-DlwS6Gl-.js +1 -0
- package/dist/onboard-B0BNCQaO.js +1 -0
- package/dist/onboard-CjVhdaiR.js +1 -0
- package/dist/onboard-channels-BMIOddLN.js +1 -0
- package/dist/onboard-channels-CZK_7xMR.js +1 -0
- package/dist/onboard-config-B7U20YRw.js +1 -0
- package/dist/onboard-config-DS9dUv8M.js +1 -0
- package/dist/onboard-custom-B03SlEHB.js +1 -0
- package/dist/onboard-custom-Bl0y8c-g.js +1 -0
- package/dist/onboard-helpers-PGl5bVPE.js +1 -0
- package/dist/onboard-helpers-zwybUJWu.js +1 -0
- package/dist/onboard-hooks-CERzXObm.js +1 -0
- package/dist/onboard-hooks-gQ3sxBNi.js +1 -0
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +1 -0
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +1 -0
- package/dist/onboard-remote-BOpIRdDu.js +1 -0
- package/dist/onboard-remote-DPU-H_2O.js +1 -0
- package/dist/onboard-search-f2tJD4hg.js +1 -0
- package/dist/onboard-search-fslKKhyg.js +1 -0
- package/dist/onboard-skills-BMAJs6ly.js +1 -0
- package/dist/onboard-skills-CMSQc2Mm.js +1 -0
- package/dist/onboarding-B6ixWwgp.js +1 -0
- package/dist/onboarding-ouEqUuUr.js +1 -0
- package/dist/onboarding.finalize-Bgat5Npc.js +1 -0
- package/dist/onboarding.finalize-DsMVlTcH.js +1 -0
- package/dist/onboarding.gateway-config-BtLDJWJ2.js +1 -0
- package/dist/onboarding.gateway-config-y3pqsL9i.js +1 -0
- package/dist/onboarding.secret-input-BsBgh8Tc.js +1 -0
- package/dist/onboarding.secret-input-kO5OzYC7.js +1 -0
- package/dist/openai-codex-model-default-DuE2_wN7.js +1 -0
- package/dist/openai-codex-model-default-yVfRw-Mm.js +1 -0
- package/dist/openai-model-default-Bl8MHPb6.js +1 -0
- package/dist/openai-model-default-DJObMvLJ.js +1 -0
- package/dist/openclaw-exec-env-BWbOu_YC.js +1 -0
- package/dist/openclaw-root-CnsBf6ZU.js +1 -0
- package/dist/openclaw-root-D_0Q6--h.js +1 -0
- package/dist/outbound-BOSIEiEY.js +1 -0
- package/dist/outbound-BtUeDLjU.js +1 -0
- package/dist/outbound-Bx2Z2aYK.js +1 -0
- package/dist/outbound-Bz8bbrMI.js +1 -0
- package/dist/outbound-attachment-B7wMxwj6.js +1 -0
- package/dist/outbound-attachment-BgAe99RM.js +1 -0
- package/dist/outbound-attachment-Dds8xirj.js +1 -0
- package/dist/outbound-attachment-DqEKghQp.js +1 -0
- package/dist/pairing-cli-Bya9M-I_.js +1 -0
- package/dist/pairing-cli-D2JEhufv.js +1 -0
- package/dist/pairing-labels-BUU_-70B.js +1 -0
- package/dist/pairing-labels-D-kzQEL2.js +1 -0
- package/dist/pairing-store-BH-FTYkn.js +1 -0
- package/dist/pairing-store-Cg2UxreQ.js +1 -0
- package/dist/pairing-token-BjYBuREl.js +1 -0
- package/dist/pairing-token-DAR7V7FJ.js +1 -0
- package/dist/parse-duration-XTjMKl8s.js +1 -0
- package/dist/parse-finite-number-DqzUM-_s.js +1 -0
- package/dist/parse-finite-number-dBmDLLKL.js +1 -0
- package/dist/parse-log-line-CsYLg7Qu.js +1 -0
- package/dist/parse-log-line-NV-cipB_.js +1 -0
- package/dist/parse-port-Bv1Y9Wk5.js +1 -0
- package/dist/parse-port-JVwkxcZ8.js +1 -0
- package/dist/parse-timeout-DWSGfCkQ.js +1 -0
- package/dist/parse-timeout-Dx4QnVzo.js +1 -0
- package/dist/path-alias-guards-kY_ZbWs-.js +1 -0
- package/dist/path-alias-guards-mvyLCPlN.js +1 -0
- package/dist/path-env-BPd1Yd-i.js +1 -0
- package/dist/path-env-emdAQejM.js +1 -0
- package/dist/path-safety-BukYK8Kd.js +1 -0
- package/dist/path-safety-DaaMJFdt.js +1 -0
- package/dist/paths-B4IRk3wi.js +1 -0
- package/dist/paths-BfjJY2VL.js +1 -0
- package/dist/paths-BjD3T_xq.js +1 -0
- package/dist/paths-BpQOWYiT.js +1 -0
- package/dist/paths-CChBdtE8.js +1 -0
- package/dist/paths-CrCoPIVK.js +1 -0
- package/dist/paths-piJASC5k.js +1 -0
- package/dist/paths-yLEk_25I.js +1 -0
- package/dist/pi-embedded-BZSn84Bh.js +1 -0
- package/dist/pi-embedded-Dsz7p3MF.js +1 -0
- package/dist/pi-model-discovery-BbD1YJNx.js +1 -0
- package/dist/pi-model-discovery-CpjYoBQf.js +1 -0
- package/dist/pi-model-discovery-DeQdHV8O.js +1 -0
- package/dist/pi-model-discovery-Dps1PPWz.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-DseAq0gm.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-KKGILAuK.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-Pck2WdIO.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-ZzMJQ1BP.js +1 -0
- package/dist/pi-tools.policy-D40r0HmD.js +1 -0
- package/dist/plugin-auto-enable-DpVL6-ES.js +1 -0
- package/dist/plugin-auto-enable-NzmNh4oU.js +1 -0
- package/dist/plugin-install-plan-BobX0y9S.js +1 -0
- package/dist/plugin-install-plan-NvDGp0d8.js +1 -0
- package/dist/plugin-registry-C6dY-Et7.js +1 -0
- package/dist/plugin-registry-CIBiHZH1.js +1 -0
- package/dist/plugin-sdk/account-id.cjs +1 -0
- package/dist/plugin-sdk/account-id.js +1 -0
- package/dist/plugin-sdk/acpx.cjs +1 -0
- package/dist/plugin-sdk/acpx.js +1 -0
- package/dist/plugin-sdk/active-listener-BApFQlQn.js +1 -0
- package/dist/plugin-sdk/active-listener-BETopzG5.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BEcmvyxh.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BZPPbsNy.cjs +1 -0
- package/dist/plugin-sdk/active-listener-B_Mxemq7.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BgW_qfd3.js +1 -0
- package/dist/plugin-sdk/active-listener-Coet66pF.cjs +1 -0
- package/dist/plugin-sdk/active-listener-CvML9qVF.js +1 -0
- package/dist/plugin-sdk/active-listener-DuO6KMXJ.js +1 -0
- package/dist/plugin-sdk/active-listener-DymzfmOG.cjs +1 -0
- package/dist/plugin-sdk/active-listener-ILBdBHMv.js +1 -0
- package/dist/plugin-sdk/active-listener-gRRIfN1q.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-Bj1A9Slo.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CFPNzksf.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CXY0AyM1.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-ClIwV8yq.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-D5Nr1xl3.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DDCwA0KM.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DHMvXm70.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DaFFZfk5.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DcREl_0x.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-X-5Fb7av.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-_VfXYfHS.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-wFUVOOfM.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-B1MP5_bc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BETx142T.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BGRLhCLc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BNICfOY5.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BV3Cav8M.js +1 -0
- package/dist/plugin-sdk/audio-preflight-BmO72Cqr.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BpE8wFQc.js +1 -0
- package/dist/plugin-sdk/audio-preflight-CTAafaiH.js +1 -0
- package/dist/plugin-sdk/audio-preflight-D82aewIt.js +1 -0
- package/dist/plugin-sdk/audio-preflight-DmzxEaq3.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-DrSIYRnD.js +1 -0
- package/dist/plugin-sdk/audio-preflight-SZZoA2Ff.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-B54MyF1_.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BIqM5H5q.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BLAxZL-U.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BVmaaA2k.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BdY-TMcc.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-By3lSLub.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CH5CoZrF.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CMsp7bhn.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-ClGibmMi.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-QfEC19vE.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-g7L0m-Z5.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-pVTD93vq.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.js +1 -0
- package/dist/plugin-sdk/channel-activity-BGK-Bj2_.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-BRHvpV0C.js +1 -0
- package/dist/plugin-sdk/channel-activity-CKfWFchu.js +1 -0
- package/dist/plugin-sdk/channel-activity-CLUi31fX.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CVOp-PL4.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CgXnZ0GC.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CmYpOPAn.js +1 -0
- package/dist/plugin-sdk/channel-activity-CwaMf9qT.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D5D5tBWf.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D7tpmatp.js +1 -0
- package/dist/plugin-sdk/channel-activity-DpxSOlXF.js +1 -0
- package/dist/plugin-sdk/channel-activity-spvDzlTl.js +1 -0
- package/dist/plugin-sdk/channel-web-4ZQVqsrt.js +1 -0
- package/dist/plugin-sdk/channel-web-9zn1Itpg.cjs +1 -0
- package/dist/plugin-sdk/channel-web-BrB00HKH.js +1 -0
- package/dist/plugin-sdk/channel-web-DN5La-Ol.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-5lStNoKW.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-C8wnXqNa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-Cnr6PvIw.js +1 -0
- package/dist/plugin-sdk/commands-registry-CtYCWfuM.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-D2gv242l.js +1 -0
- package/dist/plugin-sdk/commands-registry-DI2vPscP.js +1 -0
- package/dist/plugin-sdk/commands-registry-DcBvmwSU.js +1 -0
- package/dist/plugin-sdk/commands-registry-DkUhCIDk.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-DsMbmie-.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-MCsWR5Vf.js +1 -0
- package/dist/plugin-sdk/commands-registry-SHZVq_qf.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-kRjFifgj.js +1 -0
- package/dist/plugin-sdk/common-B4iFXuoZ.cjs +1 -0
- package/dist/plugin-sdk/common-B6fDMl_i.js +1 -0
- package/dist/plugin-sdk/compat.cjs +1 -0
- package/dist/plugin-sdk/compat.js +1 -0
- package/dist/plugin-sdk/config-ByA2hluR.js +1 -0
- package/dist/plugin-sdk/config-rBz8C_Hi.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.js +1 -0
- package/dist/plugin-sdk/core.cjs +1 -0
- package/dist/plugin-sdk/core.js +1 -0
- package/dist/plugin-sdk/deliver-B0fB4hAV.js +1 -0
- package/dist/plugin-sdk/deliver-BOLmjIJ3.js +1 -0
- package/dist/plugin-sdk/deliver-BrfVwkYz.cjs +1 -0
- package/dist/plugin-sdk/deliver-C-tChWTI.cjs +1 -0
- package/dist/plugin-sdk/deliver-CjQPkWS-.cjs +1 -0
- package/dist/plugin-sdk/deliver-D1P0FNTu.js +1 -0
- package/dist/plugin-sdk/deliver-DCrO9mvv.cjs +1 -0
- package/dist/plugin-sdk/deliver-DQLekoj2.cjs +1 -0
- package/dist/plugin-sdk/deliver-DkfCVM78.js +1 -0
- package/dist/plugin-sdk/deliver-Dkh3lqXR.js +1 -0
- package/dist/plugin-sdk/deliver-DsFtXFyr.cjs +1 -0
- package/dist/plugin-sdk/deliver-vYe_sYOL.js +1 -0
- package/dist/plugin-sdk/device-pair.cjs +1 -0
- package/dist/plugin-sdk/device-pair.js +1 -0
- package/dist/plugin-sdk/diagnostic-8iX73nz_.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CLUtpxAp.js +1 -0
- package/dist/plugin-sdk/diagnostic-CVS4k9hh.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CkePwN5F.js +1 -0
- package/dist/plugin-sdk/diagnostic-Cu1PGj0E.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D0oCfBju.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D7A9cQYf.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-DGLX0zXU.js +1 -0
- package/dist/plugin-sdk/diagnostic-DXscFT8t.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-Efe4b81B.js +1 -0
- package/dist/plugin-sdk/diagnostic-EqHqw9xo.js +1 -0
- package/dist/plugin-sdk/diagnostic-vsjHZ_fY.js +1 -0
- package/dist/plugin-sdk/diagnostics-otel.cjs +1 -0
- package/dist/plugin-sdk/diagnostics-otel.js +1 -0
- package/dist/plugin-sdk/diffs.cjs +1 -0
- package/dist/plugin-sdk/diffs.js +1 -0
- package/dist/plugin-sdk/discord.cjs +1 -0
- package/dist/plugin-sdk/discord.js +1 -0
- package/dist/plugin-sdk/dispatch-5v3v8zzA.js +1 -0
- package/dist/plugin-sdk/dispatch-B6UbZCpL.cjs +1 -0
- package/dist/plugin-sdk/dispatch-BYlcmJ9u.js +1 -0
- package/dist/plugin-sdk/dispatch-C2YTqGlf.js +1 -0
- package/dist/plugin-sdk/dispatch-CNy3g9ma.cjs +1 -0
- package/dist/plugin-sdk/dispatch-DCSwqteL.js +1 -0
- package/dist/plugin-sdk/dispatch-DHbSBeFJ.js +1 -0
- package/dist/plugin-sdk/dispatch-DK5ub8qa.cjs +1 -0
- package/dist/plugin-sdk/dispatch-SWyfAZT0.cjs +1 -0
- package/dist/plugin-sdk/dispatch-mR2vLkGa.cjs +1 -0
- package/dist/plugin-sdk/feishu.cjs +1 -0
- package/dist/plugin-sdk/feishu.js +1 -0
- package/dist/plugin-sdk/fetch-7Iq9POda.js +1 -0
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +1 -0
- package/dist/plugin-sdk/fetch-B27H-XCf.js +1 -0
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +1 -0
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +1 -0
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +1 -0
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +1 -0
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +1 -0
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +1 -0
- package/dist/plugin-sdk/fetch-BtZY623f.js +1 -0
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +1 -0
- package/dist/plugin-sdk/fetch-C3LEMysf.js +1 -0
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +1 -0
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +1 -0
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +1 -0
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +1 -0
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +1 -0
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +1 -0
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +1 -0
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +1 -0
- package/dist/plugin-sdk/fetch-guard-8I7EHbDM.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CIJUkBIL.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CY03i4gu.js +1 -0
- package/dist/plugin-sdk/fetch-guard-Cz-cgYmR.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DB85MORy.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DE9BslxX.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DLNzldn9.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DSvAbvSx.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DXe8oqEE.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DY9jpsXo.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DbOZYxyN.js +1 -0
- package/dist/plugin-sdk/fetch-guard-_fifU0fX.js +1 -0
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.js +1 -0
- package/dist/plugin-sdk/googlechat.cjs +1 -0
- package/dist/plugin-sdk/googlechat.js +1 -0
- package/dist/plugin-sdk/image-B6HEHWlJ.js +1 -0
- package/dist/plugin-sdk/image-Bte8cr4F.js +1 -0
- package/dist/plugin-sdk/image-BxafJgQ6.cjs +1 -0
- package/dist/plugin-sdk/image-CDI5SqeR.js +1 -0
- package/dist/plugin-sdk/image-CTgwucug.cjs +1 -0
- package/dist/plugin-sdk/image-CWnsS03L.js +1 -0
- package/dist/plugin-sdk/image-CoksjGBL.cjs +1 -0
- package/dist/plugin-sdk/image-CuOIoxl2.cjs +1 -0
- package/dist/plugin-sdk/image-DJyEMzkq.cjs +1 -0
- package/dist/plugin-sdk/image-DegWnAZU.cjs +1 -0
- package/dist/plugin-sdk/image-TCSQZpr6.js +1 -0
- package/dist/plugin-sdk/image-aG-5S1vd.js +1 -0
- package/dist/plugin-sdk/imessage.cjs +1 -0
- package/dist/plugin-sdk/imessage.js +1 -0
- package/dist/plugin-sdk/index.cjs +1 -0
- package/dist/plugin-sdk/index.js +1 -0
- package/dist/plugin-sdk/ir-8rDh7div.js +1 -0
- package/dist/plugin-sdk/ir-Bh6lKGdS.js +1 -0
- package/dist/plugin-sdk/ir-C3VNqnc2.cjs +1 -0
- package/dist/plugin-sdk/ir-CZOtKajq.cjs +1 -0
- package/dist/plugin-sdk/ir-CveCWs8q.cjs +1 -0
- package/dist/plugin-sdk/ir-DAxY-7c1.cjs +1 -0
- package/dist/plugin-sdk/ir-DSuLr2UE.cjs +1 -0
- package/dist/plugin-sdk/ir-DanxCjD-.cjs +1 -0
- package/dist/plugin-sdk/ir-Dgc6qZMX.js +1 -0
- package/dist/plugin-sdk/ir-OBi5zaEW.js +1 -0
- package/dist/plugin-sdk/ir-hQ6EW92h.js +1 -0
- package/dist/plugin-sdk/ir-ynWQeZD9.js +1 -0
- package/dist/plugin-sdk/irc.cjs +1 -0
- package/dist/plugin-sdk/irc.js +1 -0
- package/dist/plugin-sdk/keyed-async-queue.cjs +1 -0
- package/dist/plugin-sdk/keyed-async-queue.js +1 -0
- package/dist/plugin-sdk/line.cjs +1 -0
- package/dist/plugin-sdk/line.js +1 -0
- package/dist/plugin-sdk/llm-task.cjs +1 -0
- package/dist/plugin-sdk/llm-task.js +1 -0
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +1 -0
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +1 -0
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +1 -0
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +1 -0
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +1 -0
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +1 -0
- package/dist/plugin-sdk/lobster.cjs +1 -0
- package/dist/plugin-sdk/lobster.js +1 -0
- package/dist/plugin-sdk/local-roots-5udQUs81.js +1 -0
- package/dist/plugin-sdk/local-roots-BmhNPIJm.cjs +1 -0
- package/dist/plugin-sdk/local-roots-C5UoE741.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Ca8KoAAp.js +1 -0
- package/dist/plugin-sdk/local-roots-CeAYfmPb.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Cu7YCpql.cjs +1 -0
- package/dist/plugin-sdk/local-roots-D0yN794S.js +1 -0
- package/dist/plugin-sdk/local-roots-D4i3H0UG.cjs +1 -0
- package/dist/plugin-sdk/local-roots-DGe-SRNu.js +1 -0
- package/dist/plugin-sdk/local-roots-bWA2msT0.js +1 -0
- package/dist/plugin-sdk/local-roots-tee85Q-1.js +1 -0
- package/dist/plugin-sdk/local-roots-wTkpE7go.cjs +1 -0
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +1 -0
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +1 -0
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +1 -0
- package/dist/plugin-sdk/logger-BtrWb0dj.js +1 -0
- package/dist/plugin-sdk/logger-C210xuWx.js +1 -0
- package/dist/plugin-sdk/logger-DJGHvDbX.js +1 -0
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +1 -0
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +1 -0
- package/dist/plugin-sdk/logger-DwWqfo66.js +1 -0
- package/dist/plugin-sdk/logger-vBDTZWl3.js +1 -0
- package/dist/plugin-sdk/login-B5IwNcl4.cjs +1 -0
- package/dist/plugin-sdk/login-BIbt7ZL_.js +1 -0
- package/dist/plugin-sdk/login-CxnDKwXC.js +1 -0
- package/dist/plugin-sdk/login-D5iTWowo.cjs +1 -0
- package/dist/plugin-sdk/login-DHE1rzB1.js +1 -0
- package/dist/plugin-sdk/login-DIPBcPQc.cjs +1 -0
- package/dist/plugin-sdk/login-DtDOozuU.js +1 -0
- package/dist/plugin-sdk/login-UrWNtI80.cjs +1 -0
- package/dist/plugin-sdk/login-VviMkBU2.js +1 -0
- package/dist/plugin-sdk/login-jQwwt6C-.js +1 -0
- package/dist/plugin-sdk/login-mGjCzJzb.cjs +1 -0
- package/dist/plugin-sdk/login-pZnnpj38.cjs +1 -0
- package/dist/plugin-sdk/login-qr-BexuTIDJ.cjs +1 -0
- package/dist/plugin-sdk/login-qr-C366Qlh-.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CQY4ty0o.js +1 -0
- package/dist/plugin-sdk/login-qr-CSabEb-n.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CUgNKijx.js +1 -0
- package/dist/plugin-sdk/login-qr-C_LEw1Bi.js +1 -0
- package/dist/plugin-sdk/login-qr-CcPvldsG.js +1 -0
- package/dist/plugin-sdk/login-qr-CnNGKwDR.cjs +1 -0
- package/dist/plugin-sdk/login-qr-DQm50pXk.js +1 -0
- package/dist/plugin-sdk/login-qr-DayvAWkx.js +1 -0
- package/dist/plugin-sdk/login-qr-eodIsL9V.cjs +1 -0
- package/dist/plugin-sdk/login-qr-yIJE7MmY.cjs +1 -0
- package/dist/plugin-sdk/manager-932XljTT.js +1 -0
- package/dist/plugin-sdk/manager-CGHd5p2T.js +1 -0
- package/dist/plugin-sdk/manager-CbGA_JDa.js +1 -0
- package/dist/plugin-sdk/manager-CdD7HaGW.cjs +1 -0
- package/dist/plugin-sdk/manager-CmAH_a7A.cjs +1 -0
- package/dist/plugin-sdk/manager-DIS4ywpb.cjs +1 -0
- package/dist/plugin-sdk/manager-DQ2C-2IU.cjs +1 -0
- package/dist/plugin-sdk/manager-DdvFnsT7.cjs +1 -0
- package/dist/plugin-sdk/manager-DfdDglld.js +1 -0
- package/dist/plugin-sdk/manager-MR9stU_p.js +1 -0
- package/dist/plugin-sdk/manager-WwW37IUu.js +1 -0
- package/dist/plugin-sdk/manager-gE9187gu.cjs +1 -0
- package/dist/plugin-sdk/matrix.cjs +1 -0
- package/dist/plugin-sdk/matrix.js +1 -0
- package/dist/plugin-sdk/mattermost.cjs +1 -0
- package/dist/plugin-sdk/mattermost.js +1 -0
- package/dist/plugin-sdk/memory-core.cjs +1 -0
- package/dist/plugin-sdk/memory-core.js +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.js +1 -0
- package/dist/plugin-sdk/model-auth-BpS4IWDi.cjs +1 -0
- package/dist/plugin-sdk/model-auth-BwajGuoF.cjs +1 -0
- package/dist/plugin-sdk/model-auth-C1YL9HcW.js +1 -0
- package/dist/plugin-sdk/model-auth-Cc-8H6Cu.js +1 -0
- package/dist/plugin-sdk/model-auth-Cw3fuhm_.js +1 -0
- package/dist/plugin-sdk/model-auth-CycDtQl-.js +1 -0
- package/dist/plugin-sdk/model-auth-D-7xiXhK.cjs +1 -0
- package/dist/plugin-sdk/model-auth-TFUxaK0f.cjs +1 -0
- package/dist/plugin-sdk/model-selection-BADTZM9n.cjs +1 -0
- package/dist/plugin-sdk/model-selection-DUAudCtL.js +1 -0
- package/dist/plugin-sdk/msteams.cjs +1 -0
- package/dist/plugin-sdk/msteams.js +1 -0
- package/dist/plugin-sdk/nextcloud-talk.cjs +1 -0
- package/dist/plugin-sdk/nextcloud-talk.js +1 -0
- package/dist/plugin-sdk/nostr.cjs +1 -0
- package/dist/plugin-sdk/nostr.js +1 -0
- package/dist/plugin-sdk/outbound-2Lo6mZEY.js +1 -0
- package/dist/plugin-sdk/outbound-9XFlZzaF.cjs +1 -0
- package/dist/plugin-sdk/outbound-BlWsUmjQ.js +1 -0
- package/dist/plugin-sdk/outbound-Bs2rUcWZ.cjs +1 -0
- package/dist/plugin-sdk/outbound-C18nEOFP.js +1 -0
- package/dist/plugin-sdk/outbound-CW3o4Eng.cjs +1 -0
- package/dist/plugin-sdk/outbound-CzsdW5sy.js +1 -0
- package/dist/plugin-sdk/outbound-DcP22VOo.cjs +1 -0
- package/dist/plugin-sdk/outbound-QhOJAEO8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-1pf06Oiu.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-B8-ZVX2i.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BDwI_tn0.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BXhbJils.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Bgf1pCh8.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-COgf85S8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CfN9OvMC.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-CftilZWd.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Cujprd6T.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CvSHb9ci.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-DQYtdTUw.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-FqWC0WJx.cjs +1 -0
- package/dist/plugin-sdk/outbound-dTvIiFIZ.js +1 -0
- package/dist/plugin-sdk/outbound-fZ1WJGfe.cjs +1 -0
- package/dist/plugin-sdk/outbound-oHoWYWxf.js +1 -0
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +1 -0
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +1 -0
- package/dist/plugin-sdk/paths-BpQOWYiT.js +1 -0
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +1 -0
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +1 -0
- package/dist/plugin-sdk/paths-CXgWvWAM.js +1 -0
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +1 -0
- package/dist/plugin-sdk/paths-CnHSNSeR.js +1 -0
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +1 -0
- package/dist/plugin-sdk/paths-CtrEseGU.js +1 -0
- package/dist/plugin-sdk/paths-D55o_j8-.js +1 -0
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +1 -0
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +1 -0
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +1 -0
- package/dist/plugin-sdk/paths-DhSjTRMz.js +1 -0
- package/dist/plugin-sdk/paths-Do0djuaj.js +1 -0
- package/dist/plugin-sdk/paths-J4JUiRsa.js +1 -0
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +1 -0
- package/dist/plugin-sdk/paths-piJASC5k.js +1 -0
- package/dist/plugin-sdk/paths-rO4ehkyU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-B9boErNZ.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BJ8wTgFH.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bb2vCP6M.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bor7jHYd.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BrTw1qE2.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BuEMyAsU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-CV9NTjC4.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5tLf04u.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5xlUS2J.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DGoPUzBj.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DMrqvV1O.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DoY7qnlI.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Dqq9Vm8o.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-zCuISPPq.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-4238P8NF.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BEoqzgFe.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BGPjibRD.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BJ_amISU.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BX2r_qPT.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CGLHFxSr.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsNn_Lv8.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsiKBTHg.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CuXQQk4F.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DNatrz-3.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-PApjB0tY.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-xsXDBYNq.js +1 -0
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +1 -0
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +1 -0
- package/dist/plugin-sdk/polls-CSKMbBIS.js +1 -0
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +1 -0
- package/dist/plugin-sdk/polls-PGxiE05J.js +1 -0
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-B765haXA.js +1 -0
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +1 -0
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +1 -0
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +1 -0
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +1 -0
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-B0_rvdfF.js +1 -0
- package/dist/plugin-sdk/pw-ai-BqdrA15F.js +1 -0
- package/dist/plugin-sdk/pw-ai-CDzxu5B3.js +1 -0
- package/dist/plugin-sdk/pw-ai-CJIogpwF.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CL_gU5PJ.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-Ca4aZTaG.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CrfYxLI8.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DCiFlwP8.js +1 -0
- package/dist/plugin-sdk/pw-ai-DSqXNmNZ.js +1 -0
- package/dist/plugin-sdk/pw-ai-Dh55xTz1.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DxAvipyK.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-U9nPHH-0.js +1 -0
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +1 -0
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +1 -0
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +1 -0
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +1 -0
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +1 -0
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +1 -0
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +1 -0
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +1 -0
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +1 -0
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.js +1 -0
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +1 -0
- package/dist/plugin-sdk/render-CBsnn-2A.js +1 -0
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +1 -0
- package/dist/plugin-sdk/render-DGmfCIRG.js +1 -0
- package/dist/plugin-sdk/render-DhTJXP1U.js +1 -0
- package/dist/plugin-sdk/render-Djx15dPh.js +1 -0
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +1 -0
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +1 -0
- package/dist/plugin-sdk/reply-0zCEbT4w.cjs +1 -0
- package/dist/plugin-sdk/reply-D-f2bbXy.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-CrQGbaua.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-H7Q9HcfW.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-MS6Xpp17.cjs +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-cDxjy3TL.cjs +1 -0
- package/dist/plugin-sdk/send-3VNTSIhr.js +1 -0
- package/dist/plugin-sdk/send-61GHLNYP.cjs +1 -0
- package/dist/plugin-sdk/send-6q4owAw0.js +1 -0
- package/dist/plugin-sdk/send-A2s5sPTd.js +1 -0
- package/dist/plugin-sdk/send-B2qa7CSk.js +1 -0
- package/dist/plugin-sdk/send-B3aEYvqG.cjs +1 -0
- package/dist/plugin-sdk/send-BAoqP09M.cjs +1 -0
- package/dist/plugin-sdk/send-BNBJ4CF8.js +1 -0
- package/dist/plugin-sdk/send-BTE2rI1E.js +1 -0
- package/dist/plugin-sdk/send-BlWuQHYB.js +1 -0
- package/dist/plugin-sdk/send-Bnvt7ZUE.cjs +1 -0
- package/dist/plugin-sdk/send-Bq6Mqs9G.cjs +1 -0
- package/dist/plugin-sdk/send-Bq787fi_.js +1 -0
- package/dist/plugin-sdk/send-BrAHLYBR.js +1 -0
- package/dist/plugin-sdk/send-Bt2eFBk2.js +1 -0
- package/dist/plugin-sdk/send-C4ZFbUux.js +1 -0
- package/dist/plugin-sdk/send-C4cyMW4S.cjs +1 -0
- package/dist/plugin-sdk/send-C8f5H4XV.cjs +1 -0
- package/dist/plugin-sdk/send-CDwTrbgT.cjs +1 -0
- package/dist/plugin-sdk/send-CEfs0Fsr.js +1 -0
- package/dist/plugin-sdk/send-CFuJjCNB.cjs +1 -0
- package/dist/plugin-sdk/send-CJGLeSJ8.cjs +1 -0
- package/dist/plugin-sdk/send-CL0W7jLW.js +1 -0
- package/dist/plugin-sdk/send-CLl490Gb.cjs +1 -0
- package/dist/plugin-sdk/send-CQtITZ7k.cjs +1 -0
- package/dist/plugin-sdk/send-CSGh_GVr.cjs +1 -0
- package/dist/plugin-sdk/send-CicLiXB4.js +1 -0
- package/dist/plugin-sdk/send-Cm7bEwx-.cjs +1 -0
- package/dist/plugin-sdk/send-CmO9z2-b.js +1 -0
- package/dist/plugin-sdk/send-Co_Wy2kT.cjs +1 -0
- package/dist/plugin-sdk/send-Cox_iyYB.cjs +1 -0
- package/dist/plugin-sdk/send-CuX4LcJ3.cjs +1 -0
- package/dist/plugin-sdk/send-CxMiTtxI.cjs +1 -0
- package/dist/plugin-sdk/send-CyyzWwDr.js +1 -0
- package/dist/plugin-sdk/send-D-HZnehy.cjs +1 -0
- package/dist/plugin-sdk/send-D-qD7BCb.js +1 -0
- package/dist/plugin-sdk/send-D3imkSlz.cjs +1 -0
- package/dist/plugin-sdk/send-D5UwpCoU.cjs +1 -0
- package/dist/plugin-sdk/send-D75OGJco.js +1 -0
- package/dist/plugin-sdk/send-DB4i1kUy.cjs +1 -0
- package/dist/plugin-sdk/send-DBjzdBda.cjs +1 -0
- package/dist/plugin-sdk/send-DPgRTM8s.js +1 -0
- package/dist/plugin-sdk/send-DPpBLiL4.js +1 -0
- package/dist/plugin-sdk/send-DV_afQnj.cjs +1 -0
- package/dist/plugin-sdk/send-DWuChr46.js +1 -0
- package/dist/plugin-sdk/send-DZ4szmEa.cjs +1 -0
- package/dist/plugin-sdk/send-DZr98eqE.cjs +1 -0
- package/dist/plugin-sdk/send-D_1K0zmx.cjs +1 -0
- package/dist/plugin-sdk/send-DaLB9Lca.js +1 -0
- package/dist/plugin-sdk/send-De4qiprb.js +1 -0
- package/dist/plugin-sdk/send-DeU-T5ps.js +1 -0
- package/dist/plugin-sdk/send-DtjJM0LO.js +1 -0
- package/dist/plugin-sdk/send-DvDCmTQf.js +1 -0
- package/dist/plugin-sdk/send-EvcsiFBC.cjs +1 -0
- package/dist/plugin-sdk/send-GuISe9C82.js +1 -0
- package/dist/plugin-sdk/send-IoGcE0w2.js +1 -0
- package/dist/plugin-sdk/send-JVdUTsN1.cjs +1 -0
- package/dist/plugin-sdk/send-NpNVFRmY.js +1 -0
- package/dist/plugin-sdk/send-XMOZsJcs.js +1 -0
- package/dist/plugin-sdk/send-h--iKoQE.cjs +1 -0
- package/dist/plugin-sdk/session-8BcB905y.cjs +1 -0
- package/dist/plugin-sdk/session-B2oURX5K.js +1 -0
- package/dist/plugin-sdk/session-BJhNqIOi.js +1 -0
- package/dist/plugin-sdk/session-BRgGsw96.cjs +1 -0
- package/dist/plugin-sdk/session-Be_7rXAz.js +1 -0
- package/dist/plugin-sdk/session-C66IXbE-.js +1 -0
- package/dist/plugin-sdk/session-CCYDbcyV.js +1 -0
- package/dist/plugin-sdk/session-CHu3C2m0.cjs +1 -0
- package/dist/plugin-sdk/session-DUlmK2IL.cjs +1 -0
- package/dist/plugin-sdk/session-DxTRZTnu.js +1 -0
- package/dist/plugin-sdk/session-DzhI0nj-.cjs +1 -0
- package/dist/plugin-sdk/session-WRCBgAzG.cjs +1 -0
- package/dist/plugin-sdk/sessions-DxXXAfdI.js +1 -0
- package/dist/plugin-sdk/sessions-Dz5JUL8j.cjs +1 -0
- package/dist/plugin-sdk/signal.cjs +1 -0
- package/dist/plugin-sdk/signal.js +1 -0
- package/dist/plugin-sdk/skill-commands-B4wI8ETo.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BoTeA376.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BwrYJu7Z.js +1 -0
- package/dist/plugin-sdk/skill-commands-BzkMuA58.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CIAf9cWN.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CKc7JO_c.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-Cvb6oXym.js +1 -0
- package/dist/plugin-sdk/skill-commands-DWDtyCtB.js +1 -0
- package/dist/plugin-sdk/skill-commands-Hmuw0PPK.js +1 -0
- package/dist/plugin-sdk/skill-commands-KyN0FGaC.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-KzwEqk5p.js +1 -0
- package/dist/plugin-sdk/skill-commands-Ny38ZFIC.js +1 -0
- package/dist/plugin-sdk/slack.cjs +1 -0
- package/dist/plugin-sdk/slack.js +1 -0
- package/dist/plugin-sdk/synology-chat.cjs +1 -0
- package/dist/plugin-sdk/synology-chat.js +1 -0
- package/dist/plugin-sdk/tables-BIDWwpX8.js +1 -0
- package/dist/plugin-sdk/tables-Bk8lHaPx.cjs +1 -0
- package/dist/plugin-sdk/tables-BlNIkMV8.js +1 -0
- package/dist/plugin-sdk/tables-Bp0a2WRP.cjs +1 -0
- package/dist/plugin-sdk/tables-BtVUf77b.cjs +1 -0
- package/dist/plugin-sdk/tables-C4j5Bar_.js +1 -0
- package/dist/plugin-sdk/tables-CZGtYzDC.cjs +1 -0
- package/dist/plugin-sdk/tables-CnrHab5d.cjs +1 -0
- package/dist/plugin-sdk/tables-DtslIPYw.js +1 -0
- package/dist/plugin-sdk/tables-NrdtIJGp.cjs +1 -0
- package/dist/plugin-sdk/tables-XYb3T-vE.js +1 -0
- package/dist/plugin-sdk/tables-lbv-0tl3.js +1 -0
- package/dist/plugin-sdk/target-errors-9cdJA1L2.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BEkhKWCq.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BZRN-lPd.js +1 -0
- package/dist/plugin-sdk/target-errors-BrwqillR.cjs +1 -0
- package/dist/plugin-sdk/target-errors-Buo5pfom.js +1 -0
- package/dist/plugin-sdk/target-errors-CFzzcffg.js +1 -0
- package/dist/plugin-sdk/target-errors-DFmK5loi.js +1 -0
- package/dist/plugin-sdk/target-errors-DXqwykNX.js +1 -0
- package/dist/plugin-sdk/target-errors-Dd6CopYF.cjs +1 -0
- package/dist/plugin-sdk/target-errors-DeNJ10ks.cjs +1 -0
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +1 -0
- package/dist/plugin-sdk/targets-BSkiizml.js +1 -0
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +1 -0
- package/dist/plugin-sdk/targets-CL5fYQi7.js +1 -0
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +1 -0
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +1 -0
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +1 -0
- package/dist/plugin-sdk/targets-CrkJkzil.js +1 -0
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +1 -0
- package/dist/plugin-sdk/targets-D8HTxbo4.js +1 -0
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +1 -0
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +1 -0
- package/dist/plugin-sdk/targets-X28mff4s.cjs +1 -0
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +1 -0
- package/dist/plugin-sdk/telegram.cjs +1 -0
- package/dist/plugin-sdk/telegram.js +1 -0
- package/dist/plugin-sdk/test-utils.cjs +1 -0
- package/dist/plugin-sdk/test-utils.js +1 -0
- package/dist/plugin-sdk/tlon.cjs +1 -0
- package/dist/plugin-sdk/tlon.js +1 -0
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +1 -0
- package/dist/plugin-sdk/tokens-B20KNIDD.js +1 -0
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +1 -0
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +1 -0
- package/dist/plugin-sdk/tokens-BqABmXSe.js +1 -0
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +1 -0
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +1 -0
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +1 -0
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +1 -0
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +1 -0
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +1 -0
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +1 -0
- package/dist/plugin-sdk/twitch.cjs +1 -0
- package/dist/plugin-sdk/twitch.js +1 -0
- package/dist/plugin-sdk/utils-BJtJR72k.js +1 -0
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +1 -0
- package/dist/plugin-sdk/voice-call.cjs +1 -0
- package/dist/plugin-sdk/voice-call.js +1 -0
- package/dist/plugin-sdk/web-B-QDcVRv.cjs +1 -0
- package/dist/plugin-sdk/web-B2PwjHsu.cjs +1 -0
- package/dist/plugin-sdk/web-BdnQzLgF.js +1 -0
- package/dist/plugin-sdk/web-C9T7tf6w.js +1 -0
- package/dist/plugin-sdk/web-CODD4ksc.cjs +1 -0
- package/dist/plugin-sdk/web-CkdCvvR-.js +1 -0
- package/dist/plugin-sdk/web-_tj8xNZE.js +1 -0
- package/dist/plugin-sdk/web-pcTha_l7.cjs +1 -0
- package/dist/plugin-sdk/weixin.cjs +1 -0
- package/dist/plugin-sdk/weixin.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bhz2j1uz.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bm2UyRYg.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bolz0jl5.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CJ3LDpaG.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CL1Gmkb0.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-D-bZRT7s.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DSGTTE8M.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DjQxgMpW.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DrPBBi5t.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DtK657CZ.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Xwev51_N.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-m7vLtNAA.js +1 -0
- package/dist/plugin-sdk/whatsapp.cjs +1 -0
- package/dist/plugin-sdk/whatsapp.js +1 -0
- package/dist/plugin-sdk/zalo.cjs +1 -0
- package/dist/plugin-sdk/zalo.js +1 -0
- package/dist/plugin-sdk/zalouser.cjs +1 -0
- package/dist/plugin-sdk/zalouser.js +1 -0
- package/dist/plugins-CYLrFT4h.js +1 -0
- package/dist/plugins-DNlgeTTc.js +1 -0
- package/dist/plugins-cli-BbjMbzJU.js +1 -0
- package/dist/plugins-cli-BiVMAr5T.js +1 -0
- package/dist/polls-BIVz6a4F.js +1 -0
- package/dist/polls-Bh5wc9-6.js +1 -0
- package/dist/polls-C_XSFz3d.js +1 -0
- package/dist/polls-DKJOFSzJ.js +1 -0
- package/dist/ports-B0XdGTfS.js +1 -0
- package/dist/ports-BR0PLRtq.js +1 -0
- package/dist/probe-auth-BMA0yM94.js +1 -0
- package/dist/probe-auth-VI96zmTK.js +1 -0
- package/dist/profile-utils-CWmra1aY.js +1 -0
- package/dist/program-BrAZTwFr.js +1 -0
- package/dist/program-context-B9ydtPje.js +1 -0
- package/dist/program-context-CH9p6anW.js +1 -0
- package/dist/progress-LNttnI-y.js +1 -0
- package/dist/progress-d1m2sqR1.js +1 -0
- package/dist/prompt-select-styled-BeJNbzSa.js +1 -0
- package/dist/prompt-select-styled-DIOWLjl0.js +1 -0
- package/dist/prompt-style-BThRSQJR.js +1 -0
- package/dist/prompt-style-CXKekIBY.js +1 -0
- package/dist/prompts-CMzglboN.js +1 -0
- package/dist/prompts-wv-lfVrJ.js +1 -0
- package/dist/provider-auth-helpers-1lU43eTW.js +1 -0
- package/dist/provider-auth-helpers-pBVCjBj9.js +1 -0
- package/dist/provider-env-vars-D8p6Ohpj.js +1 -0
- package/dist/provider-env-vars-Dt0Q29Su.js +1 -0
- package/dist/proxy-env-BNhTHkd_.js +1 -0
- package/dist/proxy-env-DcmW_urA.js +1 -0
- package/dist/proxy-env-DrC3TIGh.js +1 -0
- package/dist/proxy-env-FJr5nlvs.js +1 -0
- package/dist/proxy-fetch-BADsUK4d.js +1 -0
- package/dist/proxy-fetch-BZ9O8Dvj.js +1 -0
- package/dist/proxy-fetch-DnjU1fEB.js +1 -0
- package/dist/proxy-fetch-gWETR3cl.js +1 -0
- package/dist/push-apns-BGUOmD5M.js +1 -0
- package/dist/push-apns-B_a2MBJ4.js +1 -0
- package/dist/pw-ai-C-Ffkwai.js +1 -0
- package/dist/pw-ai-CV1H1Vrs.js +1 -0
- package/dist/pw-ai-D_MB1lrR.js +1 -0
- package/dist/pw-ai-_l9lVice.js +1 -0
- package/dist/qmd-manager-C_e04BNg.js +1 -0
- package/dist/qmd-manager-DSQ_mDCl.js +1 -0
- package/dist/qmd-manager-DcBYbt_V.js +1 -0
- package/dist/qmd-manager-NLI0R6kp.js +1 -0
- package/dist/qr-cli-3aG6CB6K.js +1 -0
- package/dist/qr-cli-fiJxD5M4.js +1 -0
- package/dist/query-expansion-0OxEb1Io.js +1 -0
- package/dist/query-expansion-BUUx_oWg.js +1 -0
- package/dist/query-expansion-r_iXkNzt.js +1 -0
- package/dist/reaction-level-DVPHL14p.js +1 -0
- package/dist/reaction-message-id-BEEe7X3D.js +1 -0
- package/dist/read-only-account-inspect-DBwAwB3_.js +1 -0
- package/dist/redact-3_CiXMY6.js +1 -0
- package/dist/redact-CnRxK70G.js +1 -0
- package/dist/register.agent-CX78s_X9.js +1 -0
- package/dist/register.agent-DLDKQENq.js +1 -0
- package/dist/register.backup-DkFoTcuT.js +1 -0
- package/dist/register.backup-PzF5rmeU.js +1 -0
- package/dist/register.configure-BA5u9hT3.js +1 -0
- package/dist/register.configure-BhPtf3Qo.js +1 -0
- package/dist/register.maintenance-BhsBepKS.js +1 -0
- package/dist/register.maintenance-r_MzNK3-.js +1 -0
- package/dist/register.message-CTF--Z2a.js +1 -0
- package/dist/register.message-jcZ875be.js +1 -0
- package/dist/register.onboard-C3yL50_c.js +1 -0
- package/dist/register.onboard-CNwnStUk.js +1 -0
- package/dist/register.setup-BRJMzgfU.js +1 -0
- package/dist/register.setup-BvsS-zgm.js +1 -0
- package/dist/register.status-health-sessions-DVc__2pc.js +1 -0
- package/dist/register.status-health-sessions-Dqmkw820.js +1 -0
- package/dist/register.subclis-D-24j83X.js +1 -0
- package/dist/registry-BptzrW8D.js +1 -0
- package/dist/registry-hFAtCSWG.js +1 -0
- package/dist/render-BXEUPIHe.js +1 -0
- package/dist/render-CBsnn-2A.js +1 -0
- package/dist/render-D8OWO2hT.js +1 -0
- package/dist/render-DrrPmnMI.js +1 -0
- package/dist/reply-l-Y47HP4.js +1 -0
- package/dist/restart-CHXEHdSC.js +1 -0
- package/dist/rpc-B3ReBNXG.js +1 -0
- package/dist/rpc-DumDLalJ.js +1 -0
- package/dist/run-main-B_YBE_TN.js +1 -0
- package/dist/runtime-BC5Ep2pJ.js +1 -0
- package/dist/runtime-Dlg2-Omq.js +1 -0
- package/dist/runtime-guard-DFYBaYZS.js +1 -0
- package/dist/runtime-guard-DX2Ie4ri.js +1 -0
- package/dist/runtime-status-CqFBmdRd.js +1 -0
- package/dist/runtime-status-DszMjvJK.js +1 -0
- package/dist/runtime-web-tools-D8fms06-.js +1 -0
- package/dist/runtime-web-tools-bz76ZaRc.js +1 -0
- package/dist/sandbox-cli-BDorUBm-.js +1 -0
- package/dist/sandbox-cli-Bq40R5Vs.js +1 -0
- package/dist/scan-paths-C13EseXp.js +1 -0
- package/dist/scan-paths-CWtvWW40.js +1 -0
- package/dist/search-manager-Bp9x20r6.js +1 -0
- package/dist/secret-file-C7JffiM_.js +1 -0
- package/dist/secret-file-D60EFEOe.js +1 -0
- package/dist/secret-file-DuWm26jS.js +1 -0
- package/dist/secrets-cli-Bo6PC32U.js +1 -0
- package/dist/secrets-cli-CoXJv3Jp.js +1 -0
- package/dist/secure-random-D7JQgiK-.js +1 -0
- package/dist/security-cli-CgZL2KKh.js +1 -0
- package/dist/security-cli-DVOfhwAP.js +1 -0
- package/dist/send-B7sHR38c2.js +1 -0
- package/dist/send-Bx2Qr7VH.js +1 -0
- package/dist/send-C-AP01PR.js +1 -0
- package/dist/send-C1CJ-GHU.js +1 -0
- package/dist/send-C48Y9SAq.js +1 -0
- package/dist/send-CVplsJpw.js +1 -0
- package/dist/send-CW81y5Wz.js +1 -0
- package/dist/send-CYgHok1p.js +1 -0
- package/dist/send-Cgd_VJHR.js +1 -0
- package/dist/send-Chz0YMoJ.js +1 -0
- package/dist/send-D9hVVn7p2.js +1 -0
- package/dist/send-DKrzj_Ts.js +1 -0
- package/dist/send-DRLSCwCk.js +1 -0
- package/dist/send-DavpkzhH.js +1 -0
- package/dist/send-DbeEC2a3.js +1 -0
- package/dist/send-DkiKKUkt.js +1 -0
- package/dist/send-DlfVd5mL.js +1 -0
- package/dist/send-JYgM9Sm-2.js +1 -0
- package/dist/send-hZFDcGLM.js +1 -0
- package/dist/send-vthbs31u.js +1 -0
- package/dist/server-DpyBukwA.js +1 -0
- package/dist/server-IgiSKzXH.js +1 -0
- package/dist/server-node-events-CFSY_-4t.js +1 -0
- package/dist/server-node-events-ZFwmPwQ-.js +1 -0
- package/dist/service-BtB9epJk.js +1 -0
- package/dist/service-DZ9EbS15.js +1 -0
- package/dist/session-C9TDmUS7.js +1 -0
- package/dist/session-CUUGjiV3.js +1 -0
- package/dist/session-DA-i5xQ-.js +1 -0
- package/dist/session-bk3gFwO4.js +1 -0
- package/dist/session-cost-usage-BgqKixv0.js +1 -0
- package/dist/session-cost-usage-CHtVgnE8.js +1 -0
- package/dist/session-key-C7F_iqYg.js +1 -0
- package/dist/session-key-D3P0tf5P.js +1 -0
- package/dist/session-utils-8acNlxwP.js +1 -0
- package/dist/sessions-BsxT0V2m.js +1 -0
- package/dist/shared-9x5sqYRb.js +1 -0
- package/dist/shared-BKWhOp64.js +1 -0
- package/dist/shared-GesXrZzd.js +1 -0
- package/dist/skill-commands-BWW6mc6t.js +1 -0
- package/dist/skill-commands-CSF6wVPU.js +1 -0
- package/dist/skill-commands-Db232ZRp.js +1 -0
- package/dist/skill-commands-HJHHZqt6.js +1 -0
- package/dist/skill-scanner-CUUF3Fvo.js +1 -0
- package/dist/skill-scanner-CkxXNioD.js +1 -0
- package/dist/skills-CKTicUKS.js +1 -0
- package/dist/skills-DHbOKEGc.js +1 -0
- package/dist/skills-cli-9Ls94z5H.js +1 -0
- package/dist/skills-cli-BY7OhJzj.js +1 -0
- package/dist/skills-install-CIdGCXSy.js +1 -0
- package/dist/skills-install-DIdiVt9Y.js +1 -0
- package/dist/skills-status-BWIugRCz.js +1 -0
- package/dist/skills-status-DswSl5aD.js +1 -0
- package/dist/sqlite-CILF3z9U.js +1 -0
- package/dist/stagger-DmFYysrJ.js +1 -0
- package/dist/stagger-DxzgG2jd.js +1 -0
- package/dist/status-C-9fSiMn.js +1 -0
- package/dist/status-CeBGmSAz.js +1 -0
- package/dist/status-DYqPF0rB.js +1 -0
- package/dist/status-JIPeVrsc.js +1 -0
- package/dist/status.update-B_8Gumuc.js +1 -0
- package/dist/status.update-DoSzHu2F.js +1 -0
- package/dist/string-normalization-BrUPaXaM.js +1 -0
- package/dist/string-normalization-DJT5zuUF.js +1 -0
- package/dist/subsystem-BLbY429l.js +1 -0
- package/dist/subsystem-Bc2XrjUz.js +1 -0
- package/dist/subsystem-C5XF2Fy5.js +1 -0
- package/dist/system-cli-CeZfoVPN.js +1 -0
- package/dist/system-cli-DZkTYB9d.js +1 -0
- package/dist/system-run-command-BKfMiqQM.js +1 -0
- package/dist/system-run-command-DEWnZE0r.js +1 -0
- package/dist/systemd-D7odsu4K.js +1 -0
- package/dist/systemd-DbevZh65.js +1 -0
- package/dist/systemd-hints-C0DKDl35.js +1 -0
- package/dist/systemd-hints-lXpMy-kY.js +1 -0
- package/dist/systemd-linger-C2MJD6KG.js +1 -0
- package/dist/systemd-linger-cWKbFNpu.js +1 -0
- package/dist/table-CR7TFMew.js +1 -0
- package/dist/table-CY440fI1.js +1 -0
- package/dist/tables-Brc2lNcB.js +1 -0
- package/dist/tables-CrXdLc_6.js +1 -0
- package/dist/tables-Oieq7UbT.js +1 -0
- package/dist/tables-btcG3yFT.js +1 -0
- package/dist/target-errors-CRlevJJ5.js +1 -0
- package/dist/target-errors-CgWAJOam.js +1 -0
- package/dist/target-errors-CpKXh2RS.js +1 -0
- package/dist/target-errors-a35Md15n.js +1 -0
- package/dist/targets-4EaxWBal.js +1 -0
- package/dist/targets-BJTo7bqu.js +1 -0
- package/dist/targets-BYVMrXDf.js +1 -0
- package/dist/targets-Bq6rS6-Z.js +1 -0
- package/dist/targets-CL5fYQi7.js +1 -0
- package/dist/targets-fozeWOOg.js +1 -0
- package/dist/targets-m_41k_Mv.js +1 -0
- package/dist/telegram/audit.js +1 -0
- package/dist/text-format-CvrvBBre.js +1 -0
- package/dist/text-format-DEWK6oCT.js +1 -0
- package/dist/token-DnTmiyJu.js +1 -0
- package/dist/tokens-B2fq-rL6.js +1 -0
- package/dist/tokens-CL2fSjGl.js +1 -0
- package/dist/tokens-DRM8vzJx.js +1 -0
- package/dist/tokens-XGbQGn67.js +1 -0
- package/dist/tool-display-DJDtttQg.js +1 -0
- package/dist/tool-display-DjuSUUbH.js +1 -0
- package/dist/tui-B506apla.js +1 -0
- package/dist/tui-CJUkUxHb.js +1 -0
- package/dist/tui-cli-BEdGHmhc.js +1 -0
- package/dist/tui-cli-Cq_eXDAV.js +1 -0
- package/dist/types.secrets-C-5U96pc.js +1 -0
- package/dist/types.secrets-D4tbc3Wq.js +1 -0
- package/dist/update-BGrxUIyz.js +1 -0
- package/dist/update-CwTy5DPl.js +1 -0
- package/dist/update-cli-BwBMOeP0.js +1 -0
- package/dist/update-cli-YrBbmw4f.js +1 -0
- package/dist/update-runner-BvtyRBD2.js +1 -0
- package/dist/update-runner-DYamgo1V.js +1 -0
- package/dist/usage-format-BWD8FJFL.js +1 -0
- package/dist/usage-format-yPwal8Iz.js +1 -0
- package/dist/utils-CGdo13HV.js +1 -0
- package/dist/utils-D3t-vPka.js +1 -0
- package/dist/utils-R-mFyVJi.js +1 -0
- package/dist/utils-UGOV_184.js +1 -0
- package/dist/version-q3SkUw2K.js +1 -0
- package/dist/warning-filter.js +1 -0
- package/dist/web-Cq3xWCaD.js +1 -0
- package/dist/web-DwcxsgH0.js +1 -0
- package/dist/webhooks-cli-CIeyainW.js +1 -0
- package/dist/webhooks-cli-DSNAve_D.js +1 -0
- package/dist/whatsapp-actions-B6gt1KeB.js +1 -0
- package/dist/whatsapp-actions-DACoH7qd.js +1 -0
- package/dist/whatsapp-actions-iQhIeMya.js +1 -0
- package/dist/whatsapp-actions-tmjID75a.js +1 -0
- package/dist/widearea-dns-BDx7vkV2.js +1 -0
- package/dist/widearea-dns-BFjqKXu_.js +1 -0
- package/dist/windows-spawn-7oINn5ao.js +1 -0
- package/dist/windows-spawn-AB7ItGAE.js +1 -0
- package/dist/with-timeout-WveKxvFV.js +1 -0
- package/dist/with-timeout-c1CzdShT.js +1 -0
- package/dist/workspace-B0ZQeHXg.js +1 -0
- package/dist/workspace-C45T1Cxg.js +1 -0
- package/dist/workspace-dirs-A8Vib9_B.js +1 -0
- package/dist/workspace-dirs-BhF1Dzxt.js +1 -0
- package/dist/workspace-xNEpaJvu.js +1 -0
- package/dist/wsl-DHxB2Ew_.js +1 -0
- package/dist/wsl-Ok7GaSJ6.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/@grammyjs/types/package.json +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/cjs/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/cjs/index.js +3 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +66 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +1999 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +61 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/utils.js +10 -0
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/index.js +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.factory.generated.js +63 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +1995 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.js +58 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/utils.js +9 -0
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/package.json +10 -7
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/clipboard.linux-x64-musl.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
- package/node_modules/@slack/bolt/dist/App.js +22 -30
- package/node_modules/@slack/bolt/dist/Assistant.js +21 -37
- package/node_modules/@slack/bolt/dist/CustomFunction.js +1 -43
- package/node_modules/@slack/bolt/dist/context/create-function-complete.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-function-fail.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-respond.js +11 -0
- package/node_modules/@slack/bolt/dist/context/create-say-stream.js +16 -0
- package/node_modules/@slack/bolt/dist/context/create-say.js +17 -0
- package/node_modules/@slack/bolt/dist/context/create-set-status.js +21 -0
- package/node_modules/@slack/bolt/dist/context/index.js +16 -0
- package/node_modules/@slack/bolt/dist/helpers.js +79 -3
- package/node_modules/@slack/bolt/dist/index.js +10 -8
- package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +5 -1
- package/node_modules/@slack/bolt/dist/types/events/index.js +0 -4
- package/node_modules/@slack/bolt/package.json +7 -7
- package/node_modules/@smithy/config-resolver/package.json +10 -11
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
- package/node_modules/@smithy/core/package.json +15 -16
- package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/eventstream-codec/package.json +6 -7
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
- package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
- package/node_modules/@smithy/hash-node/package.json +6 -7
- package/node_modules/@smithy/invalid-dependency/package.json +6 -7
- package/node_modules/@smithy/middleware-content-length/package.json +7 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
- package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
- package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
- package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
- package/node_modules/@smithy/middleware-retry/package.json +16 -16
- package/node_modules/@smithy/middleware-serde/package.json +10 -11
- package/node_modules/@smithy/middleware-stack/package.json +7 -8
- package/node_modules/@smithy/node-config-provider/package.json +8 -9
- package/node_modules/@smithy/node-http-handler/package.json +10 -11
- package/node_modules/@smithy/property-provider/package.json +6 -7
- package/node_modules/@smithy/protocol-http/package.json +6 -7
- package/node_modules/@smithy/querystring-builder/package.json +6 -7
- package/node_modules/@smithy/querystring-parser/package.json +6 -7
- package/node_modules/@smithy/service-error-classification/package.json +6 -7
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/signature-v4/package.json +9 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/smithy-client/package.json +14 -15
- package/node_modules/@smithy/types/package.json +7 -8
- package/node_modules/@smithy/url-parser/package.json +7 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
- package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
- package/node_modules/@smithy/util-endpoints/package.json +9 -10
- package/node_modules/@smithy/util-middleware/package.json +6 -7
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +123 -76
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +24 -25
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
- package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
- package/node_modules/@smithy/util-retry/package.json +10 -11
- package/node_modules/@smithy/util-stream/package.json +12 -13
- package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
- package/node_modules/dotenv/lib/main.js +1 -1
- package/node_modules/dotenv/package.json +1 -1
- package/node_modules/dotenv/skills/dotenv/SKILL.md +32 -52
- package/node_modules/dotenv/skills/dotenvx/SKILL.md +57 -273
- package/node_modules/grammy/out/bot.js +1 -0
- package/node_modules/grammy/out/context.js +35 -0
- package/node_modules/grammy/out/convenience/keyboard.js +30 -2
- package/node_modules/grammy/out/core/api.js +34 -0
- package/node_modules/grammy/out/filter.js +6 -2
- package/node_modules/grammy/out/web.mjs +58 -10
- package/node_modules/grammy/package.json +2 -2
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +12 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +227 -130
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +17 -0
- package/node_modules/lru-cache/dist/esm/index.js +227 -130
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +8 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/package.json +29 -9
- package/node_modules/netmask/dist/netmask.js +58 -0
- package/node_modules/netmask/dist/netmask4.js +189 -0
- package/node_modules/netmask/dist/netmask6.js +187 -0
- package/node_modules/netmask/package.json +15 -6
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +93 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +189 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +50 -20
- package/node_modules/path-expression-matcher/src/index.js +3 -2
- package/node_modules/strnum/package.json +1 -1
- package/package.json +1 -1
- package/preset-config.json +12 -0
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
- package/node_modules/netmask/CREDITS.md +0 -30
- package/node_modules/netmask/lib/netmask.coffee +0 -167
- package/node_modules/netmask/lib/netmask.js +0 -208
- package/node_modules/strnum/.github/SECURITY.md +0 -5
- package/node_modules/strnum/.vscode/launch.json +0 -25
- package/node_modules/strnum/algo.stflow +0 -84
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
- /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{types.js → retry-pre-sra-deprecated/types.js} +0 -0
|
@@ -2,3 +2,4 @@ import{c as e,g as t,y as n}from"./utils-UGOV_184.js";import{p as r}from"./env-o
|
|
|
2
2
|
`).map(e=>e.trim()).filter(Boolean).map(e=>{let t=e[0]??``;if(!t)throw Error(`unable to parse tar entry type`);return{type:re(t),size:E(e)}})}async function O(e){let t=C(`sha256`),n=x.createReadStream(e);return await new Promise((e,r)=>{n.on(`data`,e=>{t.update(e)}),n.on(`error`,r),n.on(`end`,()=>{e(t.digest(`hex`))})})}function k(e,t){return{stdout:e.stdout,stderr:e.stderr||t,code:e.code}}function A(e){let t=[`tar`,`xf`,e.archivePath,`-C`,e.targetDir];return e.stripComponents>0&&t.push(`--strip-components`,String(e.stripComponents)),t}async function j(e){let t=await s([`tar`,`tf`,e.archivePath],{timeoutMs:e.timeoutMs});if(t.code!==0)return k(t,`tar list failed`);let n=t.stdout.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(Boolean),r=await s([`tar`,`tvf`,e.archivePath],{timeoutMs:e.timeoutMs});if(r.code!==0)return k(r,`tar verbose list failed`);let i=D(r.stdout);return i.length===n.length?{entries:n,metadata:i}:{stdout:r.stdout,stderr:`tar verbose/list entry count mismatch (${i.length} vs ${n.length})`,code:1}}function M(e){return`code`in e}async function N(e){return await O(e.archivePath)===e.expectedHash?null:{stdout:``,stderr:`tar archive changed during safety preflight; refusing to extract`,code:1}}async function P(e){return await h({destinationRealDir:e.destinationRealDir,run:async t=>{let n=await s(A({archivePath:e.archivePath,targetDir:t,stripComponents:e.stripComponents}),{timeoutMs:e.timeoutMs});return n.code===0&&await f({sourceDir:t,destinationDir:e.destinationRealDir,destinationRealDir:e.destinationRealDir}),n}})}async function F(e){let{archivePath:t,archiveType:n,targetDir:r,stripComponents:i,timeoutMs:a}=e,s=typeof i==`number`&&Number.isFinite(i)?Math.max(0,Math.floor(i)):0;try{if(n===`zip`)return await v({archivePath:t,destDir:r,timeoutMs:a,kind:`zip`,stripComponents:s}),{stdout:``,stderr:``,code:0};if(n===`tar.gz`)return await v({archivePath:t,destDir:r,timeoutMs:a,kind:`tar`,stripComponents:s,tarGzip:!0}),{stdout:``,stderr:``,code:0};if(n===`tar.bz2`){if(!o(`tar`))return{stdout:``,stderr:`tar not found on PATH`,code:null};let e=await _(r),n=await O(t),i=await j({archivePath:t,timeoutMs:a});if(M(i))return i;let c=g({rootDir:e,stripComponents:s,escapeLabel:`targetDir`});for(let e=0;e<i.entries.length;e+=1){let t=i.entries[e],n=i.metadata[e];if(!t||!n)return{stdout:``,stderr:`tar metadata parse failure`,code:1};c({path:t,type:n.type,size:n.size})}return await N({archivePath:t,expectedHash:n})||await P({archivePath:t,destinationRealDir:e,stripComponents:s,timeoutMs:a})}return{stdout:``,stderr:`unsupported archive type: ${n}`,code:null}}catch(e){return{stdout:``,stderr:e instanceof Error?e.message:String(e),code:1}}}function I(e){let t=e.trim();if(!t)return;let n=t.split(`
|
|
4
4
|
`).map(e=>e.trim()).filter(Boolean);if(n.length===0)return;let r=n.find(e=>/^error\b/i.test(e))??n.find(e=>/\b(err!|error:|failed)\b/i.test(e))??n.at(-1);if(!r)return;let i=r.replace(/\s+/g,` `).trim();return i.length>200?`${i.slice(0,199)}…`:i}function L(e){let t=typeof e.code==`number`?`exit ${e.code}`:`unknown exit`,n=I(e.stderr)??I(e.stdout);return n?`Install failed (${t}): ${n}`:`Install failed (${t})`}function R(e){let n=m(r(e.skill,e));return S.join(t(),`tools`,n)}function z(e){return!!(e&&typeof e.pipe==`function`)}function B(e,t){let r=R(e),i=t.targetDir?.trim();if(!i)return r;let a=i.startsWith(`~`)||S.isAbsolute(i)||p(i)?n(i):S.resolve(r,i);if(!d(r,a))throw Error(`Refusing to install outside the skill tools directory. targetDir="${i}" resolves to "${a}". Allowed root: "${r}".`);return a}function V(e,t){let n=e.archive?.trim().toLowerCase();if(n)return n;let r=t.toLowerCase();if(r.endsWith(`.tar.gz`)||r.endsWith(`.tgz`))return`tar.gz`;if(r.endsWith(`.tar.bz2`)||r.endsWith(`.tbz2`))return`tar.bz2`;if(r.endsWith(`.zip`))return`zip`}async function ie(t){let n=S.resolve(t.rootDir,t.relativePath),r=S.join(t.rootDir,`.openclaw-download-staging`);await e(r),await y({baseDir:t.rootDir,candidatePath:r,boundaryLabel:`skill tools directory`});let i=S.join(r,`${w()}.tmp`),{response:a,release:o}=await l({url:t.url,timeoutMs:Math.max(1e3,t.timeoutMs)});try{if(!a.ok||!a.body)throw Error(`Download failed (${a.status} ${a.statusText})`);let e=x.createWriteStream(i),r=a.body;return await T(z(r)?r:ee.fromWeb(r),e),await c({rootDir:t.rootDir,relativePath:t.relativePath,sourcePath:i}),{bytes:(await x.promises.stat(n)).size}}finally{await x.promises.rm(i,{force:!0}).catch(()=>void 0),await o()}}async function H(t){let{entry:n,spec:r,timeoutMs:i}=t,a=R(n),o=r.url?.trim();if(!o)return{ok:!1,message:`missing download url`,stdout:``,stderr:``,code:null};let s=``;try{let e=new URL(o);s=S.basename(e.pathname)}catch{s=S.basename(o)}s||=`download`;let c=``,l=``;try{await e(a),await y({baseDir:a,candidatePath:a,boundaryLabel:`skill tools directory`}),c=await x.promises.realpath(a);let t=B(n,r);await e(t),await y({baseDir:a,candidatePath:t,boundaryLabel:`skill tools directory`});let i=S.relative(a,t);l=S.join(c,i)}catch(e){let t=e instanceof Error?e.message:String(e);return{ok:!1,message:t,stdout:``,stderr:t,code:null}}let u=S.join(l,s),d=S.relative(c,u);if(!d||d===`..`||d.startsWith(`..${S.sep}`)||S.isAbsolute(d))return{ok:!1,message:`invalid download archive path`,stdout:``,stderr:`invalid download archive path`,code:null};let f=0;try{f=(await ie({url:o,rootDir:c,relativePath:d,timeoutMs:i})).bytes}catch(e){let t=e instanceof Error?e.message:String(e);return{ok:!1,message:t,stdout:``,stderr:t,code:null}}let p=V(r,s);if(!(r.extract??!!p))return{ok:!0,message:`Downloaded to ${u}`,stdout:`downloaded=${f}`,stderr:``,code:0};if(!p)return{ok:!1,message:`extract requested but archive type could not be detected`,stdout:``,stderr:``,code:null};try{await y({baseDir:c,candidatePath:l,boundaryLabel:`skill tools directory`})}catch(e){let t=e instanceof Error?e.message:String(e);return{ok:!1,message:t,stdout:``,stderr:t,code:null}}let m=await F({archivePath:u,archiveType:p,targetDir:l,stripComponents:r.stripComponents,timeoutMs:i}),h=m.code===0;return{ok:h,message:h?`Downloaded and extracted to ${l}`:L(m),stdout:m.stdout.trim(),stderr:m.stderr.trim(),code:m.code}}function U(e,t){return t.length===0?e:{...e,warnings:t.slice()}}function W(e,t){let n=S.relative(e,t.file),r=n&&n!==`.`&&!n.startsWith(`..`)?n:S.basename(t.file);return`${t.message} (${r}:${t.line})`}async function G(e){let t=[],n=e.skill.name,r=S.resolve(e.skill.baseDir);try{let e=await b(r);if(e.critical>0){let i=e.findings.filter(e=>e.severity===`critical`).map(e=>W(r,e)).join(`; `);t.push(`WARNING: Skill "${n}" contains dangerous code patterns: ${i}`)}else e.warn>0&&t.push(`Skill "${n}" has ${e.warn} suspicious code pattern(s). Run "openclaw security audit --deep" for details.`)}catch(e){t.push(`Skill "${n}" code safety scan failed (${String(e)}). Installation continues; run "openclaw security audit --deep" after install.`)}return t}function K(e,t){return(e.id??`${e.kind}-${t}`).trim()}function q(e,t){let n=e.metadata?.install??[];for(let[e,r]of n.entries())if(K(r,e)===t)return r}function J(e,t){switch(t.nodeManager){case`pnpm`:return[`pnpm`,`add`,`-g`,`--ignore-scripts`,e];case`yarn`:return[`yarn`,`global`,`add`,`--ignore-scripts`,e];case`bun`:return[`bun`,`add`,`-g`,`--ignore-scripts`,e];default:return[`npm`,`install`,`-g`,`--ignore-scripts`,e]}}function Y(e,t){switch(e.kind){case`brew`:return e.formula?{argv:[`brew`,`install`,e.formula]}:{argv:null,error:`missing brew formula`};case`node`:return e.package?{argv:J(e.package,t)}:{argv:null,error:`missing node package`};case`go`:return e.module?{argv:[`go`,`install`,e.module]}:{argv:null,error:`missing go module`};case`uv`:return e.package?{argv:[`uv`,`tool`,`install`,e.package]}:{argv:null,error:`missing uv package`};case`download`:return{argv:null,error:`download install handled separately`};default:return{argv:null,error:`unsupported installer`}}}async function ae(e,t){let n=t??(o(`brew`)?`brew`:u());if(!n)return;let r=await s([n,`--prefix`],{timeoutMs:Math.min(e,3e4)});if(r.code===0){let e=r.stdout.trim();if(e)return S.join(e,`bin`)}let i=process.env.HOMEBREW_PREFIX?.trim();if(i)return S.join(i,`bin`);for(let e of[`/opt/homebrew/bin`,`/usr/local/bin`])try{if(x.existsSync(e))return e}catch{}}function X(e){return{ok:!1,message:e.message,stdout:e.stdout?.trim()??``,stderr:e.stderr?.trim()??``,code:e.code??null}}function oe(e){return{ok:!0,message:`Installed`,stdout:e.stdout.trim(),stderr:e.stderr.trim(),code:e.code}}async function Z(e,t){try{let n=await s(e,t);return{code:n.code,stdout:n.stdout,stderr:n.stderr}}catch(e){return{code:null,stdout:``,stderr:e instanceof Error?e.message:String(e)}}}async function Q(e,t){await Z(e,t)}function se(e){let t=e.formula??`this package`;return X({message:`brew not installed — ${process.platform===`linux`?`Homebrew is not installed. Install it from https://brew.sh or install "${t}" manually using your system package manager (e.g. apt, dnf, pacman).`:`Homebrew is not installed. Install it from https://brew.sh`}`})}async function ce(e){if(e.spec.kind!==`uv`||o(`uv`))return;if(!e.brewExe)return X({message:`uv not installed — install manually: https://docs.astral.sh/uv/getting-started/installation/`});let t=await Z([e.brewExe,`install`,`uv`],{timeoutMs:e.timeoutMs});if(t.code!==0)return X({message:`Failed to install uv (brew)`,...t})}async function le(e){let t=[`apt-get`,`install`,`-y`,`golang-go`],n=[`apt-get`,`update`,`-qq`],r=`go not installed — automatic install via apt failed. Install manually: https://go.dev/doc/install`;if(typeof process.getuid==`function`&&process.getuid()===0){await Q(n,{timeoutMs:e});let i=await Z(t,{timeoutMs:e});return i.code===0?void 0:X({message:r,...i})}if(!o(`sudo`))return X({message:`go not installed — apt-get is available but sudo is not installed. Install manually: https://go.dev/doc/install`});let i=await Z([`sudo`,`-n`,`true`],{timeoutMs:5e3});if(i.code!==0)return X({message:`go not installed — apt-get is available but sudo is not usable (missing or requires a password). Install manually: https://go.dev/doc/install`,...i});await Q([`sudo`,...n],{timeoutMs:e});let a=await Z([`sudo`,...t],{timeoutMs:e});if(a.code!==0)return X({message:r,...a})}async function $(e){if(!(e.spec.kind!==`go`||o(`go`))){if(e.brewExe){let t=await Z([e.brewExe,`install`,`go`],{timeoutMs:e.timeoutMs});return t.code===0?void 0:X({message:`Failed to install go (brew)`,...t})}return o(`apt-get`)?le(e.timeoutMs):X({message:`go not installed — install manually: https://go.dev/doc/install`})}}async function ue(e){if(!e.argv||e.argv.length===0)return X({message:`invalid install command`});let t=await Z(e.argv,{timeoutMs:e.timeoutMs,env:e.env});return t.code===0?oe(t):X({message:L(t),...t})}async function de(e){let t=Math.min(Math.max(e.timeoutMs??3e5,1e3),9e5),r=i(n(e.workspaceDir)).find(t=>t.skill.name===e.skillName);if(!r)return{ok:!1,message:`Skill not found: ${e.skillName}`,stdout:``,stderr:``,code:null};let s=q(r,e.installId),c=await G(r);if(!s)return U({ok:!1,message:`Installer not found: ${e.installId}`,stdout:``,stderr:``,code:null},c);if(s.kind===`download`)return U(await H({entry:r,spec:s,timeoutMs:t}),c);let l=Y(s,a(e.config));if(l.error)return U({ok:!1,message:l.error,stdout:``,stderr:``,code:null},c);let d=o(`brew`)?`brew`:u();if(s.kind===`brew`&&!d)return U(se(s),c);let f=await ce({spec:s,brewExe:d,timeoutMs:t});if(f)return U(f,c);let p=await $({spec:s,brewExe:d,timeoutMs:t});if(p)return U(p,c);let m=l.argv?[...l.argv]:null;s.kind===`brew`&&d&&m?.[0]===`brew`&&(m[0]=d);let h;if(s.kind===`go`&&d){let e=await ae(t,d);e&&(h={GOBIN:e})}return U(await ue({argv:m,timeoutMs:t,env:h}),c)}export{de as t};
|
|
5
|
+
//# sourceMappingURL=skills-install-CIdGCXSy.js.map
|
|
@@ -2,3 +2,4 @@ import{h as e,s as t,v as n}from"./utils-CGdo13HV.js";import{p as r}from"./env-o
|
|
|
2
2
|
`).map(e=>e.trim()).filter(Boolean).map(e=>{let t=e[0]??``;if(!t)throw Error(`unable to parse tar entry type`);return{type:re(t),size:E(e)}})}async function O(e){let t=C(`sha256`),n=S.createReadStream(e);return await new Promise((e,r)=>{n.on(`data`,e=>{t.update(e)}),n.on(`error`,r),n.on(`end`,()=>{e(t.digest(`hex`))})})}function k(e,t){return{stdout:e.stdout,stderr:e.stderr||t,code:e.code}}function A(e){let t=[`tar`,`xf`,e.archivePath,`-C`,e.targetDir];return e.stripComponents>0&&t.push(`--strip-components`,String(e.stripComponents)),t}async function j(e){let t=await s([`tar`,`tf`,e.archivePath],{timeoutMs:e.timeoutMs});if(t.code!==0)return k(t,`tar list failed`);let n=t.stdout.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(Boolean),r=await s([`tar`,`tvf`,e.archivePath],{timeoutMs:e.timeoutMs});if(r.code!==0)return k(r,`tar verbose list failed`);let i=D(r.stdout);return i.length===n.length?{entries:n,metadata:i}:{stdout:r.stdout,stderr:`tar verbose/list entry count mismatch (${i.length} vs ${n.length})`,code:1}}function M(e){return`code`in e}async function N(e){return await O(e.archivePath)===e.expectedHash?null:{stdout:``,stderr:`tar archive changed during safety preflight; refusing to extract`,code:1}}async function P(e){return await h({destinationRealDir:e.destinationRealDir,run:async t=>{let n=await s(A({archivePath:e.archivePath,targetDir:t,stripComponents:e.stripComponents}),{timeoutMs:e.timeoutMs});return n.code===0&&await f({sourceDir:t,destinationDir:e.destinationRealDir,destinationRealDir:e.destinationRealDir}),n}})}async function F(e){let{archivePath:t,archiveType:n,targetDir:r,stripComponents:i,timeoutMs:a}=e,s=typeof i==`number`&&Number.isFinite(i)?Math.max(0,Math.floor(i)):0;try{if(n===`zip`)return await v({archivePath:t,destDir:r,timeoutMs:a,kind:`zip`,stripComponents:s}),{stdout:``,stderr:``,code:0};if(n===`tar.gz`)return await v({archivePath:t,destDir:r,timeoutMs:a,kind:`tar`,stripComponents:s,tarGzip:!0}),{stdout:``,stderr:``,code:0};if(n===`tar.bz2`){if(!o(`tar`))return{stdout:``,stderr:`tar not found on PATH`,code:null};let e=await _(r),n=await O(t),i=await j({archivePath:t,timeoutMs:a});if(M(i))return i;let c=g({rootDir:e,stripComponents:s,escapeLabel:`targetDir`});for(let e=0;e<i.entries.length;e+=1){let t=i.entries[e],n=i.metadata[e];if(!t||!n)return{stdout:``,stderr:`tar metadata parse failure`,code:1};c({path:t,type:n.type,size:n.size})}return await N({archivePath:t,expectedHash:n})||await P({archivePath:t,destinationRealDir:e,stripComponents:s,timeoutMs:a})}return{stdout:``,stderr:`unsupported archive type: ${n}`,code:null}}catch(e){return{stdout:``,stderr:e instanceof Error?e.message:String(e),code:1}}}function I(e){let t=e.trim();if(!t)return;let n=t.split(`
|
|
4
4
|
`).map(e=>e.trim()).filter(Boolean);if(n.length===0)return;let r=n.find(e=>/^error\b/i.test(e))??n.find(e=>/\b(err!|error:|failed)\b/i.test(e))??n.at(-1);if(!r)return;let i=r.replace(/\s+/g,` `).trim();return i.length>200?`${i.slice(0,199)}…`:i}function L(e){let t=typeof e.code==`number`?`exit ${e.code}`:`unknown exit`,n=I(e.stderr)??I(e.stdout);return n?`Install failed (${t}): ${n}`:`Install failed (${t})`}function R(t){let n=m(r(t.skill,t));return x.join(e(),`tools`,n)}function z(e){return!!(e&&typeof e.pipe==`function`)}function B(e,t){let r=R(e),i=t.targetDir?.trim();if(!i)return r;let a=i.startsWith(`~`)||x.isAbsolute(i)||p(i)?n(i):x.resolve(r,i);if(!d(r,a))throw Error(`Refusing to install outside the skill tools directory. targetDir="${i}" resolves to "${a}". Allowed root: "${r}".`);return a}function V(e,t){let n=e.archive?.trim().toLowerCase();if(n)return n;let r=t.toLowerCase();if(r.endsWith(`.tar.gz`)||r.endsWith(`.tgz`))return`tar.gz`;if(r.endsWith(`.tar.bz2`)||r.endsWith(`.tbz2`))return`tar.bz2`;if(r.endsWith(`.zip`))return`zip`}async function ie(e){let n=x.resolve(e.rootDir,e.relativePath),r=x.join(e.rootDir,`.openclaw-download-staging`);await t(r),await y({baseDir:e.rootDir,candidatePath:r,boundaryLabel:`skill tools directory`});let i=x.join(r,`${w()}.tmp`),{response:a,release:o}=await l({url:e.url,timeoutMs:Math.max(1e3,e.timeoutMs)});try{if(!a.ok||!a.body)throw Error(`Download failed (${a.status} ${a.statusText})`);let t=S.createWriteStream(i),r=a.body;return await T(z(r)?r:ee.fromWeb(r),t),await c({rootDir:e.rootDir,relativePath:e.relativePath,sourcePath:i}),{bytes:(await S.promises.stat(n)).size}}finally{await S.promises.rm(i,{force:!0}).catch(()=>void 0),await o()}}async function H(e){let{entry:n,spec:r,timeoutMs:i}=e,a=R(n),o=r.url?.trim();if(!o)return{ok:!1,message:`missing download url`,stdout:``,stderr:``,code:null};let s=``;try{let e=new URL(o);s=x.basename(e.pathname)}catch{s=x.basename(o)}s||=`download`;let c=``,l=``;try{await t(a),await y({baseDir:a,candidatePath:a,boundaryLabel:`skill tools directory`}),c=await S.promises.realpath(a);let e=B(n,r);await t(e),await y({baseDir:a,candidatePath:e,boundaryLabel:`skill tools directory`});let i=x.relative(a,e);l=x.join(c,i)}catch(e){let t=e instanceof Error?e.message:String(e);return{ok:!1,message:t,stdout:``,stderr:t,code:null}}let u=x.join(l,s),d=x.relative(c,u);if(!d||d===`..`||d.startsWith(`..${x.sep}`)||x.isAbsolute(d))return{ok:!1,message:`invalid download archive path`,stdout:``,stderr:`invalid download archive path`,code:null};let f=0;try{f=(await ie({url:o,rootDir:c,relativePath:d,timeoutMs:i})).bytes}catch(e){let t=e instanceof Error?e.message:String(e);return{ok:!1,message:t,stdout:``,stderr:t,code:null}}let p=V(r,s);if(!(r.extract??!!p))return{ok:!0,message:`Downloaded to ${u}`,stdout:`downloaded=${f}`,stderr:``,code:0};if(!p)return{ok:!1,message:`extract requested but archive type could not be detected`,stdout:``,stderr:``,code:null};try{await y({baseDir:c,candidatePath:l,boundaryLabel:`skill tools directory`})}catch(e){let t=e instanceof Error?e.message:String(e);return{ok:!1,message:t,stdout:``,stderr:t,code:null}}let m=await F({archivePath:u,archiveType:p,targetDir:l,stripComponents:r.stripComponents,timeoutMs:i}),h=m.code===0;return{ok:h,message:h?`Downloaded and extracted to ${l}`:L(m),stdout:m.stdout.trim(),stderr:m.stderr.trim(),code:m.code}}function U(e,t){return t.length===0?e:{...e,warnings:t.slice()}}function W(e,t){let n=x.relative(e,t.file),r=n&&n!==`.`&&!n.startsWith(`..`)?n:x.basename(t.file);return`${t.message} (${r}:${t.line})`}async function G(e){let t=[],n=e.skill.name,r=x.resolve(e.skill.baseDir);try{let e=await b(r);if(e.critical>0){let i=e.findings.filter(e=>e.severity===`critical`).map(e=>W(r,e)).join(`; `);t.push(`WARNING: Skill "${n}" contains dangerous code patterns: ${i}`)}else e.warn>0&&t.push(`Skill "${n}" has ${e.warn} suspicious code pattern(s). Run "openclaw security audit --deep" for details.`)}catch(e){t.push(`Skill "${n}" code safety scan failed (${String(e)}). Installation continues; run "openclaw security audit --deep" after install.`)}return t}function K(e,t){return(e.id??`${e.kind}-${t}`).trim()}function q(e,t){let n=e.metadata?.install??[];for(let[e,r]of n.entries())if(K(r,e)===t)return r}function J(e,t){switch(t.nodeManager){case`pnpm`:return[`pnpm`,`add`,`-g`,`--ignore-scripts`,e];case`yarn`:return[`yarn`,`global`,`add`,`--ignore-scripts`,e];case`bun`:return[`bun`,`add`,`-g`,`--ignore-scripts`,e];default:return[`npm`,`install`,`-g`,`--ignore-scripts`,e]}}function Y(e,t){switch(e.kind){case`brew`:return e.formula?{argv:[`brew`,`install`,e.formula]}:{argv:null,error:`missing brew formula`};case`node`:return e.package?{argv:J(e.package,t)}:{argv:null,error:`missing node package`};case`go`:return e.module?{argv:[`go`,`install`,e.module]}:{argv:null,error:`missing go module`};case`uv`:return e.package?{argv:[`uv`,`tool`,`install`,e.package]}:{argv:null,error:`missing uv package`};case`download`:return{argv:null,error:`download install handled separately`};default:return{argv:null,error:`unsupported installer`}}}async function ae(e,t){let n=t??(o(`brew`)?`brew`:u());if(!n)return;let r=await s([n,`--prefix`],{timeoutMs:Math.min(e,3e4)});if(r.code===0){let e=r.stdout.trim();if(e)return x.join(e,`bin`)}let i=process.env.HOMEBREW_PREFIX?.trim();if(i)return x.join(i,`bin`);for(let e of[`/opt/homebrew/bin`,`/usr/local/bin`])try{if(S.existsSync(e))return e}catch{}}function X(e){return{ok:!1,message:e.message,stdout:e.stdout?.trim()??``,stderr:e.stderr?.trim()??``,code:e.code??null}}function oe(e){return{ok:!0,message:`Installed`,stdout:e.stdout.trim(),stderr:e.stderr.trim(),code:e.code}}async function Z(e,t){try{let n=await s(e,t);return{code:n.code,stdout:n.stdout,stderr:n.stderr}}catch(e){return{code:null,stdout:``,stderr:e instanceof Error?e.message:String(e)}}}async function Q(e,t){await Z(e,t)}function se(e){let t=e.formula??`this package`;return X({message:`brew not installed — ${process.platform===`linux`?`Homebrew is not installed. Install it from https://brew.sh or install "${t}" manually using your system package manager (e.g. apt, dnf, pacman).`:`Homebrew is not installed. Install it from https://brew.sh`}`})}async function ce(e){if(e.spec.kind!==`uv`||o(`uv`))return;if(!e.brewExe)return X({message:`uv not installed — install manually: https://docs.astral.sh/uv/getting-started/installation/`});let t=await Z([e.brewExe,`install`,`uv`],{timeoutMs:e.timeoutMs});if(t.code!==0)return X({message:`Failed to install uv (brew)`,...t})}async function le(e){let t=[`apt-get`,`install`,`-y`,`golang-go`],n=[`apt-get`,`update`,`-qq`],r=`go not installed — automatic install via apt failed. Install manually: https://go.dev/doc/install`;if(typeof process.getuid==`function`&&process.getuid()===0){await Q(n,{timeoutMs:e});let i=await Z(t,{timeoutMs:e});return i.code===0?void 0:X({message:r,...i})}if(!o(`sudo`))return X({message:`go not installed — apt-get is available but sudo is not installed. Install manually: https://go.dev/doc/install`});let i=await Z([`sudo`,`-n`,`true`],{timeoutMs:5e3});if(i.code!==0)return X({message:`go not installed — apt-get is available but sudo is not usable (missing or requires a password). Install manually: https://go.dev/doc/install`,...i});await Q([`sudo`,...n],{timeoutMs:e});let a=await Z([`sudo`,...t],{timeoutMs:e});if(a.code!==0)return X({message:r,...a})}async function $(e){if(!(e.spec.kind!==`go`||o(`go`))){if(e.brewExe){let t=await Z([e.brewExe,`install`,`go`],{timeoutMs:e.timeoutMs});return t.code===0?void 0:X({message:`Failed to install go (brew)`,...t})}return o(`apt-get`)?le(e.timeoutMs):X({message:`go not installed — install manually: https://go.dev/doc/install`})}}async function ue(e){if(!e.argv||e.argv.length===0)return X({message:`invalid install command`});let t=await Z(e.argv,{timeoutMs:e.timeoutMs,env:e.env});return t.code===0?oe(t):X({message:L(t),...t})}async function de(e){let t=Math.min(Math.max(e.timeoutMs??3e5,1e3),9e5),r=i(n(e.workspaceDir)).find(t=>t.skill.name===e.skillName);if(!r)return{ok:!1,message:`Skill not found: ${e.skillName}`,stdout:``,stderr:``,code:null};let s=q(r,e.installId),c=await G(r);if(!s)return U({ok:!1,message:`Installer not found: ${e.installId}`,stdout:``,stderr:``,code:null},c);if(s.kind===`download`)return U(await H({entry:r,spec:s,timeoutMs:t}),c);let l=Y(s,a(e.config));if(l.error)return U({ok:!1,message:l.error,stdout:``,stderr:``,code:null},c);let d=o(`brew`)?`brew`:u();if(s.kind===`brew`&&!d)return U(se(s),c);let f=await ce({spec:s,brewExe:d,timeoutMs:t});if(f)return U(f,c);let p=await $({spec:s,brewExe:d,timeoutMs:t});if(p)return U(p,c);let m=l.argv?[...l.argv]:null;s.kind===`brew`&&d&&m?.[0]===`brew`&&(m[0]=d);let h;if(s.kind===`go`&&d){let e=await ae(t,d);e&&(h={GOBIN:e})}return U(await ue({argv:m,timeoutMs:t,env:h}),c)}export{de as t};
|
|
5
|
+
//# sourceMappingURL=skills-install-DIdiVt9Y.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{t}from"./subsystem-C5XF2Fy5.js";import{t as n}from"./utils-UGOV_184.js";import{a as r,c as i,o as a,s as o}from"./env-overrides-DXJbFrwI.js";import{c as s,i as c,t as l}from"./skills-DHbOKEGc.js";import{f as u}from"./frontmatter-BkZkwkVO.js";import{t as d}from"./entry-status-CCwwKO43.js";import f from"node:path";import{loadSkillsFromDir as p}from"@mariozechner/pi-coding-agent";const m=t(`skills`);let h=!1,g=null;function _(e={}){let t=s(e),n=new Set;if(!t)return h||(h=!0,m.warn(`Bundled skills directory could not be resolved; built-in skills may be missing.`)),{dir:t,names:n};if(g?.dir===t)return{dir:t,names:new Set(g.names)};let r=p({dir:t,source:`openclaw-bundled`});for(let e of r.skills)e.name.trim()&&n.add(e.name);return g={dir:t,names:new Set(n)},{dir:t,names:n}}var v=e({buildWorkspaceSkillStatus:()=>C});function y(e){return e.metadata?.skillKey??e.skill.name}function b(e,t){if(e.length===0)return;let n=e.map((e,t)=>({spec:e,index:t})),r=e=>n.find(t=>t.spec.kind===e),i=r(`brew`),a=r(`node`),o=r(`go`),s=r(`uv`),c=r(`download`),l=u(`brew`),d=[()=>t.preferBrew&&l?i:void 0,()=>s,()=>a,()=>l?i:void 0,()=>o,()=>c,()=>i,()=>n[0]];for(let e of d){let t=e();if(t)return t}}function x(e,t){let n=e.metadata?.os??[];if(n.length>0&&!n.includes(process.platform))return[];let r=e.metadata?.install??[];if(r.length===0)return[];let i=process.platform,a=r.filter(e=>{let t=e.os??[];return t.length===0||t.includes(i)});if(a.length===0)return[];let o=(e,n)=>{let r=(e.id??`${e.kind}-${n}`).trim(),i=e.bins??[],a=(e.label??``).trim();if(e.kind===`node`&&e.package&&(a=`Install ${e.package} (${t.nodeManager})`),!a)if(e.kind===`brew`&&e.formula)a=`Install ${e.formula} (brew)`;else if(e.kind===`node`&&e.package)a=`Install ${e.package} (${t.nodeManager})`;else if(e.kind===`go`&&e.module)a=`Install ${e.module} (go)`;else if(e.kind===`uv`&&e.package)a=`Install ${e.package} (uv)`;else if(e.kind===`download`&&e.url){let t=e.url.trim(),n=t.split(`/`).pop();a=`Download ${n&&n.length>0?n:t}`}else a=`Run installer`;return{id:r,kind:e.kind,label:a,bins:i}};if(a.every(e=>e.kind===`download`))return a.map((e,t)=>o(e,t));let s=b(a,t);return s?[o(s.spec,s.index)]:[]}function S(e,t,n,s,c){let f=y(e),p=i(t,f),m=p?.enabled===!1,h=!r(e,o(t)),g=e.metadata?.always===!0,_=t=>!!(process.env[t]||p?.env?.[t]||p?.apiKey&&e.metadata?.primaryEnv===t),v=e=>a(t,e),b=c&&c.size>0?c.has(e.skill.name):e.skill.source===`openclaw-bundled`,{emoji:S,homepage:C,required:w,missing:T,requirementsSatisfied:E,configChecks:D}=d({always:g,entry:e,hasLocalBin:u,remote:s?.remote,isEnvSatisfied:_,isConfigSatisfied:v}),O=!m&&!h&&E;return{name:e.skill.name,description:e.skill.description,source:e.skill.source,bundled:b,filePath:e.skill.filePath,baseDir:e.skill.baseDir,skillKey:f,primaryEnv:e.metadata?.primaryEnv,emoji:S,homepage:C,always:g,disabled:m,blockedByAllowlist:h,eligible:O,requirements:w,missing:T,configChecks:D,install:x(e,n??l(t))}}function C(e,t){let r=t?.managedSkillsDir??f.join(n,`skills`),i=_(),a=t?.entries??c(e,{config:t?.config,managedSkillsDir:r,bundledSkillsDir:i.dir}),o=l(t?.config);return{workspaceDir:e,managedSkillsDir:r,skills:a.map(e=>S(e,t?.config,o,t?.eligibility,i.names))}}export{v as n,C as t};
|
|
2
|
+
//# sourceMappingURL=skills-status-BWIugRCz.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{t}from"./subsystem-BLbY429l.js";import{t as n}from"./utils-CGdo13HV.js";import{a as r,c as i,o as a,s as o}from"./env-overrides-DHtB4kK3.js";import{c as s,i as c,t as l}from"./skills-CKTicUKS.js";import{f as u}from"./frontmatter-C7mzDNxd.js";import{t as d}from"./entry-status-CoXkbJcX.js";import f from"node:path";import{loadSkillsFromDir as p}from"@mariozechner/pi-coding-agent";const m=t(`skills`);let h=!1,g=null;function _(e={}){let t=s(e),n=new Set;if(!t)return h||(h=!0,m.warn(`Bundled skills directory could not be resolved; built-in skills may be missing.`)),{dir:t,names:n};if(g?.dir===t)return{dir:t,names:new Set(g.names)};let r=p({dir:t,source:`openclaw-bundled`});for(let e of r.skills)e.name.trim()&&n.add(e.name);return g={dir:t,names:new Set(n)},{dir:t,names:n}}var v=e({buildWorkspaceSkillStatus:()=>C});function y(e){return e.metadata?.skillKey??e.skill.name}function b(e,t){if(e.length===0)return;let n=e.map((e,t)=>({spec:e,index:t})),r=e=>n.find(t=>t.spec.kind===e),i=r(`brew`),a=r(`node`),o=r(`go`),s=r(`uv`),c=r(`download`),l=u(`brew`),d=[()=>t.preferBrew&&l?i:void 0,()=>s,()=>a,()=>l?i:void 0,()=>o,()=>c,()=>i,()=>n[0]];for(let e of d){let t=e();if(t)return t}}function x(e,t){let n=e.metadata?.os??[];if(n.length>0&&!n.includes(process.platform))return[];let r=e.metadata?.install??[];if(r.length===0)return[];let i=process.platform,a=r.filter(e=>{let t=e.os??[];return t.length===0||t.includes(i)});if(a.length===0)return[];let o=(e,n)=>{let r=(e.id??`${e.kind}-${n}`).trim(),i=e.bins??[],a=(e.label??``).trim();if(e.kind===`node`&&e.package&&(a=`Install ${e.package} (${t.nodeManager})`),!a)if(e.kind===`brew`&&e.formula)a=`Install ${e.formula} (brew)`;else if(e.kind===`node`&&e.package)a=`Install ${e.package} (${t.nodeManager})`;else if(e.kind===`go`&&e.module)a=`Install ${e.module} (go)`;else if(e.kind===`uv`&&e.package)a=`Install ${e.package} (uv)`;else if(e.kind===`download`&&e.url){let t=e.url.trim(),n=t.split(`/`).pop();a=`Download ${n&&n.length>0?n:t}`}else a=`Run installer`;return{id:r,kind:e.kind,label:a,bins:i}};if(a.every(e=>e.kind===`download`))return a.map((e,t)=>o(e,t));let s=b(a,t);return s?[o(s.spec,s.index)]:[]}function S(e,t,n,s,c){let f=y(e),p=i(t,f),m=p?.enabled===!1,h=!r(e,o(t)),g=e.metadata?.always===!0,_=t=>!!(process.env[t]||p?.env?.[t]||p?.apiKey&&e.metadata?.primaryEnv===t),v=e=>a(t,e),b=c&&c.size>0?c.has(e.skill.name):e.skill.source===`openclaw-bundled`,{emoji:S,homepage:C,required:w,missing:T,requirementsSatisfied:E,configChecks:D}=d({always:g,entry:e,hasLocalBin:u,remote:s?.remote,isEnvSatisfied:_,isConfigSatisfied:v}),O=!m&&!h&&E;return{name:e.skill.name,description:e.skill.description,source:e.skill.source,bundled:b,filePath:e.skill.filePath,baseDir:e.skill.baseDir,skillKey:f,primaryEnv:e.metadata?.primaryEnv,emoji:S,homepage:C,always:g,disabled:m,blockedByAllowlist:h,eligible:O,requirements:w,missing:T,configChecks:D,install:x(e,n??l(t))}}function C(e,t){let r=t?.managedSkillsDir??f.join(n,`skills`),i=_(),a=t?.entries??c(e,{config:t?.config,managedSkillsDir:r,bundledSkillsDir:i.dir}),o=l(t?.config);return{workspaceDir:e,managedSkillsDir:r,skills:a.map(e=>S(e,t?.config,o,t?.eligibility,i.names))}}export{v as n,C as t};
|
|
2
|
+
//# sourceMappingURL=skills-status-DswSl5aD.js.map
|
package/dist/sqlite-CILF3z9U.js
CHANGED
|
@@ -4,3 +4,4 @@ import{t as e}from"./subsystem-BLbY429l.js";import{t}from"./entry.js";import{r a
|
|
|
4
4
|
`),r=[],a=[];for(let e=0;e<n.length;e++){let t=n[e];if(!t.trim())continue;let o;try{o=JSON.parse(t)}catch{continue}if(!o||typeof o!=`object`||o.type!==`message`)continue;let s=o.message;if(!s||typeof s.role!=`string`||s.role!==`user`&&s.role!==`assistant`)continue;let c=de(s.content);if(!c)continue;let l=i(c,{mode:`tools`}),u=s.role===`user`?`User`:`Assistant`;r.push(`${u}: ${l}`),a.push(e+1)}let o=r.join(`
|
|
5
5
|
`);return{path:Q(e),absPath:e,mtimeMs:t.mtimeMs,size:t.size,hash:Y(o+`
|
|
6
6
|
`+a.join(`,`)),content:o,lineMap:a}}catch(t){return le.debug(`Failed reading session file ${e}: ${String(t)}`),null}}const pe=o(import.meta.url);function me(){t();try{return pe(`node:sqlite`)}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`SQLite support is unavailable in this Node runtime (missing node:sqlite). ${t}`,{cause:e})}}export{x as A,A as C,te as D,D as E,N as O,F as S,O as T,V as _,X as a,R as b,se as c,G as d,J as f,ce as g,ae as h,Q as i,C as k,U as l,oe as m,fe as n,re as o,W as p,ue as r,ie as s,me as t,Y as u,L as v,j as w,P as x,I as y};
|
|
7
|
+
//# sourceMappingURL=sqlite-CILF3z9U.js.map
|
package/dist/stagger-DmFYysrJ.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=/(Z|[+-]\d{2}:?\d{2})$/i,t=/^\d{4}-\d{2}-\d{2}$/,n=/^\d{4}-\d{2}-\d{2}T/;function r(r){return e.test(r)?r:t.test(r)?`${r}T00:00:00Z`:n.test(r)?`${r}Z`:r}function i(e){let t=e.trim();if(!t)return null;if(/^\d+$/.test(t)){let e=Number(t);if(Number.isFinite(e)&&e>0)return Math.floor(e)}let n=Date.parse(r(t));return Number.isFinite(n)?n:null}function a(e){return e.trim().split(/\s+/).filter(Boolean)}function o(e){let t=a(e);if(t.length===5){let[e,n]=t;return e===`0`&&n.includes(`*`)}if(t.length===6){let[e,n,r]=t;return e===`0`&&n===`0`&&r.includes(`*`)}return!1}function s(e){let t=typeof e==`number`?e:typeof e==`string`&&e.trim()?Number(e):NaN;if(Number.isFinite(t))return Math.max(0,Math.floor(t))}function c(e){return o(e)?3e5:void 0}function l(e){let t=s(e.staggerMs);if(t!==void 0)return t;let n=e.expr;return c(typeof n==`string`?n:``)??0}export{i,l as n,c as r,s as t};
|
|
2
|
+
//# sourceMappingURL=stagger-DmFYysrJ.js.map
|
package/dist/stagger-DxzgG2jd.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=/(Z|[+-]\d{2}:?\d{2})$/i,t=/^\d{4}-\d{2}-\d{2}$/,n=/^\d{4}-\d{2}-\d{2}T/;function r(r){return e.test(r)?r:t.test(r)?`${r}T00:00:00Z`:n.test(r)?`${r}Z`:r}function i(e){let t=e.trim();if(!t)return null;if(/^\d+$/.test(t)){let e=Number(t);if(Number.isFinite(e)&&e>0)return Math.floor(e)}let n=Date.parse(r(t));return Number.isFinite(n)?n:null}function a(e){return e.trim().split(/\s+/).filter(Boolean)}function o(e){let t=a(e);if(t.length===5){let[e,n]=t;return e===`0`&&n.includes(`*`)}if(t.length===6){let[e,n,r]=t;return e===`0`&&n===`0`&&r.includes(`*`)}return!1}function s(e){let t=typeof e==`number`?e:typeof e==`string`&&e.trim()?Number(e):NaN;if(Number.isFinite(t))return Math.max(0,Math.floor(t))}function c(e){return o(e)?3e5:void 0}function l(e){let t=s(e.staggerMs);if(t!==void 0)return t;let n=e.expr;return c(typeof n==`string`?n:``)??0}export{i,l as n,c as r,s as t};
|
|
2
|
+
//# sourceMappingURL=stagger-DxzgG2jd.js.map
|
package/dist/status-C-9fSiMn.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{i as e,t}from"./read-only-account-inspect-DBwAwB3_.js";async function n(t){if(t.plugin.status?.buildAccountSnapshot)return await t.plugin.status.buildAccountSnapshot({account:t.account,cfg:t.cfg,runtime:t.runtime,probe:t.probe,audit:t.audit});let n=t.plugin.config.isEnabled?t.plugin.config.isEnabled(t.account,t.cfg):t.account&&typeof t.account==`object`?t.account.enabled:void 0,r=t.account&&typeof t.account==`object`&&`configured`in t.account?t.account.configured:t.plugin.config.isConfigured?await t.plugin.config.isConfigured(t.account,t.cfg):void 0;return{accountId:t.accountId,enabled:n,configured:r,...e(t.account)}}async function r(e){let r=e.plugin.config.inspectAccount?.(e.cfg,e.accountId)??t({channelId:e.plugin.id,cfg:e.cfg,accountId:e.accountId});return r?await n({...e,account:r}):null}async function i(e){let r=e.plugin.config.inspectAccount?.(e.cfg,e.accountId)??t({channelId:e.plugin.id,cfg:e.cfg,accountId:e.accountId})??e.plugin.config.resolveAccount(e.cfg,e.accountId);return await n({...e,account:r})}export{r as n,i as t};
|
|
2
|
+
//# sourceMappingURL=status-C-9fSiMn.js.map
|
package/dist/status-CeBGmSAz.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{v as e,x as t}from"./pi-tools.policy-D40r0HmD.js";async function n(e){if(e.plugin.status?.buildAccountSnapshot)return await e.plugin.status.buildAccountSnapshot({account:e.account,cfg:e.cfg,runtime:e.runtime,probe:e.probe,audit:e.audit});let n=e.plugin.config.isEnabled?e.plugin.config.isEnabled(e.account,e.cfg):e.account&&typeof e.account==`object`?e.account.enabled:void 0,r=e.account&&typeof e.account==`object`&&`configured`in e.account?e.account.configured:e.plugin.config.isConfigured?await e.plugin.config.isConfigured(e.account,e.cfg):void 0;return{accountId:e.accountId,enabled:n,configured:r,...t(e.account)}}async function r(t){let r=t.plugin.config.inspectAccount?.(t.cfg,t.accountId)??e({channelId:t.plugin.id,cfg:t.cfg,accountId:t.accountId});return r?await n({...t,account:r}):null}async function i(t){let r=t.plugin.config.inspectAccount?.(t.cfg,t.accountId)??e({channelId:t.plugin.id,cfg:t.cfg,accountId:t.accountId})??t.plugin.config.resolveAccount(t.cfg,t.accountId);return await n({...t,account:r})}export{r as n,i as t};
|
|
2
|
+
//# sourceMappingURL=status-CeBGmSAz.js.map
|
package/dist/status-DYqPF0rB.js
CHANGED
|
@@ -6,3 +6,4 @@ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{A as t,k as n,y as r}f
|
|
|
6
6
|
`)),n.tick()})}const $=e=>`${(e/1e3).toFixed(e>=1e4?0:1)}k`,mt=e=>e==null||!Number.isFinite(e)?`unknown`:G(e,{decimals:1}),ht=e=>{let t=e.totalTokens,n=e.contextTokens,r=e.cacheRead,i=e.cacheWrite,a=``;if(t==null)a=n?`unknown/${$(n)} (?%)`:`unknown used`;else if(!n)a=`${$(t)} used`;else{let r=e.percentUsed==null?`?%`:`${e.percentUsed}%`;a=`${$(t)}/${$(n)} (${r})`}if(typeof r==`number`&&r>0){let e=typeof t==`number`?t:r+(typeof i==`number`?i:0),n=Math.round(r/e*100);a+=` · 🗄️ ${n}% cached`}return a},gt=e=>{if(!e)return null;let t=[],n=e.detail?.replace(/\s+/g,` `).trim()||``,r=e.missingUnit===!0&&n.toLowerCase().includes(`could not find service`);return n&&!r&&t.push(n),me({status:e.status,pid:e.pid,state:e.state,details:t})};async function _t(e){let t=await ft(e===`gateway`?pe():De(),e===`gateway`?`Daemon`:`Node`);return{label:t.label,installed:t.installed,managedByOpenClaw:t.managedByOpenClaw,externallyManaged:t.externallyManaged,loadedText:t.loadedText,runtimeShort:gt(t.runtime)}}async function vt(){return await _t(`gateway`)}async function yt(){return await _t(`node`)}async function bt(e){try{return await Re.access(e),!0}catch{return!1}}async function xt(e=g()){let t=z(e),n=Date.now(),r=[];for(let i of t.agents){let t=i.id,a=(()=>{try{return b(e,t)}catch{return null}})(),o=a==null?null:Ie.join(a,`BOOTSTRAP.md`),s=o==null?null:await bt(o),c=L(e.session?.store,{agentId:t}),l=(()=>{try{return _(c)}catch{return{}}})(),u=Object.entries(l).filter(([e])=>e!==`global`&&e!==`unknown`).map(([,e])=>e),d=u.length,f=u.reduce((e,t)=>Math.max(e,t?.updatedAt??0),0),p=f>0?f:null,m=p?n-p:null;r.push({id:t,name:i.name,workspaceDir:a,bootstrapPending:s,sessionsPath:c,sessionsCount:d,lastUpdatedAt:p,lastActiveAgeMs:m})}let i=r.reduce((e,t)=>e+t.sessionsCount,0),a=r.reduce((e,t)=>e+(t.bootstrapPending?1:0),0);return{defaultId:t.defaultId,agents:r,totalSessions:i,bootstrapPendingCount:a}}function St(e){return ge({cfg:e,mode:e.gateway?.mode===`remote`?`remote`:`local`,env:process.env})}async function Ct(e){for(let t of E()){let{defaultAccountId:n,account:r,enabled:i,configured:a}=await Te(t,e),o=t.config.describeAccount?t.config.describeAccount(r,e):{accountId:n,enabled:i,configured:a},s=t.status?.buildChannelSummary?await t.status.buildChannelSummary({account:r,cfg:e,defaultAccountId:n,snapshot:o}):void 0,c=s&&typeof s.linked==`boolean`?s.linked:null;if(c!==null)return{linked:c,authAgeMs:s&&typeof s.authAgeMs==`number`?s.authAgeMs:null,account:r,accountId:n,plugin:t}}return null}const wt=e=>{if(!e)return[];let t=[],n=e?.thinkingLevel;typeof n==`string`&&n.length>0&&t.push(`think:${n}`);let r=e?.verboseLevel;typeof r==`string`&&r.length>0&&t.push(`verbose:${r}`);let i=e?.reasoningLevel;typeof i==`string`&&i.length>0&&t.push(`reasoning:${i}`);let a=e?.elevatedLevel;typeof a==`string`&&a.length>0&&t.push(`elevated:${a}`),e?.systemSent&&t.push(`system`),e?.abortedLastRun&&t.push(`aborted`);let o=e?.sessionId;return typeof o==`string`&&o.length>0&&t.push(`id:${o}`),t};function Tt(e){return{...e,sessions:{...e.sessions,paths:[],defaults:{model:null,contextTokens:null},recent:[],byAgent:e.sessions.byAgent.map(e=>({...e,path:`[redacted]`,recent:[]}))}}}async function Et(e={}){let{includeSensitive:t=!0}=e,n=e.config??g(),r=await Ct(n),i=z(n),o=i.agents.map(e=>{let t=ye(n,e.id);return{agentId:e.id,enabled:t.enabled,every:t.every,everyMs:t.everyMs}}),s=await A(n,{colorize:!0,includeAllowFrom:!0,sourceConfig:e.sourceConfig}),l=O(c(n)),u=f({cfg:n,defaultProvider:h,defaultModel:m}),d=u.model??`claude-opus-4-6`,p=te({cfg:n,provider:u.provider??`anthropic`,model:d,contextTokensOverride:n.agents?.defaults?.contextTokens,fallbackContextTokens:2e5})??2e5,v=Date.now(),y=new Map,b=e=>{let t=y.get(e);if(t)return t;let n=_(e);return y.set(e,n),n},S=(e,t={})=>Object.entries(e).filter(([e])=>e!==`global`&&e!==`unknown`).map(([e,r])=>{let i=r?.updatedAt??null,o=i?v-i:null,s=ne(n,r,t.agentIdOverride),c=s.model??d??null,l=te({cfg:n,provider:s.provider,model:c,contextTokensOverride:r?.contextTokens,fallbackContextTokens:p??void 0})??null,u=a(r),f=typeof r?.totalTokens==`number`?r?.totalTokensFresh!==!1:!1,m=l!=null&&u!==void 0?Math.max(0,l-u):null,h=l&&l>0&&u!==void 0?Math.min(999,Math.round(u/l*100)):null,g=x(e)?.agentId;return{agentId:t.agentIdOverride??g,key:e,kind:R(e,r),sessionId:r?.sessionId,updatedAt:i,age:o,thinkingLevel:r?.thinkingLevel,verboseLevel:r?.verboseLevel,reasoningLevel:r?.reasoningLevel,elevatedLevel:r?.elevatedLevel,systemSent:r?.systemSent,abortedLastRun:r?.abortedLastRun,inputTokens:r?.inputTokens,outputTokens:r?.outputTokens,cacheRead:r?.cacheRead,cacheWrite:r?.cacheWrite,totalTokens:u??null,totalTokensFresh:f,remainingTokens:m,percentUsed:h,model:c,contextTokens:l,flags:wt(r)}}).sort((e,t)=>(t.updatedAt??0)-(e.updatedAt??0)),w=new Set,T=i.agents.map(e=>{let t=L(n.session?.store,{agentId:e.id});w.add(t);let r=S(b(t),{agentIdOverride:e.id});return{agentId:e.id,path:t,count:r.length,recent:r.slice(0,10)}}),E=Array.from(w).flatMap(e=>S(b(e))).toSorted((e,t)=>(t.updatedAt??0)-(e.updatedAt??0)),D=E.slice(0,10),k=E.length,j={runtimeVersion:C(process.env),linkChannel:r?{id:r.plugin.id,label:r.plugin.meta.label??`Channel`,linked:r.linked,authAgeMs:r.authAgeMs}:void 0,heartbeat:{defaultAgentId:i.defaultId,agents:o},channelSummary:s,queuedSystemEvents:l,sessions:{paths:Array.from(w),count:k,defaults:{model:d??null,contextTokens:p??null},recent:D,byAgent:T}};return t?j:Tt(j)}function Dt(e){return e.then(e=>({ok:!0,value:e}),e=>({ok:!1,error:e}))}function Ot(e){if(!e.ok)throw e.error;return e.value}function kt(e){if(e.plugins?.enabled===!1)return{enabled:!1,slot:null,reason:`plugins disabled`};let t=typeof e.plugins?.slots?.memory==`string`?e.plugins.slots.memory.trim():``;return t&&t.toLowerCase()===`none`?{enabled:!1,slot:null,reason:`plugins.slots.memory="none"`}:{enabled:!0,slot:t||`memory-core`}}async function At(e){let t=re({config:e.cfg}),n=e.cfg.gateway?.mode===`remote`,r=typeof e.cfg.gateway?.remote?.url==`string`?e.cfg.gateway.remote.url:``,i=n&&!r.trim(),a=n?`remote`:`local`,o=St(e.cfg),s=o.warning,c=i?null:await he({url:t.url,auth:o.auth,timeoutMs:Math.min(e.opts.all?5e3:2500,e.opts.timeoutMs??1e4)}).catch(()=>null);return s&&c?.ok===!1&&(c.error=c.error?`${c.error}; ${s}`:s,s=void 0),{gatewayConnection:t,remoteUrlMissing:i,gatewayMode:a,gatewayProbeAuth:o.auth,gatewayProbeAuthWarning:s,gatewayProbe:c}}async function jt(e){return e.gatewayReachable?await B({config:e.cfg,method:`channels.status`,params:{probe:!1,timeoutMs:Math.min(8e3,e.opts.timeoutMs??1e4)},timeoutMs:Math.min(e.opts.all?5e3:2500,e.opts.timeoutMs??1e4)}).catch(()=>null):null}async function Mt(e){let{cfg:t,agentStatus:n,memoryPlugin:r}=e;if(!r.enabled||r.slot!==`memory-core`)return null;let i=n.defaultId??`main`,{manager:a}=await K({cfg:t,agentId:i,purpose:`status`});if(!a)return null;try{await a.probeVectorAvailability()}catch{}let o=a.status();return await a.close?.().catch(()=>{}),{agentId:i,...o}}async function Nt(e){let t=await l(),{resolvedConfig:n,diagnostics:r}=await oe({config:t,commandName:`status --json`,targetIds:ae(),mode:`summary`}),i=Ge(),a=n.gateway?.tailscale?.mode??`off`,o=je({timeoutMs:e.all?6500:2500,fetchGit:!0,includeRegistry:!0}),s=xt(n),c=Et({config:n,sourceConfig:t}),u=a===`off`?Promise.resolve(null):v((e,t)=>D(e,t,{timeoutMs:1200,maxBuffer:2e5})).catch(()=>null),d=At({cfg:n,opts:e}),[f,p,m,h,g]=await Promise.all([u,o,s,d,c]),_=a!==`off`&&f?`https://${f}${se(n.gateway?.controlUi?.basePath)}`:null,{gatewayConnection:y,remoteUrlMissing:b,gatewayMode:x,gatewayProbeAuth:S,gatewayProbeAuthWarning:C,gatewayProbe:w}=h,T=w?.ok===!0,E=w?.presence?ze(w.presence):null,O=jt({cfg:n,gatewayReachable:T,opts:e}),k=kt(n),A=Mt({cfg:n,agentStatus:m,memoryPlugin:k}),[j,M]=await Promise.all([O,A]);return{cfg:n,sourceConfig:t,secretDiagnostics:r,osSummary:i,tailscaleMode:a,tailscaleDns:f,tailscaleHttpsUrl:_,update:p,gatewayConnection:y,remoteUrlMissing:b,gatewayMode:x,gatewayProbeAuth:S,gatewayProbeAuthWarning:C,gatewayProbe:w,gatewayReachable:T,gatewaySelf:E,channelIssues:j?de(j):[],agentStatus:m,channels:{rows:[],details:[]},summary:g,memory:M,memoryPlugin:k}}async function Pt(e,t){return e.json?await Nt({timeoutMs:e.timeoutMs,all:e.all}):await q({label:`Scanning status…`,total:10,enabled:!0},async t=>{t.setLabel(`Loading config…`);let n=await l(),{resolvedConfig:r,diagnostics:i}=await oe({config:n,commandName:`status`,targetIds:ae(),mode:`summary`}),a=Ge(),o=r.gateway?.tailscale?.mode??`off`,s=o===`off`?Promise.resolve(null):v((e,t)=>D(e,t,{timeoutMs:1200,maxBuffer:2e5})).catch(()=>null),c=Dt(je({timeoutMs:e.all?6500:2500,fetchGit:!0,includeRegistry:!0})),u=Dt(xt(r)),d=Dt(Et({config:r,sourceConfig:n}));t.tick(),t.setLabel(`Checking Tailscale…`);let f=await s,p=o!==`off`&&f?`https://${f}${se(r.gateway?.controlUi?.basePath)}`:null;t.tick(),t.setLabel(`Checking for updates…`);let m=Ot(await c);t.tick(),t.setLabel(`Resolving agents…`);let h=Ot(await u);t.tick(),t.setLabel(`Probing gateway…`);let{gatewayConnection:g,remoteUrlMissing:_,gatewayMode:y,gatewayProbeAuth:b,gatewayProbeAuthWarning:x,gatewayProbe:S}=await At({cfg:r,opts:e}),C=S?.ok===!0,w=S?.presence?ze(S.presence):null;t.tick(),t.setLabel(`Querying channel status…`);let T=await jt({cfg:r,gatewayReachable:C,opts:e}),E=T?de(T):[];t.tick(),t.setLabel(`Summarizing channels…`);let O=await nt(r,{showSecrets:process.env.CLAWDBOT_SHOW_SECRETS?.trim()!==`0`,sourceConfig:n});t.tick(),t.setLabel(`Checking memory…`);let k=kt(r),A=await Mt({cfg:r,agentStatus:h,memoryPlugin:k});t.tick(),t.setLabel(`Reading sessions…`);let j=Ot(await d);return t.tick(),t.setLabel(`Rendering…`),t.tick(),{cfg:r,sourceConfig:n,secretDiagnostics:i,osSummary:a,tailscaleMode:o,tailscaleDns:f,tailscaleHttpsUrl:p,update:m,gatewayConnection:g,remoteUrlMissing:_,gatewayMode:y,gatewayProbeAuth:b,gatewayProbeAuthWarning:x,gatewayProbe:S,gatewayReachable:C,gatewaySelf:w,channelIssues:E,agentStatus:h,channels:O,summary:j,memory:A,memoryPlugin:k}})}function Ft(e){let t=e=>{let t=e.trim();return!t||!/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test(t)?null:t},n=[e.error,e.closeReason].filter(e=>typeof e==`string`&&e.trim().length>0).join(` `);if(!n||!/pairing required/i.test(n))return null;let r=n.match(/requestId:\s*([^\s)]+)/i);return{requestId:(r&&r[1]?t(r[1]):null)||null}}async function It(e,n){if(e.all&&!e.json){await pt(n,{timeoutMs:e.timeoutMs});return}let a=await Pt({json:e.json,timeoutMs:e.timeoutMs,all:e.all},n),o=e.json?await Ee({config:a.cfg,sourceConfig:a.sourceConfig,deep:!1,includeFilesystem:!0,includeChannelSecurity:!0}):await q({label:`Running security audit…`,indeterminate:!0,enabled:!0},async()=>await Ee({config:a.cfg,sourceConfig:a.sourceConfig,deep:!1,includeFilesystem:!0,includeChannelSecurity:!0})),{cfg:s,osSummary:c,tailscaleMode:l,tailscaleDns:u,tailscaleHttpsUrl:d,update:f,gatewayConnection:p,remoteUrlMissing:m,gatewayMode:h,gatewayProbeAuth:g,gatewayProbeAuthWarning:_,gatewayProbe:v,gatewayReachable:b,gatewaySelf:x,channelIssues:S,agentStatus:C,channels:w,summary:T,secretDiagnostics:E,memory:D,memoryPlugin:O}=a,k=e.usage?await q({label:`Fetching usage snapshot…`,indeterminate:!0,enabled:e.json!==!0},async()=>await M({timeoutMs:e.timeoutMs})):void 0,A=e.deep?await q({label:`Checking gateway health…`,indeterminate:!0,enabled:e.json!==!0},async()=>await B({method:`health`,params:{probe:!0},timeoutMs:e.timeoutMs,config:a.cfg})):void 0,j=e.deep&&b?await B({method:`last-heartbeat`,params:{},timeoutMs:e.timeoutMs,config:a.cfg}).catch(()=>null):null,ee=Se({configChannel:Ce(s.update?.channel),installKind:f.installKind,gitTag:f.git?.tag??null,gitBranch:f.git?.branch??null});if(e.json){let[e,t]=await Promise.all([vt(),yt()]);n.log(JSON.stringify({...T,os:c,update:f,updateChannel:ee.channel,updateChannelSource:ee.source,memory:D,memoryPlugin:O,gateway:{mode:h,url:p.url,urlSource:p.urlSource,misconfigured:m,reachable:b,connectLatencyMs:v?.connectLatencyMs??null,self:x,error:v?.error??null,authWarning:_??null},gatewayService:e,nodeService:t,agents:C,securityAudit:o,secretDiagnostics:E,...A||k||j?{health:A,usage:k,lastHeartbeat:j}:{}},null,2));return}let P=e=>t.muted(e),F=e=>t.success(e),I=e=>t.warn(e);if(e.verbose){let e=re({config:a.cfg});n.log(r(`Gateway connection:`));for(let t of e.message.split(`
|
|
7
7
|
`))n.log(` ${t}`);n.log(``)}let L=ve();if(E.length>0){n.log(t.warn(`Secret diagnostics:`));for(let e of E)n.log(`- ${e}`);n.log(``)}let te=s.gateway?.controlUi?.enabled??!0?ce({port:i(s),bind:s.gateway?.bind,customBindHost:s.gateway?.customBindHost,basePath:s.gateway?.controlUi?.basePath}).httpUrl:`disabled`,ne=(()=>{let e=m?`fallback ${p.url}`:`${p.url}${p.urlSource?` (${p.urlSource})`:``}`,t=m?I(`misconfigured (remote.url missing)`):b?F(`reachable ${mt(v?.connectLatencyMs)}`):I(v?.error?`unreachable (${v.error})`:`unreachable`),n=b&&!m?` · auth ${Oe(g)}`:``,r=x?.host||x?.version||x?.platform?[x?.host?x.host:null,x?.ip?`(${x.ip})`:null,x?.version?`app ${x.version}`:null,x?.platform?x.platform:null].filter(Boolean).join(` `):null;return`${h} · ${e} · ${t}${n}${r?` · ${r}`:``}`})(),R=Ft({error:v?.error??null,closeReason:v?.close?.reason??null}),z=(()=>{let e=C.bootstrapPendingCount>0?`${C.bootstrapPendingCount} bootstrap file${C.bootstrapPendingCount===1?``:`s`} present`:`no bootstrap files`,t=C.agents.find(e=>e.id===C.defaultId),n=t?.lastActiveAgeMs==null?`unknown`:W(t.lastActiveAgeMs),r=t?` · default ${t.id} active ${n}`:``;return`${C.agents.length} · ${e} · sessions ${C.totalSessions}${r}`})(),[V,H]=await Promise.all([vt(),yt()]),U=(()=>{if(V.installed===!1)return`${V.label} not installed`;let e=V.managedByOpenClaw?`installed · `:``;return`${V.label} ${e}${V.loadedText}${V.runtimeShort?` · ${V.runtimeShort}`:``}`})(),ie=(()=>{if(H.installed===!1)return`${H.label} not installed`;let e=H.managedByOpenClaw?`installed · `:``;return`${H.label} ${e}${H.loadedText}${H.runtimeShort?` · ${H.runtimeShort}`:``}`})(),G=T.sessions.defaults,ae=G.contextTokens?` (${$(G.contextTokens)} ctx)`:``,oe=T.queuedSystemEvents.length>0?`${T.queuedSystemEvents.length} queued`:`none`,se=A?F(`enabled`):P(`skipped (use --deep)`),K=(()=>{let e=T.heartbeat.agents.map(e=>!e.enabled||!e.everyMs?`disabled (${e.agentId})`:`${e.every} (${e.agentId})`).filter(Boolean);return e.length>0?e.join(`, `):`disabled`})(),le=(()=>{if(!e.deep)return null;if(!b)return I(`unavailable`);if(!j)return P(`none`);let t=W(Date.now()-j.ts),n=j.channel??`unknown`,r=j.accountId?`account ${j.accountId}`:null;return[j.status,`${t} ago`,n,r].filter(Boolean).join(` · `)})(),ue=T.sessions.paths.length>1?`${T.sessions.paths.length} stores`:T.sessions.paths[0]??`unknown`,de=(()=>{if(!O.enabled)return P(`disabled${O.reason?` (${O.reason})`:``}`);if(!D){let e=O.slot?`plugin ${O.slot}`:`plugin`;return O.slot&&O.slot!==`memory-core`?`enabled (${e})`:P(`enabled (${e}) · unavailable`)}let e=[],t=D.dirty?` · ${I(`dirty`)}`:``;e.push(`${D.files} files · ${D.chunks} chunks${t}`),D.sources?.length&&e.push(`sources ${D.sources.join(`, `)}`),O.slot&&e.push(`plugin ${O.slot}`);let n=(e,t)=>e===`ok`?F(t):e===`warn`?I(t):P(t),r=D.vector;if(r){let t=Be(r),i=t.state===`disabled`?`vector off`:`vector ${t.state}`;e.push(n(t.tone,i))}let i=D.fts;if(i){let t=Ve(i),r=t.state===`disabled`?`fts off`:`fts ${t.state}`;e.push(n(t.tone,r))}let a=D.cache;if(a){let t=He(a);e.push(n(t.tone,t.text))}return e.join(` · `)})(),fe=ke(f),pe=Ae(f).replace(/^Update:\s*/i,``),me=ee.label,he=xe(f),ge=[{Item:`Dashboard`,Value:te},{Item:`OS`,Value:`${c.label} · node ${process.versions.node}`},{Item:`Tailscale`,Value:l===`off`?P(`off`):u&&d?`${l} · ${u} · ${d}`:I(`${l} · magicdns unknown`)},{Item:`Channel`,Value:me},...he?[{Item:`Git`,Value:he}]:[],{Item:`Update`,Value:fe.available?I(`available · ${pe}`):pe},{Item:`Gateway`,Value:ne},..._?[{Item:`Gateway auth warning`,Value:I(_)}]:[],{Item:`Gateway service`,Value:U},{Item:`Node service`,Value:ie},{Item:`Agents`,Value:z},{Item:`Memory`,Value:de},{Item:`Probes`,Value:se},{Item:`Events`,Value:oe},{Item:`Heartbeat`,Value:K},...le?[{Item:`Last heartbeat`,Value:le}]:[],{Item:`Sessions`,Value:`${T.sessions.count} active · default ${G.model??`unknown`}${ae} · ${ue}`}];n.log(t.heading(`OpenClaw status`)),n.log(``),n.log(t.heading(`Overview`)),n.log(J({width:L,columns:[{key:`Item`,header:`Item`,minWidth:12},{key:`Value`,header:`Value`,flex:!0,minWidth:32}],rows:ge}).trimEnd()),R&&(n.log(``),n.log(t.warn(`Gateway pairing approval required.`)),R.requestId&&n.log(t.muted(`Recovery: ${y(`openclaw devices approve ${R.requestId}`)}`)),n.log(t.muted(`Fallback: ${y(`openclaw devices approve --latest`)}`)),n.log(t.muted(`Inspect: ${y(`openclaw devices list`)}`))),n.log(``),n.log(t.heading(`Security audit`)),n.log(t.muted(`Summary: ${(e=>[t.error(`${e.critical} critical`),t.warn(`${e.warn} warn`),t.muted(`${e.info} info`)].join(` · `))(o.summary)}`));let _e=o.findings.filter(e=>e.severity===`critical`||e.severity===`warn`);if(_e.length===0)n.log(t.muted(`No critical or warn findings detected.`));else{let e=e=>e===`critical`?t.error(`CRITICAL`):e===`warn`?t.warn(`WARN`):t.muted(`INFO`),r=e=>e===`critical`?0:e===`warn`?1:2,i=[..._e].toSorted((e,t)=>r(e.severity)-r(t.severity)),a=i.slice(0,6);for(let r of a)n.log(` ${e(r.severity)} ${r.title}`),n.log(` ${Ne(r.detail.replaceAll(`
|
|
8
8
|
`,` `),160)}`),r.remediation?.trim()&&n.log(` ${t.muted(`Fix: ${r.remediation.trim()}`)}`);i.length>a.length&&n.log(t.muted(`… +${i.length-a.length} more`))}n.log(t.muted(`Full report: ${y(`openclaw security audit`)}`)),n.log(t.muted(`Deep probe: ${y(`openclaw security audit --deep`)}`)),n.log(``),n.log(t.heading(`Channels`));let ye=lt(S);if(n.log(J({width:L,columns:[{key:`Channel`,header:`Channel`,minWidth:10},{key:`Enabled`,header:`Enabled`,minWidth:7},{key:`State`,header:`State`,minWidth:8},{key:`Detail`,header:`Detail`,flex:!0,minWidth:24}],rows:w.rows.map(e=>{let n=ye.get(e.id)??[],r=e.state===`off`?`off`:n.length>0?`warn`:e.state,i=n.length>0?` · ${I(`gateway: ${Ne(n[0]?.message??`issue`,84)}`)}`:``;return{Channel:e.label,Enabled:e.enabled?F(`ON`):P(`OFF`),State:r===`ok`?F(`OK`):r===`warn`?I(`WARN`):r===`off`?P(`OFF`):t.accentDim(`SETUP`),Detail:`${e.detail}${i}`}})}).trimEnd()),n.log(``),n.log(t.heading(`Sessions`)),n.log(J({width:L,columns:[{key:`Key`,header:`Key`,minWidth:20,flex:!0},{key:`Kind`,header:`Kind`,minWidth:6},{key:`Age`,header:`Age`,minWidth:9},{key:`Model`,header:`Model`,minWidth:14},{key:`Tokens`,header:`Tokens`,minWidth:16}],rows:T.sessions.recent.length>0?T.sessions.recent.map(e=>({Key:Ne(e.key,32),Kind:e.kind,Age:e.updatedAt?W(e.age):`no activity`,Model:e.model??`unknown`,Tokens:ht(e)})):[{Key:P(`no sessions yet`),Kind:``,Age:``,Model:``,Tokens:``}]}).trimEnd()),T.queuedSystemEvents.length>0&&(n.log(``),n.log(t.heading(`System events`)),n.log(J({width:L,columns:[{key:`Event`,header:`Event`,flex:!0,minWidth:24}],rows:T.queuedSystemEvents.slice(0,5).map(e=>({Event:e}))}).trimEnd()),T.queuedSystemEvents.length>5&&n.log(P(`… +${T.queuedSystemEvents.length-5} more`))),A){n.log(``),n.log(t.heading(`Health`));let e=[];e.push({Item:`Gateway`,Status:F(`reachable`),Detail:`${A.durationMs}ms`});for(let t of be(A,{accountMode:`all`})){let n=t.indexOf(`:`);if(n===-1)continue;let r=t.slice(0,n).trim(),i=t.slice(n+1).trim(),a=i.toLowerCase(),o=a.startsWith(`ok`)?F(`OK`):a.startsWith(`failed`)?I(`WARN`):a.startsWith(`not configured`)?P(`OFF`):a.startsWith(`configured`)?F(`OK`):a.startsWith(`linked`)?F(`LINKED`):a.startsWith(`not linked`)?I(`UNLINKED`):I(`WARN`);e.push({Item:r,Status:o,Detail:i})}n.log(J({width:L,columns:[{key:`Item`,header:`Item`,minWidth:10},{key:`Status`,header:`Status`,minWidth:8},{key:`Detail`,header:`Detail`,flex:!0,minWidth:28}],rows:e}).trimEnd())}if(k){n.log(``),n.log(t.heading(`Usage`));for(let e of N(k))n.log(e)}n.log(``),n.log(`FAQ: https://docs.openclaw.ai/faq`),n.log(`Troubleshooting: https://docs.openclaw.ai/troubleshooting`),n.log(``);let we=Me(f);we&&(n.log(t.warn(we)),n.log(``)),n.log(`Next steps:`),n.log(` Need to share? ${y(`openclaw status --all`)}`),n.log(` Need to debug live? ${y(`openclaw logs --follow`)}`),b?n.log(` Need to test channels? ${y(`openclaw status --deep`)}`):n.log(` Fix reachability first: ${y(`openclaw gateway probe`)}`)}var Lt=e({statusCommand:()=>It});export{ze as i,It as n,Et as r,Lt as t};
|
|
9
|
+
//# sourceMappingURL=status-DYqPF0rB.js.map
|
package/dist/status-JIPeVrsc.js
CHANGED
|
@@ -6,3 +6,4 @@ import{u as e}from"./paths-B4IRk3wi.js";import{A as t,k as n,y as r}from"./subsy
|
|
|
6
6
|
`)),r.tick()})}const $=e=>`${(e/1e3).toFixed(e>=1e4?0:1)}k`,pt=e=>e==null||!Number.isFinite(e)?`unknown`:re(e,{decimals:1}),mt=e=>{let t=e.totalTokens,n=e.contextTokens,r=e.cacheRead,i=e.cacheWrite,a=``;if(t==null)a=n?`unknown/${$(n)} (?%)`:`unknown used`;else if(!n)a=`${$(t)} used`;else{let r=e.percentUsed==null?`?%`:`${e.percentUsed}%`;a=`${$(t)}/${$(n)} (${r})`}if(typeof r==`number`&&r>0){let e=typeof t==`number`?t:r+(typeof i==`number`?i:0),n=Math.round(r/e*100);a+=` · 🗄️ ${n}% cached`}return a},ht=e=>{if(!e)return null;let t=[],n=e.detail?.replace(/\s+/g,` `).trim()||``,r=e.missingUnit===!0&&n.toLowerCase().includes(`could not find service`);return n&&!r&&t.push(n),me({status:e.status,pid:e.pid,state:e.state,details:t})};async function gt(e){let t=await dt(e===`gateway`?pe():Ee(),e===`gateway`?`Daemon`:`Node`);return{label:t.label,installed:t.installed,managedByOpenClaw:t.managedByOpenClaw,externallyManaged:t.externallyManaged,loadedText:t.loadedText,runtimeShort:ht(t.runtime)}}async function _t(){return await gt(`gateway`)}async function vt(){return await gt(`node`)}async function yt(e){try{return await Ie.access(e),!0}catch{return!1}}async function bt(e=v()){let t=S(e),n=Date.now(),r=[];for(let i of t.agents){let t=i.id,a=(()=>{try{return P(e,t)}catch{return null}})(),o=a==null?null:Fe.join(a,`BOOTSTRAP.md`),c=o==null?null:await yt(o),l=z(e.session?.store,{agentId:t}),u=(()=>{try{return s(l)}catch{return{}}})(),d=Object.entries(u).filter(([e])=>e!==`global`&&e!==`unknown`).map(([,e])=>e),f=d.length,p=d.reduce((e,t)=>Math.max(e,t?.updatedAt??0),0),m=p>0?p:null,h=m?n-m:null;r.push({id:t,name:i.name,workspaceDir:a,bootstrapPending:c,sessionsPath:l,sessionsCount:f,lastUpdatedAt:m,lastActiveAgeMs:h})}let i=r.reduce((e,t)=>e+t.sessionsCount,0),a=r.reduce((e,t)=>e+(t.bootstrapPending?1:0),0);return{defaultId:t.defaultId,agents:r,totalSessions:i,bootstrapPendingCount:a}}function xt(e){return q({cfg:e,mode:e.gateway?.mode===`remote`?`remote`:`local`,env:process.env})}async function St(e){for(let t of ee()){let{defaultAccountId:n,account:r,enabled:i,configured:a}=await we(t,e),o=t.config.describeAccount?t.config.describeAccount(r,e):{accountId:n,enabled:i,configured:a},s=t.status?.buildChannelSummary?await t.status.buildChannelSummary({account:r,cfg:e,defaultAccountId:n,snapshot:o}):void 0,c=s&&typeof s.linked==`boolean`?s.linked:null;if(c!==null)return{linked:c,authAgeMs:s&&typeof s.authAgeMs==`number`?s.authAgeMs:null,account:r,accountId:n,plugin:t}}return null}const Ct=e=>{if(!e)return[];let t=[],n=e?.thinkingLevel;typeof n==`string`&&n.length>0&&t.push(`think:${n}`);let r=e?.verboseLevel;typeof r==`string`&&r.length>0&&t.push(`verbose:${r}`);let i=e?.reasoningLevel;typeof i==`string`&&i.length>0&&t.push(`reasoning:${i}`);let a=e?.elevatedLevel;typeof a==`string`&&a.length>0&&t.push(`elevated:${a}`),e?.systemSent&&t.push(`system`),e?.abortedLastRun&&t.push(`aborted`);let o=e?.sessionId;return typeof o==`string`&&o.length>0&&t.push(`id:${o}`),t};function wt(e){return{...e,sessions:{...e.sessions,paths:[],defaults:{model:null,contextTokens:null},recent:[],byAgent:e.sessions.byAgent.map(e=>({...e,path:`[redacted]`,recent:[]}))}}}async function Tt(e={}){let{includeSensitive:t=!0}=e,n=e.config??v(),r=await St(n),a=S(n),c=a.agents.map(e=>{let t=ve(n,e.id);return{agentId:e.id,enabled:t.enabled,every:t.every,everyMs:t.everyMs}}),u=await j(n,{colorize:!0,includeAllowFrom:!0,sourceConfig:e.sourceConfig}),d=w(i(n)),f=h({cfg:n,defaultProvider:_,defaultModel:m}),p=f.model??`claude-opus-4-6`,g=k({cfg:n,provider:f.provider??`anthropic`,model:p,contextTokensOverride:n.agents?.defaults?.contextTokens,fallbackContextTokens:2e5})??2e5,y=Date.now(),b=new Map,T=e=>{let t=b.get(e);if(t)return t;let n=s(e);return b.set(e,n),n},E=(e,t={})=>Object.entries(e).filter(([e])=>e!==`global`&&e!==`unknown`).map(([e,r])=>{let i=r?.updatedAt??null,a=i?y-i:null,s=C(n,r,t.agentIdOverride),c=s.model??p??null,l=k({cfg:n,provider:s.provider,model:c,contextTokensOverride:r?.contextTokens,fallbackContextTokens:g??void 0})??null,u=o(r),d=typeof r?.totalTokens==`number`?r?.totalTokensFresh!==!1:!1,f=l!=null&&u!==void 0?Math.max(0,l-u):null,m=l&&l>0&&u!==void 0?Math.min(999,Math.round(u/l*100)):null,h=F(e)?.agentId;return{agentId:t.agentIdOverride??h,key:e,kind:x(e,r),sessionId:r?.sessionId,updatedAt:i,age:a,thinkingLevel:r?.thinkingLevel,verboseLevel:r?.verboseLevel,reasoningLevel:r?.reasoningLevel,elevatedLevel:r?.elevatedLevel,systemSent:r?.systemSent,abortedLastRun:r?.abortedLastRun,inputTokens:r?.inputTokens,outputTokens:r?.outputTokens,cacheRead:r?.cacheRead,cacheWrite:r?.cacheWrite,totalTokens:u??null,totalTokensFresh:d,remainingTokens:f,percentUsed:m,model:c,contextTokens:l,flags:Ct(r)}}).sort((e,t)=>(t.updatedAt??0)-(e.updatedAt??0)),D=new Set,O=a.agents.map(e=>{let t=z(n.session?.store,{agentId:e.id});D.add(t);let r=E(T(t),{agentIdOverride:e.id});return{agentId:e.id,path:t,count:r.length,recent:r.slice(0,10)}}),A=Array.from(D).flatMap(e=>E(T(e))).toSorted((e,t)=>(t.updatedAt??0)-(e.updatedAt??0)),M=A.slice(0,10),N=A.length,P={runtimeVersion:l(process.env),linkChannel:r?{id:r.plugin.id,label:r.plugin.meta.label??`Channel`,linked:r.linked,authAgeMs:r.authAgeMs}:void 0,heartbeat:{defaultAgentId:a.defaultId,agents:c},channelSummary:u,queuedSystemEvents:d,sessions:{paths:Array.from(D),count:N,defaults:{model:p??null,contextTokens:g??null},recent:M,byAgent:O}};return t?P:wt(P)}function Et(e){return e.then(e=>({ok:!0,value:e}),e=>({ok:!1,error:e}))}function Dt(e){if(!e.ok)throw e.error;return e.value}function Ot(e){if(e.plugins?.enabled===!1)return{enabled:!1,slot:null,reason:`plugins disabled`};let t=typeof e.plugins?.slots?.memory==`string`?e.plugins.slots.memory.trim():``;return t&&t.toLowerCase()===`none`?{enabled:!1,slot:null,reason:`plugins.slots.memory="none"`}:{enabled:!0,slot:t||`memory-core`}}async function kt(e){let t=ne({config:e.cfg}),n=e.cfg.gateway?.mode===`remote`,r=typeof e.cfg.gateway?.remote?.url==`string`?e.cfg.gateway.remote.url:``,i=n&&!r.trim(),a=n?`remote`:`local`,o=xt(e.cfg),s=o.warning,c=i?null:await he({url:t.url,auth:o.auth,timeoutMs:Math.min(e.opts.all?5e3:2500,e.opts.timeoutMs??1e4)}).catch(()=>null);return s&&c?.ok===!1&&(c.error=c.error?`${c.error}; ${s}`:s,s=void 0),{gatewayConnection:t,remoteUrlMissing:i,gatewayMode:a,gatewayProbeAuth:o.auth,gatewayProbeAuthWarning:s,gatewayProbe:c}}async function At(e){return e.gatewayReachable?await B({config:e.cfg,method:`channels.status`,params:{probe:!1,timeoutMs:Math.min(8e3,e.opts.timeoutMs??1e4)},timeoutMs:Math.min(e.opts.all?5e3:2500,e.opts.timeoutMs??1e4)}).catch(()=>null):null}async function jt(e){let{cfg:t,agentStatus:n,memoryPlugin:r}=e;if(!r.enabled||r.slot!==`memory-core`)return null;let i=n.defaultId??`main`,{manager:a}=await ce({cfg:t,agentId:i,purpose:`status`});if(!a)return null;try{await a.probeVectorAvailability()}catch{}let o=a.status();return await a.close?.().catch(()=>{}),{agentId:i,...o}}async function Mt(e){let t=await d(),{resolvedConfig:n,diagnostics:r}=await ae({config:t,commandName:`status --json`,targetIds:G(),mode:`summary`}),i=We(),a=n.gateway?.tailscale?.mode??`off`,o=Ae({timeoutMs:e.all?6500:2500,fetchGit:!0,includeRegistry:!0}),s=bt(n),c=Tt({config:n,sourceConfig:t}),l=a===`off`?Promise.resolve(null):u((e,t)=>te(e,t,{timeoutMs:1200,maxBuffer:2e5})).catch(()=>null),f=kt({cfg:n,opts:e}),[p,m,h,g,_]=await Promise.all([l,o,s,f,c]),v=a!==`off`&&p?`https://${p}${oe(n.gateway?.controlUi?.basePath)}`:null,{gatewayConnection:y,remoteUrlMissing:b,gatewayMode:x,gatewayProbeAuth:S,gatewayProbeAuthWarning:C,gatewayProbe:w}=g,T=w?.ok===!0,E=w?.presence?Re(w.presence):null,D=At({cfg:n,gatewayReachable:T,opts:e}),O=Ot(n),k=jt({cfg:n,agentStatus:h,memoryPlugin:O}),[A,j]=await Promise.all([D,k]);return{cfg:n,sourceConfig:t,secretDiagnostics:r,osSummary:i,tailscaleMode:a,tailscaleDns:p,tailscaleHttpsUrl:v,update:m,gatewayConnection:y,remoteUrlMissing:b,gatewayMode:x,gatewayProbeAuth:S,gatewayProbeAuthWarning:C,gatewayProbe:w,gatewayReachable:T,gatewaySelf:E,channelIssues:A?de(A):[],agentStatus:h,channels:{rows:[],details:[]},summary:_,memory:j,memoryPlugin:O}}async function Nt(e,t){return e.json?await Mt({timeoutMs:e.timeoutMs,all:e.all}):await K({label:`Scanning status…`,total:10,enabled:!0},async t=>{t.setLabel(`Loading config…`);let n=await d(),{resolvedConfig:r,diagnostics:i}=await ae({config:n,commandName:`status`,targetIds:G(),mode:`summary`}),a=We(),o=r.gateway?.tailscale?.mode??`off`,s=o===`off`?Promise.resolve(null):u((e,t)=>te(e,t,{timeoutMs:1200,maxBuffer:2e5})).catch(()=>null),c=Et(Ae({timeoutMs:e.all?6500:2500,fetchGit:!0,includeRegistry:!0})),l=Et(bt(r)),f=Et(Tt({config:r,sourceConfig:n}));t.tick(),t.setLabel(`Checking Tailscale…`);let p=await s,m=o!==`off`&&p?`https://${p}${oe(r.gateway?.controlUi?.basePath)}`:null;t.tick(),t.setLabel(`Checking for updates…`);let h=Dt(await c);t.tick(),t.setLabel(`Resolving agents…`);let g=Dt(await l);t.tick(),t.setLabel(`Probing gateway…`);let{gatewayConnection:_,remoteUrlMissing:v,gatewayMode:y,gatewayProbeAuth:b,gatewayProbeAuthWarning:x,gatewayProbe:S}=await kt({cfg:r,opts:e}),C=S?.ok===!0,w=S?.presence?Re(S.presence):null;t.tick(),t.setLabel(`Querying channel status…`);let T=await At({cfg:r,gatewayReachable:C,opts:e}),E=T?de(T):[];t.tick(),t.setLabel(`Summarizing channels…`);let D=await tt(r,{showSecrets:process.env.CLAWDBOT_SHOW_SECRETS?.trim()!==`0`,sourceConfig:n});t.tick(),t.setLabel(`Checking memory…`);let O=Ot(r),k=await jt({cfg:r,agentStatus:g,memoryPlugin:O});t.tick(),t.setLabel(`Reading sessions…`);let A=Dt(await f);return t.tick(),t.setLabel(`Rendering…`),t.tick(),{cfg:r,sourceConfig:n,secretDiagnostics:i,osSummary:a,tailscaleMode:o,tailscaleDns:p,tailscaleHttpsUrl:m,update:h,gatewayConnection:_,remoteUrlMissing:v,gatewayMode:y,gatewayProbeAuth:b,gatewayProbeAuthWarning:x,gatewayProbe:S,gatewayReachable:C,gatewaySelf:w,channelIssues:E,agentStatus:g,channels:D,summary:A,memory:k,memoryPlugin:O}})}function Pt(e){let t=e=>{let t=e.trim();return!t||!/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test(t)?null:t},n=[e.error,e.closeReason].filter(e=>typeof e==`string`&&e.trim().length>0).join(` `);if(!n||!/pairing required/i.test(n))return null;let r=n.match(/requestId:\s*([^\s)]+)/i);return{requestId:(r&&r[1]?t(r[1]):null)||null}}async function Ft(n,i){if(n.all&&!n.json){await ft(i,{timeoutMs:n.timeoutMs});return}let a=await Nt({json:n.json,timeoutMs:n.timeoutMs,all:n.all},i),o=n.json?await Te({config:a.cfg,sourceConfig:a.sourceConfig,deep:!1,includeFilesystem:!0,includeChannelSecurity:!0}):await K({label:`Running security audit…`,indeterminate:!0,enabled:!0},async()=>await Te({config:a.cfg,sourceConfig:a.sourceConfig,deep:!1,includeFilesystem:!0,includeChannelSecurity:!0})),{cfg:s,osSummary:c,tailscaleMode:l,tailscaleDns:u,tailscaleHttpsUrl:d,update:f,gatewayConnection:p,remoteUrlMissing:m,gatewayMode:h,gatewayProbeAuth:g,gatewayProbeAuthWarning:_,gatewayProbe:v,gatewayReachable:y,gatewaySelf:b,channelIssues:x,agentStatus:S,channels:C,summary:w,secretDiagnostics:T,memory:E,memoryPlugin:O}=a,k=n.usage?await K({label:`Fetching usage snapshot…`,indeterminate:!0,enabled:n.json!==!0},async()=>await D({timeoutMs:n.timeoutMs})):void 0,j=n.deep?await K({label:`Checking gateway health…`,indeterminate:!0,enabled:n.json!==!0},async()=>await B({method:`health`,params:{probe:!0},timeoutMs:n.timeoutMs,config:a.cfg})):void 0,M=n.deep&&y?await B({method:`last-heartbeat`,params:{},timeoutMs:n.timeoutMs,config:a.cfg}).catch(()=>null):null,N=xe({configChannel:Se(s.update?.channel),installKind:f.installKind,gitTag:f.git?.tag??null,gitBranch:f.git?.branch??null});if(n.json){let[e,t]=await Promise.all([_t(),vt()]);i.log(JSON.stringify({...w,os:c,update:f,updateChannel:N.channel,updateChannelSource:N.source,memory:E,memoryPlugin:O,gateway:{mode:h,url:p.url,urlSource:p.urlSource,misconfigured:m,reachable:y,connectLatencyMs:v?.connectLatencyMs??null,self:b,error:v?.error??null,authWarning:_??null},gatewayService:e,nodeService:t,agents:S,securityAudit:o,secretDiagnostics:T,...j||k||M?{health:j,usage:k,lastHeartbeat:M}:{}},null,2));return}let P=e=>t.muted(e),F=e=>t.success(e),I=e=>t.warn(e);if(n.verbose){let e=ne({config:a.cfg});i.log(r(`Gateway connection:`));for(let t of e.message.split(`
|
|
7
7
|
`))i.log(` ${t}`);i.log(``)}let R=_e();if(T.length>0){i.log(t.warn(`Secret diagnostics:`));for(let e of T)i.log(`- ${e}`);i.log(``)}let ee=s.gateway?.controlUi?.enabled??!0?se({port:e(s),bind:s.gateway?.bind,customBindHost:s.gateway?.customBindHost,basePath:s.gateway?.controlUi?.basePath}).httpUrl:`disabled`,te=(()=>{let e=m?`fallback ${p.url}`:`${p.url}${p.urlSource?` (${p.urlSource})`:``}`,t=m?I(`misconfigured (remote.url missing)`):y?F(`reachable ${pt(v?.connectLatencyMs)}`):I(v?.error?`unreachable (${v.error})`:`unreachable`),n=y&&!m?` · auth ${De(g)}`:``,r=b?.host||b?.version||b?.platform?[b?.host?b.host:null,b?.ip?`(${b.ip})`:null,b?.version?`app ${b.version}`:null,b?.platform?b.platform:null].filter(Boolean).join(` `):null;return`${h} · ${e} · ${t}${n}${r?` · ${r}`:``}`})(),z=Pt({error:v?.error??null,closeReason:v?.close?.reason??null}),V=(()=>{let e=S.bootstrapPendingCount>0?`${S.bootstrapPendingCount} bootstrap file${S.bootstrapPendingCount===1?``:`s`} present`:`no bootstrap files`,t=S.agents.find(e=>e.id===S.defaultId),n=t?.lastActiveAgeMs==null?`unknown`:W(t.lastActiveAgeMs),r=t?` · default ${t.id} active ${n}`:``;return`${S.agents.length} · ${e} · sessions ${S.totalSessions}${r}`})(),[H,U]=await Promise.all([_t(),vt()]),re=(()=>{if(H.installed===!1)return`${H.label} not installed`;let e=H.managedByOpenClaw?`installed · `:``;return`${H.label} ${e}${H.loadedText}${H.runtimeShort?` · ${H.runtimeShort}`:``}`})(),ie=(()=>{if(U.installed===!1)return`${U.label} not installed`;let e=U.managedByOpenClaw?`installed · `:``;return`${U.label} ${e}${U.loadedText}${U.runtimeShort?` · ${U.runtimeShort}`:``}`})(),G=w.sessions.defaults,ae=G.contextTokens?` (${$(G.contextTokens)} ctx)`:``,oe=w.queuedSystemEvents.length>0?`${w.queuedSystemEvents.length} queued`:`none`,ce=j?F(`enabled`):P(`skipped (use --deep)`),le=(()=>{let e=w.heartbeat.agents.map(e=>!e.enabled||!e.everyMs?`disabled (${e.agentId})`:`${e.every} (${e.agentId})`).filter(Boolean);return e.length>0?e.join(`, `):`disabled`})(),ue=(()=>{if(!n.deep)return null;if(!y)return I(`unavailable`);if(!M)return P(`none`);let e=W(Date.now()-M.ts),t=M.channel??`unknown`,r=M.accountId?`account ${M.accountId}`:null;return[M.status,`${e} ago`,t,r].filter(Boolean).join(` · `)})(),de=w.sessions.paths.length>1?`${w.sessions.paths.length} stores`:w.sessions.paths[0]??`unknown`,fe=(()=>{if(!O.enabled)return P(`disabled${O.reason?` (${O.reason})`:``}`);if(!E){let e=O.slot?`plugin ${O.slot}`:`plugin`;return O.slot&&O.slot!==`memory-core`?`enabled (${e})`:P(`enabled (${e}) · unavailable`)}let e=[],t=E.dirty?` · ${I(`dirty`)}`:``;e.push(`${E.files} files · ${E.chunks} chunks${t}`),E.sources?.length&&e.push(`sources ${E.sources.join(`, `)}`),O.slot&&e.push(`plugin ${O.slot}`);let n=(e,t)=>e===`ok`?F(t):e===`warn`?I(t):P(t),r=E.vector;if(r){let t=ze(r),i=t.state===`disabled`?`vector off`:`vector ${t.state}`;e.push(n(t.tone,i))}let i=E.fts;if(i){let t=Be(i),r=t.state===`disabled`?`fts off`:`fts ${t.state}`;e.push(n(t.tone,r))}let a=E.cache;if(a){let t=Ve(a);e.push(n(t.tone,t.text))}return e.join(` · `)})(),pe=Oe(f),me=ke(f).replace(/^Update:\s*/i,``),he=N.label,q=be(f),ge=[{Item:`Dashboard`,Value:ee},{Item:`OS`,Value:`${c.label} · node ${process.versions.node}`},{Item:`Tailscale`,Value:l===`off`?P(`off`):u&&d?`${l} · ${u} · ${d}`:I(`${l} · magicdns unknown`)},{Item:`Channel`,Value:he},...q?[{Item:`Git`,Value:q}]:[],{Item:`Update`,Value:pe.available?I(`available · ${me}`):me},{Item:`Gateway`,Value:te},..._?[{Item:`Gateway auth warning`,Value:I(_)}]:[],{Item:`Gateway service`,Value:re},{Item:`Node service`,Value:ie},{Item:`Agents`,Value:V},{Item:`Memory`,Value:fe},{Item:`Probes`,Value:ce},{Item:`Events`,Value:oe},{Item:`Heartbeat`,Value:le},...ue?[{Item:`Last heartbeat`,Value:ue}]:[],{Item:`Sessions`,Value:`${w.sessions.count} active · default ${G.model??`unknown`}${ae} · ${de}`}];i.log(t.heading(`OpenClaw status`)),i.log(``),i.log(t.heading(`Overview`)),i.log(J({width:R,columns:[{key:`Item`,header:`Item`,minWidth:12},{key:`Value`,header:`Value`,flex:!0,minWidth:32}],rows:ge}).trimEnd()),z&&(i.log(``),i.log(t.warn(`Gateway pairing approval required.`)),z.requestId&&i.log(t.muted(`Recovery: ${L(`openclaw devices approve ${z.requestId}`)}`)),i.log(t.muted(`Fallback: ${L(`openclaw devices approve --latest`)}`)),i.log(t.muted(`Inspect: ${L(`openclaw devices list`)}`))),i.log(``),i.log(t.heading(`Security audit`)),i.log(t.muted(`Summary: ${(e=>[t.error(`${e.critical} critical`),t.warn(`${e.warn} warn`),t.muted(`${e.info} info`)].join(` · `))(o.summary)}`));let ve=o.findings.filter(e=>e.severity===`critical`||e.severity===`warn`);if(ve.length===0)i.log(t.muted(`No critical or warn findings detected.`));else{let e=e=>e===`critical`?t.error(`CRITICAL`):e===`warn`?t.warn(`WARN`):t.muted(`INFO`),n=e=>e===`critical`?0:e===`warn`?1:2,r=[...ve].toSorted((e,t)=>n(e.severity)-n(t.severity)),a=r.slice(0,6);for(let n of a)i.log(` ${e(n.severity)} ${n.title}`),i.log(` ${Me(n.detail.replaceAll(`
|
|
8
8
|
`,` `),160)}`),n.remediation?.trim()&&i.log(` ${t.muted(`Fix: ${n.remediation.trim()}`)}`);r.length>a.length&&i.log(t.muted(`… +${r.length-a.length} more`))}i.log(t.muted(`Full report: ${L(`openclaw security audit`)}`)),i.log(t.muted(`Deep probe: ${L(`openclaw security audit --deep`)}`)),i.log(``),i.log(t.heading(`Channels`));let Ce=ct(x);if(i.log(J({width:R,columns:[{key:`Channel`,header:`Channel`,minWidth:10},{key:`Enabled`,header:`Enabled`,minWidth:7},{key:`State`,header:`State`,minWidth:8},{key:`Detail`,header:`Detail`,flex:!0,minWidth:24}],rows:C.rows.map(e=>{let n=Ce.get(e.id)??[],r=e.state===`off`?`off`:n.length>0?`warn`:e.state,i=n.length>0?` · ${I(`gateway: ${Me(n[0]?.message??`issue`,84)}`)}`:``;return{Channel:e.label,Enabled:e.enabled?F(`ON`):P(`OFF`),State:r===`ok`?F(`OK`):r===`warn`?I(`WARN`):r===`off`?P(`OFF`):t.accentDim(`SETUP`),Detail:`${e.detail}${i}`}})}).trimEnd()),i.log(``),i.log(t.heading(`Sessions`)),i.log(J({width:R,columns:[{key:`Key`,header:`Key`,minWidth:20,flex:!0},{key:`Kind`,header:`Kind`,minWidth:6},{key:`Age`,header:`Age`,minWidth:9},{key:`Model`,header:`Model`,minWidth:14},{key:`Tokens`,header:`Tokens`,minWidth:16}],rows:w.sessions.recent.length>0?w.sessions.recent.map(e=>({Key:Me(e.key,32),Kind:e.kind,Age:e.updatedAt?W(e.age):`no activity`,Model:e.model??`unknown`,Tokens:mt(e)})):[{Key:P(`no sessions yet`),Kind:``,Age:``,Model:``,Tokens:``}]}).trimEnd()),w.queuedSystemEvents.length>0&&(i.log(``),i.log(t.heading(`System events`)),i.log(J({width:R,columns:[{key:`Event`,header:`Event`,flex:!0,minWidth:24}],rows:w.queuedSystemEvents.slice(0,5).map(e=>({Event:e}))}).trimEnd()),w.queuedSystemEvents.length>5&&i.log(P(`… +${w.queuedSystemEvents.length-5} more`))),j){i.log(``),i.log(t.heading(`Health`));let e=[];e.push({Item:`Gateway`,Status:F(`reachable`),Detail:`${j.durationMs}ms`});for(let t of ye(j,{accountMode:`all`})){let n=t.indexOf(`:`);if(n===-1)continue;let r=t.slice(0,n).trim(),i=t.slice(n+1).trim(),a=i.toLowerCase(),o=a.startsWith(`ok`)?F(`OK`):a.startsWith(`failed`)?I(`WARN`):a.startsWith(`not configured`)?P(`OFF`):a.startsWith(`configured`)?F(`OK`):a.startsWith(`linked`)?F(`LINKED`):a.startsWith(`not linked`)?I(`UNLINKED`):I(`WARN`);e.push({Item:r,Status:o,Detail:i})}i.log(J({width:R,columns:[{key:`Item`,header:`Item`,minWidth:10},{key:`Status`,header:`Status`,minWidth:8},{key:`Detail`,header:`Detail`,flex:!0,minWidth:28}],rows:e}).trimEnd())}if(k){i.log(``),i.log(t.heading(`Usage`));for(let e of A(k))i.log(e)}i.log(``),i.log(`FAQ: https://docs.openclaw.ai/faq`),i.log(`Troubleshooting: https://docs.openclaw.ai/troubleshooting`),i.log(``);let we=je(f);we&&(i.log(t.warn(we)),i.log(``)),i.log(`Next steps:`),i.log(` Need to share? ${L(`openclaw status --all`)}`),i.log(` Need to debug live? ${L(`openclaw logs --follow`)}`),y?i.log(` Need to test channels? ${L(`openclaw status --deep`)}`):i.log(` Fix reachability first: ${L(`openclaw gateway probe`)}`)}export{Tt as n,Re as r,Ft as t};
|
|
9
|
+
//# sourceMappingURL=status-JIPeVrsc.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./command-format-CLxIPuLR.js";import{t}from"./openclaw-root-CnsBf6ZU.js";import{t as n}from"./version-q3SkUw2K.js";import{n as r,r as i}from"./channel-account-context-DAcarnqW.js";async function a(e){return await r({root:await t({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()}),timeoutMs:e.timeoutMs,fetchGit:e.fetchGit,includeRegistry:e.includeRegistry})}function o(e){let t=e.registry?.latestVersion??null,r=t?i(n,t):null,a=r!=null&&r<0,o=e.installKind===`git`&&typeof e.git?.behind==`number`?e.git.behind:null,s=o!=null&&o>0;return{available:s||a,hasGitUpdate:s,hasRegistryUpdate:a,latestVersion:a?t:null,gitBehind:o}}function s(t){let n=o(t);if(!n.available)return null;let r=[];return n.hasGitUpdate&&n.gitBehind!=null&&r.push(`git behind ${n.gitBehind}`),n.hasRegistryUpdate&&n.latestVersion&&r.push(`npm ${n.latestVersion}`),`Update available${r.length>0?` (${r.join(` · `)})`:``}. Run: ${e(`openclaw update`)}`}function c(e){let t=[],r=()=>{if(e.registry?.latestVersion){let r=i(n,e.registry.latestVersion);r===0?t.push(`npm latest ${e.registry.latestVersion}`):r!=null&&r<0?t.push(`npm update ${e.registry.latestVersion}`):t.push(`npm latest ${e.registry.latestVersion} (local newer)`);return}e.registry?.error&&t.push(`npm latest unknown`)};if(e.installKind===`git`&&e.git){let n=e.git.branch?`git ${e.git.branch}`:`git`;t.push(n),e.git.upstream&&t.push(`↔ ${e.git.upstream}`),e.git.dirty===!0&&t.push(`dirty`),e.git.behind!=null&&e.git.ahead!=null&&(e.git.behind===0&&e.git.ahead===0?t.push(`up to date`):e.git.behind>0&&e.git.ahead===0?t.push(`behind ${e.git.behind}`):e.git.behind===0&&e.git.ahead>0?t.push(`ahead ${e.git.ahead}`):e.git.behind>0&&e.git.ahead>0&&t.push(`diverged (ahead ${e.git.ahead}, behind ${e.git.behind})`)),e.git.fetchOk===!1&&t.push(`fetch failed`),r()}else t.push(e.packageManager===`unknown`?`pkg`:e.packageManager),r();return e.deps&&(e.deps.status===`ok`&&t.push(`deps ok`),e.deps.status===`missing`&&t.push(`deps missing`),e.deps.status===`stale`&&t.push(`deps stale`)),`Update: ${t.join(` · `)}`}export{o as i,c as n,a as r,s as t};
|
|
2
|
+
//# sourceMappingURL=status.update-B_8Gumuc.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ml as e}from"./model-selection-BlC_rXAN.js";import{t}from"./openclaw-root-D_0Q6--h.js";import{t as n}from"./command-format-BbDT1tlm.js";import{n as r,r as i}from"./channel-account-context-BMPAMZEv.js";async function a(e){return await r({root:await t({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()}),timeoutMs:e.timeoutMs,fetchGit:e.fetchGit,includeRegistry:e.includeRegistry})}function o(t){let n=t.registry?.latestVersion??null,r=n?i(e,n):null,a=r!=null&&r<0,o=t.installKind===`git`&&typeof t.git?.behind==`number`?t.git.behind:null,s=o!=null&&o>0;return{available:s||a,hasGitUpdate:s,hasRegistryUpdate:a,latestVersion:a?n:null,gitBehind:o}}function s(e){let t=o(e);if(!t.available)return null;let r=[];return t.hasGitUpdate&&t.gitBehind!=null&&r.push(`git behind ${t.gitBehind}`),t.hasRegistryUpdate&&t.latestVersion&&r.push(`npm ${t.latestVersion}`),`Update available${r.length>0?` (${r.join(` · `)})`:``}. Run: ${n(`openclaw update`)}`}function c(t){let n=[],r=()=>{if(t.registry?.latestVersion){let r=i(e,t.registry.latestVersion);r===0?n.push(`npm latest ${t.registry.latestVersion}`):r!=null&&r<0?n.push(`npm update ${t.registry.latestVersion}`):n.push(`npm latest ${t.registry.latestVersion} (local newer)`);return}t.registry?.error&&n.push(`npm latest unknown`)};if(t.installKind===`git`&&t.git){let e=t.git.branch?`git ${t.git.branch}`:`git`;n.push(e),t.git.upstream&&n.push(`↔ ${t.git.upstream}`),t.git.dirty===!0&&n.push(`dirty`),t.git.behind!=null&&t.git.ahead!=null&&(t.git.behind===0&&t.git.ahead===0?n.push(`up to date`):t.git.behind>0&&t.git.ahead===0?n.push(`behind ${t.git.behind}`):t.git.behind===0&&t.git.ahead>0?n.push(`ahead ${t.git.ahead}`):t.git.behind>0&&t.git.ahead>0&&n.push(`diverged (ahead ${t.git.ahead}, behind ${t.git.behind})`)),t.git.fetchOk===!1&&n.push(`fetch failed`),r()}else n.push(t.packageManager===`unknown`?`pkg`:t.packageManager),r();return t.deps&&(t.deps.status===`ok`&&n.push(`deps ok`),t.deps.status===`missing`&&n.push(`deps missing`),t.deps.status===`stale`&&n.push(`deps stale`)),`Update: ${n.join(` · `)}`}export{o as i,c as n,a as r,s as t};
|
|
2
|
+
//# sourceMappingURL=status.update-DoSzHu2F.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){return(e??[]).map(e=>String(e).trim()).filter(Boolean)}function t(t){return e(t).map(e=>e.toLowerCase())}function n(e){let t=e?.trim().toLowerCase()??``;return t?t.replace(/\s+/g,`-`).replace(/[^a-z0-9#@._+-]+/g,`-`).replace(/-{2,}/g,`-`).replace(/^[-.]+|[-.]+$/g,``):``}function r(e){let t=e?.trim().toLowerCase()??``;return t?t.replace(/^[@#]+/,``).replace(/[\s_]+/g,`-`).replace(/[^a-z0-9-]+/g,`-`).replace(/-{2,}/g,`-`).replace(/^-+|-+$/g,``):``}export{t as i,n,e as r,r as t};
|
|
2
|
+
//# sourceMappingURL=string-normalization-BrUPaXaM.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){return(e??[]).map(e=>String(e).trim()).filter(Boolean)}function t(t){return e(t).map(e=>e.toLowerCase())}function n(e){let t=e?.trim().toLowerCase()??``;return t?t.replace(/\s+/g,`-`).replace(/[^a-z0-9#@._+-]+/g,`-`).replace(/-{2,}/g,`-`).replace(/^[-.]+|[-.]+$/g,``):``}function r(e){let t=e?.trim().toLowerCase()??``;return t?t.replace(/^[@#]+/,``).replace(/[\s_]+/g,`-`).replace(/[^a-z0-9-]+/g,`-`).replace(/-{2,}/g,`-`).replace(/^-+|-+$/g,``):``}export{t as i,n,e as r,r as t};
|
|
2
|
+
//# sourceMappingURL=string-normalization-DJT5zuUF.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{o as e}from"./paths-BjD3T_xq.js";import t from"node:os";import n from"node:path";import r from"node:fs";import i,{Chalk as a}from"chalk";import{Logger as o}from"tslog";import s from"json5";import c from"node:util";const l=/^node(?:-\d+|\d+)(?:\.\d+)*(?:\.exe)?$/;function u(e){let t=e.trim().replace(/^["']|["']$/g,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return(n===-1?t:t.slice(n+1)).toLowerCase()}function d(e){let t=u(e);return t===`node`||t===`node.exe`||t===`nodejs`||t===`nodejs.exe`||l.test(t)}function f(e){let t=u(e);return t===`bun`||t===`bun.exe`}const p=new Set([`--dev`,`--no-color`]),ee=new Set([`--profile`,`--log-level`]);function m(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function h(e,t){let n=e[t];return n?p.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:ee.has(n)?m(e[t+1])?2:1:0:0}const g=new Set([`-h`,`--help`]),_=new Set([`-V`,`--version`]);function te(e){return e.some(e=>g.has(e)||_.has(e))||re(e)}function ne(e){let t=Number.parseInt(e,10);if(!(Number.isNaN(t)||t<=0))return t}function v(e,t){let n=e.slice(2);for(let e of n){if(e===`--`)break;if(e===t)return!0}return!1}function re(e){let t=e.slice(2),n=!1;for(let e=0;e<t.length;e+=1){let r=t[e];if(!r)continue;if(r===`--`)break;if(r===`-v`){n=!0;continue}let i=h(t,e);if(i>0){e+=i-1;continue}if(!r.startsWith(`-`))return!1}return n}function ie(e){return ae(e,_,{includeVersionAlias:!0})}function ae(e,t,n){let r=e.slice(2),i=!1;for(let e=0;e<r.length;e+=1){let a=r[e];if(!a)continue;if(a===`--`)break;if(t.has(a)||n?.includeVersionAlias===!0&&a===`-v`){i=!0;continue}let o=h(r,e);if(o>0){e+=o-1;continue}return!1}return i}function oe(e){return ae(e,g)}function se(e,t){let n=e.slice(2);for(let e=0;e<n.length;e+=1){let r=n[e];if(r===`--`)break;if(r===t){let t=n[e+1];return m(t)?t:null}if(r.startsWith(`${t}=`))return r.slice(t.length+1)||null}}function ce(e,t){return!!(v(e,`--verbose`)||t?.includeDebug&&v(e,`--debug`))}function le(e,t){let n=se(e,t);return n==null?n:ne(n)}function y(e,t=2){return ue(e,t,{skipRootOptions:!0})}function ue(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=h(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}function de(e){let[t]=y(e,1);return t??null}function fe(e,t,n,r){let i=e[t];if(!i||i===`--`||!i.startsWith(`-`))return 0;let a=i.indexOf(`=`),o=a===-1?i:i.slice(0,a);return n.has(o)?a===-1?1:0:r.has(o)?a===-1?m(e[t+1])?2:0:i.slice(a+1).trim()?1:0:0}function pe(e,t){let n=e.slice(2),r=t.commandPath,i=new Set(t.booleanFlags??[]),a=new Set(t.valueFlags??[]),o=[],s=0;for(let e=0;e<n.length;e+=1){let t=n[e];if(!t||t===`--`)break;let c=h(n,e);if(c>0){e+=c-1;continue}if(t.startsWith(`-`)){let t=fe(n,e,i,a);if(t===0)return null;e+=t-1;continue}if(s<r.length){if(t!==r[s])return null;s+=1;continue}o.push(t)}return s<r.length?null:o}function me(e){let t=e.rawArgs&&e.rawArgs.length>0?e.rawArgs:e.fallbackArgv&&e.fallbackArgv.length>0?e.fallbackArgv:process.argv,n=e.programName??``,r=n&&t[0]===n||t[0]?.endsWith(`openclaw`)?t.slice(1):t;return r.length>=2&&(d(r[0]??``)||f(r[0]??``))?r:[`node`,n||`openclaw`,...r]}function he(e){if(e.length===0)return!0;let[t,n]=e;return!(t===`health`||t===`status`||t===`sessions`||t===`config`&&(n===`get`||n===`unset`)||t===`models`&&(n===`list`||n===`status`)||t===`memory`&&n===`status`||t===`agent`)}const b=`/tmp/qbotclaw`,x=r.constants.W_OK|r.constants.X_OK;function ge(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function S(e={}){let i=e.accessSync??r.accessSync,a=e.chmodSync??r.chmodSync,o=e.lstatSync??r.lstatSync,s=e.mkdirSync??r.mkdirSync,c=e.warn??(e=>console.warn(e)),l=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),u=e.tmpdir??t.tmpdir,d=l(),f=e=>d===void 0?!0:!(typeof e.uid==`number`&&e.uid!==d||typeof e.mode==`number`&&e.mode&18),p=()=>{let e=u(),t=d===void 0?`qbotclaw`:`qbotclaw-${d}`;return n.join(e,t)},ee=e=>e.isDirectory()&&!e.isSymbolicLink()&&f(e),m=e=>{try{return ee(o(e))?(i(e,x),`available`):`invalid`}catch(e){return ge(e,`ENOENT`)?`missing`:`invalid`}},h=e=>{try{let t=o(e);return!t.isDirectory()||t.isSymbolicLink()||d!==void 0&&typeof t.uid==`number`&&t.uid!==d||typeof t.mode!=`number`||!(t.mode&18)?!1:(a(e,448),c(`[openclaw] tightened permissions on temp dir: ${e}`),m(e)===`available`)}catch{return!1}},g=()=>{let e=p(),t=m(e);if(t===`available`)return e;if(t===`invalid`){if(h(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{s(e,{recursive:!0,mode:448}),a(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(m(e)!==`available`&&!h(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},_=m(b);if(_===`available`)return b;if(_===`invalid`)return h(`/tmp/qbotclaw`)?b:g();try{return i(`/tmp`,x),s(b,{recursive:!0,mode:448}),a(b,448),m(`/tmp/qbotclaw`)!==`available`&&!h(`/tmp/qbotclaw`)?g():b}catch{return g()}}function C(){let t=e();try{if(!r.existsSync(t))return;let e=r.readFileSync(t,`utf-8`),n=s.parse(e)?.logging;return!n||typeof n!=`object`||Array.isArray(n)?void 0:n}catch{return}}const w=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function T(e){if(typeof e!=`string`)return;let t=e.trim();return w.includes(t)?t:void 0}function E(e,t=`info`){return T(e)??t}function D(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const O={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function k(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){O.invalidEnvLogLevelValue=null;return}let n=T(t);if(n)return O.invalidEnvLogLevelValue=null,n;O.invalidEnvLogLevelValue!==t&&(O.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${w.join(`|`)}).\n`))}function A(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function _e(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function j(e,t){let n=t??process.env.TZ,r=n&&_e(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const M=S();n.join(M,`qbotclaw.log`);const N=`qbotclaw`,P=`.log`,F=500*1024*1024,ve=A(import.meta.url),I=new Set;function ye(e=process.argv){let[t,n]=y(e,2);return t===`config`&&n===`validate`}function be(e,t){e.attachTransport(e=>{if(I.has(t))try{t(e)}catch{}})}function xe(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!O.overrideSettings}function L(){let e=k();if(xe(e))return{level:`silent`,file:je(),maxFileBytes:F};let t=O.overrideSettings??C();if(!t&&!ye())try{t=(ve?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=E(t?.level,n);return{level:e??r,file:t?.file??je(),maxFileBytes:we(t?.maxFileBytes)}}function Se(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function R(e){let t=O.cachedSettings??L();return O.cachedSettings||=t,t.level===`silent`?!1:D(e)<=D(t.level)}function Ce(e){let t=new o({name:`openclaw`,minLevel:D(e.level),type:`hidden`});if(e.level===`silent`){for(let e of I)be(t,e);return t}r.mkdirSync(n.dirname(e.file),{recursive:!0}),Me(e.file)&&Ne(n.dirname(e.file));let i=Te(e.file),a=!1;t.attachTransport(t=>{try{let n=j(t.date??new Date),r=`${JSON.stringify({...t,time:n})}\n`,o=Buffer.byteLength(r,`utf8`),s=i+o;if(s>e.maxFileBytes){if(!a){a=!0;let t=JSON.stringify({time:j(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});Ee(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}Ee(e.file,r)&&(i=s)}catch{}});for(let e of I)be(t,e);return t}function we(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):F}function Te(e){try{return r.statSync(e).size}catch{return 0}}function Ee(e,t){try{return r.appendFileSync(e,t,{encoding:`utf8`}),!0}catch{return!1}}function z(){let e=L(),t=O.cachedLogger,n=O.cachedSettings;return(!t||Se(n,e))&&(O.cachedLogger=Ce(e),O.cachedSettings=e),O.cachedLogger}function De(e,t){let n=z(),r=t?.level?D(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function Oe(e,t){return{level:t,child:n=>Oe(e.getSubLogger({name:n?JSON.stringify(n):void 0}),t),trace:(...t)=>e.trace(...t),debug:(...t)=>e.debug(...t),info:(...t)=>e.info(...t),warn:(...t)=>e.warn(...t),error:(...t)=>e.error(...t),fatal:(...t)=>e.fatal(...t)}}function ke(){return L()}function Ae(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function je(){let e=Ae(new Date);return n.join(M,`${N}-${e}${P}`)}function Me(e){let t=n.basename(e);return t.startsWith(`${N}-`)&&t.endsWith(P)&&t.length===`${N}-YYYY-MM-DD${P}`.length}function Ne(e){try{let t=r.readdirSync(e,{withFileTypes:!0}),i=Date.now()-864e5;for(let a of t){if(!a.isFile()||!a.name.startsWith(`${N}-`)||!a.name.endsWith(P))continue;let t=n.join(e,a.name);try{r.statSync(t).mtimeMs<i&&r.rmSync(t,{force:!0})}catch{}}}catch{}}const B={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},Pe=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,V=process.env.NO_COLOR&&!Pe?new a({level:0}):i,H=e=>V.hex(e),U={accent:H(B.accent),accentBright:H(B.accentBright),accentDim:H(B.accentDim),info:H(B.info),success:H(B.success),warn:H(B.warn),error:H(B.error),muted:H(B.muted),heading:V.bold.hex(B.accent),command:H(B.accentBright),option:H(B.warn)},Fe=()=>V.level>0,Ie=(e,t,n)=>e?t(n):n;let W=!1;function Le(e){W=e}function G(){return W}function Re(){return W||R(`debug`)}function ze(e){if(Re()){try{z().debug({message:e},`verbose`)}catch{}W&&console.log(U.muted(e))}}function Be(e){W&&console.log(U.muted(e))}function Ve(){return!1}const He=U.success,Ue=U.warn,We=U.info,Ge=U.error;let K=null;function Ke(e){e.isTTY&&(K=e)}function q(){K?.isTTY&&K.write(`\r\x1B[2K`)}function qe(e){K&&(e&&K!==e||(K=null))}function J(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Je(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1;try{q()}catch(t){J(`progress line`,t,e)}let r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){J(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){J(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){J(`stdout reset`,t,e)}}function Ye(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function Xe(){return{log:(...e)=>{Ye()&&(q(),console.log(...e))},error:(...e)=>{q(),console.error(...e)}}}const Ze={...Xe(),exit:e=>{throw Je(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};function Qe(){return{...Xe(),exit:e=>{throw Error(`exit ${e}`)}}}const $e=RegExp(`\\x1b\\[[0-9;]*m`,`g`),et=RegExp(`\\x1b\\]8;;.*?\\x1b\\\\|\\x1b\\]8;;\\x1b\\\\`,`g`),tt=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function Y(e){return e.replace(et,``).replace($e,``)}function nt(e){if(!e)return[];if(!tt)return Array.from(e);try{return Array.from(tt.segment(e),e=>e.segment)}catch{return Array.from(e)}}function rt(e){let t=Y(e);for(let e=0;e<=31;e++)t=t.replaceAll(String.fromCharCode(e),``);return t.replaceAll(``,``)}function it(e){return e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=65024&&e<=65039||e===8205}function at(e){return e<4352?!1:e<=4447||e===9001||e===9002||e>=11904&&e<=12871&&e!==12351||e>=12880&&e<=19903||e>=19968&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510||e>=110576&&e<=110579||e>=110581&&e<=110587||e>=110589&&e<=110590||e>=110592&&e<=111359||e>=127488&&e<=127569||e>=131072&&e<=262141}const ot=/[\p{Extended_Pictographic}\p{Regional_Indicator}\u20e3]/u;function st(e){if(!e)return 0;if(ot.test(e))return 2;let t=!1;for(let n of e){let e=n.codePointAt(0);if(e!=null&&!it(e)){if(at(e))return 2;t=!0}}return t?1:0}function ct(e){return nt(Y(e)).reduce((e,t)=>e+st(t),0)}const lt=A(import.meta.url);let ut=()=>{try{return(lt?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function dt(e){return G()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:E(e,`info`)}function ft(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function pt(){let e=k();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!G()&&!e&&!O.overrideSettings)return{level:`silent`,style:ft(void 0)};let t=O.overrideSettings??C();if(!t)if(O.resolvingConsoleSettings)t=void 0;else{O.resolvingConsoleSettings=!0;try{t=ut()}finally{O.resolvingConsoleSettings=!1}}return{level:e??dt(t?.consoleLevel),style:ft(t?.consoleStyle)}}function mt(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function X(){let e=pt(),t=O.cachedConsoleSettings;return(!t||mt(t,e))&&(O.cachedConsoleSettings=e),O.cachedConsoleSettings}function ht(){O.forceConsoleToStderr=!0}function gt(e){if(!e||e.length===0){O.consoleSubsystemFilter=null;return}let t=e.map(e=>e.trim()).filter(e=>e.length>0);O.consoleSubsystemFilter=t.length>0?t:null}function _t(e){O.consoleTimestampPrefix=e}function Z(e){let t=O.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}const vt=[`Closing session:`,`Opening session:`,`Removing old closed session:`,`Session already closed`,`Session already open`];function yt(e){return G()?!1:!!(vt.some(t=>e.startsWith(t))||e.startsWith(`[EventQueue] Slow listener detected`)&&e.includes(`DiscordMessageListener`))}function Q(e){let t=e?.code;return t===`EPIPE`||t===`EIO`}function $(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:j(t)}function bt(e){return/^(?:\d{2}:\d{2}:\d{2}|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)/.test(e)}function xt(e){let t=e.trim();if(!t.startsWith(`{`)&&!t.startsWith(`[`))return!1;try{return JSON.parse(t),!0}catch{return!1}}function St(){if(O.consolePatched)return;if(O.consolePatched=!0,!O.streamErrorHandlersInstalled){O.streamErrorHandlersInstalled=!0;for(let e of[process.stdout,process.stderr])e.on(`error`,e=>{if(!Q(e))throw e})}let e=null,t=()=>(e||=z(),e),n={log:console.log,info:console.info,warn:console.warn,error:console.error,debug:console.debug,trace:console.trace};O.rawConsole={log:n.log,info:n.info,warn:n.warn,error:n.error};let r=(e,n)=>(...r)=>{let i=c.format(...r);if(yt(i))return;let a=Y(i).trimStart(),o=O.consoleTimestampPrefix&&a.length>0&&!bt(a)&&!xt(a)?$(X().style):``;try{let n=t();e===`trace`?n.trace(i):e===`debug`?n.debug(i):e===`info`?n.info(i):e===`warn`?n.warn(i):e===`error`||e===`fatal`?n.error(i):n.info(i)}catch{}if(O.forceConsoleToStderr)try{let e=o?`${o} ${i}`:i;process.stderr.write(`${e}\n`)}catch(e){if(Q(e))return;throw e}else try{if(!o){n.apply(console,r);return}if(r.length===0){n.call(console,o);return}if(typeof r[0]==`string`){n.call(console,`${o} ${r[0]}`,...r.slice(1));return}n.call(console,o,...r)}catch(e){if(Q(e))return;throw e}};console.log=r(`info`,n.log),console.info=r(`info`,n.info),console.warn=r(`warn`,n.warn),console.error=r(`error`,n.error),console.debug=r(`debug`,n.debug),console.trace=r(`trace`,n.trace)}function Ct(e,t){return t.level===`silent`?!1:D(e)<=D(t.level)}const wt=(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function Tt(e){if(typeof e==`string`)return e;if(wt)return wt(e);try{return JSON.stringify(e)}catch{return String(e)}}function Et(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function Dt(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new a({level:0}):process.stdout.isTTY||process.stderr.isTTY||Et()?new a({level:1}):new a({level:0})}const Ot=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],kt={"gmail-watcher":`blue`},At=[`gateway`,`channels`,`providers`],jt=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function Mt(e,t){let n=kt[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[Ot[Math.abs(r)%Ot.length]]}function Nt(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&At.includes(t[0]);)t.shift();return t.length===0?n:jt.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function Pt(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function Ft(e){let t=e.style===`json`?e.subsystem:Nt(e.subsystem);if(e.style===`json`)return JSON.stringify({time:$(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=Dt(),r=`[${t}]`,i=Mt(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=Pt(e.message,t);return`${[e.style===`pretty`?n.gray($(`pretty`)):O.consoleTimestampPrefix?n.gray($(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function It(e,t){q();let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=O.rawConsole??console;O.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function Lt(e){return G()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function Rt(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function zt(e){let t=null,n=()=>(t||=De({subsystem:e}),t),r=(t,r,i)=>{let a=X(),o=Ct(t,{level:a.level})&&Z(e),s=R(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&Rt(n(),t,r,l),!o)return;let u=c??r;Lt({level:t,subsystem:e,message:u,meta:l})||It(t,Ft({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>Ct(t,{level:X().level})&&Z(e),a=e=>R(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&Rt(n(),`info`,t,{raw:!0}),i(`info`)){if(Lt({level:`info`,subsystem:e,message:t}))return;It(`info`,t)}},child:t=>zt(`${e}/${t}`)}}function Bt(e,t=Ze.exit){let n=(...e)=>e.map(e=>Tt(e)).join(` `).trim();return{log:(...t)=>e.info(n(...t)),error:(...t)=>e.error(n(...t)),exit:t}}export{oe as $,U as A,T as B,Be as C,Ue as D,He as E,j as F,pe as G,S as H,_e as I,de as J,se as K,A as L,z as M,ke as N,Ie as O,Oe as P,re as Q,w as R,ze as S,Re as T,me as U,C as V,y as W,v as X,ce as Y,te as Z,qe as _,gt as a,d as at,G as b,rt as c,ct as d,ie as et,Qe as f,Ke as g,q as h,ht as i,f as it,De as j,Fe as k,nt as l,Je as m,Bt as n,h as nt,_t as o,Ze as p,le as q,St as r,m as rt,Z as s,zt as t,he as tt,Y as u,Ge as v,Le as w,Ve as x,We as y,E as z};
|
|
2
|
+
//# sourceMappingURL=subsystem-BLbY429l.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./paths-CChBdtE8.js";import t from"node:os";import n from"node:path";import r from"node:fs";import i,{Chalk as a}from"chalk";import{Logger as o}from"tslog";import s from"json5";import"node:util";const c=new Set([`--dev`,`--no-color`]),l=new Set([`--profile`,`--log-level`]);function u(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function d(e,t){let n=e[t];return n?c.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:l.has(n)?u(e[t+1])?2:1:0:0}function f(e,t=2){return p(e,t,{skipRootOptions:!0})}function p(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=d(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}const m=`/tmp/qbotclaw`,h=r.constants.W_OK|r.constants.X_OK;function ee(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function g(e={}){let i=e.accessSync??r.accessSync,a=e.chmodSync??r.chmodSync,o=e.lstatSync??r.lstatSync,s=e.mkdirSync??r.mkdirSync,c=e.warn??(e=>console.warn(e)),l=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),u=e.tmpdir??t.tmpdir,d=l(),f=e=>d===void 0?!0:!(typeof e.uid==`number`&&e.uid!==d||typeof e.mode==`number`&&e.mode&18),p=()=>{let e=u(),t=d===void 0?`qbotclaw`:`qbotclaw-${d}`;return n.join(e,t)},g=e=>e.isDirectory()&&!e.isSymbolicLink()&&f(e),_=e=>{try{return g(o(e))?(i(e,h),`available`):`invalid`}catch(e){return ee(e,`ENOENT`)?`missing`:`invalid`}},v=e=>{try{let t=o(e);return!t.isDirectory()||t.isSymbolicLink()||d!==void 0&&typeof t.uid==`number`&&t.uid!==d||typeof t.mode!=`number`||!(t.mode&18)?!1:(a(e,448),c(`[openclaw] tightened permissions on temp dir: ${e}`),_(e)===`available`)}catch{return!1}},y=()=>{let e=p(),t=_(e);if(t===`available`)return e;if(t===`invalid`){if(v(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{s(e,{recursive:!0,mode:448}),a(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(_(e)!==`available`&&!v(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},b=_(m);if(b===`available`)return m;if(b===`invalid`)return v(`/tmp/qbotclaw`)?m:y();try{return i(`/tmp`,h),s(m,{recursive:!0,mode:448}),a(m,448),_(`/tmp/qbotclaw`)!==`available`&&!v(`/tmp/qbotclaw`)?y():m}catch{return y()}}function _(){let t=e();try{if(!r.existsSync(t))return;let e=r.readFileSync(t,`utf-8`),n=s.parse(e)?.logging;return!n||typeof n!=`object`||Array.isArray(n)?void 0:n}catch{return}}const v=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function y(e){if(typeof e!=`string`)return;let t=e.trim();return v.includes(t)?t:void 0}function b(e,t=`info`){return y(e)??t}function x(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const S={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function C(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){S.invalidEnvLogLevelValue=null;return}let n=y(t);if(n)return S.invalidEnvLogLevelValue=null,n;S.invalidEnvLogLevelValue!==t&&(S.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${v.join(`|`)}).\n`))}function w(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function te(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function T(e,t){let n=t??process.env.TZ,r=n&&te(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const E=g();n.join(E,`qbotclaw.log`);const D=`qbotclaw`,O=`.log`,k=500*1024*1024,ne=w(import.meta.url),A=new Set;function re(e=process.argv){let[t,n]=f(e,2);return t===`config`&&n===`validate`}function j(e,t){e.attachTransport(e=>{if(A.has(t))try{t(e)}catch{}})}function ie(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!S.overrideSettings}function M(){let e=C();if(ie(e))return{level:`silent`,file:ue(),maxFileBytes:k};let t=S.overrideSettings??_();if(!t&&!re())try{t=(ne?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=b(t?.level,n);return{level:e??r,file:t?.file??ue(),maxFileBytes:se(t?.maxFileBytes)}}function ae(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function N(e){let t=S.cachedSettings??M();return S.cachedSettings||=t,t.level===`silent`?!1:x(e)<=x(t.level)}function oe(e){let t=new o({name:`openclaw`,minLevel:x(e.level),type:`hidden`});if(e.level===`silent`){for(let e of A)j(t,e);return t}r.mkdirSync(n.dirname(e.file),{recursive:!0}),de(e.file)&&fe(n.dirname(e.file));let i=ce(e.file),a=!1;t.attachTransport(t=>{try{let n=T(t.date??new Date),r=`${JSON.stringify({...t,time:n})}\n`,o=Buffer.byteLength(r,`utf8`),s=i+o;if(s>e.maxFileBytes){if(!a){a=!0;let t=JSON.stringify({time:T(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});P(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}P(e.file,r)&&(i=s)}catch{}});for(let e of A)j(t,e);return t}function se(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):k}function ce(e){try{return r.statSync(e).size}catch{return 0}}function P(e,t){try{return r.appendFileSync(e,t,{encoding:`utf8`}),!0}catch{return!1}}function F(){let e=M(),t=S.cachedLogger,n=S.cachedSettings;return(!t||ae(n,e))&&(S.cachedLogger=oe(e),S.cachedSettings=e),S.cachedLogger}function I(e,t){let n=F(),r=t?.level?x(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function L(e,t){return{level:t,child:n=>L(e.getSubLogger({name:n?JSON.stringify(n):void 0}),t),trace:(...t)=>e.trace(...t),debug:(...t)=>e.debug(...t),info:(...t)=>e.info(...t),warn:(...t)=>e.warn(...t),error:(...t)=>e.error(...t),fatal:(...t)=>e.fatal(...t)}}function le(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function ue(){let e=le(new Date);return n.join(E,`${D}-${e}${O}`)}function de(e){let t=n.basename(e);return t.startsWith(`${D}-`)&&t.endsWith(O)&&t.length===`${D}-YYYY-MM-DD${O}`.length}function fe(e){try{let t=r.readdirSync(e,{withFileTypes:!0}),i=Date.now()-864e5;for(let a of t){if(!a.isFile()||!a.name.startsWith(`${D}-`)||!a.name.endsWith(O))continue;let t=n.join(e,a.name);try{r.statSync(t).mtimeMs<i&&r.rmSync(t,{force:!0})}catch{}}}catch{}}const R={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},pe=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,z=process.env.NO_COLOR&&!pe?new a({level:0}):i,B=e=>z.hex(e),V={accent:B(R.accent),accentBright:B(R.accentBright),accentDim:B(R.accentDim),info:B(R.info),success:B(R.success),warn:B(R.warn),error:B(R.error),muted:B(R.muted),heading:z.bold.hex(R.accent),command:B(R.accentBright),option:B(R.warn)},me=()=>z.level>0,he=(e,t,n)=>e?t(n):n;let H=!1;function ge(e){H=e}function U(){return H}function W(){return H||N(`debug`)}function _e(e){if(W()){try{F().debug({message:e},`verbose`)}catch{}H&&console.log(V.muted(e))}}function ve(e){H&&console.log(V.muted(e))}const ye=V.success,be=V.warn,xe=V.info,Se=V.error;let G=null;function Ce(e){e.isTTY&&(G=e)}function K(){G?.isTTY&&G.write(`\r\x1B[2K`)}function we(e){G&&(e&&G!==e||(G=null))}function q(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Te(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1;try{K()}catch(t){q(`progress line`,t,e)}let r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){q(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){q(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){q(`stdout reset`,t,e)}}function Ee(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function J(){return{log:(...e)=>{Ee()&&(K(),console.log(...e))},error:(...e)=>{K(),console.error(...e)}}}const De={...J(),exit:e=>{throw Te(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};function Oe(){return{...J(),exit:e=>{throw Error(`exit ${e}`)}}}const ke=RegExp(`\\x1b\\[[0-9;]*m`,`g`),Ae=RegExp(`\\x1b\\]8;;.*?\\x1b\\\\|\\x1b\\]8;;\\x1b\\\\`,`g`);typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});function Y(e){return e.replace(Ae,``).replace(ke,``)}function je(e){let t=Y(e);for(let e=0;e<=31;e++)t=t.replaceAll(String.fromCharCode(e),``);return t.replaceAll(``,``)}const Me=w(import.meta.url);let Ne=()=>{try{return(Me?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function Pe(e){return U()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:b(e,`info`)}function X(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function Fe(){let e=C();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!U()&&!e&&!S.overrideSettings)return{level:`silent`,style:X(void 0)};let t=S.overrideSettings??_();if(!t)if(S.resolvingConsoleSettings)t=void 0;else{S.resolvingConsoleSettings=!0;try{t=Ne()}finally{S.resolvingConsoleSettings=!1}}return{level:e??Pe(t?.consoleLevel),style:X(t?.consoleStyle)}}function Ie(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function Z(){let e=Fe(),t=S.cachedConsoleSettings;return(!t||Ie(t,e))&&(S.cachedConsoleSettings=e),S.cachedConsoleSettings}function Q(e){let t=S.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}function $(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:T(t)}function Le(e,t){return t.level===`silent`?!1:x(e)<=x(t.level)}(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function Re(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function ze(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new a({level:0}):process.stdout.isTTY||process.stderr.isTTY||Re()?new a({level:1}):new a({level:0})}const Be=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],Ve={"gmail-watcher":`blue`},He=[`gateway`,`channels`,`providers`],Ue=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function We(e,t){let n=Ve[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[Be[Math.abs(r)%Be.length]]}function Ge(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&He.includes(t[0]);)t.shift();return t.length===0?n:Ue.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function Ke(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function qe(e){let t=e.style===`json`?e.subsystem:Ge(e.subsystem);if(e.style===`json`)return JSON.stringify({time:$(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=ze(),r=`[${t}]`,i=We(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=Ke(e.message,t);return`${[e.style===`pretty`?n.gray($(`pretty`)):S.consoleTimestampPrefix?n.gray($(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function Je(e,t){K();let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=S.rawConsole??console;S.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function Ye(e){return U()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function Xe(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function Ze(e){let t=null,n=()=>(t||=I({subsystem:e}),t),r=(t,r,i)=>{let a=Z(),o=Le(t,{level:a.level})&&Q(e),s=N(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&Xe(n(),t,r,l),!o)return;let u=c??r;Ye({level:t,subsystem:e,message:u,meta:l})||Je(t,qe({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>Le(t,{level:Z().level})&&Q(e),a=e=>N(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&Xe(n(),`info`,t,{raw:!0}),i(`info`)){if(Ye({level:`info`,subsystem:e,message:t}))return;Je(`info`,t)}},child:t=>Ze(`${e}/${t}`)}}export{w as C,d as D,g as E,L as S,_ as T,he as _,De as a,I as b,we as c,_e as d,ve as f,be as g,ye as h,Oe as i,Se as l,W as m,je as n,K as o,ge as p,Y as r,Ce as s,Ze as t,xe as u,me as v,b as w,F as x,V as y};
|
|
2
|
+
//# sourceMappingURL=subsystem-Bc2XrjUz.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{o as e}from"./paths-B4IRk3wi.js";import t from"node:fs";import n from"node:os";import r from"node:path";import{Logger as i}from"tslog";import a from"json5";import o,{Chalk as s}from"chalk";import c from"node:util";const l=/^node(?:-\d+|\d+)(?:\.\d+)*(?:\.exe)?$/;function u(e){let t=e.trim().replace(/^["']|["']$/g,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return(n===-1?t:t.slice(n+1)).toLowerCase()}function d(e){let t=u(e);return t===`node`||t===`node.exe`||t===`nodejs`||t===`nodejs.exe`||l.test(t)}function f(e){let t=u(e);return t===`bun`||t===`bun.exe`}const p=new Set([`--dev`,`--no-color`]),ee=new Set([`--profile`,`--log-level`]);function m(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function h(e,t){let n=e[t];return n?p.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:ee.has(n)?m(e[t+1])?2:1:0:0}const g=new Set([`-h`,`--help`]),_=new Set([`-V`,`--version`]);function te(e){return e.some(e=>g.has(e)||_.has(e))||y(e)}function v(e,t){let n=e.slice(2);for(let e of n){if(e===`--`)break;if(e===t)return!0}return!1}function y(e){let t=e.slice(2),n=!1;for(let e=0;e<t.length;e+=1){let r=t[e];if(!r)continue;if(r===`--`)break;if(r===`-v`){n=!0;continue}let i=h(t,e);if(i>0){e+=i-1;continue}if(!r.startsWith(`-`))return!1}return n}function ne(e,t){return!!(v(e,`--verbose`)||t?.includeDebug&&v(e,`--debug`))}function b(e,t=2){return re(e,t,{skipRootOptions:!0})}function re(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=h(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}function ie(e){let[t]=b(e,1);return t??null}function ae(e){let t=e.rawArgs&&e.rawArgs.length>0?e.rawArgs:e.fallbackArgv&&e.fallbackArgv.length>0?e.fallbackArgv:process.argv,n=e.programName??``,r=n&&t[0]===n||t[0]?.endsWith(`openclaw`)?t.slice(1):t;return r.length>=2&&(d(r[0]??``)||f(r[0]??``))?r:[`node`,n||`openclaw`,...r]}function oe(e){if(e.length===0)return!0;let[t,n]=e;return!(t===`health`||t===`status`||t===`sessions`||t===`config`&&(n===`get`||n===`unset`)||t===`models`&&(n===`list`||n===`status`)||t===`memory`&&n===`status`||t===`agent`)}const x=`/tmp/qbotclaw`,se=t.constants.W_OK|t.constants.X_OK;function ce(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function S(e={}){let i=e.accessSync??t.accessSync,a=e.chmodSync??t.chmodSync,o=e.lstatSync??t.lstatSync,s=e.mkdirSync??t.mkdirSync,c=e.warn??(e=>console.warn(e)),l=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),u=e.tmpdir??n.tmpdir,d=l(),f=e=>d===void 0?!0:!(typeof e.uid==`number`&&e.uid!==d||typeof e.mode==`number`&&e.mode&18),p=()=>{let e=u(),t=d===void 0?`qbotclaw`:`qbotclaw-${d}`;return r.join(e,t)},ee=e=>e.isDirectory()&&!e.isSymbolicLink()&&f(e),m=e=>{try{return ee(o(e))?(i(e,se),`available`):`invalid`}catch(e){return ce(e,`ENOENT`)?`missing`:`invalid`}},h=e=>{try{let t=o(e);return!t.isDirectory()||t.isSymbolicLink()||d!==void 0&&typeof t.uid==`number`&&t.uid!==d||typeof t.mode!=`number`||!(t.mode&18)?!1:(a(e,448),c(`[openclaw] tightened permissions on temp dir: ${e}`),m(e)===`available`)}catch{return!1}},g=()=>{let e=p(),t=m(e);if(t===`available`)return e;if(t===`invalid`){if(h(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{s(e,{recursive:!0,mode:448}),a(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(m(e)!==`available`&&!h(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},_=m(x);if(_===`available`)return x;if(_===`invalid`)return h(`/tmp/qbotclaw`)?x:g();try{return i(`/tmp`,se),s(x,{recursive:!0,mode:448}),a(x,448),m(`/tmp/qbotclaw`)!==`available`&&!h(`/tmp/qbotclaw`)?g():x}catch{return g()}}function C(){let n=e();try{if(!t.existsSync(n))return;let e=t.readFileSync(n,`utf-8`),r=a.parse(e)?.logging;return!r||typeof r!=`object`||Array.isArray(r)?void 0:r}catch{return}}const w=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function T(e){if(typeof e!=`string`)return;let t=e.trim();return w.includes(t)?t:void 0}function E(e,t=`info`){return T(e)??t}function D(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const O={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function le(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){O.invalidEnvLogLevelValue=null;return}let n=T(t);if(n)return O.invalidEnvLogLevelValue=null,n;O.invalidEnvLogLevelValue!==t&&(O.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${w.join(`|`)}).\n`))}function k(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function ue(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function A(e,t){let n=t??process.env.TZ,r=n&&ue(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const de=S();r.join(de,`qbotclaw.log`);const j=`qbotclaw`,M=`.log`,fe=500*1024*1024,pe=k(import.meta.url),N=new Set;function me(e=process.argv){let[t,n]=b(e,2);return t===`config`&&n===`validate`}function he(e,t){e.attachTransport(e=>{if(N.has(t))try{t(e)}catch{}})}function ge(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!O.overrideSettings}function P(){let e=le();if(ge(e))return{level:`silent`,file:Te(),maxFileBytes:fe};let t=O.overrideSettings??C();if(!t&&!me())try{t=(pe?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=E(t?.level,n);return{level:e??r,file:t?.file??Te(),maxFileBytes:ye(t?.maxFileBytes)}}function _e(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function F(e){let t=O.cachedSettings??P();return O.cachedSettings||=t,t.level===`silent`?!1:D(e)<=D(t.level)}function ve(e){let n=new i({name:`openclaw`,minLevel:D(e.level),type:`hidden`});if(e.level===`silent`){for(let e of N)he(n,e);return n}t.mkdirSync(r.dirname(e.file),{recursive:!0}),Ee(e.file)&&De(r.dirname(e.file));let a=be(e.file),o=!1;n.attachTransport(t=>{try{let n=A(t.date??new Date),r=`${JSON.stringify({...t,time:n})}\n`,i=Buffer.byteLength(r,`utf8`),s=a+i;if(s>e.maxFileBytes){if(!o){o=!0;let t=JSON.stringify({time:A(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});I(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}I(e.file,r)&&(a=s)}catch{}});for(let e of N)he(n,e);return n}function ye(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):fe}function be(e){try{return t.statSync(e).size}catch{return 0}}function I(e,n){try{return t.appendFileSync(e,n,{encoding:`utf8`}),!0}catch{return!1}}function L(){let e=P(),t=O.cachedLogger,n=O.cachedSettings;return(!t||_e(n,e))&&(O.cachedLogger=ve(e),O.cachedSettings=e),O.cachedLogger}function xe(e,t){let n=L(),r=t?.level?D(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function Se(e,t){return{level:t,child:n=>Se(e.getSubLogger({name:n?JSON.stringify(n):void 0}),t),trace:(...t)=>e.trace(...t),debug:(...t)=>e.debug(...t),info:(...t)=>e.info(...t),warn:(...t)=>e.warn(...t),error:(...t)=>e.error(...t),fatal:(...t)=>e.fatal(...t)}}function Ce(){return P()}function we(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function Te(){let e=we(new Date);return r.join(de,`${j}-${e}${M}`)}function Ee(e){let t=r.basename(e);return t.startsWith(`${j}-`)&&t.endsWith(M)&&t.length===`${j}-YYYY-MM-DD${M}`.length}function De(e){try{let n=t.readdirSync(e,{withFileTypes:!0}),i=Date.now()-864e5;for(let a of n){if(!a.isFile()||!a.name.startsWith(`${j}-`)||!a.name.endsWith(M))continue;let n=r.join(e,a.name);try{t.statSync(n).mtimeMs<i&&t.rmSync(n,{force:!0})}catch{}}}catch{}}const R={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},Oe=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,z=process.env.NO_COLOR&&!Oe?new s({level:0}):o,B=e=>z.hex(e),V={accent:B(R.accent),accentBright:B(R.accentBright),accentDim:B(R.accentDim),info:B(R.info),success:B(R.success),warn:B(R.warn),error:B(R.error),muted:B(R.muted),heading:z.bold.hex(R.accent),command:B(R.accentBright),option:B(R.warn)},ke=()=>z.level>0,Ae=(e,t,n)=>e?t(n):n;let H=!1;function je(e){H=e}function U(){return H}function W(){return H||F(`debug`)}function Me(e){if(W()){try{L().debug({message:e},`verbose`)}catch{}H&&console.log(V.muted(e))}}function Ne(e){H&&console.log(V.muted(e))}function Pe(){return!1}const Fe=V.success,Ie=V.warn,Le=V.info,Re=V.error;let G=null;function ze(e){e.isTTY&&(G=e)}function K(){G?.isTTY&&G.write(`\r\x1B[2K`)}function Be(e){G&&(e&&G!==e||(G=null))}function q(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Ve(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1;try{K()}catch(t){q(`progress line`,t,e)}let r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){q(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){q(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){q(`stdout reset`,t,e)}}function He(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function Ue(){return{log:(...e)=>{He()&&(K(),console.log(...e))},error:(...e)=>{K(),console.error(...e)}}}const We={...Ue(),exit:e=>{throw Ve(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};function Ge(){return{...Ue(),exit:e=>{throw Error(`exit ${e}`)}}}const Ke=RegExp(`\\x1b\\[[0-9;]*m`,`g`),qe=RegExp(`\\x1b\\]8;;.*?\\x1b\\\\|\\x1b\\]8;;\\x1b\\\\`,`g`),Je=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function J(e){return e.replace(qe,``).replace(Ke,``)}function Ye(e){if(!e)return[];if(!Je)return Array.from(e);try{return Array.from(Je.segment(e),e=>e.segment)}catch{return Array.from(e)}}function Xe(e){let t=J(e);for(let e=0;e<=31;e++)t=t.replaceAll(String.fromCharCode(e),``);return t.replaceAll(``,``)}function Ze(e){return e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=65024&&e<=65039||e===8205}function Qe(e){return e<4352?!1:e<=4447||e===9001||e===9002||e>=11904&&e<=12871&&e!==12351||e>=12880&&e<=19903||e>=19968&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510||e>=110576&&e<=110579||e>=110581&&e<=110587||e>=110589&&e<=110590||e>=110592&&e<=111359||e>=127488&&e<=127569||e>=131072&&e<=262141}const $e=/[\p{Extended_Pictographic}\p{Regional_Indicator}\u20e3]/u;function et(e){if(!e)return 0;if($e.test(e))return 2;let t=!1;for(let n of e){let e=n.codePointAt(0);if(e!=null&&!Ze(e)){if(Qe(e))return 2;t=!0}}return t?1:0}function tt(e){return Ye(J(e)).reduce((e,t)=>e+et(t),0)}const nt=k(import.meta.url);let rt=()=>{try{return(nt?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function it(e){return U()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:E(e,`info`)}function at(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function ot(){let e=le();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!U()&&!e&&!O.overrideSettings)return{level:`silent`,style:at(void 0)};let t=O.overrideSettings??C();if(!t)if(O.resolvingConsoleSettings)t=void 0;else{O.resolvingConsoleSettings=!0;try{t=rt()}finally{O.resolvingConsoleSettings=!1}}return{level:e??it(t?.consoleLevel),style:at(t?.consoleStyle)}}function st(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function Y(){let e=ot(),t=O.cachedConsoleSettings;return(!t||st(t,e))&&(O.cachedConsoleSettings=e),O.cachedConsoleSettings}function ct(){O.forceConsoleToStderr=!0}function lt(e){if(!e||e.length===0){O.consoleSubsystemFilter=null;return}let t=e.map(e=>e.trim()).filter(e=>e.length>0);O.consoleSubsystemFilter=t.length>0?t:null}function ut(e){O.consoleTimestampPrefix=e}function X(e){let t=O.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}const dt=[`Closing session:`,`Opening session:`,`Removing old closed session:`,`Session already closed`,`Session already open`];function ft(e){return U()?!1:!!(dt.some(t=>e.startsWith(t))||e.startsWith(`[EventQueue] Slow listener detected`)&&e.includes(`DiscordMessageListener`))}function Z(e){let t=e?.code;return t===`EPIPE`||t===`EIO`}function Q(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:A(t)}function pt(e){return/^(?:\d{2}:\d{2}:\d{2}|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)/.test(e)}function mt(e){let t=e.trim();if(!t.startsWith(`{`)&&!t.startsWith(`[`))return!1;try{return JSON.parse(t),!0}catch{return!1}}function ht(){if(O.consolePatched)return;if(O.consolePatched=!0,!O.streamErrorHandlersInstalled){O.streamErrorHandlersInstalled=!0;for(let e of[process.stdout,process.stderr])e.on(`error`,e=>{if(!Z(e))throw e})}let e=null,t=()=>(e||=L(),e),n={log:console.log,info:console.info,warn:console.warn,error:console.error,debug:console.debug,trace:console.trace};O.rawConsole={log:n.log,info:n.info,warn:n.warn,error:n.error};let r=(e,n)=>(...r)=>{let i=c.format(...r);if(ft(i))return;let a=J(i).trimStart(),o=O.consoleTimestampPrefix&&a.length>0&&!pt(a)&&!mt(a)?Q(Y().style):``;try{let n=t();e===`trace`?n.trace(i):e===`debug`?n.debug(i):e===`info`?n.info(i):e===`warn`?n.warn(i):e===`error`||e===`fatal`?n.error(i):n.info(i)}catch{}if(O.forceConsoleToStderr)try{let e=o?`${o} ${i}`:i;process.stderr.write(`${e}\n`)}catch(e){if(Z(e))return;throw e}else try{if(!o){n.apply(console,r);return}if(r.length===0){n.call(console,o);return}if(typeof r[0]==`string`){n.call(console,`${o} ${r[0]}`,...r.slice(1));return}n.call(console,o,...r)}catch(e){if(Z(e))return;throw e}};console.log=r(`info`,n.log),console.info=r(`info`,n.info),console.warn=r(`warn`,n.warn),console.error=r(`error`,n.error),console.debug=r(`debug`,n.debug),console.trace=r(`trace`,n.trace)}function gt(e,t){return t.level===`silent`?!1:D(e)<=D(t.level)}const _t=(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function vt(e){if(typeof e==`string`)return e;if(_t)return _t(e);try{return JSON.stringify(e)}catch{return String(e)}}function yt(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function bt(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new s({level:0}):process.stdout.isTTY||process.stderr.isTTY||yt()?new s({level:1}):new s({level:0})}const xt=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],St={"gmail-watcher":`blue`},Ct=[`gateway`,`channels`,`providers`],wt=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function Tt(e,t){let n=St[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[xt[Math.abs(r)%xt.length]]}function Et(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&Ct.includes(t[0]);)t.shift();return t.length===0?n:wt.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function Dt(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function Ot(e){let t=e.style===`json`?e.subsystem:Et(e.subsystem);if(e.style===`json`)return JSON.stringify({time:Q(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=bt(),r=`[${t}]`,i=Tt(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=Dt(e.message,t);return`${[e.style===`pretty`?n.gray(Q(`pretty`)):O.consoleTimestampPrefix?n.gray(Q(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function kt(e,t){K();let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=O.rawConsole??console;O.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function At(e){return U()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function jt(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function $(e){let t=null,n=()=>(t||=xe({subsystem:e}),t),r=(t,r,i)=>{let a=Y(),o=gt(t,{level:a.level})&&X(e),s=F(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&jt(n(),t,r,l),!o)return;let u=c??r;At({level:t,subsystem:e,message:u,meta:l})||kt(t,Ot({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>gt(t,{level:Y().level})&&X(e),a=e=>F(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&jt(n(),`info`,t,{raw:!0}),i(`info`)){if(At({level:`info`,subsystem:e,message:t}))return;kt(`info`,t)}},child:t=>$(`${e}/${t}`)}}function Mt(e,t=We.exit){let n=(...e)=>e.map(e=>vt(e)).join(` `).trim();return{log:(...t)=>e.info(n(...t)),error:(...t)=>e.error(n(...t)),exit:t}}export{d as $,V as A,T as B,Ne as C,Ie as D,Fe as E,A as F,ie as G,S as H,ue as I,te as J,ne as K,k as L,L as M,Ce as N,Ae as O,Se as P,f as Q,w as R,Me as S,W as T,ae as U,C as V,b as W,oe as X,y as Y,h as Z,Be as _,lt as a,U as b,Xe as c,tt as d,Ge as f,ze as g,K as h,ct as i,xe as j,ke as k,Ye as l,Ve as m,Mt as n,ut as o,We as p,v as q,ht as r,X as s,$ as t,J as u,Re as v,je as w,Pe as x,Le as y,E as z};
|
|
2
|
+
//# sourceMappingURL=subsystem-C5XF2Fy5.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{A as e,p as t,v as n}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-T8DuH3ax.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./call-B8Fb4_oh.js";import{t as r}from"./links-CBnmRP9D.js";import"./progress-d1m2sqR1.js";import{n as i,t as a}from"./gateway-rpc-tEEvY0kH.js";const o=e=>{let t=typeof e==`string`?e.trim():``;if(!t)return`next-heartbeat`;if(t===`now`||t===`next-heartbeat`)return t;throw Error(`--mode must be now or next-heartbeat`)};async function s(e,r,i){try{let n=await r();e.json||i===void 0?t.log(JSON.stringify(n,null,2)):t.log(i)}catch(e){t.error(n(String(e))),t.exit(1)}}function c(t){let n=t.command(`system`).description(`System tools (events, heartbeat, presence)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${r(`/cli/system`,`docs.openclaw.ai/cli/system`)}\n`);a(n.command(`event`).description(`Enqueue a system event and optionally trigger a heartbeat`).requiredOption(`--text <text>`,`System event text`).option(`--mode <mode>`,`Wake mode (now|next-heartbeat)`,`next-heartbeat`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>{let t=typeof e.text==`string`?e.text.trim():``;if(!t)throw Error(`--text is required`);return await i(`wake`,e,{mode:o(e.mode),text:t},{expectFinal:!1})},`ok`)});let c=n.command(`heartbeat`).description(`Heartbeat controls`);a(c.command(`last`).description(`Show the last heartbeat event`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`last-heartbeat`,e,void 0,{expectFinal:!1}))}),a(c.command(`enable`).description(`Enable heartbeats`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`set-heartbeats`,e,{enabled:!0},{expectFinal:!1}))}),a(c.command(`disable`).description(`Disable heartbeats`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`set-heartbeats`,e,{enabled:!1},{expectFinal:!1}))}),a(n.command(`presence`).description(`List system presence entries`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`system-presence`,e,void 0,{expectFinal:!1}))})}export{c as registerSystemCli};
|
|
2
|
+
//# sourceMappingURL=system-cli-CeZfoVPN.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import"./paths-B4IRk3wi.js";import{A as e,p as t,v as n}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BlC_rXAN.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./call-CqoMqP5b.js";import{t as r}from"./links-CySwdMcF.js";import"./progress-LNttnI-y.js";import{n as i,t as a}from"./gateway-rpc-iFvDyHYd.js";const o=e=>{let t=typeof e==`string`?e.trim():``;if(!t)return`next-heartbeat`;if(t===`now`||t===`next-heartbeat`)return t;throw Error(`--mode must be now or next-heartbeat`)};async function s(e,r,i){try{let n=await r();e.json||i===void 0?t.log(JSON.stringify(n,null,2)):t.log(i)}catch(e){t.error(n(String(e))),t.exit(1)}}function c(t){let n=t.command(`system`).description(`System tools (events, heartbeat, presence)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${r(`/cli/system`,`docs.openclaw.ai/cli/system`)}\n`);a(n.command(`event`).description(`Enqueue a system event and optionally trigger a heartbeat`).requiredOption(`--text <text>`,`System event text`).option(`--mode <mode>`,`Wake mode (now|next-heartbeat)`,`next-heartbeat`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>{let t=typeof e.text==`string`?e.text.trim():``;if(!t)throw Error(`--text is required`);return await i(`wake`,e,{mode:o(e.mode),text:t},{expectFinal:!1})},`ok`)});let c=n.command(`heartbeat`).description(`Heartbeat controls`);a(c.command(`last`).description(`Show the last heartbeat event`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`last-heartbeat`,e,void 0,{expectFinal:!1}))}),a(c.command(`enable`).description(`Enable heartbeats`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`set-heartbeats`,e,{enabled:!0},{expectFinal:!1}))}),a(c.command(`disable`).description(`Disable heartbeats`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`set-heartbeats`,e,{enabled:!1},{expectFinal:!1}))}),a(n.command(`presence`).description(`List system presence entries`).option(`--json`,`Output JSON`,!1)).action(async e=>{await s(e,async()=>await i(`system-presence`,e,void 0,{expectFinal:!1}))})}export{c as registerSystemCli};
|
|
2
|
+
//# sourceMappingURL=system-cli-DZkTYB9d.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Gs as e,Hs as t,Is as n,Ks as r,Rs as i,Vs as a,Ws as o,qs as s}from"./auth-profiles-T8DuH3ax.js";import{b as c}from"./env-overrides-DHtB4kK3.js";import{P as l}from"./plugins-DNlgeTTc.js";import u from"node:crypto";function d(e){return typeof e==`string`&&e.trim()||null}function f(e){return Array.isArray(e)?l(e):[]}function p(e){if(e===void 0)return;if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=typeof t.argvIndex==`number`&&Number.isInteger(t.argvIndex)&&t.argvIndex>=0?t.argvIndex:null,r=d(t.path),i=d(t.sha256);return n===null||!r||!i?null:{argvIndex:n,path:r,sha256:i}}function m(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=f(t.argv);if(n.length===0)return null;let r=p(t.mutableFileOperand);if(t.mutableFileOperand!==void 0&&r===null)return null;let i=d(t.commandText)??d(t.rawCommand);return i?{argv:n,cwd:d(t.cwd),commandText:i,commandPreview:d(t.commandPreview),agentId:d(t.agentId),sessionKey:d(t.sessionKey),mutableFileOperand:r??void 0}:null}function h(e){if(!e||typeof e!=`object`||Array.isArray(e))return[];let t=[];for(let[n,r]of Object.entries(e)){if(typeof r!=`string`)continue;let e=c(n,{portable:!0});e&&t.push([e,r])}return t.sort((e,t)=>e[0].localeCompare(t[0])),t}function g(e){return e.length===0?null:u.createHash(`sha256`).update(JSON.stringify(e)).digest(`hex`)}function _(e){let t=h(e);return{envHash:g(t),envKeys:t.map(([e])=>e)}}function v(e){let t=_(e.env);return{binding:{argv:f(e.argv),cwd:d(e.cwd),agentId:d(e.agentId),sessionKey:d(e.sessionKey),envHash:t.envHash},envKeys:t.envKeys}}function y(e,t){if(e.length===0||e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function b(e){return{ok:!1,code:`APPROVAL_REQUEST_MISMATCH`,message:`approval id does not match request`,details:e}}function x(e){return!e.expectedEnvHash&&!e.actualEnvHash?{ok:!0}:!e.expectedEnvHash&&e.actualEnvHash?{ok:!1,code:`APPROVAL_ENV_BINDING_MISSING`,message:`approval id missing env binding for requested env overrides`,details:{envKeys:e.actualEnvKeys}}:e.expectedEnvHash===e.actualEnvHash?{ok:!0}:{ok:!1,code:`APPROVAL_ENV_MISMATCH`,message:`approval id env binding mismatch`,details:{envKeys:e.actualEnvKeys,expectedEnvHash:e.expectedEnvHash,actualEnvHash:e.actualEnvHash}}}function S(e){return!y(e.expected.argv,e.actual.argv)||e.expected.cwd!==e.actual.cwd||e.expected.agentId!==e.actual.agentId||e.expected.sessionKey!==e.actual.sessionKey?b():x({expectedEnvHash:e.expected.envHash,actualEnvHash:e.actual.envHash,actualEnvKeys:e.actualEnvKeys})}function C(e){return b({envKeys:e.actualEnvKeys})}function w(e){let t={code:e.match.code,runId:e.runId};return e.match.details&&Object.assign(t,e.match.details),{ok:!1,message:e.match.message,details:t}}function T(e){return e.map(e=>e.length===0?`""`:/\s|"/.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e).join(` `)}const E=new Set([`ash`,`bash`,`dash`,`fish`,`ksh`,`powershell`,`pwsh`,`sh`,`zsh`]);function D(e){let n=t(e),r=o(n);return r.kind===`unwrapped`?r.argv:n}function O(t){let n=D(t),i=n[0]?.trim();if(!i)return!1;let o=a(i);if(!E.has(o))return!1;let c=o===`powershell`||o===`pwsh`?s(n,r).valueTokenIndex:s(n,e,{allowCombinedC:!0}).valueTokenIndex;return c===null?!1:n.slice(c+1).some(e=>e.trim().length>0)}function k(e){let t=n(e),r=t.command,a=O(e),o=t.isWrapper&&i(e);return{shellPayload:r,commandText:T(e),previewText:r!==null&&!o&&!a?r.trim():null}}function A(e){return typeof e==`string`&&e.trim().length>0?e.trim():null}function j(e){let t=A(e.rawCommand),n=k(e.argv);if(t){let r=t===n.commandText,i=e.allowLegacyShellText===!0&&n.previewText!==null&&t===n.previewText;if(!r&&!i)return{ok:!1,message:`INVALID_REQUEST: rawCommand does not match command`,details:{code:`RAW_COMMAND_MISMATCH`,rawCommand:t,inferred:n.commandText,formattedArgv:n.commandText}}}return{ok:!0,shellPayload:n.shellPayload,commandText:n.commandText,previewText:n.previewText}}function M(e){let t=A(e.rawCommand),n=Array.isArray(e.command)?e.command:[];if(n.length===0)return t?{ok:!1,message:`rawCommand requires params.command`,details:{code:`MISSING_COMMAND`}}:{ok:!0,argv:[],commandText:``,shellPayload:null,previewText:null};let r=n.map(e=>String(e)),i=j({argv:r,rawCommand:t,allowLegacyShellText:!0});return i.ok?{ok:!0,argv:r,commandText:i.commandText,shellPayload:i.shellPayload,previewText:i.previewText}:{ok:!1,message:i.message,details:i.details??{code:`RAW_COMMAND_MISMATCH`}}}export{C as a,d as c,S as i,f as l,M as n,m as o,v as r,w as s,T as t};
|
|
2
|
+
//# sourceMappingURL=system-run-command-BKfMiqQM.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{$c as e,al as t,cl as n,il as r,ll as i,sl as a,tl as o,ul as s}from"./model-selection-BlC_rXAN.js";import{b as c}from"./env-overrides-DXJbFrwI.js";import{P as l}from"./plugins-CYLrFT4h.js";import u from"node:crypto";function d(e){return typeof e==`string`&&e.trim()||null}function f(e){return Array.isArray(e)?l(e):[]}function p(e){if(e===void 0)return;if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=typeof t.argvIndex==`number`&&Number.isInteger(t.argvIndex)&&t.argvIndex>=0?t.argvIndex:null,r=d(t.path),i=d(t.sha256);return n===null||!r||!i?null:{argvIndex:n,path:r,sha256:i}}function m(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=f(t.argv);if(n.length===0)return null;let r=p(t.mutableFileOperand);if(t.mutableFileOperand!==void 0&&r===null)return null;let i=d(t.commandText)??d(t.rawCommand);return i?{argv:n,cwd:d(t.cwd),commandText:i,commandPreview:d(t.commandPreview),agentId:d(t.agentId),sessionKey:d(t.sessionKey),mutableFileOperand:r??void 0}:null}function h(e){if(!e||typeof e!=`object`||Array.isArray(e))return[];let t=[];for(let[n,r]of Object.entries(e)){if(typeof r!=`string`)continue;let e=c(n,{portable:!0});e&&t.push([e,r])}return t.sort((e,t)=>e[0].localeCompare(t[0])),t}function g(e){return e.length===0?null:u.createHash(`sha256`).update(JSON.stringify(e)).digest(`hex`)}function _(e){let t=h(e);return{envHash:g(t),envKeys:t.map(([e])=>e)}}function v(e){let t=_(e.env);return{binding:{argv:f(e.argv),cwd:d(e.cwd),agentId:d(e.agentId),sessionKey:d(e.sessionKey),envHash:t.envHash},envKeys:t.envKeys}}function y(e,t){if(e.length===0||e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function b(e){return{ok:!1,code:`APPROVAL_REQUEST_MISMATCH`,message:`approval id does not match request`,details:e}}function x(e){return!e.expectedEnvHash&&!e.actualEnvHash?{ok:!0}:!e.expectedEnvHash&&e.actualEnvHash?{ok:!1,code:`APPROVAL_ENV_BINDING_MISSING`,message:`approval id missing env binding for requested env overrides`,details:{envKeys:e.actualEnvKeys}}:e.expectedEnvHash===e.actualEnvHash?{ok:!0}:{ok:!1,code:`APPROVAL_ENV_MISMATCH`,message:`approval id env binding mismatch`,details:{envKeys:e.actualEnvKeys,expectedEnvHash:e.expectedEnvHash,actualEnvHash:e.actualEnvHash}}}function S(e){return!y(e.expected.argv,e.actual.argv)||e.expected.cwd!==e.actual.cwd||e.expected.agentId!==e.actual.agentId||e.expected.sessionKey!==e.actual.sessionKey?b():x({expectedEnvHash:e.expected.envHash,actualEnvHash:e.actual.envHash,actualEnvKeys:e.actualEnvKeys})}function C(e){return b({envKeys:e.actualEnvKeys})}function w(e){let t={code:e.match.code,runId:e.runId};return e.match.details&&Object.assign(t,e.match.details),{ok:!1,message:e.match.message,details:t}}function T(e){return e.map(e=>e.length===0?`""`:/\s|"/.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e).join(` `)}const E=new Set([`ash`,`bash`,`dash`,`fish`,`ksh`,`powershell`,`pwsh`,`sh`,`zsh`]);function D(e){let n=t(e),r=a(n);return r.kind===`unwrapped`?r.argv:n}function O(e){let t=D(e),a=t[0]?.trim();if(!a)return!1;let o=r(a);if(!E.has(o))return!1;let c=o===`powershell`||o===`pwsh`?s(t,i).valueTokenIndex:s(t,n,{allowCombinedC:!0}).valueTokenIndex;return c===null?!1:t.slice(c+1).some(e=>e.trim().length>0)}function k(t){let n=e(t),r=n.command,i=O(t),a=n.isWrapper&&o(t);return{shellPayload:r,commandText:T(t),previewText:r!==null&&!a&&!i?r.trim():null}}function A(e){return typeof e==`string`&&e.trim().length>0?e.trim():null}function j(e){let t=A(e.rawCommand),n=k(e.argv);if(t){let r=t===n.commandText,i=e.allowLegacyShellText===!0&&n.previewText!==null&&t===n.previewText;if(!r&&!i)return{ok:!1,message:`INVALID_REQUEST: rawCommand does not match command`,details:{code:`RAW_COMMAND_MISMATCH`,rawCommand:t,inferred:n.commandText,formattedArgv:n.commandText}}}return{ok:!0,shellPayload:n.shellPayload,commandText:n.commandText,previewText:n.previewText}}function M(e){let t=A(e.rawCommand),n=Array.isArray(e.command)?e.command:[];if(n.length===0)return t?{ok:!1,message:`rawCommand requires params.command`,details:{code:`MISSING_COMMAND`}}:{ok:!0,argv:[],commandText:``,shellPayload:null,previewText:null};let r=n.map(e=>String(e)),i=j({argv:r,rawCommand:t,allowLegacyShellText:!0});return i.ok?{ok:!0,argv:r,commandText:i.commandText,shellPayload:i.shellPayload,previewText:i.previewText}:{ok:!1,message:i.message,details:i.details??{code:`RAW_COMMAND_MISMATCH`}}}export{C as a,d as c,S as i,f as l,M as n,m as o,v as r,w as s,T as t};
|
|
2
|
+
//# sourceMappingURL=system-run-command-DEWnZE0r.js.map
|
package/dist/systemd-D7odsu4K.js
CHANGED
|
@@ -3,3 +3,4 @@ import{A as e,O as t,k as n}from"./subsystem-C5XF2Fy5.js";import{n as r,t as i}f
|
|
|
3
3
|
`).map(e=>e.trim()).find(e=>e.startsWith(`Linger=`))?.split(`=`)[1]?.trim().toLowerCase();if(n===`yes`||n===`no`)return{user:t,linger:n}}catch{}return null}async function T(e){let t=e.user??w(e.env);if(!t)return{ok:!1,stdout:``,stderr:`Missing user`,code:1};let n=[...(typeof process.getuid!=`function`||process.getuid()!==0)&&e.sudoMode!==void 0?[`sudo`,...e.sudoMode===`non-interactive`?[`-n`]:[]]:[],`loginctl`,`enable-linger`,t];try{let e=await i(n,{timeoutMs:3e4});return{ok:e.code===0,stdout:e.stdout,stderr:e.stderr,code:e.code??1}}catch(e){return{ok:!1,stdout:``,stderr:e instanceof Error?e.message:String(e),code:1}}}const E=/[\r\n]/;function D(e,t){if(E.test(e))throw Error(`${t} cannot contain CR or LF characters.`)}function O(e){return D(e,`Systemd unit values`),/[\s"\\]/.test(e)?`"${e.replace(/\\\\/g,`\\\\\\\\`).replace(/"/g,`\\\\"`)}"`:e}function k(e){if(!e)return[];let t=Object.entries(e).filter(([,e])=>typeof e==`string`&&e.trim());return t.length===0?[]:t.map(([e,t])=>{let n=t??``;return D(e,`Systemd environment variable names`),D(n,`Systemd environment variable values`),`Environment=${O(`${e}=${n.trim()}`)}`})}function A({description:e,programArguments:t,workingDirectory:n,environment:r}){let i=t.map(O).join(` `),a=e?.trim()||`OpenClaw Gateway`;D(a,`Systemd Description`);let o=`Description=${a}`,s=n?`WorkingDirectory=${O(n)}`:null,c=k(r);return[`[Unit]`,o,`After=network-online.target`,`Wants=network-online.target`,``,`[Service]`,`ExecStart=${i}`,`Restart=always`,`RestartSec=5`,`TimeoutStopSec=30`,`TimeoutStartSec=30`,`SuccessExitStatus=0 143`,`KillMode=control-group`,s,...c,``,`[Install]`,`WantedBy=default.target`,``].filter(e=>e!==null).join(`
|
|
4
4
|
`)}function re(e){return d(e,{escapeMode:`backslash`})}function ie(e){let t=e.trim();if(!t)return null;let n=(()=>{if(!(t.startsWith(`"`)&&t.endsWith(`"`)))return t;let e=``,n=!1;for(let r of t.slice(1,-1)){if(n){e+=r,n=!1;continue}if(r===`\\\\`){n=!0;continue}e+=r}return e})(),r=n.indexOf(`=`);if(r<=0)return null;let i=n.slice(0,r).trim();return i?{key:i,value:n.slice(r+1)}:null}function j(e,t){let n=_(b(e));return p.posix.join(n,`.config`,`systemd`,`user`,`${t}.service`)}function M(e){let t=e.OPENCLAW_SYSTEMD_UNIT?.trim();return t?t.endsWith(`.service`)?t.slice(0,-8):t:u(e.OPENCLAW_PROFILE)}function N(e){return j(e,M(e))}function ae(e){return N(e)}async function oe(e){let t=N(e);try{let n=await m.readFile(t,`utf8`),r=``,i=``,a={},o=[];for(let e of n.split(`
|
|
5
5
|
`)){let t=e.trim();if(!(!t||t.startsWith(`#`))){if(t.startsWith(`ExecStart=`))r=t.slice(10).trim();else if(t.startsWith(`WorkingDirectory=`))i=t.slice(17).trim();else if(t.startsWith(`Environment=`)){let e=ie(t.slice(12).trim());e&&(a[e.key]=e.value)}else if(t.startsWith(`EnvironmentFile=`)){let e=t.slice(16).trim();e&&o.push(e)}}}if(!r)return null;let s=await z({environmentFileSpecs:o,env:e,unitPath:t}),c={...a,...s.environment},l={...P(a,`inline`),...P(s.environment,`file`)};return{programArguments:re(r),...i?{workingDirectory:i}:{},...Object.keys(c).length>0?{environment:c}:{},...Object.keys(l).length>0?{environmentValueSources:l}:{},sourcePath:t}}catch{return null}}function P(e,t){return Object.fromEntries(Object.keys(e).map(e=>[e,t]))}function F(e,t){return e.replaceAll(`%h`,_(b(t)))}function I(e){return d(e,{escapeMode:`backslash`}).map(e=>e.trim()).filter(Boolean)}function L(e){let t=e.trim();if(!t||t.startsWith(`#`)||t.startsWith(`;`))return null;let n=t.indexOf(`=`);if(n<=0)return null;let r=t.slice(0,n).trim();if(!r)return null;let i=t.slice(n+1).trim();return i.length>=2&&(i.startsWith(`"`)&&i.endsWith(`"`)||i.startsWith(`'`)&&i.endsWith(`'`))&&(i=i.slice(1,-1)),{key:r,value:i}}async function R(e){let t={},n=await m.readFile(e,`utf8`);for(let e of n.split(/\r?\n/)){let n=L(e);n&&(t[n.key]=n.value)}return t}async function z(e){let t={};if(e.environmentFileSpecs.length===0)return{environment:t};let n=p.posix.dirname(e.unitPath);for(let r of e.environmentFileSpecs)for(let i of I(r)){let r=i.startsWith(`-`)?i.slice(1).trim():i;if(!r)continue;let a=F(r,e.env),o=p.posix.isAbsolute(a)?a:p.posix.resolve(n,a);try{let e=await R(o);Object.assign(t,e)}catch{continue}}return{environment:t}}function B(e){let t=C(e,`=`),n={},r=t.activestate;r&&(n.activeState=r);let i=t.substate;i&&(n.subState=i);let s=t.mainpid;if(s){let e=a(s);e!==void 0&&(n.mainPid=e)}let c=t.execmainstatus;if(c){let e=o(c);e!==void 0&&(n.execMainStatus=e)}let l=t.execmaincode;return l&&(n.execMainCode=l),n}async function V(e){return await g(`systemctl`,e)}function H(e){return`${e.stderr} ${e.stdout}`.trim()}function U(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`not found`)||t.includes(`no such file or directory`)||t.includes(`spawn systemctl enoent`)||t.includes(`spawn systemctl eacces`)}function W(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`disabled`)||t.includes(`static`)||t.includes(`indirect`)||t.includes(`masked`)||t.includes(`not-found`)||t.includes(`could not be found`)||t.includes(`failed to get unit file state`)}function G(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`failed to connect to bus`)||t.includes(`failed to connect to user scope bus`)||t.includes(`dbus_session_bus_address`)||t.includes(`xdg_runtime_dir`)||t.includes(`no medium found`)}function K(e){if(!e)return!1;let t=e.toLowerCase();return U(t)||G(t)||t.includes(`not been booted`)||t.includes(`not supported`)}function q(e){if(!e)return!1;let t=e.toLowerCase().trim();return t.startsWith(`command failed: systemctl`)&&t.includes(` is-enabled `)&&!t.includes(`permission denied`)&&!t.includes(`access denied`)&&!t.includes(`no space left`)&&!t.includes(`read-only file system`)&&!t.includes(`out of memory`)&&!t.includes(`cannot allocate memory`)}function se(e){let t=e instanceof Error?e.message:typeof e==`string`?e:``;if(!t)return!1;let n=t.toLowerCase();return G(n)||q(n)}function ce(){return[`--user`]}function le(e){let t=e.SUDO_USER?.trim();if(t&&t!==`root`)return t;let n=e.USER?.trim()||e.LOGNAME?.trim();if(n)return n;try{return f.userInfo().username}catch{return null}}function J(e){let t=e.trim();return t?[`--machine`,`${t}@`,`--user`]:[]}function ue(e){let t=e.toLowerCase();return t.includes(`failed to connect to bus`)||t.includes(`failed to connect to user scope bus`)||t.includes(`dbus_session_bus_address`)||t.includes(`xdg_runtime_dir`)}async function Y(e,t){let n=le(e),r=e.SUDO_USER?.trim();if(r&&r!==`root`&&n){let e=J(n);if(e.length>0)return await V([...e,...t])}let i=await V([...ce(),...t]);if(i.code===0)return i;let a=`${i.stderr} ${i.stdout}`.trim();if(!n||!ue(a))return i;let o=J(n);return o.length===0?i:await V([...o,...t])}async function de(e=process.env){let t=await Y(e,[`status`]);if(t.code===0)return!0;let n=`${t.stderr} ${t.stdout}`.trim();return n?!K(n):!1}async function X(e=process.env){let t=await Y(e,[`status`]);if(t.code===0)return;let n=H(t);if(U(n))throw Error(`systemctl not available; systemd user services are required on Linux.`);if(!n)throw Error(`systemctl --user unavailable: unknown error`);if(K(n))throw Error(`systemctl --user unavailable: ${n||`unknown error`}`.trim())}async function fe({env:e,stdout:t,programArguments:n,workingDirectory:r,environment:i,description:a}){await X(e);let o=N(e);await m.mkdir(p.dirname(o),{recursive:!0});let s=!1;try{await m.access(o);let e=`${o}.bak`;await m.copyFile(o,e),s=!0}catch{}let c=A({description:l({env:e,environment:i,description:a}),programArguments:n,workingDirectory:r,environment:i});await m.writeFile(o,c,`utf8`);let d=`${u(e.OPENCLAW_PROFILE)}.service`,f=await Y(e,[`daemon-reload`]);if(f.code!==0)throw Error(`systemctl daemon-reload failed: ${f.stderr||f.stdout}`.trim());let h=await Y(e,[`enable`,d]);if(h.code!==0)throw Error(`systemctl enable failed: ${h.stderr||h.stdout}`.trim());let g=await Y(e,[`restart`,d]);if(g.code!==0)throw Error(`systemctl restart failed: ${g.stderr||g.stdout}`.trim());return y(t,[{label:`Installed systemd service`,value:o},...s?[{label:`Previous unit backed up to`,value:`${o}.bak`}]:[]],{leadingBlankLine:!0}),{unitPath:o}}async function pe({env:e,stdout:t}){await X(e),await Y(e,[`disable`,`--now`,`${u(e.OPENCLAW_PROFILE)}.service`]);let n=N(e);try{await m.unlink(n),t.write(`${v(`Removed systemd service`,n)}\n`)}catch{t.write(`Systemd service not found at ${n}\n`)}}async function Z(e){let t=e.env??process.env;await X(t);let n=`${M(t)}.service`,r=await Y(t,[e.action,n]);if(r.code!==0)throw Error(`systemctl ${e.action} failed: ${r.stderr||r.stdout}`.trim());e.stdout.write(`${v(e.label,n)}\n`)}async function me({stdout:e,env:t}){await Z({stdout:e,env:t,action:`stop`,label:`Stopped systemd service`})}async function Q({stdout:e,env:t}){return await Z({stdout:e,env:t,action:`restart`,label:`Restarted systemd service`}),{outcome:`completed`}}async function he(e){let t=e.env??process.env;try{await m.access(N(t))}catch(e){if(e.code===`ENOENT`)return!1;throw e}let n=await Y(t,[`is-enabled`,`${M(t)}.service`]);if(n.code===0)return!0;let r=H(n);if(U(r)||W(r))return!1;throw Error(`systemctl is-enabled unavailable: ${r||`unknown error`}`.trim())}async function ge(e=process.env){try{await X(e)}catch(e){return{status:`unknown`,detail:e instanceof Error?e.message:String(e)}}let t=await Y(e,[`show`,`${M(e)}.service`,`--no-page`,`--property`,`ActiveState,SubState,MainPID,ExecMainStatus,ExecMainCode`]);if(t.code!==0){let e=(t.stderr||t.stdout).trim(),n=e.toLowerCase().includes(`not found`);return{status:n?`stopped`:`unknown`,detail:e||void 0,missingUnit:n}}let n=B(t.stdout||``),r=n.activeState?.toLowerCase();return{status:r===`active`?`running`:r?`stopped`:`unknown`,state:n.activeState,subState:n.subState,pid:n.mainPid,lastExitStatus:n.execMainStatus,lastExitReason:n.execMainCode}}async function $(e){let t=await Y(e,[`status`]);return t.code===0?!0:!U(H(t))}async function _e(e){let t=[],n=await $(e);for(let r of s){let i=j(e,r),a=!1;try{await m.access(i),a=!0}catch{}let o=!1;n&&(o=(await Y(e,[`is-enabled`,`${r}.service`])).code===0),(a||o)&&t.push({name:r,unitPath:i,enabled:o,exists:a})}return t}async function ve({env:e,stdout:t}){let n=await _e(e);if(n.length===0)return n;let r=await $(e);for(let i of n){r?await Y(e,[`disable`,`--now`,`${i.name}.service`]):t.write(`systemctl unavailable; removed legacy unit file only: ${i.name}.service\n`);try{await m.unlink(i.unitPath),t.write(`${v(`Removed legacy systemd service`,i.unitPath)}\n`)}catch{t.write(`Legacy systemd unit not found at ${i.unitPath}\n`)}}return n}export{v as _,oe as a,g as b,Q as c,pe as d,T as f,b as g,S as h,de as i,me as l,C as m,se as n,ge as o,ne as p,he as r,ae as s,fe as t,ve as u,_ as v,y};
|
|
6
|
+
//# sourceMappingURL=systemd-D7odsu4K.js.map
|
package/dist/systemd-DbevZh65.js
CHANGED
|
@@ -3,3 +3,4 @@ import{A as e,O as t,k as n}from"./subsystem-BLbY429l.js";import{n as r,t as i}f
|
|
|
3
3
|
`).map(e=>e.trim()).find(e=>e.startsWith(`Linger=`))?.split(`=`)[1]?.trim().toLowerCase();if(n===`yes`||n===`no`)return{user:t,linger:n}}catch{}return null}async function T(e){let t=e.user??w(e.env);if(!t)return{ok:!1,stdout:``,stderr:`Missing user`,code:1};let n=[...(typeof process.getuid!=`function`||process.getuid()!==0)&&e.sudoMode!==void 0?[`sudo`,...e.sudoMode===`non-interactive`?[`-n`]:[]]:[],`loginctl`,`enable-linger`,t];try{let e=await i(n,{timeoutMs:3e4});return{ok:e.code===0,stdout:e.stdout,stderr:e.stderr,code:e.code??1}}catch(e){return{ok:!1,stdout:``,stderr:e instanceof Error?e.message:String(e),code:1}}}const E=/[\r\n]/;function D(e,t){if(E.test(e))throw Error(`${t} cannot contain CR or LF characters.`)}function O(e){return D(e,`Systemd unit values`),/[\s"\\]/.test(e)?`"${e.replace(/\\\\/g,`\\\\\\\\`).replace(/"/g,`\\\\"`)}"`:e}function k(e){if(!e)return[];let t=Object.entries(e).filter(([,e])=>typeof e==`string`&&e.trim());return t.length===0?[]:t.map(([e,t])=>{let n=t??``;return D(e,`Systemd environment variable names`),D(n,`Systemd environment variable values`),`Environment=${O(`${e}=${n.trim()}`)}`})}function A({description:e,programArguments:t,workingDirectory:n,environment:r}){let i=t.map(O).join(` `),a=e?.trim()||`OpenClaw Gateway`;D(a,`Systemd Description`);let o=`Description=${a}`,s=n?`WorkingDirectory=${O(n)}`:null,c=k(r);return[`[Unit]`,o,`After=network-online.target`,`Wants=network-online.target`,``,`[Service]`,`ExecStart=${i}`,`Restart=always`,`RestartSec=5`,`TimeoutStopSec=30`,`TimeoutStartSec=30`,`SuccessExitStatus=0 143`,`KillMode=control-group`,s,...c,``,`[Install]`,`WantedBy=default.target`,``].filter(e=>e!==null).join(`
|
|
4
4
|
`)}function re(e){return d(e,{escapeMode:`backslash`})}function ie(e){let t=e.trim();if(!t)return null;let n=(()=>{if(!(t.startsWith(`"`)&&t.endsWith(`"`)))return t;let e=``,n=!1;for(let r of t.slice(1,-1)){if(n){e+=r,n=!1;continue}if(r===`\\\\`){n=!0;continue}e+=r}return e})(),r=n.indexOf(`=`);if(r<=0)return null;let i=n.slice(0,r).trim();return i?{key:i,value:n.slice(r+1)}:null}function j(e,t){let n=_(b(e));return m.posix.join(n,`.config`,`systemd`,`user`,`${t}.service`)}function M(e){let t=e.OPENCLAW_SYSTEMD_UNIT?.trim();return t?t.endsWith(`.service`)?t.slice(0,-8):t:u(e.OPENCLAW_PROFILE)}function N(e){return j(e,M(e))}function ae(e){return N(e)}async function oe(e){let t=N(e);try{let n=await h.readFile(t,`utf8`),r=``,i=``,a={},o=[];for(let e of n.split(`
|
|
5
5
|
`)){let t=e.trim();if(!(!t||t.startsWith(`#`))){if(t.startsWith(`ExecStart=`))r=t.slice(10).trim();else if(t.startsWith(`WorkingDirectory=`))i=t.slice(17).trim();else if(t.startsWith(`Environment=`)){let e=ie(t.slice(12).trim());e&&(a[e.key]=e.value)}else if(t.startsWith(`EnvironmentFile=`)){let e=t.slice(16).trim();e&&o.push(e)}}}if(!r)return null;let s=await z({environmentFileSpecs:o,env:e,unitPath:t}),c={...a,...s.environment},l={...P(a,`inline`),...P(s.environment,`file`)};return{programArguments:re(r),...i?{workingDirectory:i}:{},...Object.keys(c).length>0?{environment:c}:{},...Object.keys(l).length>0?{environmentValueSources:l}:{},sourcePath:t}}catch{return null}}function P(e,t){return Object.fromEntries(Object.keys(e).map(e=>[e,t]))}function F(e,t){return e.replaceAll(`%h`,_(b(t)))}function I(e){return d(e,{escapeMode:`backslash`}).map(e=>e.trim()).filter(Boolean)}function L(e){let t=e.trim();if(!t||t.startsWith(`#`)||t.startsWith(`;`))return null;let n=t.indexOf(`=`);if(n<=0)return null;let r=t.slice(0,n).trim();if(!r)return null;let i=t.slice(n+1).trim();return i.length>=2&&(i.startsWith(`"`)&&i.endsWith(`"`)||i.startsWith(`'`)&&i.endsWith(`'`))&&(i=i.slice(1,-1)),{key:r,value:i}}async function R(e){let t={},n=await h.readFile(e,`utf8`);for(let e of n.split(/\r?\n/)){let n=L(e);n&&(t[n.key]=n.value)}return t}async function z(e){let t={};if(e.environmentFileSpecs.length===0)return{environment:t};let n=m.posix.dirname(e.unitPath);for(let r of e.environmentFileSpecs)for(let i of I(r)){let r=i.startsWith(`-`)?i.slice(1).trim():i;if(!r)continue;let a=F(r,e.env),o=m.posix.isAbsolute(a)?a:m.posix.resolve(n,a);try{let e=await R(o);Object.assign(t,e)}catch{continue}}return{environment:t}}function B(e){let t=C(e,`=`),n={},r=t.activestate;r&&(n.activeState=r);let i=t.substate;i&&(n.subState=i);let s=t.mainpid;if(s){let e=a(s);e!==void 0&&(n.mainPid=e)}let c=t.execmainstatus;if(c){let e=o(c);e!==void 0&&(n.execMainStatus=e)}let l=t.execmaincode;return l&&(n.execMainCode=l),n}async function V(e){return await g(`systemctl`,e)}function H(e){return`${e.stderr} ${e.stdout}`.trim()}function U(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`not found`)||t.includes(`no such file or directory`)||t.includes(`spawn systemctl enoent`)||t.includes(`spawn systemctl eacces`)}function W(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`disabled`)||t.includes(`static`)||t.includes(`indirect`)||t.includes(`masked`)||t.includes(`not-found`)||t.includes(`could not be found`)||t.includes(`failed to get unit file state`)}function G(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`failed to connect to bus`)||t.includes(`failed to connect to user scope bus`)||t.includes(`dbus_session_bus_address`)||t.includes(`xdg_runtime_dir`)||t.includes(`no medium found`)}function K(e){if(!e)return!1;let t=e.toLowerCase();return U(t)||G(t)||t.includes(`not been booted`)||t.includes(`not supported`)}function q(e){if(!e)return!1;let t=e.toLowerCase().trim();return t.startsWith(`command failed: systemctl`)&&t.includes(` is-enabled `)&&!t.includes(`permission denied`)&&!t.includes(`access denied`)&&!t.includes(`no space left`)&&!t.includes(`read-only file system`)&&!t.includes(`out of memory`)&&!t.includes(`cannot allocate memory`)}function se(e){let t=e instanceof Error?e.message:typeof e==`string`?e:``;if(!t)return!1;let n=t.toLowerCase();return G(n)||q(n)}function ce(){return[`--user`]}function le(e){let t=e.SUDO_USER?.trim();if(t&&t!==`root`)return t;let n=e.USER?.trim()||e.LOGNAME?.trim();if(n)return n;try{return p.userInfo().username}catch{return null}}function J(e){let t=e.trim();return t?[`--machine`,`${t}@`,`--user`]:[]}function ue(e){let t=e.toLowerCase();return t.includes(`failed to connect to bus`)||t.includes(`failed to connect to user scope bus`)||t.includes(`dbus_session_bus_address`)||t.includes(`xdg_runtime_dir`)}async function Y(e,t){let n=le(e),r=e.SUDO_USER?.trim();if(r&&r!==`root`&&n){let e=J(n);if(e.length>0)return await V([...e,...t])}let i=await V([...ce(),...t]);if(i.code===0)return i;let a=`${i.stderr} ${i.stdout}`.trim();if(!n||!ue(a))return i;let o=J(n);return o.length===0?i:await V([...o,...t])}async function de(e=process.env){let t=await Y(e,[`status`]);if(t.code===0)return!0;let n=`${t.stderr} ${t.stdout}`.trim();return n?!K(n):!1}async function X(e=process.env){let t=await Y(e,[`status`]);if(t.code===0)return;let n=H(t);if(U(n))throw Error(`systemctl not available; systemd user services are required on Linux.`);if(!n)throw Error(`systemctl --user unavailable: unknown error`);if(K(n))throw Error(`systemctl --user unavailable: ${n||`unknown error`}`.trim())}async function fe({env:e,stdout:t,programArguments:n,workingDirectory:r,environment:i,description:a}){await X(e);let o=N(e);await h.mkdir(m.dirname(o),{recursive:!0});let s=!1;try{await h.access(o);let e=`${o}.bak`;await h.copyFile(o,e),s=!0}catch{}let c=A({description:l({env:e,environment:i,description:a}),programArguments:n,workingDirectory:r,environment:i});await h.writeFile(o,c,`utf8`);let d=`${u(e.OPENCLAW_PROFILE)}.service`,f=await Y(e,[`daemon-reload`]);if(f.code!==0)throw Error(`systemctl daemon-reload failed: ${f.stderr||f.stdout}`.trim());let p=await Y(e,[`enable`,d]);if(p.code!==0)throw Error(`systemctl enable failed: ${p.stderr||p.stdout}`.trim());let g=await Y(e,[`restart`,d]);if(g.code!==0)throw Error(`systemctl restart failed: ${g.stderr||g.stdout}`.trim());return y(t,[{label:`Installed systemd service`,value:o},...s?[{label:`Previous unit backed up to`,value:`${o}.bak`}]:[]],{leadingBlankLine:!0}),{unitPath:o}}async function pe({env:e,stdout:t}){await X(e),await Y(e,[`disable`,`--now`,`${u(e.OPENCLAW_PROFILE)}.service`]);let n=N(e);try{await h.unlink(n),t.write(`${v(`Removed systemd service`,n)}\n`)}catch{t.write(`Systemd service not found at ${n}\n`)}}async function Z(e){let t=e.env??process.env;await X(t);let n=`${M(t)}.service`,r=await Y(t,[e.action,n]);if(r.code!==0)throw Error(`systemctl ${e.action} failed: ${r.stderr||r.stdout}`.trim());e.stdout.write(`${v(e.label,n)}\n`)}async function me({stdout:e,env:t}){await Z({stdout:e,env:t,action:`stop`,label:`Stopped systemd service`})}async function Q({stdout:e,env:t}){return await Z({stdout:e,env:t,action:`restart`,label:`Restarted systemd service`}),{outcome:`completed`}}async function he(e){let t=e.env??process.env;try{await h.access(N(t))}catch(e){if(e.code===`ENOENT`)return!1;throw e}let n=await Y(t,[`is-enabled`,`${M(t)}.service`]);if(n.code===0)return!0;let r=H(n);if(U(r)||W(r))return!1;throw Error(`systemctl is-enabled unavailable: ${r||`unknown error`}`.trim())}async function ge(e=process.env){try{await X(e)}catch(e){return{status:`unknown`,detail:e instanceof Error?e.message:String(e)}}let t=await Y(e,[`show`,`${M(e)}.service`,`--no-page`,`--property`,`ActiveState,SubState,MainPID,ExecMainStatus,ExecMainCode`]);if(t.code!==0){let e=(t.stderr||t.stdout).trim(),n=e.toLowerCase().includes(`not found`);return{status:n?`stopped`:`unknown`,detail:e||void 0,missingUnit:n}}let n=B(t.stdout||``),r=n.activeState?.toLowerCase();return{status:r===`active`?`running`:r?`stopped`:`unknown`,state:n.activeState,subState:n.subState,pid:n.mainPid,lastExitStatus:n.execMainStatus,lastExitReason:n.execMainCode}}async function $(e){let t=await Y(e,[`status`]);return t.code===0?!0:!U(H(t))}async function _e(e){let t=[],n=await $(e);for(let r of s){let i=j(e,r),a=!1;try{await h.access(i),a=!0}catch{}let o=!1;n&&(o=(await Y(e,[`is-enabled`,`${r}.service`])).code===0),(a||o)&&t.push({name:r,unitPath:i,enabled:o,exists:a})}return t}async function ve({env:e,stdout:t}){let n=await _e(e);if(n.length===0)return n;let r=await $(e);for(let i of n){r?await Y(e,[`disable`,`--now`,`${i.name}.service`]):t.write(`systemctl unavailable; removed legacy unit file only: ${i.name}.service\n`);try{await h.unlink(i.unitPath),t.write(`${v(`Removed legacy systemd service`,i.unitPath)}\n`)}catch{t.write(`Legacy systemd unit not found at ${i.unitPath}\n`)}}return n}export{v as _,oe as a,g as b,Q as c,pe as d,T as f,b as g,S as h,de as i,me as l,C as m,se as n,ge as o,ne as p,he as r,ae as s,fe as t,ve as u,_ as v,y};
|
|
6
|
+
//# sourceMappingURL=systemd-DbevZh65.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{$ as e,Q as t}from"./subsystem-C5XF2Fy5.js";import{t as n}from"./command-format-BbDT1tlm.js";import{d as r,i,r as a,s as o}from"./daemon-install-plan.shared-CfA37Ut_.js";import{s,v as c}from"./systemd-D7odsu4K.js";import{c as l,l as u}from"./service-BtB9epJk.js";import{t as d}from"./runtime-status-CqFBmdRd.js";import f from"node:path";import p from"node:fs/promises";function m(e){if(!e)return null;let t=[];return e.subState&&t.push(`sub ${e.subState}`),e.lastExitStatus!==void 0&&t.push(`last exit ${e.lastExitStatus}`),e.lastExitReason&&t.push(`reason ${e.lastExitReason}`),e.lastRunResult&&t.push(`last run ${e.lastRunResult}`),e.lastRunTime&&t.push(`last run time ${e.lastRunTime}`),e.detail&&t.push(e.detail),d({status:e.status,pid:e.pid,state:e.state,details:t})}function h(e){return c(e).replace(/^[A-Za-z]:/,``)}function g(e){let t=e.platform??process.platform,n=e.env??process.env;if(t===`darwin`){let e=l(n);return[`Launchd stdout (if installed): ${h(e.stdoutPath)}`,`Launchd stderr (if installed): ${h(e.stderrPath)}`]}return t===`linux`?[`Logs: journalctl --user -u ${e.systemdServiceName}.service -n 200 --no-pager`]:t===`win32`?[`Logs: schtasks /Query /TN "${e.windowsTaskName}" /V /FO LIST`]:[]}function _(e){let t=e.platform??process.platform,n=[e.installCommand,e.startCommand];switch(t){case`darwin`:return[...n,`launchctl bootstrap gui/$UID ${e.launchAgentPlistPath}`];case`linux`:return[...n,`systemctl --user start ${e.systemdServiceName}.service`];case`win32`:return[...n,`schtasks /Run /TN "${e.windowsTaskName}"`];default:return n}}const v={gatewayCommandMissing:`gateway-command-missing`,gatewayEntrypointMismatch:`gateway-entrypoint-mismatch`,gatewayPathMissing:`gateway-path-missing`,gatewayPathMissingDirs:`gateway-path-missing-dirs`,gatewayPathNonMinimal:`gateway-path-nonminimal`,gatewayTokenEmbedded:`gateway-token-embedded`,gatewayTokenMismatch:`gateway-token-mismatch`,gatewayRuntimeBun:`gateway-runtime-bun`,gatewayRuntimeNodeVersionManager:`gateway-runtime-node-version-manager`,gatewayRuntimeNodeSystemMissing:`gateway-runtime-node-system-missing`,gatewayTokenDrift:`gateway-token-drift`,launchdKeepAlive:`launchd-keep-alive`,launchdRunAtLoad:`launchd-run-at-load`,systemdAfterNetworkOnline:`systemd-after-network-online`,systemdRestartSec:`systemd-restart-sec`,systemdWantsNetworkOnline:`systemd-wants-network-online`};function y(e){return e.some(e=>e.code===v.gatewayRuntimeBun||e.code===v.gatewayRuntimeNodeVersionManager)}function b(e){return!!e?.some(e=>e===`gateway`)}function x(e){let t=new Set,n=new Set,r;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`#`)||e.startsWith(`;`)||e.startsWith(`[`))continue;let a=e.indexOf(`=`);if(a<=0)continue;let o=e.slice(0,a).trim(),s=e.slice(a+1).trim();if(s)if(o===`After`)for(let e of s.split(/\s+/))e&&t.add(e);else if(o===`Wants`)for(let e of s.split(/\s+/))e&&n.add(e);else o===`RestartSec`&&(r=s)}return{after:t,wants:n,restartSec:r}}function S(e){if(!e)return!1;let t=Number.parseFloat(e);return Number.isFinite(t)?Math.abs(t-5)<.01:!1}async function C(e,t){let n=s(e),r=``;try{r=await p.readFile(n,`utf8`)}catch{return}let i=x(r);i.after.has(`network-online.target`)||t.push({code:v.systemdAfterNetworkOnline,message:`Missing systemd After=network-online.target`,detail:n,level:`recommended`}),i.wants.has(`network-online.target`)||t.push({code:v.systemdWantsNetworkOnline,message:`Missing systemd Wants=network-online.target`,detail:n,level:`recommended`}),S(i.restartSec)||t.push({code:v.systemdRestartSec,message:`RestartSec does not match the recommended 5s`,detail:n,level:`recommended`})}async function w(e,t){let n=u(e),r=``;try{r=await p.readFile(n,`utf8`)}catch{return}let i=/<key>RunAtLoad<\/key>\s*<true\s*\/>/i.test(r),a=/<key>KeepAlive<\/key>\s*<true\s*\/>/i.test(r);i||t.push({code:v.launchdRunAtLoad,message:`LaunchAgent is missing RunAtLoad=true`,detail:n,level:`recommended`}),a||t.push({code:v.launchdKeepAlive,message:`LaunchAgent is missing KeepAlive=true`,detail:n,level:`recommended`})}function T(e,t){!e||e.length===0||b(e)||t.push({code:v.gatewayCommandMissing,message:`Service command does not include the gateway subcommand`,level:`aggressive`})}function E(e,t,n){let r=D(e);if(!r)return;t.push({code:v.gatewayTokenEmbedded,message:`Gateway service embeds OPENCLAW_GATEWAY_TOKEN and should be reinstalled.`,detail:"Run `openclaw gateway install --force` to remove embedded service token.",level:`recommended`});let i=n?.trim();!i||r===i||t.push({code:v.gatewayTokenMismatch,message:`Gateway service OPENCLAW_GATEWAY_TOKEN does not match gateway.auth.token in openclaw.json`,detail:`service token is stale`,level:`recommended`})}function D(e){if(e&&e.environmentValueSources?.OPENCLAW_GATEWAY_TOKEN!==`file`)return e.environment?.OPENCLAW_GATEWAY_TOKEN?.trim()||void 0}function O(e){return e===`win32`?f.win32:f.posix}function k(e,t){let n=O(t).normalize(e).replaceAll(`\\`,`/`);return t===`win32`?n.toLowerCase():n}function A(e,t,n,i){if(i===`win32`)return;let a=e?.environment?.PATH;if(!a){t.push({code:v.gatewayPathMissing,message:`Gateway service PATH is not set; the daemon should use a minimal PATH.`,level:`recommended`});return}let o=r({platform:i,env:n}),s=a.split(O(i).delimiter).map(e=>e.trim()).filter(Boolean),c=new Set(s.map(e=>k(e,i))),l=new Set(o.map(e=>k(e,i))),u=o.filter(e=>{let t=k(e,i);return!c.has(t)});u.length>0&&t.push({code:v.gatewayPathMissingDirs,message:`Gateway service PATH missing required dirs: ${u.join(`, `)}`,level:`recommended`});let d=s.filter(e=>{let t=k(e,i);return l.has(t)?!1:t.includes(`/.nvm/`)||t.includes(`/.fnm/`)||t.includes(`/.volta/`)||t.includes(`/.asdf/`)||t.includes(`/.n/`)||t.includes(`/.nodenv/`)||t.includes(`/.nodebrew/`)||t.includes(`/nvs/`)||t.includes(`/.local/share/pnpm/`)||t.includes(`/pnpm/`)||t.endsWith(`/pnpm`)});d.length>0&&t.push({code:v.gatewayPathNonMinimal,message:`Gateway service PATH includes version managers or package managers; recommend a minimal PATH.`,detail:d.join(`, `),level:`recommended`})}async function j(n,r,s,c){let l=r?.programArguments?.[0];if(l){if(t(l)){s.push({code:v.gatewayRuntimeBun,message:`Gateway service uses Bun; Bun is incompatible with WhatsApp + Telegram channels.`,detail:l,level:`recommended`});return}e(l)&&i(l,c)&&(s.push({code:v.gatewayRuntimeNodeVersionManager,message:`Gateway service uses Node from a version manager; it can break after upgrades.`,detail:l,level:`recommended`}),a(l,n,c)||await o(n,c)||s.push({code:v.gatewayRuntimeNodeSystemMissing,message:`System Node 22+ not found; install it before migrating away from version managers.`,level:`recommended`}))}}function M(e){let t=e.serviceToken?.trim()||void 0,n=e.configToken?.trim()||void 0;return t&&n&&t!==n?{code:v.gatewayTokenDrift,message:`Config token differs from service token. The daemon will use the old token after restart.`,detail:"Run `openclaw gateway install --force` to sync the token.",level:`recommended`}:null}async function N(e){let t=[],n=e.platform??process.platform;return T(e.command?.programArguments,t),E(e.command,t,e.expectedGatewayToken),A(e.command,t,e.env,n),await j(e.env,e.command,t,n),n===`linux`?await C(e.env,t):n===`darwin`&&await w(e.env,t),{ok:t.length===0,issues:t}}function P(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`systemctl --user unavailable`)||t.includes(`systemctl not available`)||t.includes(`not been booted with systemd`)||t.includes(`failed to connect to bus`)||t.includes(`systemd user services are required`)}function F(e={}){return e.wsl?[`WSL2 needs systemd enabled: edit /etc/wsl.conf with [boot]\\nsystemd=true`,`Then run: wsl --shutdown (from PowerShell) and reopen your distro.`,`Verify: systemctl --user status`]:[`systemd user services are unavailable; install/enable systemd or run the gateway under your supervisor.`,`If you're in a container, run the gateway in the foreground instead of \`${n(`openclaw gateway`)}\`.`]}export{M as a,g as c,N as i,_ as l,F as n,y as o,v as r,D as s,P as t,m as u};
|
|
2
|
+
//# sourceMappingURL=systemd-hints-C0DKDl35.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{at as e,it as t}from"./subsystem-BLbY429l.js";import{t as n}from"./command-format-CLxIPuLR.js";import{d as r,i,r as a,s as o}from"./daemon-install-plan.shared-Dx3DBXCG.js";import{s,v as c}from"./systemd-DbevZh65.js";import{c as l,l as u}from"./service-DZ9EbS15.js";import{t as d}from"./runtime-status-DszMjvJK.js";import f from"node:path";import p from"node:fs/promises";function m(e){if(!e)return null;let t=[];return e.subState&&t.push(`sub ${e.subState}`),e.lastExitStatus!==void 0&&t.push(`last exit ${e.lastExitStatus}`),e.lastExitReason&&t.push(`reason ${e.lastExitReason}`),e.lastRunResult&&t.push(`last run ${e.lastRunResult}`),e.lastRunTime&&t.push(`last run time ${e.lastRunTime}`),e.detail&&t.push(e.detail),d({status:e.status,pid:e.pid,state:e.state,details:t})}function h(e){return c(e).replace(/^[A-Za-z]:/,``)}function g(e){let t=e.platform??process.platform,n=e.env??process.env;if(t===`darwin`){let e=l(n);return[`Launchd stdout (if installed): ${h(e.stdoutPath)}`,`Launchd stderr (if installed): ${h(e.stderrPath)}`]}return t===`linux`?[`Logs: journalctl --user -u ${e.systemdServiceName}.service -n 200 --no-pager`]:t===`win32`?[`Logs: schtasks /Query /TN "${e.windowsTaskName}" /V /FO LIST`]:[]}function _(e){let t=e.platform??process.platform,n=[e.installCommand,e.startCommand];switch(t){case`darwin`:return[...n,`launchctl bootstrap gui/$UID ${e.launchAgentPlistPath}`];case`linux`:return[...n,`systemctl --user start ${e.systemdServiceName}.service`];case`win32`:return[...n,`schtasks /Run /TN "${e.windowsTaskName}"`];default:return n}}const v={gatewayCommandMissing:`gateway-command-missing`,gatewayEntrypointMismatch:`gateway-entrypoint-mismatch`,gatewayPathMissing:`gateway-path-missing`,gatewayPathMissingDirs:`gateway-path-missing-dirs`,gatewayPathNonMinimal:`gateway-path-nonminimal`,gatewayTokenEmbedded:`gateway-token-embedded`,gatewayTokenMismatch:`gateway-token-mismatch`,gatewayRuntimeBun:`gateway-runtime-bun`,gatewayRuntimeNodeVersionManager:`gateway-runtime-node-version-manager`,gatewayRuntimeNodeSystemMissing:`gateway-runtime-node-system-missing`,gatewayTokenDrift:`gateway-token-drift`,launchdKeepAlive:`launchd-keep-alive`,launchdRunAtLoad:`launchd-run-at-load`,systemdAfterNetworkOnline:`systemd-after-network-online`,systemdRestartSec:`systemd-restart-sec`,systemdWantsNetworkOnline:`systemd-wants-network-online`};function y(e){return e.some(e=>e.code===v.gatewayRuntimeBun||e.code===v.gatewayRuntimeNodeVersionManager)}function b(e){return!!e?.some(e=>e===`gateway`)}function x(e){let t=new Set,n=new Set,r;for(let i of e.split(/\r?\n/)){let e=i.trim();if(!e||e.startsWith(`#`)||e.startsWith(`;`)||e.startsWith(`[`))continue;let a=e.indexOf(`=`);if(a<=0)continue;let o=e.slice(0,a).trim(),s=e.slice(a+1).trim();if(s)if(o===`After`)for(let e of s.split(/\s+/))e&&t.add(e);else if(o===`Wants`)for(let e of s.split(/\s+/))e&&n.add(e);else o===`RestartSec`&&(r=s)}return{after:t,wants:n,restartSec:r}}function S(e){if(!e)return!1;let t=Number.parseFloat(e);return Number.isFinite(t)?Math.abs(t-5)<.01:!1}async function C(e,t){let n=s(e),r=``;try{r=await p.readFile(n,`utf8`)}catch{return}let i=x(r);i.after.has(`network-online.target`)||t.push({code:v.systemdAfterNetworkOnline,message:`Missing systemd After=network-online.target`,detail:n,level:`recommended`}),i.wants.has(`network-online.target`)||t.push({code:v.systemdWantsNetworkOnline,message:`Missing systemd Wants=network-online.target`,detail:n,level:`recommended`}),S(i.restartSec)||t.push({code:v.systemdRestartSec,message:`RestartSec does not match the recommended 5s`,detail:n,level:`recommended`})}async function w(e,t){let n=u(e),r=``;try{r=await p.readFile(n,`utf8`)}catch{return}let i=/<key>RunAtLoad<\/key>\s*<true\s*\/>/i.test(r),a=/<key>KeepAlive<\/key>\s*<true\s*\/>/i.test(r);i||t.push({code:v.launchdRunAtLoad,message:`LaunchAgent is missing RunAtLoad=true`,detail:n,level:`recommended`}),a||t.push({code:v.launchdKeepAlive,message:`LaunchAgent is missing KeepAlive=true`,detail:n,level:`recommended`})}function T(e,t){!e||e.length===0||b(e)||t.push({code:v.gatewayCommandMissing,message:`Service command does not include the gateway subcommand`,level:`aggressive`})}function E(e,t,n){let r=D(e);if(!r)return;t.push({code:v.gatewayTokenEmbedded,message:`Gateway service embeds OPENCLAW_GATEWAY_TOKEN and should be reinstalled.`,detail:"Run `openclaw gateway install --force` to remove embedded service token.",level:`recommended`});let i=n?.trim();!i||r===i||t.push({code:v.gatewayTokenMismatch,message:`Gateway service OPENCLAW_GATEWAY_TOKEN does not match gateway.auth.token in openclaw.json`,detail:`service token is stale`,level:`recommended`})}function D(e){if(e&&e.environmentValueSources?.OPENCLAW_GATEWAY_TOKEN!==`file`)return e.environment?.OPENCLAW_GATEWAY_TOKEN?.trim()||void 0}function O(e){return e===`win32`?f.win32:f.posix}function k(e,t){let n=O(t).normalize(e).replaceAll(`\\`,`/`);return t===`win32`?n.toLowerCase():n}function A(e,t,n,i){if(i===`win32`)return;let a=e?.environment?.PATH;if(!a){t.push({code:v.gatewayPathMissing,message:`Gateway service PATH is not set; the daemon should use a minimal PATH.`,level:`recommended`});return}let o=r({platform:i,env:n}),s=a.split(O(i).delimiter).map(e=>e.trim()).filter(Boolean),c=new Set(s.map(e=>k(e,i))),l=new Set(o.map(e=>k(e,i))),u=o.filter(e=>{let t=k(e,i);return!c.has(t)});u.length>0&&t.push({code:v.gatewayPathMissingDirs,message:`Gateway service PATH missing required dirs: ${u.join(`, `)}`,level:`recommended`});let d=s.filter(e=>{let t=k(e,i);return l.has(t)?!1:t.includes(`/.nvm/`)||t.includes(`/.fnm/`)||t.includes(`/.volta/`)||t.includes(`/.asdf/`)||t.includes(`/.n/`)||t.includes(`/.nodenv/`)||t.includes(`/.nodebrew/`)||t.includes(`/nvs/`)||t.includes(`/.local/share/pnpm/`)||t.includes(`/pnpm/`)||t.endsWith(`/pnpm`)});d.length>0&&t.push({code:v.gatewayPathNonMinimal,message:`Gateway service PATH includes version managers or package managers; recommend a minimal PATH.`,detail:d.join(`, `),level:`recommended`})}async function j(n,r,s,c){let l=r?.programArguments?.[0];if(l){if(t(l)){s.push({code:v.gatewayRuntimeBun,message:`Gateway service uses Bun; Bun is incompatible with WhatsApp + Telegram channels.`,detail:l,level:`recommended`});return}e(l)&&i(l,c)&&(s.push({code:v.gatewayRuntimeNodeVersionManager,message:`Gateway service uses Node from a version manager; it can break after upgrades.`,detail:l,level:`recommended`}),a(l,n,c)||await o(n,c)||s.push({code:v.gatewayRuntimeNodeSystemMissing,message:`System Node 22+ not found; install it before migrating away from version managers.`,level:`recommended`}))}}function M(e){let t=e.serviceToken?.trim()||void 0,n=e.configToken?.trim()||void 0;return t&&n&&t!==n?{code:v.gatewayTokenDrift,message:`Config token differs from service token. The daemon will use the old token after restart.`,detail:"Run `openclaw gateway install --force` to sync the token.",level:`recommended`}:null}async function N(e){let t=[],n=e.platform??process.platform;return T(e.command?.programArguments,t),E(e.command,t,e.expectedGatewayToken),A(e.command,t,e.env,n),await j(e.env,e.command,t,n),n===`linux`?await C(e.env,t):n===`darwin`&&await w(e.env,t),{ok:t.length===0,issues:t}}function P(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`systemctl --user unavailable`)||t.includes(`systemctl not available`)||t.includes(`not been booted with systemd`)||t.includes(`failed to connect to bus`)||t.includes(`systemd user services are required`)}function F(e={}){return e.wsl?[`WSL2 needs systemd enabled: edit /etc/wsl.conf with [boot]\\nsystemd=true`,`Then run: wsl --shutdown (from PowerShell) and reopen your distro.`,`Verify: systemctl --user status`]:[`systemd user services are unavailable; install/enable systemd or run the gateway under your supervisor.`,`If you're in a container, run the gateway in the foreground instead of \`${n(`openclaw gateway`)}\`.`]}export{M as a,g as c,N as i,_ as l,F as n,y as o,v as r,D as s,P as t,m as u};
|
|
2
|
+
//# sourceMappingURL=systemd-hints-lXpMy-kY.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{t}from"./note-D4GAwgha.js";import{f as n,i as r,p as i}from"./systemd-D7odsu4K.js";var a=e({ensureSystemdUserLingerInteractive:()=>o,ensureSystemdUserLingerNonInteractive:()=>s});async function o(e){if(process.platform!==`linux`||e.prompt===!1)return;let a=e.env??process.env,o=e.prompter??{note:t},s=e.title??`Systemd`;if(!await r()){await o.note(`Systemd user services are unavailable. Skipping lingering checks.`,s);return}let c=await i(a);if(!c){await o.note(`Unable to read loginctl linger status. Ensure systemd + loginctl are available.`,s);return}if(c.linger===`yes`)return;let l=e.reason??`Systemd user services stop when you log out or go idle, which kills the Gateway.`,u=e.requireConfirm?`We can enable lingering now (may require sudo; writes /var/lib/systemd/linger).`:`Enabling lingering now (may require sudo; writes /var/lib/systemd/linger).`;if(await o.note(`${l}\n${u}`,s),e.requireConfirm&&o.confirm&&!await o.confirm({message:`Enable systemd lingering for ${c.user}?`,initialValue:!0})){await o.note(`Without lingering, the Gateway will stop when you log out.`,s);return}if((await n({env:a,user:c.user})).ok){await o.note(`Enabled systemd lingering for ${c.user}.`,s);return}let d=await n({env:a,user:c.user,sudoMode:`prompt`});if(d.ok){await o.note(`Enabled systemd lingering for ${c.user}.`,s);return}e.runtime.error(`Failed to enable lingering: ${d.stderr||d.stdout||`unknown error`}`),await o.note(`Run manually: sudo loginctl enable-linger ${c.user}`,s)}async function s(e){if(process.platform!==`linux`)return;let t=e.env??process.env;if(!await r())return;let a=await i(t);if(!(!a||a.linger===`yes`)){if((await n({env:t,user:a.user,sudoMode:`non-interactive`})).ok){e.runtime.log(`Enabled systemd lingering for ${a.user}.`);return}e.runtime.log(`Systemd lingering is disabled for ${a.user}. Run: sudo loginctl enable-linger ${a.user}`)}}export{s as n,a as r,o as t};
|
|
2
|
+
//# sourceMappingURL=systemd-linger-C2MJD6KG.js.map
|