@mininglamp-oss/octo-runtime 1.1.10 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (916) hide show
  1. package/README.md +26 -142
  2. package/apps/cli/README.md +7 -102
  3. package/apps/cli/dist/adapters.js +41 -19
  4. package/apps/cli/dist/build-info.json +2 -2
  5. package/apps/cli/dist/command-tree.d.ts +1 -13
  6. package/apps/cli/dist/command-tree.js +130 -317
  7. package/apps/cli/dist/foreground.d.ts +1 -2
  8. package/apps/cli/dist/help.d.ts +0 -1
  9. package/apps/cli/dist/help.js +2 -13
  10. package/apps/cli/dist/index.js +14 -1
  11. package/apps/cli/dist/logs.d.ts +2 -2
  12. package/apps/cli/dist/logs.js +14 -17
  13. package/apps/cli/dist/main.js +99 -182
  14. package/apps/cli/dist/manifest.json +0 -50
  15. package/apps/cli/dist/module-manifest.d.ts +1 -1
  16. package/apps/cli/dist/module-manifest.js +23 -6
  17. package/apps/cli/dist/openclaw.d.ts +0 -8
  18. package/apps/cli/dist/openclaw.js +2 -114
  19. package/apps/cli/dist/output.d.ts +19 -1
  20. package/apps/cli/dist/output.js +185 -44
  21. package/apps/cli/dist/playboard.js +17 -9
  22. package/apps/cli/dist/service-control.js +0 -1
  23. package/apps/cli/dist/state.d.ts +5 -2
  24. package/apps/cli/dist/state.js +48 -13
  25. package/dist/public/codex.d.ts +1 -0
  26. package/dist/public/codex.js +1 -0
  27. package/dist/public/executor-kernel.d.ts +4 -0
  28. package/dist/public/executor-kernel.js +2 -0
  29. package/dist/public/host.d.ts +6 -3
  30. package/dist/public/host.js +3 -1
  31. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +20 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -6
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +78 -262
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +11 -6
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +198 -52
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +58 -0
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +650 -0
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +3 -0
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +15 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-R3PDZLX5.js → chunk-H3S6WM37.js} +3 -3
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FGFEM7JP.js → chunk-RISQ6NGV.js} +1 -1
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-TSRZVLIG.js → chunk-SMTJTIN7.js} +1 -1
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +3 -3
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +4 -4
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +4 -4
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +2 -0
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -0
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +25 -0
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +4 -1
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +1 -1
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.d.ts +1 -13
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +4 -27
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +4 -8
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +0 -4
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +6 -60
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +0 -10
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +0 -83
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  76. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +41 -19
  77. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  78. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.d.ts +1 -13
  79. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +130 -317
  80. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/foreground.d.ts +1 -2
  81. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +0 -1
  82. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +2 -13
  83. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/index.js +14 -1
  84. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.d.ts +2 -2
  85. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +14 -17
  86. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +99 -182
  87. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -50
  88. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
  89. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +23 -6
  90. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.d.ts +0 -8
  91. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +2 -114
  92. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +19 -1
  93. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +185 -44
  94. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +17 -9
  95. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +0 -1
  96. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.d.ts +5 -2
  97. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +48 -13
  98. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
  99. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +5 -0
  100. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +29 -0
  101. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +210 -0
  102. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.d.ts +1 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.js +1 -0
  104. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +10 -0
  105. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +495 -0
  106. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +6 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.js +6 -0
  108. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.d.ts +4 -0
  109. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.js +5 -0
  110. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.d.ts +59 -0
  111. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +302 -0
  112. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.d.ts +1 -0
  113. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.js +1 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.d.ts +1 -0
  115. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.js +1 -0
  116. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.d.ts +21 -0
  117. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.js +138 -0
  118. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.d.ts +8 -0
  119. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +53 -0
  120. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.d.ts +82 -0
  121. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.js +371 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +12 -0
  123. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +29 -0
  124. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +87 -0
  125. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.js +10 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +54 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +1219 -0
  128. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +5988 -0
  129. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +56 -0
  130. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc-fixtures.json +75 -0
  131. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +538 -0
  132. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +116 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +4713 -0
  134. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +761 -0
  135. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +663 -0
  136. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +191 -0
  137. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  138. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +26 -18
  139. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +153 -14
  140. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +1 -1
  141. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +22 -15
  142. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  143. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.d.ts +1 -30
  144. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +2 -199
  145. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +1 -10
  146. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -446
  147. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/endpoint.js +2 -0
  148. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +2 -0
  149. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +13 -2
  150. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +4 -1
  151. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +4 -1
  152. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.d.ts +1 -53
  153. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js +2 -280
  154. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.d.ts +5 -10
  155. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.js +4 -1
  156. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.d.ts +20 -0
  157. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.js +180 -0
  158. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +41 -15
  159. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +5 -2
  160. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +48 -5
  161. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.d.ts +1 -0
  162. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.js +1 -0
  163. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.d.ts +1 -0
  164. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.js +1 -0
  165. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.d.ts +4 -0
  166. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.js +18 -0
  167. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +1 -10
  168. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +2 -23
  169. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.d.ts +2 -72
  170. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.js +2 -10
  171. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -4
  172. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +1 -1
  173. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +12 -5
  174. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.d.ts +5 -1
  175. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.js +9 -0
  176. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.d.ts +5 -6
  177. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.js +33 -45
  178. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/identity.js +6 -0
  179. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +4 -6
  180. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +3 -5
  181. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -17
  182. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
  183. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -0
  184. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -0
  185. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +52 -8
  186. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.d.ts +9 -0
  187. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.js +20 -0
  188. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +3 -1
  189. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +1 -0
  190. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +27 -29
  191. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +86 -37
  192. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +1 -6
  193. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +3 -17
  194. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.d.ts +5 -0
  195. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
  196. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  197. package/node_modules/semver/classes/range.js +2 -2
  198. package/node_modules/semver/internal/constants.js +30 -0
  199. package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
  200. package/node_modules/semver/package.json +1 -1
  201. package/node_modules/ws/README.md +21 -29
  202. package/node_modules/ws/lib/buffer-util.js +13 -2
  203. package/node_modules/ws/lib/sender.js +4 -1
  204. package/node_modules/ws/lib/websocket.js +8 -3
  205. package/node_modules/ws/package.json +1 -1
  206. package/package.json +33 -135
  207. package/packages/octo-runtime-protocol/schema/kernel-ipc-fixtures.json +28 -6
  208. package/packages/octo-runtime-protocol/schema/protocol.schema.json +296 -66
  209. package/apps/cli/dist/extra-command-config.d.ts +0 -4
  210. package/apps/cli/dist/extra-command-config.js +0 -50
  211. package/apps/cli/dist/extra-commands.d.ts +0 -15
  212. package/apps/cli/dist/extra-commands.js +0 -275
  213. package/apps/cli/dist/extras.d.ts +0 -8
  214. package/apps/cli/dist/extras.js +0 -72
  215. package/apps/cli/dist/global-extras.d.ts +0 -16
  216. package/apps/cli/dist/global-extras.js +0 -201
  217. package/apps/cli/dist/status-output.d.ts +0 -10
  218. package/apps/cli/dist/status-output.js +0 -65
  219. package/dist/public/channel-gateway-commands.d.ts +0 -1
  220. package/dist/public/channel-gateway-commands.js +0 -1
  221. package/dist/public/channel-gateway.d.ts +0 -3
  222. package/dist/public/channel-gateway.js +0 -1
  223. package/dist/public/channel-wecom-commands.d.ts +0 -1
  224. package/dist/public/channel-wecom-commands.js +0 -1
  225. package/dist/public/channel-wecom.d.ts +0 -2
  226. package/dist/public/channel-wecom.js +0 -1
  227. package/dist/public/extra.d.ts +0 -5
  228. package/dist/public/extra.js +0 -3
  229. package/dist/public/webui-commands.d.ts +0 -1
  230. package/dist/public/webui-commands.js +0 -1
  231. package/dist/public/webui.d.ts +0 -1
  232. package/dist/public/webui.js +0 -1
  233. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +0 -4
  234. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +0 -50
  235. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +0 -15
  236. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +0 -275
  237. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +0 -8
  238. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +0 -72
  239. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +0 -16
  240. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +0 -201
  241. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.d.ts +0 -10
  242. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.js +0 -65
  243. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +0 -8
  244. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +0 -62
  245. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  246. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +0 -50
  247. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +0 -140
  248. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +0 -3
  249. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +0 -27
  250. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.d.ts +0 -17
  251. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.js +0 -123
  252. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +0 -15
  253. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +0 -1489
  254. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +0 -28
  255. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +0 -77
  256. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +0 -71
  257. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +0 -153
  258. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +0 -15
  259. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +0 -28
  260. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +0 -4
  261. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +0 -124
  262. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +0 -172
  263. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +0 -22
  264. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +0 -46
  265. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +0 -16
  266. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +0 -285
  267. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +0 -20
  268. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +0 -109
  269. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +0 -15
  270. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +0 -36
  271. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +0 -16
  272. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +0 -98
  273. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +0 -6
  274. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +0 -10
  275. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +0 -17
  276. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +0 -238
  277. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +0 -29
  278. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +0 -171
  279. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +0 -44
  280. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +0 -392
  281. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +0 -3
  282. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +0 -27
  283. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +0 -4
  284. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +0 -87
  285. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +0 -20
  286. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +0 -13
  287. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +0 -9
  288. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +0 -162
  289. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +0 -12
  290. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +0 -154
  291. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +0 -34
  292. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +0 -67
  293. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +0 -588
  294. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +0 -16
  295. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +0 -83
  296. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +0 -132
  297. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +0 -226
  298. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +0 -65
  299. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +0 -202
  300. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +0 -112
  301. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +0 -138
  302. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -48
  303. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +0 -116
  304. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +0 -51
  305. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +0 -79
  306. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +0 -30
  307. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +0 -222
  308. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +0 -13
  309. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +0 -13
  310. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +0 -92
  311. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +0 -173
  312. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +0 -84
  313. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +0 -110
  314. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +0 -87
  315. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +0 -45
  316. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +0 -2
  317. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +0 -7
  318. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +0 -5
  319. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +0 -23
  320. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +0 -20
  321. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +0 -75
  322. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +0 -22
  323. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +0 -136
  324. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +0 -7
  325. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +0 -40
  326. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +0 -70
  327. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +0 -646
  328. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +0 -17
  329. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +0 -91
  330. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +0 -18
  331. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +0 -148
  332. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +0 -15
  333. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +0 -257
  334. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +0 -12
  335. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +0 -133
  336. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +0 -21
  337. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +0 -76
  338. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +0 -6
  339. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +0 -163
  340. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +0 -4
  341. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +0 -113
  342. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -13
  343. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -75
  344. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +0 -6
  345. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +0 -117
  346. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +0 -16
  347. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +0 -74
  348. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +0 -4
  349. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +0 -19
  350. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +0 -7
  351. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +0 -90
  352. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +0 -20
  353. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +0 -85
  354. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +0 -34
  355. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +0 -430
  356. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +0 -6
  357. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +0 -63
  358. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +0 -6
  359. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +0 -60
  360. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +0 -9
  361. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +0 -71
  362. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +0 -44
  363. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +0 -357
  364. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +0 -33
  365. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  366. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +0 -11
  367. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +0 -754
  368. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +0 -35
  369. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +0 -93
  370. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +0 -4
  371. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +0 -128
  372. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +0 -78
  373. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +0 -1
  374. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +0 -16
  375. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +0 -69
  376. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +0 -12
  377. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +0 -95
  378. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +0 -3
  379. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +0 -85
  380. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +0 -10
  381. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +0 -6
  382. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +0 -6
  383. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +0 -109
  384. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +0 -12
  385. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +0 -73
  386. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +0 -24
  387. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +0 -1
  388. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +0 -45
  389. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +0 -258
  390. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +0 -21
  391. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +0 -124
  392. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +0 -53
  393. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +0 -219
  394. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +0 -10
  395. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +0 -52
  396. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +0 -31
  397. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +0 -134
  398. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +0 -3
  399. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +0 -51
  400. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +0 -3
  401. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +0 -423
  402. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +0 -25
  403. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +0 -130
  404. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-BLMf2Etg.js +0 -73
  405. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +0 -1
  406. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +0 -3
  407. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +0 -28
  408. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +0 -32
  409. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +0 -165
  410. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +0 -70
  411. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +0 -16
  412. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.d.ts +0 -20
  413. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +0 -134
  414. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.d.ts +0 -4
  415. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.js +0 -21
  416. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +0 -22
  417. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -309
  418. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -55
  419. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -375
  420. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.d.ts +0 -7
  421. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.js +0 -39
  422. package/node_modules/@types/debug/LICENSE +0 -21
  423. package/node_modules/@types/debug/README.md +0 -69
  424. package/node_modules/@types/debug/index.d.ts +0 -50
  425. package/node_modules/@types/debug/package.json +0 -58
  426. package/node_modules/@types/mdast/LICENSE +0 -21
  427. package/node_modules/@types/mdast/README.md +0 -15
  428. package/node_modules/@types/mdast/index.d.ts +0 -1123
  429. package/node_modules/@types/mdast/package.json +0 -47
  430. package/node_modules/@types/ms/LICENSE +0 -21
  431. package/node_modules/@types/ms/README.md +0 -82
  432. package/node_modules/@types/ms/index.d.ts +0 -63
  433. package/node_modules/@types/ms/package.json +0 -26
  434. package/node_modules/@types/unist/LICENSE +0 -21
  435. package/node_modules/@types/unist/README.md +0 -15
  436. package/node_modules/@types/unist/index.d.ts +0 -119
  437. package/node_modules/@types/unist/package.json +0 -60
  438. package/node_modules/character-entities/index.d.ts +0 -6
  439. package/node_modules/character-entities/index.js +0 -2132
  440. package/node_modules/character-entities/license +0 -22
  441. package/node_modules/character-entities/package.json +0 -78
  442. package/node_modules/character-entities/readme.md +0 -152
  443. package/node_modules/debug/LICENSE +0 -20
  444. package/node_modules/debug/README.md +0 -481
  445. package/node_modules/debug/package.json +0 -64
  446. package/node_modules/debug/src/browser.js +0 -272
  447. package/node_modules/debug/src/common.js +0 -292
  448. package/node_modules/debug/src/index.js +0 -10
  449. package/node_modules/debug/src/node.js +0 -263
  450. package/node_modules/decode-named-character-reference/index.d.ts +0 -13
  451. package/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  452. package/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  453. package/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  454. package/node_modules/decode-named-character-reference/index.dom.js +0 -32
  455. package/node_modules/decode-named-character-reference/index.js +0 -19
  456. package/node_modules/decode-named-character-reference/license +0 -22
  457. package/node_modules/decode-named-character-reference/package.json +0 -90
  458. package/node_modules/decode-named-character-reference/readme.md +0 -136
  459. package/node_modules/dequal/dist/index.js +0 -86
  460. package/node_modules/dequal/dist/index.min.js +0 -1
  461. package/node_modules/dequal/dist/index.mjs +0 -84
  462. package/node_modules/dequal/index.d.ts +0 -1
  463. package/node_modules/dequal/license +0 -21
  464. package/node_modules/dequal/lite/index.d.ts +0 -1
  465. package/node_modules/dequal/lite/index.js +0 -31
  466. package/node_modules/dequal/lite/index.min.js +0 -1
  467. package/node_modules/dequal/lite/index.mjs +0 -29
  468. package/node_modules/dequal/package.json +0 -57
  469. package/node_modules/dequal/readme.md +0 -112
  470. package/node_modules/devlop/lib/default.js +0 -9
  471. package/node_modules/devlop/lib/development.d.ts +0 -84
  472. package/node_modules/devlop/lib/development.js +0 -238
  473. package/node_modules/devlop/license +0 -22
  474. package/node_modules/devlop/package.json +0 -80
  475. package/node_modules/devlop/readme.md +0 -360
  476. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
  477. package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
  478. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
  479. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
  480. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1455
  481. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -321
  482. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
  483. package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
  484. package/node_modules/mdast-util-from-markdown/index.js +0 -2
  485. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
  486. package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
  487. package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1270
  488. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -321
  489. package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
  490. package/node_modules/mdast-util-from-markdown/license +0 -22
  491. package/node_modules/mdast-util-from-markdown/package.json +0 -98
  492. package/node_modules/mdast-util-from-markdown/readme.md +0 -549
  493. package/node_modules/mdast-util-to-string/index.d.ts +0 -2
  494. package/node_modules/mdast-util-to-string/index.js +0 -5
  495. package/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
  496. package/node_modules/mdast-util-to-string/lib/index.js +0 -108
  497. package/node_modules/mdast-util-to-string/license +0 -22
  498. package/node_modules/mdast-util-to-string/package.json +0 -78
  499. package/node_modules/mdast-util-to-string/readme.md +0 -218
  500. package/node_modules/micromark/dev/index.d.ts +0 -82
  501. package/node_modules/micromark/dev/index.d.ts.map +0 -1
  502. package/node_modules/micromark/dev/index.js +0 -68
  503. package/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  504. package/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  505. package/node_modules/micromark/dev/lib/compile.js +0 -1162
  506. package/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  507. package/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  508. package/node_modules/micromark/dev/lib/constructs.js +0 -101
  509. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  510. package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  511. package/node_modules/micromark/dev/lib/create-tokenizer.js +0 -718
  512. package/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  513. package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  514. package/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  515. package/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  516. package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  517. package/node_modules/micromark/dev/lib/initialize/document.js +0 -449
  518. package/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  519. package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  520. package/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  521. package/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  522. package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  523. package/node_modules/micromark/dev/lib/initialize/text.js +0 -248
  524. package/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  525. package/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  526. package/node_modules/micromark/dev/lib/parse.js +0 -58
  527. package/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  528. package/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  529. package/node_modules/micromark/dev/lib/postprocess.js +0 -19
  530. package/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  531. package/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  532. package/node_modules/micromark/dev/lib/preprocess.js +0 -139
  533. package/node_modules/micromark/dev/stream.d.ts +0 -35
  534. package/node_modules/micromark/dev/stream.d.ts.map +0 -1
  535. package/node_modules/micromark/dev/stream.js +0 -270
  536. package/node_modules/micromark/index.d.ts +0 -82
  537. package/node_modules/micromark/index.d.ts.map +0 -1
  538. package/node_modules/micromark/index.js +0 -60
  539. package/node_modules/micromark/lib/compile.d.ts +0 -16
  540. package/node_modules/micromark/lib/compile.d.ts.map +0 -1
  541. package/node_modules/micromark/lib/compile.js +0 -1068
  542. package/node_modules/micromark/lib/constructs.d.ts +0 -73
  543. package/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  544. package/node_modules/micromark/lib/constructs.js +0 -85
  545. package/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  546. package/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  547. package/node_modules/micromark/lib/create-tokenizer.js +0 -613
  548. package/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  549. package/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  550. package/node_modules/micromark/lib/initialize/content.js +0 -79
  551. package/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  552. package/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  553. package/node_modules/micromark/lib/initialize/document.js +0 -370
  554. package/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  555. package/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  556. package/node_modules/micromark/lib/initialize/flow.js +0 -58
  557. package/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  558. package/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  559. package/node_modules/micromark/lib/initialize/text.js +0 -216
  560. package/node_modules/micromark/lib/parse.d.ts +0 -10
  561. package/node_modules/micromark/lib/parse.d.ts.map +0 -1
  562. package/node_modules/micromark/lib/parse.js +0 -56
  563. package/node_modules/micromark/lib/postprocess.d.ts +0 -9
  564. package/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  565. package/node_modules/micromark/lib/postprocess.js +0 -18
  566. package/node_modules/micromark/lib/preprocess.d.ts +0 -13
  567. package/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  568. package/node_modules/micromark/lib/preprocess.js +0 -112
  569. package/node_modules/micromark/license +0 -22
  570. package/node_modules/micromark/package.json +0 -87
  571. package/node_modules/micromark/readme.md +0 -488
  572. package/node_modules/micromark/stream.d.ts +0 -35
  573. package/node_modules/micromark/stream.d.ts.map +0 -1
  574. package/node_modules/micromark/stream.js +0 -256
  575. package/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  576. package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  577. package/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  578. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  579. package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  580. package/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -294
  581. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  582. package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  583. package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  584. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  585. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  586. package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  587. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  588. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  589. package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  590. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  591. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  592. package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  593. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  594. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  595. package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  596. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  597. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  598. package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -472
  599. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  600. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  601. package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -178
  602. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  603. package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  604. package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  605. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  606. package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  607. package/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  608. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  609. package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  610. package/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  611. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  612. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  613. package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  614. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  615. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  616. package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -229
  617. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  618. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  619. package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -938
  620. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  621. package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  622. package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  623. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  624. package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  625. package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -658
  626. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  627. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  628. package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -119
  629. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  630. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  631. package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -71
  632. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  633. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  634. package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  635. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  636. package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  637. package/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  638. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +0 -4
  639. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  640. package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +0 -67
  641. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  642. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  643. package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -213
  644. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  645. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  646. package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  647. package/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  648. package/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  649. package/node_modules/micromark-core-commonmark/index.js +0 -22
  650. package/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  651. package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  652. package/node_modules/micromark-core-commonmark/lib/attention.js +0 -231
  653. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  654. package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  655. package/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  656. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  657. package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  658. package/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  659. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  660. package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  661. package/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  662. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  663. package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  664. package/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  665. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  666. package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  667. package/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  668. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  669. package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  670. package/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -422
  671. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  672. package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  673. package/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -159
  674. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  675. package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  676. package/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  677. package/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  678. package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  679. package/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  680. package/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  681. package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  682. package/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  683. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  684. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  685. package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  686. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  687. package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  688. package/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -191
  689. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  690. package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  691. package/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -827
  692. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  693. package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  694. package/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  695. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  696. package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  697. package/node_modules/micromark-core-commonmark/lib/label-end.js +0 -561
  698. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  699. package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  700. package/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -110
  701. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  702. package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  703. package/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -63
  704. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  705. package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  706. package/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  707. package/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  708. package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  709. package/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  710. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +0 -4
  711. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +0 -1
  712. package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +0 -61
  713. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  714. package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  715. package/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -187
  716. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  717. package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  718. package/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  719. package/node_modules/micromark-core-commonmark/license +0 -22
  720. package/node_modules/micromark-core-commonmark/package.json +0 -62
  721. package/node_modules/micromark-core-commonmark/readme.md +0 -171
  722. package/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  723. package/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  724. package/node_modules/micromark-factory-destination/dev/index.js +0 -255
  725. package/node_modules/micromark-factory-destination/index.d.ts +0 -42
  726. package/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  727. package/node_modules/micromark-factory-destination/index.js +0 -206
  728. package/node_modules/micromark-factory-destination/license +0 -22
  729. package/node_modules/micromark-factory-destination/package.json +0 -57
  730. package/node_modules/micromark-factory-destination/readme.md +0 -234
  731. package/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  732. package/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  733. package/node_modules/micromark-factory-label/dev/index.js +0 -172
  734. package/node_modules/micromark-factory-label/index.d.ts +0 -37
  735. package/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  736. package/node_modules/micromark-factory-label/index.js +0 -148
  737. package/node_modules/micromark-factory-label/license +0 -22
  738. package/node_modules/micromark-factory-label/package.json +0 -60
  739. package/node_modules/micromark-factory-label/readme.md +0 -224
  740. package/node_modules/micromark-factory-space/dev/index.d.ts +0 -60
  741. package/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  742. package/node_modules/micromark-factory-space/dev/index.js +0 -122
  743. package/node_modules/micromark-factory-space/index.d.ts +0 -60
  744. package/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  745. package/node_modules/micromark-factory-space/index.js +0 -116
  746. package/node_modules/micromark-factory-space/license +0 -22
  747. package/node_modules/micromark-factory-space/package.json +0 -46
  748. package/node_modules/micromark-factory-space/readme.md +0 -225
  749. package/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  750. package/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  751. package/node_modules/micromark-factory-title/dev/index.js +0 -169
  752. package/node_modules/micromark-factory-title/index.d.ts +0 -36
  753. package/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  754. package/node_modules/micromark-factory-title/index.js +0 -158
  755. package/node_modules/micromark-factory-title/license +0 -22
  756. package/node_modules/micromark-factory-title/package.json +0 -58
  757. package/node_modules/micromark-factory-title/readme.md +0 -229
  758. package/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  759. package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  760. package/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  761. package/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  762. package/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  763. package/node_modules/micromark-factory-whitespace/index.js +0 -44
  764. package/node_modules/micromark-factory-whitespace/license +0 -22
  765. package/node_modules/micromark-factory-whitespace/package.json +0 -57
  766. package/node_modules/micromark-factory-whitespace/readme.md +0 -205
  767. package/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  768. package/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  769. package/node_modules/micromark-util-character/dev/index.js +0 -252
  770. package/node_modules/micromark-util-character/index.d.ts +0 -195
  771. package/node_modules/micromark-util-character/index.d.ts.map +0 -1
  772. package/node_modules/micromark-util-character/index.js +0 -246
  773. package/node_modules/micromark-util-character/license +0 -22
  774. package/node_modules/micromark-util-character/package.json +0 -57
  775. package/node_modules/micromark-util-character/readme.md +0 -446
  776. package/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  777. package/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  778. package/node_modules/micromark-util-chunked/dev/index.js +0 -89
  779. package/node_modules/micromark-util-chunked/index.d.ts +0 -41
  780. package/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  781. package/node_modules/micromark-util-chunked/index.js +0 -81
  782. package/node_modules/micromark-util-chunked/license +0 -22
  783. package/node_modules/micromark-util-chunked/package.json +0 -57
  784. package/node_modules/micromark-util-chunked/readme.md +0 -219
  785. package/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  786. package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  787. package/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  788. package/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  789. package/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  790. package/node_modules/micromark-util-classify-character/index.js +0 -27
  791. package/node_modules/micromark-util-classify-character/license +0 -22
  792. package/node_modules/micromark-util-classify-character/package.json +0 -59
  793. package/node_modules/micromark-util-classify-character/readme.md +0 -205
  794. package/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  795. package/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  796. package/node_modules/micromark-util-combine-extensions/index.js +0 -143
  797. package/node_modules/micromark-util-combine-extensions/license +0 -22
  798. package/node_modules/micromark-util-combine-extensions/package.json +0 -52
  799. package/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  800. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  801. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  802. package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  803. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  804. package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  805. package/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  806. package/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  807. package/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  808. package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  809. package/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
  810. package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
  811. package/node_modules/micromark-util-decode-string/dev/index.js +0 -53
  812. package/node_modules/micromark-util-decode-string/index.d.ts +0 -14
  813. package/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
  814. package/node_modules/micromark-util-decode-string/index.js +0 -45
  815. package/node_modules/micromark-util-decode-string/license +0 -22
  816. package/node_modules/micromark-util-decode-string/package.json +0 -63
  817. package/node_modules/micromark-util-decode-string/readme.md +0 -179
  818. package/node_modules/micromark-util-edit-map/dev/index.d.ts +0 -78
  819. package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +0 -1
  820. package/node_modules/micromark-util-edit-map/dev/index.js +0 -237
  821. package/node_modules/micromark-util-edit-map/index.d.ts +0 -78
  822. package/node_modules/micromark-util-edit-map/index.d.ts.map +0 -1
  823. package/node_modules/micromark-util-edit-map/index.js +0 -225
  824. package/node_modules/micromark-util-edit-map/license +0 -22
  825. package/node_modules/micromark-util-edit-map/package.json +0 -48
  826. package/node_modules/micromark-util-edit-map/readme.md +0 -234
  827. package/node_modules/micromark-util-encode/index.d.ts +0 -14
  828. package/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  829. package/node_modules/micromark-util-encode/index.js +0 -33
  830. package/node_modules/micromark-util-encode/license +0 -22
  831. package/node_modules/micromark-util-encode/package.json +0 -47
  832. package/node_modules/micromark-util-encode/readme.md +0 -176
  833. package/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  834. package/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  835. package/node_modules/micromark-util-html-tag-name/index.js +0 -93
  836. package/node_modules/micromark-util-html-tag-name/license +0 -22
  837. package/node_modules/micromark-util-html-tag-name/package.json +0 -47
  838. package/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  839. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  840. package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  841. package/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  842. package/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  843. package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  844. package/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  845. package/node_modules/micromark-util-normalize-identifier/license +0 -22
  846. package/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  847. package/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  848. package/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  849. package/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  850. package/node_modules/micromark-util-resolve-all/index.js +0 -32
  851. package/node_modules/micromark-util-resolve-all/license +0 -22
  852. package/node_modules/micromark-util-resolve-all/package.json +0 -48
  853. package/node_modules/micromark-util-resolve-all/readme.md +0 -238
  854. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  855. package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  856. package/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  857. package/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  858. package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  859. package/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  860. package/node_modules/micromark-util-sanitize-uri/license +0 -22
  861. package/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  862. package/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  863. package/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  864. package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  865. package/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  866. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  867. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  868. package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  869. package/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  870. package/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  871. package/node_modules/micromark-util-subtokenize/index.js +0 -228
  872. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  873. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  874. package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  875. package/node_modules/micromark-util-subtokenize/license +0 -22
  876. package/node_modules/micromark-util-subtokenize/package.json +0 -60
  877. package/node_modules/micromark-util-subtokenize/readme.md +0 -181
  878. package/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  879. package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  880. package/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  881. package/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  882. package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  883. package/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  884. package/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  885. package/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  886. package/node_modules/micromark-util-symbol/lib/default.js +0 -4
  887. package/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  888. package/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  889. package/node_modules/micromark-util-symbol/lib/types.js +0 -453
  890. package/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  891. package/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  892. package/node_modules/micromark-util-symbol/lib/values.js +0 -109
  893. package/node_modules/micromark-util-symbol/license +0 -22
  894. package/node_modules/micromark-util-symbol/package.json +0 -43
  895. package/node_modules/micromark-util-symbol/readme.md +0 -168
  896. package/node_modules/micromark-util-types/index.d.ts +0 -1315
  897. package/node_modules/micromark-util-types/index.js +0 -2
  898. package/node_modules/micromark-util-types/license +0 -22
  899. package/node_modules/micromark-util-types/package.json +0 -37
  900. package/node_modules/micromark-util-types/readme.md +0 -151
  901. package/node_modules/ms/index.js +0 -162
  902. package/node_modules/ms/license.md +0 -21
  903. package/node_modules/ms/package.json +0 -38
  904. package/node_modules/ms/readme.md +0 -59
  905. package/node_modules/unist-util-stringify-position/index.d.ts +0 -1
  906. package/node_modules/unist-util-stringify-position/index.js +0 -1
  907. package/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
  908. package/node_modules/unist-util-stringify-position/lib/index.js +0 -84
  909. package/node_modules/unist-util-stringify-position/license +0 -22
  910. package/node_modules/unist-util-stringify-position/package.json +0 -80
  911. package/node_modules/unist-util-stringify-position/readme.md +0 -206
  912. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
  913. package/packages/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
  914. package/packages/octo-runtime-extra-webui/config-schema.json +0 -134
  915. /package/node_modules/@mininglamp-oss/{octo-runtime-extra-channel-gateway/dist/contracts.js → octo-runtime-adapter-sdk/dist/execution-scope.js} +0 -0
  916. /package/node_modules/@mininglamp-oss/{octo-runtime-extra-channel-gateway/dist/ports.js → octo-runtime-protocol/dist/adapter-metadata.js} +0 -0
@@ -0,0 +1,4713 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "urn:mininglamp-oss:octo-runtime:protocol-schema",
4
+ "title": "OctoRuntimeProtocolSchema",
5
+ "description": "Serializable data shapes for the Octo Runtime NDJSON protocol. Runtime behavior remains hand-written in src/index.ts, and this schema is the source of truth for generated TypeScript types. The x-octo-unicode-scalar-strings semantic keyword requires every JSON string value and object member name to contain Unicode scalar values only: unpaired UTF-16 surrogates are rejected, not repaired or normalized. Consumers must enforce this protocol-wide rule even when validating a definition directly.",
6
+ "x-octo-unicode-scalar-strings": true,
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "definitions": {
10
+ "KernelLookupKey": {
11
+ "title": "KernelLookupKey",
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "required": [
15
+ "run_id",
16
+ "invocation_id",
17
+ "agent_session_id",
18
+ "session_generation",
19
+ "protocol_mode"
20
+ ],
21
+ "properties": {
22
+ "run_id": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 256
26
+ },
27
+ "invocation_id": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 256
31
+ },
32
+ "agent_session_id": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 256
36
+ },
37
+ "session_generation": {
38
+ "type": "integer",
39
+ "minimum": 0,
40
+ "maximum": 9007199254740991
41
+ },
42
+ "protocol_mode": {
43
+ "$ref": "#/definitions/ProtocolMode"
44
+ }
45
+ }
46
+ },
47
+ "KernelRunRef": {
48
+ "title": "KernelRunRef",
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "required": [
52
+ "kernel_instance_id",
53
+ "run_id",
54
+ "invocation_id",
55
+ "stream_id",
56
+ "agent_session_id",
57
+ "session_generation",
58
+ "protocol_mode",
59
+ "protocol"
60
+ ],
61
+ "properties": {
62
+ "kernel_instance_id": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "run_id": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 256
70
+ },
71
+ "invocation_id": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "maxLength": 256
75
+ },
76
+ "stream_id": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "maxLength": 256
80
+ },
81
+ "agent_session_id": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 256
85
+ },
86
+ "session_generation": {
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "maximum": 9007199254740991
90
+ },
91
+ "protocol_mode": {
92
+ "$ref": "#/definitions/ProtocolMode"
93
+ },
94
+ "protocol": {
95
+ "type": "string",
96
+ "minLength": 1,
97
+ "maxLength": 128
98
+ }
99
+ }
100
+ },
101
+ "KernelRunSnapshot": {
102
+ "title": "KernelRunSnapshot",
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": ["ref", "oldest_seq", "latest_seq"],
106
+ "properties": {
107
+ "ref": {
108
+ "$ref": "#/definitions/KernelRunRef"
109
+ },
110
+ "oldest_seq": {
111
+ "type": "integer",
112
+ "minimum": 1,
113
+ "maximum": 9007199254740991
114
+ },
115
+ "latest_seq": {
116
+ "type": "integer",
117
+ "minimum": 0,
118
+ "maximum": 9007199254740991
119
+ },
120
+ "terminal": {
121
+ "$ref": "#/definitions/HostFrame"
122
+ }
123
+ }
124
+ },
125
+ "ServiceProcessSnapshot": {
126
+ "title": "ServiceProcessSnapshot",
127
+ "type": "object",
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "scope_id",
131
+ "service_id",
132
+ "incarnation",
133
+ "provider",
134
+ "owner_pid",
135
+ "state",
136
+ "observation",
137
+ "ownership"
138
+ ],
139
+ "properties": {
140
+ "scope_id": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ },
144
+ "service_id": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ },
148
+ "incarnation": {
149
+ "type": "integer",
150
+ "minimum": 0
151
+ },
152
+ "provider": {
153
+ "type": "string",
154
+ "minLength": 1
155
+ },
156
+ "owner_pid": {
157
+ "type": "integer",
158
+ "minimum": 1
159
+ },
160
+ "pid": {
161
+ "type": "integer",
162
+ "minimum": 1
163
+ },
164
+ "state": {
165
+ "enum": [
166
+ "not_started",
167
+ "starting",
168
+ "ready",
169
+ "recovering",
170
+ "degraded",
171
+ "closing",
172
+ "closed",
173
+ "cleanup_incomplete"
174
+ ]
175
+ },
176
+ "observation": {
177
+ "enum": ["alive", "exited", "unknown"]
178
+ },
179
+ "ownership": {
180
+ "const": "owned"
181
+ }
182
+ }
183
+ },
184
+ "KernelStatus": {
185
+ "title": "KernelStatus",
186
+ "type": "object",
187
+ "additionalProperties": false,
188
+ "required": ["ipc_version", "kernel_instance_id", "pid", "execution_ready"],
189
+ "properties": {
190
+ "ipc_version": {
191
+ "const": 2
192
+ },
193
+ "kernel_instance_id": {
194
+ "type": "string",
195
+ "minLength": 1
196
+ },
197
+ "pid": {
198
+ "type": "integer",
199
+ "minimum": 1
200
+ },
201
+ "execution_ready": {
202
+ "type": "boolean"
203
+ },
204
+ "service_processes": {
205
+ "type": "array",
206
+ "maxItems": 256,
207
+ "items": {
208
+ "$ref": "#/definitions/ServiceProcessSnapshot"
209
+ }
210
+ }
211
+ }
212
+ },
213
+ "RunProtocolErrorCode": {
214
+ "title": "RunProtocolErrorCode",
215
+ "enum": [
216
+ "PROTOCOL_MODE_INVALID",
217
+ "PROTOCOL_MODE_UNSUPPORTED",
218
+ "EXECUTION_PROTOCOL_MISMATCH",
219
+ "EXECUTION_IDENTITY_CONFLICT",
220
+ "NATIVE_METHOD_UNSUPPORTED",
221
+ "NATIVE_RESPONSE_INVALID",
222
+ "INTERACTION_NOT_ACTIVE",
223
+ "INVALID_QUESTION_RESPONSE",
224
+ "ASYNC_ANSWER_REJECTED",
225
+ "OPERATION_OUTCOME_UNKNOWN",
226
+ "HOST_EXECUTION_FAILED",
227
+ "HOST_ENDED_WITHOUT_TERMINAL",
228
+ "PROVIDER_MESSAGE_TOO_LARGE",
229
+ "HOST_FRAME_TOO_LARGE",
230
+ "STREAM_QUEUE_ITEM_TOO_LARGE",
231
+ "STREAM_QUEUE_BYTES_EXCEEDED",
232
+ "STREAM_QUEUE_ITEMS_EXCEEDED",
233
+ "STREAM_GAP",
234
+ "STREAM_EXPIRED",
235
+ "REMOTE_NATIVE_UNSUPPORTED",
236
+ "HOST_FRAME_INVALID",
237
+ "HOST_CONTROL_INVALID",
238
+ "HOST_RECEIPT_INVALID",
239
+ "PROTOCOL_SUPPORT_INVALID"
240
+ ]
241
+ },
242
+ "ProtocolMode": {
243
+ "title": "ProtocolMode",
244
+ "enum": ["native", "canonical"]
245
+ },
246
+ "CanonicalEventWire": {
247
+ "title": "CanonicalEventWire",
248
+ "type": "object",
249
+ "additionalProperties": false,
250
+ "required": ["protocolVersion", "type", "payload"],
251
+ "properties": {
252
+ "protocolVersion": {
253
+ "const": 2
254
+ },
255
+ "type": {
256
+ "enum": [
257
+ "session.update",
258
+ "execution.update",
259
+ "usage.update",
260
+ "model_step.started",
261
+ "model_step.finished",
262
+ "message.create",
263
+ "message.delta",
264
+ "message.update",
265
+ "tool_call.create",
266
+ "tool_call.delta",
267
+ "tool_call.update",
268
+ "activity.started",
269
+ "activity.updated",
270
+ "activity.finished",
271
+ "plan.updated",
272
+ "tool_call.progress",
273
+ "run.notice",
274
+ "interaction.requested",
275
+ "interaction.resolved",
276
+ "run.queued",
277
+ "run.started",
278
+ "run.completed",
279
+ "run.failed",
280
+ "run.cancelled"
281
+ ]
282
+ },
283
+ "payload": {
284
+ "$ref": "#/definitions/CanonicalEventPayload"
285
+ }
286
+ }
287
+ },
288
+ "HostInvokeOptions": {
289
+ "title": "HostInvokeOptions",
290
+ "type": "object",
291
+ "additionalProperties": false,
292
+ "properties": {
293
+ "protocolMode": {
294
+ "$ref": "#/definitions/ProtocolMode",
295
+ "default": "native"
296
+ },
297
+ "protocol": {
298
+ "type": "string",
299
+ "minLength": 1,
300
+ "maxLength": 128
301
+ }
302
+ }
303
+ },
304
+ "HostRunReceipt": {
305
+ "title": "HostRunReceipt",
306
+ "type": "object",
307
+ "additionalProperties": false,
308
+ "required": [
309
+ "run_id",
310
+ "invocation_id",
311
+ "stream_id",
312
+ "agent_session_id",
313
+ "session_generation",
314
+ "protocol_mode",
315
+ "protocol"
316
+ ],
317
+ "properties": {
318
+ "run_id": {
319
+ "type": "string",
320
+ "minLength": 1,
321
+ "maxLength": 256
322
+ },
323
+ "invocation_id": {
324
+ "type": "string",
325
+ "minLength": 1,
326
+ "maxLength": 256
327
+ },
328
+ "stream_id": {
329
+ "type": "string",
330
+ "minLength": 1,
331
+ "maxLength": 256
332
+ },
333
+ "agent_session_id": {
334
+ "type": "string",
335
+ "minLength": 1,
336
+ "maxLength": 256
337
+ },
338
+ "session_generation": {
339
+ "type": "integer",
340
+ "minimum": 0,
341
+ "maximum": 9007199254740991
342
+ },
343
+ "protocol_mode": {
344
+ "$ref": "#/definitions/ProtocolMode"
345
+ },
346
+ "protocol": {
347
+ "type": "string",
348
+ "minLength": 1,
349
+ "maxLength": 128
350
+ }
351
+ }
352
+ },
353
+ "AdapterProtocolSupport": {
354
+ "title": "AdapterProtocolSupport",
355
+ "type": "object",
356
+ "additionalProperties": false,
357
+ "required": ["protocol", "modes", "nativeMethods"],
358
+ "properties": {
359
+ "protocol": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "maxLength": 128
363
+ },
364
+ "modes": {
365
+ "type": "array",
366
+ "minItems": 1,
367
+ "uniqueItems": true,
368
+ "items": {
369
+ "$ref": "#/definitions/ProtocolMode"
370
+ }
371
+ },
372
+ "nativeMethods": {
373
+ "type": "array",
374
+ "uniqueItems": true,
375
+ "items": {
376
+ "type": "string",
377
+ "minLength": 1,
378
+ "maxLength": 256
379
+ }
380
+ }
381
+ },
382
+ "if": {
383
+ "properties": {
384
+ "modes": {
385
+ "not": {
386
+ "contains": {
387
+ "const": "native"
388
+ }
389
+ }
390
+ }
391
+ }
392
+ },
393
+ "then": {
394
+ "properties": {
395
+ "nativeMethods": {
396
+ "maxItems": 0
397
+ }
398
+ }
399
+ }
400
+ },
401
+ "NativeInteractionResponse": {
402
+ "title": "NativeInteractionResponse",
403
+ "type": "object",
404
+ "additionalProperties": false,
405
+ "required": ["requestId", "payload"],
406
+ "properties": {
407
+ "requestId": {
408
+ "oneOf": [
409
+ {
410
+ "type": "string",
411
+ "minLength": 1,
412
+ "maxLength": 256
413
+ },
414
+ {
415
+ "type": "integer",
416
+ "minimum": -9007199254740991,
417
+ "maximum": 9007199254740991
418
+ }
419
+ ]
420
+ },
421
+ "payload": {
422
+ "type": "object",
423
+ "additionalProperties": true
424
+ }
425
+ }
426
+ },
427
+ "HostControl": {
428
+ "title": "HostControl",
429
+ "oneOf": [
430
+ {
431
+ "type": "object",
432
+ "additionalProperties": false,
433
+ "required": ["type", "name", "payload"],
434
+ "properties": {
435
+ "type": {
436
+ "const": "evidence"
437
+ },
438
+ "name": {
439
+ "const": "execution"
440
+ },
441
+ "payload": {
442
+ "$ref": "#/definitions/ExecutionEvidence"
443
+ }
444
+ }
445
+ },
446
+ {
447
+ "type": "object",
448
+ "additionalProperties": false,
449
+ "required": ["type", "name", "payload"],
450
+ "properties": {
451
+ "type": {
452
+ "const": "evidence"
453
+ },
454
+ "name": {
455
+ "enum": ["session"]
456
+ },
457
+ "payload": {
458
+ "type": "object",
459
+ "additionalProperties": true
460
+ }
461
+ }
462
+ },
463
+ {
464
+ "type": "object",
465
+ "additionalProperties": false,
466
+ "required": ["type", "state"],
467
+ "properties": {
468
+ "type": {
469
+ "const": "state"
470
+ },
471
+ "state": {
472
+ "enum": ["running", "completed", "failed", "cancelled", "lost"]
473
+ }
474
+ }
475
+ },
476
+ {
477
+ "type": "object",
478
+ "additionalProperties": false,
479
+ "required": ["type", "code", "message"],
480
+ "properties": {
481
+ "type": {
482
+ "const": "error"
483
+ },
484
+ "code": {
485
+ "$ref": "#/definitions/RunProtocolErrorCode"
486
+ },
487
+ "message": {
488
+ "type": "string"
489
+ },
490
+ "failure": {
491
+ "$ref": "#/definitions/FailureEnvelope"
492
+ }
493
+ }
494
+ },
495
+ {
496
+ "type": "object",
497
+ "additionalProperties": false,
498
+ "required": ["type", "requestId", "status"],
499
+ "properties": {
500
+ "type": {
501
+ "const": "interaction"
502
+ },
503
+ "requestId": {
504
+ "oneOf": [
505
+ {
506
+ "type": "string",
507
+ "minLength": 1,
508
+ "maxLength": 256
509
+ },
510
+ {
511
+ "type": "integer",
512
+ "minimum": -9007199254740991,
513
+ "maximum": 9007199254740991
514
+ }
515
+ ]
516
+ },
517
+ "status": {
518
+ "enum": ["pending", "resolved", "expired", "invalidated"]
519
+ },
520
+ "responseRequired": {
521
+ "description": "Whether an external response is required. Omission means required; false does not imply resolution or completion.",
522
+ "type": "boolean"
523
+ },
524
+ "expiresAt": {
525
+ "type": "integer",
526
+ "minimum": 1,
527
+ "maximum": 9007199254740991
528
+ }
529
+ },
530
+ "if": {
531
+ "properties": {
532
+ "status": {
533
+ "const": "pending"
534
+ }
535
+ }
536
+ },
537
+ "then": {
538
+ "required": ["expiresAt"]
539
+ },
540
+ "else": {
541
+ "not": {
542
+ "required": ["responseRequired"]
543
+ }
544
+ }
545
+ },
546
+ {
547
+ "type": "object",
548
+ "additionalProperties": false,
549
+ "required": ["type", "requested_after_seq", "oldest_seq", "latest_seq"],
550
+ "properties": {
551
+ "type": {
552
+ "const": "gap"
553
+ },
554
+ "requested_after_seq": {
555
+ "type": "integer",
556
+ "minimum": 0,
557
+ "maximum": 9007199254740991
558
+ },
559
+ "oldest_seq": {
560
+ "type": "integer",
561
+ "minimum": 1,
562
+ "maximum": 9007199254740991
563
+ },
564
+ "latest_seq": {
565
+ "type": "integer",
566
+ "minimum": 0,
567
+ "maximum": 9007199254740991
568
+ }
569
+ }
570
+ }
571
+ ]
572
+ },
573
+ "HostFrame": {
574
+ "title": "HostFrame",
575
+ "oneOf": [
576
+ {
577
+ "$ref": "#/definitions/NativeHostFrame"
578
+ },
579
+ {
580
+ "$ref": "#/definitions/CanonicalHostFrame"
581
+ },
582
+ {
583
+ "$ref": "#/definitions/ControlHostFrame"
584
+ }
585
+ ]
586
+ },
587
+ "NativeHostFrame": {
588
+ "title": "NativeHostFrame",
589
+ "type": "object",
590
+ "additionalProperties": false,
591
+ "required": [
592
+ "run_id",
593
+ "invocation_id",
594
+ "stream_id",
595
+ "agent_session_id",
596
+ "session_generation",
597
+ "seq",
598
+ "protocol_mode",
599
+ "protocol",
600
+ "kind",
601
+ "messageKind",
602
+ "payload"
603
+ ],
604
+ "properties": {
605
+ "run_id": {
606
+ "type": "string",
607
+ "minLength": 1,
608
+ "maxLength": 256
609
+ },
610
+ "invocation_id": {
611
+ "type": "string",
612
+ "minLength": 1,
613
+ "maxLength": 256
614
+ },
615
+ "stream_id": {
616
+ "type": "string",
617
+ "minLength": 1,
618
+ "maxLength": 256
619
+ },
620
+ "agent_session_id": {
621
+ "type": "string",
622
+ "minLength": 1,
623
+ "maxLength": 256
624
+ },
625
+ "session_generation": {
626
+ "type": "integer",
627
+ "minimum": 0,
628
+ "maximum": 9007199254740991
629
+ },
630
+ "seq": {
631
+ "type": "integer",
632
+ "minimum": 1,
633
+ "maximum": 9007199254740991
634
+ },
635
+ "protocol_mode": {
636
+ "const": "native"
637
+ },
638
+ "protocol": {
639
+ "type": "string",
640
+ "minLength": 1,
641
+ "maxLength": 128
642
+ },
643
+ "kind": {
644
+ "const": "native"
645
+ },
646
+ "messageKind": {
647
+ "enum": ["response", "notification", "request", "message"]
648
+ },
649
+ "payload": {
650
+ "type": "object",
651
+ "additionalProperties": true
652
+ }
653
+ }
654
+ },
655
+ "CanonicalHostFrame": {
656
+ "title": "CanonicalHostFrame",
657
+ "type": "object",
658
+ "additionalProperties": false,
659
+ "required": [
660
+ "run_id",
661
+ "invocation_id",
662
+ "stream_id",
663
+ "agent_session_id",
664
+ "session_generation",
665
+ "seq",
666
+ "protocol_mode",
667
+ "protocol",
668
+ "kind",
669
+ "event"
670
+ ],
671
+ "properties": {
672
+ "run_id": {
673
+ "type": "string",
674
+ "minLength": 1,
675
+ "maxLength": 256
676
+ },
677
+ "invocation_id": {
678
+ "type": "string",
679
+ "minLength": 1,
680
+ "maxLength": 256
681
+ },
682
+ "stream_id": {
683
+ "type": "string",
684
+ "minLength": 1,
685
+ "maxLength": 256
686
+ },
687
+ "agent_session_id": {
688
+ "type": "string",
689
+ "minLength": 1,
690
+ "maxLength": 256
691
+ },
692
+ "session_generation": {
693
+ "type": "integer",
694
+ "minimum": 0,
695
+ "maximum": 9007199254740991
696
+ },
697
+ "seq": {
698
+ "type": "integer",
699
+ "minimum": 1,
700
+ "maximum": 9007199254740991
701
+ },
702
+ "protocol_mode": {
703
+ "const": "canonical"
704
+ },
705
+ "protocol": {
706
+ "type": "string",
707
+ "minLength": 1,
708
+ "maxLength": 128
709
+ },
710
+ "kind": {
711
+ "const": "canonical"
712
+ },
713
+ "event": {
714
+ "$ref": "#/definitions/CanonicalEventWire"
715
+ }
716
+ }
717
+ },
718
+ "ControlHostFrame": {
719
+ "title": "ControlHostFrame",
720
+ "type": "object",
721
+ "additionalProperties": false,
722
+ "required": [
723
+ "run_id",
724
+ "invocation_id",
725
+ "stream_id",
726
+ "agent_session_id",
727
+ "session_generation",
728
+ "seq",
729
+ "protocol_mode",
730
+ "protocol",
731
+ "kind",
732
+ "control"
733
+ ],
734
+ "properties": {
735
+ "run_id": {
736
+ "type": "string",
737
+ "minLength": 1,
738
+ "maxLength": 256
739
+ },
740
+ "invocation_id": {
741
+ "type": "string",
742
+ "minLength": 1,
743
+ "maxLength": 256
744
+ },
745
+ "stream_id": {
746
+ "type": "string",
747
+ "minLength": 1,
748
+ "maxLength": 256
749
+ },
750
+ "agent_session_id": {
751
+ "type": "string",
752
+ "minLength": 1,
753
+ "maxLength": 256
754
+ },
755
+ "session_generation": {
756
+ "type": "integer",
757
+ "minimum": 0,
758
+ "maximum": 9007199254740991
759
+ },
760
+ "seq": {
761
+ "type": "integer",
762
+ "minimum": 1,
763
+ "maximum": 9007199254740991
764
+ },
765
+ "protocol_mode": {
766
+ "$ref": "#/definitions/ProtocolMode"
767
+ },
768
+ "protocol": {
769
+ "type": "string",
770
+ "minLength": 1,
771
+ "maxLength": 128
772
+ },
773
+ "kind": {
774
+ "const": "control"
775
+ },
776
+ "control": {
777
+ "$ref": "#/definitions/HostControl"
778
+ }
779
+ }
780
+ },
781
+ "NotificationMessage": {
782
+ "title": "NotificationMessage",
783
+ "description": "Public, channel-neutral project notification. No runtime context, reasoning, credentials, or tool payloads belong in this envelope.",
784
+ "type": "object",
785
+ "additionalProperties": false,
786
+ "required": [
787
+ "schema",
788
+ "eventId",
789
+ "event",
790
+ "occurredAt",
791
+ "projectId",
792
+ "sourceId",
793
+ "title",
794
+ "text"
795
+ ],
796
+ "properties": {
797
+ "schema": {
798
+ "const": "octo.notification.v2"
799
+ },
800
+ "eventId": {
801
+ "type": "string",
802
+ "minLength": 1,
803
+ "maxLength": 256
804
+ },
805
+ "event": {
806
+ "enum": ["task.event", "execution.succeeded", "execution.failed", "notification.test"]
807
+ },
808
+ "occurredAt": {
809
+ "type": "string",
810
+ "format": "date-time"
811
+ },
812
+ "projectId": {
813
+ "type": "string",
814
+ "minLength": 1,
815
+ "maxLength": 128
816
+ },
817
+ "sourceId": {
818
+ "type": "string",
819
+ "minLength": 1,
820
+ "maxLength": 128
821
+ },
822
+ "title": {
823
+ "type": "string",
824
+ "minLength": 1,
825
+ "maxLength": 256
826
+ },
827
+ "text": {
828
+ "type": "string",
829
+ "maxLength": 4096
830
+ },
831
+ "evt_type": {
832
+ "type": "integer",
833
+ "minimum": 101,
834
+ "maximum": 115
835
+ },
836
+ "task": {
837
+ "type": "object",
838
+ "additionalProperties": false,
839
+ "required": ["id", "title", "status", "row_version", "handler_epoch"],
840
+ "properties": {
841
+ "id": {
842
+ "type": "string",
843
+ "minLength": 1
844
+ },
845
+ "title": {
846
+ "type": "string"
847
+ },
848
+ "status": {
849
+ "enum": ["backlog", "todo", "in_progress", "done", "cancelled"]
850
+ },
851
+ "row_version": {
852
+ "type": "integer",
853
+ "minimum": 1
854
+ },
855
+ "handler_epoch": {
856
+ "type": "integer",
857
+ "minimum": 1
858
+ },
859
+ "responsible_party": {
860
+ "type": ["object", "null"]
861
+ },
862
+ "current_handler": {
863
+ "type": ["object", "null"]
864
+ }
865
+ }
866
+ },
867
+ "taskEvent": {
868
+ "type": "object",
869
+ "additionalProperties": false,
870
+ "required": ["id", "sequence", "evt_type", "actor", "summary", "payload"],
871
+ "properties": {
872
+ "id": {
873
+ "type": "string"
874
+ },
875
+ "sequence": {
876
+ "type": "integer",
877
+ "minimum": 1
878
+ },
879
+ "evt_type": {
880
+ "type": "integer",
881
+ "minimum": 101,
882
+ "maximum": 115
883
+ },
884
+ "actor": {
885
+ "type": "object"
886
+ },
887
+ "task_conversation_id": {
888
+ "type": "string"
889
+ },
890
+ "source_run_id": {
891
+ "type": "string"
892
+ },
893
+ "summary": {
894
+ "type": "string"
895
+ },
896
+ "payload": {
897
+ "type": "object"
898
+ }
899
+ }
900
+ },
901
+ "timeline": {
902
+ "type": "array",
903
+ "maxItems": 20,
904
+ "items": {
905
+ "type": "object",
906
+ "additionalProperties": false,
907
+ "required": ["eventId", "sequence", "evt_type", "summary"],
908
+ "properties": {
909
+ "eventId": {
910
+ "type": "string"
911
+ },
912
+ "sequence": {
913
+ "type": "integer",
914
+ "minimum": 1
915
+ },
916
+ "evt_type": {
917
+ "type": "integer",
918
+ "minimum": 101,
919
+ "maximum": 115
920
+ },
921
+ "summary": {
922
+ "type": "string"
923
+ }
924
+ }
925
+ }
926
+ },
927
+ "timelineTruncated": {
928
+ "type": "boolean"
929
+ },
930
+ "timelineThroughSequence": {
931
+ "type": "integer",
932
+ "minimum": 1
933
+ }
934
+ },
935
+ "allOf": [
936
+ {
937
+ "if": {
938
+ "properties": {
939
+ "event": {
940
+ "const": "task.event"
941
+ }
942
+ }
943
+ },
944
+ "then": {
945
+ "required": ["evt_type", "task", "taskEvent", "timeline", "timelineThroughSequence"]
946
+ },
947
+ "else": {
948
+ "not": {
949
+ "anyOf": [
950
+ {
951
+ "required": ["evt_type"]
952
+ },
953
+ {
954
+ "required": ["task"]
955
+ },
956
+ {
957
+ "required": ["taskEvent"]
958
+ },
959
+ {
960
+ "required": ["timeline"]
961
+ },
962
+ {
963
+ "required": ["timelineThroughSequence"]
964
+ },
965
+ {
966
+ "required": ["timelineTruncated"]
967
+ }
968
+ ]
969
+ }
970
+ }
971
+ }
972
+ ]
973
+ },
974
+ "ApprovalMode": {
975
+ "title": "ApprovalMode",
976
+ "type": "string",
977
+ "enum": ["ask", "assisted", "full_access"]
978
+ },
979
+ "ContextItem": {
980
+ "title": "ContextItem",
981
+ "description": "Open Context item. Built-in types retain their payload contracts; unknown optional types are preserved and ignored by unsupported consumers.",
982
+ "tsType": "{ namespace: string; name: string; guidance?: string; data_format?: 'text'; payload: Record<string, unknown> }",
983
+ "type": "object",
984
+ "additionalProperties": false,
985
+ "required": ["namespace", "name", "payload"],
986
+ "properties": {
987
+ "namespace": {
988
+ "type": "string",
989
+ "pattern": "^[a-z0-9][a-z0-9._-]*$",
990
+ "maxLength": 96
991
+ },
992
+ "name": {
993
+ "type": "string",
994
+ "pattern": "^[a-z0-9][a-z0-9._-]*$",
995
+ "maxLength": 96
996
+ },
997
+ "payload": {
998
+ "type": "object",
999
+ "additionalProperties": true,
1000
+ "tsType": "Record<string, unknown>"
1001
+ },
1002
+ "guidance": {
1003
+ "type": "string",
1004
+ "description": "Producer-authored context guidance, rendered as ordinary model input."
1005
+ },
1006
+ "data_format": {
1007
+ "const": "text",
1008
+ "description": "Explicit extra.* text rendering; payload must contain only a text string. Omit for complete JSON rendering."
1009
+ }
1010
+ },
1011
+ "allOf": [
1012
+ {
1013
+ "if": {
1014
+ "required": ["data_format"]
1015
+ },
1016
+ "then": {
1017
+ "properties": {
1018
+ "namespace": {
1019
+ "pattern": "^extra\\."
1020
+ },
1021
+ "payload": {
1022
+ "type": "object",
1023
+ "required": ["text"],
1024
+ "additionalProperties": false,
1025
+ "properties": {
1026
+ "text": {
1027
+ "type": "string"
1028
+ }
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ },
1034
+ {
1035
+ "if": {
1036
+ "properties": {
1037
+ "namespace": {
1038
+ "const": "octo.execution"
1039
+ },
1040
+ "name": {
1041
+ "const": "actmode"
1042
+ }
1043
+ }
1044
+ },
1045
+ "then": {
1046
+ "properties": {
1047
+ "payload": {
1048
+ "$ref": "#/definitions/ContextActmodePayload"
1049
+ }
1050
+ }
1051
+ }
1052
+ },
1053
+ {
1054
+ "if": {
1055
+ "properties": {
1056
+ "namespace": {
1057
+ "const": "octo.execution"
1058
+ },
1059
+ "name": {
1060
+ "const": "model"
1061
+ }
1062
+ }
1063
+ },
1064
+ "then": {
1065
+ "properties": {
1066
+ "payload": {
1067
+ "$ref": "#/definitions/ContextModelPayload"
1068
+ }
1069
+ }
1070
+ }
1071
+ },
1072
+ {
1073
+ "if": {
1074
+ "properties": {
1075
+ "namespace": {
1076
+ "const": "octo.execution"
1077
+ },
1078
+ "name": {
1079
+ "const": "adapter"
1080
+ }
1081
+ }
1082
+ },
1083
+ "then": {
1084
+ "properties": {
1085
+ "payload": {
1086
+ "$ref": "#/definitions/ContextAdapterPayload"
1087
+ }
1088
+ }
1089
+ }
1090
+ },
1091
+ {
1092
+ "if": {
1093
+ "properties": {
1094
+ "namespace": {
1095
+ "const": "octo.execution"
1096
+ },
1097
+ "name": {
1098
+ "const": "workspace"
1099
+ }
1100
+ }
1101
+ },
1102
+ "then": {
1103
+ "properties": {
1104
+ "payload": {
1105
+ "$ref": "#/definitions/ContextWorkspacePayload"
1106
+ }
1107
+ }
1108
+ }
1109
+ },
1110
+ {
1111
+ "if": {
1112
+ "properties": {
1113
+ "namespace": {
1114
+ "const": "octo.execution"
1115
+ },
1116
+ "name": {
1117
+ "const": "limits"
1118
+ }
1119
+ }
1120
+ },
1121
+ "then": {
1122
+ "properties": {
1123
+ "payload": {
1124
+ "$ref": "#/definitions/ContextLimitsPayload"
1125
+ }
1126
+ }
1127
+ }
1128
+ },
1129
+ {
1130
+ "if": {
1131
+ "properties": {
1132
+ "namespace": {
1133
+ "const": "octo.runtime"
1134
+ },
1135
+ "name": {
1136
+ "const": "selection"
1137
+ }
1138
+ }
1139
+ },
1140
+ "then": {
1141
+ "properties": {
1142
+ "payload": {
1143
+ "$ref": "#/definitions/ContextRuntimeSelectionPayload"
1144
+ }
1145
+ }
1146
+ }
1147
+ },
1148
+ {
1149
+ "if": {
1150
+ "properties": {
1151
+ "namespace": {
1152
+ "const": "octo.security"
1153
+ },
1154
+ "name": {
1155
+ "const": "approval_policy"
1156
+ }
1157
+ }
1158
+ },
1159
+ "then": {
1160
+ "properties": {
1161
+ "payload": {
1162
+ "$ref": "#/definitions/ContextApprovalPolicyPayload"
1163
+ }
1164
+ }
1165
+ }
1166
+ },
1167
+ {
1168
+ "if": {
1169
+ "properties": {
1170
+ "namespace": {
1171
+ "const": "octo.content"
1172
+ },
1173
+ "name": {
1174
+ "const": "inline"
1175
+ }
1176
+ }
1177
+ },
1178
+ "then": {
1179
+ "properties": {
1180
+ "payload": {
1181
+ "$ref": "#/definitions/ContextInlinePayload"
1182
+ }
1183
+ }
1184
+ }
1185
+ },
1186
+ {
1187
+ "if": {
1188
+ "properties": {
1189
+ "namespace": {
1190
+ "const": "octo.content"
1191
+ },
1192
+ "name": {
1193
+ "const": "references"
1194
+ }
1195
+ }
1196
+ },
1197
+ "then": {
1198
+ "properties": {
1199
+ "payload": {
1200
+ "$ref": "#/definitions/ContextReferencesPayload"
1201
+ }
1202
+ }
1203
+ }
1204
+ },
1205
+ {
1206
+ "if": {
1207
+ "properties": {
1208
+ "namespace": {
1209
+ "const": "octo.control"
1210
+ },
1211
+ "name": {
1212
+ "const": "instructions"
1213
+ }
1214
+ }
1215
+ },
1216
+ "then": {
1217
+ "properties": {
1218
+ "payload": {
1219
+ "$ref": "#/definitions/ContextInstructionsPayload"
1220
+ }
1221
+ }
1222
+ }
1223
+ },
1224
+ {
1225
+ "if": {
1226
+ "properties": {
1227
+ "namespace": {
1228
+ "const": "octo.execution"
1229
+ },
1230
+ "name": {
1231
+ "const": "envs"
1232
+ }
1233
+ }
1234
+ },
1235
+ "then": {
1236
+ "properties": {
1237
+ "payload": {
1238
+ "$ref": "#/definitions/ContextEnvsPayload"
1239
+ }
1240
+ }
1241
+ }
1242
+ },
1243
+ {
1244
+ "if": {
1245
+ "properties": {
1246
+ "namespace": {
1247
+ "enum": ["octo.execution", "octo.runtime", "octo.security", "octo.control"]
1248
+ }
1249
+ }
1250
+ },
1251
+ "then": {
1252
+ "not": {
1253
+ "required": ["guidance"]
1254
+ }
1255
+ }
1256
+ },
1257
+ {
1258
+ "if": {
1259
+ "properties": {
1260
+ "namespace": {
1261
+ "const": "octo.execution"
1262
+ },
1263
+ "name": {
1264
+ "const": "mcp"
1265
+ }
1266
+ }
1267
+ },
1268
+ "then": {
1269
+ "properties": {
1270
+ "payload": {
1271
+ "$ref": "#/definitions/ContextMcpPayload"
1272
+ }
1273
+ }
1274
+ }
1275
+ }
1276
+ ],
1277
+ "not": {
1278
+ "properties": {
1279
+ "namespace": {
1280
+ "const": "octo.resources"
1281
+ }
1282
+ },
1283
+ "required": ["namespace"]
1284
+ }
1285
+ },
1286
+ "ContextEnvelope": {
1287
+ "title": "ContextEnvelope",
1288
+ "description": "In addition to draft-07 validation, every consumer must enforce the x-octo semantic keywords: unique ordered namespace/name tuples, compact UTF-8 JSON byte budget, JSON nesting depth with the envelope at depth zero, and Unicode scalar strings in every nested value and object key. Canonical hashing uses ECMAScript JSON number serialization, including -0 becoming 0 and normalized exponent notation; object keys are sorted by UTF-16 code units before ECMAScript integer-index enumeration. U+2028/U+2029 and non-ASCII scalar values are not escaped or Unicode-normalized.",
1289
+ "type": "object",
1290
+ "additionalProperties": false,
1291
+ "x-octo-unique-type-keys": true,
1292
+ "x-octo-max-json-bytes": 65536,
1293
+ "x-octo-max-json-depth": 32,
1294
+ "x-octo-unicode-scalar-strings": true,
1295
+ "required": ["schema", "items"],
1296
+ "properties": {
1297
+ "schema": {
1298
+ "const": "octo.context-envelope/v3"
1299
+ },
1300
+ "items": {
1301
+ "type": "array",
1302
+ "maxItems": 32,
1303
+ "items": {
1304
+ "$ref": "#/definitions/ContextItem"
1305
+ }
1306
+ }
1307
+ }
1308
+ },
1309
+ "ContextConfiguration": {
1310
+ "title": "ContextConfiguration",
1311
+ "description": "Agent defaults and mandatory constraints, stored under one external configuration version. Authorized configuration writers may persist system instructions in mandatory with text-only entries. Ephemeral business content and default-layer instructions are forbidden; callers cannot submit trusted control instructions.",
1312
+ "type": "object",
1313
+ "additionalProperties": false,
1314
+ "required": ["defaults", "mandatory"],
1315
+ "properties": {
1316
+ "defaults": {
1317
+ "allOf": [
1318
+ {
1319
+ "$ref": "#/definitions/PersistentContextEnvelope"
1320
+ },
1321
+ {
1322
+ "properties": {
1323
+ "items": {
1324
+ "items": {
1325
+ "not": {
1326
+ "properties": {
1327
+ "namespace": {
1328
+ "const": "octo.control"
1329
+ }
1330
+ }
1331
+ }
1332
+ }
1333
+ }
1334
+ }
1335
+ }
1336
+ ],
1337
+ "tsType": "ContextEnvelope"
1338
+ },
1339
+ "mandatory": {
1340
+ "$ref": "#/definitions/PersistentContextEnvelope"
1341
+ }
1342
+ }
1343
+ },
1344
+ "RunContextProjection": {
1345
+ "title": "RunContextProjection",
1346
+ "description": "Public Context facts. Preparation is distinct from Adapter application or invocation. This projection excludes resource files, trusted instruction text, credentials and Runtime paths.",
1347
+ "type": "object",
1348
+ "additionalProperties": false,
1349
+ "required": [
1350
+ "run_id",
1351
+ "context_hash",
1352
+ "preparation_status",
1353
+ "application_status",
1354
+ "invocation_status",
1355
+ "execution",
1356
+ "model_uses_provider_default",
1357
+ "effort_uses_provider_default"
1358
+ ],
1359
+ "properties": {
1360
+ "run_id": {
1361
+ "type": "string",
1362
+ "minLength": 1
1363
+ },
1364
+ "context_hash": {
1365
+ "type": "string",
1366
+ "pattern": "^sha256:[a-f0-9]{64}$"
1367
+ },
1368
+ "actual_runtime_id": {
1369
+ "type": "string",
1370
+ "minLength": 1
1371
+ },
1372
+ "preparation_status": {
1373
+ "enum": ["unknown", "prepared"]
1374
+ },
1375
+ "application_status": {
1376
+ "enum": ["unknown", "applied"]
1377
+ },
1378
+ "invocation_status": {
1379
+ "const": "unknown"
1380
+ },
1381
+ "model_uses_provider_default": {
1382
+ "type": "boolean"
1383
+ },
1384
+ "effort_uses_provider_default": {
1385
+ "type": "boolean"
1386
+ },
1387
+ "object_materials": {
1388
+ "description": "Frozen inline object facts proven by a matching preparation receipt. Source fields are provenance claims, not access grants. No contents, local handles, paths or credentials are exposed; application is separately evidenced by application_status.",
1389
+ "type": "array",
1390
+ "maxItems": 32,
1391
+ "items": {
1392
+ "$ref": "#/definitions/PublicObjectMaterial"
1393
+ }
1394
+ },
1395
+ "execution": {
1396
+ "type": "object",
1397
+ "additionalProperties": false,
1398
+ "required": ["adapter_type", "approval_mode", "workspace_mode"],
1399
+ "properties": {
1400
+ "adapter_type": {
1401
+ "type": "string",
1402
+ "minLength": 1
1403
+ },
1404
+ "model": {
1405
+ "type": "string",
1406
+ "minLength": 1
1407
+ },
1408
+ "effort": {
1409
+ "type": "string",
1410
+ "minLength": 1
1411
+ },
1412
+ "approval_mode": {
1413
+ "enum": ["ask", "assisted", "full_access"]
1414
+ },
1415
+ "workspace_mode": {
1416
+ "enum": ["fixed", "random", "none"]
1417
+ }
1418
+ }
1419
+ }
1420
+ }
1421
+ },
1422
+ "PublicObjectMaterial": {
1423
+ "type": "object",
1424
+ "additionalProperties": false,
1425
+ "required": ["resource_ref", "object_type", "origin", "byte_size", "digest"],
1426
+ "properties": {
1427
+ "resource_ref": {
1428
+ "type": "string",
1429
+ "pattern": "^selection-[a-zA-Z0-9][a-zA-Z0-9_.:@-]{0,190}$"
1430
+ },
1431
+ "object_type": {
1432
+ "enum": [
1433
+ "task",
1434
+ "discussion",
1435
+ "discussion_comment",
1436
+ "discussion_reply",
1437
+ "local_file",
1438
+ "drive_file"
1439
+ ]
1440
+ },
1441
+ "object_id": {
1442
+ "type": "string",
1443
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:@-]{0,190}$"
1444
+ },
1445
+ "origin": {
1446
+ "enum": ["mention", "attachment", "object_action", "source_entity"]
1447
+ },
1448
+ "revision": {
1449
+ "type": "string",
1450
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:@-]{0,190}$"
1451
+ },
1452
+ "byte_size": {
1453
+ "type": "integer",
1454
+ "minimum": 1,
1455
+ "maximum": 32768
1456
+ },
1457
+ "digest": {
1458
+ "type": "string",
1459
+ "pattern": "^sha256:[a-f0-9]{64}$"
1460
+ },
1461
+ "object_scope": {
1462
+ "type": "object",
1463
+ "additionalProperties": false,
1464
+ "required": ["type", "id"],
1465
+ "properties": {
1466
+ "type": {
1467
+ "enum": ["user", "teamspace"]
1468
+ },
1469
+ "id": {
1470
+ "type": "string",
1471
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.:@-]{0,190}$"
1472
+ }
1473
+ }
1474
+ },
1475
+ "selector": {
1476
+ "type": "object",
1477
+ "additionalProperties": false,
1478
+ "required": ["mode"],
1479
+ "properties": {
1480
+ "mode": {
1481
+ "enum": ["core", "content", "history", "chain", "metadata"]
1482
+ },
1483
+ "start": {
1484
+ "type": "integer",
1485
+ "minimum": 0,
1486
+ "maximum": 9007199254740991
1487
+ },
1488
+ "end": {
1489
+ "type": "integer",
1490
+ "minimum": 0,
1491
+ "maximum": 9007199254740991
1492
+ }
1493
+ }
1494
+ }
1495
+ },
1496
+ "allOf": [
1497
+ {
1498
+ "if": {
1499
+ "properties": {
1500
+ "object_type": {
1501
+ "const": "local_file"
1502
+ }
1503
+ }
1504
+ },
1505
+ "then": {
1506
+ "not": {
1507
+ "required": ["object_id"]
1508
+ }
1509
+ },
1510
+ "else": {
1511
+ "required": ["object_id"]
1512
+ }
1513
+ }
1514
+ ]
1515
+ },
1516
+ "ContextPreparationReceipt": {
1517
+ "title": "ContextPreparationReceipt",
1518
+ "description": "Workspace preparation for the current Run lease and frozen execution Context; it does not prove Provider use of model context.",
1519
+ "type": "object",
1520
+ "additionalProperties": false,
1521
+ "required": [
1522
+ "context_hash",
1523
+ "run_id",
1524
+ "lease_id",
1525
+ "fencing_token",
1526
+ "workspace_mode",
1527
+ "workspace_path",
1528
+ "provider_state_dir",
1529
+ "warnings"
1530
+ ],
1531
+ "properties": {
1532
+ "context_hash": {
1533
+ "type": "string",
1534
+ "pattern": "^sha256:[a-f0-9]{64}$"
1535
+ },
1536
+ "run_id": {
1537
+ "type": "string",
1538
+ "minLength": 1
1539
+ },
1540
+ "lease_id": {
1541
+ "type": "string",
1542
+ "minLength": 1
1543
+ },
1544
+ "fencing_token": {
1545
+ "type": "integer",
1546
+ "minimum": 1,
1547
+ "maximum": 9007199254740991
1548
+ },
1549
+ "workspace_mode": {
1550
+ "enum": ["fixed", "random", "none"]
1551
+ },
1552
+ "workspace_path": {
1553
+ "type": "string"
1554
+ },
1555
+ "provider_state_dir": {
1556
+ "type": "string"
1557
+ },
1558
+ "warnings": {
1559
+ "type": "array",
1560
+ "maxItems": 256,
1561
+ "items": {
1562
+ "type": "string",
1563
+ "maxLength": 4096
1564
+ }
1565
+ }
1566
+ }
1567
+ },
1568
+ "PersistentContextEnvelope": {
1569
+ "allOf": [
1570
+ {
1571
+ "$ref": "#/definitions/ContextEnvelope"
1572
+ },
1573
+ {
1574
+ "properties": {
1575
+ "items": {
1576
+ "items": {
1577
+ "allOf": [
1578
+ {
1579
+ "not": {
1580
+ "properties": {
1581
+ "namespace": {
1582
+ "const": "octo.content"
1583
+ },
1584
+ "name": {
1585
+ "const": "inline"
1586
+ }
1587
+ }
1588
+ }
1589
+ },
1590
+ {
1591
+ "anyOf": [
1592
+ {
1593
+ "properties": {
1594
+ "namespace": {
1595
+ "const": "octo.execution"
1596
+ },
1597
+ "name": {
1598
+ "const": "adapter"
1599
+ }
1600
+ }
1601
+ },
1602
+ {
1603
+ "properties": {
1604
+ "namespace": {
1605
+ "const": "octo.execution"
1606
+ },
1607
+ "name": {
1608
+ "const": "model"
1609
+ }
1610
+ }
1611
+ },
1612
+ {
1613
+ "properties": {
1614
+ "namespace": {
1615
+ "const": "octo.execution"
1616
+ },
1617
+ "name": {
1618
+ "const": "workspace"
1619
+ }
1620
+ }
1621
+ },
1622
+ {
1623
+ "properties": {
1624
+ "namespace": {
1625
+ "const": "octo.execution"
1626
+ },
1627
+ "name": {
1628
+ "const": "limits"
1629
+ }
1630
+ }
1631
+ },
1632
+ {
1633
+ "properties": {
1634
+ "namespace": {
1635
+ "const": "octo.runtime"
1636
+ },
1637
+ "name": {
1638
+ "const": "selection"
1639
+ }
1640
+ }
1641
+ },
1642
+ {
1643
+ "properties": {
1644
+ "namespace": {
1645
+ "const": "octo.security"
1646
+ },
1647
+ "name": {
1648
+ "const": "approval_policy"
1649
+ }
1650
+ }
1651
+ },
1652
+ {
1653
+ "properties": {
1654
+ "namespace": {
1655
+ "const": "octo.content"
1656
+ },
1657
+ "name": {
1658
+ "const": "inline"
1659
+ }
1660
+ }
1661
+ },
1662
+ {
1663
+ "properties": {
1664
+ "namespace": {
1665
+ "const": "octo.content"
1666
+ },
1667
+ "name": {
1668
+ "const": "references"
1669
+ }
1670
+ }
1671
+ },
1672
+ {
1673
+ "properties": {
1674
+ "namespace": {
1675
+ "const": "octo.control"
1676
+ },
1677
+ "name": {
1678
+ "const": "instructions"
1679
+ }
1680
+ }
1681
+ }
1682
+ ]
1683
+ }
1684
+ ]
1685
+ }
1686
+ }
1687
+ }
1688
+ }
1689
+ ],
1690
+ "tsType": "ContextEnvelope"
1691
+ },
1692
+ "ContextAdapterPayload": {
1693
+ "type": "object",
1694
+ "additionalProperties": false,
1695
+ "required": ["type"],
1696
+ "properties": {
1697
+ "type": {
1698
+ "type": "string",
1699
+ "minLength": 1
1700
+ },
1701
+ "provider_agent_id": {
1702
+ "type": "string",
1703
+ "pattern": "^[a-z0-9_][a-z0-9_-]{0,63}$"
1704
+ }
1705
+ },
1706
+ "if": {
1707
+ "properties": {
1708
+ "type": {
1709
+ "const": "openclaw"
1710
+ }
1711
+ }
1712
+ },
1713
+ "then": {
1714
+ "required": ["provider_agent_id"]
1715
+ },
1716
+ "else": {
1717
+ "not": {
1718
+ "required": ["provider_agent_id"]
1719
+ }
1720
+ }
1721
+ },
1722
+ "ContextActmodePayload": {
1723
+ "type": "object",
1724
+ "additionalProperties": false,
1725
+ "required": ["mode"],
1726
+ "properties": {
1727
+ "mode": {
1728
+ "enum": ["default", "plan"]
1729
+ }
1730
+ }
1731
+ },
1732
+ "ExecutionEvidence": {
1733
+ "type": "object",
1734
+ "additionalProperties": false,
1735
+ "required": ["actmode"],
1736
+ "properties": {
1737
+ "actmode": {
1738
+ "type": "object",
1739
+ "additionalProperties": false,
1740
+ "required": ["requested", "effective", "status"],
1741
+ "properties": {
1742
+ "requested": {
1743
+ "enum": ["default", "plan"]
1744
+ },
1745
+ "effective": {
1746
+ "enum": ["default", "plan", null]
1747
+ },
1748
+ "status": {
1749
+ "enum": ["applied", "fallback", "unknown"]
1750
+ },
1751
+ "nativeMode": {
1752
+ "type": "string",
1753
+ "minLength": 1
1754
+ },
1755
+ "reason": {
1756
+ "enum": ["provider_unsupported", "adapter_unmapped", "provider_unconfirmed"]
1757
+ }
1758
+ }
1759
+ }
1760
+ }
1761
+ },
1762
+ "ContextModelPayload": {
1763
+ "type": "object",
1764
+ "additionalProperties": false,
1765
+ "minProperties": 1,
1766
+ "properties": {
1767
+ "selection": {
1768
+ "$ref": "#/definitions/ContextModelSelectionPayload"
1769
+ },
1770
+ "reasoning": {
1771
+ "$ref": "#/definitions/ContextReasoningPayload"
1772
+ }
1773
+ }
1774
+ },
1775
+ "ContextReasoningPayload": {
1776
+ "type": "object",
1777
+ "additionalProperties": false,
1778
+ "properties": {
1779
+ "effort": {
1780
+ "type": "string",
1781
+ "minLength": 1
1782
+ },
1783
+ "use_provider_default": {
1784
+ "const": true
1785
+ }
1786
+ },
1787
+ "oneOf": [
1788
+ {
1789
+ "required": ["effort"],
1790
+ "not": {
1791
+ "required": ["use_provider_default"]
1792
+ }
1793
+ },
1794
+ {
1795
+ "required": ["use_provider_default"],
1796
+ "not": {
1797
+ "required": ["effort"]
1798
+ }
1799
+ }
1800
+ ]
1801
+ },
1802
+ "ContextWorkspacePayload": {
1803
+ "description": "fixed uses the supplied path; random creates a workspace on the AgentSession's first run and reuses it for subsequent runs; none delegates workspace ownership to a preset Agent.",
1804
+ "oneOf": [
1805
+ {
1806
+ "type": "object",
1807
+ "additionalProperties": false,
1808
+ "required": ["mode", "path"],
1809
+ "properties": {
1810
+ "mode": {
1811
+ "const": "fixed"
1812
+ },
1813
+ "path": {
1814
+ "type": "string",
1815
+ "minLength": 1
1816
+ }
1817
+ }
1818
+ },
1819
+ {
1820
+ "type": "object",
1821
+ "additionalProperties": false,
1822
+ "required": ["mode"],
1823
+ "properties": {
1824
+ "mode": {
1825
+ "const": "random"
1826
+ }
1827
+ }
1828
+ },
1829
+ {
1830
+ "type": "object",
1831
+ "required": ["mode"],
1832
+ "additionalProperties": false,
1833
+ "properties": {
1834
+ "mode": {
1835
+ "const": "none"
1836
+ }
1837
+ }
1838
+ }
1839
+ ]
1840
+ },
1841
+ "ContextLimitsPayload": {
1842
+ "description": "Snake-case frozen watchdog limits, with the same bounds as RuntimeLimits. Legacy enforcement=observe cannot be combined with v2 settings.",
1843
+ "type": "object",
1844
+ "additionalProperties": false,
1845
+ "properties": {
1846
+ "first_frame_timeout_ms": {
1847
+ "type": "integer",
1848
+ "minimum": 100,
1849
+ "maximum": 1800000
1850
+ },
1851
+ "model_idle_timeout_ms": {
1852
+ "type": "integer",
1853
+ "minimum": 100,
1854
+ "maximum": 3600000
1855
+ },
1856
+ "model_idle_warning_ms": {
1857
+ "type": "integer",
1858
+ "minimum": 100,
1859
+ "maximum": 3600000
1860
+ },
1861
+ "model_idle_policy": {
1862
+ "enum": ["enforce", "observe"]
1863
+ },
1864
+ "tool_timeout_ms": {
1865
+ "type": "integer",
1866
+ "minimum": 100,
1867
+ "maximum": 86400000
1868
+ },
1869
+ "tool_wall_timeout_ms": {
1870
+ "type": "integer",
1871
+ "minimum": 100,
1872
+ "maximum": 86400000
1873
+ },
1874
+ "run_timeout_ms": {
1875
+ "type": "integer",
1876
+ "minimum": 100,
1877
+ "maximum": 604800000
1878
+ },
1879
+ "cancel_grace_ms": {
1880
+ "type": "integer",
1881
+ "minimum": 100,
1882
+ "maximum": 60000
1883
+ },
1884
+ "enforcement": {
1885
+ "enum": ["enforce", "observe"]
1886
+ }
1887
+ },
1888
+ "if": {
1889
+ "required": ["enforcement"],
1890
+ "properties": {
1891
+ "enforcement": {
1892
+ "const": "observe"
1893
+ }
1894
+ }
1895
+ },
1896
+ "then": {
1897
+ "not": {
1898
+ "anyOf": [
1899
+ {
1900
+ "required": ["model_idle_policy"]
1901
+ },
1902
+ {
1903
+ "required": ["model_idle_warning_ms"]
1904
+ },
1905
+ {
1906
+ "required": ["tool_wall_timeout_ms"]
1907
+ }
1908
+ ]
1909
+ }
1910
+ }
1911
+ },
1912
+ "ContextRuntimeSelectionPayload": {
1913
+ "type": "object",
1914
+ "additionalProperties": false,
1915
+ "required": ["mode"],
1916
+ "properties": {
1917
+ "mode": {
1918
+ "enum": ["candidates", "explicit"]
1919
+ },
1920
+ "runtime_id": {
1921
+ "type": "string",
1922
+ "minLength": 1
1923
+ },
1924
+ "runtime_ids": {
1925
+ "type": "array",
1926
+ "minItems": 1,
1927
+ "maxItems": 64,
1928
+ "uniqueItems": true,
1929
+ "items": {
1930
+ "type": "string",
1931
+ "minLength": 1
1932
+ }
1933
+ },
1934
+ "strategy": {
1935
+ "const": "preferred_failover"
1936
+ },
1937
+ "offline_behavior": {
1938
+ "enum": ["wait", "fail"]
1939
+ },
1940
+ "failover": {
1941
+ "enum": ["candidates", "none"]
1942
+ }
1943
+ },
1944
+ "oneOf": [
1945
+ {
1946
+ "properties": {
1947
+ "mode": {
1948
+ "const": "candidates"
1949
+ }
1950
+ },
1951
+ "required": ["runtime_ids", "strategy"],
1952
+ "not": {
1953
+ "required": ["runtime_id"]
1954
+ }
1955
+ },
1956
+ {
1957
+ "properties": {
1958
+ "mode": {
1959
+ "const": "explicit"
1960
+ }
1961
+ },
1962
+ "required": ["runtime_id"],
1963
+ "not": {
1964
+ "anyOf": [
1965
+ {
1966
+ "required": ["runtime_ids"]
1967
+ },
1968
+ {
1969
+ "required": ["strategy"]
1970
+ }
1971
+ ]
1972
+ }
1973
+ }
1974
+ ]
1975
+ },
1976
+ "ContextApprovalPolicyPayload": {
1977
+ "type": "object",
1978
+ "additionalProperties": false,
1979
+ "required": ["mode"],
1980
+ "properties": {
1981
+ "mode": {
1982
+ "$ref": "#/definitions/ApprovalMode"
1983
+ }
1984
+ }
1985
+ },
1986
+ "ContextSelectionEntry": {
1987
+ "description": "Untrusted inline selection text with optional resource reference, source metadata and summary. Source metadata is not an authorization claim.",
1988
+ "type": "object",
1989
+ "additionalProperties": false,
1990
+ "required": ["text"],
1991
+ "properties": {
1992
+ "text": {
1993
+ "type": "string",
1994
+ "minLength": 1
1995
+ },
1996
+ "resource_ref": {
1997
+ "type": "string",
1998
+ "minLength": 1
1999
+ },
2000
+ "source": {
2001
+ "type": ["object", "string"],
2002
+ "additionalProperties": true
2003
+ },
2004
+ "summary": {
2005
+ "type": "string"
2006
+ }
2007
+ }
2008
+ },
2009
+ "ContextResourceEntry": {
2010
+ "description": "Declarative MCP resource operation. Only deployed scoped operations may execute; schema validation does not authorize access.",
2011
+ "type": "object",
2012
+ "additionalProperties": false,
2013
+ "required": ["resource_ref", "resolver", "locator"],
2014
+ "properties": {
2015
+ "resource_ref": {
2016
+ "type": "string",
2017
+ "minLength": 1
2018
+ },
2019
+ "resolver": {
2020
+ "const": "mcp"
2021
+ },
2022
+ "locator": {
2023
+ "type": "object"
2024
+ },
2025
+ "params": {
2026
+ "description": "Frozen non-secret JSON parameters supplied by the authenticated resolver plan, not model-generated commands.",
2027
+ "type": "object",
2028
+ "additionalProperties": true,
2029
+ "tsType": "Record<string, unknown>"
2030
+ },
2031
+ "authorization_ref": {
2032
+ "type": "string",
2033
+ "minLength": 1
2034
+ },
2035
+ "revision": {
2036
+ "type": "string",
2037
+ "minLength": 1
2038
+ }
2039
+ },
2040
+ "allOf": [
2041
+ {
2042
+ "properties": {
2043
+ "locator": {
2044
+ "$ref": "#/definitions/ContextMcpLocator"
2045
+ }
2046
+ }
2047
+ }
2048
+ ]
2049
+ },
2050
+ "ContextMcpLocator": {
2051
+ "type": "object",
2052
+ "additionalProperties": false,
2053
+ "required": ["server_ref", "tool"],
2054
+ "properties": {
2055
+ "server_ref": {
2056
+ "type": "string",
2057
+ "minLength": 1
2058
+ },
2059
+ "tool": {
2060
+ "type": "string",
2061
+ "minLength": 1
2062
+ }
2063
+ }
2064
+ },
2065
+ "ContextInstructionEntry": {
2066
+ "description": "Control instruction containing only non-empty text. Authorization belongs to the authenticated upstream boundary, not to a caller-supplied source label.",
2067
+ "type": "object",
2068
+ "additionalProperties": false,
2069
+ "required": ["text"],
2070
+ "properties": {
2071
+ "text": {
2072
+ "type": "string",
2073
+ "minLength": 1
2074
+ }
2075
+ }
2076
+ },
2077
+ "ContextInstructionsPayload": {
2078
+ "type": "object",
2079
+ "additionalProperties": false,
2080
+ "required": ["entries"],
2081
+ "properties": {
2082
+ "entries": {
2083
+ "type": "array",
2084
+ "items": {
2085
+ "$ref": "#/definitions/ContextInstructionEntry"
2086
+ }
2087
+ }
2088
+ }
2089
+ },
2090
+ "ContextContinuityPayload": {
2091
+ "description": "A channel continuity descriptor. The x-octo-matching-trigger-fields keyword requires trigger_fact.message_id == trigger_message_id and matching presence/value of trigger_fact.message_seq and trigger_seq.",
2092
+ "x-octo-matching-trigger-fields": true,
2093
+ "allOf": [
2094
+ {
2095
+ "$ref": "#/definitions/ChannelContextDescriptor"
2096
+ },
2097
+ {
2098
+ "properties": {
2099
+ "session_generation": {
2100
+ "maximum": 9007199254740991
2101
+ },
2102
+ "trigger_seq": {
2103
+ "maximum": 9007199254740991
2104
+ },
2105
+ "trigger_fact": {
2106
+ "properties": {
2107
+ "message_seq": {
2108
+ "maximum": 9007199254740991
2109
+ },
2110
+ "occurred_at_ms": {
2111
+ "maximum": 9007199254740991
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ ]
2118
+ },
2119
+ "ResolvedRuntimeSelection": {
2120
+ "title": "ResolvedRuntimeSelection",
2121
+ "description": "Worker-frozen Context runtime candidates. Explicit selection cannot fail over.",
2122
+ "x-octo-unicode-scalar-strings": true,
2123
+ "x-octo-runtime-selection-invariants": true,
2124
+ "type": "object",
2125
+ "additionalProperties": false,
2126
+ "required": [
2127
+ "schema",
2128
+ "selection_mode",
2129
+ "authorized_candidates",
2130
+ "offline_behavior",
2131
+ "failover"
2132
+ ],
2133
+ "properties": {
2134
+ "schema": {
2135
+ "const": "octo.runtime-selection/v2"
2136
+ },
2137
+ "selection_mode": {
2138
+ "enum": ["explicit", "candidates"]
2139
+ },
2140
+ "explicit_runtime_id": {
2141
+ "type": "string",
2142
+ "minLength": 1,
2143
+ "maxLength": 191
2144
+ },
2145
+ "authorized_candidates": {
2146
+ "type": "array",
2147
+ "minItems": 1,
2148
+ "maxItems": 64,
2149
+ "items": {
2150
+ "type": "object",
2151
+ "additionalProperties": false,
2152
+ "required": ["runtime_id", "priority", "owner_subject_type", "owner_subject_id"],
2153
+ "properties": {
2154
+ "runtime_id": {
2155
+ "type": "string",
2156
+ "minLength": 1,
2157
+ "maxLength": 191
2158
+ },
2159
+ "priority": {
2160
+ "type": "integer",
2161
+ "minimum": 1,
2162
+ "maximum": 9007199254740991
2163
+ },
2164
+ "owner_subject_type": {
2165
+ "enum": ["user", "teamspace"]
2166
+ },
2167
+ "owner_subject_id": {
2168
+ "type": "string",
2169
+ "minLength": 1,
2170
+ "maxLength": 191
2171
+ }
2172
+ }
2173
+ }
2174
+ },
2175
+ "offline_behavior": {
2176
+ "enum": ["wait", "fail"]
2177
+ },
2178
+ "failover": {
2179
+ "enum": ["candidates", "none"]
2180
+ }
2181
+ },
2182
+ "allOf": [
2183
+ {
2184
+ "if": {
2185
+ "properties": {
2186
+ "selection_mode": {
2187
+ "const": "explicit"
2188
+ }
2189
+ }
2190
+ },
2191
+ "then": {
2192
+ "required": ["explicit_runtime_id"],
2193
+ "properties": {
2194
+ "authorized_candidates": {
2195
+ "maxItems": 1
2196
+ },
2197
+ "failover": {
2198
+ "const": "none"
2199
+ }
2200
+ }
2201
+ },
2202
+ "else": {
2203
+ "not": {
2204
+ "required": ["explicit_runtime_id"]
2205
+ }
2206
+ }
2207
+ }
2208
+ ]
2209
+ },
2210
+ "ResolvedExecutionPlan": {
2211
+ "title": "ResolvedExecutionPlan",
2212
+ "x-octo-unicode-scalar-strings": true,
2213
+ "type": "object",
2214
+ "additionalProperties": false,
2215
+ "required": ["agent_source", "adapter_type", "workdir", "approval_mode"],
2216
+ "properties": {
2217
+ "actmode": {
2218
+ "enum": ["default", "plan"]
2219
+ },
2220
+ "adapter_type": {
2221
+ "type": "string",
2222
+ "minLength": 1
2223
+ },
2224
+ "workdir": {
2225
+ "type": "string"
2226
+ },
2227
+ "workspace": {
2228
+ "$ref": "#/definitions/ContextWorkspacePayload"
2229
+ },
2230
+ "model": {
2231
+ "type": "string",
2232
+ "minLength": 1
2233
+ },
2234
+ "effort": {
2235
+ "type": "string",
2236
+ "minLength": 1
2237
+ },
2238
+ "approval_mode": {
2239
+ "$ref": "#/definitions/ApprovalMode"
2240
+ },
2241
+ "runtime_limits": {
2242
+ "$ref": "#/definitions/ContextLimitsPayload"
2243
+ },
2244
+ "provider_agent_id": {
2245
+ "type": "string",
2246
+ "pattern": "^[a-z0-9_][a-z0-9_-]{0,63}$"
2247
+ },
2248
+ "agent_source": {
2249
+ "$ref": "#/definitions/AgentSource"
2250
+ },
2251
+ "envs": {
2252
+ "$ref": "#/definitions/ContextEnvsPayload"
2253
+ },
2254
+ "mcp": {
2255
+ "$ref": "#/definitions/ContextMcpPayload"
2256
+ }
2257
+ },
2258
+ "if": {
2259
+ "properties": {
2260
+ "agent_source": {
2261
+ "const": "provisioned"
2262
+ },
2263
+ "workdir": {
2264
+ "const": ""
2265
+ }
2266
+ },
2267
+ "required": ["agent_source", "workdir"]
2268
+ },
2269
+ "then": {
2270
+ "required": ["workspace"],
2271
+ "properties": {
2272
+ "workspace": {
2273
+ "properties": {
2274
+ "mode": {
2275
+ "const": "random"
2276
+ }
2277
+ }
2278
+ }
2279
+ }
2280
+ },
2281
+ "allOf": [
2282
+ {
2283
+ "if": {
2284
+ "properties": {
2285
+ "adapter_type": {
2286
+ "const": "openclaw"
2287
+ }
2288
+ }
2289
+ },
2290
+ "then": {
2291
+ "required": ["provider_agent_id"]
2292
+ },
2293
+ "else": {
2294
+ "not": {
2295
+ "required": ["provider_agent_id"]
2296
+ }
2297
+ }
2298
+ },
2299
+ {
2300
+ "if": {
2301
+ "properties": {
2302
+ "agent_source": {
2303
+ "const": "preset"
2304
+ }
2305
+ },
2306
+ "required": ["agent_source"]
2307
+ },
2308
+ "then": {
2309
+ "required": ["provider_agent_id"]
2310
+ }
2311
+ }
2312
+ ]
2313
+ },
2314
+ "MessageChannel": {
2315
+ "title": "MessageChannel",
2316
+ "description": "Provider-neutral assistant output channel. analysis is reasoning-class content gated by exposure; commentary is public in-run progress; final is answer content delivered only after the Run reaches a completed terminal state.",
2317
+ "type": "string",
2318
+ "enum": ["analysis", "commentary", "final"]
2319
+ },
2320
+ "MessageExposure": {
2321
+ "title": "MessageExposure",
2322
+ "description": "Adapter-authenticated classification of analysis content. public_reasoning, public_summary, and public_plan may enter a public Presentation; missing values are unknown.",
2323
+ "type": "string",
2324
+ "enum": ["public_reasoning", "public_summary", "public_plan", "private_reasoning", "unknown"]
2325
+ },
2326
+ "MessageProvenance": {
2327
+ "title": "MessageProvenance",
2328
+ "description": "Provider-native provenance written by the adapter. Audience projectors use it to audit public exposure and clients cannot override it.",
2329
+ "type": "object",
2330
+ "additionalProperties": false,
2331
+ "required": ["provider", "nativeEvent"],
2332
+ "properties": {
2333
+ "provider": {
2334
+ "description": "Adapter or provider type that produced the message.",
2335
+ "type": "string"
2336
+ },
2337
+ "nativeEvent": {
2338
+ "description": "Provider-native event type that was normalized.",
2339
+ "type": "string"
2340
+ }
2341
+ }
2342
+ },
2343
+ "FailureAction": {
2344
+ "title": "FailureAction",
2345
+ "description": "A catalog-controlled recovery action. Clients render labelKey and must not execute arbitrary commands from this object.",
2346
+ "type": "object",
2347
+ "additionalProperties": false,
2348
+ "required": ["type", "labelKey"],
2349
+ "properties": {
2350
+ "type": {
2351
+ "type": "string",
2352
+ "enum": [
2353
+ "retry",
2354
+ "retry_later",
2355
+ "update_credentials",
2356
+ "change_model",
2357
+ "check_runtime",
2358
+ "install_dependency",
2359
+ "fix_permissions",
2360
+ "contact_admin"
2361
+ ]
2362
+ },
2363
+ "labelKey": {
2364
+ "type": "string",
2365
+ "minLength": 1
2366
+ }
2367
+ }
2368
+ },
2369
+ "FailureSource": {
2370
+ "title": "FailureSource",
2371
+ "description": "Low-cardinality component identity. It intentionally excludes hostnames, paths, accounts, and tenant data.",
2372
+ "type": "object",
2373
+ "additionalProperties": false,
2374
+ "required": ["component"],
2375
+ "properties": {
2376
+ "component": {
2377
+ "type": "string",
2378
+ "enum": ["octo-runtime", "octo-agent-worker"]
2379
+ },
2380
+ "adapter": {
2381
+ "type": "string",
2382
+ "minLength": 1,
2383
+ "maxLength": 128
2384
+ }
2385
+ }
2386
+ },
2387
+ "FailureCause": {
2388
+ "title": "FailureCause",
2389
+ "description": "Sanitized machine-readable root cause. Raw stderr, response bodies, paths, and credentials are forbidden.",
2390
+ "type": "object",
2391
+ "additionalProperties": false,
2392
+ "required": ["reasonCode"],
2393
+ "properties": {
2394
+ "reasonCode": {
2395
+ "type": "string",
2396
+ "minLength": 1,
2397
+ "maxLength": 128
2398
+ },
2399
+ "httpStatus": {
2400
+ "type": "integer",
2401
+ "minimum": 100,
2402
+ "maximum": 599
2403
+ }
2404
+ }
2405
+ },
2406
+ "FailureEnvelope": {
2407
+ "title": "FailureEnvelope",
2408
+ "description": "Versioned, safe failure fact shared by Runtime, Worker, and channel projectors. Public codes are immutable catalog identifiers; dynamic diagnostics stay outside this object.",
2409
+ "type": "object",
2410
+ "additionalProperties": false,
2411
+ "required": [
2412
+ "schemaVersion",
2413
+ "code",
2414
+ "reasonCode",
2415
+ "category",
2416
+ "stage",
2417
+ "messageKey",
2418
+ "params",
2419
+ "retryable",
2420
+ "action",
2421
+ "diagnosticId",
2422
+ "source",
2423
+ "occurredAt"
2424
+ ],
2425
+ "properties": {
2426
+ "schemaVersion": {
2427
+ "type": "integer",
2428
+ "const": 1
2429
+ },
2430
+ "code": {
2431
+ "type": "string",
2432
+ "pattern": "^OH-[A-Z]{3}-[0-9]{4}$"
2433
+ },
2434
+ "reasonCode": {
2435
+ "type": "string",
2436
+ "minLength": 1,
2437
+ "maxLength": 128
2438
+ },
2439
+ "category": {
2440
+ "type": "string",
2441
+ "minLength": 1,
2442
+ "maxLength": 64
2443
+ },
2444
+ "stage": {
2445
+ "type": "string",
2446
+ "minLength": 1,
2447
+ "maxLength": 128
2448
+ },
2449
+ "messageKey": {
2450
+ "type": "string",
2451
+ "minLength": 1,
2452
+ "maxLength": 128
2453
+ },
2454
+ "params": {
2455
+ "type": "object",
2456
+ "description": "Catalog-allowlisted presentation parameters only.",
2457
+ "additionalProperties": {
2458
+ "type": ["string", "number", "boolean"]
2459
+ }
2460
+ },
2461
+ "retryable": {
2462
+ "type": "boolean"
2463
+ },
2464
+ "retryAfterMs": {
2465
+ "type": "integer",
2466
+ "minimum": 0
2467
+ },
2468
+ "action": {
2469
+ "$ref": "#/definitions/FailureAction"
2470
+ },
2471
+ "diagnosticId": {
2472
+ "type": "string",
2473
+ "pattern": "^diag_[0-9a-f]{32}$"
2474
+ },
2475
+ "source": {
2476
+ "$ref": "#/definitions/FailureSource"
2477
+ },
2478
+ "cause": {
2479
+ "$ref": "#/definitions/FailureCause"
2480
+ },
2481
+ "occurredAt": {
2482
+ "type": "string",
2483
+ "format": "date-time"
2484
+ }
2485
+ }
2486
+ },
2487
+ "ProviderSession": {
2488
+ "title": "ProviderSession",
2489
+ "description": "Provider-owned session resume data. Core treats sessionId and adapter extension fields as opaque.",
2490
+ "type": "object",
2491
+ "additionalProperties": true,
2492
+ "required": ["sessionId"],
2493
+ "properties": {
2494
+ "sessionId": {
2495
+ "description": "Opaque provider session identifier.",
2496
+ "type": "string"
2497
+ },
2498
+ "resumable": {
2499
+ "description": "Whether the provider declares that later invocations can resume this session.",
2500
+ "type": "boolean"
2501
+ },
2502
+ "requireResume": {
2503
+ "description": "Require the original provider session; adapters must reject rather than start a fresh fallback. Currently implemented by Codex.",
2504
+ "type": "boolean"
2505
+ },
2506
+ "resumeOutcome": {
2507
+ "description": "Continuity outcome for this session update. Compaction applies to the next turn; fresh fallback applies to the current turn.",
2508
+ "type": "string",
2509
+ "enum": ["new", "resumed", "fresh_fallback", "compacted"]
2510
+ },
2511
+ "resumeFallback": {
2512
+ "description": "Low-cardinality reason for a fresh resume fallback.",
2513
+ "type": "string"
2514
+ },
2515
+ "contextInputVariant": {
2516
+ "description": "Frozen context input variant actually selected for the current provider turn.",
2517
+ "type": "string",
2518
+ "enum": ["primary", "recovery"]
2519
+ }
2520
+ }
2521
+ },
2522
+ "RuntimeLimits": {
2523
+ "title": "RuntimeLimits",
2524
+ "description": "Runtime-owned phase-aware invocation watchdog budgets.",
2525
+ "type": "object",
2526
+ "additionalProperties": false,
2527
+ "properties": {
2528
+ "firstFrameTimeoutMs": {
2529
+ "type": "integer",
2530
+ "minimum": 100,
2531
+ "maximum": 1800000
2532
+ },
2533
+ "modelIdleTimeoutMs": {
2534
+ "type": "integer",
2535
+ "minimum": 100,
2536
+ "maximum": 3600000
2537
+ },
2538
+ "modelIdleWarningMs": {
2539
+ "type": "integer",
2540
+ "minimum": 100,
2541
+ "maximum": 3600000
2542
+ },
2543
+ "modelIdlePolicy": {
2544
+ "type": "string",
2545
+ "enum": ["observe", "enforce"]
2546
+ },
2547
+ "toolTimeoutMs": {
2548
+ "type": "integer",
2549
+ "minimum": 100,
2550
+ "maximum": 86400000
2551
+ },
2552
+ "toolWallTimeoutMs": {
2553
+ "type": "integer",
2554
+ "minimum": 100,
2555
+ "maximum": 86400000
2556
+ },
2557
+ "runTimeoutMs": {
2558
+ "type": "integer",
2559
+ "minimum": 100,
2560
+ "maximum": 604800000
2561
+ },
2562
+ "cancelGraceMs": {
2563
+ "type": "integer",
2564
+ "minimum": 100,
2565
+ "maximum": 60000
2566
+ },
2567
+ "enforcement": {
2568
+ "type": "string",
2569
+ "enum": ["observe", "enforce"]
2570
+ }
2571
+ }
2572
+ },
2573
+ "AgentConfig": {
2574
+ "title": "AgentConfig",
2575
+ "description": "Adapter-internal configuration derived from the resolved execution plan, not a public source of run model or approval choices. Legacy permission and thinking fields are forbidden.",
2576
+ "type": "object",
2577
+ "additionalProperties": true,
2578
+ "not": {
2579
+ "anyOf": [
2580
+ {
2581
+ "required": ["permissionMode"]
2582
+ },
2583
+ {
2584
+ "required": ["autoApprove"]
2585
+ },
2586
+ {
2587
+ "required": ["dangerouslyBypassPermissions"]
2588
+ },
2589
+ {
2590
+ "required": ["thinking"]
2591
+ }
2592
+ ]
2593
+ },
2594
+ "properties": {
2595
+ "workdir": {
2596
+ "description": "Default provider CLI working directory. It is a cwd, not a filesystem security boundary.",
2597
+ "type": "string"
2598
+ },
2599
+ "model": {
2600
+ "description": "Model identifier.",
2601
+ "type": "string"
2602
+ },
2603
+ "sandbox": {
2604
+ "description": "Provider sandbox mode identifier.",
2605
+ "type": "string"
2606
+ },
2607
+ "providerAgentId": {
2608
+ "description": "Provider-side agent identifier.",
2609
+ "type": "string"
2610
+ },
2611
+ "effort": {
2612
+ "description": "Optional provider reasoning effort identifier. Provider adapters may define an explicit default.",
2613
+ "type": "string"
2614
+ },
2615
+ "timeoutSeconds": {
2616
+ "description": "Invocation timeout in seconds.",
2617
+ "type": "number"
2618
+ },
2619
+ "openclawConfigPath": {
2620
+ "description": "OpenClaw configuration path.",
2621
+ "type": "string"
2622
+ },
2623
+ "openclawStateDir": {
2624
+ "description": "OpenClaw state directory.",
2625
+ "type": "string"
2626
+ },
2627
+ "providerOptions": {
2628
+ "description": "Provider-specific extension options passed through unchanged by Core.",
2629
+ "type": "object",
2630
+ "additionalProperties": true,
2631
+ "tsType": "Record<string, unknown>"
2632
+ }
2633
+ }
2634
+ },
2635
+ "AsyncUserInputQuestion": {
2636
+ "type": "object",
2637
+ "additionalProperties": false,
2638
+ "required": ["title", "options"],
2639
+ "properties": {
2640
+ "title": {
2641
+ "type": "string",
2642
+ "minLength": 1,
2643
+ "maxLength": 4096,
2644
+ "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
2645
+ },
2646
+ "options": {
2647
+ "type": ["array", "null"],
2648
+ "maxItems": 50,
2649
+ "items": {
2650
+ "type": "string",
2651
+ "minLength": 1,
2652
+ "maxLength": 4096,
2653
+ "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
2654
+ }
2655
+ }
2656
+ }
2657
+ },
2658
+ "QuestionRequest": {
2659
+ "description": "Non-blocking question batch. IDs are positions scoped to this interaction, not provider-native question IDs.",
2660
+ "type": "object",
2661
+ "additionalProperties": false,
2662
+ "required": ["schema", "messageId", "questions"],
2663
+ "properties": {
2664
+ "schema": {
2665
+ "const": "octo.question-request/v1",
2666
+ "type": "string"
2667
+ },
2668
+ "messageId": {
2669
+ "type": "string",
2670
+ "minLength": 1
2671
+ },
2672
+ "questions": {
2673
+ "type": "array",
2674
+ "minItems": 1,
2675
+ "maxItems": 50,
2676
+ "items": {
2677
+ "type": "object",
2678
+ "additionalProperties": false,
2679
+ "required": ["id", "title", "options", "allowCustom"],
2680
+ "properties": {
2681
+ "id": {
2682
+ "type": "string",
2683
+ "pattern": "^q:(0|[1-9][0-9]?)$"
2684
+ },
2685
+ "title": {
2686
+ "type": "string",
2687
+ "minLength": 1,
2688
+ "maxLength": 4096,
2689
+ "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
2690
+ },
2691
+ "options": {
2692
+ "type": ["array", "null"],
2693
+ "maxItems": 50,
2694
+ "items": {
2695
+ "type": "string",
2696
+ "minLength": 1,
2697
+ "maxLength": 4096,
2698
+ "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
2699
+ }
2700
+ },
2701
+ "allowCustom": {
2702
+ "type": "boolean",
2703
+ "const": true
2704
+ }
2705
+ }
2706
+ }
2707
+ }
2708
+ }
2709
+ },
2710
+ "QuestionResponse": {
2711
+ "type": "object",
2712
+ "additionalProperties": false,
2713
+ "required": ["schema", "answers"],
2714
+ "properties": {
2715
+ "schema": {
2716
+ "type": "string",
2717
+ "const": "octo.question-response/v1"
2718
+ },
2719
+ "answers": {
2720
+ "type": "array",
2721
+ "minItems": 1,
2722
+ "maxItems": 50,
2723
+ "items": {
2724
+ "type": "object",
2725
+ "additionalProperties": false,
2726
+ "required": ["questionId", "text"],
2727
+ "properties": {
2728
+ "questionId": {
2729
+ "type": "string",
2730
+ "pattern": "^q:(0|[1-9][0-9]?)$"
2731
+ },
2732
+ "text": {
2733
+ "type": "string",
2734
+ "minLength": 1,
2735
+ "maxLength": 4096,
2736
+ "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
2737
+ }
2738
+ }
2739
+ }
2740
+ }
2741
+ }
2742
+ },
2743
+ "CanonicalEventPayload": {
2744
+ "title": "CanonicalEventPayload",
2745
+ "description": "Shared canonical event payload. The open dictionary carries structured tool, surface, and usage fields while common lifecycle fields remain explicit.",
2746
+ "type": "object",
2747
+ "additionalProperties": true,
2748
+ "properties": {
2749
+ "delivery": {
2750
+ "description": "Async questions do not block provider work. Omitted for existing synchronous interactions.",
2751
+ "type": "string",
2752
+ "const": "async"
2753
+ },
2754
+ "questions": {
2755
+ "description": "Message snapshot only; an active interaction.requested authorizes submission.",
2756
+ "type": "array",
2757
+ "maxItems": 50,
2758
+ "items": {
2759
+ "$ref": "#/definitions/AsyncUserInputQuestion"
2760
+ }
2761
+ },
2762
+ "providerSession": {
2763
+ "$ref": "#/definitions/ProviderSession"
2764
+ },
2765
+ "channel": {
2766
+ "$ref": "#/definitions/MessageChannel"
2767
+ },
2768
+ "exposure": {
2769
+ "$ref": "#/definitions/MessageExposure"
2770
+ },
2771
+ "provenance": {
2772
+ "$ref": "#/definitions/MessageProvenance"
2773
+ },
2774
+ "messageId": {
2775
+ "description": "Stable message identifier.",
2776
+ "type": "string"
2777
+ },
2778
+ "stepId": {
2779
+ "description": "Stable model-step identifier used to associate messages and tool calls with one provider turn.",
2780
+ "type": "string"
2781
+ },
2782
+ "role": {
2783
+ "description": "Message role, such as assistant.",
2784
+ "type": "string"
2785
+ },
2786
+ "status": {
2787
+ "description": "Tool call or run status identifier.",
2788
+ "type": "string"
2789
+ },
2790
+ "text": {
2791
+ "description": "Text delta or complete text.",
2792
+ "type": "string"
2793
+ },
2794
+ "reason": {
2795
+ "description": "Termination or error reason.",
2796
+ "type": "string"
2797
+ },
2798
+ "message": {
2799
+ "description": "Human-readable diagnostic message.",
2800
+ "type": "string"
2801
+ },
2802
+ "failure": {
2803
+ "$ref": "#/definitions/FailureEnvelope"
2804
+ }
2805
+ }
2806
+ },
2807
+ "AsyncQuestionReplySnapshot": {
2808
+ "description": "Host-owned supplement state, never stored by Kernel. Submitting or unknown records cannot be replayed.",
2809
+ "type": "object",
2810
+ "additionalProperties": false,
2811
+ "required": ["schema", "ref", "question", "providerSession", "completed", "phase"],
2812
+ "properties": {
2813
+ "schema": {
2814
+ "const": "octo.async-question-reply/v1"
2815
+ },
2816
+ "ref": {
2817
+ "$ref": "#/definitions/KernelRunRef"
2818
+ },
2819
+ "question": {
2820
+ "$ref": "#/definitions/InteractionRequestedPayload"
2821
+ },
2822
+ "providerSession": {
2823
+ "$ref": "#/definitions/ProviderSession"
2824
+ },
2825
+ "providerEpoch": {
2826
+ "type": "integer",
2827
+ "minimum": 0
2828
+ },
2829
+ "completed": {
2830
+ "type": "boolean"
2831
+ },
2832
+ "phase": {
2833
+ "enum": ["pending", "submitting", "answered", "cancelled", "invalidated", "unknown"]
2834
+ }
2835
+ }
2836
+ },
2837
+ "InteractionRequestedPayload": {
2838
+ "title": "InteractionRequestedPayload",
2839
+ "description": "Provider-neutral interaction. Omitted delivery retains synchronous blocking semantics; async questions allow continued work. Only Adapter-owned automatic approvals may omit external responses; this does not imply completion.",
2840
+ "type": "object",
2841
+ "additionalProperties": false,
2842
+ "required": ["interactionId", "kind", "request", "executionInstanceId"],
2843
+ "properties": {
2844
+ "delivery": {
2845
+ "type": "string",
2846
+ "const": "async"
2847
+ },
2848
+ "executionInstanceId": {
2849
+ "type": "string",
2850
+ "minLength": 1,
2851
+ "maxLength": 191
2852
+ },
2853
+ "expiresAt": {
2854
+ "type": "string",
2855
+ "format": "date-time"
2856
+ },
2857
+ "interactionId": {
2858
+ "description": "Stable invocation-scoped interaction identifier.",
2859
+ "type": "string",
2860
+ "minLength": 1,
2861
+ "maxLength": 191
2862
+ },
2863
+ "kind": {
2864
+ "type": "string",
2865
+ "enum": ["approval", "question", "elicitation"]
2866
+ },
2867
+ "responseRequired": {
2868
+ "description": "Whether an external response is required. Omission means required; only an Adapter-owned automatic approval may set false.",
2869
+ "type": "boolean"
2870
+ },
2871
+ "request": {
2872
+ "description": "Display-safe provider request projected for the responding product.",
2873
+ "type": "object",
2874
+ "additionalProperties": true,
2875
+ "tsType": "Record<string, unknown>"
2876
+ }
2877
+ },
2878
+ "allOf": [
2879
+ {
2880
+ "if": {
2881
+ "required": ["delivery"],
2882
+ "properties": {
2883
+ "delivery": {
2884
+ "const": "async"
2885
+ }
2886
+ }
2887
+ },
2888
+ "then": {
2889
+ "properties": {
2890
+ "kind": {
2891
+ "const": "question"
2892
+ },
2893
+ "request": {
2894
+ "$ref": "#/definitions/QuestionRequest"
2895
+ }
2896
+ }
2897
+ },
2898
+ "else": {
2899
+ "required": ["expiresAt"]
2900
+ }
2901
+ }
2902
+ ],
2903
+ "if": {
2904
+ "properties": {
2905
+ "kind": {
2906
+ "const": "approval"
2907
+ }
2908
+ },
2909
+ "required": ["kind"]
2910
+ },
2911
+ "then": {
2912
+ "properties": {
2913
+ "request": {
2914
+ "$ref": "#/definitions/ApprovalRequest"
2915
+ }
2916
+ }
2917
+ },
2918
+ "else": {
2919
+ "properties": {
2920
+ "responseRequired": {
2921
+ "const": true
2922
+ }
2923
+ }
2924
+ }
2925
+ },
2926
+ "ApprovalRequest": {
2927
+ "description": "Supported profile: original native request approval with requestedPermissions=[] only. Non-empty permission instances fail with APPROVAL_PERMISSION_UNSUPPORTED; consumers must not fabricate them. Details are allowlisted inert metadata. The compact UTF-8 JSON budget is enforced by x-octo-max-json-bytes.",
2928
+ "type": "object",
2929
+ "additionalProperties": false,
2930
+ "x-octo-max-json-bytes": 65536,
2931
+ "x-octo-unicode-scalar-strings": true,
2932
+ "required": [
2933
+ "schema",
2934
+ "policy",
2935
+ "operation",
2936
+ "requestedPermissions",
2937
+ "allowedOutcomes",
2938
+ "grantScope"
2939
+ ],
2940
+ "properties": {
2941
+ "schema": {
2942
+ "const": "octo.approval-request/v1"
2943
+ },
2944
+ "policy": {
2945
+ "type": "object",
2946
+ "additionalProperties": false,
2947
+ "required": ["mode", "hash"],
2948
+ "properties": {
2949
+ "mode": {
2950
+ "$ref": "#/definitions/ApprovalMode"
2951
+ },
2952
+ "hash": {
2953
+ "type": "string",
2954
+ "pattern": "^sha256:[a-f0-9]{64}$"
2955
+ }
2956
+ }
2957
+ },
2958
+ "operation": {
2959
+ "$ref": "#/definitions/ApprovalOperation"
2960
+ },
2961
+ "requestedPermissions": {
2962
+ "type": "array",
2963
+ "maxItems": 0,
2964
+ "items": false
2965
+ },
2966
+ "reason": {
2967
+ "type": "string"
2968
+ },
2969
+ "allowedOutcomes": {
2970
+ "type": "array",
2971
+ "minItems": 1,
2972
+ "uniqueItems": true,
2973
+ "items": {
2974
+ "enum": ["accepted", "declined", "cancelled"]
2975
+ }
2976
+ },
2977
+ "grantScope": {
2978
+ "enum": ["request", "provider"]
2979
+ },
2980
+ "providerDetails": {
2981
+ "$ref": "#/definitions/ApprovalDisplayDetails"
2982
+ }
2983
+ }
2984
+ },
2985
+ "ApprovalOperation": {
2986
+ "type": "object",
2987
+ "additionalProperties": false,
2988
+ "required": ["kind", "summary"],
2989
+ "properties": {
2990
+ "kind": {
2991
+ "enum": [
2992
+ "command_execution",
2993
+ "file_change",
2994
+ "tool_execution",
2995
+ "permission_grant",
2996
+ "context_access"
2997
+ ]
2998
+ },
2999
+ "summary": {
3000
+ "type": "string",
3001
+ "minLength": 1,
3002
+ "maxLength": 8192,
3003
+ "x-octo-max-utf16-length": 8192
3004
+ },
3005
+ "toolCallId": {
3006
+ "type": "string",
3007
+ "minLength": 1
3008
+ },
3009
+ "details": {
3010
+ "$ref": "#/definitions/ApprovalDisplayDetails"
3011
+ }
3012
+ }
3013
+ },
3014
+ "ApprovalDisplayDetails": {
3015
+ "description": "Display-only fields permitted by assertApprovalRequest. Values remain inert provider metadata and do not redefine commands, permissions or grant scope.",
3016
+ "type": "object",
3017
+ "additionalProperties": false,
3018
+ "tsType": "Record<string, unknown>",
3019
+ "properties": {
3020
+ "provider": {},
3021
+ "method": {},
3022
+ "itemId": {},
3023
+ "approvalId": {},
3024
+ "reason": {},
3025
+ "command": {},
3026
+ "cwd": {},
3027
+ "grantRoot": {},
3028
+ "files": {},
3029
+ "toolCallId": {},
3030
+ "title": {},
3031
+ "description": {},
3032
+ "options": {}
3033
+ }
3034
+ },
3035
+ "InteractionResolvedPayload": {
3036
+ "type": "object",
3037
+ "additionalProperties": false,
3038
+ "required": ["interactionId", "executionInstanceId", "status"],
3039
+ "properties": {
3040
+ "interactionId": {
3041
+ "type": "string",
3042
+ "minLength": 1,
3043
+ "maxLength": 191
3044
+ },
3045
+ "executionInstanceId": {
3046
+ "type": "string",
3047
+ "minLength": 1,
3048
+ "maxLength": 191
3049
+ },
3050
+ "status": {
3051
+ "enum": ["resolved", "expired", "invalidated"]
3052
+ },
3053
+ "outcome": {
3054
+ "enum": ["accepted", "declined", "cancelled", "answered"]
3055
+ },
3056
+ "reasonCode": {
3057
+ "type": "string",
3058
+ "minLength": 1
3059
+ }
3060
+ },
3061
+ "if": {
3062
+ "properties": {
3063
+ "status": {
3064
+ "const": "resolved"
3065
+ }
3066
+ },
3067
+ "required": ["status"]
3068
+ },
3069
+ "then": {
3070
+ "required": ["outcome"]
3071
+ },
3072
+ "else": {
3073
+ "required": ["reasonCode"]
3074
+ }
3075
+ },
3076
+ "ModelStepStartedPayload": {
3077
+ "title": "ModelStepStartedPayload",
3078
+ "description": "Starts one provider model round. A round may contain public reasoning, tool calls, and text output.",
3079
+ "type": "object",
3080
+ "additionalProperties": true,
3081
+ "required": ["stepId"],
3082
+ "properties": {
3083
+ "stepId": {
3084
+ "description": "Stable identifier reused by model_step.finished and child events.",
3085
+ "type": "string"
3086
+ },
3087
+ "startedAtMs": {
3088
+ "description": "Provider-observed round content-start timestamp in Unix milliseconds.",
3089
+ "type": "integer",
3090
+ "minimum": 1
3091
+ }
3092
+ }
3093
+ },
3094
+ "ModelStepFinishedPayload": {
3095
+ "title": "ModelStepFinishedPayload",
3096
+ "description": "Finishes one provider model round and records why control returned to the harness.",
3097
+ "type": "object",
3098
+ "additionalProperties": true,
3099
+ "required": ["stepId", "status"],
3100
+ "properties": {
3101
+ "stepId": {
3102
+ "description": "Stable identifier from model_step.started.",
3103
+ "type": "string"
3104
+ },
3105
+ "status": {
3106
+ "enum": ["completed", "failed", "cancelled"]
3107
+ },
3108
+ "finishReason": {
3109
+ "description": "Provider-normalized reason such as tool-calls or stop.",
3110
+ "type": "string"
3111
+ },
3112
+ "endedAtMs": {
3113
+ "description": "Provider-observed round finish timestamp in Unix milliseconds.",
3114
+ "type": "integer",
3115
+ "minimum": 1
3116
+ }
3117
+ }
3118
+ },
3119
+ "ToolCallCreatePayload": {
3120
+ "title": "ToolCallCreatePayload",
3121
+ "description": "Formal tool_call.create payload. args preserves the original structured input, including args.command for shell tools.",
3122
+ "type": "object",
3123
+ "additionalProperties": true,
3124
+ "required": ["id", "name", "args", "status"],
3125
+ "properties": {
3126
+ "id": {
3127
+ "description": "Stable tool call identifier reused by later delta and update events.",
3128
+ "type": "string"
3129
+ },
3130
+ "name": {
3131
+ "description": "Tool name normalized across providers.",
3132
+ "type": "string"
3133
+ },
3134
+ "args": {
3135
+ "description": "Original structured input known when the tool call starts. Streaming providers may begin empty and append argsDelta.",
3136
+ "type": "object",
3137
+ "additionalProperties": true,
3138
+ "tsType": "Record<string, unknown>"
3139
+ },
3140
+ "status": {
3141
+ "const": "running"
3142
+ }
3143
+ }
3144
+ },
3145
+ "ToolCallDeltaPayload": {
3146
+ "title": "ToolCallDeltaPayload",
3147
+ "description": "Formal tool_call.delta payload. argsDelta is an ordered raw JSON fragment and must be concatenated before parsing.",
3148
+ "type": "object",
3149
+ "additionalProperties": true,
3150
+ "required": ["id", "kind"],
3151
+ "properties": {
3152
+ "id": {
3153
+ "description": "Stable identifier from the corresponding tool_call.create event.",
3154
+ "type": "string"
3155
+ },
3156
+ "argsDelta": {
3157
+ "description": "Raw JSON argument fragment; do not parse fragments independently.",
3158
+ "type": "string"
3159
+ },
3160
+ "outputDelta": {
3161
+ "description": "Tool output text fragment.",
3162
+ "type": "string"
3163
+ },
3164
+ "outputSnapshot": {
3165
+ "type": "string",
3166
+ "description": "Full replacement of a provider rolling output snapshot; never an activity or a terminal status."
3167
+ }
3168
+ }
3169
+ },
3170
+ "ToolCallUpdatePayload": {
3171
+ "title": "ToolCallUpdatePayload",
3172
+ "description": "Formal tool_call.update payload that closes the tool lifecycle and carries its final result.",
3173
+ "type": "object",
3174
+ "additionalProperties": true,
3175
+ "required": ["id", "status"],
3176
+ "properties": {
3177
+ "id": {
3178
+ "description": "Stable identifier from the corresponding tool_call.create event.",
3179
+ "type": "string"
3180
+ },
3181
+ "status": {
3182
+ "enum": ["completed", "failed", "cancelled"]
3183
+ },
3184
+ "output": {
3185
+ "description": "Final tool output as text or structured JSON.",
3186
+ "tsType": "unknown"
3187
+ },
3188
+ "error": {
3189
+ "description": "Structured error details.",
3190
+ "type": "object",
3191
+ "additionalProperties": true,
3192
+ "tsType": "Record<string, unknown>"
3193
+ },
3194
+ "exitCode": {
3195
+ "description": "Process exit code for command tools.",
3196
+ "type": "integer"
3197
+ },
3198
+ "durationMs": {
3199
+ "type": "integer",
3200
+ "minimum": 0,
3201
+ "maximum": 9007199254740991
3202
+ }
3203
+ }
3204
+ },
3205
+ "RunIdentity": {
3206
+ "title": "RunIdentity",
3207
+ "description": "Stable run identity used by envelopes without requiring the complete domain object.",
3208
+ "type": "object",
3209
+ "additionalProperties": false,
3210
+ "required": ["id", "agentSessionId"],
3211
+ "properties": {
3212
+ "id": {
3213
+ "description": "Run identifier.",
3214
+ "type": "string"
3215
+ },
3216
+ "agentSessionId": {
3217
+ "description": "Owning Agent Worker session identifier.",
3218
+ "type": "string"
3219
+ }
3220
+ }
3221
+ },
3222
+ "ChannelScope": {
3223
+ "title": "ChannelScope",
3224
+ "description": "Platform-neutral channel isolation key. account_id may be null but remains explicit; an absent thread_id selects the conversation root.",
3225
+ "type": "object",
3226
+ "additionalProperties": false,
3227
+ "required": [
3228
+ "tenant_id",
3229
+ "endpoint_id",
3230
+ "channel",
3231
+ "account_id",
3232
+ "bot_id",
3233
+ "conversation_id"
3234
+ ],
3235
+ "properties": {
3236
+ "tenant_id": {
3237
+ "type": "string",
3238
+ "minLength": 1
3239
+ },
3240
+ "endpoint_id": {
3241
+ "type": "string",
3242
+ "minLength": 1
3243
+ },
3244
+ "channel": {
3245
+ "type": "string",
3246
+ "minLength": 1
3247
+ },
3248
+ "account_id": {
3249
+ "type": ["string", "null"]
3250
+ },
3251
+ "bot_id": {
3252
+ "type": "string",
3253
+ "minLength": 1
3254
+ },
3255
+ "conversation_id": {
3256
+ "type": "string",
3257
+ "minLength": 1
3258
+ },
3259
+ "thread_id": {
3260
+ "type": ["string", "null"]
3261
+ }
3262
+ }
3263
+ },
3264
+ "ChannelMessagePart": {
3265
+ "title": "ChannelMessagePart",
3266
+ "description": "Normalized platform message part. type and text are common fields; connector extensions remain untrusted external data.",
3267
+ "type": "object",
3268
+ "additionalProperties": true,
3269
+ "required": ["type"],
3270
+ "properties": {
3271
+ "type": {
3272
+ "type": "string",
3273
+ "minLength": 1
3274
+ },
3275
+ "text": {
3276
+ "type": "string"
3277
+ }
3278
+ }
3279
+ },
3280
+ "ChannelMessageSender": {
3281
+ "title": "ChannelMessageSender",
3282
+ "description": "Normalized sender fact without platform credentials.",
3283
+ "type": "object",
3284
+ "additionalProperties": false,
3285
+ "required": ["id", "kind"],
3286
+ "properties": {
3287
+ "id": {
3288
+ "type": "string",
3289
+ "minLength": 1
3290
+ },
3291
+ "label": {
3292
+ "type": "string"
3293
+ },
3294
+ "kind": {
3295
+ "type": "string",
3296
+ "minLength": 1
3297
+ }
3298
+ }
3299
+ },
3300
+ "ChannelMessageFlags": {
3301
+ "title": "ChannelMessageFlags",
3302
+ "description": "Common message flags that affect context projection. Self and control messages are excluded from provider-visible context.",
3303
+ "type": "object",
3304
+ "additionalProperties": false,
3305
+ "properties": {
3306
+ "self": {
3307
+ "type": "boolean"
3308
+ },
3309
+ "control": {
3310
+ "type": "boolean"
3311
+ }
3312
+ }
3313
+ },
3314
+ "ChannelMessageFact": {
3315
+ "title": "ChannelMessageFact",
3316
+ "description": "A platform-neutral message fact in the rebuildable channel journal. Message content is always untrusted external input.",
3317
+ "type": "object",
3318
+ "additionalProperties": false,
3319
+ "required": ["message_id", "sender", "occurred_at_ms", "parts"],
3320
+ "properties": {
3321
+ "message_id": {
3322
+ "type": "string",
3323
+ "minLength": 1
3324
+ },
3325
+ "message_seq": {
3326
+ "type": "integer",
3327
+ "minimum": 0
3328
+ },
3329
+ "sender": {
3330
+ "$ref": "#/definitions/ChannelMessageSender"
3331
+ },
3332
+ "occurred_at_ms": {
3333
+ "type": "integer",
3334
+ "minimum": 1
3335
+ },
3336
+ "parts": {
3337
+ "type": "array",
3338
+ "minItems": 1,
3339
+ "items": {
3340
+ "$ref": "#/definitions/ChannelMessagePart"
3341
+ }
3342
+ },
3343
+ "flags": {
3344
+ "$ref": "#/definitions/ChannelMessageFlags"
3345
+ }
3346
+ }
3347
+ },
3348
+ "ChannelContextAppend": {
3349
+ "title": "ChannelContextAppend",
3350
+ "description": "Idempotent context-only batch appended by agent-worker to its bound daemon.",
3351
+ "type": "object",
3352
+ "additionalProperties": false,
3353
+ "required": ["agent_id", "scope", "facts"],
3354
+ "properties": {
3355
+ "agent_id": {
3356
+ "type": "string",
3357
+ "minLength": 1,
3358
+ "maxLength": 96
3359
+ },
3360
+ "scope": {
3361
+ "$ref": "#/definitions/ChannelScope"
3362
+ },
3363
+ "facts": {
3364
+ "type": "array",
3365
+ "minItems": 1,
3366
+ "maxItems": 100,
3367
+ "items": {
3368
+ "$ref": "#/definitions/ChannelMessageFact"
3369
+ }
3370
+ },
3371
+ "gap_after_seq": {
3372
+ "type": "integer",
3373
+ "minimum": 0
3374
+ }
3375
+ }
3376
+ },
3377
+ "ContextSyncRequest": {
3378
+ "title": "ContextSyncRequest",
3379
+ "description": "Bounded backfill requested by the daemon after cold start or gap detection. It never carries platform tokens.",
3380
+ "type": "object",
3381
+ "additionalProperties": false,
3382
+ "required": ["request_id", "run_id", "scope", "trigger_message_id", "limit"],
3383
+ "properties": {
3384
+ "request_id": {
3385
+ "type": "string",
3386
+ "minLength": 1
3387
+ },
3388
+ "run_id": {
3389
+ "type": "string",
3390
+ "minLength": 1
3391
+ },
3392
+ "scope": {
3393
+ "$ref": "#/definitions/ChannelScope"
3394
+ },
3395
+ "trigger_message_id": {
3396
+ "type": "string",
3397
+ "minLength": 1
3398
+ },
3399
+ "trigger_seq": {
3400
+ "type": "integer",
3401
+ "minimum": 0
3402
+ },
3403
+ "after_seq": {
3404
+ "type": "integer",
3405
+ "minimum": 0
3406
+ },
3407
+ "limit": {
3408
+ "type": "integer",
3409
+ "minimum": 1,
3410
+ "maximum": 100
3411
+ }
3412
+ }
3413
+ },
3414
+ "ContextSyncResult": {
3415
+ "title": "ContextSyncResult",
3416
+ "description": "Bounded history result. complete means only that the requested window was returned, not that the local journal is authoritative.",
3417
+ "type": "object",
3418
+ "additionalProperties": false,
3419
+ "required": ["request_id", "scope", "facts", "completeness"],
3420
+ "properties": {
3421
+ "request_id": {
3422
+ "type": "string",
3423
+ "minLength": 1
3424
+ },
3425
+ "scope": {
3426
+ "$ref": "#/definitions/ChannelScope"
3427
+ },
3428
+ "facts": {
3429
+ "type": "array",
3430
+ "maxItems": 100,
3431
+ "items": {
3432
+ "$ref": "#/definitions/ChannelMessageFact"
3433
+ }
3434
+ },
3435
+ "completeness": {
3436
+ "type": "string",
3437
+ "enum": ["complete", "partial", "unavailable"]
3438
+ },
3439
+ "through_seq": {
3440
+ "type": "integer",
3441
+ "minimum": 0
3442
+ }
3443
+ },
3444
+ "allOf": [
3445
+ {
3446
+ "if": {
3447
+ "properties": {
3448
+ "completeness": {
3449
+ "const": "unavailable"
3450
+ }
3451
+ }
3452
+ },
3453
+ "then": {
3454
+ "properties": {
3455
+ "facts": {
3456
+ "maxItems": 0
3457
+ }
3458
+ }
3459
+ }
3460
+ }
3461
+ ]
3462
+ },
3463
+ "ChannelContextDescriptor": {
3464
+ "title": "ChannelContextDescriptor",
3465
+ "description": "Snapshot selection descriptor in ExecutionEnvelope. Scope, consumer_key, and session_generation isolate the consumption cursor.",
3466
+ "type": "object",
3467
+ "additionalProperties": false,
3468
+ "required": [
3469
+ "scope",
3470
+ "consumer_key",
3471
+ "session_generation",
3472
+ "trigger_message_id",
3473
+ "trigger_fact"
3474
+ ],
3475
+ "properties": {
3476
+ "scope": {
3477
+ "$ref": "#/definitions/ChannelScope"
3478
+ },
3479
+ "consumer_key": {
3480
+ "type": "string",
3481
+ "minLength": 1
3482
+ },
3483
+ "session_generation": {
3484
+ "type": "integer",
3485
+ "minimum": 1
3486
+ },
3487
+ "trigger_message_id": {
3488
+ "type": "string",
3489
+ "minLength": 1
3490
+ },
3491
+ "trigger_seq": {
3492
+ "type": "integer",
3493
+ "minimum": 0
3494
+ },
3495
+ "trigger_fact": {
3496
+ "$ref": "#/definitions/ChannelMessageFact"
3497
+ }
3498
+ }
3499
+ },
3500
+ "ContextCommitResult": {
3501
+ "title": "ContextCommitResult",
3502
+ "description": "Result of advancing the consumer cursor with version CAS after terminal durability.",
3503
+ "type": "object",
3504
+ "additionalProperties": false,
3505
+ "required": ["snapshot_id", "committed"],
3506
+ "properties": {
3507
+ "snapshot_id": {
3508
+ "type": "string",
3509
+ "minLength": 1
3510
+ },
3511
+ "committed": {
3512
+ "type": "boolean"
3513
+ },
3514
+ "reason": {
3515
+ "type": "string",
3516
+ "enum": [
3517
+ "already_committed",
3518
+ "snapshot_not_found",
3519
+ "snapshot_not_submitted",
3520
+ "consumer_advanced",
3521
+ "snapshot_failed"
3522
+ ]
3523
+ }
3524
+ }
3525
+ },
3526
+ "McpStdioServer": {
3527
+ "title": "McpStdioServer",
3528
+ "description": "A per-invocation MCP server launched as a child process by the provider.",
3529
+ "type": "object",
3530
+ "additionalProperties": false,
3531
+ "required": ["type", "command"],
3532
+ "properties": {
3533
+ "type": {
3534
+ "const": "stdio"
3535
+ },
3536
+ "command": {
3537
+ "type": "string",
3538
+ "minLength": 1
3539
+ },
3540
+ "args": {
3541
+ "type": "array",
3542
+ "items": {
3543
+ "type": "string"
3544
+ },
3545
+ "maxItems": 128
3546
+ },
3547
+ "env": {
3548
+ "type": "object",
3549
+ "additionalProperties": {
3550
+ "type": "string",
3551
+ "pattern": "^[^\\u0000]*$"
3552
+ },
3553
+ "maxProperties": 128,
3554
+ "tsType": "Record<string, string>",
3555
+ "propertyNames": {
3556
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
3557
+ }
3558
+ },
3559
+ "cwd": {
3560
+ "type": "string",
3561
+ "minLength": 1
3562
+ },
3563
+ "required": {
3564
+ "type": "boolean"
3565
+ },
3566
+ "startupTimeoutMs": {
3567
+ "type": "integer",
3568
+ "minimum": 100,
3569
+ "maximum": 300000
3570
+ },
3571
+ "toolTimeoutMs": {
3572
+ "type": "integer",
3573
+ "minimum": 100,
3574
+ "maximum": 3600000
3575
+ }
3576
+ }
3577
+ },
3578
+ "McpStreamableHttpServer": {
3579
+ "title": "McpStreamableHttpServer",
3580
+ "description": "A per-invocation Streamable HTTP MCP endpoint. Header values are sensitive and must never enter logs or canonical events.",
3581
+ "type": "object",
3582
+ "additionalProperties": false,
3583
+ "required": ["type", "url"],
3584
+ "properties": {
3585
+ "type": {
3586
+ "const": "streamable_http"
3587
+ },
3588
+ "url": {
3589
+ "type": "string",
3590
+ "minLength": 1,
3591
+ "maxLength": 4096,
3592
+ "anyOf": [
3593
+ {
3594
+ "x-octo-http-url": true
3595
+ },
3596
+ {
3597
+ "pattern": "\\$\\$?\\{[A-Za-z_][A-Za-z0-9_]*\\}"
3598
+ }
3599
+ ],
3600
+ "description": "Absolute HTTP(S) endpoint or environment template; the resolved endpoint is validated again before connecting.",
3601
+ "tsType": "string"
3602
+ },
3603
+ "headers": {
3604
+ "type": "object",
3605
+ "additionalProperties": {
3606
+ "type": "string",
3607
+ "pattern": "^[^\\r\\n\\u0000]*$"
3608
+ },
3609
+ "maxProperties": 64,
3610
+ "tsType": "Record<string, string>",
3611
+ "propertyNames": {
3612
+ "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
3613
+ },
3614
+ "x-octo-unique-header-names": true
3615
+ },
3616
+ "required": {
3617
+ "type": "boolean"
3618
+ },
3619
+ "startupTimeoutMs": {
3620
+ "type": "integer",
3621
+ "minimum": 100,
3622
+ "maximum": 300000
3623
+ },
3624
+ "toolTimeoutMs": {
3625
+ "type": "integer",
3626
+ "minimum": 100,
3627
+ "maximum": 3600000
3628
+ }
3629
+ }
3630
+ },
3631
+ "McpServer": {
3632
+ "title": "McpServer",
3633
+ "description": "Provider-neutral per-invocation MCP server definition.",
3634
+ "oneOf": [
3635
+ {
3636
+ "$ref": "#/definitions/McpStdioServer"
3637
+ },
3638
+ {
3639
+ "$ref": "#/definitions/McpStreamableHttpServer"
3640
+ }
3641
+ ]
3642
+ },
3643
+ "McpServers": {
3644
+ "title": "McpServers",
3645
+ "description": "Dynamic server-name map. No business-specific names are enumerated. Each value must match one closed transport variant.",
3646
+ "type": "object",
3647
+ "propertyNames": {
3648
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
3649
+ },
3650
+ "additionalProperties": {
3651
+ "$ref": "#/definitions/McpServer"
3652
+ },
3653
+ "maxProperties": 32,
3654
+ "tsType": "Record<string, McpServer>"
3655
+ },
3656
+ "ModelInputPart": {
3657
+ "title": "ModelInputPart",
3658
+ "description": "Ordered provider-native user input. Image bytes are materialized only for the invocation, never used as a text fallback.",
3659
+ "oneOf": [
3660
+ {
3661
+ "type": "object",
3662
+ "additionalProperties": false,
3663
+ "required": ["type", "text"],
3664
+ "properties": {
3665
+ "id": {
3666
+ "type": "string",
3667
+ "minLength": 1
3668
+ },
3669
+ "type": {
3670
+ "const": "text"
3671
+ },
3672
+ "text": {
3673
+ "type": "string"
3674
+ }
3675
+ }
3676
+ },
3677
+ {
3678
+ "type": "object",
3679
+ "additionalProperties": false,
3680
+ "required": ["type", "mimeType", "data", "byteSize", "sha256"],
3681
+ "properties": {
3682
+ "id": {
3683
+ "type": "string",
3684
+ "minLength": 1
3685
+ },
3686
+ "type": {
3687
+ "const": "image"
3688
+ },
3689
+ "mimeType": {
3690
+ "enum": ["image/png", "image/jpeg", "image/webp"]
3691
+ },
3692
+ "data": {
3693
+ "type": "string",
3694
+ "minLength": 1,
3695
+ "maxLength": 2796204
3696
+ },
3697
+ "byteSize": {
3698
+ "type": "integer",
3699
+ "minimum": 1,
3700
+ "maximum": 2097152
3701
+ },
3702
+ "sha256": {
3703
+ "type": "string",
3704
+ "pattern": "^[a-f0-9]{64}$"
3705
+ }
3706
+ }
3707
+ }
3708
+ ]
3709
+ },
3710
+ "InvokeRequestWire": {
3711
+ "title": "InvokeRequestWire",
3712
+ "description": "Serializable execution request sent from Core to Adapter Host. AbortSignal is added in src/index.ts because it cannot cross a process boundary.",
3713
+ "type": "object",
3714
+ "additionalProperties": false,
3715
+ "required": [
3716
+ "invocationId",
3717
+ "agentSessionId",
3718
+ "runId",
3719
+ "prompt",
3720
+ "workdir",
3721
+ "controlInstructions",
3722
+ "context",
3723
+ "agentConfig",
3724
+ "modelInput",
3725
+ "approvalMode",
3726
+ "protocolVersion",
3727
+ "agentSource"
3728
+ ],
3729
+ "properties": {
3730
+ "executionEnvOverrides": {
3731
+ "description": "Trusted ingress execution environment, independent of business Context; never render or persist in business snapshots.",
3732
+ "$ref": "#/definitions/ContextEnvsPayload"
3733
+ },
3734
+ "invocationId": {
3735
+ "description": "Active Adapter Host invocation identifier and cancellation target.",
3736
+ "type": "string"
3737
+ },
3738
+ "agentSessionId": {
3739
+ "description": "Long-lived Agent Worker session identifier for this execution context.",
3740
+ "type": "string"
3741
+ },
3742
+ "sessionName": {
3743
+ "description": "Caller-owned nonblank display name of 1-256 Unicode code points, without C0/DEL/C1 controls; independent of business identity and opaque provider recovery handles.",
3744
+ "type": "string",
3745
+ "minLength": 1,
3746
+ "maxLength": 256,
3747
+ "not": {
3748
+ "anyOf": [
3749
+ {
3750
+ "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
3751
+ },
3752
+ {
3753
+ "pattern": "^[ \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$"
3754
+ }
3755
+ ]
3756
+ }
3757
+ },
3758
+ "runId": {
3759
+ "description": "Run identifier for this execution.",
3760
+ "type": "string"
3761
+ },
3762
+ "sessionGeneration": {
3763
+ "description": "Worker-owned AgentSession generation that fences stale continuity updates.",
3764
+ "type": "integer",
3765
+ "minimum": 1
3766
+ },
3767
+ "providerEpoch": {
3768
+ "description": "Worker-owned provider binding epoch for this Run.",
3769
+ "type": "integer",
3770
+ "minimum": 1
3771
+ },
3772
+ "continuityMode": {
3773
+ "description": "Caller continuity intent. Fresh invocations must not carry providerSession.",
3774
+ "type": "string",
3775
+ "enum": ["continue", "fresh"]
3776
+ },
3777
+ "prompt": {
3778
+ "description": "Display-safe current request or task description. It excludes hidden channel context and provider control parameters.",
3779
+ "type": "string"
3780
+ },
3781
+ "modelInput": {
3782
+ "description": "Required exact provider-visible user turn.",
3783
+ "type": "string"
3784
+ },
3785
+ "modelInputParts": {
3786
+ "type": "array",
3787
+ "minItems": 1,
3788
+ "maxItems": 128,
3789
+ "tsType": "ModelInputPart[]",
3790
+ "items": {
3791
+ "$ref": "#/definitions/ModelInputPart"
3792
+ }
3793
+ },
3794
+ "freshFallbackModelInputParts": {
3795
+ "type": "array",
3796
+ "minItems": 1,
3797
+ "maxItems": 128,
3798
+ "tsType": "ModelInputPart[]",
3799
+ "items": {
3800
+ "$ref": "#/definitions/ModelInputPart"
3801
+ }
3802
+ },
3803
+ "freshFallbackImagesUnavailable": {
3804
+ "description": "Recovery includes historical images whose bytes are unavailable. Adapters must fail before sending a fresh prompt.",
3805
+ "type": "boolean"
3806
+ },
3807
+ "freshFallbackModelInput": {
3808
+ "description": "Frozen alternate user turn for the first turn of a fresh provider session after resume fails.",
3809
+ "type": "string"
3810
+ },
3811
+ "workdir": {
3812
+ "description": "Provider process cwd. Sandboxing, containers, or host permissions provide the actual access boundary.",
3813
+ "type": "string"
3814
+ },
3815
+ "controlInstructions": {
3816
+ "description": "Trusted session instructions. Adapters inject them only when starting a provider session; resuming an existing session must not inject or clear them.",
3817
+ "type": "string"
3818
+ },
3819
+ "context": {
3820
+ "$ref": "#/definitions/ContextEnvelope"
3821
+ },
3822
+ "runMetadata": {
3823
+ "type": "object",
3824
+ "additionalProperties": true,
3825
+ "tsType": "Record<string, unknown>"
3826
+ },
3827
+ "approvalMode": {
3828
+ "$ref": "#/definitions/ApprovalMode"
3829
+ },
3830
+ "providerSession": {
3831
+ "$ref": "#/definitions/ProviderSession"
3832
+ },
3833
+ "runtimeLimits": {
3834
+ "$ref": "#/definitions/RuntimeLimits"
3835
+ },
3836
+ "agentConfig": {
3837
+ "$ref": "#/definitions/AgentConfig"
3838
+ },
3839
+ "protocolVersion": {
3840
+ "const": 2
3841
+ },
3842
+ "agentSource": {
3843
+ "$ref": "#/definitions/AgentSource"
3844
+ }
3845
+ }
3846
+ },
3847
+ "ActivityInfo": {
3848
+ "type": "object",
3849
+ "additionalProperties": false,
3850
+ "properties": {
3851
+ "messageKey": {
3852
+ "type": "string",
3853
+ "minLength": 1,
3854
+ "maxLength": 191
3855
+ },
3856
+ "params": {
3857
+ "type": "object",
3858
+ "additionalProperties": {
3859
+ "type": ["string", "number", "boolean"]
3860
+ }
3861
+ },
3862
+ "attempt": {
3863
+ "type": "integer",
3864
+ "minimum": 1,
3865
+ "maximum": 9007199254740991
3866
+ },
3867
+ "retryAfterMs": {
3868
+ "type": "integer",
3869
+ "minimum": 0,
3870
+ "maximum": 9007199254740991
3871
+ }
3872
+ },
3873
+ "required": []
3874
+ },
3875
+ "ActivitySubject": {
3876
+ "oneOf": [
3877
+ {
3878
+ "type": "object",
3879
+ "additionalProperties": false,
3880
+ "properties": {
3881
+ "type": {
3882
+ "const": "run"
3883
+ }
3884
+ },
3885
+ "required": ["type"]
3886
+ },
3887
+ {
3888
+ "type": "object",
3889
+ "additionalProperties": false,
3890
+ "properties": {
3891
+ "type": {
3892
+ "const": "message"
3893
+ },
3894
+ "id": {
3895
+ "type": "string",
3896
+ "minLength": 1,
3897
+ "maxLength": 191
3898
+ }
3899
+ },
3900
+ "required": ["type", "id"]
3901
+ },
3902
+ {
3903
+ "type": "object",
3904
+ "additionalProperties": false,
3905
+ "properties": {
3906
+ "type": {
3907
+ "const": "tool"
3908
+ },
3909
+ "id": {
3910
+ "type": "string",
3911
+ "minLength": 1,
3912
+ "maxLength": 191
3913
+ }
3914
+ },
3915
+ "required": ["type", "id"]
3916
+ },
3917
+ {
3918
+ "type": "object",
3919
+ "additionalProperties": false,
3920
+ "properties": {
3921
+ "type": {
3922
+ "const": "interaction"
3923
+ },
3924
+ "id": {
3925
+ "type": "string",
3926
+ "minLength": 1,
3927
+ "maxLength": 191
3928
+ }
3929
+ },
3930
+ "required": ["type", "id"]
3931
+ }
3932
+ ]
3933
+ },
3934
+ "ActivityStartedPayload": {
3935
+ "type": "object",
3936
+ "additionalProperties": false,
3937
+ "properties": {
3938
+ "activityId": {
3939
+ "type": "string",
3940
+ "minLength": 1,
3941
+ "maxLength": 191
3942
+ },
3943
+ "kind": {
3944
+ "enum": [
3945
+ "starting",
3946
+ "thinking",
3947
+ "executing_tool",
3948
+ "responding",
3949
+ "waiting_approval",
3950
+ "waiting_input",
3951
+ "compacting",
3952
+ "retrying",
3953
+ "working"
3954
+ ]
3955
+ },
3956
+ "subject": {
3957
+ "$ref": "#/definitions/ActivitySubject"
3958
+ },
3959
+ "source": {
3960
+ "enum": ["provider", "harness"]
3961
+ },
3962
+ "info": {
3963
+ "$ref": "#/definitions/ActivityInfo"
3964
+ },
3965
+ "startedAtMs": {
3966
+ "type": "integer",
3967
+ "minimum": 0,
3968
+ "maximum": 9007199254740991
3969
+ }
3970
+ },
3971
+ "required": ["activityId", "kind", "subject", "source", "info"]
3972
+ },
3973
+ "ActivityUpdatedPayload": {
3974
+ "type": "object",
3975
+ "additionalProperties": false,
3976
+ "properties": {
3977
+ "activityId": {
3978
+ "type": "string",
3979
+ "minLength": 1,
3980
+ "maxLength": 191
3981
+ },
3982
+ "info": {
3983
+ "$ref": "#/definitions/ActivityInfo"
3984
+ }
3985
+ },
3986
+ "required": ["activityId", "info"]
3987
+ },
3988
+ "ActivityFinishedPayload": {
3989
+ "type": "object",
3990
+ "additionalProperties": false,
3991
+ "properties": {
3992
+ "activityId": {
3993
+ "type": "string",
3994
+ "minLength": 1,
3995
+ "maxLength": 191
3996
+ },
3997
+ "status": {
3998
+ "enum": ["completed", "failed", "cancelled", "superseded"]
3999
+ },
4000
+ "endedAtMs": {
4001
+ "type": "integer",
4002
+ "minimum": 0,
4003
+ "maximum": 9007199254740991
4004
+ }
4005
+ },
4006
+ "required": ["activityId", "status"]
4007
+ },
4008
+ "PlanUpdatedPayload": {
4009
+ "type": "object",
4010
+ "additionalProperties": false,
4011
+ "properties": {
4012
+ "planId": {
4013
+ "type": "string",
4014
+ "minLength": 1,
4015
+ "maxLength": 191
4016
+ },
4017
+ "revision": {
4018
+ "type": "integer",
4019
+ "minimum": 1,
4020
+ "maximum": 9007199254740991
4021
+ },
4022
+ "explanation": {
4023
+ "type": ["string", "null"],
4024
+ "maxLength": 4096
4025
+ },
4026
+ "steps": {
4027
+ "type": "array",
4028
+ "maxItems": 200,
4029
+ "items": {
4030
+ "type": "object",
4031
+ "additionalProperties": false,
4032
+ "properties": {
4033
+ "text": {
4034
+ "type": "string",
4035
+ "minLength": 1,
4036
+ "maxLength": 4096
4037
+ },
4038
+ "status": {
4039
+ "enum": ["pending", "in_progress", "completed", "blocked", "cancelled"]
4040
+ }
4041
+ },
4042
+ "required": ["text", "status"]
4043
+ }
4044
+ }
4045
+ },
4046
+ "required": ["planId", "revision", "explanation", "steps"]
4047
+ },
4048
+ "ToolProgressPayload": {
4049
+ "type": "object",
4050
+ "additionalProperties": false,
4051
+ "properties": {
4052
+ "id": {
4053
+ "type": "string",
4054
+ "minLength": 1,
4055
+ "maxLength": 191
4056
+ },
4057
+ "progress": {
4058
+ "type": "object",
4059
+ "additionalProperties": false,
4060
+ "properties": {
4061
+ "message": {
4062
+ "type": "string",
4063
+ "maxLength": 4096
4064
+ },
4065
+ "completed": {
4066
+ "type": "integer",
4067
+ "minimum": 0,
4068
+ "maximum": 9007199254740991
4069
+ },
4070
+ "total": {
4071
+ "type": "integer",
4072
+ "minimum": 1,
4073
+ "maximum": 9007199254740991
4074
+ },
4075
+ "unit": {
4076
+ "enum": ["items", "bytes", "steps"]
4077
+ }
4078
+ },
4079
+ "required": []
4080
+ }
4081
+ },
4082
+ "required": ["id", "progress"]
4083
+ },
4084
+ "RunNoticePayload": {
4085
+ "type": "object",
4086
+ "additionalProperties": false,
4087
+ "properties": {
4088
+ "noticeId": {
4089
+ "type": "string",
4090
+ "minLength": 1,
4091
+ "maxLength": 191
4092
+ },
4093
+ "code": {
4094
+ "enum": [
4095
+ "retry_scheduled",
4096
+ "context_compacted",
4097
+ "model_rerouted",
4098
+ "config_warning",
4099
+ "provider_diagnostic"
4100
+ ]
4101
+ },
4102
+ "severity": {
4103
+ "enum": ["info", "warning"]
4104
+ },
4105
+ "params": {
4106
+ "type": "object",
4107
+ "additionalProperties": {
4108
+ "type": ["string", "number", "boolean"]
4109
+ }
4110
+ },
4111
+ "relatedActivityId": {
4112
+ "type": "string",
4113
+ "minLength": 1,
4114
+ "maxLength": 191
4115
+ },
4116
+ "relatedItemId": {
4117
+ "type": "string",
4118
+ "minLength": 1,
4119
+ "maxLength": 191
4120
+ }
4121
+ },
4122
+ "required": ["noticeId", "code", "severity", "params"]
4123
+ },
4124
+ "AgentSource": {
4125
+ "title": "AgentSource",
4126
+ "type": "string",
4127
+ "enum": ["preset", "provisioned"]
4128
+ },
4129
+ "ContextModelSelectionPayload": {
4130
+ "type": "object",
4131
+ "additionalProperties": false,
4132
+ "properties": {
4133
+ "id": {
4134
+ "type": "string",
4135
+ "minLength": 1
4136
+ },
4137
+ "use_provider_default": {
4138
+ "const": true
4139
+ }
4140
+ },
4141
+ "oneOf": [
4142
+ {
4143
+ "required": ["id"],
4144
+ "not": {
4145
+ "required": ["use_provider_default"]
4146
+ }
4147
+ },
4148
+ {
4149
+ "required": ["use_provider_default"],
4150
+ "not": {
4151
+ "required": ["id"]
4152
+ }
4153
+ }
4154
+ ]
4155
+ },
4156
+ "ContextInlineEntry": {
4157
+ "description": "Untrusted inline selection text with optional resource reference, source metadata and summary. Source metadata is not an authorization claim.",
4158
+ "type": "object",
4159
+ "additionalProperties": false,
4160
+ "required": ["text"],
4161
+ "properties": {
4162
+ "text": {
4163
+ "type": "string",
4164
+ "minLength": 1
4165
+ },
4166
+ "resource_ref": {
4167
+ "type": "string",
4168
+ "minLength": 1
4169
+ },
4170
+ "source": {
4171
+ "type": ["object", "string"],
4172
+ "additionalProperties": true
4173
+ },
4174
+ "summary": {
4175
+ "type": "string"
4176
+ }
4177
+ }
4178
+ },
4179
+ "ContextReferenceEntry": {
4180
+ "description": "Declarative MCP resource operation. Only deployed scoped operations may execute; schema validation does not authorize access.",
4181
+ "type": "object",
4182
+ "additionalProperties": false,
4183
+ "required": ["resource_ref", "resolver", "locator"],
4184
+ "properties": {
4185
+ "resource_ref": {
4186
+ "type": "string",
4187
+ "minLength": 1
4188
+ },
4189
+ "resolver": {
4190
+ "const": "mcp"
4191
+ },
4192
+ "locator": {
4193
+ "type": "object"
4194
+ },
4195
+ "params": {
4196
+ "description": "Frozen non-secret JSON parameters supplied by the authenticated resolver plan, not model-generated commands.",
4197
+ "type": "object",
4198
+ "additionalProperties": true,
4199
+ "tsType": "Record<string, unknown>"
4200
+ },
4201
+ "authorization_ref": {
4202
+ "type": "string",
4203
+ "minLength": 1
4204
+ },
4205
+ "revision": {
4206
+ "type": "string",
4207
+ "minLength": 1
4208
+ }
4209
+ },
4210
+ "allOf": [
4211
+ {
4212
+ "properties": {
4213
+ "locator": {
4214
+ "$ref": "#/definitions/ContextMcpLocator"
4215
+ }
4216
+ }
4217
+ }
4218
+ ]
4219
+ },
4220
+ "ContextInlinePayload": {
4221
+ "type": "object",
4222
+ "additionalProperties": false,
4223
+ "required": ["entries"],
4224
+ "properties": {
4225
+ "entries": {
4226
+ "type": "array",
4227
+ "minItems": 1,
4228
+ "items": {
4229
+ "$ref": "#/definitions/ContextInlineEntry"
4230
+ }
4231
+ }
4232
+ }
4233
+ },
4234
+ "ContextReferencesPayload": {
4235
+ "type": "object",
4236
+ "x-octo-unique-resource-refs": true,
4237
+ "additionalProperties": false,
4238
+ "required": ["entries"],
4239
+ "properties": {
4240
+ "entries": {
4241
+ "type": "array",
4242
+ "minItems": 1,
4243
+ "uniqueItems": true,
4244
+ "items": {
4245
+ "$ref": "#/definitions/ContextReferenceEntry"
4246
+ }
4247
+ }
4248
+ }
4249
+ },
4250
+ "ToolAuthorization": {
4251
+ "title": "ToolAuthorization",
4252
+ "description": "Business authorization intent; never a tool installation definition.",
4253
+ "type": "object",
4254
+ "additionalProperties": false,
4255
+ "required": ["service_subject_id", "allowed_tools", "resource_refs"],
4256
+ "properties": {
4257
+ "service_subject_id": {
4258
+ "type": "string",
4259
+ "minLength": 1,
4260
+ "maxLength": 96
4261
+ },
4262
+ "allowed_tools": {
4263
+ "type": "array",
4264
+ "minItems": 1,
4265
+ "maxItems": 128,
4266
+ "uniqueItems": true,
4267
+ "items": {
4268
+ "type": "string",
4269
+ "minLength": 1,
4270
+ "maxLength": 512
4271
+ }
4272
+ },
4273
+ "resource_refs": {
4274
+ "type": "array",
4275
+ "minItems": 1,
4276
+ "maxItems": 128,
4277
+ "uniqueItems": true,
4278
+ "items": {
4279
+ "type": "string",
4280
+ "minLength": 1,
4281
+ "maxLength": 512
4282
+ }
4283
+ }
4284
+ }
4285
+ },
4286
+ "IssuedToolAuthorization": {
4287
+ "title": "IssuedToolAuthorization",
4288
+ "description": "Run lease-bound credentials delivered over the authenticated Runtime channel. Never enter provider configuration, prompts or logs.",
4289
+ "type": "object",
4290
+ "additionalProperties": false,
4291
+ "required": [
4292
+ "service_subject_id",
4293
+ "allowed_tools",
4294
+ "resource_refs",
4295
+ "token",
4296
+ "octo_space_id",
4297
+ "namespace",
4298
+ "expires_at"
4299
+ ],
4300
+ "properties": {
4301
+ "service_subject_id": {
4302
+ "type": "string",
4303
+ "minLength": 1,
4304
+ "maxLength": 96
4305
+ },
4306
+ "allowed_tools": {
4307
+ "type": "array",
4308
+ "minItems": 1,
4309
+ "maxItems": 128,
4310
+ "uniqueItems": true,
4311
+ "items": {
4312
+ "type": "string",
4313
+ "minLength": 1,
4314
+ "maxLength": 512
4315
+ }
4316
+ },
4317
+ "resource_refs": {
4318
+ "type": "array",
4319
+ "minItems": 1,
4320
+ "maxItems": 128,
4321
+ "uniqueItems": true,
4322
+ "items": {
4323
+ "type": "string",
4324
+ "minLength": 1,
4325
+ "maxLength": 512
4326
+ }
4327
+ },
4328
+ "token": {
4329
+ "type": "string",
4330
+ "minLength": 1,
4331
+ "maxLength": 512
4332
+ },
4333
+ "octo_space_id": {
4334
+ "type": "string",
4335
+ "minLength": 1,
4336
+ "maxLength": 512
4337
+ },
4338
+ "namespace": {
4339
+ "type": "string",
4340
+ "minLength": 1,
4341
+ "maxLength": 512
4342
+ },
4343
+ "expires_at": {
4344
+ "type": "string",
4345
+ "format": "date-time"
4346
+ }
4347
+ }
4348
+ },
4349
+ "ContextEnvsPayload": {
4350
+ "title": "ContextEnvsPayload",
4351
+ "description": "Run \u7ea7\u73af\u5883\u53d8\u91cf\u5217\u8868\uff1b\u4ee5 key \u6807\u8bc6\u53d8\u91cf\uff0c\u6309 key \u5408\u5e76\uff0c\u4e0d\u8fdb\u5165\u6a21\u578b\u8f93\u5165\u3002",
4352
+ "type": "object",
4353
+ "additionalProperties": false,
4354
+ "required": ["env_variables"],
4355
+ "properties": {
4356
+ "env_variables": {
4357
+ "type": "array",
4358
+ "maxItems": 128,
4359
+ "items": {
4360
+ "type": "object",
4361
+ "additionalProperties": false,
4362
+ "required": ["key", "value"],
4363
+ "properties": {
4364
+ "key": {
4365
+ "type": "string",
4366
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
4367
+ },
4368
+ "value": {
4369
+ "type": "string",
4370
+ "pattern": "^[^\\u0000]*$"
4371
+ }
4372
+ }
4373
+ }
4374
+ }
4375
+ },
4376
+ "x-octo-unique-env-keys": true
4377
+ },
4378
+ "ContextMcpPayload": {
4379
+ "title": "ContextMcpPayload",
4380
+ "description": "Run-scoped MCP connection templates. Server names are dynamic keys; values are validated by transport. Variables resolve only in the execution environment, never in the model context.",
4381
+ "type": "object",
4382
+ "additionalProperties": false,
4383
+ "required": ["mcpServers"],
4384
+ "properties": {
4385
+ "mcpServers": {
4386
+ "$ref": "#/definitions/McpServers"
4387
+ }
4388
+ }
4389
+ },
4390
+ "ModelInputParts": {
4391
+ "type": "array",
4392
+ "minItems": 1,
4393
+ "maxItems": 128,
4394
+ "items": {
4395
+ "$ref": "#/definitions/ModelInputPart"
4396
+ }
4397
+ },
4398
+ "InvokeInputWire": {
4399
+ "type": "object",
4400
+ "additionalProperties": true,
4401
+ "required": ["inputs", "agentEnv"],
4402
+ "properties": {
4403
+ "sessionName": {
4404
+ "description": "Optional caller-owned nonblank display name of 1-256 Unicode code points, without C0/DEL/C1 controls; Core supplies a random UUID default without business naming policy.",
4405
+ "type": "string",
4406
+ "minLength": 1,
4407
+ "maxLength": 256,
4408
+ "not": {
4409
+ "anyOf": [
4410
+ {
4411
+ "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
4412
+ },
4413
+ {
4414
+ "pattern": "^[ \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$"
4415
+ }
4416
+ ]
4417
+ }
4418
+ },
4419
+ "sessionId": {
4420
+ "type": "string",
4421
+ "minLength": 1
4422
+ },
4423
+ "invocationId": {
4424
+ "type": "string",
4425
+ "minLength": 1
4426
+ },
4427
+ "runId": {
4428
+ "type": "string",
4429
+ "minLength": 1
4430
+ },
4431
+ "prompt": {
4432
+ "type": "string",
4433
+ "minLength": 1
4434
+ },
4435
+ "modelInput": {
4436
+ "type": "string",
4437
+ "minLength": 1
4438
+ },
4439
+ "freshFallbackModelInput": {
4440
+ "type": "string",
4441
+ "minLength": 1
4442
+ },
4443
+ "inputs": {
4444
+ "$ref": "#/definitions/ModelInputParts"
4445
+ },
4446
+ "protocol_mode": {
4447
+ "$ref": "#/definitions/ProtocolMode"
4448
+ },
4449
+ "providerSession": {
4450
+ "$ref": "#/definitions/ProviderSession"
4451
+ },
4452
+ "sessionGeneration": {
4453
+ "type": "integer",
4454
+ "minimum": 0,
4455
+ "maximum": 9007199254740991
4456
+ },
4457
+ "providerEpoch": {
4458
+ "type": "integer",
4459
+ "minimum": 0,
4460
+ "maximum": 9007199254740991
4461
+ },
4462
+ "runMetadata": {
4463
+ "type": "object",
4464
+ "additionalProperties": true
4465
+ },
4466
+ "continuityMode": {
4467
+ "enum": ["fresh", "continue"]
4468
+ },
4469
+ "freshFallbackModelInputParts": {
4470
+ "$ref": "#/definitions/ModelInputParts"
4471
+ },
4472
+ "freshFallbackImagesUnavailable": {
4473
+ "type": "boolean"
4474
+ },
4475
+ "agentEnv": {
4476
+ "$ref": "#/definitions/AgentEnv"
4477
+ }
4478
+ },
4479
+ "allOf": [
4480
+ {
4481
+ "not": {
4482
+ "required": ["protocolMode"]
4483
+ }
4484
+ },
4485
+ {
4486
+ "not": {
4487
+ "required": ["adapterType"]
4488
+ }
4489
+ },
4490
+ {
4491
+ "not": {
4492
+ "required": ["request"]
4493
+ }
4494
+ },
4495
+ {
4496
+ "not": {
4497
+ "required": ["options"]
4498
+ }
4499
+ },
4500
+ {
4501
+ "not": {
4502
+ "required": ["signal"]
4503
+ }
4504
+ },
4505
+ {
4506
+ "not": {
4507
+ "required": ["executionEnvOverrides"]
4508
+ }
4509
+ },
4510
+ {
4511
+ "properties": {
4512
+ "providerSession": {
4513
+ "properties": {
4514
+ "sessionId": {
4515
+ "pattern": "[^\\t\\n\\r\\f\\v \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"
4516
+ }
4517
+ }
4518
+ }
4519
+ }
4520
+ },
4521
+ {
4522
+ "not": {
4523
+ "required": ["contexts"]
4524
+ }
4525
+ },
4526
+ {
4527
+ "not": {
4528
+ "required": ["agentSource"]
4529
+ }
4530
+ },
4531
+ {
4532
+ "not": {
4533
+ "required": ["workdir"]
4534
+ }
4535
+ },
4536
+ {
4537
+ "not": {
4538
+ "required": ["controlInstructions"]
4539
+ }
4540
+ },
4541
+ {
4542
+ "not": {
4543
+ "required": ["approvalMode"]
4544
+ }
4545
+ },
4546
+ {
4547
+ "not": {
4548
+ "required": ["agentConfig"]
4549
+ }
4550
+ },
4551
+ {
4552
+ "not": {
4553
+ "required": ["runtimeLimits"]
4554
+ }
4555
+ }
4556
+ ],
4557
+ "x-octo-unicode-scalar-strings": true,
4558
+ "x-octo-max-json-depth": 32,
4559
+ "x-octo-max-json-bytes": 33554432
4560
+ },
4561
+ "KernelInvokeEnvironmentWire": {
4562
+ "type": "object",
4563
+ "additionalProperties": false,
4564
+ "required": [],
4565
+ "properties": {
4566
+ "executionEnvOverrides": {
4567
+ "$ref": "#/definitions/ContextEnvsPayload"
4568
+ }
4569
+ }
4570
+ },
4571
+ "InteractionResponseWire": {
4572
+ "type": "object",
4573
+ "additionalProperties": true,
4574
+ "required": ["interactionId", "outcome"],
4575
+ "properties": {
4576
+ "interactionId": {
4577
+ "type": "string",
4578
+ "minLength": 1,
4579
+ "maxLength": 191
4580
+ },
4581
+ "outcome": {
4582
+ "enum": ["accepted", "declined", "answered", "cancelled"]
4583
+ },
4584
+ "value": {}
4585
+ }
4586
+ },
4587
+ "HostedAdapterMetadataWire": {
4588
+ "type": "object",
4589
+ "additionalProperties": true,
4590
+ "required": ["type", "agentSources"],
4591
+ "properties": {
4592
+ "type": {
4593
+ "type": "string"
4594
+ },
4595
+ "agentSources": {
4596
+ "type": "array",
4597
+ "items": {
4598
+ "$ref": "#/definitions/AgentSource"
4599
+ }
4600
+ },
4601
+ "workspace": {
4602
+ "type": "boolean"
4603
+ },
4604
+ "protocolSupport": {
4605
+ "$ref": "#/definitions/AdapterProtocolSupport"
4606
+ },
4607
+ "processModel": {
4608
+ "type": "string"
4609
+ },
4610
+ "transport": {
4611
+ "type": "string"
4612
+ },
4613
+ "providerVersion": {
4614
+ "type": ["string", "null"]
4615
+ },
4616
+ "providerPath": {
4617
+ "type": ["string", "null"]
4618
+ },
4619
+ "available": {
4620
+ "type": "boolean"
4621
+ },
4622
+ "unavailableReason": {
4623
+ "type": ["string", "null"]
4624
+ }
4625
+ }
4626
+ },
4627
+ "AgentEnv": {
4628
+ "type": "object",
4629
+ "required": ["schema", "items"],
4630
+ "properties": {
4631
+ "schema": {
4632
+ "const": "octo.context-envelope/v3"
4633
+ },
4634
+ "items": {
4635
+ "type": "array",
4636
+ "maxItems": 32,
4637
+ "items": {
4638
+ "allOf": [
4639
+ {
4640
+ "$ref": "#/definitions/ContextItem"
4641
+ },
4642
+ {
4643
+ "anyOf": [
4644
+ {
4645
+ "properties": {
4646
+ "namespace": {
4647
+ "const": "octo.execution"
4648
+ }
4649
+ }
4650
+ },
4651
+ {
4652
+ "properties": {
4653
+ "namespace": {
4654
+ "const": "octo.security"
4655
+ },
4656
+ "name": {
4657
+ "const": "approval_policy"
4658
+ }
4659
+ }
4660
+ },
4661
+ {
4662
+ "properties": {
4663
+ "namespace": {
4664
+ "const": "octo.control"
4665
+ },
4666
+ "name": {
4667
+ "const": "instructions"
4668
+ }
4669
+ }
4670
+ }
4671
+ ]
4672
+ }
4673
+ ]
4674
+ }
4675
+ },
4676
+ "agentSource": {
4677
+ "$ref": "#/definitions/AgentSource"
4678
+ },
4679
+ "workdir": {
4680
+ "type": "string"
4681
+ },
4682
+ "controlInstructions": {
4683
+ "type": "string"
4684
+ },
4685
+ "approvalMode": {
4686
+ "$ref": "#/definitions/ApprovalMode"
4687
+ },
4688
+ "agentConfig": {
4689
+ "$ref": "#/definitions/AgentConfig"
4690
+ },
4691
+ "runtimeLimits": {
4692
+ "$ref": "#/definitions/RuntimeLimits"
4693
+ }
4694
+ },
4695
+ "additionalProperties": false,
4696
+ "allOf": [
4697
+ {
4698
+ "properties": {
4699
+ "agentConfig": {
4700
+ "properties": {
4701
+ "timeoutSeconds": {
4702
+ "not": {
4703
+ "maximum": 0
4704
+ }
4705
+ }
4706
+ }
4707
+ }
4708
+ }
4709
+ }
4710
+ ]
4711
+ }
4712
+ }
4713
+ }