@buildanagent/harness 0.0.0-stage → 0.1.0-alpha.29

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 (397) hide show
  1. package/LICENSE +54 -0
  2. package/LICENSE-APACHE +202 -0
  3. package/LICENSE-MIT +21 -0
  4. package/README.md +822 -2
  5. package/dist/ablation.d.ts +2 -0
  6. package/dist/ablation.js +3 -0
  7. package/dist/ablation.js.map +1 -0
  8. package/dist/completion/check.d.ts +64 -0
  9. package/dist/completion/check.js +152 -0
  10. package/dist/completion/check.js.map +1 -0
  11. package/dist/completion/checks.d.ts +45 -0
  12. package/dist/completion/checks.js +173 -0
  13. package/dist/completion/checks.js.map +1 -0
  14. package/dist/completion/flags.d.ts +25 -0
  15. package/dist/completion/flags.js +87 -0
  16. package/dist/completion/flags.js.map +1 -0
  17. package/dist/completion/index.d.ts +8 -0
  18. package/dist/completion/index.js +9 -0
  19. package/dist/completion/index.js.map +1 -0
  20. package/dist/completion/snapshot.d.ts +33 -0
  21. package/dist/completion/snapshot.js +83 -0
  22. package/dist/completion/snapshot.js.map +1 -0
  23. package/dist/context/cap.d.ts +32 -0
  24. package/dist/context/cap.js +50 -0
  25. package/dist/context/cap.js.map +1 -0
  26. package/dist/context/estimate.d.ts +18 -0
  27. package/dist/context/estimate.js +20 -0
  28. package/dist/context/estimate.js.map +1 -0
  29. package/dist/context/file-spill.d.ts +15 -0
  30. package/dist/context/file-spill.js +40 -0
  31. package/dist/context/file-spill.js.map +1 -0
  32. package/dist/context/index.d.ts +10 -0
  33. package/dist/context/index.js +10 -0
  34. package/dist/context/index.js.map +1 -0
  35. package/dist/context/mask.d.ts +27 -0
  36. package/dist/context/mask.js +71 -0
  37. package/dist/context/mask.js.map +1 -0
  38. package/dist/context/mid-turn.d.ts +40 -0
  39. package/dist/context/mid-turn.js +82 -0
  40. package/dist/context/mid-turn.js.map +1 -0
  41. package/dist/context/policy.d.ts +9 -0
  42. package/dist/context/policy.js +140 -0
  43. package/dist/context/policy.js.map +1 -0
  44. package/dist/context/spill-ledger.d.ts +25 -0
  45. package/dist/context/spill-ledger.js +54 -0
  46. package/dist/context/spill-ledger.js.map +1 -0
  47. package/dist/context/spill.d.ts +10 -0
  48. package/dist/context/spill.js +18 -0
  49. package/dist/context/spill.js.map +1 -0
  50. package/dist/context/summarize.d.ts +53 -0
  51. package/dist/context/summarize.js +204 -0
  52. package/dist/context/summarize.js.map +1 -0
  53. package/dist/context/summary-template.d.ts +29 -0
  54. package/dist/context/summary-template.js +69 -0
  55. package/dist/context/summary-template.js.map +1 -0
  56. package/dist/context/types.d.ts +150 -0
  57. package/dist/context/types.js +2 -0
  58. package/dist/context/types.js.map +1 -0
  59. package/dist/context/write-cap.d.ts +19 -0
  60. package/dist/context/write-cap.js +41 -0
  61. package/dist/context/write-cap.js.map +1 -0
  62. package/dist/create-harness.d.ts +7 -0
  63. package/dist/create-harness.js +21 -0
  64. package/dist/create-harness.js.map +1 -0
  65. package/dist/credentials/addresses.d.ts +14 -0
  66. package/dist/credentials/addresses.js +144 -0
  67. package/dist/credentials/addresses.js.map +1 -0
  68. package/dist/credentials/allowlist.d.ts +54 -0
  69. package/dist/credentials/allowlist.js +134 -0
  70. package/dist/credentials/allowlist.js.map +1 -0
  71. package/dist/credentials/egress-policy.d.ts +69 -0
  72. package/dist/credentials/egress-policy.js +170 -0
  73. package/dist/credentials/egress-policy.js.map +1 -0
  74. package/dist/credentials/egress-proxy.d.ts +82 -0
  75. package/dist/credentials/egress-proxy.js +650 -0
  76. package/dist/credentials/egress-proxy.js.map +1 -0
  77. package/dist/credentials/git-route.d.ts +68 -0
  78. package/dist/credentials/git-route.js +288 -0
  79. package/dist/credentials/git-route.js.map +1 -0
  80. package/dist/credentials/index.d.ts +13 -0
  81. package/dist/credentials/index.js +14 -0
  82. package/dist/credentials/index.js.map +1 -0
  83. package/dist/credentials/scrub.d.ts +23 -0
  84. package/dist/credentials/scrub.js +115 -0
  85. package/dist/credentials/scrub.js.map +1 -0
  86. package/dist/errors.d.ts +60 -0
  87. package/dist/errors.js +67 -0
  88. package/dist/errors.js.map +1 -0
  89. package/dist/extensions/compose.d.ts +27 -0
  90. package/dist/extensions/compose.js +83 -0
  91. package/dist/extensions/compose.js.map +1 -0
  92. package/dist/extensions/context-files-node.d.ts +28 -0
  93. package/dist/extensions/context-files-node.js +74 -0
  94. package/dist/extensions/context-files-node.js.map +1 -0
  95. package/dist/extensions/context-files.d.ts +68 -0
  96. package/dist/extensions/context-files.js +214 -0
  97. package/dist/extensions/context-files.js.map +1 -0
  98. package/dist/extensions/digest.d.ts +6 -0
  99. package/dist/extensions/digest.js +68 -0
  100. package/dist/extensions/digest.js.map +1 -0
  101. package/dist/extensions/index.d.ts +10 -0
  102. package/dist/extensions/index.js +10 -0
  103. package/dist/extensions/index.js.map +1 -0
  104. package/dist/extensions/load.d.ts +42 -0
  105. package/dist/extensions/load.js +211 -0
  106. package/dist/extensions/load.js.map +1 -0
  107. package/dist/extensions/lock.d.ts +8 -0
  108. package/dist/extensions/lock.js +95 -0
  109. package/dist/extensions/lock.js.map +1 -0
  110. package/dist/extensions/node.d.ts +10 -0
  111. package/dist/extensions/node.js +11 -0
  112. package/dist/extensions/node.js.map +1 -0
  113. package/dist/extensions/project-dirs.d.ts +24 -0
  114. package/dist/extensions/project-dirs.js +97 -0
  115. package/dist/extensions/project-dirs.js.map +1 -0
  116. package/dist/extensions/skills-node.d.ts +34 -0
  117. package/dist/extensions/skills-node.js +123 -0
  118. package/dist/extensions/skills-node.js.map +1 -0
  119. package/dist/extensions/skills.d.ts +51 -0
  120. package/dist/extensions/skills.js +175 -0
  121. package/dist/extensions/skills.js.map +1 -0
  122. package/dist/extensions/trust-file.d.ts +3 -0
  123. package/dist/extensions/trust-file.js +62 -0
  124. package/dist/extensions/trust-file.js.map +1 -0
  125. package/dist/extensions/trust-store-node.d.ts +10 -0
  126. package/dist/extensions/trust-store-node.js +33 -0
  127. package/dist/extensions/trust-store-node.js.map +1 -0
  128. package/dist/extensions/types.d.ts +42 -0
  129. package/dist/extensions/types.js +2 -0
  130. package/dist/extensions/types.js.map +1 -0
  131. package/dist/harness.d.ts +156 -0
  132. package/dist/harness.js +2 -0
  133. package/dist/harness.js.map +1 -0
  134. package/dist/index.d.ts +4 -0
  135. package/dist/index.js +5 -0
  136. package/dist/index.js.map +1 -0
  137. package/dist/mcp/connection.d.ts +22 -0
  138. package/dist/mcp/connection.js +267 -0
  139. package/dist/mcp/connection.js.map +1 -0
  140. package/dist/mcp/content.d.ts +27 -0
  141. package/dist/mcp/content.js +177 -0
  142. package/dist/mcp/content.js.map +1 -0
  143. package/dist/mcp/errors.d.ts +19 -0
  144. package/dist/mcp/errors.js +21 -0
  145. package/dist/mcp/errors.js.map +1 -0
  146. package/dist/mcp/index.d.ts +10 -0
  147. package/dist/mcp/index.js +10 -0
  148. package/dist/mcp/index.js.map +1 -0
  149. package/dist/mcp/manager.d.ts +7 -0
  150. package/dist/mcp/manager.js +173 -0
  151. package/dist/mcp/manager.js.map +1 -0
  152. package/dist/mcp/record.d.ts +7 -0
  153. package/dist/mcp/record.js +20 -0
  154. package/dist/mcp/record.js.map +1 -0
  155. package/dist/mcp/stdio.d.ts +39 -0
  156. package/dist/mcp/stdio.js +382 -0
  157. package/dist/mcp/stdio.js.map +1 -0
  158. package/dist/mcp/types.d.ts +172 -0
  159. package/dist/mcp/types.js +2 -0
  160. package/dist/mcp/types.js.map +1 -0
  161. package/dist/memory/index.d.ts +2 -0
  162. package/dist/memory/index.js +3 -0
  163. package/dist/memory/index.js.map +1 -0
  164. package/dist/permissions/default-rules.d.ts +7 -0
  165. package/dist/permissions/default-rules.js +42 -0
  166. package/dist/permissions/default-rules.js.map +1 -0
  167. package/dist/permissions/errors.d.ts +11 -0
  168. package/dist/permissions/errors.js +14 -0
  169. package/dist/permissions/errors.js.map +1 -0
  170. package/dist/permissions/index.d.ts +9 -0
  171. package/dist/permissions/index.js +9 -0
  172. package/dist/permissions/index.js.map +1 -0
  173. package/dist/permissions/match.d.ts +33 -0
  174. package/dist/permissions/match.js +287 -0
  175. package/dist/permissions/match.js.map +1 -0
  176. package/dist/permissions/pipeline.d.ts +9 -0
  177. package/dist/permissions/pipeline.js +235 -0
  178. package/dist/permissions/pipeline.js.map +1 -0
  179. package/dist/permissions/rules.d.ts +22 -0
  180. package/dist/permissions/rules.js +74 -0
  181. package/dist/permissions/rules.js.map +1 -0
  182. package/dist/permissions/shadow.d.ts +5 -0
  183. package/dist/permissions/shadow.js +22 -0
  184. package/dist/permissions/shadow.js.map +1 -0
  185. package/dist/permissions/types.d.ts +104 -0
  186. package/dist/permissions/types.js +2 -0
  187. package/dist/permissions/types.js.map +1 -0
  188. package/dist/sandbox/base.d.ts +45 -0
  189. package/dist/sandbox/base.js +74 -0
  190. package/dist/sandbox/base.js.map +1 -0
  191. package/dist/sandbox/docker/index.d.ts +41 -0
  192. package/dist/sandbox/docker/index.js +497 -0
  193. package/dist/sandbox/docker/index.js.map +1 -0
  194. package/dist/sandbox/errors.d.ts +44 -0
  195. package/dist/sandbox/errors.js +57 -0
  196. package/dist/sandbox/errors.js.map +1 -0
  197. package/dist/sandbox/host-files.d.ts +65 -0
  198. package/dist/sandbox/host-files.js +258 -0
  199. package/dist/sandbox/host-files.js.map +1 -0
  200. package/dist/sandbox/index.d.ts +10 -0
  201. package/dist/sandbox/index.js +10 -0
  202. package/dist/sandbox/index.js.map +1 -0
  203. package/dist/sandbox/none.d.ts +17 -0
  204. package/dist/sandbox/none.js +108 -0
  205. package/dist/sandbox/none.js.map +1 -0
  206. package/dist/sandbox/policy.d.ts +49 -0
  207. package/dist/sandbox/policy.js +149 -0
  208. package/dist/sandbox/policy.js.map +1 -0
  209. package/dist/sandbox/process.d.ts +61 -0
  210. package/dist/sandbox/process.js +253 -0
  211. package/dist/sandbox/process.js.map +1 -0
  212. package/dist/sandbox/spawn-env.d.ts +20 -0
  213. package/dist/sandbox/spawn-env.js +128 -0
  214. package/dist/sandbox/spawn-env.js.map +1 -0
  215. package/dist/sandbox/srt/index.d.ts +38 -0
  216. package/dist/sandbox/srt/index.js +283 -0
  217. package/dist/sandbox/srt/index.js.map +1 -0
  218. package/dist/sandbox/srt/settings.d.ts +60 -0
  219. package/dist/sandbox/srt/settings.js +84 -0
  220. package/dist/sandbox/srt/settings.js.map +1 -0
  221. package/dist/sandbox/types.d.ts +125 -0
  222. package/dist/sandbox/types.js +6 -0
  223. package/dist/sandbox/types.js.map +1 -0
  224. package/dist/server/answers.d.ts +16 -0
  225. package/dist/server/answers.js +43 -0
  226. package/dist/server/answers.js.map +1 -0
  227. package/dist/server/connection.d.ts +99 -0
  228. package/dist/server/connection.js +309 -0
  229. package/dist/server/connection.js.map +1 -0
  230. package/dist/server/dispatcher.d.ts +86 -0
  231. package/dist/server/dispatcher.js +800 -0
  232. package/dist/server/dispatcher.js.map +1 -0
  233. package/dist/server/index.d.ts +13 -0
  234. package/dist/server/index.js +12 -0
  235. package/dist/server/index.js.map +1 -0
  236. package/dist/server/local-transport.d.ts +44 -0
  237. package/dist/server/local-transport.js +103 -0
  238. package/dist/server/local-transport.js.map +1 -0
  239. package/dist/server/outbox.d.ts +31 -0
  240. package/dist/server/outbox.js +130 -0
  241. package/dist/server/outbox.js.map +1 -0
  242. package/dist/server/params.d.ts +25 -0
  243. package/dist/server/params.js +112 -0
  244. package/dist/server/params.js.map +1 -0
  245. package/dist/server/protocol.schema.json +2448 -0
  246. package/dist/server/rpc-session.d.ts +43 -0
  247. package/dist/server/rpc-session.js +167 -0
  248. package/dist/server/rpc-session.js.map +1 -0
  249. package/dist/server/stdio-streams.d.ts +67 -0
  250. package/dist/server/stdio-streams.js +218 -0
  251. package/dist/server/stdio-streams.js.map +1 -0
  252. package/dist/server/stdio.d.ts +59 -0
  253. package/dist/server/stdio.js +189 -0
  254. package/dist/server/stdio.js.map +1 -0
  255. package/dist/server/websocket.d.ts +106 -0
  256. package/dist/server/websocket.js +327 -0
  257. package/dist/server/websocket.js.map +1 -0
  258. package/dist/session/approvals.d.ts +81 -0
  259. package/dist/session/approvals.js +217 -0
  260. package/dist/session/approvals.js.map +1 -0
  261. package/dist/session/code-call-log.d.ts +42 -0
  262. package/dist/session/code-call-log.js +63 -0
  263. package/dist/session/code-call-log.js.map +1 -0
  264. package/dist/session/code-call-result.d.ts +19 -0
  265. package/dist/session/code-call-result.js +95 -0
  266. package/dist/session/code-call-result.js.map +1 -0
  267. package/dist/session/code-call.d.ts +49 -0
  268. package/dist/session/code-call.js +345 -0
  269. package/dist/session/code-call.js.map +1 -0
  270. package/dist/session/effect-scope.d.ts +11 -0
  271. package/dist/session/effect-scope.js +10 -0
  272. package/dist/session/effect-scope.js.map +1 -0
  273. package/dist/session/errors.d.ts +19 -0
  274. package/dist/session/errors.js +27 -0
  275. package/dist/session/errors.js.map +1 -0
  276. package/dist/session/file-index.d.ts +8 -0
  277. package/dist/session/file-index.js +70 -0
  278. package/dist/session/file-index.js.map +1 -0
  279. package/dist/session/file-key-store.d.ts +16 -0
  280. package/dist/session/file-key-store.js +169 -0
  281. package/dist/session/file-key-store.js.map +1 -0
  282. package/dist/session/file-lock.d.ts +52 -0
  283. package/dist/session/file-lock.js +324 -0
  284. package/dist/session/file-lock.js.map +1 -0
  285. package/dist/session/index.d.ts +22 -0
  286. package/dist/session/index.js +20 -0
  287. package/dist/session/index.js.map +1 -0
  288. package/dist/session/jsonl-store.d.ts +37 -0
  289. package/dist/session/jsonl-store.js +386 -0
  290. package/dist/session/jsonl-store.js.map +1 -0
  291. package/dist/session/jsonl.d.ts +9 -0
  292. package/dist/session/jsonl.js +10 -0
  293. package/dist/session/jsonl.js.map +1 -0
  294. package/dist/session/lock.d.ts +19 -0
  295. package/dist/session/lock.js +2 -0
  296. package/dist/session/lock.js.map +1 -0
  297. package/dist/session/memory-store.d.ts +12 -0
  298. package/dist/session/memory-store.js +60 -0
  299. package/dist/session/memory-store.js.map +1 -0
  300. package/dist/session/migrate.d.ts +41 -0
  301. package/dist/session/migrate.js +86 -0
  302. package/dist/session/migrate.js.map +1 -0
  303. package/dist/session/pointer.d.ts +15 -0
  304. package/dist/session/pointer.js +22 -0
  305. package/dist/session/pointer.js.map +1 -0
  306. package/dist/session/rebuild.d.ts +53 -0
  307. package/dist/session/rebuild.js +230 -0
  308. package/dist/session/rebuild.js.map +1 -0
  309. package/dist/session/resume.d.ts +26 -0
  310. package/dist/session/resume.js +128 -0
  311. package/dist/session/resume.js.map +1 -0
  312. package/dist/session/retention.d.ts +97 -0
  313. package/dist/session/retention.js +702 -0
  314. package/dist/session/retention.js.map +1 -0
  315. package/dist/session/runner.d.ts +156 -0
  316. package/dist/session/runner.js +656 -0
  317. package/dist/session/runner.js.map +1 -0
  318. package/dist/session/scheduler.d.ts +47 -0
  319. package/dist/session/scheduler.js +85 -0
  320. package/dist/session/scheduler.js.map +1 -0
  321. package/dist/session/secret-key-store.d.ts +47 -0
  322. package/dist/session/secret-key-store.js +79 -0
  323. package/dist/session/secret-key-store.js.map +1 -0
  324. package/dist/session/session.d.ts +106 -0
  325. package/dist/session/session.js +353 -0
  326. package/dist/session/session.js.map +1 -0
  327. package/dist/session/sticky.d.ts +48 -0
  328. package/dist/session/sticky.js +232 -0
  329. package/dist/session/sticky.js.map +1 -0
  330. package/dist/session/store.d.ts +108 -0
  331. package/dist/session/store.js +163 -0
  332. package/dist/session/store.js.map +1 -0
  333. package/dist/telemetry/index.d.ts +2 -0
  334. package/dist/telemetry/index.js +3 -0
  335. package/dist/telemetry/index.js.map +1 -0
  336. package/dist/testing/fake-sandbox.d.ts +52 -0
  337. package/dist/testing/fake-sandbox.js +370 -0
  338. package/dist/testing/fake-sandbox.js.map +1 -0
  339. package/dist/testing/index.d.ts +10 -0
  340. package/dist/testing/index.js +11 -0
  341. package/dist/testing/index.js.map +1 -0
  342. package/dist/testing/key-store-conformance.d.ts +22 -0
  343. package/dist/testing/key-store-conformance.js +97 -0
  344. package/dist/testing/key-store-conformance.js.map +1 -0
  345. package/dist/testing/run-cases.d.ts +21 -0
  346. package/dist/testing/run-cases.js +20 -0
  347. package/dist/testing/run-cases.js.map +1 -0
  348. package/dist/testing/sandbox-conformance.d.ts +64 -0
  349. package/dist/testing/sandbox-conformance.js +468 -0
  350. package/dist/testing/sandbox-conformance.js.map +1 -0
  351. package/dist/testing/scheduler-conformance.d.ts +32 -0
  352. package/dist/testing/scheduler-conformance.js +72 -0
  353. package/dist/testing/scheduler-conformance.js.map +1 -0
  354. package/dist/testing/store-conformance.d.ts +21 -0
  355. package/dist/testing/store-conformance.js +320 -0
  356. package/dist/testing/store-conformance.js.map +1 -0
  357. package/dist/tools/builtins/bash.d.ts +9 -0
  358. package/dist/tools/builtins/bash.js +75 -0
  359. package/dist/tools/builtins/bash.js.map +1 -0
  360. package/dist/tools/builtins/builtins.d.ts +38 -0
  361. package/dist/tools/builtins/builtins.js +48 -0
  362. package/dist/tools/builtins/builtins.js.map +1 -0
  363. package/dist/tools/builtins/descriptions.d.ts +69 -0
  364. package/dist/tools/builtins/descriptions.js +94 -0
  365. package/dist/tools/builtins/descriptions.js.map +1 -0
  366. package/dist/tools/builtins/fetch.d.ts +12 -0
  367. package/dist/tools/builtins/fetch.js +157 -0
  368. package/dist/tools/builtins/fetch.js.map +1 -0
  369. package/dist/tools/builtins/files.d.ts +27 -0
  370. package/dist/tools/builtins/files.js +274 -0
  371. package/dist/tools/builtins/files.js.map +1 -0
  372. package/dist/tools/builtins/paths.d.ts +30 -0
  373. package/dist/tools/builtins/paths.js +62 -0
  374. package/dist/tools/builtins/paths.js.map +1 -0
  375. package/dist/tools/builtins/results.d.ts +15 -0
  376. package/dist/tools/builtins/results.js +31 -0
  377. package/dist/tools/builtins/results.js.map +1 -0
  378. package/dist/tools/builtins/search.d.ts +18 -0
  379. package/dist/tools/builtins/search.js +217 -0
  380. package/dist/tools/builtins/search.js.map +1 -0
  381. package/dist/tools/errors.d.ts +13 -0
  382. package/dist/tools/errors.js +17 -0
  383. package/dist/tools/errors.js.map +1 -0
  384. package/dist/tools/index.d.ts +12 -0
  385. package/dist/tools/index.js +11 -0
  386. package/dist/tools/index.js.map +1 -0
  387. package/dist/tools/registry.d.ts +3 -0
  388. package/dist/tools/registry.js +234 -0
  389. package/dist/tools/registry.js.map +1 -0
  390. package/dist/tools/tool-search.d.ts +30 -0
  391. package/dist/tools/tool-search.js +118 -0
  392. package/dist/tools/tool-search.js.map +1 -0
  393. package/dist/tools/types.d.ts +106 -0
  394. package/dist/tools/types.js +2 -0
  395. package/dist/tools/types.js.map +1 -0
  396. package/llms.txt +469 -0
  397. package/package.json +118 -3
@@ -0,0 +1,2448 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "jsonrpc": {
10
+ "$ref": "#/$defs/shape-488349aa39"
11
+ },
12
+ "id": {
13
+ "$ref": "#/$defs/Id"
14
+ },
15
+ "method": {
16
+ "type": "string",
17
+ "const": "initialize"
18
+ },
19
+ "params": {
20
+ "type": "object",
21
+ "properties": {
22
+ "clientInfo": {
23
+ "type": "object",
24
+ "properties": {
25
+ "name": {
26
+ "type": "string"
27
+ },
28
+ "version": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "required": ["name", "version"],
33
+ "additionalProperties": false
34
+ },
35
+ "capabilities": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ }
41
+ },
42
+ "required": ["clientInfo", "capabilities"],
43
+ "additionalProperties": false
44
+ }
45
+ },
46
+ "required": ["jsonrpc", "id", "method", "params"],
47
+ "additionalProperties": false
48
+ },
49
+ {
50
+ "type": "object",
51
+ "properties": {
52
+ "jsonrpc": {
53
+ "$ref": "#/$defs/shape-488349aa39"
54
+ },
55
+ "id": {
56
+ "$ref": "#/$defs/Id"
57
+ },
58
+ "method": {
59
+ "type": "string",
60
+ "const": "session/create"
61
+ },
62
+ "params": {
63
+ "type": "object",
64
+ "properties": {
65
+ "session": {
66
+ "type": "string"
67
+ },
68
+ "cwd": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": ["cwd"],
73
+ "additionalProperties": false
74
+ }
75
+ },
76
+ "required": ["jsonrpc", "id", "method", "params"],
77
+ "additionalProperties": false
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "jsonrpc": {
83
+ "$ref": "#/$defs/shape-488349aa39"
84
+ },
85
+ "id": {
86
+ "$ref": "#/$defs/Id"
87
+ },
88
+ "method": {
89
+ "type": "string",
90
+ "const": "session/open"
91
+ },
92
+ "params": {
93
+ "type": "object",
94
+ "properties": {
95
+ "session": {
96
+ "type": "string"
97
+ },
98
+ "cwd": {
99
+ "type": "string"
100
+ },
101
+ "fromSeq": {
102
+ "type": "integer",
103
+ "minimum": 0,
104
+ "maximum": 9007199254740991
105
+ }
106
+ },
107
+ "required": ["cwd"],
108
+ "additionalProperties": false
109
+ }
110
+ },
111
+ "required": ["jsonrpc", "id", "method", "params"],
112
+ "additionalProperties": false
113
+ },
114
+ {
115
+ "type": "object",
116
+ "properties": {
117
+ "jsonrpc": {
118
+ "$ref": "#/$defs/shape-488349aa39"
119
+ },
120
+ "id": {
121
+ "$ref": "#/$defs/Id"
122
+ },
123
+ "method": {
124
+ "type": "string",
125
+ "const": "session/list"
126
+ },
127
+ "params": {
128
+ "type": "object",
129
+ "properties": {
130
+ "cursor": {
131
+ "type": "string"
132
+ }
133
+ },
134
+ "additionalProperties": false
135
+ }
136
+ },
137
+ "required": ["jsonrpc", "id", "method", "params"],
138
+ "additionalProperties": false
139
+ },
140
+ {
141
+ "type": "object",
142
+ "properties": {
143
+ "jsonrpc": {
144
+ "$ref": "#/$defs/shape-488349aa39"
145
+ },
146
+ "id": {
147
+ "$ref": "#/$defs/Id"
148
+ },
149
+ "method": {
150
+ "type": "string",
151
+ "const": "turn/start"
152
+ },
153
+ "params": {
154
+ "type": "object",
155
+ "properties": {
156
+ "session": {
157
+ "type": "string"
158
+ },
159
+ "input": {
160
+ "$ref": "#/$defs/shape-72593e4e67"
161
+ }
162
+ },
163
+ "required": ["session", "input"],
164
+ "additionalProperties": false
165
+ },
166
+ "trace": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "required": ["jsonrpc", "id", "method", "params"],
171
+ "additionalProperties": false
172
+ },
173
+ {
174
+ "type": "object",
175
+ "properties": {
176
+ "jsonrpc": {
177
+ "$ref": "#/$defs/shape-488349aa39"
178
+ },
179
+ "id": {
180
+ "$ref": "#/$defs/Id"
181
+ },
182
+ "method": {
183
+ "type": "string",
184
+ "enum": ["turn/steer", "turn/followUp"]
185
+ },
186
+ "params": {
187
+ "type": "object",
188
+ "properties": {
189
+ "session": {
190
+ "type": "string"
191
+ },
192
+ "input": {
193
+ "$ref": "#/$defs/shape-72593e4e67"
194
+ }
195
+ },
196
+ "required": ["session", "input"],
197
+ "additionalProperties": false
198
+ }
199
+ },
200
+ "required": ["jsonrpc", "id", "method", "params"],
201
+ "additionalProperties": false
202
+ },
203
+ {
204
+ "type": "object",
205
+ "properties": {
206
+ "jsonrpc": {
207
+ "$ref": "#/$defs/shape-488349aa39"
208
+ },
209
+ "id": {
210
+ "$ref": "#/$defs/Id"
211
+ },
212
+ "method": {
213
+ "type": "string",
214
+ "const": "turn/interrupt"
215
+ },
216
+ "params": {
217
+ "type": "object",
218
+ "properties": {
219
+ "session": {
220
+ "type": "string"
221
+ },
222
+ "reason": {
223
+ "type": "string"
224
+ }
225
+ },
226
+ "required": ["session"],
227
+ "additionalProperties": false
228
+ }
229
+ },
230
+ "required": ["jsonrpc", "id", "method", "params"],
231
+ "additionalProperties": false
232
+ },
233
+ {
234
+ "type": "object",
235
+ "properties": {
236
+ "jsonrpc": {
237
+ "$ref": "#/$defs/shape-488349aa39"
238
+ },
239
+ "id": {
240
+ "$ref": "#/$defs/Id"
241
+ },
242
+ "method": {
243
+ "type": "string",
244
+ "const": "approval/list"
245
+ },
246
+ "params": {
247
+ "type": "object",
248
+ "properties": {
249
+ "session": {
250
+ "type": "string"
251
+ }
252
+ },
253
+ "required": ["session"],
254
+ "additionalProperties": false
255
+ }
256
+ },
257
+ "required": ["jsonrpc", "id", "method", "params"],
258
+ "additionalProperties": false
259
+ },
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "jsonrpc": {
264
+ "$ref": "#/$defs/shape-488349aa39"
265
+ },
266
+ "id": {
267
+ "$ref": "#/$defs/Id"
268
+ },
269
+ "method": {
270
+ "type": "string",
271
+ "enum": ["session/checkout", "session/fork"]
272
+ },
273
+ "params": {
274
+ "type": "object",
275
+ "properties": {
276
+ "session": {
277
+ "type": "string"
278
+ },
279
+ "entryId": {
280
+ "type": "string"
281
+ }
282
+ },
283
+ "required": ["session", "entryId"],
284
+ "additionalProperties": false
285
+ }
286
+ },
287
+ "required": ["jsonrpc", "id", "method", "params"],
288
+ "additionalProperties": false
289
+ },
290
+ {
291
+ "type": "object",
292
+ "properties": {
293
+ "jsonrpc": {
294
+ "$ref": "#/$defs/shape-488349aa39"
295
+ },
296
+ "method": {
297
+ "type": "string",
298
+ "const": "$/cancelRequest"
299
+ },
300
+ "params": {
301
+ "type": "object",
302
+ "properties": {
303
+ "id": {
304
+ "$ref": "#/$defs/Id"
305
+ }
306
+ },
307
+ "required": ["id"],
308
+ "additionalProperties": false
309
+ }
310
+ },
311
+ "required": ["jsonrpc", "method", "params"],
312
+ "additionalProperties": false
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "anyOf": [
318
+ {
319
+ "type": "object",
320
+ "properties": {
321
+ "jsonrpc": {
322
+ "$ref": "#/$defs/shape-488349aa39"
323
+ },
324
+ "id": {
325
+ "$ref": "#/$defs/Id"
326
+ },
327
+ "result": {
328
+ "anyOf": [
329
+ {
330
+ "type": "object",
331
+ "properties": {
332
+ "resolutions": {
333
+ "type": "array",
334
+ "items": {
335
+ "$ref": "#/$defs/Resolution"
336
+ }
337
+ }
338
+ },
339
+ "required": ["resolutions"],
340
+ "additionalProperties": false
341
+ },
342
+ {
343
+ "type": "object",
344
+ "properties": {
345
+ "content": {
346
+ "type": "array",
347
+ "items": {
348
+ "$ref": "#/$defs/ModelContent"
349
+ }
350
+ },
351
+ "isError": {
352
+ "type": "boolean"
353
+ }
354
+ },
355
+ "required": ["content", "isError"],
356
+ "additionalProperties": false
357
+ }
358
+ ]
359
+ }
360
+ },
361
+ "required": ["jsonrpc", "id", "result"],
362
+ "additionalProperties": false
363
+ },
364
+ {
365
+ "type": "object",
366
+ "properties": {
367
+ "jsonrpc": {
368
+ "$ref": "#/$defs/shape-488349aa39"
369
+ },
370
+ "id": {
371
+ "anyOf": [
372
+ {
373
+ "$ref": "#/$defs/Id"
374
+ },
375
+ {
376
+ "type": "null"
377
+ }
378
+ ]
379
+ },
380
+ "error": {
381
+ "$ref": "#/$defs/RpcError"
382
+ }
383
+ },
384
+ "required": ["jsonrpc", "id", "error"],
385
+ "additionalProperties": false
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "anyOf": [
391
+ {
392
+ "type": "object",
393
+ "properties": {
394
+ "jsonrpc": {
395
+ "$ref": "#/$defs/shape-488349aa39"
396
+ },
397
+ "id": {
398
+ "$ref": "#/$defs/Id"
399
+ },
400
+ "result": {
401
+ "anyOf": [
402
+ {
403
+ "type": "object",
404
+ "properties": {
405
+ "serverInfo": {
406
+ "type": "object",
407
+ "properties": {
408
+ "name": {
409
+ "type": "string"
410
+ },
411
+ "version": {
412
+ "type": "string"
413
+ },
414
+ "sdkVersion": {
415
+ "type": "string"
416
+ },
417
+ "specVersion": {
418
+ "type": "string",
419
+ "const": "v1"
420
+ }
421
+ },
422
+ "required": ["name", "version", "sdkVersion", "specVersion"],
423
+ "additionalProperties": false
424
+ },
425
+ "capabilities": {
426
+ "type": "array",
427
+ "items": {
428
+ "type": "string"
429
+ }
430
+ },
431
+ "experimental": {
432
+ "type": "array",
433
+ "items": {
434
+ "type": "string"
435
+ }
436
+ },
437
+ "pending": {
438
+ "type": "array",
439
+ "items": {
440
+ "type": "object",
441
+ "properties": {
442
+ "session": {
443
+ "type": "string"
444
+ },
445
+ "request": {
446
+ "$ref": "#/$defs/SignedPendingRequest"
447
+ }
448
+ },
449
+ "required": ["session", "request"],
450
+ "additionalProperties": false
451
+ }
452
+ }
453
+ },
454
+ "required": ["serverInfo", "capabilities", "experimental", "pending"],
455
+ "additionalProperties": false
456
+ },
457
+ {
458
+ "type": "object",
459
+ "properties": {
460
+ "session": {
461
+ "type": "string"
462
+ },
463
+ "head": {
464
+ "type": ["string", "null"]
465
+ }
466
+ },
467
+ "required": ["session", "head"],
468
+ "additionalProperties": false
469
+ },
470
+ {
471
+ "type": "object",
472
+ "properties": {
473
+ "sessions": {
474
+ "type": "array",
475
+ "items": {
476
+ "type": "object",
477
+ "properties": {
478
+ "session": {
479
+ "type": "string"
480
+ },
481
+ "startedAt": {
482
+ "type": "string"
483
+ },
484
+ "lastEntryAt": {
485
+ "type": "string"
486
+ },
487
+ "entryCount": {
488
+ "type": "integer",
489
+ "minimum": 0,
490
+ "maximum": 9007199254740991
491
+ }
492
+ },
493
+ "required": ["session", "startedAt", "lastEntryAt", "entryCount"],
494
+ "additionalProperties": false
495
+ }
496
+ },
497
+ "nextCursor": {
498
+ "type": "string"
499
+ }
500
+ },
501
+ "required": ["sessions"],
502
+ "additionalProperties": false
503
+ },
504
+ {
505
+ "anyOf": [
506
+ {
507
+ "type": "object",
508
+ "properties": {
509
+ "accepted": {
510
+ "type": "boolean",
511
+ "const": true
512
+ },
513
+ "turn": {
514
+ "type": "string"
515
+ }
516
+ },
517
+ "required": ["accepted", "turn"],
518
+ "additionalProperties": false
519
+ },
520
+ {
521
+ "type": "object",
522
+ "properties": {
523
+ "accepted": {
524
+ "type": "boolean",
525
+ "const": false
526
+ },
527
+ "reason": {
528
+ "type": "string",
529
+ "enum": ["busy", "locked", "invalid"]
530
+ }
531
+ },
532
+ "required": ["accepted", "reason"],
533
+ "additionalProperties": false
534
+ }
535
+ ]
536
+ },
537
+ {
538
+ "type": "object",
539
+ "properties": {
540
+ "interrupted": {
541
+ "type": "boolean"
542
+ }
543
+ },
544
+ "required": ["interrupted"],
545
+ "additionalProperties": false
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "pending": {
551
+ "type": "array",
552
+ "items": {
553
+ "$ref": "#/$defs/SignedPendingRequest"
554
+ }
555
+ }
556
+ },
557
+ "required": ["pending"],
558
+ "additionalProperties": false
559
+ },
560
+ {
561
+ "type": "object",
562
+ "properties": {
563
+ "session": {
564
+ "type": "string"
565
+ },
566
+ "head": {
567
+ "type": "string"
568
+ }
569
+ },
570
+ "required": ["session", "head"],
571
+ "additionalProperties": false
572
+ }
573
+ ]
574
+ }
575
+ },
576
+ "required": ["jsonrpc", "id", "result"],
577
+ "additionalProperties": false
578
+ },
579
+ {
580
+ "type": "object",
581
+ "properties": {
582
+ "jsonrpc": {
583
+ "$ref": "#/$defs/shape-488349aa39"
584
+ },
585
+ "id": {
586
+ "anyOf": [
587
+ {
588
+ "$ref": "#/$defs/Id"
589
+ },
590
+ {
591
+ "type": "null"
592
+ }
593
+ ]
594
+ },
595
+ "error": {
596
+ "$ref": "#/$defs/RpcError"
597
+ }
598
+ },
599
+ "required": ["jsonrpc", "id", "error"],
600
+ "additionalProperties": false
601
+ }
602
+ ]
603
+ },
604
+ {
605
+ "anyOf": [
606
+ {
607
+ "type": "object",
608
+ "properties": {
609
+ "jsonrpc": {
610
+ "$ref": "#/$defs/shape-488349aa39"
611
+ },
612
+ "id": {
613
+ "type": "string"
614
+ },
615
+ "method": {
616
+ "type": "string",
617
+ "const": "approval/request"
618
+ },
619
+ "params": {
620
+ "type": "object",
621
+ "properties": {
622
+ "session": {
623
+ "type": "string"
624
+ },
625
+ "request": {
626
+ "$ref": "#/$defs/SignedPendingRequest"
627
+ },
628
+ "group": {
629
+ "type": "array",
630
+ "items": {
631
+ "type": "string"
632
+ }
633
+ }
634
+ },
635
+ "required": ["session", "request"],
636
+ "additionalProperties": false
637
+ }
638
+ },
639
+ "required": ["jsonrpc", "id", "method", "params"],
640
+ "additionalProperties": false
641
+ },
642
+ {
643
+ "type": "object",
644
+ "properties": {
645
+ "jsonrpc": {
646
+ "$ref": "#/$defs/shape-488349aa39"
647
+ },
648
+ "id": {
649
+ "type": "string"
650
+ },
651
+ "method": {
652
+ "type": "string",
653
+ "const": "clarification/request"
654
+ },
655
+ "params": {
656
+ "type": "object",
657
+ "properties": {
658
+ "session": {
659
+ "type": "string"
660
+ },
661
+ "request": {
662
+ "$ref": "#/$defs/SignedPendingRequest"
663
+ }
664
+ },
665
+ "required": ["session", "request"],
666
+ "additionalProperties": false
667
+ }
668
+ },
669
+ "required": ["jsonrpc", "id", "method", "params"],
670
+ "additionalProperties": false
671
+ },
672
+ {
673
+ "type": "object",
674
+ "properties": {
675
+ "jsonrpc": {
676
+ "$ref": "#/$defs/shape-488349aa39"
677
+ },
678
+ "id": {
679
+ "type": "string"
680
+ },
681
+ "method": {
682
+ "type": "string",
683
+ "const": "tool/call"
684
+ },
685
+ "params": {
686
+ "type": "object",
687
+ "properties": {
688
+ "session": {
689
+ "type": "string"
690
+ },
691
+ "callId": {
692
+ "type": "string"
693
+ },
694
+ "tool": {
695
+ "type": "string"
696
+ },
697
+ "input": {}
698
+ },
699
+ "required": ["session", "callId", "tool", "input"],
700
+ "additionalProperties": false
701
+ }
702
+ },
703
+ "required": ["jsonrpc", "id", "method", "params"],
704
+ "additionalProperties": false
705
+ }
706
+ ]
707
+ },
708
+ {
709
+ "anyOf": [
710
+ {
711
+ "type": "object",
712
+ "properties": {
713
+ "jsonrpc": {
714
+ "$ref": "#/$defs/shape-488349aa39"
715
+ },
716
+ "method": {
717
+ "type": "string",
718
+ "const": "event"
719
+ },
720
+ "params": {
721
+ "type": "object",
722
+ "properties": {
723
+ "session": {
724
+ "type": "string"
725
+ },
726
+ "seq": {
727
+ "type": "integer",
728
+ "minimum": 0,
729
+ "maximum": 9007199254740991
730
+ },
731
+ "event": {
732
+ "anyOf": [
733
+ {
734
+ "oneOf": [
735
+ {
736
+ "type": "object",
737
+ "properties": {
738
+ "type": {
739
+ "type": "string",
740
+ "const": "entry_appended"
741
+ },
742
+ "entry": {
743
+ "$ref": "#/$defs/SessionEntry"
744
+ }
745
+ },
746
+ "required": ["type", "entry"],
747
+ "additionalProperties": false
748
+ },
749
+ {
750
+ "type": "object",
751
+ "properties": {
752
+ "type": {
753
+ "type": "string",
754
+ "const": "budget_warning"
755
+ },
756
+ "spentUsd": {
757
+ "type": "number"
758
+ },
759
+ "capUsd": {
760
+ "type": "number"
761
+ }
762
+ },
763
+ "required": ["type", "spentUsd", "capUsd"],
764
+ "additionalProperties": false
765
+ },
766
+ {
767
+ "type": "object",
768
+ "properties": {
769
+ "type": {
770
+ "type": "string",
771
+ "const": "context_fill"
772
+ },
773
+ "tokens": {
774
+ "type": "number"
775
+ },
776
+ "budget": {
777
+ "type": "number"
778
+ }
779
+ },
780
+ "required": ["type", "tokens", "budget"],
781
+ "additionalProperties": false
782
+ },
783
+ {
784
+ "type": "object",
785
+ "properties": {
786
+ "type": {
787
+ "type": "string",
788
+ "const": "completion_check"
789
+ },
790
+ "entry": {
791
+ "$ref": "#/$defs/SessionEntry"
792
+ }
793
+ },
794
+ "required": ["type", "entry"],
795
+ "additionalProperties": false
796
+ },
797
+ {
798
+ "type": "object",
799
+ "properties": {
800
+ "type": {
801
+ "type": "string",
802
+ "const": "events_dropped"
803
+ },
804
+ "count": {
805
+ "type": "integer",
806
+ "minimum": 1,
807
+ "maximum": 9007199254740991
808
+ }
809
+ },
810
+ "required": ["type", "count"],
811
+ "additionalProperties": false
812
+ }
813
+ ]
814
+ },
815
+ {
816
+ "type": "object",
817
+ "properties": {
818
+ "type": {
819
+ "type": "string",
820
+ "enum": [
821
+ "run_start",
822
+ "step_start",
823
+ "model_call_start",
824
+ "retry",
825
+ "raw",
826
+ "text_start",
827
+ "text_delta",
828
+ "text_end",
829
+ "reasoning_start",
830
+ "reasoning_delta",
831
+ "reasoning_end",
832
+ "tool_input_start",
833
+ "tool_input_delta",
834
+ "tool_input_end",
835
+ "warning",
836
+ "model_call_end",
837
+ "context_transformed",
838
+ "hook_error",
839
+ "steer_applied",
840
+ "tool_call_start",
841
+ "approval_request",
842
+ "resolution_rejected",
843
+ "tool_call_update",
844
+ "tool_call_end",
845
+ "step_end",
846
+ "error",
847
+ "abort",
848
+ "agent_settled",
849
+ "run_end"
850
+ ]
851
+ },
852
+ "runId": {
853
+ "type": "string"
854
+ },
855
+ "seq": {
856
+ "type": "integer",
857
+ "minimum": 0,
858
+ "maximum": 9007199254740991
859
+ },
860
+ "stepIndex": {
861
+ "type": "integer",
862
+ "minimum": 0,
863
+ "maximum": 9007199254740991
864
+ },
865
+ "timestamp": {
866
+ "type": "string"
867
+ }
868
+ },
869
+ "required": ["type", "runId", "seq", "stepIndex", "timestamp"],
870
+ "additionalProperties": {}
871
+ }
872
+ ]
873
+ }
874
+ },
875
+ "required": ["session", "seq", "event"],
876
+ "additionalProperties": false
877
+ }
878
+ },
879
+ "required": ["jsonrpc", "method", "params"],
880
+ "additionalProperties": false
881
+ },
882
+ {
883
+ "type": "object",
884
+ "properties": {
885
+ "jsonrpc": {
886
+ "$ref": "#/$defs/shape-488349aa39"
887
+ },
888
+ "method": {
889
+ "type": "string",
890
+ "const": "turn/settled"
891
+ },
892
+ "params": {
893
+ "type": "object",
894
+ "properties": {
895
+ "session": {
896
+ "type": "string"
897
+ },
898
+ "turn": {
899
+ "type": "string"
900
+ },
901
+ "result": {
902
+ "type": "object",
903
+ "properties": {
904
+ "stopReason": {
905
+ "type": "string",
906
+ "enum": [
907
+ "done",
908
+ "max_steps",
909
+ "aborted",
910
+ "no_progress",
911
+ "budget",
912
+ "error",
913
+ "stopped",
914
+ "awaiting_approval",
915
+ "clarification_requested"
916
+ ]
917
+ },
918
+ "steps": {
919
+ "type": "integer",
920
+ "minimum": 0,
921
+ "maximum": 9007199254740991
922
+ },
923
+ "costUsd": {
924
+ "type": ["number", "null"]
925
+ },
926
+ "error": {
927
+ "type": "object",
928
+ "properties": {
929
+ "kind": {
930
+ "type": "string"
931
+ },
932
+ "message": {
933
+ "type": "string"
934
+ }
935
+ },
936
+ "required": ["kind", "message"],
937
+ "additionalProperties": false
938
+ }
939
+ },
940
+ "required": ["stopReason", "steps", "costUsd"],
941
+ "additionalProperties": false
942
+ }
943
+ },
944
+ "required": ["session", "turn", "result"],
945
+ "additionalProperties": false
946
+ }
947
+ },
948
+ "required": ["jsonrpc", "method", "params"],
949
+ "additionalProperties": false
950
+ },
951
+ {
952
+ "type": "object",
953
+ "properties": {
954
+ "jsonrpc": {
955
+ "$ref": "#/$defs/shape-488349aa39"
956
+ },
957
+ "method": {
958
+ "type": "string",
959
+ "const": "$/cancelRequest"
960
+ },
961
+ "params": {
962
+ "type": "object",
963
+ "properties": {
964
+ "id": {
965
+ "$ref": "#/$defs/Id"
966
+ }
967
+ },
968
+ "required": ["id"],
969
+ "additionalProperties": false
970
+ }
971
+ },
972
+ "required": ["jsonrpc", "method", "params"],
973
+ "additionalProperties": false
974
+ }
975
+ ]
976
+ }
977
+ ],
978
+ "$defs": {
979
+ "shape-488349aa39": {
980
+ "type": "string",
981
+ "const": "2.0"
982
+ },
983
+ "Id": {
984
+ "anyOf": [
985
+ {
986
+ "$ref": "#/$defs/shape-cddf8275af"
987
+ },
988
+ {
989
+ "$ref": "#/$defs/shape-00404e6864"
990
+ }
991
+ ]
992
+ },
993
+ "shape-cddf8275af": {
994
+ "type": "number"
995
+ },
996
+ "shape-00404e6864": {
997
+ "type": "string"
998
+ },
999
+ "shape-72593e4e67": {
1000
+ "type": "array",
1001
+ "items": {
1002
+ "$ref": "#/$defs/ContentBlock"
1003
+ }
1004
+ },
1005
+ "ContentBlock": {
1006
+ "$ref": "#/$defs/shape-d8e6e732c9"
1007
+ },
1008
+ "shape-106ca742d8": {
1009
+ "type": "object",
1010
+ "properties": {
1011
+ "type": {
1012
+ "type": "string",
1013
+ "const": "text"
1014
+ },
1015
+ "text": {
1016
+ "type": "string"
1017
+ }
1018
+ },
1019
+ "required": ["type", "text"],
1020
+ "additionalProperties": false
1021
+ },
1022
+ "shape-0c9c4157cf": {
1023
+ "type": "object",
1024
+ "properties": {
1025
+ "type": {
1026
+ "type": "string",
1027
+ "const": "reasoning"
1028
+ },
1029
+ "text": {
1030
+ "type": "string"
1031
+ },
1032
+ "signature": {
1033
+ "type": "object",
1034
+ "properties": {
1035
+ "api": {
1036
+ "type": "string"
1037
+ },
1038
+ "provider": {
1039
+ "type": "string"
1040
+ },
1041
+ "model": {
1042
+ "type": "string"
1043
+ },
1044
+ "value": {
1045
+ "type": "string"
1046
+ }
1047
+ },
1048
+ "required": ["api", "provider", "model", "value"],
1049
+ "additionalProperties": false
1050
+ }
1051
+ },
1052
+ "required": ["type", "text"],
1053
+ "additionalProperties": false
1054
+ },
1055
+ "shape-e20db0d950": {
1056
+ "type": "object",
1057
+ "properties": {
1058
+ "type": {
1059
+ "type": "string",
1060
+ "const": "image"
1061
+ },
1062
+ "mediaType": {
1063
+ "type": "string"
1064
+ },
1065
+ "data": {
1066
+ "type": "string"
1067
+ }
1068
+ },
1069
+ "required": ["type", "mediaType", "data"],
1070
+ "additionalProperties": false
1071
+ },
1072
+ "shape-26c63471f2": {
1073
+ "type": "object",
1074
+ "properties": {
1075
+ "type": {
1076
+ "type": "string",
1077
+ "const": "tool_call"
1078
+ },
1079
+ "callId": {
1080
+ "type": "string"
1081
+ },
1082
+ "name": {
1083
+ "type": "string"
1084
+ },
1085
+ "input": {}
1086
+ },
1087
+ "required": ["type", "callId", "name", "input"],
1088
+ "additionalProperties": false
1089
+ },
1090
+ "shape-d8e6e732c9": {
1091
+ "oneOf": [
1092
+ {
1093
+ "$ref": "#/$defs/shape-106ca742d8"
1094
+ },
1095
+ {
1096
+ "$ref": "#/$defs/shape-0c9c4157cf"
1097
+ },
1098
+ {
1099
+ "$ref": "#/$defs/shape-e20db0d950"
1100
+ },
1101
+ {
1102
+ "$ref": "#/$defs/shape-26c63471f2"
1103
+ }
1104
+ ]
1105
+ },
1106
+ "Resolution": {
1107
+ "$ref": "#/$defs/shape-90890766e5"
1108
+ },
1109
+ "shape-35ea71b268": {
1110
+ "type": "object",
1111
+ "properties": {
1112
+ "requestId": {
1113
+ "type": "string"
1114
+ },
1115
+ "decision": {
1116
+ "type": "string",
1117
+ "enum": ["allow", "deny"]
1118
+ },
1119
+ "reason": {
1120
+ "type": "string"
1121
+ },
1122
+ "by": {
1123
+ "type": "string"
1124
+ }
1125
+ },
1126
+ "required": ["requestId", "decision"],
1127
+ "additionalProperties": false
1128
+ },
1129
+ "shape-e02ea8c4ec": {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "requestId": {
1133
+ "type": "string"
1134
+ },
1135
+ "answer": {
1136
+ "type": "string"
1137
+ },
1138
+ "by": {
1139
+ "type": "string"
1140
+ }
1141
+ },
1142
+ "required": ["requestId", "answer"],
1143
+ "additionalProperties": false
1144
+ },
1145
+ "shape-90890766e5": {
1146
+ "anyOf": [
1147
+ {
1148
+ "$ref": "#/$defs/shape-35ea71b268"
1149
+ },
1150
+ {
1151
+ "$ref": "#/$defs/shape-e02ea8c4ec"
1152
+ }
1153
+ ]
1154
+ },
1155
+ "ModelContent": {
1156
+ "$ref": "#/$defs/shape-0541b81445"
1157
+ },
1158
+ "shape-0541b81445": {
1159
+ "oneOf": [
1160
+ {
1161
+ "$ref": "#/$defs/shape-106ca742d8"
1162
+ },
1163
+ {
1164
+ "$ref": "#/$defs/shape-e20db0d950"
1165
+ }
1166
+ ]
1167
+ },
1168
+ "RpcError": {
1169
+ "type": "object",
1170
+ "properties": {
1171
+ "code": {
1172
+ "$ref": "#/$defs/shape-e5ae5c0f5f"
1173
+ },
1174
+ "message": {
1175
+ "$ref": "#/$defs/shape-00404e6864"
1176
+ },
1177
+ "data": {
1178
+ "$ref": "#/$defs/shape-44136fa355"
1179
+ }
1180
+ },
1181
+ "required": ["code", "message"],
1182
+ "additionalProperties": false
1183
+ },
1184
+ "shape-e5ae5c0f5f": {
1185
+ "type": "integer",
1186
+ "minimum": -9007199254740991,
1187
+ "maximum": 9007199254740991
1188
+ },
1189
+ "shape-44136fa355": {},
1190
+ "SignedPendingRequest": {
1191
+ "$ref": "#/$defs/shape-e8d48d7dfc"
1192
+ },
1193
+ "shape-be91c07e70": {
1194
+ "type": "string",
1195
+ "enum": ["approval", "clarification"]
1196
+ },
1197
+ "shape-e8d48d7dfc": {
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "id": {
1201
+ "$ref": "#/$defs/shape-00404e6864"
1202
+ },
1203
+ "kind": {
1204
+ "$ref": "#/$defs/shape-be91c07e70"
1205
+ },
1206
+ "callId": {
1207
+ "$ref": "#/$defs/shape-00404e6864"
1208
+ },
1209
+ "tool": {
1210
+ "$ref": "#/$defs/shape-00404e6864"
1211
+ },
1212
+ "inputHash": {
1213
+ "$ref": "#/$defs/shape-00404e6864"
1214
+ },
1215
+ "policyVersion": {
1216
+ "$ref": "#/$defs/shape-00404e6864"
1217
+ },
1218
+ "appHash": {
1219
+ "$ref": "#/$defs/shape-00404e6864"
1220
+ },
1221
+ "question": {
1222
+ "$ref": "#/$defs/shape-00404e6864"
1223
+ },
1224
+ "reason": {
1225
+ "$ref": "#/$defs/shape-00404e6864"
1226
+ },
1227
+ "keyId": {
1228
+ "$ref": "#/$defs/shape-00404e6864"
1229
+ },
1230
+ "signature": {
1231
+ "$ref": "#/$defs/shape-00404e6864"
1232
+ },
1233
+ "createdAt": {
1234
+ "$ref": "#/$defs/shape-00404e6864"
1235
+ }
1236
+ },
1237
+ "required": ["id", "kind", "callId", "tool", "inputHash", "keyId", "signature", "createdAt"],
1238
+ "additionalProperties": false
1239
+ },
1240
+ "SessionEntry": {
1241
+ "oneOf": [
1242
+ {
1243
+ "$ref": "#/$defs/shape-2ca31167ed"
1244
+ },
1245
+ {
1246
+ "$ref": "#/$defs/shape-22fcb79a8f"
1247
+ },
1248
+ {
1249
+ "$ref": "#/$defs/shape-d2c842cd18"
1250
+ },
1251
+ {
1252
+ "$ref": "#/$defs/shape-70f604c7e1"
1253
+ },
1254
+ {
1255
+ "$ref": "#/$defs/shape-ee4fe95261"
1256
+ },
1257
+ {
1258
+ "$ref": "#/$defs/shape-577dea7485"
1259
+ },
1260
+ {
1261
+ "$ref": "#/$defs/shape-5c323794ce"
1262
+ },
1263
+ {
1264
+ "$ref": "#/$defs/shape-d6df0f1a8e"
1265
+ },
1266
+ {
1267
+ "$ref": "#/$defs/shape-4e9a9a0e7e"
1268
+ },
1269
+ {
1270
+ "$ref": "#/$defs/shape-ea982aa870"
1271
+ },
1272
+ {
1273
+ "$ref": "#/$defs/shape-dfbbaedf70"
1274
+ },
1275
+ {
1276
+ "$ref": "#/$defs/shape-843eb5519c"
1277
+ },
1278
+ {
1279
+ "$ref": "#/$defs/shape-cfd60800b6"
1280
+ },
1281
+ {
1282
+ "$ref": "#/$defs/shape-ecec6bb915"
1283
+ },
1284
+ {
1285
+ "$ref": "#/$defs/shape-edc9ba2d47"
1286
+ },
1287
+ {
1288
+ "$ref": "#/$defs/shape-bd3038f936"
1289
+ },
1290
+ {
1291
+ "$ref": "#/$defs/shape-16c3a65781"
1292
+ },
1293
+ {
1294
+ "$ref": "#/$defs/shape-0372685c9f"
1295
+ },
1296
+ {
1297
+ "$ref": "#/$defs/shape-ef77d5988f"
1298
+ },
1299
+ {
1300
+ "$ref": "#/$defs/shape-0ae3e72e7c"
1301
+ },
1302
+ {
1303
+ "$ref": "#/$defs/shape-e7970efd50"
1304
+ }
1305
+ ]
1306
+ },
1307
+ "shape-2ca31167ed": {
1308
+ "type": "object",
1309
+ "properties": {
1310
+ "id": {
1311
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1312
+ },
1313
+ "parentId": {
1314
+ "$ref": "#/$defs/shape-174e29b899"
1315
+ },
1316
+ "seq": {
1317
+ "$ref": "#/$defs/shape-83f6485d0d"
1318
+ },
1319
+ "timestamp": {
1320
+ "$ref": "#/$defs/shape-4a251fc3b0"
1321
+ },
1322
+ "origin": {
1323
+ "$ref": "#/$defs/shape-3a32340578"
1324
+ },
1325
+ "type": {
1326
+ "type": "string",
1327
+ "const": "session_header"
1328
+ },
1329
+ "formatVersion": {
1330
+ "type": "number",
1331
+ "const": 1
1332
+ },
1333
+ "harnessVersion": {
1334
+ "type": "string"
1335
+ },
1336
+ "sdkVersion": {
1337
+ "type": "string"
1338
+ },
1339
+ "defaultsHash": {
1340
+ "type": "string"
1341
+ },
1342
+ "capabilities": {
1343
+ "type": "array",
1344
+ "items": {
1345
+ "type": "string"
1346
+ }
1347
+ },
1348
+ "ablationHash": {
1349
+ "type": "string"
1350
+ },
1351
+ "parent": {
1352
+ "type": "object",
1353
+ "properties": {
1354
+ "session": {
1355
+ "type": "string"
1356
+ },
1357
+ "entryId": {
1358
+ "type": "string"
1359
+ }
1360
+ },
1361
+ "required": ["session", "entryId"],
1362
+ "additionalProperties": false
1363
+ },
1364
+ "spawn": {
1365
+ "anyOf": [
1366
+ {
1367
+ "type": "object",
1368
+ "properties": {
1369
+ "spawningCallId": {
1370
+ "type": "string"
1371
+ }
1372
+ },
1373
+ "required": ["spawningCallId"],
1374
+ "additionalProperties": false
1375
+ },
1376
+ {
1377
+ "type": "object",
1378
+ "properties": {
1379
+ "stepId": {
1380
+ "type": "string"
1381
+ }
1382
+ },
1383
+ "required": ["stepId"],
1384
+ "additionalProperties": false
1385
+ }
1386
+ ]
1387
+ },
1388
+ "product": {
1389
+ "type": "object",
1390
+ "properties": {
1391
+ "name": {
1392
+ "type": "string"
1393
+ },
1394
+ "version": {
1395
+ "type": "string"
1396
+ },
1397
+ "bundleHash": {
1398
+ "type": "string"
1399
+ }
1400
+ },
1401
+ "required": ["name", "version", "bundleHash"],
1402
+ "additionalProperties": false
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "id",
1407
+ "parentId",
1408
+ "seq",
1409
+ "timestamp",
1410
+ "origin",
1411
+ "type",
1412
+ "formatVersion",
1413
+ "harnessVersion",
1414
+ "sdkVersion",
1415
+ "defaultsHash",
1416
+ "capabilities",
1417
+ "ablationHash"
1418
+ ],
1419
+ "additionalProperties": false
1420
+ },
1421
+ "shape-f0ebe3aa93": {
1422
+ "type": "string",
1423
+ "minLength": 1
1424
+ },
1425
+ "shape-174e29b899": {
1426
+ "type": ["string", "null"]
1427
+ },
1428
+ "shape-83f6485d0d": {
1429
+ "type": "integer",
1430
+ "minimum": 0,
1431
+ "maximum": 9007199254740991
1432
+ },
1433
+ "shape-4a251fc3b0": {
1434
+ "type": "string",
1435
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
1436
+ },
1437
+ "shape-3a32340578": {
1438
+ "type": "string",
1439
+ "enum": ["user", "operator", "model", "tool", "harness"]
1440
+ },
1441
+ "shape-22fcb79a8f": {
1442
+ "type": "object",
1443
+ "properties": {
1444
+ "id": {
1445
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1446
+ },
1447
+ "parentId": {
1448
+ "$ref": "#/$defs/shape-174e29b899"
1449
+ },
1450
+ "seq": {
1451
+ "$ref": "#/$defs/shape-83f6485d0d"
1452
+ },
1453
+ "timestamp": {
1454
+ "$ref": "#/$defs/shape-4a251fc3b0"
1455
+ },
1456
+ "origin": {
1457
+ "$ref": "#/$defs/shape-3a32340578"
1458
+ },
1459
+ "type": {
1460
+ "type": "string",
1461
+ "const": "turn_start"
1462
+ },
1463
+ "runId": {
1464
+ "type": "string"
1465
+ },
1466
+ "mode": {
1467
+ "type": "string",
1468
+ "enum": ["run", "continue"]
1469
+ },
1470
+ "system": {
1471
+ "type": "string"
1472
+ }
1473
+ },
1474
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "runId", "mode", "system"],
1475
+ "additionalProperties": false
1476
+ },
1477
+ "shape-d2c842cd18": {
1478
+ "type": "object",
1479
+ "properties": {
1480
+ "id": {
1481
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1482
+ },
1483
+ "parentId": {
1484
+ "$ref": "#/$defs/shape-174e29b899"
1485
+ },
1486
+ "seq": {
1487
+ "$ref": "#/$defs/shape-83f6485d0d"
1488
+ },
1489
+ "timestamp": {
1490
+ "$ref": "#/$defs/shape-4a251fc3b0"
1491
+ },
1492
+ "origin": {
1493
+ "$ref": "#/$defs/shape-3a32340578"
1494
+ },
1495
+ "type": {
1496
+ "type": "string",
1497
+ "const": "message_block"
1498
+ },
1499
+ "messageId": {
1500
+ "type": "string"
1501
+ },
1502
+ "role": {
1503
+ "type": "string",
1504
+ "enum": ["user", "assistant"]
1505
+ },
1506
+ "index": {
1507
+ "type": "integer",
1508
+ "minimum": 0,
1509
+ "maximum": 9007199254740991
1510
+ },
1511
+ "block": {
1512
+ "$ref": "#/$defs/shape-d8e6e732c9"
1513
+ },
1514
+ "delivery": {
1515
+ "type": "string",
1516
+ "enum": ["input", "steer", "follow_up"]
1517
+ }
1518
+ },
1519
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "messageId", "role", "index", "block"],
1520
+ "additionalProperties": false
1521
+ },
1522
+ "shape-70f604c7e1": {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "id": {
1526
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1527
+ },
1528
+ "parentId": {
1529
+ "$ref": "#/$defs/shape-174e29b899"
1530
+ },
1531
+ "seq": {
1532
+ "$ref": "#/$defs/shape-83f6485d0d"
1533
+ },
1534
+ "timestamp": {
1535
+ "$ref": "#/$defs/shape-4a251fc3b0"
1536
+ },
1537
+ "origin": {
1538
+ "$ref": "#/$defs/shape-3a32340578"
1539
+ },
1540
+ "type": {
1541
+ "type": "string",
1542
+ "const": "message_end"
1543
+ },
1544
+ "messageId": {
1545
+ "type": "string"
1546
+ },
1547
+ "model": {
1548
+ "$ref": "#/$defs/shape-3f034db596"
1549
+ },
1550
+ "stopReason": {
1551
+ "type": "string",
1552
+ "enum": ["stop", "length", "tool_calls", "error", "aborted"]
1553
+ },
1554
+ "error": {
1555
+ "type": "object",
1556
+ "properties": {
1557
+ "kind": {
1558
+ "type": "string",
1559
+ "enum": ["retryable", "overflow", "quota", "fatal"]
1560
+ },
1561
+ "message": {
1562
+ "type": "string"
1563
+ },
1564
+ "status": {
1565
+ "type": "number"
1566
+ },
1567
+ "code": {
1568
+ "type": "string",
1569
+ "const": "thinking_prefix_mismatch"
1570
+ },
1571
+ "retryAfterMs": {
1572
+ "type": "number"
1573
+ }
1574
+ },
1575
+ "required": ["kind", "message"],
1576
+ "additionalProperties": false
1577
+ }
1578
+ },
1579
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "messageId", "model", "stopReason"],
1580
+ "additionalProperties": false
1581
+ },
1582
+ "shape-3f034db596": {
1583
+ "type": "object",
1584
+ "properties": {
1585
+ "api": {
1586
+ "type": "string"
1587
+ },
1588
+ "provider": {
1589
+ "type": "string"
1590
+ },
1591
+ "id": {
1592
+ "type": "string"
1593
+ }
1594
+ },
1595
+ "required": ["api", "provider", "id"],
1596
+ "additionalProperties": false
1597
+ },
1598
+ "shape-ee4fe95261": {
1599
+ "type": "object",
1600
+ "properties": {
1601
+ "id": {
1602
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1603
+ },
1604
+ "parentId": {
1605
+ "$ref": "#/$defs/shape-174e29b899"
1606
+ },
1607
+ "seq": {
1608
+ "$ref": "#/$defs/shape-83f6485d0d"
1609
+ },
1610
+ "timestamp": {
1611
+ "$ref": "#/$defs/shape-4a251fc3b0"
1612
+ },
1613
+ "origin": {
1614
+ "$ref": "#/$defs/shape-3a32340578"
1615
+ },
1616
+ "type": {
1617
+ "type": "string",
1618
+ "const": "tool_result"
1619
+ },
1620
+ "callId": {
1621
+ "type": "string"
1622
+ },
1623
+ "tool": {
1624
+ "type": "string"
1625
+ },
1626
+ "content": {
1627
+ "type": "array",
1628
+ "items": {
1629
+ "$ref": "#/$defs/shape-0541b81445"
1630
+ }
1631
+ },
1632
+ "isError": {
1633
+ "type": "boolean"
1634
+ },
1635
+ "details": {},
1636
+ "spill": {
1637
+ "type": "object",
1638
+ "properties": {
1639
+ "path": {
1640
+ "type": "string"
1641
+ },
1642
+ "bytes": {
1643
+ "type": "integer",
1644
+ "minimum": 0,
1645
+ "maximum": 9007199254740991
1646
+ }
1647
+ },
1648
+ "required": ["path", "bytes"],
1649
+ "additionalProperties": false
1650
+ },
1651
+ "trust": {
1652
+ "type": "string",
1653
+ "enum": ["trusted", "untrusted"]
1654
+ }
1655
+ },
1656
+ "required": [
1657
+ "id",
1658
+ "parentId",
1659
+ "seq",
1660
+ "timestamp",
1661
+ "origin",
1662
+ "type",
1663
+ "callId",
1664
+ "tool",
1665
+ "content",
1666
+ "isError",
1667
+ "trust"
1668
+ ],
1669
+ "additionalProperties": false
1670
+ },
1671
+ "shape-577dea7485": {
1672
+ "type": "object",
1673
+ "properties": {
1674
+ "id": {
1675
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1676
+ },
1677
+ "parentId": {
1678
+ "$ref": "#/$defs/shape-174e29b899"
1679
+ },
1680
+ "seq": {
1681
+ "$ref": "#/$defs/shape-83f6485d0d"
1682
+ },
1683
+ "timestamp": {
1684
+ "$ref": "#/$defs/shape-4a251fc3b0"
1685
+ },
1686
+ "origin": {
1687
+ "$ref": "#/$defs/shape-3a32340578"
1688
+ },
1689
+ "type": {
1690
+ "type": "string",
1691
+ "const": "code_call"
1692
+ },
1693
+ "callId": {
1694
+ "type": "string"
1695
+ },
1696
+ "tool": {
1697
+ "type": "string"
1698
+ },
1699
+ "input": {},
1700
+ "inputHash": {
1701
+ "type": "string"
1702
+ },
1703
+ "compensates": {
1704
+ "type": "string"
1705
+ }
1706
+ },
1707
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "callId", "tool", "input", "inputHash"],
1708
+ "additionalProperties": false
1709
+ },
1710
+ "shape-5c323794ce": {
1711
+ "type": "object",
1712
+ "properties": {
1713
+ "id": {
1714
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1715
+ },
1716
+ "parentId": {
1717
+ "$ref": "#/$defs/shape-174e29b899"
1718
+ },
1719
+ "seq": {
1720
+ "$ref": "#/$defs/shape-83f6485d0d"
1721
+ },
1722
+ "timestamp": {
1723
+ "$ref": "#/$defs/shape-4a251fc3b0"
1724
+ },
1725
+ "origin": {
1726
+ "$ref": "#/$defs/shape-3a32340578"
1727
+ },
1728
+ "type": {
1729
+ "type": "string",
1730
+ "const": "permission_decision"
1731
+ },
1732
+ "callId": {
1733
+ "type": "string"
1734
+ },
1735
+ "tool": {
1736
+ "type": "string"
1737
+ },
1738
+ "decision": {
1739
+ "type": "string",
1740
+ "enum": ["allow", "deny", "ask"]
1741
+ },
1742
+ "rule": {
1743
+ "type": "string"
1744
+ },
1745
+ "by": {
1746
+ "type": "string"
1747
+ },
1748
+ "policyVersion": {
1749
+ "type": "string"
1750
+ },
1751
+ "inputHash": {
1752
+ "type": "string"
1753
+ }
1754
+ },
1755
+ "required": [
1756
+ "id",
1757
+ "parentId",
1758
+ "seq",
1759
+ "timestamp",
1760
+ "origin",
1761
+ "type",
1762
+ "callId",
1763
+ "tool",
1764
+ "decision",
1765
+ "policyVersion",
1766
+ "inputHash"
1767
+ ],
1768
+ "additionalProperties": false
1769
+ },
1770
+ "shape-d6df0f1a8e": {
1771
+ "type": "object",
1772
+ "properties": {
1773
+ "id": {
1774
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1775
+ },
1776
+ "parentId": {
1777
+ "$ref": "#/$defs/shape-174e29b899"
1778
+ },
1779
+ "seq": {
1780
+ "$ref": "#/$defs/shape-83f6485d0d"
1781
+ },
1782
+ "timestamp": {
1783
+ "$ref": "#/$defs/shape-4a251fc3b0"
1784
+ },
1785
+ "origin": {
1786
+ "$ref": "#/$defs/shape-3a32340578"
1787
+ },
1788
+ "type": {
1789
+ "type": "string",
1790
+ "const": "usage"
1791
+ },
1792
+ "source": {
1793
+ "type": "string",
1794
+ "enum": ["model_call", "summary", "judge"]
1795
+ },
1796
+ "usage": {
1797
+ "$ref": "#/$defs/shape-572f2e8cad"
1798
+ },
1799
+ "lastAttemptUsage": {
1800
+ "$ref": "#/$defs/shape-572f2e8cad"
1801
+ },
1802
+ "cost": {
1803
+ "type": "object",
1804
+ "properties": {
1805
+ "total": {
1806
+ "type": ["number", "null"]
1807
+ },
1808
+ "basis": {
1809
+ "type": "string",
1810
+ "enum": ["provider", "catalog", "unknown"]
1811
+ },
1812
+ "currency": {
1813
+ "type": "string",
1814
+ "const": "USD"
1815
+ },
1816
+ "catalogAsOf": {
1817
+ "type": "string"
1818
+ }
1819
+ },
1820
+ "required": ["total", "basis", "currency"],
1821
+ "additionalProperties": false
1822
+ }
1823
+ },
1824
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "source", "usage", "cost"],
1825
+ "additionalProperties": false
1826
+ },
1827
+ "shape-572f2e8cad": {
1828
+ "type": "object",
1829
+ "properties": {
1830
+ "uncachedInput": {
1831
+ "type": "number"
1832
+ },
1833
+ "cacheRead": {
1834
+ "type": "number"
1835
+ },
1836
+ "cacheWrite": {
1837
+ "type": "object",
1838
+ "properties": {
1839
+ "5m": {
1840
+ "type": "number"
1841
+ },
1842
+ "1h": {
1843
+ "type": "number"
1844
+ }
1845
+ },
1846
+ "required": ["5m", "1h"],
1847
+ "additionalProperties": false
1848
+ },
1849
+ "output": {
1850
+ "type": "number"
1851
+ },
1852
+ "reasoning": {
1853
+ "type": "number"
1854
+ },
1855
+ "raw": {},
1856
+ "unreported": {
1857
+ "type": "boolean",
1858
+ "const": true
1859
+ }
1860
+ },
1861
+ "required": ["uncachedInput", "cacheRead", "cacheWrite", "output", "reasoning", "raw"],
1862
+ "additionalProperties": false
1863
+ },
1864
+ "shape-4e9a9a0e7e": {
1865
+ "type": "object",
1866
+ "properties": {
1867
+ "id": {
1868
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1869
+ },
1870
+ "parentId": {
1871
+ "$ref": "#/$defs/shape-174e29b899"
1872
+ },
1873
+ "seq": {
1874
+ "$ref": "#/$defs/shape-83f6485d0d"
1875
+ },
1876
+ "timestamp": {
1877
+ "$ref": "#/$defs/shape-4a251fc3b0"
1878
+ },
1879
+ "origin": {
1880
+ "$ref": "#/$defs/shape-3a32340578"
1881
+ },
1882
+ "type": {
1883
+ "type": "string",
1884
+ "const": "turn_end"
1885
+ },
1886
+ "runId": {
1887
+ "type": "string"
1888
+ },
1889
+ "stopReason": {
1890
+ "type": "string",
1891
+ "enum": [
1892
+ "done",
1893
+ "max_steps",
1894
+ "aborted",
1895
+ "no_progress",
1896
+ "budget",
1897
+ "error",
1898
+ "stopped",
1899
+ "awaiting_approval",
1900
+ "clarification_requested"
1901
+ ]
1902
+ },
1903
+ "steps": {
1904
+ "type": "integer",
1905
+ "minimum": 0,
1906
+ "maximum": 9007199254740991
1907
+ }
1908
+ },
1909
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "runId", "stopReason", "steps"],
1910
+ "additionalProperties": false
1911
+ },
1912
+ "shape-ea982aa870": {
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "id": {
1916
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1917
+ },
1918
+ "parentId": {
1919
+ "$ref": "#/$defs/shape-174e29b899"
1920
+ },
1921
+ "seq": {
1922
+ "$ref": "#/$defs/shape-83f6485d0d"
1923
+ },
1924
+ "timestamp": {
1925
+ "$ref": "#/$defs/shape-4a251fc3b0"
1926
+ },
1927
+ "origin": {
1928
+ "$ref": "#/$defs/shape-3a32340578"
1929
+ },
1930
+ "type": {
1931
+ "type": "string",
1932
+ "const": "checkout"
1933
+ },
1934
+ "headId": {
1935
+ "type": "string"
1936
+ }
1937
+ },
1938
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "headId"],
1939
+ "additionalProperties": false
1940
+ },
1941
+ "shape-dfbbaedf70": {
1942
+ "type": "object",
1943
+ "properties": {
1944
+ "id": {
1945
+ "$ref": "#/$defs/shape-f0ebe3aa93"
1946
+ },
1947
+ "parentId": {
1948
+ "$ref": "#/$defs/shape-174e29b899"
1949
+ },
1950
+ "seq": {
1951
+ "$ref": "#/$defs/shape-83f6485d0d"
1952
+ },
1953
+ "timestamp": {
1954
+ "$ref": "#/$defs/shape-4a251fc3b0"
1955
+ },
1956
+ "origin": {
1957
+ "$ref": "#/$defs/shape-3a32340578"
1958
+ },
1959
+ "type": {
1960
+ "type": "string",
1961
+ "const": "compaction"
1962
+ },
1963
+ "layer": {
1964
+ "type": "string",
1965
+ "enum": ["summarize", "mid_turn", "overflow_retry"]
1966
+ },
1967
+ "summary": {
1968
+ "type": "string"
1969
+ },
1970
+ "firstKeptEntryId": {
1971
+ "type": "string"
1972
+ },
1973
+ "tokensBefore": {
1974
+ "type": "integer",
1975
+ "minimum": 0,
1976
+ "maximum": 9007199254740991
1977
+ },
1978
+ "tokensAfter": {
1979
+ "type": "integer",
1980
+ "minimum": 0,
1981
+ "maximum": 9007199254740991
1982
+ },
1983
+ "model": {
1984
+ "$ref": "#/$defs/shape-3f034db596"
1985
+ },
1986
+ "promptVersion": {
1987
+ "type": "string"
1988
+ },
1989
+ "usageEntryId": {
1990
+ "type": "string"
1991
+ },
1992
+ "focus": {
1993
+ "type": "string"
1994
+ }
1995
+ },
1996
+ "required": [
1997
+ "id",
1998
+ "parentId",
1999
+ "seq",
2000
+ "timestamp",
2001
+ "origin",
2002
+ "type",
2003
+ "layer",
2004
+ "summary",
2005
+ "firstKeptEntryId",
2006
+ "tokensBefore",
2007
+ "tokensAfter",
2008
+ "model",
2009
+ "promptVersion",
2010
+ "usageEntryId"
2011
+ ],
2012
+ "additionalProperties": false
2013
+ },
2014
+ "shape-843eb5519c": {
2015
+ "type": "object",
2016
+ "properties": {
2017
+ "id": {
2018
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2019
+ },
2020
+ "parentId": {
2021
+ "$ref": "#/$defs/shape-174e29b899"
2022
+ },
2023
+ "seq": {
2024
+ "$ref": "#/$defs/shape-83f6485d0d"
2025
+ },
2026
+ "timestamp": {
2027
+ "$ref": "#/$defs/shape-4a251fc3b0"
2028
+ },
2029
+ "origin": {
2030
+ "$ref": "#/$defs/shape-3a32340578"
2031
+ },
2032
+ "type": {
2033
+ "type": "string",
2034
+ "const": "env_stamp"
2035
+ },
2036
+ "cwd": {
2037
+ "type": "string"
2038
+ },
2039
+ "permissionMode": {
2040
+ "type": "string",
2041
+ "enum": ["default", "accept_edits", "read_only", "bypass", "shadow"]
2042
+ },
2043
+ "approvalPolicy": {
2044
+ "type": "string",
2045
+ "enum": ["on-request", "granular", "never"]
2046
+ },
2047
+ "sandbox": {
2048
+ "type": "string",
2049
+ "enum": ["none", "os", "container", "gvisor", "microvm"]
2050
+ },
2051
+ "model": {
2052
+ "$ref": "#/$defs/shape-3f034db596"
2053
+ },
2054
+ "effort": {
2055
+ "type": "string"
2056
+ }
2057
+ },
2058
+ "required": [
2059
+ "id",
2060
+ "parentId",
2061
+ "seq",
2062
+ "timestamp",
2063
+ "origin",
2064
+ "type",
2065
+ "cwd",
2066
+ "permissionMode",
2067
+ "approvalPolicy",
2068
+ "sandbox",
2069
+ "model"
2070
+ ],
2071
+ "additionalProperties": false
2072
+ },
2073
+ "shape-cfd60800b6": {
2074
+ "type": "object",
2075
+ "properties": {
2076
+ "id": {
2077
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2078
+ },
2079
+ "parentId": {
2080
+ "$ref": "#/$defs/shape-174e29b899"
2081
+ },
2082
+ "seq": {
2083
+ "$ref": "#/$defs/shape-83f6485d0d"
2084
+ },
2085
+ "timestamp": {
2086
+ "$ref": "#/$defs/shape-4a251fc3b0"
2087
+ },
2088
+ "origin": {
2089
+ "$ref": "#/$defs/shape-3a32340578"
2090
+ },
2091
+ "type": {
2092
+ "type": "string",
2093
+ "const": "loadout"
2094
+ },
2095
+ "tools": {
2096
+ "type": "array",
2097
+ "items": {
2098
+ "type": "string"
2099
+ }
2100
+ },
2101
+ "model": {
2102
+ "$ref": "#/$defs/shape-3f034db596"
2103
+ },
2104
+ "effort": {
2105
+ "type": "string"
2106
+ }
2107
+ },
2108
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "tools"],
2109
+ "additionalProperties": false
2110
+ },
2111
+ "shape-ecec6bb915": {
2112
+ "type": "object",
2113
+ "properties": {
2114
+ "id": {
2115
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2116
+ },
2117
+ "parentId": {
2118
+ "$ref": "#/$defs/shape-174e29b899"
2119
+ },
2120
+ "seq": {
2121
+ "$ref": "#/$defs/shape-83f6485d0d"
2122
+ },
2123
+ "timestamp": {
2124
+ "$ref": "#/$defs/shape-4a251fc3b0"
2125
+ },
2126
+ "origin": {
2127
+ "$ref": "#/$defs/shape-3a32340578"
2128
+ },
2129
+ "type": {
2130
+ "type": "string",
2131
+ "const": "completion_check"
2132
+ },
2133
+ "checks": {
2134
+ "type": "array",
2135
+ "items": {
2136
+ "type": "object",
2137
+ "properties": {
2138
+ "command": {
2139
+ "type": "string"
2140
+ },
2141
+ "exitCode": {
2142
+ "type": "integer",
2143
+ "minimum": -9007199254740991,
2144
+ "maximum": 9007199254740991
2145
+ }
2146
+ },
2147
+ "required": ["command", "exitCode"],
2148
+ "additionalProperties": false
2149
+ }
2150
+ },
2151
+ "passed": {
2152
+ "type": "boolean"
2153
+ },
2154
+ "flagged": {
2155
+ "type": "array",
2156
+ "items": {
2157
+ "type": "string"
2158
+ }
2159
+ }
2160
+ },
2161
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "checks", "passed", "flagged"],
2162
+ "additionalProperties": false
2163
+ },
2164
+ "shape-edc9ba2d47": {
2165
+ "type": "object",
2166
+ "properties": {
2167
+ "id": {
2168
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2169
+ },
2170
+ "parentId": {
2171
+ "$ref": "#/$defs/shape-174e29b899"
2172
+ },
2173
+ "seq": {
2174
+ "$ref": "#/$defs/shape-83f6485d0d"
2175
+ },
2176
+ "timestamp": {
2177
+ "$ref": "#/$defs/shape-4a251fc3b0"
2178
+ },
2179
+ "origin": {
2180
+ "$ref": "#/$defs/shape-3a32340578"
2181
+ },
2182
+ "type": {
2183
+ "type": "string",
2184
+ "const": "skill_loaded"
2185
+ },
2186
+ "name": {
2187
+ "type": "string"
2188
+ },
2189
+ "path": {
2190
+ "type": "string"
2191
+ }
2192
+ },
2193
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "name", "path"],
2194
+ "additionalProperties": false
2195
+ },
2196
+ "shape-bd3038f936": {
2197
+ "type": "object",
2198
+ "properties": {
2199
+ "id": {
2200
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2201
+ },
2202
+ "parentId": {
2203
+ "$ref": "#/$defs/shape-174e29b899"
2204
+ },
2205
+ "seq": {
2206
+ "$ref": "#/$defs/shape-83f6485d0d"
2207
+ },
2208
+ "timestamp": {
2209
+ "$ref": "#/$defs/shape-4a251fc3b0"
2210
+ },
2211
+ "origin": {
2212
+ "$ref": "#/$defs/shape-3a32340578"
2213
+ },
2214
+ "type": {
2215
+ "type": "string",
2216
+ "const": "extension_loaded"
2217
+ },
2218
+ "name": {
2219
+ "type": "string"
2220
+ },
2221
+ "tier": {
2222
+ "type": "string",
2223
+ "enum": ["in_process", "mcp", "skill"]
2224
+ },
2225
+ "contentHash": {
2226
+ "type": "string"
2227
+ },
2228
+ "mcp": {
2229
+ "type": "object",
2230
+ "properties": {
2231
+ "transport": {
2232
+ "type": "string",
2233
+ "enum": ["stdio", "in_process"]
2234
+ },
2235
+ "commandHash": {
2236
+ "type": "string"
2237
+ },
2238
+ "era": {
2239
+ "type": "string",
2240
+ "enum": ["2026-07-28", "legacy"]
2241
+ },
2242
+ "toolsHash": {
2243
+ "type": "string"
2244
+ }
2245
+ },
2246
+ "required": ["transport", "era", "toolsHash"],
2247
+ "additionalProperties": false
2248
+ }
2249
+ },
2250
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "name", "tier", "contentHash"],
2251
+ "additionalProperties": false
2252
+ },
2253
+ "shape-16c3a65781": {
2254
+ "type": "object",
2255
+ "properties": {
2256
+ "id": {
2257
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2258
+ },
2259
+ "parentId": {
2260
+ "$ref": "#/$defs/shape-174e29b899"
2261
+ },
2262
+ "seq": {
2263
+ "$ref": "#/$defs/shape-83f6485d0d"
2264
+ },
2265
+ "timestamp": {
2266
+ "$ref": "#/$defs/shape-4a251fc3b0"
2267
+ },
2268
+ "origin": {
2269
+ "$ref": "#/$defs/shape-3a32340578"
2270
+ },
2271
+ "type": {
2272
+ "type": "string",
2273
+ "const": "subagent_link"
2274
+ },
2275
+ "childSession": {
2276
+ "type": "string"
2277
+ },
2278
+ "spawningCallId": {
2279
+ "type": "string"
2280
+ },
2281
+ "stepId": {
2282
+ "type": "string"
2283
+ }
2284
+ },
2285
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "childSession"],
2286
+ "additionalProperties": false
2287
+ },
2288
+ "shape-0372685c9f": {
2289
+ "type": "object",
2290
+ "properties": {
2291
+ "id": {
2292
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2293
+ },
2294
+ "parentId": {
2295
+ "$ref": "#/$defs/shape-174e29b899"
2296
+ },
2297
+ "seq": {
2298
+ "$ref": "#/$defs/shape-83f6485d0d"
2299
+ },
2300
+ "timestamp": {
2301
+ "$ref": "#/$defs/shape-4a251fc3b0"
2302
+ },
2303
+ "origin": {
2304
+ "$ref": "#/$defs/shape-3a32340578"
2305
+ },
2306
+ "type": {
2307
+ "type": "string",
2308
+ "const": "approval_requested"
2309
+ },
2310
+ "request": {
2311
+ "$ref": "#/$defs/shape-e8d48d7dfc"
2312
+ },
2313
+ "input": {}
2314
+ },
2315
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "request", "input"],
2316
+ "additionalProperties": false
2317
+ },
2318
+ "shape-ef77d5988f": {
2319
+ "type": "object",
2320
+ "properties": {
2321
+ "id": {
2322
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2323
+ },
2324
+ "parentId": {
2325
+ "$ref": "#/$defs/shape-174e29b899"
2326
+ },
2327
+ "seq": {
2328
+ "$ref": "#/$defs/shape-83f6485d0d"
2329
+ },
2330
+ "timestamp": {
2331
+ "$ref": "#/$defs/shape-4a251fc3b0"
2332
+ },
2333
+ "origin": {
2334
+ "$ref": "#/$defs/shape-3a32340578"
2335
+ },
2336
+ "type": {
2337
+ "type": "string",
2338
+ "const": "approval_resolved"
2339
+ },
2340
+ "resolution": {
2341
+ "$ref": "#/$defs/shape-90890766e5"
2342
+ },
2343
+ "sticky": {
2344
+ "type": "string",
2345
+ "enum": ["run", "session"]
2346
+ },
2347
+ "allowance": {
2348
+ "type": "object",
2349
+ "properties": {
2350
+ "tool": {
2351
+ "type": "string"
2352
+ },
2353
+ "inputHash": {
2354
+ "type": "string"
2355
+ },
2356
+ "commandPrefix": {
2357
+ "type": "array",
2358
+ "items": {
2359
+ "type": "string"
2360
+ }
2361
+ },
2362
+ "policyVersion": {
2363
+ "type": "string"
2364
+ }
2365
+ },
2366
+ "required": ["tool"],
2367
+ "additionalProperties": false
2368
+ },
2369
+ "groupId": {
2370
+ "type": "string"
2371
+ },
2372
+ "quorum": {
2373
+ "type": "string",
2374
+ "const": "pending"
2375
+ }
2376
+ },
2377
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "resolution"],
2378
+ "additionalProperties": false
2379
+ },
2380
+ "shape-0ae3e72e7c": {
2381
+ "type": "object",
2382
+ "properties": {
2383
+ "id": {
2384
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2385
+ },
2386
+ "parentId": {
2387
+ "$ref": "#/$defs/shape-174e29b899"
2388
+ },
2389
+ "seq": {
2390
+ "$ref": "#/$defs/shape-83f6485d0d"
2391
+ },
2392
+ "timestamp": {
2393
+ "$ref": "#/$defs/shape-4a251fc3b0"
2394
+ },
2395
+ "origin": {
2396
+ "$ref": "#/$defs/shape-3a32340578"
2397
+ },
2398
+ "type": {
2399
+ "type": "string",
2400
+ "const": "shadow_call"
2401
+ },
2402
+ "callId": {
2403
+ "type": "string"
2404
+ },
2405
+ "tool": {
2406
+ "type": "string"
2407
+ },
2408
+ "inputHash": {
2409
+ "type": "string"
2410
+ }
2411
+ },
2412
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "callId", "tool", "inputHash"],
2413
+ "additionalProperties": false
2414
+ },
2415
+ "shape-e7970efd50": {
2416
+ "type": "object",
2417
+ "properties": {
2418
+ "id": {
2419
+ "$ref": "#/$defs/shape-f0ebe3aa93"
2420
+ },
2421
+ "parentId": {
2422
+ "$ref": "#/$defs/shape-174e29b899"
2423
+ },
2424
+ "seq": {
2425
+ "$ref": "#/$defs/shape-83f6485d0d"
2426
+ },
2427
+ "timestamp": {
2428
+ "$ref": "#/$defs/shape-4a251fc3b0"
2429
+ },
2430
+ "origin": {
2431
+ "$ref": "#/$defs/shape-3a32340578"
2432
+ },
2433
+ "type": {
2434
+ "type": "string",
2435
+ "const": "product_record"
2436
+ },
2437
+ "name": {
2438
+ "type": "string"
2439
+ },
2440
+ "data": {}
2441
+ },
2442
+ "required": ["id", "parentId", "seq", "timestamp", "origin", "type", "name", "data"],
2443
+ "additionalProperties": false
2444
+ }
2445
+ },
2446
+ "title": "ProtocolMessage",
2447
+ "description": "One line of the buildanagent harness protocol: a JSON-RPC 2.0 message, in either direction. Every message carries \"jsonrpc\": \"2.0\". An SDK event in an \"event\" notification is checked for its type and base fields only."
2448
+ }