silentlake 2026.3.24
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/CHANGELOG.md +4587 -0
- package/LICENSE +21 -0
- package/README.md +248 -0
- package/assets/avatar-placeholder.svg +19 -0
- package/assets/chrome-extension/icons/icon128.png +0 -0
- package/assets/chrome-extension/icons/icon16.png +0 -0
- package/assets/chrome-extension/icons/icon32.png +0 -0
- package/assets/chrome-extension/icons/icon48.png +0 -0
- package/assets/dmg-background-small.png +0 -0
- package/assets/dmg-background.png +0 -0
- package/assets/silentlake-banner.png +0 -0
- package/dist/APEv2Parser-BZv_dP9t.js +269 -0
- package/dist/APEv2Parser-CPzxFNBB.js +5 -0
- package/dist/AbstractID3Parser-mvDFcjYV.js +47 -0
- package/dist/AiffParser-BXQ9SRZk.js +145 -0
- package/dist/AsfParser-CmBDUlZE.js +631 -0
- package/dist/BasicParser-DhmXREDo.js +853 -0
- package/dist/DsdiffParser-CTKKGyZg.js +150 -0
- package/dist/DsfParser-Ds-YQe4Z.js +101 -0
- package/dist/FlacParser-B1XVPgXF.js +5 -0
- package/dist/FlacParser-DMPyL1y4.js +367 -0
- package/dist/ID3v1Parser-BICWWVDG.js +289 -0
- package/dist/ID3v2Parser-BmZHSUqs.js +650 -0
- package/dist/ID3v2Token-DeJf4tYQ.js +145 -0
- package/dist/MP4Parser-Cjf-Zs8T.js +1061 -0
- package/dist/MatroskaParser-DgBzBe8t.js +909 -0
- package/dist/MpegParser-D5swTpA1.js +744 -0
- package/dist/MusepackParser-D8EQXnpK.js +285 -0
- package/dist/OggParser-BcIYPHwP.js +390 -0
- package/dist/Util-D_zGsr97.js +170 -0
- package/dist/WavPackParser-hosU8gfo.js +166 -0
- package/dist/WaveParser-CA00FZrC.js +273 -0
- package/dist/abort-cutoff-CERmtgZI.js +56 -0
- package/dist/abort-cutoff.runtime-DZkGKKzv.js +61 -0
- package/dist/abort-signal-CsrBEr94.js +13 -0
- package/dist/account-helpers-D3c_eI7c.js +37 -0
- package/dist/account-helpers-ru3jdZSV.js +12 -0
- package/dist/account-id-DZnNZg8x.js +1 -0
- package/dist/account-id-ZCrgXl7Z.js +44 -0
- package/dist/account-lookup-nkoa-foB.js +10 -0
- package/dist/account-snapshot-fields-Cvq7803C.js +116 -0
- package/dist/account-summary-B5Xzvntm.js +36 -0
- package/dist/accounts-43SvCDEA.js +212 -0
- package/dist/accounts-CYgFhv2o.js +105 -0
- package/dist/accounts-ChlyF7cx.js +112 -0
- package/dist/ack-reactions-CNVwfOBj.js +43 -0
- package/dist/acp-cli-B4Rv7-xU.js +2033 -0
- package/dist/acp-runtime-BdLdT-QY.js +1 -0
- package/dist/actions.runtime-CqnQssoB.js +217 -0
- package/dist/actions.runtime-FLmCvVRd.js +236 -0
- package/dist/agent-CBOdzEvR.js +1 -0
- package/dist/agent-scope-BLhzf-o0.js +17 -0
- package/dist/agent-scope-DPP4Z_UU.js +193 -0
- package/dist/agents-D8pBK0II.js +855 -0
- package/dist/agents-Dihz1Ihx.js +323 -0
- package/dist/agents.config-C_lrnc9J.js +18 -0
- package/dist/agents.config-D1VqC78r.js +121 -0
- package/dist/allow-from-BPSBITdd.js +9 -0
- package/dist/allow-from-BwTLpvhp.js +20 -0
- package/dist/allow-from-C4iBpqFI.js +62 -0
- package/dist/allowlist-config-edit-CKbnMmwS.js +279 -0
- package/dist/allowlist-match-CYmPgg1K.js +63 -0
- package/dist/ansi-BEJF8NKS.js +54 -0
- package/dist/anthropic-vertex-provider-Dd5agCN9.js +60 -0
- package/dist/apply.runtime-DhKxNSJE.js +370 -0
- package/dist/apply.runtime-ghlh-P6X.js +211 -0
- package/dist/archive-Tr0wIUO-.js +532 -0
- package/dist/arg-split-Dtda0YDl.js +38 -0
- package/dist/artifacts-C_4LekPC.js +39 -0
- package/dist/audit-BOPSQQtd.js +54 -0
- package/dist/audit-C5kdrCi_.js +788 -0
- package/dist/audit-channel.allow-from.runtime-B7BHNblL.js +17 -0
- package/dist/audit-channel.collect.runtime-CjAbXFBV.js +521 -0
- package/dist/audit-channel.discord.runtime-BBY6S9lg.js +5 -0
- package/dist/audit-channel.telegram.runtime-SJnxOJH2.js +8 -0
- package/dist/audit-channel.zalouser.runtime-SGRWvHxT.js +5 -0
- package/dist/audit-extra.async-DY8v7LXH.js +817 -0
- package/dist/audit-fs-oDMUa5N_.js +375 -0
- package/dist/audit-membership-runtime-BPjFryEx.js +261 -0
- package/dist/audit.deep.runtime-WFf-TpsD.js +31 -0
- package/dist/audit.nondeep.runtime-B4BaEaRU.js +842 -0
- package/dist/audit.runtime-rFjCrods.js +74 -0
- package/dist/auth-O6LQFLHJ.js +416 -0
- package/dist/auth-choice-DIBaxmAQ.js +219 -0
- package/dist/auth-choice-PrbpIjyg.js +610 -0
- package/dist/auth-choice-legacy-Clyw2lVc.js +17 -0
- package/dist/auth-choice-options-ohUw8QR-.js +127 -0
- package/dist/auth-choice-prompt-Cm0s-9Du.js +215 -0
- package/dist/auth-choice-prompt-DI-Xl1Nv.js +36 -0
- package/dist/auth-choice-rKBOd02a.js +64 -0
- package/dist/auth-choice.apply-helpers-BibBSEl9.js +66 -0
- package/dist/auth-choice.plugin-providers.runtime-gqF9NO7_.js +219 -0
- package/dist/auth-health-TWboMYA5.js +166 -0
- package/dist/auth-mode-policy-DywddkT-.js +18 -0
- package/dist/auth-profiles-CWEIQV77.js +1047 -0
- package/dist/auth-profiles.runtime-B98lwopF.js +48 -0
- package/dist/avatar-policy-Ds9e6uHI.js +67 -0
- package/dist/axios-xDDnM0KG.js +12831 -0
- package/dist/backup-create-B6JAR6jJ.js +461 -0
- package/dist/banner-bez5CpOK.js +351 -0
- package/dist/base-session-key-Cf2rkwag.js +14 -0
- package/dist/bindings-BV4AtNSY.js +21 -0
- package/dist/bindings-kjwuC11Q.js +69 -0
- package/dist/bluebubbles-C1M3Geg0.js +87 -0
- package/dist/bluebubbles-DRW3JdOY.js +603 -0
- package/dist/bluebubbles-dEl4QpYz.js +37 -0
- package/dist/bonjour-discovery-C2oY96BG.js +376 -0
- package/dist/boolean-DKtCJu_W.js +29 -0
- package/dist/boolean-param-xAGXUSSN.js +13 -0
- package/dist/boundary-file-read-BP6VMpqH.js +106 -0
- package/dist/boundary-path-B3FFLYNx.js +557 -0
- package/dist/brave-CkimJe4j.js +405 -0
- package/dist/brew-DSwWqzLd.js +44 -0
- package/dist/browser-cli-D3kBUBNc.js +1502 -0
- package/dist/bundled/boot-md/handler.js +381 -0
- package/dist/bundled/bootstrap-extra-files/handler.js +56 -0
- package/dist/bundled/command-logger/handler.js +62 -0
- package/dist/bundled/session-memory/handler.js +401 -0
- package/dist/call-BDvaXe4i.js +44 -0
- package/dist/call-BmLt3xO1.js +639 -0
- package/dist/catalog-BwAYUfL7.js +240 -0
- package/dist/channel-BBCuV5OT.js +4945 -0
- package/dist/channel-BDBXuqeg.js +321 -0
- package/dist/channel-C8h1Irxm.js +1284 -0
- package/dist/channel-CbGpFzo4.js +1602 -0
- package/dist/channel-Ci3K8fI9.js +1006 -0
- package/dist/channel-DGT5N1v7.js +1077 -0
- package/dist/channel-account-context-Bwa-YH_o.js +104 -0
- package/dist/channel-actions-DU2CR3xW.js +37 -0
- package/dist/channel-activity-B8aReQoE.js +35 -0
- package/dist/channel-config-3Uv6ve2_.js +115 -0
- package/dist/channel-config-helpers-CieQWILI.js +377 -0
- package/dist/channel-config-schema-DEVsCZpj.js +1 -0
- package/dist/channel-feedback-G6zh8efr.js +245 -0
- package/dist/channel-inbound-DwzVf2PK.js +395 -0
- package/dist/channel-lifecycle-CpU1dRbh.js +354 -0
- package/dist/channel-options-DJaIP4Dv.js +38 -0
- package/dist/channel-pairing-D54mn51y.js +66 -0
- package/dist/channel-plugin-common-BhTxCE5t.js +1 -0
- package/dist/channel-plugin-ids-CFeS3qir.js +26 -0
- package/dist/channel-plugin-resolution-DUngfdFj.js +112 -0
- package/dist/channel-policy-C4GKHvhz.js +1 -0
- package/dist/channel-reply-pipeline-CPTuaW8n.js +15 -0
- package/dist/channel-send-result-By8EpCPw.js +40 -0
- package/dist/channel-setup-Ck35g7zI.js +49 -0
- package/dist/channel-shared-LkXtTPXk.js +308 -0
- package/dist/channel-summary-CdYLGMVt.js +137 -0
- package/dist/channel-summary-D33z52ft.js +41 -0
- package/dist/channel-targets-DfnKGXez.js +87 -0
- package/dist/channel.runtime-DAyBR2A5.js +324 -0
- package/dist/channel.runtime-DVq5tC2D.js +35 -0
- package/dist/channel.runtime-DaLTDGtF.js +288 -0
- package/dist/channel.runtime-FKfTev2g.js +512 -0
- package/dist/channel.runtime-owqedh1t.js +268 -0
- package/dist/channel.runtime-wOTeiifp.js +230 -0
- package/dist/channels-CIHgkPea.js +408 -0
- package/dist/channels-ZXK6Jiuk.js +1393 -0
- package/dist/channels-cli-Bj6qSlkE.js +412 -0
- package/dist/channels-status-issues-C_U44M8Y.js +16 -0
- package/dist/chat-type-C-n03mQY.js +10 -0
- package/dist/clack-prompter-DuzDnaLi.js +112 -0
- package/dist/clawbot-cli-YNPuwmTB.js +218 -0
- package/dist/cli/daemon-cli.js +88 -0
- package/dist/cli-CW46WAZn.js +254 -0
- package/dist/cli-name-Daok7A7-.js +25 -0
- package/dist/cli-runtime-aAVwbEYy.js +7 -0
- package/dist/cli-utils-Np4NAAtt.js +39 -0
- package/dist/command-format-CYK9XiUC.js +16 -0
- package/dist/command-format-g8YUHNir.js +2 -0
- package/dist/command-gating-BQXGSqc9.js +40 -0
- package/dist/command-options-5coRiipK.js +25 -0
- package/dist/command-poll-backoff-CpkSns-6.js +56 -0
- package/dist/command-poll-backoff.runtime-YT6EGcLN.js +7 -0
- package/dist/command-registry-BI2MOs89.js +242 -0
- package/dist/command-registry-BMsxnuoC.js +14 -0
- package/dist/command-secret-gateway-ChXyZwos.js +211 -0
- package/dist/command-secret-targets-COcwhn-D.js +88 -0
- package/dist/command-secret-targets-CQJT3viO.js +3 -0
- package/dist/commands-Bb9xUwz9.js +42 -0
- package/dist/commands-core-C1usZXC2.js +4923 -0
- package/dist/commands-core.runtime-OTZivlO2.js +232 -0
- package/dist/commands-registry-ChCep1KJ.js +295 -0
- package/dist/commands-registry.data-XyUTELK9.js +904 -0
- package/dist/commands-registry.runtime-m5WTxFtv.js +25 -0
- package/dist/commands-status.runtime-C8_hpNgj.js +211 -0
- package/dist/commands.runtime-BZPnQKcW.js +232 -0
- package/dist/common-CUBlLRXB.js +457 -0
- package/dist/compact.runtime-Djmzpbn6.js +216 -0
- package/dist/completion-cli-D8tLgE5W.js +445 -0
- package/dist/completion-cli-Dz89naVA.js +17 -0
- package/dist/config-6sZwvXJD.js +88 -0
- package/dist/config-B7tPwoHZ.js +38 -0
- package/dist/config-DdDLrP_v.js +273 -0
- package/dist/config-cli-C10R8azD.js +945 -0
- package/dist/config-guard-B1c73BYQ.js +126 -0
- package/dist/config-helpers-3u5wfLBu.js +117 -0
- package/dist/config-pn7LKJdW.js +23 -0
- package/dist/config-presence-BmUF_5K9.js +79 -0
- package/dist/config-regex-CvZFnWkO.js +39 -0
- package/dist/config-runtime-CstET7fq.js +142 -0
- package/dist/config-schema-5YkIW1xw.js +270 -0
- package/dist/config-schema-B1UGMwZ8.js +31 -0
- package/dist/config-schema-DzlnsY3D.js +33 -0
- package/dist/config-state-CE0CGjey.js +288 -0
- package/dist/config-validation-CkVqgkHr.js +272 -0
- package/dist/config-value-DgJrpclm.js +25 -0
- package/dist/configure-DMkp7Sr4.js +1126 -0
- package/dist/configure-DOrQthLy.js +344 -0
- package/dist/connection-auth-BSQJeDOU.js +30 -0
- package/dist/constants-C_Scc680.js +71 -0
- package/dist/control-ui-assets-DjqeIg6A.js +232 -0
- package/dist/control-ui-shared-DP000Pxd.js +29 -0
- package/dist/conversation-runtime-1O0Aaolb.js +1458 -0
- package/dist/core-C7aHA4Aq.js +187 -0
- package/dist/core-command-descriptors-DCUYAEZd.js +96 -0
- package/dist/credentials-BPwBlm1X.js +265 -0
- package/dist/cron-cli-N2Hw_02d.js +579 -0
- package/dist/daemon-cli-DgfaF9xx.js +354 -0
- package/dist/daemon-install-CbclJo5M.js +134 -0
- package/dist/daemon-install-plan.shared-DK6BHlWI.js +222 -0
- package/dist/daemon-runtime-CbClrCwc.js +12 -0
- package/dist/dangerous-config-flags-BJtLWIk7.js +15 -0
- package/dist/dangerous-name-matching-DZa_t0RM.js +44 -0
- package/dist/dangerous-tools-yGPDFTHh.js +27 -0
- package/dist/date-time-DCAyaBop.js +118 -0
- package/dist/dedupe-Cgnk5BbX.js +55 -0
- package/dist/defaults-CEdZhIIb.js +6 -0
- package/dist/delegate-D4ql5N70.js +43 -0
- package/dist/deliver-B004w1Mv.js +212 -0
- package/dist/deliver-runtime-IYvc0giI.js +211 -0
- package/dist/delivery-queue-B19wDCjT.js +3 -0
- package/dist/delivery-queue-DrrqB4Hi.js +299 -0
- package/dist/device-auth-GEXe9vqR.js +15 -0
- package/dist/device-bootstrap-CwwokLEY.js +96 -0
- package/dist/device-bootstrap-Dbhe6oe8.js +1 -0
- package/dist/device-metadata-normalization-BDSQ_eA7.js +21 -0
- package/dist/device-pairing-cFWbBray.js +553 -0
- package/dist/devices-cli-DzycjFzS.js +366 -0
- package/dist/diagnostic-DqJXx_4Q.js +310 -0
- package/dist/diagnostic-events-ktCoG8Br.js +48 -0
- package/dist/diagnostics-CMhyGsPu.js +33 -0
- package/dist/diagnostics-DpLHpQ9c.js +14 -0
- package/dist/directive-handling.fast-lane-toP_ri_H.js +273 -0
- package/dist/directive-handling.impl-BRARyrsT.js +638 -0
- package/dist/directive-handling.impl-CUB4MOnK.js +214 -0
- package/dist/directive-handling.levels-8vnMeuGX.js +2 -0
- package/dist/directive-handling.levels-CoruY1AA.js +13 -0
- package/dist/directive-handling.persist.runtime-78Du6PgL.js +170 -0
- package/dist/directive-handling.shared-DCGUCHjn.js +147 -0
- package/dist/directory-cli-DVsDcgIU.js +437 -0
- package/dist/directory-config-helpers-CURJ8mj7.js +129 -0
- package/dist/directory-runtime-DhC8QkMq.js +19 -0
- package/dist/directory.static-DQaG9ohH.js +44 -0
- package/dist/discord-CYj8s73O.js +214 -0
- package/dist/discord-L9zvSHVn.js +635 -0
- package/dist/discord-core-5tkl-BzP.js +1 -0
- package/dist/dm-policy-shared-6bCJzHOS.js +188 -0
- package/dist/dns-cli-BMvHy265.js +223 -0
- package/dist/docker-XFNiArwM.js +1254 -0
- package/dist/docs-cli-BTaH94wD.js +176 -0
- package/dist/doctor-completion-DKx5m2UC.js +90 -0
- package/dist/doctor-config-preflight-BzQgc3_t.js +40 -0
- package/dist/doctor-config-preflight-DxVCut8L.js +150 -0
- package/dist/doctor-state-migrations-CTF66iAy.js +732 -0
- package/dist/doctor-state-migrations-D0VP4dUh.js +212 -0
- package/dist/entry-status-B2OWAf0s.js +172 -0
- package/dist/entry.js +210 -0
- package/dist/env-BP70DGuy.js +30 -0
- package/dist/env-overrides-JneV60sd.js +434 -0
- package/dist/env-overrides.runtime-DLrwions.js +18 -0
- package/dist/env-substitution-D6t_sLS_.js +136 -0
- package/dist/errors-BxyFnvP3.js +58 -0
- package/dist/exec-Dmex2w_d.js +310 -0
- package/dist/exec-approvals-BJhuySBz.js +386 -0
- package/dist/exec-approvals-allowlist-B_wPddCb.js +384 -0
- package/dist/exec-approvals-cli-C2dwhSkX.js +427 -0
- package/dist/exec-safe-bin-runtime-policy-BZkObC8r.js +89 -0
- package/dist/exec-safety-CaaBy-Zw.js +24 -0
- package/dist/extension-shared-5txN7IXK.js +74 -0
- package/dist/extensionAPI.js +218 -0
- package/dist/extensions/amazon-bedrock/index.js +231 -0
- package/dist/extensions/anthropic/index.js +330 -0
- package/dist/extensions/bluebubbles/index.js +224 -0
- package/dist/extensions/bluebubbles/setup-entry.js +289 -0
- package/dist/extensions/brave/index.js +23 -0
- package/dist/extensions/byteplus/index.js +112 -0
- package/dist/extensions/chutes/index.js +221 -0
- package/dist/extensions/cloudflare-ai-gateway/index.js +218 -0
- package/dist/extensions/copilot-proxy/index.js +125 -0
- package/dist/extensions/device-pair/index.js +1040 -0
- package/dist/extensions/discord/index.js +215 -0
- package/dist/extensions/discord/setup-entry.js +215 -0
- package/dist/extensions/elevenlabs/index.js +223 -0
- package/dist/extensions/fal/index.js +112 -0
- package/dist/extensions/feishu/index.js +227 -0
- package/dist/extensions/feishu/setup-entry.js +112 -0
- package/dist/extensions/firecrawl/index.js +211 -0
- package/dist/extensions/github-copilot/index.js +490 -0
- package/dist/extensions/google/index.js +211 -0
- package/dist/extensions/huggingface/index.js +108 -0
- package/dist/extensions/imessage/index.js +223 -0
- package/dist/extensions/imessage/setup-entry.js +220 -0
- package/dist/extensions/irc/index.js +220 -0
- package/dist/extensions/irc/setup-entry.js +222 -0
- package/dist/extensions/kilocode/index.js +282 -0
- package/dist/extensions/kimi-coding/index.js +148 -0
- package/dist/extensions/line/index.js +57 -0
- package/dist/extensions/line/setup-entry.js +49 -0
- package/dist/extensions/llm-task/index.js +157 -0
- package/dist/extensions/lobster/index.js +261 -0
- package/dist/extensions/mattermost/index.js +220 -0
- package/dist/extensions/mattermost/setup-entry.js +222 -0
- package/dist/extensions/memory-core/index.js +36 -0
- package/dist/extensions/microsoft/index.js +223 -0
- package/dist/extensions/minimax/index.js +437 -0
- package/dist/extensions/mistral/index.js +149 -0
- package/dist/extensions/modelstudio/index.js +144 -0
- package/dist/extensions/moonshot/index.js +211 -0
- package/dist/extensions/nextcloud-talk/index.js +221 -0
- package/dist/extensions/nextcloud-talk/setup-entry.js +223 -0
- package/dist/extensions/nvidia/index.js +29 -0
- package/dist/extensions/ollama/index.js +118 -0
- package/dist/extensions/open-prose/index.js +10 -0
- package/dist/extensions/openai/index.js +677 -0
- package/dist/extensions/opencode/index.js +116 -0
- package/dist/extensions/opencode-go/index.js +114 -0
- package/dist/extensions/openrouter/index.js +398 -0
- package/dist/extensions/openshell/index.js +923 -0
- package/dist/extensions/perplexity/index.js +23 -0
- package/dist/extensions/phone-control/index.js +276 -0
- package/dist/extensions/qianfan/index.js +114 -0
- package/dist/extensions/qwen-portal-auth/index.js +350 -0
- package/dist/extensions/sglang/index.js +285 -0
- package/dist/extensions/signal/index.js +218 -0
- package/dist/extensions/signal/setup-entry.js +218 -0
- package/dist/extensions/slack/index.js +222 -0
- package/dist/extensions/slack/setup-entry.js +220 -0
- package/dist/extensions/synology-chat/index.js +56 -0
- package/dist/extensions/synology-chat/setup-entry.js +58 -0
- package/dist/extensions/synthetic/index.js +112 -0
- package/dist/extensions/talk-voice/index.js +197 -0
- package/dist/extensions/tavily/index.js +211 -0
- package/dist/extensions/telegram/index.js +221 -0
- package/dist/extensions/telegram/setup-entry.js +221 -0
- package/dist/extensions/thread-ownership/index.js +70 -0
- package/dist/extensions/together/index.js +113 -0
- package/dist/extensions/venice/index.js +132 -0
- package/dist/extensions/vercel-ai-gateway/index.js +86 -0
- package/dist/extensions/vllm/index.js +285 -0
- package/dist/extensions/voice-call/index.js +5715 -0
- package/dist/extensions/volcengine/index.js +112 -0
- package/dist/extensions/xai/index.js +211 -0
- package/dist/extensions/xiaomi/index.js +115 -0
- package/dist/extensions/zai/index.js +559 -0
- package/dist/extensions/zalo/index.js +225 -0
- package/dist/extensions/zalo/setup-entry.js +226 -0
- package/dist/external-content-BUdUOqkv.js +238 -0
- package/dist/feishu-CgbwAF0e.js +2664 -0
- package/dist/feishu-Dh5fEbh5.js +59127 -0
- package/dist/fetch-guard-DIyN1HW5.js +165 -0
- package/dist/fetch-timeout-C5xpMuGd.js +36 -0
- package/dist/file-identity-Cw0fQxYY.js +11 -0
- package/dist/file-lock-WbEmczmY.js +107 -0
- package/dist/filter-oMGaNOM1.js +20 -0
- package/dist/format-DH8ysi7s.js +19 -0
- package/dist/format-datetime-BGS6tLDE.js +73 -0
- package/dist/format-duration-CO0BGWB0.js +57 -0
- package/dist/format-relative-C3nDxnXz.js +54 -0
- package/dist/frontmatter-S5vS-I4a.js +309 -0
- package/dist/fs-safe-D3qzH-ab.js +731 -0
- package/dist/gateway-cli-PQNp7o0j.js +28378 -0
- package/dist/gateway-install-token-DV5KjD4F.js +164 -0
- package/dist/gateway-rpc-C0Ey-rik.js +26 -0
- package/dist/gateway-runtime-ih2e7a2K.js +42 -0
- package/dist/gaxios-fetch-compat-KX6bsqFm.js +165 -0
- package/dist/gemini-auth-B5ljg7jr.js +29 -0
- package/dist/git-commit-BIdLubm5.js +2 -0
- package/dist/git-commit-OvUvjri2.js +177 -0
- package/dist/github-copilot-auth-Ccm-cBwy.js +104 -0
- package/dist/global-singleton-4KwY5RvX.js +13 -0
- package/dist/globals-41sdSaKv.js +38 -0
- package/dist/gmail-setup-utils-BX68dZla.js +419 -0
- package/dist/group-access-DJZrYPx1.js +113 -0
- package/dist/group-keys-BD_IYSMs.js +44 -0
- package/dist/group-policy-CWFxv3iB.js +201 -0
- package/dist/group-policy-warnings-Ddu6lBkh.js +175 -0
- package/dist/health-Bu1sbyYy.js +573 -0
- package/dist/health-Cbxc9Bn3.js +59 -0
- package/dist/health-format-B5XfOTuJ.js +26 -0
- package/dist/heartbeat-7aHh0m3d.js +169 -0
- package/dist/heartbeat-summary-Das49TYq.js +57 -0
- package/dist/help-CcbF7-ha.js +81 -0
- package/dist/help-format-Dv45FpYu.js +15 -0
- package/dist/helpers-DJ-5HEbE.js +24 -0
- package/dist/helpers-MxyaLZUk.js +32 -0
- package/dist/history-CHjo8B5W.js +102 -0
- package/dist/hook-runtime-BnNBi_q4.js +1 -0
- package/dist/hooks-cli-DUYK4RM1.js +1102 -0
- package/dist/hooks-policy-BL6HDLUn.js +20 -0
- package/dist/hooks-status-gzNmo3li.js +78 -0
- package/dist/host-env-security-BogNN146.js +223 -0
- package/dist/http-body-CCiSfloA.js +237 -0
- package/dist/http-registry-WFFbLYRd.js +153 -0
- package/dist/identity-DovQV4zD.js +112 -0
- package/dist/identity-cyBYcoXS.js +84 -0
- package/dist/identity-file-EndG1nfc.js +60 -0
- package/dist/image-generation-CNKc-mFK.js +441 -0
- package/dist/image-kJ7Tbov4.js +211 -0
- package/dist/image-ops-j01UkxEv.js +371 -0
- package/dist/imessage-B5pSMT47.js +219 -0
- package/dist/imessage-CoIuY1Ro.js +1451 -0
- package/dist/imessage-Cqjsq4VW.js +190 -0
- package/dist/imessage-core-CsYJuaRZ.js +1 -0
- package/dist/inbound-envelope-4P3IIJc3.js +61 -0
- package/dist/inbound-reply-dispatch-i2Vekqyy.js +72 -0
- package/dist/includes-7XyL3p1c.js +188 -0
- package/dist/includes-scan-y-rS6tTw.js +55 -0
- package/dist/index.js +57 -0
- package/dist/infra/warning-filter.js +2 -0
- package/dist/inspect-CcxlJ1ba.js +279 -0
- package/dist/install-safe-path-Rwbw1XCZ.js +62 -0
- package/dist/installs-iHi2aSjM.js +532 -0
- package/dist/interactive-F7iY0yED.js +8 -0
- package/dist/interactive-runtime-OweOj_Vv.js +90 -0
- package/dist/internal-hooks-0uipqzRY.js +156 -0
- package/dist/io-BX49DsSJ.js +35 -0
- package/dist/io-jOnQRia2.js +7178 -0
- package/dist/ip-C8vmzVu0.js +203 -0
- package/dist/ipv4-DAmsJVOV.js +82 -0
- package/dist/irc-AZ-Ec8be.js +12 -0
- package/dist/irc-CCSRuEC2.js +660 -0
- package/dist/is-main-YViS6wOn.js +27 -0
- package/dist/issue-format-CBEXVico.js +31 -0
- package/dist/issue-format-D3HehoKZ.js +4 -0
- package/dist/json-file-C2zjA0Gv.js +23 -0
- package/dist/json-files-WW-H_psG.js +60 -0
- package/dist/json-pointer-f9dEnBoR.js +43 -0
- package/dist/json-store-O1LwpnBH.js +37 -0
- package/dist/kb-cli-DMZs6PCu.js +65 -0
- package/dist/keyed-async-queue-CPUWV5Pm.js +32 -0
- package/dist/kill-tree-CbjXBw3z.js +149 -0
- package/dist/kilocode-shared-DS7_0IMs.js +29 -0
- package/dist/launchd-tyqGVx9U.js +491 -0
- package/dist/lazy-runtime-BcXbyAaC.js +1 -0
- package/dist/lazy-runtime-bWkd2cs3.js +29 -0
- package/dist/legacy-names-CUNZ4vHN.js +7 -0
- package/dist/legacy-web-search-BgZjNG2h.js +222 -0
- package/dist/lib-CERS7N4b.js +503 -0
- package/dist/lib-PPICrHv1.js +1938 -0
- package/dist/library-CZ461krl.js +211 -0
- package/dist/lifecycle-core-Dnxnw0oy.js +382 -0
- package/dist/line/accounts.js +10 -0
- package/dist/line/send.js +39 -0
- package/dist/line/template-messages.js +2 -0
- package/dist/line-CJSvwApm.js +1 -0
- package/dist/line-N9vL-2JB.js +688 -0
- package/dist/line-core-BOIxkjgu.js +1 -0
- package/dist/links-Bilm-v0z.js +13 -0
- package/dist/llm-slug-generator-BuAuQ5Ft.js +68 -0
- package/dist/llm-slug-generator.js +212 -0
- package/dist/llm-task-Dx8ymRFr.js +1 -0
- package/dist/local-roots-DAzCjWbC.js +34 -0
- package/dist/location-DefAH9WS.js +42 -0
- package/dist/logger-CoEtkjhn.js +550 -0
- package/dist/logger-Cqy7-Maj.js +70 -0
- package/dist/logging-B2wMcpWV.js +13 -0
- package/dist/logging-Bz1qZDPg.js +16 -0
- package/dist/logging-CArEWRgI.js +36 -0
- package/dist/logging-CbTTfADU.js +1 -0
- package/dist/logs-cli-BSjKwaur.js +261 -0
- package/dist/magic-string.es-DJPWMt-n.js +1011 -0
- package/dist/main-session-DKr0lBVk.js +36 -0
- package/dist/manager-ChTGDe87.js +2005 -0
- package/dist/manager-DuwFn87U.js +4226 -0
- package/dist/manager-runtime-E16jsvRe.js +59 -0
- package/dist/manager.runtime-F9F1eFiB.js +827 -0
- package/dist/manifest-registry-B90TyTWl.js +1350 -0
- package/dist/map-size-CMTQVKUV.js +15 -0
- package/dist/markdown-to-line-BWwaRx5F.js +640 -0
- package/dist/mask-api-key-CprzEe7l.js +10 -0
- package/dist/matrix-DzvdUw97.js +228 -0
- package/dist/matrix-migration-snapshot-adoDbNii.js +702 -0
- package/dist/mattermost-DO0BCfF3.js +1 -0
- package/dist/mattermost-SjOt4QDb.js +15 -0
- package/dist/mcp-cli-BC_VPl_o.js +94 -0
- package/dist/mcp-config-Coky4zS4.js +108 -0
- package/dist/media-limits-Cuvmmhop.js +14 -0
- package/dist/media-understanding-DD2uMjK8.js +48 -0
- package/dist/media-understanding.runtime-Kbb2bRmk.js +216 -0
- package/dist/memory-DBjQ0TPd.js +1 -0
- package/dist/memory-cli-Cm4Df0hJ.js +215 -0
- package/dist/memory-cli-yzqneSF8.js +541 -0
- package/dist/memory-search-Das1tiuB.js +204 -0
- package/dist/memory-search-DxmSTjHq.js +18 -0
- package/dist/mention-gating-B_q-EHFx.js +25 -0
- package/dist/mentions-Bxys_va0.js +154 -0
- package/dist/message-channel-Cy-gN4K2.js +106 -0
- package/dist/message-hook-mappers-BBTV3JRQ.js +249 -0
- package/dist/method-scopes-DgypDW23.js +2649 -0
- package/dist/mime-C4vVTBso.js +150 -0
- package/dist/minimal-C5yUxtHy.js +2120 -0
- package/dist/model-auth-B__TJTPw.js +309 -0
- package/dist/model-auth-env-CF9ts7Th.js +111 -0
- package/dist/model-catalog.runtime-CWh17vcc.js +211 -0
- package/dist/model-id-normalization-Y-MIsyK_.js +16 -0
- package/dist/model-input-BB2wSAHb.js +20 -0
- package/dist/model-overrides-sIzKU2wo.js +84 -0
- package/dist/model-param-b-DIFEhICm.js +15 -0
- package/dist/model-picker-CAPjetT3.js +400 -0
- package/dist/model-picker-DEw9viWc.js +215 -0
- package/dist/model-picker.runtime-ixYl7lB5.js +224 -0
- package/dist/model-selection-BTpJnslv.js +437 -0
- package/dist/model-selection-Ci9cPkL2.js +765 -0
- package/dist/model-suppression.runtime-D8cIb6Y5.js +216 -0
- package/dist/models-BQtc3khN.js +226 -0
- package/dist/models-CQgBV5dW.js +2536 -0
- package/dist/models-cli-DbQ-QpQk.js +418 -0
- package/dist/models-config-D2xK-G6c.js +211 -0
- package/dist/models-config.providers.discovery-BaIk1NKL.js +141 -0
- package/dist/models-config.runtime-Cf7q9uAQ.js +211 -0
- package/dist/monitor-B5QmKaD7.js +3272 -0
- package/dist/monitor-CL5OYLih.js +878 -0
- package/dist/monitor-CNZxrM4d.js +3145 -0
- package/dist/monitor-CyQVZdDh.js +223 -0
- package/dist/multimodal-DC43jYNv.js +75 -0
- package/dist/mutable-allowlist-detectors-C6EAzWYE.js +62 -0
- package/dist/net-DlJFp95v.js +270 -0
- package/dist/network-mode-DOgvmom4.js +17 -0
- package/dist/nextcloud-talk-ChMP88s-.js +12 -0
- package/dist/nextcloud-talk-CwnkUy8E.js +1 -0
- package/dist/node-cli-BZDC7rXg.js +2484 -0
- package/dist/node-command-policy-Bg2g6Xjp.js +192 -0
- package/dist/node-commands-B6W6Eo0b.js +11 -0
- package/dist/node-require-BgDD9bTi.js +14 -0
- package/dist/node-resolve-BunMro3f.js +69 -0
- package/dist/node-service-CEZZaqba.js +65 -0
- package/dist/node-startup-env-Gz8ZQniA.js +50 -0
- package/dist/nodes-cli-B4Jr9vct.js +1330 -0
- package/dist/nodes-screen-CQ7IvP62.js +401 -0
- package/dist/normalize-secret-input-_PgpexOG.js +32 -0
- package/dist/note-dfjacCV8.js +109 -0
- package/dist/npm-pack-install-CYNRv-vM.js +574 -0
- package/dist/npm-resolution-Ml2aA6Nu.js +60 -0
- package/dist/oauth.runtime-DA_48MPQ.js +687 -0
- package/dist/oauth.runtime-DS1ry5__.js +318 -0
- package/dist/oauth.runtime-qCkidk8J.js +180 -0
- package/dist/ollama-defaults-asNuGW4_.js +4 -0
- package/dist/onboard-BM6gO6Uw.js +589 -0
- package/dist/onboard-D9IU-7uw.js +48 -0
- package/dist/onboard-DQaHGPRm.js +25 -0
- package/dist/onboard-channels-BdQtLjYb.js +300 -0
- package/dist/onboard-channels-DIVUygs5.js +1257 -0
- package/dist/onboard-config-DFKb-0sE.js +29 -0
- package/dist/onboard-config-DYykzJhx.js +2 -0
- package/dist/onboard-custom-CDP4w1AT.js +216 -0
- package/dist/onboard-custom-DhJN13UV.js +644 -0
- package/dist/onboard-helpers-B7XTd4Pw.js +335 -0
- package/dist/onboard-helpers-BUKtx5Bq.js +54 -0
- package/dist/onboard-hooks-BHSSLAhI.js +73 -0
- package/dist/onboard-remote-BOzEPdHA.js +59 -0
- package/dist/onboard-remote-DVza19_k.js +182 -0
- package/dist/onboard-search-CrS-n9_3.js +446 -0
- package/dist/onboard-skills-BojzIPvk.js +133 -0
- package/dist/onboard-skills-D7HyCVjz.js +69 -0
- package/dist/openai-codex-provider.runtime-BFsopDHI.js +2 -0
- package/dist/openai-defaults-B7FUywsh.js +10 -0
- package/dist/openclaw-exec-env-AcZ9we1N.js +14 -0
- package/dist/openclaw-root-TUHYdr9B.js +88 -0
- package/dist/openclaw-tools.runtime-draZJo5r.js +211 -0
- package/dist/outbound-media-69yrWRDt.js +11 -0
- package/dist/outbound-runtime-ic_7ulJJ.js +1 -0
- package/dist/pairing-challenge-CNrPmmi9.js +48 -0
- package/dist/pairing-cli-BohXW2BK.js +150 -0
- package/dist/pairing-labels-CNKCSmBK.js +7 -0
- package/dist/pairing-message-CBv2njJT.js +4 -0
- package/dist/pairing-store-C4lsd4pO.js +590 -0
- package/dist/pairing-token-gKj4SNFJ.js +55 -0
- package/dist/parse-duration-BBGYkY0S.js +41 -0
- package/dist/parse-finite-number-CP4MQF_w.js +30 -0
- package/dist/parse-log-line-CVh9zu3Q.js +43 -0
- package/dist/parse-port-COyt3COn.js +8 -0
- package/dist/path-alias-guards-ZTKqurNH.js +40 -0
- package/dist/path-env-CPkz6U0Y.js +87 -0
- package/dist/paths-CTjJI9l0.js +179 -0
- package/dist/paths-GHJ97ebE.js +268 -0
- package/dist/paths-nCHyK08H.js +56 -0
- package/dist/perplexity-Beshd9zu.js +422 -0
- package/dist/persistent-dedupe-bjKjVI5u.js +116 -0
- package/dist/pi-embedded-CSQySvOV.js +168518 -0
- package/dist/pi-model-discovery-CuX5CDyZ.js +125 -0
- package/dist/pi-model-discovery-runtime-DNsMrX1n.js +44 -0
- package/dist/pi-tools.before-tool-call.runtime-DxVqzMVf.js +387 -0
- package/dist/platform-launcher-CqGy6UhP.js +83 -0
- package/dist/plugin-entry-CwuwM1jC.js +17 -0
- package/dist/plugin-install-JJwfOXtg.js +216 -0
- package/dist/plugin-install-plan-cixz1_W4.js +49 -0
- package/dist/plugin-install-vkpI1UNd.js +184 -0
- package/dist/plugin-registry-C3j_DUnj.js +51 -0
- package/dist/plugin-registry-DB_yxabS.js +213 -0
- package/dist/plugin-sdk/account-helpers.js +3 -0
- package/dist/plugin-sdk/account-id.js +2 -0
- package/dist/plugin-sdk/account-resolution.js +216 -0
- package/dist/plugin-sdk/acp-runtime.js +46 -0
- package/dist/plugin-sdk/agent-runtime.js +215 -0
- package/dist/plugin-sdk/allow-from.js +17 -0
- package/dist/plugin-sdk/allowlist-config-edit.js +2 -0
- package/dist/plugin-sdk/bluebubbles.js +232 -0
- package/dist/plugin-sdk/boolean-param.js +2 -0
- package/dist/plugin-sdk/channel-actions.js +16 -0
- package/dist/plugin-sdk/channel-config-helpers.js +15 -0
- package/dist/plugin-sdk/channel-config-schema.js +5 -0
- package/dist/plugin-sdk/channel-contract.js +1 -0
- package/dist/plugin-sdk/channel-feedback.js +4 -0
- package/dist/plugin-sdk/channel-inbound.js +53 -0
- package/dist/plugin-sdk/channel-lifecycle.js +2 -0
- package/dist/plugin-sdk/channel-pairing.js +2 -0
- package/dist/plugin-sdk/channel-policy.js +19 -0
- package/dist/plugin-sdk/channel-reply-pipeline.js +23 -0
- package/dist/plugin-sdk/channel-runtime.js +33 -0
- package/dist/plugin-sdk/channel-send-result.js +2 -0
- package/dist/plugin-sdk/channel-setup.js +24 -0
- package/dist/plugin-sdk/channel-targets.js +3 -0
- package/dist/plugin-sdk/cli-runtime.js +5 -0
- package/dist/plugin-sdk/command-auth.js +212 -0
- package/dist/plugin-sdk/compat.js +59 -0
- package/dist/plugin-sdk/config-runtime.js +51 -0
- package/dist/plugin-sdk/conversation-runtime.js +55 -0
- package/dist/plugin-sdk/core.js +40 -0
- package/dist/plugin-sdk/device-bootstrap.js +6 -0
- package/dist/plugin-sdk/diagnostics-otel.js +7 -0
- package/dist/plugin-sdk/diffs.js +3 -0
- package/dist/plugin-sdk/directory-runtime.js +5 -0
- package/dist/plugin-sdk/discord-core.js +26 -0
- package/dist/plugin-sdk/discord.js +219 -0
- package/dist/plugin-sdk/extension-shared.js +15 -0
- package/dist/plugin-sdk/feishu.js +101 -0
- package/dist/plugin-sdk/gateway-runtime.js +46 -0
- package/dist/plugin-sdk/googlechat.js +93 -0
- package/dist/plugin-sdk/group-access.js +2 -0
- package/dist/plugin-sdk/hook-runtime.js +12 -0
- package/dist/plugin-sdk/image-generation.js +51 -0
- package/dist/plugin-sdk/imessage-core.js +214 -0
- package/dist/plugin-sdk/imessage.js +223 -0
- package/dist/plugin-sdk/index.js +55 -0
- package/dist/plugin-sdk/infra-runtime.js +223 -0
- package/dist/plugin-sdk/interactive-runtime.js +3 -0
- package/dist/plugin-sdk/irc.js +232 -0
- package/dist/plugin-sdk/json-store.js +9 -0
- package/dist/plugin-sdk/keyed-async-queue.js +2 -0
- package/dist/plugin-sdk/lazy-runtime.js +2 -0
- package/dist/plugin-sdk/line-core.js +29 -0
- package/dist/plugin-sdk/line.js +22 -0
- package/dist/plugin-sdk/llm-task.js +7 -0
- package/dist/plugin-sdk/matrix-runtime-heavy.js +223 -0
- package/dist/plugin-sdk/matrix-runtime-shared.js +2 -0
- package/dist/plugin-sdk/matrix.js +84 -0
- package/dist/plugin-sdk/mattermost.js +233 -0
- package/dist/plugin-sdk/media-runtime.js +212 -0
- package/dist/plugin-sdk/media-understanding-runtime.js +211 -0
- package/dist/plugin-sdk/media-understanding.js +15 -0
- package/dist/plugin-sdk/memory-core.js +2 -0
- package/dist/plugin-sdk/memory-lancedb.js +2 -0
- package/dist/plugin-sdk/msteams.js +244 -0
- package/dist/plugin-sdk/nextcloud-talk.js +231 -0
- package/dist/plugin-sdk/nostr.js +50 -0
- package/dist/plugin-sdk/ollama-setup.js +33 -0
- package/dist/plugin-sdk/outbound-runtime.js +23 -0
- package/dist/plugin-sdk/plugin-entry.js +3 -0
- package/dist/plugin-sdk/plugin-runtime.js +211 -0
- package/dist/plugin-sdk/process-runtime.js +12 -0
- package/dist/plugin-sdk/provider-auth-api-key.js +53 -0
- package/dist/plugin-sdk/provider-auth-login.js +2 -0
- package/dist/plugin-sdk/provider-auth.js +37 -0
- package/dist/plugin-sdk/provider-catalog.js +2 -0
- package/dist/plugin-sdk/provider-env-vars.js +2 -0
- package/dist/plugin-sdk/provider-google.js +3 -0
- package/dist/plugin-sdk/provider-models.js +27 -0
- package/dist/plugin-sdk/provider-onboard.js +20 -0
- package/dist/plugin-sdk/provider-setup.js +58 -0
- package/dist/plugin-sdk/provider-stream.js +211 -0
- package/dist/plugin-sdk/provider-usage.js +18 -0
- package/dist/plugin-sdk/provider-web-search.js +23 -0
- package/dist/plugin-sdk/provider-zai-endpoint.js +3 -0
- package/dist/plugin-sdk/reply-history.js +23 -0
- package/dist/plugin-sdk/reply-payload.js +2 -0
- package/dist/plugin-sdk/reply-runtime.js +211 -0
- package/dist/plugin-sdk/request-url.js +2 -0
- package/dist/plugin-sdk/routing.js +25 -0
- package/dist/plugin-sdk/runtime-env.js +15 -0
- package/dist/plugin-sdk/runtime-store.js +2 -0
- package/dist/plugin-sdk/runtime.js +15 -0
- package/dist/plugin-sdk/sandbox.js +66 -0
- package/dist/plugin-sdk/secret-input.js +3 -0
- package/dist/plugin-sdk/security-runtime.js +18 -0
- package/dist/plugin-sdk/self-hosted-provider-setup.js +33 -0
- package/dist/plugin-sdk/setup-adapter-runtime.js +2 -0
- package/dist/plugin-sdk/setup-runtime.js +17 -0
- package/dist/plugin-sdk/setup-tools.js +21 -0
- package/dist/plugin-sdk/setup.js +26 -0
- package/dist/plugin-sdk/signal.js +220 -0
- package/dist/plugin-sdk/slack-core.js +22 -0
- package/dist/plugin-sdk/slack.js +223 -0
- package/dist/plugin-sdk/speech-runtime.js +213 -0
- package/dist/plugin-sdk/speech.js +212 -0
- package/dist/plugin-sdk/ssrf-runtime.js +5 -0
- package/dist/plugin-sdk/state-paths.js +3 -0
- package/dist/plugin-sdk/status-helpers.js +9 -0
- package/dist/plugin-sdk/telegram-core.js +23 -0
- package/dist/plugin-sdk/telegram.js +224 -0
- package/dist/plugin-sdk/testing.js +13174 -0
- package/dist/plugin-sdk/text-runtime.js +45 -0
- package/dist/plugin-sdk/thread-bindings-runtime.js +2 -0
- package/dist/plugin-sdk/thread-ownership.js +2 -0
- package/dist/plugin-sdk/tlon.js +57 -0
- package/dist/plugin-sdk/tool-send.js +2 -0
- package/dist/plugin-sdk/twitch.js +46 -0
- package/dist/plugin-sdk/voice-call.js +213 -0
- package/dist/plugin-sdk/web-media.js +28 -0
- package/dist/plugin-sdk/webhook-ingress.js +7 -0
- package/dist/plugin-sdk/webhook-path.js +2 -0
- package/dist/plugin-sdk/whatsapp-core.js +219 -0
- package/dist/plugin-sdk/whatsapp-shared.js +18 -0
- package/dist/plugin-sdk/windows-spawn.js +2 -0
- package/dist/plugin-sdk/zalo.js +239 -0
- package/dist/plugin-sdk/zalouser.js +240 -0
- package/dist/plugins/build-smoke-entry.js +211 -0
- package/dist/plugins/runtime/index.js +229 -0
- package/dist/plugins-1Z50ecJ6.js +1 -0
- package/dist/plugins-C6fKmNuA.js +7 -0
- package/dist/plugins-cli-BkgQkGaU.js +1192 -0
- package/dist/policy-CpkbSAfm.js +60 -0
- package/dist/polls-B2VH7SN9.js +35 -0
- package/dist/ports-BjWuIIQw.js +262 -0
- package/dist/ports-DFiK_Jc-.js +385 -0
- package/dist/ports-lsof-DtJqhFOr.js +25 -0
- package/dist/ports-probe-BQqp8l8E.js +14 -0
- package/dist/preflight-audio.runtime-Fi9mofpp.js +216 -0
- package/dist/probe-BM9sbCgS.js +20 -0
- package/dist/probe-DLBOZftS.js +134 -0
- package/dist/probe-auth-Bjp3G4CI.js +48 -0
- package/dist/probe-auth-DMSPTRRk.js +45 -0
- package/dist/process-runtime-C7el-Ri4.js +1 -0
- package/dist/process-scoped-map-C4gOa-gv.js +61 -0
- package/dist/profile-utils-BcMYGFPT.js +15 -0
- package/dist/profiles-D17eMKQZ.js +683 -0
- package/dist/program-Ch-76sgl.js +155 -0
- package/dist/program-context-BMWNUfqL.js +10 -0
- package/dist/program-context-CD_RvRYh.js +2 -0
- package/dist/progress-D1r9bZU1.js +132 -0
- package/dist/prompt-select-styled-NUKYS9QR.js +4879 -0
- package/dist/prompt-style-BvciNCqy.js +7 -0
- package/dist/prompts-NtuylUyl.js +9 -0
- package/dist/prototype-keys-Cm_8mWvq.js +11 -0
- package/dist/provider-api-key-auth-BE0taXiB.js +108 -0
- package/dist/provider-api-key-auth.runtime-jDZZUAMX.js +34 -0
- package/dist/provider-auth-Bw8x1a3o.js +58 -0
- package/dist/provider-auth-api-key-BrQYvdxi.js +1 -0
- package/dist/provider-auth-choice-BYbPq0eC.js +128 -0
- package/dist/provider-auth-choice-helpers-Bj1GkOSn.js +48 -0
- package/dist/provider-auth-choice-preference-tKq5gaJL.js +192 -0
- package/dist/provider-auth-choice.runtime-DegPpvRJ.js +223 -0
- package/dist/provider-auth-choices-QSilukI1.js +58 -0
- package/dist/provider-auth-guidance-gninjjq8.js +34 -0
- package/dist/provider-auth-helpers-B0dS-1WK.js +86 -0
- package/dist/provider-auth-input-BftBdgvW.js +112 -0
- package/dist/provider-auth-login-D0n0lMuc.js +8 -0
- package/dist/provider-auth-login.runtime-LvuBkQrc.js +243 -0
- package/dist/provider-auth-mode-sTdccIKL.js +20 -0
- package/dist/provider-auth-ref-BS3gwrNr.js +168 -0
- package/dist/provider-auth-ref-BmEcEN7K.js +3 -0
- package/dist/provider-catalog--18-pW5t.js +11 -0
- package/dist/provider-catalog-2P2hel74.js +48 -0
- package/dist/provider-catalog-B0FqWSwe.js +48 -0
- package/dist/provider-catalog-BvORKzzD.js +91 -0
- package/dist/provider-catalog-C34j1_or.js +26 -0
- package/dist/provider-catalog-C5vmXjmb.js +11 -0
- package/dist/provider-catalog-CBufm2Dr.js +36 -0
- package/dist/provider-catalog-D7QvsUXS.js +12 -0
- package/dist/provider-catalog-DKy_dzQZ.js +41 -0
- package/dist/provider-env-vars-CsQlY7bF.js +110 -0
- package/dist/provider-id-BpXo5t6v.js +31 -0
- package/dist/provider-model-allowlist-4HSOnlX-.js +24 -0
- package/dist/provider-model-primary-NJ-xlhec.js +53 -0
- package/dist/provider-models-C2EjYMwW.js +2416 -0
- package/dist/provider-oauth-flow-BQN6F6EC.js +33 -0
- package/dist/provider-ollama-setup-DhQvDwAj.js +309 -0
- package/dist/provider-onboard-CjOfyeQG.js +1 -0
- package/dist/provider-onboarding-config-DOZ3pFA6.js +165 -0
- package/dist/provider-openai-codex-oauth-tls-Bo8U4D3E.js +101 -0
- package/dist/provider-runtime.runtime-DnP2jpoM.js +211 -0
- package/dist/provider-self-hosted-setup-CUrmsugW.js +182 -0
- package/dist/provider-usage-ClDVmkhl.js +633 -0
- package/dist/provider-usage-DIC6cn-3.js +211 -0
- package/dist/provider-web-search-NzK8ep1E.js +507 -0
- package/dist/provider-wizard-C6jCuyQe.js +236 -0
- package/dist/provider-zai-endpoint-DeDABzT4.js +106 -0
- package/dist/proxy-H5O2p6AP.js +121 -0
- package/dist/proxy-env-DG2u55RW.js +40 -0
- package/dist/push-apns-D4zD2tmP.js +1050 -0
- package/dist/pw-ai-BuPUVeUK.js +1876 -0
- package/dist/qmd-manager-BpygGMW9.js +1571 -0
- package/dist/qr-cli-DnWHXcxh.js +370 -0
- package/dist/qr-cli-yaZ0FZ6z.js +213 -0
- package/dist/query-expansion-Do45hILP.js +1114 -0
- package/dist/reactions-BcC_XZqD.js +281 -0
- package/dist/read-only-account-inspect-DPJzadPo.js +42 -0
- package/dist/read-only-account-inspect.discord.runtime-CW9DDKH8.js +216 -0
- package/dist/read-only-account-inspect.slack.runtime-BcXBPyh3.js +216 -0
- package/dist/read-only-account-inspect.telegram.runtime-Y7h0Jbdj.js +216 -0
- package/dist/redact-BDinS1q9.js +102 -0
- package/dist/redact-identifier-FUiWQxv5.js +13 -0
- package/dist/redact-snapshot-DBPmeYy2.js +2654 -0
- package/dist/ref-contract-CCBBbf1r.js +53 -0
- package/dist/register-CppP7Ddc.js +43 -0
- package/dist/register.agent-BOD5ROGQ.js +546 -0
- package/dist/register.backup-Y2VGqcRu.js +269 -0
- package/dist/register.configure-1qiTINph.js +354 -0
- package/dist/register.maintenance-shn-zigv.js +694 -0
- package/dist/register.message-mR4CLSoo.js +812 -0
- package/dist/register.onboard-CkDryVid.js +298 -0
- package/dist/register.setup-B0xW5olD.js +318 -0
- package/dist/register.status-health-sessions-CuhWc03j.js +604 -0
- package/dist/register.subclis-BazXM5TW.js +315 -0
- package/dist/register.subclis-C2d8UDhH.js +13 -0
- package/dist/registry-C3q59Qj0.js +55 -0
- package/dist/registry-CPsHw6xU.js +219 -0
- package/dist/registry-CxgtJ09C.js +28 -0
- package/dist/registry-rgYi7KoO.js +160 -0
- package/dist/repair-qXnOAvDy.js +105 -0
- package/dist/replies-EiwmmZ_W.js +122 -0
- package/dist/reply-history-CVCD5oE9.js +1 -0
- package/dist/reply-payload-DBGc074f.js +232 -0
- package/dist/report-cli-DB1jQx32.js +42 -0
- package/dist/request-url-BKfWAQx8.js +10 -0
- package/dist/resolve-Ckjd8TAk.js +14 -0
- package/dist/resolve-T2q_0ARF.js +619 -0
- package/dist/resolve-route-vEY3ONZ2.js +466 -0
- package/dist/resolve-utils-CbqJY2bs.js +102 -0
- package/dist/response-generator-VdoCcQ3y.js +153 -0
- package/dist/restart-stale-pids-CLGiqU2E.js +187 -0
- package/dist/retry-D15TD1S3.js +168 -0
- package/dist/root-help-B9Aou4ho.js +32 -0
- package/dist/routes-TpLEcKO8.js +7084 -0
- package/dist/routing-Y3m0o-kB.js +26 -0
- package/dist/rpc-C6MN-nVc.js +67 -0
- package/dist/run-command-DRKv5Lj6.js +32 -0
- package/dist/run-main-YZSMdx0B.js +424 -0
- package/dist/run-with-concurrency-BrSjWzpg.js +41 -0
- package/dist/runtime-B66W9flm.js +43 -0
- package/dist/runtime-C9VaVKYZ.js +2338 -0
- package/dist/runtime-CT2LIJZu.js +91 -0
- package/dist/runtime-CqDQ81eY.js +143 -0
- package/dist/runtime-CuvWMN7E.js +89 -0
- package/dist/runtime-D4_OpzA1.js +5 -0
- package/dist/runtime-DP-4DZja.js +5 -0
- package/dist/runtime-Dl17x_cV.js +1 -0
- package/dist/runtime-Z35JoYPC.js +30 -0
- package/dist/runtime-api-D79M0lQN.js +1 -0
- package/dist/runtime-api-y3zfnQGK.js +39 -0
- package/dist/runtime-discord-ops.runtime-Bg5h5v9-.js +234 -0
- package/dist/runtime-env-a_iwdJIv.js +1 -0
- package/dist/runtime-forwarders-DtMc8rBP.js +44 -0
- package/dist/runtime-group-policy-B7irU4eu.js +59 -0
- package/dist/runtime-guard-y62lPDGY.js +58 -0
- package/dist/runtime-parse-CeqXmZHJ.js +84 -0
- package/dist/runtime-paths-CstaCCMi.js +334 -0
- package/dist/runtime-slack-ops.runtime-BumgKDhS.js +226 -0
- package/dist/runtime-status-CgL02wYX.js +15 -0
- package/dist/runtime-store-Bt3Sdbrn.js +22 -0
- package/dist/runtime-telegram-ops.runtime-rSLQ3KrE.js +233 -0
- package/dist/runtime-whatsapp-boundary-xZem0NyQ.js +364 -0
- package/dist/safe-open-sync-Bt9R1Mnf.js +83 -0
- package/dist/safe-regex-tLlDZYfM.js +244 -0
- package/dist/safe-text-B_CQuica.js +16 -0
- package/dist/sandbox-CUUouiKs.js +2795 -0
- package/dist/sandbox-cli-BN8y0Get.js +499 -0
- package/dist/sandbox-paths-fqp_TZdO.js +144 -0
- package/dist/sandbox-qSs4h3sk.js +1 -0
- package/dist/sanitize-env-vars-vNSNqm0y.js +74 -0
- package/dist/scan-paths-BJmvUZ1E.js +28 -0
- package/dist/search-manager-DWhFgwyp.js +17 -0
- package/dist/search-manager-r8Cw4ZRv.js +392 -0
- package/dist/secret-equal-ObQfyZGa.js +9 -0
- package/dist/secret-file-Ch0yuOXR.js +11 -0
- package/dist/secret-file-DYJtH6kf.js +92 -0
- package/dist/secret-input-4REZ4sHo.js +35 -0
- package/dist/secrets-cli-D1df8b0o.js +2304 -0
- package/dist/secure-random-Cs8tw_HQ.js +10 -0
- package/dist/security-cli-V66ESmdT.js +676 -0
- package/dist/security-runtime-BuEhpJVE.js +23 -0
- package/dist/send-3tabvle6.js +100 -0
- package/dist/send-CC5J3tyW.js +1026 -0
- package/dist/send-deps-CrFMNvqO.js +19 -0
- package/dist/send-i2-mdtiE.js +250 -0
- package/dist/server-BTOjmlyi.js +116 -0
- package/dist/server-middleware-CCqKhKUb.js +106 -0
- package/dist/server-node-events-D6y22Tt8.js +611 -0
- package/dist/server-startup-matrix-migration-DHWSoS73.js +1595 -0
- package/dist/service-Bxc9uL2e.js +774 -0
- package/dist/service-CBLajPZL.js +21 -0
- package/dist/session-cost-usage-BmbaBvk4.js +212 -0
- package/dist/session-cost-usage-C30Jl2SI.js +615 -0
- package/dist/session-fork.runtime-BZfcC1Nc.js +51 -0
- package/dist/session-key-gFFk3uv9.js +216 -0
- package/dist/session-write-lock-DNKvpjKf.js +324 -0
- package/dist/sessions-BIH_j_XS.js +222 -0
- package/dist/sessions-D5dWcxC_.js +212 -0
- package/dist/sessions-DaSBVNwD.js +669 -0
- package/dist/setup-C2XF1YH3.js +397 -0
- package/dist/setup-CN-teRpz.js +8 -0
- package/dist/setup-adapter-runtime-Bjv2adwG.js +1 -0
- package/dist/setup-binary-BOJA7zdN.js +30 -0
- package/dist/setup-browser-BhNPCUtK.js +71 -0
- package/dist/setup-core-BsG09DZH.js +149 -0
- package/dist/setup-core-D-O1GQax.js +162 -0
- package/dist/setup-core-Dtm54Rcq.js +510 -0
- package/dist/setup-entry-B1mTa7bU.js +10 -0
- package/dist/setup-entry-CTMgw-K5.js +13 -0
- package/dist/setup-entry-Cmd_cufO.js +13 -0
- package/dist/setup-entry-CybgA3zP.js +12 -0
- package/dist/setup-entry-DED_hL6i.js +12 -0
- package/dist/setup-entry-WCq9VMWx.js +14 -0
- package/dist/setup-group-access-BtPApRvE.js +70 -0
- package/dist/setup-helpers-B62Ecg9r.js +362 -0
- package/dist/setup-surface-B7A7qowY.js +452 -0
- package/dist/setup-surface-BBYJVRXc.js +380 -0
- package/dist/setup-surface-CFUz_BJi.js +298 -0
- package/dist/setup-tools-BPiMjAN7.js +1 -0
- package/dist/setup-wizard-helpers-COZ1UAdX.js +770 -0
- package/dist/setup-wizard-proxy-Slwi-1gX.js +116 -0
- package/dist/setup.finalize-B8O01nge.js +633 -0
- package/dist/setup.gateway-config-BPDIFk__.js +288 -0
- package/dist/setup.secret-input-BL-bqJpt.js +25 -0
- package/dist/shared-AygSbeCK.js +50 -0
- package/dist/shared-BHqDLkMG.js +127 -0
- package/dist/shared-BPtG8PgB.js +70 -0
- package/dist/shared-BU0QgVMZ.js +36 -0
- package/dist/shared-Bzr2UyEm.js +351 -0
- package/dist/shared-C_XXbGIF.js +87 -0
- package/dist/shared-Diw3KzwZ.js +82 -0
- package/dist/shared-DngjQumT.js +196 -0
- package/dist/shared-DzH3zmAy.js +64 -0
- package/dist/shared-LeP8iUTz.js +54 -0
- package/dist/shell-argv-DWV43Vya.js +72 -0
- package/dist/shell-env-cD92jEyV.js +181 -0
- package/dist/signal-BQd9f9dF.js +315 -0
- package/dist/signal-Ca7y47bM.js +46 -0
- package/dist/signal-Did9U_fa.js +214 -0
- package/dist/signal-cli-install-DxoL8CgF.js +188 -0
- package/dist/skill-commands-CiSwTFBQ.js +652 -0
- package/dist/skill-commands.runtime-CEwlWT4j.js +34 -0
- package/dist/skill-scanner-DG7MT7pu.js +354 -0
- package/dist/skills-BC8GJ9Rp.js +22 -0
- package/dist/skills-CCgKs_NJ.js +863 -0
- package/dist/skills-cli-dhYXJCuL.js +339 -0
- package/dist/skills-install-DiriUXJd.js +763 -0
- package/dist/skills-status-BmQTn4jL.js +23 -0
- package/dist/skills-status-a9b899Y3.js +169 -0
- package/dist/slack-CXgv7nu7.js +730 -0
- package/dist/slack-CcSByPzI.js +217 -0
- package/dist/slack-CtcCh0Lj.js +24537 -0
- package/dist/slack-core-DcsbATUs.js +1 -0
- package/dist/slash-commands.runtime-kO8EUKYW.js +228 -0
- package/dist/slash-dispatch.runtime-Bu2yMeFy.js +238 -0
- package/dist/slash-skill-commands.runtime-wwX3tF84.js +216 -0
- package/dist/speech-bSreRuDH.js +1 -0
- package/dist/speech-runtime-y1FcnGVA.js +1 -0
- package/dist/src-CmXHIz5f.js +846 -0
- package/dist/ssh-config-ChqR6ijV.js +77 -0
- package/dist/ssh-tunnel-Cz51VBAt.js +159 -0
- package/dist/ssh-tunnel-DWze2IQS.js +16 -0
- package/dist/ssrf-Dk9XaoKN.js +220 -0
- package/dist/ssrf-policy-Dk6oMa20.js +69 -0
- package/dist/ssrf-runtime-C-mAQLVA.js +1 -0
- package/dist/stagger-DU7FjHYo.js +54 -0
- package/dist/state-paths-DJIGEFq_.js +1 -0
- package/dist/status-69r8-Zey.js +75 -0
- package/dist/status-BdLTvZOL.js +44 -0
- package/dist/status-Bt7DQmRI.js +1665 -0
- package/dist/status-CoUFSBgt.js +202 -0
- package/dist/status-DbI3Kbh5.js +235 -0
- package/dist/status-DeKlzu_o.js +212 -0
- package/dist/status-Haie42Fc.js +606 -0
- package/dist/status-helpers-Cda-rGLX.js +101 -0
- package/dist/status-json-DS1M_MWJ.js +322 -0
- package/dist/status.link-channel-Cb8bZ_Od.js +40 -0
- package/dist/status.scan.deps.runtime-7_6VUs50.js +77 -0
- package/dist/status.scan.runtime-DtR8BIE9.js +14 -0
- package/dist/status.summary-l_Bi1buR.js +600 -0
- package/dist/status.summary.runtime-Cng6MzRU.js +151 -0
- package/dist/status.update-DtbnnPKx.js +79 -0
- package/dist/store-CvL8MPei.js +1446 -0
- package/dist/store.runtime-hgnvmZgO.js +43 -0
- package/dist/string-normalization-CvzuCAZv.js +19 -0
- package/dist/string-sample-BOLqzr4Y.js +11 -0
- package/dist/subagent-orphan-recovery-si1z2iBu.js +407 -0
- package/dist/subagent-registry-runtime-CXUDI8gL.js +211 -0
- package/dist/subcli-descriptors-CY_nHzpZ.js +151 -0
- package/dist/subsystem-CUp-6QQf.js +421 -0
- package/dist/synology-chat-CdejNfs0.js +12 -0
- package/dist/system-cli-DkOaXHkQ.js +99 -0
- package/dist/system-events-mAu6Ap6K.js +75 -0
- package/dist/system-message-DA9eUYzB.js +16 -0
- package/dist/system-run-command-Cxq2F1MB.js +258 -0
- package/dist/systemd-CrxZBFae.js +557 -0
- package/dist/systemd-hints-y-zJ9aTm.js +315 -0
- package/dist/systemd-linger-BdklDcLg.js +16 -0
- package/dist/systemd-linger-DLrbG9_d.js +68 -0
- package/dist/table-DFMOhmNZ.js +305 -0
- package/dist/tailnet-ofqBrXzu.js +38 -0
- package/dist/tailscale-Cbsx-2HB.js +254 -0
- package/dist/target-errors-ksphhzJg.js +26 -0
- package/dist/target-registry-krAVlXi_.js +1321 -0
- package/dist/telegram/audit.js +2 -0
- package/dist/telegram/token.js +211 -0
- package/dist/telegram-BjDUP22F.js +10910 -0
- package/dist/telegram-DMiNSGAJ.js +575 -0
- package/dist/telegram-Dt11B3JL.js +218 -0
- package/dist/telegram-core-B4Jo-uko.js +1 -0
- package/dist/template-messages-kh7VfgOb.js +214 -0
- package/dist/text-chunking-CUf5WgqG.js +19 -0
- package/dist/text-format-sFXlJfHH.js +8 -0
- package/dist/text-runtime-C_Roi_Je.js +1418 -0
- package/dist/theme-B5HDbQfl.js +2 -0
- package/dist/theme-CdOoMzRk.js +34 -0
- package/dist/thinking-BBD_0HSp.js +68 -0
- package/dist/thinking.shared-CncvRHts.js +246 -0
- package/dist/thread-bindings-messages-Cdo8jSa9.js +229 -0
- package/dist/thread-bindings-policy-DMjOaNyR.js +119 -0
- package/dist/thread-bindings-runtime-Ckwk3Uuz.js +1 -0
- package/dist/threading-helpers-Cq55SUtb.js +14 -0
- package/dist/timeouts-BwR1sGom.js +72 -0
- package/dist/tmp-openclaw-dir-idKIOMmb.js +102 -0
- package/dist/token-Bgv8XEsC.js +50 -0
- package/dist/tool-catalog-BV6FcEWS.js +337 -0
- package/dist/tool-policy-match-CHqTCSdK.js +46 -0
- package/dist/tool-send-9LXKcrda.js +16 -0
- package/dist/topology-cli-BhUXVViF.js +43 -0
- package/dist/transcript-events-B1V6z5ct.js +29 -0
- package/dist/tui-DDJMGCFK.js +3838 -0
- package/dist/tui-cli-ByN-ZH6y.js +237 -0
- package/dist/typebox-D0SHDJST.js +175 -0
- package/dist/types-BCKGVVld.js +83 -0
- package/dist/types-CtpUGsDP.js +30 -0
- package/dist/types.secrets-BWSeXrF4.js +80 -0
- package/dist/types.tools-BBO8HCi6.js +22 -0
- package/dist/typing-DG_YqWJ7.js +224 -0
- package/dist/unhandled-rejections-CDJ8dOVP.js +170 -0
- package/dist/unhandled-rejections-O6cVOz2D.js +4 -0
- package/dist/update-Br8U-txJ.js +1039 -0
- package/dist/update-check-C3TeQaWg.js +464 -0
- package/dist/update-cli-XHfIntD0.js +1625 -0
- package/dist/update-offset-store-36vzzZXw.js +211 -0
- package/dist/upsert-with-lock-Bb96JHpb.js +34 -0
- package/dist/url-userinfo-Db63ng4y.js +14 -0
- package/dist/utils-Bxk6BLTg.js +236 -0
- package/dist/utils-vDeUf98G.js +7 -0
- package/dist/version-DCY9_obP.js +64 -0
- package/dist/version-DRF-wKTV.js +2 -0
- package/dist/voice-call-D4fgwZNO.js +1 -0
- package/dist/warning-filter-CgvLQB4Y.js +56 -0
- package/dist/web-media-BfBb8i48.js +1 -0
- package/dist/web-media-CtU6jM5V.js +498 -0
- package/dist/webhook-ingress-CupqYpKM.js +338 -0
- package/dist/webhook-memory-guards-BHrFZ4yq.js +129 -0
- package/dist/webhook-path-BGFZ55ML.js +22 -0
- package/dist/webhook-shared-Cvk3b0ac.js +349 -0
- package/dist/webhooks-cli-vOAoBF9b.js +357 -0
- package/dist/whatsapp-D5nD0rGG.js +58 -0
- package/dist/whatsapp-DXbWlm3A.js +82 -0
- package/dist/whatsapp-core-C2WGMsaY.js +89451 -0
- package/dist/whatsapp-heartbeat-CSWnPQ7q.js +84 -0
- package/dist/whatsapp-shared-BmHKqTtR.js +95 -0
- package/dist/widearea-dns-CXimgJzu.js +125 -0
- package/dist/windows-argv-IXrdWrJj.js +145 -0
- package/dist/windows-spawn-vMJGZo89.js +154 -0
- package/dist/with-timeout-2AKTISee.js +58 -0
- package/dist/workspace-BH7CXmrr.js +479 -0
- package/dist/workspace-dirs-_O4V3xCR.js +13 -0
- package/dist/workspace-v5XppK5M.js +302 -0
- package/dist/ws-By-QcLjg.js +11 -0
- package/dist/wsl-BV3Cb66X.js +57 -0
- package/dist/zalo-CHQzsLhE.js +301 -0
- package/dist/zalo-CcJ3J9f2.js +13 -0
- package/dist/zod-schema.agent-runtime-T_EC_6fg.js +600 -0
- package/dist/zod-schema.core-BdgRr-F1.js +545 -0
- package/dist/zod-schema.providers-core-Dgq7MTqU.js +1613 -0
- package/docs/.i18n/README.md +31 -0
- package/docs/.i18n/glossary.ja-JP.json +14 -0
- package/docs/.i18n/glossary.zh-CN.json +242 -0
- package/docs/.i18n/ja-JP.tm.jsonl +0 -0
- package/docs/assets/install-script.svg +1 -0
- package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
- package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
- package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
- package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
- package/docs/assets/macos-onboarding/05-permissions.png +0 -0
- package/docs/assets/openclaw-logo-text-dark.png +0 -0
- package/docs/assets/openclaw-logo-text-dark.svg +418 -0
- package/docs/assets/openclaw-logo-text.png +0 -0
- package/docs/assets/openclaw-logo-text.svg +418 -0
- package/docs/assets/pixel-lobster.svg +60 -0
- package/docs/assets/showcase/agents-ui.jpg +0 -0
- package/docs/assets/showcase/bambu-cli.png +0 -0
- package/docs/assets/showcase/codexmonitor.png +0 -0
- package/docs/assets/showcase/gohome-grafana.png +0 -0
- package/docs/assets/showcase/ios-testflight.jpg +0 -0
- package/docs/assets/showcase/oura-health.png +0 -0
- package/docs/assets/showcase/padel-cli.svg +11 -0
- package/docs/assets/showcase/padel-screenshot.jpg +0 -0
- package/docs/assets/showcase/papla-tts.jpg +0 -0
- package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
- package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
- package/docs/assets/showcase/roborock-status.svg +13 -0
- package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
- package/docs/assets/showcase/snag.png +0 -0
- package/docs/assets/showcase/tesco-shop.jpg +0 -0
- package/docs/assets/showcase/wienerlinien.png +0 -0
- package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
- package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
- package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
- package/docs/assets/sponsors/blacksmith.svg +14 -0
- package/docs/assets/sponsors/convex.svg +16 -0
- package/docs/assets/sponsors/openai.svg +3 -0
- package/docs/assets/sponsors/vercel.svg +5 -0
- package/docs/auth-credential-semantics.md +53 -0
- package/docs/automation/auth-monitoring.md +44 -0
- package/docs/automation/cron-jobs.md +727 -0
- package/docs/automation/cron-vs-heartbeat.md +286 -0
- package/docs/automation/gmail-pubsub.md +256 -0
- package/docs/automation/hooks.md +1049 -0
- package/docs/automation/poll.md +86 -0
- package/docs/automation/standing-orders.md +251 -0
- package/docs/automation/troubleshooting.md +122 -0
- package/docs/automation/webhook.md +217 -0
- package/docs/brave-search.md +93 -0
- package/docs/channels/bluebubbles.md +347 -0
- package/docs/channels/broadcast-groups.md +442 -0
- package/docs/channels/channel-routing.md +139 -0
- package/docs/channels/discord.md +1229 -0
- package/docs/channels/feishu.md +747 -0
- package/docs/channels/googlechat.md +261 -0
- package/docs/channels/group-messages.md +84 -0
- package/docs/channels/groups.md +379 -0
- package/docs/channels/imessage.md +367 -0
- package/docs/channels/index.md +47 -0
- package/docs/channels/irc.md +242 -0
- package/docs/channels/line.md +194 -0
- package/docs/channels/location.md +56 -0
- package/docs/channels/matrix.md +677 -0
- package/docs/channels/mattermost.md +427 -0
- package/docs/channels/msteams.md +780 -0
- package/docs/channels/nextcloud-talk.md +138 -0
- package/docs/channels/nostr.md +242 -0
- package/docs/channels/pairing.md +114 -0
- package/docs/channels/signal.md +329 -0
- package/docs/channels/slack.md +603 -0
- package/docs/channels/synology-chat.md +132 -0
- package/docs/channels/telegram.md +987 -0
- package/docs/channels/tlon.md +276 -0
- package/docs/channels/troubleshooting.md +118 -0
- package/docs/channels/twitch.md +379 -0
- package/docs/channels/whatsapp.md +460 -0
- package/docs/channels/zalo.md +243 -0
- package/docs/channels/zalouser.md +181 -0
- package/docs/ci.md +55 -0
- package/docs/cli/acp.md +288 -0
- package/docs/cli/agent.md +29 -0
- package/docs/cli/agents.md +123 -0
- package/docs/cli/approvals.md +50 -0
- package/docs/cli/backup.md +76 -0
- package/docs/cli/browser.md +106 -0
- package/docs/cli/channels.md +102 -0
- package/docs/cli/clawbot.md +21 -0
- package/docs/cli/completion.md +35 -0
- package/docs/cli/config.md +295 -0
- package/docs/cli/configure.md +36 -0
- package/docs/cli/cron.md +77 -0
- package/docs/cli/daemon.md +53 -0
- package/docs/cli/dashboard.md +22 -0
- package/docs/cli/devices.md +139 -0
- package/docs/cli/directory.md +63 -0
- package/docs/cli/dns.md +23 -0
- package/docs/cli/docs.md +15 -0
- package/docs/cli/doctor.md +48 -0
- package/docs/cli/gateway.md +235 -0
- package/docs/cli/health.md +21 -0
- package/docs/cli/hooks.md +318 -0
- package/docs/cli/index.md +1147 -0
- package/docs/cli/logs.md +28 -0
- package/docs/cli/memory.md +66 -0
- package/docs/cli/message.md +278 -0
- package/docs/cli/models.md +81 -0
- package/docs/cli/node.md +127 -0
- package/docs/cli/nodes.md +75 -0
- package/docs/cli/onboard.md +157 -0
- package/docs/cli/pairing.md +32 -0
- package/docs/cli/plugins.md +186 -0
- package/docs/cli/qr.md +46 -0
- package/docs/cli/reset.md +20 -0
- package/docs/cli/sandbox.md +197 -0
- package/docs/cli/secrets.md +188 -0
- package/docs/cli/security.md +79 -0
- package/docs/cli/sessions.md +110 -0
- package/docs/cli/setup.md +29 -0
- package/docs/cli/skills.md +26 -0
- package/docs/cli/status.md +30 -0
- package/docs/cli/system.md +60 -0
- package/docs/cli/tui.md +30 -0
- package/docs/cli/uninstall.md +20 -0
- package/docs/cli/update.md +103 -0
- package/docs/cli/voicecall.md +34 -0
- package/docs/cli/webhooks.md +25 -0
- package/docs/concepts/agent-loop.md +148 -0
- package/docs/concepts/agent-workspace.md +236 -0
- package/docs/concepts/agent.md +122 -0
- package/docs/concepts/architecture.md +137 -0
- package/docs/concepts/compaction.md +123 -0
- package/docs/concepts/context-engine.md +268 -0
- package/docs/concepts/context.md +172 -0
- package/docs/concepts/delegate-architecture.md +296 -0
- package/docs/concepts/features.md +73 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory.md +108 -0
- package/docs/concepts/messages.md +154 -0
- package/docs/concepts/model-failover.md +152 -0
- package/docs/concepts/model-providers.md +607 -0
- package/docs/concepts/models.md +225 -0
- package/docs/concepts/multi-agent.md +552 -0
- package/docs/concepts/oauth.md +158 -0
- package/docs/concepts/presence.md +102 -0
- package/docs/concepts/queue.md +89 -0
- package/docs/concepts/retry.md +69 -0
- package/docs/concepts/session-pruning.md +121 -0
- package/docs/concepts/session-tool.md +242 -0
- package/docs/concepts/session.md +310 -0
- package/docs/concepts/streaming.md +155 -0
- package/docs/concepts/system-prompt.md +132 -0
- package/docs/concepts/timezone.md +91 -0
- package/docs/concepts/typebox.md +291 -0
- package/docs/concepts/typing-indicators.md +68 -0
- package/docs/concepts/usage-tracking.md +35 -0
- package/docs/date-time.md +128 -0
- package/docs/debug/node-issue.md +85 -0
- package/docs/diagnostics/flags.md +91 -0
- package/docs/docs.json +2061 -0
- package/docs/gateway/authentication.md +179 -0
- package/docs/gateway/background-process.md +97 -0
- package/docs/gateway/bonjour.md +177 -0
- package/docs/gateway/bridge-protocol.md +91 -0
- package/docs/gateway/cli-backends.md +225 -0
- package/docs/gateway/configuration-examples.md +651 -0
- package/docs/gateway/configuration-reference.md +3123 -0
- package/docs/gateway/configuration.md +633 -0
- package/docs/gateway/discovery.md +123 -0
- package/docs/gateway/doctor.md +362 -0
- package/docs/gateway/gateway-lock.md +34 -0
- package/docs/gateway/health.md +44 -0
- package/docs/gateway/heartbeat.md +393 -0
- package/docs/gateway/index.md +261 -0
- package/docs/gateway/local-models.md +152 -0
- package/docs/gateway/logging.md +113 -0
- package/docs/gateway/multiple-gateways.md +112 -0
- package/docs/gateway/network-model.md +22 -0
- package/docs/gateway/openai-http-api.md +132 -0
- package/docs/gateway/openresponses-http-api.md +295 -0
- package/docs/gateway/openshell.md +307 -0
- package/docs/gateway/pairing.md +99 -0
- package/docs/gateway/protocol.md +267 -0
- package/docs/gateway/remote-gateway-readme.md +158 -0
- package/docs/gateway/remote.md +153 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +134 -0
- package/docs/gateway/sandboxing.md +469 -0
- package/docs/gateway/secrets-plan-contract.md +116 -0
- package/docs/gateway/secrets.md +503 -0
- package/docs/gateway/security/index.md +1213 -0
- package/docs/gateway/tailscale.md +132 -0
- package/docs/gateway/tools-invoke-http-api.md +110 -0
- package/docs/gateway/troubleshooting.md +378 -0
- package/docs/gateway/trusted-proxy-auth.md +330 -0
- package/docs/help/debugging.md +168 -0
- package/docs/help/environment.md +163 -0
- package/docs/help/faq.md +2999 -0
- package/docs/help/index.md +28 -0
- package/docs/help/scripts.md +28 -0
- package/docs/help/testing.md +524 -0
- package/docs/help/troubleshooting.md +297 -0
- package/docs/images/configure-model-picker-unsearchable.png +0 -0
- package/docs/images/feishu-step2-create-app.png +0 -0
- package/docs/images/feishu-step3-credentials.png +0 -0
- package/docs/images/feishu-step4-permissions.png +0 -0
- package/docs/images/feishu-step5-bot-capability.png +0 -0
- package/docs/images/feishu-step6-event-subscription.png +0 -0
- package/docs/images/feishu-verification-token.png +0 -0
- package/docs/images/groups-flow.svg +52 -0
- package/docs/images/mobile-ui-screenshot.png +0 -0
- package/docs/index.md +196 -0
- package/docs/install/ansible.md +230 -0
- package/docs/install/azure.md +311 -0
- package/docs/install/bun.md +55 -0
- package/docs/install/development-channels.md +120 -0
- package/docs/install/digitalocean.md +129 -0
- package/docs/install/docker-vm-runtime.md +142 -0
- package/docs/install/docker.md +375 -0
- package/docs/install/exe-dev.md +126 -0
- package/docs/install/fly.md +501 -0
- package/docs/install/gcp.md +402 -0
- package/docs/install/hetzner.md +251 -0
- package/docs/install/index.md +183 -0
- package/docs/install/installer.md +415 -0
- package/docs/install/kubernetes.md +191 -0
- package/docs/install/macos-vm.md +281 -0
- package/docs/install/migrating-matrix.md +346 -0
- package/docs/install/migrating.md +110 -0
- package/docs/install/nix.md +89 -0
- package/docs/install/node.md +138 -0
- package/docs/install/northflank.mdx +54 -0
- package/docs/install/oracle.md +156 -0
- package/docs/install/podman.md +133 -0
- package/docs/install/railway.mdx +100 -0
- package/docs/install/raspberry-pi.md +159 -0
- package/docs/install/render.mdx +169 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +128 -0
- package/docs/ja-JP/index.md +186 -0
- package/docs/ja-JP/start/getting-started.md +125 -0
- package/docs/ja-JP/start/wizard.md +77 -0
- package/docs/logging.md +352 -0
- package/docs/nav-tabs-underline.js +100 -0
- package/docs/network.md +54 -0
- package/docs/nodes/audio.md +187 -0
- package/docs/nodes/camera.md +162 -0
- package/docs/nodes/images.md +72 -0
- package/docs/nodes/index.md +393 -0
- package/docs/nodes/location-command.md +98 -0
- package/docs/nodes/media-understanding.md +394 -0
- package/docs/nodes/talk.md +92 -0
- package/docs/nodes/troubleshooting.md +114 -0
- package/docs/nodes/voicewake.md +66 -0
- package/docs/perplexity.md +174 -0
- package/docs/pi-dev.md +80 -0
- package/docs/pi.md +567 -0
- package/docs/platforms/android.md +168 -0
- package/docs/platforms/digitalocean.md +266 -0
- package/docs/platforms/index.md +54 -0
- package/docs/platforms/ios.md +220 -0
- package/docs/platforms/linux.md +94 -0
- package/docs/platforms/mac/bundled-gateway.md +73 -0
- package/docs/platforms/mac/canvas.md +125 -0
- package/docs/platforms/mac/child-process.md +69 -0
- package/docs/platforms/mac/dev-setup.md +104 -0
- package/docs/platforms/mac/health.md +34 -0
- package/docs/platforms/mac/icon.md +31 -0
- package/docs/platforms/mac/logging.md +57 -0
- package/docs/platforms/mac/menu-bar.md +81 -0
- package/docs/platforms/mac/peekaboo.md +65 -0
- package/docs/platforms/mac/permissions.md +50 -0
- package/docs/platforms/mac/remote.md +84 -0
- package/docs/platforms/mac/signing.md +47 -0
- package/docs/platforms/mac/skills.md +33 -0
- package/docs/platforms/mac/voice-overlay.md +60 -0
- package/docs/platforms/mac/voicewake.md +67 -0
- package/docs/platforms/mac/webchat.md +43 -0
- package/docs/platforms/mac/xpc.md +61 -0
- package/docs/platforms/macos.md +226 -0
- package/docs/platforms/oracle.md +303 -0
- package/docs/platforms/raspberry-pi.md +412 -0
- package/docs/platforms/windows.md +241 -0
- package/docs/plugins/agent-tools.md +10 -0
- package/docs/plugins/architecture.md +1363 -0
- package/docs/plugins/building-extensions.md +10 -0
- package/docs/plugins/building-plugins.md +376 -0
- package/docs/plugins/bundles.md +181 -0
- package/docs/plugins/community.md +141 -0
- package/docs/plugins/manifest.md +145 -0
- package/docs/plugins/sdk-migration.md +169 -0
- package/docs/plugins/voice-call.md +380 -0
- package/docs/plugins/zalouser.md +77 -0
- package/docs/prose.md +134 -0
- package/docs/providers/anthropic.md +259 -0
- package/docs/providers/bedrock.md +176 -0
- package/docs/providers/claude-max-api-proxy.md +154 -0
- package/docs/providers/cloudflare-ai-gateway.md +71 -0
- package/docs/providers/deepgram.md +93 -0
- package/docs/providers/github-copilot.md +72 -0
- package/docs/providers/glm.md +43 -0
- package/docs/providers/google.md +78 -0
- package/docs/providers/groq.md +96 -0
- package/docs/providers/huggingface.md +209 -0
- package/docs/providers/index.md +69 -0
- package/docs/providers/kilocode.md +74 -0
- package/docs/providers/litellm.md +154 -0
- package/docs/providers/minimax.md +224 -0
- package/docs/providers/mistral.md +54 -0
- package/docs/providers/models.md +45 -0
- package/docs/providers/modelstudio.md +66 -0
- package/docs/providers/moonshot.md +175 -0
- package/docs/providers/nvidia.md +55 -0
- package/docs/providers/ollama.md +352 -0
- package/docs/providers/openai.md +303 -0
- package/docs/providers/opencode-go.md +45 -0
- package/docs/providers/opencode.md +64 -0
- package/docs/providers/openrouter.md +37 -0
- package/docs/providers/perplexity-provider.md +62 -0
- package/docs/providers/qianfan.md +38 -0
- package/docs/providers/qwen.md +53 -0
- package/docs/providers/sglang.md +104 -0
- package/docs/providers/synthetic.md +99 -0
- package/docs/providers/together.md +66 -0
- package/docs/providers/venice.md +282 -0
- package/docs/providers/vercel-ai-gateway.md +60 -0
- package/docs/providers/vllm.md +92 -0
- package/docs/providers/volcengine.md +74 -0
- package/docs/providers/xai.md +60 -0
- package/docs/providers/xiaomi.md +86 -0
- package/docs/providers/zai.md +46 -0
- package/docs/reference/AGENTS.default.md +126 -0
- package/docs/reference/RELEASING.md +42 -0
- package/docs/reference/api-usage-costs.md +144 -0
- package/docs/reference/credits.md +30 -0
- package/docs/reference/device-models.md +47 -0
- package/docs/reference/memory-config.md +711 -0
- package/docs/reference/prompt-caching.md +185 -0
- package/docs/reference/rpc.md +43 -0
- package/docs/reference/secretref-credential-surface.md +140 -0
- package/docs/reference/secretref-user-supplied-credentials-matrix.json +563 -0
- package/docs/reference/session-management-compaction.md +324 -0
- package/docs/reference/templates/AGENTS.dev.md +83 -0
- package/docs/reference/templates/AGENTS.md +219 -0
- package/docs/reference/templates/BOOT.md +11 -0
- package/docs/reference/templates/BOOTSTRAP.md +62 -0
- package/docs/reference/templates/HEARTBEAT.md +14 -0
- package/docs/reference/templates/IDENTITY.dev.md +47 -0
- package/docs/reference/templates/IDENTITY.md +29 -0
- package/docs/reference/templates/SOUL.dev.md +76 -0
- package/docs/reference/templates/SOUL.md +43 -0
- package/docs/reference/templates/TOOLS.dev.md +24 -0
- package/docs/reference/templates/TOOLS.md +47 -0
- package/docs/reference/templates/USER.dev.md +18 -0
- package/docs/reference/templates/USER.md +23 -0
- package/docs/reference/test.md +90 -0
- package/docs/reference/token-use.md +175 -0
- package/docs/reference/transcript-hygiene.md +151 -0
- package/docs/reference/wizard.md +235 -0
- package/docs/security/CONTRIBUTING-THREAT-MODEL.md +98 -0
- package/docs/security/THREAT-MODEL-ATLAS.md +611 -0
- package/docs/security/formal-verification.md +167 -0
- package/docs/start/bootstrapping.md +41 -0
- package/docs/start/docs-directory.md +66 -0
- package/docs/start/getting-started.md +116 -0
- package/docs/start/hubs.md +198 -0
- package/docs/start/lore.md +219 -0
- package/docs/start/onboarding-overview.md +67 -0
- package/docs/start/onboarding.md +91 -0
- package/docs/start/openclaw.md +216 -0
- package/docs/start/quickstart.md +22 -0
- package/docs/start/setup.md +164 -0
- package/docs/start/showcase.md +418 -0
- package/docs/start/wizard-cli-automation.md +215 -0
- package/docs/start/wizard-cli-reference.md +299 -0
- package/docs/start/wizard.md +125 -0
- package/docs/style.css +37 -0
- package/docs/tools/acp-agents.md +623 -0
- package/docs/tools/agent-send.md +100 -0
- package/docs/tools/apply-patch.md +51 -0
- package/docs/tools/brave-search.md +93 -0
- package/docs/tools/browser-linux-troubleshooting.md +138 -0
- package/docs/tools/browser-login.md +73 -0
- package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +211 -0
- package/docs/tools/browser.md +731 -0
- package/docs/tools/btw.md +142 -0
- package/docs/tools/capability-cookbook.md +119 -0
- package/docs/tools/clawhub.md +257 -0
- package/docs/tools/creating-skills.md +117 -0
- package/docs/tools/diffs.md +386 -0
- package/docs/tools/elevated.md +114 -0
- package/docs/tools/exec-approvals.md +400 -0
- package/docs/tools/exec.md +204 -0
- package/docs/tools/firecrawl.md +140 -0
- package/docs/tools/index.md +137 -0
- package/docs/tools/llm-task.md +119 -0
- package/docs/tools/lobster.md +340 -0
- package/docs/tools/loop-detection.md +100 -0
- package/docs/tools/multi-agent-sandbox-tools.md +364 -0
- package/docs/tools/pdf.md +156 -0
- package/docs/tools/perplexity-search.md +174 -0
- package/docs/tools/plugin.md +251 -0
- package/docs/tools/reactions.md +64 -0
- package/docs/tools/skills-config.md +86 -0
- package/docs/tools/skills.md +306 -0
- package/docs/tools/slash-commands.md +294 -0
- package/docs/tools/subagents.md +295 -0
- package/docs/tools/tavily.md +125 -0
- package/docs/tools/thinking.md +96 -0
- package/docs/tools/tts.md +406 -0
- package/docs/tools/web.md +516 -0
- package/docs/tts.md +406 -0
- package/docs/vps.md +112 -0
- package/docs/web/control-ui.md +275 -0
- package/docs/web/dashboard.md +54 -0
- package/docs/web/index.md +120 -0
- package/docs/web/tui.md +170 -0
- package/docs/web/webchat.md +61 -0
- package/docs/whatsapp-openclaw-ai-zh.jpg +0 -0
- package/docs/whatsapp-openclaw.jpg +0 -0
- package/docs/zh-CN/AGENTS.md +61 -0
- package/docs/zh-CN/automation/auth-monitoring.md +47 -0
- package/docs/zh-CN/automation/cron-jobs.md +435 -0
- package/docs/zh-CN/automation/cron-vs-heartbeat.md +286 -0
- package/docs/zh-CN/automation/gmail-pubsub.md +249 -0
- package/docs/zh-CN/automation/hooks.md +1051 -0
- package/docs/zh-CN/automation/poll.md +76 -0
- package/docs/zh-CN/automation/troubleshooting.md +8 -0
- package/docs/zh-CN/automation/webhook.md +163 -0
- package/docs/zh-CN/brave-search.md +60 -0
- package/docs/zh-CN/channels/bluebubbles.md +354 -0
- package/docs/zh-CN/channels/broadcast-groups.md +449 -0
- package/docs/zh-CN/channels/channel-routing.md +117 -0
- package/docs/zh-CN/channels/discord.md +468 -0
- package/docs/zh-CN/channels/feishu.md +728 -0
- package/docs/zh-CN/channels/googlechat.md +257 -0
- package/docs/zh-CN/channels/grammy.md +38 -0
- package/docs/zh-CN/channels/group-messages.md +91 -0
- package/docs/zh-CN/channels/groups.md +379 -0
- package/docs/zh-CN/channels/imessage.md +302 -0
- package/docs/zh-CN/channels/index.md +53 -0
- package/docs/zh-CN/channels/line.md +180 -0
- package/docs/zh-CN/channels/location.md +63 -0
- package/docs/zh-CN/channels/matrix.md +221 -0
- package/docs/zh-CN/channels/mattermost.md +144 -0
- package/docs/zh-CN/channels/msteams.md +775 -0
- package/docs/zh-CN/channels/nextcloud-talk.md +142 -0
- package/docs/zh-CN/channels/nostr.md +249 -0
- package/docs/zh-CN/channels/pairing.md +89 -0
- package/docs/zh-CN/channels/signal.md +209 -0
- package/docs/zh-CN/channels/slack.md +531 -0
- package/docs/zh-CN/channels/synology-chat.md +138 -0
- package/docs/zh-CN/channels/telegram.md +751 -0
- package/docs/zh-CN/channels/tlon.md +136 -0
- package/docs/zh-CN/channels/troubleshooting.md +36 -0
- package/docs/zh-CN/channels/twitch.md +385 -0
- package/docs/zh-CN/channels/whatsapp.md +411 -0
- package/docs/zh-CN/channels/zalo.md +196 -0
- package/docs/zh-CN/channels/zalouser.md +147 -0
- package/docs/zh-CN/cli/acp.md +173 -0
- package/docs/zh-CN/cli/agent.md +30 -0
- package/docs/zh-CN/cli/agents.md +82 -0
- package/docs/zh-CN/cli/approvals.md +57 -0
- package/docs/zh-CN/cli/browser.md +114 -0
- package/docs/zh-CN/cli/channels.md +86 -0
- package/docs/zh-CN/cli/config.md +57 -0
- package/docs/zh-CN/cli/configure.md +38 -0
- package/docs/zh-CN/cli/cron.md +43 -0
- package/docs/zh-CN/cli/dashboard.md +23 -0
- package/docs/zh-CN/cli/devices.md +74 -0
- package/docs/zh-CN/cli/directory.md +70 -0
- package/docs/zh-CN/cli/dns.md +30 -0
- package/docs/zh-CN/cli/docs.md +22 -0
- package/docs/zh-CN/cli/doctor.md +48 -0
- package/docs/zh-CN/cli/gateway.md +206 -0
- package/docs/zh-CN/cli/health.md +28 -0
- package/docs/zh-CN/cli/hooks.md +298 -0
- package/docs/zh-CN/cli/index.md +1143 -0
- package/docs/zh-CN/cli/logs.md +31 -0
- package/docs/zh-CN/cli/memory.md +52 -0
- package/docs/zh-CN/cli/message.md +246 -0
- package/docs/zh-CN/cli/models.md +85 -0
- package/docs/zh-CN/cli/node.md +115 -0
- package/docs/zh-CN/cli/nodes.md +80 -0
- package/docs/zh-CN/cli/onboard.md +164 -0
- package/docs/zh-CN/cli/pairing.md +28 -0
- package/docs/zh-CN/cli/plugins.md +66 -0
- package/docs/zh-CN/cli/reset.md +24 -0
- package/docs/zh-CN/cli/sandbox.md +158 -0
- package/docs/zh-CN/cli/security.md +33 -0
- package/docs/zh-CN/cli/sessions.md +23 -0
- package/docs/zh-CN/cli/setup.md +36 -0
- package/docs/zh-CN/cli/skills.md +33 -0
- package/docs/zh-CN/cli/status.md +33 -0
- package/docs/zh-CN/cli/system.md +63 -0
- package/docs/zh-CN/cli/tui.md +30 -0
- package/docs/zh-CN/cli/uninstall.md +24 -0
- package/docs/zh-CN/cli/update.md +101 -0
- package/docs/zh-CN/cli/voicecall.md +41 -0
- package/docs/zh-CN/cli/webhooks.md +32 -0
- package/docs/zh-CN/concepts/agent-loop.md +146 -0
- package/docs/zh-CN/concepts/agent-workspace.md +219 -0
- package/docs/zh-CN/concepts/agent.md +115 -0
- package/docs/zh-CN/concepts/architecture.md +123 -0
- package/docs/zh-CN/concepts/compaction.md +67 -0
- package/docs/zh-CN/concepts/context.md +168 -0
- package/docs/zh-CN/concepts/features.md +59 -0
- package/docs/zh-CN/concepts/markdown-formatting.md +117 -0
- package/docs/zh-CN/concepts/memory.md +412 -0
- package/docs/zh-CN/concepts/messages.md +141 -0
- package/docs/zh-CN/concepts/model-failover.md +145 -0
- package/docs/zh-CN/concepts/model-providers.md +606 -0
- package/docs/zh-CN/concepts/models.md +225 -0
- package/docs/zh-CN/concepts/multi-agent.md +372 -0
- package/docs/zh-CN/concepts/oauth.md +164 -0
- package/docs/zh-CN/concepts/presence.md +99 -0
- package/docs/zh-CN/concepts/queue.md +94 -0
- package/docs/zh-CN/concepts/retry.md +76 -0
- package/docs/zh-CN/concepts/session-pruning.md +129 -0
- package/docs/zh-CN/concepts/session-tool.md +200 -0
- package/docs/zh-CN/concepts/session.md +166 -0
- package/docs/zh-CN/concepts/streaming.md +133 -0
- package/docs/zh-CN/concepts/system-prompt.md +101 -0
- package/docs/zh-CN/concepts/timezone.md +96 -0
- package/docs/zh-CN/concepts/typebox.md +284 -0
- package/docs/zh-CN/concepts/typing-indicators.md +74 -0
- package/docs/zh-CN/concepts/usage-tracking.md +42 -0
- package/docs/zh-CN/date-time.md +129 -0
- package/docs/zh-CN/debug/node-issue.md +90 -0
- package/docs/zh-CN/diagnostics/flags.md +98 -0
- package/docs/zh-CN/gateway/authentication.md +184 -0
- package/docs/zh-CN/gateway/background-process.md +100 -0
- package/docs/zh-CN/gateway/bonjour.md +174 -0
- package/docs/zh-CN/gateway/bridge-protocol.md +86 -0
- package/docs/zh-CN/gateway/cli-backends.md +213 -0
- package/docs/zh-CN/gateway/configuration-examples.md +587 -0
- package/docs/zh-CN/gateway/configuration-reference.md +3103 -0
- package/docs/zh-CN/gateway/configuration.md +640 -0
- package/docs/zh-CN/gateway/discovery.md +123 -0
- package/docs/zh-CN/gateway/doctor.md +238 -0
- package/docs/zh-CN/gateway/gateway-lock.md +41 -0
- package/docs/zh-CN/gateway/health.md +42 -0
- package/docs/zh-CN/gateway/heartbeat.md +274 -0
- package/docs/zh-CN/gateway/index.md +335 -0
- package/docs/zh-CN/gateway/local-models.md +159 -0
- package/docs/zh-CN/gateway/logging.md +114 -0
- package/docs/zh-CN/gateway/multiple-gateways.md +119 -0
- package/docs/zh-CN/gateway/network-model.md +23 -0
- package/docs/zh-CN/gateway/openai-http-api.md +125 -0
- package/docs/zh-CN/gateway/openresponses-http-api.md +317 -0
- package/docs/zh-CN/gateway/pairing.md +99 -0
- package/docs/zh-CN/gateway/protocol.md +220 -0
- package/docs/zh-CN/gateway/remote-gateway-readme.md +164 -0
- package/docs/zh-CN/gateway/remote.md +133 -0
- package/docs/zh-CN/gateway/sandbox-vs-tool-policy-vs-elevated.md +135 -0
- package/docs/zh-CN/gateway/sandboxing.md +188 -0
- package/docs/zh-CN/gateway/security/index.md +777 -0
- package/docs/zh-CN/gateway/tailscale.md +124 -0
- package/docs/zh-CN/gateway/tools-invoke-http-api.md +92 -0
- package/docs/zh-CN/gateway/troubleshooting.md +771 -0
- package/docs/zh-CN/help/debugging.md +160 -0
- package/docs/zh-CN/help/environment.md +88 -0
- package/docs/zh-CN/help/faq.md +2640 -0
- package/docs/zh-CN/help/index.md +28 -0
- package/docs/zh-CN/help/scripts.md +35 -0
- package/docs/zh-CN/help/testing.md +375 -0
- package/docs/zh-CN/help/troubleshooting.md +104 -0
- package/docs/zh-CN/index.md +186 -0
- package/docs/zh-CN/install/ansible.md +215 -0
- package/docs/zh-CN/install/bun.md +65 -0
- package/docs/zh-CN/install/development-channels.md +81 -0
- package/docs/zh-CN/install/docker.md +532 -0
- package/docs/zh-CN/install/exe-dev.md +133 -0
- package/docs/zh-CN/install/fly.md +490 -0
- package/docs/zh-CN/install/gcp.md +510 -0
- package/docs/zh-CN/install/hetzner.md +337 -0
- package/docs/zh-CN/install/index.md +235 -0
- package/docs/zh-CN/install/installer.md +422 -0
- package/docs/zh-CN/install/macos-vm.md +288 -0
- package/docs/zh-CN/install/migrating.md +199 -0
- package/docs/zh-CN/install/nix.md +99 -0
- package/docs/zh-CN/install/node.md +8 -0
- package/docs/zh-CN/install/northflank.mdx +60 -0
- package/docs/zh-CN/install/railway.mdx +106 -0
- package/docs/zh-CN/install/render.mdx +169 -0
- package/docs/zh-CN/install/uninstall.md +135 -0
- package/docs/zh-CN/install/updating.md +233 -0
- package/docs/zh-CN/logging.md +329 -0
- package/docs/zh-CN/network.md +59 -0
- package/docs/zh-CN/nodes/audio.md +120 -0
- package/docs/zh-CN/nodes/camera.md +162 -0
- package/docs/zh-CN/nodes/images.md +79 -0
- package/docs/zh-CN/nodes/index.md +348 -0
- package/docs/zh-CN/nodes/location-command.md +120 -0
- package/docs/zh-CN/nodes/media-understanding.md +380 -0
- package/docs/zh-CN/nodes/talk.md +97 -0
- package/docs/zh-CN/nodes/troubleshooting.md +8 -0
- package/docs/zh-CN/nodes/voicewake.md +72 -0
- package/docs/zh-CN/perplexity.md +102 -0
- package/docs/zh-CN/pi-dev.md +77 -0
- package/docs/zh-CN/pi.md +619 -0
- package/docs/zh-CN/platforms/android.md +155 -0
- package/docs/zh-CN/platforms/digitalocean.md +273 -0
- package/docs/zh-CN/platforms/index.md +60 -0
- package/docs/zh-CN/platforms/ios.md +114 -0
- package/docs/zh-CN/platforms/linux.md +100 -0
- package/docs/zh-CN/platforms/mac/bundled-gateway.md +75 -0
- package/docs/zh-CN/platforms/mac/canvas.md +128 -0
- package/docs/zh-CN/platforms/mac/child-process.md +73 -0
- package/docs/zh-CN/platforms/mac/dev-setup.md +109 -0
- package/docs/zh-CN/platforms/mac/health.md +41 -0
- package/docs/zh-CN/platforms/mac/icon.md +38 -0
- package/docs/zh-CN/platforms/mac/logging.md +64 -0
- package/docs/zh-CN/platforms/mac/menu-bar.md +88 -0
- package/docs/zh-CN/platforms/mac/peekaboo.md +62 -0
- package/docs/zh-CN/platforms/mac/permissions.md +46 -0
- package/docs/zh-CN/platforms/mac/remote.md +90 -0
- package/docs/zh-CN/platforms/mac/signing.md +54 -0
- package/docs/zh-CN/platforms/mac/skills.md +40 -0
- package/docs/zh-CN/platforms/mac/voice-overlay.md +67 -0
- package/docs/zh-CN/platforms/mac/voicewake.md +74 -0
- package/docs/zh-CN/platforms/mac/webchat.md +43 -0
- package/docs/zh-CN/platforms/mac/xpc.md +68 -0
- package/docs/zh-CN/platforms/macos.md +193 -0
- package/docs/zh-CN/platforms/oracle.md +310 -0
- package/docs/zh-CN/platforms/raspberry-pi.md +416 -0
- package/docs/zh-CN/platforms/windows.md +247 -0
- package/docs/zh-CN/plugins/agent-tools.md +99 -0
- package/docs/zh-CN/plugins/manifest.md +68 -0
- package/docs/zh-CN/plugins/voice-call.md +250 -0
- package/docs/zh-CN/plugins/zalouser.md +88 -0
- package/docs/zh-CN/prose.md +141 -0
- package/docs/zh-CN/providers/anthropic.md +265 -0
- package/docs/zh-CN/providers/bedrock.md +170 -0
- package/docs/zh-CN/providers/claude-max-api-proxy.md +155 -0
- package/docs/zh-CN/providers/cloudflare-ai-gateway.md +78 -0
- package/docs/zh-CN/providers/deepgram.md +97 -0
- package/docs/zh-CN/providers/github-copilot.md +67 -0
- package/docs/zh-CN/providers/glm.md +50 -0
- package/docs/zh-CN/providers/huggingface.md +216 -0
- package/docs/zh-CN/providers/index.md +69 -0
- package/docs/zh-CN/providers/kilocode.md +80 -0
- package/docs/zh-CN/providers/litellm.md +160 -0
- package/docs/zh-CN/providers/minimax.md +222 -0
- package/docs/zh-CN/providers/mistral.md +61 -0
- package/docs/zh-CN/providers/models.md +51 -0
- package/docs/zh-CN/providers/moonshot.md +182 -0
- package/docs/zh-CN/providers/nvidia.md +62 -0
- package/docs/zh-CN/providers/ollama.md +359 -0
- package/docs/zh-CN/providers/openai.md +308 -0
- package/docs/zh-CN/providers/opencode-go.md +52 -0
- package/docs/zh-CN/providers/opencode.md +71 -0
- package/docs/zh-CN/providers/openrouter.md +44 -0
- package/docs/zh-CN/providers/qianfan.md +45 -0
- package/docs/zh-CN/providers/qwen.md +55 -0
- package/docs/zh-CN/providers/sglang.md +111 -0
- package/docs/zh-CN/providers/synthetic.md +106 -0
- package/docs/zh-CN/providers/together.md +72 -0
- package/docs/zh-CN/providers/venice.md +289 -0
- package/docs/zh-CN/providers/vercel-ai-gateway.md +66 -0
- package/docs/zh-CN/providers/xiaomi.md +93 -0
- package/docs/zh-CN/providers/zai.md +53 -0
- package/docs/zh-CN/reference/AGENTS.default.md +131 -0
- package/docs/zh-CN/reference/RELEASING.md +48 -0
- package/docs/zh-CN/reference/api-usage-costs.md +141 -0
- package/docs/zh-CN/reference/credits.md +34 -0
- package/docs/zh-CN/reference/device-models.md +54 -0
- package/docs/zh-CN/reference/rpc.md +48 -0
- package/docs/zh-CN/reference/session-management-compaction.md +287 -0
- package/docs/zh-CN/reference/templates/AGENTS.dev.md +89 -0
- package/docs/zh-CN/reference/templates/AGENTS.md +225 -0
- package/docs/zh-CN/reference/templates/BOOT.md +17 -0
- package/docs/zh-CN/reference/templates/BOOTSTRAP.md +68 -0
- package/docs/zh-CN/reference/templates/HEARTBEAT.md +18 -0
- package/docs/zh-CN/reference/templates/IDENTITY.dev.md +54 -0
- package/docs/zh-CN/reference/templates/IDENTITY.md +36 -0
- package/docs/zh-CN/reference/templates/SOUL.dev.md +83 -0
- package/docs/zh-CN/reference/templates/SOUL.md +49 -0
- package/docs/zh-CN/reference/templates/TOOLS.dev.md +31 -0
- package/docs/zh-CN/reference/templates/TOOLS.md +53 -0
- package/docs/zh-CN/reference/templates/USER.dev.md +25 -0
- package/docs/zh-CN/reference/templates/USER.md +30 -0
- package/docs/zh-CN/reference/test.md +57 -0
- package/docs/zh-CN/reference/token-use.md +119 -0
- package/docs/zh-CN/reference/transcript-hygiene.md +109 -0
- package/docs/zh-CN/reference/wizard.md +242 -0
- package/docs/zh-CN/security/formal-verification.md +171 -0
- package/docs/zh-CN/start/bootstrapping.md +9 -0
- package/docs/zh-CN/start/docs-directory.md +70 -0
- package/docs/zh-CN/start/getting-started.md +143 -0
- package/docs/zh-CN/start/hubs.md +194 -0
- package/docs/zh-CN/start/lore.md +226 -0
- package/docs/zh-CN/start/onboarding-overview.md +58 -0
- package/docs/zh-CN/start/onboarding.md +105 -0
- package/docs/zh-CN/start/openclaw.md +248 -0
- package/docs/zh-CN/start/quickstart.md +88 -0
- package/docs/zh-CN/start/setup.md +153 -0
- package/docs/zh-CN/start/showcase.md +423 -0
- package/docs/zh-CN/start/wizard-cli-automation.md +222 -0
- package/docs/zh-CN/start/wizard-cli-reference.md +306 -0
- package/docs/zh-CN/start/wizard.md +132 -0
- package/docs/zh-CN/tools/agent-send.md +59 -0
- package/docs/zh-CN/tools/apply-patch.md +57 -0
- package/docs/zh-CN/tools/browser-linux-troubleshooting.md +144 -0
- package/docs/zh-CN/tools/browser-login.md +75 -0
- package/docs/zh-CN/tools/browser.md +553 -0
- package/docs/zh-CN/tools/chrome-extension.md +183 -0
- package/docs/zh-CN/tools/clawhub.md +209 -0
- package/docs/zh-CN/tools/creating-skills.md +61 -0
- package/docs/zh-CN/tools/elevated.md +64 -0
- package/docs/zh-CN/tools/exec-approvals.md +234 -0
- package/docs/zh-CN/tools/exec.md +169 -0
- package/docs/zh-CN/tools/firecrawl.md +68 -0
- package/docs/zh-CN/tools/index.md +515 -0
- package/docs/zh-CN/tools/llm-task.md +117 -0
- package/docs/zh-CN/tools/lobster.md +349 -0
- package/docs/zh-CN/tools/multi-agent-sandbox-tools.md +401 -0
- package/docs/zh-CN/tools/plugin.md +1612 -0
- package/docs/zh-CN/tools/reactions.md +29 -0
- package/docs/zh-CN/tools/skills-config.md +78 -0
- package/docs/zh-CN/tools/skills.md +279 -0
- package/docs/zh-CN/tools/slash-commands.md +205 -0
- package/docs/zh-CN/tools/subagents.md +167 -0
- package/docs/zh-CN/tools/thinking.md +80 -0
- package/docs/zh-CN/tools/web.md +289 -0
- package/docs/zh-CN/tts.md +375 -0
- package/docs/zh-CN/vps.md +47 -0
- package/docs/zh-CN/web/control-ui.md +191 -0
- package/docs/zh-CN/web/dashboard.md +53 -0
- package/docs/zh-CN/web/index.md +118 -0
- package/docs/zh-CN/web/tui.md +166 -0
- package/docs/zh-CN/web/webchat.md +56 -0
- package/openclaw.mjs +135 -0
- package/package.json +835 -0
- package/skills/1password/SKILL.md +70 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +118 -0
- package/skills/bear-notes/SKILL.md +107 -0
- package/skills/blogwatcher/SKILL.md +69 -0
- package/skills/blucli/SKILL.md +47 -0
- package/skills/bluebubbles/SKILL.md +131 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/canvas/SKILL.md +198 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +295 -0
- package/skills/discord/SKILL.md +197 -0
- package/skills/doubao-code/SKILL.md +43 -0
- package/skills/eightctl/SKILL.md +50 -0
- package/skills/gemini/SKILL.md +43 -0
- package/skills/gh-issues/SKILL.md +865 -0
- package/skills/gifgrep/SKILL.md +79 -0
- package/skills/github/SKILL.md +163 -0
- package/skills/gog/SKILL.md +116 -0
- package/skills/goplaces/SKILL.md +52 -0
- package/skills/healthcheck/SKILL.md +245 -0
- package/skills/himalaya/SKILL.md +257 -0
- package/skills/himalaya/references/configuration.md +184 -0
- package/skills/himalaya/references/message-composition.md +199 -0
- package/skills/imsg/SKILL.md +122 -0
- package/skills/kimi-code/SKILL.md +42 -0
- package/skills/mcporter/SKILL.md +61 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +320 -0
- package/skills/model-usage/scripts/test_model_usage.py +40 -0
- package/skills/nano-pdf/SKILL.md +38 -0
- package/skills/node-connect/SKILL.md +142 -0
- package/skills/notion/SKILL.md +174 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/openai-image-gen/SKILL.md +92 -0
- package/skills/openai-image-gen/scripts/gen.py +328 -0
- package/skills/openai-image-gen/scripts/test_gen.py +140 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +52 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
- package/skills/openhue/SKILL.md +112 -0
- package/skills/oracle/SKILL.md +125 -0
- package/skills/ordercli/SKILL.md +78 -0
- package/skills/peekaboo/SKILL.md +190 -0
- package/skills/sag/SKILL.md +87 -0
- package/skills/session-logs/SKILL.md +115 -0
- package/skills/sherpa-onnx-tts/SKILL.md +103 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +372 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +139 -0
- package/skills/skill-creator/scripts/quick_validate.py +159 -0
- package/skills/skill-creator/scripts/test_package_skill.py +160 -0
- package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/songsee/SKILL.md +49 -0
- package/skills/sonoscli/SKILL.md +65 -0
- package/skills/spotify-player/SKILL.md +64 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +153 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +95 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +45 -0
- package/skills/wacli/SKILL.md +72 -0
- package/skills/weather/SKILL.md +112 -0
- package/skills/xurl/SKILL.md +461 -0
|
@@ -0,0 +1,2120 @@
|
|
|
1
|
+
import { r as __commonJSMin } from "./src-CmXHIz5f.js";
|
|
2
|
+
//#region node_modules/@protobufjs/aspromise/index.js
|
|
3
|
+
var require_aspromise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = asPromise;
|
|
5
|
+
/**
|
|
6
|
+
* Callback as used by {@link util.asPromise}.
|
|
7
|
+
* @typedef asPromiseCallback
|
|
8
|
+
* @type {function}
|
|
9
|
+
* @param {Error|null} error Error, if any
|
|
10
|
+
* @param {...*} params Additional arguments
|
|
11
|
+
* @returns {undefined}
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Returns a promise from a node-style callback function.
|
|
15
|
+
* @memberof util
|
|
16
|
+
* @param {asPromiseCallback} fn Function to call
|
|
17
|
+
* @param {*} ctx Function context
|
|
18
|
+
* @param {...*} params Function arguments
|
|
19
|
+
* @returns {Promise<*>} Promisified function
|
|
20
|
+
*/
|
|
21
|
+
function asPromise(fn, ctx) {
|
|
22
|
+
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
23
|
+
while (index < arguments.length) params[offset++] = arguments[index++];
|
|
24
|
+
return new Promise(function executor(resolve, reject) {
|
|
25
|
+
params[offset] = function callback(err) {
|
|
26
|
+
if (pending) {
|
|
27
|
+
pending = false;
|
|
28
|
+
if (err) reject(err);
|
|
29
|
+
else {
|
|
30
|
+
var params = new Array(arguments.length - 1), offset = 0;
|
|
31
|
+
while (offset < params.length) params[offset++] = arguments[offset];
|
|
32
|
+
resolve.apply(null, params);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
try {
|
|
37
|
+
fn.apply(ctx || null, params);
|
|
38
|
+
} catch (err) {
|
|
39
|
+
if (pending) {
|
|
40
|
+
pending = false;
|
|
41
|
+
reject(err);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region node_modules/@protobufjs/base64/index.js
|
|
49
|
+
var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
50
|
+
/**
|
|
51
|
+
* A minimal base64 implementation for number arrays.
|
|
52
|
+
* @memberof util
|
|
53
|
+
* @namespace
|
|
54
|
+
*/
|
|
55
|
+
var base64 = exports;
|
|
56
|
+
/**
|
|
57
|
+
* Calculates the byte length of a base64 encoded string.
|
|
58
|
+
* @param {string} string Base64 encoded string
|
|
59
|
+
* @returns {number} Byte length
|
|
60
|
+
*/
|
|
61
|
+
base64.length = function length(string) {
|
|
62
|
+
var p = string.length;
|
|
63
|
+
if (!p) return 0;
|
|
64
|
+
var n = 0;
|
|
65
|
+
while (--p % 4 > 1 && string.charAt(p) === "=") ++n;
|
|
66
|
+
return Math.ceil(string.length * 3) / 4 - n;
|
|
67
|
+
};
|
|
68
|
+
var b64 = new Array(64);
|
|
69
|
+
var s64 = new Array(123);
|
|
70
|
+
for (var i = 0; i < 64;) s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
71
|
+
/**
|
|
72
|
+
* Encodes a buffer to a base64 encoded string.
|
|
73
|
+
* @param {Uint8Array} buffer Source buffer
|
|
74
|
+
* @param {number} start Source start
|
|
75
|
+
* @param {number} end Source end
|
|
76
|
+
* @returns {string} Base64 encoded string
|
|
77
|
+
*/
|
|
78
|
+
base64.encode = function encode(buffer, start, end) {
|
|
79
|
+
var parts = null, chunk = [];
|
|
80
|
+
var i = 0, j = 0, t;
|
|
81
|
+
while (start < end) {
|
|
82
|
+
var b = buffer[start++];
|
|
83
|
+
switch (j) {
|
|
84
|
+
case 0:
|
|
85
|
+
chunk[i++] = b64[b >> 2];
|
|
86
|
+
t = (b & 3) << 4;
|
|
87
|
+
j = 1;
|
|
88
|
+
break;
|
|
89
|
+
case 1:
|
|
90
|
+
chunk[i++] = b64[t | b >> 4];
|
|
91
|
+
t = (b & 15) << 2;
|
|
92
|
+
j = 2;
|
|
93
|
+
break;
|
|
94
|
+
case 2:
|
|
95
|
+
chunk[i++] = b64[t | b >> 6];
|
|
96
|
+
chunk[i++] = b64[b & 63];
|
|
97
|
+
j = 0;
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
if (i > 8191) {
|
|
101
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
102
|
+
i = 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (j) {
|
|
106
|
+
chunk[i++] = b64[t];
|
|
107
|
+
chunk[i++] = 61;
|
|
108
|
+
if (j === 1) chunk[i++] = 61;
|
|
109
|
+
}
|
|
110
|
+
if (parts) {
|
|
111
|
+
if (i) parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
112
|
+
return parts.join("");
|
|
113
|
+
}
|
|
114
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
115
|
+
};
|
|
116
|
+
var invalidEncoding = "invalid encoding";
|
|
117
|
+
/**
|
|
118
|
+
* Decodes a base64 encoded string to a buffer.
|
|
119
|
+
* @param {string} string Source string
|
|
120
|
+
* @param {Uint8Array} buffer Destination buffer
|
|
121
|
+
* @param {number} offset Destination offset
|
|
122
|
+
* @returns {number} Number of bytes written
|
|
123
|
+
* @throws {Error} If encoding is invalid
|
|
124
|
+
*/
|
|
125
|
+
base64.decode = function decode(string, buffer, offset) {
|
|
126
|
+
var start = offset;
|
|
127
|
+
var j = 0, t;
|
|
128
|
+
for (var i = 0; i < string.length;) {
|
|
129
|
+
var c = string.charCodeAt(i++);
|
|
130
|
+
if (c === 61 && j > 1) break;
|
|
131
|
+
if ((c = s64[c]) === void 0) throw Error(invalidEncoding);
|
|
132
|
+
switch (j) {
|
|
133
|
+
case 0:
|
|
134
|
+
t = c;
|
|
135
|
+
j = 1;
|
|
136
|
+
break;
|
|
137
|
+
case 1:
|
|
138
|
+
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
139
|
+
t = c;
|
|
140
|
+
j = 2;
|
|
141
|
+
break;
|
|
142
|
+
case 2:
|
|
143
|
+
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
144
|
+
t = c;
|
|
145
|
+
j = 3;
|
|
146
|
+
break;
|
|
147
|
+
case 3:
|
|
148
|
+
buffer[offset++] = (t & 3) << 6 | c;
|
|
149
|
+
j = 0;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (j === 1) throw Error(invalidEncoding);
|
|
154
|
+
return offset - start;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Tests if the specified string appears to be base64 encoded.
|
|
158
|
+
* @param {string} string String to test
|
|
159
|
+
* @returns {boolean} `true` if probably base64 encoded, otherwise false
|
|
160
|
+
*/
|
|
161
|
+
base64.test = function test(string) {
|
|
162
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
163
|
+
};
|
|
164
|
+
}));
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region node_modules/@protobufjs/eventemitter/index.js
|
|
167
|
+
var require_eventemitter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
168
|
+
module.exports = EventEmitter;
|
|
169
|
+
/**
|
|
170
|
+
* Constructs a new event emitter instance.
|
|
171
|
+
* @classdesc A minimal event emitter.
|
|
172
|
+
* @memberof util
|
|
173
|
+
* @constructor
|
|
174
|
+
*/
|
|
175
|
+
function EventEmitter() {
|
|
176
|
+
/**
|
|
177
|
+
* Registered listeners.
|
|
178
|
+
* @type {Object.<string,*>}
|
|
179
|
+
* @private
|
|
180
|
+
*/
|
|
181
|
+
this._listeners = {};
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Registers an event listener.
|
|
185
|
+
* @param {string} evt Event name
|
|
186
|
+
* @param {function} fn Listener
|
|
187
|
+
* @param {*} [ctx] Listener context
|
|
188
|
+
* @returns {util.EventEmitter} `this`
|
|
189
|
+
*/
|
|
190
|
+
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
191
|
+
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
192
|
+
fn,
|
|
193
|
+
ctx: ctx || this
|
|
194
|
+
});
|
|
195
|
+
return this;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Removes an event listener or any matching listeners if arguments are omitted.
|
|
199
|
+
* @param {string} [evt] Event name. Removes all listeners if omitted.
|
|
200
|
+
* @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
|
|
201
|
+
* @returns {util.EventEmitter} `this`
|
|
202
|
+
*/
|
|
203
|
+
EventEmitter.prototype.off = function off(evt, fn) {
|
|
204
|
+
if (evt === void 0) this._listeners = {};
|
|
205
|
+
else if (fn === void 0) this._listeners[evt] = [];
|
|
206
|
+
else {
|
|
207
|
+
var listeners = this._listeners[evt];
|
|
208
|
+
for (var i = 0; i < listeners.length;) if (listeners[i].fn === fn) listeners.splice(i, 1);
|
|
209
|
+
else ++i;
|
|
210
|
+
}
|
|
211
|
+
return this;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Emits an event by calling its listeners with the specified arguments.
|
|
215
|
+
* @param {string} evt Event name
|
|
216
|
+
* @param {...*} args Arguments
|
|
217
|
+
* @returns {util.EventEmitter} `this`
|
|
218
|
+
*/
|
|
219
|
+
EventEmitter.prototype.emit = function emit(evt) {
|
|
220
|
+
var listeners = this._listeners[evt];
|
|
221
|
+
if (listeners) {
|
|
222
|
+
var args = [], i = 1;
|
|
223
|
+
for (; i < arguments.length;) args.push(arguments[i++]);
|
|
224
|
+
for (i = 0; i < listeners.length;) listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
225
|
+
}
|
|
226
|
+
return this;
|
|
227
|
+
};
|
|
228
|
+
}));
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region node_modules/@protobufjs/float/index.js
|
|
231
|
+
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
232
|
+
module.exports = factory(factory);
|
|
233
|
+
/**
|
|
234
|
+
* Reads / writes floats / doubles from / to buffers.
|
|
235
|
+
* @name util.float
|
|
236
|
+
* @namespace
|
|
237
|
+
*/
|
|
238
|
+
/**
|
|
239
|
+
* Writes a 32 bit float to a buffer using little endian byte order.
|
|
240
|
+
* @name util.float.writeFloatLE
|
|
241
|
+
* @function
|
|
242
|
+
* @param {number} val Value to write
|
|
243
|
+
* @param {Uint8Array} buf Target buffer
|
|
244
|
+
* @param {number} pos Target buffer offset
|
|
245
|
+
* @returns {undefined}
|
|
246
|
+
*/
|
|
247
|
+
/**
|
|
248
|
+
* Writes a 32 bit float to a buffer using big endian byte order.
|
|
249
|
+
* @name util.float.writeFloatBE
|
|
250
|
+
* @function
|
|
251
|
+
* @param {number} val Value to write
|
|
252
|
+
* @param {Uint8Array} buf Target buffer
|
|
253
|
+
* @param {number} pos Target buffer offset
|
|
254
|
+
* @returns {undefined}
|
|
255
|
+
*/
|
|
256
|
+
/**
|
|
257
|
+
* Reads a 32 bit float from a buffer using little endian byte order.
|
|
258
|
+
* @name util.float.readFloatLE
|
|
259
|
+
* @function
|
|
260
|
+
* @param {Uint8Array} buf Source buffer
|
|
261
|
+
* @param {number} pos Source buffer offset
|
|
262
|
+
* @returns {number} Value read
|
|
263
|
+
*/
|
|
264
|
+
/**
|
|
265
|
+
* Reads a 32 bit float from a buffer using big endian byte order.
|
|
266
|
+
* @name util.float.readFloatBE
|
|
267
|
+
* @function
|
|
268
|
+
* @param {Uint8Array} buf Source buffer
|
|
269
|
+
* @param {number} pos Source buffer offset
|
|
270
|
+
* @returns {number} Value read
|
|
271
|
+
*/
|
|
272
|
+
/**
|
|
273
|
+
* Writes a 64 bit double to a buffer using little endian byte order.
|
|
274
|
+
* @name util.float.writeDoubleLE
|
|
275
|
+
* @function
|
|
276
|
+
* @param {number} val Value to write
|
|
277
|
+
* @param {Uint8Array} buf Target buffer
|
|
278
|
+
* @param {number} pos Target buffer offset
|
|
279
|
+
* @returns {undefined}
|
|
280
|
+
*/
|
|
281
|
+
/**
|
|
282
|
+
* Writes a 64 bit double to a buffer using big endian byte order.
|
|
283
|
+
* @name util.float.writeDoubleBE
|
|
284
|
+
* @function
|
|
285
|
+
* @param {number} val Value to write
|
|
286
|
+
* @param {Uint8Array} buf Target buffer
|
|
287
|
+
* @param {number} pos Target buffer offset
|
|
288
|
+
* @returns {undefined}
|
|
289
|
+
*/
|
|
290
|
+
/**
|
|
291
|
+
* Reads a 64 bit double from a buffer using little endian byte order.
|
|
292
|
+
* @name util.float.readDoubleLE
|
|
293
|
+
* @function
|
|
294
|
+
* @param {Uint8Array} buf Source buffer
|
|
295
|
+
* @param {number} pos Source buffer offset
|
|
296
|
+
* @returns {number} Value read
|
|
297
|
+
*/
|
|
298
|
+
/**
|
|
299
|
+
* Reads a 64 bit double from a buffer using big endian byte order.
|
|
300
|
+
* @name util.float.readDoubleBE
|
|
301
|
+
* @function
|
|
302
|
+
* @param {Uint8Array} buf Source buffer
|
|
303
|
+
* @param {number} pos Source buffer offset
|
|
304
|
+
* @returns {number} Value read
|
|
305
|
+
*/
|
|
306
|
+
function factory(exports$1) {
|
|
307
|
+
if (typeof Float32Array !== "undefined") (function() {
|
|
308
|
+
var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
|
|
309
|
+
function writeFloat_f32_cpy(val, buf, pos) {
|
|
310
|
+
f32[0] = val;
|
|
311
|
+
buf[pos] = f8b[0];
|
|
312
|
+
buf[pos + 1] = f8b[1];
|
|
313
|
+
buf[pos + 2] = f8b[2];
|
|
314
|
+
buf[pos + 3] = f8b[3];
|
|
315
|
+
}
|
|
316
|
+
function writeFloat_f32_rev(val, buf, pos) {
|
|
317
|
+
f32[0] = val;
|
|
318
|
+
buf[pos] = f8b[3];
|
|
319
|
+
buf[pos + 1] = f8b[2];
|
|
320
|
+
buf[pos + 2] = f8b[1];
|
|
321
|
+
buf[pos + 3] = f8b[0];
|
|
322
|
+
}
|
|
323
|
+
/* istanbul ignore next */
|
|
324
|
+
exports$1.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
325
|
+
/* istanbul ignore next */
|
|
326
|
+
exports$1.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
327
|
+
function readFloat_f32_cpy(buf, pos) {
|
|
328
|
+
f8b[0] = buf[pos];
|
|
329
|
+
f8b[1] = buf[pos + 1];
|
|
330
|
+
f8b[2] = buf[pos + 2];
|
|
331
|
+
f8b[3] = buf[pos + 3];
|
|
332
|
+
return f32[0];
|
|
333
|
+
}
|
|
334
|
+
function readFloat_f32_rev(buf, pos) {
|
|
335
|
+
f8b[3] = buf[pos];
|
|
336
|
+
f8b[2] = buf[pos + 1];
|
|
337
|
+
f8b[1] = buf[pos + 2];
|
|
338
|
+
f8b[0] = buf[pos + 3];
|
|
339
|
+
return f32[0];
|
|
340
|
+
}
|
|
341
|
+
/* istanbul ignore next */
|
|
342
|
+
exports$1.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
343
|
+
/* istanbul ignore next */
|
|
344
|
+
exports$1.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
345
|
+
})();
|
|
346
|
+
else (function() {
|
|
347
|
+
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
348
|
+
var sign = val < 0 ? 1 : 0;
|
|
349
|
+
if (sign) val = -val;
|
|
350
|
+
if (val === 0) writeUint(1 / val > 0 ? 0 : 2147483648, buf, pos);
|
|
351
|
+
else if (isNaN(val)) writeUint(2143289344, buf, pos);
|
|
352
|
+
else if (val > 34028234663852886e22) writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
353
|
+
else if (val < 11754943508222875e-54) writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
354
|
+
else {
|
|
355
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
356
|
+
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
exports$1.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
360
|
+
exports$1.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
361
|
+
function readFloat_ieee754(readUint, buf, pos) {
|
|
362
|
+
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
363
|
+
return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
364
|
+
}
|
|
365
|
+
exports$1.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
366
|
+
exports$1.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
367
|
+
})();
|
|
368
|
+
if (typeof Float64Array !== "undefined") (function() {
|
|
369
|
+
var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
|
|
370
|
+
function writeDouble_f64_cpy(val, buf, pos) {
|
|
371
|
+
f64[0] = val;
|
|
372
|
+
buf[pos] = f8b[0];
|
|
373
|
+
buf[pos + 1] = f8b[1];
|
|
374
|
+
buf[pos + 2] = f8b[2];
|
|
375
|
+
buf[pos + 3] = f8b[3];
|
|
376
|
+
buf[pos + 4] = f8b[4];
|
|
377
|
+
buf[pos + 5] = f8b[5];
|
|
378
|
+
buf[pos + 6] = f8b[6];
|
|
379
|
+
buf[pos + 7] = f8b[7];
|
|
380
|
+
}
|
|
381
|
+
function writeDouble_f64_rev(val, buf, pos) {
|
|
382
|
+
f64[0] = val;
|
|
383
|
+
buf[pos] = f8b[7];
|
|
384
|
+
buf[pos + 1] = f8b[6];
|
|
385
|
+
buf[pos + 2] = f8b[5];
|
|
386
|
+
buf[pos + 3] = f8b[4];
|
|
387
|
+
buf[pos + 4] = f8b[3];
|
|
388
|
+
buf[pos + 5] = f8b[2];
|
|
389
|
+
buf[pos + 6] = f8b[1];
|
|
390
|
+
buf[pos + 7] = f8b[0];
|
|
391
|
+
}
|
|
392
|
+
/* istanbul ignore next */
|
|
393
|
+
exports$1.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
394
|
+
/* istanbul ignore next */
|
|
395
|
+
exports$1.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
396
|
+
function readDouble_f64_cpy(buf, pos) {
|
|
397
|
+
f8b[0] = buf[pos];
|
|
398
|
+
f8b[1] = buf[pos + 1];
|
|
399
|
+
f8b[2] = buf[pos + 2];
|
|
400
|
+
f8b[3] = buf[pos + 3];
|
|
401
|
+
f8b[4] = buf[pos + 4];
|
|
402
|
+
f8b[5] = buf[pos + 5];
|
|
403
|
+
f8b[6] = buf[pos + 6];
|
|
404
|
+
f8b[7] = buf[pos + 7];
|
|
405
|
+
return f64[0];
|
|
406
|
+
}
|
|
407
|
+
function readDouble_f64_rev(buf, pos) {
|
|
408
|
+
f8b[7] = buf[pos];
|
|
409
|
+
f8b[6] = buf[pos + 1];
|
|
410
|
+
f8b[5] = buf[pos + 2];
|
|
411
|
+
f8b[4] = buf[pos + 3];
|
|
412
|
+
f8b[3] = buf[pos + 4];
|
|
413
|
+
f8b[2] = buf[pos + 5];
|
|
414
|
+
f8b[1] = buf[pos + 6];
|
|
415
|
+
f8b[0] = buf[pos + 7];
|
|
416
|
+
return f64[0];
|
|
417
|
+
}
|
|
418
|
+
/* istanbul ignore next */
|
|
419
|
+
exports$1.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
420
|
+
/* istanbul ignore next */
|
|
421
|
+
exports$1.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
422
|
+
})();
|
|
423
|
+
else (function() {
|
|
424
|
+
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
425
|
+
var sign = val < 0 ? 1 : 0;
|
|
426
|
+
if (sign) val = -val;
|
|
427
|
+
if (val === 0) {
|
|
428
|
+
writeUint(0, buf, pos + off0);
|
|
429
|
+
writeUint(1 / val > 0 ? 0 : 2147483648, buf, pos + off1);
|
|
430
|
+
} else if (isNaN(val)) {
|
|
431
|
+
writeUint(0, buf, pos + off0);
|
|
432
|
+
writeUint(2146959360, buf, pos + off1);
|
|
433
|
+
} else if (val > 17976931348623157e292) {
|
|
434
|
+
writeUint(0, buf, pos + off0);
|
|
435
|
+
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
436
|
+
} else {
|
|
437
|
+
var mantissa;
|
|
438
|
+
if (val < 22250738585072014e-324) {
|
|
439
|
+
mantissa = val / 5e-324;
|
|
440
|
+
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
441
|
+
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
442
|
+
} else {
|
|
443
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
444
|
+
if (exponent === 1024) exponent = 1023;
|
|
445
|
+
mantissa = val * Math.pow(2, -exponent);
|
|
446
|
+
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
447
|
+
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
exports$1.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
452
|
+
exports$1.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
453
|
+
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
454
|
+
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
455
|
+
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
456
|
+
return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
457
|
+
}
|
|
458
|
+
exports$1.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
459
|
+
exports$1.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
460
|
+
})();
|
|
461
|
+
return exports$1;
|
|
462
|
+
}
|
|
463
|
+
function writeUintLE(val, buf, pos) {
|
|
464
|
+
buf[pos] = val & 255;
|
|
465
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
466
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
467
|
+
buf[pos + 3] = val >>> 24;
|
|
468
|
+
}
|
|
469
|
+
function writeUintBE(val, buf, pos) {
|
|
470
|
+
buf[pos] = val >>> 24;
|
|
471
|
+
buf[pos + 1] = val >>> 16 & 255;
|
|
472
|
+
buf[pos + 2] = val >>> 8 & 255;
|
|
473
|
+
buf[pos + 3] = val & 255;
|
|
474
|
+
}
|
|
475
|
+
function readUintLE(buf, pos) {
|
|
476
|
+
return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
|
|
477
|
+
}
|
|
478
|
+
function readUintBE(buf, pos) {
|
|
479
|
+
return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
|
|
480
|
+
}
|
|
481
|
+
}));
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region node_modules/@protobufjs/inquire/index.js
|
|
484
|
+
var require_inquire = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
485
|
+
module.exports = inquire;
|
|
486
|
+
/**
|
|
487
|
+
* Requires a module only if available.
|
|
488
|
+
* @memberof util
|
|
489
|
+
* @param {string} moduleName Module to require
|
|
490
|
+
* @returns {?Object} Required module if available and not empty, otherwise `null`
|
|
491
|
+
*/
|
|
492
|
+
function inquire(moduleName) {
|
|
493
|
+
try {
|
|
494
|
+
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
495
|
+
if (mod && (mod.length || Object.keys(mod).length)) return mod;
|
|
496
|
+
} catch (e) {}
|
|
497
|
+
return null;
|
|
498
|
+
}
|
|
499
|
+
}));
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region node_modules/@protobufjs/utf8/index.js
|
|
502
|
+
var require_utf8 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
503
|
+
/**
|
|
504
|
+
* A minimal UTF8 implementation for number arrays.
|
|
505
|
+
* @memberof util
|
|
506
|
+
* @namespace
|
|
507
|
+
*/
|
|
508
|
+
var utf8 = exports;
|
|
509
|
+
/**
|
|
510
|
+
* Calculates the UTF8 byte length of a string.
|
|
511
|
+
* @param {string} string String
|
|
512
|
+
* @returns {number} Byte length
|
|
513
|
+
*/
|
|
514
|
+
utf8.length = function utf8_length(string) {
|
|
515
|
+
var len = 0, c = 0;
|
|
516
|
+
for (var i = 0; i < string.length; ++i) {
|
|
517
|
+
c = string.charCodeAt(i);
|
|
518
|
+
if (c < 128) len += 1;
|
|
519
|
+
else if (c < 2048) len += 2;
|
|
520
|
+
else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
|
|
521
|
+
++i;
|
|
522
|
+
len += 4;
|
|
523
|
+
} else len += 3;
|
|
524
|
+
}
|
|
525
|
+
return len;
|
|
526
|
+
};
|
|
527
|
+
/**
|
|
528
|
+
* Reads UTF8 bytes as a string.
|
|
529
|
+
* @param {Uint8Array} buffer Source buffer
|
|
530
|
+
* @param {number} start Source start
|
|
531
|
+
* @param {number} end Source end
|
|
532
|
+
* @returns {string} String read
|
|
533
|
+
*/
|
|
534
|
+
utf8.read = function utf8_read(buffer, start, end) {
|
|
535
|
+
if (end - start < 1) return "";
|
|
536
|
+
var parts = null, chunk = [], i = 0, t;
|
|
537
|
+
while (start < end) {
|
|
538
|
+
t = buffer[start++];
|
|
539
|
+
if (t < 128) chunk[i++] = t;
|
|
540
|
+
else if (t > 191 && t < 224) chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
|
|
541
|
+
else if (t > 239 && t < 365) {
|
|
542
|
+
t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
|
|
543
|
+
chunk[i++] = 55296 + (t >> 10);
|
|
544
|
+
chunk[i++] = 56320 + (t & 1023);
|
|
545
|
+
} else chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
|
|
546
|
+
if (i > 8191) {
|
|
547
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
548
|
+
i = 0;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
if (parts) {
|
|
552
|
+
if (i) parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
553
|
+
return parts.join("");
|
|
554
|
+
}
|
|
555
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
556
|
+
};
|
|
557
|
+
/**
|
|
558
|
+
* Writes a string as UTF8 bytes.
|
|
559
|
+
* @param {string} string Source string
|
|
560
|
+
* @param {Uint8Array} buffer Destination buffer
|
|
561
|
+
* @param {number} offset Destination offset
|
|
562
|
+
* @returns {number} Bytes written
|
|
563
|
+
*/
|
|
564
|
+
utf8.write = function utf8_write(string, buffer, offset) {
|
|
565
|
+
var start = offset, c1, c2;
|
|
566
|
+
for (var i = 0; i < string.length; ++i) {
|
|
567
|
+
c1 = string.charCodeAt(i);
|
|
568
|
+
if (c1 < 128) buffer[offset++] = c1;
|
|
569
|
+
else if (c1 < 2048) {
|
|
570
|
+
buffer[offset++] = c1 >> 6 | 192;
|
|
571
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
572
|
+
} else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
573
|
+
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
574
|
+
++i;
|
|
575
|
+
buffer[offset++] = c1 >> 18 | 240;
|
|
576
|
+
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
577
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
578
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
579
|
+
} else {
|
|
580
|
+
buffer[offset++] = c1 >> 12 | 224;
|
|
581
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
582
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return offset - start;
|
|
586
|
+
};
|
|
587
|
+
}));
|
|
588
|
+
//#endregion
|
|
589
|
+
//#region node_modules/@protobufjs/pool/index.js
|
|
590
|
+
var require_pool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
591
|
+
module.exports = pool;
|
|
592
|
+
/**
|
|
593
|
+
* An allocator as used by {@link util.pool}.
|
|
594
|
+
* @typedef PoolAllocator
|
|
595
|
+
* @type {function}
|
|
596
|
+
* @param {number} size Buffer size
|
|
597
|
+
* @returns {Uint8Array} Buffer
|
|
598
|
+
*/
|
|
599
|
+
/**
|
|
600
|
+
* A slicer as used by {@link util.pool}.
|
|
601
|
+
* @typedef PoolSlicer
|
|
602
|
+
* @type {function}
|
|
603
|
+
* @param {number} start Start offset
|
|
604
|
+
* @param {number} end End offset
|
|
605
|
+
* @returns {Uint8Array} Buffer slice
|
|
606
|
+
* @this {Uint8Array}
|
|
607
|
+
*/
|
|
608
|
+
/**
|
|
609
|
+
* A general purpose buffer pool.
|
|
610
|
+
* @memberof util
|
|
611
|
+
* @function
|
|
612
|
+
* @param {PoolAllocator} alloc Allocator
|
|
613
|
+
* @param {PoolSlicer} slice Slicer
|
|
614
|
+
* @param {number} [size=8192] Slab size
|
|
615
|
+
* @returns {PoolAllocator} Pooled allocator
|
|
616
|
+
*/
|
|
617
|
+
function pool(alloc, slice, size) {
|
|
618
|
+
var SIZE = size || 8192;
|
|
619
|
+
var MAX = SIZE >>> 1;
|
|
620
|
+
var slab = null;
|
|
621
|
+
var offset = SIZE;
|
|
622
|
+
return function pool_alloc(size) {
|
|
623
|
+
if (size < 1 || size > MAX) return alloc(size);
|
|
624
|
+
if (offset + size > SIZE) {
|
|
625
|
+
slab = alloc(SIZE);
|
|
626
|
+
offset = 0;
|
|
627
|
+
}
|
|
628
|
+
var buf = slice.call(slab, offset, offset += size);
|
|
629
|
+
if (offset & 7) offset = (offset | 7) + 1;
|
|
630
|
+
return buf;
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
}));
|
|
634
|
+
//#endregion
|
|
635
|
+
//#region node_modules/protobufjs/src/util/longbits.js
|
|
636
|
+
var require_longbits = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
637
|
+
module.exports = LongBits;
|
|
638
|
+
var util = require_minimal$1();
|
|
639
|
+
/**
|
|
640
|
+
* Constructs new long bits.
|
|
641
|
+
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
|
|
642
|
+
* @memberof util
|
|
643
|
+
* @constructor
|
|
644
|
+
* @param {number} lo Low 32 bits, unsigned
|
|
645
|
+
* @param {number} hi High 32 bits, unsigned
|
|
646
|
+
*/
|
|
647
|
+
function LongBits(lo, hi) {
|
|
648
|
+
/**
|
|
649
|
+
* Low bits.
|
|
650
|
+
* @type {number}
|
|
651
|
+
*/
|
|
652
|
+
this.lo = lo >>> 0;
|
|
653
|
+
/**
|
|
654
|
+
* High bits.
|
|
655
|
+
* @type {number}
|
|
656
|
+
*/
|
|
657
|
+
this.hi = hi >>> 0;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Zero bits.
|
|
661
|
+
* @memberof util.LongBits
|
|
662
|
+
* @type {util.LongBits}
|
|
663
|
+
*/
|
|
664
|
+
var zero = LongBits.zero = new LongBits(0, 0);
|
|
665
|
+
zero.toNumber = function() {
|
|
666
|
+
return 0;
|
|
667
|
+
};
|
|
668
|
+
zero.zzEncode = zero.zzDecode = function() {
|
|
669
|
+
return this;
|
|
670
|
+
};
|
|
671
|
+
zero.length = function() {
|
|
672
|
+
return 1;
|
|
673
|
+
};
|
|
674
|
+
/**
|
|
675
|
+
* Zero hash.
|
|
676
|
+
* @memberof util.LongBits
|
|
677
|
+
* @type {string}
|
|
678
|
+
*/
|
|
679
|
+
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
680
|
+
/**
|
|
681
|
+
* Constructs new long bits from the specified number.
|
|
682
|
+
* @param {number} value Value
|
|
683
|
+
* @returns {util.LongBits} Instance
|
|
684
|
+
*/
|
|
685
|
+
LongBits.fromNumber = function fromNumber(value) {
|
|
686
|
+
if (value === 0) return zero;
|
|
687
|
+
var sign = value < 0;
|
|
688
|
+
if (sign) value = -value;
|
|
689
|
+
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
690
|
+
if (sign) {
|
|
691
|
+
hi = ~hi >>> 0;
|
|
692
|
+
lo = ~lo >>> 0;
|
|
693
|
+
if (++lo > 4294967295) {
|
|
694
|
+
lo = 0;
|
|
695
|
+
if (++hi > 4294967295) hi = 0;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return new LongBits(lo, hi);
|
|
699
|
+
};
|
|
700
|
+
/**
|
|
701
|
+
* Constructs new long bits from a number, long or string.
|
|
702
|
+
* @param {Long|number|string} value Value
|
|
703
|
+
* @returns {util.LongBits} Instance
|
|
704
|
+
*/
|
|
705
|
+
LongBits.from = function from(value) {
|
|
706
|
+
if (typeof value === "number") return LongBits.fromNumber(value);
|
|
707
|
+
if (util.isString(value))
|
|
708
|
+
/* istanbul ignore else */
|
|
709
|
+
if (util.Long) value = util.Long.fromString(value);
|
|
710
|
+
else return LongBits.fromNumber(parseInt(value, 10));
|
|
711
|
+
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* Converts this long bits to a possibly unsafe JavaScript number.
|
|
715
|
+
* @param {boolean} [unsigned=false] Whether unsigned or not
|
|
716
|
+
* @returns {number} Possibly unsafe number
|
|
717
|
+
*/
|
|
718
|
+
LongBits.prototype.toNumber = function toNumber(unsigned) {
|
|
719
|
+
if (!unsigned && this.hi >>> 31) {
|
|
720
|
+
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
|
721
|
+
if (!lo) hi = hi + 1 >>> 0;
|
|
722
|
+
return -(lo + hi * 4294967296);
|
|
723
|
+
}
|
|
724
|
+
return this.lo + this.hi * 4294967296;
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* Converts this long bits to a long.
|
|
728
|
+
* @param {boolean} [unsigned=false] Whether unsigned or not
|
|
729
|
+
* @returns {Long} Long
|
|
730
|
+
*/
|
|
731
|
+
LongBits.prototype.toLong = function toLong(unsigned) {
|
|
732
|
+
return util.Long ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) : {
|
|
733
|
+
low: this.lo | 0,
|
|
734
|
+
high: this.hi | 0,
|
|
735
|
+
unsigned: Boolean(unsigned)
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
var charCodeAt = String.prototype.charCodeAt;
|
|
739
|
+
/**
|
|
740
|
+
* Constructs new long bits from the specified 8 characters long hash.
|
|
741
|
+
* @param {string} hash Hash
|
|
742
|
+
* @returns {util.LongBits} Bits
|
|
743
|
+
*/
|
|
744
|
+
LongBits.fromHash = function fromHash(hash) {
|
|
745
|
+
if (hash === zeroHash) return zero;
|
|
746
|
+
return new LongBits((charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0, (charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0);
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* Converts this long bits to a 8 characters long hash.
|
|
750
|
+
* @returns {string} Hash
|
|
751
|
+
*/
|
|
752
|
+
LongBits.prototype.toHash = function toHash() {
|
|
753
|
+
return String.fromCharCode(this.lo & 255, this.lo >>> 8 & 255, this.lo >>> 16 & 255, this.lo >>> 24, this.hi & 255, this.hi >>> 8 & 255, this.hi >>> 16 & 255, this.hi >>> 24);
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* Zig-zag encodes this long bits.
|
|
757
|
+
* @returns {util.LongBits} `this`
|
|
758
|
+
*/
|
|
759
|
+
LongBits.prototype.zzEncode = function zzEncode() {
|
|
760
|
+
var mask = this.hi >> 31;
|
|
761
|
+
this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
|
|
762
|
+
this.lo = (this.lo << 1 ^ mask) >>> 0;
|
|
763
|
+
return this;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* Zig-zag decodes this long bits.
|
|
767
|
+
* @returns {util.LongBits} `this`
|
|
768
|
+
*/
|
|
769
|
+
LongBits.prototype.zzDecode = function zzDecode() {
|
|
770
|
+
var mask = -(this.lo & 1);
|
|
771
|
+
this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
|
|
772
|
+
this.hi = (this.hi >>> 1 ^ mask) >>> 0;
|
|
773
|
+
return this;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* Calculates the length of this longbits when encoded as a varint.
|
|
777
|
+
* @returns {number} Length
|
|
778
|
+
*/
|
|
779
|
+
LongBits.prototype.length = function length() {
|
|
780
|
+
var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
|
|
781
|
+
return part2 === 0 ? part1 === 0 ? part0 < 16384 ? part0 < 128 ? 1 : 2 : part0 < 2097152 ? 3 : 4 : part1 < 16384 ? part1 < 128 ? 5 : 6 : part1 < 2097152 ? 7 : 8 : part2 < 128 ? 9 : 10;
|
|
782
|
+
};
|
|
783
|
+
}));
|
|
784
|
+
//#endregion
|
|
785
|
+
//#region node_modules/protobufjs/src/util/minimal.js
|
|
786
|
+
var require_minimal$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
787
|
+
var util = exports;
|
|
788
|
+
util.asPromise = require_aspromise();
|
|
789
|
+
util.base64 = require_base64();
|
|
790
|
+
util.EventEmitter = require_eventemitter();
|
|
791
|
+
util.float = require_float();
|
|
792
|
+
util.inquire = require_inquire();
|
|
793
|
+
util.utf8 = require_utf8();
|
|
794
|
+
util.pool = require_pool();
|
|
795
|
+
util.LongBits = require_longbits();
|
|
796
|
+
/**
|
|
797
|
+
* Whether running within node or not.
|
|
798
|
+
* @memberof util
|
|
799
|
+
* @type {boolean}
|
|
800
|
+
*/
|
|
801
|
+
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
802
|
+
/**
|
|
803
|
+
* Global object reference.
|
|
804
|
+
* @memberof util
|
|
805
|
+
* @type {Object}
|
|
806
|
+
*/
|
|
807
|
+
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports;
|
|
808
|
+
/**
|
|
809
|
+
* An immuable empty array.
|
|
810
|
+
* @memberof util
|
|
811
|
+
* @type {Array.<*>}
|
|
812
|
+
* @const
|
|
813
|
+
*/
|
|
814
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : [];
|
|
815
|
+
/**
|
|
816
|
+
* An immutable empty object.
|
|
817
|
+
* @type {Object}
|
|
818
|
+
* @const
|
|
819
|
+
*/
|
|
820
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : ( /* istanbul ignore next */ {});
|
|
821
|
+
/**
|
|
822
|
+
* Tests if the specified value is an integer.
|
|
823
|
+
* @function
|
|
824
|
+
* @param {*} value Value to test
|
|
825
|
+
* @returns {boolean} `true` if the value is an integer
|
|
826
|
+
*/
|
|
827
|
+
util.isInteger = Number.isInteger || function isInteger(value) {
|
|
828
|
+
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* Tests if the specified value is a string.
|
|
832
|
+
* @param {*} value Value to test
|
|
833
|
+
* @returns {boolean} `true` if the value is a string
|
|
834
|
+
*/
|
|
835
|
+
util.isString = function isString(value) {
|
|
836
|
+
return typeof value === "string" || value instanceof String;
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
* Tests if the specified value is a non-null object.
|
|
840
|
+
* @param {*} value Value to test
|
|
841
|
+
* @returns {boolean} `true` if the value is a non-null object
|
|
842
|
+
*/
|
|
843
|
+
util.isObject = function isObject(value) {
|
|
844
|
+
return value && typeof value === "object";
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* Checks if a property on a message is considered to be present.
|
|
848
|
+
* This is an alias of {@link util.isSet}.
|
|
849
|
+
* @function
|
|
850
|
+
* @param {Object} obj Plain object or message instance
|
|
851
|
+
* @param {string} prop Property name
|
|
852
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
853
|
+
*/
|
|
854
|
+
util.isset = util.isSet = function isSet(obj, prop) {
|
|
855
|
+
var value = obj[prop];
|
|
856
|
+
if (value != null && obj.hasOwnProperty(prop)) return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
857
|
+
return false;
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Any compatible Buffer instance.
|
|
861
|
+
* This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.
|
|
862
|
+
* @interface Buffer
|
|
863
|
+
* @extends Uint8Array
|
|
864
|
+
*/
|
|
865
|
+
/**
|
|
866
|
+
* Node's Buffer class if available.
|
|
867
|
+
* @type {Constructor<Buffer>}
|
|
868
|
+
*/
|
|
869
|
+
util.Buffer = (function() {
|
|
870
|
+
try {
|
|
871
|
+
var Buffer = util.inquire("buffer").Buffer;
|
|
872
|
+
return Buffer.prototype.utf8Write ? Buffer : null;
|
|
873
|
+
} catch (e) {
|
|
874
|
+
/* istanbul ignore next */
|
|
875
|
+
return null;
|
|
876
|
+
}
|
|
877
|
+
})();
|
|
878
|
+
util._Buffer_from = null;
|
|
879
|
+
util._Buffer_allocUnsafe = null;
|
|
880
|
+
/**
|
|
881
|
+
* Creates a new buffer of whatever type supported by the environment.
|
|
882
|
+
* @param {number|number[]} [sizeOrArray=0] Buffer size or number array
|
|
883
|
+
* @returns {Uint8Array|Buffer} Buffer
|
|
884
|
+
*/
|
|
885
|
+
util.newBuffer = function newBuffer(sizeOrArray) {
|
|
886
|
+
/* istanbul ignore next */
|
|
887
|
+
return typeof sizeOrArray === "number" ? util.Buffer ? util._Buffer_allocUnsafe(sizeOrArray) : new util.Array(sizeOrArray) : util.Buffer ? util._Buffer_from(sizeOrArray) : typeof Uint8Array === "undefined" ? sizeOrArray : new Uint8Array(sizeOrArray);
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`.
|
|
891
|
+
* @type {Constructor<Uint8Array>}
|
|
892
|
+
*/
|
|
893
|
+
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
894
|
+
/**
|
|
895
|
+
* Any compatible Long instance.
|
|
896
|
+
* This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.
|
|
897
|
+
* @interface Long
|
|
898
|
+
* @property {number} low Low bits
|
|
899
|
+
* @property {number} high High bits
|
|
900
|
+
* @property {boolean} unsigned Whether unsigned or not
|
|
901
|
+
*/
|
|
902
|
+
/**
|
|
903
|
+
* Long.js's Long class if available.
|
|
904
|
+
* @type {Constructor<Long>}
|
|
905
|
+
*/
|
|
906
|
+
util.Long = util.global.dcodeIO && util.global.dcodeIO.Long || util.global.Long || util.inquire("long");
|
|
907
|
+
/**
|
|
908
|
+
* Regular expression used to verify 2 bit (`bool`) map keys.
|
|
909
|
+
* @type {RegExp}
|
|
910
|
+
* @const
|
|
911
|
+
*/
|
|
912
|
+
util.key2Re = /^true|false|0|1$/;
|
|
913
|
+
/**
|
|
914
|
+
* Regular expression used to verify 32 bit (`int32` etc.) map keys.
|
|
915
|
+
* @type {RegExp}
|
|
916
|
+
* @const
|
|
917
|
+
*/
|
|
918
|
+
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
919
|
+
/**
|
|
920
|
+
* Regular expression used to verify 64 bit (`int64` etc.) map keys.
|
|
921
|
+
* @type {RegExp}
|
|
922
|
+
* @const
|
|
923
|
+
*/
|
|
924
|
+
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
925
|
+
/**
|
|
926
|
+
* Converts a number or long to an 8 characters long hash string.
|
|
927
|
+
* @param {Long|number} value Value to convert
|
|
928
|
+
* @returns {string} Hash
|
|
929
|
+
*/
|
|
930
|
+
util.longToHash = function longToHash(value) {
|
|
931
|
+
return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
|
|
932
|
+
};
|
|
933
|
+
/**
|
|
934
|
+
* Converts an 8 characters long hash string to a long or number.
|
|
935
|
+
* @param {string} hash Hash
|
|
936
|
+
* @param {boolean} [unsigned=false] Whether unsigned or not
|
|
937
|
+
* @returns {Long|number} Original value
|
|
938
|
+
*/
|
|
939
|
+
util.longFromHash = function longFromHash(hash, unsigned) {
|
|
940
|
+
var bits = util.LongBits.fromHash(hash);
|
|
941
|
+
if (util.Long) return util.Long.fromBits(bits.lo, bits.hi, unsigned);
|
|
942
|
+
return bits.toNumber(Boolean(unsigned));
|
|
943
|
+
};
|
|
944
|
+
/**
|
|
945
|
+
* Merges the properties of the source object into the destination object.
|
|
946
|
+
* @memberof util
|
|
947
|
+
* @param {Object.<string,*>} dst Destination object
|
|
948
|
+
* @param {Object.<string,*>} src Source object
|
|
949
|
+
* @param {boolean} [ifNotSet=false] Merges only if the key is not already set
|
|
950
|
+
* @returns {Object.<string,*>} Destination object
|
|
951
|
+
*/
|
|
952
|
+
function merge(dst, src, ifNotSet) {
|
|
953
|
+
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i) if (dst[keys[i]] === void 0 || !ifNotSet) dst[keys[i]] = src[keys[i]];
|
|
954
|
+
return dst;
|
|
955
|
+
}
|
|
956
|
+
util.merge = merge;
|
|
957
|
+
/**
|
|
958
|
+
* Converts the first character of a string to lower case.
|
|
959
|
+
* @param {string} str String to convert
|
|
960
|
+
* @returns {string} Converted string
|
|
961
|
+
*/
|
|
962
|
+
util.lcFirst = function lcFirst(str) {
|
|
963
|
+
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* Creates a custom error constructor.
|
|
967
|
+
* @memberof util
|
|
968
|
+
* @param {string} name Error name
|
|
969
|
+
* @returns {Constructor<Error>} Custom error constructor
|
|
970
|
+
*/
|
|
971
|
+
function newError(name) {
|
|
972
|
+
function CustomError(message, properties) {
|
|
973
|
+
if (!(this instanceof CustomError)) return new CustomError(message, properties);
|
|
974
|
+
Object.defineProperty(this, "message", { get: function() {
|
|
975
|
+
return message;
|
|
976
|
+
} });
|
|
977
|
+
/* istanbul ignore next */
|
|
978
|
+
if (Error.captureStackTrace) Error.captureStackTrace(this, CustomError);
|
|
979
|
+
else Object.defineProperty(this, "stack", { value: (/* @__PURE__ */ new Error()).stack || "" });
|
|
980
|
+
if (properties) merge(this, properties);
|
|
981
|
+
}
|
|
982
|
+
CustomError.prototype = Object.create(Error.prototype, {
|
|
983
|
+
constructor: {
|
|
984
|
+
value: CustomError,
|
|
985
|
+
writable: true,
|
|
986
|
+
enumerable: false,
|
|
987
|
+
configurable: true
|
|
988
|
+
},
|
|
989
|
+
name: {
|
|
990
|
+
get: function get() {
|
|
991
|
+
return name;
|
|
992
|
+
},
|
|
993
|
+
set: void 0,
|
|
994
|
+
enumerable: false,
|
|
995
|
+
configurable: true
|
|
996
|
+
},
|
|
997
|
+
toString: {
|
|
998
|
+
value: function value() {
|
|
999
|
+
return this.name + ": " + this.message;
|
|
1000
|
+
},
|
|
1001
|
+
writable: true,
|
|
1002
|
+
enumerable: false,
|
|
1003
|
+
configurable: true
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
return CustomError;
|
|
1007
|
+
}
|
|
1008
|
+
util.newError = newError;
|
|
1009
|
+
/**
|
|
1010
|
+
* Constructs a new protocol error.
|
|
1011
|
+
* @classdesc Error subclass indicating a protocol specifc error.
|
|
1012
|
+
* @memberof util
|
|
1013
|
+
* @extends Error
|
|
1014
|
+
* @template T extends Message<T>
|
|
1015
|
+
* @constructor
|
|
1016
|
+
* @param {string} message Error message
|
|
1017
|
+
* @param {Object.<string,*>} [properties] Additional properties
|
|
1018
|
+
* @example
|
|
1019
|
+
* try {
|
|
1020
|
+
* MyMessage.decode(someBuffer); // throws if required fields are missing
|
|
1021
|
+
* } catch (e) {
|
|
1022
|
+
* if (e instanceof ProtocolError && e.instance)
|
|
1023
|
+
* console.log("decoded so far: " + JSON.stringify(e.instance));
|
|
1024
|
+
* }
|
|
1025
|
+
*/
|
|
1026
|
+
util.ProtocolError = newError("ProtocolError");
|
|
1027
|
+
/**
|
|
1028
|
+
* So far decoded message instance.
|
|
1029
|
+
* @name util.ProtocolError#instance
|
|
1030
|
+
* @type {Message<T>}
|
|
1031
|
+
*/
|
|
1032
|
+
/**
|
|
1033
|
+
* A OneOf getter as returned by {@link util.oneOfGetter}.
|
|
1034
|
+
* @typedef OneOfGetter
|
|
1035
|
+
* @type {function}
|
|
1036
|
+
* @returns {string|undefined} Set field name, if any
|
|
1037
|
+
*/
|
|
1038
|
+
/**
|
|
1039
|
+
* Builds a getter for a oneof's present field name.
|
|
1040
|
+
* @param {string[]} fieldNames Field names
|
|
1041
|
+
* @returns {OneOfGetter} Unbound getter
|
|
1042
|
+
*/
|
|
1043
|
+
util.oneOfGetter = function getOneOf(fieldNames) {
|
|
1044
|
+
var fieldMap = {};
|
|
1045
|
+
for (var i = 0; i < fieldNames.length; ++i) fieldMap[fieldNames[i]] = 1;
|
|
1046
|
+
/**
|
|
1047
|
+
* @returns {string|undefined} Set field name, if any
|
|
1048
|
+
* @this Object
|
|
1049
|
+
* @ignore
|
|
1050
|
+
*/
|
|
1051
|
+
return function() {
|
|
1052
|
+
for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i) if (fieldMap[keys[i]] === 1 && this[keys[i]] !== void 0 && this[keys[i]] !== null) return keys[i];
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
/**
|
|
1056
|
+
* A OneOf setter as returned by {@link util.oneOfSetter}.
|
|
1057
|
+
* @typedef OneOfSetter
|
|
1058
|
+
* @type {function}
|
|
1059
|
+
* @param {string|undefined} value Field name
|
|
1060
|
+
* @returns {undefined}
|
|
1061
|
+
*/
|
|
1062
|
+
/**
|
|
1063
|
+
* Builds a setter for a oneof's present field name.
|
|
1064
|
+
* @param {string[]} fieldNames Field names
|
|
1065
|
+
* @returns {OneOfSetter} Unbound setter
|
|
1066
|
+
*/
|
|
1067
|
+
util.oneOfSetter = function setOneOf(fieldNames) {
|
|
1068
|
+
/**
|
|
1069
|
+
* @param {string} name Field name
|
|
1070
|
+
* @returns {undefined}
|
|
1071
|
+
* @this Object
|
|
1072
|
+
* @ignore
|
|
1073
|
+
*/
|
|
1074
|
+
return function(name) {
|
|
1075
|
+
for (var i = 0; i < fieldNames.length; ++i) if (fieldNames[i] !== name) delete this[fieldNames[i]];
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
/**
|
|
1079
|
+
* Default conversion options used for {@link Message#toJSON} implementations.
|
|
1080
|
+
*
|
|
1081
|
+
* These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:
|
|
1082
|
+
*
|
|
1083
|
+
* - Longs become strings
|
|
1084
|
+
* - Enums become string keys
|
|
1085
|
+
* - Bytes become base64 encoded strings
|
|
1086
|
+
* - (Sub-)Messages become plain objects
|
|
1087
|
+
* - Maps become plain objects with all string keys
|
|
1088
|
+
* - Repeated fields become arrays
|
|
1089
|
+
* - NaN and Infinity for float and double fields become strings
|
|
1090
|
+
*
|
|
1091
|
+
* @type {IConversionOptions}
|
|
1092
|
+
* @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json
|
|
1093
|
+
*/
|
|
1094
|
+
util.toJSONOptions = {
|
|
1095
|
+
longs: String,
|
|
1096
|
+
enums: String,
|
|
1097
|
+
bytes: String,
|
|
1098
|
+
json: true
|
|
1099
|
+
};
|
|
1100
|
+
util._configure = function() {
|
|
1101
|
+
var Buffer = util.Buffer;
|
|
1102
|
+
/* istanbul ignore if */
|
|
1103
|
+
if (!Buffer) {
|
|
1104
|
+
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from || function Buffer_from(value, encoding) {
|
|
1108
|
+
return new Buffer(value, encoding);
|
|
1109
|
+
};
|
|
1110
|
+
util._Buffer_allocUnsafe = Buffer.allocUnsafe || function Buffer_allocUnsafe(size) {
|
|
1111
|
+
return new Buffer(size);
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
}));
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region node_modules/protobufjs/src/writer.js
|
|
1117
|
+
var require_writer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1118
|
+
module.exports = Writer;
|
|
1119
|
+
var util = require_minimal$1();
|
|
1120
|
+
var BufferWriter;
|
|
1121
|
+
var LongBits = util.LongBits, base64 = util.base64, utf8 = util.utf8;
|
|
1122
|
+
/**
|
|
1123
|
+
* Constructs a new writer operation instance.
|
|
1124
|
+
* @classdesc Scheduled writer operation.
|
|
1125
|
+
* @constructor
|
|
1126
|
+
* @param {function(*, Uint8Array, number)} fn Function to call
|
|
1127
|
+
* @param {number} len Value byte length
|
|
1128
|
+
* @param {*} val Value to write
|
|
1129
|
+
* @ignore
|
|
1130
|
+
*/
|
|
1131
|
+
function Op(fn, len, val) {
|
|
1132
|
+
/**
|
|
1133
|
+
* Function to call.
|
|
1134
|
+
* @type {function(Uint8Array, number, *)}
|
|
1135
|
+
*/
|
|
1136
|
+
this.fn = fn;
|
|
1137
|
+
/**
|
|
1138
|
+
* Value byte length.
|
|
1139
|
+
* @type {number}
|
|
1140
|
+
*/
|
|
1141
|
+
this.len = len;
|
|
1142
|
+
/**
|
|
1143
|
+
* Next operation.
|
|
1144
|
+
* @type {Writer.Op|undefined}
|
|
1145
|
+
*/
|
|
1146
|
+
this.next = void 0;
|
|
1147
|
+
/**
|
|
1148
|
+
* Value to write.
|
|
1149
|
+
* @type {*}
|
|
1150
|
+
*/
|
|
1151
|
+
this.val = val;
|
|
1152
|
+
}
|
|
1153
|
+
/* istanbul ignore next */
|
|
1154
|
+
function noop() {}
|
|
1155
|
+
/**
|
|
1156
|
+
* Constructs a new writer state instance.
|
|
1157
|
+
* @classdesc Copied writer state.
|
|
1158
|
+
* @memberof Writer
|
|
1159
|
+
* @constructor
|
|
1160
|
+
* @param {Writer} writer Writer to copy state from
|
|
1161
|
+
* @ignore
|
|
1162
|
+
*/
|
|
1163
|
+
function State(writer) {
|
|
1164
|
+
/**
|
|
1165
|
+
* Current head.
|
|
1166
|
+
* @type {Writer.Op}
|
|
1167
|
+
*/
|
|
1168
|
+
this.head = writer.head;
|
|
1169
|
+
/**
|
|
1170
|
+
* Current tail.
|
|
1171
|
+
* @type {Writer.Op}
|
|
1172
|
+
*/
|
|
1173
|
+
this.tail = writer.tail;
|
|
1174
|
+
/**
|
|
1175
|
+
* Current buffer length.
|
|
1176
|
+
* @type {number}
|
|
1177
|
+
*/
|
|
1178
|
+
this.len = writer.len;
|
|
1179
|
+
/**
|
|
1180
|
+
* Next state.
|
|
1181
|
+
* @type {State|null}
|
|
1182
|
+
*/
|
|
1183
|
+
this.next = writer.states;
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* Constructs a new writer instance.
|
|
1187
|
+
* @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.
|
|
1188
|
+
* @constructor
|
|
1189
|
+
*/
|
|
1190
|
+
function Writer() {
|
|
1191
|
+
/**
|
|
1192
|
+
* Current length.
|
|
1193
|
+
* @type {number}
|
|
1194
|
+
*/
|
|
1195
|
+
this.len = 0;
|
|
1196
|
+
/**
|
|
1197
|
+
* Operations head.
|
|
1198
|
+
* @type {Object}
|
|
1199
|
+
*/
|
|
1200
|
+
this.head = new Op(noop, 0, 0);
|
|
1201
|
+
/**
|
|
1202
|
+
* Operations tail
|
|
1203
|
+
* @type {Object}
|
|
1204
|
+
*/
|
|
1205
|
+
this.tail = this.head;
|
|
1206
|
+
/**
|
|
1207
|
+
* Linked forked states.
|
|
1208
|
+
* @type {Object|null}
|
|
1209
|
+
*/
|
|
1210
|
+
this.states = null;
|
|
1211
|
+
}
|
|
1212
|
+
var create = function create() {
|
|
1213
|
+
return util.Buffer ? function create_buffer_setup() {
|
|
1214
|
+
return (Writer.create = function create_buffer() {
|
|
1215
|
+
return new BufferWriter();
|
|
1216
|
+
})();
|
|
1217
|
+
} : function create_array() {
|
|
1218
|
+
return new Writer();
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Creates a new writer.
|
|
1223
|
+
* @function
|
|
1224
|
+
* @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}
|
|
1225
|
+
*/
|
|
1226
|
+
Writer.create = create();
|
|
1227
|
+
/**
|
|
1228
|
+
* Allocates a buffer of the specified size.
|
|
1229
|
+
* @param {number} size Buffer size
|
|
1230
|
+
* @returns {Uint8Array} Buffer
|
|
1231
|
+
*/
|
|
1232
|
+
Writer.alloc = function alloc(size) {
|
|
1233
|
+
return new util.Array(size);
|
|
1234
|
+
};
|
|
1235
|
+
/* istanbul ignore else */
|
|
1236
|
+
if (util.Array !== Array) Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
1237
|
+
/**
|
|
1238
|
+
* Pushes a new operation to the queue.
|
|
1239
|
+
* @param {function(Uint8Array, number, *)} fn Function to call
|
|
1240
|
+
* @param {number} len Value byte length
|
|
1241
|
+
* @param {number} val Value to write
|
|
1242
|
+
* @returns {Writer} `this`
|
|
1243
|
+
* @private
|
|
1244
|
+
*/
|
|
1245
|
+
Writer.prototype._push = function push(fn, len, val) {
|
|
1246
|
+
this.tail = this.tail.next = new Op(fn, len, val);
|
|
1247
|
+
this.len += len;
|
|
1248
|
+
return this;
|
|
1249
|
+
};
|
|
1250
|
+
function writeByte(val, buf, pos) {
|
|
1251
|
+
buf[pos] = val & 255;
|
|
1252
|
+
}
|
|
1253
|
+
function writeVarint32(val, buf, pos) {
|
|
1254
|
+
while (val > 127) {
|
|
1255
|
+
buf[pos++] = val & 127 | 128;
|
|
1256
|
+
val >>>= 7;
|
|
1257
|
+
}
|
|
1258
|
+
buf[pos] = val;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Constructs a new varint writer operation instance.
|
|
1262
|
+
* @classdesc Scheduled varint writer operation.
|
|
1263
|
+
* @extends Op
|
|
1264
|
+
* @constructor
|
|
1265
|
+
* @param {number} len Value byte length
|
|
1266
|
+
* @param {number} val Value to write
|
|
1267
|
+
* @ignore
|
|
1268
|
+
*/
|
|
1269
|
+
function VarintOp(len, val) {
|
|
1270
|
+
this.len = len;
|
|
1271
|
+
this.next = void 0;
|
|
1272
|
+
this.val = val;
|
|
1273
|
+
}
|
|
1274
|
+
VarintOp.prototype = Object.create(Op.prototype);
|
|
1275
|
+
VarintOp.prototype.fn = writeVarint32;
|
|
1276
|
+
/**
|
|
1277
|
+
* Writes an unsigned 32 bit value as a varint.
|
|
1278
|
+
* @param {number} value Value to write
|
|
1279
|
+
* @returns {Writer} `this`
|
|
1280
|
+
*/
|
|
1281
|
+
Writer.prototype.uint32 = function write_uint32(value) {
|
|
1282
|
+
this.len += (this.tail = this.tail.next = new VarintOp((value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5, value)).len;
|
|
1283
|
+
return this;
|
|
1284
|
+
};
|
|
1285
|
+
/**
|
|
1286
|
+
* Writes a signed 32 bit value as a varint.
|
|
1287
|
+
* @function
|
|
1288
|
+
* @param {number} value Value to write
|
|
1289
|
+
* @returns {Writer} `this`
|
|
1290
|
+
*/
|
|
1291
|
+
Writer.prototype.int32 = function write_int32(value) {
|
|
1292
|
+
return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
|
|
1293
|
+
};
|
|
1294
|
+
/**
|
|
1295
|
+
* Writes a 32 bit value as a varint, zig-zag encoded.
|
|
1296
|
+
* @param {number} value Value to write
|
|
1297
|
+
* @returns {Writer} `this`
|
|
1298
|
+
*/
|
|
1299
|
+
Writer.prototype.sint32 = function write_sint32(value) {
|
|
1300
|
+
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
1301
|
+
};
|
|
1302
|
+
function writeVarint64(val, buf, pos) {
|
|
1303
|
+
while (val.hi) {
|
|
1304
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1305
|
+
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
1306
|
+
val.hi >>>= 7;
|
|
1307
|
+
}
|
|
1308
|
+
while (val.lo > 127) {
|
|
1309
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1310
|
+
val.lo = val.lo >>> 7;
|
|
1311
|
+
}
|
|
1312
|
+
buf[pos++] = val.lo;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Writes an unsigned 64 bit value as a varint.
|
|
1316
|
+
* @param {Long|number|string} value Value to write
|
|
1317
|
+
* @returns {Writer} `this`
|
|
1318
|
+
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
1319
|
+
*/
|
|
1320
|
+
Writer.prototype.uint64 = function write_uint64(value) {
|
|
1321
|
+
var bits = LongBits.from(value);
|
|
1322
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* Writes a signed 64 bit value as a varint.
|
|
1326
|
+
* @function
|
|
1327
|
+
* @param {Long|number|string} value Value to write
|
|
1328
|
+
* @returns {Writer} `this`
|
|
1329
|
+
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
1330
|
+
*/
|
|
1331
|
+
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
1332
|
+
/**
|
|
1333
|
+
* Writes a signed 64 bit value as a varint, zig-zag encoded.
|
|
1334
|
+
* @param {Long|number|string} value Value to write
|
|
1335
|
+
* @returns {Writer} `this`
|
|
1336
|
+
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
1337
|
+
*/
|
|
1338
|
+
Writer.prototype.sint64 = function write_sint64(value) {
|
|
1339
|
+
var bits = LongBits.from(value).zzEncode();
|
|
1340
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1341
|
+
};
|
|
1342
|
+
/**
|
|
1343
|
+
* Writes a boolish value as a varint.
|
|
1344
|
+
* @param {boolean} value Value to write
|
|
1345
|
+
* @returns {Writer} `this`
|
|
1346
|
+
*/
|
|
1347
|
+
Writer.prototype.bool = function write_bool(value) {
|
|
1348
|
+
return this._push(writeByte, 1, value ? 1 : 0);
|
|
1349
|
+
};
|
|
1350
|
+
function writeFixed32(val, buf, pos) {
|
|
1351
|
+
buf[pos] = val & 255;
|
|
1352
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1353
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1354
|
+
buf[pos + 3] = val >>> 24;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Writes an unsigned 32 bit value as fixed 32 bits.
|
|
1358
|
+
* @param {number} value Value to write
|
|
1359
|
+
* @returns {Writer} `this`
|
|
1360
|
+
*/
|
|
1361
|
+
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
1362
|
+
return this._push(writeFixed32, 4, value >>> 0);
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Writes a signed 32 bit value as fixed 32 bits.
|
|
1366
|
+
* @function
|
|
1367
|
+
* @param {number} value Value to write
|
|
1368
|
+
* @returns {Writer} `this`
|
|
1369
|
+
*/
|
|
1370
|
+
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
1371
|
+
/**
|
|
1372
|
+
* Writes an unsigned 64 bit value as fixed 64 bits.
|
|
1373
|
+
* @param {Long|number|string} value Value to write
|
|
1374
|
+
* @returns {Writer} `this`
|
|
1375
|
+
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
1376
|
+
*/
|
|
1377
|
+
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
1378
|
+
var bits = LongBits.from(value);
|
|
1379
|
+
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
1380
|
+
};
|
|
1381
|
+
/**
|
|
1382
|
+
* Writes a signed 64 bit value as fixed 64 bits.
|
|
1383
|
+
* @function
|
|
1384
|
+
* @param {Long|number|string} value Value to write
|
|
1385
|
+
* @returns {Writer} `this`
|
|
1386
|
+
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
1387
|
+
*/
|
|
1388
|
+
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
1389
|
+
/**
|
|
1390
|
+
* Writes a float (32 bit).
|
|
1391
|
+
* @function
|
|
1392
|
+
* @param {number} value Value to write
|
|
1393
|
+
* @returns {Writer} `this`
|
|
1394
|
+
*/
|
|
1395
|
+
Writer.prototype.float = function write_float(value) {
|
|
1396
|
+
return this._push(util.float.writeFloatLE, 4, value);
|
|
1397
|
+
};
|
|
1398
|
+
/**
|
|
1399
|
+
* Writes a double (64 bit float).
|
|
1400
|
+
* @function
|
|
1401
|
+
* @param {number} value Value to write
|
|
1402
|
+
* @returns {Writer} `this`
|
|
1403
|
+
*/
|
|
1404
|
+
Writer.prototype.double = function write_double(value) {
|
|
1405
|
+
return this._push(util.float.writeDoubleLE, 8, value);
|
|
1406
|
+
};
|
|
1407
|
+
var writeBytes = util.Array.prototype.set ? function writeBytes_set(val, buf, pos) {
|
|
1408
|
+
buf.set(val, pos);
|
|
1409
|
+
} : function writeBytes_for(val, buf, pos) {
|
|
1410
|
+
for (var i = 0; i < val.length; ++i) buf[pos + i] = val[i];
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* Writes a sequence of bytes.
|
|
1414
|
+
* @param {Uint8Array|string} value Buffer or base64 encoded string to write
|
|
1415
|
+
* @returns {Writer} `this`
|
|
1416
|
+
*/
|
|
1417
|
+
Writer.prototype.bytes = function write_bytes(value) {
|
|
1418
|
+
var len = value.length >>> 0;
|
|
1419
|
+
if (!len) return this._push(writeByte, 1, 0);
|
|
1420
|
+
if (util.isString(value)) {
|
|
1421
|
+
var buf = Writer.alloc(len = base64.length(value));
|
|
1422
|
+
base64.decode(value, buf, 0);
|
|
1423
|
+
value = buf;
|
|
1424
|
+
}
|
|
1425
|
+
return this.uint32(len)._push(writeBytes, len, value);
|
|
1426
|
+
};
|
|
1427
|
+
/**
|
|
1428
|
+
* Writes a string.
|
|
1429
|
+
* @param {string} value Value to write
|
|
1430
|
+
* @returns {Writer} `this`
|
|
1431
|
+
*/
|
|
1432
|
+
Writer.prototype.string = function write_string(value) {
|
|
1433
|
+
var len = utf8.length(value);
|
|
1434
|
+
return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
|
|
1435
|
+
};
|
|
1436
|
+
/**
|
|
1437
|
+
* Forks this writer's state by pushing it to a stack.
|
|
1438
|
+
* Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.
|
|
1439
|
+
* @returns {Writer} `this`
|
|
1440
|
+
*/
|
|
1441
|
+
Writer.prototype.fork = function fork() {
|
|
1442
|
+
this.states = new State(this);
|
|
1443
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1444
|
+
this.len = 0;
|
|
1445
|
+
return this;
|
|
1446
|
+
};
|
|
1447
|
+
/**
|
|
1448
|
+
* Resets this instance to the last state.
|
|
1449
|
+
* @returns {Writer} `this`
|
|
1450
|
+
*/
|
|
1451
|
+
Writer.prototype.reset = function reset() {
|
|
1452
|
+
if (this.states) {
|
|
1453
|
+
this.head = this.states.head;
|
|
1454
|
+
this.tail = this.states.tail;
|
|
1455
|
+
this.len = this.states.len;
|
|
1456
|
+
this.states = this.states.next;
|
|
1457
|
+
} else {
|
|
1458
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1459
|
+
this.len = 0;
|
|
1460
|
+
}
|
|
1461
|
+
return this;
|
|
1462
|
+
};
|
|
1463
|
+
/**
|
|
1464
|
+
* Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
|
|
1465
|
+
* @returns {Writer} `this`
|
|
1466
|
+
*/
|
|
1467
|
+
Writer.prototype.ldelim = function ldelim() {
|
|
1468
|
+
var head = this.head, tail = this.tail, len = this.len;
|
|
1469
|
+
this.reset().uint32(len);
|
|
1470
|
+
if (len) {
|
|
1471
|
+
this.tail.next = head.next;
|
|
1472
|
+
this.tail = tail;
|
|
1473
|
+
this.len += len;
|
|
1474
|
+
}
|
|
1475
|
+
return this;
|
|
1476
|
+
};
|
|
1477
|
+
/**
|
|
1478
|
+
* Finishes the write operation.
|
|
1479
|
+
* @returns {Uint8Array} Finished buffer
|
|
1480
|
+
*/
|
|
1481
|
+
Writer.prototype.finish = function finish() {
|
|
1482
|
+
var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
|
|
1483
|
+
while (head) {
|
|
1484
|
+
head.fn(head.val, buf, pos);
|
|
1485
|
+
pos += head.len;
|
|
1486
|
+
head = head.next;
|
|
1487
|
+
}
|
|
1488
|
+
return buf;
|
|
1489
|
+
};
|
|
1490
|
+
Writer._configure = function(BufferWriter_) {
|
|
1491
|
+
BufferWriter = BufferWriter_;
|
|
1492
|
+
Writer.create = create();
|
|
1493
|
+
BufferWriter._configure();
|
|
1494
|
+
};
|
|
1495
|
+
}));
|
|
1496
|
+
//#endregion
|
|
1497
|
+
//#region node_modules/protobufjs/src/writer_buffer.js
|
|
1498
|
+
var require_writer_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1499
|
+
module.exports = BufferWriter;
|
|
1500
|
+
var Writer = require_writer();
|
|
1501
|
+
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
1502
|
+
var util = require_minimal$1();
|
|
1503
|
+
/**
|
|
1504
|
+
* Constructs a new buffer writer instance.
|
|
1505
|
+
* @classdesc Wire format writer using node buffers.
|
|
1506
|
+
* @extends Writer
|
|
1507
|
+
* @constructor
|
|
1508
|
+
*/
|
|
1509
|
+
function BufferWriter() {
|
|
1510
|
+
Writer.call(this);
|
|
1511
|
+
}
|
|
1512
|
+
BufferWriter._configure = function() {
|
|
1513
|
+
/**
|
|
1514
|
+
* Allocates a buffer of the specified size.
|
|
1515
|
+
* @function
|
|
1516
|
+
* @param {number} size Buffer size
|
|
1517
|
+
* @returns {Buffer} Buffer
|
|
1518
|
+
*/
|
|
1519
|
+
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
1520
|
+
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? function writeBytesBuffer_set(val, buf, pos) {
|
|
1521
|
+
buf.set(val, pos);
|
|
1522
|
+
} : function writeBytesBuffer_copy(val, buf, pos) {
|
|
1523
|
+
if (val.copy) val.copy(buf, pos, 0, val.length);
|
|
1524
|
+
else for (var i = 0; i < val.length;) buf[pos++] = val[i++];
|
|
1525
|
+
};
|
|
1526
|
+
};
|
|
1527
|
+
/**
|
|
1528
|
+
* @override
|
|
1529
|
+
*/
|
|
1530
|
+
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
1531
|
+
if (util.isString(value)) value = util._Buffer_from(value, "base64");
|
|
1532
|
+
var len = value.length >>> 0;
|
|
1533
|
+
this.uint32(len);
|
|
1534
|
+
if (len) this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
1535
|
+
return this;
|
|
1536
|
+
};
|
|
1537
|
+
function writeStringBuffer(val, buf, pos) {
|
|
1538
|
+
if (val.length < 40) util.utf8.write(val, buf, pos);
|
|
1539
|
+
else if (buf.utf8Write) buf.utf8Write(val, pos);
|
|
1540
|
+
else buf.write(val, pos);
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* @override
|
|
1544
|
+
*/
|
|
1545
|
+
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
1546
|
+
var len = util.Buffer.byteLength(value);
|
|
1547
|
+
this.uint32(len);
|
|
1548
|
+
if (len) this._push(writeStringBuffer, len, value);
|
|
1549
|
+
return this;
|
|
1550
|
+
};
|
|
1551
|
+
/**
|
|
1552
|
+
* Finishes the write operation.
|
|
1553
|
+
* @name BufferWriter#finish
|
|
1554
|
+
* @function
|
|
1555
|
+
* @returns {Buffer} Finished buffer
|
|
1556
|
+
*/
|
|
1557
|
+
BufferWriter._configure();
|
|
1558
|
+
}));
|
|
1559
|
+
//#endregion
|
|
1560
|
+
//#region node_modules/protobufjs/src/reader.js
|
|
1561
|
+
var require_reader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1562
|
+
module.exports = Reader;
|
|
1563
|
+
var util = require_minimal$1();
|
|
1564
|
+
var BufferReader;
|
|
1565
|
+
var LongBits = util.LongBits, utf8 = util.utf8;
|
|
1566
|
+
/* istanbul ignore next */
|
|
1567
|
+
function indexOutOfRange(reader, writeLength) {
|
|
1568
|
+
return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Constructs a new reader instance using the specified buffer.
|
|
1572
|
+
* @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`.
|
|
1573
|
+
* @constructor
|
|
1574
|
+
* @param {Uint8Array} buffer Buffer to read from
|
|
1575
|
+
*/
|
|
1576
|
+
function Reader(buffer) {
|
|
1577
|
+
/**
|
|
1578
|
+
* Read buffer.
|
|
1579
|
+
* @type {Uint8Array}
|
|
1580
|
+
*/
|
|
1581
|
+
this.buf = buffer;
|
|
1582
|
+
/**
|
|
1583
|
+
* Read buffer position.
|
|
1584
|
+
* @type {number}
|
|
1585
|
+
*/
|
|
1586
|
+
this.pos = 0;
|
|
1587
|
+
/**
|
|
1588
|
+
* Read buffer length.
|
|
1589
|
+
* @type {number}
|
|
1590
|
+
*/
|
|
1591
|
+
this.len = buffer.length;
|
|
1592
|
+
}
|
|
1593
|
+
var create_array = typeof Uint8Array !== "undefined" ? function create_typed_array(buffer) {
|
|
1594
|
+
if (buffer instanceof Uint8Array || Array.isArray(buffer)) return new Reader(buffer);
|
|
1595
|
+
throw Error("illegal buffer");
|
|
1596
|
+
} : function create_array(buffer) {
|
|
1597
|
+
if (Array.isArray(buffer)) return new Reader(buffer);
|
|
1598
|
+
throw Error("illegal buffer");
|
|
1599
|
+
};
|
|
1600
|
+
var create = function create() {
|
|
1601
|
+
return util.Buffer ? function create_buffer_setup(buffer) {
|
|
1602
|
+
return (Reader.create = function create_buffer(buffer) {
|
|
1603
|
+
return util.Buffer.isBuffer(buffer) ? new BufferReader(buffer) : create_array(buffer);
|
|
1604
|
+
})(buffer);
|
|
1605
|
+
} : create_array;
|
|
1606
|
+
};
|
|
1607
|
+
/**
|
|
1608
|
+
* Creates a new reader using the specified buffer.
|
|
1609
|
+
* @function
|
|
1610
|
+
* @param {Uint8Array|Buffer} buffer Buffer to read from
|
|
1611
|
+
* @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}
|
|
1612
|
+
* @throws {Error} If `buffer` is not a valid buffer
|
|
1613
|
+
*/
|
|
1614
|
+
Reader.create = create();
|
|
1615
|
+
Reader.prototype._slice = util.Array.prototype.subarray || util.Array.prototype.slice;
|
|
1616
|
+
/**
|
|
1617
|
+
* Reads a varint as an unsigned 32 bit value.
|
|
1618
|
+
* @function
|
|
1619
|
+
* @returns {number} Value read
|
|
1620
|
+
*/
|
|
1621
|
+
Reader.prototype.uint32 = (function read_uint32_setup() {
|
|
1622
|
+
var value = 4294967295;
|
|
1623
|
+
return function read_uint32() {
|
|
1624
|
+
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1625
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1626
|
+
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
|
|
1627
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1628
|
+
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
|
|
1629
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1630
|
+
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
|
|
1631
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1632
|
+
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
|
|
1633
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1634
|
+
/* istanbul ignore if */
|
|
1635
|
+
if ((this.pos += 5) > this.len) {
|
|
1636
|
+
this.pos = this.len;
|
|
1637
|
+
throw indexOutOfRange(this, 10);
|
|
1638
|
+
}
|
|
1639
|
+
return value;
|
|
1640
|
+
};
|
|
1641
|
+
})();
|
|
1642
|
+
/**
|
|
1643
|
+
* Reads a varint as a signed 32 bit value.
|
|
1644
|
+
* @returns {number} Value read
|
|
1645
|
+
*/
|
|
1646
|
+
Reader.prototype.int32 = function read_int32() {
|
|
1647
|
+
return this.uint32() | 0;
|
|
1648
|
+
};
|
|
1649
|
+
/**
|
|
1650
|
+
* Reads a zig-zag encoded varint as a signed 32 bit value.
|
|
1651
|
+
* @returns {number} Value read
|
|
1652
|
+
*/
|
|
1653
|
+
Reader.prototype.sint32 = function read_sint32() {
|
|
1654
|
+
var value = this.uint32();
|
|
1655
|
+
return value >>> 1 ^ -(value & 1) | 0;
|
|
1656
|
+
};
|
|
1657
|
+
function readLongVarint() {
|
|
1658
|
+
var bits = new LongBits(0, 0);
|
|
1659
|
+
var i = 0;
|
|
1660
|
+
if (this.len - this.pos > 4) {
|
|
1661
|
+
for (; i < 4; ++i) {
|
|
1662
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1663
|
+
if (this.buf[this.pos++] < 128) return bits;
|
|
1664
|
+
}
|
|
1665
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
|
|
1666
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
|
|
1667
|
+
if (this.buf[this.pos++] < 128) return bits;
|
|
1668
|
+
i = 0;
|
|
1669
|
+
} else {
|
|
1670
|
+
for (; i < 3; ++i) {
|
|
1671
|
+
/* istanbul ignore if */
|
|
1672
|
+
if (this.pos >= this.len) throw indexOutOfRange(this);
|
|
1673
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1674
|
+
if (this.buf[this.pos++] < 128) return bits;
|
|
1675
|
+
}
|
|
1676
|
+
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
1677
|
+
return bits;
|
|
1678
|
+
}
|
|
1679
|
+
if (this.len - this.pos > 4) for (; i < 5; ++i) {
|
|
1680
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
1681
|
+
if (this.buf[this.pos++] < 128) return bits;
|
|
1682
|
+
}
|
|
1683
|
+
else for (; i < 5; ++i) {
|
|
1684
|
+
/* istanbul ignore if */
|
|
1685
|
+
if (this.pos >= this.len) throw indexOutOfRange(this);
|
|
1686
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
1687
|
+
if (this.buf[this.pos++] < 128) return bits;
|
|
1688
|
+
}
|
|
1689
|
+
/* istanbul ignore next */
|
|
1690
|
+
throw Error("invalid varint encoding");
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Reads a varint as a signed 64 bit value.
|
|
1694
|
+
* @name Reader#int64
|
|
1695
|
+
* @function
|
|
1696
|
+
* @returns {Long} Value read
|
|
1697
|
+
*/
|
|
1698
|
+
/**
|
|
1699
|
+
* Reads a varint as an unsigned 64 bit value.
|
|
1700
|
+
* @name Reader#uint64
|
|
1701
|
+
* @function
|
|
1702
|
+
* @returns {Long} Value read
|
|
1703
|
+
*/
|
|
1704
|
+
/**
|
|
1705
|
+
* Reads a zig-zag encoded varint as a signed 64 bit value.
|
|
1706
|
+
* @name Reader#sint64
|
|
1707
|
+
* @function
|
|
1708
|
+
* @returns {Long} Value read
|
|
1709
|
+
*/
|
|
1710
|
+
/**
|
|
1711
|
+
* Reads a varint as a boolean.
|
|
1712
|
+
* @returns {boolean} Value read
|
|
1713
|
+
*/
|
|
1714
|
+
Reader.prototype.bool = function read_bool() {
|
|
1715
|
+
return this.uint32() !== 0;
|
|
1716
|
+
};
|
|
1717
|
+
function readFixed32_end(buf, end) {
|
|
1718
|
+
return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Reads fixed 32 bits as an unsigned 32 bit integer.
|
|
1722
|
+
* @returns {number} Value read
|
|
1723
|
+
*/
|
|
1724
|
+
Reader.prototype.fixed32 = function read_fixed32() {
|
|
1725
|
+
/* istanbul ignore if */
|
|
1726
|
+
if (this.pos + 4 > this.len) throw indexOutOfRange(this, 4);
|
|
1727
|
+
return readFixed32_end(this.buf, this.pos += 4);
|
|
1728
|
+
};
|
|
1729
|
+
/**
|
|
1730
|
+
* Reads fixed 32 bits as a signed 32 bit integer.
|
|
1731
|
+
* @returns {number} Value read
|
|
1732
|
+
*/
|
|
1733
|
+
Reader.prototype.sfixed32 = function read_sfixed32() {
|
|
1734
|
+
/* istanbul ignore if */
|
|
1735
|
+
if (this.pos + 4 > this.len) throw indexOutOfRange(this, 4);
|
|
1736
|
+
return readFixed32_end(this.buf, this.pos += 4) | 0;
|
|
1737
|
+
};
|
|
1738
|
+
function readFixed64() {
|
|
1739
|
+
/* istanbul ignore if */
|
|
1740
|
+
if (this.pos + 8 > this.len) throw indexOutOfRange(this, 8);
|
|
1741
|
+
return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* Reads fixed 64 bits.
|
|
1745
|
+
* @name Reader#fixed64
|
|
1746
|
+
* @function
|
|
1747
|
+
* @returns {Long} Value read
|
|
1748
|
+
*/
|
|
1749
|
+
/**
|
|
1750
|
+
* Reads zig-zag encoded fixed 64 bits.
|
|
1751
|
+
* @name Reader#sfixed64
|
|
1752
|
+
* @function
|
|
1753
|
+
* @returns {Long} Value read
|
|
1754
|
+
*/
|
|
1755
|
+
/**
|
|
1756
|
+
* Reads a float (32 bit) as a number.
|
|
1757
|
+
* @function
|
|
1758
|
+
* @returns {number} Value read
|
|
1759
|
+
*/
|
|
1760
|
+
Reader.prototype.float = function read_float() {
|
|
1761
|
+
/* istanbul ignore if */
|
|
1762
|
+
if (this.pos + 4 > this.len) throw indexOutOfRange(this, 4);
|
|
1763
|
+
var value = util.float.readFloatLE(this.buf, this.pos);
|
|
1764
|
+
this.pos += 4;
|
|
1765
|
+
return value;
|
|
1766
|
+
};
|
|
1767
|
+
/**
|
|
1768
|
+
* Reads a double (64 bit float) as a number.
|
|
1769
|
+
* @function
|
|
1770
|
+
* @returns {number} Value read
|
|
1771
|
+
*/
|
|
1772
|
+
Reader.prototype.double = function read_double() {
|
|
1773
|
+
/* istanbul ignore if */
|
|
1774
|
+
if (this.pos + 8 > this.len) throw indexOutOfRange(this, 4);
|
|
1775
|
+
var value = util.float.readDoubleLE(this.buf, this.pos);
|
|
1776
|
+
this.pos += 8;
|
|
1777
|
+
return value;
|
|
1778
|
+
};
|
|
1779
|
+
/**
|
|
1780
|
+
* Reads a sequence of bytes preceeded by its length as a varint.
|
|
1781
|
+
* @returns {Uint8Array} Value read
|
|
1782
|
+
*/
|
|
1783
|
+
Reader.prototype.bytes = function read_bytes() {
|
|
1784
|
+
var length = this.uint32(), start = this.pos, end = this.pos + length;
|
|
1785
|
+
/* istanbul ignore if */
|
|
1786
|
+
if (end > this.len) throw indexOutOfRange(this, length);
|
|
1787
|
+
this.pos += length;
|
|
1788
|
+
if (Array.isArray(this.buf)) return this.buf.slice(start, end);
|
|
1789
|
+
if (start === end) {
|
|
1790
|
+
var nativeBuffer = util.Buffer;
|
|
1791
|
+
return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
|
|
1792
|
+
}
|
|
1793
|
+
return this._slice.call(this.buf, start, end);
|
|
1794
|
+
};
|
|
1795
|
+
/**
|
|
1796
|
+
* Reads a string preceeded by its byte length as a varint.
|
|
1797
|
+
* @returns {string} Value read
|
|
1798
|
+
*/
|
|
1799
|
+
Reader.prototype.string = function read_string() {
|
|
1800
|
+
var bytes = this.bytes();
|
|
1801
|
+
return utf8.read(bytes, 0, bytes.length);
|
|
1802
|
+
};
|
|
1803
|
+
/**
|
|
1804
|
+
* Skips the specified number of bytes if specified, otherwise skips a varint.
|
|
1805
|
+
* @param {number} [length] Length if known, otherwise a varint is assumed
|
|
1806
|
+
* @returns {Reader} `this`
|
|
1807
|
+
*/
|
|
1808
|
+
Reader.prototype.skip = function skip(length) {
|
|
1809
|
+
if (typeof length === "number") {
|
|
1810
|
+
/* istanbul ignore if */
|
|
1811
|
+
if (this.pos + length > this.len) throw indexOutOfRange(this, length);
|
|
1812
|
+
this.pos += length;
|
|
1813
|
+
} else do
|
|
1814
|
+
/* istanbul ignore if */
|
|
1815
|
+
if (this.pos >= this.len) throw indexOutOfRange(this);
|
|
1816
|
+
while (this.buf[this.pos++] & 128);
|
|
1817
|
+
return this;
|
|
1818
|
+
};
|
|
1819
|
+
/**
|
|
1820
|
+
* Skips the next element of the specified wire type.
|
|
1821
|
+
* @param {number} wireType Wire type received
|
|
1822
|
+
* @returns {Reader} `this`
|
|
1823
|
+
*/
|
|
1824
|
+
Reader.prototype.skipType = function(wireType) {
|
|
1825
|
+
switch (wireType) {
|
|
1826
|
+
case 0:
|
|
1827
|
+
this.skip();
|
|
1828
|
+
break;
|
|
1829
|
+
case 1:
|
|
1830
|
+
this.skip(8);
|
|
1831
|
+
break;
|
|
1832
|
+
case 2:
|
|
1833
|
+
this.skip(this.uint32());
|
|
1834
|
+
break;
|
|
1835
|
+
case 3:
|
|
1836
|
+
while ((wireType = this.uint32() & 7) !== 4) this.skipType(wireType);
|
|
1837
|
+
break;
|
|
1838
|
+
case 5:
|
|
1839
|
+
this.skip(4);
|
|
1840
|
+
break;
|
|
1841
|
+
default: throw Error("invalid wire type " + wireType + " at offset " + this.pos);
|
|
1842
|
+
}
|
|
1843
|
+
return this;
|
|
1844
|
+
};
|
|
1845
|
+
Reader._configure = function(BufferReader_) {
|
|
1846
|
+
BufferReader = BufferReader_;
|
|
1847
|
+
Reader.create = create();
|
|
1848
|
+
BufferReader._configure();
|
|
1849
|
+
var fn = util.Long ? "toLong" : "toNumber";
|
|
1850
|
+
util.merge(Reader.prototype, {
|
|
1851
|
+
int64: function read_int64() {
|
|
1852
|
+
return readLongVarint.call(this)[fn](false);
|
|
1853
|
+
},
|
|
1854
|
+
uint64: function read_uint64() {
|
|
1855
|
+
return readLongVarint.call(this)[fn](true);
|
|
1856
|
+
},
|
|
1857
|
+
sint64: function read_sint64() {
|
|
1858
|
+
return readLongVarint.call(this).zzDecode()[fn](false);
|
|
1859
|
+
},
|
|
1860
|
+
fixed64: function read_fixed64() {
|
|
1861
|
+
return readFixed64.call(this)[fn](true);
|
|
1862
|
+
},
|
|
1863
|
+
sfixed64: function read_sfixed64() {
|
|
1864
|
+
return readFixed64.call(this)[fn](false);
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1867
|
+
};
|
|
1868
|
+
}));
|
|
1869
|
+
//#endregion
|
|
1870
|
+
//#region node_modules/protobufjs/src/reader_buffer.js
|
|
1871
|
+
var require_reader_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1872
|
+
module.exports = BufferReader;
|
|
1873
|
+
var Reader = require_reader();
|
|
1874
|
+
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
1875
|
+
var util = require_minimal$1();
|
|
1876
|
+
/**
|
|
1877
|
+
* Constructs a new buffer reader instance.
|
|
1878
|
+
* @classdesc Wire format reader using node buffers.
|
|
1879
|
+
* @extends Reader
|
|
1880
|
+
* @constructor
|
|
1881
|
+
* @param {Buffer} buffer Buffer to read from
|
|
1882
|
+
*/
|
|
1883
|
+
function BufferReader(buffer) {
|
|
1884
|
+
Reader.call(this, buffer);
|
|
1885
|
+
/**
|
|
1886
|
+
* Read buffer.
|
|
1887
|
+
* @name BufferReader#buf
|
|
1888
|
+
* @type {Buffer}
|
|
1889
|
+
*/
|
|
1890
|
+
}
|
|
1891
|
+
BufferReader._configure = function() {
|
|
1892
|
+
/* istanbul ignore else */
|
|
1893
|
+
if (util.Buffer) BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
1894
|
+
};
|
|
1895
|
+
/**
|
|
1896
|
+
* @override
|
|
1897
|
+
*/
|
|
1898
|
+
BufferReader.prototype.string = function read_string_buffer() {
|
|
1899
|
+
var len = this.uint32();
|
|
1900
|
+
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len));
|
|
1901
|
+
};
|
|
1902
|
+
/**
|
|
1903
|
+
* Reads a sequence of bytes preceeded by its length as a varint.
|
|
1904
|
+
* @name BufferReader#bytes
|
|
1905
|
+
* @function
|
|
1906
|
+
* @returns {Buffer} Value read
|
|
1907
|
+
*/
|
|
1908
|
+
BufferReader._configure();
|
|
1909
|
+
}));
|
|
1910
|
+
//#endregion
|
|
1911
|
+
//#region node_modules/protobufjs/src/rpc/service.js
|
|
1912
|
+
var require_service = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1913
|
+
module.exports = Service;
|
|
1914
|
+
var util = require_minimal$1();
|
|
1915
|
+
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
1916
|
+
/**
|
|
1917
|
+
* A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.
|
|
1918
|
+
*
|
|
1919
|
+
* Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.
|
|
1920
|
+
* @typedef rpc.ServiceMethodCallback
|
|
1921
|
+
* @template TRes extends Message<TRes>
|
|
1922
|
+
* @type {function}
|
|
1923
|
+
* @param {Error|null} error Error, if any
|
|
1924
|
+
* @param {TRes} [response] Response message
|
|
1925
|
+
* @returns {undefined}
|
|
1926
|
+
*/
|
|
1927
|
+
/**
|
|
1928
|
+
* A service method part of a {@link rpc.Service} as created by {@link Service.create}.
|
|
1929
|
+
* @typedef rpc.ServiceMethod
|
|
1930
|
+
* @template TReq extends Message<TReq>
|
|
1931
|
+
* @template TRes extends Message<TRes>
|
|
1932
|
+
* @type {function}
|
|
1933
|
+
* @param {TReq|Properties<TReq>} request Request message or plain object
|
|
1934
|
+
* @param {rpc.ServiceMethodCallback<TRes>} [callback] Node-style callback called with the error, if any, and the response message
|
|
1935
|
+
* @returns {Promise<Message<TRes>>} Promise if `callback` has been omitted, otherwise `undefined`
|
|
1936
|
+
*/
|
|
1937
|
+
/**
|
|
1938
|
+
* Constructs a new RPC service instance.
|
|
1939
|
+
* @classdesc An RPC service as returned by {@link Service#create}.
|
|
1940
|
+
* @exports rpc.Service
|
|
1941
|
+
* @extends util.EventEmitter
|
|
1942
|
+
* @constructor
|
|
1943
|
+
* @param {RPCImpl} rpcImpl RPC implementation
|
|
1944
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
1945
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
1946
|
+
*/
|
|
1947
|
+
function Service(rpcImpl, requestDelimited, responseDelimited) {
|
|
1948
|
+
if (typeof rpcImpl !== "function") throw TypeError("rpcImpl must be a function");
|
|
1949
|
+
util.EventEmitter.call(this);
|
|
1950
|
+
/**
|
|
1951
|
+
* RPC implementation. Becomes `null` once the service is ended.
|
|
1952
|
+
* @type {RPCImpl|null}
|
|
1953
|
+
*/
|
|
1954
|
+
this.rpcImpl = rpcImpl;
|
|
1955
|
+
/**
|
|
1956
|
+
* Whether requests are length-delimited.
|
|
1957
|
+
* @type {boolean}
|
|
1958
|
+
*/
|
|
1959
|
+
this.requestDelimited = Boolean(requestDelimited);
|
|
1960
|
+
/**
|
|
1961
|
+
* Whether responses are length-delimited.
|
|
1962
|
+
* @type {boolean}
|
|
1963
|
+
*/
|
|
1964
|
+
this.responseDelimited = Boolean(responseDelimited);
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.
|
|
1968
|
+
* @param {Method|rpc.ServiceMethod<TReq,TRes>} method Reflected or static method
|
|
1969
|
+
* @param {Constructor<TReq>} requestCtor Request constructor
|
|
1970
|
+
* @param {Constructor<TRes>} responseCtor Response constructor
|
|
1971
|
+
* @param {TReq|Properties<TReq>} request Request message or plain object
|
|
1972
|
+
* @param {rpc.ServiceMethodCallback<TRes>} callback Service callback
|
|
1973
|
+
* @returns {undefined}
|
|
1974
|
+
* @template TReq extends Message<TReq>
|
|
1975
|
+
* @template TRes extends Message<TRes>
|
|
1976
|
+
*/
|
|
1977
|
+
Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {
|
|
1978
|
+
if (!request) throw TypeError("request must be specified");
|
|
1979
|
+
var self = this;
|
|
1980
|
+
if (!callback) return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request);
|
|
1981
|
+
if (!self.rpcImpl) {
|
|
1982
|
+
setTimeout(function() {
|
|
1983
|
+
callback(Error("already ended"));
|
|
1984
|
+
}, 0);
|
|
1985
|
+
return;
|
|
1986
|
+
}
|
|
1987
|
+
try {
|
|
1988
|
+
return self.rpcImpl(method, requestCtor[self.requestDelimited ? "encodeDelimited" : "encode"](request).finish(), function rpcCallback(err, response) {
|
|
1989
|
+
if (err) {
|
|
1990
|
+
self.emit("error", err, method);
|
|
1991
|
+
return callback(err);
|
|
1992
|
+
}
|
|
1993
|
+
if (response === null) {
|
|
1994
|
+
self.end(true);
|
|
1995
|
+
return;
|
|
1996
|
+
}
|
|
1997
|
+
if (!(response instanceof responseCtor)) try {
|
|
1998
|
+
response = responseCtor[self.responseDelimited ? "decodeDelimited" : "decode"](response);
|
|
1999
|
+
} catch (err) {
|
|
2000
|
+
self.emit("error", err, method);
|
|
2001
|
+
return callback(err);
|
|
2002
|
+
}
|
|
2003
|
+
self.emit("data", response, method);
|
|
2004
|
+
return callback(null, response);
|
|
2005
|
+
});
|
|
2006
|
+
} catch (err) {
|
|
2007
|
+
self.emit("error", err, method);
|
|
2008
|
+
setTimeout(function() {
|
|
2009
|
+
callback(err);
|
|
2010
|
+
}, 0);
|
|
2011
|
+
return;
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
/**
|
|
2015
|
+
* Ends this service and emits the `end` event.
|
|
2016
|
+
* @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation.
|
|
2017
|
+
* @returns {rpc.Service} `this`
|
|
2018
|
+
*/
|
|
2019
|
+
Service.prototype.end = function end(endedByRPC) {
|
|
2020
|
+
if (this.rpcImpl) {
|
|
2021
|
+
if (!endedByRPC) this.rpcImpl(null, null, null);
|
|
2022
|
+
this.rpcImpl = null;
|
|
2023
|
+
this.emit("end").off();
|
|
2024
|
+
}
|
|
2025
|
+
return this;
|
|
2026
|
+
};
|
|
2027
|
+
}));
|
|
2028
|
+
//#endregion
|
|
2029
|
+
//#region node_modules/protobufjs/src/rpc.js
|
|
2030
|
+
var require_rpc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2031
|
+
/**
|
|
2032
|
+
* Streaming RPC helpers.
|
|
2033
|
+
* @namespace
|
|
2034
|
+
*/
|
|
2035
|
+
var rpc = exports;
|
|
2036
|
+
/**
|
|
2037
|
+
* RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.
|
|
2038
|
+
* @typedef RPCImpl
|
|
2039
|
+
* @type {function}
|
|
2040
|
+
* @param {Method|rpc.ServiceMethod<Message<{}>,Message<{}>>} method Reflected or static method being called
|
|
2041
|
+
* @param {Uint8Array} requestData Request data
|
|
2042
|
+
* @param {RPCImplCallback} callback Callback function
|
|
2043
|
+
* @returns {undefined}
|
|
2044
|
+
* @example
|
|
2045
|
+
* function rpcImpl(method, requestData, callback) {
|
|
2046
|
+
* if (protobuf.util.lcFirst(method.name) !== "myMethod") // compatible with static code
|
|
2047
|
+
* throw Error("no such method");
|
|
2048
|
+
* asynchronouslyObtainAResponse(requestData, function(err, responseData) {
|
|
2049
|
+
* callback(err, responseData);
|
|
2050
|
+
* });
|
|
2051
|
+
* }
|
|
2052
|
+
*/
|
|
2053
|
+
/**
|
|
2054
|
+
* Node-style callback as used by {@link RPCImpl}.
|
|
2055
|
+
* @typedef RPCImplCallback
|
|
2056
|
+
* @type {function}
|
|
2057
|
+
* @param {Error|null} error Error, if any, otherwise `null`
|
|
2058
|
+
* @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error
|
|
2059
|
+
* @returns {undefined}
|
|
2060
|
+
*/
|
|
2061
|
+
rpc.Service = require_service();
|
|
2062
|
+
}));
|
|
2063
|
+
//#endregion
|
|
2064
|
+
//#region node_modules/protobufjs/src/roots.js
|
|
2065
|
+
var require_roots = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2066
|
+
module.exports = {};
|
|
2067
|
+
}));
|
|
2068
|
+
/**
|
|
2069
|
+
* Named roots.
|
|
2070
|
+
* This is where pbjs stores generated structures (the option `-r, --root` specifies a name).
|
|
2071
|
+
* Can also be used manually to make roots available across modules.
|
|
2072
|
+
* @name roots
|
|
2073
|
+
* @type {Object.<string,Root>}
|
|
2074
|
+
* @example
|
|
2075
|
+
* // pbjs -r myroot -o compiled.js ...
|
|
2076
|
+
*
|
|
2077
|
+
* // in another module:
|
|
2078
|
+
* require("./compiled.js");
|
|
2079
|
+
*
|
|
2080
|
+
* // in any subsequent module:
|
|
2081
|
+
* var root = protobuf.roots["myroot"];
|
|
2082
|
+
*/
|
|
2083
|
+
//#endregion
|
|
2084
|
+
//#region node_modules/protobufjs/src/index-minimal.js
|
|
2085
|
+
var require_index_minimal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2086
|
+
var protobuf = exports;
|
|
2087
|
+
/**
|
|
2088
|
+
* Build type, one of `"full"`, `"light"` or `"minimal"`.
|
|
2089
|
+
* @name build
|
|
2090
|
+
* @type {string}
|
|
2091
|
+
* @const
|
|
2092
|
+
*/
|
|
2093
|
+
protobuf.build = "minimal";
|
|
2094
|
+
protobuf.Writer = require_writer();
|
|
2095
|
+
protobuf.BufferWriter = require_writer_buffer();
|
|
2096
|
+
protobuf.Reader = require_reader();
|
|
2097
|
+
protobuf.BufferReader = require_reader_buffer();
|
|
2098
|
+
protobuf.util = require_minimal$1();
|
|
2099
|
+
protobuf.rpc = require_rpc();
|
|
2100
|
+
protobuf.roots = require_roots();
|
|
2101
|
+
protobuf.configure = configure;
|
|
2102
|
+
/* istanbul ignore next */
|
|
2103
|
+
/**
|
|
2104
|
+
* Reconfigures the library according to the environment.
|
|
2105
|
+
* @returns {undefined}
|
|
2106
|
+
*/
|
|
2107
|
+
function configure() {
|
|
2108
|
+
protobuf.util._configure();
|
|
2109
|
+
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
2110
|
+
protobuf.Reader._configure(protobuf.BufferReader);
|
|
2111
|
+
}
|
|
2112
|
+
configure();
|
|
2113
|
+
}));
|
|
2114
|
+
//#endregion
|
|
2115
|
+
//#region node_modules/protobufjs/minimal.js
|
|
2116
|
+
var require_minimal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2117
|
+
module.exports = require_index_minimal();
|
|
2118
|
+
}));
|
|
2119
|
+
//#endregion
|
|
2120
|
+
export { require_float as a, require_aspromise as c, require_inquire as i, require_pool as n, require_eventemitter as o, require_utf8 as r, require_base64 as s, require_minimal as t };
|