@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{t as e}from"./rolldown-runtime-CNxR59P3.js";import{t}from"./note-Dp-d_utk.js";import{f as n,i as r,p as i}from"./systemd-DbevZh65.js";var a=e({ensureSystemdUserLingerInteractive:()=>o,ensureSystemdUserLingerNonInteractive:()=>s});async function o(e){if(process.platform!==`linux`||e.prompt===!1)return;let a=e.env??process.env,o=e.prompter??{note:t},s=e.title??`Systemd`;if(!await r()){await o.note(`Systemd user services are unavailable. Skipping lingering checks.`,s);return}let c=await i(a);if(!c){await o.note(`Unable to read loginctl linger status. Ensure systemd + loginctl are available.`,s);return}if(c.linger===`yes`)return;let l=e.reason??`Systemd user services stop when you log out or go idle, which kills the Gateway.`,u=e.requireConfirm?`We can enable lingering now (may require sudo; writes /var/lib/systemd/linger).`:`Enabling lingering now (may require sudo; writes /var/lib/systemd/linger).`;if(await o.note(`${l}\n${u}`,s),e.requireConfirm&&o.confirm&&!await o.confirm({message:`Enable systemd lingering for ${c.user}?`,initialValue:!0})){await o.note(`Without lingering, the Gateway will stop when you log out.`,s);return}if((await n({env:a,user:c.user})).ok){await o.note(`Enabled systemd lingering for ${c.user}.`,s);return}let d=await n({env:a,user:c.user,sudoMode:`prompt`});if(d.ok){await o.note(`Enabled systemd lingering for ${c.user}.`,s);return}e.runtime.error(`Failed to enable lingering: ${d.stderr||d.stdout||`unknown error`}`),await o.note(`Run manually: sudo loginctl enable-linger ${c.user}`,s)}async function s(e){if(process.platform!==`linux`)return;let t=e.env??process.env;if(!await r())return;let a=await i(t);if(!(!a||a.linger===`yes`)){if((await n({env:t,user:a.user,sudoMode:`non-interactive`})).ok){e.runtime.log(`Enabled systemd lingering for ${a.user}.`);return}e.runtime.log(`Systemd lingering is disabled for ${a.user}. Run: sudo loginctl enable-linger ${a.user}`)}}export{s as n,a as r,o as t};
|
|
2
|
+
//# sourceMappingURL=systemd-linger-cWKbFNpu.js.map
|
package/dist/table-CR7TFMew.js
CHANGED
|
@@ -3,3 +3,4 @@ import{d as e,l as t}from"./subsystem-BLbY429l.js";import{o as n}from"./utils-CG
|
|
|
3
3
|
`||n===`\r`){x(m.length),n===`\r`&&(p=!0);continue}let i=e(n);h+i>r&&h>0&&x(g),!(h===0&&f(n))&&(m.push(t),h+=i,d(n)&&(g=m.length))}return x(m.length),u.length?!s&&!c?u:u.map(e=>e&&`${s}${e}${c}`):[``]}function s(e){if(e!=null&&!(!Number.isFinite(e)||e<=0))return Math.floor(e)}function c(e=60,t=120){return Math.max(e,process.stdout.columns??t)}function l(t){let c=t.rows.map(e=>{let t={};for(let[r,i]of Object.entries(e))t[r]=n(i);return t}),l=t.border??r(process.platform,process.env);if(l===`none`){let e=t.columns;return`${[e.map(e=>e.header).join(` | `),...c.map(t=>e.map(e=>t[e.key]??``).join(` | `))].join(`
|
|
4
4
|
`)}\n`}let u=Math.max(0,t.padding??1),d=t.columns,f=d.map(t=>({headerW:e(t.header),cellW:Math.max(0,...c.map(n=>e(n[t.key]??``)))})),p=d.map((e,t)=>{let n=f[t],r=Math.max(n?.headerW??0,n?.cellW??0)+u*2,i=e.maxWidth?Math.min(r,e.maxWidth):r;return Math.max(e.minWidth??3,i)}),m=s(t.width),h=d.length+1,g=p.reduce((e,t)=>e+t,0)+h,_=d.map((e,t)=>Math.max(e.minWidth??3,(f[t]?.headerW??0)+u*2,3)),v=d.map((e,t)=>Math.max((f[t]?.headerW??0)+u*2,3));if(m&&g>m){let e=g-m,t=d.map((e,t)=>({i:t,w:p[t]??0})).filter(({i:e})=>!!d[e]?.flex).toSorted((e,t)=>t.w-e.w).map(e=>e.i),n=d.map((e,t)=>({i:t,w:p[t]??0})).filter(({i:e})=>!d[e]?.flex).toSorted((e,t)=>t.w-e.w).map(e=>e.i),r=(t,n)=>{for(;e>0;){let r=!1;for(let i of t)if(!((p[i]??0)<=(n[i]??0))&&(p[i]=(p[i]??0)-1,--e,r=!0,e<=0))break;if(!r)break}};r(t,_),r(t,v),r(n,_),r(n,v)}if(m){let e=d.length+1,t=m-(p.reduce((e,t)=>e+t,0)+e);if(t>0){let e=d.map((e,t)=>({c:e,i:t})).filter(({c:e})=>!!e.flex).map(({i:e})=>e);if(e.length>0){let n=d.map(e=>typeof e.maxWidth==`number`&&e.maxWidth>0?Math.floor(e.maxWidth):1/0);for(;t>0;){let r=!1;for(let i of e)if(!((p[i]??0)>=(n[i]??1/0))&&(p[i]=(p[i]??0)+1,--t,r=!0,t<=0))break;if(!r)break}}}}let y=l===`ascii`?{tl:`+`,tr:`+`,bl:`+`,br:`+`,h:`-`,v:`|`,t:`+`,ml:`+`,m:`+`,mr:`+`,b:`+`}:{tl:`┌`,tr:`┐`,bl:`└`,br:`┘`,h:`─`,v:`│`,t:`┬`,ml:`├`,m:`┼`,mr:`┤`,b:`┴`},b=(e,t,n)=>`${e}${p.map(e=>i(y.h,e)).join(t)}${n}`,x=e=>Math.max(1,p[e]-u*2),S=i(` `,u),C=(e,t=!1)=>{let n=d.map(n=>t?n.header:e[n.key]??``).map((e,t)=>o(e,x(t))),r=Math.max(...n.map(e=>e.length)),i=[];for(let e=0;e<r;e+=1){let t=n.map((t,n)=>`${S}${a(t[e]??``,x(n),d[n]?.align??`left`)}${S}`);i.push(`${y.v}${t.join(y.v)}${y.v}`)}return i},w=[];w.push(b(y.tl,y.t,y.tr)),w.push(...C({},!0)),w.push(b(y.ml,y.m,y.mr));for(let e of c)w.push(...C(e,!1));return w.push(b(y.bl,y.b,y.br)),`${w.join(`
|
|
5
5
|
`)}\n`}export{l as n,c as t};
|
|
6
|
+
//# sourceMappingURL=table-CR7TFMew.js.map
|
package/dist/table-CY440fI1.js
CHANGED
|
@@ -3,3 +3,4 @@ import{d as e,l as t}from"./subsystem-C5XF2Fy5.js";import{s as n}from"./utils-UG
|
|
|
3
3
|
`||n===`\r`){x(m.length),n===`\r`&&(p=!0);continue}let i=e(n);h+i>r&&h>0&&x(g),!(h===0&&f(n))&&(m.push(t),h+=i,d(n)&&(g=m.length))}return x(m.length),u.length?!s&&!c?u:u.map(e=>e&&`${s}${e}${c}`):[``]}function s(e){if(e!=null&&!(!Number.isFinite(e)||e<=0))return Math.floor(e)}function c(e=60,t=120){return Math.max(e,process.stdout.columns??t)}function l(t){let c=t.rows.map(e=>{let t={};for(let[r,i]of Object.entries(e))t[r]=n(i);return t}),l=t.border??r(process.platform,process.env);if(l===`none`){let e=t.columns;return`${[e.map(e=>e.header).join(` | `),...c.map(t=>e.map(e=>t[e.key]??``).join(` | `))].join(`
|
|
4
4
|
`)}\n`}let u=Math.max(0,t.padding??1),d=t.columns,f=d.map(t=>({headerW:e(t.header),cellW:Math.max(0,...c.map(n=>e(n[t.key]??``)))})),p=d.map((e,t)=>{let n=f[t],r=Math.max(n?.headerW??0,n?.cellW??0)+u*2,i=e.maxWidth?Math.min(r,e.maxWidth):r;return Math.max(e.minWidth??3,i)}),m=s(t.width),h=d.length+1,g=p.reduce((e,t)=>e+t,0)+h,_=d.map((e,t)=>Math.max(e.minWidth??3,(f[t]?.headerW??0)+u*2,3)),v=d.map((e,t)=>Math.max((f[t]?.headerW??0)+u*2,3));if(m&&g>m){let e=g-m,t=d.map((e,t)=>({i:t,w:p[t]??0})).filter(({i:e})=>!!d[e]?.flex).toSorted((e,t)=>t.w-e.w).map(e=>e.i),n=d.map((e,t)=>({i:t,w:p[t]??0})).filter(({i:e})=>!d[e]?.flex).toSorted((e,t)=>t.w-e.w).map(e=>e.i),r=(t,n)=>{for(;e>0;){let r=!1;for(let i of t)if(!((p[i]??0)<=(n[i]??0))&&(p[i]=(p[i]??0)-1,--e,r=!0,e<=0))break;if(!r)break}};r(t,_),r(t,v),r(n,_),r(n,v)}if(m){let e=d.length+1,t=m-(p.reduce((e,t)=>e+t,0)+e);if(t>0){let e=d.map((e,t)=>({c:e,i:t})).filter(({c:e})=>!!e.flex).map(({i:e})=>e);if(e.length>0){let n=d.map(e=>typeof e.maxWidth==`number`&&e.maxWidth>0?Math.floor(e.maxWidth):1/0);for(;t>0;){let r=!1;for(let i of e)if(!((p[i]??0)>=(n[i]??1/0))&&(p[i]=(p[i]??0)+1,--t,r=!0,t<=0))break;if(!r)break}}}}let y=l===`ascii`?{tl:`+`,tr:`+`,bl:`+`,br:`+`,h:`-`,v:`|`,t:`+`,ml:`+`,m:`+`,mr:`+`,b:`+`}:{tl:`┌`,tr:`┐`,bl:`└`,br:`┘`,h:`─`,v:`│`,t:`┬`,ml:`├`,m:`┼`,mr:`┤`,b:`┴`},b=(e,t,n)=>`${e}${p.map(e=>i(y.h,e)).join(t)}${n}`,x=e=>Math.max(1,p[e]-u*2),S=i(` `,u),C=(e,t=!1)=>{let n=d.map(n=>t?n.header:e[n.key]??``).map((e,t)=>o(e,x(t))),r=Math.max(...n.map(e=>e.length)),i=[];for(let e=0;e<r;e+=1){let t=n.map((t,n)=>`${S}${a(t[e]??``,x(n),d[n]?.align??`left`)}${S}`);i.push(`${y.v}${t.join(y.v)}${y.v}`)}return i},w=[];w.push(b(y.tl,y.t,y.tr)),w.push(...C({},!0)),w.push(b(y.ml,y.m,y.mr));for(let e of c)w.push(...C(e,!1));return w.push(b(y.bl,y.b,y.br)),`${w.join(`
|
|
5
5
|
`)}\n`}export{l as n,c as t};
|
|
6
|
+
//# sourceMappingURL=table-CY440fI1.js.map
|
package/dist/tables-Brc2lNcB.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./ir-D8Hh84ab.js";import{t}from"./render-DrrPmnMI.js";const n={bold:{open:`**`,close:`**`},italic:{open:`_`,close:`_`},strikethrough:{open:`~~`,close:`~~`},code:{open:"`",close:"`"},code_block:{open:"```\n",close:"```"}};function r(r,i){if(!r||i===`off`)return r;let{ir:a,hasTables:o}=e(r,{linkify:!1,autolink:!1,headingStyle:`none`,blockquotePrefix:``,tableMode:i});return o?t(a,{styleMarkers:n,escapeText:e=>e,buildLink:(e,t)=>{let n=e.href.trim();return!n||!t.slice(e.start,e.end)?null:{start:e.start,end:e.end,open:`[`,close:`](${n})`}}}):r}export{r as t};
|
|
2
|
+
//# sourceMappingURL=tables-Brc2lNcB.js.map
|
package/dist/tables-CrXdLc_6.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./ir-DBWscfBd.js";import{t}from"./render-CBsnn-2A.js";const n={bold:{open:`**`,close:`**`},italic:{open:`_`,close:`_`},strikethrough:{open:`~~`,close:`~~`},code:{open:"`",close:"`"},code_block:{open:"```\n",close:"```"}};function r(r,i){if(!r||i===`off`)return r;let{ir:a,hasTables:o}=e(r,{linkify:!1,autolink:!1,headingStyle:`none`,blockquotePrefix:``,tableMode:i});return o?t(a,{styleMarkers:n,escapeText:e=>e,buildLink:(e,t)=>{let n=e.href.trim();return!n||!t.slice(e.start,e.end)?null:{start:e.start,end:e.end,open:`[`,close:`](${n})`}}}):r}export{r as t};
|
|
2
|
+
//# sourceMappingURL=tables-CrXdLc_6.js.map
|
package/dist/tables-Oieq7UbT.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./ir-Dk7OQ4bA.js";import{t}from"./render-D8OWO2hT.js";const n={bold:{open:`**`,close:`**`},italic:{open:`_`,close:`_`},strikethrough:{open:`~~`,close:`~~`},code:{open:"`",close:"`"},code_block:{open:"```\n",close:"```"}};function r(r,i){if(!r||i===`off`)return r;let{ir:a,hasTables:o}=e(r,{linkify:!1,autolink:!1,headingStyle:`none`,blockquotePrefix:``,tableMode:i});return o?t(a,{styleMarkers:n,escapeText:e=>e,buildLink:(e,t)=>{let n=e.href.trim();return!n||!t.slice(e.start,e.end)?null:{start:e.start,end:e.end,open:`[`,close:`](${n})`}}}):r}export{r as t};
|
|
2
|
+
//# sourceMappingURL=tables-Oieq7UbT.js.map
|
package/dist/tables-btcG3yFT.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./ir-BF0M2kGp.js";import{t}from"./render-BXEUPIHe.js";const n={bold:{open:`**`,close:`**`},italic:{open:`_`,close:`_`},strikethrough:{open:`~~`,close:`~~`},code:{open:"`",close:"`"},code_block:{open:"```\n",close:"```"}};function r(r,i){if(!r||i===`off`)return r;let{ir:a,hasTables:o}=e(r,{linkify:!1,autolink:!1,headingStyle:`none`,blockquotePrefix:``,tableMode:i});return o?t(a,{styleMarkers:n,escapeText:e=>e,buildLink:(e,t)=>{let n=e.href.trim();return!n||!t.slice(e.start,e.end)?null:{start:e.start,end:e.end,open:`[`,close:`](${n})`}}}):r}export{r as t};
|
|
2
|
+
//# sourceMappingURL=tables-btcG3yFT.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{u as e}from"./paths-CrCoPIVK.js";import{ut as t}from"./model-selection-B5JsBS9D.js";import n from"node:fs/promises";var r=class extends Error{constructor(e){super(e),this.status=400,this.name=`ToolInputError`}},i=class extends r{constructor(e){super(e),this.status=403,this.name=`ToolAuthorizationError`}};function a(e){return(t,n=!0)=>{let r=e?.[t];return r===void 0?n:r!==!1}}function o(e){return e.replace(/([A-Z]+)([A-Z][a-z])/g,`$1_$2`).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase()}function s(e,t){if(Object.hasOwn(e,t))return e[t];let n=o(t);if(n!==t&&Object.hasOwn(e,n))return e[n]}function c(e,t,n={}){let{required:i=!1,trim:a=!0,label:o=t,allowEmpty:c=!1}=n,l=s(e,t);if(typeof l!=`string`){if(i)throw new r(`${o} required`);return}let u=a?l.trim():l;if(!u&&!c){if(i)throw new r(`${o} required`);return}return u}function l(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(typeof o==`number`&&Number.isFinite(o))return String(o);if(typeof o==`string`){let e=o.trim();if(e)return e}if(i)throw new r(`${a} required`)}function u(e,t,n={}){let{required:i=!1,label:a=t,integer:o=!1,strict:c=!1}=n,l=s(e,t),u;if(typeof l==`number`&&Number.isFinite(l))u=l;else if(typeof l==`string`){let e=l.trim();if(e){let t=c?Number(e):Number.parseFloat(e);Number.isFinite(t)&&(u=t)}}if(u===void 0){if(i)throw new r(`${a} required`);return}return o?Math.trunc(u):u}function d(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(Array.isArray(o)){let e=o.filter(e=>typeof e==`string`).map(e=>e.trim()).filter(Boolean);if(e.length===0){if(i)throw new r(`${a} required`);return}return e}if(typeof o==`string`){let e=o.trim();if(!e){if(i)throw new r(`${a} required`);return}return[e]}if(i)throw new r(`${a} required`)}function f(e,t){let n=t.emojiKey??`emoji`,i=t.removeKey??`remove`,a=typeof e[i]==`boolean`?e[i]:!1,o=c(e,n,{required:!0,allowEmpty:!0});if(a&&!o)throw new r(t.removeErrorMessage);return{emoji:o,remove:a,isEmpty:!o}}function p(e){return{content:[{type:`text`,text:JSON.stringify(e,null,2)}],details:e}}async function m(e){return await t({content:[{type:`text`,text:e.extraText??`MEDIA:${e.path}`},{type:`image`,data:e.base64,mimeType:e.mimeType}],details:{path:e.path,...e.details}},e.label,e.imageSanitization)}async function h(t){let r=await n.readFile(t.path),i=await e({buffer:r.slice(0,256)})??`image/png`;return await m({label:t.label,path:t.path,base64:r.toString(`base64`),mimeType:i,extraText:t.extraText,details:t.details,imageSanitization:t.imageSanitization})}function g(e){if(e==null||!Array.isArray(e))return;let t=e.filter(e=>typeof e==`object`&&!!e&&typeof e.name==`string`).map(e=>({...e.id!==void 0&&typeof e.id==`string`?{id:e.id}:{},name:e.name,...typeof e.moderated==`boolean`?{moderated:e.moderated}:{},...e.emoji_id===null||typeof e.emoji_id==`string`?{emoji_id:e.emoji_id}:{},...e.emoji_name===null||typeof e.emoji_name==`string`?{emoji_name:e.emoji_name}:{}}));return t.length?t:void 0}function _(e,t){return`Delivering to ${e} requires target${C(t)}`}function v(e,t){return Error(_(e,t))}function y(e,t,n){return`Ambiguous target "${t}" for ${e}. Provide a unique name or an explicit id.${C(n,!0)}`}function b(e,t,n){return Error(y(e,t,n))}function x(e,t,n){return`Unknown target "${t}" for ${e}.${C(n,!0)}`}function S(e,t,n){return Error(x(e,t,n))}function C(e,t=!1){return e?t?` Hint: ${e}`:` ${e}`:``}export{r as a,h as c,u as d,f,c as h,i,p as l,l as m,v as n,a as o,d as p,S as r,m as s,b as t,g as u};
|
|
2
|
+
//# sourceMappingURL=target-errors-CRlevJJ5.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{N as e}from"./auth-profiles-T8DuH3ax.js";import{r as t}from"./windows-spawn-7oINn5ao.js";import n from"node:fs/promises";var r=class extends Error{constructor(e){super(e),this.status=400,this.name=`ToolInputError`}},i=class extends r{constructor(e){super(e),this.status=403,this.name=`ToolAuthorizationError`}};function a(e){return(t,n=!0)=>{let r=e?.[t];return r===void 0?n:r!==!1}}function o(e){return e.replace(/([A-Z]+)([A-Z][a-z])/g,`$1_$2`).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase()}function s(e,t){if(Object.hasOwn(e,t))return e[t];let n=o(t);if(n!==t&&Object.hasOwn(e,n))return e[n]}function c(e,t,n={}){let{required:i=!1,trim:a=!0,label:o=t,allowEmpty:c=!1}=n,l=s(e,t);if(typeof l!=`string`){if(i)throw new r(`${o} required`);return}let u=a?l.trim():l;if(!u&&!c){if(i)throw new r(`${o} required`);return}return u}function l(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(typeof o==`number`&&Number.isFinite(o))return String(o);if(typeof o==`string`){let e=o.trim();if(e)return e}if(i)throw new r(`${a} required`)}function u(e,t,n={}){let{required:i=!1,label:a=t,integer:o=!1,strict:c=!1}=n,l=s(e,t),u;if(typeof l==`number`&&Number.isFinite(l))u=l;else if(typeof l==`string`){let e=l.trim();if(e){let t=c?Number(e):Number.parseFloat(e);Number.isFinite(t)&&(u=t)}}if(u===void 0){if(i)throw new r(`${a} required`);return}return o?Math.trunc(u):u}function d(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(Array.isArray(o)){let e=o.filter(e=>typeof e==`string`).map(e=>e.trim()).filter(Boolean);if(e.length===0){if(i)throw new r(`${a} required`);return}return e}if(typeof o==`string`){let e=o.trim();if(!e){if(i)throw new r(`${a} required`);return}return[e]}if(i)throw new r(`${a} required`)}function f(e,t){let n=t.emojiKey??`emoji`,i=t.removeKey??`remove`,a=typeof e[i]==`boolean`?e[i]:!1,o=c(e,n,{required:!0,allowEmpty:!0});if(a&&!o)throw new r(t.removeErrorMessage);return{emoji:o,remove:a,isEmpty:!o}}function p(e){return{content:[{type:`text`,text:JSON.stringify(e,null,2)}],details:e}}async function m(t){return await e({content:[{type:`text`,text:t.extraText??`MEDIA:${t.path}`},{type:`image`,data:t.base64,mimeType:t.mimeType}],details:{path:t.path,...t.details}},t.label,t.imageSanitization)}async function h(e){let r=await n.readFile(e.path),i=await t({buffer:r.slice(0,256)})??`image/png`;return await m({label:e.label,path:e.path,base64:r.toString(`base64`),mimeType:i,extraText:e.extraText,details:e.details,imageSanitization:e.imageSanitization})}function g(e){if(e==null||!Array.isArray(e))return;let t=e.filter(e=>typeof e==`object`&&!!e&&typeof e.name==`string`).map(e=>({...e.id!==void 0&&typeof e.id==`string`?{id:e.id}:{},name:e.name,...typeof e.moderated==`boolean`?{moderated:e.moderated}:{},...e.emoji_id===null||typeof e.emoji_id==`string`?{emoji_id:e.emoji_id}:{},...e.emoji_name===null||typeof e.emoji_name==`string`?{emoji_name:e.emoji_name}:{}}));return t.length?t:void 0}function _(e,t){return`Delivering to ${e} requires target${C(t)}`}function v(e,t){return Error(_(e,t))}function y(e,t,n){return`Ambiguous target "${t}" for ${e}. Provide a unique name or an explicit id.${C(n,!0)}`}function b(e,t,n){return Error(y(e,t,n))}function x(e,t,n){return`Unknown target "${t}" for ${e}.${C(n,!0)}`}function S(e,t,n){return Error(x(e,t,n))}function C(e,t=!1){return e?t?` Hint: ${e}`:` ${e}`:``}export{r as a,h as c,u as d,f,c as h,i,p as l,l as m,v as n,a as o,d as p,S as r,m as s,b as t,g as u};
|
|
2
|
+
//# sourceMappingURL=target-errors-CgWAJOam.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{u as e}from"./paths-piJASC5k.js";import{lt as t}from"./model-selection-vfhBuN9O.js";import n from"node:fs/promises";var r=class extends Error{constructor(e){super(e),this.status=400,this.name=`ToolInputError`}},i=class extends r{constructor(e){super(e),this.status=403,this.name=`ToolAuthorizationError`}};function a(e){return(t,n=!0)=>{let r=e?.[t];return r===void 0?n:r!==!1}}function o(e){return e.replace(/([A-Z]+)([A-Z][a-z])/g,`$1_$2`).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase()}function s(e,t){if(Object.hasOwn(e,t))return e[t];let n=o(t);if(n!==t&&Object.hasOwn(e,n))return e[n]}function c(e,t,n={}){let{required:i=!1,trim:a=!0,label:o=t,allowEmpty:c=!1}=n,l=s(e,t);if(typeof l!=`string`){if(i)throw new r(`${o} required`);return}let u=a?l.trim():l;if(!u&&!c){if(i)throw new r(`${o} required`);return}return u}function l(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(typeof o==`number`&&Number.isFinite(o))return String(o);if(typeof o==`string`){let e=o.trim();if(e)return e}if(i)throw new r(`${a} required`)}function u(e,t,n={}){let{required:i=!1,label:a=t,integer:o=!1,strict:c=!1}=n,l=s(e,t),u;if(typeof l==`number`&&Number.isFinite(l))u=l;else if(typeof l==`string`){let e=l.trim();if(e){let t=c?Number(e):Number.parseFloat(e);Number.isFinite(t)&&(u=t)}}if(u===void 0){if(i)throw new r(`${a} required`);return}return o?Math.trunc(u):u}function d(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(Array.isArray(o)){let e=o.filter(e=>typeof e==`string`).map(e=>e.trim()).filter(Boolean);if(e.length===0){if(i)throw new r(`${a} required`);return}return e}if(typeof o==`string`){let e=o.trim();if(!e){if(i)throw new r(`${a} required`);return}return[e]}if(i)throw new r(`${a} required`)}function f(e,t){let n=t.emojiKey??`emoji`,i=t.removeKey??`remove`,a=typeof e[i]==`boolean`?e[i]:!1,o=c(e,n,{required:!0,allowEmpty:!0});if(a&&!o)throw new r(t.removeErrorMessage);return{emoji:o,remove:a,isEmpty:!o}}function p(e){return{content:[{type:`text`,text:JSON.stringify(e,null,2)}],details:e}}async function m(e){return await t({content:[{type:`text`,text:e.extraText??`MEDIA:${e.path}`},{type:`image`,data:e.base64,mimeType:e.mimeType}],details:{path:e.path,...e.details}},e.label,e.imageSanitization)}async function h(t){let r=await n.readFile(t.path),i=await e({buffer:r.slice(0,256)})??`image/png`;return await m({label:t.label,path:t.path,base64:r.toString(`base64`),mimeType:i,extraText:t.extraText,details:t.details,imageSanitization:t.imageSanitization})}function g(e){if(e==null||!Array.isArray(e))return;let t=e.filter(e=>typeof e==`object`&&!!e&&typeof e.name==`string`).map(e=>({...e.id!==void 0&&typeof e.id==`string`?{id:e.id}:{},name:e.name,...typeof e.moderated==`boolean`?{moderated:e.moderated}:{},...e.emoji_id===null||typeof e.emoji_id==`string`?{emoji_id:e.emoji_id}:{},...e.emoji_name===null||typeof e.emoji_name==`string`?{emoji_name:e.emoji_name}:{}}));return t.length?t:void 0}function _(e,t){return`Delivering to ${e} requires target${C(t)}`}function v(e,t){return Error(_(e,t))}function y(e,t,n){return`Ambiguous target "${t}" for ${e}. Provide a unique name or an explicit id.${C(n,!0)}`}function b(e,t,n){return Error(y(e,t,n))}function x(e,t,n){return`Unknown target "${t}" for ${e}.${C(n,!0)}`}function S(e,t,n){return Error(x(e,t,n))}function C(e,t=!1){return e?t?` Hint: ${e}`:` ${e}`:``}export{r as a,h as c,u as d,f,c as h,i,p as l,l as m,v as n,a as o,d as p,S as r,m as s,b as t,g as u};
|
|
2
|
+
//# sourceMappingURL=target-errors-CpKXh2RS.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Wt as e}from"./model-selection-BlC_rXAN.js";import{r as t}from"./windows-spawn-AB7ItGAE.js";import n from"node:fs/promises";var r=class extends Error{constructor(e){super(e),this.status=400,this.name=`ToolInputError`}},i=class extends r{constructor(e){super(e),this.status=403,this.name=`ToolAuthorizationError`}};function a(e){return(t,n=!0)=>{let r=e?.[t];return r===void 0?n:r!==!1}}function o(e){return e.replace(/([A-Z]+)([A-Z][a-z])/g,`$1_$2`).replace(/([a-z0-9])([A-Z])/g,`$1_$2`).toLowerCase()}function s(e,t){if(Object.hasOwn(e,t))return e[t];let n=o(t);if(n!==t&&Object.hasOwn(e,n))return e[n]}function c(e,t,n={}){let{required:i=!1,trim:a=!0,label:o=t,allowEmpty:c=!1}=n,l=s(e,t);if(typeof l!=`string`){if(i)throw new r(`${o} required`);return}let u=a?l.trim():l;if(!u&&!c){if(i)throw new r(`${o} required`);return}return u}function l(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(typeof o==`number`&&Number.isFinite(o))return String(o);if(typeof o==`string`){let e=o.trim();if(e)return e}if(i)throw new r(`${a} required`)}function u(e,t,n={}){let{required:i=!1,label:a=t,integer:o=!1,strict:c=!1}=n,l=s(e,t),u;if(typeof l==`number`&&Number.isFinite(l))u=l;else if(typeof l==`string`){let e=l.trim();if(e){let t=c?Number(e):Number.parseFloat(e);Number.isFinite(t)&&(u=t)}}if(u===void 0){if(i)throw new r(`${a} required`);return}return o?Math.trunc(u):u}function d(e,t,n={}){let{required:i=!1,label:a=t}=n,o=s(e,t);if(Array.isArray(o)){let e=o.filter(e=>typeof e==`string`).map(e=>e.trim()).filter(Boolean);if(e.length===0){if(i)throw new r(`${a} required`);return}return e}if(typeof o==`string`){let e=o.trim();if(!e){if(i)throw new r(`${a} required`);return}return[e]}if(i)throw new r(`${a} required`)}function f(e,t){let n=t.emojiKey??`emoji`,i=t.removeKey??`remove`,a=typeof e[i]==`boolean`?e[i]:!1,o=c(e,n,{required:!0,allowEmpty:!0});if(a&&!o)throw new r(t.removeErrorMessage);return{emoji:o,remove:a,isEmpty:!o}}function p(e){return{content:[{type:`text`,text:JSON.stringify(e,null,2)}],details:e}}async function m(t){return await e({content:[{type:`text`,text:t.extraText??`MEDIA:${t.path}`},{type:`image`,data:t.base64,mimeType:t.mimeType}],details:{path:t.path,...t.details}},t.label,t.imageSanitization)}async function h(e){let r=await n.readFile(e.path),i=await t({buffer:r.slice(0,256)})??`image/png`;return await m({label:e.label,path:e.path,base64:r.toString(`base64`),mimeType:i,extraText:e.extraText,details:e.details,imageSanitization:e.imageSanitization})}function g(e){if(e==null||!Array.isArray(e))return;let t=e.filter(e=>typeof e==`object`&&!!e&&typeof e.name==`string`).map(e=>({...e.id!==void 0&&typeof e.id==`string`?{id:e.id}:{},name:e.name,...typeof e.moderated==`boolean`?{moderated:e.moderated}:{},...e.emoji_id===null||typeof e.emoji_id==`string`?{emoji_id:e.emoji_id}:{},...e.emoji_name===null||typeof e.emoji_name==`string`?{emoji_name:e.emoji_name}:{}}));return t.length?t:void 0}function _(e,t){return`Delivering to ${e} requires target${C(t)}`}function v(e,t){return Error(_(e,t))}function y(e,t,n){return`Ambiguous target "${t}" for ${e}. Provide a unique name or an explicit id.${C(n,!0)}`}function b(e,t,n){return Error(y(e,t,n))}function x(e,t,n){return`Unknown target "${t}" for ${e}.${C(n,!0)}`}function S(e,t,n){return Error(x(e,t,n))}function C(e,t=!1){return e?t?` Hint: ${e}`:` ${e}`:``}export{r as a,h as c,u as d,f,c as h,i,p as l,l as m,v as n,a as o,d as p,S as r,m as s,b as t,g as u};
|
|
2
|
+
//# sourceMappingURL=target-errors-a35Md15n.js.map
|
package/dist/targets-4EaxWBal.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=/^-?\d+$/,t=/^[A-Za-z0-9_]{5,}$/i;function n(e){let t=e.trim(),n=!1;for(;;){let e=/^(telegram|tg):/i.test(t)?(n=!0,t.replace(/^(telegram|tg):/i,``).trim()):n&&/^group:/i.test(t)?t.replace(/^group:/i,``).trim():t;if(e===t)return t;t=e}}function r(t){let r=n(t);if(r&&e.test(r))return r}function i(t){return e.test(t.trim())}function a(e){let r=n(e);if(!r)return;if(i(r))return r;let a=/^(?:https?:\/\/)?t\.me\/([A-Za-z0-9_]+)$/i.exec(r);if(a?.[1])return`@${a[1]}`;if(r.startsWith(`@`)){let e=r.slice(1);return!e||!t.test(e)?void 0:`@${e}`}if(t.test(r))return`@${r}`}function o(e){let t=e.trim();return t&&i(t)?t.startsWith(`-`)?`group`:`direct`:`unknown`}function s(e){let t=n(e),r=/^(.+?):topic:(\d+)$/.exec(t);if(r)return{chatId:r[1],messageThreadId:Number.parseInt(r[2],10),chatType:o(r[1])};let i=/^(.+):(\d+)$/.exec(t);return i?{chatId:i[1],messageThreadId:Number.parseInt(i[2],10),chatType:o(i[1])}:{chatId:t,chatType:o(t)}}function c(e){return s(e).chatType}export{c as i,a as n,s as r,r as t};
|
|
2
|
+
//# sourceMappingURL=targets-4EaxWBal.js.map
|
package/dist/targets-BJTo7bqu.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e,t){return`${e}:${t}`.toLowerCase()}function t(t,n,r){return{kind:t,id:n,raw:r,normalized:e(t,n)}}function n(e){if(!e.pattern.test(e.candidate))throw Error(e.errorMessage);return e.candidate}function r(e){let n=e.raw.match(e.mentionPattern);if(n?.[1])return t(e.kind,n[1],e.raw)}function i(e){if(!e.raw.startsWith(e.prefix))return;let n=e.raw.slice(e.prefix.length).trim();return n?t(e.kind,n,e.raw):void 0}function a(e){for(let t of e.prefixes){let n=i({raw:e.raw,prefix:t.prefix,kind:t.kind});if(n)return n}}function o(e){if(e.raw.startsWith(`@`))return t(`user`,n({candidate:e.raw.slice(1).trim(),pattern:e.pattern,errorMessage:e.errorMessage}),e.raw)}function s(e){return r({raw:e.raw,mentionPattern:e.mentionPattern,kind:`user`})||a({raw:e.raw,prefixes:e.prefixes})||o({raw:e.raw,pattern:e.atUserPattern,errorMessage:e.atUserErrorMessage})}function c(e){let t=e.kind;if(!e.target)throw Error(`${e.platform} ${t} id is required.`);if(e.target.kind!==e.kind)throw Error(`${e.platform} ${t} id is required (use ${t}:<id>).`);return e.target.id}export{c as i,n,s as r,t};
|
|
2
|
+
//# sourceMappingURL=targets-BJTo7bqu.js.map
|
package/dist/targets-BYVMrXDf.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=/^-?\d+$/,t=/^[A-Za-z0-9_]{5,}$/i;function n(e){let t=e.trim(),n=!1;for(;;){let e=/^(telegram|tg):/i.test(t)?(n=!0,t.replace(/^(telegram|tg):/i,``).trim()):n&&/^group:/i.test(t)?t.replace(/^group:/i,``).trim():t;if(e===t)return t;t=e}}function r(t){let r=n(t);if(r&&e.test(r))return r}function i(t){return e.test(t.trim())}function a(e){let r=n(e);if(!r)return;if(i(r))return r;let a=/^(?:https?:\/\/)?t\.me\/([A-Za-z0-9_]+)$/i.exec(r);if(a?.[1])return`@${a[1]}`;if(r.startsWith(`@`)){let e=r.slice(1);return!e||!t.test(e)?void 0:`@${e}`}if(t.test(r))return`@${r}`}function o(e){let t=e.trim();return t&&i(t)?t.startsWith(`-`)?`group`:`direct`:`unknown`}function s(e){let t=n(e),r=/^(.+?):topic:(\d+)$/.exec(t);if(r)return{chatId:r[1],messageThreadId:Number.parseInt(r[2],10),chatType:o(r[1])};let i=/^(.+):(\d+)$/.exec(t);return i?{chatId:i[1],messageThreadId:Number.parseInt(i[2],10),chatType:o(i[1])}:{chatId:t,chatType:o(t)}}function c(e){return s(e).chatType}export{c as i,a as n,s as r,r as t};
|
|
2
|
+
//# sourceMappingURL=targets-BYVMrXDf.js.map
|
package/dist/targets-Bq6rS6-Z.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e,t){return`${e}:${t}`.toLowerCase()}function t(t,n,r){return{kind:t,id:n,raw:r,normalized:e(t,n)}}function n(e){if(!e.pattern.test(e.candidate))throw Error(e.errorMessage);return e.candidate}function r(e){let n=e.raw.match(e.mentionPattern);if(n?.[1])return t(e.kind,n[1],e.raw)}function i(e){if(!e.raw.startsWith(e.prefix))return;let n=e.raw.slice(e.prefix.length).trim();return n?t(e.kind,n,e.raw):void 0}function a(e){for(let t of e.prefixes){let n=i({raw:e.raw,prefix:t.prefix,kind:t.kind});if(n)return n}}function o(e){if(e.raw.startsWith(`@`))return t(`user`,n({candidate:e.raw.slice(1).trim(),pattern:e.pattern,errorMessage:e.errorMessage}),e.raw)}function s(e){return r({raw:e.raw,mentionPattern:e.mentionPattern,kind:`user`})||a({raw:e.raw,prefixes:e.prefixes})||o({raw:e.raw,pattern:e.atUserPattern,errorMessage:e.atUserErrorMessage})}function c(e){let t=e.kind;if(!e.target)throw Error(`${e.platform} ${t} id is required.`);if(e.target.kind!==e.kind)throw Error(`${e.platform} ${t} id is required (use ${t}:<id>).`);return e.target.id}export{c as i,n,s as r,t};
|
|
2
|
+
//# sourceMappingURL=targets-Bq6rS6-Z.js.map
|
package/dist/targets-CL5fYQi7.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e,t){return`${e}:${t}`.toLowerCase()}function t(t,n,r){return{kind:t,id:n,raw:r,normalized:e(t,n)}}function n(e){if(!e.pattern.test(e.candidate))throw Error(e.errorMessage);return e.candidate}function r(e){let n=e.raw.match(e.mentionPattern);if(n?.[1])return t(e.kind,n[1],e.raw)}function i(e){if(!e.raw.startsWith(e.prefix))return;let n=e.raw.slice(e.prefix.length).trim();return n?t(e.kind,n,e.raw):void 0}function a(e){for(let t of e.prefixes){let n=i({raw:e.raw,prefix:t.prefix,kind:t.kind});if(n)return n}}function o(e){if(e.raw.startsWith(`@`))return t(`user`,n({candidate:e.raw.slice(1).trim(),pattern:e.pattern,errorMessage:e.errorMessage}),e.raw)}function s(e){return r({raw:e.raw,mentionPattern:e.mentionPattern,kind:`user`})||a({raw:e.raw,prefixes:e.prefixes})||o({raw:e.raw,pattern:e.atUserPattern,errorMessage:e.atUserErrorMessage})}function c(e){let t=e.kind;if(!e.target)throw Error(`${e.platform} ${t} id is required.`);if(e.target.kind!==e.kind)throw Error(`${e.platform} ${t} id is required (use ${t}:<id>).`);return e.target.id}export{c as i,n,s as r,t};
|
|
2
|
+
//# sourceMappingURL=targets-CL5fYQi7.js.map
|
package/dist/targets-fozeWOOg.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=/^-?\d+$/,t=/^[A-Za-z0-9_]{5,}$/i;function n(e){let t=e.trim(),n=!1;for(;;){let e=/^(telegram|tg):/i.test(t)?(n=!0,t.replace(/^(telegram|tg):/i,``).trim()):n&&/^group:/i.test(t)?t.replace(/^group:/i,``).trim():t;if(e===t)return t;t=e}}function r(t){let r=n(t);if(r&&e.test(r))return r}function i(t){return e.test(t.trim())}function a(e){let r=n(e);if(!r)return;if(i(r))return r;let a=/^(?:https?:\/\/)?t\.me\/([A-Za-z0-9_]+)$/i.exec(r);if(a?.[1])return`@${a[1]}`;if(r.startsWith(`@`)){let e=r.slice(1);return!e||!t.test(e)?void 0:`@${e}`}if(t.test(r))return`@${r}`}function o(e){let t=e.trim();return t&&i(t)?t.startsWith(`-`)?`group`:`direct`:`unknown`}function s(e){let t=n(e),r=/^(.+?):topic:(\d+)$/.exec(t);if(r)return{chatId:r[1],messageThreadId:Number.parseInt(r[2],10),chatType:o(r[1])};let i=/^(.+):(\d+)$/.exec(t);return i?{chatId:i[1],messageThreadId:Number.parseInt(i[2],10),chatType:o(i[1])}:{chatId:t,chatType:o(t)}}function c(e){return s(e).chatType}export{c as i,a as n,s as r,r as t};
|
|
2
|
+
//# sourceMappingURL=targets-fozeWOOg.js.map
|
package/dist/targets-m_41k_Mv.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=/^-?\d+$/,t=/^[A-Za-z0-9_]{5,}$/i;function n(e){let t=e.trim(),n=!1;for(;;){let e=/^(telegram|tg):/i.test(t)?(n=!0,t.replace(/^(telegram|tg):/i,``).trim()):n&&/^group:/i.test(t)?t.replace(/^group:/i,``).trim():t;if(e===t)return t;t=e}}function r(t){let r=n(t);if(r&&e.test(r))return r}function i(t){return e.test(t.trim())}function a(e){let r=n(e);if(!r)return;if(i(r))return r;let a=/^(?:https?:\/\/)?t\.me\/([A-Za-z0-9_]+)$/i.exec(r);if(a?.[1])return`@${a[1]}`;if(r.startsWith(`@`)){let e=r.slice(1);return!e||!t.test(e)?void 0:`@${e}`}if(t.test(r))return`@${r}`}function o(e){let t=e.trim();return t&&i(t)?t.startsWith(`-`)?`group`:`direct`:`unknown`}function s(e){let t=n(e),r=/^(.+?):topic:(\d+)$/.exec(t);if(r)return{chatId:r[1],messageThreadId:Number.parseInt(r[2],10),chatType:o(r[1])};let i=/^(.+):(\d+)$/.exec(t);return i?{chatId:i[1],messageThreadId:Number.parseInt(i[2],10),chatType:o(i[1])}:{chatId:t,chatType:o(t)}}function c(e){return s(e).chatType}export{c as i,a as n,s as r,r as t};
|
|
2
|
+
//# sourceMappingURL=targets-m_41k_Mv.js.map
|
package/dist/telegram/audit.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){if(!e||typeof e!=`object`)return{groupIds:[],unresolvedGroups:0,hasWildcardUnmentionedGroups:!1};let t=e[`*`]?.requireMention===!1&&e[`*`]?.enabled!==!1,n=[],r=0;for(let[t,i]of Object.entries(e)){if(t===`*`||!i||typeof i!=`object`||i.enabled===!1||i.requireMention!==!1)continue;let e=String(t).trim();e&&(/^-?\d+$/.test(e)?n.push(e):r+=1)}return n.sort((e,t)=>e.localeCompare(t)),{groupIds:n,unresolvedGroups:r,hasWildcardUnmentionedGroups:t}}let t=null;function n(){return t??=import(`../audit-membership-runtime-BpRsMj5-.js`),t}async function r(e){let t=Date.now(),r=e.token?.trim()??``;if(!r||e.groupIds.length===0)return{ok:!0,checkedGroups:0,unresolvedGroups:0,hasWildcardUnmentionedGroups:!1,groups:[],elapsedMs:Date.now()-t};let{auditTelegramGroupMembershipImpl:i}=await n();return{...await i({...e,token:r}),elapsedMs:Date.now()-t}}export{r as auditTelegramGroupMembership,e as collectTelegramUnmentionedGroupIds};
|
|
2
|
+
//# sourceMappingURL=audit.js.map
|
package/dist/token-DnTmiyJu.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{a as e,i as t,t as n}from"./secret-file-DuWm26jS.js";const r=`main`,i=/^[a-z0-9][a-z0-9_-]{0,63}$/i,a=/[^a-z0-9_-]+/g,o=/^-+/,s=/-+$/;function c(e){let t=(e??``).trim();return t?i.test(t)?t.toLowerCase():t.toLowerCase().replace(a,`-`).replace(o,``).replace(s,``).slice(0,64)||`main`:r}const l=/^\$\{([A-Z][A-Z0-9_]{0,127})\}$/;function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function d(e){return!u(e)||Object.keys(e).length!==3?!1:(e.source===`env`||e.source===`file`||e.source===`exec`)&&typeof e.provider==`string`&&e.provider.trim().length>0&&typeof e.id==`string`&&e.id.trim().length>0}function f(e){return u(e)?(e.source===`env`||e.source===`file`||e.source===`exec`)&&typeof e.id==`string`&&e.id.trim().length>0&&e.provider===void 0:!1}function p(e,t=`default`){if(typeof e!=`string`)return null;let n=l.exec(e.trim());return n?{source:`env`,provider:t.trim()||`default`,id:n[1]}:null}function m(e,t){if(d(e))return e;if(f(e)){let n=e.source===`env`?t?.env??`default`:e.source===`file`?t?.file??`default`:t?.exec??`default`;return{source:e.source,provider:n,id:e.id}}return p(e,t?.env)||null}function h(e,t){return g(e)?!0:m(e,t)!==null}function g(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function _(e){return`${e.source}:${e.provider}:${e.id}`}function v(e){let{ref:t}=b({value:e.value,refValue:e.refValue,defaults:e.defaults});if(t)throw Error(`${e.path}: unresolved SecretRef "${_(t)}". Resolve this command against an active gateway runtime snapshot before reading it.`)}function y(e){let t=g(e.value);if(t)return t;v(e)}function b(e){let t=m(e.refValue,e.defaults),n=t?null:m(e.value,e.defaults);return{explicitRef:t,inlineRef:n,ref:t??n}}function x(r,i={}){let a=e(i.accountId),o=r?.channels?.telegram,s=(t=>{let n=o?.accounts;if(!n||typeof n!=`object`||Array.isArray(n))return;let r=n[t];if(r)return r;let i=Object.keys(n).find(n=>e(n)===t);return i?n[i]:void 0})(a===`default`?t:a),c=s?.tokenFile?.trim();if(c){let e=n(c,`channels.telegram.accounts.${a}.tokenFile`,{rejectSymlink:!0});return e?{token:e,source:`tokenFile`}:(i.logMissingFile?.(`channels.telegram.accounts.${a}.tokenFile not found or unreadable: ${c}`),{token:``,source:`none`})}let l=y({value:s?.botToken,path:`channels.telegram.accounts.${a}.botToken`});if(l)return{token:l,source:`config`};let u=a===t,d=o?.tokenFile?.trim();if(d){let e=n(d,`channels.telegram.tokenFile`,{rejectSymlink:!0});return e?{token:e,source:`tokenFile`}:(i.logMissingFile?.(`channels.telegram.tokenFile not found or unreadable: ${d}`),{token:``,source:`none`})}let f=y({value:o?.botToken,path:`channels.telegram.botToken`});if(f)return{token:f,source:`config`};let p=u?(i.envToken??process.env.TELEGRAM_BOT_TOKEN)?.trim():``;return p?{token:p,source:`env`}:{token:``,source:`none`}}export{r as a,y as i,m as n,c as o,h as r,x as t};
|
|
2
|
+
//# sourceMappingURL=token-DnTmiyJu.js.map
|
package/dist/tokens-B2fq-rL6.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{u as e}from"./logger-DwWqfo66.js";const t=`HEARTBEAT_OK`,n=`NO_REPLY`,r=new Map,i=new Map;function a(t){let n=r.get(t);if(n)return n;let i=e(t),a=RegExp(`^\\s*${i}\\s*$`);return r.set(t,a),a}function o(t){let n=i.get(t);if(n)return n;let r=e(t),a=RegExp(`(?:^|\\s+|\\*+)${r}\\s*$`);return i.set(t,a),a}function s(e,t=n){return e?a(t).test(e):!1}function c(e,t=n){return e.replace(o(t),``).trim()}function l(e,t=n){if(!e)return!1;let r=e.trimStart();if(!r||r!==r.toUpperCase())return!1;let i=r.toUpperCase();if(!i||i.length<2||/[^A-Z_]/.test(i))return!1;let a=t.toUpperCase();return a.startsWith(i)?i.includes(`_`)?!0:a===`NO_REPLY`&&i===`NO`:!1}export{c as a,s as i,n,l as r,t};
|
|
2
|
+
//# sourceMappingURL=tokens-B2fq-rL6.js.map
|
package/dist/tokens-CL2fSjGl.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{o as e}from"./utils-D3t-vPka.js";const t=`HEARTBEAT_OK`,n=`NO_REPLY`,r=new Map,i=new Map;function a(t){let n=r.get(t);if(n)return n;let i=e(t),a=RegExp(`^\\s*${i}\\s*$`);return r.set(t,a),a}function o(t){let n=i.get(t);if(n)return n;let r=e(t),a=RegExp(`(?:^|\\s+|\\*+)${r}\\s*$`);return i.set(t,a),a}function s(e,t=n){return e?a(t).test(e):!1}function c(e,t=n){return e.replace(o(t),``).trim()}function l(e,t=n){if(!e)return!1;let r=e.trimStart();if(!r||r!==r.toUpperCase())return!1;let i=r.toUpperCase();if(!i||i.length<2||/[^A-Z_]/.test(i))return!1;let a=t.toUpperCase();return a.startsWith(i)?i.includes(`_`)?!0:a===`NO_REPLY`&&i===`NO`:!1}export{c as a,s as i,n,l as r,t};
|
|
2
|
+
//# sourceMappingURL=tokens-CL2fSjGl.js.map
|
package/dist/tokens-DRM8vzJx.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{c as e}from"./utils-CGdo13HV.js";const t=`HEARTBEAT_OK`,n=`NO_REPLY`,r=new Map,i=new Map;function a(t){let n=r.get(t);if(n)return n;let i=e(t),a=RegExp(`^\\s*${i}\\s*$`);return r.set(t,a),a}function o(t){let n=i.get(t);if(n)return n;let r=e(t),a=RegExp(`(?:^|\\s+|\\*+)${r}\\s*$`);return i.set(t,a),a}function s(e,t=n){return e?a(t).test(e):!1}function c(e,t=n){return e.replace(o(t),``).trim()}function l(e,t=n){if(!e)return!1;let r=e.trimStart();if(!r||r!==r.toUpperCase())return!1;let i=r.toUpperCase();if(!i||i.length<2||/[^A-Z_]/.test(i))return!1;let a=t.toUpperCase();return a.startsWith(i)?i.includes(`_`)?!0:a===`NO_REPLY`&&i===`NO`:!1}export{c as a,s as i,n,l as r,t};
|
|
2
|
+
//# sourceMappingURL=tokens-DRM8vzJx.js.map
|
package/dist/tokens-XGbQGn67.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{l as e}from"./utils-UGOV_184.js";const t=`HEARTBEAT_OK`,n=`NO_REPLY`,r=new Map,i=new Map;function a(t){let n=r.get(t);if(n)return n;let i=e(t),a=RegExp(`^\\s*${i}\\s*$`);return r.set(t,a),a}function o(t){let n=i.get(t);if(n)return n;let r=e(t),a=RegExp(`(?:^|\\s+|\\*+)${r}\\s*$`);return i.set(t,a),a}function s(e,t=n){return e?a(t).test(e):!1}function c(e,t=n){return e.replace(o(t),``).trim()}function l(e,t=n){if(!e)return!1;let r=e.trimStart();if(!r||r!==r.toUpperCase())return!1;let i=r.toUpperCase();if(!i||i.length<2||/[^A-Z_]/.test(i))return!1;let a=t.toUpperCase();return a.startsWith(i)?i.includes(`_`)?!0:a===`NO_REPLY`&&i===`NO`:!1}export{c as a,s as i,n,l as r,t};
|
|
2
|
+
//# sourceMappingURL=tokens-XGbQGn67.js.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import{b as e}from"./utils-CGdo13HV.js";import{r as t}from"./redact-CnRxK70G.js";var n={version:1,fallback:{emoji:`🧩`,detailKeys:[`command`,`path`,`url`,`targetUrl`,`targetId`,`ref`,`element`,`node`,`nodeId`,`id`,`requestId`,`to`,`channelId`,`guildId`,`userId`,`name`,`query`,`pattern`,`messageId`]},tools:{bash:{emoji:`🛠️`,title:`Bash`,detailKeys:[`command`]},process:{emoji:`🧰`,title:`Process`,detailKeys:[`sessionId`]},read:{emoji:`📖`,title:`Read`,detailKeys:[`path`]},write:{emoji:`✍️`,title:`Write`,detailKeys:[`path`]},edit:{emoji:`📝`,title:`Edit`,detailKeys:[`path`]},attach:{emoji:`📎`,title:`Attach`,detailKeys:[`path`,`url`,`fileName`]},browser:{emoji:`🌐`,title:`Browser`,actions:{status:{label:`status`},start:{label:`start`},stop:{label:`stop`},tabs:{label:`tabs`},open:{label:`open`,detailKeys:[`targetUrl`]},focus:{label:`focus`,detailKeys:[`targetId`]},close:{label:`close`,detailKeys:[`targetId`]},snapshot:{label:`snapshot`,detailKeys:[`targetUrl`,`targetId`,`ref`,`element`,`format`]},screenshot:{label:`screenshot`,detailKeys:[`targetUrl`,`targetId`,`ref`,`element`]},navigate:{label:`navigate`,detailKeys:[`targetUrl`,`targetId`]},console:{label:`console`,detailKeys:[`level`,`targetId`]},pdf:{label:`pdf`,detailKeys:[`targetId`]},upload:{label:`upload`,detailKeys:[`paths`,`ref`,`inputRef`,`element`,`targetId`]},dialog:{label:`dialog`,detailKeys:[`accept`,`promptText`,`targetId`]},act:{label:`act`,detailKeys:[`request.kind`,`request.ref`,`request.selector`,`request.text`,`request.value`]}}},canvas:{emoji:`🖼️`,title:`Canvas`,actions:{present:{label:`present`,detailKeys:[`target`,`node`,`nodeId`]},hide:{label:`hide`,detailKeys:[`node`,`nodeId`]},navigate:{label:`navigate`,detailKeys:[`url`,`node`,`nodeId`]},eval:{label:`eval`,detailKeys:[`javaScript`,`node`,`nodeId`]},snapshot:{label:`snapshot`,detailKeys:[`format`,`node`,`nodeId`]},a2ui_push:{label:`A2UI push`,detailKeys:[`jsonlPath`,`node`,`nodeId`]},a2ui_reset:{label:`A2UI reset`,detailKeys:[`node`,`nodeId`]}}},nodes:{emoji:`📱`,title:`Nodes`,actions:{status:{label:`status`},describe:{label:`describe`,detailKeys:[`node`,`nodeId`]},pending:{label:`pending`},approve:{label:`approve`,detailKeys:[`requestId`]},reject:{label:`reject`,detailKeys:[`requestId`]},notify:{label:`notify`,detailKeys:[`node`,`nodeId`,`title`,`body`]},camera_snap:{label:`camera snap`,detailKeys:[`node`,`nodeId`,`facing`,`deviceId`]},camera_list:{label:`camera list`,detailKeys:[`node`,`nodeId`]},camera_clip:{label:`camera clip`,detailKeys:[`node`,`nodeId`,`facing`,`duration`,`durationMs`]},screen_record:{label:`screen record`,detailKeys:[`node`,`nodeId`,`duration`,`durationMs`,`fps`,`screenIndex`]}}},cron:{emoji:`⏰`,title:`Cron`,actions:{status:{label:`status`},list:{label:`list`},add:{label:`add`,detailKeys:[`job.name`,`job.id`,`job.schedule`,`job.cron`]},update:{label:`update`,detailKeys:[`id`]},remove:{label:`remove`,detailKeys:[`id`]},run:{label:`run`,detailKeys:[`id`]},runs:{label:`runs`,detailKeys:[`id`]},wake:{label:`wake`,detailKeys:[`text`,`mode`]}}},gateway:{emoji:`🔌`,title:`Gateway`,actions:{restart:{label:`restart`,detailKeys:[`reason`,`delayMs`]}}},whatsapp_login:{emoji:`🟢`,title:`WhatsApp Login`,actions:{start:{label:`start`},wait:{label:`wait`}}},discord:{emoji:`💬`,title:`Discord`,actions:{react:{label:`react`,detailKeys:[`channelId`,`messageId`,`emoji`]},reactions:{label:`reactions`,detailKeys:[`channelId`,`messageId`]},sticker:{label:`sticker`,detailKeys:[`to`,`stickerIds`]},poll:{label:`poll`,detailKeys:[`question`,`to`]},permissions:{label:`permissions`,detailKeys:[`channelId`]},readMessages:{label:`read messages`,detailKeys:[`channelId`,`limit`]},sendMessage:{label:`send`,detailKeys:[`to`,`content`]},editMessage:{label:`edit`,detailKeys:[`channelId`,`messageId`]},deleteMessage:{label:`delete`,detailKeys:[`channelId`,`messageId`]},threadCreate:{label:`thread create`,detailKeys:[`channelId`,`name`]},threadList:{label:`thread list`,detailKeys:[`guildId`,`channelId`]},threadReply:{label:`thread reply`,detailKeys:[`channelId`,`content`]},pinMessage:{label:`pin`,detailKeys:[`channelId`,`messageId`]},unpinMessage:{label:`unpin`,detailKeys:[`channelId`,`messageId`]},listPins:{label:`list pins`,detailKeys:[`channelId`]},searchMessages:{label:`search`,detailKeys:[`guildId`,`content`]},memberInfo:{label:`member`,detailKeys:[`guildId`,`userId`]},roleInfo:{label:`roles`,detailKeys:[`guildId`]},emojiList:{label:`emoji list`,detailKeys:[`guildId`]},roleAdd:{label:`role add`,detailKeys:[`guildId`,`userId`,`roleId`]},roleRemove:{label:`role remove`,detailKeys:[`guildId`,`userId`,`roleId`]},channelInfo:{label:`channel`,detailKeys:[`channelId`]},channelList:{label:`channels`,detailKeys:[`guildId`]},voiceStatus:{label:`voice`,detailKeys:[`guildId`,`userId`]},eventList:{label:`events`,detailKeys:[`guildId`]},eventCreate:{label:`event create`,detailKeys:[`guildId`,`name`]},timeout:{label:`timeout`,detailKeys:[`guildId`,`userId`]},kick:{label:`kick`,detailKeys:[`guildId`,`userId`]},ban:{label:`ban`,detailKeys:[`guildId`,`userId`]}}}}};function r(e){return e&&typeof e==`object`?e:void 0}function i(e){return(e??`tool`).trim()}function a(e){let t=e.replace(/_/g,` `).trim();return t?t.split(/\s+/).map(e=>e.length<=2&&e.toUpperCase()===e?e:`${e.at(0)?.toUpperCase()??``}${e.slice(1)}`).join(` `):`Tool`}function o(e){let t=e?.trim();if(t)return t.replace(/_/g,` `)}function s(e){if(!e||typeof e!=`object`)return;let t=e.action;if(typeof t==`string`)return t.trim()||void 0}function c(e){return V({toolKey:e.toolKey,args:e.args,meta:e.meta,action:s(e.args),spec:e.spec,fallbackDetailKeys:e.fallbackDetailKeys,detailMode:e.detailMode,detailCoerce:e.detailCoerce,detailMaxEntries:e.detailMaxEntries,detailFormatKey:e.detailFormatKey})}function l(e,t={}){let n=t.maxStringChars??160,r=t.maxArrayEntries??3;if(e!=null){if(typeof e==`string`){let t=e.trim();if(!t)return;let r=t.split(/\r?\n/)[0]?.trim()??``;return r?r.length>n?`${r.slice(0,Math.max(0,n-3))}…`:r:void 0}if(typeof e==`boolean`)return!e&&!t.includeFalse?void 0:e?`true`:`false`;if(typeof e==`number`)return Number.isFinite(e)?e===0&&!t.includeZero?void 0:String(e):t.includeNonFinite?String(e):void 0;if(Array.isArray(e)){let n=e.map(e=>l(e,t)).filter(e=>!!e);if(n.length===0)return;let i=n.slice(0,r).join(`, `);return n.length>r?`${i}…`:i}}}function u(e,t){if(!e||typeof e!=`object`)return;let n=e;for(let e of t.split(`.`)){if(!e||!n||typeof n!=`object`)return;n=n[e]}return n}function d(e,t={}){let n=e.split(`.`).filter(Boolean).at(-1)??e;return t[n]||n.replace(/_/g,` `).replace(/-/g,` `).replace(/([a-z0-9])([A-Z])/g,`$1 $2`).trim().toLowerCase()||n.toLowerCase()}function f(e){let t=r(e);if(t)for(let e of[t.path,t.file_path,t.filePath]){if(typeof e!=`string`)continue;let t=e.trim();if(t)return t}}function p(e){let t=r(e);if(!t)return;let n=f(t);if(!n)return;let i=typeof t.offset==`number`&&Number.isFinite(t.offset)?Math.floor(t.offset):void 0,a=typeof t.limit==`number`&&Number.isFinite(t.limit)?Math.floor(t.limit):void 0,o=i===void 0?void 0:Math.max(1,i),s=a===void 0?void 0:Math.max(1,a);return o!==void 0&&s!==void 0?`${s===1?`line`:`lines`} ${o}-${o+s-1} from ${n}`:o===void 0?s===void 0?`from ${n}`:`first ${s} ${s===1?`line`:`lines`} of ${n}`:`from line ${o} in ${n}`}function m(e,t){let n=r(t);if(!n)return;let i=f(n)??(typeof n.url==`string`?n.url.trim():void 0);if(!i)return;if(e===`attach`)return`from ${i}`;let a=e===`edit`?`in`:`to`,o=typeof n.content==`string`?n.content:typeof n.newText==`string`?n.newText:typeof n.new_string==`string`?n.new_string:void 0;return o&&o.length>0?`${a} ${i} (${o.length} chars)`:`${a} ${i}`}function h(e){let t=r(e);if(!t)return;let n=typeof t.query==`string`?t.query.trim():void 0,i=typeof t.count==`number`&&Number.isFinite(t.count)&&t.count>0?Math.floor(t.count):void 0;if(n)return i===void 0?`for "${n}"`:`for "${n}" (top ${i})`}function g(e){let t=r(e);if(!t)return;let n=typeof t.url==`string`?t.url.trim():void 0;if(!n)return;let i=typeof t.extractMode==`string`?t.extractMode.trim():void 0,a=typeof t.maxChars==`number`&&Number.isFinite(t.maxChars)&&t.maxChars>0?Math.floor(t.maxChars):void 0,o=[i?`mode ${i}`:void 0,a===void 0?void 0:`max ${a} chars`].filter(e=>!!e).join(`, `);return o?`from ${n} (${o})`:`from ${n}`}function _(e){if(!e)return e;let t=e.trim();return t.length>=2&&(t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`))?t.slice(1,-1).trim():t}function v(e,t=48){if(!e)return[];let n=[],r=``,i,a=!1;for(let o=0;o<e.length;o+=1){let s=e[o];if(a){r+=s,a=!1;continue}if(s===`\\`){a=!0;continue}if(i){s===i?i=void 0:r+=s;continue}if(s===`"`||s===`'`){i=s;continue}if(/\s/.test(s)){if(!r)continue;if(n.push(r),n.length>=t)return n;r=``;continue}r+=s}return r&&n.push(r),n}function y(e){if(!e)return;let t=_(e)??e;return(t.split(/[/]/).at(-1)??t).trim().toLowerCase()}function b(e,t){let n=new Set(t);for(let r=0;r<e.length;r+=1){let i=e[r];if(i){if(n.has(i)){let t=e[r+1];if(t&&!t.startsWith(`-`))return t;continue}for(let e of t)if(e.startsWith(`--`)&&i.startsWith(`${e}=`))return i.slice(e.length+1)}}}function x(e,t=1,n=[]){let r=[],i=new Set(n);for(let n=t;n<e.length;n+=1){let t=e[n];if(t){if(t===`--`){for(let t=n+1;t<e.length;t+=1){let n=e[t];n&&r.push(n)}break}if(t.startsWith(`--`)){if(t.includes(`=`))continue;i.has(t)&&(n+=1);continue}if(t.startsWith(`-`)){i.has(t)&&(n+=1);continue}r.push(t)}}return r}function S(e,t=1,n=[]){return x(e,t,n)[0]}function C(e){if(e.length===0)return e;let t=0;if(y(e[0])===`env`){for(t=1;t<e.length;){let n=e[t];if(!n)break;if(n.startsWith(`-`)){t+=1;continue}if(/^[A-Za-z_][A-Za-z0-9_]*=/.test(n)){t+=1;continue}break}return e.slice(t)}for(;t<e.length&&/^[A-Za-z_][A-Za-z0-9_]*=/.test(e[t]);)t+=1;return e.slice(t)}function w(e){let t=v(e,10);if(t.length<3)return e;let n=y(t[0]);if(!(n===`bash`||n===`sh`||n===`zsh`||n===`fish`))return e;let r=t.findIndex((e,t)=>t>0&&(e===`-c`||e===`-lc`||e===`-ic`));if(r===-1)return e;let i=t.slice(r+1).join(` `).trim();return i?_(i)??e:e}function T(e,t){let n,r=!1;for(let i=0;i<e.length;i+=1){let a=e[i];if(r){r=!1;continue}if(a===`\\`){r=!0;continue}if(n){a===n&&(n=void 0);continue}if(a===`"`||a===`'`){n=a;continue}if(t(a,i)===!1)return}}function E(e){let t=[],n=0;return T(e,(r,i)=>r===`;`?(t.push(e.slice(n,i)),n=i+1,!0):(r===`&`||r===`|`)&&e[i+1]===r?(t.push(e.slice(n,i)),n=i+2,!0):!0),t.push(e.slice(n)),t.map(e=>e.trim()).filter(e=>e.length>0)}function D(e){let t=[],n=0;return T(e,(r,i)=>(r===`|`&&e[i-1]!==`|`&&e[i+1]!==`|`&&(t.push(e.slice(n,i)),n=i+1),!0)),t.push(e.slice(n)),t.map(e=>e.trim()).filter(e=>e.length>0)}function O(e){let t=v(e,3),n=y(t[0]);if(n===`cd`||n===`pushd`)return t[1]||void 0}function k(e){let t=y(v(e,2)[0]);return t===`cd`||t===`pushd`||t===`popd`}function A(e){return y(v(e,2)[0])===`popd`}function j(e){let t=e.trim(),n;for(let e=0;e<4;e+=1){let r;T(t,(e,n)=>{if(e===`&`&&t[n+1]===`&`)return r={index:n,length:2},!1;if(e===`|`&&t[n+1]===`|`)return r={index:n,length:2,isOr:!0},!1;if(e===`;`||e===`
|
|
2
2
|
`)return r={index:n,length:1},!1});let i=(r?t.slice(0,r.index):t).trim(),a=(r?!r.isOr:e>0)&&k(i);if(!(i.startsWith(`set `)||i.startsWith(`export `)||i.startsWith(`unset `)||a)||(a&&(n=A(i)?void 0:O(i)??n),t=r?t.slice(r.index+r.length).trimStart():``,!t))break}return{command:t.trim(),chdirPath:n}}function M(e){if(e.length===0)return`run command`;let t=y(e[0])??`command`;if(t===`git`){let t=new Set([`-C`,`-c`,`--git-dir`,`--work-tree`,`--namespace`,`--config-env`]),n=b(e,[`-C`]),r;for(let n=1;n<e.length;n+=1){let i=e[n];if(i){if(i===`--`){r=S(e,n+1);break}if(i.startsWith(`--`)){if(i.includes(`=`))continue;t.has(i)&&(n+=1);continue}if(i.startsWith(`-`)){t.has(i)&&(n+=1);continue}r=i;break}}let i={status:`check git status`,diff:`check git diff`,log:`view git history`,show:`show git object`,branch:`list git branches`,checkout:`switch git branch`,switch:`switch git branch`,commit:`create git commit`,pull:`pull git changes`,push:`push git changes`,fetch:`fetch git changes`,merge:`merge git changes`,rebase:`rebase git branch`,add:`stage git changes`,restore:`restore git files`,reset:`reset git state`,stash:`stash git changes`};return r&&i[r]?i[r]:!r||r.startsWith(`/`)||r.startsWith(`~`)||r.includes(`/`)?n?`run git command in ${n}`:`run git command`:`run git ${r}`}if(t===`grep`||t===`rg`||t===`ripgrep`){let t=x(e,1,[`-e`,`--regexp`,`-f`,`--file`,`-m`,`--max-count`,`-A`,`--after-context`,`-B`,`--before-context`,`-C`,`--context`]),n=b(e,[`-e`,`--regexp`])??t[0],r=t.length>1?t.at(-1):void 0;return n?r?`search "${n}" in ${r}`:`search "${n}"`:`search text`}if(t===`find`){let t=e[1]&&!e[1].startsWith(`-`)?e[1]:`.`,n=b(e,[`-name`,`-iname`]);return n?`find files named "${n}" in ${t}`:`find files in ${t}`}if(t===`ls`){let t=S(e,1);return t?`list files in ${t}`:`list files`}if(t===`head`||t===`tail`){let n=b(e,[`-n`,`--lines`])??e.slice(1).find(e=>/^-\d+$/.test(e))?.slice(1),r=x(e,1,[`-n`,`--lines`]),i=r.at(-1);i&&/^\d+$/.test(i)&&r.length===1&&(i=void 0);let a=t===`head`?`first`:`last`,o=n===`1`?`line`:`lines`;return n&&i?`show ${a} ${n} ${o} of ${i}`:n?`show ${a} ${n} ${o}`:i?`show ${i}`:`show ${t} output`}if(t===`cat`){let t=S(e,1);return t?`show ${t}`:`show output`}if(t===`sed`){let t=b(e,[`-e`,`--expression`]),n=x(e,1,[`-e`,`--expression`,`-f`,`--file`]),r=t??n[0],i=t?n[0]:n[1];if(r){let e=(_(r)??r).replace(/\s+/g,``),t=e.match(/^([0-9]+),([0-9]+)p$/);if(t)return i?`print lines ${t[1]}-${t[2]} from ${i}`:`print lines ${t[1]}-${t[2]}`;let n=e.match(/^([0-9]+)p$/);if(n)return i?`print line ${n[1]} from ${i}`:`print line ${n[1]}`}return i?`run sed on ${i}`:`run sed transform`}if(t===`printf`||t===`echo`)return`print text`;if(t===`cp`||t===`mv`){let n=x(e,1,[`-t`,`--target-directory`,`-S`,`--suffix`]),r=n[0],i=n[1],a=t===`cp`?`copy`:`move`;return r&&i?`${a} ${r} to ${i}`:r?`${a} ${r}`:`${a} files`}if(t===`rm`){let t=S(e,1);return t?`remove ${t}`:`remove files`}if(t===`mkdir`){let t=S(e,1);return t?`create folder ${t}`:`create folder`}if(t===`touch`){let t=S(e,1);return t?`create file ${t}`:`create file`}if(t===`curl`||t===`wget`){let t=e.find(e=>/^https?:\/\//i.test(e));return t?`fetch ${t}`:`fetch url`}if(t===`npm`||t===`pnpm`||t===`yarn`||t===`bun`){let n=x(e,1,[`--prefix`,`-C`,`--cwd`,`--config`]),r=n[0]??`command`;return{install:`install dependencies`,test:`run tests`,build:`run build`,start:`start app`,lint:`run lint`,run:n[1]?`run ${n[1]}`:`run script`}[r]??`run ${t} ${r}`}if(t===`node`||t===`python`||t===`python3`||t===`ruby`||t===`php`){if(e.slice(1).find(e=>e.startsWith(`<<`)))return`run ${t} inline script (heredoc)`;if((t===`node`?b(e,[`-e`,`--eval`]):t===`python`||t===`python3`?b(e,[`-c`]):void 0)!==void 0)return`run ${t} inline script`;let n=S(e,1,t===`node`?[`-e`,`--eval`,`-m`]:[`-c`,`-e`,`--eval`,`-m`]);return n?t===`node`?`${e.includes(`--check`)||e.includes(`-c`)?`check js syntax for`:`run node script`} ${n}`:`run ${t} ${n}`:`run ${t}`}if(t===`openclaw`){let t=S(e,1);return t?`run openclaw ${t}`:`run openclaw`}let n=S(e,1);return!n||n.length>48?`run ${t}`:/^[A-Za-z0-9._/-]+$/.test(n)?`run ${t} ${n}`:`run ${t}`}function N(e){let t=D(e);return t.length>1?`${M(C(v(t[0])))} -> ${M(C(v(t[t.length-1])))}${t.length>2?` (+${t.length-2} steps)`:``}`:M(C(v(e)))}function P(e){let{command:t,chdirPath:n}=j(e);if(!t)return n?{text:``,chdirPath:n}:void 0;let r=E(t);if(r.length===0)return;let i=r.map(e=>N(e));return{text:i.length===1?i[0]:i.join(` → `),chdirPath:n,allGeneric:i.every(e=>I(e))}}const F=`check git.view git.show git.list git.switch git.create git.pull git.push git.fetch git.merge git.rebase git.stage git.restore git.reset git.stash git.search .find files.list files.show first.show last.print line.print text.copy .move .remove .create folder.create file.fetch http.install dependencies.run tests.run build.start app.run lint.run openclaw.run node script.run node .run python.run ruby.run php.run sed.run git .run npm .run pnpm .run yarn .run bun .check js syntax`.split(`.`);function I(e){return e===`run command`?!0:e.startsWith(`run `)?!F.some(t=>e.startsWith(t)):!1}function L(e,t=120){let n=e.replace(/\s*\n\s*/g,` `).replace(/\s{2,}/g,` `).trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-1))}…`}function R(e){let t=r(e);if(!t)return;let n=typeof t.command==`string`?t.command.trim():void 0;if(!n)return;let i=w(n),a=P(i)??P(n),o=a?.text||`run command`,s=(typeof t.workdir==`string`?t.workdir:typeof t.cwd==`string`?t.cwd:void 0)?.trim()||a?.chdirPath||void 0,c=L(i);if(a?.allGeneric!==!1&&I(o))return s?`${c} (in ${s})`:c;let l=s?`${o} (in ${s})`:o;return c&&c!==l&&c!==o?`${l}\n\n\`${c}\``:l}function z(e,t){if(!(!e||!t))return e.actions?.[t]??void 0}function B(e,t,n){if(n.mode===`first`){for(let r of t){let t=l(u(e,r),n.coerce);if(t)return t}return}let r=[];for(let i of t){let t=l(u(e,i),n.coerce);t&&r.push({label:n.formatKey?n.formatKey(i):i,value:t})}if(r.length===0)return;if(r.length===1)return r[0].value;let i=new Set,a=[];for(let e of r){let t=`${e.label}:${e.value}`;i.has(t)||(i.add(t),a.push(e))}if(a.length!==0)return a.slice(0,n.maxEntries??8).map(e=>`${e.label} ${e.value}`).join(` · `)}function V(e){let t=z(e.spec,e.action),n=e.toolKey===`web_search`?`search`:e.toolKey===`web_fetch`?`fetch`:e.toolKey.replace(/_/g,` `).replace(/\./g,` `),r=o(t?.label??e.action??n),i;e.toolKey===`exec`&&(i=R(e.args)),!i&&e.toolKey===`read`&&(i=p(e.args)),!i&&(e.toolKey===`write`||e.toolKey===`edit`||e.toolKey===`attach`)&&(i=m(e.toolKey,e.args)),!i&&e.toolKey===`web_search`&&(i=h(e.args)),!i&&e.toolKey===`web_fetch`&&(i=g(e.args));let a=t?.detailKeys??e.spec?.detailKeys??e.fallbackDetailKeys??[];return!i&&a.length>0&&(i=B(e.args,a,{mode:e.detailMode,coerce:e.detailCoerce,maxEntries:e.detailMaxEntries,formatKey:e.detailFormatKey})),!i&&e.meta&&(i=e.meta),{verb:r,detail:i}}function H(e,t={}){if(!e)return;let n=e.includes(` · `)?e.split(` · `).map(e=>e.trim()).filter(e=>e.length>0).join(`, `):e;if(n)return t.prefixWithWith?`with ${n}`:n}var U={version:1,tools:{exec:{emoji:`🛠️`,title:`Exec`,detailKeys:[`command`]},tool_call:{emoji:`🧰`,title:`Tool Call`,detailKeys:[]},tool_call_update:{emoji:`🧰`,title:`Tool Call`,detailKeys:[]},session_status:{emoji:`📊`,title:`Session Status`,detailKeys:[`sessionKey`,`model`]},sessions_list:{emoji:`🗂️`,title:`Sessions`,detailKeys:[`kinds`,`limit`,`activeMinutes`,`messageLimit`]},sessions_send:{emoji:`📨`,title:`Session Send`,detailKeys:[`label`,`sessionKey`,`agentId`,`timeoutSeconds`]},sessions_history:{emoji:`🧾`,title:`Session History`,detailKeys:[`sessionKey`,`limit`,`includeTools`]},sessions_spawn:{emoji:`🧑🔧`,title:`Sub-agent`,detailKeys:[`label`,`task`,`agentId`,`model`,`thinking`,`runTimeoutSeconds`,`cleanup`]},subagents:{emoji:`🤖`,title:`Subagents`,actions:{list:{label:`list`,detailKeys:[`recentMinutes`]},kill:{label:`kill`,detailKeys:[`target`]},steer:{label:`steer`,detailKeys:[`target`]}}},agents_list:{emoji:`🧭`,title:`Agents`,detailKeys:[]},memory_search:{emoji:`🧠`,title:`Memory Search`,detailKeys:[`query`]},memory_get:{emoji:`📓`,title:`Memory Get`,detailKeys:[`path`,`from`,`lines`]},web_search:{emoji:`🔎`,title:`Web Search`,detailKeys:[`query`,`count`]},web_fetch:{emoji:`📄`,title:`Web Fetch`,detailKeys:[`url`,`extractMode`,`maxChars`]},message:{emoji:`✉️`,title:`Message`,actions:{send:{label:`send`,detailKeys:[`provider`,`to`,`media`,`replyTo`,`threadId`]},poll:{label:`poll`,detailKeys:[`provider`,`to`,`pollQuestion`]},react:{label:`react`,detailKeys:[`provider`,`to`,`messageId`,`emoji`,`remove`]},reactions:{label:`reactions`,detailKeys:[`provider`,`to`,`messageId`,`limit`]},read:{label:`read`,detailKeys:[`provider`,`to`,`limit`]},edit:{label:`edit`,detailKeys:[`provider`,`to`,`messageId`]},delete:{label:`delete`,detailKeys:[`provider`,`to`,`messageId`]},pin:{label:`pin`,detailKeys:[`provider`,`to`,`messageId`]},unpin:{label:`unpin`,detailKeys:[`provider`,`to`,`messageId`]},"list-pins":{label:`list pins`,detailKeys:[`provider`,`to`]},permissions:{label:`permissions`,detailKeys:[`provider`,`channelId`,`to`]},"thread-create":{label:`thread create`,detailKeys:[`provider`,`channelId`,`threadName`]},"thread-list":{label:`thread list`,detailKeys:[`provider`,`guildId`,`channelId`]},"thread-reply":{label:`thread reply`,detailKeys:[`provider`,`channelId`,`messageId`]},search:{label:`search`,detailKeys:[`provider`,`guildId`,`query`]},sticker:{label:`sticker`,detailKeys:[`provider`,`to`,`stickerId`]},"member-info":{label:`member`,detailKeys:[`provider`,`guildId`,`userId`]},"role-info":{label:`roles`,detailKeys:[`provider`,`guildId`]},"emoji-list":{label:`emoji list`,detailKeys:[`provider`,`guildId`]},"emoji-upload":{label:`emoji upload`,detailKeys:[`provider`,`guildId`,`emojiName`]},"sticker-upload":{label:`sticker upload`,detailKeys:[`provider`,`guildId`,`stickerName`]},"role-add":{label:`role add`,detailKeys:[`provider`,`guildId`,`userId`,`roleId`]},"role-remove":{label:`role remove`,detailKeys:[`provider`,`guildId`,`userId`,`roleId`]},"channel-info":{label:`channel`,detailKeys:[`provider`,`channelId`]},"channel-list":{label:`channels`,detailKeys:[`provider`,`guildId`]},"voice-status":{label:`voice`,detailKeys:[`provider`,`guildId`,`userId`]},"event-list":{label:`events`,detailKeys:[`provider`,`guildId`]},"event-create":{label:`event create`,detailKeys:[`provider`,`guildId`,`eventName`]},timeout:{label:`timeout`,detailKeys:[`provider`,`guildId`,`userId`]},kick:{label:`kick`,detailKeys:[`provider`,`guildId`,`userId`]},ban:{label:`ban`,detailKeys:[`provider`,`guildId`,`userId`]}}},apply_patch:{emoji:`🩹`,title:`Apply Patch`,detailKeys:[]}}};const W=n,G=U,K=G.fallback??W.fallback??{emoji:`🧩`},q=Object.assign({},W.tools,G.tools),J={agentId:`agent`,sessionKey:`session`,targetId:`target`,targetUrl:`url`,nodeId:`node`,requestId:`request`,messageId:`message`,threadId:`thread`,channelId:`channel`,guildId:`guild`,userId:`user`,runTimeoutSeconds:`timeout`,timeoutSeconds:`timeout`,includeTools:`tools`,pollQuestion:`poll`,maxChars:`max chars`};function Y(t){let n=i(t.name),r=n.toLowerCase(),o=q[r],s=o?.emoji??K.emoji??`🧩`,l=o?.title??a(n),u=o?.label??l,{verb:f,detail:p}=c({toolKey:r,args:t.args,meta:t.meta,spec:o,fallbackDetailKeys:K.detailKeys,detailMode:`summary`,detailMaxEntries:8,detailFormatKey:e=>d(e,J)});return p&&=e(p),{name:n,emoji:s,title:l,label:u,verb:f,detail:p}}function X(e){return H(e.detail?t(e.detail):void 0)}function Z(e){let t=X(e);return t?`${e.emoji} ${e.label}: ${t}`:`${e.emoji} ${e.label}`}export{Z as n,Y as r,X as t};
|
|
3
|
+
//# sourceMappingURL=tool-display-DJDtttQg.js.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import{x as e}from"./utils-UGOV_184.js";import{r as t}from"./redact-3_CiXMY6.js";var n={version:1,fallback:{emoji:`🧩`,detailKeys:[`command`,`path`,`url`,`targetUrl`,`targetId`,`ref`,`element`,`node`,`nodeId`,`id`,`requestId`,`to`,`channelId`,`guildId`,`userId`,`name`,`query`,`pattern`,`messageId`]},tools:{bash:{emoji:`🛠️`,title:`Bash`,detailKeys:[`command`]},process:{emoji:`🧰`,title:`Process`,detailKeys:[`sessionId`]},read:{emoji:`📖`,title:`Read`,detailKeys:[`path`]},write:{emoji:`✍️`,title:`Write`,detailKeys:[`path`]},edit:{emoji:`📝`,title:`Edit`,detailKeys:[`path`]},attach:{emoji:`📎`,title:`Attach`,detailKeys:[`path`,`url`,`fileName`]},browser:{emoji:`🌐`,title:`Browser`,actions:{status:{label:`status`},start:{label:`start`},stop:{label:`stop`},tabs:{label:`tabs`},open:{label:`open`,detailKeys:[`targetUrl`]},focus:{label:`focus`,detailKeys:[`targetId`]},close:{label:`close`,detailKeys:[`targetId`]},snapshot:{label:`snapshot`,detailKeys:[`targetUrl`,`targetId`,`ref`,`element`,`format`]},screenshot:{label:`screenshot`,detailKeys:[`targetUrl`,`targetId`,`ref`,`element`]},navigate:{label:`navigate`,detailKeys:[`targetUrl`,`targetId`]},console:{label:`console`,detailKeys:[`level`,`targetId`]},pdf:{label:`pdf`,detailKeys:[`targetId`]},upload:{label:`upload`,detailKeys:[`paths`,`ref`,`inputRef`,`element`,`targetId`]},dialog:{label:`dialog`,detailKeys:[`accept`,`promptText`,`targetId`]},act:{label:`act`,detailKeys:[`request.kind`,`request.ref`,`request.selector`,`request.text`,`request.value`]}}},canvas:{emoji:`🖼️`,title:`Canvas`,actions:{present:{label:`present`,detailKeys:[`target`,`node`,`nodeId`]},hide:{label:`hide`,detailKeys:[`node`,`nodeId`]},navigate:{label:`navigate`,detailKeys:[`url`,`node`,`nodeId`]},eval:{label:`eval`,detailKeys:[`javaScript`,`node`,`nodeId`]},snapshot:{label:`snapshot`,detailKeys:[`format`,`node`,`nodeId`]},a2ui_push:{label:`A2UI push`,detailKeys:[`jsonlPath`,`node`,`nodeId`]},a2ui_reset:{label:`A2UI reset`,detailKeys:[`node`,`nodeId`]}}},nodes:{emoji:`📱`,title:`Nodes`,actions:{status:{label:`status`},describe:{label:`describe`,detailKeys:[`node`,`nodeId`]},pending:{label:`pending`},approve:{label:`approve`,detailKeys:[`requestId`]},reject:{label:`reject`,detailKeys:[`requestId`]},notify:{label:`notify`,detailKeys:[`node`,`nodeId`,`title`,`body`]},camera_snap:{label:`camera snap`,detailKeys:[`node`,`nodeId`,`facing`,`deviceId`]},camera_list:{label:`camera list`,detailKeys:[`node`,`nodeId`]},camera_clip:{label:`camera clip`,detailKeys:[`node`,`nodeId`,`facing`,`duration`,`durationMs`]},screen_record:{label:`screen record`,detailKeys:[`node`,`nodeId`,`duration`,`durationMs`,`fps`,`screenIndex`]}}},cron:{emoji:`⏰`,title:`Cron`,actions:{status:{label:`status`},list:{label:`list`},add:{label:`add`,detailKeys:[`job.name`,`job.id`,`job.schedule`,`job.cron`]},update:{label:`update`,detailKeys:[`id`]},remove:{label:`remove`,detailKeys:[`id`]},run:{label:`run`,detailKeys:[`id`]},runs:{label:`runs`,detailKeys:[`id`]},wake:{label:`wake`,detailKeys:[`text`,`mode`]}}},gateway:{emoji:`🔌`,title:`Gateway`,actions:{restart:{label:`restart`,detailKeys:[`reason`,`delayMs`]}}},whatsapp_login:{emoji:`🟢`,title:`WhatsApp Login`,actions:{start:{label:`start`},wait:{label:`wait`}}},discord:{emoji:`💬`,title:`Discord`,actions:{react:{label:`react`,detailKeys:[`channelId`,`messageId`,`emoji`]},reactions:{label:`reactions`,detailKeys:[`channelId`,`messageId`]},sticker:{label:`sticker`,detailKeys:[`to`,`stickerIds`]},poll:{label:`poll`,detailKeys:[`question`,`to`]},permissions:{label:`permissions`,detailKeys:[`channelId`]},readMessages:{label:`read messages`,detailKeys:[`channelId`,`limit`]},sendMessage:{label:`send`,detailKeys:[`to`,`content`]},editMessage:{label:`edit`,detailKeys:[`channelId`,`messageId`]},deleteMessage:{label:`delete`,detailKeys:[`channelId`,`messageId`]},threadCreate:{label:`thread create`,detailKeys:[`channelId`,`name`]},threadList:{label:`thread list`,detailKeys:[`guildId`,`channelId`]},threadReply:{label:`thread reply`,detailKeys:[`channelId`,`content`]},pinMessage:{label:`pin`,detailKeys:[`channelId`,`messageId`]},unpinMessage:{label:`unpin`,detailKeys:[`channelId`,`messageId`]},listPins:{label:`list pins`,detailKeys:[`channelId`]},searchMessages:{label:`search`,detailKeys:[`guildId`,`content`]},memberInfo:{label:`member`,detailKeys:[`guildId`,`userId`]},roleInfo:{label:`roles`,detailKeys:[`guildId`]},emojiList:{label:`emoji list`,detailKeys:[`guildId`]},roleAdd:{label:`role add`,detailKeys:[`guildId`,`userId`,`roleId`]},roleRemove:{label:`role remove`,detailKeys:[`guildId`,`userId`,`roleId`]},channelInfo:{label:`channel`,detailKeys:[`channelId`]},channelList:{label:`channels`,detailKeys:[`guildId`]},voiceStatus:{label:`voice`,detailKeys:[`guildId`,`userId`]},eventList:{label:`events`,detailKeys:[`guildId`]},eventCreate:{label:`event create`,detailKeys:[`guildId`,`name`]},timeout:{label:`timeout`,detailKeys:[`guildId`,`userId`]},kick:{label:`kick`,detailKeys:[`guildId`,`userId`]},ban:{label:`ban`,detailKeys:[`guildId`,`userId`]}}}}};function r(e){return e&&typeof e==`object`?e:void 0}function i(e){return(e??`tool`).trim()}function a(e){let t=e.replace(/_/g,` `).trim();return t?t.split(/\s+/).map(e=>e.length<=2&&e.toUpperCase()===e?e:`${e.at(0)?.toUpperCase()??``}${e.slice(1)}`).join(` `):`Tool`}function o(e){let t=e?.trim();if(t)return t.replace(/_/g,` `)}function s(e){if(!e||typeof e!=`object`)return;let t=e.action;if(typeof t==`string`)return t.trim()||void 0}function c(e){return V({toolKey:e.toolKey,args:e.args,meta:e.meta,action:s(e.args),spec:e.spec,fallbackDetailKeys:e.fallbackDetailKeys,detailMode:e.detailMode,detailCoerce:e.detailCoerce,detailMaxEntries:e.detailMaxEntries,detailFormatKey:e.detailFormatKey})}function l(e,t={}){let n=t.maxStringChars??160,r=t.maxArrayEntries??3;if(e!=null){if(typeof e==`string`){let t=e.trim();if(!t)return;let r=t.split(/\r?\n/)[0]?.trim()??``;return r?r.length>n?`${r.slice(0,Math.max(0,n-3))}…`:r:void 0}if(typeof e==`boolean`)return!e&&!t.includeFalse?void 0:e?`true`:`false`;if(typeof e==`number`)return Number.isFinite(e)?e===0&&!t.includeZero?void 0:String(e):t.includeNonFinite?String(e):void 0;if(Array.isArray(e)){let n=e.map(e=>l(e,t)).filter(e=>!!e);if(n.length===0)return;let i=n.slice(0,r).join(`, `);return n.length>r?`${i}…`:i}}}function u(e,t){if(!e||typeof e!=`object`)return;let n=e;for(let e of t.split(`.`)){if(!e||!n||typeof n!=`object`)return;n=n[e]}return n}function d(e,t={}){let n=e.split(`.`).filter(Boolean).at(-1)??e;return t[n]||n.replace(/_/g,` `).replace(/-/g,` `).replace(/([a-z0-9])([A-Z])/g,`$1 $2`).trim().toLowerCase()||n.toLowerCase()}function f(e){let t=r(e);if(t)for(let e of[t.path,t.file_path,t.filePath]){if(typeof e!=`string`)continue;let t=e.trim();if(t)return t}}function p(e){let t=r(e);if(!t)return;let n=f(t);if(!n)return;let i=typeof t.offset==`number`&&Number.isFinite(t.offset)?Math.floor(t.offset):void 0,a=typeof t.limit==`number`&&Number.isFinite(t.limit)?Math.floor(t.limit):void 0,o=i===void 0?void 0:Math.max(1,i),s=a===void 0?void 0:Math.max(1,a);return o!==void 0&&s!==void 0?`${s===1?`line`:`lines`} ${o}-${o+s-1} from ${n}`:o===void 0?s===void 0?`from ${n}`:`first ${s} ${s===1?`line`:`lines`} of ${n}`:`from line ${o} in ${n}`}function m(e,t){let n=r(t);if(!n)return;let i=f(n)??(typeof n.url==`string`?n.url.trim():void 0);if(!i)return;if(e===`attach`)return`from ${i}`;let a=e===`edit`?`in`:`to`,o=typeof n.content==`string`?n.content:typeof n.newText==`string`?n.newText:typeof n.new_string==`string`?n.new_string:void 0;return o&&o.length>0?`${a} ${i} (${o.length} chars)`:`${a} ${i}`}function h(e){let t=r(e);if(!t)return;let n=typeof t.query==`string`?t.query.trim():void 0,i=typeof t.count==`number`&&Number.isFinite(t.count)&&t.count>0?Math.floor(t.count):void 0;if(n)return i===void 0?`for "${n}"`:`for "${n}" (top ${i})`}function g(e){let t=r(e);if(!t)return;let n=typeof t.url==`string`?t.url.trim():void 0;if(!n)return;let i=typeof t.extractMode==`string`?t.extractMode.trim():void 0,a=typeof t.maxChars==`number`&&Number.isFinite(t.maxChars)&&t.maxChars>0?Math.floor(t.maxChars):void 0,o=[i?`mode ${i}`:void 0,a===void 0?void 0:`max ${a} chars`].filter(e=>!!e).join(`, `);return o?`from ${n} (${o})`:`from ${n}`}function _(e){if(!e)return e;let t=e.trim();return t.length>=2&&(t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`))?t.slice(1,-1).trim():t}function v(e,t=48){if(!e)return[];let n=[],r=``,i,a=!1;for(let o=0;o<e.length;o+=1){let s=e[o];if(a){r+=s,a=!1;continue}if(s===`\\`){a=!0;continue}if(i){s===i?i=void 0:r+=s;continue}if(s===`"`||s===`'`){i=s;continue}if(/\s/.test(s)){if(!r)continue;if(n.push(r),n.length>=t)return n;r=``;continue}r+=s}return r&&n.push(r),n}function y(e){if(!e)return;let t=_(e)??e;return(t.split(/[/]/).at(-1)??t).trim().toLowerCase()}function b(e,t){let n=new Set(t);for(let r=0;r<e.length;r+=1){let i=e[r];if(i){if(n.has(i)){let t=e[r+1];if(t&&!t.startsWith(`-`))return t;continue}for(let e of t)if(e.startsWith(`--`)&&i.startsWith(`${e}=`))return i.slice(e.length+1)}}}function x(e,t=1,n=[]){let r=[],i=new Set(n);for(let n=t;n<e.length;n+=1){let t=e[n];if(t){if(t===`--`){for(let t=n+1;t<e.length;t+=1){let n=e[t];n&&r.push(n)}break}if(t.startsWith(`--`)){if(t.includes(`=`))continue;i.has(t)&&(n+=1);continue}if(t.startsWith(`-`)){i.has(t)&&(n+=1);continue}r.push(t)}}return r}function S(e,t=1,n=[]){return x(e,t,n)[0]}function C(e){if(e.length===0)return e;let t=0;if(y(e[0])===`env`){for(t=1;t<e.length;){let n=e[t];if(!n)break;if(n.startsWith(`-`)){t+=1;continue}if(/^[A-Za-z_][A-Za-z0-9_]*=/.test(n)){t+=1;continue}break}return e.slice(t)}for(;t<e.length&&/^[A-Za-z_][A-Za-z0-9_]*=/.test(e[t]);)t+=1;return e.slice(t)}function w(e){let t=v(e,10);if(t.length<3)return e;let n=y(t[0]);if(!(n===`bash`||n===`sh`||n===`zsh`||n===`fish`))return e;let r=t.findIndex((e,t)=>t>0&&(e===`-c`||e===`-lc`||e===`-ic`));if(r===-1)return e;let i=t.slice(r+1).join(` `).trim();return i?_(i)??e:e}function T(e,t){let n,r=!1;for(let i=0;i<e.length;i+=1){let a=e[i];if(r){r=!1;continue}if(a===`\\`){r=!0;continue}if(n){a===n&&(n=void 0);continue}if(a===`"`||a===`'`){n=a;continue}if(t(a,i)===!1)return}}function E(e){let t=[],n=0;return T(e,(r,i)=>r===`;`?(t.push(e.slice(n,i)),n=i+1,!0):(r===`&`||r===`|`)&&e[i+1]===r?(t.push(e.slice(n,i)),n=i+2,!0):!0),t.push(e.slice(n)),t.map(e=>e.trim()).filter(e=>e.length>0)}function D(e){let t=[],n=0;return T(e,(r,i)=>(r===`|`&&e[i-1]!==`|`&&e[i+1]!==`|`&&(t.push(e.slice(n,i)),n=i+1),!0)),t.push(e.slice(n)),t.map(e=>e.trim()).filter(e=>e.length>0)}function O(e){let t=v(e,3),n=y(t[0]);if(n===`cd`||n===`pushd`)return t[1]||void 0}function k(e){let t=y(v(e,2)[0]);return t===`cd`||t===`pushd`||t===`popd`}function A(e){return y(v(e,2)[0])===`popd`}function j(e){let t=e.trim(),n;for(let e=0;e<4;e+=1){let r;T(t,(e,n)=>{if(e===`&`&&t[n+1]===`&`)return r={index:n,length:2},!1;if(e===`|`&&t[n+1]===`|`)return r={index:n,length:2,isOr:!0},!1;if(e===`;`||e===`
|
|
2
2
|
`)return r={index:n,length:1},!1});let i=(r?t.slice(0,r.index):t).trim(),a=(r?!r.isOr:e>0)&&k(i);if(!(i.startsWith(`set `)||i.startsWith(`export `)||i.startsWith(`unset `)||a)||(a&&(n=A(i)?void 0:O(i)??n),t=r?t.slice(r.index+r.length).trimStart():``,!t))break}return{command:t.trim(),chdirPath:n}}function M(e){if(e.length===0)return`run command`;let t=y(e[0])??`command`;if(t===`git`){let t=new Set([`-C`,`-c`,`--git-dir`,`--work-tree`,`--namespace`,`--config-env`]),n=b(e,[`-C`]),r;for(let n=1;n<e.length;n+=1){let i=e[n];if(i){if(i===`--`){r=S(e,n+1);break}if(i.startsWith(`--`)){if(i.includes(`=`))continue;t.has(i)&&(n+=1);continue}if(i.startsWith(`-`)){t.has(i)&&(n+=1);continue}r=i;break}}let i={status:`check git status`,diff:`check git diff`,log:`view git history`,show:`show git object`,branch:`list git branches`,checkout:`switch git branch`,switch:`switch git branch`,commit:`create git commit`,pull:`pull git changes`,push:`push git changes`,fetch:`fetch git changes`,merge:`merge git changes`,rebase:`rebase git branch`,add:`stage git changes`,restore:`restore git files`,reset:`reset git state`,stash:`stash git changes`};return r&&i[r]?i[r]:!r||r.startsWith(`/`)||r.startsWith(`~`)||r.includes(`/`)?n?`run git command in ${n}`:`run git command`:`run git ${r}`}if(t===`grep`||t===`rg`||t===`ripgrep`){let t=x(e,1,[`-e`,`--regexp`,`-f`,`--file`,`-m`,`--max-count`,`-A`,`--after-context`,`-B`,`--before-context`,`-C`,`--context`]),n=b(e,[`-e`,`--regexp`])??t[0],r=t.length>1?t.at(-1):void 0;return n?r?`search "${n}" in ${r}`:`search "${n}"`:`search text`}if(t===`find`){let t=e[1]&&!e[1].startsWith(`-`)?e[1]:`.`,n=b(e,[`-name`,`-iname`]);return n?`find files named "${n}" in ${t}`:`find files in ${t}`}if(t===`ls`){let t=S(e,1);return t?`list files in ${t}`:`list files`}if(t===`head`||t===`tail`){let n=b(e,[`-n`,`--lines`])??e.slice(1).find(e=>/^-\d+$/.test(e))?.slice(1),r=x(e,1,[`-n`,`--lines`]),i=r.at(-1);i&&/^\d+$/.test(i)&&r.length===1&&(i=void 0);let a=t===`head`?`first`:`last`,o=n===`1`?`line`:`lines`;return n&&i?`show ${a} ${n} ${o} of ${i}`:n?`show ${a} ${n} ${o}`:i?`show ${i}`:`show ${t} output`}if(t===`cat`){let t=S(e,1);return t?`show ${t}`:`show output`}if(t===`sed`){let t=b(e,[`-e`,`--expression`]),n=x(e,1,[`-e`,`--expression`,`-f`,`--file`]),r=t??n[0],i=t?n[0]:n[1];if(r){let e=(_(r)??r).replace(/\s+/g,``),t=e.match(/^([0-9]+),([0-9]+)p$/);if(t)return i?`print lines ${t[1]}-${t[2]} from ${i}`:`print lines ${t[1]}-${t[2]}`;let n=e.match(/^([0-9]+)p$/);if(n)return i?`print line ${n[1]} from ${i}`:`print line ${n[1]}`}return i?`run sed on ${i}`:`run sed transform`}if(t===`printf`||t===`echo`)return`print text`;if(t===`cp`||t===`mv`){let n=x(e,1,[`-t`,`--target-directory`,`-S`,`--suffix`]),r=n[0],i=n[1],a=t===`cp`?`copy`:`move`;return r&&i?`${a} ${r} to ${i}`:r?`${a} ${r}`:`${a} files`}if(t===`rm`){let t=S(e,1);return t?`remove ${t}`:`remove files`}if(t===`mkdir`){let t=S(e,1);return t?`create folder ${t}`:`create folder`}if(t===`touch`){let t=S(e,1);return t?`create file ${t}`:`create file`}if(t===`curl`||t===`wget`){let t=e.find(e=>/^https?:\/\//i.test(e));return t?`fetch ${t}`:`fetch url`}if(t===`npm`||t===`pnpm`||t===`yarn`||t===`bun`){let n=x(e,1,[`--prefix`,`-C`,`--cwd`,`--config`]),r=n[0]??`command`;return{install:`install dependencies`,test:`run tests`,build:`run build`,start:`start app`,lint:`run lint`,run:n[1]?`run ${n[1]}`:`run script`}[r]??`run ${t} ${r}`}if(t===`node`||t===`python`||t===`python3`||t===`ruby`||t===`php`){if(e.slice(1).find(e=>e.startsWith(`<<`)))return`run ${t} inline script (heredoc)`;if((t===`node`?b(e,[`-e`,`--eval`]):t===`python`||t===`python3`?b(e,[`-c`]):void 0)!==void 0)return`run ${t} inline script`;let n=S(e,1,t===`node`?[`-e`,`--eval`,`-m`]:[`-c`,`-e`,`--eval`,`-m`]);return n?t===`node`?`${e.includes(`--check`)||e.includes(`-c`)?`check js syntax for`:`run node script`} ${n}`:`run ${t} ${n}`:`run ${t}`}if(t===`openclaw`){let t=S(e,1);return t?`run openclaw ${t}`:`run openclaw`}let n=S(e,1);return!n||n.length>48?`run ${t}`:/^[A-Za-z0-9._/-]+$/.test(n)?`run ${t} ${n}`:`run ${t}`}function N(e){let t=D(e);return t.length>1?`${M(C(v(t[0])))} -> ${M(C(v(t[t.length-1])))}${t.length>2?` (+${t.length-2} steps)`:``}`:M(C(v(e)))}function P(e){let{command:t,chdirPath:n}=j(e);if(!t)return n?{text:``,chdirPath:n}:void 0;let r=E(t);if(r.length===0)return;let i=r.map(e=>N(e));return{text:i.length===1?i[0]:i.join(` → `),chdirPath:n,allGeneric:i.every(e=>I(e))}}const F=`check git.view git.show git.list git.switch git.create git.pull git.push git.fetch git.merge git.rebase git.stage git.restore git.reset git.stash git.search .find files.list files.show first.show last.print line.print text.copy .move .remove .create folder.create file.fetch http.install dependencies.run tests.run build.start app.run lint.run openclaw.run node script.run node .run python.run ruby.run php.run sed.run git .run npm .run pnpm .run yarn .run bun .check js syntax`.split(`.`);function I(e){return e===`run command`?!0:e.startsWith(`run `)?!F.some(t=>e.startsWith(t)):!1}function L(e,t=120){let n=e.replace(/\s*\n\s*/g,` `).replace(/\s{2,}/g,` `).trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-1))}…`}function R(e){let t=r(e);if(!t)return;let n=typeof t.command==`string`?t.command.trim():void 0;if(!n)return;let i=w(n),a=P(i)??P(n),o=a?.text||`run command`,s=(typeof t.workdir==`string`?t.workdir:typeof t.cwd==`string`?t.cwd:void 0)?.trim()||a?.chdirPath||void 0,c=L(i);if(a?.allGeneric!==!1&&I(o))return s?`${c} (in ${s})`:c;let l=s?`${o} (in ${s})`:o;return c&&c!==l&&c!==o?`${l}\n\n\`${c}\``:l}function z(e,t){if(!(!e||!t))return e.actions?.[t]??void 0}function B(e,t,n){if(n.mode===`first`){for(let r of t){let t=l(u(e,r),n.coerce);if(t)return t}return}let r=[];for(let i of t){let t=l(u(e,i),n.coerce);t&&r.push({label:n.formatKey?n.formatKey(i):i,value:t})}if(r.length===0)return;if(r.length===1)return r[0].value;let i=new Set,a=[];for(let e of r){let t=`${e.label}:${e.value}`;i.has(t)||(i.add(t),a.push(e))}if(a.length!==0)return a.slice(0,n.maxEntries??8).map(e=>`${e.label} ${e.value}`).join(` · `)}function V(e){let t=z(e.spec,e.action),n=e.toolKey===`web_search`?`search`:e.toolKey===`web_fetch`?`fetch`:e.toolKey.replace(/_/g,` `).replace(/\./g,` `),r=o(t?.label??e.action??n),i;e.toolKey===`exec`&&(i=R(e.args)),!i&&e.toolKey===`read`&&(i=p(e.args)),!i&&(e.toolKey===`write`||e.toolKey===`edit`||e.toolKey===`attach`)&&(i=m(e.toolKey,e.args)),!i&&e.toolKey===`web_search`&&(i=h(e.args)),!i&&e.toolKey===`web_fetch`&&(i=g(e.args));let a=t?.detailKeys??e.spec?.detailKeys??e.fallbackDetailKeys??[];return!i&&a.length>0&&(i=B(e.args,a,{mode:e.detailMode,coerce:e.detailCoerce,maxEntries:e.detailMaxEntries,formatKey:e.detailFormatKey})),!i&&e.meta&&(i=e.meta),{verb:r,detail:i}}function H(e,t={}){if(!e)return;let n=e.includes(` · `)?e.split(` · `).map(e=>e.trim()).filter(e=>e.length>0).join(`, `):e;if(n)return t.prefixWithWith?`with ${n}`:n}var U={version:1,tools:{exec:{emoji:`🛠️`,title:`Exec`,detailKeys:[`command`]},tool_call:{emoji:`🧰`,title:`Tool Call`,detailKeys:[]},tool_call_update:{emoji:`🧰`,title:`Tool Call`,detailKeys:[]},session_status:{emoji:`📊`,title:`Session Status`,detailKeys:[`sessionKey`,`model`]},sessions_list:{emoji:`🗂️`,title:`Sessions`,detailKeys:[`kinds`,`limit`,`activeMinutes`,`messageLimit`]},sessions_send:{emoji:`📨`,title:`Session Send`,detailKeys:[`label`,`sessionKey`,`agentId`,`timeoutSeconds`]},sessions_history:{emoji:`🧾`,title:`Session History`,detailKeys:[`sessionKey`,`limit`,`includeTools`]},sessions_spawn:{emoji:`🧑🔧`,title:`Sub-agent`,detailKeys:[`label`,`task`,`agentId`,`model`,`thinking`,`runTimeoutSeconds`,`cleanup`]},subagents:{emoji:`🤖`,title:`Subagents`,actions:{list:{label:`list`,detailKeys:[`recentMinutes`]},kill:{label:`kill`,detailKeys:[`target`]},steer:{label:`steer`,detailKeys:[`target`]}}},agents_list:{emoji:`🧭`,title:`Agents`,detailKeys:[]},memory_search:{emoji:`🧠`,title:`Memory Search`,detailKeys:[`query`]},memory_get:{emoji:`📓`,title:`Memory Get`,detailKeys:[`path`,`from`,`lines`]},web_search:{emoji:`🔎`,title:`Web Search`,detailKeys:[`query`,`count`]},web_fetch:{emoji:`📄`,title:`Web Fetch`,detailKeys:[`url`,`extractMode`,`maxChars`]},message:{emoji:`✉️`,title:`Message`,actions:{send:{label:`send`,detailKeys:[`provider`,`to`,`media`,`replyTo`,`threadId`]},poll:{label:`poll`,detailKeys:[`provider`,`to`,`pollQuestion`]},react:{label:`react`,detailKeys:[`provider`,`to`,`messageId`,`emoji`,`remove`]},reactions:{label:`reactions`,detailKeys:[`provider`,`to`,`messageId`,`limit`]},read:{label:`read`,detailKeys:[`provider`,`to`,`limit`]},edit:{label:`edit`,detailKeys:[`provider`,`to`,`messageId`]},delete:{label:`delete`,detailKeys:[`provider`,`to`,`messageId`]},pin:{label:`pin`,detailKeys:[`provider`,`to`,`messageId`]},unpin:{label:`unpin`,detailKeys:[`provider`,`to`,`messageId`]},"list-pins":{label:`list pins`,detailKeys:[`provider`,`to`]},permissions:{label:`permissions`,detailKeys:[`provider`,`channelId`,`to`]},"thread-create":{label:`thread create`,detailKeys:[`provider`,`channelId`,`threadName`]},"thread-list":{label:`thread list`,detailKeys:[`provider`,`guildId`,`channelId`]},"thread-reply":{label:`thread reply`,detailKeys:[`provider`,`channelId`,`messageId`]},search:{label:`search`,detailKeys:[`provider`,`guildId`,`query`]},sticker:{label:`sticker`,detailKeys:[`provider`,`to`,`stickerId`]},"member-info":{label:`member`,detailKeys:[`provider`,`guildId`,`userId`]},"role-info":{label:`roles`,detailKeys:[`provider`,`guildId`]},"emoji-list":{label:`emoji list`,detailKeys:[`provider`,`guildId`]},"emoji-upload":{label:`emoji upload`,detailKeys:[`provider`,`guildId`,`emojiName`]},"sticker-upload":{label:`sticker upload`,detailKeys:[`provider`,`guildId`,`stickerName`]},"role-add":{label:`role add`,detailKeys:[`provider`,`guildId`,`userId`,`roleId`]},"role-remove":{label:`role remove`,detailKeys:[`provider`,`guildId`,`userId`,`roleId`]},"channel-info":{label:`channel`,detailKeys:[`provider`,`channelId`]},"channel-list":{label:`channels`,detailKeys:[`provider`,`guildId`]},"voice-status":{label:`voice`,detailKeys:[`provider`,`guildId`,`userId`]},"event-list":{label:`events`,detailKeys:[`provider`,`guildId`]},"event-create":{label:`event create`,detailKeys:[`provider`,`guildId`,`eventName`]},timeout:{label:`timeout`,detailKeys:[`provider`,`guildId`,`userId`]},kick:{label:`kick`,detailKeys:[`provider`,`guildId`,`userId`]},ban:{label:`ban`,detailKeys:[`provider`,`guildId`,`userId`]}}},apply_patch:{emoji:`🩹`,title:`Apply Patch`,detailKeys:[]}}};const W=n,G=U,K=G.fallback??W.fallback??{emoji:`🧩`},q=Object.assign({},W.tools,G.tools),J={agentId:`agent`,sessionKey:`session`,targetId:`target`,targetUrl:`url`,nodeId:`node`,requestId:`request`,messageId:`message`,threadId:`thread`,channelId:`channel`,guildId:`guild`,userId:`user`,runTimeoutSeconds:`timeout`,timeoutSeconds:`timeout`,includeTools:`tools`,pollQuestion:`poll`,maxChars:`max chars`};function Y(t){let n=i(t.name),r=n.toLowerCase(),o=q[r],s=o?.emoji??K.emoji??`🧩`,l=o?.title??a(n),u=o?.label??l,{verb:f,detail:p}=c({toolKey:r,args:t.args,meta:t.meta,spec:o,fallbackDetailKeys:K.detailKeys,detailMode:`summary`,detailMaxEntries:8,detailFormatKey:e=>d(e,J)});return p&&=e(p),{name:n,emoji:s,title:l,label:u,verb:f,detail:p}}function X(e){return H(e.detail?t(e.detail):void 0)}function Z(e){let t=X(e);return t?`${e.emoji} ${e.label}: ${t}`:`${e.emoji} ${e.label}`}export{Z as n,Y as r,X as t};
|
|
3
|
+
//# sourceMappingURL=tool-display-DjuSUUbH.js.map
|
package/dist/tui-B506apla.js
CHANGED
|
@@ -19,3 +19,4 @@ import{d as e,u as t}from"./subsystem-BLbY429l.js";import{E as n,J as r,Mi as i,
|
|
|
19
19
|
`:``)+c:``)).slice(0,s).trimEnd();if(a)for(let t of a.split(`
|
|
20
20
|
`))e.chatLog.addSystem(`[local] ${t}`);e.chatLog.addSystem(`[local] exit ${n??`?`}${i?` (signal ${String(i)})`:``}`),e.tui.requestRender(),t()}),n.on(`error`,n=>{e.chatLog.addSystem(`[local] error: ${String(n)}`),e.tui.requestRender(),t()})})}}}function tn(e,t){return{openOverlay:t=>{e.showOverlay(t)},closeOverlay:()=>{if(e.hasOverlay()){e.hideOverlay();return}e.setFocus(t)}}}function nn(e){let{client:t,chatLog:n,tui:r,opts:i,state:a,agentNames:o,initialSessionInput:s,initialSessionAgentId:c,resolveSessionKey:l,updateHeader:u,updateFooter:d,updateAutocompleteProvider:f,setActivityStatus:p,clearLocalRunIds:m}=e,_=Promise.resolve(),v=null,y=e=>{a.agentDefaultId=g(e.defaultId),a.sessionMainKey=ee(e.mainKey),a.sessionScope=e.scope??a.sessionScope,a.agents=e.agents.map(e=>({id:g(e.id),name:e.name?.trim()||void 0})),o.clear();for(let e of a.agents)e.name&&o.set(e.id,e.name);if(a.initialSessionApplied)a.agents.some(e=>e.id===a.currentAgentId)||(a.currentAgentId=a.agents[0]?.id??g(e.defaultId??a.currentAgentId));else{c?a.agents.some(e=>e.id===c)&&(a.currentAgentId=c):a.agents.some(e=>e.id===a.currentAgentId)||(a.currentAgentId=a.agents[0]?.id??g(e.defaultId??a.currentAgentId));let t=l(s);t!==a.currentSessionKey&&(a.currentSessionKey=t),a.initialSessionApplied=!0}u(),d()},b=async()=>{try{y(await t.listAgents())}catch(e){n.addSystem(`agents list failed: ${String(e)}`)}},x=e=>{let t=h(e);if(!t)return;let n=g(t.agentId);n!==a.currentAgentId&&(a.currentAgentId=n)},S=e=>{if(e?.modelProvider||e?.model)return{modelProvider:e.modelProvider??a.sessionInfo.modelProvider,model:e.model??a.sessionInfo.model};let t=e?.modelOverride?.trim();return t?{modelProvider:e?.providerOverride?.trim()||a.sessionInfo.modelProvider,model:t}:{modelProvider:a.sessionInfo.modelProvider,model:a.sessionInfo.model}},C=e=>{let t=e.entry??void 0,n=e.defaults??v??void 0,i=v,o=e.defaults?i?.model!==e.defaults.model||i?.modelProvider!==e.defaults.modelProvider||i?.contextTokens!==e.defaults.contextTokens:!1;e.defaults&&(v=e.defaults);let s=t?.updatedAt??null,c=a.sessionInfo.updatedAt??null;if(!e.force&&s!==null&&c!==null&&s<c&&!o)return;let l={...a.sessionInfo};t?.thinkingLevel!==void 0&&(l.thinkingLevel=t.thinkingLevel),t?.verboseLevel!==void 0&&(l.verboseLevel=t.verboseLevel),t?.reasoningLevel!==void 0&&(l.reasoningLevel=t.reasoningLevel),t?.responseUsage!==void 0&&(l.responseUsage=t.responseUsage),t?.inputTokens!==void 0&&(l.inputTokens=t.inputTokens),t?.outputTokens!==void 0&&(l.outputTokens=t.outputTokens),t?.totalTokens!==void 0&&(l.totalTokens=t.totalTokens),(t?.contextTokens!==void 0||n?.contextTokens!==void 0)&&(l.contextTokens=t?.contextTokens??n?.contextTokens??a.sessionInfo.contextTokens),t?.displayName!==void 0&&(l.displayName=t.displayName),t?.updatedAt!==void 0&&(l.updatedAt=t.updatedAt);let u=S(t);u.modelProvider!==void 0&&(l.modelProvider=u.modelProvider),u.model!==void 0&&(l.model=u.model),a.sessionInfo=l,f(),d(),r.requestRender()},w=async()=>{try{let e=(()=>{if(a.currentSessionKey===`global`||a.currentSessionKey===`unknown`)return;let e=h(a.currentSessionKey);return e?.agentId?g(e.agentId):a.currentAgentId})(),n=await t.listSessions({includeGlobal:!1,includeUnknown:!1,agentId:e}),r=e=>h(e)?.rest??e,i=r(a.currentSessionKey),o=n.sessions.find(e=>e.key===a.currentSessionKey?!0:r(e.key)===i);o?.key&&o.key!==a.currentSessionKey&&(x(o.key),a.currentSessionKey=o.key,u()),C({entry:o,defaults:n.defaults})}catch(e){n.addSystem(`sessions list failed: ${String(e)}`)}},T=async()=>{_=_.then(w,w),await _},E=e=>{if(!e?.entry)return;e.key&&e.key!==a.currentSessionKey&&(x(e.key),a.currentSessionKey=e.key,u());let t=e.resolved;C({entry:t&&(t.modelProvider||t.model)?{...e.entry,modelProvider:t.modelProvider??e.entry.modelProvider,model:t.model??e.entry.model}:e.entry,force:!0})},D=async()=>{try{let e=await t.loadHistory({sessionKey:a.currentSessionKey,limit:i.historyLimit??200});a.currentSessionId=typeof e.sessionId==`string`?e.sessionId:null,a.sessionInfo.thinkingLevel=e.thinkingLevel??a.sessionInfo.thinkingLevel,a.sessionInfo.verboseLevel=e.verboseLevel??a.sessionInfo.verboseLevel;let r=(a.sessionInfo.verboseLevel??`off`)!==`off`;n.clearAll(),n.addSystem(`session ${a.currentSessionKey}`);for(let t of e.messages??[]){if(!t||typeof t!=`object`)continue;let e=t;if(bt(e)){let t=yt(e);t&&n.addSystem(t);continue}if(e.role===`user`){let t=yt(e);t&&n.addUser(t);continue}if(e.role===`assistant`){let t=yt(e,{includeThinking:a.showThinking});t&&n.finalizeAssistant(t);continue}if(e.role===`toolResult`){if(!r)continue;let t=Ct(e.toolCallId,``),i=Ct(e.toolName,`tool`);n.startTool(t,i,{}).setResult({content:Array.isArray(e.content)?e.content:[],details:typeof e.details==`object`&&e.details?e.details:void 0},{isError:!!e.isError})}}a.historyLoaded=!0}catch(e){n.addSystem(`history failed: ${String(e)}`)}await T(),r.requestRender()};return{applyAgentsResult:y,refreshAgents:b,refreshSessionInfo:T,applySessionInfoFromPatch:E,loadHistory:D,setSession:async e=>{let t=l(e);x(t),a.currentSessionKey=t,a.activeChatRunId=null,a.currentSessionId=null,a.sessionInfo.updatedAt=null,a.historyLoaded=!1,m?.(),u(),d(),await D()},abortActive:async()=>{if(!a.activeChatRunId){n.addSystem(`no active run`),r.requestRender();return}try{await t.abortChat({sessionKey:a.currentSessionKey,runId:a.activeChatRunId}),p(`aborted`)}catch(e){n.addSystem(`abort failed: ${String(e)}`),p(`abort failed`)}r.requestRender()}}}const rn=[`flibbertigibbeting`,`kerfuffling`,`dillydallying`,`twiddling thumbs`,`noodling`,`bamboozling`,`moseying`,`hobnobbing`,`pondering`,`conjuring`];function an(e,t=rn){return t[Math.floor(e/10)%t.length]??t[0]??`waiting`}function on(e,t,n){let r=t=>e.bold(e.accentSoft(t)),i=n%(t.length+6),a=Math.max(0,i-6),o=Math.min(t.length-1,i),s=``;for(let n=0;n<t.length;n++){let i=t[n];s+=n>=a&&n<=o?r(i):e.dim(i)}return s}function sn(e){let t=an(e.tick,e.phrases);return`${on(e.theme,`${t}…`,e.tick)} • ${e.elapsed} | ${e.connectionStatus}`}function cn(e){return t=>{let n=t,r=n.trim();if(e.editor.setText(``),r){if(n.startsWith(`!`)&&n!==`!`){e.editor.addToHistory(n),e.handleBangLine(n);return}if(e.editor.addToHistory(r),r.startsWith(`/`)){e.handleCommand(r);return}e.sendMessage(r)}}}function ln(e){let t=e?.platform??process.platform,n=e?.env??process.env,r=(n.TERM_PROGRAM??``).toLowerCase();if(t===`darwin`)return!!(r.includes(`iterm`)||r.includes(`apple_terminal`));if(t!==`win32`)return!1;let i=(n.MSYSTEM??``).toUpperCase(),a=n.SHELL??``;return i.startsWith(`MINGW`)||i.startsWith(`MSYS`)||a.toLowerCase().includes(`bash`)?!0:r.includes(`mintty`)}function un(e){let t=Math.max(1,e.burstWindowMs??50),n=e.now??(()=>Date.now()),r=e.setTimer??setTimeout,i=e.clearTimer??clearTimeout,a=null,o=0,s=null,c=()=>{s&&=(i(s),null)},l=()=>{if(a===null)return;let t=a;a=null,o=0,c(),e.submit(t)},u=()=>{c(),s=r(()=>{l()},t)};return r=>{if(!e.enabled){e.submit(r);return}if(r.includes(`
|
|
21
21
|
`)){l(),e.submit(r);return}let i=n();if(a===null){a=r,o=i,u();return}if(i-o<=t){a=`${a}\n${r}`,o=i,u();return}l(),a=r,o=i,u()}}function dn(e){let t=(e.raw??``).trim();return t?t===`global`||t===`unknown`?t:t.startsWith(`agent:`)?t.toLowerCase():`agent:${e.currentAgentId}:${t.toLowerCase()}`:e.sessionScope===`global`?`global`:_({agentId:e.currentAgentId,mainKey:e.sessionMainKey})}function fn(e){let t=h((e.initialSessionInput??``).trim());return t?.agentId?g(t.agentId):p(e.cfg,e.cwd??process.cwd())||g(e.fallbackAgentId)}function pn(e){let t=e?.trim()?e.trim():`closed`;return/pairing required/i.test(t)?{connectionStatus:`gateway disconnected: ${t}`,activityStatus:`pairing required: run openclaw devices list`,pairingHint:"Pairing required. Run `openclaw devices list`, approve your request ID, then reconnect."}:{connectionStatus:`gateway disconnected: ${t}`,activityStatus:`idle`}}function mn(e){let t=Math.max(0,Math.floor(e?.dedupeWindowMs??8)),n=e?.now??(()=>Date.now()),r=-1;return e=>{if(!z(e,I.backspace))return e;let i=n();return r>=0&&i-r<=t?``:(r=i,e)}}function hn(e){if(!e||typeof e!=`object`)return!1;let t=e,n=typeof t.code==`string`?t.code:``,r=typeof t.syscall==`string`?t.syscall:``,i=typeof t.message==`string`?t.message:``;return n===`EBADF`&&r===`setRawMode`?!0:/setRawMode/i.test(i)&&/EBADF/i.test(i)}function gn(e){try{e()}catch(e){if(!hn(e))throw e}}function _n(e){let t=Math.max(1,Math.floor(e.exitWindowMs??1e3));return e.hasInput?{action:`clear`,nextLastCtrlCAt:e.now}:e.now-e.lastCtrlCAt<=t?{action:`exit`,nextLastCtrlCAt:e.lastCtrlCAt}:{action:`warn`,nextLastCtrlCAt:e.now}}async function vn(e){let t=o(),n=(e.session??``).trim(),r=t.session?.scope??`per-sender`,i=ee(t.session?.mainKey),a=m(t),s=fn({cfg:t,fallbackAgentId:a,initialSessionInput:n,cwd:process.cwd()}),c=[],l=new Map,u=``,d=!1,f=null,p=null,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=new Set,w=e.deliver??!1,T=e.message?.trim(),E=!1,D={},O=0,k=!1,A=`idle`,j=`connecting`,M=null,N=null,P=null,te=A,re={get agentDefaultId(){return a},set agentDefaultId(e){a=e},get sessionMainKey(){return i},set sessionMainKey(e){i=e},get sessionScope(){return r},set sessionScope(e){r=e},get agents(){return c},set agents(e){c=e},get currentAgentId(){return s},set currentAgentId(e){s=e},get currentSessionKey(){return u},set currentSessionKey(e){u=e},get currentSessionId(){return f},set currentSessionId(e){f=e},get activeChatRunId(){return p},set activeChatRunId(e){p=e},get historyLoaded(){return _},set historyLoaded(e){_=e},get sessionInfo(){return D},set sessionInfo(e){D=e},get initialSessionApplied(){return d},set initialSessionApplied(e){d=e},get isConnected(){return v},set isConnected(e){v=e},get autoMessageSent(){return E},set autoMessageSent(e){E=e},get toolsExpanded(){return b},set toolsExpanded(e){b=e},get showThinking(){return x},set showThinking(e){x=e},get connectionStatus(){return j},set connectionStatus(e){j=e},get activityStatus(){return A},set activityStatus(e){A=e},get statusTimeout(){return M},set statusTimeout(e){M=e},get lastCtrlCAt(){return O},set lastCtrlCAt(e){O=e}},ie=e=>{if(e&&(C.add(e),C.size>200)){let[e]=C;e&&C.delete(e)}},I=e=>{C.delete(e)},oe=e=>C.has(e),ce=()=>{C.clear()},L=await Nt.connect({url:e.url,token:e.token,password:e.password}),R=new le(new se),de=mn();R.addInputListener(e=>{let t=de(e);return t.length===0?{consume:!0}:{data:t}});let fe=new ue(``,1,0),z=new F,pe=new ue(``,1,0),B=new kt,V=new At(R,Ne),H=new F;H.addChild(fe),H.addChild(B),H.addChild(z),H.addChild(pe),H.addChild(V);let me=()=>{V.setAutocompleteProvider(new ne(ye({cfg:t,provider:D.modelProvider,model:D.model}),process.cwd()))};R.addChild(H),R.setFocus(V);let he=e=>e===`global`||e===`unknown`?e:h(e)?.rest??e,ge=e=>{let t=l.get(e);return t?`${e} (${t})`:e},_e=e=>dn({raw:e,sessionScope:r,currentAgentId:s,sessionMainKey:i});u=_e(n);let ve=()=>{let e=he(u),t=ge(s);fe.setText(Z.header(`openclaw tui - ${L.connection.url} - agent ${t} - session ${e}`))},U=new Set([`sending`,`waiting`,`streaming`,`running`]),W=null,G=null,be=e=>{let t=Math.max(0,Math.floor((Date.now()-e)/1e3));return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`},xe=()=>{W||(z.clear(),G?.stop(),G=null,W=new ue(``,1,0),z.addChild(W))},Se=()=>{G||(z.clear(),W=null,G=new ae(R,e=>Z.accent(e),e=>Z.bold(Z.accentSoft(e)),``),z.addChild(G))},Ce=0,we=null,K=null,Te=()=>{if(!G||!P)return;let e=be(P);if(A===`waiting`){Ce++,G.setMessage(sn({theme:Z,tick:Ce,elapsed:e,connectionStatus:j,phrases:K?[K]:void 0}));return}G.setMessage(`${A} • ${e} | ${j}`)},Ee=()=>{N||=setInterval(()=>{U.has(A)&&Te()},1e3)},De=()=>{N&&=(clearInterval(N),null)},q=()=>{we||=(K||=rn[Math.floor(Math.random()*rn.length)]??rn[0]??`waiting`,Ce=0,setInterval(()=>{A===`waiting`&&Te()},120))},J=()=>{we&&(clearInterval(we),we=null,K=null)},Y=()=>{if(U.has(A))(!P||te!==A)&&(P=Date.now()),Se(),A===`waiting`?(De(),q()):(J(),Ee()),Te();else{P=null,De(),J(),G?.stop(),G=null,xe();let e=A?`${j} | ${A}`:j;W?.setText(Z.dim(e))}te=A},Oe=(e,t)=>{j=e,Y(),M&&clearTimeout(M),t&&t>0&&(M=setTimeout(()=>{j=v?`connected`:`disconnected`,Y()},t))},X=e=>{A=e,Y()},Q=()=>{let e=he(u),t=D.displayName?`${e} (${D.displayName})`:e,n=ge(s),r=D.model?D.modelProvider?`${D.modelProvider}/${D.model}`:D.model:`unknown`,i=xt(D.totalTokens??null,D.contextTokens??null),a=D.thinkingLevel??`off`,o=D.verboseLevel??`off`,c=D.reasoningLevel??`off`,l=c===`on`?`reasoning`:c===`stream`?`reasoning:stream`:null,d=[`agent ${n}`,`session ${t}`,r,a===`off`?null:`think ${a}`,o===`off`?null:`verbose ${o}`,l,i].filter(Boolean);pe.setText(Z.dim(d.join(` | `)))},{openOverlay:ke,closeOverlay:Ae}=tn(R,V),{refreshAgents:je,refreshSessionInfo:Me,applySessionInfoFromPatch:Pe,loadHistory:Fe,setSession:Ie,abortActive:Le}=nn({client:L,chatLog:B,tui:R,opts:e,state:re,agentNames:l,initialSessionInput:n,initialSessionAgentId:(()=>{if(!n)return null;let e=h(n);return e?g(e.agentId):null})(),resolveSessionKey:_e,updateHeader:ve,updateFooter:Q,updateAutocompleteProvider:me,setActivityStatus:X,clearLocalRunIds:ce}),{handleChatEvent:Re,handleAgentEvent:ze}=$t({chatLog:B,tui:R,state:re,setActivityStatus:X,refreshSessionInfo:Me,loadHistory:Fe,isLocalRunId:oe,forgetLocalRunId:I,clearLocalRunIds:ce}),Be=()=>{k||(k=!0,L.stop(),gn(()=>R.stop()),process.exit(0))},{handleCommand:Ve,sendMessage:He,openModelSelector:Ue,openAgentSelector:We,openSessionSelector:Ge}=Jt({client:L,chatLog:B,tui:R,opts:e,state:re,deliverDefault:w,openOverlay:ke,closeOverlay:Ae,refreshSessionInfo:Me,applySessionInfoFromPatch:Pe,loadHistory:Fe,setSession:Ie,refreshAgents:je,abortActive:Le,setActivityStatus:X,formatSessionKey:he,noteLocalRunId:ie,forgetLocalRunId:I,requestExit:Be}),{runLocalShellLine:Ke}=en({chatLog:B,tui:R,openOverlay:ke,closeOverlay:Ae});me(),V.onSubmit=un({submit:cn({editor:V,handleCommand:Ve,sendMessage:He,handleBangLine:Ke}),enabled:ln()}),V.onEscape=()=>{Le()};let qe=()=>{let e=Date.now(),t=_n({hasInput:V.getText().trim().length>0,now:e,lastCtrlCAt:O});if(O=t.nextLastCtrlCAt,t.action===`clear`){V.setText(``),X(`cleared input; press ctrl+c again to exit`),R.requestRender();return}if(t.action===`exit`){Be();return}X(`press ctrl+c again to exit`),R.requestRender()};V.onCtrlC=()=>{qe()},V.onCtrlD=()=>{Be()},V.onCtrlO=()=>{b=!b,B.setToolsExpanded(b),X(b?`tools expanded`:`tools collapsed`),R.requestRender()},V.onCtrlL=()=>{Ue()},V.onCtrlG=()=>{We()},V.onCtrlP=()=>{Ge()},V.onCtrlT=()=>{x=!x,Fe()},L.onEvent=e=>{e.event===`chat`&&Re(e.payload),e.event===`agent`&&ze(e.payload)},L.onConnected=()=>{v=!0,S=!1;let e=y;y=!1,Oe(`connected`),(async()=>{await je(),ve(),await Fe(),Oe(e?`gateway reconnected`:`gateway connected`,4e3),R.requestRender(),!E&&T&&(E=!0,await He(T)),Q(),R.requestRender()})()},L.onDisconnected=e=>{v=!1,y=!0,_=!1;let t=pn(e);Oe(t.connectionStatus,5e3),X(t.activityStatus),t.pairingHint&&!S&&(S=!0,B.addSystem(t.pairingHint)),Q(),R.requestRender()},L.onGap=e=>{Oe(`event gap: expected ${e.expected}, got ${e.received}`,5e3),R.requestRender()},ve(),Oe(`connecting`),Q();let Je=()=>{qe()},Ye=()=>{Be()};process.on(`SIGINT`,Je),process.on(`SIGTERM`,Ye),R.start(),L.start(),await new Promise(e=>{process.once(`exit`,()=>{process.removeListener(`SIGINT`,Je),process.removeListener(`SIGTERM`,Ye),e()})})}export{vn as t};
|
|
22
|
+
//# sourceMappingURL=tui-B506apla.js.map
|
package/dist/tui-CJUkUxHb.js
CHANGED
|
@@ -19,3 +19,4 @@ import{d as e,u as t}from"./subsystem-C5XF2Fy5.js";import{Cu as n,Ml as r,Si as
|
|
|
19
19
|
`:``)+c:``)).slice(0,s).trimEnd();if(a)for(let t of a.split(`
|
|
20
20
|
`))e.chatLog.addSystem(`[local] ${t}`);e.chatLog.addSystem(`[local] exit ${n??`?`}${i?` (signal ${String(i)})`:``}`),e.tui.requestRender(),t()}),n.on(`error`,n=>{e.chatLog.addSystem(`[local] error: ${String(n)}`),e.tui.requestRender(),t()})})}}}function tn(e,t){return{openOverlay:t=>{e.showOverlay(t)},closeOverlay:()=>{if(e.hasOverlay()){e.hideOverlay();return}e.setFocus(t)}}}function nn(e){let{client:t,chatLog:n,tui:r,opts:i,state:a,agentNames:o,initialSessionInput:s,initialSessionAgentId:c,resolveSessionKey:l,updateHeader:u,updateFooter:d,updateAutocompleteProvider:f,setActivityStatus:p,clearLocalRunIds:m}=e,h=Promise.resolve(),y=null,b=e=>{a.agentDefaultId=_(e.defaultId),a.sessionMainKey=v(e.mainKey),a.sessionScope=e.scope??a.sessionScope,a.agents=e.agents.map(e=>({id:_(e.id),name:e.name?.trim()||void 0})),o.clear();for(let e of a.agents)e.name&&o.set(e.id,e.name);if(a.initialSessionApplied)a.agents.some(e=>e.id===a.currentAgentId)||(a.currentAgentId=a.agents[0]?.id??_(e.defaultId??a.currentAgentId));else{c?a.agents.some(e=>e.id===c)&&(a.currentAgentId=c):a.agents.some(e=>e.id===a.currentAgentId)||(a.currentAgentId=a.agents[0]?.id??_(e.defaultId??a.currentAgentId));let t=l(s);t!==a.currentSessionKey&&(a.currentSessionKey=t),a.initialSessionApplied=!0}u(),d()},x=async()=>{try{b(await t.listAgents())}catch(e){n.addSystem(`agents list failed: ${String(e)}`)}},S=e=>{let t=g(e);if(!t)return;let n=_(t.agentId);n!==a.currentAgentId&&(a.currentAgentId=n)},C=e=>{if(e?.modelProvider||e?.model)return{modelProvider:e.modelProvider??a.sessionInfo.modelProvider,model:e.model??a.sessionInfo.model};let t=e?.modelOverride?.trim();return t?{modelProvider:e?.providerOverride?.trim()||a.sessionInfo.modelProvider,model:t}:{modelProvider:a.sessionInfo.modelProvider,model:a.sessionInfo.model}},w=e=>{let t=e.entry??void 0,n=e.defaults??y??void 0,i=y,o=e.defaults?i?.model!==e.defaults.model||i?.modelProvider!==e.defaults.modelProvider||i?.contextTokens!==e.defaults.contextTokens:!1;e.defaults&&(y=e.defaults);let s=t?.updatedAt??null,c=a.sessionInfo.updatedAt??null;if(!e.force&&s!==null&&c!==null&&s<c&&!o)return;let l={...a.sessionInfo};t?.thinkingLevel!==void 0&&(l.thinkingLevel=t.thinkingLevel),t?.verboseLevel!==void 0&&(l.verboseLevel=t.verboseLevel),t?.reasoningLevel!==void 0&&(l.reasoningLevel=t.reasoningLevel),t?.responseUsage!==void 0&&(l.responseUsage=t.responseUsage),t?.inputTokens!==void 0&&(l.inputTokens=t.inputTokens),t?.outputTokens!==void 0&&(l.outputTokens=t.outputTokens),t?.totalTokens!==void 0&&(l.totalTokens=t.totalTokens),(t?.contextTokens!==void 0||n?.contextTokens!==void 0)&&(l.contextTokens=t?.contextTokens??n?.contextTokens??a.sessionInfo.contextTokens),t?.displayName!==void 0&&(l.displayName=t.displayName),t?.updatedAt!==void 0&&(l.updatedAt=t.updatedAt);let u=C(t);u.modelProvider!==void 0&&(l.modelProvider=u.modelProvider),u.model!==void 0&&(l.model=u.model),a.sessionInfo=l,f(),d(),r.requestRender()},ee=async()=>{try{let e=(()=>{if(a.currentSessionKey===`global`||a.currentSessionKey===`unknown`)return;let e=g(a.currentSessionKey);return e?.agentId?_(e.agentId):a.currentAgentId})(),n=await t.listSessions({includeGlobal:!1,includeUnknown:!1,agentId:e}),r=e=>g(e)?.rest??e,i=r(a.currentSessionKey),o=n.sessions.find(e=>e.key===a.currentSessionKey?!0:r(e.key)===i);o?.key&&o.key!==a.currentSessionKey&&(S(o.key),a.currentSessionKey=o.key,u()),w({entry:o,defaults:n.defaults})}catch(e){n.addSystem(`sessions list failed: ${String(e)}`)}},T=async()=>{h=h.then(ee,ee),await h},E=e=>{if(!e?.entry)return;e.key&&e.key!==a.currentSessionKey&&(S(e.key),a.currentSessionKey=e.key,u());let t=e.resolved;w({entry:t&&(t.modelProvider||t.model)?{...e.entry,modelProvider:t.modelProvider??e.entry.modelProvider,model:t.model??e.entry.model}:e.entry,force:!0})},D=async()=>{try{let e=await t.loadHistory({sessionKey:a.currentSessionKey,limit:i.historyLimit??200});a.currentSessionId=typeof e.sessionId==`string`?e.sessionId:null,a.sessionInfo.thinkingLevel=e.thinkingLevel??a.sessionInfo.thinkingLevel,a.sessionInfo.verboseLevel=e.verboseLevel??a.sessionInfo.verboseLevel;let r=(a.sessionInfo.verboseLevel??`off`)!==`off`;n.clearAll(),n.addSystem(`session ${a.currentSessionKey}`);for(let t of e.messages??[]){if(!t||typeof t!=`object`)continue;let e=t;if(bt(e)){let t=yt(e);t&&n.addSystem(t);continue}if(e.role===`user`){let t=yt(e);t&&n.addUser(t);continue}if(e.role===`assistant`){let t=yt(e,{includeThinking:a.showThinking});t&&n.finalizeAssistant(t);continue}if(e.role===`toolResult`){if(!r)continue;let t=Ct(e.toolCallId,``),i=Ct(e.toolName,`tool`);n.startTool(t,i,{}).setResult({content:Array.isArray(e.content)?e.content:[],details:typeof e.details==`object`&&e.details?e.details:void 0},{isError:!!e.isError})}}a.historyLoaded=!0}catch(e){n.addSystem(`history failed: ${String(e)}`)}await T(),r.requestRender()};return{applyAgentsResult:b,refreshAgents:x,refreshSessionInfo:T,applySessionInfoFromPatch:E,loadHistory:D,setSession:async e=>{let t=l(e);S(t),a.currentSessionKey=t,a.activeChatRunId=null,a.currentSessionId=null,a.sessionInfo.updatedAt=null,a.historyLoaded=!1,m?.(),u(),d(),await D()},abortActive:async()=>{if(!a.activeChatRunId){n.addSystem(`no active run`),r.requestRender();return}try{await t.abortChat({sessionKey:a.currentSessionKey,runId:a.activeChatRunId}),p(`aborted`)}catch(e){n.addSystem(`abort failed: ${String(e)}`),p(`abort failed`)}r.requestRender()}}}const rn=[`flibbertigibbeting`,`kerfuffling`,`dillydallying`,`twiddling thumbs`,`noodling`,`bamboozling`,`moseying`,`hobnobbing`,`pondering`,`conjuring`];function an(e,t=rn){return t[Math.floor(e/10)%t.length]??t[0]??`waiting`}function on(e,t,n){let r=t=>e.bold(e.accentSoft(t)),i=n%(t.length+6),a=Math.max(0,i-6),o=Math.min(t.length-1,i),s=``;for(let n=0;n<t.length;n++){let i=t[n];s+=n>=a&&n<=o?r(i):e.dim(i)}return s}function sn(e){let t=an(e.tick,e.phrases);return`${on(e.theme,`${t}…`,e.tick)} • ${e.elapsed} | ${e.connectionStatus}`}function cn(e){return t=>{let n=t,r=n.trim();if(e.editor.setText(``),r){if(n.startsWith(`!`)&&n!==`!`){e.editor.addToHistory(n),e.handleBangLine(n);return}if(e.editor.addToHistory(r),r.startsWith(`/`)){e.handleCommand(r);return}e.sendMessage(r)}}}function ln(e){let t=e?.platform??process.platform,n=e?.env??process.env,r=(n.TERM_PROGRAM??``).toLowerCase();if(t===`darwin`)return!!(r.includes(`iterm`)||r.includes(`apple_terminal`));if(t!==`win32`)return!1;let i=(n.MSYSTEM??``).toUpperCase(),a=n.SHELL??``;return i.startsWith(`MINGW`)||i.startsWith(`MSYS`)||a.toLowerCase().includes(`bash`)?!0:r.includes(`mintty`)}function un(e){let t=Math.max(1,e.burstWindowMs??50),n=e.now??(()=>Date.now()),r=e.setTimer??setTimeout,i=e.clearTimer??clearTimeout,a=null,o=0,s=null,c=()=>{s&&=(i(s),null)},l=()=>{if(a===null)return;let t=a;a=null,o=0,c(),e.submit(t)},u=()=>{c(),s=r(()=>{l()},t)};return r=>{if(!e.enabled){e.submit(r);return}if(r.includes(`
|
|
21
21
|
`)){l(),e.submit(r);return}let i=n();if(a===null){a=r,o=i,u();return}if(i-o<=t){a=`${a}\n${r}`,o=i,u();return}l(),a=r,o=i,u()}}function dn(e){let t=(e.raw??``).trim();return t?t===`global`||t===`unknown`?t:t.startsWith(`agent:`)?t.toLowerCase():`agent:${e.currentAgentId}:${t.toLowerCase()}`:e.sessionScope===`global`?`global`:y({agentId:e.currentAgentId,mainKey:e.sessionMainKey})}function fn(e){let t=g((e.initialSessionInput??``).trim());return t?.agentId?_(t.agentId):m(e.cfg,e.cwd??process.cwd())||_(e.fallbackAgentId)}function pn(e){let t=e?.trim()?e.trim():`closed`;return/pairing required/i.test(t)?{connectionStatus:`gateway disconnected: ${t}`,activityStatus:`pairing required: run openclaw devices list`,pairingHint:"Pairing required. Run `openclaw devices list`, approve your request ID, then reconnect."}:{connectionStatus:`gateway disconnected: ${t}`,activityStatus:`idle`}}function mn(e){let t=Math.max(0,Math.floor(e?.dedupeWindowMs??8)),n=e?.now??(()=>Date.now()),r=-1;return e=>{if(!R(e,F.backspace))return e;let i=n();return r>=0&&i-r<=t?``:(r=i,e)}}function hn(e){if(!e||typeof e!=`object`)return!1;let t=e,n=typeof t.code==`string`?t.code:``,r=typeof t.syscall==`string`?t.syscall:``,i=typeof t.message==`string`?t.message:``;return n===`EBADF`&&r===`setRawMode`?!0:/setRawMode/i.test(i)&&/EBADF/i.test(i)}function gn(e){try{e()}catch(e){if(!hn(e))throw e}}function _n(e){let t=Math.max(1,Math.floor(e.exitWindowMs??1e3));return e.hasInput?{action:`clear`,nextLastCtrlCAt:e.now}:e.now-e.lastCtrlCAt<=t?{action:`exit`,nextLastCtrlCAt:e.lastCtrlCAt}:{action:`warn`,nextLastCtrlCAt:e.now}}async function vn(e){let t=u(),n=(e.session??``).trim(),r=t.session?.scope??`per-sender`,i=v(t.session?.mainKey),a=h(t),o=fn({cfg:t,fallbackAgentId:a,initialSessionInput:n,cwd:process.cwd()}),s=[],c=new Map,l=``,d=!1,f=null,p=null,m=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=new Set,ee=e.deliver??!1,T=e.message?.trim(),E=!1,D={},O=0,k=!1,A=`idle`,j=`connecting`,M=null,te=null,N=null,ne=A,ie={get agentDefaultId(){return a},set agentDefaultId(e){a=e},get sessionMainKey(){return i},set sessionMainKey(e){i=e},get sessionScope(){return r},set sessionScope(e){r=e},get agents(){return s},set agents(e){s=e},get currentAgentId(){return o},set currentAgentId(e){o=e},get currentSessionKey(){return l},set currentSessionKey(e){l=e},get currentSessionId(){return f},set currentSessionId(e){f=e},get activeChatRunId(){return p},set activeChatRunId(e){p=e},get historyLoaded(){return m},set historyLoaded(e){m=e},get sessionInfo(){return D},set sessionInfo(e){D=e},get initialSessionApplied(){return d},set initialSessionApplied(e){d=e},get isConnected(){return y},set isConnected(e){y=e},get autoMessageSent(){return E},set autoMessageSent(e){E=e},get toolsExpanded(){return x},set toolsExpanded(e){x=e},get showThinking(){return S},set showThinking(e){S=e},get connectionStatus(){return j},set connectionStatus(e){j=e},get activityStatus(){return A},set activityStatus(e){A=e},get statusTimeout(){return M},set statusTimeout(e){M=e},get lastCtrlCAt(){return O},set lastCtrlCAt(e){O=e}},ae=e=>{if(e&&(w.add(e),w.size>200)){let[e]=w;e&&w.delete(e)}},F=e=>{w.delete(e)},se=e=>w.has(e),le=()=>{w.clear()},I=await Nt.connect({url:e.url,token:e.token,password:e.password}),L=new ue(new ce),fe=mn();L.addInputListener(e=>{let t=fe(e);return t.length===0?{consume:!0}:{data:t}});let pe=new de(``,1,0),R=new P,me=new de(``,1,0),z=new kt,B=new At(L,Pe),V=new P;V.addChild(pe),V.addChild(z),V.addChild(R),V.addChild(me),V.addChild(B);let he=()=>{B.setAutocompleteProvider(new re(xe({cfg:t,provider:D.modelProvider,model:D.model}),process.cwd()))};L.addChild(V),L.setFocus(B);let ge=e=>e===`global`||e===`unknown`?e:g(e)?.rest??e,_e=e=>{let t=c.get(e);return t?`${e} (${t})`:e},ve=e=>dn({raw:e,sessionScope:r,currentAgentId:o,sessionMainKey:i});l=ve(n);let ye=()=>{let e=ge(l),t=_e(o);pe.setText(X.header(`openclaw tui - ${I.connection.url} - agent ${t} - session ${e}`))},H=new Set([`sending`,`waiting`,`streaming`,`running`]),be=null,U=null,Se=e=>{let t=Math.max(0,Math.floor((Date.now()-e)/1e3));return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`},Ce=()=>{be||(R.clear(),U?.stop(),U=null,be=new de(``,1,0),R.addChild(be))},we=()=>{U||(R.clear(),be=null,U=new oe(L,e=>X.accent(e),e=>X.bold(X.accentSoft(e)),``),R.addChild(U))},Te=0,Ee=null,W=null,De=()=>{if(!U||!N)return;let e=Se(N);if(A===`waiting`){Te++,U.setMessage(sn({theme:X,tick:Te,elapsed:e,connectionStatus:j,phrases:W?[W]:void 0}));return}U.setMessage(`${A} • ${e} | ${j}`)},Oe=()=>{te||=setInterval(()=>{H.has(A)&&De()},1e3)},ke=()=>{te&&=(clearInterval(te),null)},G=()=>{Ee||=(W||=rn[Math.floor(Math.random()*rn.length)]??rn[0]??`waiting`,Te=0,setInterval(()=>{A===`waiting`&&De()},120))},K=()=>{Ee&&(clearInterval(Ee),Ee=null,W=null)},q=()=>{if(H.has(A))(!N||ne!==A)&&(N=Date.now()),we(),A===`waiting`?(ke(),G()):(K(),Oe()),De();else{N=null,ke(),K(),U?.stop(),U=null,Ce();let e=A?`${j} | ${A}`:j;be?.setText(X.dim(e))}ne=A},J=(e,t)=>{j=e,q(),M&&clearTimeout(M),t&&t>0&&(M=setTimeout(()=>{j=y?`connected`:`disconnected`,q()},t))},Y=e=>{A=e,q()},Z=()=>{let e=ge(l),t=D.displayName?`${e} (${D.displayName})`:e,n=_e(o),r=D.model?D.modelProvider?`${D.modelProvider}/${D.model}`:D.model:`unknown`,i=xt(D.totalTokens??null,D.contextTokens??null),a=D.thinkingLevel??`off`,s=D.verboseLevel??`off`,c=D.reasoningLevel??`off`,u=c===`on`?`reasoning`:c===`stream`?`reasoning:stream`:null,d=[`agent ${n}`,`session ${t}`,r,a===`off`?null:`think ${a}`,s===`off`?null:`verbose ${s}`,u,i].filter(Boolean);me.setText(X.dim(d.join(` | `)))},{openOverlay:Ae,closeOverlay:je}=tn(L,B),{refreshAgents:Me,refreshSessionInfo:Ne,applySessionInfoFromPatch:Fe,loadHistory:Ie,setSession:Le,abortActive:Re}=nn({client:I,chatLog:z,tui:L,opts:e,state:ie,agentNames:c,initialSessionInput:n,initialSessionAgentId:(()=>{if(!n)return null;let e=g(n);return e?_(e.agentId):null})(),resolveSessionKey:ve,updateHeader:ye,updateFooter:Z,updateAutocompleteProvider:he,setActivityStatus:Y,clearLocalRunIds:le}),{handleChatEvent:ze,handleAgentEvent:Be}=$t({chatLog:z,tui:L,state:ie,setActivityStatus:Y,refreshSessionInfo:Ne,loadHistory:Ie,isLocalRunId:se,forgetLocalRunId:F,clearLocalRunIds:le}),Q=()=>{k||(k=!0,I.stop(),gn(()=>L.stop()),process.exit(0))},{handleCommand:Ve,sendMessage:He,openModelSelector:Ue,openAgentSelector:We,openSessionSelector:Ge}=Jt({client:I,chatLog:z,tui:L,opts:e,state:ie,deliverDefault:ee,openOverlay:Ae,closeOverlay:je,refreshSessionInfo:Ne,applySessionInfoFromPatch:Fe,loadHistory:Ie,setSession:Le,refreshAgents:Me,abortActive:Re,setActivityStatus:Y,formatSessionKey:ge,noteLocalRunId:ae,forgetLocalRunId:F,requestExit:Q}),{runLocalShellLine:Ke}=en({chatLog:z,tui:L,openOverlay:Ae,closeOverlay:je});he(),B.onSubmit=un({submit:cn({editor:B,handleCommand:Ve,sendMessage:He,handleBangLine:Ke}),enabled:ln()}),B.onEscape=()=>{Re()};let qe=()=>{let e=Date.now(),t=_n({hasInput:B.getText().trim().length>0,now:e,lastCtrlCAt:O});if(O=t.nextLastCtrlCAt,t.action===`clear`){B.setText(``),Y(`cleared input; press ctrl+c again to exit`),L.requestRender();return}if(t.action===`exit`){Q();return}Y(`press ctrl+c again to exit`),L.requestRender()};B.onCtrlC=()=>{qe()},B.onCtrlD=()=>{Q()},B.onCtrlO=()=>{x=!x,z.setToolsExpanded(x),Y(x?`tools expanded`:`tools collapsed`),L.requestRender()},B.onCtrlL=()=>{Ue()},B.onCtrlG=()=>{We()},B.onCtrlP=()=>{Ge()},B.onCtrlT=()=>{S=!S,Ie()},I.onEvent=e=>{e.event===`chat`&&ze(e.payload),e.event===`agent`&&Be(e.payload)},I.onConnected=()=>{y=!0,C=!1;let e=b;b=!1,J(`connected`),(async()=>{await Me(),ye(),await Ie(),J(e?`gateway reconnected`:`gateway connected`,4e3),L.requestRender(),!E&&T&&(E=!0,await He(T)),Z(),L.requestRender()})()},I.onDisconnected=e=>{y=!1,b=!0,m=!1;let t=pn(e);J(t.connectionStatus,5e3),Y(t.activityStatus),t.pairingHint&&!C&&(C=!0,z.addSystem(t.pairingHint)),Z(),L.requestRender()},I.onGap=e=>{J(`event gap: expected ${e.expected}, got ${e.received}`,5e3),L.requestRender()},ye(),J(`connecting`),Z();let Je=()=>{qe()},Ye=()=>{Q()};process.on(`SIGINT`,Je),process.on(`SIGTERM`,Ye),L.start(),I.start(),await new Promise(e=>{process.once(`exit`,()=>{process.removeListener(`SIGINT`,Je),process.removeListener(`SIGTERM`,Ye),e()})})}export{vn as t};
|
|
22
|
+
//# sourceMappingURL=tui-CJUkUxHb.js.map
|
package/dist/tui-cli-BEdGHmhc.js
CHANGED
|
@@ -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"./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"./tool-display-DjuSUUbH.js";import"./commands-CGpM84iR.js";import"./commands-registry-B1x54ukc.js";import"./call-CqoMqP5b.js";import{t as n}from"./links-CySwdMcF.js";import{t as r}from"./parse-timeout-Dx4QnVzo.js";import{t as i}from"./tui-CJUkUxHb.js";function a(a){a.command(`tui`).description(`Open a terminal UI connected to the Gateway`).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 (if required)`).option(`--session <key>`,`Session key (default: "main", or "global" when scope is global)`).option(`--deliver`,`Deliver assistant replies`,!1).option(`--thinking <level>`,`Thinking level override`).option(`--message <text>`,`Send an initial message after connecting`).option(`--timeout-ms <ms>`,`Agent timeout in ms (defaults to agents.defaults.timeoutSeconds)`).option(`--history-limit <n>`,`History entries to load`,`200`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${n(`/cli/tui`,`docs.openclaw.ai/cli/tui`)}\n`).action(async e=>{try{let n=r(e.timeoutMs);e.timeoutMs!==void 0&&n===void 0&&t.error(`warning: invalid --timeout-ms "${String(e.timeoutMs)}"; ignoring`);let a=Number.parseInt(String(e.historyLimit??`200`),10);await i({url:e.url,token:e.token,password:e.password,session:e.session,deliver:!!e.deliver,thinking:e.thinking,message:e.message,timeoutMs:n,historyLimit:Number.isNaN(a)?void 0:a})}catch(e){t.error(String(e)),t.exit(1)}})}export{a as registerTuiCli};
|
|
2
|
+
//# sourceMappingURL=tui-cli-BEdGHmhc.js.map
|
package/dist/tui-cli-Cq_eXDAV.js
CHANGED
|
@@ -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"./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"./tool-display-DJDtttQg.js";import"./commands-Dy7duWlt.js";import"./commands-registry-Cpl4QnG4.js";import"./call-B8Fb4_oh.js";import{t as n}from"./parse-timeout-DWSGfCkQ.js";import{t as r}from"./links-CBnmRP9D.js";import{t as i}from"./tui-B506apla.js";function a(a){a.command(`tui`).description(`Open a terminal UI connected to the Gateway`).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 (if required)`).option(`--session <key>`,`Session key (default: "main", or "global" when scope is global)`).option(`--deliver`,`Deliver assistant replies`,!1).option(`--thinking <level>`,`Thinking level override`).option(`--message <text>`,`Send an initial message after connecting`).option(`--timeout-ms <ms>`,`Agent timeout in ms (defaults to agents.defaults.timeoutSeconds)`).option(`--history-limit <n>`,`History entries to load`,`200`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${r(`/cli/tui`,`docs.openclaw.ai/cli/tui`)}\n`).action(async e=>{try{let r=n(e.timeoutMs);e.timeoutMs!==void 0&&r===void 0&&t.error(`warning: invalid --timeout-ms "${String(e.timeoutMs)}"; ignoring`);let a=Number.parseInt(String(e.historyLimit??`200`),10);await i({url:e.url,token:e.token,password:e.password,session:e.session,deliver:!!e.deliver,thinking:e.thinking,message:e.message,timeoutMs:r,historyLimit:Number.isNaN(a)?void 0:a})}catch(e){t.error(String(e)),t.exit(1)}})}export{a as registerTuiCli};
|
|
2
|
+
//# sourceMappingURL=tui-cli-Cq_eXDAV.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=`default`,t=/^[A-Z][A-Z0-9_]{0,127}$/,n=/^\$\{([A-Z][A-Z0-9_]{0,127})\}$/;function r(e){return t.test(e)}function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e){return!i(e)||Object.keys(e).length!==3?!1:(e.source===`env`||e.source===`file`||e.source===`exec`)&&typeof e.provider==`string`&&e.provider.trim().length>0&&typeof e.id==`string`&&e.id.trim().length>0}function o(e){return i(e)?(e.source===`env`||e.source===`file`||e.source===`exec`)&&typeof e.id==`string`&&e.id.trim().length>0&&e.provider===void 0:!1}function s(t,r=e){if(typeof t!=`string`)return null;let i=n.exec(t.trim());return i?{source:`env`,provider:r.trim()||`default`,id:i[1]}:null}function c(e,t){if(a(e))return e;if(o(e)){let n=e.source===`env`?t?.env??`default`:e.source===`file`?t?.file??`default`:t?.exec??`default`;return{source:e.source,provider:n,id:e.id}}return s(e,t?.env)||null}function l(e,t){return u(e)?!0:c(e,t)!==null}function u(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function d(e){return`${e.source}:${e.provider}:${e.id}`}function f(e){let{ref:t}=m({value:e.value,refValue:e.refValue,defaults:e.defaults});if(t)throw Error(`${e.path}: unresolved SecretRef "${d(t)}". Resolve this command against an active gateway runtime snapshot before reading it.`)}function p(e){let t=u(e.value);if(t)return t;f(e)}function m(e){let t=c(e.refValue,e.defaults),n=t?null:c(e.value,e.defaults);return{explicitRef:t,inlineRef:n,ref:t??n}}export{l as a,p as c,m as d,c as i,u as l,t as n,a as o,f as r,r as s,e as t,s as u};
|
|
2
|
+
//# sourceMappingURL=types.secrets-C-5U96pc.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=`default`,t=/^[A-Z][A-Z0-9_]{0,127}$/,n=/^\$\{([A-Z][A-Z0-9_]{0,127})\}$/;function r(e){return t.test(e)}function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e){return!i(e)||Object.keys(e).length!==3?!1:(e.source===`env`||e.source===`file`||e.source===`exec`)&&typeof e.provider==`string`&&e.provider.trim().length>0&&typeof e.id==`string`&&e.id.trim().length>0}function o(e){return i(e)?(e.source===`env`||e.source===`file`||e.source===`exec`)&&typeof e.id==`string`&&e.id.trim().length>0&&e.provider===void 0:!1}function s(t,r=e){if(typeof t!=`string`)return null;let i=n.exec(t.trim());return i?{source:`env`,provider:r.trim()||`default`,id:i[1]}:null}function c(e,t){if(a(e))return e;if(o(e)){let n=e.source===`env`?t?.env??`default`:e.source===`file`?t?.file??`default`:t?.exec??`default`;return{source:e.source,provider:n,id:e.id}}return s(e,t?.env)||null}function l(e,t){return u(e)?!0:c(e,t)!==null}function u(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function d(e){return`${e.source}:${e.provider}:${e.id}`}function f(e){let{ref:t}=m({value:e.value,refValue:e.refValue,defaults:e.defaults});if(t)throw Error(`${e.path}: unresolved SecretRef "${d(t)}". Resolve this command against an active gateway runtime snapshot before reading it.`)}function p(e){let t=u(e.value);if(t)return t;f(e)}function m(e){let t=c(e.refValue,e.defaults),n=t?null:c(e.value,e.defaults);return{explicitRef:t,inlineRef:n,ref:t??n}}export{l as a,p as c,m as d,c as i,u as l,t as n,a as o,f as r,r as s,e as t,s as u};
|
|
2
|
+
//# sourceMappingURL=types.secrets-D4tbc3Wq.js.map
|
package/dist/update-BGrxUIyz.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{y as e}from"./utils-UGOV_184.js";import{a as t}from"./openclaw-root-D_0Q6--h.js";import{a as n,l as r,n as i,o as a,s as o,t as s}from"./installs-BNeI_oML.js";import c from"node:fs";import l from"node:path";function u(e){return e.result.code===a.NPM_PACKAGE_NOT_FOUND?`Failed to ${e.phase} ${e.pluginId}: npm package not found for ${e.spec}.`:`Failed to ${e.phase} ${e.pluginId}: ${e.result.error}`}function d(e,t){if(!t||!e)return;let n=e.trim();if(!n)return;let r=n.lastIndexOf(`@`);if(r<=0||r>=n.length-1)return;let i=n.slice(r+1).trim();if(/^v?\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(i))return t}async function f(e){let n=t({absolutePath:l.join(e,`package.json`),rootPath:e,boundaryLabel:`installed plugin directory`});if(n.ok)try{let e=c.readFileSync(n.fd,`utf-8`),t=JSON.parse(e);return typeof t.version==`string`?t.version:void 0}catch{return}finally{c.closeSync(n.fd)}}function p(t,n){return!t||!n?!1:e(t)===e(n)}function m(t){let n=[...t],r=()=>new Set(n.map(t=>e(t))),i=r(),a=!1;return{addPath:t=>{let r=e(t);i.has(r)||(n.push(t),i.add(r),a=!0)},removePath:t=>{let o=e(t);i.has(o)&&(n=n.filter(t=>e(t)!==o),i=r(),a=!0)},get changed(){return a},get paths(){return n}}}function h(e){return async t=>{let n={pluginId:e.pluginId,spec:t.spec,expectedIntegrity:t.expectedIntegrity,actualIntegrity:t.actualIntegrity,resolvedSpec:t.resolution.resolvedSpec,resolvedVersion:t.resolution.version,dryRun:e.dryRun};return e.onIntegrityDrift?await e.onIntegrityDrift(n):(e.logger.warn?.(`Integrity drift for "${e.pluginId}" (${n.resolvedSpec??n.spec}): expected ${n.expectedIntegrity}, got ${n.actualIntegrity}`),!0)}}async function g(e){let t=e.logger??{},n=e.config.plugins?.installs??{},a=e.pluginIds?.length?e.pluginIds:Object.keys(n),c=[],l=e.config,p=!1;for(let m of a){if(e.skipIds?.has(m)){c.push({pluginId:m,status:`skipped`,message:`Skipping "${m}" (already updated).`});continue}let a=n[m];if(!a){c.push({pluginId:m,status:`skipped`,message:`No install record for "${m}".`});continue}if(a.source!==`npm`){c.push({pluginId:m,status:`skipped`,message:`Skipping "${m}" (source: ${a.source}).`});continue}if(!a.spec){c.push({pluginId:m,status:`skipped`,message:`Skipping "${m}" (missing npm spec).`});continue}let g;try{g=a.installPath??r(m)}catch(e){c.push({pluginId:m,status:`error`,message:`Invalid install path for "${m}": ${String(e)}`});continue}let _=await f(g);if(e.dryRun){let n;try{n=await o({spec:a.spec,mode:`update`,dryRun:!0,expectedPluginId:m,expectedIntegrity:d(a.spec,a.integrity),onIntegrityDrift:h({pluginId:m,dryRun:!0,logger:t,onIntegrityDrift:e.onIntegrityDrift}),logger:t})}catch(e){c.push({pluginId:m,status:`error`,message:`Failed to check ${m}: ${String(e)}`});continue}if(!n.ok){c.push({pluginId:m,status:`error`,message:u({pluginId:m,spec:a.spec,phase:`check`,result:n})});continue}let r=n.version??`unknown`,i=_??`unknown`;_&&n.version&&_===n.version?c.push({pluginId:m,status:`unchanged`,currentVersion:_??void 0,nextVersion:n.version??void 0,message:`${m} is up to date (${i}).`}):c.push({pluginId:m,status:`updated`,currentVersion:_??void 0,nextVersion:n.version??void 0,message:`Would update ${m}: ${i} -> ${r}.`});continue}let v;try{v=await o({spec:a.spec,mode:`update`,expectedPluginId:m,expectedIntegrity:d(a.spec,a.integrity),onIntegrityDrift:h({pluginId:m,dryRun:!1,logger:t,onIntegrityDrift:e.onIntegrityDrift}),logger:t})}catch(e){c.push({pluginId:m,status:`error`,message:`Failed to update ${m}: ${String(e)}`});continue}if(!v.ok){c.push({pluginId:m,status:`error`,message:u({pluginId:m,spec:a.spec,phase:`update`,result:v})});continue}let y=v.version??await f(v.targetDir);l=i(l,{pluginId:m,source:`npm`,spec:a.spec,installPath:v.targetDir,version:y,...s(v.npmResolution)}),p=!0;let b=_??`unknown`,x=y??`unknown`;_&&y&&_===y?c.push({pluginId:m,status:`unchanged`,currentVersion:_??void 0,nextVersion:y??void 0,message:`${m} already at ${b}.`}):c.push({pluginId:m,status:`updated`,currentVersion:_??void 0,nextVersion:y??void 0,message:`Updated ${m}: ${b} -> ${x}.`})}return{config:l,changed:p,outcomes:c}}async function _(e){let t={switchedToBundled:[],switchedToNpm:[],warnings:[],errors:[]},r=n({workspaceDir:e.workspaceDir});if(r.size===0)return{config:e.config,changed:!1,summary:t};let a=e.config,o=m(a.plugins?.load?.paths??[]),s=a.plugins?.installs??{},c=!1;if(e.channel===`dev`)for(let[e,n]of Object.entries(s)){let s=r.get(e);s&&(o.addPath(s.localPath),!(n.source===`path`&&p(n.sourcePath,s.localPath))&&(a=i(a,{pluginId:e,source:`path`,sourcePath:s.localPath,installPath:s.localPath,spec:n.spec??s.npmSpec,version:n.version}),t.switchedToBundled.push(e),c=!0))}else for(let[e,t]of Object.entries(s)){let n=r.get(e);if(n){if(t.source===`npm`){o.removePath(n.localPath);continue}t.source===`path`&&p(t.sourcePath,n.localPath)&&(o.addPath(n.localPath),!(t.source===`path`&&p(t.sourcePath,n.localPath)&&p(t.installPath,n.localPath))&&(a=i(a,{pluginId:e,source:`path`,sourcePath:n.localPath,installPath:n.localPath,spec:t.spec??n.npmSpec,version:t.version}),c=!0))}}return o.changed&&(a={...a,plugins:{...a.plugins,load:{...a.plugins?.load,paths:o.paths}}},c=!0),{config:a,changed:c,summary:t}}export{g as n,_ as t};
|
|
2
|
+
//# sourceMappingURL=update-BGrxUIyz.js.map
|
package/dist/update-CwTy5DPl.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{v as e}from"./utils-CGdo13HV.js";import{a as t}from"./openclaw-root-CnsBf6ZU.js";import{a as n,l as r,n as i,o as a,s as o,t as s}from"./installs-C1xQLuby.js";import c from"node:path";import l from"node:fs";function u(e){return e.result.code===a.NPM_PACKAGE_NOT_FOUND?`Failed to ${e.phase} ${e.pluginId}: npm package not found for ${e.spec}.`:`Failed to ${e.phase} ${e.pluginId}: ${e.result.error}`}function d(e,t){if(!t||!e)return;let n=e.trim();if(!n)return;let r=n.lastIndexOf(`@`);if(r<=0||r>=n.length-1)return;let i=n.slice(r+1).trim();if(/^v?\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(i))return t}async function f(e){let n=t({absolutePath:c.join(e,`package.json`),rootPath:e,boundaryLabel:`installed plugin directory`});if(n.ok)try{let e=l.readFileSync(n.fd,`utf-8`),t=JSON.parse(e);return typeof t.version==`string`?t.version:void 0}catch{return}finally{l.closeSync(n.fd)}}function p(t,n){return!t||!n?!1:e(t)===e(n)}function m(t){let n=[...t],r=()=>new Set(n.map(t=>e(t))),i=r(),a=!1;return{addPath:t=>{let r=e(t);i.has(r)||(n.push(t),i.add(r),a=!0)},removePath:t=>{let o=e(t);i.has(o)&&(n=n.filter(t=>e(t)!==o),i=r(),a=!0)},get changed(){return a},get paths(){return n}}}function h(e){return async t=>{let n={pluginId:e.pluginId,spec:t.spec,expectedIntegrity:t.expectedIntegrity,actualIntegrity:t.actualIntegrity,resolvedSpec:t.resolution.resolvedSpec,resolvedVersion:t.resolution.version,dryRun:e.dryRun};return e.onIntegrityDrift?await e.onIntegrityDrift(n):(e.logger.warn?.(`Integrity drift for "${e.pluginId}" (${n.resolvedSpec??n.spec}): expected ${n.expectedIntegrity}, got ${n.actualIntegrity}`),!0)}}async function g(e){let t=e.logger??{},n=e.config.plugins?.installs??{},a=e.pluginIds?.length?e.pluginIds:Object.keys(n),c=[],l=e.config,p=!1;for(let m of a){if(e.skipIds?.has(m)){c.push({pluginId:m,status:`skipped`,message:`Skipping "${m}" (already updated).`});continue}let a=n[m];if(!a){c.push({pluginId:m,status:`skipped`,message:`No install record for "${m}".`});continue}if(a.source!==`npm`){c.push({pluginId:m,status:`skipped`,message:`Skipping "${m}" (source: ${a.source}).`});continue}if(!a.spec){c.push({pluginId:m,status:`skipped`,message:`Skipping "${m}" (missing npm spec).`});continue}let g;try{g=a.installPath??r(m)}catch(e){c.push({pluginId:m,status:`error`,message:`Invalid install path for "${m}": ${String(e)}`});continue}let _=await f(g);if(e.dryRun){let n;try{n=await o({spec:a.spec,mode:`update`,dryRun:!0,expectedPluginId:m,expectedIntegrity:d(a.spec,a.integrity),onIntegrityDrift:h({pluginId:m,dryRun:!0,logger:t,onIntegrityDrift:e.onIntegrityDrift}),logger:t})}catch(e){c.push({pluginId:m,status:`error`,message:`Failed to check ${m}: ${String(e)}`});continue}if(!n.ok){c.push({pluginId:m,status:`error`,message:u({pluginId:m,spec:a.spec,phase:`check`,result:n})});continue}let r=n.version??`unknown`,i=_??`unknown`;_&&n.version&&_===n.version?c.push({pluginId:m,status:`unchanged`,currentVersion:_??void 0,nextVersion:n.version??void 0,message:`${m} is up to date (${i}).`}):c.push({pluginId:m,status:`updated`,currentVersion:_??void 0,nextVersion:n.version??void 0,message:`Would update ${m}: ${i} -> ${r}.`});continue}let v;try{v=await o({spec:a.spec,mode:`update`,expectedPluginId:m,expectedIntegrity:d(a.spec,a.integrity),onIntegrityDrift:h({pluginId:m,dryRun:!1,logger:t,onIntegrityDrift:e.onIntegrityDrift}),logger:t})}catch(e){c.push({pluginId:m,status:`error`,message:`Failed to update ${m}: ${String(e)}`});continue}if(!v.ok){c.push({pluginId:m,status:`error`,message:u({pluginId:m,spec:a.spec,phase:`update`,result:v})});continue}let y=v.version??await f(v.targetDir);l=i(l,{pluginId:m,source:`npm`,spec:a.spec,installPath:v.targetDir,version:y,...s(v.npmResolution)}),p=!0;let b=_??`unknown`,x=y??`unknown`;_&&y&&_===y?c.push({pluginId:m,status:`unchanged`,currentVersion:_??void 0,nextVersion:y??void 0,message:`${m} already at ${b}.`}):c.push({pluginId:m,status:`updated`,currentVersion:_??void 0,nextVersion:y??void 0,message:`Updated ${m}: ${b} -> ${x}.`})}return{config:l,changed:p,outcomes:c}}async function _(e){let t={switchedToBundled:[],switchedToNpm:[],warnings:[],errors:[]},r=n({workspaceDir:e.workspaceDir});if(r.size===0)return{config:e.config,changed:!1,summary:t};let a=e.config,o=m(a.plugins?.load?.paths??[]),s=a.plugins?.installs??{},c=!1;if(e.channel===`dev`)for(let[e,n]of Object.entries(s)){let s=r.get(e);s&&(o.addPath(s.localPath),!(n.source===`path`&&p(n.sourcePath,s.localPath))&&(a=i(a,{pluginId:e,source:`path`,sourcePath:s.localPath,installPath:s.localPath,spec:n.spec??s.npmSpec,version:n.version}),t.switchedToBundled.push(e),c=!0))}else for(let[e,t]of Object.entries(s)){let n=r.get(e);if(n){if(t.source===`npm`){o.removePath(n.localPath);continue}t.source===`path`&&p(t.sourcePath,n.localPath)&&(o.addPath(n.localPath),!(t.source===`path`&&p(t.sourcePath,n.localPath)&&p(t.installPath,n.localPath))&&(a=i(a,{pluginId:e,source:`path`,sourcePath:n.localPath,installPath:n.localPath,spec:t.spec??n.npmSpec,version:t.version}),c=!0))}}return o.changed&&(a={...a,plugins:{...a.plugins,load:{...a.plugins?.load,paths:o.paths}}},c=!0),{config:a,changed:c,summary:t}}export{g as n,_ as t};
|
|
2
|
+
//# sourceMappingURL=update-CwTy5DPl.js.map
|
|
@@ -74,3 +74,4 @@ ${r.heading(`Notes:`)}
|
|
|
74
74
|
- Skips update if the working directory has uncommitted changes
|
|
75
75
|
|
|
76
76
|
${r.muted(`Docs:`)} ${g(`/cli/update`,`docs.openclaw.ai/cli/update`)}`}).action(async e=>{try{await lt({json:!!e.json,restart:!!e.restart,dryRun:!!e.dryRun,channel:e.channel,tag:e.tag,timeout:e.timeout,yes:!!e.yes})}catch(e){i.error(String(e)),i.exit(1)}});t.command(`wizard`).description(`Interactive update wizard`).option(`--timeout <seconds>`,`Timeout for each update step in seconds (default: 1200)`).addHelpText(`after`,`\n${r.muted(`Docs:`)} ${g(`/cli/update`,`docs.openclaw.ai/cli/update`)}\n`).action(async(e,t)=>{try{await ut({timeout:ft(e,t)})}catch(e){i.error(String(e)),i.exit(1)}}),t.command(`status`).description(`Show update channel and version status`).option(`--json`,`Output result as JSON`,!1).option(`--timeout <seconds>`,`Timeout for update checks in seconds (default: 3)`).addHelpText(`after`,()=>`\n${r.heading(`Examples:`)}\n${_([[`openclaw update status`,`Show channel + version status.`],[`openclaw update status --json`,`JSON output.`],[`openclaw update status --timeout 10`,`Custom timeout.`]])}\n\n${r.heading(`Notes:`)}\n${r.muted(`- Shows current update channel (stable/beta/dev) and source`)}\n${r.muted(`- Includes git tag/branch/SHA for source checkouts`)}\n\n${r.muted(`Docs:`)} ${g(`/cli/update`,`docs.openclaw.ai/cli/update`)}`).action(async(e,t)=>{try{await Re({json:!!e.json||dt(t),timeout:ft(e,t)})}catch(e){i.error(String(e)),i.exit(1)}})}export{pt as registerUpdateCli};
|
|
77
|
+
//# sourceMappingURL=update-cli-BwBMOeP0.js.map
|
|
@@ -74,3 +74,4 @@ ${e.heading(`Notes:`)}
|
|
|
74
74
|
- Skips update if the working directory has uncommitted changes
|
|
75
75
|
|
|
76
76
|
${e.muted(`Docs:`)} ${b(`/cli/update`,`docs.openclaw.ai/cli/update`)}`}).action(async e=>{try{await lt({json:!!e.json,restart:!!e.restart,dryRun:!!e.dryRun,channel:e.channel,tag:e.tag,timeout:e.timeout,yes:!!e.yes})}catch(e){t.error(String(e)),t.exit(1)}});r.command(`wizard`).description(`Interactive update wizard`).option(`--timeout <seconds>`,`Timeout for each update step in seconds (default: 1200)`).addHelpText(`after`,`\n${e.muted(`Docs:`)} ${b(`/cli/update`,`docs.openclaw.ai/cli/update`)}\n`).action(async(e,n)=>{try{await ut({timeout:ft(e,n)})}catch(e){t.error(String(e)),t.exit(1)}}),r.command(`status`).description(`Show update channel and version status`).option(`--json`,`Output result as JSON`,!1).option(`--timeout <seconds>`,`Timeout for update checks in seconds (default: 3)`).addHelpText(`after`,()=>`\n${e.heading(`Examples:`)}\n${x([[`openclaw update status`,`Show channel + version status.`],[`openclaw update status --json`,`JSON output.`],[`openclaw update status --timeout 10`,`Custom timeout.`]])}\n\n${e.heading(`Notes:`)}\n${e.muted(`- Shows current update channel (stable/beta/dev) and source`)}\n${e.muted(`- Includes git tag/branch/SHA for source checkouts`)}\n\n${e.muted(`Docs:`)} ${b(`/cli/update`,`docs.openclaw.ai/cli/update`)}`).action(async(e,n)=>{try{await Re({json:!!e.json||dt(n),timeout:ft(e,n)})}catch(e){t.error(String(e)),t.exit(1)}})}export{pt as registerUpdateCli};
|
|
77
|
+
//# sourceMappingURL=update-cli-YrBbmw4f.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import{m as e}from"./utils-CGdo13HV.js";import{t}from"./exec-B3eleY5O.js";import{Gt as n,Nt as r,Rt as i,Vt as a,Wt as o}from"./compact-Dg66DXx_.js";import{i as s,r as c,t as l}from"./stagger-DxzgG2jd.js";import{c as u}from"./daemon-install-plan.shared-Dx3DBXCG.js";import{i as d,r as f}from"./control-ui-assets-CTHGGgaX.js";import{f as p,l as m,p as h,r as g,s as _,u as v}from"./channel-account-context-DAcarnqW.js";import y from"node:os";import b from"node:path";import x from"node:fs/promises";import{Cron as S}from"croner";const C=new Map;function w(e){return(typeof e==`string`?e.trim():``)||Intl.DateTimeFormat().resolvedOptions().timeZone}function T(e,t){let n=`${t}\u0000${e}`,r=C.get(n);if(r)return r;if(C.size>=512){let e=C.keys().next().value;e&&C.delete(e)}let i=new S(e,{timezone:t,catch:!1});return C.set(n,i),i}function E(e){let t=typeof e.expr==`string`?e.expr:e.cron;if(typeof t!=`string`)throw Error(`invalid cron schedule: expr is required`);let n=t.trim();if(n)return T(n,w(e.tz))}function D(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(typeof e==`string`){let t=e.trim();if(!t)return;let n=Number(t);return Number.isFinite(n)?n:void 0}}function O(e,t){if(e.kind===`at`){let n=e,r=typeof n.atMs==`number`&&Number.isFinite(n.atMs)&&n.atMs>0?n.atMs:typeof n.atMs==`string`?s(n.atMs):typeof n.at==`string`?s(n.at):null;return r===null?void 0:r>t?r:void 0}if(e.kind===`every`){let n=D(e.everyMs);if(n===void 0)return;let r=Math.max(1,Math.floor(n)),i=D(e.anchorMs),a=Math.max(0,Math.floor(i??t));if(t<a)return a;let o=t-a;return a+Math.max(1,Math.floor((o+r-1)/r))*r}let n=E(e);if(!n)return;let r=n.nextRun(new Date(t));if(!r)return;let i=r.getTime();if(Number.isFinite(i)){if(i<=t){let e=Math.floor(t/1e3)*1e3+1e3,r=n.nextRun(new Date(e));if(r){let e=r.getTime();if(Number.isFinite(e)&&e>t)return e}let i=new Date(t).setUTCHours(24,0,0,0),a=n.nextRun(new Date(i));if(a){let e=a.getTime();if(Number.isFinite(e)&&e>t)return e}return}return i}}function k(e,t){if(e.kind!==`cron`)return;let n=E(e);if(!n)return;let r=n.previousRuns(1,new Date(t))[0];if(!r)return;let i=r.getTime();if(Number.isFinite(i)&&!(i>=t))return i}function A(e,t){e[t]=(e[t]??0)+1}function j(e){let t=typeof e.kind==`string`?e.kind.trim().toLowerCase():``;return t===`agentturn`?(e.kind=`agentTurn`,!0):t===`systemevent`?(e.kind=`systemEvent`,!0):!1}function M(e){let t=typeof e.message==`string`?e.message.trim():``,n=typeof e.text==`string`?e.text.trim():``,r=typeof e.command==`string`?e.command.trim():``;return t?(e.payload={kind:`agentTurn`,message:t},!0):n?(e.payload={kind:`systemEvent`,text:n},!0):r?(e.payload={kind:`systemEvent`,text:r},!0):!1}function N(e,t){let n=!1,r=r=>{let i=t[r];if(typeof i==`string`&&i.trim())return;let a=e[r];typeof a==`string`&&a.trim()&&(t[r]=a.trim(),n=!0)};return r(`model`),r(`thinking`),typeof t.timeoutSeconds!=`number`&&typeof e.timeoutSeconds==`number`&&Number.isFinite(e.timeoutSeconds)&&(t.timeoutSeconds=Math.max(0,Math.floor(e.timeoutSeconds)),n=!0),typeof t.allowUnsafeExternalContent!=`boolean`&&typeof e.allowUnsafeExternalContent==`boolean`&&(t.allowUnsafeExternalContent=e.allowUnsafeExternalContent,n=!0),typeof t.deliver!=`boolean`&&typeof e.deliver==`boolean`&&(t.deliver=e.deliver,n=!0),typeof t.channel!=`string`&&typeof e.channel==`string`&&e.channel.trim()&&(t.channel=e.channel.trim(),n=!0),typeof t.to!=`string`&&typeof e.to==`string`&&e.to.trim()&&(t.to=e.to.trim(),n=!0),typeof t.bestEffortDeliver!=`boolean`&&typeof e.bestEffortDeliver==`boolean`&&(t.bestEffortDeliver=e.bestEffortDeliver,n=!0),typeof t.provider!=`string`&&typeof e.provider==`string`&&e.provider.trim()&&(t.provider=e.provider.trim(),n=!0),n}function ee(e){`model`in e&&delete e.model,`thinking`in e&&delete e.thinking,`timeoutSeconds`in e&&delete e.timeoutSeconds,`allowUnsafeExternalContent`in e&&delete e.allowUnsafeExternalContent,`message`in e&&delete e.message,`text`in e&&delete e.text,`deliver`in e&&delete e.deliver,`channel`in e&&delete e.channel,`to`in e&&delete e.to,`bestEffortDeliver`in e&&delete e.bestEffortDeliver,`provider`in e&&delete e.provider,`command`in e&&delete e.command,`timeout`in e&&delete e.timeout}function P(e){let t={},r=!1;for(let u of e){let e=new Set,d=n=>{e.has(n)||(e.add(n),A(t,n))},f=u.state;(!f||typeof f!=`object`||Array.isArray(f))&&(u.state={},r=!0);let p=typeof u.id==`string`?u.id.trim():``,m=typeof u.jobId==`string`?u.jobId.trim():``;!p&&m?(u.id=m,r=!0,d(`jobId`)):p&&u.id!==p&&(u.id=p,r=!0),`jobId`in u&&(delete u.jobId,r=!0,d(`jobId`)),typeof u.schedule==`string`&&(u.schedule={kind:`cron`,expr:u.schedule.trim()},r=!0,d(`legacyScheduleString`));let h=u.name;typeof h!=`string`||h.trim().length===0?(u.name=i({schedule:u.schedule,payload:u.payload}),r=!0):u.name=h.trim();let g=a(u.description);if(u.description!==g&&(u.description=g,r=!0),`sessionKey`in u){let e=typeof u.sessionKey==`string`?a(u.sessionKey):void 0;u.sessionKey!==e&&(u.sessionKey=e,r=!0)}typeof u.enabled!=`boolean`&&(u.enabled=!0,r=!0);let _=typeof u.wakeMode==`string`?u.wakeMode.trim().toLowerCase():``;_===`next-heartbeat`?u.wakeMode!==`next-heartbeat`&&(u.wakeMode=`next-heartbeat`,r=!0):_===`now`?u.wakeMode!==`now`&&(u.wakeMode=`now`,r=!0):(u.wakeMode=`now`,r=!0);let v=u.payload;(!v||typeof v!=`object`||Array.isArray(v))&&M(u)&&(r=!0,d(`legacyTopLevelPayloadFields`));let y=u.payload&&typeof u.payload==`object`&&!Array.isArray(u.payload)?u.payload:null;y&&(j(y)&&(r=!0,d(`legacyPayloadKind`)),y.kind||(typeof y.message==`string`&&y.message.trim()?(y.kind=`agentTurn`,r=!0,d(`legacyPayloadKind`)):typeof y.text==`string`&&y.text.trim()&&(y.kind=`systemEvent`,r=!0,d(`legacyPayloadKind`))),y.kind===`agentTurn`&&N(u,y)&&(r=!0));let b=`model`in u||`thinking`in u||`timeoutSeconds`in u||`allowUnsafeExternalContent`in u||`message`in u||`text`in u||`command`in u||`timeout`in u,x=`deliver`in u||`channel`in u||`to`in u||`bestEffortDeliver`in u||`provider`in u;if((b||x)&&(ee(u),r=!0,b&&d(`legacyTopLevelPayloadFields`),x&&d(`legacyTopLevelDeliveryFields`)),y){let e=typeof y.provider==`string`&&y.provider.trim().length>0;o(y)&&(r=!0,e&&d(`legacyPayloadProvider`))}let S=u.schedule;if(S&&typeof S==`object`&&!Array.isArray(S)){let e=S,t=typeof e.kind==`string`?e.kind.trim().toLowerCase():``;!t&&(`at`in e||`atMs`in e)&&(e.kind=`at`,r=!0);let n=typeof e.at==`string`?e.at.trim():``,i=e.atMs,a=typeof i==`number`?i:typeof i==`string`?s(i):n?s(n):null;a!==null&&(e.at=new Date(a).toISOString(),`atMs`in e&&delete e.atMs,r=!0);let o=e.everyMs,f=D(o),p=f===void 0?null:Math.floor(f);if(p!==null&&o!==p&&(e.everyMs=p,r=!0),(t===`every`||e.kind===`every`)&&p!==null){let t=e.anchorMs,n=D(t),i=n===void 0?typeof u.createdAtMs==`number`&&Number.isFinite(u.createdAtMs)?Math.max(0,Math.floor(u.createdAtMs)):typeof u.updatedAtMs==`number`&&Number.isFinite(u.updatedAtMs)?Math.max(0,Math.floor(u.updatedAtMs)):null:Math.max(0,Math.floor(n));i!==null&&t!==i&&(e.anchorMs=i,r=!0)}let m=typeof e.expr==`string`?e.expr.trim():``,h=typeof e.cron==`string`?e.cron.trim():``,g=m;if(!g&&h&&(g=h,e.expr=g,r=!0,d(`legacyScheduleCron`)),typeof e.expr==`string`&&e.expr!==g&&(e.expr=g,r=!0),`cron`in e&&(delete e.cron,r=!0,d(`legacyScheduleCron`)),(t===`cron`||e.kind===`cron`)&&g){let t=l(e.staggerMs),n=c(g),i=t??n;i===void 0?`staggerMs`in e&&(delete e.staggerMs,r=!0):e.staggerMs!==i&&(e.staggerMs=i,r=!0)}}let C=u.delivery;if(C&&typeof C==`object`&&!Array.isArray(C)){let e=C.mode;typeof e==`string`?e.trim().toLowerCase()===`deliver`&&(C.mode=`announce`,r=!0,d(`legacyDeliveryMode`)):e??(C.mode=`announce`,r=!0)}let w=u.isolation;w&&typeof w==`object`&&!Array.isArray(w)&&(delete u.isolation,r=!0);let T=y&&typeof y.kind==`string`?y.kind:``,E=typeof u.sessionTarget==`string`?u.sessionTarget.trim().toLowerCase():``;if(E===`main`||E===`isolated`)u.sessionTarget!==E&&(u.sessionTarget=E,r=!0);else{let e=T===`agentTurn`?`isolated`:`main`;u.sessionTarget!==e&&(u.sessionTarget=e,r=!0)}let O=typeof u.sessionTarget==`string`?u.sessionTarget.trim().toLowerCase():``,k=O===`isolated`||O===``&&T===`agentTurn`,P=C&&typeof C==`object`&&!Array.isArray(C),F=n({delivery:P?C:null,payload:y});k&&T===`agentTurn`?!P&&F.delivery?(u.delivery=F.delivery,r=!0):P?F.mutated&&F.delivery&&(u.delivery=F.delivery,r=!0):(u.delivery={mode:`announce`},r=!0):F.mutated&&F.delivery&&(u.delivery=F.delivery,r=!0)}return{issues:t,jobs:e,mutated:r}}async function F(e){try{let t=await x.readFile(b.join(e,`package.json`),`utf-8`),n=JSON.parse(t);return typeof n?.version==`string`?n.version:null}catch{return null}}async function I(e){try{let t=await x.readFile(b.join(e,`package.json`),`utf-8`);return JSON.parse(t)?.name?.trim()||null}catch{return null}}function L(e,t){let n=e?.trim();if(!n)return null;for(let e of t){let t=`${e}@`;if(n.startsWith(t))return n.slice(t.length)}return n}const R=`openclaw`,z=[R],B=[`--no-fund`,`--no-audit`,`--loglevel=error`],te=[`--omit=optional`,...B];async function V(e){try{return await x.realpath(e)}catch{return b.resolve(e)}}function H(){let e=process.env.BUN_INSTALL?.trim()||b.join(y.homedir(),`.bun`);return b.join(e,`install`,`global`,`node_modules`)}async function U(e,t,n){if(e===`bun`)return H();let r=await t(e===`pnpm`?[`pnpm`,`root`,`-g`]:[`npm`,`root`,`-g`],{timeoutMs:n}).catch(()=>null);return!r||r.code!==0?null:r.stdout.trim()||null}async function ne(e,t,n){let r=await U(e,t,n);return r?b.join(r,R):null}async function W(e,t,n){let r=await V(t);for(let{manager:t,argv:i}of[{manager:`npm`,argv:[`npm`,`root`,`-g`]},{manager:`pnpm`,argv:[`pnpm`,`root`,`-g`]}]){let a=await e(i,{timeoutMs:n}).catch(()=>null);if(!a||a.code!==0)continue;let o=a.stdout.trim();if(!o)continue;let s=await V(o);for(let e of z){let n=await V(b.join(s,e));if(b.resolve(n)===b.resolve(r))return t}}let i=await V(H());for(let e of z){let t=await V(b.join(i,e));if(b.resolve(t)===b.resolve(r))return`bun`}return null}async function re(t,n){for(let r of[`npm`,`pnpm`]){let i=await U(r,t,n);if(i){for(let t of z)if(await e(b.join(i,t)))return r}}let r=H();for(let t of z)if(await e(b.join(r,t)))return`bun`;return null}function G(e,t){return e===`pnpm`?[`pnpm`,`add`,`-g`,t]:e===`bun`?[`bun`,`add`,`-g`,t]:[`npm`,`i`,`-g`,t,...B]}function ie(e,t){return e===`npm`?[`npm`,`i`,`-g`,t,...te]:null}async function K(e){let t=[],n=e.globalRoot.trim(),r=e.packageName.trim();if(!n||!r)return{removed:t};let i=`.${r}-`,a=[];try{a=await x.readdir(n)}catch{return{removed:t}}for(let e of a){if(!e.startsWith(i))continue;let r=b.join(n,e);try{if(!(await x.lstat(r)).isDirectory())continue;await x.rm(r,{recursive:!0,force:!0}),t.push(e)}catch{}}return{removed:t}}const q=8e3,ae=[`cwd`,`argv1`,`process`],J=`openclaw`,oe=new Set([J]);function Y(e){if(!e)return null;let t=e.trim();return t?b.resolve(t):null}function se(e){let t=b.resolve(e),n=t.split(b.sep),r=n.lastIndexOf(`.bin`);if(r<=0||n[r-1]!==`node_modules`)return null;let i=b.basename(t),a=n.slice(0,r).join(b.sep);return b.join(a,i)}function ce(e){let t=[],n=Y(e.cwd);n&&t.push(n);let r=Y(e.argv1);if(r){t.push(b.dirname(r));let e=se(r);e&&t.push(e)}let i=Y(process.cwd());return i&&t.push(i),Array.from(new Set(t))}async function le(e,t,n){let r=await e([`git`,`-C`,t,`rev-parse`,`--abbrev-ref`,`HEAD`],{timeoutMs:n}).catch(()=>null);return!r||r.code!==0?null:r.stdout.trim()||null}async function ue(e,t,n,r=`v*`){let i=await e([`git`,`-C`,t,`tag`,`--list`,r,`--sort=-v:refname`],{timeoutMs:n}).catch(()=>null);return!i||i.code!==0?[]:i.stdout.split(`
|
|
2
2
|
`).map(e=>e.trim()).filter(Boolean)}async function de(e,t,n,r){let i=await ue(e,t,n);if(r===`beta`){let e=i.find(e=>p(e))??null,t=i.find(e=>h(e))??null;if(!e)return t;if(!t)return e;let n=g(e,t);return n!=null&&n<0?t:e}return i.find(e=>h(e))??null}async function fe(e,t,n){for(let r of t){let t=await e([`git`,`-C`,r,`rev-parse`,`--show-toplevel`],{timeoutMs:n});if(t.code===0){let e=t.stdout.trim();if(e)return e}}return null}async function pe(e){for(let t of e){let e=t;for(let t=0;t<12;t+=1){let t=b.join(e,`package.json`);try{let n=await x.readFile(t,`utf-8`),r=JSON.parse(n)?.name?.trim();if(r&&oe.has(r))return e}catch{}let n=b.dirname(e);if(n===e)break;e=n}}return null}async function X(e){return await _(e)??`npm`}async function Z(e){let{runCommand:t,name:n,argv:i,cwd:a,timeoutMs:o,env:s,progress:c,stepIndex:l,totalSteps:u}=e,d=i.join(` `),f={name:n,command:d,index:l,total:u};c?.onStepStart?.(f);let p=Date.now(),m=await t(i,{cwd:a,timeoutMs:o,env:s}),h=Date.now()-p,g=r(m.stderr,q);return c?.onStepComplete?.({...f,durationMs:h,exitCode:m.code,stderrTail:g}),{name:n,command:d,cwd:a,durationMs:h,exitCode:m.code,stdoutTail:r(m.stdout,q),stderrTail:r(m.stderr,q)}}function Q(e,t,n=[]){return e===`pnpm`?[`pnpm`,t,...n]:e===`bun`?[`bun`,`run`,t,...n]:n.length>0?[`npm`,`run`,t,`--`,...n]:[`npm`,`run`,t]}function $(e){return e===`pnpm`?[`pnpm`,`install`]:e===`bun`?[`bun`,`install`]:[`npm`,`install`]}function me(e){return L(e,[`openclaw`,J])??`latest`}async function he(e={}){let n=Date.now(),i=e.runCommand??(async(e,n)=>{let r=await t(e,n);return{stdout:r.stdout,stderr:r.stderr,code:r.code}}),a=e.timeoutMs??12e5,o=e.progress,s=[],c=ce(e),l=0,p=0,h=(e,t,n,r)=>{let s=l;return l+=1,{runCommand:i,name:e,argv:t,cwd:n,timeoutMs:a,env:r,progress:o,stepIndex:s,totalSteps:p}},g=await pe(c),_=await fe(i,c,a);if(_&&g&&b.resolve(_)!==b.resolve(g)&&(_=null),_&&!g)return{status:`error`,mode:`unknown`,root:_,reason:`not-openclaw-root`,steps:[],durationMs:Date.now()-n};if(_&&g&&b.resolve(_)===b.resolve(g)){let t=(await i([`git`,`-C`,_,`rev-parse`,`HEAD`],{cwd:_,timeoutMs:a})).stdout.trim()||null,o=await F(_),c=e.channel??`dev`,l=c===`dev`?await le(i,_,a):null,g=c===`dev`&&l!==`main`;p=c===`dev`?g?11:10:9;let v=e=>({status:`error`,mode:`git`,root:_,reason:e,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n}),S=async(e,t)=>{let n=await Z(h(e,t,_));return s.push(n),n.exitCode===0?null:v(`checkout-failed`)},C=await Z(h(`clean check`,[`git`,`-C`,_,`status`,`--porcelain`,`--`,`:!dist/control-ui/`],_));if(s.push(C),C.stdoutTail&&C.stdoutTail.trim().length>0)return{status:`skipped`,mode:`git`,root:_,reason:`dirty`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};if(c===`dev`){if(g){let e=await S(`git checkout ${m}`,[`git`,`-C`,_,`checkout`,m]);if(e)return e}let e=await Z(h(`upstream check`,[`git`,`-C`,_,`rev-parse`,`--abbrev-ref`,`--symbolic-full-name`,`@{upstream}`],_));if(s.push(e),e.exitCode!==0)return{status:`skipped`,mode:`git`,root:_,reason:`no-upstream`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let c=await Z(h(`git fetch`,[`git`,`-C`,_,`fetch`,`--all`,`--prune`,`--tags`],_));s.push(c);let l=await Z(h(`git rev-parse @{upstream}`,[`git`,`-C`,_,`rev-parse`,`@{upstream}`],_));s.push(l);let u=l.stdoutTail?.trim();if(!l.stdoutTail||!u)return{status:`error`,mode:`git`,root:_,reason:`no-upstream-sha`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let d=await Z(h(`git rev-list`,[`git`,`-C`,_,`rev-list`,`--max-count=10`,u],_));if(s.push(d),d.exitCode!==0)return{status:`error`,mode:`git`,root:_,reason:`preflight-revlist-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let f=(d.stdoutTail??``).split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(Boolean);if(f.length===0)return{status:`error`,mode:`git`,root:_,reason:`preflight-no-candidates`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let p=await X(_),v=await x.mkdtemp(b.join(y.tmpdir(),`openclaw-update-preflight-`)),C=b.join(v,`worktree`),w=await Z(h(`preflight worktree`,[`git`,`-C`,_,`worktree`,`add`,`--detach`,C,u],_));if(s.push(w),w.exitCode!==0)return await x.rm(v,{recursive:!0,force:!0}).catch(()=>{}),{status:`error`,mode:`git`,root:_,reason:`preflight-worktree-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let T=null;try{for(let e of f){let t=e.slice(0,8),n=await Z(h(`preflight checkout (${t})`,[`git`,`-C`,C,`checkout`,`--detach`,e],C));if(s.push(n),n.exitCode!==0)continue;let r=await Z(h(`preflight deps install (${t})`,$(p),C));if(s.push(r),r.exitCode!==0)continue;let i=await Z(h(`preflight build (${t})`,Q(p,`build`),C));if(s.push(i),i.exitCode!==0)continue;let a=await Z(h(`preflight lint (${t})`,Q(p,`lint`),C));if(s.push(a),a.exitCode===0){T=e;break}}}finally{let e=await Z(h(`preflight cleanup`,[`git`,`-C`,_,`worktree`,`remove`,`--force`,C],_));s.push(e),await i([`git`,`-C`,_,`worktree`,`prune`],{cwd:_,timeoutMs:a}).catch(()=>null),await x.rm(v,{recursive:!0,force:!0}).catch(()=>{})}if(!T)return{status:`error`,mode:`git`,root:_,reason:`preflight-no-good-commit`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let E=await Z(h(`git rebase`,[`git`,`-C`,_,`rebase`,T],_));if(s.push(E),E.exitCode!==0){let e=await i([`git`,`-C`,_,`rebase`,`--abort`],{cwd:_,timeoutMs:a});return s.push({name:`git rebase --abort`,command:`git rebase --abort`,cwd:_,durationMs:0,exitCode:e.code,stdoutTail:r(e.stdout,q),stderrTail:r(e.stderr,q)}),{status:`error`,mode:`git`,root:_,reason:`rebase-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n}}}else{let e=await Z(h(`git fetch`,[`git`,`-C`,_,`fetch`,`--all`,`--prune`,`--tags`],_));if(s.push(e),e.exitCode!==0)return{status:`error`,mode:`git`,root:_,reason:`fetch-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let r=await de(i,_,a,c);if(!r)return{status:`error`,mode:`git`,root:_,reason:`no-release-tag`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let l=await S(`git checkout ${r}`,[`git`,`-C`,_,`checkout`,`--detach`,r]);if(l)return l}let w=await X(_),T=await Z(h(`deps install`,$(w),_));if(s.push(T),T.exitCode!==0)return{status:`error`,mode:`git`,root:_,reason:`deps-install-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let E=await Z(h(`build`,Q(w,`build`),_));if(s.push(E),E.exitCode!==0)return{status:`error`,mode:`git`,root:_,reason:`build-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let D=await Z(h(`ui:build`,Q(w,`ui:build`),_));if(s.push(D),D.exitCode!==0)return{status:`error`,mode:`git`,root:_,reason:`ui-build-failed`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let O=b.join(_,`openclaw.mjs`);if(!await x.stat(O).then(()=>!0).catch(()=>!1))return s.push({name:`openclaw doctor entry`,command:`verify ${O}`,cwd:_,durationMs:0,exitCode:1,stderrTail:`missing ${O}`}),{status:`error`,mode:`git`,root:_,reason:`doctor-entry-missing`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let k=await Z(h(`openclaw doctor`,[await u(process.execPath),O,`doctor`,`--non-interactive`,`--fix`],_,{OPENCLAW_UPDATE_IN_PROGRESS:`1`}));if(s.push(k),!(await f({root:_})).exists){let e=Q(w,`ui:build`),c=Date.now(),l=await i(e,{cwd:_,timeoutMs:a}),u={name:`ui:build (post-doctor repair)`,command:e.join(` `),cwd:_,durationMs:Date.now()-c,exitCode:l.code,stdoutTail:r(l.stdout,q),stderrTail:r(l.stderr,q)};if(s.push(u),l.code!==0)return{status:`error`,mode:`git`,root:_,reason:u.name,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n};let p=await f({root:_});if(!p.exists){let e=p.indexPath??d(_);return s.push({name:`ui assets verify`,command:`verify ${e}`,cwd:_,durationMs:0,exitCode:1,stderrTail:`missing ${e}`}),{status:`error`,mode:`git`,root:_,reason:`ui-assets-missing`,before:{sha:t,version:o},steps:s,durationMs:Date.now()-n}}}let A=s.find(e=>e.exitCode!==0),j=await Z(h(`git rev-parse HEAD (after)`,[`git`,`-C`,_,`rev-parse`,`HEAD`],_));s.push(j);let M=await F(_);return{status:A?`error`:`ok`,mode:`git`,root:_,reason:A?A.name:void 0,before:{sha:t,version:o},after:{sha:j.stdoutTail?.trim()??null,version:M},steps:s,durationMs:Date.now()-n}}if(!g)return{status:`error`,mode:`unknown`,reason:`no root (${ae.join(`,`)})`,steps:[],durationMs:Date.now()-n};let S=await F(g),C=await W(i,g,a);if(C){let t=await I(g)??J;await K({globalRoot:b.dirname(g),packageName:t});let r=e.channel??`stable`,s=`${t}@${me(e.tag??v(r))}`,c=[],l=await Z({runCommand:i,name:`global update`,argv:G(C,s),cwd:g,timeoutMs:a,progress:o,stepIndex:0,totalSteps:1});c.push(l);let u=l;if(l.exitCode!==0){let e=ie(C,s);if(e){let t=await Z({runCommand:i,name:`global update (omit optional)`,argv:e,cwd:g,timeoutMs:a,progress:o,stepIndex:0,totalSteps:1});c.push(t),u=t}}let d=await F(g);return{status:u.exitCode===0?`ok`:`error`,mode:C,root:g,reason:u.exitCode===0?void 0:u.name,before:{version:S},after:{version:d},steps:c,durationMs:Date.now()-n}}return{status:`skipped`,mode:`unknown`,root:g,reason:`not-git-install`,before:{version:S},steps:[],durationMs:Date.now()-n}}export{G as a,I as c,D as d,O as f,W as i,F as l,K as n,ne as o,k as p,re as r,L as s,he as t,P as u};
|
|
4
|
+
//# sourceMappingURL=update-runner-BvtyRBD2.js.map
|