@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
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{$ as e,Q as t}from"./subsystem-C5XF2Fy5.js";import{Ml as n}from"./model-selection-BlC_rXAN.js";import{_ as r,c as i,g as a,i as o,m as s,o as c,p as ee,r as l,s as u,u as d,v as f}from"./arg-split-DE5RqDHq.js";import{n as p}from"./runtime-guard-DFYBaYZS.js";import m from"node:os";import h from"node:path";import{promisify as g}from"node:util";import _ from"node:fs/promises";import{execFile as v}from"node:child_process";async function y(){let e=process.argv[1];if(!e)throw Error(`Unable to resolve CLI entrypoint path`);let t=h.resolve(e),n=await te(t);if(/[/\\]dist[/\\].+\.(cjs|js|mjs)$/.test(n)){if(await _.access(n),/[/\\]dist[/\\].+\.(cjs|js|mjs)$/.test(t)&&t!==n)try{return await _.access(t),t}catch{}return n}let r=ne(n,t);for(let e of r)try{return await _.access(e),e}catch{}throw Error(`Cannot find built CLI at ${r.join(` or `)}. Run "pnpm build" first, or use dev mode.`)}async function te(e){try{return await _.realpath(e)}catch{return e}}function ne(...e){let t=[],n=new Set;for(let r of e){if(!r)continue;let e=h.dirname(r);b(t,n,h.resolve(e,`..`)),b(t,n,e),x(t,n,r)}return t}function b(e,t,n){let r=h.resolve(n,`dist`),i=[h.join(r,`index.js`),h.join(r,`index.mjs`),h.join(r,`entry.js`),h.join(r,`entry.mjs`)];for(let n of i)t.has(n)||(t.add(n),e.push(n))}function x(e,t,n){let r=n.split(h.sep),i=r.lastIndexOf(`.bin`);if(i<=0||r[i-1]!==`node_modules`)return;let a=h.basename(n),o=r.slice(0,i).join(h.sep);b(e,t,h.join(o,a))}function S(){let e=process.argv[1];if(!e)throw Error(`Unable to resolve repo root`);let t=h.resolve(e).split(h.sep),n=t.lastIndexOf(`src`);if(n===-1)throw Error(`Dev mode requires running from repo (src/index.ts)`);return t.slice(0,n).join(h.sep)}async function C(){return await T(`bun`)}async function w(){return await T(`node`)}async function T(e){let{execFileSync:t}=await import(`node:child_process`),n=process.platform===`win32`?`where`:`which`;try{let r=t(n,[e],{encoding:`utf8`}).trim().split(/\r?\n/)[0]?.trim();if(!r)throw Error(`empty`);return await _.access(r),r}catch{throw e===`bun`?Error(`Bun not found in PATH. Install bun: https://bun.sh`):Error(`Node not found in PATH. Install Node 22+.`)}}async function E(n){let r=process.execPath,i=n.runtime??`auto`;if(i===`node`)return{programArguments:[n.nodePath??(e(r)?r:await w()),await y(),...n.args]};if(i===`bun`){if(n.dev){let e=S(),i=h.join(e,`src`,`index.ts`);return await _.access(i),{programArguments:[t(r)?r:await C(),i,...n.args],workingDirectory:e}}return{programArguments:[t(r)?r:await C(),await y(),...n.args]}}if(!n.dev)try{return{programArguments:[r,await y(),...n.args]}}catch(t){if(!e(r))return{programArguments:[r,...n.args]};throw t}let a=S(),o=h.join(a,`src`,`index.ts`);return await _.access(o),t(r)?{programArguments:[r,o,...n.args],workingDirectory:a}:{programArguments:[await C(),o,...n.args],workingDirectory:a}}async function D(e){return E({args:[`gateway`,`--port`,String(e.port)],dev:e.dev,runtime:e.runtime,nodePath:e.nodePath})}async function re(e){let t=[`node`,`run`,`--host`,e.host,`--port`,String(e.port)];return(e.tls||e.tlsFingerprint)&&t.push(`--tls`),e.tlsFingerprint&&t.push(`--tls-fingerprint`,e.tlsFingerprint),e.nodeId&&t.push(`--node-id`,e.nodeId),e.displayName&&t.push(`--display-name`,e.displayName),E({args:t,dev:e.dev,runtime:e.runtime,nodePath:e.nodePath})}const ie=[`HTTP_PROXY`,`HTTPS_PROXY`,`NO_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`no_proxy`,`all_proxy`];function ae(e){let t={};for(let n of ie){let r=e[n];if(typeof r!=`string`)continue;let i=r.trim();i&&(t[n]=i)}return t}function O(e,t){t&&e.push(t)}function k(e,t){if(e)return e.endsWith(`/${t}`)?e:h.posix.join(e,t)}function A(e,t){e.push(`${t}/.local/bin`),e.push(`${t}/.npm-global/bin`),e.push(`${t}/bin`),e.push(`${t}/.volta/bin`),e.push(`${t}/.asdf/shims`),e.push(`${t}/.bun/bin`)}function j(e,t){O(e,t?.PNPM_HOME),O(e,k(t?.NPM_CONFIG_PREFIX,`bin`)),O(e,k(t?.BUN_INSTALL,`bin`)),O(e,k(t?.VOLTA_HOME,`bin`)),O(e,k(t?.ASDF_DATA_DIR,`shims`))}function M(e){return e===`darwin`?[`/opt/homebrew/bin`,`/usr/local/bin`,`/usr/bin`,`/bin`]:e===`linux`?[`/usr/local/bin`,`/usr/bin`,`/bin`]:[]}function N(e,t){if(!e)return[];let n=[];return j(n,t),O(n,t?.NVM_DIR),O(n,k(t?.FNM_DIR,`aliases/default/bin`)),A(n,e),n.push(`${e}/Library/Application Support/fnm/aliases/default/bin`),n.push(`${e}/.fnm/aliases/default/bin`),n.push(`${e}/Library/pnpm`),n.push(`${e}/.local/share/pnpm`),n}function P(e,t){if(!e)return[];let n=[];return j(n,t),O(n,k(t?.NVM_DIR,`current/bin`)),O(n,k(t?.FNM_DIR,`current/bin`)),A(n,e),n.push(`${e}/.nvm/current/bin`),n.push(`${e}/.fnm/current/bin`),n.push(`${e}/.local/share/pnpm`),n}function F(e={}){let t=e.platform??process.platform;if(t===`win32`)return[];let n=[],r=e.extraDirs??[],i=M(t),a=t===`linux`?P(e.home,e.env):t===`darwin`?N(e.home,e.env):[],o=e=>{e&&(n.includes(e)||n.push(e))};for(let e of r)o(e);for(let e of a)o(e);for(let e of i)o(e);return n}function I(e={}){let t=e.env??process.env;return F({...e,home:e.home??t.HOME,env:t})}function L(e={}){let t=e.env??process.env;return(e.platform??process.platform)===`win32`?t.PATH??``:I({...e,env:t}).join(h.posix.delimiter)}function R(e){let{env:t,port:r,launchdLabel:i}=e,a=e.platform??process.platform,c=V(t,a),u=t.OPENCLAW_PROFILE,f=i||(a===`darwin`?d(u):void 0),p=`${ee(u)}.service`;return{...B(t,c),OPENCLAW_PROFILE:u,OPENCLAW_GATEWAY_PORT:String(r),OPENCLAW_LAUNCHD_LABEL:f,OPENCLAW_SYSTEMD_UNIT:p,OPENCLAW_WINDOWS_TASK_NAME:s(u),OPENCLAW_SERVICE_MARKER:o,OPENCLAW_SERVICE_KIND:l,OPENCLAW_SERVICE_VERSION:n}}function z(e){let{env:t}=e,o=V(t,e.platform??process.platform),s=t.OPENCLAW_GATEWAY_TOKEN?.trim()||t.CLAWDBOT_GATEWAY_TOKEN?.trim()||void 0;return{...B(t,o),OPENCLAW_GATEWAY_TOKEN:s,OPENCLAW_LAUNCHD_LABEL:a(),OPENCLAW_SYSTEMD_UNIT:r(),OPENCLAW_WINDOWS_TASK_NAME:f(),OPENCLAW_TASK_SCRIPT_NAME:i,OPENCLAW_LOG_PREFIX:`node`,OPENCLAW_SERVICE_MARKER:u,OPENCLAW_SERVICE_KIND:c,OPENCLAW_SERVICE_VERSION:n}}function B(e,t){let n={HOME:e.HOME,TMPDIR:t.tmpDir,...t.proxyEnv,NODE_EXTRA_CA_CERTS:t.nodeCaCerts,NODE_USE_SYSTEM_CA:t.nodeUseSystemCa,OPENCLAW_STATE_DIR:t.stateDir,OPENCLAW_CONFIG_PATH:t.configPath};return t.minimalPath&&(n.PATH=t.minimalPath),n}function V(e,t){let n=e.OPENCLAW_STATE_DIR,r=e.OPENCLAW_CONFIG_PATH,i=e.TMPDIR?.trim()||m.tmpdir(),a=ae(e),o=e.NODE_EXTRA_CA_CERTS??(t===`darwin`?`/etc/ssl/cert.pem`:void 0),s=e.NODE_USE_SYSTEM_CA??(t===`darwin`?`1`:void 0);return{stateDir:n,configPath:r,tmpDir:i,minimalPath:t===`win32`?void 0:L({env:e,platform:t}),proxyEnv:a,nodeCaCerts:o,nodeUseSystemCa:s}}async function H(e){let t=e.match(/^(.+?)\/Cellar\/([^/]+)\/[^/]+\/bin\/node$/);if(!t)return e;let n=t[1],r=t[2],i=`${n}/opt/${r}/bin/node`;try{return await _.access(i),i}catch{}if(r===`node`){let e=`${n}/bin/node`;try{return await _.access(e),e}catch{}}return e}const U=[`/.nvm/`,`/.fnm/`,`/.volta/`,`/.asdf/`,`/.n/`,`/.nodenv/`,`/.nodebrew/`,`/nvs/`];function W(e){return e===`win32`?h.win32:h.posix}function G(e,t){let n=W(t).basename(e).toLowerCase();return n===`node`||n===`node.exe`}function K(e,t){let n=W(t).normalize(e).replaceAll(`\\`,`/`);return t===`win32`?n.toLowerCase():n}function q(e,t){if(t===`darwin`)return[`/opt/homebrew/bin/node`,`/usr/local/bin/node`,`/usr/bin/node`];if(t===`linux`)return[`/usr/local/bin/node`,`/usr/bin/node`];if(t===`win32`){let n=W(t),r=e.ProgramFiles??`C:\\Program Files`,i=e[`ProgramFiles(x86)`]??`C:\\Program Files (x86)`;return[n.join(r,`nodejs`,`node.exe`),n.join(i,`nodejs`,`node.exe`)]}return[]}const J=g(v);async function Y(e,t){try{let{stdout:n}=await t(e,[`-p`,`process.versions.node`],{encoding:`utf8`});return n.trim()||null}catch{return null}}function oe(e,t=process.platform){let n=K(e,t);return U.some(e=>n.includes(e))}function se(e,t=process.env,n=process.platform){let r=K(e,n);return q(t,n).some(e=>r===K(e,n))}async function X(e=process.env,t=process.platform){let n=q(e,t);for(let e of n)try{return await _.access(e),e}catch{}return null}async function Z(e){let t=await X(e.env??process.env,e.platform??process.platform);if(!t)return null;let n=await Y(t,e.execFile??J);return{path:t,version:n,supported:p(n)}}function Q(e,t){if(!e||e.supported)return null;let n=e.version??`unknown`,r=t?` Using ${t} for the daemon.`:``;return`System Node ${n} at ${e.path} is below the required Node 22+.${r} Install Node 22+ from nodejs.org or Homebrew.`}async function ce(e){if(e.runtime!==`node`)return;let t=e.platform??process.platform,n=e.execPath??process.execPath;if(n&&G(n,t)&&p(await Y(n,e.execFile??J)))return H(n);let r=await Z(e);if(r?.supported)return r.path}async function le(e){if(e.runtime!==`node`)return;let t=Q(await Z({env:e.env}),e.nodeProgram);t&&e.warn?.(t,e.title)}function $(e=process.argv){let t=e[1]?.replaceAll(`\\`,`/`);return!!(t?.includes(`/src/`)&&t.endsWith(`.ts`))}async function ue(e){return{devMode:e.devMode??$(),nodePath:e.nodePath??await ce({env:e.env,runtime:e.runtime})}}async function de(e){await le({env:e.env,runtime:e.runtime,nodeProgram:e.programArguments[0],warn:e.warn,title:e.title})}export{Q as a,H as c,I as d,D as f,oe as i,z as l,ue as n,Z as o,re as p,se as r,X as s,de as t,R as u};
|
|
2
|
+
//# sourceMappingURL=daemon-install-plan.shared-CfA37Ut_.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{at as e,it as t}from"./subsystem-BLbY429l.js";import{t as n}from"./version-q3SkUw2K.js";import{_ as r,c as i,g as a,i as o,m as s,o as c,p as ee,r as l,s as u,u as d,v as f}from"./arg-split-BOqSMBuf.js";import{n as p}from"./runtime-guard-DX2Ie4ri.js";import{execFile as m}from"node:child_process";import h from"node:os";import g from"node:path";import{promisify as _}from"node:util";import v from"node:fs/promises";async function y(){let e=process.argv[1];if(!e)throw Error(`Unable to resolve CLI entrypoint path`);let t=g.resolve(e),n=await te(t);if(/[/\\]dist[/\\].+\.(cjs|js|mjs)$/.test(n)){if(await v.access(n),/[/\\]dist[/\\].+\.(cjs|js|mjs)$/.test(t)&&t!==n)try{return await v.access(t),t}catch{}return n}let r=ne(n,t);for(let e of r)try{return await v.access(e),e}catch{}throw Error(`Cannot find built CLI at ${r.join(` or `)}. Run "pnpm build" first, or use dev mode.`)}async function te(e){try{return await v.realpath(e)}catch{return e}}function ne(...e){let t=[],n=new Set;for(let r of e){if(!r)continue;let e=g.dirname(r);b(t,n,g.resolve(e,`..`)),b(t,n,e),x(t,n,r)}return t}function b(e,t,n){let r=g.resolve(n,`dist`),i=[g.join(r,`index.js`),g.join(r,`index.mjs`),g.join(r,`entry.js`),g.join(r,`entry.mjs`)];for(let n of i)t.has(n)||(t.add(n),e.push(n))}function x(e,t,n){let r=n.split(g.sep),i=r.lastIndexOf(`.bin`);if(i<=0||r[i-1]!==`node_modules`)return;let a=g.basename(n),o=r.slice(0,i).join(g.sep);b(e,t,g.join(o,a))}function S(){let e=process.argv[1];if(!e)throw Error(`Unable to resolve repo root`);let t=g.resolve(e).split(g.sep),n=t.lastIndexOf(`src`);if(n===-1)throw Error(`Dev mode requires running from repo (src/index.ts)`);return t.slice(0,n).join(g.sep)}async function C(){return await T(`bun`)}async function w(){return await T(`node`)}async function T(e){let{execFileSync:t}=await import(`node:child_process`),n=process.platform===`win32`?`where`:`which`;try{let r=t(n,[e],{encoding:`utf8`}).trim().split(/\r?\n/)[0]?.trim();if(!r)throw Error(`empty`);return await v.access(r),r}catch{throw e===`bun`?Error(`Bun not found in PATH. Install bun: https://bun.sh`):Error(`Node not found in PATH. Install Node 22+.`)}}async function E(n){let r=process.execPath,i=n.runtime??`auto`;if(i===`node`)return{programArguments:[n.nodePath??(e(r)?r:await w()),await y(),...n.args]};if(i===`bun`){if(n.dev){let e=S(),i=g.join(e,`src`,`index.ts`);return await v.access(i),{programArguments:[t(r)?r:await C(),i,...n.args],workingDirectory:e}}return{programArguments:[t(r)?r:await C(),await y(),...n.args]}}if(!n.dev)try{return{programArguments:[r,await y(),...n.args]}}catch(t){if(!e(r))return{programArguments:[r,...n.args]};throw t}let a=S(),o=g.join(a,`src`,`index.ts`);return await v.access(o),t(r)?{programArguments:[r,o,...n.args],workingDirectory:a}:{programArguments:[await C(),o,...n.args],workingDirectory:a}}async function D(e){return E({args:[`gateway`,`--port`,String(e.port)],dev:e.dev,runtime:e.runtime,nodePath:e.nodePath})}async function re(e){let t=[`node`,`run`,`--host`,e.host,`--port`,String(e.port)];return(e.tls||e.tlsFingerprint)&&t.push(`--tls`),e.tlsFingerprint&&t.push(`--tls-fingerprint`,e.tlsFingerprint),e.nodeId&&t.push(`--node-id`,e.nodeId),e.displayName&&t.push(`--display-name`,e.displayName),E({args:t,dev:e.dev,runtime:e.runtime,nodePath:e.nodePath})}const ie=[`HTTP_PROXY`,`HTTPS_PROXY`,`NO_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`no_proxy`,`all_proxy`];function ae(e){let t={};for(let n of ie){let r=e[n];if(typeof r!=`string`)continue;let i=r.trim();i&&(t[n]=i)}return t}function O(e,t){t&&e.push(t)}function k(e,t){if(e)return e.endsWith(`/${t}`)?e:g.posix.join(e,t)}function A(e,t){e.push(`${t}/.local/bin`),e.push(`${t}/.npm-global/bin`),e.push(`${t}/bin`),e.push(`${t}/.volta/bin`),e.push(`${t}/.asdf/shims`),e.push(`${t}/.bun/bin`)}function j(e,t){O(e,t?.PNPM_HOME),O(e,k(t?.NPM_CONFIG_PREFIX,`bin`)),O(e,k(t?.BUN_INSTALL,`bin`)),O(e,k(t?.VOLTA_HOME,`bin`)),O(e,k(t?.ASDF_DATA_DIR,`shims`))}function M(e){return e===`darwin`?[`/opt/homebrew/bin`,`/usr/local/bin`,`/usr/bin`,`/bin`]:e===`linux`?[`/usr/local/bin`,`/usr/bin`,`/bin`]:[]}function N(e,t){if(!e)return[];let n=[];return j(n,t),O(n,t?.NVM_DIR),O(n,k(t?.FNM_DIR,`aliases/default/bin`)),A(n,e),n.push(`${e}/Library/Application Support/fnm/aliases/default/bin`),n.push(`${e}/.fnm/aliases/default/bin`),n.push(`${e}/Library/pnpm`),n.push(`${e}/.local/share/pnpm`),n}function P(e,t){if(!e)return[];let n=[];return j(n,t),O(n,k(t?.NVM_DIR,`current/bin`)),O(n,k(t?.FNM_DIR,`current/bin`)),A(n,e),n.push(`${e}/.nvm/current/bin`),n.push(`${e}/.fnm/current/bin`),n.push(`${e}/.local/share/pnpm`),n}function F(e={}){let t=e.platform??process.platform;if(t===`win32`)return[];let n=[],r=e.extraDirs??[],i=M(t),a=t===`linux`?P(e.home,e.env):t===`darwin`?N(e.home,e.env):[],o=e=>{e&&(n.includes(e)||n.push(e))};for(let e of r)o(e);for(let e of a)o(e);for(let e of i)o(e);return n}function I(e={}){let t=e.env??process.env;return F({...e,home:e.home??t.HOME,env:t})}function L(e={}){let t=e.env??process.env;return(e.platform??process.platform)===`win32`?t.PATH??``:I({...e,env:t}).join(g.posix.delimiter)}function R(e){let{env:t,port:r,launchdLabel:i}=e,a=e.platform??process.platform,c=V(t,a),u=t.OPENCLAW_PROFILE,f=i||(a===`darwin`?d(u):void 0),p=`${ee(u)}.service`;return{...B(t,c),OPENCLAW_PROFILE:u,OPENCLAW_GATEWAY_PORT:String(r),OPENCLAW_LAUNCHD_LABEL:f,OPENCLAW_SYSTEMD_UNIT:p,OPENCLAW_WINDOWS_TASK_NAME:s(u),OPENCLAW_SERVICE_MARKER:o,OPENCLAW_SERVICE_KIND:l,OPENCLAW_SERVICE_VERSION:n}}function z(e){let{env:t}=e,o=V(t,e.platform??process.platform),s=t.OPENCLAW_GATEWAY_TOKEN?.trim()||t.CLAWDBOT_GATEWAY_TOKEN?.trim()||void 0;return{...B(t,o),OPENCLAW_GATEWAY_TOKEN:s,OPENCLAW_LAUNCHD_LABEL:a(),OPENCLAW_SYSTEMD_UNIT:r(),OPENCLAW_WINDOWS_TASK_NAME:f(),OPENCLAW_TASK_SCRIPT_NAME:i,OPENCLAW_LOG_PREFIX:`node`,OPENCLAW_SERVICE_MARKER:u,OPENCLAW_SERVICE_KIND:c,OPENCLAW_SERVICE_VERSION:n}}function B(e,t){let n={HOME:e.HOME,TMPDIR:t.tmpDir,...t.proxyEnv,NODE_EXTRA_CA_CERTS:t.nodeCaCerts,NODE_USE_SYSTEM_CA:t.nodeUseSystemCa,OPENCLAW_STATE_DIR:t.stateDir,OPENCLAW_CONFIG_PATH:t.configPath};return t.minimalPath&&(n.PATH=t.minimalPath),n}function V(e,t){let n=e.OPENCLAW_STATE_DIR,r=e.OPENCLAW_CONFIG_PATH,i=e.TMPDIR?.trim()||h.tmpdir(),a=ae(e),o=e.NODE_EXTRA_CA_CERTS??(t===`darwin`?`/etc/ssl/cert.pem`:void 0),s=e.NODE_USE_SYSTEM_CA??(t===`darwin`?`1`:void 0);return{stateDir:n,configPath:r,tmpDir:i,minimalPath:t===`win32`?void 0:L({env:e,platform:t}),proxyEnv:a,nodeCaCerts:o,nodeUseSystemCa:s}}async function H(e){let t=e.match(/^(.+?)\/Cellar\/([^/]+)\/[^/]+\/bin\/node$/);if(!t)return e;let n=t[1],r=t[2],i=`${n}/opt/${r}/bin/node`;try{return await v.access(i),i}catch{}if(r===`node`){let e=`${n}/bin/node`;try{return await v.access(e),e}catch{}}return e}const U=[`/.nvm/`,`/.fnm/`,`/.volta/`,`/.asdf/`,`/.n/`,`/.nodenv/`,`/.nodebrew/`,`/nvs/`];function W(e){return e===`win32`?g.win32:g.posix}function G(e,t){let n=W(t).basename(e).toLowerCase();return n===`node`||n===`node.exe`}function K(e,t){let n=W(t).normalize(e).replaceAll(`\\`,`/`);return t===`win32`?n.toLowerCase():n}function q(e,t){if(t===`darwin`)return[`/opt/homebrew/bin/node`,`/usr/local/bin/node`,`/usr/bin/node`];if(t===`linux`)return[`/usr/local/bin/node`,`/usr/bin/node`];if(t===`win32`){let n=W(t),r=e.ProgramFiles??`C:\\Program Files`,i=e[`ProgramFiles(x86)`]??`C:\\Program Files (x86)`;return[n.join(r,`nodejs`,`node.exe`),n.join(i,`nodejs`,`node.exe`)]}return[]}const J=_(m);async function Y(e,t){try{let{stdout:n}=await t(e,[`-p`,`process.versions.node`],{encoding:`utf8`});return n.trim()||null}catch{return null}}function oe(e,t=process.platform){let n=K(e,t);return U.some(e=>n.includes(e))}function se(e,t=process.env,n=process.platform){let r=K(e,n);return q(t,n).some(e=>r===K(e,n))}async function X(e=process.env,t=process.platform){let n=q(e,t);for(let e of n)try{return await v.access(e),e}catch{}return null}async function Z(e){let t=await X(e.env??process.env,e.platform??process.platform);if(!t)return null;let n=await Y(t,e.execFile??J);return{path:t,version:n,supported:p(n)}}function Q(e,t){if(!e||e.supported)return null;let n=e.version??`unknown`,r=t?` Using ${t} for the daemon.`:``;return`System Node ${n} at ${e.path} is below the required Node 22+.${r} Install Node 22+ from nodejs.org or Homebrew.`}async function ce(e){if(e.runtime!==`node`)return;let t=e.platform??process.platform,n=e.execPath??process.execPath;if(n&&G(n,t)&&p(await Y(n,e.execFile??J)))return H(n);let r=await Z(e);if(r?.supported)return r.path}async function le(e){if(e.runtime!==`node`)return;let t=Q(await Z({env:e.env}),e.nodeProgram);t&&e.warn?.(t,e.title)}function $(e=process.argv){let t=e[1]?.replaceAll(`\\`,`/`);return!!(t?.includes(`/src/`)&&t.endsWith(`.ts`))}async function ue(e){return{devMode:e.devMode??$(),nodePath:e.nodePath??await ce({env:e.env,runtime:e.runtime})}}async function de(e){await le({env:e.env,runtime:e.runtime,nodeProgram:e.programArguments[0],warn:e.warn,title:e.title})}export{Q as a,H as c,I as d,D as f,oe as i,z as l,ue as n,Z as o,re as p,se as r,X as s,de as t,R as u};
|
|
2
|
+
//# sourceMappingURL=daemon-install-plan.shared-Dx3DBXCG.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function t(e){return typeof e==`boolean`?e:void 0}function n(e){return e?.dangerouslyAllowNameMatching===!0}function r(r,i){let a=[],o=e(r.channels);if(!o)return a;let s=e(o[i]);if(!s)return a;let c=`channels.${i}`,l=`${c}.dangerouslyAllowNameMatching`,u=n(s);a.push({prefix:c,account:s,dangerousNameMatchingEnabled:u,dangerousFlagPath:l});let d=e(s.accounts);if(!d)return a;for(let n of Object.keys(d)){let r=e(d[n]);if(!r)continue;let i=`${c}.accounts.${n}`,o=t(r.dangerouslyAllowNameMatching);a.push({prefix:i,account:r,dangerousNameMatchingEnabled:o??u,dangerousFlagPath:o==null?l:`${i}.dangerouslyAllowNameMatching`})}return a}export{n,r as t};
|
|
2
|
+
//# sourceMappingURL=dangerous-name-matching-BOmvAibz.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function t(e){return typeof e==`boolean`?e:void 0}function n(e){return e?.dangerouslyAllowNameMatching===!0}function r(r,i){let a=[],o=e(r.channels);if(!o)return a;let s=e(o[i]);if(!s)return a;let c=`channels.${i}`,l=`${c}.dangerouslyAllowNameMatching`,u=n(s);a.push({prefix:c,account:s,dangerousNameMatchingEnabled:u,dangerousFlagPath:l});let d=e(s.accounts);if(!d)return a;for(let n of Object.keys(d)){let r=e(d[n]);if(!r)continue;let i=`${c}.accounts.${n}`,o=t(r.dangerouslyAllowNameMatching);a.push({prefix:i,account:r,dangerousNameMatchingEnabled:o??u,dangerousFlagPath:o==null?l:`${i}.dangerouslyAllowNameMatching`})}return a}export{n,r as t};
|
|
2
|
+
//# sourceMappingURL=dangerous-name-matching-DtllRqBD.js.map
|
package/dist/deliver-56mQkDw3.js
CHANGED
|
@@ -16,3 +16,4 @@ import{It as e,Lt as t}from"./paths-piJASC5k.js";import{c as n}from"./paths-BpQO
|
|
|
16
16
|
`).replace(/<\/?[a-z][a-z0-9]*\b[^>]*>/gi,``).replace(/\n{3,}/g,`
|
|
17
17
|
|
|
18
18
|
`)}const $=r(`outbound/deliver`);async function rt(e){let t=await Ve(e.channel),n=it({...e,outbound:t});if(!n)throw Error(`Outbound not configured for channel: ${e.channel}`);return n}function it(e){let t=e.outbound;if(!t?.sendText)return null;let n=at(e),r=t.sendText,i=t.sendMedia,a=t.chunker??null,o=t.chunkerMode,s=e=>({...n,replyToId:e?.replyToId??n.replyToId,threadId:e?.threadId??n.threadId});return{chunker:a,chunkerMode:o,textChunkLimit:t.textChunkLimit,supportsMedia:!!i,sendPayload:t.sendPayload?async(e,n)=>t.sendPayload({...s(n),text:e.text??``,mediaUrl:e.mediaUrl,payload:e}):void 0,sendText:async(e,t)=>r({...s(t),text:e}),sendMedia:async(e,t,n)=>i?i({...s(n),text:e,mediaUrl:t}):r({...s(n),text:e})}}function at(e){return{cfg:e.cfg,to:e.to,accountId:e.accountId,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,deps:e.deps,silent:e.silent,mediaLocalRoots:e.mediaLocalRoots}}const ot=e=>e instanceof Error&&e.name===`AbortError`;function st(e){return!!e.mediaUrl||(e.mediaUrls?.length??0)>0}function ct(e){return!!(e.channelData&&Object.keys(e.channelData).length>0)}function lt(e,t){let n=st(e),r=ct(e),i=typeof e.text==`string`?e.text:``,a=t===`whatsapp`?i.replace(/^(?:[ \t]*\r?\n)+/,``):i;return a.trim()?a===i?e:{...e,text:a}:!n&&!r?null:{...e,text:``}}function ut(e,t,n,r,i){let a=[];for(let n of Q(e)){let e=n;tt(t)&&e.text&&(t===`telegram`&&e.channelData||(e={...e,text:nt(e.text)}));let r=lt(e,t);r&&a.push(r)}return a}function dt(e){return{text:e.text??``,mediaUrls:e.mediaUrls??(e.mediaUrl?[e.mediaUrl]:[]),channelData:e.channelData}}function ft(e){let t=e.hookRunner?.hasHooks(`message_sent`)??!1,n=!!e.sessionKeyForInternalHooks;return{emitMessageSent:r=>{if(!t&&!n)return;let i=W({to:e.to,content:r.content,success:r.success,error:r.error,channelId:e.channel,accountId:e.accountId??void 0,conversationId:e.to,messageId:r.messageId,isGroup:e.mirrorIsGroup,groupId:e.mirrorGroupId});t&&U(e.hookRunner.runMessageSent(K(i),G(i)),`deliverOutboundPayloads: message_sent plugin hook failed`,e=>{$.warn(e)}),n&&U(h(p(`message`,`sent`,e.sessionKeyForInternalHooks,Te(i))),`deliverOutboundPayloads: message:sent internal hook failed`,e=>{$.warn(e)})},hasMessageSentHooks:t}}async function pt(e){if(!e.enabled)return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary};try{let t=await e.hookRunner.runMessageSending({to:e.to,content:e.payloadSummary.text,metadata:{channel:e.channel,accountId:e.accountId,mediaUrls:e.payloadSummary.mediaUrls}},{channelId:e.channel,accountId:e.accountId??void 0});return t?.cancel?{cancelled:!0,payload:e.payload,payloadSummary:e.payloadSummary}:t?.content==null?{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}:{cancelled:!1,payload:{...e.payload,text:t.content},payloadSummary:{...e.payloadSummary,text:t.content}}}catch{return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}}}async function mt(e){let{channel:t,to:n,payloads:r}=e,i=e.skipQueue?null:await qe({channel:t,to:n,accountId:e.accountId,payloads:r,threadId:e.threadId,replyToId:e.replyToId,bestEffort:e.bestEffort,gifPlayback:e.gifPlayback,silent:e.silent,mirror:e.mirror}).catch(()=>null),a=!1,o=e.onError?{...e,onError:(t,n)=>{a=!0,e.onError(t,n)}}:e;try{let e=await ht(o);return i&&(a?await Ye(i,`partial delivery failure (bestEffort)`).catch(()=>{}):await Je(i).catch(()=>{})),e}catch(e){throw i&&(ot(e)?await Je(i).catch(()=>{}):await Ye(i,e instanceof Error?e.message:String(e)).catch(()=>{})),e}}async function ht(e){let{cfg:t,channel:n,to:r,payloads:i}=e,a=e.accountId,o=e.deps,c=e.abortSignal,l=e.deps?.sendSignal??w,u=ee(t,e.session?.agentId??e.mirror?.agentId),d=[],p=await rt({cfg:t,channel:n,to:r,deps:o,accountId:a,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,silent:e.silent,mediaLocalRoots:u}),m=p.chunker?b(t,n,a,{fallbackLimit:p.textChunkLimit}):void 0,h=n===`telegram`&&typeof m==`number`?Math.min(m,4096):m,g=p.chunker?te(t,n,a):`length`,_=n===`signal`,v=_?ne({cfg:t,channel:`signal`,accountId:a}):`code`,S=_?Re({cfg:t,resolveChannelLimitMb:({cfg:e,accountId:t})=>e.channels?.signal?.accounts?.[t]?.mediaMaxMb??e.channels?.signal?.mediaMaxMb,accountId:a}):void 0,T=async(e,t)=>{if(X(c),!p.chunker||h===void 0){d.push(await p.sendText(e,t));return}if(g===`newline`){let n=(p.chunkerMode??`text`)===`markdown`?y(e,h,`newline`):x(e,h);!n.length&&e&&n.push(e);for(let e of n){let n=p.chunker(e,h);!n.length&&e&&n.push(e);for(let e of n)X(c),d.push(await p.sendText(e,t))}return}let n=p.chunker(e,h);for(let e of n)X(c),d.push(await p.sendText(e,t))},E=async(e,n)=>(X(c),{channel:`signal`,...await l(r,e,{cfg:t,maxBytes:S,accountId:a??void 0,textMode:`plain`,textStyles:n})}),D=async e=>{X(c);let t=h===void 0?C(e,1/0,{tableMode:v}):C(e,h,{tableMode:v});t.length===0&&e&&(t=[{text:e,styles:[]}]);for(let e of t)X(c),d.push(await E(e.text,e.styles))},O=async(e,n)=>{X(c);let i=C(e,1/0,{tableMode:v})[0]??{text:e,styles:[]};return{channel:`signal`,...await l(r,i.text,{cfg:t,mediaUrl:n,maxBytes:S,accountId:a??void 0,textMode:`plain`,textStyles:i.styles,mediaLocalRoots:u})}},k=ut(i,n,t,r,a),A=F(),j=e.mirror?.sessionKey??e.session?.key,M=e.mirror?.isGroup,N=e.mirror?.groupId,{emitMessageSent:P,hasMessageSentHooks:re}=ft({hookRunner:A,channel:n,to:r,accountId:a,sessionKeyForInternalHooks:j,mirrorIsGroup:M,mirrorGroupId:N}),I=A?.hasHooks(`message_sending`)??!1;re&&e.session?.agentId&&!j&&$.warn(`deliverOutboundPayloads: session.agentId present without session key; internal message:sent hook will be skipped`,{channel:n,to:r,agentId:e.session.agentId});for(let t of k){let i=dt(t);try{X(c);let o=await pt({hookRunner:A,enabled:I,payload:t,payloadSummary:i,to:r,channel:n,accountId:a});if(o.cancelled)continue;let s=o.payload;i=o.payloadSummary,e.onPayload?.(i);let l={replyToId:s.replyToId??e.replyToId??void 0,threadId:e.threadId??void 0};if(p.sendPayload&&s.channelData){let e=await p.sendPayload(s,l);d.push(e),P({success:!0,content:i.text,messageId:e.messageId});continue}if(i.mediaUrls.length===0){let e=d.length;_?await D(i.text):await T(i.text,l);let t=d.at(-1)?.messageId;P({success:d.length>e,content:i.text,messageId:t});continue}if(!p.supportsMedia){$.warn(`Plugin outbound adapter does not implement sendMedia; media URLs will be dropped and text fallback will be used`,{channel:n,to:r,mediaCount:i.mediaUrls.length});let e=i.text.trim();if(!e)throw Error(`Plugin outbound adapter does not implement sendMedia and no text fallback is available for media payload`);let t=d.length;await T(e,l);let a=d.at(-1)?.messageId;P({success:d.length>t,content:i.text,messageId:a});continue}let u=!0,f;for(let e of i.mediaUrls){X(c);let t=u?i.text:``;if(u=!1,_){let n=await O(t,e);d.push(n),f=n.messageId}else{let n=await p.sendMedia(t,e,l);d.push(n),f=n.messageId}}P({success:!0,content:i.text,messageId:f})}catch(t){if(P({success:!1,content:i.text,error:t instanceof Error?t.message:String(t)}),!e.bestEffort)throw t;e.onError?.(t,i)}}if(e.mirror&&d.length>0){let t=f({text:e.mirror.text,mediaUrls:e.mirror.mediaUrls});t&&await s({agentId:e.mirror.agentId,sessionKey:e.mirror.sessionKey,text:t})}return d}export{L as A,B as C,ce as D,R as E,P as M,O as N,ae as O,pe as S,V as T,K as _,Q as a,de as b,Fe as c,Ce as d,xe as f,be as g,G as h,Qe as i,F as j,re as k,W as l,Se as m,$e as n,X as o,Te as p,Ze as r,Ie as s,mt as t,ye as u,U as v,ve as w,fe as x,ue as y};
|
|
19
|
+
//# sourceMappingURL=deliver-56mQkDw3.js.map
|
package/dist/deliver-BFQ4Zx9z.js
CHANGED
|
@@ -16,3 +16,4 @@ import{c as e}from"./paths-CChBdtE8.js";import{d as t,t as n}from"./subsystem-Bc
|
|
|
16
16
|
`).replace(/<\/?[a-z][a-z0-9]*\b[^>]*>/gi,``).replace(/\n{3,}/g,`
|
|
17
17
|
|
|
18
18
|
`)}const $=n(`outbound/deliver`);async function rt(e){let t=await Ve(e.channel),n=it({...e,outbound:t});if(!n)throw Error(`Outbound not configured for channel: ${e.channel}`);return n}function it(e){let t=e.outbound;if(!t?.sendText)return null;let n=at(e),r=t.sendText,i=t.sendMedia,a=t.chunker??null,o=t.chunkerMode,s=e=>({...n,replyToId:e?.replyToId??n.replyToId,threadId:e?.threadId??n.threadId});return{chunker:a,chunkerMode:o,textChunkLimit:t.textChunkLimit,supportsMedia:!!i,sendPayload:t.sendPayload?async(e,n)=>t.sendPayload({...s(n),text:e.text??``,mediaUrl:e.mediaUrl,payload:e}):void 0,sendText:async(e,t)=>r({...s(t),text:e}),sendMedia:async(e,t,n)=>i?i({...s(n),text:e,mediaUrl:t}):r({...s(n),text:e})}}function at(e){return{cfg:e.cfg,to:e.to,accountId:e.accountId,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,deps:e.deps,silent:e.silent,mediaLocalRoots:e.mediaLocalRoots}}const ot=e=>e instanceof Error&&e.name===`AbortError`;function st(e){return!!e.mediaUrl||(e.mediaUrls?.length??0)>0}function ct(e){return!!(e.channelData&&Object.keys(e.channelData).length>0)}function lt(e,t){let n=st(e),r=ct(e),i=typeof e.text==`string`?e.text:``,a=t===`whatsapp`?i.replace(/^(?:[ \t]*\r?\n)+/,``):i;return a.trim()?a===i?e:{...e,text:a}:!n&&!r?null:{...e,text:``}}function ut(e,t,n,r,i){let a=[];for(let n of Q(e)){let e=n;tt(t)&&e.text&&(t===`telegram`&&e.channelData||(e={...e,text:nt(e.text)}));let r=lt(e,t);r&&a.push(r)}return a}function dt(e){return{text:e.text??``,mediaUrls:e.mediaUrls??(e.mediaUrl?[e.mediaUrl]:[]),channelData:e.channelData}}function ft(e){let t=e.hookRunner?.hasHooks(`message_sent`)??!1,n=!!e.sessionKeyForInternalHooks;return{emitMessageSent:r=>{if(!t&&!n)return;let i=W({to:e.to,content:r.content,success:r.success,error:r.error,channelId:e.channel,accountId:e.accountId??void 0,conversationId:e.to,messageId:r.messageId,isGroup:e.mirrorIsGroup,groupId:e.mirrorGroupId});t&&U(e.hookRunner.runMessageSent(K(i),G(i)),`deliverOutboundPayloads: message_sent plugin hook failed`,e=>{$.warn(e)}),n&&U(g(h(`message`,`sent`,e.sessionKeyForInternalHooks,Te(i))),`deliverOutboundPayloads: message:sent internal hook failed`,e=>{$.warn(e)})},hasMessageSentHooks:t}}async function pt(e){if(!e.enabled)return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary};try{let t=await e.hookRunner.runMessageSending({to:e.to,content:e.payloadSummary.text,metadata:{channel:e.channel,accountId:e.accountId,mediaUrls:e.payloadSummary.mediaUrls}},{channelId:e.channel,accountId:e.accountId??void 0});return t?.cancel?{cancelled:!0,payload:e.payload,payloadSummary:e.payloadSummary}:t?.content==null?{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}:{cancelled:!1,payload:{...e.payload,text:t.content},payloadSummary:{...e.payloadSummary,text:t.content}}}catch{return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}}}async function mt(e){let{channel:t,to:n,payloads:r}=e,i=e.skipQueue?null:await qe({channel:t,to:n,accountId:e.accountId,payloads:r,threadId:e.threadId,replyToId:e.replyToId,bestEffort:e.bestEffort,gifPlayback:e.gifPlayback,silent:e.silent,mirror:e.mirror}).catch(()=>null),a=!1,o=e.onError?{...e,onError:(t,n)=>{a=!0,e.onError(t,n)}}:e;try{let e=await ht(o);return i&&(a?await Ye(i,`partial delivery failure (bestEffort)`).catch(()=>{}):await Je(i).catch(()=>{})),e}catch(e){throw i&&(ot(e)?await Je(i).catch(()=>{}):await Ye(i,e instanceof Error?e.message:String(e)).catch(()=>{})),e}}async function ht(e){let{cfg:t,channel:n,to:r,payloads:i}=e,a=e.accountId,o=e.deps,s=e.abortSignal,c=e.deps?.sendSignal??w,l=ee(t,e.session?.agentId??e.mirror?.agentId),u=[],p=await rt({cfg:t,channel:n,to:r,deps:o,accountId:a,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,silent:e.silent,mediaLocalRoots:l}),m=p.chunker?b(t,n,a,{fallbackLimit:p.textChunkLimit}):void 0,h=n===`telegram`&&typeof m==`number`?Math.min(m,4096):m,g=p.chunker?te(t,n,a):`length`,_=n===`signal`,v=_?ne({cfg:t,channel:`signal`,accountId:a}):`code`,S=_?Re({cfg:t,resolveChannelLimitMb:({cfg:e,accountId:t})=>e.channels?.signal?.accounts?.[t]?.mediaMaxMb??e.channels?.signal?.mediaMaxMb,accountId:a}):void 0,T=async(e,t)=>{if(X(s),!p.chunker||h===void 0){u.push(await p.sendText(e,t));return}if(g===`newline`){let n=(p.chunkerMode??`text`)===`markdown`?y(e,h,`newline`):x(e,h);!n.length&&e&&n.push(e);for(let e of n){let n=p.chunker(e,h);!n.length&&e&&n.push(e);for(let e of n)X(s),u.push(await p.sendText(e,t))}return}let n=p.chunker(e,h);for(let e of n)X(s),u.push(await p.sendText(e,t))},E=async(e,n)=>(X(s),{channel:`signal`,...await c(r,e,{cfg:t,maxBytes:S,accountId:a??void 0,textMode:`plain`,textStyles:n})}),D=async e=>{X(s);let t=h===void 0?C(e,1/0,{tableMode:v}):C(e,h,{tableMode:v});t.length===0&&e&&(t=[{text:e,styles:[]}]);for(let e of t)X(s),u.push(await E(e.text,e.styles))},O=async(e,n)=>{X(s);let i=C(e,1/0,{tableMode:v})[0]??{text:e,styles:[]};return{channel:`signal`,...await c(r,i.text,{cfg:t,mediaUrl:n,maxBytes:S,accountId:a??void 0,textMode:`plain`,textStyles:i.styles,mediaLocalRoots:l})}},k=ut(i,n,t,r,a),A=F(),j=e.mirror?.sessionKey??e.session?.key,M=e.mirror?.isGroup,N=e.mirror?.groupId,{emitMessageSent:P,hasMessageSentHooks:re}=ft({hookRunner:A,channel:n,to:r,accountId:a,sessionKeyForInternalHooks:j,mirrorIsGroup:M,mirrorGroupId:N}),I=A?.hasHooks(`message_sending`)??!1;re&&e.session?.agentId&&!j&&$.warn(`deliverOutboundPayloads: session.agentId present without session key; internal message:sent hook will be skipped`,{channel:n,to:r,agentId:e.session.agentId});for(let t of k){let i=dt(t);try{X(s);let o=await pt({hookRunner:A,enabled:I,payload:t,payloadSummary:i,to:r,channel:n,accountId:a});if(o.cancelled)continue;let c=o.payload;i=o.payloadSummary,e.onPayload?.(i);let l={replyToId:c.replyToId??e.replyToId??void 0,threadId:e.threadId??void 0};if(p.sendPayload&&c.channelData){let e=await p.sendPayload(c,l);u.push(e),P({success:!0,content:i.text,messageId:e.messageId});continue}if(i.mediaUrls.length===0){let e=u.length;_?await D(i.text):await T(i.text,l);let t=u.at(-1)?.messageId;P({success:u.length>e,content:i.text,messageId:t});continue}if(!p.supportsMedia){$.warn(`Plugin outbound adapter does not implement sendMedia; media URLs will be dropped and text fallback will be used`,{channel:n,to:r,mediaCount:i.mediaUrls.length});let e=i.text.trim();if(!e)throw Error(`Plugin outbound adapter does not implement sendMedia and no text fallback is available for media payload`);let t=u.length;await T(e,l);let a=u.at(-1)?.messageId;P({success:u.length>t,content:i.text,messageId:a});continue}let d=!0,f;for(let e of i.mediaUrls){X(s);let t=d?i.text:``;if(d=!1,_){let n=await O(t,e);u.push(n),f=n.messageId}else{let n=await p.sendMedia(t,e,l);u.push(n),f=n.messageId}}P({success:!0,content:i.text,messageId:f})}catch(t){if(P({success:!1,content:i.text,error:t instanceof Error?t.message:String(t)}),!e.bestEffort)throw t;e.onError?.(t,i)}}if(e.mirror&&u.length>0){let t=d({text:e.mirror.text,mediaUrls:e.mirror.mediaUrls});t&&await f({agentId:e.mirror.agentId,sessionKey:e.mirror.sessionKey,text:t})}return u}export{L as A,B as C,ce as D,R as E,P as M,O as N,ae as O,pe as S,V as T,K as _,Q as a,de as b,Fe as c,Ce as d,xe as f,be as g,G as h,Qe as i,F as j,re as k,W as l,Se as m,$e as n,X as o,Te as p,Ze as r,Ie as s,mt as t,ye as u,U as v,ve as w,fe as x,ue as y};
|
|
19
|
+
//# sourceMappingURL=deliver-BFQ4Zx9z.js.map
|
package/dist/deliver-BHuhHfkH.js
CHANGED
|
@@ -16,3 +16,4 @@ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{S as t,t as n}from"./s
|
|
|
16
16
|
`).replace(/<\/?[a-z][a-z0-9]*\b[^>]*>/gi,``).replace(/\n{3,}/g,`
|
|
17
17
|
|
|
18
18
|
`)}var Ye=e({deliverOutboundPayloads:()=>st});const $=n(`outbound/deliver`);async function Xe(e){let t=await Ve(e.channel),n=Ze({...e,outbound:t});if(!n)throw Error(`Outbound not configured for channel: ${e.channel}`);return n}function Ze(e){let t=e.outbound;if(!t?.sendText)return null;let n=Qe(e),r=t.sendText,i=t.sendMedia,a=t.chunker??null,o=t.chunkerMode,s=e=>({...n,replyToId:e?.replyToId??n.replyToId,threadId:e?.threadId??n.threadId});return{chunker:a,chunkerMode:o,textChunkLimit:t.textChunkLimit,supportsMedia:!!i,sendPayload:t.sendPayload?async(e,n)=>t.sendPayload({...s(n),text:e.text??``,mediaUrl:e.mediaUrl,payload:e}):void 0,sendText:async(e,t)=>r({...s(t),text:e}),sendMedia:async(e,t,n)=>i?i({...s(n),text:e,mediaUrl:t}):r({...s(n),text:e})}}function Qe(e){return{cfg:e.cfg,to:e.to,accountId:e.accountId,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,deps:e.deps,silent:e.silent,mediaLocalRoots:e.mediaLocalRoots}}const $e=e=>e instanceof Error&&e.name===`AbortError`;function et(e){return!!e.mediaUrl||(e.mediaUrls?.length??0)>0}function tt(e){return!!(e.channelData&&Object.keys(e.channelData).length>0)}function nt(e,t){let n=et(e),r=tt(e),i=typeof e.text==`string`?e.text:``,a=t===`whatsapp`?i.replace(/^(?:[ \t]*\r?\n)+/,``):i;return a.trim()?a===i?e:{...e,text:a}:!n&&!r?null:{...e,text:``}}function rt(e,t,n,r,i){let a=[];for(let n of Q(e)){let e=n;qe(t)&&e.text&&(t===`telegram`&&e.channelData||(e={...e,text:Je(e.text)}));let r=nt(e,t);r&&a.push(r)}return a}function it(e){return{text:e.text??``,mediaUrls:e.mediaUrls??(e.mediaUrl?[e.mediaUrl]:[]),channelData:e.channelData}}function at(e){let t=e.hookRunner?.hasHooks(`message_sent`)??!1,n=!!e.sessionKeyForInternalHooks;return{emitMessageSent:r=>{if(!t&&!n)return;let i=ke({to:e.to,content:r.content,success:r.success,error:r.error,channelId:e.channel,accountId:e.accountId??void 0,conversationId:e.to,messageId:r.messageId,isGroup:e.mirrorIsGroup,groupId:e.mirrorGroupId});t&&Y(e.hookRunner.runMessageSent(Me(i),Ae(i)),`deliverOutboundPayloads: message_sent plugin hook failed`,e=>{$.warn(e)}),n&&Y(u(d(`message`,`sent`,e.sessionKeyForInternalHooks,X(i))),`deliverOutboundPayloads: message:sent internal hook failed`,e=>{$.warn(e)})},hasMessageSentHooks:t}}async function ot(e){if(!e.enabled)return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary};try{let t=await e.hookRunner.runMessageSending({to:e.to,content:e.payloadSummary.text,metadata:{channel:e.channel,accountId:e.accountId,mediaUrls:e.payloadSummary.mediaUrls}},{channelId:e.channel,accountId:e.accountId??void 0});return t?.cancel?{cancelled:!0,payload:e.payload,payloadSummary:e.payloadSummary}:t?.content==null?{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}:{cancelled:!1,payload:{...e.payload,text:t.content},payloadSummary:{...e.payloadSummary,text:t.content}}}catch{return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}}}async function st(e){let{channel:t,to:n,payloads:r}=e,i=e.skipQueue?null:await T({channel:t,to:n,accountId:e.accountId,payloads:r,threadId:e.threadId,replyToId:e.replyToId,bestEffort:e.bestEffort,gifPlayback:e.gifPlayback,silent:e.silent,mirror:e.mirror}).catch(()=>null),a=!1,o=e.onError?{...e,onError:(t,n)=>{a=!0,e.onError(t,n)}}:e;try{let e=await ct(o);return i&&(a?await w(i,`partial delivery failure (bestEffort)`).catch(()=>{}):await E(i).catch(()=>{})),e}catch(e){throw i&&($e(e)?await E(i).catch(()=>{}):await w(i,e instanceof Error?e.message:String(e)).catch(()=>{})),e}}async function ct(e){let{cfg:t,channel:n,to:i,payloads:a}=e,s=e.accountId,c=e.deps,l=e.abortSignal,u=e.deps?.sendSignal??C,d=ee(t,e.session?.agentId??e.mirror?.agentId),f=[],p=await Xe({cfg:t,channel:n,to:i,deps:c,accountId:s,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,silent:e.silent,mediaLocalRoots:d}),m=p.chunker?te(t,n,s,{fallbackLimit:p.textChunkLimit}):void 0,h=n===`telegram`&&typeof m==`number`?Math.min(m,4096):m,g=p.chunker?y(t,n,s):`length`,_=n===`signal`,x=_?b({cfg:t,channel:`signal`,accountId:s}):`code`,w=_?Re({cfg:t,resolveChannelLimitMb:({cfg:e,accountId:t})=>e.channels?.signal?.accounts?.[t]?.mediaMaxMb??e.channels?.signal?.mediaMaxMb,accountId:s}):void 0,T=async(e,t)=>{if(Z(l),!p.chunker||h===void 0){f.push(await p.sendText(e,t));return}if(g===`newline`){let n=(p.chunkerMode??`text`)===`markdown`?v(e,h,`newline`):ne(e,h);!n.length&&e&&n.push(e);for(let e of n){let n=p.chunker(e,h);!n.length&&e&&n.push(e);for(let e of n)Z(l),f.push(await p.sendText(e,t))}return}let n=p.chunker(e,h);for(let e of n)Z(l),f.push(await p.sendText(e,t))},E=async(e,n)=>(Z(l),{channel:`signal`,...await u(i,e,{cfg:t,maxBytes:w,accountId:s??void 0,textMode:`plain`,textStyles:n})}),D=async e=>{Z(l);let t=h===void 0?S(e,1/0,{tableMode:x}):S(e,h,{tableMode:x});t.length===0&&e&&(t=[{text:e,styles:[]}]);for(let e of t)Z(l),f.push(await E(e.text,e.styles))},O=async(e,n)=>{Z(l);let r=S(e,1/0,{tableMode:x})[0]??{text:e,styles:[]};return{channel:`signal`,...await u(i,r.text,{cfg:t,mediaUrl:n,maxBytes:w,accountId:s??void 0,textMode:`plain`,textStyles:r.styles,mediaLocalRoots:d})}},k=rt(a,n,t,i,s),A=F(),j=e.mirror?.sessionKey??e.session?.key,M=e.mirror?.isGroup,N=e.mirror?.groupId,{emitMessageSent:P,hasMessageSentHooks:re}=at({hookRunner:A,channel:n,to:i,accountId:s,sessionKeyForInternalHooks:j,mirrorIsGroup:M,mirrorGroupId:N}),ie=A?.hasHooks(`message_sending`)??!1;re&&e.session?.agentId&&!j&&$.warn(`deliverOutboundPayloads: session.agentId present without session key; internal message:sent hook will be skipped`,{channel:n,to:i,agentId:e.session.agentId});for(let t of k){let r=it(t);try{Z(l);let a=await ot({hookRunner:A,enabled:ie,payload:t,payloadSummary:r,to:i,channel:n,accountId:s});if(a.cancelled)continue;let o=a.payload;r=a.payloadSummary,e.onPayload?.(r);let c={replyToId:o.replyToId??e.replyToId??void 0,threadId:e.threadId??void 0};if(p.sendPayload&&o.channelData){let e=await p.sendPayload(o,c);f.push(e),P({success:!0,content:r.text,messageId:e.messageId});continue}if(r.mediaUrls.length===0){let e=f.length;_?await D(r.text):await T(r.text,c);let t=f.at(-1)?.messageId;P({success:f.length>e,content:r.text,messageId:t});continue}if(!p.supportsMedia){$.warn(`Plugin outbound adapter does not implement sendMedia; media URLs will be dropped and text fallback will be used`,{channel:n,to:i,mediaCount:r.mediaUrls.length});let e=r.text.trim();if(!e)throw Error(`Plugin outbound adapter does not implement sendMedia and no text fallback is available for media payload`);let t=f.length;await T(e,c);let a=f.at(-1)?.messageId;P({success:f.length>t,content:r.text,messageId:a});continue}let u=!0,d;for(let e of r.mediaUrls){Z(l);let t=u?r.text:``;if(u=!1,_){let n=await O(t,e);f.push(n),d=n.messageId}else{let n=await p.sendMedia(t,e,c);f.push(n),d=n.messageId}}P({success:!0,content:r.text,messageId:d})}catch(t){if(P({success:!1,content:r.text,error:t instanceof Error?t.message:String(t)}),!e.bestEffort)throw t;e.onError?.(t,r)}}if(e.mirror&&f.length>0){let t=r({text:e.mirror.text,mediaUrls:e.mirror.mediaUrls});t&&await o({agentId:e.mirror.agentId,sessionKey:e.mirror.sessionKey,text:t})}return f}export{V as A,De as C,me as D,_e as E,O as F,F as M,P as N,fe as O,re as P,K as S,W as T,Y as _,We as a,xe as b,ke as c,Ne as d,X as f,Me as g,je as h,Ue as i,B as j,U as k,Oe as l,Ae as m,Ye as n,Q as o,Pe as p,Ge as r,Z as s,st as t,Fe as u,ye as v,q as w,Se as x,be as y};
|
|
19
|
+
//# sourceMappingURL=deliver-BHuhHfkH.js.map
|
package/dist/deliver-ClBkV2eD.js
CHANGED
|
@@ -16,3 +16,4 @@ import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{S as t,t as n}from"./s
|
|
|
16
16
|
`).replace(/<\/?[a-z][a-z0-9]*\b[^>]*>/gi,``).replace(/\n{3,}/g,`
|
|
17
17
|
|
|
18
18
|
`)}var Ye=e({deliverOutboundPayloads:()=>st});const $=n(`outbound/deliver`);async function Xe(e){let t=await Ve(e.channel),n=Ze({...e,outbound:t});if(!n)throw Error(`Outbound not configured for channel: ${e.channel}`);return n}function Ze(e){let t=e.outbound;if(!t?.sendText)return null;let n=Qe(e),r=t.sendText,i=t.sendMedia,a=t.chunker??null,o=t.chunkerMode,s=e=>({...n,replyToId:e?.replyToId??n.replyToId,threadId:e?.threadId??n.threadId});return{chunker:a,chunkerMode:o,textChunkLimit:t.textChunkLimit,supportsMedia:!!i,sendPayload:t.sendPayload?async(e,n)=>t.sendPayload({...s(n),text:e.text??``,mediaUrl:e.mediaUrl,payload:e}):void 0,sendText:async(e,t)=>r({...s(t),text:e}),sendMedia:async(e,t,n)=>i?i({...s(n),text:e,mediaUrl:t}):r({...s(n),text:e})}}function Qe(e){return{cfg:e.cfg,to:e.to,accountId:e.accountId,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,deps:e.deps,silent:e.silent,mediaLocalRoots:e.mediaLocalRoots}}const $e=e=>e instanceof Error&&e.name===`AbortError`;function et(e){return!!e.mediaUrl||(e.mediaUrls?.length??0)>0}function tt(e){return!!(e.channelData&&Object.keys(e.channelData).length>0)}function nt(e,t){let n=et(e),r=tt(e),i=typeof e.text==`string`?e.text:``,a=t===`whatsapp`?i.replace(/^(?:[ \t]*\r?\n)+/,``):i;return a.trim()?a===i?e:{...e,text:a}:!n&&!r?null:{...e,text:``}}function rt(e,t,n,r,i){let a=[];for(let n of Q(e)){let e=n;qe(t)&&e.text&&(t===`telegram`&&e.channelData||(e={...e,text:Je(e.text)}));let r=nt(e,t);r&&a.push(r)}return a}function it(e){return{text:e.text??``,mediaUrls:e.mediaUrls??(e.mediaUrl?[e.mediaUrl]:[]),channelData:e.channelData}}function at(e){let t=e.hookRunner?.hasHooks(`message_sent`)??!1,n=!!e.sessionKeyForInternalHooks;return{emitMessageSent:r=>{if(!t&&!n)return;let i=q({to:e.to,content:r.content,success:r.success,error:r.error,channelId:e.channel,accountId:e.accountId??void 0,conversationId:e.to,messageId:r.messageId,isGroup:e.mirrorIsGroup,groupId:e.mirrorGroupId});t&&K(e.hookRunner.runMessageSent(be(i),ve(i)),`deliverOutboundPayloads: message_sent plugin hook failed`,e=>{$.warn(e)}),n&&K(u(d(`message`,`sent`,e.sessionKeyForInternalHooks,Te(i))),`deliverOutboundPayloads: message:sent internal hook failed`,e=>{$.warn(e)})},hasMessageSentHooks:t}}async function ot(e){if(!e.enabled)return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary};try{let t=await e.hookRunner.runMessageSending({to:e.to,content:e.payloadSummary.text,metadata:{channel:e.channel,accountId:e.accountId,mediaUrls:e.payloadSummary.mediaUrls}},{channelId:e.channel,accountId:e.accountId??void 0});return t?.cancel?{cancelled:!0,payload:e.payload,payloadSummary:e.payloadSummary}:t?.content==null?{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}:{cancelled:!1,payload:{...e.payload,text:t.content},payloadSummary:{...e.payloadSummary,text:t.content}}}catch{return{cancelled:!1,payload:e.payload,payloadSummary:e.payloadSummary}}}async function st(e){let{channel:t,to:n,payloads:r}=e,i=e.skipQueue?null:await E({channel:t,to:n,accountId:e.accountId,payloads:r,threadId:e.threadId,replyToId:e.replyToId,bestEffort:e.bestEffort,gifPlayback:e.gifPlayback,silent:e.silent,mirror:e.mirror}).catch(()=>null),a=!1,o=e.onError?{...e,onError:(t,n)=>{a=!0,e.onError(t,n)}}:e;try{let e=await ct(o);return i&&(a?await T(i,`partial delivery failure (bestEffort)`).catch(()=>{}):await D(i).catch(()=>{})),e}catch(e){throw i&&($e(e)?await D(i).catch(()=>{}):await T(i,e instanceof Error?e.message:String(e)).catch(()=>{})),e}}async function ct(e){let{cfg:t,channel:n,to:a,payloads:o}=e,s=e.accountId,c=e.deps,l=e.abortSignal,u=e.deps?.sendSignal??w,d=g(t,e.session?.agentId??e.mirror?.agentId),f=[],p=await Xe({cfg:t,channel:n,to:a,deps:c,accountId:s,replyToId:e.replyToId,threadId:e.threadId,identity:e.identity,gifPlayback:e.gifPlayback,silent:e.silent,mediaLocalRoots:d}),m=p.chunker?b(t,n,s,{fallbackLimit:p.textChunkLimit}):void 0,h=n===`telegram`&&typeof m==`number`?Math.min(m,4096):m,_=p.chunker?ee(t,n,s):`length`,v=n===`signal`,S=v?te({cfg:t,channel:`signal`,accountId:s}):`code`,T=v?Re({cfg:t,resolveChannelLimitMb:({cfg:e,accountId:t})=>e.channels?.signal?.accounts?.[t]?.mediaMaxMb??e.channels?.signal?.mediaMaxMb,accountId:s}):void 0,E=async(e,t)=>{if(Z(l),!p.chunker||h===void 0){f.push(await p.sendText(e,t));return}if(_===`newline`){let n=(p.chunkerMode??`text`)===`markdown`?y(e,h,`newline`):x(e,h);!n.length&&e&&n.push(e);for(let e of n){let n=p.chunker(e,h);!n.length&&e&&n.push(e);for(let e of n)Z(l),f.push(await p.sendText(e,t))}return}let n=p.chunker(e,h);for(let e of n)Z(l),f.push(await p.sendText(e,t))},D=async(e,n)=>(Z(l),{channel:`signal`,...await u(a,e,{cfg:t,maxBytes:T,accountId:s??void 0,textMode:`plain`,textStyles:n})}),O=async e=>{Z(l);let t=h===void 0?C(e,1/0,{tableMode:S}):C(e,h,{tableMode:S});t.length===0&&e&&(t=[{text:e,styles:[]}]);for(let e of t)Z(l),f.push(await D(e.text,e.styles))},k=async(e,n)=>{Z(l);let r=C(e,1/0,{tableMode:S})[0]??{text:e,styles:[]};return{channel:`signal`,...await u(a,r.text,{cfg:t,mediaUrl:n,maxBytes:T,accountId:s??void 0,textMode:`plain`,textStyles:r.styles,mediaLocalRoots:d})}},A=rt(o,n,t,a,s),j=I(),M=e.mirror?.sessionKey??e.session?.key,N=e.mirror?.isGroup,P=e.mirror?.groupId,{emitMessageSent:F,hasMessageSentHooks:L}=at({hookRunner:j,channel:n,to:a,accountId:s,sessionKeyForInternalHooks:M,mirrorIsGroup:N,mirrorGroupId:P}),R=j?.hasHooks(`message_sending`)??!1;L&&e.session?.agentId&&!M&&$.warn(`deliverOutboundPayloads: session.agentId present without session key; internal message:sent hook will be skipped`,{channel:n,to:a,agentId:e.session.agentId});for(let t of A){let r=it(t);try{Z(l);let i=await ot({hookRunner:j,enabled:R,payload:t,payloadSummary:r,to:a,channel:n,accountId:s});if(i.cancelled)continue;let o=i.payload;r=i.payloadSummary,e.onPayload?.(r);let c={replyToId:o.replyToId??e.replyToId??void 0,threadId:e.threadId??void 0};if(p.sendPayload&&o.channelData){let e=await p.sendPayload(o,c);f.push(e),F({success:!0,content:r.text,messageId:e.messageId});continue}if(r.mediaUrls.length===0){let e=f.length;v?await O(r.text):await E(r.text,c);let t=f.at(-1)?.messageId;F({success:f.length>e,content:r.text,messageId:t});continue}if(!p.supportsMedia){$.warn(`Plugin outbound adapter does not implement sendMedia; media URLs will be dropped and text fallback will be used`,{channel:n,to:a,mediaCount:r.mediaUrls.length});let e=r.text.trim();if(!e)throw Error(`Plugin outbound adapter does not implement sendMedia and no text fallback is available for media payload`);let t=f.length;await E(e,c);let i=f.at(-1)?.messageId;F({success:f.length>t,content:r.text,messageId:i});continue}let u=!0,d;for(let e of r.mediaUrls){Z(l);let t=u?r.text:``;if(u=!1,v){let n=await k(t,e);f.push(n),d=n.messageId}else{let n=await p.sendMedia(t,e,c);f.push(n),d=n.messageId}}F({success:!0,content:r.text,messageId:d})}catch(t){if(F({success:!1,content:r.text,error:t instanceof Error?t.message:String(t)}),!e.bestEffort)throw t;e.onError?.(t,r)}}if(e.mirror&&f.length>0){let t=i({text:e.mirror.text,mediaUrls:e.mirror.mediaUrls});t&&await r({agentId:e.mirror.agentId,sessionKey:e.mirror.sessionKey,text:t})}return f}export{R as A,de as C,V as D,W as E,k as F,I as M,F as N,oe as O,L as P,ue as S,ge as T,ye as _,We as a,ce as b,Ie as c,_e as d,Ce as f,ve as g,Se as h,Ue as i,B as j,re as k,Fe as l,Te as m,Ye as n,Q as o,xe as p,Ge as r,Z as s,st as t,q as u,be as v,U as w,le as x,K as y};
|
|
19
|
+
//# sourceMappingURL=deliver-ClBkV2eD.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-B4IRk3wi.js";import{n}from"./secure-random-D7JQgiK-.js";import r from"node:fs";import i from"node:path";var a=e({MAX_RETRIES:()=>5,ackDelivery:()=>m,computeBackoffMs:()=>v,enqueueDelivery:()=>p,ensureQueueDir:()=>f,failDelivery:()=>h,isEntryEligibleForRecoveryRetry:()=>y,isPermanentDeliveryError:()=>C,loadPendingDeliveries:()=>g,moveToFailed:()=>_,recoverPendingDeliveries:()=>x});const o=[5e3,25e3,12e4,6e5];function s(e){let n=e??t();return i.join(n,`delivery-queue`)}function c(e){return i.join(s(e),`failed`)}function l(e,t){let n=s(t);return{jsonPath:i.join(n,`${e}.json`),deliveredPath:i.join(n,`${e}.delivered`)}}function u(e){return e&&typeof e==`object`&&`code`in e?String(e.code):null}async function d(e){try{await r.promises.unlink(e)}catch{}}async function f(e){let t=s(e);return await r.promises.mkdir(t,{recursive:!0,mode:448}),await r.promises.mkdir(c(e),{recursive:!0,mode:448}),t}async function p(e,t){let a=await f(t),o=n(),s={id:o,enqueuedAt:Date.now(),channel:e.channel,to:e.to,accountId:e.accountId,payloads:e.payloads,threadId:e.threadId,replyToId:e.replyToId,bestEffort:e.bestEffort,gifPlayback:e.gifPlayback,silent:e.silent,mirror:e.mirror,retryCount:0},c=i.join(a,`${o}.json`),l=`${c}.${process.pid}.tmp`,u=JSON.stringify(s,null,2);return await r.promises.writeFile(l,u,{encoding:`utf-8`,mode:384}),await r.promises.rename(l,c),o}async function m(e,t){let{jsonPath:n,deliveredPath:i}=l(e,t);try{await r.promises.rename(n,i)}catch(e){if(u(e)===`ENOENT`){await d(i);return}throw e}await d(i)}async function h(e,t,n){let a=i.join(s(n),`${e}.json`),o=await r.promises.readFile(a,`utf-8`),c=JSON.parse(o);c.retryCount+=1,c.lastAttemptAt=Date.now(),c.lastError=t;let l=`${a}.${process.pid}.tmp`;await r.promises.writeFile(l,JSON.stringify(c,null,2),{encoding:`utf-8`,mode:384}),await r.promises.rename(l,a)}async function g(e){let t=s(e),n;try{n=await r.promises.readdir(t)}catch(e){if(u(e)===`ENOENT`)return[];throw e}for(let e of n)e.endsWith(`.delivered`)&&await d(i.join(t,e));let a=[];for(let e of n){if(!e.endsWith(`.json`))continue;let n=i.join(t,e);try{if(!(await r.promises.stat(n)).isFile())continue;let e=await r.promises.readFile(n,`utf-8`),{entry:t,migrated:i}=b(JSON.parse(e));if(i){let e=`${n}.${process.pid}.tmp`;await r.promises.writeFile(e,JSON.stringify(t,null,2),{encoding:`utf-8`,mode:384}),await r.promises.rename(e,n)}a.push(t)}catch{}}return a}async function _(e,t){let n=s(t),a=c(t);await r.promises.mkdir(a,{recursive:!0,mode:448});let o=i.join(n,`${e}.json`),l=i.join(a,`${e}.json`);await r.promises.rename(o,l)}function v(e){return e<=0?0:o[Math.min(e-1,o.length-1)]??o.at(-1)??0}function y(e,t){let n=v(e.retryCount+1);if(n<=0||e.retryCount===0&&e.lastAttemptAt===void 0)return{eligible:!0};let r=(typeof e.lastAttemptAt==`number`&&Number.isFinite(e.lastAttemptAt)&&e.lastAttemptAt>0?e.lastAttemptAt??e.enqueuedAt:e.enqueuedAt)+n;return t>=r?{eligible:!0}:{eligible:!1,remainingBackoffMs:r-t}}function b(e){return typeof e.lastAttemptAt==`number`&&Number.isFinite(e.lastAttemptAt)&&e.lastAttemptAt>0||e.retryCount<=0||!(typeof e.enqueuedAt==`number`&&Number.isFinite(e.enqueuedAt)&&e.enqueuedAt>0)?{entry:e,migrated:!1}:{entry:{...e,lastAttemptAt:e.enqueuedAt},migrated:!0}}async function x(e){let t=await g(e.stateDir);if(t.length===0)return{recovered:0,failed:0,skippedMaxRetries:0,deferredBackoff:0};t.sort((e,t)=>e.enqueuedAt-t.enqueuedAt),e.log.info(`Found ${t.length} pending delivery entries — starting recovery`);let n=Date.now()+(e.maxRecoveryMs??6e4),r=0,i=0,a=0,o=0;for(let s of t){let c=Date.now();if(c>=n){let n=t.length-r-i-a-o;e.log.warn(`Recovery time budget exceeded — ${n} entries deferred to next restart`);break}if(s.retryCount>=5){e.log.warn(`Delivery ${s.id} exceeded max retries (${s.retryCount}/5) — moving to failed/`);try{await _(s.id,e.stateDir)}catch(t){e.log.error(`Failed to move entry ${s.id} to failed/: ${String(t)}`)}a+=1;continue}let l=y(s,c);if(!l.eligible){o+=1,e.log.info(`Delivery ${s.id} not ready for retry yet — backoff ${l.remainingBackoffMs}ms remaining`);continue}try{await e.deliver({cfg:e.cfg,channel:s.channel,to:s.to,accountId:s.accountId,payloads:s.payloads,threadId:s.threadId,replyToId:s.replyToId,bestEffort:s.bestEffort,gifPlayback:s.gifPlayback,silent:s.silent,mirror:s.mirror,skipQueue:!0}),await m(s.id,e.stateDir),r+=1,e.log.info(`Recovered delivery ${s.id} to ${s.channel}:${s.to}`)}catch(t){let n=t instanceof Error?t.message:String(t);if(C(n)){e.log.warn(`Delivery ${s.id} hit permanent error — moving to failed/: ${n}`);try{await _(s.id,e.stateDir)}catch(t){e.log.error(`Failed to move entry ${s.id} to failed/: ${String(t)}`)}i+=1;continue}try{await h(s.id,n,e.stateDir)}catch{}i+=1,e.log.warn(`Retry failed for delivery ${s.id}: ${n}`)}}return e.log.info(`Delivery recovery complete: ${r} recovered, ${i} failed, ${a} skipped (max retries), ${o} deferred (backoff)`),{recovered:r,failed:i,skippedMaxRetries:a,deferredBackoff:o}}const S=[/no conversation reference found/i,/chat not found/i,/user not found/i,/bot was blocked by the user/i,/forbidden: bot was kicked/i,/chat_id is empty/i,/recipient is not a valid/i,/outbound not configured for channel/i,/ambiguous discord recipient/i];function C(e){return S.some(t=>t.test(e))}export{h as i,a as n,p as r,m as t};
|
|
2
|
+
//# sourceMappingURL=delivery-queue-CKbauSFq.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{g as t}from"./paths-BjD3T_xq.js";import{n}from"./secure-random-D7JQgiK-.js";import r from"node:path";import i from"node:fs";var a=e({MAX_RETRIES:()=>5,ackDelivery:()=>m,computeBackoffMs:()=>v,enqueueDelivery:()=>p,ensureQueueDir:()=>f,failDelivery:()=>h,isEntryEligibleForRecoveryRetry:()=>y,isPermanentDeliveryError:()=>C,loadPendingDeliveries:()=>g,moveToFailed:()=>_,recoverPendingDeliveries:()=>x});const o=[5e3,25e3,12e4,6e5];function s(e){let n=e??t();return r.join(n,`delivery-queue`)}function c(e){return r.join(s(e),`failed`)}function l(e,t){let n=s(t);return{jsonPath:r.join(n,`${e}.json`),deliveredPath:r.join(n,`${e}.delivered`)}}function u(e){return e&&typeof e==`object`&&`code`in e?String(e.code):null}async function d(e){try{await i.promises.unlink(e)}catch{}}async function f(e){let t=s(e);return await i.promises.mkdir(t,{recursive:!0,mode:448}),await i.promises.mkdir(c(e),{recursive:!0,mode:448}),t}async function p(e,t){let a=await f(t),o=n(),s={id:o,enqueuedAt:Date.now(),channel:e.channel,to:e.to,accountId:e.accountId,payloads:e.payloads,threadId:e.threadId,replyToId:e.replyToId,bestEffort:e.bestEffort,gifPlayback:e.gifPlayback,silent:e.silent,mirror:e.mirror,retryCount:0},c=r.join(a,`${o}.json`),l=`${c}.${process.pid}.tmp`,u=JSON.stringify(s,null,2);return await i.promises.writeFile(l,u,{encoding:`utf-8`,mode:384}),await i.promises.rename(l,c),o}async function m(e,t){let{jsonPath:n,deliveredPath:r}=l(e,t);try{await i.promises.rename(n,r)}catch(e){if(u(e)===`ENOENT`){await d(r);return}throw e}await d(r)}async function h(e,t,n){let a=r.join(s(n),`${e}.json`),o=await i.promises.readFile(a,`utf-8`),c=JSON.parse(o);c.retryCount+=1,c.lastAttemptAt=Date.now(),c.lastError=t;let l=`${a}.${process.pid}.tmp`;await i.promises.writeFile(l,JSON.stringify(c,null,2),{encoding:`utf-8`,mode:384}),await i.promises.rename(l,a)}async function g(e){let t=s(e),n;try{n=await i.promises.readdir(t)}catch(e){if(u(e)===`ENOENT`)return[];throw e}for(let e of n)e.endsWith(`.delivered`)&&await d(r.join(t,e));let a=[];for(let e of n){if(!e.endsWith(`.json`))continue;let n=r.join(t,e);try{if(!(await i.promises.stat(n)).isFile())continue;let e=await i.promises.readFile(n,`utf-8`),{entry:t,migrated:r}=b(JSON.parse(e));if(r){let e=`${n}.${process.pid}.tmp`;await i.promises.writeFile(e,JSON.stringify(t,null,2),{encoding:`utf-8`,mode:384}),await i.promises.rename(e,n)}a.push(t)}catch{}}return a}async function _(e,t){let n=s(t),a=c(t);await i.promises.mkdir(a,{recursive:!0,mode:448});let o=r.join(n,`${e}.json`),l=r.join(a,`${e}.json`);await i.promises.rename(o,l)}function v(e){return e<=0?0:o[Math.min(e-1,o.length-1)]??o.at(-1)??0}function y(e,t){let n=v(e.retryCount+1);if(n<=0||e.retryCount===0&&e.lastAttemptAt===void 0)return{eligible:!0};let r=(typeof e.lastAttemptAt==`number`&&Number.isFinite(e.lastAttemptAt)&&e.lastAttemptAt>0?e.lastAttemptAt??e.enqueuedAt:e.enqueuedAt)+n;return t>=r?{eligible:!0}:{eligible:!1,remainingBackoffMs:r-t}}function b(e){return typeof e.lastAttemptAt==`number`&&Number.isFinite(e.lastAttemptAt)&&e.lastAttemptAt>0||e.retryCount<=0||!(typeof e.enqueuedAt==`number`&&Number.isFinite(e.enqueuedAt)&&e.enqueuedAt>0)?{entry:e,migrated:!1}:{entry:{...e,lastAttemptAt:e.enqueuedAt},migrated:!0}}async function x(e){let t=await g(e.stateDir);if(t.length===0)return{recovered:0,failed:0,skippedMaxRetries:0,deferredBackoff:0};t.sort((e,t)=>e.enqueuedAt-t.enqueuedAt),e.log.info(`Found ${t.length} pending delivery entries — starting recovery`);let n=Date.now()+(e.maxRecoveryMs??6e4),r=0,i=0,a=0,o=0;for(let s of t){let c=Date.now();if(c>=n){let n=t.length-r-i-a-o;e.log.warn(`Recovery time budget exceeded — ${n} entries deferred to next restart`);break}if(s.retryCount>=5){e.log.warn(`Delivery ${s.id} exceeded max retries (${s.retryCount}/5) — moving to failed/`);try{await _(s.id,e.stateDir)}catch(t){e.log.error(`Failed to move entry ${s.id} to failed/: ${String(t)}`)}a+=1;continue}let l=y(s,c);if(!l.eligible){o+=1,e.log.info(`Delivery ${s.id} not ready for retry yet — backoff ${l.remainingBackoffMs}ms remaining`);continue}try{await e.deliver({cfg:e.cfg,channel:s.channel,to:s.to,accountId:s.accountId,payloads:s.payloads,threadId:s.threadId,replyToId:s.replyToId,bestEffort:s.bestEffort,gifPlayback:s.gifPlayback,silent:s.silent,mirror:s.mirror,skipQueue:!0}),await m(s.id,e.stateDir),r+=1,e.log.info(`Recovered delivery ${s.id} to ${s.channel}:${s.to}`)}catch(t){let n=t instanceof Error?t.message:String(t);if(C(n)){e.log.warn(`Delivery ${s.id} hit permanent error — moving to failed/: ${n}`);try{await _(s.id,e.stateDir)}catch(t){e.log.error(`Failed to move entry ${s.id} to failed/: ${String(t)}`)}i+=1;continue}try{await h(s.id,n,e.stateDir)}catch{}i+=1,e.log.warn(`Retry failed for delivery ${s.id}: ${n}`)}}return e.log.info(`Delivery recovery complete: ${r} recovered, ${i} failed, ${a} skipped (max retries), ${o} deferred (backoff)`),{recovered:r,failed:i,skippedMaxRetries:a,deferredBackoff:o}}const S=[/no conversation reference found/i,/chat not found/i,/user not found/i,/bot was blocked by the user/i,/forbidden: bot was kicked/i,/chat_id is empty/i,/recipient is not a valid/i,/outbound not configured for channel/i,/ambiguous discord recipient/i];function C(e){return S.some(t=>t.test(e))}export{h as i,a as n,p as r,m as t};
|
|
2
|
+
//# sourceMappingURL=delivery-queue-nkPJu0fY.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ai as e,Mi as t,ji as n}from"./model-selection-BlC_rXAN.js";import{cn as r}from"./call-CqoMqP5b.js";import{a as i,i as a,n as o,r as s,t as c}from"./pairing-token-BjYBuREl.js";import{randomUUID as l}from"node:crypto";const u=`operator.read`,d=`operator.write`;function f(e){let t=new Set;for(let n of e){let e=n.trim();e&&t.add(e)}return[...t]}function p(e,t){return t.has(`operator.admin`)&&e.startsWith(`operator.`)?!0:e===u?t.has(u)||t.has(d):e===d?t.has(d):t.has(e)}function m(e){let t=f(e.requestedScopes);if(t.length===0)return!0;let n=f(e.allowedScopes);if(n.length===0)return!1;let r=new Set(n);return e.role.trim()===`operator`?t.every(e=>p(e,r)):t.every(e=>r.has(e))}const h=e();async function g(e){let{pendingPath:t,pairedPath:r}=i(e,`devices`),[o,s]=await Promise.all([n(t),n(r)]),c={pendingById:o??{},pairedByDeviceId:s??{}};return a(c.pendingById,Date.now(),3e5),c}async function _(e,n){let{pendingPath:r,pairedPath:a}=i(n,`devices`);await Promise.all([t(r,e.pendingById),t(a,e.pairedByDeviceId)])}function v(e){return e.trim()}function y(e){return e?.trim()||null}function b(...e){let t=new Set;for(let n of e)if(n)if(Array.isArray(n))for(let e of n){let n=e.trim();n&&t.add(n)}else{let e=n.trim();e&&t.add(e)}if(t.size!==0)return[...t]}function x(...e){let t=new Set;for(let n of e)if(n)for(let e of n){let n=e.trim();n&&t.add(n)}if(t.size!==0)return[...t]}function S(e,t,n){let r=y(e.role),i=y(t.role);return{...e,displayName:t.displayName??e.displayName,platform:t.platform??e.platform,deviceFamily:t.deviceFamily??e.deviceFamily,clientId:t.clientId??e.clientId,clientMode:t.clientMode??e.clientMode,role:r??i??void 0,roles:b(e.roles,e.role,t.role),scopes:x(e.scopes,t.scopes),remoteIp:t.remoteIp??e.remoteIp,silent:!!(e.silent&&t.silent),isRepair:e.isRepair||n,ts:Date.now()}}function C(e,t){if(e.length===0)return!0;if(t.length===0)return!1;let n=new Set(t);return e.every(e=>n.has(e))}const w={"operator.admin":[`operator.read`,`operator.write`,`operator.approvals`,`operator.pairing`],"operator.write":[`operator.read`]};function T(e){let t=new Set(e),n=[...e];for(;n.length>0;){let e=n.pop();if(e)for(let r of w[e]??[])t.has(r)||(t.add(r),n.push(r))}return[...t]}function E(e,t){return C(T(e),T(t))}function D(){return c()}function O(e,t){return e.pairedByDeviceId[v(t)]??null}function k(e){return e.tokens?{...e.tokens}:{}}function A(e){return{token:D(),role:e.role,scopes:e.scopes,createdAtMs:e.existing?.createdAtMs??e.now,rotatedAtMs:e.rotatedAtMs,revokedAtMs:void 0,lastUsedAtMs:e.existing?.lastUsedAtMs}}async function j(e){let t=await g(e);return{pending:Object.values(t.pendingById).toSorted((e,t)=>t.ts-e.ts),paired:Object.values(t.pairedByDeviceId).toSorted((e,t)=>t.approvedAtMs-e.approvedAtMs)}}async function M(e,t){return(await g(t)).pairedByDeviceId[v(e)]??null}async function N(e,t){return await h(async()=>{let n=await g(t),r=v(e.deviceId);if(!r)throw Error(`deviceId required`);let i=!!n.pairedByDeviceId[r],a=Object.values(n.pendingById).find(e=>e.deviceId===r);if(a){let r=S(a,e,i);return n.pendingById[a.requestId]=r,await _(n,t),{status:`pending`,request:r,created:!1}}let o={requestId:l(),deviceId:r,publicKey:e.publicKey,displayName:e.displayName,platform:e.platform,deviceFamily:e.deviceFamily,clientId:e.clientId,clientMode:e.clientMode,role:e.role,roles:e.role?[e.role]:void 0,scopes:e.scopes,remoteIp:e.remoteIp,silent:e.silent,isRepair:i,ts:Date.now()};return n.pendingById[o.requestId]=o,await _(n,t),{status:`pending`,request:o,created:!0}})}async function P(e,t){return await h(async()=>{let n=await g(t),i=n.pendingById[e];if(!i)return null;let a=Date.now(),o=n.pairedByDeviceId[i.deviceId],s=b(o?.roles,o?.role,i.roles,i.role),c=x(o?.approvedScopes??o?.scopes,i.scopes),l=o?.tokens?{...o.tokens}:{},u=y(i.role);if(u){let e=l[u],t=r(i.scopes),n=t.length>0?t:r(e?.scopes??c??o?.approvedScopes??o?.scopes),a=Date.now();l[u]={token:D(),role:u,scopes:n,createdAtMs:e?.createdAtMs??a,rotatedAtMs:e?a:void 0,revokedAtMs:void 0,lastUsedAtMs:e?.lastUsedAtMs}}let d={deviceId:i.deviceId,publicKey:i.publicKey,displayName:i.displayName,platform:i.platform,deviceFamily:i.deviceFamily,clientId:i.clientId,clientMode:i.clientMode,role:i.role,roles:s,scopes:c,approvedScopes:c,remoteIp:i.remoteIp,tokens:l,createdAtMs:o?.createdAtMs??a,approvedAtMs:a};return delete n.pendingById[e],n.pairedByDeviceId[d.deviceId]=d,await _(n,t),{requestId:e,device:d}})}async function F(e,t){return await h(async()=>await s({requestId:e,idKey:`deviceId`,loadState:()=>g(t),persistState:e=>_(e,t),getId:e=>e.deviceId}))}async function I(e,t){return await h(async()=>{let n=await g(t),r=v(e);return!r||!n.pairedByDeviceId[r]?null:(delete n.pairedByDeviceId[r],await _(n,t),{deviceId:r})})}async function L(e,t,n){return await h(async()=>{let r=await g(n),i=r.pairedByDeviceId[v(e)];if(!i)return;let a=b(i.roles,i.role,t.role),o=x(i.scopes,t.scopes);r.pairedByDeviceId[e]={...i,...t,deviceId:i.deviceId,createdAtMs:i.createdAtMs,approvedAtMs:i.approvedAtMs,approvedScopes:i.approvedScopes,role:t.role??i.role,roles:a,scopes:o},await _(r,n)})}function R(e){if(!e)return;let t=Object.values(e).map(e=>({role:e.role,scopes:e.scopes,createdAtMs:e.createdAtMs,rotatedAtMs:e.rotatedAtMs,revokedAtMs:e.revokedAtMs,lastUsedAtMs:e.lastUsedAtMs})).toSorted((e,t)=>e.role.localeCompare(t.role));return t.length>0?t:void 0}async function z(e){return await h(async()=>{let t=await g(e.baseDir),n=O(t,e.deviceId);if(!n)return{ok:!1,reason:`device-not-paired`};let i=y(e.role);if(!i)return{ok:!1,reason:`role-missing`};let a=n.tokens?.[i];return a?a.revokedAtMs?{ok:!1,reason:`token-revoked`}:o(e.token,a.token)?m({role:i,requestedScopes:r(e.scopes),allowedScopes:a.scopes})?(a.lastUsedAtMs=Date.now(),n.tokens??={},n.tokens[i]=a,t.pairedByDeviceId[n.deviceId]=n,await _(t,e.baseDir),{ok:!0}):{ok:!1,reason:`scope-mismatch`}:{ok:!1,reason:`token-mismatch`}:{ok:!1,reason:`token-missing`}})}async function B(e){return await h(async()=>{let t=await g(e.baseDir),n=r(e.scopes),i=V({state:t,deviceId:e.deviceId,role:e.role});if(!i)return null;let{device:a,role:o,tokens:s,existing:c}=i;if(c&&!c.revokedAtMs&&m({role:o,requestedScopes:n,allowedScopes:c.scopes}))return c;let l=Date.now(),u=A({role:o,scopes:n,existing:c,now:l,rotatedAtMs:c?l:void 0});return s[o]=u,a.tokens=s,t.pairedByDeviceId[a.deviceId]=a,await _(t,e.baseDir),u})}function V(e){let t=O(e.state,e.deviceId);if(!t)return null;let n=y(e.role);if(!n)return null;let r=k(t);return{device:t,role:n,tokens:r,existing:r[n]}}async function H(e){return await h(async()=>{let t=await g(e.baseDir),n=V({state:t,deviceId:e.deviceId,role:e.role});if(!n)return null;let{device:i,role:a,tokens:o,existing:s}=n,c=r(e.scopes??s?.scopes??i.scopes);if(!E(c,r(i.approvedScopes??i.scopes??s?.scopes)))return null;let l=Date.now(),u=A({role:a,scopes:c,existing:s,now:l,rotatedAtMs:l});return o[a]=u,i.tokens=o,t.pairedByDeviceId[i.deviceId]=i,await _(t,e.baseDir),u})}async function U(e){return await h(async()=>{let t=await g(e.baseDir),n=t.pairedByDeviceId[v(e.deviceId)];if(!n)return null;let r=y(e.role);if(!r||!n.tokens?.[r])return null;let i={...n.tokens},a={...i[r],revokedAtMs:Date.now()};return i[r]=a,n.tokens=i,t.pairedByDeviceId[n.deviceId]=n,await _(t,e.baseDir),a})}export{F as a,U as c,L as d,z as f,j as i,H as l,B as n,I as o,m as p,M as r,N as s,P as t,R as u};
|
|
2
|
+
//# sourceMappingURL=device-pairing-CTFpaTrD.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{br as e,vr as t,yr as n}from"./auth-profiles-T8DuH3ax.js";import{cn as r}from"./call-B8Fb4_oh.js";import{a as i,i as a,n as o,r as s,t as c}from"./pairing-token-DAR7V7FJ.js";import{randomUUID as l}from"node:crypto";const u=`operator.read`,d=`operator.write`;function f(e){let t=new Set;for(let n of e){let e=n.trim();e&&t.add(e)}return[...t]}function p(e,t){return t.has(`operator.admin`)&&e.startsWith(`operator.`)?!0:e===u?t.has(u)||t.has(d):e===d?t.has(d):t.has(e)}function m(e){let t=f(e.requestedScopes);if(t.length===0)return!0;let n=f(e.allowedScopes);if(n.length===0)return!1;let r=new Set(n);return e.role.trim()===`operator`?t.every(e=>p(e,r)):t.every(e=>r.has(e))}const h=t();async function g(e){let{pendingPath:t,pairedPath:r}=i(e,`devices`),[o,s]=await Promise.all([n(t),n(r)]),c={pendingById:o??{},pairedByDeviceId:s??{}};return a(c.pendingById,Date.now(),3e5),c}async function _(t,n){let{pendingPath:r,pairedPath:a}=i(n,`devices`);await Promise.all([e(r,t.pendingById),e(a,t.pairedByDeviceId)])}function v(e){return e.trim()}function y(e){return e?.trim()||null}function b(...e){let t=new Set;for(let n of e)if(n)if(Array.isArray(n))for(let e of n){let n=e.trim();n&&t.add(n)}else{let e=n.trim();e&&t.add(e)}if(t.size!==0)return[...t]}function x(...e){let t=new Set;for(let n of e)if(n)for(let e of n){let n=e.trim();n&&t.add(n)}if(t.size!==0)return[...t]}function S(e,t,n){let r=y(e.role),i=y(t.role);return{...e,displayName:t.displayName??e.displayName,platform:t.platform??e.platform,deviceFamily:t.deviceFamily??e.deviceFamily,clientId:t.clientId??e.clientId,clientMode:t.clientMode??e.clientMode,role:r??i??void 0,roles:b(e.roles,e.role,t.role),scopes:x(e.scopes,t.scopes),remoteIp:t.remoteIp??e.remoteIp,silent:!!(e.silent&&t.silent),isRepair:e.isRepair||n,ts:Date.now()}}function C(e,t){if(e.length===0)return!0;if(t.length===0)return!1;let n=new Set(t);return e.every(e=>n.has(e))}const w={"operator.admin":[`operator.read`,`operator.write`,`operator.approvals`,`operator.pairing`],"operator.write":[`operator.read`]};function T(e){let t=new Set(e),n=[...e];for(;n.length>0;){let e=n.pop();if(e)for(let r of w[e]??[])t.has(r)||(t.add(r),n.push(r))}return[...t]}function E(e,t){return C(T(e),T(t))}function D(){return c()}function O(e,t){return e.pairedByDeviceId[v(t)]??null}function k(e){return e.tokens?{...e.tokens}:{}}function A(e){return{token:D(),role:e.role,scopes:e.scopes,createdAtMs:e.existing?.createdAtMs??e.now,rotatedAtMs:e.rotatedAtMs,revokedAtMs:void 0,lastUsedAtMs:e.existing?.lastUsedAtMs}}async function j(e){let t=await g(e);return{pending:Object.values(t.pendingById).toSorted((e,t)=>t.ts-e.ts),paired:Object.values(t.pairedByDeviceId).toSorted((e,t)=>t.approvedAtMs-e.approvedAtMs)}}async function M(e,t){return(await g(t)).pairedByDeviceId[v(e)]??null}async function N(e,t){return await h(async()=>{let n=await g(t),r=v(e.deviceId);if(!r)throw Error(`deviceId required`);let i=!!n.pairedByDeviceId[r],a=Object.values(n.pendingById).find(e=>e.deviceId===r);if(a){let r=S(a,e,i);return n.pendingById[a.requestId]=r,await _(n,t),{status:`pending`,request:r,created:!1}}let o={requestId:l(),deviceId:r,publicKey:e.publicKey,displayName:e.displayName,platform:e.platform,deviceFamily:e.deviceFamily,clientId:e.clientId,clientMode:e.clientMode,role:e.role,roles:e.role?[e.role]:void 0,scopes:e.scopes,remoteIp:e.remoteIp,silent:e.silent,isRepair:i,ts:Date.now()};return n.pendingById[o.requestId]=o,await _(n,t),{status:`pending`,request:o,created:!0}})}async function P(e,t){return await h(async()=>{let n=await g(t),i=n.pendingById[e];if(!i)return null;let a=Date.now(),o=n.pairedByDeviceId[i.deviceId],s=b(o?.roles,o?.role,i.roles,i.role),c=x(o?.approvedScopes??o?.scopes,i.scopes),l=o?.tokens?{...o.tokens}:{},u=y(i.role);if(u){let e=l[u],t=r(i.scopes),n=t.length>0?t:r(e?.scopes??c??o?.approvedScopes??o?.scopes),a=Date.now();l[u]={token:D(),role:u,scopes:n,createdAtMs:e?.createdAtMs??a,rotatedAtMs:e?a:void 0,revokedAtMs:void 0,lastUsedAtMs:e?.lastUsedAtMs}}let d={deviceId:i.deviceId,publicKey:i.publicKey,displayName:i.displayName,platform:i.platform,deviceFamily:i.deviceFamily,clientId:i.clientId,clientMode:i.clientMode,role:i.role,roles:s,scopes:c,approvedScopes:c,remoteIp:i.remoteIp,tokens:l,createdAtMs:o?.createdAtMs??a,approvedAtMs:a};return delete n.pendingById[e],n.pairedByDeviceId[d.deviceId]=d,await _(n,t),{requestId:e,device:d}})}async function F(e,t){return await h(async()=>await s({requestId:e,idKey:`deviceId`,loadState:()=>g(t),persistState:e=>_(e,t),getId:e=>e.deviceId}))}async function I(e,t){return await h(async()=>{let n=await g(t),r=v(e);return!r||!n.pairedByDeviceId[r]?null:(delete n.pairedByDeviceId[r],await _(n,t),{deviceId:r})})}async function L(e,t,n){return await h(async()=>{let r=await g(n),i=r.pairedByDeviceId[v(e)];if(!i)return;let a=b(i.roles,i.role,t.role),o=x(i.scopes,t.scopes);r.pairedByDeviceId[e]={...i,...t,deviceId:i.deviceId,createdAtMs:i.createdAtMs,approvedAtMs:i.approvedAtMs,approvedScopes:i.approvedScopes,role:t.role??i.role,roles:a,scopes:o},await _(r,n)})}function R(e){if(!e)return;let t=Object.values(e).map(e=>({role:e.role,scopes:e.scopes,createdAtMs:e.createdAtMs,rotatedAtMs:e.rotatedAtMs,revokedAtMs:e.revokedAtMs,lastUsedAtMs:e.lastUsedAtMs})).toSorted((e,t)=>e.role.localeCompare(t.role));return t.length>0?t:void 0}async function z(e){return await h(async()=>{let t=await g(e.baseDir),n=O(t,e.deviceId);if(!n)return{ok:!1,reason:`device-not-paired`};let i=y(e.role);if(!i)return{ok:!1,reason:`role-missing`};let a=n.tokens?.[i];return a?a.revokedAtMs?{ok:!1,reason:`token-revoked`}:o(e.token,a.token)?m({role:i,requestedScopes:r(e.scopes),allowedScopes:a.scopes})?(a.lastUsedAtMs=Date.now(),n.tokens??={},n.tokens[i]=a,t.pairedByDeviceId[n.deviceId]=n,await _(t,e.baseDir),{ok:!0}):{ok:!1,reason:`scope-mismatch`}:{ok:!1,reason:`token-mismatch`}:{ok:!1,reason:`token-missing`}})}async function B(e){return await h(async()=>{let t=await g(e.baseDir),n=r(e.scopes),i=V({state:t,deviceId:e.deviceId,role:e.role});if(!i)return null;let{device:a,role:o,tokens:s,existing:c}=i;if(c&&!c.revokedAtMs&&m({role:o,requestedScopes:n,allowedScopes:c.scopes}))return c;let l=Date.now(),u=A({role:o,scopes:n,existing:c,now:l,rotatedAtMs:c?l:void 0});return s[o]=u,a.tokens=s,t.pairedByDeviceId[a.deviceId]=a,await _(t,e.baseDir),u})}function V(e){let t=O(e.state,e.deviceId);if(!t)return null;let n=y(e.role);if(!n)return null;let r=k(t);return{device:t,role:n,tokens:r,existing:r[n]}}async function H(e){return await h(async()=>{let t=await g(e.baseDir),n=V({state:t,deviceId:e.deviceId,role:e.role});if(!n)return null;let{device:i,role:a,tokens:o,existing:s}=n,c=r(e.scopes??s?.scopes??i.scopes);if(!E(c,r(i.approvedScopes??i.scopes??s?.scopes)))return null;let l=Date.now(),u=A({role:a,scopes:c,existing:s,now:l,rotatedAtMs:l});return o[a]=u,i.tokens=o,t.pairedByDeviceId[i.deviceId]=i,await _(t,e.baseDir),u})}async function U(e){return await h(async()=>{let t=await g(e.baseDir),n=t.pairedByDeviceId[v(e.deviceId)];if(!n)return null;let r=y(e.role);if(!r||!n.tokens?.[r])return null;let i={...n.tokens},a={...i[r],revokedAtMs:Date.now()};return i[r]=a,n.tokens=i,t.pairedByDeviceId[n.deviceId]=n,await _(t,e.baseDir),a})}export{F as a,U as c,L as d,z as f,j as i,H as l,B as n,I as o,m as p,M as r,N as s,P as t,R as u};
|
|
2
|
+
//# sourceMappingURL=device-pairing-QTK0dod3.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{A as e,p as t}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{lr as n,ta as r,ur as i}from"./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{n as a,t as o}from"./call-B8Fb4_oh.js";import{n as s}from"./format-relative-DkMjYy7z.js";import"./pairing-token-DAR7V7FJ.js";import{n as c}from"./progress-d1m2sqR1.js";import{i as l,t as u,u as d}from"./device-pairing-QTK0dod3.js";import{n as f,t as p}from"./table-CR7TFMew.js";const m=`Direct scope access failed; using local fallback.`,h=(e,t)=>e.option(`--url <url>`,`Gateway WebSocket URL (defaults to gateway.remote.url when configured)`).option(`--token <token>`,`Gateway token (if required)`).option(`--password <password>`,`Gateway password (password auth)`).option(`--timeout <ms>`,`Timeout in ms`,String(t?.timeoutMs??1e4)).option(`--json`,`Output JSON`,!1),g=async(e,t,r)=>c({label:`Devices ${e}`,indeterminate:!0,enabled:t.json!==!0},async()=>await a({url:t.url,token:t.token,password:t.password,method:e,params:r,timeoutMs:Number(t.timeout??1e4),clientName:i.CLI,mode:n.CLI}));function _(e){return e instanceof Error?e.message:String(e)}function v(e,t){if(!_(t).toLowerCase().includes(`pairing required`)||typeof e.url==`string`&&e.url.trim().length>0)return!1;let n=o();if(n.urlSource!==`local loopback`)return!1;try{return r(new URL(n.url).hostname)}catch{return!1}}function y(e){let{tokens:t,...n}=e;return{...n,tokens:d(t)}}async function b(n){try{return S(await g(`device.pair.list`,n,{}))}catch(r){if(!v(n,r))throw r;n.json!==!0&&t.log(e.warn(m));let i=await l();return{pending:i.pending,paired:i.paired.map(e=>y(e))}}}async function x(n,r){try{return await g(`device.pair.approve`,n,{requestId:r})}catch(i){if(!v(n,i))throw i;n.json!==!0&&t.log(e.warn(m));let a=await u(r);return a?{requestId:r,device:y(a.device)}:null}}function S(e){let t=typeof e==`object`&&e?e:{};return{pending:Array.isArray(t.pending)?t.pending:[],paired:Array.isArray(t.paired)?t.paired:[]}}function C(e){return e?.length?e.reduce((e,t)=>{let n=typeof e.ts==`number`?e.ts:0;return(typeof t.ts==`number`?t.ts:0)>n?t:e}):null}function w(e){return!e||e.length===0?`none`:e.map(e=>`${e.role}${e.revokedAtMs?` (revoked)`:``}`).toSorted((e,t)=>e.localeCompare(t)).join(`, `)}function T(e){let n=String(e.device??``).trim(),r=String(e.role??``).trim();return n&&r?{deviceId:n,role:r}:(t.error(`--device and --role required`),t.exit(1),null)}function E(n){let r=n.command(`devices`).description(`Device pairing and auth tokens`);h(r.command(`list`).description(`List pending and paired devices`).action(async n=>{let r=await b(n);if(n.json){t.log(JSON.stringify(r,null,2));return}if(r.pending?.length){let n=p();t.log(`${e.heading(`Pending`)} ${e.muted(`(${r.pending.length})`)}`),t.log(f({width:n,columns:[{key:`Request`,header:`Request`,minWidth:10},{key:`Device`,header:`Device`,minWidth:16,flex:!0},{key:`Role`,header:`Role`,minWidth:8},{key:`IP`,header:`IP`,minWidth:12},{key:`Age`,header:`Age`,minWidth:8},{key:`Flags`,header:`Flags`,minWidth:8}],rows:r.pending.map(e=>({Request:e.requestId,Device:e.displayName||e.deviceId,Role:e.role??``,IP:e.remoteIp??``,Age:typeof e.ts==`number`?s(Date.now()-e.ts):``,Flags:e.isRepair?`repair`:``}))}).trimEnd())}if(r.paired?.length){let n=p();t.log(`${e.heading(`Paired`)} ${e.muted(`(${r.paired.length})`)}`),t.log(f({width:n,columns:[{key:`Device`,header:`Device`,minWidth:16,flex:!0},{key:`Roles`,header:`Roles`,minWidth:12,flex:!0},{key:`Scopes`,header:`Scopes`,minWidth:12,flex:!0},{key:`Tokens`,header:`Tokens`,minWidth:12,flex:!0},{key:`IP`,header:`IP`,minWidth:12}],rows:r.paired.map(e=>({Device:e.displayName||e.deviceId,Roles:e.roles?.length?e.roles.join(`, `):``,Scopes:e.scopes?.length?e.scopes.join(`, `):``,Tokens:w(e.tokens),IP:e.remoteIp??``}))}).trimEnd())}!r.pending?.length&&!r.paired?.length&&t.log(e.muted(`No device pairing entries.`))})),h(r.command(`remove`).description(`Remove a paired device entry`).argument(`<deviceId>`,`Paired device id`).action(async(n,r)=>{let i=n.trim();if(!i){t.error(`deviceId is required`),t.exit(1);return}let a=await g(`device.pair.remove`,r,{deviceId:i});if(r.json){t.log(JSON.stringify(a,null,2));return}t.log(`${e.warn(`Removed`)} ${e.command(i)}`)})),h(r.command(`clear`).description(`Clear paired devices from the gateway table`).option(`--pending`,`Also reject all pending pairing requests`,!1).option(`--yes`,`Confirm destructive clear`,!1).action(async n=>{if(!n.yes){t.error(`Refusing to clear pairing table without --yes`),t.exit(1);return}let r=S(await g(`device.pair.list`,n,{})),i=[],a=[],o=Array.isArray(r.paired)?r.paired:[];for(let e of o){let t=typeof e.deviceId==`string`?e.deviceId.trim():``;t&&(await g(`device.pair.remove`,n,{deviceId:t}),i.push(t))}if(n.pending){let e=Array.isArray(r.pending)?r.pending:[];for(let t of e){let e=typeof t.requestId==`string`?t.requestId.trim():``;e&&(await g(`device.pair.reject`,n,{requestId:e}),a.push(e))}}if(n.json){t.log(JSON.stringify({removedDevices:i,rejectedPending:a},null,2));return}t.log(`${e.warn(`Cleared`)} ${i.length} paired device${i.length===1?``:`s`}`),n.pending&&t.log(`${e.warn(`Rejected`)} ${a.length} pending request${a.length===1?``:`s`}`)})),h(r.command(`approve`).description(`Approve a pending device pairing request`).argument(`[requestId]`,`Pending request id`).option(`--latest`,`Approve the most recent pending request`,!1).action(async(n,r)=>{let i=n?.trim();if((!i||r.latest)&&(i=C((await b(r)).pending)?.requestId?.trim()),!i){t.error(`No pending device pairing requests to approve`),t.exit(1);return}let a=await x(r,i);if(!a){t.error(`unknown requestId`),t.exit(1);return}if(r.json){t.log(JSON.stringify(a,null,2));return}let o=a?.device?.deviceId;t.log(`${e.success(`Approved`)} ${e.command(o??`ok`)} ${e.muted(`(${i})`)}`)})),h(r.command(`reject`).description(`Reject a pending device pairing request`).argument(`<requestId>`,`Pending request id`).action(async(n,r)=>{let i=await g(`device.pair.reject`,r,{requestId:n});if(r.json){t.log(JSON.stringify(i,null,2));return}let a=i?.deviceId;t.log(`${e.warn(`Rejected`)} ${e.command(a??`ok`)}`)})),h(r.command(`rotate`).description(`Rotate a device token for a role`).requiredOption(`--device <id>`,`Device id`).requiredOption(`--role <role>`,`Role name`).option(`--scope <scope...>`,`Scopes to attach to the token (repeatable)`).action(async e=>{let n=T(e);if(!n)return;let r=await g(`device.token.rotate`,e,{deviceId:n.deviceId,role:n.role,scopes:Array.isArray(e.scope)?e.scope:void 0});t.log(JSON.stringify(r,null,2))})),h(r.command(`revoke`).description(`Revoke a device token for a role`).requiredOption(`--device <id>`,`Device id`).requiredOption(`--role <role>`,`Role name`).action(async e=>{let n=T(e);if(!n)return;let r=await g(`device.token.revoke`,e,{deviceId:n.deviceId,role:n.role});t.log(JSON.stringify(r,null,2))}))}export{E as registerDevicesCli};
|
|
2
|
+
//# sourceMappingURL=devices-cli-Ckxd0k0I.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import"./paths-B4IRk3wi.js";import{A as e,p as t}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import{Si as n,go as r,xi as i}from"./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{n as a,t as o}from"./call-CqoMqP5b.js";import{n as s}from"./format-relative-B9pSIdGe.js";import"./pairing-token-BjYBuREl.js";import{n as c}from"./progress-LNttnI-y.js";import{i as l,t as u,u as d}from"./device-pairing-CTFpaTrD.js";import{n as f,t as p}from"./table-CY440fI1.js";const m=`Direct scope access failed; using local fallback.`,h=(e,t)=>e.option(`--url <url>`,`Gateway WebSocket URL (defaults to gateway.remote.url when configured)`).option(`--token <token>`,`Gateway token (if required)`).option(`--password <password>`,`Gateway password (password auth)`).option(`--timeout <ms>`,`Timeout in ms`,String(t?.timeoutMs??1e4)).option(`--json`,`Output JSON`,!1),g=async(e,t,r)=>c({label:`Devices ${e}`,indeterminate:!0,enabled:t.json!==!0},async()=>await a({url:t.url,token:t.token,password:t.password,method:e,params:r,timeoutMs:Number(t.timeout??1e4),clientName:n.CLI,mode:i.CLI}));function _(e){return e instanceof Error?e.message:String(e)}function v(e,t){if(!_(t).toLowerCase().includes(`pairing required`)||typeof e.url==`string`&&e.url.trim().length>0)return!1;let n=o();if(n.urlSource!==`local loopback`)return!1;try{return r(new URL(n.url).hostname)}catch{return!1}}function y(e){let{tokens:t,...n}=e;return{...n,tokens:d(t)}}async function b(n){try{return S(await g(`device.pair.list`,n,{}))}catch(r){if(!v(n,r))throw r;n.json!==!0&&t.log(e.warn(m));let i=await l();return{pending:i.pending,paired:i.paired.map(e=>y(e))}}}async function x(n,r){try{return await g(`device.pair.approve`,n,{requestId:r})}catch(i){if(!v(n,i))throw i;n.json!==!0&&t.log(e.warn(m));let a=await u(r);return a?{requestId:r,device:y(a.device)}:null}}function S(e){let t=typeof e==`object`&&e?e:{};return{pending:Array.isArray(t.pending)?t.pending:[],paired:Array.isArray(t.paired)?t.paired:[]}}function C(e){return e?.length?e.reduce((e,t)=>{let n=typeof e.ts==`number`?e.ts:0;return(typeof t.ts==`number`?t.ts:0)>n?t:e}):null}function w(e){return!e||e.length===0?`none`:e.map(e=>`${e.role}${e.revokedAtMs?` (revoked)`:``}`).toSorted((e,t)=>e.localeCompare(t)).join(`, `)}function T(e){let n=String(e.device??``).trim(),r=String(e.role??``).trim();return n&&r?{deviceId:n,role:r}:(t.error(`--device and --role required`),t.exit(1),null)}function E(n){let r=n.command(`devices`).description(`Device pairing and auth tokens`);h(r.command(`list`).description(`List pending and paired devices`).action(async n=>{let r=await b(n);if(n.json){t.log(JSON.stringify(r,null,2));return}if(r.pending?.length){let n=p();t.log(`${e.heading(`Pending`)} ${e.muted(`(${r.pending.length})`)}`),t.log(f({width:n,columns:[{key:`Request`,header:`Request`,minWidth:10},{key:`Device`,header:`Device`,minWidth:16,flex:!0},{key:`Role`,header:`Role`,minWidth:8},{key:`IP`,header:`IP`,minWidth:12},{key:`Age`,header:`Age`,minWidth:8},{key:`Flags`,header:`Flags`,minWidth:8}],rows:r.pending.map(e=>({Request:e.requestId,Device:e.displayName||e.deviceId,Role:e.role??``,IP:e.remoteIp??``,Age:typeof e.ts==`number`?s(Date.now()-e.ts):``,Flags:e.isRepair?`repair`:``}))}).trimEnd())}if(r.paired?.length){let n=p();t.log(`${e.heading(`Paired`)} ${e.muted(`(${r.paired.length})`)}`),t.log(f({width:n,columns:[{key:`Device`,header:`Device`,minWidth:16,flex:!0},{key:`Roles`,header:`Roles`,minWidth:12,flex:!0},{key:`Scopes`,header:`Scopes`,minWidth:12,flex:!0},{key:`Tokens`,header:`Tokens`,minWidth:12,flex:!0},{key:`IP`,header:`IP`,minWidth:12}],rows:r.paired.map(e=>({Device:e.displayName||e.deviceId,Roles:e.roles?.length?e.roles.join(`, `):``,Scopes:e.scopes?.length?e.scopes.join(`, `):``,Tokens:w(e.tokens),IP:e.remoteIp??``}))}).trimEnd())}!r.pending?.length&&!r.paired?.length&&t.log(e.muted(`No device pairing entries.`))})),h(r.command(`remove`).description(`Remove a paired device entry`).argument(`<deviceId>`,`Paired device id`).action(async(n,r)=>{let i=n.trim();if(!i){t.error(`deviceId is required`),t.exit(1);return}let a=await g(`device.pair.remove`,r,{deviceId:i});if(r.json){t.log(JSON.stringify(a,null,2));return}t.log(`${e.warn(`Removed`)} ${e.command(i)}`)})),h(r.command(`clear`).description(`Clear paired devices from the gateway table`).option(`--pending`,`Also reject all pending pairing requests`,!1).option(`--yes`,`Confirm destructive clear`,!1).action(async n=>{if(!n.yes){t.error(`Refusing to clear pairing table without --yes`),t.exit(1);return}let r=S(await g(`device.pair.list`,n,{})),i=[],a=[],o=Array.isArray(r.paired)?r.paired:[];for(let e of o){let t=typeof e.deviceId==`string`?e.deviceId.trim():``;t&&(await g(`device.pair.remove`,n,{deviceId:t}),i.push(t))}if(n.pending){let e=Array.isArray(r.pending)?r.pending:[];for(let t of e){let e=typeof t.requestId==`string`?t.requestId.trim():``;e&&(await g(`device.pair.reject`,n,{requestId:e}),a.push(e))}}if(n.json){t.log(JSON.stringify({removedDevices:i,rejectedPending:a},null,2));return}t.log(`${e.warn(`Cleared`)} ${i.length} paired device${i.length===1?``:`s`}`),n.pending&&t.log(`${e.warn(`Rejected`)} ${a.length} pending request${a.length===1?``:`s`}`)})),h(r.command(`approve`).description(`Approve a pending device pairing request`).argument(`[requestId]`,`Pending request id`).option(`--latest`,`Approve the most recent pending request`,!1).action(async(n,r)=>{let i=n?.trim();if((!i||r.latest)&&(i=C((await b(r)).pending)?.requestId?.trim()),!i){t.error(`No pending device pairing requests to approve`),t.exit(1);return}let a=await x(r,i);if(!a){t.error(`unknown requestId`),t.exit(1);return}if(r.json){t.log(JSON.stringify(a,null,2));return}let o=a?.device?.deviceId;t.log(`${e.success(`Approved`)} ${e.command(o??`ok`)} ${e.muted(`(${i})`)}`)})),h(r.command(`reject`).description(`Reject a pending device pairing request`).argument(`<requestId>`,`Pending request id`).action(async(n,r)=>{let i=await g(`device.pair.reject`,r,{requestId:n});if(r.json){t.log(JSON.stringify(i,null,2));return}let a=i?.deviceId;t.log(`${e.warn(`Rejected`)} ${e.command(a??`ok`)}`)})),h(r.command(`rotate`).description(`Rotate a device token for a role`).requiredOption(`--device <id>`,`Device id`).requiredOption(`--role <role>`,`Role name`).option(`--scope <scope...>`,`Scopes to attach to the token (repeatable)`).action(async e=>{let n=T(e);if(!n)return;let r=await g(`device.token.rotate`,e,{deviceId:n.deviceId,role:n.role,scopes:Array.isArray(e.scope)?e.scope:void 0});t.log(JSON.stringify(r,null,2))})),h(r.command(`revoke`).description(`Revoke a device token for a role`).requiredOption(`--device <id>`,`Device id`).requiredOption(`--role <role>`,`Role name`).action(async e=>{let n=T(e);if(!n)return;let r=await g(`device.token.revoke`,e,{deviceId:n.deviceId,role:n.role});t.log(JSON.stringify(r,null,2))}))}export{E as registerDevicesCli};
|
|
2
|
+
//# sourceMappingURL=devices-cli-Db36mBHq.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-Bc2XrjUz.js";import{Za as t}from"./model-selection-B5JsBS9D.js";function n(){let e=globalThis;return e.__openclawDiagnosticEventsState||={seq:0,listeners:new Set,dispatchDepth:0},e.__openclawDiagnosticEventsState}function r(e){return e?.diagnostics?.enabled===!0}function i(e){let t=n();if(t.dispatchDepth>100){console.error(`[diagnostic-events] recursion guard tripped at depth=${t.dispatchDepth}, dropping type=${e.type}`);return}let r={...e,seq:t.seq+=1,ts:Date.now()};t.dispatchDepth+=1;for(let e of t.listeners)try{e(r)}catch(e){let t=e instanceof Error?e.stack??e.message:typeof e==`string`?e:String(e);console.error(`[diagnostic-events] listener error type=${r.type} seq=${r.seq}: ${t}`)}--t.dispatchDepth}const a=new Map,o=2e3;let s=0;function c(e=Date.now(),t=!1){let n=a.size>o;if(!t&&!n&&e-s<6e4)return;s=e;for(let[t,n]of a.entries()){let r=e-n.lastActivity;n.state===`idle`&&n.queueDepth<=0&&r>18e5&&a.delete(t)}if(a.size<=o)return;let r=a.size-o,i=Array.from(a.entries()).toSorted((e,t)=>e[1].lastActivity-t[1].lastActivity);for(let e=0;e<r;e+=1){let t=i[e]?.[0];if(!t)break;a.delete(t)}}function l({sessionKey:e,sessionId:t}){return e??t??`unknown`}function u(e){for(let t of a.values())if(t.sessionId===e)return t}function d(e){c();let t=l(e),n=a.get(t)??(e.sessionId&&u(e.sessionId));if(n)return e.sessionId&&(n.sessionId=e.sessionId),e.sessionKey&&(n.sessionKey=e.sessionKey),n;let r={sessionId:e.sessionId,sessionKey:e.sessionKey,lastActivity:Date.now(),state:`idle`,queueDepth:0};return a.set(t,r),c(Date.now(),!0),r}const f=e(`diagnostic`),p={received:0,processed:0,errors:0,lastReceived:0};let m=0;const h=12e4;let g=null;function _(){return g??=import(`./command-poll-backoff.runtime-DS2azMqH.js`),g}function v(){m=Date.now()}function y(e){let t=e?.diagnostics?.stuckSessionWarnMs;if(typeof t!=`number`||!Number.isFinite(t))return h;let n=Math.floor(t);return n<1e3||n>864e5?h:n}function b(e){p.received+=1,p.lastReceived=Date.now(),f.isEnabled(`debug`)&&f.debug(`webhook received: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} total=${p.received}`),i({type:`webhook.received`,channel:e.channel,updateType:e.updateType,chatId:e.chatId}),v()}function x(e){p.processed+=1,f.isEnabled(`debug`)&&f.debug(`webhook processed: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} duration=${e.durationMs??0}ms processed=${p.processed}`),i({type:`webhook.processed`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,durationMs:e.durationMs}),v()}function S(e){p.errors+=1,f.error(`webhook error: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} error="${e.error}" errors=${p.errors}`),i({type:`webhook.error`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,error:e.error}),v()}function C(e){let t=d(e);t.queueDepth+=1,t.lastActivity=Date.now(),f.isEnabled(`debug`)&&f.debug(`message queued: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} source=${e.source} queueDepth=${t.queueDepth} sessionState=${t.state}`),i({type:`message.queued`,sessionId:t.sessionId,sessionKey:t.sessionKey,channel:e.channel,source:e.source,queueDepth:t.queueDepth}),v()}function w(e){if(e.outcome===`error`?f.isEnabled(`error`):f.isEnabled(`debug`)){let t=`message processed: channel=${e.channel} chatId=${e.chatId??`unknown`} messageId=${e.messageId??`unknown`} sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} outcome=${e.outcome} duration=${e.durationMs??0}ms${e.reason?` reason=${e.reason}`:``}${e.error?` error="${e.error}"`:``}`;e.outcome===`error`?f.error(t):f.debug(t)}i({type:`message.processed`,channel:e.channel,chatId:e.chatId,messageId:e.messageId,sessionId:e.sessionId,sessionKey:e.sessionKey,durationMs:e.durationMs,outcome:e.outcome,reason:e.reason,error:e.error}),v()}function T(e){let t=d(e),n=t.sessionId?.startsWith(`probe-`)??!1,r=t.state;t.state=e.state,t.lastActivity=Date.now(),e.state===`idle`&&(t.queueDepth=Math.max(0,t.queueDepth-1)),!n&&f.isEnabled(`debug`)&&f.debug(`session state: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} prev=${r} new=${e.state} reason="${e.reason??``}" queueDepth=${t.queueDepth}`),i({type:`session.state`,sessionId:t.sessionId,sessionKey:t.sessionKey,prevState:r,state:e.state,reason:e.reason,queueDepth:t.queueDepth}),v()}function E(e){let t=d(e);f.warn(`stuck session: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} state=${e.state} age=${Math.round(e.ageMs/1e3)}s queueDepth=${t.queueDepth}`),i({type:`session.stuck`,sessionId:t.sessionId,sessionKey:t.sessionKey,state:e.state,ageMs:e.ageMs,queueDepth:t.queueDepth}),v()}function D(e,t){f.debug(`lane enqueue: lane=${e} queueSize=${t}`),i({type:`queue.lane.enqueue`,lane:e,queueSize:t}),v()}function O(e,t,n){f.debug(`lane dequeue: lane=${e} waitMs=${t} queueSize=${n}`),i({type:`queue.lane.dequeue`,lane:e,queueSize:n,waitMs:t}),v()}function k(e){let t=`tool loop: sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} tool=${e.toolName} level=${e.level} action=${e.action} detector=${e.detector} count=${e.count}${e.pairedToolName?` pairedTool=${e.pairedToolName}`:``} message="${e.message}"`;e.level===`critical`?f.error(t):f.warn(t),i({type:`tool.loop`,sessionId:e.sessionId,sessionKey:e.sessionKey,toolName:e.toolName,level:e.level,action:e.action,detector:e.detector,count:e.count,message:e.message,pairedToolName:e.pairedToolName}),v()}let A=null;function j(e){A||(A=setInterval(()=>{let n=e;if(!n)try{n=t()}catch{n=void 0}let r=y(n),o=Date.now();c(o,!0);let s=Array.from(a.values()).filter(e=>e.state===`processing`).length,l=Array.from(a.values()).filter(e=>e.state===`waiting`).length,u=Array.from(a.values()).reduce((e,t)=>e+t.queueDepth,0);if((m>0||p.received>0||s>0||l>0||u>0)&&!(o-m>12e4&&s===0&&l===0)){f.debug(`heartbeat: webhooks=${p.received}/${p.processed}/${p.errors} active=${s} waiting=${l} queued=${u}`),i({type:`diagnostic.heartbeat`,webhooks:{received:p.received,processed:p.processed,errors:p.errors},active:s,waiting:l,queued:u}),_().then(({pruneStaleCommandPolls:e})=>{for(let[,t]of a)e(t)}).catch(e=>{f.debug(`command-poll-backoff prune failed: ${String(e)}`)});for(let[,e]of a){let t=o-e.lastActivity;e.state===`processing`&&t>r&&E({sessionId:e.sessionId,sessionKey:e.sessionKey,state:e.state,ageMs:t})}}},3e4),A.unref?.())}function M(){A&&=(clearInterval(A),null)}export{C as a,S as c,j as d,M as f,r as h,w as i,x as l,i as m,O as n,T as o,d as p,D as r,k as s,f as t,b as u};
|
|
2
|
+
//# sourceMappingURL=diagnostic-BrE4lMIf.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{O as e}from"./logger-DwWqfo66.js";import{Za as t}from"./model-selection-vfhBuN9O.js";function n(){let e=globalThis;return e.__openclawDiagnosticEventsState||={seq:0,listeners:new Set,dispatchDepth:0},e.__openclawDiagnosticEventsState}function r(e){return e?.diagnostics?.enabled===!0}function i(e){let t=n();if(t.dispatchDepth>100){console.error(`[diagnostic-events] recursion guard tripped at depth=${t.dispatchDepth}, dropping type=${e.type}`);return}let r={...e,seq:t.seq+=1,ts:Date.now()};t.dispatchDepth+=1;for(let e of t.listeners)try{e(r)}catch(e){let t=e instanceof Error?e.stack??e.message:typeof e==`string`?e:String(e);console.error(`[diagnostic-events] listener error type=${r.type} seq=${r.seq}: ${t}`)}--t.dispatchDepth}const a=new Map,o=2e3;let s=0;function c(e=Date.now(),t=!1){let n=a.size>o;if(!t&&!n&&e-s<6e4)return;s=e;for(let[t,n]of a.entries()){let r=e-n.lastActivity;n.state===`idle`&&n.queueDepth<=0&&r>18e5&&a.delete(t)}if(a.size<=o)return;let r=a.size-o,i=Array.from(a.entries()).toSorted((e,t)=>e[1].lastActivity-t[1].lastActivity);for(let e=0;e<r;e+=1){let t=i[e]?.[0];if(!t)break;a.delete(t)}}function l({sessionKey:e,sessionId:t}){return e??t??`unknown`}function u(e){for(let t of a.values())if(t.sessionId===e)return t}function d(e){c();let t=l(e),n=a.get(t)??(e.sessionId&&u(e.sessionId));if(n)return e.sessionId&&(n.sessionId=e.sessionId),e.sessionKey&&(n.sessionKey=e.sessionKey),n;let r={sessionId:e.sessionId,sessionKey:e.sessionKey,lastActivity:Date.now(),state:`idle`,queueDepth:0};return a.set(t,r),c(Date.now(),!0),r}const f=e(`diagnostic`),p={received:0,processed:0,errors:0,lastReceived:0};let m=0;const h=12e4;let g=null;function _(){return g??=import(`./command-poll-backoff.runtime-nJWgWqty.js`),g}function v(){m=Date.now()}function y(e){let t=e?.diagnostics?.stuckSessionWarnMs;if(typeof t!=`number`||!Number.isFinite(t))return h;let n=Math.floor(t);return n<1e3||n>864e5?h:n}function b(e){p.received+=1,p.lastReceived=Date.now(),f.isEnabled(`debug`)&&f.debug(`webhook received: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} total=${p.received}`),i({type:`webhook.received`,channel:e.channel,updateType:e.updateType,chatId:e.chatId}),v()}function x(e){p.processed+=1,f.isEnabled(`debug`)&&f.debug(`webhook processed: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} duration=${e.durationMs??0}ms processed=${p.processed}`),i({type:`webhook.processed`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,durationMs:e.durationMs}),v()}function S(e){p.errors+=1,f.error(`webhook error: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} error="${e.error}" errors=${p.errors}`),i({type:`webhook.error`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,error:e.error}),v()}function C(e){let t=d(e);t.queueDepth+=1,t.lastActivity=Date.now(),f.isEnabled(`debug`)&&f.debug(`message queued: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} source=${e.source} queueDepth=${t.queueDepth} sessionState=${t.state}`),i({type:`message.queued`,sessionId:t.sessionId,sessionKey:t.sessionKey,channel:e.channel,source:e.source,queueDepth:t.queueDepth}),v()}function w(e){if(e.outcome===`error`?f.isEnabled(`error`):f.isEnabled(`debug`)){let t=`message processed: channel=${e.channel} chatId=${e.chatId??`unknown`} messageId=${e.messageId??`unknown`} sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} outcome=${e.outcome} duration=${e.durationMs??0}ms${e.reason?` reason=${e.reason}`:``}${e.error?` error="${e.error}"`:``}`;e.outcome===`error`?f.error(t):f.debug(t)}i({type:`message.processed`,channel:e.channel,chatId:e.chatId,messageId:e.messageId,sessionId:e.sessionId,sessionKey:e.sessionKey,durationMs:e.durationMs,outcome:e.outcome,reason:e.reason,error:e.error}),v()}function T(e){let t=d(e),n=t.sessionId?.startsWith(`probe-`)??!1,r=t.state;t.state=e.state,t.lastActivity=Date.now(),e.state===`idle`&&(t.queueDepth=Math.max(0,t.queueDepth-1)),!n&&f.isEnabled(`debug`)&&f.debug(`session state: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} prev=${r} new=${e.state} reason="${e.reason??``}" queueDepth=${t.queueDepth}`),i({type:`session.state`,sessionId:t.sessionId,sessionKey:t.sessionKey,prevState:r,state:e.state,reason:e.reason,queueDepth:t.queueDepth}),v()}function E(e){let t=d(e);f.warn(`stuck session: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} state=${e.state} age=${Math.round(e.ageMs/1e3)}s queueDepth=${t.queueDepth}`),i({type:`session.stuck`,sessionId:t.sessionId,sessionKey:t.sessionKey,state:e.state,ageMs:e.ageMs,queueDepth:t.queueDepth}),v()}function D(e,t){f.debug(`lane enqueue: lane=${e} queueSize=${t}`),i({type:`queue.lane.enqueue`,lane:e,queueSize:t}),v()}function O(e,t,n){f.debug(`lane dequeue: lane=${e} waitMs=${t} queueSize=${n}`),i({type:`queue.lane.dequeue`,lane:e,queueSize:n,waitMs:t}),v()}function k(e){let t=`tool loop: sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} tool=${e.toolName} level=${e.level} action=${e.action} detector=${e.detector} count=${e.count}${e.pairedToolName?` pairedTool=${e.pairedToolName}`:``} message="${e.message}"`;e.level===`critical`?f.error(t):f.warn(t),i({type:`tool.loop`,sessionId:e.sessionId,sessionKey:e.sessionKey,toolName:e.toolName,level:e.level,action:e.action,detector:e.detector,count:e.count,message:e.message,pairedToolName:e.pairedToolName}),v()}let A=null;function j(e){A||(A=setInterval(()=>{let n=e;if(!n)try{n=t()}catch{n=void 0}let r=y(n),o=Date.now();c(o,!0);let s=Array.from(a.values()).filter(e=>e.state===`processing`).length,l=Array.from(a.values()).filter(e=>e.state===`waiting`).length,u=Array.from(a.values()).reduce((e,t)=>e+t.queueDepth,0);if((m>0||p.received>0||s>0||l>0||u>0)&&!(o-m>12e4&&s===0&&l===0)){f.debug(`heartbeat: webhooks=${p.received}/${p.processed}/${p.errors} active=${s} waiting=${l} queued=${u}`),i({type:`diagnostic.heartbeat`,webhooks:{received:p.received,processed:p.processed,errors:p.errors},active:s,waiting:l,queued:u}),_().then(({pruneStaleCommandPolls:e})=>{for(let[,t]of a)e(t)}).catch(e=>{f.debug(`command-poll-backoff prune failed: ${String(e)}`)});for(let[,e]of a){let t=o-e.lastActivity;e.state===`processing`&&t>r&&E({sessionId:e.sessionId,sessionKey:e.sessionKey,state:e.state,ageMs:t})}}},3e4),A.unref?.())}function M(){A&&=(clearInterval(A),null)}export{C as a,S as c,j as d,M as f,r as h,w as i,x as l,i as m,O as n,T as o,d as p,D as r,k as s,f as t,b as u};
|
|
2
|
+
//# sourceMappingURL=diagnostic-CDxNevIQ.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-C5XF2Fy5.js";import{qs as t}from"./model-selection-BlC_rXAN.js";function n(){let e=globalThis;return e.__openclawDiagnosticEventsState||={seq:0,listeners:new Set,dispatchDepth:0},e.__openclawDiagnosticEventsState}function r(e){return e?.diagnostics?.enabled===!0}function i(e){let t=n();if(t.dispatchDepth>100){console.error(`[diagnostic-events] recursion guard tripped at depth=${t.dispatchDepth}, dropping type=${e.type}`);return}let r={...e,seq:t.seq+=1,ts:Date.now()};t.dispatchDepth+=1;for(let e of t.listeners)try{e(r)}catch(e){let t=e instanceof Error?e.stack??e.message:typeof e==`string`?e:String(e);console.error(`[diagnostic-events] listener error type=${r.type} seq=${r.seq}: ${t}`)}--t.dispatchDepth}const a=new Map,o=2e3;let s=0;function c(e=Date.now(),t=!1){let n=a.size>o;if(!t&&!n&&e-s<6e4)return;s=e;for(let[t,n]of a.entries()){let r=e-n.lastActivity;n.state===`idle`&&n.queueDepth<=0&&r>18e5&&a.delete(t)}if(a.size<=o)return;let r=a.size-o,i=Array.from(a.entries()).toSorted((e,t)=>e[1].lastActivity-t[1].lastActivity);for(let e=0;e<r;e+=1){let t=i[e]?.[0];if(!t)break;a.delete(t)}}function l({sessionKey:e,sessionId:t}){return e??t??`unknown`}function u(e){for(let t of a.values())if(t.sessionId===e)return t}function d(e){c();let t=l(e),n=a.get(t)??(e.sessionId&&u(e.sessionId));if(n)return e.sessionId&&(n.sessionId=e.sessionId),e.sessionKey&&(n.sessionKey=e.sessionKey),n;let r={sessionId:e.sessionId,sessionKey:e.sessionKey,lastActivity:Date.now(),state:`idle`,queueDepth:0};return a.set(t,r),c(Date.now(),!0),r}const f=e(`diagnostic`),p={received:0,processed:0,errors:0,lastReceived:0};let m=0;const h=12e4;let g=null;function _(){return g??=import(`./command-poll-backoff.runtime-DWIAGhlc.js`),g}function v(){m=Date.now()}function y(e){let t=e?.diagnostics?.stuckSessionWarnMs;if(typeof t!=`number`||!Number.isFinite(t))return h;let n=Math.floor(t);return n<1e3||n>864e5?h:n}function b(e){p.received+=1,p.lastReceived=Date.now(),f.isEnabled(`debug`)&&f.debug(`webhook received: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} total=${p.received}`),i({type:`webhook.received`,channel:e.channel,updateType:e.updateType,chatId:e.chatId}),v()}function x(e){p.processed+=1,f.isEnabled(`debug`)&&f.debug(`webhook processed: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} duration=${e.durationMs??0}ms processed=${p.processed}`),i({type:`webhook.processed`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,durationMs:e.durationMs}),v()}function S(e){p.errors+=1,f.error(`webhook error: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} error="${e.error}" errors=${p.errors}`),i({type:`webhook.error`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,error:e.error}),v()}function C(e){let t=d(e);t.queueDepth+=1,t.lastActivity=Date.now(),f.isEnabled(`debug`)&&f.debug(`message queued: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} source=${e.source} queueDepth=${t.queueDepth} sessionState=${t.state}`),i({type:`message.queued`,sessionId:t.sessionId,sessionKey:t.sessionKey,channel:e.channel,source:e.source,queueDepth:t.queueDepth}),v()}function w(e){if(e.outcome===`error`?f.isEnabled(`error`):f.isEnabled(`debug`)){let t=`message processed: channel=${e.channel} chatId=${e.chatId??`unknown`} messageId=${e.messageId??`unknown`} sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} outcome=${e.outcome} duration=${e.durationMs??0}ms${e.reason?` reason=${e.reason}`:``}${e.error?` error="${e.error}"`:``}`;e.outcome===`error`?f.error(t):f.debug(t)}i({type:`message.processed`,channel:e.channel,chatId:e.chatId,messageId:e.messageId,sessionId:e.sessionId,sessionKey:e.sessionKey,durationMs:e.durationMs,outcome:e.outcome,reason:e.reason,error:e.error}),v()}function T(e){let t=d(e),n=t.sessionId?.startsWith(`probe-`)??!1,r=t.state;t.state=e.state,t.lastActivity=Date.now(),e.state===`idle`&&(t.queueDepth=Math.max(0,t.queueDepth-1)),!n&&f.isEnabled(`debug`)&&f.debug(`session state: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} prev=${r} new=${e.state} reason="${e.reason??``}" queueDepth=${t.queueDepth}`),i({type:`session.state`,sessionId:t.sessionId,sessionKey:t.sessionKey,prevState:r,state:e.state,reason:e.reason,queueDepth:t.queueDepth}),v()}function E(e){let t=d(e);f.warn(`stuck session: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} state=${e.state} age=${Math.round(e.ageMs/1e3)}s queueDepth=${t.queueDepth}`),i({type:`session.stuck`,sessionId:t.sessionId,sessionKey:t.sessionKey,state:e.state,ageMs:e.ageMs,queueDepth:t.queueDepth}),v()}function D(e,t){f.debug(`lane enqueue: lane=${e} queueSize=${t}`),i({type:`queue.lane.enqueue`,lane:e,queueSize:t}),v()}function O(e,t,n){f.debug(`lane dequeue: lane=${e} waitMs=${t} queueSize=${n}`),i({type:`queue.lane.dequeue`,lane:e,queueSize:n,waitMs:t}),v()}function k(e){let t=`tool loop: sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} tool=${e.toolName} level=${e.level} action=${e.action} detector=${e.detector} count=${e.count}${e.pairedToolName?` pairedTool=${e.pairedToolName}`:``} message="${e.message}"`;e.level===`critical`?f.error(t):f.warn(t),i({type:`tool.loop`,sessionId:e.sessionId,sessionKey:e.sessionKey,toolName:e.toolName,level:e.level,action:e.action,detector:e.detector,count:e.count,message:e.message,pairedToolName:e.pairedToolName}),v()}let A=null;function j(e){A||(A=setInterval(()=>{let n=e;if(!n)try{n=t()}catch{n=void 0}let r=y(n),o=Date.now();c(o,!0);let s=Array.from(a.values()).filter(e=>e.state===`processing`).length,l=Array.from(a.values()).filter(e=>e.state===`waiting`).length,u=Array.from(a.values()).reduce((e,t)=>e+t.queueDepth,0);if((m>0||p.received>0||s>0||l>0||u>0)&&!(o-m>12e4&&s===0&&l===0)){f.debug(`heartbeat: webhooks=${p.received}/${p.processed}/${p.errors} active=${s} waiting=${l} queued=${u}`),i({type:`diagnostic.heartbeat`,webhooks:{received:p.received,processed:p.processed,errors:p.errors},active:s,waiting:l,queued:u}),_().then(({pruneStaleCommandPolls:e})=>{for(let[,t]of a)e(t)}).catch(e=>{f.debug(`command-poll-backoff prune failed: ${String(e)}`)});for(let[,e]of a){let t=o-e.lastActivity;e.state===`processing`&&t>r&&E({sessionId:e.sessionId,sessionKey:e.sessionKey,state:e.state,ageMs:t})}}},3e4),A.unref?.())}function M(){A&&=(clearInterval(A),null)}export{C as a,S as c,j as d,M as f,r as h,w as i,x as l,i as m,O as n,T as o,d as p,D as r,k as s,f as t,b as u};
|
|
2
|
+
//# sourceMappingURL=diagnostic-DOzHPnht.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-BLbY429l.js";import{jo as t}from"./auth-profiles-T8DuH3ax.js";function n(){let e=globalThis;return e.__openclawDiagnosticEventsState||={seq:0,listeners:new Set,dispatchDepth:0},e.__openclawDiagnosticEventsState}function r(e){return e?.diagnostics?.enabled===!0}function i(e){let t=n();if(t.dispatchDepth>100){console.error(`[diagnostic-events] recursion guard tripped at depth=${t.dispatchDepth}, dropping type=${e.type}`);return}let r={...e,seq:t.seq+=1,ts:Date.now()};t.dispatchDepth+=1;for(let e of t.listeners)try{e(r)}catch(e){let t=e instanceof Error?e.stack??e.message:typeof e==`string`?e:String(e);console.error(`[diagnostic-events] listener error type=${r.type} seq=${r.seq}: ${t}`)}--t.dispatchDepth}const a=new Map,o=2e3;let s=0;function c(e=Date.now(),t=!1){let n=a.size>o;if(!t&&!n&&e-s<6e4)return;s=e;for(let[t,n]of a.entries()){let r=e-n.lastActivity;n.state===`idle`&&n.queueDepth<=0&&r>18e5&&a.delete(t)}if(a.size<=o)return;let r=a.size-o,i=Array.from(a.entries()).toSorted((e,t)=>e[1].lastActivity-t[1].lastActivity);for(let e=0;e<r;e+=1){let t=i[e]?.[0];if(!t)break;a.delete(t)}}function l({sessionKey:e,sessionId:t}){return e??t??`unknown`}function u(e){for(let t of a.values())if(t.sessionId===e)return t}function d(e){c();let t=l(e),n=a.get(t)??(e.sessionId&&u(e.sessionId));if(n)return e.sessionId&&(n.sessionId=e.sessionId),e.sessionKey&&(n.sessionKey=e.sessionKey),n;let r={sessionId:e.sessionId,sessionKey:e.sessionKey,lastActivity:Date.now(),state:`idle`,queueDepth:0};return a.set(t,r),c(Date.now(),!0),r}const f=e(`diagnostic`),p={received:0,processed:0,errors:0,lastReceived:0};let m=0;const h=12e4;let g=null;function _(){return g??=import(`./command-poll-backoff.runtime-Cx_qbSPa.js`),g}function v(){m=Date.now()}function y(e){let t=e?.diagnostics?.stuckSessionWarnMs;if(typeof t!=`number`||!Number.isFinite(t))return h;let n=Math.floor(t);return n<1e3||n>864e5?h:n}function b(e){p.received+=1,p.lastReceived=Date.now(),f.isEnabled(`debug`)&&f.debug(`webhook received: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} total=${p.received}`),i({type:`webhook.received`,channel:e.channel,updateType:e.updateType,chatId:e.chatId}),v()}function x(e){p.processed+=1,f.isEnabled(`debug`)&&f.debug(`webhook processed: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} duration=${e.durationMs??0}ms processed=${p.processed}`),i({type:`webhook.processed`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,durationMs:e.durationMs}),v()}function S(e){p.errors+=1,f.error(`webhook error: channel=${e.channel} type=${e.updateType??`unknown`} chatId=${e.chatId??`unknown`} error="${e.error}" errors=${p.errors}`),i({type:`webhook.error`,channel:e.channel,updateType:e.updateType,chatId:e.chatId,error:e.error}),v()}function C(e){let t=d(e);t.queueDepth+=1,t.lastActivity=Date.now(),f.isEnabled(`debug`)&&f.debug(`message queued: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} source=${e.source} queueDepth=${t.queueDepth} sessionState=${t.state}`),i({type:`message.queued`,sessionId:t.sessionId,sessionKey:t.sessionKey,channel:e.channel,source:e.source,queueDepth:t.queueDepth}),v()}function w(e){if(e.outcome===`error`?f.isEnabled(`error`):f.isEnabled(`debug`)){let t=`message processed: channel=${e.channel} chatId=${e.chatId??`unknown`} messageId=${e.messageId??`unknown`} sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} outcome=${e.outcome} duration=${e.durationMs??0}ms${e.reason?` reason=${e.reason}`:``}${e.error?` error="${e.error}"`:``}`;e.outcome===`error`?f.error(t):f.debug(t)}i({type:`message.processed`,channel:e.channel,chatId:e.chatId,messageId:e.messageId,sessionId:e.sessionId,sessionKey:e.sessionKey,durationMs:e.durationMs,outcome:e.outcome,reason:e.reason,error:e.error}),v()}function T(e){let t=d(e),n=t.sessionId?.startsWith(`probe-`)??!1,r=t.state;t.state=e.state,t.lastActivity=Date.now(),e.state===`idle`&&(t.queueDepth=Math.max(0,t.queueDepth-1)),!n&&f.isEnabled(`debug`)&&f.debug(`session state: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} prev=${r} new=${e.state} reason="${e.reason??``}" queueDepth=${t.queueDepth}`),i({type:`session.state`,sessionId:t.sessionId,sessionKey:t.sessionKey,prevState:r,state:e.state,reason:e.reason,queueDepth:t.queueDepth}),v()}function E(e){let t=d(e);f.warn(`stuck session: sessionId=${t.sessionId??`unknown`} sessionKey=${t.sessionKey??`unknown`} state=${e.state} age=${Math.round(e.ageMs/1e3)}s queueDepth=${t.queueDepth}`),i({type:`session.stuck`,sessionId:t.sessionId,sessionKey:t.sessionKey,state:e.state,ageMs:e.ageMs,queueDepth:t.queueDepth}),v()}function D(e,t){f.debug(`lane enqueue: lane=${e} queueSize=${t}`),i({type:`queue.lane.enqueue`,lane:e,queueSize:t}),v()}function O(e,t,n){f.debug(`lane dequeue: lane=${e} waitMs=${t} queueSize=${n}`),i({type:`queue.lane.dequeue`,lane:e,queueSize:n,waitMs:t}),v()}function k(e){let t=`tool loop: sessionId=${e.sessionId??`unknown`} sessionKey=${e.sessionKey??`unknown`} tool=${e.toolName} level=${e.level} action=${e.action} detector=${e.detector} count=${e.count}${e.pairedToolName?` pairedTool=${e.pairedToolName}`:``} message="${e.message}"`;e.level===`critical`?f.error(t):f.warn(t),i({type:`tool.loop`,sessionId:e.sessionId,sessionKey:e.sessionKey,toolName:e.toolName,level:e.level,action:e.action,detector:e.detector,count:e.count,message:e.message,pairedToolName:e.pairedToolName}),v()}let A=null;function j(e){A||(A=setInterval(()=>{let n=e;if(!n)try{n=t()}catch{n=void 0}let r=y(n),o=Date.now();c(o,!0);let s=Array.from(a.values()).filter(e=>e.state===`processing`).length,l=Array.from(a.values()).filter(e=>e.state===`waiting`).length,u=Array.from(a.values()).reduce((e,t)=>e+t.queueDepth,0);if((m>0||p.received>0||s>0||l>0||u>0)&&!(o-m>12e4&&s===0&&l===0)){f.debug(`heartbeat: webhooks=${p.received}/${p.processed}/${p.errors} active=${s} waiting=${l} queued=${u}`),i({type:`diagnostic.heartbeat`,webhooks:{received:p.received,processed:p.processed,errors:p.errors},active:s,waiting:l,queued:u}),_().then(({pruneStaleCommandPolls:e})=>{for(let[,t]of a)e(t)}).catch(e=>{f.debug(`command-poll-backoff prune failed: ${String(e)}`)});for(let[,e]of a){let t=o-e.lastActivity;e.state===`processing`&&t>r&&E({sessionId:e.sessionId,sessionKey:e.sessionKey,state:e.state,ageMs:t})}}},3e4),A.unref?.())}function M(){A&&=(clearInterval(A),null)}export{C as a,S as c,j as d,M as f,r as h,w as i,x as l,i as m,O as n,T as o,d as p,D as r,k as s,f as t,b as u};
|
|
2
|
+
//# sourceMappingURL=diagnostic-DQq4Bwrs.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{c as e}from"./service-BtB9epJk.js";import t from"node:fs/promises";const n=[/refusing to bind gateway/i,/gateway auth mode/i,/gateway start blocked/i,/failed to bind gateway socket/i,/tailscale .* requires/i];async function r(e){try{let n=(await t.readFile(e,`utf8`)).split(/\r?\n/).map(e=>e.trim());for(let e=n.length-1;e>=0;--e)if(n[e])return n[e];return null}catch{return null}}async function i(i){let{stdoutPath:a,stderrPath:o}=e(i),s=await t.readFile(o,`utf8`).catch(()=>``),c=await t.readFile(a,`utf8`).catch(()=>``),l=[...s.split(/\r?\n/),...c.split(/\r?\n/)].map(e=>e.trim());for(let e=l.length-1;e>=0;--e){let t=l[e];if(t&&n.some(e=>e.test(t)))return t}return await r(o)??await r(a)}export{i as t};
|
|
2
|
+
//# sourceMappingURL=diagnostics-BgbeL9KE.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{c as e}from"./service-DZ9EbS15.js";import t from"node:fs/promises";const n=[/refusing to bind gateway/i,/gateway auth mode/i,/gateway start blocked/i,/failed to bind gateway socket/i,/tailscale .* requires/i];async function r(e){try{let n=(await t.readFile(e,`utf8`)).split(/\r?\n/).map(e=>e.trim());for(let e=n.length-1;e>=0;--e)if(n[e])return n[e];return null}catch{return null}}async function i(i){let{stdoutPath:a,stderrPath:o}=e(i),s=await t.readFile(o,`utf8`).catch(()=>``),c=await t.readFile(a,`utf8`).catch(()=>``),l=[...s.split(/\r?\n/),...c.split(/\r?\n/)].map(e=>e.trim());for(let e=l.length-1;e>=0;--e){let t=l[e];if(t&&n.some(e=>e.test(t)))return t}return await r(o)??await r(a)}export{i as t};
|
|
2
|
+
//# sourceMappingURL=diagnostics-Cdctg9K_.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{jo as r}from"./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{lt as i,t as a}from"./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{n as o}from"./channel-selection-BBeE1TmB.js";import{t as s}from"./links-CBnmRP9D.js";import{t as c}from"./help-format-B4aEI7V9.js";import{n as l,t as u}from"./table-CR7TFMew.js";function d(e){if(typeof e==`number`&&Number.isFinite(e))return e<=0?null:Math.floor(e);if(typeof e!=`string`)return null;let t=e.trim();if(!t)return null;let n=Number.parseInt(t,10);return!Number.isFinite(n)||n<=0?null:n}function f(e){return e.map(e=>({ID:e.id,Name:e.name?.trim()??``}))}function p(n){if(n.entries.length===0){t.log(e.muted(n.emptyMessage));return}let r=u();t.log(`${e.heading(n.title)} ${e.muted(`(${n.entries.length})`)}`),t.log(l({width:r,columns:[{key:`ID`,header:`ID`,minWidth:16,flex:!0},{key:`Name`,header:`Name`,minWidth:18,flex:!0}],rows:f(n.entries)}).trimEnd())}function m(m){let h=m.command(`directory`).description(`Lookup contact and group IDs (self, peers, groups) for supported chat channels`).addHelpText(`after`,()=>`\n${e.heading(`Examples:`)}\n${c([[`openclaw directory self --channel slack`,`Show the connected account identity.`],[`openclaw directory peers list --channel slack --query "alice"`,`Search contact/user IDs by name.`],[`openclaw directory groups list --channel discord`,`List available groups/channels.`],[`openclaw directory groups members --channel discord --group-id <id>`,`List members for a specific group.`]])}\n\n${e.muted(`Docs:`)} ${s(`/cli/directory`,`docs.openclaw.ai/cli/directory`)}\n`).action(()=>{h.help({error:!0})}),g=e=>e.option(`--channel <name>`,`Channel (auto when only one is configured)`).option(`--account <id>`,`Account id (accountId)`).option(`--json`,`Output JSON`,!1),_=async e=>{let t=r(),n=(await o({cfg:t,channel:e.channel??null})).channel,s=a(n);if(!s)throw Error(`Unsupported channel: ${String(n)}`);return{cfg:t,channelId:n,accountId:e.account?.trim()||i({plugin:s,cfg:t}),plugin:s}},v=async e=>{let{cfg:n,channelId:r,accountId:i,plugin:a}=await _({channel:e.opts.channel,account:e.opts.account}),o=e.action===`listPeers`?a.directory?.listPeers:a.directory?.listGroups;if(!o)throw Error(`Channel ${r} does not support directory ${e.unsupported}`);let s=await o({cfg:n,accountId:i,query:e.opts.query??null,limit:d(e.opts.limit),runtime:t});if(e.opts.json){t.log(JSON.stringify(s,null,2));return}p({title:e.title,emptyMessage:e.emptyMessage,entries:s})};g(h.command(`self`).description(`Show the current account user`)).action(async r=>{try{let{cfg:n,channelId:i,accountId:a,plugin:o}=await _({channel:r.channel,account:r.account}),s=o.directory?.self;if(!s)throw Error(`Channel ${i} does not support directory self`);let c=await s({cfg:n,accountId:a,runtime:t});if(r.json){t.log(JSON.stringify(c,null,2));return}if(!c){t.log(e.muted(`Not available.`));return}let d=u();t.log(e.heading(`Self`)),t.log(l({width:d,columns:[{key:`ID`,header:`ID`,minWidth:16,flex:!0},{key:`Name`,header:`Name`,minWidth:18,flex:!0}],rows:f([c])}).trimEnd())}catch(e){t.error(n(String(e))),t.exit(1)}}),g(h.command(`peers`).description(`Peer directory (contacts/users)`).command(`list`).description(`List peers`)).option(`--query <text>`,`Optional search query`).option(`--limit <n>`,`Limit results`).action(async e=>{try{await v({opts:e,action:`listPeers`,unsupported:`peers`,title:`Peers`,emptyMessage:`No peers found.`})}catch(e){t.error(n(String(e))),t.exit(1)}});let y=h.command(`groups`).description(`Group directory`);g(y.command(`list`).description(`List groups`)).option(`--query <text>`,`Optional search query`).option(`--limit <n>`,`Limit results`).action(async e=>{try{await v({opts:e,action:`listGroups`,unsupported:`groups`,title:`Groups`,emptyMessage:`No groups found.`})}catch(e){t.error(n(String(e))),t.exit(1)}}),g(y.command(`members`).description(`List group members`).requiredOption(`--group-id <id>`,`Group id`)).option(`--limit <n>`,`Limit results`).action(async e=>{try{let{cfg:n,channelId:r,accountId:i,plugin:a}=await _({channel:e.channel,account:e.account}),o=a.directory?.listGroupMembers;if(!o)throw Error(`Channel ${r} does not support group members listing`);let s=String(e.groupId??``).trim();if(!s)throw Error(`Missing --group-id`);let c=await o({cfg:n,accountId:i,groupId:s,limit:d(e.limit),runtime:t});if(e.json){t.log(JSON.stringify(c,null,2));return}p({title:`Group Members`,emptyMessage:`No group members found.`,entries:c})}catch(e){t.error(n(String(e))),t.exit(1)}})}export{m as registerDirectoryCli};
|
|
2
|
+
//# sourceMappingURL=directory-cli-DDTaUkjW.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{qs as r}from"./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{lt as i,t as a}from"./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{n as o}from"./channel-selection-CbNtbAEf.js";import{t as s}from"./links-CySwdMcF.js";import{t as c}from"./help-format-BRbF_INg.js";import{n as l,t as u}from"./table-CY440fI1.js";function d(e){if(typeof e==`number`&&Number.isFinite(e))return e<=0?null:Math.floor(e);if(typeof e!=`string`)return null;let t=e.trim();if(!t)return null;let n=Number.parseInt(t,10);return!Number.isFinite(n)||n<=0?null:n}function f(e){return e.map(e=>({ID:e.id,Name:e.name?.trim()??``}))}function p(n){if(n.entries.length===0){t.log(e.muted(n.emptyMessage));return}let r=u();t.log(`${e.heading(n.title)} ${e.muted(`(${n.entries.length})`)}`),t.log(l({width:r,columns:[{key:`ID`,header:`ID`,minWidth:16,flex:!0},{key:`Name`,header:`Name`,minWidth:18,flex:!0}],rows:f(n.entries)}).trimEnd())}function m(m){let h=m.command(`directory`).description(`Lookup contact and group IDs (self, peers, groups) for supported chat channels`).addHelpText(`after`,()=>`\n${e.heading(`Examples:`)}\n${c([[`openclaw directory self --channel slack`,`Show the connected account identity.`],[`openclaw directory peers list --channel slack --query "alice"`,`Search contact/user IDs by name.`],[`openclaw directory groups list --channel discord`,`List available groups/channels.`],[`openclaw directory groups members --channel discord --group-id <id>`,`List members for a specific group.`]])}\n\n${e.muted(`Docs:`)} ${s(`/cli/directory`,`docs.openclaw.ai/cli/directory`)}\n`).action(()=>{h.help({error:!0})}),g=e=>e.option(`--channel <name>`,`Channel (auto when only one is configured)`).option(`--account <id>`,`Account id (accountId)`).option(`--json`,`Output JSON`,!1),_=async e=>{let t=r(),n=(await o({cfg:t,channel:e.channel??null})).channel,s=a(n);if(!s)throw Error(`Unsupported channel: ${String(n)}`);return{cfg:t,channelId:n,accountId:e.account?.trim()||i({plugin:s,cfg:t}),plugin:s}},v=async e=>{let{cfg:n,channelId:r,accountId:i,plugin:a}=await _({channel:e.opts.channel,account:e.opts.account}),o=e.action===`listPeers`?a.directory?.listPeers:a.directory?.listGroups;if(!o)throw Error(`Channel ${r} does not support directory ${e.unsupported}`);let s=await o({cfg:n,accountId:i,query:e.opts.query??null,limit:d(e.opts.limit),runtime:t});if(e.opts.json){t.log(JSON.stringify(s,null,2));return}p({title:e.title,emptyMessage:e.emptyMessage,entries:s})};g(h.command(`self`).description(`Show the current account user`)).action(async r=>{try{let{cfg:n,channelId:i,accountId:a,plugin:o}=await _({channel:r.channel,account:r.account}),s=o.directory?.self;if(!s)throw Error(`Channel ${i} does not support directory self`);let c=await s({cfg:n,accountId:a,runtime:t});if(r.json){t.log(JSON.stringify(c,null,2));return}if(!c){t.log(e.muted(`Not available.`));return}let d=u();t.log(e.heading(`Self`)),t.log(l({width:d,columns:[{key:`ID`,header:`ID`,minWidth:16,flex:!0},{key:`Name`,header:`Name`,minWidth:18,flex:!0}],rows:f([c])}).trimEnd())}catch(e){t.error(n(String(e))),t.exit(1)}}),g(h.command(`peers`).description(`Peer directory (contacts/users)`).command(`list`).description(`List peers`)).option(`--query <text>`,`Optional search query`).option(`--limit <n>`,`Limit results`).action(async e=>{try{await v({opts:e,action:`listPeers`,unsupported:`peers`,title:`Peers`,emptyMessage:`No peers found.`})}catch(e){t.error(n(String(e))),t.exit(1)}});let y=h.command(`groups`).description(`Group directory`);g(y.command(`list`).description(`List groups`)).option(`--query <text>`,`Optional search query`).option(`--limit <n>`,`Limit results`).action(async e=>{try{await v({opts:e,action:`listGroups`,unsupported:`groups`,title:`Groups`,emptyMessage:`No groups found.`})}catch(e){t.error(n(String(e))),t.exit(1)}}),g(y.command(`members`).description(`List group members`).requiredOption(`--group-id <id>`,`Group id`)).option(`--limit <n>`,`Limit results`).action(async e=>{try{let{cfg:n,channelId:r,accountId:i,plugin:a}=await _({channel:e.channel,account:e.account}),o=a.directory?.listGroupMembers;if(!o)throw Error(`Channel ${r} does not support group members listing`);let s=String(e.groupId??``).trim();if(!s)throw Error(`Missing --group-id`);let c=await o({cfg:n,accountId:i,groupId:s,limit:d(e.limit),runtime:t});if(e.json){t.log(JSON.stringify(c,null,2));return}p({title:`Group Members`,emptyMessage:`No group members found.`,entries:c})}catch(e){t.error(n(String(e))),t.exit(1)}})}export{m as registerDirectoryCli};
|
|
2
|
+
//# sourceMappingURL=directory-cli-_gTFSHMW.js.map
|
package/dist/dns-cli--4PwtR2Y.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import{A as e,p as t}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{da as n,fa as r,jo as i}from"./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{t as a}from"./links-CBnmRP9D.js";import{n as o,t as s}from"./table-CR7TFMew.js";import{n as c,t as l}from"./widearea-dns-BDx7vkV2.js";import{spawnSync as u}from"node:child_process";import d from"node:path";import f from"node:fs";function p(e,t,n){let r=u(e,t,{encoding:`utf-8`,stdio:n?.inherit?`inherit`:`pipe`});if(r.error)throw r.error;if(!n?.allowFailure&&r.status!==0){let n=typeof r.stderr==`string`&&r.stderr.trim()?r.stderr.trim():`exit ${r.status??`unknown`}`;throw Error(`${e} ${t.join(` `)} failed: ${n}`)}return typeof r.stdout==`string`?r.stdout:``}function m(e,t){try{f.writeFileSync(e,t,`utf-8`);return}catch(e){let t=e.code;if(t!==`EACCES`&&t!==`EPERM`)throw e instanceof Error?e:Error(String(e))}let n=u(`sudo`,[`tee`,e],{input:t,encoding:`utf-8`,stdio:[`pipe`,`ignore`,`inherit`]});if(n.error)throw n.error;if(n.status!==0)throw Error(`sudo tee ${e} failed: exit ${n.status??`unknown`}`)}function h(e){try{f.mkdirSync(e,{recursive:!0});return}catch(e){let t=e.code;if(t!==`EACCES`&&t!==`EPERM`)throw e instanceof Error?e:Error(String(e))}p(`sudo`,[`mkdir`,`-p`,e],{inherit:!0})}function g(e){if(!f.existsSync(e))return!0;try{let t=f.readFileSync(e,`utf-8`);return!/\bSOA\b/.test(t)||!/\bNS\b/.test(t)}catch{return!0}}function _(){let e=p(`brew`,[`--prefix`]).trim();if(!e)throw Error(`failed to resolve Homebrew prefix`);return e}function v(e,t){let n=f.readFileSync(e,`utf-8`);return n.includes(t)?!1:(m(e,`${n.replace(/\s*$/,``)}\n\nimport ${t}\n`),!0)}function y(u){u.command(`dns`).description(`DNS helpers for wide-area discovery (Tailscale + CoreDNS)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${a(`/cli/dns`,`docs.openclaw.ai/cli/dns`)}\n`).command(`setup`).description(`Set up CoreDNS to serve your discovery domain for unicast DNS-SD (Wide-Area Bonjour)`).option(`--domain <domain>`,`Wide-area discovery domain (e.g. openclaw.internal)`).option(`--apply`,`Install/update CoreDNS config and (re)start the service (requires sudo)`,!1).action(async a=>{let u=i(),y=n(),b=r(),x=c({configDomain:a.domain??u.discovery?.wideArea?.domain});if(!x)throw Error(`No wide-area domain configured. Set discovery.wideArea.domain or pass --domain.`);let S=l(x),C=s();if(t.log(e.heading(`DNS setup`)),t.log(o({width:C,columns:[{key:`Key`,header:`Key`,minWidth:18},{key:`Value`,header:`Value`,minWidth:24,flex:!0}],rows:[{Key:`Domain`,Value:x},{Key:`Zone file`,Value:S},{Key:`Tailnet IP`,Value:`${y??`—`}${b?` (v6 ${b})`:``}`}]}).trimEnd()),t.log(``),t.log(e.heading(`Recommended ~/.qbotclaw/openclaw.json:`)),t.log(JSON.stringify({gateway:{bind:`auto`},discovery:{wideArea:{enabled:!0,domain:x}}},null,2)),t.log(``),t.log(e.heading(`Tailscale admin (DNS → Nameservers):`)),t.log(e.muted(`- Add nameserver: ${y??`<this machine's tailnet IPv4>`}`)),t.log(e.muted(`- Restrict to domain (Split DNS): ${x.replace(/\.$/,``)}`)),!a.apply){t.log(``),t.log(e.muted(`Run with --apply to install CoreDNS and configure it.`));return}if(process.platform!==`darwin`)throw Error(`dns setup is currently supported on macOS only`);if(!y&&!b)throw Error(`no tailnet IP detected; ensure Tailscale is running on this machine`);let w=_(),T=d.join(w,`etc`,`coredns`),E=d.join(T,`Corefile`),D=d.join(T,`conf.d`),O=d.join(D,`*.server`),k=d.join(D,`${x.replace(/\.$/,``)}.server`);p(`brew`,[`list`,`coredns`],{allowFailure:!0}),p(`brew`,[`install`,`coredns`],{inherit:!0,allowFailure:!0}),h(D),f.existsSync(E)?v(E,O):m(E,`import ${O}\n`);let A=[y,b].filter(e=>!!e?.trim());if(m(k,[`${x.replace(/\.$/,``)}:53 {`,` bind ${A.join(` `)}`,` file ${S} {`,` reload 10s`,` }`,` errors`,` log`,`}`,``].join(`
|
|
2
2
|
`)),await f.promises.mkdir(d.dirname(S),{recursive:!0}),g(S)){let e=`${new Date().getUTCFullYear()}${String(new Date().getUTCMonth()+1).padStart(2,`0`)}${String(new Date().getUTCDate()).padStart(2,`0`)}01`,t=[`; created by openclaw dns setup (will be overwritten by the gateway when wide-area discovery is enabled)`,`$ORIGIN ${x}`,`$TTL 60`,`@ IN SOA ns1 hostmaster ${e} 7200 3600 1209600 60`,`@ IN NS ns1`,y?`ns1 IN A ${y}`:null,b?`ns1 IN AAAA ${b}`:null,``].filter(e=>!!e);f.writeFileSync(S,t.join(`
|
|
3
3
|
`),`utf-8`)}t.log(``),t.log(e.heading(`Starting CoreDNS (sudo)…`)),p(`sudo`,[`brew`,`services`,`restart`,`coredns`],{inherit:!0}),u.discovery?.wideArea?.enabled!==!0&&(t.log(``),t.log(e.muted(`Note: enable discovery.wideArea.enabled in ~/.qbotclaw/openclaw.json on the gateway and restart the gateway so it writes the DNS-SD zone.`)))})}export{y as registerDnsCli};
|
|
4
|
+
//# sourceMappingURL=dns-cli--4PwtR2Y.js.map
|
package/dist/dns-cli-C4DwKquN.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import"./paths-B4IRk3wi.js";import{A as e,p as t}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import{Do as n,Eo as r,qs as i}from"./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{t as a}from"./links-CySwdMcF.js";import{n as o,t as s}from"./table-CY440fI1.js";import{n as c,t as l}from"./widearea-dns-BFjqKXu_.js";import u from"node:fs";import d from"node:path";import{spawnSync as f}from"node:child_process";function p(e,t,n){let r=f(e,t,{encoding:`utf-8`,stdio:n?.inherit?`inherit`:`pipe`});if(r.error)throw r.error;if(!n?.allowFailure&&r.status!==0){let n=typeof r.stderr==`string`&&r.stderr.trim()?r.stderr.trim():`exit ${r.status??`unknown`}`;throw Error(`${e} ${t.join(` `)} failed: ${n}`)}return typeof r.stdout==`string`?r.stdout:``}function m(e,t){try{u.writeFileSync(e,t,`utf-8`);return}catch(e){let t=e.code;if(t!==`EACCES`&&t!==`EPERM`)throw e instanceof Error?e:Error(String(e))}let n=f(`sudo`,[`tee`,e],{input:t,encoding:`utf-8`,stdio:[`pipe`,`ignore`,`inherit`]});if(n.error)throw n.error;if(n.status!==0)throw Error(`sudo tee ${e} failed: exit ${n.status??`unknown`}`)}function h(e){try{u.mkdirSync(e,{recursive:!0});return}catch(e){let t=e.code;if(t!==`EACCES`&&t!==`EPERM`)throw e instanceof Error?e:Error(String(e))}p(`sudo`,[`mkdir`,`-p`,e],{inherit:!0})}function g(e){if(!u.existsSync(e))return!0;try{let t=u.readFileSync(e,`utf-8`);return!/\bSOA\b/.test(t)||!/\bNS\b/.test(t)}catch{return!0}}function _(){let e=p(`brew`,[`--prefix`]).trim();if(!e)throw Error(`failed to resolve Homebrew prefix`);return e}function v(e,t){let n=u.readFileSync(e,`utf-8`);return n.includes(t)?!1:(m(e,`${n.replace(/\s*$/,``)}\n\nimport ${t}\n`),!0)}function y(f){f.command(`dns`).description(`DNS helpers for wide-area discovery (Tailscale + CoreDNS)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${a(`/cli/dns`,`docs.openclaw.ai/cli/dns`)}\n`).command(`setup`).description(`Set up CoreDNS to serve your discovery domain for unicast DNS-SD (Wide-Area Bonjour)`).option(`--domain <domain>`,`Wide-area discovery domain (e.g. openclaw.internal)`).option(`--apply`,`Install/update CoreDNS config and (re)start the service (requires sudo)`,!1).action(async a=>{let f=i(),y=r(),b=n(),x=c({configDomain:a.domain??f.discovery?.wideArea?.domain});if(!x)throw Error(`No wide-area domain configured. Set discovery.wideArea.domain or pass --domain.`);let S=l(x),C=s();if(t.log(e.heading(`DNS setup`)),t.log(o({width:C,columns:[{key:`Key`,header:`Key`,minWidth:18},{key:`Value`,header:`Value`,minWidth:24,flex:!0}],rows:[{Key:`Domain`,Value:x},{Key:`Zone file`,Value:S},{Key:`Tailnet IP`,Value:`${y??`—`}${b?` (v6 ${b})`:``}`}]}).trimEnd()),t.log(``),t.log(e.heading(`Recommended ~/.qbotclaw/openclaw.json:`)),t.log(JSON.stringify({gateway:{bind:`auto`},discovery:{wideArea:{enabled:!0,domain:x}}},null,2)),t.log(``),t.log(e.heading(`Tailscale admin (DNS → Nameservers):`)),t.log(e.muted(`- Add nameserver: ${y??`<this machine's tailnet IPv4>`}`)),t.log(e.muted(`- Restrict to domain (Split DNS): ${x.replace(/\.$/,``)}`)),!a.apply){t.log(``),t.log(e.muted(`Run with --apply to install CoreDNS and configure it.`));return}if(process.platform!==`darwin`)throw Error(`dns setup is currently supported on macOS only`);if(!y&&!b)throw Error(`no tailnet IP detected; ensure Tailscale is running on this machine`);let w=_(),T=d.join(w,`etc`,`coredns`),E=d.join(T,`Corefile`),D=d.join(T,`conf.d`),O=d.join(D,`*.server`),k=d.join(D,`${x.replace(/\.$/,``)}.server`);p(`brew`,[`list`,`coredns`],{allowFailure:!0}),p(`brew`,[`install`,`coredns`],{inherit:!0,allowFailure:!0}),h(D),u.existsSync(E)?v(E,O):m(E,`import ${O}\n`);let A=[y,b].filter(e=>!!e?.trim());if(m(k,[`${x.replace(/\.$/,``)}:53 {`,` bind ${A.join(` `)}`,` file ${S} {`,` reload 10s`,` }`,` errors`,` log`,`}`,``].join(`
|
|
2
2
|
`)),await u.promises.mkdir(d.dirname(S),{recursive:!0}),g(S)){let e=`${new Date().getUTCFullYear()}${String(new Date().getUTCMonth()+1).padStart(2,`0`)}${String(new Date().getUTCDate()).padStart(2,`0`)}01`,t=[`; created by openclaw dns setup (will be overwritten by the gateway when wide-area discovery is enabled)`,`$ORIGIN ${x}`,`$TTL 60`,`@ IN SOA ns1 hostmaster ${e} 7200 3600 1209600 60`,`@ IN NS ns1`,y?`ns1 IN A ${y}`:null,b?`ns1 IN AAAA ${b}`:null,``].filter(e=>!!e);u.writeFileSync(S,t.join(`
|
|
3
3
|
`),`utf-8`)}t.log(``),t.log(e.heading(`Starting CoreDNS (sudo)…`)),p(`sudo`,[`brew`,`services`,`restart`,`coredns`],{inherit:!0}),f.discovery?.wideArea?.enabled!==!0&&(t.log(``),t.log(e.muted(`Note: enable discovery.wideArea.enabled in ~/.qbotclaw/openclaw.json on the gateway and restart the gateway so it writes the DNS-SD zone.`)))})}export{y as registerDnsCli};
|
|
4
|
+
//# sourceMappingURL=dns-cli-C4DwKquN.js.map
|
|
@@ -3,3 +3,4 @@ import{A as e,k as t,p as n}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_x
|
|
|
3
3
|
`).trim():``));n.push({title:r,link:i,snippet:s||void 0})}return n}function g(e){return e.replace(/[()[\]]/g,`\\$&`)}function _(e,t){let n=[`# Docs search: ${g(e)}`,``];if(t.length===0)return n.push(`_No results._`),n.join(`
|
|
4
4
|
`);for(let e of t){let t=g(e.title),r=e.snippet?g(e.snippet):``,i=r?` - ${r}`:``;n.push(`- [${t}](${e.link})${i}`)}return n.join(`
|
|
5
5
|
`)}function v(e){return e.replace(/^https?:\/\//i,``)}function y(t,n,r){if(r.log(`${e.heading(`Docs search:`)} ${e.info(t)}`),n.length===0){r.log(e.muted(`No results.`));return}for(let t of n){let n=v(t.link),i=o(t.link,n);r.log(`${e.muted(`-`)} ${e.command(t.title)} ${e.muted(`(`)}${i}${e.muted(`)`)}`),t.snippet&&r.log(` ${e.muted(t.snippet)}`)}}async function b(e,t){t.log(e.trimEnd())}async function x(n,i){let a=n.join(` `).trim();if(!a){let n=o(`/`,`docs.openclaw.ai`);t()?(i.log(`${e.muted(`Docs:`)} ${n}`),i.log(`${e.muted(`Search:`)} ${r(`openclaw docs "your query"`)}`)):(i.log(`Docs: https://docs.openclaw.ai/`),i.log(`Search: ${r(`openclaw docs "your query"`)}`));return}let s=await d(`mcporter`,[`call`,`https://docs.openclaw.ai/mcp.SearchOpenClaw`,`--args`,JSON.stringify({query:a}),`--output`,`text`],{timeoutMs:c});if(s.code!==0){let e=s.stderr.trim()||s.stdout.trim()||`exit ${s.code}`;i.error(`Docs search failed: ${e}`),i.exit(1);return}let l=h(s.stdout);if(t()){y(a,l,i);return}await b(_(a,l),i)}function S(t){t.command(`docs`).description(`Search the live OpenClaw docs`).argument(`[query...]`,`Search query`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${o(`/cli/docs`,`docs.openclaw.ai/cli/docs`)}\n`).action(async e=>{await s(n,async()=>{await x(e,n)})})}export{S as registerDocsCli};
|
|
6
|
+
//# sourceMappingURL=docs-cli-Cdw9Iz9a.js.map
|
|
@@ -3,3 +3,4 @@ import"./paths-B4IRk3wi.js";import{A as e,k as t,p as n}from"./subsystem-C5XF2Fy
|
|
|
3
3
|
`).trim():``));n.push({title:r,link:i,snippet:s||void 0})}return n}function g(e){return e.replace(/[()[\]]/g,`\\$&`)}function _(e,t){let n=[`# Docs search: ${g(e)}`,``];if(t.length===0)return n.push(`_No results._`),n.join(`
|
|
4
4
|
`);for(let e of t){let t=g(e.title),r=e.snippet?g(e.snippet):``,i=r?` - ${r}`:``;n.push(`- [${t}](${e.link})${i}`)}return n.join(`
|
|
5
5
|
`)}function v(e){return e.replace(/^https?:\/\//i,``)}function y(t,n,r){if(r.log(`${e.heading(`Docs search:`)} ${e.info(t)}`),n.length===0){r.log(e.muted(`No results.`));return}for(let t of n){let n=v(t.link),i=o(t.link,n);r.log(`${e.muted(`-`)} ${e.command(t.title)} ${e.muted(`(`)}${i}${e.muted(`)`)}`),t.snippet&&r.log(` ${e.muted(t.snippet)}`)}}async function b(e,t){t.log(e.trimEnd())}async function x(n,i){let a=n.join(` `).trim();if(!a){let n=o(`/`,`docs.openclaw.ai`);t()?(i.log(`${e.muted(`Docs:`)} ${n}`),i.log(`${e.muted(`Search:`)} ${r(`openclaw docs "your query"`)}`)):(i.log(`Docs: https://docs.openclaw.ai/`),i.log(`Search: ${r(`openclaw docs "your query"`)}`));return}let s=await d(`mcporter`,[`call`,`https://docs.openclaw.ai/mcp.SearchOpenClaw`,`--args`,JSON.stringify({query:a}),`--output`,`text`],{timeoutMs:c});if(s.code!==0){let e=s.stderr.trim()||s.stdout.trim()||`exit ${s.code}`;i.error(`Docs search failed: ${e}`),i.exit(1);return}let l=h(s.stdout);if(t()){y(a,l,i);return}await b(_(a,l),i)}function S(t){t.command(`docs`).description(`Search the live OpenClaw docs`).argument(`[query...]`,`Search query`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${o(`/cli/docs`,`docs.openclaw.ai/cli/docs`)}\n`).action(async e=>{await s(n,async()=>{await x(e,n)})})}export{S as registerDocsCli};
|
|
6
|
+
//# sourceMappingURL=docs-cli-ClD2UyX1.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./openclaw-root-D_0Q6--h.js";import{r as t}from"./command-format-BbDT1tlm.js";import{t as n}from"./note-D4GAwgha.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-BZi4nuQb.js";import l from"node:path";import{spawnSync as u}from"node:child_process";async function d(){let t=await e({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!t)return!1;let n=l.join(t,`openclaw.mjs`);return u(process.execPath,[n,`completion`,`--write-state`],{cwd:t,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(e,r,i={}){let a=t(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
|
|
2
|
+
//# sourceMappingURL=doctor-completion-BJ6steqx.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./command-format-CLxIPuLR.js";import{t}from"./openclaw-root-CnsBf6ZU.js";import{t as n}from"./note-Dp-d_utk.js";import{a as r,i,o as a,r as o,s,t as c}from"./completion-cli-C40TWdsv.js";import{spawnSync as l}from"node:child_process";import u from"node:path";async function d(){let e=await t({moduleUrl:import.meta.url,argv1:process.argv[1],cwd:process.cwd()});if(!e)return!1;let n=u.join(e,`openclaw.mjs`);return l(process.execPath,[n,`completion`,`--write-state`],{cwd:e,env:process.env,encoding:`utf-8`}).status===0}async function f(e=`openclaw`){let t=a();return{shell:t,profileInstalled:await i(t,e),cacheExists:await c(t,e),cachePath:r(t,e),usesSlowPattern:await s(t,e)}}async function p(t,r,i={}){let a=e(),s=await f(a);if(s.usesSlowPattern){if(n(`Your ${s.shell} profile uses slow dynamic completion (source <(...)).\nUpgrading to cached completion for faster shell startup...`,`Shell completion`),!s.cacheExists&&!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion upgraded. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`);return}if(s.profileInstalled&&!s.cacheExists){n(`Shell completion is configured in your ${s.shell} profile but the cache is missing.\nRegenerating cache...`,`Shell completion`),await d()?n(`Completion cache regenerated at ${s.cachePath}`,`Shell completion`):n(`Failed to regenerate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}if(!s.profileInstalled){if(i.nonInteractive)return;if(await r.confirm({message:`Enable ${s.shell} shell completion for ${a}?`,initialValue:!0})){if(!await d()){n(`Failed to generate completion cache. Run \`${a} completion --write-state\` manually.`,`Shell completion`);return}await o(s.shell,!0,a),n(`Shell completion installed. Restart your shell or run: source ~/.${s.shell===`zsh`?`zshrc`:s.shell===`bash`?`bashrc`:`config/fish/config.fish`}`,`Shell completion`)}}}async function m(e=`openclaw`){return await c(a(),e)?!0:d()}export{p as n,m as r,f as t};
|
|
2
|
+
//# sourceMappingURL=doctor-completion-DMJhfrtC.js.map
|
|
@@ -30,3 +30,4 @@ import{f as e,g as t,m as n,p as r,t as i}from"./paths-BjD3T_xq.js";import{Eo as
|
|
|
30
30
|
`),`Doctor warnings`)}let b=ke(u);if(b.removed.length>0){let e=b.removed.map(e=>`- ${e}`).join(`
|
|
31
31
|
`);u=b.config,d=!0,t?(l=b.config,j(e,`Doctor changes`)):(j(e,`Unknown config keys`),p.push(`Run "openclaw doctor --fix" to remove these keys.`))}return!t&&d&&(await e.confirm({message:`Apply recommended config repairs now?`,initialValue:!0})?(l=u,f=!0):p.length>0&&j(p.join(`
|
|
32
32
|
`),`Doctor`)),t&&d&&(f=!0),Ae(l),{cfg:l,path:s.path??i,shouldWriteConfig:f,sourceConfigValid:s.valid}}export{Qe as n,rt as r,Dt as t};
|
|
33
|
+
//# sourceMappingURL=doctor-config-flow-D4F3mz4h.js.map
|
|
@@ -30,3 +30,4 @@ import{f as e,g as t,m as n,p as r,t as i}from"./paths-B4IRk3wi.js";import{_ as
|
|
|
30
30
|
`),`Doctor warnings`)}let b=ke(c);if(b.removed.length>0){let e=b.removed.map(e=>`- ${e}`).join(`
|
|
31
31
|
`);c=b.config,u=!0,t?(s=b.config,A(e,`Doctor changes`)):(A(e,`Unknown config keys`),f.push(`Run "openclaw doctor --fix" to remove these keys.`))}return!t&&u&&(await e.confirm({message:`Apply recommended config repairs now?`,initialValue:!0})?(s=c,d=!0):f.length>0&&A(f.join(`
|
|
32
32
|
`),`Doctor`)),t&&u&&(d=!0),Ae(s),{cfg:s,path:a.path??i,shouldWriteConfig:d,sourceConfigValid:a.valid}}export{Qe as n,rt as r,Dt as t};
|
|
33
|
+
//# sourceMappingURL=doctor-config-flow-DnOyVZhQ.js.map
|
package/dist/enable-BhD84GhD.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{l as e}from"./registry-BptzrW8D.js";import{r as t}from"./plugin-auto-enable-NzmNh4oU.js";function n(t,n,r){let i=e(n),a=i??n,o={...t,plugins:{...t.plugins,entries:{...t.plugins?.entries,[a]:{...t.plugins?.entries?.[a],enabled:r}}}};if(!i)return o;let s=t.channels?.[i],c=s&&typeof s==`object`&&!Array.isArray(s)?s:{};return{...o,channels:{...t.channels,[i]:{...c,enabled:r}}}}function r(r,i){let a=e(i)??i;if(r.plugins?.enabled===!1)return{config:r,enabled:!1,reason:`plugins disabled`};if(r.plugins?.deny?.includes(i)||r.plugins?.deny?.includes(a))return{config:r,enabled:!1,reason:`blocked by denylist`};let o=n(r,a,!0);return o=t(o,a),{config:o,enabled:!0}}export{n,r as t};
|
|
2
|
+
//# sourceMappingURL=enable-BhD84GhD.js.map
|
package/dist/enable-Ccf9wSM8.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{l as e}from"./registry-hFAtCSWG.js";import{r as t}from"./plugin-auto-enable-DpVL6-ES.js";function n(t,n,r){let i=e(n),a=i??n,o={...t,plugins:{...t.plugins,entries:{...t.plugins?.entries,[a]:{...t.plugins?.entries?.[a],enabled:r}}}};if(!i)return o;let s=t.channels?.[i],c=s&&typeof s==`object`&&!Array.isArray(s)?s:{};return{...o,channels:{...t.channels,[i]:{...c,enabled:r}}}}function r(r,i){let a=e(i)??i;if(r.plugins?.enabled===!1)return{config:r,enabled:!1,reason:`plugins disabled`};if(r.plugins?.deny?.includes(i)||r.plugins?.deny?.includes(a))return{config:r,enabled:!1,reason:`blocked by denylist`};let o=n(r,a,!0);return o=t(o,a),{config:o,enabled:!0}}export{n,r as t};
|
|
2
|
+
//# sourceMappingURL=enable-Ccf9wSM8.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){let t=e.metadata?.emoji??e.frontmatter?.emoji,n=e.metadata?.homepage??e.frontmatter?.homepage??e.frontmatter?.website??e.frontmatter?.url,r=n?.trim()?n.trim():void 0;return{...t?{emoji:t}:{},...r?{homepage:r}:{}}}function t(e){let t=e.hasRemoteBin;return e.required.filter(n=>!(e.hasLocalBin(n)||t?.(n)))}function n(e){return e.required.length===0||e.required.some(t=>e.hasLocalBin(t))||e.hasRemoteAnyBin?.(e.required)?[]:e.required}function r(e){return e.required.length===0||e.required.includes(e.localPlatform)||e.remotePlatforms?.some(t=>e.required.includes(t))?[]:e.required}function i(e){let t=[];for(let n of e.required)e.isSatisfied(n)||t.push(n);return t}function a(e){return e.required.map(t=>({path:t,satisfied:e.isSatisfied(t)}))}function o(e){let o=t({required:e.required.bins,hasLocalBin:e.hasLocalBin,hasRemoteBin:e.hasRemoteBin}),s=n({required:e.required.anyBins,hasLocalBin:e.hasLocalBin,hasRemoteAnyBin:e.hasRemoteAnyBin}),c=r({required:e.required.os,localPlatform:e.localPlatform,remotePlatforms:e.remotePlatforms}),l=i({required:e.required.env,isSatisfied:e.isEnvSatisfied}),u=a({required:e.required.config,isSatisfied:e.isConfigSatisfied}),d=u.filter(e=>!e.satisfied).map(e=>e.path),f=e.always?{bins:[],anyBins:[],env:[],config:[],os:[]}:{bins:o,anyBins:s,env:l,config:d,os:c};return{missing:f,eligible:e.always||f.bins.length===0&&f.anyBins.length===0&&f.env.length===0&&f.config.length===0&&f.os.length===0,configChecks:u}}function s(e){let t={bins:e.metadata?.requires?.bins??[],anyBins:e.metadata?.requires?.anyBins??[],env:e.metadata?.requires?.env??[],config:e.metadata?.requires?.config??[],os:e.metadata?.os??[]};return{required:t,...o({always:e.always,required:t,hasLocalBin:e.hasLocalBin,hasRemoteBin:e.hasRemoteBin,hasRemoteAnyBin:e.hasRemoteAnyBin,localPlatform:e.localPlatform,remotePlatforms:e.remotePlatforms,isEnvSatisfied:e.isEnvSatisfied,isConfigSatisfied:e.isConfigSatisfied})}}function c(e){return s({always:e.always,metadata:e.metadata,hasLocalBin:e.hasLocalBin,hasRemoteBin:e.remote?.hasBin,hasRemoteAnyBin:e.remote?.hasAnyBin,localPlatform:e.localPlatform,remotePlatforms:e.remote?.platforms,isEnvSatisfied:e.isEnvSatisfied,isConfigSatisfied:e.isConfigSatisfied})}function l(t){let{emoji:n,homepage:r}=e({metadata:t.metadata,frontmatter:t.frontmatter}),{required:i,missing:a,eligible:o,configChecks:s}=c({always:t.always,metadata:t.metadata??void 0,hasLocalBin:t.hasLocalBin,localPlatform:t.localPlatform,remote:t.remote,isEnvSatisfied:t.isEnvSatisfied,isConfigSatisfied:t.isConfigSatisfied});return{...n?{emoji:n}:{},...r?{homepage:r}:{},required:i,missing:a,requirementsSatisfied:o,configChecks:s}}function u(e){return l({...e,localPlatform:process.platform})}function d(e){return u({always:e.always,metadata:e.entry.metadata,frontmatter:e.entry.frontmatter,hasLocalBin:e.hasLocalBin,remote:e.remote,isEnvSatisfied:e.isEnvSatisfied,isConfigSatisfied:e.isConfigSatisfied})}export{d as t};
|
|
2
|
+
//# sourceMappingURL=entry-status-CCwwKO43.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){let t=e.metadata?.emoji??e.frontmatter?.emoji,n=e.metadata?.homepage??e.frontmatter?.homepage??e.frontmatter?.website??e.frontmatter?.url,r=n?.trim()?n.trim():void 0;return{...t?{emoji:t}:{},...r?{homepage:r}:{}}}function t(e){let t=e.hasRemoteBin;return e.required.filter(n=>!(e.hasLocalBin(n)||t?.(n)))}function n(e){return e.required.length===0||e.required.some(t=>e.hasLocalBin(t))||e.hasRemoteAnyBin?.(e.required)?[]:e.required}function r(e){return e.required.length===0||e.required.includes(e.localPlatform)||e.remotePlatforms?.some(t=>e.required.includes(t))?[]:e.required}function i(e){let t=[];for(let n of e.required)e.isSatisfied(n)||t.push(n);return t}function a(e){return e.required.map(t=>({path:t,satisfied:e.isSatisfied(t)}))}function o(e){let o=t({required:e.required.bins,hasLocalBin:e.hasLocalBin,hasRemoteBin:e.hasRemoteBin}),s=n({required:e.required.anyBins,hasLocalBin:e.hasLocalBin,hasRemoteAnyBin:e.hasRemoteAnyBin}),c=r({required:e.required.os,localPlatform:e.localPlatform,remotePlatforms:e.remotePlatforms}),l=i({required:e.required.env,isSatisfied:e.isEnvSatisfied}),u=a({required:e.required.config,isSatisfied:e.isConfigSatisfied}),d=u.filter(e=>!e.satisfied).map(e=>e.path),f=e.always?{bins:[],anyBins:[],env:[],config:[],os:[]}:{bins:o,anyBins:s,env:l,config:d,os:c};return{missing:f,eligible:e.always||f.bins.length===0&&f.anyBins.length===0&&f.env.length===0&&f.config.length===0&&f.os.length===0,configChecks:u}}function s(e){let t={bins:e.metadata?.requires?.bins??[],anyBins:e.metadata?.requires?.anyBins??[],env:e.metadata?.requires?.env??[],config:e.metadata?.requires?.config??[],os:e.metadata?.os??[]};return{required:t,...o({always:e.always,required:t,hasLocalBin:e.hasLocalBin,hasRemoteBin:e.hasRemoteBin,hasRemoteAnyBin:e.hasRemoteAnyBin,localPlatform:e.localPlatform,remotePlatforms:e.remotePlatforms,isEnvSatisfied:e.isEnvSatisfied,isConfigSatisfied:e.isConfigSatisfied})}}function c(e){return s({always:e.always,metadata:e.metadata,hasLocalBin:e.hasLocalBin,hasRemoteBin:e.remote?.hasBin,hasRemoteAnyBin:e.remote?.hasAnyBin,localPlatform:e.localPlatform,remotePlatforms:e.remote?.platforms,isEnvSatisfied:e.isEnvSatisfied,isConfigSatisfied:e.isConfigSatisfied})}function l(t){let{emoji:n,homepage:r}=e({metadata:t.metadata,frontmatter:t.frontmatter}),{required:i,missing:a,eligible:o,configChecks:s}=c({always:t.always,metadata:t.metadata??void 0,hasLocalBin:t.hasLocalBin,localPlatform:t.localPlatform,remote:t.remote,isEnvSatisfied:t.isEnvSatisfied,isConfigSatisfied:t.isConfigSatisfied});return{...n?{emoji:n}:{},...r?{homepage:r}:{},required:i,missing:a,requirementsSatisfied:o,configChecks:s}}function u(e){return l({...e,localPlatform:process.platform})}function d(e){return u({always:e.always,metadata:e.entry.metadata,frontmatter:e.entry.frontmatter,hasLocalBin:e.hasLocalBin,remote:e.remote,isEnvSatisfied:e.isEnvSatisfied,isConfigSatisfied:e.isConfigSatisfied})}export{d as t};
|
|
2
|
+
//# sourceMappingURL=entry-status-CoXkbJcX.js.map
|
package/dist/entry.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{$ as e,Z as t,et as n,t as r}from"./subsystem-BLbY429l.js";import{y as i}from"./paths-BjD3T_xq.js";import{t as a}from"./profile-utils-CWmra1aY.js";import{t as o}from"./boolean-D15s2V33.js";import{enableCompileCache as s}from"node:module";import{spawn as c}from"node:child_process";import l from"node:process";import{fileURLToPath as u}from"node:url";import d from"node:os";import f from"node:path";import p from"node:fs";function m(e,t){if(e.includes(`=`)){let[,t]=e.split(`=`,2);return{value:(t??``).trim()||null,consumedNext:!1}}return{value:(t??``).trim()||null,consumedNext:!!t}}function h(e){if(e.length<2)return{ok:!0,profile:null,argv:e};let t=e.slice(0,2),n=null,r=!1,i=!1,o=e.slice(2);for(let e=0;e<o.length;e+=1){let s=o[e];if(s!==void 0){if(i){t.push(s);continue}if(s===`--dev`){if(n&&n!==`dev`)return{ok:!1,error:`Cannot combine --dev with --profile`};r=!0,n=`dev`;continue}if(s===`--profile`||s.startsWith(`--profile=`)){if(r)return{ok:!1,error:`Cannot combine --dev with --profile`};let t=o[e+1],{value:i,consumedNext:c}=m(s,t);if(c&&(e+=1),!i)return{ok:!1,error:`--profile requires a value`};if(!a(i))return{ok:!1,error:`Invalid --profile (use letters, numbers, "_", "-" only)`};n=i;continue}if(!s.startsWith(`-`)){i=!0,t.push(s);continue}t.push(s)}}return{ok:!0,profile:n,argv:t}}function g(e,t,n){let r=e.toLowerCase()===`default`?``:`-${e}`;return f.join(i(t,n),`.qbotclaw${r}`)}function _(e){let t=e.env??process.env,n=e.homedir??d.homedir,r=e.profile.trim();if(!r)return;t.OPENCLAW_PROFILE=r;let i=t.OPENCLAW_STATE_DIR?.trim()||g(r,t,n);t.OPENCLAW_STATE_DIR?.trim()||(t.OPENCLAW_STATE_DIR=i),t.OPENCLAW_CONFIG_PATH?.trim()||(t.OPENCLAW_CONFIG_PATH=f.join(i,`openclaw.json`)),r===`dev`&&!t.OPENCLAW_GATEWAY_PORT?.trim()&&(t.OPENCLAW_GATEWAY_PORT=`19001`)}function v(e){return t(e)}function y(e){if(process.platform!==`win32`||e.length<2)return e;let t=e=>{let t=``;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);r>=32&&r!==127&&(t+=e[n])}return t},n=e=>t(e).replace(/^['"]+|['"]+$/g,``).trim(),r=e=>n(e).replace(/^\\\\\\?\\/,``),i=r(process.execPath),a=i.toLowerCase(),o=f.basename(i).toLowerCase(),s=e=>{if(!e)return!1;let t=r(e);if(!t)return!1;let n=t.toLowerCase();return n===a||f.basename(n)===o||n.endsWith(`\\node.exe`)||n.endsWith(`/node.exe`)||n.includes(`node.exe`)||f.basename(n)===`node.exe`&&p.existsSync(t)},c=[...e];for(let e=1;e<=3&&e<c.length;){if(s(c[e])){c.splice(e,1);continue}e+=1}let l=c.filter((e,t)=>t===0||!s(e));if(l.length<3)return l;let u=[...l];for(let e=2;e<u.length;){let t=u[e];if(!t||t.startsWith(`-`)){e+=1;continue}if(s(t)){u.splice(e,1);continue}break}return u}const b=r(`env`),x=new Set;function S(e,t){if(t)return`<redacted>`;let n=e.replace(/\s+/g,` `).trim();return n.length<=160?n:`${n.slice(0,160)}…`}function C(e){if(process.env.VITEST||x.has(e.key))return;let t=e.value??process.env[e.key];!t||!t.trim()||(x.add(e.key),b.info(`env: ${e.key}=${S(t,e.redact)} (${e.description})`))}function w(){!process.env.ZAI_API_KEY?.trim()&&process.env.Z_AI_API_KEY?.trim()&&(process.env.ZAI_API_KEY=process.env.Z_AI_API_KEY)}function T(e){return o(e)===!0}function E(){w()}function D(e,t){if(!e)return;let n=f.resolve(t,e);try{return p.realpathSync.native(n)}catch{return n}}function O({currentFile:e,argv:t=process.argv,env:n=process.env,cwd:r=process.cwd(),wrapperEntryPairs:i=[]}){let a=D(e,r),o=D(t[1],r);if(a&&o&&a===o)return!0;let s=D(n.pm_exec_path,r);if(a&&s&&a===s)return!0;if(a&&o&&i.length>0){let e=f.basename(a),t=f.basename(o);if(i.some(({wrapperBasename:n,entryBasename:r})=>e===r&&t===n))return!0}return!!(a&&o&&f.basename(a)===f.basename(o))}const k=`OPENCLAW_CLI`;function A(e){return{...e,[k]:`1`}}function j(e=process.env){return e[k]=`1`,e}const M=Symbol.for(`openclaw.warning-filter`);function N(e){return!!(e.code===`DEP0040`&&e.message?.includes(`punycode`)||e.code===`DEP0060`&&e.message?.includes(`util._extend`)||e.name===`ExperimentalWarning`&&e.message?.includes(`SQLite is an experimental feature`))}function P(e){let t=e[0],n=e[1],r=e[2],i,a,o;if(t instanceof Error?(i=t.name,o=t.message,a=t.code):typeof t==`string`&&(o=t),n&&typeof n==`object`&&!Array.isArray(n)){let e=n;typeof e.type==`string`&&(i=e.type),typeof e.code==`string`&&(a=e.code)}else typeof n==`string`&&(i=n),typeof r==`string`&&(a=r);return{name:i,code:a,message:o}}function F(){let e=globalThis;if(e[M]?.installed)return;let t=process.emitWarning.bind(process),n=((...e)=>{if(!N(P(e)))return Reflect.apply(t,process,e)});process.emitWarning=n,e[M]={installed:!0}}const I=l.platform===`win32`?[`SIGTERM`,`SIGINT`,`SIGBREAK`]:[`SIGTERM`,`SIGINT`,`SIGHUP`,`SIGQUIT`];function L(e,{signals:t=I,onSignal:n}={}){let r=new Map;for(let i of t){let t=()=>{n?.(i);try{e.kill(i)}catch{}};try{l.on(i,t),r.set(i,t)}catch{}}let i=()=>{for(let[e,t]of r)l.off(e,t);r.clear()};return e.once(`exit`,i),e.once(`error`,i),{detach:i}}const R=[{wrapperBasename:`openclaw.mjs`,entryBasename:`entry.js`},{wrapperBasename:`openclaw.js`,entryBasename:`entry.js`}];function z(e){let t=e.slice(2).filter(e=>e.length>0&&!e.startsWith(`-`));for(let e=0;e<t.length-1;e+=1)if(t[e]===`secrets`&&t[e+1]===`audit`)return!0;return!1}if(O({currentFile:u(import.meta.url),wrapperEntryPairs:[...R]})){if(l.title=`openclaw`,j(),F(),E(),!T(l.env.NODE_DISABLE_COMPILE_CACHE))try{s()}catch{}z(l.argv)&&(l.env.OPENCLAW_AUTH_STORE_READONLY=`1`),l.argv.includes(`--no-color`)&&(l.env.NO_COLOR=`1`,l.env.FORCE_COLOR=`0`);let t=`--disable-warning=ExperimentalWarning`;function r(){let e=l.env.NODE_OPTIONS??``;if(e.includes(t)||e.includes(`--no-warnings`))return!0;for(let e of l.execArgv)if(e===t||e===`--no-warnings`)return!0;return!1}function i(){if(v(l.argv)||T(l.env.OPENCLAW_NO_RESPAWN)||T(l.env.OPENCLAW_NODE_OPTIONS_READY)||r())return!1;l.env.OPENCLAW_NODE_OPTIONS_READY=`1`;let e=c(l.execPath,[t,...l.execArgv,...l.argv.slice(1)],{stdio:`inherit`,env:l.env});return L(e),e.once(`exit`,(e,t)=>{if(t){l.exitCode=1;return}l.exit(e??1)}),e.once(`error`,e=>{console.error(`[openclaw] Failed to respawn CLI:`,e instanceof Error?e.stack??e.message:e),l.exit(1)}),!0}function a(e){return n(e)?(import(`./version-q3SkUw2K.js`).then(e=>e.r).then(({VERSION:e})=>{console.log(e),l.exit(0)}).catch(e=>{console.error(`[openclaw] Failed to resolve version:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}function o(t){return e(t)?(import(`./program-BrAZTwFr.js`).then(({buildProgram:e})=>{e().outputHelp()}).catch(e=>{console.error(`[openclaw] Failed to display help:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1}),!0):!1}if(l.argv=y(l.argv),!i()){let e=h(l.argv);e.ok||(console.error(`[openclaw] ${e.error}`),l.exit(2)),e.profile&&(_({profile:e.profile}),l.argv=e.argv),!a(l.argv)&&!o(l.argv)&&import(`./run-main-B_YBE_TN.js`).then(({runCli:e})=>e(l.argv)).catch(e=>{console.error(`[openclaw] Failed to start CLI:`,e instanceof Error?e.stack??e.message:e),l.exitCode=1})}}export{C as a,_ as c,T as i,h as l,A as n,E as o,O as r,y as s,F as t};
|
|
3
|
+
//# sourceMappingURL=entry.js.map
|
package/dist/env-D7wNuBx1.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-C5XF2Fy5.js";import{t}from"./boolean-Ch3DfXPy.js";const n=e(`env`),r=new Set;function i(e,t){if(t)return`<redacted>`;let n=e.replace(/\s+/g,` `).trim();return n.length<=160?n:`${n.slice(0,160)}…`}function a(e){if(process.env.VITEST||r.has(e.key))return;let t=e.value??process.env[e.key];!t||!t.trim()||(r.add(e.key),n.info(`env: ${e.key}=${i(t,e.redact)} (${e.description})`))}function o(){!process.env.ZAI_API_KEY?.trim()&&process.env.Z_AI_API_KEY?.trim()&&(process.env.ZAI_API_KEY=process.env.Z_AI_API_KEY)}function s(e){return t(e)===!0}function c(){o()}export{a as n,c as r,s as t};
|
|
2
|
+
//# sourceMappingURL=env-D7wNuBx1.js.map
|