@qqbrowser/openclaw-qbot 0.0.139 → 0.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-lookup-CW-_CL7y.js +1 -0
- package/dist/acp-cli-BaslDuk6.js +1 -0
- package/dist/acp-cli-f5-uI85a.js +1 -0
- package/dist/active-listener-Cce5tcPa.js +1 -0
- package/dist/active-listener-D8VOdVx3.js +1 -0
- package/dist/active-listener-DeKRt_UV.js +1 -0
- package/dist/active-listener-Dle9QX40.js +1 -0
- package/dist/agent-scope-DAWJwFfl.js +1 -0
- package/dist/agent-scope-DXZc3eNT.js +1 -0
- package/dist/agents-Bpp_F5In.js +1 -0
- package/dist/agents.config-B6LRG9eP.js +1 -0
- package/dist/agents.config-DfIJAGcd.js +1 -0
- package/dist/allow-from-B6dI7oz8.js +1 -0
- package/dist/allow-from-DEeVIPKS.js +1 -0
- package/dist/api-BeG0ObSq.js +1 -0
- package/dist/api-Dx8x1KTs.js +1 -0
- package/dist/api-key-rotation-BRt-vnRV.js +1 -0
- package/dist/api-key-rotation-CCH1wYVU.js +1 -0
- package/dist/api-key-rotation-D0QU-kQ9.js +1 -0
- package/dist/api-key-rotation-Di6QgXx7.js +1 -0
- package/dist/arg-split-BOqSMBuf.js +1 -0
- package/dist/arg-split-DE5RqDHq.js +1 -0
- package/dist/audio-preflight-B5o7P9qi.js +1 -0
- package/dist/audio-preflight-CxD7VCHW.js +1 -0
- package/dist/audio-preflight-DKSCBKRb.js +1 -0
- package/dist/audio-preflight-Dpk8-Bmk.js +1 -0
- package/dist/audio-transcription-runner-Bd1OZC6K.js +1 -0
- package/dist/audio-transcription-runner-D4Bp6MM7.js +1 -0
- package/dist/audio-transcription-runner-DPwmBYQj.js +1 -0
- package/dist/audio-transcription-runner-DSr6OIz1.js +1 -0
- package/dist/audit-C7RP7G_g.js +1 -0
- package/dist/audit-jkdcAUep.js +1 -0
- package/dist/audit-membership-runtime-BpRsMj5-.js +1 -0
- package/dist/audit-membership-runtime-BsfLZNBj.js +1 -0
- package/dist/audit-membership-runtime-DRHirRmx.js +1 -0
- package/dist/audit-membership-runtime-g0dEWJTp.js +1 -0
- package/dist/audit-membership-runtime-kdyToskD.js +1 -0
- package/dist/auth-choice-B7LSoXZ_.js +1 -0
- package/dist/auth-choice-CxMH4c-u.js +1 -0
- package/dist/auth-choice-DvTApGhx.js +1 -0
- package/dist/auth-choice-EQdNd7jO.js +1 -0
- package/dist/auth-choice-options-B3WQyS7I.js +1 -0
- package/dist/auth-choice-options-Dw14noox.js +1 -0
- package/dist/auth-choice-prompt-uegl56cf.js +1 -0
- package/dist/auth-choice-prompt-xYj13czb.js +1 -0
- package/dist/auth-choice.apply-helpers-B7S-PcH_.js +1 -0
- package/dist/auth-choice.apply-helpers-gaL-oSft.js +1 -0
- package/dist/auth-profiles-T8DuH3ax.js +1 -0
- package/dist/auth-token-9OTF1FmL.js +1 -0
- package/dist/auth-token-kGltuM6S.js +1 -0
- package/dist/banner-9u45RL26.js +1 -0
- package/dist/bonjour-discovery-CFZXPega.js +1 -0
- package/dist/bonjour-discovery-CjivQOxi.js +1 -0
- package/dist/boolean-Ch3DfXPy.js +1 -0
- package/dist/boolean-D15s2V33.js +1 -0
- package/dist/boolean-DypnRoRK.js +1 -0
- package/dist/brew-COcDl8CB.js +1 -0
- package/dist/brew-DDPm_HfE.js +1 -0
- package/dist/browser-cli-DQHE2iPY.js +1 -0
- package/dist/browser-cli-Dt0ds-an.js +1 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -0
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -0
- package/dist/bundled/command-logger/handler.js +1 -0
- package/dist/bundled/session-memory/handler.js +1 -0
- package/dist/call-B8Fb4_oh.js +1 -0
- package/dist/call-CqoMqP5b.js +1 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +1705 -2
- package/dist/channel-account-context-BMPAMZEv.js +1 -0
- package/dist/channel-account-context-DAcarnqW.js +1 -0
- package/dist/channel-activity-B04WbrrK.js +1 -0
- package/dist/channel-activity-BBrgoad1.js +1 -0
- package/dist/channel-activity-CgbOWaay.js +1 -0
- package/dist/channel-activity-YIMhOAUo.js +1 -0
- package/dist/channel-activity-YjYNzCpJ.js +1 -0
- package/dist/channel-options-CEIzjOno.js +1 -0
- package/dist/channel-options-D2syI791.js +1 -0
- package/dist/channel-selection-BBeE1TmB.js +1 -0
- package/dist/channel-selection-CbNtbAEf.js +1 -0
- package/dist/channel-web-BrElpZAc.js +1 -0
- package/dist/channel-web-CxHbET4B.js +1 -0
- package/dist/channels/plugins/actions/discord.js +1 -0
- package/dist/channels/plugins/actions/signal.js +1 -0
- package/dist/channels/plugins/actions/telegram.js +1 -0
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -0
- package/dist/channels-cli-BmAJuuRs.js +1 -0
- package/dist/channels-cli-Dgosczr6.js +1 -0
- package/dist/channels-status-issues-8eFrGKyf.js +1 -0
- package/dist/channels-status-issues-PRgOT90w.js +1 -0
- package/dist/chat-envelope-Bznn2SoS.js +1 -0
- package/dist/chat-envelope-HVpKusFc.js +1 -0
- package/dist/clack-prompter-DBPdGdqp.js +1 -0
- package/dist/clack-prompter-Dq0aY6iM.js +1 -0
- package/dist/clawbot-cli-CgS7TkEx.js +1 -0
- package/dist/clawbot-cli-DZ2K0OTk.js +1 -0
- package/dist/cleanup-utils-BWm70DoD.js +1 -0
- package/dist/cleanup-utils-D-RhEX6F.js +1 -0
- package/dist/cli-BcnoCo4z.js +1 -0
- package/dist/cli-D8T2tphD.js +1 -0
- package/dist/cli-utils-BY7dLMFy.js +1 -0
- package/dist/cli-utils-BleB1eys.js +1 -0
- package/dist/clipboard-Bk8cviBt.js +1 -0
- package/dist/clipboard-CKT_VIkG.js +1 -0
- package/dist/cmd-argv-BBT5l8AV.js +1 -0
- package/dist/cmd-argv-Bh-KpaZ0.js +1 -0
- package/dist/command-format-BbDT1tlm.js +1 -0
- package/dist/command-format-CLxIPuLR.js +1 -0
- package/dist/command-options-BpOUDl2S.js +1 -0
- package/dist/command-options-Bq5nQxz6.js +1 -0
- package/dist/command-poll-backoff-BZLHYB2k.js +1 -0
- package/dist/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/command-poll-backoff-Df6cOQrX.js +1 -0
- package/dist/command-poll-backoff-endAPdwn.js +1 -0
- package/dist/command-registry-CfuXCRwV.js +1 -0
- package/dist/command-secret-targets-BVN3kiT9.js +1 -0
- package/dist/command-secret-targets-BlN-J_fA.js +1 -0
- package/dist/commands-CGpM84iR.js +1 -0
- package/dist/commands-Dy7duWlt.js +1 -0
- package/dist/commands-registry-B1x54ukc.js +1 -0
- package/dist/commands-registry-Cpl4QnG4.js +1 -0
- package/dist/commands-registry-D40KqYOm.js +1 -0
- package/dist/commands-registry-SeddSmFK.js +1 -0
- package/dist/compact-Dg66DXx_.js +1 -0
- package/dist/completion-cli-BZi4nuQb.js +1 -0
- package/dist/completion-cli-C40TWdsv.js +1 -0
- package/dist/config-BqW5S1xL.js +1 -0
- package/dist/config-D12ZLKqh.js +1 -0
- package/dist/config-cli-1ojSLwAj.js +1 -0
- package/dist/config-cli-CBte2b1h.js +1 -0
- package/dist/config-guard-BTNXbWoO.js +1 -0
- package/dist/config-guard-sYYx9zEF.js +1 -0
- package/dist/config-validation-C1La_IZU.js +1 -0
- package/dist/config-validation-DviYxW8Y.js +1 -0
- package/dist/configure-DJrNDEpR.js +1 -0
- package/dist/configure-kod4tmZa.js +1 -0
- package/dist/connection-auth-B_Uk6Vk8.js +1 -0
- package/dist/connection-auth-C8iru0UB.js +1 -0
- package/dist/context-window-guard-7crlatf9.js +1 -0
- package/dist/context-window-guard-CPChk363.js +1 -0
- package/dist/control-ui-assets-BIa0GGDg.js +1 -0
- package/dist/control-ui-assets-CTHGGgaX.js +1 -0
- package/dist/cron-cli-Dha16Lo-.js +1 -0
- package/dist/cron-cli-QHS2pKZ_.js +1 -0
- package/dist/daemon-cli-BuXTzSnU.js +1 -0
- package/dist/daemon-cli-DOTKuS7d.js +1 -0
- package/dist/daemon-cli.js +1 -0
- package/dist/daemon-install-C30rBssi.js +1 -0
- package/dist/daemon-install-HrqlOCrc.js +1 -0
- package/dist/daemon-install-plan.shared-CfA37Ut_.js +1 -0
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +1 -0
- package/dist/daemon-runtime-DHiDbRuC.js +1 -0
- package/dist/daemon-runtime-VcpeBRJV.js +1 -0
- package/dist/dangerous-name-matching-BOmvAibz.js +1 -0
- package/dist/dangerous-name-matching-DtllRqBD.js +1 -0
- package/dist/dangerous-tools-CFRYQJ6V.js +1 -0
- package/dist/dangerous-tools-oYCu5wfC.js +1 -0
- package/dist/deliver-56mQkDw3.js +1 -0
- package/dist/deliver-BFQ4Zx9z.js +1 -0
- package/dist/deliver-BHuhHfkH.js +1 -0
- package/dist/deliver-ClBkV2eD.js +1 -0
- package/dist/delivery-queue-CKbauSFq.js +1 -0
- package/dist/delivery-queue-nkPJu0fY.js +1 -0
- package/dist/device-pairing-CTFpaTrD.js +1 -0
- package/dist/device-pairing-QTK0dod3.js +1 -0
- package/dist/devices-cli-Ckxd0k0I.js +1 -0
- package/dist/devices-cli-Db36mBHq.js +1 -0
- package/dist/diagnostic-BrE4lMIf.js +1 -0
- package/dist/diagnostic-CDxNevIQ.js +1 -0
- package/dist/diagnostic-DOzHPnht.js +1 -0
- package/dist/diagnostic-DQq4Bwrs.js +1 -0
- package/dist/diagnostics-BgbeL9KE.js +1 -0
- package/dist/diagnostics-Cdctg9K_.js +1 -0
- package/dist/directory-cli-DDTaUkjW.js +1 -0
- package/dist/directory-cli-_gTFSHMW.js +1 -0
- package/dist/dns-cli--4PwtR2Y.js +1 -0
- package/dist/dns-cli-C4DwKquN.js +1 -0
- package/dist/docs-cli-Cdw9Iz9a.js +1 -0
- package/dist/docs-cli-ClD2UyX1.js +1 -0
- package/dist/doctor-completion-BJ6steqx.js +1 -0
- package/dist/doctor-completion-DMJhfrtC.js +1 -0
- package/dist/doctor-config-flow-D4F3mz4h.js +1 -0
- package/dist/doctor-config-flow-DnOyVZhQ.js +1 -0
- package/dist/enable-BhD84GhD.js +1 -0
- package/dist/enable-Ccf9wSM8.js +1 -0
- package/dist/entry-status-CCwwKO43.js +1 -0
- package/dist/entry-status-CoXkbJcX.js +1 -0
- package/dist/entry.js +1 -0
- package/dist/env-D7wNuBx1.js +1 -0
- package/dist/env-overrides-DHtB4kK3.js +1 -0
- package/dist/env-overrides-DXJbFrwI.js +1 -0
- package/dist/errors-6SQWM9dj.js +1 -0
- package/dist/errors-Bunti32V.js +1 -0
- package/dist/exec-B3eleY5O.js +1 -0
- package/dist/exec-DHqLtFYt.js +1 -0
- package/dist/exec-approvals-BXO9Cezj.js +1 -0
- package/dist/exec-approvals-BpBNEy6i.js +1 -0
- package/dist/exec-approvals-allowlist-CE3nYh0K.js +1 -0
- package/dist/exec-approvals-allowlist-D8mN7nxV.js +1 -0
- package/dist/exec-approvals-cli-CUcuN63y.js +1 -0
- package/dist/exec-approvals-cli-CxUGD08t.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-Dt0GchLp.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-dcCS_Adf.js +1 -0
- package/dist/fetch-B9tORjG8.js +1 -0
- package/dist/fetch-BJT3BrkJ.js +1 -0
- package/dist/fetch-B_wRifvZ.js +1 -0
- package/dist/fetch-Bn0mWg6a.js +1 -0
- package/dist/fetch-CQaNr5J1.js +1 -0
- package/dist/fetch-Ce-scEU-.js +1 -0
- package/dist/fetch-D0rZDHKO.js +1 -0
- package/dist/fetch-DHo17YmK.js +1 -0
- package/dist/fetch-Dh-apy46.js +1 -0
- package/dist/fetch-Dikjvc5M.js +1 -0
- package/dist/fetch-DsjPfQlp.js +1 -0
- package/dist/fetch-_g8lZ8K8.js +1 -0
- package/dist/fetch-guard-BrTtJw7h.js +1 -0
- package/dist/fetch-guard-D10s0raB.js +1 -0
- package/dist/fetch-guard-DPdY0NXR.js +1 -0
- package/dist/fetch-guard-cu7DGSRF.js +1 -0
- package/dist/fetch-hy0JKSsm.js +1 -0
- package/dist/fetch-timeout-CdYxWG9w.js +1 -0
- package/dist/fetch-timeout-Cj8_oAls.js +1 -0
- package/dist/fetch-timeout-DoOI_izT.js +1 -0
- package/dist/fetch-timeout-u8g99Ax0.js +1 -0
- package/dist/format-Bn1bwJKX.js +1 -0
- package/dist/format-Ce7I7s-k.js +1 -0
- package/dist/format-duration-C8AzNqKh.js +1 -0
- package/dist/format-duration-D5AMtmHa.js +1 -0
- package/dist/format-relative-B9pSIdGe.js +1 -0
- package/dist/format-relative-DkMjYy7z.js +1 -0
- package/dist/frontmatter-BkZkwkVO.js +1 -0
- package/dist/frontmatter-C7mzDNxd.js +1 -0
- package/dist/frontmatter-CzpfPBFl.js +1 -0
- package/dist/gateway-cli-CKu0FA7D.js +1 -0
- package/dist/gateway-cli-C_s9eMlC.js +1 -0
- package/dist/gateway-install-token-BCnuZeh1.js +1 -0
- package/dist/gateway-install-token-DiDvDPJQ.js +1 -0
- package/dist/gateway-rpc-iFvDyHYd.js +1 -0
- package/dist/gateway-rpc-tEEvY0kH.js +1 -0
- package/dist/github-copilot-token-C79yeDKS.js +1 -0
- package/dist/github-copilot-token-DGYAlOmV.js +1 -0
- package/dist/github-copilot-token-DePP-lIf.js +1 -0
- package/dist/github-copilot-token-wm6mbypz.js +1 -0
- package/dist/gmail-setup-utils-CYOH3zzx.js +1 -0
- package/dist/gmail-setup-utils-S-MyEGuj.js +1 -0
- package/dist/group-access-BHKVOhrj.js +1 -0
- package/dist/group-access-D2DOYMfr.js +1 -0
- package/dist/health-BgOggK9k.js +1 -0
- package/dist/health-PaRHFItm.js +1 -0
- package/dist/health-format-B1nj3Wfn.js +1 -0
- package/dist/health-format-VBr6LEpt.js +1 -0
- package/dist/heartbeat-visibility-BQ_esv2m.js +1 -0
- package/dist/heartbeat-visibility-q74UdY8O.js +1 -0
- package/dist/help-format-B4aEI7V9.js +1 -0
- package/dist/help-format-BRbF_INg.js +1 -0
- package/dist/helpers-COz1ghcB.js +1 -0
- package/dist/helpers-Cp8gcO6u.js +1 -0
- package/dist/hooks-cli-BzyzTNBx.js +1 -0
- package/dist/hooks-cli-CsBrScq0.js +1 -0
- package/dist/hooks-status-BHt-Xvh4.js +1 -0
- package/dist/hooks-status-CRJ4J0ZW.js +1 -0
- package/dist/image-BkWwI54C.js +1 -0
- package/dist/image-CcVQg-YN.js +1 -0
- package/dist/image-Cm1RUBqD.js +1 -0
- package/dist/image-DsoO5VP5.js +1 -0
- package/dist/index.js +1 -0
- package/dist/inspect-BKV-I1UE.js +1 -0
- package/dist/inspect-z59cgmYc.js +1 -0
- package/dist/install-safe-path-C6kc_8NW.js +1 -0
- package/dist/install-safe-path-iesxijn2.js +1 -0
- package/dist/installs-BNeI_oML.js +1 -0
- package/dist/installs-C1xQLuby.js +1 -0
- package/dist/ipv4-BOuNtoGn.js +1 -0
- package/dist/ipv4-CWdaEiVH.js +1 -0
- package/dist/ir-BF0M2kGp.js +1 -0
- package/dist/ir-D8Hh84ab.js +1 -0
- package/dist/ir-DBWscfBd.js +1 -0
- package/dist/ir-Dk7OQ4bA.js +1 -0
- package/dist/is-main-DG5ueqhF.js +1 -0
- package/dist/issue-format-BT7cQEt3.js +1 -0
- package/dist/issue-format-C_lNzrKa.js +1 -0
- package/dist/kill-tree-B3g7HrAO.js +1 -0
- package/dist/lifecycle-core-D9KNCvxY.js +1 -0
- package/dist/lifecycle-core-LM5UUUB1.js +1 -0
- package/dist/line/accounts.js +1 -0
- package/dist/line/send.js +1 -0
- package/dist/line/template-messages.js +1 -0
- package/dist/links-CBnmRP9D.js +1 -0
- package/dist/links-CySwdMcF.js +1 -0
- package/dist/llm-slug-generator.js +1 -0
- package/dist/load-options-BsOW74dp.js +1 -0
- package/dist/load-options-C7dLuybp.js +1 -0
- package/dist/load-options-DV4j6Aqb.js +1 -0
- package/dist/load-options-Dwt0CeEg.js +1 -0
- package/dist/local-roots-6waH0SZ0.js +1 -0
- package/dist/logger-5W0OocJW.js +1 -0
- package/dist/logger-Bl8URnrW.js +1 -0
- package/dist/logger-DwWqfo66.js +1 -0
- package/dist/logger-kQAOe3qp.js +1 -0
- package/dist/logging-Dqe9dxSX.js +1 -0
- package/dist/logging-tYw1NbJd.js +1 -0
- package/dist/login-BOlqRyr0.js +1 -0
- package/dist/login-CkWesqf_.js +1 -0
- package/dist/login-Do_NA1Je.js +1 -0
- package/dist/login-op9S8yqv.js +1 -0
- package/dist/login-qr-B6rxvoTS.js +1 -0
- package/dist/login-qr-BGH9zmhw.js +1 -0
- package/dist/login-qr-CiENvgog.js +1 -0
- package/dist/login-qr-DsV-lxFd.js +1 -0
- package/dist/login-qr-QcDMg23y.js +1 -0
- package/dist/logs-cli-B4eUg_87.js +1 -0
- package/dist/logs-cli-BA3Aso8a.js +1 -0
- package/dist/manager-4Y9fRgdw.js +1 -0
- package/dist/manager-C2YW7Hkq.js +1 -0
- package/dist/manager-Dtd_loL8.js +1 -0
- package/dist/manager-M1GKhLUC.js +1 -0
- package/dist/memory-cli-XaxtBQm1.js +1 -0
- package/dist/memory-cli-jhzJ3as7.js +1 -0
- package/dist/model-catalog-C1kpjR75.js +1 -0
- package/dist/model-catalog-COVzoZD9.js +1 -0
- package/dist/model-param-b-B0r2cPDw.js +1 -0
- package/dist/model-param-b-BqIr5rY5.js +1 -0
- package/dist/model-picker-D3ZSpr0i.js +1 -0
- package/dist/model-picker-bZNuI66U.js +1 -0
- package/dist/model-selection-B5JsBS9D.js +1 -0
- package/dist/model-selection-BlC_rXAN.js +1 -0
- package/dist/model-selection-vfhBuN9O.js +1 -0
- package/dist/models-C_Vg3Cty.js +1 -0
- package/dist/models-cli-CDZliTXq.js +1 -0
- package/dist/models-cli-bGr8jwAb.js +1 -0
- package/dist/models-config-CdMhNxKV.js +1 -0
- package/dist/models-config-_htt7eY5.js +1 -0
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +1 -0
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +1 -0
- package/dist/node-cli-5lYbDZ70.js +1 -0
- package/dist/node-cli-Br04Qmqo.js +1 -0
- package/dist/node-command-policy-CejeQemH.js +1 -0
- package/dist/node-command-policy-CqXhdnHh.js +1 -0
- package/dist/node-commands-8GBOiktk.js +1 -0
- package/dist/node-commands-DdkziOTx.js +1 -0
- package/dist/node-resolve-B3BJbmQX.js +1 -0
- package/dist/node-resolve-DLZf3-1V.js +1 -0
- package/dist/node-service-BRfrNp8l.js +1 -0
- package/dist/node-service-C0bl7jcZ.js +1 -0
- package/dist/node-shell-DyOfwHrh.js +1 -0
- package/dist/nodes-cli-8By8--bW.js +1 -0
- package/dist/nodes-cli-zq41EwJN.js +1 -0
- package/dist/nodes-screen-DECgxo6A.js +1 -0
- package/dist/note-D4GAwgha.js +1 -0
- package/dist/note-Dp-d_utk.js +1 -0
- package/dist/npm-pack-install-B23L-AtF.js +1 -0
- package/dist/npm-pack-install-C0te3Oap.js +1 -0
- package/dist/npm-resolution-BnJGLwhi.js +1 -0
- package/dist/npm-resolution-DWPloph4.js +1 -0
- package/dist/oauth-env-DAamJ1oz.js +1 -0
- package/dist/oauth-env-DSLBTWb1.js +1 -0
- package/dist/oauth-tls-preflight-BSBRDIfC.js +1 -0
- package/dist/oauth-tls-preflight-ByNjbUR5.js +1 -0
- package/dist/ollama-setup-BMEKWyIE.js +1 -0
- package/dist/ollama-setup-DlwS6Gl-.js +1 -0
- package/dist/onboard-B0BNCQaO.js +1 -0
- package/dist/onboard-CjVhdaiR.js +1 -0
- package/dist/onboard-channels-BMIOddLN.js +1 -0
- package/dist/onboard-channels-CZK_7xMR.js +1 -0
- package/dist/onboard-config-B7U20YRw.js +1 -0
- package/dist/onboard-config-DS9dUv8M.js +1 -0
- package/dist/onboard-custom-B03SlEHB.js +1 -0
- package/dist/onboard-custom-Bl0y8c-g.js +1 -0
- package/dist/onboard-helpers-PGl5bVPE.js +1 -0
- package/dist/onboard-helpers-zwybUJWu.js +1 -0
- package/dist/onboard-hooks-CERzXObm.js +1 -0
- package/dist/onboard-hooks-gQ3sxBNi.js +1 -0
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +1 -0
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +1 -0
- package/dist/onboard-remote-BOpIRdDu.js +1 -0
- package/dist/onboard-remote-DPU-H_2O.js +1 -0
- package/dist/onboard-search-f2tJD4hg.js +1 -0
- package/dist/onboard-search-fslKKhyg.js +1 -0
- package/dist/onboard-skills-BMAJs6ly.js +1 -0
- package/dist/onboard-skills-CMSQc2Mm.js +1 -0
- package/dist/onboarding-B6ixWwgp.js +1 -0
- package/dist/onboarding-ouEqUuUr.js +1 -0
- package/dist/onboarding.finalize-Bgat5Npc.js +1 -0
- package/dist/onboarding.finalize-DsMVlTcH.js +1 -0
- package/dist/onboarding.gateway-config-BtLDJWJ2.js +1 -0
- package/dist/onboarding.gateway-config-y3pqsL9i.js +1 -0
- package/dist/onboarding.secret-input-BsBgh8Tc.js +1 -0
- package/dist/onboarding.secret-input-kO5OzYC7.js +1 -0
- package/dist/openai-codex-model-default-DuE2_wN7.js +1 -0
- package/dist/openai-codex-model-default-yVfRw-Mm.js +1 -0
- package/dist/openai-model-default-Bl8MHPb6.js +1 -0
- package/dist/openai-model-default-DJObMvLJ.js +1 -0
- package/dist/openclaw-exec-env-BWbOu_YC.js +1 -0
- package/dist/openclaw-root-CnsBf6ZU.js +1 -0
- package/dist/openclaw-root-D_0Q6--h.js +1 -0
- package/dist/outbound-BOSIEiEY.js +1 -0
- package/dist/outbound-BtUeDLjU.js +1 -0
- package/dist/outbound-Bx2Z2aYK.js +1 -0
- package/dist/outbound-Bz8bbrMI.js +1 -0
- package/dist/outbound-attachment-B7wMxwj6.js +1 -0
- package/dist/outbound-attachment-BgAe99RM.js +1 -0
- package/dist/outbound-attachment-Dds8xirj.js +1 -0
- package/dist/outbound-attachment-DqEKghQp.js +1 -0
- package/dist/pairing-cli-Bya9M-I_.js +1 -0
- package/dist/pairing-cli-D2JEhufv.js +1 -0
- package/dist/pairing-labels-BUU_-70B.js +1 -0
- package/dist/pairing-labels-D-kzQEL2.js +1 -0
- package/dist/pairing-store-BH-FTYkn.js +1 -0
- package/dist/pairing-store-Cg2UxreQ.js +1 -0
- package/dist/pairing-token-BjYBuREl.js +1 -0
- package/dist/pairing-token-DAR7V7FJ.js +1 -0
- package/dist/parse-duration-XTjMKl8s.js +1 -0
- package/dist/parse-finite-number-DqzUM-_s.js +1 -0
- package/dist/parse-finite-number-dBmDLLKL.js +1 -0
- package/dist/parse-log-line-CsYLg7Qu.js +1 -0
- package/dist/parse-log-line-NV-cipB_.js +1 -0
- package/dist/parse-port-Bv1Y9Wk5.js +1 -0
- package/dist/parse-port-JVwkxcZ8.js +1 -0
- package/dist/parse-timeout-DWSGfCkQ.js +1 -0
- package/dist/parse-timeout-Dx4QnVzo.js +1 -0
- package/dist/path-alias-guards-kY_ZbWs-.js +1 -0
- package/dist/path-alias-guards-mvyLCPlN.js +1 -0
- package/dist/path-env-BPd1Yd-i.js +1 -0
- package/dist/path-env-emdAQejM.js +1 -0
- package/dist/path-safety-BukYK8Kd.js +1 -0
- package/dist/path-safety-DaaMJFdt.js +1 -0
- package/dist/paths-B4IRk3wi.js +1 -0
- package/dist/paths-BfjJY2VL.js +1 -0
- package/dist/paths-BjD3T_xq.js +1 -0
- package/dist/paths-BpQOWYiT.js +1 -0
- package/dist/paths-CChBdtE8.js +1 -0
- package/dist/paths-CrCoPIVK.js +1 -0
- package/dist/paths-piJASC5k.js +1 -0
- package/dist/paths-yLEk_25I.js +1 -0
- package/dist/pi-embedded-BZSn84Bh.js +1 -0
- package/dist/pi-embedded-Dsz7p3MF.js +1 -0
- package/dist/pi-model-discovery-BbD1YJNx.js +1 -0
- package/dist/pi-model-discovery-CpjYoBQf.js +1 -0
- package/dist/pi-model-discovery-DeQdHV8O.js +1 -0
- package/dist/pi-model-discovery-Dps1PPWz.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-DseAq0gm.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-KKGILAuK.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-Pck2WdIO.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-ZzMJQ1BP.js +1 -0
- package/dist/pi-tools.policy-D40r0HmD.js +1 -0
- package/dist/plugin-auto-enable-DpVL6-ES.js +1 -0
- package/dist/plugin-auto-enable-NzmNh4oU.js +1 -0
- package/dist/plugin-install-plan-BobX0y9S.js +1 -0
- package/dist/plugin-install-plan-NvDGp0d8.js +1 -0
- package/dist/plugin-registry-C6dY-Et7.js +1 -0
- package/dist/plugin-registry-CIBiHZH1.js +1 -0
- package/dist/plugin-sdk/account-id.cjs +1 -0
- package/dist/plugin-sdk/account-id.js +1 -0
- package/dist/plugin-sdk/acpx.cjs +1 -0
- package/dist/plugin-sdk/acpx.js +1 -0
- package/dist/plugin-sdk/active-listener-BApFQlQn.js +1 -0
- package/dist/plugin-sdk/active-listener-BETopzG5.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BEcmvyxh.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BZPPbsNy.cjs +1 -0
- package/dist/plugin-sdk/active-listener-B_Mxemq7.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BgW_qfd3.js +1 -0
- package/dist/plugin-sdk/active-listener-Coet66pF.cjs +1 -0
- package/dist/plugin-sdk/active-listener-CvML9qVF.js +1 -0
- package/dist/plugin-sdk/active-listener-DuO6KMXJ.js +1 -0
- package/dist/plugin-sdk/active-listener-DymzfmOG.cjs +1 -0
- package/dist/plugin-sdk/active-listener-ILBdBHMv.js +1 -0
- package/dist/plugin-sdk/active-listener-gRRIfN1q.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-Bj1A9Slo.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CFPNzksf.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CXY0AyM1.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-ClIwV8yq.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-D5Nr1xl3.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DDCwA0KM.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DHMvXm70.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DaFFZfk5.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DcREl_0x.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-X-5Fb7av.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-_VfXYfHS.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-wFUVOOfM.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-B1MP5_bc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BETx142T.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BGRLhCLc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BNICfOY5.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BV3Cav8M.js +1 -0
- package/dist/plugin-sdk/audio-preflight-BmO72Cqr.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BpE8wFQc.js +1 -0
- package/dist/plugin-sdk/audio-preflight-CTAafaiH.js +1 -0
- package/dist/plugin-sdk/audio-preflight-D82aewIt.js +1 -0
- package/dist/plugin-sdk/audio-preflight-DmzxEaq3.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-DrSIYRnD.js +1 -0
- package/dist/plugin-sdk/audio-preflight-SZZoA2Ff.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-B54MyF1_.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BIqM5H5q.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BLAxZL-U.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BVmaaA2k.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BdY-TMcc.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-By3lSLub.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CH5CoZrF.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CMsp7bhn.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-ClGibmMi.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-QfEC19vE.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-g7L0m-Z5.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-pVTD93vq.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.js +1 -0
- package/dist/plugin-sdk/channel-activity-BGK-Bj2_.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-BRHvpV0C.js +1 -0
- package/dist/plugin-sdk/channel-activity-CKfWFchu.js +1 -0
- package/dist/plugin-sdk/channel-activity-CLUi31fX.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CVOp-PL4.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CgXnZ0GC.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CmYpOPAn.js +1 -0
- package/dist/plugin-sdk/channel-activity-CwaMf9qT.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D5D5tBWf.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D7tpmatp.js +1 -0
- package/dist/plugin-sdk/channel-activity-DpxSOlXF.js +1 -0
- package/dist/plugin-sdk/channel-activity-spvDzlTl.js +1 -0
- package/dist/plugin-sdk/channel-web-4ZQVqsrt.js +1 -0
- package/dist/plugin-sdk/channel-web-9zn1Itpg.cjs +1 -0
- package/dist/plugin-sdk/channel-web-BrB00HKH.js +1 -0
- package/dist/plugin-sdk/channel-web-DN5La-Ol.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-5lStNoKW.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-C8wnXqNa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-Cnr6PvIw.js +1 -0
- package/dist/plugin-sdk/commands-registry-CtYCWfuM.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-D2gv242l.js +1 -0
- package/dist/plugin-sdk/commands-registry-DI2vPscP.js +1 -0
- package/dist/plugin-sdk/commands-registry-DcBvmwSU.js +1 -0
- package/dist/plugin-sdk/commands-registry-DkUhCIDk.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-DsMbmie-.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-MCsWR5Vf.js +1 -0
- package/dist/plugin-sdk/commands-registry-SHZVq_qf.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-kRjFifgj.js +1 -0
- package/dist/plugin-sdk/common-B4iFXuoZ.cjs +1 -0
- package/dist/plugin-sdk/common-B6fDMl_i.js +1 -0
- package/dist/plugin-sdk/compat.cjs +1 -0
- package/dist/plugin-sdk/compat.js +1 -0
- package/dist/plugin-sdk/config-ByA2hluR.js +1 -0
- package/dist/plugin-sdk/config-rBz8C_Hi.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.js +1 -0
- package/dist/plugin-sdk/core.cjs +1 -0
- package/dist/plugin-sdk/core.js +1 -0
- package/dist/plugin-sdk/deliver-B0fB4hAV.js +1 -0
- package/dist/plugin-sdk/deliver-BOLmjIJ3.js +1 -0
- package/dist/plugin-sdk/deliver-BrfVwkYz.cjs +1 -0
- package/dist/plugin-sdk/deliver-C-tChWTI.cjs +1 -0
- package/dist/plugin-sdk/deliver-CjQPkWS-.cjs +1 -0
- package/dist/plugin-sdk/deliver-D1P0FNTu.js +1 -0
- package/dist/plugin-sdk/deliver-DCrO9mvv.cjs +1 -0
- package/dist/plugin-sdk/deliver-DQLekoj2.cjs +1 -0
- package/dist/plugin-sdk/deliver-DkfCVM78.js +1 -0
- package/dist/plugin-sdk/deliver-Dkh3lqXR.js +1 -0
- package/dist/plugin-sdk/deliver-DsFtXFyr.cjs +1 -0
- package/dist/plugin-sdk/deliver-vYe_sYOL.js +1 -0
- package/dist/plugin-sdk/device-pair.cjs +1 -0
- package/dist/plugin-sdk/device-pair.js +1 -0
- package/dist/plugin-sdk/diagnostic-8iX73nz_.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CLUtpxAp.js +1 -0
- package/dist/plugin-sdk/diagnostic-CVS4k9hh.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CkePwN5F.js +1 -0
- package/dist/plugin-sdk/diagnostic-Cu1PGj0E.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D0oCfBju.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D7A9cQYf.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-DGLX0zXU.js +1 -0
- package/dist/plugin-sdk/diagnostic-DXscFT8t.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-Efe4b81B.js +1 -0
- package/dist/plugin-sdk/diagnostic-EqHqw9xo.js +1 -0
- package/dist/plugin-sdk/diagnostic-vsjHZ_fY.js +1 -0
- package/dist/plugin-sdk/diagnostics-otel.cjs +1 -0
- package/dist/plugin-sdk/diagnostics-otel.js +1 -0
- package/dist/plugin-sdk/diffs.cjs +1 -0
- package/dist/plugin-sdk/diffs.js +1 -0
- package/dist/plugin-sdk/discord.cjs +1 -0
- package/dist/plugin-sdk/discord.js +1 -0
- package/dist/plugin-sdk/dispatch-5v3v8zzA.js +1 -0
- package/dist/plugin-sdk/dispatch-B6UbZCpL.cjs +1 -0
- package/dist/plugin-sdk/dispatch-BYlcmJ9u.js +1 -0
- package/dist/plugin-sdk/dispatch-C2YTqGlf.js +1 -0
- package/dist/plugin-sdk/dispatch-CNy3g9ma.cjs +1 -0
- package/dist/plugin-sdk/dispatch-DCSwqteL.js +1 -0
- package/dist/plugin-sdk/dispatch-DHbSBeFJ.js +1 -0
- package/dist/plugin-sdk/dispatch-DK5ub8qa.cjs +1 -0
- package/dist/plugin-sdk/dispatch-SWyfAZT0.cjs +1 -0
- package/dist/plugin-sdk/dispatch-mR2vLkGa.cjs +1 -0
- package/dist/plugin-sdk/feishu.cjs +1 -0
- package/dist/plugin-sdk/feishu.js +1 -0
- package/dist/plugin-sdk/fetch-7Iq9POda.js +1 -0
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +1 -0
- package/dist/plugin-sdk/fetch-B27H-XCf.js +1 -0
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +1 -0
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +1 -0
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +1 -0
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +1 -0
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +1 -0
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +1 -0
- package/dist/plugin-sdk/fetch-BtZY623f.js +1 -0
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +1 -0
- package/dist/plugin-sdk/fetch-C3LEMysf.js +1 -0
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +1 -0
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +1 -0
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +1 -0
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +1 -0
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +1 -0
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +1 -0
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +1 -0
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +1 -0
- package/dist/plugin-sdk/fetch-guard-8I7EHbDM.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CIJUkBIL.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CY03i4gu.js +1 -0
- package/dist/plugin-sdk/fetch-guard-Cz-cgYmR.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DB85MORy.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DE9BslxX.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DLNzldn9.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DSvAbvSx.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DXe8oqEE.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DY9jpsXo.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DbOZYxyN.js +1 -0
- package/dist/plugin-sdk/fetch-guard-_fifU0fX.js +1 -0
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.js +1 -0
- package/dist/plugin-sdk/googlechat.cjs +1 -0
- package/dist/plugin-sdk/googlechat.js +1 -0
- package/dist/plugin-sdk/image-B6HEHWlJ.js +1 -0
- package/dist/plugin-sdk/image-Bte8cr4F.js +1 -0
- package/dist/plugin-sdk/image-BxafJgQ6.cjs +1 -0
- package/dist/plugin-sdk/image-CDI5SqeR.js +1 -0
- package/dist/plugin-sdk/image-CTgwucug.cjs +1 -0
- package/dist/plugin-sdk/image-CWnsS03L.js +1 -0
- package/dist/plugin-sdk/image-CoksjGBL.cjs +1 -0
- package/dist/plugin-sdk/image-CuOIoxl2.cjs +1 -0
- package/dist/plugin-sdk/image-DJyEMzkq.cjs +1 -0
- package/dist/plugin-sdk/image-DegWnAZU.cjs +1 -0
- package/dist/plugin-sdk/image-TCSQZpr6.js +1 -0
- package/dist/plugin-sdk/image-aG-5S1vd.js +1 -0
- package/dist/plugin-sdk/imessage.cjs +1 -0
- package/dist/plugin-sdk/imessage.js +1 -0
- package/dist/plugin-sdk/index.cjs +1 -0
- package/dist/plugin-sdk/index.js +1 -0
- package/dist/plugin-sdk/ir-8rDh7div.js +1 -0
- package/dist/plugin-sdk/ir-Bh6lKGdS.js +1 -0
- package/dist/plugin-sdk/ir-C3VNqnc2.cjs +1 -0
- package/dist/plugin-sdk/ir-CZOtKajq.cjs +1 -0
- package/dist/plugin-sdk/ir-CveCWs8q.cjs +1 -0
- package/dist/plugin-sdk/ir-DAxY-7c1.cjs +1 -0
- package/dist/plugin-sdk/ir-DSuLr2UE.cjs +1 -0
- package/dist/plugin-sdk/ir-DanxCjD-.cjs +1 -0
- package/dist/plugin-sdk/ir-Dgc6qZMX.js +1 -0
- package/dist/plugin-sdk/ir-OBi5zaEW.js +1 -0
- package/dist/plugin-sdk/ir-hQ6EW92h.js +1 -0
- package/dist/plugin-sdk/ir-ynWQeZD9.js +1 -0
- package/dist/plugin-sdk/irc.cjs +1 -0
- package/dist/plugin-sdk/irc.js +1 -0
- package/dist/plugin-sdk/keyed-async-queue.cjs +1 -0
- package/dist/plugin-sdk/keyed-async-queue.js +1 -0
- package/dist/plugin-sdk/line.cjs +1 -0
- package/dist/plugin-sdk/line.js +1 -0
- package/dist/plugin-sdk/llm-task.cjs +1 -0
- package/dist/plugin-sdk/llm-task.js +1 -0
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +1 -0
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +1 -0
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +1 -0
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +1 -0
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +1 -0
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +1 -0
- package/dist/plugin-sdk/lobster.cjs +1 -0
- package/dist/plugin-sdk/lobster.js +1 -0
- package/dist/plugin-sdk/local-roots-5udQUs81.js +1 -0
- package/dist/plugin-sdk/local-roots-BmhNPIJm.cjs +1 -0
- package/dist/plugin-sdk/local-roots-C5UoE741.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Ca8KoAAp.js +1 -0
- package/dist/plugin-sdk/local-roots-CeAYfmPb.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Cu7YCpql.cjs +1 -0
- package/dist/plugin-sdk/local-roots-D0yN794S.js +1 -0
- package/dist/plugin-sdk/local-roots-D4i3H0UG.cjs +1 -0
- package/dist/plugin-sdk/local-roots-DGe-SRNu.js +1 -0
- package/dist/plugin-sdk/local-roots-bWA2msT0.js +1 -0
- package/dist/plugin-sdk/local-roots-tee85Q-1.js +1 -0
- package/dist/plugin-sdk/local-roots-wTkpE7go.cjs +1 -0
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +1 -0
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +1 -0
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +1 -0
- package/dist/plugin-sdk/logger-BtrWb0dj.js +1 -0
- package/dist/plugin-sdk/logger-C210xuWx.js +1 -0
- package/dist/plugin-sdk/logger-DJGHvDbX.js +1 -0
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +1 -0
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +1 -0
- package/dist/plugin-sdk/logger-DwWqfo66.js +1 -0
- package/dist/plugin-sdk/logger-vBDTZWl3.js +1 -0
- package/dist/plugin-sdk/login-B5IwNcl4.cjs +1 -0
- package/dist/plugin-sdk/login-BIbt7ZL_.js +1 -0
- package/dist/plugin-sdk/login-CxnDKwXC.js +1 -0
- package/dist/plugin-sdk/login-D5iTWowo.cjs +1 -0
- package/dist/plugin-sdk/login-DHE1rzB1.js +1 -0
- package/dist/plugin-sdk/login-DIPBcPQc.cjs +1 -0
- package/dist/plugin-sdk/login-DtDOozuU.js +1 -0
- package/dist/plugin-sdk/login-UrWNtI80.cjs +1 -0
- package/dist/plugin-sdk/login-VviMkBU2.js +1 -0
- package/dist/plugin-sdk/login-jQwwt6C-.js +1 -0
- package/dist/plugin-sdk/login-mGjCzJzb.cjs +1 -0
- package/dist/plugin-sdk/login-pZnnpj38.cjs +1 -0
- package/dist/plugin-sdk/login-qr-BexuTIDJ.cjs +1 -0
- package/dist/plugin-sdk/login-qr-C366Qlh-.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CQY4ty0o.js +1 -0
- package/dist/plugin-sdk/login-qr-CSabEb-n.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CUgNKijx.js +1 -0
- package/dist/plugin-sdk/login-qr-C_LEw1Bi.js +1 -0
- package/dist/plugin-sdk/login-qr-CcPvldsG.js +1 -0
- package/dist/plugin-sdk/login-qr-CnNGKwDR.cjs +1 -0
- package/dist/plugin-sdk/login-qr-DQm50pXk.js +1 -0
- package/dist/plugin-sdk/login-qr-DayvAWkx.js +1 -0
- package/dist/plugin-sdk/login-qr-eodIsL9V.cjs +1 -0
- package/dist/plugin-sdk/login-qr-yIJE7MmY.cjs +1 -0
- package/dist/plugin-sdk/manager-932XljTT.js +1 -0
- package/dist/plugin-sdk/manager-CGHd5p2T.js +1 -0
- package/dist/plugin-sdk/manager-CbGA_JDa.js +1 -0
- package/dist/plugin-sdk/manager-CdD7HaGW.cjs +1 -0
- package/dist/plugin-sdk/manager-CmAH_a7A.cjs +1 -0
- package/dist/plugin-sdk/manager-DIS4ywpb.cjs +1 -0
- package/dist/plugin-sdk/manager-DQ2C-2IU.cjs +1 -0
- package/dist/plugin-sdk/manager-DdvFnsT7.cjs +1 -0
- package/dist/plugin-sdk/manager-DfdDglld.js +1 -0
- package/dist/plugin-sdk/manager-MR9stU_p.js +1 -0
- package/dist/plugin-sdk/manager-WwW37IUu.js +1 -0
- package/dist/plugin-sdk/manager-gE9187gu.cjs +1 -0
- package/dist/plugin-sdk/matrix.cjs +1 -0
- package/dist/plugin-sdk/matrix.js +1 -0
- package/dist/plugin-sdk/mattermost.cjs +1 -0
- package/dist/plugin-sdk/mattermost.js +1 -0
- package/dist/plugin-sdk/memory-core.cjs +1 -0
- package/dist/plugin-sdk/memory-core.js +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.js +1 -0
- package/dist/plugin-sdk/model-auth-BpS4IWDi.cjs +1 -0
- package/dist/plugin-sdk/model-auth-BwajGuoF.cjs +1 -0
- package/dist/plugin-sdk/model-auth-C1YL9HcW.js +1 -0
- package/dist/plugin-sdk/model-auth-Cc-8H6Cu.js +1 -0
- package/dist/plugin-sdk/model-auth-Cw3fuhm_.js +1 -0
- package/dist/plugin-sdk/model-auth-CycDtQl-.js +1 -0
- package/dist/plugin-sdk/model-auth-D-7xiXhK.cjs +1 -0
- package/dist/plugin-sdk/model-auth-TFUxaK0f.cjs +1 -0
- package/dist/plugin-sdk/model-selection-BADTZM9n.cjs +1 -0
- package/dist/plugin-sdk/model-selection-DUAudCtL.js +1 -0
- package/dist/plugin-sdk/msteams.cjs +1 -0
- package/dist/plugin-sdk/msteams.js +1 -0
- package/dist/plugin-sdk/nextcloud-talk.cjs +1 -0
- package/dist/plugin-sdk/nextcloud-talk.js +1 -0
- package/dist/plugin-sdk/nostr.cjs +1 -0
- package/dist/plugin-sdk/nostr.js +1 -0
- package/dist/plugin-sdk/outbound-2Lo6mZEY.js +1 -0
- package/dist/plugin-sdk/outbound-9XFlZzaF.cjs +1 -0
- package/dist/plugin-sdk/outbound-BlWsUmjQ.js +1 -0
- package/dist/plugin-sdk/outbound-Bs2rUcWZ.cjs +1 -0
- package/dist/plugin-sdk/outbound-C18nEOFP.js +1 -0
- package/dist/plugin-sdk/outbound-CW3o4Eng.cjs +1 -0
- package/dist/plugin-sdk/outbound-CzsdW5sy.js +1 -0
- package/dist/plugin-sdk/outbound-DcP22VOo.cjs +1 -0
- package/dist/plugin-sdk/outbound-QhOJAEO8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-1pf06Oiu.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-B8-ZVX2i.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BDwI_tn0.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BXhbJils.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Bgf1pCh8.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-COgf85S8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CfN9OvMC.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-CftilZWd.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Cujprd6T.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CvSHb9ci.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-DQYtdTUw.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-FqWC0WJx.cjs +1 -0
- package/dist/plugin-sdk/outbound-dTvIiFIZ.js +1 -0
- package/dist/plugin-sdk/outbound-fZ1WJGfe.cjs +1 -0
- package/dist/plugin-sdk/outbound-oHoWYWxf.js +1 -0
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +1 -0
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +1 -0
- package/dist/plugin-sdk/paths-BpQOWYiT.js +1 -0
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +1 -0
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +1 -0
- package/dist/plugin-sdk/paths-CXgWvWAM.js +1 -0
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +1 -0
- package/dist/plugin-sdk/paths-CnHSNSeR.js +1 -0
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +1 -0
- package/dist/plugin-sdk/paths-CtrEseGU.js +1 -0
- package/dist/plugin-sdk/paths-D55o_j8-.js +1 -0
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +1 -0
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +1 -0
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +1 -0
- package/dist/plugin-sdk/paths-DhSjTRMz.js +1 -0
- package/dist/plugin-sdk/paths-Do0djuaj.js +1 -0
- package/dist/plugin-sdk/paths-J4JUiRsa.js +1 -0
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +1 -0
- package/dist/plugin-sdk/paths-piJASC5k.js +1 -0
- package/dist/plugin-sdk/paths-rO4ehkyU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-B9boErNZ.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BJ8wTgFH.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bb2vCP6M.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bor7jHYd.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BrTw1qE2.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BuEMyAsU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-CV9NTjC4.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5tLf04u.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5xlUS2J.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DGoPUzBj.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DMrqvV1O.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DoY7qnlI.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Dqq9Vm8o.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-zCuISPPq.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-4238P8NF.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BEoqzgFe.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BGPjibRD.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BJ_amISU.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BX2r_qPT.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CGLHFxSr.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsNn_Lv8.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsiKBTHg.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CuXQQk4F.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DNatrz-3.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-PApjB0tY.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-xsXDBYNq.js +1 -0
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +1 -0
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +1 -0
- package/dist/plugin-sdk/polls-CSKMbBIS.js +1 -0
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +1 -0
- package/dist/plugin-sdk/polls-PGxiE05J.js +1 -0
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-B765haXA.js +1 -0
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +1 -0
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +1 -0
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +1 -0
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +1 -0
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-B0_rvdfF.js +1 -0
- package/dist/plugin-sdk/pw-ai-BqdrA15F.js +1 -0
- package/dist/plugin-sdk/pw-ai-CDzxu5B3.js +1 -0
- package/dist/plugin-sdk/pw-ai-CJIogpwF.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CL_gU5PJ.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-Ca4aZTaG.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CrfYxLI8.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DCiFlwP8.js +1 -0
- package/dist/plugin-sdk/pw-ai-DSqXNmNZ.js +1 -0
- package/dist/plugin-sdk/pw-ai-Dh55xTz1.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DxAvipyK.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-U9nPHH-0.js +1 -0
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +1 -0
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +1 -0
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +1 -0
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +1 -0
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +1 -0
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +1 -0
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +1 -0
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +1 -0
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +1 -0
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.js +1 -0
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +1 -0
- package/dist/plugin-sdk/render-CBsnn-2A.js +1 -0
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +1 -0
- package/dist/plugin-sdk/render-DGmfCIRG.js +1 -0
- package/dist/plugin-sdk/render-DhTJXP1U.js +1 -0
- package/dist/plugin-sdk/render-Djx15dPh.js +1 -0
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +1 -0
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +1 -0
- package/dist/plugin-sdk/reply-0zCEbT4w.cjs +1 -0
- package/dist/plugin-sdk/reply-D-f2bbXy.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-CrQGbaua.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-H7Q9HcfW.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-MS6Xpp17.cjs +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-cDxjy3TL.cjs +1 -0
- package/dist/plugin-sdk/send-3VNTSIhr.js +1 -0
- package/dist/plugin-sdk/send-61GHLNYP.cjs +1 -0
- package/dist/plugin-sdk/send-6q4owAw0.js +1 -0
- package/dist/plugin-sdk/send-A2s5sPTd.js +1 -0
- package/dist/plugin-sdk/send-B2qa7CSk.js +1 -0
- package/dist/plugin-sdk/send-B3aEYvqG.cjs +1 -0
- package/dist/plugin-sdk/send-BAoqP09M.cjs +1 -0
- package/dist/plugin-sdk/send-BNBJ4CF8.js +1 -0
- package/dist/plugin-sdk/send-BTE2rI1E.js +1 -0
- package/dist/plugin-sdk/send-BlWuQHYB.js +1 -0
- package/dist/plugin-sdk/send-Bnvt7ZUE.cjs +1 -0
- package/dist/plugin-sdk/send-Bq6Mqs9G.cjs +1 -0
- package/dist/plugin-sdk/send-Bq787fi_.js +1 -0
- package/dist/plugin-sdk/send-BrAHLYBR.js +1 -0
- package/dist/plugin-sdk/send-Bt2eFBk2.js +1 -0
- package/dist/plugin-sdk/send-C4ZFbUux.js +1 -0
- package/dist/plugin-sdk/send-C4cyMW4S.cjs +1 -0
- package/dist/plugin-sdk/send-C8f5H4XV.cjs +1 -0
- package/dist/plugin-sdk/send-CDwTrbgT.cjs +1 -0
- package/dist/plugin-sdk/send-CEfs0Fsr.js +1 -0
- package/dist/plugin-sdk/send-CFuJjCNB.cjs +1 -0
- package/dist/plugin-sdk/send-CJGLeSJ8.cjs +1 -0
- package/dist/plugin-sdk/send-CL0W7jLW.js +1 -0
- package/dist/plugin-sdk/send-CLl490Gb.cjs +1 -0
- package/dist/plugin-sdk/send-CQtITZ7k.cjs +1 -0
- package/dist/plugin-sdk/send-CSGh_GVr.cjs +1 -0
- package/dist/plugin-sdk/send-CicLiXB4.js +1 -0
- package/dist/plugin-sdk/send-Cm7bEwx-.cjs +1 -0
- package/dist/plugin-sdk/send-CmO9z2-b.js +1 -0
- package/dist/plugin-sdk/send-Co_Wy2kT.cjs +1 -0
- package/dist/plugin-sdk/send-Cox_iyYB.cjs +1 -0
- package/dist/plugin-sdk/send-CuX4LcJ3.cjs +1 -0
- package/dist/plugin-sdk/send-CxMiTtxI.cjs +1 -0
- package/dist/plugin-sdk/send-CyyzWwDr.js +1 -0
- package/dist/plugin-sdk/send-D-HZnehy.cjs +1 -0
- package/dist/plugin-sdk/send-D-qD7BCb.js +1 -0
- package/dist/plugin-sdk/send-D3imkSlz.cjs +1 -0
- package/dist/plugin-sdk/send-D5UwpCoU.cjs +1 -0
- package/dist/plugin-sdk/send-D75OGJco.js +1 -0
- package/dist/plugin-sdk/send-DB4i1kUy.cjs +1 -0
- package/dist/plugin-sdk/send-DBjzdBda.cjs +1 -0
- package/dist/plugin-sdk/send-DPgRTM8s.js +1 -0
- package/dist/plugin-sdk/send-DPpBLiL4.js +1 -0
- package/dist/plugin-sdk/send-DV_afQnj.cjs +1 -0
- package/dist/plugin-sdk/send-DWuChr46.js +1 -0
- package/dist/plugin-sdk/send-DZ4szmEa.cjs +1 -0
- package/dist/plugin-sdk/send-DZr98eqE.cjs +1 -0
- package/dist/plugin-sdk/send-D_1K0zmx.cjs +1 -0
- package/dist/plugin-sdk/send-DaLB9Lca.js +1 -0
- package/dist/plugin-sdk/send-De4qiprb.js +1 -0
- package/dist/plugin-sdk/send-DeU-T5ps.js +1 -0
- package/dist/plugin-sdk/send-DtjJM0LO.js +1 -0
- package/dist/plugin-sdk/send-DvDCmTQf.js +1 -0
- package/dist/plugin-sdk/send-EvcsiFBC.cjs +1 -0
- package/dist/plugin-sdk/send-GuISe9C82.js +1 -0
- package/dist/plugin-sdk/send-IoGcE0w2.js +1 -0
- package/dist/plugin-sdk/send-JVdUTsN1.cjs +1 -0
- package/dist/plugin-sdk/send-NpNVFRmY.js +1 -0
- package/dist/plugin-sdk/send-XMOZsJcs.js +1 -0
- package/dist/plugin-sdk/send-h--iKoQE.cjs +1 -0
- package/dist/plugin-sdk/session-8BcB905y.cjs +1 -0
- package/dist/plugin-sdk/session-B2oURX5K.js +1 -0
- package/dist/plugin-sdk/session-BJhNqIOi.js +1 -0
- package/dist/plugin-sdk/session-BRgGsw96.cjs +1 -0
- package/dist/plugin-sdk/session-Be_7rXAz.js +1 -0
- package/dist/plugin-sdk/session-C66IXbE-.js +1 -0
- package/dist/plugin-sdk/session-CCYDbcyV.js +1 -0
- package/dist/plugin-sdk/session-CHu3C2m0.cjs +1 -0
- package/dist/plugin-sdk/session-DUlmK2IL.cjs +1 -0
- package/dist/plugin-sdk/session-DxTRZTnu.js +1 -0
- package/dist/plugin-sdk/session-DzhI0nj-.cjs +1 -0
- package/dist/plugin-sdk/session-WRCBgAzG.cjs +1 -0
- package/dist/plugin-sdk/sessions-DxXXAfdI.js +1 -0
- package/dist/plugin-sdk/sessions-Dz5JUL8j.cjs +1 -0
- package/dist/plugin-sdk/signal.cjs +1 -0
- package/dist/plugin-sdk/signal.js +1 -0
- package/dist/plugin-sdk/skill-commands-B4wI8ETo.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BoTeA376.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BwrYJu7Z.js +1 -0
- package/dist/plugin-sdk/skill-commands-BzkMuA58.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CIAf9cWN.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CKc7JO_c.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-Cvb6oXym.js +1 -0
- package/dist/plugin-sdk/skill-commands-DWDtyCtB.js +1 -0
- package/dist/plugin-sdk/skill-commands-Hmuw0PPK.js +1 -0
- package/dist/plugin-sdk/skill-commands-KyN0FGaC.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-KzwEqk5p.js +1 -0
- package/dist/plugin-sdk/skill-commands-Ny38ZFIC.js +1 -0
- package/dist/plugin-sdk/slack.cjs +1 -0
- package/dist/plugin-sdk/slack.js +1 -0
- package/dist/plugin-sdk/synology-chat.cjs +1 -0
- package/dist/plugin-sdk/synology-chat.js +1 -0
- package/dist/plugin-sdk/tables-BIDWwpX8.js +1 -0
- package/dist/plugin-sdk/tables-Bk8lHaPx.cjs +1 -0
- package/dist/plugin-sdk/tables-BlNIkMV8.js +1 -0
- package/dist/plugin-sdk/tables-Bp0a2WRP.cjs +1 -0
- package/dist/plugin-sdk/tables-BtVUf77b.cjs +1 -0
- package/dist/plugin-sdk/tables-C4j5Bar_.js +1 -0
- package/dist/plugin-sdk/tables-CZGtYzDC.cjs +1 -0
- package/dist/plugin-sdk/tables-CnrHab5d.cjs +1 -0
- package/dist/plugin-sdk/tables-DtslIPYw.js +1 -0
- package/dist/plugin-sdk/tables-NrdtIJGp.cjs +1 -0
- package/dist/plugin-sdk/tables-XYb3T-vE.js +1 -0
- package/dist/plugin-sdk/tables-lbv-0tl3.js +1 -0
- package/dist/plugin-sdk/target-errors-9cdJA1L2.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BEkhKWCq.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BZRN-lPd.js +1 -0
- package/dist/plugin-sdk/target-errors-BrwqillR.cjs +1 -0
- package/dist/plugin-sdk/target-errors-Buo5pfom.js +1 -0
- package/dist/plugin-sdk/target-errors-CFzzcffg.js +1 -0
- package/dist/plugin-sdk/target-errors-DFmK5loi.js +1 -0
- package/dist/plugin-sdk/target-errors-DXqwykNX.js +1 -0
- package/dist/plugin-sdk/target-errors-Dd6CopYF.cjs +1 -0
- package/dist/plugin-sdk/target-errors-DeNJ10ks.cjs +1 -0
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +1 -0
- package/dist/plugin-sdk/targets-BSkiizml.js +1 -0
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +1 -0
- package/dist/plugin-sdk/targets-CL5fYQi7.js +1 -0
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +1 -0
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +1 -0
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +1 -0
- package/dist/plugin-sdk/targets-CrkJkzil.js +1 -0
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +1 -0
- package/dist/plugin-sdk/targets-D8HTxbo4.js +1 -0
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +1 -0
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +1 -0
- package/dist/plugin-sdk/targets-X28mff4s.cjs +1 -0
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +1 -0
- package/dist/plugin-sdk/telegram.cjs +1 -0
- package/dist/plugin-sdk/telegram.js +1 -0
- package/dist/plugin-sdk/test-utils.cjs +1 -0
- package/dist/plugin-sdk/test-utils.js +1 -0
- package/dist/plugin-sdk/tlon.cjs +1 -0
- package/dist/plugin-sdk/tlon.js +1 -0
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +1 -0
- package/dist/plugin-sdk/tokens-B20KNIDD.js +1 -0
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +1 -0
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +1 -0
- package/dist/plugin-sdk/tokens-BqABmXSe.js +1 -0
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +1 -0
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +1 -0
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +1 -0
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +1 -0
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +1 -0
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +1 -0
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +1 -0
- package/dist/plugin-sdk/twitch.cjs +1 -0
- package/dist/plugin-sdk/twitch.js +1 -0
- package/dist/plugin-sdk/utils-BJtJR72k.js +1 -0
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +1 -0
- package/dist/plugin-sdk/voice-call.cjs +1 -0
- package/dist/plugin-sdk/voice-call.js +1 -0
- package/dist/plugin-sdk/web-B-QDcVRv.cjs +1 -0
- package/dist/plugin-sdk/web-B2PwjHsu.cjs +1 -0
- package/dist/plugin-sdk/web-BdnQzLgF.js +1 -0
- package/dist/plugin-sdk/web-C9T7tf6w.js +1 -0
- package/dist/plugin-sdk/web-CODD4ksc.cjs +1 -0
- package/dist/plugin-sdk/web-CkdCvvR-.js +1 -0
- package/dist/plugin-sdk/web-_tj8xNZE.js +1 -0
- package/dist/plugin-sdk/web-pcTha_l7.cjs +1 -0
- package/dist/plugin-sdk/weixin.cjs +1 -0
- package/dist/plugin-sdk/weixin.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bhz2j1uz.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bm2UyRYg.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bolz0jl5.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CJ3LDpaG.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CL1Gmkb0.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-D-bZRT7s.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DSGTTE8M.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DjQxgMpW.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DrPBBi5t.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DtK657CZ.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Xwev51_N.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-m7vLtNAA.js +1 -0
- package/dist/plugin-sdk/whatsapp.cjs +1 -0
- package/dist/plugin-sdk/whatsapp.js +1 -0
- package/dist/plugin-sdk/zalo.cjs +1 -0
- package/dist/plugin-sdk/zalo.js +1 -0
- package/dist/plugin-sdk/zalouser.cjs +1 -0
- package/dist/plugin-sdk/zalouser.js +1 -0
- package/dist/plugins-CYLrFT4h.js +1 -0
- package/dist/plugins-DNlgeTTc.js +1 -0
- package/dist/plugins-cli-BbjMbzJU.js +1 -0
- package/dist/plugins-cli-BiVMAr5T.js +1 -0
- package/dist/polls-BIVz6a4F.js +1 -0
- package/dist/polls-Bh5wc9-6.js +1 -0
- package/dist/polls-C_XSFz3d.js +1 -0
- package/dist/polls-DKJOFSzJ.js +1 -0
- package/dist/ports-B0XdGTfS.js +1 -0
- package/dist/ports-BR0PLRtq.js +1 -0
- package/dist/probe-auth-BMA0yM94.js +1 -0
- package/dist/probe-auth-VI96zmTK.js +1 -0
- package/dist/profile-utils-CWmra1aY.js +1 -0
- package/dist/program-BrAZTwFr.js +1 -0
- package/dist/program-context-B9ydtPje.js +1 -0
- package/dist/program-context-CH9p6anW.js +1 -0
- package/dist/progress-LNttnI-y.js +1 -0
- package/dist/progress-d1m2sqR1.js +1 -0
- package/dist/prompt-select-styled-BeJNbzSa.js +1 -0
- package/dist/prompt-select-styled-DIOWLjl0.js +1 -0
- package/dist/prompt-style-BThRSQJR.js +1 -0
- package/dist/prompt-style-CXKekIBY.js +1 -0
- package/dist/prompts-CMzglboN.js +1 -0
- package/dist/prompts-wv-lfVrJ.js +1 -0
- package/dist/provider-auth-helpers-1lU43eTW.js +1 -0
- package/dist/provider-auth-helpers-pBVCjBj9.js +1 -0
- package/dist/provider-env-vars-D8p6Ohpj.js +1 -0
- package/dist/provider-env-vars-Dt0Q29Su.js +1 -0
- package/dist/proxy-env-BNhTHkd_.js +1 -0
- package/dist/proxy-env-DcmW_urA.js +1 -0
- package/dist/proxy-env-DrC3TIGh.js +1 -0
- package/dist/proxy-env-FJr5nlvs.js +1 -0
- package/dist/proxy-fetch-BADsUK4d.js +1 -0
- package/dist/proxy-fetch-BZ9O8Dvj.js +1 -0
- package/dist/proxy-fetch-DnjU1fEB.js +1 -0
- package/dist/proxy-fetch-gWETR3cl.js +1 -0
- package/dist/push-apns-BGUOmD5M.js +1 -0
- package/dist/push-apns-B_a2MBJ4.js +1 -0
- package/dist/pw-ai-C-Ffkwai.js +1 -0
- package/dist/pw-ai-CV1H1Vrs.js +1 -0
- package/dist/pw-ai-D_MB1lrR.js +1 -0
- package/dist/pw-ai-_l9lVice.js +1 -0
- package/dist/qmd-manager-C_e04BNg.js +1 -0
- package/dist/qmd-manager-DSQ_mDCl.js +1 -0
- package/dist/qmd-manager-DcBYbt_V.js +1 -0
- package/dist/qmd-manager-NLI0R6kp.js +1 -0
- package/dist/qr-cli-3aG6CB6K.js +1 -0
- package/dist/qr-cli-fiJxD5M4.js +1 -0
- package/dist/query-expansion-0OxEb1Io.js +1 -0
- package/dist/query-expansion-BUUx_oWg.js +1 -0
- package/dist/query-expansion-r_iXkNzt.js +1 -0
- package/dist/reaction-level-DVPHL14p.js +1 -0
- package/dist/reaction-message-id-BEEe7X3D.js +1 -0
- package/dist/read-only-account-inspect-DBwAwB3_.js +1 -0
- package/dist/redact-3_CiXMY6.js +1 -0
- package/dist/redact-CnRxK70G.js +1 -0
- package/dist/register.agent-CX78s_X9.js +1 -0
- package/dist/register.agent-DLDKQENq.js +1 -0
- package/dist/register.backup-DkFoTcuT.js +1 -0
- package/dist/register.backup-PzF5rmeU.js +1 -0
- package/dist/register.configure-BA5u9hT3.js +1 -0
- package/dist/register.configure-BhPtf3Qo.js +1 -0
- package/dist/register.maintenance-BhsBepKS.js +1 -0
- package/dist/register.maintenance-r_MzNK3-.js +1 -0
- package/dist/register.message-CTF--Z2a.js +1 -0
- package/dist/register.message-jcZ875be.js +1 -0
- package/dist/register.onboard-C3yL50_c.js +1 -0
- package/dist/register.onboard-CNwnStUk.js +1 -0
- package/dist/register.setup-BRJMzgfU.js +1 -0
- package/dist/register.setup-BvsS-zgm.js +1 -0
- package/dist/register.status-health-sessions-DVc__2pc.js +1 -0
- package/dist/register.status-health-sessions-Dqmkw820.js +1 -0
- package/dist/register.subclis-D-24j83X.js +1 -0
- package/dist/registry-BptzrW8D.js +1 -0
- package/dist/registry-hFAtCSWG.js +1 -0
- package/dist/render-BXEUPIHe.js +1 -0
- package/dist/render-CBsnn-2A.js +1 -0
- package/dist/render-D8OWO2hT.js +1 -0
- package/dist/render-DrrPmnMI.js +1 -0
- package/dist/reply-l-Y47HP4.js +1 -0
- package/dist/restart-CHXEHdSC.js +1 -0
- package/dist/rpc-B3ReBNXG.js +1 -0
- package/dist/rpc-DumDLalJ.js +1 -0
- package/dist/run-main-B_YBE_TN.js +1 -0
- package/dist/runtime-BC5Ep2pJ.js +1 -0
- package/dist/runtime-Dlg2-Omq.js +1 -0
- package/dist/runtime-guard-DFYBaYZS.js +1 -0
- package/dist/runtime-guard-DX2Ie4ri.js +1 -0
- package/dist/runtime-status-CqFBmdRd.js +1 -0
- package/dist/runtime-status-DszMjvJK.js +1 -0
- package/dist/runtime-web-tools-D8fms06-.js +1 -0
- package/dist/runtime-web-tools-bz76ZaRc.js +1 -0
- package/dist/sandbox-cli-BDorUBm-.js +1 -0
- package/dist/sandbox-cli-Bq40R5Vs.js +1 -0
- package/dist/scan-paths-C13EseXp.js +1 -0
- package/dist/scan-paths-CWtvWW40.js +1 -0
- package/dist/search-manager-Bp9x20r6.js +1 -0
- package/dist/secret-file-C7JffiM_.js +1 -0
- package/dist/secret-file-D60EFEOe.js +1 -0
- package/dist/secret-file-DuWm26jS.js +1 -0
- package/dist/secrets-cli-Bo6PC32U.js +1 -0
- package/dist/secrets-cli-CoXJv3Jp.js +1 -0
- package/dist/secure-random-D7JQgiK-.js +1 -0
- package/dist/security-cli-CgZL2KKh.js +1 -0
- package/dist/security-cli-DVOfhwAP.js +1 -0
- package/dist/send-B7sHR38c2.js +1 -0
- package/dist/send-Bx2Qr7VH.js +1 -0
- package/dist/send-C-AP01PR.js +1 -0
- package/dist/send-C1CJ-GHU.js +1 -0
- package/dist/send-C48Y9SAq.js +1 -0
- package/dist/send-CVplsJpw.js +1 -0
- package/dist/send-CW81y5Wz.js +1 -0
- package/dist/send-CYgHok1p.js +1 -0
- package/dist/send-Cgd_VJHR.js +1 -0
- package/dist/send-Chz0YMoJ.js +1 -0
- package/dist/send-D9hVVn7p2.js +1 -0
- package/dist/send-DKrzj_Ts.js +1 -0
- package/dist/send-DRLSCwCk.js +1 -0
- package/dist/send-DavpkzhH.js +1 -0
- package/dist/send-DbeEC2a3.js +1 -0
- package/dist/send-DkiKKUkt.js +1 -0
- package/dist/send-DlfVd5mL.js +1 -0
- package/dist/send-JYgM9Sm-2.js +1 -0
- package/dist/send-hZFDcGLM.js +1 -0
- package/dist/send-vthbs31u.js +1 -0
- package/dist/server-DpyBukwA.js +1 -0
- package/dist/server-IgiSKzXH.js +1 -0
- package/dist/server-node-events-CFSY_-4t.js +1 -0
- package/dist/server-node-events-ZFwmPwQ-.js +1 -0
- package/dist/service-BtB9epJk.js +1 -0
- package/dist/service-DZ9EbS15.js +1 -0
- package/dist/session-C9TDmUS7.js +1 -0
- package/dist/session-CUUGjiV3.js +1 -0
- package/dist/session-DA-i5xQ-.js +1 -0
- package/dist/session-bk3gFwO4.js +1 -0
- package/dist/session-cost-usage-BgqKixv0.js +1 -0
- package/dist/session-cost-usage-CHtVgnE8.js +1 -0
- package/dist/session-key-C7F_iqYg.js +1 -0
- package/dist/session-key-D3P0tf5P.js +1 -0
- package/dist/session-utils-8acNlxwP.js +1 -0
- package/dist/sessions-BsxT0V2m.js +1 -0
- package/dist/shared-9x5sqYRb.js +1 -0
- package/dist/shared-BKWhOp64.js +1 -0
- package/dist/shared-GesXrZzd.js +1 -0
- package/dist/skill-commands-BWW6mc6t.js +1 -0
- package/dist/skill-commands-CSF6wVPU.js +1 -0
- package/dist/skill-commands-Db232ZRp.js +1 -0
- package/dist/skill-commands-HJHHZqt6.js +1 -0
- package/dist/skill-scanner-CUUF3Fvo.js +1 -0
- package/dist/skill-scanner-CkxXNioD.js +1 -0
- package/dist/skills-CKTicUKS.js +1 -0
- package/dist/skills-DHbOKEGc.js +1 -0
- package/dist/skills-cli-9Ls94z5H.js +1 -0
- package/dist/skills-cli-BY7OhJzj.js +1 -0
- package/dist/skills-install-CIdGCXSy.js +1 -0
- package/dist/skills-install-DIdiVt9Y.js +1 -0
- package/dist/skills-status-BWIugRCz.js +1 -0
- package/dist/skills-status-DswSl5aD.js +1 -0
- package/dist/sqlite-CILF3z9U.js +1 -0
- package/dist/stagger-DmFYysrJ.js +1 -0
- package/dist/stagger-DxzgG2jd.js +1 -0
- package/dist/status-C-9fSiMn.js +1 -0
- package/dist/status-CeBGmSAz.js +1 -0
- package/dist/status-DYqPF0rB.js +1 -0
- package/dist/status-JIPeVrsc.js +1 -0
- package/dist/status.update-B_8Gumuc.js +1 -0
- package/dist/status.update-DoSzHu2F.js +1 -0
- package/dist/string-normalization-BrUPaXaM.js +1 -0
- package/dist/string-normalization-DJT5zuUF.js +1 -0
- package/dist/subsystem-BLbY429l.js +1 -0
- package/dist/subsystem-Bc2XrjUz.js +1 -0
- package/dist/subsystem-C5XF2Fy5.js +1 -0
- package/dist/system-cli-CeZfoVPN.js +1 -0
- package/dist/system-cli-DZkTYB9d.js +1 -0
- package/dist/system-run-command-BKfMiqQM.js +1 -0
- package/dist/system-run-command-DEWnZE0r.js +1 -0
- package/dist/systemd-D7odsu4K.js +1 -0
- package/dist/systemd-DbevZh65.js +1 -0
- package/dist/systemd-hints-C0DKDl35.js +1 -0
- package/dist/systemd-hints-lXpMy-kY.js +1 -0
- package/dist/systemd-linger-C2MJD6KG.js +1 -0
- package/dist/systemd-linger-cWKbFNpu.js +1 -0
- package/dist/table-CR7TFMew.js +1 -0
- package/dist/table-CY440fI1.js +1 -0
- package/dist/tables-Brc2lNcB.js +1 -0
- package/dist/tables-CrXdLc_6.js +1 -0
- package/dist/tables-Oieq7UbT.js +1 -0
- package/dist/tables-btcG3yFT.js +1 -0
- package/dist/target-errors-CRlevJJ5.js +1 -0
- package/dist/target-errors-CgWAJOam.js +1 -0
- package/dist/target-errors-CpKXh2RS.js +1 -0
- package/dist/target-errors-a35Md15n.js +1 -0
- package/dist/targets-4EaxWBal.js +1 -0
- package/dist/targets-BJTo7bqu.js +1 -0
- package/dist/targets-BYVMrXDf.js +1 -0
- package/dist/targets-Bq6rS6-Z.js +1 -0
- package/dist/targets-CL5fYQi7.js +1 -0
- package/dist/targets-fozeWOOg.js +1 -0
- package/dist/targets-m_41k_Mv.js +1 -0
- package/dist/telegram/audit.js +1 -0
- package/dist/text-format-CvrvBBre.js +1 -0
- package/dist/text-format-DEWK6oCT.js +1 -0
- package/dist/token-DnTmiyJu.js +1 -0
- package/dist/tokens-B2fq-rL6.js +1 -0
- package/dist/tokens-CL2fSjGl.js +1 -0
- package/dist/tokens-DRM8vzJx.js +1 -0
- package/dist/tokens-XGbQGn67.js +1 -0
- package/dist/tool-display-DJDtttQg.js +1 -0
- package/dist/tool-display-DjuSUUbH.js +1 -0
- package/dist/tui-B506apla.js +1 -0
- package/dist/tui-CJUkUxHb.js +1 -0
- package/dist/tui-cli-BEdGHmhc.js +1 -0
- package/dist/tui-cli-Cq_eXDAV.js +1 -0
- package/dist/types.secrets-C-5U96pc.js +1 -0
- package/dist/types.secrets-D4tbc3Wq.js +1 -0
- package/dist/update-BGrxUIyz.js +1 -0
- package/dist/update-CwTy5DPl.js +1 -0
- package/dist/update-cli-BwBMOeP0.js +1 -0
- package/dist/update-cli-YrBbmw4f.js +1 -0
- package/dist/update-runner-BvtyRBD2.js +1 -0
- package/dist/update-runner-DYamgo1V.js +1 -0
- package/dist/usage-format-BWD8FJFL.js +1 -0
- package/dist/usage-format-yPwal8Iz.js +1 -0
- package/dist/utils-CGdo13HV.js +1 -0
- package/dist/utils-D3t-vPka.js +1 -0
- package/dist/utils-R-mFyVJi.js +1 -0
- package/dist/utils-UGOV_184.js +1 -0
- package/dist/version-q3SkUw2K.js +1 -0
- package/dist/warning-filter.js +1 -0
- package/dist/web-Cq3xWCaD.js +1 -0
- package/dist/web-DwcxsgH0.js +1 -0
- package/dist/webhooks-cli-CIeyainW.js +1 -0
- package/dist/webhooks-cli-DSNAve_D.js +1 -0
- package/dist/whatsapp-actions-B6gt1KeB.js +1 -0
- package/dist/whatsapp-actions-DACoH7qd.js +1 -0
- package/dist/whatsapp-actions-iQhIeMya.js +1 -0
- package/dist/whatsapp-actions-tmjID75a.js +1 -0
- package/dist/widearea-dns-BDx7vkV2.js +1 -0
- package/dist/widearea-dns-BFjqKXu_.js +1 -0
- package/dist/windows-spawn-7oINn5ao.js +1 -0
- package/dist/windows-spawn-AB7ItGAE.js +1 -0
- package/dist/with-timeout-WveKxvFV.js +1 -0
- package/dist/with-timeout-c1CzdShT.js +1 -0
- package/dist/workspace-B0ZQeHXg.js +1 -0
- package/dist/workspace-C45T1Cxg.js +1 -0
- package/dist/workspace-dirs-A8Vib9_B.js +1 -0
- package/dist/workspace-dirs-BhF1Dzxt.js +1 -0
- package/dist/workspace-xNEpaJvu.js +1 -0
- package/dist/wsl-DHxB2Ew_.js +1 -0
- package/dist/wsl-Ok7GaSJ6.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/@grammyjs/types/package.json +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/cjs/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/cjs/index.js +3 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +66 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +1999 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +61 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/utils.js +10 -0
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/index.js +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.factory.generated.js +63 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +1995 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.js +58 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/utils.js +9 -0
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/package.json +10 -7
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/clipboard.linux-x64-musl.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
- package/node_modules/@slack/bolt/dist/App.js +22 -30
- package/node_modules/@slack/bolt/dist/Assistant.js +21 -37
- package/node_modules/@slack/bolt/dist/CustomFunction.js +1 -43
- package/node_modules/@slack/bolt/dist/context/create-function-complete.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-function-fail.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-respond.js +11 -0
- package/node_modules/@slack/bolt/dist/context/create-say-stream.js +16 -0
- package/node_modules/@slack/bolt/dist/context/create-say.js +17 -0
- package/node_modules/@slack/bolt/dist/context/create-set-status.js +21 -0
- package/node_modules/@slack/bolt/dist/context/index.js +16 -0
- package/node_modules/@slack/bolt/dist/helpers.js +79 -3
- package/node_modules/@slack/bolt/dist/index.js +10 -8
- package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +5 -1
- package/node_modules/@slack/bolt/dist/types/events/index.js +0 -4
- package/node_modules/@slack/bolt/package.json +7 -7
- package/node_modules/@smithy/config-resolver/package.json +10 -11
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
- package/node_modules/@smithy/core/package.json +15 -16
- package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/eventstream-codec/package.json +6 -7
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
- package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
- package/node_modules/@smithy/hash-node/package.json +6 -7
- package/node_modules/@smithy/invalid-dependency/package.json +6 -7
- package/node_modules/@smithy/middleware-content-length/package.json +7 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
- package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
- package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
- package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
- package/node_modules/@smithy/middleware-retry/package.json +16 -16
- package/node_modules/@smithy/middleware-serde/package.json +10 -11
- package/node_modules/@smithy/middleware-stack/package.json +7 -8
- package/node_modules/@smithy/node-config-provider/package.json +8 -9
- package/node_modules/@smithy/node-http-handler/package.json +10 -11
- package/node_modules/@smithy/property-provider/package.json +6 -7
- package/node_modules/@smithy/protocol-http/package.json +6 -7
- package/node_modules/@smithy/querystring-builder/package.json +6 -7
- package/node_modules/@smithy/querystring-parser/package.json +6 -7
- package/node_modules/@smithy/service-error-classification/package.json +6 -7
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/signature-v4/package.json +9 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/smithy-client/package.json +14 -15
- package/node_modules/@smithy/types/package.json +7 -8
- package/node_modules/@smithy/url-parser/package.json +7 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
- package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
- package/node_modules/@smithy/util-endpoints/package.json +9 -10
- package/node_modules/@smithy/util-middleware/package.json +6 -7
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +123 -76
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +24 -25
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
- package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
- package/node_modules/@smithy/util-retry/package.json +10 -11
- package/node_modules/@smithy/util-stream/package.json +12 -13
- package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
- package/node_modules/dotenv/lib/main.js +1 -1
- package/node_modules/dotenv/package.json +1 -1
- package/node_modules/dotenv/skills/dotenv/SKILL.md +32 -52
- package/node_modules/dotenv/skills/dotenvx/SKILL.md +57 -273
- package/node_modules/grammy/out/bot.js +1 -0
- package/node_modules/grammy/out/context.js +35 -0
- package/node_modules/grammy/out/convenience/keyboard.js +30 -2
- package/node_modules/grammy/out/core/api.js +34 -0
- package/node_modules/grammy/out/filter.js +6 -2
- package/node_modules/grammy/out/web.mjs +58 -10
- package/node_modules/grammy/package.json +2 -2
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +12 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +227 -130
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +17 -0
- package/node_modules/lru-cache/dist/esm/index.js +227 -130
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +8 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/package.json +29 -9
- package/node_modules/netmask/dist/netmask.js +58 -0
- package/node_modules/netmask/dist/netmask4.js +189 -0
- package/node_modules/netmask/dist/netmask6.js +187 -0
- package/node_modules/netmask/package.json +15 -6
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +93 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +189 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +50 -20
- package/node_modules/path-expression-matcher/src/index.js +3 -2
- package/node_modules/strnum/package.json +1 -1
- package/package.json +1 -1
- package/preset-config.json +12 -0
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
- package/node_modules/netmask/CREDITS.md +0 -30
- package/node_modules/netmask/lib/netmask.coffee +0 -167
- package/node_modules/netmask/lib/netmask.js +0 -208
- package/node_modules/strnum/.github/SECURITY.md +0 -5
- package/node_modules/strnum/.vscode/launch.json +0 -25
- package/node_modules/strnum/algo.stflow +0 -84
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
- /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{types.js → retry-pre-sra-deprecated/types.js} +0 -0
|
@@ -1 +1,2 @@
|
|
|
1
1
|
require(`./paths-Bcdg3ma0.cjs`);const e=require(`./sessions-Dz5JUL8j.cjs`),t=require(`./logger-DUYnS-W3.cjs`),n=require(`./proxy-env-DQoJjkWE.cjs`),r=require(`./fetch-timeout-BygUD0rd.cjs`);let i=require(`undici`);const a={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},o=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function s(e){return{...e,mode:a.STRICT}}function c(e){return{...e,mode:a.TRUSTED_ENV_PROXY}}function l(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?a.TRUSTED_ENV_PROXY:a.STRICT}function u(e){return e===301||e===302||e===303||e===307||e===308}function d(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())o.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function f(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let i=new AbortController,a=setTimeout(i.abort.bind(i),t),o=r.t(i);return n&&(n.aborted?i.abort():n.addEventListener(`abort`,o,{once:!0})),{signal:i.signal,cleanup:()=>{clearTimeout(a),n&&n.removeEventListener(`abort`,o)}}}async function p(r){let o=r.fetchImpl??globalThis.fetch;if(!o)throw Error(`fetch is not available`);let s=typeof r.maxRedirects==`number`&&Number.isFinite(r.maxRedirects)?Math.max(0,Math.floor(r.maxRedirects)):3,c=l(r),{signal:p,cleanup:m}=f({timeoutMs:r.timeoutMs,signal:r.signal}),h=!1,g=async t=>{h||(h=!0,m(),await e.Ni(t??void 0))},_=new Set,v=r.url,y=r.init?{...r.init}:void 0,b=0;for(;;){let l;try{l=new URL(v)}catch{throw await g(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(l.protocol))throw await g(),Error(`Invalid URL: must be http or https`);let f=null;try{let t=await e.Ii(l.hostname,{lookupFn:r.lookupFn,policy:r.policy});c===a.TRUSTED_ENV_PROXY&&n.n()?f=new i.EnvHttpProxyAgent:r.pinDns!==!1&&(f=e.Pi(t));let m={...y?{...y}:{},redirect:`manual`,...f?{dispatcher:f}:{},...p?{signal:p}:{}},h=await o(l.toString(),m);if(u(h.status)){let t=h.headers.get(`location`);if(!t)throw await g(f),Error(`Redirect missing location header (${h.status})`);if(b+=1,b>s)throw await g(f),Error(`Too many redirects (limit: ${s})`);let n=new URL(t,l),r=n.toString();if(_.has(r))throw await g(f),Error(`Redirect loop detected`);n.origin!==l.origin&&(y=d(y)),_.add(r),h.body?.cancel(),await e.Ni(f),v=r;continue}return{response:h,finalUrl:v,release:async()=>g(f)}}catch(n){throw n instanceof e.Mi&&t.i(`security: blocked URL fetch (${r.auditContext??`url-fetch`}) target=${l.origin}${l.pathname} reason=${n.message}`),await g(f),n}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
2
|
+
//# sourceMappingURL=fetch-guard-CIJUkBIL.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Fi as e,Mi as t,Ni as n,ji as r}from"./sessions-DxXXAfdI.js";import{i}from"./logger-vBDTZWl3.js";import{n as a}from"./proxy-env-B765haXA.js";import{t as o}from"./fetch-timeout-CLw1U7VS.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await t(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let r=await e(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=n(r));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(e,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await t(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(e){throw e instanceof r&&i(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${e.message}`),await y(h),e}}}export{u as n,d as r,g as t};
|
|
2
|
+
//# sourceMappingURL=fetch-guard-CY03i4gu.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
require(`./paths-BvlJvmRS.cjs`);const e=require(`./logger-BlddiV_d.cjs`),t=require(`./model-auth-BpS4IWDi.cjs`),n=require(`./proxy-env-DWw9TnOj.cjs`),r=require(`./fetch-timeout-Coc9xyC3.cjs`);let i=require(`undici`);const a={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},o=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function s(e){return{...e,mode:a.STRICT}}function c(e){return{...e,mode:a.TRUSTED_ENV_PROXY}}function l(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?a.TRUSTED_ENV_PROXY:a.STRICT}function u(e){return e===301||e===302||e===303||e===307||e===308}function d(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())o.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function f(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let i=new AbortController,a=setTimeout(i.abort.bind(i),t),o=r.t(i);return n&&(n.aborted?i.abort():n.addEventListener(`abort`,o,{once:!0})),{signal:i.signal,cleanup:()=>{clearTimeout(a),n&&n.removeEventListener(`abort`,o)}}}async function p(r){let o=r.fetchImpl??globalThis.fetch;if(!o)throw Error(`fetch is not available`);let s=typeof r.maxRedirects==`number`&&Number.isFinite(r.maxRedirects)?Math.max(0,Math.floor(r.maxRedirects)):3,c=l(r),{signal:p,cleanup:m}=f({timeoutMs:r.timeoutMs,signal:r.signal}),h=!1,g=async e=>{h||(h=!0,m(),await t.vr(e??void 0))},_=new Set,v=r.url,y=r.init?{...r.init}:void 0,b=0;for(;;){let l;try{l=new URL(v)}catch{throw await g(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(l.protocol))throw await g(),Error(`Invalid URL: must be http or https`);let f=null;try{let e=await t.Sr(l.hostname,{lookupFn:r.lookupFn,policy:r.policy});c===a.TRUSTED_ENV_PROXY&&n.n()?f=new i.EnvHttpProxyAgent:r.pinDns!==!1&&(f=t.yr(e));let m={...y?{...y}:{},redirect:`manual`,...f?{dispatcher:f}:{},...p?{signal:p}:{}},h=await o(l.toString(),m);if(u(h.status)){let e=h.headers.get(`location`);if(!e)throw await g(f),Error(`Redirect missing location header (${h.status})`);if(b+=1,b>s)throw await g(f),Error(`Too many redirects (limit: ${s})`);let n=new URL(e,l),r=n.toString();if(_.has(r))throw await g(f),Error(`Redirect loop detected`);n.origin!==l.origin&&(y=d(y)),_.add(r),h.body?.cancel(),await t.vr(f),v=r;continue}return{response:h,finalUrl:v,release:async()=>g(f)}}catch(n){throw n instanceof t._r&&e.i(`security: blocked URL fetch (${r.auditContext??`url-fetch`}) target=${l.origin}${l.pathname} reason=${n.message}`),await g(f),n}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
2
|
+
//# sourceMappingURL=fetch-guard-Cz-cgYmR.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
require(`./paths-Bcdg3ma0.cjs`);const e=require(`./model-auth-TFUxaK0f.cjs`),t=require(`./logger-DPlqYkRm.cjs`),n=require(`./proxy-env-a590sPAz.cjs`),r=require(`./fetch-timeout-BygUD0rd.cjs`);let i=require(`undici`);const a={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},o=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function s(e){return{...e,mode:a.STRICT}}function c(e){return{...e,mode:a.TRUSTED_ENV_PROXY}}function l(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?a.TRUSTED_ENV_PROXY:a.STRICT}function u(e){return e===301||e===302||e===303||e===307||e===308}function d(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())o.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function f(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let i=new AbortController,a=setTimeout(i.abort.bind(i),t),o=r.t(i);return n&&(n.aborted?i.abort():n.addEventListener(`abort`,o,{once:!0})),{signal:i.signal,cleanup:()=>{clearTimeout(a),n&&n.removeEventListener(`abort`,o)}}}async function p(r){let o=r.fetchImpl??globalThis.fetch;if(!o)throw Error(`fetch is not available`);let s=typeof r.maxRedirects==`number`&&Number.isFinite(r.maxRedirects)?Math.max(0,Math.floor(r.maxRedirects)):3,c=l(r),{signal:p,cleanup:m}=f({timeoutMs:r.timeoutMs,signal:r.signal}),h=!1,g=async t=>{h||(h=!0,m(),await e.xi(t??void 0))},_=new Set,v=r.url,y=r.init?{...r.init}:void 0,b=0;for(;;){let l;try{l=new URL(v)}catch{throw await g(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(l.protocol))throw await g(),Error(`Invalid URL: must be http or https`);let f=null;try{let t=await e.wi(l.hostname,{lookupFn:r.lookupFn,policy:r.policy});c===a.TRUSTED_ENV_PROXY&&n.n()?f=new i.EnvHttpProxyAgent:r.pinDns!==!1&&(f=e.Si(t));let m={...y?{...y}:{},redirect:`manual`,...f?{dispatcher:f}:{},...p?{signal:p}:{}},h=await o(l.toString(),m);if(u(h.status)){let t=h.headers.get(`location`);if(!t)throw await g(f),Error(`Redirect missing location header (${h.status})`);if(b+=1,b>s)throw await g(f),Error(`Too many redirects (limit: ${s})`);let n=new URL(t,l),r=n.toString();if(_.has(r))throw await g(f),Error(`Redirect loop detected`);n.origin!==l.origin&&(y=d(y)),_.add(r),h.body?.cancel(),await e.xi(f),v=r;continue}return{response:h,finalUrl:v,release:async()=>g(f)}}catch(n){throw n instanceof e.bi&&t.i(`security: blocked URL fetch (${r.auditContext??`url-fetch`}) target=${l.origin}${l.pathname} reason=${n.message}`),await g(f),n}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DB85MORy.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ci as e,Ei as t,Si as n,wi as r}from"./model-auth-Cc-8H6Cu.js";import{i}from"./logger-C210xuWx.js";import{n as a}from"./proxy-env-BlrHtJWH.js";import{t as o}from"./fetch-timeout-6oZsqWxA.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async t=>{v||(v=!0,_(),await e(t??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let n=await t(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=r(n));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let t=_.headers.get(`location`);if(!t)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(t,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await e(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(e){throw e instanceof n&&i(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${e.message}`),await y(h),e}}}export{u as n,d as r,g as t};
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DE9BslxX.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
require(`./paths-Bcdg3ma0.cjs`);const e=require(`./utils-PPIvU9qw.cjs`),t=require(`./model-auth-BwajGuoF.cjs`),n=require(`./proxy-env-D48qBPAr.cjs`),r=require(`./fetch-timeout-Coc9xyC3.cjs`);let i=require(`undici`);const a={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},o=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function s(e){return{...e,mode:a.STRICT}}function c(e){return{...e,mode:a.TRUSTED_ENV_PROXY}}function l(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?a.TRUSTED_ENV_PROXY:a.STRICT}function u(e){return e===301||e===302||e===303||e===307||e===308}function d(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())o.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function f(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let i=new AbortController,a=setTimeout(i.abort.bind(i),t),o=r.t(i);return n&&(n.aborted?i.abort():n.addEventListener(`abort`,o,{once:!0})),{signal:i.signal,cleanup:()=>{clearTimeout(a),n&&n.removeEventListener(`abort`,o)}}}async function p(r){let o=r.fetchImpl??globalThis.fetch;if(!o)throw Error(`fetch is not available`);let s=typeof r.maxRedirects==`number`&&Number.isFinite(r.maxRedirects)?Math.max(0,Math.floor(r.maxRedirects)):3,c=l(r),{signal:p,cleanup:m}=f({timeoutMs:r.timeoutMs,signal:r.signal}),h=!1,g=async e=>{h||(h=!0,m(),await t.Gr(e??void 0))},_=new Set,v=r.url,y=r.init?{...r.init}:void 0,b=0;for(;;){let l;try{l=new URL(v)}catch{throw await g(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(l.protocol))throw await g(),Error(`Invalid URL: must be http or https`);let f=null;try{let e=await t.Jr(l.hostname,{lookupFn:r.lookupFn,policy:r.policy});c===a.TRUSTED_ENV_PROXY&&n.n()?f=new i.EnvHttpProxyAgent:r.pinDns!==!1&&(f=t.Kr(e));let m={...y?{...y}:{},redirect:`manual`,...f?{dispatcher:f}:{},...p?{signal:p}:{}},h=await o(l.toString(),m);if(u(h.status)){let e=h.headers.get(`location`);if(!e)throw await g(f),Error(`Redirect missing location header (${h.status})`);if(b+=1,b>s)throw await g(f),Error(`Too many redirects (limit: ${s})`);let n=new URL(e,l),r=n.toString();if(_.has(r))throw await g(f),Error(`Redirect loop detected`);n.origin!==l.origin&&(y=d(y)),_.add(r),h.body?.cancel(),await t.Gr(f),v=r;continue}return{response:h,finalUrl:v,release:async()=>g(f)}}catch(n){throw n instanceof t.Wr&&e.D(`security: blocked URL fetch (${r.auditContext??`url-fetch`}) target=${l.origin}${l.pathname} reason=${n.message}`),await g(f),n}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DLNzldn9.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{i as e}from"./logger-DwWqfo66.js";import{_r as t,gr as n,vr as r,xr as i}from"./model-auth-C1YL9HcW.js";import{n as a}from"./proxy-env-DGzNnnJh.js";import{t as o}from"./fetch-timeout-DkYpp08Q.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await t(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let e=await i(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=r(e));let n={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),n);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(e,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await t(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(t){throw t instanceof n&&e(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${t.message}`),await y(h),t}}}export{u as n,d as r,g as t};
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DSvAbvSx.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{D as e}from"./utils-BJtJR72k.js";import{Gr as t,Ur as n,Wr as r,qr as i}from"./model-auth-Cw3fuhm_.js";import{n as a}from"./proxy-env-m9eG3uZN.js";import{t as o}from"./fetch-timeout-DkYpp08Q.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await r(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let e=await i(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=t(e));let n={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),n);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let t=new URL(e,f),n=t.toString();if(b.has(n))throw await y(h),Error(`Redirect loop detected`);t.origin!==f.origin&&(S=m(S)),b.add(n),_.body?.cancel(),await r(h),x=n;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(t){throw t instanceof n&&e(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${t.message}`),await y(h),t}}}export{u as n,d as r,g as t};
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DXe8oqEE.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
require(`./paths-BvlJvmRS.cjs`);const e=require(`./config-rBz8C_Hi.cjs`),t=require(`./logger-Bm93ZKOk.cjs`),n=require(`./proxy-env-Bcl14j2_.cjs`),r=require(`./fetch-timeout-CX1w-9p4.cjs`);let i=require(`undici`);const a={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},o=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function s(e){return{...e,mode:a.STRICT}}function c(e){return{...e,mode:a.TRUSTED_ENV_PROXY}}function l(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?a.TRUSTED_ENV_PROXY:a.STRICT}function u(e){return e===301||e===302||e===303||e===307||e===308}function d(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())o.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function f(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let i=new AbortController,a=setTimeout(i.abort.bind(i),t),o=r.t(i);return n&&(n.aborted?i.abort():n.addEventListener(`abort`,o,{once:!0})),{signal:i.signal,cleanup:()=>{clearTimeout(a),n&&n.removeEventListener(`abort`,o)}}}async function p(r){let o=r.fetchImpl??globalThis.fetch;if(!o)throw Error(`fetch is not available`);let s=typeof r.maxRedirects==`number`&&Number.isFinite(r.maxRedirects)?Math.max(0,Math.floor(r.maxRedirects)):3,c=l(r),{signal:p,cleanup:m}=f({timeoutMs:r.timeoutMs,signal:r.signal}),h=!1,g=async t=>{h||(h=!0,m(),await e.Vs(t??void 0))},_=new Set,v=r.url,y=r.init?{...r.init}:void 0,b=0;for(;;){let l;try{l=new URL(v)}catch{throw await g(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(l.protocol))throw await g(),Error(`Invalid URL: must be http or https`);let f=null;try{let t=await e.Ks(l.hostname,{lookupFn:r.lookupFn,policy:r.policy});c===a.TRUSTED_ENV_PROXY&&n.n()?f=new i.EnvHttpProxyAgent:r.pinDns!==!1&&(f=e.Hs(t));let m={...y?{...y}:{},redirect:`manual`,...f?{dispatcher:f}:{},...p?{signal:p}:{}},h=await o(l.toString(),m);if(u(h.status)){let t=h.headers.get(`location`);if(!t)throw await g(f),Error(`Redirect missing location header (${h.status})`);if(b+=1,b>s)throw await g(f),Error(`Too many redirects (limit: ${s})`);let n=new URL(t,l),r=n.toString();if(_.has(r))throw await g(f),Error(`Redirect loop detected`);n.origin!==l.origin&&(y=d(y)),_.add(r),h.body?.cancel(),await e.Vs(f),v=r;continue}return{response:h,finalUrl:v,release:async()=>g(f)}}catch(n){throw n instanceof e.Bs&&t.i(`security: blocked URL fetch (${r.auditContext??`url-fetch`}) target=${l.origin}${l.pathname} reason=${n.message}`),await g(f),n}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DY9jpsXo.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Bs as e,Gs as t,Vs as n,zs as r}from"./config-ByA2hluR.js";import{i}from"./logger-BtrWb0dj.js";import{n as a}from"./proxy-env-t6hcaFqC.js";import{t as o}from"./fetch-timeout-Cz6GuU_c.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async t=>{v||(v=!0,_(),await e(t??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let r=await t(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=n(r));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let t=_.headers.get(`location`);if(!t)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(t,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await e(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(e){throw e instanceof r&&i(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${e.message}`),await y(h),e}}}export{u as n,d as r,g as t};
|
|
2
|
+
//# sourceMappingURL=fetch-guard-DbOZYxyN.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ci as e,bi as t,xi as n,yi as r}from"./model-auth-CycDtQl-.js";import{i}from"./logger-DJGHvDbX.js";import{n as a}from"./proxy-env-MEjSyzTr.js";import{t as o}from"./fetch-timeout-DC8T2JCr.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await t(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let r=await e(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=n(r));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(e,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await t(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(e){throw e instanceof r&&i(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${e.message}`),await y(h),e}}}export{u as n,d as r,g as t};
|
|
2
|
+
//# sourceMappingURL=fetch-guard-_fifU0fX.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./fetch-timeout-CX1w-9p4.cjs`),t=Symbol.for(`openclaw.fetch.abort-signal-wrapped`);function n(e,t){let n=e?.body!=null,r=!n&&typeof Request<`u`&&t instanceof Request&&t.body!=null;return!n&&!r||e&&`duplex`in e?e:e?{...e,duplex:`half`}:{duplex:`half`}}function r(r){if(r[t])return r;let i=Object.assign(((t,i)=>{let a=n(i,t),o=a?.signal;if(!o||typeof AbortSignal<`u`&&o instanceof AbortSignal||typeof AbortController>`u`||typeof o.addEventListener!=`function`)return r(t,a);let s=new AbortController,c=e.t(s),l=!1;o.aborted?s.abort():(o.addEventListener(`abort`,c,{once:!0}),l=!0);let u=()=>{if(!(!l||typeof o.removeEventListener!=`function`)){l=!1;try{o.removeEventListener(`abort`,c)}catch{}}};try{return r(t,{...a,signal:s.signal}).finally(u)}catch(e){throw u(),e}}),r),a=r;return i.preconnect=typeof a.preconnect==`function`?a.preconnect.bind(a):()=>{},Object.defineProperty(i,t,{value:!0,enumerable:!1,configurable:!1,writable:!1}),i}function i(e){let t=e??globalThis.fetch;if(t)return r(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
2
|
+
//# sourceMappingURL=fetch-lw-aF17e.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-6oZsqWxA.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-BygUD0rd.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-CLw1U7VS.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-CX1w-9p4.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-Coc9xyC3.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-Cz6GuU_c.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-DC8T2JCr.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-DFDmks9T.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
+
//# sourceMappingURL=fetch-timeout-DkYpp08Q.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./paths-Bcdg3ma0.cjs`);let t=require(`node:path`);t=e.p(t);let n=require(`node:fs`);n=e.p(n);function r(e){try{if(!n.default.existsSync(e))return;let t=n.default.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function i(e,r){let i=t.default.dirname(e);n.default.existsSync(i)||n.default.mkdirSync(i,{recursive:!0,mode:448}),n.default.writeFileSync(e,`${JSON.stringify(r,null,2)}\n`,`utf8`),n.default.chmodSync(e,384)}var a=e.f({DEFAULT_COPILOT_API_BASE_URL:()=>u,deriveCopilotApiBaseUrlFromToken:()=>d,resolveCopilotApiToken:()=>f});const o=`https://api.github.com/copilot_internal/v2/token`;function s(n=process.env){return t.default.join(e.c(n),`credentials`,`github-copilot.token.json`)}function c(e,t=Date.now()){return e.expiresAt-t>300*1e3}function l(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const u=`https://api.individual.githubcopilot.com`;function d(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function f(e){let t=e.env??process.env,n=e.cachePath?.trim()||s(t),a=e.loadJsonFileImpl??r,u=e.saveJsonFileImpl??i,f=a(n);if(f&&typeof f.token==`string`&&typeof f.expiresAt==`number`&&c(f))return{token:f.token,expiresAt:f.expiresAt,source:`cache:${n}`,baseUrl:d(f.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(o,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=l(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return u(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${o}`,baseUrl:d(h.token)??`https://api.individual.githubcopilot.com`}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-BHdMLLqf.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{c as t}from"./paths-BpQOWYiT.js";import n from"node:fs";import r from"node:path";function i(e){try{if(!n.existsSync(e))return;let t=n.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function a(e,t){let i=r.dirname(e);n.existsSync(i)||n.mkdirSync(i,{recursive:!0,mode:448}),n.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),n.chmodSync(e,384)}var o=e({DEFAULT_COPILOT_API_BASE_URL:()=>d,deriveCopilotApiBaseUrlFromToken:()=>f,resolveCopilotApiToken:()=>p});const s=`https://api.github.com/copilot_internal/v2/token`;function c(e=process.env){return r.join(t(e),`credentials`,`github-copilot.token.json`)}function l(e,t=Date.now()){return e.expiresAt-t>300*1e3}function u(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const d=`https://api.individual.githubcopilot.com`;function f(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function p(e){let t=e.env??process.env,n=e.cachePath?.trim()||c(t),r=e.loadJsonFileImpl??i,o=e.saveJsonFileImpl??a,d=r(n);if(d&&typeof d.token==`string`&&typeof d.expiresAt==`number`&&l(d))return{token:d.token,expiresAt:d.expiresAt,source:`cache:${n}`,baseUrl:f(d.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(s,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=u(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return o(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${s}`,baseUrl:f(h.token)??`https://api.individual.githubcopilot.com`}}export{a,i,o as n,p as r,d as t};
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-Bt4PduRB.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./paths-Bcdg3ma0.cjs`);let t=require(`node:path`);t=e.p(t);let n=require(`node:fs`);n=e.p(n);function r(e){try{if(!n.default.existsSync(e))return;let t=n.default.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function i(e,r){let i=t.default.dirname(e);n.default.existsSync(i)||n.default.mkdirSync(i,{recursive:!0,mode:448}),n.default.writeFileSync(e,`${JSON.stringify(r,null,2)}\n`,`utf8`),n.default.chmodSync(e,384)}var a=e.f({DEFAULT_COPILOT_API_BASE_URL:()=>u,deriveCopilotApiBaseUrlFromToken:()=>d,resolveCopilotApiToken:()=>f});const o=`https://api.github.com/copilot_internal/v2/token`;function s(n=process.env){return t.default.join(e.c(n),`credentials`,`github-copilot.token.json`)}function c(e,t=Date.now()){return e.expiresAt-t>300*1e3}function l(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const u=`https://api.individual.githubcopilot.com`;function d(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function f(e){let t=e.env??process.env,n=e.cachePath?.trim()||s(t),a=e.loadJsonFileImpl??r,u=e.saveJsonFileImpl??i,f=a(n);if(f&&typeof f.token==`string`&&typeof f.expiresAt==`number`&&c(f))return{token:f.token,expiresAt:f.expiresAt,source:`cache:${n}`,baseUrl:d(f.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(o,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=l(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return u(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${o}`,baseUrl:d(h.token)??`https://api.individual.githubcopilot.com`}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-C1O2cBqk.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{c as t}from"./paths-DaRoqzBQ.js";import n from"node:fs";import r from"node:path";function i(e){try{if(!n.existsSync(e))return;let t=n.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function a(e,t){let i=r.dirname(e);n.existsSync(i)||n.mkdirSync(i,{recursive:!0,mode:448}),n.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),n.chmodSync(e,384)}var o=e({DEFAULT_COPILOT_API_BASE_URL:()=>d,deriveCopilotApiBaseUrlFromToken:()=>f,resolveCopilotApiToken:()=>p});const s=`https://api.github.com/copilot_internal/v2/token`;function c(e=process.env){return r.join(t(e),`credentials`,`github-copilot.token.json`)}function l(e,t=Date.now()){return e.expiresAt-t>300*1e3}function u(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const d=`https://api.individual.githubcopilot.com`;function f(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function p(e){let t=e.env??process.env,n=e.cachePath?.trim()||c(t),r=e.loadJsonFileImpl??i,o=e.saveJsonFileImpl??a,d=r(n);if(d&&typeof d.token==`string`&&typeof d.expiresAt==`number`&&l(d))return{token:d.token,expiresAt:d.expiresAt,source:`cache:${n}`,baseUrl:f(d.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(s,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=u(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return o(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${s}`,baseUrl:f(h.token)??`https://api.individual.githubcopilot.com`}}export{a,i,o as n,p as r,d as t};
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-C1hiDugd.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{c as t}from"./paths-rO4ehkyU.js";import n from"node:path";import r from"node:fs";function i(e){try{if(!r.existsSync(e))return;let t=r.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function a(e,t){let i=n.dirname(e);r.existsSync(i)||r.mkdirSync(i,{recursive:!0,mode:448}),r.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.chmodSync(e,384)}var o=e({DEFAULT_COPILOT_API_BASE_URL:()=>d,deriveCopilotApiBaseUrlFromToken:()=>f,resolveCopilotApiToken:()=>p});const s=`https://api.github.com/copilot_internal/v2/token`;function c(e=process.env){return n.join(t(e),`credentials`,`github-copilot.token.json`)}function l(e,t=Date.now()){return e.expiresAt-t>300*1e3}function u(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const d=`https://api.individual.githubcopilot.com`;function f(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function p(e){let t=e.env??process.env,n=e.cachePath?.trim()||c(t),r=e.loadJsonFileImpl??i,o=e.saveJsonFileImpl??a,d=r(n);if(d&&typeof d.token==`string`&&typeof d.expiresAt==`number`&&l(d))return{token:d.token,expiresAt:d.expiresAt,source:`cache:${n}`,baseUrl:f(d.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(s,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=u(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return o(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${s}`,baseUrl:f(h.token)??`https://api.individual.githubcopilot.com`}}export{a,i,o as n,p as r,d as t};
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-C8j8_NjX.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./paths-Bcdg3ma0.cjs`);let t=require(`node:path`);t=e.p(t);let n=require(`node:fs`);n=e.p(n);function r(e){try{if(!n.default.existsSync(e))return;let t=n.default.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function i(e,r){let i=t.default.dirname(e);n.default.existsSync(i)||n.default.mkdirSync(i,{recursive:!0,mode:448}),n.default.writeFileSync(e,`${JSON.stringify(r,null,2)}\n`,`utf8`),n.default.chmodSync(e,384)}var a=e.f({DEFAULT_COPILOT_API_BASE_URL:()=>u,deriveCopilotApiBaseUrlFromToken:()=>d,resolveCopilotApiToken:()=>f});const o=`https://api.github.com/copilot_internal/v2/token`;function s(n=process.env){return t.default.join(e.c(n),`credentials`,`github-copilot.token.json`)}function c(e,t=Date.now()){return e.expiresAt-t>300*1e3}function l(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const u=`https://api.individual.githubcopilot.com`;function d(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function f(e){let t=e.env??process.env,n=e.cachePath?.trim()||s(t),a=e.loadJsonFileImpl??r,u=e.saveJsonFileImpl??i,f=a(n);if(f&&typeof f.token==`string`&&typeof f.expiresAt==`number`&&c(f))return{token:f.token,expiresAt:f.expiresAt,source:`cache:${n}`,baseUrl:d(f.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(o,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=l(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return u(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${o}`,baseUrl:d(h.token)??`https://api.individual.githubcopilot.com`}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-CCrgp2py.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./paths-BvlJvmRS.cjs`);let t=require(`node:fs`);t=e.p(t);let n=require(`node:path`);n=e.p(n);function r(e){try{if(!t.default.existsSync(e))return;let n=t.default.readFileSync(e,`utf8`);return JSON.parse(n)}catch{return}}function i(e,r){let i=n.default.dirname(e);t.default.existsSync(i)||t.default.mkdirSync(i,{recursive:!0,mode:448}),t.default.writeFileSync(e,`${JSON.stringify(r,null,2)}\n`,`utf8`),t.default.chmodSync(e,384)}var a=e.f({DEFAULT_COPILOT_API_BASE_URL:()=>u,deriveCopilotApiBaseUrlFromToken:()=>d,resolveCopilotApiToken:()=>f});const o=`https://api.github.com/copilot_internal/v2/token`;function s(t=process.env){return n.default.join(e.c(t),`credentials`,`github-copilot.token.json`)}function c(e,t=Date.now()){return e.expiresAt-t>300*1e3}function l(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const u=`https://api.individual.githubcopilot.com`;function d(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function f(e){let t=e.env??process.env,n=e.cachePath?.trim()||s(t),a=e.loadJsonFileImpl??r,u=e.saveJsonFileImpl??i,f=a(n);if(f&&typeof f.token==`string`&&typeof f.expiresAt==`number`&&c(f))return{token:f.token,expiresAt:f.expiresAt,source:`cache:${n}`,baseUrl:d(f.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(o,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=l(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return u(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${o}`,baseUrl:d(h.token)??`https://api.individual.githubcopilot.com`}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-DoHgkI2r.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{c as t}from"./paths-CnHSNSeR.js";import n from"node:path";import r from"node:fs";function i(e){try{if(!r.existsSync(e))return;let t=r.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function a(e,t){let i=n.dirname(e);r.existsSync(i)||r.mkdirSync(i,{recursive:!0,mode:448}),r.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.chmodSync(e,384)}var o=e({DEFAULT_COPILOT_API_BASE_URL:()=>d,deriveCopilotApiBaseUrlFromToken:()=>f,resolveCopilotApiToken:()=>p});const s=`https://api.github.com/copilot_internal/v2/token`;function c(e=process.env){return n.join(t(e),`credentials`,`github-copilot.token.json`)}function l(e,t=Date.now()){return e.expiresAt-t>300*1e3}function u(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const d=`https://api.individual.githubcopilot.com`;function f(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function p(e){let t=e.env??process.env,n=e.cachePath?.trim()||c(t),r=e.loadJsonFileImpl??i,o=e.saveJsonFileImpl??a,d=r(n);if(d&&typeof d.token==`string`&&typeof d.expiresAt==`number`&&l(d))return{token:d.token,expiresAt:d.expiresAt,source:`cache:${n}`,baseUrl:f(d.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(s,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=u(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return o(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${s}`,baseUrl:f(h.token)??`https://api.individual.githubcopilot.com`}}export{a,i,o as n,p as r,d as t};
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-N8vnLZPw.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./paths-BvlJvmRS.cjs`);let t=require(`node:fs`);t=e.p(t);let n=require(`node:path`);n=e.p(n);function r(e){try{if(!t.default.existsSync(e))return;let n=t.default.readFileSync(e,`utf8`);return JSON.parse(n)}catch{return}}function i(e,r){let i=n.default.dirname(e);t.default.existsSync(i)||t.default.mkdirSync(i,{recursive:!0,mode:448}),t.default.writeFileSync(e,`${JSON.stringify(r,null,2)}\n`,`utf8`),t.default.chmodSync(e,384)}var a=e.f({DEFAULT_COPILOT_API_BASE_URL:()=>u,deriveCopilotApiBaseUrlFromToken:()=>d,resolveCopilotApiToken:()=>f});const o=`https://api.github.com/copilot_internal/v2/token`;function s(t=process.env){return n.default.join(e.c(t),`credentials`,`github-copilot.token.json`)}function c(e,t=Date.now()){return e.expiresAt-t>300*1e3}function l(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const u=`https://api.individual.githubcopilot.com`;function d(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function f(e){let t=e.env??process.env,n=e.cachePath?.trim()||s(t),a=e.loadJsonFileImpl??r,u=e.saveJsonFileImpl??i,f=a(n);if(f&&typeof f.token==`string`&&typeof f.expiresAt==`number`&&c(f))return{token:f.token,expiresAt:f.expiresAt,source:`cache:${n}`,baseUrl:d(f.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(o,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=l(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return u(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${o}`,baseUrl:d(h.token)??`https://api.individual.githubcopilot.com`}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-TMkfxxD2.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{c as t}from"./paths-CtrEseGU.js";import n from"node:path";import r from"node:fs";function i(e){try{if(!r.existsSync(e))return;let t=r.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function a(e,t){let i=n.dirname(e);r.existsSync(i)||r.mkdirSync(i,{recursive:!0,mode:448}),r.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.chmodSync(e,384)}var o=e({DEFAULT_COPILOT_API_BASE_URL:()=>d,deriveCopilotApiBaseUrlFromToken:()=>f,resolveCopilotApiToken:()=>p});const s=`https://api.github.com/copilot_internal/v2/token`;function c(e=process.env){return n.join(t(e),`credentials`,`github-copilot.token.json`)}function l(e,t=Date.now()){return e.expiresAt-t>300*1e3}function u(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const d=`https://api.individual.githubcopilot.com`;function f(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function p(e){let t=e.env??process.env,n=e.cachePath?.trim()||c(t),r=e.loadJsonFileImpl??i,o=e.saveJsonFileImpl??a,d=r(n);if(d&&typeof d.token==`string`&&typeof d.expiresAt==`number`&&l(d))return{token:d.token,expiresAt:d.expiresAt,source:`cache:${n}`,baseUrl:f(d.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(s,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=u(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return o(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${s}`,baseUrl:f(h.token)??`https://api.individual.githubcopilot.com`}}export{a,i,o as n,p as r,d as t};
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-vKAKX6iE.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{c as t}from"./paths-DhSjTRMz.js";import n from"node:path";import r from"node:fs";function i(e){try{if(!r.existsSync(e))return;let t=r.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function a(e,t){let i=n.dirname(e);r.existsSync(i)||r.mkdirSync(i,{recursive:!0,mode:448}),r.writeFileSync(e,`${JSON.stringify(t,null,2)}\n`,`utf8`),r.chmodSync(e,384)}var o=e({DEFAULT_COPILOT_API_BASE_URL:()=>d,deriveCopilotApiBaseUrlFromToken:()=>f,resolveCopilotApiToken:()=>p});const s=`https://api.github.com/copilot_internal/v2/token`;function c(e=process.env){return n.join(t(e),`credentials`,`github-copilot.token.json`)}function l(e,t=Date.now()){return e.expiresAt-t>300*1e3}function u(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const d=`https://api.individual.githubcopilot.com`;function f(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function p(e){let t=e.env??process.env,n=e.cachePath?.trim()||c(t),r=e.loadJsonFileImpl??i,o=e.saveJsonFileImpl??a,d=r(n);if(d&&typeof d.token==`string`&&typeof d.expiresAt==`number`&&l(d))return{token:d.token,expiresAt:d.expiresAt,source:`cache:${n}`,baseUrl:f(d.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(s,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=u(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return o(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${s}`,baseUrl:f(h.token)??`https://api.individual.githubcopilot.com`}}export{a,i,o as n,p as r,d as t};
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-ylX_gawo.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
const e=require(`./paths-Bcdg3ma0.cjs`);let t=require(`node:path`);t=e.p(t);let n=require(`node:fs`);n=e.p(n);function r(e){try{if(!n.default.existsSync(e))return;let t=n.default.readFileSync(e,`utf8`);return JSON.parse(t)}catch{return}}function i(e,r){let i=t.default.dirname(e);n.default.existsSync(i)||n.default.mkdirSync(i,{recursive:!0,mode:448}),n.default.writeFileSync(e,`${JSON.stringify(r,null,2)}\n`,`utf8`),n.default.chmodSync(e,384)}var a=e.f({DEFAULT_COPILOT_API_BASE_URL:()=>u,deriveCopilotApiBaseUrlFromToken:()=>d,resolveCopilotApiToken:()=>f});const o=`https://api.github.com/copilot_internal/v2/token`;function s(n=process.env){return t.default.join(e.c(n),`credentials`,`github-copilot.token.json`)}function c(e,t=Date.now()){return e.expiresAt-t>300*1e3}function l(e){if(!e||typeof e!=`object`)throw Error(`Unexpected response from GitHub Copilot token endpoint`);let t=e,n=t.token,r=t.expires_at;if(typeof n!=`string`||n.trim().length===0)throw Error(`Copilot token response missing token`);let i;if(typeof r==`number`&&Number.isFinite(r))i=r>1e10?r:r*1e3;else if(typeof r==`string`&&r.trim().length>0){let e=Number.parseInt(r,10);if(!Number.isFinite(e))throw Error(`Copilot token response has invalid expires_at`);i=e>1e10?e:e*1e3}else throw Error(`Copilot token response missing expires_at`);return{token:n,expiresAt:i}}const u=`https://api.individual.githubcopilot.com`;function d(e){let t=e.trim();if(!t)return null;let n=t.match(/(?:^|;)\s*proxy-ep=([^;\s]+)/i)?.[1]?.trim();if(!n)return null;let r=n.replace(/^https?:\/\//,``).replace(/^proxy\./i,`api.`);return r?`https://${r}`:null}async function f(e){let t=e.env??process.env,n=e.cachePath?.trim()||s(t),a=e.loadJsonFileImpl??r,u=e.saveJsonFileImpl??i,f=a(n);if(f&&typeof f.token==`string`&&typeof f.expiresAt==`number`&&c(f))return{token:f.token,expiresAt:f.expiresAt,source:`cache:${n}`,baseUrl:d(f.token)??`https://api.individual.githubcopilot.com`};let p=await(e.fetchImpl??fetch)(o,{method:`GET`,headers:{Accept:`application/json`,Authorization:`Bearer ${e.githubToken}`}});if(!p.ok)throw Error(`Copilot token exchange failed: HTTP ${p.status}`);let m=l(await p.json()),h={token:m.token,expiresAt:m.expiresAt,updatedAt:Date.now()};return u(n,h),{token:h.token,expiresAt:h.expiresAt,source:`fetched:${o}`,baseUrl:d(h.token)??`https://api.individual.githubcopilot.com`}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
2
|
+
//# sourceMappingURL=github-copilot-token-zskwAEpd.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`undici`),l=require(`node:fs`);l=s(l);let u=require(`node:path`);u=s(u);let d=require(`tslog`),f=require(`node:os`);f=s(f);let p=require(`json5`);p=s(p);let m=require(`chalk`);m=s(m);let h=require(`node:dns`),g=require(`node:dns/promises`),_=require(`ipaddr.js`);_=s(_);const v=new Set([`--dev`,`--no-color`]),ee=new Set([`--profile`,`--log-level`]);function te(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function ne(e,t){let n=e[t];return n?v.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:ee.has(n)?te(e[t+1])?2:1:0:0}function re(e,t=2){return ie(e,t,{skipRootOptions:!0})}function ie(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=ne(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}const y=`/tmp/qbotclaw`,ae=l.default.constants.W_OK|l.default.constants.X_OK;function oe(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function se(e={}){let t=e.accessSync??l.default.accessSync,n=e.chmodSync??l.default.chmodSync,r=e.lstatSync??l.default.lstatSync,i=e.mkdirSync??l.default.mkdirSync,a=e.warn??(e=>console.warn(e)),o=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),s=e.tmpdir??f.default.tmpdir,c=o(),d=e=>c===void 0?!0:!(typeof e.uid==`number`&&e.uid!==c||typeof e.mode==`number`&&e.mode&18),p=()=>{let e=s(),t=c===void 0?`qbotclaw`:`qbotclaw-${c}`;return u.default.join(e,t)},m=e=>e.isDirectory()&&!e.isSymbolicLink()&&d(e),h=e=>{try{return m(r(e))?(t(e,ae),`available`):`invalid`}catch(e){return oe(e,`ENOENT`)?`missing`:`invalid`}},g=e=>{try{let t=r(e);return!t.isDirectory()||t.isSymbolicLink()||c!==void 0&&typeof t.uid==`number`&&t.uid!==c||typeof t.mode!=`number`||!(t.mode&18)?!1:(n(e,448),a(`[openclaw] tightened permissions on temp dir: ${e}`),h(e)===`available`)}catch{return!1}},_=()=>{let e=p(),t=h(e);if(t===`available`)return e;if(t===`invalid`){if(g(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{i(e,{recursive:!0,mode:448}),n(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(h(e)!==`available`&&!g(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},v=h(y);if(v===`available`)return y;if(v===`invalid`)return g(`/tmp/qbotclaw`)?y:_();try{return t(`/tmp`,ae),i(y,{recursive:!0,mode:448}),n(y,448),h(`/tmp/qbotclaw`)!==`available`&&!g(`/tmp/qbotclaw`)?_():y}catch{return _()}}function b(e){return e?.trim()||void 0}function x(e=process.env,t=f.default.homedir){let n=ce(e,t);return n?u.default.resolve(n):void 0}function ce(e,t){let n=b(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let r=b(e.HOME)??b(e.USERPROFILE)??S(t);return r?n.replace(/^~(?=$|[\\/])/,r):void 0}return n}return b(e.HOME)||b(e.USERPROFILE)||S(t)}function S(e){try{return b(e())}catch{return}}function C(e=process.env,t=f.default.homedir){return x(e,t)??u.default.resolve(process.cwd())}function le(e,t){if(!e.startsWith(`~`))return e;let n=b(t?.home)??x(t?.env??process.env,t?.homedir??f.default.homedir);return n?e.replace(/^~(?=$|[\\/])/,n):e}function ue(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}ue();const de=[`.clawdbot`,`.moldbot`,`.moltbot`],w=`.openclaw-qbot.json`,T=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function fe(){return C(process.env,f.default.homedir)}function E(e){return()=>C(e,f.default.homedir)}function pe(e=fe){return de.map(t=>u.default.join(e(),t))}function me(e=fe){return u.default.join(e(),`.qbotclaw`)}function D(e=process.env,t=E(e)){let n=()=>C(e,t),r=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(r)return O(r,e,n);let i=me(n);if(e.OPENCLAW_TEST_FAST===`1`)return i;let a=pe(n);return l.default.existsSync(i)?i:a.find(e=>{try{return l.default.existsSync(e)}catch{return!1}})||i}function O(e,t=process.env,n=E(t)){let r=e.trim();if(!r)return r;if(r.startsWith(`~`)){let e=le(r,{home:C(t,n),env:t,homedir:n});return u.default.resolve(e)}return u.default.resolve(r)}D();function he(e=process.env,t=D(e,E(e))){let n=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();return n?O(n,e,E(e)):u.default.join(t,w)}function ge(e=process.env,t=E(e)){return e.OPENCLAW_TEST_FAST===`1`?he(e,D(e,t)):ve(e,t).find(e=>{try{return l.default.existsSync(e)}catch{return!1}})||he(e,D(e,t))}function _e(e=process.env,t=D(e,E(e)),n=E(e)){let r=e.OPENCLAW_CONFIG_PATH?.trim();if(r)return O(r,e,n);if(e.OPENCLAW_TEST_FAST===`1`)return u.default.join(t,w);let i=e.OPENCLAW_STATE_DIR?.trim(),a=[u.default.join(t,w),...T.map(e=>u.default.join(t,e))].find(e=>{try{return l.default.existsSync(e)}catch{return!1}});if(a)return a;if(i)return u.default.join(t,w);let o=D(e,n);return u.default.resolve(t)===u.default.resolve(o)?ge(e,n):u.default.join(t,w)}ge();function ve(e=process.env,t=E(e)){let n=()=>C(e,t),r=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();if(r)return[O(r,e,n)];let i=[],a=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(a){let t=O(a,e,n);i.push(u.default.join(t,w)),i.push(...T.map(e=>u.default.join(t,e)))}let o=[me(n),...pe(n)];for(let e of o)i.push(u.default.join(e,w)),i.push(...T.map(t=>u.default.join(e,t)));return i}function k(){let e=_e();try{if(!l.default.existsSync(e))return;let t=l.default.readFileSync(e,`utf-8`),n=p.default.parse(t)?.logging;return!n||typeof n!=`object`||Array.isArray(n)?void 0:n}catch{return}}const A=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function j(e){if(typeof e!=`string`)return;let t=e.trim();return A.includes(t)?t:void 0}function M(e,t=`info`){return j(e)??t}function N(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const P={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function F(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){P.invalidEnvLogLevelValue=null;return}let n=j(t);if(n)return P.invalidEnvLogLevelValue=null,n;P.invalidEnvLogLevelValue!==t&&(P.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${A.join(`|`)}).\n`))}function I(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function ye(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function L(e,t){let n=t??process.env.TZ,r=n&&ye(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const R=se();u.default.join(R,`qbotclaw.log`);const z=`qbotclaw`,B=`.log`,V=500*1024*1024,be=I(require(`url`).pathToFileURL(__filename).href),H=new Set;function xe(e=process.argv){let[t,n]=re(e,2);return t===`config`&&n===`validate`}function Se(e,t){e.attachTransport(e=>{if(H.has(t))try{t(e)}catch{}})}function Ce(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!P.overrideSettings}function we(){let e=F();if(Ce(e))return{level:`silent`,file:Pe(),maxFileBytes:V};let t=P.overrideSettings??k();if(!t&&!xe())try{t=(be?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=M(t?.level,n);return{level:e??r,file:t?.file??Pe(),maxFileBytes:Oe(t?.maxFileBytes)}}function Te(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function Ee(e){let t=P.cachedSettings??we();return P.cachedSettings||=t,t.level===`silent`?!1:N(e)<=N(t.level)}function De(e){let t=new d.Logger({name:`openclaw`,minLevel:N(e.level),type:`hidden`});if(e.level===`silent`){for(let e of H)Se(t,e);return t}l.default.mkdirSync(u.default.dirname(e.file),{recursive:!0}),Fe(e.file)&&Ie(u.default.dirname(e.file));let n=ke(e.file),r=!1;t.attachTransport(t=>{try{let i=L(t.date??new Date),a=`${JSON.stringify({...t,time:i})}\n`,o=Buffer.byteLength(a,`utf8`),s=n+o;if(s>e.maxFileBytes){if(!r){r=!0;let t=JSON.stringify({time:L(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});Ae(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}Ae(e.file,a)&&(n=s)}catch{}});for(let e of H)Se(t,e);return t}function Oe(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):V}function ke(e){try{return l.default.statSync(e).size}catch{return 0}}function Ae(e,t){try{return l.default.appendFileSync(e,t,{encoding:`utf8`}),!0}catch{return!1}}function je(){let e=we(),t=P.cachedLogger,n=P.cachedSettings;return(!t||Te(n,e))&&(P.cachedLogger=De(e),P.cachedSettings=e),P.cachedLogger}function Me(e,t){let n=je(),r=t?.level?N(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function Ne(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function Pe(){let e=Ne(new Date);return u.default.join(R,`${z}-${e}${B}`)}function Fe(e){let t=u.default.basename(e);return t.startsWith(`${z}-`)&&t.endsWith(B)&&t.length===`${z}-YYYY-MM-DD${B}`.length}function Ie(e){try{let t=l.default.readdirSync(e,{withFileTypes:!0}),n=Date.now()-864e5;for(let r of t){if(!r.isFile()||!r.name.startsWith(`${z}-`)||!r.name.endsWith(B))continue;let t=u.default.join(e,r.name);try{l.default.statSync(t).mtimeMs<n&&l.default.rmSync(t,{force:!0})}catch{}}}catch{}}const U={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},Le=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,Re=process.env.NO_COLOR&&!Le?new m.Chalk({level:0}):m.default,W=e=>Re.hex(e),G={accent:W(U.accent),accentBright:W(U.accentBright),accentDim:W(U.accentDim),info:W(U.info),success:W(U.success),warn:W(U.warn),error:W(U.error),muted:W(U.muted),heading:Re.bold.hex(U.accent),command:W(U.accentBright),option:W(U.warn)};function K(){return!1}G.success;const ze=G.warn;G.info,G.error;function q(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Be(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1,r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){q(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){q(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){q(`stdout reset`,t,e)}}function Ve(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function He(){return{log:(...e)=>{Ve()&&console.log(...e)},error:(...e)=>{console.error(...e)}}}const Ue={...He(),exit:e=>{throw Be(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});const We=I(require(`url`).pathToFileURL(__filename).href);let Ge=()=>{try{return(We?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function Ke(e){return K()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:M(e,`info`)}function qe(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function Je(){let e=F();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!K()&&!e&&!P.overrideSettings)return{level:`silent`,style:qe(void 0)};let t=P.overrideSettings??k();if(!t)if(P.resolvingConsoleSettings)t=void 0;else{P.resolvingConsoleSettings=!0;try{t=Ge()}finally{P.resolvingConsoleSettings=!1}}return{level:e??Ke(t?.consoleLevel),style:qe(t?.consoleStyle)}}function Ye(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function J(){let e=Je(),t=P.cachedConsoleSettings;return(!t||Ye(t,e))&&(P.cachedConsoleSettings=e),P.cachedConsoleSettings}function Xe(e){let t=P.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}function Y(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:L(t)}function Ze(e,t){return t.level===`silent`?!1:N(e)<=N(t.level)}(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function Qe(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function $e(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new m.Chalk({level:0}):process.stdout.isTTY||process.stderr.isTTY||Qe()?new m.Chalk({level:1}):new m.Chalk({level:0})}const et=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],tt={"gmail-watcher":`blue`},nt=[`gateway`,`channels`,`providers`],rt=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function it(e,t){let n=tt[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[et[Math.abs(r)%et.length]]}function at(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&nt.includes(t[0]);)t.shift();return t.length===0?n:rt.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function ot(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function st(e){let t=e.style===`json`?e.subsystem:at(e.subsystem);if(e.style===`json`)return JSON.stringify({time:Y(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=$e(),r=`[${t}]`,i=it(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=ot(e.message,t);return`${[e.style===`pretty`?n.gray(Y(`pretty`)):P.consoleTimestampPrefix?n.gray(Y(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function ct(e,t){let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=P.rawConsole??console;P.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function lt(e){return K()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function ut(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function dt(e){let t=null,n=()=>(t||=Me({subsystem:e}),t),r=(t,r,i)=>{let a=J(),o=Ze(t,{level:a.level})&&Xe(e),s=Ee(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&ut(n(),t,r,l),!o)return;let u=c??r;lt({level:t,subsystem:e,message:u,meta:l})||ct(t,st({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>Ze(t,{level:J().level})&&Xe(e),a=e=>Ee(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&ut(n(),`info`,t,{raw:!0}),i(`info`)){if(lt({level:`info`,subsystem:e,message:t}))return;ct(`info`,t)}},child:t=>dt(`${e}/${t}`)}}const ft=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function pt(e){let t=e.match(ft);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function mt(e){let t=e.runtime===Ue?pt(e.message):null;if(t){dt(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),je()[e.loggerMethod](e.message)}function ht(e,t=Ue){mt({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:ze,loggerMethod:`warn`,subsystemMethod:`warn`})}function gt(){this.abort()}function _t(e){return gt.bind(e)}const vt=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function yt(e=process.env){for(let t of vt){let n=e[t];if(typeof n==`string`&&n.trim().length>0)return!0}return!1}const bt=new Set([`unspecified`,`broadcast`,`multicast`,`linkLocal`,`loopback`,`carrierGradeNat`,`private`,`reserved`]),xt=new Set([`unspecified`,`loopback`,`linkLocal`,`uniqueLocal`,`multicast`]),St=[_.default.IPv4.parse(`198.18.0.0`),15],Ct=[{matches:e=>e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0,toHextets:e=>[e[6],e[7]]},{matches:e=>e[0]===100&&e[1]===65435&&e[2]===1&&e[3]===0&&e[4]===0&&e[5]===0,toHextets:e=>[e[6],e[7]]},{matches:e=>e[0]===8194,toHextets:e=>[e[1],e[2]]},{matches:e=>e[0]===8193&&e[1]===0,toHextets:e=>[e[6]^65535,e[7]^65535]},{matches:e=>(e[4]&64767)==0&&e[5]===24318,toHextets:e=>[e[6],e[7]]}];function X(e){return e.startsWith(`[`)&&e.endsWith(`]`)?e.slice(1,-1):e}function wt(e){return/^[0-9]+$/.test(e)||/^0x[0-9a-f]+$/i.test(e)}function Tt(e){if(!e.includes(`:`)||!e.includes(`.`))return;let t=/^(.*:)([^:%]+(?:\.[^:%]+){3})(%[0-9A-Za-z]+)?$/i.exec(e);if(!t)return;let[,n,r,i=``]=t;if(!_.default.IPv4.isValidFourPartDecimal(r))return;let a=r.split(`.`).map(e=>Number.parseInt(e,10)),o=`${n}${(a[0]<<8|a[1]).toString(16)}:${(a[2]<<8|a[3]).toString(16)}${i}`;if(_.default.IPv6.isValid(o))return _.default.IPv6.parse(o)}function Et(e){return e.kind()===`ipv4`}function Dt(e){let t=e?.trim();if(!t)return;let n=X(t);if(n)return _.default.IPv4.isValid(n)?_.default.IPv4.isValidFourPartDecimal(n)?_.default.IPv4.parse(n):void 0:_.default.IPv6.isValid(n)?_.default.IPv6.parse(n):Tt(n)}function Ot(e){let t=e?.trim();if(!t)return;let n=X(t);if(n)return _.default.isValid(n)?_.default.parse(n):Tt(n)}function kt(e){let t=e?.trim();if(!t)return!1;let n=X(t);return n?_.default.IPv4.isValidFourPartDecimal(n):!1}function At(e){let t=e?.trim();if(!t)return!1;let n=X(t);if(!n||n.includes(`:`)||kt(n))return!1;let r=n.split(`.`);return!(r.length===0||r.length>4||r.some(e=>e.length===0)||!r.every(e=>wt(e)))}function jt(e){return xt.has(e.range())?!0:(e.parts[0]&65472)==65216}function Mt(e,t={}){let n=e.match(St);return n&&t.allowRfc2544BenchmarkRange===!0?!1:bt.has(e.range())||n}function Nt(e,t){let n=[e>>>8&255,e&255,t>>>8&255,t&255];return _.default.IPv4.parse(n.join(`.`))}function Pt(e){if(e.isIPv4MappedAddress())return e.toIPv4Address();if(e.range()===`rfc6145`||e.range()===`rfc6052`)return Nt(e.parts[6],e.parts[7]);for(let t of Ct){if(!t.matches(e.parts))continue;let[n,r]=t.toHextets(e.parts);return Nt(n,r)}}function Z(e){let t=e.trim().toLowerCase().replace(/\.$/,``);return t.startsWith(`[`)&&t.endsWith(`]`)?t.slice(1,-1):t}var Q=class extends Error{constructor(e){super(e),this.name=`SsrFBlockedError`}};const Ft=new Set([`localhost`,`localhost.localdomain`,`metadata.google.internal`]);function It(e){return!e||e.length===0?new Set:new Set(e.map(e=>Z(e)).filter(Boolean))}function Lt(e){return!e||e.length===0?[]:Array.from(new Set(e.map(e=>Z(e)).filter(e=>e!==`*`&&e!==`*.`&&e.length>0)))}function Rt(e){return e?.dangerouslyAllowPrivateNetwork===!0||e?.allowPrivateNetwork===!0}function zt(e){return{allowRfc2544BenchmarkRange:e?.allowRfc2544BenchmarkRange===!0}}function Bt(e,t){if(t.startsWith(`*.`)){let n=t.slice(2);return!n||e===n?!1:e.endsWith(`.${n}`)}return e===t}function Vt(e,t){return t.length===0?!0:t.some(t=>Bt(e,t))}function Ht(e){let t=e.split(`.`);return t.length===0||t.length>4?!1:t.some(e=>e.length===0)?!0:t.every(e=>/^[0-9]+$/.test(e)||/^0x/i.test(e))}function Ut(e,t){let n=e.trim().toLowerCase();if(n.startsWith(`[`)&&n.endsWith(`]`)&&(n=n.slice(1,-1)),!n)return!1;let r=zt(t),i=Dt(n);if(i){if(Et(i))return Mt(i,r);if(jt(i))return!0;let e=Pt(i);return e?Mt(e,r):!1}return!!(n.includes(`:`)&&!Ot(n)||!kt(n)&&At(n)||Ht(n))}function Wt(e){return Ft.has(e)?!0:e.endsWith(`.localhost`)||e.endsWith(`.local`)||e.endsWith(`.internal`)}function Gt(e,t){let n=Z(e);return n?Wt(n)||Ut(n,t):!1}function Kt(e,t){if(Gt(e,t))throw new Q(`Blocked hostname or private/internal/special-use IP address`)}function qt(e,t){for(let n of e)if(Gt(n.address,t))throw new Q(`Blocked: resolves to private/internal/special-use IP address`)}function Jt(e){let t=Z(e.hostname),n=e.fallback??h.lookup,r=n,i=n,a=e.addresses.map(e=>({address:e,family:e.includes(`:`)?6:4})),o=0;return((e,n,s)=>{let c=typeof n==`function`?n:s;if(!c)return;let l=Z(e);if(!l||l!==t)return typeof n==`function`||n===void 0?r(e,c):i(e,n,c);let u=typeof n==`object`&&n?n:{},d=typeof n==`number`?n:typeof u.family==`number`?u.family:0,f=d===4||d===6?a.filter(e=>e.family===d):a,p=f.length>0?f:a;if(u.all){c(null,p);return}let m=p[o%p.length];o+=1,c(null,m.address,m.family)})}function Yt(e){let t=new Set,n=[],r=[];for(let i of e)if(!t.has(i.address)){if(t.add(i.address),i.family===4){n.push(i.address);continue}r.push(i.address)}return[...n,...r]}async function Xt(e,t={}){let n=Z(e);if(!n)throw Error(`Invalid hostname`);let r=Rt(t.policy),i=It(t.policy?.allowedHostnames),a=Lt(t.policy?.hostnameAllowlist),o=i.has(n),s=r||o;if(!Vt(n,a))throw new Q(`Blocked hostname (not in allowlist): ${e}`);s||Kt(n,t.policy);let c=await(t.lookupFn??g.lookup)(n,{all:!0});if(c.length===0)throw Error(`Unable to resolve hostname: ${e}`);s||qt(c,t.policy);let l=Yt(c);if(l.length===0)throw Error(`Unable to resolve hostname: ${e}`);return{hostname:n,addresses:l,lookup:Jt({hostname:n,addresses:l})}}function Zt(e){return new c.Agent({connect:{lookup:e.lookup}})}async function Qt(e){if(!e)return;let t=e;try{if(typeof t.close==`function`){await t.close();return}typeof t.destroy==`function`&&t.destroy()}catch{}}const $={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},$t=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function en(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?$.TRUSTED_ENV_PROXY:$.STRICT}function tn(e){return e===301||e===302||e===303||e===307||e===308}function nn(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())$t.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function rn(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=_t(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function an(e){let t=e.fetchImpl??globalThis.fetch;if(!t)throw Error(`fetch is not available`);let n=typeof e.maxRedirects==`number`&&Number.isFinite(e.maxRedirects)?Math.max(0,Math.floor(e.maxRedirects)):3,r=en(e),{signal:i,cleanup:a}=rn({timeoutMs:e.timeoutMs,signal:e.signal}),o=!1,s=async e=>{o||(o=!0,a(),await Qt(e??void 0))},l=new Set,u=e.url,d=e.init?{...e.init}:void 0,f=0;for(;;){let a;try{a=new URL(u)}catch{throw await s(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(a.protocol))throw await s(),Error(`Invalid URL: must be http or https`);let o=null;try{let p=await Xt(a.hostname,{lookupFn:e.lookupFn,policy:e.policy});r===$.TRUSTED_ENV_PROXY&&yt()?o=new c.EnvHttpProxyAgent:e.pinDns!==!1&&(o=Zt(p));let m={...d?{...d}:{},redirect:`manual`,...o?{dispatcher:o}:{},...i?{signal:i}:{}},h=await t(a.toString(),m);if(tn(h.status)){let e=h.headers.get(`location`);if(!e)throw await s(o),Error(`Redirect missing location header (${h.status})`);if(f+=1,f>n)throw await s(o),Error(`Too many redirects (limit: ${n})`);let t=new URL(e,a),r=t.toString();if(l.has(r))throw await s(o),Error(`Redirect loop detected`);t.origin!==a.origin&&(d=nn(d)),l.add(r),h.body?.cancel(),await Qt(o),u=r;continue}return{response:h,finalUrl:u,release:async()=>s(o)}}catch(t){throw t instanceof Q&&ht(`security: blocked URL fetch (${e.auditContext??`url-fetch`}) target=${a.origin}${a.pathname} reason=${t.message}`),await s(o),t}}}function on(){return!!(process.env.WSL_INTEROP||process.env.WSL_DISTRO_NAME||process.env.WSLENV)}function sn(){if(process.platform!==`linux`)return!1;if(on())return!0;try{let e=(0,l.readFileSync)(`/proc/version`,`utf8`).toLowerCase();return e.includes(`microsoft`)||e.includes(`wsl`)}catch{return!1}}function cn(){if(!sn())return!1;try{let e=(0,l.readFileSync)(`/proc/version`,`utf8`).toLowerCase();return e.includes(`wsl2`)||e.includes(`microsoft-standard`)}catch{return!1}}function ln(e){return{success:!1,error:{issues:[{path:[],message:e}]}}}function un(){return{safeParse(e){return e===void 0?{success:!0,data:void 0}:!e||typeof e!=`object`||Array.isArray(e)?ln(`expected config object`):Object.keys(e).length>0?ln(`config must be empty`):{success:!0,data:e}},jsonSchema:{type:`object`,additionalProperties:!1,properties:{}}}}function dn(e){let t=e.email??void 0;return{profiles:[{profileId:`${e.profilePrefix??e.providerId}:${t??`default`}`,credential:{type:`oauth`,provider:e.providerId,access:e.access,...e.refresh?{refresh:e.refresh}:{},...Number.isFinite(e.expires)?{expires:e.expires}:{},...t?{email:t}:{},...e.credentialExtra}}],configPatch:e.configPatch??{agents:{defaults:{models:{[e.defaultModel]:{}}}}},defaultModel:e.defaultModel,notes:e.notes}}exports.buildOauthProviderAuthResult=dn,exports.emptyPluginConfigSchema=un,exports.fetchWithSsrFGuard=an,exports.isWSL2Sync=cn;
|
|
2
|
+
//# sourceMappingURL=google-gemini-cli-auth.cjs.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Agent as e,EnvHttpProxyAgent as t}from"undici";import n,{readFileSync as r}from"node:fs";import i from"node:path";import{Logger as a}from"tslog";import o from"node:os";import s from"json5";import c,{Chalk as l}from"chalk";import{lookup as u}from"node:dns";import{lookup as d}from"node:dns/promises";import f from"ipaddr.js";const p=new Set([`--dev`,`--no-color`]),m=new Set([`--profile`,`--log-level`]);function h(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function g(e,t){let n=e[t];return n?p.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:m.has(n)?h(e[t+1])?2:1:0:0}function _(e,t=2){return v(e,t,{skipRootOptions:!0})}function v(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=g(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}const y=`/tmp/qbotclaw`,b=n.constants.W_OK|n.constants.X_OK;function ee(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function te(e={}){let t=e.accessSync??n.accessSync,r=e.chmodSync??n.chmodSync,a=e.lstatSync??n.lstatSync,s=e.mkdirSync??n.mkdirSync,c=e.warn??(e=>console.warn(e)),l=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),u=e.tmpdir??o.tmpdir,d=l(),f=e=>d===void 0?!0:!(typeof e.uid==`number`&&e.uid!==d||typeof e.mode==`number`&&e.mode&18),p=()=>{let e=u(),t=d===void 0?`qbotclaw`:`qbotclaw-${d}`;return i.join(e,t)},m=e=>e.isDirectory()&&!e.isSymbolicLink()&&f(e),h=e=>{try{return m(a(e))?(t(e,b),`available`):`invalid`}catch(e){return ee(e,`ENOENT`)?`missing`:`invalid`}},g=e=>{try{let t=a(e);return!t.isDirectory()||t.isSymbolicLink()||d!==void 0&&typeof t.uid==`number`&&t.uid!==d||typeof t.mode!=`number`||!(t.mode&18)?!1:(r(e,448),c(`[openclaw] tightened permissions on temp dir: ${e}`),h(e)===`available`)}catch{return!1}},_=()=>{let e=p(),t=h(e);if(t===`available`)return e;if(t===`invalid`){if(g(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{s(e,{recursive:!0,mode:448}),r(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(h(e)!==`available`&&!g(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},v=h(y);if(v===`available`)return y;if(v===`invalid`)return g(`/tmp/qbotclaw`)?y:_();try{return t(`/tmp`,b),s(y,{recursive:!0,mode:448}),r(y,448),h(`/tmp/qbotclaw`)!==`available`&&!g(`/tmp/qbotclaw`)?_():y}catch{return _()}}function x(e){return e?.trim()||void 0}function ne(e=process.env,t=o.homedir){let n=re(e,t);return n?i.resolve(n):void 0}function re(e,t){let n=x(e.OPENCLAW_HOME);if(n){if(n===`~`||n.startsWith(`~/`)||n.startsWith(`~\\`)){let r=x(e.HOME)??x(e.USERPROFILE)??ie(t);return r?n.replace(/^~(?=$|[\\/])/,r):void 0}return n}return x(e.HOME)||x(e.USERPROFILE)||ie(t)}function ie(e){try{return x(e())}catch{return}}function S(e=process.env,t=o.homedir){return ne(e,t)??i.resolve(process.cwd())}function ae(e,t){if(!e.startsWith(`~`))return e;let n=x(t?.home)??ne(t?.env??process.env,t?.homedir??o.homedir);return n?e.replace(/^~(?=$|[\\/])/,n):e}function oe(e=process.env){return e.OPENCLAW_NIX_MODE===`1`}oe();const se=[`.clawdbot`,`.moldbot`,`.moltbot`],C=`.openclaw-qbot.json`,w=[`openclaw.json`,`clawdbot.json`,`moldbot.json`,`moltbot.json`];function ce(){return S(process.env,o.homedir)}function T(e){return()=>S(e,o.homedir)}function le(e=ce){return se.map(t=>i.join(e(),t))}function ue(e=ce){return i.join(e(),`.qbotclaw`)}function E(e=process.env,t=T(e)){let r=()=>S(e,t),i=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(i)return D(i,e,r);let a=ue(r);if(e.OPENCLAW_TEST_FAST===`1`)return a;let o=le(r);return n.existsSync(a)?a:o.find(e=>{try{return n.existsSync(e)}catch{return!1}})||a}function D(e,t=process.env,n=T(t)){let r=e.trim();if(!r)return r;if(r.startsWith(`~`)){let e=ae(r,{home:S(t,n),env:t,homedir:n});return i.resolve(e)}return i.resolve(r)}E();function de(e=process.env,t=E(e,T(e))){let n=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();return n?D(n,e,T(e)):i.join(t,C)}function fe(e=process.env,t=T(e)){return e.OPENCLAW_TEST_FAST===`1`?de(e,E(e,t)):me(e,t).find(e=>{try{return n.existsSync(e)}catch{return!1}})||de(e,E(e,t))}function pe(e=process.env,t=E(e,T(e)),r=T(e)){let a=e.OPENCLAW_CONFIG_PATH?.trim();if(a)return D(a,e,r);if(e.OPENCLAW_TEST_FAST===`1`)return i.join(t,C);let o=e.OPENCLAW_STATE_DIR?.trim(),s=[i.join(t,C),...w.map(e=>i.join(t,e))].find(e=>{try{return n.existsSync(e)}catch{return!1}});if(s)return s;if(o)return i.join(t,C);let c=E(e,r);return i.resolve(t)===i.resolve(c)?fe(e,r):i.join(t,C)}fe();function me(e=process.env,t=T(e)){let n=()=>S(e,t),r=e.OPENCLAW_CONFIG_PATH?.trim()||e.CLAWDBOT_CONFIG_PATH?.trim();if(r)return[D(r,e,n)];let a=[],o=e.OPENCLAW_STATE_DIR?.trim()||e.CLAWDBOT_STATE_DIR?.trim();if(o){let t=D(o,e,n);a.push(i.join(t,C)),a.push(...w.map(e=>i.join(t,e)))}let s=[ue(n),...le(n)];for(let e of s)a.push(i.join(e,C)),a.push(...w.map(t=>i.join(e,t)));return a}function he(){let e=pe();try{if(!n.existsSync(e))return;let t=n.readFileSync(e,`utf-8`),r=s.parse(t)?.logging;return!r||typeof r!=`object`||Array.isArray(r)?void 0:r}catch{return}}const ge=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function _e(e){if(typeof e!=`string`)return;let t=e.trim();return ge.includes(t)?t:void 0}function O(e,t=`info`){return _e(e)??t}function k(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const A={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function j(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){A.invalidEnvLogLevelValue=null;return}let n=_e(t);if(n)return A.invalidEnvLogLevelValue=null,n;A.invalidEnvLogLevelValue!==t&&(A.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${ge.join(`|`)}).\n`))}function M(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function ve(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function N(e,t){let n=t??process.env.TZ,r=n&&ve(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const P=te();i.join(P,`qbotclaw.log`);const F=`qbotclaw`,I=`.log`,L=500*1024*1024,ye=M(import.meta.url),R=new Set;function be(e=process.argv){let[t,n]=_(e,2);return t===`config`&&n===`validate`}function z(e,t){e.attachTransport(e=>{if(R.has(t))try{t(e)}catch{}})}function xe(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!A.overrideSettings}function B(){let e=j();if(xe(e))return{level:`silent`,file:ke(),maxFileBytes:L};let t=A.overrideSettings??he();if(!t&&!be())try{t=(ye?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=O(t?.level,n);return{level:e??r,file:t?.file??ke(),maxFileBytes:we(t?.maxFileBytes)}}function Se(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function V(e){let t=A.cachedSettings??B();return A.cachedSettings||=t,t.level===`silent`?!1:k(e)<=k(t.level)}function Ce(e){let t=new a({name:`openclaw`,minLevel:k(e.level),type:`hidden`});if(e.level===`silent`){for(let e of R)z(t,e);return t}n.mkdirSync(i.dirname(e.file),{recursive:!0}),Ae(e.file)&&je(i.dirname(e.file));let r=Te(e.file),o=!1;t.attachTransport(t=>{try{let n=N(t.date??new Date),i=`${JSON.stringify({...t,time:n})}\n`,a=Buffer.byteLength(i,`utf8`),s=r+a;if(s>e.maxFileBytes){if(!o){o=!0;let t=JSON.stringify({time:N(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});H(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}H(e.file,i)&&(r=s)}catch{}});for(let e of R)z(t,e);return t}function we(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):L}function Te(e){try{return n.statSync(e).size}catch{return 0}}function H(e,t){try{return n.appendFileSync(e,t,{encoding:`utf8`}),!0}catch{return!1}}function Ee(){let e=B(),t=A.cachedLogger,n=A.cachedSettings;return(!t||Se(n,e))&&(A.cachedLogger=Ce(e),A.cachedSettings=e),A.cachedLogger}function De(e,t){let n=Ee(),r=t?.level?k(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function Oe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function ke(){let e=Oe(new Date);return i.join(P,`${F}-${e}${I}`)}function Ae(e){let t=i.basename(e);return t.startsWith(`${F}-`)&&t.endsWith(I)&&t.length===`${F}-YYYY-MM-DD${I}`.length}function je(e){try{let t=n.readdirSync(e,{withFileTypes:!0}),r=Date.now()-864e5;for(let a of t){if(!a.isFile()||!a.name.startsWith(`${F}-`)||!a.name.endsWith(I))continue;let t=i.join(e,a.name);try{n.statSync(t).mtimeMs<r&&n.rmSync(t,{force:!0})}catch{}}}catch{}}const U={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},Me=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,Ne=process.env.NO_COLOR&&!Me?new l({level:0}):c,W=e=>Ne.hex(e),G={accent:W(U.accent),accentBright:W(U.accentBright),accentDim:W(U.accentDim),info:W(U.info),success:W(U.success),warn:W(U.warn),error:W(U.error),muted:W(U.muted),heading:Ne.bold.hex(U.accent),command:W(U.accentBright),option:W(U.warn)};function K(){return!1}G.success;const Pe=G.warn;G.info,G.error;function q(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Fe(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1,r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){q(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){q(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){q(`stdout reset`,t,e)}}function Ie(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function Le(){return{log:(...e)=>{Ie()&&console.log(...e)},error:(...e)=>{console.error(...e)}}}const Re={...Le(),exit:e=>{throw Fe(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});const ze=M(import.meta.url);let Be=()=>{try{return(ze?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function Ve(e){return K()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:O(e,`info`)}function He(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function Ue(){let e=j();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!K()&&!e&&!A.overrideSettings)return{level:`silent`,style:He(void 0)};let t=A.overrideSettings??he();if(!t)if(A.resolvingConsoleSettings)t=void 0;else{A.resolvingConsoleSettings=!0;try{t=Be()}finally{A.resolvingConsoleSettings=!1}}return{level:e??Ve(t?.consoleLevel),style:He(t?.consoleStyle)}}function We(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function Ge(){let e=Ue(),t=A.cachedConsoleSettings;return(!t||We(t,e))&&(A.cachedConsoleSettings=e),A.cachedConsoleSettings}function Ke(e){let t=A.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}function J(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:N(t)}function qe(e,t){return t.level===`silent`?!1:k(e)<=k(t.level)}(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function Je(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function Ye(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new l({level:0}):process.stdout.isTTY||process.stderr.isTTY||Je()?new l({level:1}):new l({level:0})}const Xe=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],Ze={"gmail-watcher":`blue`},Qe=[`gateway`,`channels`,`providers`],$e=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function et(e,t){let n=Ze[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[Xe[Math.abs(r)%Xe.length]]}function tt(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&Qe.includes(t[0]);)t.shift();return t.length===0?n:$e.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function nt(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function rt(e){let t=e.style===`json`?e.subsystem:tt(e.subsystem);if(e.style===`json`)return JSON.stringify({time:J(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=Ye(),r=`[${t}]`,i=et(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=nt(e.message,t);return`${[e.style===`pretty`?n.gray(J(`pretty`)):A.consoleTimestampPrefix?n.gray(J(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function it(e,t){let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=A.rawConsole??console;A.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function at(e){return K()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function ot(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function st(e){let t=null,n=()=>(t||=De({subsystem:e}),t),r=(t,r,i)=>{let a=Ge(),o=qe(t,{level:a.level})&&Ke(e),s=V(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&ot(n(),t,r,l),!o)return;let u=c??r;at({level:t,subsystem:e,message:u,meta:l})||it(t,rt({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>qe(t,{level:Ge().level})&&Ke(e),a=e=>V(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&ot(n(),`info`,t,{raw:!0}),i(`info`)){if(at({level:`info`,subsystem:e,message:t}))return;it(`info`,t)}},child:t=>st(`${e}/${t}`)}}const ct=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function lt(e){let t=e.match(ct);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function ut(e){let t=e.runtime===Re?lt(e.message):null;if(t){st(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),Ee()[e.loggerMethod](e.message)}function dt(e,t=Re){ut({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:Pe,loggerMethod:`warn`,subsystemMethod:`warn`})}function ft(){this.abort()}function pt(e){return ft.bind(e)}const mt=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function ht(e=process.env){for(let t of mt){let n=e[t];if(typeof n==`string`&&n.trim().length>0)return!0}return!1}const gt=new Set([`unspecified`,`broadcast`,`multicast`,`linkLocal`,`loopback`,`carrierGradeNat`,`private`,`reserved`]),_t=new Set([`unspecified`,`loopback`,`linkLocal`,`uniqueLocal`,`multicast`]),vt=[f.IPv4.parse(`198.18.0.0`),15],yt=[{matches:e=>e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0,toHextets:e=>[e[6],e[7]]},{matches:e=>e[0]===100&&e[1]===65435&&e[2]===1&&e[3]===0&&e[4]===0&&e[5]===0,toHextets:e=>[e[6],e[7]]},{matches:e=>e[0]===8194,toHextets:e=>[e[1],e[2]]},{matches:e=>e[0]===8193&&e[1]===0,toHextets:e=>[e[6]^65535,e[7]^65535]},{matches:e=>(e[4]&64767)==0&&e[5]===24318,toHextets:e=>[e[6],e[7]]}];function Y(e){return e.startsWith(`[`)&&e.endsWith(`]`)?e.slice(1,-1):e}function bt(e){return/^[0-9]+$/.test(e)||/^0x[0-9a-f]+$/i.test(e)}function xt(e){if(!e.includes(`:`)||!e.includes(`.`))return;let t=/^(.*:)([^:%]+(?:\.[^:%]+){3})(%[0-9A-Za-z]+)?$/i.exec(e);if(!t)return;let[,n,r,i=``]=t;if(!f.IPv4.isValidFourPartDecimal(r))return;let a=r.split(`.`).map(e=>Number.parseInt(e,10)),o=`${n}${(a[0]<<8|a[1]).toString(16)}:${(a[2]<<8|a[3]).toString(16)}${i}`;if(f.IPv6.isValid(o))return f.IPv6.parse(o)}function St(e){return e.kind()===`ipv4`}function Ct(e){let t=e?.trim();if(!t)return;let n=Y(t);if(n)return f.IPv4.isValid(n)?f.IPv4.isValidFourPartDecimal(n)?f.IPv4.parse(n):void 0:f.IPv6.isValid(n)?f.IPv6.parse(n):xt(n)}function wt(e){let t=e?.trim();if(!t)return;let n=Y(t);if(n)return f.isValid(n)?f.parse(n):xt(n)}function Tt(e){let t=e?.trim();if(!t)return!1;let n=Y(t);return n?f.IPv4.isValidFourPartDecimal(n):!1}function Et(e){let t=e?.trim();if(!t)return!1;let n=Y(t);if(!n||n.includes(`:`)||Tt(n))return!1;let r=n.split(`.`);return!(r.length===0||r.length>4||r.some(e=>e.length===0)||!r.every(e=>bt(e)))}function Dt(e){return _t.has(e.range())?!0:(e.parts[0]&65472)==65216}function Ot(e,t={}){let n=e.match(vt);return n&&t.allowRfc2544BenchmarkRange===!0?!1:gt.has(e.range())||n}function kt(e,t){let n=[e>>>8&255,e&255,t>>>8&255,t&255];return f.IPv4.parse(n.join(`.`))}function At(e){if(e.isIPv4MappedAddress())return e.toIPv4Address();if(e.range()===`rfc6145`||e.range()===`rfc6052`)return kt(e.parts[6],e.parts[7]);for(let t of yt){if(!t.matches(e.parts))continue;let[n,r]=t.toHextets(e.parts);return kt(n,r)}}function X(e){let t=e.trim().toLowerCase().replace(/\.$/,``);return t.startsWith(`[`)&&t.endsWith(`]`)?t.slice(1,-1):t}var Z=class extends Error{constructor(e){super(e),this.name=`SsrFBlockedError`}};const jt=new Set([`localhost`,`localhost.localdomain`,`metadata.google.internal`]);function Mt(e){return!e||e.length===0?new Set:new Set(e.map(e=>X(e)).filter(Boolean))}function Nt(e){return!e||e.length===0?[]:Array.from(new Set(e.map(e=>X(e)).filter(e=>e!==`*`&&e!==`*.`&&e.length>0)))}function Pt(e){return e?.dangerouslyAllowPrivateNetwork===!0||e?.allowPrivateNetwork===!0}function Ft(e){return{allowRfc2544BenchmarkRange:e?.allowRfc2544BenchmarkRange===!0}}function It(e,t){if(t.startsWith(`*.`)){let n=t.slice(2);return!n||e===n?!1:e.endsWith(`.${n}`)}return e===t}function Lt(e,t){return t.length===0?!0:t.some(t=>It(e,t))}function Rt(e){let t=e.split(`.`);return t.length===0||t.length>4?!1:t.some(e=>e.length===0)?!0:t.every(e=>/^[0-9]+$/.test(e)||/^0x/i.test(e))}function zt(e,t){let n=e.trim().toLowerCase();if(n.startsWith(`[`)&&n.endsWith(`]`)&&(n=n.slice(1,-1)),!n)return!1;let r=Ft(t),i=Ct(n);if(i){if(St(i))return Ot(i,r);if(Dt(i))return!0;let e=At(i);return e?Ot(e,r):!1}return!!(n.includes(`:`)&&!wt(n)||!Tt(n)&&Et(n)||Rt(n))}function Bt(e){return jt.has(e)?!0:e.endsWith(`.localhost`)||e.endsWith(`.local`)||e.endsWith(`.internal`)}function Q(e,t){let n=X(e);return n?Bt(n)||zt(n,t):!1}function Vt(e,t){if(Q(e,t))throw new Z(`Blocked hostname or private/internal/special-use IP address`)}function Ht(e,t){for(let n of e)if(Q(n.address,t))throw new Z(`Blocked: resolves to private/internal/special-use IP address`)}function Ut(e){let t=X(e.hostname),n=e.fallback??u,r=n,i=n,a=e.addresses.map(e=>({address:e,family:e.includes(`:`)?6:4})),o=0;return((e,n,s)=>{let c=typeof n==`function`?n:s;if(!c)return;let l=X(e);if(!l||l!==t)return typeof n==`function`||n===void 0?r(e,c):i(e,n,c);let u=typeof n==`object`&&n?n:{},d=typeof n==`number`?n:typeof u.family==`number`?u.family:0,f=d===4||d===6?a.filter(e=>e.family===d):a,p=f.length>0?f:a;if(u.all){c(null,p);return}let m=p[o%p.length];o+=1,c(null,m.address,m.family)})}function Wt(e){let t=new Set,n=[],r=[];for(let i of e)if(!t.has(i.address)){if(t.add(i.address),i.family===4){n.push(i.address);continue}r.push(i.address)}return[...n,...r]}async function Gt(e,t={}){let n=X(e);if(!n)throw Error(`Invalid hostname`);let r=Pt(t.policy),i=Mt(t.policy?.allowedHostnames),a=Nt(t.policy?.hostnameAllowlist),o=i.has(n),s=r||o;if(!Lt(n,a))throw new Z(`Blocked hostname (not in allowlist): ${e}`);s||Vt(n,t.policy);let c=await(t.lookupFn??d)(n,{all:!0});if(c.length===0)throw Error(`Unable to resolve hostname: ${e}`);s||Ht(c,t.policy);let l=Wt(c);if(l.length===0)throw Error(`Unable to resolve hostname: ${e}`);return{hostname:n,addresses:l,lookup:Ut({hostname:n,addresses:l})}}function Kt(t){return new e({connect:{lookup:t.lookup}})}async function qt(e){if(!e)return;let t=e;try{if(typeof t.close==`function`){await t.close();return}typeof t.destroy==`function`&&t.destroy()}catch{}}const $={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},Jt=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function Yt(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?$.TRUSTED_ENV_PROXY:$.STRICT}function Xt(e){return e===301||e===302||e===303||e===307||e===308}function Zt(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())Jt.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function Qt(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=pt(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function $t(e){let n=e.fetchImpl??globalThis.fetch;if(!n)throw Error(`fetch is not available`);let r=typeof e.maxRedirects==`number`&&Number.isFinite(e.maxRedirects)?Math.max(0,Math.floor(e.maxRedirects)):3,i=Yt(e),{signal:a,cleanup:o}=Qt({timeoutMs:e.timeoutMs,signal:e.signal}),s=!1,c=async e=>{s||(s=!0,o(),await qt(e??void 0))},l=new Set,u=e.url,d=e.init?{...e.init}:void 0,f=0;for(;;){let o;try{o=new URL(u)}catch{throw await c(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(o.protocol))throw await c(),Error(`Invalid URL: must be http or https`);let s=null;try{let p=await Gt(o.hostname,{lookupFn:e.lookupFn,policy:e.policy});i===$.TRUSTED_ENV_PROXY&&ht()?s=new t:e.pinDns!==!1&&(s=Kt(p));let m={...d?{...d}:{},redirect:`manual`,...s?{dispatcher:s}:{},...a?{signal:a}:{}},h=await n(o.toString(),m);if(Xt(h.status)){let e=h.headers.get(`location`);if(!e)throw await c(s),Error(`Redirect missing location header (${h.status})`);if(f+=1,f>r)throw await c(s),Error(`Too many redirects (limit: ${r})`);let t=new URL(e,o),n=t.toString();if(l.has(n))throw await c(s),Error(`Redirect loop detected`);t.origin!==o.origin&&(d=Zt(d)),l.add(n),h.body?.cancel(),await qt(s),u=n;continue}return{response:h,finalUrl:u,release:async()=>c(s)}}catch(t){throw t instanceof Z&&dt(`security: blocked URL fetch (${e.auditContext??`url-fetch`}) target=${o.origin}${o.pathname} reason=${t.message}`),await c(s),t}}}function en(){return!!(process.env.WSL_INTEROP||process.env.WSL_DISTRO_NAME||process.env.WSLENV)}function tn(){if(process.platform!==`linux`)return!1;if(en())return!0;try{let e=r(`/proc/version`,`utf8`).toLowerCase();return e.includes(`microsoft`)||e.includes(`wsl`)}catch{return!1}}function nn(){if(!tn())return!1;try{let e=r(`/proc/version`,`utf8`).toLowerCase();return e.includes(`wsl2`)||e.includes(`microsoft-standard`)}catch{return!1}}function rn(e){return{success:!1,error:{issues:[{path:[],message:e}]}}}function an(){return{safeParse(e){return e===void 0?{success:!0,data:void 0}:!e||typeof e!=`object`||Array.isArray(e)?rn(`expected config object`):Object.keys(e).length>0?rn(`config must be empty`):{success:!0,data:e}},jsonSchema:{type:`object`,additionalProperties:!1,properties:{}}}}function on(e){let t=e.email??void 0;return{profiles:[{profileId:`${e.profilePrefix??e.providerId}:${t??`default`}`,credential:{type:`oauth`,provider:e.providerId,access:e.access,...e.refresh?{refresh:e.refresh}:{},...Number.isFinite(e.expires)?{expires:e.expires}:{},...t?{email:t}:{},...e.credentialExtra}}],configPatch:e.configPatch??{agents:{defaults:{models:{[e.defaultModel]:{}}}}},defaultModel:e.defaultModel,notes:e.notes}}export{on as buildOauthProviderAuthResult,an as emptyPluginConfigSchema,$t as fetchWithSsrFGuard,nn as isWSL2Sync};
|
|
2
|
+
//# sourceMappingURL=google-gemini-cli-auth.js.map
|
|
@@ -4,3 +4,4 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
4
4
|
`);const ru=process.platform!==`win32`&&`O_NOFOLLOW`in d.constants;d.constants.O_RDONLY|(ru?d.constants.O_NOFOLLOW:0),d.constants.O_WRONLY|(ru?d.constants.O_NOFOLLOW:0),d.constants.O_WRONLY|d.constants.O_CREAT|d.constants.O_EXCL|(ru?d.constants.O_NOFOLLOW:0),d.constants.O_RDWR|d.constants.O_APPEND|(ru?d.constants.O_NOFOLLOW:0),d.constants.O_RDWR|d.constants.O_APPEND|d.constants.O_CREAT|d.constants.O_EXCL|(ru?d.constants.O_NOFOLLOW:0);const iu=ge();l.default.join(iu,`downloads`),l.default.join(iu,`uploads`),new oe.default.Agent,new se.default.Agent;function au(){return nu()}const ou=`localhost,127.0.0.1,[::1]`;function su(){let e=process.env.NO_PROXY||process.env.no_proxy||``;return e.includes(`localhost`)&&e.includes(`127.0.0.1`)&&e.includes(`[::1]`)}function cu(e){try{return Nl(new URL(e).hostname)}catch{return!1}}new class{constructor(){this.leaseCount=0,this.snapshot=null}acquire(e){if(!cu(e)||!au())return null;if(this.leaseCount===0&&!su()){let e=process.env.NO_PROXY,t=process.env.no_proxy,n=e||t||``,r=n?`${n},${ou}`:ou;process.env.NO_PROXY=r,process.env.no_proxy=r,this.snapshot={noProxy:e,noProxyLower:t,applied:r}}this.leaseCount+=1;let t=!1;return()=>{t||(t=!0,this.release())}}release(){if(this.leaseCount<=0||(--this.leaseCount,this.leaseCount>0||!this.snapshot))return;let{noProxy:e,noProxyLower:t,applied:n}=this.snapshot,r=process.env.NO_PROXY,i=process.env.no_proxy;r===n&&(i===n||i===void 0)&&(e===void 0?delete process.env.NO_PROXY:process.env.NO_PROXY=e,t===void 0?delete process.env.no_proxy:process.env.no_proxy=t),this.snapshot=null}},process.platform,Wt(`browser`).child(`chrome`),Wt(`browser`).child(`service`),Qi(Symbol.for(`openclaw.sessionWriteLockHeldLocks`)),process.platform,process.env,process.execPath,[`import errno`,`import os`,`import secrets`,`import stat`,`import sys`,``,`operation = sys.argv[1]`,``,`DIR_FLAGS = os.O_RDONLY`,`if hasattr(os, 'O_DIRECTORY'):`,` DIR_FLAGS |= os.O_DIRECTORY`,`if hasattr(os, 'O_NOFOLLOW'):`,` DIR_FLAGS |= os.O_NOFOLLOW`,``,`READ_FLAGS = os.O_RDONLY`,`if hasattr(os, 'O_NOFOLLOW'):`,` READ_FLAGS |= os.O_NOFOLLOW`,``,`WRITE_FLAGS = os.O_WRONLY | os.O_CREAT | os.O_EXCL`,`if hasattr(os, 'O_NOFOLLOW'):`,` WRITE_FLAGS |= os.O_NOFOLLOW`,``,`def split_relative(path_value):`,` segments = []`,` for segment in path_value.split('/'):`,` if not segment or segment == '.':`,` continue`,` if segment == '..':`,` raise OSError(errno.EPERM, 'path traversal is not allowed', segment)`,` segments.append(segment)`,` return segments`,``,`def open_dir(path_value, dir_fd=None):`,` return os.open(path_value, DIR_FLAGS, dir_fd=dir_fd)`,``,`def walk_dir(root_fd, rel_path, mkdir_enabled):`,` current_fd = os.dup(root_fd)`,` try:`,` for segment in split_relative(rel_path):`,` try:`,` next_fd = open_dir(segment, dir_fd=current_fd)`,` except FileNotFoundError:`,` if not mkdir_enabled:`,` raise`,` os.mkdir(segment, 0o777, dir_fd=current_fd)`,` next_fd = open_dir(segment, dir_fd=current_fd)`,` os.close(current_fd)`,` current_fd = next_fd`,` return current_fd`,` except Exception:`,` os.close(current_fd)`,` raise`,``,`def create_temp_file(parent_fd, basename):`,` prefix = '.openclaw-write-' + basename + '.'`,` for _ in range(128):`,` candidate = prefix + secrets.token_hex(6)`,` try:`,` fd = os.open(candidate, WRITE_FLAGS, 0o600, dir_fd=parent_fd)`,` return candidate, fd`,` except FileExistsError:`,` continue`,` raise RuntimeError('failed to allocate sandbox temp file')`,``,`def create_temp_dir(parent_fd, basename, mode):`,` prefix = '.openclaw-move-' + basename + '.'`,` for _ in range(128):`,` candidate = prefix + secrets.token_hex(6)`,` try:`,` os.mkdir(candidate, mode, dir_fd=parent_fd)`,` return candidate`,` except FileExistsError:`,` continue`,` raise RuntimeError('failed to allocate sandbox temp directory')`,``,`def write_atomic(parent_fd, basename, stdin_buffer):`,` temp_fd = None`,` temp_name = None`,` try:`,` temp_name, temp_fd = create_temp_file(parent_fd, basename)`,` while True:`,` chunk = stdin_buffer.read(65536)`,` if not chunk:`,` break`,` os.write(temp_fd, chunk)`,` os.fsync(temp_fd)`,` os.close(temp_fd)`,` temp_fd = None`,` os.replace(temp_name, basename, src_dir_fd=parent_fd, dst_dir_fd=parent_fd)`,` temp_name = None`,` os.fsync(parent_fd)`,` finally:`,` if temp_fd is not None:`,` os.close(temp_fd)`,` if temp_name is not None:`,` try:`,` os.unlink(temp_name, dir_fd=parent_fd)`,` except FileNotFoundError:`,` pass`,``,`def remove_tree(parent_fd, basename):`,` entry_stat = os.lstat(basename, dir_fd=parent_fd)`,` if not stat.S_ISDIR(entry_stat.st_mode) or stat.S_ISLNK(entry_stat.st_mode):`,` os.unlink(basename, dir_fd=parent_fd)`,` return`,` dir_fd = open_dir(basename, dir_fd=parent_fd)`,` try:`,` for child in os.listdir(dir_fd):`,` remove_tree(dir_fd, child)`,` finally:`,` os.close(dir_fd)`,` os.rmdir(basename, dir_fd=parent_fd)`,``,`def move_entry(src_parent_fd, src_basename, dst_parent_fd, dst_basename):`,` try:`,` os.rename(src_basename, dst_basename, src_dir_fd=src_parent_fd, dst_dir_fd=dst_parent_fd)`,` os.fsync(dst_parent_fd)`,` os.fsync(src_parent_fd)`,` return`,` except OSError as err:`,` if err.errno != errno.EXDEV:`,` raise`,` src_stat = os.lstat(src_basename, dir_fd=src_parent_fd)`,` if stat.S_ISDIR(src_stat.st_mode) and not stat.S_ISLNK(src_stat.st_mode):`,` temp_dir_name = create_temp_dir(dst_parent_fd, dst_basename, stat.S_IMODE(src_stat.st_mode) or 0o755)`,` temp_dir_fd = open_dir(temp_dir_name, dir_fd=dst_parent_fd)`,` src_dir_fd = open_dir(src_basename, dir_fd=src_parent_fd)`,` try:`,` for child in os.listdir(src_dir_fd):`,` move_entry(src_dir_fd, child, temp_dir_fd, child)`,` finally:`,` os.close(src_dir_fd)`,` os.close(temp_dir_fd)`,` os.rename(temp_dir_name, dst_basename, src_dir_fd=dst_parent_fd, dst_dir_fd=dst_parent_fd)`,` os.rmdir(src_basename, dir_fd=src_parent_fd)`,` os.fsync(dst_parent_fd)`,` os.fsync(src_parent_fd)`,` return`,` if stat.S_ISLNK(src_stat.st_mode):`,` link_target = os.readlink(src_basename, dir_fd=src_parent_fd)`,` try:`,` os.unlink(dst_basename, dir_fd=dst_parent_fd)`,` except FileNotFoundError:`,` pass`,` os.symlink(link_target, dst_basename, dir_fd=dst_parent_fd)`,` os.unlink(src_basename, dir_fd=src_parent_fd)`,` os.fsync(dst_parent_fd)`,` os.fsync(src_parent_fd)`,` return`,` src_fd = os.open(src_basename, READ_FLAGS, dir_fd=src_parent_fd)`,` temp_fd = None`,` temp_name = None`,` try:`,` temp_name, temp_fd = create_temp_file(dst_parent_fd, dst_basename)`,` while True:`,` chunk = os.read(src_fd, 65536)`,` if not chunk:`,` break`,` os.write(temp_fd, chunk)`,` try:`,` os.fchmod(temp_fd, stat.S_IMODE(src_stat.st_mode))`,` except AttributeError:`,` pass`,` os.fsync(temp_fd)`,` os.close(temp_fd)`,` temp_fd = None`,` os.replace(temp_name, dst_basename, src_dir_fd=dst_parent_fd, dst_dir_fd=dst_parent_fd)`,` temp_name = None`,` os.unlink(src_basename, dir_fd=src_parent_fd)`,` os.fsync(dst_parent_fd)`,` os.fsync(src_parent_fd)`,` finally:`,` if temp_fd is not None:`,` os.close(temp_fd)`,` if temp_name is not None:`,` try:`,` os.unlink(temp_name, dir_fd=dst_parent_fd)`,` except FileNotFoundError:`,` pass`,` os.close(src_fd)`,``,`if operation == 'write':`,` root_fd = open_dir(sys.argv[2])`,` parent_fd = None`,` try:`,` parent_fd = walk_dir(root_fd, sys.argv[3], sys.argv[5] == '1')`,` write_atomic(parent_fd, sys.argv[4], sys.stdin.buffer)`,` finally:`,` if parent_fd is not None:`,` os.close(parent_fd)`,` os.close(root_fd)`,`elif operation == 'mkdirp':`,` root_fd = open_dir(sys.argv[2])`,` target_fd = None`,` try:`,` target_fd = walk_dir(root_fd, sys.argv[3], True)`,` os.fsync(target_fd)`,` finally:`,` if target_fd is not None:`,` os.close(target_fd)`,` os.close(root_fd)`,`elif operation == 'remove':`,` root_fd = open_dir(sys.argv[2])`,` parent_fd = None`,` try:`,` parent_fd = walk_dir(root_fd, sys.argv[3], False)`,` try:`,` if sys.argv[5] == '1':`,` remove_tree(parent_fd, sys.argv[4])`,` else:`,` entry_stat = os.lstat(sys.argv[4], dir_fd=parent_fd)`,` if stat.S_ISDIR(entry_stat.st_mode) and not stat.S_ISLNK(entry_stat.st_mode):`,` os.rmdir(sys.argv[4], dir_fd=parent_fd)`,` else:`,` os.unlink(sys.argv[4], dir_fd=parent_fd)`,` os.fsync(parent_fd)`,` except FileNotFoundError:`,` if sys.argv[6] != '1':`,` raise`,` finally:`,` if parent_fd is not None:`,` os.close(parent_fd)`,` os.close(root_fd)`,`elif operation == 'rename':`,` src_root_fd = open_dir(sys.argv[2])`,` dst_root_fd = open_dir(sys.argv[5])`,` src_parent_fd = None`,` dst_parent_fd = None`,` try:`,` src_parent_fd = walk_dir(src_root_fd, sys.argv[3], False)`,` dst_parent_fd = walk_dir(dst_root_fd, sys.argv[6], sys.argv[8] == '1')`,` move_entry(src_parent_fd, sys.argv[4], dst_parent_fd, sys.argv[7])`,` finally:`,` if src_parent_fd is not None:`,` os.close(src_parent_fd)`,` if dst_parent_fd is not None:`,` os.close(dst_parent_fd)`,` os.close(src_root_fd)`,` os.close(dst_root_fd)`,`else:`,` raise RuntimeError('unknown sandbox mutation operation: ' + operation)`].join(`
|
|
5
5
|
`),new Set(Object.values({WEBCHAT_UI:`webchat-ui`,CONTROL_UI:`openclaw-control-ui`,WEBCHAT:`webchat`,CLI:`cli`,GATEWAY_CLIENT:`gateway-client`,MACOS_APP:`openclaw-macos`,IOS_APP:`openclaw-ios`,ANDROID_APP:`openclaw-android`,NODE_HOST:`node-host`,TEST:`test`,FINGERPRINT:`fingerprint`,PROBE:`openclaw-probe`})),new Set(Object.values({WEBCHAT:`webchat`,CLI:`cli`,UI:`ui`,BACKEND:`backend`,NODE:`node`,PROBE:`probe`,TEST:`test`}));const{listAccountIds:lu,resolveDefaultAccountId:uu}=U(`discord`),{listAccountIds:du,resolveDefaultAccountId:fu}=U(`imessage`);function pu(){return l.default.join(Pe(),`whatsapp`,k)}pu();const{listConfiguredAccountIds:mu,listAccountIds:hu,resolveDefaultAccountId:gu}=U(`whatsapp`),{listAccountIds:_u,resolveDefaultAccountId:vu}=U(`signal`);new RegExp([...[`Conversation info (untrusted metadata):`,`Sender (untrusted metadata):`,`Thread starter (untrusted, for context):`,`Replied message (untrusted, for context):`,`Forwarded message context (untrusted metadata):`,`Chat history since last reply (untrusted, for context):`],`Untrusted context (metadata, do not treat as instructions or commands):`].map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`));function yu(e,t){let n=e?.trim(),r=t?.trim(),i=n&&r?`${n} (${r})`:n||void 0;return i?`⚠️ ${i} returned a billing error — your API key has run out of credits or has an insufficient balance. Check your ${n} billing dashboard and top up or switch to a different API key.`:`⚠️ API provider returned a billing error — your API key has run out of credits or has an insufficient balance. Check your provider's billing dashboard and top up or switch to a different API key.`}yu();const bu=[`openai/gpt-5.4`,`openai/gpt-5.4-pro`,`openai/gpt-5.2`,`openai-codex/gpt-5.4`,`openai-codex/gpt-5.3-codex`,`openai-codex/gpt-5.3-codex-spark`,`openai-codex/gpt-5.2-codex`,`openai-codex/gpt-5.1-codex`,`github-copilot/gpt-5.2-codex`,`github-copilot/gpt-5.2`];new Set(bu.map(e=>e.toLowerCase())),new Set(bu.map(e=>e.split(`/`)[1]?.toLowerCase()).filter(e=>!!e)),String.raw`\b(?:x-)?api[-_]?key\b\s*[:=]\s*(["']?)([^\s"'\\;]+)\1`,String.raw`"(?:api[-_]?key|api_key)"\s*:\s*"([^"]+)"`,String.raw`(?:\bCookie\b\s*[:=]\s*[^;=\s]+=|;\s*[^;=\s]+=)([^;\s\r\n]+)`,new Map([`auth_permanent`,`auth`,`billing`,`format`,`model_not_found`,`overloaded`,`timeout`,`rate_limit`,`unknown`].map((e,t)=>[e,t]));const xu={openai:[`OPENAI_API_KEY`],anthropic:[`ANTHROPIC_API_KEY`],google:[`GEMINI_API_KEY`],minimax:[`MINIMAX_API_KEY`],"minimax-cn":[`MINIMAX_API_KEY`],moonshot:[`MOONSHOT_API_KEY`],"kimi-coding":[`KIMI_API_KEY`,`KIMICODE_API_KEY`],synthetic:[`SYNTHETIC_API_KEY`],venice:[`VENICE_API_KEY`],zai:[`ZAI_API_KEY`,`Z_AI_API_KEY`],xiaomi:[`XIAOMI_API_KEY`],openrouter:[`OPENROUTER_API_KEY`],"cloudflare-ai-gateway":[`CLOUDFLARE_AI_GATEWAY_API_KEY`],litellm:[`LITELLM_API_KEY`],"vercel-ai-gateway":[`AI_GATEWAY_API_KEY`],opencode:[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],"opencode-go":[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],together:[`TOGETHER_API_KEY`],huggingface:[`HUGGINGFACE_HUB_TOKEN`,`HF_TOKEN`],qianfan:[`QIANFAN_API_KEY`],xai:[`XAI_API_KEY`],mistral:[`MISTRAL_API_KEY`],kilocode:[`KILOCODE_API_KEY`],modelstudio:[`MODELSTUDIO_API_KEY`],volcengine:[`VOLCANO_ENGINE_API_KEY`],byteplus:[`BYTEPLUS_API_KEY`]},Su=[`VOYAGE_API_KEY`,`GROQ_API_KEY`,`DEEPGRAM_API_KEY`,`CEREBRAS_API_KEY`,`NVIDIA_API_KEY`,`COPILOT_GITHUB_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`,`ANTHROPIC_OAUTH_TOKEN`,`CHUTES_OAUTH_TOKEN`,`CHUTES_API_KEY`,`QWEN_OAUTH_TOKEN`,`QWEN_PORTAL_API_KEY`,`MINIMAX_OAUTH_TOKEN`,`OLLAMA_API_KEY`,`VLLM_API_KEY`],Cu=[...new Set(Object.values(xu).flatMap(e=>e))];[...new Set([...Cu,...Su])];async function wu(e){let t=e.listAccountIds(e.cfg),n=e.currentId?.trim()||e.defaultAccountId||`default`,r=await e.prompter.select({message:`${e.label} account`,options:[...t.map(e=>({value:e,label:e===`default`?`default (primary)`:e})),{value:`__new__`,label:`Add a new account`}],initialValue:n});if(r!==`__new__`)return A(r);let i=await e.prompter.text({message:`New ${e.label} account id`,validate:e=>e?.trim()?void 0:`Required`}),a=A(String(i));return String(i).trim()!==a&&await e.prompter.note(`Normalized account id to "${a}".`,`${e.label} account`),a}function Tu(e,t){let n=e.channels?.[t];return!!(n?.accounts&&Object.keys(n.accounts).length>0)}function Eu(e){return e.alwaysUseAccounts||e.accountId!==`default`?!0:Tu(e.cfg,e.channelKey)}function Du(e){let t=e.name?.trim();if(!t)return e.cfg;let n=A(e.accountId),r=e.cfg.channels?.[e.channelKey],i=typeof r==`object`&&r?r:void 0;if(!Eu({cfg:e.cfg,channelKey:e.channelKey,accountId:n,alwaysUseAccounts:e.alwaysUseAccounts})&&n===`default`){let n=i??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...n,name:t}}}}let a=i?.accounts??{},o=a[n]??{},s=n===`default`?(({name:e,...t})=>t)(i??{}):i??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...s,accounts:{...a,[n]:{...o,name:t}}}}}}function Ou(e){if(e.alwaysUseAccounts)return e.cfg;let t=e.cfg.channels?.[e.channelKey],n=t?.name?.trim();if(!n)return e.cfg;let r={...t?.accounts},i=r.default??{};i.name||(r[k]={...i,name:n});let{name:a,...o}=t??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...o,accounts:r}}}}function ku(e){return Au({cfg:e.cfg,channelKey:e.channelKey,accountId:e.accountId,patch:e.patch})}function Au(e){let t=A(e.accountId),n=e.cfg.channels?.[e.channelKey],r=typeof n==`object`&&n?n:void 0,i=e.ensureChannelEnabled??!0,a=e.ensureAccountEnabled??i,o=e.patch,s=e.accountPatch??o;if(t===`default`)return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...r,...i?{enabled:!0}:{},...o}}};let c=r?.accounts??{},l=c[t]??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...r,...i?{enabled:!0}:{},accounts:{...c,[t]:{...l,...a?{enabled:typeof l.enabled==`boolean`?l.enabled:!0}:{},...s}}}}}}const ju=async e=>await wu(e);function Mu(e){let t=(e??[]).map(e=>String(e).trim()).filter(Boolean);return t.includes(`*`)||t.push(`*`),t}function Nu(e,t){let n=[...e??[],...t].map(e=>String(e).trim()).filter(Boolean);return[...new Set(n)]}function Pu(e){return e.split(/[\n,;]+/g).map(e=>e.trim()).filter(Boolean)}async function Fu(e){let t=e.accountOverride?.trim(),n=t?A(t):e.defaultAccountId;return e.shouldPromptAccountIds&&!t&&(n=await ju({cfg:e.cfg,prompter:e.prompter,label:e.label,currentId:n,listAccountIds:e.listAccountIds,defaultAccountId:e.defaultAccountId})),n}function Iu(e){let t=e.cfg.channels?.[e.channel]??{},n=e.getAllowFrom?.(e.cfg)??t.allowFrom??void 0,r=e.dmPolicy===`open`?Mu(n):void 0;return{...e.cfg,channels:{...e.cfg.channels,[e.channel]:{...t,dmPolicy:e.dmPolicy,...r?{allowFrom:r}:{}}}}}function Lu(e,t){return qi(e,t)?.identity}function Ru(e,t){let n=Lu(e,t)?.name?.trim();if(n)return`[${n}]`}function zu(e,t){return Lu(e,t)?.name?.trim()||void 0}function Bu(e,t,n){let r=n?.configured??e.messages?.messagePrefix;return r===void 0?n?.hasAllowFrom===!0?``:Ru(e,t)??n?.fallback??`[openclaw]`:r}function Vu(e,t){let n=e.channels?.[t];return typeof n==`object`&&n?n:void 0}function Hu(e,t,n){if(n?.channel&&n?.accountId){let r=(Vu(e,n.channel)?.accounts)?.[n.accountId]?.responsePrefix;if(r!==void 0)return r===`auto`?Ru(e,t):r}if(n?.channel){let r=Vu(e,n.channel)?.responsePrefix;if(r!==void 0)return r===`auto`?Ru(e,t):r}let r=e.messages?.responsePrefix;if(r!==void 0)return r===`auto`?Ru(e,t):r}function Uu(e,t,n){return{messagePrefix:Bu(e,t,{hasAllowFrom:n?.hasAllowFrom,fallback:n?.fallbackMessagePrefix}),responsePrefix:Hu(e,t,{channel:n?.channel,accountId:n?.accountId})}}function Wu(e){let t=e.lastIndexOf(`/`);return(t>=0?e.slice(t+1):e).replace(/-\d{8}$/,``).replace(/-latest$/,``)}function Gu(e){let{cfg:t,agentId:n}=e,r={identityName:zu(t,n)};return{prefixContext:r,responsePrefix:Uu(t,n,{channel:e.channel,accountId:e.accountId}).responsePrefix,responsePrefixContextProvider:()=>r,onModelSelected:e=>{r.provider=e.provider,r.model=Wu(e.model),r.modelFull=`${e.provider}/${e.model}`,r.thinkingLevel=e.thinkLevel??`off`}}}function Ku(e){let{responsePrefix:t,responsePrefixContextProvider:n,onModelSelected:r}=Gu(e);return{responsePrefix:t,responsePrefixContextProvider:n,onModelSelected:r}}function qu(e){return e?.dangerouslyAllowNameMatching===!0}function Ju(e){let t=e.configuredFallbackPolicy??`open`,n=e.missingProviderFallbackPolicy??`allowlist`;return{groupPolicy:e.providerConfigPresent?e.groupPolicy??e.defaultGroupPolicy??t:e.groupPolicy??n,providerMissingFallbackApplied:!e.providerConfigPresent&&e.groupPolicy===void 0}}function Yu(e){return e.channels?.defaults?.groupPolicy}const Xu={group:`group messages`,guild:`guild messages`,room:`room messages`,channel:`channel messages`,space:`space messages`};function Zu(e){return Ju({providerConfigPresent:e.providerConfigPresent,groupPolicy:e.groupPolicy,defaultGroupPolicy:e.defaultGroupPolicy,configuredFallbackPolicy:`allowlist`,missingProviderFallbackPolicy:`allowlist`})}const Qu=new Set;function $u(e){if(!e.providerMissingFallbackApplied)return!1;let t=`${e.providerKey}:${e.accountId??`*`}`;if(Qu.has(t))return!1;Qu.add(t);let n=e.blockedLabel?.trim()||`group messages`;return e.log(`${e.providerKey}: channels.${e.providerKey} is missing; defaulting groupPolicy to "allowlist" (${n} blocked until explicitly configured).`),!0}function ed(){this.abort()}function td(e){return ed.bind(e)}const nd={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},rd=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function id(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?nd.TRUSTED_ENV_PROXY:nd.STRICT}function ad(e){return e===301||e===302||e===303||e===307||e===308}function od(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())rd.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function sd(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=td(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function cd(e){let t=e.fetchImpl??globalThis.fetch;if(!t)throw Error(`fetch is not available`);let n=typeof e.maxRedirects==`number`&&Number.isFinite(e.maxRedirects)?Math.max(0,Math.floor(e.maxRedirects)):3,r=id(e),{signal:i,cleanup:a}=sd({timeoutMs:e.timeoutMs,signal:e.signal}),o=!1,s=async e=>{o||(o=!0,a(),await eu(e??void 0))},c=new Set,l=e.url,u=e.init?{...e.init}:void 0,d=0;for(;;){let a;try{a=new URL(l)}catch{throw await s(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(a.protocol))throw await s(),Error(`Invalid URL: must be http or https`);let o=null;try{let f=await Ql(a.hostname,{lookupFn:e.lookupFn,policy:e.policy});r===nd.TRUSTED_ENV_PROXY&&nu()?o=new ae.EnvHttpProxyAgent:e.pinDns!==!1&&(o=$l(f));let p={...u?{...u}:{},redirect:`manual`,...o?{dispatcher:o}:{},...i?{signal:i}:{}},m=await t(a.toString(),p);if(ad(m.status)){let e=m.headers.get(`location`);if(!e)throw await s(o),Error(`Redirect missing location header (${m.status})`);if(d+=1,d>n)throw await s(o),Error(`Too many redirects (limit: ${n})`);let t=new URL(e,a),r=t.toString();if(c.has(r))throw await s(o),Error(`Redirect loop detected`);t.origin!==a.origin&&(u=od(u)),c.add(r),m.body?.cancel(),await eu(o),l=r;continue}return{response:m,finalUrl:l,release:async()=>s(o)}}catch(t){throw t instanceof Il&&Jt(`security: blocked URL fetch (${e.auditContext??`url-fetch`}) target=${a.origin}${a.pathname} reason=${t.message}`),await s(o),t}}}function ld(e,t){return`Delivering to ${e} requires target${dd(t)}`}function ud(e,t){return Error(ld(e,t))}function dd(e,t=!1){return e?t?` Hint: ${e}`:` ${e}`:``}function fd(e){return{success:!1,error:{issues:[{path:[],message:e}]}}}function pd(){return{safeParse(e){return e===void 0?{success:!0,data:void 0}:!e||typeof e!=`object`||Array.isArray(e)?fd(`expected config object`):Object.keys(e).length>0?fd(`config must be empty`):{success:!0,data:e}},jsonSchema:{type:`object`,additionalProperties:!1,properties:{}}}}function md(e){let t=e.dmPolicy===`allowlist`?[]:e.storeAllowFrom??[];return[...e.allowFrom??[],...t].map(e=>String(e).trim()).filter(Boolean)}function hd(e){return((Array.isArray(e.groupAllowFrom)&&e.groupAllowFrom.length>0?e.groupAllowFrom:void 0)||(e.fallbackToAllowFrom===!1?[]:e.allowFrom??[])).map(e=>String(e).trim()).filter(Boolean)}function gd(e){return e.groupPolicy===`disabled`?`disabled`:e.groupAllowFrom.length>0?`allowlist`:`open`}function _d(e){if(e.groupPolicy===`disabled`)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`disabled`};if(e.routeMatched&&e.routeEnabled===!1)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`route_disabled`};if(e.groupPolicy===`allowlist`){if(!e.routeAllowlistConfigured)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`empty_allowlist`};if(!e.routeMatched)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`route_not_allowlisted`}}return{allowed:!0,groupPolicy:e.groupPolicy,reason:`allowed`}}function vd(e){if(e.groupPolicy===`disabled`)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`disabled`};if(e.groupPolicy===`allowlist`){if(e.requireMatchInput&&!e.hasMatchInput)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`missing_match_input`};if(!e.allowlistConfigured)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`empty_allowlist`};if(!e.allowlistMatched)return{allowed:!1,groupPolicy:e.groupPolicy,reason:`not_allowlisted`}}return{allowed:!0,groupPolicy:e.groupPolicy,reason:`allowed`}}function yd(e){let t=Array.isArray(e.allowFrom)?e.allowFrom:void 0,n=Array.isArray(e.groupAllowFrom)?e.groupAllowFrom:void 0;return{effectiveAllowFrom:bi(md({allowFrom:t,storeAllowFrom:Array.isArray(e.storeAllowFrom)?e.storeAllowFrom:void 0,dmPolicy:e.dmPolicy??void 0})),effectiveGroupAllowFrom:bi(hd({allowFrom:t,groupAllowFrom:n,fallbackToAllowFrom:e.groupAllowFromFallbackToAllowFrom??void 0}))}}const $={GROUP_POLICY_ALLOWED:`group_policy_allowed`,GROUP_POLICY_DISABLED:`group_policy_disabled`,GROUP_POLICY_EMPTY_ALLOWLIST:`group_policy_empty_allowlist`,GROUP_POLICY_NOT_ALLOWLISTED:`group_policy_not_allowlisted`,DM_POLICY_OPEN:`dm_policy_open`,DM_POLICY_DISABLED:`dm_policy_disabled`,DM_POLICY_ALLOWLISTED:`dm_policy_allowlisted`,DM_POLICY_PAIRING_REQUIRED:`dm_policy_pairing_required`,DM_POLICY_NOT_ALLOWLISTED:`dm_policy_not_allowlisted`};function bd(e){let t=e.dmPolicy??`pairing`,n=e.groupPolicy===`open`||e.groupPolicy===`disabled`?e.groupPolicy:`allowlist`,r=bi(e.effectiveAllowFrom),i=bi(e.effectiveGroupAllowFrom);if(e.isGroup){let t=vd({groupPolicy:n,allowlistConfigured:i.length>0,allowlistMatched:e.isSenderAllowed(i)});if(!t.allowed){if(t.reason===`disabled`)return{decision:`block`,reasonCode:$.GROUP_POLICY_DISABLED,reason:`groupPolicy=disabled`};if(t.reason===`empty_allowlist`)return{decision:`block`,reasonCode:$.GROUP_POLICY_EMPTY_ALLOWLIST,reason:`groupPolicy=allowlist (empty allowlist)`};if(t.reason===`not_allowlisted`)return{decision:`block`,reasonCode:$.GROUP_POLICY_NOT_ALLOWLISTED,reason:`groupPolicy=allowlist (not allowlisted)`}}return{decision:`allow`,reasonCode:$.GROUP_POLICY_ALLOWED,reason:`groupPolicy=${n}`}}return t===`disabled`?{decision:`block`,reasonCode:$.DM_POLICY_DISABLED,reason:`dmPolicy=disabled`}:t===`open`?{decision:`allow`,reasonCode:$.DM_POLICY_OPEN,reason:`dmPolicy=open`}:e.isSenderAllowed(r)?{decision:`allow`,reasonCode:$.DM_POLICY_ALLOWLISTED,reason:`dmPolicy=${t} (allowlisted)`}:t===`pairing`?{decision:`pairing`,reasonCode:$.DM_POLICY_PAIRING_REQUIRED,reason:`dmPolicy=pairing (not allowlisted)`}:{decision:`block`,reasonCode:$.DM_POLICY_NOT_ALLOWLISTED,reason:`dmPolicy=${t} (not allowlisted)`}}function xd(e){let{effectiveAllowFrom:t,effectiveGroupAllowFrom:n}=yd({allowFrom:e.allowFrom,groupAllowFrom:e.groupAllowFrom,storeAllowFrom:e.storeAllowFrom,dmPolicy:e.dmPolicy,groupAllowFromFallbackToAllowFrom:e.groupAllowFromFallbackToAllowFrom});return{...bd({isGroup:e.isGroup,dmPolicy:e.dmPolicy,groupPolicy:e.groupPolicy,effectiveAllowFrom:t,effectiveGroupAllowFrom:n,isSenderAllowed:e.isSenderAllowed}),effectiveAllowFrom:t,effectiveGroupAllowFrom:n}}function Sd(e,t,n){let r=e.trim(),i=r.startsWith(`http`)?r:`https://docs.openclaw.ai${r.startsWith(`/`)?r:`/${r}`}`;return Ui(t??i,i,{fallback:n?.fallback??i,force:n?.force})}function Cd(e){let t=e.resolveStorePath(e.sessionStore,{agentId:e.route.agentId}),n=e.resolveEnvelopeFormatOptions(e.cfg);return r=>{let i=e.readSessionUpdatedAt({storePath:t,sessionKey:e.route.sessionKey});return{storePath:t,body:e.formatAgentEnvelope({channel:r.channel,from:r.from,timestamp:r.timestamp,previousTimestamp:i,envelope:n,body:r.body})}}}function wd(e){let t=e.resolveAgentRoute({cfg:e.cfg,channel:e.channel,accountId:e.accountId,peer:e.peer});return{route:t,buildEnvelope:Cd({cfg:e.cfg,route:t,sessionStore:e.sessionStore,resolveStorePath:e.resolveStorePath,readSessionUpdatedAt:e.readSessionUpdatedAt,resolveEnvelopeFormatOptions:e.resolveEnvelopeFormatOptions,formatAgentEnvelope:e.formatAgentEnvelope})}}function Td(e){return wd({cfg:e.cfg,channel:e.channel,accountId:e.accountId,peer:e.peer,resolveAgentRoute:t=>e.runtime.routing.resolveAgentRoute(t),sessionStore:e.sessionStore,resolveStorePath:e.runtime.session.resolveStorePath,readSessionUpdatedAt:e.runtime.session.readSessionUpdatedAt,resolveEnvelopeFormatOptions:e.runtime.reply.resolveEnvelopeFormatOptions,formatAgentEnvelope:e.runtime.reply.formatAgentEnvelope})}function Ed(e){let t=A(e.accountId);return{accountId:t,readAllowFromStore:()=>e.core.channel.pairing.readAllowFromStore({channel:e.channel,accountId:t}),readStoreForDmPolicy:(t,n)=>e.core.channel.pairing.readAllowFromStore({channel:t,accountId:A(n)}),upsertPairingRequest:n=>e.core.channel.pairing.upsertPairingRequest({channel:e.channel,accountId:t,...n})}}function Dd(e){let{channel:t,idLine:n,code:r}=e;return[`OpenClaw: access not configured.`,``,n,``,`Pairing code: ${r}`,``,`Ask the bot owner to approve with:`,Ii(`openclaw pairing approve ${t} ${r}`)].join(`
|
|
6
6
|
`)}async function Od(e){let{code:t,created:n}=await e.upsertPairingRequest({id:e.senderId,meta:e.meta});if(!n)return{created:!1};e.onCreated?.({code:t});let r=e.buildReplyText?.({code:t,senderIdLine:e.senderIdLine})??Dd({channel:e.channel,idLine:e.senderIdLine,code:t});try{await e.sendPairingReply(r)}catch(t){e.onReplyError?.(t)}return{created:!0,code:t}}function kd(e,t=`sendMessage`){if((typeof e.action==`string`?e.action.trim():``)!==t)return null;let n=typeof e.to==`string`?e.to:void 0;if(!n)return null;let r=typeof e.accountId==`string`?e.accountId.trim():void 0,i=typeof e.threadId==`string`?e.threadId.trim():typeof e.threadId==`number`?String(e.threadId):``;return{to:n,accountId:r,threadId:i.length>0?i:void 0}}function Ad(e){let t=e.trim();if(!t)return`/`;let n=t.startsWith(`/`)?t:`/${t}`;return n.length>1&&n.endsWith(`/`)?n.slice(0,-1):n}function jd(e){let t=e.webhookPath?.trim();if(t)return Ad(t);if(e.webhookUrl?.trim())try{return Ad(new URL(e.webhookUrl).pathname||`/`)}catch{return null}return e.defaultPath??null}const Md={PAYLOAD_TOO_LARGE:`PayloadTooLarge`,REQUEST_BODY_TIMEOUT:`RequestBodyTimeout`,CONNECTION_CLOSED:`RequestBodyConnectionClosed`},Nd={PAYLOAD_TOO_LARGE:413,REQUEST_BODY_TIMEOUT:408,CONNECTION_CLOSED:400},Pd={PAYLOAD_TOO_LARGE:`Payload too large`,REQUEST_BODY_TIMEOUT:`Request body timeout`,CONNECTION_CLOSED:`Connection closed`};var Fd=class extends Error{constructor(e){super(e.message??Md[e.code]),this.name=`RequestBodyLimitError`,this.code=e.code,this.statusCode=Nd[e.code]}};function Id(e,t){return e instanceof Fd?t?e.code===t:!0:!1}function Ld(e){return Pd[e]}function Rd(e){let t=e.headers[`content-length`],n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return null;let r=Number.parseInt(n,10);return!Number.isFinite(r)||r<0?null:r}function zd(e){return{maxBytes:Number.isFinite(e.maxBytes)?Math.max(1,Math.floor(e.maxBytes)):1,timeoutMs:typeof e.timeoutMs==`number`&&Number.isFinite(e.timeoutMs)?Math.max(1,Math.floor(e.timeoutMs)):3e4}}async function Bd(e,t){let{maxBytes:n,timeoutMs:r}=zd(t),i=t.encoding??`utf-8`,a=Rd(e);if(a!==null&&a>n){let t=new Fd({code:`PAYLOAD_TOO_LARGE`});throw e.destroyed||e.destroy(),t}return await new Promise((t,a)=>{let o=!1,s=!1,c=0,l=[],u=()=>{e.removeListener(`data`,m),e.removeListener(`end`,h),e.removeListener(`error`,g),e.removeListener(`close`,_),clearTimeout(p)},d=e=>{o||(o=!0,u(),e())},f=e=>{d(()=>a(e))},p=setTimeout(()=>{let t=new Fd({code:`REQUEST_BODY_TIMEOUT`});e.destroyed||e.destroy(),f(t)},r),m=t=>{if(o)return;let r=Buffer.isBuffer(t)?t:Buffer.from(t);if(c+=r.length,c>n){let t=new Fd({code:`PAYLOAD_TOO_LARGE`});e.destroyed||e.destroy(),f(t);return}l.push(r)},h=()=>{s=!0,d(()=>t(Buffer.concat(l).toString(i)))},g=e=>{o||f(e)},_=()=>{o||s||f(new Fd({code:`CONNECTION_CLOSED`}))};e.on(`data`,m),e.on(`end`,h),e.on(`error`,g),e.on(`close`,_)})}async function Vd(e,t){try{let n=(await Bd(e,t)).trim();if(!n)return t.emptyObjectOnEmpty===!1?{ok:!1,code:`INVALID_JSON`,error:`empty payload`}:{ok:!0,value:{}};try{return{ok:!0,value:JSON.parse(n)}}catch(e){return{ok:!1,code:`INVALID_JSON`,error:e instanceof Error?e.message:String(e)}}}catch(e){return Id(e)?{ok:!1,code:e.code,error:Ld(e.code)}:{ok:!1,code:`INVALID_JSON`,error:e instanceof Error?e.message:String(e)}}}function Hd(e,t){let n=Math.max(0,Math.floor(t));if(n<=0){e.clear();return}for(;e.size>n;){let t=e.keys().next();if(t.done)break;e.delete(t.value)}}const Ud=Object.freeze({preAuth:{maxBytes:64*1024,timeoutMs:5e3},postAuth:{maxBytes:1024*1024,timeoutMs:3e4}}),Wd=Object.freeze({maxInFlightPerKey:8,maxTrackedKeys:4096});function Gd(e){let t=e.profile===`pre-auth`?Ud.preAuth:Ud.postAuth;return{maxBytes:typeof e.maxBytes==`number`&&Number.isFinite(e.maxBytes)&&e.maxBytes>0?Math.floor(e.maxBytes):t.maxBytes,timeoutMs:typeof e.timeoutMs==`number`&&Number.isFinite(e.timeoutMs)&&e.timeoutMs>0?Math.floor(e.timeoutMs):t.timeoutMs}}function Kd(e){let{res:t,code:n,invalidMessage:r}=e;return n===`PAYLOAD_TOO_LARGE`?(t.statusCode=413,t.end(Ld(`PAYLOAD_TOO_LARGE`)),{ok:!1}):n===`REQUEST_BODY_TIMEOUT`?(t.statusCode=408,t.end(Ld(`REQUEST_BODY_TIMEOUT`)),{ok:!1}):n===`CONNECTION_CLOSED`?(t.statusCode=400,t.end(Ld(`CONNECTION_CLOSED`)),{ok:!1}):(t.statusCode=400,t.end(r??`Bad Request`),{ok:!1})}function qd(e){let t=Math.max(1,Math.floor(e?.maxInFlightPerKey??Wd.maxInFlightPerKey)),n=Math.max(1,Math.floor(e?.maxTrackedKeys??Wd.maxTrackedKeys)),r=new Map;return{tryAcquire:e=>{if(!e)return!0;let i=r.get(e)??0;return i>=t?!1:(r.set(e,i+1),Hd(r,n),!0)},release:e=>{if(!e)return;let t=r.get(e);if(t!==void 0){if(t<=1){r.delete(e);return}r.set(e,t-1)}},size:()=>r.size,clear:()=>r.clear()}}function Jd(e){let t=Array.isArray(e)?e[0]:e;if(!t)return!1;let n=t.split(`;`,1)[0]?.trim().toLowerCase();return n===`application/json`||!!n?.endsWith(`+json`)}function Yd(e){let t=e.allowMethods?.length?e.allowMethods:null;return t&&!t.includes(e.req.method??``)?(e.res.statusCode=405,e.res.setHeader(`Allow`,t.join(`, `)),e.res.end(`Method Not Allowed`),!1):e.rateLimiter&&e.rateLimitKey&&e.rateLimiter.isRateLimited(e.rateLimitKey,e.nowMs??Date.now())?(e.res.statusCode=429,e.res.end(`Too Many Requests`),!1):e.requireJsonContentType&&e.req.method===`POST`&&!Jd(e.req.headers[`content-type`])?(e.res.statusCode=415,e.res.end(`Unsupported Media Type`),!1):!0}function Xd(e){if(!Yd({req:e.req,res:e.res,allowMethods:e.allowMethods,rateLimiter:e.rateLimiter,rateLimitKey:e.rateLimitKey,nowMs:e.nowMs,requireJsonContentType:e.requireJsonContentType}))return{ok:!1};let t=e.inFlightKey??``,n=e.inFlightLimiter;if(n&&t&&!n.tryAcquire(t))return e.res.statusCode=e.inFlightLimitStatusCode??429,e.res.end(e.inFlightLimitMessage??`Too Many Requests`),{ok:!1};let r=!1;return{ok:!0,release:()=>{r||(r=!0,n&&t&&n.release(t))}}}async function Zd(e){let t=Gd({maxBytes:e.maxBytes,timeoutMs:e.timeoutMs,profile:e.profile}),n=await Vd(e.req,{maxBytes:t.maxBytes,timeoutMs:t.timeoutMs,emptyObjectOnEmpty:e.emptyObjectOnEmpty});return n.ok?{ok:!0,value:n.value}:Kd({res:e.res,code:n.code,invalidMessage:e.invalidJsonMessage})}function Qd(e){let t=e.registry??io(),n=t.httpRoutes??[];t.httpRoutes=n;let r=Ga(e.path,e.fallbackPath),i=e.accountId?` for account "${e.accountId}"`:``;if(!r)return e.log?.(`plugin: webhook path missing${i}`),()=>{};let a=e.match??`exact`,o=eo(n,{path:r,match:a});if(o&&o.auth!==e.auth)return e.log?.(`plugin: route overlap denied at ${r} (${a}, ${e.auth})${i}; overlaps ${o.path} (${o.match}, ${o.auth}) owned by ${o.pluginId??`unknown-plugin`} (${o.source??`unknown-source`})`),()=>{};let s=n.findIndex(e=>e.path===r&&e.match===a);if(s>=0){let t=n[s];if(!t)return()=>{};if(!e.replaceExisting)return e.log?.(`plugin: route conflict at ${r} (${a})${i}; owned by ${t.pluginId??`unknown-plugin`} (${t.source??`unknown-source`})`),()=>{};if(t.pluginId&&e.pluginId&&t.pluginId!==e.pluginId)return e.log?.(`plugin: route replacement denied for ${r} (${a})${i}; owned by ${t.pluginId}`),()=>{};let o=e.pluginId?` (${e.pluginId})`:``;e.log?.(`plugin: replacing stale webhook path ${r} (${a})${i}${o}`),n.splice(s,1)}let c={path:r,handler:e.handler,auth:e.auth,match:a,pluginId:e.pluginId,source:e.source};return n.push(c),()=>{let e=n.indexOf(c);e>=0&&n.splice(e,1)}}function $d(e){return nf(e.targetsByPath,e.target,{onFirstPathTarget:({path:t})=>Qd({...e.route,path:t,replaceExisting:e.route.replaceExisting??!0}),onLastPathTargetRemoved:e.onLastPathTargetRemoved})}const ef=new WeakMap;function tf(e){let t=e,n=ef.get(t);if(n)return n;let r=new Map;return ef.set(t,r),r}function nf(e,t,n){let r=Ad(t.path),i={...t,path:r},a=e.get(r)??[];if(a.length===0){let t=n?.onFirstPathTarget?.({path:r,target:i});typeof t==`function`&&tf(e).set(r,t)}e.set(r,[...a,i]);let o=!0;return{target:i,unregister:()=>{if(!o)return;o=!1;let t=(e.get(r)??[]).filter(e=>e!==i);if(t.length>0){e.set(r,t);return}e.delete(r);let a=tf(e).get(r);a&&(tf(e).delete(r),a()),n?.onLastPathTargetRemoved?.({path:r})}}}function rf(e,t){let n=Ad(new URL(e.url??`/`,`http://localhost`).pathname),r=t.get(n);return!r||r.length===0?null:{path:n,targets:r}}async function af(e){let t=rf(e.req,e.targetsByPath);if(!t)return!1;let n=typeof e.inFlightKey==`function`?e.inFlightKey({req:e.req,path:t.path,targets:t.targets}):e.inFlightKey??`${t.path}:${e.req.socket?.remoteAddress??`unknown`}`,r=Xd({req:e.req,res:e.res,allowMethods:e.allowMethods,rateLimiter:e.rateLimiter,rateLimitKey:e.rateLimitKey,nowMs:e.nowMs,requireJsonContentType:e.requireJsonContentType,inFlightLimiter:e.inFlightLimiter,inFlightKey:n,inFlightLimitStatusCode:e.inFlightLimitStatusCode,inFlightLimitMessage:e.inFlightLimitMessage});if(!r.ok)return!0;try{return await e.handle(t),!0}finally{r.release()}}function of(e,t){return e?{ok:!1,result:{kind:`ambiguous`}}:{ok:!0,matched:t}}function sf(e){return e?{kind:`single`,target:e}:{kind:`none`}}async function cf(e,t){let n;for(let r of e){if(!await t(r))continue;let e=of(n,r);if(!e.ok)return e.result;n=e.matched}return sf(n)}async function lf(e){return uf(e,await cf(e.targets,async t=>!!await e.isMatch(t)))}function uf(e,t){return t.kind===`single`?t.target:t.kind===`ambiguous`?(e.res.statusCode=e.ambiguousStatusCode??401,e.res.end(e.ambiguousMessage??`ambiguous webhook target`),null):(e.res.statusCode=e.unauthorizedStatusCode??401,e.res.end(e.unauthorizedMessage??`unauthorized`),null)}exports.DEFAULT_ACCOUNT_ID=k,exports.GROUP_POLICY_BLOCKED_LABEL=Xu,exports.GoogleChatConfigSchema=Sc,exports.PAIRING_APPROVED_MESSAGE=`✅ OpenClaw access approved. Send a message to start chatting.`,exports.addWildcardAllowFrom=Mu,exports.applyAccountNameToChannelSection=Du,exports.applySetupAccountConfigPatch=ku,exports.beginWebhookRequestPipelineOrReject=Xd,exports.buildChannelConfigSchema=ui,exports.buildComputedAccountStatusSnapshot=Fn,exports.createAccountListHelpers=U,exports.createAccountStatusSink=di,exports.createActionGate=Xt,exports.createReplyPrefixOptions=Ku,exports.createScopedPairingAccess=Ed,exports.createWebhookInFlightLimiter=qd,exports.deleteAccountFromConfigSection=wn,exports.emptyPluginConfigSchema=pd,exports.evaluateGroupRouteAccessForPolicy=_d,exports.extractToolSend=kd,exports.fetchWithSsrFGuard=cd,exports.formatDocsLink=Sd,exports.formatPairingApproveHint=Li,exports.getChatChannelMeta=so,exports.isDangerousNameMatchingEnabled=qu,exports.isSecretRef=Gn,exports.issuePairingChallenge=Od,exports.jsonResult=nn,exports.listDirectoryGroupEntriesFromMapKeys=Nn,exports.listDirectoryUserEntriesFromAllowFrom=Mn,exports.mergeAllowFromEntries=Nu,exports.migrateBaseNameToDefaultAccount=Ou,exports.missingTargetError=ud,exports.normalizeAccountId=A,exports.promptAccountId=ju,exports.readJsonWebhookBodyOrReject=Zd,exports.readNumberParam=en,exports.readReactionParams=tn,exports.readStringParam=$t,exports.registerWebhookTargetWithPluginRoute=$d,exports.resolveAccountIdForConfigure=Fu,exports.resolveAllowlistProviderRuntimeGroupPolicy=Zu,exports.resolveChannelMediaMaxBytes=zi,exports.resolveDefaultGroupPolicy=Yu,exports.resolveDmGroupAccessWithLists=xd,exports.resolveGoogleChatGroupRequireMention=wi,exports.resolveInboundRouteEnvelopeBuilderWithRuntime=Td,exports.resolveMentionGatingWithBypass=an,exports.resolveSenderScopedGroupPolicy=gd,exports.resolveWebhookPath=jd,exports.resolveWebhookTargetWithAuthOrReject=lf,exports.resolveWebhookTargets=rf,exports.runPassiveAccountLifecycle=pi,exports.setAccountEnabledInConfigSection=Cn,exports.setTopLevelChannelDmPolicyWithAllowFrom=Iu,exports.splitOnboardingEntries=Pu,exports.warnMissingProviderGroupPolicyFallbackOnce=$u,exports.withResolvedWebhookRequestPipeline=af;
|
|
7
|
+
//# sourceMappingURL=googlechat.cjs.map
|