better-dsh 0.2.4 → 0.2.5-b

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.
Files changed (1262) hide show
  1. package/THIRD_PARTY_NOTICES.md +49 -0
  2. package/cordis.patch.yml +58 -16
  3. package/docs/10_plans/2026-09-23-remote-execution-framework.md +236 -0
  4. package/docs/10_plans/2026-09-23-remote-framework-impl.md +2083 -0
  5. package/docs/10_plans/2026-09-26-lsp-ast-reminder.md +64 -0
  6. package/docs/20_specs/agent/spec.md +54 -0
  7. package/docs/20_specs/ast/spec.md +34 -0
  8. package/docs/20_specs/compaction-recall/spec.md +46 -0
  9. package/docs/20_specs/ctx/spec.md +107 -0
  10. package/docs/20_specs/dsh/spec.md +47 -0
  11. package/docs/20_specs/dvc/spec.md +87 -0
  12. package/docs/20_specs/escalation-guidance/spec.md +44 -0
  13. package/docs/20_specs/fs-scheme-resolution/spec.md +37 -0
  14. package/docs/20_specs/hash-edit/spec.md +41 -0
  15. package/docs/20_specs/http-read/spec.md +73 -0
  16. package/docs/20_specs/kernel-provisioning/spec.md +53 -0
  17. package/docs/20_specs/lsp/spec.md +121 -0
  18. package/docs/20_specs/mobile-layout/spec.md +108 -0
  19. package/docs/20_specs/model-failover/spec.md +20 -0
  20. package/docs/20_specs/plugins-page-components/spec.md +79 -0
  21. package/docs/20_specs/preact-ui-shell/spec.md +22 -0
  22. package/docs/20_specs/repl-dispatch-resilience/spec.md +21 -0
  23. package/docs/20_specs/skill/spec.md +58 -0
  24. package/docs/20_specs/tool-surface/spec.md +222 -0
  25. package/docs/20_specs/url-schema/spec.md +148 -0
  26. package/docs/20_specs/web-trust-fence/spec.md +43 -0
  27. package/docs/50_test-reports/2026-09-17-plugins/351/241/265/345/205/255/347/273/204/344/273/266/346/213/206/345/210/206/345/256/236/346/265/213/346/212/245/345/221/212.md +76 -0
  28. package/docs/50_test-reports/2026-09-22-4988/345/217/214/345/271/263/351/235/242/345/220/257/345/212/250/344/277/256/345/244/215/345/256/236/346/265/213/346/212/245/345/221/212.md +76 -0
  29. package/docs/50_test-reports/2026-09-22-better-dsh/347/273/204/344/273/266/347/203/255/346/217/222/346/213/224/344/270/216/344/276/235/350/265/226/347/272/247/350/201/224/345/256/236/346/265/213/346/212/245/345/221/212.md +134 -0
  30. package/docs/50_test-reports/2026-09-23-remote-framework/345/256/236/346/265/213/346/212/245/345/221/212.md +92 -0
  31. package/docs/50_test-reports/2026-09-23-remote-framework/347/254/254/344/270/200/344/272/272/347/247/260/345/244/215/346/265/213/346/212/245/345/221/212.md +125 -0
  32. package/docs/50_test-reports/2026-09-23-ssh/345/267/245/345/205/267assisted-pty/344/274/232/350/257/235framing/345/256/236/346/265/213/346/212/245/345/221/212.md +207 -0
  33. package/docs/50_test-reports/2026-09-24-v0.1.7-rc.1/345/257/271/351/275/220/350/275/256-compaction/344/270/216failover/350/256/276/347/275/256/351/235/242/344/277/256/345/244/215/345/256/236/346/265/213/346/212/245/345/221/212.md +65 -0
  34. package/docs/50_test-reports/2026-09-27-lsp-ast-reminder-4999/345/256/236/346/265/213/346/212/245/345/221/212.md +53 -0
  35. package/docs/50_test-reports/2026-09-28-ctx-scheme/351/225/277/344/274/232/350/257/235utility/345/256/236/346/265/213/346/212/245/345/221/212.md +155 -0
  36. package/docs/50_test-reports/2026-10-01-v0.2.4d-web-password-gate/345/256/236/346/265/213/346/212/245/345/221/212.md +105 -0
  37. package/docs/50_test-reports/2026-10-02-better-dsh-schemastery/344/276/235/350/265/226/345/243/260/346/230/216/344/277/256/345/244/215/345/256/236/346/265/213/346/212/245/345/221/212.md +62 -0
  38. package/docs/50_test-reports/2026-10-02-ctx-navigation/345/256/236/346/265/213/346/212/245/345/221/212.md +137 -0
  39. package/docs/50_test-reports/2026-10-02-v0.2.0-rc.2/345/257/271/351/275/220/350/275/256/345/256/236/346/265/213/346/212/245/345/221/212.md +38 -0
  40. package/docs/50_test-reports/2026-10-03-better-dsh-tool-surface-repl-dvc-browser-ast-lsp-4999/345/256/236/346/265/213/346/212/245/345/221/212.md +185 -0
  41. package/docs/50_test-reports/2026-10-03-physical-import/344/270/216llm-completion-ast/347/233/270/345/257/271/350/267/257/345/276/204/344/277/256/345/244/215/345/256/236/346/265/213/346/212/245/345/221/212.md +101 -0
  42. package/docs/50_test-reports/2026-10-03-schemastery-cosmokit/346/272/220/347/240/201/345/206/205/350/201/224/345/256/236/346/265/213/346/212/245/345/221/212.md +63 -0
  43. package/docs/50_test-reports/2026-10-03-zero-npm-runtime-deps/345/256/236/346/265/213/346/212/245/345/221/212.md +82 -0
  44. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/MdxPage-CTY7atqe.js +11 -0
  45. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/extract_omp.mjs +42 -0
  46. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/fetch_pi.py +52 -0
  47. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/jsx-runtime-BHwPObl3.js +13 -0
  48. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/omp_extracted.json +1 -0
  49. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/omp_pages.txt +35 -0
  50. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/package.json +1 -0
  51. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/pi_convert.py +49 -0
  52. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/pi_pages.txt +30 -0
  53. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/serialize_omp.py +250 -0
  54. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/README.md +80 -0
  55. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/Overview.md +88 -0
  56. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/acp.md +151 -0
  57. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/advisor.md +185 -0
  58. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/agents-and-roles.md +168 -0
  59. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/approvals.md +200 -0
  60. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/cli.md +381 -0
  61. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/code-intelligence.md +225 -0
  62. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/collab.md +207 -0
  63. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/commit.md +169 -0
  64. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/compaction.md +195 -0
  65. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/computer.md +224 -0
  66. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/context-files.md +184 -0
  67. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/custom-models.md +284 -0
  68. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/custom-tools.md +248 -0
  69. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/debugging.md +254 -0
  70. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/editing.md +157 -0
  71. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/env.md +552 -0
  72. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/extension-authoring.md +378 -0
  73. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/files.md +144 -0
  74. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/github.md +175 -0
  75. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/goal.md +156 -0
  76. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/handoff.md +139 -0
  77. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/hooks.md +257 -0
  78. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/keybindings.md +204 -0
  79. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/magic-keywords.md +135 -0
  80. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/marketplace.md +269 -0
  81. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/mcp-authoring.md +243 -0
  82. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/mcp.md +260 -0
  83. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/memory.md +306 -0
  84. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/modes.md +214 -0
  85. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/pages.txt +56 -0
  86. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/plan.md +126 -0
  87. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/plugins.md +287 -0
  88. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/prewalk.md +122 -0
  89. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/prompt-templates.md +149 -0
  90. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/providers.md +229 -0
  91. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/quickstart.md +117 -0
  92. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/review.md +248 -0
  93. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/roles.md +247 -0
  94. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/rpc.md +523 -0
  95. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/sdk.md +260 -0
  96. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/secrets.md +199 -0
  97. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/security.md +260 -0
  98. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/session-format.md +254 -0
  99. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/session-tree.md +135 -0
  100. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/sessions.md +223 -0
  101. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/settings.md +290 -0
  102. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/skills.md +187 -0
  103. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/slash.md +328 -0
  104. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/subagent-authoring.md +165 -0
  105. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/subagents.md +149 -0
  106. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/themes.md +230 -0
  107. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/tools.md +120 -0
  108. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/ttsr.md +242 -0
  109. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/using.md +214 -0
  110. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/vibe.md +187 -0
  111. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/web.md +233 -0
  112. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/compaction.md +427 -0
  113. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/containerization.md +162 -0
  114. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/custom-provider.md +782 -0
  115. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/development.md +96 -0
  116. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/environment-variables.md +104 -0
  117. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/extensions.md +3058 -0
  118. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/index.md +89 -0
  119. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/json.md +105 -0
  120. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/keybindings.md +244 -0
  121. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/llama-cpp.md +106 -0
  122. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/models.md +587 -0
  123. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/packages.md +234 -0
  124. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/pages.txt +30 -0
  125. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/prompt-templates.md +101 -0
  126. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/providers.md +327 -0
  127. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/quickstart.md +172 -0
  128. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/rpc.md +1679 -0
  129. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/sdk.md +1239 -0
  130. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/security.md +64 -0
  131. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/session-format.md +454 -0
  132. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/sessions.md +150 -0
  133. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/settings.md +374 -0
  134. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/shell-aliases.md +18 -0
  135. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/skills.md +241 -0
  136. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/terminal-setup.md +199 -0
  137. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/termux.md +135 -0
  138. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/themes.md +328 -0
  139. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/tmux.md +68 -0
  140. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/tui.md +965 -0
  141. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/usage.md +315 -0
  142. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/windows.md +44 -0
  143. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/SKILL.md +147 -0
  144. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch01-user-guide.md +123 -0
  145. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch02-plugin-basics.md +127 -0
  146. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch03-plugin-framework-practice.md +120 -0
  147. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch04-cordis-fundamentals.md +129 -0
  148. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch05-cordis-api.md +115 -0
  149. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch06-architecture.md +109 -0
  150. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch07-capability-seams.md +97 -0
  151. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch08-internals-pipelines.md +111 -0
  152. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch09-api-gateway.md +106 -0
  153. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch10-config-catalog.md +97 -0
  154. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch11-tool-catalog.md +121 -0
  155. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch12-persistence-catalog.md +109 -0
  156. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch13-subsystems-core-session.md +106 -0
  157. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch14-subsystems-agent-loop.md +111 -0
  158. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch15-subsystems-tool-execution.md +106 -0
  159. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch16-subsystems-session-data.md +132 -0
  160. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch17-subsystems-llm-streaming.md +128 -0
  161. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch18-subsystems-web-ui.md +142 -0
  162. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch19-cookbook.md +149 -0
  163. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch20-development-testing.md +87 -0
  164. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch21-postmortems.md +82 -0
  165. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/chapters/ch22-i18n.md +86 -0
  166. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/cheatsheet.md +67 -0
  167. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/glossary.md +57 -0
  168. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/skill/patterns.md +88 -0
  169. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/AGENTS.md +75 -0
  170. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/agent-lifecycle.md +84 -0
  171. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/agent-lifecycle.zh.md +86 -0
  172. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/api-gateway.md +164 -0
  173. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/api-gateway.zh.md +164 -0
  174. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/architecture.md +150 -0
  175. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/architecture.zh.md +154 -0
  176. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/capability-seams.md +543 -0
  177. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/capability-seams.zh.md +545 -0
  178. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/config-catalog.md +3473 -0
  179. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/config-catalog.zh.md +3474 -0
  180. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-package.md +117 -0
  181. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-package.zh.md +119 -0
  182. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-remote-api.md +197 -0
  183. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-remote-api.zh.md +197 -0
  184. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-settings-card.md +102 -0
  185. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-settings-card.zh.md +102 -0
  186. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-tool.md +101 -0
  187. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-tool.zh.md +103 -0
  188. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-vendored-package.md +59 -0
  189. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-a-vendored-package.zh.md +59 -0
  190. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-an-llm-adapter.md +43 -0
  191. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/adding-an-llm-adapter.zh.md +43 -0
  192. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/extension-cookbook.md +132 -0
  193. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/extension-cookbook.zh.md +136 -0
  194. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/maintaining-dsh-code-review.md +64 -0
  195. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/maintaining-dsh-code-review.zh.md +64 -0
  196. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/responding-to-pr-review-on-a-stack.md +32 -0
  197. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cookbook/responding-to-pr-review-on-a-stack.zh.md +32 -0
  198. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/context.md +364 -0
  199. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/context.zh.md +366 -0
  200. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/events.md +207 -0
  201. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/events.zh.md +209 -0
  202. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/fiber.md +375 -0
  203. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/fiber.zh.md +377 -0
  204. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/inherited.md +39 -0
  205. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/registry.md +152 -0
  206. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/registry.zh.md +154 -0
  207. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/service.md +102 -0
  208. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-api/service.zh.md +104 -0
  209. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-primer.md +45 -0
  210. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-primer.zh.md +51 -0
  211. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/01-first-plugin.md +95 -0
  212. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/01-first-plugin.zh.md +95 -0
  213. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/02-lifecycle-and-effects.md +98 -0
  214. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/02-lifecycle-and-effects.zh.md +98 -0
  215. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/03-services.md +98 -0
  216. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/03-services.zh.md +98 -0
  217. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/04-events.md +144 -0
  218. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/04-events.zh.md +144 -0
  219. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/05-config.md +84 -0
  220. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/05-config.zh.md +84 -0
  221. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/06-composition-and-hmr.md +113 -0
  222. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/06-composition-and-hmr.zh.md +113 -0
  223. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/07-into-the-harness.md +108 -0
  224. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/07-into-the-harness.zh.md +108 -0
  225. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/index.md +60 -0
  226. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/cordis-tutorial/index.zh.md +62 -0
  227. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/deepseek-llm-api-wire-extensions.md +163 -0
  228. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/deepseek-llm-api-wire-extensions.zh.md +163 -0
  229. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/defensive-patterns.md +33 -0
  230. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/defensive-patterns.zh.md +35 -0
  231. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/development.md +167 -0
  232. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/development.zh.md +173 -0
  233. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/event-producer-consumer.md +86 -0
  234. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/event-producer-consumer.zh.md +88 -0
  235. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/glossary.md +45 -0
  236. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/glossary.zh.md +45 -0
  237. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/graph-atlas.md +22 -0
  238. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/graph-atlas.zh.md +24 -0
  239. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/README.md +60 -0
  240. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/README.zh.md +62 -0
  241. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/style-samples.md +87 -0
  242. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/terminology.md +214 -0
  243. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/translation-prompt.md +263 -0
  244. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/translation-rules.md +69 -0
  245. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/i18n/translation-rules.zh.md +69 -0
  246. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/module-graph.md +1411 -0
  247. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/module-graph.zh.md +1413 -0
  248. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/persistence-catalog.md +1075 -0
  249. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/persistence-catalog.zh.md +1077 -0
  250. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0001-acp-default-export-drops-inject.md +113 -0
  251. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0001-acp-default-export-drops-inject.zh.md +113 -0
  252. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0002-js-expression-disabled-filesystem-tools.md +47 -0
  253. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0002-js-expression-disabled-filesystem-tools.zh.md +47 -0
  254. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0003-web-agent-gui-feedback-loop.md +53 -0
  255. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0003-web-agent-gui-feedback-loop.zh.md +53 -0
  256. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.md +55 -0
  257. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/0004-landlock-partial-notice-misclassified-child-failures.zh.md +55 -0
  258. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/README.md +18 -0
  259. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/postmortem/README.zh.md +18 -0
  260. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/rescope.md +53 -0
  261. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/rescope.zh.md +53 -0
  262. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/README.md +61 -0
  263. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/README.zh.md +61 -0
  264. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/agent-team.md +207 -0
  265. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/agent-team.zh.md +207 -0
  266. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/approval.md +170 -0
  267. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/approval.zh.md +170 -0
  268. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/attachment.md +351 -0
  269. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/attachment.zh.md +351 -0
  270. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/client-modules.md +168 -0
  271. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/client-modules.zh.md +168 -0
  272. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/code-runtime.md +195 -0
  273. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/code-runtime.zh.md +195 -0
  274. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/commands.md +219 -0
  275. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/commands.zh.md +219 -0
  276. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/compaction.md +238 -0
  277. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/compaction.zh.md +238 -0
  278. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/conversation.md +258 -0
  279. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/conversation.zh.md +258 -0
  280. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/core.md +1209 -0
  281. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/core.zh.md +1219 -0
  282. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/credentials.md +329 -0
  283. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/credentials.zh.md +329 -0
  284. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/extensions.md +382 -0
  285. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/extensions.zh.md +382 -0
  286. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/feedback.md +266 -0
  287. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/feedback.zh.md +266 -0
  288. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/filesystem.md +505 -0
  289. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/filesystem.zh.md +505 -0
  290. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/goal.md +277 -0
  291. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/goal.zh.md +277 -0
  292. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/invariants.md +88 -0
  293. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/invariants.zh.md +88 -0
  294. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/jobs.md +290 -0
  295. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/jobs.zh.md +290 -0
  296. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/llm-streaming.md +1080 -0
  297. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/llm-streaming.zh.md +1086 -0
  298. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/lsp.md +202 -0
  299. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/lsp.zh.md +202 -0
  300. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/permission-presets.md +131 -0
  301. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/permission-presets.zh.md +131 -0
  302. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/persistence.md +395 -0
  303. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/persistence.zh.md +395 -0
  304. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/plan.md +87 -0
  305. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/plan.zh.md +87 -0
  306. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/sandbox.md +220 -0
  307. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/sandbox.zh.md +220 -0
  308. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/schedule.md +192 -0
  309. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/schedule.zh.md +192 -0
  310. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/scope.md +59 -0
  311. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/scope.zh.md +59 -0
  312. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-projection.md +354 -0
  313. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-projection.zh.md +354 -0
  314. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-query.md +509 -0
  315. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-query.zh.md +509 -0
  316. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-reference.md +219 -0
  317. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-reference.zh.md +219 -0
  318. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-telemetry.md +194 -0
  319. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-telemetry.zh.md +194 -0
  320. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-title.md +204 -0
  321. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session-title.zh.md +204 -0
  322. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session.md +1155 -0
  323. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/session.zh.md +1159 -0
  324. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/settings.md +405 -0
  325. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/settings.zh.md +405 -0
  326. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/shell.md +303 -0
  327. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/shell.zh.md +303 -0
  328. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/skills.md +354 -0
  329. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/skills.zh.md +354 -0
  330. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/slots.md +175 -0
  331. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/slots.zh.md +175 -0
  332. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/spill.md +117 -0
  333. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/spill.zh.md +117 -0
  334. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/storage.md +260 -0
  335. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/storage.zh.md +260 -0
  336. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/subagent.md +766 -0
  337. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/subagent.zh.md +770 -0
  338. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/subprocess.md +324 -0
  339. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/subprocess.zh.md +324 -0
  340. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/system-prompt.md +220 -0
  341. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/system-prompt.zh.md +220 -0
  342. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/terminal.md +184 -0
  343. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/terminal.zh.md +184 -0
  344. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/todo.md +32 -0
  345. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/todo.zh.md +32 -0
  346. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/token-meter.md +105 -0
  347. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/token-meter.zh.md +105 -0
  348. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/tools.md +720 -0
  349. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/tools.zh.md +720 -0
  350. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/typert.md +343 -0
  351. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/typert.zh.md +343 -0
  352. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/user-questions.md +178 -0
  353. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/user-questions.zh.md +178 -0
  354. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/web-client.md +95 -0
  355. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/web-client.zh.md +95 -0
  356. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/web-server.md +154 -0
  357. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/web-server.zh.md +154 -0
  358. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/web.md +206 -0
  359. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/web.zh.md +206 -0
  360. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/webhook.md +70 -0
  361. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/webhook.zh.md +70 -0
  362. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/workflow.md +278 -0
  363. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/workflow.zh.md +278 -0
  364. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/workspace.md +321 -0
  365. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/subsystems/workspace.zh.md +321 -0
  366. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/testing.md +54 -0
  367. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/testing.zh.md +54 -0
  368. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/tool-catalog.md +2225 -0
  369. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/tool-catalog.zh.md +2233 -0
  370. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/tool-execution-pipeline.md +62 -0
  371. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/tool-execution-pipeline.zh.md +64 -0
  372. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/config.md +106 -0
  373. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/config.zh.md +106 -0
  374. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/index.md +144 -0
  375. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/index.zh.md +144 -0
  376. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/publish.md +183 -0
  377. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/publish.zh.md +183 -0
  378. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/tool.md +52 -0
  379. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/basic/tool.zh.md +52 -0
  380. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/framework/events.md +143 -0
  381. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/framework/events.zh.md +143 -0
  382. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/framework/index.md +137 -0
  383. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/framework/index.zh.md +137 -0
  384. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/framework/service.md +148 -0
  385. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/framework/service.zh.md +150 -0
  386. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/practice/dynamic-cordis.md +15 -0
  387. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/practice/dynamic-cordis.zh.md +15 -0
  388. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/practice/index.md +155 -0
  389. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/practice/index.zh.md +155 -0
  390. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/practice/llm-adapter.md +189 -0
  391. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/develop/practice/llm-adapter.zh.md +189 -0
  392. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/github-review.md +102 -0
  393. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/github-review.zh.md +102 -0
  394. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/index.md +30 -0
  395. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/index.zh.md +30 -0
  396. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/mcp-memory.md +101 -0
  397. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/mcp-memory.zh.md +101 -0
  398. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/network-proxy.md +85 -0
  399. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/network-proxy.zh.md +85 -0
  400. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/providers.md +190 -0
  401. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/providers.zh.md +190 -0
  402. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/python-sdk.md +150 -0
  403. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/python-sdk.zh.md +150 -0
  404. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/schedule.md +21 -0
  405. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/guide/schedule.zh.md +21 -0
  406. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/index.md +11 -0
  407. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/user/index.zh.md +11 -0
  408. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/web-styling.md +29 -0
  409. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/docs/web-styling.zh.md +29 -0
  410. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/site-pages-map.txt +234 -0
  411. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src/site-pages.json +232 -0
  412. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-README.md +63 -0
  413. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/crawl.py +103 -0
  414. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/docs-tree.json +82965 -0
  415. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/download.py +56 -0
  416. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/gen_mapping.py +125 -0
  417. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/pages.json +232 -0
  418. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/api-plugins.json +1 -0
  419. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/api-skills.json +4 -0
  420. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/_category_.json +8 -0
  421. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/acp-internals.md +181 -0
  422. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/adding-platform-adapters.md +788 -0
  423. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/adding-providers.md +464 -0
  424. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/adding-tools.md +211 -0
  425. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/agent-loop.md +242 -0
  426. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/architecture.md +279 -0
  427. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/billing-lifecycle.md +184 -0
  428. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/browser-provider-plugin.md +153 -0
  429. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/browser-supervisor.md +198 -0
  430. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/chronos-managed-cron-contract.md +227 -0
  431. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/cli-internals.md +85 -0
  432. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/codebase-ownership.md +34 -0
  433. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/completion-backlog-delivery.md +52 -0
  434. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/context-compression-and-caching.md +642 -0
  435. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/context-engine-plugin.md +272 -0
  436. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/contributing.md +303 -0
  437. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/creating-skills.md +438 -0
  438. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/cron-internals.md +380 -0
  439. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/desktop-plugin-sdk.md +952 -0
  440. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/egress-internals.md +319 -0
  441. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/extending-the-cli.md +192 -0
  442. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/gateway-internals.md +297 -0
  443. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/gateway-monitoring.md +309 -0
  444. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/gateway-session-lifecycle.md +621 -0
  445. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/image-gen-provider-plugin.md +316 -0
  446. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/memory-provider-plugin.md +452 -0
  447. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/micro-compaction.md +406 -0
  448. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/middleware.md +266 -0
  449. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/model-provider-plugin.md +327 -0
  450. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/multiplexing-gateway.md +228 -0
  451. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/observer-hooks.md +331 -0
  452. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/plugin-llm-access.md +506 -0
  453. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/plugins/index.md +1775 -0
  454. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/programmatic-integration.md +212 -0
  455. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/prompt-assembly.md +328 -0
  456. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/provider-runtime.md +222 -0
  457. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/relay-connector-contract.md +790 -0
  458. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/relay-shared-metrics.md +487 -0
  459. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/secret-source-plugin.md +192 -0
  460. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/session-storage.md +523 -0
  461. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/state-db-recovery.md +107 -0
  462. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/streaming-tts.md +98 -0
  463. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/subagent-lifecycle-api.md +61 -0
  464. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/terminal-environment-plugin.md +140 -0
  465. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/tools-runtime.md +250 -0
  466. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/trajectory-format.md +232 -0
  467. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/video-gen-provider-plugin.md +231 -0
  468. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/web-search-provider-plugin.md +260 -0
  469. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/worktree-ui-dev.md +168 -0
  470. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/_category_.json +8 -0
  471. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/installation.md +200 -0
  472. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/learning-path.md +169 -0
  473. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/nix-setup.md +1234 -0
  474. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/platform-support.md +50 -0
  475. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/quickstart.md +399 -0
  476. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/termux.md +301 -0
  477. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/updating.md +374 -0
  478. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/_category_.json +6 -0
  479. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/agent-email-address.md +93 -0
  480. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/automate-with-cron.md +292 -0
  481. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/automation-blueprints.md +595 -0
  482. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/aws-bedrock.md +196 -0
  483. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/azure-foundry.md +334 -0
  484. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/cron-script-only.md +247 -0
  485. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/cron-troubleshooting.md +235 -0
  486. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/daily-briefing-bot.md +272 -0
  487. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/delegation-patterns.md +242 -0
  488. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/desktop-native-signin.md +125 -0
  489. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/github-pr-review-agent.md +303 -0
  490. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/google-gemini.md +270 -0
  491. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/google-vertex.md +148 -0
  492. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/local-llm-on-mac.md +252 -0
  493. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/local-ollama-setup.md +338 -0
  494. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/manage-hermes-cloud-with-mcp.md +176 -0
  495. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/microsoft-graph-app-registration.md +180 -0
  496. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/migrate-from-openclaw.md +252 -0
  497. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/minimax-oauth.md +226 -0
  498. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/oauth-over-ssh.md +172 -0
  499. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/operate-teams-meeting-pipeline.md +295 -0
  500. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/pipe-script-output.md +249 -0
  501. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/python-library.md +333 -0
  502. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/run-hermes-with-nous-portal.md +276 -0
  503. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/run-nemotron-3-ultra-free.md +123 -0
  504. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/secure-hermes-on-a-work-machine.md +182 -0
  505. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/team-telegram-assistant.md +441 -0
  506. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/tips.md +238 -0
  507. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/troubleshooting-agent-quality.md +145 -0
  508. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/use-mcp-with-hermes.md +541 -0
  509. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/use-soul-with-hermes.md +264 -0
  510. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/use-voice-mode-with-hermes.md +473 -0
  511. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/webhook-github-pr-review.md +336 -0
  512. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/work-with-skills.md +290 -0
  513. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/xai-grok-oauth.md +243 -0
  514. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/index.mdx +155 -0
  515. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/buzz.md +57 -0
  516. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/index.md +126 -0
  517. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/nous-portal.md +286 -0
  518. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/providers.md +1681 -0
  519. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/_category_.json +8 -0
  520. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/automation-blueprints-catalog.mdx +36 -0
  521. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/cli-commands.md +1900 -0
  522. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/cli-symbols.md +126 -0
  523. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/environment-variables.md +952 -0
  524. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/faq.md +874 -0
  525. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/mcp-config-reference.md +439 -0
  526. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/model-catalog.md +121 -0
  527. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/optional-skills-catalog.md +303 -0
  528. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/profile-commands.md +544 -0
  529. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/skills-catalog.md +132 -0
  530. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/slash-commands.md +336 -0
  531. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/tools-reference.md +399 -0
  532. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/toolsets-reference.md +171 -0
  533. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/_category_.json +8 -0
  534. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/bot-mode.md +309 -0
  535. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/checkpoints-and-rollback.md +283 -0
  536. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/cli.md +591 -0
  537. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/configuration.md +2901 -0
  538. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/configuring-models.md +414 -0
  539. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/desktop.md +728 -0
  540. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/docker.md +896 -0
  541. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/egress/index.md +10 -0
  542. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/egress/iron-proxy.md +570 -0
  543. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/egress/network-isolation.md +201 -0
  544. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/_category_.json +8 -0
  545. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/acp.md +407 -0
  546. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/api-server.md +810 -0
  547. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/batch-processing.md +230 -0
  548. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/browser.md +901 -0
  549. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/built-in-plugins.md +366 -0
  550. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/code-execution.md +319 -0
  551. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/codex-app-server-runtime.md +460 -0
  552. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/computer-use.md +636 -0
  553. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/context-files.md +237 -0
  554. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/context-references.md +142 -0
  555. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/credential-pools.md +308 -0
  556. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/credential-vault.md +122 -0
  557. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/cron.md +1262 -0
  558. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/curator.md +409 -0
  559. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/delegation.md +664 -0
  560. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/deliverable-mode.md +134 -0
  561. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/document-extraction.md +58 -0
  562. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/extending-the-dashboard.md +927 -0
  563. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/fallback-providers.md +444 -0
  564. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/goals.md +293 -0
  565. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/heartbeat.md +68 -0
  566. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/honcho.md +276 -0
  567. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/hooks.md +2007 -0
  568. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/image-generation.md +347 -0
  569. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban-multi-gateway.md +52 -0
  570. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban-tutorial.md +310 -0
  571. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban-worker-lanes.md +142 -0
  572. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban.md +1327 -0
  573. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/loops.md +122 -0
  574. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/lsp.md +307 -0
  575. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/mcp.md +957 -0
  576. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/memory-providers.md +699 -0
  577. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/memory.md +466 -0
  578. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/mixture-of-agents.md +246 -0
  579. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/overview.md +57 -0
  580. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/personality.md +289 -0
  581. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/pets.md +236 -0
  582. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/plugin-catalog.md +212 -0
  583. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/plugins.md +847 -0
  584. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/provider-routing.md +229 -0
  585. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/skills.md +1112 -0
  586. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/skins.md +271 -0
  587. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/spotify.md +279 -0
  588. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/subscription-proxy.md +203 -0
  589. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tool-gateway.md +223 -0
  590. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tool-search.md +277 -0
  591. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tools.md +261 -0
  592. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tts.md +744 -0
  593. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/vision.md +214 -0
  594. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/voice-mode.md +608 -0
  595. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/wake-word.md +343 -0
  596. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/web-dashboard.md +1206 -0
  597. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/web-search.md +506 -0
  598. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/x-search.md +167 -0
  599. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/git-worktrees.md +196 -0
  600. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/import-from-other-agents.md +74 -0
  601. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/local-models.md +140 -0
  602. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/managed-scope.md +157 -0
  603. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/_category_.json +8 -0
  604. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/a2a.md +130 -0
  605. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/bluebubbles.md +171 -0
  606. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/buzz.md +162 -0
  607. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/dingtalk.md +283 -0
  608. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/discord.md +936 -0
  609. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/email.md +223 -0
  610. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/feishu.md +599 -0
  611. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/google_chat.md +430 -0
  612. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/homeassistant.md +269 -0
  613. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/index.md +859 -0
  614. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/irc.md +78 -0
  615. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/line.md +201 -0
  616. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/matrix.md +910 -0
  617. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/mattermost.md +340 -0
  618. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/msgraph-webhook.md +142 -0
  619. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/ntfy.md +157 -0
  620. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/open-webui.md +296 -0
  621. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/photon.md +255 -0
  622. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/qqbot.md +123 -0
  623. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/raft.md +70 -0
  624. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/relay.md +212 -0
  625. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/signal.md +262 -0
  626. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/simplex.md +151 -0
  627. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/slack.md +1093 -0
  628. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/sms.md +203 -0
  629. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/teams-meetings.md +242 -0
  630. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/teams.md +288 -0
  631. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/telegram.md +1373 -0
  632. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/webhooks.md +694 -0
  633. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/wecom-callback.md +179 -0
  634. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/wecom.md +306 -0
  635. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/weixin.md +333 -0
  636. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/whatsapp-cloud.md +417 -0
  637. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/whatsapp.md +283 -0
  638. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/yuanbao.md +342 -0
  639. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/multi-connection-desktop.md +361 -0
  640. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/multi-profile-gateways.md +1062 -0
  641. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/profile-distributions.md +757 -0
  642. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/profiles.md +418 -0
  643. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/bitwarden.md +155 -0
  644. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/command.md +50 -0
  645. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/index.md +50 -0
  646. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/onepassword.md +169 -0
  647. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/security.md +892 -0
  648. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/sessions.md +990 -0
  649. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-apple-notes.md +110 -0
  650. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-apple-reminders.md +146 -0
  651. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-findmy.md +149 -0
  652. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-imessage.md +118 -0
  653. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-claude-code.md +763 -0
  654. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-codex.md +169 -0
  655. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-computer-use.md +355 -0
  656. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-hermes-agent.md +230 -0
  657. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-merge-reconciler.md +176 -0
  658. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-opencode.md +237 -0
  659. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-architecture-diagram.md +165 -0
  660. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-ascii-art.md +338 -0
  661. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-ascii-video.md +265 -0
  662. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-baoyu-infographic.md +256 -0
  663. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-claude-design.md +668 -0
  664. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-comfyui.md +616 -0
  665. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-design-md.md +238 -0
  666. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-excalidraw.md +212 -0
  667. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-humanizer.md +663 -0
  668. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-manim-video.md +292 -0
  669. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-p5js.md +576 -0
  670. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-popular-web-designs.md +223 -0
  671. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-pretext.md +238 -0
  672. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-sketch.md +240 -0
  673. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-songwriting-and-ai-music.md +319 -0
  674. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/devops/devops-sdlc-review.md +195 -0
  675. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/email/email-email-inbox-triage.md +115 -0
  676. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/email/email-himalaya.md +319 -0
  677. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-codebase-inspection.md +132 -0
  678. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-auth.md +265 -0
  679. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-code-review.md +499 -0
  680. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-issue-to-pr.md +95 -0
  681. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-issues.md +388 -0
  682. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-pr-workflow.md +385 -0
  683. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-repo-management.md +534 -0
  684. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/media/media-gif-search.md +106 -0
  685. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/media/media-songsee.md +98 -0
  686. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/media/media-youtube-content.md +100 -0
  687. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-evaluation-evaluating-llms-harness.md +512 -0
  688. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-evaluation-weights-and-biases.md +613 -0
  689. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-huggingface-hub.md +100 -0
  690. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-inference-llama-cpp.md +267 -0
  691. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-inference-serving-llms-vllm.md +387 -0
  692. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/note-taking/note-taking-obsidian.md +85 -0
  693. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-airtable.md +243 -0
  694. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-box.md +132 -0
  695. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-document-to-action-items.md +99 -0
  696. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-docx.md +213 -0
  697. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-google-workspace.md +348 -0
  698. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-maps.md +210 -0
  699. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-meeting-action-items.md +105 -0
  700. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-nano-pdf.md +70 -0
  701. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-notion.md +463 -0
  702. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-ocr-and-documents.md +193 -0
  703. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-pdf.md +142 -0
  704. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-powerpoint.md +237 -0
  705. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-product-price-monitor.md +97 -0
  706. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-session-librarian.md +122 -0
  707. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-teams-meeting-pipeline.md +129 -0
  708. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-weekly-review-planning.md +99 -0
  709. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-xlsx.md +213 -0
  710. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-arxiv.md +300 -0
  711. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-blocked-page-recovery.md +155 -0
  712. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-blogwatcher.md +152 -0
  713. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-competitor-news-monitor.md +106 -0
  714. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-grounded-citations.md +274 -0
  715. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-llm-wiki.md +526 -0
  716. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-research-paper-writing.md +1645 -0
  717. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/smart-home/smart-home-openhue.md +127 -0
  718. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/social-media/social-media-xurl.md +450 -0
  719. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-codebase-inspection.md +132 -0
  720. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-dogfood.md +183 -0
  721. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-github.md +73 -0
  722. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-hermes-agent-skill-authoring.md +230 -0
  723. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-inspecting-hermes-desktop-dom.md +177 -0
  724. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-node-inspect-debugger.md +337 -0
  725. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-python-debugpy.md +391 -0
  726. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-requesting-code-review.md +298 -0
  727. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-simplify-code.md +288 -0
  728. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-spike.md +217 -0
  729. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-systematic-debugging.md +429 -0
  730. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-test-driven-development.md +380 -0
  731. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/web/web-blocked-page-recovery.md +155 -0
  732. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/google-workspace.md +191 -0
  733. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-antigravity-cli.md +259 -0
  734. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-blackbox.md +161 -0
  735. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-dynamic-workflow.md +198 -0
  736. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-grok.md +326 -0
  737. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-honcho.md +446 -0
  738. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-openhands.md +167 -0
  739. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/blockchain/blockchain-evm.md +227 -0
  740. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/blockchain/blockchain-hyperliquid.md +228 -0
  741. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/blockchain/blockchain-solana.md +225 -0
  742. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/communication/communication-one-three-one-rule.md +114 -0
  743. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-ai-presenter-video.md +211 -0
  744. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-archify.md +66 -0
  745. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-ascii-art.md +338 -0
  746. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-audiocraft-audio-generation.md +588 -0
  747. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-auteur.md +195 -0
  748. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-baoyu-article-illustrator.md +225 -0
  749. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-baoyu-comic.md +264 -0
  750. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-comfyui.md +616 -0
  751. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-concept-diagrams.md +379 -0
  752. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-creative-ideation.md +192 -0
  753. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-draw-your-font.md +169 -0
  754. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-dream-loop.md +297 -0
  755. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-excalidraw.md +212 -0
  756. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-heartmula.md +191 -0
  757. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-hyperframes.md +222 -0
  758. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-impeccable.md +56 -0
  759. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-ip-as-logo.md +171 -0
  760. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-kanban-video-orchestrator.md +220 -0
  761. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-meme-generation.md +147 -0
  762. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-mono-color.md +158 -0
  763. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-pixel-art.md +234 -0
  764. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-pretext.md +238 -0
  765. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-simple-english.md +362 -0
  766. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-sketch.md +240 -0
  767. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-social-media-content-calendar.md +88 -0
  768. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-system-atlas.md +105 -0
  769. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-tldraw-offline.md +294 -0
  770. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-unreal-mcp.md +269 -0
  771. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/data-science/data-science-jupyter-notebook.md +195 -0
  772. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-actual-setup.md +164 -0
  773. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-docker-management.md +298 -0
  774. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-hermes-s6-container-supervision.md +198 -0
  775. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-inference-sh-cli.md +173 -0
  776. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-pinggy-tunnel.md +326 -0
  777. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-setup-wizard-generator.md +133 -0
  778. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-watchers.md +126 -0
  779. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/dogfood/dogfood-adversarial-ux-test.md +209 -0
  780. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/email/email-agentmail.md +104 -0
  781. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-3-statement-model.md +451 -0
  782. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-comps-analysis.md +682 -0
  783. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-dcf-model.md +1288 -0
  784. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-excel-author.md +262 -0
  785. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-lbo-model.md +309 -0
  786. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-merger-model.md +162 -0
  787. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-polymarket.md +97 -0
  788. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-pptx-author.md +191 -0
  789. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-stocks.md +112 -0
  790. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/gaming/gaming-minecraft-modpack-server.md +209 -0
  791. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/gaming/gaming-pokemon-player.md +240 -0
  792. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/health/health-fitness-nutrition.md +259 -0
  793. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/health/health-neuroskill-bci.md +470 -0
  794. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mcp/mcp-fastmcp.md +315 -0
  795. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mcp/mcp-mcp-oauth-remote-gateway.md +389 -0
  796. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mcp/mcp-mcporter.md +138 -0
  797. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/migration/migration-openclaw-migration.md +316 -0
  798. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-accelerate.md +366 -0
  799. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-chroma.md +425 -0
  800. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-clip.md +272 -0
  801. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-evaluation-evaluating-llms-harness.md +512 -0
  802. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-evaluation-weights-and-biases.md +613 -0
  803. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-faiss.md +240 -0
  804. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-flash-attention.md +388 -0
  805. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-guidance.md +595 -0
  806. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-huggingface-tokenizers.md +535 -0
  807. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-inference-llama-cpp.md +267 -0
  808. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-inference-outlines.md +679 -0
  809. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-inference-serving-llms-vllm.md +387 -0
  810. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-instructor.md +759 -0
  811. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-lambda-labs.md +568 -0
  812. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-llava.md +323 -0
  813. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-modal.md +368 -0
  814. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-models-huggingface-hub.md +100 -0
  815. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-models-segment-anything-model.md +525 -0
  816. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-nemo-curator.md +415 -0
  817. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-obliteratus.md +360 -0
  818. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-peft.md +452 -0
  819. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-pinecone.md +396 -0
  820. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-pytorch-fsdp.md +97 -0
  821. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-pytorch-lightning.md +365 -0
  822. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-qdrant.md +522 -0
  823. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-research-dspy.md +609 -0
  824. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-saelens.md +439 -0
  825. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-simpo.md +237 -0
  826. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-slime.md +486 -0
  827. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-stable-diffusion.md +542 -0
  828. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-tensorrt-llm.md +208 -0
  829. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-torchtitan.md +404 -0
  830. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-training-axolotl.md +181 -0
  831. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-training-trl-fine-tuning.md +512 -0
  832. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-training-unsloth.md +98 -0
  833. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-whisper.md +336 -0
  834. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/payments/payments-mpp-agent.md +142 -0
  835. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/payments/payments-stripe-link-cli.md +202 -0
  836. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/payments/payments-stripe-projects.md +138 -0
  837. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-canvas.md +114 -0
  838. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-decision-questionnaire.md +133 -0
  839. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-here-now.md +231 -0
  840. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-live-dashboard.md +126 -0
  841. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-memento-flashcards.md +336 -0
  842. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-property-listings.md +121 -0
  843. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-shop.md +238 -0
  844. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-shopify.md +377 -0
  845. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-siyuan.md +305 -0
  846. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-telephony.md +435 -0
  847. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-bioinformatics.md +254 -0
  848. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-blogwatcher.md +162 -0
  849. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-darwinian-evolver.md +217 -0
  850. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-domain-intel.md +121 -0
  851. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-drug-discovery.md +237 -0
  852. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-duckduckgo-search.md +255 -0
  853. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-gitnexus-explorer.md +232 -0
  854. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-osint-investigation.md +295 -0
  855. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-parallel-cli.md +411 -0
  856. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-pinecone-research.md +125 -0
  857. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-qmd.md +459 -0
  858. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-research-paper-writing.md +1645 -0
  859. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-rss-feeds.md +114 -0
  860. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-scrapling.md +351 -0
  861. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-searxng-search.md +212 -0
  862. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-1password.md +173 -0
  863. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-godmode.md +421 -0
  864. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-oss-forensics.md +426 -0
  865. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-sherlock.md +208 -0
  866. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-unbroker.md +331 -0
  867. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-web-pentest.md +337 -0
  868. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/smart-home/smart-home-openhue.md +127 -0
  869. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/social-media/social-media-reddit-reading.md +146 -0
  870. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-ast-grep.md +307 -0
  871. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-code-wiki.md +463 -0
  872. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-grill-me.md +135 -0
  873. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-pr-lens.md +160 -0
  874. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-rest-graphql-debug.md +532 -0
  875. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-subagent-driven-development.md +370 -0
  876. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-cloudflare-temporary-deploy.md +144 -0
  877. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-har-derived-api-client.md +180 -0
  878. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-page-agent.md +207 -0
  879. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-publish-site.md +174 -0
  880. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-scrollcraft.md +257 -0
  881. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/yuanbao/yuanbao-yuanbao.md +127 -0
  882. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/tui.md +313 -0
  883. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/which-file-does-what.md +57 -0
  884. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/windows-native.md +326 -0
  885. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/windows-wsl-quickstart.md +358 -0
  886. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-stories.mdx +10 -0
  887. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docusaurus.config.ts +210 -0
  888. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/acp-internals.md +181 -0
  889. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/adding-platform-adapters.md +686 -0
  890. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/adding-providers.md +459 -0
  891. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/adding-tools.md +209 -0
  892. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/agent-loop.md +239 -0
  893. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/architecture.md +277 -0
  894. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/browser-supervisor.md +160 -0
  895. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/context-compression-and-caching.md +328 -0
  896. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/context-engine-plugin.md +193 -0
  897. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/contributing.md +253 -0
  898. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/creating-skills.md +375 -0
  899. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/cron-internals.md +236 -0
  900. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/extending-the-cli.md +192 -0
  901. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/gateway-internals.md +267 -0
  902. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/image-gen-provider-plugin.md +288 -0
  903. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/memory-provider-plugin.md +258 -0
  904. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/model-provider-plugin.md +267 -0
  905. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/plugin-llm-access.md +401 -0
  906. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/plugins/index.md +1156 -0
  907. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/programmatic-integration.md +126 -0
  908. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/prompt-assembly.md +273 -0
  909. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/provider-runtime.md +208 -0
  910. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/session-storage.md +420 -0
  911. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/tools-runtime.md +236 -0
  912. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/trajectory-format.md +222 -0
  913. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/video-gen-provider-plugin.md +231 -0
  914. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/web-search-provider-plugin.md +260 -0
  915. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/installation.md +204 -0
  916. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/learning-path.md +154 -0
  917. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/nix-setup.md +975 -0
  918. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/quickstart.md +352 -0
  919. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/termux.md +236 -0
  920. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/updating.md +231 -0
  921. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/automate-with-cron.md +266 -0
  922. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/automation-blueprints.md +595 -0
  923. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/aws-bedrock.md +170 -0
  924. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/azure-foundry.md +334 -0
  925. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/cron-script-only.md +247 -0
  926. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/cron-troubleshooting.md +227 -0
  927. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/daily-briefing-bot.md +268 -0
  928. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/delegation-patterns.md +239 -0
  929. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/github-pr-review-agent.md +303 -0
  930. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/google-gemini.md +254 -0
  931. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/local-llm-on-mac.md +240 -0
  932. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/local-ollama-setup.md +317 -0
  933. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/microsoft-graph-app-registration.md +180 -0
  934. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/migrate-from-openclaw.md +244 -0
  935. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/minimax-oauth.md +228 -0
  936. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/oauth-over-ssh.md +96 -0
  937. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/operate-teams-meeting-pipeline.md +288 -0
  938. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/pipe-script-output.md +217 -0
  939. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/python-library.md +333 -0
  940. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/run-hermes-with-nous-portal.md +273 -0
  941. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/team-telegram-assistant.md +441 -0
  942. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/tips.md +234 -0
  943. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/use-mcp-with-hermes.md +490 -0
  944. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/use-soul-with-hermes.md +264 -0
  945. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/use-voice-mode-with-hermes.md +469 -0
  946. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/webhook-github-pr-review.md +329 -0
  947. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/work-with-skills.md +290 -0
  948. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/xai-grok-oauth.md +243 -0
  949. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/index.mdx +117 -0
  950. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/buzz.md +57 -0
  951. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/index.md +100 -0
  952. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/nous-portal.md +272 -0
  953. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/providers.md +1433 -0
  954. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/cli-commands.md +1259 -0
  955. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/environment-variables.md +678 -0
  956. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/faq.md +859 -0
  957. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/mcp-config-reference.md +250 -0
  958. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/model-catalog.md +103 -0
  959. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/optional-skills-catalog.md +220 -0
  960. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/profile-commands.md +467 -0
  961. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/skills-catalog.md +156 -0
  962. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/slash-commands.md +272 -0
  963. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/tools-reference.md +261 -0
  964. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/toolsets-reference.md +162 -0
  965. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/checkpoints-and-rollback.md +251 -0
  966. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/cli.md +445 -0
  967. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/configuration.md +1746 -0
  968. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/configuring-models.md +239 -0
  969. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/docker.md +595 -0
  970. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/acp.md +341 -0
  971. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/api-server.md +456 -0
  972. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/batch-processing.md +229 -0
  973. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/browser.md +629 -0
  974. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/built-in-plugins.md +269 -0
  975. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/code-execution.md +240 -0
  976. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/codex-app-server-runtime.md +441 -0
  977. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/computer-use.md +144 -0
  978. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/context-files.md +218 -0
  979. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/context-references.md +142 -0
  980. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/credential-pools.md +240 -0
  981. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/cron.md +761 -0
  982. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/curator.md +248 -0
  983. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/delegation.md +355 -0
  984. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/deliverable-mode.md +91 -0
  985. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/extending-the-dashboard.md +907 -0
  986. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/fallback-providers.md +408 -0
  987. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/goals.md +180 -0
  988. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/honcho.md +233 -0
  989. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/hooks.md +1388 -0
  990. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/image-generation.md +150 -0
  991. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/kanban-tutorial.md +308 -0
  992. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/kanban-worker-lanes.md +117 -0
  993. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/kanban.md +863 -0
  994. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/lsp.md +217 -0
  995. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/mcp.md +591 -0
  996. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/memory-providers.md +570 -0
  997. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/memory.md +233 -0
  998. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/overview.md +52 -0
  999. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/personality.md +271 -0
  1000. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/plugins.md +346 -0
  1001. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/provider-routing.md +200 -0
  1002. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/skills.md +760 -0
  1003. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/skins.md +271 -0
  1004. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/spotify.md +279 -0
  1005. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/subscription-proxy.md +163 -0
  1006. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/tool-gateway.md +187 -0
  1007. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/tools.md +223 -0
  1008. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/tts.md +456 -0
  1009. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/vision.md +210 -0
  1010. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/voice-mode.md +521 -0
  1011. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/web-dashboard.md +351 -0
  1012. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/web-search.md +422 -0
  1013. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/x-search.md +147 -0
  1014. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/git-worktrees.md +173 -0
  1015. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/bluebubbles.md +143 -0
  1016. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/dingtalk.md +283 -0
  1017. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/discord.md +843 -0
  1018. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/email.md +190 -0
  1019. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/feishu.md +538 -0
  1020. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/google_chat.md +283 -0
  1021. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/homeassistant.md +252 -0
  1022. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/index.md +569 -0
  1023. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/line.md +199 -0
  1024. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/matrix.md +677 -0
  1025. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/mattermost.md +340 -0
  1026. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/msgraph-webhook.md +137 -0
  1027. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/ntfy.md +155 -0
  1028. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/open-webui.md +296 -0
  1029. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/qqbot.md +123 -0
  1030. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/signal.md +257 -0
  1031. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/simplex.md +98 -0
  1032. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/slack.md +614 -0
  1033. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/sms.md +203 -0
  1034. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/teams-meetings.md +233 -0
  1035. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/teams.md +255 -0
  1036. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/telegram.md +1241 -0
  1037. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/webhooks.md +601 -0
  1038. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/wecom-callback.md +149 -0
  1039. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/wecom.md +292 -0
  1040. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/weixin.md +312 -0
  1041. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/whatsapp.md +236 -0
  1042. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/yuanbao.md +341 -0
  1043. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/profile-distributions.md +573 -0
  1044. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/profiles.md +272 -0
  1045. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/secrets/bitwarden.md +143 -0
  1046. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/secrets/index.md +9 -0
  1047. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/security.md +664 -0
  1048. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/sessions.md +609 -0
  1049. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-apple-notes.md +106 -0
  1050. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-apple-reminders.md +114 -0
  1051. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-findmy.md +147 -0
  1052. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-imessage.md +118 -0
  1053. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-macos-computer-use.md +175 -0
  1054. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-claude-code.md +763 -0
  1055. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-codex.md +143 -0
  1056. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-hermes-agent.md +947 -0
  1057. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-opencode.md +237 -0
  1058. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-architecture-diagram.md +165 -0
  1059. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-ascii-art.md +338 -0
  1060. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-ascii-video.md +261 -0
  1061. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-baoyu-infographic.md +256 -0
  1062. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-claude-design.md +609 -0
  1063. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-comfyui.md +547 -0
  1064. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-design-md.md +189 -0
  1065. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-excalidraw.md +210 -0
  1066. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-humanizer.md +594 -0
  1067. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-manim-video.md +289 -0
  1068. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-p5js.md +574 -0
  1069. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-popular-web-designs.md +211 -0
  1070. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-pretext.md +238 -0
  1071. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-sketch.md +238 -0
  1072. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-songwriting-and-ai-music.md +305 -0
  1073. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/email/email-himalaya.md +305 -0
  1074. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-codebase-inspection.md +132 -0
  1075. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-auth.md +265 -0
  1076. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-code-review.md +499 -0
  1077. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-issues.md +388 -0
  1078. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-pr-workflow.md +385 -0
  1079. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-repo-management.md +534 -0
  1080. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/media/media-gif-search.md +106 -0
  1081. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/media/media-songsee.md +98 -0
  1082. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/media/media-youtube-content.md +93 -0
  1083. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-evaluation-evaluating-llms-harness.md +512 -0
  1084. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-evaluation-weights-and-biases.md +609 -0
  1085. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-huggingface-hub.md +100 -0
  1086. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-inference-llama-cpp.md +267 -0
  1087. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-inference-serving-llms-vllm.md +386 -0
  1088. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/note-taking/note-taking-obsidian.md +81 -0
  1089. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-airtable.md +243 -0
  1090. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-google-workspace.md +325 -0
  1091. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-maps.md +196 -0
  1092. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-nano-pdf.md +69 -0
  1093. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-notion.md +463 -0
  1094. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-ocr-and-documents.md +190 -0
  1095. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-powerpoint.md +257 -0
  1096. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-teams-meeting-pipeline.md +127 -0
  1097. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-arxiv.md +300 -0
  1098. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-blogwatcher.md +152 -0
  1099. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-llm-wiki.md +469 -0
  1100. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-research-paper-writing.md +2395 -0
  1101. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/smart-home/smart-home-openhue.md +124 -0
  1102. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/social-media/social-media-xurl.md +428 -0
  1103. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-dogfood.md +181 -0
  1104. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-hermes-agent-skill-authoring.md +183 -0
  1105. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-node-inspect-debugger.md +337 -0
  1106. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-python-debugpy.md +391 -0
  1107. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-requesting-code-review.md +287 -0
  1108. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-spike.md +217 -0
  1109. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-systematic-debugging.md +385 -0
  1110. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-test-driven-development.md +361 -0
  1111. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/google-workspace.md +191 -0
  1112. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-blackbox.md +162 -0
  1113. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-honcho.md +446 -0
  1114. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/blockchain/blockchain-evm.md +227 -0
  1115. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/blockchain/blockchain-hyperliquid.md +210 -0
  1116. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/blockchain/blockchain-solana.md +206 -0
  1117. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/communication/communication-one-three-one-rule.md +114 -0
  1118. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-audiocraft-audio-generation.md +588 -0
  1119. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-concept-diagrams.md +379 -0
  1120. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-heartmula.md +189 -0
  1121. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-hyperframes.md +205 -0
  1122. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-kanban-video-orchestrator.md +173 -0
  1123. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-meme-generation.md +147 -0
  1124. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/data-science/data-science-jupyter-notebook.md +180 -0
  1125. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-docker-management.md +297 -0
  1126. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-inference-sh-cli.md +173 -0
  1127. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-pinggy-tunnel.md +327 -0
  1128. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-watchers.md +126 -0
  1129. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/dogfood/dogfood-adversarial-ux-test.md +209 -0
  1130. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/email/email-agentmail.md +143 -0
  1131. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-3-statement-model.md +451 -0
  1132. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-comps-analysis.md +682 -0
  1133. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-dcf-model.md +1288 -0
  1134. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-excel-author.md +262 -0
  1135. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-lbo-model.md +309 -0
  1136. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-merger-model.md +162 -0
  1137. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-polymarket.md +94 -0
  1138. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-pptx-author.md +191 -0
  1139. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-stocks.md +108 -0
  1140. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/health/health-fitness-nutrition.md +255 -0
  1141. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/health/health-neuroskill-bci.md +431 -0
  1142. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mcp/mcp-fastmcp.md +315 -0
  1143. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mcp/mcp-mcporter.md +138 -0
  1144. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/migration/migration-openclaw-migration.md +316 -0
  1145. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-accelerate.md +350 -0
  1146. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-chroma.md +425 -0
  1147. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-clip.md +272 -0
  1148. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-faiss.md +240 -0
  1149. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-flash-attention.md +381 -0
  1150. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-guidance.md +591 -0
  1151. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-huggingface-tokenizers.md +535 -0
  1152. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-inference-outlines.md +671 -0
  1153. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-instructor.md +759 -0
  1154. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-lambda-labs.md +568 -0
  1155. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-llava.md +323 -0
  1156. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-modal.md +362 -0
  1157. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-models-segment-anything-model.md +525 -0
  1158. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-nemo-curator.md +401 -0
  1159. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-peft.md +452 -0
  1160. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-pinecone.md +377 -0
  1161. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-pytorch-fsdp.md +145 -0
  1162. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-pytorch-lightning.md +365 -0
  1163. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-qdrant.md +514 -0
  1164. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-saelens.md +407 -0
  1165. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-simpo.md +237 -0
  1166. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-slime.md +486 -0
  1167. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-stable-diffusion.md +542 -0
  1168. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-tensorrt-llm.md +206 -0
  1169. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-torchtitan.md +378 -0
  1170. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-training-axolotl.md +181 -0
  1171. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-training-trl-fine-tuning.md +477 -0
  1172. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-training-unsloth.md +98 -0
  1173. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-whisper.md +336 -0
  1174. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-canvas.md +114 -0
  1175. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-here-now.md +231 -0
  1176. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-memento-flashcards.md +336 -0
  1177. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-shop.md +354 -0
  1178. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-shopify.md +377 -0
  1179. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-siyuan.md +305 -0
  1180. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-telephony.md +435 -0
  1181. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-bioinformatics.md +252 -0
  1182. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-darwinian-evolver.md +188 -0
  1183. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-domain-intel.md +117 -0
  1184. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-drug-discovery.md +237 -0
  1185. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-duckduckgo-search.md +255 -0
  1186. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-gitnexus-explorer.md +213 -0
  1187. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-osint-investigation.md +243 -0
  1188. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-parallel-cli.md +411 -0
  1189. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-qmd.md +435 -0
  1190. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-scrapling.md +351 -0
  1191. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-searxng-search.md +229 -0
  1192. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/security/security-1password.md +173 -0
  1193. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/security/security-oss-forensics.md +421 -0
  1194. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/security/security-sherlock.md +208 -0
  1195. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/software-development/software-development-rest-graphql-debug.md +531 -0
  1196. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/web-development/web-development-page-agent.md +207 -0
  1197. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/yuanbao/yuanbao-yuanbao.md +125 -0
  1198. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/tui.md +256 -0
  1199. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/windows-native.md +325 -0
  1200. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/windows-wsl-quickstart.md +332 -0
  1201. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-stories.mdx +10 -0
  1202. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/llms-full.txt +88833 -0
  1203. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/llms.txt +267 -0
  1204. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/site-pages-map.txt +928 -0
  1205. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/site-pages.json +4218 -0
  1206. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-README.md +101 -0
  1207. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/clone_repo.sh +17 -0
  1208. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/crawl.py +82 -0
  1209. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/gen_mapping.py +112 -0
  1210. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/retry-none.json +305 -0
  1211. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/verify_orphans.py +53 -0
  1212. package/docs/specs/ctx/spec.md +78 -6
  1213. package/docs/specs/model-picker-ios-blur/spec.md +168 -0
  1214. package/docs/specs/plugins-page-components/spec.md +79 -0
  1215. package/docs/specs/zero-npm-runtime-deps/spec.md +85 -0
  1216. package/docs/superpowers/plans/2026-10-02-ctx-navigation.md +319 -0
  1217. package/docs/superpowers/specs/2026-10-02-ctx-navigation-design.md +209 -0
  1218. package/lib/BrowserWebSocketTransport-FbPg_VFT.js +39 -0
  1219. package/lib/BrowserWebSocketTransport-Q5SUMk7_.js +4 -0
  1220. package/lib/LaunchOptions-DlBKKKLC.js +4 -0
  1221. package/lib/LaunchOptions-RNO1YIoJ.js +17 -0
  1222. package/lib/NodeWebSocketTransport-BdrEPUFe.js +3629 -0
  1223. package/lib/NodeWebSocketTransport-DyU2tm5L.js +4 -0
  1224. package/lib/bidi-D0POLRy7.js +16106 -0
  1225. package/lib/chunk-DQxbwPpZ.js +30 -0
  1226. package/lib/client/index.js +20 -20
  1227. package/lib/compaction/index.d.ts +57 -0
  1228. package/lib/compaction/index.js +145 -0
  1229. package/lib/failover/index.d.ts +59 -0
  1230. package/lib/failover/index.js +147 -0
  1231. package/lib/fs-aware/sandbox-plugin.js +22 -22
  1232. package/lib/index-DZQNwO7f.d.ts +208 -0
  1233. package/lib/index-browser-rqlXyoed.js +21061 -0
  1234. package/lib/index.d.ts +5 -36
  1235. package/lib/index.js +503 -8096
  1236. package/lib/kernel-bridge.py +172 -0
  1237. package/lib/kernel-env.js +1 -1
  1238. package/lib/lib-C8_jXvwA.js +894 -0
  1239. package/lib/{lsp-server-registry-DkaYmTwt.js → lsp-server-registry-C05QLdw0.js} +13 -13
  1240. package/lib/{lsp-server-registry-_hk-Wcia.js → lsp-server-registry-LUjrrLxk.js} +1 -1
  1241. package/lib/main-7c69ae95.js +1432 -0
  1242. package/lib/main-Dlv0Jm8U.js +3 -0
  1243. package/lib/mobile/plugin.d.ts +29 -0
  1244. package/lib/mobile/plugin.js +54 -0
  1245. package/lib/native-capture-BEByDXYM.js +68 -0
  1246. package/lib/puppeteer-core-BIIJGWPE.js +1136 -0
  1247. package/lib/py-sdk.js +1 -1
  1248. package/lib/remote/plugin.d.ts +24 -0
  1249. package/lib/remote/plugin.js +1095 -0
  1250. package/lib/url-schemes/index.d.ts +88 -0
  1251. package/lib/url-schemes/index.js +11427 -0
  1252. package/lib/util-DgR7HQUl.js +2953 -0
  1253. package/lib/web-password.d.ts +156 -0
  1254. package/lib/web-password.js +562 -0
  1255. package/lib/web-trust-B27wcZEw.js +361 -0
  1256. package/lib/web-trust-PIXuF0bN.d.ts +106 -0
  1257. package/lib/web-trust.d.ts +2 -0
  1258. package/lib/web-trust.js +4 -0
  1259. package/lib/{wrap-JFjcWwZf.js → wrap-0VA0uFx8.js} +156 -153
  1260. package/package.json +109 -77
  1261. /package/lib/{kernel-env-hxaihi9C.js → kernel-env-BLPZE-I3.js} +0 -0
  1262. /package/lib/{py-sdk-Chvy92MB.js → py-sdk-D7klhpWb.js} +0 -0
@@ -0,0 +1,3629 @@
1
+ import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
2
+ import { D as packageVersion, o as debugCatchError } from "./util-DgR7HQUl.js";
3
+
4
+ //#region node_modules/ws/lib/constants.js
5
+ var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/constants.js": ((exports, module) => {
6
+ const BINARY_TYPES$2 = [
7
+ "nodebuffer",
8
+ "arraybuffer",
9
+ "fragments"
10
+ ];
11
+ const hasBlob$1 = typeof Blob !== "undefined";
12
+ if (hasBlob$1) BINARY_TYPES$2.push("blob");
13
+ module.exports = {
14
+ BINARY_TYPES: BINARY_TYPES$2,
15
+ CLOSE_TIMEOUT: 3e4,
16
+ EMPTY_BUFFER: Buffer.alloc(0),
17
+ GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
18
+ hasBlob: hasBlob$1,
19
+ kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
20
+ kListener: Symbol("kListener"),
21
+ kStatusCode: Symbol("status-code"),
22
+ kWebSocket: Symbol("websocket"),
23
+ NOOP: () => {}
24
+ };
25
+ }) });
26
+
27
+ //#endregion
28
+ //#region node_modules/ws/lib/buffer-util.js
29
+ var require_buffer_util = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/buffer-util.js": ((exports, module) => {
30
+ const { EMPTY_BUFFER: EMPTY_BUFFER$3 } = require_constants();
31
+ const FastBuffer$2 = Buffer[Symbol.species];
32
+ /**
33
+ * Merges an array of buffers into a new buffer.
34
+ *
35
+ * @param {Buffer[]} list The array of buffers to concat
36
+ * @param {Number} totalLength The total length of buffers in the list
37
+ * @return {Buffer} The resulting buffer
38
+ * @public
39
+ */
40
+ function concat$1(list, totalLength) {
41
+ if (list.length === 0) return EMPTY_BUFFER$3;
42
+ if (list.length === 1) return list[0];
43
+ const target = Buffer.allocUnsafe(totalLength);
44
+ let offset = 0;
45
+ for (let i = 0; i < list.length; i++) {
46
+ const buf = list[i];
47
+ target.set(buf, offset);
48
+ offset += buf.length;
49
+ }
50
+ if (offset < totalLength) return new FastBuffer$2(target.buffer, target.byteOffset, offset);
51
+ return target;
52
+ }
53
+ /**
54
+ * Masks a buffer using the given mask.
55
+ *
56
+ * @param {Buffer} source The buffer to mask
57
+ * @param {Buffer} mask The mask to use
58
+ * @param {Buffer} output The buffer where to store the result
59
+ * @param {Number} offset The offset at which to start writing
60
+ * @param {Number} length The number of bytes to mask.
61
+ * @public
62
+ */
63
+ function _mask(source, mask, output, offset, length) {
64
+ for (let i = 0; i < length; i++) output[offset + i] = source[i] ^ mask[i & 3];
65
+ }
66
+ /**
67
+ * Unmasks a buffer using the given mask.
68
+ *
69
+ * @param {Buffer} buffer The buffer to unmask
70
+ * @param {Buffer} mask The mask to use
71
+ * @public
72
+ */
73
+ function _unmask(buffer, mask) {
74
+ for (let i = 0; i < buffer.length; i++) buffer[i] ^= mask[i & 3];
75
+ }
76
+ /**
77
+ * Converts a buffer to an `ArrayBuffer`.
78
+ *
79
+ * @param {Buffer} buf The buffer to convert
80
+ * @return {ArrayBuffer} Converted buffer
81
+ * @public
82
+ */
83
+ function toArrayBuffer$1(buf) {
84
+ if (buf.length === buf.buffer.byteLength) return buf.buffer;
85
+ return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length);
86
+ }
87
+ /**
88
+ * Converts `data` to a `Buffer`.
89
+ *
90
+ * @param {*} data The data to convert
91
+ * @return {Buffer} The buffer
92
+ * @throws {TypeError}
93
+ * @public
94
+ */
95
+ function toBuffer$2(data) {
96
+ toBuffer$2.readOnly = true;
97
+ if (Buffer.isBuffer(data)) return data;
98
+ let buf;
99
+ if (data instanceof ArrayBuffer) buf = new FastBuffer$2(data);
100
+ else if (ArrayBuffer.isView(data)) buf = new FastBuffer$2(data.buffer, data.byteOffset, data.byteLength);
101
+ else {
102
+ buf = Buffer.from(data);
103
+ toBuffer$2.readOnly = false;
104
+ }
105
+ return buf;
106
+ }
107
+ module.exports = {
108
+ concat: concat$1,
109
+ mask: _mask,
110
+ toArrayBuffer: toArrayBuffer$1,
111
+ toBuffer: toBuffer$2,
112
+ unmask: _unmask
113
+ };
114
+ /* istanbul ignore else */
115
+ if (!process.env.WS_NO_BUFFER_UTIL) try {
116
+ const bufferUtil$1 = __require("bufferutil");
117
+ module.exports.mask = function(source, mask, output, offset, length) {
118
+ if (length < 48) _mask(source, mask, output, offset, length);
119
+ else bufferUtil$1.mask(source, mask, output, offset, length);
120
+ };
121
+ module.exports.unmask = function(buffer, mask) {
122
+ if (buffer.length < 32) _unmask(buffer, mask);
123
+ else bufferUtil$1.unmask(buffer, mask);
124
+ };
125
+ } catch (e) {}
126
+ }) });
127
+
128
+ //#endregion
129
+ //#region node_modules/ws/lib/limiter.js
130
+ var require_limiter = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/limiter.js": ((exports, module) => {
131
+ const kDone = Symbol("kDone");
132
+ const kRun = Symbol("kRun");
133
+ /**
134
+ * A very simple job queue with adjustable concurrency. Adapted from
135
+ * https://github.com/STRML/async-limiter
136
+ */
137
+ var Limiter$1 = class {
138
+ /**
139
+ * Creates a new `Limiter`.
140
+ *
141
+ * @param {Number} [concurrency=Infinity] The maximum number of jobs allowed
142
+ * to run concurrently
143
+ */
144
+ constructor(concurrency) {
145
+ this[kDone] = () => {
146
+ this.pending--;
147
+ this[kRun]();
148
+ };
149
+ this.concurrency = concurrency || Infinity;
150
+ this.jobs = [];
151
+ this.pending = 0;
152
+ }
153
+ /**
154
+ * Adds a job to the queue.
155
+ *
156
+ * @param {Function} job The job to run
157
+ * @public
158
+ */
159
+ add(job) {
160
+ this.jobs.push(job);
161
+ this[kRun]();
162
+ }
163
+ /**
164
+ * Removes a job from the queue and runs it if possible.
165
+ *
166
+ * @private
167
+ */
168
+ [kRun]() {
169
+ if (this.pending === this.concurrency) return;
170
+ if (this.jobs.length) {
171
+ const job = this.jobs.shift();
172
+ this.pending++;
173
+ job(this[kDone]);
174
+ }
175
+ }
176
+ };
177
+ module.exports = Limiter$1;
178
+ }) });
179
+
180
+ //#endregion
181
+ //#region node_modules/ws/lib/permessage-deflate.js
182
+ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/permessage-deflate.js": ((exports, module) => {
183
+ const zlib = __require("zlib");
184
+ const bufferUtil = require_buffer_util();
185
+ const Limiter = require_limiter();
186
+ const { kStatusCode: kStatusCode$2 } = require_constants();
187
+ const FastBuffer$1 = Buffer[Symbol.species];
188
+ const TRAILER = Buffer.from([
189
+ 0,
190
+ 0,
191
+ 255,
192
+ 255
193
+ ]);
194
+ const kPerMessageDeflate = Symbol("permessage-deflate");
195
+ const kTotalLength = Symbol("total-length");
196
+ const kCallback = Symbol("callback");
197
+ const kBuffers = Symbol("buffers");
198
+ const kError$1 = Symbol("error");
199
+ let zlibLimiter;
200
+ /**
201
+ * permessage-deflate implementation.
202
+ */
203
+ var PerMessageDeflate$5 = class {
204
+ /**
205
+ * Creates a PerMessageDeflate instance.
206
+ *
207
+ * @param {Object} [options] Configuration options
208
+ * @param {(Boolean|Number)} [options.clientMaxWindowBits] Advertise support
209
+ * for, or request, a custom client window size
210
+ * @param {Boolean} [options.clientNoContextTakeover=false] Advertise/
211
+ * acknowledge disabling of client context takeover
212
+ * @param {Number} [options.concurrencyLimit=10] The number of concurrent
213
+ * calls to zlib
214
+ * @param {Boolean} [options.isServer=false] Create the instance in either
215
+ * server or client mode
216
+ * @param {Number} [options.maxPayload=0] The maximum allowed message length
217
+ * @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
218
+ * use of a custom server window size
219
+ * @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
220
+ * disabling of server context takeover
221
+ * @param {Number} [options.threshold=1024] Size (in bytes) below which
222
+ * messages should not be compressed if context takeover is disabled
223
+ * @param {Object} [options.zlibDeflateOptions] Options to pass to zlib on
224
+ * deflate
225
+ * @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
226
+ * inflate
227
+ */
228
+ constructor(options) {
229
+ this._options = options || {};
230
+ this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
231
+ this._maxPayload = this._options.maxPayload | 0;
232
+ this._isServer = !!this._options.isServer;
233
+ this._deflate = null;
234
+ this._inflate = null;
235
+ this.params = null;
236
+ if (!zlibLimiter) zlibLimiter = new Limiter(this._options.concurrencyLimit !== void 0 ? this._options.concurrencyLimit : 10);
237
+ }
238
+ /**
239
+ * @type {String}
240
+ */
241
+ static get extensionName() {
242
+ return "permessage-deflate";
243
+ }
244
+ /**
245
+ * Create an extension negotiation offer.
246
+ *
247
+ * @return {Object} Extension parameters
248
+ * @public
249
+ */
250
+ offer() {
251
+ const params = {};
252
+ if (this._options.serverNoContextTakeover) params.server_no_context_takeover = true;
253
+ if (this._options.clientNoContextTakeover) params.client_no_context_takeover = true;
254
+ if (this._options.serverMaxWindowBits) params.server_max_window_bits = this._options.serverMaxWindowBits;
255
+ if (this._options.clientMaxWindowBits) params.client_max_window_bits = this._options.clientMaxWindowBits;
256
+ else if (this._options.clientMaxWindowBits == null) params.client_max_window_bits = true;
257
+ return params;
258
+ }
259
+ /**
260
+ * Accept an extension negotiation offer/response.
261
+ *
262
+ * @param {Array} configurations The extension negotiation offers/reponse
263
+ * @return {Object} Accepted configuration
264
+ * @public
265
+ */
266
+ accept(configurations) {
267
+ configurations = this.normalizeParams(configurations);
268
+ this.params = this._isServer ? this.acceptAsServer(configurations) : this.acceptAsClient(configurations);
269
+ return this.params;
270
+ }
271
+ /**
272
+ * Releases all resources used by the extension.
273
+ *
274
+ * @public
275
+ */
276
+ cleanup() {
277
+ if (this._inflate) {
278
+ this._inflate.close();
279
+ this._inflate = null;
280
+ }
281
+ if (this._deflate) {
282
+ const callback = this._deflate[kCallback];
283
+ this._deflate.close();
284
+ this._deflate = null;
285
+ if (callback) callback(/* @__PURE__ */ new Error("The deflate stream was closed while data was being processed"));
286
+ }
287
+ }
288
+ /**
289
+ * Accept an extension negotiation offer.
290
+ *
291
+ * @param {Array} offers The extension negotiation offers
292
+ * @return {Object} Accepted configuration
293
+ * @private
294
+ */
295
+ acceptAsServer(offers) {
296
+ const opts = this._options;
297
+ const accepted = offers.find((params) => {
298
+ if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && (typeof params.client_max_window_bits === "number" ? opts.clientMaxWindowBits > params.client_max_window_bits : !params.client_max_window_bits)) return false;
299
+ return true;
300
+ });
301
+ if (!accepted) throw new Error("None of the extension offers can be accepted");
302
+ if (opts.serverNoContextTakeover) accepted.server_no_context_takeover = true;
303
+ if (opts.clientNoContextTakeover) accepted.client_no_context_takeover = true;
304
+ if (typeof opts.serverMaxWindowBits === "number") accepted.server_max_window_bits = opts.serverMaxWindowBits;
305
+ if (typeof opts.clientMaxWindowBits === "number") accepted.client_max_window_bits = opts.clientMaxWindowBits;
306
+ else if (accepted.client_max_window_bits === true || opts.clientMaxWindowBits === false) delete accepted.client_max_window_bits;
307
+ return accepted;
308
+ }
309
+ /**
310
+ * Accept the extension negotiation response.
311
+ *
312
+ * @param {Array} response The extension negotiation response
313
+ * @return {Object} Accepted configuration
314
+ * @private
315
+ */
316
+ acceptAsClient(response) {
317
+ const params = response[0];
318
+ if (this._options.clientNoContextTakeover === false && params.client_no_context_takeover) throw new Error("Unexpected parameter \"client_no_context_takeover\"");
319
+ if (!params.client_max_window_bits) {
320
+ if (typeof this._options.clientMaxWindowBits === "number") params.client_max_window_bits = this._options.clientMaxWindowBits;
321
+ } else if (this._options.clientMaxWindowBits === false || typeof this._options.clientMaxWindowBits === "number" && params.client_max_window_bits > this._options.clientMaxWindowBits) throw new Error("Unexpected or invalid parameter \"client_max_window_bits\"");
322
+ return params;
323
+ }
324
+ /**
325
+ * Normalize parameters.
326
+ *
327
+ * @param {Array} configurations The extension negotiation offers/reponse
328
+ * @return {Array} The offers/response with normalized parameters
329
+ * @private
330
+ */
331
+ normalizeParams(configurations) {
332
+ configurations.forEach((params) => {
333
+ Object.keys(params).forEach((key) => {
334
+ let value = params[key];
335
+ if (value.length > 1) throw new Error(`Parameter "${key}" must have only a single value`);
336
+ value = value[0];
337
+ if (key === "client_max_window_bits") {
338
+ if (value !== true) {
339
+ const num = +value;
340
+ if (!Number.isInteger(num) || num < 8 || num > 15) throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
341
+ value = num;
342
+ } else if (!this._isServer) throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
343
+ } else if (key === "server_max_window_bits") {
344
+ const num = +value;
345
+ if (!Number.isInteger(num) || num < 8 || num > 15) throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
346
+ value = num;
347
+ } else if (key === "client_no_context_takeover" || key === "server_no_context_takeover") {
348
+ if (value !== true) throw new TypeError(`Invalid value for parameter "${key}": ${value}`);
349
+ } else throw new Error(`Unknown parameter "${key}"`);
350
+ params[key] = value;
351
+ });
352
+ });
353
+ return configurations;
354
+ }
355
+ /**
356
+ * Decompress data. Concurrency limited.
357
+ *
358
+ * @param {Buffer} data Compressed data
359
+ * @param {Boolean} fin Specifies whether or not this is the last fragment
360
+ * @param {Function} callback Callback
361
+ * @public
362
+ */
363
+ decompress(data, fin, callback) {
364
+ zlibLimiter.add((done) => {
365
+ this._decompress(data, fin, (err, result) => {
366
+ done();
367
+ callback(err, result);
368
+ });
369
+ });
370
+ }
371
+ /**
372
+ * Compress data. Concurrency limited.
373
+ *
374
+ * @param {(Buffer|String)} data Data to compress
375
+ * @param {Boolean} fin Specifies whether or not this is the last fragment
376
+ * @param {Function} callback Callback
377
+ * @public
378
+ */
379
+ compress(data, fin, callback) {
380
+ zlibLimiter.add((done) => {
381
+ this._compress(data, fin, (err, result) => {
382
+ done();
383
+ callback(err, result);
384
+ });
385
+ });
386
+ }
387
+ /**
388
+ * Decompress data.
389
+ *
390
+ * @param {Buffer} data Compressed data
391
+ * @param {Boolean} fin Specifies whether or not this is the last fragment
392
+ * @param {Function} callback Callback
393
+ * @private
394
+ */
395
+ _decompress(data, fin, callback) {
396
+ const endpoint = this._isServer ? "client" : "server";
397
+ if (!this._inflate) {
398
+ const key = `${endpoint}_max_window_bits`;
399
+ const windowBits = typeof this.params[key] !== "number" ? zlib.Z_DEFAULT_WINDOWBITS : this.params[key];
400
+ this._inflate = zlib.createInflateRaw({
401
+ ...this._options.zlibInflateOptions,
402
+ windowBits
403
+ });
404
+ this._inflate[kPerMessageDeflate] = this;
405
+ this._inflate[kTotalLength] = 0;
406
+ this._inflate[kBuffers] = [];
407
+ this._inflate.on("error", inflateOnError);
408
+ this._inflate.on("data", inflateOnData);
409
+ }
410
+ this._inflate[kCallback] = callback;
411
+ this._inflate.write(data);
412
+ if (fin) this._inflate.write(TRAILER);
413
+ this._inflate.flush(() => {
414
+ const err = this._inflate[kError$1];
415
+ if (err) {
416
+ this._inflate.close();
417
+ this._inflate = null;
418
+ callback(err);
419
+ return;
420
+ }
421
+ const data$1 = bufferUtil.concat(this._inflate[kBuffers], this._inflate[kTotalLength]);
422
+ if (this._inflate._readableState.endEmitted) {
423
+ this._inflate.close();
424
+ this._inflate = null;
425
+ } else {
426
+ this._inflate[kTotalLength] = 0;
427
+ this._inflate[kBuffers] = [];
428
+ if (fin && this.params[`${endpoint}_no_context_takeover`]) this._inflate.reset();
429
+ }
430
+ callback(null, data$1);
431
+ });
432
+ }
433
+ /**
434
+ * Compress data.
435
+ *
436
+ * @param {(Buffer|String)} data Data to compress
437
+ * @param {Boolean} fin Specifies whether or not this is the last fragment
438
+ * @param {Function} callback Callback
439
+ * @private
440
+ */
441
+ _compress(data, fin, callback) {
442
+ const endpoint = this._isServer ? "server" : "client";
443
+ if (!this._deflate) {
444
+ const key = `${endpoint}_max_window_bits`;
445
+ const windowBits = typeof this.params[key] !== "number" ? zlib.Z_DEFAULT_WINDOWBITS : this.params[key];
446
+ this._deflate = zlib.createDeflateRaw({
447
+ ...this._options.zlibDeflateOptions,
448
+ windowBits
449
+ });
450
+ this._deflate[kTotalLength] = 0;
451
+ this._deflate[kBuffers] = [];
452
+ this._deflate.on("data", deflateOnData);
453
+ }
454
+ this._deflate[kCallback] = callback;
455
+ this._deflate.write(data);
456
+ this._deflate.flush(zlib.Z_SYNC_FLUSH, () => {
457
+ if (!this._deflate) return;
458
+ let data$1 = bufferUtil.concat(this._deflate[kBuffers], this._deflate[kTotalLength]);
459
+ if (fin) data$1 = new FastBuffer$1(data$1.buffer, data$1.byteOffset, data$1.length - 4);
460
+ this._deflate[kCallback] = null;
461
+ this._deflate[kTotalLength] = 0;
462
+ this._deflate[kBuffers] = [];
463
+ if (fin && this.params[`${endpoint}_no_context_takeover`]) this._deflate.reset();
464
+ callback(null, data$1);
465
+ });
466
+ }
467
+ };
468
+ module.exports = PerMessageDeflate$5;
469
+ /**
470
+ * The listener of the `zlib.DeflateRaw` stream `'data'` event.
471
+ *
472
+ * @param {Buffer} chunk A chunk of data
473
+ * @private
474
+ */
475
+ function deflateOnData(chunk) {
476
+ this[kBuffers].push(chunk);
477
+ this[kTotalLength] += chunk.length;
478
+ }
479
+ /**
480
+ * The listener of the `zlib.InflateRaw` stream `'data'` event.
481
+ *
482
+ * @param {Buffer} chunk A chunk of data
483
+ * @private
484
+ */
485
+ function inflateOnData(chunk) {
486
+ this[kTotalLength] += chunk.length;
487
+ if (this[kPerMessageDeflate]._maxPayload < 1 || this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload) {
488
+ this[kBuffers].push(chunk);
489
+ return;
490
+ }
491
+ this[kError$1] = /* @__PURE__ */ new RangeError("Max payload size exceeded");
492
+ this[kError$1].code = "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";
493
+ this[kError$1][kStatusCode$2] = 1009;
494
+ this.removeListener("data", inflateOnData);
495
+ this.reset();
496
+ }
497
+ /**
498
+ * The listener of the `zlib.InflateRaw` stream `'error'` event.
499
+ *
500
+ * @param {Error} err The emitted error
501
+ * @private
502
+ */
503
+ function inflateOnError(err) {
504
+ this[kPerMessageDeflate]._inflate = null;
505
+ if (this[kError$1]) {
506
+ this[kCallback](this[kError$1]);
507
+ return;
508
+ }
509
+ err[kStatusCode$2] = 1007;
510
+ this[kCallback](err);
511
+ }
512
+ }) });
513
+
514
+ //#endregion
515
+ //#region node_modules/ws/lib/validation.js
516
+ var require_validation = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/validation.js": ((exports, module) => {
517
+ const { isUtf8 } = __require("buffer");
518
+ const { hasBlob } = require_constants();
519
+ const tokenChars$2 = [
520
+ 0,
521
+ 0,
522
+ 0,
523
+ 0,
524
+ 0,
525
+ 0,
526
+ 0,
527
+ 0,
528
+ 0,
529
+ 0,
530
+ 0,
531
+ 0,
532
+ 0,
533
+ 0,
534
+ 0,
535
+ 0,
536
+ 0,
537
+ 0,
538
+ 0,
539
+ 0,
540
+ 0,
541
+ 0,
542
+ 0,
543
+ 0,
544
+ 0,
545
+ 0,
546
+ 0,
547
+ 0,
548
+ 0,
549
+ 0,
550
+ 0,
551
+ 0,
552
+ 0,
553
+ 1,
554
+ 0,
555
+ 1,
556
+ 1,
557
+ 1,
558
+ 1,
559
+ 1,
560
+ 0,
561
+ 0,
562
+ 1,
563
+ 1,
564
+ 0,
565
+ 1,
566
+ 1,
567
+ 0,
568
+ 1,
569
+ 1,
570
+ 1,
571
+ 1,
572
+ 1,
573
+ 1,
574
+ 1,
575
+ 1,
576
+ 1,
577
+ 1,
578
+ 0,
579
+ 0,
580
+ 0,
581
+ 0,
582
+ 0,
583
+ 0,
584
+ 0,
585
+ 1,
586
+ 1,
587
+ 1,
588
+ 1,
589
+ 1,
590
+ 1,
591
+ 1,
592
+ 1,
593
+ 1,
594
+ 1,
595
+ 1,
596
+ 1,
597
+ 1,
598
+ 1,
599
+ 1,
600
+ 1,
601
+ 1,
602
+ 1,
603
+ 1,
604
+ 1,
605
+ 1,
606
+ 1,
607
+ 1,
608
+ 1,
609
+ 1,
610
+ 1,
611
+ 0,
612
+ 0,
613
+ 0,
614
+ 1,
615
+ 1,
616
+ 1,
617
+ 1,
618
+ 1,
619
+ 1,
620
+ 1,
621
+ 1,
622
+ 1,
623
+ 1,
624
+ 1,
625
+ 1,
626
+ 1,
627
+ 1,
628
+ 1,
629
+ 1,
630
+ 1,
631
+ 1,
632
+ 1,
633
+ 1,
634
+ 1,
635
+ 1,
636
+ 1,
637
+ 1,
638
+ 1,
639
+ 1,
640
+ 1,
641
+ 1,
642
+ 1,
643
+ 0,
644
+ 1,
645
+ 0,
646
+ 1,
647
+ 0
648
+ ];
649
+ /**
650
+ * Checks if a status code is allowed in a close frame.
651
+ *
652
+ * @param {Number} code The status code
653
+ * @return {Boolean} `true` if the status code is valid, else `false`
654
+ * @public
655
+ */
656
+ function isValidStatusCode$2(code) {
657
+ return code >= 1e3 && code <= 1014 && code !== 1004 && code !== 1005 && code !== 1006 || code >= 3e3 && code <= 4999;
658
+ }
659
+ /**
660
+ * Checks if a given buffer contains only correct UTF-8.
661
+ * Ported from https://www.cl.cam.ac.uk/%7Emgk25/ucs/utf8_check.c by
662
+ * Markus Kuhn.
663
+ *
664
+ * @param {Buffer} buf The buffer to check
665
+ * @return {Boolean} `true` if `buf` contains only correct UTF-8, else `false`
666
+ * @public
667
+ */
668
+ function _isValidUTF8(buf) {
669
+ const len = buf.length;
670
+ let i = 0;
671
+ while (i < len) if ((buf[i] & 128) === 0) i++;
672
+ else if ((buf[i] & 224) === 192) {
673
+ if (i + 1 === len || (buf[i + 1] & 192) !== 128 || (buf[i] & 254) === 192) return false;
674
+ i += 2;
675
+ } else if ((buf[i] & 240) === 224) {
676
+ if (i + 2 >= len || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || buf[i] === 224 && (buf[i + 1] & 224) === 128 || buf[i] === 237 && (buf[i + 1] & 224) === 160) return false;
677
+ i += 3;
678
+ } else if ((buf[i] & 248) === 240) {
679
+ if (i + 3 >= len || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || (buf[i + 3] & 192) !== 128 || buf[i] === 240 && (buf[i + 1] & 240) === 128 || buf[i] === 244 && buf[i + 1] > 143 || buf[i] > 244) return false;
680
+ i += 4;
681
+ } else return false;
682
+ return true;
683
+ }
684
+ /**
685
+ * Determines whether a value is a `Blob`.
686
+ *
687
+ * @param {*} value The value to be tested
688
+ * @return {Boolean} `true` if `value` is a `Blob`, else `false`
689
+ * @private
690
+ */
691
+ function isBlob$2(value) {
692
+ return hasBlob && typeof value === "object" && typeof value.arrayBuffer === "function" && typeof value.type === "string" && typeof value.stream === "function" && (value[Symbol.toStringTag] === "Blob" || value[Symbol.toStringTag] === "File");
693
+ }
694
+ module.exports = {
695
+ isBlob: isBlob$2,
696
+ isValidStatusCode: isValidStatusCode$2,
697
+ isValidUTF8: _isValidUTF8,
698
+ tokenChars: tokenChars$2
699
+ };
700
+ if (isUtf8) module.exports.isValidUTF8 = function(buf) {
701
+ return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf);
702
+ };
703
+ else if (!process.env.WS_NO_UTF_8_VALIDATE) try {
704
+ const isValidUTF8$1 = __require("utf-8-validate");
705
+ module.exports.isValidUTF8 = function(buf) {
706
+ return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8$1(buf);
707
+ };
708
+ } catch (e) {}
709
+ }) });
710
+
711
+ //#endregion
712
+ //#region node_modules/ws/lib/receiver.js
713
+ var require_receiver = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/receiver.js": ((exports, module) => {
714
+ const { Writable } = __require("stream");
715
+ const PerMessageDeflate$4 = require_permessage_deflate();
716
+ const { BINARY_TYPES: BINARY_TYPES$1, EMPTY_BUFFER: EMPTY_BUFFER$2, kStatusCode: kStatusCode$1, kWebSocket: kWebSocket$3 } = require_constants();
717
+ const { concat, toArrayBuffer, unmask } = require_buffer_util();
718
+ const { isValidStatusCode: isValidStatusCode$1, isValidUTF8 } = require_validation();
719
+ const FastBuffer = Buffer[Symbol.species];
720
+ const GET_INFO = 0;
721
+ const GET_PAYLOAD_LENGTH_16 = 1;
722
+ const GET_PAYLOAD_LENGTH_64 = 2;
723
+ const GET_MASK = 3;
724
+ const GET_DATA = 4;
725
+ const INFLATING = 5;
726
+ const DEFER_EVENT = 6;
727
+ /**
728
+ * HyBi Receiver implementation.
729
+ *
730
+ * @extends Writable
731
+ */
732
+ var Receiver$2 = class extends Writable {
733
+ /**
734
+ * Creates a Receiver instance.
735
+ *
736
+ * @param {Object} [options] Options object
737
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
738
+ * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
739
+ * multiple times in the same tick
740
+ * @param {String} [options.binaryType=nodebuffer] The type for binary data
741
+ * @param {Object} [options.extensions] An object containing the negotiated
742
+ * extensions
743
+ * @param {Boolean} [options.isServer=false] Specifies whether to operate in
744
+ * client or server mode
745
+ * @param {Number} [options.maxBufferedChunks=0] The maximum number of
746
+ * buffered data chunks
747
+ * @param {Number} [options.maxFragments=0] The maximum number of message
748
+ * fragments
749
+ * @param {Number} [options.maxPayload=0] The maximum allowed message length
750
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
751
+ * not to skip UTF-8 validation for text and close messages
752
+ */
753
+ constructor(options = {}) {
754
+ super();
755
+ this._allowSynchronousEvents = options.allowSynchronousEvents !== void 0 ? options.allowSynchronousEvents : true;
756
+ this._binaryType = options.binaryType || BINARY_TYPES$1[0];
757
+ this._extensions = options.extensions || {};
758
+ this._isServer = !!options.isServer;
759
+ this._maxBufferedChunks = options.maxBufferedChunks | 0;
760
+ this._maxFragments = options.maxFragments | 0;
761
+ this._maxPayload = options.maxPayload | 0;
762
+ this._skipUTF8Validation = !!options.skipUTF8Validation;
763
+ this[kWebSocket$3] = void 0;
764
+ this._bufferedBytes = 0;
765
+ this._buffers = [];
766
+ this._compressed = false;
767
+ this._payloadLength = 0;
768
+ this._mask = void 0;
769
+ this._fragmented = 0;
770
+ this._masked = false;
771
+ this._fin = false;
772
+ this._opcode = 0;
773
+ this._totalPayloadLength = 0;
774
+ this._messageLength = 0;
775
+ this._numFragments = 0;
776
+ this._fragments = [];
777
+ this._errored = false;
778
+ this._loop = false;
779
+ this._state = GET_INFO;
780
+ }
781
+ /**
782
+ * Implements `Writable.prototype._write()`.
783
+ *
784
+ * @param {Buffer} chunk The chunk of data to write
785
+ * @param {String} encoding The character encoding of `chunk`
786
+ * @param {Function} cb Callback
787
+ * @private
788
+ */
789
+ _write(chunk, encoding, cb) {
790
+ if (this._opcode === 8 && this._state == GET_INFO) return cb();
791
+ if (this._maxBufferedChunks > 0 && this._buffers.length >= this._maxBufferedChunks) {
792
+ cb(this.createError(RangeError, "Too many buffered chunks", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS"));
793
+ return;
794
+ }
795
+ this._bufferedBytes += chunk.length;
796
+ this._buffers.push(chunk);
797
+ this.startLoop(cb);
798
+ }
799
+ /**
800
+ * Consumes `n` bytes from the buffered data.
801
+ *
802
+ * @param {Number} n The number of bytes to consume
803
+ * @return {Buffer} The consumed bytes
804
+ * @private
805
+ */
806
+ consume(n) {
807
+ this._bufferedBytes -= n;
808
+ if (n === this._buffers[0].length) return this._buffers.shift();
809
+ if (n < this._buffers[0].length) {
810
+ const buf = this._buffers[0];
811
+ this._buffers[0] = new FastBuffer(buf.buffer, buf.byteOffset + n, buf.length - n);
812
+ return new FastBuffer(buf.buffer, buf.byteOffset, n);
813
+ }
814
+ const dst = Buffer.allocUnsafe(n);
815
+ do {
816
+ const buf = this._buffers[0];
817
+ const offset = dst.length - n;
818
+ if (n >= buf.length) dst.set(this._buffers.shift(), offset);
819
+ else {
820
+ dst.set(new Uint8Array(buf.buffer, buf.byteOffset, n), offset);
821
+ this._buffers[0] = new FastBuffer(buf.buffer, buf.byteOffset + n, buf.length - n);
822
+ }
823
+ n -= buf.length;
824
+ } while (n > 0);
825
+ return dst;
826
+ }
827
+ /**
828
+ * Starts the parsing loop.
829
+ *
830
+ * @param {Function} cb Callback
831
+ * @private
832
+ */
833
+ startLoop(cb) {
834
+ this._loop = true;
835
+ do
836
+ switch (this._state) {
837
+ case GET_INFO:
838
+ this.getInfo(cb);
839
+ break;
840
+ case GET_PAYLOAD_LENGTH_16:
841
+ this.getPayloadLength16(cb);
842
+ break;
843
+ case GET_PAYLOAD_LENGTH_64:
844
+ this.getPayloadLength64(cb);
845
+ break;
846
+ case GET_MASK:
847
+ this.getMask();
848
+ break;
849
+ case GET_DATA:
850
+ this.getData(cb);
851
+ break;
852
+ case INFLATING:
853
+ case DEFER_EVENT:
854
+ this._loop = false;
855
+ return;
856
+ }
857
+ while (this._loop);
858
+ if (!this._errored) cb();
859
+ }
860
+ /**
861
+ * Reads the first two bytes of a frame.
862
+ *
863
+ * @param {Function} cb Callback
864
+ * @private
865
+ */
866
+ getInfo(cb) {
867
+ if (this._bufferedBytes < 2) {
868
+ this._loop = false;
869
+ return;
870
+ }
871
+ const buf = this.consume(2);
872
+ if ((buf[0] & 48) !== 0) {
873
+ cb(this.createError(RangeError, "RSV2 and RSV3 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_2_3"));
874
+ return;
875
+ }
876
+ const compressed = (buf[0] & 64) === 64;
877
+ if (compressed && !this._extensions[PerMessageDeflate$4.extensionName]) {
878
+ cb(this.createError(RangeError, "RSV1 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_1"));
879
+ return;
880
+ }
881
+ this._fin = (buf[0] & 128) === 128;
882
+ this._opcode = buf[0] & 15;
883
+ this._payloadLength = buf[1] & 127;
884
+ if (this._opcode === 0) {
885
+ if (compressed) {
886
+ cb(this.createError(RangeError, "RSV1 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_1"));
887
+ return;
888
+ }
889
+ if (!this._fragmented) {
890
+ cb(this.createError(RangeError, "invalid opcode 0", true, 1002, "WS_ERR_INVALID_OPCODE"));
891
+ return;
892
+ }
893
+ this._opcode = this._fragmented;
894
+ } else if (this._opcode === 1 || this._opcode === 2) {
895
+ if (this._fragmented) {
896
+ cb(this.createError(RangeError, `invalid opcode ${this._opcode}`, true, 1002, "WS_ERR_INVALID_OPCODE"));
897
+ return;
898
+ }
899
+ this._compressed = compressed;
900
+ } else if (this._opcode > 7 && this._opcode < 11) {
901
+ if (!this._fin) {
902
+ cb(this.createError(RangeError, "FIN must be set", true, 1002, "WS_ERR_EXPECTED_FIN"));
903
+ return;
904
+ }
905
+ if (compressed) {
906
+ cb(this.createError(RangeError, "RSV1 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_1"));
907
+ return;
908
+ }
909
+ if (this._payloadLength > 125 || this._opcode === 8 && this._payloadLength === 1) {
910
+ cb(this.createError(RangeError, `invalid payload length ${this._payloadLength}`, true, 1002, "WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"));
911
+ return;
912
+ }
913
+ } else {
914
+ cb(this.createError(RangeError, `invalid opcode ${this._opcode}`, true, 1002, "WS_ERR_INVALID_OPCODE"));
915
+ return;
916
+ }
917
+ if (!this._fin && !this._fragmented) this._fragmented = this._opcode;
918
+ this._masked = (buf[1] & 128) === 128;
919
+ if (this._isServer) {
920
+ if (!this._masked) {
921
+ cb(this.createError(RangeError, "MASK must be set", true, 1002, "WS_ERR_EXPECTED_MASK"));
922
+ return;
923
+ }
924
+ } else if (this._masked) {
925
+ cb(this.createError(RangeError, "MASK must be clear", true, 1002, "WS_ERR_UNEXPECTED_MASK"));
926
+ return;
927
+ }
928
+ if (this._payloadLength === 126) this._state = GET_PAYLOAD_LENGTH_16;
929
+ else if (this._payloadLength === 127) this._state = GET_PAYLOAD_LENGTH_64;
930
+ else this.haveLength(cb);
931
+ }
932
+ /**
933
+ * Gets extended payload length (7+16).
934
+ *
935
+ * @param {Function} cb Callback
936
+ * @private
937
+ */
938
+ getPayloadLength16(cb) {
939
+ if (this._bufferedBytes < 2) {
940
+ this._loop = false;
941
+ return;
942
+ }
943
+ this._payloadLength = this.consume(2).readUInt16BE(0);
944
+ this.haveLength(cb);
945
+ }
946
+ /**
947
+ * Gets extended payload length (7+64).
948
+ *
949
+ * @param {Function} cb Callback
950
+ * @private
951
+ */
952
+ getPayloadLength64(cb) {
953
+ if (this._bufferedBytes < 8) {
954
+ this._loop = false;
955
+ return;
956
+ }
957
+ const buf = this.consume(8);
958
+ const num = buf.readUInt32BE(0);
959
+ if (num > Math.pow(2, 21) - 1) {
960
+ cb(this.createError(RangeError, "Unsupported WebSocket frame: payload length > 2^53 - 1", false, 1009, "WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"));
961
+ return;
962
+ }
963
+ this._payloadLength = num * Math.pow(2, 32) + buf.readUInt32BE(4);
964
+ this.haveLength(cb);
965
+ }
966
+ /**
967
+ * Payload length has been read.
968
+ *
969
+ * @param {Function} cb Callback
970
+ * @private
971
+ */
972
+ haveLength(cb) {
973
+ if (this._payloadLength && this._opcode < 8) {
974
+ this._totalPayloadLength += this._payloadLength;
975
+ if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) {
976
+ cb(this.createError(RangeError, "Max payload size exceeded", false, 1009, "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));
977
+ return;
978
+ }
979
+ }
980
+ if (this._masked) this._state = GET_MASK;
981
+ else this._state = GET_DATA;
982
+ }
983
+ /**
984
+ * Reads mask bytes.
985
+ *
986
+ * @private
987
+ */
988
+ getMask() {
989
+ if (this._bufferedBytes < 4) {
990
+ this._loop = false;
991
+ return;
992
+ }
993
+ this._mask = this.consume(4);
994
+ this._state = GET_DATA;
995
+ }
996
+ /**
997
+ * Reads data bytes.
998
+ *
999
+ * @param {Function} cb Callback
1000
+ * @private
1001
+ */
1002
+ getData(cb) {
1003
+ let data = EMPTY_BUFFER$2;
1004
+ if (this._payloadLength) {
1005
+ if (this._bufferedBytes < this._payloadLength) {
1006
+ this._loop = false;
1007
+ return;
1008
+ }
1009
+ data = this.consume(this._payloadLength);
1010
+ if (this._masked && (this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3]) !== 0) unmask(data, this._mask);
1011
+ }
1012
+ if (this._opcode > 7) {
1013
+ this.controlMessage(data, cb);
1014
+ return;
1015
+ }
1016
+ if (this._maxFragments > 0 && ++this._numFragments > this._maxFragments) {
1017
+ cb(this.createError(RangeError, "Too many message fragments", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS"));
1018
+ return;
1019
+ }
1020
+ if (this._compressed) {
1021
+ this._state = INFLATING;
1022
+ this.decompress(data, cb);
1023
+ return;
1024
+ }
1025
+ if (data.length) {
1026
+ this._messageLength = this._totalPayloadLength;
1027
+ this._fragments.push(data);
1028
+ }
1029
+ this.dataMessage(cb);
1030
+ }
1031
+ /**
1032
+ * Decompresses data.
1033
+ *
1034
+ * @param {Buffer} data Compressed data
1035
+ * @param {Function} cb Callback
1036
+ * @private
1037
+ */
1038
+ decompress(data, cb) {
1039
+ this._extensions[PerMessageDeflate$4.extensionName].decompress(data, this._fin, (err, buf) => {
1040
+ if (err) return cb(err);
1041
+ if (buf.length) {
1042
+ this._messageLength += buf.length;
1043
+ if (this._messageLength > this._maxPayload && this._maxPayload > 0) {
1044
+ cb(this.createError(RangeError, "Max payload size exceeded", false, 1009, "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));
1045
+ return;
1046
+ }
1047
+ this._fragments.push(buf);
1048
+ }
1049
+ this.dataMessage(cb);
1050
+ if (this._state === GET_INFO) this.startLoop(cb);
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Handles a data message.
1055
+ *
1056
+ * @param {Function} cb Callback
1057
+ * @private
1058
+ */
1059
+ dataMessage(cb) {
1060
+ if (!this._fin) {
1061
+ this._state = GET_INFO;
1062
+ return;
1063
+ }
1064
+ const messageLength = this._messageLength;
1065
+ const fragments = this._fragments;
1066
+ this._totalPayloadLength = 0;
1067
+ this._messageLength = 0;
1068
+ this._fragmented = 0;
1069
+ this._numFragments = 0;
1070
+ this._fragments = [];
1071
+ if (this._opcode === 2) {
1072
+ let data;
1073
+ if (this._binaryType === "nodebuffer") data = concat(fragments, messageLength);
1074
+ else if (this._binaryType === "arraybuffer") data = toArrayBuffer(concat(fragments, messageLength));
1075
+ else if (this._binaryType === "blob") data = new Blob(fragments);
1076
+ else data = fragments;
1077
+ if (this._allowSynchronousEvents) {
1078
+ this.emit("message", data, true);
1079
+ this._state = GET_INFO;
1080
+ } else {
1081
+ this._state = DEFER_EVENT;
1082
+ setImmediate(() => {
1083
+ this.emit("message", data, true);
1084
+ this._state = GET_INFO;
1085
+ this.startLoop(cb);
1086
+ });
1087
+ }
1088
+ } else {
1089
+ const buf = concat(fragments, messageLength);
1090
+ if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
1091
+ cb(this.createError(Error, "invalid UTF-8 sequence", true, 1007, "WS_ERR_INVALID_UTF8"));
1092
+ return;
1093
+ }
1094
+ if (this._state === INFLATING || this._allowSynchronousEvents) {
1095
+ this.emit("message", buf, false);
1096
+ this._state = GET_INFO;
1097
+ } else {
1098
+ this._state = DEFER_EVENT;
1099
+ setImmediate(() => {
1100
+ this.emit("message", buf, false);
1101
+ this._state = GET_INFO;
1102
+ this.startLoop(cb);
1103
+ });
1104
+ }
1105
+ }
1106
+ }
1107
+ /**
1108
+ * Handles a control message.
1109
+ *
1110
+ * @param {Buffer} data Data to handle
1111
+ * @return {(Error|RangeError|undefined)} A possible error
1112
+ * @private
1113
+ */
1114
+ controlMessage(data, cb) {
1115
+ if (this._opcode === 8) {
1116
+ if (data.length === 0) {
1117
+ this._loop = false;
1118
+ this.emit("conclude", 1005, EMPTY_BUFFER$2);
1119
+ this.end();
1120
+ } else {
1121
+ const code = data.readUInt16BE(0);
1122
+ if (!isValidStatusCode$1(code)) {
1123
+ cb(this.createError(RangeError, `invalid status code ${code}`, true, 1002, "WS_ERR_INVALID_CLOSE_CODE"));
1124
+ return;
1125
+ }
1126
+ const buf = new FastBuffer(data.buffer, data.byteOffset + 2, data.length - 2);
1127
+ if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
1128
+ cb(this.createError(Error, "invalid UTF-8 sequence", true, 1007, "WS_ERR_INVALID_UTF8"));
1129
+ return;
1130
+ }
1131
+ this._loop = false;
1132
+ this.emit("conclude", code, buf);
1133
+ this.end();
1134
+ }
1135
+ this._state = GET_INFO;
1136
+ return;
1137
+ }
1138
+ if (this._allowSynchronousEvents) {
1139
+ this.emit(this._opcode === 9 ? "ping" : "pong", data);
1140
+ this._state = GET_INFO;
1141
+ } else {
1142
+ this._state = DEFER_EVENT;
1143
+ setImmediate(() => {
1144
+ this.emit(this._opcode === 9 ? "ping" : "pong", data);
1145
+ this._state = GET_INFO;
1146
+ this.startLoop(cb);
1147
+ });
1148
+ }
1149
+ }
1150
+ /**
1151
+ * Builds an error object.
1152
+ *
1153
+ * @param {function(new:Error|RangeError)} ErrorCtor The error constructor
1154
+ * @param {String} message The error message
1155
+ * @param {Boolean} prefix Specifies whether or not to add a default prefix to
1156
+ * `message`
1157
+ * @param {Number} statusCode The status code
1158
+ * @param {String} errorCode The exposed error code
1159
+ * @return {(Error|RangeError)} The error
1160
+ * @private
1161
+ */
1162
+ createError(ErrorCtor, message, prefix, statusCode, errorCode) {
1163
+ this._loop = false;
1164
+ this._errored = true;
1165
+ const err = new ErrorCtor(prefix ? `Invalid WebSocket frame: ${message}` : message);
1166
+ Error.captureStackTrace(err, this.createError);
1167
+ err.code = errorCode;
1168
+ err[kStatusCode$1] = statusCode;
1169
+ return err;
1170
+ }
1171
+ };
1172
+ module.exports = Receiver$2;
1173
+ }) });
1174
+
1175
+ //#endregion
1176
+ //#region node_modules/ws/lib/sender.js
1177
+ var require_sender = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/sender.js": ((exports, module) => {
1178
+ const { Duplex: Duplex$3 } = __require("stream");
1179
+ const { randomFillSync } = __require("crypto");
1180
+ const { types: { isUint8Array } } = __require("util");
1181
+ const PerMessageDeflate$3 = require_permessage_deflate();
1182
+ const { EMPTY_BUFFER: EMPTY_BUFFER$1, kWebSocket: kWebSocket$2, NOOP: NOOP$1 } = require_constants();
1183
+ const { isBlob: isBlob$1, isValidStatusCode } = require_validation();
1184
+ const { mask: applyMask, toBuffer: toBuffer$1 } = require_buffer_util();
1185
+ const kByteLength = Symbol("kByteLength");
1186
+ const maskBuffer = Buffer.alloc(4);
1187
+ const RANDOM_POOL_SIZE = 8 * 1024;
1188
+ let randomPool;
1189
+ let randomPoolPointer = RANDOM_POOL_SIZE;
1190
+ const DEFAULT = 0;
1191
+ const DEFLATING = 1;
1192
+ const GET_BLOB_DATA = 2;
1193
+ /**
1194
+ * HyBi Sender implementation.
1195
+ */
1196
+ var Sender$2 = class Sender$2 {
1197
+ /**
1198
+ * Creates a Sender instance.
1199
+ *
1200
+ * @param {Duplex} socket The connection socket
1201
+ * @param {Object} [extensions] An object containing the negotiated extensions
1202
+ * @param {Function} [generateMask] The function used to generate the masking
1203
+ * key
1204
+ */
1205
+ constructor(socket, extensions, generateMask) {
1206
+ this._extensions = extensions || {};
1207
+ if (generateMask) {
1208
+ this._generateMask = generateMask;
1209
+ this._maskBuffer = Buffer.alloc(4);
1210
+ }
1211
+ this._socket = socket;
1212
+ this._firstFragment = true;
1213
+ this._compress = false;
1214
+ this._bufferedBytes = 0;
1215
+ this._queue = [];
1216
+ this._state = DEFAULT;
1217
+ this.onerror = NOOP$1;
1218
+ this[kWebSocket$2] = void 0;
1219
+ }
1220
+ /**
1221
+ * Frames a piece of data according to the HyBi WebSocket protocol.
1222
+ *
1223
+ * @param {(Buffer|String)} data The data to frame
1224
+ * @param {Object} options Options object
1225
+ * @param {Boolean} [options.fin=false] Specifies whether or not to set the
1226
+ * FIN bit
1227
+ * @param {Function} [options.generateMask] The function used to generate the
1228
+ * masking key
1229
+ * @param {Boolean} [options.mask=false] Specifies whether or not to mask
1230
+ * `data`
1231
+ * @param {Buffer} [options.maskBuffer] The buffer used to store the masking
1232
+ * key
1233
+ * @param {Number} options.opcode The opcode
1234
+ * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
1235
+ * modified
1236
+ * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
1237
+ * RSV1 bit
1238
+ * @return {(Buffer|String)[]} The framed data
1239
+ * @public
1240
+ */
1241
+ static frame(data, options) {
1242
+ let mask;
1243
+ let merge = false;
1244
+ let offset = 2;
1245
+ let skipMasking = false;
1246
+ if (options.mask) {
1247
+ mask = options.maskBuffer || maskBuffer;
1248
+ if (options.generateMask) options.generateMask(mask);
1249
+ else {
1250
+ if (randomPoolPointer === RANDOM_POOL_SIZE) {
1251
+ /* istanbul ignore else */
1252
+ if (randomPool === void 0) randomPool = Buffer.alloc(RANDOM_POOL_SIZE);
1253
+ randomFillSync(randomPool, 0, RANDOM_POOL_SIZE);
1254
+ randomPoolPointer = 0;
1255
+ }
1256
+ mask[0] = randomPool[randomPoolPointer++];
1257
+ mask[1] = randomPool[randomPoolPointer++];
1258
+ mask[2] = randomPool[randomPoolPointer++];
1259
+ mask[3] = randomPool[randomPoolPointer++];
1260
+ }
1261
+ skipMasking = (mask[0] | mask[1] | mask[2] | mask[3]) === 0;
1262
+ offset = 6;
1263
+ }
1264
+ let dataLength;
1265
+ if (typeof data === "string") if ((!options.mask || skipMasking) && options[kByteLength] !== void 0) dataLength = options[kByteLength];
1266
+ else {
1267
+ data = Buffer.from(data);
1268
+ dataLength = data.length;
1269
+ }
1270
+ else {
1271
+ dataLength = data.length;
1272
+ merge = options.mask && options.readOnly && !skipMasking;
1273
+ }
1274
+ let payloadLength = dataLength;
1275
+ if (dataLength >= 65536) {
1276
+ offset += 8;
1277
+ payloadLength = 127;
1278
+ } else if (dataLength > 125) {
1279
+ offset += 2;
1280
+ payloadLength = 126;
1281
+ }
1282
+ const target = Buffer.allocUnsafe(merge ? dataLength + offset : offset);
1283
+ target[0] = options.fin ? options.opcode | 128 : options.opcode;
1284
+ if (options.rsv1) target[0] |= 64;
1285
+ target[1] = payloadLength;
1286
+ if (payloadLength === 126) target.writeUInt16BE(dataLength, 2);
1287
+ else if (payloadLength === 127) {
1288
+ target[2] = target[3] = 0;
1289
+ target.writeUIntBE(dataLength, 4, 6);
1290
+ }
1291
+ if (!options.mask) return [target, data];
1292
+ target[1] |= 128;
1293
+ target[offset - 4] = mask[0];
1294
+ target[offset - 3] = mask[1];
1295
+ target[offset - 2] = mask[2];
1296
+ target[offset - 1] = mask[3];
1297
+ if (skipMasking) return [target, data];
1298
+ if (merge) {
1299
+ applyMask(data, mask, target, offset, dataLength);
1300
+ return [target];
1301
+ }
1302
+ applyMask(data, mask, data, 0, dataLength);
1303
+ return [target, data];
1304
+ }
1305
+ /**
1306
+ * Sends a close message to the other peer.
1307
+ *
1308
+ * @param {Number} [code] The status code component of the body
1309
+ * @param {(String|Buffer)} [data] The message component of the body
1310
+ * @param {Boolean} [mask=false] Specifies whether or not to mask the message
1311
+ * @param {Function} [cb] Callback
1312
+ * @public
1313
+ */
1314
+ close(code, data, mask, cb) {
1315
+ let buf;
1316
+ if (code === void 0) buf = EMPTY_BUFFER$1;
1317
+ else if (typeof code !== "number" || !isValidStatusCode(code)) throw new TypeError("First argument must be a valid error code number");
1318
+ else if (data === void 0 || !data.length) {
1319
+ buf = Buffer.allocUnsafe(2);
1320
+ buf.writeUInt16BE(code, 0);
1321
+ } else {
1322
+ const length = Buffer.byteLength(data);
1323
+ if (length > 123) throw new RangeError("The message must not be greater than 123 bytes");
1324
+ buf = Buffer.allocUnsafe(2 + length);
1325
+ buf.writeUInt16BE(code, 0);
1326
+ if (typeof data === "string") buf.write(data, 2);
1327
+ else if (isUint8Array(data)) buf.set(data, 2);
1328
+ else throw new TypeError("Second argument must be a string or a Uint8Array");
1329
+ }
1330
+ const options = {
1331
+ [kByteLength]: buf.length,
1332
+ fin: true,
1333
+ generateMask: this._generateMask,
1334
+ mask,
1335
+ maskBuffer: this._maskBuffer,
1336
+ opcode: 8,
1337
+ readOnly: false,
1338
+ rsv1: false
1339
+ };
1340
+ if (this._state !== DEFAULT) this.enqueue([
1341
+ this.dispatch,
1342
+ buf,
1343
+ false,
1344
+ options,
1345
+ cb
1346
+ ]);
1347
+ else this.sendFrame(Sender$2.frame(buf, options), cb);
1348
+ }
1349
+ /**
1350
+ * Sends a ping message to the other peer.
1351
+ *
1352
+ * @param {*} data The message to send
1353
+ * @param {Boolean} [mask=false] Specifies whether or not to mask `data`
1354
+ * @param {Function} [cb] Callback
1355
+ * @public
1356
+ */
1357
+ ping(data, mask, cb) {
1358
+ let byteLength;
1359
+ let readOnly;
1360
+ if (typeof data === "string") {
1361
+ byteLength = Buffer.byteLength(data);
1362
+ readOnly = false;
1363
+ } else if (isBlob$1(data)) {
1364
+ byteLength = data.size;
1365
+ readOnly = false;
1366
+ } else {
1367
+ data = toBuffer$1(data);
1368
+ byteLength = data.length;
1369
+ readOnly = toBuffer$1.readOnly;
1370
+ }
1371
+ if (byteLength > 125) throw new RangeError("The data size must not be greater than 125 bytes");
1372
+ const options = {
1373
+ [kByteLength]: byteLength,
1374
+ fin: true,
1375
+ generateMask: this._generateMask,
1376
+ mask,
1377
+ maskBuffer: this._maskBuffer,
1378
+ opcode: 9,
1379
+ readOnly,
1380
+ rsv1: false
1381
+ };
1382
+ if (isBlob$1(data)) if (this._state !== DEFAULT) this.enqueue([
1383
+ this.getBlobData,
1384
+ data,
1385
+ false,
1386
+ options,
1387
+ cb
1388
+ ]);
1389
+ else this.getBlobData(data, false, options, cb);
1390
+ else if (this._state !== DEFAULT) this.enqueue([
1391
+ this.dispatch,
1392
+ data,
1393
+ false,
1394
+ options,
1395
+ cb
1396
+ ]);
1397
+ else this.sendFrame(Sender$2.frame(data, options), cb);
1398
+ }
1399
+ /**
1400
+ * Sends a pong message to the other peer.
1401
+ *
1402
+ * @param {*} data The message to send
1403
+ * @param {Boolean} [mask=false] Specifies whether or not to mask `data`
1404
+ * @param {Function} [cb] Callback
1405
+ * @public
1406
+ */
1407
+ pong(data, mask, cb) {
1408
+ let byteLength;
1409
+ let readOnly;
1410
+ if (typeof data === "string") {
1411
+ byteLength = Buffer.byteLength(data);
1412
+ readOnly = false;
1413
+ } else if (isBlob$1(data)) {
1414
+ byteLength = data.size;
1415
+ readOnly = false;
1416
+ } else {
1417
+ data = toBuffer$1(data);
1418
+ byteLength = data.length;
1419
+ readOnly = toBuffer$1.readOnly;
1420
+ }
1421
+ if (byteLength > 125) throw new RangeError("The data size must not be greater than 125 bytes");
1422
+ const options = {
1423
+ [kByteLength]: byteLength,
1424
+ fin: true,
1425
+ generateMask: this._generateMask,
1426
+ mask,
1427
+ maskBuffer: this._maskBuffer,
1428
+ opcode: 10,
1429
+ readOnly,
1430
+ rsv1: false
1431
+ };
1432
+ if (isBlob$1(data)) if (this._state !== DEFAULT) this.enqueue([
1433
+ this.getBlobData,
1434
+ data,
1435
+ false,
1436
+ options,
1437
+ cb
1438
+ ]);
1439
+ else this.getBlobData(data, false, options, cb);
1440
+ else if (this._state !== DEFAULT) this.enqueue([
1441
+ this.dispatch,
1442
+ data,
1443
+ false,
1444
+ options,
1445
+ cb
1446
+ ]);
1447
+ else this.sendFrame(Sender$2.frame(data, options), cb);
1448
+ }
1449
+ /**
1450
+ * Sends a data message to the other peer.
1451
+ *
1452
+ * @param {*} data The message to send
1453
+ * @param {Object} options Options object
1454
+ * @param {Boolean} [options.binary=false] Specifies whether `data` is binary
1455
+ * or text
1456
+ * @param {Boolean} [options.compress=false] Specifies whether or not to
1457
+ * compress `data`
1458
+ * @param {Boolean} [options.fin=false] Specifies whether the fragment is the
1459
+ * last one
1460
+ * @param {Boolean} [options.mask=false] Specifies whether or not to mask
1461
+ * `data`
1462
+ * @param {Function} [cb] Callback
1463
+ * @public
1464
+ */
1465
+ send(data, options, cb) {
1466
+ const perMessageDeflate = this._extensions[PerMessageDeflate$3.extensionName];
1467
+ let opcode = options.binary ? 2 : 1;
1468
+ let rsv1 = options.compress;
1469
+ let byteLength;
1470
+ let readOnly;
1471
+ if (typeof data === "string") {
1472
+ byteLength = Buffer.byteLength(data);
1473
+ readOnly = false;
1474
+ } else if (isBlob$1(data)) {
1475
+ byteLength = data.size;
1476
+ readOnly = false;
1477
+ } else {
1478
+ data = toBuffer$1(data);
1479
+ byteLength = data.length;
1480
+ readOnly = toBuffer$1.readOnly;
1481
+ }
1482
+ if (this._firstFragment) {
1483
+ this._firstFragment = false;
1484
+ if (rsv1 && perMessageDeflate && perMessageDeflate.params[perMessageDeflate._isServer ? "server_no_context_takeover" : "client_no_context_takeover"]) rsv1 = byteLength >= perMessageDeflate._threshold;
1485
+ this._compress = rsv1;
1486
+ } else {
1487
+ rsv1 = false;
1488
+ opcode = 0;
1489
+ }
1490
+ if (options.fin) this._firstFragment = true;
1491
+ const opts = {
1492
+ [kByteLength]: byteLength,
1493
+ fin: options.fin,
1494
+ generateMask: this._generateMask,
1495
+ mask: options.mask,
1496
+ maskBuffer: this._maskBuffer,
1497
+ opcode,
1498
+ readOnly,
1499
+ rsv1
1500
+ };
1501
+ if (isBlob$1(data)) if (this._state !== DEFAULT) this.enqueue([
1502
+ this.getBlobData,
1503
+ data,
1504
+ this._compress,
1505
+ opts,
1506
+ cb
1507
+ ]);
1508
+ else this.getBlobData(data, this._compress, opts, cb);
1509
+ else if (this._state !== DEFAULT) this.enqueue([
1510
+ this.dispatch,
1511
+ data,
1512
+ this._compress,
1513
+ opts,
1514
+ cb
1515
+ ]);
1516
+ else this.dispatch(data, this._compress, opts, cb);
1517
+ }
1518
+ /**
1519
+ * Gets the contents of a blob as binary data.
1520
+ *
1521
+ * @param {Blob} blob The blob
1522
+ * @param {Boolean} [compress=false] Specifies whether or not to compress
1523
+ * the data
1524
+ * @param {Object} options Options object
1525
+ * @param {Boolean} [options.fin=false] Specifies whether or not to set the
1526
+ * FIN bit
1527
+ * @param {Function} [options.generateMask] The function used to generate the
1528
+ * masking key
1529
+ * @param {Boolean} [options.mask=false] Specifies whether or not to mask
1530
+ * `data`
1531
+ * @param {Buffer} [options.maskBuffer] The buffer used to store the masking
1532
+ * key
1533
+ * @param {Number} options.opcode The opcode
1534
+ * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
1535
+ * modified
1536
+ * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
1537
+ * RSV1 bit
1538
+ * @param {Function} [cb] Callback
1539
+ * @private
1540
+ */
1541
+ getBlobData(blob, compress, options, cb) {
1542
+ this._bufferedBytes += options[kByteLength];
1543
+ this._state = GET_BLOB_DATA;
1544
+ blob.arrayBuffer().then((arrayBuffer) => {
1545
+ if (this._socket.destroyed) {
1546
+ const err = /* @__PURE__ */ new Error("The socket was closed while the blob was being read");
1547
+ process.nextTick(callCallbacks, this, err, cb);
1548
+ return;
1549
+ }
1550
+ this._bufferedBytes -= options[kByteLength];
1551
+ const data = toBuffer$1(arrayBuffer);
1552
+ if (!compress) {
1553
+ this._state = DEFAULT;
1554
+ this.sendFrame(Sender$2.frame(data, options), cb);
1555
+ this.dequeue();
1556
+ } else this.dispatch(data, compress, options, cb);
1557
+ }).catch((err) => {
1558
+ process.nextTick(onError, this, err, cb);
1559
+ });
1560
+ }
1561
+ /**
1562
+ * Dispatches a message.
1563
+ *
1564
+ * @param {(Buffer|String)} data The message to send
1565
+ * @param {Boolean} [compress=false] Specifies whether or not to compress
1566
+ * `data`
1567
+ * @param {Object} options Options object
1568
+ * @param {Boolean} [options.fin=false] Specifies whether or not to set the
1569
+ * FIN bit
1570
+ * @param {Function} [options.generateMask] The function used to generate the
1571
+ * masking key
1572
+ * @param {Boolean} [options.mask=false] Specifies whether or not to mask
1573
+ * `data`
1574
+ * @param {Buffer} [options.maskBuffer] The buffer used to store the masking
1575
+ * key
1576
+ * @param {Number} options.opcode The opcode
1577
+ * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
1578
+ * modified
1579
+ * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
1580
+ * RSV1 bit
1581
+ * @param {Function} [cb] Callback
1582
+ * @private
1583
+ */
1584
+ dispatch(data, compress, options, cb) {
1585
+ if (!compress) {
1586
+ this.sendFrame(Sender$2.frame(data, options), cb);
1587
+ return;
1588
+ }
1589
+ const perMessageDeflate = this._extensions[PerMessageDeflate$3.extensionName];
1590
+ this._bufferedBytes += options[kByteLength];
1591
+ this._state = DEFLATING;
1592
+ perMessageDeflate.compress(data, options.fin, (_, buf) => {
1593
+ if (this._socket.destroyed) {
1594
+ callCallbacks(this, /* @__PURE__ */ new Error("The socket was closed while data was being compressed"), cb);
1595
+ return;
1596
+ }
1597
+ this._bufferedBytes -= options[kByteLength];
1598
+ this._state = DEFAULT;
1599
+ options.readOnly = false;
1600
+ this.sendFrame(Sender$2.frame(buf, options), cb);
1601
+ this.dequeue();
1602
+ });
1603
+ }
1604
+ /**
1605
+ * Executes queued send operations.
1606
+ *
1607
+ * @private
1608
+ */
1609
+ dequeue() {
1610
+ while (this._state === DEFAULT && this._queue.length) {
1611
+ const params = this._queue.shift();
1612
+ this._bufferedBytes -= params[3][kByteLength];
1613
+ Reflect.apply(params[0], this, params.slice(1));
1614
+ }
1615
+ }
1616
+ /**
1617
+ * Enqueues a send operation.
1618
+ *
1619
+ * @param {Array} params Send operation parameters.
1620
+ * @private
1621
+ */
1622
+ enqueue(params) {
1623
+ this._bufferedBytes += params[3][kByteLength];
1624
+ this._queue.push(params);
1625
+ }
1626
+ /**
1627
+ * Sends a frame.
1628
+ *
1629
+ * @param {(Buffer | String)[]} list The frame to send
1630
+ * @param {Function} [cb] Callback
1631
+ * @private
1632
+ */
1633
+ sendFrame(list, cb) {
1634
+ if (list.length === 2) {
1635
+ this._socket.cork();
1636
+ this._socket.write(list[0]);
1637
+ this._socket.write(list[1], cb);
1638
+ this._socket.uncork();
1639
+ } else this._socket.write(list[0], cb);
1640
+ }
1641
+ };
1642
+ module.exports = Sender$2;
1643
+ /**
1644
+ * Calls queued callbacks with an error.
1645
+ *
1646
+ * @param {Sender} sender The `Sender` instance
1647
+ * @param {Error} err The error to call the callbacks with
1648
+ * @param {Function} [cb] The first callback
1649
+ * @private
1650
+ */
1651
+ function callCallbacks(sender, err, cb) {
1652
+ if (typeof cb === "function") cb(err);
1653
+ for (let i = 0; i < sender._queue.length; i++) {
1654
+ const params = sender._queue[i];
1655
+ const callback = params[params.length - 1];
1656
+ if (typeof callback === "function") callback(err);
1657
+ }
1658
+ }
1659
+ /**
1660
+ * Handles a `Sender` error.
1661
+ *
1662
+ * @param {Sender} sender The `Sender` instance
1663
+ * @param {Error} err The error
1664
+ * @param {Function} [cb] The first pending callback
1665
+ * @private
1666
+ */
1667
+ function onError(sender, err, cb) {
1668
+ callCallbacks(sender, err, cb);
1669
+ sender.onerror(err);
1670
+ }
1671
+ }) });
1672
+
1673
+ //#endregion
1674
+ //#region node_modules/ws/lib/event-target.js
1675
+ var require_event_target = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/event-target.js": ((exports, module) => {
1676
+ const { kForOnEventAttribute: kForOnEventAttribute$1, kListener: kListener$1 } = require_constants();
1677
+ const kCode = Symbol("kCode");
1678
+ const kData = Symbol("kData");
1679
+ const kError = Symbol("kError");
1680
+ const kMessage = Symbol("kMessage");
1681
+ const kReason = Symbol("kReason");
1682
+ const kTarget = Symbol("kTarget");
1683
+ const kType = Symbol("kType");
1684
+ const kWasClean = Symbol("kWasClean");
1685
+ /**
1686
+ * Class representing an event.
1687
+ */
1688
+ var Event = class {
1689
+ /**
1690
+ * Create a new `Event`.
1691
+ *
1692
+ * @param {String} type The name of the event
1693
+ * @throws {TypeError} If the `type` argument is not specified
1694
+ */
1695
+ constructor(type) {
1696
+ this[kTarget] = null;
1697
+ this[kType] = type;
1698
+ }
1699
+ /**
1700
+ * @type {*}
1701
+ */
1702
+ get target() {
1703
+ return this[kTarget];
1704
+ }
1705
+ /**
1706
+ * @type {String}
1707
+ */
1708
+ get type() {
1709
+ return this[kType];
1710
+ }
1711
+ };
1712
+ Object.defineProperty(Event.prototype, "target", { enumerable: true });
1713
+ Object.defineProperty(Event.prototype, "type", { enumerable: true });
1714
+ /**
1715
+ * Class representing a close event.
1716
+ *
1717
+ * @extends Event
1718
+ */
1719
+ var CloseEvent = class extends Event {
1720
+ /**
1721
+ * Create a new `CloseEvent`.
1722
+ *
1723
+ * @param {String} type The name of the event
1724
+ * @param {Object} [options] A dictionary object that allows for setting
1725
+ * attributes via object members of the same name
1726
+ * @param {Number} [options.code=0] The status code explaining why the
1727
+ * connection was closed
1728
+ * @param {String} [options.reason=''] A human-readable string explaining why
1729
+ * the connection was closed
1730
+ * @param {Boolean} [options.wasClean=false] Indicates whether or not the
1731
+ * connection was cleanly closed
1732
+ */
1733
+ constructor(type, options = {}) {
1734
+ super(type);
1735
+ this[kCode] = options.code === void 0 ? 0 : options.code;
1736
+ this[kReason] = options.reason === void 0 ? "" : options.reason;
1737
+ this[kWasClean] = options.wasClean === void 0 ? false : options.wasClean;
1738
+ }
1739
+ /**
1740
+ * @type {Number}
1741
+ */
1742
+ get code() {
1743
+ return this[kCode];
1744
+ }
1745
+ /**
1746
+ * @type {String}
1747
+ */
1748
+ get reason() {
1749
+ return this[kReason];
1750
+ }
1751
+ /**
1752
+ * @type {Boolean}
1753
+ */
1754
+ get wasClean() {
1755
+ return this[kWasClean];
1756
+ }
1757
+ };
1758
+ Object.defineProperty(CloseEvent.prototype, "code", { enumerable: true });
1759
+ Object.defineProperty(CloseEvent.prototype, "reason", { enumerable: true });
1760
+ Object.defineProperty(CloseEvent.prototype, "wasClean", { enumerable: true });
1761
+ /**
1762
+ * Class representing an error event.
1763
+ *
1764
+ * @extends Event
1765
+ */
1766
+ var ErrorEvent = class extends Event {
1767
+ /**
1768
+ * Create a new `ErrorEvent`.
1769
+ *
1770
+ * @param {String} type The name of the event
1771
+ * @param {Object} [options] A dictionary object that allows for setting
1772
+ * attributes via object members of the same name
1773
+ * @param {*} [options.error=null] The error that generated this event
1774
+ * @param {String} [options.message=''] The error message
1775
+ */
1776
+ constructor(type, options = {}) {
1777
+ super(type);
1778
+ this[kError] = options.error === void 0 ? null : options.error;
1779
+ this[kMessage] = options.message === void 0 ? "" : options.message;
1780
+ }
1781
+ /**
1782
+ * @type {*}
1783
+ */
1784
+ get error() {
1785
+ return this[kError];
1786
+ }
1787
+ /**
1788
+ * @type {String}
1789
+ */
1790
+ get message() {
1791
+ return this[kMessage];
1792
+ }
1793
+ };
1794
+ Object.defineProperty(ErrorEvent.prototype, "error", { enumerable: true });
1795
+ Object.defineProperty(ErrorEvent.prototype, "message", { enumerable: true });
1796
+ /**
1797
+ * Class representing a message event.
1798
+ *
1799
+ * @extends Event
1800
+ */
1801
+ var MessageEvent = class extends Event {
1802
+ /**
1803
+ * Create a new `MessageEvent`.
1804
+ *
1805
+ * @param {String} type The name of the event
1806
+ * @param {Object} [options] A dictionary object that allows for setting
1807
+ * attributes via object members of the same name
1808
+ * @param {*} [options.data=null] The message content
1809
+ */
1810
+ constructor(type, options = {}) {
1811
+ super(type);
1812
+ this[kData] = options.data === void 0 ? null : options.data;
1813
+ }
1814
+ /**
1815
+ * @type {*}
1816
+ */
1817
+ get data() {
1818
+ return this[kData];
1819
+ }
1820
+ };
1821
+ Object.defineProperty(MessageEvent.prototype, "data", { enumerable: true });
1822
+ /**
1823
+ * This provides methods for emulating the `EventTarget` interface. It's not
1824
+ * meant to be used directly.
1825
+ *
1826
+ * @mixin
1827
+ */
1828
+ const EventTarget = {
1829
+ addEventListener(type, handler, options = {}) {
1830
+ for (const listener of this.listeners(type)) if (!options[kForOnEventAttribute$1] && listener[kListener$1] === handler && !listener[kForOnEventAttribute$1]) return;
1831
+ let wrapper;
1832
+ if (type === "message") wrapper = function onMessage(data, isBinary) {
1833
+ const event = new MessageEvent("message", { data: isBinary ? data : data.toString() });
1834
+ event[kTarget] = this;
1835
+ callListener(handler, this, event);
1836
+ };
1837
+ else if (type === "close") wrapper = function onClose(code, message) {
1838
+ const event = new CloseEvent("close", {
1839
+ code,
1840
+ reason: message.toString(),
1841
+ wasClean: this._closeFrameReceived && this._closeFrameSent
1842
+ });
1843
+ event[kTarget] = this;
1844
+ callListener(handler, this, event);
1845
+ };
1846
+ else if (type === "error") wrapper = function onError$1(error) {
1847
+ const event = new ErrorEvent("error", {
1848
+ error,
1849
+ message: error.message
1850
+ });
1851
+ event[kTarget] = this;
1852
+ callListener(handler, this, event);
1853
+ };
1854
+ else if (type === "open") wrapper = function onOpen() {
1855
+ const event = new Event("open");
1856
+ event[kTarget] = this;
1857
+ callListener(handler, this, event);
1858
+ };
1859
+ else return;
1860
+ wrapper[kForOnEventAttribute$1] = !!options[kForOnEventAttribute$1];
1861
+ wrapper[kListener$1] = handler;
1862
+ if (options.once) this.once(type, wrapper);
1863
+ else this.on(type, wrapper);
1864
+ },
1865
+ removeEventListener(type, handler) {
1866
+ for (const listener of this.listeners(type)) if (listener[kListener$1] === handler && !listener[kForOnEventAttribute$1]) {
1867
+ this.removeListener(type, listener);
1868
+ break;
1869
+ }
1870
+ }
1871
+ };
1872
+ module.exports = {
1873
+ CloseEvent,
1874
+ ErrorEvent,
1875
+ Event,
1876
+ EventTarget,
1877
+ MessageEvent
1878
+ };
1879
+ /**
1880
+ * Call an event listener
1881
+ *
1882
+ * @param {(Function|Object)} listener The listener to call
1883
+ * @param {*} thisArg The value to use as `this`` when calling the listener
1884
+ * @param {Event} event The event to pass to the listener
1885
+ * @private
1886
+ */
1887
+ function callListener(listener, thisArg, event) {
1888
+ if (typeof listener === "object" && listener.handleEvent) listener.handleEvent.call(listener, event);
1889
+ else listener.call(thisArg, event);
1890
+ }
1891
+ }) });
1892
+
1893
+ //#endregion
1894
+ //#region node_modules/ws/lib/extension.js
1895
+ var require_extension = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/extension.js": ((exports, module) => {
1896
+ const { tokenChars: tokenChars$1 } = require_validation();
1897
+ /**
1898
+ * Adds an offer to the map of extension offers or a parameter to the map of
1899
+ * parameters.
1900
+ *
1901
+ * @param {Object} dest The map of extension offers or parameters
1902
+ * @param {String} name The extension or parameter name
1903
+ * @param {(Object|Boolean|String)} elem The extension parameters or the
1904
+ * parameter value
1905
+ * @private
1906
+ */
1907
+ function push(dest, name, elem) {
1908
+ if (dest[name] === void 0) dest[name] = [elem];
1909
+ else dest[name].push(elem);
1910
+ }
1911
+ /**
1912
+ * Parses the `Sec-WebSocket-Extensions` header into an object.
1913
+ *
1914
+ * @param {String} header The field value of the header
1915
+ * @return {Object} The parsed object
1916
+ * @public
1917
+ */
1918
+ function parse$2(header) {
1919
+ const offers = Object.create(null);
1920
+ let params = Object.create(null);
1921
+ let mustUnescape = false;
1922
+ let isEscaping = false;
1923
+ let inQuotes = false;
1924
+ let extensionName;
1925
+ let paramName;
1926
+ let start = -1;
1927
+ let code = -1;
1928
+ let end = -1;
1929
+ let i = 0;
1930
+ for (; i < header.length; i++) {
1931
+ code = header.charCodeAt(i);
1932
+ if (extensionName === void 0) if (end === -1 && tokenChars$1[code] === 1) {
1933
+ if (start === -1) start = i;
1934
+ } else if (i !== 0 && (code === 32 || code === 9)) {
1935
+ if (end === -1 && start !== -1) end = i;
1936
+ } else if (code === 59 || code === 44) {
1937
+ if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
1938
+ if (end === -1) end = i;
1939
+ const name = header.slice(start, end);
1940
+ if (code === 44) {
1941
+ push(offers, name, params);
1942
+ params = Object.create(null);
1943
+ } else extensionName = name;
1944
+ start = end = -1;
1945
+ } else throw new SyntaxError(`Unexpected character at index ${i}`);
1946
+ else if (paramName === void 0) if (end === -1 && tokenChars$1[code] === 1) {
1947
+ if (start === -1) start = i;
1948
+ } else if (code === 32 || code === 9) {
1949
+ if (end === -1 && start !== -1) end = i;
1950
+ } else if (code === 59 || code === 44) {
1951
+ if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
1952
+ if (end === -1) end = i;
1953
+ push(params, header.slice(start, end), true);
1954
+ if (code === 44) {
1955
+ push(offers, extensionName, params);
1956
+ params = Object.create(null);
1957
+ extensionName = void 0;
1958
+ }
1959
+ start = end = -1;
1960
+ } else if (code === 61 && start !== -1 && end === -1) {
1961
+ paramName = header.slice(start, i);
1962
+ start = end = -1;
1963
+ } else throw new SyntaxError(`Unexpected character at index ${i}`);
1964
+ else if (isEscaping) {
1965
+ if (tokenChars$1[code] !== 1) throw new SyntaxError(`Unexpected character at index ${i}`);
1966
+ if (start === -1) start = i;
1967
+ else if (!mustUnescape) mustUnescape = true;
1968
+ isEscaping = false;
1969
+ } else if (inQuotes) if (tokenChars$1[code] === 1) {
1970
+ if (start === -1) start = i;
1971
+ } else if (code === 34 && start !== -1) {
1972
+ inQuotes = false;
1973
+ end = i;
1974
+ } else if (code === 92) isEscaping = true;
1975
+ else throw new SyntaxError(`Unexpected character at index ${i}`);
1976
+ else if (code === 34 && header.charCodeAt(i - 1) === 61) inQuotes = true;
1977
+ else if (end === -1 && tokenChars$1[code] === 1) {
1978
+ if (start === -1) start = i;
1979
+ } else if (start !== -1 && (code === 32 || code === 9)) {
1980
+ if (end === -1) end = i;
1981
+ } else if (code === 59 || code === 44) {
1982
+ if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
1983
+ if (end === -1) end = i;
1984
+ let value = header.slice(start, end);
1985
+ if (mustUnescape) {
1986
+ value = value.replace(/\\/g, "");
1987
+ mustUnescape = false;
1988
+ }
1989
+ push(params, paramName, value);
1990
+ if (code === 44) {
1991
+ push(offers, extensionName, params);
1992
+ params = Object.create(null);
1993
+ extensionName = void 0;
1994
+ }
1995
+ paramName = void 0;
1996
+ start = end = -1;
1997
+ } else throw new SyntaxError(`Unexpected character at index ${i}`);
1998
+ }
1999
+ if (start === -1 || inQuotes || code === 32 || code === 9) throw new SyntaxError("Unexpected end of input");
2000
+ if (end === -1) end = i;
2001
+ const token = header.slice(start, end);
2002
+ if (extensionName === void 0) push(offers, token, params);
2003
+ else {
2004
+ if (paramName === void 0) push(params, token, true);
2005
+ else if (mustUnescape) push(params, paramName, token.replace(/\\/g, ""));
2006
+ else push(params, paramName, token);
2007
+ push(offers, extensionName, params);
2008
+ }
2009
+ return offers;
2010
+ }
2011
+ /**
2012
+ * Builds the `Sec-WebSocket-Extensions` header field value.
2013
+ *
2014
+ * @param {Object} extensions The map of extensions and parameters to format
2015
+ * @return {String} A string representing the given object
2016
+ * @public
2017
+ */
2018
+ function format$1(extensions) {
2019
+ return Object.keys(extensions).map((extension$2) => {
2020
+ let configurations = extensions[extension$2];
2021
+ if (!Array.isArray(configurations)) configurations = [configurations];
2022
+ return configurations.map((params) => {
2023
+ return [extension$2].concat(Object.keys(params).map((k) => {
2024
+ let values = params[k];
2025
+ if (!Array.isArray(values)) values = [values];
2026
+ return values.map((v) => v === true ? k : `${k}=${v}`).join("; ");
2027
+ })).join("; ");
2028
+ }).join(", ");
2029
+ }).join(", ");
2030
+ }
2031
+ module.exports = {
2032
+ format: format$1,
2033
+ parse: parse$2
2034
+ };
2035
+ }) });
2036
+
2037
+ //#endregion
2038
+ //#region node_modules/ws/lib/websocket.js
2039
+ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websocket.js": ((exports, module) => {
2040
+ const EventEmitter$1 = __require("events");
2041
+ const https = __require("https");
2042
+ const http$1 = __require("http");
2043
+ const net = __require("net");
2044
+ const tls = __require("tls");
2045
+ const { randomBytes, createHash: createHash$1 } = __require("crypto");
2046
+ const { Duplex: Duplex$2, Readable } = __require("stream");
2047
+ const { URL } = __require("url");
2048
+ const PerMessageDeflate$2 = require_permessage_deflate();
2049
+ const Receiver$1 = require_receiver();
2050
+ const Sender$1 = require_sender();
2051
+ const { isBlob } = require_validation();
2052
+ const { BINARY_TYPES, CLOSE_TIMEOUT: CLOSE_TIMEOUT$1, EMPTY_BUFFER, GUID: GUID$1, kForOnEventAttribute, kListener, kStatusCode, kWebSocket: kWebSocket$1, NOOP } = require_constants();
2053
+ const { EventTarget: { addEventListener, removeEventListener } } = require_event_target();
2054
+ const { format, parse: parse$1 } = require_extension();
2055
+ const { toBuffer } = require_buffer_util();
2056
+ const kAborted = Symbol("kAborted");
2057
+ const protocolVersions = [8, 13];
2058
+ const readyStates = [
2059
+ "CONNECTING",
2060
+ "OPEN",
2061
+ "CLOSING",
2062
+ "CLOSED"
2063
+ ];
2064
+ const subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
2065
+ /**
2066
+ * Class representing a WebSocket.
2067
+ *
2068
+ * @extends EventEmitter
2069
+ */
2070
+ var WebSocket$2 = class WebSocket$2 extends EventEmitter$1 {
2071
+ /**
2072
+ * Create a new `WebSocket`.
2073
+ *
2074
+ * @param {(String|URL)} address The URL to which to connect
2075
+ * @param {(String|String[])} [protocols] The subprotocols
2076
+ * @param {Object} [options] Connection options
2077
+ */
2078
+ constructor(address, protocols, options) {
2079
+ super();
2080
+ this._binaryType = BINARY_TYPES[0];
2081
+ this._closeCode = 1006;
2082
+ this._closeFrameReceived = false;
2083
+ this._closeFrameSent = false;
2084
+ this._closeMessage = EMPTY_BUFFER;
2085
+ this._closeTimer = null;
2086
+ this._errorEmitted = false;
2087
+ this._extensions = {};
2088
+ this._paused = false;
2089
+ this._protocol = "";
2090
+ this._readyState = WebSocket$2.CONNECTING;
2091
+ this._receiver = null;
2092
+ this._sender = null;
2093
+ this._socket = null;
2094
+ if (address !== null) {
2095
+ this._bufferedAmount = 0;
2096
+ this._isServer = false;
2097
+ this._redirects = 0;
2098
+ if (protocols === void 0) protocols = [];
2099
+ else if (!Array.isArray(protocols)) if (typeof protocols === "object" && protocols !== null) {
2100
+ options = protocols;
2101
+ protocols = [];
2102
+ } else protocols = [protocols];
2103
+ initAsClient(this, address, protocols, options);
2104
+ } else {
2105
+ this._autoPong = options.autoPong;
2106
+ this._closeTimeout = options.closeTimeout;
2107
+ this._isServer = true;
2108
+ }
2109
+ }
2110
+ /**
2111
+ * For historical reasons, the custom "nodebuffer" type is used by the default
2112
+ * instead of "blob".
2113
+ *
2114
+ * @type {String}
2115
+ */
2116
+ get binaryType() {
2117
+ return this._binaryType;
2118
+ }
2119
+ set binaryType(type) {
2120
+ if (!BINARY_TYPES.includes(type)) return;
2121
+ this._binaryType = type;
2122
+ if (this._receiver) this._receiver._binaryType = type;
2123
+ }
2124
+ /**
2125
+ * @type {Number}
2126
+ */
2127
+ get bufferedAmount() {
2128
+ if (!this._socket) return this._bufferedAmount;
2129
+ return this._socket._writableState.length + this._sender._bufferedBytes;
2130
+ }
2131
+ /**
2132
+ * @type {String}
2133
+ */
2134
+ get extensions() {
2135
+ return Object.keys(this._extensions).join();
2136
+ }
2137
+ /**
2138
+ * @type {Boolean}
2139
+ */
2140
+ get isPaused() {
2141
+ return this._paused;
2142
+ }
2143
+ /**
2144
+ * @type {Function}
2145
+ */
2146
+ /* istanbul ignore next */
2147
+ get onclose() {
2148
+ return null;
2149
+ }
2150
+ /**
2151
+ * @type {Function}
2152
+ */
2153
+ /* istanbul ignore next */
2154
+ get onerror() {
2155
+ return null;
2156
+ }
2157
+ /**
2158
+ * @type {Function}
2159
+ */
2160
+ /* istanbul ignore next */
2161
+ get onopen() {
2162
+ return null;
2163
+ }
2164
+ /**
2165
+ * @type {Function}
2166
+ */
2167
+ /* istanbul ignore next */
2168
+ get onmessage() {
2169
+ return null;
2170
+ }
2171
+ /**
2172
+ * @type {String}
2173
+ */
2174
+ get protocol() {
2175
+ return this._protocol;
2176
+ }
2177
+ /**
2178
+ * @type {Number}
2179
+ */
2180
+ get readyState() {
2181
+ return this._readyState;
2182
+ }
2183
+ /**
2184
+ * @type {String}
2185
+ */
2186
+ get url() {
2187
+ return this._url;
2188
+ }
2189
+ /**
2190
+ * Set up the socket and the internal resources.
2191
+ *
2192
+ * @param {Duplex} socket The network socket between the server and client
2193
+ * @param {Buffer} head The first packet of the upgraded stream
2194
+ * @param {Object} options Options object
2195
+ * @param {Boolean} [options.allowSynchronousEvents=false] Specifies whether
2196
+ * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
2197
+ * multiple times in the same tick
2198
+ * @param {Function} [options.generateMask] The function used to generate the
2199
+ * masking key
2200
+ * @param {Number} [options.maxBufferedChunks=0] The maximum number of
2201
+ * buffered data chunks
2202
+ * @param {Number} [options.maxFragments=0] The maximum number of message
2203
+ * fragments
2204
+ * @param {Number} [options.maxPayload=0] The maximum allowed message size
2205
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
2206
+ * not to skip UTF-8 validation for text and close messages
2207
+ * @private
2208
+ */
2209
+ setSocket(socket, head, options) {
2210
+ const receiver = new Receiver$1({
2211
+ allowSynchronousEvents: options.allowSynchronousEvents,
2212
+ binaryType: this.binaryType,
2213
+ extensions: this._extensions,
2214
+ isServer: this._isServer,
2215
+ maxBufferedChunks: options.maxBufferedChunks,
2216
+ maxFragments: options.maxFragments,
2217
+ maxPayload: options.maxPayload,
2218
+ skipUTF8Validation: options.skipUTF8Validation
2219
+ });
2220
+ const sender = new Sender$1(socket, this._extensions, options.generateMask);
2221
+ this._receiver = receiver;
2222
+ this._sender = sender;
2223
+ this._socket = socket;
2224
+ receiver[kWebSocket$1] = this;
2225
+ sender[kWebSocket$1] = this;
2226
+ socket[kWebSocket$1] = this;
2227
+ receiver.on("conclude", receiverOnConclude);
2228
+ receiver.on("drain", receiverOnDrain);
2229
+ receiver.on("error", receiverOnError);
2230
+ receiver.on("message", receiverOnMessage);
2231
+ receiver.on("ping", receiverOnPing);
2232
+ receiver.on("pong", receiverOnPong);
2233
+ sender.onerror = senderOnError;
2234
+ if (socket.setTimeout) socket.setTimeout(0);
2235
+ if (socket.setNoDelay) socket.setNoDelay();
2236
+ if (head.length > 0) socket.unshift(head);
2237
+ socket.on("close", socketOnClose);
2238
+ socket.on("data", socketOnData);
2239
+ socket.on("end", socketOnEnd);
2240
+ socket.on("error", socketOnError$1);
2241
+ this._readyState = WebSocket$2.OPEN;
2242
+ this.emit("open");
2243
+ }
2244
+ /**
2245
+ * Emit the `'close'` event.
2246
+ *
2247
+ * @private
2248
+ */
2249
+ emitClose() {
2250
+ if (!this._socket) {
2251
+ this._readyState = WebSocket$2.CLOSED;
2252
+ this.emit("close", this._closeCode, this._closeMessage);
2253
+ return;
2254
+ }
2255
+ if (this._extensions[PerMessageDeflate$2.extensionName]) this._extensions[PerMessageDeflate$2.extensionName].cleanup();
2256
+ this._receiver.removeAllListeners();
2257
+ this._readyState = WebSocket$2.CLOSED;
2258
+ this.emit("close", this._closeCode, this._closeMessage);
2259
+ }
2260
+ /**
2261
+ * Start a closing handshake.
2262
+ *
2263
+ * +----------+ +-----------+ +----------+
2264
+ * - - -|ws.close()|-->|close frame|-->|ws.close()|- - -
2265
+ * | +----------+ +-----------+ +----------+ |
2266
+ * +----------+ +-----------+ |
2267
+ * CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING
2268
+ * +----------+ +-----------+ |
2269
+ * | | | +---+ |
2270
+ * +------------------------+-->|fin| - - - -
2271
+ * | +---+ | +---+
2272
+ * - - - - -|fin|<---------------------+
2273
+ * +---+
2274
+ *
2275
+ * @param {Number} [code] Status code explaining why the connection is closing
2276
+ * @param {(String|Buffer)} [data] The reason why the connection is
2277
+ * closing
2278
+ * @public
2279
+ */
2280
+ close(code, data) {
2281
+ if (this.readyState === WebSocket$2.CLOSED) return;
2282
+ if (this.readyState === WebSocket$2.CONNECTING) {
2283
+ abortHandshake$1(this, this._req, "WebSocket was closed before the connection was established");
2284
+ return;
2285
+ }
2286
+ if (this.readyState === WebSocket$2.CLOSING) {
2287
+ if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) this._socket.end();
2288
+ return;
2289
+ }
2290
+ this._readyState = WebSocket$2.CLOSING;
2291
+ this._sender.close(code, data, !this._isServer, (err) => {
2292
+ if (err) return;
2293
+ this._closeFrameSent = true;
2294
+ if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) this._socket.end();
2295
+ });
2296
+ setCloseTimer(this);
2297
+ }
2298
+ /**
2299
+ * Pause the socket.
2300
+ *
2301
+ * @public
2302
+ */
2303
+ pause() {
2304
+ if (this.readyState === WebSocket$2.CONNECTING || this.readyState === WebSocket$2.CLOSED) return;
2305
+ this._paused = true;
2306
+ this._socket.pause();
2307
+ }
2308
+ /**
2309
+ * Send a ping.
2310
+ *
2311
+ * @param {*} [data] The data to send
2312
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
2313
+ * @param {Function} [cb] Callback which is executed when the ping is sent
2314
+ * @public
2315
+ */
2316
+ ping(data, mask, cb) {
2317
+ if (this.readyState === WebSocket$2.CONNECTING) throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");
2318
+ if (typeof data === "function") {
2319
+ cb = data;
2320
+ data = mask = void 0;
2321
+ } else if (typeof mask === "function") {
2322
+ cb = mask;
2323
+ mask = void 0;
2324
+ }
2325
+ if (typeof data === "number") data = data.toString();
2326
+ if (this.readyState !== WebSocket$2.OPEN) {
2327
+ sendAfterClose(this, data, cb);
2328
+ return;
2329
+ }
2330
+ if (mask === void 0) mask = !this._isServer;
2331
+ this._sender.ping(data || EMPTY_BUFFER, mask, cb);
2332
+ }
2333
+ /**
2334
+ * Send a pong.
2335
+ *
2336
+ * @param {*} [data] The data to send
2337
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
2338
+ * @param {Function} [cb] Callback which is executed when the pong is sent
2339
+ * @public
2340
+ */
2341
+ pong(data, mask, cb) {
2342
+ if (this.readyState === WebSocket$2.CONNECTING) throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");
2343
+ if (typeof data === "function") {
2344
+ cb = data;
2345
+ data = mask = void 0;
2346
+ } else if (typeof mask === "function") {
2347
+ cb = mask;
2348
+ mask = void 0;
2349
+ }
2350
+ if (typeof data === "number") data = data.toString();
2351
+ if (this.readyState !== WebSocket$2.OPEN) {
2352
+ sendAfterClose(this, data, cb);
2353
+ return;
2354
+ }
2355
+ if (mask === void 0) mask = !this._isServer;
2356
+ this._sender.pong(data || EMPTY_BUFFER, mask, cb);
2357
+ }
2358
+ /**
2359
+ * Resume the socket.
2360
+ *
2361
+ * @public
2362
+ */
2363
+ resume() {
2364
+ if (this.readyState === WebSocket$2.CONNECTING || this.readyState === WebSocket$2.CLOSED) return;
2365
+ this._paused = false;
2366
+ if (!this._receiver._writableState.needDrain) this._socket.resume();
2367
+ }
2368
+ /**
2369
+ * Send a data message.
2370
+ *
2371
+ * @param {*} data The message to send
2372
+ * @param {Object} [options] Options object
2373
+ * @param {Boolean} [options.binary] Specifies whether `data` is binary or
2374
+ * text
2375
+ * @param {Boolean} [options.compress] Specifies whether or not to compress
2376
+ * `data`
2377
+ * @param {Boolean} [options.fin=true] Specifies whether the fragment is the
2378
+ * last one
2379
+ * @param {Boolean} [options.mask] Specifies whether or not to mask `data`
2380
+ * @param {Function} [cb] Callback which is executed when data is written out
2381
+ * @public
2382
+ */
2383
+ send(data, options, cb) {
2384
+ if (this.readyState === WebSocket$2.CONNECTING) throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");
2385
+ if (typeof options === "function") {
2386
+ cb = options;
2387
+ options = {};
2388
+ }
2389
+ if (typeof data === "number") data = data.toString();
2390
+ if (this.readyState !== WebSocket$2.OPEN) {
2391
+ sendAfterClose(this, data, cb);
2392
+ return;
2393
+ }
2394
+ const opts = {
2395
+ binary: typeof data !== "string",
2396
+ mask: !this._isServer,
2397
+ compress: true,
2398
+ fin: true,
2399
+ ...options
2400
+ };
2401
+ if (!this._extensions[PerMessageDeflate$2.extensionName]) opts.compress = false;
2402
+ this._sender.send(data || EMPTY_BUFFER, opts, cb);
2403
+ }
2404
+ /**
2405
+ * Forcibly close the connection.
2406
+ *
2407
+ * @public
2408
+ */
2409
+ terminate() {
2410
+ if (this.readyState === WebSocket$2.CLOSED) return;
2411
+ if (this.readyState === WebSocket$2.CONNECTING) {
2412
+ abortHandshake$1(this, this._req, "WebSocket was closed before the connection was established");
2413
+ return;
2414
+ }
2415
+ if (this._socket) {
2416
+ this._readyState = WebSocket$2.CLOSING;
2417
+ this._socket.destroy();
2418
+ }
2419
+ }
2420
+ };
2421
+ /**
2422
+ * @constant {Number} CONNECTING
2423
+ * @memberof WebSocket
2424
+ */
2425
+ Object.defineProperty(WebSocket$2, "CONNECTING", {
2426
+ enumerable: true,
2427
+ value: readyStates.indexOf("CONNECTING")
2428
+ });
2429
+ /**
2430
+ * @constant {Number} CONNECTING
2431
+ * @memberof WebSocket.prototype
2432
+ */
2433
+ Object.defineProperty(WebSocket$2.prototype, "CONNECTING", {
2434
+ enumerable: true,
2435
+ value: readyStates.indexOf("CONNECTING")
2436
+ });
2437
+ /**
2438
+ * @constant {Number} OPEN
2439
+ * @memberof WebSocket
2440
+ */
2441
+ Object.defineProperty(WebSocket$2, "OPEN", {
2442
+ enumerable: true,
2443
+ value: readyStates.indexOf("OPEN")
2444
+ });
2445
+ /**
2446
+ * @constant {Number} OPEN
2447
+ * @memberof WebSocket.prototype
2448
+ */
2449
+ Object.defineProperty(WebSocket$2.prototype, "OPEN", {
2450
+ enumerable: true,
2451
+ value: readyStates.indexOf("OPEN")
2452
+ });
2453
+ /**
2454
+ * @constant {Number} CLOSING
2455
+ * @memberof WebSocket
2456
+ */
2457
+ Object.defineProperty(WebSocket$2, "CLOSING", {
2458
+ enumerable: true,
2459
+ value: readyStates.indexOf("CLOSING")
2460
+ });
2461
+ /**
2462
+ * @constant {Number} CLOSING
2463
+ * @memberof WebSocket.prototype
2464
+ */
2465
+ Object.defineProperty(WebSocket$2.prototype, "CLOSING", {
2466
+ enumerable: true,
2467
+ value: readyStates.indexOf("CLOSING")
2468
+ });
2469
+ /**
2470
+ * @constant {Number} CLOSED
2471
+ * @memberof WebSocket
2472
+ */
2473
+ Object.defineProperty(WebSocket$2, "CLOSED", {
2474
+ enumerable: true,
2475
+ value: readyStates.indexOf("CLOSED")
2476
+ });
2477
+ /**
2478
+ * @constant {Number} CLOSED
2479
+ * @memberof WebSocket.prototype
2480
+ */
2481
+ Object.defineProperty(WebSocket$2.prototype, "CLOSED", {
2482
+ enumerable: true,
2483
+ value: readyStates.indexOf("CLOSED")
2484
+ });
2485
+ [
2486
+ "binaryType",
2487
+ "bufferedAmount",
2488
+ "extensions",
2489
+ "isPaused",
2490
+ "protocol",
2491
+ "readyState",
2492
+ "url"
2493
+ ].forEach((property) => {
2494
+ Object.defineProperty(WebSocket$2.prototype, property, { enumerable: true });
2495
+ });
2496
+ [
2497
+ "open",
2498
+ "error",
2499
+ "close",
2500
+ "message"
2501
+ ].forEach((method) => {
2502
+ Object.defineProperty(WebSocket$2.prototype, `on${method}`, {
2503
+ enumerable: true,
2504
+ get() {
2505
+ for (const listener of this.listeners(method)) if (listener[kForOnEventAttribute]) return listener[kListener];
2506
+ return null;
2507
+ },
2508
+ set(handler) {
2509
+ for (const listener of this.listeners(method)) if (listener[kForOnEventAttribute]) {
2510
+ this.removeListener(method, listener);
2511
+ break;
2512
+ }
2513
+ if (typeof handler !== "function") return;
2514
+ this.addEventListener(method, handler, { [kForOnEventAttribute]: true });
2515
+ }
2516
+ });
2517
+ });
2518
+ WebSocket$2.prototype.addEventListener = addEventListener;
2519
+ WebSocket$2.prototype.removeEventListener = removeEventListener;
2520
+ module.exports = WebSocket$2;
2521
+ /**
2522
+ * Initialize a WebSocket client.
2523
+ *
2524
+ * @param {WebSocket} websocket The client to initialize
2525
+ * @param {(String|URL)} address The URL to which to connect
2526
+ * @param {Array} protocols The subprotocols
2527
+ * @param {Object} [options] Connection options
2528
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether any
2529
+ * of the `'message'`, `'ping'`, and `'pong'` events can be emitted multiple
2530
+ * times in the same tick
2531
+ * @param {Boolean} [options.autoPong=true] Specifies whether or not to
2532
+ * automatically send a pong in response to a ping
2533
+ * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to wait
2534
+ * for the closing handshake to finish after `websocket.close()` is called
2535
+ * @param {Function} [options.finishRequest] A function which can be used to
2536
+ * customize the headers of each http request before it is sent
2537
+ * @param {Boolean} [options.followRedirects=false] Whether or not to follow
2538
+ * redirects
2539
+ * @param {Function} [options.generateMask] The function used to generate the
2540
+ * masking key
2541
+ * @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
2542
+ * handshake request
2543
+ * @param {Number} [options.maxBufferedChunks=262144] The maximum number of
2544
+ * buffered data chunks
2545
+ * @param {Number} [options.maxFragments=16384] The maximum number of message
2546
+ * fragments
2547
+ * @param {Number} [options.maxPayload=104857600] The maximum allowed message
2548
+ * size
2549
+ * @param {Number} [options.maxRedirects=10] The maximum number of redirects
2550
+ * allowed
2551
+ * @param {String} [options.origin] Value of the `Origin` or
2552
+ * `Sec-WebSocket-Origin` header
2553
+ * @param {(Boolean|Object)} [options.perMessageDeflate=true] Enable/disable
2554
+ * permessage-deflate
2555
+ * @param {Number} [options.protocolVersion=13] Value of the
2556
+ * `Sec-WebSocket-Version` header
2557
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
2558
+ * not to skip UTF-8 validation for text and close messages
2559
+ * @private
2560
+ */
2561
+ function initAsClient(websocket, address, protocols, options) {
2562
+ const opts = {
2563
+ allowSynchronousEvents: true,
2564
+ autoPong: true,
2565
+ closeTimeout: CLOSE_TIMEOUT$1,
2566
+ protocolVersion: protocolVersions[1],
2567
+ maxBufferedChunks: 256 * 1024,
2568
+ maxFragments: 16 * 1024,
2569
+ maxPayload: 100 * 1024 * 1024,
2570
+ skipUTF8Validation: false,
2571
+ perMessageDeflate: true,
2572
+ followRedirects: false,
2573
+ maxRedirects: 10,
2574
+ ...options,
2575
+ socketPath: void 0,
2576
+ hostname: void 0,
2577
+ protocol: void 0,
2578
+ timeout: void 0,
2579
+ method: "GET",
2580
+ host: void 0,
2581
+ path: void 0,
2582
+ port: void 0
2583
+ };
2584
+ websocket._autoPong = opts.autoPong;
2585
+ websocket._closeTimeout = opts.closeTimeout;
2586
+ if (!protocolVersions.includes(opts.protocolVersion)) throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})`);
2587
+ let parsedUrl;
2588
+ if (address instanceof URL) parsedUrl = address;
2589
+ else try {
2590
+ parsedUrl = new URL(address);
2591
+ } catch {
2592
+ throw new SyntaxError(`Invalid URL: ${address}`);
2593
+ }
2594
+ if (parsedUrl.protocol === "http:") parsedUrl.protocol = "ws:";
2595
+ else if (parsedUrl.protocol === "https:") parsedUrl.protocol = "wss:";
2596
+ websocket._url = parsedUrl.href;
2597
+ const isSecure = parsedUrl.protocol === "wss:";
2598
+ const isIpcUrl = parsedUrl.protocol === "ws+unix:";
2599
+ let invalidUrlMessage;
2600
+ if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) invalidUrlMessage = "The URL's protocol must be one of \"ws:\", \"wss:\", \"http:\", \"https:\", or \"ws+unix:\"";
2601
+ else if (isIpcUrl && !parsedUrl.pathname) invalidUrlMessage = "The URL's pathname is empty";
2602
+ else if (parsedUrl.hash) invalidUrlMessage = "The URL contains a fragment identifier";
2603
+ if (invalidUrlMessage) {
2604
+ const err = new SyntaxError(invalidUrlMessage);
2605
+ if (websocket._redirects === 0) throw err;
2606
+ else {
2607
+ emitErrorAndClose(websocket, err);
2608
+ return;
2609
+ }
2610
+ }
2611
+ const defaultPort = isSecure ? 443 : 80;
2612
+ const key = randomBytes(16).toString("base64");
2613
+ const request = isSecure ? https.request : http$1.request;
2614
+ const protocolSet = /* @__PURE__ */ new Set();
2615
+ let perMessageDeflate;
2616
+ opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect);
2617
+ opts.defaultPort = opts.defaultPort || defaultPort;
2618
+ opts.port = parsedUrl.port || defaultPort;
2619
+ opts.host = parsedUrl.hostname.startsWith("[") ? parsedUrl.hostname.slice(1, -1) : parsedUrl.hostname;
2620
+ opts.headers = {
2621
+ ...opts.headers,
2622
+ "Sec-WebSocket-Version": opts.protocolVersion,
2623
+ "Sec-WebSocket-Key": key,
2624
+ Connection: "Upgrade",
2625
+ Upgrade: "websocket"
2626
+ };
2627
+ opts.path = parsedUrl.pathname + parsedUrl.search;
2628
+ opts.timeout = opts.handshakeTimeout;
2629
+ if (opts.perMessageDeflate) {
2630
+ perMessageDeflate = new PerMessageDeflate$2({
2631
+ ...opts.perMessageDeflate,
2632
+ isServer: false,
2633
+ maxPayload: opts.maxPayload
2634
+ });
2635
+ opts.headers["Sec-WebSocket-Extensions"] = format({ [PerMessageDeflate$2.extensionName]: perMessageDeflate.offer() });
2636
+ }
2637
+ if (protocols.length) {
2638
+ for (const protocol of protocols) {
2639
+ if (typeof protocol !== "string" || !subprotocolRegex.test(protocol) || protocolSet.has(protocol)) throw new SyntaxError("An invalid or duplicated subprotocol was specified");
2640
+ protocolSet.add(protocol);
2641
+ }
2642
+ opts.headers["Sec-WebSocket-Protocol"] = protocols.join(",");
2643
+ }
2644
+ if (opts.origin) if (opts.protocolVersion < 13) opts.headers["Sec-WebSocket-Origin"] = opts.origin;
2645
+ else opts.headers.Origin = opts.origin;
2646
+ if (parsedUrl.username || parsedUrl.password) opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
2647
+ if (isIpcUrl) {
2648
+ const parts = opts.path.split(":");
2649
+ opts.socketPath = parts[0];
2650
+ opts.path = parts[1];
2651
+ }
2652
+ let req;
2653
+ if (opts.followRedirects) {
2654
+ if (websocket._redirects === 0) {
2655
+ websocket._originalIpc = isIpcUrl;
2656
+ websocket._originalSecure = isSecure;
2657
+ websocket._originalHostOrSocketPath = isIpcUrl ? opts.socketPath : parsedUrl.host;
2658
+ const headers = options && options.headers;
2659
+ options = {
2660
+ ...options,
2661
+ headers: {}
2662
+ };
2663
+ if (headers) for (const [key$1, value] of Object.entries(headers)) options.headers[key$1.toLowerCase()] = value;
2664
+ } else if (websocket.listenerCount("redirect") === 0) {
2665
+ const isSameHost = isIpcUrl ? websocket._originalIpc ? opts.socketPath === websocket._originalHostOrSocketPath : false : websocket._originalIpc ? false : parsedUrl.host === websocket._originalHostOrSocketPath;
2666
+ if (!isSameHost || websocket._originalSecure && !isSecure) {
2667
+ delete opts.headers.authorization;
2668
+ delete opts.headers.cookie;
2669
+ if (!isSameHost) delete opts.headers.host;
2670
+ opts.auth = void 0;
2671
+ }
2672
+ }
2673
+ if (opts.auth && !options.headers.authorization) options.headers.authorization = "Basic " + Buffer.from(opts.auth).toString("base64");
2674
+ req = websocket._req = request(opts);
2675
+ if (websocket._redirects) websocket.emit("redirect", websocket.url, req);
2676
+ } else req = websocket._req = request(opts);
2677
+ if (opts.timeout) req.on("timeout", () => {
2678
+ abortHandshake$1(websocket, req, "Opening handshake has timed out");
2679
+ });
2680
+ req.on("error", (err) => {
2681
+ if (req === null || req[kAborted]) return;
2682
+ req = websocket._req = null;
2683
+ emitErrorAndClose(websocket, err);
2684
+ });
2685
+ req.on("response", (res) => {
2686
+ const location = res.headers.location;
2687
+ const statusCode = res.statusCode;
2688
+ if (location && opts.followRedirects && statusCode >= 300 && statusCode < 400) {
2689
+ if (++websocket._redirects > opts.maxRedirects) {
2690
+ abortHandshake$1(websocket, req, "Maximum redirects exceeded");
2691
+ return;
2692
+ }
2693
+ req.abort();
2694
+ let addr;
2695
+ try {
2696
+ addr = new URL(location, address);
2697
+ } catch (e) {
2698
+ emitErrorAndClose(websocket, /* @__PURE__ */ new SyntaxError(`Invalid URL: ${location}`));
2699
+ return;
2700
+ }
2701
+ initAsClient(websocket, addr, protocols, options);
2702
+ } else if (!websocket.emit("unexpected-response", req, res)) abortHandshake$1(websocket, req, `Unexpected server response: ${res.statusCode}`);
2703
+ });
2704
+ req.on("upgrade", (res, socket, head) => {
2705
+ websocket.emit("upgrade", res);
2706
+ if (websocket.readyState !== WebSocket$2.CONNECTING) return;
2707
+ req = websocket._req = null;
2708
+ const upgrade = res.headers.upgrade;
2709
+ if (upgrade === void 0 || upgrade.toLowerCase() !== "websocket") {
2710
+ abortHandshake$1(websocket, socket, "Invalid Upgrade header");
2711
+ return;
2712
+ }
2713
+ const digest = createHash$1("sha1").update(key + GUID$1).digest("base64");
2714
+ if (res.headers["sec-websocket-accept"] !== digest) {
2715
+ abortHandshake$1(websocket, socket, "Invalid Sec-WebSocket-Accept header");
2716
+ return;
2717
+ }
2718
+ const serverProt = res.headers["sec-websocket-protocol"];
2719
+ let protError;
2720
+ if (serverProt !== void 0) {
2721
+ if (!protocolSet.size) protError = "Server sent a subprotocol but none was requested";
2722
+ else if (!protocolSet.has(serverProt)) protError = "Server sent an invalid subprotocol";
2723
+ } else if (protocolSet.size) protError = "Server sent no subprotocol";
2724
+ if (protError) {
2725
+ abortHandshake$1(websocket, socket, protError);
2726
+ return;
2727
+ }
2728
+ if (serverProt) websocket._protocol = serverProt;
2729
+ const secWebSocketExtensions = res.headers["sec-websocket-extensions"];
2730
+ if (secWebSocketExtensions !== void 0) {
2731
+ if (!perMessageDeflate) {
2732
+ abortHandshake$1(websocket, socket, "Server sent a Sec-WebSocket-Extensions header but no extension was requested");
2733
+ return;
2734
+ }
2735
+ let extensions;
2736
+ try {
2737
+ extensions = parse$1(secWebSocketExtensions);
2738
+ } catch (err) {
2739
+ abortHandshake$1(websocket, socket, "Invalid Sec-WebSocket-Extensions header");
2740
+ return;
2741
+ }
2742
+ const extensionNames = Object.keys(extensions);
2743
+ if (extensionNames.length !== 1 || extensionNames[0] !== PerMessageDeflate$2.extensionName) {
2744
+ abortHandshake$1(websocket, socket, "Server indicated an extension that was not requested");
2745
+ return;
2746
+ }
2747
+ try {
2748
+ perMessageDeflate.accept(extensions[PerMessageDeflate$2.extensionName]);
2749
+ } catch (err) {
2750
+ abortHandshake$1(websocket, socket, "Invalid Sec-WebSocket-Extensions header");
2751
+ return;
2752
+ }
2753
+ websocket._extensions[PerMessageDeflate$2.extensionName] = perMessageDeflate;
2754
+ }
2755
+ websocket.setSocket(socket, head, {
2756
+ allowSynchronousEvents: opts.allowSynchronousEvents,
2757
+ generateMask: opts.generateMask,
2758
+ maxBufferedChunks: opts.maxBufferedChunks,
2759
+ maxFragments: opts.maxFragments,
2760
+ maxPayload: opts.maxPayload,
2761
+ skipUTF8Validation: opts.skipUTF8Validation
2762
+ });
2763
+ });
2764
+ if (opts.finishRequest) opts.finishRequest(req, websocket);
2765
+ else req.end();
2766
+ }
2767
+ /**
2768
+ * Emit the `'error'` and `'close'` events.
2769
+ *
2770
+ * @param {WebSocket} websocket The WebSocket instance
2771
+ * @param {Error} The error to emit
2772
+ * @private
2773
+ */
2774
+ function emitErrorAndClose(websocket, err) {
2775
+ websocket._readyState = WebSocket$2.CLOSING;
2776
+ websocket._errorEmitted = true;
2777
+ websocket.emit("error", err);
2778
+ websocket.emitClose();
2779
+ }
2780
+ /**
2781
+ * Create a `net.Socket` and initiate a connection.
2782
+ *
2783
+ * @param {Object} options Connection options
2784
+ * @return {net.Socket} The newly created socket used to start the connection
2785
+ * @private
2786
+ */
2787
+ function netConnect(options) {
2788
+ options.path = options.socketPath;
2789
+ return net.connect(options);
2790
+ }
2791
+ /**
2792
+ * Create a `tls.TLSSocket` and initiate a connection.
2793
+ *
2794
+ * @param {Object} options Connection options
2795
+ * @return {tls.TLSSocket} The newly created socket used to start the connection
2796
+ * @private
2797
+ */
2798
+ function tlsConnect(options) {
2799
+ options.path = void 0;
2800
+ if (!options.servername && options.servername !== "") options.servername = net.isIP(options.host) ? "" : options.host;
2801
+ return tls.connect(options);
2802
+ }
2803
+ /**
2804
+ * Abort the handshake and emit an error.
2805
+ *
2806
+ * @param {WebSocket} websocket The WebSocket instance
2807
+ * @param {(http.ClientRequest|net.Socket|tls.Socket)} stream The request to
2808
+ * abort or the socket to destroy
2809
+ * @param {String} message The error message
2810
+ * @private
2811
+ */
2812
+ function abortHandshake$1(websocket, stream, message) {
2813
+ websocket._readyState = WebSocket$2.CLOSING;
2814
+ const err = new Error(message);
2815
+ Error.captureStackTrace(err, abortHandshake$1);
2816
+ if (stream.setHeader) {
2817
+ stream[kAborted] = true;
2818
+ stream.abort();
2819
+ if (stream.socket && !stream.socket.destroyed) stream.socket.destroy();
2820
+ process.nextTick(emitErrorAndClose, websocket, err);
2821
+ } else {
2822
+ stream.destroy(err);
2823
+ stream.once("error", websocket.emit.bind(websocket, "error"));
2824
+ stream.once("close", websocket.emitClose.bind(websocket));
2825
+ }
2826
+ }
2827
+ /**
2828
+ * Handle cases where the `ping()`, `pong()`, or `send()` methods are called
2829
+ * when the `readyState` attribute is `CLOSING` or `CLOSED`.
2830
+ *
2831
+ * @param {WebSocket} websocket The WebSocket instance
2832
+ * @param {*} [data] The data to send
2833
+ * @param {Function} [cb] Callback
2834
+ * @private
2835
+ */
2836
+ function sendAfterClose(websocket, data, cb) {
2837
+ if (data) {
2838
+ const length = isBlob(data) ? data.size : toBuffer(data).length;
2839
+ if (websocket._socket) websocket._sender._bufferedBytes += length;
2840
+ else websocket._bufferedAmount += length;
2841
+ }
2842
+ if (cb) {
2843
+ const err = /* @__PURE__ */ new Error(`WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})`);
2844
+ process.nextTick(cb, err);
2845
+ }
2846
+ }
2847
+ /**
2848
+ * The listener of the `Receiver` `'conclude'` event.
2849
+ *
2850
+ * @param {Number} code The status code
2851
+ * @param {Buffer} reason The reason for closing
2852
+ * @private
2853
+ */
2854
+ function receiverOnConclude(code, reason) {
2855
+ const websocket = this[kWebSocket$1];
2856
+ websocket._closeFrameReceived = true;
2857
+ websocket._closeMessage = reason;
2858
+ websocket._closeCode = code;
2859
+ if (websocket._socket[kWebSocket$1] === void 0) return;
2860
+ websocket._socket.removeListener("data", socketOnData);
2861
+ process.nextTick(resume, websocket._socket);
2862
+ if (code === 1005) websocket.close();
2863
+ else websocket.close(code, reason);
2864
+ }
2865
+ /**
2866
+ * The listener of the `Receiver` `'drain'` event.
2867
+ *
2868
+ * @private
2869
+ */
2870
+ function receiverOnDrain() {
2871
+ const websocket = this[kWebSocket$1];
2872
+ if (!websocket.isPaused) websocket._socket.resume();
2873
+ }
2874
+ /**
2875
+ * The listener of the `Receiver` `'error'` event.
2876
+ *
2877
+ * @param {(RangeError|Error)} err The emitted error
2878
+ * @private
2879
+ */
2880
+ function receiverOnError(err) {
2881
+ const websocket = this[kWebSocket$1];
2882
+ if (websocket._socket[kWebSocket$1] !== void 0) {
2883
+ websocket._socket.removeListener("data", socketOnData);
2884
+ process.nextTick(resume, websocket._socket);
2885
+ websocket.close(err[kStatusCode]);
2886
+ }
2887
+ if (!websocket._errorEmitted) {
2888
+ websocket._errorEmitted = true;
2889
+ websocket.emit("error", err);
2890
+ }
2891
+ }
2892
+ /**
2893
+ * The listener of the `Receiver` `'finish'` event.
2894
+ *
2895
+ * @private
2896
+ */
2897
+ function receiverOnFinish() {
2898
+ this[kWebSocket$1].emitClose();
2899
+ }
2900
+ /**
2901
+ * The listener of the `Receiver` `'message'` event.
2902
+ *
2903
+ * @param {Buffer|ArrayBuffer|Buffer[])} data The message
2904
+ * @param {Boolean} isBinary Specifies whether the message is binary or not
2905
+ * @private
2906
+ */
2907
+ function receiverOnMessage(data, isBinary) {
2908
+ this[kWebSocket$1].emit("message", data, isBinary);
2909
+ }
2910
+ /**
2911
+ * The listener of the `Receiver` `'ping'` event.
2912
+ *
2913
+ * @param {Buffer} data The data included in the ping frame
2914
+ * @private
2915
+ */
2916
+ function receiverOnPing(data) {
2917
+ const websocket = this[kWebSocket$1];
2918
+ if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
2919
+ websocket.emit("ping", data);
2920
+ }
2921
+ /**
2922
+ * The listener of the `Receiver` `'pong'` event.
2923
+ *
2924
+ * @param {Buffer} data The data included in the pong frame
2925
+ * @private
2926
+ */
2927
+ function receiverOnPong(data) {
2928
+ this[kWebSocket$1].emit("pong", data);
2929
+ }
2930
+ /**
2931
+ * Resume a readable stream
2932
+ *
2933
+ * @param {Readable} stream The readable stream
2934
+ * @private
2935
+ */
2936
+ function resume(stream) {
2937
+ stream.resume();
2938
+ }
2939
+ /**
2940
+ * The `Sender` error event handler.
2941
+ *
2942
+ * @param {Error} The error
2943
+ * @private
2944
+ */
2945
+ function senderOnError(err) {
2946
+ const websocket = this[kWebSocket$1];
2947
+ if (websocket.readyState === WebSocket$2.CLOSED) return;
2948
+ if (websocket.readyState === WebSocket$2.OPEN) {
2949
+ websocket._readyState = WebSocket$2.CLOSING;
2950
+ setCloseTimer(websocket);
2951
+ }
2952
+ this._socket.end();
2953
+ if (!websocket._errorEmitted) {
2954
+ websocket._errorEmitted = true;
2955
+ websocket.emit("error", err);
2956
+ }
2957
+ }
2958
+ /**
2959
+ * Set a timer to destroy the underlying raw socket of a WebSocket.
2960
+ *
2961
+ * @param {WebSocket} websocket The WebSocket instance
2962
+ * @private
2963
+ */
2964
+ function setCloseTimer(websocket) {
2965
+ websocket._closeTimer = setTimeout(websocket._socket.destroy.bind(websocket._socket), websocket._closeTimeout);
2966
+ }
2967
+ /**
2968
+ * The listener of the socket `'close'` event.
2969
+ *
2970
+ * @private
2971
+ */
2972
+ function socketOnClose() {
2973
+ const websocket = this[kWebSocket$1];
2974
+ this.removeListener("close", socketOnClose);
2975
+ this.removeListener("data", socketOnData);
2976
+ this.removeListener("end", socketOnEnd);
2977
+ websocket._readyState = WebSocket$2.CLOSING;
2978
+ if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && this._readableState.length !== 0) {
2979
+ const chunk = this.read(this._readableState.length);
2980
+ websocket._receiver.write(chunk);
2981
+ }
2982
+ websocket._receiver.end();
2983
+ this[kWebSocket$1] = void 0;
2984
+ clearTimeout(websocket._closeTimer);
2985
+ if (websocket._receiver._writableState.finished || websocket._receiver._writableState.errorEmitted) websocket.emitClose();
2986
+ else {
2987
+ websocket._receiver.on("error", receiverOnFinish);
2988
+ websocket._receiver.on("finish", receiverOnFinish);
2989
+ }
2990
+ }
2991
+ /**
2992
+ * The listener of the socket `'data'` event.
2993
+ *
2994
+ * @param {Buffer} chunk A chunk of data
2995
+ * @private
2996
+ */
2997
+ function socketOnData(chunk) {
2998
+ if (!this[kWebSocket$1]._receiver.write(chunk)) this.pause();
2999
+ }
3000
+ /**
3001
+ * The listener of the socket `'end'` event.
3002
+ *
3003
+ * @private
3004
+ */
3005
+ function socketOnEnd() {
3006
+ const websocket = this[kWebSocket$1];
3007
+ websocket._readyState = WebSocket$2.CLOSING;
3008
+ websocket._receiver.end();
3009
+ this.end();
3010
+ }
3011
+ /**
3012
+ * The listener of the socket `'error'` event.
3013
+ *
3014
+ * @private
3015
+ */
3016
+ function socketOnError$1() {
3017
+ const websocket = this[kWebSocket$1];
3018
+ this.removeListener("error", socketOnError$1);
3019
+ this.on("error", NOOP);
3020
+ if (websocket) {
3021
+ websocket._readyState = WebSocket$2.CLOSING;
3022
+ this.destroy();
3023
+ }
3024
+ }
3025
+ }) });
3026
+
3027
+ //#endregion
3028
+ //#region node_modules/ws/lib/stream.js
3029
+ var require_stream = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/stream.js": ((exports, module) => {
3030
+ require_websocket();
3031
+ const { Duplex: Duplex$1 } = __require("stream");
3032
+ /**
3033
+ * Emits the `'close'` event on a stream.
3034
+ *
3035
+ * @param {Duplex} stream The stream.
3036
+ * @private
3037
+ */
3038
+ function emitClose$1(stream) {
3039
+ stream.emit("close");
3040
+ }
3041
+ /**
3042
+ * The listener of the `'end'` event.
3043
+ *
3044
+ * @private
3045
+ */
3046
+ function duplexOnEnd() {
3047
+ if (!this.destroyed && this._writableState.finished) this.destroy();
3048
+ }
3049
+ /**
3050
+ * The listener of the `'error'` event.
3051
+ *
3052
+ * @param {Error} err The error
3053
+ * @private
3054
+ */
3055
+ function duplexOnError(err) {
3056
+ this.removeListener("error", duplexOnError);
3057
+ this.destroy();
3058
+ if (this.listenerCount("error") === 0) this.emit("error", err);
3059
+ }
3060
+ /**
3061
+ * Wraps a `WebSocket` in a duplex stream.
3062
+ *
3063
+ * @param {WebSocket} ws The `WebSocket` to wrap
3064
+ * @param {Object} [options] The options for the `Duplex` constructor
3065
+ * @return {Duplex} The duplex stream
3066
+ * @public
3067
+ */
3068
+ function createWebSocketStream$1(ws, options) {
3069
+ let terminateOnDestroy = true;
3070
+ const duplex = new Duplex$1({
3071
+ ...options,
3072
+ autoDestroy: false,
3073
+ emitClose: false,
3074
+ objectMode: false,
3075
+ writableObjectMode: false
3076
+ });
3077
+ ws.on("message", function message(msg, isBinary) {
3078
+ const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
3079
+ if (!duplex.push(data)) ws.pause();
3080
+ });
3081
+ ws.once("error", function error(err) {
3082
+ if (duplex.destroyed) return;
3083
+ terminateOnDestroy = false;
3084
+ duplex.destroy(err);
3085
+ });
3086
+ ws.once("close", function close() {
3087
+ if (duplex.destroyed) return;
3088
+ duplex.push(null);
3089
+ });
3090
+ duplex._destroy = function(err, callback) {
3091
+ if (ws.readyState === ws.CLOSED) {
3092
+ callback(err);
3093
+ process.nextTick(emitClose$1, duplex);
3094
+ return;
3095
+ }
3096
+ let called = false;
3097
+ ws.once("error", function error(err$1) {
3098
+ called = true;
3099
+ callback(err$1);
3100
+ });
3101
+ ws.once("close", function close() {
3102
+ if (!called) callback(err);
3103
+ process.nextTick(emitClose$1, duplex);
3104
+ });
3105
+ if (terminateOnDestroy) ws.terminate();
3106
+ };
3107
+ duplex._final = function(callback) {
3108
+ if (ws.readyState === ws.CONNECTING) {
3109
+ ws.once("open", function open() {
3110
+ duplex._final(callback);
3111
+ });
3112
+ return;
3113
+ }
3114
+ if (ws._socket === null) return;
3115
+ if (ws._socket._writableState.finished) {
3116
+ callback();
3117
+ if (duplex._readableState.endEmitted) duplex.destroy();
3118
+ } else {
3119
+ ws._socket.once("finish", function finish() {
3120
+ callback();
3121
+ });
3122
+ ws.close();
3123
+ }
3124
+ };
3125
+ duplex._read = function() {
3126
+ if (ws.isPaused) ws.resume();
3127
+ };
3128
+ duplex._write = function(chunk, encoding, callback) {
3129
+ if (ws.readyState === ws.CONNECTING) {
3130
+ ws.once("open", function open() {
3131
+ duplex._write(chunk, encoding, callback);
3132
+ });
3133
+ return;
3134
+ }
3135
+ ws.send(chunk, callback);
3136
+ };
3137
+ duplex.on("end", duplexOnEnd);
3138
+ duplex.on("error", duplexOnError);
3139
+ return duplex;
3140
+ }
3141
+ module.exports = createWebSocketStream$1;
3142
+ }) });
3143
+
3144
+ //#endregion
3145
+ //#region node_modules/ws/lib/subprotocol.js
3146
+ var require_subprotocol = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/subprotocol.js": ((exports, module) => {
3147
+ const { tokenChars } = require_validation();
3148
+ /**
3149
+ * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
3150
+ *
3151
+ * @param {String} header The field value of the header
3152
+ * @return {Set} The subprotocol names
3153
+ * @public
3154
+ */
3155
+ function parse(header) {
3156
+ const protocols = /* @__PURE__ */ new Set();
3157
+ let start = -1;
3158
+ let end = -1;
3159
+ let i = 0;
3160
+ for (; i < header.length; i++) {
3161
+ const code = header.charCodeAt(i);
3162
+ if (end === -1 && tokenChars[code] === 1) {
3163
+ if (start === -1) start = i;
3164
+ } else if (i !== 0 && (code === 32 || code === 9)) {
3165
+ if (end === -1 && start !== -1) end = i;
3166
+ } else if (code === 44) {
3167
+ if (start === -1) throw new SyntaxError(`Unexpected character at index ${i}`);
3168
+ if (end === -1) end = i;
3169
+ const protocol$1 = header.slice(start, end);
3170
+ if (protocols.has(protocol$1)) throw new SyntaxError(`The "${protocol$1}" subprotocol is duplicated`);
3171
+ protocols.add(protocol$1);
3172
+ start = end = -1;
3173
+ } else throw new SyntaxError(`Unexpected character at index ${i}`);
3174
+ }
3175
+ if (start === -1 || end !== -1) throw new SyntaxError("Unexpected end of input");
3176
+ const protocol = header.slice(start, i);
3177
+ if (protocols.has(protocol)) throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`);
3178
+ protocols.add(protocol);
3179
+ return protocols;
3180
+ }
3181
+ module.exports = { parse };
3182
+ }) });
3183
+
3184
+ //#endregion
3185
+ //#region node_modules/ws/lib/websocket-server.js
3186
+ var require_websocket_server = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websocket-server.js": ((exports, module) => {
3187
+ const EventEmitter = __require("events");
3188
+ const http = __require("http");
3189
+ const { Duplex } = __require("stream");
3190
+ const { createHash } = __require("crypto");
3191
+ const extension$1 = require_extension();
3192
+ const PerMessageDeflate$1 = require_permessage_deflate();
3193
+ const subprotocol$1 = require_subprotocol();
3194
+ const WebSocket$1 = require_websocket();
3195
+ const { CLOSE_TIMEOUT, GUID, kWebSocket } = require_constants();
3196
+ const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
3197
+ const RUNNING = 0;
3198
+ const CLOSING = 1;
3199
+ const CLOSED = 2;
3200
+ /**
3201
+ * Class representing a WebSocket server.
3202
+ *
3203
+ * @extends EventEmitter
3204
+ */
3205
+ var WebSocketServer$1 = class extends EventEmitter {
3206
+ /**
3207
+ * Create a `WebSocketServer` instance.
3208
+ *
3209
+ * @param {Object} options Configuration options
3210
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether
3211
+ * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
3212
+ * multiple times in the same tick
3213
+ * @param {Boolean} [options.autoPong=true] Specifies whether or not to
3214
+ * automatically send a pong in response to a ping
3215
+ * @param {Number} [options.backlog=511] The maximum length of the queue of
3216
+ * pending connections
3217
+ * @param {Boolean} [options.clientTracking=true] Specifies whether or not to
3218
+ * track clients
3219
+ * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to
3220
+ * wait for the closing handshake to finish after `websocket.close()` is
3221
+ * called
3222
+ * @param {Function} [options.handleProtocols] A hook to handle protocols
3223
+ * @param {String} [options.host] The hostname where to bind the server
3224
+ * @param {Number} [options.maxBufferedChunks=262144] The maximum number of
3225
+ * buffered data chunks
3226
+ * @param {Number} [options.maxFragments=16384] The maximum number of message
3227
+ * fragments
3228
+ * @param {Number} [options.maxPayload=104857600] The maximum allowed message
3229
+ * size
3230
+ * @param {Boolean} [options.noServer=false] Enable no server mode
3231
+ * @param {String} [options.path] Accept only connections matching this path
3232
+ * @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable
3233
+ * permessage-deflate
3234
+ * @param {Number} [options.port] The port where to bind the server
3235
+ * @param {(http.Server|https.Server)} [options.server] A pre-created HTTP/S
3236
+ * server to use
3237
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
3238
+ * not to skip UTF-8 validation for text and close messages
3239
+ * @param {Function} [options.verifyClient] A hook to reject connections
3240
+ * @param {Function} [options.WebSocket=WebSocket] Specifies the `WebSocket`
3241
+ * class to use. It must be the `WebSocket` class or class that extends it
3242
+ * @param {Function} [callback] A listener for the `listening` event
3243
+ */
3244
+ constructor(options, callback) {
3245
+ super();
3246
+ options = {
3247
+ allowSynchronousEvents: true,
3248
+ autoPong: true,
3249
+ maxBufferedChunks: 256 * 1024,
3250
+ maxFragments: 16 * 1024,
3251
+ maxPayload: 100 * 1024 * 1024,
3252
+ skipUTF8Validation: false,
3253
+ perMessageDeflate: false,
3254
+ handleProtocols: null,
3255
+ clientTracking: true,
3256
+ closeTimeout: CLOSE_TIMEOUT,
3257
+ verifyClient: null,
3258
+ noServer: false,
3259
+ backlog: null,
3260
+ server: null,
3261
+ host: null,
3262
+ path: null,
3263
+ port: null,
3264
+ WebSocket: WebSocket$1,
3265
+ ...options
3266
+ };
3267
+ if (options.port == null && !options.server && !options.noServer || options.port != null && (options.server || options.noServer) || options.server && options.noServer) throw new TypeError("One and only one of the \"port\", \"server\", or \"noServer\" options must be specified");
3268
+ if (options.port != null) {
3269
+ this._server = http.createServer((req, res) => {
3270
+ const body = http.STATUS_CODES[426];
3271
+ res.writeHead(426, {
3272
+ "Content-Length": body.length,
3273
+ "Content-Type": "text/plain"
3274
+ });
3275
+ res.end(body);
3276
+ });
3277
+ this._server.listen(options.port, options.host, options.backlog, callback);
3278
+ } else if (options.server) this._server = options.server;
3279
+ if (this._server) {
3280
+ const emitConnection = this.emit.bind(this, "connection");
3281
+ this._removeListeners = addListeners(this._server, {
3282
+ listening: this.emit.bind(this, "listening"),
3283
+ error: this.emit.bind(this, "error"),
3284
+ upgrade: (req, socket, head) => {
3285
+ this.handleUpgrade(req, socket, head, emitConnection);
3286
+ }
3287
+ });
3288
+ }
3289
+ if (options.perMessageDeflate === true) options.perMessageDeflate = {};
3290
+ if (options.clientTracking) {
3291
+ this.clients = /* @__PURE__ */ new Set();
3292
+ this._shouldEmitClose = false;
3293
+ }
3294
+ this.options = options;
3295
+ this._state = RUNNING;
3296
+ }
3297
+ /**
3298
+ * Returns the bound address, the address family name, and port of the server
3299
+ * as reported by the operating system if listening on an IP socket.
3300
+ * If the server is listening on a pipe or UNIX domain socket, the name is
3301
+ * returned as a string.
3302
+ *
3303
+ * @return {(Object|String|null)} The address of the server
3304
+ * @public
3305
+ */
3306
+ address() {
3307
+ if (this.options.noServer) throw new Error("The server is operating in \"noServer\" mode");
3308
+ if (!this._server) return null;
3309
+ return this._server.address();
3310
+ }
3311
+ /**
3312
+ * Stop the server from accepting new connections and emit the `'close'` event
3313
+ * when all existing connections are closed.
3314
+ *
3315
+ * @param {Function} [cb] A one-time listener for the `'close'` event
3316
+ * @public
3317
+ */
3318
+ close(cb) {
3319
+ if (this._state === CLOSED) {
3320
+ if (cb) this.once("close", () => {
3321
+ cb(/* @__PURE__ */ new Error("The server is not running"));
3322
+ });
3323
+ process.nextTick(emitClose, this);
3324
+ return;
3325
+ }
3326
+ if (cb) this.once("close", cb);
3327
+ if (this._state === CLOSING) return;
3328
+ this._state = CLOSING;
3329
+ if (this.options.noServer || this.options.server) {
3330
+ if (this._server) {
3331
+ this._removeListeners();
3332
+ this._removeListeners = this._server = null;
3333
+ }
3334
+ if (this.clients) if (!this.clients.size) process.nextTick(emitClose, this);
3335
+ else this._shouldEmitClose = true;
3336
+ else process.nextTick(emitClose, this);
3337
+ } else {
3338
+ const server = this._server;
3339
+ this._removeListeners();
3340
+ this._removeListeners = this._server = null;
3341
+ server.close(() => {
3342
+ emitClose(this);
3343
+ });
3344
+ }
3345
+ }
3346
+ /**
3347
+ * See if a given request should be handled by this server instance.
3348
+ *
3349
+ * @param {http.IncomingMessage} req Request object to inspect
3350
+ * @return {Boolean} `true` if the request is valid, else `false`
3351
+ * @public
3352
+ */
3353
+ shouldHandle(req) {
3354
+ if (this.options.path) {
3355
+ const index = req.url.indexOf("?");
3356
+ if ((index !== -1 ? req.url.slice(0, index) : req.url) !== this.options.path) return false;
3357
+ }
3358
+ return true;
3359
+ }
3360
+ /**
3361
+ * Handle a HTTP Upgrade request.
3362
+ *
3363
+ * @param {http.IncomingMessage} req The request object
3364
+ * @param {Duplex} socket The network socket between the server and client
3365
+ * @param {Buffer} head The first packet of the upgraded stream
3366
+ * @param {Function} cb Callback
3367
+ * @public
3368
+ */
3369
+ handleUpgrade(req, socket, head, cb) {
3370
+ socket.on("error", socketOnError);
3371
+ const key = req.headers["sec-websocket-key"];
3372
+ const upgrade = req.headers.upgrade;
3373
+ const version = +req.headers["sec-websocket-version"];
3374
+ if (req.method !== "GET") {
3375
+ abortHandshakeOrEmitwsClientError(this, req, socket, 405, "Invalid HTTP method");
3376
+ return;
3377
+ }
3378
+ if (upgrade === void 0 || upgrade.toLowerCase() !== "websocket") {
3379
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Invalid Upgrade header");
3380
+ return;
3381
+ }
3382
+ if (key === void 0 || !keyRegex.test(key)) {
3383
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Missing or invalid Sec-WebSocket-Key header");
3384
+ return;
3385
+ }
3386
+ if (version !== 13 && version !== 8) {
3387
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Missing or invalid Sec-WebSocket-Version header", { "Sec-WebSocket-Version": "13, 8" });
3388
+ return;
3389
+ }
3390
+ if (!this.shouldHandle(req)) {
3391
+ abortHandshake(socket, 400);
3392
+ return;
3393
+ }
3394
+ const secWebSocketProtocol = req.headers["sec-websocket-protocol"];
3395
+ let protocols = /* @__PURE__ */ new Set();
3396
+ if (secWebSocketProtocol !== void 0) try {
3397
+ protocols = subprotocol$1.parse(secWebSocketProtocol);
3398
+ } catch (err) {
3399
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Invalid Sec-WebSocket-Protocol header");
3400
+ return;
3401
+ }
3402
+ const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
3403
+ const extensions = {};
3404
+ if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
3405
+ const perMessageDeflate = new PerMessageDeflate$1({
3406
+ ...this.options.perMessageDeflate,
3407
+ isServer: true,
3408
+ maxPayload: this.options.maxPayload
3409
+ });
3410
+ try {
3411
+ const offers = extension$1.parse(secWebSocketExtensions);
3412
+ if (offers[PerMessageDeflate$1.extensionName]) {
3413
+ perMessageDeflate.accept(offers[PerMessageDeflate$1.extensionName]);
3414
+ extensions[PerMessageDeflate$1.extensionName] = perMessageDeflate;
3415
+ }
3416
+ } catch (err) {
3417
+ abortHandshakeOrEmitwsClientError(this, req, socket, 400, "Invalid or unacceptable Sec-WebSocket-Extensions header");
3418
+ return;
3419
+ }
3420
+ }
3421
+ if (this.options.verifyClient) {
3422
+ const info = {
3423
+ origin: req.headers[`${version === 8 ? "sec-websocket-origin" : "origin"}`],
3424
+ secure: !!(req.socket.authorized || req.socket.encrypted),
3425
+ req
3426
+ };
3427
+ if (this.options.verifyClient.length === 2) {
3428
+ this.options.verifyClient(info, (verified, code, message, headers) => {
3429
+ if (!verified) return abortHandshake(socket, code || 401, message, headers);
3430
+ this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
3431
+ });
3432
+ return;
3433
+ }
3434
+ if (!this.options.verifyClient(info)) return abortHandshake(socket, 401);
3435
+ }
3436
+ this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
3437
+ }
3438
+ /**
3439
+ * Upgrade the connection to WebSocket.
3440
+ *
3441
+ * @param {Object} extensions The accepted extensions
3442
+ * @param {String} key The value of the `Sec-WebSocket-Key` header
3443
+ * @param {Set} protocols The subprotocols
3444
+ * @param {http.IncomingMessage} req The request object
3445
+ * @param {Duplex} socket The network socket between the server and client
3446
+ * @param {Buffer} head The first packet of the upgraded stream
3447
+ * @param {Function} cb Callback
3448
+ * @throws {Error} If called more than once with the same socket
3449
+ * @private
3450
+ */
3451
+ completeUpgrade(extensions, key, protocols, req, socket, head, cb) {
3452
+ if (!socket.readable || !socket.writable) return socket.destroy();
3453
+ if (socket[kWebSocket]) throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");
3454
+ if (this._state > RUNNING) return abortHandshake(socket, 503);
3455
+ const headers = [
3456
+ "HTTP/1.1 101 Switching Protocols",
3457
+ "Upgrade: websocket",
3458
+ "Connection: Upgrade",
3459
+ `Sec-WebSocket-Accept: ${createHash("sha1").update(key + GUID).digest("base64")}`
3460
+ ];
3461
+ const ws = new this.options.WebSocket(null, void 0, this.options);
3462
+ if (protocols.size) {
3463
+ const protocol = this.options.handleProtocols ? this.options.handleProtocols(protocols, req) : protocols.values().next().value;
3464
+ if (protocol) {
3465
+ headers.push(`Sec-WebSocket-Protocol: ${protocol}`);
3466
+ ws._protocol = protocol;
3467
+ }
3468
+ }
3469
+ if (extensions[PerMessageDeflate$1.extensionName]) {
3470
+ const params = extensions[PerMessageDeflate$1.extensionName].params;
3471
+ const value = extension$1.format({ [PerMessageDeflate$1.extensionName]: [params] });
3472
+ headers.push(`Sec-WebSocket-Extensions: ${value}`);
3473
+ ws._extensions = extensions;
3474
+ }
3475
+ this.emit("headers", headers, req);
3476
+ socket.write(headers.concat("\r\n").join("\r\n"));
3477
+ socket.removeListener("error", socketOnError);
3478
+ ws.setSocket(socket, head, {
3479
+ allowSynchronousEvents: this.options.allowSynchronousEvents,
3480
+ maxBufferedChunks: this.options.maxBufferedChunks,
3481
+ maxFragments: this.options.maxFragments,
3482
+ maxPayload: this.options.maxPayload,
3483
+ skipUTF8Validation: this.options.skipUTF8Validation
3484
+ });
3485
+ if (this.clients) {
3486
+ this.clients.add(ws);
3487
+ ws.on("close", () => {
3488
+ this.clients.delete(ws);
3489
+ if (this._shouldEmitClose && !this.clients.size) process.nextTick(emitClose, this);
3490
+ });
3491
+ }
3492
+ cb(ws, req);
3493
+ }
3494
+ };
3495
+ module.exports = WebSocketServer$1;
3496
+ /**
3497
+ * Add event listeners on an `EventEmitter` using a map of <event, listener>
3498
+ * pairs.
3499
+ *
3500
+ * @param {EventEmitter} server The event emitter
3501
+ * @param {Object.<String, Function>} map The listeners to add
3502
+ * @return {Function} A function that will remove the added listeners when
3503
+ * called
3504
+ * @private
3505
+ */
3506
+ function addListeners(server, map) {
3507
+ for (const event of Object.keys(map)) server.on(event, map[event]);
3508
+ return function removeListeners() {
3509
+ for (const event of Object.keys(map)) server.removeListener(event, map[event]);
3510
+ };
3511
+ }
3512
+ /**
3513
+ * Emit a `'close'` event on an `EventEmitter`.
3514
+ *
3515
+ * @param {EventEmitter} server The event emitter
3516
+ * @private
3517
+ */
3518
+ function emitClose(server) {
3519
+ server._state = CLOSED;
3520
+ server.emit("close");
3521
+ }
3522
+ /**
3523
+ * Handle socket errors.
3524
+ *
3525
+ * @private
3526
+ */
3527
+ function socketOnError() {
3528
+ this.destroy();
3529
+ }
3530
+ /**
3531
+ * Close the connection when preconditions are not fulfilled.
3532
+ *
3533
+ * @param {Duplex} socket The socket of the upgrade request
3534
+ * @param {Number} code The HTTP response status code
3535
+ * @param {String} [message] The HTTP response body
3536
+ * @param {Object} [headers] Additional HTTP response headers
3537
+ * @private
3538
+ */
3539
+ function abortHandshake(socket, code, message, headers) {
3540
+ message = message || http.STATUS_CODES[code];
3541
+ headers = {
3542
+ Connection: "close",
3543
+ "Content-Type": "text/html",
3544
+ "Content-Length": Buffer.byteLength(message),
3545
+ ...headers
3546
+ };
3547
+ socket.once("finish", socket.destroy);
3548
+ socket.end(`HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r\n` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message);
3549
+ }
3550
+ /**
3551
+ * Emit a `'wsClientError'` event on a `WebSocketServer` if there is at least
3552
+ * one listener for it, otherwise call `abortHandshake()`.
3553
+ *
3554
+ * @param {WebSocketServer} server The WebSocket server
3555
+ * @param {http.IncomingMessage} req The request object
3556
+ * @param {Duplex} socket The socket of the upgrade request
3557
+ * @param {Number} code The HTTP response status code
3558
+ * @param {String} message The HTTP response body
3559
+ * @param {Object} [headers] The HTTP response headers
3560
+ * @private
3561
+ */
3562
+ function abortHandshakeOrEmitwsClientError(server, req, socket, code, message, headers) {
3563
+ if (server.listenerCount("wsClientError")) {
3564
+ const err = new Error(message);
3565
+ Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
3566
+ server.emit("wsClientError", err, socket, req);
3567
+ } else abortHandshake(socket, code, message, headers);
3568
+ }
3569
+ }) });
3570
+
3571
+ //#endregion
3572
+ //#region node_modules/ws/wrapper.mjs
3573
+ var import_stream = /* @__PURE__ */ __toESM(require_stream(), 1);
3574
+ var import_extension = /* @__PURE__ */ __toESM(require_extension(), 1);
3575
+ var import_permessage_deflate = /* @__PURE__ */ __toESM(require_permessage_deflate(), 1);
3576
+ var import_receiver = /* @__PURE__ */ __toESM(require_receiver(), 1);
3577
+ var import_sender = /* @__PURE__ */ __toESM(require_sender(), 1);
3578
+ var import_subprotocol = /* @__PURE__ */ __toESM(require_subprotocol(), 1);
3579
+ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
3580
+ var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
3581
+ var wrapper_default = import_websocket.default;
3582
+
3583
+ //#endregion
3584
+ //#region node_modules/puppeteer-core/lib/puppeteer/node/NodeWebSocketTransport.js
3585
+ /**
3586
+ * @internal
3587
+ */
3588
+ var NodeWebSocketTransport = class NodeWebSocketTransport {
3589
+ static create(url, headers) {
3590
+ return new Promise((resolve, reject) => {
3591
+ const ws = new wrapper_default(url, [], {
3592
+ followRedirects: true,
3593
+ perMessageDeflate: false,
3594
+ allowSynchronousEvents: false,
3595
+ maxPayload: 256 * 1024 * 1024,
3596
+ headers: {
3597
+ "User-Agent": `Puppeteer ${packageVersion}`,
3598
+ ...headers
3599
+ }
3600
+ });
3601
+ ws.addEventListener("open", () => {
3602
+ return resolve(new NodeWebSocketTransport(ws));
3603
+ });
3604
+ ws.addEventListener("error", reject);
3605
+ });
3606
+ }
3607
+ #ws;
3608
+ onmessage;
3609
+ onclose;
3610
+ constructor(ws) {
3611
+ this.#ws = ws;
3612
+ this.#ws.addEventListener("message", (event) => {
3613
+ if (this.onmessage) this.onmessage.call(null, event.data);
3614
+ });
3615
+ this.#ws.addEventListener("close", () => {
3616
+ if (this.onclose) this.onclose.call(null);
3617
+ });
3618
+ this.#ws.addEventListener("error", debugCatchError);
3619
+ }
3620
+ send(message) {
3621
+ this.#ws.send(message);
3622
+ }
3623
+ close() {
3624
+ this.#ws.close();
3625
+ }
3626
+ };
3627
+
3628
+ //#endregion
3629
+ export { NodeWebSocketTransport as t };