@wardby/cli 0.2.1 → 0.3.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 (407) hide show
  1. package/.env.example +34 -4
  2. package/README.md +41 -4
  3. package/dist/claude-coding-worker/driver.d.ts +6 -1
  4. package/dist/claude-coding-worker/driver.js +27 -1
  5. package/dist/claude-coding-worker/main.js +2 -0
  6. package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
  7. package/dist/claude-coding-worker/tool-socket.js +26 -0
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +13 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +219 -29
  12. package/dist/coding/collect-exclude.d.ts +25 -0
  13. package/dist/coding/collect-exclude.js +76 -0
  14. package/dist/coding/profile.d.ts +67 -22
  15. package/dist/coding/profile.js +58 -25
  16. package/dist/coding/protected-path-wording.d.ts +24 -0
  17. package/dist/coding/protected-path-wording.js +55 -0
  18. package/dist/coding/protected-paths.d.ts +31 -0
  19. package/dist/coding/protected-paths.js +48 -0
  20. package/dist/coding/protocol.d.ts +75 -4
  21. package/dist/coding/protocol.js +107 -7
  22. package/dist/coding/registry/adapters.d.ts +2 -0
  23. package/dist/coding/registry/adapters.js +9 -0
  24. package/dist/coding/registry/allowlist.d.ts +9 -0
  25. package/dist/coding/registry/allowlist.js +28 -0
  26. package/dist/coding/registry/json-scan.d.ts +55 -0
  27. package/dist/coding/registry/json-scan.js +191 -0
  28. package/dist/coding/registry/lockfiles.d.ts +6 -0
  29. package/dist/coding/registry/lockfiles.js +89 -0
  30. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  31. package/dist/coding/registry/npm-lockfile.js +73 -0
  32. package/dist/coding/registry/npm-plan.d.ts +29 -0
  33. package/dist/coding/registry/npm-plan.js +289 -0
  34. package/dist/coding/registry/npm.d.ts +7 -0
  35. package/dist/coding/registry/npm.js +252 -0
  36. package/dist/coding/registry/pypi.d.ts +4 -0
  37. package/dist/coding/registry/pypi.js +210 -0
  38. package/dist/coding/registry/report.d.ts +37 -0
  39. package/dist/coding/registry/report.js +31 -0
  40. package/dist/coding/registry/token.d.ts +4 -0
  41. package/dist/coding/registry/token.js +7 -0
  42. package/dist/coding/registry/types.d.ts +286 -0
  43. package/dist/coding/registry/types.js +19 -0
  44. package/dist/coding/registry/worker-config.d.ts +14 -0
  45. package/dist/coding/registry/worker-config.js +31 -0
  46. package/dist/coding/services/builtins.d.ts +22 -0
  47. package/dist/coding/services/builtins.js +85 -0
  48. package/dist/coding/services/catalog.d.ts +443 -0
  49. package/dist/coding/services/catalog.js +159 -0
  50. package/dist/coding/services/declaration.d.ts +11 -0
  51. package/dist/coding/services/declaration.js +114 -0
  52. package/dist/coding/services/note.d.ts +8 -0
  53. package/dist/coding/services/note.js +15 -0
  54. package/dist/coding/services/resolve.d.ts +25 -0
  55. package/dist/coding/services/resolve.js +50 -0
  56. package/dist/coding/services/wording.d.ts +25 -0
  57. package/dist/coding/services/wording.js +70 -0
  58. package/dist/coding-proxy/main.js +24 -4
  59. package/dist/coding-worker/artifact.d.ts +6 -0
  60. package/dist/coding-worker/debug-trace.d.ts +37 -0
  61. package/dist/coding-worker/debug-trace.js +117 -0
  62. package/dist/coding-worker/driver.d.ts +13 -1
  63. package/dist/coding-worker/driver.js +102 -13
  64. package/dist/coding-worker/errors.js +8 -0
  65. package/dist/coding-worker/main.js +10 -2
  66. package/dist/coding-worker/sdk.d.ts +2 -2
  67. package/dist/coding-worker/sdk.js +7 -2
  68. package/dist/coding-worker/types.d.ts +3 -0
  69. package/dist/config/providers.d.ts +41 -0
  70. package/dist/config/providers.js +66 -0
  71. package/dist/core/budget-groups.d.ts +108 -5
  72. package/dist/core/budget-groups.js +125 -19
  73. package/dist/core/budget-wording.d.ts +22 -0
  74. package/dist/core/budget-wording.js +55 -0
  75. package/dist/core/datastores.js +18 -2
  76. package/dist/core/db.d.ts +5 -1
  77. package/dist/core/db.js +8 -2
  78. package/dist/core/dispatch.d.ts +33 -6
  79. package/dist/core/dispatch.js +260 -43
  80. package/dist/core/engine-native.js +27 -10
  81. package/dist/core/grants.d.ts +86 -0
  82. package/dist/core/grants.js +126 -0
  83. package/dist/core/host-events.d.ts +49 -0
  84. package/dist/core/host-events.js +257 -0
  85. package/dist/core/host-identity-links.d.ts +54 -0
  86. package/dist/core/host-identity-links.js +189 -0
  87. package/dist/core/host-status.d.ts +61 -0
  88. package/dist/core/host-status.js +211 -0
  89. package/dist/core/in-flight-runs.d.ts +8 -0
  90. package/dist/core/in-flight-runs.js +56 -0
  91. package/dist/core/provider-wording.d.ts +12 -0
  92. package/dist/core/provider-wording.js +44 -0
  93. package/dist/core/reconciler.d.ts +38 -2
  94. package/dist/core/reconciler.js +86 -2
  95. package/dist/core/repo-access.d.ts +99 -0
  96. package/dist/core/repo-access.js +136 -0
  97. package/dist/core/review-host-checks.d.ts +11 -0
  98. package/dist/core/review-host-checks.js +41 -0
  99. package/dist/core/review-host-tools.d.ts +47 -0
  100. package/dist/core/review-host-tools.js +347 -0
  101. package/dist/core/run-heartbeat.d.ts +27 -0
  102. package/dist/core/run-heartbeat.js +54 -0
  103. package/dist/core/runner.d.ts +30 -8
  104. package/dist/core/runner.js +237 -40
  105. package/dist/core/secrets.d.ts +11 -2
  106. package/dist/core/secrets.js +25 -6
  107. package/dist/core/subagent-memory-tools.d.ts +1 -1
  108. package/dist/core/subagent-memory-tools.js +16 -3
  109. package/dist/core/tool-admin.d.ts +81 -0
  110. package/dist/core/tool-admin.js +129 -0
  111. package/dist/core/tool-names.d.ts +42 -0
  112. package/dist/core/tool-names.js +64 -0
  113. package/dist/core/untrusted-content.d.ts +32 -0
  114. package/dist/core/untrusted-content.js +72 -0
  115. package/dist/core/webhooks.d.ts +8 -1
  116. package/dist/core/webhooks.js +23 -2
  117. package/dist/generated/prisma/browser.d.ts +100 -0
  118. package/dist/generated/prisma/client.d.ts +100 -0
  119. package/dist/generated/prisma/commonInputTypes.d.ts +30 -0
  120. package/dist/generated/prisma/enums.d.ts +6 -0
  121. package/dist/generated/prisma/enums.js +6 -1
  122. package/dist/generated/prisma/internal/class.d.ts +143 -0
  123. package/dist/generated/prisma/internal/class.js +4 -4
  124. package/dist/generated/prisma/internal/prismaNamespace.d.ts +1746 -577
  125. package/dist/generated/prisma/internal/prismaNamespace.js +179 -6
  126. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +186 -0
  127. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +179 -6
  128. package/dist/generated/prisma/models/Agent.d.ts +294 -1
  129. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  130. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  131. package/dist/generated/prisma/models/AgentTool.d.ts +95 -1
  132. package/dist/generated/prisma/models/AuthUser.d.ts +56 -1
  133. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +258 -7
  134. package/dist/generated/prisma/models/CodingProxySession.d.ts +123 -2
  135. package/dist/generated/prisma/models/CodingRun.d.ts +1276 -95
  136. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  137. package/dist/generated/prisma/models/CodingService.js +1 -0
  138. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  139. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  140. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  141. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  142. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  143. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  144. package/dist/generated/prisma/models/Principal.d.ts +455 -0
  145. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  146. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  147. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  148. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  149. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  150. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  151. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  152. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  153. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  154. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  155. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  156. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  157. package/dist/generated/prisma/models/Run.d.ts +389 -1
  158. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  159. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  160. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  161. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  162. package/dist/generated/prisma/models/Tool.d.ts +15 -3
  163. package/dist/generated/prisma/models.d.ts +13 -0
  164. package/dist/help/build.d.ts +1 -0
  165. package/dist/help/build.js +9 -0
  166. package/dist/help/catalog.d.ts +24 -0
  167. package/dist/help/catalog.js +160 -0
  168. package/dist/help/cli.d.ts +2 -0
  169. package/dist/help/cli.js +65 -0
  170. package/dist/help/runtime.d.ts +3 -0
  171. package/dist/help/runtime.js +44 -0
  172. package/dist/help/search.d.ts +9 -0
  173. package/dist/help/search.js +104 -0
  174. package/dist/help-index.json +660 -0
  175. package/dist/import/cli-args.js +3 -2
  176. package/dist/import/create.d.ts +5 -0
  177. package/dist/import/create.js +67 -13
  178. package/dist/import/index.js +19 -9
  179. package/dist/import/neutral-schema.d.ts +11 -11
  180. package/dist/mcp/auth/access.d.ts +70 -0
  181. package/dist/mcp/auth/access.js +58 -0
  182. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  183. package/dist/mcp/auth/grants-cli.js +518 -0
  184. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  185. package/dist/mcp/auth/host-account-cli.js +47 -0
  186. package/dist/mcp/auth/ownership.d.ts +26 -52
  187. package/dist/mcp/auth/ownership.js +19 -14
  188. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  189. package/dist/mcp/auth/repo-authorization.js +51 -0
  190. package/dist/mcp/auth/resource-server.d.ts +31 -2
  191. package/dist/mcp/auth/resource-server.js +84 -3
  192. package/dist/mcp/auth/self-hosted/browser.js +2 -2
  193. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  194. package/dist/mcp/auth/self-hosted/credentials.d.ts +20 -2
  195. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  196. package/dist/mcp/auth/self-hosted/session.d.ts +2 -1
  197. package/dist/mcp/context.d.ts +27 -1
  198. package/dist/mcp/errors.d.ts +25 -6
  199. package/dist/mcp/errors.js +98 -0
  200. package/dist/mcp/host-events/github-ingress.d.ts +36 -0
  201. package/dist/mcp/host-events/github-ingress.js +92 -0
  202. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  203. package/dist/mcp/host-events/github-user-callback.js +50 -0
  204. package/dist/mcp/index.d.ts +8 -1
  205. package/dist/mcp/index.js +106 -16
  206. package/dist/mcp/server.js +27 -9
  207. package/dist/mcp/tools/agents.js +446 -48
  208. package/dist/mcp/tools/budget-groups.js +3 -3
  209. package/dist/mcp/tools/datastore.js +22 -15
  210. package/dist/mcp/tools/grants.d.ts +2 -0
  211. package/dist/mcp/tools/grants.js +239 -0
  212. package/dist/mcp/tools/help.d.ts +5 -0
  213. package/dist/mcp/tools/help.js +67 -0
  214. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  215. package/dist/mcp/tools/host-accounts.js +114 -0
  216. package/dist/mcp/tools/memory.d.ts +7 -1
  217. package/dist/mcp/tools/memory.js +5 -5
  218. package/dist/mcp/tools/repositories.d.ts +2 -0
  219. package/dist/mcp/tools/repositories.js +181 -0
  220. package/dist/mcp/tools/runs.d.ts +6 -0
  221. package/dist/mcp/tools/runs.js +60 -6
  222. package/dist/mcp/tools/scheduling.js +3 -6
  223. package/dist/mcp/tools/secrets.js +18 -6
  224. package/dist/mcp/tools/services.d.ts +2 -0
  225. package/dist/mcp/tools/services.js +222 -0
  226. package/dist/mcp/tools/subagents.js +52 -16
  227. package/dist/mcp/tools/tools.d.ts +41 -0
  228. package/dist/mcp/tools/tools.js +201 -40
  229. package/dist/mcp/tools/trigger.js +36 -6
  230. package/dist/mcp/tools/webhooks.js +15 -4
  231. package/dist/mcp/transport/streamable-http.d.ts +10 -0
  232. package/dist/mcp/transport/streamable-http.js +32 -2
  233. package/dist/providers/auth/delegating.d.ts +19 -0
  234. package/dist/providers/auth/delegating.js +71 -0
  235. package/dist/providers/auth/index.d.ts +2 -0
  236. package/dist/providers/auth/index.js +11 -0
  237. package/dist/providers/auth/self-hosted.d.ts +2 -1
  238. package/dist/providers/auth/self-hosted.js +16 -4
  239. package/dist/providers/auth/types.d.ts +6 -0
  240. package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
  241. package/dist/providers/coding-proxy/memory-ledger.js +21 -2
  242. package/dist/providers/coding-proxy/metering.d.ts +4 -0
  243. package/dist/providers/coding-proxy/metering.js +28 -2
  244. package/dist/providers/coding-proxy/prisma-ledger.d.ts +17 -0
  245. package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
  246. package/dist/providers/coding-proxy/proxy.d.ts +13 -0
  247. package/dist/providers/coding-proxy/proxy.js +479 -18
  248. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  249. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  250. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  251. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  252. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  253. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  254. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  255. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  256. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  257. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  258. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  259. package/dist/providers/coding-proxy/registry/store.js +70 -0
  260. package/dist/providers/coding-proxy/runtime.d.ts +17 -0
  261. package/dist/providers/coding-proxy/runtime.js +63 -0
  262. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  263. package/dist/providers/coding-proxy/server.d.ts +11 -0
  264. package/dist/providers/coding-proxy/server.js +163 -0
  265. package/dist/providers/coding-proxy/types.d.ts +15 -0
  266. package/dist/providers/engine/types.d.ts +10 -0
  267. package/dist/providers/executor/build.d.ts +2 -2
  268. package/dist/providers/executor/composition.d.ts +3 -0
  269. package/dist/providers/executor/composition.js +19 -0
  270. package/dist/providers/executor/container.d.ts +105 -3
  271. package/dist/providers/executor/container.js +296 -20
  272. package/dist/providers/executor/dbos.d.ts +2 -3
  273. package/dist/providers/executor/in-process.d.ts +2 -3
  274. package/dist/providers/executor/routing.d.ts +7 -0
  275. package/dist/providers/executor/routing.js +13 -0
  276. package/dist/providers/executor/types.d.ts +22 -0
  277. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  278. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  279. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  280. package/dist/providers/jobs/collect-prune.js +27 -0
  281. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  282. package/dist/providers/jobs/docker-isolation.js +213 -22
  283. package/dist/providers/jobs/docker-services.d.ts +35 -0
  284. package/dist/providers/jobs/docker-services.js +191 -0
  285. package/dist/providers/jobs/docker.d.ts +49 -2
  286. package/dist/providers/jobs/docker.js +279 -32
  287. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  288. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  289. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  290. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  291. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  292. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  293. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  294. package/dist/providers/jobs/kubernetes.d.ts +21 -2
  295. package/dist/providers/jobs/kubernetes.js +112 -21
  296. package/dist/providers/jobs/types.d.ts +18 -0
  297. package/dist/providers/llm/anthropic.js +6 -2
  298. package/dist/providers/llm/bedrock.js +2 -1
  299. package/dist/providers/llm/claude-messages.d.ts +5 -1
  300. package/dist/providers/llm/claude-messages.js +1 -0
  301. package/dist/providers/llm/claude-provider.d.ts +3 -1
  302. package/dist/providers/llm/claude-provider.js +5 -1
  303. package/dist/providers/llm/index.d.ts +1 -1
  304. package/dist/providers/llm/index.js +1 -1
  305. package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
  306. package/dist/providers/llm/pricing-anthropic.js +32 -14
  307. package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
  308. package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
  309. package/dist/providers/llm/routing.d.ts +10 -1
  310. package/dist/providers/llm/routing.js +18 -0
  311. package/dist/providers/llm/types.d.ts +12 -0
  312. package/dist/providers/llm/types.js +8 -1
  313. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  314. package/dist/providers/review-host/diff-lines.js +59 -0
  315. package/dist/providers/review-host/github-events.d.ts +6 -0
  316. package/dist/providers/review-host/github-events.js +180 -0
  317. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  318. package/dist/providers/review-host/github-user-auth.js +128 -0
  319. package/dist/providers/review-host/github.d.ts +57 -0
  320. package/dist/providers/review-host/github.js +567 -0
  321. package/dist/providers/review-host/index.d.ts +12 -0
  322. package/dist/providers/review-host/index.js +30 -0
  323. package/dist/providers/review-host/review-format.d.ts +19 -0
  324. package/dist/providers/review-host/review-format.js +59 -0
  325. package/dist/providers/review-host/types.d.ts +284 -0
  326. package/dist/providers/review-host/types.js +24 -0
  327. package/dist/providers/vcs/git.d.ts +16 -6
  328. package/dist/providers/vcs/git.js +77 -13
  329. package/dist/providers/vcs/github.d.ts +74 -3
  330. package/dist/providers/vcs/github.js +195 -15
  331. package/dist/providers/vcs/types.d.ts +42 -4
  332. package/dist/quickstart/index.js +13 -2
  333. package/dist/sandbox/fetch-policy.d.ts +20 -2
  334. package/dist/sandbox/fetch-policy.js +64 -3
  335. package/dist/sandbox/host-functions.d.ts +9 -1
  336. package/dist/sandbox/host-functions.js +12 -5
  337. package/dist/serve.js +1 -1
  338. package/dist/wardby-bin.js +6 -0
  339. package/docs/README.md +30 -0
  340. package/docs/architecture-runtime.md +90 -0
  341. package/docs/assets/brand/wardby-icon-512.png +0 -0
  342. package/docs/assets/brand/wardby-icon.svg +16 -0
  343. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  344. package/docs/assets/brand/wardby-mascot.png +0 -0
  345. package/docs/assets/brand/wardby-mascot.svg +5 -0
  346. package/docs/assets/wardby-workflow.svg +106 -0
  347. package/docs/code-review-agents.md +481 -0
  348. package/docs/coding-agent-setup.md +172 -0
  349. package/docs/coding-packages.md +455 -0
  350. package/docs/coding-services.md +300 -0
  351. package/docs/coding-worker-byo-images.md +98 -0
  352. package/docs/coding-worker-isolation.md +1061 -0
  353. package/docs/getting-started-gke.md +615 -0
  354. package/docs/getting-started-identity-provider.md +308 -0
  355. package/docs/getting-started.md +133 -0
  356. package/docs/observability.md +53 -0
  357. package/docs/release-verification.md +66 -0
  358. package/docs/security-deployment.md +657 -0
  359. package/help/code-review-agents.md +31 -0
  360. package/help/coding-packages.md +31 -0
  361. package/help/coding-services.md +71 -0
  362. package/help/creating-agents.md +68 -0
  363. package/help/deploy-gke.md +39 -0
  364. package/help/deployment-targets.md +39 -0
  365. package/help/errors/budget-group-exhausted.md +25 -0
  366. package/help/errors/docker-isolation-unsupported.md +26 -0
  367. package/help/errors/protected-path.md +45 -0
  368. package/help/errors/repo-access.md +27 -0
  369. package/help/errors/service-declaration-invalid.md +27 -0
  370. package/help/errors/service-declaration-unavailable.md +25 -0
  371. package/help/errors/service-launcher-unsupported.md +30 -0
  372. package/help/errors/service-not-allowed.md +27 -0
  373. package/help/errors/service-unknown.md +23 -0
  374. package/help/errors/service-unready.md +49 -0
  375. package/help/getting-started.md +31 -0
  376. package/help/github.md +30 -0
  377. package/help/identity-and-access.md +39 -0
  378. package/help/mcp.md +30 -0
  379. package/help/native-capabilities.md +30 -0
  380. package/help/observability.md +41 -0
  381. package/help/operating-agents.md +30 -0
  382. package/help/security.md +27 -0
  383. package/help/troubleshooting/budgets.md +26 -0
  384. package/help/troubleshooting/coding-workers.md +47 -0
  385. package/help/troubleshooting/repository-access.md +27 -0
  386. package/package.json +12 -3
  387. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  388. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  389. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  390. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  391. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  392. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  393. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  394. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  395. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  396. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  397. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  398. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  399. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  400. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  401. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  402. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  403. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  404. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  405. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  406. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  407. package/prisma/schema.prisma +407 -21
@@ -43,6 +43,7 @@ export type RunMinAggregateOutputType = {
43
43
  executionBackend: string | null;
44
44
  parentRunId: string | null;
45
45
  taskOverride: string | null;
46
+ triggeredById: string | null;
46
47
  };
47
48
  export type RunMaxAggregateOutputType = {
48
49
  id: string | null;
@@ -62,6 +63,7 @@ export type RunMaxAggregateOutputType = {
62
63
  executionBackend: string | null;
63
64
  parentRunId: string | null;
64
65
  taskOverride: string | null;
66
+ triggeredById: string | null;
65
67
  };
66
68
  export type RunCountAggregateOutputType = {
67
69
  id: number;
@@ -82,6 +84,7 @@ export type RunCountAggregateOutputType = {
82
84
  parentRunId: number;
83
85
  grantedParentMemoryKeys: number;
84
86
  taskOverride: number;
87
+ triggeredById: number;
85
88
  _all: number;
86
89
  };
87
90
  export type RunAvgAggregateInputType = {
@@ -114,6 +117,7 @@ export type RunMinAggregateInputType = {
114
117
  executionBackend?: true;
115
118
  parentRunId?: true;
116
119
  taskOverride?: true;
120
+ triggeredById?: true;
117
121
  };
118
122
  export type RunMaxAggregateInputType = {
119
123
  id?: true;
@@ -133,6 +137,7 @@ export type RunMaxAggregateInputType = {
133
137
  executionBackend?: true;
134
138
  parentRunId?: true;
135
139
  taskOverride?: true;
140
+ triggeredById?: true;
136
141
  };
137
142
  export type RunCountAggregateInputType = {
138
143
  id?: true;
@@ -153,6 +158,7 @@ export type RunCountAggregateInputType = {
153
158
  parentRunId?: true;
154
159
  grantedParentMemoryKeys?: true;
155
160
  taskOverride?: true;
161
+ triggeredById?: true;
156
162
  _all?: true;
157
163
  };
158
164
  export type RunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -250,6 +256,7 @@ export type RunGroupByOutputType = {
250
256
  parentRunId: string | null;
251
257
  grantedParentMemoryKeys: string[];
252
258
  taskOverride: string | null;
259
+ triggeredById: string | null;
253
260
  _count: RunCountAggregateOutputType | null;
254
261
  _avg: RunAvgAggregateOutputType | null;
255
262
  _sum: RunSumAggregateOutputType | null;
@@ -281,8 +288,11 @@ export type RunWhereInput = {
281
288
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
282
289
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
283
290
  taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
291
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
284
292
  agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
285
293
  codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
294
+ hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
295
+ hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
286
296
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
287
297
  childRuns?: Prisma.RunListRelationFilter;
288
298
  };
@@ -305,8 +315,11 @@ export type RunOrderByWithRelationInput = {
305
315
  parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
306
316
  grantedParentMemoryKeys?: Prisma.SortOrder;
307
317
  taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
318
+ triggeredById?: Prisma.SortOrderInput | Prisma.SortOrder;
308
319
  agent?: Prisma.AgentOrderByWithRelationInput;
309
320
  codingRun?: Prisma.CodingRunOrderByWithRelationInput;
321
+ hostCheck?: Prisma.RunHostCheckOrderByWithRelationInput;
322
+ hostStatus?: Prisma.RunHostStatusOrderByWithRelationInput;
310
323
  parentRun?: Prisma.RunOrderByWithRelationInput;
311
324
  childRuns?: Prisma.RunOrderByRelationAggregateInput;
312
325
  };
@@ -332,8 +345,11 @@ export type RunWhereUniqueInput = Prisma.AtLeast<{
332
345
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
333
346
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
334
347
  taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
348
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
335
349
  agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
336
350
  codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
351
+ hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
352
+ hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
337
353
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
338
354
  childRuns?: Prisma.RunListRelationFilter;
339
355
  }, "id">;
@@ -356,6 +372,7 @@ export type RunOrderByWithAggregationInput = {
356
372
  parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
357
373
  grantedParentMemoryKeys?: Prisma.SortOrder;
358
374
  taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
375
+ triggeredById?: Prisma.SortOrderInput | Prisma.SortOrder;
359
376
  _count?: Prisma.RunCountOrderByAggregateInput;
360
377
  _avg?: Prisma.RunAvgOrderByAggregateInput;
361
378
  _max?: Prisma.RunMaxOrderByAggregateInput;
@@ -384,6 +401,7 @@ export type RunScalarWhereWithAggregatesInput = {
384
401
  parentRunId?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
385
402
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
386
403
  taskOverride?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
404
+ triggeredById?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
387
405
  };
388
406
  export type RunCreateInput = {
389
407
  id?: string;
@@ -402,8 +420,11 @@ export type RunCreateInput = {
402
420
  executionBackend?: string | null;
403
421
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
404
422
  taskOverride?: string | null;
423
+ triggeredById?: string | null;
405
424
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
406
425
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
426
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
427
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
407
428
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
408
429
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
409
430
  };
@@ -426,7 +447,10 @@ export type RunUncheckedCreateInput = {
426
447
  parentRunId?: string | null;
427
448
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
428
449
  taskOverride?: string | null;
450
+ triggeredById?: string | null;
429
451
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
452
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
453
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
430
454
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
431
455
  };
432
456
  export type RunUpdateInput = {
@@ -446,8 +470,11 @@ export type RunUpdateInput = {
446
470
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
447
471
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
448
472
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
449
474
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
450
475
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
476
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
477
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
451
478
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
452
479
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
453
480
  };
@@ -470,7 +497,10 @@ export type RunUncheckedUpdateInput = {
470
497
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
498
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
472
499
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
500
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
501
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
502
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
503
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
474
504
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
475
505
  };
476
506
  export type RunCreateManyInput = {
@@ -492,6 +522,7 @@ export type RunCreateManyInput = {
492
522
  parentRunId?: string | null;
493
523
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
494
524
  taskOverride?: string | null;
525
+ triggeredById?: string | null;
495
526
  };
496
527
  export type RunUpdateManyMutationInput = {
497
528
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -510,6 +541,7 @@ export type RunUpdateManyMutationInput = {
510
541
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
511
542
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
512
543
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
544
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
513
545
  };
514
546
  export type RunUncheckedUpdateManyInput = {
515
547
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -530,6 +562,7 @@ export type RunUncheckedUpdateManyInput = {
530
562
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
563
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
532
564
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
565
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
533
566
  };
534
567
  export type RunListRelationFilter = {
535
568
  every?: Prisma.RunWhereInput;
@@ -569,6 +602,7 @@ export type RunCountOrderByAggregateInput = {
569
602
  parentRunId?: Prisma.SortOrder;
570
603
  grantedParentMemoryKeys?: Prisma.SortOrder;
571
604
  taskOverride?: Prisma.SortOrder;
605
+ triggeredById?: Prisma.SortOrder;
572
606
  };
573
607
  export type RunAvgOrderByAggregateInput = {
574
608
  tokensIn?: Prisma.SortOrder;
@@ -594,6 +628,7 @@ export type RunMaxOrderByAggregateInput = {
594
628
  executionBackend?: Prisma.SortOrder;
595
629
  parentRunId?: Prisma.SortOrder;
596
630
  taskOverride?: Prisma.SortOrder;
631
+ triggeredById?: Prisma.SortOrder;
597
632
  };
598
633
  export type RunMinOrderByAggregateInput = {
599
634
  id?: Prisma.SortOrder;
@@ -613,6 +648,7 @@ export type RunMinOrderByAggregateInput = {
613
648
  executionBackend?: Prisma.SortOrder;
614
649
  parentRunId?: Prisma.SortOrder;
615
650
  taskOverride?: Prisma.SortOrder;
651
+ triggeredById?: Prisma.SortOrder;
616
652
  };
617
653
  export type RunSumOrderByAggregateInput = {
618
654
  tokensIn?: Prisma.SortOrder;
@@ -739,6 +775,30 @@ export type RunUpdateOneRequiredWithoutCodingRunNestedInput = {
739
775
  connect?: Prisma.RunWhereUniqueInput;
740
776
  update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutCodingRunInput, Prisma.RunUpdateWithoutCodingRunInput>, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
741
777
  };
778
+ export type RunCreateNestedOneWithoutHostCheckInput = {
779
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
780
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
781
+ connect?: Prisma.RunWhereUniqueInput;
782
+ };
783
+ export type RunUpdateOneRequiredWithoutHostCheckNestedInput = {
784
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
785
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
786
+ upsert?: Prisma.RunUpsertWithoutHostCheckInput;
787
+ connect?: Prisma.RunWhereUniqueInput;
788
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostCheckInput, Prisma.RunUpdateWithoutHostCheckInput>, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
789
+ };
790
+ export type RunCreateNestedOneWithoutHostStatusInput = {
791
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
792
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostStatusInput;
793
+ connect?: Prisma.RunWhereUniqueInput;
794
+ };
795
+ export type RunUpdateOneRequiredWithoutHostStatusNestedInput = {
796
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
797
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostStatusInput;
798
+ upsert?: Prisma.RunUpsertWithoutHostStatusInput;
799
+ connect?: Prisma.RunWhereUniqueInput;
800
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostStatusInput, Prisma.RunUpdateWithoutHostStatusInput>, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
801
+ };
742
802
  export type RunCreateWithoutAgentInput = {
743
803
  id?: string;
744
804
  status?: $Enums.RunStatus;
@@ -756,7 +816,10 @@ export type RunCreateWithoutAgentInput = {
756
816
  executionBackend?: string | null;
757
817
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
758
818
  taskOverride?: string | null;
819
+ triggeredById?: string | null;
759
820
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
821
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
822
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
760
823
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
761
824
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
762
825
  };
@@ -778,7 +841,10 @@ export type RunUncheckedCreateWithoutAgentInput = {
778
841
  parentRunId?: string | null;
779
842
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
780
843
  taskOverride?: string | null;
844
+ triggeredById?: string | null;
781
845
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
846
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
847
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
782
848
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
783
849
  };
784
850
  export type RunCreateOrConnectWithoutAgentInput = {
@@ -824,6 +890,7 @@ export type RunScalarWhereInput = {
824
890
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
825
891
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
826
892
  taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
893
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
827
894
  };
828
895
  export type RunCreateWithoutChildRunsInput = {
829
896
  id?: string;
@@ -842,8 +909,11 @@ export type RunCreateWithoutChildRunsInput = {
842
909
  executionBackend?: string | null;
843
910
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
844
911
  taskOverride?: string | null;
912
+ triggeredById?: string | null;
845
913
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
846
914
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
915
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
916
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
847
917
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
848
918
  };
849
919
  export type RunUncheckedCreateWithoutChildRunsInput = {
@@ -865,7 +935,10 @@ export type RunUncheckedCreateWithoutChildRunsInput = {
865
935
  parentRunId?: string | null;
866
936
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
867
937
  taskOverride?: string | null;
938
+ triggeredById?: string | null;
868
939
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
940
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
941
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
869
942
  };
870
943
  export type RunCreateOrConnectWithoutChildRunsInput = {
871
944
  where: Prisma.RunWhereUniqueInput;
@@ -888,8 +961,11 @@ export type RunCreateWithoutParentRunInput = {
888
961
  executionBackend?: string | null;
889
962
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
890
963
  taskOverride?: string | null;
964
+ triggeredById?: string | null;
891
965
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
892
966
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
967
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
968
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
893
969
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
894
970
  };
895
971
  export type RunUncheckedCreateWithoutParentRunInput = {
@@ -910,7 +986,10 @@ export type RunUncheckedCreateWithoutParentRunInput = {
910
986
  executionBackend?: string | null;
911
987
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
912
988
  taskOverride?: string | null;
989
+ triggeredById?: string | null;
913
990
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
991
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
992
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
914
993
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
915
994
  };
916
995
  export type RunCreateOrConnectWithoutParentRunInput = {
@@ -947,8 +1026,11 @@ export type RunUpdateWithoutChildRunsInput = {
947
1026
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
948
1027
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
949
1028
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
950
1030
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
951
1031
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1032
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1033
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
952
1034
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
953
1035
  };
954
1036
  export type RunUncheckedUpdateWithoutChildRunsInput = {
@@ -970,7 +1052,10 @@ export type RunUncheckedUpdateWithoutChildRunsInput = {
970
1052
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
971
1053
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
972
1054
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
973
1056
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1057
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1058
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
974
1059
  };
975
1060
  export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
976
1061
  where: Prisma.RunWhereUniqueInput;
@@ -1002,7 +1087,10 @@ export type RunCreateWithoutCodingRunInput = {
1002
1087
  executionBackend?: string | null;
1003
1088
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1004
1089
  taskOverride?: string | null;
1090
+ triggeredById?: string | null;
1005
1091
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1092
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1093
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1006
1094
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1007
1095
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1008
1096
  };
@@ -1025,6 +1113,9 @@ export type RunUncheckedCreateWithoutCodingRunInput = {
1025
1113
  parentRunId?: string | null;
1026
1114
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1027
1115
  taskOverride?: string | null;
1116
+ triggeredById?: string | null;
1117
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1118
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1028
1119
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1029
1120
  };
1030
1121
  export type RunCreateOrConnectWithoutCodingRunInput = {
@@ -1057,7 +1148,10 @@ export type RunUpdateWithoutCodingRunInput = {
1057
1148
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
1149
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1059
1150
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1151
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
1152
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1153
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1154
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1061
1155
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1062
1156
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1063
1157
  };
@@ -1080,6 +1174,227 @@ export type RunUncheckedUpdateWithoutCodingRunInput = {
1080
1174
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1081
1175
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1082
1176
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1177
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1178
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1179
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1180
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1181
+ };
1182
+ export type RunCreateWithoutHostCheckInput = {
1183
+ id?: string;
1184
+ status?: $Enums.RunStatus;
1185
+ trigger?: $Enums.RunTrigger;
1186
+ tokensIn?: number;
1187
+ tokensOut?: number;
1188
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1189
+ error?: string | null;
1190
+ startedAt?: Date | string;
1191
+ finishedAt?: Date | string | null;
1192
+ heartbeatAt?: Date | string | null;
1193
+ finalText?: string | null;
1194
+ turns?: number;
1195
+ executionManaged?: boolean;
1196
+ executionBackend?: string | null;
1197
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1198
+ taskOverride?: string | null;
1199
+ triggeredById?: string | null;
1200
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1201
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1202
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1203
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1204
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1205
+ };
1206
+ export type RunUncheckedCreateWithoutHostCheckInput = {
1207
+ id?: string;
1208
+ agentId: string;
1209
+ status?: $Enums.RunStatus;
1210
+ trigger?: $Enums.RunTrigger;
1211
+ tokensIn?: number;
1212
+ tokensOut?: number;
1213
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1214
+ error?: string | null;
1215
+ startedAt?: Date | string;
1216
+ finishedAt?: Date | string | null;
1217
+ heartbeatAt?: Date | string | null;
1218
+ finalText?: string | null;
1219
+ turns?: number;
1220
+ executionManaged?: boolean;
1221
+ executionBackend?: string | null;
1222
+ parentRunId?: string | null;
1223
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1224
+ taskOverride?: string | null;
1225
+ triggeredById?: string | null;
1226
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1227
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1228
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1229
+ };
1230
+ export type RunCreateOrConnectWithoutHostCheckInput = {
1231
+ where: Prisma.RunWhereUniqueInput;
1232
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
1233
+ };
1234
+ export type RunUpsertWithoutHostCheckInput = {
1235
+ update: Prisma.XOR<Prisma.RunUpdateWithoutHostCheckInput, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
1236
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
1237
+ where?: Prisma.RunWhereInput;
1238
+ };
1239
+ export type RunUpdateToOneWithWhereWithoutHostCheckInput = {
1240
+ where?: Prisma.RunWhereInput;
1241
+ data: Prisma.XOR<Prisma.RunUpdateWithoutHostCheckInput, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
1242
+ };
1243
+ export type RunUpdateWithoutHostCheckInput = {
1244
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1245
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1246
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1247
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1248
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1249
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1250
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1251
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1252
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1253
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1254
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1255
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1256
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1257
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1258
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1259
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1260
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1261
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1262
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1263
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1264
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1265
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1266
+ };
1267
+ export type RunUncheckedUpdateWithoutHostCheckInput = {
1268
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1269
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1270
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1271
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1272
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1273
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1274
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1275
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1276
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1277
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1278
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1279
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1280
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1281
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1282
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1283
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1284
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1285
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1286
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1287
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1288
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1289
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1290
+ };
1291
+ export type RunCreateWithoutHostStatusInput = {
1292
+ id?: string;
1293
+ status?: $Enums.RunStatus;
1294
+ trigger?: $Enums.RunTrigger;
1295
+ tokensIn?: number;
1296
+ tokensOut?: number;
1297
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1298
+ error?: string | null;
1299
+ startedAt?: Date | string;
1300
+ finishedAt?: Date | string | null;
1301
+ heartbeatAt?: Date | string | null;
1302
+ finalText?: string | null;
1303
+ turns?: number;
1304
+ executionManaged?: boolean;
1305
+ executionBackend?: string | null;
1306
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1307
+ taskOverride?: string | null;
1308
+ triggeredById?: string | null;
1309
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1310
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1311
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1312
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1313
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1314
+ };
1315
+ export type RunUncheckedCreateWithoutHostStatusInput = {
1316
+ id?: string;
1317
+ agentId: string;
1318
+ status?: $Enums.RunStatus;
1319
+ trigger?: $Enums.RunTrigger;
1320
+ tokensIn?: number;
1321
+ tokensOut?: number;
1322
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1323
+ error?: string | null;
1324
+ startedAt?: Date | string;
1325
+ finishedAt?: Date | string | null;
1326
+ heartbeatAt?: Date | string | null;
1327
+ finalText?: string | null;
1328
+ turns?: number;
1329
+ executionManaged?: boolean;
1330
+ executionBackend?: string | null;
1331
+ parentRunId?: string | null;
1332
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1333
+ taskOverride?: string | null;
1334
+ triggeredById?: string | null;
1335
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1336
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1337
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1338
+ };
1339
+ export type RunCreateOrConnectWithoutHostStatusInput = {
1340
+ where: Prisma.RunWhereUniqueInput;
1341
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
1342
+ };
1343
+ export type RunUpsertWithoutHostStatusInput = {
1344
+ update: Prisma.XOR<Prisma.RunUpdateWithoutHostStatusInput, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
1345
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
1346
+ where?: Prisma.RunWhereInput;
1347
+ };
1348
+ export type RunUpdateToOneWithWhereWithoutHostStatusInput = {
1349
+ where?: Prisma.RunWhereInput;
1350
+ data: Prisma.XOR<Prisma.RunUpdateWithoutHostStatusInput, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
1351
+ };
1352
+ export type RunUpdateWithoutHostStatusInput = {
1353
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1354
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1355
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1356
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1357
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1358
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1359
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1360
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1361
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1362
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1363
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1364
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1365
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1366
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1367
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1368
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1369
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1370
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1371
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1372
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1373
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1374
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1375
+ };
1376
+ export type RunUncheckedUpdateWithoutHostStatusInput = {
1377
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1378
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1379
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1380
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1381
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1382
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1383
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1384
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1385
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1386
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1387
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1388
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1389
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1390
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1391
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1392
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1393
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1394
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1395
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1396
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1397
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1083
1398
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1084
1399
  };
1085
1400
  export type RunCreateManyAgentInput = {
@@ -1100,6 +1415,7 @@ export type RunCreateManyAgentInput = {
1100
1415
  parentRunId?: string | null;
1101
1416
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1102
1417
  taskOverride?: string | null;
1418
+ triggeredById?: string | null;
1103
1419
  };
1104
1420
  export type RunUpdateWithoutAgentInput = {
1105
1421
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1118,7 +1434,10 @@ export type RunUpdateWithoutAgentInput = {
1118
1434
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1119
1435
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1120
1436
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1437
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1121
1438
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1439
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1440
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1122
1441
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1123
1442
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1124
1443
  };
@@ -1140,7 +1459,10 @@ export type RunUncheckedUpdateWithoutAgentInput = {
1140
1459
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1141
1460
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1142
1461
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1462
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1143
1463
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1464
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1465
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1144
1466
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1145
1467
  };
1146
1468
  export type RunUncheckedUpdateManyWithoutAgentInput = {
@@ -1161,6 +1483,7 @@ export type RunUncheckedUpdateManyWithoutAgentInput = {
1161
1483
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1162
1484
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1163
1485
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1486
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1164
1487
  };
1165
1488
  export type RunCreateManyParentRunInput = {
1166
1489
  id?: string;
@@ -1180,6 +1503,7 @@ export type RunCreateManyParentRunInput = {
1180
1503
  executionBackend?: string | null;
1181
1504
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1182
1505
  taskOverride?: string | null;
1506
+ triggeredById?: string | null;
1183
1507
  };
1184
1508
  export type RunUpdateWithoutParentRunInput = {
1185
1509
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1198,8 +1522,11 @@ export type RunUpdateWithoutParentRunInput = {
1198
1522
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1199
1523
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1200
1524
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1525
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
1526
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1202
1527
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1528
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1529
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1203
1530
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1204
1531
  };
1205
1532
  export type RunUncheckedUpdateWithoutParentRunInput = {
@@ -1220,7 +1547,10 @@ export type RunUncheckedUpdateWithoutParentRunInput = {
1220
1547
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1221
1548
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1222
1549
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1550
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1223
1551
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1552
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1553
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1224
1554
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1225
1555
  };
1226
1556
  export type RunUncheckedUpdateManyWithoutParentRunInput = {
@@ -1241,6 +1571,7 @@ export type RunUncheckedUpdateManyWithoutParentRunInput = {
1241
1571
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1242
1572
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1243
1573
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1574
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1244
1575
  };
1245
1576
  /**
1246
1577
  * Count Type RunCountOutputType
@@ -1285,8 +1616,11 @@ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
1285
1616
  parentRunId?: boolean;
1286
1617
  grantedParentMemoryKeys?: boolean;
1287
1618
  taskOverride?: boolean;
1619
+ triggeredById?: boolean;
1288
1620
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1289
1621
  codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1622
+ hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
1623
+ hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
1290
1624
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1291
1625
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1292
1626
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1310,6 +1644,7 @@ export type RunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extension
1310
1644
  parentRunId?: boolean;
1311
1645
  grantedParentMemoryKeys?: boolean;
1312
1646
  taskOverride?: boolean;
1647
+ triggeredById?: boolean;
1313
1648
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1314
1649
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1315
1650
  }, ExtArgs["result"]["run"]>;
@@ -1332,6 +1667,7 @@ export type RunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extension
1332
1667
  parentRunId?: boolean;
1333
1668
  grantedParentMemoryKeys?: boolean;
1334
1669
  taskOverride?: boolean;
1670
+ triggeredById?: boolean;
1335
1671
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1336
1672
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1337
1673
  }, ExtArgs["result"]["run"]>;
@@ -1354,11 +1690,14 @@ export type RunSelectScalar = {
1354
1690
  parentRunId?: boolean;
1355
1691
  grantedParentMemoryKeys?: boolean;
1356
1692
  taskOverride?: boolean;
1693
+ triggeredById?: boolean;
1357
1694
  };
1358
- export type RunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "status" | "trigger" | "tokensIn" | "tokensOut" | "costUsd" | "error" | "startedAt" | "finishedAt" | "heartbeatAt" | "finalText" | "turns" | "executionManaged" | "executionBackend" | "parentRunId" | "grantedParentMemoryKeys" | "taskOverride", ExtArgs["result"]["run"]>;
1695
+ export type RunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "status" | "trigger" | "tokensIn" | "tokensOut" | "costUsd" | "error" | "startedAt" | "finishedAt" | "heartbeatAt" | "finalText" | "turns" | "executionManaged" | "executionBackend" | "parentRunId" | "grantedParentMemoryKeys" | "taskOverride" | "triggeredById", ExtArgs["result"]["run"]>;
1359
1696
  export type RunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
1697
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1361
1698
  codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1699
+ hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
1700
+ hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
1362
1701
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1363
1702
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1364
1703
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1376,6 +1715,8 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1376
1715
  objects: {
1377
1716
  agent: Prisma.$AgentPayload<ExtArgs>;
1378
1717
  codingRun: Prisma.$CodingRunPayload<ExtArgs> | null;
1718
+ hostCheck: Prisma.$RunHostCheckPayload<ExtArgs> | null;
1719
+ hostStatus: Prisma.$RunHostStatusPayload<ExtArgs> | null;
1379
1720
  parentRun: Prisma.$RunPayload<ExtArgs> | null;
1380
1721
  childRuns: Prisma.$RunPayload<ExtArgs>[];
1381
1722
  };
@@ -1444,6 +1785,14 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1444
1785
  * prompt-cache-eligible across dispatches.
1445
1786
  */
1446
1787
  taskOverride: string | null;
1788
+ /**
1789
+ * The principal the run is visible to besides the agent's owner
1790
+ * (resource-sharing grants spec §3.5): the trigger_agent caller, a
1791
+ * webhook's creator, or a sub-agent's parent run's triggerer. Null for
1792
+ * scheduled, host-event and CLI runs, which only the owner sees. Plain
1793
+ * text, no FK.
1794
+ */
1795
+ triggeredById: string | null;
1447
1796
  }, ExtArgs["result"]["run"]>;
1448
1797
  composites: {};
1449
1798
  };
@@ -1775,6 +2124,8 @@ export interface Prisma__RunClient<T, Null = never, ExtArgs extends runtime.Type
1775
2124
  readonly [Symbol.toStringTag]: "PrismaPromise";
1776
2125
  agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1777
2126
  codingRun<T extends Prisma.Run$codingRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$codingRunArgs<ExtArgs>>): Prisma.Prisma__CodingRunClient<runtime.Types.Result.GetResult<Prisma.$CodingRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2127
+ hostCheck<T extends Prisma.Run$hostCheckArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$hostCheckArgs<ExtArgs>>): Prisma.Prisma__RunHostCheckClient<runtime.Types.Result.GetResult<Prisma.$RunHostCheckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2128
+ hostStatus<T extends Prisma.Run$hostStatusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$hostStatusArgs<ExtArgs>>): Prisma.Prisma__RunHostStatusClient<runtime.Types.Result.GetResult<Prisma.$RunHostStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1778
2129
  parentRun<T extends Prisma.Run$parentRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$parentRunArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1779
2130
  childRuns<T extends Prisma.Run$childRunsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$childRunsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1780
2131
  /**
@@ -1820,6 +2171,7 @@ export interface RunFieldRefs {
1820
2171
  readonly parentRunId: Prisma.FieldRef<"Run", 'String'>;
1821
2172
  readonly grantedParentMemoryKeys: Prisma.FieldRef<"Run", 'String[]'>;
1822
2173
  readonly taskOverride: Prisma.FieldRef<"Run", 'String'>;
2174
+ readonly triggeredById: Prisma.FieldRef<"Run", 'String'>;
1823
2175
  }
1824
2176
  /**
1825
2177
  * Run findUnique
@@ -2221,6 +2573,42 @@ export type Run$codingRunArgs<ExtArgs extends runtime.Types.Extensions.InternalA
2221
2573
  include?: Prisma.CodingRunInclude<ExtArgs> | null;
2222
2574
  where?: Prisma.CodingRunWhereInput;
2223
2575
  };
2576
+ /**
2577
+ * Run.hostCheck
2578
+ */
2579
+ export type Run$hostCheckArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2580
+ /**
2581
+ * Select specific fields to fetch from the RunHostCheck
2582
+ */
2583
+ select?: Prisma.RunHostCheckSelect<ExtArgs> | null;
2584
+ /**
2585
+ * Omit specific fields from the RunHostCheck
2586
+ */
2587
+ omit?: Prisma.RunHostCheckOmit<ExtArgs> | null;
2588
+ /**
2589
+ * Choose, which related nodes to fetch as well
2590
+ */
2591
+ include?: Prisma.RunHostCheckInclude<ExtArgs> | null;
2592
+ where?: Prisma.RunHostCheckWhereInput;
2593
+ };
2594
+ /**
2595
+ * Run.hostStatus
2596
+ */
2597
+ export type Run$hostStatusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2598
+ /**
2599
+ * Select specific fields to fetch from the RunHostStatus
2600
+ */
2601
+ select?: Prisma.RunHostStatusSelect<ExtArgs> | null;
2602
+ /**
2603
+ * Omit specific fields from the RunHostStatus
2604
+ */
2605
+ omit?: Prisma.RunHostStatusOmit<ExtArgs> | null;
2606
+ /**
2607
+ * Choose, which related nodes to fetch as well
2608
+ */
2609
+ include?: Prisma.RunHostStatusInclude<ExtArgs> | null;
2610
+ where?: Prisma.RunHostStatusWhereInput;
2611
+ };
2224
2612
  /**
2225
2613
  * Run.parentRun
2226
2614
  */