@mininglamp-oss/octo-runtime 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (946) hide show
  1. package/README.md +26 -142
  2. package/apps/cli/README.md +7 -102
  3. package/apps/cli/dist/adapters.d.ts +19 -1
  4. package/apps/cli/dist/adapters.js +153 -27
  5. package/apps/cli/dist/build-info.json +2 -2
  6. package/apps/cli/dist/codex.d.ts +5 -0
  7. package/apps/cli/dist/codex.js +36 -0
  8. package/apps/cli/dist/command-tree.d.ts +1 -13
  9. package/apps/cli/dist/command-tree.js +130 -316
  10. package/apps/cli/dist/foreground.d.ts +1 -2
  11. package/apps/cli/dist/help.d.ts +0 -1
  12. package/apps/cli/dist/help.js +2 -13
  13. package/apps/cli/dist/kernel.d.ts +4 -0
  14. package/apps/cli/dist/kernel.js +84 -0
  15. package/apps/cli/dist/logs.d.ts +2 -2
  16. package/apps/cli/dist/logs.js +14 -17
  17. package/apps/cli/dist/main.js +63 -180
  18. package/apps/cli/dist/manifest.json +33 -72
  19. package/apps/cli/dist/module-manifest.d.ts +1 -1
  20. package/apps/cli/dist/module-manifest.js +2 -3
  21. package/apps/cli/dist/openclaw.d.ts +0 -8
  22. package/apps/cli/dist/openclaw.js +2 -114
  23. package/apps/cli/dist/output.d.ts +1 -0
  24. package/apps/cli/dist/output.js +16 -23
  25. package/apps/cli/dist/playboard.js +32 -15
  26. package/apps/cli/dist/provider-launch.d.ts +28 -0
  27. package/apps/cli/dist/provider-launch.js +52 -0
  28. package/apps/cli/dist/providers.d.ts +182 -0
  29. package/apps/cli/dist/providers.js +34 -0
  30. package/apps/cli/dist/service-control.js +0 -1
  31. package/dist/public/adapter-sdk.d.ts +2 -0
  32. package/dist/public/adapter-sdk.js +2 -0
  33. package/dist/public/host.d.ts +2 -4
  34. package/dist/public/host.js +1 -1
  35. package/dist/public/protocol.d.ts +1 -1
  36. package/dist/public/protocol.js +1 -1
  37. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +4 -4
  38. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +15 -14
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -28
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +10 -35
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +22 -29
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +14 -68
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +60 -43
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +19 -31
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +29 -18
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -5
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +42 -35
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.d.ts +54 -0
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.js +147 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.js +4 -8
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +20 -92
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +104 -216
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.d.ts +2 -2
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.js +4 -11
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +9 -5
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +77 -81
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-R3PDZLX5.js → chunk-H3S6WM37.js} +3 -3
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FGFEM7JP.js → chunk-RISQ6NGV.js} +1 -1
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-TSRZVLIG.js → chunk-SMTJTIN7.js} +1 -1
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +4 -2
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +15 -17
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +4 -4
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +14 -14
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +23 -30
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +4 -7
  76. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +13 -21
  77. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +48 -26
  78. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  79. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +16 -14
  80. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +15 -7
  81. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  82. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +16 -14
  83. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +14 -6
  84. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  85. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +16 -14
  86. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +15 -7
  87. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  88. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +7 -3
  89. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +27 -29
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +4 -4
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +16 -25
  92. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +109 -178
  93. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  94. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +16 -14
  95. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +15 -6
  96. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -2
  97. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +16 -14
  98. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +15 -6
  99. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -2
  100. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -1
  101. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +49 -0
  102. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +256 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +7 -2
  104. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +1 -1
  105. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +5 -1
  106. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +26 -13
  107. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +117 -59
  108. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +1 -1
  109. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.d.ts +1 -13
  110. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +4 -27
  111. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +11 -1
  112. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +89 -8
  113. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.d.ts +10 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.js +25 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +10 -3
  116. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +4 -8
  117. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +0 -4
  118. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +6 -60
  119. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +0 -10
  120. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +0 -83
  121. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  122. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +19 -1
  123. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +153 -27
  124. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  125. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.d.ts +5 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.js +36 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.d.ts +1 -13
  128. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +130 -316
  129. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/foreground.d.ts +1 -2
  130. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +0 -1
  131. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +2 -13
  132. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.d.ts +4 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.js +84 -0
  134. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.d.ts +2 -2
  135. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +14 -17
  136. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +63 -180
  137. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +33 -72
  138. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
  139. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +2 -3
  140. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.d.ts +0 -8
  141. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +2 -114
  142. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +1 -0
  143. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +16 -23
  144. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +32 -15
  145. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.d.ts +28 -0
  146. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.js +52 -0
  147. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.d.ts +182 -0
  148. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.js +34 -0
  149. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +0 -1
  150. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
  151. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
  152. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +2 -3
  153. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +31 -20
  154. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +1 -1
  155. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +80 -50
  156. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +1 -1
  157. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +17 -2
  158. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +3 -15
  159. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +2 -0
  160. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +6 -0
  161. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +19 -4
  162. package/node_modules/@mininglamp-oss/octo-runtime-client/{schema → fixtures}/kernel-ipc-fixtures.json +28 -6
  163. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +5 -5
  164. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +3 -104
  165. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +316 -1250
  166. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  167. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +0 -2
  168. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +28 -57
  169. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +2 -2
  170. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +13 -78
  171. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +3 -1
  172. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +5 -0
  173. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  174. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -1
  175. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +1 -1
  176. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -0
  177. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +18 -18
  178. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
  179. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +1 -7
  180. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +0 -5
  181. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -18
  182. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -2
  183. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -2
  184. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +0 -1
  185. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +3 -5
  186. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +1 -8
  187. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +1 -2
  188. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +3 -267
  189. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -0
  190. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +17 -3
  191. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +104 -373
  192. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +32 -1
  193. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.d.ts +9 -0
  194. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.js +20 -0
  195. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +6 -15
  196. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +33 -178
  197. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +23 -36
  198. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +54 -45
  199. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +1 -6
  200. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +9 -17
  201. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +2 -1
  202. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +5 -28
  203. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +2 -1
  204. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  205. package/node_modules/semver/classes/range.js +2 -2
  206. package/node_modules/semver/internal/constants.js +30 -0
  207. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  208. package/node_modules/semver/package.json +1 -1
  209. package/node_modules/ws/README.md +21 -29
  210. package/node_modules/ws/lib/buffer-util.js +13 -2
  211. package/node_modules/ws/lib/sender.js +4 -1
  212. package/node_modules/ws/lib/websocket.js +8 -3
  213. package/node_modules/ws/package.json +1 -1
  214. package/package.json +37 -148
  215. package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +3 -104
  216. package/packages/octo-runtime-protocol/schema/protocol.schema.json +316 -1250
  217. package/packages/octo-runtime-protocol/{schema → test/fixtures}/kernel-ipc-fixtures.json +28 -6
  218. package/apps/cli/dist/extra-command-config.d.ts +0 -4
  219. package/apps/cli/dist/extra-command-config.js +0 -50
  220. package/apps/cli/dist/extra-commands.d.ts +0 -15
  221. package/apps/cli/dist/extra-commands.js +0 -275
  222. package/apps/cli/dist/extras.d.ts +0 -8
  223. package/apps/cli/dist/extras.js +0 -82
  224. package/apps/cli/dist/global-extras.d.ts +0 -16
  225. package/apps/cli/dist/global-extras.js +0 -201
  226. package/apps/cli/dist/status-output.d.ts +0 -10
  227. package/apps/cli/dist/status-output.js +0 -65
  228. package/dist/public/channel-gateway-commands.d.ts +0 -1
  229. package/dist/public/channel-gateway-commands.js +0 -1
  230. package/dist/public/channel-gateway.d.ts +0 -3
  231. package/dist/public/channel-gateway.js +0 -1
  232. package/dist/public/channel-wecom-commands.d.ts +0 -1
  233. package/dist/public/channel-wecom-commands.js +0 -1
  234. package/dist/public/channel-wecom.d.ts +0 -2
  235. package/dist/public/channel-wecom.js +0 -1
  236. package/dist/public/codex.d.ts +0 -1
  237. package/dist/public/codex.js +0 -1
  238. package/dist/public/dsh.d.ts +0 -2
  239. package/dist/public/dsh.js +0 -1
  240. package/dist/public/extra.d.ts +0 -5
  241. package/dist/public/extra.js +0 -3
  242. package/dist/public/webui-commands.d.ts +0 -1
  243. package/dist/public/webui-commands.js +0 -1
  244. package/dist/public/webui.d.ts +0 -1
  245. package/dist/public/webui.js +0 -1
  246. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +0 -4
  247. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +0 -50
  248. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +0 -15
  249. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +0 -275
  250. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +0 -8
  251. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +0 -82
  252. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +0 -16
  253. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +0 -201
  254. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.d.ts +0 -10
  255. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.js +0 -65
  256. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +0 -1219
  257. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +0 -5988
  258. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +0 -56
  259. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +0 -116
  260. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +0 -761
  261. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +0 -663
  262. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +0 -191
  263. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.d.ts +0 -12
  264. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.js +0 -89
  265. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.d.ts +0 -33
  266. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.js +0 -93
  267. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +0 -8
  268. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +0 -62
  269. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  270. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +0 -50
  271. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +0 -140
  272. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +0 -3
  273. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +0 -27
  274. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.d.ts +0 -17
  275. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.js +0 -123
  276. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +0 -15
  277. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +0 -1489
  278. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +0 -28
  279. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +0 -77
  280. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +0 -71
  281. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +0 -153
  282. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +0 -15
  283. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +0 -28
  284. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +0 -4
  285. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +0 -124
  286. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +0 -172
  287. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.js +0 -1
  288. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +0 -22
  289. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +0 -46
  290. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +0 -16
  291. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +0 -285
  292. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +0 -20
  293. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +0 -109
  294. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +0 -15
  295. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +0 -36
  296. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +0 -16
  297. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +0 -98
  298. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +0 -6
  299. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +0 -10
  300. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +0 -17
  301. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +0 -238
  302. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +0 -29
  303. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +0 -171
  304. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +0 -44
  305. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +0 -392
  306. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +0 -3
  307. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +0 -27
  308. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +0 -4
  309. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +0 -87
  310. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +0 -20
  311. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +0 -13
  312. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +0 -9
  313. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +0 -162
  314. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +0 -12
  315. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +0 -154
  316. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +0 -34
  317. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.js +0 -1
  318. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +0 -67
  319. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +0 -588
  320. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +0 -16
  321. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +0 -83
  322. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +0 -132
  323. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +0 -226
  324. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +0 -65
  325. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +0 -202
  326. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +0 -112
  327. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +0 -138
  328. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -48
  329. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +0 -116
  330. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +0 -51
  331. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +0 -79
  332. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +0 -30
  333. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +0 -222
  334. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +0 -13
  335. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +0 -13
  336. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +0 -92
  337. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +0 -173
  338. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +0 -84
  339. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +0 -110
  340. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +0 -87
  341. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +0 -45
  342. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +0 -2
  343. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +0 -7
  344. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +0 -5
  345. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +0 -23
  346. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +0 -20
  347. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +0 -75
  348. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +0 -22
  349. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +0 -136
  350. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +0 -7
  351. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +0 -40
  352. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +0 -70
  353. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +0 -646
  354. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +0 -17
  355. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +0 -91
  356. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +0 -18
  357. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +0 -148
  358. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +0 -15
  359. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +0 -257
  360. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +0 -12
  361. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +0 -133
  362. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +0 -21
  363. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +0 -76
  364. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +0 -6
  365. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +0 -163
  366. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +0 -4
  367. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +0 -113
  368. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -13
  369. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -75
  370. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +0 -6
  371. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +0 -117
  372. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +0 -16
  373. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +0 -74
  374. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +0 -4
  375. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +0 -19
  376. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +0 -7
  377. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +0 -90
  378. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +0 -20
  379. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +0 -85
  380. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +0 -34
  381. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +0 -430
  382. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +0 -6
  383. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +0 -63
  384. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +0 -6
  385. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +0 -60
  386. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +0 -9
  387. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +0 -71
  388. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +0 -44
  389. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +0 -357
  390. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +0 -33
  391. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  392. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +0 -11
  393. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +0 -754
  394. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +0 -35
  395. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +0 -93
  396. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +0 -4
  397. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +0 -128
  398. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +0 -78
  399. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +0 -1
  400. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +0 -16
  401. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +0 -69
  402. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +0 -12
  403. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +0 -95
  404. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +0 -3
  405. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +0 -85
  406. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +0 -10
  407. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +0 -6
  408. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +0 -6
  409. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +0 -109
  410. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +0 -12
  411. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +0 -73
  412. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +0 -24
  413. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +0 -1
  414. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +0 -45
  415. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +0 -258
  416. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +0 -21
  417. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +0 -124
  418. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +0 -53
  419. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +0 -219
  420. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +0 -10
  421. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +0 -52
  422. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +0 -31
  423. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +0 -134
  424. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +0 -3
  425. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +0 -51
  426. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +0 -3
  427. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +0 -423
  428. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +0 -25
  429. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +0 -130
  430. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-BLMf2Etg.js +0 -73
  431. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +0 -1
  432. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +0 -3
  433. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +0 -28
  434. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +0 -32
  435. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +0 -165
  436. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.d.ts +0 -44
  437. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.js +0 -207
  438. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +0 -70
  439. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +0 -16
  440. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.d.ts +0 -20
  441. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +0 -154
  442. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.d.ts +0 -4
  443. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.js +0 -21
  444. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +0 -45
  445. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -417
  446. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -62
  447. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -389
  448. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.d.ts +0 -7
  449. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.js +0 -39
  450. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +0 -3
  451. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +0 -80
  452. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +0 -3
  453. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +0 -9
  454. package/node_modules/@types/debug/LICENSE +0 -21
  455. package/node_modules/@types/debug/README.md +0 -69
  456. package/node_modules/@types/debug/index.d.ts +0 -50
  457. package/node_modules/@types/debug/package.json +0 -58
  458. package/node_modules/@types/mdast/LICENSE +0 -21
  459. package/node_modules/@types/mdast/README.md +0 -15
  460. package/node_modules/@types/mdast/index.d.ts +0 -1123
  461. package/node_modules/@types/mdast/package.json +0 -47
  462. package/node_modules/@types/ms/LICENSE +0 -21
  463. package/node_modules/@types/ms/README.md +0 -82
  464. package/node_modules/@types/ms/index.d.ts +0 -63
  465. package/node_modules/@types/ms/package.json +0 -26
  466. package/node_modules/@types/unist/LICENSE +0 -21
  467. package/node_modules/@types/unist/README.md +0 -15
  468. package/node_modules/@types/unist/index.d.ts +0 -119
  469. package/node_modules/@types/unist/package.json +0 -60
  470. package/node_modules/character-entities/index.d.ts +0 -6
  471. package/node_modules/character-entities/index.js +0 -2132
  472. package/node_modules/character-entities/license +0 -22
  473. package/node_modules/character-entities/package.json +0 -78
  474. package/node_modules/character-entities/readme.md +0 -152
  475. package/node_modules/debug/LICENSE +0 -20
  476. package/node_modules/debug/README.md +0 -481
  477. package/node_modules/debug/package.json +0 -64
  478. package/node_modules/debug/src/browser.js +0 -272
  479. package/node_modules/debug/src/common.js +0 -292
  480. package/node_modules/debug/src/index.js +0 -10
  481. package/node_modules/debug/src/node.js +0 -263
  482. package/node_modules/decode-named-character-reference/index.d.ts +0 -13
  483. package/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  484. package/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  485. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  486. package/node_modules/decode-named-character-reference/index.dom.js +0 -32
  487. package/node_modules/decode-named-character-reference/index.js +0 -19
  488. package/node_modules/decode-named-character-reference/license +0 -22
  489. package/node_modules/decode-named-character-reference/package.json +0 -90
  490. package/node_modules/decode-named-character-reference/readme.md +0 -136
  491. package/node_modules/dequal/dist/index.js +0 -86
  492. package/node_modules/dequal/dist/index.min.js +0 -1
  493. package/node_modules/dequal/dist/index.mjs +0 -84
  494. package/node_modules/dequal/index.d.ts +0 -1
  495. package/node_modules/dequal/license +0 -21
  496. package/node_modules/dequal/lite/index.d.ts +0 -1
  497. package/node_modules/dequal/lite/index.js +0 -31
  498. package/node_modules/dequal/lite/index.min.js +0 -1
  499. package/node_modules/dequal/lite/index.mjs +0 -29
  500. package/node_modules/dequal/package.json +0 -57
  501. package/node_modules/dequal/readme.md +0 -112
  502. package/node_modules/devlop/lib/default.js +0 -9
  503. package/node_modules/devlop/lib/development.d.ts +0 -84
  504. package/node_modules/devlop/lib/development.js +0 -238
  505. package/node_modules/devlop/license +0 -22
  506. package/node_modules/devlop/package.json +0 -80
  507. package/node_modules/devlop/readme.md +0 -360
  508. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
  509. package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
  510. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
  511. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
  512. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1455
  513. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -321
  514. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
  515. package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
  516. package/node_modules/mdast-util-from-markdown/index.js +0 -2
  517. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
  518. package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
  519. package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1270
  520. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -321
  521. package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
  522. package/node_modules/mdast-util-from-markdown/license +0 -22
  523. package/node_modules/mdast-util-from-markdown/package.json +0 -98
  524. package/node_modules/mdast-util-from-markdown/readme.md +0 -549
  525. package/node_modules/mdast-util-to-string/index.d.ts +0 -2
  526. package/node_modules/mdast-util-to-string/index.js +0 -5
  527. package/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
  528. package/node_modules/mdast-util-to-string/lib/index.js +0 -108
  529. package/node_modules/mdast-util-to-string/license +0 -22
  530. package/node_modules/mdast-util-to-string/package.json +0 -78
  531. package/node_modules/mdast-util-to-string/readme.md +0 -218
  532. package/node_modules/micromark/dev/index.d.ts +0 -82
  533. package/node_modules/micromark/dev/index.d.ts.map +0 -1
  534. package/node_modules/micromark/dev/index.js +0 -68
  535. package/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  536. package/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  537. package/node_modules/micromark/dev/lib/compile.js +0 -1162
  538. package/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  539. package/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  540. package/node_modules/micromark/dev/lib/constructs.js +0 -101
  541. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  542. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  543. package/node_modules/micromark/dev/lib/create-tokenizer.js +0 -718
  544. package/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  545. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  546. package/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  547. package/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  548. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  549. package/node_modules/micromark/dev/lib/initialize/document.js +0 -449
  550. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  551. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  552. package/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  553. package/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  554. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  555. package/node_modules/micromark/dev/lib/initialize/text.js +0 -248
  556. package/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  557. package/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  558. package/node_modules/micromark/dev/lib/parse.js +0 -58
  559. package/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  560. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  561. package/node_modules/micromark/dev/lib/postprocess.js +0 -19
  562. package/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  563. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  564. package/node_modules/micromark/dev/lib/preprocess.js +0 -139
  565. package/node_modules/micromark/dev/stream.d.ts +0 -35
  566. package/node_modules/micromark/dev/stream.d.ts.map +0 -1
  567. package/node_modules/micromark/dev/stream.js +0 -270
  568. package/node_modules/micromark/index.d.ts +0 -82
  569. package/node_modules/micromark/index.d.ts.map +0 -1
  570. package/node_modules/micromark/index.js +0 -60
  571. package/node_modules/micromark/lib/compile.d.ts +0 -16
  572. package/node_modules/micromark/lib/compile.d.ts.map +0 -1
  573. package/node_modules/micromark/lib/compile.js +0 -1068
  574. package/node_modules/micromark/lib/constructs.d.ts +0 -73
  575. package/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  576. package/node_modules/micromark/lib/constructs.js +0 -85
  577. package/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  578. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  579. package/node_modules/micromark/lib/create-tokenizer.js +0 -613
  580. package/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  581. package/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  582. package/node_modules/micromark/lib/initialize/content.js +0 -79
  583. package/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  584. package/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  585. package/node_modules/micromark/lib/initialize/document.js +0 -370
  586. package/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  587. package/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  588. package/node_modules/micromark/lib/initialize/flow.js +0 -58
  589. package/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  590. package/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  591. package/node_modules/micromark/lib/initialize/text.js +0 -216
  592. package/node_modules/micromark/lib/parse.d.ts +0 -10
  593. package/node_modules/micromark/lib/parse.d.ts.map +0 -1
  594. package/node_modules/micromark/lib/parse.js +0 -56
  595. package/node_modules/micromark/lib/postprocess.d.ts +0 -9
  596. package/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  597. package/node_modules/micromark/lib/postprocess.js +0 -18
  598. package/node_modules/micromark/lib/preprocess.d.ts +0 -13
  599. package/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  600. package/node_modules/micromark/lib/preprocess.js +0 -112
  601. package/node_modules/micromark/license +0 -22
  602. package/node_modules/micromark/package.json +0 -87
  603. package/node_modules/micromark/readme.md +0 -488
  604. package/node_modules/micromark/stream.d.ts +0 -35
  605. package/node_modules/micromark/stream.d.ts.map +0 -1
  606. package/node_modules/micromark/stream.js +0 -256
  607. package/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  608. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  609. package/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  610. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  611. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  612. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -294
  613. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  614. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  615. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  616. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  617. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  618. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  619. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  620. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  621. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  622. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  623. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  624. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  625. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  626. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  627. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  628. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  629. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  630. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -472
  631. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  632. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  633. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -178
  634. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  635. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  636. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  637. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  638. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  639. package/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  640. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  641. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  642. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  643. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  644. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  645. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  646. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  647. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  648. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -229
  649. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  650. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  651. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -938
  652. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  653. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  654. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  655. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  656. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  657. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -658
  658. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  659. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  660. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -119
  661. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  662. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  663. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -71
  664. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  665. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  666. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  667. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  668. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  669. package/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  670. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +0 -4
  671. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  672. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +0 -67
  673. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  674. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  675. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -213
  676. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  677. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  678. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  679. package/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  680. package/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  681. package/node_modules/micromark-core-commonmark/index.js +0 -22
  682. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  683. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  684. package/node_modules/micromark-core-commonmark/lib/attention.js +0 -231
  685. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  686. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  687. package/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  688. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  689. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  690. package/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  691. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  692. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  693. package/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  694. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  695. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  696. package/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  697. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  698. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  699. package/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  700. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  701. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  702. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -422
  703. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  704. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  705. package/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -159
  706. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  707. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  708. package/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  709. package/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  710. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  711. package/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  712. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  713. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  714. package/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  715. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  716. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  717. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  718. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  719. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  720. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -191
  721. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  722. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  723. package/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -827
  724. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  725. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  726. package/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  727. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  728. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  729. package/node_modules/micromark-core-commonmark/lib/label-end.js +0 -561
  730. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  731. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  732. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -110
  733. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  734. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  735. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -63
  736. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  737. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  738. package/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  739. package/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  740. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  741. package/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  742. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +0 -4
  743. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  744. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +0 -61
  745. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  746. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  747. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -187
  748. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  749. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  750. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  751. package/node_modules/micromark-core-commonmark/license +0 -22
  752. package/node_modules/micromark-core-commonmark/package.json +0 -62
  753. package/node_modules/micromark-core-commonmark/readme.md +0 -171
  754. package/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  755. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  756. package/node_modules/micromark-factory-destination/dev/index.js +0 -255
  757. package/node_modules/micromark-factory-destination/index.d.ts +0 -42
  758. package/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  759. package/node_modules/micromark-factory-destination/index.js +0 -206
  760. package/node_modules/micromark-factory-destination/license +0 -22
  761. package/node_modules/micromark-factory-destination/package.json +0 -57
  762. package/node_modules/micromark-factory-destination/readme.md +0 -234
  763. package/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  764. package/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  765. package/node_modules/micromark-factory-label/dev/index.js +0 -172
  766. package/node_modules/micromark-factory-label/index.d.ts +0 -37
  767. package/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  768. package/node_modules/micromark-factory-label/index.js +0 -148
  769. package/node_modules/micromark-factory-label/license +0 -22
  770. package/node_modules/micromark-factory-label/package.json +0 -60
  771. package/node_modules/micromark-factory-label/readme.md +0 -224
  772. package/node_modules/micromark-factory-space/dev/index.d.ts +0 -60
  773. package/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  774. package/node_modules/micromark-factory-space/dev/index.js +0 -122
  775. package/node_modules/micromark-factory-space/index.d.ts +0 -60
  776. package/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  777. package/node_modules/micromark-factory-space/index.js +0 -116
  778. package/node_modules/micromark-factory-space/license +0 -22
  779. package/node_modules/micromark-factory-space/package.json +0 -46
  780. package/node_modules/micromark-factory-space/readme.md +0 -225
  781. package/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  782. package/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  783. package/node_modules/micromark-factory-title/dev/index.js +0 -169
  784. package/node_modules/micromark-factory-title/index.d.ts +0 -36
  785. package/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  786. package/node_modules/micromark-factory-title/index.js +0 -158
  787. package/node_modules/micromark-factory-title/license +0 -22
  788. package/node_modules/micromark-factory-title/package.json +0 -58
  789. package/node_modules/micromark-factory-title/readme.md +0 -229
  790. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  791. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  792. package/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  793. package/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  794. package/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  795. package/node_modules/micromark-factory-whitespace/index.js +0 -44
  796. package/node_modules/micromark-factory-whitespace/license +0 -22
  797. package/node_modules/micromark-factory-whitespace/package.json +0 -57
  798. package/node_modules/micromark-factory-whitespace/readme.md +0 -205
  799. package/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  800. package/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  801. package/node_modules/micromark-util-character/dev/index.js +0 -252
  802. package/node_modules/micromark-util-character/index.d.ts +0 -195
  803. package/node_modules/micromark-util-character/index.d.ts.map +0 -1
  804. package/node_modules/micromark-util-character/index.js +0 -246
  805. package/node_modules/micromark-util-character/license +0 -22
  806. package/node_modules/micromark-util-character/package.json +0 -57
  807. package/node_modules/micromark-util-character/readme.md +0 -446
  808. package/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  809. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  810. package/node_modules/micromark-util-chunked/dev/index.js +0 -89
  811. package/node_modules/micromark-util-chunked/index.d.ts +0 -41
  812. package/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  813. package/node_modules/micromark-util-chunked/index.js +0 -81
  814. package/node_modules/micromark-util-chunked/license +0 -22
  815. package/node_modules/micromark-util-chunked/package.json +0 -57
  816. package/node_modules/micromark-util-chunked/readme.md +0 -219
  817. package/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  818. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  819. package/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  820. package/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  821. package/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  822. package/node_modules/micromark-util-classify-character/index.js +0 -27
  823. package/node_modules/micromark-util-classify-character/license +0 -22
  824. package/node_modules/micromark-util-classify-character/package.json +0 -59
  825. package/node_modules/micromark-util-classify-character/readme.md +0 -205
  826. package/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  827. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  828. package/node_modules/micromark-util-combine-extensions/index.js +0 -143
  829. package/node_modules/micromark-util-combine-extensions/license +0 -22
  830. package/node_modules/micromark-util-combine-extensions/package.json +0 -52
  831. package/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  832. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  833. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  834. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  835. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  836. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  837. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  838. package/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  839. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  840. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  841. package/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
  842. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
  843. package/node_modules/micromark-util-decode-string/dev/index.js +0 -53
  844. package/node_modules/micromark-util-decode-string/index.d.ts +0 -14
  845. package/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
  846. package/node_modules/micromark-util-decode-string/index.js +0 -45
  847. package/node_modules/micromark-util-decode-string/license +0 -22
  848. package/node_modules/micromark-util-decode-string/package.json +0 -63
  849. package/node_modules/micromark-util-decode-string/readme.md +0 -179
  850. package/node_modules/micromark-util-edit-map/dev/index.d.ts +0 -78
  851. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +0 -1
  852. package/node_modules/micromark-util-edit-map/dev/index.js +0 -237
  853. package/node_modules/micromark-util-edit-map/index.d.ts +0 -78
  854. package/node_modules/micromark-util-edit-map/index.d.ts.map +0 -1
  855. package/node_modules/micromark-util-edit-map/index.js +0 -225
  856. package/node_modules/micromark-util-edit-map/license +0 -22
  857. package/node_modules/micromark-util-edit-map/package.json +0 -48
  858. package/node_modules/micromark-util-edit-map/readme.md +0 -234
  859. package/node_modules/micromark-util-encode/index.d.ts +0 -14
  860. package/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  861. package/node_modules/micromark-util-encode/index.js +0 -33
  862. package/node_modules/micromark-util-encode/license +0 -22
  863. package/node_modules/micromark-util-encode/package.json +0 -47
  864. package/node_modules/micromark-util-encode/readme.md +0 -176
  865. package/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  866. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  867. package/node_modules/micromark-util-html-tag-name/index.js +0 -93
  868. package/node_modules/micromark-util-html-tag-name/license +0 -22
  869. package/node_modules/micromark-util-html-tag-name/package.json +0 -47
  870. package/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  871. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  872. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  873. package/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  874. package/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  875. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  876. package/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  877. package/node_modules/micromark-util-normalize-identifier/license +0 -22
  878. package/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  879. package/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  880. package/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  881. package/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  882. package/node_modules/micromark-util-resolve-all/index.js +0 -32
  883. package/node_modules/micromark-util-resolve-all/license +0 -22
  884. package/node_modules/micromark-util-resolve-all/package.json +0 -48
  885. package/node_modules/micromark-util-resolve-all/readme.md +0 -238
  886. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  887. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  888. package/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  889. package/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  890. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  891. package/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  892. package/node_modules/micromark-util-sanitize-uri/license +0 -22
  893. package/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  894. package/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  895. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  896. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  897. package/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  898. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  899. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  900. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  901. package/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  902. package/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  903. package/node_modules/micromark-util-subtokenize/index.js +0 -228
  904. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  905. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  906. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  907. package/node_modules/micromark-util-subtokenize/license +0 -22
  908. package/node_modules/micromark-util-subtokenize/package.json +0 -60
  909. package/node_modules/micromark-util-subtokenize/readme.md +0 -181
  910. package/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  911. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  912. package/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  913. package/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  914. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  915. package/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  916. package/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  917. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  918. package/node_modules/micromark-util-symbol/lib/default.js +0 -4
  919. package/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  920. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  921. package/node_modules/micromark-util-symbol/lib/types.js +0 -453
  922. package/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  923. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  924. package/node_modules/micromark-util-symbol/lib/values.js +0 -109
  925. package/node_modules/micromark-util-symbol/license +0 -22
  926. package/node_modules/micromark-util-symbol/package.json +0 -43
  927. package/node_modules/micromark-util-symbol/readme.md +0 -168
  928. package/node_modules/micromark-util-types/index.d.ts +0 -1315
  929. package/node_modules/micromark-util-types/index.js +0 -2
  930. package/node_modules/micromark-util-types/license +0 -22
  931. package/node_modules/micromark-util-types/package.json +0 -37
  932. package/node_modules/micromark-util-types/readme.md +0 -151
  933. package/node_modules/ms/index.js +0 -162
  934. package/node_modules/ms/license.md +0 -21
  935. package/node_modules/ms/package.json +0 -38
  936. package/node_modules/ms/readme.md +0 -59
  937. package/node_modules/unist-util-stringify-position/index.d.ts +0 -1
  938. package/node_modules/unist-util-stringify-position/index.js +0 -1
  939. package/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
  940. package/node_modules/unist-util-stringify-position/lib/index.js +0 -84
  941. package/node_modules/unist-util-stringify-position/license +0 -22
  942. package/node_modules/unist-util-stringify-position/package.json +0 -80
  943. package/node_modules/unist-util-stringify-position/readme.md +0 -206
  944. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  945. package/packages/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  946. package/packages/octo-runtime-extra-webui/config-schema.json +0 -134
@@ -1,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>;