@mininglamp-oss/octo-runtime 1.1.10 → 1.1.12

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 (916) hide show
  1. package/README.md +26 -142
  2. package/apps/cli/README.md +7 -102
  3. package/apps/cli/dist/adapters.js +41 -19
  4. package/apps/cli/dist/build-info.json +2 -2
  5. package/apps/cli/dist/command-tree.d.ts +1 -13
  6. package/apps/cli/dist/command-tree.js +130 -317
  7. package/apps/cli/dist/foreground.d.ts +1 -2
  8. package/apps/cli/dist/help.d.ts +0 -1
  9. package/apps/cli/dist/help.js +2 -13
  10. package/apps/cli/dist/index.js +14 -1
  11. package/apps/cli/dist/logs.d.ts +2 -2
  12. package/apps/cli/dist/logs.js +14 -17
  13. package/apps/cli/dist/main.js +99 -182
  14. package/apps/cli/dist/manifest.json +0 -50
  15. package/apps/cli/dist/module-manifest.d.ts +1 -1
  16. package/apps/cli/dist/module-manifest.js +23 -6
  17. package/apps/cli/dist/openclaw.d.ts +0 -8
  18. package/apps/cli/dist/openclaw.js +2 -114
  19. package/apps/cli/dist/output.d.ts +19 -1
  20. package/apps/cli/dist/output.js +185 -44
  21. package/apps/cli/dist/playboard.js +17 -9
  22. package/apps/cli/dist/service-control.js +0 -1
  23. package/apps/cli/dist/state.d.ts +5 -2
  24. package/apps/cli/dist/state.js +48 -13
  25. package/dist/public/codex.d.ts +1 -0
  26. package/dist/public/codex.js +1 -0
  27. package/dist/public/executor-kernel.d.ts +4 -0
  28. package/dist/public/executor-kernel.js +2 -0
  29. package/dist/public/host.d.ts +6 -3
  30. package/dist/public/host.js +3 -1
  31. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +20 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -6
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +78 -262
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +11 -6
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +198 -52
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +58 -0
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +650 -0
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +3 -0
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +15 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-R3PDZLX5.js → chunk-H3S6WM37.js} +3 -3
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FGFEM7JP.js → chunk-RISQ6NGV.js} +1 -1
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-TSRZVLIG.js → chunk-SMTJTIN7.js} +1 -1
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +3 -3
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +4 -4
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +4 -4
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +2 -0
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -0
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +25 -0
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +4 -1
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +1 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.d.ts +1 -13
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +4 -27
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +4 -8
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +0 -4
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +6 -60
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +0 -10
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +0 -83
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  76. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +41 -19
  77. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  78. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.d.ts +1 -13
  79. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +130 -317
  80. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/foreground.d.ts +1 -2
  81. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +0 -1
  82. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +2 -13
  83. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +14 -1
  84. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.d.ts +2 -2
  85. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +14 -17
  86. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +99 -182
  87. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -50
  88. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
  89. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +23 -6
  90. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.d.ts +0 -8
  91. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +2 -114
  92. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +19 -1
  93. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +185 -44
  94. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +17 -9
  95. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +0 -1
  96. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.d.ts +5 -2
  97. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +48 -13
  98. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
  99. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +5 -0
  100. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +29 -0
  101. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +210 -0
  102. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.d.ts +1 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.js +1 -0
  104. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +10 -0
  105. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +495 -0
  106. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +6 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.js +6 -0
  108. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.d.ts +4 -0
  109. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.js +5 -0
  110. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.d.ts +59 -0
  111. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +302 -0
  112. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.d.ts +1 -0
  113. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.js +1 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.d.ts +1 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.js +1 -0
  116. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.d.ts +21 -0
  117. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.js +138 -0
  118. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.d.ts +8 -0
  119. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +53 -0
  120. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.d.ts +82 -0
  121. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.js +371 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +12 -0
  123. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +29 -0
  124. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +87 -0
  125. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.js +10 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +54 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +1219 -0
  128. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +5988 -0
  129. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +56 -0
  130. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc-fixtures.json +75 -0
  131. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +538 -0
  132. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +116 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +4713 -0
  134. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +761 -0
  135. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +663 -0
  136. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +191 -0
  137. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  138. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +26 -18
  139. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +153 -14
  140. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +1 -1
  141. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +22 -15
  142. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  143. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.d.ts +1 -30
  144. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +2 -199
  145. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +1 -10
  146. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -446
  147. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/endpoint.js +2 -0
  148. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +2 -0
  149. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +13 -2
  150. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +4 -1
  151. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +4 -1
  152. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.d.ts +1 -53
  153. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js +2 -280
  154. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.d.ts +5 -10
  155. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.js +4 -1
  156. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.d.ts +20 -0
  157. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.js +180 -0
  158. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +41 -15
  159. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +5 -2
  160. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +48 -5
  161. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.d.ts +1 -0
  162. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.js +1 -0
  163. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.d.ts +1 -0
  164. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.js +1 -0
  165. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.d.ts +4 -0
  166. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.js +18 -0
  167. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +1 -10
  168. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +2 -23
  169. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.d.ts +2 -72
  170. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.js +2 -10
  171. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -4
  172. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +1 -1
  173. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +12 -5
  174. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.d.ts +5 -1
  175. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.js +9 -0
  176. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.d.ts +5 -6
  177. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.js +33 -45
  178. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/identity.js +6 -0
  179. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +4 -6
  180. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +3 -5
  181. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -17
  182. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
  183. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -0
  184. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -0
  185. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +52 -8
  186. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.d.ts +9 -0
  187. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.js +20 -0
  188. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +3 -1
  189. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +1 -0
  190. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +27 -29
  191. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +86 -37
  192. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +1 -6
  193. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +3 -17
  194. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.d.ts +5 -0
  195. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
  196. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  197. package/node_modules/semver/classes/range.js +2 -2
  198. package/node_modules/semver/internal/constants.js +30 -0
  199. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  200. package/node_modules/semver/package.json +1 -1
  201. package/node_modules/ws/README.md +21 -29
  202. package/node_modules/ws/lib/buffer-util.js +13 -2
  203. package/node_modules/ws/lib/sender.js +4 -1
  204. package/node_modules/ws/lib/websocket.js +8 -3
  205. package/node_modules/ws/package.json +1 -1
  206. package/package.json +33 -135
  207. package/packages/octo-runtime-protocol/schema/kernel-ipc-fixtures.json +28 -6
  208. package/packages/octo-runtime-protocol/schema/protocol.schema.json +296 -66
  209. package/apps/cli/dist/extra-command-config.d.ts +0 -4
  210. package/apps/cli/dist/extra-command-config.js +0 -50
  211. package/apps/cli/dist/extra-commands.d.ts +0 -15
  212. package/apps/cli/dist/extra-commands.js +0 -275
  213. package/apps/cli/dist/extras.d.ts +0 -8
  214. package/apps/cli/dist/extras.js +0 -72
  215. package/apps/cli/dist/global-extras.d.ts +0 -16
  216. package/apps/cli/dist/global-extras.js +0 -201
  217. package/apps/cli/dist/status-output.d.ts +0 -10
  218. package/apps/cli/dist/status-output.js +0 -65
  219. package/dist/public/channel-gateway-commands.d.ts +0 -1
  220. package/dist/public/channel-gateway-commands.js +0 -1
  221. package/dist/public/channel-gateway.d.ts +0 -3
  222. package/dist/public/channel-gateway.js +0 -1
  223. package/dist/public/channel-wecom-commands.d.ts +0 -1
  224. package/dist/public/channel-wecom-commands.js +0 -1
  225. package/dist/public/channel-wecom.d.ts +0 -2
  226. package/dist/public/channel-wecom.js +0 -1
  227. package/dist/public/extra.d.ts +0 -5
  228. package/dist/public/extra.js +0 -3
  229. package/dist/public/webui-commands.d.ts +0 -1
  230. package/dist/public/webui-commands.js +0 -1
  231. package/dist/public/webui.d.ts +0 -1
  232. package/dist/public/webui.js +0 -1
  233. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +0 -4
  234. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +0 -50
  235. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +0 -15
  236. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +0 -275
  237. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +0 -8
  238. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +0 -72
  239. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +0 -16
  240. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +0 -201
  241. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.d.ts +0 -10
  242. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.js +0 -65
  243. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +0 -8
  244. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +0 -62
  245. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  246. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +0 -50
  247. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +0 -140
  248. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +0 -3
  249. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +0 -27
  250. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.d.ts +0 -17
  251. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.js +0 -123
  252. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +0 -15
  253. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +0 -1489
  254. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +0 -28
  255. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +0 -77
  256. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +0 -71
  257. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +0 -153
  258. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +0 -15
  259. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +0 -28
  260. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +0 -4
  261. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +0 -124
  262. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +0 -172
  263. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +0 -22
  264. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +0 -46
  265. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +0 -16
  266. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +0 -285
  267. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +0 -20
  268. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +0 -109
  269. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +0 -15
  270. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +0 -36
  271. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +0 -16
  272. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +0 -98
  273. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +0 -6
  274. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +0 -10
  275. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +0 -17
  276. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +0 -238
  277. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +0 -29
  278. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +0 -171
  279. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +0 -44
  280. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +0 -392
  281. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +0 -3
  282. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +0 -27
  283. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +0 -4
  284. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +0 -87
  285. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +0 -20
  286. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +0 -13
  287. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +0 -9
  288. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +0 -162
  289. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +0 -12
  290. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +0 -154
  291. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +0 -34
  292. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +0 -67
  293. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +0 -588
  294. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +0 -16
  295. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +0 -83
  296. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +0 -132
  297. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +0 -226
  298. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +0 -65
  299. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +0 -202
  300. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +0 -112
  301. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +0 -138
  302. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -48
  303. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +0 -116
  304. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +0 -51
  305. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +0 -79
  306. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +0 -30
  307. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +0 -222
  308. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +0 -13
  309. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +0 -13
  310. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +0 -92
  311. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +0 -173
  312. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +0 -84
  313. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +0 -110
  314. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +0 -87
  315. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +0 -45
  316. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +0 -2
  317. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +0 -7
  318. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +0 -5
  319. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +0 -23
  320. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +0 -20
  321. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +0 -75
  322. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +0 -22
  323. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +0 -136
  324. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +0 -7
  325. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +0 -40
  326. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +0 -70
  327. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +0 -646
  328. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +0 -17
  329. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +0 -91
  330. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +0 -18
  331. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +0 -148
  332. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +0 -15
  333. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +0 -257
  334. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +0 -12
  335. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +0 -133
  336. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +0 -21
  337. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +0 -76
  338. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +0 -6
  339. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +0 -163
  340. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +0 -4
  341. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +0 -113
  342. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -13
  343. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -75
  344. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +0 -6
  345. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +0 -117
  346. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +0 -16
  347. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +0 -74
  348. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +0 -4
  349. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +0 -19
  350. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +0 -7
  351. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +0 -90
  352. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +0 -20
  353. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +0 -85
  354. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +0 -34
  355. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +0 -430
  356. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +0 -6
  357. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +0 -63
  358. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +0 -6
  359. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +0 -60
  360. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +0 -9
  361. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +0 -71
  362. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +0 -44
  363. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +0 -357
  364. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +0 -33
  365. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  366. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +0 -11
  367. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +0 -754
  368. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +0 -35
  369. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +0 -93
  370. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +0 -4
  371. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +0 -128
  372. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +0 -78
  373. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +0 -1
  374. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +0 -16
  375. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +0 -69
  376. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +0 -12
  377. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +0 -95
  378. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +0 -3
  379. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +0 -85
  380. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +0 -10
  381. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +0 -6
  382. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +0 -6
  383. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +0 -109
  384. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +0 -12
  385. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +0 -73
  386. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +0 -24
  387. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +0 -1
  388. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +0 -45
  389. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +0 -258
  390. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +0 -21
  391. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +0 -124
  392. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +0 -53
  393. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +0 -219
  394. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +0 -10
  395. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +0 -52
  396. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +0 -31
  397. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +0 -134
  398. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +0 -3
  399. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +0 -51
  400. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +0 -3
  401. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +0 -423
  402. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +0 -25
  403. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +0 -130
  404. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-BLMf2Etg.js +0 -73
  405. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +0 -1
  406. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +0 -3
  407. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +0 -28
  408. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +0 -32
  409. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +0 -165
  410. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +0 -70
  411. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +0 -16
  412. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.d.ts +0 -20
  413. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +0 -134
  414. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.d.ts +0 -4
  415. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.js +0 -21
  416. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +0 -22
  417. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -309
  418. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -55
  419. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -375
  420. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.d.ts +0 -7
  421. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.js +0 -39
  422. package/node_modules/@types/debug/LICENSE +0 -21
  423. package/node_modules/@types/debug/README.md +0 -69
  424. package/node_modules/@types/debug/index.d.ts +0 -50
  425. package/node_modules/@types/debug/package.json +0 -58
  426. package/node_modules/@types/mdast/LICENSE +0 -21
  427. package/node_modules/@types/mdast/README.md +0 -15
  428. package/node_modules/@types/mdast/index.d.ts +0 -1123
  429. package/node_modules/@types/mdast/package.json +0 -47
  430. package/node_modules/@types/ms/LICENSE +0 -21
  431. package/node_modules/@types/ms/README.md +0 -82
  432. package/node_modules/@types/ms/index.d.ts +0 -63
  433. package/node_modules/@types/ms/package.json +0 -26
  434. package/node_modules/@types/unist/LICENSE +0 -21
  435. package/node_modules/@types/unist/README.md +0 -15
  436. package/node_modules/@types/unist/index.d.ts +0 -119
  437. package/node_modules/@types/unist/package.json +0 -60
  438. package/node_modules/character-entities/index.d.ts +0 -6
  439. package/node_modules/character-entities/index.js +0 -2132
  440. package/node_modules/character-entities/license +0 -22
  441. package/node_modules/character-entities/package.json +0 -78
  442. package/node_modules/character-entities/readme.md +0 -152
  443. package/node_modules/debug/LICENSE +0 -20
  444. package/node_modules/debug/README.md +0 -481
  445. package/node_modules/debug/package.json +0 -64
  446. package/node_modules/debug/src/browser.js +0 -272
  447. package/node_modules/debug/src/common.js +0 -292
  448. package/node_modules/debug/src/index.js +0 -10
  449. package/node_modules/debug/src/node.js +0 -263
  450. package/node_modules/decode-named-character-reference/index.d.ts +0 -13
  451. package/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  452. package/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  453. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  454. package/node_modules/decode-named-character-reference/index.dom.js +0 -32
  455. package/node_modules/decode-named-character-reference/index.js +0 -19
  456. package/node_modules/decode-named-character-reference/license +0 -22
  457. package/node_modules/decode-named-character-reference/package.json +0 -90
  458. package/node_modules/decode-named-character-reference/readme.md +0 -136
  459. package/node_modules/dequal/dist/index.js +0 -86
  460. package/node_modules/dequal/dist/index.min.js +0 -1
  461. package/node_modules/dequal/dist/index.mjs +0 -84
  462. package/node_modules/dequal/index.d.ts +0 -1
  463. package/node_modules/dequal/license +0 -21
  464. package/node_modules/dequal/lite/index.d.ts +0 -1
  465. package/node_modules/dequal/lite/index.js +0 -31
  466. package/node_modules/dequal/lite/index.min.js +0 -1
  467. package/node_modules/dequal/lite/index.mjs +0 -29
  468. package/node_modules/dequal/package.json +0 -57
  469. package/node_modules/dequal/readme.md +0 -112
  470. package/node_modules/devlop/lib/default.js +0 -9
  471. package/node_modules/devlop/lib/development.d.ts +0 -84
  472. package/node_modules/devlop/lib/development.js +0 -238
  473. package/node_modules/devlop/license +0 -22
  474. package/node_modules/devlop/package.json +0 -80
  475. package/node_modules/devlop/readme.md +0 -360
  476. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
  477. package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
  478. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
  479. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
  480. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1455
  481. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -321
  482. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
  483. package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
  484. package/node_modules/mdast-util-from-markdown/index.js +0 -2
  485. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
  486. package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
  487. package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1270
  488. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -321
  489. package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
  490. package/node_modules/mdast-util-from-markdown/license +0 -22
  491. package/node_modules/mdast-util-from-markdown/package.json +0 -98
  492. package/node_modules/mdast-util-from-markdown/readme.md +0 -549
  493. package/node_modules/mdast-util-to-string/index.d.ts +0 -2
  494. package/node_modules/mdast-util-to-string/index.js +0 -5
  495. package/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
  496. package/node_modules/mdast-util-to-string/lib/index.js +0 -108
  497. package/node_modules/mdast-util-to-string/license +0 -22
  498. package/node_modules/mdast-util-to-string/package.json +0 -78
  499. package/node_modules/mdast-util-to-string/readme.md +0 -218
  500. package/node_modules/micromark/dev/index.d.ts +0 -82
  501. package/node_modules/micromark/dev/index.d.ts.map +0 -1
  502. package/node_modules/micromark/dev/index.js +0 -68
  503. package/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  504. package/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  505. package/node_modules/micromark/dev/lib/compile.js +0 -1162
  506. package/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  507. package/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  508. package/node_modules/micromark/dev/lib/constructs.js +0 -101
  509. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  510. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  511. package/node_modules/micromark/dev/lib/create-tokenizer.js +0 -718
  512. package/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  513. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  514. package/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  515. package/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  516. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  517. package/node_modules/micromark/dev/lib/initialize/document.js +0 -449
  518. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  519. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  520. package/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  521. package/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  522. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  523. package/node_modules/micromark/dev/lib/initialize/text.js +0 -248
  524. package/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  525. package/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  526. package/node_modules/micromark/dev/lib/parse.js +0 -58
  527. package/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  528. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  529. package/node_modules/micromark/dev/lib/postprocess.js +0 -19
  530. package/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  531. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  532. package/node_modules/micromark/dev/lib/preprocess.js +0 -139
  533. package/node_modules/micromark/dev/stream.d.ts +0 -35
  534. package/node_modules/micromark/dev/stream.d.ts.map +0 -1
  535. package/node_modules/micromark/dev/stream.js +0 -270
  536. package/node_modules/micromark/index.d.ts +0 -82
  537. package/node_modules/micromark/index.d.ts.map +0 -1
  538. package/node_modules/micromark/index.js +0 -60
  539. package/node_modules/micromark/lib/compile.d.ts +0 -16
  540. package/node_modules/micromark/lib/compile.d.ts.map +0 -1
  541. package/node_modules/micromark/lib/compile.js +0 -1068
  542. package/node_modules/micromark/lib/constructs.d.ts +0 -73
  543. package/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  544. package/node_modules/micromark/lib/constructs.js +0 -85
  545. package/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  546. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  547. package/node_modules/micromark/lib/create-tokenizer.js +0 -613
  548. package/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  549. package/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  550. package/node_modules/micromark/lib/initialize/content.js +0 -79
  551. package/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  552. package/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  553. package/node_modules/micromark/lib/initialize/document.js +0 -370
  554. package/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  555. package/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  556. package/node_modules/micromark/lib/initialize/flow.js +0 -58
  557. package/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  558. package/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  559. package/node_modules/micromark/lib/initialize/text.js +0 -216
  560. package/node_modules/micromark/lib/parse.d.ts +0 -10
  561. package/node_modules/micromark/lib/parse.d.ts.map +0 -1
  562. package/node_modules/micromark/lib/parse.js +0 -56
  563. package/node_modules/micromark/lib/postprocess.d.ts +0 -9
  564. package/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  565. package/node_modules/micromark/lib/postprocess.js +0 -18
  566. package/node_modules/micromark/lib/preprocess.d.ts +0 -13
  567. package/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  568. package/node_modules/micromark/lib/preprocess.js +0 -112
  569. package/node_modules/micromark/license +0 -22
  570. package/node_modules/micromark/package.json +0 -87
  571. package/node_modules/micromark/readme.md +0 -488
  572. package/node_modules/micromark/stream.d.ts +0 -35
  573. package/node_modules/micromark/stream.d.ts.map +0 -1
  574. package/node_modules/micromark/stream.js +0 -256
  575. package/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  576. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  577. package/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  578. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  579. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  580. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -294
  581. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  582. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  583. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  584. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  585. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  586. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  587. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  588. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  589. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  590. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  591. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  592. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  593. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  594. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  595. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  596. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  597. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  598. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -472
  599. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  600. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  601. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -178
  602. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  603. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  604. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  605. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  606. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  607. package/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  608. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  609. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  610. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  611. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  612. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  613. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  614. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  615. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  616. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -229
  617. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  618. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  619. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -938
  620. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  621. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  622. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  623. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  624. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  625. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -658
  626. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  627. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  628. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -119
  629. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  630. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  631. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -71
  632. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  633. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  634. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  635. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  636. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  637. package/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  638. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +0 -4
  639. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  640. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +0 -67
  641. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  642. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  643. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -213
  644. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  645. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  646. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  647. package/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  648. package/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  649. package/node_modules/micromark-core-commonmark/index.js +0 -22
  650. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  651. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  652. package/node_modules/micromark-core-commonmark/lib/attention.js +0 -231
  653. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  654. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  655. package/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  656. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  657. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  658. package/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  659. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  660. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  661. package/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  662. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  663. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  664. package/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  665. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  666. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  667. package/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  668. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  669. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  670. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -422
  671. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  672. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  673. package/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -159
  674. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  675. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  676. package/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  677. package/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  678. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  679. package/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  680. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  681. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  682. package/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  683. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  684. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  685. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  686. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  687. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  688. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -191
  689. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  690. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  691. package/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -827
  692. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  693. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  694. package/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  695. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  696. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  697. package/node_modules/micromark-core-commonmark/lib/label-end.js +0 -561
  698. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  699. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  700. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -110
  701. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  702. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  703. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -63
  704. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  705. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  706. package/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  707. package/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  708. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  709. package/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  710. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +0 -4
  711. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  712. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +0 -61
  713. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  714. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  715. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -187
  716. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  717. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  718. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  719. package/node_modules/micromark-core-commonmark/license +0 -22
  720. package/node_modules/micromark-core-commonmark/package.json +0 -62
  721. package/node_modules/micromark-core-commonmark/readme.md +0 -171
  722. package/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  723. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  724. package/node_modules/micromark-factory-destination/dev/index.js +0 -255
  725. package/node_modules/micromark-factory-destination/index.d.ts +0 -42
  726. package/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  727. package/node_modules/micromark-factory-destination/index.js +0 -206
  728. package/node_modules/micromark-factory-destination/license +0 -22
  729. package/node_modules/micromark-factory-destination/package.json +0 -57
  730. package/node_modules/micromark-factory-destination/readme.md +0 -234
  731. package/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  732. package/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  733. package/node_modules/micromark-factory-label/dev/index.js +0 -172
  734. package/node_modules/micromark-factory-label/index.d.ts +0 -37
  735. package/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  736. package/node_modules/micromark-factory-label/index.js +0 -148
  737. package/node_modules/micromark-factory-label/license +0 -22
  738. package/node_modules/micromark-factory-label/package.json +0 -60
  739. package/node_modules/micromark-factory-label/readme.md +0 -224
  740. package/node_modules/micromark-factory-space/dev/index.d.ts +0 -60
  741. package/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  742. package/node_modules/micromark-factory-space/dev/index.js +0 -122
  743. package/node_modules/micromark-factory-space/index.d.ts +0 -60
  744. package/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  745. package/node_modules/micromark-factory-space/index.js +0 -116
  746. package/node_modules/micromark-factory-space/license +0 -22
  747. package/node_modules/micromark-factory-space/package.json +0 -46
  748. package/node_modules/micromark-factory-space/readme.md +0 -225
  749. package/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  750. package/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  751. package/node_modules/micromark-factory-title/dev/index.js +0 -169
  752. package/node_modules/micromark-factory-title/index.d.ts +0 -36
  753. package/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  754. package/node_modules/micromark-factory-title/index.js +0 -158
  755. package/node_modules/micromark-factory-title/license +0 -22
  756. package/node_modules/micromark-factory-title/package.json +0 -58
  757. package/node_modules/micromark-factory-title/readme.md +0 -229
  758. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  759. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  760. package/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  761. package/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  762. package/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  763. package/node_modules/micromark-factory-whitespace/index.js +0 -44
  764. package/node_modules/micromark-factory-whitespace/license +0 -22
  765. package/node_modules/micromark-factory-whitespace/package.json +0 -57
  766. package/node_modules/micromark-factory-whitespace/readme.md +0 -205
  767. package/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  768. package/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  769. package/node_modules/micromark-util-character/dev/index.js +0 -252
  770. package/node_modules/micromark-util-character/index.d.ts +0 -195
  771. package/node_modules/micromark-util-character/index.d.ts.map +0 -1
  772. package/node_modules/micromark-util-character/index.js +0 -246
  773. package/node_modules/micromark-util-character/license +0 -22
  774. package/node_modules/micromark-util-character/package.json +0 -57
  775. package/node_modules/micromark-util-character/readme.md +0 -446
  776. package/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  777. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  778. package/node_modules/micromark-util-chunked/dev/index.js +0 -89
  779. package/node_modules/micromark-util-chunked/index.d.ts +0 -41
  780. package/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  781. package/node_modules/micromark-util-chunked/index.js +0 -81
  782. package/node_modules/micromark-util-chunked/license +0 -22
  783. package/node_modules/micromark-util-chunked/package.json +0 -57
  784. package/node_modules/micromark-util-chunked/readme.md +0 -219
  785. package/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  786. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  787. package/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  788. package/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  789. package/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  790. package/node_modules/micromark-util-classify-character/index.js +0 -27
  791. package/node_modules/micromark-util-classify-character/license +0 -22
  792. package/node_modules/micromark-util-classify-character/package.json +0 -59
  793. package/node_modules/micromark-util-classify-character/readme.md +0 -205
  794. package/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  795. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  796. package/node_modules/micromark-util-combine-extensions/index.js +0 -143
  797. package/node_modules/micromark-util-combine-extensions/license +0 -22
  798. package/node_modules/micromark-util-combine-extensions/package.json +0 -52
  799. package/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  800. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  801. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  802. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  803. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  804. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  805. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  806. package/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  807. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  808. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  809. package/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
  810. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
  811. package/node_modules/micromark-util-decode-string/dev/index.js +0 -53
  812. package/node_modules/micromark-util-decode-string/index.d.ts +0 -14
  813. package/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
  814. package/node_modules/micromark-util-decode-string/index.js +0 -45
  815. package/node_modules/micromark-util-decode-string/license +0 -22
  816. package/node_modules/micromark-util-decode-string/package.json +0 -63
  817. package/node_modules/micromark-util-decode-string/readme.md +0 -179
  818. package/node_modules/micromark-util-edit-map/dev/index.d.ts +0 -78
  819. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +0 -1
  820. package/node_modules/micromark-util-edit-map/dev/index.js +0 -237
  821. package/node_modules/micromark-util-edit-map/index.d.ts +0 -78
  822. package/node_modules/micromark-util-edit-map/index.d.ts.map +0 -1
  823. package/node_modules/micromark-util-edit-map/index.js +0 -225
  824. package/node_modules/micromark-util-edit-map/license +0 -22
  825. package/node_modules/micromark-util-edit-map/package.json +0 -48
  826. package/node_modules/micromark-util-edit-map/readme.md +0 -234
  827. package/node_modules/micromark-util-encode/index.d.ts +0 -14
  828. package/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  829. package/node_modules/micromark-util-encode/index.js +0 -33
  830. package/node_modules/micromark-util-encode/license +0 -22
  831. package/node_modules/micromark-util-encode/package.json +0 -47
  832. package/node_modules/micromark-util-encode/readme.md +0 -176
  833. package/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  834. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  835. package/node_modules/micromark-util-html-tag-name/index.js +0 -93
  836. package/node_modules/micromark-util-html-tag-name/license +0 -22
  837. package/node_modules/micromark-util-html-tag-name/package.json +0 -47
  838. package/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  839. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  840. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  841. package/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  842. package/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  843. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  844. package/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  845. package/node_modules/micromark-util-normalize-identifier/license +0 -22
  846. package/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  847. package/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  848. package/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  849. package/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  850. package/node_modules/micromark-util-resolve-all/index.js +0 -32
  851. package/node_modules/micromark-util-resolve-all/license +0 -22
  852. package/node_modules/micromark-util-resolve-all/package.json +0 -48
  853. package/node_modules/micromark-util-resolve-all/readme.md +0 -238
  854. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  855. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  856. package/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  857. package/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  858. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  859. package/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  860. package/node_modules/micromark-util-sanitize-uri/license +0 -22
  861. package/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  862. package/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  863. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  864. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  865. package/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  866. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  867. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  868. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  869. package/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  870. package/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  871. package/node_modules/micromark-util-subtokenize/index.js +0 -228
  872. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  873. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  874. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  875. package/node_modules/micromark-util-subtokenize/license +0 -22
  876. package/node_modules/micromark-util-subtokenize/package.json +0 -60
  877. package/node_modules/micromark-util-subtokenize/readme.md +0 -181
  878. package/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  879. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  880. package/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  881. package/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  882. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  883. package/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  884. package/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  885. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  886. package/node_modules/micromark-util-symbol/lib/default.js +0 -4
  887. package/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  888. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  889. package/node_modules/micromark-util-symbol/lib/types.js +0 -453
  890. package/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  891. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  892. package/node_modules/micromark-util-symbol/lib/values.js +0 -109
  893. package/node_modules/micromark-util-symbol/license +0 -22
  894. package/node_modules/micromark-util-symbol/package.json +0 -43
  895. package/node_modules/micromark-util-symbol/readme.md +0 -168
  896. package/node_modules/micromark-util-types/index.d.ts +0 -1315
  897. package/node_modules/micromark-util-types/index.js +0 -2
  898. package/node_modules/micromark-util-types/license +0 -22
  899. package/node_modules/micromark-util-types/package.json +0 -37
  900. package/node_modules/micromark-util-types/readme.md +0 -151
  901. package/node_modules/ms/index.js +0 -162
  902. package/node_modules/ms/license.md +0 -21
  903. package/node_modules/ms/package.json +0 -38
  904. package/node_modules/ms/readme.md +0 -59
  905. package/node_modules/unist-util-stringify-position/index.d.ts +0 -1
  906. package/node_modules/unist-util-stringify-position/index.js +0 -1
  907. package/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
  908. package/node_modules/unist-util-stringify-position/lib/index.js +0 -84
  909. package/node_modules/unist-util-stringify-position/license +0 -22
  910. package/node_modules/unist-util-stringify-position/package.json +0 -80
  911. package/node_modules/unist-util-stringify-position/readme.md +0 -206
  912. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  913. package/packages/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  914. package/packages/octo-runtime-extra-webui/config-schema.json +0 -134
  915. /package/node_modules/@mininglamp-oss/{octo-runtime-extra-channel-gateway/dist/contracts.js → octo-runtime-adapter-sdk/dist/execution-scope.js} +0 -0
  916. /package/node_modules/@mininglamp-oss/{octo-runtime-extra-channel-gateway/dist/ports.js → octo-runtime-protocol/dist/adapter-metadata.js} +0 -0
@@ -1,112 +0,0 @@
1
- /**
2
- * 会话读取 API:获取群、成员、用户与消息历史,保留平台身份和消息顺序信息。
3
- * 读取权限由 IM Server 决定,调用方负责选择本轮材料,接口层不组装 prompt。
4
- */
5
- import type { ChannelType } from "./types.js";
6
- import { type HttpRequestDispatch } from "./client.js";
7
- export declare function fetchBotGroups(params: {
8
- apiUrl: string;
9
- botToken: string;
10
- log?: {
11
- info?: (msg: string) => void;
12
- error?: (msg: string) => void;
13
- };
14
- }): Promise<Array<{
15
- group_no: string;
16
- name: string;
17
- }>>;
18
- /**
19
- * 获取群成员列表
20
- */
21
- export interface GroupMember {
22
- uid: string;
23
- name: string;
24
- role?: string;
25
- robot?: boolean | number;
26
- }
27
- export declare function getGroupMembers(params: {
28
- apiUrl: string;
29
- botToken: string;
30
- groupNo: string;
31
- signal?: AbortSignal;
32
- dispatchRequest?: HttpRequestDispatch;
33
- log?: {
34
- info?: (msg: string) => void;
35
- error?: (msg: string) => void;
36
- };
37
- }): Promise<GroupMember[]>;
38
- /** Decoded payload from base64 message content */
39
- interface SyncMessagePayload {
40
- type?: number;
41
- content?: string;
42
- url?: string;
43
- name?: string;
44
- mention?: {
45
- all?: boolean;
46
- uids?: string[];
47
- };
48
- }
49
- /**
50
- * 获取频道历史消息(用于注入上下文)
51
- * @param params.log - Optional logger for consistent logging with OpenClaw log system
52
- */
53
- export declare function getChannelMessages(params: {
54
- apiUrl: string;
55
- botToken: string;
56
- channelId: string;
57
- channelType: ChannelType;
58
- limit?: number;
59
- startMessageSeq?: number;
60
- endMessageSeq?: number;
61
- pullMode?: 0 | 1;
62
- retryOn429?: boolean;
63
- signal?: AbortSignal;
64
- log?: {
65
- info?: (msg: string) => void;
66
- error?: (msg: string) => void;
67
- };
68
- }): Promise<Array<{
69
- from_uid: string;
70
- content: string;
71
- timestamp: number | null;
72
- message_id?: string;
73
- message_seq?: number;
74
- type?: number;
75
- url?: string;
76
- name?: string;
77
- payload?: SyncMessagePayload;
78
- }>>;
79
- export declare function getChannelMessagePage(params: Parameters<typeof getChannelMessages>[0]): Promise<{
80
- messages: Awaited<ReturnType<typeof getChannelMessages>>;
81
- more?: boolean;
82
- }>;
83
- /**
84
- * Fetch user info by UID. Requires backend `/v1/bot/user/info` endpoint.
85
- * Returns null if the endpoint is unavailable (404) or returns an error,
86
- * so callers can gracefully degrade.
87
- */
88
- export declare function fetchUserInfo(params: {
89
- apiUrl: string;
90
- botToken: string;
91
- uid: string;
92
- log?: {
93
- info?: (msg: string) => void;
94
- error?: (msg: string) => void;
95
- };
96
- }): Promise<{
97
- uid: string;
98
- name: string;
99
- avatar?: string;
100
- } | null>;
101
- export declare function searchSpaceMembers(params: {
102
- apiUrl: string;
103
- botToken: string;
104
- keyword?: string;
105
- spaceId?: string;
106
- limit?: number;
107
- }): Promise<Array<{
108
- uid: string;
109
- name: string;
110
- robot: number;
111
- }>>;
112
- export {};
@@ -1,138 +0,0 @@
1
- import { DEFAULT_TIMEOUT_MS, postJson, getJson } from "./client.js";
2
- import { trimTrailingSlashes } from "./url.js";
3
- import { messageDate } from "../message-time.js";
4
- // Fetch the groups the bot belongs to
5
- export async function fetchBotGroups(params) {
6
- const url = `${params.apiUrl}/v1/bot/groups`;
7
- const resp = await fetch(url, {
8
- method: "GET",
9
- headers: {
10
- Authorization: `Bearer ${params.botToken}`
11
- },
12
- signal: AbortSignal.timeout(DEFAULT_TIMEOUT_MS)
13
- });
14
- if (!resp.ok) {
15
- params.log?.error?.(`octo: fetchBotGroups failed: ${resp.status}`);
16
- return [];
17
- }
18
- const data = (await resp.json());
19
- return Array.isArray(data) ? data : [];
20
- }
21
- export async function getGroupMembers(params) {
22
- const data = await getJson(params.apiUrl, params.botToken, `/v1/bot/groups/${encodeURIComponent(params.groupNo)}/members`, AbortSignal.any([AbortSignal.timeout(5000), ...(params.signal ? [params.signal] : [])]), { maxResponseBytes: 1 << 20, logRateLimit: false, dispatchRequest: params.dispatchRequest });
23
- // Normalize to strict array to prevent silent failures
24
- const members = !Array.isArray(data) && Array.isArray(data?.members)
25
- ? data.members
26
- : Array.isArray(data)
27
- ? data
28
- : [];
29
- return members;
30
- }
31
- /**
32
- * 获取频道历史消息(用于注入上下文)
33
- * @param params.log - Optional logger for consistent logging with OpenClaw log system
34
- */
35
- export async function getChannelMessages(params) {
36
- return (await getChannelMessagePage(params)).messages;
37
- }
38
- export async function getChannelMessagePage(params) {
39
- const limit = params.limit ?? 20;
40
- const data = await postJson(params.apiUrl, params.botToken, "/v1/bot/messages/sync", {
41
- channel_id: params.channelId,
42
- channel_type: params.channelType,
43
- limit,
44
- start_message_seq: params.startMessageSeq ?? 0,
45
- end_message_seq: params.endMessageSeq ?? 0,
46
- pull_mode: params.pullMode ?? 1
47
- }, AbortSignal.any([
48
- AbortSignal.timeout(DEFAULT_TIMEOUT_MS),
49
- ...(params.signal ? [params.signal] : [])
50
- ]), { maxResponseBytes: 1 << 20, logRateLimit: false, retryOn429: params.retryOn429 });
51
- if (!Array.isArray(data?.messages))
52
- throw new Error("IM_HISTORY_PROTOCOL_INVALID");
53
- if (data.more !== undefined && ![true, false, 0, 1].includes(data.more))
54
- throw new Error("IM_HISTORY_PROTOCOL_INVALID");
55
- const messages = data.messages;
56
- const decoded = messages.map((m) => {
57
- // payload is base64-encoded JSON string
58
- let payload = {};
59
- if (m.payload) {
60
- try {
61
- if (typeof m.payload !== "string")
62
- throw new Error("IM_HISTORY_OBJECT_PAYLOAD");
63
- const decoded = Buffer.from(m.payload, "base64").toString("utf-8");
64
- payload = JSON.parse(decoded);
65
- }
66
- catch (decodeErr) {
67
- if (typeof m.payload !== "object" || Array.isArray(m.payload))
68
- throw new Error("IM_HISTORY_PROTOCOL_INVALID", { cause: decodeErr });
69
- payload = m.payload;
70
- }
71
- }
72
- return {
73
- from_uid: m.from_uid ?? "unknown",
74
- message_id: m.message_id ?? undefined,
75
- message_seq: m.message_seq ?? undefined,
76
- type: payload.type ?? undefined,
77
- url: payload.url ?? undefined,
78
- name: payload.name ?? undefined,
79
- content: payload.content ?? "",
80
- payload, // preserve full payload for types that need nested data (e.g. MultipleForward)
81
- // API 秒转内部毫秒;未知保留 null,不能伪造为处理时刻。
82
- timestamp: messageDate(m.timestamp, "seconds")?.getTime() ?? null
83
- };
84
- });
85
- return { messages: decoded, ...(data.more !== undefined ? { more: Boolean(data.more) } : {}) };
86
- }
87
- /**
88
- * Fetch user info by UID. Requires backend `/v1/bot/user/info` endpoint.
89
- * Returns null if the endpoint is unavailable (404) or returns an error,
90
- * so callers can gracefully degrade.
91
- */
92
- export async function fetchUserInfo(params) {
93
- const url = `${trimTrailingSlashes(params.apiUrl)}/v1/bot/user/info?uid=${encodeURIComponent(params.uid)}`;
94
- try {
95
- const resp = await fetch(url, {
96
- method: "GET",
97
- headers: { Authorization: `Bearer ${params.botToken}` },
98
- signal: AbortSignal.timeout(5000)
99
- });
100
- if (resp.status === 404) {
101
- // Endpoint not implemented yet — silent degrade
102
- return null;
103
- }
104
- if (!resp.ok) {
105
- params.log?.error?.(`octo: fetchUserInfo(${params.uid}) failed: ${resp.status}`);
106
- return null;
107
- }
108
- const data = (await resp.json());
109
- if (data?.name) {
110
- return { uid: data.uid ?? params.uid, name: data.name, avatar: data.avatar };
111
- }
112
- return null;
113
- }
114
- catch (err) {
115
- params.log?.error?.(`octo: fetchUserInfo(${params.uid}) error: ${String(err)}`);
116
- return null;
117
- }
118
- }
119
- // ========== Space Members API ==========
120
- export async function searchSpaceMembers(params) {
121
- const query = new URLSearchParams();
122
- if (params.keyword)
123
- query.set("keyword", params.keyword);
124
- if (params.spaceId)
125
- query.set("space_id", params.spaceId);
126
- if (params.limit)
127
- query.set("limit", String(params.limit));
128
- const url = `${trimTrailingSlashes(params.apiUrl)}/v1/bot/space/members?${query.toString()}`;
129
- const resp = await fetch(url, {
130
- headers: { Authorization: `Bearer ${params.botToken}` },
131
- signal: AbortSignal.timeout(DEFAULT_TIMEOUT_MS)
132
- });
133
- if (!resp.ok) {
134
- const text = await resp.text().catch(() => "");
135
- throw new Error(`searchSpaceMembers failed (${resp.status}): ${text || resp.statusText}`);
136
- }
137
- return (await resp.json());
138
- }
@@ -1,48 +0,0 @@
1
- /** Fallback wait when the server rate-limits without a usable hint. */
2
- export declare const DEFAULT_RETRY_AFTER_MS = 1000;
3
- /**
4
- * Cap on the response body kept for the message and the logs. A gateway answering with a
5
- * full HTML error page would otherwise put tens of KB into a single log line. Truncation
6
- * is cosmetic: the status comes from the response and the retry hint is parsed from the
7
- * untruncated body.
8
- */
9
- export declare const MAX_ERROR_BODY_CHARS = 500;
10
- /** The subset of `Response` this module reads, so tests and non-standard bodies both fit. */
11
- export interface ResponseLike {
12
- status: number;
13
- statusText?: string;
14
- headers?: {
15
- get?(name: string): string | null;
16
- };
17
- }
18
- export declare class OctoApiError extends Error {
19
- readonly status: number;
20
- readonly path: string;
21
- readonly body: string;
22
- /**
23
- * The server's requested wait, verbatim. Deliberately not clamped here: shortening it
24
- * would mean going back before the server said we could, which is the behaviour this
25
- * error exists to help remove. Callers decide whether the wait is worth honouring.
26
- */
27
- readonly retryAfterMs: number;
28
- readonly rateLimitScope?: string;
29
- readonly rateLimitRemaining?: string;
30
- constructor(params: {
31
- status: number;
32
- path: string;
33
- body: string;
34
- retryAfterMs: number;
35
- rateLimitScope?: string;
36
- rateLimitRemaining?: string;
37
- });
38
- get isRateLimited(): boolean;
39
- static from(resp: ResponseLike, path: string, body: string): OctoApiError;
40
- }
41
- /** A successful HTTP status that violates an endpoint's delivery contract. */
42
- export declare class OctoApiStatusMismatchError extends OctoApiError {
43
- readonly expectedStatus: number;
44
- constructor(path: string, status: number, expectedStatus: number);
45
- }
46
- /** A successful HTTP response that cannot satisfy the endpoint's receipt protocol. */
47
- export declare class OctoApiProtocolError extends Error {
48
- }
@@ -1,116 +0,0 @@
1
- /**
2
- * 结构化 API 错误:保留 HTTP 状态与限流提示,使投递层能判断是否重试。
3
- * 区分明确拒绝与传输结果未知,避免把所有异常都当作消息未发送。
4
- */
5
- /**
6
- * Structured error for the Octo REST helpers.
7
- *
8
- * The status code and the server's rate-limit hints used to survive only as text inside
9
- * the message, so every caller that needed them re-parsed the string. This carries them
10
- * as fields while keeping the historical message wording, which an existing regex parser
11
- * and its callers still depend on.
12
- */
13
- import { parseRetryAfterMs } from "../retry-after.js";
14
- /** Fallback wait when the server rate-limits without a usable hint. */
15
- export const DEFAULT_RETRY_AFTER_MS = 1_000;
16
- /**
17
- * Cap on the response body kept for the message and the logs. A gateway answering with a
18
- * full HTML error page would otherwise put tens of KB into a single log line. Truncation
19
- * is cosmetic: the status comes from the response and the retry hint is parsed from the
20
- * untruncated body.
21
- */
22
- export const MAX_ERROR_BODY_CHARS = 500;
23
- function header(resp, name) {
24
- // Optional all the way down: a hand-rolled response object may carry no headers at
25
- // all, and reading them must never turn a plain HTTP failure into a TypeError.
26
- const raw = resp.headers?.get?.(name);
27
- return raw == null || raw === "" ? undefined : raw;
28
- }
29
- /** Seconds → ms, rejecting anything that is not a finite non-negative number. */
30
- function secondsToMs(raw) {
31
- if (raw === undefined || raw === "")
32
- return undefined;
33
- // Number("") is 0 and Number(" ") is 0, so guard the empty cases above rather than
34
- // letting a blank header masquerade as "retry immediately".
35
- const seconds = typeof raw === "number" ? raw : Number(raw);
36
- // Zero is rejected along with the negatives: "come back immediately" is not something a
37
- // rate limiter means, and taking it literally produces back-to-back retries at the exact
38
- // moment the server just turned us away.
39
- if (!Number.isFinite(seconds) || seconds <= 0)
40
- return undefined;
41
- // Re-checked after rounding: a hint like 0.0004 is positive but rounds to 0ms, which would
42
- // put us straight back on the server with no wait at all.
43
- const ms = Math.round(seconds * 1000);
44
- return ms > 0 ? ms : undefined;
45
- }
46
- function retryAfterFromBody(body) {
47
- if (!body)
48
- return undefined;
49
- let parsed;
50
- try {
51
- parsed = JSON.parse(body);
52
- }
53
- catch {
54
- return undefined; // an HTML error page, a proxy blurb, anything non-JSON
55
- }
56
- const hint = parsed?.error?.details
57
- ?.retry_after;
58
- return typeof hint === "number" ? secondsToMs(hint) : undefined;
59
- }
60
- export class OctoApiError extends Error {
61
- status;
62
- path;
63
- body;
64
- /**
65
- * The server's requested wait, verbatim. Deliberately not clamped here: shortening it
66
- * would mean going back before the server said we could, which is the behaviour this
67
- * error exists to help remove. Callers decide whether the wait is worth honouring.
68
- */
69
- retryAfterMs;
70
- rateLimitScope;
71
- rateLimitRemaining;
72
- constructor(params) {
73
- super(`Octo API ${params.path} failed (${params.status}): ${params.body}`);
74
- this.name = "OctoApiError";
75
- this.status = params.status;
76
- this.path = params.path;
77
- this.body = params.body;
78
- this.retryAfterMs = params.retryAfterMs;
79
- this.rateLimitScope = params.rateLimitScope;
80
- this.rateLimitRemaining = params.rateLimitRemaining;
81
- }
82
- get isRateLimited() {
83
- return this.status === 429;
84
- }
85
- static from(resp, path, body) {
86
- const text = body || resp.statusText || "";
87
- const scope = header(resp, "X-RateLimit-Scope");
88
- const remaining = header(resp, "X-RateLimit-Remaining");
89
- const headerDelayMs = parseRetryAfterMs(header(resp, "Retry-After"));
90
- return new OctoApiError({
91
- status: resp.status,
92
- path,
93
- body: text.length > MAX_ERROR_BODY_CHARS ? `${text.slice(0, MAX_ERROR_BODY_CHARS)}…` : text,
94
- // 正数 header 不裁剪;零等待沿用 body/default 兜底,避免连续立即重试。
95
- // body 提示仍从未截断正文解析,展示长度限制不能丢失限流事实。
96
- retryAfterMs: (headerDelayMs !== undefined && headerDelayMs > 0 ? headerDelayMs : undefined) ??
97
- retryAfterFromBody(body) ??
98
- DEFAULT_RETRY_AFTER_MS,
99
- ...(scope !== undefined ? { rateLimitScope: scope } : {}),
100
- ...(remaining !== undefined ? { rateLimitRemaining: remaining } : {})
101
- });
102
- }
103
- }
104
- /** A successful HTTP status that violates an endpoint's delivery contract. */
105
- export class OctoApiStatusMismatchError extends OctoApiError {
106
- expectedStatus;
107
- constructor(path, status, expectedStatus) {
108
- // Do not include the response body in this protocol diagnostic.
109
- super({ path, status, body: `expected ${expectedStatus}`, retryAfterMs: 0 });
110
- this.name = "OctoApiStatusMismatchError";
111
- this.expectedStatus = expectedStatus;
112
- }
113
- }
114
- /** A successful HTTP response that cannot satisfy the endpoint's receipt protocol. */
115
- export class OctoApiProtocolError extends Error {
116
- }
@@ -1,51 +0,0 @@
1
- /**
2
- * 事件 API:提供有界轮询和 ACK,用于取回卡片动作等服务端事件。
3
- * 只负责事件传输;消费范围、授权和动作归属由通道决定,不承接文档评论业务。
4
- */
5
- import type { BotEvent } from "./types.js";
6
- /**
7
- * Mirrors the server-side clamp on `wait`. Single source of truth — the JSON schemas and the
8
- * poller all derive from this, so the plugin and the server cannot drift apart silently.
9
- */
10
- export declare const MAX_EVENT_WAIT_SECONDS = 30;
11
- /**
12
- * Smallest useful hold. Below this the loop issues *more* requests than the short polling it
13
- * replaces (a 1s hold with no added delay is 60 req/min against a 29 req/min baseline), and the
14
- * "did the server actually hold?" guard shrinks to a window narrower than an ordinary slow RTT.
15
- * A non-zero value under this is raised to it rather than rejected.
16
- */
17
- export declare const MIN_EVENT_WAIT_SECONDS = 5;
18
- /**
19
- * Client timeout for one /v1/bot/events request.
20
- *
21
- * Must always exceed the hold the server was asked for, otherwise the client aborts mid-hold
22
- * and the poll loop degrades into a timeout/retry storm that is strictly worse than plain
23
- * short polling.
24
- */
25
- export declare function eventsPollTimeoutMs(waitSeconds?: number): number;
26
- /**
27
- * Pull typed bot events strictly after the supplied cursor.
28
- *
29
- * With `waitSeconds` unset or 0 this is a plain short poll: the server reads the queue once and
30
- * answers, empty batch included. With `waitSeconds > 0` the server holds an empty queue open for
31
- * that long and answers as soon as an event lands, which is what takes card-action latency off
32
- * the poll cadence. The hold is opt-in on the wire precisely so that a client which does not
33
- * raise its own timeout keeps working unchanged.
34
- *
35
- * An expired hold is a normal empty batch, not an error — there is no timeout status to handle.
36
- */
37
- export declare function fetchBotEvents(params: {
38
- apiUrl: string;
39
- botToken: string;
40
- sinceEventId?: number;
41
- limit?: number;
42
- waitSeconds?: number;
43
- signal?: AbortSignal;
44
- }): Promise<BotEvent[]>;
45
- /** Best-effort queue pruning after a recognized bot event has been accepted locally. */
46
- export declare function ackBotEvent(params: {
47
- apiUrl: string;
48
- botToken: string;
49
- eventId: number;
50
- signal?: AbortSignal;
51
- }): Promise<void>;
@@ -1,79 +0,0 @@
1
- import { postJson } from "./client.js";
2
- // Card-event poll requests run in a single sequential loop; without a bound a hung
3
- // /v1/bot/events (or its ack) would block all callback processing for the account until the OS
4
- // eventually drops the socket.
5
- //
6
- // This bounds an *idle* request only. When the caller opts into the server-side long poll the
7
- // server deliberately holds the connection open for up to `wait` seconds, so a fixed 10s cap
8
- // would abort every hold longer than that and log a failure on each one — see
9
- // eventsPollTimeoutMs, which derives the bound from the requested hold instead.
10
- const EVENTS_POLL_TIMEOUT_MS = 10_000;
11
- // Slack added on top of a long-poll hold before the client gives up. It has to cover the
12
- // server rounding the final BLPOP chunk up to a whole second plus ordinary network/scheduling
13
- // jitter; the client must never be the side that times out first, because an abort loses the
14
- // batch the server was about to hand back.
15
- const EVENTS_POLL_WAIT_MARGIN_MS = 10_000;
16
- /**
17
- * Mirrors the server-side clamp on `wait`. Single source of truth — the JSON schemas and the
18
- * poller all derive from this, so the plugin and the server cannot drift apart silently.
19
- */
20
- export const MAX_EVENT_WAIT_SECONDS = 30;
21
- /**
22
- * Smallest useful hold. Below this the loop issues *more* requests than the short polling it
23
- * replaces (a 1s hold with no added delay is 60 req/min against a 29 req/min baseline), and the
24
- * "did the server actually hold?" guard shrinks to a window narrower than an ordinary slow RTT.
25
- * A non-zero value under this is raised to it rather than rejected.
26
- */
27
- export const MIN_EVENT_WAIT_SECONDS = 5;
28
- /**
29
- * Client timeout for one /v1/bot/events request.
30
- *
31
- * Must always exceed the hold the server was asked for, otherwise the client aborts mid-hold
32
- * and the poll loop degrades into a timeout/retry storm that is strictly worse than plain
33
- * short polling.
34
- */
35
- export function eventsPollTimeoutMs(waitSeconds) {
36
- if (!waitSeconds || waitSeconds <= 0)
37
- return EVENTS_POLL_TIMEOUT_MS;
38
- return waitSeconds * 1000 + EVENTS_POLL_WAIT_MARGIN_MS;
39
- }
40
- /**
41
- * Pull typed bot events strictly after the supplied cursor.
42
- *
43
- * With `waitSeconds` unset or 0 this is a plain short poll: the server reads the queue once and
44
- * answers, empty batch included. With `waitSeconds > 0` the server holds an empty queue open for
45
- * that long and answers as soon as an event lands, which is what takes card-action latency off
46
- * the poll cadence. The hold is opt-in on the wire precisely so that a client which does not
47
- * raise its own timeout keeps working unchanged.
48
- *
49
- * An expired hold is a normal empty batch, not an error — there is no timeout status to handle.
50
- */
51
- export async function fetchBotEvents(params) {
52
- const waitSeconds = params.waitSeconds && params.waitSeconds > 0
53
- ? Math.min(MAX_EVENT_WAIT_SECONDS, Math.floor(params.waitSeconds))
54
- : 0;
55
- const response = await postJson(params.apiUrl, params.botToken, "/v1/bot/events", {
56
- event_id: params.sinceEventId ?? 0,
57
- limit: Math.max(1, Math.min(100, Math.floor(params.limit ?? 20))),
58
- // Omitted entirely when not long-polling, so the request stays byte-identical to what
59
- // servers that predate the `wait` field already accept.
60
- ...(waitSeconds > 0 ? { wait: waitSeconds } : {})
61
- }, params.signal ?? AbortSignal.timeout(eventsPollTimeoutMs(waitSeconds)),
62
- // The poll loop paces itself from the outcome of each request, with an exponential
63
- // backoff on errors. It also infers "did the server hold?" from the time elapsed
64
- // around this call, and a sleep inside it would inflate that measurement: a fast
65
- // empty return after a backoff reads as an honoured hold and re-polls immediately.
66
- { retryOn429: false });
67
- return Array.isArray(response?.results) ? response.results : [];
68
- }
69
- /** Best-effort queue pruning after a recognized bot event has been accepted locally. */
70
- export async function ackBotEvent(params) {
71
- await postJson(params.apiUrl, params.botToken, `/v1/bot/events/${params.eventId}/ack`, {}, params.signal ?? AbortSignal.timeout(EVENTS_POLL_TIMEOUT_MS),
72
- // An ack runs inside the poll loop's sequential drain and its failure is only
73
- // logged — it never becomes a poll outcome, so nothing downstream would pace a
74
- // retry. Sleeping here would just stall the events queued behind this one, and the
75
- // callers normally persist the cursor before the ack, so a lost ack costs at
76
- // most one redelivery. During a deliberately blocked cursor gap, the poller
77
- // only ACKs recognized handlers that carry their own event-level idempotency.
78
- { retryOn429: false });
79
- }
@@ -1,30 +0,0 @@
1
- import { type HttpRequestDispatch } from "./client.js";
2
- /** 校验服务端返回的长期下载地址;不把 PUT 地址、签名有效期或 Bot 鉴权路由冒充附件。 */
3
- export declare function attachmentUrl(raw: unknown, apiUrl: string): string;
4
- /** 当前 Bot 获取聊天上传凭据后直传;只交付独立 downloadUrl,绝不转发 Bot Token。 */
5
- export declare function uploadChatAttachment(apiUrl: string, token: string, bytes: Uint8Array, filename: string, mime: string, signal: AbortSignal, dispatchRequest?: HttpRequestDispatch): Promise<string>;
6
- /**
7
- * Infer MIME type from filename extension. Returns a sensible default if unknown.
8
- */
9
- export declare function inferContentType(filename: string): string;
10
- /**
11
- * Ensure text/* content types include a charset parameter.
12
- * If the content type starts with "text/" and has no charset, appends "; charset=utf-8".
13
- */
14
- export declare function ensureTextCharset(contentType: string): string;
15
- /**
16
- * Parse image dimensions from buffer (PNG/JPEG/GIF/WebP).
17
- * Lightweight — reads only the header bytes, no external dependencies.
18
- */
19
- export declare function parseImageDimensions(buf: Buffer, mime: string): {
20
- width: number;
21
- height: number;
22
- } | null;
23
- /**
24
- * Parse image dimensions from a file path by reading only the first 64KB.
25
- * Avoids loading the entire file into memory.
26
- */
27
- export declare function parseImageDimensionsFromFile(filePath: string, mime: string): Promise<{
28
- width: number;
29
- height: number;
30
- } | null>;