@mininglamp-oss/octo-runtime 1.1.11 → 1.1.13

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 (946) hide show
  1. package/README.md +26 -142
  2. package/apps/cli/README.md +7 -102
  3. package/apps/cli/dist/adapters.d.ts +19 -1
  4. package/apps/cli/dist/adapters.js +153 -27
  5. package/apps/cli/dist/build-info.json +2 -2
  6. package/apps/cli/dist/codex.d.ts +5 -0
  7. package/apps/cli/dist/codex.js +36 -0
  8. package/apps/cli/dist/command-tree.d.ts +1 -13
  9. package/apps/cli/dist/command-tree.js +130 -316
  10. package/apps/cli/dist/foreground.d.ts +1 -2
  11. package/apps/cli/dist/help.d.ts +0 -1
  12. package/apps/cli/dist/help.js +2 -13
  13. package/apps/cli/dist/kernel.d.ts +4 -0
  14. package/apps/cli/dist/kernel.js +84 -0
  15. package/apps/cli/dist/logs.d.ts +2 -2
  16. package/apps/cli/dist/logs.js +14 -17
  17. package/apps/cli/dist/main.js +63 -180
  18. package/apps/cli/dist/manifest.json +33 -72
  19. package/apps/cli/dist/module-manifest.d.ts +1 -1
  20. package/apps/cli/dist/module-manifest.js +2 -3
  21. package/apps/cli/dist/openclaw.d.ts +0 -8
  22. package/apps/cli/dist/openclaw.js +2 -114
  23. package/apps/cli/dist/output.d.ts +1 -0
  24. package/apps/cli/dist/output.js +16 -23
  25. package/apps/cli/dist/playboard.js +32 -15
  26. package/apps/cli/dist/provider-launch.d.ts +28 -0
  27. package/apps/cli/dist/provider-launch.js +52 -0
  28. package/apps/cli/dist/providers.d.ts +182 -0
  29. package/apps/cli/dist/providers.js +34 -0
  30. package/apps/cli/dist/service-control.js +0 -1
  31. package/dist/public/adapter-sdk.d.ts +2 -0
  32. package/dist/public/adapter-sdk.js +2 -0
  33. package/dist/public/host.d.ts +2 -4
  34. package/dist/public/host.js +1 -1
  35. package/dist/public/protocol.d.ts +1 -1
  36. package/dist/public/protocol.js +1 -1
  37. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +4 -4
  38. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +15 -14
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -28
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +10 -35
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +22 -29
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +14 -68
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +60 -43
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +19 -31
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +29 -18
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -5
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +42 -35
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.d.ts +54 -0
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.js +147 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.js +4 -8
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +20 -92
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +104 -216
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.d.ts +2 -2
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.js +4 -11
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +9 -5
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +77 -81
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-R3PDZLX5.js → chunk-H3S6WM37.js} +3 -3
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FGFEM7JP.js → chunk-RISQ6NGV.js} +1 -1
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-TSRZVLIG.js → chunk-SMTJTIN7.js} +1 -1
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +4 -2
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +15 -17
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +4 -4
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +14 -14
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +23 -30
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +4 -7
  76. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +13 -21
  77. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +48 -26
  78. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  79. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +16 -14
  80. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +15 -7
  81. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  82. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +16 -14
  83. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +14 -6
  84. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  85. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +16 -14
  86. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +15 -7
  87. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  88. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +7 -3
  89. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +27 -29
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +4 -4
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +16 -25
  92. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +109 -178
  93. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  94. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +16 -14
  95. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +15 -6
  96. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -2
  97. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +16 -14
  98. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +15 -6
  99. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -2
  100. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -1
  101. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +49 -0
  102. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +256 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +7 -2
  104. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +1 -1
  105. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +5 -1
  106. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +26 -13
  107. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +117 -59
  108. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +1 -1
  109. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.d.ts +1 -13
  110. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +4 -27
  111. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +11 -1
  112. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +89 -8
  113. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.d.ts +10 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.js +25 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +10 -3
  116. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +4 -8
  117. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +0 -4
  118. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +6 -60
  119. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +0 -10
  120. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +0 -83
  121. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  122. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +19 -1
  123. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +153 -27
  124. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  125. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.d.ts +5 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.js +36 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.d.ts +1 -13
  128. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +130 -316
  129. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/foreground.d.ts +1 -2
  130. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +0 -1
  131. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +2 -13
  132. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.d.ts +4 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.js +84 -0
  134. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.d.ts +2 -2
  135. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +14 -17
  136. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +63 -180
  137. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +33 -72
  138. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
  139. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +2 -3
  140. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.d.ts +0 -8
  141. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +2 -114
  142. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +1 -0
  143. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +16 -23
  144. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +32 -15
  145. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.d.ts +28 -0
  146. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.js +52 -0
  147. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.d.ts +182 -0
  148. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.js +34 -0
  149. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +0 -1
  150. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
  151. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
  152. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +2 -3
  153. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +31 -20
  154. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +1 -1
  155. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +80 -50
  156. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +1 -1
  157. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +17 -2
  158. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +3 -15
  159. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +2 -0
  160. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +6 -0
  161. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +19 -4
  162. package/node_modules/@mininglamp-oss/octo-runtime-client/{schema → fixtures}/kernel-ipc-fixtures.json +28 -6
  163. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +5 -5
  164. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +3 -104
  165. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +316 -1250
  166. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  167. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +0 -2
  168. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +28 -57
  169. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +2 -2
  170. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +13 -78
  171. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +3 -1
  172. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +5 -0
  173. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  174. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -1
  175. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +1 -1
  176. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -0
  177. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +18 -18
  178. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
  179. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +1 -7
  180. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +0 -5
  181. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -18
  182. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -2
  183. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -2
  184. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +0 -1
  185. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +3 -5
  186. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +1 -8
  187. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +1 -2
  188. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +3 -267
  189. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -0
  190. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +17 -3
  191. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +104 -373
  192. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +32 -1
  193. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.d.ts +9 -0
  194. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.js +20 -0
  195. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +6 -15
  196. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +33 -178
  197. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +23 -36
  198. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +54 -45
  199. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +1 -6
  200. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +9 -17
  201. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +2 -1
  202. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +5 -28
  203. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +2 -1
  204. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  205. package/node_modules/semver/classes/range.js +2 -2
  206. package/node_modules/semver/internal/constants.js +30 -0
  207. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  208. package/node_modules/semver/package.json +1 -1
  209. package/node_modules/ws/README.md +21 -29
  210. package/node_modules/ws/lib/buffer-util.js +13 -2
  211. package/node_modules/ws/lib/sender.js +4 -1
  212. package/node_modules/ws/lib/websocket.js +8 -3
  213. package/node_modules/ws/package.json +1 -1
  214. package/package.json +37 -148
  215. package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +3 -104
  216. package/packages/octo-runtime-protocol/schema/protocol.schema.json +316 -1250
  217. package/packages/octo-runtime-protocol/{schema → test/fixtures}/kernel-ipc-fixtures.json +28 -6
  218. package/apps/cli/dist/extra-command-config.d.ts +0 -4
  219. package/apps/cli/dist/extra-command-config.js +0 -50
  220. package/apps/cli/dist/extra-commands.d.ts +0 -15
  221. package/apps/cli/dist/extra-commands.js +0 -275
  222. package/apps/cli/dist/extras.d.ts +0 -8
  223. package/apps/cli/dist/extras.js +0 -82
  224. package/apps/cli/dist/global-extras.d.ts +0 -16
  225. package/apps/cli/dist/global-extras.js +0 -201
  226. package/apps/cli/dist/status-output.d.ts +0 -10
  227. package/apps/cli/dist/status-output.js +0 -65
  228. package/dist/public/channel-gateway-commands.d.ts +0 -1
  229. package/dist/public/channel-gateway-commands.js +0 -1
  230. package/dist/public/channel-gateway.d.ts +0 -3
  231. package/dist/public/channel-gateway.js +0 -1
  232. package/dist/public/channel-wecom-commands.d.ts +0 -1
  233. package/dist/public/channel-wecom-commands.js +0 -1
  234. package/dist/public/channel-wecom.d.ts +0 -2
  235. package/dist/public/channel-wecom.js +0 -1
  236. package/dist/public/codex.d.ts +0 -1
  237. package/dist/public/codex.js +0 -1
  238. package/dist/public/dsh.d.ts +0 -2
  239. package/dist/public/dsh.js +0 -1
  240. package/dist/public/extra.d.ts +0 -5
  241. package/dist/public/extra.js +0 -3
  242. package/dist/public/webui-commands.d.ts +0 -1
  243. package/dist/public/webui-commands.js +0 -1
  244. package/dist/public/webui.d.ts +0 -1
  245. package/dist/public/webui.js +0 -1
  246. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +0 -4
  247. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +0 -50
  248. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +0 -15
  249. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +0 -275
  250. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +0 -8
  251. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +0 -82
  252. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +0 -16
  253. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +0 -201
  254. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.d.ts +0 -10
  255. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.js +0 -65
  256. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +0 -1219
  257. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +0 -5988
  258. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +0 -56
  259. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +0 -116
  260. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +0 -761
  261. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +0 -663
  262. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +0 -191
  263. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.d.ts +0 -12
  264. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.js +0 -89
  265. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.d.ts +0 -33
  266. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.js +0 -93
  267. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +0 -8
  268. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +0 -62
  269. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  270. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +0 -50
  271. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +0 -140
  272. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +0 -3
  273. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +0 -27
  274. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.d.ts +0 -17
  275. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.js +0 -123
  276. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +0 -15
  277. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +0 -1489
  278. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +0 -28
  279. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +0 -77
  280. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +0 -71
  281. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +0 -153
  282. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +0 -15
  283. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +0 -28
  284. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +0 -4
  285. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +0 -124
  286. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +0 -172
  287. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.js +0 -1
  288. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +0 -22
  289. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +0 -46
  290. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +0 -16
  291. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +0 -285
  292. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +0 -20
  293. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +0 -109
  294. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +0 -15
  295. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +0 -36
  296. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +0 -16
  297. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +0 -98
  298. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +0 -6
  299. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +0 -10
  300. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +0 -17
  301. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +0 -238
  302. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +0 -29
  303. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +0 -171
  304. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +0 -44
  305. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +0 -392
  306. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +0 -3
  307. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +0 -27
  308. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +0 -4
  309. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +0 -87
  310. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +0 -20
  311. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +0 -13
  312. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +0 -9
  313. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +0 -162
  314. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +0 -12
  315. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +0 -154
  316. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +0 -34
  317. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.js +0 -1
  318. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +0 -67
  319. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +0 -588
  320. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +0 -16
  321. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +0 -83
  322. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +0 -132
  323. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +0 -226
  324. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +0 -65
  325. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +0 -202
  326. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +0 -112
  327. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +0 -138
  328. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -48
  329. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +0 -116
  330. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +0 -51
  331. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +0 -79
  332. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +0 -30
  333. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +0 -222
  334. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +0 -13
  335. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +0 -13
  336. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +0 -92
  337. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +0 -173
  338. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +0 -84
  339. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +0 -110
  340. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +0 -87
  341. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +0 -45
  342. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +0 -2
  343. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +0 -7
  344. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +0 -5
  345. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +0 -23
  346. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +0 -20
  347. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +0 -75
  348. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +0 -22
  349. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +0 -136
  350. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +0 -7
  351. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +0 -40
  352. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +0 -70
  353. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +0 -646
  354. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +0 -17
  355. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +0 -91
  356. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +0 -18
  357. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +0 -148
  358. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +0 -15
  359. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +0 -257
  360. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +0 -12
  361. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +0 -133
  362. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +0 -21
  363. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +0 -76
  364. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +0 -6
  365. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +0 -163
  366. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +0 -4
  367. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +0 -113
  368. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -13
  369. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -75
  370. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +0 -6
  371. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +0 -117
  372. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +0 -16
  373. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +0 -74
  374. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +0 -4
  375. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +0 -19
  376. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +0 -7
  377. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +0 -90
  378. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +0 -20
  379. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +0 -85
  380. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +0 -34
  381. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +0 -430
  382. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +0 -6
  383. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +0 -63
  384. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +0 -6
  385. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +0 -60
  386. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +0 -9
  387. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +0 -71
  388. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +0 -44
  389. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +0 -357
  390. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +0 -33
  391. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  392. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +0 -11
  393. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +0 -754
  394. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +0 -35
  395. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +0 -93
  396. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +0 -4
  397. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +0 -128
  398. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +0 -78
  399. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +0 -1
  400. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +0 -16
  401. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +0 -69
  402. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +0 -12
  403. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +0 -95
  404. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +0 -3
  405. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +0 -85
  406. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +0 -10
  407. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +0 -6
  408. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +0 -6
  409. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +0 -109
  410. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +0 -12
  411. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +0 -73
  412. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +0 -24
  413. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +0 -1
  414. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +0 -45
  415. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +0 -258
  416. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +0 -21
  417. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +0 -124
  418. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +0 -53
  419. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +0 -219
  420. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +0 -10
  421. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +0 -52
  422. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +0 -31
  423. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +0 -134
  424. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +0 -3
  425. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +0 -51
  426. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +0 -3
  427. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +0 -423
  428. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +0 -25
  429. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +0 -130
  430. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-BLMf2Etg.js +0 -73
  431. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +0 -1
  432. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +0 -3
  433. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +0 -28
  434. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +0 -32
  435. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +0 -165
  436. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.d.ts +0 -44
  437. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.js +0 -207
  438. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +0 -70
  439. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +0 -16
  440. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.d.ts +0 -20
  441. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +0 -154
  442. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.d.ts +0 -4
  443. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.js +0 -21
  444. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +0 -45
  445. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -417
  446. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -62
  447. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -389
  448. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.d.ts +0 -7
  449. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.js +0 -39
  450. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +0 -3
  451. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +0 -80
  452. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +0 -3
  453. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +0 -9
  454. package/node_modules/@types/debug/LICENSE +0 -21
  455. package/node_modules/@types/debug/README.md +0 -69
  456. package/node_modules/@types/debug/index.d.ts +0 -50
  457. package/node_modules/@types/debug/package.json +0 -58
  458. package/node_modules/@types/mdast/LICENSE +0 -21
  459. package/node_modules/@types/mdast/README.md +0 -15
  460. package/node_modules/@types/mdast/index.d.ts +0 -1123
  461. package/node_modules/@types/mdast/package.json +0 -47
  462. package/node_modules/@types/ms/LICENSE +0 -21
  463. package/node_modules/@types/ms/README.md +0 -82
  464. package/node_modules/@types/ms/index.d.ts +0 -63
  465. package/node_modules/@types/ms/package.json +0 -26
  466. package/node_modules/@types/unist/LICENSE +0 -21
  467. package/node_modules/@types/unist/README.md +0 -15
  468. package/node_modules/@types/unist/index.d.ts +0 -119
  469. package/node_modules/@types/unist/package.json +0 -60
  470. package/node_modules/character-entities/index.d.ts +0 -6
  471. package/node_modules/character-entities/index.js +0 -2132
  472. package/node_modules/character-entities/license +0 -22
  473. package/node_modules/character-entities/package.json +0 -78
  474. package/node_modules/character-entities/readme.md +0 -152
  475. package/node_modules/debug/LICENSE +0 -20
  476. package/node_modules/debug/README.md +0 -481
  477. package/node_modules/debug/package.json +0 -64
  478. package/node_modules/debug/src/browser.js +0 -272
  479. package/node_modules/debug/src/common.js +0 -292
  480. package/node_modules/debug/src/index.js +0 -10
  481. package/node_modules/debug/src/node.js +0 -263
  482. package/node_modules/decode-named-character-reference/index.d.ts +0 -13
  483. package/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  484. package/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  485. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  486. package/node_modules/decode-named-character-reference/index.dom.js +0 -32
  487. package/node_modules/decode-named-character-reference/index.js +0 -19
  488. package/node_modules/decode-named-character-reference/license +0 -22
  489. package/node_modules/decode-named-character-reference/package.json +0 -90
  490. package/node_modules/decode-named-character-reference/readme.md +0 -136
  491. package/node_modules/dequal/dist/index.js +0 -86
  492. package/node_modules/dequal/dist/index.min.js +0 -1
  493. package/node_modules/dequal/dist/index.mjs +0 -84
  494. package/node_modules/dequal/index.d.ts +0 -1
  495. package/node_modules/dequal/license +0 -21
  496. package/node_modules/dequal/lite/index.d.ts +0 -1
  497. package/node_modules/dequal/lite/index.js +0 -31
  498. package/node_modules/dequal/lite/index.min.js +0 -1
  499. package/node_modules/dequal/lite/index.mjs +0 -29
  500. package/node_modules/dequal/package.json +0 -57
  501. package/node_modules/dequal/readme.md +0 -112
  502. package/node_modules/devlop/lib/default.js +0 -9
  503. package/node_modules/devlop/lib/development.d.ts +0 -84
  504. package/node_modules/devlop/lib/development.js +0 -238
  505. package/node_modules/devlop/license +0 -22
  506. package/node_modules/devlop/package.json +0 -80
  507. package/node_modules/devlop/readme.md +0 -360
  508. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
  509. package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
  510. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
  511. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
  512. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1455
  513. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -321
  514. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
  515. package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
  516. package/node_modules/mdast-util-from-markdown/index.js +0 -2
  517. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
  518. package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
  519. package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1270
  520. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -321
  521. package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
  522. package/node_modules/mdast-util-from-markdown/license +0 -22
  523. package/node_modules/mdast-util-from-markdown/package.json +0 -98
  524. package/node_modules/mdast-util-from-markdown/readme.md +0 -549
  525. package/node_modules/mdast-util-to-string/index.d.ts +0 -2
  526. package/node_modules/mdast-util-to-string/index.js +0 -5
  527. package/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
  528. package/node_modules/mdast-util-to-string/lib/index.js +0 -108
  529. package/node_modules/mdast-util-to-string/license +0 -22
  530. package/node_modules/mdast-util-to-string/package.json +0 -78
  531. package/node_modules/mdast-util-to-string/readme.md +0 -218
  532. package/node_modules/micromark/dev/index.d.ts +0 -82
  533. package/node_modules/micromark/dev/index.d.ts.map +0 -1
  534. package/node_modules/micromark/dev/index.js +0 -68
  535. package/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  536. package/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  537. package/node_modules/micromark/dev/lib/compile.js +0 -1162
  538. package/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  539. package/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  540. package/node_modules/micromark/dev/lib/constructs.js +0 -101
  541. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  542. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  543. package/node_modules/micromark/dev/lib/create-tokenizer.js +0 -718
  544. package/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  545. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  546. package/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  547. package/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  548. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  549. package/node_modules/micromark/dev/lib/initialize/document.js +0 -449
  550. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  551. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  552. package/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  553. package/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  554. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  555. package/node_modules/micromark/dev/lib/initialize/text.js +0 -248
  556. package/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  557. package/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  558. package/node_modules/micromark/dev/lib/parse.js +0 -58
  559. package/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  560. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  561. package/node_modules/micromark/dev/lib/postprocess.js +0 -19
  562. package/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  563. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  564. package/node_modules/micromark/dev/lib/preprocess.js +0 -139
  565. package/node_modules/micromark/dev/stream.d.ts +0 -35
  566. package/node_modules/micromark/dev/stream.d.ts.map +0 -1
  567. package/node_modules/micromark/dev/stream.js +0 -270
  568. package/node_modules/micromark/index.d.ts +0 -82
  569. package/node_modules/micromark/index.d.ts.map +0 -1
  570. package/node_modules/micromark/index.js +0 -60
  571. package/node_modules/micromark/lib/compile.d.ts +0 -16
  572. package/node_modules/micromark/lib/compile.d.ts.map +0 -1
  573. package/node_modules/micromark/lib/compile.js +0 -1068
  574. package/node_modules/micromark/lib/constructs.d.ts +0 -73
  575. package/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  576. package/node_modules/micromark/lib/constructs.js +0 -85
  577. package/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  578. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  579. package/node_modules/micromark/lib/create-tokenizer.js +0 -613
  580. package/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  581. package/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  582. package/node_modules/micromark/lib/initialize/content.js +0 -79
  583. package/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  584. package/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  585. package/node_modules/micromark/lib/initialize/document.js +0 -370
  586. package/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  587. package/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  588. package/node_modules/micromark/lib/initialize/flow.js +0 -58
  589. package/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  590. package/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  591. package/node_modules/micromark/lib/initialize/text.js +0 -216
  592. package/node_modules/micromark/lib/parse.d.ts +0 -10
  593. package/node_modules/micromark/lib/parse.d.ts.map +0 -1
  594. package/node_modules/micromark/lib/parse.js +0 -56
  595. package/node_modules/micromark/lib/postprocess.d.ts +0 -9
  596. package/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  597. package/node_modules/micromark/lib/postprocess.js +0 -18
  598. package/node_modules/micromark/lib/preprocess.d.ts +0 -13
  599. package/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  600. package/node_modules/micromark/lib/preprocess.js +0 -112
  601. package/node_modules/micromark/license +0 -22
  602. package/node_modules/micromark/package.json +0 -87
  603. package/node_modules/micromark/readme.md +0 -488
  604. package/node_modules/micromark/stream.d.ts +0 -35
  605. package/node_modules/micromark/stream.d.ts.map +0 -1
  606. package/node_modules/micromark/stream.js +0 -256
  607. package/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  608. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  609. package/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  610. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  611. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  612. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -294
  613. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  614. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  615. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  616. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  617. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  618. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  619. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  620. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  621. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  622. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  623. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  624. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  625. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  626. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  627. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  628. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  629. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  630. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -472
  631. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  632. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  633. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -178
  634. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  635. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  636. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  637. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  638. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  639. package/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  640. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  641. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  642. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  643. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  644. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  645. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  646. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  647. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  648. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -229
  649. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  650. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  651. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -938
  652. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  653. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  654. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  655. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  656. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  657. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -658
  658. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  659. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  660. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -119
  661. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  662. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  663. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -71
  664. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  665. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  666. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  667. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  668. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  669. package/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  670. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +0 -4
  671. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  672. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +0 -67
  673. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  674. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  675. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -213
  676. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  677. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  678. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  679. package/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  680. package/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  681. package/node_modules/micromark-core-commonmark/index.js +0 -22
  682. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  683. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  684. package/node_modules/micromark-core-commonmark/lib/attention.js +0 -231
  685. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  686. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  687. package/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  688. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  689. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  690. package/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  691. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  692. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  693. package/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  694. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  695. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  696. package/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  697. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  698. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  699. package/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  700. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  701. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  702. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -422
  703. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  704. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  705. package/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -159
  706. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  707. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  708. package/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  709. package/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  710. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  711. package/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  712. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  713. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  714. package/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  715. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  716. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  717. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  718. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  719. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  720. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -191
  721. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  722. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  723. package/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -827
  724. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  725. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  726. package/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  727. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  728. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  729. package/node_modules/micromark-core-commonmark/lib/label-end.js +0 -561
  730. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  731. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  732. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -110
  733. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  734. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  735. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -63
  736. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  737. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  738. package/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  739. package/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  740. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  741. package/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  742. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +0 -4
  743. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  744. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +0 -61
  745. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  746. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  747. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -187
  748. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  749. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  750. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  751. package/node_modules/micromark-core-commonmark/license +0 -22
  752. package/node_modules/micromark-core-commonmark/package.json +0 -62
  753. package/node_modules/micromark-core-commonmark/readme.md +0 -171
  754. package/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  755. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  756. package/node_modules/micromark-factory-destination/dev/index.js +0 -255
  757. package/node_modules/micromark-factory-destination/index.d.ts +0 -42
  758. package/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  759. package/node_modules/micromark-factory-destination/index.js +0 -206
  760. package/node_modules/micromark-factory-destination/license +0 -22
  761. package/node_modules/micromark-factory-destination/package.json +0 -57
  762. package/node_modules/micromark-factory-destination/readme.md +0 -234
  763. package/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  764. package/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  765. package/node_modules/micromark-factory-label/dev/index.js +0 -172
  766. package/node_modules/micromark-factory-label/index.d.ts +0 -37
  767. package/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  768. package/node_modules/micromark-factory-label/index.js +0 -148
  769. package/node_modules/micromark-factory-label/license +0 -22
  770. package/node_modules/micromark-factory-label/package.json +0 -60
  771. package/node_modules/micromark-factory-label/readme.md +0 -224
  772. package/node_modules/micromark-factory-space/dev/index.d.ts +0 -60
  773. package/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  774. package/node_modules/micromark-factory-space/dev/index.js +0 -122
  775. package/node_modules/micromark-factory-space/index.d.ts +0 -60
  776. package/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  777. package/node_modules/micromark-factory-space/index.js +0 -116
  778. package/node_modules/micromark-factory-space/license +0 -22
  779. package/node_modules/micromark-factory-space/package.json +0 -46
  780. package/node_modules/micromark-factory-space/readme.md +0 -225
  781. package/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  782. package/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  783. package/node_modules/micromark-factory-title/dev/index.js +0 -169
  784. package/node_modules/micromark-factory-title/index.d.ts +0 -36
  785. package/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  786. package/node_modules/micromark-factory-title/index.js +0 -158
  787. package/node_modules/micromark-factory-title/license +0 -22
  788. package/node_modules/micromark-factory-title/package.json +0 -58
  789. package/node_modules/micromark-factory-title/readme.md +0 -229
  790. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  791. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  792. package/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  793. package/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  794. package/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  795. package/node_modules/micromark-factory-whitespace/index.js +0 -44
  796. package/node_modules/micromark-factory-whitespace/license +0 -22
  797. package/node_modules/micromark-factory-whitespace/package.json +0 -57
  798. package/node_modules/micromark-factory-whitespace/readme.md +0 -205
  799. package/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  800. package/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  801. package/node_modules/micromark-util-character/dev/index.js +0 -252
  802. package/node_modules/micromark-util-character/index.d.ts +0 -195
  803. package/node_modules/micromark-util-character/index.d.ts.map +0 -1
  804. package/node_modules/micromark-util-character/index.js +0 -246
  805. package/node_modules/micromark-util-character/license +0 -22
  806. package/node_modules/micromark-util-character/package.json +0 -57
  807. package/node_modules/micromark-util-character/readme.md +0 -446
  808. package/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  809. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  810. package/node_modules/micromark-util-chunked/dev/index.js +0 -89
  811. package/node_modules/micromark-util-chunked/index.d.ts +0 -41
  812. package/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  813. package/node_modules/micromark-util-chunked/index.js +0 -81
  814. package/node_modules/micromark-util-chunked/license +0 -22
  815. package/node_modules/micromark-util-chunked/package.json +0 -57
  816. package/node_modules/micromark-util-chunked/readme.md +0 -219
  817. package/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  818. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  819. package/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  820. package/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  821. package/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  822. package/node_modules/micromark-util-classify-character/index.js +0 -27
  823. package/node_modules/micromark-util-classify-character/license +0 -22
  824. package/node_modules/micromark-util-classify-character/package.json +0 -59
  825. package/node_modules/micromark-util-classify-character/readme.md +0 -205
  826. package/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  827. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  828. package/node_modules/micromark-util-combine-extensions/index.js +0 -143
  829. package/node_modules/micromark-util-combine-extensions/license +0 -22
  830. package/node_modules/micromark-util-combine-extensions/package.json +0 -52
  831. package/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  832. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  833. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  834. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  835. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  836. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  837. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  838. package/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  839. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  840. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  841. package/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
  842. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
  843. package/node_modules/micromark-util-decode-string/dev/index.js +0 -53
  844. package/node_modules/micromark-util-decode-string/index.d.ts +0 -14
  845. package/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
  846. package/node_modules/micromark-util-decode-string/index.js +0 -45
  847. package/node_modules/micromark-util-decode-string/license +0 -22
  848. package/node_modules/micromark-util-decode-string/package.json +0 -63
  849. package/node_modules/micromark-util-decode-string/readme.md +0 -179
  850. package/node_modules/micromark-util-edit-map/dev/index.d.ts +0 -78
  851. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +0 -1
  852. package/node_modules/micromark-util-edit-map/dev/index.js +0 -237
  853. package/node_modules/micromark-util-edit-map/index.d.ts +0 -78
  854. package/node_modules/micromark-util-edit-map/index.d.ts.map +0 -1
  855. package/node_modules/micromark-util-edit-map/index.js +0 -225
  856. package/node_modules/micromark-util-edit-map/license +0 -22
  857. package/node_modules/micromark-util-edit-map/package.json +0 -48
  858. package/node_modules/micromark-util-edit-map/readme.md +0 -234
  859. package/node_modules/micromark-util-encode/index.d.ts +0 -14
  860. package/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  861. package/node_modules/micromark-util-encode/index.js +0 -33
  862. package/node_modules/micromark-util-encode/license +0 -22
  863. package/node_modules/micromark-util-encode/package.json +0 -47
  864. package/node_modules/micromark-util-encode/readme.md +0 -176
  865. package/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  866. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  867. package/node_modules/micromark-util-html-tag-name/index.js +0 -93
  868. package/node_modules/micromark-util-html-tag-name/license +0 -22
  869. package/node_modules/micromark-util-html-tag-name/package.json +0 -47
  870. package/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  871. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  872. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  873. package/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  874. package/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  875. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  876. package/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  877. package/node_modules/micromark-util-normalize-identifier/license +0 -22
  878. package/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  879. package/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  880. package/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  881. package/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  882. package/node_modules/micromark-util-resolve-all/index.js +0 -32
  883. package/node_modules/micromark-util-resolve-all/license +0 -22
  884. package/node_modules/micromark-util-resolve-all/package.json +0 -48
  885. package/node_modules/micromark-util-resolve-all/readme.md +0 -238
  886. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  887. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  888. package/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  889. package/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  890. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  891. package/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  892. package/node_modules/micromark-util-sanitize-uri/license +0 -22
  893. package/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  894. package/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  895. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  896. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  897. package/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  898. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  899. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  900. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  901. package/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  902. package/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  903. package/node_modules/micromark-util-subtokenize/index.js +0 -228
  904. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  905. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  906. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  907. package/node_modules/micromark-util-subtokenize/license +0 -22
  908. package/node_modules/micromark-util-subtokenize/package.json +0 -60
  909. package/node_modules/micromark-util-subtokenize/readme.md +0 -181
  910. package/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  911. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  912. package/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  913. package/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  914. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  915. package/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  916. package/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  917. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  918. package/node_modules/micromark-util-symbol/lib/default.js +0 -4
  919. package/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  920. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  921. package/node_modules/micromark-util-symbol/lib/types.js +0 -453
  922. package/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  923. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  924. package/node_modules/micromark-util-symbol/lib/values.js +0 -109
  925. package/node_modules/micromark-util-symbol/license +0 -22
  926. package/node_modules/micromark-util-symbol/package.json +0 -43
  927. package/node_modules/micromark-util-symbol/readme.md +0 -168
  928. package/node_modules/micromark-util-types/index.d.ts +0 -1315
  929. package/node_modules/micromark-util-types/index.js +0 -2
  930. package/node_modules/micromark-util-types/license +0 -22
  931. package/node_modules/micromark-util-types/package.json +0 -37
  932. package/node_modules/micromark-util-types/readme.md +0 -151
  933. package/node_modules/ms/index.js +0 -162
  934. package/node_modules/ms/license.md +0 -21
  935. package/node_modules/ms/package.json +0 -38
  936. package/node_modules/ms/readme.md +0 -59
  937. package/node_modules/unist-util-stringify-position/index.d.ts +0 -1
  938. package/node_modules/unist-util-stringify-position/index.js +0 -1
  939. package/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
  940. package/node_modules/unist-util-stringify-position/lib/index.js +0 -84
  941. package/node_modules/unist-util-stringify-position/license +0 -22
  942. package/node_modules/unist-util-stringify-position/package.json +0 -80
  943. package/node_modules/unist-util-stringify-position/readme.md +0 -206
  944. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  945. package/packages/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  946. package/packages/octo-runtime-extra-webui/config-schema.json +0 -134
@@ -1,1270 +0,0 @@
1
- /**
2
- * @import {
3
- * Break,
4
- * Blockquote,
5
- * Code,
6
- * Definition,
7
- * Emphasis,
8
- * Heading,
9
- * Html,
10
- * Image,
11
- * InlineCode,
12
- * Link,
13
- * ListItem,
14
- * List,
15
- * Nodes,
16
- * Paragraph,
17
- * PhrasingContent,
18
- * ReferenceType,
19
- * Root,
20
- * Strong,
21
- * Text,
22
- * ThematicBreak
23
- * } from 'mdast'
24
- * @import {
25
- * Encoding,
26
- * Event,
27
- * Token,
28
- * Value
29
- * } from 'micromark-util-types'
30
- * @import {Point} from 'unist'
31
- * @import {
32
- * CompileContext,
33
- * CompileData,
34
- * Config,
35
- * Extension,
36
- * Handle,
37
- * OnEnterError,
38
- * Options
39
- * } from './types.js'
40
- */
41
-
42
- import { toString } from 'mdast-util-to-string';
43
- import { parse, postprocess, preprocess } from 'micromark';
44
- import { decodeNumericCharacterReference } from 'micromark-util-decode-numeric-character-reference';
45
- import { decodeString } from 'micromark-util-decode-string';
46
- import { normalizeIdentifier } from 'micromark-util-normalize-identifier';
47
- import { decodeNamedCharacterReference } from 'decode-named-character-reference';
48
- import { stringifyPosition } from 'unist-util-stringify-position';
49
- const own = {}.hasOwnProperty;
50
-
51
- /**
52
- * Turn markdown into a syntax tree.
53
- *
54
- * @overload
55
- * @param {Value} value
56
- * @param {Encoding | null | undefined} [encoding]
57
- * @param {Options | null | undefined} [options]
58
- * @returns {Root}
59
- *
60
- * @overload
61
- * @param {Value} value
62
- * @param {Options | null | undefined} [options]
63
- * @returns {Root}
64
- *
65
- * @param {Value} value
66
- * Markdown to parse.
67
- * @param {Encoding | Options | null | undefined} [encoding]
68
- * Character encoding for when `value` is `Buffer`.
69
- * @param {Options | null | undefined} [options]
70
- * Configuration.
71
- * @returns {Root}
72
- * mdast tree.
73
- */
74
- export function fromMarkdown(value, encoding, options) {
75
- if (encoding && typeof encoding === 'object') {
76
- options = encoding;
77
- encoding = undefined;
78
- }
79
- return compiler(options)(postprocess(parse(options).document().write(preprocess()(value, encoding, true))));
80
- }
81
-
82
- /**
83
- * Note this compiler only understand complete buffering, not streaming.
84
- *
85
- * @param {Options | null | undefined} [options]
86
- */
87
- function compiler(options) {
88
- /** @type {Config} */
89
- const config = {
90
- afterExit: [],
91
- beforeEnter: [],
92
- transforms: [],
93
- canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'],
94
- enter: {
95
- autolink: opener(link),
96
- autolinkProtocol: onenterdata,
97
- autolinkEmail: onenterdata,
98
- atxHeading: opener(heading),
99
- blockQuote: opener(blockQuote),
100
- characterEscape: onenterdata,
101
- characterReference: onenterdata,
102
- codeFenced: opener(codeFlow),
103
- codeFencedFenceInfo: buffer,
104
- codeFencedFenceMeta: buffer,
105
- codeIndented: opener(codeFlow, buffer),
106
- codeText: opener(codeText, buffer),
107
- codeTextData: onenterdata,
108
- data: onenterdata,
109
- codeFlowValue: onenterdata,
110
- definition: opener(definition),
111
- definitionDestinationString: buffer,
112
- definitionLabelString: buffer,
113
- definitionTitleString: buffer,
114
- emphasis: opener(emphasis),
115
- hardBreakEscape: opener(hardBreak),
116
- hardBreakTrailing: opener(hardBreak),
117
- htmlFlow: opener(html, buffer),
118
- htmlFlowData: onenterdata,
119
- htmlText: opener(html, buffer),
120
- htmlTextData: onenterdata,
121
- image: opener(image),
122
- label: buffer,
123
- link: opener(link),
124
- listItem: opener(listItem),
125
- listItemValue: onenterlistitemvalue,
126
- listOrdered: opener(list, onenterlistordered),
127
- listUnordered: opener(list),
128
- paragraph: opener(paragraph),
129
- reference: onenterreference,
130
- referenceString: buffer,
131
- resourceDestinationString: buffer,
132
- resourceTitleString: buffer,
133
- setextHeading: opener(heading),
134
- strong: opener(strong),
135
- thematicBreak: opener(thematicBreak)
136
- },
137
- exit: {
138
- atxHeading: closer(),
139
- atxHeadingSequence: onexitatxheadingsequence,
140
- autolink: closer(),
141
- autolinkEmail: onexitautolinkemail,
142
- autolinkProtocol: onexitautolinkprotocol,
143
- blockQuote: closer(),
144
- characterEscapeValue: onexitdata,
145
- characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,
146
- characterReferenceMarkerNumeric: onexitcharacterreferencemarker,
147
- characterReferenceValue: onexitcharacterreferencevalue,
148
- characterReference: onexitcharacterreference,
149
- codeFenced: closer(onexitcodefenced),
150
- codeFencedFence: onexitcodefencedfence,
151
- codeFencedFenceInfo: onexitcodefencedfenceinfo,
152
- codeFencedFenceMeta: onexitcodefencedfencemeta,
153
- codeFlowValue: onexitdata,
154
- codeIndented: closer(onexitcodeindented),
155
- codeText: closer(onexitcodetext),
156
- codeTextData: onexitdata,
157
- data: onexitdata,
158
- definition: closer(),
159
- definitionDestinationString: onexitdefinitiondestinationstring,
160
- definitionLabelString: onexitdefinitionlabelstring,
161
- definitionTitleString: onexitdefinitiontitlestring,
162
- emphasis: closer(),
163
- hardBreakEscape: closer(onexithardbreak),
164
- hardBreakTrailing: closer(onexithardbreak),
165
- htmlFlow: closer(onexithtmlflow),
166
- htmlFlowData: onexitdata,
167
- htmlText: closer(onexithtmltext),
168
- htmlTextData: onexitdata,
169
- image: closer(onexitimage),
170
- label: onexitlabel,
171
- labelText: onexitlabeltext,
172
- lineEnding: onexitlineending,
173
- link: closer(onexitlink),
174
- listItem: closer(),
175
- listOrdered: closer(),
176
- listUnordered: closer(),
177
- paragraph: closer(),
178
- referenceString: onexitreferencestring,
179
- resourceDestinationString: onexitresourcedestinationstring,
180
- resourceTitleString: onexitresourcetitlestring,
181
- resource: onexitresource,
182
- setextHeading: closer(onexitsetextheading),
183
- setextHeadingLineSequence: onexitsetextheadinglinesequence,
184
- setextHeadingText: onexitsetextheadingtext,
185
- strong: closer(),
186
- thematicBreak: closer()
187
- }
188
- };
189
- configure(config, (options || {}).mdastExtensions || []);
190
-
191
- /** @type {CompileData} */
192
- const data = {};
193
- return compile;
194
-
195
- /**
196
- * Turn micromark events into an mdast tree.
197
- *
198
- * @param {Array<Event>} events
199
- * Events.
200
- * @returns {Root}
201
- * mdast tree.
202
- */
203
- function compile(events) {
204
- /** @type {Root} */
205
- let tree = {
206
- type: 'root',
207
- children: [],
208
- position: undefined
209
- };
210
- /** @type {Omit<CompileContext, 'sliceSerialize'>} */
211
- const context = {
212
- stack: [tree],
213
- tokenStack: [],
214
- config,
215
- enter,
216
- exit,
217
- buffer,
218
- resume,
219
- data
220
- };
221
- /** @type {Array<number>} */
222
- const listStack = [];
223
- /** @type {Array<Event>} */
224
- const prepared = [];
225
- let index = -1;
226
-
227
- // Add `listItem` tokens and infer spread.
228
- // Each list is prepared while it is last in `prepared`, so nothing shifts.
229
- while (++index < events.length) {
230
- prepared.push(events[index]);
231
- if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
232
- if (events[index][0] === 'enter') {
233
- listStack.push(prepared.length - 1);
234
- } else {
235
- const tail = listStack.pop();
236
- prepareList(prepared, tail);
237
- }
238
- }
239
- }
240
- events = prepared;
241
- index = -1;
242
- while (++index < events.length) {
243
- const handler = config[events[index][0]];
244
- if (events[index][0] === 'enter' && config.beforeEnter.length > 0) {
245
- callListeners(config.beforeEnter, {
246
- ...context,
247
- sliceSerialize: events[index][2].sliceSerialize
248
- }, events[index][1]);
249
- }
250
- if (own.call(handler, events[index][1].type)) {
251
- // Note: spread first, V8 has optimizations for object shape cloning.
252
- handler[events[index][1].type].call({
253
- ...context,
254
- sliceSerialize: events[index][2].sliceSerialize
255
- }, events[index][1]);
256
- }
257
- if (events[index][0] === 'exit' && config.afterExit.length > 0) {
258
- callListeners(config.afterExit, {
259
- ...context,
260
- sliceSerialize: events[index][2].sliceSerialize
261
- }, events[index][1]);
262
- }
263
- }
264
-
265
- // Handle tokens still being open.
266
- if (context.tokenStack.length > 0) {
267
- const tail = context.tokenStack[context.tokenStack.length - 1];
268
- const handler = tail[1] || defaultOnError;
269
- handler.call(context, undefined, tail[0]);
270
- }
271
-
272
- // Figure out `root` position.
273
- tree.position = {
274
- start: point(events.length > 0 ? events[0][1].start : {
275
- line: 1,
276
- column: 1,
277
- offset: 0
278
- }),
279
- end: point(events.length > 0 ? events[events.length - 2][1].end : {
280
- line: 1,
281
- column: 1,
282
- offset: 0
283
- })
284
- };
285
-
286
- // Call transforms.
287
- index = -1;
288
- while (++index < config.transforms.length) {
289
- tree = config.transforms[index](tree) || tree;
290
- }
291
- return tree;
292
- }
293
-
294
- /**
295
- * @param {Array<Handle>} listeners
296
- * Listeners.
297
- * @param {CompileContext} context
298
- * Context.
299
- * @param {Token} token
300
- * Token.
301
- * @returns {undefined}
302
- * Nothing.
303
- */
304
- function callListeners(listeners, context, token) {
305
- let index = -1;
306
- while (++index < listeners.length) {
307
- listeners[index].call(context, token);
308
- }
309
- }
310
-
311
- /**
312
- * @param {Array<Event>} events
313
- * Events, ending with the list to prepare.
314
- * @param {number} start
315
- * Index of the list enter.
316
- * @returns {undefined}
317
- */
318
- function prepareList(events, start) {
319
- const end = events.length - 1;
320
- let index = start - 1;
321
- let containerBalance = -1;
322
- let listSpread = false;
323
- /** @type {Token | undefined} */
324
- let listItem;
325
- /** @type {number | undefined} */
326
- let lineIndex;
327
- /** @type {number | undefined} */
328
- let firstBlankLineIndex;
329
- /** @type {boolean | undefined} */
330
- let atMarker;
331
- /**
332
- * `listItem` events to insert before the event at `at`, in walk order.
333
- * Merged in after the walk, as inserting while walking would shift the
334
- * rest of the list once per item.
335
- * @type {Array<{at: number, event: Event}>}
336
- */
337
- const insertions = [];
338
- while (++index <= end) {
339
- const event = events[index];
340
- switch (event[1].type) {
341
- case "listUnordered":
342
- case "listOrdered":
343
- case "blockQuote":
344
- {
345
- if (event[0] === 'enter') {
346
- containerBalance++;
347
- } else {
348
- containerBalance--;
349
- }
350
- atMarker = undefined;
351
- break;
352
- }
353
- case "lineEndingBlank":
354
- {
355
- if (event[0] === 'enter') {
356
- if (listItem && !atMarker && !containerBalance && !firstBlankLineIndex) {
357
- firstBlankLineIndex = index;
358
- }
359
- atMarker = undefined;
360
- }
361
- break;
362
- }
363
- case "linePrefix":
364
- case "listItemValue":
365
- case "listItemMarker":
366
- case "listItemPrefix":
367
- case "listItemPrefixWhitespace":
368
- {
369
- // Empty.
370
-
371
- break;
372
- }
373
- default:
374
- {
375
- atMarker = undefined;
376
- }
377
- }
378
- if (!containerBalance && event[0] === 'enter' && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === 'exit' && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
379
- if (listItem) {
380
- let tailIndex = index;
381
- lineIndex = undefined;
382
- while (tailIndex--) {
383
- const tailEvent = events[tailIndex];
384
- if (tailEvent[1].type === "lineEnding" || tailEvent[1].type === "lineEndingBlank") {
385
- if (tailEvent[0] === 'exit') continue;
386
- if (lineIndex) {
387
- events[lineIndex][1].type = "lineEndingBlank";
388
- listSpread = true;
389
- }
390
- tailEvent[1].type = "lineEnding";
391
- lineIndex = tailIndex;
392
- } else if (tailEvent[1].type === "linePrefix" || tailEvent[1].type === "blockQuotePrefix" || tailEvent[1].type === "blockQuotePrefixWhitespace" || tailEvent[1].type === "blockQuoteMarker" || tailEvent[1].type === "listItemIndent") {
393
- // Empty
394
- } else {
395
- break;
396
- }
397
- }
398
- if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {
399
- listItem._spread = true;
400
- }
401
-
402
- // Fix position.
403
- listItem.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
404
- insertions.push({
405
- at: lineIndex || index,
406
- event: ['exit', listItem, event[2]]
407
- });
408
- }
409
-
410
- // Create a new list item.
411
- if (event[1].type === "listItemPrefix") {
412
- /** @type {Token} */
413
- const item = {
414
- type: 'listItem',
415
- _spread: false,
416
- start: Object.assign({}, event[1].start),
417
- // @ts-expect-error: we’ll add `end` in a second.
418
- end: undefined
419
- };
420
- listItem = item;
421
- insertions.push({
422
- at: index,
423
- event: ['enter', item, event[2]]
424
- });
425
- firstBlankLineIndex = undefined;
426
- atMarker = true;
427
- }
428
- }
429
- }
430
-
431
- // The list is at the end of `events`: take it off, then push it back with
432
- // the insertions merged in.
433
- // Nothing follows the list, so nothing shifts.
434
- const listEvents = events.splice(start);
435
- let insertion = 0;
436
- index = -1;
437
- while (++index < listEvents.length) {
438
- while (insertion < insertions.length && insertions[insertion].at === start + index) {
439
- events.push(insertions[insertion++].event);
440
- }
441
- events.push(listEvents[index]);
442
- }
443
- events[start][1]._spread = listSpread;
444
- }
445
-
446
- /**
447
- * Create an opener handle.
448
- *
449
- * @param {(token: Token) => Nodes} create
450
- * Create a node.
451
- * @param {Handle | undefined} [and]
452
- * Optional function to also run.
453
- * @returns {Handle}
454
- * Handle.
455
- */
456
- function opener(create, and) {
457
- return open;
458
-
459
- /**
460
- * @this {CompileContext}
461
- * @param {Token} token
462
- * @returns {undefined}
463
- */
464
- function open(token) {
465
- enter.call(this, create(token), token);
466
- if (and) and.call(this, token);
467
- }
468
- }
469
-
470
- /**
471
- * @type {CompileContext['buffer']}
472
- */
473
- function buffer() {
474
- this.stack.push({
475
- type: 'fragment',
476
- children: []
477
- });
478
- }
479
-
480
- /**
481
- * @type {CompileContext['enter']}
482
- */
483
- function enter(node, token, errorHandler) {
484
- const parent = this.stack[this.stack.length - 1];
485
- /** @type {Array<Nodes>} */
486
- const siblings = parent.children;
487
- siblings.push(node);
488
- this.stack.push(node);
489
- this.tokenStack.push([token, errorHandler || undefined]);
490
- node.position = {
491
- start: point(token.start),
492
- // @ts-expect-error: `end` will be patched later.
493
- end: undefined
494
- };
495
- }
496
-
497
- /**
498
- * Create a closer handle.
499
- *
500
- * @param {Handle | undefined} [and]
501
- * Optional function to also run.
502
- * @returns {Handle}
503
- * Handle.
504
- */
505
- function closer(and) {
506
- return close;
507
-
508
- /**
509
- * @this {CompileContext}
510
- * @param {Token} token
511
- * @returns {undefined}
512
- */
513
- function close(token) {
514
- if (and) and.call(this, token);
515
- exit.call(this, token);
516
- }
517
- }
518
-
519
- /**
520
- * @type {CompileContext['exit']}
521
- */
522
- function exit(token, onExitError) {
523
- const node = this.stack.pop();
524
- const open = this.tokenStack.pop();
525
- if (!open) {
526
- throw new Error('Cannot close `' + token.type + '` (' + stringifyPosition({
527
- start: token.start,
528
- end: token.end
529
- }) + '): it’s not open');
530
- }
531
- if (open[0].type !== token.type) {
532
- if (onExitError) {
533
- onExitError.call(this, token, open[0]);
534
- } else {
535
- const handler = open[1] || defaultOnError;
536
- handler.call(this, token, open[0]);
537
- }
538
- }
539
- node.position.end = point(token.end);
540
- }
541
-
542
- /**
543
- * @type {CompileContext['resume']}
544
- */
545
- function resume() {
546
- return toString(this.stack.pop());
547
- }
548
-
549
- //
550
- // Handlers.
551
- //
552
-
553
- /**
554
- * @this {CompileContext}
555
- * @type {Handle}
556
- */
557
- function onenterlistordered() {
558
- this.data.expectingFirstListItemValue = true;
559
- }
560
-
561
- /**
562
- * @this {CompileContext}
563
- * @type {Handle}
564
- */
565
- function onenterlistitemvalue(token) {
566
- if (this.data.expectingFirstListItemValue) {
567
- const ancestor = this.stack[this.stack.length - 2];
568
- ancestor.start = Number.parseInt(this.sliceSerialize(token), 10);
569
- this.data.expectingFirstListItemValue = undefined;
570
- }
571
- }
572
-
573
- /**
574
- * @this {CompileContext}
575
- * @type {Handle}
576
- */
577
- function onexitcodefencedfenceinfo() {
578
- const data = this.resume();
579
- const node = this.stack[this.stack.length - 1];
580
- node.lang = data;
581
- }
582
-
583
- /**
584
- * @this {CompileContext}
585
- * @type {Handle}
586
- */
587
- function onexitcodefencedfencemeta() {
588
- const data = this.resume();
589
- const node = this.stack[this.stack.length - 1];
590
- node.meta = data;
591
- }
592
-
593
- /**
594
- * @this {CompileContext}
595
- * @type {Handle}
596
- */
597
- function onexitcodefencedfence() {
598
- // Exit if this is the closing fence.
599
- if (this.data.flowCodeInside) return;
600
- this.buffer();
601
- this.data.flowCodeInside = true;
602
- }
603
-
604
- /**
605
- * @this {CompileContext}
606
- * @type {Handle}
607
- */
608
- function onexitcodefenced() {
609
- const data = this.resume();
610
- const node = this.stack[this.stack.length - 1];
611
- node.value = data.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, '');
612
- this.data.flowCodeInside = undefined;
613
- }
614
-
615
- /**
616
- * @this {CompileContext}
617
- * @type {Handle}
618
- */
619
- function onexitcodeindented() {
620
- const data = this.resume();
621
- const node = this.stack[this.stack.length - 1];
622
- node.value = data.replace(/(\r?\n|\r)$/g, '');
623
- }
624
-
625
- /**
626
- * @this {CompileContext}
627
- * @type {Handle}
628
- */
629
- function onexitdefinitionlabelstring(token) {
630
- const label = this.resume();
631
- const node = this.stack[this.stack.length - 1];
632
- node.label = label;
633
- node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
634
- }
635
-
636
- /**
637
- * @this {CompileContext}
638
- * @type {Handle}
639
- */
640
- function onexitdefinitiontitlestring() {
641
- const data = this.resume();
642
- const node = this.stack[this.stack.length - 1];
643
- node.title = data;
644
- }
645
-
646
- /**
647
- * @this {CompileContext}
648
- * @type {Handle}
649
- */
650
- function onexitdefinitiondestinationstring() {
651
- const data = this.resume();
652
- const node = this.stack[this.stack.length - 1];
653
- node.url = data;
654
- }
655
-
656
- /**
657
- * @this {CompileContext}
658
- * @type {Handle}
659
- */
660
- function onexitatxheadingsequence(token) {
661
- const node = this.stack[this.stack.length - 1];
662
- if (!node.depth) {
663
- const depth = this.sliceSerialize(token).length;
664
- node.depth = depth;
665
- }
666
- }
667
-
668
- /**
669
- * @this {CompileContext}
670
- * @type {Handle}
671
- */
672
- function onexitsetextheadingtext() {
673
- this.data.setextHeadingSlurpLineEnding = true;
674
- }
675
-
676
- /**
677
- * @this {CompileContext}
678
- * @type {Handle}
679
- */
680
- function onexitsetextheadinglinesequence(token) {
681
- const node = this.stack[this.stack.length - 1];
682
- node.depth = this.sliceSerialize(token).codePointAt(0) === 61 ? 1 : 2;
683
- }
684
-
685
- /**
686
- * @this {CompileContext}
687
- * @type {Handle}
688
- */
689
- function onexitsetextheading() {
690
- this.data.setextHeadingSlurpLineEnding = undefined;
691
- }
692
-
693
- /**
694
- * @this {CompileContext}
695
- * @type {Handle}
696
- */
697
-
698
- function onenterdata(token) {
699
- const node = this.stack[this.stack.length - 1];
700
- /** @type {Array<Nodes>} */
701
- const siblings = node.children;
702
- let tail = siblings[siblings.length - 1];
703
- if (!tail || tail.type !== 'text') {
704
- // Add a new text node.
705
- tail = text();
706
- tail.position = {
707
- start: point(token.start),
708
- // @ts-expect-error: we’ll add `end` later.
709
- end: undefined
710
- };
711
- siblings.push(tail);
712
- }
713
- this.stack.push(tail);
714
- }
715
-
716
- /**
717
- * @this {CompileContext}
718
- * @type {Handle}
719
- */
720
-
721
- function onexitdata(token) {
722
- const tail = this.stack.pop();
723
- tail.value += this.sliceSerialize(token);
724
- tail.position.end = point(token.end);
725
- }
726
-
727
- /**
728
- * @this {CompileContext}
729
- * @type {Handle}
730
- */
731
-
732
- function onexitlineending(token) {
733
- const context = this.stack[this.stack.length - 1];
734
- // If we’re at a hard break, include the line ending in there.
735
- if (this.data.atHardBreak) {
736
- const tail = context.children[context.children.length - 1];
737
- tail.position.end = point(token.end);
738
- this.data.atHardBreak = undefined;
739
- return;
740
- }
741
- if (!this.data.setextHeadingSlurpLineEnding && config.canContainEols.includes(context.type)) {
742
- onenterdata.call(this, token);
743
- onexitdata.call(this, token);
744
- }
745
- }
746
-
747
- /**
748
- * @this {CompileContext}
749
- * @type {Handle}
750
- */
751
-
752
- function onexithardbreak() {
753
- this.data.atHardBreak = true;
754
- }
755
-
756
- /**
757
- * @this {CompileContext}
758
- * @type {Handle}
759
- */
760
-
761
- function onexithtmlflow() {
762
- const data = this.resume();
763
- const node = this.stack[this.stack.length - 1];
764
- node.value = data;
765
- }
766
-
767
- /**
768
- * @this {CompileContext}
769
- * @type {Handle}
770
- */
771
-
772
- function onexithtmltext() {
773
- const data = this.resume();
774
- const node = this.stack[this.stack.length - 1];
775
- node.value = data;
776
- }
777
-
778
- /**
779
- * @this {CompileContext}
780
- * @type {Handle}
781
- */
782
-
783
- function onexitcodetext() {
784
- const data = this.resume();
785
- const node = this.stack[this.stack.length - 1];
786
- node.value = data;
787
- }
788
-
789
- /**
790
- * @this {CompileContext}
791
- * @type {Handle}
792
- */
793
-
794
- function onexitlink() {
795
- const node = this.stack[this.stack.length - 1];
796
- // Note: there are also `identifier` and `label` fields on this link node!
797
- // These are used / cleaned here.
798
-
799
- // To do: clean.
800
- if (this.data.inReference) {
801
- /** @type {ReferenceType} */
802
- const referenceType = this.data.referenceType || 'shortcut';
803
- node.type += 'Reference';
804
- // @ts-expect-error: mutate.
805
- node.referenceType = referenceType;
806
- // @ts-expect-error: mutate.
807
- delete node.url;
808
- delete node.title;
809
- } else {
810
- // @ts-expect-error: mutate.
811
- delete node.identifier;
812
- // @ts-expect-error: mutate.
813
- delete node.label;
814
- }
815
- this.data.referenceType = undefined;
816
- }
817
-
818
- /**
819
- * @this {CompileContext}
820
- * @type {Handle}
821
- */
822
-
823
- function onexitimage() {
824
- const node = this.stack[this.stack.length - 1];
825
- // Note: there are also `identifier` and `label` fields on this link node!
826
- // These are used / cleaned here.
827
-
828
- // To do: clean.
829
- if (this.data.inReference) {
830
- /** @type {ReferenceType} */
831
- const referenceType = this.data.referenceType || 'shortcut';
832
- node.type += 'Reference';
833
- // @ts-expect-error: mutate.
834
- node.referenceType = referenceType;
835
- // @ts-expect-error: mutate.
836
- delete node.url;
837
- delete node.title;
838
- } else {
839
- // @ts-expect-error: mutate.
840
- delete node.identifier;
841
- // @ts-expect-error: mutate.
842
- delete node.label;
843
- }
844
- this.data.referenceType = undefined;
845
- }
846
-
847
- /**
848
- * @this {CompileContext}
849
- * @type {Handle}
850
- */
851
-
852
- function onexitlabeltext(token) {
853
- const string = this.sliceSerialize(token);
854
- const ancestor = this.stack[this.stack.length - 2];
855
- // @ts-expect-error: stash this on the node, as it might become a reference
856
- // later.
857
- ancestor.label = decodeString(string);
858
- // @ts-expect-error: same as above.
859
- ancestor.identifier = normalizeIdentifier(string).toLowerCase();
860
- }
861
-
862
- /**
863
- * @this {CompileContext}
864
- * @type {Handle}
865
- */
866
-
867
- function onexitlabel() {
868
- const fragment = this.stack[this.stack.length - 1];
869
- const value = this.resume();
870
- const node = this.stack[this.stack.length - 1];
871
- // Assume a reference.
872
- this.data.inReference = true;
873
- if (node.type === 'link') {
874
- /** @type {Array<PhrasingContent>} */
875
- const children = fragment.children;
876
- node.children = children;
877
- } else {
878
- node.alt = value;
879
- }
880
- }
881
-
882
- /**
883
- * @this {CompileContext}
884
- * @type {Handle}
885
- */
886
-
887
- function onexitresourcedestinationstring() {
888
- const data = this.resume();
889
- const node = this.stack[this.stack.length - 1];
890
- node.url = data;
891
- }
892
-
893
- /**
894
- * @this {CompileContext}
895
- * @type {Handle}
896
- */
897
-
898
- function onexitresourcetitlestring() {
899
- const data = this.resume();
900
- const node = this.stack[this.stack.length - 1];
901
- node.title = data;
902
- }
903
-
904
- /**
905
- * @this {CompileContext}
906
- * @type {Handle}
907
- */
908
-
909
- function onexitresource() {
910
- this.data.inReference = undefined;
911
- }
912
-
913
- /**
914
- * @this {CompileContext}
915
- * @type {Handle}
916
- */
917
-
918
- function onenterreference() {
919
- this.data.referenceType = 'collapsed';
920
- }
921
-
922
- /**
923
- * @this {CompileContext}
924
- * @type {Handle}
925
- */
926
-
927
- function onexitreferencestring(token) {
928
- const label = this.resume();
929
- const node = this.stack[this.stack.length - 1];
930
- // @ts-expect-error: stash this on the node, as it might become a reference
931
- // later.
932
- node.label = label;
933
- // @ts-expect-error: same as above.
934
- node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
935
- this.data.referenceType = 'full';
936
- }
937
-
938
- /**
939
- * @this {CompileContext}
940
- * @type {Handle}
941
- */
942
-
943
- function onexitcharacterreferencemarker(token) {
944
- this.data.characterReferenceType = token.type;
945
- }
946
-
947
- /**
948
- * @this {CompileContext}
949
- * @type {Handle}
950
- */
951
- function onexitcharacterreferencevalue(token) {
952
- const data = this.sliceSerialize(token);
953
- const type = this.data.characterReferenceType;
954
- /** @type {string} */
955
- let value;
956
- if (type) {
957
- value = decodeNumericCharacterReference(data, type === "characterReferenceMarkerNumeric" ? 10 : 16);
958
- this.data.characterReferenceType = undefined;
959
- } else {
960
- const result = decodeNamedCharacterReference(data);
961
- value = result;
962
- }
963
- const tail = this.stack[this.stack.length - 1];
964
- tail.value += value;
965
- }
966
-
967
- /**
968
- * @this {CompileContext}
969
- * @type {Handle}
970
- */
971
- function onexitcharacterreference(token) {
972
- const tail = this.stack.pop();
973
- tail.position.end = point(token.end);
974
- }
975
-
976
- /**
977
- * @this {CompileContext}
978
- * @type {Handle}
979
- */
980
- function onexitautolinkprotocol(token) {
981
- onexitdata.call(this, token);
982
- const node = this.stack[this.stack.length - 1];
983
- node.url = this.sliceSerialize(token);
984
- }
985
-
986
- /**
987
- * @this {CompileContext}
988
- * @type {Handle}
989
- */
990
- function onexitautolinkemail(token) {
991
- onexitdata.call(this, token);
992
- const node = this.stack[this.stack.length - 1];
993
- node.url = 'mailto:' + this.sliceSerialize(token);
994
- }
995
-
996
- //
997
- // Creaters.
998
- //
999
-
1000
- // Each node factory pre-declares `position` as undefined as the trailing
1001
- // property. enter() patches it to a real value, but the property already
1002
- // exists, so V8 sees a single hidden class for each node type from
1003
- // construction through the rest of the pipeline. Without the pre-declare,
1004
- // each node took a hidden-class transition when enter() added position.
1005
-
1006
- /** @returns {Blockquote} */
1007
- function blockQuote() {
1008
- return {
1009
- type: 'blockquote',
1010
- children: [],
1011
- position: undefined
1012
- };
1013
- }
1014
-
1015
- /** @returns {Code} */
1016
- function codeFlow() {
1017
- return {
1018
- type: 'code',
1019
- lang: null,
1020
- meta: null,
1021
- value: '',
1022
- position: undefined
1023
- };
1024
- }
1025
-
1026
- /** @returns {InlineCode} */
1027
- function codeText() {
1028
- return {
1029
- type: 'inlineCode',
1030
- value: '',
1031
- position: undefined
1032
- };
1033
- }
1034
-
1035
- /** @returns {Definition} */
1036
- function definition() {
1037
- return {
1038
- type: 'definition',
1039
- identifier: '',
1040
- label: null,
1041
- title: null,
1042
- url: '',
1043
- position: undefined
1044
- };
1045
- }
1046
-
1047
- /** @returns {Emphasis} */
1048
- function emphasis() {
1049
- return {
1050
- type: 'emphasis',
1051
- children: [],
1052
- position: undefined
1053
- };
1054
- }
1055
-
1056
- /** @returns {Heading} */
1057
- function heading() {
1058
- return {
1059
- type: 'heading',
1060
- // @ts-expect-error `depth` will be set later.
1061
- depth: 0,
1062
- children: [],
1063
- position: undefined
1064
- };
1065
- }
1066
-
1067
- /** @returns {Break} */
1068
- function hardBreak() {
1069
- return {
1070
- type: 'break',
1071
- position: undefined
1072
- };
1073
- }
1074
-
1075
- /** @returns {Html} */
1076
- function html() {
1077
- return {
1078
- type: 'html',
1079
- value: '',
1080
- position: undefined
1081
- };
1082
- }
1083
-
1084
- /** @returns {Image} */
1085
- function image() {
1086
- return {
1087
- type: 'image',
1088
- title: null,
1089
- url: '',
1090
- alt: null,
1091
- position: undefined
1092
- };
1093
- }
1094
-
1095
- /** @returns {Link} */
1096
- function link() {
1097
- return {
1098
- type: 'link',
1099
- title: null,
1100
- url: '',
1101
- children: [],
1102
- position: undefined
1103
- };
1104
- }
1105
-
1106
- /**
1107
- * @param {Token} token
1108
- * @returns {List}
1109
- */
1110
- function list(token) {
1111
- return {
1112
- type: 'list',
1113
- ordered: token.type === 'listOrdered',
1114
- start: null,
1115
- spread: token._spread,
1116
- children: [],
1117
- position: undefined
1118
- };
1119
- }
1120
-
1121
- /**
1122
- * @param {Token} token
1123
- * @returns {ListItem}
1124
- */
1125
- function listItem(token) {
1126
- return {
1127
- type: 'listItem',
1128
- spread: token._spread,
1129
- checked: null,
1130
- children: [],
1131
- position: undefined
1132
- };
1133
- }
1134
-
1135
- /** @returns {Paragraph} */
1136
- function paragraph() {
1137
- return {
1138
- type: 'paragraph',
1139
- children: [],
1140
- position: undefined
1141
- };
1142
- }
1143
-
1144
- /** @returns {Strong} */
1145
- function strong() {
1146
- return {
1147
- type: 'strong',
1148
- children: [],
1149
- position: undefined
1150
- };
1151
- }
1152
-
1153
- /** @returns {Text} */
1154
- function text() {
1155
- return {
1156
- type: 'text',
1157
- value: '',
1158
- position: undefined
1159
- };
1160
- }
1161
-
1162
- /** @returns {ThematicBreak} */
1163
- function thematicBreak() {
1164
- return {
1165
- type: 'thematicBreak',
1166
- position: undefined
1167
- };
1168
- }
1169
- }
1170
-
1171
- /**
1172
- * Copy a point-like value.
1173
- *
1174
- * @param {Point} d
1175
- * Point-like value.
1176
- * @returns {Point}
1177
- * unist point.
1178
- */
1179
- function point(d) {
1180
- return {
1181
- line: d.line,
1182
- column: d.column,
1183
- offset: d.offset
1184
- };
1185
- }
1186
-
1187
- /**
1188
- * @param {Config} combined
1189
- * @param {Array<Array<Extension> | Extension>} extensions
1190
- * @returns {undefined}
1191
- */
1192
- function configure(combined, extensions) {
1193
- let index = -1;
1194
- while (++index < extensions.length) {
1195
- const value = extensions[index];
1196
- if (Array.isArray(value)) {
1197
- configure(combined, value);
1198
- } else {
1199
- extension(combined, value);
1200
- }
1201
- }
1202
- }
1203
-
1204
- /**
1205
- * @param {Config} combined
1206
- * @param {Extension} extension
1207
- * @returns {undefined}
1208
- */
1209
- function extension(combined, extension) {
1210
- /** @type {keyof Extension} */
1211
- let key;
1212
- for (key in extension) {
1213
- if (own.call(extension, key)) {
1214
- switch (key) {
1215
- case 'canContainEols':
1216
- {
1217
- const right = extension[key];
1218
- if (right) {
1219
- combined[key].push(...right);
1220
- }
1221
- break;
1222
- }
1223
- case 'transforms':
1224
- {
1225
- const right = extension[key];
1226
- if (right) {
1227
- combined[key].push(...right);
1228
- }
1229
- break;
1230
- }
1231
- case 'afterExit':
1232
- case 'beforeEnter':
1233
- {
1234
- const right = extension[key];
1235
- if (right) {
1236
- combined[key].push(right);
1237
- }
1238
- break;
1239
- }
1240
- case 'enter':
1241
- case 'exit':
1242
- {
1243
- const right = extension[key];
1244
- if (right) {
1245
- Object.assign(combined[key], right);
1246
- }
1247
- break;
1248
- }
1249
- // No default
1250
- }
1251
- }
1252
- }
1253
- }
1254
-
1255
- /** @type {OnEnterError} */
1256
- function defaultOnError(left, right) {
1257
- if (left) {
1258
- throw new Error('Cannot close `' + left.type + '` (' + stringifyPosition({
1259
- start: left.start,
1260
- end: left.end
1261
- }) + '): a different token (`' + right.type + '`, ' + stringifyPosition({
1262
- start: right.start,
1263
- end: right.end
1264
- }) + ') is open');
1265
- }
1266
- throw new Error('Cannot close document, a token (`' + right.type + '`, ' + stringifyPosition({
1267
- start: right.start,
1268
- end: right.end
1269
- }) + ') is still open');
1270
- }