@wardby/cli 0.2.1 → 0.4.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 (555) hide show
  1. package/.env.example +53 -4
  2. package/README.md +52 -13
  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 +14 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +284 -36
  12. package/dist/coding/base-commit.d.ts +6 -0
  13. package/dist/coding/base-commit.js +12 -0
  14. package/dist/coding/collect-exclude.d.ts +25 -0
  15. package/dist/coding/collect-exclude.js +76 -0
  16. package/dist/coding/profile.d.ts +67 -22
  17. package/dist/coding/profile.js +58 -25
  18. package/dist/coding/protected-path-wording.d.ts +24 -0
  19. package/dist/coding/protected-path-wording.js +55 -0
  20. package/dist/coding/protected-paths.d.ts +31 -0
  21. package/dist/coding/protected-paths.js +48 -0
  22. package/dist/coding/protocol.d.ts +91 -4
  23. package/dist/coding/protocol.js +123 -12
  24. package/dist/coding/provider.d.ts +6 -1
  25. package/dist/coding/provider.js +16 -9
  26. package/dist/coding/registry/adapters.d.ts +2 -0
  27. package/dist/coding/registry/adapters.js +9 -0
  28. package/dist/coding/registry/allowlist.d.ts +9 -0
  29. package/dist/coding/registry/allowlist.js +28 -0
  30. package/dist/coding/registry/json-scan.d.ts +55 -0
  31. package/dist/coding/registry/json-scan.js +191 -0
  32. package/dist/coding/registry/lockfiles.d.ts +6 -0
  33. package/dist/coding/registry/lockfiles.js +89 -0
  34. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  35. package/dist/coding/registry/npm-lockfile.js +73 -0
  36. package/dist/coding/registry/npm-plan.d.ts +29 -0
  37. package/dist/coding/registry/npm-plan.js +289 -0
  38. package/dist/coding/registry/npm.d.ts +7 -0
  39. package/dist/coding/registry/npm.js +252 -0
  40. package/dist/coding/registry/pypi.d.ts +4 -0
  41. package/dist/coding/registry/pypi.js +210 -0
  42. package/dist/coding/registry/report.d.ts +37 -0
  43. package/dist/coding/registry/report.js +31 -0
  44. package/dist/coding/registry/token.d.ts +4 -0
  45. package/dist/coding/registry/token.js +7 -0
  46. package/dist/coding/registry/types.d.ts +286 -0
  47. package/dist/coding/registry/types.js +19 -0
  48. package/dist/coding/registry/worker-config.d.ts +14 -0
  49. package/dist/coding/registry/worker-config.js +31 -0
  50. package/dist/coding/services/builtins.d.ts +22 -0
  51. package/dist/coding/services/builtins.js +85 -0
  52. package/dist/coding/services/catalog.d.ts +443 -0
  53. package/dist/coding/services/catalog.js +159 -0
  54. package/dist/coding/services/declaration.d.ts +11 -0
  55. package/dist/coding/services/declaration.js +114 -0
  56. package/dist/coding/services/note.d.ts +8 -0
  57. package/dist/coding/services/note.js +15 -0
  58. package/dist/coding/services/resolve.d.ts +25 -0
  59. package/dist/coding/services/resolve.js +50 -0
  60. package/dist/coding/services/wording.d.ts +25 -0
  61. package/dist/coding/services/wording.js +70 -0
  62. package/dist/coding-proxy/main.js +24 -4
  63. package/dist/coding-worker/artifact.d.ts +6 -0
  64. package/dist/coding-worker/debug-trace.d.ts +37 -0
  65. package/dist/coding-worker/debug-trace.js +117 -0
  66. package/dist/coding-worker/driver.d.ts +13 -1
  67. package/dist/coding-worker/driver.js +102 -13
  68. package/dist/coding-worker/errors.js +8 -0
  69. package/dist/coding-worker/main.js +10 -2
  70. package/dist/coding-worker/sdk.d.ts +2 -2
  71. package/dist/coding-worker/sdk.js +7 -2
  72. package/dist/coding-worker/types.d.ts +3 -0
  73. package/dist/config/providers.d.ts +66 -0
  74. package/dist/config/providers.js +137 -0
  75. package/dist/core/attribution.d.ts +101 -0
  76. package/dist/core/attribution.js +208 -0
  77. package/dist/core/budget-groups.d.ts +120 -10
  78. package/dist/core/budget-groups.js +133 -24
  79. package/dist/core/budget-wording.d.ts +22 -0
  80. package/dist/core/budget-wording.js +55 -0
  81. package/dist/core/coding-queue.d.ts +3 -0
  82. package/dist/core/coding-queue.js +6 -2
  83. package/dist/core/coding-service-status.d.ts +11 -0
  84. package/dist/core/coding-service-status.js +17 -0
  85. package/dist/core/cost-report.d.ts +88 -0
  86. package/dist/core/cost-report.js +248 -0
  87. package/dist/core/datastores.js +18 -2
  88. package/dist/core/db.d.ts +5 -1
  89. package/dist/core/db.js +8 -2
  90. package/dist/core/dispatch.d.ts +74 -7
  91. package/dist/core/dispatch.js +382 -47
  92. package/dist/core/engine-native.js +44 -14
  93. package/dist/core/glob.d.ts +10 -0
  94. package/dist/core/glob.js +33 -0
  95. package/dist/core/grants.d.ts +86 -0
  96. package/dist/core/grants.js +126 -0
  97. package/dist/core/host-events.d.ts +72 -0
  98. package/dist/core/host-events.js +597 -0
  99. package/dist/core/host-identity-links.d.ts +54 -0
  100. package/dist/core/host-identity-links.js +189 -0
  101. package/dist/core/host-status.d.ts +78 -0
  102. package/dist/core/host-status.js +228 -0
  103. package/dist/core/in-flight-runs.d.ts +8 -0
  104. package/dist/core/in-flight-runs.js +56 -0
  105. package/dist/core/issue-bridge.d.ts +60 -0
  106. package/dist/core/issue-bridge.js +189 -0
  107. package/dist/core/issue-dedupe.d.ts +70 -0
  108. package/dist/core/issue-dedupe.js +255 -0
  109. package/dist/core/issue-events.d.ts +42 -0
  110. package/dist/core/issue-events.js +155 -0
  111. package/dist/core/issue-status.d.ts +29 -0
  112. package/dist/core/issue-status.js +241 -0
  113. package/dist/core/issue-tracker-tools.d.ts +64 -0
  114. package/dist/core/issue-tracker-tools.js +850 -0
  115. package/dist/core/model-usage.d.ts +10 -0
  116. package/dist/core/model-usage.js +24 -0
  117. package/dist/core/provider-wording.d.ts +12 -0
  118. package/dist/core/provider-wording.js +44 -0
  119. package/dist/core/reconciler.d.ts +42 -2
  120. package/dist/core/reconciler.js +97 -2
  121. package/dist/core/repo-access.d.ts +99 -0
  122. package/dist/core/repo-access.js +136 -0
  123. package/dist/core/review-host-checks.d.ts +11 -0
  124. package/dist/core/review-host-checks.js +41 -0
  125. package/dist/core/review-host-tools.d.ts +47 -0
  126. package/dist/core/review-host-tools.js +354 -0
  127. package/dist/core/run-heartbeat.d.ts +27 -0
  128. package/dist/core/run-heartbeat.js +54 -0
  129. package/dist/core/run-pricing.d.ts +61 -0
  130. package/dist/core/run-pricing.js +56 -0
  131. package/dist/core/runner.d.ts +33 -8
  132. package/dist/core/runner.js +410 -62
  133. package/dist/core/scheduler.d.ts +4 -1
  134. package/dist/core/scheduler.js +3 -2
  135. package/dist/core/secrets.d.ts +11 -2
  136. package/dist/core/secrets.js +25 -6
  137. package/dist/core/self-defects.d.ts +80 -0
  138. package/dist/core/self-defects.js +180 -0
  139. package/dist/core/subagent-memory-tools.d.ts +1 -1
  140. package/dist/core/subagent-memory-tools.js +16 -3
  141. package/dist/core/tool-admin.d.ts +81 -0
  142. package/dist/core/tool-admin.js +129 -0
  143. package/dist/core/tool-names.d.ts +42 -0
  144. package/dist/core/tool-names.js +67 -0
  145. package/dist/core/untrusted-content.d.ts +32 -0
  146. package/dist/core/untrusted-content.js +72 -0
  147. package/dist/core/webhooks.d.ts +17 -2
  148. package/dist/core/webhooks.js +42 -3
  149. package/dist/generated/prisma/browser.d.ts +166 -0
  150. package/dist/generated/prisma/client.d.ts +166 -0
  151. package/dist/generated/prisma/commonInputTypes.d.ts +152 -52
  152. package/dist/generated/prisma/enums.d.ts +13 -0
  153. package/dist/generated/prisma/enums.js +12 -1
  154. package/dist/generated/prisma/internal/class.d.ts +242 -0
  155. package/dist/generated/prisma/internal/class.js +4 -4
  156. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2571 -577
  157. package/dist/generated/prisma/internal/prismaNamespace.js +312 -6
  158. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +328 -0
  159. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +312 -6
  160. package/dist/generated/prisma/models/Agent.d.ts +682 -1
  161. package/dist/generated/prisma/models/AgentIssueProject.d.ts +1838 -0
  162. package/dist/generated/prisma/models/AgentIssueProject.js +1 -0
  163. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  164. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  165. package/dist/generated/prisma/models/AgentTool.d.ts +95 -1
  166. package/dist/generated/prisma/models/AuthUser.d.ts +56 -1
  167. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +258 -7
  168. package/dist/generated/prisma/models/CodingProxySession.d.ts +195 -2
  169. package/dist/generated/prisma/models/CodingRun.d.ts +1405 -95
  170. package/dist/generated/prisma/models/CodingRunServiceStatus.d.ts +1404 -0
  171. package/dist/generated/prisma/models/CodingRunServiceStatus.js +1 -0
  172. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  173. package/dist/generated/prisma/models/CodingService.js +1 -0
  174. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  175. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  176. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  177. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  178. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  179. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  180. package/dist/generated/prisma/models/IssueFingerprint.d.ts +1183 -0
  181. package/dist/generated/prisma/models/IssueFingerprint.js +1 -0
  182. package/dist/generated/prisma/models/IssuePullRequest.d.ts +1255 -0
  183. package/dist/generated/prisma/models/IssuePullRequest.js +1 -0
  184. package/dist/generated/prisma/models/ModelCatalogEntry.d.ts +1322 -0
  185. package/dist/generated/prisma/models/ModelCatalogEntry.js +1 -0
  186. package/dist/generated/prisma/models/Principal.d.ts +455 -0
  187. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  188. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  189. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  190. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  191. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  192. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  193. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  194. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  195. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  196. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  197. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  198. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  199. package/dist/generated/prisma/models/Run.d.ts +1402 -82
  200. package/dist/generated/prisma/models/RunAttribution.d.ts +1259 -0
  201. package/dist/generated/prisma/models/RunAttribution.js +1 -0
  202. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  203. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  204. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  205. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  206. package/dist/generated/prisma/models/RunIssueStatus.d.ts +1199 -0
  207. package/dist/generated/prisma/models/RunIssueStatus.js +1 -0
  208. package/dist/generated/prisma/models/RunModelUsage.d.ts +1316 -0
  209. package/dist/generated/prisma/models/RunModelUsage.js +1 -0
  210. package/dist/generated/prisma/models/Tool.d.ts +15 -3
  211. package/dist/generated/prisma/models/WorkItem.d.ts +1408 -0
  212. package/dist/generated/prisma/models/WorkItem.js +1 -0
  213. package/dist/generated/prisma/models.d.ts +22 -0
  214. package/dist/help/build.d.ts +1 -0
  215. package/dist/help/build.js +9 -0
  216. package/dist/help/catalog.d.ts +24 -0
  217. package/dist/help/catalog.js +160 -0
  218. package/dist/help/cli.d.ts +2 -0
  219. package/dist/help/cli.js +65 -0
  220. package/dist/help/runtime.d.ts +3 -0
  221. package/dist/help/runtime.js +44 -0
  222. package/dist/help/search.d.ts +9 -0
  223. package/dist/help/search.js +104 -0
  224. package/dist/help-index.json +999 -0
  225. package/dist/import/cli-args.js +3 -2
  226. package/dist/import/create.d.ts +5 -0
  227. package/dist/import/create.js +67 -13
  228. package/dist/import/index.js +19 -9
  229. package/dist/import/neutral-schema.d.ts +18 -18
  230. package/dist/knowledge/check.d.ts +13 -0
  231. package/dist/knowledge/check.js +69 -0
  232. package/dist/knowledge/cli.d.ts +14 -0
  233. package/dist/knowledge/cli.js +67 -0
  234. package/dist/knowledge/concept.d.ts +54 -0
  235. package/dist/knowledge/concept.js +78 -0
  236. package/dist/knowledge/note.d.ts +11 -0
  237. package/dist/knowledge/note.js +39 -0
  238. package/dist/knowledge/relevance.d.ts +11 -0
  239. package/dist/knowledge/relevance.js +14 -0
  240. package/dist/knowledge/span-hash.d.ts +3 -0
  241. package/dist/knowledge/span-hash.js +16 -0
  242. package/dist/mcp/auth/access.d.ts +72 -0
  243. package/dist/mcp/auth/access.js +58 -0
  244. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  245. package/dist/mcp/auth/grants-cli.js +518 -0
  246. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  247. package/dist/mcp/auth/host-account-cli.js +47 -0
  248. package/dist/mcp/auth/ownership.d.ts +25 -51
  249. package/dist/mcp/auth/ownership.js +19 -14
  250. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  251. package/dist/mcp/auth/repo-authorization.js +51 -0
  252. package/dist/mcp/auth/resource-server.d.ts +33 -2
  253. package/dist/mcp/auth/resource-server.js +99 -3
  254. package/dist/mcp/auth/self-hosted/browser.js +2 -2
  255. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  256. package/dist/mcp/auth/self-hosted/credentials.d.ts +23 -5
  257. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  258. package/dist/mcp/auth/self-hosted/session.d.ts +7 -6
  259. package/dist/mcp/context.d.ts +30 -1
  260. package/dist/mcp/errors.d.ts +25 -6
  261. package/dist/mcp/errors.js +98 -0
  262. package/dist/mcp/host-events/deliveries.d.ts +9 -0
  263. package/dist/mcp/host-events/deliveries.js +17 -0
  264. package/dist/mcp/host-events/github-ingress.d.ts +38 -0
  265. package/dist/mcp/host-events/github-ingress.js +83 -0
  266. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  267. package/dist/mcp/host-events/github-user-callback.js +50 -0
  268. package/dist/mcp/host-events/jira-ingress.d.ts +29 -0
  269. package/dist/mcp/host-events/jira-ingress.js +92 -0
  270. package/dist/mcp/index.d.ts +10 -1
  271. package/dist/mcp/index.js +187 -19
  272. package/dist/mcp/server.js +32 -11
  273. package/dist/mcp/tools/agents.js +519 -50
  274. package/dist/mcp/tools/budget-groups.js +3 -3
  275. package/dist/mcp/tools/cost-report.d.ts +8 -0
  276. package/dist/mcp/tools/cost-report.js +60 -0
  277. package/dist/mcp/tools/datastore.js +22 -15
  278. package/dist/mcp/tools/grants.d.ts +2 -0
  279. package/dist/mcp/tools/grants.js +239 -0
  280. package/dist/mcp/tools/help.d.ts +5 -0
  281. package/dist/mcp/tools/help.js +67 -0
  282. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  283. package/dist/mcp/tools/host-accounts.js +114 -0
  284. package/dist/mcp/tools/issue-projects.d.ts +2 -0
  285. package/dist/mcp/tools/issue-projects.js +238 -0
  286. package/dist/mcp/tools/memory.d.ts +7 -1
  287. package/dist/mcp/tools/memory.js +5 -5
  288. package/dist/mcp/tools/model-catalog.d.ts +22 -0
  289. package/dist/mcp/tools/model-catalog.js +423 -0
  290. package/dist/mcp/tools/repositories.d.ts +2 -0
  291. package/dist/mcp/tools/repositories.js +182 -0
  292. package/dist/mcp/tools/runs.d.ts +6 -0
  293. package/dist/mcp/tools/runs.js +60 -6
  294. package/dist/mcp/tools/scheduling.js +3 -6
  295. package/dist/mcp/tools/secrets.js +18 -6
  296. package/dist/mcp/tools/services.d.ts +2 -0
  297. package/dist/mcp/tools/services.js +222 -0
  298. package/dist/mcp/tools/subagents.js +52 -16
  299. package/dist/mcp/tools/tools.d.ts +41 -0
  300. package/dist/mcp/tools/tools.js +201 -40
  301. package/dist/mcp/tools/trigger.js +65 -7
  302. package/dist/mcp/tools/webhooks.js +15 -4
  303. package/dist/mcp/transport/streamable-http.d.ts +15 -0
  304. package/dist/mcp/transport/streamable-http.js +55 -3
  305. package/dist/mcp/webhooks/ingress.d.ts +2 -1
  306. package/dist/mcp/webhooks/ingress.js +9 -2
  307. package/dist/providers/auth/delegating.d.ts +19 -0
  308. package/dist/providers/auth/delegating.js +71 -0
  309. package/dist/providers/auth/index.d.ts +2 -0
  310. package/dist/providers/auth/index.js +11 -0
  311. package/dist/providers/auth/self-hosted.d.ts +10 -2
  312. package/dist/providers/auth/self-hosted.js +55 -6
  313. package/dist/providers/auth/types.d.ts +6 -0
  314. package/dist/providers/coding-proxy/memory-ledger.d.ts +4 -1
  315. package/dist/providers/coding-proxy/memory-ledger.js +31 -3
  316. package/dist/providers/coding-proxy/metering.d.ts +6 -1
  317. package/dist/providers/coding-proxy/metering.js +41 -4
  318. package/dist/providers/coding-proxy/prisma-ledger.d.ts +17 -0
  319. package/dist/providers/coding-proxy/prisma-ledger.js +106 -8
  320. package/dist/providers/coding-proxy/proxy.d.ts +25 -2
  321. package/dist/providers/coding-proxy/proxy.js +561 -38
  322. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  323. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  324. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  325. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  326. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  327. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  328. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  329. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  330. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  331. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  332. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  333. package/dist/providers/coding-proxy/registry/store.js +70 -0
  334. package/dist/providers/coding-proxy/runtime.d.ts +17 -0
  335. package/dist/providers/coding-proxy/runtime.js +63 -0
  336. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  337. package/dist/providers/coding-proxy/server.d.ts +11 -0
  338. package/dist/providers/coding-proxy/server.js +163 -0
  339. package/dist/providers/coding-proxy/types.d.ts +33 -1
  340. package/dist/providers/coding-proxy/types.js +12 -1
  341. package/dist/providers/engine/types.d.ts +29 -0
  342. package/dist/providers/executor/build.d.ts +2 -2
  343. package/dist/providers/executor/composition.d.ts +3 -0
  344. package/dist/providers/executor/composition.js +28 -1
  345. package/dist/providers/executor/container.d.ts +134 -4
  346. package/dist/providers/executor/container.js +394 -37
  347. package/dist/providers/executor/dbos.d.ts +4 -3
  348. package/dist/providers/executor/dbos.js +7 -5
  349. package/dist/providers/executor/in-process.d.ts +2 -3
  350. package/dist/providers/executor/routing.d.ts +13 -0
  351. package/dist/providers/executor/routing.js +18 -0
  352. package/dist/providers/executor/types.d.ts +34 -0
  353. package/dist/providers/issue-tracker/adf.d.ts +31 -0
  354. package/dist/providers/issue-tracker/adf.js +181 -0
  355. package/dist/providers/issue-tracker/index.d.ts +5 -0
  356. package/dist/providers/issue-tracker/index.js +12 -0
  357. package/dist/providers/issue-tracker/jira-client.d.ts +41 -0
  358. package/dist/providers/issue-tracker/jira-client.js +151 -0
  359. package/dist/providers/issue-tracker/jira-events.d.ts +3 -0
  360. package/dist/providers/issue-tracker/jira-events.js +98 -0
  361. package/dist/providers/issue-tracker/jira.d.ts +116 -0
  362. package/dist/providers/issue-tracker/jira.js +502 -0
  363. package/dist/providers/issue-tracker/types.d.ts +269 -0
  364. package/dist/providers/issue-tracker/types.js +16 -0
  365. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  366. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  367. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  368. package/dist/providers/jobs/collect-prune.js +27 -0
  369. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  370. package/dist/providers/jobs/docker-isolation.js +213 -22
  371. package/dist/providers/jobs/docker-services.d.ts +35 -0
  372. package/dist/providers/jobs/docker-services.js +191 -0
  373. package/dist/providers/jobs/docker.d.ts +53 -2
  374. package/dist/providers/jobs/docker.js +307 -32
  375. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  376. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  377. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  378. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  379. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  380. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  381. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  382. package/dist/providers/jobs/kubernetes.d.ts +24 -2
  383. package/dist/providers/jobs/kubernetes.js +153 -22
  384. package/dist/providers/jobs/service-state.d.ts +22 -0
  385. package/dist/providers/jobs/service-state.js +17 -0
  386. package/dist/providers/jobs/types.d.ts +18 -0
  387. package/dist/providers/llm/anthropic.d.ts +3 -3
  388. package/dist/providers/llm/anthropic.js +3 -5
  389. package/dist/providers/llm/bedrock.d.ts +3 -3
  390. package/dist/providers/llm/bedrock.js +3 -8
  391. package/dist/providers/llm/catalog-lookup.d.ts +10 -0
  392. package/dist/providers/llm/catalog-lookup.js +15 -0
  393. package/dist/providers/llm/catalog-shipped.d.ts +18 -0
  394. package/dist/providers/llm/catalog-shipped.js +197 -0
  395. package/dist/providers/llm/catalog-store.d.ts +58 -0
  396. package/dist/providers/llm/catalog-store.js +138 -0
  397. package/dist/providers/llm/catalog-types.d.ts +66 -0
  398. package/dist/providers/llm/catalog-types.js +64 -0
  399. package/dist/providers/llm/catalog.d.ts +61 -0
  400. package/dist/providers/llm/catalog.js +147 -0
  401. package/dist/providers/llm/claude-messages.d.ts +5 -1
  402. package/dist/providers/llm/claude-messages.js +1 -0
  403. package/dist/providers/llm/claude-provider.d.ts +10 -12
  404. package/dist/providers/llm/claude-provider.js +15 -6
  405. package/dist/providers/llm/index.d.ts +9 -6
  406. package/dist/providers/llm/index.js +8 -5
  407. package/dist/providers/llm/openai.d.ts +14 -5
  408. package/dist/providers/llm/openai.js +24 -14
  409. package/dist/providers/llm/pricing-core.d.ts +5 -3
  410. package/dist/providers/llm/registration.js +8 -12
  411. package/dist/providers/llm/routing.d.ts +21 -11
  412. package/dist/providers/llm/routing.js +47 -13
  413. package/dist/providers/llm/types.d.ts +12 -0
  414. package/dist/providers/llm/types.js +8 -1
  415. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  416. package/dist/providers/review-host/diff-lines.js +59 -0
  417. package/dist/providers/review-host/github-events.d.ts +6 -0
  418. package/dist/providers/review-host/github-events.js +226 -0
  419. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  420. package/dist/providers/review-host/github-user-auth.js +128 -0
  421. package/dist/providers/review-host/github.d.ts +57 -0
  422. package/dist/providers/review-host/github.js +568 -0
  423. package/dist/providers/review-host/index.d.ts +12 -0
  424. package/dist/providers/review-host/index.js +30 -0
  425. package/dist/providers/review-host/review-format.d.ts +19 -0
  426. package/dist/providers/review-host/review-format.js +59 -0
  427. package/dist/providers/review-host/types.d.ts +309 -0
  428. package/dist/providers/review-host/types.js +24 -0
  429. package/dist/providers/vcs/git.d.ts +16 -6
  430. package/dist/providers/vcs/git.js +78 -34
  431. package/dist/providers/vcs/github.d.ts +94 -3
  432. package/dist/providers/vcs/github.js +223 -17
  433. package/dist/providers/vcs/types.d.ts +48 -4
  434. package/dist/quickstart/index.d.ts +2 -0
  435. package/dist/quickstart/index.js +36 -8
  436. package/dist/sandbox/fetch-policy.d.ts +20 -2
  437. package/dist/sandbox/fetch-policy.js +64 -3
  438. package/dist/sandbox/host-functions.d.ts +9 -1
  439. package/dist/sandbox/host-functions.js +12 -5
  440. package/dist/serve.js +8 -2
  441. package/dist/viewer/api-schema.d.ts +2757 -0
  442. package/dist/viewer/api-schema.js +165 -0
  443. package/dist/viewer/build-schemas.d.ts +2 -0
  444. package/dist/viewer/build-schemas.js +18 -0
  445. package/dist/viewer/event-bus.d.ts +38 -0
  446. package/dist/viewer/event-bus.js +232 -0
  447. package/dist/viewer/graph.d.ts +40 -0
  448. package/dist/viewer/graph.js +243 -0
  449. package/dist/viewer/http.d.ts +30 -0
  450. package/dist/viewer/http.js +133 -0
  451. package/dist/viewer/run-detail.d.ts +4 -0
  452. package/dist/viewer/run-detail.js +61 -0
  453. package/dist/wardby-bin.js +11 -0
  454. package/docs/README.md +40 -0
  455. package/docs/agent-recipes.md +383 -0
  456. package/docs/architecture-runtime.md +90 -0
  457. package/docs/assets/brand/wardby-icon-512.png +0 -0
  458. package/docs/assets/brand/wardby-icon.svg +16 -0
  459. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  460. package/docs/assets/brand/wardby-mascot.png +0 -0
  461. package/docs/assets/brand/wardby-mascot.svg +5 -0
  462. package/docs/assets/wardby-workflow.svg +106 -0
  463. package/docs/code-review-agents.md +508 -0
  464. package/docs/coding-agent-setup.md +175 -0
  465. package/docs/coding-packages.md +455 -0
  466. package/docs/coding-services.md +300 -0
  467. package/docs/coding-worker-byo-images.md +98 -0
  468. package/docs/coding-worker-isolation.md +1068 -0
  469. package/docs/getting-started-gke.md +632 -0
  470. package/docs/getting-started-identity-provider.md +319 -0
  471. package/docs/getting-started.md +147 -0
  472. package/docs/jira-agents.md +649 -0
  473. package/docs/knowledge.md +387 -0
  474. package/docs/models.md +221 -0
  475. package/docs/observability.md +53 -0
  476. package/docs/release-verification.md +66 -0
  477. package/docs/security-deployment.md +667 -0
  478. package/docs/viewer-api.md +142 -0
  479. package/help/admin-viewer.md +39 -0
  480. package/help/agent-recipes.md +173 -0
  481. package/help/architecture-agent.md +189 -0
  482. package/help/builder-agent.md +80 -0
  483. package/help/code-review-agents.md +37 -0
  484. package/help/coding-packages.md +31 -0
  485. package/help/coding-services.md +71 -0
  486. package/help/cost-attribution.md +67 -0
  487. package/help/creating-agents.md +90 -0
  488. package/help/deploy-gke.md +45 -0
  489. package/help/deployment-targets.md +39 -0
  490. package/help/errors/budget-group-exhausted.md +25 -0
  491. package/help/errors/docker-isolation-unsupported.md +26 -0
  492. package/help/errors/model-unavailable.md +63 -0
  493. package/help/errors/protected-path.md +45 -0
  494. package/help/errors/repo-access.md +27 -0
  495. package/help/errors/service-declaration-invalid.md +27 -0
  496. package/help/errors/service-declaration-unavailable.md +25 -0
  497. package/help/errors/service-launcher-unsupported.md +30 -0
  498. package/help/errors/service-not-allowed.md +27 -0
  499. package/help/errors/service-unknown.md +23 -0
  500. package/help/errors/service-unready.md +49 -0
  501. package/help/getting-started.md +32 -0
  502. package/help/github.md +48 -0
  503. package/help/identity-and-access.md +44 -0
  504. package/help/jira.md +135 -0
  505. package/help/knowledge.md +47 -0
  506. package/help/mcp.md +30 -0
  507. package/help/models.md +90 -0
  508. package/help/native-capabilities.md +30 -0
  509. package/help/observability.md +41 -0
  510. package/help/operating-agents.md +36 -0
  511. package/help/security.md +27 -0
  512. package/help/troubleshooting/budgets.md +32 -0
  513. package/help/troubleshooting/coding-workers.md +47 -0
  514. package/help/troubleshooting/repository-access.md +27 -0
  515. package/package.json +14 -3
  516. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  517. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  518. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  519. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  520. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  521. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  522. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  523. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  524. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  525. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  526. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  527. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  528. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  529. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  530. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  531. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  532. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  533. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  534. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  535. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  536. package/prisma/migrations/20260930000000_jira_issue_projects/migration.sql +34 -0
  537. package/prisma/migrations/20261001000000_jira_phase2_allowlists/migration.sql +3 -0
  538. package/prisma/migrations/20261001010000_jira_link_types_allowlist/migration.sql +2 -0
  539. package/prisma/migrations/20261002000000_jira_coding_bridge/migration.sql +28 -0
  540. package/prisma/migrations/20261002010000_jira_issue_creation/migration.sql +25 -0
  541. package/prisma/migrations/20261003000000_issue_cost_attribution/migration.sql +56 -0
  542. package/prisma/migrations/20261003010000_coding_run_service_status/migration.sql +23 -0
  543. package/prisma/migrations/20261003020000_viewer_notify/migration.sql +54 -0
  544. package/prisma/migrations/20261003030000_viewer_notify_fixes/migration.sql +47 -0
  545. package/prisma/migrations/20261003040000_viewer_indexes/migration.sql +12 -0
  546. package/prisma/migrations/20261004000000_model_catalog/migration.sql +26 -0
  547. package/prisma/schema.prisma +663 -21
  548. package/dist/mcp/tools/models.d.ts +0 -8
  549. package/dist/mcp/tools/models.js +0 -15
  550. package/dist/providers/llm/pricing-anthropic.d.ts +0 -4
  551. package/dist/providers/llm/pricing-anthropic.js +0 -30
  552. package/dist/providers/llm/pricing-bedrock-claude.d.ts +0 -12
  553. package/dist/providers/llm/pricing-bedrock-claude.js +0 -37
  554. package/dist/providers/llm/pricing.d.ts +0 -30
  555. package/dist/providers/llm/pricing.js +0 -74
@@ -39,10 +39,12 @@ export type RunMinAggregateOutputType = {
39
39
  heartbeatAt: Date | null;
40
40
  finalText: string | null;
41
41
  turns: number | null;
42
+ pricingVersion: string | null;
42
43
  executionManaged: boolean | null;
43
44
  executionBackend: string | null;
44
45
  parentRunId: string | null;
45
46
  taskOverride: string | null;
47
+ triggeredById: string | null;
46
48
  };
47
49
  export type RunMaxAggregateOutputType = {
48
50
  id: string | null;
@@ -58,10 +60,12 @@ export type RunMaxAggregateOutputType = {
58
60
  heartbeatAt: Date | null;
59
61
  finalText: string | null;
60
62
  turns: number | null;
63
+ pricingVersion: string | null;
61
64
  executionManaged: boolean | null;
62
65
  executionBackend: string | null;
63
66
  parentRunId: string | null;
64
67
  taskOverride: string | null;
68
+ triggeredById: string | null;
65
69
  };
66
70
  export type RunCountAggregateOutputType = {
67
71
  id: number;
@@ -77,11 +81,14 @@ export type RunCountAggregateOutputType = {
77
81
  heartbeatAt: number;
78
82
  finalText: number;
79
83
  turns: number;
84
+ pricingVersion: number;
85
+ pricingSnapshot: number;
80
86
  executionManaged: number;
81
87
  executionBackend: number;
82
88
  parentRunId: number;
83
89
  grantedParentMemoryKeys: number;
84
90
  taskOverride: number;
91
+ triggeredById: number;
85
92
  _all: number;
86
93
  };
87
94
  export type RunAvgAggregateInputType = {
@@ -110,10 +117,12 @@ export type RunMinAggregateInputType = {
110
117
  heartbeatAt?: true;
111
118
  finalText?: true;
112
119
  turns?: true;
120
+ pricingVersion?: true;
113
121
  executionManaged?: true;
114
122
  executionBackend?: true;
115
123
  parentRunId?: true;
116
124
  taskOverride?: true;
125
+ triggeredById?: true;
117
126
  };
118
127
  export type RunMaxAggregateInputType = {
119
128
  id?: true;
@@ -129,10 +138,12 @@ export type RunMaxAggregateInputType = {
129
138
  heartbeatAt?: true;
130
139
  finalText?: true;
131
140
  turns?: true;
141
+ pricingVersion?: true;
132
142
  executionManaged?: true;
133
143
  executionBackend?: true;
134
144
  parentRunId?: true;
135
145
  taskOverride?: true;
146
+ triggeredById?: true;
136
147
  };
137
148
  export type RunCountAggregateInputType = {
138
149
  id?: true;
@@ -148,11 +159,14 @@ export type RunCountAggregateInputType = {
148
159
  heartbeatAt?: true;
149
160
  finalText?: true;
150
161
  turns?: true;
162
+ pricingVersion?: true;
163
+ pricingSnapshot?: true;
151
164
  executionManaged?: true;
152
165
  executionBackend?: true;
153
166
  parentRunId?: true;
154
167
  grantedParentMemoryKeys?: true;
155
168
  taskOverride?: true;
169
+ triggeredById?: true;
156
170
  _all?: true;
157
171
  };
158
172
  export type RunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -245,11 +259,14 @@ export type RunGroupByOutputType = {
245
259
  heartbeatAt: Date | null;
246
260
  finalText: string | null;
247
261
  turns: number;
262
+ pricingVersion: string | null;
263
+ pricingSnapshot: runtime.JsonValue | null;
248
264
  executionManaged: boolean;
249
265
  executionBackend: string | null;
250
266
  parentRunId: string | null;
251
267
  grantedParentMemoryKeys: string[];
252
268
  taskOverride: string | null;
269
+ triggeredById: string | null;
253
270
  _count: RunCountAggregateOutputType | null;
254
271
  _avg: RunAvgAggregateOutputType | null;
255
272
  _sum: RunSumAggregateOutputType | null;
@@ -276,13 +293,22 @@ export type RunWhereInput = {
276
293
  heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
277
294
  finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
278
295
  turns?: Prisma.IntFilter<"Run"> | number;
296
+ pricingVersion?: Prisma.StringNullableFilter<"Run"> | string | null;
297
+ pricingSnapshot?: Prisma.JsonNullableFilter<"Run">;
279
298
  executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
280
299
  executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
281
300
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
282
301
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
283
302
  taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
303
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
284
304
  agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
285
305
  codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
306
+ hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
307
+ hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
308
+ issueStatus?: Prisma.XOR<Prisma.RunIssueStatusNullableScalarRelationFilter, Prisma.RunIssueStatusWhereInput> | null;
309
+ attribution?: Prisma.XOR<Prisma.RunAttributionNullableScalarRelationFilter, Prisma.RunAttributionWhereInput> | null;
310
+ modelUsage?: Prisma.RunModelUsageListRelationFilter;
311
+ serviceStatuses?: Prisma.CodingRunServiceStatusListRelationFilter;
286
312
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
287
313
  childRuns?: Prisma.RunListRelationFilter;
288
314
  };
@@ -300,13 +326,22 @@ export type RunOrderByWithRelationInput = {
300
326
  heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
301
327
  finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
302
328
  turns?: Prisma.SortOrder;
329
+ pricingVersion?: Prisma.SortOrderInput | Prisma.SortOrder;
330
+ pricingSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
303
331
  executionManaged?: Prisma.SortOrder;
304
332
  executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
305
333
  parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
306
334
  grantedParentMemoryKeys?: Prisma.SortOrder;
307
335
  taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
336
+ triggeredById?: Prisma.SortOrderInput | Prisma.SortOrder;
308
337
  agent?: Prisma.AgentOrderByWithRelationInput;
309
338
  codingRun?: Prisma.CodingRunOrderByWithRelationInput;
339
+ hostCheck?: Prisma.RunHostCheckOrderByWithRelationInput;
340
+ hostStatus?: Prisma.RunHostStatusOrderByWithRelationInput;
341
+ issueStatus?: Prisma.RunIssueStatusOrderByWithRelationInput;
342
+ attribution?: Prisma.RunAttributionOrderByWithRelationInput;
343
+ modelUsage?: Prisma.RunModelUsageOrderByRelationAggregateInput;
344
+ serviceStatuses?: Prisma.CodingRunServiceStatusOrderByRelationAggregateInput;
310
345
  parentRun?: Prisma.RunOrderByWithRelationInput;
311
346
  childRuns?: Prisma.RunOrderByRelationAggregateInput;
312
347
  };
@@ -327,13 +362,22 @@ export type RunWhereUniqueInput = Prisma.AtLeast<{
327
362
  heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
328
363
  finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
329
364
  turns?: Prisma.IntFilter<"Run"> | number;
365
+ pricingVersion?: Prisma.StringNullableFilter<"Run"> | string | null;
366
+ pricingSnapshot?: Prisma.JsonNullableFilter<"Run">;
330
367
  executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
331
368
  executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
332
369
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
333
370
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
334
371
  taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
372
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
335
373
  agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
336
374
  codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
375
+ hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
376
+ hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
377
+ issueStatus?: Prisma.XOR<Prisma.RunIssueStatusNullableScalarRelationFilter, Prisma.RunIssueStatusWhereInput> | null;
378
+ attribution?: Prisma.XOR<Prisma.RunAttributionNullableScalarRelationFilter, Prisma.RunAttributionWhereInput> | null;
379
+ modelUsage?: Prisma.RunModelUsageListRelationFilter;
380
+ serviceStatuses?: Prisma.CodingRunServiceStatusListRelationFilter;
337
381
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
338
382
  childRuns?: Prisma.RunListRelationFilter;
339
383
  }, "id">;
@@ -351,11 +395,14 @@ export type RunOrderByWithAggregationInput = {
351
395
  heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
352
396
  finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
353
397
  turns?: Prisma.SortOrder;
398
+ pricingVersion?: Prisma.SortOrderInput | Prisma.SortOrder;
399
+ pricingSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
354
400
  executionManaged?: Prisma.SortOrder;
355
401
  executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
356
402
  parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
357
403
  grantedParentMemoryKeys?: Prisma.SortOrder;
358
404
  taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
405
+ triggeredById?: Prisma.SortOrderInput | Prisma.SortOrder;
359
406
  _count?: Prisma.RunCountOrderByAggregateInput;
360
407
  _avg?: Prisma.RunAvgOrderByAggregateInput;
361
408
  _max?: Prisma.RunMaxOrderByAggregateInput;
@@ -379,11 +426,14 @@ export type RunScalarWhereWithAggregatesInput = {
379
426
  heartbeatAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Run"> | Date | string | null;
380
427
  finalText?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
381
428
  turns?: Prisma.IntWithAggregatesFilter<"Run"> | number;
429
+ pricingVersion?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
430
+ pricingSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"Run">;
382
431
  executionManaged?: Prisma.BoolWithAggregatesFilter<"Run"> | boolean;
383
432
  executionBackend?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
384
433
  parentRunId?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
385
434
  grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
386
435
  taskOverride?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
436
+ triggeredById?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
387
437
  };
388
438
  export type RunCreateInput = {
389
439
  id?: string;
@@ -398,12 +448,21 @@ export type RunCreateInput = {
398
448
  heartbeatAt?: Date | string | null;
399
449
  finalText?: string | null;
400
450
  turns?: number;
451
+ pricingVersion?: string | null;
452
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
401
453
  executionManaged?: boolean;
402
454
  executionBackend?: string | null;
403
455
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
404
456
  taskOverride?: string | null;
457
+ triggeredById?: string | null;
405
458
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
406
459
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
460
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
461
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
462
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
463
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
464
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
465
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
407
466
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
408
467
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
409
468
  };
@@ -421,12 +480,21 @@ export type RunUncheckedCreateInput = {
421
480
  heartbeatAt?: Date | string | null;
422
481
  finalText?: string | null;
423
482
  turns?: number;
483
+ pricingVersion?: string | null;
484
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
424
485
  executionManaged?: boolean;
425
486
  executionBackend?: string | null;
426
487
  parentRunId?: string | null;
427
488
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
428
489
  taskOverride?: string | null;
490
+ triggeredById?: string | null;
429
491
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
492
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
493
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
494
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
495
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
496
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
497
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
430
498
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
431
499
  };
432
500
  export type RunUpdateInput = {
@@ -442,12 +510,21 @@ export type RunUpdateInput = {
442
510
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
511
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
444
512
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
513
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
445
515
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
446
516
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
447
517
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
448
518
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
519
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
449
520
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
450
521
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
522
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
523
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
524
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
525
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
526
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
527
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
451
528
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
452
529
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
453
530
  };
@@ -465,12 +542,21 @@ export type RunUncheckedUpdateInput = {
465
542
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
466
543
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
467
544
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
545
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
546
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
468
547
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
469
548
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
470
549
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
550
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
472
551
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
552
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
553
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
554
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
555
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
556
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
557
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
558
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
559
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
474
560
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
475
561
  };
476
562
  export type RunCreateManyInput = {
@@ -487,11 +573,14 @@ export type RunCreateManyInput = {
487
573
  heartbeatAt?: Date | string | null;
488
574
  finalText?: string | null;
489
575
  turns?: number;
576
+ pricingVersion?: string | null;
577
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
490
578
  executionManaged?: boolean;
491
579
  executionBackend?: string | null;
492
580
  parentRunId?: string | null;
493
581
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
494
582
  taskOverride?: string | null;
583
+ triggeredById?: string | null;
495
584
  };
496
585
  export type RunUpdateManyMutationInput = {
497
586
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -506,10 +595,13 @@ export type RunUpdateManyMutationInput = {
506
595
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
507
596
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
508
597
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
598
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
599
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
509
600
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
510
601
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
511
602
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
512
603
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
604
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
513
605
  };
514
606
  export type RunUncheckedUpdateManyInput = {
515
607
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -525,11 +617,14 @@ export type RunUncheckedUpdateManyInput = {
525
617
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
526
618
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
619
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
620
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
621
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
528
622
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
529
623
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
624
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
625
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
532
626
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
627
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
533
628
  };
534
629
  export type RunListRelationFilter = {
535
630
  every?: Prisma.RunWhereInput;
@@ -564,11 +659,14 @@ export type RunCountOrderByAggregateInput = {
564
659
  heartbeatAt?: Prisma.SortOrder;
565
660
  finalText?: Prisma.SortOrder;
566
661
  turns?: Prisma.SortOrder;
662
+ pricingVersion?: Prisma.SortOrder;
663
+ pricingSnapshot?: Prisma.SortOrder;
567
664
  executionManaged?: Prisma.SortOrder;
568
665
  executionBackend?: Prisma.SortOrder;
569
666
  parentRunId?: Prisma.SortOrder;
570
667
  grantedParentMemoryKeys?: Prisma.SortOrder;
571
668
  taskOverride?: Prisma.SortOrder;
669
+ triggeredById?: Prisma.SortOrder;
572
670
  };
573
671
  export type RunAvgOrderByAggregateInput = {
574
672
  tokensIn?: Prisma.SortOrder;
@@ -590,10 +688,12 @@ export type RunMaxOrderByAggregateInput = {
590
688
  heartbeatAt?: Prisma.SortOrder;
591
689
  finalText?: Prisma.SortOrder;
592
690
  turns?: Prisma.SortOrder;
691
+ pricingVersion?: Prisma.SortOrder;
593
692
  executionManaged?: Prisma.SortOrder;
594
693
  executionBackend?: Prisma.SortOrder;
595
694
  parentRunId?: Prisma.SortOrder;
596
695
  taskOverride?: Prisma.SortOrder;
696
+ triggeredById?: Prisma.SortOrder;
597
697
  };
598
698
  export type RunMinOrderByAggregateInput = {
599
699
  id?: Prisma.SortOrder;
@@ -609,10 +709,12 @@ export type RunMinOrderByAggregateInput = {
609
709
  heartbeatAt?: Prisma.SortOrder;
610
710
  finalText?: Prisma.SortOrder;
611
711
  turns?: Prisma.SortOrder;
712
+ pricingVersion?: Prisma.SortOrder;
612
713
  executionManaged?: Prisma.SortOrder;
613
714
  executionBackend?: Prisma.SortOrder;
614
715
  parentRunId?: Prisma.SortOrder;
615
716
  taskOverride?: Prisma.SortOrder;
717
+ triggeredById?: Prisma.SortOrder;
616
718
  };
617
719
  export type RunSumOrderByAggregateInput = {
618
720
  tokensIn?: Prisma.SortOrder;
@@ -739,6 +841,78 @@ export type RunUpdateOneRequiredWithoutCodingRunNestedInput = {
739
841
  connect?: Prisma.RunWhereUniqueInput;
740
842
  update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutCodingRunInput, Prisma.RunUpdateWithoutCodingRunInput>, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
741
843
  };
844
+ export type RunCreateNestedOneWithoutServiceStatusesInput = {
845
+ create?: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
846
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutServiceStatusesInput;
847
+ connect?: Prisma.RunWhereUniqueInput;
848
+ };
849
+ export type RunUpdateOneRequiredWithoutServiceStatusesNestedInput = {
850
+ create?: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
851
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutServiceStatusesInput;
852
+ upsert?: Prisma.RunUpsertWithoutServiceStatusesInput;
853
+ connect?: Prisma.RunWhereUniqueInput;
854
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutServiceStatusesInput, Prisma.RunUpdateWithoutServiceStatusesInput>, Prisma.RunUncheckedUpdateWithoutServiceStatusesInput>;
855
+ };
856
+ export type RunCreateNestedOneWithoutHostCheckInput = {
857
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
858
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
859
+ connect?: Prisma.RunWhereUniqueInput;
860
+ };
861
+ export type RunUpdateOneRequiredWithoutHostCheckNestedInput = {
862
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
863
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
864
+ upsert?: Prisma.RunUpsertWithoutHostCheckInput;
865
+ connect?: Prisma.RunWhereUniqueInput;
866
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostCheckInput, Prisma.RunUpdateWithoutHostCheckInput>, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
867
+ };
868
+ export type RunCreateNestedOneWithoutHostStatusInput = {
869
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
870
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostStatusInput;
871
+ connect?: Prisma.RunWhereUniqueInput;
872
+ };
873
+ export type RunUpdateOneRequiredWithoutHostStatusNestedInput = {
874
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
875
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostStatusInput;
876
+ upsert?: Prisma.RunUpsertWithoutHostStatusInput;
877
+ connect?: Prisma.RunWhereUniqueInput;
878
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostStatusInput, Prisma.RunUpdateWithoutHostStatusInput>, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
879
+ };
880
+ export type RunCreateNestedOneWithoutIssueStatusInput = {
881
+ create?: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
882
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutIssueStatusInput;
883
+ connect?: Prisma.RunWhereUniqueInput;
884
+ };
885
+ export type RunUpdateOneRequiredWithoutIssueStatusNestedInput = {
886
+ create?: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
887
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutIssueStatusInput;
888
+ upsert?: Prisma.RunUpsertWithoutIssueStatusInput;
889
+ connect?: Prisma.RunWhereUniqueInput;
890
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutIssueStatusInput, Prisma.RunUpdateWithoutIssueStatusInput>, Prisma.RunUncheckedUpdateWithoutIssueStatusInput>;
891
+ };
892
+ export type RunCreateNestedOneWithoutAttributionInput = {
893
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
894
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAttributionInput;
895
+ connect?: Prisma.RunWhereUniqueInput;
896
+ };
897
+ export type RunUpdateOneRequiredWithoutAttributionNestedInput = {
898
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
899
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAttributionInput;
900
+ upsert?: Prisma.RunUpsertWithoutAttributionInput;
901
+ connect?: Prisma.RunWhereUniqueInput;
902
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutAttributionInput, Prisma.RunUpdateWithoutAttributionInput>, Prisma.RunUncheckedUpdateWithoutAttributionInput>;
903
+ };
904
+ export type RunCreateNestedOneWithoutModelUsageInput = {
905
+ create?: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
906
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutModelUsageInput;
907
+ connect?: Prisma.RunWhereUniqueInput;
908
+ };
909
+ export type RunUpdateOneRequiredWithoutModelUsageNestedInput = {
910
+ create?: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
911
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutModelUsageInput;
912
+ upsert?: Prisma.RunUpsertWithoutModelUsageInput;
913
+ connect?: Prisma.RunWhereUniqueInput;
914
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutModelUsageInput, Prisma.RunUpdateWithoutModelUsageInput>, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
915
+ };
742
916
  export type RunCreateWithoutAgentInput = {
743
917
  id?: string;
744
918
  status?: $Enums.RunStatus;
@@ -752,11 +926,20 @@ export type RunCreateWithoutAgentInput = {
752
926
  heartbeatAt?: Date | string | null;
753
927
  finalText?: string | null;
754
928
  turns?: number;
929
+ pricingVersion?: string | null;
930
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
755
931
  executionManaged?: boolean;
756
932
  executionBackend?: string | null;
757
933
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
758
934
  taskOverride?: string | null;
935
+ triggeredById?: string | null;
759
936
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
937
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
938
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
939
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
940
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
941
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
942
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
760
943
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
761
944
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
762
945
  };
@@ -773,59 +956,817 @@ export type RunUncheckedCreateWithoutAgentInput = {
773
956
  heartbeatAt?: Date | string | null;
774
957
  finalText?: string | null;
775
958
  turns?: number;
959
+ pricingVersion?: string | null;
960
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
961
+ executionManaged?: boolean;
962
+ executionBackend?: string | null;
963
+ parentRunId?: string | null;
964
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
965
+ taskOverride?: string | null;
966
+ triggeredById?: string | null;
967
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
968
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
969
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
970
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
971
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
972
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
973
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
974
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
975
+ };
976
+ export type RunCreateOrConnectWithoutAgentInput = {
977
+ where: Prisma.RunWhereUniqueInput;
978
+ create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
979
+ };
980
+ export type RunCreateManyAgentInputEnvelope = {
981
+ data: Prisma.RunCreateManyAgentInput | Prisma.RunCreateManyAgentInput[];
982
+ skipDuplicates?: boolean;
983
+ };
984
+ export type RunUpsertWithWhereUniqueWithoutAgentInput = {
985
+ where: Prisma.RunWhereUniqueInput;
986
+ update: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
987
+ create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
988
+ };
989
+ export type RunUpdateWithWhereUniqueWithoutAgentInput = {
990
+ where: Prisma.RunWhereUniqueInput;
991
+ data: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
992
+ };
993
+ export type RunUpdateManyWithWhereWithoutAgentInput = {
994
+ where: Prisma.RunScalarWhereInput;
995
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutAgentInput>;
996
+ };
997
+ export type RunScalarWhereInput = {
998
+ AND?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
999
+ OR?: Prisma.RunScalarWhereInput[];
1000
+ NOT?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
1001
+ id?: Prisma.StringFilter<"Run"> | string;
1002
+ agentId?: Prisma.StringFilter<"Run"> | string;
1003
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
1004
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
1005
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
1006
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
1007
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
1008
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
1009
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
1010
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
1011
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
1012
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
1013
+ turns?: Prisma.IntFilter<"Run"> | number;
1014
+ pricingVersion?: Prisma.StringNullableFilter<"Run"> | string | null;
1015
+ pricingSnapshot?: Prisma.JsonNullableFilter<"Run">;
1016
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
1017
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
1018
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
1019
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
1020
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
1021
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
1022
+ };
1023
+ export type RunCreateWithoutChildRunsInput = {
1024
+ id?: string;
1025
+ status?: $Enums.RunStatus;
1026
+ trigger?: $Enums.RunTrigger;
1027
+ tokensIn?: number;
1028
+ tokensOut?: number;
1029
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1030
+ error?: string | null;
1031
+ startedAt?: Date | string;
1032
+ finishedAt?: Date | string | null;
1033
+ heartbeatAt?: Date | string | null;
1034
+ finalText?: string | null;
1035
+ turns?: number;
1036
+ pricingVersion?: string | null;
1037
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1038
+ executionManaged?: boolean;
1039
+ executionBackend?: string | null;
1040
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1041
+ taskOverride?: string | null;
1042
+ triggeredById?: string | null;
1043
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1044
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1045
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1046
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1047
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1048
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1049
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1050
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1051
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1052
+ };
1053
+ export type RunUncheckedCreateWithoutChildRunsInput = {
1054
+ id?: string;
1055
+ agentId: string;
1056
+ status?: $Enums.RunStatus;
1057
+ trigger?: $Enums.RunTrigger;
1058
+ tokensIn?: number;
1059
+ tokensOut?: number;
1060
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1061
+ error?: string | null;
1062
+ startedAt?: Date | string;
1063
+ finishedAt?: Date | string | null;
1064
+ heartbeatAt?: Date | string | null;
1065
+ finalText?: string | null;
1066
+ turns?: number;
1067
+ pricingVersion?: string | null;
1068
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1069
+ executionManaged?: boolean;
1070
+ executionBackend?: string | null;
1071
+ parentRunId?: string | null;
1072
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1073
+ taskOverride?: string | null;
1074
+ triggeredById?: string | null;
1075
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1076
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1077
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1078
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1079
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1080
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1081
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1082
+ };
1083
+ export type RunCreateOrConnectWithoutChildRunsInput = {
1084
+ where: Prisma.RunWhereUniqueInput;
1085
+ create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
1086
+ };
1087
+ export type RunCreateWithoutParentRunInput = {
1088
+ id?: string;
1089
+ status?: $Enums.RunStatus;
1090
+ trigger?: $Enums.RunTrigger;
1091
+ tokensIn?: number;
1092
+ tokensOut?: number;
1093
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1094
+ error?: string | null;
1095
+ startedAt?: Date | string;
1096
+ finishedAt?: Date | string | null;
1097
+ heartbeatAt?: Date | string | null;
1098
+ finalText?: string | null;
1099
+ turns?: number;
1100
+ pricingVersion?: string | null;
1101
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1102
+ executionManaged?: boolean;
1103
+ executionBackend?: string | null;
1104
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1105
+ taskOverride?: string | null;
1106
+ triggeredById?: string | null;
1107
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1108
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1109
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1110
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1111
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1112
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1113
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1114
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1115
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1116
+ };
1117
+ export type RunUncheckedCreateWithoutParentRunInput = {
1118
+ id?: string;
1119
+ agentId: string;
1120
+ status?: $Enums.RunStatus;
1121
+ trigger?: $Enums.RunTrigger;
1122
+ tokensIn?: number;
1123
+ tokensOut?: number;
1124
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1125
+ error?: string | null;
1126
+ startedAt?: Date | string;
1127
+ finishedAt?: Date | string | null;
1128
+ heartbeatAt?: Date | string | null;
1129
+ finalText?: string | null;
1130
+ turns?: number;
1131
+ pricingVersion?: string | null;
1132
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1133
+ executionManaged?: boolean;
1134
+ executionBackend?: string | null;
1135
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1136
+ taskOverride?: string | null;
1137
+ triggeredById?: string | null;
1138
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1139
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1140
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1141
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1142
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1143
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1144
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1145
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1146
+ };
1147
+ export type RunCreateOrConnectWithoutParentRunInput = {
1148
+ where: Prisma.RunWhereUniqueInput;
1149
+ create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
1150
+ };
1151
+ export type RunCreateManyParentRunInputEnvelope = {
1152
+ data: Prisma.RunCreateManyParentRunInput | Prisma.RunCreateManyParentRunInput[];
1153
+ skipDuplicates?: boolean;
1154
+ };
1155
+ export type RunUpsertWithoutChildRunsInput = {
1156
+ update: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
1157
+ create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
1158
+ where?: Prisma.RunWhereInput;
1159
+ };
1160
+ export type RunUpdateToOneWithWhereWithoutChildRunsInput = {
1161
+ where?: Prisma.RunWhereInput;
1162
+ data: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
1163
+ };
1164
+ export type RunUpdateWithoutChildRunsInput = {
1165
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1166
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1167
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1168
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1169
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1170
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1171
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1172
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1173
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1174
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1175
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1176
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1177
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1178
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1179
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1180
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1181
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1182
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1183
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1184
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1185
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1186
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1187
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1188
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1189
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1190
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1191
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1192
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1193
+ };
1194
+ export type RunUncheckedUpdateWithoutChildRunsInput = {
1195
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1196
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1197
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1198
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1199
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1200
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1201
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1202
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1203
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1204
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1205
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1206
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1207
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1208
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1209
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1210
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1211
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1212
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1213
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1214
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1215
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1216
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1217
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1218
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1219
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1220
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1221
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1222
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1223
+ };
1224
+ export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
1225
+ where: Prisma.RunWhereUniqueInput;
1226
+ update: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
1227
+ create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
1228
+ };
1229
+ export type RunUpdateWithWhereUniqueWithoutParentRunInput = {
1230
+ where: Prisma.RunWhereUniqueInput;
1231
+ data: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
1232
+ };
1233
+ export type RunUpdateManyWithWhereWithoutParentRunInput = {
1234
+ where: Prisma.RunScalarWhereInput;
1235
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutParentRunInput>;
1236
+ };
1237
+ export type RunCreateWithoutCodingRunInput = {
1238
+ id?: string;
1239
+ status?: $Enums.RunStatus;
1240
+ trigger?: $Enums.RunTrigger;
1241
+ tokensIn?: number;
1242
+ tokensOut?: number;
1243
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1244
+ error?: string | null;
1245
+ startedAt?: Date | string;
1246
+ finishedAt?: Date | string | null;
1247
+ heartbeatAt?: Date | string | null;
1248
+ finalText?: string | null;
1249
+ turns?: number;
1250
+ pricingVersion?: string | null;
1251
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1252
+ executionManaged?: boolean;
1253
+ executionBackend?: string | null;
1254
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1255
+ taskOverride?: string | null;
1256
+ triggeredById?: string | null;
1257
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1258
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1259
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1260
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1261
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1262
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1263
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1264
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1265
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1266
+ };
1267
+ export type RunUncheckedCreateWithoutCodingRunInput = {
1268
+ id?: string;
1269
+ agentId: string;
1270
+ status?: $Enums.RunStatus;
1271
+ trigger?: $Enums.RunTrigger;
1272
+ tokensIn?: number;
1273
+ tokensOut?: number;
1274
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1275
+ error?: string | null;
1276
+ startedAt?: Date | string;
1277
+ finishedAt?: Date | string | null;
1278
+ heartbeatAt?: Date | string | null;
1279
+ finalText?: string | null;
1280
+ turns?: number;
1281
+ pricingVersion?: string | null;
1282
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1283
+ executionManaged?: boolean;
1284
+ executionBackend?: string | null;
1285
+ parentRunId?: string | null;
1286
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1287
+ taskOverride?: string | null;
1288
+ triggeredById?: string | null;
1289
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1290
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1291
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1292
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1293
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1294
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1295
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1296
+ };
1297
+ export type RunCreateOrConnectWithoutCodingRunInput = {
1298
+ where: Prisma.RunWhereUniqueInput;
1299
+ create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
1300
+ };
1301
+ export type RunUpsertWithoutCodingRunInput = {
1302
+ update: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1303
+ create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
1304
+ where?: Prisma.RunWhereInput;
1305
+ };
1306
+ export type RunUpdateToOneWithWhereWithoutCodingRunInput = {
1307
+ where?: Prisma.RunWhereInput;
1308
+ data: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1309
+ };
1310
+ export type RunUpdateWithoutCodingRunInput = {
1311
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1312
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1313
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1314
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1315
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1316
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1317
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1318
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1319
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1320
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1321
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1322
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1323
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1324
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1325
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1326
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1327
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1328
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1329
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1330
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1331
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1332
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1333
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1334
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1335
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1336
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1337
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1338
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1339
+ };
1340
+ export type RunUncheckedUpdateWithoutCodingRunInput = {
1341
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1342
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1343
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1344
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1345
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1346
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1347
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1348
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1349
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1350
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1351
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1352
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1353
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1354
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1355
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1356
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1357
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1358
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1359
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1360
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1361
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1362
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1363
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1364
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1365
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1366
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1367
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1368
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1369
+ };
1370
+ export type RunCreateWithoutServiceStatusesInput = {
1371
+ id?: string;
1372
+ status?: $Enums.RunStatus;
1373
+ trigger?: $Enums.RunTrigger;
1374
+ tokensIn?: number;
1375
+ tokensOut?: number;
1376
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1377
+ error?: string | null;
1378
+ startedAt?: Date | string;
1379
+ finishedAt?: Date | string | null;
1380
+ heartbeatAt?: Date | string | null;
1381
+ finalText?: string | null;
1382
+ turns?: number;
1383
+ pricingVersion?: string | null;
1384
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1385
+ executionManaged?: boolean;
1386
+ executionBackend?: string | null;
1387
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1388
+ taskOverride?: string | null;
1389
+ triggeredById?: string | null;
1390
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1391
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1392
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1393
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1394
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1395
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1396
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1397
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1398
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1399
+ };
1400
+ export type RunUncheckedCreateWithoutServiceStatusesInput = {
1401
+ id?: string;
1402
+ agentId: string;
1403
+ status?: $Enums.RunStatus;
1404
+ trigger?: $Enums.RunTrigger;
1405
+ tokensIn?: number;
1406
+ tokensOut?: number;
1407
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1408
+ error?: string | null;
1409
+ startedAt?: Date | string;
1410
+ finishedAt?: Date | string | null;
1411
+ heartbeatAt?: Date | string | null;
1412
+ finalText?: string | null;
1413
+ turns?: number;
1414
+ pricingVersion?: string | null;
1415
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1416
+ executionManaged?: boolean;
1417
+ executionBackend?: string | null;
1418
+ parentRunId?: string | null;
1419
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1420
+ taskOverride?: string | null;
1421
+ triggeredById?: string | null;
1422
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1423
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1424
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1425
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1426
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1427
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1428
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1429
+ };
1430
+ export type RunCreateOrConnectWithoutServiceStatusesInput = {
1431
+ where: Prisma.RunWhereUniqueInput;
1432
+ create: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
1433
+ };
1434
+ export type RunUpsertWithoutServiceStatusesInput = {
1435
+ update: Prisma.XOR<Prisma.RunUpdateWithoutServiceStatusesInput, Prisma.RunUncheckedUpdateWithoutServiceStatusesInput>;
1436
+ create: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
1437
+ where?: Prisma.RunWhereInput;
1438
+ };
1439
+ export type RunUpdateToOneWithWhereWithoutServiceStatusesInput = {
1440
+ where?: Prisma.RunWhereInput;
1441
+ data: Prisma.XOR<Prisma.RunUpdateWithoutServiceStatusesInput, Prisma.RunUncheckedUpdateWithoutServiceStatusesInput>;
1442
+ };
1443
+ export type RunUpdateWithoutServiceStatusesInput = {
1444
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1445
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1446
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1447
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1448
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1449
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1450
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1451
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1452
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1453
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1454
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1455
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1456
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1457
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1458
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1459
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1461
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1462
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1463
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1464
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1465
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1466
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1467
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1468
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1469
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1470
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1471
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1472
+ };
1473
+ export type RunUncheckedUpdateWithoutServiceStatusesInput = {
1474
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1475
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1476
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1477
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1478
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1479
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1480
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1481
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1482
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1483
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1484
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1485
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1486
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1487
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1488
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1489
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1490
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1491
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1492
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1493
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1494
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1495
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1496
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1497
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1498
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1499
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1500
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1501
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1502
+ };
1503
+ export type RunCreateWithoutHostCheckInput = {
1504
+ id?: string;
1505
+ status?: $Enums.RunStatus;
1506
+ trigger?: $Enums.RunTrigger;
1507
+ tokensIn?: number;
1508
+ tokensOut?: number;
1509
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1510
+ error?: string | null;
1511
+ startedAt?: Date | string;
1512
+ finishedAt?: Date | string | null;
1513
+ heartbeatAt?: Date | string | null;
1514
+ finalText?: string | null;
1515
+ turns?: number;
1516
+ pricingVersion?: string | null;
1517
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1518
+ executionManaged?: boolean;
1519
+ executionBackend?: string | null;
1520
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1521
+ taskOverride?: string | null;
1522
+ triggeredById?: string | null;
1523
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1524
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1525
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1526
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1527
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1528
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1529
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1530
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1531
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1532
+ };
1533
+ export type RunUncheckedCreateWithoutHostCheckInput = {
1534
+ id?: string;
1535
+ agentId: string;
1536
+ status?: $Enums.RunStatus;
1537
+ trigger?: $Enums.RunTrigger;
1538
+ tokensIn?: number;
1539
+ tokensOut?: number;
1540
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1541
+ error?: string | null;
1542
+ startedAt?: Date | string;
1543
+ finishedAt?: Date | string | null;
1544
+ heartbeatAt?: Date | string | null;
1545
+ finalText?: string | null;
1546
+ turns?: number;
1547
+ pricingVersion?: string | null;
1548
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1549
+ executionManaged?: boolean;
1550
+ executionBackend?: string | null;
1551
+ parentRunId?: string | null;
1552
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1553
+ taskOverride?: string | null;
1554
+ triggeredById?: string | null;
1555
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1556
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1557
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1558
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1559
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1560
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1561
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1562
+ };
1563
+ export type RunCreateOrConnectWithoutHostCheckInput = {
1564
+ where: Prisma.RunWhereUniqueInput;
1565
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
1566
+ };
1567
+ export type RunUpsertWithoutHostCheckInput = {
1568
+ update: Prisma.XOR<Prisma.RunUpdateWithoutHostCheckInput, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
1569
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
1570
+ where?: Prisma.RunWhereInput;
1571
+ };
1572
+ export type RunUpdateToOneWithWhereWithoutHostCheckInput = {
1573
+ where?: Prisma.RunWhereInput;
1574
+ data: Prisma.XOR<Prisma.RunUpdateWithoutHostCheckInput, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
1575
+ };
1576
+ export type RunUpdateWithoutHostCheckInput = {
1577
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1578
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1579
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1580
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1581
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1582
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1583
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1584
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1585
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1586
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1587
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1588
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1589
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1590
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1591
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1592
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1593
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1594
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1595
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1596
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1597
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1598
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1599
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1600
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1601
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1602
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1603
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1604
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1605
+ };
1606
+ export type RunUncheckedUpdateWithoutHostCheckInput = {
1607
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1608
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1609
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1610
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1611
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1612
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1613
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1614
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1615
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1616
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1617
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1618
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1619
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1620
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1621
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1622
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1623
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1624
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1625
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1626
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1627
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1628
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1629
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1630
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1631
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1632
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1633
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1634
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1635
+ };
1636
+ export type RunCreateWithoutHostStatusInput = {
1637
+ id?: string;
1638
+ status?: $Enums.RunStatus;
1639
+ trigger?: $Enums.RunTrigger;
1640
+ tokensIn?: number;
1641
+ tokensOut?: number;
1642
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1643
+ error?: string | null;
1644
+ startedAt?: Date | string;
1645
+ finishedAt?: Date | string | null;
1646
+ heartbeatAt?: Date | string | null;
1647
+ finalText?: string | null;
1648
+ turns?: number;
1649
+ pricingVersion?: string | null;
1650
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1651
+ executionManaged?: boolean;
1652
+ executionBackend?: string | null;
1653
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1654
+ taskOverride?: string | null;
1655
+ triggeredById?: string | null;
1656
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1657
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1658
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1659
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1660
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1661
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1662
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1663
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1664
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1665
+ };
1666
+ export type RunUncheckedCreateWithoutHostStatusInput = {
1667
+ id?: string;
1668
+ agentId: string;
1669
+ status?: $Enums.RunStatus;
1670
+ trigger?: $Enums.RunTrigger;
1671
+ tokensIn?: number;
1672
+ tokensOut?: number;
1673
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1674
+ error?: string | null;
1675
+ startedAt?: Date | string;
1676
+ finishedAt?: Date | string | null;
1677
+ heartbeatAt?: Date | string | null;
1678
+ finalText?: string | null;
1679
+ turns?: number;
1680
+ pricingVersion?: string | null;
1681
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
776
1682
  executionManaged?: boolean;
777
1683
  executionBackend?: string | null;
778
1684
  parentRunId?: string | null;
779
1685
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
780
1686
  taskOverride?: string | null;
1687
+ triggeredById?: string | null;
781
1688
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1689
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1690
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1691
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1692
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1693
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
782
1694
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
783
1695
  };
784
- export type RunCreateOrConnectWithoutAgentInput = {
1696
+ export type RunCreateOrConnectWithoutHostStatusInput = {
785
1697
  where: Prisma.RunWhereUniqueInput;
786
- create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
787
- };
788
- export type RunCreateManyAgentInputEnvelope = {
789
- data: Prisma.RunCreateManyAgentInput | Prisma.RunCreateManyAgentInput[];
790
- skipDuplicates?: boolean;
1698
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
791
1699
  };
792
- export type RunUpsertWithWhereUniqueWithoutAgentInput = {
793
- where: Prisma.RunWhereUniqueInput;
794
- update: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
795
- create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
1700
+ export type RunUpsertWithoutHostStatusInput = {
1701
+ update: Prisma.XOR<Prisma.RunUpdateWithoutHostStatusInput, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
1702
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
1703
+ where?: Prisma.RunWhereInput;
796
1704
  };
797
- export type RunUpdateWithWhereUniqueWithoutAgentInput = {
798
- where: Prisma.RunWhereUniqueInput;
799
- data: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
1705
+ export type RunUpdateToOneWithWhereWithoutHostStatusInput = {
1706
+ where?: Prisma.RunWhereInput;
1707
+ data: Prisma.XOR<Prisma.RunUpdateWithoutHostStatusInput, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
800
1708
  };
801
- export type RunUpdateManyWithWhereWithoutAgentInput = {
802
- where: Prisma.RunScalarWhereInput;
803
- data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutAgentInput>;
1709
+ export type RunUpdateWithoutHostStatusInput = {
1710
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1711
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1712
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1713
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1714
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1715
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1716
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1717
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1718
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1719
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1720
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1721
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1722
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1723
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1724
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1725
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1726
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1727
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1728
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1729
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1730
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1731
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1732
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1733
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1734
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1735
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1736
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1737
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
804
1738
  };
805
- export type RunScalarWhereInput = {
806
- AND?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
807
- OR?: Prisma.RunScalarWhereInput[];
808
- NOT?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
809
- id?: Prisma.StringFilter<"Run"> | string;
810
- agentId?: Prisma.StringFilter<"Run"> | string;
811
- status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
812
- trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
813
- tokensIn?: Prisma.IntFilter<"Run"> | number;
814
- tokensOut?: Prisma.IntFilter<"Run"> | number;
815
- costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
816
- error?: Prisma.StringNullableFilter<"Run"> | string | null;
817
- startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
818
- finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
819
- heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
820
- finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
821
- turns?: Prisma.IntFilter<"Run"> | number;
822
- executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
823
- executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
824
- parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
825
- grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
826
- taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
1739
+ export type RunUncheckedUpdateWithoutHostStatusInput = {
1740
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1741
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1742
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1743
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1744
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1745
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1746
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1747
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1748
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1749
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1750
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1751
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1752
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1753
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1754
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1755
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1756
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1759
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1760
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1761
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1762
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1763
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1764
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1765
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1766
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1767
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
827
1768
  };
828
- export type RunCreateWithoutChildRunsInput = {
1769
+ export type RunCreateWithoutIssueStatusInput = {
829
1770
  id?: string;
830
1771
  status?: $Enums.RunStatus;
831
1772
  trigger?: $Enums.RunTrigger;
@@ -838,15 +1779,24 @@ export type RunCreateWithoutChildRunsInput = {
838
1779
  heartbeatAt?: Date | string | null;
839
1780
  finalText?: string | null;
840
1781
  turns?: number;
1782
+ pricingVersion?: string | null;
1783
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
841
1784
  executionManaged?: boolean;
842
1785
  executionBackend?: string | null;
843
1786
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
844
1787
  taskOverride?: string | null;
1788
+ triggeredById?: string | null;
845
1789
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
846
1790
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1791
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1792
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1793
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1794
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1795
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
847
1796
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1797
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
848
1798
  };
849
- export type RunUncheckedCreateWithoutChildRunsInput = {
1799
+ export type RunUncheckedCreateWithoutIssueStatusInput = {
850
1800
  id?: string;
851
1801
  agentId: string;
852
1802
  status?: $Enums.RunStatus;
@@ -860,18 +1810,96 @@ export type RunUncheckedCreateWithoutChildRunsInput = {
860
1810
  heartbeatAt?: Date | string | null;
861
1811
  finalText?: string | null;
862
1812
  turns?: number;
1813
+ pricingVersion?: string | null;
1814
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
863
1815
  executionManaged?: boolean;
864
1816
  executionBackend?: string | null;
865
1817
  parentRunId?: string | null;
866
1818
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
867
1819
  taskOverride?: string | null;
1820
+ triggeredById?: string | null;
868
1821
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1822
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1823
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1824
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1825
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1826
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1827
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
869
1828
  };
870
- export type RunCreateOrConnectWithoutChildRunsInput = {
1829
+ export type RunCreateOrConnectWithoutIssueStatusInput = {
871
1830
  where: Prisma.RunWhereUniqueInput;
872
- create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
1831
+ create: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
873
1832
  };
874
- export type RunCreateWithoutParentRunInput = {
1833
+ export type RunUpsertWithoutIssueStatusInput = {
1834
+ update: Prisma.XOR<Prisma.RunUpdateWithoutIssueStatusInput, Prisma.RunUncheckedUpdateWithoutIssueStatusInput>;
1835
+ create: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
1836
+ where?: Prisma.RunWhereInput;
1837
+ };
1838
+ export type RunUpdateToOneWithWhereWithoutIssueStatusInput = {
1839
+ where?: Prisma.RunWhereInput;
1840
+ data: Prisma.XOR<Prisma.RunUpdateWithoutIssueStatusInput, Prisma.RunUncheckedUpdateWithoutIssueStatusInput>;
1841
+ };
1842
+ export type RunUpdateWithoutIssueStatusInput = {
1843
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1844
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1845
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1846
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1847
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1848
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1849
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1850
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1851
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1852
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1853
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1854
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1855
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1856
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1857
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1858
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1859
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1860
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1861
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1862
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1863
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1864
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1865
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1866
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1867
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1868
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1869
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1870
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1871
+ };
1872
+ export type RunUncheckedUpdateWithoutIssueStatusInput = {
1873
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1874
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1875
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1876
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1877
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1878
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1879
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1880
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1881
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1882
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1883
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1884
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1885
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1886
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1887
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1888
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1889
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1890
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1891
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1892
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1893
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1894
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1895
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1896
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1897
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1898
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1899
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1900
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1901
+ };
1902
+ export type RunCreateWithoutAttributionInput = {
875
1903
  id?: string;
876
1904
  status?: $Enums.RunStatus;
877
1905
  trigger?: $Enums.RunTrigger;
@@ -884,15 +1912,24 @@ export type RunCreateWithoutParentRunInput = {
884
1912
  heartbeatAt?: Date | string | null;
885
1913
  finalText?: string | null;
886
1914
  turns?: number;
1915
+ pricingVersion?: string | null;
1916
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
887
1917
  executionManaged?: boolean;
888
1918
  executionBackend?: string | null;
889
1919
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
890
1920
  taskOverride?: string | null;
1921
+ triggeredById?: string | null;
891
1922
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
892
1923
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1924
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1925
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1926
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1927
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1928
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1929
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
893
1930
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
894
1931
  };
895
- export type RunUncheckedCreateWithoutParentRunInput = {
1932
+ export type RunUncheckedCreateWithoutAttributionInput = {
896
1933
  id?: string;
897
1934
  agentId: string;
898
1935
  status?: $Enums.RunStatus;
@@ -906,31 +1943,36 @@ export type RunUncheckedCreateWithoutParentRunInput = {
906
1943
  heartbeatAt?: Date | string | null;
907
1944
  finalText?: string | null;
908
1945
  turns?: number;
1946
+ pricingVersion?: string | null;
1947
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
909
1948
  executionManaged?: boolean;
910
1949
  executionBackend?: string | null;
1950
+ parentRunId?: string | null;
911
1951
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
912
1952
  taskOverride?: string | null;
1953
+ triggeredById?: string | null;
913
1954
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1955
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1956
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1957
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1958
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1959
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
914
1960
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
915
1961
  };
916
- export type RunCreateOrConnectWithoutParentRunInput = {
1962
+ export type RunCreateOrConnectWithoutAttributionInput = {
917
1963
  where: Prisma.RunWhereUniqueInput;
918
- create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
919
- };
920
- export type RunCreateManyParentRunInputEnvelope = {
921
- data: Prisma.RunCreateManyParentRunInput | Prisma.RunCreateManyParentRunInput[];
922
- skipDuplicates?: boolean;
1964
+ create: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
923
1965
  };
924
- export type RunUpsertWithoutChildRunsInput = {
925
- update: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
926
- create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
1966
+ export type RunUpsertWithoutAttributionInput = {
1967
+ update: Prisma.XOR<Prisma.RunUpdateWithoutAttributionInput, Prisma.RunUncheckedUpdateWithoutAttributionInput>;
1968
+ create: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
927
1969
  where?: Prisma.RunWhereInput;
928
1970
  };
929
- export type RunUpdateToOneWithWhereWithoutChildRunsInput = {
1971
+ export type RunUpdateToOneWithWhereWithoutAttributionInput = {
930
1972
  where?: Prisma.RunWhereInput;
931
- data: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
1973
+ data: Prisma.XOR<Prisma.RunUpdateWithoutAttributionInput, Prisma.RunUncheckedUpdateWithoutAttributionInput>;
932
1974
  };
933
- export type RunUpdateWithoutChildRunsInput = {
1975
+ export type RunUpdateWithoutAttributionInput = {
934
1976
  id?: Prisma.StringFieldUpdateOperationsInput | string;
935
1977
  status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
936
1978
  trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
@@ -943,15 +1985,24 @@ export type RunUpdateWithoutChildRunsInput = {
943
1985
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
944
1986
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
945
1987
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1988
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1989
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
946
1990
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
947
1991
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
948
1992
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
949
1993
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1994
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
950
1995
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
951
1996
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1997
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1998
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1999
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2000
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2001
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
952
2002
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2003
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
953
2004
  };
954
- export type RunUncheckedUpdateWithoutChildRunsInput = {
2005
+ export type RunUncheckedUpdateWithoutAttributionInput = {
955
2006
  id?: Prisma.StringFieldUpdateOperationsInput | string;
956
2007
  agentId?: Prisma.StringFieldUpdateOperationsInput | string;
957
2008
  status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
@@ -965,27 +2016,23 @@ export type RunUncheckedUpdateWithoutChildRunsInput = {
965
2016
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
966
2017
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
967
2018
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2019
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2020
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
968
2021
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
969
2022
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
970
2023
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
971
2024
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
972
2025
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2026
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
973
2027
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
2028
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2029
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2030
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2031
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2032
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2033
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
974
2034
  };
975
- export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
976
- where: Prisma.RunWhereUniqueInput;
977
- update: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
978
- create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
979
- };
980
- export type RunUpdateWithWhereUniqueWithoutParentRunInput = {
981
- where: Prisma.RunWhereUniqueInput;
982
- data: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
983
- };
984
- export type RunUpdateManyWithWhereWithoutParentRunInput = {
985
- where: Prisma.RunScalarWhereInput;
986
- data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutParentRunInput>;
987
- };
988
- export type RunCreateWithoutCodingRunInput = {
2035
+ export type RunCreateWithoutModelUsageInput = {
989
2036
  id?: string;
990
2037
  status?: $Enums.RunStatus;
991
2038
  trigger?: $Enums.RunTrigger;
@@ -998,15 +2045,24 @@ export type RunCreateWithoutCodingRunInput = {
998
2045
  heartbeatAt?: Date | string | null;
999
2046
  finalText?: string | null;
1000
2047
  turns?: number;
2048
+ pricingVersion?: string | null;
2049
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1001
2050
  executionManaged?: boolean;
1002
2051
  executionBackend?: string | null;
1003
2052
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1004
2053
  taskOverride?: string | null;
2054
+ triggeredById?: string | null;
1005
2055
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
2056
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
2057
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
2058
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
2059
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
2060
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
2061
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1006
2062
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1007
2063
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1008
2064
  };
1009
- export type RunUncheckedCreateWithoutCodingRunInput = {
2065
+ export type RunUncheckedCreateWithoutModelUsageInput = {
1010
2066
  id?: string;
1011
2067
  agentId: string;
1012
2068
  status?: $Enums.RunStatus;
@@ -1020,27 +2076,36 @@ export type RunUncheckedCreateWithoutCodingRunInput = {
1020
2076
  heartbeatAt?: Date | string | null;
1021
2077
  finalText?: string | null;
1022
2078
  turns?: number;
2079
+ pricingVersion?: string | null;
2080
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1023
2081
  executionManaged?: boolean;
1024
2082
  executionBackend?: string | null;
1025
2083
  parentRunId?: string | null;
1026
2084
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1027
2085
  taskOverride?: string | null;
2086
+ triggeredById?: string | null;
2087
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
2088
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
2089
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
2090
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
2091
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
2092
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1028
2093
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1029
2094
  };
1030
- export type RunCreateOrConnectWithoutCodingRunInput = {
2095
+ export type RunCreateOrConnectWithoutModelUsageInput = {
1031
2096
  where: Prisma.RunWhereUniqueInput;
1032
- create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
2097
+ create: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
1033
2098
  };
1034
- export type RunUpsertWithoutCodingRunInput = {
1035
- update: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1036
- create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
2099
+ export type RunUpsertWithoutModelUsageInput = {
2100
+ update: Prisma.XOR<Prisma.RunUpdateWithoutModelUsageInput, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
2101
+ create: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
1037
2102
  where?: Prisma.RunWhereInput;
1038
2103
  };
1039
- export type RunUpdateToOneWithWhereWithoutCodingRunInput = {
2104
+ export type RunUpdateToOneWithWhereWithoutModelUsageInput = {
1040
2105
  where?: Prisma.RunWhereInput;
1041
- data: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
2106
+ data: Prisma.XOR<Prisma.RunUpdateWithoutModelUsageInput, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
1042
2107
  };
1043
- export type RunUpdateWithoutCodingRunInput = {
2108
+ export type RunUpdateWithoutModelUsageInput = {
1044
2109
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1045
2110
  status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1046
2111
  trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
@@ -1053,15 +2118,24 @@ export type RunUpdateWithoutCodingRunInput = {
1053
2118
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1054
2119
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
2120
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2121
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2122
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1056
2123
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1057
2124
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
2125
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1059
2126
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2127
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
2128
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
2129
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
2130
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
2131
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2132
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2133
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2134
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1061
2135
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1062
2136
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1063
2137
  };
1064
- export type RunUncheckedUpdateWithoutCodingRunInput = {
2138
+ export type RunUncheckedUpdateWithoutModelUsageInput = {
1065
2139
  id?: Prisma.StringFieldUpdateOperationsInput | string;
1066
2140
  agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1067
2141
  status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
@@ -1075,11 +2149,20 @@ export type RunUncheckedUpdateWithoutCodingRunInput = {
1075
2149
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1076
2150
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1077
2151
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2152
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2153
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1078
2154
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1079
2155
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
2156
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1081
2157
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1082
2158
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2159
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2160
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
2161
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2162
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2163
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2164
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2165
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1083
2166
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1084
2167
  };
1085
2168
  export type RunCreateManyAgentInput = {
@@ -1095,11 +2178,14 @@ export type RunCreateManyAgentInput = {
1095
2178
  heartbeatAt?: Date | string | null;
1096
2179
  finalText?: string | null;
1097
2180
  turns?: number;
2181
+ pricingVersion?: string | null;
2182
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1098
2183
  executionManaged?: boolean;
1099
2184
  executionBackend?: string | null;
1100
2185
  parentRunId?: string | null;
1101
2186
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1102
2187
  taskOverride?: string | null;
2188
+ triggeredById?: string | null;
1103
2189
  };
1104
2190
  export type RunUpdateWithoutAgentInput = {
1105
2191
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1114,11 +2200,20 @@ export type RunUpdateWithoutAgentInput = {
1114
2200
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1115
2201
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1116
2202
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2203
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2204
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1117
2205
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1118
2206
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1119
2207
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1120
2208
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2209
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1121
2210
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
2211
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
2212
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2213
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2214
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2215
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2216
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1122
2217
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1123
2218
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1124
2219
  };
@@ -1135,12 +2230,21 @@ export type RunUncheckedUpdateWithoutAgentInput = {
1135
2230
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1136
2231
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1137
2232
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2233
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2234
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1138
2235
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1139
2236
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1140
2237
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1141
2238
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1142
2239
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2240
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1143
2241
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
2242
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2243
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2244
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2245
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2246
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2247
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1144
2248
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1145
2249
  };
1146
2250
  export type RunUncheckedUpdateManyWithoutAgentInput = {
@@ -1156,11 +2260,14 @@ export type RunUncheckedUpdateManyWithoutAgentInput = {
1156
2260
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1157
2261
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1158
2262
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2263
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2264
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1159
2265
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1160
2266
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1161
2267
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1162
2268
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1163
2269
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2270
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1164
2271
  };
1165
2272
  export type RunCreateManyParentRunInput = {
1166
2273
  id?: string;
@@ -1176,10 +2283,13 @@ export type RunCreateManyParentRunInput = {
1176
2283
  heartbeatAt?: Date | string | null;
1177
2284
  finalText?: string | null;
1178
2285
  turns?: number;
2286
+ pricingVersion?: string | null;
2287
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1179
2288
  executionManaged?: boolean;
1180
2289
  executionBackend?: string | null;
1181
2290
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1182
2291
  taskOverride?: string | null;
2292
+ triggeredById?: string | null;
1183
2293
  };
1184
2294
  export type RunUpdateWithoutParentRunInput = {
1185
2295
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1194,12 +2304,21 @@ export type RunUpdateWithoutParentRunInput = {
1194
2304
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1195
2305
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1196
2306
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2307
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2308
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1197
2309
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1198
2310
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1199
2311
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1200
2312
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2313
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
2314
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1202
2315
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
2316
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
2317
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2318
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2319
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2320
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2321
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1203
2322
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1204
2323
  };
1205
2324
  export type RunUncheckedUpdateWithoutParentRunInput = {
@@ -1216,11 +2335,20 @@ export type RunUncheckedUpdateWithoutParentRunInput = {
1216
2335
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1217
2336
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1218
2337
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2338
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2339
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1219
2340
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1220
2341
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1221
2342
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1222
2343
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2344
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1223
2345
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
2346
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2347
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2348
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2349
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2350
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2351
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1224
2352
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1225
2353
  };
1226
2354
  export type RunUncheckedUpdateManyWithoutParentRunInput = {
@@ -1237,18 +2365,25 @@ export type RunUncheckedUpdateManyWithoutParentRunInput = {
1237
2365
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1238
2366
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1239
2367
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2368
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2369
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1240
2370
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1241
2371
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1242
2372
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1243
2373
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2374
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1244
2375
  };
1245
2376
  /**
1246
2377
  * Count Type RunCountOutputType
1247
2378
  */
1248
2379
  export type RunCountOutputType = {
2380
+ modelUsage: number;
2381
+ serviceStatuses: number;
1249
2382
  childRuns: number;
1250
2383
  };
1251
2384
  export type RunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2385
+ modelUsage?: boolean | RunCountOutputTypeCountModelUsageArgs;
2386
+ serviceStatuses?: boolean | RunCountOutputTypeCountServiceStatusesArgs;
1252
2387
  childRuns?: boolean | RunCountOutputTypeCountChildRunsArgs;
1253
2388
  };
1254
2389
  /**
@@ -1260,6 +2395,18 @@ export type RunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensio
1260
2395
  */
1261
2396
  select?: Prisma.RunCountOutputTypeSelect<ExtArgs> | null;
1262
2397
  };
2398
+ /**
2399
+ * RunCountOutputType without action
2400
+ */
2401
+ export type RunCountOutputTypeCountModelUsageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2402
+ where?: Prisma.RunModelUsageWhereInput;
2403
+ };
2404
+ /**
2405
+ * RunCountOutputType without action
2406
+ */
2407
+ export type RunCountOutputTypeCountServiceStatusesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2408
+ where?: Prisma.CodingRunServiceStatusWhereInput;
2409
+ };
1263
2410
  /**
1264
2411
  * RunCountOutputType without action
1265
2412
  */
@@ -1280,13 +2427,22 @@ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
1280
2427
  heartbeatAt?: boolean;
1281
2428
  finalText?: boolean;
1282
2429
  turns?: boolean;
2430
+ pricingVersion?: boolean;
2431
+ pricingSnapshot?: boolean;
1283
2432
  executionManaged?: boolean;
1284
2433
  executionBackend?: boolean;
1285
2434
  parentRunId?: boolean;
1286
2435
  grantedParentMemoryKeys?: boolean;
1287
2436
  taskOverride?: boolean;
2437
+ triggeredById?: boolean;
1288
2438
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1289
2439
  codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
2440
+ hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
2441
+ hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
2442
+ issueStatus?: boolean | Prisma.Run$issueStatusArgs<ExtArgs>;
2443
+ attribution?: boolean | Prisma.Run$attributionArgs<ExtArgs>;
2444
+ modelUsage?: boolean | Prisma.Run$modelUsageArgs<ExtArgs>;
2445
+ serviceStatuses?: boolean | Prisma.Run$serviceStatusesArgs<ExtArgs>;
1290
2446
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1291
2447
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1292
2448
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1305,11 +2461,14 @@ export type RunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extension
1305
2461
  heartbeatAt?: boolean;
1306
2462
  finalText?: boolean;
1307
2463
  turns?: boolean;
2464
+ pricingVersion?: boolean;
2465
+ pricingSnapshot?: boolean;
1308
2466
  executionManaged?: boolean;
1309
2467
  executionBackend?: boolean;
1310
2468
  parentRunId?: boolean;
1311
2469
  grantedParentMemoryKeys?: boolean;
1312
2470
  taskOverride?: boolean;
2471
+ triggeredById?: boolean;
1313
2472
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1314
2473
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1315
2474
  }, ExtArgs["result"]["run"]>;
@@ -1327,11 +2486,14 @@ export type RunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extension
1327
2486
  heartbeatAt?: boolean;
1328
2487
  finalText?: boolean;
1329
2488
  turns?: boolean;
2489
+ pricingVersion?: boolean;
2490
+ pricingSnapshot?: boolean;
1330
2491
  executionManaged?: boolean;
1331
2492
  executionBackend?: boolean;
1332
2493
  parentRunId?: boolean;
1333
2494
  grantedParentMemoryKeys?: boolean;
1334
2495
  taskOverride?: boolean;
2496
+ triggeredById?: boolean;
1335
2497
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1336
2498
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1337
2499
  }, ExtArgs["result"]["run"]>;
@@ -1349,16 +2511,25 @@ export type RunSelectScalar = {
1349
2511
  heartbeatAt?: boolean;
1350
2512
  finalText?: boolean;
1351
2513
  turns?: boolean;
2514
+ pricingVersion?: boolean;
2515
+ pricingSnapshot?: boolean;
1352
2516
  executionManaged?: boolean;
1353
2517
  executionBackend?: boolean;
1354
2518
  parentRunId?: boolean;
1355
2519
  grantedParentMemoryKeys?: boolean;
1356
2520
  taskOverride?: boolean;
2521
+ triggeredById?: boolean;
1357
2522
  };
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"]>;
2523
+ 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" | "pricingVersion" | "pricingSnapshot" | "executionManaged" | "executionBackend" | "parentRunId" | "grantedParentMemoryKeys" | "taskOverride" | "triggeredById", ExtArgs["result"]["run"]>;
1359
2524
  export type RunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
2525
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1361
2526
  codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
2527
+ hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
2528
+ hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
2529
+ issueStatus?: boolean | Prisma.Run$issueStatusArgs<ExtArgs>;
2530
+ attribution?: boolean | Prisma.Run$attributionArgs<ExtArgs>;
2531
+ modelUsage?: boolean | Prisma.Run$modelUsageArgs<ExtArgs>;
2532
+ serviceStatuses?: boolean | Prisma.Run$serviceStatusesArgs<ExtArgs>;
1362
2533
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1363
2534
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1364
2535
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1376,6 +2547,12 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1376
2547
  objects: {
1377
2548
  agent: Prisma.$AgentPayload<ExtArgs>;
1378
2549
  codingRun: Prisma.$CodingRunPayload<ExtArgs> | null;
2550
+ hostCheck: Prisma.$RunHostCheckPayload<ExtArgs> | null;
2551
+ hostStatus: Prisma.$RunHostStatusPayload<ExtArgs> | null;
2552
+ issueStatus: Prisma.$RunIssueStatusPayload<ExtArgs> | null;
2553
+ attribution: Prisma.$RunAttributionPayload<ExtArgs> | null;
2554
+ modelUsage: Prisma.$RunModelUsagePayload<ExtArgs>[];
2555
+ serviceStatuses: Prisma.$CodingRunServiceStatusPayload<ExtArgs>[];
1379
2556
  parentRun: Prisma.$RunPayload<ExtArgs> | null;
1380
2557
  childRuns: Prisma.$RunPayload<ExtArgs>[];
1381
2558
  };
@@ -1408,6 +2585,14 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1408
2585
  * dropped after the engine returned.
1409
2586
  */
1410
2587
  turns: number;
2588
+ /**
2589
+ * The run's model catalog entry, recorded when it started (native: the
2590
+ * runner's load step; coding: dispatch). The run is billed at these rates
2591
+ * for its whole life, resumes included. Null on runs from before the
2592
+ * model catalog.
2593
+ */
2594
+ pricingVersion: string | null;
2595
+ pricingSnapshot: runtime.JsonValue | null;
1411
2596
  /**
1412
2597
  * Detached executors are recovered by handle rather than inferred from trigger.
1413
2598
  */
@@ -1444,6 +2629,14 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1444
2629
  * prompt-cache-eligible across dispatches.
1445
2630
  */
1446
2631
  taskOverride: string | null;
2632
+ /**
2633
+ * The principal the run is visible to besides the agent's owner
2634
+ * (resource-sharing grants spec §3.5): the trigger_agent caller, a
2635
+ * webhook's creator, or a sub-agent's parent run's triggerer. Null for
2636
+ * scheduled, host-event and CLI runs, which only the owner sees. Plain
2637
+ * text, no FK.
2638
+ */
2639
+ triggeredById: string | null;
1447
2640
  }, ExtArgs["result"]["run"]>;
1448
2641
  composites: {};
1449
2642
  };
@@ -1775,6 +2968,12 @@ export interface Prisma__RunClient<T, Null = never, ExtArgs extends runtime.Type
1775
2968
  readonly [Symbol.toStringTag]: "PrismaPromise";
1776
2969
  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
2970
  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>;
2971
+ 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>;
2972
+ 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>;
2973
+ issueStatus<T extends Prisma.Run$issueStatusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$issueStatusArgs<ExtArgs>>): Prisma.Prisma__RunIssueStatusClient<runtime.Types.Result.GetResult<Prisma.$RunIssueStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2974
+ attribution<T extends Prisma.Run$attributionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$attributionArgs<ExtArgs>>): Prisma.Prisma__RunAttributionClient<runtime.Types.Result.GetResult<Prisma.$RunAttributionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2975
+ modelUsage<T extends Prisma.Run$modelUsageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$modelUsageArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunModelUsagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2976
+ serviceStatuses<T extends Prisma.Run$serviceStatusesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$serviceStatusesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingRunServiceStatusPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1778
2977
  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
2978
  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
2979
  /**
@@ -1815,11 +3014,14 @@ export interface RunFieldRefs {
1815
3014
  readonly heartbeatAt: Prisma.FieldRef<"Run", 'DateTime'>;
1816
3015
  readonly finalText: Prisma.FieldRef<"Run", 'String'>;
1817
3016
  readonly turns: Prisma.FieldRef<"Run", 'Int'>;
3017
+ readonly pricingVersion: Prisma.FieldRef<"Run", 'String'>;
3018
+ readonly pricingSnapshot: Prisma.FieldRef<"Run", 'Json'>;
1818
3019
  readonly executionManaged: Prisma.FieldRef<"Run", 'Boolean'>;
1819
3020
  readonly executionBackend: Prisma.FieldRef<"Run", 'String'>;
1820
3021
  readonly parentRunId: Prisma.FieldRef<"Run", 'String'>;
1821
3022
  readonly grantedParentMemoryKeys: Prisma.FieldRef<"Run", 'String[]'>;
1822
3023
  readonly taskOverride: Prisma.FieldRef<"Run", 'String'>;
3024
+ readonly triggeredById: Prisma.FieldRef<"Run", 'String'>;
1823
3025
  }
1824
3026
  /**
1825
3027
  * Run findUnique
@@ -2221,6 +3423,124 @@ export type Run$codingRunArgs<ExtArgs extends runtime.Types.Extensions.InternalA
2221
3423
  include?: Prisma.CodingRunInclude<ExtArgs> | null;
2222
3424
  where?: Prisma.CodingRunWhereInput;
2223
3425
  };
3426
+ /**
3427
+ * Run.hostCheck
3428
+ */
3429
+ export type Run$hostCheckArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3430
+ /**
3431
+ * Select specific fields to fetch from the RunHostCheck
3432
+ */
3433
+ select?: Prisma.RunHostCheckSelect<ExtArgs> | null;
3434
+ /**
3435
+ * Omit specific fields from the RunHostCheck
3436
+ */
3437
+ omit?: Prisma.RunHostCheckOmit<ExtArgs> | null;
3438
+ /**
3439
+ * Choose, which related nodes to fetch as well
3440
+ */
3441
+ include?: Prisma.RunHostCheckInclude<ExtArgs> | null;
3442
+ where?: Prisma.RunHostCheckWhereInput;
3443
+ };
3444
+ /**
3445
+ * Run.hostStatus
3446
+ */
3447
+ export type Run$hostStatusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3448
+ /**
3449
+ * Select specific fields to fetch from the RunHostStatus
3450
+ */
3451
+ select?: Prisma.RunHostStatusSelect<ExtArgs> | null;
3452
+ /**
3453
+ * Omit specific fields from the RunHostStatus
3454
+ */
3455
+ omit?: Prisma.RunHostStatusOmit<ExtArgs> | null;
3456
+ /**
3457
+ * Choose, which related nodes to fetch as well
3458
+ */
3459
+ include?: Prisma.RunHostStatusInclude<ExtArgs> | null;
3460
+ where?: Prisma.RunHostStatusWhereInput;
3461
+ };
3462
+ /**
3463
+ * Run.issueStatus
3464
+ */
3465
+ export type Run$issueStatusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3466
+ /**
3467
+ * Select specific fields to fetch from the RunIssueStatus
3468
+ */
3469
+ select?: Prisma.RunIssueStatusSelect<ExtArgs> | null;
3470
+ /**
3471
+ * Omit specific fields from the RunIssueStatus
3472
+ */
3473
+ omit?: Prisma.RunIssueStatusOmit<ExtArgs> | null;
3474
+ /**
3475
+ * Choose, which related nodes to fetch as well
3476
+ */
3477
+ include?: Prisma.RunIssueStatusInclude<ExtArgs> | null;
3478
+ where?: Prisma.RunIssueStatusWhereInput;
3479
+ };
3480
+ /**
3481
+ * Run.attribution
3482
+ */
3483
+ export type Run$attributionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3484
+ /**
3485
+ * Select specific fields to fetch from the RunAttribution
3486
+ */
3487
+ select?: Prisma.RunAttributionSelect<ExtArgs> | null;
3488
+ /**
3489
+ * Omit specific fields from the RunAttribution
3490
+ */
3491
+ omit?: Prisma.RunAttributionOmit<ExtArgs> | null;
3492
+ /**
3493
+ * Choose, which related nodes to fetch as well
3494
+ */
3495
+ include?: Prisma.RunAttributionInclude<ExtArgs> | null;
3496
+ where?: Prisma.RunAttributionWhereInput;
3497
+ };
3498
+ /**
3499
+ * Run.modelUsage
3500
+ */
3501
+ export type Run$modelUsageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3502
+ /**
3503
+ * Select specific fields to fetch from the RunModelUsage
3504
+ */
3505
+ select?: Prisma.RunModelUsageSelect<ExtArgs> | null;
3506
+ /**
3507
+ * Omit specific fields from the RunModelUsage
3508
+ */
3509
+ omit?: Prisma.RunModelUsageOmit<ExtArgs> | null;
3510
+ /**
3511
+ * Choose, which related nodes to fetch as well
3512
+ */
3513
+ include?: Prisma.RunModelUsageInclude<ExtArgs> | null;
3514
+ where?: Prisma.RunModelUsageWhereInput;
3515
+ orderBy?: Prisma.RunModelUsageOrderByWithRelationInput | Prisma.RunModelUsageOrderByWithRelationInput[];
3516
+ cursor?: Prisma.RunModelUsageWhereUniqueInput;
3517
+ take?: number;
3518
+ skip?: number;
3519
+ distinct?: Prisma.RunModelUsageScalarFieldEnum | Prisma.RunModelUsageScalarFieldEnum[];
3520
+ };
3521
+ /**
3522
+ * Run.serviceStatuses
3523
+ */
3524
+ export type Run$serviceStatusesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3525
+ /**
3526
+ * Select specific fields to fetch from the CodingRunServiceStatus
3527
+ */
3528
+ select?: Prisma.CodingRunServiceStatusSelect<ExtArgs> | null;
3529
+ /**
3530
+ * Omit specific fields from the CodingRunServiceStatus
3531
+ */
3532
+ omit?: Prisma.CodingRunServiceStatusOmit<ExtArgs> | null;
3533
+ /**
3534
+ * Choose, which related nodes to fetch as well
3535
+ */
3536
+ include?: Prisma.CodingRunServiceStatusInclude<ExtArgs> | null;
3537
+ where?: Prisma.CodingRunServiceStatusWhereInput;
3538
+ orderBy?: Prisma.CodingRunServiceStatusOrderByWithRelationInput | Prisma.CodingRunServiceStatusOrderByWithRelationInput[];
3539
+ cursor?: Prisma.CodingRunServiceStatusWhereUniqueInput;
3540
+ take?: number;
3541
+ skip?: number;
3542
+ distinct?: Prisma.CodingRunServiceStatusScalarFieldEnum | Prisma.CodingRunServiceStatusScalarFieldEnum[];
3543
+ };
2224
3544
  /**
2225
3545
  * Run.parentRun
2226
3546
  */