@mininglamp-oss/octo-runtime 0.0.0-stage → 1.0.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 (1725) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +35 -2
  3. package/apps/cli/README.md +244 -0
  4. package/apps/cli/dist/build-info.json +4 -0
  5. package/apps/cli/dist/daemon-output.d.ts +1 -0
  6. package/apps/cli/dist/daemon-output.js +49 -0
  7. package/apps/cli/dist/default_adapters.json +65 -0
  8. package/apps/cli/dist/extras.d.ts +6 -0
  9. package/apps/cli/dist/extras.js +56 -0
  10. package/apps/cli/dist/help.d.ts +16 -0
  11. package/apps/cli/dist/help.js +167 -0
  12. package/apps/cli/dist/index.d.ts +2 -0
  13. package/apps/cli/dist/index.js +9 -0
  14. package/apps/cli/dist/main.d.ts +19 -0
  15. package/apps/cli/dist/main.js +478 -0
  16. package/apps/cli/dist/playboard.d.ts +9 -0
  17. package/apps/cli/dist/playboard.js +118 -0
  18. package/apps/cli/dist/service-control.d.ts +16 -0
  19. package/apps/cli/dist/service-control.js +49 -0
  20. package/apps/cli/dist/state.d.ts +68 -0
  21. package/apps/cli/dist/state.js +284 -0
  22. package/apps/cli/dist/temporary-daemon.d.ts +11 -0
  23. package/apps/cli/dist/temporary-daemon.js +109 -0
  24. package/apps/daemon/dist/index.d.ts +2 -0
  25. package/apps/daemon/dist/index.js +134 -0
  26. package/apps/daemon/dist/launcher.d.ts +2 -0
  27. package/apps/daemon/dist/launcher.js +52 -0
  28. package/apps/daemon/dist/openclaw.d.ts +15 -0
  29. package/apps/daemon/dist/openclaw.js +234 -0
  30. package/apps/daemon/dist/runtime-options.d.ts +9 -0
  31. package/apps/daemon/dist/runtime-options.js +58 -0
  32. package/apps/daemon/dist/server.d.ts +1 -0
  33. package/apps/daemon/dist/server.js +1 -0
  34. package/dist/public/extra.d.ts +4 -0
  35. package/dist/public/extra.js +2 -0
  36. package/dist/public/protocol.d.ts +3 -0
  37. package/dist/public/protocol.js +1 -0
  38. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.d.ts +120 -0
  39. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +380 -0
  40. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +15 -0
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +55 -0
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +494 -0
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +16 -0
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +69 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +433 -0
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +16 -0
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +129 -0
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +796 -0
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +15 -0
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +53 -0
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +236 -0
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +16 -0
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +97 -0
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +2334 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.d.ts +3 -0
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.js +44 -0
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +64 -0
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +141 -0
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.d.ts +8 -0
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.js +36 -0
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +15 -0
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +11 -0
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +9 -0
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +14 -0
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/execution-preparation.d.ts +33 -0
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/execution-preparation.js +93 -0
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/experience.d.ts +6 -0
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/experience.js +140 -0
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/host-run-service.d.ts +44 -0
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/host-run-service.js +293 -0
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/index.d.ts +70 -0
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/index.js +913 -0
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/model-input.d.ts +5 -0
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/model-input.js +52 -0
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/process.d.ts +31 -0
  76. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/process.js +86 -0
  77. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/rpc.d.ts +59 -0
  78. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/rpc.js +578 -0
  79. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/runner.d.ts +2 -0
  80. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/runner.js +98 -0
  81. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/runtime-configuration.d.ts +2 -0
  82. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/runtime-configuration.js +93 -0
  83. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/serve.d.ts +10 -0
  84. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/serve.js +48 -0
  85. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/socket-server.d.ts +21 -0
  86. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/socket-server.js +255 -0
  87. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/watchdog.d.ts +49 -0
  88. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/dist/watchdog.js +366 -0
  89. package/node_modules/@mininglamp-oss/octo-runtime-adapter-host/package.json +37 -0
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +11 -0
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +8 -0
  92. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +14 -0
  93. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +23 -0
  94. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +21 -0
  95. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +14 -0
  96. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/gateway.d.ts +45 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/gateway.js +303 -0
  98. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +81 -0
  99. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +975 -0
  100. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/local-gateway.d.ts +25 -0
  101. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/local-gateway.js +172 -0
  102. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/parser.d.ts +87 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/parser.js +355 -0
  104. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +16 -0
  105. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +88 -0
  106. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +336 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +16 -0
  108. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +23 -0
  109. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +20 -0
  110. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +14 -0
  111. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +23 -0
  112. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +20 -0
  113. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +14 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/acp-tool.d.ts +15 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/acp-tool.js +63 -0
  116. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/acp-turn.d.ts +13 -0
  117. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/acp-turn.js +149 -0
  118. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +13 -0
  119. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.js +1 -0
  120. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.d.ts +5 -0
  121. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/actmode.js +8 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.d.ts +25 -0
  123. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +353 -0
  124. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/bounded-lines.d.ts +9 -0
  125. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/bounded-lines.js +79 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.d.ts +5 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +15 -0
  128. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/hourly-log.d.ts +21 -0
  129. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/hourly-log.js +196 -0
  130. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +122 -0
  131. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +289 -0
  132. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/line-limit.d.ts +3 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/line-limit.js +27 -0
  134. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.d.ts +6 -0
  135. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +66 -0
  136. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/native.d.ts +26 -0
  137. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/native.js +181 -0
  138. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-cleanup.d.ts +11 -0
  139. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-cleanup.js +72 -0
  140. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.d.ts +1 -0
  141. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +29 -0
  142. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.d.ts +12 -0
  143. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.js +46 -0
  144. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.d.ts +1 -0
  145. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +29 -0
  146. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +15 -0
  147. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +136 -0
  148. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +17 -0
  149. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.d.ts +63 -0
  150. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.js +822 -0
  151. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +36 -0
  152. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +154 -0
  153. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +15 -0
  154. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +4 -0
  155. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/daemon-output.d.ts +1 -0
  156. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/daemon-output.js +49 -0
  157. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/default_adapters.json +65 -0
  158. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +6 -0
  159. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +56 -0
  160. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +16 -0
  161. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +167 -0
  162. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.d.ts +2 -0
  163. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +9 -0
  164. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +19 -0
  165. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +478 -0
  166. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +9 -0
  167. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +118 -0
  168. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.d.ts +16 -0
  169. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +49 -0
  170. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.d.ts +68 -0
  171. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +284 -0
  172. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/temporary-daemon.d.ts +11 -0
  173. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/temporary-daemon.js +109 -0
  174. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +19 -0
  175. package/node_modules/@mininglamp-oss/octo-runtime-core/dist/context.d.ts +7 -0
  176. package/node_modules/@mininglamp-oss/octo-runtime-core/dist/context.js +84 -0
  177. package/node_modules/@mininglamp-oss/octo-runtime-core/dist/index.d.ts +2 -0
  178. package/node_modules/@mininglamp-oss/octo-runtime-core/dist/index.js +2 -0
  179. package/node_modules/@mininglamp-oss/octo-runtime-core/dist/invoke-input.d.ts +7 -0
  180. package/node_modules/@mininglamp-oss/octo-runtime-core/dist/invoke-input.js +140 -0
  181. package/node_modules/@mininglamp-oss/octo-runtime-core/package.json +14 -0
  182. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/common.d.ts +31 -0
  183. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/common.js +196 -0
  184. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/errors.d.ts +27 -0
  185. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/errors.js +18 -0
  186. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/index.d.ts +17 -0
  187. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/index.js +42 -0
  188. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/launchd.d.ts +37 -0
  189. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/launchd.js +312 -0
  190. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/runner.d.ts +11 -0
  191. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/runner.js +71 -0
  192. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/systemd.d.ts +37 -0
  193. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/systemd.js +278 -0
  194. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/types.d.ts +218 -0
  195. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/types.js +8 -0
  196. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/windows-task.d.ts +44 -0
  197. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/windows-task.js +414 -0
  198. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +17 -0
  199. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/context-loader.d.ts +30 -0
  200. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/context-loader.js +158 -0
  201. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/extra-config.d.ts +13 -0
  202. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/extra-config.js +95 -0
  203. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/extras.d.ts +64 -0
  204. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/extras.js +364 -0
  205. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/index.d.ts +9 -0
  206. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/index.js +9 -0
  207. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/invocation-manifest.d.ts +26 -0
  208. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/invocation-manifest.js +176 -0
  209. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/modules.d.ts +55 -0
  210. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/modules.js +138 -0
  211. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/adapter-host.d.ts +1 -0
  212. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/adapter-host.js +33 -0
  213. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/daemon-runtime.d.ts +37 -0
  214. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/daemon-runtime.js +623 -0
  215. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/errors.d.ts +8 -0
  216. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/errors.js +17 -0
  217. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/home.d.ts +49 -0
  218. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/home.js +266 -0
  219. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/identity.d.ts +11 -0
  220. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/identity.js +28 -0
  221. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/index.d.ts +8 -0
  222. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/index.js +9 -0
  223. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/local-extras.d.ts +12 -0
  224. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/local-extras.js +133 -0
  225. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/run-stream.d.ts +14 -0
  226. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/run-stream.js +206 -0
  227. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/runner.d.ts +2 -0
  228. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/runner.js +103 -0
  229. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/runtime-contract.d.ts +36 -0
  230. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/runtime-contract.js +57 -0
  231. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/supervisor.d.ts +23 -0
  232. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/supervisor.js +245 -0
  233. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/types.d.ts +116 -0
  234. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/types.js +1 -0
  235. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/version.d.ts +1 -0
  236. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime/version.js +1 -0
  237. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime-endpoint.d.ts +2 -0
  238. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/runtime-endpoint.js +9 -0
  239. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/server.d.ts +67 -0
  240. package/node_modules/@mininglamp-oss/octo-runtime-daemon/dist/server.js +808 -0
  241. package/node_modules/@mininglamp-oss/octo-runtime-daemon/package.json +52 -0
  242. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/index.d.ts +2 -0
  243. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/index.js +134 -0
  244. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/launcher.d.ts +2 -0
  245. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/launcher.js +52 -0
  246. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/openclaw.d.ts +15 -0
  247. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/openclaw.js +234 -0
  248. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/runtime-options.d.ts +9 -0
  249. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/runtime-options.js +58 -0
  250. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/server.d.ts +1 -0
  251. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/dist/server.js +1 -0
  252. package/node_modules/@mininglamp-oss/octo-runtime-daemon-app/package.json +33 -0
  253. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +395 -0
  254. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +11 -0
  255. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +852 -0
  256. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +36 -0
  257. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +93 -0
  258. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +129 -0
  259. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.js +1 -0
  260. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/daemon-module.d.ts +8 -0
  261. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/daemon-module.js +64 -0
  262. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +15 -0
  263. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +85 -0
  264. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +14 -0
  265. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +88 -0
  266. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.d.ts +19 -0
  267. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.js +86 -0
  268. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +12 -0
  269. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +133 -0
  270. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +34 -0
  271. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +269 -0
  272. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +3 -0
  273. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +25 -0
  274. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +3 -0
  275. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +73 -0
  276. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +17 -0
  277. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +13 -0
  278. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +9 -0
  279. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +133 -0
  280. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +12 -0
  281. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +94 -0
  282. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +23 -0
  283. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.js +1 -0
  284. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.d.ts +5 -0
  285. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.js +35 -0
  286. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +61 -0
  287. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +358 -0
  288. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +16 -0
  289. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +83 -0
  290. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +128 -0
  291. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +225 -0
  292. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +57 -0
  293. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +184 -0
  294. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +105 -0
  295. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +130 -0
  296. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +60 -0
  297. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +114 -0
  298. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +51 -0
  299. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +79 -0
  300. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +25 -0
  301. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +119 -0
  302. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +13 -0
  303. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +13 -0
  304. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +89 -0
  305. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +173 -0
  306. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +84 -0
  307. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +109 -0
  308. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +87 -0
  309. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +45 -0
  310. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +5 -0
  311. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +22 -0
  312. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +20 -0
  313. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +75 -0
  314. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +21 -0
  315. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +61 -0
  316. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +7 -0
  317. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +40 -0
  318. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +43 -0
  319. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +407 -0
  320. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +10 -0
  321. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +52 -0
  322. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +19 -0
  323. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +132 -0
  324. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +16 -0
  325. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +203 -0
  326. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +6 -0
  327. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +162 -0
  328. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +4 -0
  329. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +112 -0
  330. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +12 -0
  331. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +63 -0
  332. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +6 -0
  333. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +117 -0
  334. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +13 -0
  335. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +50 -0
  336. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +34 -0
  337. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +354 -0
  338. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +6 -0
  339. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +63 -0
  340. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +30 -0
  341. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +431 -0
  342. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +33 -0
  343. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +276 -0
  344. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +11 -0
  345. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +603 -0
  346. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +33 -0
  347. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +93 -0
  348. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +89 -0
  349. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +1 -0
  350. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/daemon-module.d.ts +8 -0
  351. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/daemon-module.js +64 -0
  352. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +15 -0
  353. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +68 -0
  354. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +12 -0
  355. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +95 -0
  356. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +3 -0
  357. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +72 -0
  358. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +10 -0
  359. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +6 -0
  360. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +6 -0
  361. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +109 -0
  362. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +12 -0
  363. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +73 -0
  364. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +23 -0
  365. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +1 -0
  366. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +45 -0
  367. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +258 -0
  368. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +21 -0
  369. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +125 -0
  370. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +53 -0
  371. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +219 -0
  372. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +10 -0
  373. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +52 -0
  374. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +31 -0
  375. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +134 -0
  376. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +3 -0
  377. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +425 -0
  378. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +22 -0
  379. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +80 -0
  380. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-B6Yp4xkI.js +76 -0
  381. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +1 -0
  382. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +3 -0
  383. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +24 -0
  384. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.d.ts +4 -0
  385. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.js +36 -0
  386. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +6 -0
  387. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +5 -0
  388. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +11 -0
  389. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +33 -0
  390. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.d.ts +5 -0
  391. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +58 -0
  392. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-hash.d.ts +2 -0
  393. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-hash.js +5 -0
  394. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +27 -0
  395. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +556 -0
  396. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +3 -0
  397. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +80 -0
  398. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.d.ts +4 -0
  399. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.js +166 -0
  400. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +69 -0
  401. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +436 -0
  402. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +2774 -0
  403. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +6 -0
  404. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +117 -0
  405. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +682 -0
  406. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +120 -0
  407. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +164 -0
  408. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-size.d.ts +3 -0
  409. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-size.js +10 -0
  410. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/json-size.d.ts +2 -0
  411. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/json-size.js +91 -0
  412. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +3 -0
  413. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +9 -0
  414. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +15 -0
  415. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +166 -0
  416. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/notification.d.ts +2 -0
  417. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/notification.js +137 -0
  418. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +20 -0
  419. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +241 -0
  420. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.d.ts +3 -0
  421. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.js +68 -0
  422. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +16 -0
  423. package/node_modules/@types/debug/LICENSE +21 -0
  424. package/node_modules/@types/debug/README.md +69 -0
  425. package/node_modules/@types/debug/index.d.ts +50 -0
  426. package/node_modules/@types/debug/package.json +58 -0
  427. package/node_modules/@types/mdast/LICENSE +21 -0
  428. package/node_modules/@types/mdast/README.md +15 -0
  429. package/node_modules/@types/mdast/index.d.ts +1123 -0
  430. package/node_modules/@types/mdast/package.json +47 -0
  431. package/node_modules/@types/ms/LICENSE +21 -0
  432. package/node_modules/@types/ms/README.md +82 -0
  433. package/node_modules/@types/ms/index.d.ts +63 -0
  434. package/node_modules/@types/ms/package.json +26 -0
  435. package/node_modules/@types/unist/LICENSE +21 -0
  436. package/node_modules/@types/unist/README.md +15 -0
  437. package/node_modules/@types/unist/index.d.ts +119 -0
  438. package/node_modules/@types/unist/package.json +60 -0
  439. package/node_modules/ajv/.runkit_example.js +23 -0
  440. package/node_modules/ajv/LICENSE +22 -0
  441. package/node_modules/ajv/README.md +207 -0
  442. package/node_modules/ajv/dist/2019.d.ts +19 -0
  443. package/node_modules/ajv/dist/2019.js +61 -0
  444. package/node_modules/ajv/dist/2019.js.map +1 -0
  445. package/node_modules/ajv/dist/2020.d.ts +19 -0
  446. package/node_modules/ajv/dist/2020.js +55 -0
  447. package/node_modules/ajv/dist/2020.js.map +1 -0
  448. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  449. package/node_modules/ajv/dist/ajv.js +50 -0
  450. package/node_modules/ajv/dist/ajv.js.map +1 -0
  451. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  452. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  453. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  454. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  455. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  456. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  457. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  458. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  459. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  460. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  461. package/node_modules/ajv/dist/compile/errors.js +123 -0
  462. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  463. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  464. package/node_modules/ajv/dist/compile/index.js +242 -0
  465. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  466. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  467. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  468. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  469. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  470. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  471. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  472. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  473. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  474. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  475. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  476. package/node_modules/ajv/dist/compile/names.js +28 -0
  477. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  478. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  479. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  480. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  481. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  482. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  483. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  484. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  485. package/node_modules/ajv/dist/compile/rules.js +26 -0
  486. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  487. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  488. package/node_modules/ajv/dist/compile/util.js +178 -0
  489. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  490. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  491. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  492. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  493. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  494. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  495. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  496. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  497. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  498. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  499. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  500. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  501. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  502. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  503. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  504. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  505. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  506. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  507. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  508. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  509. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  510. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  511. package/node_modules/ajv/dist/core.d.ts +174 -0
  512. package/node_modules/ajv/dist/core.js +618 -0
  513. package/node_modules/ajv/dist/core.js.map +1 -0
  514. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  515. package/node_modules/ajv/dist/jtd.js +72 -0
  516. package/node_modules/ajv/dist/jtd.js.map +1 -0
  517. package/node_modules/ajv/dist/refs/data.json +13 -0
  518. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  519. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  520. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  521. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  522. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  523. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  524. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  525. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  526. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  527. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  528. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  529. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  530. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  531. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  532. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  533. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  534. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  535. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  536. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  537. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  538. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  539. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  540. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  541. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  542. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  543. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  544. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  545. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  546. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  547. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  548. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  549. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  550. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  551. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  552. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  553. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  554. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  555. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  556. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  557. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  558. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  559. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  560. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  561. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  562. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  563. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  564. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  565. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  566. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  567. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  568. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  569. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  570. package/node_modules/ajv/dist/standalone/index.js +90 -0
  571. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  572. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  573. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  574. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  575. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  576. package/node_modules/ajv/dist/types/index.js +3 -0
  577. package/node_modules/ajv/dist/types/index.js.map +1 -0
  578. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  579. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  580. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  581. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  582. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  583. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  584. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  585. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  586. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  587. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  588. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  589. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  590. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  591. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  592. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  593. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  594. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  595. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  596. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  597. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  598. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  599. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  600. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  601. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  602. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  603. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  604. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  605. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  606. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  607. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  608. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  609. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  610. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  611. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  612. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  613. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  614. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  615. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  616. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  617. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  618. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  619. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  620. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  621. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  622. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  623. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  624. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  625. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  626. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  627. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  628. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  629. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  630. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  631. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  632. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  633. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  634. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  635. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  636. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  637. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  638. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  639. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  640. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  641. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  642. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  643. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  644. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  645. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  646. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  647. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  648. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  649. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  650. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  651. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  652. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  653. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  654. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  655. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  656. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  657. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  658. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  659. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  660. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  661. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  662. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  663. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  664. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  665. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  666. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  667. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  668. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  669. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  670. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  671. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  672. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  673. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  674. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  675. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  676. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  677. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  678. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  679. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  680. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  681. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  682. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  683. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  684. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  685. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  686. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  687. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  688. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  689. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  690. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  691. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  692. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  693. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  694. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  695. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  696. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  697. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  698. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  699. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  700. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  701. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  702. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  703. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  704. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  705. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  706. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  707. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  708. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  709. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  710. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  711. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  712. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  713. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  714. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  715. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  716. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  717. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  718. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  719. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  720. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  721. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  722. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  723. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  724. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  725. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  726. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  727. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  728. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  729. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  730. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  731. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  732. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  733. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  734. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  735. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  736. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  737. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  738. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  739. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  740. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  741. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  742. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  743. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  744. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  745. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  746. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  747. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  748. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  749. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  750. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  751. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  752. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  753. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  754. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  755. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  756. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  757. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  758. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  759. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  760. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  761. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  762. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  763. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  764. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  765. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  766. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  767. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  768. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  769. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  770. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  771. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  772. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  773. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  774. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  775. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  776. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  777. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  778. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  779. package/node_modules/ajv/lib/2019.ts +81 -0
  780. package/node_modules/ajv/lib/2020.ts +75 -0
  781. package/node_modules/ajv/lib/ajv.ts +70 -0
  782. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  783. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  784. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  785. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  786. package/node_modules/ajv/lib/compile/index.ts +324 -0
  787. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  788. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  789. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  790. package/node_modules/ajv/lib/compile/names.ts +27 -0
  791. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  792. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  793. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  794. package/node_modules/ajv/lib/compile/util.ts +213 -0
  795. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  796. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  797. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  798. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  799. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  800. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  801. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  802. package/node_modules/ajv/lib/core.ts +892 -0
  803. package/node_modules/ajv/lib/jtd.ts +132 -0
  804. package/node_modules/ajv/lib/refs/data.json +13 -0
  805. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  806. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  807. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  808. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  809. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  810. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  811. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  812. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  813. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  814. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  815. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  816. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  817. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  818. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  819. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  820. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  821. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  822. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  823. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  824. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  825. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  826. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  827. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  828. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  829. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  830. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  831. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  832. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  833. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  834. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  835. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  836. package/node_modules/ajv/lib/types/index.ts +244 -0
  837. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  838. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  839. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  840. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  841. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  842. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  843. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  844. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  845. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  846. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  847. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  848. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  849. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  850. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  851. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  852. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  853. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  854. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  855. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  856. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  857. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  858. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  859. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  860. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  861. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  862. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  863. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  864. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  865. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  866. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  867. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  868. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  869. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  870. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  871. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  872. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  873. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  874. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  875. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  876. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  877. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  878. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  879. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  880. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  881. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  882. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  883. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  884. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  885. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  886. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  887. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  888. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  889. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  890. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  891. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  892. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  893. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  894. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  895. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  896. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  897. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  898. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  899. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  900. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  901. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  902. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  903. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  904. package/node_modules/ajv/package.json +126 -0
  905. package/node_modules/character-entities/index.d.ts +6 -0
  906. package/node_modules/character-entities/index.js +2132 -0
  907. package/node_modules/character-entities/license +22 -0
  908. package/node_modules/character-entities/package.json +78 -0
  909. package/node_modules/character-entities/readme.md +152 -0
  910. package/node_modules/debug/LICENSE +20 -0
  911. package/node_modules/debug/README.md +481 -0
  912. package/node_modules/debug/package.json +64 -0
  913. package/node_modules/debug/src/browser.js +272 -0
  914. package/node_modules/debug/src/common.js +292 -0
  915. package/node_modules/debug/src/index.js +10 -0
  916. package/node_modules/debug/src/node.js +263 -0
  917. package/node_modules/decode-named-character-reference/index.d.ts +13 -0
  918. package/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
  919. package/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
  920. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
  921. package/node_modules/decode-named-character-reference/index.dom.js +32 -0
  922. package/node_modules/decode-named-character-reference/index.js +19 -0
  923. package/node_modules/decode-named-character-reference/license +22 -0
  924. package/node_modules/decode-named-character-reference/package.json +90 -0
  925. package/node_modules/decode-named-character-reference/readme.md +136 -0
  926. package/node_modules/dequal/dist/index.js +86 -0
  927. package/node_modules/dequal/dist/index.min.js +1 -0
  928. package/node_modules/dequal/dist/index.mjs +84 -0
  929. package/node_modules/dequal/index.d.ts +1 -0
  930. package/node_modules/dequal/license +21 -0
  931. package/node_modules/dequal/lite/index.d.ts +1 -0
  932. package/node_modules/dequal/lite/index.js +31 -0
  933. package/node_modules/dequal/lite/index.min.js +1 -0
  934. package/node_modules/dequal/lite/index.mjs +29 -0
  935. package/node_modules/dequal/package.json +57 -0
  936. package/node_modules/dequal/readme.md +112 -0
  937. package/node_modules/devlop/lib/default.js +9 -0
  938. package/node_modules/devlop/lib/development.d.ts +84 -0
  939. package/node_modules/devlop/lib/development.js +238 -0
  940. package/node_modules/devlop/license +22 -0
  941. package/node_modules/devlop/package.json +80 -0
  942. package/node_modules/devlop/readme.md +360 -0
  943. package/node_modules/fast-deep-equal/LICENSE +21 -0
  944. package/node_modules/fast-deep-equal/README.md +96 -0
  945. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  946. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  947. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  948. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  949. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  950. package/node_modules/fast-deep-equal/index.js +46 -0
  951. package/node_modules/fast-deep-equal/package.json +61 -0
  952. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  953. package/node_modules/fast-deep-equal/react.js +53 -0
  954. package/node_modules/fast-uri/.gitattributes +2 -0
  955. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  956. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  957. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  958. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  959. package/node_modules/fast-uri/LICENSE +30 -0
  960. package/node_modules/fast-uri/README.md +152 -0
  961. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  962. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  963. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  964. package/node_modules/fast-uri/benchmark/package.json +17 -0
  965. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  966. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  967. package/node_modules/fast-uri/eslint.config.js +6 -0
  968. package/node_modules/fast-uri/index.js +631 -0
  969. package/node_modules/fast-uri/lib/schemes.js +272 -0
  970. package/node_modules/fast-uri/lib/utils.js +747 -0
  971. package/node_modules/fast-uri/package.json +68 -0
  972. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  973. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  974. package/node_modules/fast-uri/test/equal.test.js +145 -0
  975. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
  976. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  977. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  978. package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  979. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  980. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  981. package/node_modules/fast-uri/test/parse.test.js +327 -0
  982. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  983. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
  984. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  985. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  986. package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
  987. package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  988. package/node_modules/fast-uri/test/security.test.js +431 -0
  989. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  990. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  991. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  992. package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  993. package/node_modules/fast-uri/test/util.test.js +38 -0
  994. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  995. package/node_modules/fast-uri/tsconfig.json +9 -0
  996. package/node_modules/fast-uri/types/index.d.ts +60 -0
  997. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  998. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  999. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  1000. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1001. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1002. package/node_modules/json-schema-traverse/LICENSE +21 -0
  1003. package/node_modules/json-schema-traverse/README.md +95 -0
  1004. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  1005. package/node_modules/json-schema-traverse/index.js +93 -0
  1006. package/node_modules/json-schema-traverse/package.json +43 -0
  1007. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1008. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1009. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1010. package/node_modules/json5/LICENSE.md +23 -0
  1011. package/node_modules/json5/README.md +282 -0
  1012. package/node_modules/json5/dist/index.js +1737 -0
  1013. package/node_modules/json5/dist/index.min.js +1 -0
  1014. package/node_modules/json5/dist/index.min.mjs +1 -0
  1015. package/node_modules/json5/dist/index.mjs +1426 -0
  1016. package/node_modules/json5/lib/cli.js +152 -0
  1017. package/node_modules/json5/lib/index.d.ts +4 -0
  1018. package/node_modules/json5/lib/index.js +9 -0
  1019. package/node_modules/json5/lib/parse.d.ts +15 -0
  1020. package/node_modules/json5/lib/parse.js +1114 -0
  1021. package/node_modules/json5/lib/register.js +13 -0
  1022. package/node_modules/json5/lib/require.js +4 -0
  1023. package/node_modules/json5/lib/stringify.d.ts +89 -0
  1024. package/node_modules/json5/lib/stringify.js +261 -0
  1025. package/node_modules/json5/lib/unicode.d.ts +3 -0
  1026. package/node_modules/json5/lib/unicode.js +4 -0
  1027. package/node_modules/json5/lib/util.d.ts +5 -0
  1028. package/node_modules/json5/lib/util.js +35 -0
  1029. package/node_modules/json5/package.json +72 -0
  1030. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
  1031. package/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
  1032. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
  1033. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
  1034. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +1455 -0
  1035. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +321 -0
  1036. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
  1037. package/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
  1038. package/node_modules/mdast-util-from-markdown/index.js +2 -0
  1039. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
  1040. package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
  1041. package/node_modules/mdast-util-from-markdown/lib/index.js +1270 -0
  1042. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +321 -0
  1043. package/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
  1044. package/node_modules/mdast-util-from-markdown/license +22 -0
  1045. package/node_modules/mdast-util-from-markdown/package.json +98 -0
  1046. package/node_modules/mdast-util-from-markdown/readme.md +549 -0
  1047. package/node_modules/mdast-util-to-string/index.d.ts +2 -0
  1048. package/node_modules/mdast-util-to-string/index.js +5 -0
  1049. package/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
  1050. package/node_modules/mdast-util-to-string/lib/index.js +108 -0
  1051. package/node_modules/mdast-util-to-string/license +22 -0
  1052. package/node_modules/mdast-util-to-string/package.json +78 -0
  1053. package/node_modules/mdast-util-to-string/readme.md +218 -0
  1054. package/node_modules/micromark/dev/index.d.ts +82 -0
  1055. package/node_modules/micromark/dev/index.d.ts.map +1 -0
  1056. package/node_modules/micromark/dev/index.js +68 -0
  1057. package/node_modules/micromark/dev/lib/compile.d.ts +16 -0
  1058. package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
  1059. package/node_modules/micromark/dev/lib/compile.js +1162 -0
  1060. package/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
  1061. package/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
  1062. package/node_modules/micromark/dev/lib/constructs.js +101 -0
  1063. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
  1064. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
  1065. package/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
  1066. package/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
  1067. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
  1068. package/node_modules/micromark/dev/lib/initialize/content.js +99 -0
  1069. package/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
  1070. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
  1071. package/node_modules/micromark/dev/lib/initialize/document.js +449 -0
  1072. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
  1073. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
  1074. package/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
  1075. package/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
  1076. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
  1077. package/node_modules/micromark/dev/lib/initialize/text.js +248 -0
  1078. package/node_modules/micromark/dev/lib/parse.d.ts +10 -0
  1079. package/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
  1080. package/node_modules/micromark/dev/lib/parse.js +58 -0
  1081. package/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
  1082. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
  1083. package/node_modules/micromark/dev/lib/postprocess.js +19 -0
  1084. package/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
  1085. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
  1086. package/node_modules/micromark/dev/lib/preprocess.js +139 -0
  1087. package/node_modules/micromark/dev/stream.d.ts +35 -0
  1088. package/node_modules/micromark/dev/stream.d.ts.map +1 -0
  1089. package/node_modules/micromark/dev/stream.js +270 -0
  1090. package/node_modules/micromark/index.d.ts +82 -0
  1091. package/node_modules/micromark/index.d.ts.map +1 -0
  1092. package/node_modules/micromark/index.js +60 -0
  1093. package/node_modules/micromark/lib/compile.d.ts +16 -0
  1094. package/node_modules/micromark/lib/compile.d.ts.map +1 -0
  1095. package/node_modules/micromark/lib/compile.js +1068 -0
  1096. package/node_modules/micromark/lib/constructs.d.ts +73 -0
  1097. package/node_modules/micromark/lib/constructs.d.ts.map +1 -0
  1098. package/node_modules/micromark/lib/constructs.js +85 -0
  1099. package/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
  1100. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
  1101. package/node_modules/micromark/lib/create-tokenizer.js +613 -0
  1102. package/node_modules/micromark/lib/initialize/content.d.ts +4 -0
  1103. package/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
  1104. package/node_modules/micromark/lib/initialize/content.js +79 -0
  1105. package/node_modules/micromark/lib/initialize/document.d.ts +10 -0
  1106. package/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
  1107. package/node_modules/micromark/lib/initialize/document.js +370 -0
  1108. package/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
  1109. package/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
  1110. package/node_modules/micromark/lib/initialize/flow.js +58 -0
  1111. package/node_modules/micromark/lib/initialize/text.d.ts +8 -0
  1112. package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
  1113. package/node_modules/micromark/lib/initialize/text.js +216 -0
  1114. package/node_modules/micromark/lib/parse.d.ts +10 -0
  1115. package/node_modules/micromark/lib/parse.d.ts.map +1 -0
  1116. package/node_modules/micromark/lib/parse.js +56 -0
  1117. package/node_modules/micromark/lib/postprocess.d.ts +9 -0
  1118. package/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
  1119. package/node_modules/micromark/lib/postprocess.js +18 -0
  1120. package/node_modules/micromark/lib/preprocess.d.ts +13 -0
  1121. package/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
  1122. package/node_modules/micromark/lib/preprocess.js +112 -0
  1123. package/node_modules/micromark/license +22 -0
  1124. package/node_modules/micromark/package.json +87 -0
  1125. package/node_modules/micromark/readme.md +488 -0
  1126. package/node_modules/micromark/stream.d.ts +35 -0
  1127. package/node_modules/micromark/stream.d.ts.map +1 -0
  1128. package/node_modules/micromark/stream.js +256 -0
  1129. package/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
  1130. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
  1131. package/node_modules/micromark-core-commonmark/dev/index.js +22 -0
  1132. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
  1133. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
  1134. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
  1135. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
  1136. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
  1137. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
  1138. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
  1139. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
  1140. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
  1141. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
  1142. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
  1143. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
  1144. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
  1145. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
  1146. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
  1147. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
  1148. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
  1149. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
  1150. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
  1151. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
  1152. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
  1153. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
  1154. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
  1155. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
  1156. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
  1157. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
  1158. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
  1159. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
  1160. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
  1161. package/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
  1162. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
  1163. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
  1164. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
  1165. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
  1166. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
  1167. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
  1168. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
  1169. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
  1170. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
  1171. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
  1172. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
  1173. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
  1174. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
  1175. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
  1176. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
  1177. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
  1178. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
  1179. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
  1180. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
  1181. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
  1182. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
  1183. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
  1184. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
  1185. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
  1186. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
  1187. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
  1188. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
  1189. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
  1190. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
  1191. package/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
  1192. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
  1193. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  1194. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
  1195. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
  1196. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
  1197. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
  1198. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
  1199. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
  1200. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
  1201. package/node_modules/micromark-core-commonmark/index.d.ts +23 -0
  1202. package/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
  1203. package/node_modules/micromark-core-commonmark/index.js +22 -0
  1204. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
  1205. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
  1206. package/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
  1207. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
  1208. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
  1209. package/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  1210. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
  1211. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
  1212. package/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  1213. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
  1214. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
  1215. package/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  1216. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
  1217. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
  1218. package/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  1219. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
  1220. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
  1221. package/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  1222. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
  1223. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
  1224. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
  1225. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
  1226. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
  1227. package/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
  1228. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
  1229. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
  1230. package/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  1231. package/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
  1232. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
  1233. package/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  1234. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
  1235. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
  1236. package/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  1237. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
  1238. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
  1239. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  1240. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
  1241. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
  1242. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
  1243. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
  1244. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
  1245. package/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
  1246. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
  1247. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
  1248. package/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  1249. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
  1250. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
  1251. package/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
  1252. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
  1253. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
  1254. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
  1255. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
  1256. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
  1257. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
  1258. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
  1259. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
  1260. package/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  1261. package/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
  1262. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
  1263. package/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  1264. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
  1265. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  1266. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
  1267. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
  1268. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
  1269. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
  1270. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
  1271. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
  1272. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  1273. package/node_modules/micromark-core-commonmark/license +22 -0
  1274. package/node_modules/micromark-core-commonmark/package.json +62 -0
  1275. package/node_modules/micromark-core-commonmark/readme.md +171 -0
  1276. package/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
  1277. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
  1278. package/node_modules/micromark-factory-destination/dev/index.js +255 -0
  1279. package/node_modules/micromark-factory-destination/index.d.ts +42 -0
  1280. package/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
  1281. package/node_modules/micromark-factory-destination/index.js +206 -0
  1282. package/node_modules/micromark-factory-destination/license +22 -0
  1283. package/node_modules/micromark-factory-destination/package.json +57 -0
  1284. package/node_modules/micromark-factory-destination/readme.md +234 -0
  1285. package/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
  1286. package/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
  1287. package/node_modules/micromark-factory-label/dev/index.js +172 -0
  1288. package/node_modules/micromark-factory-label/index.d.ts +37 -0
  1289. package/node_modules/micromark-factory-label/index.d.ts.map +1 -0
  1290. package/node_modules/micromark-factory-label/index.js +148 -0
  1291. package/node_modules/micromark-factory-label/license +22 -0
  1292. package/node_modules/micromark-factory-label/package.json +60 -0
  1293. package/node_modules/micromark-factory-label/readme.md +224 -0
  1294. package/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
  1295. package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
  1296. package/node_modules/micromark-factory-space/dev/index.js +122 -0
  1297. package/node_modules/micromark-factory-space/index.d.ts +60 -0
  1298. package/node_modules/micromark-factory-space/index.d.ts.map +1 -0
  1299. package/node_modules/micromark-factory-space/index.js +116 -0
  1300. package/node_modules/micromark-factory-space/license +22 -0
  1301. package/node_modules/micromark-factory-space/package.json +46 -0
  1302. package/node_modules/micromark-factory-space/readme.md +225 -0
  1303. package/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
  1304. package/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
  1305. package/node_modules/micromark-factory-title/dev/index.js +169 -0
  1306. package/node_modules/micromark-factory-title/index.d.ts +36 -0
  1307. package/node_modules/micromark-factory-title/index.d.ts.map +1 -0
  1308. package/node_modules/micromark-factory-title/index.js +158 -0
  1309. package/node_modules/micromark-factory-title/license +22 -0
  1310. package/node_modules/micromark-factory-title/package.json +58 -0
  1311. package/node_modules/micromark-factory-title/readme.md +229 -0
  1312. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
  1313. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
  1314. package/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
  1315. package/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
  1316. package/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
  1317. package/node_modules/micromark-factory-whitespace/index.js +44 -0
  1318. package/node_modules/micromark-factory-whitespace/license +22 -0
  1319. package/node_modules/micromark-factory-whitespace/package.json +57 -0
  1320. package/node_modules/micromark-factory-whitespace/readme.md +205 -0
  1321. package/node_modules/micromark-util-character/dev/index.d.ts +195 -0
  1322. package/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
  1323. package/node_modules/micromark-util-character/dev/index.js +252 -0
  1324. package/node_modules/micromark-util-character/index.d.ts +195 -0
  1325. package/node_modules/micromark-util-character/index.d.ts.map +1 -0
  1326. package/node_modules/micromark-util-character/index.js +246 -0
  1327. package/node_modules/micromark-util-character/license +22 -0
  1328. package/node_modules/micromark-util-character/package.json +57 -0
  1329. package/node_modules/micromark-util-character/readme.md +446 -0
  1330. package/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
  1331. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
  1332. package/node_modules/micromark-util-chunked/dev/index.js +89 -0
  1333. package/node_modules/micromark-util-chunked/index.d.ts +41 -0
  1334. package/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
  1335. package/node_modules/micromark-util-chunked/index.js +81 -0
  1336. package/node_modules/micromark-util-chunked/license +22 -0
  1337. package/node_modules/micromark-util-chunked/package.json +57 -0
  1338. package/node_modules/micromark-util-chunked/readme.md +219 -0
  1339. package/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
  1340. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
  1341. package/node_modules/micromark-util-classify-character/dev/index.js +38 -0
  1342. package/node_modules/micromark-util-classify-character/index.d.ts +18 -0
  1343. package/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
  1344. package/node_modules/micromark-util-classify-character/index.js +27 -0
  1345. package/node_modules/micromark-util-classify-character/license +22 -0
  1346. package/node_modules/micromark-util-classify-character/package.json +59 -0
  1347. package/node_modules/micromark-util-classify-character/readme.md +205 -0
  1348. package/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
  1349. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
  1350. package/node_modules/micromark-util-combine-extensions/index.js +143 -0
  1351. package/node_modules/micromark-util-combine-extensions/license +22 -0
  1352. package/node_modules/micromark-util-combine-extensions/package.json +52 -0
  1353. package/node_modules/micromark-util-combine-extensions/readme.md +201 -0
  1354. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
  1355. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
  1356. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
  1357. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
  1358. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
  1359. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  1360. package/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
  1361. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  1362. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
  1363. package/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
  1364. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
  1365. package/node_modules/micromark-util-decode-string/dev/index.js +53 -0
  1366. package/node_modules/micromark-util-decode-string/index.d.ts +14 -0
  1367. package/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
  1368. package/node_modules/micromark-util-decode-string/index.js +45 -0
  1369. package/node_modules/micromark-util-decode-string/license +22 -0
  1370. package/node_modules/micromark-util-decode-string/package.json +63 -0
  1371. package/node_modules/micromark-util-decode-string/readme.md +179 -0
  1372. package/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
  1373. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
  1374. package/node_modules/micromark-util-edit-map/dev/index.js +237 -0
  1375. package/node_modules/micromark-util-edit-map/index.d.ts +78 -0
  1376. package/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
  1377. package/node_modules/micromark-util-edit-map/index.js +225 -0
  1378. package/node_modules/micromark-util-edit-map/license +22 -0
  1379. package/node_modules/micromark-util-edit-map/package.json +48 -0
  1380. package/node_modules/micromark-util-edit-map/readme.md +234 -0
  1381. package/node_modules/micromark-util-encode/index.d.ts +14 -0
  1382. package/node_modules/micromark-util-encode/index.d.ts.map +1 -0
  1383. package/node_modules/micromark-util-encode/index.js +33 -0
  1384. package/node_modules/micromark-util-encode/license +22 -0
  1385. package/node_modules/micromark-util-encode/package.json +47 -0
  1386. package/node_modules/micromark-util-encode/readme.md +176 -0
  1387. package/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
  1388. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
  1389. package/node_modules/micromark-util-html-tag-name/index.js +93 -0
  1390. package/node_modules/micromark-util-html-tag-name/license +22 -0
  1391. package/node_modules/micromark-util-html-tag-name/package.json +47 -0
  1392. package/node_modules/micromark-util-html-tag-name/readme.md +193 -0
  1393. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
  1394. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
  1395. package/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
  1396. package/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
  1397. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
  1398. package/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  1399. package/node_modules/micromark-util-normalize-identifier/license +22 -0
  1400. package/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  1401. package/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
  1402. package/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
  1403. package/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
  1404. package/node_modules/micromark-util-resolve-all/index.js +32 -0
  1405. package/node_modules/micromark-util-resolve-all/license +22 -0
  1406. package/node_modules/micromark-util-resolve-all/package.json +48 -0
  1407. package/node_modules/micromark-util-resolve-all/readme.md +238 -0
  1408. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
  1409. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
  1410. package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
  1411. package/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
  1412. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
  1413. package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  1414. package/node_modules/micromark-util-sanitize-uri/license +22 -0
  1415. package/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  1416. package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
  1417. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
  1418. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
  1419. package/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
  1420. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
  1421. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
  1422. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
  1423. package/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
  1424. package/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
  1425. package/node_modules/micromark-util-subtokenize/index.js +228 -0
  1426. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
  1427. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
  1428. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  1429. package/node_modules/micromark-util-subtokenize/license +22 -0
  1430. package/node_modules/micromark-util-subtokenize/package.json +60 -0
  1431. package/node_modules/micromark-util-subtokenize/readme.md +181 -0
  1432. package/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
  1433. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
  1434. package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
  1435. package/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
  1436. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
  1437. package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
  1438. package/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
  1439. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
  1440. package/node_modules/micromark-util-symbol/lib/default.js +4 -0
  1441. package/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
  1442. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
  1443. package/node_modules/micromark-util-symbol/lib/types.js +453 -0
  1444. package/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
  1445. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
  1446. package/node_modules/micromark-util-symbol/lib/values.js +109 -0
  1447. package/node_modules/micromark-util-symbol/license +22 -0
  1448. package/node_modules/micromark-util-symbol/package.json +43 -0
  1449. package/node_modules/micromark-util-symbol/readme.md +168 -0
  1450. package/node_modules/micromark-util-types/index.d.ts +1315 -0
  1451. package/node_modules/micromark-util-types/index.js +2 -0
  1452. package/node_modules/micromark-util-types/license +22 -0
  1453. package/node_modules/micromark-util-types/package.json +37 -0
  1454. package/node_modules/micromark-util-types/readme.md +151 -0
  1455. package/node_modules/ms/index.js +162 -0
  1456. package/node_modules/ms/license.md +21 -0
  1457. package/node_modules/ms/package.json +38 -0
  1458. package/node_modules/ms/readme.md +59 -0
  1459. package/node_modules/require-from-string/index.js +34 -0
  1460. package/node_modules/require-from-string/license +21 -0
  1461. package/node_modules/require-from-string/package.json +28 -0
  1462. package/node_modules/require-from-string/readme.md +56 -0
  1463. package/node_modules/unist-util-stringify-position/index.d.ts +1 -0
  1464. package/node_modules/unist-util-stringify-position/index.js +1 -0
  1465. package/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
  1466. package/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  1467. package/node_modules/unist-util-stringify-position/license +22 -0
  1468. package/node_modules/unist-util-stringify-position/package.json +80 -0
  1469. package/node_modules/unist-util-stringify-position/readme.md +206 -0
  1470. package/node_modules/ws/LICENSE +20 -0
  1471. package/node_modules/ws/README.md +548 -0
  1472. package/node_modules/ws/browser.js +8 -0
  1473. package/node_modules/ws/index.js +22 -0
  1474. package/node_modules/ws/lib/buffer-util.js +131 -0
  1475. package/node_modules/ws/lib/constants.js +19 -0
  1476. package/node_modules/ws/lib/event-target.js +292 -0
  1477. package/node_modules/ws/lib/extension.js +203 -0
  1478. package/node_modules/ws/lib/limiter.js +55 -0
  1479. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  1480. package/node_modules/ws/lib/receiver.js +743 -0
  1481. package/node_modules/ws/lib/sender.js +607 -0
  1482. package/node_modules/ws/lib/stream.js +161 -0
  1483. package/node_modules/ws/lib/subprotocol.js +62 -0
  1484. package/node_modules/ws/lib/validation.js +152 -0
  1485. package/node_modules/ws/lib/websocket-server.js +562 -0
  1486. package/node_modules/ws/lib/websocket.js +1407 -0
  1487. package/node_modules/ws/package.json +74 -0
  1488. package/node_modules/ws/wrapper.mjs +21 -0
  1489. package/node_modules/yaml/LICENSE +13 -0
  1490. package/node_modules/yaml/README.md +172 -0
  1491. package/node_modules/yaml/bin.mjs +11 -0
  1492. package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  1493. package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  1494. package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  1495. package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  1496. package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  1497. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  1498. package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  1499. package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  1500. package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  1501. package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  1502. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
  1503. package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  1504. package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  1505. package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  1506. package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  1507. package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  1508. package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  1509. package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  1510. package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  1511. package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  1512. package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  1513. package/node_modules/yaml/browser/dist/errors.js +57 -0
  1514. package/node_modules/yaml/browser/dist/index.js +17 -0
  1515. package/node_modules/yaml/browser/dist/log.js +11 -0
  1516. package/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
  1517. package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  1518. package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  1519. package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  1520. package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  1521. package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  1522. package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  1523. package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  1524. package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  1525. package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  1526. package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  1527. package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  1528. package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  1529. package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  1530. package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  1531. package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  1532. package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  1533. package/node_modules/yaml/browser/dist/public-api.js +102 -0
  1534. package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  1535. package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  1536. package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  1537. package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  1538. package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  1539. package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  1540. package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  1541. package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  1542. package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  1543. package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  1544. package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  1545. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  1546. package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  1547. package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  1548. package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  1549. package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  1550. package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  1551. package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  1552. package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  1553. package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  1554. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  1555. package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  1556. package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  1557. package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  1558. package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  1559. package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  1560. package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  1561. package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  1562. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  1563. package/node_modules/yaml/browser/dist/util.js +11 -0
  1564. package/node_modules/yaml/browser/dist/visit.js +233 -0
  1565. package/node_modules/yaml/browser/index.js +5 -0
  1566. package/node_modules/yaml/browser/package.json +3 -0
  1567. package/node_modules/yaml/dist/cli.d.ts +8 -0
  1568. package/node_modules/yaml/dist/cli.mjs +201 -0
  1569. package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  1570. package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  1571. package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  1572. package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  1573. package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  1574. package/node_modules/yaml/dist/compose/compose-node.js +112 -0
  1575. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  1576. package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  1577. package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  1578. package/node_modules/yaml/dist/compose/composer.js +224 -0
  1579. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  1580. package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  1581. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  1582. package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  1583. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  1584. package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  1585. package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  1586. package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  1587. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  1588. package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  1589. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  1590. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
  1591. package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  1592. package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  1593. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  1594. package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  1595. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  1596. package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  1597. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  1598. package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  1599. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  1600. package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  1601. package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  1602. package/node_modules/yaml/dist/doc/Document.js +337 -0
  1603. package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  1604. package/node_modules/yaml/dist/doc/anchors.js +76 -0
  1605. package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  1606. package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  1607. package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  1608. package/node_modules/yaml/dist/doc/createNode.js +90 -0
  1609. package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  1610. package/node_modules/yaml/dist/doc/directives.js +178 -0
  1611. package/node_modules/yaml/dist/errors.d.ts +21 -0
  1612. package/node_modules/yaml/dist/errors.js +62 -0
  1613. package/node_modules/yaml/dist/index.d.ts +25 -0
  1614. package/node_modules/yaml/dist/index.js +50 -0
  1615. package/node_modules/yaml/dist/log.d.ts +3 -0
  1616. package/node_modules/yaml/dist/log.js +19 -0
  1617. package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  1618. package/node_modules/yaml/dist/nodes/Alias.js +120 -0
  1619. package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  1620. package/node_modules/yaml/dist/nodes/Collection.js +151 -0
  1621. package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  1622. package/node_modules/yaml/dist/nodes/Node.js +40 -0
  1623. package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  1624. package/node_modules/yaml/dist/nodes/Pair.js +39 -0
  1625. package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  1626. package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  1627. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  1628. package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  1629. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  1630. package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  1631. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  1632. package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  1633. package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  1634. package/node_modules/yaml/dist/nodes/identity.js +53 -0
  1635. package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  1636. package/node_modules/yaml/dist/nodes/toJS.js +39 -0
  1637. package/node_modules/yaml/dist/options.d.ts +350 -0
  1638. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  1639. package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  1640. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  1641. package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  1642. package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  1643. package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  1644. package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  1645. package/node_modules/yaml/dist/parse/cst.js +112 -0
  1646. package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  1647. package/node_modules/yaml/dist/parse/lexer.js +723 -0
  1648. package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  1649. package/node_modules/yaml/dist/parse/line-counter.js +41 -0
  1650. package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  1651. package/node_modules/yaml/dist/parse/parser.js +980 -0
  1652. package/node_modules/yaml/dist/public-api.d.ts +44 -0
  1653. package/node_modules/yaml/dist/public-api.js +107 -0
  1654. package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  1655. package/node_modules/yaml/dist/schema/Schema.js +39 -0
  1656. package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  1657. package/node_modules/yaml/dist/schema/common/map.js +19 -0
  1658. package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  1659. package/node_modules/yaml/dist/schema/common/null.js +17 -0
  1660. package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  1661. package/node_modules/yaml/dist/schema/common/seq.js +19 -0
  1662. package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  1663. package/node_modules/yaml/dist/schema/common/string.js +16 -0
  1664. package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  1665. package/node_modules/yaml/dist/schema/core/bool.js +21 -0
  1666. package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  1667. package/node_modules/yaml/dist/schema/core/float.js +47 -0
  1668. package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  1669. package/node_modules/yaml/dist/schema/core/int.js +42 -0
  1670. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  1671. package/node_modules/yaml/dist/schema/core/schema.js +25 -0
  1672. package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  1673. package/node_modules/yaml/dist/schema/json/schema.js +64 -0
  1674. package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  1675. package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  1676. package/node_modules/yaml/dist/schema/tags.js +99 -0
  1677. package/node_modules/yaml/dist/schema/types.d.ts +92 -0
  1678. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  1679. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  1680. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  1681. package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  1682. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  1683. package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  1684. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  1685. package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  1686. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  1687. package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  1688. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  1689. package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  1690. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  1691. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  1692. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  1693. package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  1694. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  1695. package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  1696. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  1697. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  1698. package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  1699. package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  1700. package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  1701. package/node_modules/yaml/dist/stringify/stringify.js +132 -0
  1702. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  1703. package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  1704. package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  1705. package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  1706. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  1707. package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  1708. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  1709. package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  1710. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  1711. package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  1712. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  1713. package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  1714. package/node_modules/yaml/dist/test-events.d.ts +4 -0
  1715. package/node_modules/yaml/dist/test-events.js +134 -0
  1716. package/node_modules/yaml/dist/util.d.ts +16 -0
  1717. package/node_modules/yaml/dist/util.js +28 -0
  1718. package/node_modules/yaml/dist/visit.d.ts +102 -0
  1719. package/node_modules/yaml/dist/visit.js +236 -0
  1720. package/node_modules/yaml/package.json +97 -0
  1721. package/node_modules/yaml/util.js +2 -0
  1722. package/package.json +183 -4
  1723. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +395 -0
  1724. package/packages/octo-runtime-extra-channel-wecom/config-schema.json +276 -0
  1725. package/packages/octo-runtime-extra-webui/config-schema.json +134 -0
@@ -0,0 +1,1407 @@
1
+ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex|Readable$", "caughtErrors": "none" }] */
2
+
3
+ 'use strict';
4
+
5
+ const EventEmitter = require('events');
6
+ const https = require('https');
7
+ const http = require('http');
8
+ const net = require('net');
9
+ const tls = require('tls');
10
+ const { randomBytes, createHash } = require('crypto');
11
+ const { Duplex, Readable } = require('stream');
12
+ const { URL } = require('url');
13
+
14
+ const PerMessageDeflate = require('./permessage-deflate');
15
+ const Receiver = require('./receiver');
16
+ const Sender = require('./sender');
17
+ const { isBlob } = require('./validation');
18
+
19
+ const {
20
+ BINARY_TYPES,
21
+ CLOSE_TIMEOUT,
22
+ EMPTY_BUFFER,
23
+ GUID,
24
+ kForOnEventAttribute,
25
+ kListener,
26
+ kStatusCode,
27
+ kWebSocket,
28
+ NOOP
29
+ } = require('./constants');
30
+ const {
31
+ EventTarget: { addEventListener, removeEventListener }
32
+ } = require('./event-target');
33
+ const { format, parse } = require('./extension');
34
+ const { toBuffer } = require('./buffer-util');
35
+
36
+ const kAborted = Symbol('kAborted');
37
+ const protocolVersions = [8, 13];
38
+ const readyStates = ['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'];
39
+ const subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
40
+
41
+ /**
42
+ * Class representing a WebSocket.
43
+ *
44
+ * @extends EventEmitter
45
+ */
46
+ class WebSocket extends EventEmitter {
47
+ /**
48
+ * Create a new `WebSocket`.
49
+ *
50
+ * @param {(String|URL)} address The URL to which to connect
51
+ * @param {(String|String[])} [protocols] The subprotocols
52
+ * @param {Object} [options] Connection options
53
+ */
54
+ constructor(address, protocols, options) {
55
+ super();
56
+
57
+ this._binaryType = BINARY_TYPES[0];
58
+ this._closeCode = 1006;
59
+ this._closeFrameReceived = false;
60
+ this._closeFrameSent = false;
61
+ this._closeMessage = EMPTY_BUFFER;
62
+ this._closeTimer = null;
63
+ this._errorEmitted = false;
64
+ this._extensions = {};
65
+ this._paused = false;
66
+ this._protocol = '';
67
+ this._readyState = WebSocket.CONNECTING;
68
+ this._receiver = null;
69
+ this._sender = null;
70
+ this._socket = null;
71
+
72
+ if (address !== null) {
73
+ this._bufferedAmount = 0;
74
+ this._isServer = false;
75
+ this._redirects = 0;
76
+
77
+ if (protocols === undefined) {
78
+ protocols = [];
79
+ } else if (!Array.isArray(protocols)) {
80
+ if (typeof protocols === 'object' && protocols !== null) {
81
+ options = protocols;
82
+ protocols = [];
83
+ } else {
84
+ protocols = [protocols];
85
+ }
86
+ }
87
+
88
+ initAsClient(this, address, protocols, options);
89
+ } else {
90
+ this._autoPong = options.autoPong;
91
+ this._closeTimeout = options.closeTimeout;
92
+ this._isServer = true;
93
+ }
94
+ }
95
+
96
+ /**
97
+ * For historical reasons, the custom "nodebuffer" type is used by the default
98
+ * instead of "blob".
99
+ *
100
+ * @type {String}
101
+ */
102
+ get binaryType() {
103
+ return this._binaryType;
104
+ }
105
+
106
+ set binaryType(type) {
107
+ if (!BINARY_TYPES.includes(type)) return;
108
+
109
+ this._binaryType = type;
110
+
111
+ //
112
+ // Allow to change `binaryType` on the fly.
113
+ //
114
+ if (this._receiver) this._receiver._binaryType = type;
115
+ }
116
+
117
+ /**
118
+ * @type {Number}
119
+ */
120
+ get bufferedAmount() {
121
+ if (!this._socket) return this._bufferedAmount;
122
+
123
+ return this._socket._writableState.length + this._sender._bufferedBytes;
124
+ }
125
+
126
+ /**
127
+ * @type {String}
128
+ */
129
+ get extensions() {
130
+ return Object.keys(this._extensions).join();
131
+ }
132
+
133
+ /**
134
+ * @type {Boolean}
135
+ */
136
+ get isPaused() {
137
+ return this._paused;
138
+ }
139
+
140
+ /**
141
+ * @type {Function}
142
+ */
143
+ /* istanbul ignore next */
144
+ get onclose() {
145
+ return null;
146
+ }
147
+
148
+ /**
149
+ * @type {Function}
150
+ */
151
+ /* istanbul ignore next */
152
+ get onerror() {
153
+ return null;
154
+ }
155
+
156
+ /**
157
+ * @type {Function}
158
+ */
159
+ /* istanbul ignore next */
160
+ get onopen() {
161
+ return null;
162
+ }
163
+
164
+ /**
165
+ * @type {Function}
166
+ */
167
+ /* istanbul ignore next */
168
+ get onmessage() {
169
+ return null;
170
+ }
171
+
172
+ /**
173
+ * @type {String}
174
+ */
175
+ get protocol() {
176
+ return this._protocol;
177
+ }
178
+
179
+ /**
180
+ * @type {Number}
181
+ */
182
+ get readyState() {
183
+ return this._readyState;
184
+ }
185
+
186
+ /**
187
+ * @type {String}
188
+ */
189
+ get url() {
190
+ return this._url;
191
+ }
192
+
193
+ /**
194
+ * Set up the socket and the internal resources.
195
+ *
196
+ * @param {Duplex} socket The network socket between the server and client
197
+ * @param {Buffer} head The first packet of the upgraded stream
198
+ * @param {Object} options Options object
199
+ * @param {Boolean} [options.allowSynchronousEvents=false] Specifies whether
200
+ * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
201
+ * multiple times in the same tick
202
+ * @param {Function} [options.generateMask] The function used to generate the
203
+ * masking key
204
+ * @param {Number} [options.maxBufferedChunks=0] The maximum number of
205
+ * buffered data chunks
206
+ * @param {Number} [options.maxFragments=0] The maximum number of message
207
+ * fragments
208
+ * @param {Number} [options.maxPayload=0] The maximum allowed message size
209
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
210
+ * not to skip UTF-8 validation for text and close messages
211
+ * @private
212
+ */
213
+ setSocket(socket, head, options) {
214
+ const receiver = new Receiver({
215
+ allowSynchronousEvents: options.allowSynchronousEvents,
216
+ binaryType: this.binaryType,
217
+ extensions: this._extensions,
218
+ isServer: this._isServer,
219
+ maxBufferedChunks: options.maxBufferedChunks,
220
+ maxFragments: options.maxFragments,
221
+ maxPayload: options.maxPayload,
222
+ skipUTF8Validation: options.skipUTF8Validation
223
+ });
224
+
225
+ const sender = new Sender(socket, this._extensions, options.generateMask);
226
+
227
+ this._receiver = receiver;
228
+ this._sender = sender;
229
+ this._socket = socket;
230
+
231
+ receiver[kWebSocket] = this;
232
+ sender[kWebSocket] = this;
233
+ socket[kWebSocket] = this;
234
+
235
+ receiver.on('conclude', receiverOnConclude);
236
+ receiver.on('drain', receiverOnDrain);
237
+ receiver.on('error', receiverOnError);
238
+ receiver.on('message', receiverOnMessage);
239
+ receiver.on('ping', receiverOnPing);
240
+ receiver.on('pong', receiverOnPong);
241
+
242
+ sender.onerror = senderOnError;
243
+
244
+ //
245
+ // These methods may not be available if `socket` is just a `Duplex`.
246
+ //
247
+ if (socket.setTimeout) socket.setTimeout(0);
248
+ if (socket.setNoDelay) socket.setNoDelay();
249
+
250
+ if (head.length > 0) socket.unshift(head);
251
+
252
+ socket.on('close', socketOnClose);
253
+ socket.on('data', socketOnData);
254
+ socket.on('end', socketOnEnd);
255
+ socket.on('error', socketOnError);
256
+
257
+ this._readyState = WebSocket.OPEN;
258
+ this.emit('open');
259
+ }
260
+
261
+ /**
262
+ * Emit the `'close'` event.
263
+ *
264
+ * @private
265
+ */
266
+ emitClose() {
267
+ if (!this._socket) {
268
+ this._readyState = WebSocket.CLOSED;
269
+ this.emit('close', this._closeCode, this._closeMessage);
270
+ return;
271
+ }
272
+
273
+ if (this._extensions[PerMessageDeflate.extensionName]) {
274
+ this._extensions[PerMessageDeflate.extensionName].cleanup();
275
+ }
276
+
277
+ this._receiver.removeAllListeners();
278
+ this._readyState = WebSocket.CLOSED;
279
+ this.emit('close', this._closeCode, this._closeMessage);
280
+ }
281
+
282
+ /**
283
+ * Start a closing handshake.
284
+ *
285
+ * +----------+ +-----------+ +----------+
286
+ * - - -|ws.close()|-->|close frame|-->|ws.close()|- - -
287
+ * | +----------+ +-----------+ +----------+ |
288
+ * +----------+ +-----------+ |
289
+ * CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING
290
+ * +----------+ +-----------+ |
291
+ * | | | +---+ |
292
+ * +------------------------+-->|fin| - - - -
293
+ * | +---+ | +---+
294
+ * - - - - -|fin|<---------------------+
295
+ * +---+
296
+ *
297
+ * @param {Number} [code] Status code explaining why the connection is closing
298
+ * @param {(String|Buffer)} [data] The reason why the connection is
299
+ * closing
300
+ * @public
301
+ */
302
+ close(code, data) {
303
+ if (this.readyState === WebSocket.CLOSED) return;
304
+ if (this.readyState === WebSocket.CONNECTING) {
305
+ const msg = 'WebSocket was closed before the connection was established';
306
+ abortHandshake(this, this._req, msg);
307
+ return;
308
+ }
309
+
310
+ if (this.readyState === WebSocket.CLOSING) {
311
+ if (
312
+ this._closeFrameSent &&
313
+ (this._closeFrameReceived || this._receiver._writableState.errorEmitted)
314
+ ) {
315
+ this._socket.end();
316
+ }
317
+
318
+ return;
319
+ }
320
+
321
+ this._readyState = WebSocket.CLOSING;
322
+ this._sender.close(code, data, !this._isServer, (err) => {
323
+ //
324
+ // This error is handled by the `'error'` listener on the socket. We only
325
+ // want to know if the close frame has been sent here.
326
+ //
327
+ if (err) return;
328
+
329
+ this._closeFrameSent = true;
330
+
331
+ if (
332
+ this._closeFrameReceived ||
333
+ this._receiver._writableState.errorEmitted
334
+ ) {
335
+ this._socket.end();
336
+ }
337
+ });
338
+
339
+ setCloseTimer(this);
340
+ }
341
+
342
+ /**
343
+ * Pause the socket.
344
+ *
345
+ * @public
346
+ */
347
+ pause() {
348
+ if (
349
+ this.readyState === WebSocket.CONNECTING ||
350
+ this.readyState === WebSocket.CLOSED
351
+ ) {
352
+ return;
353
+ }
354
+
355
+ this._paused = true;
356
+ this._socket.pause();
357
+ }
358
+
359
+ /**
360
+ * Send a ping.
361
+ *
362
+ * @param {*} [data] The data to send
363
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
364
+ * @param {Function} [cb] Callback which is executed when the ping is sent
365
+ * @public
366
+ */
367
+ ping(data, mask, cb) {
368
+ if (this.readyState === WebSocket.CONNECTING) {
369
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
370
+ }
371
+
372
+ if (typeof data === 'function') {
373
+ cb = data;
374
+ data = mask = undefined;
375
+ } else if (typeof mask === 'function') {
376
+ cb = mask;
377
+ mask = undefined;
378
+ }
379
+
380
+ if (typeof data === 'number') data = data.toString();
381
+
382
+ if (this.readyState !== WebSocket.OPEN) {
383
+ sendAfterClose(this, data, cb);
384
+ return;
385
+ }
386
+
387
+ if (mask === undefined) mask = !this._isServer;
388
+ this._sender.ping(data || EMPTY_BUFFER, mask, cb);
389
+ }
390
+
391
+ /**
392
+ * Send a pong.
393
+ *
394
+ * @param {*} [data] The data to send
395
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
396
+ * @param {Function} [cb] Callback which is executed when the pong is sent
397
+ * @public
398
+ */
399
+ pong(data, mask, cb) {
400
+ if (this.readyState === WebSocket.CONNECTING) {
401
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
402
+ }
403
+
404
+ if (typeof data === 'function') {
405
+ cb = data;
406
+ data = mask = undefined;
407
+ } else if (typeof mask === 'function') {
408
+ cb = mask;
409
+ mask = undefined;
410
+ }
411
+
412
+ if (typeof data === 'number') data = data.toString();
413
+
414
+ if (this.readyState !== WebSocket.OPEN) {
415
+ sendAfterClose(this, data, cb);
416
+ return;
417
+ }
418
+
419
+ if (mask === undefined) mask = !this._isServer;
420
+ this._sender.pong(data || EMPTY_BUFFER, mask, cb);
421
+ }
422
+
423
+ /**
424
+ * Resume the socket.
425
+ *
426
+ * @public
427
+ */
428
+ resume() {
429
+ if (
430
+ this.readyState === WebSocket.CONNECTING ||
431
+ this.readyState === WebSocket.CLOSED
432
+ ) {
433
+ return;
434
+ }
435
+
436
+ this._paused = false;
437
+ if (!this._receiver._writableState.needDrain) this._socket.resume();
438
+ }
439
+
440
+ /**
441
+ * Send a data message.
442
+ *
443
+ * @param {*} data The message to send
444
+ * @param {Object} [options] Options object
445
+ * @param {Boolean} [options.binary] Specifies whether `data` is binary or
446
+ * text
447
+ * @param {Boolean} [options.compress] Specifies whether or not to compress
448
+ * `data`
449
+ * @param {Boolean} [options.fin=true] Specifies whether the fragment is the
450
+ * last one
451
+ * @param {Boolean} [options.mask] Specifies whether or not to mask `data`
452
+ * @param {Function} [cb] Callback which is executed when data is written out
453
+ * @public
454
+ */
455
+ send(data, options, cb) {
456
+ if (this.readyState === WebSocket.CONNECTING) {
457
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
458
+ }
459
+
460
+ if (typeof options === 'function') {
461
+ cb = options;
462
+ options = {};
463
+ }
464
+
465
+ if (typeof data === 'number') data = data.toString();
466
+
467
+ if (this.readyState !== WebSocket.OPEN) {
468
+ sendAfterClose(this, data, cb);
469
+ return;
470
+ }
471
+
472
+ const opts = {
473
+ binary: typeof data !== 'string',
474
+ mask: !this._isServer,
475
+ compress: true,
476
+ fin: true,
477
+ ...options
478
+ };
479
+
480
+ if (!this._extensions[PerMessageDeflate.extensionName]) {
481
+ opts.compress = false;
482
+ }
483
+
484
+ this._sender.send(data || EMPTY_BUFFER, opts, cb);
485
+ }
486
+
487
+ /**
488
+ * Forcibly close the connection.
489
+ *
490
+ * @public
491
+ */
492
+ terminate() {
493
+ if (this.readyState === WebSocket.CLOSED) return;
494
+ if (this.readyState === WebSocket.CONNECTING) {
495
+ const msg = 'WebSocket was closed before the connection was established';
496
+ abortHandshake(this, this._req, msg);
497
+ return;
498
+ }
499
+
500
+ if (this._socket) {
501
+ this._readyState = WebSocket.CLOSING;
502
+ this._socket.destroy();
503
+ }
504
+ }
505
+ }
506
+
507
+ /**
508
+ * @constant {Number} CONNECTING
509
+ * @memberof WebSocket
510
+ */
511
+ Object.defineProperty(WebSocket, 'CONNECTING', {
512
+ enumerable: true,
513
+ value: readyStates.indexOf('CONNECTING')
514
+ });
515
+
516
+ /**
517
+ * @constant {Number} CONNECTING
518
+ * @memberof WebSocket.prototype
519
+ */
520
+ Object.defineProperty(WebSocket.prototype, 'CONNECTING', {
521
+ enumerable: true,
522
+ value: readyStates.indexOf('CONNECTING')
523
+ });
524
+
525
+ /**
526
+ * @constant {Number} OPEN
527
+ * @memberof WebSocket
528
+ */
529
+ Object.defineProperty(WebSocket, 'OPEN', {
530
+ enumerable: true,
531
+ value: readyStates.indexOf('OPEN')
532
+ });
533
+
534
+ /**
535
+ * @constant {Number} OPEN
536
+ * @memberof WebSocket.prototype
537
+ */
538
+ Object.defineProperty(WebSocket.prototype, 'OPEN', {
539
+ enumerable: true,
540
+ value: readyStates.indexOf('OPEN')
541
+ });
542
+
543
+ /**
544
+ * @constant {Number} CLOSING
545
+ * @memberof WebSocket
546
+ */
547
+ Object.defineProperty(WebSocket, 'CLOSING', {
548
+ enumerable: true,
549
+ value: readyStates.indexOf('CLOSING')
550
+ });
551
+
552
+ /**
553
+ * @constant {Number} CLOSING
554
+ * @memberof WebSocket.prototype
555
+ */
556
+ Object.defineProperty(WebSocket.prototype, 'CLOSING', {
557
+ enumerable: true,
558
+ value: readyStates.indexOf('CLOSING')
559
+ });
560
+
561
+ /**
562
+ * @constant {Number} CLOSED
563
+ * @memberof WebSocket
564
+ */
565
+ Object.defineProperty(WebSocket, 'CLOSED', {
566
+ enumerable: true,
567
+ value: readyStates.indexOf('CLOSED')
568
+ });
569
+
570
+ /**
571
+ * @constant {Number} CLOSED
572
+ * @memberof WebSocket.prototype
573
+ */
574
+ Object.defineProperty(WebSocket.prototype, 'CLOSED', {
575
+ enumerable: true,
576
+ value: readyStates.indexOf('CLOSED')
577
+ });
578
+
579
+ [
580
+ 'binaryType',
581
+ 'bufferedAmount',
582
+ 'extensions',
583
+ 'isPaused',
584
+ 'protocol',
585
+ 'readyState',
586
+ 'url'
587
+ ].forEach((property) => {
588
+ Object.defineProperty(WebSocket.prototype, property, { enumerable: true });
589
+ });
590
+
591
+ //
592
+ // Add the `onopen`, `onerror`, `onclose`, and `onmessage` attributes.
593
+ // See https://html.spec.whatwg.org/multipage/comms.html#the-websocket-interface
594
+ //
595
+ ['open', 'error', 'close', 'message'].forEach((method) => {
596
+ Object.defineProperty(WebSocket.prototype, `on${method}`, {
597
+ enumerable: true,
598
+ get() {
599
+ for (const listener of this.listeners(method)) {
600
+ if (listener[kForOnEventAttribute]) return listener[kListener];
601
+ }
602
+
603
+ return null;
604
+ },
605
+ set(handler) {
606
+ for (const listener of this.listeners(method)) {
607
+ if (listener[kForOnEventAttribute]) {
608
+ this.removeListener(method, listener);
609
+ break;
610
+ }
611
+ }
612
+
613
+ if (typeof handler !== 'function') return;
614
+
615
+ this.addEventListener(method, handler, {
616
+ [kForOnEventAttribute]: true
617
+ });
618
+ }
619
+ });
620
+ });
621
+
622
+ WebSocket.prototype.addEventListener = addEventListener;
623
+ WebSocket.prototype.removeEventListener = removeEventListener;
624
+
625
+ module.exports = WebSocket;
626
+
627
+ /**
628
+ * Initialize a WebSocket client.
629
+ *
630
+ * @param {WebSocket} websocket The client to initialize
631
+ * @param {(String|URL)} address The URL to which to connect
632
+ * @param {Array} protocols The subprotocols
633
+ * @param {Object} [options] Connection options
634
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether any
635
+ * of the `'message'`, `'ping'`, and `'pong'` events can be emitted multiple
636
+ * times in the same tick
637
+ * @param {Boolean} [options.autoPong=true] Specifies whether or not to
638
+ * automatically send a pong in response to a ping
639
+ * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to wait
640
+ * for the closing handshake to finish after `websocket.close()` is called
641
+ * @param {Function} [options.finishRequest] A function which can be used to
642
+ * customize the headers of each http request before it is sent
643
+ * @param {Boolean} [options.followRedirects=false] Whether or not to follow
644
+ * redirects
645
+ * @param {Function} [options.generateMask] The function used to generate the
646
+ * masking key
647
+ * @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
648
+ * handshake request
649
+ * @param {Number} [options.maxBufferedChunks=262144] The maximum number of
650
+ * buffered data chunks
651
+ * @param {Number} [options.maxFragments=16384] The maximum number of message
652
+ * fragments
653
+ * @param {Number} [options.maxPayload=104857600] The maximum allowed message
654
+ * size
655
+ * @param {Number} [options.maxRedirects=10] The maximum number of redirects
656
+ * allowed
657
+ * @param {String} [options.origin] Value of the `Origin` or
658
+ * `Sec-WebSocket-Origin` header
659
+ * @param {(Boolean|Object)} [options.perMessageDeflate=true] Enable/disable
660
+ * permessage-deflate
661
+ * @param {Number} [options.protocolVersion=13] Value of the
662
+ * `Sec-WebSocket-Version` header
663
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
664
+ * not to skip UTF-8 validation for text and close messages
665
+ * @private
666
+ */
667
+ function initAsClient(websocket, address, protocols, options) {
668
+ const opts = {
669
+ allowSynchronousEvents: true,
670
+ autoPong: true,
671
+ closeTimeout: CLOSE_TIMEOUT,
672
+ protocolVersion: protocolVersions[1],
673
+ maxBufferedChunks: 256 * 1024,
674
+ maxFragments: 16 * 1024,
675
+ maxPayload: 100 * 1024 * 1024,
676
+ skipUTF8Validation: false,
677
+ perMessageDeflate: true,
678
+ followRedirects: false,
679
+ maxRedirects: 10,
680
+ ...options,
681
+ socketPath: undefined,
682
+ hostname: undefined,
683
+ protocol: undefined,
684
+ timeout: undefined,
685
+ method: 'GET',
686
+ host: undefined,
687
+ path: undefined,
688
+ port: undefined
689
+ };
690
+
691
+ websocket._autoPong = opts.autoPong;
692
+ websocket._closeTimeout = opts.closeTimeout;
693
+
694
+ if (!protocolVersions.includes(opts.protocolVersion)) {
695
+ throw new RangeError(
696
+ `Unsupported protocol version: ${opts.protocolVersion} ` +
697
+ `(supported versions: ${protocolVersions.join(', ')})`
698
+ );
699
+ }
700
+
701
+ let parsedUrl;
702
+
703
+ if (address instanceof URL) {
704
+ parsedUrl = address;
705
+ } else {
706
+ try {
707
+ parsedUrl = new URL(address);
708
+ } catch {
709
+ throw new SyntaxError(`Invalid URL: ${address}`);
710
+ }
711
+ }
712
+
713
+ if (parsedUrl.protocol === 'http:') {
714
+ parsedUrl.protocol = 'ws:';
715
+ } else if (parsedUrl.protocol === 'https:') {
716
+ parsedUrl.protocol = 'wss:';
717
+ }
718
+
719
+ websocket._url = parsedUrl.href;
720
+
721
+ const isSecure = parsedUrl.protocol === 'wss:';
722
+ const isIpcUrl = parsedUrl.protocol === 'ws+unix:';
723
+ let invalidUrlMessage;
724
+
725
+ if (parsedUrl.protocol !== 'ws:' && !isSecure && !isIpcUrl) {
726
+ invalidUrlMessage =
727
+ 'The URL\'s protocol must be one of "ws:", "wss:", ' +
728
+ '"http:", "https:", or "ws+unix:"';
729
+ } else if (isIpcUrl && !parsedUrl.pathname) {
730
+ invalidUrlMessage = "The URL's pathname is empty";
731
+ } else if (parsedUrl.hash) {
732
+ invalidUrlMessage = 'The URL contains a fragment identifier';
733
+ }
734
+
735
+ if (invalidUrlMessage) {
736
+ const err = new SyntaxError(invalidUrlMessage);
737
+
738
+ if (websocket._redirects === 0) {
739
+ throw err;
740
+ } else {
741
+ emitErrorAndClose(websocket, err);
742
+ return;
743
+ }
744
+ }
745
+
746
+ const defaultPort = isSecure ? 443 : 80;
747
+ const key = randomBytes(16).toString('base64');
748
+ const request = isSecure ? https.request : http.request;
749
+ const protocolSet = new Set();
750
+ let perMessageDeflate;
751
+
752
+ opts.createConnection =
753
+ opts.createConnection || (isSecure ? tlsConnect : netConnect);
754
+ opts.defaultPort = opts.defaultPort || defaultPort;
755
+ opts.port = parsedUrl.port || defaultPort;
756
+ opts.host = parsedUrl.hostname.startsWith('[')
757
+ ? parsedUrl.hostname.slice(1, -1)
758
+ : parsedUrl.hostname;
759
+ opts.headers = {
760
+ ...opts.headers,
761
+ 'Sec-WebSocket-Version': opts.protocolVersion,
762
+ 'Sec-WebSocket-Key': key,
763
+ Connection: 'Upgrade',
764
+ Upgrade: 'websocket'
765
+ };
766
+ opts.path = parsedUrl.pathname + parsedUrl.search;
767
+ opts.timeout = opts.handshakeTimeout;
768
+
769
+ if (opts.perMessageDeflate) {
770
+ perMessageDeflate = new PerMessageDeflate({
771
+ ...opts.perMessageDeflate,
772
+ isServer: false,
773
+ maxPayload: opts.maxPayload
774
+ });
775
+ opts.headers['Sec-WebSocket-Extensions'] = format({
776
+ [PerMessageDeflate.extensionName]: perMessageDeflate.offer()
777
+ });
778
+ }
779
+ if (protocols.length) {
780
+ for (const protocol of protocols) {
781
+ if (
782
+ typeof protocol !== 'string' ||
783
+ !subprotocolRegex.test(protocol) ||
784
+ protocolSet.has(protocol)
785
+ ) {
786
+ throw new SyntaxError(
787
+ 'An invalid or duplicated subprotocol was specified'
788
+ );
789
+ }
790
+
791
+ protocolSet.add(protocol);
792
+ }
793
+
794
+ opts.headers['Sec-WebSocket-Protocol'] = protocols.join(',');
795
+ }
796
+ if (opts.origin) {
797
+ if (opts.protocolVersion < 13) {
798
+ opts.headers['Sec-WebSocket-Origin'] = opts.origin;
799
+ } else {
800
+ opts.headers.Origin = opts.origin;
801
+ }
802
+ }
803
+ if (parsedUrl.username || parsedUrl.password) {
804
+ opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
805
+ }
806
+
807
+ if (isIpcUrl) {
808
+ const parts = opts.path.split(':');
809
+
810
+ opts.socketPath = parts[0];
811
+ opts.path = parts[1];
812
+ }
813
+
814
+ let req;
815
+
816
+ if (opts.followRedirects) {
817
+ if (websocket._redirects === 0) {
818
+ websocket._originalIpc = isIpcUrl;
819
+ websocket._originalSecure = isSecure;
820
+ websocket._originalHostOrSocketPath = isIpcUrl
821
+ ? opts.socketPath
822
+ : parsedUrl.host;
823
+
824
+ const headers = options && options.headers;
825
+
826
+ //
827
+ // Shallow copy the user provided options so that headers can be changed
828
+ // without mutating the original object.
829
+ //
830
+ options = { ...options, headers: {} };
831
+
832
+ if (headers) {
833
+ for (const [key, value] of Object.entries(headers)) {
834
+ options.headers[key.toLowerCase()] = value;
835
+ }
836
+ }
837
+ } else if (websocket.listenerCount('redirect') === 0) {
838
+ const isSameHost = isIpcUrl
839
+ ? websocket._originalIpc
840
+ ? opts.socketPath === websocket._originalHostOrSocketPath
841
+ : false
842
+ : websocket._originalIpc
843
+ ? false
844
+ : parsedUrl.host === websocket._originalHostOrSocketPath;
845
+
846
+ if (!isSameHost || (websocket._originalSecure && !isSecure)) {
847
+ //
848
+ // Match curl 7.77.0 behavior and drop the following headers. These
849
+ // headers are also dropped when following a redirect to a subdomain.
850
+ //
851
+ delete opts.headers.authorization;
852
+ delete opts.headers.cookie;
853
+
854
+ if (!isSameHost) delete opts.headers.host;
855
+
856
+ opts.auth = undefined;
857
+ }
858
+ }
859
+
860
+ //
861
+ // Match curl 7.77.0 behavior and make the first `Authorization` header win.
862
+ // If the `Authorization` header is set, then there is nothing to do as it
863
+ // will take precedence.
864
+ //
865
+ if (opts.auth && !options.headers.authorization) {
866
+ options.headers.authorization =
867
+ 'Basic ' + Buffer.from(opts.auth).toString('base64');
868
+ }
869
+
870
+ req = websocket._req = request(opts);
871
+
872
+ if (websocket._redirects) {
873
+ //
874
+ // Unlike what is done for the `'upgrade'` event, no early exit is
875
+ // triggered here if the user calls `websocket.close()` or
876
+ // `websocket.terminate()` from a listener of the `'redirect'` event. This
877
+ // is because the user can also call `request.destroy()` with an error
878
+ // before calling `websocket.close()` or `websocket.terminate()` and this
879
+ // would result in an error being emitted on the `request` object with no
880
+ // `'error'` event listeners attached.
881
+ //
882
+ websocket.emit('redirect', websocket.url, req);
883
+ }
884
+ } else {
885
+ req = websocket._req = request(opts);
886
+ }
887
+
888
+ if (opts.timeout) {
889
+ req.on('timeout', () => {
890
+ abortHandshake(websocket, req, 'Opening handshake has timed out');
891
+ });
892
+ }
893
+
894
+ req.on('error', (err) => {
895
+ if (req === null || req[kAborted]) return;
896
+
897
+ req = websocket._req = null;
898
+ emitErrorAndClose(websocket, err);
899
+ });
900
+
901
+ req.on('response', (res) => {
902
+ const location = res.headers.location;
903
+ const statusCode = res.statusCode;
904
+
905
+ if (
906
+ location &&
907
+ opts.followRedirects &&
908
+ statusCode >= 300 &&
909
+ statusCode < 400
910
+ ) {
911
+ if (++websocket._redirects > opts.maxRedirects) {
912
+ abortHandshake(websocket, req, 'Maximum redirects exceeded');
913
+ return;
914
+ }
915
+
916
+ req.abort();
917
+
918
+ let addr;
919
+
920
+ try {
921
+ addr = new URL(location, address);
922
+ } catch (e) {
923
+ const err = new SyntaxError(`Invalid URL: ${location}`);
924
+ emitErrorAndClose(websocket, err);
925
+ return;
926
+ }
927
+
928
+ initAsClient(websocket, addr, protocols, options);
929
+ } else if (!websocket.emit('unexpected-response', req, res)) {
930
+ abortHandshake(
931
+ websocket,
932
+ req,
933
+ `Unexpected server response: ${res.statusCode}`
934
+ );
935
+ }
936
+ });
937
+
938
+ req.on('upgrade', (res, socket, head) => {
939
+ websocket.emit('upgrade', res);
940
+
941
+ //
942
+ // The user may have closed the connection from a listener of the
943
+ // `'upgrade'` event.
944
+ //
945
+ if (websocket.readyState !== WebSocket.CONNECTING) return;
946
+
947
+ req = websocket._req = null;
948
+
949
+ const upgrade = res.headers.upgrade;
950
+
951
+ if (upgrade === undefined || upgrade.toLowerCase() !== 'websocket') {
952
+ abortHandshake(websocket, socket, 'Invalid Upgrade header');
953
+ return;
954
+ }
955
+
956
+ const digest = createHash('sha1')
957
+ .update(key + GUID)
958
+ .digest('base64');
959
+
960
+ if (res.headers['sec-websocket-accept'] !== digest) {
961
+ abortHandshake(websocket, socket, 'Invalid Sec-WebSocket-Accept header');
962
+ return;
963
+ }
964
+
965
+ const serverProt = res.headers['sec-websocket-protocol'];
966
+ let protError;
967
+
968
+ if (serverProt !== undefined) {
969
+ if (!protocolSet.size) {
970
+ protError = 'Server sent a subprotocol but none was requested';
971
+ } else if (!protocolSet.has(serverProt)) {
972
+ protError = 'Server sent an invalid subprotocol';
973
+ }
974
+ } else if (protocolSet.size) {
975
+ protError = 'Server sent no subprotocol';
976
+ }
977
+
978
+ if (protError) {
979
+ abortHandshake(websocket, socket, protError);
980
+ return;
981
+ }
982
+
983
+ if (serverProt) websocket._protocol = serverProt;
984
+
985
+ const secWebSocketExtensions = res.headers['sec-websocket-extensions'];
986
+
987
+ if (secWebSocketExtensions !== undefined) {
988
+ if (!perMessageDeflate) {
989
+ const message =
990
+ 'Server sent a Sec-WebSocket-Extensions header but no extension ' +
991
+ 'was requested';
992
+ abortHandshake(websocket, socket, message);
993
+ return;
994
+ }
995
+
996
+ let extensions;
997
+
998
+ try {
999
+ extensions = parse(secWebSocketExtensions);
1000
+ } catch (err) {
1001
+ const message = 'Invalid Sec-WebSocket-Extensions header';
1002
+ abortHandshake(websocket, socket, message);
1003
+ return;
1004
+ }
1005
+
1006
+ const extensionNames = Object.keys(extensions);
1007
+
1008
+ if (
1009
+ extensionNames.length !== 1 ||
1010
+ extensionNames[0] !== PerMessageDeflate.extensionName
1011
+ ) {
1012
+ const message = 'Server indicated an extension that was not requested';
1013
+ abortHandshake(websocket, socket, message);
1014
+ return;
1015
+ }
1016
+
1017
+ try {
1018
+ perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
1019
+ } catch (err) {
1020
+ const message = 'Invalid Sec-WebSocket-Extensions header';
1021
+ abortHandshake(websocket, socket, message);
1022
+ return;
1023
+ }
1024
+
1025
+ websocket._extensions[PerMessageDeflate.extensionName] =
1026
+ perMessageDeflate;
1027
+ }
1028
+
1029
+ websocket.setSocket(socket, head, {
1030
+ allowSynchronousEvents: opts.allowSynchronousEvents,
1031
+ generateMask: opts.generateMask,
1032
+ maxBufferedChunks: opts.maxBufferedChunks,
1033
+ maxFragments: opts.maxFragments,
1034
+ maxPayload: opts.maxPayload,
1035
+ skipUTF8Validation: opts.skipUTF8Validation
1036
+ });
1037
+ });
1038
+
1039
+ if (opts.finishRequest) {
1040
+ opts.finishRequest(req, websocket);
1041
+ } else {
1042
+ req.end();
1043
+ }
1044
+ }
1045
+
1046
+ /**
1047
+ * Emit the `'error'` and `'close'` events.
1048
+ *
1049
+ * @param {WebSocket} websocket The WebSocket instance
1050
+ * @param {Error} The error to emit
1051
+ * @private
1052
+ */
1053
+ function emitErrorAndClose(websocket, err) {
1054
+ websocket._readyState = WebSocket.CLOSING;
1055
+ //
1056
+ // The following assignment is practically useless and is done only for
1057
+ // consistency.
1058
+ //
1059
+ websocket._errorEmitted = true;
1060
+ websocket.emit('error', err);
1061
+ websocket.emitClose();
1062
+ }
1063
+
1064
+ /**
1065
+ * Create a `net.Socket` and initiate a connection.
1066
+ *
1067
+ * @param {Object} options Connection options
1068
+ * @return {net.Socket} The newly created socket used to start the connection
1069
+ * @private
1070
+ */
1071
+ function netConnect(options) {
1072
+ options.path = options.socketPath;
1073
+ return net.connect(options);
1074
+ }
1075
+
1076
+ /**
1077
+ * Create a `tls.TLSSocket` and initiate a connection.
1078
+ *
1079
+ * @param {Object} options Connection options
1080
+ * @return {tls.TLSSocket} The newly created socket used to start the connection
1081
+ * @private
1082
+ */
1083
+ function tlsConnect(options) {
1084
+ options.path = undefined;
1085
+
1086
+ if (!options.servername && options.servername !== '') {
1087
+ options.servername = net.isIP(options.host) ? '' : options.host;
1088
+ }
1089
+
1090
+ return tls.connect(options);
1091
+ }
1092
+
1093
+ /**
1094
+ * Abort the handshake and emit an error.
1095
+ *
1096
+ * @param {WebSocket} websocket The WebSocket instance
1097
+ * @param {(http.ClientRequest|net.Socket|tls.Socket)} stream The request to
1098
+ * abort or the socket to destroy
1099
+ * @param {String} message The error message
1100
+ * @private
1101
+ */
1102
+ function abortHandshake(websocket, stream, message) {
1103
+ websocket._readyState = WebSocket.CLOSING;
1104
+
1105
+ const err = new Error(message);
1106
+ Error.captureStackTrace(err, abortHandshake);
1107
+
1108
+ if (stream.setHeader) {
1109
+ stream[kAborted] = true;
1110
+ stream.abort();
1111
+
1112
+ if (stream.socket && !stream.socket.destroyed) {
1113
+ //
1114
+ // On Node.js >= 14.3.0 `request.abort()` does not destroy the socket if
1115
+ // called after the request completed. See
1116
+ // https://github.com/websockets/ws/issues/1869.
1117
+ //
1118
+ stream.socket.destroy();
1119
+ }
1120
+
1121
+ process.nextTick(emitErrorAndClose, websocket, err);
1122
+ } else {
1123
+ stream.destroy(err);
1124
+ stream.once('error', websocket.emit.bind(websocket, 'error'));
1125
+ stream.once('close', websocket.emitClose.bind(websocket));
1126
+ }
1127
+ }
1128
+
1129
+ /**
1130
+ * Handle cases where the `ping()`, `pong()`, or `send()` methods are called
1131
+ * when the `readyState` attribute is `CLOSING` or `CLOSED`.
1132
+ *
1133
+ * @param {WebSocket} websocket The WebSocket instance
1134
+ * @param {*} [data] The data to send
1135
+ * @param {Function} [cb] Callback
1136
+ * @private
1137
+ */
1138
+ function sendAfterClose(websocket, data, cb) {
1139
+ if (data) {
1140
+ const length = isBlob(data) ? data.size : toBuffer(data).length;
1141
+
1142
+ //
1143
+ // The `_bufferedAmount` property is used only when the peer is a client and
1144
+ // the opening handshake fails. Under these circumstances, in fact, the
1145
+ // `setSocket()` method is not called, so the `_socket` and `_sender`
1146
+ // properties are set to `null`.
1147
+ //
1148
+ if (websocket._socket) websocket._sender._bufferedBytes += length;
1149
+ else websocket._bufferedAmount += length;
1150
+ }
1151
+
1152
+ if (cb) {
1153
+ const err = new Error(
1154
+ `WebSocket is not open: readyState ${websocket.readyState} ` +
1155
+ `(${readyStates[websocket.readyState]})`
1156
+ );
1157
+ process.nextTick(cb, err);
1158
+ }
1159
+ }
1160
+
1161
+ /**
1162
+ * The listener of the `Receiver` `'conclude'` event.
1163
+ *
1164
+ * @param {Number} code The status code
1165
+ * @param {Buffer} reason The reason for closing
1166
+ * @private
1167
+ */
1168
+ function receiverOnConclude(code, reason) {
1169
+ const websocket = this[kWebSocket];
1170
+
1171
+ websocket._closeFrameReceived = true;
1172
+ websocket._closeMessage = reason;
1173
+ websocket._closeCode = code;
1174
+
1175
+ if (websocket._socket[kWebSocket] === undefined) return;
1176
+
1177
+ websocket._socket.removeListener('data', socketOnData);
1178
+ process.nextTick(resume, websocket._socket);
1179
+
1180
+ if (code === 1005) websocket.close();
1181
+ else websocket.close(code, reason);
1182
+ }
1183
+
1184
+ /**
1185
+ * The listener of the `Receiver` `'drain'` event.
1186
+ *
1187
+ * @private
1188
+ */
1189
+ function receiverOnDrain() {
1190
+ const websocket = this[kWebSocket];
1191
+
1192
+ if (!websocket.isPaused) websocket._socket.resume();
1193
+ }
1194
+
1195
+ /**
1196
+ * The listener of the `Receiver` `'error'` event.
1197
+ *
1198
+ * @param {(RangeError|Error)} err The emitted error
1199
+ * @private
1200
+ */
1201
+ function receiverOnError(err) {
1202
+ const websocket = this[kWebSocket];
1203
+
1204
+ if (websocket._socket[kWebSocket] !== undefined) {
1205
+ websocket._socket.removeListener('data', socketOnData);
1206
+
1207
+ //
1208
+ // On Node.js < 14.0.0 the `'error'` event is emitted synchronously. See
1209
+ // https://github.com/websockets/ws/issues/1940.
1210
+ //
1211
+ process.nextTick(resume, websocket._socket);
1212
+
1213
+ websocket.close(err[kStatusCode]);
1214
+ }
1215
+
1216
+ if (!websocket._errorEmitted) {
1217
+ websocket._errorEmitted = true;
1218
+ websocket.emit('error', err);
1219
+ }
1220
+ }
1221
+
1222
+ /**
1223
+ * The listener of the `Receiver` `'finish'` event.
1224
+ *
1225
+ * @private
1226
+ */
1227
+ function receiverOnFinish() {
1228
+ this[kWebSocket].emitClose();
1229
+ }
1230
+
1231
+ /**
1232
+ * The listener of the `Receiver` `'message'` event.
1233
+ *
1234
+ * @param {Buffer|ArrayBuffer|Buffer[])} data The message
1235
+ * @param {Boolean} isBinary Specifies whether the message is binary or not
1236
+ * @private
1237
+ */
1238
+ function receiverOnMessage(data, isBinary) {
1239
+ this[kWebSocket].emit('message', data, isBinary);
1240
+ }
1241
+
1242
+ /**
1243
+ * The listener of the `Receiver` `'ping'` event.
1244
+ *
1245
+ * @param {Buffer} data The data included in the ping frame
1246
+ * @private
1247
+ */
1248
+ function receiverOnPing(data) {
1249
+ const websocket = this[kWebSocket];
1250
+
1251
+ if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
1252
+ websocket.emit('ping', data);
1253
+ }
1254
+
1255
+ /**
1256
+ * The listener of the `Receiver` `'pong'` event.
1257
+ *
1258
+ * @param {Buffer} data The data included in the pong frame
1259
+ * @private
1260
+ */
1261
+ function receiverOnPong(data) {
1262
+ this[kWebSocket].emit('pong', data);
1263
+ }
1264
+
1265
+ /**
1266
+ * Resume a readable stream
1267
+ *
1268
+ * @param {Readable} stream The readable stream
1269
+ * @private
1270
+ */
1271
+ function resume(stream) {
1272
+ stream.resume();
1273
+ }
1274
+
1275
+ /**
1276
+ * The `Sender` error event handler.
1277
+ *
1278
+ * @param {Error} The error
1279
+ * @private
1280
+ */
1281
+ function senderOnError(err) {
1282
+ const websocket = this[kWebSocket];
1283
+
1284
+ if (websocket.readyState === WebSocket.CLOSED) return;
1285
+ if (websocket.readyState === WebSocket.OPEN) {
1286
+ websocket._readyState = WebSocket.CLOSING;
1287
+ setCloseTimer(websocket);
1288
+ }
1289
+
1290
+ //
1291
+ // `socket.end()` is used instead of `socket.destroy()` to allow the other
1292
+ // peer to finish sending queued data. There is no need to set a timer here
1293
+ // because `CLOSING` means that it is already set or not needed.
1294
+ //
1295
+ this._socket.end();
1296
+
1297
+ if (!websocket._errorEmitted) {
1298
+ websocket._errorEmitted = true;
1299
+ websocket.emit('error', err);
1300
+ }
1301
+ }
1302
+
1303
+ /**
1304
+ * Set a timer to destroy the underlying raw socket of a WebSocket.
1305
+ *
1306
+ * @param {WebSocket} websocket The WebSocket instance
1307
+ * @private
1308
+ */
1309
+ function setCloseTimer(websocket) {
1310
+ websocket._closeTimer = setTimeout(
1311
+ websocket._socket.destroy.bind(websocket._socket),
1312
+ websocket._closeTimeout
1313
+ );
1314
+ }
1315
+
1316
+ /**
1317
+ * The listener of the socket `'close'` event.
1318
+ *
1319
+ * @private
1320
+ */
1321
+ function socketOnClose() {
1322
+ const websocket = this[kWebSocket];
1323
+
1324
+ this.removeListener('close', socketOnClose);
1325
+ this.removeListener('data', socketOnData);
1326
+ this.removeListener('end', socketOnEnd);
1327
+
1328
+ websocket._readyState = WebSocket.CLOSING;
1329
+
1330
+ //
1331
+ // The close frame might not have been received or the `'end'` event emitted,
1332
+ // for example, if the socket was destroyed due to an error. Ensure that the
1333
+ // `receiver` stream is closed after writing any remaining buffered data to
1334
+ // it. If the readable side of the socket is in flowing mode then there is no
1335
+ // buffered data as everything has been already written. If instead, the
1336
+ // socket is paused, any possible buffered data will be read as a single
1337
+ // chunk.
1338
+ //
1339
+ if (
1340
+ !this._readableState.endEmitted &&
1341
+ !websocket._closeFrameReceived &&
1342
+ !websocket._receiver._writableState.errorEmitted &&
1343
+ this._readableState.length !== 0
1344
+ ) {
1345
+ const chunk = this.read(this._readableState.length);
1346
+
1347
+ websocket._receiver.write(chunk);
1348
+ }
1349
+
1350
+ websocket._receiver.end();
1351
+
1352
+ this[kWebSocket] = undefined;
1353
+
1354
+ clearTimeout(websocket._closeTimer);
1355
+
1356
+ if (
1357
+ websocket._receiver._writableState.finished ||
1358
+ websocket._receiver._writableState.errorEmitted
1359
+ ) {
1360
+ websocket.emitClose();
1361
+ } else {
1362
+ websocket._receiver.on('error', receiverOnFinish);
1363
+ websocket._receiver.on('finish', receiverOnFinish);
1364
+ }
1365
+ }
1366
+
1367
+ /**
1368
+ * The listener of the socket `'data'` event.
1369
+ *
1370
+ * @param {Buffer} chunk A chunk of data
1371
+ * @private
1372
+ */
1373
+ function socketOnData(chunk) {
1374
+ if (!this[kWebSocket]._receiver.write(chunk)) {
1375
+ this.pause();
1376
+ }
1377
+ }
1378
+
1379
+ /**
1380
+ * The listener of the socket `'end'` event.
1381
+ *
1382
+ * @private
1383
+ */
1384
+ function socketOnEnd() {
1385
+ const websocket = this[kWebSocket];
1386
+
1387
+ websocket._readyState = WebSocket.CLOSING;
1388
+ websocket._receiver.end();
1389
+ this.end();
1390
+ }
1391
+
1392
+ /**
1393
+ * The listener of the socket `'error'` event.
1394
+ *
1395
+ * @private
1396
+ */
1397
+ function socketOnError() {
1398
+ const websocket = this[kWebSocket];
1399
+
1400
+ this.removeListener('error', socketOnError);
1401
+ this.on('error', NOOP);
1402
+
1403
+ if (websocket) {
1404
+ websocket._readyState = WebSocket.CLOSING;
1405
+ this.destroy();
1406
+ }
1407
+ }