@wardby/cli 0.6.0 → 0.8.0

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 (740) hide show
  1. package/.env.example +5 -5
  2. package/README.md +6 -1
  3. package/deploy/local/docker-compose.quickstart-coding.yml +19 -0
  4. package/dist/claude-coding-worker/driver.d.ts +33 -3
  5. package/dist/claude-coding-worker/driver.js +151 -21
  6. package/dist/claude-coding-worker/main.js +38 -6
  7. package/dist/claude-coding-worker/sdk.js +29 -2
  8. package/dist/claude-coding-worker/tool-socket.d.ts +27 -0
  9. package/dist/claude-coding-worker/tool-socket.js +111 -0
  10. package/dist/claude-coding-worker/transcript.d.ts +18 -0
  11. package/dist/claude-coding-worker/transcript.js +77 -0
  12. package/dist/claude-plugin/command.d.ts +61 -0
  13. package/dist/claude-plugin/command.js +376 -0
  14. package/dist/cli-help.d.ts +1 -1
  15. package/dist/cli-help.js +3 -1
  16. package/dist/cli.js +71 -13
  17. package/dist/coding/code-host.d.ts +16 -0
  18. package/dist/coding/code-host.js +60 -0
  19. package/dist/coding/continuation-wording.d.ts +35 -0
  20. package/dist/coding/continuation-wording.js +73 -0
  21. package/dist/coding/linked-issue-note.d.ts +23 -0
  22. package/dist/coding/linked-issue-note.js +47 -0
  23. package/dist/coding/mcp-token.d.ts +12 -0
  24. package/dist/coding/mcp-token.js +26 -0
  25. package/dist/coding/merge-wording.d.ts +28 -0
  26. package/dist/coding/merge-wording.js +78 -0
  27. package/dist/coding/pr-description-note.d.ts +9 -0
  28. package/dist/coding/pr-description-note.js +32 -0
  29. package/dist/coding/profile.d.ts +46 -126
  30. package/dist/coding/profile.js +45 -4
  31. package/dist/coding/protected-path-wording.d.ts +8 -0
  32. package/dist/coding/protected-path-wording.js +1 -1
  33. package/dist/coding/protocol.d.ts +264 -346
  34. package/dist/coding/protocol.js +237 -12
  35. package/dist/coding/redact.d.ts +3 -0
  36. package/dist/coding/redact.js +17 -0
  37. package/dist/coding/registry/allowlist.d.ts +12 -0
  38. package/dist/coding/registry/allowlist.js +14 -1
  39. package/dist/coding/registry/audit-mode.d.ts +153 -0
  40. package/dist/coding/registry/audit-mode.js +304 -0
  41. package/dist/coding/registry/lockfile-shared.d.ts +36 -0
  42. package/dist/coding/registry/lockfile-shared.js +128 -0
  43. package/dist/coding/registry/lockfiles.js +1 -1
  44. package/dist/coding/registry/npm-lockfile-formats.d.ts +11 -0
  45. package/dist/coding/registry/npm-lockfile-formats.js +41 -0
  46. package/dist/coding/registry/npm-lockfile.d.ts +8 -4
  47. package/dist/coding/registry/npm-lockfile.js +4 -6
  48. package/dist/coding/registry/npm.js +78 -8
  49. package/dist/coding/registry/pnpm-lockfile.d.ts +17 -0
  50. package/dist/coding/registry/pnpm-lockfile.js +189 -0
  51. package/dist/coding/registry/pypi-plan.d.ts +50 -0
  52. package/dist/coding/registry/pypi-plan.js +406 -0
  53. package/dist/coding/registry/pypi-requirements.d.ts +58 -0
  54. package/dist/coding/registry/pypi-requirements.js +155 -0
  55. package/dist/coding/registry/pypi.d.ts +3 -27
  56. package/dist/coding/registry/pypi.js +40 -154
  57. package/dist/coding/registry/refusal-hints.d.ts +20 -0
  58. package/dist/coding/registry/refusal-hints.js +61 -0
  59. package/dist/coding/registry/refusal-wording.d.ts +11 -0
  60. package/dist/coding/registry/refusal-wording.js +56 -0
  61. package/dist/coding/registry/report.d.ts +70 -8
  62. package/dist/coding/registry/report.js +112 -5
  63. package/dist/coding/registry/types.d.ts +58 -8
  64. package/dist/coding/registry/yarn-lockfile.d.ts +30 -0
  65. package/dist/coding/registry/yarn-lockfile.js +367 -0
  66. package/dist/coding/services/catalog.d.ts +37 -351
  67. package/dist/coding/transcript/claude-code.d.ts +13 -0
  68. package/dist/coding/transcript/claude-code.js +273 -0
  69. package/dist/coding/transcript/download-protocol.d.ts +30 -0
  70. package/dist/coding/transcript/download-protocol.js +18 -0
  71. package/dist/coding/transcript/format.d.ts +20 -0
  72. package/dist/coding/transcript/format.js +32 -0
  73. package/dist/coding/transcript/recorder.d.ts +52 -0
  74. package/dist/coding/transcript/recorder.js +225 -0
  75. package/dist/coding/transcript/resume/checkout.d.ts +31 -0
  76. package/dist/coding/transcript/resume/checkout.js +203 -0
  77. package/dist/coding/transcript/resume/command.d.ts +17 -0
  78. package/dist/coding/transcript/resume/command.js +176 -0
  79. package/dist/coding/transcript/resume/download.d.ts +20 -0
  80. package/dist/coding/transcript/resume/download.js +153 -0
  81. package/dist/coding/transcript/resume/launch.d.ts +38 -0
  82. package/dist/coding/transcript/resume/launch.js +128 -0
  83. package/dist/coding/transcript/resume/session-file.d.ts +13 -0
  84. package/dist/coding/transcript/resume/session-file.js +79 -0
  85. package/dist/coding/transcript/resume/stand-in.d.ts +11 -0
  86. package/dist/coding/transcript/resume/stand-in.js +49 -0
  87. package/dist/coding-worker/artifact.d.ts +8 -3
  88. package/dist/coding-worker/artifact.js +3 -1
  89. package/dist/coding-worker/debug-trace.d.ts +9 -6
  90. package/dist/coding-worker/debug-trace.js +16 -19
  91. package/dist/coding-worker/dependency-cache.d.mts +229 -0
  92. package/dist/coding-worker/dependency-cache.mjs +2123 -0
  93. package/dist/coding-worker/driver.d.ts +4 -3
  94. package/dist/coding-worker/driver.js +124 -39
  95. package/dist/coding-worker/errors.d.ts +1 -0
  96. package/dist/coding-worker/errors.js +32 -0
  97. package/dist/coding-worker/main.js +5 -1
  98. package/dist/coding-worker/mcp-config.d.ts +27 -0
  99. package/dist/coding-worker/mcp-config.js +32 -0
  100. package/dist/coding-worker/sdk.d.ts +36 -0
  101. package/dist/coding-worker/sdk.js +28 -1
  102. package/dist/coding-worker/task-note.d.ts +11 -0
  103. package/dist/coding-worker/task-note.js +13 -0
  104. package/dist/coding-worker/types.d.ts +15 -0
  105. package/dist/config/dependency-cache.d.ts +23 -0
  106. package/dist/config/dependency-cache.js +32 -0
  107. package/dist/config/mcp-call-limit.d.ts +8 -0
  108. package/dist/config/mcp-call-limit.js +18 -0
  109. package/dist/config/mcp-servers.d.ts +8 -0
  110. package/dist/config/mcp-servers.js +12 -0
  111. package/dist/config/providers.d.ts +12 -3
  112. package/dist/config/providers.js +55 -5
  113. package/dist/config/test-simulators.d.ts +92 -0
  114. package/dist/config/test-simulators.js +333 -0
  115. package/dist/config/tool-timeout.d.ts +1 -0
  116. package/dist/config/tool-timeout.js +18 -0
  117. package/dist/core/async-context.d.ts +2 -0
  118. package/dist/core/async-context.js +12 -0
  119. package/dist/core/budget-events.d.ts +108 -0
  120. package/dist/core/budget-events.js +346 -0
  121. package/dist/core/budget-groups.d.ts +50 -1
  122. package/dist/core/budget-groups.js +236 -27
  123. package/dist/core/budget-stopped-head.d.ts +46 -0
  124. package/dist/core/budget-stopped-head.js +81 -0
  125. package/dist/core/budget-topup.d.ts +51 -0
  126. package/dist/core/budget-topup.js +156 -0
  127. package/dist/core/budget-wording.d.ts +16 -2
  128. package/dist/core/budget-wording.js +40 -2
  129. package/dist/core/coding-mcp.d.ts +36 -0
  130. package/dist/core/coding-mcp.js +253 -0
  131. package/dist/core/coding-queue.d.ts +2 -1
  132. package/dist/core/coding-queue.js +7 -0
  133. package/dist/core/coding-repository.d.ts +46 -0
  134. package/dist/core/coding-repository.js +92 -0
  135. package/dist/core/cron.d.ts +19 -1
  136. package/dist/core/cron.js +17 -0
  137. package/dist/core/datastores.js +1 -1
  138. package/dist/core/deferred-coding.d.ts +14 -0
  139. package/dist/core/deferred-coding.js +62 -0
  140. package/dist/core/delegation-child.d.ts +25 -0
  141. package/dist/core/delegation-child.js +37 -0
  142. package/dist/core/delegation-slots.d.ts +27 -0
  143. package/dist/core/delegation-slots.js +44 -0
  144. package/dist/core/dispatch.d.ts +48 -2
  145. package/dist/core/dispatch.js +166 -66
  146. package/dist/core/engine-native.js +1 -1
  147. package/dist/core/error-code.d.ts +38 -0
  148. package/dist/core/error-code.js +169 -0
  149. package/dist/core/grants.d.ts +46 -8
  150. package/dist/core/grants.js +99 -8
  151. package/dist/core/host-events.d.ts +18 -2
  152. package/dist/core/host-events.js +291 -27
  153. package/dist/core/host-status.d.ts +85 -3
  154. package/dist/core/host-status.js +300 -22
  155. package/dist/core/issue-bridge.d.ts +50 -6
  156. package/dist/core/issue-bridge.js +124 -33
  157. package/dist/core/issue-events.d.ts +1 -1
  158. package/dist/core/issue-events.js +4 -10
  159. package/dist/core/issue-status.d.ts +1 -1
  160. package/dist/core/issue-status.js +58 -29
  161. package/dist/core/logger.d.ts +5 -0
  162. package/dist/core/logger.js +14 -1
  163. package/dist/core/lost-run-children.d.ts +6 -0
  164. package/dist/core/lost-run-children.js +32 -0
  165. package/dist/core/mark-ready.d.ts +34 -0
  166. package/dist/core/mark-ready.js +152 -0
  167. package/dist/core/markdown-code.d.ts +8 -0
  168. package/dist/core/markdown-code.js +107 -0
  169. package/dist/core/mcp-client/client.d.ts +47 -0
  170. package/dist/core/mcp-client/client.js +141 -0
  171. package/dist/core/mcp-client/jsonrpc.d.ts +15 -0
  172. package/dist/core/mcp-client/jsonrpc.js +54 -0
  173. package/dist/core/mcp-client/results.d.ts +13 -0
  174. package/dist/core/mcp-client/results.js +42 -0
  175. package/dist/core/mcp-servers.d.ts +90 -0
  176. package/dist/core/mcp-servers.js +230 -0
  177. package/dist/core/mcp-tools.d.ts +108 -0
  178. package/dist/core/mcp-tools.js +287 -0
  179. package/dist/core/memory-tools.js +7 -0
  180. package/dist/core/merge-order-check.d.ts +2 -1
  181. package/dist/core/merge-order-check.js +44 -18
  182. package/dist/core/notification-dispatcher.js +2 -1
  183. package/dist/core/notification-templates.d.ts +1 -7
  184. package/dist/core/notification-templates.js +36 -2
  185. package/dist/core/pull-request-state-sync.js +2 -2
  186. package/dist/core/reconciler.d.ts +4 -3
  187. package/dist/core/reconciler.js +8 -1
  188. package/dist/core/related-pull-requests.d.ts +11 -3
  189. package/dist/core/related-pull-requests.js +49 -20
  190. package/dist/core/reply-parts.d.ts +21 -0
  191. package/dist/core/reply-parts.js +73 -0
  192. package/dist/core/review-fix.d.ts +1 -1
  193. package/dist/core/review-fix.js +4 -3
  194. package/dist/core/review-host-checks.d.ts +1 -1
  195. package/dist/core/review-host-tools.d.ts +3 -0
  196. package/dist/core/review-host-tools.js +102 -14
  197. package/dist/core/review-reads.d.ts +55 -0
  198. package/dist/core/review-reads.js +233 -0
  199. package/dist/core/run-status.d.ts +12 -0
  200. package/dist/core/run-status.js +12 -0
  201. package/dist/core/runner.d.ts +145 -49
  202. package/dist/core/runner.js +719 -216
  203. package/dist/core/schedule-start.d.ts +12 -0
  204. package/dist/core/schedule-start.js +14 -0
  205. package/dist/core/secret-broker-config.d.ts +12 -74
  206. package/dist/core/secret-broker-config.js +1 -1
  207. package/dist/core/secret-guard.d.ts +49 -0
  208. package/dist/core/secret-guard.js +119 -0
  209. package/dist/core/secret-guarded-stores.d.ts +12 -0
  210. package/dist/core/secret-guarded-stores.js +41 -0
  211. package/dist/core/secret-spans.d.ts +50 -0
  212. package/dist/core/secret-spans.js +94 -0
  213. package/dist/core/secrets.d.ts +11 -1
  214. package/dist/core/secrets.js +27 -1
  215. package/dist/core/serializable-retry.d.ts +18 -0
  216. package/dist/core/serializable-retry.js +43 -0
  217. package/dist/core/stop-run.d.ts +46 -0
  218. package/dist/core/stop-run.js +61 -0
  219. package/dist/core/tool-admin.d.ts +5 -1
  220. package/dist/core/tool-admin.js +7 -2
  221. package/dist/core/tool-names.d.ts +13 -0
  222. package/dist/core/tool-names.js +20 -0
  223. package/dist/core/webhooks.d.ts +4 -0
  224. package/dist/core/webhooks.js +68 -49
  225. package/dist/core/workflow-events.d.ts +14 -2
  226. package/dist/core/workflow-events.js +4 -0
  227. package/dist/core/workflow-run-events.d.ts +5 -3
  228. package/dist/core/workflow-run-events.js +45 -9
  229. package/dist/core/zod-json-schema.d.ts +4 -0
  230. package/dist/core/zod-json-schema.js +39 -0
  231. package/dist/core/zod3-window.d.ts +35 -0
  232. package/dist/core/zod3-window.js +124 -0
  233. package/dist/generated/prisma/browser.d.ts +65 -3
  234. package/dist/generated/prisma/client.d.ts +65 -3
  235. package/dist/generated/prisma/commonInputTypes.d.ts +266 -106
  236. package/dist/generated/prisma/enums.d.ts +10 -0
  237. package/dist/generated/prisma/enums.js +8 -0
  238. package/dist/generated/prisma/internal/class.d.ts +110 -0
  239. package/dist/generated/prisma/internal/class.js +4 -4
  240. package/dist/generated/prisma/internal/prismaNamespace.d.ts +957 -9
  241. package/dist/generated/prisma/internal/prismaNamespace.js +166 -2
  242. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +174 -0
  243. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +166 -2
  244. package/dist/generated/prisma/models/Agent.d.ts +377 -8
  245. package/dist/generated/prisma/models/AgentMcpServer.d.ts +1412 -0
  246. package/dist/generated/prisma/models/AgentMcpServer.js +1 -0
  247. package/dist/generated/prisma/models/AgentRepository.d.ts +81 -1
  248. package/dist/generated/prisma/models/AuthUser.d.ts +1 -1
  249. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +228 -7
  250. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +207 -3
  251. package/dist/generated/prisma/models/CodingProxySession.d.ts +232 -2
  252. package/dist/generated/prisma/models/CodingRun.d.ts +1712 -1
  253. package/dist/generated/prisma/models/DependencySnapshot.d.ts +1668 -0
  254. package/dist/generated/prisma/models/DependencySnapshot.js +1 -0
  255. package/dist/generated/prisma/models/HostProvider.d.ts +2176 -0
  256. package/dist/generated/prisma/models/HostProvider.js +1 -0
  257. package/dist/generated/prisma/models/HostProviderCredential.d.ts +1285 -0
  258. package/dist/generated/prisma/models/HostProviderCredential.js +1 -0
  259. package/dist/generated/prisma/models/HostProviderOperation.d.ts +1470 -0
  260. package/dist/generated/prisma/models/HostProviderOperation.js +1 -0
  261. package/dist/generated/prisma/models/HostProviderTrustedAccount.d.ts +1145 -0
  262. package/dist/generated/prisma/models/HostProviderTrustedAccount.js +1 -0
  263. package/dist/generated/prisma/models/IssuePullRequest.d.ts +6 -2
  264. package/dist/generated/prisma/models/LocalReview.d.ts +40 -1
  265. package/dist/generated/prisma/models/McpServer.d.ts +1500 -0
  266. package/dist/generated/prisma/models/McpServer.js +1 -0
  267. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +77 -1
  268. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +35 -1
  269. package/dist/generated/prisma/models/Principal.d.ts +167 -0
  270. package/dist/generated/prisma/models/RegistryAllowance.d.ts +41 -1
  271. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +75 -1
  272. package/dist/generated/prisma/models/RegistryAuditRecord.d.ts +1364 -0
  273. package/dist/generated/prisma/models/RegistryAuditRecord.js +1 -0
  274. package/dist/generated/prisma/models/ResourceGrant.d.ts +1 -1
  275. package/dist/generated/prisma/models/Run.d.ts +738 -2
  276. package/dist/generated/prisma/models/RunBudgetEvent.d.ts +1211 -0
  277. package/dist/generated/prisma/models/RunBudgetEvent.js +1 -0
  278. package/dist/generated/prisma/models/RunTranscript.d.ts +1339 -0
  279. package/dist/generated/prisma/models/RunTranscript.js +1 -0
  280. package/dist/generated/prisma/models/Secret.d.ts +387 -0
  281. package/dist/generated/prisma/models/Tool.d.ts +223 -1
  282. package/dist/generated/prisma/models.d.ts +10 -0
  283. package/dist/help/search.js +12 -3
  284. package/dist/help-index.json +2033 -110
  285. package/dist/import/create.js +48 -4
  286. package/dist/import/neutral-schema.d.ts +51 -281
  287. package/dist/import/neutral-schema.js +7 -4
  288. package/dist/knowledge/check.d.ts +1 -1
  289. package/dist/knowledge/cli.d.ts +11 -1
  290. package/dist/knowledge/cli.js +37 -4
  291. package/dist/knowledge/concept.d.ts +3 -19
  292. package/dist/knowledge/location.d.ts +31 -0
  293. package/dist/knowledge/location.js +78 -0
  294. package/dist/mcp/auth/access.d.ts +10 -2
  295. package/dist/mcp/auth/access.js +15 -1
  296. package/dist/mcp/auth/grants-cli.d.ts +6 -4
  297. package/dist/mcp/auth/grants-cli.js +42 -3
  298. package/dist/mcp/auth/ownership.d.ts +7 -7
  299. package/dist/mcp/auth/resource-server.d.ts +3 -1
  300. package/dist/mcp/auth/resource-server.js +17 -2
  301. package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
  302. package/dist/mcp/auth/self-hosted/session.d.ts +2 -2
  303. package/dist/mcp/context.d.ts +3 -0
  304. package/dist/mcp/host-events/github-ingress.d.ts +2 -0
  305. package/dist/mcp/host-events/github-ingress.js +2 -1
  306. package/dist/mcp/index.d.ts +6 -0
  307. package/dist/mcp/index.js +69 -10
  308. package/dist/mcp/server.d.ts +13 -0
  309. package/dist/mcp/server.js +33 -14
  310. package/dist/mcp/tools/agents.d.ts +4 -0
  311. package/dist/mcp/tools/agents.js +295 -28
  312. package/dist/mcp/tools/datastore.js +17 -8
  313. package/dist/mcp/tools/grants.js +73 -29
  314. package/dist/mcp/tools/host-providers.d.ts +2 -0
  315. package/dist/mcp/tools/host-providers.js +215 -0
  316. package/dist/mcp/tools/mcp-servers.d.ts +26 -0
  317. package/dist/mcp/tools/mcp-servers.js +481 -0
  318. package/dist/mcp/tools/memory.js +11 -1
  319. package/dist/mcp/tools/notification-channels.js +2 -2
  320. package/dist/mcp/tools/packages.d.ts +2 -0
  321. package/dist/mcp/tools/packages.js +195 -0
  322. package/dist/mcp/tools/repositories.js +65 -12
  323. package/dist/mcp/tools/run-access.d.ts +16 -0
  324. package/dist/mcp/tools/run-access.js +25 -0
  325. package/dist/mcp/tools/run-transcript-download.d.ts +30 -0
  326. package/dist/mcp/tools/run-transcript-download.js +129 -0
  327. package/dist/mcp/tools/run-transcript.d.ts +19 -0
  328. package/dist/mcp/tools/run-transcript.js +70 -0
  329. package/dist/mcp/tools/runs.js +209 -27
  330. package/dist/mcp/tools/scheduling.js +3 -1
  331. package/dist/mcp/tools/secret-elicitation-form.js +5 -0
  332. package/dist/mcp/tools/secret-elicitation-server.d.ts +6 -0
  333. package/dist/mcp/tools/secret-elicitation-server.js +10 -61
  334. package/dist/mcp/tools/secret-elicitation.d.ts +2 -0
  335. package/dist/mcp/tools/secret-elicitation.js +25 -2
  336. package/dist/mcp/tools/secrets.js +40 -6
  337. package/dist/mcp/tools/stop-run.d.ts +2 -0
  338. package/dist/mcp/tools/stop-run.js +82 -0
  339. package/dist/mcp/tools/subagents.js +2 -2
  340. package/dist/mcp/tools/tools.d.ts +7 -5
  341. package/dist/mcp/tools/tools.js +64 -16
  342. package/dist/mcp/tools/trigger.js +28 -6
  343. package/dist/mcp/transport/http-limits.d.ts +2 -0
  344. package/dist/mcp/transport/http-limits.js +6 -2
  345. package/dist/mcp/transport/stdio-link-host.d.ts +20 -0
  346. package/dist/mcp/transport/stdio-link-host.js +67 -0
  347. package/dist/mcp/transport/streamable-http.d.ts +13 -0
  348. package/dist/mcp/transport/streamable-http.js +41 -1
  349. package/dist/mcp/webhooks/ingress.js +10 -0
  350. package/dist/native-worker/docker-launcher.d.ts +38 -2
  351. package/dist/native-worker/docker-launcher.js +65 -5
  352. package/dist/native-worker/gateway-server.d.ts +55 -3
  353. package/dist/native-worker/gateway-server.js +152 -34
  354. package/dist/native-worker/gateway.d.ts +29 -1
  355. package/dist/native-worker/gateway.js +74 -4
  356. package/dist/native-worker/http-server.d.ts +7 -1
  357. package/dist/native-worker/http-server.js +62 -7
  358. package/dist/native-worker/http-transport.js +1 -1
  359. package/dist/native-worker/kubernetes-launcher.d.ts +7 -3
  360. package/dist/native-worker/kubernetes-launcher.js +43 -3
  361. package/dist/native-worker/launch.d.ts +18 -1
  362. package/dist/native-worker/launch.js +6 -1
  363. package/dist/native-worker/ledger.d.ts +24 -4
  364. package/dist/native-worker/ledger.js +62 -8
  365. package/dist/native-worker/loopback.js +3 -8
  366. package/dist/native-worker/main.d.ts +2 -1
  367. package/dist/native-worker/main.js +14 -3
  368. package/dist/native-worker/protocol.d.ts +130 -577
  369. package/dist/native-worker/protocol.js +51 -2
  370. package/dist/native-worker/sandbox-executor.d.ts +17 -2
  371. package/dist/native-worker/sandbox-executor.js +78 -4
  372. package/dist/native-worker/stderr-redaction.d.ts +77 -0
  373. package/dist/native-worker/stderr-redaction.js +237 -0
  374. package/dist/native-worker/stdio.d.ts +1 -1
  375. package/dist/native-worker/stdio.js +6 -5
  376. package/dist/native-worker/warm-pool.d.ts +2 -2
  377. package/dist/native-worker/warm-pool.js +4 -4
  378. package/dist/native-worker/worker.js +28 -2
  379. package/dist/observability/metrics.js +6 -1
  380. package/dist/providers/auth/self-hosted.d.ts +1 -1
  381. package/dist/providers/coding-proxy/capability-hash.d.ts +2 -0
  382. package/dist/providers/coding-proxy/capability-hash.js +5 -0
  383. package/dist/providers/coding-proxy/dependency-cache/eviction.d.ts +29 -0
  384. package/dist/providers/coding-proxy/dependency-cache/eviction.js +87 -0
  385. package/dist/providers/coding-proxy/dependency-cache/key.d.ts +33 -0
  386. package/dist/providers/coding-proxy/dependency-cache/key.js +86 -0
  387. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.d.ts +18 -0
  388. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.js +40 -0
  389. package/dist/providers/coding-proxy/dependency-cache/prisma-store.d.ts +25 -0
  390. package/dist/providers/coding-proxy/dependency-cache/prisma-store.js +131 -0
  391. package/dist/providers/coding-proxy/dependency-cache/service.d.ts +70 -0
  392. package/dist/providers/coding-proxy/dependency-cache/service.js +409 -0
  393. package/dist/providers/coding-proxy/dependency-cache/store.d.ts +85 -0
  394. package/dist/providers/coding-proxy/dependency-cache/store.js +95 -0
  395. package/dist/providers/coding-proxy/hold.d.ts +32 -0
  396. package/dist/providers/coding-proxy/hold.js +86 -0
  397. package/dist/providers/coding-proxy/interrupted.d.ts +70 -0
  398. package/dist/providers/coding-proxy/interrupted.js +104 -0
  399. package/dist/providers/coding-proxy/mcp-route.d.ts +34 -0
  400. package/dist/providers/coding-proxy/mcp-route.js +166 -0
  401. package/dist/providers/coding-proxy/memory-ledger.d.ts +17 -2
  402. package/dist/providers/coding-proxy/memory-ledger.js +99 -8
  403. package/dist/providers/coding-proxy/metering.d.ts +16 -0
  404. package/dist/providers/coding-proxy/metering.js +27 -4
  405. package/dist/providers/coding-proxy/prisma-ledger.d.ts +16 -2
  406. package/dist/providers/coding-proxy/prisma-ledger.js +209 -69
  407. package/dist/providers/coding-proxy/proxy.d.ts +21 -2
  408. package/dist/providers/coding-proxy/proxy.js +300 -48
  409. package/dist/providers/coding-proxy/registry/audit.d.ts +53 -10
  410. package/dist/providers/coding-proxy/registry/audit.js +94 -17
  411. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.d.ts +36 -0
  412. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.js +67 -0
  413. package/dist/providers/coding-proxy/registry/lockfile-parse.d.ts +16 -0
  414. package/dist/providers/coding-proxy/registry/lockfile-parse.js +110 -0
  415. package/dist/providers/coding-proxy/registry/plan.d.ts +9 -0
  416. package/dist/providers/coding-proxy/registry/plan.js +201 -48
  417. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +11 -5
  418. package/dist/providers/coding-proxy/registry/prisma-store.js +120 -17
  419. package/dist/providers/coding-proxy/registry/service.d.ts +97 -16
  420. package/dist/providers/coding-proxy/registry/service.js +579 -112
  421. package/dist/providers/coding-proxy/registry/store.d.ts +84 -9
  422. package/dist/providers/coding-proxy/registry/store.js +54 -1
  423. package/dist/providers/coding-proxy/runtime.d.ts +10 -0
  424. package/dist/providers/coding-proxy/runtime.js +109 -16
  425. package/dist/providers/coding-proxy/server.d.ts +9 -1
  426. package/dist/providers/coding-proxy/server.js +55 -1
  427. package/dist/providers/coding-proxy/types.d.ts +78 -1
  428. package/dist/providers/datastore/types.d.ts +5 -0
  429. package/dist/providers/engine/types.d.ts +17 -2
  430. package/dist/providers/engine/types.js +17 -0
  431. package/dist/providers/executor/composition.d.ts +10 -3
  432. package/dist/providers/executor/composition.js +52 -7
  433. package/dist/providers/executor/container.d.ts +394 -9
  434. package/dist/providers/executor/container.js +1210 -96
  435. package/dist/providers/executor/dbos-status.d.ts +31 -0
  436. package/dist/providers/executor/dbos-status.js +64 -0
  437. package/dist/providers/executor/dbos.d.ts +50 -1
  438. package/dist/providers/executor/dbos.js +207 -20
  439. package/dist/providers/executor/deferred.d.ts +12 -24
  440. package/dist/providers/executor/deferred.js +10 -29
  441. package/dist/providers/executor/in-process.d.ts +9 -1
  442. package/dist/providers/executor/in-process.js +14 -4
  443. package/dist/providers/executor/linked-issue-reader.d.ts +16 -0
  444. package/dist/providers/executor/linked-issue-reader.js +30 -0
  445. package/dist/providers/executor/routing.d.ts +2 -0
  446. package/dist/providers/executor/routing.js +4 -0
  447. package/dist/providers/executor/types.d.ts +13 -0
  448. package/dist/providers/host-tools/invoke.d.ts +37 -0
  449. package/dist/providers/host-tools/invoke.js +117 -0
  450. package/dist/providers/host-tools/operations.d.ts +65 -0
  451. package/dist/providers/host-tools/operations.js +149 -0
  452. package/dist/providers/host-tools/registry.d.ts +79 -0
  453. package/dist/providers/host-tools/registry.js +362 -0
  454. package/dist/providers/host-tools/request-guard.d.ts +17 -0
  455. package/dist/providers/host-tools/request-guard.js +99 -0
  456. package/dist/providers/host-tools/self-test.d.ts +64 -0
  457. package/dist/providers/host-tools/self-test.js +142 -0
  458. package/dist/providers/index.d.ts +2 -1
  459. package/dist/providers/issue-tracker/types.d.ts +17 -0
  460. package/dist/providers/issue-tracker/types.js +39 -1
  461. package/dist/providers/jobs/claude-tool-setup.d.ts +4 -0
  462. package/dist/providers/jobs/claude-tool-setup.js +5 -2
  463. package/dist/providers/jobs/docker-isolation.d.ts +10 -2
  464. package/dist/providers/jobs/docker-isolation.js +47 -8
  465. package/dist/providers/jobs/docker.d.ts +9 -0
  466. package/dist/providers/jobs/docker.js +60 -11
  467. package/dist/providers/jobs/fake-kubernetes-api.d.ts +2 -0
  468. package/dist/providers/jobs/fake-kubernetes-api.js +3 -0
  469. package/dist/providers/jobs/kubernetes-api.d.ts +8 -0
  470. package/dist/providers/jobs/kubernetes-api.js +10 -0
  471. package/dist/providers/jobs/kubernetes-client.js +10 -1
  472. package/dist/providers/jobs/kubernetes-isolation.d.ts +5 -1
  473. package/dist/providers/jobs/kubernetes-isolation.js +32 -3
  474. package/dist/providers/jobs/kubernetes.d.ts +11 -1
  475. package/dist/providers/jobs/kubernetes.js +111 -17
  476. package/dist/providers/jobs/types.d.ts +39 -0
  477. package/dist/providers/jobs/types.js +13 -1
  478. package/dist/providers/llm/anthropic.js +5 -1
  479. package/dist/providers/llm/bedrock.d.ts +0 -12
  480. package/dist/providers/llm/bedrock.js +4 -0
  481. package/dist/providers/llm/claude-messages.d.ts +3 -1
  482. package/dist/providers/llm/claude-messages.js +4 -1
  483. package/dist/providers/llm/claude-provider.d.ts +2 -2
  484. package/dist/providers/llm/claude-provider.js +2 -2
  485. package/dist/providers/llm/openai.d.ts +2 -2
  486. package/dist/providers/llm/openai.js +6 -2
  487. package/dist/providers/llm/routing.d.ts +2 -2
  488. package/dist/providers/llm/routing.js +2 -2
  489. package/dist/providers/llm/types.d.ts +12 -2
  490. package/dist/providers/review-host/github-events.d.ts +9 -1
  491. package/dist/providers/review-host/github-events.js +34 -12
  492. package/dist/providers/review-host/github.d.ts +29 -2
  493. package/dist/providers/review-host/github.js +224 -29
  494. package/dist/providers/review-host/local.d.ts +8 -4
  495. package/dist/providers/review-host/local.js +49 -31
  496. package/dist/providers/review-host/patch-pages.d.ts +41 -0
  497. package/dist/providers/review-host/patch-pages.js +176 -0
  498. package/dist/providers/review-host/review-format.d.ts +19 -1
  499. package/dist/providers/review-host/review-format.js +38 -7
  500. package/dist/providers/review-host/types.d.ts +140 -6
  501. package/dist/providers/review-host/types.js +9 -1
  502. package/dist/providers/storage/gcs.d.ts +63 -0
  503. package/dist/providers/storage/gcs.js +69 -0
  504. package/dist/providers/storage/index.d.ts +15 -0
  505. package/dist/providers/storage/index.js +14 -0
  506. package/dist/providers/storage/local.d.ts +24 -0
  507. package/dist/providers/storage/local.js +92 -0
  508. package/dist/providers/storage/meter.d.ts +14 -0
  509. package/dist/providers/storage/meter.js +34 -0
  510. package/dist/providers/storage/s3.d.ts +41 -0
  511. package/dist/providers/storage/s3.js +107 -0
  512. package/dist/providers/storage/types.d.ts +37 -3
  513. package/dist/providers/storage/types.js +21 -4
  514. package/dist/providers/vcs/git.d.ts +39 -4
  515. package/dist/providers/vcs/git.js +339 -26
  516. package/dist/providers/vcs/github-remote.d.ts +26 -3
  517. package/dist/providers/vcs/github-remote.js +124 -14
  518. package/dist/providers/vcs/github.d.ts +183 -44
  519. package/dist/providers/vcs/github.js +455 -56
  520. package/dist/providers/vcs/index.d.ts +1 -1
  521. package/dist/providers/vcs/index.js +9 -2
  522. package/dist/providers/vcs/pr-description.d.ts +127 -0
  523. package/dist/providers/vcs/pr-description.js +270 -0
  524. package/dist/providers/vcs/remote.d.ts +37 -1
  525. package/dist/providers/vcs/remote.js +7 -1
  526. package/dist/providers/vcs/routing.d.ts +16 -8
  527. package/dist/providers/vcs/routing.js +27 -6
  528. package/dist/providers/vcs/types.d.ts +150 -5
  529. package/dist/quickstart/coding-seed.d.ts +14 -3
  530. package/dist/quickstart/coding-seed.js +213 -4
  531. package/dist/quickstart/index.d.ts +5 -0
  532. package/dist/quickstart/index.js +21 -0
  533. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  534. package/dist/quickstart/reviewer-prompt.js +6 -6
  535. package/dist/quickstart-images.json +1 -1
  536. package/dist/sandbox/eval-core.d.ts +12 -2
  537. package/dist/sandbox/eval-core.js +20 -4
  538. package/dist/sandbox/generated/zod.bundle.js +62 -1
  539. package/dist/sandbox/generated/zod3.bundle.js +5 -0
  540. package/dist/sandbox/host-functions.d.ts +5 -0
  541. package/dist/sandbox/host-functions.js +13 -13
  542. package/dist/sandbox/limits.d.ts +4 -1
  543. package/dist/sandbox/limits.js +4 -1
  544. package/dist/sandbox/run-in-sandbox.d.ts +6 -0
  545. package/dist/sandbox/run-in-sandbox.js +14 -2
  546. package/dist/sandbox/safe-fetch.d.ts +2 -0
  547. package/dist/sandbox/safe-fetch.js +1 -1
  548. package/dist/sandbox/secret-broker.d.ts +1 -0
  549. package/dist/sandbox/secret-broker.js +4 -5
  550. package/dist/sandbox/tool-capabilities.d.ts +10 -30
  551. package/dist/sandbox/tool-timeout.d.ts +32 -0
  552. package/dist/sandbox/tool-timeout.js +52 -0
  553. package/dist/sandbox/user-tool.d.ts +8 -1
  554. package/dist/sandbox/user-tool.js +9 -3
  555. package/dist/sandbox/zod-params.d.ts +37 -5
  556. package/dist/sandbox/zod-params.js +181 -26
  557. package/dist/serve.js +8 -1
  558. package/dist/viewer/api-schema.d.ts +349 -2627
  559. package/dist/viewer/api-schema.js +7 -0
  560. package/dist/viewer/build-schemas.js +6 -2
  561. package/dist/viewer/graph.js +2 -1
  562. package/dist/viewer/openapi.js +2 -4
  563. package/dist/wardby-bin.js +15 -0
  564. package/docs/README.md +11 -1
  565. package/docs/agent-recipes.md +95 -24
  566. package/docs/architecture-runtime.md +1 -1
  567. package/docs/claude-code-plugin.md +164 -0
  568. package/docs/code-review-agents.md +557 -41
  569. package/docs/coding-agent-setup.md +566 -8
  570. package/docs/coding-packages.md +1033 -90
  571. package/docs/coding-services.md +27 -12
  572. package/docs/coding-worker-byo-images.md +24 -2
  573. package/docs/coding-worker-isolation.md +183 -37
  574. package/docs/debugging-agent-runs.md +242 -0
  575. package/docs/getting-started-gke.md +129 -141
  576. package/docs/getting-started-identity-provider.md +53 -38
  577. package/docs/getting-started.md +17 -0
  578. package/docs/host-providers.md +294 -0
  579. package/docs/jira-agents.md +17 -8
  580. package/docs/knowledge/blob-not-found-semantics.md +41 -0
  581. package/docs/knowledge/bounded-file-descriptor.md +52 -0
  582. package/docs/knowledge/delegation-admission-slots.md +52 -0
  583. package/docs/knowledge/http-dispatcher-bootstrap.md +61 -0
  584. package/docs/knowledge/import-rename-target.md +52 -0
  585. package/docs/knowledge/index.md +57 -0
  586. package/docs/knowledge/log.md +9 -0
  587. package/docs/knowledge/mcp-cancelled-task-precedence.md +41 -0
  588. package/docs/knowledge/mcp-http-prompt-discovery.md +41 -0
  589. package/docs/knowledge/mcp-schema-module-boundary.md +41 -0
  590. package/docs/knowledge/nullable-tool-uniqueness.md +52 -0
  591. package/docs/knowledge/overview-cli.md +74 -0
  592. package/docs/knowledge/overview-coding-proxy.md +72 -0
  593. package/docs/knowledge/overview-coding.md +72 -0
  594. package/docs/knowledge/overview-config.md +60 -0
  595. package/docs/knowledge/overview-core.md +72 -0
  596. package/docs/knowledge/overview-deploy.md +83 -0
  597. package/docs/knowledge/overview-mcp.md +61 -0
  598. package/docs/knowledge/overview-prisma.md +72 -0
  599. package/docs/knowledge/overview-providers.md +89 -0
  600. package/docs/knowledge/overview-sandbox.md +83 -0
  601. package/docs/knowledge/overview-surfaces.md +83 -0
  602. package/docs/knowledge/private-datastore-shared-boundary.md +54 -0
  603. package/docs/knowledge/proxy-settlement-projections.md +41 -0
  604. package/docs/knowledge/run-pricing-first-writer.md +43 -0
  605. package/docs/knowledge/schedule-claim-transaction.md +41 -0
  606. package/docs/knowledge/secret-entry-replica-contract.md +52 -0
  607. package/docs/knowledge/terminal-run-first-writer.md +41 -0
  608. package/docs/knowledge/transactional-agent-authorization.md +52 -0
  609. package/docs/knowledge/viewer-notify-write-isolation.md +30 -0
  610. package/docs/knowledge/warm-input-publication.md +30 -0
  611. package/docs/knowledge/workspace-staging-failure.md +54 -0
  612. package/docs/knowledge.md +54 -14
  613. package/docs/mcp-servers.md +254 -0
  614. package/docs/native-sandbox.md +143 -31
  615. package/docs/observability.md +4 -0
  616. package/docs/security-deployment.md +139 -29
  617. package/docs/slack-notifications.md +35 -19
  618. package/docs/tool-secrets.md +45 -10
  619. package/docs/viewer-api.md +6 -0
  620. package/docs/viewer-api.openapi.yml +1 -1
  621. package/help/admin-viewer.md +28 -2
  622. package/help/agent-recipes.md +33 -2
  623. package/help/architecture-agent.md +11 -6
  624. package/help/brokered-secrets.md +3 -0
  625. package/help/build-claude-code-image.md +1 -1
  626. package/help/build-worker-image.md +3 -1
  627. package/help/builder-agent.md +19 -6
  628. package/help/claude-code-run-pane.md +40 -0
  629. package/help/code-review-agents.md +177 -6
  630. package/help/coding-packages.md +156 -6
  631. package/help/cost-attribution.md +9 -5
  632. package/help/creating-agents.md +14 -1
  633. package/help/dependency-cache.md +143 -0
  634. package/help/deploy-gke.md +15 -8
  635. package/help/errors/budget-exhausted.md +187 -0
  636. package/help/errors/budget-group-exhausted.md +5 -1
  637. package/help/errors/coding-mcp-pins-unavailable.md +35 -0
  638. package/help/errors/coding-stream-quota-exceeded.md +33 -0
  639. package/help/errors/coding-workspace-disk-exceeds-limit.md +39 -0
  640. package/help/errors/continuation-closed.md +9 -12
  641. package/help/errors/database-auth-invalid.md +1 -1
  642. package/help/errors/delegation-conflict.md +24 -0
  643. package/help/errors/file-list-truncated.md +45 -0
  644. package/help/errors/full-read-required.md +49 -0
  645. package/help/errors/github-account-not-allowed.md +4 -0
  646. package/help/errors/graph-incomplete.md +43 -0
  647. package/help/errors/graph-limit.md +43 -0
  648. package/help/errors/host-provider-error.md +40 -0
  649. package/help/errors/host-tool-failed.md +36 -0
  650. package/help/errors/mcp-call-limit.md +22 -0
  651. package/help/errors/mcp-call-timeout.md +22 -0
  652. package/help/errors/mcp-server-auth-failed.md +22 -0
  653. package/help/errors/mcp-server-credentials-unavailable.md +45 -0
  654. package/help/errors/mcp-server-error.md +28 -0
  655. package/help/errors/mcp-server-unreachable.md +22 -0
  656. package/help/errors/mcp-servers-off.md +21 -0
  657. package/help/errors/mcp-tool-not-allowed.md +26 -0
  658. package/help/errors/mcp-tool-removed.md +22 -0
  659. package/help/errors/mcp-unavailable.md +25 -0
  660. package/help/errors/merge-conflict.md +49 -0
  661. package/help/errors/native-sandbox-capacity.md +1 -1
  662. package/help/errors/native-sandbox-deadline-exceeded.md +1 -1
  663. package/help/errors/native-sandbox-docker-failed.md +1 -1
  664. package/help/errors/native-sandbox-gateway-error.md +20 -0
  665. package/help/errors/native-sandbox-gateway-unavailable.md +1 -1
  666. package/help/errors/native-sandbox-image-not-pinned.md +1 -1
  667. package/help/errors/native-sandbox-isolation-mismatch.md +1 -1
  668. package/help/errors/native-sandbox-launch-abandoned.md +21 -0
  669. package/help/errors/native-sandbox-network-unenforced.md +1 -1
  670. package/help/errors/native-sandbox-requires-catalog.md +1 -1
  671. package/help/errors/native-sandbox-unavailable.md +1 -1
  672. package/help/errors/native-sandbox-warm-delivery-failed.md +1 -1
  673. package/help/errors/native-sandbox-worker-exited.md +4 -3
  674. package/help/errors/native-sandbox-worker-lost.md +1 -1
  675. package/help/errors/native-sandbox-worker-unready.md +1 -1
  676. package/help/errors/package-not-allowed-pending.md +52 -0
  677. package/help/errors/package-not-allowed.md +51 -0
  678. package/help/errors/package-refusals.md +43 -0
  679. package/help/errors/patch-cursor-malformed.md +31 -0
  680. package/help/errors/repository-not-listed.md +36 -0
  681. package/help/errors/repository-required.md +36 -0
  682. package/help/errors/run-lost.md +39 -0
  683. package/help/errors/run-transcript-download.md +44 -0
  684. package/help/errors/secret-in-value.md +69 -0
  685. package/help/errors/target-merge.md +40 -0
  686. package/help/errors/tool-timeout.md +38 -0
  687. package/help/fix-merge-conflicts.md +73 -0
  688. package/help/github-app-setup.md +132 -0
  689. package/help/github.md +22 -0
  690. package/help/host-providers.md +40 -0
  691. package/help/identity-and-access.md +6 -1
  692. package/help/jira.md +23 -6
  693. package/help/knowledge.md +16 -7
  694. package/help/local-repositories.md +1 -1
  695. package/help/low-power-mode.md +7 -1
  696. package/help/mcp-servers.md +73 -0
  697. package/help/mcp.md +7 -2
  698. package/help/merge-order-check.md +5 -0
  699. package/help/native-capabilities.md +55 -1
  700. package/help/native-sandbox.md +16 -2
  701. package/help/operating-agents.md +21 -0
  702. package/help/package-audit-mode.md +91 -0
  703. package/help/related-pull-requests.md +17 -10
  704. package/help/repo-instructions-and-skills.md +3 -1
  705. package/help/resume-runs-locally.md +134 -0
  706. package/help/review-fix-rounds.md +33 -1
  707. package/help/sharing-agents.md +59 -0
  708. package/help/slack-notifications.md +19 -5
  709. package/help/status-comments.md +31 -0
  710. package/help/stop-run.md +58 -0
  711. package/help/troubleshooting/budgets.md +28 -0
  712. package/help/troubleshooting/coding-workers.md +86 -7
  713. package/help/troubleshooting/debugging-agent-runs.md +29 -0
  714. package/package.json +18 -10
  715. package/prisma/migrations/20261016000000_registry_approved_accepted_advisories/migration.sql +3 -0
  716. package/prisma/migrations/20261016000001_mark_ready_when_passing/migration.sql +3 -0
  717. package/prisma/migrations/20261017000000_debug_trace_max_mb/migration.sql +4 -0
  718. package/prisma/migrations/20261018000000_dependency_cache/migration.sql +53 -0
  719. package/prisma/migrations/20261019000000_claude_max_output_tokens/migration.sql +5 -0
  720. package/prisma/migrations/20261021000000_pr_description_hash/migration.sql +4 -0
  721. package/prisma/migrations/20261022000000_dependency_snapshot_validation_metadata/migration.sql +4 -0
  722. package/prisma/migrations/20261023000000_package_audit_mode/migration.sql +27 -0
  723. package/prisma/migrations/20261024000000_budget_events/migration.sql +26 -0
  724. package/prisma/migrations/20261025000000_cache_aware_holds/migration.sql +9 -0
  725. package/prisma/migrations/20261026000000_budget_overrun/migration.sql +4 -0
  726. package/prisma/migrations/20261027000000_coding_run_request/migration.sql +1 -0
  727. package/prisma/migrations/20261028000000_native_gateway_review_reads/migration.sql +6 -0
  728. package/prisma/migrations/20261029000000_lead_survives_deploy/migration.sql +6 -0
  729. package/prisma/migrations/20261030000000_local_review_covered_sha/migration.sql +2 -0
  730. package/prisma/migrations/20261031000000_coding_run_budget_limit/migration.sql +9 -0
  731. package/prisma/migrations/20261101000000_run_transcripts/migration.sql +22 -0
  732. package/prisma/migrations/20261102000000_host_providers/migration.sql +56 -0
  733. package/prisma/migrations/20261104000000_coding_agent_repository_list/migration.sql +5 -0
  734. package/prisma/migrations/20261106000000_tool_timeout/migration.sql +4 -0
  735. package/prisma/migrations/20261107000000_mcp_servers/migration.sql +33 -0
  736. package/prisma/migrations/20261108000000_coding_mcp/migration.sql +5 -0
  737. package/prisma/migrations/20261109000000_task_run_index/migration.sql +3 -0
  738. package/prisma/schema.prisma +468 -109
  739. package/scripts/git-askpass.sh +1 -1
  740. package/dist/sandbox/generated/zod-to-json-schema.bundle.js +0 -5
@@ -6,76 +6,44 @@
6
6
  * `npm run build:viewer-schemas`, and commit the regenerated files.
7
7
  */
8
8
  import { z } from "zod";
9
- export declare const RunStatusSchema: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
9
+ export declare const RunStatusSchema: z.ZodEnum<{
10
+ pending: "pending";
11
+ failed: "failed";
12
+ budget_exhausted: "budget_exhausted";
13
+ refused: "refused";
14
+ lost: "lost";
15
+ running: "running";
16
+ succeeded: "succeeded";
17
+ cancelled: "cancelled";
18
+ }>;
10
19
  /** What started a run, resolved for display. A sub-agent run's cause is its parent (parentRunId). */
11
- export declare const RunTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
20
+ export declare const RunTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
21
  kind: z.ZodLiteral<"manual">;
13
- }, "strip", z.ZodTypeAny, {
14
- kind: "manual";
15
- }, {
16
- kind: "manual";
17
- }>, z.ZodObject<{
22
+ }, z.core.$strip>, z.ZodObject<{
18
23
  kind: z.ZodLiteral<"scheduled">;
19
24
  schedule: z.ZodNullable<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- kind: "scheduled";
22
- schedule: string | null;
23
- }, {
24
- kind: "scheduled";
25
- schedule: string | null;
26
- }>, z.ZodObject<{
25
+ }, z.core.$strip>, z.ZodObject<{
27
26
  kind: z.ZodLiteral<"webhook">;
28
- }, "strip", z.ZodTypeAny, {
29
- kind: "webhook";
30
- }, {
31
- kind: "webhook";
32
- }>, z.ZodObject<{
27
+ }, z.core.$strip>, z.ZodObject<{
33
28
  kind: z.ZodLiteral<"subagent">;
34
- }, "strip", z.ZodTypeAny, {
35
- kind: "subagent";
36
- }, {
37
- kind: "subagent";
38
- }>, z.ZodObject<{
29
+ }, z.core.$strip>, z.ZodObject<{
39
30
  kind: z.ZodLiteral<"code_host">;
40
31
  provider: z.ZodString;
41
32
  repository: z.ZodString;
42
33
  number: z.ZodNullable<z.ZodNumber>;
43
- event: z.ZodEnum<["review", "mention"]>;
44
- }, "strip", z.ZodTypeAny, {
45
- number: number | null;
46
- repository: string;
47
- provider: string;
48
- event: "mention" | "review";
49
- kind: "code_host";
50
- }, {
51
- number: number | null;
52
- repository: string;
53
- provider: string;
54
- event: "mention" | "review";
55
- kind: "code_host";
56
- }>, z.ZodObject<{
34
+ event: z.ZodEnum<{
35
+ mention: "mention";
36
+ review: "review";
37
+ }>;
38
+ }, z.core.$strip>, z.ZodObject<{
57
39
  kind: z.ZodLiteral<"issue">;
58
40
  provider: z.ZodString;
59
41
  issueKey: z.ZodString;
60
42
  url: z.ZodNullable<z.ZodString>;
61
- }, "strip", z.ZodTypeAny, {
62
- provider: string;
63
- kind: "issue";
64
- url: string | null;
65
- issueKey: string;
66
- }, {
67
- provider: string;
68
- kind: "issue";
69
- url: string | null;
70
- issueKey: string;
71
- }>, z.ZodObject<{
43
+ }, z.core.$strip>, z.ZodObject<{
72
44
  kind: z.ZodLiteral<"host_event">;
73
- }, "strip", z.ZodTypeAny, {
74
- kind: "host_event";
75
- }, {
76
- kind: "host_event";
77
- }>]>;
78
- export declare const OutcomeSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
45
+ }, z.core.$strip>], "kind">;
46
+ export declare const OutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
47
  kind: z.ZodLiteral<"pull_request">;
80
48
  provider: z.ZodString;
81
49
  repository: z.ZodString;
@@ -83,187 +51,92 @@ export declare const OutcomeSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject
83
51
  url: z.ZodString;
84
52
  state: z.ZodNullable<z.ZodString>;
85
53
  at: z.ZodNullable<z.ZodString>;
86
- }, "strip", z.ZodTypeAny, {
87
- number: number;
88
- at: string | null;
89
- repository: string;
90
- provider: string;
91
- kind: "pull_request";
92
- url: string;
93
- state: string | null;
94
- }, {
95
- number: number;
96
- at: string | null;
97
- repository: string;
98
- provider: string;
99
- kind: "pull_request";
100
- url: string;
101
- state: string | null;
102
- }>, z.ZodObject<{
54
+ }, z.core.$strip>, z.ZodObject<{
103
55
  kind: z.ZodLiteral<"code_host_comment">;
104
56
  provider: z.ZodString;
105
57
  repository: z.ZodString;
106
58
  number: z.ZodNumber;
107
59
  at: z.ZodNullable<z.ZodString>;
108
- }, "strip", z.ZodTypeAny, {
109
- number: number;
110
- at: string | null;
111
- repository: string;
112
- provider: string;
113
- kind: "code_host_comment";
114
- }, {
115
- number: number;
116
- at: string | null;
117
- repository: string;
118
- provider: string;
119
- kind: "code_host_comment";
120
- }>, z.ZodObject<{
60
+ }, z.core.$strip>, z.ZodObject<{
121
61
  kind: z.ZodLiteral<"issue_comment">;
122
62
  provider: z.ZodString;
123
63
  issueKey: z.ZodString;
124
64
  url: z.ZodNullable<z.ZodString>;
125
65
  at: z.ZodNullable<z.ZodString>;
126
- }, "strip", z.ZodTypeAny, {
127
- at: string | null;
128
- provider: string;
129
- kind: "issue_comment";
130
- url: string | null;
131
- issueKey: string;
132
- }, {
133
- at: string | null;
134
- provider: string;
135
- kind: "issue_comment";
136
- url: string | null;
137
- issueKey: string;
138
- }>, z.ZodObject<{
66
+ }, z.core.$strip>, z.ZodObject<{
139
67
  kind: z.ZodLiteral<"check">;
140
68
  provider: z.ZodString;
141
69
  repository: z.ZodString;
142
70
  number: z.ZodNullable<z.ZodNumber>;
143
71
  completed: z.ZodBoolean;
144
72
  at: z.ZodNullable<z.ZodString>;
145
- }, "strip", z.ZodTypeAny, {
146
- number: number | null;
147
- at: string | null;
148
- repository: string;
149
- provider: string;
150
- completed: boolean;
151
- kind: "check";
152
- }, {
153
- number: number | null;
154
- at: string | null;
155
- repository: string;
156
- provider: string;
157
- completed: boolean;
158
- kind: "check";
159
- }>]>;
73
+ }, z.core.$strip>], "kind">;
160
74
  export declare const ServiceStatusSchema: z.ZodObject<{
161
75
  name: z.ZodString;
162
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
76
+ state: z.ZodEnum<{
77
+ pending: "pending";
78
+ ready: "ready";
79
+ failed: "failed";
80
+ probing: "probing";
81
+ }>;
163
82
  attempts: z.ZodNullable<z.ZodNumber>;
164
83
  reason: z.ZodNullable<z.ZodString>;
165
84
  readyAt: z.ZodNullable<z.ZodString>;
166
85
  failedAt: z.ZodNullable<z.ZodString>;
167
86
  createdAt: z.ZodString;
168
- }, "strip", z.ZodTypeAny, {
169
- name: string;
170
- createdAt: string;
171
- state: "failed" | "pending" | "probing" | "ready";
172
- reason: string | null;
173
- attempts: number | null;
174
- readyAt: string | null;
175
- failedAt: string | null;
176
- }, {
177
- name: string;
178
- createdAt: string;
179
- state: "failed" | "pending" | "probing" | "ready";
180
- reason: string | null;
181
- attempts: number | null;
182
- readyAt: string | null;
183
- failedAt: string | null;
184
- }>;
87
+ }, z.core.$strip>;
185
88
  export declare const GraphRunSchema: z.ZodObject<{
186
89
  id: z.ZodString;
187
90
  parentRunId: z.ZodNullable<z.ZodString>;
188
91
  agentId: z.ZodString;
189
92
  agentName: z.ZodString;
190
- agentKind: z.ZodEnum<["native", "coding"]>;
191
- /** The coding run's model, else the agent's. */
93
+ agentKind: z.ZodEnum<{
94
+ native: "native";
95
+ coding: "coding";
96
+ }>;
192
97
  model: z.ZodString;
193
- /** The coding worker (e.g. `codex`, `claude-code`); null for native runs. */
194
98
  codingProvider: z.ZodNullable<z.ZodString>;
195
- /** Where a native run executed, snapshotted at start; null for coding runs and runs from before the field existed. */
196
- nativeExecutionMode: z.ZodNullable<z.ZodEnum<["control-plane", "sandbox"]>>;
197
- /** The warm pool worker (container or pod name) a sandbox run claimed, while its record lasts; null otherwise. */
99
+ nativeExecutionMode: z.ZodNullable<z.ZodEnum<{
100
+ sandbox: "sandbox";
101
+ "control-plane": "control-plane";
102
+ }>>;
198
103
  warmWorkerName: z.ZodNullable<z.ZodString>;
199
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
200
- trigger: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
104
+ status: z.ZodEnum<{
105
+ pending: "pending";
106
+ failed: "failed";
107
+ budget_exhausted: "budget_exhausted";
108
+ refused: "refused";
109
+ lost: "lost";
110
+ running: "running";
111
+ succeeded: "succeeded";
112
+ cancelled: "cancelled";
113
+ }>;
114
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
201
115
  kind: z.ZodLiteral<"manual">;
202
- }, "strip", z.ZodTypeAny, {
203
- kind: "manual";
204
- }, {
205
- kind: "manual";
206
- }>, z.ZodObject<{
116
+ }, z.core.$strip>, z.ZodObject<{
207
117
  kind: z.ZodLiteral<"scheduled">;
208
118
  schedule: z.ZodNullable<z.ZodString>;
209
- }, "strip", z.ZodTypeAny, {
210
- kind: "scheduled";
211
- schedule: string | null;
212
- }, {
213
- kind: "scheduled";
214
- schedule: string | null;
215
- }>, z.ZodObject<{
119
+ }, z.core.$strip>, z.ZodObject<{
216
120
  kind: z.ZodLiteral<"webhook">;
217
- }, "strip", z.ZodTypeAny, {
218
- kind: "webhook";
219
- }, {
220
- kind: "webhook";
221
- }>, z.ZodObject<{
121
+ }, z.core.$strip>, z.ZodObject<{
222
122
  kind: z.ZodLiteral<"subagent">;
223
- }, "strip", z.ZodTypeAny, {
224
- kind: "subagent";
225
- }, {
226
- kind: "subagent";
227
- }>, z.ZodObject<{
123
+ }, z.core.$strip>, z.ZodObject<{
228
124
  kind: z.ZodLiteral<"code_host">;
229
125
  provider: z.ZodString;
230
126
  repository: z.ZodString;
231
127
  number: z.ZodNullable<z.ZodNumber>;
232
- event: z.ZodEnum<["review", "mention"]>;
233
- }, "strip", z.ZodTypeAny, {
234
- number: number | null;
235
- repository: string;
236
- provider: string;
237
- event: "mention" | "review";
238
- kind: "code_host";
239
- }, {
240
- number: number | null;
241
- repository: string;
242
- provider: string;
243
- event: "mention" | "review";
244
- kind: "code_host";
245
- }>, z.ZodObject<{
128
+ event: z.ZodEnum<{
129
+ mention: "mention";
130
+ review: "review";
131
+ }>;
132
+ }, z.core.$strip>, z.ZodObject<{
246
133
  kind: z.ZodLiteral<"issue">;
247
134
  provider: z.ZodString;
248
135
  issueKey: z.ZodString;
249
136
  url: z.ZodNullable<z.ZodString>;
250
- }, "strip", z.ZodTypeAny, {
251
- provider: string;
252
- kind: "issue";
253
- url: string | null;
254
- issueKey: string;
255
- }, {
256
- provider: string;
257
- kind: "issue";
258
- url: string | null;
259
- issueKey: string;
260
- }>, z.ZodObject<{
137
+ }, z.core.$strip>, z.ZodObject<{
261
138
  kind: z.ZodLiteral<"host_event">;
262
- }, "strip", z.ZodTypeAny, {
263
- kind: "host_event";
264
- }, {
265
- kind: "host_event";
266
- }>]>;
139
+ }, z.core.$strip>], "kind">;
267
140
  turns: z.ZodNumber;
268
141
  tokensIn: z.ZodNumber;
269
142
  tokensOut: z.ZodNumber;
@@ -272,7 +145,7 @@ export declare const GraphRunSchema: z.ZodObject<{
272
145
  startedAt: z.ZodString;
273
146
  finishedAt: z.ZodNullable<z.ZodString>;
274
147
  heartbeatAt: z.ZodNullable<z.ZodString>;
275
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
148
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
276
149
  kind: z.ZodLiteral<"pull_request">;
277
150
  provider: z.ZodString;
278
151
  repository: z.ZodString;
@@ -280,300 +153,51 @@ export declare const GraphRunSchema: z.ZodObject<{
280
153
  url: z.ZodString;
281
154
  state: z.ZodNullable<z.ZodString>;
282
155
  at: z.ZodNullable<z.ZodString>;
283
- }, "strip", z.ZodTypeAny, {
284
- number: number;
285
- at: string | null;
286
- repository: string;
287
- provider: string;
288
- kind: "pull_request";
289
- url: string;
290
- state: string | null;
291
- }, {
292
- number: number;
293
- at: string | null;
294
- repository: string;
295
- provider: string;
296
- kind: "pull_request";
297
- url: string;
298
- state: string | null;
299
- }>, z.ZodObject<{
156
+ }, z.core.$strip>, z.ZodObject<{
300
157
  kind: z.ZodLiteral<"code_host_comment">;
301
158
  provider: z.ZodString;
302
159
  repository: z.ZodString;
303
160
  number: z.ZodNumber;
304
161
  at: z.ZodNullable<z.ZodString>;
305
- }, "strip", z.ZodTypeAny, {
306
- number: number;
307
- at: string | null;
308
- repository: string;
309
- provider: string;
310
- kind: "code_host_comment";
311
- }, {
312
- number: number;
313
- at: string | null;
314
- repository: string;
315
- provider: string;
316
- kind: "code_host_comment";
317
- }>, z.ZodObject<{
162
+ }, z.core.$strip>, z.ZodObject<{
318
163
  kind: z.ZodLiteral<"issue_comment">;
319
164
  provider: z.ZodString;
320
165
  issueKey: z.ZodString;
321
166
  url: z.ZodNullable<z.ZodString>;
322
167
  at: z.ZodNullable<z.ZodString>;
323
- }, "strip", z.ZodTypeAny, {
324
- at: string | null;
325
- provider: string;
326
- kind: "issue_comment";
327
- url: string | null;
328
- issueKey: string;
329
- }, {
330
- at: string | null;
331
- provider: string;
332
- kind: "issue_comment";
333
- url: string | null;
334
- issueKey: string;
335
- }>, z.ZodObject<{
168
+ }, z.core.$strip>, z.ZodObject<{
336
169
  kind: z.ZodLiteral<"check">;
337
170
  provider: z.ZodString;
338
171
  repository: z.ZodString;
339
172
  number: z.ZodNullable<z.ZodNumber>;
340
173
  completed: z.ZodBoolean;
341
174
  at: z.ZodNullable<z.ZodString>;
342
- }, "strip", z.ZodTypeAny, {
343
- number: number | null;
344
- at: string | null;
345
- repository: string;
346
- provider: string;
347
- completed: boolean;
348
- kind: "check";
349
- }, {
350
- number: number | null;
351
- at: string | null;
352
- repository: string;
353
- provider: string;
354
- completed: boolean;
355
- kind: "check";
356
- }>]>, "many">;
357
- /** The services a coding run was started with, recorded or not; empty for native runs. */
175
+ }, z.core.$strip>], "kind">>;
358
176
  declaredServices: z.ZodArray<z.ZodObject<{
359
177
  name: z.ZodString;
360
178
  version: z.ZodString;
361
- }, "strip", z.ZodTypeAny, {
362
- name: string;
363
- version: string;
364
- }, {
365
- name: string;
366
- version: string;
367
- }>, "many">;
368
- /** Recorded readiness of the run's services (none before status tracking existed). */
179
+ }, z.core.$strip>>;
369
180
  services: z.ZodArray<z.ZodObject<{
370
181
  name: z.ZodString;
371
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
182
+ state: z.ZodEnum<{
183
+ pending: "pending";
184
+ ready: "ready";
185
+ failed: "failed";
186
+ probing: "probing";
187
+ }>;
372
188
  attempts: z.ZodNullable<z.ZodNumber>;
373
189
  reason: z.ZodNullable<z.ZodString>;
374
190
  readyAt: z.ZodNullable<z.ZodString>;
375
191
  failedAt: z.ZodNullable<z.ZodString>;
376
192
  createdAt: z.ZodString;
377
- }, "strip", z.ZodTypeAny, {
378
- name: string;
379
- createdAt: string;
380
- state: "failed" | "pending" | "probing" | "ready";
381
- reason: string | null;
382
- attempts: number | null;
383
- readyAt: string | null;
384
- failedAt: string | null;
385
- }, {
386
- name: string;
387
- createdAt: string;
388
- state: "failed" | "pending" | "probing" | "ready";
389
- reason: string | null;
390
- attempts: number | null;
391
- readyAt: string | null;
392
- failedAt: string | null;
393
- }>, "many">;
394
- }, "strip", z.ZodTypeAny, {
395
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
396
- tokensIn: number;
397
- tokensOut: number;
398
- costUsd: number;
399
- model: string;
400
- budgetUsd: number;
401
- services: {
402
- name: string;
403
- createdAt: string;
404
- state: "failed" | "pending" | "probing" | "ready";
405
- reason: string | null;
406
- attempts: number | null;
407
- readyAt: string | null;
408
- failedAt: string | null;
409
- }[];
410
- id: string;
411
- agentId: string;
412
- trigger: {
413
- kind: "manual";
414
- } | {
415
- kind: "scheduled";
416
- schedule: string | null;
417
- } | {
418
- kind: "webhook";
419
- } | {
420
- kind: "subagent";
421
- } | {
422
- number: number | null;
423
- repository: string;
424
- provider: string;
425
- event: "mention" | "review";
426
- kind: "code_host";
427
- } | {
428
- provider: string;
429
- kind: "issue";
430
- url: string | null;
431
- issueKey: string;
432
- } | {
433
- kind: "host_event";
434
- };
435
- startedAt: string;
436
- finishedAt: string | null;
437
- heartbeatAt: string | null;
438
- turns: number;
439
- nativeExecutionMode: "sandbox" | "control-plane" | null;
440
- parentRunId: string | null;
441
- agentName: string;
442
- agentKind: "native" | "coding";
443
- codingProvider: string | null;
444
- warmWorkerName: string | null;
445
- outcomes: ({
446
- number: number;
447
- at: string | null;
448
- repository: string;
449
- provider: string;
450
- kind: "pull_request";
451
- url: string;
452
- state: string | null;
453
- } | {
454
- number: number;
455
- at: string | null;
456
- repository: string;
457
- provider: string;
458
- kind: "code_host_comment";
459
- } | {
460
- at: string | null;
461
- provider: string;
462
- kind: "issue_comment";
463
- url: string | null;
464
- issueKey: string;
465
- } | {
466
- number: number | null;
467
- at: string | null;
468
- repository: string;
469
- provider: string;
470
- completed: boolean;
471
- kind: "check";
472
- })[];
473
- declaredServices: {
474
- name: string;
475
- version: string;
476
- }[];
477
- }, {
478
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
479
- tokensIn: number;
480
- tokensOut: number;
481
- costUsd: number;
482
- model: string;
483
- budgetUsd: number;
484
- services: {
485
- name: string;
486
- createdAt: string;
487
- state: "failed" | "pending" | "probing" | "ready";
488
- reason: string | null;
489
- attempts: number | null;
490
- readyAt: string | null;
491
- failedAt: string | null;
492
- }[];
493
- id: string;
494
- agentId: string;
495
- trigger: {
496
- kind: "manual";
497
- } | {
498
- kind: "scheduled";
499
- schedule: string | null;
500
- } | {
501
- kind: "webhook";
502
- } | {
503
- kind: "subagent";
504
- } | {
505
- number: number | null;
506
- repository: string;
507
- provider: string;
508
- event: "mention" | "review";
509
- kind: "code_host";
510
- } | {
511
- provider: string;
512
- kind: "issue";
513
- url: string | null;
514
- issueKey: string;
515
- } | {
516
- kind: "host_event";
517
- };
518
- startedAt: string;
519
- finishedAt: string | null;
520
- heartbeatAt: string | null;
521
- turns: number;
522
- nativeExecutionMode: "sandbox" | "control-plane" | null;
523
- parentRunId: string | null;
524
- agentName: string;
525
- agentKind: "native" | "coding";
526
- codingProvider: string | null;
527
- warmWorkerName: string | null;
528
- outcomes: ({
529
- number: number;
530
- at: string | null;
531
- repository: string;
532
- provider: string;
533
- kind: "pull_request";
534
- url: string;
535
- state: string | null;
536
- } | {
537
- number: number;
538
- at: string | null;
539
- repository: string;
540
- provider: string;
541
- kind: "code_host_comment";
542
- } | {
543
- at: string | null;
544
- provider: string;
545
- kind: "issue_comment";
546
- url: string | null;
547
- issueKey: string;
548
- } | {
549
- number: number | null;
550
- at: string | null;
551
- repository: string;
552
- provider: string;
553
- completed: boolean;
554
- kind: "check";
555
- })[];
556
- declaredServices: {
557
- name: string;
558
- version: string;
559
- }[];
560
- }>;
193
+ }, z.core.$strip>>;
194
+ }, z.core.$strip>;
561
195
  export declare const BudgetGroupSpendSchema: z.ZodObject<{
562
196
  id: z.ZodString;
563
197
  name: z.ZodString;
564
198
  dailyBudgetUsd: z.ZodNullable<z.ZodNumber>;
565
199
  spentTodayUsd: z.ZodNumber;
566
- }, "strip", z.ZodTypeAny, {
567
- name: string;
568
- id: string;
569
- dailyBudgetUsd: number | null;
570
- spentTodayUsd: number;
571
- }, {
572
- name: string;
573
- id: string;
574
- dailyBudgetUsd: number | null;
575
- spentTodayUsd: number;
576
- }>;
200
+ }, z.core.$strip>;
577
201
  export declare const GraphSnapshotSchema: z.ZodObject<{
578
202
  generatedAt: z.ZodString;
579
203
  since: z.ZodString;
@@ -584,83 +208,53 @@ export declare const GraphSnapshotSchema: z.ZodObject<{
584
208
  parentRunId: z.ZodNullable<z.ZodString>;
585
209
  agentId: z.ZodString;
586
210
  agentName: z.ZodString;
587
- agentKind: z.ZodEnum<["native", "coding"]>;
588
- /** The coding run's model, else the agent's. */
211
+ agentKind: z.ZodEnum<{
212
+ native: "native";
213
+ coding: "coding";
214
+ }>;
589
215
  model: z.ZodString;
590
- /** The coding worker (e.g. `codex`, `claude-code`); null for native runs. */
591
216
  codingProvider: z.ZodNullable<z.ZodString>;
592
- /** Where a native run executed, snapshotted at start; null for coding runs and runs from before the field existed. */
593
- nativeExecutionMode: z.ZodNullable<z.ZodEnum<["control-plane", "sandbox"]>>;
594
- /** The warm pool worker (container or pod name) a sandbox run claimed, while its record lasts; null otherwise. */
217
+ nativeExecutionMode: z.ZodNullable<z.ZodEnum<{
218
+ sandbox: "sandbox";
219
+ "control-plane": "control-plane";
220
+ }>>;
595
221
  warmWorkerName: z.ZodNullable<z.ZodString>;
596
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
597
- trigger: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
222
+ status: z.ZodEnum<{
223
+ pending: "pending";
224
+ failed: "failed";
225
+ budget_exhausted: "budget_exhausted";
226
+ refused: "refused";
227
+ lost: "lost";
228
+ running: "running";
229
+ succeeded: "succeeded";
230
+ cancelled: "cancelled";
231
+ }>;
232
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
598
233
  kind: z.ZodLiteral<"manual">;
599
- }, "strip", z.ZodTypeAny, {
600
- kind: "manual";
601
- }, {
602
- kind: "manual";
603
- }>, z.ZodObject<{
234
+ }, z.core.$strip>, z.ZodObject<{
604
235
  kind: z.ZodLiteral<"scheduled">;
605
236
  schedule: z.ZodNullable<z.ZodString>;
606
- }, "strip", z.ZodTypeAny, {
607
- kind: "scheduled";
608
- schedule: string | null;
609
- }, {
610
- kind: "scheduled";
611
- schedule: string | null;
612
- }>, z.ZodObject<{
237
+ }, z.core.$strip>, z.ZodObject<{
613
238
  kind: z.ZodLiteral<"webhook">;
614
- }, "strip", z.ZodTypeAny, {
615
- kind: "webhook";
616
- }, {
617
- kind: "webhook";
618
- }>, z.ZodObject<{
239
+ }, z.core.$strip>, z.ZodObject<{
619
240
  kind: z.ZodLiteral<"subagent">;
620
- }, "strip", z.ZodTypeAny, {
621
- kind: "subagent";
622
- }, {
623
- kind: "subagent";
624
- }>, z.ZodObject<{
241
+ }, z.core.$strip>, z.ZodObject<{
625
242
  kind: z.ZodLiteral<"code_host">;
626
243
  provider: z.ZodString;
627
244
  repository: z.ZodString;
628
245
  number: z.ZodNullable<z.ZodNumber>;
629
- event: z.ZodEnum<["review", "mention"]>;
630
- }, "strip", z.ZodTypeAny, {
631
- number: number | null;
632
- repository: string;
633
- provider: string;
634
- event: "mention" | "review";
635
- kind: "code_host";
636
- }, {
637
- number: number | null;
638
- repository: string;
639
- provider: string;
640
- event: "mention" | "review";
641
- kind: "code_host";
642
- }>, z.ZodObject<{
246
+ event: z.ZodEnum<{
247
+ mention: "mention";
248
+ review: "review";
249
+ }>;
250
+ }, z.core.$strip>, z.ZodObject<{
643
251
  kind: z.ZodLiteral<"issue">;
644
252
  provider: z.ZodString;
645
253
  issueKey: z.ZodString;
646
254
  url: z.ZodNullable<z.ZodString>;
647
- }, "strip", z.ZodTypeAny, {
648
- provider: string;
649
- kind: "issue";
650
- url: string | null;
651
- issueKey: string;
652
- }, {
653
- provider: string;
654
- kind: "issue";
655
- url: string | null;
656
- issueKey: string;
657
- }>, z.ZodObject<{
255
+ }, z.core.$strip>, z.ZodObject<{
658
256
  kind: z.ZodLiteral<"host_event">;
659
- }, "strip", z.ZodTypeAny, {
660
- kind: "host_event";
661
- }, {
662
- kind: "host_event";
663
- }>]>;
257
+ }, z.core.$strip>], "kind">;
664
258
  turns: z.ZodNumber;
665
259
  tokensIn: z.ZodNumber;
666
260
  tokensOut: z.ZodNumber;
@@ -669,7 +263,7 @@ export declare const GraphSnapshotSchema: z.ZodObject<{
669
263
  startedAt: z.ZodString;
670
264
  finishedAt: z.ZodNullable<z.ZodString>;
671
265
  heartbeatAt: z.ZodNullable<z.ZodString>;
672
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
266
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
673
267
  kind: z.ZodLiteral<"pull_request">;
674
268
  provider: z.ZodString;
675
269
  repository: z.ZodString;
@@ -677,284 +271,45 @@ export declare const GraphSnapshotSchema: z.ZodObject<{
677
271
  url: z.ZodString;
678
272
  state: z.ZodNullable<z.ZodString>;
679
273
  at: z.ZodNullable<z.ZodString>;
680
- }, "strip", z.ZodTypeAny, {
681
- number: number;
682
- at: string | null;
683
- repository: string;
684
- provider: string;
685
- kind: "pull_request";
686
- url: string;
687
- state: string | null;
688
- }, {
689
- number: number;
690
- at: string | null;
691
- repository: string;
692
- provider: string;
693
- kind: "pull_request";
694
- url: string;
695
- state: string | null;
696
- }>, z.ZodObject<{
274
+ }, z.core.$strip>, z.ZodObject<{
697
275
  kind: z.ZodLiteral<"code_host_comment">;
698
276
  provider: z.ZodString;
699
277
  repository: z.ZodString;
700
278
  number: z.ZodNumber;
701
279
  at: z.ZodNullable<z.ZodString>;
702
- }, "strip", z.ZodTypeAny, {
703
- number: number;
704
- at: string | null;
705
- repository: string;
706
- provider: string;
707
- kind: "code_host_comment";
708
- }, {
709
- number: number;
710
- at: string | null;
711
- repository: string;
712
- provider: string;
713
- kind: "code_host_comment";
714
- }>, z.ZodObject<{
280
+ }, z.core.$strip>, z.ZodObject<{
715
281
  kind: z.ZodLiteral<"issue_comment">;
716
282
  provider: z.ZodString;
717
283
  issueKey: z.ZodString;
718
284
  url: z.ZodNullable<z.ZodString>;
719
285
  at: z.ZodNullable<z.ZodString>;
720
- }, "strip", z.ZodTypeAny, {
721
- at: string | null;
722
- provider: string;
723
- kind: "issue_comment";
724
- url: string | null;
725
- issueKey: string;
726
- }, {
727
- at: string | null;
728
- provider: string;
729
- kind: "issue_comment";
730
- url: string | null;
731
- issueKey: string;
732
- }>, z.ZodObject<{
286
+ }, z.core.$strip>, z.ZodObject<{
733
287
  kind: z.ZodLiteral<"check">;
734
288
  provider: z.ZodString;
735
289
  repository: z.ZodString;
736
290
  number: z.ZodNullable<z.ZodNumber>;
737
291
  completed: z.ZodBoolean;
738
292
  at: z.ZodNullable<z.ZodString>;
739
- }, "strip", z.ZodTypeAny, {
740
- number: number | null;
741
- at: string | null;
742
- repository: string;
743
- provider: string;
744
- completed: boolean;
745
- kind: "check";
746
- }, {
747
- number: number | null;
748
- at: string | null;
749
- repository: string;
750
- provider: string;
751
- completed: boolean;
752
- kind: "check";
753
- }>]>, "many">;
754
- /** The services a coding run was started with, recorded or not; empty for native runs. */
293
+ }, z.core.$strip>], "kind">>;
755
294
  declaredServices: z.ZodArray<z.ZodObject<{
756
295
  name: z.ZodString;
757
296
  version: z.ZodString;
758
- }, "strip", z.ZodTypeAny, {
759
- name: string;
760
- version: string;
761
- }, {
762
- name: string;
763
- version: string;
764
- }>, "many">;
765
- /** Recorded readiness of the run's services (none before status tracking existed). */
297
+ }, z.core.$strip>>;
766
298
  services: z.ZodArray<z.ZodObject<{
767
299
  name: z.ZodString;
768
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
300
+ state: z.ZodEnum<{
301
+ pending: "pending";
302
+ ready: "ready";
303
+ failed: "failed";
304
+ probing: "probing";
305
+ }>;
769
306
  attempts: z.ZodNullable<z.ZodNumber>;
770
307
  reason: z.ZodNullable<z.ZodString>;
771
308
  readyAt: z.ZodNullable<z.ZodString>;
772
309
  failedAt: z.ZodNullable<z.ZodString>;
773
310
  createdAt: z.ZodString;
774
- }, "strip", z.ZodTypeAny, {
775
- name: string;
776
- createdAt: string;
777
- state: "failed" | "pending" | "probing" | "ready";
778
- reason: string | null;
779
- attempts: number | null;
780
- readyAt: string | null;
781
- failedAt: string | null;
782
- }, {
783
- name: string;
784
- createdAt: string;
785
- state: "failed" | "pending" | "probing" | "ready";
786
- reason: string | null;
787
- attempts: number | null;
788
- readyAt: string | null;
789
- failedAt: string | null;
790
- }>, "many">;
791
- }, "strip", z.ZodTypeAny, {
792
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
793
- tokensIn: number;
794
- tokensOut: number;
795
- costUsd: number;
796
- model: string;
797
- budgetUsd: number;
798
- services: {
799
- name: string;
800
- createdAt: string;
801
- state: "failed" | "pending" | "probing" | "ready";
802
- reason: string | null;
803
- attempts: number | null;
804
- readyAt: string | null;
805
- failedAt: string | null;
806
- }[];
807
- id: string;
808
- agentId: string;
809
- trigger: {
810
- kind: "manual";
811
- } | {
812
- kind: "scheduled";
813
- schedule: string | null;
814
- } | {
815
- kind: "webhook";
816
- } | {
817
- kind: "subagent";
818
- } | {
819
- number: number | null;
820
- repository: string;
821
- provider: string;
822
- event: "mention" | "review";
823
- kind: "code_host";
824
- } | {
825
- provider: string;
826
- kind: "issue";
827
- url: string | null;
828
- issueKey: string;
829
- } | {
830
- kind: "host_event";
831
- };
832
- startedAt: string;
833
- finishedAt: string | null;
834
- heartbeatAt: string | null;
835
- turns: number;
836
- nativeExecutionMode: "sandbox" | "control-plane" | null;
837
- parentRunId: string | null;
838
- agentName: string;
839
- agentKind: "native" | "coding";
840
- codingProvider: string | null;
841
- warmWorkerName: string | null;
842
- outcomes: ({
843
- number: number;
844
- at: string | null;
845
- repository: string;
846
- provider: string;
847
- kind: "pull_request";
848
- url: string;
849
- state: string | null;
850
- } | {
851
- number: number;
852
- at: string | null;
853
- repository: string;
854
- provider: string;
855
- kind: "code_host_comment";
856
- } | {
857
- at: string | null;
858
- provider: string;
859
- kind: "issue_comment";
860
- url: string | null;
861
- issueKey: string;
862
- } | {
863
- number: number | null;
864
- at: string | null;
865
- repository: string;
866
- provider: string;
867
- completed: boolean;
868
- kind: "check";
869
- })[];
870
- declaredServices: {
871
- name: string;
872
- version: string;
873
- }[];
874
- }, {
875
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
876
- tokensIn: number;
877
- tokensOut: number;
878
- costUsd: number;
879
- model: string;
880
- budgetUsd: number;
881
- services: {
882
- name: string;
883
- createdAt: string;
884
- state: "failed" | "pending" | "probing" | "ready";
885
- reason: string | null;
886
- attempts: number | null;
887
- readyAt: string | null;
888
- failedAt: string | null;
889
- }[];
890
- id: string;
891
- agentId: string;
892
- trigger: {
893
- kind: "manual";
894
- } | {
895
- kind: "scheduled";
896
- schedule: string | null;
897
- } | {
898
- kind: "webhook";
899
- } | {
900
- kind: "subagent";
901
- } | {
902
- number: number | null;
903
- repository: string;
904
- provider: string;
905
- event: "mention" | "review";
906
- kind: "code_host";
907
- } | {
908
- provider: string;
909
- kind: "issue";
910
- url: string | null;
911
- issueKey: string;
912
- } | {
913
- kind: "host_event";
914
- };
915
- startedAt: string;
916
- finishedAt: string | null;
917
- heartbeatAt: string | null;
918
- turns: number;
919
- nativeExecutionMode: "sandbox" | "control-plane" | null;
920
- parentRunId: string | null;
921
- agentName: string;
922
- agentKind: "native" | "coding";
923
- codingProvider: string | null;
924
- warmWorkerName: string | null;
925
- outcomes: ({
926
- number: number;
927
- at: string | null;
928
- repository: string;
929
- provider: string;
930
- kind: "pull_request";
931
- url: string;
932
- state: string | null;
933
- } | {
934
- number: number;
935
- at: string | null;
936
- repository: string;
937
- provider: string;
938
- kind: "code_host_comment";
939
- } | {
940
- at: string | null;
941
- provider: string;
942
- kind: "issue_comment";
943
- url: string | null;
944
- issueKey: string;
945
- } | {
946
- number: number | null;
947
- at: string | null;
948
- repository: string;
949
- provider: string;
950
- completed: boolean;
951
- kind: "check";
952
- })[];
953
- declaredServices: {
954
- name: string;
955
- version: string;
956
- }[];
957
- }>, "many">;
311
+ }, z.core.$strip>>;
312
+ }, z.core.$strip>>;
958
313
  spend: z.ZodObject<{
959
314
  todayUsd: z.ZodNumber;
960
315
  groups: z.ZodArray<z.ZodObject<{
@@ -962,313 +317,61 @@ export declare const GraphSnapshotSchema: z.ZodObject<{
962
317
  name: z.ZodString;
963
318
  dailyBudgetUsd: z.ZodNullable<z.ZodNumber>;
964
319
  spentTodayUsd: z.ZodNumber;
965
- }, "strip", z.ZodTypeAny, {
966
- name: string;
967
- id: string;
968
- dailyBudgetUsd: number | null;
969
- spentTodayUsd: number;
970
- }, {
971
- name: string;
972
- id: string;
973
- dailyBudgetUsd: number | null;
974
- spentTodayUsd: number;
975
- }>, "many">;
976
- }, "strip", z.ZodTypeAny, {
977
- todayUsd: number;
978
- groups: {
979
- name: string;
980
- id: string;
981
- dailyBudgetUsd: number | null;
982
- spentTodayUsd: number;
983
- }[];
984
- }, {
985
- todayUsd: number;
986
- groups: {
987
- name: string;
988
- id: string;
989
- dailyBudgetUsd: number | null;
990
- spentTodayUsd: number;
991
- }[];
992
- }>;
993
- }, "strip", z.ZodTypeAny, {
994
- runs: {
995
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
996
- tokensIn: number;
997
- tokensOut: number;
998
- costUsd: number;
999
- model: string;
1000
- budgetUsd: number;
1001
- services: {
1002
- name: string;
1003
- createdAt: string;
1004
- state: "failed" | "pending" | "probing" | "ready";
1005
- reason: string | null;
1006
- attempts: number | null;
1007
- readyAt: string | null;
1008
- failedAt: string | null;
1009
- }[];
1010
- id: string;
1011
- agentId: string;
1012
- trigger: {
1013
- kind: "manual";
1014
- } | {
1015
- kind: "scheduled";
1016
- schedule: string | null;
1017
- } | {
1018
- kind: "webhook";
1019
- } | {
1020
- kind: "subagent";
1021
- } | {
1022
- number: number | null;
1023
- repository: string;
1024
- provider: string;
1025
- event: "mention" | "review";
1026
- kind: "code_host";
1027
- } | {
1028
- provider: string;
1029
- kind: "issue";
1030
- url: string | null;
1031
- issueKey: string;
1032
- } | {
1033
- kind: "host_event";
1034
- };
1035
- startedAt: string;
1036
- finishedAt: string | null;
1037
- heartbeatAt: string | null;
1038
- turns: number;
1039
- nativeExecutionMode: "sandbox" | "control-plane" | null;
1040
- parentRunId: string | null;
1041
- agentName: string;
1042
- agentKind: "native" | "coding";
1043
- codingProvider: string | null;
1044
- warmWorkerName: string | null;
1045
- outcomes: ({
1046
- number: number;
1047
- at: string | null;
1048
- repository: string;
1049
- provider: string;
1050
- kind: "pull_request";
1051
- url: string;
1052
- state: string | null;
1053
- } | {
1054
- number: number;
1055
- at: string | null;
1056
- repository: string;
1057
- provider: string;
1058
- kind: "code_host_comment";
1059
- } | {
1060
- at: string | null;
1061
- provider: string;
1062
- kind: "issue_comment";
1063
- url: string | null;
1064
- issueKey: string;
1065
- } | {
1066
- number: number | null;
1067
- at: string | null;
1068
- repository: string;
1069
- provider: string;
1070
- completed: boolean;
1071
- kind: "check";
1072
- })[];
1073
- declaredServices: {
1074
- name: string;
1075
- version: string;
1076
- }[];
1077
- }[];
1078
- truncated: boolean;
1079
- limit: number;
1080
- generatedAt: string;
1081
- since: string;
1082
- spend: {
1083
- todayUsd: number;
1084
- groups: {
1085
- name: string;
1086
- id: string;
1087
- dailyBudgetUsd: number | null;
1088
- spentTodayUsd: number;
1089
- }[];
1090
- };
1091
- }, {
1092
- runs: {
1093
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
1094
- tokensIn: number;
1095
- tokensOut: number;
1096
- costUsd: number;
1097
- model: string;
1098
- budgetUsd: number;
1099
- services: {
1100
- name: string;
1101
- createdAt: string;
1102
- state: "failed" | "pending" | "probing" | "ready";
1103
- reason: string | null;
1104
- attempts: number | null;
1105
- readyAt: string | null;
1106
- failedAt: string | null;
1107
- }[];
1108
- id: string;
1109
- agentId: string;
1110
- trigger: {
1111
- kind: "manual";
1112
- } | {
1113
- kind: "scheduled";
1114
- schedule: string | null;
1115
- } | {
1116
- kind: "webhook";
1117
- } | {
1118
- kind: "subagent";
1119
- } | {
1120
- number: number | null;
1121
- repository: string;
1122
- provider: string;
1123
- event: "mention" | "review";
1124
- kind: "code_host";
1125
- } | {
1126
- provider: string;
1127
- kind: "issue";
1128
- url: string | null;
1129
- issueKey: string;
1130
- } | {
1131
- kind: "host_event";
1132
- };
1133
- startedAt: string;
1134
- finishedAt: string | null;
1135
- heartbeatAt: string | null;
1136
- turns: number;
1137
- nativeExecutionMode: "sandbox" | "control-plane" | null;
1138
- parentRunId: string | null;
1139
- agentName: string;
1140
- agentKind: "native" | "coding";
1141
- codingProvider: string | null;
1142
- warmWorkerName: string | null;
1143
- outcomes: ({
1144
- number: number;
1145
- at: string | null;
1146
- repository: string;
1147
- provider: string;
1148
- kind: "pull_request";
1149
- url: string;
1150
- state: string | null;
1151
- } | {
1152
- number: number;
1153
- at: string | null;
1154
- repository: string;
1155
- provider: string;
1156
- kind: "code_host_comment";
1157
- } | {
1158
- at: string | null;
1159
- provider: string;
1160
- kind: "issue_comment";
1161
- url: string | null;
1162
- issueKey: string;
1163
- } | {
1164
- number: number | null;
1165
- at: string | null;
1166
- repository: string;
1167
- provider: string;
1168
- completed: boolean;
1169
- kind: "check";
1170
- })[];
1171
- declaredServices: {
1172
- name: string;
1173
- version: string;
1174
- }[];
1175
- }[];
1176
- truncated: boolean;
1177
- limit: number;
1178
- generatedAt: string;
1179
- since: string;
1180
- spend: {
1181
- todayUsd: number;
1182
- groups: {
1183
- name: string;
1184
- id: string;
1185
- dailyBudgetUsd: number | null;
1186
- spentTodayUsd: number;
1187
- }[];
1188
- };
1189
- }>;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>;
322
+ }, z.core.$strip>;
1190
323
  export declare const RunDetailSchema: z.ZodObject<{
1191
324
  id: z.ZodString;
1192
325
  parentRunId: z.ZodNullable<z.ZodString>;
1193
326
  agentId: z.ZodString;
1194
327
  agentName: z.ZodString;
1195
- agentKind: z.ZodEnum<["native", "coding"]>;
1196
- /** The coding run's model, else the agent's. */
328
+ agentKind: z.ZodEnum<{
329
+ native: "native";
330
+ coding: "coding";
331
+ }>;
1197
332
  model: z.ZodString;
1198
- /** The coding worker (e.g. `codex`, `claude-code`); null for native runs. */
1199
333
  codingProvider: z.ZodNullable<z.ZodString>;
1200
- /** Where a native run executed, snapshotted at start; null for coding runs and runs from before the field existed. */
1201
- nativeExecutionMode: z.ZodNullable<z.ZodEnum<["control-plane", "sandbox"]>>;
1202
- /** The warm pool worker (container or pod name) a sandbox run claimed, while its record lasts; null otherwise. */
334
+ nativeExecutionMode: z.ZodNullable<z.ZodEnum<{
335
+ sandbox: "sandbox";
336
+ "control-plane": "control-plane";
337
+ }>>;
1203
338
  warmWorkerName: z.ZodNullable<z.ZodString>;
1204
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
1205
- trigger: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
339
+ status: z.ZodEnum<{
340
+ pending: "pending";
341
+ failed: "failed";
342
+ budget_exhausted: "budget_exhausted";
343
+ refused: "refused";
344
+ lost: "lost";
345
+ running: "running";
346
+ succeeded: "succeeded";
347
+ cancelled: "cancelled";
348
+ }>;
349
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1206
350
  kind: z.ZodLiteral<"manual">;
1207
- }, "strip", z.ZodTypeAny, {
1208
- kind: "manual";
1209
- }, {
1210
- kind: "manual";
1211
- }>, z.ZodObject<{
351
+ }, z.core.$strip>, z.ZodObject<{
1212
352
  kind: z.ZodLiteral<"scheduled">;
1213
353
  schedule: z.ZodNullable<z.ZodString>;
1214
- }, "strip", z.ZodTypeAny, {
1215
- kind: "scheduled";
1216
- schedule: string | null;
1217
- }, {
1218
- kind: "scheduled";
1219
- schedule: string | null;
1220
- }>, z.ZodObject<{
354
+ }, z.core.$strip>, z.ZodObject<{
1221
355
  kind: z.ZodLiteral<"webhook">;
1222
- }, "strip", z.ZodTypeAny, {
1223
- kind: "webhook";
1224
- }, {
1225
- kind: "webhook";
1226
- }>, z.ZodObject<{
356
+ }, z.core.$strip>, z.ZodObject<{
1227
357
  kind: z.ZodLiteral<"subagent">;
1228
- }, "strip", z.ZodTypeAny, {
1229
- kind: "subagent";
1230
- }, {
1231
- kind: "subagent";
1232
- }>, z.ZodObject<{
358
+ }, z.core.$strip>, z.ZodObject<{
1233
359
  kind: z.ZodLiteral<"code_host">;
1234
360
  provider: z.ZodString;
1235
361
  repository: z.ZodString;
1236
362
  number: z.ZodNullable<z.ZodNumber>;
1237
- event: z.ZodEnum<["review", "mention"]>;
1238
- }, "strip", z.ZodTypeAny, {
1239
- number: number | null;
1240
- repository: string;
1241
- provider: string;
1242
- event: "mention" | "review";
1243
- kind: "code_host";
1244
- }, {
1245
- number: number | null;
1246
- repository: string;
1247
- provider: string;
1248
- event: "mention" | "review";
1249
- kind: "code_host";
1250
- }>, z.ZodObject<{
363
+ event: z.ZodEnum<{
364
+ mention: "mention";
365
+ review: "review";
366
+ }>;
367
+ }, z.core.$strip>, z.ZodObject<{
1251
368
  kind: z.ZodLiteral<"issue">;
1252
369
  provider: z.ZodString;
1253
370
  issueKey: z.ZodString;
1254
371
  url: z.ZodNullable<z.ZodString>;
1255
- }, "strip", z.ZodTypeAny, {
1256
- provider: string;
1257
- kind: "issue";
1258
- url: string | null;
1259
- issueKey: string;
1260
- }, {
1261
- provider: string;
1262
- kind: "issue";
1263
- url: string | null;
1264
- issueKey: string;
1265
- }>, z.ZodObject<{
372
+ }, z.core.$strip>, z.ZodObject<{
1266
373
  kind: z.ZodLiteral<"host_event">;
1267
- }, "strip", z.ZodTypeAny, {
1268
- kind: "host_event";
1269
- }, {
1270
- kind: "host_event";
1271
- }>]>;
374
+ }, z.core.$strip>], "kind">;
1272
375
  turns: z.ZodNumber;
1273
376
  tokensIn: z.ZodNumber;
1274
377
  tokensOut: z.ZodNumber;
@@ -1277,7 +380,7 @@ export declare const RunDetailSchema: z.ZodObject<{
1277
380
  startedAt: z.ZodString;
1278
381
  finishedAt: z.ZodNullable<z.ZodString>;
1279
382
  heartbeatAt: z.ZodNullable<z.ZodString>;
1280
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
383
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1281
384
  kind: z.ZodLiteral<"pull_request">;
1282
385
  provider: z.ZodString;
1283
386
  repository: z.ZodString;
@@ -1285,121 +388,47 @@ export declare const RunDetailSchema: z.ZodObject<{
1285
388
  url: z.ZodString;
1286
389
  state: z.ZodNullable<z.ZodString>;
1287
390
  at: z.ZodNullable<z.ZodString>;
1288
- }, "strip", z.ZodTypeAny, {
1289
- number: number;
1290
- at: string | null;
1291
- repository: string;
1292
- provider: string;
1293
- kind: "pull_request";
1294
- url: string;
1295
- state: string | null;
1296
- }, {
1297
- number: number;
1298
- at: string | null;
1299
- repository: string;
1300
- provider: string;
1301
- kind: "pull_request";
1302
- url: string;
1303
- state: string | null;
1304
- }>, z.ZodObject<{
391
+ }, z.core.$strip>, z.ZodObject<{
1305
392
  kind: z.ZodLiteral<"code_host_comment">;
1306
393
  provider: z.ZodString;
1307
394
  repository: z.ZodString;
1308
395
  number: z.ZodNumber;
1309
396
  at: z.ZodNullable<z.ZodString>;
1310
- }, "strip", z.ZodTypeAny, {
1311
- number: number;
1312
- at: string | null;
1313
- repository: string;
1314
- provider: string;
1315
- kind: "code_host_comment";
1316
- }, {
1317
- number: number;
1318
- at: string | null;
1319
- repository: string;
1320
- provider: string;
1321
- kind: "code_host_comment";
1322
- }>, z.ZodObject<{
397
+ }, z.core.$strip>, z.ZodObject<{
1323
398
  kind: z.ZodLiteral<"issue_comment">;
1324
399
  provider: z.ZodString;
1325
400
  issueKey: z.ZodString;
1326
401
  url: z.ZodNullable<z.ZodString>;
1327
402
  at: z.ZodNullable<z.ZodString>;
1328
- }, "strip", z.ZodTypeAny, {
1329
- at: string | null;
1330
- provider: string;
1331
- kind: "issue_comment";
1332
- url: string | null;
1333
- issueKey: string;
1334
- }, {
1335
- at: string | null;
1336
- provider: string;
1337
- kind: "issue_comment";
1338
- url: string | null;
1339
- issueKey: string;
1340
- }>, z.ZodObject<{
403
+ }, z.core.$strip>, z.ZodObject<{
1341
404
  kind: z.ZodLiteral<"check">;
1342
405
  provider: z.ZodString;
1343
406
  repository: z.ZodString;
1344
407
  number: z.ZodNullable<z.ZodNumber>;
1345
408
  completed: z.ZodBoolean;
1346
409
  at: z.ZodNullable<z.ZodString>;
1347
- }, "strip", z.ZodTypeAny, {
1348
- number: number | null;
1349
- at: string | null;
1350
- repository: string;
1351
- provider: string;
1352
- completed: boolean;
1353
- kind: "check";
1354
- }, {
1355
- number: number | null;
1356
- at: string | null;
1357
- repository: string;
1358
- provider: string;
1359
- completed: boolean;
1360
- kind: "check";
1361
- }>]>, "many">;
1362
- /** The services a coding run was started with, recorded or not; empty for native runs. */
410
+ }, z.core.$strip>], "kind">>;
1363
411
  declaredServices: z.ZodArray<z.ZodObject<{
1364
412
  name: z.ZodString;
1365
413
  version: z.ZodString;
1366
- }, "strip", z.ZodTypeAny, {
1367
- name: string;
1368
- version: string;
1369
- }, {
1370
- name: string;
1371
- version: string;
1372
- }>, "many">;
1373
- /** Recorded readiness of the run's services (none before status tracking existed). */
414
+ }, z.core.$strip>>;
1374
415
  services: z.ZodArray<z.ZodObject<{
1375
416
  name: z.ZodString;
1376
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
417
+ state: z.ZodEnum<{
418
+ pending: "pending";
419
+ ready: "ready";
420
+ failed: "failed";
421
+ probing: "probing";
422
+ }>;
1377
423
  attempts: z.ZodNullable<z.ZodNumber>;
1378
424
  reason: z.ZodNullable<z.ZodString>;
1379
425
  readyAt: z.ZodNullable<z.ZodString>;
1380
426
  failedAt: z.ZodNullable<z.ZodString>;
1381
427
  createdAt: z.ZodString;
1382
- }, "strip", z.ZodTypeAny, {
1383
- name: string;
1384
- createdAt: string;
1385
- state: "failed" | "pending" | "probing" | "ready";
1386
- reason: string | null;
1387
- attempts: number | null;
1388
- readyAt: string | null;
1389
- failedAt: string | null;
1390
- }, {
1391
- name: string;
1392
- createdAt: string;
1393
- state: "failed" | "pending" | "probing" | "ready";
1394
- reason: string | null;
1395
- attempts: number | null;
1396
- readyAt: string | null;
1397
- failedAt: string | null;
1398
- }>, "many">;
1399
- } & {
428
+ }, z.core.$strip>>;
1400
429
  error: z.ZodNullable<z.ZodString>;
1401
430
  finalText: z.ZodNullable<z.ZodString>;
1402
- childRunIds: z.ZodArray<z.ZodString, "many">;
431
+ childRunIds: z.ZodArray<z.ZodString>;
1403
432
  coding: z.ZodNullable<z.ZodObject<{
1404
433
  provider: z.ZodString;
1405
434
  repository: z.ZodString;
@@ -1411,311 +440,51 @@ export declare const RunDetailSchema: z.ZodObject<{
1411
440
  name: z.ZodString;
1412
441
  version: z.ZodString;
1413
442
  image: z.ZodString;
1414
- envNames: z.ZodArray<z.ZodString, "many">;
1415
- }, "strip", z.ZodTypeAny, {
1416
- name: string;
1417
- version: string;
1418
- image: string;
1419
- envNames: string[];
1420
- }, {
1421
- name: string;
1422
- version: string;
1423
- image: string;
1424
- envNames: string[];
1425
- }>, "many">;
1426
- }, "strip", z.ZodTypeAny, {
1427
- repository: string;
1428
- baseRef: string;
1429
- headRef: string;
1430
- services: {
1431
- name: string;
1432
- version: string;
1433
- image: string;
1434
- envNames: string[];
1435
- }[];
1436
- provider: string;
1437
- failureCategory: string | null;
1438
- queuedAt: string | null;
1439
- }, {
1440
- repository: string;
1441
- baseRef: string;
1442
- headRef: string;
1443
- services: {
1444
- name: string;
1445
- version: string;
1446
- image: string;
1447
- envNames: string[];
1448
- }[];
1449
- provider: string;
1450
- failureCategory: string | null;
1451
- queuedAt: string | null;
1452
- }>>;
1453
- }, "strip", z.ZodTypeAny, {
1454
- error: string | null;
1455
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
1456
- tokensIn: number;
1457
- tokensOut: number;
1458
- costUsd: number;
1459
- model: string;
1460
- budgetUsd: number;
1461
- services: {
1462
- name: string;
1463
- createdAt: string;
1464
- state: "failed" | "pending" | "probing" | "ready";
1465
- reason: string | null;
1466
- attempts: number | null;
1467
- readyAt: string | null;
1468
- failedAt: string | null;
1469
- }[];
1470
- id: string;
1471
- agentId: string;
1472
- trigger: {
1473
- kind: "manual";
1474
- } | {
1475
- kind: "scheduled";
1476
- schedule: string | null;
1477
- } | {
1478
- kind: "webhook";
1479
- } | {
1480
- kind: "subagent";
1481
- } | {
1482
- number: number | null;
1483
- repository: string;
1484
- provider: string;
1485
- event: "mention" | "review";
1486
- kind: "code_host";
1487
- } | {
1488
- provider: string;
1489
- kind: "issue";
1490
- url: string | null;
1491
- issueKey: string;
1492
- } | {
1493
- kind: "host_event";
1494
- };
1495
- startedAt: string;
1496
- finishedAt: string | null;
1497
- heartbeatAt: string | null;
1498
- finalText: string | null;
1499
- turns: number;
1500
- nativeExecutionMode: "sandbox" | "control-plane" | null;
1501
- parentRunId: string | null;
1502
- coding: {
1503
- repository: string;
1504
- baseRef: string;
1505
- headRef: string;
1506
- services: {
1507
- name: string;
1508
- version: string;
1509
- image: string;
1510
- envNames: string[];
1511
- }[];
1512
- provider: string;
1513
- failureCategory: string | null;
1514
- queuedAt: string | null;
1515
- } | null;
1516
- agentName: string;
1517
- agentKind: "native" | "coding";
1518
- codingProvider: string | null;
1519
- warmWorkerName: string | null;
1520
- outcomes: ({
1521
- number: number;
1522
- at: string | null;
1523
- repository: string;
1524
- provider: string;
1525
- kind: "pull_request";
1526
- url: string;
1527
- state: string | null;
1528
- } | {
1529
- number: number;
1530
- at: string | null;
1531
- repository: string;
1532
- provider: string;
1533
- kind: "code_host_comment";
1534
- } | {
1535
- at: string | null;
1536
- provider: string;
1537
- kind: "issue_comment";
1538
- url: string | null;
1539
- issueKey: string;
1540
- } | {
1541
- number: number | null;
1542
- at: string | null;
1543
- repository: string;
1544
- provider: string;
1545
- completed: boolean;
1546
- kind: "check";
1547
- })[];
1548
- declaredServices: {
1549
- name: string;
1550
- version: string;
1551
- }[];
1552
- childRunIds: string[];
1553
- }, {
1554
- error: string | null;
1555
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
1556
- tokensIn: number;
1557
- tokensOut: number;
1558
- costUsd: number;
1559
- model: string;
1560
- budgetUsd: number;
1561
- services: {
1562
- name: string;
1563
- createdAt: string;
1564
- state: "failed" | "pending" | "probing" | "ready";
1565
- reason: string | null;
1566
- attempts: number | null;
1567
- readyAt: string | null;
1568
- failedAt: string | null;
1569
- }[];
1570
- id: string;
1571
- agentId: string;
1572
- trigger: {
1573
- kind: "manual";
1574
- } | {
1575
- kind: "scheduled";
1576
- schedule: string | null;
1577
- } | {
1578
- kind: "webhook";
1579
- } | {
1580
- kind: "subagent";
1581
- } | {
1582
- number: number | null;
1583
- repository: string;
1584
- provider: string;
1585
- event: "mention" | "review";
1586
- kind: "code_host";
1587
- } | {
1588
- provider: string;
1589
- kind: "issue";
1590
- url: string | null;
1591
- issueKey: string;
1592
- } | {
1593
- kind: "host_event";
1594
- };
1595
- startedAt: string;
1596
- finishedAt: string | null;
1597
- heartbeatAt: string | null;
1598
- finalText: string | null;
1599
- turns: number;
1600
- nativeExecutionMode: "sandbox" | "control-plane" | null;
1601
- parentRunId: string | null;
1602
- coding: {
1603
- repository: string;
1604
- baseRef: string;
1605
- headRef: string;
1606
- services: {
1607
- name: string;
1608
- version: string;
1609
- image: string;
1610
- envNames: string[];
1611
- }[];
1612
- provider: string;
1613
- failureCategory: string | null;
1614
- queuedAt: string | null;
1615
- } | null;
1616
- agentName: string;
1617
- agentKind: "native" | "coding";
1618
- codingProvider: string | null;
1619
- warmWorkerName: string | null;
1620
- outcomes: ({
1621
- number: number;
1622
- at: string | null;
1623
- repository: string;
1624
- provider: string;
1625
- kind: "pull_request";
1626
- url: string;
1627
- state: string | null;
1628
- } | {
1629
- number: number;
1630
- at: string | null;
1631
- repository: string;
1632
- provider: string;
1633
- kind: "code_host_comment";
1634
- } | {
1635
- at: string | null;
1636
- provider: string;
1637
- kind: "issue_comment";
1638
- url: string | null;
1639
- issueKey: string;
1640
- } | {
1641
- number: number | null;
1642
- at: string | null;
1643
- repository: string;
1644
- provider: string;
1645
- completed: boolean;
1646
- kind: "check";
1647
- })[];
1648
- declaredServices: {
1649
- name: string;
1650
- version: string;
1651
- }[];
1652
- childRunIds: string[];
1653
- }>;
1654
- export declare const ViewerEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
443
+ envNames: z.ZodArray<z.ZodString>;
444
+ }, z.core.$strip>>;
445
+ }, z.core.$strip>>;
446
+ }, z.core.$strip>;
447
+ export declare const ViewerEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1655
448
  kind: z.ZodLiteral<"run">;
1656
449
  runId: z.ZodString;
1657
450
  parentRunId: z.ZodNullable<z.ZodString>;
1658
451
  agentId: z.ZodString;
1659
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
452
+ status: z.ZodEnum<{
453
+ pending: "pending";
454
+ failed: "failed";
455
+ budget_exhausted: "budget_exhausted";
456
+ refused: "refused";
457
+ lost: "lost";
458
+ running: "running";
459
+ succeeded: "succeeded";
460
+ cancelled: "cancelled";
461
+ }>;
1660
462
  turns: z.ZodNumber;
1661
463
  tokensIn: z.ZodNumber;
1662
464
  tokensOut: z.ZodNumber;
1663
465
  costUsd: z.ZodNumber;
1664
466
  finishedAt: z.ZodNullable<z.ZodString>;
1665
- }, "strip", z.ZodTypeAny, {
1666
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
1667
- tokensIn: number;
1668
- tokensOut: number;
1669
- costUsd: number;
1670
- runId: string;
1671
- kind: "run";
1672
- agentId: string;
1673
- finishedAt: string | null;
1674
- turns: number;
1675
- parentRunId: string | null;
1676
- }, {
1677
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
1678
- tokensIn: number;
1679
- tokensOut: number;
1680
- costUsd: number;
1681
- runId: string;
1682
- kind: "run";
1683
- agentId: string;
1684
- finishedAt: string | null;
1685
- turns: number;
1686
- parentRunId: string | null;
1687
- }>, z.ZodObject<{
467
+ }, z.core.$strip>, z.ZodObject<{
1688
468
  kind: z.ZodLiteral<"service">;
1689
469
  runId: z.ZodString;
1690
470
  name: z.ZodString;
1691
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
471
+ state: z.ZodEnum<{
472
+ pending: "pending";
473
+ ready: "ready";
474
+ failed: "failed";
475
+ probing: "probing";
476
+ }>;
1692
477
  attempts: z.ZodNullable<z.ZodNumber>;
1693
- }, "strip", z.ZodTypeAny, {
1694
- name: string;
1695
- runId: string;
1696
- kind: "service";
1697
- state: "failed" | "pending" | "probing" | "ready";
1698
- attempts: number | null;
1699
- }, {
1700
- name: string;
1701
- runId: string;
1702
- kind: "service";
1703
- state: "failed" | "pending" | "probing" | "ready";
1704
- attempts: number | null;
1705
- }>, z.ZodObject<{
478
+ }, z.core.$strip>, z.ZodObject<{
1706
479
  kind: z.ZodLiteral<"outcome">;
1707
480
  runId: z.ZodString;
1708
- /** Which table changed (the viewer NOTIFY trigger names them). */
1709
- source: z.ZodEnum<["pull_request", "host_status", "issue_status", "host_check"]>;
1710
- }, "strip", z.ZodTypeAny, {
1711
- runId: string;
1712
- kind: "outcome";
1713
- source: "pull_request" | "host_status" | "issue_status" | "host_check";
1714
- }, {
1715
- runId: string;
1716
- kind: "outcome";
1717
- source: "pull_request" | "host_status" | "issue_status" | "host_check";
1718
- }>]>;
481
+ source: z.ZodEnum<{
482
+ pull_request: "pull_request";
483
+ host_status: "host_status";
484
+ issue_status: "issue_status";
485
+ host_check: "host_check";
486
+ }>;
487
+ }, z.core.$strip>], "kind">;
1719
488
  export type RunTriggerInfo = z.infer<typeof RunTriggerSchema>;
1720
489
  export type Outcome = z.infer<typeof OutcomeSchema>;
1721
490
  export type ServiceStatus = z.infer<typeof ServiceStatusSchema>;
@@ -1725,7 +494,11 @@ export type RunDetail = z.infer<typeof RunDetailSchema>;
1725
494
  export type ViewerEvent = z.infer<typeof ViewerEventSchema>;
1726
495
  /** How this deployment runs coding jobs, for the desktop viewer's Infrastructure view (GET /admin/api/infra). */
1727
496
  export declare const InfraInfoSchema: z.ZodObject<{
1728
- launcher: z.ZodEnum<["local", "docker", "kubernetes"]>;
497
+ launcher: z.ZodEnum<{
498
+ local: "local";
499
+ docker: "docker";
500
+ kubernetes: "kubernetes";
501
+ }>;
1729
502
  kubernetes: z.ZodNullable<z.ZodObject<{
1730
503
  namespace: z.ZodString;
1731
504
  platform: z.ZodString;
@@ -1735,29 +508,12 @@ export declare const InfraInfoSchema: z.ZodObject<{
1735
508
  runLabelHashChars: z.ZodNumber;
1736
509
  componentLabel: z.ZodRecord<z.ZodString, z.ZodString>;
1737
510
  managedByLabel: z.ZodRecord<z.ZodString, z.ZodString>;
1738
- }, "strip", z.ZodTypeAny, {
1739
- namespace: string;
1740
- platform: string;
1741
- proxyService: string;
1742
- runtimeClass: string | null;
1743
- runLabel: string;
1744
- runLabelHashChars: number;
1745
- componentLabel: Record<string, string>;
1746
- managedByLabel: Record<string, string>;
1747
- }, {
1748
- namespace: string;
1749
- platform: string;
1750
- proxyService: string;
1751
- runtimeClass: string | null;
1752
- runLabel: string;
1753
- runLabelHashChars: number;
1754
- componentLabel: Record<string, string>;
1755
- managedByLabel: Record<string, string>;
1756
- }>>;
1757
- /** How sandbox-mode native agents run; null when NATIVE_SANDBOX_LAUNCHER is unset. */
511
+ }, z.core.$strip>>;
1758
512
  native: z.ZodNullable<z.ZodObject<{
1759
- launcher: z.ZodEnum<["docker", "kubernetes"]>;
1760
- /** Idle workers kept ready for runs to claim (0 = no pool). */
513
+ launcher: z.ZodEnum<{
514
+ docker: "docker";
515
+ kubernetes: "kubernetes";
516
+ }>;
1761
517
  warmPoolSize: z.ZodNumber;
1762
518
  kubernetes: z.ZodNullable<z.ZodObject<{
1763
519
  namespace: z.ZodString;
@@ -1766,93 +522,9 @@ export declare const InfraInfoSchema: z.ZodObject<{
1766
522
  componentLabel: z.ZodRecord<z.ZodString, z.ZodString>;
1767
523
  warmPoolLabel: z.ZodRecord<z.ZodString, z.ZodString>;
1768
524
  warmWorkerLabel: z.ZodString;
1769
- }, "strip", z.ZodTypeAny, {
1770
- namespace: string;
1771
- runtimeClass: string | null;
1772
- runLabel: string;
1773
- componentLabel: Record<string, string>;
1774
- warmPoolLabel: Record<string, string>;
1775
- warmWorkerLabel: string;
1776
- }, {
1777
- namespace: string;
1778
- runtimeClass: string | null;
1779
- runLabel: string;
1780
- componentLabel: Record<string, string>;
1781
- warmPoolLabel: Record<string, string>;
1782
- warmWorkerLabel: string;
1783
- }>>;
1784
- }, "strip", z.ZodTypeAny, {
1785
- kubernetes: {
1786
- namespace: string;
1787
- runtimeClass: string | null;
1788
- runLabel: string;
1789
- componentLabel: Record<string, string>;
1790
- warmPoolLabel: Record<string, string>;
1791
- warmWorkerLabel: string;
1792
- } | null;
1793
- launcher: "docker" | "kubernetes";
1794
- warmPoolSize: number;
1795
- }, {
1796
- kubernetes: {
1797
- namespace: string;
1798
- runtimeClass: string | null;
1799
- runLabel: string;
1800
- componentLabel: Record<string, string>;
1801
- warmPoolLabel: Record<string, string>;
1802
- warmWorkerLabel: string;
1803
- } | null;
1804
- launcher: "docker" | "kubernetes";
1805
- warmPoolSize: number;
1806
- }>>;
1807
- }, "strip", z.ZodTypeAny, {
1808
- kubernetes: {
1809
- namespace: string;
1810
- platform: string;
1811
- proxyService: string;
1812
- runtimeClass: string | null;
1813
- runLabel: string;
1814
- runLabelHashChars: number;
1815
- componentLabel: Record<string, string>;
1816
- managedByLabel: Record<string, string>;
1817
- } | null;
1818
- native: {
1819
- kubernetes: {
1820
- namespace: string;
1821
- runtimeClass: string | null;
1822
- runLabel: string;
1823
- componentLabel: Record<string, string>;
1824
- warmPoolLabel: Record<string, string>;
1825
- warmWorkerLabel: string;
1826
- } | null;
1827
- launcher: "docker" | "kubernetes";
1828
- warmPoolSize: number;
1829
- } | null;
1830
- launcher: "local" | "docker" | "kubernetes";
1831
- }, {
1832
- kubernetes: {
1833
- namespace: string;
1834
- platform: string;
1835
- proxyService: string;
1836
- runtimeClass: string | null;
1837
- runLabel: string;
1838
- runLabelHashChars: number;
1839
- componentLabel: Record<string, string>;
1840
- managedByLabel: Record<string, string>;
1841
- } | null;
1842
- native: {
1843
- kubernetes: {
1844
- namespace: string;
1845
- runtimeClass: string | null;
1846
- runLabel: string;
1847
- componentLabel: Record<string, string>;
1848
- warmPoolLabel: Record<string, string>;
1849
- warmWorkerLabel: string;
1850
- } | null;
1851
- launcher: "docker" | "kubernetes";
1852
- warmPoolSize: number;
1853
- } | null;
1854
- launcher: "local" | "docker" | "kubernetes";
1855
- }>;
525
+ }, z.core.$strip>>;
526
+ }, z.core.$strip>>;
527
+ }, z.core.$strip>;
1856
528
  export type InfraInfo = z.infer<typeof InfraInfoSchema>;
1857
529
  export declare const VIEWER_SCHEMAS: {
1858
530
  readonly "graph-snapshot": z.ZodObject<{
@@ -1865,83 +537,53 @@ export declare const VIEWER_SCHEMAS: {
1865
537
  parentRunId: z.ZodNullable<z.ZodString>;
1866
538
  agentId: z.ZodString;
1867
539
  agentName: z.ZodString;
1868
- agentKind: z.ZodEnum<["native", "coding"]>;
1869
- /** The coding run's model, else the agent's. */
540
+ agentKind: z.ZodEnum<{
541
+ native: "native";
542
+ coding: "coding";
543
+ }>;
1870
544
  model: z.ZodString;
1871
- /** The coding worker (e.g. `codex`, `claude-code`); null for native runs. */
1872
545
  codingProvider: z.ZodNullable<z.ZodString>;
1873
- /** Where a native run executed, snapshotted at start; null for coding runs and runs from before the field existed. */
1874
- nativeExecutionMode: z.ZodNullable<z.ZodEnum<["control-plane", "sandbox"]>>;
1875
- /** The warm pool worker (container or pod name) a sandbox run claimed, while its record lasts; null otherwise. */
546
+ nativeExecutionMode: z.ZodNullable<z.ZodEnum<{
547
+ sandbox: "sandbox";
548
+ "control-plane": "control-plane";
549
+ }>>;
1876
550
  warmWorkerName: z.ZodNullable<z.ZodString>;
1877
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
1878
- trigger: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
551
+ status: z.ZodEnum<{
552
+ pending: "pending";
553
+ failed: "failed";
554
+ budget_exhausted: "budget_exhausted";
555
+ refused: "refused";
556
+ lost: "lost";
557
+ running: "running";
558
+ succeeded: "succeeded";
559
+ cancelled: "cancelled";
560
+ }>;
561
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1879
562
  kind: z.ZodLiteral<"manual">;
1880
- }, "strip", z.ZodTypeAny, {
1881
- kind: "manual";
1882
- }, {
1883
- kind: "manual";
1884
- }>, z.ZodObject<{
563
+ }, z.core.$strip>, z.ZodObject<{
1885
564
  kind: z.ZodLiteral<"scheduled">;
1886
565
  schedule: z.ZodNullable<z.ZodString>;
1887
- }, "strip", z.ZodTypeAny, {
1888
- kind: "scheduled";
1889
- schedule: string | null;
1890
- }, {
1891
- kind: "scheduled";
1892
- schedule: string | null;
1893
- }>, z.ZodObject<{
566
+ }, z.core.$strip>, z.ZodObject<{
1894
567
  kind: z.ZodLiteral<"webhook">;
1895
- }, "strip", z.ZodTypeAny, {
1896
- kind: "webhook";
1897
- }, {
1898
- kind: "webhook";
1899
- }>, z.ZodObject<{
568
+ }, z.core.$strip>, z.ZodObject<{
1900
569
  kind: z.ZodLiteral<"subagent">;
1901
- }, "strip", z.ZodTypeAny, {
1902
- kind: "subagent";
1903
- }, {
1904
- kind: "subagent";
1905
- }>, z.ZodObject<{
570
+ }, z.core.$strip>, z.ZodObject<{
1906
571
  kind: z.ZodLiteral<"code_host">;
1907
572
  provider: z.ZodString;
1908
573
  repository: z.ZodString;
1909
574
  number: z.ZodNullable<z.ZodNumber>;
1910
- event: z.ZodEnum<["review", "mention"]>;
1911
- }, "strip", z.ZodTypeAny, {
1912
- number: number | null;
1913
- repository: string;
1914
- provider: string;
1915
- event: "mention" | "review";
1916
- kind: "code_host";
1917
- }, {
1918
- number: number | null;
1919
- repository: string;
1920
- provider: string;
1921
- event: "mention" | "review";
1922
- kind: "code_host";
1923
- }>, z.ZodObject<{
575
+ event: z.ZodEnum<{
576
+ mention: "mention";
577
+ review: "review";
578
+ }>;
579
+ }, z.core.$strip>, z.ZodObject<{
1924
580
  kind: z.ZodLiteral<"issue">;
1925
581
  provider: z.ZodString;
1926
582
  issueKey: z.ZodString;
1927
583
  url: z.ZodNullable<z.ZodString>;
1928
- }, "strip", z.ZodTypeAny, {
1929
- provider: string;
1930
- kind: "issue";
1931
- url: string | null;
1932
- issueKey: string;
1933
- }, {
1934
- provider: string;
1935
- kind: "issue";
1936
- url: string | null;
1937
- issueKey: string;
1938
- }>, z.ZodObject<{
584
+ }, z.core.$strip>, z.ZodObject<{
1939
585
  kind: z.ZodLiteral<"host_event">;
1940
- }, "strip", z.ZodTypeAny, {
1941
- kind: "host_event";
1942
- }, {
1943
- kind: "host_event";
1944
- }>]>;
586
+ }, z.core.$strip>], "kind">;
1945
587
  turns: z.ZodNumber;
1946
588
  tokensIn: z.ZodNumber;
1947
589
  tokensOut: z.ZodNumber;
@@ -1950,7 +592,7 @@ export declare const VIEWER_SCHEMAS: {
1950
592
  startedAt: z.ZodString;
1951
593
  finishedAt: z.ZodNullable<z.ZodString>;
1952
594
  heartbeatAt: z.ZodNullable<z.ZodString>;
1953
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
595
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1954
596
  kind: z.ZodLiteral<"pull_request">;
1955
597
  provider: z.ZodString;
1956
598
  repository: z.ZodString;
@@ -1958,284 +600,45 @@ export declare const VIEWER_SCHEMAS: {
1958
600
  url: z.ZodString;
1959
601
  state: z.ZodNullable<z.ZodString>;
1960
602
  at: z.ZodNullable<z.ZodString>;
1961
- }, "strip", z.ZodTypeAny, {
1962
- number: number;
1963
- at: string | null;
1964
- repository: string;
1965
- provider: string;
1966
- kind: "pull_request";
1967
- url: string;
1968
- state: string | null;
1969
- }, {
1970
- number: number;
1971
- at: string | null;
1972
- repository: string;
1973
- provider: string;
1974
- kind: "pull_request";
1975
- url: string;
1976
- state: string | null;
1977
- }>, z.ZodObject<{
603
+ }, z.core.$strip>, z.ZodObject<{
1978
604
  kind: z.ZodLiteral<"code_host_comment">;
1979
605
  provider: z.ZodString;
1980
606
  repository: z.ZodString;
1981
607
  number: z.ZodNumber;
1982
608
  at: z.ZodNullable<z.ZodString>;
1983
- }, "strip", z.ZodTypeAny, {
1984
- number: number;
1985
- at: string | null;
1986
- repository: string;
1987
- provider: string;
1988
- kind: "code_host_comment";
1989
- }, {
1990
- number: number;
1991
- at: string | null;
1992
- repository: string;
1993
- provider: string;
1994
- kind: "code_host_comment";
1995
- }>, z.ZodObject<{
609
+ }, z.core.$strip>, z.ZodObject<{
1996
610
  kind: z.ZodLiteral<"issue_comment">;
1997
611
  provider: z.ZodString;
1998
612
  issueKey: z.ZodString;
1999
613
  url: z.ZodNullable<z.ZodString>;
2000
614
  at: z.ZodNullable<z.ZodString>;
2001
- }, "strip", z.ZodTypeAny, {
2002
- at: string | null;
2003
- provider: string;
2004
- kind: "issue_comment";
2005
- url: string | null;
2006
- issueKey: string;
2007
- }, {
2008
- at: string | null;
2009
- provider: string;
2010
- kind: "issue_comment";
2011
- url: string | null;
2012
- issueKey: string;
2013
- }>, z.ZodObject<{
615
+ }, z.core.$strip>, z.ZodObject<{
2014
616
  kind: z.ZodLiteral<"check">;
2015
617
  provider: z.ZodString;
2016
618
  repository: z.ZodString;
2017
619
  number: z.ZodNullable<z.ZodNumber>;
2018
620
  completed: z.ZodBoolean;
2019
621
  at: z.ZodNullable<z.ZodString>;
2020
- }, "strip", z.ZodTypeAny, {
2021
- number: number | null;
2022
- at: string | null;
2023
- repository: string;
2024
- provider: string;
2025
- completed: boolean;
2026
- kind: "check";
2027
- }, {
2028
- number: number | null;
2029
- at: string | null;
2030
- repository: string;
2031
- provider: string;
2032
- completed: boolean;
2033
- kind: "check";
2034
- }>]>, "many">;
2035
- /** The services a coding run was started with, recorded or not; empty for native runs. */
622
+ }, z.core.$strip>], "kind">>;
2036
623
  declaredServices: z.ZodArray<z.ZodObject<{
2037
624
  name: z.ZodString;
2038
625
  version: z.ZodString;
2039
- }, "strip", z.ZodTypeAny, {
2040
- name: string;
2041
- version: string;
2042
- }, {
2043
- name: string;
2044
- version: string;
2045
- }>, "many">;
2046
- /** Recorded readiness of the run's services (none before status tracking existed). */
626
+ }, z.core.$strip>>;
2047
627
  services: z.ZodArray<z.ZodObject<{
2048
628
  name: z.ZodString;
2049
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
629
+ state: z.ZodEnum<{
630
+ pending: "pending";
631
+ ready: "ready";
632
+ failed: "failed";
633
+ probing: "probing";
634
+ }>;
2050
635
  attempts: z.ZodNullable<z.ZodNumber>;
2051
636
  reason: z.ZodNullable<z.ZodString>;
2052
637
  readyAt: z.ZodNullable<z.ZodString>;
2053
638
  failedAt: z.ZodNullable<z.ZodString>;
2054
639
  createdAt: z.ZodString;
2055
- }, "strip", z.ZodTypeAny, {
2056
- name: string;
2057
- createdAt: string;
2058
- state: "failed" | "pending" | "probing" | "ready";
2059
- reason: string | null;
2060
- attempts: number | null;
2061
- readyAt: string | null;
2062
- failedAt: string | null;
2063
- }, {
2064
- name: string;
2065
- createdAt: string;
2066
- state: "failed" | "pending" | "probing" | "ready";
2067
- reason: string | null;
2068
- attempts: number | null;
2069
- readyAt: string | null;
2070
- failedAt: string | null;
2071
- }>, "many">;
2072
- }, "strip", z.ZodTypeAny, {
2073
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2074
- tokensIn: number;
2075
- tokensOut: number;
2076
- costUsd: number;
2077
- model: string;
2078
- budgetUsd: number;
2079
- services: {
2080
- name: string;
2081
- createdAt: string;
2082
- state: "failed" | "pending" | "probing" | "ready";
2083
- reason: string | null;
2084
- attempts: number | null;
2085
- readyAt: string | null;
2086
- failedAt: string | null;
2087
- }[];
2088
- id: string;
2089
- agentId: string;
2090
- trigger: {
2091
- kind: "manual";
2092
- } | {
2093
- kind: "scheduled";
2094
- schedule: string | null;
2095
- } | {
2096
- kind: "webhook";
2097
- } | {
2098
- kind: "subagent";
2099
- } | {
2100
- number: number | null;
2101
- repository: string;
2102
- provider: string;
2103
- event: "mention" | "review";
2104
- kind: "code_host";
2105
- } | {
2106
- provider: string;
2107
- kind: "issue";
2108
- url: string | null;
2109
- issueKey: string;
2110
- } | {
2111
- kind: "host_event";
2112
- };
2113
- startedAt: string;
2114
- finishedAt: string | null;
2115
- heartbeatAt: string | null;
2116
- turns: number;
2117
- nativeExecutionMode: "sandbox" | "control-plane" | null;
2118
- parentRunId: string | null;
2119
- agentName: string;
2120
- agentKind: "native" | "coding";
2121
- codingProvider: string | null;
2122
- warmWorkerName: string | null;
2123
- outcomes: ({
2124
- number: number;
2125
- at: string | null;
2126
- repository: string;
2127
- provider: string;
2128
- kind: "pull_request";
2129
- url: string;
2130
- state: string | null;
2131
- } | {
2132
- number: number;
2133
- at: string | null;
2134
- repository: string;
2135
- provider: string;
2136
- kind: "code_host_comment";
2137
- } | {
2138
- at: string | null;
2139
- provider: string;
2140
- kind: "issue_comment";
2141
- url: string | null;
2142
- issueKey: string;
2143
- } | {
2144
- number: number | null;
2145
- at: string | null;
2146
- repository: string;
2147
- provider: string;
2148
- completed: boolean;
2149
- kind: "check";
2150
- })[];
2151
- declaredServices: {
2152
- name: string;
2153
- version: string;
2154
- }[];
2155
- }, {
2156
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2157
- tokensIn: number;
2158
- tokensOut: number;
2159
- costUsd: number;
2160
- model: string;
2161
- budgetUsd: number;
2162
- services: {
2163
- name: string;
2164
- createdAt: string;
2165
- state: "failed" | "pending" | "probing" | "ready";
2166
- reason: string | null;
2167
- attempts: number | null;
2168
- readyAt: string | null;
2169
- failedAt: string | null;
2170
- }[];
2171
- id: string;
2172
- agentId: string;
2173
- trigger: {
2174
- kind: "manual";
2175
- } | {
2176
- kind: "scheduled";
2177
- schedule: string | null;
2178
- } | {
2179
- kind: "webhook";
2180
- } | {
2181
- kind: "subagent";
2182
- } | {
2183
- number: number | null;
2184
- repository: string;
2185
- provider: string;
2186
- event: "mention" | "review";
2187
- kind: "code_host";
2188
- } | {
2189
- provider: string;
2190
- kind: "issue";
2191
- url: string | null;
2192
- issueKey: string;
2193
- } | {
2194
- kind: "host_event";
2195
- };
2196
- startedAt: string;
2197
- finishedAt: string | null;
2198
- heartbeatAt: string | null;
2199
- turns: number;
2200
- nativeExecutionMode: "sandbox" | "control-plane" | null;
2201
- parentRunId: string | null;
2202
- agentName: string;
2203
- agentKind: "native" | "coding";
2204
- codingProvider: string | null;
2205
- warmWorkerName: string | null;
2206
- outcomes: ({
2207
- number: number;
2208
- at: string | null;
2209
- repository: string;
2210
- provider: string;
2211
- kind: "pull_request";
2212
- url: string;
2213
- state: string | null;
2214
- } | {
2215
- number: number;
2216
- at: string | null;
2217
- repository: string;
2218
- provider: string;
2219
- kind: "code_host_comment";
2220
- } | {
2221
- at: string | null;
2222
- provider: string;
2223
- kind: "issue_comment";
2224
- url: string | null;
2225
- issueKey: string;
2226
- } | {
2227
- number: number | null;
2228
- at: string | null;
2229
- repository: string;
2230
- provider: string;
2231
- completed: boolean;
2232
- kind: "check";
2233
- })[];
2234
- declaredServices: {
2235
- name: string;
2236
- version: string;
2237
- }[];
2238
- }>, "many">;
640
+ }, z.core.$strip>>;
641
+ }, z.core.$strip>>;
2239
642
  spend: z.ZodObject<{
2240
643
  todayUsd: z.ZodNumber;
2241
644
  groups: z.ZodArray<z.ZodObject<{
@@ -2243,313 +646,61 @@ export declare const VIEWER_SCHEMAS: {
2243
646
  name: z.ZodString;
2244
647
  dailyBudgetUsd: z.ZodNullable<z.ZodNumber>;
2245
648
  spentTodayUsd: z.ZodNumber;
2246
- }, "strip", z.ZodTypeAny, {
2247
- name: string;
2248
- id: string;
2249
- dailyBudgetUsd: number | null;
2250
- spentTodayUsd: number;
2251
- }, {
2252
- name: string;
2253
- id: string;
2254
- dailyBudgetUsd: number | null;
2255
- spentTodayUsd: number;
2256
- }>, "many">;
2257
- }, "strip", z.ZodTypeAny, {
2258
- todayUsd: number;
2259
- groups: {
2260
- name: string;
2261
- id: string;
2262
- dailyBudgetUsd: number | null;
2263
- spentTodayUsd: number;
2264
- }[];
2265
- }, {
2266
- todayUsd: number;
2267
- groups: {
2268
- name: string;
2269
- id: string;
2270
- dailyBudgetUsd: number | null;
2271
- spentTodayUsd: number;
2272
- }[];
2273
- }>;
2274
- }, "strip", z.ZodTypeAny, {
2275
- runs: {
2276
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2277
- tokensIn: number;
2278
- tokensOut: number;
2279
- costUsd: number;
2280
- model: string;
2281
- budgetUsd: number;
2282
- services: {
2283
- name: string;
2284
- createdAt: string;
2285
- state: "failed" | "pending" | "probing" | "ready";
2286
- reason: string | null;
2287
- attempts: number | null;
2288
- readyAt: string | null;
2289
- failedAt: string | null;
2290
- }[];
2291
- id: string;
2292
- agentId: string;
2293
- trigger: {
2294
- kind: "manual";
2295
- } | {
2296
- kind: "scheduled";
2297
- schedule: string | null;
2298
- } | {
2299
- kind: "webhook";
2300
- } | {
2301
- kind: "subagent";
2302
- } | {
2303
- number: number | null;
2304
- repository: string;
2305
- provider: string;
2306
- event: "mention" | "review";
2307
- kind: "code_host";
2308
- } | {
2309
- provider: string;
2310
- kind: "issue";
2311
- url: string | null;
2312
- issueKey: string;
2313
- } | {
2314
- kind: "host_event";
2315
- };
2316
- startedAt: string;
2317
- finishedAt: string | null;
2318
- heartbeatAt: string | null;
2319
- turns: number;
2320
- nativeExecutionMode: "sandbox" | "control-plane" | null;
2321
- parentRunId: string | null;
2322
- agentName: string;
2323
- agentKind: "native" | "coding";
2324
- codingProvider: string | null;
2325
- warmWorkerName: string | null;
2326
- outcomes: ({
2327
- number: number;
2328
- at: string | null;
2329
- repository: string;
2330
- provider: string;
2331
- kind: "pull_request";
2332
- url: string;
2333
- state: string | null;
2334
- } | {
2335
- number: number;
2336
- at: string | null;
2337
- repository: string;
2338
- provider: string;
2339
- kind: "code_host_comment";
2340
- } | {
2341
- at: string | null;
2342
- provider: string;
2343
- kind: "issue_comment";
2344
- url: string | null;
2345
- issueKey: string;
2346
- } | {
2347
- number: number | null;
2348
- at: string | null;
2349
- repository: string;
2350
- provider: string;
2351
- completed: boolean;
2352
- kind: "check";
2353
- })[];
2354
- declaredServices: {
2355
- name: string;
2356
- version: string;
2357
- }[];
2358
- }[];
2359
- truncated: boolean;
2360
- limit: number;
2361
- generatedAt: string;
2362
- since: string;
2363
- spend: {
2364
- todayUsd: number;
2365
- groups: {
2366
- name: string;
2367
- id: string;
2368
- dailyBudgetUsd: number | null;
2369
- spentTodayUsd: number;
2370
- }[];
2371
- };
2372
- }, {
2373
- runs: {
2374
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2375
- tokensIn: number;
2376
- tokensOut: number;
2377
- costUsd: number;
2378
- model: string;
2379
- budgetUsd: number;
2380
- services: {
2381
- name: string;
2382
- createdAt: string;
2383
- state: "failed" | "pending" | "probing" | "ready";
2384
- reason: string | null;
2385
- attempts: number | null;
2386
- readyAt: string | null;
2387
- failedAt: string | null;
2388
- }[];
2389
- id: string;
2390
- agentId: string;
2391
- trigger: {
2392
- kind: "manual";
2393
- } | {
2394
- kind: "scheduled";
2395
- schedule: string | null;
2396
- } | {
2397
- kind: "webhook";
2398
- } | {
2399
- kind: "subagent";
2400
- } | {
2401
- number: number | null;
2402
- repository: string;
2403
- provider: string;
2404
- event: "mention" | "review";
2405
- kind: "code_host";
2406
- } | {
2407
- provider: string;
2408
- kind: "issue";
2409
- url: string | null;
2410
- issueKey: string;
2411
- } | {
2412
- kind: "host_event";
2413
- };
2414
- startedAt: string;
2415
- finishedAt: string | null;
2416
- heartbeatAt: string | null;
2417
- turns: number;
2418
- nativeExecutionMode: "sandbox" | "control-plane" | null;
2419
- parentRunId: string | null;
2420
- agentName: string;
2421
- agentKind: "native" | "coding";
2422
- codingProvider: string | null;
2423
- warmWorkerName: string | null;
2424
- outcomes: ({
2425
- number: number;
2426
- at: string | null;
2427
- repository: string;
2428
- provider: string;
2429
- kind: "pull_request";
2430
- url: string;
2431
- state: string | null;
2432
- } | {
2433
- number: number;
2434
- at: string | null;
2435
- repository: string;
2436
- provider: string;
2437
- kind: "code_host_comment";
2438
- } | {
2439
- at: string | null;
2440
- provider: string;
2441
- kind: "issue_comment";
2442
- url: string | null;
2443
- issueKey: string;
2444
- } | {
2445
- number: number | null;
2446
- at: string | null;
2447
- repository: string;
2448
- provider: string;
2449
- completed: boolean;
2450
- kind: "check";
2451
- })[];
2452
- declaredServices: {
2453
- name: string;
2454
- version: string;
2455
- }[];
2456
- }[];
2457
- truncated: boolean;
2458
- limit: number;
2459
- generatedAt: string;
2460
- since: string;
2461
- spend: {
2462
- todayUsd: number;
2463
- groups: {
2464
- name: string;
2465
- id: string;
2466
- dailyBudgetUsd: number | null;
2467
- spentTodayUsd: number;
2468
- }[];
2469
- };
2470
- }>;
649
+ }, z.core.$strip>>;
650
+ }, z.core.$strip>;
651
+ }, z.core.$strip>;
2471
652
  readonly "run-detail": z.ZodObject<{
2472
653
  id: z.ZodString;
2473
654
  parentRunId: z.ZodNullable<z.ZodString>;
2474
655
  agentId: z.ZodString;
2475
656
  agentName: z.ZodString;
2476
- agentKind: z.ZodEnum<["native", "coding"]>;
2477
- /** The coding run's model, else the agent's. */
657
+ agentKind: z.ZodEnum<{
658
+ native: "native";
659
+ coding: "coding";
660
+ }>;
2478
661
  model: z.ZodString;
2479
- /** The coding worker (e.g. `codex`, `claude-code`); null for native runs. */
2480
662
  codingProvider: z.ZodNullable<z.ZodString>;
2481
- /** Where a native run executed, snapshotted at start; null for coding runs and runs from before the field existed. */
2482
- nativeExecutionMode: z.ZodNullable<z.ZodEnum<["control-plane", "sandbox"]>>;
2483
- /** The warm pool worker (container or pod name) a sandbox run claimed, while its record lasts; null otherwise. */
663
+ nativeExecutionMode: z.ZodNullable<z.ZodEnum<{
664
+ sandbox: "sandbox";
665
+ "control-plane": "control-plane";
666
+ }>>;
2484
667
  warmWorkerName: z.ZodNullable<z.ZodString>;
2485
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
2486
- trigger: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
668
+ status: z.ZodEnum<{
669
+ pending: "pending";
670
+ failed: "failed";
671
+ budget_exhausted: "budget_exhausted";
672
+ refused: "refused";
673
+ lost: "lost";
674
+ running: "running";
675
+ succeeded: "succeeded";
676
+ cancelled: "cancelled";
677
+ }>;
678
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
2487
679
  kind: z.ZodLiteral<"manual">;
2488
- }, "strip", z.ZodTypeAny, {
2489
- kind: "manual";
2490
- }, {
2491
- kind: "manual";
2492
- }>, z.ZodObject<{
680
+ }, z.core.$strip>, z.ZodObject<{
2493
681
  kind: z.ZodLiteral<"scheduled">;
2494
682
  schedule: z.ZodNullable<z.ZodString>;
2495
- }, "strip", z.ZodTypeAny, {
2496
- kind: "scheduled";
2497
- schedule: string | null;
2498
- }, {
2499
- kind: "scheduled";
2500
- schedule: string | null;
2501
- }>, z.ZodObject<{
683
+ }, z.core.$strip>, z.ZodObject<{
2502
684
  kind: z.ZodLiteral<"webhook">;
2503
- }, "strip", z.ZodTypeAny, {
2504
- kind: "webhook";
2505
- }, {
2506
- kind: "webhook";
2507
- }>, z.ZodObject<{
685
+ }, z.core.$strip>, z.ZodObject<{
2508
686
  kind: z.ZodLiteral<"subagent">;
2509
- }, "strip", z.ZodTypeAny, {
2510
- kind: "subagent";
2511
- }, {
2512
- kind: "subagent";
2513
- }>, z.ZodObject<{
687
+ }, z.core.$strip>, z.ZodObject<{
2514
688
  kind: z.ZodLiteral<"code_host">;
2515
689
  provider: z.ZodString;
2516
690
  repository: z.ZodString;
2517
691
  number: z.ZodNullable<z.ZodNumber>;
2518
- event: z.ZodEnum<["review", "mention"]>;
2519
- }, "strip", z.ZodTypeAny, {
2520
- number: number | null;
2521
- repository: string;
2522
- provider: string;
2523
- event: "mention" | "review";
2524
- kind: "code_host";
2525
- }, {
2526
- number: number | null;
2527
- repository: string;
2528
- provider: string;
2529
- event: "mention" | "review";
2530
- kind: "code_host";
2531
- }>, z.ZodObject<{
692
+ event: z.ZodEnum<{
693
+ mention: "mention";
694
+ review: "review";
695
+ }>;
696
+ }, z.core.$strip>, z.ZodObject<{
2532
697
  kind: z.ZodLiteral<"issue">;
2533
698
  provider: z.ZodString;
2534
699
  issueKey: z.ZodString;
2535
700
  url: z.ZodNullable<z.ZodString>;
2536
- }, "strip", z.ZodTypeAny, {
2537
- provider: string;
2538
- kind: "issue";
2539
- url: string | null;
2540
- issueKey: string;
2541
- }, {
2542
- provider: string;
2543
- kind: "issue";
2544
- url: string | null;
2545
- issueKey: string;
2546
- }>, z.ZodObject<{
701
+ }, z.core.$strip>, z.ZodObject<{
2547
702
  kind: z.ZodLiteral<"host_event">;
2548
- }, "strip", z.ZodTypeAny, {
2549
- kind: "host_event";
2550
- }, {
2551
- kind: "host_event";
2552
- }>]>;
703
+ }, z.core.$strip>], "kind">;
2553
704
  turns: z.ZodNumber;
2554
705
  tokensIn: z.ZodNumber;
2555
706
  tokensOut: z.ZodNumber;
@@ -2558,7 +709,7 @@ export declare const VIEWER_SCHEMAS: {
2558
709
  startedAt: z.ZodString;
2559
710
  finishedAt: z.ZodNullable<z.ZodString>;
2560
711
  heartbeatAt: z.ZodNullable<z.ZodString>;
2561
- outcomes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
712
+ outcomes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2562
713
  kind: z.ZodLiteral<"pull_request">;
2563
714
  provider: z.ZodString;
2564
715
  repository: z.ZodString;
@@ -2566,121 +717,47 @@ export declare const VIEWER_SCHEMAS: {
2566
717
  url: z.ZodString;
2567
718
  state: z.ZodNullable<z.ZodString>;
2568
719
  at: z.ZodNullable<z.ZodString>;
2569
- }, "strip", z.ZodTypeAny, {
2570
- number: number;
2571
- at: string | null;
2572
- repository: string;
2573
- provider: string;
2574
- kind: "pull_request";
2575
- url: string;
2576
- state: string | null;
2577
- }, {
2578
- number: number;
2579
- at: string | null;
2580
- repository: string;
2581
- provider: string;
2582
- kind: "pull_request";
2583
- url: string;
2584
- state: string | null;
2585
- }>, z.ZodObject<{
720
+ }, z.core.$strip>, z.ZodObject<{
2586
721
  kind: z.ZodLiteral<"code_host_comment">;
2587
722
  provider: z.ZodString;
2588
723
  repository: z.ZodString;
2589
724
  number: z.ZodNumber;
2590
725
  at: z.ZodNullable<z.ZodString>;
2591
- }, "strip", z.ZodTypeAny, {
2592
- number: number;
2593
- at: string | null;
2594
- repository: string;
2595
- provider: string;
2596
- kind: "code_host_comment";
2597
- }, {
2598
- number: number;
2599
- at: string | null;
2600
- repository: string;
2601
- provider: string;
2602
- kind: "code_host_comment";
2603
- }>, z.ZodObject<{
726
+ }, z.core.$strip>, z.ZodObject<{
2604
727
  kind: z.ZodLiteral<"issue_comment">;
2605
728
  provider: z.ZodString;
2606
729
  issueKey: z.ZodString;
2607
730
  url: z.ZodNullable<z.ZodString>;
2608
731
  at: z.ZodNullable<z.ZodString>;
2609
- }, "strip", z.ZodTypeAny, {
2610
- at: string | null;
2611
- provider: string;
2612
- kind: "issue_comment";
2613
- url: string | null;
2614
- issueKey: string;
2615
- }, {
2616
- at: string | null;
2617
- provider: string;
2618
- kind: "issue_comment";
2619
- url: string | null;
2620
- issueKey: string;
2621
- }>, z.ZodObject<{
732
+ }, z.core.$strip>, z.ZodObject<{
2622
733
  kind: z.ZodLiteral<"check">;
2623
734
  provider: z.ZodString;
2624
735
  repository: z.ZodString;
2625
736
  number: z.ZodNullable<z.ZodNumber>;
2626
737
  completed: z.ZodBoolean;
2627
738
  at: z.ZodNullable<z.ZodString>;
2628
- }, "strip", z.ZodTypeAny, {
2629
- number: number | null;
2630
- at: string | null;
2631
- repository: string;
2632
- provider: string;
2633
- completed: boolean;
2634
- kind: "check";
2635
- }, {
2636
- number: number | null;
2637
- at: string | null;
2638
- repository: string;
2639
- provider: string;
2640
- completed: boolean;
2641
- kind: "check";
2642
- }>]>, "many">;
2643
- /** The services a coding run was started with, recorded or not; empty for native runs. */
739
+ }, z.core.$strip>], "kind">>;
2644
740
  declaredServices: z.ZodArray<z.ZodObject<{
2645
741
  name: z.ZodString;
2646
742
  version: z.ZodString;
2647
- }, "strip", z.ZodTypeAny, {
2648
- name: string;
2649
- version: string;
2650
- }, {
2651
- name: string;
2652
- version: string;
2653
- }>, "many">;
2654
- /** Recorded readiness of the run's services (none before status tracking existed). */
743
+ }, z.core.$strip>>;
2655
744
  services: z.ZodArray<z.ZodObject<{
2656
745
  name: z.ZodString;
2657
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
746
+ state: z.ZodEnum<{
747
+ pending: "pending";
748
+ ready: "ready";
749
+ failed: "failed";
750
+ probing: "probing";
751
+ }>;
2658
752
  attempts: z.ZodNullable<z.ZodNumber>;
2659
753
  reason: z.ZodNullable<z.ZodString>;
2660
754
  readyAt: z.ZodNullable<z.ZodString>;
2661
755
  failedAt: z.ZodNullable<z.ZodString>;
2662
756
  createdAt: z.ZodString;
2663
- }, "strip", z.ZodTypeAny, {
2664
- name: string;
2665
- createdAt: string;
2666
- state: "failed" | "pending" | "probing" | "ready";
2667
- reason: string | null;
2668
- attempts: number | null;
2669
- readyAt: string | null;
2670
- failedAt: string | null;
2671
- }, {
2672
- name: string;
2673
- createdAt: string;
2674
- state: "failed" | "pending" | "probing" | "ready";
2675
- reason: string | null;
2676
- attempts: number | null;
2677
- readyAt: string | null;
2678
- failedAt: string | null;
2679
- }>, "many">;
2680
- } & {
757
+ }, z.core.$strip>>;
2681
758
  error: z.ZodNullable<z.ZodString>;
2682
759
  finalText: z.ZodNullable<z.ZodString>;
2683
- childRunIds: z.ZodArray<z.ZodString, "many">;
760
+ childRunIds: z.ZodArray<z.ZodString>;
2684
761
  coding: z.ZodNullable<z.ZodObject<{
2685
762
  provider: z.ZodString;
2686
763
  repository: z.ZodString;
@@ -2692,313 +769,57 @@ export declare const VIEWER_SCHEMAS: {
2692
769
  name: z.ZodString;
2693
770
  version: z.ZodString;
2694
771
  image: z.ZodString;
2695
- envNames: z.ZodArray<z.ZodString, "many">;
2696
- }, "strip", z.ZodTypeAny, {
2697
- name: string;
2698
- version: string;
2699
- image: string;
2700
- envNames: string[];
2701
- }, {
2702
- name: string;
2703
- version: string;
2704
- image: string;
2705
- envNames: string[];
2706
- }>, "many">;
2707
- }, "strip", z.ZodTypeAny, {
2708
- repository: string;
2709
- baseRef: string;
2710
- headRef: string;
2711
- services: {
2712
- name: string;
2713
- version: string;
2714
- image: string;
2715
- envNames: string[];
2716
- }[];
2717
- provider: string;
2718
- failureCategory: string | null;
2719
- queuedAt: string | null;
2720
- }, {
2721
- repository: string;
2722
- baseRef: string;
2723
- headRef: string;
2724
- services: {
2725
- name: string;
2726
- version: string;
2727
- image: string;
2728
- envNames: string[];
2729
- }[];
2730
- provider: string;
2731
- failureCategory: string | null;
2732
- queuedAt: string | null;
2733
- }>>;
2734
- }, "strip", z.ZodTypeAny, {
2735
- error: string | null;
2736
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2737
- tokensIn: number;
2738
- tokensOut: number;
2739
- costUsd: number;
2740
- model: string;
2741
- budgetUsd: number;
2742
- services: {
2743
- name: string;
2744
- createdAt: string;
2745
- state: "failed" | "pending" | "probing" | "ready";
2746
- reason: string | null;
2747
- attempts: number | null;
2748
- readyAt: string | null;
2749
- failedAt: string | null;
2750
- }[];
2751
- id: string;
2752
- agentId: string;
2753
- trigger: {
2754
- kind: "manual";
2755
- } | {
2756
- kind: "scheduled";
2757
- schedule: string | null;
2758
- } | {
2759
- kind: "webhook";
2760
- } | {
2761
- kind: "subagent";
2762
- } | {
2763
- number: number | null;
2764
- repository: string;
2765
- provider: string;
2766
- event: "mention" | "review";
2767
- kind: "code_host";
2768
- } | {
2769
- provider: string;
2770
- kind: "issue";
2771
- url: string | null;
2772
- issueKey: string;
2773
- } | {
2774
- kind: "host_event";
2775
- };
2776
- startedAt: string;
2777
- finishedAt: string | null;
2778
- heartbeatAt: string | null;
2779
- finalText: string | null;
2780
- turns: number;
2781
- nativeExecutionMode: "sandbox" | "control-plane" | null;
2782
- parentRunId: string | null;
2783
- coding: {
2784
- repository: string;
2785
- baseRef: string;
2786
- headRef: string;
2787
- services: {
2788
- name: string;
2789
- version: string;
2790
- image: string;
2791
- envNames: string[];
2792
- }[];
2793
- provider: string;
2794
- failureCategory: string | null;
2795
- queuedAt: string | null;
2796
- } | null;
2797
- agentName: string;
2798
- agentKind: "native" | "coding";
2799
- codingProvider: string | null;
2800
- warmWorkerName: string | null;
2801
- outcomes: ({
2802
- number: number;
2803
- at: string | null;
2804
- repository: string;
2805
- provider: string;
2806
- kind: "pull_request";
2807
- url: string;
2808
- state: string | null;
2809
- } | {
2810
- number: number;
2811
- at: string | null;
2812
- repository: string;
2813
- provider: string;
2814
- kind: "code_host_comment";
2815
- } | {
2816
- at: string | null;
2817
- provider: string;
2818
- kind: "issue_comment";
2819
- url: string | null;
2820
- issueKey: string;
2821
- } | {
2822
- number: number | null;
2823
- at: string | null;
2824
- repository: string;
2825
- provider: string;
2826
- completed: boolean;
2827
- kind: "check";
2828
- })[];
2829
- declaredServices: {
2830
- name: string;
2831
- version: string;
2832
- }[];
2833
- childRunIds: string[];
2834
- }, {
2835
- error: string | null;
2836
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2837
- tokensIn: number;
2838
- tokensOut: number;
2839
- costUsd: number;
2840
- model: string;
2841
- budgetUsd: number;
2842
- services: {
2843
- name: string;
2844
- createdAt: string;
2845
- state: "failed" | "pending" | "probing" | "ready";
2846
- reason: string | null;
2847
- attempts: number | null;
2848
- readyAt: string | null;
2849
- failedAt: string | null;
2850
- }[];
2851
- id: string;
2852
- agentId: string;
2853
- trigger: {
2854
- kind: "manual";
2855
- } | {
2856
- kind: "scheduled";
2857
- schedule: string | null;
2858
- } | {
2859
- kind: "webhook";
2860
- } | {
2861
- kind: "subagent";
2862
- } | {
2863
- number: number | null;
2864
- repository: string;
2865
- provider: string;
2866
- event: "mention" | "review";
2867
- kind: "code_host";
2868
- } | {
2869
- provider: string;
2870
- kind: "issue";
2871
- url: string | null;
2872
- issueKey: string;
2873
- } | {
2874
- kind: "host_event";
2875
- };
2876
- startedAt: string;
2877
- finishedAt: string | null;
2878
- heartbeatAt: string | null;
2879
- finalText: string | null;
2880
- turns: number;
2881
- nativeExecutionMode: "sandbox" | "control-plane" | null;
2882
- parentRunId: string | null;
2883
- coding: {
2884
- repository: string;
2885
- baseRef: string;
2886
- headRef: string;
2887
- services: {
2888
- name: string;
2889
- version: string;
2890
- image: string;
2891
- envNames: string[];
2892
- }[];
2893
- provider: string;
2894
- failureCategory: string | null;
2895
- queuedAt: string | null;
2896
- } | null;
2897
- agentName: string;
2898
- agentKind: "native" | "coding";
2899
- codingProvider: string | null;
2900
- warmWorkerName: string | null;
2901
- outcomes: ({
2902
- number: number;
2903
- at: string | null;
2904
- repository: string;
2905
- provider: string;
2906
- kind: "pull_request";
2907
- url: string;
2908
- state: string | null;
2909
- } | {
2910
- number: number;
2911
- at: string | null;
2912
- repository: string;
2913
- provider: string;
2914
- kind: "code_host_comment";
2915
- } | {
2916
- at: string | null;
2917
- provider: string;
2918
- kind: "issue_comment";
2919
- url: string | null;
2920
- issueKey: string;
2921
- } | {
2922
- number: number | null;
2923
- at: string | null;
2924
- repository: string;
2925
- provider: string;
2926
- completed: boolean;
2927
- kind: "check";
2928
- })[];
2929
- declaredServices: {
2930
- name: string;
2931
- version: string;
2932
- }[];
2933
- childRunIds: string[];
2934
- }>;
2935
- readonly "viewer-event": z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
772
+ envNames: z.ZodArray<z.ZodString>;
773
+ }, z.core.$strip>>;
774
+ }, z.core.$strip>>;
775
+ }, z.core.$strip>;
776
+ readonly "viewer-event": z.ZodDiscriminatedUnion<[z.ZodObject<{
2936
777
  kind: z.ZodLiteral<"run">;
2937
778
  runId: z.ZodString;
2938
779
  parentRunId: z.ZodNullable<z.ZodString>;
2939
780
  agentId: z.ZodString;
2940
- status: z.ZodEnum<["pending", "running", "succeeded", "failed", "refused", "lost", "budget_exhausted", "cancelled"]>;
781
+ status: z.ZodEnum<{
782
+ pending: "pending";
783
+ failed: "failed";
784
+ budget_exhausted: "budget_exhausted";
785
+ refused: "refused";
786
+ lost: "lost";
787
+ running: "running";
788
+ succeeded: "succeeded";
789
+ cancelled: "cancelled";
790
+ }>;
2941
791
  turns: z.ZodNumber;
2942
792
  tokensIn: z.ZodNumber;
2943
793
  tokensOut: z.ZodNumber;
2944
794
  costUsd: z.ZodNumber;
2945
795
  finishedAt: z.ZodNullable<z.ZodString>;
2946
- }, "strip", z.ZodTypeAny, {
2947
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2948
- tokensIn: number;
2949
- tokensOut: number;
2950
- costUsd: number;
2951
- runId: string;
2952
- kind: "run";
2953
- agentId: string;
2954
- finishedAt: string | null;
2955
- turns: number;
2956
- parentRunId: string | null;
2957
- }, {
2958
- status: "failed" | "budget_exhausted" | "lost" | "pending" | "running" | "succeeded" | "refused" | "cancelled";
2959
- tokensIn: number;
2960
- tokensOut: number;
2961
- costUsd: number;
2962
- runId: string;
2963
- kind: "run";
2964
- agentId: string;
2965
- finishedAt: string | null;
2966
- turns: number;
2967
- parentRunId: string | null;
2968
- }>, z.ZodObject<{
796
+ }, z.core.$strip>, z.ZodObject<{
2969
797
  kind: z.ZodLiteral<"service">;
2970
798
  runId: z.ZodString;
2971
799
  name: z.ZodString;
2972
- state: z.ZodEnum<["pending", "probing", "ready", "failed"]>;
800
+ state: z.ZodEnum<{
801
+ pending: "pending";
802
+ ready: "ready";
803
+ failed: "failed";
804
+ probing: "probing";
805
+ }>;
2973
806
  attempts: z.ZodNullable<z.ZodNumber>;
2974
- }, "strip", z.ZodTypeAny, {
2975
- name: string;
2976
- runId: string;
2977
- kind: "service";
2978
- state: "failed" | "pending" | "probing" | "ready";
2979
- attempts: number | null;
2980
- }, {
2981
- name: string;
2982
- runId: string;
2983
- kind: "service";
2984
- state: "failed" | "pending" | "probing" | "ready";
2985
- attempts: number | null;
2986
- }>, z.ZodObject<{
807
+ }, z.core.$strip>, z.ZodObject<{
2987
808
  kind: z.ZodLiteral<"outcome">;
2988
809
  runId: z.ZodString;
2989
- /** Which table changed (the viewer NOTIFY trigger names them). */
2990
- source: z.ZodEnum<["pull_request", "host_status", "issue_status", "host_check"]>;
2991
- }, "strip", z.ZodTypeAny, {
2992
- runId: string;
2993
- kind: "outcome";
2994
- source: "pull_request" | "host_status" | "issue_status" | "host_check";
2995
- }, {
2996
- runId: string;
2997
- kind: "outcome";
2998
- source: "pull_request" | "host_status" | "issue_status" | "host_check";
2999
- }>]>;
810
+ source: z.ZodEnum<{
811
+ pull_request: "pull_request";
812
+ host_status: "host_status";
813
+ issue_status: "issue_status";
814
+ host_check: "host_check";
815
+ }>;
816
+ }, z.core.$strip>], "kind">;
3000
817
  readonly "infra-info": z.ZodObject<{
3001
- launcher: z.ZodEnum<["local", "docker", "kubernetes"]>;
818
+ launcher: z.ZodEnum<{
819
+ local: "local";
820
+ docker: "docker";
821
+ kubernetes: "kubernetes";
822
+ }>;
3002
823
  kubernetes: z.ZodNullable<z.ZodObject<{
3003
824
  namespace: z.ZodString;
3004
825
  platform: z.ZodString;
@@ -3008,29 +829,12 @@ export declare const VIEWER_SCHEMAS: {
3008
829
  runLabelHashChars: z.ZodNumber;
3009
830
  componentLabel: z.ZodRecord<z.ZodString, z.ZodString>;
3010
831
  managedByLabel: z.ZodRecord<z.ZodString, z.ZodString>;
3011
- }, "strip", z.ZodTypeAny, {
3012
- namespace: string;
3013
- platform: string;
3014
- proxyService: string;
3015
- runtimeClass: string | null;
3016
- runLabel: string;
3017
- runLabelHashChars: number;
3018
- componentLabel: Record<string, string>;
3019
- managedByLabel: Record<string, string>;
3020
- }, {
3021
- namespace: string;
3022
- platform: string;
3023
- proxyService: string;
3024
- runtimeClass: string | null;
3025
- runLabel: string;
3026
- runLabelHashChars: number;
3027
- componentLabel: Record<string, string>;
3028
- managedByLabel: Record<string, string>;
3029
- }>>;
3030
- /** How sandbox-mode native agents run; null when NATIVE_SANDBOX_LAUNCHER is unset. */
832
+ }, z.core.$strip>>;
3031
833
  native: z.ZodNullable<z.ZodObject<{
3032
- launcher: z.ZodEnum<["docker", "kubernetes"]>;
3033
- /** Idle workers kept ready for runs to claim (0 = no pool). */
834
+ launcher: z.ZodEnum<{
835
+ docker: "docker";
836
+ kubernetes: "kubernetes";
837
+ }>;
3034
838
  warmPoolSize: z.ZodNumber;
3035
839
  kubernetes: z.ZodNullable<z.ZodObject<{
3036
840
  namespace: z.ZodString;
@@ -3039,91 +843,9 @@ export declare const VIEWER_SCHEMAS: {
3039
843
  componentLabel: z.ZodRecord<z.ZodString, z.ZodString>;
3040
844
  warmPoolLabel: z.ZodRecord<z.ZodString, z.ZodString>;
3041
845
  warmWorkerLabel: z.ZodString;
3042
- }, "strip", z.ZodTypeAny, {
3043
- namespace: string;
3044
- runtimeClass: string | null;
3045
- runLabel: string;
3046
- componentLabel: Record<string, string>;
3047
- warmPoolLabel: Record<string, string>;
3048
- warmWorkerLabel: string;
3049
- }, {
3050
- namespace: string;
3051
- runtimeClass: string | null;
3052
- runLabel: string;
3053
- componentLabel: Record<string, string>;
3054
- warmPoolLabel: Record<string, string>;
3055
- warmWorkerLabel: string;
3056
- }>>;
3057
- }, "strip", z.ZodTypeAny, {
3058
- kubernetes: {
3059
- namespace: string;
3060
- runtimeClass: string | null;
3061
- runLabel: string;
3062
- componentLabel: Record<string, string>;
3063
- warmPoolLabel: Record<string, string>;
3064
- warmWorkerLabel: string;
3065
- } | null;
3066
- launcher: "docker" | "kubernetes";
3067
- warmPoolSize: number;
3068
- }, {
3069
- kubernetes: {
3070
- namespace: string;
3071
- runtimeClass: string | null;
3072
- runLabel: string;
3073
- componentLabel: Record<string, string>;
3074
- warmPoolLabel: Record<string, string>;
3075
- warmWorkerLabel: string;
3076
- } | null;
3077
- launcher: "docker" | "kubernetes";
3078
- warmPoolSize: number;
3079
- }>>;
3080
- }, "strip", z.ZodTypeAny, {
3081
- kubernetes: {
3082
- namespace: string;
3083
- platform: string;
3084
- proxyService: string;
3085
- runtimeClass: string | null;
3086
- runLabel: string;
3087
- runLabelHashChars: number;
3088
- componentLabel: Record<string, string>;
3089
- managedByLabel: Record<string, string>;
3090
- } | null;
3091
- native: {
3092
- kubernetes: {
3093
- namespace: string;
3094
- runtimeClass: string | null;
3095
- runLabel: string;
3096
- componentLabel: Record<string, string>;
3097
- warmPoolLabel: Record<string, string>;
3098
- warmWorkerLabel: string;
3099
- } | null;
3100
- launcher: "docker" | "kubernetes";
3101
- warmPoolSize: number;
3102
- } | null;
3103
- launcher: "local" | "docker" | "kubernetes";
3104
- }, {
3105
- kubernetes: {
3106
- namespace: string;
3107
- platform: string;
3108
- proxyService: string;
3109
- runtimeClass: string | null;
3110
- runLabel: string;
3111
- runLabelHashChars: number;
3112
- componentLabel: Record<string, string>;
3113
- managedByLabel: Record<string, string>;
3114
- } | null;
3115
- native: {
3116
- kubernetes: {
3117
- namespace: string;
3118
- runtimeClass: string | null;
3119
- runLabel: string;
3120
- componentLabel: Record<string, string>;
3121
- warmPoolLabel: Record<string, string>;
3122
- warmWorkerLabel: string;
3123
- } | null;
3124
- launcher: "docker" | "kubernetes";
3125
- warmPoolSize: number;
3126
- } | null;
3127
- launcher: "local" | "docker" | "kubernetes";
3128
- }>;
846
+ }, z.core.$strip>>;
847
+ }, z.core.$strip>>;
848
+ }, z.core.$strip>;
3129
849
  };
850
+ /** A viewer schema's JSON Schema (draft-07 keywords, no `$schema`), as the published files spell it. */
851
+ export declare function viewerJsonSchema(schema: z.ZodType): Record<string, unknown>;