@nexum-hub/agent 0.0.0-stage → 0.0.1

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 (343) hide show
  1. package/README.md +129 -2
  2. package/contracts/v2/common.schema.json +262 -0
  3. package/contracts/v2/fixtures/inputs.json +244 -0
  4. package/contracts/v2/fixtures/wire.json +6493 -0
  5. package/contracts/v2/model/agent.close.input.schema.json +14 -0
  6. package/contracts/v2/model/agent.close.output.schema.json +101 -0
  7. package/contracts/v2/model/agent.list.input.schema.json +57 -0
  8. package/contracts/v2/model/agent.list.output.schema.json +220 -0
  9. package/contracts/v2/model/agent.open.input.schema.json +35 -0
  10. package/contracts/v2/model/agent.open.output.schema.json +41 -0
  11. package/contracts/v2/model/agent.run.cancel.input.schema.json +18 -0
  12. package/contracts/v2/model/agent.run.cancel.output.schema.json +100 -0
  13. package/contracts/v2/model/agent.run.get.input.schema.json +41 -0
  14. package/contracts/v2/model/agent.run.get.output.schema.json +100 -0
  15. package/contracts/v2/model/agent.run.input.input.schema.json +30 -0
  16. package/contracts/v2/model/agent.run.input.output.schema.json +100 -0
  17. package/contracts/v2/model/agent.run.list.input.schema.json +47 -0
  18. package/contracts/v2/model/agent.run.list.output.schema.json +41 -0
  19. package/contracts/v2/model/agent.run.start.input.schema.json +73 -0
  20. package/contracts/v2/model/agent.run.start.output.schema.json +100 -0
  21. package/contracts/v2/wire/bodies.schema.json +383 -0
  22. package/contracts/v2/wire/envelope.schema.json +2280 -0
  23. package/contracts/v2/wire/events.schema.json +242 -0
  24. package/contracts/v2/wire/maintenance.schema.json +308 -0
  25. package/contracts/v2/wire/operations.schema.json +1791 -0
  26. package/contracts/v2/wire/stream.schema.json +74 -0
  27. package/contracts/v2/wire/types.schema.json +2616 -0
  28. package/dist/adapters/mcp-http.d.ts +22 -0
  29. package/dist/adapters/mcp-http.js +472 -0
  30. package/dist/adapters/mcp-http.js.map +1 -0
  31. package/dist/adapters/mcp-oauth.d.ts +29 -0
  32. package/dist/adapters/mcp-oauth.js +653 -0
  33. package/dist/adapters/mcp-oauth.js.map +1 -0
  34. package/dist/adapters/mcp-wire.d.ts +21 -0
  35. package/dist/adapters/mcp-wire.js +307 -0
  36. package/dist/adapters/mcp-wire.js.map +1 -0
  37. package/dist/adapters/mcp.d.ts +56 -0
  38. package/dist/adapters/mcp.js +1989 -0
  39. package/dist/adapters/mcp.js.map +1 -0
  40. package/dist/adapters/openapi-http.d.ts +29 -0
  41. package/dist/adapters/openapi-http.js +504 -0
  42. package/dist/adapters/openapi-http.js.map +1 -0
  43. package/dist/adapters/openapi-request.d.ts +26 -0
  44. package/dist/adapters/openapi-request.js +597 -0
  45. package/dist/adapters/openapi-request.js.map +1 -0
  46. package/dist/adapters/openapi-schema.d.ts +22 -0
  47. package/dist/adapters/openapi-schema.js +471 -0
  48. package/dist/adapters/openapi-schema.js.map +1 -0
  49. package/dist/adapters/openapi-typegen.d.ts +11 -0
  50. package/dist/adapters/openapi-typegen.js +185 -0
  51. package/dist/adapters/openapi-typegen.js.map +1 -0
  52. package/dist/adapters/openapi-types.d.ts +99 -0
  53. package/dist/adapters/openapi-types.js +2 -0
  54. package/dist/adapters/openapi-types.js.map +1 -0
  55. package/dist/adapters/openapi.d.ts +7 -0
  56. package/dist/adapters/openapi.js +768 -0
  57. package/dist/adapters/openapi.js.map +1 -0
  58. package/dist/application/activation.d.ts +28 -0
  59. package/dist/application/activation.js +289 -0
  60. package/dist/application/activation.js.map +1 -0
  61. package/dist/application/attachments.d.ts +24 -0
  62. package/dist/application/attachments.js +87 -0
  63. package/dist/application/attachments.js.map +1 -0
  64. package/dist/application/authority.d.ts +32 -0
  65. package/dist/application/authority.js +213 -0
  66. package/dist/application/authority.js.map +1 -0
  67. package/dist/application/catalog.d.ts +11 -0
  68. package/dist/application/catalog.js +177 -0
  69. package/dist/application/catalog.js.map +1 -0
  70. package/dist/application/config.d.ts +24 -0
  71. package/dist/application/config.js +140 -0
  72. package/dist/application/config.js.map +1 -0
  73. package/dist/application/connection.d.ts +35 -0
  74. package/dist/application/connection.js +465 -0
  75. package/dist/application/connection.js.map +1 -0
  76. package/dist/application/data-plane.d.ts +35 -0
  77. package/dist/application/data-plane.js +437 -0
  78. package/dist/application/data-plane.js.map +1 -0
  79. package/dist/application/diagnostics.d.ts +4 -0
  80. package/dist/application/diagnostics.js +65 -0
  81. package/dist/application/diagnostics.js.map +1 -0
  82. package/dist/application/dispatcher.d.ts +4 -0
  83. package/dist/application/dispatcher.js +16 -0
  84. package/dist/application/dispatcher.js.map +1 -0
  85. package/dist/application/main.d.ts +12 -0
  86. package/dist/application/main.js +167 -0
  87. package/dist/application/main.js.map +1 -0
  88. package/dist/application/maintenance.d.ts +27 -0
  89. package/dist/application/maintenance.js +244 -0
  90. package/dist/application/maintenance.js.map +1 -0
  91. package/dist/application/packages.d.ts +25 -0
  92. package/dist/application/packages.js +208 -0
  93. package/dist/application/packages.js.map +1 -0
  94. package/dist/application/processes.d.ts +49 -0
  95. package/dist/application/processes.js +180 -0
  96. package/dist/application/processes.js.map +1 -0
  97. package/dist/application/run-view.d.ts +17 -0
  98. package/dist/application/run-view.js +286 -0
  99. package/dist/application/run-view.js.map +1 -0
  100. package/dist/application/runtime.d.ts +78 -0
  101. package/dist/application/runtime.js +1747 -0
  102. package/dist/application/runtime.js.map +1 -0
  103. package/dist/application/tasks.d.ts +38 -0
  104. package/dist/application/tasks.js +23 -0
  105. package/dist/application/tasks.js.map +1 -0
  106. package/dist/application/user-state.d.ts +20 -0
  107. package/dist/application/user-state.js +52 -0
  108. package/dist/application/user-state.js.map +1 -0
  109. package/dist/application/work-git.d.ts +14 -0
  110. package/dist/application/work-git.js +67 -0
  111. package/dist/application/work-git.js.map +1 -0
  112. package/dist/cli.d.ts +2 -0
  113. package/dist/cli.js +40 -0
  114. package/dist/cli.js.map +1 -0
  115. package/dist/contracts/caller.d.ts +51 -0
  116. package/dist/contracts/caller.js +95 -0
  117. package/dist/contracts/caller.js.map +1 -0
  118. package/dist/contracts/error-data.d.ts +6 -0
  119. package/dist/contracts/error-data.js +51 -0
  120. package/dist/contracts/error-data.js.map +1 -0
  121. package/dist/contracts/errors.d.ts +10 -0
  122. package/dist/contracts/errors.js +28 -0
  123. package/dist/contracts/errors.js.map +1 -0
  124. package/dist/contracts/json.d.ts +9 -0
  125. package/dist/contracts/json.js +104 -0
  126. package/dist/contracts/json.js.map +1 -0
  127. package/dist/contracts/types.d.ts +122 -0
  128. package/dist/contracts/types.js +19 -0
  129. package/dist/contracts/types.js.map +1 -0
  130. package/dist/contracts/validation.d.ts +4 -0
  131. package/dist/contracts/validation.js +157 -0
  132. package/dist/contracts/validation.js.map +1 -0
  133. package/dist/contracts/wire-validation.d.ts +9 -0
  134. package/dist/contracts/wire-validation.js +399 -0
  135. package/dist/contracts/wire-validation.js.map +1 -0
  136. package/dist/contracts/wire.d.ts +1083 -0
  137. package/dist/contracts/wire.js +62 -0
  138. package/dist/contracts/wire.js.map +1 -0
  139. package/dist/extension-api.d.ts +12 -0
  140. package/dist/extension-api.js +2 -0
  141. package/dist/extension-api.js.map +1 -0
  142. package/dist/extensions/api.d.ts +72 -0
  143. package/dist/extensions/api.js +2 -0
  144. package/dist/extensions/api.js.map +1 -0
  145. package/dist/extensions/host-requests.d.ts +23 -0
  146. package/dist/extensions/host-requests.js +60 -0
  147. package/dist/extensions/host-requests.js.map +1 -0
  148. package/dist/extensions/materials.d.ts +37 -0
  149. package/dist/extensions/materials.js +691 -0
  150. package/dist/extensions/materials.js.map +1 -0
  151. package/dist/extensions/package-loader.d.ts +28 -0
  152. package/dist/extensions/package-loader.js +177 -0
  153. package/dist/extensions/package-loader.js.map +1 -0
  154. package/dist/extensions/packages.d.ts +73 -0
  155. package/dist/extensions/packages.js +441 -0
  156. package/dist/extensions/packages.js.map +1 -0
  157. package/dist/extensions/registry.d.ts +92 -0
  158. package/dist/extensions/registry.js +1540 -0
  159. package/dist/extensions/registry.js.map +1 -0
  160. package/dist/extensions/resources.d.ts +105 -0
  161. package/dist/extensions/resources.js +595 -0
  162. package/dist/extensions/resources.js.map +1 -0
  163. package/dist/extensions/state.d.ts +25 -0
  164. package/dist/extensions/state.js +10 -0
  165. package/dist/extensions/state.js.map +1 -0
  166. package/dist/extensions/transfer.d.ts +81 -0
  167. package/dist/extensions/transfer.js +16 -0
  168. package/dist/extensions/transfer.js.map +1 -0
  169. package/dist/index.d.ts +7 -0
  170. package/dist/index.js +25 -0
  171. package/dist/index.js.map +1 -0
  172. package/dist/maintenance/configuration.d.ts +79 -0
  173. package/dist/maintenance/configuration.js +1503 -0
  174. package/dist/maintenance/configuration.js.map +1 -0
  175. package/dist/maintenance/credentials.d.ts +23 -0
  176. package/dist/maintenance/credentials.js +177 -0
  177. package/dist/maintenance/credentials.js.map +1 -0
  178. package/dist/maintenance/files.d.ts +2 -0
  179. package/dist/maintenance/files.js +40 -0
  180. package/dist/maintenance/files.js.map +1 -0
  181. package/dist/maintenance/npm.d.ts +71 -0
  182. package/dist/maintenance/npm.js +1013 -0
  183. package/dist/maintenance/npm.js.map +1 -0
  184. package/dist/maintenance/oauth.d.ts +45 -0
  185. package/dist/maintenance/oauth.js +686 -0
  186. package/dist/maintenance/oauth.js.map +1 -0
  187. package/dist/maintenance/requests.d.ts +347 -0
  188. package/dist/maintenance/requests.js +959 -0
  189. package/dist/maintenance/requests.js.map +1 -0
  190. package/dist/maintenance/work-git.d.ts +29 -0
  191. package/dist/maintenance/work-git.js +776 -0
  192. package/dist/maintenance/work-git.js.map +1 -0
  193. package/dist/process/backend.d.ts +54 -0
  194. package/dist/process/backend.js +39 -0
  195. package/dist/process/backend.js.map +1 -0
  196. package/dist/process/environment-windows.d.ts +15 -0
  197. package/dist/process/environment-windows.js +151 -0
  198. package/dist/process/environment-windows.js.map +1 -0
  199. package/dist/process/environment.d.ts +28 -0
  200. package/dist/process/environment.js +410 -0
  201. package/dist/process/environment.js.map +1 -0
  202. package/dist/process/launch.d.ts +31 -0
  203. package/dist/process/launch.js +281 -0
  204. package/dist/process/launch.js.map +1 -0
  205. package/dist/process/managed.d.ts +36 -0
  206. package/dist/process/managed.js +459 -0
  207. package/dist/process/managed.js.map +1 -0
  208. package/dist/process/output-log.d.ts +50 -0
  209. package/dist/process/output-log.js +552 -0
  210. package/dist/process/output-log.js.map +1 -0
  211. package/dist/process/pipes.d.ts +16 -0
  212. package/dist/process/pipes.js +588 -0
  213. package/dist/process/pipes.js.map +1 -0
  214. package/dist/process/pty.d.ts +22 -0
  215. package/dist/process/pty.js +512 -0
  216. package/dist/process/pty.js.map +1 -0
  217. package/dist/process/windows-conout-worker.d.ts +1 -0
  218. package/dist/process/windows-conout-worker.js +90 -0
  219. package/dist/process/windows-conout-worker.js.map +1 -0
  220. package/dist/process/windows-conout.d.ts +46 -0
  221. package/dist/process/windows-conout.js +140 -0
  222. package/dist/process/windows-conout.js.map +1 -0
  223. package/dist/process/windows-helper.d.ts +43 -0
  224. package/dist/process/windows-helper.js +255 -0
  225. package/dist/process/windows-helper.js.map +1 -0
  226. package/dist/process/windows-job.d.ts +39 -0
  227. package/dist/process/windows-job.js +224 -0
  228. package/dist/process/windows-job.js.map +1 -0
  229. package/dist/process/windows-pipes.d.ts +16 -0
  230. package/dist/process/windows-pipes.js +475 -0
  231. package/dist/process/windows-pipes.js.map +1 -0
  232. package/dist/results/artifacts.d.ts +118 -0
  233. package/dist/results/artifacts.js +873 -0
  234. package/dist/results/artifacts.js.map +1 -0
  235. package/dist/results/encoder.d.ts +57 -0
  236. package/dist/results/encoder.js +1179 -0
  237. package/dist/results/encoder.js.map +1 -0
  238. package/dist/results/mcp.d.ts +95 -0
  239. package/dist/results/mcp.js +656 -0
  240. package/dist/results/mcp.js.map +1 -0
  241. package/dist/results/media.d.ts +19 -0
  242. package/dist/results/media.js +301 -0
  243. package/dist/results/media.js.map +1 -0
  244. package/dist/results/normalize.d.ts +29 -0
  245. package/dist/results/normalize.js +464 -0
  246. package/dist/results/normalize.js.map +1 -0
  247. package/dist/runtime/control-scripts.d.ts +23 -0
  248. package/dist/runtime/control-scripts.js +242 -0
  249. package/dist/runtime/control-scripts.js.map +1 -0
  250. package/dist/runtime/engine.d.ts +177 -0
  251. package/dist/runtime/engine.js +1159 -0
  252. package/dist/runtime/engine.js.map +1 -0
  253. package/dist/runtime/globals.d.ts +1 -0
  254. package/dist/runtime/globals.js +31 -0
  255. package/dist/runtime/globals.js.map +1 -0
  256. package/dist/runtime/material-retention.d.ts +34 -0
  257. package/dist/runtime/material-retention.js +671 -0
  258. package/dist/runtime/material-retention.js.map +1 -0
  259. package/dist/runtime/modules.d.ts +50 -0
  260. package/dist/runtime/modules.js +320 -0
  261. package/dist/runtime/modules.js.map +1 -0
  262. package/dist/runtime/names.d.ts +2 -0
  263. package/dist/runtime/names.js +22 -0
  264. package/dist/runtime/names.js.map +1 -0
  265. package/dist/runtime/operations.d.ts +20 -0
  266. package/dist/runtime/operations.js +137 -0
  267. package/dist/runtime/operations.js.map +1 -0
  268. package/dist/runtime/paths.d.ts +3 -0
  269. package/dist/runtime/paths.js +38 -0
  270. package/dist/runtime/paths.js.map +1 -0
  271. package/dist/runtime/promises.d.ts +9 -0
  272. package/dist/runtime/promises.js +78 -0
  273. package/dist/runtime/promises.js.map +1 -0
  274. package/dist/runtime/retention.d.ts +88 -0
  275. package/dist/runtime/retention.js +735 -0
  276. package/dist/runtime/retention.js.map +1 -0
  277. package/dist/runtime/run-log.d.ts +30 -0
  278. package/dist/runtime/run-log.js +207 -0
  279. package/dist/runtime/run-log.js.map +1 -0
  280. package/dist/runtime/scripts.d.ts +84 -0
  281. package/dist/runtime/scripts.js +387 -0
  282. package/dist/runtime/scripts.js.map +1 -0
  283. package/dist/runtime/tasks.d.ts +54 -0
  284. package/dist/runtime/tasks.js +290 -0
  285. package/dist/runtime/tasks.js.map +1 -0
  286. package/dist/sdk/maintenance.d.ts +3 -0
  287. package/dist/sdk/maintenance.js +80 -0
  288. package/dist/sdk/maintenance.js.map +1 -0
  289. package/dist/sdk/output-extension.d.ts +3 -0
  290. package/dist/sdk/output-extension.js +44 -0
  291. package/dist/sdk/output-extension.js.map +1 -0
  292. package/dist/sdk/output.d.ts +52 -0
  293. package/dist/sdk/output.js +350 -0
  294. package/dist/sdk/output.js.map +1 -0
  295. package/dist/sdk/runtime.d.ts +3 -0
  296. package/dist/sdk/runtime.js +26 -0
  297. package/dist/sdk/runtime.js.map +1 -0
  298. package/dist/sdk/sh.d.ts +3 -0
  299. package/dist/sdk/sh.js +384 -0
  300. package/dist/sdk/sh.js.map +1 -0
  301. package/dist/sdk/state.d.ts +2 -0
  302. package/dist/sdk/state.js +69 -0
  303. package/dist/sdk/state.js.map +1 -0
  304. package/dist/sdk/transfer.d.ts +3 -0
  305. package/dist/sdk/transfer.js +141 -0
  306. package/dist/sdk/transfer.js.map +1 -0
  307. package/dist/services/extensions.d.ts +19 -0
  308. package/dist/services/extensions.js +183 -0
  309. package/dist/services/extensions.js.map +1 -0
  310. package/dist/services/state.d.ts +37 -0
  311. package/dist/services/state.js +125 -0
  312. package/dist/services/state.js.map +1 -0
  313. package/dist/services/transfer.d.ts +86 -0
  314. package/dist/services/transfer.js +948 -0
  315. package/dist/services/transfer.js.map +1 -0
  316. package/dist/storage/schema.d.ts +8 -0
  317. package/dist/storage/schema.js +241 -0
  318. package/dist/storage/schema.js.map +1 -0
  319. package/dist/storage/sqlite.d.ts +241 -0
  320. package/dist/storage/sqlite.js +1855 -0
  321. package/dist/storage/sqlite.js.map +1 -0
  322. package/dist/storage/transfers.d.ts +90 -0
  323. package/dist/storage/transfers.js +2 -0
  324. package/dist/storage/transfers.js.map +1 -0
  325. package/dist/transfer/io.d.ts +74 -0
  326. package/dist/transfer/io.js +425 -0
  327. package/dist/transfer/io.js.map +1 -0
  328. package/dist/transfer/offers.d.ts +72 -0
  329. package/dist/transfer/offers.js +380 -0
  330. package/dist/transfer/offers.js.map +1 -0
  331. package/dist/transfer/stream-slots.d.ts +12 -0
  332. package/dist/transfer/stream-slots.js +28 -0
  333. package/dist/transfer/stream-slots.js.map +1 -0
  334. package/dist/work/catalog.d.ts +43 -0
  335. package/dist/work/catalog.js +198 -0
  336. package/dist/work/catalog.js.map +1 -0
  337. package/dist/work/discovery.d.ts +70 -0
  338. package/dist/work/discovery.js +465 -0
  339. package/dist/work/discovery.js.map +1 -0
  340. package/dist/work/service.d.ts +83 -0
  341. package/dist/work/service.js +703 -0
  342. package/dist/work/service.js.map +1 -0
  343. package/package.json +66 -4
@@ -0,0 +1,1791 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.nexum.local/agent/v2/wire/operations.schema.json",
4
+ "$defs": {
5
+ "agent.project.resolve.input": {
6
+ "type": "object",
7
+ "properties": {
8
+ "path": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "maxLength": 8192
12
+ }
13
+ },
14
+ "required": ["path"],
15
+ "additionalProperties": false
16
+ },
17
+ "agent.project.resolve.output": {
18
+ "type": "object",
19
+ "properties": {
20
+ "root": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 8192
24
+ },
25
+ "name": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 256
29
+ }
30
+ },
31
+ "required": ["root", "name"],
32
+ "additionalProperties": false
33
+ },
34
+ "agent.open.input": {
35
+ "type": "object",
36
+ "properties": {
37
+ "agentId": {
38
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
39
+ },
40
+ "projectId": {
41
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
42
+ },
43
+ "path": {
44
+ "type": "string",
45
+ "minLength": 1,
46
+ "maxLength": 8192
47
+ },
48
+ "contextId": {
49
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
50
+ }
51
+ },
52
+ "required": ["agentId"],
53
+ "additionalProperties": false,
54
+ "not": {
55
+ "required": ["projectId", "path"],
56
+ "properties": {
57
+ "projectId": {},
58
+ "path": {}
59
+ }
60
+ }
61
+ },
62
+ "agent.open.output": {
63
+ "type": "object",
64
+ "properties": {
65
+ "contextId": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "maxLength": 256
69
+ },
70
+ "revision": {
71
+ "type": "integer",
72
+ "minimum": 1,
73
+ "maximum": 9007199254740991
74
+ },
75
+ "observedAt": {
76
+ "type": "string",
77
+ "format": "date-time",
78
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
79
+ },
80
+ "pwd": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 8192
84
+ },
85
+ "agent": {
86
+ "type": "object"
87
+ },
88
+ "project": {
89
+ "anyOf": [
90
+ {
91
+ "type": "object"
92
+ },
93
+ {
94
+ "type": "null"
95
+ }
96
+ ]
97
+ },
98
+ "warnings": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "object"
102
+ },
103
+ "maxItems": 1000
104
+ }
105
+ },
106
+ "required": [
107
+ "contextId",
108
+ "revision",
109
+ "observedAt",
110
+ "pwd",
111
+ "agent",
112
+ "project",
113
+ "warnings"
114
+ ],
115
+ "additionalProperties": false
116
+ },
117
+ "agent.close.input": {
118
+ "type": "object",
119
+ "properties": {
120
+ "contextId": {
121
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
122
+ }
123
+ },
124
+ "required": ["contextId"],
125
+ "additionalProperties": false
126
+ },
127
+ "agent.close.output": {
128
+ "type": "object",
129
+ "properties": {
130
+ "contextId": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "maxLength": 256
134
+ },
135
+ "projectId": {
136
+ "anyOf": [
137
+ {
138
+ "type": "string",
139
+ "minLength": 1,
140
+ "maxLength": 256
141
+ },
142
+ {
143
+ "type": "null"
144
+ }
145
+ ]
146
+ },
147
+ "agentConfirmed": {
148
+ "const": true
149
+ },
150
+ "affectedContextIds": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 256
156
+ },
157
+ "maxItems": 1000
158
+ },
159
+ "closedAt": {
160
+ "type": "string",
161
+ "format": "date-time",
162
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
163
+ }
164
+ },
165
+ "required": [
166
+ "contextId",
167
+ "projectId",
168
+ "agentConfirmed",
169
+ "affectedContextIds",
170
+ "closedAt"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ "agent.run.start.input": {
175
+ "type": "object",
176
+ "properties": {
177
+ "contextId": {
178
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
179
+ },
180
+ "script": {
181
+ "type": "string",
182
+ "minLength": 1,
183
+ "maxLength": 1048576
184
+ },
185
+ "scriptName": {
186
+ "type": "string",
187
+ "minLength": 1,
188
+ "maxLength": 256
189
+ },
190
+ "replayRunId": {
191
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
192
+ },
193
+ "input": {},
194
+ "attachments": {
195
+ "type": "array",
196
+ "items": {
197
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Attachment"
198
+ },
199
+ "maxItems": 20
200
+ },
201
+ "requestId": {
202
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/requestId"
203
+ },
204
+ "pwd": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 8192
208
+ },
209
+ "waitMs": {
210
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/waitMs"
211
+ },
212
+ "timeoutMs": {
213
+ "type": "integer",
214
+ "minimum": 1,
215
+ "maximum": 9007199254740991
216
+ },
217
+ "submission": {
218
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Submission"
219
+ }
220
+ },
221
+ "required": ["contextId"],
222
+ "additionalProperties": false,
223
+ "oneOf": [
224
+ {
225
+ "required": ["script"],
226
+ "properties": {
227
+ "script": {}
228
+ }
229
+ },
230
+ {
231
+ "required": ["scriptName"],
232
+ "properties": {
233
+ "scriptName": {}
234
+ }
235
+ },
236
+ {
237
+ "required": ["replayRunId"],
238
+ "properties": {
239
+ "replayRunId": {}
240
+ }
241
+ }
242
+ ],
243
+ "dependentRequired": {
244
+ "requestId": ["submission"],
245
+ "submission": ["requestId"]
246
+ }
247
+ },
248
+ "agent.run.start.output": {
249
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/RunView"
250
+ },
251
+ "agent.run.get.input": {
252
+ "type": "object",
253
+ "properties": {
254
+ "agentId": {
255
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
256
+ },
257
+ "runId": {
258
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
259
+ },
260
+ "requestId": {
261
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/requestId"
262
+ },
263
+ "waitMs": {
264
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/waitMs"
265
+ }
266
+ },
267
+ "required": ["agentId"],
268
+ "additionalProperties": false,
269
+ "oneOf": [
270
+ {
271
+ "required": ["runId"],
272
+ "properties": {
273
+ "runId": {}
274
+ }
275
+ },
276
+ {
277
+ "required": ["requestId"],
278
+ "properties": {
279
+ "requestId": {}
280
+ }
281
+ }
282
+ ]
283
+ },
284
+ "agent.run.get.output": {
285
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/RunView"
286
+ },
287
+ "agent.run.input.input": {
288
+ "type": "object",
289
+ "properties": {
290
+ "agentId": {
291
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
292
+ },
293
+ "runId": {
294
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
295
+ },
296
+ "waitId": {
297
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
298
+ },
299
+ "input": {},
300
+ "attachments": {
301
+ "type": "array",
302
+ "items": {
303
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Attachment"
304
+ },
305
+ "maxItems": 20
306
+ },
307
+ "waitMs": {
308
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/waitMs"
309
+ }
310
+ },
311
+ "required": ["agentId", "runId", "waitId", "input"],
312
+ "additionalProperties": false
313
+ },
314
+ "agent.run.input.output": {
315
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/RunView"
316
+ },
317
+ "agent.run.cancel.input": {
318
+ "type": "object",
319
+ "properties": {
320
+ "agentId": {
321
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
322
+ },
323
+ "runId": {
324
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
325
+ }
326
+ },
327
+ "required": ["agentId", "runId"],
328
+ "additionalProperties": false
329
+ },
330
+ "agent.run.cancel.output": {
331
+ "type": "object",
332
+ "properties": {
333
+ "accepted": {
334
+ "type": "boolean"
335
+ },
336
+ "view": {
337
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/RunView"
338
+ }
339
+ },
340
+ "required": ["accepted", "view"],
341
+ "additionalProperties": false
342
+ },
343
+ "agent.run.list.input": {
344
+ "type": "object",
345
+ "properties": {
346
+ "agentId": {
347
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
348
+ },
349
+ "status": {
350
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/status"
351
+ },
352
+ "scriptName": {
353
+ "type": "string",
354
+ "minLength": 1,
355
+ "maxLength": 256
356
+ },
357
+ "source": {
358
+ "enum": ["inline", "named", "history"]
359
+ },
360
+ "projectId": {
361
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
362
+ },
363
+ "contextId": {
364
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
365
+ },
366
+ "from": {
367
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/time"
368
+ },
369
+ "to": {
370
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/time"
371
+ },
372
+ "limit": {
373
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/limit"
374
+ },
375
+ "cursor": {
376
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/cursor"
377
+ }
378
+ },
379
+ "required": ["agentId"],
380
+ "additionalProperties": false
381
+ },
382
+ "agent.run.list.output": {
383
+ "type": "object",
384
+ "properties": {
385
+ "runs": {
386
+ "type": "array",
387
+ "items": {
388
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Run"
389
+ },
390
+ "maxItems": 100
391
+ },
392
+ "nextCursor": {
393
+ "anyOf": [
394
+ {
395
+ "type": "string",
396
+ "minLength": 1,
397
+ "maxLength": 4096
398
+ },
399
+ {
400
+ "type": "null"
401
+ }
402
+ ]
403
+ },
404
+ "observedAt": {
405
+ "type": "string",
406
+ "format": "date-time",
407
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
408
+ }
409
+ },
410
+ "required": ["runs", "nextCursor", "observedAt"],
411
+ "additionalProperties": false
412
+ },
413
+ "agent.resources.list.input": {
414
+ "type": "object",
415
+ "properties": {
416
+ "cursor": {
417
+ "type": "string",
418
+ "minLength": 1,
419
+ "maxLength": 4096
420
+ },
421
+ "limit": {
422
+ "type": "integer",
423
+ "minimum": 1,
424
+ "maximum": 100
425
+ }
426
+ },
427
+ "required": [],
428
+ "additionalProperties": false
429
+ },
430
+ "agent.resources.list.output": {
431
+ "oneOf": [
432
+ {
433
+ "type": "object",
434
+ "properties": {
435
+ "resources": {
436
+ "type": "array",
437
+ "items": {
438
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/ResourceEntry"
439
+ },
440
+ "maxItems": 100
441
+ },
442
+ "nextCursor": {
443
+ "anyOf": [
444
+ {
445
+ "type": "string",
446
+ "minLength": 1,
447
+ "maxLength": 4096
448
+ },
449
+ {
450
+ "type": "null"
451
+ }
452
+ ]
453
+ }
454
+ },
455
+ "required": ["resources", "nextCursor"],
456
+ "additionalProperties": false
457
+ },
458
+ {
459
+ "type": "object",
460
+ "properties": {
461
+ "body": {
462
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
463
+ }
464
+ },
465
+ "required": ["body"],
466
+ "additionalProperties": false
467
+ }
468
+ ]
469
+ },
470
+ "agent.resources.read.input": {
471
+ "type": "object",
472
+ "properties": {
473
+ "uri": {
474
+ "type": "string",
475
+ "minLength": 1,
476
+ "maxLength": 4096,
477
+ "pattern": "^nexum://agents/[^/?#]+/(?:resources|mcp)/"
478
+ },
479
+ "maxBytes": {
480
+ "type": "integer",
481
+ "minimum": 1,
482
+ "maximum": 9007199254740991
483
+ }
484
+ },
485
+ "required": ["uri", "maxBytes"],
486
+ "additionalProperties": false
487
+ },
488
+ "agent.resources.read.output": {
489
+ "oneOf": [
490
+ {
491
+ "type": "object",
492
+ "properties": {
493
+ "contents": {
494
+ "type": "array",
495
+ "items": {
496
+ "oneOf": [
497
+ {
498
+ "type": "object",
499
+ "properties": {
500
+ "uri": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 4096,
504
+ "pattern": "^nexum://agents/[^/?#]+/(?:resources|mcp)/"
505
+ },
506
+ "mimeType": {
507
+ "type": "string",
508
+ "minLength": 3,
509
+ "maxLength": 256,
510
+ "pattern": "^[^\\s/;]+/[^\\s;]+(?:;[^\\r\\n]+)?$"
511
+ },
512
+ "text": {
513
+ "type": "string",
514
+ "maxLength": 1048576
515
+ }
516
+ },
517
+ "required": ["uri", "mimeType", "text"],
518
+ "additionalProperties": false
519
+ },
520
+ {
521
+ "type": "object",
522
+ "properties": {
523
+ "uri": {
524
+ "type": "string",
525
+ "minLength": 1,
526
+ "maxLength": 4096,
527
+ "pattern": "^nexum://agents/[^/?#]+/(?:resources|mcp)/"
528
+ },
529
+ "mimeType": {
530
+ "type": "string",
531
+ "minLength": 3,
532
+ "maxLength": 256,
533
+ "pattern": "^[^\\s/;]+/[^\\s;]+(?:;[^\\r\\n]+)?$"
534
+ },
535
+ "stream": {
536
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
537
+ }
538
+ },
539
+ "required": ["uri", "mimeType", "stream"],
540
+ "additionalProperties": false
541
+ }
542
+ ]
543
+ },
544
+ "maxItems": 100
545
+ }
546
+ },
547
+ "required": ["contents"],
548
+ "additionalProperties": false
549
+ },
550
+ {
551
+ "type": "object",
552
+ "properties": {
553
+ "body": {
554
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
555
+ }
556
+ },
557
+ "required": ["body"],
558
+ "additionalProperties": false
559
+ }
560
+ ]
561
+ },
562
+ "agent.context.read.input": {
563
+ "type": "object",
564
+ "properties": {
565
+ "contextId": {
566
+ "type": "string",
567
+ "minLength": 1,
568
+ "maxLength": 256
569
+ },
570
+ "revision": {
571
+ "type": "integer",
572
+ "minimum": 1,
573
+ "maximum": 9007199254740991
574
+ },
575
+ "itemId": {
576
+ "type": "string",
577
+ "minLength": 1,
578
+ "maxLength": 256
579
+ },
580
+ "cursor": {
581
+ "type": "string",
582
+ "minLength": 1,
583
+ "maxLength": 4096
584
+ },
585
+ "maxBytes": {
586
+ "type": "integer",
587
+ "minimum": 1,
588
+ "maximum": 9007199254740991
589
+ },
590
+ "relativePath": {
591
+ "type": "string",
592
+ "maxLength": 8192
593
+ },
594
+ "includeEntries": {
595
+ "type": "boolean"
596
+ },
597
+ "startLine": {
598
+ "type": "integer",
599
+ "minimum": 1,
600
+ "maximum": 9007199254740991
601
+ },
602
+ "maxLines": {
603
+ "type": "integer",
604
+ "minimum": 1,
605
+ "maximum": 1000
606
+ }
607
+ },
608
+ "required": ["contextId", "revision", "itemId", "maxBytes"],
609
+ "additionalProperties": false,
610
+ "not": {
611
+ "properties": {
612
+ "cursor": {},
613
+ "startLine": {}
614
+ },
615
+ "required": ["cursor", "startLine"]
616
+ }
617
+ },
618
+ "agent.context.read.output": {
619
+ "type": "object",
620
+ "properties": {
621
+ "contextId": {
622
+ "type": "string",
623
+ "minLength": 1,
624
+ "maxLength": 256
625
+ },
626
+ "revision": {
627
+ "type": "integer",
628
+ "minimum": 1,
629
+ "maximum": 9007199254740991
630
+ },
631
+ "itemId": {
632
+ "type": "string",
633
+ "minLength": 1,
634
+ "maxLength": 256
635
+ },
636
+ "contentRevision": {
637
+ "type": "string",
638
+ "minLength": 1,
639
+ "maxLength": 256
640
+ },
641
+ "text": {
642
+ "type": "string",
643
+ "maxLength": 1048576
644
+ },
645
+ "complete": {
646
+ "type": "boolean"
647
+ },
648
+ "nextCursor": {
649
+ "anyOf": [
650
+ {
651
+ "type": "string",
652
+ "minLength": 1,
653
+ "maxLength": 4096
654
+ },
655
+ {
656
+ "type": "null"
657
+ }
658
+ ]
659
+ },
660
+ "entries": {
661
+ "type": "array",
662
+ "maxItems": 1000,
663
+ "items": {
664
+ "type": "object",
665
+ "properties": {
666
+ "displayPath": {
667
+ "type": "string",
668
+ "minLength": 1,
669
+ "maxLength": 8192
670
+ },
671
+ "kind": {
672
+ "enum": ["file", "directory"]
673
+ }
674
+ },
675
+ "required": ["displayPath", "kind"],
676
+ "additionalProperties": false
677
+ }
678
+ },
679
+ "startLine": {
680
+ "type": "integer",
681
+ "minimum": 1,
682
+ "maximum": 9007199254740991
683
+ },
684
+ "endLine": {
685
+ "type": "integer",
686
+ "minimum": 1,
687
+ "maximum": 9007199254740991
688
+ },
689
+ "startsMidLine": {
690
+ "type": "boolean"
691
+ },
692
+ "endsMidLine": {
693
+ "type": "boolean"
694
+ },
695
+ "treeTruncated": {
696
+ "type": "boolean"
697
+ }
698
+ },
699
+ "required": [
700
+ "contextId",
701
+ "revision",
702
+ "itemId",
703
+ "contentRevision",
704
+ "text",
705
+ "complete",
706
+ "nextCursor"
707
+ ],
708
+ "additionalProperties": false,
709
+ "dependentRequired": {
710
+ "startLine": ["endLine", "startsMidLine", "endsMidLine"],
711
+ "endLine": ["startLine", "startsMidLine", "endsMidLine"],
712
+ "startsMidLine": ["startLine", "endLine", "endsMidLine"],
713
+ "endsMidLine": ["startLine", "endLine", "startsMidLine"]
714
+ }
715
+ },
716
+ "transfer.prepare.input": {
717
+ "type": "object",
718
+ "properties": {
719
+ "transferId": {
720
+ "type": "string",
721
+ "minLength": 1,
722
+ "maxLength": 256
723
+ },
724
+ "resourceId": {
725
+ "type": "string",
726
+ "minLength": 1,
727
+ "maxLength": 256
728
+ },
729
+ "runId": {
730
+ "type": "string",
731
+ "minLength": 1,
732
+ "maxLength": 256
733
+ },
734
+ "contextId": {
735
+ "type": "string",
736
+ "minLength": 1,
737
+ "maxLength": 256
738
+ },
739
+ "projectId": {
740
+ "anyOf": [
741
+ {
742
+ "type": "string",
743
+ "minLength": 1,
744
+ "maxLength": 256
745
+ },
746
+ {
747
+ "type": "null"
748
+ }
749
+ ]
750
+ },
751
+ "direction": {
752
+ "enum": ["upload", "download"]
753
+ },
754
+ "claimDeadlineAt": {
755
+ "type": "string",
756
+ "format": "date-time",
757
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
758
+ },
759
+ "maxBytes": {
760
+ "type": "integer",
761
+ "minimum": 1,
762
+ "maximum": 9007199254740991
763
+ },
764
+ "target": {
765
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TransferTarget"
766
+ }
767
+ },
768
+ "required": [
769
+ "transferId",
770
+ "resourceId",
771
+ "runId",
772
+ "contextId",
773
+ "projectId",
774
+ "direction",
775
+ "claimDeadlineAt",
776
+ "maxBytes",
777
+ "target"
778
+ ],
779
+ "additionalProperties": false
780
+ },
781
+ "transfer.prepare.output": {
782
+ "type": "object",
783
+ "properties": {
784
+ "transferId": {
785
+ "type": "string",
786
+ "minLength": 1,
787
+ "maxLength": 256
788
+ },
789
+ "request": {
790
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TransferRequest"
791
+ }
792
+ },
793
+ "required": ["transferId", "request"],
794
+ "additionalProperties": false
795
+ },
796
+ "transfer.revoke.input": {
797
+ "type": "object",
798
+ "properties": {
799
+ "transferId": {
800
+ "type": "string",
801
+ "minLength": 1,
802
+ "maxLength": 256
803
+ },
804
+ "reason": {
805
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TransferStop"
806
+ }
807
+ },
808
+ "required": ["transferId", "reason"],
809
+ "additionalProperties": false
810
+ },
811
+ "transfer.revoke.output": {
812
+ "type": "object",
813
+ "properties": {
814
+ "transferId": {
815
+ "type": "string",
816
+ "minLength": 1,
817
+ "maxLength": 256
818
+ },
819
+ "closed": {
820
+ "const": true
821
+ }
822
+ },
823
+ "required": ["transferId", "closed"],
824
+ "additionalProperties": false
825
+ },
826
+ "agent.transfer.reserveClaim.input": {
827
+ "type": "object",
828
+ "properties": {
829
+ "transferId": {
830
+ "type": "string",
831
+ "minLength": 1,
832
+ "maxLength": 256
833
+ }
834
+ },
835
+ "required": ["transferId"],
836
+ "additionalProperties": false
837
+ },
838
+ "agent.transfer.reserveClaim.output": {
839
+ "type": "object",
840
+ "properties": {
841
+ "transferId": {
842
+ "type": "string",
843
+ "minLength": 1,
844
+ "maxLength": 256
845
+ },
846
+ "reservationId": {
847
+ "type": "string",
848
+ "minLength": 1,
849
+ "maxLength": 256
850
+ },
851
+ "expiresAt": {
852
+ "type": "string",
853
+ "format": "date-time",
854
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
855
+ },
856
+ "direction": {
857
+ "enum": ["upload", "download"]
858
+ },
859
+ "maxBytes": {
860
+ "type": "integer",
861
+ "minimum": 1,
862
+ "maximum": 9007199254740991
863
+ }
864
+ },
865
+ "required": [
866
+ "transferId",
867
+ "reservationId",
868
+ "expiresAt",
869
+ "direction",
870
+ "maxBytes"
871
+ ],
872
+ "additionalProperties": false
873
+ },
874
+ "agent.transfer.commitClaim.input": {
875
+ "type": "object",
876
+ "properties": {
877
+ "transferId": {
878
+ "type": "string",
879
+ "minLength": 1,
880
+ "maxLength": 256
881
+ },
882
+ "reservationId": {
883
+ "type": "string",
884
+ "minLength": 1,
885
+ "maxLength": 256
886
+ },
887
+ "stream": {
888
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/StreamRef"
889
+ },
890
+ "contentLength": {
891
+ "type": "integer",
892
+ "minimum": 0,
893
+ "maximum": 9007199254740991
894
+ }
895
+ },
896
+ "required": ["transferId", "reservationId", "stream"],
897
+ "additionalProperties": false
898
+ },
899
+ "agent.transfer.commitClaim.output": {
900
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TransferSnapshot"
901
+ },
902
+ "agent.transfer.releaseReservation.input": {
903
+ "type": "object",
904
+ "properties": {
905
+ "transferId": {
906
+ "type": "string",
907
+ "minLength": 1,
908
+ "maxLength": 256
909
+ },
910
+ "reservationId": {
911
+ "type": "string",
912
+ "minLength": 1,
913
+ "maxLength": 256
914
+ }
915
+ },
916
+ "required": ["transferId", "reservationId"],
917
+ "additionalProperties": false
918
+ },
919
+ "agent.transfer.releaseReservation.output": {
920
+ "type": "object",
921
+ "properties": {
922
+ "transferId": {
923
+ "type": "string",
924
+ "minLength": 1,
925
+ "maxLength": 256
926
+ },
927
+ "released": {
928
+ "const": true
929
+ }
930
+ },
931
+ "required": ["transferId", "released"],
932
+ "additionalProperties": false
933
+ },
934
+ "authorization.refresh.input": {
935
+ "type": "object",
936
+ "properties": {
937
+ "runId": {
938
+ "type": "string",
939
+ "minLength": 1,
940
+ "maxLength": 256
941
+ },
942
+ "maintenanceRequestId": {
943
+ "type": "string",
944
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
945
+ },
946
+ "transferId": {
947
+ "type": "string",
948
+ "pattern": "^tr_[0-9a-f]{32}$"
949
+ },
950
+ "streamId": {
951
+ "type": "string",
952
+ "minLength": 1,
953
+ "maxLength": 256
954
+ },
955
+ "originInvocationId": {
956
+ "type": "string",
957
+ "minLength": 1,
958
+ "maxLength": 256
959
+ }
960
+ },
961
+ "required": ["originInvocationId"],
962
+ "additionalProperties": false,
963
+ "oneOf": [
964
+ {
965
+ "required": ["runId"],
966
+ "properties": {
967
+ "runId": {}
968
+ }
969
+ },
970
+ {
971
+ "required": ["maintenanceRequestId"],
972
+ "properties": {
973
+ "maintenanceRequestId": {}
974
+ }
975
+ },
976
+ {
977
+ "required": ["transferId"],
978
+ "properties": {
979
+ "transferId": {}
980
+ }
981
+ },
982
+ {
983
+ "required": ["streamId"],
984
+ "properties": {
985
+ "streamId": {}
986
+ }
987
+ }
988
+ ]
989
+ },
990
+ "authorization.refresh.output": {
991
+ "type": "object",
992
+ "properties": {
993
+ "authorization": {
994
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Authorization"
995
+ }
996
+ },
997
+ "required": ["authorization"],
998
+ "additionalProperties": false
999
+ },
1000
+ "host.request.input": {
1001
+ "type": "object",
1002
+ "properties": {
1003
+ "runId": {
1004
+ "type": "string",
1005
+ "minLength": 1,
1006
+ "maxLength": 256
1007
+ },
1008
+ "originInvocationId": {
1009
+ "type": "string",
1010
+ "minLength": 1,
1011
+ "maxLength": 256
1012
+ },
1013
+ "hostRef": {
1014
+ "type": "string",
1015
+ "minLength": 1,
1016
+ "maxLength": 256
1017
+ },
1018
+ "action": {
1019
+ "enum": ["sampling", "elicitation", "roots"]
1020
+ },
1021
+ "body": {
1022
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1023
+ }
1024
+ },
1025
+ "required": ["runId", "originInvocationId", "hostRef", "action", "body"],
1026
+ "additionalProperties": false
1027
+ },
1028
+ "host.request.output": {
1029
+ "type": "object",
1030
+ "properties": {
1031
+ "action": {
1032
+ "enum": ["sampling", "elicitation", "roots"]
1033
+ },
1034
+ "body": {
1035
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1036
+ }
1037
+ },
1038
+ "required": ["action", "body"],
1039
+ "additionalProperties": false
1040
+ },
1041
+ "stream.prepare.input": {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "originInvocationId": {
1045
+ "type": "string",
1046
+ "minLength": 1,
1047
+ "maxLength": 256
1048
+ },
1049
+ "runId": {
1050
+ "type": "string",
1051
+ "minLength": 1,
1052
+ "maxLength": 256
1053
+ },
1054
+ "resourceUri": {
1055
+ "type": "string",
1056
+ "minLength": 1,
1057
+ "maxLength": 4096,
1058
+ "pattern": "^nexum://agents/[^/?#]+/(?:resources|mcp)/"
1059
+ },
1060
+ "purpose": {
1061
+ "enum": [
1062
+ "resource",
1063
+ "attachment",
1064
+ "transfer",
1065
+ "host-request",
1066
+ "host-response",
1067
+ "result-meta",
1068
+ "maintenance"
1069
+ ]
1070
+ },
1071
+ "direction": {
1072
+ "const": "agent-to-cloud"
1073
+ },
1074
+ "expiresAt": {
1075
+ "type": "string",
1076
+ "format": "date-time",
1077
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-5][0-9](?:\\.[0-9]+)?Z$"
1078
+ },
1079
+ "maxBytes": {
1080
+ "type": "integer",
1081
+ "minimum": 1,
1082
+ "maximum": 9007199254740991
1083
+ },
1084
+ "mimeType": {
1085
+ "type": "string",
1086
+ "minLength": 3,
1087
+ "maxLength": 256,
1088
+ "pattern": "^[^\\s/;]+/[^\\s;]+(?:;[^\\r\\n]+)?$"
1089
+ },
1090
+ "size": {
1091
+ "type": "integer",
1092
+ "minimum": 0,
1093
+ "maximum": 9007199254740991
1094
+ },
1095
+ "sha256": {
1096
+ "type": "string",
1097
+ "pattern": "^[0-9a-f]{64}$"
1098
+ }
1099
+ },
1100
+ "required": [
1101
+ "originInvocationId",
1102
+ "purpose",
1103
+ "direction",
1104
+ "expiresAt",
1105
+ "maxBytes",
1106
+ "mimeType",
1107
+ "size",
1108
+ "sha256"
1109
+ ],
1110
+ "additionalProperties": false
1111
+ },
1112
+ "stream.prepare.output": {
1113
+ "type": "object",
1114
+ "properties": {
1115
+ "stream": {
1116
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1117
+ }
1118
+ },
1119
+ "required": ["stream"],
1120
+ "additionalProperties": false
1121
+ },
1122
+ "stream.revoke.input": {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "streamId": {
1126
+ "type": "string",
1127
+ "minLength": 1,
1128
+ "maxLength": 256
1129
+ },
1130
+ "reason": {
1131
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Error"
1132
+ }
1133
+ },
1134
+ "required": ["streamId", "reason"],
1135
+ "additionalProperties": false
1136
+ },
1137
+ "stream.revoke.output": {
1138
+ "type": "object",
1139
+ "properties": {
1140
+ "streamId": {
1141
+ "type": "string",
1142
+ "minLength": 1,
1143
+ "maxLength": 256
1144
+ },
1145
+ "closed": {
1146
+ "const": true
1147
+ }
1148
+ },
1149
+ "required": ["streamId", "closed"],
1150
+ "additionalProperties": false
1151
+ },
1152
+ "agent.maintenance.execute.input": {
1153
+ "type": "object",
1154
+ "properties": {
1155
+ "requestId": {
1156
+ "type": "string",
1157
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1158
+ }
1159
+ },
1160
+ "required": ["requestId"],
1161
+ "additionalProperties": false
1162
+ },
1163
+ "agent.maintenance.execute.output": {
1164
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1165
+ },
1166
+ "agent.maintenance.get.input": {
1167
+ "type": "object",
1168
+ "properties": {
1169
+ "requestId": {
1170
+ "type": "string",
1171
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1172
+ }
1173
+ },
1174
+ "required": ["requestId"],
1175
+ "additionalProperties": false
1176
+ },
1177
+ "agent.maintenance.get.output": {
1178
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1179
+ },
1180
+ "agent.maintenance.cancel.input": {
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "requestId": {
1184
+ "type": "string",
1185
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1186
+ }
1187
+ },
1188
+ "required": ["requestId"],
1189
+ "additionalProperties": false
1190
+ },
1191
+ "agent.maintenance.cancel.output": {
1192
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1193
+ },
1194
+ "maintenance.request.create.input": {
1195
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceCreate"
1196
+ },
1197
+ "maintenance.request.create.output": {
1198
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1199
+ },
1200
+ "maintenance.request.get.input": {
1201
+ "type": "object",
1202
+ "properties": {
1203
+ "requestId": {
1204
+ "type": "string",
1205
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1206
+ }
1207
+ },
1208
+ "required": ["requestId"],
1209
+ "additionalProperties": false
1210
+ },
1211
+ "maintenance.request.get.output": {
1212
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1213
+ },
1214
+ "maintenance.request.list.input": {
1215
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceListOptions"
1216
+ },
1217
+ "maintenance.request.list.output": {
1218
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenancePage"
1219
+ },
1220
+ "maintenance.request.cancel.input": {
1221
+ "type": "object",
1222
+ "properties": {
1223
+ "requestId": {
1224
+ "type": "string",
1225
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1226
+ }
1227
+ },
1228
+ "required": ["requestId"],
1229
+ "additionalProperties": false
1230
+ },
1231
+ "maintenance.request.cancel.output": {
1232
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1233
+ },
1234
+ "maintenance.request.decision.input": {
1235
+ "type": "object",
1236
+ "properties": {
1237
+ "requestId": {
1238
+ "type": "string",
1239
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1240
+ }
1241
+ },
1242
+ "required": ["requestId"],
1243
+ "additionalProperties": false
1244
+ },
1245
+ "maintenance.request.decision.output": {
1246
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1247
+ },
1248
+ "maintenance.request.beginExecution.input": {
1249
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceBeginExecution"
1250
+ },
1251
+ "maintenance.request.beginExecution.output": {
1252
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceView"
1253
+ },
1254
+ "agent.maintenance.draft.read.input": {
1255
+ "type": "object",
1256
+ "properties": {
1257
+ "requestId": {
1258
+ "type": "string",
1259
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1260
+ },
1261
+ "revision": {
1262
+ "type": "integer",
1263
+ "minimum": 1,
1264
+ "maximum": 9007199254740991
1265
+ }
1266
+ },
1267
+ "required": ["requestId"],
1268
+ "additionalProperties": false
1269
+ },
1270
+ "agent.maintenance.draft.read.output": {
1271
+ "type": "object",
1272
+ "properties": {
1273
+ "body": {
1274
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1275
+ }
1276
+ },
1277
+ "required": ["body"],
1278
+ "additionalProperties": false
1279
+ },
1280
+ "agent.maintenance.draft.prepare.input": {
1281
+ "type": "object",
1282
+ "properties": {
1283
+ "requestId": {
1284
+ "type": "string",
1285
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1286
+ },
1287
+ "revision": {
1288
+ "type": "integer",
1289
+ "minimum": 1,
1290
+ "maximum": 9007199254740991
1291
+ },
1292
+ "body": {
1293
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1294
+ }
1295
+ },
1296
+ "required": ["requestId", "revision", "body"],
1297
+ "additionalProperties": false
1298
+ },
1299
+ "agent.maintenance.draft.prepare.output": {
1300
+ "type": "object",
1301
+ "properties": {
1302
+ "body": {
1303
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1304
+ }
1305
+ },
1306
+ "required": ["body"],
1307
+ "additionalProperties": false
1308
+ },
1309
+ "agent.maintenance.draft.verify.input": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "requestId": {
1313
+ "type": "string",
1314
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1315
+ },
1316
+ "revision": {
1317
+ "type": "integer",
1318
+ "minimum": 1,
1319
+ "maximum": 9007199254740991
1320
+ }
1321
+ },
1322
+ "required": ["requestId"],
1323
+ "additionalProperties": false
1324
+ },
1325
+ "agent.maintenance.draft.verify.output": {
1326
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/MaintenanceCandidate"
1327
+ },
1328
+ "agent.maintenance.draft.notify.input": {
1329
+ "type": "object",
1330
+ "properties": {
1331
+ "requestId": {
1332
+ "type": "string",
1333
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1334
+ },
1335
+ "revision": {
1336
+ "type": "integer",
1337
+ "minimum": 1,
1338
+ "maximum": 9007199254740991
1339
+ }
1340
+ },
1341
+ "required": ["requestId"],
1342
+ "additionalProperties": false
1343
+ },
1344
+ "agent.maintenance.draft.notify.output": {
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "requestId": {
1348
+ "type": "string",
1349
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1350
+ },
1351
+ "notified": {
1352
+ "const": true
1353
+ }
1354
+ },
1355
+ "required": ["requestId", "notified"],
1356
+ "additionalProperties": false
1357
+ },
1358
+ "agent.maintenance.oauth.start.input": {
1359
+ "type": "object",
1360
+ "properties": {
1361
+ "requestId": {
1362
+ "type": "string",
1363
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1364
+ },
1365
+ "revision": {
1366
+ "type": "integer",
1367
+ "minimum": 1,
1368
+ "maximum": 9007199254740991
1369
+ },
1370
+ "body": {
1371
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1372
+ }
1373
+ },
1374
+ "required": ["requestId", "revision", "body"],
1375
+ "additionalProperties": false
1376
+ },
1377
+ "agent.maintenance.oauth.start.output": {
1378
+ "type": "object",
1379
+ "properties": {
1380
+ "body": {
1381
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1382
+ }
1383
+ },
1384
+ "required": ["body"],
1385
+ "additionalProperties": false
1386
+ },
1387
+ "agent.maintenance.oauth.complete.input": {
1388
+ "type": "object",
1389
+ "properties": {
1390
+ "requestId": {
1391
+ "type": "string",
1392
+ "pattern": "^maint_req_[A-Za-z0-9_-]{1,128}$"
1393
+ },
1394
+ "revision": {
1395
+ "type": "integer",
1396
+ "minimum": 1,
1397
+ "maximum": 9007199254740991
1398
+ },
1399
+ "body": {
1400
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1401
+ }
1402
+ },
1403
+ "required": ["requestId", "revision", "body"],
1404
+ "additionalProperties": false
1405
+ },
1406
+ "agent.maintenance.oauth.complete.output": {
1407
+ "type": "object",
1408
+ "properties": {
1409
+ "body": {
1410
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/FixedStreamRef"
1411
+ }
1412
+ },
1413
+ "required": ["body"],
1414
+ "additionalProperties": false
1415
+ },
1416
+ "attachment.open.input": {
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "sourceId": {
1420
+ "type": "string",
1421
+ "pattern": "^att_[0-9a-f]{64}$"
1422
+ },
1423
+ "originInvocationId": {
1424
+ "type": "string",
1425
+ "minLength": 1,
1426
+ "maxLength": 256
1427
+ },
1428
+ "runId": {
1429
+ "type": "string",
1430
+ "minLength": 1,
1431
+ "maxLength": 256
1432
+ }
1433
+ },
1434
+ "required": ["sourceId", "originInvocationId"],
1435
+ "additionalProperties": false
1436
+ },
1437
+ "attachment.open.output": {
1438
+ "type": "object",
1439
+ "properties": {
1440
+ "stream": {
1441
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/StreamRef"
1442
+ },
1443
+ "name": {
1444
+ "type": "string",
1445
+ "minLength": 1,
1446
+ "maxLength": 256
1447
+ },
1448
+ "mimeType": {
1449
+ "type": "string",
1450
+ "minLength": 3,
1451
+ "maxLength": 256,
1452
+ "pattern": "^[^\\s/;]+/[^\\s;]+(?:;[^\\r\\n]+)?$"
1453
+ },
1454
+ "size": {
1455
+ "type": "integer",
1456
+ "minimum": 0,
1457
+ "maximum": 9007199254740991
1458
+ },
1459
+ "sha256": {
1460
+ "type": "string",
1461
+ "pattern": "^[0-9a-f]{64}$"
1462
+ }
1463
+ },
1464
+ "required": ["stream", "name", "mimeType"],
1465
+ "additionalProperties": false
1466
+ },
1467
+ "state.user.get.input": {
1468
+ "type": "object",
1469
+ "properties": {
1470
+ "namespace": {
1471
+ "const": "default"
1472
+ },
1473
+ "key": {
1474
+ "type": "string",
1475
+ "minLength": 1,
1476
+ "maxLength": 256,
1477
+ "pattern": "^[^\\x00]+$"
1478
+ }
1479
+ },
1480
+ "required": ["namespace", "key"],
1481
+ "additionalProperties": false
1482
+ },
1483
+ "state.user.get.output": {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "state": {
1487
+ "anyOf": [
1488
+ {
1489
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/StateValue"
1490
+ },
1491
+ {
1492
+ "type": "null"
1493
+ }
1494
+ ]
1495
+ }
1496
+ },
1497
+ "required": ["state"],
1498
+ "additionalProperties": false
1499
+ },
1500
+ "state.user.set.input": {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "namespace": {
1504
+ "const": "default"
1505
+ },
1506
+ "key": {
1507
+ "type": "string",
1508
+ "minLength": 1,
1509
+ "maxLength": 256,
1510
+ "pattern": "^[^\\x00]+$"
1511
+ },
1512
+ "value": {},
1513
+ "expectedVersion": {
1514
+ "anyOf": [
1515
+ {
1516
+ "type": "integer",
1517
+ "minimum": 1,
1518
+ "maximum": 9007199254740991
1519
+ },
1520
+ {
1521
+ "type": "null"
1522
+ }
1523
+ ]
1524
+ }
1525
+ },
1526
+ "required": ["namespace", "key", "value", "expectedVersion"],
1527
+ "additionalProperties": false
1528
+ },
1529
+ "state.user.set.output": {
1530
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/StateValue"
1531
+ },
1532
+ "state.user.delete.input": {
1533
+ "type": "object",
1534
+ "properties": {
1535
+ "namespace": {
1536
+ "const": "default"
1537
+ },
1538
+ "key": {
1539
+ "type": "string",
1540
+ "minLength": 1,
1541
+ "maxLength": 256,
1542
+ "pattern": "^[^\\x00]+$"
1543
+ },
1544
+ "expectedVersion": {
1545
+ "type": "integer",
1546
+ "minimum": 1,
1547
+ "maximum": 9007199254740991
1548
+ }
1549
+ },
1550
+ "required": ["namespace", "key", "expectedVersion"],
1551
+ "additionalProperties": false
1552
+ },
1553
+ "state.user.delete.output": {
1554
+ "type": "object",
1555
+ "properties": {
1556
+ "deleted": {
1557
+ "const": true
1558
+ },
1559
+ "version": {
1560
+ "type": "integer",
1561
+ "minimum": 1,
1562
+ "maximum": 9007199254740991
1563
+ },
1564
+ "updatedAt": {
1565
+ "type": "integer",
1566
+ "minimum": 0,
1567
+ "maximum": 9007199254740991
1568
+ }
1569
+ },
1570
+ "required": ["deleted", "version", "updatedAt"],
1571
+ "additionalProperties": false
1572
+ },
1573
+ "agent.tasks.create.input": {
1574
+ "type": "object",
1575
+ "properties": {
1576
+ "runId": {
1577
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1578
+ },
1579
+ "ttlMs": {
1580
+ "type": "integer",
1581
+ "minimum": 1,
1582
+ "maximum": 9007199254740991
1583
+ }
1584
+ },
1585
+ "required": ["runId"],
1586
+ "additionalProperties": false
1587
+ },
1588
+ "agent.tasks.create.output": {
1589
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskBinding"
1590
+ },
1591
+ "agent.tasks.get.input": {
1592
+ "type": "object",
1593
+ "properties": {
1594
+ "taskId": {
1595
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskId"
1596
+ }
1597
+ },
1598
+ "required": ["taskId"],
1599
+ "additionalProperties": false
1600
+ },
1601
+ "agent.tasks.get.output": {
1602
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskView"
1603
+ },
1604
+ "agent.tasks.update.input": {
1605
+ "type": "object",
1606
+ "properties": {
1607
+ "taskId": {
1608
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskId"
1609
+ },
1610
+ "waitId": {
1611
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1612
+ },
1613
+ "input": {},
1614
+ "attachments": {
1615
+ "type": "array",
1616
+ "items": {
1617
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/Attachment"
1618
+ },
1619
+ "maxItems": 20
1620
+ }
1621
+ },
1622
+ "required": ["taskId", "waitId", "input"],
1623
+ "additionalProperties": false
1624
+ },
1625
+ "agent.tasks.update.output": {
1626
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskView"
1627
+ },
1628
+ "agent.tasks.cancel.input": {
1629
+ "type": "object",
1630
+ "properties": {
1631
+ "taskId": {
1632
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskId"
1633
+ }
1634
+ },
1635
+ "required": ["taskId"],
1636
+ "additionalProperties": false
1637
+ },
1638
+ "agent.tasks.cancel.output": {
1639
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/TaskCancelOutput"
1640
+ },
1641
+ "agent.project.inspect.input": {
1642
+ "type": "object",
1643
+ "properties": {
1644
+ "projectId": {
1645
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1646
+ },
1647
+ "contextId": {
1648
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1649
+ }
1650
+ },
1651
+ "required": ["projectId"],
1652
+ "additionalProperties": false
1653
+ },
1654
+ "agent.project.inspect.output": {
1655
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/operations.schema.json#/$defs/agent.open.output"
1656
+ },
1657
+ "agent.run.inspect.input": {
1658
+ "type": "object",
1659
+ "properties": {
1660
+ "runId": {
1661
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1662
+ }
1663
+ },
1664
+ "required": ["runId"],
1665
+ "additionalProperties": false
1666
+ },
1667
+ "agent.run.inspect.output": {
1668
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/RunView"
1669
+ },
1670
+ "agent.process.list.input": {
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "projectId": {
1674
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1675
+ },
1676
+ "limit": {
1677
+ "type": "integer",
1678
+ "minimum": 1,
1679
+ "maximum": 100
1680
+ },
1681
+ "cursor": {
1682
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/cursor"
1683
+ }
1684
+ },
1685
+ "required": [],
1686
+ "additionalProperties": false
1687
+ },
1688
+ "agent.process.list.output": {
1689
+ "type": "object",
1690
+ "properties": {
1691
+ "items": {
1692
+ "type": "array",
1693
+ "items": {
1694
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/ProcessSnapshot"
1695
+ },
1696
+ "maxItems": 100
1697
+ },
1698
+ "nextCursor": {
1699
+ "anyOf": [
1700
+ {
1701
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/cursor"
1702
+ },
1703
+ {
1704
+ "type": "null"
1705
+ }
1706
+ ]
1707
+ },
1708
+ "observedAt": {
1709
+ "type": "integer",
1710
+ "minimum": 0,
1711
+ "maximum": 9007199254740991
1712
+ }
1713
+ },
1714
+ "required": ["items", "nextCursor", "observedAt"],
1715
+ "additionalProperties": false
1716
+ },
1717
+ "agent.process.get.input": {
1718
+ "type": "object",
1719
+ "properties": {
1720
+ "processId": {
1721
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/ProcessId"
1722
+ }
1723
+ },
1724
+ "required": ["processId"],
1725
+ "additionalProperties": false
1726
+ },
1727
+ "agent.process.get.output": {
1728
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/ProcessSnapshot"
1729
+ },
1730
+ "agent.process.stop.input": {
1731
+ "type": "object",
1732
+ "properties": {
1733
+ "processId": {
1734
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/ProcessId"
1735
+ }
1736
+ },
1737
+ "required": ["processId"],
1738
+ "additionalProperties": false
1739
+ },
1740
+ "agent.process.stop.output": {
1741
+ "type": "object",
1742
+ "properties": {
1743
+ "accepted": {
1744
+ "type": "boolean"
1745
+ },
1746
+ "item": {
1747
+ "$ref": "https://schemas.nexum.local/agent/v2/wire/types.schema.json#/$defs/ProcessSnapshot"
1748
+ }
1749
+ },
1750
+ "required": ["accepted", "item"],
1751
+ "additionalProperties": false
1752
+ },
1753
+ "agent.project.close.input": {
1754
+ "type": "object",
1755
+ "properties": {
1756
+ "projectId": {
1757
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1758
+ }
1759
+ },
1760
+ "required": ["projectId"],
1761
+ "additionalProperties": false
1762
+ },
1763
+ "agent.project.close.output": {
1764
+ "type": "object",
1765
+ "properties": {
1766
+ "projectId": {
1767
+ "$ref": "https://schemas.nexum.local/agent/v2/common.schema.json#/$defs/id"
1768
+ },
1769
+ "agentConfirmed": {
1770
+ "const": true
1771
+ },
1772
+ "affectedContextCount": {
1773
+ "type": "integer",
1774
+ "minimum": 0,
1775
+ "maximum": 9007199254740991
1776
+ },
1777
+ "closedAt": {
1778
+ "type": "string",
1779
+ "format": "date-time"
1780
+ }
1781
+ },
1782
+ "required": [
1783
+ "projectId",
1784
+ "agentConfirmed",
1785
+ "affectedContextCount",
1786
+ "closedAt"
1787
+ ],
1788
+ "additionalProperties": false
1789
+ }
1790
+ }
1791
+ }