@mininglamp-oss/octo-runtime 1.1.2 → 1.1.4

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 (140) hide show
  1. package/README.md +1 -1
  2. package/apps/cli/dist/build-info.json +2 -2
  3. package/apps/cli/dist/help.js +5 -1
  4. package/apps/cli/dist/main.js +32 -6
  5. package/apps/cli/dist/manifest.json +5 -0
  6. package/apps/cli/dist/openclaw.js +32 -8
  7. package/apps/cli/dist/output.js +3 -0
  8. package/apps/cli/dist/playboard.d.ts +5 -0
  9. package/apps/cli/dist/playboard.js +41 -13
  10. package/dist/public/dsh.d.ts +2 -0
  11. package/dist/public/dsh.js +1 -0
  12. package/dist/public/executor-kernel.d.ts +1 -1
  13. package/dist/public/executor-kernel.js +1 -1
  14. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +2 -2
  15. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  16. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +4 -0
  17. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +26 -2
  18. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  19. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  20. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  21. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  22. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +3 -3
  23. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/chunk-DYOJCNWF.js +854 -0
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/chunk-G5PWGRL5.js +209 -0
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/chunk-UOQRXV3Q.js +340 -0
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.d.ts +1 -0
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.js +16 -0
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +6 -0
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-client-LICENSE.txt +21 -0
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-protocol-LICENSE.txt +21 -0
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +35 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +14 -0
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +52 -0
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +306 -0
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.d.ts +11 -0
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +13 -0
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.d.ts +12 -0
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +7 -0
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +15 -0
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +2 -1
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +10 -5
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +214 -55
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +3 -0
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.d.ts +4 -0
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +24 -2
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/hourly-log.js +11 -3
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +12 -3
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +30 -8
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +4 -3
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +15 -2
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +29 -1
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.js +5 -5
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
  64. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  65. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +5 -1
  66. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +32 -6
  67. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +5 -0
  68. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +32 -8
  69. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +3 -0
  70. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.d.ts +5 -0
  71. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +41 -13
  72. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -23
  73. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/common.d.ts +2 -2
  74. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/common.js +16 -6
  75. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/systemd.js +9 -7
  76. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/windows-task.d.ts +4 -1
  77. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/windows-task.js +36 -11
  78. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  79. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +7 -2
  80. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  81. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +2 -1
  82. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +2 -1
  83. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js +2 -1
  84. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.d.ts +16 -1
  85. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +181 -27
  86. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/serve.js +9 -2
  87. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +8 -0
  88. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +17 -0
  89. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
  90. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +57 -1
  91. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +167 -25
  92. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +3 -1
  93. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +20 -1
  94. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +23 -0
  95. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +43 -0
  96. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +15 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +283 -0
  98. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +2 -0
  99. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +15 -1
  100. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +5 -1
  101. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +48 -13
  102. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +1 -1
  103. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +5 -3
  104. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +26 -1
  105. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +2 -1
  106. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +1 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +3 -2
  108. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +3 -2
  109. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +4 -0
  110. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +104 -3
  111. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +4 -3
  112. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +2 -0
  113. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +7 -0
  114. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +2 -1
  115. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +9 -0
  116. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +49 -17
  117. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +2 -1
  118. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +1 -1
  119. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +4 -2
  120. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +7 -0
  121. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +10 -7
  122. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
  123. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +141 -16
  124. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +3 -1
  125. package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
  126. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CXTvRGim.js +74 -0
  127. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
  128. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
  129. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +33 -9
  130. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.js +9 -4
  131. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  132. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +5 -0
  133. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +39 -1
  134. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +76 -7
  135. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  136. package/package.json +35 -29
  137. package/packages/octo-runtime-extra-channel-gateway/config-schema.json +57 -1
  138. package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +443 -56
  139. package/packages/octo-runtime-protocol/schema/protocol.schema.json +357 -37
  140. package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-DiPc-ipL.js +0 -74
@@ -9,8 +9,15 @@
9
9
  "additionalProperties": false,
10
10
  "required": ["jsonrpc", "id", "method", "params"],
11
11
  "properties": {
12
- "jsonrpc": { "const": "2.0" },
13
- "id": { "type": "string", "minLength": 1, "maxLength": 128 },
12
+ "jsonrpc": {
13
+ "const": "2.0"
14
+ },
15
+ "id": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 128,
19
+ "x-octo-max-utf8-bytes": 128
20
+ },
14
21
  "method": {
15
22
  "enum": [
16
23
  "status",
@@ -23,80 +30,87 @@
23
30
  "agent_run.native.respond"
24
31
  ]
25
32
  },
26
- "params": { "type": "object" }
33
+ "params": {
34
+ "type": "object"
35
+ }
27
36
  },
28
37
  "allOf": [
29
38
  {
30
- "if": { "properties": { "method": { "enum": ["status", "adapter.list"] } } },
31
- "then": { "properties": { "params": { "maxProperties": 0 } } }
39
+ "if": {
40
+ "properties": {
41
+ "method": {
42
+ "const": "status"
43
+ }
44
+ }
45
+ },
46
+ "then": {
47
+ "properties": {
48
+ "params": {
49
+ "$ref": "#/definitions/EmptyParams"
50
+ }
51
+ }
52
+ }
32
53
  },
33
54
  {
34
- "if": { "properties": { "method": { "const": "agent_run.invoke" } } },
55
+ "if": {
56
+ "properties": {
57
+ "method": {
58
+ "const": "adapter.list"
59
+ }
60
+ }
61
+ },
35
62
  "then": {
36
63
  "properties": {
37
64
  "params": {
38
- "type": "object",
39
- "additionalProperties": false,
40
- "required": ["input"],
41
- "properties": {
42
- "input": { "type": "object" },
43
- "executionEnvOverrides": { "type": "object" },
44
- "kernel_instance_id": { "type": "string", "minLength": 1 }
45
- }
65
+ "$ref": "#/definitions/EmptyParams"
46
66
  }
47
67
  }
48
68
  }
49
69
  },
50
70
  {
51
- "if": { "properties": { "method": { "const": "agent_run.get" } } },
71
+ "if": {
72
+ "properties": {
73
+ "method": {
74
+ "const": "agent_run.invoke"
75
+ }
76
+ }
77
+ },
52
78
  "then": {
53
79
  "properties": {
54
80
  "params": {
55
- "type": "object",
56
- "additionalProperties": false,
57
- "required": ["key"],
58
- "properties": {
59
- "key": {
60
- "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelLookupKey"
61
- },
62
- "kernel_instance_id": { "type": "string", "minLength": 1 }
63
- }
81
+ "$ref": "#/definitions/InvokeParams"
64
82
  }
65
83
  }
66
84
  }
67
85
  },
68
86
  {
69
- "if": { "properties": { "method": { "const": "agent_run.subscribe" } } },
87
+ "if": {
88
+ "properties": {
89
+ "method": {
90
+ "const": "agent_run.get"
91
+ }
92
+ }
93
+ },
70
94
  "then": {
71
95
  "properties": {
72
96
  "params": {
73
- "type": "object",
74
- "additionalProperties": false,
75
- "required": ["ref", "after_seq"],
76
- "properties": {
77
- "ref": {
78
- "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
79
- },
80
- "after_seq": { "type": "integer", "minimum": 0 }
81
- }
97
+ "$ref": "#/definitions/GetParams"
82
98
  }
83
99
  }
84
100
  }
85
101
  },
86
102
  {
87
- "if": { "properties": { "method": { "const": "agent_run.cancel" } } },
103
+ "if": {
104
+ "properties": {
105
+ "method": {
106
+ "const": "agent_run.subscribe"
107
+ }
108
+ }
109
+ },
88
110
  "then": {
89
111
  "properties": {
90
112
  "params": {
91
- "type": "object",
92
- "additionalProperties": false,
93
- "required": ["ref"],
94
- "properties": {
95
- "ref": {
96
- "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
97
- },
98
- "reason": { "type": "string" }
99
- }
113
+ "$ref": "#/definitions/SubscribeParams"
100
114
  }
101
115
  }
102
116
  }
@@ -104,28 +118,295 @@
104
118
  {
105
119
  "if": {
106
120
  "properties": {
107
- "method": { "enum": ["agent_run.respond", "agent_run.native.respond"] }
121
+ "method": {
122
+ "const": "agent_run.cancel"
123
+ }
108
124
  }
109
125
  },
110
126
  "then": {
111
127
  "properties": {
112
128
  "params": {
113
- "type": "object",
114
- "additionalProperties": false,
115
- "required": ["ref", "response"],
116
- "properties": {
117
- "ref": {
118
- "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
119
- },
120
- "response": { "type": "object" }
121
- }
129
+ "$ref": "#/definitions/CancelParams"
130
+ }
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "if": {
136
+ "properties": {
137
+ "method": {
138
+ "const": "agent_run.respond"
139
+ }
140
+ }
141
+ },
142
+ "then": {
143
+ "properties": {
144
+ "params": {
145
+ "$ref": "#/definitions/RespondParams"
146
+ }
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "if": {
152
+ "properties": {
153
+ "method": {
154
+ "const": "agent_run.native.respond"
155
+ }
156
+ }
157
+ },
158
+ "then": {
159
+ "properties": {
160
+ "params": {
161
+ "$ref": "#/definitions/RespondNativeParams"
122
162
  }
123
163
  }
124
164
  }
125
165
  }
126
166
  ]
127
167
  },
128
- "BusinessErrorCode": {
168
+ "EmptyParams": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": [],
172
+ "properties": {}
173
+ },
174
+ "EmptyResult": {
175
+ "type": "object",
176
+ "additionalProperties": false,
177
+ "required": [],
178
+ "properties": {}
179
+ },
180
+ "InvokeParams": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": ["input"],
184
+ "properties": {
185
+ "input": {
186
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/InvokeInputWire"
187
+ },
188
+ "executionEnvOverrides": {
189
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/ContextEnvsPayload"
190
+ },
191
+ "kernel_instance_id": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ }
195
+ }
196
+ },
197
+ "GetParams": {
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "required": ["key"],
201
+ "properties": {
202
+ "key": {
203
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelLookupKey"
204
+ },
205
+ "kernel_instance_id": {
206
+ "type": "string",
207
+ "minLength": 1
208
+ }
209
+ }
210
+ },
211
+ "SubscribeParams": {
212
+ "type": "object",
213
+ "additionalProperties": false,
214
+ "required": ["ref", "after_seq"],
215
+ "properties": {
216
+ "ref": {
217
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
218
+ },
219
+ "after_seq": {
220
+ "type": "integer",
221
+ "minimum": 0,
222
+ "maximum": 9007199254740991
223
+ }
224
+ }
225
+ },
226
+ "CancelParams": {
227
+ "type": "object",
228
+ "additionalProperties": false,
229
+ "required": ["ref"],
230
+ "properties": {
231
+ "ref": {
232
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
233
+ },
234
+ "reason": {
235
+ "type": "string"
236
+ }
237
+ }
238
+ },
239
+ "RespondParams": {
240
+ "type": "object",
241
+ "additionalProperties": false,
242
+ "required": ["ref", "response"],
243
+ "properties": {
244
+ "ref": {
245
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
246
+ },
247
+ "response": {
248
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/InteractionResponseWire"
249
+ }
250
+ }
251
+ },
252
+ "RespondNativeParams": {
253
+ "type": "object",
254
+ "additionalProperties": false,
255
+ "required": ["ref", "response"],
256
+ "properties": {
257
+ "ref": {
258
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunRef"
259
+ },
260
+ "response": {
261
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/NativeInteractionResponse"
262
+ }
263
+ }
264
+ },
265
+ "InvokeResult": {
266
+ "type": "object",
267
+ "additionalProperties": false,
268
+ "required": ["kernel_instance_id", "receipt"],
269
+ "properties": {
270
+ "kernel_instance_id": {
271
+ "type": "string",
272
+ "minLength": 1
273
+ },
274
+ "receipt": {
275
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostRunReceipt"
276
+ }
277
+ }
278
+ },
279
+ "CancelResult": {
280
+ "type": "object",
281
+ "additionalProperties": false,
282
+ "required": ["accepted"],
283
+ "properties": {
284
+ "accepted": {
285
+ "type": "boolean"
286
+ }
287
+ }
288
+ },
289
+ "SuccessResponse": {
290
+ "type": "object",
291
+ "additionalProperties": false,
292
+ "required": ["jsonrpc", "id", "result"],
293
+ "properties": {
294
+ "jsonrpc": {
295
+ "const": "2.0"
296
+ },
297
+ "id": {
298
+ "type": "string",
299
+ "minLength": 1
300
+ },
301
+ "result": {}
302
+ }
303
+ },
304
+ "ErrorResponse": {
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "required": ["jsonrpc", "id", "error"],
308
+ "properties": {
309
+ "jsonrpc": {
310
+ "const": "2.0"
311
+ },
312
+ "id": {
313
+ "type": ["string", "null"]
314
+ },
315
+ "error": {
316
+ "type": "object",
317
+ "additionalProperties": true,
318
+ "required": ["code", "message", "data"],
319
+ "properties": {
320
+ "code": {
321
+ "type": "integer"
322
+ },
323
+ "message": {
324
+ "type": "string"
325
+ },
326
+ "data": {
327
+ "type": "object",
328
+ "additionalProperties": true,
329
+ "required": ["code"],
330
+ "properties": {
331
+ "code": {
332
+ "type": "string",
333
+ "minLength": 1
334
+ }
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "EventNotification": {
342
+ "type": "object",
343
+ "additionalProperties": false,
344
+ "required": ["jsonrpc", "method", "params"],
345
+ "properties": {
346
+ "jsonrpc": {
347
+ "const": "2.0"
348
+ },
349
+ "method": {
350
+ "const": "agent_run.event"
351
+ },
352
+ "params": {
353
+ "type": "object",
354
+ "additionalProperties": false,
355
+ "required": ["kernel_instance_id", "run_id", "stream_id", "seq", "event"],
356
+ "properties": {
357
+ "kernel_instance_id": {
358
+ "type": "string",
359
+ "minLength": 1
360
+ },
361
+ "run_id": {
362
+ "type": "string",
363
+ "minLength": 1
364
+ },
365
+ "stream_id": {
366
+ "type": "string",
367
+ "minLength": 1
368
+ },
369
+ "seq": {
370
+ "type": "integer",
371
+ "minimum": 1,
372
+ "maximum": 9007199254740991
373
+ },
374
+ "event": {
375
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostFrame"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ },
381
+ "StreamErrorNotification": {
382
+ "type": "object",
383
+ "additionalProperties": false,
384
+ "required": ["jsonrpc", "method", "params"],
385
+ "properties": {
386
+ "jsonrpc": {
387
+ "const": "2.0"
388
+ },
389
+ "method": {
390
+ "const": "agent_run.stream_error"
391
+ },
392
+ "params": {
393
+ "type": "object",
394
+ "additionalProperties": false,
395
+ "required": ["code", "kernel_instance_id"],
396
+ "properties": {
397
+ "code": {
398
+ "type": "string",
399
+ "minLength": 1
400
+ },
401
+ "kernel_instance_id": {
402
+ "type": "string",
403
+ "minLength": 1
404
+ }
405
+ }
406
+ }
407
+ }
408
+ },
409
+ "KnownBusinessErrorCode": {
129
410
  "enum": [
130
411
  "KERNEL_UNAVAILABLE",
131
412
  "KERNEL_INSTANCE_CHANGED",
@@ -145,7 +426,113 @@
145
426
  "INVOKE_REQUEST_TOO_LARGE",
146
427
  "HOST_FRAME_TOO_LARGE"
147
428
  ]
429
+ },
430
+ "BusinessErrorCode": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "description": "Open error namespace; preserve unknown codes and data."
148
434
  }
149
435
  },
150
- "$ref": "#/definitions/Request"
436
+ "$ref": "#/definitions/Request",
437
+ "x-octo-methods": [
438
+ {
439
+ "method": "status",
440
+ "name": "Status",
441
+ "params": {
442
+ "$ref": "#/definitions/EmptyParams"
443
+ },
444
+ "result": {
445
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelStatus"
446
+ },
447
+ "stream": false,
448
+ "sideEffect": false
449
+ },
450
+ {
451
+ "method": "adapter.list",
452
+ "name": "List",
453
+ "params": {
454
+ "$ref": "#/definitions/EmptyParams"
455
+ },
456
+ "result": {
457
+ "type": "array",
458
+ "items": {
459
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/HostedAdapterMetadataWire"
460
+ }
461
+ },
462
+ "stream": false,
463
+ "sideEffect": false
464
+ },
465
+ {
466
+ "method": "agent_run.invoke",
467
+ "name": "Submit",
468
+ "params": {
469
+ "$ref": "#/definitions/InvokeParams"
470
+ },
471
+ "result": {
472
+ "$ref": "#/definitions/InvokeResult"
473
+ },
474
+ "stream": false,
475
+ "sideEffect": true
476
+ },
477
+ {
478
+ "method": "agent_run.get",
479
+ "name": "Get",
480
+ "params": {
481
+ "$ref": "#/definitions/GetParams"
482
+ },
483
+ "result": {
484
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunSnapshot"
485
+ },
486
+ "stream": false,
487
+ "sideEffect": false
488
+ },
489
+ {
490
+ "method": "agent_run.subscribe",
491
+ "name": "Subscribe",
492
+ "params": {
493
+ "$ref": "#/definitions/SubscribeParams"
494
+ },
495
+ "result": {
496
+ "$ref": "urn:mininglamp-oss:octo-runtime:protocol-schema#/definitions/KernelRunSnapshot"
497
+ },
498
+ "stream": true,
499
+ "sideEffect": false
500
+ },
501
+ {
502
+ "method": "agent_run.cancel",
503
+ "name": "Cancel",
504
+ "params": {
505
+ "$ref": "#/definitions/CancelParams"
506
+ },
507
+ "result": {
508
+ "$ref": "#/definitions/CancelResult"
509
+ },
510
+ "stream": false,
511
+ "sideEffect": true
512
+ },
513
+ {
514
+ "method": "agent_run.respond",
515
+ "name": "Respond",
516
+ "params": {
517
+ "$ref": "#/definitions/RespondParams"
518
+ },
519
+ "result": {
520
+ "$ref": "#/definitions/EmptyResult"
521
+ },
522
+ "stream": false,
523
+ "sideEffect": true
524
+ },
525
+ {
526
+ "method": "agent_run.native.respond",
527
+ "name": "RespondNative",
528
+ "params": {
529
+ "$ref": "#/definitions/RespondNativeParams"
530
+ },
531
+ "result": {
532
+ "$ref": "#/definitions/EmptyResult"
533
+ },
534
+ "stream": false,
535
+ "sideEffect": true
536
+ }
537
+ ]
151
538
  }