better-dsh 0.2.5 → 0.3.0

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 (999) hide show
  1. package/README.md +27 -3
  2. package/THIRD_PARTY_NOTICES.md +52 -0
  3. package/cordis.patch.yml +44 -0
  4. package/docs/20_specs/ast/spec.md +26 -3
  5. package/docs/20_specs/dvc/spec.md +20 -1
  6. 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
  7. package/docs/50_test-reports/2026-10-03-ast-engine-deomp-4999/345/256/236/346/265/213/346/212/245/345/221/212.md +325 -0
  8. 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
  9. package/docs/50_test-reports/2026-10-03-docs-packaging-trim/345/256/236/346/265/213/346/212/245/345/221/212.md +82 -0
  10. 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
  11. package/docs/50_test-reports/2026-10-03-pnpm11/345/271/264/351/276/204/351/227/250/351/224/201/346/226/207/344/273/266/347/233/270/344/275/215/345/256/236/350/257/201.md +54 -0
  12. package/docs/50_test-reports/2026-10-03-remote-BYO-PTY-label/351/207/215/346/236/204/347/254/254/344/270/200/344/272/272/347/247/260/345/256/236/346/265/213/346/212/245/345/221/212.md +447 -0
  13. 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
  14. 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
  15. package/docs/50_test-reports/2026-10-04-ast-engine-deomp-0.2.5-d/345/217/221/345/270/203/351/252/214/346/224/266/346/212/245/345/221/212.md +220 -0
  16. package/docs/50_test-reports/2026-10-04-ast_grep/344/270/216ast_edit/345/245/221/347/272/246/344/270/216/350/276/271/347/225/214/345/256/236/346/265/213/346/212/245/345/221/212.md +151 -0
  17. package/docs/50_test-reports/2026-10-06-authentication-only-web-admission-4999.md +63 -0
  18. package/docs/50_test-reports/2026-10-07-better-dsh-welcome-self-contained-4999.md +52 -0
  19. package/docs/dev-test-environment-notes.md +137 -0
  20. package/docs/specs/ast/spec.md +26 -3
  21. package/docs/specs/ast-engine-deomp/spec.md +170 -0
  22. package/docs/specs/authentication-only-web-admission/spec.md +51 -0
  23. package/docs/specs/docs-packaging-trim/spec.md +110 -0
  24. package/docs/specs/dvc/spec.md +20 -1
  25. package/docs/specs/remote-pty-label/spec.md +126 -0
  26. package/docs/specs/welcome-self-contained/spec.md +13 -0
  27. package/docs/specs/zero-npm-runtime-deps/spec.md +85 -0
  28. package/docs/superpowers/plans/2026-10-03-ast-engine-deomp.md +1214 -0
  29. package/docs/superpowers/plans/2026-10-03-docs-packaging-trim.md +181 -0
  30. package/lib/BrowserWebSocketTransport-D1aFReu_.js +4 -0
  31. package/lib/BrowserWebSocketTransport-wm99h94r.js +39 -0
  32. package/lib/LaunchOptions-B874eBu2.js +4 -0
  33. package/lib/LaunchOptions-kGXcZOe0.js +17 -0
  34. package/lib/NodeWebSocketTransport-BRLjmu2R.js +4 -0
  35. package/lib/NodeWebSocketTransport-D9ysYGLM.js +3634 -0
  36. package/lib/ast-assets/ast-grep.wasm +0 -0
  37. package/lib/ast-assets/tree-sitter-bash.wasm +0 -0
  38. package/lib/ast-assets/tree-sitter-c.wasm +0 -0
  39. package/lib/ast-assets/tree-sitter-cpp.wasm +0 -0
  40. package/lib/ast-assets/tree-sitter-css.wasm +0 -0
  41. package/lib/ast-assets/tree-sitter-go.wasm +0 -0
  42. package/lib/ast-assets/tree-sitter-html.wasm +0 -0
  43. package/lib/ast-assets/tree-sitter-javascript.wasm +0 -0
  44. package/lib/ast-assets/tree-sitter-json.wasm +0 -0
  45. package/lib/ast-assets/tree-sitter-python.wasm +0 -0
  46. package/lib/ast-assets/tree-sitter-ruby.wasm +0 -0
  47. package/lib/ast-assets/tree-sitter-rust.wasm +0 -0
  48. package/lib/ast-assets/tree-sitter-tsx.wasm +0 -0
  49. package/lib/ast-assets/tree-sitter-typescript.wasm +0 -0
  50. package/lib/ast-assets/tree-sitter-yaml.wasm +0 -0
  51. package/lib/ast-assets/tree-sitter.wasm +0 -0
  52. package/lib/bidi-BalpKaJc.js +16106 -0
  53. package/lib/bundle-delivery.d.ts +20 -0
  54. package/lib/bundle-delivery.js +209 -0
  55. package/lib/chunk-DQxbwPpZ.js +30 -0
  56. package/lib/client/index.js +2 -2
  57. package/lib/compaction/index.d.ts +3 -3
  58. package/lib/compaction/index.js +4 -4
  59. package/lib/failover/index.d.ts +3 -3
  60. package/lib/failover/index.js +5 -5
  61. package/lib/fs-aware/sandbox-plugin.js +22 -22
  62. package/lib/hmr.d.ts +32 -0
  63. package/lib/hmr.js +49 -0
  64. package/lib/index-DTDXUe6m.d.ts +208 -0
  65. package/lib/index-browser-CysrjMyM.js +21061 -0
  66. package/lib/index.d.ts +4 -4
  67. package/lib/index.js +399 -151
  68. package/lib/kernel-bridge.py +172 -0
  69. package/lib/{kernel-env-hxaihi9C.js → kernel-env-D8UOWeji.js} +2 -2
  70. package/lib/kernel-env.js +1 -1
  71. package/lib/lib-C8_jXvwA.js +894 -0
  72. package/lib/{lsp-server-registry-XU6aHSqZ.js → lsp-server-registry-BXvUTBY7.js} +1 -1
  73. package/lib/{lsp-server-registry-946ysdqg.js → lsp-server-registry-CH9WNFFt.js} +13 -13
  74. package/lib/main-BQeFrBM1.js +3 -0
  75. package/lib/main-CupOhMp5.js +1432 -0
  76. package/lib/mobile/plugin.d.ts +4 -4
  77. package/lib/mobile/plugin.js +10 -10
  78. package/lib/puppeteer-core-CSk2PtSm.js +1136 -0
  79. package/lib/py-sdk.js +1 -1
  80. package/lib/remote/plugin.d.ts +3 -3
  81. package/lib/remote/plugin.js +151 -56
  82. package/lib/url-schemes/index.d.ts +11 -11
  83. package/lib/url-schemes/index.js +5269 -501
  84. package/lib/util-BHL_dfV_.js +2953 -0
  85. package/lib/wasm_bg-CNXhHjVg.js +1291 -0
  86. package/lib/web-password.d.ts +7 -7
  87. package/lib/web-password.js +2 -2
  88. package/lib/web-tree-sitter-CPrPD4J2.js +3440 -0
  89. package/lib/{web-trust-BO66y72w.js → web-trust-D6gJpUMf.js} +41 -9
  90. package/lib/{web-trust-BihHCelF.d.ts → web-trust-Dej_RI2B.d.ts} +19 -12
  91. package/lib/web-trust.d.ts +2 -1
  92. package/lib/web-trust.js +2 -1
  93. package/lib/webserver.d.ts +10 -0
  94. package/lib/webserver.js +19 -0
  95. package/lib/welcome-notice.d.ts +18 -0
  96. package/lib/welcome-notice.js +59 -0
  97. package/lib/{wrap-Bzdimp4p.js → wrap-T4I0nfPM.js} +55 -52
  98. package/package.json +93 -42
  99. package/scripts/register-bundle.mjs +80 -0
  100. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/MdxPage-CTY7atqe.js +0 -11
  101. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/extract_omp.mjs +0 -42
  102. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/fetch_pi.py +0 -52
  103. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/jsx-runtime-BHwPObl3.js +0 -13
  104. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/omp_extracted.json +0 -1
  105. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/omp_pages.txt +0 -35
  106. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/package.json +0 -1
  107. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/pi_convert.py +0 -49
  108. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/pi_pages.txt +0 -30
  109. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/.tools/serialize_omp.py +0 -250
  110. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/README.md +0 -80
  111. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/Overview.md +0 -88
  112. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/acp.md +0 -151
  113. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/advisor.md +0 -185
  114. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/agents-and-roles.md +0 -168
  115. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/approvals.md +0 -200
  116. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/cli.md +0 -381
  117. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/code-intelligence.md +0 -225
  118. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/collab.md +0 -207
  119. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/commit.md +0 -169
  120. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/compaction.md +0 -195
  121. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/computer.md +0 -224
  122. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/context-files.md +0 -184
  123. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/custom-models.md +0 -284
  124. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/custom-tools.md +0 -248
  125. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/debugging.md +0 -254
  126. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/editing.md +0 -157
  127. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/env.md +0 -552
  128. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/extension-authoring.md +0 -378
  129. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/files.md +0 -144
  130. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/github.md +0 -175
  131. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/goal.md +0 -156
  132. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/handoff.md +0 -139
  133. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/hooks.md +0 -257
  134. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/keybindings.md +0 -204
  135. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/magic-keywords.md +0 -135
  136. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/marketplace.md +0 -269
  137. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/mcp-authoring.md +0 -243
  138. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/mcp.md +0 -260
  139. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/memory.md +0 -306
  140. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/modes.md +0 -214
  141. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/pages.txt +0 -56
  142. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/plan.md +0 -126
  143. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/plugins.md +0 -287
  144. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/prewalk.md +0 -122
  145. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/prompt-templates.md +0 -149
  146. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/providers.md +0 -229
  147. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/quickstart.md +0 -117
  148. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/review.md +0 -248
  149. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/roles.md +0 -247
  150. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/rpc.md +0 -523
  151. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/sdk.md +0 -260
  152. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/secrets.md +0 -199
  153. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/security.md +0 -260
  154. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/session-format.md +0 -254
  155. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/session-tree.md +0 -135
  156. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/sessions.md +0 -223
  157. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/settings.md +0 -290
  158. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/skills.md +0 -187
  159. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/slash.md +0 -328
  160. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/subagent-authoring.md +0 -165
  161. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/subagents.md +0 -149
  162. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/themes.md +0 -230
  163. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/tools.md +0 -120
  164. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/ttsr.md +0 -242
  165. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/using.md +0 -214
  166. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/vibe.md +0 -187
  167. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/omp/web.md +0 -233
  168. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/compaction.md +0 -427
  169. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/containerization.md +0 -162
  170. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/custom-provider.md +0 -782
  171. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/development.md +0 -96
  172. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/environment-variables.md +0 -104
  173. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/extensions.md +0 -3058
  174. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/index.md +0 -89
  175. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/json.md +0 -105
  176. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/keybindings.md +0 -244
  177. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/llama-cpp.md +0 -106
  178. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/models.md +0 -587
  179. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/packages.md +0 -234
  180. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/pages.txt +0 -30
  181. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/prompt-templates.md +0 -101
  182. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/providers.md +0 -327
  183. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/quickstart.md +0 -172
  184. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/rpc.md +0 -1679
  185. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/sdk.md +0 -1239
  186. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/security.md +0 -64
  187. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/session-format.md +0 -454
  188. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/sessions.md +0 -150
  189. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/settings.md +0 -374
  190. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/shell-aliases.md +0 -18
  191. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/skills.md +0 -241
  192. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/terminal-setup.md +0 -199
  193. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/termux.md +0 -135
  194. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/themes.md +0 -328
  195. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/tmux.md +0 -68
  196. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/tui.md +0 -965
  197. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/usage.md +0 -315
  198. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/pi-and-omp/pi/windows.md +0 -44
  199. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/crawl.py +0 -103
  200. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/docs-tree.json +0 -82965
  201. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/download.py +0 -56
  202. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/gen_mapping.py +0 -125
  203. package/docs/80_upstream-docs-and-skills/dsh-dev-skill/src-scripts/pages.json +0 -232
  204. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/api-plugins.json +0 -1
  205. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/api-skills.json +0 -4
  206. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/_category_.json +0 -8
  207. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/acp-internals.md +0 -181
  208. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/adding-platform-adapters.md +0 -788
  209. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/adding-providers.md +0 -464
  210. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/adding-tools.md +0 -211
  211. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/agent-loop.md +0 -242
  212. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/architecture.md +0 -279
  213. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/billing-lifecycle.md +0 -184
  214. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/browser-provider-plugin.md +0 -153
  215. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/browser-supervisor.md +0 -198
  216. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/chronos-managed-cron-contract.md +0 -227
  217. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/cli-internals.md +0 -85
  218. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/codebase-ownership.md +0 -34
  219. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/completion-backlog-delivery.md +0 -52
  220. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/context-compression-and-caching.md +0 -642
  221. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/context-engine-plugin.md +0 -272
  222. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/contributing.md +0 -303
  223. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/creating-skills.md +0 -438
  224. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/cron-internals.md +0 -380
  225. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/desktop-plugin-sdk.md +0 -952
  226. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/egress-internals.md +0 -319
  227. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/extending-the-cli.md +0 -192
  228. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/gateway-internals.md +0 -297
  229. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/gateway-monitoring.md +0 -309
  230. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/gateway-session-lifecycle.md +0 -621
  231. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/image-gen-provider-plugin.md +0 -316
  232. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/memory-provider-plugin.md +0 -452
  233. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/micro-compaction.md +0 -406
  234. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/middleware.md +0 -266
  235. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/model-provider-plugin.md +0 -327
  236. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/multiplexing-gateway.md +0 -228
  237. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/observer-hooks.md +0 -331
  238. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/plugin-llm-access.md +0 -506
  239. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/plugins/index.md +0 -1775
  240. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/programmatic-integration.md +0 -212
  241. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/prompt-assembly.md +0 -328
  242. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/provider-runtime.md +0 -222
  243. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/relay-connector-contract.md +0 -790
  244. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/relay-shared-metrics.md +0 -487
  245. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/secret-source-plugin.md +0 -192
  246. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/session-storage.md +0 -523
  247. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/state-db-recovery.md +0 -107
  248. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/streaming-tts.md +0 -98
  249. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/subagent-lifecycle-api.md +0 -61
  250. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/terminal-environment-plugin.md +0 -140
  251. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/tools-runtime.md +0 -250
  252. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/trajectory-format.md +0 -232
  253. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/video-gen-provider-plugin.md +0 -231
  254. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/web-search-provider-plugin.md +0 -260
  255. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/developer-guide/worktree-ui-dev.md +0 -168
  256. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/_category_.json +0 -8
  257. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/installation.md +0 -200
  258. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/learning-path.md +0 -169
  259. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/nix-setup.md +0 -1234
  260. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/platform-support.md +0 -50
  261. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/quickstart.md +0 -399
  262. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/termux.md +0 -301
  263. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/getting-started/updating.md +0 -374
  264. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/_category_.json +0 -6
  265. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/agent-email-address.md +0 -93
  266. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/automate-with-cron.md +0 -292
  267. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/automation-blueprints.md +0 -595
  268. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/aws-bedrock.md +0 -196
  269. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/azure-foundry.md +0 -334
  270. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/cron-script-only.md +0 -247
  271. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/cron-troubleshooting.md +0 -235
  272. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/daily-briefing-bot.md +0 -272
  273. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/delegation-patterns.md +0 -242
  274. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/desktop-native-signin.md +0 -125
  275. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/github-pr-review-agent.md +0 -303
  276. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/google-gemini.md +0 -270
  277. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/google-vertex.md +0 -148
  278. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/local-llm-on-mac.md +0 -252
  279. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/local-ollama-setup.md +0 -338
  280. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/manage-hermes-cloud-with-mcp.md +0 -176
  281. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/microsoft-graph-app-registration.md +0 -180
  282. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/migrate-from-openclaw.md +0 -252
  283. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/minimax-oauth.md +0 -226
  284. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/oauth-over-ssh.md +0 -172
  285. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/operate-teams-meeting-pipeline.md +0 -295
  286. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/pipe-script-output.md +0 -249
  287. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/python-library.md +0 -333
  288. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/run-hermes-with-nous-portal.md +0 -276
  289. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/run-nemotron-3-ultra-free.md +0 -123
  290. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/secure-hermes-on-a-work-machine.md +0 -182
  291. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/team-telegram-assistant.md +0 -441
  292. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/tips.md +0 -238
  293. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/troubleshooting-agent-quality.md +0 -145
  294. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/use-mcp-with-hermes.md +0 -541
  295. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/use-soul-with-hermes.md +0 -264
  296. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/use-voice-mode-with-hermes.md +0 -473
  297. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/webhook-github-pr-review.md +0 -336
  298. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/work-with-skills.md +0 -290
  299. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/guides/xai-grok-oauth.md +0 -243
  300. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/index.mdx +0 -155
  301. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/buzz.md +0 -57
  302. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/index.md +0 -126
  303. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/nous-portal.md +0 -286
  304. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/integrations/providers.md +0 -1681
  305. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/_category_.json +0 -8
  306. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/automation-blueprints-catalog.mdx +0 -36
  307. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/cli-commands.md +0 -1900
  308. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/cli-symbols.md +0 -126
  309. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/environment-variables.md +0 -952
  310. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/faq.md +0 -874
  311. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/mcp-config-reference.md +0 -439
  312. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/model-catalog.md +0 -121
  313. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/optional-skills-catalog.md +0 -303
  314. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/profile-commands.md +0 -544
  315. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/skills-catalog.md +0 -132
  316. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/slash-commands.md +0 -336
  317. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/tools-reference.md +0 -399
  318. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/reference/toolsets-reference.md +0 -171
  319. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/_category_.json +0 -8
  320. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/bot-mode.md +0 -309
  321. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/checkpoints-and-rollback.md +0 -283
  322. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/cli.md +0 -591
  323. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/configuration.md +0 -2901
  324. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/configuring-models.md +0 -414
  325. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/desktop.md +0 -728
  326. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/docker.md +0 -896
  327. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/egress/index.md +0 -10
  328. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/egress/iron-proxy.md +0 -570
  329. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/egress/network-isolation.md +0 -201
  330. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/_category_.json +0 -8
  331. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/acp.md +0 -407
  332. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/api-server.md +0 -810
  333. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/batch-processing.md +0 -230
  334. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/browser.md +0 -901
  335. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/built-in-plugins.md +0 -366
  336. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/code-execution.md +0 -319
  337. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/codex-app-server-runtime.md +0 -460
  338. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/computer-use.md +0 -636
  339. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/context-files.md +0 -237
  340. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/context-references.md +0 -142
  341. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/credential-pools.md +0 -308
  342. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/credential-vault.md +0 -122
  343. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/cron.md +0 -1262
  344. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/curator.md +0 -409
  345. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/delegation.md +0 -664
  346. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/deliverable-mode.md +0 -134
  347. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/document-extraction.md +0 -58
  348. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/extending-the-dashboard.md +0 -927
  349. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/fallback-providers.md +0 -444
  350. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/goals.md +0 -293
  351. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/heartbeat.md +0 -68
  352. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/honcho.md +0 -276
  353. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/hooks.md +0 -2007
  354. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/image-generation.md +0 -347
  355. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban-multi-gateway.md +0 -52
  356. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban-tutorial.md +0 -310
  357. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban-worker-lanes.md +0 -142
  358. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/kanban.md +0 -1327
  359. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/loops.md +0 -122
  360. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/lsp.md +0 -307
  361. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/mcp.md +0 -957
  362. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/memory-providers.md +0 -699
  363. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/memory.md +0 -466
  364. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/mixture-of-agents.md +0 -246
  365. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/overview.md +0 -57
  366. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/personality.md +0 -289
  367. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/pets.md +0 -236
  368. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/plugin-catalog.md +0 -212
  369. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/plugins.md +0 -847
  370. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/provider-routing.md +0 -229
  371. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/skills.md +0 -1112
  372. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/skins.md +0 -271
  373. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/spotify.md +0 -279
  374. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/subscription-proxy.md +0 -203
  375. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tool-gateway.md +0 -223
  376. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tool-search.md +0 -277
  377. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tools.md +0 -261
  378. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/tts.md +0 -744
  379. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/vision.md +0 -214
  380. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/voice-mode.md +0 -608
  381. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/wake-word.md +0 -343
  382. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/web-dashboard.md +0 -1206
  383. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/web-search.md +0 -506
  384. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/features/x-search.md +0 -167
  385. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/git-worktrees.md +0 -196
  386. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/import-from-other-agents.md +0 -74
  387. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/local-models.md +0 -140
  388. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/managed-scope.md +0 -157
  389. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/_category_.json +0 -8
  390. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/a2a.md +0 -130
  391. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/bluebubbles.md +0 -171
  392. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/buzz.md +0 -162
  393. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/dingtalk.md +0 -283
  394. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/discord.md +0 -936
  395. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/email.md +0 -223
  396. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/feishu.md +0 -599
  397. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/google_chat.md +0 -430
  398. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/homeassistant.md +0 -269
  399. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/index.md +0 -859
  400. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/irc.md +0 -78
  401. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/line.md +0 -201
  402. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/matrix.md +0 -910
  403. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/mattermost.md +0 -340
  404. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/msgraph-webhook.md +0 -142
  405. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/ntfy.md +0 -157
  406. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/open-webui.md +0 -296
  407. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/photon.md +0 -255
  408. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/qqbot.md +0 -123
  409. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/raft.md +0 -70
  410. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/relay.md +0 -212
  411. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/signal.md +0 -262
  412. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/simplex.md +0 -151
  413. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/slack.md +0 -1093
  414. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/sms.md +0 -203
  415. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/teams-meetings.md +0 -242
  416. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/teams.md +0 -288
  417. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/telegram.md +0 -1373
  418. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/webhooks.md +0 -694
  419. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/wecom-callback.md +0 -179
  420. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/wecom.md +0 -306
  421. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/weixin.md +0 -333
  422. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/whatsapp-cloud.md +0 -417
  423. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/whatsapp.md +0 -283
  424. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/messaging/yuanbao.md +0 -342
  425. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/multi-connection-desktop.md +0 -361
  426. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/multi-profile-gateways.md +0 -1062
  427. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/profile-distributions.md +0 -757
  428. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/profiles.md +0 -418
  429. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/bitwarden.md +0 -155
  430. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/command.md +0 -50
  431. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/index.md +0 -50
  432. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/secrets/onepassword.md +0 -169
  433. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/security.md +0 -892
  434. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/sessions.md +0 -990
  435. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-apple-notes.md +0 -110
  436. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-apple-reminders.md +0 -146
  437. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-findmy.md +0 -149
  438. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/apple/apple-imessage.md +0 -118
  439. 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 +0 -763
  440. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-codex.md +0 -169
  441. 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 +0 -355
  442. 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 +0 -230
  443. 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 +0 -176
  444. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-opencode.md +0 -237
  445. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-architecture-diagram.md +0 -165
  446. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-ascii-art.md +0 -338
  447. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-ascii-video.md +0 -265
  448. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-baoyu-infographic.md +0 -256
  449. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-claude-design.md +0 -668
  450. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-comfyui.md +0 -616
  451. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-design-md.md +0 -238
  452. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-excalidraw.md +0 -212
  453. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-humanizer.md +0 -663
  454. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-manim-video.md +0 -292
  455. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-p5js.md +0 -576
  456. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-popular-web-designs.md +0 -223
  457. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-pretext.md +0 -238
  458. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-sketch.md +0 -240
  459. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/creative/creative-songwriting-and-ai-music.md +0 -319
  460. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/devops/devops-sdlc-review.md +0 -195
  461. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/email/email-email-inbox-triage.md +0 -115
  462. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/email/email-himalaya.md +0 -319
  463. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-codebase-inspection.md +0 -132
  464. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-auth.md +0 -265
  465. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-code-review.md +0 -499
  466. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-issue-to-pr.md +0 -95
  467. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-issues.md +0 -388
  468. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-pr-workflow.md +0 -385
  469. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/github/github-github-repo-management.md +0 -534
  470. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/media/media-gif-search.md +0 -106
  471. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/media/media-songsee.md +0 -98
  472. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/media/media-youtube-content.md +0 -100
  473. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-evaluation-evaluating-llms-harness.md +0 -512
  474. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-evaluation-weights-and-biases.md +0 -613
  475. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-huggingface-hub.md +0 -100
  476. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-inference-llama-cpp.md +0 -267
  477. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/mlops/mlops-inference-serving-llms-vllm.md +0 -387
  478. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/note-taking/note-taking-obsidian.md +0 -85
  479. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-airtable.md +0 -243
  480. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-box.md +0 -132
  481. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-document-to-action-items.md +0 -99
  482. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-docx.md +0 -213
  483. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-google-workspace.md +0 -348
  484. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-maps.md +0 -210
  485. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-meeting-action-items.md +0 -105
  486. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-nano-pdf.md +0 -70
  487. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-notion.md +0 -463
  488. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-ocr-and-documents.md +0 -193
  489. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-pdf.md +0 -142
  490. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-powerpoint.md +0 -237
  491. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-product-price-monitor.md +0 -97
  492. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-session-librarian.md +0 -122
  493. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-teams-meeting-pipeline.md +0 -129
  494. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-weekly-review-planning.md +0 -99
  495. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/productivity/productivity-xlsx.md +0 -213
  496. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-arxiv.md +0 -300
  497. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-blocked-page-recovery.md +0 -155
  498. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-blogwatcher.md +0 -152
  499. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-competitor-news-monitor.md +0 -106
  500. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-grounded-citations.md +0 -274
  501. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-llm-wiki.md +0 -526
  502. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/research/research-research-paper-writing.md +0 -1645
  503. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/smart-home/smart-home-openhue.md +0 -127
  504. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/social-media/social-media-xurl.md +0 -450
  505. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-codebase-inspection.md +0 -132
  506. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-dogfood.md +0 -183
  507. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-github.md +0 -73
  508. 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 +0 -230
  509. 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 +0 -177
  510. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-node-inspect-debugger.md +0 -337
  511. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-python-debugpy.md +0 -391
  512. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-requesting-code-review.md +0 -298
  513. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-simplify-code.md +0 -288
  514. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-spike.md +0 -217
  515. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-systematic-debugging.md +0 -429
  516. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/software-development/software-development-test-driven-development.md +0 -380
  517. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/bundled/web/web-blocked-page-recovery.md +0 -155
  518. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/google-workspace.md +0 -191
  519. 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 +0 -259
  520. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-blackbox.md +0 -161
  521. 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 +0 -198
  522. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-grok.md +0 -326
  523. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-honcho.md +0 -446
  524. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/autonomous-ai-agents/autonomous-ai-agents-openhands.md +0 -167
  525. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/blockchain/blockchain-evm.md +0 -227
  526. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/blockchain/blockchain-hyperliquid.md +0 -228
  527. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/blockchain/blockchain-solana.md +0 -225
  528. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/communication/communication-one-three-one-rule.md +0 -114
  529. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-ai-presenter-video.md +0 -211
  530. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-archify.md +0 -66
  531. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-ascii-art.md +0 -338
  532. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-audiocraft-audio-generation.md +0 -588
  533. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-auteur.md +0 -195
  534. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-baoyu-article-illustrator.md +0 -225
  535. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-baoyu-comic.md +0 -264
  536. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-comfyui.md +0 -616
  537. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-concept-diagrams.md +0 -379
  538. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-creative-ideation.md +0 -192
  539. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-draw-your-font.md +0 -169
  540. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-dream-loop.md +0 -297
  541. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-excalidraw.md +0 -212
  542. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-heartmula.md +0 -191
  543. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-hyperframes.md +0 -222
  544. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-impeccable.md +0 -56
  545. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-ip-as-logo.md +0 -171
  546. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-kanban-video-orchestrator.md +0 -220
  547. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-meme-generation.md +0 -147
  548. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-mono-color.md +0 -158
  549. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-pixel-art.md +0 -234
  550. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-pretext.md +0 -238
  551. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-simple-english.md +0 -362
  552. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-sketch.md +0 -240
  553. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-social-media-content-calendar.md +0 -88
  554. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-system-atlas.md +0 -105
  555. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-tldraw-offline.md +0 -294
  556. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/creative/creative-unreal-mcp.md +0 -269
  557. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/data-science/data-science-jupyter-notebook.md +0 -195
  558. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-actual-setup.md +0 -164
  559. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-docker-management.md +0 -298
  560. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-hermes-s6-container-supervision.md +0 -198
  561. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-inference-sh-cli.md +0 -173
  562. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-pinggy-tunnel.md +0 -326
  563. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-setup-wizard-generator.md +0 -133
  564. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/devops/devops-watchers.md +0 -126
  565. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/dogfood/dogfood-adversarial-ux-test.md +0 -209
  566. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/email/email-agentmail.md +0 -104
  567. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-3-statement-model.md +0 -451
  568. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-comps-analysis.md +0 -682
  569. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-dcf-model.md +0 -1288
  570. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-excel-author.md +0 -262
  571. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-lbo-model.md +0 -309
  572. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-merger-model.md +0 -162
  573. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-polymarket.md +0 -97
  574. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-pptx-author.md +0 -191
  575. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/finance/finance-stocks.md +0 -112
  576. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/gaming/gaming-minecraft-modpack-server.md +0 -209
  577. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/gaming/gaming-pokemon-player.md +0 -240
  578. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/health/health-fitness-nutrition.md +0 -259
  579. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/health/health-neuroskill-bci.md +0 -470
  580. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mcp/mcp-fastmcp.md +0 -315
  581. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mcp/mcp-mcp-oauth-remote-gateway.md +0 -389
  582. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mcp/mcp-mcporter.md +0 -138
  583. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/migration/migration-openclaw-migration.md +0 -316
  584. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-accelerate.md +0 -366
  585. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-chroma.md +0 -425
  586. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-clip.md +0 -272
  587. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-evaluation-evaluating-llms-harness.md +0 -512
  588. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-evaluation-weights-and-biases.md +0 -613
  589. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-faiss.md +0 -240
  590. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-flash-attention.md +0 -388
  591. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-guidance.md +0 -595
  592. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-huggingface-tokenizers.md +0 -535
  593. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-inference-llama-cpp.md +0 -267
  594. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-inference-outlines.md +0 -679
  595. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-inference-serving-llms-vllm.md +0 -387
  596. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-instructor.md +0 -759
  597. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-lambda-labs.md +0 -568
  598. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-llava.md +0 -323
  599. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-modal.md +0 -368
  600. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-models-huggingface-hub.md +0 -100
  601. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-models-segment-anything-model.md +0 -525
  602. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-nemo-curator.md +0 -415
  603. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-obliteratus.md +0 -360
  604. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-peft.md +0 -452
  605. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-pinecone.md +0 -396
  606. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-pytorch-fsdp.md +0 -97
  607. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-pytorch-lightning.md +0 -365
  608. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-qdrant.md +0 -522
  609. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-research-dspy.md +0 -609
  610. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-saelens.md +0 -439
  611. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-simpo.md +0 -237
  612. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-slime.md +0 -486
  613. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-stable-diffusion.md +0 -542
  614. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-tensorrt-llm.md +0 -208
  615. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-torchtitan.md +0 -404
  616. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-training-axolotl.md +0 -181
  617. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-training-trl-fine-tuning.md +0 -512
  618. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-training-unsloth.md +0 -98
  619. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/mlops/mlops-whisper.md +0 -336
  620. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/payments/payments-mpp-agent.md +0 -142
  621. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/payments/payments-stripe-link-cli.md +0 -202
  622. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/payments/payments-stripe-projects.md +0 -138
  623. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-canvas.md +0 -114
  624. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-decision-questionnaire.md +0 -133
  625. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-here-now.md +0 -231
  626. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-live-dashboard.md +0 -126
  627. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-memento-flashcards.md +0 -336
  628. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-property-listings.md +0 -121
  629. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-shop.md +0 -238
  630. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-shopify.md +0 -377
  631. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-siyuan.md +0 -305
  632. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/productivity/productivity-telephony.md +0 -435
  633. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-bioinformatics.md +0 -254
  634. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-blogwatcher.md +0 -162
  635. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-darwinian-evolver.md +0 -217
  636. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-domain-intel.md +0 -121
  637. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-drug-discovery.md +0 -237
  638. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-duckduckgo-search.md +0 -255
  639. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-gitnexus-explorer.md +0 -232
  640. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-osint-investigation.md +0 -295
  641. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-parallel-cli.md +0 -411
  642. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-pinecone-research.md +0 -125
  643. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-qmd.md +0 -459
  644. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-research-paper-writing.md +0 -1645
  645. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-rss-feeds.md +0 -114
  646. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-scrapling.md +0 -351
  647. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/research/research-searxng-search.md +0 -212
  648. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-1password.md +0 -173
  649. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-godmode.md +0 -421
  650. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-oss-forensics.md +0 -426
  651. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-sherlock.md +0 -208
  652. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-unbroker.md +0 -331
  653. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/security/security-web-pentest.md +0 -337
  654. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/smart-home/smart-home-openhue.md +0 -127
  655. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/social-media/social-media-reddit-reading.md +0 -146
  656. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-ast-grep.md +0 -307
  657. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-code-wiki.md +0 -463
  658. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-grill-me.md +0 -135
  659. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-pr-lens.md +0 -160
  660. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-rest-graphql-debug.md +0 -532
  661. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/software-development/software-development-subagent-driven-development.md +0 -370
  662. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-cloudflare-temporary-deploy.md +0 -144
  663. 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 +0 -180
  664. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-page-agent.md +0 -207
  665. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-publish-site.md +0 -174
  666. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/web-development/web-development-scrollcraft.md +0 -257
  667. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/skills/optional/yuanbao/yuanbao-yuanbao.md +0 -127
  668. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/tui.md +0 -313
  669. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/which-file-does-what.md +0 -57
  670. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/windows-native.md +0 -326
  671. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-guide/windows-wsl-quickstart.md +0 -358
  672. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docs/user-stories.mdx +0 -10
  673. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/docusaurus.config.ts +0 -210
  674. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/acp-internals.md +0 -181
  675. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/adding-platform-adapters.md +0 -686
  676. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/adding-providers.md +0 -459
  677. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/adding-tools.md +0 -209
  678. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/agent-loop.md +0 -239
  679. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/architecture.md +0 -277
  680. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/browser-supervisor.md +0 -160
  681. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/context-compression-and-caching.md +0 -328
  682. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/context-engine-plugin.md +0 -193
  683. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/contributing.md +0 -253
  684. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/creating-skills.md +0 -375
  685. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/cron-internals.md +0 -236
  686. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/extending-the-cli.md +0 -192
  687. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/gateway-internals.md +0 -267
  688. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/image-gen-provider-plugin.md +0 -288
  689. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/memory-provider-plugin.md +0 -258
  690. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/model-provider-plugin.md +0 -267
  691. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/plugin-llm-access.md +0 -401
  692. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/plugins/index.md +0 -1156
  693. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/programmatic-integration.md +0 -126
  694. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/prompt-assembly.md +0 -273
  695. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/provider-runtime.md +0 -208
  696. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/session-storage.md +0 -420
  697. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/tools-runtime.md +0 -236
  698. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/trajectory-format.md +0 -222
  699. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/video-gen-provider-plugin.md +0 -231
  700. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/developer-guide/web-search-provider-plugin.md +0 -260
  701. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/installation.md +0 -204
  702. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/learning-path.md +0 -154
  703. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/nix-setup.md +0 -975
  704. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/quickstart.md +0 -352
  705. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/termux.md +0 -236
  706. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/getting-started/updating.md +0 -231
  707. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/automate-with-cron.md +0 -266
  708. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/automation-blueprints.md +0 -595
  709. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/aws-bedrock.md +0 -170
  710. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/azure-foundry.md +0 -334
  711. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/cron-script-only.md +0 -247
  712. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/cron-troubleshooting.md +0 -227
  713. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/daily-briefing-bot.md +0 -268
  714. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/delegation-patterns.md +0 -239
  715. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/github-pr-review-agent.md +0 -303
  716. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/google-gemini.md +0 -254
  717. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/local-llm-on-mac.md +0 -240
  718. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/local-ollama-setup.md +0 -317
  719. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/microsoft-graph-app-registration.md +0 -180
  720. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/migrate-from-openclaw.md +0 -244
  721. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/minimax-oauth.md +0 -228
  722. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/oauth-over-ssh.md +0 -96
  723. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/operate-teams-meeting-pipeline.md +0 -288
  724. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/pipe-script-output.md +0 -217
  725. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/python-library.md +0 -333
  726. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/run-hermes-with-nous-portal.md +0 -273
  727. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/team-telegram-assistant.md +0 -441
  728. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/tips.md +0 -234
  729. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/use-mcp-with-hermes.md +0 -490
  730. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/use-soul-with-hermes.md +0 -264
  731. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/use-voice-mode-with-hermes.md +0 -469
  732. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/webhook-github-pr-review.md +0 -329
  733. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/work-with-skills.md +0 -290
  734. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/guides/xai-grok-oauth.md +0 -243
  735. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/index.mdx +0 -117
  736. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/buzz.md +0 -57
  737. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/index.md +0 -100
  738. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/nous-portal.md +0 -272
  739. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/integrations/providers.md +0 -1433
  740. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/cli-commands.md +0 -1259
  741. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/environment-variables.md +0 -678
  742. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/faq.md +0 -859
  743. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/mcp-config-reference.md +0 -250
  744. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/model-catalog.md +0 -103
  745. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/optional-skills-catalog.md +0 -220
  746. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/profile-commands.md +0 -467
  747. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/skills-catalog.md +0 -156
  748. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/slash-commands.md +0 -272
  749. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/tools-reference.md +0 -261
  750. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/reference/toolsets-reference.md +0 -162
  751. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/checkpoints-and-rollback.md +0 -251
  752. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/cli.md +0 -445
  753. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/configuration.md +0 -1746
  754. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/configuring-models.md +0 -239
  755. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/docker.md +0 -595
  756. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/acp.md +0 -341
  757. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/api-server.md +0 -456
  758. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/batch-processing.md +0 -229
  759. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/browser.md +0 -629
  760. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/built-in-plugins.md +0 -269
  761. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/code-execution.md +0 -240
  762. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/codex-app-server-runtime.md +0 -441
  763. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/computer-use.md +0 -144
  764. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/context-files.md +0 -218
  765. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/context-references.md +0 -142
  766. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/credential-pools.md +0 -240
  767. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/cron.md +0 -761
  768. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/curator.md +0 -248
  769. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/delegation.md +0 -355
  770. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/deliverable-mode.md +0 -91
  771. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/extending-the-dashboard.md +0 -907
  772. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/fallback-providers.md +0 -408
  773. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/goals.md +0 -180
  774. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/honcho.md +0 -233
  775. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/hooks.md +0 -1388
  776. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/image-generation.md +0 -150
  777. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/kanban-tutorial.md +0 -308
  778. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/kanban-worker-lanes.md +0 -117
  779. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/kanban.md +0 -863
  780. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/lsp.md +0 -217
  781. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/mcp.md +0 -591
  782. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/memory-providers.md +0 -570
  783. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/memory.md +0 -233
  784. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/overview.md +0 -52
  785. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/personality.md +0 -271
  786. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/plugins.md +0 -346
  787. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/provider-routing.md +0 -200
  788. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/skills.md +0 -760
  789. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/skins.md +0 -271
  790. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/spotify.md +0 -279
  791. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/subscription-proxy.md +0 -163
  792. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/tool-gateway.md +0 -187
  793. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/tools.md +0 -223
  794. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/tts.md +0 -456
  795. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/vision.md +0 -210
  796. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/voice-mode.md +0 -521
  797. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/web-dashboard.md +0 -351
  798. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/web-search.md +0 -422
  799. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/features/x-search.md +0 -147
  800. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/git-worktrees.md +0 -173
  801. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/bluebubbles.md +0 -143
  802. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/dingtalk.md +0 -283
  803. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/discord.md +0 -843
  804. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/email.md +0 -190
  805. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/feishu.md +0 -538
  806. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/google_chat.md +0 -283
  807. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/homeassistant.md +0 -252
  808. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/index.md +0 -569
  809. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/line.md +0 -199
  810. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/matrix.md +0 -677
  811. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/mattermost.md +0 -340
  812. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/msgraph-webhook.md +0 -137
  813. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/ntfy.md +0 -155
  814. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/open-webui.md +0 -296
  815. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/qqbot.md +0 -123
  816. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/signal.md +0 -257
  817. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/simplex.md +0 -98
  818. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/slack.md +0 -614
  819. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/sms.md +0 -203
  820. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/teams-meetings.md +0 -233
  821. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/teams.md +0 -255
  822. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/telegram.md +0 -1241
  823. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/webhooks.md +0 -601
  824. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/wecom-callback.md +0 -149
  825. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/wecom.md +0 -292
  826. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/weixin.md +0 -312
  827. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/whatsapp.md +0 -236
  828. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/messaging/yuanbao.md +0 -341
  829. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/profile-distributions.md +0 -573
  830. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/profiles.md +0 -272
  831. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/secrets/bitwarden.md +0 -143
  832. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/secrets/index.md +0 -9
  833. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/security.md +0 -664
  834. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/sessions.md +0 -609
  835. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-apple-notes.md +0 -106
  836. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-apple-reminders.md +0 -114
  837. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-findmy.md +0 -147
  838. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-imessage.md +0 -118
  839. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/apple/apple-macos-computer-use.md +0 -175
  840. 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 +0 -763
  841. 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 +0 -143
  842. 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 +0 -947
  843. 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 +0 -237
  844. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-architecture-diagram.md +0 -165
  845. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-ascii-art.md +0 -338
  846. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-ascii-video.md +0 -261
  847. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-baoyu-infographic.md +0 -256
  848. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-claude-design.md +0 -609
  849. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-comfyui.md +0 -547
  850. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-design-md.md +0 -189
  851. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-excalidraw.md +0 -210
  852. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-humanizer.md +0 -594
  853. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-manim-video.md +0 -289
  854. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-p5js.md +0 -574
  855. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-popular-web-designs.md +0 -211
  856. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-pretext.md +0 -238
  857. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/creative/creative-sketch.md +0 -238
  858. 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 +0 -305
  859. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/email/email-himalaya.md +0 -305
  860. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-codebase-inspection.md +0 -132
  861. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-auth.md +0 -265
  862. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-code-review.md +0 -499
  863. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-issues.md +0 -388
  864. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-pr-workflow.md +0 -385
  865. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/github/github-github-repo-management.md +0 -534
  866. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/media/media-gif-search.md +0 -106
  867. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/media/media-songsee.md +0 -98
  868. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/media/media-youtube-content.md +0 -93
  869. 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 +0 -512
  870. 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 +0 -609
  871. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-huggingface-hub.md +0 -100
  872. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/mlops/mlops-inference-llama-cpp.md +0 -267
  873. 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 +0 -386
  874. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/note-taking/note-taking-obsidian.md +0 -81
  875. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-airtable.md +0 -243
  876. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-google-workspace.md +0 -325
  877. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-maps.md +0 -196
  878. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-nano-pdf.md +0 -69
  879. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-notion.md +0 -463
  880. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-ocr-and-documents.md +0 -190
  881. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-powerpoint.md +0 -257
  882. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/productivity/productivity-teams-meeting-pipeline.md +0 -127
  883. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-arxiv.md +0 -300
  884. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-blogwatcher.md +0 -152
  885. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-llm-wiki.md +0 -469
  886. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/research/research-research-paper-writing.md +0 -2395
  887. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/smart-home/smart-home-openhue.md +0 -124
  888. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/social-media/social-media-xurl.md +0 -428
  889. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-dogfood.md +0 -181
  890. 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 +0 -183
  891. 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 +0 -337
  892. 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 +0 -391
  893. 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 +0 -287
  894. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/bundled/software-development/software-development-spike.md +0 -217
  895. 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 +0 -385
  896. 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 +0 -361
  897. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/google-workspace.md +0 -191
  898. 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 +0 -162
  899. 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 +0 -446
  900. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/blockchain/blockchain-evm.md +0 -227
  901. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/blockchain/blockchain-hyperliquid.md +0 -210
  902. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/blockchain/blockchain-solana.md +0 -206
  903. 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 +0 -114
  904. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-audiocraft-audio-generation.md +0 -588
  905. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-concept-diagrams.md +0 -379
  906. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-heartmula.md +0 -189
  907. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-hyperframes.md +0 -205
  908. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-kanban-video-orchestrator.md +0 -173
  909. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/creative/creative-meme-generation.md +0 -147
  910. 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 +0 -180
  911. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-docker-management.md +0 -297
  912. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-inference-sh-cli.md +0 -173
  913. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-pinggy-tunnel.md +0 -327
  914. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/devops/devops-watchers.md +0 -126
  915. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/dogfood/dogfood-adversarial-ux-test.md +0 -209
  916. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/email/email-agentmail.md +0 -143
  917. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-3-statement-model.md +0 -451
  918. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-comps-analysis.md +0 -682
  919. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-dcf-model.md +0 -1288
  920. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-excel-author.md +0 -262
  921. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-lbo-model.md +0 -309
  922. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-merger-model.md +0 -162
  923. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-polymarket.md +0 -94
  924. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-pptx-author.md +0 -191
  925. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/finance/finance-stocks.md +0 -108
  926. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/health/health-fitness-nutrition.md +0 -255
  927. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/health/health-neuroskill-bci.md +0 -431
  928. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mcp/mcp-fastmcp.md +0 -315
  929. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mcp/mcp-mcporter.md +0 -138
  930. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/migration/migration-openclaw-migration.md +0 -316
  931. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-accelerate.md +0 -350
  932. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-chroma.md +0 -425
  933. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-clip.md +0 -272
  934. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-faiss.md +0 -240
  935. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-flash-attention.md +0 -381
  936. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-guidance.md +0 -591
  937. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-huggingface-tokenizers.md +0 -535
  938. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-inference-outlines.md +0 -671
  939. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-instructor.md +0 -759
  940. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-lambda-labs.md +0 -568
  941. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-llava.md +0 -323
  942. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-modal.md +0 -362
  943. 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 +0 -525
  944. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-nemo-curator.md +0 -401
  945. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-peft.md +0 -452
  946. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-pinecone.md +0 -377
  947. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-pytorch-fsdp.md +0 -145
  948. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-pytorch-lightning.md +0 -365
  949. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-qdrant.md +0 -514
  950. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-saelens.md +0 -407
  951. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-simpo.md +0 -237
  952. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-slime.md +0 -486
  953. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-stable-diffusion.md +0 -542
  954. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-tensorrt-llm.md +0 -206
  955. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-torchtitan.md +0 -378
  956. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-training-axolotl.md +0 -181
  957. 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 +0 -477
  958. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-training-unsloth.md +0 -98
  959. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/mlops/mlops-whisper.md +0 -336
  960. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-canvas.md +0 -114
  961. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-here-now.md +0 -231
  962. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-memento-flashcards.md +0 -336
  963. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-shop.md +0 -354
  964. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-shopify.md +0 -377
  965. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-siyuan.md +0 -305
  966. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/productivity/productivity-telephony.md +0 -435
  967. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-bioinformatics.md +0 -252
  968. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-darwinian-evolver.md +0 -188
  969. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-domain-intel.md +0 -117
  970. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-drug-discovery.md +0 -237
  971. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-duckduckgo-search.md +0 -255
  972. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-gitnexus-explorer.md +0 -213
  973. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-osint-investigation.md +0 -243
  974. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-parallel-cli.md +0 -411
  975. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-qmd.md +0 -435
  976. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-scrapling.md +0 -351
  977. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/research/research-searxng-search.md +0 -229
  978. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/security/security-1password.md +0 -173
  979. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/security/security-oss-forensics.md +0 -421
  980. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/security/security-sherlock.md +0 -208
  981. 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 +0 -531
  982. 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 +0 -207
  983. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/skills/optional/yuanbao/yuanbao-yuanbao.md +0 -125
  984. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/tui.md +0 -256
  985. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/windows-native.md +0 -325
  986. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-guide/windows-wsl-quickstart.md +0 -332
  987. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/i18n/zh-Hans/user-stories.mdx +0 -10
  988. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/llms-full.txt +0 -88833
  989. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/llms.txt +0 -267
  990. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/site-pages-map.txt +0 -928
  991. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src/site-pages.json +0 -4218
  992. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-README.md +0 -101
  993. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/clone_repo.sh +0 -17
  994. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/crawl.py +0 -82
  995. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/gen_mapping.py +0 -112
  996. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/retry-none.json +0 -305
  997. package/docs/80_upstream-docs-and-skills/hermes-dev-skill/src-scripts/verify_orphans.py +0 -53
  998. /package/lib/{native-capture-x_Hos2e8.js → native-capture-BEByDXYM.js} +0 -0
  999. /package/lib/{py-sdk-Chvy92MB.js → py-sdk-D7klhpWb.js} +0 -0
@@ -0,0 +1,3440 @@
1
+ //#region node_modules/web-tree-sitter/web-tree-sitter.js
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", {
4
+ value,
5
+ configurable: true
6
+ });
7
+ var Edit = class {
8
+ static {
9
+ __name(this, "Edit");
10
+ }
11
+ /** The start position of the change. */
12
+ startPosition;
13
+ /** The end position of the change before the edit. */
14
+ oldEndPosition;
15
+ /** The end position of the change after the edit. */
16
+ newEndPosition;
17
+ /** The start index of the change. */
18
+ startIndex;
19
+ /** The end index of the change before the edit. */
20
+ oldEndIndex;
21
+ /** The end index of the change after the edit. */
22
+ newEndIndex;
23
+ constructor({ startIndex, oldEndIndex, newEndIndex, startPosition, oldEndPosition, newEndPosition }) {
24
+ this.startIndex = startIndex >>> 0;
25
+ this.oldEndIndex = oldEndIndex >>> 0;
26
+ this.newEndIndex = newEndIndex >>> 0;
27
+ this.startPosition = startPosition;
28
+ this.oldEndPosition = oldEndPosition;
29
+ this.newEndPosition = newEndPosition;
30
+ }
31
+ /**
32
+ * Edit a point and index to keep it in-sync with source code that has been edited.
33
+ *
34
+ * This function updates a single point's byte offset and row/column position
35
+ * based on an edit operation. This is useful for editing points without
36
+ * requiring a tree or node instance.
37
+ */
38
+ editPoint(point, index) {
39
+ let newIndex = index;
40
+ const newPoint = { ...point };
41
+ if (index >= this.oldEndIndex) {
42
+ newIndex = this.newEndIndex + (index - this.oldEndIndex);
43
+ const originalRow = point.row;
44
+ newPoint.row = this.newEndPosition.row + (point.row - this.oldEndPosition.row);
45
+ newPoint.column = originalRow === this.oldEndPosition.row ? this.newEndPosition.column + (point.column - this.oldEndPosition.column) : point.column;
46
+ } else if (index > this.startIndex) {
47
+ newIndex = this.newEndIndex;
48
+ newPoint.row = this.newEndPosition.row;
49
+ newPoint.column = this.newEndPosition.column;
50
+ }
51
+ return {
52
+ point: newPoint,
53
+ index: newIndex
54
+ };
55
+ }
56
+ /**
57
+ * Edit a range to keep it in-sync with source code that has been edited.
58
+ *
59
+ * This function updates a range's start and end positions based on an edit
60
+ * operation. This is useful for editing ranges without requiring a tree
61
+ * or node instance.
62
+ */
63
+ editRange(range) {
64
+ const newRange = {
65
+ startIndex: range.startIndex,
66
+ startPosition: { ...range.startPosition },
67
+ endIndex: range.endIndex,
68
+ endPosition: { ...range.endPosition }
69
+ };
70
+ if (range.endIndex >= this.oldEndIndex) {
71
+ if (range.endIndex !== Number.MAX_SAFE_INTEGER) {
72
+ newRange.endIndex = this.newEndIndex + (range.endIndex - this.oldEndIndex);
73
+ newRange.endPosition = {
74
+ row: this.newEndPosition.row + (range.endPosition.row - this.oldEndPosition.row),
75
+ column: range.endPosition.row === this.oldEndPosition.row ? this.newEndPosition.column + (range.endPosition.column - this.oldEndPosition.column) : range.endPosition.column
76
+ };
77
+ if (newRange.endIndex < this.newEndIndex) {
78
+ newRange.endIndex = Number.MAX_SAFE_INTEGER;
79
+ newRange.endPosition = {
80
+ row: Number.MAX_SAFE_INTEGER,
81
+ column: Number.MAX_SAFE_INTEGER
82
+ };
83
+ }
84
+ }
85
+ } else if (range.endIndex > this.startIndex) {
86
+ newRange.endIndex = this.startIndex;
87
+ newRange.endPosition = { ...this.startPosition };
88
+ }
89
+ if (range.startIndex >= this.oldEndIndex) {
90
+ newRange.startIndex = this.newEndIndex + (range.startIndex - this.oldEndIndex);
91
+ newRange.startPosition = {
92
+ row: this.newEndPosition.row + (range.startPosition.row - this.oldEndPosition.row),
93
+ column: range.startPosition.row === this.oldEndPosition.row ? this.newEndPosition.column + (range.startPosition.column - this.oldEndPosition.column) : range.startPosition.column
94
+ };
95
+ if (newRange.startIndex < this.newEndIndex) {
96
+ newRange.startIndex = Number.MAX_SAFE_INTEGER;
97
+ newRange.startPosition = {
98
+ row: Number.MAX_SAFE_INTEGER,
99
+ column: Number.MAX_SAFE_INTEGER
100
+ };
101
+ }
102
+ } else if (range.startIndex > this.startIndex) {
103
+ newRange.startIndex = this.startIndex;
104
+ newRange.startPosition = { ...this.startPosition };
105
+ }
106
+ return newRange;
107
+ }
108
+ };
109
+ var SIZE_OF_SHORT = 2;
110
+ var SIZE_OF_INT = 4;
111
+ var SIZE_OF_CURSOR = 4 * SIZE_OF_INT;
112
+ var SIZE_OF_NODE = 5 * SIZE_OF_INT;
113
+ var SIZE_OF_POINT = 2 * SIZE_OF_INT;
114
+ var SIZE_OF_RANGE = 2 * SIZE_OF_INT + 2 * SIZE_OF_POINT;
115
+ var ZERO_POINT = {
116
+ row: 0,
117
+ column: 0
118
+ };
119
+ var INTERNAL = /* @__PURE__ */ Symbol("INTERNAL");
120
+ function assertInternal(x) {
121
+ if (x !== INTERNAL) throw new Error("Illegal constructor");
122
+ }
123
+ __name(assertInternal, "assertInternal");
124
+ function isPoint(point) {
125
+ return !!point && typeof point.row === "number" && typeof point.column === "number";
126
+ }
127
+ __name(isPoint, "isPoint");
128
+ function setModule(module2) {
129
+ C = module2;
130
+ }
131
+ __name(setModule, "setModule");
132
+ var C;
133
+ var LookaheadIterator = class {
134
+ static {
135
+ __name(this, "LookaheadIterator");
136
+ }
137
+ /** @internal */
138
+ [0] = 0;
139
+ /** @internal */
140
+ language;
141
+ /** @internal */
142
+ constructor(internal, address, language) {
143
+ assertInternal(internal);
144
+ this[0] = address;
145
+ this.language = language;
146
+ }
147
+ /** Get the current symbol of the lookahead iterator. */
148
+ get currentTypeId() {
149
+ return C._ts_lookahead_iterator_current_symbol(this[0]);
150
+ }
151
+ /** Get the current symbol name of the lookahead iterator. */
152
+ get currentType() {
153
+ return this.language.types[this.currentTypeId] || "ERROR";
154
+ }
155
+ /** Delete the lookahead iterator, freeing its resources. */
156
+ delete() {
157
+ C._ts_lookahead_iterator_delete(this[0]);
158
+ this[0] = 0;
159
+ }
160
+ /**
161
+ * Reset the lookahead iterator.
162
+ *
163
+ * This returns `true` if the language was set successfully and `false`
164
+ * otherwise.
165
+ */
166
+ reset(language, stateId) {
167
+ if (C._ts_lookahead_iterator_reset(this[0], language[0], stateId)) {
168
+ this.language = language;
169
+ return true;
170
+ }
171
+ return false;
172
+ }
173
+ /**
174
+ * Reset the lookahead iterator to another state.
175
+ *
176
+ * This returns `true` if the iterator was reset to the given state and
177
+ * `false` otherwise.
178
+ */
179
+ resetState(stateId) {
180
+ return Boolean(C._ts_lookahead_iterator_reset_state(this[0], stateId));
181
+ }
182
+ /**
183
+ * Returns an iterator that iterates over the symbols of the lookahead iterator.
184
+ *
185
+ * The iterator will yield the current symbol name as a string for each step
186
+ * until there are no more symbols to iterate over.
187
+ */
188
+ [Symbol.iterator]() {
189
+ return { next: /* @__PURE__ */ __name(() => {
190
+ if (C._ts_lookahead_iterator_next(this[0])) return {
191
+ done: false,
192
+ value: this.currentType
193
+ };
194
+ return {
195
+ done: true,
196
+ value: ""
197
+ };
198
+ }, "next") };
199
+ }
200
+ };
201
+ function getText(tree, startIndex, endIndex, startPosition) {
202
+ const length = endIndex - startIndex;
203
+ let result = tree.textCallback(startIndex, startPosition);
204
+ if (result) {
205
+ startIndex += result.length;
206
+ while (startIndex < endIndex) {
207
+ const string = tree.textCallback(startIndex, startPosition);
208
+ if (string && string.length > 0) {
209
+ startIndex += string.length;
210
+ result += string;
211
+ } else break;
212
+ }
213
+ if (startIndex > endIndex) result = result.slice(0, length);
214
+ }
215
+ return result ?? "";
216
+ }
217
+ __name(getText, "getText");
218
+ var Tree = class _Tree {
219
+ static {
220
+ __name(this, "Tree");
221
+ }
222
+ /** @internal */
223
+ [0] = 0;
224
+ /** @internal */
225
+ textCallback;
226
+ /** The language that was used to parse the syntax tree. */
227
+ language;
228
+ /** @internal */
229
+ constructor(internal, address, language, textCallback) {
230
+ assertInternal(internal);
231
+ this[0] = address;
232
+ this.language = language;
233
+ this.textCallback = textCallback;
234
+ }
235
+ /** Create a shallow copy of the syntax tree. This is very fast. */
236
+ copy() {
237
+ return new _Tree(INTERNAL, C._ts_tree_copy(this[0]), this.language, this.textCallback);
238
+ }
239
+ /** Delete the syntax tree, freeing its resources. */
240
+ delete() {
241
+ C._ts_tree_delete(this[0]);
242
+ this[0] = 0;
243
+ }
244
+ /** Get the root node of the syntax tree. */
245
+ get rootNode() {
246
+ C._ts_tree_root_node_wasm(this[0]);
247
+ return unmarshalNode(this);
248
+ }
249
+ /**
250
+ * Get the root node of the syntax tree, but with its position shifted
251
+ * forward by the given offset.
252
+ */
253
+ rootNodeWithOffset(offsetBytes, offsetExtent) {
254
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
255
+ C.setValue(address, offsetBytes, "i32");
256
+ marshalPoint(address + SIZE_OF_INT, offsetExtent);
257
+ C._ts_tree_root_node_with_offset_wasm(this[0]);
258
+ return unmarshalNode(this);
259
+ }
260
+ /**
261
+ * Edit the syntax tree to keep it in sync with source code that has been
262
+ * edited.
263
+ *
264
+ * You must describe the edit both in terms of byte offsets and in terms of
265
+ * row/column coordinates.
266
+ */
267
+ edit(edit) {
268
+ marshalEdit(edit);
269
+ C._ts_tree_edit_wasm(this[0]);
270
+ }
271
+ /** Create a new {@link TreeCursor} starting from the root of the tree. */
272
+ walk() {
273
+ return this.rootNode.walk();
274
+ }
275
+ /**
276
+ * Compare this old edited syntax tree to a new syntax tree representing
277
+ * the same document, returning a sequence of ranges whose syntactic
278
+ * structure has changed.
279
+ *
280
+ * For this to work correctly, this syntax tree must have been edited such
281
+ * that its ranges match up to the new tree. Generally, you'll want to
282
+ * call this method right after calling one of the [`Parser::parse`]
283
+ * functions. Call it on the old tree that was passed to parse, and
284
+ * pass the new tree that was returned from `parse`.
285
+ */
286
+ getChangedRanges(other) {
287
+ if (!(other instanceof _Tree)) throw new TypeError("Argument must be a Tree");
288
+ C._ts_tree_get_changed_ranges_wasm(this[0], other[0]);
289
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
290
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
291
+ const result = new Array(count);
292
+ if (count > 0) {
293
+ let address = buffer;
294
+ for (let i2 = 0; i2 < count; i2++) {
295
+ result[i2] = unmarshalRange(address);
296
+ address += SIZE_OF_RANGE;
297
+ }
298
+ C._free(buffer);
299
+ }
300
+ return result;
301
+ }
302
+ /** Get the included ranges that were used to parse the syntax tree. */
303
+ getIncludedRanges() {
304
+ C._ts_tree_included_ranges_wasm(this[0]);
305
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
306
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
307
+ const result = new Array(count);
308
+ if (count > 0) {
309
+ let address = buffer;
310
+ for (let i2 = 0; i2 < count; i2++) {
311
+ result[i2] = unmarshalRange(address);
312
+ address += SIZE_OF_RANGE;
313
+ }
314
+ C._free(buffer);
315
+ }
316
+ return result;
317
+ }
318
+ };
319
+ var TreeCursor = class _TreeCursor {
320
+ static {
321
+ __name(this, "TreeCursor");
322
+ }
323
+ /** @internal */
324
+ [0] = 0;
325
+ /** @internal */
326
+ [1] = 0;
327
+ /** @internal */
328
+ [2] = 0;
329
+ /** @internal */
330
+ [3] = 0;
331
+ /** @internal */
332
+ tree;
333
+ /** @internal */
334
+ constructor(internal, tree) {
335
+ assertInternal(internal);
336
+ this.tree = tree;
337
+ unmarshalTreeCursor(this);
338
+ }
339
+ /** Creates a deep copy of the tree cursor. This allocates new memory. */
340
+ copy() {
341
+ const copy = new _TreeCursor(INTERNAL, this.tree);
342
+ C._ts_tree_cursor_copy_wasm(this.tree[0]);
343
+ unmarshalTreeCursor(copy);
344
+ return copy;
345
+ }
346
+ /** Delete the tree cursor, freeing its resources. */
347
+ delete() {
348
+ marshalTreeCursor(this);
349
+ C._ts_tree_cursor_delete_wasm(this.tree[0]);
350
+ this[0] = this[1] = this[2] = 0;
351
+ }
352
+ /** Get the tree cursor's current {@link Node}. */
353
+ get currentNode() {
354
+ marshalTreeCursor(this);
355
+ C._ts_tree_cursor_current_node_wasm(this.tree[0]);
356
+ return unmarshalNode(this.tree);
357
+ }
358
+ /**
359
+ * Get the numerical field id of this tree cursor's current node.
360
+ *
361
+ * See also {@link TreeCursor#currentFieldName}.
362
+ */
363
+ get currentFieldId() {
364
+ marshalTreeCursor(this);
365
+ return C._ts_tree_cursor_current_field_id_wasm(this.tree[0]);
366
+ }
367
+ /** Get the field name of this tree cursor's current node. */
368
+ get currentFieldName() {
369
+ return this.tree.language.fields[this.currentFieldId];
370
+ }
371
+ /**
372
+ * Get the depth of the cursor's current node relative to the original
373
+ * node that the cursor was constructed with.
374
+ */
375
+ get currentDepth() {
376
+ marshalTreeCursor(this);
377
+ return C._ts_tree_cursor_current_depth_wasm(this.tree[0]);
378
+ }
379
+ /**
380
+ * Get the index of the cursor's current node out of all of the
381
+ * descendants of the original node that the cursor was constructed with.
382
+ */
383
+ get currentDescendantIndex() {
384
+ marshalTreeCursor(this);
385
+ return C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0]);
386
+ }
387
+ /** Get the type of the cursor's current node. */
388
+ get nodeType() {
389
+ return this.tree.language.types[this.nodeTypeId] || "ERROR";
390
+ }
391
+ /** Get the type id of the cursor's current node. */
392
+ get nodeTypeId() {
393
+ marshalTreeCursor(this);
394
+ return C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0]);
395
+ }
396
+ /** Get the state id of the cursor's current node. */
397
+ get nodeStateId() {
398
+ marshalTreeCursor(this);
399
+ return C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0]);
400
+ }
401
+ /** Get the id of the cursor's current node. */
402
+ get nodeId() {
403
+ marshalTreeCursor(this);
404
+ return C._ts_tree_cursor_current_node_id_wasm(this.tree[0]);
405
+ }
406
+ /**
407
+ * Check if the cursor's current node is *named*.
408
+ *
409
+ * Named nodes correspond to named rules in the grammar, whereas
410
+ * *anonymous* nodes correspond to string literals in the grammar.
411
+ */
412
+ get nodeIsNamed() {
413
+ marshalTreeCursor(this);
414
+ return C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0]) === 1;
415
+ }
416
+ /**
417
+ * Check if the cursor's current node is *missing*.
418
+ *
419
+ * Missing nodes are inserted by the parser in order to recover from
420
+ * certain kinds of syntax errors.
421
+ */
422
+ get nodeIsMissing() {
423
+ marshalTreeCursor(this);
424
+ return C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0]) === 1;
425
+ }
426
+ /** Get the string content of the cursor's current node. */
427
+ get nodeText() {
428
+ marshalTreeCursor(this);
429
+ const startIndex = C._ts_tree_cursor_start_index_wasm(this.tree[0]);
430
+ const endIndex = C._ts_tree_cursor_end_index_wasm(this.tree[0]);
431
+ C._ts_tree_cursor_start_position_wasm(this.tree[0]);
432
+ const startPosition = unmarshalPoint(TRANSFER_BUFFER);
433
+ return getText(this.tree, startIndex, endIndex, startPosition);
434
+ }
435
+ /** Get the start position of the cursor's current node. */
436
+ get startPosition() {
437
+ marshalTreeCursor(this);
438
+ C._ts_tree_cursor_start_position_wasm(this.tree[0]);
439
+ return unmarshalPoint(TRANSFER_BUFFER);
440
+ }
441
+ /** Get the end position of the cursor's current node. */
442
+ get endPosition() {
443
+ marshalTreeCursor(this);
444
+ C._ts_tree_cursor_end_position_wasm(this.tree[0]);
445
+ return unmarshalPoint(TRANSFER_BUFFER);
446
+ }
447
+ /** Get the start index of the cursor's current node. */
448
+ get startIndex() {
449
+ marshalTreeCursor(this);
450
+ return C._ts_tree_cursor_start_index_wasm(this.tree[0]);
451
+ }
452
+ /** Get the end index of the cursor's current node. */
453
+ get endIndex() {
454
+ marshalTreeCursor(this);
455
+ return C._ts_tree_cursor_end_index_wasm(this.tree[0]);
456
+ }
457
+ /**
458
+ * Move this cursor to the first child of its current node.
459
+ *
460
+ * This returns `true` if the cursor successfully moved, and returns
461
+ * `false` if there were no children.
462
+ */
463
+ gotoFirstChild() {
464
+ marshalTreeCursor(this);
465
+ const result = C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);
466
+ unmarshalTreeCursor(this);
467
+ return result === 1;
468
+ }
469
+ /**
470
+ * Move this cursor to the last child of its current node.
471
+ *
472
+ * This returns `true` if the cursor successfully moved, and returns
473
+ * `false` if there were no children.
474
+ *
475
+ * Note that this function may be slower than
476
+ * {@link TreeCursor#gotoFirstChild} because it needs to
477
+ * iterate through all the children to compute the child's position.
478
+ */
479
+ gotoLastChild() {
480
+ marshalTreeCursor(this);
481
+ const result = C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);
482
+ unmarshalTreeCursor(this);
483
+ return result === 1;
484
+ }
485
+ /**
486
+ * Move this cursor to the parent of its current node.
487
+ *
488
+ * This returns `true` if the cursor successfully moved, and returns
489
+ * `false` if there was no parent node (the cursor was already on the
490
+ * root node).
491
+ *
492
+ * Note that the node the cursor was constructed with is considered the root
493
+ * of the cursor, and the cursor cannot walk outside this node.
494
+ */
495
+ gotoParent() {
496
+ marshalTreeCursor(this);
497
+ const result = C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);
498
+ unmarshalTreeCursor(this);
499
+ return result === 1;
500
+ }
501
+ /**
502
+ * Move this cursor to the next sibling of its current node.
503
+ *
504
+ * This returns `true` if the cursor successfully moved, and returns
505
+ * `false` if there was no next sibling node.
506
+ *
507
+ * Note that the node the cursor was constructed with is considered the root
508
+ * of the cursor, and the cursor cannot walk outside this node.
509
+ */
510
+ gotoNextSibling() {
511
+ marshalTreeCursor(this);
512
+ const result = C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);
513
+ unmarshalTreeCursor(this);
514
+ return result === 1;
515
+ }
516
+ /**
517
+ * Move this cursor to the previous sibling of its current node.
518
+ *
519
+ * This returns `true` if the cursor successfully moved, and returns
520
+ * `false` if there was no previous sibling node.
521
+ *
522
+ * Note that this function may be slower than
523
+ * {@link TreeCursor#gotoNextSibling} due to how node
524
+ * positions are stored. In the worst case, this will need to iterate
525
+ * through all the children up to the previous sibling node to recalculate
526
+ * its position. Also note that the node the cursor was constructed with is
527
+ * considered the root of the cursor, and the cursor cannot walk outside this node.
528
+ */
529
+ gotoPreviousSibling() {
530
+ marshalTreeCursor(this);
531
+ const result = C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);
532
+ unmarshalTreeCursor(this);
533
+ return result === 1;
534
+ }
535
+ /**
536
+ * Move the cursor to the node that is the nth descendant of
537
+ * the original node that the cursor was constructed with, where
538
+ * zero represents the original node itself.
539
+ */
540
+ gotoDescendant(goalDescendantIndex) {
541
+ marshalTreeCursor(this);
542
+ C._ts_tree_cursor_goto_descendant_wasm(this.tree[0], goalDescendantIndex);
543
+ unmarshalTreeCursor(this);
544
+ }
545
+ /**
546
+ * Move this cursor to the first child of its current node that contains or
547
+ * starts after the given byte offset.
548
+ *
549
+ * This returns `true` if the cursor successfully moved to a child node, and returns
550
+ * `false` if no such child was found.
551
+ */
552
+ gotoFirstChildForIndex(goalIndex) {
553
+ marshalTreeCursor(this);
554
+ C.setValue(TRANSFER_BUFFER + SIZE_OF_CURSOR, goalIndex, "i32");
555
+ const result = C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);
556
+ unmarshalTreeCursor(this);
557
+ return result === 1;
558
+ }
559
+ /**
560
+ * Move this cursor to the first child of its current node that contains or
561
+ * starts after the given byte offset.
562
+ *
563
+ * This returns the index of the child node if one was found, and returns
564
+ * `null` if no such child was found.
565
+ */
566
+ gotoFirstChildForPosition(goalPosition) {
567
+ marshalTreeCursor(this);
568
+ marshalPoint(TRANSFER_BUFFER + SIZE_OF_CURSOR, goalPosition);
569
+ const result = C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);
570
+ unmarshalTreeCursor(this);
571
+ return result === 1;
572
+ }
573
+ /**
574
+ * Re-initialize this tree cursor to start at the original node that the
575
+ * cursor was constructed with.
576
+ */
577
+ reset(node) {
578
+ marshalNode(node);
579
+ marshalTreeCursor(this, TRANSFER_BUFFER + SIZE_OF_NODE);
580
+ C._ts_tree_cursor_reset_wasm(this.tree[0]);
581
+ unmarshalTreeCursor(this);
582
+ }
583
+ /**
584
+ * Re-initialize a tree cursor to the same position as another cursor.
585
+ *
586
+ * Unlike {@link TreeCursor#reset}, this will not lose parent
587
+ * information and allows reusing already created cursors.
588
+ */
589
+ resetTo(cursor) {
590
+ marshalTreeCursor(this, TRANSFER_BUFFER);
591
+ marshalTreeCursor(cursor, TRANSFER_BUFFER + SIZE_OF_CURSOR);
592
+ C._ts_tree_cursor_reset_to_wasm(this.tree[0], cursor.tree[0]);
593
+ unmarshalTreeCursor(this);
594
+ }
595
+ };
596
+ var Node = class {
597
+ static {
598
+ __name(this, "Node");
599
+ }
600
+ /** @internal */
601
+ [0] = 0;
602
+ /** @internal */
603
+ _children;
604
+ /** @internal */
605
+ _namedChildren;
606
+ /** @internal */
607
+ constructor(internal, { id, tree, startIndex, startPosition, other }) {
608
+ assertInternal(internal);
609
+ this[0] = other;
610
+ this.id = id;
611
+ this.tree = tree;
612
+ this.startIndex = startIndex;
613
+ this.startPosition = startPosition;
614
+ }
615
+ /**
616
+ * The numeric id for this node that is unique.
617
+ *
618
+ * Within a given syntax tree, no two nodes have the same id. However:
619
+ *
620
+ * * If a new tree is created based on an older tree, and a node from the old tree is reused in
621
+ * the process, then that node will have the same id in both trees.
622
+ *
623
+ * * A node not marked as having changes does not guarantee it was reused.
624
+ *
625
+ * * If a node is marked as having changed in the old tree, it will not be reused.
626
+ */
627
+ id;
628
+ /** The byte index where this node starts. */
629
+ startIndex;
630
+ /** The position where this node starts. */
631
+ startPosition;
632
+ /** The tree that this node belongs to. */
633
+ tree;
634
+ /** Get this node's type as a numerical id. */
635
+ get typeId() {
636
+ marshalNode(this);
637
+ return C._ts_node_symbol_wasm(this.tree[0]);
638
+ }
639
+ /**
640
+ * Get the node's type as a numerical id as it appears in the grammar,
641
+ * ignoring aliases.
642
+ */
643
+ get grammarId() {
644
+ marshalNode(this);
645
+ return C._ts_node_grammar_symbol_wasm(this.tree[0]);
646
+ }
647
+ /** Get this node's type as a string. */
648
+ get type() {
649
+ return this.tree.language.types[this.typeId] || "ERROR";
650
+ }
651
+ /**
652
+ * Get this node's symbol name as it appears in the grammar, ignoring
653
+ * aliases as a string.
654
+ */
655
+ get grammarType() {
656
+ return this.tree.language.types[this.grammarId] || "ERROR";
657
+ }
658
+ /**
659
+ * Check if this node is *named*.
660
+ *
661
+ * Named nodes correspond to named rules in the grammar, whereas
662
+ * *anonymous* nodes correspond to string literals in the grammar.
663
+ */
664
+ get isNamed() {
665
+ marshalNode(this);
666
+ return C._ts_node_is_named_wasm(this.tree[0]) === 1;
667
+ }
668
+ /**
669
+ * Check if this node is *extra*.
670
+ *
671
+ * Extra nodes represent things like comments, which are not required
672
+ * by the grammar, but can appear anywhere.
673
+ */
674
+ get isExtra() {
675
+ marshalNode(this);
676
+ return C._ts_node_is_extra_wasm(this.tree[0]) === 1;
677
+ }
678
+ /**
679
+ * Check if this node represents a syntax error.
680
+ *
681
+ * Syntax errors represent parts of the code that could not be incorporated
682
+ * into a valid syntax tree.
683
+ */
684
+ get isError() {
685
+ marshalNode(this);
686
+ return C._ts_node_is_error_wasm(this.tree[0]) === 1;
687
+ }
688
+ /**
689
+ * Check if this node is *missing*.
690
+ *
691
+ * Missing nodes are inserted by the parser in order to recover from
692
+ * certain kinds of syntax errors.
693
+ */
694
+ get isMissing() {
695
+ marshalNode(this);
696
+ return C._ts_node_is_missing_wasm(this.tree[0]) === 1;
697
+ }
698
+ /** Check if this node has been edited. */
699
+ get hasChanges() {
700
+ marshalNode(this);
701
+ return C._ts_node_has_changes_wasm(this.tree[0]) === 1;
702
+ }
703
+ /**
704
+ * Check if this node represents a syntax error or contains any syntax
705
+ * errors anywhere within it.
706
+ */
707
+ get hasError() {
708
+ marshalNode(this);
709
+ return C._ts_node_has_error_wasm(this.tree[0]) === 1;
710
+ }
711
+ /** Get the byte index where this node ends. */
712
+ get endIndex() {
713
+ marshalNode(this);
714
+ return C._ts_node_end_index_wasm(this.tree[0]);
715
+ }
716
+ /** Get the position where this node ends. */
717
+ get endPosition() {
718
+ marshalNode(this);
719
+ C._ts_node_end_point_wasm(this.tree[0]);
720
+ return unmarshalPoint(TRANSFER_BUFFER);
721
+ }
722
+ /** Get the string content of this node. */
723
+ get text() {
724
+ return getText(this.tree, this.startIndex, this.endIndex, this.startPosition);
725
+ }
726
+ /** Get this node's parse state. */
727
+ get parseState() {
728
+ marshalNode(this);
729
+ return C._ts_node_parse_state_wasm(this.tree[0]);
730
+ }
731
+ /** Get the parse state after this node. */
732
+ get nextParseState() {
733
+ marshalNode(this);
734
+ return C._ts_node_next_parse_state_wasm(this.tree[0]);
735
+ }
736
+ /** Check if this node is equal to another node. */
737
+ equals(other) {
738
+ return this.tree === other.tree && this.id === other.id;
739
+ }
740
+ /**
741
+ * Get the node's child at the given index, where zero represents the first child.
742
+ *
743
+ * This method is fairly fast, but its cost is technically log(n), so if
744
+ * you might be iterating over a long list of children, you should use
745
+ * {@link Node#children} instead.
746
+ */
747
+ child(index) {
748
+ marshalNode(this);
749
+ C._ts_node_child_wasm(this.tree[0], index);
750
+ return unmarshalNode(this.tree);
751
+ }
752
+ /**
753
+ * Get this node's *named* child at the given index.
754
+ *
755
+ * See also {@link Node#isNamed}.
756
+ * This method is fairly fast, but its cost is technically log(n), so if
757
+ * you might be iterating over a long list of children, you should use
758
+ * {@link Node#namedChildren} instead.
759
+ */
760
+ namedChild(index) {
761
+ marshalNode(this);
762
+ C._ts_node_named_child_wasm(this.tree[0], index);
763
+ return unmarshalNode(this.tree);
764
+ }
765
+ /**
766
+ * Get this node's child with the given numerical field id.
767
+ *
768
+ * See also {@link Node#childForFieldName}. You can
769
+ * convert a field name to an id using {@link Language#fieldIdForName}.
770
+ */
771
+ childForFieldId(fieldId) {
772
+ marshalNode(this);
773
+ C._ts_node_child_by_field_id_wasm(this.tree[0], fieldId);
774
+ return unmarshalNode(this.tree);
775
+ }
776
+ /**
777
+ * Get the first child with the given field name.
778
+ *
779
+ * If multiple children may have the same field name, access them using
780
+ * {@link Node#childrenForFieldName}.
781
+ */
782
+ childForFieldName(fieldName) {
783
+ const fieldId = this.tree.language.fields.indexOf(fieldName);
784
+ if (fieldId !== -1) return this.childForFieldId(fieldId);
785
+ return null;
786
+ }
787
+ /** Get the field name of this node's child at the given index. */
788
+ fieldNameForChild(index) {
789
+ marshalNode(this);
790
+ const address = C._ts_node_field_name_for_child_wasm(this.tree[0], index);
791
+ if (!address) return null;
792
+ return C.AsciiToString(address);
793
+ }
794
+ /** Get the field name of this node's named child at the given index. */
795
+ fieldNameForNamedChild(index) {
796
+ marshalNode(this);
797
+ const address = C._ts_node_field_name_for_named_child_wasm(this.tree[0], index);
798
+ if (!address) return null;
799
+ return C.AsciiToString(address);
800
+ }
801
+ /**
802
+ * Get an array of this node's children with a given field name.
803
+ *
804
+ * See also {@link Node#children}.
805
+ */
806
+ childrenForFieldName(fieldName) {
807
+ const fieldId = this.tree.language.fields.indexOf(fieldName);
808
+ if (fieldId !== -1 && fieldId !== 0) return this.childrenForFieldId(fieldId);
809
+ return [];
810
+ }
811
+ /**
812
+ * Get an array of this node's children with a given field id.
813
+ *
814
+ * See also {@link Node#childrenForFieldName}.
815
+ */
816
+ childrenForFieldId(fieldId) {
817
+ marshalNode(this);
818
+ C._ts_node_children_by_field_id_wasm(this.tree[0], fieldId);
819
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
820
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
821
+ const result = new Array(count);
822
+ if (count > 0) {
823
+ let address = buffer;
824
+ for (let i2 = 0; i2 < count; i2++) {
825
+ result[i2] = unmarshalNode(this.tree, address);
826
+ address += SIZE_OF_NODE;
827
+ }
828
+ C._free(buffer);
829
+ }
830
+ return result;
831
+ }
832
+ /** Get the node's first child that contains or starts after the given byte offset. */
833
+ firstChildForIndex(index) {
834
+ marshalNode(this);
835
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
836
+ C.setValue(address, index, "i32");
837
+ C._ts_node_first_child_for_byte_wasm(this.tree[0]);
838
+ return unmarshalNode(this.tree);
839
+ }
840
+ /** Get the node's first named child that contains or starts after the given byte offset. */
841
+ firstNamedChildForIndex(index) {
842
+ marshalNode(this);
843
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
844
+ C.setValue(address, index, "i32");
845
+ C._ts_node_first_named_child_for_byte_wasm(this.tree[0]);
846
+ return unmarshalNode(this.tree);
847
+ }
848
+ /** Get this node's number of children. */
849
+ get childCount() {
850
+ marshalNode(this);
851
+ return C._ts_node_child_count_wasm(this.tree[0]);
852
+ }
853
+ /**
854
+ * Get this node's number of *named* children.
855
+ *
856
+ * See also {@link Node#isNamed}.
857
+ */
858
+ get namedChildCount() {
859
+ marshalNode(this);
860
+ return C._ts_node_named_child_count_wasm(this.tree[0]);
861
+ }
862
+ /** Get this node's first child. */
863
+ get firstChild() {
864
+ return this.child(0);
865
+ }
866
+ /**
867
+ * Get this node's first named child.
868
+ *
869
+ * See also {@link Node#isNamed}.
870
+ */
871
+ get firstNamedChild() {
872
+ return this.namedChild(0);
873
+ }
874
+ /** Get this node's last child. */
875
+ get lastChild() {
876
+ return this.child(this.childCount - 1);
877
+ }
878
+ /**
879
+ * Get this node's last named child.
880
+ *
881
+ * See also {@link Node#isNamed}.
882
+ */
883
+ get lastNamedChild() {
884
+ return this.namedChild(this.namedChildCount - 1);
885
+ }
886
+ /**
887
+ * Iterate over this node's children.
888
+ *
889
+ * If you're walking the tree recursively, you may want to use the
890
+ * {@link TreeCursor} APIs directly instead.
891
+ */
892
+ get children() {
893
+ if (!this._children) {
894
+ marshalNode(this);
895
+ C._ts_node_children_wasm(this.tree[0]);
896
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
897
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
898
+ this._children = new Array(count);
899
+ if (count > 0) {
900
+ let address = buffer;
901
+ for (let i2 = 0; i2 < count; i2++) {
902
+ this._children[i2] = unmarshalNode(this.tree, address);
903
+ address += SIZE_OF_NODE;
904
+ }
905
+ C._free(buffer);
906
+ }
907
+ }
908
+ return this._children;
909
+ }
910
+ /**
911
+ * Iterate over this node's named children.
912
+ *
913
+ * See also {@link Node#children}.
914
+ */
915
+ get namedChildren() {
916
+ if (!this._namedChildren) {
917
+ marshalNode(this);
918
+ C._ts_node_named_children_wasm(this.tree[0]);
919
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
920
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
921
+ this._namedChildren = new Array(count);
922
+ if (count > 0) {
923
+ let address = buffer;
924
+ for (let i2 = 0; i2 < count; i2++) {
925
+ this._namedChildren[i2] = unmarshalNode(this.tree, address);
926
+ address += SIZE_OF_NODE;
927
+ }
928
+ C._free(buffer);
929
+ }
930
+ }
931
+ return this._namedChildren;
932
+ }
933
+ /**
934
+ * Get the descendants of this node that are the given type, or in the given types array.
935
+ *
936
+ * The types array should contain node type strings, which can be retrieved from {@link Language#types}.
937
+ *
938
+ * Additionally, a `startPosition` and `endPosition` can be passed in to restrict the search to a byte range.
939
+ */
940
+ descendantsOfType(types, startPosition = ZERO_POINT, endPosition = ZERO_POINT) {
941
+ if (!Array.isArray(types)) types = [types];
942
+ const symbols = [];
943
+ const typesBySymbol = this.tree.language.types;
944
+ for (const node_type of types) if (node_type == "ERROR") symbols.push(65535);
945
+ for (let i2 = 0, n = typesBySymbol.length; i2 < n; i2++) if (types.includes(typesBySymbol[i2])) symbols.push(i2);
946
+ const symbolsAddress = C._malloc(SIZE_OF_INT * symbols.length);
947
+ for (let i2 = 0, n = symbols.length; i2 < n; i2++) C.setValue(symbolsAddress + i2 * SIZE_OF_INT, symbols[i2], "i32");
948
+ marshalNode(this);
949
+ C._ts_node_descendants_of_type_wasm(this.tree[0], symbolsAddress, symbols.length, startPosition.row, startPosition.column, endPosition.row, endPosition.column);
950
+ const descendantCount = C.getValue(TRANSFER_BUFFER, "i32");
951
+ const descendantAddress = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
952
+ const result = new Array(descendantCount);
953
+ if (descendantCount > 0) {
954
+ let address = descendantAddress;
955
+ for (let i2 = 0; i2 < descendantCount; i2++) {
956
+ result[i2] = unmarshalNode(this.tree, address);
957
+ address += SIZE_OF_NODE;
958
+ }
959
+ }
960
+ C._free(descendantAddress);
961
+ C._free(symbolsAddress);
962
+ return result;
963
+ }
964
+ /** Get this node's next sibling. */
965
+ get nextSibling() {
966
+ marshalNode(this);
967
+ C._ts_node_next_sibling_wasm(this.tree[0]);
968
+ return unmarshalNode(this.tree);
969
+ }
970
+ /** Get this node's previous sibling. */
971
+ get previousSibling() {
972
+ marshalNode(this);
973
+ C._ts_node_prev_sibling_wasm(this.tree[0]);
974
+ return unmarshalNode(this.tree);
975
+ }
976
+ /**
977
+ * Get this node's next *named* sibling.
978
+ *
979
+ * See also {@link Node#isNamed}.
980
+ */
981
+ get nextNamedSibling() {
982
+ marshalNode(this);
983
+ C._ts_node_next_named_sibling_wasm(this.tree[0]);
984
+ return unmarshalNode(this.tree);
985
+ }
986
+ /**
987
+ * Get this node's previous *named* sibling.
988
+ *
989
+ * See also {@link Node#isNamed}.
990
+ */
991
+ get previousNamedSibling() {
992
+ marshalNode(this);
993
+ C._ts_node_prev_named_sibling_wasm(this.tree[0]);
994
+ return unmarshalNode(this.tree);
995
+ }
996
+ /** Get the node's number of descendants, including one for the node itself. */
997
+ get descendantCount() {
998
+ marshalNode(this);
999
+ return C._ts_node_descendant_count_wasm(this.tree[0]);
1000
+ }
1001
+ /**
1002
+ * Get this node's immediate parent.
1003
+ * Prefer {@link Node#childWithDescendant} for iterating over this node's ancestors.
1004
+ */
1005
+ get parent() {
1006
+ marshalNode(this);
1007
+ C._ts_node_parent_wasm(this.tree[0]);
1008
+ return unmarshalNode(this.tree);
1009
+ }
1010
+ /**
1011
+ * Get the node that contains `descendant`.
1012
+ *
1013
+ * Note that this can return `descendant` itself.
1014
+ */
1015
+ childWithDescendant(descendant) {
1016
+ marshalNode(this);
1017
+ marshalNode(descendant, 1);
1018
+ C._ts_node_child_with_descendant_wasm(this.tree[0]);
1019
+ return unmarshalNode(this.tree);
1020
+ }
1021
+ /** Get the smallest node within this node that spans the given byte range. */
1022
+ descendantForIndex(start2, end = start2) {
1023
+ if (typeof start2 !== "number" || typeof end !== "number") throw new Error("Arguments must be numbers");
1024
+ marshalNode(this);
1025
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
1026
+ C.setValue(address, start2, "i32");
1027
+ C.setValue(address + SIZE_OF_INT, end, "i32");
1028
+ C._ts_node_descendant_for_index_wasm(this.tree[0]);
1029
+ return unmarshalNode(this.tree);
1030
+ }
1031
+ /** Get the smallest named node within this node that spans the given byte range. */
1032
+ namedDescendantForIndex(start2, end = start2) {
1033
+ if (typeof start2 !== "number" || typeof end !== "number") throw new Error("Arguments must be numbers");
1034
+ marshalNode(this);
1035
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
1036
+ C.setValue(address, start2, "i32");
1037
+ C.setValue(address + SIZE_OF_INT, end, "i32");
1038
+ C._ts_node_named_descendant_for_index_wasm(this.tree[0]);
1039
+ return unmarshalNode(this.tree);
1040
+ }
1041
+ /** Get the smallest node within this node that spans the given point range. */
1042
+ descendantForPosition(start2, end = start2) {
1043
+ if (!isPoint(start2) || !isPoint(end)) throw new Error("Arguments must be {row, column} objects");
1044
+ marshalNode(this);
1045
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
1046
+ marshalPoint(address, start2);
1047
+ marshalPoint(address + SIZE_OF_POINT, end);
1048
+ C._ts_node_descendant_for_position_wasm(this.tree[0]);
1049
+ return unmarshalNode(this.tree);
1050
+ }
1051
+ /** Get the smallest named node within this node that spans the given point range. */
1052
+ namedDescendantForPosition(start2, end = start2) {
1053
+ if (!isPoint(start2) || !isPoint(end)) throw new Error("Arguments must be {row, column} objects");
1054
+ marshalNode(this);
1055
+ const address = TRANSFER_BUFFER + SIZE_OF_NODE;
1056
+ marshalPoint(address, start2);
1057
+ marshalPoint(address + SIZE_OF_POINT, end);
1058
+ C._ts_node_named_descendant_for_position_wasm(this.tree[0]);
1059
+ return unmarshalNode(this.tree);
1060
+ }
1061
+ /**
1062
+ * Create a new {@link TreeCursor} starting from this node.
1063
+ *
1064
+ * Note that the given node is considered the root of the cursor,
1065
+ * and the cursor cannot walk outside this node.
1066
+ */
1067
+ walk() {
1068
+ marshalNode(this);
1069
+ C._ts_tree_cursor_new_wasm(this.tree[0]);
1070
+ return new TreeCursor(INTERNAL, this.tree);
1071
+ }
1072
+ /**
1073
+ * Edit this node to keep it in-sync with source code that has been edited.
1074
+ *
1075
+ * This function is only rarely needed. When you edit a syntax tree with
1076
+ * the {@link Tree#edit} method, all of the nodes that you retrieve from
1077
+ * the tree afterward will already reflect the edit. You only need to
1078
+ * use {@link Node#edit} when you have a specific {@link Node} instance that
1079
+ * you want to keep and continue to use after an edit.
1080
+ */
1081
+ edit(edit) {
1082
+ if (this.startIndex >= edit.oldEndIndex) {
1083
+ this.startIndex = edit.newEndIndex + (this.startIndex - edit.oldEndIndex);
1084
+ let subbedPointRow;
1085
+ let subbedPointColumn;
1086
+ if (this.startPosition.row > edit.oldEndPosition.row) {
1087
+ subbedPointRow = this.startPosition.row - edit.oldEndPosition.row;
1088
+ subbedPointColumn = this.startPosition.column;
1089
+ } else {
1090
+ subbedPointRow = 0;
1091
+ subbedPointColumn = this.startPosition.column;
1092
+ if (this.startPosition.column >= edit.oldEndPosition.column) subbedPointColumn = this.startPosition.column - edit.oldEndPosition.column;
1093
+ }
1094
+ if (subbedPointRow > 0) {
1095
+ this.startPosition.row += subbedPointRow;
1096
+ this.startPosition.column = subbedPointColumn;
1097
+ } else this.startPosition.column += subbedPointColumn;
1098
+ } else if (this.startIndex > edit.startIndex) {
1099
+ this.startIndex = edit.newEndIndex;
1100
+ this.startPosition.row = edit.newEndPosition.row;
1101
+ this.startPosition.column = edit.newEndPosition.column;
1102
+ }
1103
+ }
1104
+ /** Get the S-expression representation of this node. */
1105
+ toString() {
1106
+ marshalNode(this);
1107
+ const address = C._ts_node_to_string_wasm(this.tree[0]);
1108
+ const result = C.AsciiToString(address);
1109
+ C._free(address);
1110
+ return result;
1111
+ }
1112
+ };
1113
+ function unmarshalCaptures(query, tree, address, patternIndex, result) {
1114
+ for (let i2 = 0, n = result.length; i2 < n; i2++) {
1115
+ const captureIndex = C.getValue(address, "i32");
1116
+ address += SIZE_OF_INT;
1117
+ const node = unmarshalNode(tree, address);
1118
+ address += SIZE_OF_NODE;
1119
+ result[i2] = {
1120
+ patternIndex,
1121
+ name: query.captureNames[captureIndex],
1122
+ node
1123
+ };
1124
+ }
1125
+ return address;
1126
+ }
1127
+ __name(unmarshalCaptures, "unmarshalCaptures");
1128
+ function marshalNode(node, index = 0) {
1129
+ let address = TRANSFER_BUFFER + index * SIZE_OF_NODE;
1130
+ C.setValue(address, node.id, "i32");
1131
+ address += SIZE_OF_INT;
1132
+ C.setValue(address, node.startIndex, "i32");
1133
+ address += SIZE_OF_INT;
1134
+ C.setValue(address, node.startPosition.row, "i32");
1135
+ address += SIZE_OF_INT;
1136
+ C.setValue(address, node.startPosition.column, "i32");
1137
+ address += SIZE_OF_INT;
1138
+ C.setValue(address, node[0], "i32");
1139
+ }
1140
+ __name(marshalNode, "marshalNode");
1141
+ function unmarshalNode(tree, address = TRANSFER_BUFFER) {
1142
+ const id = C.getValue(address, "i32");
1143
+ address += SIZE_OF_INT;
1144
+ if (id === 0) return null;
1145
+ const index = C.getValue(address, "i32");
1146
+ address += SIZE_OF_INT;
1147
+ const row = C.getValue(address, "i32");
1148
+ address += SIZE_OF_INT;
1149
+ const column = C.getValue(address, "i32");
1150
+ address += SIZE_OF_INT;
1151
+ const other = C.getValue(address, "i32");
1152
+ return new Node(INTERNAL, {
1153
+ id,
1154
+ tree,
1155
+ startIndex: index,
1156
+ startPosition: {
1157
+ row,
1158
+ column
1159
+ },
1160
+ other
1161
+ });
1162
+ }
1163
+ __name(unmarshalNode, "unmarshalNode");
1164
+ function marshalTreeCursor(cursor, address = TRANSFER_BUFFER) {
1165
+ C.setValue(address + 0 * SIZE_OF_INT, cursor[0], "i32");
1166
+ C.setValue(address + 1 * SIZE_OF_INT, cursor[1], "i32");
1167
+ C.setValue(address + 2 * SIZE_OF_INT, cursor[2], "i32");
1168
+ C.setValue(address + 3 * SIZE_OF_INT, cursor[3], "i32");
1169
+ }
1170
+ __name(marshalTreeCursor, "marshalTreeCursor");
1171
+ function unmarshalTreeCursor(cursor) {
1172
+ cursor[0] = C.getValue(TRANSFER_BUFFER + 0 * SIZE_OF_INT, "i32");
1173
+ cursor[1] = C.getValue(TRANSFER_BUFFER + 1 * SIZE_OF_INT, "i32");
1174
+ cursor[2] = C.getValue(TRANSFER_BUFFER + 2 * SIZE_OF_INT, "i32");
1175
+ cursor[3] = C.getValue(TRANSFER_BUFFER + 3 * SIZE_OF_INT, "i32");
1176
+ }
1177
+ __name(unmarshalTreeCursor, "unmarshalTreeCursor");
1178
+ function marshalPoint(address, point) {
1179
+ C.setValue(address, point.row, "i32");
1180
+ C.setValue(address + SIZE_OF_INT, point.column, "i32");
1181
+ }
1182
+ __name(marshalPoint, "marshalPoint");
1183
+ function unmarshalPoint(address) {
1184
+ return {
1185
+ row: C.getValue(address, "i32") >>> 0,
1186
+ column: C.getValue(address + SIZE_OF_INT, "i32") >>> 0
1187
+ };
1188
+ }
1189
+ __name(unmarshalPoint, "unmarshalPoint");
1190
+ function marshalRange(address, range) {
1191
+ marshalPoint(address, range.startPosition);
1192
+ address += SIZE_OF_POINT;
1193
+ marshalPoint(address, range.endPosition);
1194
+ address += SIZE_OF_POINT;
1195
+ C.setValue(address, range.startIndex, "i32");
1196
+ address += SIZE_OF_INT;
1197
+ C.setValue(address, range.endIndex, "i32");
1198
+ address += SIZE_OF_INT;
1199
+ }
1200
+ __name(marshalRange, "marshalRange");
1201
+ function unmarshalRange(address) {
1202
+ const result = {};
1203
+ result.startPosition = unmarshalPoint(address);
1204
+ address += SIZE_OF_POINT;
1205
+ result.endPosition = unmarshalPoint(address);
1206
+ address += SIZE_OF_POINT;
1207
+ result.startIndex = C.getValue(address, "i32") >>> 0;
1208
+ address += SIZE_OF_INT;
1209
+ result.endIndex = C.getValue(address, "i32") >>> 0;
1210
+ return result;
1211
+ }
1212
+ __name(unmarshalRange, "unmarshalRange");
1213
+ function marshalEdit(edit, address = TRANSFER_BUFFER) {
1214
+ marshalPoint(address, edit.startPosition);
1215
+ address += SIZE_OF_POINT;
1216
+ marshalPoint(address, edit.oldEndPosition);
1217
+ address += SIZE_OF_POINT;
1218
+ marshalPoint(address, edit.newEndPosition);
1219
+ address += SIZE_OF_POINT;
1220
+ C.setValue(address, edit.startIndex, "i32");
1221
+ address += SIZE_OF_INT;
1222
+ C.setValue(address, edit.oldEndIndex, "i32");
1223
+ address += SIZE_OF_INT;
1224
+ C.setValue(address, edit.newEndIndex, "i32");
1225
+ address += SIZE_OF_INT;
1226
+ }
1227
+ __name(marshalEdit, "marshalEdit");
1228
+ function unmarshalLanguageMetadata(address) {
1229
+ return {
1230
+ major_version: C.getValue(address, "i32"),
1231
+ minor_version: C.getValue(address += SIZE_OF_INT, "i32"),
1232
+ patch_version: C.getValue(address += SIZE_OF_INT, "i32")
1233
+ };
1234
+ }
1235
+ __name(unmarshalLanguageMetadata, "unmarshalLanguageMetadata");
1236
+ var LANGUAGE_FUNCTION_REGEX = /^tree_sitter_\w+$/;
1237
+ var Language = class _Language {
1238
+ static {
1239
+ __name(this, "Language");
1240
+ }
1241
+ /** @internal */
1242
+ [0] = 0;
1243
+ /**
1244
+ * A list of all node types in the language. The index of each type in this
1245
+ * array is its node type id.
1246
+ */
1247
+ types;
1248
+ /**
1249
+ * A list of all field names in the language. The index of each field name in
1250
+ * this array is its field id.
1251
+ */
1252
+ fields;
1253
+ /** @internal */
1254
+ constructor(internal, address) {
1255
+ assertInternal(internal);
1256
+ this[0] = address;
1257
+ this.types = new Array(C._ts_language_symbol_count(this[0]));
1258
+ for (let i2 = 0, n = this.types.length; i2 < n; i2++) if (C._ts_language_symbol_type(this[0], i2) < 2) this.types[i2] = C.UTF8ToString(C._ts_language_symbol_name(this[0], i2));
1259
+ this.fields = new Array(C._ts_language_field_count(this[0]) + 1);
1260
+ for (let i2 = 0, n = this.fields.length; i2 < n; i2++) {
1261
+ const fieldName = C._ts_language_field_name_for_id(this[0], i2);
1262
+ if (fieldName !== 0) this.fields[i2] = C.UTF8ToString(fieldName);
1263
+ else this.fields[i2] = null;
1264
+ }
1265
+ }
1266
+ /**
1267
+ * Gets the name of the language.
1268
+ */
1269
+ get name() {
1270
+ const ptr = C._ts_language_name(this[0]);
1271
+ if (ptr === 0) return null;
1272
+ return C.UTF8ToString(ptr);
1273
+ }
1274
+ /**
1275
+ * Gets the ABI version of the language.
1276
+ */
1277
+ get abiVersion() {
1278
+ return C._ts_language_abi_version(this[0]);
1279
+ }
1280
+ /**
1281
+ * Get the metadata for this language. This information is generated by the
1282
+ * CLI, and relies on the language author providing the correct metadata in
1283
+ * the language's `tree-sitter.json` file.
1284
+ */
1285
+ get metadata() {
1286
+ C._ts_language_metadata_wasm(this[0]);
1287
+ if (C.getValue(TRANSFER_BUFFER, "i32") === 0) return null;
1288
+ return unmarshalLanguageMetadata(TRANSFER_BUFFER + SIZE_OF_INT);
1289
+ }
1290
+ /**
1291
+ * Gets the number of fields in the language.
1292
+ */
1293
+ get fieldCount() {
1294
+ return this.fields.length - 1;
1295
+ }
1296
+ /**
1297
+ * Gets the number of states in the language.
1298
+ */
1299
+ get stateCount() {
1300
+ return C._ts_language_state_count(this[0]);
1301
+ }
1302
+ /**
1303
+ * Get the field id for a field name.
1304
+ */
1305
+ fieldIdForName(fieldName) {
1306
+ const result = this.fields.indexOf(fieldName);
1307
+ return result !== -1 ? result : null;
1308
+ }
1309
+ /**
1310
+ * Get the field name for a field id.
1311
+ */
1312
+ fieldNameForId(fieldId) {
1313
+ return this.fields[fieldId] ?? null;
1314
+ }
1315
+ /**
1316
+ * Get the node type id for a node type name.
1317
+ */
1318
+ idForNodeType(type, named) {
1319
+ const typeLength = C.lengthBytesUTF8(type);
1320
+ const typeAddress = C._malloc(typeLength + 1);
1321
+ C.stringToUTF8(type, typeAddress, typeLength + 1);
1322
+ const result = C._ts_language_symbol_for_name(this[0], typeAddress, typeLength, named ? 1 : 0);
1323
+ C._free(typeAddress);
1324
+ return result || null;
1325
+ }
1326
+ /**
1327
+ * Gets the number of node types in the language.
1328
+ */
1329
+ get nodeTypeCount() {
1330
+ return C._ts_language_symbol_count(this[0]);
1331
+ }
1332
+ /**
1333
+ * Get the node type name for a node type id.
1334
+ */
1335
+ nodeTypeForId(typeId) {
1336
+ const name2 = C._ts_language_symbol_name(this[0], typeId);
1337
+ return name2 ? C.UTF8ToString(name2) : null;
1338
+ }
1339
+ /**
1340
+ * Check if a node type is named.
1341
+ *
1342
+ * @see {@link https://tree-sitter.github.io/tree-sitter/using-parsers/2-basic-parsing.html#named-vs-anonymous-nodes}
1343
+ */
1344
+ nodeTypeIsNamed(typeId) {
1345
+ return C._ts_language_type_is_named_wasm(this[0], typeId) ? true : false;
1346
+ }
1347
+ /**
1348
+ * Check if a node type is visible.
1349
+ */
1350
+ nodeTypeIsVisible(typeId) {
1351
+ return C._ts_language_type_is_visible_wasm(this[0], typeId) ? true : false;
1352
+ }
1353
+ /**
1354
+ * Get the supertypes ids of this language.
1355
+ *
1356
+ * @see {@link https://tree-sitter.github.io/tree-sitter/using-parsers/6-static-node-types.html?highlight=supertype#supertype-nodes}
1357
+ */
1358
+ get supertypes() {
1359
+ C._ts_language_supertypes_wasm(this[0]);
1360
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
1361
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
1362
+ const result = new Array(count);
1363
+ if (count > 0) {
1364
+ let address = buffer;
1365
+ for (let i2 = 0; i2 < count; i2++) {
1366
+ result[i2] = C.getValue(address, "i16");
1367
+ address += SIZE_OF_SHORT;
1368
+ }
1369
+ }
1370
+ return result;
1371
+ }
1372
+ /**
1373
+ * Get the subtype ids for a given supertype node id.
1374
+ */
1375
+ subtypes(supertype) {
1376
+ C._ts_language_subtypes_wasm(this[0], supertype);
1377
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
1378
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
1379
+ const result = new Array(count);
1380
+ if (count > 0) {
1381
+ let address = buffer;
1382
+ for (let i2 = 0; i2 < count; i2++) {
1383
+ result[i2] = C.getValue(address, "i16");
1384
+ address += SIZE_OF_SHORT;
1385
+ }
1386
+ }
1387
+ return result;
1388
+ }
1389
+ /**
1390
+ * Get the next state id for a given state id and node type id.
1391
+ */
1392
+ nextState(stateId, typeId) {
1393
+ return C._ts_language_next_state(this[0], stateId, typeId);
1394
+ }
1395
+ /**
1396
+ * Create a new lookahead iterator for this language and parse state.
1397
+ *
1398
+ * This returns `null` if state is invalid for this language.
1399
+ *
1400
+ * Iterating {@link LookaheadIterator} will yield valid symbols in the given
1401
+ * parse state. Newly created lookahead iterators will return the `ERROR`
1402
+ * symbol from {@link LookaheadIterator#currentType}.
1403
+ *
1404
+ * Lookahead iterators can be useful for generating suggestions and improving
1405
+ * syntax error diagnostics. To get symbols valid in an `ERROR` node, use the
1406
+ * lookahead iterator on its first leaf node state. For `MISSING` nodes, a
1407
+ * lookahead iterator created on the previous non-extra leaf node may be
1408
+ * appropriate.
1409
+ */
1410
+ lookaheadIterator(stateId) {
1411
+ const address = C._ts_lookahead_iterator_new(this[0], stateId);
1412
+ if (address) return new LookaheadIterator(INTERNAL, address, this);
1413
+ return null;
1414
+ }
1415
+ /**
1416
+ * Load a language from a WebAssembly module.
1417
+ * The module can be provided as a path to a file or as a buffer.
1418
+ */
1419
+ static async load(input) {
1420
+ let binary2;
1421
+ if (input instanceof Uint8Array) binary2 = input;
1422
+ else if (globalThis.process?.versions.node) binary2 = await (await import("fs/promises")).readFile(input);
1423
+ else {
1424
+ const response = await fetch(input);
1425
+ if (!response.ok) {
1426
+ const body2 = await response.text();
1427
+ throw new Error(`Language.load failed with status ${response.status}.
1428
+
1429
+ ${body2}`);
1430
+ }
1431
+ const retryResp = response.clone();
1432
+ try {
1433
+ binary2 = await WebAssembly.compileStreaming(response);
1434
+ } catch (reason) {
1435
+ console.error("wasm streaming compile failed:", reason);
1436
+ console.error("falling back to ArrayBuffer instantiation");
1437
+ binary2 = new Uint8Array(await retryResp.arrayBuffer());
1438
+ }
1439
+ }
1440
+ const mod = await C.loadWebAssemblyModule(binary2, { loadAsync: true });
1441
+ const symbolNames = Object.keys(mod);
1442
+ const functionName = symbolNames.find((key) => LANGUAGE_FUNCTION_REGEX.test(key) && !key.includes("external_scanner_"));
1443
+ if (!functionName) {
1444
+ console.log(`Couldn't find language function in Wasm file. Symbols:
1445
+ ${JSON.stringify(symbolNames, null, 2)}`);
1446
+ throw new Error("Language.load failed: no language function found in Wasm file");
1447
+ }
1448
+ return new _Language(INTERNAL, mod[functionName]());
1449
+ }
1450
+ };
1451
+ async function Module2(moduleArg = {}) {
1452
+ var moduleRtn;
1453
+ var Module = moduleArg;
1454
+ var ENVIRONMENT_IS_WEB = typeof window == "object";
1455
+ var ENVIRONMENT_IS_WORKER = typeof WorkerGlobalScope != "undefined";
1456
+ var ENVIRONMENT_IS_NODE = typeof process == "object" && process.versions?.node && process.type != "renderer";
1457
+ if (ENVIRONMENT_IS_NODE) {
1458
+ const { createRequire } = await import("module");
1459
+ var require = createRequire(import.meta.url);
1460
+ }
1461
+ Module.currentQueryProgressCallback = null;
1462
+ Module.currentProgressCallback = null;
1463
+ Module.currentLogCallback = null;
1464
+ Module.currentParseCallback = null;
1465
+ var arguments_ = [];
1466
+ var thisProgram = "./this.program";
1467
+ var quit_ = /* @__PURE__ */ __name((status, toThrow) => {
1468
+ throw toThrow;
1469
+ }, "quit_");
1470
+ var _scriptName = import.meta.url;
1471
+ var scriptDirectory = "";
1472
+ function locateFile(path) {
1473
+ if (Module["locateFile"]) return Module["locateFile"](path, scriptDirectory);
1474
+ return scriptDirectory + path;
1475
+ }
1476
+ __name(locateFile, "locateFile");
1477
+ var readAsync, readBinary;
1478
+ if (ENVIRONMENT_IS_NODE) {
1479
+ var fs = require("fs");
1480
+ if (_scriptName.startsWith("file:")) scriptDirectory = require("path").dirname(require("url").fileURLToPath(_scriptName)) + "/";
1481
+ readBinary = /* @__PURE__ */ __name((filename) => {
1482
+ filename = isFileURI(filename) ? new URL(filename) : filename;
1483
+ return fs.readFileSync(filename);
1484
+ }, "readBinary");
1485
+ readAsync = /* @__PURE__ */ __name(async (filename, binary2 = true) => {
1486
+ filename = isFileURI(filename) ? new URL(filename) : filename;
1487
+ return fs.readFileSync(filename, binary2 ? void 0 : "utf8");
1488
+ }, "readAsync");
1489
+ if (process.argv.length > 1) thisProgram = process.argv[1].replace(/\\/g, "/");
1490
+ arguments_ = process.argv.slice(2);
1491
+ quit_ = /* @__PURE__ */ __name((status, toThrow) => {
1492
+ process.exitCode = status;
1493
+ throw toThrow;
1494
+ }, "quit_");
1495
+ } else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
1496
+ try {
1497
+ scriptDirectory = new URL(".", _scriptName).href;
1498
+ } catch {}
1499
+ if (ENVIRONMENT_IS_WORKER) readBinary = /* @__PURE__ */ __name((url) => {
1500
+ var xhr = new XMLHttpRequest();
1501
+ xhr.open("GET", url, false);
1502
+ xhr.responseType = "arraybuffer";
1503
+ xhr.send(null);
1504
+ return new Uint8Array(
1505
+ /** @type{!ArrayBuffer} */
1506
+ xhr.response
1507
+ );
1508
+ }, "readBinary");
1509
+ readAsync = /* @__PURE__ */ __name(async (url) => {
1510
+ if (isFileURI(url)) return new Promise((resolve, reject) => {
1511
+ var xhr = new XMLHttpRequest();
1512
+ xhr.open("GET", url, true);
1513
+ xhr.responseType = "arraybuffer";
1514
+ xhr.onload = () => {
1515
+ if (xhr.status == 200 || xhr.status == 0 && xhr.response) {
1516
+ resolve(xhr.response);
1517
+ return;
1518
+ }
1519
+ reject(xhr.status);
1520
+ };
1521
+ xhr.onerror = reject;
1522
+ xhr.send(null);
1523
+ });
1524
+ var response = await fetch(url, { credentials: "same-origin" });
1525
+ if (response.ok) return response.arrayBuffer();
1526
+ throw new Error(response.status + " : " + response.url);
1527
+ }, "readAsync");
1528
+ }
1529
+ var out = console.log.bind(console);
1530
+ var err = console.error.bind(console);
1531
+ var dynamicLibraries = [];
1532
+ var wasmBinary;
1533
+ var ABORT = false;
1534
+ var EXITSTATUS;
1535
+ var isFileURI = /* @__PURE__ */ __name((filename) => filename.startsWith("file://"), "isFileURI");
1536
+ var readyPromiseResolve, readyPromiseReject;
1537
+ var wasmMemory;
1538
+ var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
1539
+ var HEAP64, HEAPU64;
1540
+ var HEAP_DATA_VIEW;
1541
+ var runtimeInitialized = false;
1542
+ function updateMemoryViews() {
1543
+ var b = wasmMemory.buffer;
1544
+ Module["HEAP8"] = HEAP8 = new Int8Array(b);
1545
+ Module["HEAP16"] = new Int16Array(b);
1546
+ Module["HEAPU8"] = HEAPU8 = new Uint8Array(b);
1547
+ Module["HEAPU16"] = HEAPU16 = new Uint16Array(b);
1548
+ Module["HEAP32"] = new Int32Array(b);
1549
+ Module["HEAPU32"] = HEAPU32 = new Uint32Array(b);
1550
+ Module["HEAPF32"] = new Float32Array(b);
1551
+ Module["HEAPF64"] = new Float64Array(b);
1552
+ Module["HEAP64"] = new BigInt64Array(b);
1553
+ Module["HEAPU64"] = new BigUint64Array(b);
1554
+ Module["HEAP_DATA_VIEW"] = HEAP_DATA_VIEW = new DataView(b);
1555
+ LE_HEAP_UPDATE();
1556
+ }
1557
+ __name(updateMemoryViews, "updateMemoryViews");
1558
+ function initMemory() {
1559
+ if (Module["wasmMemory"]) wasmMemory = Module["wasmMemory"];
1560
+ else {
1561
+ var INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 33554432;
1562
+ wasmMemory = new WebAssembly.Memory({
1563
+ "initial": INITIAL_MEMORY / 65536,
1564
+ "maximum": 32768
1565
+ });
1566
+ }
1567
+ updateMemoryViews();
1568
+ }
1569
+ __name(initMemory, "initMemory");
1570
+ var __RELOC_FUNCS__ = [];
1571
+ function preRun() {
1572
+ if (Module["preRun"]) {
1573
+ if (typeof Module["preRun"] == "function") Module["preRun"] = [Module["preRun"]];
1574
+ while (Module["preRun"].length) addOnPreRun(Module["preRun"].shift());
1575
+ }
1576
+ callRuntimeCallbacks(onPreRuns);
1577
+ }
1578
+ __name(preRun, "preRun");
1579
+ function initRuntime() {
1580
+ runtimeInitialized = true;
1581
+ callRuntimeCallbacks(__RELOC_FUNCS__);
1582
+ wasmExports["__wasm_call_ctors"]();
1583
+ callRuntimeCallbacks(onPostCtors);
1584
+ }
1585
+ __name(initRuntime, "initRuntime");
1586
+ function preMain() {}
1587
+ __name(preMain, "preMain");
1588
+ function postRun() {
1589
+ if (Module["postRun"]) {
1590
+ if (typeof Module["postRun"] == "function") Module["postRun"] = [Module["postRun"]];
1591
+ while (Module["postRun"].length) addOnPostRun(Module["postRun"].shift());
1592
+ }
1593
+ callRuntimeCallbacks(onPostRuns);
1594
+ }
1595
+ __name(postRun, "postRun");
1596
+ function abort(what) {
1597
+ Module["onAbort"]?.(what);
1598
+ what = "Aborted(" + what + ")";
1599
+ err(what);
1600
+ ABORT = true;
1601
+ what += ". Build with -sASSERTIONS for more info.";
1602
+ var e = new WebAssembly.RuntimeError(what);
1603
+ readyPromiseReject?.(e);
1604
+ throw e;
1605
+ }
1606
+ __name(abort, "abort");
1607
+ var wasmBinaryFile;
1608
+ function findWasmBinary() {
1609
+ if (Module["locateFile"]) return locateFile("web-tree-sitter.wasm");
1610
+ return new URL("web-tree-sitter.wasm", import.meta.url).href;
1611
+ }
1612
+ __name(findWasmBinary, "findWasmBinary");
1613
+ function getBinarySync(file) {
1614
+ if (file == wasmBinaryFile && wasmBinary) return new Uint8Array(wasmBinary);
1615
+ if (readBinary) return readBinary(file);
1616
+ throw "both async and sync fetching of the wasm failed";
1617
+ }
1618
+ __name(getBinarySync, "getBinarySync");
1619
+ async function getWasmBinary(binaryFile) {
1620
+ if (!wasmBinary) try {
1621
+ var response = await readAsync(binaryFile);
1622
+ return new Uint8Array(response);
1623
+ } catch {}
1624
+ return getBinarySync(binaryFile);
1625
+ }
1626
+ __name(getWasmBinary, "getWasmBinary");
1627
+ async function instantiateArrayBuffer(binaryFile, imports) {
1628
+ try {
1629
+ var binary2 = await getWasmBinary(binaryFile);
1630
+ return await WebAssembly.instantiate(binary2, imports);
1631
+ } catch (reason) {
1632
+ err(`failed to asynchronously prepare wasm: ${reason}`);
1633
+ abort(reason);
1634
+ }
1635
+ }
1636
+ __name(instantiateArrayBuffer, "instantiateArrayBuffer");
1637
+ async function instantiateAsync(binary2, binaryFile, imports) {
1638
+ if (!binary2 && !isFileURI(binaryFile) && !ENVIRONMENT_IS_NODE) try {
1639
+ var response = fetch(binaryFile, { credentials: "same-origin" });
1640
+ return await WebAssembly.instantiateStreaming(response, imports);
1641
+ } catch (reason) {
1642
+ err(`wasm streaming compile failed: ${reason}`);
1643
+ err("falling back to ArrayBuffer instantiation");
1644
+ }
1645
+ return instantiateArrayBuffer(binaryFile, imports);
1646
+ }
1647
+ __name(instantiateAsync, "instantiateAsync");
1648
+ function getWasmImports() {
1649
+ return {
1650
+ "env": wasmImports,
1651
+ "wasi_snapshot_preview1": wasmImports,
1652
+ "GOT.mem": new Proxy(wasmImports, GOTHandler),
1653
+ "GOT.func": new Proxy(wasmImports, GOTHandler)
1654
+ };
1655
+ }
1656
+ __name(getWasmImports, "getWasmImports");
1657
+ async function createWasm() {
1658
+ function receiveInstance(instance2, module2) {
1659
+ wasmExports = instance2.exports;
1660
+ wasmExports = relocateExports(wasmExports, 1024);
1661
+ var metadata2 = getDylinkMetadata(module2);
1662
+ if (metadata2.neededDynlibs) dynamicLibraries = metadata2.neededDynlibs.concat(dynamicLibraries);
1663
+ mergeLibSymbols(wasmExports, "main");
1664
+ LDSO.init();
1665
+ loadDylibs();
1666
+ __RELOC_FUNCS__.push(wasmExports["__wasm_apply_data_relocs"]);
1667
+ assignWasmExports(wasmExports);
1668
+ return wasmExports;
1669
+ }
1670
+ __name(receiveInstance, "receiveInstance");
1671
+ function receiveInstantiationResult(result2) {
1672
+ return receiveInstance(result2["instance"], result2["module"]);
1673
+ }
1674
+ __name(receiveInstantiationResult, "receiveInstantiationResult");
1675
+ var info2 = getWasmImports();
1676
+ if (Module["instantiateWasm"]) return new Promise((resolve, reject) => {
1677
+ Module["instantiateWasm"](info2, (mod, inst) => {
1678
+ resolve(receiveInstance(mod, inst));
1679
+ });
1680
+ });
1681
+ wasmBinaryFile ??= findWasmBinary();
1682
+ return receiveInstantiationResult(await instantiateAsync(wasmBinary, wasmBinaryFile, info2));
1683
+ }
1684
+ __name(createWasm, "createWasm");
1685
+ class ExitStatus {
1686
+ static {
1687
+ __name(this, "ExitStatus");
1688
+ }
1689
+ name = "ExitStatus";
1690
+ constructor(status) {
1691
+ this.message = `Program terminated with exit(${status})`;
1692
+ this.status = status;
1693
+ }
1694
+ }
1695
+ var GOT = {};
1696
+ var currentModuleWeakSymbols = /* @__PURE__ */ new Set([]);
1697
+ var GOTHandler = { get(obj, symName) {
1698
+ var rtn = GOT[symName];
1699
+ if (!rtn) rtn = GOT[symName] = new WebAssembly.Global({
1700
+ "value": "i32",
1701
+ "mutable": true
1702
+ });
1703
+ if (!currentModuleWeakSymbols.has(symName)) rtn.required = true;
1704
+ return rtn;
1705
+ } };
1706
+ var LE_ATOMICS_NATIVE_BYTE_ORDER = [];
1707
+ var LE_HEAP_LOAD_F32 = /* @__PURE__ */ __name((byteOffset) => HEAP_DATA_VIEW.getFloat32(byteOffset, true), "LE_HEAP_LOAD_F32");
1708
+ var LE_HEAP_LOAD_F64 = /* @__PURE__ */ __name((byteOffset) => HEAP_DATA_VIEW.getFloat64(byteOffset, true), "LE_HEAP_LOAD_F64");
1709
+ var LE_HEAP_LOAD_I16 = /* @__PURE__ */ __name((byteOffset) => HEAP_DATA_VIEW.getInt16(byteOffset, true), "LE_HEAP_LOAD_I16");
1710
+ var LE_HEAP_LOAD_I32 = /* @__PURE__ */ __name((byteOffset) => HEAP_DATA_VIEW.getInt32(byteOffset, true), "LE_HEAP_LOAD_I32");
1711
+ var LE_HEAP_LOAD_I64 = /* @__PURE__ */ __name((byteOffset) => HEAP_DATA_VIEW.getBigInt64(byteOffset, true), "LE_HEAP_LOAD_I64");
1712
+ var LE_HEAP_LOAD_U32 = /* @__PURE__ */ __name((byteOffset) => HEAP_DATA_VIEW.getUint32(byteOffset, true), "LE_HEAP_LOAD_U32");
1713
+ var LE_HEAP_STORE_F32 = /* @__PURE__ */ __name((byteOffset, value) => HEAP_DATA_VIEW.setFloat32(byteOffset, value, true), "LE_HEAP_STORE_F32");
1714
+ var LE_HEAP_STORE_F64 = /* @__PURE__ */ __name((byteOffset, value) => HEAP_DATA_VIEW.setFloat64(byteOffset, value, true), "LE_HEAP_STORE_F64");
1715
+ var LE_HEAP_STORE_I16 = /* @__PURE__ */ __name((byteOffset, value) => HEAP_DATA_VIEW.setInt16(byteOffset, value, true), "LE_HEAP_STORE_I16");
1716
+ var LE_HEAP_STORE_I32 = /* @__PURE__ */ __name((byteOffset, value) => HEAP_DATA_VIEW.setInt32(byteOffset, value, true), "LE_HEAP_STORE_I32");
1717
+ var LE_HEAP_STORE_I64 = /* @__PURE__ */ __name((byteOffset, value) => HEAP_DATA_VIEW.setBigInt64(byteOffset, value, true), "LE_HEAP_STORE_I64");
1718
+ var LE_HEAP_STORE_U32 = /* @__PURE__ */ __name((byteOffset, value) => HEAP_DATA_VIEW.setUint32(byteOffset, value, true), "LE_HEAP_STORE_U32");
1719
+ var callRuntimeCallbacks = /* @__PURE__ */ __name((callbacks) => {
1720
+ while (callbacks.length > 0) callbacks.shift()(Module);
1721
+ }, "callRuntimeCallbacks");
1722
+ var onPostRuns = [];
1723
+ var addOnPostRun = /* @__PURE__ */ __name((cb) => onPostRuns.push(cb), "addOnPostRun");
1724
+ var onPreRuns = [];
1725
+ var addOnPreRun = /* @__PURE__ */ __name((cb) => onPreRuns.push(cb), "addOnPreRun");
1726
+ var UTF8Decoder = typeof TextDecoder != "undefined" ? new TextDecoder() : void 0;
1727
+ var findStringEnd = /* @__PURE__ */ __name((heapOrArray, idx, maxBytesToRead, ignoreNul) => {
1728
+ var maxIdx = idx + maxBytesToRead;
1729
+ if (ignoreNul) return maxIdx;
1730
+ while (heapOrArray[idx] && !(idx >= maxIdx)) ++idx;
1731
+ return idx;
1732
+ }, "findStringEnd");
1733
+ var UTF8ArrayToString = /* @__PURE__ */ __name((heapOrArray, idx = 0, maxBytesToRead, ignoreNul) => {
1734
+ var endPtr = findStringEnd(heapOrArray, idx, maxBytesToRead, ignoreNul);
1735
+ if (endPtr - idx > 16 && heapOrArray.buffer && UTF8Decoder) return UTF8Decoder.decode(heapOrArray.subarray(idx, endPtr));
1736
+ var str = "";
1737
+ while (idx < endPtr) {
1738
+ var u0 = heapOrArray[idx++];
1739
+ if (!(u0 & 128)) {
1740
+ str += String.fromCharCode(u0);
1741
+ continue;
1742
+ }
1743
+ var u1 = heapOrArray[idx++] & 63;
1744
+ if ((u0 & 224) == 192) {
1745
+ str += String.fromCharCode((u0 & 31) << 6 | u1);
1746
+ continue;
1747
+ }
1748
+ var u2 = heapOrArray[idx++] & 63;
1749
+ if ((u0 & 240) == 224) u0 = (u0 & 15) << 12 | u1 << 6 | u2;
1750
+ else u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heapOrArray[idx++] & 63;
1751
+ if (u0 < 65536) str += String.fromCharCode(u0);
1752
+ else {
1753
+ var ch = u0 - 65536;
1754
+ str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
1755
+ }
1756
+ }
1757
+ return str;
1758
+ }, "UTF8ArrayToString");
1759
+ var getDylinkMetadata = /* @__PURE__ */ __name((binary2) => {
1760
+ var offset = 0;
1761
+ var end = 0;
1762
+ function getU8() {
1763
+ return binary2[offset++];
1764
+ }
1765
+ __name(getU8, "getU8");
1766
+ function getLEB() {
1767
+ var ret = 0;
1768
+ var mul = 1;
1769
+ while (1) {
1770
+ var byte = binary2[offset++];
1771
+ ret += (byte & 127) * mul;
1772
+ mul *= 128;
1773
+ if (!(byte & 128)) break;
1774
+ }
1775
+ return ret;
1776
+ }
1777
+ __name(getLEB, "getLEB");
1778
+ function getString() {
1779
+ var len = getLEB();
1780
+ offset += len;
1781
+ return UTF8ArrayToString(binary2, offset - len, len);
1782
+ }
1783
+ __name(getString, "getString");
1784
+ function getStringList() {
1785
+ var count2 = getLEB();
1786
+ var rtn = [];
1787
+ while (count2--) rtn.push(getString());
1788
+ return rtn;
1789
+ }
1790
+ __name(getStringList, "getStringList");
1791
+ function failIf(condition, message) {
1792
+ if (condition) throw new Error(message);
1793
+ }
1794
+ __name(failIf, "failIf");
1795
+ if (binary2 instanceof WebAssembly.Module) {
1796
+ var dylinkSection = WebAssembly.Module.customSections(binary2, "dylink.0");
1797
+ failIf(dylinkSection.length === 0, "need dylink section");
1798
+ binary2 = new Uint8Array(dylinkSection[0]);
1799
+ end = binary2.length;
1800
+ } else {
1801
+ var int32View = new Uint32Array(new Uint8Array(binary2.subarray(0, 24)).buffer);
1802
+ failIf(!(int32View[0] == 1836278016 || int32View[0] == 6386541), "need to see wasm magic number");
1803
+ failIf(binary2[8] !== 0, "need the dylink section to be first");
1804
+ offset = 9;
1805
+ var section_size = getLEB();
1806
+ end = offset + section_size;
1807
+ failIf(getString() !== "dylink.0");
1808
+ }
1809
+ var customSection = {
1810
+ neededDynlibs: [],
1811
+ tlsExports: /* @__PURE__ */ new Set(),
1812
+ weakImports: /* @__PURE__ */ new Set(),
1813
+ runtimePaths: []
1814
+ };
1815
+ var WASM_DYLINK_MEM_INFO = 1;
1816
+ var WASM_DYLINK_NEEDED = 2;
1817
+ var WASM_DYLINK_EXPORT_INFO = 3;
1818
+ var WASM_DYLINK_IMPORT_INFO = 4;
1819
+ var WASM_DYLINK_RUNTIME_PATH = 5;
1820
+ var WASM_SYMBOL_TLS = 256;
1821
+ var WASM_SYMBOL_BINDING_MASK = 3;
1822
+ var WASM_SYMBOL_BINDING_WEAK = 1;
1823
+ while (offset < end) {
1824
+ var subsectionType = getU8();
1825
+ var subsectionSize = getLEB();
1826
+ if (subsectionType === WASM_DYLINK_MEM_INFO) {
1827
+ customSection.memorySize = getLEB();
1828
+ customSection.memoryAlign = getLEB();
1829
+ customSection.tableSize = getLEB();
1830
+ customSection.tableAlign = getLEB();
1831
+ } else if (subsectionType === WASM_DYLINK_NEEDED) customSection.neededDynlibs = getStringList();
1832
+ else if (subsectionType === WASM_DYLINK_EXPORT_INFO) {
1833
+ var count = getLEB();
1834
+ while (count--) {
1835
+ var symname = getString();
1836
+ var flags2 = getLEB();
1837
+ if (flags2 & WASM_SYMBOL_TLS) customSection.tlsExports.add(symname);
1838
+ }
1839
+ } else if (subsectionType === WASM_DYLINK_IMPORT_INFO) {
1840
+ var count = getLEB();
1841
+ while (count--) {
1842
+ var modname = getString();
1843
+ var symname = getString();
1844
+ var flags2 = getLEB();
1845
+ if ((flags2 & WASM_SYMBOL_BINDING_MASK) == WASM_SYMBOL_BINDING_WEAK) customSection.weakImports.add(symname);
1846
+ }
1847
+ } else if (subsectionType === WASM_DYLINK_RUNTIME_PATH) customSection.runtimePaths = getStringList();
1848
+ else offset += subsectionSize;
1849
+ }
1850
+ return customSection;
1851
+ }, "getDylinkMetadata");
1852
+ function getValue(ptr, type = "i8") {
1853
+ if (type.endsWith("*")) type = "*";
1854
+ switch (type) {
1855
+ case "i1": return HEAP8[ptr];
1856
+ case "i8": return HEAP8[ptr];
1857
+ case "i16": return LE_HEAP_LOAD_I16((ptr >> 1) * 2);
1858
+ case "i32": return LE_HEAP_LOAD_I32((ptr >> 2) * 4);
1859
+ case "i64": return LE_HEAP_LOAD_I64((ptr >> 3) * 8);
1860
+ case "float": return LE_HEAP_LOAD_F32((ptr >> 2) * 4);
1861
+ case "double": return LE_HEAP_LOAD_F64((ptr >> 3) * 8);
1862
+ case "*": return LE_HEAP_LOAD_U32((ptr >> 2) * 4);
1863
+ default: abort(`invalid type for getValue: ${type}`);
1864
+ }
1865
+ }
1866
+ __name(getValue, "getValue");
1867
+ var newDSO = /* @__PURE__ */ __name((name2, handle2, syms) => {
1868
+ var dso = {
1869
+ refcount: Infinity,
1870
+ name: name2,
1871
+ exports: syms,
1872
+ global: true
1873
+ };
1874
+ LDSO.loadedLibsByName[name2] = dso;
1875
+ if (handle2 != void 0) LDSO.loadedLibsByHandle[handle2] = dso;
1876
+ return dso;
1877
+ }, "newDSO");
1878
+ var LDSO = {
1879
+ loadedLibsByName: {},
1880
+ loadedLibsByHandle: {},
1881
+ init() {
1882
+ newDSO("__main__", 0, wasmImports);
1883
+ }
1884
+ };
1885
+ var ___heap_base = 78240;
1886
+ var alignMemory = /* @__PURE__ */ __name((size, alignment) => Math.ceil(size / alignment) * alignment, "alignMemory");
1887
+ var getMemory = /* @__PURE__ */ __name((size) => {
1888
+ if (runtimeInitialized) return _calloc(size, 1);
1889
+ var ret = ___heap_base;
1890
+ var end = ret + alignMemory(size, 16);
1891
+ ___heap_base = end;
1892
+ GOT["__heap_base"].value = end;
1893
+ return ret;
1894
+ }, "getMemory");
1895
+ var isInternalSym = /* @__PURE__ */ __name((symName) => [
1896
+ "__cpp_exception",
1897
+ "__c_longjmp",
1898
+ "__wasm_apply_data_relocs",
1899
+ "__dso_handle",
1900
+ "__tls_size",
1901
+ "__tls_align",
1902
+ "__set_stack_limits",
1903
+ "_emscripten_tls_init",
1904
+ "__wasm_init_tls",
1905
+ "__wasm_call_ctors",
1906
+ "__start_em_asm",
1907
+ "__stop_em_asm",
1908
+ "__start_em_js",
1909
+ "__stop_em_js"
1910
+ ].includes(symName) || symName.startsWith("__em_js__"), "isInternalSym");
1911
+ var uleb128EncodeWithLen = /* @__PURE__ */ __name((arr) => {
1912
+ const n = arr.length;
1913
+ return [
1914
+ n % 128 | 128,
1915
+ n >> 7,
1916
+ ...arr
1917
+ ];
1918
+ }, "uleb128EncodeWithLen");
1919
+ var wasmTypeCodes = {
1920
+ "i": 127,
1921
+ "p": 127,
1922
+ "j": 126,
1923
+ "f": 125,
1924
+ "d": 124,
1925
+ "e": 111
1926
+ };
1927
+ var generateTypePack = /* @__PURE__ */ __name((types) => uleb128EncodeWithLen(Array.from(types, (type) => {
1928
+ return wasmTypeCodes[type];
1929
+ })), "generateTypePack");
1930
+ var convertJsFunctionToWasm = /* @__PURE__ */ __name((func2, sig) => {
1931
+ var bytes = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...uleb128EncodeWithLen([
1932
+ 1,
1933
+ 96,
1934
+ ...generateTypePack(sig.slice(1)),
1935
+ ...generateTypePack(sig[0] === "v" ? "" : sig[0])
1936
+ ]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0);
1937
+ var module2 = new WebAssembly.Module(bytes);
1938
+ return new WebAssembly.Instance(module2, { "e": { "f": func2 } }).exports["f"];
1939
+ }, "convertJsFunctionToWasm");
1940
+ var wasmTableMirror = [];
1941
+ var wasmTable = new WebAssembly.Table({
1942
+ "initial": 31,
1943
+ "element": "anyfunc"
1944
+ });
1945
+ var getWasmTableEntry = /* @__PURE__ */ __name((funcPtr) => {
1946
+ var func2 = wasmTableMirror[funcPtr];
1947
+ if (!func2) wasmTableMirror[funcPtr] = func2 = wasmTable.get(funcPtr);
1948
+ return func2;
1949
+ }, "getWasmTableEntry");
1950
+ var updateTableMap = /* @__PURE__ */ __name((offset, count) => {
1951
+ if (functionsInTableMap) for (var i2 = offset; i2 < offset + count; i2++) {
1952
+ var item = getWasmTableEntry(i2);
1953
+ if (item) functionsInTableMap.set(item, i2);
1954
+ }
1955
+ }, "updateTableMap");
1956
+ var functionsInTableMap;
1957
+ var getFunctionAddress = /* @__PURE__ */ __name((func2) => {
1958
+ if (!functionsInTableMap) {
1959
+ functionsInTableMap = /* @__PURE__ */ new WeakMap();
1960
+ updateTableMap(0, wasmTable.length);
1961
+ }
1962
+ return functionsInTableMap.get(func2) || 0;
1963
+ }, "getFunctionAddress");
1964
+ var freeTableIndexes = [];
1965
+ var getEmptyTableSlot = /* @__PURE__ */ __name(() => {
1966
+ if (freeTableIndexes.length) return freeTableIndexes.pop();
1967
+ return wasmTable["grow"](1);
1968
+ }, "getEmptyTableSlot");
1969
+ var setWasmTableEntry = /* @__PURE__ */ __name((idx, func2) => {
1970
+ wasmTable.set(idx, func2);
1971
+ wasmTableMirror[idx] = wasmTable.get(idx);
1972
+ }, "setWasmTableEntry");
1973
+ var addFunction = /* @__PURE__ */ __name((func2, sig) => {
1974
+ var rtn = getFunctionAddress(func2);
1975
+ if (rtn) return rtn;
1976
+ var ret = getEmptyTableSlot();
1977
+ try {
1978
+ setWasmTableEntry(ret, func2);
1979
+ } catch (err2) {
1980
+ if (!(err2 instanceof TypeError)) throw err2;
1981
+ setWasmTableEntry(ret, convertJsFunctionToWasm(func2, sig));
1982
+ }
1983
+ functionsInTableMap.set(func2, ret);
1984
+ return ret;
1985
+ }, "addFunction");
1986
+ var updateGOT = /* @__PURE__ */ __name((exports, replace) => {
1987
+ for (var symName in exports) {
1988
+ if (isInternalSym(symName)) continue;
1989
+ var value = exports[symName];
1990
+ GOT[symName] ||= new WebAssembly.Global({
1991
+ "value": "i32",
1992
+ "mutable": true
1993
+ });
1994
+ if (replace || GOT[symName].value == 0) if (typeof value == "function") GOT[symName].value = addFunction(value);
1995
+ else if (typeof value == "number") GOT[symName].value = value;
1996
+ else err(`unhandled export type for '${symName}': ${typeof value}`);
1997
+ }
1998
+ }, "updateGOT");
1999
+ var relocateExports = /* @__PURE__ */ __name((exports, memoryBase2, replace) => {
2000
+ var relocated = {};
2001
+ for (var e in exports) {
2002
+ var value = exports[e];
2003
+ if (typeof value == "object") value = value.value;
2004
+ if (typeof value == "number") value += memoryBase2;
2005
+ relocated[e] = value;
2006
+ }
2007
+ updateGOT(relocated, replace);
2008
+ return relocated;
2009
+ }, "relocateExports");
2010
+ var isSymbolDefined = /* @__PURE__ */ __name((symName) => {
2011
+ var existing = wasmImports[symName];
2012
+ if (!existing || existing.stub) return false;
2013
+ return true;
2014
+ }, "isSymbolDefined");
2015
+ var dynCall = /* @__PURE__ */ __name((sig, ptr, args2 = [], promising = false) => {
2016
+ var rtn = getWasmTableEntry(ptr)(...args2);
2017
+ function convert(rtn2) {
2018
+ return rtn2;
2019
+ }
2020
+ __name(convert, "convert");
2021
+ return convert(rtn);
2022
+ }, "dynCall");
2023
+ var stackSave = /* @__PURE__ */ __name(() => _emscripten_stack_get_current(), "stackSave");
2024
+ var stackRestore = /* @__PURE__ */ __name((val) => __emscripten_stack_restore(val), "stackRestore");
2025
+ var createInvokeFunction = /* @__PURE__ */ __name((sig) => (ptr, ...args2) => {
2026
+ var sp = stackSave();
2027
+ try {
2028
+ return dynCall(sig, ptr, args2);
2029
+ } catch (e) {
2030
+ stackRestore(sp);
2031
+ if (e !== e + 0) throw e;
2032
+ _setThrew(1, 0);
2033
+ if (sig[0] == "j") return 0n;
2034
+ }
2035
+ }, "createInvokeFunction");
2036
+ var resolveGlobalSymbol = /* @__PURE__ */ __name((symName, direct = false) => {
2037
+ var sym;
2038
+ if (isSymbolDefined(symName)) sym = wasmImports[symName];
2039
+ else if (symName.startsWith("invoke_")) sym = wasmImports[symName] = createInvokeFunction(symName.split("_")[1]);
2040
+ return {
2041
+ sym,
2042
+ name: symName
2043
+ };
2044
+ }, "resolveGlobalSymbol");
2045
+ var onPostCtors = [];
2046
+ var addOnPostCtor = /* @__PURE__ */ __name((cb) => onPostCtors.push(cb), "addOnPostCtor");
2047
+ var UTF8ToString = /* @__PURE__ */ __name((ptr, maxBytesToRead, ignoreNul) => ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead, ignoreNul) : "", "UTF8ToString");
2048
+ var loadWebAssemblyModule = /* @__PURE__ */ __name((binary, flags, libName, localScope, handle) => {
2049
+ var metadata = getDylinkMetadata(binary);
2050
+ function loadModule() {
2051
+ var memAlign = Math.pow(2, metadata.memoryAlign);
2052
+ var memoryBase = metadata.memorySize ? alignMemory(getMemory(metadata.memorySize + memAlign), memAlign) : 0;
2053
+ var tableBase = metadata.tableSize ? wasmTable.length : 0;
2054
+ if (handle) {
2055
+ HEAP8[handle + 8] = 1;
2056
+ LE_HEAP_STORE_U32((handle + 12 >> 2) * 4, memoryBase);
2057
+ LE_HEAP_STORE_I32((handle + 16 >> 2) * 4, metadata.memorySize);
2058
+ LE_HEAP_STORE_U32((handle + 20 >> 2) * 4, tableBase);
2059
+ LE_HEAP_STORE_I32((handle + 24 >> 2) * 4, metadata.tableSize);
2060
+ }
2061
+ if (metadata.tableSize) wasmTable.grow(metadata.tableSize);
2062
+ var moduleExports;
2063
+ function resolveSymbol(sym) {
2064
+ var resolved = resolveGlobalSymbol(sym).sym;
2065
+ if (!resolved && localScope) resolved = localScope[sym];
2066
+ if (!resolved) resolved = moduleExports[sym];
2067
+ return resolved;
2068
+ }
2069
+ __name(resolveSymbol, "resolveSymbol");
2070
+ var proxy = new Proxy({}, { get(stubs, prop) {
2071
+ switch (prop) {
2072
+ case "__memory_base": return memoryBase;
2073
+ case "__table_base": return tableBase;
2074
+ }
2075
+ if (prop in wasmImports && !wasmImports[prop].stub) return wasmImports[prop];
2076
+ if (!(prop in stubs)) {
2077
+ var resolved;
2078
+ stubs[prop] = (...args2) => {
2079
+ resolved ||= resolveSymbol(prop);
2080
+ return resolved(...args2);
2081
+ };
2082
+ }
2083
+ return stubs[prop];
2084
+ } });
2085
+ currentModuleWeakSymbols = metadata.weakImports;
2086
+ var info = {
2087
+ "GOT.mem": new Proxy({}, GOTHandler),
2088
+ "GOT.func": new Proxy({}, GOTHandler),
2089
+ "env": proxy,
2090
+ "wasi_snapshot_preview1": proxy
2091
+ };
2092
+ function postInstantiation(module$1, instance) {
2093
+ updateTableMap(tableBase, metadata.tableSize);
2094
+ moduleExports = relocateExports(instance.exports, memoryBase);
2095
+ if (!flags.allowUndefined) reportUndefinedSymbols();
2096
+ function addEmAsm(addr, body) {
2097
+ var args = [];
2098
+ var arity = 0;
2099
+ for (; arity < 16; arity++) if (body.indexOf("$" + arity) != -1) args.push("$" + arity);
2100
+ else break;
2101
+ args = args.join(",");
2102
+ var func = `(${args}) => { ${body} };`;
2103
+ ASM_CONSTS[start] = eval(func);
2104
+ }
2105
+ __name(addEmAsm, "addEmAsm");
2106
+ if ("__start_em_asm" in moduleExports) {
2107
+ var start = moduleExports["__start_em_asm"];
2108
+ var stop = moduleExports["__stop_em_asm"];
2109
+ while (start < stop) {
2110
+ var jsString = UTF8ToString(start);
2111
+ addEmAsm(start, jsString);
2112
+ start = HEAPU8.indexOf(0, start) + 1;
2113
+ }
2114
+ }
2115
+ function addEmJs(name$1, cSig, body) {
2116
+ var jsArgs = [];
2117
+ cSig = cSig.slice(1, -1);
2118
+ if (cSig != "void") {
2119
+ cSig = cSig.split(",");
2120
+ for (var i in cSig) {
2121
+ var jsArg = cSig[i].split(" ").pop();
2122
+ jsArgs.push(jsArg.replace("*", ""));
2123
+ }
2124
+ }
2125
+ var func = `(${jsArgs}) => ${body};`;
2126
+ moduleExports[name$1] = eval(func);
2127
+ }
2128
+ __name(addEmJs, "addEmJs");
2129
+ for (var name in moduleExports) if (name.startsWith("__em_js__")) {
2130
+ var start = moduleExports[name];
2131
+ var jsString = UTF8ToString(start);
2132
+ var parts = jsString.split("<::>");
2133
+ addEmJs(name.replace("__em_js__", ""), parts[0], parts[1]);
2134
+ delete moduleExports[name];
2135
+ }
2136
+ var applyRelocs = moduleExports["__wasm_apply_data_relocs"];
2137
+ if (applyRelocs) if (runtimeInitialized) applyRelocs();
2138
+ else __RELOC_FUNCS__.push(applyRelocs);
2139
+ var init = moduleExports["__wasm_call_ctors"];
2140
+ if (init) if (runtimeInitialized) init();
2141
+ else addOnPostCtor(init);
2142
+ return moduleExports;
2143
+ }
2144
+ __name(postInstantiation, "postInstantiation");
2145
+ if (flags.loadAsync) return (async () => {
2146
+ var instance2;
2147
+ if (binary instanceof WebAssembly.Module) instance2 = new WebAssembly.Instance(binary, info);
2148
+ else ({module: binary, instance: instance2} = await WebAssembly.instantiate(binary, info));
2149
+ return postInstantiation(binary, instance2);
2150
+ })();
2151
+ var module = binary instanceof WebAssembly.Module ? binary : new WebAssembly.Module(binary);
2152
+ return postInstantiation(module, new WebAssembly.Instance(module, info));
2153
+ }
2154
+ __name(loadModule, "loadModule");
2155
+ flags = {
2156
+ ...flags,
2157
+ rpath: {
2158
+ parentLibPath: libName,
2159
+ paths: metadata.runtimePaths
2160
+ }
2161
+ };
2162
+ if (flags.loadAsync) return metadata.neededDynlibs.reduce((chain, dynNeeded) => chain.then(() => loadDynamicLibrary(dynNeeded, flags, localScope)), Promise.resolve()).then(loadModule);
2163
+ metadata.neededDynlibs.forEach((needed) => loadDynamicLibrary(needed, flags, localScope));
2164
+ return loadModule();
2165
+ }, "loadWebAssemblyModule");
2166
+ var mergeLibSymbols = /* @__PURE__ */ __name((exports, libName2) => {
2167
+ for (var [sym, exp] of Object.entries(exports)) {
2168
+ const setImport = /* @__PURE__ */ __name((target) => {
2169
+ if (!isSymbolDefined(target)) wasmImports[target] = exp;
2170
+ }, "setImport");
2171
+ setImport(sym);
2172
+ const main_alias = "__main_argc_argv";
2173
+ if (sym == "main") setImport(main_alias);
2174
+ if (sym == main_alias) setImport("main");
2175
+ }
2176
+ }, "mergeLibSymbols");
2177
+ var asyncLoad = /* @__PURE__ */ __name(async (url) => {
2178
+ var arrayBuffer = await readAsync(url);
2179
+ return new Uint8Array(arrayBuffer);
2180
+ }, "asyncLoad");
2181
+ function loadDynamicLibrary(libName2, flags2 = {
2182
+ global: true,
2183
+ nodelete: true
2184
+ }, localScope2, handle2) {
2185
+ var dso = LDSO.loadedLibsByName[libName2];
2186
+ if (dso) {
2187
+ if (!flags2.global) {
2188
+ if (localScope2) Object.assign(localScope2, dso.exports);
2189
+ } else if (!dso.global) {
2190
+ dso.global = true;
2191
+ mergeLibSymbols(dso.exports, libName2);
2192
+ }
2193
+ if (flags2.nodelete && dso.refcount !== Infinity) dso.refcount = Infinity;
2194
+ dso.refcount++;
2195
+ if (handle2) LDSO.loadedLibsByHandle[handle2] = dso;
2196
+ return flags2.loadAsync ? Promise.resolve(true) : true;
2197
+ }
2198
+ dso = newDSO(libName2, handle2, "loading");
2199
+ dso.refcount = flags2.nodelete ? Infinity : 1;
2200
+ dso.global = flags2.global;
2201
+ function loadLibData() {
2202
+ if (handle2) {
2203
+ var data = LE_HEAP_LOAD_U32((handle2 + 28 >> 2) * 4);
2204
+ var dataSize = LE_HEAP_LOAD_U32((handle2 + 32 >> 2) * 4);
2205
+ if (data && dataSize) {
2206
+ var libData = HEAP8.slice(data, data + dataSize);
2207
+ return flags2.loadAsync ? Promise.resolve(libData) : libData;
2208
+ }
2209
+ }
2210
+ var libFile = locateFile(libName2);
2211
+ if (flags2.loadAsync) return asyncLoad(libFile);
2212
+ if (!readBinary) throw new Error(`${libFile}: file not found, and synchronous loading of external files is not available`);
2213
+ return readBinary(libFile);
2214
+ }
2215
+ __name(loadLibData, "loadLibData");
2216
+ function getExports() {
2217
+ if (flags2.loadAsync) return loadLibData().then((libData) => loadWebAssemblyModule(libData, flags2, libName2, localScope2, handle2));
2218
+ return loadWebAssemblyModule(loadLibData(), flags2, libName2, localScope2, handle2);
2219
+ }
2220
+ __name(getExports, "getExports");
2221
+ function moduleLoaded(exports) {
2222
+ if (dso.global) mergeLibSymbols(exports, libName2);
2223
+ else if (localScope2) Object.assign(localScope2, exports);
2224
+ dso.exports = exports;
2225
+ }
2226
+ __name(moduleLoaded, "moduleLoaded");
2227
+ if (flags2.loadAsync) return getExports().then((exports) => {
2228
+ moduleLoaded(exports);
2229
+ return true;
2230
+ });
2231
+ moduleLoaded(getExports());
2232
+ return true;
2233
+ }
2234
+ __name(loadDynamicLibrary, "loadDynamicLibrary");
2235
+ var reportUndefinedSymbols = /* @__PURE__ */ __name(() => {
2236
+ for (var [symName, entry] of Object.entries(GOT)) if (entry.value == 0) {
2237
+ var value = resolveGlobalSymbol(symName, true).sym;
2238
+ if (!value && !entry.required) continue;
2239
+ if (typeof value == "function") entry.value = addFunction(value, value.sig);
2240
+ else if (typeof value == "number") entry.value = value;
2241
+ else throw new Error(`bad export type for '${symName}': ${typeof value}`);
2242
+ }
2243
+ }, "reportUndefinedSymbols");
2244
+ var runDependencies = 0;
2245
+ var dependenciesFulfilled = null;
2246
+ var removeRunDependency = /* @__PURE__ */ __name((id) => {
2247
+ runDependencies--;
2248
+ Module["monitorRunDependencies"]?.(runDependencies);
2249
+ if (runDependencies == 0) {
2250
+ if (dependenciesFulfilled) {
2251
+ var callback = dependenciesFulfilled;
2252
+ dependenciesFulfilled = null;
2253
+ callback();
2254
+ }
2255
+ }
2256
+ }, "removeRunDependency");
2257
+ var addRunDependency = /* @__PURE__ */ __name((id) => {
2258
+ runDependencies++;
2259
+ Module["monitorRunDependencies"]?.(runDependencies);
2260
+ }, "addRunDependency");
2261
+ var loadDylibs = /* @__PURE__ */ __name(async () => {
2262
+ if (!dynamicLibraries.length) {
2263
+ reportUndefinedSymbols();
2264
+ return;
2265
+ }
2266
+ addRunDependency("loadDylibs");
2267
+ for (var lib of dynamicLibraries) await loadDynamicLibrary(lib, {
2268
+ loadAsync: true,
2269
+ global: true,
2270
+ nodelete: true,
2271
+ allowUndefined: true
2272
+ });
2273
+ reportUndefinedSymbols();
2274
+ removeRunDependency("loadDylibs");
2275
+ }, "loadDylibs");
2276
+ var noExitRuntime = true;
2277
+ function setValue(ptr, value, type = "i8") {
2278
+ if (type.endsWith("*")) type = "*";
2279
+ switch (type) {
2280
+ case "i1":
2281
+ HEAP8[ptr] = value;
2282
+ break;
2283
+ case "i8":
2284
+ HEAP8[ptr] = value;
2285
+ break;
2286
+ case "i16":
2287
+ LE_HEAP_STORE_I16((ptr >> 1) * 2, value);
2288
+ break;
2289
+ case "i32":
2290
+ LE_HEAP_STORE_I32((ptr >> 2) * 4, value);
2291
+ break;
2292
+ case "i64":
2293
+ LE_HEAP_STORE_I64((ptr >> 3) * 8, BigInt(value));
2294
+ break;
2295
+ case "float":
2296
+ LE_HEAP_STORE_F32((ptr >> 2) * 4, value);
2297
+ break;
2298
+ case "double":
2299
+ LE_HEAP_STORE_F64((ptr >> 3) * 8, value);
2300
+ break;
2301
+ case "*":
2302
+ LE_HEAP_STORE_U32((ptr >> 2) * 4, value);
2303
+ break;
2304
+ default: abort(`invalid type for setValue: ${type}`);
2305
+ }
2306
+ }
2307
+ __name(setValue, "setValue");
2308
+ var ___memory_base = new WebAssembly.Global({
2309
+ "value": "i32",
2310
+ "mutable": false
2311
+ }, 1024);
2312
+ var ___stack_high = 78240;
2313
+ var ___stack_low = 12704;
2314
+ var ___stack_pointer = new WebAssembly.Global({
2315
+ "value": "i32",
2316
+ "mutable": true
2317
+ }, 78240);
2318
+ var ___table_base = new WebAssembly.Global({
2319
+ "value": "i32",
2320
+ "mutable": false
2321
+ }, 1);
2322
+ var __abort_js = /* @__PURE__ */ __name(() => abort(""), "__abort_js");
2323
+ __abort_js.sig = "v";
2324
+ var getHeapMax = /* @__PURE__ */ __name(() => 2147483648, "getHeapMax");
2325
+ var growMemory = /* @__PURE__ */ __name((size) => {
2326
+ var pages = (size - wasmMemory.buffer.byteLength + 65535) / 65536 | 0;
2327
+ try {
2328
+ wasmMemory.grow(pages);
2329
+ updateMemoryViews();
2330
+ return 1;
2331
+ } catch (e) {}
2332
+ }, "growMemory");
2333
+ var _emscripten_resize_heap = /* @__PURE__ */ __name((requestedSize) => {
2334
+ var oldSize = HEAPU8.length;
2335
+ requestedSize >>>= 0;
2336
+ var maxHeapSize = getHeapMax();
2337
+ if (requestedSize > maxHeapSize) return false;
2338
+ for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
2339
+ var overGrownHeapSize = oldSize * (1 + .2 / cutDown);
2340
+ overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
2341
+ if (growMemory(Math.min(maxHeapSize, alignMemory(Math.max(requestedSize, overGrownHeapSize), 65536)))) return true;
2342
+ }
2343
+ return false;
2344
+ }, "_emscripten_resize_heap");
2345
+ _emscripten_resize_heap.sig = "ip";
2346
+ var _fd_close = /* @__PURE__ */ __name((fd) => 52, "_fd_close");
2347
+ _fd_close.sig = "ii";
2348
+ var INT53_MAX = 9007199254740992;
2349
+ var INT53_MIN = -9007199254740992;
2350
+ var bigintToI53Checked = /* @__PURE__ */ __name((num) => num < INT53_MIN || num > INT53_MAX ? NaN : Number(num), "bigintToI53Checked");
2351
+ function _fd_seek(fd, offset, whence, newOffset) {
2352
+ offset = bigintToI53Checked(offset);
2353
+ return 70;
2354
+ }
2355
+ __name(_fd_seek, "_fd_seek");
2356
+ _fd_seek.sig = "iijip";
2357
+ var printCharBuffers = [
2358
+ null,
2359
+ [],
2360
+ []
2361
+ ];
2362
+ var printChar = /* @__PURE__ */ __name((stream, curr) => {
2363
+ var buffer = printCharBuffers[stream];
2364
+ if (curr === 0 || curr === 10) {
2365
+ (stream === 1 ? out : err)(UTF8ArrayToString(buffer));
2366
+ buffer.length = 0;
2367
+ } else buffer.push(curr);
2368
+ }, "printChar");
2369
+ var _fd_write = /* @__PURE__ */ __name((fd, iov, iovcnt, pnum) => {
2370
+ var num = 0;
2371
+ for (var i2 = 0; i2 < iovcnt; i2++) {
2372
+ var ptr = LE_HEAP_LOAD_U32((iov >> 2) * 4);
2373
+ var len = LE_HEAP_LOAD_U32((iov + 4 >> 2) * 4);
2374
+ iov += 8;
2375
+ for (var j = 0; j < len; j++) printChar(fd, HEAPU8[ptr + j]);
2376
+ num += len;
2377
+ }
2378
+ LE_HEAP_STORE_U32((pnum >> 2) * 4, num);
2379
+ return 0;
2380
+ }, "_fd_write");
2381
+ _fd_write.sig = "iippp";
2382
+ function _tree_sitter_log_callback(isLexMessage, messageAddress) {
2383
+ if (Module.currentLogCallback) {
2384
+ const message = UTF8ToString(messageAddress);
2385
+ Module.currentLogCallback(message, isLexMessage !== 0);
2386
+ }
2387
+ }
2388
+ __name(_tree_sitter_log_callback, "_tree_sitter_log_callback");
2389
+ function _tree_sitter_parse_callback(inputBufferAddress, index, row, column, lengthAddress) {
2390
+ const INPUT_BUFFER_SIZE = 10 * 1024;
2391
+ const string = Module.currentParseCallback(index, {
2392
+ row,
2393
+ column
2394
+ });
2395
+ if (typeof string === "string") {
2396
+ setValue(lengthAddress, string.length, "i32");
2397
+ stringToUTF16(string, inputBufferAddress, INPUT_BUFFER_SIZE);
2398
+ } else setValue(lengthAddress, 0, "i32");
2399
+ }
2400
+ __name(_tree_sitter_parse_callback, "_tree_sitter_parse_callback");
2401
+ function _tree_sitter_progress_callback(currentOffset, hasError) {
2402
+ if (Module.currentProgressCallback) return Module.currentProgressCallback({
2403
+ currentOffset,
2404
+ hasError
2405
+ });
2406
+ return false;
2407
+ }
2408
+ __name(_tree_sitter_progress_callback, "_tree_sitter_progress_callback");
2409
+ function _tree_sitter_query_progress_callback(currentOffset) {
2410
+ if (Module.currentQueryProgressCallback) return Module.currentQueryProgressCallback({ currentOffset });
2411
+ return false;
2412
+ }
2413
+ __name(_tree_sitter_query_progress_callback, "_tree_sitter_query_progress_callback");
2414
+ var runtimeKeepaliveCounter = 0;
2415
+ var keepRuntimeAlive = /* @__PURE__ */ __name(() => noExitRuntime || runtimeKeepaliveCounter > 0, "keepRuntimeAlive");
2416
+ var _proc_exit = /* @__PURE__ */ __name((code) => {
2417
+ EXITSTATUS = code;
2418
+ if (!keepRuntimeAlive()) {
2419
+ Module["onExit"]?.(code);
2420
+ ABORT = true;
2421
+ }
2422
+ quit_(code, new ExitStatus(code));
2423
+ }, "_proc_exit");
2424
+ _proc_exit.sig = "vi";
2425
+ var exitJS = /* @__PURE__ */ __name((status, implicit) => {
2426
+ EXITSTATUS = status;
2427
+ _proc_exit(status);
2428
+ }, "exitJS");
2429
+ var handleException = /* @__PURE__ */ __name((e) => {
2430
+ if (e instanceof ExitStatus || e == "unwind") return EXITSTATUS;
2431
+ quit_(1, e);
2432
+ }, "handleException");
2433
+ var lengthBytesUTF8 = /* @__PURE__ */ __name((str) => {
2434
+ var len = 0;
2435
+ for (var i2 = 0; i2 < str.length; ++i2) {
2436
+ var c = str.charCodeAt(i2);
2437
+ if (c <= 127) len++;
2438
+ else if (c <= 2047) len += 2;
2439
+ else if (c >= 55296 && c <= 57343) {
2440
+ len += 4;
2441
+ ++i2;
2442
+ } else len += 3;
2443
+ }
2444
+ return len;
2445
+ }, "lengthBytesUTF8");
2446
+ var stringToUTF8Array = /* @__PURE__ */ __name((str, heap, outIdx, maxBytesToWrite) => {
2447
+ if (!(maxBytesToWrite > 0)) return 0;
2448
+ var startIdx = outIdx;
2449
+ var endIdx = outIdx + maxBytesToWrite - 1;
2450
+ for (var i2 = 0; i2 < str.length; ++i2) {
2451
+ var u = str.codePointAt(i2);
2452
+ if (u <= 127) {
2453
+ if (outIdx >= endIdx) break;
2454
+ heap[outIdx++] = u;
2455
+ } else if (u <= 2047) {
2456
+ if (outIdx + 1 >= endIdx) break;
2457
+ heap[outIdx++] = 192 | u >> 6;
2458
+ heap[outIdx++] = 128 | u & 63;
2459
+ } else if (u <= 65535) {
2460
+ if (outIdx + 2 >= endIdx) break;
2461
+ heap[outIdx++] = 224 | u >> 12;
2462
+ heap[outIdx++] = 128 | u >> 6 & 63;
2463
+ heap[outIdx++] = 128 | u & 63;
2464
+ } else {
2465
+ if (outIdx + 3 >= endIdx) break;
2466
+ heap[outIdx++] = 240 | u >> 18;
2467
+ heap[outIdx++] = 128 | u >> 12 & 63;
2468
+ heap[outIdx++] = 128 | u >> 6 & 63;
2469
+ heap[outIdx++] = 128 | u & 63;
2470
+ i2++;
2471
+ }
2472
+ }
2473
+ heap[outIdx] = 0;
2474
+ return outIdx - startIdx;
2475
+ }, "stringToUTF8Array");
2476
+ var stringToUTF8 = /* @__PURE__ */ __name((str, outPtr, maxBytesToWrite) => stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite), "stringToUTF8");
2477
+ var stackAlloc = /* @__PURE__ */ __name((sz) => __emscripten_stack_alloc(sz), "stackAlloc");
2478
+ var stringToUTF8OnStack = /* @__PURE__ */ __name((str) => {
2479
+ var size = lengthBytesUTF8(str) + 1;
2480
+ var ret = stackAlloc(size);
2481
+ stringToUTF8(str, ret, size);
2482
+ return ret;
2483
+ }, "stringToUTF8OnStack");
2484
+ var AsciiToString = /* @__PURE__ */ __name((ptr) => {
2485
+ var str = "";
2486
+ while (1) {
2487
+ var ch = HEAPU8[ptr++];
2488
+ if (!ch) return str;
2489
+ str += String.fromCharCode(ch);
2490
+ }
2491
+ }, "AsciiToString");
2492
+ var stringToUTF16 = /* @__PURE__ */ __name((str, outPtr, maxBytesToWrite) => {
2493
+ maxBytesToWrite ??= 2147483647;
2494
+ if (maxBytesToWrite < 2) return 0;
2495
+ maxBytesToWrite -= 2;
2496
+ var startPtr = outPtr;
2497
+ var numCharsToWrite = maxBytesToWrite < str.length * 2 ? maxBytesToWrite / 2 : str.length;
2498
+ for (var i2 = 0; i2 < numCharsToWrite; ++i2) {
2499
+ var codeUnit = str.charCodeAt(i2);
2500
+ LE_HEAP_STORE_I16((outPtr >> 1) * 2, codeUnit);
2501
+ outPtr += 2;
2502
+ }
2503
+ LE_HEAP_STORE_I16((outPtr >> 1) * 2, 0);
2504
+ return outPtr - startPtr;
2505
+ }, "stringToUTF16");
2506
+ new Int8Array(new Int16Array([1]).buffer)[0];
2507
+ function LE_HEAP_UPDATE() {
2508
+ HEAPU16.unsigned = ((x) => x & 65535);
2509
+ HEAPU32.unsigned = ((x) => x >>> 0);
2510
+ }
2511
+ __name(LE_HEAP_UPDATE, "LE_HEAP_UPDATE");
2512
+ initMemory();
2513
+ if (Module["noExitRuntime"]) noExitRuntime = Module["noExitRuntime"];
2514
+ if (Module["print"]) out = Module["print"];
2515
+ if (Module["printErr"]) err = Module["printErr"];
2516
+ if (Module["dynamicLibraries"]) dynamicLibraries = Module["dynamicLibraries"];
2517
+ if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
2518
+ if (Module["arguments"]) arguments_ = Module["arguments"];
2519
+ if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
2520
+ if (Module["preInit"]) {
2521
+ if (typeof Module["preInit"] == "function") Module["preInit"] = [Module["preInit"]];
2522
+ while (Module["preInit"].length > 0) Module["preInit"].shift()();
2523
+ }
2524
+ Module["setValue"] = setValue;
2525
+ Module["getValue"] = getValue;
2526
+ Module["UTF8ToString"] = UTF8ToString;
2527
+ Module["stringToUTF8"] = stringToUTF8;
2528
+ Module["lengthBytesUTF8"] = lengthBytesUTF8;
2529
+ Module["AsciiToString"] = AsciiToString;
2530
+ Module["stringToUTF16"] = stringToUTF16;
2531
+ Module["loadWebAssemblyModule"] = loadWebAssemblyModule;
2532
+ Module["LE_HEAP_STORE_I64"] = LE_HEAP_STORE_I64;
2533
+ var ASM_CONSTS = {};
2534
+ var _malloc, _calloc, _realloc, _free, _ts_range_edit, _memcmp, _ts_language_symbol_count, _ts_language_state_count, _ts_language_abi_version, _ts_language_name, _ts_language_field_count, _ts_language_next_state, _ts_language_symbol_name, _ts_language_symbol_for_name, _strncmp, _ts_language_symbol_type, _ts_language_field_name_for_id, _ts_lookahead_iterator_new, _ts_lookahead_iterator_delete, _ts_lookahead_iterator_reset_state, _ts_lookahead_iterator_reset, _ts_lookahead_iterator_next, _ts_lookahead_iterator_current_symbol, _ts_point_edit, _ts_parser_delete, _ts_parser_reset, _ts_parser_set_language, _ts_parser_set_included_ranges, _ts_query_new, _ts_query_delete, _iswspace, _iswalnum, _ts_query_pattern_count, _ts_query_capture_count, _ts_query_string_count, _ts_query_capture_name_for_id, _ts_query_capture_quantifier_for_id, _ts_query_string_value_for_id, _ts_query_predicates_for_pattern, _ts_query_start_byte_for_pattern, _ts_query_end_byte_for_pattern, _ts_query_is_pattern_rooted, _ts_query_is_pattern_non_local, _ts_query_is_pattern_guaranteed_at_step, _ts_query_disable_capture, _ts_query_disable_pattern, _ts_tree_copy, _ts_tree_delete, _ts_init, _ts_parser_new_wasm, _ts_parser_enable_logger_wasm, _ts_parser_parse_wasm, _ts_parser_included_ranges_wasm, _ts_language_type_is_named_wasm, _ts_language_type_is_visible_wasm, _ts_language_metadata_wasm, _ts_language_supertypes_wasm, _ts_language_subtypes_wasm, _ts_tree_root_node_wasm, _ts_tree_root_node_with_offset_wasm, _ts_tree_edit_wasm, _ts_tree_included_ranges_wasm, _ts_tree_get_changed_ranges_wasm, _ts_tree_cursor_new_wasm, _ts_tree_cursor_copy_wasm, _ts_tree_cursor_delete_wasm, _ts_tree_cursor_reset_wasm, _ts_tree_cursor_reset_to_wasm, _ts_tree_cursor_goto_first_child_wasm, _ts_tree_cursor_goto_last_child_wasm, _ts_tree_cursor_goto_first_child_for_index_wasm, _ts_tree_cursor_goto_first_child_for_position_wasm, _ts_tree_cursor_goto_next_sibling_wasm, _ts_tree_cursor_goto_previous_sibling_wasm, _ts_tree_cursor_goto_descendant_wasm, _ts_tree_cursor_goto_parent_wasm, _ts_tree_cursor_current_node_type_id_wasm, _ts_tree_cursor_current_node_state_id_wasm, _ts_tree_cursor_current_node_is_named_wasm, _ts_tree_cursor_current_node_is_missing_wasm, _ts_tree_cursor_current_node_id_wasm, _ts_tree_cursor_start_position_wasm, _ts_tree_cursor_end_position_wasm, _ts_tree_cursor_start_index_wasm, _ts_tree_cursor_end_index_wasm, _ts_tree_cursor_current_field_id_wasm, _ts_tree_cursor_current_depth_wasm, _ts_tree_cursor_current_descendant_index_wasm, _ts_tree_cursor_current_node_wasm, _ts_node_symbol_wasm, _ts_node_field_name_for_child_wasm, _ts_node_field_name_for_named_child_wasm, _ts_node_children_by_field_id_wasm, _ts_node_first_child_for_byte_wasm, _ts_node_first_named_child_for_byte_wasm, _ts_node_grammar_symbol_wasm, _ts_node_child_count_wasm, _ts_node_named_child_count_wasm, _ts_node_child_wasm, _ts_node_named_child_wasm, _ts_node_child_by_field_id_wasm, _ts_node_next_sibling_wasm, _ts_node_prev_sibling_wasm, _ts_node_next_named_sibling_wasm, _ts_node_prev_named_sibling_wasm, _ts_node_descendant_count_wasm, _ts_node_parent_wasm, _ts_node_child_with_descendant_wasm, _ts_node_descendant_for_index_wasm, _ts_node_named_descendant_for_index_wasm, _ts_node_descendant_for_position_wasm, _ts_node_named_descendant_for_position_wasm, _ts_node_start_point_wasm, _ts_node_end_point_wasm, _ts_node_start_index_wasm, _ts_node_end_index_wasm, _ts_node_to_string_wasm, _ts_node_children_wasm, _ts_node_named_children_wasm, _ts_node_descendants_of_type_wasm, _ts_node_is_named_wasm, _ts_node_has_changes_wasm, _ts_node_has_error_wasm, _ts_node_is_error_wasm, _ts_node_is_missing_wasm, _ts_node_is_extra_wasm, _ts_node_parse_state_wasm, _ts_node_next_parse_state_wasm, _ts_query_matches_wasm, _ts_query_captures_wasm, _memset, _memcpy, _memmove, _iswalpha, _iswblank, _iswdigit, _iswlower, _iswupper, _iswxdigit, _memchr, _strlen, _strcmp, _strncat, _strncpy, _towlower, _towupper, _setThrew, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, ___wasm_apply_data_relocs;
2535
+ function assignWasmExports(wasmExports2) {
2536
+ Module["_malloc"] = wasmExports2["malloc"];
2537
+ Module["_calloc"] = _calloc = wasmExports2["calloc"];
2538
+ Module["_realloc"] = wasmExports2["realloc"];
2539
+ Module["_free"] = wasmExports2["free"];
2540
+ Module["_ts_range_edit"] = wasmExports2["ts_range_edit"];
2541
+ Module["_memcmp"] = wasmExports2["memcmp"];
2542
+ Module["_ts_language_symbol_count"] = wasmExports2["ts_language_symbol_count"];
2543
+ Module["_ts_language_state_count"] = wasmExports2["ts_language_state_count"];
2544
+ Module["_ts_language_abi_version"] = wasmExports2["ts_language_abi_version"];
2545
+ Module["_ts_language_name"] = wasmExports2["ts_language_name"];
2546
+ Module["_ts_language_field_count"] = wasmExports2["ts_language_field_count"];
2547
+ Module["_ts_language_next_state"] = wasmExports2["ts_language_next_state"];
2548
+ Module["_ts_language_symbol_name"] = wasmExports2["ts_language_symbol_name"];
2549
+ Module["_ts_language_symbol_for_name"] = wasmExports2["ts_language_symbol_for_name"];
2550
+ Module["_strncmp"] = wasmExports2["strncmp"];
2551
+ Module["_ts_language_symbol_type"] = wasmExports2["ts_language_symbol_type"];
2552
+ Module["_ts_language_field_name_for_id"] = wasmExports2["ts_language_field_name_for_id"];
2553
+ Module["_ts_lookahead_iterator_new"] = wasmExports2["ts_lookahead_iterator_new"];
2554
+ Module["_ts_lookahead_iterator_delete"] = wasmExports2["ts_lookahead_iterator_delete"];
2555
+ Module["_ts_lookahead_iterator_reset_state"] = wasmExports2["ts_lookahead_iterator_reset_state"];
2556
+ Module["_ts_lookahead_iterator_reset"] = wasmExports2["ts_lookahead_iterator_reset"];
2557
+ Module["_ts_lookahead_iterator_next"] = wasmExports2["ts_lookahead_iterator_next"];
2558
+ Module["_ts_lookahead_iterator_current_symbol"] = wasmExports2["ts_lookahead_iterator_current_symbol"];
2559
+ Module["_ts_point_edit"] = wasmExports2["ts_point_edit"];
2560
+ Module["_ts_parser_delete"] = wasmExports2["ts_parser_delete"];
2561
+ Module["_ts_parser_reset"] = wasmExports2["ts_parser_reset"];
2562
+ Module["_ts_parser_set_language"] = wasmExports2["ts_parser_set_language"];
2563
+ Module["_ts_parser_set_included_ranges"] = wasmExports2["ts_parser_set_included_ranges"];
2564
+ Module["_ts_query_new"] = wasmExports2["ts_query_new"];
2565
+ Module["_ts_query_delete"] = wasmExports2["ts_query_delete"];
2566
+ Module["_iswspace"] = wasmExports2["iswspace"];
2567
+ Module["_iswalnum"] = wasmExports2["iswalnum"];
2568
+ Module["_ts_query_pattern_count"] = wasmExports2["ts_query_pattern_count"];
2569
+ Module["_ts_query_capture_count"] = wasmExports2["ts_query_capture_count"];
2570
+ Module["_ts_query_string_count"] = wasmExports2["ts_query_string_count"];
2571
+ Module["_ts_query_capture_name_for_id"] = wasmExports2["ts_query_capture_name_for_id"];
2572
+ Module["_ts_query_capture_quantifier_for_id"] = wasmExports2["ts_query_capture_quantifier_for_id"];
2573
+ Module["_ts_query_string_value_for_id"] = wasmExports2["ts_query_string_value_for_id"];
2574
+ Module["_ts_query_predicates_for_pattern"] = wasmExports2["ts_query_predicates_for_pattern"];
2575
+ Module["_ts_query_start_byte_for_pattern"] = wasmExports2["ts_query_start_byte_for_pattern"];
2576
+ Module["_ts_query_end_byte_for_pattern"] = wasmExports2["ts_query_end_byte_for_pattern"];
2577
+ Module["_ts_query_is_pattern_rooted"] = wasmExports2["ts_query_is_pattern_rooted"];
2578
+ Module["_ts_query_is_pattern_non_local"] = wasmExports2["ts_query_is_pattern_non_local"];
2579
+ Module["_ts_query_is_pattern_guaranteed_at_step"] = wasmExports2["ts_query_is_pattern_guaranteed_at_step"];
2580
+ Module["_ts_query_disable_capture"] = wasmExports2["ts_query_disable_capture"];
2581
+ Module["_ts_query_disable_pattern"] = wasmExports2["ts_query_disable_pattern"];
2582
+ Module["_ts_tree_copy"] = wasmExports2["ts_tree_copy"];
2583
+ Module["_ts_tree_delete"] = wasmExports2["ts_tree_delete"];
2584
+ Module["_ts_init"] = wasmExports2["ts_init"];
2585
+ Module["_ts_parser_new_wasm"] = wasmExports2["ts_parser_new_wasm"];
2586
+ Module["_ts_parser_enable_logger_wasm"] = wasmExports2["ts_parser_enable_logger_wasm"];
2587
+ Module["_ts_parser_parse_wasm"] = wasmExports2["ts_parser_parse_wasm"];
2588
+ Module["_ts_parser_included_ranges_wasm"] = wasmExports2["ts_parser_included_ranges_wasm"];
2589
+ Module["_ts_language_type_is_named_wasm"] = wasmExports2["ts_language_type_is_named_wasm"];
2590
+ Module["_ts_language_type_is_visible_wasm"] = wasmExports2["ts_language_type_is_visible_wasm"];
2591
+ Module["_ts_language_metadata_wasm"] = wasmExports2["ts_language_metadata_wasm"];
2592
+ Module["_ts_language_supertypes_wasm"] = wasmExports2["ts_language_supertypes_wasm"];
2593
+ Module["_ts_language_subtypes_wasm"] = wasmExports2["ts_language_subtypes_wasm"];
2594
+ Module["_ts_tree_root_node_wasm"] = wasmExports2["ts_tree_root_node_wasm"];
2595
+ Module["_ts_tree_root_node_with_offset_wasm"] = wasmExports2["ts_tree_root_node_with_offset_wasm"];
2596
+ Module["_ts_tree_edit_wasm"] = wasmExports2["ts_tree_edit_wasm"];
2597
+ Module["_ts_tree_included_ranges_wasm"] = wasmExports2["ts_tree_included_ranges_wasm"];
2598
+ Module["_ts_tree_get_changed_ranges_wasm"] = wasmExports2["ts_tree_get_changed_ranges_wasm"];
2599
+ Module["_ts_tree_cursor_new_wasm"] = wasmExports2["ts_tree_cursor_new_wasm"];
2600
+ Module["_ts_tree_cursor_copy_wasm"] = wasmExports2["ts_tree_cursor_copy_wasm"];
2601
+ Module["_ts_tree_cursor_delete_wasm"] = wasmExports2["ts_tree_cursor_delete_wasm"];
2602
+ Module["_ts_tree_cursor_reset_wasm"] = wasmExports2["ts_tree_cursor_reset_wasm"];
2603
+ Module["_ts_tree_cursor_reset_to_wasm"] = wasmExports2["ts_tree_cursor_reset_to_wasm"];
2604
+ Module["_ts_tree_cursor_goto_first_child_wasm"] = wasmExports2["ts_tree_cursor_goto_first_child_wasm"];
2605
+ Module["_ts_tree_cursor_goto_last_child_wasm"] = wasmExports2["ts_tree_cursor_goto_last_child_wasm"];
2606
+ Module["_ts_tree_cursor_goto_first_child_for_index_wasm"] = wasmExports2["ts_tree_cursor_goto_first_child_for_index_wasm"];
2607
+ Module["_ts_tree_cursor_goto_first_child_for_position_wasm"] = wasmExports2["ts_tree_cursor_goto_first_child_for_position_wasm"];
2608
+ Module["_ts_tree_cursor_goto_next_sibling_wasm"] = wasmExports2["ts_tree_cursor_goto_next_sibling_wasm"];
2609
+ Module["_ts_tree_cursor_goto_previous_sibling_wasm"] = wasmExports2["ts_tree_cursor_goto_previous_sibling_wasm"];
2610
+ Module["_ts_tree_cursor_goto_descendant_wasm"] = wasmExports2["ts_tree_cursor_goto_descendant_wasm"];
2611
+ Module["_ts_tree_cursor_goto_parent_wasm"] = wasmExports2["ts_tree_cursor_goto_parent_wasm"];
2612
+ Module["_ts_tree_cursor_current_node_type_id_wasm"] = wasmExports2["ts_tree_cursor_current_node_type_id_wasm"];
2613
+ Module["_ts_tree_cursor_current_node_state_id_wasm"] = wasmExports2["ts_tree_cursor_current_node_state_id_wasm"];
2614
+ Module["_ts_tree_cursor_current_node_is_named_wasm"] = wasmExports2["ts_tree_cursor_current_node_is_named_wasm"];
2615
+ Module["_ts_tree_cursor_current_node_is_missing_wasm"] = wasmExports2["ts_tree_cursor_current_node_is_missing_wasm"];
2616
+ Module["_ts_tree_cursor_current_node_id_wasm"] = wasmExports2["ts_tree_cursor_current_node_id_wasm"];
2617
+ Module["_ts_tree_cursor_start_position_wasm"] = wasmExports2["ts_tree_cursor_start_position_wasm"];
2618
+ Module["_ts_tree_cursor_end_position_wasm"] = wasmExports2["ts_tree_cursor_end_position_wasm"];
2619
+ Module["_ts_tree_cursor_start_index_wasm"] = wasmExports2["ts_tree_cursor_start_index_wasm"];
2620
+ Module["_ts_tree_cursor_end_index_wasm"] = wasmExports2["ts_tree_cursor_end_index_wasm"];
2621
+ Module["_ts_tree_cursor_current_field_id_wasm"] = wasmExports2["ts_tree_cursor_current_field_id_wasm"];
2622
+ Module["_ts_tree_cursor_current_depth_wasm"] = wasmExports2["ts_tree_cursor_current_depth_wasm"];
2623
+ Module["_ts_tree_cursor_current_descendant_index_wasm"] = wasmExports2["ts_tree_cursor_current_descendant_index_wasm"];
2624
+ Module["_ts_tree_cursor_current_node_wasm"] = wasmExports2["ts_tree_cursor_current_node_wasm"];
2625
+ Module["_ts_node_symbol_wasm"] = wasmExports2["ts_node_symbol_wasm"];
2626
+ Module["_ts_node_field_name_for_child_wasm"] = wasmExports2["ts_node_field_name_for_child_wasm"];
2627
+ Module["_ts_node_field_name_for_named_child_wasm"] = wasmExports2["ts_node_field_name_for_named_child_wasm"];
2628
+ Module["_ts_node_children_by_field_id_wasm"] = wasmExports2["ts_node_children_by_field_id_wasm"];
2629
+ Module["_ts_node_first_child_for_byte_wasm"] = wasmExports2["ts_node_first_child_for_byte_wasm"];
2630
+ Module["_ts_node_first_named_child_for_byte_wasm"] = wasmExports2["ts_node_first_named_child_for_byte_wasm"];
2631
+ Module["_ts_node_grammar_symbol_wasm"] = wasmExports2["ts_node_grammar_symbol_wasm"];
2632
+ Module["_ts_node_child_count_wasm"] = wasmExports2["ts_node_child_count_wasm"];
2633
+ Module["_ts_node_named_child_count_wasm"] = wasmExports2["ts_node_named_child_count_wasm"];
2634
+ Module["_ts_node_child_wasm"] = wasmExports2["ts_node_child_wasm"];
2635
+ Module["_ts_node_named_child_wasm"] = wasmExports2["ts_node_named_child_wasm"];
2636
+ Module["_ts_node_child_by_field_id_wasm"] = wasmExports2["ts_node_child_by_field_id_wasm"];
2637
+ Module["_ts_node_next_sibling_wasm"] = wasmExports2["ts_node_next_sibling_wasm"];
2638
+ Module["_ts_node_prev_sibling_wasm"] = wasmExports2["ts_node_prev_sibling_wasm"];
2639
+ Module["_ts_node_next_named_sibling_wasm"] = wasmExports2["ts_node_next_named_sibling_wasm"];
2640
+ Module["_ts_node_prev_named_sibling_wasm"] = wasmExports2["ts_node_prev_named_sibling_wasm"];
2641
+ Module["_ts_node_descendant_count_wasm"] = wasmExports2["ts_node_descendant_count_wasm"];
2642
+ Module["_ts_node_parent_wasm"] = wasmExports2["ts_node_parent_wasm"];
2643
+ Module["_ts_node_child_with_descendant_wasm"] = wasmExports2["ts_node_child_with_descendant_wasm"];
2644
+ Module["_ts_node_descendant_for_index_wasm"] = wasmExports2["ts_node_descendant_for_index_wasm"];
2645
+ Module["_ts_node_named_descendant_for_index_wasm"] = wasmExports2["ts_node_named_descendant_for_index_wasm"];
2646
+ Module["_ts_node_descendant_for_position_wasm"] = wasmExports2["ts_node_descendant_for_position_wasm"];
2647
+ Module["_ts_node_named_descendant_for_position_wasm"] = wasmExports2["ts_node_named_descendant_for_position_wasm"];
2648
+ Module["_ts_node_start_point_wasm"] = wasmExports2["ts_node_start_point_wasm"];
2649
+ Module["_ts_node_end_point_wasm"] = wasmExports2["ts_node_end_point_wasm"];
2650
+ Module["_ts_node_start_index_wasm"] = wasmExports2["ts_node_start_index_wasm"];
2651
+ Module["_ts_node_end_index_wasm"] = wasmExports2["ts_node_end_index_wasm"];
2652
+ Module["_ts_node_to_string_wasm"] = wasmExports2["ts_node_to_string_wasm"];
2653
+ Module["_ts_node_children_wasm"] = wasmExports2["ts_node_children_wasm"];
2654
+ Module["_ts_node_named_children_wasm"] = wasmExports2["ts_node_named_children_wasm"];
2655
+ Module["_ts_node_descendants_of_type_wasm"] = wasmExports2["ts_node_descendants_of_type_wasm"];
2656
+ Module["_ts_node_is_named_wasm"] = wasmExports2["ts_node_is_named_wasm"];
2657
+ Module["_ts_node_has_changes_wasm"] = wasmExports2["ts_node_has_changes_wasm"];
2658
+ Module["_ts_node_has_error_wasm"] = wasmExports2["ts_node_has_error_wasm"];
2659
+ Module["_ts_node_is_error_wasm"] = wasmExports2["ts_node_is_error_wasm"];
2660
+ Module["_ts_node_is_missing_wasm"] = wasmExports2["ts_node_is_missing_wasm"];
2661
+ Module["_ts_node_is_extra_wasm"] = wasmExports2["ts_node_is_extra_wasm"];
2662
+ Module["_ts_node_parse_state_wasm"] = wasmExports2["ts_node_parse_state_wasm"];
2663
+ Module["_ts_node_next_parse_state_wasm"] = wasmExports2["ts_node_next_parse_state_wasm"];
2664
+ Module["_ts_query_matches_wasm"] = wasmExports2["ts_query_matches_wasm"];
2665
+ Module["_ts_query_captures_wasm"] = wasmExports2["ts_query_captures_wasm"];
2666
+ Module["_memset"] = wasmExports2["memset"];
2667
+ Module["_memcpy"] = wasmExports2["memcpy"];
2668
+ Module["_memmove"] = wasmExports2["memmove"];
2669
+ Module["_iswalpha"] = wasmExports2["iswalpha"];
2670
+ Module["_iswblank"] = wasmExports2["iswblank"];
2671
+ Module["_iswdigit"] = wasmExports2["iswdigit"];
2672
+ Module["_iswlower"] = wasmExports2["iswlower"];
2673
+ Module["_iswupper"] = wasmExports2["iswupper"];
2674
+ Module["_iswxdigit"] = wasmExports2["iswxdigit"];
2675
+ Module["_memchr"] = wasmExports2["memchr"];
2676
+ Module["_strlen"] = wasmExports2["strlen"];
2677
+ Module["_strcmp"] = wasmExports2["strcmp"];
2678
+ Module["_strncat"] = wasmExports2["strncat"];
2679
+ Module["_strncpy"] = wasmExports2["strncpy"];
2680
+ Module["_towlower"] = wasmExports2["towlower"];
2681
+ Module["_towupper"] = wasmExports2["towupper"];
2682
+ _setThrew = wasmExports2["setThrew"];
2683
+ __emscripten_stack_restore = wasmExports2["_emscripten_stack_restore"];
2684
+ __emscripten_stack_alloc = wasmExports2["_emscripten_stack_alloc"];
2685
+ _emscripten_stack_get_current = wasmExports2["emscripten_stack_get_current"];
2686
+ wasmExports2["__wasm_apply_data_relocs"];
2687
+ }
2688
+ __name(assignWasmExports, "assignWasmExports");
2689
+ var wasmImports = {
2690
+ __heap_base: ___heap_base,
2691
+ __indirect_function_table: wasmTable,
2692
+ __memory_base: ___memory_base,
2693
+ __stack_high: ___stack_high,
2694
+ __stack_low: ___stack_low,
2695
+ __stack_pointer: ___stack_pointer,
2696
+ __table_base: ___table_base,
2697
+ _abort_js: __abort_js,
2698
+ emscripten_resize_heap: _emscripten_resize_heap,
2699
+ fd_close: _fd_close,
2700
+ fd_seek: _fd_seek,
2701
+ fd_write: _fd_write,
2702
+ memory: wasmMemory,
2703
+ tree_sitter_log_callback: _tree_sitter_log_callback,
2704
+ tree_sitter_parse_callback: _tree_sitter_parse_callback,
2705
+ tree_sitter_progress_callback: _tree_sitter_progress_callback,
2706
+ tree_sitter_query_progress_callback: _tree_sitter_query_progress_callback
2707
+ };
2708
+ function callMain(args2 = []) {
2709
+ var entryFunction = resolveGlobalSymbol("main").sym;
2710
+ if (!entryFunction) return;
2711
+ args2.unshift(thisProgram);
2712
+ var argc = args2.length;
2713
+ var argv = stackAlloc((argc + 1) * 4);
2714
+ var argv_ptr = argv;
2715
+ args2.forEach((arg) => {
2716
+ LE_HEAP_STORE_U32((argv_ptr >> 2) * 4, stringToUTF8OnStack(arg));
2717
+ argv_ptr += 4;
2718
+ });
2719
+ LE_HEAP_STORE_U32((argv_ptr >> 2) * 4, 0);
2720
+ try {
2721
+ var ret = entryFunction(argc, argv);
2722
+ exitJS(ret, true);
2723
+ return ret;
2724
+ } catch (e) {
2725
+ return handleException(e);
2726
+ }
2727
+ }
2728
+ __name(callMain, "callMain");
2729
+ function run(args2 = arguments_) {
2730
+ if (runDependencies > 0) {
2731
+ dependenciesFulfilled = run;
2732
+ return;
2733
+ }
2734
+ preRun();
2735
+ if (runDependencies > 0) {
2736
+ dependenciesFulfilled = run;
2737
+ return;
2738
+ }
2739
+ function doRun() {
2740
+ Module["calledRun"] = true;
2741
+ if (ABORT) return;
2742
+ initRuntime();
2743
+ preMain();
2744
+ readyPromiseResolve?.(Module);
2745
+ Module["onRuntimeInitialized"]?.();
2746
+ if (!(Module["noInitialRun"] || false)) callMain(args2);
2747
+ postRun();
2748
+ }
2749
+ __name(doRun, "doRun");
2750
+ if (Module["setStatus"]) {
2751
+ Module["setStatus"]("Running...");
2752
+ setTimeout(() => {
2753
+ setTimeout(() => Module["setStatus"](""), 1);
2754
+ doRun();
2755
+ }, 1);
2756
+ } else doRun();
2757
+ }
2758
+ __name(run, "run");
2759
+ var wasmExports = await createWasm();
2760
+ run();
2761
+ if (runtimeInitialized) moduleRtn = Module;
2762
+ else moduleRtn = new Promise((resolve, reject) => {
2763
+ readyPromiseResolve = resolve;
2764
+ readyPromiseReject = reject;
2765
+ });
2766
+ return moduleRtn;
2767
+ }
2768
+ __name(Module2, "Module");
2769
+ var web_tree_sitter_default = Module2;
2770
+ var Module3 = null;
2771
+ async function initializeBinding(moduleOptions) {
2772
+ return Module3 ??= await web_tree_sitter_default(moduleOptions);
2773
+ }
2774
+ __name(initializeBinding, "initializeBinding");
2775
+ function checkModule() {
2776
+ return !!Module3;
2777
+ }
2778
+ __name(checkModule, "checkModule");
2779
+ var TRANSFER_BUFFER;
2780
+ var LANGUAGE_VERSION;
2781
+ var MIN_COMPATIBLE_VERSION;
2782
+ var Parser = class {
2783
+ static {
2784
+ __name(this, "Parser");
2785
+ }
2786
+ /** @internal */
2787
+ [0] = 0;
2788
+ /** @internal */
2789
+ [1] = 0;
2790
+ /** @internal */
2791
+ logCallback = null;
2792
+ /** The parser's current language. */
2793
+ language = null;
2794
+ /**
2795
+ * This must always be called before creating a Parser.
2796
+ *
2797
+ * You can optionally pass in options to configure the Wasm module, the most common
2798
+ * one being `locateFile` to help the module find the `.wasm` file.
2799
+ */
2800
+ static async init(moduleOptions) {
2801
+ setModule(await initializeBinding(moduleOptions));
2802
+ TRANSFER_BUFFER = C._ts_init();
2803
+ LANGUAGE_VERSION = C.getValue(TRANSFER_BUFFER, "i32");
2804
+ MIN_COMPATIBLE_VERSION = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
2805
+ }
2806
+ /**
2807
+ * Create a new parser.
2808
+ */
2809
+ constructor() {
2810
+ this.initialize();
2811
+ }
2812
+ /** @internal */
2813
+ initialize() {
2814
+ if (!checkModule()) throw new Error("cannot construct a Parser before calling `init()`");
2815
+ C._ts_parser_new_wasm();
2816
+ this[0] = C.getValue(TRANSFER_BUFFER, "i32");
2817
+ this[1] = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
2818
+ }
2819
+ /** Delete the parser, freeing its resources. */
2820
+ delete() {
2821
+ C._ts_parser_delete(this[0]);
2822
+ C._free(this[1]);
2823
+ this[0] = 0;
2824
+ this[1] = 0;
2825
+ }
2826
+ /**
2827
+ * Set the language that the parser should use for parsing.
2828
+ *
2829
+ * If the language was not successfully assigned, an error will be thrown.
2830
+ * This happens if the language was generated with an incompatible
2831
+ * version of the Tree-sitter CLI. Check the language's version using
2832
+ * {@link Language#version} and compare it to this library's
2833
+ * {@link LANGUAGE_VERSION} and {@link MIN_COMPATIBLE_VERSION} constants.
2834
+ */
2835
+ setLanguage(language) {
2836
+ let address;
2837
+ if (!language) {
2838
+ address = 0;
2839
+ this.language = null;
2840
+ } else if (language.constructor === Language) {
2841
+ address = language[0];
2842
+ const version = C._ts_language_abi_version(address);
2843
+ if (version < MIN_COMPATIBLE_VERSION || LANGUAGE_VERSION < version) throw new Error(`Incompatible language version ${version}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);
2844
+ this.language = language;
2845
+ } else throw new Error("Argument must be a Language");
2846
+ C._ts_parser_set_language(this[0], address);
2847
+ return this;
2848
+ }
2849
+ /**
2850
+ * Parse a slice of UTF8 text.
2851
+ *
2852
+ * @param {string | ParseCallback} callback - The UTF8-encoded text to parse or a callback function.
2853
+ *
2854
+ * @param {Tree | null} [oldTree] - A previous syntax tree parsed from the same document. If the text of the
2855
+ * document has changed since `oldTree` was created, then you must edit `oldTree` to match
2856
+ * the new text using {@link Tree#edit}.
2857
+ *
2858
+ * @param {ParseOptions} [options] - Options for parsing the text.
2859
+ * This can be used to set the included ranges, or a progress callback.
2860
+ *
2861
+ * @returns {Tree | null} A {@link Tree} if parsing succeeded, or `null` if:
2862
+ * - The parser has not yet had a language assigned with {@link Parser#setLanguage}.
2863
+ * - The progress callback returned true.
2864
+ */
2865
+ parse(callback, oldTree, options) {
2866
+ if (typeof callback === "string") C.currentParseCallback = (index) => callback.slice(index);
2867
+ else if (typeof callback === "function") C.currentParseCallback = callback;
2868
+ else throw new Error("Argument must be a string or a function");
2869
+ if (options?.progressCallback) C.currentProgressCallback = options.progressCallback;
2870
+ else C.currentProgressCallback = null;
2871
+ if (this.logCallback) {
2872
+ C.currentLogCallback = this.logCallback;
2873
+ C._ts_parser_enable_logger_wasm(this[0], 1);
2874
+ } else {
2875
+ C.currentLogCallback = null;
2876
+ C._ts_parser_enable_logger_wasm(this[0], 0);
2877
+ }
2878
+ let rangeCount = 0;
2879
+ let rangeAddress = 0;
2880
+ if (options?.includedRanges) {
2881
+ rangeCount = options.includedRanges.length;
2882
+ rangeAddress = C._calloc(rangeCount, SIZE_OF_RANGE);
2883
+ let address = rangeAddress;
2884
+ for (let i2 = 0; i2 < rangeCount; i2++) {
2885
+ marshalRange(address, options.includedRanges[i2]);
2886
+ address += SIZE_OF_RANGE;
2887
+ }
2888
+ }
2889
+ const treeAddress = C._ts_parser_parse_wasm(this[0], this[1], oldTree ? oldTree[0] : 0, rangeAddress, rangeCount);
2890
+ if (!treeAddress) {
2891
+ C.currentParseCallback = null;
2892
+ C.currentLogCallback = null;
2893
+ C.currentProgressCallback = null;
2894
+ return null;
2895
+ }
2896
+ if (!this.language) throw new Error("Parser must have a language to parse");
2897
+ const result = new Tree(INTERNAL, treeAddress, this.language, C.currentParseCallback);
2898
+ C.currentParseCallback = null;
2899
+ C.currentLogCallback = null;
2900
+ C.currentProgressCallback = null;
2901
+ return result;
2902
+ }
2903
+ /**
2904
+ * Instruct the parser to start the next parse from the beginning.
2905
+ *
2906
+ * If the parser previously failed because of a callback,
2907
+ * then by default, it will resume where it left off on the
2908
+ * next call to {@link Parser#parse} or other parsing functions.
2909
+ * If you don't want to resume, and instead intend to use this parser to
2910
+ * parse some other document, you must call `reset` first.
2911
+ */
2912
+ reset() {
2913
+ C._ts_parser_reset(this[0]);
2914
+ }
2915
+ /** Get the ranges of text that the parser will include when parsing. */
2916
+ getIncludedRanges() {
2917
+ C._ts_parser_included_ranges_wasm(this[0]);
2918
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
2919
+ const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
2920
+ const result = new Array(count);
2921
+ if (count > 0) {
2922
+ let address = buffer;
2923
+ for (let i2 = 0; i2 < count; i2++) {
2924
+ result[i2] = unmarshalRange(address);
2925
+ address += SIZE_OF_RANGE;
2926
+ }
2927
+ C._free(buffer);
2928
+ }
2929
+ return result;
2930
+ }
2931
+ /** Set the logging callback that a parser should use during parsing. */
2932
+ setLogger(callback) {
2933
+ if (!callback) this.logCallback = null;
2934
+ else if (typeof callback !== "function") throw new Error("Logger callback must be a function");
2935
+ else this.logCallback = callback;
2936
+ return this;
2937
+ }
2938
+ /** Get the parser's current logger. */
2939
+ getLogger() {
2940
+ return this.logCallback;
2941
+ }
2942
+ };
2943
+ var PREDICATE_STEP_TYPE_CAPTURE = 1;
2944
+ var PREDICATE_STEP_TYPE_STRING = 2;
2945
+ var QUERY_WORD_REGEX = /[\w-]+/g;
2946
+ var CaptureQuantifier = {
2947
+ Zero: 0,
2948
+ ZeroOrOne: 1,
2949
+ ZeroOrMore: 2,
2950
+ One: 3,
2951
+ OneOrMore: 4
2952
+ };
2953
+ var isCaptureStep = /* @__PURE__ */ __name((step) => step.type === "capture", "isCaptureStep");
2954
+ var isStringStep = /* @__PURE__ */ __name((step) => step.type === "string", "isStringStep");
2955
+ var QueryErrorKind = {
2956
+ Syntax: 1,
2957
+ NodeName: 2,
2958
+ FieldName: 3,
2959
+ CaptureName: 4,
2960
+ PatternStructure: 5
2961
+ };
2962
+ var QueryError = class _QueryError extends Error {
2963
+ constructor(kind, info2, index, length) {
2964
+ super(_QueryError.formatMessage(kind, info2));
2965
+ this.kind = kind;
2966
+ this.info = info2;
2967
+ this.index = index;
2968
+ this.length = length;
2969
+ this.name = "QueryError";
2970
+ }
2971
+ static {
2972
+ __name(this, "QueryError");
2973
+ }
2974
+ /** Formats an error message based on the error kind and info */
2975
+ static formatMessage(kind, info2) {
2976
+ switch (kind) {
2977
+ case QueryErrorKind.NodeName: return `Bad node name '${info2.word}'`;
2978
+ case QueryErrorKind.FieldName: return `Bad field name '${info2.word}'`;
2979
+ case QueryErrorKind.CaptureName: return `Bad capture name @${info2.word}`;
2980
+ case QueryErrorKind.PatternStructure: return `Bad pattern structure at offset ${info2.suffix}`;
2981
+ case QueryErrorKind.Syntax: return `Bad syntax at offset ${info2.suffix}`;
2982
+ }
2983
+ }
2984
+ };
2985
+ function parseAnyPredicate(steps, index, operator, textPredicates) {
2986
+ if (steps.length !== 3) throw new Error(`Wrong number of arguments to \`#${operator}\` predicate. Expected 2, got ${steps.length - 1}`);
2987
+ if (!isCaptureStep(steps[1])) throw new Error(`First argument of \`#${operator}\` predicate must be a capture. Got "${steps[1].value}"`);
2988
+ const isPositive = operator === "eq?" || operator === "any-eq?";
2989
+ const matchAll = !operator.startsWith("any-");
2990
+ if (isCaptureStep(steps[2])) {
2991
+ const captureName1 = steps[1].name;
2992
+ const captureName2 = steps[2].name;
2993
+ textPredicates[index].push((captures) => {
2994
+ const nodes1 = [];
2995
+ const nodes2 = [];
2996
+ for (const c of captures) {
2997
+ if (c.name === captureName1) nodes1.push(c.node);
2998
+ if (c.name === captureName2) nodes2.push(c.node);
2999
+ }
3000
+ const compare = /* @__PURE__ */ __name((n1, n2, positive) => {
3001
+ return positive ? n1.text === n2.text : n1.text !== n2.text;
3002
+ }, "compare");
3003
+ return matchAll ? nodes1.every((n1) => nodes2.some((n2) => compare(n1, n2, isPositive))) : nodes1.some((n1) => nodes2.some((n2) => compare(n1, n2, isPositive)));
3004
+ });
3005
+ } else {
3006
+ const captureName = steps[1].name;
3007
+ const stringValue = steps[2].value;
3008
+ const matches = /* @__PURE__ */ __name((n) => n.text === stringValue, "matches");
3009
+ const doesNotMatch = /* @__PURE__ */ __name((n) => n.text !== stringValue, "doesNotMatch");
3010
+ textPredicates[index].push((captures) => {
3011
+ const nodes = [];
3012
+ for (const c of captures) if (c.name === captureName) nodes.push(c.node);
3013
+ const test = isPositive ? matches : doesNotMatch;
3014
+ return matchAll ? nodes.every(test) : nodes.some(test);
3015
+ });
3016
+ }
3017
+ }
3018
+ __name(parseAnyPredicate, "parseAnyPredicate");
3019
+ function parseMatchPredicate(steps, index, operator, textPredicates) {
3020
+ if (steps.length !== 3) throw new Error(`Wrong number of arguments to \`#${operator}\` predicate. Expected 2, got ${steps.length - 1}.`);
3021
+ if (steps[1].type !== "capture") throw new Error(`First argument of \`#${operator}\` predicate must be a capture. Got "${steps[1].value}".`);
3022
+ if (steps[2].type !== "string") throw new Error(`Second argument of \`#${operator}\` predicate must be a string. Got @${steps[2].name}.`);
3023
+ const isPositive = operator === "match?" || operator === "any-match?";
3024
+ const matchAll = !operator.startsWith("any-");
3025
+ const captureName = steps[1].name;
3026
+ const regex = new RegExp(steps[2].value);
3027
+ textPredicates[index].push((captures) => {
3028
+ const nodes = [];
3029
+ for (const c of captures) if (c.name === captureName) nodes.push(c.node.text);
3030
+ const test = /* @__PURE__ */ __name((text, positive) => {
3031
+ return positive ? regex.test(text) : !regex.test(text);
3032
+ }, "test");
3033
+ if (nodes.length === 0) return !isPositive;
3034
+ return matchAll ? nodes.every((text) => test(text, isPositive)) : nodes.some((text) => test(text, isPositive));
3035
+ });
3036
+ }
3037
+ __name(parseMatchPredicate, "parseMatchPredicate");
3038
+ function parseAnyOfPredicate(steps, index, operator, textPredicates) {
3039
+ if (steps.length < 2) throw new Error(`Wrong number of arguments to \`#${operator}\` predicate. Expected at least 1. Got ${steps.length - 1}.`);
3040
+ if (steps[1].type !== "capture") throw new Error(`First argument of \`#${operator}\` predicate must be a capture. Got "${steps[1].value}".`);
3041
+ const isPositive = operator === "any-of?";
3042
+ const captureName = steps[1].name;
3043
+ const stringSteps = steps.slice(2);
3044
+ if (!stringSteps.every(isStringStep)) throw new Error(`Arguments to \`#${operator}\` predicate must be strings.".`);
3045
+ const values = stringSteps.map((s) => s.value);
3046
+ textPredicates[index].push((captures) => {
3047
+ const nodes = [];
3048
+ for (const c of captures) if (c.name === captureName) nodes.push(c.node.text);
3049
+ if (nodes.length === 0) return !isPositive;
3050
+ return nodes.every((text) => values.includes(text)) === isPositive;
3051
+ });
3052
+ }
3053
+ __name(parseAnyOfPredicate, "parseAnyOfPredicate");
3054
+ function parseIsPredicate(steps, index, operator, assertedProperties, refutedProperties) {
3055
+ if (steps.length < 2 || steps.length > 3) throw new Error(`Wrong number of arguments to \`#${operator}\` predicate. Expected 1 or 2. Got ${steps.length - 1}.`);
3056
+ if (!steps.every(isStringStep)) throw new Error(`Arguments to \`#${operator}\` predicate must be strings.".`);
3057
+ const properties = operator === "is?" ? assertedProperties : refutedProperties;
3058
+ if (!properties[index]) properties[index] = {};
3059
+ properties[index][steps[1].value] = steps[2]?.value ?? null;
3060
+ }
3061
+ __name(parseIsPredicate, "parseIsPredicate");
3062
+ function parseSetDirective(steps, index, setProperties) {
3063
+ if (steps.length < 2 || steps.length > 3) throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${steps.length - 1}.`);
3064
+ if (!steps.every(isStringStep)) throw new Error(`Arguments to \`#set!\` predicate must be strings.".`);
3065
+ if (!setProperties[index]) setProperties[index] = {};
3066
+ setProperties[index][steps[1].value] = steps[2]?.value ?? null;
3067
+ }
3068
+ __name(parseSetDirective, "parseSetDirective");
3069
+ function parsePattern(index, stepType, stepValueId, captureNames, stringValues, steps, textPredicates, predicates, setProperties, assertedProperties, refutedProperties) {
3070
+ if (stepType === PREDICATE_STEP_TYPE_CAPTURE) {
3071
+ const name2 = captureNames[stepValueId];
3072
+ steps.push({
3073
+ type: "capture",
3074
+ name: name2
3075
+ });
3076
+ } else if (stepType === PREDICATE_STEP_TYPE_STRING) steps.push({
3077
+ type: "string",
3078
+ value: stringValues[stepValueId]
3079
+ });
3080
+ else if (steps.length > 0) {
3081
+ if (steps[0].type !== "string") throw new Error("Predicates must begin with a literal value");
3082
+ const operator = steps[0].value;
3083
+ switch (operator) {
3084
+ case "any-not-eq?":
3085
+ case "not-eq?":
3086
+ case "any-eq?":
3087
+ case "eq?":
3088
+ parseAnyPredicate(steps, index, operator, textPredicates);
3089
+ break;
3090
+ case "any-not-match?":
3091
+ case "not-match?":
3092
+ case "any-match?":
3093
+ case "match?":
3094
+ parseMatchPredicate(steps, index, operator, textPredicates);
3095
+ break;
3096
+ case "not-any-of?":
3097
+ case "any-of?":
3098
+ parseAnyOfPredicate(steps, index, operator, textPredicates);
3099
+ break;
3100
+ case "is?":
3101
+ case "is-not?":
3102
+ parseIsPredicate(steps, index, operator, assertedProperties, refutedProperties);
3103
+ break;
3104
+ case "set!":
3105
+ parseSetDirective(steps, index, setProperties);
3106
+ break;
3107
+ default: predicates[index].push({
3108
+ operator,
3109
+ operands: steps.slice(1)
3110
+ });
3111
+ }
3112
+ steps.length = 0;
3113
+ }
3114
+ }
3115
+ __name(parsePattern, "parsePattern");
3116
+ var Query = class {
3117
+ static {
3118
+ __name(this, "Query");
3119
+ }
3120
+ /** @internal */
3121
+ [0] = 0;
3122
+ /** @internal */
3123
+ exceededMatchLimit;
3124
+ /** @internal */
3125
+ textPredicates;
3126
+ /** The names of the captures used in the query. */
3127
+ captureNames;
3128
+ /** The quantifiers of the captures used in the query. */
3129
+ captureQuantifiers;
3130
+ /**
3131
+ * The other user-defined predicates associated with the given index.
3132
+ *
3133
+ * This includes predicates with operators other than:
3134
+ * - `match?`
3135
+ * - `eq?` and `not-eq?`
3136
+ * - `any-of?` and `not-any-of?`
3137
+ * - `is?` and `is-not?`
3138
+ * - `set!`
3139
+ */
3140
+ predicates;
3141
+ /** The properties for predicates with the operator `set!`. */
3142
+ setProperties;
3143
+ /** The properties for predicates with the operator `is?`. */
3144
+ assertedProperties;
3145
+ /** The properties for predicates with the operator `is-not?`. */
3146
+ refutedProperties;
3147
+ /** The maximum number of in-progress matches for this cursor. */
3148
+ matchLimit;
3149
+ /**
3150
+ * Create a new query from a string containing one or more S-expression
3151
+ * patterns.
3152
+ *
3153
+ * The query is associated with a particular language, and can only be run
3154
+ * on syntax nodes parsed with that language. References to Queries can be
3155
+ * shared between multiple threads.
3156
+ *
3157
+ * @link {@see https://tree-sitter.github.io/tree-sitter/using-parsers/queries}
3158
+ */
3159
+ constructor(language, source) {
3160
+ const sourceLength = C.lengthBytesUTF8(source);
3161
+ const sourceAddress = C._malloc(sourceLength + 1);
3162
+ C.stringToUTF8(source, sourceAddress, sourceLength + 1);
3163
+ const address = C._ts_query_new(language[0], sourceAddress, sourceLength, TRANSFER_BUFFER, TRANSFER_BUFFER + SIZE_OF_INT);
3164
+ if (!address) {
3165
+ const errorId = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
3166
+ const errorByte = C.getValue(TRANSFER_BUFFER, "i32");
3167
+ const errorIndex = C.UTF8ToString(sourceAddress, errorByte).length;
3168
+ const suffix = source.slice(errorIndex, errorIndex + 100).split("\n")[0];
3169
+ const word = suffix.match(QUERY_WORD_REGEX)?.[0] ?? "";
3170
+ C._free(sourceAddress);
3171
+ switch (errorId) {
3172
+ case QueryErrorKind.Syntax: throw new QueryError(QueryErrorKind.Syntax, { suffix: `${errorIndex}: '${suffix}'...` }, errorIndex, 0);
3173
+ case QueryErrorKind.NodeName: throw new QueryError(errorId, { word }, errorIndex, word.length);
3174
+ case QueryErrorKind.FieldName: throw new QueryError(errorId, { word }, errorIndex, word.length);
3175
+ case QueryErrorKind.CaptureName: throw new QueryError(errorId, { word }, errorIndex, word.length);
3176
+ case QueryErrorKind.PatternStructure: throw new QueryError(errorId, { suffix: `${errorIndex}: '${suffix}'...` }, errorIndex, 0);
3177
+ }
3178
+ }
3179
+ const stringCount = C._ts_query_string_count(address);
3180
+ const captureCount = C._ts_query_capture_count(address);
3181
+ const patternCount = C._ts_query_pattern_count(address);
3182
+ const captureNames = new Array(captureCount);
3183
+ const captureQuantifiers = new Array(patternCount);
3184
+ const stringValues = new Array(stringCount);
3185
+ for (let i2 = 0; i2 < captureCount; i2++) {
3186
+ const nameAddress = C._ts_query_capture_name_for_id(address, i2, TRANSFER_BUFFER);
3187
+ const nameLength = C.getValue(TRANSFER_BUFFER, "i32");
3188
+ captureNames[i2] = C.UTF8ToString(nameAddress, nameLength);
3189
+ }
3190
+ for (let i2 = 0; i2 < patternCount; i2++) {
3191
+ const captureQuantifiersArray = new Array(captureCount);
3192
+ for (let j = 0; j < captureCount; j++) captureQuantifiersArray[j] = C._ts_query_capture_quantifier_for_id(address, i2, j);
3193
+ captureQuantifiers[i2] = captureQuantifiersArray;
3194
+ }
3195
+ for (let i2 = 0; i2 < stringCount; i2++) {
3196
+ const valueAddress = C._ts_query_string_value_for_id(address, i2, TRANSFER_BUFFER);
3197
+ const nameLength = C.getValue(TRANSFER_BUFFER, "i32");
3198
+ stringValues[i2] = C.UTF8ToString(valueAddress, nameLength);
3199
+ }
3200
+ const setProperties = new Array(patternCount);
3201
+ const assertedProperties = new Array(patternCount);
3202
+ const refutedProperties = new Array(patternCount);
3203
+ const predicates = new Array(patternCount);
3204
+ const textPredicates = new Array(patternCount);
3205
+ for (let i2 = 0; i2 < patternCount; i2++) {
3206
+ const predicatesAddress = C._ts_query_predicates_for_pattern(address, i2, TRANSFER_BUFFER);
3207
+ const stepCount = C.getValue(TRANSFER_BUFFER, "i32");
3208
+ predicates[i2] = [];
3209
+ textPredicates[i2] = [];
3210
+ const steps = new Array();
3211
+ let stepAddress = predicatesAddress;
3212
+ for (let j = 0; j < stepCount; j++) {
3213
+ const stepType = C.getValue(stepAddress, "i32");
3214
+ stepAddress += SIZE_OF_INT;
3215
+ const stepValueId = C.getValue(stepAddress, "i32");
3216
+ stepAddress += SIZE_OF_INT;
3217
+ parsePattern(i2, stepType, stepValueId, captureNames, stringValues, steps, textPredicates, predicates, setProperties, assertedProperties, refutedProperties);
3218
+ }
3219
+ Object.freeze(textPredicates[i2]);
3220
+ Object.freeze(predicates[i2]);
3221
+ Object.freeze(setProperties[i2]);
3222
+ Object.freeze(assertedProperties[i2]);
3223
+ Object.freeze(refutedProperties[i2]);
3224
+ }
3225
+ C._free(sourceAddress);
3226
+ this[0] = address;
3227
+ this.captureNames = captureNames;
3228
+ this.captureQuantifiers = captureQuantifiers;
3229
+ this.textPredicates = textPredicates;
3230
+ this.predicates = predicates;
3231
+ this.setProperties = setProperties;
3232
+ this.assertedProperties = assertedProperties;
3233
+ this.refutedProperties = refutedProperties;
3234
+ this.exceededMatchLimit = false;
3235
+ }
3236
+ /** Delete the query, freeing its resources. */
3237
+ delete() {
3238
+ C._ts_query_delete(this[0]);
3239
+ this[0] = 0;
3240
+ }
3241
+ /**
3242
+ * Iterate over all of the matches in the order that they were found.
3243
+ *
3244
+ * Each match contains the index of the pattern that matched, and a list of
3245
+ * captures. Because multiple patterns can match the same set of nodes,
3246
+ * one match may contain captures that appear *before* some of the
3247
+ * captures from a previous match.
3248
+ *
3249
+ * @param {Node} node - The node to execute the query on.
3250
+ *
3251
+ * @param {QueryOptions} options - Options for query execution.
3252
+ */
3253
+ matches(node, options = {}) {
3254
+ const startPosition = options.startPosition ?? ZERO_POINT;
3255
+ const endPosition = options.endPosition ?? ZERO_POINT;
3256
+ const startIndex = options.startIndex ?? 0;
3257
+ const endIndex = options.endIndex ?? 0;
3258
+ const startContainingPosition = options.startContainingPosition ?? ZERO_POINT;
3259
+ const endContainingPosition = options.endContainingPosition ?? ZERO_POINT;
3260
+ const startContainingIndex = options.startContainingIndex ?? 0;
3261
+ const endContainingIndex = options.endContainingIndex ?? 0;
3262
+ const matchLimit = options.matchLimit ?? 4294967295;
3263
+ const maxStartDepth = options.maxStartDepth ?? 4294967295;
3264
+ const progressCallback = options.progressCallback;
3265
+ if (typeof matchLimit !== "number") throw new Error("Arguments must be numbers");
3266
+ this.matchLimit = matchLimit;
3267
+ if (endIndex !== 0 && startIndex > endIndex) throw new Error("`startIndex` cannot be greater than `endIndex`");
3268
+ if (endPosition !== ZERO_POINT && (startPosition.row > endPosition.row || startPosition.row === endPosition.row && startPosition.column > endPosition.column)) throw new Error("`startPosition` cannot be greater than `endPosition`");
3269
+ if (endContainingIndex !== 0 && startContainingIndex > endContainingIndex) throw new Error("`startContainingIndex` cannot be greater than `endContainingIndex`");
3270
+ if (endContainingPosition !== ZERO_POINT && (startContainingPosition.row > endContainingPosition.row || startContainingPosition.row === endContainingPosition.row && startContainingPosition.column > endContainingPosition.column)) throw new Error("`startContainingPosition` cannot be greater than `endContainingPosition`");
3271
+ if (progressCallback) C.currentQueryProgressCallback = progressCallback;
3272
+ marshalNode(node);
3273
+ C._ts_query_matches_wasm(this[0], node.tree[0], startPosition.row, startPosition.column, endPosition.row, endPosition.column, startIndex, endIndex, startContainingPosition.row, startContainingPosition.column, endContainingPosition.row, endContainingPosition.column, startContainingIndex, endContainingIndex, matchLimit, maxStartDepth);
3274
+ const rawCount = C.getValue(TRANSFER_BUFFER, "i32");
3275
+ const startAddress = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
3276
+ const didExceedMatchLimit = C.getValue(TRANSFER_BUFFER + 2 * SIZE_OF_INT, "i32");
3277
+ const result = new Array(rawCount);
3278
+ this.exceededMatchLimit = Boolean(didExceedMatchLimit);
3279
+ let filteredCount = 0;
3280
+ let address = startAddress;
3281
+ for (let i2 = 0; i2 < rawCount; i2++) {
3282
+ const patternIndex = C.getValue(address, "i32");
3283
+ address += SIZE_OF_INT;
3284
+ const captureCount = C.getValue(address, "i32");
3285
+ address += SIZE_OF_INT;
3286
+ const captures = new Array(captureCount);
3287
+ address = unmarshalCaptures(this, node.tree, address, patternIndex, captures);
3288
+ if (this.textPredicates[patternIndex].every((p) => p(captures))) {
3289
+ result[filteredCount] = {
3290
+ patternIndex,
3291
+ captures
3292
+ };
3293
+ const setProperties = this.setProperties[patternIndex];
3294
+ result[filteredCount].setProperties = setProperties;
3295
+ const assertedProperties = this.assertedProperties[patternIndex];
3296
+ result[filteredCount].assertedProperties = assertedProperties;
3297
+ const refutedProperties = this.refutedProperties[patternIndex];
3298
+ result[filteredCount].refutedProperties = refutedProperties;
3299
+ filteredCount++;
3300
+ }
3301
+ }
3302
+ result.length = filteredCount;
3303
+ C._free(startAddress);
3304
+ C.currentQueryProgressCallback = null;
3305
+ return result;
3306
+ }
3307
+ /**
3308
+ * Iterate over all of the individual captures in the order that they
3309
+ * appear.
3310
+ *
3311
+ * This is useful if you don't care about which pattern matched, and just
3312
+ * want a single, ordered sequence of captures.
3313
+ *
3314
+ * @param {Node} node - The node to execute the query on.
3315
+ *
3316
+ * @param {QueryOptions} options - Options for query execution.
3317
+ */
3318
+ captures(node, options = {}) {
3319
+ const startPosition = options.startPosition ?? ZERO_POINT;
3320
+ const endPosition = options.endPosition ?? ZERO_POINT;
3321
+ const startIndex = options.startIndex ?? 0;
3322
+ const endIndex = options.endIndex ?? 0;
3323
+ const startContainingPosition = options.startContainingPosition ?? ZERO_POINT;
3324
+ const endContainingPosition = options.endContainingPosition ?? ZERO_POINT;
3325
+ const startContainingIndex = options.startContainingIndex ?? 0;
3326
+ const endContainingIndex = options.endContainingIndex ?? 0;
3327
+ const matchLimit = options.matchLimit ?? 4294967295;
3328
+ const maxStartDepth = options.maxStartDepth ?? 4294967295;
3329
+ const progressCallback = options.progressCallback;
3330
+ if (typeof matchLimit !== "number") throw new Error("Arguments must be numbers");
3331
+ this.matchLimit = matchLimit;
3332
+ if (endIndex !== 0 && startIndex > endIndex) throw new Error("`startIndex` cannot be greater than `endIndex`");
3333
+ if (endPosition !== ZERO_POINT && (startPosition.row > endPosition.row || startPosition.row === endPosition.row && startPosition.column > endPosition.column)) throw new Error("`startPosition` cannot be greater than `endPosition`");
3334
+ if (endContainingIndex !== 0 && startContainingIndex > endContainingIndex) throw new Error("`startContainingIndex` cannot be greater than `endContainingIndex`");
3335
+ if (endContainingPosition !== ZERO_POINT && (startContainingPosition.row > endContainingPosition.row || startContainingPosition.row === endContainingPosition.row && startContainingPosition.column > endContainingPosition.column)) throw new Error("`startContainingPosition` cannot be greater than `endContainingPosition`");
3336
+ if (progressCallback) C.currentQueryProgressCallback = progressCallback;
3337
+ marshalNode(node);
3338
+ C._ts_query_captures_wasm(this[0], node.tree[0], startPosition.row, startPosition.column, endPosition.row, endPosition.column, startIndex, endIndex, startContainingPosition.row, startContainingPosition.column, endContainingPosition.row, endContainingPosition.column, startContainingIndex, endContainingIndex, matchLimit, maxStartDepth);
3339
+ const count = C.getValue(TRANSFER_BUFFER, "i32");
3340
+ const startAddress = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
3341
+ const didExceedMatchLimit = C.getValue(TRANSFER_BUFFER + 2 * SIZE_OF_INT, "i32");
3342
+ const result = new Array();
3343
+ this.exceededMatchLimit = Boolean(didExceedMatchLimit);
3344
+ const captures = new Array();
3345
+ let address = startAddress;
3346
+ for (let i2 = 0; i2 < count; i2++) {
3347
+ const patternIndex = C.getValue(address, "i32");
3348
+ address += SIZE_OF_INT;
3349
+ const captureCount = C.getValue(address, "i32");
3350
+ address += SIZE_OF_INT;
3351
+ const captureIndex = C.getValue(address, "i32");
3352
+ address += SIZE_OF_INT;
3353
+ captures.length = captureCount;
3354
+ address = unmarshalCaptures(this, node.tree, address, patternIndex, captures);
3355
+ if (this.textPredicates[patternIndex].every((p) => p(captures))) {
3356
+ const capture = captures[captureIndex];
3357
+ capture.setProperties = this.setProperties[patternIndex];
3358
+ capture.assertedProperties = this.assertedProperties[patternIndex];
3359
+ capture.refutedProperties = this.refutedProperties[patternIndex];
3360
+ result.push(capture);
3361
+ }
3362
+ }
3363
+ C._free(startAddress);
3364
+ C.currentQueryProgressCallback = null;
3365
+ return result;
3366
+ }
3367
+ /** Get the predicates for a given pattern. */
3368
+ predicatesForPattern(patternIndex) {
3369
+ return this.predicates[patternIndex];
3370
+ }
3371
+ /**
3372
+ * Disable a certain capture within a query.
3373
+ *
3374
+ * This prevents the capture from being returned in matches, and also
3375
+ * avoids any resource usage associated with recording the capture.
3376
+ */
3377
+ disableCapture(captureName) {
3378
+ const captureNameLength = C.lengthBytesUTF8(captureName);
3379
+ const captureNameAddress = C._malloc(captureNameLength + 1);
3380
+ C.stringToUTF8(captureName, captureNameAddress, captureNameLength + 1);
3381
+ C._ts_query_disable_capture(this[0], captureNameAddress, captureNameLength);
3382
+ C._free(captureNameAddress);
3383
+ }
3384
+ /**
3385
+ * Disable a certain pattern within a query.
3386
+ *
3387
+ * This prevents the pattern from matching, and also avoids any resource
3388
+ * usage associated with the pattern. This throws an error if the pattern
3389
+ * index is out of bounds.
3390
+ */
3391
+ disablePattern(patternIndex) {
3392
+ if (patternIndex >= this.predicates.length) throw new Error(`Pattern index is ${patternIndex} but the pattern count is ${this.predicates.length}`);
3393
+ C._ts_query_disable_pattern(this[0], patternIndex);
3394
+ }
3395
+ /**
3396
+ * Check if, on its last execution, this cursor exceeded its maximum number
3397
+ * of in-progress matches.
3398
+ */
3399
+ didExceedMatchLimit() {
3400
+ return this.exceededMatchLimit;
3401
+ }
3402
+ /** Get the byte offset where the given pattern starts in the query's source. */
3403
+ startIndexForPattern(patternIndex) {
3404
+ if (patternIndex >= this.predicates.length) throw new Error(`Pattern index is ${patternIndex} but the pattern count is ${this.predicates.length}`);
3405
+ return C._ts_query_start_byte_for_pattern(this[0], patternIndex);
3406
+ }
3407
+ /** Get the byte offset where the given pattern ends in the query's source. */
3408
+ endIndexForPattern(patternIndex) {
3409
+ if (patternIndex >= this.predicates.length) throw new Error(`Pattern index is ${patternIndex} but the pattern count is ${this.predicates.length}`);
3410
+ return C._ts_query_end_byte_for_pattern(this[0], patternIndex);
3411
+ }
3412
+ /** Get the number of patterns in the query. */
3413
+ patternCount() {
3414
+ return C._ts_query_pattern_count(this[0]);
3415
+ }
3416
+ /** Get the index for a given capture name. */
3417
+ captureIndexForName(captureName) {
3418
+ return this.captureNames.indexOf(captureName);
3419
+ }
3420
+ /** Check if a given pattern within a query has a single root node. */
3421
+ isPatternRooted(patternIndex) {
3422
+ return C._ts_query_is_pattern_rooted(this[0], patternIndex) === 1;
3423
+ }
3424
+ /** Check if a given pattern within a query has a single root node. */
3425
+ isPatternNonLocal(patternIndex) {
3426
+ return C._ts_query_is_pattern_non_local(this[0], patternIndex) === 1;
3427
+ }
3428
+ /**
3429
+ * Check if a given step in a query is 'definite'.
3430
+ *
3431
+ * A query step is 'definite' if its parent pattern will be guaranteed to
3432
+ * match successfully once it reaches the step.
3433
+ */
3434
+ isPatternGuaranteedAtStep(byteIndex) {
3435
+ return C._ts_query_is_pattern_guaranteed_at_step(this[0], byteIndex) === 1;
3436
+ }
3437
+ };
3438
+
3439
+ //#endregion
3440
+ export { Parser as n, Language as t };