@mininglamp-oss/octo-runtime 1.1.9 → 1.1.11

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 (225) hide show
  1. package/README.md +2 -2
  2. package/apps/cli/README.md +1 -1
  3. package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.d.ts → apps/cli/dist/adapter-configuration.d.ts} +1 -0
  4. package/{node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-configuration.js → apps/cli/dist/adapter-configuration.js} +1 -0
  5. package/apps/cli/dist/adapter-configurations.d.ts +1 -1
  6. package/apps/cli/dist/adapter-configurations.js +1 -1
  7. package/apps/cli/dist/adapters.d.ts +7 -0
  8. package/apps/cli/dist/adapters.js +77 -0
  9. package/apps/cli/dist/build-info.json +2 -2
  10. package/apps/cli/dist/command-tree.js +2 -3
  11. package/apps/cli/dist/extras.js +11 -1
  12. package/apps/cli/dist/help.js +1 -1
  13. package/apps/cli/dist/index.js +18 -1
  14. package/apps/cli/dist/main.d.ts +2 -0
  15. package/apps/cli/dist/main.js +67 -34
  16. package/apps/cli/dist/manifest.json +0 -5
  17. package/apps/cli/dist/module-manifest.js +21 -3
  18. package/apps/cli/dist/output.d.ts +19 -1
  19. package/apps/cli/dist/output.js +180 -33
  20. package/apps/cli/dist/playboard-interrupt.d.ts +6 -0
  21. package/apps/cli/dist/playboard-interrupt.js +86 -0
  22. package/apps/cli/dist/playboard.d.ts +2 -0
  23. package/apps/cli/dist/playboard.js +10 -11
  24. package/apps/cli/dist/state.d.ts +5 -2
  25. package/apps/cli/dist/state.js +48 -13
  26. package/dist/public/codex.d.ts +1 -0
  27. package/dist/public/codex.js +1 -0
  28. package/dist/public/executor-kernel.d.ts +4 -1
  29. package/dist/public/executor-kernel.js +2 -1
  30. package/dist/public/extra.d.ts +1 -1
  31. package/dist/public/host.d.ts +5 -0
  32. package/dist/public/host.js +2 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +20 -0
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -6
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +68 -253
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +11 -6
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +198 -52
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +58 -0
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +650 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +3 -0
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +15 -0
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +2 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -0
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +25 -0
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +3 -0
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/reasoning.js +1 -2
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +1 -1
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +12 -30
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  65. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.d.ts +3 -0
  66. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configuration.js +125 -0
  67. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +1 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +1 -1
  69. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +7 -0
  70. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +77 -0
  71. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  72. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +2 -3
  73. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +11 -1
  74. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +1 -1
  75. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +18 -1
  76. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.d.ts +2 -0
  77. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +67 -34
  78. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -5
  79. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +21 -3
  80. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +19 -1
  81. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +180 -33
  82. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.d.ts +6 -0
  83. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard-interrupt.js +86 -0
  84. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +2 -0
  85. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +10 -11
  86. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.d.ts +5 -2
  87. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +48 -13
  88. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +23 -24
  89. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +5 -0
  90. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +30 -0
  91. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +199 -0
  92. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.d.ts +1 -0
  93. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.js +1 -0
  94. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +10 -0
  95. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +465 -0
  96. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +6 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.js +6 -0
  98. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.d.ts +4 -0
  99. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.js +5 -0
  100. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.d.ts +59 -0
  101. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +287 -0
  102. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.d.ts +1 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.js +1 -0
  104. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.d.ts +1 -0
  105. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.js +1 -0
  106. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.d.ts +21 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.js +138 -0
  108. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.d.ts +8 -0
  109. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +65 -0
  110. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.d.ts +82 -0
  111. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.js +371 -0
  112. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +10 -0
  113. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +23 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +72 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.js +10 -0
  116. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +54 -0
  117. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +1219 -0
  118. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +5988 -0
  119. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +56 -0
  120. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc-fixtures.json +53 -0
  121. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +538 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +116 -0
  123. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +4525 -0
  124. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +761 -0
  125. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +663 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +191 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  128. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +29 -21
  129. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +173 -14
  130. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  131. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.d.ts +1 -30
  132. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +2 -199
  133. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +1 -8
  134. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -444
  135. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/endpoint.js +2 -0
  136. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.d.ts +17 -0
  137. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/execution-source.js +21 -0
  138. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +11 -9
  139. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +14 -3
  140. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +5 -7
  141. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +6 -7
  142. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.d.ts +1 -53
  143. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js +2 -280
  144. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.d.ts +14 -13
  145. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +84 -187
  146. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.d.ts +5 -10
  147. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.js +4 -1
  148. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.d.ts +20 -0
  149. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.js +180 -0
  150. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -8
  151. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +75 -45
  152. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +9 -2
  153. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +60 -5
  154. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.d.ts +1 -0
  155. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.js +1 -0
  156. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.d.ts +1 -0
  157. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.js +1 -0
  158. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.d.ts +4 -0
  159. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.js +18 -0
  160. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +1 -10
  161. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +2 -23
  162. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.d.ts +2 -72
  163. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.js +2 -10
  164. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -12
  165. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +1 -1
  166. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +2 -2
  167. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  168. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +1 -1
  169. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +2 -2
  170. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  171. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +4 -4
  172. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/{index-BVxePruX.js → index-BLMf2Etg.js} +1 -3
  173. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
  174. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  175. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +1 -1
  176. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +12 -5
  177. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.d.ts +5 -1
  178. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.js +9 -0
  179. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.d.ts +44 -0
  180. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.js +207 -0
  181. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +23 -3
  182. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +27 -4
  183. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +133 -25
  184. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +10 -3
  185. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +18 -4
  186. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.d.ts +5 -6
  187. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.js +33 -45
  188. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/identity.js +6 -0
  189. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +4 -0
  190. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +3 -0
  191. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +5 -4
  192. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
  193. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +19 -15
  194. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +3 -1
  195. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +1 -0
  196. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.d.ts +5 -0
  197. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
  198. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  199. package/package.json +33 -29
  200. package/packages/octo-runtime-protocol/schema/protocol.schema.json +42 -36
  201. package/apps/cli/dist/worker.js +0 -18
  202. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.d.ts +0 -63
  203. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/app-server.js +0 -846
  204. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +0 -54
  205. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +0 -154
  206. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +0 -15
  207. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/worker.js +0 -18
  208. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.d.ts +0 -16
  209. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/heartbeat.js +0 -59
  210. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.d.ts +0 -6
  211. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/manifest-adapters.js +0 -88
  212. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.d.ts +0 -1
  213. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/module-specifier.js +0 -2
  214. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +0 -42
  215. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +0 -292
  216. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.d.ts +0 -64
  217. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/rpc.js +0 -674
  218. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.d.ts +0 -2
  219. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runner.js +0 -5
  220. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.d.ts +0 -10
  221. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.js +0 -96
  222. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +0 -15
  223. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +0 -279
  224. /package/{apps/cli/dist/worker.d.ts → node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.js} +0 -0
  225. /package/node_modules/@mininglamp-oss/{octo-runtime-cli/dist/worker.d.ts → octo-runtime-protocol/dist/adapter-metadata.js} +0 -0
@@ -0,0 +1,56 @@
1
+ {
2
+ "revision": 1,
3
+ "ipcVersion": 1,
4
+ "limits": {
5
+ "connections": 32,
6
+ "invocations": 128,
7
+ "controlConcurrency": 4,
8
+ "lookupConcurrency": 4,
9
+ "requestBytes": 33554432,
10
+ "lineBytes": 42008576,
11
+ "readChunkBytes": 65536
12
+ },
13
+ "timeoutsMs": {
14
+ "connect": 5000,
15
+ "unary": 5000,
16
+ "invokeAck": 30000,
17
+ "recovery": 10000
18
+ },
19
+ "repairDelaysMs": [100, 250, 500],
20
+ "terminalStates": ["completed", "failed", "cancelled", "lost"],
21
+ "retryableErrors": ["CONNECTION_CLOSED", "KERNEL_UNAVAILABLE", "KERNEL_TIMEOUT"],
22
+ "lookupFields": [
23
+ "run_id",
24
+ "invocation_id",
25
+ "agent_session_id",
26
+ "session_generation",
27
+ "protocol_mode"
28
+ ],
29
+ "receiptFields": [
30
+ "run_id",
31
+ "invocation_id",
32
+ "stream_id",
33
+ "agent_session_id",
34
+ "session_generation",
35
+ "protocol_mode",
36
+ "protocol"
37
+ ],
38
+ "identityInputFields": {
39
+ "run_id": "runId",
40
+ "invocation_id": "invocationId",
41
+ "agent_session_id": "sessionId",
42
+ "session_generation": "sessionGeneration",
43
+ "protocol_mode": "protocol_mode"
44
+ },
45
+ "defaults": {
46
+ "session_generation": 0,
47
+ "protocol_mode": "native"
48
+ },
49
+ "lifecycle": {
50
+ "admission": ["admitting", "accepted", "acceptance_unknown", "unobserved"],
51
+ "cancellation": ["none", "requested", "acknowledged", "unknown"]
52
+ },
53
+ "ownership": "attached",
54
+ "closeCancelsRun": false,
55
+ "replayInvoke": false
56
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "ipc_version": 1,
3
+ "cases": [
4
+ {
5
+ "name": "status",
6
+ "request": { "jsonrpc": "2.0", "id": "status-1", "method": "status", "params": {} },
7
+ "valid": true,
8
+ "result_definition": "KernelStatus"
9
+ },
10
+ {
11
+ "name": "list",
12
+ "request": { "jsonrpc": "2.0", "id": "list-1", "method": "adapter.list", "params": {} },
13
+ "valid": true
14
+ },
15
+ {
16
+ "name": "missing-run",
17
+ "request": {
18
+ "jsonrpc": "2.0",
19
+ "id": "get-1",
20
+ "method": "agent_run.get",
21
+ "params": {
22
+ "key": {
23
+ "run_id": "r1",
24
+ "invocation_id": "i1",
25
+ "agent_session_id": "s1",
26
+ "session_generation": 0,
27
+ "protocol_mode": "native"
28
+ }
29
+ }
30
+ },
31
+ "valid": true,
32
+ "error_code": "RUN_NOT_AVAILABLE"
33
+ },
34
+ {
35
+ "name": "numeric-id",
36
+ "request": { "jsonrpc": "2.0", "id": 1, "method": "status", "params": {} },
37
+ "valid": false,
38
+ "error_code": "INVALID_REQUEST"
39
+ },
40
+ {
41
+ "name": "unknown-params",
42
+ "request": {
43
+ "jsonrpc": "2.0",
44
+ "id": "bad-1",
45
+ "method": "status",
46
+ "params": { "extra": true }
47
+ },
48
+ "valid": false,
49
+ "error_code": "INVALID_PARAMS"
50
+ },
51
+ { "name": "batch", "request": [], "valid": false, "error_code": "INVALID_REQUEST" }
52
+ ]
53
+ }
@@ -0,0 +1,538 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "urn:mininglamp-oss:octo-runtime:kernel-ipc:v1",
4
+ "title": "Kernel IPC v1",
5
+ "description": "One UTF-8 LF-terminated JSON-RPC request per local connection. No batches. Closing a connection never cancels execution. Source sequence numbers belong to the Kernel instance. Receipts and events retain the original Run protocol identities.",
6
+ "definitions": {
7
+ "Request": {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "required": ["jsonrpc", "id", "method", "params"],
11
+ "properties": {
12
+ "jsonrpc": {
13
+ "const": "2.0"
14
+ },
15
+ "id": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 128,
19
+ "x-octo-max-utf8-bytes": 128
20
+ },
21
+ "method": {
22
+ "enum": [
23
+ "status",
24
+ "adapter.list",
25
+ "agent_run.invoke",
26
+ "agent_run.get",
27
+ "agent_run.subscribe",
28
+ "agent_run.cancel",
29
+ "agent_run.respond",
30
+ "agent_run.native.respond"
31
+ ]
32
+ },
33
+ "params": {
34
+ "type": "object"
35
+ }
36
+ },
37
+ "allOf": [
38
+ {
39
+ "if": {
40
+ "properties": {
41
+ "method": {
42
+ "const": "status"
43
+ }
44
+ }
45
+ },
46
+ "then": {
47
+ "properties": {
48
+ "params": {
49
+ "$ref": "#/definitions/EmptyParams"
50
+ }
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "if": {
56
+ "properties": {
57
+ "method": {
58
+ "const": "adapter.list"
59
+ }
60
+ }
61
+ },
62
+ "then": {
63
+ "properties": {
64
+ "params": {
65
+ "$ref": "#/definitions/EmptyParams"
66
+ }
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "if": {
72
+ "properties": {
73
+ "method": {
74
+ "const": "agent_run.invoke"
75
+ }
76
+ }
77
+ },
78
+ "then": {
79
+ "properties": {
80
+ "params": {
81
+ "$ref": "#/definitions/InvokeParams"
82
+ }
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "if": {
88
+ "properties": {
89
+ "method": {
90
+ "const": "agent_run.get"
91
+ }
92
+ }
93
+ },
94
+ "then": {
95
+ "properties": {
96
+ "params": {
97
+ "$ref": "#/definitions/GetParams"
98
+ }
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "if": {
104
+ "properties": {
105
+ "method": {
106
+ "const": "agent_run.subscribe"
107
+ }
108
+ }
109
+ },
110
+ "then": {
111
+ "properties": {
112
+ "params": {
113
+ "$ref": "#/definitions/SubscribeParams"
114
+ }
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "if": {
120
+ "properties": {
121
+ "method": {
122
+ "const": "agent_run.cancel"
123
+ }
124
+ }
125
+ },
126
+ "then": {
127
+ "properties": {
128
+ "params": {
129
+ "$ref": "#/definitions/CancelParams"
130
+ }
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "if": {
136
+ "properties": {
137
+ "method": {
138
+ "const": "agent_run.respond"
139
+ }
140
+ }
141
+ },
142
+ "then": {
143
+ "properties": {
144
+ "params": {
145
+ "$ref": "#/definitions/RespondParams"
146
+ }
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "if": {
152
+ "properties": {
153
+ "method": {
154
+ "const": "agent_run.native.respond"
155
+ }
156
+ }
157
+ },
158
+ "then": {
159
+ "properties": {
160
+ "params": {
161
+ "$ref": "#/definitions/RespondNativeParams"
162
+ }
163
+ }
164
+ }
165
+ }
166
+ ]
167
+ },
168
+ "EmptyParams": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": [],
172
+ "properties": {}
173
+ },
174
+ "EmptyResult": {
175
+ "type": "object",
176
+ "additionalProperties": false,
177
+ "required": [],
178
+ "properties": {}
179
+ },
180
+ "InvokeParams": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": ["input"],
184
+ "properties": {
185
+ "input": {
186
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/InvokeInputWire"
187
+ },
188
+ "executionEnvOverrides": {
189
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/ContextEnvsPayload"
190
+ },
191
+ "kernel_instance_id": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ }
195
+ }
196
+ },
197
+ "GetParams": {
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "required": ["key"],
201
+ "properties": {
202
+ "key": {
203
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelLookupKey"
204
+ },
205
+ "kernel_instance_id": {
206
+ "type": "string",
207
+ "minLength": 1
208
+ }
209
+ }
210
+ },
211
+ "SubscribeParams": {
212
+ "type": "object",
213
+ "additionalProperties": false,
214
+ "required": ["ref", "after_seq"],
215
+ "properties": {
216
+ "ref": {
217
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
218
+ },
219
+ "after_seq": {
220
+ "type": "integer",
221
+ "minimum": 0,
222
+ "maximum": 9007199254740991
223
+ }
224
+ }
225
+ },
226
+ "CancelParams": {
227
+ "type": "object",
228
+ "additionalProperties": false,
229
+ "required": ["ref"],
230
+ "properties": {
231
+ "ref": {
232
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
233
+ },
234
+ "reason": {
235
+ "type": "string"
236
+ }
237
+ }
238
+ },
239
+ "RespondParams": {
240
+ "type": "object",
241
+ "additionalProperties": false,
242
+ "required": ["ref", "response"],
243
+ "properties": {
244
+ "ref": {
245
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
246
+ },
247
+ "response": {
248
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/InteractionResponseWire"
249
+ }
250
+ }
251
+ },
252
+ "RespondNativeParams": {
253
+ "type": "object",
254
+ "additionalProperties": false,
255
+ "required": ["ref", "response"],
256
+ "properties": {
257
+ "ref": {
258
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
259
+ },
260
+ "response": {
261
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/NativeInteractionResponse"
262
+ }
263
+ }
264
+ },
265
+ "InvokeResult": {
266
+ "type": "object",
267
+ "additionalProperties": false,
268
+ "required": ["kernel_instance_id", "receipt"],
269
+ "properties": {
270
+ "kernel_instance_id": {
271
+ "type": "string",
272
+ "minLength": 1
273
+ },
274
+ "receipt": {
275
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostRunReceipt"
276
+ }
277
+ }
278
+ },
279
+ "CancelResult": {
280
+ "type": "object",
281
+ "additionalProperties": false,
282
+ "required": ["accepted"],
283
+ "properties": {
284
+ "accepted": {
285
+ "type": "boolean"
286
+ }
287
+ }
288
+ },
289
+ "SuccessResponse": {
290
+ "type": "object",
291
+ "additionalProperties": false,
292
+ "required": ["jsonrpc", "id", "result"],
293
+ "properties": {
294
+ "jsonrpc": {
295
+ "const": "2.0"
296
+ },
297
+ "id": {
298
+ "type": "string",
299
+ "minLength": 1
300
+ },
301
+ "result": {}
302
+ }
303
+ },
304
+ "ErrorResponse": {
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "required": ["jsonrpc", "id", "error"],
308
+ "properties": {
309
+ "jsonrpc": {
310
+ "const": "2.0"
311
+ },
312
+ "id": {
313
+ "type": ["string", "null"]
314
+ },
315
+ "error": {
316
+ "type": "object",
317
+ "additionalProperties": true,
318
+ "required": ["code", "message", "data"],
319
+ "properties": {
320
+ "code": {
321
+ "type": "integer"
322
+ },
323
+ "message": {
324
+ "type": "string"
325
+ },
326
+ "data": {
327
+ "type": "object",
328
+ "additionalProperties": true,
329
+ "required": ["code"],
330
+ "properties": {
331
+ "code": {
332
+ "type": "string",
333
+ "minLength": 1
334
+ }
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "EventNotification": {
342
+ "type": "object",
343
+ "additionalProperties": false,
344
+ "required": ["jsonrpc", "method", "params"],
345
+ "properties": {
346
+ "jsonrpc": {
347
+ "const": "2.0"
348
+ },
349
+ "method": {
350
+ "const": "agent_run.event"
351
+ },
352
+ "params": {
353
+ "type": "object",
354
+ "additionalProperties": false,
355
+ "required": ["kernel_instance_id", "run_id", "stream_id", "seq", "event"],
356
+ "properties": {
357
+ "kernel_instance_id": {
358
+ "type": "string",
359
+ "minLength": 1
360
+ },
361
+ "run_id": {
362
+ "type": "string",
363
+ "minLength": 1
364
+ },
365
+ "stream_id": {
366
+ "type": "string",
367
+ "minLength": 1
368
+ },
369
+ "seq": {
370
+ "type": "integer",
371
+ "minimum": 1,
372
+ "maximum": 9007199254740991
373
+ },
374
+ "event": {
375
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostFrame"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ },
381
+ "StreamErrorNotification": {
382
+ "type": "object",
383
+ "additionalProperties": false,
384
+ "required": ["jsonrpc", "method", "params"],
385
+ "properties": {
386
+ "jsonrpc": {
387
+ "const": "2.0"
388
+ },
389
+ "method": {
390
+ "const": "agent_run.stream_error"
391
+ },
392
+ "params": {
393
+ "type": "object",
394
+ "additionalProperties": false,
395
+ "required": ["code", "kernel_instance_id"],
396
+ "properties": {
397
+ "code": {
398
+ "type": "string",
399
+ "minLength": 1
400
+ },
401
+ "kernel_instance_id": {
402
+ "type": "string",
403
+ "minLength": 1
404
+ }
405
+ }
406
+ }
407
+ }
408
+ },
409
+ "KnownBusinessErrorCode": {
410
+ "enum": [
411
+ "KERNEL_UNAVAILABLE",
412
+ "KERNEL_INSTANCE_CHANGED",
413
+ "RUN_IDENTITY_MISMATCH",
414
+ "RUN_NOT_AVAILABLE",
415
+ "RUN_ALREADY_ACCEPTED",
416
+ "RUN_CAPACITY_EXHAUSTED",
417
+ "STREAM_GAP",
418
+ "STREAM_EXPIRED",
419
+ "STREAM_CURSOR_INVALID",
420
+ "STREAM_SUBSCRIBER_LIMIT",
421
+ "ACCEPTANCE_UNKNOWN",
422
+ "OPERATION_OUTCOME_UNKNOWN",
423
+ "CLIENT_CLOSED",
424
+ "WORKER_LOST",
425
+ "WORKER_RESTART_EXHAUSTED",
426
+ "INVOKE_REQUEST_TOO_LARGE",
427
+ "HOST_FRAME_TOO_LARGE"
428
+ ]
429
+ },
430
+ "BusinessErrorCode": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "description": "Open error namespace; preserve unknown codes and data."
434
+ }
435
+ },
436
+ "$ref": "#/definitions/Request",
437
+ "x-octo-methods": [
438
+ {
439
+ "method": "status",
440
+ "name": "Status",
441
+ "params": {
442
+ "$ref": "#/definitions/EmptyParams"
443
+ },
444
+ "result": {
445
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelStatus"
446
+ },
447
+ "stream": false,
448
+ "sideEffect": false
449
+ },
450
+ {
451
+ "method": "adapter.list",
452
+ "name": "List",
453
+ "params": {
454
+ "$ref": "#/definitions/EmptyParams"
455
+ },
456
+ "result": {
457
+ "type": "array",
458
+ "items": {
459
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostedAdapterMetadataWire"
460
+ }
461
+ },
462
+ "stream": false,
463
+ "sideEffect": false
464
+ },
465
+ {
466
+ "method": "agent_run.invoke",
467
+ "name": "Submit",
468
+ "params": {
469
+ "$ref": "#/definitions/InvokeParams"
470
+ },
471
+ "result": {
472
+ "$ref": "#/definitions/InvokeResult"
473
+ },
474
+ "stream": false,
475
+ "sideEffect": true
476
+ },
477
+ {
478
+ "method": "agent_run.get",
479
+ "name": "Get",
480
+ "params": {
481
+ "$ref": "#/definitions/GetParams"
482
+ },
483
+ "result": {
484
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunSnapshot"
485
+ },
486
+ "stream": false,
487
+ "sideEffect": false
488
+ },
489
+ {
490
+ "method": "agent_run.subscribe",
491
+ "name": "Subscribe",
492
+ "params": {
493
+ "$ref": "#/definitions/SubscribeParams"
494
+ },
495
+ "result": {
496
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunSnapshot"
497
+ },
498
+ "stream": true,
499
+ "sideEffect": false
500
+ },
501
+ {
502
+ "method": "agent_run.cancel",
503
+ "name": "Cancel",
504
+ "params": {
505
+ "$ref": "#/definitions/CancelParams"
506
+ },
507
+ "result": {
508
+ "$ref": "#/definitions/CancelResult"
509
+ },
510
+ "stream": false,
511
+ "sideEffect": true
512
+ },
513
+ {
514
+ "method": "agent_run.respond",
515
+ "name": "Respond",
516
+ "params": {
517
+ "$ref": "#/definitions/RespondParams"
518
+ },
519
+ "result": {
520
+ "$ref": "#/definitions/EmptyResult"
521
+ },
522
+ "stream": false,
523
+ "sideEffect": true
524
+ },
525
+ {
526
+ "method": "agent_run.native.respond",
527
+ "name": "RespondNative",
528
+ "params": {
529
+ "$ref": "#/definitions/RespondNativeParams"
530
+ },
531
+ "result": {
532
+ "$ref": "#/definitions/EmptyResult"
533
+ },
534
+ "stream": false,
535
+ "sideEffect": true
536
+ }
537
+ ]
538
+ }