@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,3 +1,4 @@
|
|
|
1
1
|
import"./paths-B4IRk3wi.js";import"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import{No as e,_l as t}from"./model-selection-BlC_rXAN.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import{d as n,l as r}from"./types.secrets-C-5U96pc.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./call-CqoMqP5b.js";import{h as i,u as a,y as o}from"./onboard-helpers-zwybUJWu.js";import"./prompt-style-CXKekIBY.js";import"./provider-env-vars-D8p6Ohpj.js";import{c as s,s as c}from"./auth-choice.apply-helpers-gaL-oSft.js";import{t as l}from"./onboarding.secret-input-kO5OzYC7.js";import{t as u}from"./node-command-policy-CqXhdnHh.js";import{a as d,i as f,n as p,r as m,t as h}from"./ipv4-BOuNtoGn.js";async function g(g){let{flow:_,localPort:v,quickstartGateway:y,prompter:b}=g,{nextConfig:x}=g,S=_===`quickstart`?y.port:Number.parseInt(String(await b.text({message:`Gateway port`,initialValue:String(v),validate:e=>Number.isFinite(Number(e))?void 0:`Invalid port`})),10),C=_===`quickstart`?y.bind:await b.select({message:`Gateway bind`,options:[{value:`loopback`,label:`Loopback (127.0.0.1)`},{value:`lan`,label:`LAN (0.0.0.0)`},{value:`tailnet`,label:`Tailnet (Tailscale IP)`},{value:`auto`,label:`Auto (Loopback → LAN)`},{value:`custom`,label:`Custom IP`}]}),w=y.customBindHost;if(C===`custom`&&(_!==`quickstart`||!w)){let e=await b.text({message:`Custom IP address`,placeholder:`192.168.1.100`,initialValue:w??``,validate:h});w=typeof e==`string`?e.trim():void 0}let T=_===`quickstart`?y.authMode:await b.select({message:`Gateway auth`,options:[{value:`token`,label:`Token`,hint:`Recommended default (local + remote)`},{value:`password`,label:`Password`}],initialValue:`token`}),E=_===`quickstart`?y.tailscaleMode:await b.select({message:`Tailscale exposure`,options:[...m]}),D=null;E!==`off`&&(D=await e(),D||await b.note(f.join(`
|
|
2
2
|
`),`Tailscale Warning`));let O=_===`quickstart`?y.tailscaleResetOnExit:!1;E!==`off`&&_!==`quickstart`&&(await b.note(p.join(`
|
|
3
3
|
`),`Tailscale`),O=!!await b.confirm({message:`Reset Tailscale serve/funnel on exit?`,initialValue:!1})),E!==`off`&&C!==`loopback`&&(await b.note(`Tailscale requires bind=loopback. Adjusting bind to loopback.`,`Note`),C=`loopback`,w=void 0),E===`funnel`&&T!==`password`&&(await b.note(`Tailscale funnel requires password auth.`,`Note`),T=`password`);let k,A;if(T===`token`){let e=r(y.token),t=n({value:y.token,defaults:x.secrets?.defaults}).ref;if((_===`quickstart`&&g.secretInputMode!==`ref`?t?`ref`:`plaintext`:await s({prompter:b,explicitMode:g.secretInputMode,copy:{modeMessage:`How do you want to provide the gateway token?`,plaintextLabel:`Generate/store plaintext token`,plaintextHint:`Default`,refLabel:`Use SecretRef`,refHint:`Store a reference instead of plaintext`}}))===`ref`)if(_===`quickstart`&&t)A=t,k=await l({config:x,value:t,path:`gateway.auth.token`,env:process.env});else{let e=await c({provider:`gateway-auth-token`,config:x,prompter:b,preferredEnvVar:`OPENCLAW_GATEWAY_TOKEN`,copy:{sourceMessage:`Where is this gateway token stored?`,envVarPlaceholder:`OPENCLAW_GATEWAY_TOKEN`}});A=e.ref,k=e.resolvedValue}else _===`quickstart`?(k=(e??a(process.env.OPENCLAW_GATEWAY_TOKEN))||i(),A=k):(k=a(await b.text({message:`Gateway token (blank to generate)`,placeholder:`Needed for multi-machine or non-loopback access`,initialValue:e??a(process.env.OPENCLAW_GATEWAY_TOKEN)??``}))||i(),A=k)}if(T===`password`){let e=_===`quickstart`&&y.password?y.password:void 0;e||=await s({prompter:b,explicitMode:g.secretInputMode,copy:{modeMessage:`How do you want to provide the gateway password?`,plaintextLabel:`Enter password now`,plaintextHint:`Stores the password directly in OpenClaw config`}})===`ref`?(await c({provider:`gateway-auth-password`,config:x,prompter:b,preferredEnvVar:`OPENCLAW_GATEWAY_PASSWORD`,copy:{sourceMessage:`Where is this gateway password stored?`,envVarPlaceholder:`OPENCLAW_GATEWAY_PASSWORD`}})).ref:String(await b.text({message:`Gateway password`,validate:o})??``).trim(),x={...x,gateway:{...x.gateway,auth:{...x.gateway?.auth,mode:`password`,password:e}}}}else T===`token`&&(x={...x,gateway:{...x.gateway,auth:{...x.gateway?.auth,mode:`token`,token:A}}});return x={...x,gateway:{...x.gateway,port:S,bind:C,...C===`custom`&&w?{customBindHost:w}:{},tailscale:{...x.gateway?.tailscale,mode:E,resetOnExit:O}}},x=t(x,{requireControlUiEnabled:!0}).config,x=await d({config:x,tailscaleMode:E,tailscaleBin:D}),!y.hasExisting&&x.gateway?.nodes?.denyCommands===void 0&&x.gateway?.nodes?.allowCommands===void 0&&x.gateway?.nodes?.browser===void 0&&(x={...x,gateway:{...x.gateway,nodes:{...x.gateway?.nodes,denyCommands:[...u]}}}),{nextConfig:x,settings:{port:S,bind:C,customBindHost:C===`custom`?w:void 0,authMode:T,gatewayToken:k,tailscaleMode:E,tailscaleResetOnExit:O}}}export{g as configureGatewayForOnboarding};
|
|
4
|
+
//# sourceMappingURL=onboarding.gateway-config-y3pqsL9i.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{so as e}from"./auth-profiles-T8DuH3ax.js";import{d as t,l as n}from"./types.secrets-D4tbc3Wq.js";function r(e){return e instanceof Error&&e.message.trim().length>0?e.message:String(e)}async function i(i){let a=i.defaults??i.config.secrets?.defaults,{ref:o}=t({value:i.value,defaults:a});if(o)try{return await e(o,{config:i.config,env:i.env??process.env})}catch(e){throw Error(`${i.path}: failed to resolve SecretRef "${o.source}:${o.provider}:${o.id}": ${r(e)}`,{cause:e})}return n(i.value)}export{i as t};
|
|
2
|
+
//# sourceMappingURL=onboarding.secret-input-BsBgh8Tc.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Cs as e}from"./model-selection-BlC_rXAN.js";import{d as t,l as n}from"./types.secrets-C-5U96pc.js";function r(e){return e instanceof Error&&e.message.trim().length>0?e.message:String(e)}async function i(i){let a=i.defaults??i.config.secrets?.defaults,{ref:o}=t({value:i.value,defaults:a});if(o)try{return await e(o,{config:i.config,env:i.env??process.env})}catch(e){throw Error(`${i.path}: failed to resolve SecretRef "${o.source}:${o.provider}:${o.id}": ${r(e)}`,{cause:e})}return n(i.value)}export{i as t};
|
|
2
|
+
//# sourceMappingURL=onboarding.secret-input-kO5OzYC7.js.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import{Bo as e,Fo as t,Hc as n,Lc as r,Qc as i,fu as a}from"./auth-profiles-T8DuH3ax.js";import{t as o}from"./command-format-CLxIPuLR.js";import{F as s,r as c}from"./agent-scope-DAWJwFfl.js";import{c as l}from"./session-key-C7F_iqYg.js";import{n as u}from"./issue-format-C_lNzrKa.js";const d=e=>{if(e.json&&e.plain)throw Error(`Choose either --json or --plain, not both.`)},f=e=>!e||!Number.isFinite(e)?`-`:e<1024?`${Math.round(e)}`:`${Math.round(e/1024)}k`,p=e=>e==null||!Number.isFinite(e)?`-`:e<1e3?`${Math.round(e)}ms`:`${Math.round(e/100)/10}s`,m=e=>{try{let t=new URL(e).hostname.toLowerCase();return t===`localhost`||t===`127.0.0.1`||t===`0.0.0.0`||t===`::1`||t.endsWith(`.local`)}catch{return!1}};async function h(){let e=await t();if(!e.valid){let t=u(e.issues,`-`).join(`
|
|
2
2
|
`);throw Error(`Invalid config at ${e.path}\n${t}`)}return e.config}async function g(t){let n=t(await h());return await e(n),n}function _(e){let t=r({cfg:e.cfg,defaultProvider:a}),n=i({raw:e.raw,defaultProvider:a,aliasIndex:t});if(!n)throw Error(`Invalid model reference: ${e.raw}`);return n.ref}function v(e){let t=r({cfg:e.cfg,defaultProvider:a});return e.entries.map(e=>i({raw:e,defaultProvider:a,aliasIndex:t})).filter(e=>!!e).map(e=>n(e.ref.provider,e.ref.model))}function y(e){let t=e.trim();if(!t)throw Error(`Alias cannot be empty.`);if(!/^[A-Za-z0-9_.:-]+$/.test(t))throw Error(`Alias must use letters, numbers, dots, underscores, colons, or dashes.`);return t}function b(e){let t=e.rawAgentId?.trim();if(!t)return;let n=l(t);if(!c(e.cfg).includes(n))throw Error(`Unknown agent id "${t}". Use "${o(`openclaw agents list`)}" to see configured agents.`);return n}function x(e,t){let n={...e&&typeof e==`object`?e:void 0};return t.primary!==void 0&&(n.primary=t.primary),t.fallbacks!==void 0&&(n.fallbacks=t.fallbacks),n}function S(e){let t=_({raw:e.modelRaw,cfg:e.cfg}),n=`${t.provider}/${t.model}`,r={...e.cfg.agents?.defaults?.models};r[n]||(r[n]={});let i=e.cfg.agents?.defaults??{},a=s(i[e.field]);return{...e.cfg,agents:{...e.cfg.agents,defaults:{...i,[e.field]:x(a,{primary:n}),models:r}}}}const C=`openai-codex/gpt-5.4`;function w(e){let t=e?.trim();if(!t)return!0;let n=t.toLowerCase();return n.startsWith(`openai-codex/`)?!1:n.startsWith(`openai/`)?!0:n===`gpt`||n===`gpt-mini`}function T(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`&&typeof e.primary==`string`)return e.primary}function E(e){return w(T(e.agents?.defaults?.model))?{next:{...e,agents:{...e.agents,defaults:{...e.agents?.defaults,model:e.agents?.defaults?.model&&typeof e.agents.defaults.model==`object`?{...e.agents.defaults.model,primary:C}:{primary:C}}}},changed:!0}:{next:e,changed:!1}}export{p as a,h as c,b as d,v as f,d as i,x as l,g as m,E as n,f as o,_ as p,S as r,m as s,C as t,y as u};
|
|
3
|
+
//# sourceMappingURL=openai-codex-model-default-DuE2_wN7.js.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import{Zs as e,c as t,nc as n,pu as r,r as i,v as a}from"./model-selection-BlC_rXAN.js";import{F as o,r as s}from"./agent-scope-DXZc3eNT.js";import{c}from"./session-key-D3P0tf5P.js";import{t as l}from"./command-format-BbDT1tlm.js";import{n as u}from"./issue-format-BT7cQEt3.js";const d=e=>{if(e.json&&e.plain)throw Error(`Choose either --json or --plain, not both.`)},f=e=>!e||!Number.isFinite(e)?`-`:e<1024?`${Math.round(e)}`:`${Math.round(e/1024)}k`,p=e=>e==null||!Number.isFinite(e)?`-`:e<1e3?`${Math.round(e)}ms`:`${Math.round(e/100)/10}s`,m=e=>{try{let t=new URL(e).hostname.toLowerCase();return t===`localhost`||t===`127.0.0.1`||t===`0.0.0.0`||t===`::1`||t.endsWith(`.local`)}catch{return!1}};async function h(){let t=await e();if(!t.valid){let e=u(t.issues,`-`).join(`
|
|
2
2
|
`);throw Error(`Invalid config at ${t.path}\n${e}`)}return t.config}async function g(e){let t=e(await h());return await n(t),t}function _(e){let t=i({cfg:e.cfg,defaultProvider:r}),n=a({raw:e.raw,defaultProvider:r,aliasIndex:t});if(!n)throw Error(`Invalid model reference: ${e.raw}`);return n.ref}function v(e){let n=i({cfg:e.cfg,defaultProvider:r});return e.entries.map(e=>a({raw:e,defaultProvider:r,aliasIndex:n})).filter(e=>!!e).map(e=>t(e.ref.provider,e.ref.model))}function y(e){let t=e.trim();if(!t)throw Error(`Alias cannot be empty.`);if(!/^[A-Za-z0-9_.:-]+$/.test(t))throw Error(`Alias must use letters, numbers, dots, underscores, colons, or dashes.`);return t}function b(e){let t=e.rawAgentId?.trim();if(!t)return;let n=c(t);if(!s(e.cfg).includes(n))throw Error(`Unknown agent id "${t}". Use "${l(`openclaw agents list`)}" to see configured agents.`);return n}function x(e,t){let n={...e&&typeof e==`object`?e:void 0};return t.primary!==void 0&&(n.primary=t.primary),t.fallbacks!==void 0&&(n.fallbacks=t.fallbacks),n}function S(e){let t=_({raw:e.modelRaw,cfg:e.cfg}),n=`${t.provider}/${t.model}`,r={...e.cfg.agents?.defaults?.models};r[n]||(r[n]={});let i=e.cfg.agents?.defaults??{},a=o(i[e.field]);return{...e.cfg,agents:{...e.cfg.agents,defaults:{...i,[e.field]:x(a,{primary:n}),models:r}}}}const C=`openai-codex/gpt-5.4`;function w(e){let t=e?.trim();if(!t)return!0;let n=t.toLowerCase();return n.startsWith(`openai-codex/`)?!1:n.startsWith(`openai/`)?!0:n===`gpt`||n===`gpt-mini`}function T(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`&&typeof e.primary==`string`)return e.primary}function E(e){return w(T(e.agents?.defaults?.model))?{next:{...e,agents:{...e.agents,defaults:{...e.agents?.defaults,model:e.agents?.defaults?.model&&typeof e.agents.defaults.model==`object`?{...e.agents.defaults.model,primary:C}:{primary:C}}}},changed:!0}:{next:e,changed:!1}}export{p as a,h as c,b as d,v as f,d as i,x as l,g as m,E as n,f as o,_ as p,S as r,m as s,C as t,y as u};
|
|
3
|
+
//# sourceMappingURL=openai-codex-model-default-yVfRw-Mm.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{n as e}from"./fetch-timeout-u8g99Ax0.js";import{u as t}from"./auth-choice.apply-helpers-gaL-oSft.js";import{Bt as n,Ht as r,Vt as i,o as a,zt as o}from"./auth-token-9OTF1FmL.js";const s=`google/gemini-3.1-pro-preview`;function c(e){return a({cfg:e,model:s})}async function l(t){try{let n=await e(`${t.baseUrl}/chat/completions`,{method:`POST`,headers:{authorization:`Bearer ${t.apiKey}`,"content-type":`application/json`},body:JSON.stringify({model:t.modelId,stream:!1,max_tokens:1,messages:[{role:`user`,content:`ping`}]})},t.timeoutMs,t.fetchFn);if(n.ok)return{ok:!0};let r,i;try{let e=await n.json(),t=e?.error?.code,a=e?.error?.message??e?.msg??e?.message;typeof t==`string`?r=t:typeof t==`number`&&(r=String(t)),typeof a==`string`&&(i=a)}catch{}return{ok:!1,status:n.status,errorCode:r,errorMessage:i}}catch{return{ok:!1}}}async function u(e){if(process.env.VITEST&&!e.fetchFn)return null;let t=e.timeoutMs??5e3,a=[{endpoint:`global`,baseUrl:r},{endpoint:`cn`,baseUrl:o}];for(let n of a)if((await l({baseUrl:n.baseUrl,apiKey:e.apiKey,modelId:`glm-5`,timeoutMs:t,fetchFn:e.fetchFn})).ok)return{endpoint:n.endpoint,baseUrl:n.baseUrl,modelId:`glm-5`,note:`Verified GLM-5 on ${n.endpoint} endpoint.`};let s=[{endpoint:`coding-global`,baseUrl:i},{endpoint:`coding-cn`,baseUrl:n}];for(let n of s)if((await l({baseUrl:n.baseUrl,apiKey:e.apiKey,modelId:`glm-4.7`,timeoutMs:t,fetchFn:e.fetchFn})).ok)return{endpoint:n.endpoint,baseUrl:n.baseUrl,modelId:`glm-4.7`,note:`Coding Plan endpoint detected; GLM-5 is not available there. Defaulting to GLM-4.7.`};return null}const d=`openai/gpt-5.1-codex`;function f(e){let n=t({cfg:e,modelRef:d}),r={...n.agents?.defaults?.models};return r[d]={...r[d],alias:r[`openai/gpt-5.1-codex`]?.alias??`GPT`},{...n,agents:{...n.agents,defaults:{...n.agents?.defaults,models:r}}}}function p(e){let t=f(e);return{...t,agents:{...t.agents,defaults:{...t.agents?.defaults,model:t.agents?.defaults?.model&&typeof t.agents.defaults.model==`object`?{...t.agents.defaults.model,primary:d}:{primary:d}}}}}export{s as a,u as i,p as n,c as o,f as r,d as t};
|
|
2
|
+
//# sourceMappingURL=openai-model-default-Bl8MHPb6.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{n as e}from"./fetch-timeout-CdYxWG9w.js";import{u as t}from"./auth-choice.apply-helpers-B7S-PcH_.js";import{Bt as n,Ht as r,Vt as i,o as a,zt as o}from"./auth-token-kGltuM6S.js";const s=`google/gemini-3.1-pro-preview`;function c(e){return a({cfg:e,model:s})}async function l(t){try{let n=await e(`${t.baseUrl}/chat/completions`,{method:`POST`,headers:{authorization:`Bearer ${t.apiKey}`,"content-type":`application/json`},body:JSON.stringify({model:t.modelId,stream:!1,max_tokens:1,messages:[{role:`user`,content:`ping`}]})},t.timeoutMs,t.fetchFn);if(n.ok)return{ok:!0};let r,i;try{let e=await n.json(),t=e?.error?.code,a=e?.error?.message??e?.msg??e?.message;typeof t==`string`?r=t:typeof t==`number`&&(r=String(t)),typeof a==`string`&&(i=a)}catch{}return{ok:!1,status:n.status,errorCode:r,errorMessage:i}}catch{return{ok:!1}}}async function u(e){if(process.env.VITEST&&!e.fetchFn)return null;let t=e.timeoutMs??5e3,a=[{endpoint:`global`,baseUrl:r},{endpoint:`cn`,baseUrl:o}];for(let n of a)if((await l({baseUrl:n.baseUrl,apiKey:e.apiKey,modelId:`glm-5`,timeoutMs:t,fetchFn:e.fetchFn})).ok)return{endpoint:n.endpoint,baseUrl:n.baseUrl,modelId:`glm-5`,note:`Verified GLM-5 on ${n.endpoint} endpoint.`};let s=[{endpoint:`coding-global`,baseUrl:i},{endpoint:`coding-cn`,baseUrl:n}];for(let n of s)if((await l({baseUrl:n.baseUrl,apiKey:e.apiKey,modelId:`glm-4.7`,timeoutMs:t,fetchFn:e.fetchFn})).ok)return{endpoint:n.endpoint,baseUrl:n.baseUrl,modelId:`glm-4.7`,note:`Coding Plan endpoint detected; GLM-5 is not available there. Defaulting to GLM-4.7.`};return null}const d=`openai/gpt-5.1-codex`;function f(e){let n=t({cfg:e,modelRef:d}),r={...n.agents?.defaults?.models};return r[d]={...r[d],alias:r[`openai/gpt-5.1-codex`]?.alias??`GPT`},{...n,agents:{...n.agents,defaults:{...n.agents?.defaults,models:r}}}}function p(e){let t=f(e);return{...t,agents:{...t.agents,defaults:{...t.agents?.defaults,model:t.agents?.defaults?.model&&typeof t.agents.defaults.model==`object`?{...t.agents.defaults.model,primary:d}:{primary:d}}}}}export{s as a,u as i,p as n,c as o,f as r,d as t};
|
|
2
|
+
//# sourceMappingURL=openai-model-default-DJObMvLJ.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./string-normalization-DJT5zuUF.js";import{fileURLToPath as t}from"node:url";import n from"node:os";import r from"node:path";import i from"node:fs";import a from"node:fs/promises";function o(t){if(t!==void 0)return e(t)}function s(e){let t=o(e);if(t!==void 0)return Array.from(new Set(t)).toSorted()}function c(e,t){let n=s(e),r=s(t);return n===void 0||r===void 0?n===r:n.length===r.length?n.every((e,t)=>e===r[t]):!1}const l=new Set([`ENOENT`,`ENOTDIR`]),ee=new Set([`ELOOP`,`EINVAL`,`ENOTSUP`]);function u(e){let t=r.win32.normalize(e);return t.startsWith(`\\\\?\\`)&&(t=t.slice(4),t.toUpperCase().startsWith(`UNC\\`)&&(t=`\\\\${t.slice(4)}`)),t.replaceAll(`/`,`\\`).toLowerCase()}function d(e){return!!(e&&typeof e==`object`&&`code`in e)}function te(e,t){return d(e)&&e.code===t}function f(e){return d(e)&&typeof e.code==`string`&&l.has(e.code)}function ne(e){return d(e)&&typeof e.code==`string`&&ee.has(e.code)}function p(e,t){let n=r.resolve(e),i=r.resolve(t);if(process.platform===`win32`){let e=u(n),t=u(i),a=r.win32.relative(e,t);return a===``||!a.startsWith(`..`)&&!r.win32.isAbsolute(a)}let a=r.relative(n,i);return a===``||!a.startsWith(`..`)&&!r.isAbsolute(a)}const re={strict:Object.freeze({allowFinalSymlinkForUnlink:!1,allowFinalHardlinkForUnlink:!1}),unlinkTarget:Object.freeze({allowFinalSymlinkForUnlink:!0,allowFinalHardlinkForUnlink:!0})};async function m(e){let t=r.resolve(e.rootPath),n=r.resolve(e.absolutePath),i=D({resolveParams:e,rootPath:t,absolutePath:n,rootCanonicalPath:e.rootCanonicalPath?r.resolve(e.rootCanonicalPath):await j(t),outsideLexicalCanonicalPath:await de({rootPath:t,absolutePath:n})});return await le({boundaryLabel:e.boundaryLabel,context:i})||oe({params:e,absolutePath:i.absolutePath,rootPath:i.rootPath,rootCanonicalPath:i.rootCanonicalPath})}function h(e){let t=r.resolve(e.rootPath),n=r.resolve(e.absolutePath),i=D({resolveParams:e,rootPath:t,absolutePath:n,rootCanonicalPath:e.rootCanonicalPath?r.resolve(e.rootCanonicalPath):M(t),outsideLexicalCanonicalPath:fe({rootPath:t,absolutePath:n})});return ue({boundaryLabel:e.boundaryLabel,context:i})||se({params:e,absolutePath:i.absolutePath,rootPath:i.rootPath,rootCanonicalPath:i.rootCanonicalPath})}function g(e){return!!(e&&(typeof e==`object`||typeof e==`function`)&&`then`in e&&typeof e.then==`function`)}function _(e){return{segments:r.relative(e.rootPath,e.absolutePath).split(r.sep).filter(Boolean),allowFinalSymlink:e.params.policy?.allowFinalSymlinkForUnlink===!0,canonicalCursor:e.rootCanonicalPath,lexicalCursor:e.rootPath,preserveFinalSymlink:!1}}function v(e){L({boundaryLabel:e.params.boundaryLabel,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.candidatePath,absolutePath:e.absolutePath})}function ie(e){let t=e.state.segments.slice(e.missingFromIndex);e.state.canonicalCursor=r.resolve(e.state.canonicalCursor,...t),v({params:e.params,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.state.canonicalCursor,absolutePath:e.absolutePath})}function y(e){e.state.canonicalCursor=r.resolve(e.state.canonicalCursor,e.segment),v({params:e.params,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.state.canonicalCursor,absolutePath:e.absolutePath})}function b(e){return v({params:e.params,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.state.canonicalCursor,absolutePath:e.absolutePath}),A({absolutePath:e.absolutePath,canonicalPath:e.state.canonicalCursor,rootPath:e.rootPath,rootCanonicalPath:e.rootCanonicalPath,kind:e.kind})}function x(e){return f(e.error)?(ie({state:e.state,missingFromIndex:e.missingFromIndex,rootCanonicalPath:e.rootCanonicalPath,params:e.resolveParams,absolutePath:e.absolutePath}),!0):!1}function S(e){if(x({error:e.error,state:e.state,missingFromIndex:e.missingFromIndex,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.resolveParams,absolutePath:e.absolutePath}))return null;throw e.error}function C(e){return e.isSymbolicLink?e.state.allowFinalSymlink&&e.isLast?(e.state.preserveFinalSymlink=!0,y({state:e.state,segment:e.segment,rootCanonicalPath:e.rootCanonicalPath,params:e.resolveParams,absolutePath:e.absolutePath}),`break`):`resolve-link`:(y({state:e.state,segment:e.segment,rootCanonicalPath:e.rootCanonicalPath,params:e.resolveParams,absolutePath:e.absolutePath}),`continue`)}function w(e){if(!p(e.rootCanonicalPath,e.linkCanonical))throw z({boundaryLabel:e.boundaryLabel,rootCanonicalPath:e.rootCanonicalPath,symlinkPath:e.state.lexicalCursor});e.state.canonicalCursor=e.linkCanonical,e.state.lexicalCursor=e.linkCanonical}function T(e){try{let t=e.read(e.state.lexicalCursor);return g(t)?Promise.resolve(t).catch(t=>S({...e,error:t})):t}catch(t){return S({...e,error:t})}}function E(e){let t=e.resolveLinkCanonical(e.state.lexicalCursor);if(g(t))return Promise.resolve(t).then(t=>w({state:e.state,linkCanonical:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.boundaryLabel}));w({state:e.state,linkCanonical:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.boundaryLabel})}function*ae(e){for(let t=0;t<e.segments.length;t+=1){let n=e.segments[t]??``,i=t===e.segments.length-1;e.lexicalCursor=r.join(e.lexicalCursor,n),yield{idx:t,segment:n,isLast:i}}}async function oe(e){let t=_(e),n={state:t,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.params,absolutePath:e.absolutePath};for(let{idx:r,segment:i,isLast:o}of ae(t)){let s=await T({...n,missingFromIndex:r,read:e=>a.lstat(e)});if(!s)break;let c=C({...n,isSymbolicLink:s.isSymbolicLink(),segment:i,isLast:o});if(c!==`continue`){if(c===`break`)break;await E({state:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.params.boundaryLabel,resolveLinkCanonical:e=>me(e)})}}let r=await N(e.absolutePath,t.preserveFinalSymlink);return b({...e,state:t,kind:r})}function se(e){let t=_(e);for(let n=0;n<t.segments.length;n+=1){let a=t.segments[n]??``,o=n===t.segments.length-1;t.lexicalCursor=r.join(t.lexicalCursor,a);let s=T({state:t,missingFromIndex:n,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.params,absolutePath:e.absolutePath,read:e=>i.lstatSync(e)});if(g(s))throw Error(`Unexpected async lexical stat`);let c=s;if(!c)break;let l=C({state:t,isSymbolicLink:c.isSymbolicLink(),segment:a,isLast:o,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.params,absolutePath:e.absolutePath});if(l!==`continue`){if(l===`break`)break;if(g(E({state:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.params.boundaryLabel,resolveLinkCanonical:e=>he(e)})))throw Error(`Unexpected async symlink resolution`)}}let n=P(e.absolutePath,t.preserveFinalSymlink);return b({...e,state:t,kind:n})}function ce(e){return e.outsideLexicalCanonicalPath??e.absolutePath}function D(e){let t=p(e.rootPath,e.absolutePath),n=ce({absolutePath:e.absolutePath,outsideLexicalCanonicalPath:e.outsideLexicalCanonicalPath});return pe({skipLexicalRootCheck:e.resolveParams.skipLexicalRootCheck,lexicalInside:t,canonicalOutsideLexicalPath:n,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.resolveParams.boundaryLabel,rootPath:e.rootPath,absolutePath:e.absolutePath}),{rootPath:e.rootPath,absolutePath:e.absolutePath,rootCanonicalPath:e.rootCanonicalPath,lexicalInside:t,canonicalOutsideLexicalPath:n}}async function le(e){if(e.context.lexicalInside)return null;let t=await N(e.context.absolutePath,!1);return O({boundaryLabel:e.boundaryLabel,context:e.context,kind:t})}function ue(e){if(e.context.lexicalInside)return null;let t=P(e.context.absolutePath,!1);return O({boundaryLabel:e.boundaryLabel,context:e.context,kind:t})}function O(e){return k({boundaryLabel:e.boundaryLabel,rootCanonicalPath:e.context.rootCanonicalPath,absolutePath:e.context.absolutePath,canonicalOutsideLexicalPath:e.context.canonicalOutsideLexicalPath,rootPath:e.context.rootPath,kind:e.kind})}async function de(e){if(!p(e.rootPath,e.absolutePath))return await j(e.absolutePath)}function fe(e){if(!p(e.rootPath,e.absolutePath))return M(e.absolutePath)}function k(e){return L({boundaryLabel:e.boundaryLabel,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.canonicalOutsideLexicalPath,absolutePath:e.absolutePath}),A({absolutePath:e.absolutePath,canonicalPath:e.canonicalOutsideLexicalPath,rootPath:e.rootPath,rootCanonicalPath:e.rootCanonicalPath,kind:e.kind})}function pe(e){if(!(e.skipLexicalRootCheck||e.lexicalInside)&&!p(e.rootCanonicalPath,e.canonicalOutsideLexicalPath))throw R({boundaryLabel:e.boundaryLabel,rootPath:e.rootPath,absolutePath:e.absolutePath})}function A(e){return{absolutePath:e.absolutePath,canonicalPath:e.canonicalPath,rootPath:e.rootPath,rootCanonicalPath:e.rootCanonicalPath,relativePath:I(e.rootCanonicalPath,e.canonicalPath),exists:e.kind.exists,kind:e.kind.kind}}async function j(e){let t=r.resolve(e),n=t,i=[];for(;!V(n)&&!await H(n);){i.unshift(r.basename(n));let e=r.dirname(n);if(e===n)break;n=e}if(!await H(n))return t;try{let e=r.resolve(await a.realpath(n));return i.length===0?e:r.resolve(e,...i)}catch{return t}}function M(e){let t=r.resolve(e),n=t,a=[];for(;!V(n)&&!i.existsSync(n);){a.unshift(r.basename(n));let e=r.dirname(n);if(e===n)break;n=e}if(!i.existsSync(n))return t;try{let e=r.resolve(i.realpathSync(n));return a.length===0?e:r.resolve(e,...a)}catch{return t}}async function N(e,t){try{return{exists:!0,kind:F(t?await a.lstat(e):await a.stat(e))}}catch(e){if(f(e))return{exists:!1,kind:`missing`};throw e}}function P(e,t){try{return{exists:!0,kind:F(t?i.lstatSync(e):i.statSync(e))}}catch(e){if(f(e))return{exists:!1,kind:`missing`};throw e}}function F(e){return e.isFile()?`file`:e.isDirectory()?`directory`:e.isSymbolicLink()?`symlink`:`other`}function I(e,t){let n=r.relative(r.resolve(e),r.resolve(t));return!n||n===`.`||n.startsWith(`..`)||r.isAbsolute(n)?``:n}function L(e){if(!p(e.rootCanonicalPath,e.candidatePath))throw Error(`Path resolves outside ${e.boundaryLabel} (${B(e.rootCanonicalPath)}): ${B(e.absolutePath)}`)}function R(e){return Error(`Path escapes ${e.boundaryLabel} (${B(e.rootPath)}): ${B(e.absolutePath)}`)}function z(e){return Error(`Symlink escapes ${e.boundaryLabel} (${B(e.rootCanonicalPath)}): ${B(e.symlinkPath)}`)}function B(e){let t=n.homedir();return e.startsWith(t)?`~${e.slice(t.length)}`:e}function V(e){return r.parse(e).root===e}async function H(e){try{return await a.lstat(e),!0}catch(e){if(f(e))return!1;throw e}}async function me(e){try{return r.resolve(await a.realpath(e))}catch(t){if(!f(t))throw t;let n=await a.readlink(e);return j(r.resolve(r.dirname(e),n))}}function he(e){try{return r.resolve(i.realpathSync(e))}catch(t){if(!f(t))throw t;let n=i.readlinkSync(e);return M(r.resolve(r.dirname(e),n))}}function U(e){return e===0||e===0n}function W(e,t,n=process.platform){return e.ino===t.ino?e.dev===t.dev?!0:n===`win32`&&(U(e.dev)||U(t.dev)):!1}function ge(e){let t=typeof e==`object`&&e&&`code`in e?String(e.code):``;return t===`ENOENT`||t===`ENOTDIR`||t===`ELOOP`}function _e(e,t){return W(e,t)}function G(e){let t=e.ioFs??i,n=e.allowedType??`file`,r=t.constants.O_RDONLY|(typeof t.constants.O_NOFOLLOW==`number`?t.constants.O_NOFOLLOW:0),a=null;try{if(e.rejectPathSymlink&&t.lstatSync(e.filePath).isSymbolicLink())return{ok:!1,reason:`validation`};let i=e.resolvedPath??t.realpathSync(e.filePath),o=t.lstatSync(i);if(!K(o,n)||e.rejectHardlinks&&o.isFile()&&o.nlink>1||e.maxBytes!==void 0&&o.isFile()&&o.size>e.maxBytes)return{ok:!1,reason:`validation`};a=t.openSync(i,r);let s=t.fstatSync(a);if(!K(s,n)||e.rejectHardlinks&&s.isFile()&&s.nlink>1||e.maxBytes!==void 0&&s.isFile()&&s.size>e.maxBytes||!_e(o,s))return{ok:!1,reason:`validation`};let c={ok:!0,path:i,fd:a,stat:s};return a=null,c}catch(e){return ge(e)?{ok:!1,reason:`path`,error:e}:{ok:!1,reason:`io`,error:e}}finally{a!==null&&t.closeSync(a)}}function K(e,t){return t===`directory`?e.isDirectory():e.isFile()}function ve(e){return typeof e.openSync==`function`&&typeof e.closeSync==`function`&&typeof e.fstatSync==`function`&&typeof e.lstatSync==`function`&&typeof e.realpathSync==`function`&&typeof e.readFileSync==`function`&&typeof e.constants==`object`&&e.constants!==null}function ye(e){let t=e.ioFs??i,n=X({absolutePath:e.absolutePath,resolve:t=>h({absolutePath:t,rootPath:e.rootPath,rootCanonicalPath:e.rootRealPath,boundaryLabel:e.boundaryLabel,skipLexicalRootCheck:e.skipLexicalRootCheck})});return n instanceof Promise?J(Error(`Unexpected async boundary resolution`)):q({resolved:n,maxBytes:e.maxBytes,rejectHardlinks:e.rejectHardlinks,allowedType:e.allowedType,ioFs:t})}function be(e){let t=G({filePath:e.absolutePath,resolvedPath:e.resolvedPath,rejectHardlinks:e.rejectHardlinks??!0,maxBytes:e.maxBytes,allowedType:e.allowedType,ioFs:e.ioFs});return t.ok?{ok:!0,path:t.path,fd:t.fd,stat:t.stat,rootRealPath:e.rootRealPath}:t}function q(e){return`ok`in e.resolved?e.resolved:be({absolutePath:e.resolved.absolutePath,resolvedPath:e.resolved.resolvedPath,rootRealPath:e.resolved.rootRealPath,maxBytes:e.maxBytes,rejectHardlinks:e.rejectHardlinks,allowedType:e.allowedType,ioFs:e.ioFs})}async function xe(e){let t=e.ioFs??i,n=X({absolutePath:e.absolutePath,resolve:t=>m({absolutePath:t,rootPath:e.rootPath,rootCanonicalPath:e.rootRealPath,boundaryLabel:e.boundaryLabel,policy:e.aliasPolicy,skipLexicalRootCheck:e.skipLexicalRootCheck})});return q({resolved:n instanceof Promise?await n:n,maxBytes:e.maxBytes,rejectHardlinks:e.rejectHardlinks,allowedType:e.allowedType,ioFs:t})}function J(e){return{ok:!1,reason:`validation`,error:e}}function Y(e,t){return{absolutePath:e,resolvedPath:t.canonicalPath,rootRealPath:t.rootCanonicalPath}}function X(e){let t=r.resolve(e.absolutePath);try{let n=e.resolve(t);return n instanceof Promise?n.then(e=>Y(t,e)).catch(e=>J(e)):Y(t,n)}catch(e){return J(e)}}const Z=new Set([`@qqbrowser/openclaw-qbot`]);async function Se(e){try{let t=await a.readFile(r.join(e,`package.json`),`utf-8`),n=JSON.parse(t);return typeof n.name==`string`?n.name:null}catch{return null}}function Ce(e){try{let t=i.readFileSync(r.join(e,`package.json`),`utf-8`),n=JSON.parse(t);return typeof n.name==`string`?n.name:null}catch{return null}}async function we(e,t=12){for(let n of Q(e,t)){let e=await Se(n);if(e&&Z.has(e))return n}return null}function Te(e,t=12){for(let n of Q(e,t)){let e=Ce(n);if(e&&Z.has(e))return n}return null}function*Q(e,t){let n=r.resolve(e);for(let e=0;e<t;e+=1){yield n;let e=r.dirname(n);if(e===n)break;n=e}}function Ee(e){let t=r.resolve(e),n=[r.dirname(t)];try{let e=i.realpathSync(t);e!==t&&n.push(r.dirname(e))}catch{}let a=t.split(r.sep),o=a.lastIndexOf(`.bin`);if(o>0&&a[o-1]===`node_modules`){let e=r.basename(t),i=a.slice(0,o).join(r.sep);n.push(r.join(i,e))}return n}async function De(e){for(let t of $(e)){let e=await we(t);if(e)return e}return null}function Oe(e){for(let t of $(e)){let e=Te(t);if(e)return e}return null}function $(e){let n=[];if(e.moduleUrl)try{n.push(r.dirname(t(e.moduleUrl)))}catch{}return e.argv1&&n.push(...Ee(e.argv1)),e.cwd&&n.push(e.cwd),n}export{o as _,ye as a,re as c,te as d,f,c as g,u as h,xe as i,m as l,ne as m,Oe as n,G as o,p,ve as r,W as s,De as t,M as u};
|
|
2
|
+
//# sourceMappingURL=openclaw-root-CnsBf6ZU.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{r as e}from"./string-normalization-BrUPaXaM.js";import{fileURLToPath as t}from"node:url";import n from"node:fs";import r from"node:os";import i from"node:path";import a from"node:fs/promises";function o(t){if(t!==void 0)return e(t)}function s(e){let t=o(e);if(t!==void 0)return Array.from(new Set(t)).toSorted()}function c(e,t){let n=s(e),r=s(t);return n===void 0||r===void 0?n===r:n.length===r.length?n.every((e,t)=>e===r[t]):!1}const l=new Set([`ENOENT`,`ENOTDIR`]),ee=new Set([`ELOOP`,`EINVAL`,`ENOTSUP`]);function u(e){let t=i.win32.normalize(e);return t.startsWith(`\\\\?\\`)&&(t=t.slice(4),t.toUpperCase().startsWith(`UNC\\`)&&(t=`\\\\${t.slice(4)}`)),t.replaceAll(`/`,`\\`).toLowerCase()}function d(e){return!!(e&&typeof e==`object`&&`code`in e)}function te(e,t){return d(e)&&e.code===t}function f(e){return d(e)&&typeof e.code==`string`&&l.has(e.code)}function ne(e){return d(e)&&typeof e.code==`string`&&ee.has(e.code)}function p(e,t){let n=i.resolve(e),r=i.resolve(t);if(process.platform===`win32`){let e=u(n),t=u(r),a=i.win32.relative(e,t);return a===``||!a.startsWith(`..`)&&!i.win32.isAbsolute(a)}let a=i.relative(n,r);return a===``||!a.startsWith(`..`)&&!i.isAbsolute(a)}const re={strict:Object.freeze({allowFinalSymlinkForUnlink:!1,allowFinalHardlinkForUnlink:!1}),unlinkTarget:Object.freeze({allowFinalSymlinkForUnlink:!0,allowFinalHardlinkForUnlink:!0})};async function m(e){let t=i.resolve(e.rootPath),n=i.resolve(e.absolutePath),r=D({resolveParams:e,rootPath:t,absolutePath:n,rootCanonicalPath:e.rootCanonicalPath?i.resolve(e.rootCanonicalPath):await j(t),outsideLexicalCanonicalPath:await de({rootPath:t,absolutePath:n})});return await le({boundaryLabel:e.boundaryLabel,context:r})||oe({params:e,absolutePath:r.absolutePath,rootPath:r.rootPath,rootCanonicalPath:r.rootCanonicalPath})}function h(e){let t=i.resolve(e.rootPath),n=i.resolve(e.absolutePath),r=D({resolveParams:e,rootPath:t,absolutePath:n,rootCanonicalPath:e.rootCanonicalPath?i.resolve(e.rootCanonicalPath):M(t),outsideLexicalCanonicalPath:fe({rootPath:t,absolutePath:n})});return ue({boundaryLabel:e.boundaryLabel,context:r})||se({params:e,absolutePath:r.absolutePath,rootPath:r.rootPath,rootCanonicalPath:r.rootCanonicalPath})}function g(e){return!!(e&&(typeof e==`object`||typeof e==`function`)&&`then`in e&&typeof e.then==`function`)}function _(e){return{segments:i.relative(e.rootPath,e.absolutePath).split(i.sep).filter(Boolean),allowFinalSymlink:e.params.policy?.allowFinalSymlinkForUnlink===!0,canonicalCursor:e.rootCanonicalPath,lexicalCursor:e.rootPath,preserveFinalSymlink:!1}}function v(e){L({boundaryLabel:e.params.boundaryLabel,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.candidatePath,absolutePath:e.absolutePath})}function ie(e){let t=e.state.segments.slice(e.missingFromIndex);e.state.canonicalCursor=i.resolve(e.state.canonicalCursor,...t),v({params:e.params,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.state.canonicalCursor,absolutePath:e.absolutePath})}function y(e){e.state.canonicalCursor=i.resolve(e.state.canonicalCursor,e.segment),v({params:e.params,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.state.canonicalCursor,absolutePath:e.absolutePath})}function b(e){return v({params:e.params,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.state.canonicalCursor,absolutePath:e.absolutePath}),A({absolutePath:e.absolutePath,canonicalPath:e.state.canonicalCursor,rootPath:e.rootPath,rootCanonicalPath:e.rootCanonicalPath,kind:e.kind})}function x(e){return f(e.error)?(ie({state:e.state,missingFromIndex:e.missingFromIndex,rootCanonicalPath:e.rootCanonicalPath,params:e.resolveParams,absolutePath:e.absolutePath}),!0):!1}function S(e){if(x({error:e.error,state:e.state,missingFromIndex:e.missingFromIndex,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.resolveParams,absolutePath:e.absolutePath}))return null;throw e.error}function C(e){return e.isSymbolicLink?e.state.allowFinalSymlink&&e.isLast?(e.state.preserveFinalSymlink=!0,y({state:e.state,segment:e.segment,rootCanonicalPath:e.rootCanonicalPath,params:e.resolveParams,absolutePath:e.absolutePath}),`break`):`resolve-link`:(y({state:e.state,segment:e.segment,rootCanonicalPath:e.rootCanonicalPath,params:e.resolveParams,absolutePath:e.absolutePath}),`continue`)}function w(e){if(!p(e.rootCanonicalPath,e.linkCanonical))throw z({boundaryLabel:e.boundaryLabel,rootCanonicalPath:e.rootCanonicalPath,symlinkPath:e.state.lexicalCursor});e.state.canonicalCursor=e.linkCanonical,e.state.lexicalCursor=e.linkCanonical}function T(e){try{let t=e.read(e.state.lexicalCursor);return g(t)?Promise.resolve(t).catch(t=>S({...e,error:t})):t}catch(t){return S({...e,error:t})}}function E(e){let t=e.resolveLinkCanonical(e.state.lexicalCursor);if(g(t))return Promise.resolve(t).then(t=>w({state:e.state,linkCanonical:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.boundaryLabel}));w({state:e.state,linkCanonical:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.boundaryLabel})}function*ae(e){for(let t=0;t<e.segments.length;t+=1){let n=e.segments[t]??``,r=t===e.segments.length-1;e.lexicalCursor=i.join(e.lexicalCursor,n),yield{idx:t,segment:n,isLast:r}}}async function oe(e){let t=_(e),n={state:t,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.params,absolutePath:e.absolutePath};for(let{idx:r,segment:i,isLast:o}of ae(t)){let s=await T({...n,missingFromIndex:r,read:e=>a.lstat(e)});if(!s)break;let c=C({...n,isSymbolicLink:s.isSymbolicLink(),segment:i,isLast:o});if(c!==`continue`){if(c===`break`)break;await E({state:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.params.boundaryLabel,resolveLinkCanonical:e=>me(e)})}}let r=await N(e.absolutePath,t.preserveFinalSymlink);return b({...e,state:t,kind:r})}function se(e){let t=_(e);for(let r=0;r<t.segments.length;r+=1){let a=t.segments[r]??``,o=r===t.segments.length-1;t.lexicalCursor=i.join(t.lexicalCursor,a);let s=T({state:t,missingFromIndex:r,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.params,absolutePath:e.absolutePath,read:e=>n.lstatSync(e)});if(g(s))throw Error(`Unexpected async lexical stat`);let c=s;if(!c)break;let l=C({state:t,isSymbolicLink:c.isSymbolicLink(),segment:a,isLast:o,rootCanonicalPath:e.rootCanonicalPath,resolveParams:e.params,absolutePath:e.absolutePath});if(l!==`continue`){if(l===`break`)break;if(g(E({state:t,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.params.boundaryLabel,resolveLinkCanonical:e=>he(e)})))throw Error(`Unexpected async symlink resolution`)}}let r=P(e.absolutePath,t.preserveFinalSymlink);return b({...e,state:t,kind:r})}function ce(e){return e.outsideLexicalCanonicalPath??e.absolutePath}function D(e){let t=p(e.rootPath,e.absolutePath),n=ce({absolutePath:e.absolutePath,outsideLexicalCanonicalPath:e.outsideLexicalCanonicalPath});return pe({skipLexicalRootCheck:e.resolveParams.skipLexicalRootCheck,lexicalInside:t,canonicalOutsideLexicalPath:n,rootCanonicalPath:e.rootCanonicalPath,boundaryLabel:e.resolveParams.boundaryLabel,rootPath:e.rootPath,absolutePath:e.absolutePath}),{rootPath:e.rootPath,absolutePath:e.absolutePath,rootCanonicalPath:e.rootCanonicalPath,lexicalInside:t,canonicalOutsideLexicalPath:n}}async function le(e){if(e.context.lexicalInside)return null;let t=await N(e.context.absolutePath,!1);return O({boundaryLabel:e.boundaryLabel,context:e.context,kind:t})}function ue(e){if(e.context.lexicalInside)return null;let t=P(e.context.absolutePath,!1);return O({boundaryLabel:e.boundaryLabel,context:e.context,kind:t})}function O(e){return k({boundaryLabel:e.boundaryLabel,rootCanonicalPath:e.context.rootCanonicalPath,absolutePath:e.context.absolutePath,canonicalOutsideLexicalPath:e.context.canonicalOutsideLexicalPath,rootPath:e.context.rootPath,kind:e.kind})}async function de(e){if(!p(e.rootPath,e.absolutePath))return await j(e.absolutePath)}function fe(e){if(!p(e.rootPath,e.absolutePath))return M(e.absolutePath)}function k(e){return L({boundaryLabel:e.boundaryLabel,rootCanonicalPath:e.rootCanonicalPath,candidatePath:e.canonicalOutsideLexicalPath,absolutePath:e.absolutePath}),A({absolutePath:e.absolutePath,canonicalPath:e.canonicalOutsideLexicalPath,rootPath:e.rootPath,rootCanonicalPath:e.rootCanonicalPath,kind:e.kind})}function pe(e){if(!(e.skipLexicalRootCheck||e.lexicalInside)&&!p(e.rootCanonicalPath,e.canonicalOutsideLexicalPath))throw R({boundaryLabel:e.boundaryLabel,rootPath:e.rootPath,absolutePath:e.absolutePath})}function A(e){return{absolutePath:e.absolutePath,canonicalPath:e.canonicalPath,rootPath:e.rootPath,rootCanonicalPath:e.rootCanonicalPath,relativePath:I(e.rootCanonicalPath,e.canonicalPath),exists:e.kind.exists,kind:e.kind.kind}}async function j(e){let t=i.resolve(e),n=t,r=[];for(;!V(n)&&!await H(n);){r.unshift(i.basename(n));let e=i.dirname(n);if(e===n)break;n=e}if(!await H(n))return t;try{let e=i.resolve(await a.realpath(n));return r.length===0?e:i.resolve(e,...r)}catch{return t}}function M(e){let t=i.resolve(e),r=t,a=[];for(;!V(r)&&!n.existsSync(r);){a.unshift(i.basename(r));let e=i.dirname(r);if(e===r)break;r=e}if(!n.existsSync(r))return t;try{let e=i.resolve(n.realpathSync(r));return a.length===0?e:i.resolve(e,...a)}catch{return t}}async function N(e,t){try{return{exists:!0,kind:F(t?await a.lstat(e):await a.stat(e))}}catch(e){if(f(e))return{exists:!1,kind:`missing`};throw e}}function P(e,t){try{return{exists:!0,kind:F(t?n.lstatSync(e):n.statSync(e))}}catch(e){if(f(e))return{exists:!1,kind:`missing`};throw e}}function F(e){return e.isFile()?`file`:e.isDirectory()?`directory`:e.isSymbolicLink()?`symlink`:`other`}function I(e,t){let n=i.relative(i.resolve(e),i.resolve(t));return!n||n===`.`||n.startsWith(`..`)||i.isAbsolute(n)?``:n}function L(e){if(!p(e.rootCanonicalPath,e.candidatePath))throw Error(`Path resolves outside ${e.boundaryLabel} (${B(e.rootCanonicalPath)}): ${B(e.absolutePath)}`)}function R(e){return Error(`Path escapes ${e.boundaryLabel} (${B(e.rootPath)}): ${B(e.absolutePath)}`)}function z(e){return Error(`Symlink escapes ${e.boundaryLabel} (${B(e.rootCanonicalPath)}): ${B(e.symlinkPath)}`)}function B(e){let t=r.homedir();return e.startsWith(t)?`~${e.slice(t.length)}`:e}function V(e){return i.parse(e).root===e}async function H(e){try{return await a.lstat(e),!0}catch(e){if(f(e))return!1;throw e}}async function me(e){try{return i.resolve(await a.realpath(e))}catch(t){if(!f(t))throw t;let n=await a.readlink(e);return j(i.resolve(i.dirname(e),n))}}function he(e){try{return i.resolve(n.realpathSync(e))}catch(t){if(!f(t))throw t;let r=n.readlinkSync(e);return M(i.resolve(i.dirname(e),r))}}function U(e){return e===0||e===0n}function W(e,t,n=process.platform){return e.ino===t.ino?e.dev===t.dev?!0:n===`win32`&&(U(e.dev)||U(t.dev)):!1}function ge(e){let t=typeof e==`object`&&e&&`code`in e?String(e.code):``;return t===`ENOENT`||t===`ENOTDIR`||t===`ELOOP`}function _e(e,t){return W(e,t)}function G(e){let t=e.ioFs??n,r=e.allowedType??`file`,i=t.constants.O_RDONLY|(typeof t.constants.O_NOFOLLOW==`number`?t.constants.O_NOFOLLOW:0),a=null;try{if(e.rejectPathSymlink&&t.lstatSync(e.filePath).isSymbolicLink())return{ok:!1,reason:`validation`};let n=e.resolvedPath??t.realpathSync(e.filePath),o=t.lstatSync(n);if(!K(o,r)||e.rejectHardlinks&&o.isFile()&&o.nlink>1||e.maxBytes!==void 0&&o.isFile()&&o.size>e.maxBytes)return{ok:!1,reason:`validation`};a=t.openSync(n,i);let s=t.fstatSync(a);if(!K(s,r)||e.rejectHardlinks&&s.isFile()&&s.nlink>1||e.maxBytes!==void 0&&s.isFile()&&s.size>e.maxBytes||!_e(o,s))return{ok:!1,reason:`validation`};let c={ok:!0,path:n,fd:a,stat:s};return a=null,c}catch(e){return ge(e)?{ok:!1,reason:`path`,error:e}:{ok:!1,reason:`io`,error:e}}finally{a!==null&&t.closeSync(a)}}function K(e,t){return t===`directory`?e.isDirectory():e.isFile()}function ve(e){return typeof e.openSync==`function`&&typeof e.closeSync==`function`&&typeof e.fstatSync==`function`&&typeof e.lstatSync==`function`&&typeof e.realpathSync==`function`&&typeof e.readFileSync==`function`&&typeof e.constants==`object`&&e.constants!==null}function ye(e){let t=e.ioFs??n,r=X({absolutePath:e.absolutePath,resolve:t=>h({absolutePath:t,rootPath:e.rootPath,rootCanonicalPath:e.rootRealPath,boundaryLabel:e.boundaryLabel,skipLexicalRootCheck:e.skipLexicalRootCheck})});return r instanceof Promise?J(Error(`Unexpected async boundary resolution`)):q({resolved:r,maxBytes:e.maxBytes,rejectHardlinks:e.rejectHardlinks,allowedType:e.allowedType,ioFs:t})}function be(e){let t=G({filePath:e.absolutePath,resolvedPath:e.resolvedPath,rejectHardlinks:e.rejectHardlinks??!0,maxBytes:e.maxBytes,allowedType:e.allowedType,ioFs:e.ioFs});return t.ok?{ok:!0,path:t.path,fd:t.fd,stat:t.stat,rootRealPath:e.rootRealPath}:t}function q(e){return`ok`in e.resolved?e.resolved:be({absolutePath:e.resolved.absolutePath,resolvedPath:e.resolved.resolvedPath,rootRealPath:e.resolved.rootRealPath,maxBytes:e.maxBytes,rejectHardlinks:e.rejectHardlinks,allowedType:e.allowedType,ioFs:e.ioFs})}async function xe(e){let t=e.ioFs??n,r=X({absolutePath:e.absolutePath,resolve:t=>m({absolutePath:t,rootPath:e.rootPath,rootCanonicalPath:e.rootRealPath,boundaryLabel:e.boundaryLabel,policy:e.aliasPolicy,skipLexicalRootCheck:e.skipLexicalRootCheck})});return q({resolved:r instanceof Promise?await r:r,maxBytes:e.maxBytes,rejectHardlinks:e.rejectHardlinks,allowedType:e.allowedType,ioFs:t})}function J(e){return{ok:!1,reason:`validation`,error:e}}function Y(e,t){return{absolutePath:e,resolvedPath:t.canonicalPath,rootRealPath:t.rootCanonicalPath}}function X(e){let t=i.resolve(e.absolutePath);try{let n=e.resolve(t);return n instanceof Promise?n.then(e=>Y(t,e)).catch(e=>J(e)):Y(t,n)}catch(e){return J(e)}}const Z=new Set([`@qqbrowser/openclaw-qbot`]);async function Se(e){try{let t=await a.readFile(i.join(e,`package.json`),`utf-8`),n=JSON.parse(t);return typeof n.name==`string`?n.name:null}catch{return null}}function Ce(e){try{let t=n.readFileSync(i.join(e,`package.json`),`utf-8`),r=JSON.parse(t);return typeof r.name==`string`?r.name:null}catch{return null}}async function we(e,t=12){for(let n of Q(e,t)){let e=await Se(n);if(e&&Z.has(e))return n}return null}function Te(e,t=12){for(let n of Q(e,t)){let e=Ce(n);if(e&&Z.has(e))return n}return null}function*Q(e,t){let n=i.resolve(e);for(let e=0;e<t;e+=1){yield n;let e=i.dirname(n);if(e===n)break;n=e}}function Ee(e){let t=i.resolve(e),r=[i.dirname(t)];try{let e=n.realpathSync(t);e!==t&&r.push(i.dirname(e))}catch{}let a=t.split(i.sep),o=a.lastIndexOf(`.bin`);if(o>0&&a[o-1]===`node_modules`){let e=i.basename(t),n=a.slice(0,o).join(i.sep);r.push(i.join(n,e))}return r}async function De(e){for(let t of $(e)){let e=await we(t);if(e)return e}return null}function Oe(e){for(let t of $(e)){let e=Te(t);if(e)return e}return null}function $(e){let n=[];if(e.moduleUrl)try{n.push(i.dirname(t(e.moduleUrl)))}catch{}return e.argv1&&n.push(...Ee(e.argv1)),e.cwd&&n.push(e.cwd),n}export{o as _,ye as a,re as c,te as d,f,c as g,u as h,xe as i,m as l,ne as m,Oe as n,G as o,p,ve as r,W as s,De as t,M as u};
|
|
2
|
+
//# sourceMappingURL=openclaw-root-D_0Q6--h.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{b as e,t}from"./subsystem-Bc2XrjUz.js";import{o as n,x as r}from"./utils-D3t-vPka.js";import{Ia as i,Za as a,_r as o,gr as s,wi as c}from"./model-selection-B5JsBS9D.js";import{a as l,s as u}from"./ir-DBWscfBd.js";import{n as d}from"./polls-C_XSFz3d.js";import{t as f}from"./tables-CrXdLc_6.js";import{n as p}from"./active-listener-Cce5tcPa.js";const m=`\0FENCE`,h=`\0CODE`;function g(e){if(!e)return e;let t=[],r=e.replace(/```[\s\S]*?```/g,e=>(t.push(e),`${m}${t.length-1}`)),i=[];return r=r.replace(/`[^`\n]+`/g,e=>(i.push(e),`${h}${i.length-1}`)),r=r.replace(/\*\*(.+?)\*\*/g,`*$1*`),r=r.replace(/__(.+?)__/g,`*$1*`),r=r.replace(/~~(.+?)~~/g,`~$1~`),r=r.replace(RegExp(`${n(h)}(\\d+)`,`g`),(e,t)=>i[Number(t)]??``),r=r.replace(RegExp(`${n(m)}(\\d+)`,`g`),(e,n)=>t[Number(n)]??``),r}const _=t(`gateway/channels/whatsapp`).child(`outbound`);async function v(t,n,d){let m=n.trimStart(),h=r(t);if(!m&&!d.mediaUrl)return{messageId:``,toJid:h};let v=c(),y=Date.now(),{listener:b,accountId:x}=p(d.accountId),S=d.cfg??a(),C=s({cfg:S,accountId:x??d.accountId}),w=u({cfg:S,channel:`whatsapp`,accountId:x??d.accountId});m=f(m??``,w),m=g(m);let T=i(t),E=e({module:`web-outbound`,correlationId:v,to:T});try{let e=i(h),n,r,a;if(d.mediaUrl){let e=await l(d.mediaUrl,{maxBytes:o(C),localRoots:d.mediaLocalRoots}),t=m||void 0;n=e.buffer,r=e.contentType,e.kind===`audio`?r=e.contentType===`audio/ogg`?`audio/ogg; codecs=opus`:e.contentType??`application/octet-stream`:e.kind===`video`||e.kind===`image`?m=t??``:(m=t??``,a=e.fileName)}_.info(`Sending message -> ${e}${d.mediaUrl?` (media)`:``}`),E.info({jid:e,hasMedia:!!d.mediaUrl},`sending message`),await b.sendComposingTo(t);let s=d.accountId?.trim()?x:void 0,c=d.gifPlayback||s||a?{...d.gifPlayback?{gifPlayback:!0}:{},...a?{fileName:a}:{},accountId:s}:void 0,u=(c?await b.sendMessage(t,m,n,r,c):await b.sendMessage(t,m,n,r))?.messageId??`unknown`,f=Date.now()-y;return _.info(`Sent message ${u} -> ${e}${d.mediaUrl?` (media)`:``} (${f}ms)`),E.info({jid:e,messageId:u},`sent message`),{messageId:u,toJid:h}}catch(e){throw E.error({err:String(e),to:T,hasMedia:!!d.mediaUrl},`failed to send via web session`),e}}async function y(t,n,a,o){let s=c(),{listener:l}=p(o.accountId),u=i(t),d=e({module:`web-outbound`,correlationId:s,chatJid:u,messageId:n});try{let e=i(r(t));_.info(`Sending reaction "${a}" -> message ${n}`),d.info({chatJid:e,messageId:n,emoji:a},`sending reaction`),await l.sendReaction(t,n,a,o.fromMe??!1,o.participant),_.info(`Sent reaction "${a}" -> message ${n}`),d.info({chatJid:e,messageId:n,emoji:a},`sent reaction`)}catch(e){throw d.error({err:String(e),chatJid:u,messageId:n,emoji:a},`failed to send reaction via web session`),e}}async function b(t,n,a){let o=c(),s=Date.now(),{listener:l}=p(a.accountId),u=i(t),f=e({module:`web-outbound`,correlationId:o,to:u});try{let e=r(t),a=i(e),o=d(n,{maxOptions:12});_.info(`Sending poll -> ${a}`),f.info({jid:a,optionCount:o.options.length,maxSelections:o.maxSelections},`sending poll`);let c=(await l.sendPoll(t,o))?.messageId??`unknown`,u=Date.now()-s;return _.info(`Sent poll ${c} -> ${a} (${u}ms)`),f.info({jid:a,messageId:c},`sent poll`),{messageId:c,toJid:e}}catch(e){throw f.error({err:String(e),to:u},`failed to send poll via web session`),e}}export{g as i,b as n,y as r,v as t};
|
|
2
|
+
//# sourceMappingURL=outbound-BOSIEiEY.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{j as e,t}from"./subsystem-BLbY429l.js";import{Za as n,jo as r}from"./auth-profiles-T8DuH3ax.js";import{c as i,w as a}from"./utils-CGdo13HV.js";import{G as o,U as s}from"./plugins-DNlgeTTc.js";import{n as c}from"./secure-random-D7JQgiK-.js";import{a as l,s as u}from"./ir-D8Hh84ab.js";import{n as d}from"./polls-DKJOFSzJ.js";import{t as f}from"./tables-Brc2lNcB.js";import{n as p}from"./active-listener-D8VOdVx3.js";const m=`\0FENCE`,h=`\0CODE`;function g(e){if(!e)return e;let t=[],n=e.replace(/```[\s\S]*?```/g,e=>(t.push(e),`${m}${t.length-1}`)),r=[];return n=n.replace(/`[^`\n]+`/g,e=>(r.push(e),`${h}${r.length-1}`)),n=n.replace(/\*\*(.+?)\*\*/g,`*$1*`),n=n.replace(/__(.+?)__/g,`*$1*`),n=n.replace(/~~(.+?)~~/g,`~$1~`),n=n.replace(RegExp(`${i(h)}(\\d+)`,`g`),(e,t)=>r[Number(t)]??``),n=n.replace(RegExp(`${i(m)}(\\d+)`,`g`),(e,n)=>t[Number(n)]??``),n}const _=t(`gateway/channels/whatsapp`).child(`outbound`);async function v(t,i,d){let m=i.trimStart(),h=a(t);if(!m&&!d.mediaUrl)return{messageId:``,toJid:h};let v=c(),y=Date.now(),{listener:b,accountId:x}=p(d.accountId),S=d.cfg??r(),C=s({cfg:S,accountId:x??d.accountId}),w=u({cfg:S,channel:`whatsapp`,accountId:x??d.accountId});m=f(m??``,w),m=g(m);let T=n(t),E=e({module:`web-outbound`,correlationId:v,to:T});try{let e=n(h),r,i,a;if(d.mediaUrl){let e=await l(d.mediaUrl,{maxBytes:o(C),localRoots:d.mediaLocalRoots}),t=m||void 0;r=e.buffer,i=e.contentType,e.kind===`audio`?i=e.contentType===`audio/ogg`?`audio/ogg; codecs=opus`:e.contentType??`application/octet-stream`:e.kind===`video`||e.kind===`image`?m=t??``:(m=t??``,a=e.fileName)}_.info(`Sending message -> ${e}${d.mediaUrl?` (media)`:``}`),E.info({jid:e,hasMedia:!!d.mediaUrl},`sending message`),await b.sendComposingTo(t);let s=d.accountId?.trim()?x:void 0,c=d.gifPlayback||s||a?{...d.gifPlayback?{gifPlayback:!0}:{},...a?{fileName:a}:{},accountId:s}:void 0,u=(c?await b.sendMessage(t,m,r,i,c):await b.sendMessage(t,m,r,i))?.messageId??`unknown`,f=Date.now()-y;return _.info(`Sent message ${u} -> ${e}${d.mediaUrl?` (media)`:``} (${f}ms)`),E.info({jid:e,messageId:u},`sent message`),{messageId:u,toJid:h}}catch(e){throw E.error({err:String(e),to:T,hasMedia:!!d.mediaUrl},`failed to send via web session`),e}}async function y(t,r,i,o){let s=c(),{listener:l}=p(o.accountId),u=n(t),d=e({module:`web-outbound`,correlationId:s,chatJid:u,messageId:r});try{let e=n(a(t));_.info(`Sending reaction "${i}" -> message ${r}`),d.info({chatJid:e,messageId:r,emoji:i},`sending reaction`),await l.sendReaction(t,r,i,o.fromMe??!1,o.participant),_.info(`Sent reaction "${i}" -> message ${r}`),d.info({chatJid:e,messageId:r,emoji:i},`sent reaction`)}catch(e){throw d.error({err:String(e),chatJid:u,messageId:r,emoji:i},`failed to send reaction via web session`),e}}async function b(t,r,i){let o=c(),s=Date.now(),{listener:l}=p(i.accountId),u=n(t),f=e({module:`web-outbound`,correlationId:o,to:u});try{let e=a(t),i=n(e),o=d(r,{maxOptions:12});_.info(`Sending poll -> ${i}`),f.info({jid:i,optionCount:o.options.length,maxSelections:o.maxSelections},`sending poll`);let c=(await l.sendPoll(t,o))?.messageId??`unknown`,u=Date.now()-s;return _.info(`Sent poll ${c} -> ${i} (${u}ms)`),f.info({jid:i,messageId:c},`sent poll`),{messageId:c,toJid:e}}catch(e){throw f.error({err:String(e),to:u},`failed to send poll via web session`),e}}export{g as i,b as n,y as r,v as t};
|
|
2
|
+
//# sourceMappingURL=outbound-BtUeDLjU.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{K as e,O as t,T as n,u as r}from"./logger-DwWqfo66.js";import{Ia as i,Za as a,_r as o,gr as s,wi as c}from"./model-selection-vfhBuN9O.js";import{a as l,s as u}from"./ir-BF0M2kGp.js";import{n as d}from"./polls-BIVz6a4F.js";import{t as f}from"./tables-btcG3yFT.js";import{n as p}from"./active-listener-Dle9QX40.js";const m=`\0FENCE`,h=`\0CODE`;function g(e){if(!e)return e;let t=[],n=e.replace(/```[\s\S]*?```/g,e=>(t.push(e),`${m}${t.length-1}`)),i=[];return n=n.replace(/`[^`\n]+`/g,e=>(i.push(e),`${h}${i.length-1}`)),n=n.replace(/\*\*(.+?)\*\*/g,`*$1*`),n=n.replace(/__(.+?)__/g,`*$1*`),n=n.replace(/~~(.+?)~~/g,`~$1~`),n=n.replace(RegExp(`${r(h)}(\\d+)`,`g`),(e,t)=>i[Number(t)]??``),n=n.replace(RegExp(`${r(m)}(\\d+)`,`g`),(e,n)=>t[Number(n)]??``),n}const _=t(`gateway/channels/whatsapp`).child(`outbound`);async function v(t,r,d){let m=r.trimStart(),h=n(t);if(!m&&!d.mediaUrl)return{messageId:``,toJid:h};let v=c(),y=Date.now(),{listener:b,accountId:x}=p(d.accountId),S=d.cfg??a(),C=s({cfg:S,accountId:x??d.accountId}),w=u({cfg:S,channel:`whatsapp`,accountId:x??d.accountId});m=f(m??``,w),m=g(m);let T=i(t),E=e({module:`web-outbound`,correlationId:v,to:T});try{let e=i(h),n,r,a;if(d.mediaUrl){let e=await l(d.mediaUrl,{maxBytes:o(C),localRoots:d.mediaLocalRoots}),t=m||void 0;n=e.buffer,r=e.contentType,e.kind===`audio`?r=e.contentType===`audio/ogg`?`audio/ogg; codecs=opus`:e.contentType??`application/octet-stream`:e.kind===`video`||e.kind===`image`?m=t??``:(m=t??``,a=e.fileName)}_.info(`Sending message -> ${e}${d.mediaUrl?` (media)`:``}`),E.info({jid:e,hasMedia:!!d.mediaUrl},`sending message`),await b.sendComposingTo(t);let s=d.accountId?.trim()?x:void 0,c=d.gifPlayback||s||a?{...d.gifPlayback?{gifPlayback:!0}:{},...a?{fileName:a}:{},accountId:s}:void 0,u=(c?await b.sendMessage(t,m,n,r,c):await b.sendMessage(t,m,n,r))?.messageId??`unknown`,f=Date.now()-y;return _.info(`Sent message ${u} -> ${e}${d.mediaUrl?` (media)`:``} (${f}ms)`),E.info({jid:e,messageId:u},`sent message`),{messageId:u,toJid:h}}catch(e){throw E.error({err:String(e),to:T,hasMedia:!!d.mediaUrl},`failed to send via web session`),e}}async function y(t,r,a,o){let s=c(),{listener:l}=p(o.accountId),u=i(t),d=e({module:`web-outbound`,correlationId:s,chatJid:u,messageId:r});try{let e=i(n(t));_.info(`Sending reaction "${a}" -> message ${r}`),d.info({chatJid:e,messageId:r,emoji:a},`sending reaction`),await l.sendReaction(t,r,a,o.fromMe??!1,o.participant),_.info(`Sent reaction "${a}" -> message ${r}`),d.info({chatJid:e,messageId:r,emoji:a},`sent reaction`)}catch(e){throw d.error({err:String(e),chatJid:u,messageId:r,emoji:a},`failed to send reaction via web session`),e}}async function b(t,r,a){let o=c(),s=Date.now(),{listener:l}=p(a.accountId),u=i(t),f=e({module:`web-outbound`,correlationId:o,to:u});try{let e=n(t),a=i(e),o=d(r,{maxOptions:12});_.info(`Sending poll -> ${a}`),f.info({jid:a,optionCount:o.options.length,maxSelections:o.maxSelections},`sending poll`);let c=(await l.sendPoll(t,o))?.messageId??`unknown`,u=Date.now()-s;return _.info(`Sent poll ${c} -> ${a} (${u}ms)`),f.info({jid:a,messageId:c},`sent poll`),{messageId:c,toJid:e}}catch(e){throw f.error({err:String(e),to:u},`failed to send poll via web session`),e}}export{g as i,b as n,y as r,v as t};
|
|
2
|
+
//# sourceMappingURL=outbound-Bx2Z2aYK.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{j as e,t}from"./subsystem-C5XF2Fy5.js";import{T as n,l as r}from"./utils-UGOV_184.js";import{ps as i,qs as a}from"./model-selection-BlC_rXAN.js";import{G as o,U as s}from"./plugins-CYLrFT4h.js";import{n as c}from"./secure-random-D7JQgiK-.js";import{a as l,s as u}from"./ir-Dk7OQ4bA.js";import{n as d}from"./polls-Bh5wc9-6.js";import{t as f}from"./tables-Oieq7UbT.js";import{n as p}from"./active-listener-DeKRt_UV.js";const m=`\0FENCE`,h=`\0CODE`;function g(e){if(!e)return e;let t=[],n=e.replace(/```[\s\S]*?```/g,e=>(t.push(e),`${m}${t.length-1}`)),i=[];return n=n.replace(/`[^`\n]+`/g,e=>(i.push(e),`${h}${i.length-1}`)),n=n.replace(/\*\*(.+?)\*\*/g,`*$1*`),n=n.replace(/__(.+?)__/g,`*$1*`),n=n.replace(/~~(.+?)~~/g,`~$1~`),n=n.replace(RegExp(`${r(h)}(\\d+)`,`g`),(e,t)=>i[Number(t)]??``),n=n.replace(RegExp(`${r(m)}(\\d+)`,`g`),(e,n)=>t[Number(n)]??``),n}const _=t(`gateway/channels/whatsapp`).child(`outbound`);async function v(t,r,d){let m=r.trimStart(),h=n(t);if(!m&&!d.mediaUrl)return{messageId:``,toJid:h};let v=c(),y=Date.now(),{listener:b,accountId:x}=p(d.accountId),S=d.cfg??a(),C=s({cfg:S,accountId:x??d.accountId}),w=u({cfg:S,channel:`whatsapp`,accountId:x??d.accountId});m=f(m??``,w),m=g(m);let T=i(t),E=e({module:`web-outbound`,correlationId:v,to:T});try{let e=i(h),n,r,a;if(d.mediaUrl){let e=await l(d.mediaUrl,{maxBytes:o(C),localRoots:d.mediaLocalRoots}),t=m||void 0;n=e.buffer,r=e.contentType,e.kind===`audio`?r=e.contentType===`audio/ogg`?`audio/ogg; codecs=opus`:e.contentType??`application/octet-stream`:e.kind===`video`||e.kind===`image`?m=t??``:(m=t??``,a=e.fileName)}_.info(`Sending message -> ${e}${d.mediaUrl?` (media)`:``}`),E.info({jid:e,hasMedia:!!d.mediaUrl},`sending message`),await b.sendComposingTo(t);let s=d.accountId?.trim()?x:void 0,c=d.gifPlayback||s||a?{...d.gifPlayback?{gifPlayback:!0}:{},...a?{fileName:a}:{},accountId:s}:void 0,u=(c?await b.sendMessage(t,m,n,r,c):await b.sendMessage(t,m,n,r))?.messageId??`unknown`,f=Date.now()-y;return _.info(`Sent message ${u} -> ${e}${d.mediaUrl?` (media)`:``} (${f}ms)`),E.info({jid:e,messageId:u},`sent message`),{messageId:u,toJid:h}}catch(e){throw E.error({err:String(e),to:T,hasMedia:!!d.mediaUrl},`failed to send via web session`),e}}async function y(t,r,a,o){let s=c(),{listener:l}=p(o.accountId),u=i(t),d=e({module:`web-outbound`,correlationId:s,chatJid:u,messageId:r});try{let e=i(n(t));_.info(`Sending reaction "${a}" -> message ${r}`),d.info({chatJid:e,messageId:r,emoji:a},`sending reaction`),await l.sendReaction(t,r,a,o.fromMe??!1,o.participant),_.info(`Sent reaction "${a}" -> message ${r}`),d.info({chatJid:e,messageId:r,emoji:a},`sent reaction`)}catch(e){throw d.error({err:String(e),chatJid:u,messageId:r,emoji:a},`failed to send reaction via web session`),e}}async function b(t,r,a){let o=c(),s=Date.now(),{listener:l}=p(a.accountId),u=i(t),f=e({module:`web-outbound`,correlationId:o,to:u});try{let e=n(t),a=i(e),o=d(r,{maxOptions:12});_.info(`Sending poll -> ${a}`),f.info({jid:a,optionCount:o.options.length,maxSelections:o.maxSelections},`sending poll`);let c=(await l.sendPoll(t,o))?.messageId??`unknown`,u=Date.now()-s;return _.info(`Sent poll ${c} -> ${a} (${u}ms)`),f.info({jid:a,messageId:c},`sent poll`),{messageId:c,toJid:e}}catch(e){throw f.error({err:String(e),to:u},`failed to send poll via web session`),e}}export{g as i,b as n,y as r,v as t};
|
|
2
|
+
//# sourceMappingURL=outbound-Bz8bbrMI.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{ba as e}from"./model-selection-BlC_rXAN.js";import{a as t}from"./ir-Dk7OQ4bA.js";import{t as n}from"./load-options-BsOW74dp.js";async function r(r,i,a){let o=await t(r,n({maxBytes:i,mediaLocalRoots:a?.localRoots})),s=await e(o.buffer,o.contentType??void 0,`outbound`,i);return{path:s.path,contentType:s.contentType}}export{r as t};
|
|
2
|
+
//# sourceMappingURL=outbound-attachment-B7wMxwj6.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{ai as e}from"./auth-profiles-T8DuH3ax.js";import{a as t}from"./ir-D8Hh84ab.js";import{t as n}from"./load-options-DV4j6Aqb.js";async function r(r,i,a){let o=await t(r,n({maxBytes:i,mediaLocalRoots:a?.localRoots})),s=await e(o.buffer,o.contentType??void 0,`outbound`,i);return{path:s.path,contentType:s.contentType}}export{r as t};
|
|
2
|
+
//# sourceMappingURL=outbound-attachment-BgAe99RM.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Mi as e}from"./model-selection-B5JsBS9D.js";import{a as t}from"./ir-DBWscfBd.js";import{t as n}from"./load-options-C7dLuybp.js";async function r(r,i,a){let o=await t(r,n({maxBytes:i,mediaLocalRoots:a?.localRoots})),s=await e(o.buffer,o.contentType??void 0,`outbound`,i);return{path:s.path,contentType:s.contentType}}export{r as t};
|
|
2
|
+
//# sourceMappingURL=outbound-attachment-Dds8xirj.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Mi as e}from"./model-selection-vfhBuN9O.js";import{a as t}from"./ir-BF0M2kGp.js";import{t as n}from"./load-options-Dwt0CeEg.js";async function r(r,i,a){let o=await t(r,n({maxBytes:i,mediaLocalRoots:a?.localRoots})),s=await e(o.buffer,o.contentType??void 0,`outbound`,i);return{path:s.path,contentType:s.contentType}}export{r as t};
|
|
2
|
+
//# sourceMappingURL=outbound-attachment-DqEKghQp.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import"./paths-B4IRk3wi.js";import{A as e,p as t}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import{qs as n}from"./model-selection-BlC_rXAN.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{t as r}from"./command-format-BbDT1tlm.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{r as i}from"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{f as a,n as o,p as s,r as c}from"./pairing-store-Cg2UxreQ.js";import{t as l}from"./pairing-labels-BUU_-70B.js";import{t as u}from"./links-CySwdMcF.js";import{n as d,t as f}from"./table-CY440fI1.js";function p(e,t){let n=(typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):``).trim().toLowerCase();if(!n)throw Error(`Channel required`);let r=i(n);if(r){if(!t.includes(r))throw Error(`Channel ${r} does not support pairing`);return r}if(/^[a-z][a-z0-9_-]{0,63}$/.test(n))return n;throw Error(`Invalid channel: ${n}`)}async function m(e,t){await s({channelId:e,id:t,cfg:n()})}function h(n){let i=a(),s=n.command(`pairing`).description(`Secure DM pairing (approve inbound requests)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${u(`/cli/pairing`,`docs.openclaw.ai/cli/pairing`)}\n`);s.command(`list`).description(`List pending pairing requests`).option(`--channel <channel>`,`Channel (${i.join(`, `)})`).option(`--account <accountId>`,`Account id (for multi-account channels)`).argument(`[channel]`,`Channel (${i.join(`, `)})`).option(`--json`,`Print JSON`,!1).action(async(n,r)=>{let a=r.channel??n??(i.length===1?i[0]:``);if(!a)throw Error(`Channel required. Use --channel <channel> or pass it as the first argument (expected one of: ${i.join(`, `)})`);let o=p(a,i),s=String(r.account??``).trim(),u=s?await c(o,process.env,s):await c(o);if(r.json){t.log(JSON.stringify({channel:o,requests:u},null,2));return}if(u.length===0){t.log(e.muted(`No pending ${o} pairing requests.`));return}let m=l(o),h=f();t.log(`${e.heading(`Pairing requests`)} ${e.muted(`(${u.length})`)}`),t.log(d({width:h,columns:[{key:`Code`,header:`Code`,minWidth:10},{key:`ID`,header:m,minWidth:12,flex:!0},{key:`Meta`,header:`Meta`,minWidth:8,flex:!0},{key:`Requested`,header:`Requested`,minWidth:12}],rows:u.map(e=>({Code:e.code,ID:e.id,Meta:e.meta?JSON.stringify(e.meta):``,Requested:e.createdAt}))}).trimEnd())}),s.command(`approve`).description(`Approve a pairing code and allow that sender`).option(`--channel <channel>`,`Channel (${i.join(`, `)})`).option(`--account <accountId>`,`Account id (for multi-account channels)`).argument(`<codeOrChannel>`,`Pairing code (or channel when using 2 args)`).argument(`[code]`,`Pairing code (when channel is passed as the 1st arg)`).option(`--notify`,`Notify the requester on the same channel`,!1).action(async(n,a,s)=>{let c=i.length===1?i[0]:``,l=!!s.channel,u=a!=null,d=l?s.channel:u?n:c,f=l?n:u?a:n;if(!d||!f)throw Error(`Usage: ${r(`openclaw pairing approve <channel> <code>`)} (or: ${r(`openclaw pairing approve --channel <channel> <code>`)})`);if(s.channel&&a!=null)throw Error(`Too many arguments. Use: ${r(`openclaw pairing approve --channel <channel> <code>`)}`);let h=p(d,i),g=String(s.account??``).trim(),_=g?await o({channel:h,code:String(f),accountId:g}):await o({channel:h,code:String(f)});if(!_)throw Error(`No pending pairing request found for code: ${String(f)}`);t.log(`${e.success(`Approved`)} ${e.muted(h)} sender ${e.command(_.id)}.`),s.notify&&await m(h,_.id).catch(n=>{t.log(e.warn(`Failed to notify requester: ${String(n)}`))})})}export{h as registerPairingCli};
|
|
2
|
+
//# sourceMappingURL=pairing-cli-Bya9M-I_.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{A as e,p as t}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{jo as n}from"./auth-profiles-T8DuH3ax.js";import{t as r}from"./command-format-CLxIPuLR.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{r as i}from"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{f as a,n as o,p as s,r as c}from"./pairing-store-BH-FTYkn.js";import{t as l}from"./pairing-labels-D-kzQEL2.js";import{t as u}from"./links-CBnmRP9D.js";import{n as d,t as f}from"./table-CR7TFMew.js";function p(e,t){let n=(typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):``).trim().toLowerCase();if(!n)throw Error(`Channel required`);let r=i(n);if(r){if(!t.includes(r))throw Error(`Channel ${r} does not support pairing`);return r}if(/^[a-z][a-z0-9_-]{0,63}$/.test(n))return n;throw Error(`Invalid channel: ${n}`)}async function m(e,t){await s({channelId:e,id:t,cfg:n()})}function h(n){let i=a(),s=n.command(`pairing`).description(`Secure DM pairing (approve inbound requests)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${u(`/cli/pairing`,`docs.openclaw.ai/cli/pairing`)}\n`);s.command(`list`).description(`List pending pairing requests`).option(`--channel <channel>`,`Channel (${i.join(`, `)})`).option(`--account <accountId>`,`Account id (for multi-account channels)`).argument(`[channel]`,`Channel (${i.join(`, `)})`).option(`--json`,`Print JSON`,!1).action(async(n,r)=>{let a=r.channel??n??(i.length===1?i[0]:``);if(!a)throw Error(`Channel required. Use --channel <channel> or pass it as the first argument (expected one of: ${i.join(`, `)})`);let o=p(a,i),s=String(r.account??``).trim(),u=s?await c(o,process.env,s):await c(o);if(r.json){t.log(JSON.stringify({channel:o,requests:u},null,2));return}if(u.length===0){t.log(e.muted(`No pending ${o} pairing requests.`));return}let m=l(o),h=f();t.log(`${e.heading(`Pairing requests`)} ${e.muted(`(${u.length})`)}`),t.log(d({width:h,columns:[{key:`Code`,header:`Code`,minWidth:10},{key:`ID`,header:m,minWidth:12,flex:!0},{key:`Meta`,header:`Meta`,minWidth:8,flex:!0},{key:`Requested`,header:`Requested`,minWidth:12}],rows:u.map(e=>({Code:e.code,ID:e.id,Meta:e.meta?JSON.stringify(e.meta):``,Requested:e.createdAt}))}).trimEnd())}),s.command(`approve`).description(`Approve a pairing code and allow that sender`).option(`--channel <channel>`,`Channel (${i.join(`, `)})`).option(`--account <accountId>`,`Account id (for multi-account channels)`).argument(`<codeOrChannel>`,`Pairing code (or channel when using 2 args)`).argument(`[code]`,`Pairing code (when channel is passed as the 1st arg)`).option(`--notify`,`Notify the requester on the same channel`,!1).action(async(n,a,s)=>{let c=i.length===1?i[0]:``,l=!!s.channel,u=a!=null,d=l?s.channel:u?n:c,f=l?n:u?a:n;if(!d||!f)throw Error(`Usage: ${r(`openclaw pairing approve <channel> <code>`)} (or: ${r(`openclaw pairing approve --channel <channel> <code>`)})`);if(s.channel&&a!=null)throw Error(`Too many arguments. Use: ${r(`openclaw pairing approve --channel <channel> <code>`)}`);let h=p(d,i),g=String(s.account??``).trim(),_=g?await o({channel:h,code:String(f),accountId:g}):await o({channel:h,code:String(f)});if(!_)throw Error(`No pending pairing request found for code: ${String(f)}`);t.log(`${e.success(`Approved`)} ${e.muted(h)} sender ${e.command(_.id)}.`),s.notify&&await m(h,_.id).catch(n=>{t.log(e.warn(`Failed to notify requester: ${String(n)}`))})})}export{h as registerPairingCli};
|
|
2
|
+
//# sourceMappingURL=pairing-cli-D2JEhufv.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{g as e,m as t,y as n}from"./paths-BjD3T_xq.js";import{Nc as r,br as i}from"./auth-profiles-T8DuH3ax.js";import"./session-key-C7F_iqYg.js";import{y as a}from"./utils-CGdo13HV.js";import{n as o,t as s}from"./plugins-DNlgeTTc.js";import c from"node:os";import l from"node:path";import u from"node:fs";import d from"node:crypto";function f(){return o().filter(e=>e.pairing).map(e=>e.id)}function p(e){return s(e)?.pairing??null}function m(e){let t=p(e);if(!t)throw Error(`Channel ${e} does not support pairing`);return t}async function h(e){let t=e.pairingAdapter??m(e.channelId);t.notifyApproval&&await t.notifyApproval({cfg:e.cfg,id:e.id,runtime:e.runtime})}async function g(e,t){try{let n=a(await u.promises.readFile(e,`utf-8`));return n==null?{value:t,exists:!0}:{value:n,exists:!0}}catch(e){return e.code,{value:t,exists:!1}}}async function _(e,t){await i(e,t,{mode:384,trailingNewline:!0,ensureDirMode:448})}const v={retries:{retries:10,factor:2,minTimeout:100,maxTimeout:1e4,randomize:!0},stale:3e4},y=new Map;function b(r=process.env){return t(r,e(r,()=>n(r,c.homedir)))}function x(e){let t=String(e).trim().toLowerCase();if(!t)throw Error(`invalid pairing channel`);let n=t.replace(/[\\/:*?"<>|]/g,`_`).replace(/\.\./g,`_`);if(!n||n===`_`)throw Error(`invalid pairing channel`);return n}function S(e,t=process.env){return l.join(b(t),`${x(e)}-pairing.json`)}function ee(e){let t=String(e).trim().toLowerCase();if(!t)throw Error(`invalid pairing account id`);let n=t.replace(/[\\/:*?"<>|]/g,`_`).replace(/\.\./g,`_`);if(!n||n===`_`)throw Error(`invalid pairing account id`);return n}function C(e,t=process.env,n){let r=x(e),i=typeof n==`string`?n.trim():``;return i?l.join(b(t),`${r}-${ee(i)}-allowFrom.json`):l.join(b(t),`${r}-allowFrom.json`)}function te(e,t=process.env,n){return C(e,t,n)}async function w(e,t){return await g(e,t)}async function T(e,t){await _(e,t)}async function E(e){let{value:t}=await w(e,{version:1,requests:[]});return Array.isArray(t.requests)?t.requests:[]}async function D(e){return M(await E(e),Date.now())}async function O(e,t){try{await u.promises.access(e)}catch{await T(e,t)}}async function k(e,t,n){return await O(e,t),await r(e,v,async()=>await n())}function A(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function j(e,t){let n=A(e.createdAt);return n?t-n>36e5:!0}function M(e,t){let n=[],r=!1;for(let i of e){if(j(i,t)){r=!0;continue}n.push(i)}return{requests:n,removed:r}}function N(e){return A(e.lastSeenAt)??A(e.createdAt)??0}function P(e,t){return t<=0||e.length<=t?{requests:e,removed:!1}:{requests:e.slice().toSorted((e,t)=>N(e)-N(t)).slice(-t),removed:!0}}function ne(){let e=``;for(let t=0;t<8;t++){let t=d.randomInt(0,32);e+=`ABCDEFGHJKLMNPQRSTUVWXYZ23456789`[t]}return e}function F(e){for(let t=0;t<500;t+=1){let t=ne();if(!e.has(t))return t}throw Error(`failed to generate unique pairing code`)}function I(e){return e?.trim().toLowerCase()||``}function L(e,t){return t?String(e.meta?.accountId??``).trim().toLowerCase()===t:!0}function R(e){return!e||e===`default`}function z(e){return I(e)||`default`}function B(e){return String(e).trim()}function V(e,t){let n=t.trim();if(!n||n===`*`)return``;let r=p(e),i=r?.normalizeAllowEntry?r.normalizeAllowEntry(n):n;return String(i).trim()}function H(e,t){return W((Array.isArray(t.allowFrom)?t.allowFrom:[]).map(t=>V(e,String(t))).filter(Boolean))}function U(e,t){return V(e,B(t))}function W(e){let t=new Set,n=[];for(let r of e){let e=String(r).trim();!e||t.has(e)||(t.add(e),n.push(e))}return n}async function G(e,t){return(await X(e,t)).entries}function K(e){return{exists:e.exists,mtimeMs:e.mtimeMs,size:e.size,entries:e.entries.slice()}}function q(e,t){y.set(e,K(t))}function J(e){let t=y.get(e.filePath);return!t||t.exists!==e.exists||e.exists&&(t.mtimeMs!==e.mtimeMs||t.size!==e.size)?null:K(t)}function Y(e,t){let n=J({filePath:e,exists:!!t,mtimeMs:t?.mtimeMs??null,size:t?.size??null});return n?{entries:n.entries,exists:n.exists}:t?null:(q(e,{exists:!1,mtimeMs:null,size:null,entries:[]}),{entries:[],exists:!1})}async function X(e,t){let n=null;try{n=await u.promises.stat(t)}catch(e){if(e.code!==`ENOENT`)throw e}let r=Y(t,n);if(r)return r;if(!n)return{entries:[],exists:!1};let{value:i,exists:a}=await w(t,{version:1,allowFrom:[]}),o=H(e,i);return q(t,{exists:a,mtimeMs:n.mtimeMs,size:n.size,entries:o}),{entries:o,exists:a}}function Z(e,t){return re(e,t).entries}function re(e,t){let n=null;try{n=u.statSync(t)}catch(e){if(e.code!==`ENOENT`)return{entries:[],exists:!1}}let r=Y(t,n);if(r)return r;if(!n)return{entries:[],exists:!1};let i=``;try{i=u.readFileSync(t,`utf8`)}catch(e){return e.code,{entries:[],exists:!1}}try{let r=H(e,JSON.parse(i));return q(t,{exists:!0,mtimeMs:n.mtimeMs,size:n.size,entries:r}),{entries:r,exists:!0}}catch{return q(t,{exists:!0,mtimeMs:n.mtimeMs,size:n.size,entries:[]}),{entries:[],exists:!0}}}async function ie(e){let{value:t}=await w(e.filePath,{version:1,allowFrom:[]});return{current:H(e.channel,t),normalized:U(e.channel,e.entry)||null}}async function ae(e,t){await T(e,{version:1,allowFrom:t});let n=null;try{n=await u.promises.stat(e)}catch{}q(e,{exists:!0,mtimeMs:n?.mtimeMs??null,size:n?.size??null,entries:t.slice()})}async function oe(e){let t=C(e.channel,e.env,e.accountId);return await G(e.channel,t)}function se(e){let t=C(e.channel,e.env,e.accountId);return Z(e.channel,t)}async function ce(e){let t=e.env??process.env,n=C(e.channel,t,e.accountId);return await k(n,{version:1,allowFrom:[]},async()=>{let{current:t,normalized:r}=await ie({channel:e.channel,entry:e.entry,filePath:n});if(!r)return{changed:!1,allowFrom:t};let i=e.apply(t,r);return i?(await ae(n,i),{changed:!0,allowFrom:i}):{changed:!1,allowFrom:t}})}async function le(e,t=process.env,n){let r=z(n);if(!R(r))return await oe({channel:e,env:t,accountId:r});let i=await G(e,C(e,t,r)),a=await G(e,C(e,t));return W([...i,...a])}function ue(e,t=process.env,n){let r=z(n);if(!R(r))return se({channel:e,env:t,accountId:r});let i=Z(e,C(e,t,r)),a=Z(e,C(e,t));return W([...i,...a])}async function de(e){return await ce({channel:e.channel,entry:e.entry,accountId:e.accountId,env:e.env,apply:e.apply})}async function Q(e,t){return await de({...e,apply:t})}async function $(e){return await Q(e,(e,t)=>e.includes(t)?null:[...e,t])}async function fe(e){return await Q(e,(e,t)=>{let n=e.filter(e=>e!==t);return n.length===e.length?null:n})}async function pe(e,t=process.env,n){let r=S(e,t);return await k(r,{version:1,requests:[]},async()=>{let{requests:e,removed:t}=await D(r),{requests:i,removed:a}=P(e,3);(t||a)&&await T(r,{version:1,requests:i});let o=I(n);return(o?i.filter(e=>L(e,o)):i).filter(e=>e&&typeof e.id==`string`&&typeof e.code==`string`&&typeof e.createdAt==`string`).slice().toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))})}async function me(e){let t=e.env??process.env,n=S(e.channel,t);return await k(n,{version:1,requests:[]},async()=>{let t=new Date().toISOString(),r=Date.now(),i=B(e.id),a=I(e.accountId)||`default`,o={...e.meta&&typeof e.meta==`object`?Object.fromEntries(Object.entries(e.meta).map(([e,t])=>[e,String(t??``).trim()]).filter(([e,t])=>!!t)):void 0,accountId:a},s=await E(n),{requests:c,removed:l}=M(s,r);s=c;let u=a,d=s.findIndex(e=>e.id===i?L(e,u):!1),f=new Set(s.map(e=>String(e.code??``).trim().toUpperCase()));if(d>=0){let e=s[d],r=(e&&typeof e.code==`string`?e.code.trim():``)||F(f),a={id:i,code:r,createdAt:e?.createdAt??t,lastSeenAt:t,meta:o??e?.meta};s[d]=a;let{requests:c}=P(s,3);return await T(n,{version:1,requests:c}),{code:r,created:!1}}let{requests:p,removed:m}=P(s,3);if(s=p,s.length>=3)return(l||m)&&await T(n,{version:1,requests:s}),{code:``,created:!1};let h=F(f),g={id:i,code:h,createdAt:t,lastSeenAt:t,...o?{meta:o}:{}};return await T(n,{version:1,requests:[...s,g]}),{code:h,created:!0}})}async function he(e){let t=e.env??process.env,n=e.code.trim().toUpperCase();if(!n)return null;let r=S(e.channel,t);return await k(r,{version:1,requests:[]},async()=>{let{requests:i,removed:a}=await D(r),o=I(e.accountId),s=i.findIndex(e=>String(e.code??``).toUpperCase()===n?L(e,o):!1);if(s<0)return a&&await T(r,{version:1,requests:i}),null;let c=i[s];if(!c)return null;i.splice(s,1),await T(r,{version:1,requests:i});let l=String(c.meta?.accountId??``).trim()||void 0;return await $({channel:e.channel,entry:c.id,accountId:e.accountId?.trim()||l,env:t}),{id:c.id,entry:c}})}export{ue as a,me as c,p as d,f,le as i,g as l,he as n,fe as o,h as p,pe as r,te as s,$ as t,_ as u};
|
|
2
|
+
//# sourceMappingURL=pairing-store-BH-FTYkn.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{g as e,m as t,y as n}from"./paths-B4IRk3wi.js";import{b as r}from"./utils-UGOV_184.js";import{Mi as i,ru as a}from"./model-selection-BlC_rXAN.js";import"./session-key-D3P0tf5P.js";import{n as o,t as s}from"./plugins-CYLrFT4h.js";import c from"node:fs";import l from"node:os";import u from"node:path";import d from"node:crypto";function f(){return o().filter(e=>e.pairing).map(e=>e.id)}function p(e){return s(e)?.pairing??null}function m(e){let t=p(e);if(!t)throw Error(`Channel ${e} does not support pairing`);return t}async function h(e){let t=e.pairingAdapter??m(e.channelId);t.notifyApproval&&await t.notifyApproval({cfg:e.cfg,id:e.id,runtime:e.runtime})}async function g(e,t){try{let n=r(await c.promises.readFile(e,`utf-8`));return n==null?{value:t,exists:!0}:{value:n,exists:!0}}catch(e){return e.code,{value:t,exists:!1}}}async function _(e,t){await i(e,t,{mode:384,trailingNewline:!0,ensureDirMode:448})}const ee={retries:{retries:10,factor:2,minTimeout:100,maxTimeout:1e4,randomize:!0},stale:3e4},v=new Map;function y(r=process.env){return t(r,e(r,()=>n(r,l.homedir)))}function b(e){let t=String(e).trim().toLowerCase();if(!t)throw Error(`invalid pairing channel`);let n=t.replace(/[\\/:*?"<>|]/g,`_`).replace(/\.\./g,`_`);if(!n||n===`_`)throw Error(`invalid pairing channel`);return n}function x(e,t=process.env){return u.join(y(t),`${b(e)}-pairing.json`)}function S(e){let t=String(e).trim().toLowerCase();if(!t)throw Error(`invalid pairing account id`);let n=t.replace(/[\\/:*?"<>|]/g,`_`).replace(/\.\./g,`_`);if(!n||n===`_`)throw Error(`invalid pairing account id`);return n}function C(e,t=process.env,n){let r=b(e),i=typeof n==`string`?n.trim():``;return i?u.join(y(t),`${r}-${S(i)}-allowFrom.json`):u.join(y(t),`${r}-allowFrom.json`)}function te(e,t=process.env,n){return C(e,t,n)}async function w(e,t){return await g(e,t)}async function T(e,t){await _(e,t)}async function E(e){let{value:t}=await w(e,{version:1,requests:[]});return Array.isArray(t.requests)?t.requests:[]}async function D(e){return M(await E(e),Date.now())}async function O(e,t){try{await c.promises.access(e)}catch{await T(e,t)}}async function k(e,t,n){return await O(e,t),await a(e,ee,async()=>await n())}function A(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function j(e,t){let n=A(e.createdAt);return n?t-n>36e5:!0}function M(e,t){let n=[],r=!1;for(let i of e){if(j(i,t)){r=!0;continue}n.push(i)}return{requests:n,removed:r}}function N(e){return A(e.lastSeenAt)??A(e.createdAt)??0}function P(e,t){return t<=0||e.length<=t?{requests:e,removed:!1}:{requests:e.slice().toSorted((e,t)=>N(e)-N(t)).slice(-t),removed:!0}}function ne(){let e=``;for(let t=0;t<8;t++){let t=d.randomInt(0,32);e+=`ABCDEFGHJKLMNPQRSTUVWXYZ23456789`[t]}return e}function F(e){for(let t=0;t<500;t+=1){let t=ne();if(!e.has(t))return t}throw Error(`failed to generate unique pairing code`)}function I(e){return e?.trim().toLowerCase()||``}function L(e,t){return t?String(e.meta?.accountId??``).trim().toLowerCase()===t:!0}function R(e){return!e||e===`default`}function z(e){return I(e)||`default`}function B(e){return String(e).trim()}function V(e,t){let n=t.trim();if(!n||n===`*`)return``;let r=p(e),i=r?.normalizeAllowEntry?r.normalizeAllowEntry(n):n;return String(i).trim()}function H(e,t){return U((Array.isArray(t.allowFrom)?t.allowFrom:[]).map(t=>V(e,String(t))).filter(Boolean))}function re(e,t){return V(e,B(t))}function U(e){let t=new Set,n=[];for(let r of e){let e=String(r).trim();!e||t.has(e)||(t.add(e),n.push(e))}return n}async function W(e,t){return(await Y(e,t)).entries}function G(e){return{exists:e.exists,mtimeMs:e.mtimeMs,size:e.size,entries:e.entries.slice()}}function K(e,t){v.set(e,G(t))}function q(e){let t=v.get(e.filePath);return!t||t.exists!==e.exists||e.exists&&(t.mtimeMs!==e.mtimeMs||t.size!==e.size)?null:G(t)}function J(e,t){let n=q({filePath:e,exists:!!t,mtimeMs:t?.mtimeMs??null,size:t?.size??null});return n?{entries:n.entries,exists:n.exists}:t?null:(K(e,{exists:!1,mtimeMs:null,size:null,entries:[]}),{entries:[],exists:!1})}async function Y(e,t){let n=null;try{n=await c.promises.stat(t)}catch(e){if(e.code!==`ENOENT`)throw e}let r=J(t,n);if(r)return r;if(!n)return{entries:[],exists:!1};let{value:i,exists:a}=await w(t,{version:1,allowFrom:[]}),o=H(e,i);return K(t,{exists:a,mtimeMs:n.mtimeMs,size:n.size,entries:o}),{entries:o,exists:a}}function X(e,t){return ie(e,t).entries}function ie(e,t){let n=null;try{n=c.statSync(t)}catch(e){if(e.code!==`ENOENT`)return{entries:[],exists:!1}}let r=J(t,n);if(r)return r;if(!n)return{entries:[],exists:!1};let i=``;try{i=c.readFileSync(t,`utf8`)}catch(e){return e.code,{entries:[],exists:!1}}try{let r=H(e,JSON.parse(i));return K(t,{exists:!0,mtimeMs:n.mtimeMs,size:n.size,entries:r}),{entries:r,exists:!0}}catch{return K(t,{exists:!0,mtimeMs:n.mtimeMs,size:n.size,entries:[]}),{entries:[],exists:!0}}}async function ae(e){let{value:t}=await w(e.filePath,{version:1,allowFrom:[]});return{current:H(e.channel,t),normalized:re(e.channel,e.entry)||null}}async function oe(e,t){await T(e,{version:1,allowFrom:t});let n=null;try{n=await c.promises.stat(e)}catch{}K(e,{exists:!0,mtimeMs:n?.mtimeMs??null,size:n?.size??null,entries:t.slice()})}async function se(e){let t=C(e.channel,e.env,e.accountId);return await W(e.channel,t)}function ce(e){let t=C(e.channel,e.env,e.accountId);return X(e.channel,t)}async function Z(e){let t=e.env??process.env,n=C(e.channel,t,e.accountId);return await k(n,{version:1,allowFrom:[]},async()=>{let{current:t,normalized:r}=await ae({channel:e.channel,entry:e.entry,filePath:n});if(!r)return{changed:!1,allowFrom:t};let i=e.apply(t,r);return i?(await oe(n,i),{changed:!0,allowFrom:i}):{changed:!1,allowFrom:t}})}async function le(e,t=process.env,n){let r=z(n);if(!R(r))return await se({channel:e,env:t,accountId:r});let i=await W(e,C(e,t,r)),a=await W(e,C(e,t));return U([...i,...a])}function ue(e,t=process.env,n){let r=z(n);if(!R(r))return ce({channel:e,env:t,accountId:r});let i=X(e,C(e,t,r)),a=X(e,C(e,t));return U([...i,...a])}async function de(e){return await Z({channel:e.channel,entry:e.entry,accountId:e.accountId,env:e.env,apply:e.apply})}async function Q(e,t){return await de({...e,apply:t})}async function $(e){return await Q(e,(e,t)=>e.includes(t)?null:[...e,t])}async function fe(e){return await Q(e,(e,t)=>{let n=e.filter(e=>e!==t);return n.length===e.length?null:n})}async function pe(e,t=process.env,n){let r=x(e,t);return await k(r,{version:1,requests:[]},async()=>{let{requests:e,removed:t}=await D(r),{requests:i,removed:a}=P(e,3);(t||a)&&await T(r,{version:1,requests:i});let o=I(n);return(o?i.filter(e=>L(e,o)):i).filter(e=>e&&typeof e.id==`string`&&typeof e.code==`string`&&typeof e.createdAt==`string`).slice().toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))})}async function me(e){let t=e.env??process.env,n=x(e.channel,t);return await k(n,{version:1,requests:[]},async()=>{let t=new Date().toISOString(),r=Date.now(),i=B(e.id),a=I(e.accountId)||`default`,o={...e.meta&&typeof e.meta==`object`?Object.fromEntries(Object.entries(e.meta).map(([e,t])=>[e,String(t??``).trim()]).filter(([e,t])=>!!t)):void 0,accountId:a},s=await E(n),{requests:c,removed:l}=M(s,r);s=c;let u=a,d=s.findIndex(e=>e.id===i?L(e,u):!1),f=new Set(s.map(e=>String(e.code??``).trim().toUpperCase()));if(d>=0){let e=s[d],r=(e&&typeof e.code==`string`?e.code.trim():``)||F(f),a={id:i,code:r,createdAt:e?.createdAt??t,lastSeenAt:t,meta:o??e?.meta};s[d]=a;let{requests:c}=P(s,3);return await T(n,{version:1,requests:c}),{code:r,created:!1}}let{requests:p,removed:m}=P(s,3);if(s=p,s.length>=3)return(l||m)&&await T(n,{version:1,requests:s}),{code:``,created:!1};let h=F(f),g={id:i,code:h,createdAt:t,lastSeenAt:t,...o?{meta:o}:{}};return await T(n,{version:1,requests:[...s,g]}),{code:h,created:!0}})}async function he(e){let t=e.env??process.env,n=e.code.trim().toUpperCase();if(!n)return null;let r=x(e.channel,t);return await k(r,{version:1,requests:[]},async()=>{let{requests:i,removed:a}=await D(r),o=I(e.accountId),s=i.findIndex(e=>String(e.code??``).toUpperCase()===n?L(e,o):!1);if(s<0)return a&&await T(r,{version:1,requests:i}),null;let c=i[s];if(!c)return null;i.splice(s,1),await T(r,{version:1,requests:i});let l=String(c.meta?.accountId??``).trim()||void 0;return await $({channel:e.channel,entry:c.id,accountId:e.accountId?.trim()||l,env:t}),{id:c.id,entry:c}})}export{ue as a,me as c,p as d,f,le as i,g as l,he as n,fe as o,h as p,pe as r,te as s,$ as t,_ as u};
|
|
2
|
+
//# sourceMappingURL=pairing-store-Cg2UxreQ.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{g as e}from"./paths-B4IRk3wi.js";import{Oo as t}from"./model-selection-BlC_rXAN.js";import n from"node:path";import{randomBytes as r}from"node:crypto";function i(t,r){let i=t??e(),a=n.join(i,r);return{dir:a,pendingPath:n.join(a,`pending.json`),pairedPath:n.join(a,`paired.json`)}}function a(e,t,n){for(let[r,i]of Object.entries(e))t-i.ts>n&&delete e[r]}async function o(e){let t=Object.values(e.pendingById).find(e.isExisting);if(t)return{status:`pending`,request:t,created:!1};let n=e.createRequest(e.isRepair);return e.pendingById[n.requestId]=n,await e.persist(),{status:`pending`,request:n,created:!0}}async function s(e){let t=await e.loadState(),n=t.pendingById[e.requestId];return n?(delete t.pendingById[e.requestId],await e.persistState(t),{requestId:e.requestId,[e.idKey]:e.getId(n)}):null}function c(){return r(32).toString(`base64url`)}function l(e,n){return t(e,n)}export{i as a,a as i,l as n,o,s as r,c as t};
|
|
2
|
+
//# sourceMappingURL=pairing-token-BjYBuREl.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{g as e}from"./paths-BjD3T_xq.js";import{pa as t}from"./auth-profiles-T8DuH3ax.js";import n from"node:path";import{randomBytes as r}from"node:crypto";function i(t,r){let i=t??e(),a=n.join(i,r);return{dir:a,pendingPath:n.join(a,`pending.json`),pairedPath:n.join(a,`paired.json`)}}function a(e,t,n){for(let[r,i]of Object.entries(e))t-i.ts>n&&delete e[r]}async function o(e){let t=Object.values(e.pendingById).find(e.isExisting);if(t)return{status:`pending`,request:t,created:!1};let n=e.createRequest(e.isRepair);return e.pendingById[n.requestId]=n,await e.persist(),{status:`pending`,request:n,created:!0}}async function s(e){let t=await e.loadState(),n=t.pendingById[e.requestId];return n?(delete t.pendingById[e.requestId],await e.persistState(t),{requestId:e.requestId,[e.idKey]:e.getId(n)}):null}function c(){return r(32).toString(`base64url`)}function l(e,n){return t(e,n)}export{i as a,a as i,l as n,o,s as r,c as t};
|
|
2
|
+
//# sourceMappingURL=pairing-token-DAR7V7FJ.js.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
const e=new Set([`\\`,`"`,`$`,"`",`
|
|
2
2
|
`,`\r`]);function t(t){return!!(t&&e.has(t))}function n(e){let n=[],r=``,i=!1,a=!1,o=!1,s=()=>{r.length>0&&(n.push(r),r=``)};for(let n=0;n<e.length;n+=1){let c=e[n];if(o){r+=c,o=!1;continue}if(!i&&!a&&c===`\\`){o=!0;continue}if(i){c===`'`?i=!1:r+=c;continue}if(a){let i=e[n+1];if(c===`\\`&&t(i)){r+=i,n+=1;continue}c===`"`?a=!1:r+=c;continue}if(c===`'`){i=!0;continue}if(c===`"`){a=!0;continue}if(c===`#`&&r.length===0)break;if(/\s/.test(c)){s();continue}r+=c}return o||i||a?null:(s(),n)}const r={ms:1,s:1e3,m:6e4,h:36e5,d:864e5};function i(e,t){let n=String(e??``).trim().toLowerCase();if(!n)throw Error(`invalid duration (empty)`);let i=/^(\d+(?:\.\d+)?)(ms|s|m|h|d)?$/.exec(n);if(i){let n=Number(i[1]);if(!Number.isFinite(n)||n<0)throw Error(`invalid duration: ${e}`);let a=i[2]??t?.defaultUnit??`ms`,o=Math.round(n*r[a]);if(!Number.isFinite(o))throw Error(`invalid duration: ${e}`);return o}let a=0,o=0;for(let t of n.matchAll(/(\d+(?:\.\d+)?)(ms|s|m|h|d)/g)){let[n,i,s]=t,c=t.index??-1;if(!n||!i||!s||c<0||c!==o)throw Error(`invalid duration: ${e}`);let l=Number(i);if(!Number.isFinite(l)||l<0)throw Error(`invalid duration: ${e}`);let u=r[s];if(!u)throw Error(`invalid duration: ${e}`);a+=l*u,o+=n.length}if(o!==n.length||o===0)throw Error(`invalid duration: ${e}`);let s=Math.round(a);if(!Number.isFinite(s))throw Error(`invalid duration: ${e}`);return s}export{n,i as t};
|
|
3
|
+
//# sourceMappingURL=parse-duration-XTjMKl8s.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){return e.trim()||void 0}function t(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){let t=Number.parseFloat(e);if(Number.isFinite(t))return t}}function n(t){if(typeof t==`number`)return Number.isSafeInteger(t)?t:void 0;if(typeof t!=`string`)return;let n=e(t);if(!n||!/^[+-]?\d+$/.test(n))return;let r=Number(n);return Number.isSafeInteger(r)?r:void 0}function r(e){let t=n(e);return t!==void 0&&t>0?t:void 0}function i(e){let t=n(e);return t!==void 0&&t>=0?t:void 0}export{r as i,n,i as r,t};
|
|
2
|
+
//# sourceMappingURL=parse-finite-number-DqzUM-_s.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){return e.trim()||void 0}function t(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`){let t=Number.parseFloat(e);if(Number.isFinite(t))return t}}function n(t){if(typeof t==`number`)return Number.isSafeInteger(t)?t:void 0;if(typeof t!=`string`)return;let n=e(t);if(!n||!/^[+-]?\d+$/.test(n))return;let r=Number(n);return Number.isSafeInteger(r)?r:void 0}function r(e){let t=n(e);return t!==void 0&&t>0?t:void 0}function i(e){let t=n(e);return t!==void 0&&t>=0?t:void 0}export{r as i,n,i as r,t};
|
|
2
|
+
//# sourceMappingURL=parse-finite-number-dBmDLLKL.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){let t=[];for(let n of Object.keys(e)){if(!/^\d+$/.test(n))continue;let r=e[n];typeof r==`string`?t.push(r):r!=null&&t.push(JSON.stringify(r))}return t.join(` `)}function t(e){if(typeof e!=`string`)return{};try{let t=JSON.parse(e);return{subsystem:typeof t.subsystem==`string`?t.subsystem:void 0,module:typeof t.module==`string`?t.module:void 0}}catch{return{}}}function n(n){try{let r=JSON.parse(n),i=r._meta,a=t(i?.name),o=typeof i?.logLevelName==`string`?i.logLevelName:void 0;return{time:typeof r.time==`string`?r.time:typeof i?.date==`string`?i.date:void 0,level:o?o.toLowerCase():void 0,subsystem:a.subsystem,module:a.module,message:e(r),raw:n}}catch{return null}}export{n as t};
|
|
2
|
+
//# sourceMappingURL=parse-log-line-CsYLg7Qu.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){let t=[];for(let n of Object.keys(e)){if(!/^\d+$/.test(n))continue;let r=e[n];typeof r==`string`?t.push(r):r!=null&&t.push(JSON.stringify(r))}return t.join(` `)}function t(e){if(typeof e!=`string`)return{};try{let t=JSON.parse(e);return{subsystem:typeof t.subsystem==`string`?t.subsystem:void 0,module:typeof t.module==`string`?t.module:void 0}}catch{return{}}}function n(n){try{let r=JSON.parse(n),i=r._meta,a=t(i?.name),o=typeof i?.logLevelName==`string`?i.logLevelName:void 0;return{time:typeof r.time==`string`?r.time:typeof i?.date==`string`?i.date:void 0,level:o?o.toLowerCase():void 0,subsystem:a.subsystem,module:a.module,message:e(r),raw:n}}catch{return null}}export{n as t};
|
|
2
|
+
//# sourceMappingURL=parse-log-line-NV-cipB_.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){if(e==null)return;let t=NaN;if(typeof e==`number`)t=e;else if(typeof e==`bigint`)t=Number(e);else if(typeof e==`string`){let n=e.trim();if(!n)return;t=Number.parseInt(n,10)}return Number.isFinite(t)?t:void 0}export{e as t};
|
|
2
|
+
//# sourceMappingURL=parse-timeout-DWSGfCkQ.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(e){if(e==null)return;let t=NaN;if(typeof e==`number`)t=e;else if(typeof e==`bigint`)t=Number(e);else if(typeof e==`string`){let n=e.trim();if(!n)return;t=Number.parseInt(n,10)}return Number.isFinite(t)?t:void 0}export{e as t};
|
|
2
|
+
//# sourceMappingURL=parse-timeout-Dx4QnVzo.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{c as e,f as t,l as n}from"./openclaw-root-CnsBf6ZU.js";import r from"node:os";import i from"node:fs/promises";async function a(e){if(e.allowFinalHardlinkForUnlink)return;let n;try{n=await i.stat(e.filePath)}catch(e){if(t(e))return;throw e}if(n.isFile()&&n.nlink>1)throw Error(`Hardlinked path is not allowed under ${e.boundaryLabel} (${o(e.root)}): ${o(e.filePath)}`)}function o(e){return e.startsWith(r.homedir())?`~${e.slice(r.homedir().length)}`:e}const s=e;async function c(e){let t=await n({absolutePath:e.absolutePath,rootPath:e.rootPath,boundaryLabel:e.boundaryLabel,policy:e.policy});e.policy?.allowFinalSymlinkForUnlink===!0&&t.kind===`symlink`||await a({filePath:t.absolutePath,root:t.rootPath,boundaryLabel:e.boundaryLabel,allowFinalHardlinkForUnlink:e.policy?.allowFinalHardlinkForUnlink})}export{c as n,s as t};
|
|
2
|
+
//# sourceMappingURL=path-alias-guards-kY_ZbWs-.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{c as e,f as t,l as n}from"./openclaw-root-D_0Q6--h.js";import r from"node:os";import i from"node:fs/promises";async function a(e){if(e.allowFinalHardlinkForUnlink)return;let n;try{n=await i.stat(e.filePath)}catch(e){if(t(e))return;throw e}if(n.isFile()&&n.nlink>1)throw Error(`Hardlinked path is not allowed under ${e.boundaryLabel} (${o(e.root)}): ${o(e.filePath)}`)}function o(e){return e.startsWith(r.homedir())?`~${e.slice(r.homedir().length)}`:e}const s=e;async function c(e){let t=await n({absolutePath:e.absolutePath,rootPath:e.rootPath,boundaryLabel:e.boundaryLabel,policy:e.policy});e.policy?.allowFinalSymlinkForUnlink===!0&&t.kind===`symlink`||await a({filePath:t.absolutePath,root:t.rootPath,boundaryLabel:e.boundaryLabel,allowFinalHardlinkForUnlink:e.policy?.allowFinalHardlinkForUnlink})}export{c as n,s as t};
|
|
2
|
+
//# sourceMappingURL=path-alias-guards-mvyLCPlN.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./env-D7wNuBx1.js";import{n as t}from"./brew-COcDl8CB.js";import n from"node:fs";import r from"node:os";import i from"node:path";function a(e){try{return n.accessSync(e,n.constants.X_OK),!0}catch{return!1}}function o(e){try{return n.statSync(e).isDirectory()}catch{return!1}}function s(e){let t=e.existing.split(i.delimiter).map(e=>e.trim()).filter(Boolean),n=(e.prepend??[]).map(e=>e.trim()).filter(Boolean),r=(e.append??[]).map(e=>e.trim()).filter(Boolean),a=new Set,o=[];for(let e of[...n,...t,...r])a.has(e)||(a.add(e),o.push(e));return o.join(i.delimiter)}function c(n){let s=n.execPath??process.execPath,c=n.cwd??process.cwd(),l=n.homeDir??r.homedir(),u=n.platform??process.platform,d=[],f=[];try{let e=i.dirname(s);a(i.join(e,`openclaw`))&&d.push(e)}catch{}if(n.allowProjectLocalBin===!0||e(process.env.OPENCLAW_ALLOW_PROJECT_LOCAL_BIN)){let e=i.join(c,`node_modules`,`.bin`);a(i.join(e,`openclaw`))&&f.push(e)}let p=process.env.MISE_DATA_DIR??i.join(l,`.local`,`share`,`mise`),m=i.join(p,`shims`);return o(m)&&d.push(m),d.push(...t({homeDir:l})),u===`darwin`&&d.push(i.join(l,`Library`,`pnpm`)),process.env.XDG_BIN_HOME&&d.push(process.env.XDG_BIN_HOME),d.push(i.join(l,`.local`,`bin`)),d.push(i.join(l,`.local`,`share`,`pnpm`)),d.push(i.join(l,`.bun`,`bin`)),d.push(i.join(l,`.yarn`,`bin`)),d.push(`/opt/homebrew/bin`,`/usr/local/bin`,`/usr/bin`,`/bin`),{prepend:d.filter(o),append:f.filter(o)}}function l(t={}){if(e(process.env.OPENCLAW_PATH_BOOTSTRAPPED))return;process.env.OPENCLAW_PATH_BOOTSTRAPPED=`1`;let n=t.pathEnv??process.env.PATH??``,{prepend:r,append:i}=c(t);if(r.length===0&&i.length===0)return;let a=s({existing:n,prepend:r,append:i});a&&(process.env.PATH=a)}export{l as t};
|
|
2
|
+
//# sourceMappingURL=path-env-BPd1Yd-i.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{i as e}from"./entry.js";import{n as t}from"./brew-DDPm_HfE.js";import n from"node:os";import r from"node:path";import i from"node:fs";function a(e){try{return i.accessSync(e,i.constants.X_OK),!0}catch{return!1}}function o(e){try{return i.statSync(e).isDirectory()}catch{return!1}}function s(e){let t=e.existing.split(r.delimiter).map(e=>e.trim()).filter(Boolean),n=(e.prepend??[]).map(e=>e.trim()).filter(Boolean),i=(e.append??[]).map(e=>e.trim()).filter(Boolean),a=new Set,o=[];for(let e of[...n,...t,...i])a.has(e)||(a.add(e),o.push(e));return o.join(r.delimiter)}function c(i){let s=i.execPath??process.execPath,c=i.cwd??process.cwd(),l=i.homeDir??n.homedir(),u=i.platform??process.platform,d=[],f=[];try{let e=r.dirname(s);a(r.join(e,`openclaw`))&&d.push(e)}catch{}if(i.allowProjectLocalBin===!0||e(process.env.OPENCLAW_ALLOW_PROJECT_LOCAL_BIN)){let e=r.join(c,`node_modules`,`.bin`);a(r.join(e,`openclaw`))&&f.push(e)}let p=process.env.MISE_DATA_DIR??r.join(l,`.local`,`share`,`mise`),m=r.join(p,`shims`);return o(m)&&d.push(m),d.push(...t({homeDir:l})),u===`darwin`&&d.push(r.join(l,`Library`,`pnpm`)),process.env.XDG_BIN_HOME&&d.push(process.env.XDG_BIN_HOME),d.push(r.join(l,`.local`,`bin`)),d.push(r.join(l,`.local`,`share`,`pnpm`)),d.push(r.join(l,`.bun`,`bin`)),d.push(r.join(l,`.yarn`,`bin`)),d.push(`/opt/homebrew/bin`,`/usr/local/bin`,`/usr/bin`,`/bin`),{prepend:d.filter(o),append:f.filter(o)}}function l(t={}){if(e(process.env.OPENCLAW_PATH_BOOTSTRAPPED))return;process.env.OPENCLAW_PATH_BOOTSTRAPPED=`1`;let n=t.pathEnv??process.env.PATH??``,{prepend:r,append:i}=c(t);if(r.length===0&&i.length===0)return;let a=s({existing:n,prepend:r,append:i});a&&(process.env.PATH=a)}export{l as t};
|
|
2
|
+
//# sourceMappingURL=path-env-emdAQejM.js.map
|
package/dist/paths-B4IRk3wi.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import e from"node:fs";import t from"node:os";import n from"node:path";function r(e){return e?.trim()||void 0}function i(e=process.env,r=t.homedir){let i=a(e,r);return i?n.resolve(i):void 0}function a(e,t){let n=r(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let i=r(e.HOME)??r(e.USERPROFILE)??o(t);return i?n.replace(/^~(?=$|[\\/])/,i):void 0}return n}return r(e.HOME)||r(e.USERPROFILE)||o(t)}function o(e){try{return r(e())}catch{return}}function s(e=process.env,r=t.homedir){return i(e,r)??n.resolve(process.cwd())}function c(e,n){if(!e.startsWith(`~`))return e;let a=r(n?.home)??i(n?.env??process.env,n?.homedir??t.homedir);return a?e.replace(/^~(?=$|[\\/])/,a):e}function l(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}const u=l(),d=[`.clawdbot`,`.moldbot`,`.moltbot`],f=`.openclaw-qbot.json`,p=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function m(){return s(process.env,t.homedir)}function h(e){return()=>s(e,t.homedir)}function g(e=m){return d.map(t=>n.join(e(),t))}function _(e=m){return n.join(e(),`.qbotclaw`)}function v(e=m){return g(e)}function y(e=m){return _(e)}function b(t=process.env,n=h(t)){let r=()=>s(t,n),i=t.OPENCLAW_STATE_DIR?.trim()||t.CLAWDBOT_STATE_DIR?.trim();if(i)return x(i,t,r);let a=_(r);if(t.OPENCLAW_TEST_FAST===`1`)return a;let o=g(r);return e.existsSync(a)?a:o.find(t=>{try{return e.existsSync(t)}catch{return!1}})||a}function x(e,t=process.env,r=h(t)){let i=e.trim();if(!i)return i;if(i.startsWith(`~`)){let e=c(i,{home:s(t,r),env:t,homedir:r});return n.resolve(e)}return n.resolve(i)}const S=b();function C(e=process.env,t=b(e,h(e))){let r=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();return r?x(r,e,h(e)):n.join(t,f)}function w(t=process.env,n=h(t)){return t.OPENCLAW_TEST_FAST===`1`?C(t,b(t,n)):D(t,n).find(t=>{try{return e.existsSync(t)}catch{return!1}})||C(t,b(t,n))}function T(t=process.env,r=b(t,h(t)),i=h(t)){let a=t.OPENCLAW_CONFIG_PATH?.trim();if(a)return x(a,t,i);if(t.OPENCLAW_TEST_FAST===`1`)return n.join(r,f);let o=t.OPENCLAW_STATE_DIR?.trim(),s=[n.join(r,f),...p.map(e=>n.join(r,e))].find(t=>{try{return e.existsSync(t)}catch{return!1}});if(s)return s;if(o)return n.join(r,f);let c=b(t,i);return n.resolve(r)===n.resolve(c)?w(t,i):n.join(r,f)}const E=w();function D(e=process.env,t=h(e)){let r=()=>s(e,t),i=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();if(i)return[x(i,e,r)];let a=[],o=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(o){let t=x(o,e,r);a.push(n.join(t,f)),a.push(...p.map(e=>n.join(t,e)))}let c=[_(r),...g(r)];for(let e of c)a.push(n.join(e,f)),a.push(...p.map(t=>n.join(e,t)));return a}const O=18789;function k(e=t.tmpdir){let r=e(),i=typeof process.getuid==`function`?process.getuid():void 0,a=i==null?`openclaw`:`openclaw-${i}`;return n.join(r,a)}function A(e=process.env,t=b(e,h(e))){let r=e.OPENCLAW_OAUTH_DIR?.trim();return r?x(r,e,h(e)):n.join(t,`credentials`)}function j(e=process.env,t=b(e,h(e))){return n.join(A(e,t),`oauth.json`)}function M(e,t=process.env){let n=t.OPENCLAW_GATEWAY_PORT?.trim()||t.CLAWDBOT_GATEWAY_PORT?.trim();if(n){let e=Number.parseInt(n,10);if(Number.isFinite(e)&&e>=0)return e}let r=e?.gateway?.port;return typeof r==`number`&&Number.isFinite(r)&&r>=0?r:O}export{c as _,C as a,D as c,l as d,v as f,b as g,j as h,u as i,k as l,A as m,O as n,T as o,y as p,S as r,w as s,E as t,M as u,i as v,s as y};
|
|
2
|
+
//# sourceMappingURL=paths-B4IRk3wi.js.map
|
package/dist/paths-BfjJY2VL.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{_ as e,g as t,y as n}from"./paths-BjD3T_xq.js";import{c as r,t as i}from"./session-key-C7F_iqYg.js";import a from"node:os";import o from"node:path";import s from"node:fs";function c(e,i=process.env,s=()=>n(i,a.homedir)){let c=t(i,s),l=r(e??`main`);return o.join(c,`agents`,l,`sessions`)}function l(e=process.env,t=()=>n(e,a.homedir)){return c(i,e,t)}function u(e,t=process.env,r=()=>n(t,a.homedir)){return c(e,t,r)}function d(e){return o.join(c(e),`sessions.json`)}function f(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=o.dirname(o.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const p=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function m(e){let t=e.trim();if(!p.test(t))throw Error(`Invalid session ID: ${e}`);return t}function h(e){let t=e?.sessionsDir?.trim();return t?o.resolve(t):c(e?.agentId)}function g(e,t){let n=x(o.resolve(e))??o.resolve(e),r=x(t)??t,i=o.relative(n,r);if(!(!i||i.startsWith(`..`)||o.isAbsolute(i)))return o.resolve(n,i)}function _(e,t){let n=o.resolve(e);if(o.basename(n)!==`sessions`)return;let i=o.dirname(n),a=o.dirname(i);if(o.basename(a)!==`agents`)return;let s=o.dirname(a);return o.join(s,`agents`,r(t),`sessions`)}function v(e){let t=o.normalize(o.resolve(e)).split(o.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function y(e){let t=v(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function b(e,t){let n=v(e);if(!n)return;let{parts:i,sessionsIndex:a}=n,s=i[a-1];if(!s)return;let c=r(s);if(c!==s.toLowerCase()||c!==r(t))return;let l=i.slice(a+1);if(l.length!==1)return;let u=l[0];if(!(!u||u===`.`||u===`..`))return o.normalize(o.resolve(e))}function x(e){try{return s.realpathSync(e)}catch{return}}function S(e,t,n){let i=t.trim();if(!i)throw Error(`Session file path must not be empty`);let a=o.resolve(e),s=x(a)??a,l=o.isAbsolute(i)?x(i)??i:i,u=o.isAbsolute(l)?o.relative(s,l):l;if(u.startsWith(`..`)&&o.isAbsolute(l)){let e=e=>{let t=r(e),n=_(s,t);if(n){let e=g(n,l);if(e)return e}return g(c(t),l)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let i=y(l);if(i){let t=e(i);if(t)return t;let n=b(l,i);if(n)return n}}if(!u||u.startsWith(`..`)||o.isAbsolute(u))throw Error(`Session file path must be within sessions directory`);return o.resolve(s,u)}function C(e,t,n){let r=m(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return S(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function w(e,t,n){return C(e,c(t),n)}function T(e,t,n){let r=h(n),i=t?.sessionFile?.trim();if(i)try{return S(r,i,{agentId:n?.agentId})}catch{}return C(e,r)}function E(t,i){let s=r(i?.agentId??`main`);if(!t)return d(s);if(t.includes(`{agentId}`)){let r=t.replaceAll(`{agentId}`,s);return r.startsWith(`~`)?o.resolve(e(r,{home:n(process.env,a.homedir),env:process.env,homedir:a.homedir})):o.resolve(r)}return t.startsWith(`~`)?o.resolve(e(t,{home:n(process.env,a.homedir),env:process.env,homedir:a.homedir})):o.resolve(t)}export{C as a,E as c,w as i,T as n,l as o,f as r,u as s,d as t};
|
|
2
|
+
//# sourceMappingURL=paths-BfjJY2VL.js.map
|
package/dist/paths-BjD3T_xq.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import e from"node:os";import t from"node:path";import n from"node:fs";function r(e){return e?.trim()||void 0}function i(n=process.env,r=e.homedir){let i=a(n,r);return i?t.resolve(i):void 0}function a(e,t){let n=r(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let i=r(e.HOME)??r(e.USERPROFILE)??o(t);return i?n.replace(/^~(?=$|[\\/])/,i):void 0}return n}return r(e.HOME)||r(e.USERPROFILE)||o(t)}function o(e){try{return r(e())}catch{return}}function s(n=process.env,r=e.homedir){return i(n,r)??t.resolve(process.cwd())}function c(t,n){if(!t.startsWith(`~`))return t;let a=r(n?.home)??i(n?.env??process.env,n?.homedir??e.homedir);return a?t.replace(/^~(?=$|[\\/])/,a):t}function l(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}const u=l(),d=[`.clawdbot`,`.moldbot`,`.moltbot`],f=`.openclaw-qbot.json`,p=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function m(){return s(process.env,e.homedir)}function h(t){return()=>s(t,e.homedir)}function g(e=m){return d.map(n=>t.join(e(),n))}function _(e=m){return t.join(e(),`.qbotclaw`)}function v(e=m){return g(e)}function y(e=m){return _(e)}function b(e=process.env,t=h(e)){let r=()=>s(e,t),i=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(i)return x(i,e,r);let a=_(r);if(e.OPENCLAW_TEST_FAST===`1`)return a;let o=g(r);return n.existsSync(a)?a:o.find(e=>{try{return n.existsSync(e)}catch{return!1}})||a}function x(e,n=process.env,r=h(n)){let i=e.trim();if(!i)return i;if(i.startsWith(`~`)){let e=c(i,{home:s(n,r),env:n,homedir:r});return t.resolve(e)}return t.resolve(i)}const S=b();function C(e=process.env,n=b(e,h(e))){let r=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();return r?x(r,e,h(e)):t.join(n,f)}function w(e=process.env,t=h(e)){return e.OPENCLAW_TEST_FAST===`1`?C(e,b(e,t)):D(e,t).find(e=>{try{return n.existsSync(e)}catch{return!1}})||C(e,b(e,t))}function T(e=process.env,r=b(e,h(e)),i=h(e)){let a=e.OPENCLAW_CONFIG_PATH?.trim();if(a)return x(a,e,i);if(e.OPENCLAW_TEST_FAST===`1`)return t.join(r,f);let o=e.OPENCLAW_STATE_DIR?.trim(),s=[t.join(r,f),...p.map(e=>t.join(r,e))].find(e=>{try{return n.existsSync(e)}catch{return!1}});if(s)return s;if(o)return t.join(r,f);let c=b(e,i);return t.resolve(r)===t.resolve(c)?w(e,i):t.join(r,f)}const E=w();function D(e=process.env,n=h(e)){let r=()=>s(e,n),i=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();if(i)return[x(i,e,r)];let a=[],o=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(o){let n=x(o,e,r);a.push(t.join(n,f)),a.push(...p.map(e=>t.join(n,e)))}let c=[_(r),...g(r)];for(let e of c)a.push(t.join(e,f)),a.push(...p.map(n=>t.join(e,n)));return a}const O=18789;function k(n=e.tmpdir){let r=n(),i=typeof process.getuid==`function`?process.getuid():void 0,a=i==null?`openclaw`:`openclaw-${i}`;return t.join(r,a)}function A(e=process.env,n=b(e,h(e))){let r=e.OPENCLAW_OAUTH_DIR?.trim();return r?x(r,e,h(e)):t.join(n,`credentials`)}function j(e=process.env,n=b(e,h(e))){return t.join(A(e,n),`oauth.json`)}function M(e,t=process.env){let n=t.OPENCLAW_GATEWAY_PORT?.trim()||t.CLAWDBOT_GATEWAY_PORT?.trim();if(n){let e=Number.parseInt(n,10);if(Number.isFinite(e)&&e>=0)return e}let r=e?.gateway?.port;return typeof r==`number`&&Number.isFinite(r)&&r>=0?r:O}export{c as _,C as a,D as c,l as d,v as f,b as g,j as h,u as i,k as l,A as m,O as n,T as o,y as p,S as r,w as s,E as t,M as u,i as v,s as y};
|
|
2
|
+
//# sourceMappingURL=paths-BjD3T_xq.js.map
|
package/dist/paths-BpQOWYiT.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import e from"node:fs";import t from"node:path";import n from"node:os";function r(e){return e?.trim()||void 0}function i(e=process.env,r=n.homedir){let i=a(e,r);return i?t.resolve(i):void 0}function a(e,t){let n=r(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let i=r(e.HOME)??r(e.USERPROFILE)??o(t);return i?n.replace(/^~(?=$|[\\/])/,i):void 0}return n}return r(e.HOME)||r(e.USERPROFILE)||o(t)}function o(e){try{return r(e())}catch{return}}function s(e=process.env,r=n.homedir){return i(e,r)??t.resolve(process.cwd())}function c(e,t){if(!e.startsWith(`~`))return e;let a=r(t?.home)??i(t?.env??process.env,t?.homedir??n.homedir);return a?e.replace(/^~(?=$|[\\/])/,a):e}function l(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}l();const u=[`.clawdbot`,`.moldbot`,`.moltbot`],d=`.openclaw-qbot.json`,f=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function p(){return s(process.env,n.homedir)}function m(e){return()=>s(e,n.homedir)}function h(e=p){return u.map(n=>t.join(e(),n))}function g(e=p){return t.join(e(),`.qbotclaw`)}function _(t=process.env,n=m(t)){let r=()=>s(t,n),i=t.OPENCLAW_STATE_DIR?.trim()||t.CLAWDBOT_STATE_DIR?.trim();if(i)return v(i,t,r);let a=g(r);if(t.OPENCLAW_TEST_FAST===`1`)return a;let o=h(r);return e.existsSync(a)?a:o.find(t=>{try{return e.existsSync(t)}catch{return!1}})||a}function v(e,n=process.env,r=m(n)){let i=e.trim();if(!i)return i;if(i.startsWith(`~`)){let e=c(i,{home:s(n,r),env:n,homedir:r});return t.resolve(e)}return t.resolve(i)}const y=_();function b(e=process.env,n=_(e,m(e))){let r=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();return r?v(r,e,m(e)):t.join(n,d)}function x(t=process.env,n=m(t)){return t.OPENCLAW_TEST_FAST===`1`?b(t,_(t,n)):C(t,n).find(t=>{try{return e.existsSync(t)}catch{return!1}})||b(t,_(t,n))}function S(n=process.env,r=_(n,m(n)),i=m(n)){let a=n.OPENCLAW_CONFIG_PATH?.trim();if(a)return v(a,n,i);if(n.OPENCLAW_TEST_FAST===`1`)return t.join(r,d);let o=n.OPENCLAW_STATE_DIR?.trim(),s=[t.join(r,d),...f.map(e=>t.join(r,e))].find(t=>{try{return e.existsSync(t)}catch{return!1}});if(s)return s;if(o)return t.join(r,d);let c=_(n,i);return t.resolve(r)===t.resolve(c)?x(n,i):t.join(r,d)}x();function C(e=process.env,n=m(e)){let r=()=>s(e,n),i=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();if(i)return[v(i,e,r)];let a=[],o=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(o){let n=v(o,e,r);a.push(t.join(n,d)),a.push(...f.map(e=>t.join(n,e)))}let c=[g(r),...h(r)];for(let e of c)a.push(t.join(e,d)),a.push(...f.map(n=>t.join(e,n)));return a}const w=18789;function T(e=process.env,n=_(e,m(e))){let r=e.OPENCLAW_OAUTH_DIR?.trim();return r?v(r,e,m(e)):t.join(n,`credentials`)}function E(e=process.env,n=_(e,m(e))){return t.join(T(e,n),`oauth.json`)}function D(e,t=process.env){let n=t.OPENCLAW_GATEWAY_PORT?.trim()||t.CLAWDBOT_GATEWAY_PORT?.trim();if(n){let e=Number.parseInt(n,10);if(Number.isFinite(e)&&e>=0)return e}let r=e?.gateway?.port;return typeof r==`number`&&Number.isFinite(r)&&r>=0?r:w}export{D as a,_ as c,s as d,C as i,c as l,y as n,T as o,S as r,E as s,w as t,i as u};
|
|
2
|
+
//# sourceMappingURL=paths-BpQOWYiT.js.map
|
package/dist/paths-CChBdtE8.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import e from"node:os";import t from"node:path";import n from"node:fs";function r(e){return e?.trim()||void 0}function i(n=process.env,r=e.homedir){let i=a(n,r);return i?t.resolve(i):void 0}function a(e,t){let n=r(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let i=r(e.HOME)??r(e.USERPROFILE)??o(t);return i?n.replace(/^~(?=$|[\\/])/,i):void 0}return n}return r(e.HOME)||r(e.USERPROFILE)||o(t)}function o(e){try{return r(e())}catch{return}}function s(n=process.env,r=e.homedir){return i(n,r)??t.resolve(process.cwd())}function c(t,n){if(!t.startsWith(`~`))return t;let a=r(n?.home)??i(n?.env??process.env,n?.homedir??e.homedir);return a?t.replace(/^~(?=$|[\\/])/,a):t}function l(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}l();const u=[`.clawdbot`,`.moldbot`,`.moltbot`],d=`.openclaw-qbot.json`,f=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function p(){return s(process.env,e.homedir)}function m(t){return()=>s(t,e.homedir)}function h(e=p){return u.map(n=>t.join(e(),n))}function g(e=p){return t.join(e(),`.qbotclaw`)}function _(e=process.env,t=m(e)){let r=()=>s(e,t),i=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(i)return v(i,e,r);let a=g(r);if(e.OPENCLAW_TEST_FAST===`1`)return a;let o=h(r);return n.existsSync(a)?a:o.find(e=>{try{return n.existsSync(e)}catch{return!1}})||a}function v(e,n=process.env,r=m(n)){let i=e.trim();if(!i)return i;if(i.startsWith(`~`)){let e=c(i,{home:s(n,r),env:n,homedir:r});return t.resolve(e)}return t.resolve(i)}const y=_();function b(e=process.env,n=_(e,m(e))){let r=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();return r?v(r,e,m(e)):t.join(n,d)}function x(e=process.env,t=m(e)){return e.OPENCLAW_TEST_FAST===`1`?b(e,_(e,t)):C(e,t).find(e=>{try{return n.existsSync(e)}catch{return!1}})||b(e,_(e,t))}function S(e=process.env,r=_(e,m(e)),i=m(e)){let a=e.OPENCLAW_CONFIG_PATH?.trim();if(a)return v(a,e,i);if(e.OPENCLAW_TEST_FAST===`1`)return t.join(r,d);let o=e.OPENCLAW_STATE_DIR?.trim(),s=[t.join(r,d),...f.map(e=>t.join(r,e))].find(e=>{try{return n.existsSync(e)}catch{return!1}});if(s)return s;if(o)return t.join(r,d);let c=_(e,i);return t.resolve(r)===t.resolve(c)?x(e,i):t.join(r,d)}x();function C(e=process.env,n=m(e)){let r=()=>s(e,n),i=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();if(i)return[v(i,e,r)];let a=[],o=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(o){let n=v(o,e,r);a.push(t.join(n,d)),a.push(...f.map(e=>t.join(n,e)))}let c=[g(r),...h(r)];for(let e of c)a.push(t.join(e,d)),a.push(...f.map(n=>t.join(e,n)));return a}const w=18789;function T(e=process.env,n=_(e,m(e))){let r=e.OPENCLAW_OAUTH_DIR?.trim();return r?v(r,e,m(e)):t.join(n,`credentials`)}function E(e=process.env,n=_(e,m(e))){return t.join(T(e,n),`oauth.json`)}function D(e,t=process.env){let n=t.OPENCLAW_GATEWAY_PORT?.trim()||t.CLAWDBOT_GATEWAY_PORT?.trim();if(n){let e=Number.parseInt(n,10);if(Number.isFinite(e)&&e>=0)return e}let r=e?.gateway?.port;return typeof r==`number`&&Number.isFinite(r)&&r>=0?r:w}export{D as a,_ as c,s as d,C as i,c as l,y as n,T as o,S as r,E as s,w as t,i as u};
|
|
2
|
+
//# sourceMappingURL=paths-CChBdtE8.js.map
|
package/dist/paths-CrCoPIVK.js
CHANGED
|
@@ -2,3 +2,4 @@ import{c as e,d as t,l as n}from"./paths-CChBdtE8.js";import{C as r,t as i}from"
|
|
|
2
2
|
`);function ot(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function I(e){let t=oe(`python3`,[`-c`,at,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,r=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{r+=e});let i=ce(t,`close`);try{if(!t.stdin){let t=await st(e);return await i.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await le(e.input.stream,t.stdin);let[a,o]=await i;if(a!==0)throw Error(r.trim()||`Pinned write helper failed with code ${a??`null`} (${o??`?`})`);return ot(n)}catch(e){throw t.kill(`SIGKILL`),await i.catch(()=>{}),e}}async function st(e){let t=e.relativeParentPath?v.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await g.mkdir(t,{recursive:!0});let n=v.join(t,e.basename),r=v.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await g.writeFile(r,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await g.writeFile(r,e.input.data,{mode:e.mode});else{let t=await g.open(r,`w`,e.mode);try{await le(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await g.rename(r,n);let i=await g.stat(n);return{dev:i.dev,ino:i.ino}}var L=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const R=process.platform!==`win32`&&`O_NOFOLLOW`in y,ct=y.O_RDONLY|(R?y.O_NOFOLLOW:0),lt=y.O_WRONLY|(R?y.O_NOFOLLOW:0),z=y.O_WRONLY|y.O_CREAT|y.O_EXCL|(R?y.O_NOFOLLOW:0),ut=y.O_RDWR|y.O_APPEND|(R?y.O_NOFOLLOW:0),dt=y.O_RDWR|y.O_APPEND|y.O_CREAT|y.O_EXCL|(R?y.O_NOFOLLOW:0),B=e=>e.endsWith(v.sep)?e:e+v.sep;async function ft(e){let t=process.env.HOME||process.env.USERPROFILE||_.homedir();try{t=await g.realpath(t)}catch{}return n(e,{home:t})}async function V(e,t){try{if((await g.lstat(e)).isDirectory())throw new L(`not-file`,`not a file`)}catch(e){if(e instanceof L)throw e}let n;try{n=await g.open(e,ct)}catch(e){throw d(e)?new L(`not-found`,`file not found`):a(e)?new L(`symlink`,`symlink open blocked`,{cause:e}):ee(e,`EISDIR`)?new L(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),g.lstat(e)]);if(i.isSymbolicLink())throw new L(`symlink`,`symlink not allowed`);if(!r.isFile())throw new L(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new L(`invalid-path`,`hardlinked path not allowed`);if(!f(r,i))throw new L(`path-mismatch`,`path changed during read`);let a=await g.realpath(e),o=await g.stat(a);if(t?.rejectHardlinks&&o.nlink>1)throw new L(`invalid-path`,`hardlinked path not allowed`);if(!f(r,o))throw new L(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof L?e:d(e)?new L(`not-found`,`file not found`):e}}async function H(e){let t;try{t=await g.realpath(e.rootDir)}catch(e){throw d(e)?new L(`not-found`,`root dir not found`):e}let n=B(t),r=await ft(e.relativePath),i=v.resolve(n,r);if(!o(n,i))throw new L(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:n,resolved:i}}async function U(e){let{rootWithSep:t,resolved:n}=await H(e),r;try{r=await V(n)}catch(e){throw e instanceof L?e.code===`not-found`?e:new L(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new L(`invalid-path`,`hardlinked path not allowed`);if(!o(t,r.realPath))throw await r.handle.close().catch(()=>{}),new L(`outside-workspace`,`file is outside workspace root`);return r}async function pt(e){let t=await U({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await _t({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function mt(e){let t=v.resolve(e.rootDir),n=v.isAbsolute(e.filePath)?v.resolve(e.filePath):v.resolve(t,e.filePath);return await pt({rootDir:t,relativePath:v.relative(t,n),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function ht(e){let t=v.resolve(e.rootDir);return async n=>(await mt({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function gt(e){let t=await V(e.filePath);try{return await _t({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function _t(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new L(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function W(e){ne(`security: fs-safe write boundary warning (${e})`)}function vt(e){let t=v.dirname(e),n=v.basename(e);return v.join(t,`.${n}.${process.pid}.${se()}.tmp`)}async function yt(e){let t=await g.open(e.tempPath,z,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function G(e){let t=B(await g.realpath(e.rootDir)),n=await V(e.targetPath,{rejectHardlinks:!0});try{if(!f(n.stat,e.expectedIdentity))throw new L(`path-mismatch`,`path changed during write`);if(!o(t,n.realPath))throw new L(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function bt(e,t){try{return await g.realpath(t)}catch(e){if(!d(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await g.realpath(e)}catch{}throw new L(`path-mismatch`,`unable to resolve opened file path`)}async function K(e){let{rootReal:t,rootWithSep:n,resolved:r}=await H(e);try{await F({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new L(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await g.mkdir(v.dirname(r),{recursive:!0});let i=r;try{let e=await g.realpath(r);if(!o(n,e))throw new L(`outside-workspace`,`file is outside workspace root`);i=e}catch(e){if(e instanceof L||!d(e))throw e}let s=e.mode??384,c,l=!1,u=e.append?ut:lt,p=e.append?dt:z;try{try{c=await g.open(i,u,s)}catch(e){if(!d(e))throw e;c=await g.open(i,p,s),l=!0}}catch(e){throw d(e)?new L(`not-found`,`file not found`):a(e)?new L(`invalid-path`,`symlink open blocked`,{cause:e}):e}let m=null;try{let t=await c.stat();if(!t.isFile())throw new L(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new L(`invalid-path`,`hardlinked path not allowed`);try{let e=await g.lstat(i);if(e.isSymbolicLink()||!e.isFile())throw new L(`invalid-path`,`path is not a regular file under root`);if(!f(t,e))throw new L(`path-mismatch`,`path changed during write`)}catch(e){if(!d(e))throw e}let r=await bt(c,i);m=r;let a=await g.stat(r);if(!f(t,a))throw new L(`path-mismatch`,`path mismatch`);if(a.nlink>1)throw new L(`invalid-path`,`hardlinked path not allowed`);if(!o(n,r))throw new L(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!l&&await c.truncate(0),{handle:c,createdForWrite:l,openedRealPath:r,openedStat:t}}catch(e){let t=l&&e instanceof L,n=m??i;throw await c.close().catch(()=>{}),t&&await g.rm(n,{force:!0}).catch(()=>{}),e}}async function xt(e){let t=await K({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
|
|
3
3
|
`)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
|
|
4
4
|
`)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function St(e){if(process.platform===`win32`){await Dt(e);return}let t=await Tt({rootDir:e.rootDir,relativePath:e.relativePath}),n=await I({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Et(e)});try{await G({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw W(`post-write verification failed: ${String(e)}`),e}}async function Ct(e){let t=await V(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new L(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Ot(e,t);return}let n=await Tt({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await I({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Et(e)});try{await G({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw W(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function wt(e){await Ct({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Tt(e){let{rootReal:t,rootWithSep:n,resolved:r}=await H(e);try{await F({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new L(`invalid-path`,`path alias escape blocked`,{cause:e})}let i=v.relative(t,r);if(i.startsWith(`..`)||v.isAbsolute(i))throw new L(`outside-workspace`,`file is outside workspace root`);let a=i?i.split(v.sep).join(v.posix.sep):``,s=v.posix.basename(a);if(!s||s===`.`||s===`/`)throw new L(`invalid-path`,`invalid target path`);let c=384;try{let t=await U({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(c=t.stat.mode&511,!o(n,t.realPath))throw new L(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof L)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:r,relativeParentPath:v.posix.dirname(a)===`.`?``:v.posix.dirname(a),basename:s,mode:c||384}}function Et(e){return e instanceof L?e:new L(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Dt(e){let t=await K({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=vt(n);let t=await yt({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await g.rename(i,n),i=null;try{await G({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw W(`post-write verification failed: ${String(e)}`),e}}finally{i&&await g.rm(i,{force:!0}).catch(()=>{})}}async function Ot(e,t){let n=null,r=!1,i=!1,a=null,o=null,s=!1;try{n=await K({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let c=n.openedRealPath,l=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,o=vt(c),a=await g.open(o,z,l||384);let u=t.handle.createReadStream(),d=a.createWriteStream();u.once(`close`,()=>{r=!0}),d.once(`close`,()=>{s=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(u,d));let f=await g.stat(o);s||=(await a.close().catch(()=>{}),!0),a=null,await g.rename(o,c),o=null;try{await G({rootDir:e.rootDir,targetPath:c,expectedIdentity:f})}catch(e){throw W(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await g.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{o&&await g.rm(o,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!s&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const kt=6*1024*1024,At=100*1024*1024;function jt(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function Mt(e){switch(e){case`image`:return kt;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return At;default:return At}}const Nt={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},Pt={...Object.fromEntries(Object.entries(Nt).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},Ft=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function q(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function It(e){if(e)try{return(await ue(e))?.mime??void 0}catch{return}}function J(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return v.extname(t.pathname).toLowerCase()||void 0}}catch{}return v.extname(e).toLowerCase()||void 0}}function Lt(e){let t=J(e);return t?Ft.has(t):!1}function Rt(e){return Bt(e)}function zt(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function Bt(e){let t=J(e.filePath),n=t?Pt[t]:void 0,r=q(e.headerMime),i=await It(e.buffer);if(i&&(!zt(i)||!n))return i;if(n)return n;if(r&&!zt(r))return r;if(i)return i;if(r)return r}function Vt(e){let t=q(e);if(t)return Nt[t]}function Ht(e){return e.contentType?.toLowerCase()===`image/gif`?!0:J(e.fileName)===`.gif`}function Ut(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function Wt(e){return jt(q(e))}function Y(e){try{return ae(e).isFile()}catch{return!1}}function Gt(e,t){if(e.includes(`/`)||e.includes(`\\`)||v.isAbsolute(e))return e;let n=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),r=v.extname(e).length>0,i=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,a=r?[``]:i.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of n)for(let n of a)for(let r of[n,n.toLowerCase(),n.toUpperCase()]){let n=v.join(t,`${e}${r}`);if(Y(n))return n}return e}function Kt(e){if(!Y(e))return null;try{let t=ie(e,`utf8`),n=[];for(let r of t.matchAll(/"([^"\r\n]*)"/g)){let t=(r[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let i=t.replace(/[\\/]+/g,v.sep).replace(/^[\\/]+/,``),a=v.resolve(v.dirname(e),i);Y(a)&&n.push(a)}return n.find(e=>{let t=v.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function qt(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function Jt(e,t){if(!t)return null;let n=v.dirname(e),r=[v.resolve(n,`..`,t),v.resolve(n,`node_modules`,t)];for(let e of r){let n=v.join(e,`package.json`);if(Y(n))try{let r=qt(t,JSON.parse(ie(n,`utf8`)).bin);if(!r)continue;let i=v.resolve(e,r);if(Y(i))return i}catch{}}return null}function Yt(e){let t=e.platform??process.platform,n=e.env??process.env,r=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let i=Gt(e.command,n),a=v.extname(i).toLowerCase();if(a===`.js`||a===`.cjs`||a===`.mjs`)return{command:r,leadingArgv:[i],resolution:`node-entrypoint`,windowsHide:!0};if(a===`.cmd`||a===`.bat`){let t=Kt(i)??Jt(i,e.packageName);return t?v.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:r,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:i,leadingArgv:[],resolution:`direct`}}function Xt(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${v.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function Zt(e){return Xt({candidate:Yt(e),allowShellFallback:e.allowShellFallback})}function Qt(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function X(n,r=process.env,i=()=>t(r,_.homedir)){let a=e(r,i),o=s(n??`main`);return v.join(a,`agents`,o,`sessions`)}function $t(e,n=process.env,r=()=>t(n,_.homedir)){return X(e,n,r)}function Z(e){return v.join(X(e),`sessions.json`)}function en(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=v.dirname(v.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const tn=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function nn(e){let t=e.trim();if(!tn.test(t))throw Error(`Invalid session ID: ${e}`);return t}function rn(e){let t=e?.sessionsDir?.trim();return t?v.resolve(t):X(e?.agentId)}function an(e,t){let n=Q(v.resolve(e))??v.resolve(e),r=Q(t)??t,i=v.relative(n,r);if(!(!i||i.startsWith(`..`)||v.isAbsolute(i)))return v.resolve(n,i)}function on(e,t){let n=v.resolve(e);if(v.basename(n)!==`sessions`)return;let r=v.dirname(n),i=v.dirname(r);if(v.basename(i)!==`agents`)return;let a=v.dirname(i);return v.join(a,`agents`,s(t),`sessions`)}function sn(e){let t=v.normalize(v.resolve(e)).split(v.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function cn(e){let t=sn(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function ln(e,t){let n=sn(e);if(!n)return;let{parts:r,sessionsIndex:i}=n,a=r[i-1];if(!a)return;let o=s(a);if(o!==a.toLowerCase()||o!==s(t))return;let c=r.slice(i+1);if(c.length!==1)return;let l=c[0];if(!(!l||l===`.`||l===`..`))return v.normalize(v.resolve(e))}function Q(e){try{return re.realpathSync(e)}catch{return}}function un(e,t,n){let r=t.trim();if(!r)throw Error(`Session file path must not be empty`);let i=v.resolve(e),a=Q(i)??i,o=v.isAbsolute(r)?Q(r)??r:r,c=v.isAbsolute(o)?v.relative(a,o):o;if(c.startsWith(`..`)&&v.isAbsolute(o)){let e=e=>{let t=s(e),n=on(a,t);if(n){let e=an(n,o);if(e)return e}return an(X(t),o)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let r=cn(o);if(r){let t=e(r);if(t)return t;let n=ln(o,r);if(n)return n}}if(!c||c.startsWith(`..`)||v.isAbsolute(c))throw Error(`Session file path must be within sessions directory`);return v.resolve(a,c)}function $(e,t,n){let r=nn(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return un(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function dn(e,t,n){return $(e,X(t),n)}function fn(e,t,n){let r=rn(n),i=t?.sessionFile?.trim();if(i)try{return un(r,i,{agentId:n?.agentId})}catch{}return $(e,r)}function pn(e,r){let i=s(r?.agentId??`main`);if(!e)return Z(i);if(e.includes(`{agentId}`)){let r=e.replaceAll(`{agentId}`,i);return r.startsWith(`~`)?v.resolve(n(r,{home:t(process.env,_.homedir),env:process.env,homedir:_.homedir})):v.resolve(r)}return e.startsWith(`~`)?v.resolve(n(e,{home:t(process.env,_.homedir),env:process.env,homedir:_.homedir})):v.resolve(e)}export{me as $,it as A,D as B,Ct as C,gt as D,pt as E,N as F,Oe as G,Ce as H,Ve as I,Te as J,T as K,Pe as L,tt as M,$e as N,wt as O,et as P,he as Q,Ee as R,xt as S,U as T,Me as U,Ne as V,xe as W,E as X,ye as Y,S as Z,q as _,$ as a,jt as b,Qt as c,Vt as d,x as et,J as f,Wt as g,Ht as h,dn as i,fe as it,F as j,St as k,Zt as l,Lt as m,fn as n,b as nt,$t as o,Ut as p,De as q,en as r,de as rt,pn as s,Z as t,pe as tt,Rt as u,kt as v,ht as w,L as x,Mt as y,ve as z};
|
|
5
|
+
//# sourceMappingURL=paths-CrCoPIVK.js.map
|
package/dist/paths-piJASC5k.js
CHANGED
|
@@ -3,3 +3,4 @@ import{c as e,d as t,l as n}from"./paths-BpQOWYiT.js";import{J as r,O as i,_ as
|
|
|
3
3
|
`);function Cr(e){let t=e.trim().split(/\r?\n/).map(e=>e.trim()).filter(Boolean).at(-1);if(!t)throw Error(`Pinned write helper returned no identity`);let[n,r]=t.split(`|`),i=Number.parseInt(n??``,10),a=Number.parseInt(r??``,10);if(!Number.isFinite(i)||!Number.isFinite(a))throw Error(`Pinned write helper returned invalid identity: ${t}`);return{dev:i,ino:a}}async function wr(e){let t=te(`python3`,[`-c`,Sr,e.rootPath,e.relativeParentPath,e.basename,e.mkdir?`1`:`0`,(e.mode||384).toString(8)],{stdio:[`pipe`,`pipe`,`pipe`]}),n=``,r=``;t.stdout.setEncoding?.(`utf8`),t.stderr.setEncoding?.(`utf8`),t.stdout.on(`data`,e=>{n+=e}),t.stderr.on(`data`,e=>{r+=e});let i=g(t,`close`);try{if(!t.stdin){let t=await Tr(e);return await i.catch(()=>{}),t}if(e.input.kind===`buffer`){let n=e.input;await new Promise((e,r)=>{if(t.stdin.once(`error`,r),typeof n.data==`string`){t.stdin.end(n.data,n.encoding??`utf8`,()=>e());return}t.stdin.end(n.data,()=>e())})}else await _(e.input.stream,t.stdin);let[a,o]=await i;if(a!==0)throw Error(r.trim()||`Pinned write helper failed with code ${a??`null`} (${o??`?`})`);return Cr(n)}catch(e){throw t.kill(`SIGKILL`),await i.catch(()=>{}),e}}async function Tr(e){let t=e.relativeParentPath?f.join(e.rootPath,...e.relativeParentPath.split(`/`)):e.rootPath;e.mkdir&&await m.mkdir(t,{recursive:!0});let n=f.join(t,e.basename),r=f.join(t,`.${e.basename}.fallback.tmp`);if(e.input.kind===`buffer`)typeof e.input.data==`string`?await m.writeFile(r,e.input.data,{encoding:e.input.encoding??`utf8`,mode:e.mode}):await m.writeFile(r,e.input.data,{mode:e.mode});else{let t=await m.open(r,`w`,e.mode);try{await _(e.input.stream,t.createWriteStream())}finally{await t.close().catch(()=>{})}}await m.rename(r,n);let i=await m.stat(n);return{dev:i.dev,ino:i.ino}}var G=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`SafeOpenError`}};const K=process.platform!==`win32`&&`O_NOFOLLOW`in u,Er=u.O_RDONLY|(K?u.O_NOFOLLOW:0),Dr=u.O_WRONLY|(K?u.O_NOFOLLOW:0),Or=u.O_WRONLY|u.O_CREAT|u.O_EXCL|(K?u.O_NOFOLLOW:0),kr=u.O_RDWR|u.O_APPEND|(K?u.O_NOFOLLOW:0),Ar=u.O_RDWR|u.O_APPEND|u.O_CREAT|u.O_EXCL|(K?u.O_NOFOLLOW:0),jr=e=>e.endsWith(f.sep)?e:e+f.sep;async function Mr(e){let t=process.env.HOME||process.env.USERPROFILE||p.homedir();try{t=await m.realpath(t)}catch{}return n(e,{home:t})}async function q(e,t){try{if((await m.lstat(e)).isDirectory())throw new G(`not-file`,`not a file`)}catch(e){if(e instanceof G)throw e}let n;try{n=await m.open(e,Er)}catch(e){throw T(e)?new G(`not-found`,`file not found`):Ze(e)?new G(`symlink`,`symlink open blocked`,{cause:e}):Xe(e,`EISDIR`)?new G(`not-file`,`not a file`):e}try{let[r,i]=await Promise.all([n.stat(),m.lstat(e)]);if(i.isSymbolicLink())throw new G(`symlink`,`symlink not allowed`);if(!r.isFile())throw new G(`not-file`,`not a file`);if(t?.rejectHardlinks&&r.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);if(!A(r,i))throw new G(`path-mismatch`,`path changed during read`);let a=await m.realpath(e),o=await m.stat(a);if(t?.rejectHardlinks&&o.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);if(!A(r,o))throw new G(`path-mismatch`,`path mismatch`);return{handle:n,realPath:a,stat:r}}catch(e){throw await n.close().catch(()=>{}),e instanceof G?e:T(e)?new G(`not-found`,`file not found`):e}}async function Nr(e){let t;try{t=await m.realpath(e.rootDir)}catch(e){throw T(e)?new G(`not-found`,`root dir not found`):e}let n=jr(t),r=await Mr(e.relativePath),i=f.resolve(n,r);if(!E(n,i))throw new G(`outside-workspace`,`file is outside workspace root`);return{rootReal:t,rootWithSep:n,resolved:i}}async function Pr(e){let{rootWithSep:t,resolved:n}=await Nr(e),r;try{r=await q(n)}catch(e){throw e instanceof G?e.code===`not-found`?e:new G(`invalid-path`,`path is not a regular file under root`,{cause:e}):e}if(e.rejectHardlinks!==!1&&r.stat.nlink>1)throw await r.handle.close().catch(()=>{}),new G(`invalid-path`,`hardlinked path not allowed`);if(!E(t,r.realPath))throw await r.handle.close().catch(()=>{}),new G(`outside-workspace`,`file is outside workspace root`);return r}async function Fr(e){let t=await Pr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:e.rejectHardlinks});try{return await zr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function Ir(e){let t=f.resolve(e.rootDir),n=f.isAbsolute(e.filePath)?f.resolve(e.filePath):f.resolve(t,e.filePath);return await Fr({rootDir:t,relativePath:f.relative(t,n),rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})}function Lr(e){let t=f.resolve(e.rootDir);return async n=>(await Ir({rootDir:t,filePath:n,rejectHardlinks:e.rejectHardlinks,maxBytes:e.maxBytes})).buffer}async function Rr(e){let t=await q(e.filePath);try{return await zr({opened:t,maxBytes:e.maxBytes})}finally{await t.handle.close().catch(()=>{})}}async function zr(e){if(e.maxBytes!==void 0&&e.opened.stat.size>e.maxBytes)throw new G(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${e.opened.stat.size})`);return{buffer:await e.opened.handle.readFile(),realPath:e.opened.realPath,stat:e.opened.stat}}function J(e){s(`security: fs-safe write boundary warning (${e})`)}function Br(e){let t=f.dirname(e),n=f.basename(e);return f.join(t,`.${n}.${process.pid}.${ne()}.tmp`)}async function Vr(e){let t=await m.open(e.tempPath,Or,e.mode);try{return typeof e.data==`string`?await t.writeFile(e.data,e.encoding??`utf8`):await t.writeFile(e.data),await t.stat()}finally{await t.close().catch(()=>{})}}async function Y(e){let t=jr(await m.realpath(e.rootDir)),n=await q(e.targetPath,{rejectHardlinks:!0});try{if(!A(n.stat,e.expectedIdentity))throw new G(`path-mismatch`,`path changed during write`);if(!E(t,n.realPath))throw new G(`outside-workspace`,`file is outside workspace root`)}finally{await n.handle.close().catch(()=>{})}}async function Hr(e,t){try{return await m.realpath(t)}catch(e){if(!T(e))throw e}let n=process.platform===`linux`?[`/proc/self/fd/${e.fd}`,`/dev/fd/${e.fd}`]:process.platform===`win32`?[]:[`/dev/fd/${e.fd}`];for(let e of n)try{return await m.realpath(e)}catch{}throw new G(`path-mismatch`,`unable to resolve opened file path`)}async function Ur(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Nr(e);try{await xr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new G(`invalid-path`,`path alias escape blocked`,{cause:e})}e.mkdir!==!1&&await m.mkdir(f.dirname(r),{recursive:!0});let i=r;try{let e=await m.realpath(r);if(!E(n,e))throw new G(`outside-workspace`,`file is outside workspace root`);i=e}catch(e){if(e instanceof G||!T(e))throw e}let a=e.mode??384,o,s=!1,c=e.append?kr:Dr,l=e.append?Ar:Or;try{try{o=await m.open(i,c,a)}catch(e){if(!T(e))throw e;o=await m.open(i,l,a),s=!0}}catch(e){throw T(e)?new G(`not-found`,`file not found`):Ze(e)?new G(`invalid-path`,`symlink open blocked`,{cause:e}):e}let u=null;try{let t=await o.stat();if(!t.isFile())throw new G(`invalid-path`,`path is not a regular file under root`);if(t.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);try{let e=await m.lstat(i);if(e.isSymbolicLink()||!e.isFile())throw new G(`invalid-path`,`path is not a regular file under root`);if(!A(t,e))throw new G(`path-mismatch`,`path changed during write`)}catch(e){if(!T(e))throw e}let r=await Hr(o,i);u=r;let a=await m.stat(r);if(!A(t,a))throw new G(`path-mismatch`,`path mismatch`);if(a.nlink>1)throw new G(`invalid-path`,`hardlinked path not allowed`);if(!E(n,r))throw new G(`outside-workspace`,`file is outside workspace root`);return e.append!==!0&&e.truncateExisting!==!1&&!s&&await o.truncate(0),{handle:o,createdForWrite:s,openedRealPath:r,openedStat:t}}catch(e){let t=s&&e instanceof G,n=u??i;throw await o.close().catch(()=>{}),t&&await m.rm(n,{force:!0}).catch(()=>{}),e}}async function Wr(e){let t=await Ur({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1,append:!0});try{let n=``;if(e.prependNewlineIfNeeded===!0&&!t.createdForWrite&&t.openedStat.size>0&&(typeof e.data==`string`&&!e.data.startsWith(`
|
|
4
4
|
`)||Buffer.isBuffer(e.data)&&e.data.length>0&&e.data[0]!==10)){let e=Buffer.alloc(1),{bytesRead:r}=await t.handle.read(e,0,1,t.openedStat.size-1);r===1&&e[0]!==10&&(n=`
|
|
5
5
|
`)}if(typeof e.data==`string`){await t.handle.appendFile(`${n}${e.data}`,e.encoding??`utf8`);return}let r=n.length>0?Buffer.concat([Buffer.from(n,`utf8`),e.data]):e.data;await t.handle.appendFile(r)}finally{await t.handle.close().catch(()=>{})}}async function Gr(e){if(process.platform===`win32`){await Xr(e);return}let t=await Jr({rootDir:e.rootDir,relativePath:e.relativePath}),n=await wr({rootPath:t.rootReal,relativeParentPath:t.relativeParentPath,basename:t.basename,mkdir:e.mkdir!==!1,mode:t.mode,input:{kind:`buffer`,data:e.data,encoding:e.encoding}}).catch(e=>{throw Yr(e)});try{await Y({rootDir:e.rootDir,targetPath:t.targetPath,expectedIdentity:n})}catch(e){throw J(`post-write verification failed: ${String(e)}`),e}}async function Kr(e){let t=await q(e.sourcePath,{rejectHardlinks:e.rejectSourceHardlinks});if(e.maxBytes!==void 0&&t.stat.size>e.maxBytes)throw await t.handle.close().catch(()=>{}),new G(`too-large`,`file exceeds limit of ${e.maxBytes} bytes (got ${t.stat.size})`);try{if(process.platform===`win32`){await Zr(e,t);return}let n=await Jr({rootDir:e.rootDir,relativePath:e.relativePath}),r=t.handle.createReadStream(),i=await wr({rootPath:n.rootReal,relativeParentPath:n.relativeParentPath,basename:n.basename,mkdir:e.mkdir!==!1,mode:n.mode,input:{kind:`stream`,stream:r}}).catch(e=>{throw Yr(e)});try{await Y({rootDir:e.rootDir,targetPath:n.targetPath,expectedIdentity:i})}catch(e){throw J(`post-copy verification failed: ${String(e)}`),e}}finally{await t.handle.close().catch(()=>{})}}async function qr(e){await Kr({sourcePath:e.sourcePath,rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,rejectSourceHardlinks:!0})}async function Jr(e){let{rootReal:t,rootWithSep:n,resolved:r}=await Nr(e);try{await xr({absolutePath:r,rootPath:t,boundaryLabel:`root`})}catch(e){throw new G(`invalid-path`,`path alias escape blocked`,{cause:e})}let i=f.relative(t,r);if(i.startsWith(`..`)||f.isAbsolute(i))throw new G(`outside-workspace`,`file is outside workspace root`);let a=i?i.split(f.sep).join(f.posix.sep):``,o=f.posix.basename(a);if(!o||o===`.`||o===`/`)throw new G(`invalid-path`,`invalid target path`);let s=384;try{let t=await Pr({rootDir:e.rootDir,relativePath:e.relativePath,rejectHardlinks:!0});try{if(s=t.stat.mode&511,!E(n,t.realPath))throw new G(`outside-workspace`,`file is outside workspace root`)}finally{await t.handle.close().catch(()=>{})}}catch(e){if(!(e instanceof G)||e.code!==`not-found`)throw e}return{rootReal:t,targetPath:r,relativeParentPath:f.posix.dirname(a)===`.`?``:f.posix.dirname(a),basename:o,mode:s||384}}function Yr(e){return e instanceof G?e:new G(`invalid-path`,`path is not a regular file under root`,{cause:e instanceof Error?e:void 0})}async function Xr(e){let t=await Ur({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1}),n=t.openedRealPath,r=t.openedStat.mode&511;await t.handle.close().catch(()=>{});let i=null;try{i=Br(n);let t=await Vr({tempPath:i,data:e.data,encoding:e.encoding,mode:r||384});await m.rename(i,n),i=null;try{await Y({rootDir:e.rootDir,targetPath:n,expectedIdentity:t})}catch(e){throw J(`post-write verification failed: ${String(e)}`),e}}finally{i&&await m.rm(i,{force:!0}).catch(()=>{})}}async function Zr(e,t){let n=null,r=!1,i=!1,a=null,o=null,s=!1;try{n=await Ur({rootDir:e.rootDir,relativePath:e.relativePath,mkdir:e.mkdir,truncateExisting:!1});let c=n.openedRealPath,l=n.openedStat.mode&511;await n.handle.close().catch(()=>{}),i=!0,o=Br(c),a=await m.open(o,Or,l||384);let u=t.handle.createReadStream(),d=a.createWriteStream();u.once(`close`,()=>{r=!0}),d.once(`close`,()=>{s=!0}),await import(`node:stream/promises`).then(({pipeline:e})=>e(u,d));let ee=await m.stat(o);s||=(await a.close().catch(()=>{}),!0),a=null,await m.rename(o,c),o=null;try{await Y({rootDir:e.rootDir,targetPath:c,expectedIdentity:ee})}catch(e){throw J(`post-copy verification failed: ${String(e)}`),e}}catch(e){throw n?.createdForWrite&&await m.rm(n.openedRealPath,{force:!0}).catch(()=>{}),e}finally{o&&await m.rm(o,{force:!0}).catch(()=>{}),r||await t.handle.close().catch(()=>{}),a&&!s&&await a.close().catch(()=>{}),n&&!i&&await n.handle.close().catch(()=>{})}}const Qr=6*1024*1024,$r=100*1024*1024;function ei(e){if(e){if(e.startsWith(`image/`))return`image`;if(e.startsWith(`audio/`))return`audio`;if(e.startsWith(`video/`))return`video`;if(e===`application/pdf`||e.startsWith(`text/`)||e.startsWith(`application/`))return`document`}}function ti(e){switch(e){case`image`:return Qr;case`audio`:return 16777216;case`video`:return 16777216;case`document`:return $r;default:return $r}}const ni={"image/heic":`.heic`,"image/heif":`.heif`,"image/jpeg":`.jpg`,"image/png":`.png`,"image/webp":`.webp`,"image/gif":`.gif`,"audio/ogg":`.ogg`,"audio/mpeg":`.mp3`,"audio/wav":`.wav`,"audio/flac":`.flac`,"audio/aac":`.aac`,"audio/opus":`.opus`,"audio/x-m4a":`.m4a`,"audio/mp4":`.m4a`,"video/mp4":`.mp4`,"video/quicktime":`.mov`,"application/pdf":`.pdf`,"application/json":`.json`,"application/zip":`.zip`,"application/gzip":`.gz`,"application/x-tar":`.tar`,"application/x-7z-compressed":`.7z`,"application/vnd.rar":`.rar`,"application/msword":`.doc`,"application/vnd.ms-excel":`.xls`,"application/vnd.ms-powerpoint":`.ppt`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`.docx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`.xlsx`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`.pptx`,"text/csv":`.csv`,"text/plain":`.txt`,"text/markdown":`.md`},ri={...Object.fromEntries(Object.entries(ni).map(([e,t])=>[t,e])),".jpeg":`image/jpeg`,".js":`text/javascript`},ii=new Set([`.aac`,`.caf`,`.flac`,`.m4a`,`.mp3`,`.oga`,`.ogg`,`.opus`,`.wav`]);function X(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}async function ai(e){if(e)try{return(await v(e))?.mime??void 0}catch{return}}function Z(e){if(e){try{if(/^https?:\/\//i.test(e)){let t=new URL(e);return f.extname(t.pathname).toLowerCase()||void 0}}catch{}return f.extname(e).toLowerCase()||void 0}}function oi(e){let t=Z(e);return t?ii.has(t):!1}function si(e){return li(e)}function ci(e){if(!e)return!0;let t=e.toLowerCase();return t===`application/octet-stream`||t===`application/zip`}async function li(e){let t=Z(e.filePath),n=t?ri[t]:void 0,r=X(e.headerMime),i=await ai(e.buffer);if(i&&(!ci(i)||!n))return i;if(n)return n;if(r&&!ci(r))return r;if(i)return i;if(r)return r}function ui(e){let t=X(e);if(t)return ni[t]}function di(e){return e.contentType?.toLowerCase()===`image/gif`?!0:Z(e.fileName)===`.gif`}function fi(e){if(e)switch(e.toLowerCase()){case`jpg`:case`jpeg`:return`image/jpeg`;case`heic`:return`image/heic`;case`heif`:return`image/heif`;case`png`:return`image/png`;case`webp`:return`image/webp`;case`gif`:return`image/gif`;default:return}}function pi(e){return ei(X(e))}function Q(e){try{return ee(e).isFile()}catch{return!1}}function mi(e,t){if(e.includes(`/`)||e.includes(`\\`)||f.isAbsolute(e))return e;let n=(t.PATH??t.Path??process.env.PATH??process.env.Path??``).split(`;`).map(e=>e.trim()).filter(Boolean),r=f.extname(e).length>0,i=t.PATHEXT??t.Pathext??process.env.PATHEXT??process.env.Pathext??`.EXE;.CMD;.BAT;.COM`,a=r?[``]:i.split(`;`).map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith(`.`)?e:`.${e}`);for(let t of n)for(let n of a)for(let r of[n,n.toLowerCase(),n.toUpperCase()]){let n=f.join(t,`${e}${r}`);if(Q(n))return n}return e}function hi(e){if(!Q(e))return null;try{let t=d(e,`utf8`),n=[];for(let r of t.matchAll(/"([^"\r\n]*)"/g)){let t=(r[1]??``).match(/%~?dp0%?\s*[\\/]*(.*)$/i)?.[1]?.trim();if(!t)continue;let i=t.replace(/[\\/]+/g,f.sep).replace(/^[\\/]+/,``),a=f.resolve(f.dirname(e),i);Q(a)&&n.push(a)}return n.find(e=>{let t=f.basename(e).toLowerCase();return t!==`node.exe`&&t!==`node`})??null}catch{return null}}function gi(e,t){if(typeof t==`string`)return t.trim()||null;if(!t||typeof t!=`object`)return null;if(e){let n=t[e];if(typeof n==`string`&&n.trim())return n.trim()}for(let e of Object.values(t))if(typeof e==`string`&&e.trim())return e.trim();return null}function _i(e,t){if(!t)return null;let n=f.dirname(e),r=[f.resolve(n,`..`,t),f.resolve(n,`node_modules`,t)];for(let e of r){let n=f.join(e,`package.json`);if(Q(n))try{let r=gi(t,JSON.parse(d(n,`utf8`)).bin);if(!r)continue;let i=f.resolve(e,r);if(Q(i))return i}catch{}}return null}function vi(e){let t=e.platform??process.platform,n=e.env??process.env,r=e.execPath??process.execPath;if(t!==`win32`)return{command:e.command,leadingArgv:[],resolution:`direct`};let i=mi(e.command,n),a=f.extname(i).toLowerCase();if(a===`.js`||a===`.cjs`||a===`.mjs`)return{command:r,leadingArgv:[i],resolution:`node-entrypoint`,windowsHide:!0};if(a===`.cmd`||a===`.bat`){let t=hi(i)??_i(i,e.packageName);return t?f.extname(t).toLowerCase()===`.exe`?{command:t,leadingArgv:[],resolution:`exe-entrypoint`,windowsHide:!0}:{command:r,leadingArgv:[t],resolution:`node-entrypoint`,windowsHide:!0}:{command:i,leadingArgv:[],resolution:`unresolved-wrapper`}}return{command:i,leadingArgv:[],resolution:`direct`}}function yi(e){if(e.candidate.resolution!==`unresolved-wrapper`)return{command:e.candidate.command,leadingArgv:e.candidate.leadingArgv,resolution:e.candidate.resolution,windowsHide:e.candidate.windowsHide};if(e.allowShellFallback!==!1)return{command:e.candidate.command,leadingArgv:[],resolution:`shell-fallback`,shell:!0};throw Error(`${f.basename(e.candidate.command)} wrapper resolved, but no executable/Node entrypoint could be resolved without shell execution.`)}function bi(e){return yi({candidate:vi(e),allowShellFallback:e.allowShellFallback})}function xi(e,t){return{command:e.command,argv:[...e.leadingArgv,...t],resolution:e.resolution,shell:e.shell,windowsHide:e.windowsHide}}function $(n,r=process.env,i=()=>t(r,p.homedir)){let a=e(r,i),o=w(n??`main`);return f.join(a,`agents`,o,`sessions`)}function Si(e,n=process.env,r=()=>t(n,p.homedir)){return $(e,n,r)}function Ci(e){return f.join($(e),`sessions.json`)}function wi(e){let t=e.agentId?.trim(),n=e.storePath?.trim();if(n&&n!==`(multiple)`){let e=f.dirname(f.resolve(n));return t?{sessionsDir:e,agentId:t}:{sessionsDir:e}}if(t)return{agentId:t}}const Ti=/^[a-z0-9][a-z0-9._-]{0,127}$/i;function Ei(e){let t=e.trim();if(!Ti.test(t))throw Error(`Invalid session ID: ${e}`);return t}function Di(e){let t=e?.sessionsDir?.trim();return t?f.resolve(t):$(e?.agentId)}function Oi(e,t){let n=Ni(f.resolve(e))??f.resolve(e),r=Ni(t)??t,i=f.relative(n,r);if(!(!i||i.startsWith(`..`)||f.isAbsolute(i)))return f.resolve(n,i)}function ki(e,t){let n=f.resolve(e);if(f.basename(n)!==`sessions`)return;let r=f.dirname(n),i=f.dirname(r);if(f.basename(i)!==`agents`)return;let a=f.dirname(i);return f.join(a,`agents`,w(t),`sessions`)}function Ai(e){let t=f.normalize(f.resolve(e)).split(f.sep).filter(Boolean),n=t.lastIndexOf(`sessions`);return n<2||t[n-2]!==`agents`?null:{parts:t,sessionsIndex:n}}function ji(e){let t=Ai(e);if(!t)return;let{parts:n,sessionsIndex:r}=t;return n[r-1]||void 0}function Mi(e,t){let n=Ai(e);if(!n)return;let{parts:r,sessionsIndex:i}=n,a=r[i-1];if(!a)return;let o=w(a);if(o!==a.toLowerCase()||o!==w(t))return;let s=r.slice(i+1);if(s.length!==1)return;let c=s[0];if(!(!c||c===`.`||c===`..`))return f.normalize(f.resolve(e))}function Ni(e){try{return l.realpathSync(e)}catch{return}}function Pi(e,t,n){let r=t.trim();if(!r)throw Error(`Session file path must not be empty`);let i=f.resolve(e),a=Ni(i)??i,o=f.isAbsolute(r)?Ni(r)??r:r,s=f.isAbsolute(o)?f.relative(a,o):o;if(s.startsWith(`..`)&&f.isAbsolute(o)){let e=e=>{let t=w(e),n=ki(a,t);if(n){let e=Oi(n,o);if(e)return e}return Oi($(t),o)},t=n?.agentId?.trim();if(t){let n=e(t);if(n)return n}let r=ji(o);if(r){let t=e(r);if(t)return t;let n=Mi(o,r);if(n)return n}}if(!s||s.startsWith(`..`)||f.isAbsolute(s))throw Error(`Session file path must be within sessions directory`);return f.resolve(a,s)}function Fi(e,t,n){let r=Ei(e),i=typeof n==`string`?encodeURIComponent(n):typeof n==`number`?String(n):void 0;return Pi(t,i===void 0?`${r}.jsonl`:`${r}-topic-${i}.jsonl`)}function Ii(e,t,n){return Fi(e,$(t),n)}function Li(e,t,n){let r=Di(n),i=t?.sessionFile?.trim();if(i)try{return Pi(r,i,{agentId:n?.agentId})}catch{}return Fi(e,r)}function Ri(e,r){let i=w(r?.agentId??`main`);if(!e)return Ci(i);if(e.includes(`{agentId}`)){let r=e.replaceAll(`{agentId}`,i);return r.startsWith(`~`)?f.resolve(n(r,{home:t(process.env,p.homedir),env:process.env,homedir:p.homedir})):f.resolve(r)}return e.startsWith(`~`)?f.resolve(n(e,{home:t(process.env,p.homedir),env:process.env,homedir:p.homedir})):f.resolve(e)}export{R as $,br as A,je as At,U as B,se as Bt,Kr as C,Te as Ct,Rr as D,Ne as Dt,Fr as E,ze as Et,rr as F,pe as Ft,jn as G,ue as Gt,Rn as H,ae as Ht,tr as I,Se as It,Nn as J,re as Jt,Un as K,b as Kt,Kn as L,Ce as Lt,_r as M,Be as Mt,hr as N,Fe as Nt,qr as O,Pe as Ot,gr as P,Ae as Pt,z as Q,Hn as R,fe as Rt,Wr as S,S as St,Pr as T,Le as Tt,Fn as U,oe as Ut,Gn as V,ce as Vt,Wn as W,x as Wt,N as X,Mn as Y,un as Z,X as _,Ge as _t,Fi as a,Tn as at,ei as b,Ve as bt,xi as c,an as ct,ui as d,Ut as dt,I as et,Z as f,Bt as ft,pi as g,Je as gt,di as h,E as ht,Ii as i,xn as it,xr as j,Me as jt,Gr as k,w as kt,bi as l,Ht as lt,oi as m,T as mt,Li as n,F as nt,Si as o,Cn as ot,fi as p,O as pt,Vn as q,y as qt,wi as r,L as rt,Ri as s,rn as st,Ci as t,P as tt,si as u,Kt as ut,Qr as v,We as vt,Lr as w,Ie as wt,G as x,He as xt,ti as y,Ue as yt,An as z,ie as zt};
|
|
6
|
+
//# sourceMappingURL=paths-piJASC5k.js.map
|