@wardby/cli 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/.env.example +34 -4
  2. package/README.md +183 -71
  3. package/dist/claude-coding-worker/driver.d.ts +7 -1
  4. package/dist/claude-coding-worker/driver.js +31 -2
  5. package/dist/claude-coding-worker/main.js +5 -2
  6. package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
  7. package/dist/claude-coding-worker/tool-socket.js +26 -0
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +13 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +219 -29
  12. package/dist/coding/collect-exclude.d.ts +25 -0
  13. package/dist/coding/collect-exclude.js +76 -0
  14. package/dist/coding/profile.d.ts +67 -22
  15. package/dist/coding/profile.js +58 -25
  16. package/dist/coding/protected-path-wording.d.ts +24 -0
  17. package/dist/coding/protected-path-wording.js +55 -0
  18. package/dist/coding/protected-paths.d.ts +31 -0
  19. package/dist/coding/protected-paths.js +48 -0
  20. package/dist/coding/protocol.d.ts +99 -3
  21. package/dist/coding/protocol.js +155 -4
  22. package/dist/coding/registry/adapters.d.ts +2 -0
  23. package/dist/coding/registry/adapters.js +9 -0
  24. package/dist/coding/registry/allowlist.d.ts +9 -0
  25. package/dist/coding/registry/allowlist.js +28 -0
  26. package/dist/coding/registry/json-scan.d.ts +55 -0
  27. package/dist/coding/registry/json-scan.js +191 -0
  28. package/dist/coding/registry/lockfiles.d.ts +6 -0
  29. package/dist/coding/registry/lockfiles.js +89 -0
  30. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  31. package/dist/coding/registry/npm-lockfile.js +73 -0
  32. package/dist/coding/registry/npm-plan.d.ts +29 -0
  33. package/dist/coding/registry/npm-plan.js +289 -0
  34. package/dist/coding/registry/npm.d.ts +7 -0
  35. package/dist/coding/registry/npm.js +252 -0
  36. package/dist/coding/registry/pypi.d.ts +4 -0
  37. package/dist/coding/registry/pypi.js +210 -0
  38. package/dist/coding/registry/report.d.ts +37 -0
  39. package/dist/coding/registry/report.js +31 -0
  40. package/dist/coding/registry/token.d.ts +4 -0
  41. package/dist/coding/registry/token.js +7 -0
  42. package/dist/coding/registry/types.d.ts +286 -0
  43. package/dist/coding/registry/types.js +19 -0
  44. package/dist/coding/registry/worker-config.d.ts +14 -0
  45. package/dist/coding/registry/worker-config.js +31 -0
  46. package/dist/coding/services/builtins.d.ts +22 -0
  47. package/dist/coding/services/builtins.js +85 -0
  48. package/dist/coding/services/catalog.d.ts +443 -0
  49. package/dist/coding/services/catalog.js +159 -0
  50. package/dist/coding/services/declaration.d.ts +11 -0
  51. package/dist/coding/services/declaration.js +114 -0
  52. package/dist/coding/services/note.d.ts +8 -0
  53. package/dist/coding/services/note.js +15 -0
  54. package/dist/coding/services/resolve.d.ts +25 -0
  55. package/dist/coding/services/resolve.js +50 -0
  56. package/dist/coding/services/wording.d.ts +25 -0
  57. package/dist/coding/services/wording.js +70 -0
  58. package/dist/coding-proxy/main.js +24 -4
  59. package/dist/coding-worker/artifact.d.ts +18 -0
  60. package/dist/coding-worker/artifact.js +48 -6
  61. package/dist/coding-worker/debug-trace.d.ts +37 -0
  62. package/dist/coding-worker/debug-trace.js +117 -0
  63. package/dist/coding-worker/driver.d.ts +14 -1
  64. package/dist/coding-worker/driver.js +106 -14
  65. package/dist/coding-worker/errors.d.ts +7 -0
  66. package/dist/coding-worker/errors.js +26 -0
  67. package/dist/coding-worker/main.js +13 -4
  68. package/dist/coding-worker/sdk.d.ts +2 -2
  69. package/dist/coding-worker/sdk.js +7 -2
  70. package/dist/coding-worker/types.d.ts +3 -0
  71. package/dist/config/providers.d.ts +41 -0
  72. package/dist/config/providers.js +66 -0
  73. package/dist/core/budget-groups.d.ts +109 -6
  74. package/dist/core/budget-groups.js +125 -19
  75. package/dist/core/budget-wording.d.ts +22 -0
  76. package/dist/core/budget-wording.js +55 -0
  77. package/dist/core/coding-queue.d.ts +1 -1
  78. package/dist/core/datastores.d.ts +1 -1
  79. package/dist/core/datastores.js +18 -2
  80. package/dist/core/db.d.ts +40 -2
  81. package/dist/core/db.js +75 -2
  82. package/dist/core/dispatch.d.ts +49 -7
  83. package/dist/core/dispatch.js +290 -45
  84. package/dist/core/engine-native.js +27 -10
  85. package/dist/core/grants.d.ts +86 -0
  86. package/dist/core/grants.js +126 -0
  87. package/dist/core/host-events.d.ts +49 -0
  88. package/dist/core/host-events.js +257 -0
  89. package/dist/core/host-identity-links.d.ts +54 -0
  90. package/dist/core/host-identity-links.js +189 -0
  91. package/dist/core/host-status.d.ts +61 -0
  92. package/dist/core/host-status.js +211 -0
  93. package/dist/core/http-runtime.js +3 -4
  94. package/dist/core/in-flight-runs.d.ts +8 -0
  95. package/dist/core/in-flight-runs.js +56 -0
  96. package/dist/core/lease.d.ts +1 -1
  97. package/dist/core/private-directory.d.ts +20 -0
  98. package/dist/core/private-directory.js +36 -0
  99. package/dist/core/provider-wording.d.ts +12 -0
  100. package/dist/core/provider-wording.js +44 -0
  101. package/dist/core/reconciler.d.ts +39 -3
  102. package/dist/core/reconciler.js +86 -2
  103. package/dist/core/repo-access.d.ts +99 -0
  104. package/dist/core/repo-access.js +136 -0
  105. package/dist/core/review-host-checks.d.ts +11 -0
  106. package/dist/core/review-host-checks.js +41 -0
  107. package/dist/core/review-host-tools.d.ts +47 -0
  108. package/dist/core/review-host-tools.js +347 -0
  109. package/dist/core/run-heartbeat.d.ts +27 -0
  110. package/dist/core/run-heartbeat.js +54 -0
  111. package/dist/core/runner.d.ts +31 -9
  112. package/dist/core/runner.js +237 -40
  113. package/dist/core/scheduler.d.ts +1 -1
  114. package/dist/core/secrets.d.ts +12 -3
  115. package/dist/core/secrets.js +25 -6
  116. package/dist/core/subagent-memory-tools.d.ts +2 -2
  117. package/dist/core/subagent-memory-tools.js +16 -3
  118. package/dist/core/tool-admin.d.ts +81 -0
  119. package/dist/core/tool-admin.js +129 -0
  120. package/dist/core/tool-names.d.ts +42 -0
  121. package/dist/core/tool-names.js +64 -0
  122. package/dist/core/untrusted-content.d.ts +32 -0
  123. package/dist/core/untrusted-content.js +72 -0
  124. package/dist/core/webhooks.d.ts +9 -2
  125. package/dist/core/webhooks.js +23 -2
  126. package/dist/generated/prisma/browser.d.ts +328 -0
  127. package/dist/generated/prisma/browser.js +17 -0
  128. package/dist/generated/prisma/client.d.ts +347 -0
  129. package/dist/generated/prisma/client.js +34 -0
  130. package/dist/generated/prisma/commonInputTypes.d.ts +839 -0
  131. package/dist/generated/prisma/commonInputTypes.js +10 -0
  132. package/dist/generated/prisma/enums.d.ts +59 -0
  133. package/dist/generated/prisma/enums.js +59 -0
  134. package/dist/generated/prisma/internal/class.d.ts +605 -0
  135. package/dist/generated/prisma/internal/class.js +49 -0
  136. package/dist/generated/prisma/internal/prismaNamespace.d.ts +4494 -0
  137. package/dist/generated/prisma/internal/prismaNamespace.js +628 -0
  138. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +635 -0
  139. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +599 -0
  140. package/dist/generated/prisma/models/Agent.d.ts +3560 -0
  141. package/dist/generated/prisma/models/Agent.js +1 -0
  142. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  143. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  144. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  145. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  146. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  147. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  148. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  149. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  150. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  151. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  152. package/dist/generated/prisma/models/AgentTool.d.ts +1403 -0
  153. package/dist/generated/prisma/models/AgentTool.js +1 -0
  154. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  155. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  156. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  157. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  158. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  159. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  160. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  161. package/dist/generated/prisma/models/AuthSession.js +1 -0
  162. package/dist/generated/prisma/models/AuthUser.d.ts +1700 -0
  163. package/dist/generated/prisma/models/AuthUser.js +1 -0
  164. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  165. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  166. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1681 -0
  167. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  168. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  169. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  170. package/dist/generated/prisma/models/CodingProxySession.d.ts +1626 -0
  171. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  172. package/dist/generated/prisma/models/CodingRun.d.ts +3583 -0
  173. package/dist/generated/prisma/models/CodingRun.js +1 -0
  174. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  175. package/dist/generated/prisma/models/CodingService.js +1 -0
  176. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  177. package/dist/generated/prisma/models/Datastore.js +1 -0
  178. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  179. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  180. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  181. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  182. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  183. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  184. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  185. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  186. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  187. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  188. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  189. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  190. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  191. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  192. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  193. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  194. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  195. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  196. package/dist/generated/prisma/models/Principal.d.ts +2245 -0
  197. package/dist/generated/prisma/models/Principal.js +1 -0
  198. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  199. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  200. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  201. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  202. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  203. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  204. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  205. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  206. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  207. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  208. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  209. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  210. package/dist/generated/prisma/models/Run.d.ts +2669 -0
  211. package/dist/generated/prisma/models/Run.js +1 -0
  212. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  213. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  214. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  215. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  216. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  217. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  218. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  219. package/dist/generated/prisma/models/Secret.js +1 -0
  220. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  221. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  222. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  223. package/dist/generated/prisma/models/Task.js +1 -0
  224. package/dist/generated/prisma/models/Tool.d.ts +1490 -0
  225. package/dist/generated/prisma/models/Tool.js +1 -0
  226. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  227. package/dist/generated/prisma/models/Webhook.js +1 -0
  228. package/dist/generated/prisma/models.d.ts +45 -0
  229. package/dist/generated/prisma/models.js +1 -0
  230. package/dist/help/build.d.ts +1 -0
  231. package/dist/help/build.js +9 -0
  232. package/dist/help/catalog.d.ts +24 -0
  233. package/dist/help/catalog.js +160 -0
  234. package/dist/help/cli.d.ts +2 -0
  235. package/dist/help/cli.js +65 -0
  236. package/dist/help/runtime.d.ts +3 -0
  237. package/dist/help/runtime.js +44 -0
  238. package/dist/help/search.d.ts +9 -0
  239. package/dist/help/search.js +104 -0
  240. package/dist/help-index.json +660 -0
  241. package/dist/import/cli-args.js +3 -2
  242. package/dist/import/create.d.ts +6 -1
  243. package/dist/import/create.js +68 -14
  244. package/dist/import/index.d.ts +1 -1
  245. package/dist/import/index.js +19 -9
  246. package/dist/import/neutral-schema.d.ts +11 -11
  247. package/dist/mcp/auth/access.d.ts +70 -0
  248. package/dist/mcp/auth/access.js +58 -0
  249. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  250. package/dist/mcp/auth/grants-cli.js +518 -0
  251. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  252. package/dist/mcp/auth/host-account-cli.js +47 -0
  253. package/dist/mcp/auth/ownership.d.ts +37 -63
  254. package/dist/mcp/auth/ownership.js +19 -14
  255. package/dist/mcp/auth/principal.d.ts +1 -1
  256. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  257. package/dist/mcp/auth/repo-authorization.js +51 -0
  258. package/dist/mcp/auth/resource-server.d.ts +32 -3
  259. package/dist/mcp/auth/resource-server.js +84 -3
  260. package/dist/mcp/auth/self-hosted/browser.js +22 -8
  261. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  262. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  263. package/dist/mcp/auth/self-hosted/credentials.d.ts +21 -3
  264. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  265. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  266. package/dist/mcp/auth/self-hosted/session.d.ts +3 -2
  267. package/dist/mcp/context.d.ts +28 -2
  268. package/dist/mcp/errors.d.ts +25 -6
  269. package/dist/mcp/errors.js +98 -0
  270. package/dist/mcp/host-events/github-ingress.d.ts +36 -0
  271. package/dist/mcp/host-events/github-ingress.js +92 -0
  272. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  273. package/dist/mcp/host-events/github-user-callback.js +50 -0
  274. package/dist/mcp/index.d.ts +8 -1
  275. package/dist/mcp/index.js +106 -16
  276. package/dist/mcp/server.d.ts +1 -1
  277. package/dist/mcp/server.js +27 -9
  278. package/dist/mcp/shared/page-style.d.ts +16 -0
  279. package/dist/mcp/shared/page-style.js +129 -0
  280. package/dist/mcp/tasks/manager.d.ts +1 -1
  281. package/dist/mcp/tools/agents.js +447 -49
  282. package/dist/mcp/tools/budget-groups.js +3 -3
  283. package/dist/mcp/tools/datastore.js +23 -16
  284. package/dist/mcp/tools/grants.d.ts +2 -0
  285. package/dist/mcp/tools/grants.js +239 -0
  286. package/dist/mcp/tools/help.d.ts +5 -0
  287. package/dist/mcp/tools/help.js +67 -0
  288. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  289. package/dist/mcp/tools/host-accounts.js +114 -0
  290. package/dist/mcp/tools/memory.d.ts +7 -1
  291. package/dist/mcp/tools/memory.js +5 -5
  292. package/dist/mcp/tools/repositories.d.ts +2 -0
  293. package/dist/mcp/tools/repositories.js +181 -0
  294. package/dist/mcp/tools/runs.d.ts +6 -0
  295. package/dist/mcp/tools/runs.js +60 -6
  296. package/dist/mcp/tools/scheduling.js +4 -7
  297. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  298. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  299. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  300. package/dist/mcp/tools/secrets.js +18 -6
  301. package/dist/mcp/tools/services.d.ts +2 -0
  302. package/dist/mcp/tools/services.js +222 -0
  303. package/dist/mcp/tools/subagents.js +53 -17
  304. package/dist/mcp/tools/tools.d.ts +41 -0
  305. package/dist/mcp/tools/tools.js +202 -41
  306. package/dist/mcp/tools/trigger.js +36 -6
  307. package/dist/mcp/tools/webhooks.js +15 -4
  308. package/dist/mcp/transport/streamable-http.d.ts +11 -1
  309. package/dist/mcp/transport/streamable-http.js +32 -2
  310. package/dist/mcp/unattended-schedules.d.ts +1 -1
  311. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  312. package/dist/providers/auth/delegating.d.ts +19 -0
  313. package/dist/providers/auth/delegating.js +71 -0
  314. package/dist/providers/auth/index.d.ts +3 -1
  315. package/dist/providers/auth/index.js +11 -0
  316. package/dist/providers/auth/self-hosted.d.ts +4 -3
  317. package/dist/providers/auth/self-hosted.js +16 -4
  318. package/dist/providers/auth/types.d.ts +6 -0
  319. package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
  320. package/dist/providers/coding-proxy/memory-ledger.js +21 -2
  321. package/dist/providers/coding-proxy/metering.d.ts +4 -0
  322. package/dist/providers/coding-proxy/metering.js +28 -2
  323. package/dist/providers/coding-proxy/prisma-ledger.d.ts +18 -1
  324. package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
  325. package/dist/providers/coding-proxy/proxy.d.ts +13 -0
  326. package/dist/providers/coding-proxy/proxy.js +479 -18
  327. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  328. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  329. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  330. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  331. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  332. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  333. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  334. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  335. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  336. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  337. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  338. package/dist/providers/coding-proxy/registry/store.js +70 -0
  339. package/dist/providers/coding-proxy/runtime.d.ts +18 -1
  340. package/dist/providers/coding-proxy/runtime.js +63 -0
  341. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  342. package/dist/providers/coding-proxy/server.d.ts +11 -0
  343. package/dist/providers/coding-proxy/server.js +163 -0
  344. package/dist/providers/coding-proxy/types.d.ts +15 -0
  345. package/dist/providers/datastore/postgres.d.ts +1 -1
  346. package/dist/providers/engine/types.d.ts +10 -0
  347. package/dist/providers/executor/build.d.ts +3 -3
  348. package/dist/providers/executor/composition.d.ts +4 -1
  349. package/dist/providers/executor/composition.js +19 -0
  350. package/dist/providers/executor/container.d.ts +106 -4
  351. package/dist/providers/executor/container.js +305 -22
  352. package/dist/providers/executor/dbos.d.ts +3 -4
  353. package/dist/providers/executor/in-process.d.ts +2 -3
  354. package/dist/providers/executor/routing.d.ts +7 -0
  355. package/dist/providers/executor/routing.js +13 -0
  356. package/dist/providers/executor/types.d.ts +22 -0
  357. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  358. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  359. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  360. package/dist/providers/jobs/collect-prune.js +27 -0
  361. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  362. package/dist/providers/jobs/docker-isolation.js +213 -22
  363. package/dist/providers/jobs/docker-services.d.ts +35 -0
  364. package/dist/providers/jobs/docker-services.js +191 -0
  365. package/dist/providers/jobs/docker.d.ts +60 -2
  366. package/dist/providers/jobs/docker.js +313 -50
  367. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  368. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  369. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  370. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  371. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  372. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  373. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  374. package/dist/providers/jobs/kubernetes.d.ts +21 -2
  375. package/dist/providers/jobs/kubernetes.js +117 -31
  376. package/dist/providers/jobs/types.d.ts +20 -0
  377. package/dist/providers/llm/anthropic.js +6 -2
  378. package/dist/providers/llm/bedrock.js +2 -1
  379. package/dist/providers/llm/claude-messages.d.ts +5 -1
  380. package/dist/providers/llm/claude-messages.js +1 -0
  381. package/dist/providers/llm/claude-provider.d.ts +3 -1
  382. package/dist/providers/llm/claude-provider.js +5 -1
  383. package/dist/providers/llm/index.d.ts +1 -1
  384. package/dist/providers/llm/index.js +1 -1
  385. package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
  386. package/dist/providers/llm/pricing-anthropic.js +32 -14
  387. package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
  388. package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
  389. package/dist/providers/llm/routing.d.ts +10 -1
  390. package/dist/providers/llm/routing.js +18 -0
  391. package/dist/providers/llm/types.d.ts +12 -0
  392. package/dist/providers/llm/types.js +8 -1
  393. package/dist/providers/memory/postgres.d.ts +1 -1
  394. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  395. package/dist/providers/review-host/diff-lines.js +59 -0
  396. package/dist/providers/review-host/github-events.d.ts +6 -0
  397. package/dist/providers/review-host/github-events.js +180 -0
  398. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  399. package/dist/providers/review-host/github-user-auth.js +128 -0
  400. package/dist/providers/review-host/github.d.ts +57 -0
  401. package/dist/providers/review-host/github.js +567 -0
  402. package/dist/providers/review-host/index.d.ts +12 -0
  403. package/dist/providers/review-host/index.js +30 -0
  404. package/dist/providers/review-host/review-format.d.ts +19 -0
  405. package/dist/providers/review-host/review-format.js +59 -0
  406. package/dist/providers/review-host/types.d.ts +284 -0
  407. package/dist/providers/review-host/types.js +24 -0
  408. package/dist/providers/vcs/git.d.ts +16 -6
  409. package/dist/providers/vcs/git.js +79 -14
  410. package/dist/providers/vcs/github.d.ts +74 -3
  411. package/dist/providers/vcs/github.js +195 -15
  412. package/dist/providers/vcs/types.d.ts +42 -4
  413. package/dist/quickstart/index.js +34 -32
  414. package/dist/quickstart/migrate.d.ts +23 -0
  415. package/dist/quickstart/migrate.js +125 -0
  416. package/dist/sandbox/fetch-policy.d.ts +20 -2
  417. package/dist/sandbox/fetch-policy.js +64 -3
  418. package/dist/sandbox/host-functions.d.ts +9 -1
  419. package/dist/sandbox/host-functions.js +12 -5
  420. package/dist/serve.js +1 -1
  421. package/dist/wardby-bin.js +6 -0
  422. package/docs/README.md +30 -0
  423. package/docs/architecture-runtime.md +90 -0
  424. package/docs/assets/brand/wardby-icon-512.png +0 -0
  425. package/docs/assets/brand/wardby-icon.svg +16 -0
  426. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  427. package/docs/assets/brand/wardby-mascot.png +0 -0
  428. package/docs/assets/brand/wardby-mascot.svg +5 -0
  429. package/docs/assets/wardby-workflow.svg +106 -0
  430. package/docs/code-review-agents.md +481 -0
  431. package/docs/coding-agent-setup.md +172 -0
  432. package/docs/coding-packages.md +455 -0
  433. package/docs/coding-services.md +300 -0
  434. package/docs/coding-worker-byo-images.md +98 -0
  435. package/docs/coding-worker-isolation.md +1061 -0
  436. package/docs/getting-started-gke.md +615 -0
  437. package/docs/getting-started-identity-provider.md +308 -0
  438. package/docs/getting-started.md +133 -0
  439. package/docs/observability.md +53 -0
  440. package/docs/release-verification.md +66 -0
  441. package/docs/security-deployment.md +657 -0
  442. package/help/code-review-agents.md +31 -0
  443. package/help/coding-packages.md +31 -0
  444. package/help/coding-services.md +71 -0
  445. package/help/creating-agents.md +68 -0
  446. package/help/deploy-gke.md +39 -0
  447. package/help/deployment-targets.md +39 -0
  448. package/help/errors/budget-group-exhausted.md +25 -0
  449. package/help/errors/docker-isolation-unsupported.md +26 -0
  450. package/help/errors/protected-path.md +45 -0
  451. package/help/errors/repo-access.md +27 -0
  452. package/help/errors/service-declaration-invalid.md +27 -0
  453. package/help/errors/service-declaration-unavailable.md +25 -0
  454. package/help/errors/service-launcher-unsupported.md +30 -0
  455. package/help/errors/service-not-allowed.md +27 -0
  456. package/help/errors/service-unknown.md +23 -0
  457. package/help/errors/service-unready.md +49 -0
  458. package/help/getting-started.md +31 -0
  459. package/help/github.md +30 -0
  460. package/help/identity-and-access.md +39 -0
  461. package/help/mcp.md +30 -0
  462. package/help/native-capabilities.md +30 -0
  463. package/help/observability.md +41 -0
  464. package/help/operating-agents.md +30 -0
  465. package/help/security.md +27 -0
  466. package/help/troubleshooting/budgets.md +26 -0
  467. package/help/troubleshooting/coding-workers.md +47 -0
  468. package/help/troubleshooting/repository-access.md +27 -0
  469. package/package.json +30 -11
  470. package/prisma/migrate.config.mjs +20 -0
  471. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  472. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  473. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  474. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  475. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  476. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  477. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  478. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  479. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  480. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  481. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  482. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  483. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  484. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  485. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  486. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  487. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  488. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  489. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  490. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  491. package/prisma/schema.prisma +417 -23
@@ -0,0 +1,2669 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model Run
6
+ *
7
+ */
8
+ export type RunModel = runtime.Types.Result.DefaultSelection<Prisma.$RunPayload>;
9
+ export type AggregateRun = {
10
+ _count: RunCountAggregateOutputType | null;
11
+ _avg: RunAvgAggregateOutputType | null;
12
+ _sum: RunSumAggregateOutputType | null;
13
+ _min: RunMinAggregateOutputType | null;
14
+ _max: RunMaxAggregateOutputType | null;
15
+ };
16
+ export type RunAvgAggregateOutputType = {
17
+ tokensIn: number | null;
18
+ tokensOut: number | null;
19
+ costUsd: runtime.Decimal | null;
20
+ turns: number | null;
21
+ };
22
+ export type RunSumAggregateOutputType = {
23
+ tokensIn: number | null;
24
+ tokensOut: number | null;
25
+ costUsd: runtime.Decimal | null;
26
+ turns: number | null;
27
+ };
28
+ export type RunMinAggregateOutputType = {
29
+ id: string | null;
30
+ agentId: string | null;
31
+ status: $Enums.RunStatus | null;
32
+ trigger: $Enums.RunTrigger | null;
33
+ tokensIn: number | null;
34
+ tokensOut: number | null;
35
+ costUsd: runtime.Decimal | null;
36
+ error: string | null;
37
+ startedAt: Date | null;
38
+ finishedAt: Date | null;
39
+ heartbeatAt: Date | null;
40
+ finalText: string | null;
41
+ turns: number | null;
42
+ executionManaged: boolean | null;
43
+ executionBackend: string | null;
44
+ parentRunId: string | null;
45
+ taskOverride: string | null;
46
+ triggeredById: string | null;
47
+ };
48
+ export type RunMaxAggregateOutputType = {
49
+ id: string | null;
50
+ agentId: string | null;
51
+ status: $Enums.RunStatus | null;
52
+ trigger: $Enums.RunTrigger | null;
53
+ tokensIn: number | null;
54
+ tokensOut: number | null;
55
+ costUsd: runtime.Decimal | null;
56
+ error: string | null;
57
+ startedAt: Date | null;
58
+ finishedAt: Date | null;
59
+ heartbeatAt: Date | null;
60
+ finalText: string | null;
61
+ turns: number | null;
62
+ executionManaged: boolean | null;
63
+ executionBackend: string | null;
64
+ parentRunId: string | null;
65
+ taskOverride: string | null;
66
+ triggeredById: string | null;
67
+ };
68
+ export type RunCountAggregateOutputType = {
69
+ id: number;
70
+ agentId: number;
71
+ status: number;
72
+ trigger: number;
73
+ tokensIn: number;
74
+ tokensOut: number;
75
+ costUsd: number;
76
+ error: number;
77
+ startedAt: number;
78
+ finishedAt: number;
79
+ heartbeatAt: number;
80
+ finalText: number;
81
+ turns: number;
82
+ executionManaged: number;
83
+ executionBackend: number;
84
+ parentRunId: number;
85
+ grantedParentMemoryKeys: number;
86
+ taskOverride: number;
87
+ triggeredById: number;
88
+ _all: number;
89
+ };
90
+ export type RunAvgAggregateInputType = {
91
+ tokensIn?: true;
92
+ tokensOut?: true;
93
+ costUsd?: true;
94
+ turns?: true;
95
+ };
96
+ export type RunSumAggregateInputType = {
97
+ tokensIn?: true;
98
+ tokensOut?: true;
99
+ costUsd?: true;
100
+ turns?: true;
101
+ };
102
+ export type RunMinAggregateInputType = {
103
+ id?: true;
104
+ agentId?: true;
105
+ status?: true;
106
+ trigger?: true;
107
+ tokensIn?: true;
108
+ tokensOut?: true;
109
+ costUsd?: true;
110
+ error?: true;
111
+ startedAt?: true;
112
+ finishedAt?: true;
113
+ heartbeatAt?: true;
114
+ finalText?: true;
115
+ turns?: true;
116
+ executionManaged?: true;
117
+ executionBackend?: true;
118
+ parentRunId?: true;
119
+ taskOverride?: true;
120
+ triggeredById?: true;
121
+ };
122
+ export type RunMaxAggregateInputType = {
123
+ id?: true;
124
+ agentId?: true;
125
+ status?: true;
126
+ trigger?: true;
127
+ tokensIn?: true;
128
+ tokensOut?: true;
129
+ costUsd?: true;
130
+ error?: true;
131
+ startedAt?: true;
132
+ finishedAt?: true;
133
+ heartbeatAt?: true;
134
+ finalText?: true;
135
+ turns?: true;
136
+ executionManaged?: true;
137
+ executionBackend?: true;
138
+ parentRunId?: true;
139
+ taskOverride?: true;
140
+ triggeredById?: true;
141
+ };
142
+ export type RunCountAggregateInputType = {
143
+ id?: true;
144
+ agentId?: true;
145
+ status?: true;
146
+ trigger?: true;
147
+ tokensIn?: true;
148
+ tokensOut?: true;
149
+ costUsd?: true;
150
+ error?: true;
151
+ startedAt?: true;
152
+ finishedAt?: true;
153
+ heartbeatAt?: true;
154
+ finalText?: true;
155
+ turns?: true;
156
+ executionManaged?: true;
157
+ executionBackend?: true;
158
+ parentRunId?: true;
159
+ grantedParentMemoryKeys?: true;
160
+ taskOverride?: true;
161
+ triggeredById?: true;
162
+ _all?: true;
163
+ };
164
+ export type RunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ /**
166
+ * Filter which Run to aggregate.
167
+ */
168
+ where?: Prisma.RunWhereInput;
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
171
+ *
172
+ * Determine the order of Runs to fetch.
173
+ */
174
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
177
+ *
178
+ * Sets the start position
179
+ */
180
+ cursor?: Prisma.RunWhereUniqueInput;
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
183
+ *
184
+ * Take `±n` Runs from the position of the cursor.
185
+ */
186
+ take?: number;
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
189
+ *
190
+ * Skip the first `n` Runs.
191
+ */
192
+ skip?: number;
193
+ /**
194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
+ *
196
+ * Count returned Runs
197
+ **/
198
+ _count?: true | RunCountAggregateInputType;
199
+ /**
200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
201
+ *
202
+ * Select which fields to average
203
+ **/
204
+ _avg?: RunAvgAggregateInputType;
205
+ /**
206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
207
+ *
208
+ * Select which fields to sum
209
+ **/
210
+ _sum?: RunSumAggregateInputType;
211
+ /**
212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
213
+ *
214
+ * Select which fields to find the minimum value
215
+ **/
216
+ _min?: RunMinAggregateInputType;
217
+ /**
218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
219
+ *
220
+ * Select which fields to find the maximum value
221
+ **/
222
+ _max?: RunMaxAggregateInputType;
223
+ };
224
+ export type GetRunAggregateType<T extends RunAggregateArgs> = {
225
+ [P in keyof T & keyof AggregateRun]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRun[P]> : Prisma.GetScalarType<T[P], AggregateRun[P]>;
226
+ };
227
+ export type RunGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
228
+ where?: Prisma.RunWhereInput;
229
+ orderBy?: Prisma.RunOrderByWithAggregationInput | Prisma.RunOrderByWithAggregationInput[];
230
+ by: Prisma.RunScalarFieldEnum[] | Prisma.RunScalarFieldEnum;
231
+ having?: Prisma.RunScalarWhereWithAggregatesInput;
232
+ take?: number;
233
+ skip?: number;
234
+ _count?: RunCountAggregateInputType | true;
235
+ _avg?: RunAvgAggregateInputType;
236
+ _sum?: RunSumAggregateInputType;
237
+ _min?: RunMinAggregateInputType;
238
+ _max?: RunMaxAggregateInputType;
239
+ };
240
+ export type RunGroupByOutputType = {
241
+ id: string;
242
+ agentId: string;
243
+ status: $Enums.RunStatus;
244
+ trigger: $Enums.RunTrigger;
245
+ tokensIn: number;
246
+ tokensOut: number;
247
+ costUsd: runtime.Decimal;
248
+ error: string | null;
249
+ startedAt: Date;
250
+ finishedAt: Date | null;
251
+ heartbeatAt: Date | null;
252
+ finalText: string | null;
253
+ turns: number;
254
+ executionManaged: boolean;
255
+ executionBackend: string | null;
256
+ parentRunId: string | null;
257
+ grantedParentMemoryKeys: string[];
258
+ taskOverride: string | null;
259
+ triggeredById: string | null;
260
+ _count: RunCountAggregateOutputType | null;
261
+ _avg: RunAvgAggregateOutputType | null;
262
+ _sum: RunSumAggregateOutputType | null;
263
+ _min: RunMinAggregateOutputType | null;
264
+ _max: RunMaxAggregateOutputType | null;
265
+ };
266
+ export type GetRunGroupByPayload<T extends RunGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RunGroupByOutputType, T['by']> & {
267
+ [P in ((keyof T) & (keyof RunGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RunGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RunGroupByOutputType[P]>;
268
+ }>>;
269
+ export type RunWhereInput = {
270
+ AND?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
271
+ OR?: Prisma.RunWhereInput[];
272
+ NOT?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
273
+ id?: Prisma.StringFilter<"Run"> | string;
274
+ agentId?: Prisma.StringFilter<"Run"> | string;
275
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
276
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
277
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
278
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
279
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
280
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
281
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
282
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
283
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
284
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
285
+ turns?: Prisma.IntFilter<"Run"> | number;
286
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
287
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
288
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
289
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
290
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
291
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
292
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
293
+ codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
294
+ hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
295
+ hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
296
+ parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
297
+ childRuns?: Prisma.RunListRelationFilter;
298
+ };
299
+ export type RunOrderByWithRelationInput = {
300
+ id?: Prisma.SortOrder;
301
+ agentId?: Prisma.SortOrder;
302
+ status?: Prisma.SortOrder;
303
+ trigger?: Prisma.SortOrder;
304
+ tokensIn?: Prisma.SortOrder;
305
+ tokensOut?: Prisma.SortOrder;
306
+ costUsd?: Prisma.SortOrder;
307
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
308
+ startedAt?: Prisma.SortOrder;
309
+ finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
310
+ heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
311
+ finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
312
+ turns?: Prisma.SortOrder;
313
+ executionManaged?: Prisma.SortOrder;
314
+ executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
315
+ parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ grantedParentMemoryKeys?: Prisma.SortOrder;
317
+ taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
318
+ triggeredById?: Prisma.SortOrderInput | Prisma.SortOrder;
319
+ agent?: Prisma.AgentOrderByWithRelationInput;
320
+ codingRun?: Prisma.CodingRunOrderByWithRelationInput;
321
+ hostCheck?: Prisma.RunHostCheckOrderByWithRelationInput;
322
+ hostStatus?: Prisma.RunHostStatusOrderByWithRelationInput;
323
+ parentRun?: Prisma.RunOrderByWithRelationInput;
324
+ childRuns?: Prisma.RunOrderByRelationAggregateInput;
325
+ };
326
+ export type RunWhereUniqueInput = Prisma.AtLeast<{
327
+ id?: string;
328
+ AND?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
329
+ OR?: Prisma.RunWhereInput[];
330
+ NOT?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
331
+ agentId?: Prisma.StringFilter<"Run"> | string;
332
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
333
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
334
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
335
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
336
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
337
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
338
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
339
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
340
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
341
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
342
+ turns?: Prisma.IntFilter<"Run"> | number;
343
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
344
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
345
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
346
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
347
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
348
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
349
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
350
+ codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
351
+ hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
352
+ hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
353
+ parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
354
+ childRuns?: Prisma.RunListRelationFilter;
355
+ }, "id">;
356
+ export type RunOrderByWithAggregationInput = {
357
+ id?: Prisma.SortOrder;
358
+ agentId?: Prisma.SortOrder;
359
+ status?: Prisma.SortOrder;
360
+ trigger?: Prisma.SortOrder;
361
+ tokensIn?: Prisma.SortOrder;
362
+ tokensOut?: Prisma.SortOrder;
363
+ costUsd?: Prisma.SortOrder;
364
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
365
+ startedAt?: Prisma.SortOrder;
366
+ finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
367
+ heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
368
+ finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
369
+ turns?: Prisma.SortOrder;
370
+ executionManaged?: Prisma.SortOrder;
371
+ executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
372
+ parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
373
+ grantedParentMemoryKeys?: Prisma.SortOrder;
374
+ taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
375
+ triggeredById?: Prisma.SortOrderInput | Prisma.SortOrder;
376
+ _count?: Prisma.RunCountOrderByAggregateInput;
377
+ _avg?: Prisma.RunAvgOrderByAggregateInput;
378
+ _max?: Prisma.RunMaxOrderByAggregateInput;
379
+ _min?: Prisma.RunMinOrderByAggregateInput;
380
+ _sum?: Prisma.RunSumOrderByAggregateInput;
381
+ };
382
+ export type RunScalarWhereWithAggregatesInput = {
383
+ AND?: Prisma.RunScalarWhereWithAggregatesInput | Prisma.RunScalarWhereWithAggregatesInput[];
384
+ OR?: Prisma.RunScalarWhereWithAggregatesInput[];
385
+ NOT?: Prisma.RunScalarWhereWithAggregatesInput | Prisma.RunScalarWhereWithAggregatesInput[];
386
+ id?: Prisma.StringWithAggregatesFilter<"Run"> | string;
387
+ agentId?: Prisma.StringWithAggregatesFilter<"Run"> | string;
388
+ status?: Prisma.EnumRunStatusWithAggregatesFilter<"Run"> | $Enums.RunStatus;
389
+ trigger?: Prisma.EnumRunTriggerWithAggregatesFilter<"Run"> | $Enums.RunTrigger;
390
+ tokensIn?: Prisma.IntWithAggregatesFilter<"Run"> | number;
391
+ tokensOut?: Prisma.IntWithAggregatesFilter<"Run"> | number;
392
+ costUsd?: Prisma.DecimalWithAggregatesFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
393
+ error?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
394
+ startedAt?: Prisma.DateTimeWithAggregatesFilter<"Run"> | Date | string;
395
+ finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Run"> | Date | string | null;
396
+ heartbeatAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Run"> | Date | string | null;
397
+ finalText?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
398
+ turns?: Prisma.IntWithAggregatesFilter<"Run"> | number;
399
+ executionManaged?: Prisma.BoolWithAggregatesFilter<"Run"> | boolean;
400
+ executionBackend?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
401
+ parentRunId?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
402
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
403
+ taskOverride?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
404
+ triggeredById?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
405
+ };
406
+ export type RunCreateInput = {
407
+ id?: string;
408
+ status?: $Enums.RunStatus;
409
+ trigger?: $Enums.RunTrigger;
410
+ tokensIn?: number;
411
+ tokensOut?: number;
412
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
413
+ error?: string | null;
414
+ startedAt?: Date | string;
415
+ finishedAt?: Date | string | null;
416
+ heartbeatAt?: Date | string | null;
417
+ finalText?: string | null;
418
+ turns?: number;
419
+ executionManaged?: boolean;
420
+ executionBackend?: string | null;
421
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
422
+ taskOverride?: string | null;
423
+ triggeredById?: string | null;
424
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
425
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
426
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
427
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
428
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
429
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
430
+ };
431
+ export type RunUncheckedCreateInput = {
432
+ id?: string;
433
+ agentId: string;
434
+ status?: $Enums.RunStatus;
435
+ trigger?: $Enums.RunTrigger;
436
+ tokensIn?: number;
437
+ tokensOut?: number;
438
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
439
+ error?: string | null;
440
+ startedAt?: Date | string;
441
+ finishedAt?: Date | string | null;
442
+ heartbeatAt?: Date | string | null;
443
+ finalText?: string | null;
444
+ turns?: number;
445
+ executionManaged?: boolean;
446
+ executionBackend?: string | null;
447
+ parentRunId?: string | null;
448
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
449
+ taskOverride?: string | null;
450
+ triggeredById?: string | null;
451
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
452
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
453
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
454
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
455
+ };
456
+ export type RunUpdateInput = {
457
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
458
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
459
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
460
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
461
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
462
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
463
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
464
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
465
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
466
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
467
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
468
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
469
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
470
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
472
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
474
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
475
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
476
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
477
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
478
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
479
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
480
+ };
481
+ export type RunUncheckedUpdateInput = {
482
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
483
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
484
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
485
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
486
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
487
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
488
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
489
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
490
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
491
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
492
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
493
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
495
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
496
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
498
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
499
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
500
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
501
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
502
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
503
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
504
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
505
+ };
506
+ export type RunCreateManyInput = {
507
+ id?: string;
508
+ agentId: string;
509
+ status?: $Enums.RunStatus;
510
+ trigger?: $Enums.RunTrigger;
511
+ tokensIn?: number;
512
+ tokensOut?: number;
513
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
514
+ error?: string | null;
515
+ startedAt?: Date | string;
516
+ finishedAt?: Date | string | null;
517
+ heartbeatAt?: Date | string | null;
518
+ finalText?: string | null;
519
+ turns?: number;
520
+ executionManaged?: boolean;
521
+ executionBackend?: string | null;
522
+ parentRunId?: string | null;
523
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
524
+ taskOverride?: string | null;
525
+ triggeredById?: string | null;
526
+ };
527
+ export type RunUpdateManyMutationInput = {
528
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
529
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
530
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
531
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
532
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
533
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
534
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
535
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
536
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
537
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
538
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
539
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
540
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
541
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
542
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
543
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
544
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
545
+ };
546
+ export type RunUncheckedUpdateManyInput = {
547
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
548
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
549
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
550
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
551
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
552
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
553
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
554
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
555
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
556
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
557
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
558
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
559
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
560
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
561
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
562
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
563
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
564
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
565
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
566
+ };
567
+ export type RunListRelationFilter = {
568
+ every?: Prisma.RunWhereInput;
569
+ some?: Prisma.RunWhereInput;
570
+ none?: Prisma.RunWhereInput;
571
+ };
572
+ export type RunOrderByRelationAggregateInput = {
573
+ _count?: Prisma.SortOrder;
574
+ };
575
+ export type StringNullableListFilter<$PrismaModel = never> = {
576
+ equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
577
+ has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
578
+ hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
579
+ hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
580
+ isEmpty?: boolean;
581
+ };
582
+ export type RunNullableScalarRelationFilter = {
583
+ is?: Prisma.RunWhereInput | null;
584
+ isNot?: Prisma.RunWhereInput | null;
585
+ };
586
+ export type RunCountOrderByAggregateInput = {
587
+ id?: Prisma.SortOrder;
588
+ agentId?: Prisma.SortOrder;
589
+ status?: Prisma.SortOrder;
590
+ trigger?: Prisma.SortOrder;
591
+ tokensIn?: Prisma.SortOrder;
592
+ tokensOut?: Prisma.SortOrder;
593
+ costUsd?: Prisma.SortOrder;
594
+ error?: Prisma.SortOrder;
595
+ startedAt?: Prisma.SortOrder;
596
+ finishedAt?: Prisma.SortOrder;
597
+ heartbeatAt?: Prisma.SortOrder;
598
+ finalText?: Prisma.SortOrder;
599
+ turns?: Prisma.SortOrder;
600
+ executionManaged?: Prisma.SortOrder;
601
+ executionBackend?: Prisma.SortOrder;
602
+ parentRunId?: Prisma.SortOrder;
603
+ grantedParentMemoryKeys?: Prisma.SortOrder;
604
+ taskOverride?: Prisma.SortOrder;
605
+ triggeredById?: Prisma.SortOrder;
606
+ };
607
+ export type RunAvgOrderByAggregateInput = {
608
+ tokensIn?: Prisma.SortOrder;
609
+ tokensOut?: Prisma.SortOrder;
610
+ costUsd?: Prisma.SortOrder;
611
+ turns?: Prisma.SortOrder;
612
+ };
613
+ export type RunMaxOrderByAggregateInput = {
614
+ id?: Prisma.SortOrder;
615
+ agentId?: Prisma.SortOrder;
616
+ status?: Prisma.SortOrder;
617
+ trigger?: Prisma.SortOrder;
618
+ tokensIn?: Prisma.SortOrder;
619
+ tokensOut?: Prisma.SortOrder;
620
+ costUsd?: Prisma.SortOrder;
621
+ error?: Prisma.SortOrder;
622
+ startedAt?: Prisma.SortOrder;
623
+ finishedAt?: Prisma.SortOrder;
624
+ heartbeatAt?: Prisma.SortOrder;
625
+ finalText?: Prisma.SortOrder;
626
+ turns?: Prisma.SortOrder;
627
+ executionManaged?: Prisma.SortOrder;
628
+ executionBackend?: Prisma.SortOrder;
629
+ parentRunId?: Prisma.SortOrder;
630
+ taskOverride?: Prisma.SortOrder;
631
+ triggeredById?: Prisma.SortOrder;
632
+ };
633
+ export type RunMinOrderByAggregateInput = {
634
+ id?: Prisma.SortOrder;
635
+ agentId?: Prisma.SortOrder;
636
+ status?: Prisma.SortOrder;
637
+ trigger?: Prisma.SortOrder;
638
+ tokensIn?: Prisma.SortOrder;
639
+ tokensOut?: Prisma.SortOrder;
640
+ costUsd?: Prisma.SortOrder;
641
+ error?: Prisma.SortOrder;
642
+ startedAt?: Prisma.SortOrder;
643
+ finishedAt?: Prisma.SortOrder;
644
+ heartbeatAt?: Prisma.SortOrder;
645
+ finalText?: Prisma.SortOrder;
646
+ turns?: Prisma.SortOrder;
647
+ executionManaged?: Prisma.SortOrder;
648
+ executionBackend?: Prisma.SortOrder;
649
+ parentRunId?: Prisma.SortOrder;
650
+ taskOverride?: Prisma.SortOrder;
651
+ triggeredById?: Prisma.SortOrder;
652
+ };
653
+ export type RunSumOrderByAggregateInput = {
654
+ tokensIn?: Prisma.SortOrder;
655
+ tokensOut?: Prisma.SortOrder;
656
+ costUsd?: Prisma.SortOrder;
657
+ turns?: Prisma.SortOrder;
658
+ };
659
+ export type RunScalarRelationFilter = {
660
+ is?: Prisma.RunWhereInput;
661
+ isNot?: Prisma.RunWhereInput;
662
+ };
663
+ export type RunCreateNestedManyWithoutAgentInput = {
664
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
665
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
666
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
667
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
668
+ };
669
+ export type RunUncheckedCreateNestedManyWithoutAgentInput = {
670
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
671
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
672
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
673
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
674
+ };
675
+ export type RunUpdateManyWithoutAgentNestedInput = {
676
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
677
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
678
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutAgentInput | Prisma.RunUpsertWithWhereUniqueWithoutAgentInput[];
679
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
680
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
681
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
682
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
683
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
684
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutAgentInput | Prisma.RunUpdateWithWhereUniqueWithoutAgentInput[];
685
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutAgentInput | Prisma.RunUpdateManyWithWhereWithoutAgentInput[];
686
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
687
+ };
688
+ export type RunUncheckedUpdateManyWithoutAgentNestedInput = {
689
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
690
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
691
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutAgentInput | Prisma.RunUpsertWithWhereUniqueWithoutAgentInput[];
692
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
693
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
694
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
695
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
696
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
697
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutAgentInput | Prisma.RunUpdateWithWhereUniqueWithoutAgentInput[];
698
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutAgentInput | Prisma.RunUpdateManyWithWhereWithoutAgentInput[];
699
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
700
+ };
701
+ export type RunCreategrantedParentMemoryKeysInput = {
702
+ set: string[];
703
+ };
704
+ export type RunCreateNestedOneWithoutChildRunsInput = {
705
+ create?: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
706
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutChildRunsInput;
707
+ connect?: Prisma.RunWhereUniqueInput;
708
+ };
709
+ export type RunCreateNestedManyWithoutParentRunInput = {
710
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
711
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
712
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
713
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
714
+ };
715
+ export type RunUncheckedCreateNestedManyWithoutParentRunInput = {
716
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
717
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
718
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
719
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
720
+ };
721
+ export type EnumRunStatusFieldUpdateOperationsInput = {
722
+ set?: $Enums.RunStatus;
723
+ };
724
+ export type EnumRunTriggerFieldUpdateOperationsInput = {
725
+ set?: $Enums.RunTrigger;
726
+ };
727
+ export type RunUpdategrantedParentMemoryKeysInput = {
728
+ set?: string[];
729
+ push?: string | string[];
730
+ };
731
+ export type RunUpdateOneWithoutChildRunsNestedInput = {
732
+ create?: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
733
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutChildRunsInput;
734
+ upsert?: Prisma.RunUpsertWithoutChildRunsInput;
735
+ disconnect?: Prisma.RunWhereInput | boolean;
736
+ delete?: Prisma.RunWhereInput | boolean;
737
+ connect?: Prisma.RunWhereUniqueInput;
738
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutChildRunsInput, Prisma.RunUpdateWithoutChildRunsInput>, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
739
+ };
740
+ export type RunUpdateManyWithoutParentRunNestedInput = {
741
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
742
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
743
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput | Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput[];
744
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
745
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
746
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
747
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
748
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
749
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput | Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput[];
750
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutParentRunInput | Prisma.RunUpdateManyWithWhereWithoutParentRunInput[];
751
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
752
+ };
753
+ export type RunUncheckedUpdateManyWithoutParentRunNestedInput = {
754
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
755
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
756
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput | Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput[];
757
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
758
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
759
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
760
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
761
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
762
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput | Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput[];
763
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutParentRunInput | Prisma.RunUpdateManyWithWhereWithoutParentRunInput[];
764
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
765
+ };
766
+ export type RunCreateNestedOneWithoutCodingRunInput = {
767
+ create?: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
768
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutCodingRunInput;
769
+ connect?: Prisma.RunWhereUniqueInput;
770
+ };
771
+ export type RunUpdateOneRequiredWithoutCodingRunNestedInput = {
772
+ create?: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
773
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutCodingRunInput;
774
+ upsert?: Prisma.RunUpsertWithoutCodingRunInput;
775
+ connect?: Prisma.RunWhereUniqueInput;
776
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutCodingRunInput, Prisma.RunUpdateWithoutCodingRunInput>, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
777
+ };
778
+ export type RunCreateNestedOneWithoutHostCheckInput = {
779
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
780
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
781
+ connect?: Prisma.RunWhereUniqueInput;
782
+ };
783
+ export type RunUpdateOneRequiredWithoutHostCheckNestedInput = {
784
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
785
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
786
+ upsert?: Prisma.RunUpsertWithoutHostCheckInput;
787
+ connect?: Prisma.RunWhereUniqueInput;
788
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostCheckInput, Prisma.RunUpdateWithoutHostCheckInput>, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
789
+ };
790
+ export type RunCreateNestedOneWithoutHostStatusInput = {
791
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
792
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostStatusInput;
793
+ connect?: Prisma.RunWhereUniqueInput;
794
+ };
795
+ export type RunUpdateOneRequiredWithoutHostStatusNestedInput = {
796
+ create?: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
797
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostStatusInput;
798
+ upsert?: Prisma.RunUpsertWithoutHostStatusInput;
799
+ connect?: Prisma.RunWhereUniqueInput;
800
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostStatusInput, Prisma.RunUpdateWithoutHostStatusInput>, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
801
+ };
802
+ export type RunCreateWithoutAgentInput = {
803
+ id?: string;
804
+ status?: $Enums.RunStatus;
805
+ trigger?: $Enums.RunTrigger;
806
+ tokensIn?: number;
807
+ tokensOut?: number;
808
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
809
+ error?: string | null;
810
+ startedAt?: Date | string;
811
+ finishedAt?: Date | string | null;
812
+ heartbeatAt?: Date | string | null;
813
+ finalText?: string | null;
814
+ turns?: number;
815
+ executionManaged?: boolean;
816
+ executionBackend?: string | null;
817
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
818
+ taskOverride?: string | null;
819
+ triggeredById?: string | null;
820
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
821
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
822
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
823
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
824
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
825
+ };
826
+ export type RunUncheckedCreateWithoutAgentInput = {
827
+ id?: string;
828
+ status?: $Enums.RunStatus;
829
+ trigger?: $Enums.RunTrigger;
830
+ tokensIn?: number;
831
+ tokensOut?: number;
832
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
833
+ error?: string | null;
834
+ startedAt?: Date | string;
835
+ finishedAt?: Date | string | null;
836
+ heartbeatAt?: Date | string | null;
837
+ finalText?: string | null;
838
+ turns?: number;
839
+ executionManaged?: boolean;
840
+ executionBackend?: string | null;
841
+ parentRunId?: string | null;
842
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
843
+ taskOverride?: string | null;
844
+ triggeredById?: string | null;
845
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
846
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
847
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
848
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
849
+ };
850
+ export type RunCreateOrConnectWithoutAgentInput = {
851
+ where: Prisma.RunWhereUniqueInput;
852
+ create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
853
+ };
854
+ export type RunCreateManyAgentInputEnvelope = {
855
+ data: Prisma.RunCreateManyAgentInput | Prisma.RunCreateManyAgentInput[];
856
+ skipDuplicates?: boolean;
857
+ };
858
+ export type RunUpsertWithWhereUniqueWithoutAgentInput = {
859
+ where: Prisma.RunWhereUniqueInput;
860
+ update: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
861
+ create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
862
+ };
863
+ export type RunUpdateWithWhereUniqueWithoutAgentInput = {
864
+ where: Prisma.RunWhereUniqueInput;
865
+ data: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
866
+ };
867
+ export type RunUpdateManyWithWhereWithoutAgentInput = {
868
+ where: Prisma.RunScalarWhereInput;
869
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutAgentInput>;
870
+ };
871
+ export type RunScalarWhereInput = {
872
+ AND?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
873
+ OR?: Prisma.RunScalarWhereInput[];
874
+ NOT?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
875
+ id?: Prisma.StringFilter<"Run"> | string;
876
+ agentId?: Prisma.StringFilter<"Run"> | string;
877
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
878
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
879
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
880
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
881
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
882
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
883
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
884
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
885
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
886
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
887
+ turns?: Prisma.IntFilter<"Run"> | number;
888
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
889
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
890
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
891
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
892
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
893
+ triggeredById?: Prisma.StringNullableFilter<"Run"> | string | null;
894
+ };
895
+ export type RunCreateWithoutChildRunsInput = {
896
+ id?: string;
897
+ status?: $Enums.RunStatus;
898
+ trigger?: $Enums.RunTrigger;
899
+ tokensIn?: number;
900
+ tokensOut?: number;
901
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
902
+ error?: string | null;
903
+ startedAt?: Date | string;
904
+ finishedAt?: Date | string | null;
905
+ heartbeatAt?: Date | string | null;
906
+ finalText?: string | null;
907
+ turns?: number;
908
+ executionManaged?: boolean;
909
+ executionBackend?: string | null;
910
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
911
+ taskOverride?: string | null;
912
+ triggeredById?: string | null;
913
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
914
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
915
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
916
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
917
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
918
+ };
919
+ export type RunUncheckedCreateWithoutChildRunsInput = {
920
+ id?: string;
921
+ agentId: string;
922
+ status?: $Enums.RunStatus;
923
+ trigger?: $Enums.RunTrigger;
924
+ tokensIn?: number;
925
+ tokensOut?: number;
926
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
927
+ error?: string | null;
928
+ startedAt?: Date | string;
929
+ finishedAt?: Date | string | null;
930
+ heartbeatAt?: Date | string | null;
931
+ finalText?: string | null;
932
+ turns?: number;
933
+ executionManaged?: boolean;
934
+ executionBackend?: string | null;
935
+ parentRunId?: string | null;
936
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
937
+ taskOverride?: string | null;
938
+ triggeredById?: string | null;
939
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
940
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
941
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
942
+ };
943
+ export type RunCreateOrConnectWithoutChildRunsInput = {
944
+ where: Prisma.RunWhereUniqueInput;
945
+ create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
946
+ };
947
+ export type RunCreateWithoutParentRunInput = {
948
+ id?: string;
949
+ status?: $Enums.RunStatus;
950
+ trigger?: $Enums.RunTrigger;
951
+ tokensIn?: number;
952
+ tokensOut?: number;
953
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
954
+ error?: string | null;
955
+ startedAt?: Date | string;
956
+ finishedAt?: Date | string | null;
957
+ heartbeatAt?: Date | string | null;
958
+ finalText?: string | null;
959
+ turns?: number;
960
+ executionManaged?: boolean;
961
+ executionBackend?: string | null;
962
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
963
+ taskOverride?: string | null;
964
+ triggeredById?: string | null;
965
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
966
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
967
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
968
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
969
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
970
+ };
971
+ export type RunUncheckedCreateWithoutParentRunInput = {
972
+ id?: string;
973
+ agentId: string;
974
+ status?: $Enums.RunStatus;
975
+ trigger?: $Enums.RunTrigger;
976
+ tokensIn?: number;
977
+ tokensOut?: number;
978
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
979
+ error?: string | null;
980
+ startedAt?: Date | string;
981
+ finishedAt?: Date | string | null;
982
+ heartbeatAt?: Date | string | null;
983
+ finalText?: string | null;
984
+ turns?: number;
985
+ executionManaged?: boolean;
986
+ executionBackend?: string | null;
987
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
988
+ taskOverride?: string | null;
989
+ triggeredById?: string | null;
990
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
991
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
992
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
993
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
994
+ };
995
+ export type RunCreateOrConnectWithoutParentRunInput = {
996
+ where: Prisma.RunWhereUniqueInput;
997
+ create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
998
+ };
999
+ export type RunCreateManyParentRunInputEnvelope = {
1000
+ data: Prisma.RunCreateManyParentRunInput | Prisma.RunCreateManyParentRunInput[];
1001
+ skipDuplicates?: boolean;
1002
+ };
1003
+ export type RunUpsertWithoutChildRunsInput = {
1004
+ update: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
1005
+ create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
1006
+ where?: Prisma.RunWhereInput;
1007
+ };
1008
+ export type RunUpdateToOneWithWhereWithoutChildRunsInput = {
1009
+ where?: Prisma.RunWhereInput;
1010
+ data: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
1011
+ };
1012
+ export type RunUpdateWithoutChildRunsInput = {
1013
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1014
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1015
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1016
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1017
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1018
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1019
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1021
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1022
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1023
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1024
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1025
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1026
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1027
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1028
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1030
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1031
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1032
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1033
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1034
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1035
+ };
1036
+ export type RunUncheckedUpdateWithoutChildRunsInput = {
1037
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1038
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1039
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1040
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1041
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1042
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1043
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1044
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1045
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1046
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1047
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1048
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1049
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1050
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1051
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1052
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1053
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1054
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1056
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1057
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1058
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1059
+ };
1060
+ export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
1061
+ where: Prisma.RunWhereUniqueInput;
1062
+ update: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
1063
+ create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
1064
+ };
1065
+ export type RunUpdateWithWhereUniqueWithoutParentRunInput = {
1066
+ where: Prisma.RunWhereUniqueInput;
1067
+ data: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
1068
+ };
1069
+ export type RunUpdateManyWithWhereWithoutParentRunInput = {
1070
+ where: Prisma.RunScalarWhereInput;
1071
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutParentRunInput>;
1072
+ };
1073
+ export type RunCreateWithoutCodingRunInput = {
1074
+ id?: string;
1075
+ status?: $Enums.RunStatus;
1076
+ trigger?: $Enums.RunTrigger;
1077
+ tokensIn?: number;
1078
+ tokensOut?: number;
1079
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1080
+ error?: string | null;
1081
+ startedAt?: Date | string;
1082
+ finishedAt?: Date | string | null;
1083
+ heartbeatAt?: Date | string | null;
1084
+ finalText?: string | null;
1085
+ turns?: number;
1086
+ executionManaged?: boolean;
1087
+ executionBackend?: string | null;
1088
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1089
+ taskOverride?: string | null;
1090
+ triggeredById?: string | null;
1091
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1092
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1093
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1094
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1095
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1096
+ };
1097
+ export type RunUncheckedCreateWithoutCodingRunInput = {
1098
+ id?: string;
1099
+ agentId: string;
1100
+ status?: $Enums.RunStatus;
1101
+ trigger?: $Enums.RunTrigger;
1102
+ tokensIn?: number;
1103
+ tokensOut?: number;
1104
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1105
+ error?: string | null;
1106
+ startedAt?: Date | string;
1107
+ finishedAt?: Date | string | null;
1108
+ heartbeatAt?: Date | string | null;
1109
+ finalText?: string | null;
1110
+ turns?: number;
1111
+ executionManaged?: boolean;
1112
+ executionBackend?: string | null;
1113
+ parentRunId?: string | null;
1114
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1115
+ taskOverride?: string | null;
1116
+ triggeredById?: string | null;
1117
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1118
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1119
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1120
+ };
1121
+ export type RunCreateOrConnectWithoutCodingRunInput = {
1122
+ where: Prisma.RunWhereUniqueInput;
1123
+ create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
1124
+ };
1125
+ export type RunUpsertWithoutCodingRunInput = {
1126
+ update: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1127
+ create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
1128
+ where?: Prisma.RunWhereInput;
1129
+ };
1130
+ export type RunUpdateToOneWithWhereWithoutCodingRunInput = {
1131
+ where?: Prisma.RunWhereInput;
1132
+ data: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1133
+ };
1134
+ export type RunUpdateWithoutCodingRunInput = {
1135
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1136
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1137
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1138
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1139
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1140
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1141
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1142
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1143
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1144
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1145
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1146
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1147
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1148
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1149
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1150
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1151
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1152
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1153
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1154
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1155
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1156
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1157
+ };
1158
+ export type RunUncheckedUpdateWithoutCodingRunInput = {
1159
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1160
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1161
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1162
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1163
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1164
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1165
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1166
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1167
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1168
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1169
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1170
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1171
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1172
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1173
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1174
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1175
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1176
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1177
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1178
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1179
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1180
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1181
+ };
1182
+ export type RunCreateWithoutHostCheckInput = {
1183
+ id?: string;
1184
+ status?: $Enums.RunStatus;
1185
+ trigger?: $Enums.RunTrigger;
1186
+ tokensIn?: number;
1187
+ tokensOut?: number;
1188
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1189
+ error?: string | null;
1190
+ startedAt?: Date | string;
1191
+ finishedAt?: Date | string | null;
1192
+ heartbeatAt?: Date | string | null;
1193
+ finalText?: string | null;
1194
+ turns?: number;
1195
+ executionManaged?: boolean;
1196
+ executionBackend?: string | null;
1197
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1198
+ taskOverride?: string | null;
1199
+ triggeredById?: string | null;
1200
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1201
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1202
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1203
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1204
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1205
+ };
1206
+ export type RunUncheckedCreateWithoutHostCheckInput = {
1207
+ id?: string;
1208
+ agentId: string;
1209
+ status?: $Enums.RunStatus;
1210
+ trigger?: $Enums.RunTrigger;
1211
+ tokensIn?: number;
1212
+ tokensOut?: number;
1213
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1214
+ error?: string | null;
1215
+ startedAt?: Date | string;
1216
+ finishedAt?: Date | string | null;
1217
+ heartbeatAt?: Date | string | null;
1218
+ finalText?: string | null;
1219
+ turns?: number;
1220
+ executionManaged?: boolean;
1221
+ executionBackend?: string | null;
1222
+ parentRunId?: string | null;
1223
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1224
+ taskOverride?: string | null;
1225
+ triggeredById?: string | null;
1226
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1227
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1228
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1229
+ };
1230
+ export type RunCreateOrConnectWithoutHostCheckInput = {
1231
+ where: Prisma.RunWhereUniqueInput;
1232
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
1233
+ };
1234
+ export type RunUpsertWithoutHostCheckInput = {
1235
+ update: Prisma.XOR<Prisma.RunUpdateWithoutHostCheckInput, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
1236
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
1237
+ where?: Prisma.RunWhereInput;
1238
+ };
1239
+ export type RunUpdateToOneWithWhereWithoutHostCheckInput = {
1240
+ where?: Prisma.RunWhereInput;
1241
+ data: Prisma.XOR<Prisma.RunUpdateWithoutHostCheckInput, Prisma.RunUncheckedUpdateWithoutHostCheckInput>;
1242
+ };
1243
+ export type RunUpdateWithoutHostCheckInput = {
1244
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1245
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1246
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1247
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1248
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1249
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1250
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1251
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1252
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1253
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1254
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1255
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1256
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1257
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1258
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1259
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1260
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1261
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1262
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1263
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1264
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1265
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1266
+ };
1267
+ export type RunUncheckedUpdateWithoutHostCheckInput = {
1268
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1269
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1270
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1271
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1272
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1273
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1274
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1275
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1276
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1277
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1278
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1279
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1280
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1281
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1282
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1283
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1284
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1285
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1286
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1287
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1288
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1289
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1290
+ };
1291
+ export type RunCreateWithoutHostStatusInput = {
1292
+ id?: string;
1293
+ status?: $Enums.RunStatus;
1294
+ trigger?: $Enums.RunTrigger;
1295
+ tokensIn?: number;
1296
+ tokensOut?: number;
1297
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1298
+ error?: string | null;
1299
+ startedAt?: Date | string;
1300
+ finishedAt?: Date | string | null;
1301
+ heartbeatAt?: Date | string | null;
1302
+ finalText?: string | null;
1303
+ turns?: number;
1304
+ executionManaged?: boolean;
1305
+ executionBackend?: string | null;
1306
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1307
+ taskOverride?: string | null;
1308
+ triggeredById?: string | null;
1309
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1310
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1311
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1312
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1313
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1314
+ };
1315
+ export type RunUncheckedCreateWithoutHostStatusInput = {
1316
+ id?: string;
1317
+ agentId: string;
1318
+ status?: $Enums.RunStatus;
1319
+ trigger?: $Enums.RunTrigger;
1320
+ tokensIn?: number;
1321
+ tokensOut?: number;
1322
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1323
+ error?: string | null;
1324
+ startedAt?: Date | string;
1325
+ finishedAt?: Date | string | null;
1326
+ heartbeatAt?: Date | string | null;
1327
+ finalText?: string | null;
1328
+ turns?: number;
1329
+ executionManaged?: boolean;
1330
+ executionBackend?: string | null;
1331
+ parentRunId?: string | null;
1332
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1333
+ taskOverride?: string | null;
1334
+ triggeredById?: string | null;
1335
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1336
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1337
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1338
+ };
1339
+ export type RunCreateOrConnectWithoutHostStatusInput = {
1340
+ where: Prisma.RunWhereUniqueInput;
1341
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
1342
+ };
1343
+ export type RunUpsertWithoutHostStatusInput = {
1344
+ update: Prisma.XOR<Prisma.RunUpdateWithoutHostStatusInput, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
1345
+ create: Prisma.XOR<Prisma.RunCreateWithoutHostStatusInput, Prisma.RunUncheckedCreateWithoutHostStatusInput>;
1346
+ where?: Prisma.RunWhereInput;
1347
+ };
1348
+ export type RunUpdateToOneWithWhereWithoutHostStatusInput = {
1349
+ where?: Prisma.RunWhereInput;
1350
+ data: Prisma.XOR<Prisma.RunUpdateWithoutHostStatusInput, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
1351
+ };
1352
+ export type RunUpdateWithoutHostStatusInput = {
1353
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1354
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1355
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1356
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1357
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1358
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1359
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1360
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1361
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1362
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1363
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1364
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1365
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1366
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1367
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1368
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1369
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1370
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1371
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1372
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1373
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1374
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1375
+ };
1376
+ export type RunUncheckedUpdateWithoutHostStatusInput = {
1377
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1378
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1379
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1380
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1381
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1382
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1383
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1384
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1385
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1386
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1387
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1388
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1389
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1390
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1391
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1392
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1393
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1394
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1395
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1396
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1397
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1398
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1399
+ };
1400
+ export type RunCreateManyAgentInput = {
1401
+ id?: string;
1402
+ status?: $Enums.RunStatus;
1403
+ trigger?: $Enums.RunTrigger;
1404
+ tokensIn?: number;
1405
+ tokensOut?: number;
1406
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1407
+ error?: string | null;
1408
+ startedAt?: Date | string;
1409
+ finishedAt?: Date | string | null;
1410
+ heartbeatAt?: Date | string | null;
1411
+ finalText?: string | null;
1412
+ turns?: number;
1413
+ executionManaged?: boolean;
1414
+ executionBackend?: string | null;
1415
+ parentRunId?: string | null;
1416
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1417
+ taskOverride?: string | null;
1418
+ triggeredById?: string | null;
1419
+ };
1420
+ export type RunUpdateWithoutAgentInput = {
1421
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1422
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1423
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1424
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1425
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1426
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1427
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1428
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1429
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1430
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1431
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1432
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1433
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1434
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1435
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1436
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1437
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1438
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1439
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1440
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1441
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1442
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1443
+ };
1444
+ export type RunUncheckedUpdateWithoutAgentInput = {
1445
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1446
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1447
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1448
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1449
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1450
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1451
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1452
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1453
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1454
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1455
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1456
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1457
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1458
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1459
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1461
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1462
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1463
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1464
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1465
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1466
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1467
+ };
1468
+ export type RunUncheckedUpdateManyWithoutAgentInput = {
1469
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1470
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1471
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1472
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1473
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1474
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1475
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1476
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1477
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1478
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1479
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1480
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1481
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1482
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1483
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1484
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1485
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1486
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1487
+ };
1488
+ export type RunCreateManyParentRunInput = {
1489
+ id?: string;
1490
+ agentId: string;
1491
+ status?: $Enums.RunStatus;
1492
+ trigger?: $Enums.RunTrigger;
1493
+ tokensIn?: number;
1494
+ tokensOut?: number;
1495
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1496
+ error?: string | null;
1497
+ startedAt?: Date | string;
1498
+ finishedAt?: Date | string | null;
1499
+ heartbeatAt?: Date | string | null;
1500
+ finalText?: string | null;
1501
+ turns?: number;
1502
+ executionManaged?: boolean;
1503
+ executionBackend?: string | null;
1504
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1505
+ taskOverride?: string | null;
1506
+ triggeredById?: string | null;
1507
+ };
1508
+ export type RunUpdateWithoutParentRunInput = {
1509
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1510
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1511
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1512
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1513
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1514
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1515
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1516
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1517
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1518
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1519
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1520
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1521
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1522
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1523
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1524
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1525
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1526
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1527
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1528
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1529
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1530
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1531
+ };
1532
+ export type RunUncheckedUpdateWithoutParentRunInput = {
1533
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1534
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1535
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1536
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1537
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1538
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1539
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1540
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1541
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1542
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1543
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1544
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1545
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1546
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1547
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1548
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1549
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1550
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1551
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1552
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1553
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1554
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1555
+ };
1556
+ export type RunUncheckedUpdateManyWithoutParentRunInput = {
1557
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1558
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1559
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1560
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1561
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1562
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1563
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1564
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1565
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1566
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1567
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1568
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1569
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1570
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1571
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1572
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1573
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1574
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1575
+ };
1576
+ /**
1577
+ * Count Type RunCountOutputType
1578
+ */
1579
+ export type RunCountOutputType = {
1580
+ childRuns: number;
1581
+ };
1582
+ export type RunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1583
+ childRuns?: boolean | RunCountOutputTypeCountChildRunsArgs;
1584
+ };
1585
+ /**
1586
+ * RunCountOutputType without action
1587
+ */
1588
+ export type RunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1589
+ /**
1590
+ * Select specific fields to fetch from the RunCountOutputType
1591
+ */
1592
+ select?: Prisma.RunCountOutputTypeSelect<ExtArgs> | null;
1593
+ };
1594
+ /**
1595
+ * RunCountOutputType without action
1596
+ */
1597
+ export type RunCountOutputTypeCountChildRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1598
+ where?: Prisma.RunWhereInput;
1599
+ };
1600
+ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1601
+ id?: boolean;
1602
+ agentId?: boolean;
1603
+ status?: boolean;
1604
+ trigger?: boolean;
1605
+ tokensIn?: boolean;
1606
+ tokensOut?: boolean;
1607
+ costUsd?: boolean;
1608
+ error?: boolean;
1609
+ startedAt?: boolean;
1610
+ finishedAt?: boolean;
1611
+ heartbeatAt?: boolean;
1612
+ finalText?: boolean;
1613
+ turns?: boolean;
1614
+ executionManaged?: boolean;
1615
+ executionBackend?: boolean;
1616
+ parentRunId?: boolean;
1617
+ grantedParentMemoryKeys?: boolean;
1618
+ taskOverride?: boolean;
1619
+ triggeredById?: boolean;
1620
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1621
+ codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1622
+ hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
1623
+ hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
1624
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1625
+ childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1626
+ _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
1627
+ }, ExtArgs["result"]["run"]>;
1628
+ export type RunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1629
+ id?: boolean;
1630
+ agentId?: boolean;
1631
+ status?: boolean;
1632
+ trigger?: boolean;
1633
+ tokensIn?: boolean;
1634
+ tokensOut?: boolean;
1635
+ costUsd?: boolean;
1636
+ error?: boolean;
1637
+ startedAt?: boolean;
1638
+ finishedAt?: boolean;
1639
+ heartbeatAt?: boolean;
1640
+ finalText?: boolean;
1641
+ turns?: boolean;
1642
+ executionManaged?: boolean;
1643
+ executionBackend?: boolean;
1644
+ parentRunId?: boolean;
1645
+ grantedParentMemoryKeys?: boolean;
1646
+ taskOverride?: boolean;
1647
+ triggeredById?: boolean;
1648
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1649
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1650
+ }, ExtArgs["result"]["run"]>;
1651
+ export type RunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1652
+ id?: boolean;
1653
+ agentId?: boolean;
1654
+ status?: boolean;
1655
+ trigger?: boolean;
1656
+ tokensIn?: boolean;
1657
+ tokensOut?: boolean;
1658
+ costUsd?: boolean;
1659
+ error?: boolean;
1660
+ startedAt?: boolean;
1661
+ finishedAt?: boolean;
1662
+ heartbeatAt?: boolean;
1663
+ finalText?: boolean;
1664
+ turns?: boolean;
1665
+ executionManaged?: boolean;
1666
+ executionBackend?: boolean;
1667
+ parentRunId?: boolean;
1668
+ grantedParentMemoryKeys?: boolean;
1669
+ taskOverride?: boolean;
1670
+ triggeredById?: boolean;
1671
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1672
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1673
+ }, ExtArgs["result"]["run"]>;
1674
+ export type RunSelectScalar = {
1675
+ id?: boolean;
1676
+ agentId?: boolean;
1677
+ status?: boolean;
1678
+ trigger?: boolean;
1679
+ tokensIn?: boolean;
1680
+ tokensOut?: boolean;
1681
+ costUsd?: boolean;
1682
+ error?: boolean;
1683
+ startedAt?: boolean;
1684
+ finishedAt?: boolean;
1685
+ heartbeatAt?: boolean;
1686
+ finalText?: boolean;
1687
+ turns?: boolean;
1688
+ executionManaged?: boolean;
1689
+ executionBackend?: boolean;
1690
+ parentRunId?: boolean;
1691
+ grantedParentMemoryKeys?: boolean;
1692
+ taskOverride?: boolean;
1693
+ triggeredById?: boolean;
1694
+ };
1695
+ export type RunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "status" | "trigger" | "tokensIn" | "tokensOut" | "costUsd" | "error" | "startedAt" | "finishedAt" | "heartbeatAt" | "finalText" | "turns" | "executionManaged" | "executionBackend" | "parentRunId" | "grantedParentMemoryKeys" | "taskOverride" | "triggeredById", ExtArgs["result"]["run"]>;
1696
+ export type RunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1697
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1698
+ codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1699
+ hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
1700
+ hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
1701
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1702
+ childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1703
+ _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
1704
+ };
1705
+ export type RunIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1706
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1707
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1708
+ };
1709
+ export type RunIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1710
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1711
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1712
+ };
1713
+ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1714
+ name: "Run";
1715
+ objects: {
1716
+ agent: Prisma.$AgentPayload<ExtArgs>;
1717
+ codingRun: Prisma.$CodingRunPayload<ExtArgs> | null;
1718
+ hostCheck: Prisma.$RunHostCheckPayload<ExtArgs> | null;
1719
+ hostStatus: Prisma.$RunHostStatusPayload<ExtArgs> | null;
1720
+ parentRun: Prisma.$RunPayload<ExtArgs> | null;
1721
+ childRuns: Prisma.$RunPayload<ExtArgs>[];
1722
+ };
1723
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1724
+ id: string;
1725
+ agentId: string;
1726
+ status: $Enums.RunStatus;
1727
+ trigger: $Enums.RunTrigger;
1728
+ tokensIn: number;
1729
+ tokensOut: number;
1730
+ costUsd: runtime.Decimal;
1731
+ error: string | null;
1732
+ startedAt: Date;
1733
+ finishedAt: Date | null;
1734
+ /**
1735
+ * Phase 2: beaten by the executor while running; a stale value past
1736
+ * HEARTBEAT_TIMEOUT is how the reconciler finds an orphaned run.
1737
+ */
1738
+ heartbeatAt: Date | null;
1739
+ /**
1740
+ * Phase 4: EngineResult.finalText, persisted so a Task (MCP) or later
1741
+ * inspection can read a completed run's answer. Previously only ever
1742
+ * streamed live via onText and dropped — no durable place to read it
1743
+ * from until this field existed.
1744
+ */
1745
+ finalText: string | null;
1746
+ /**
1747
+ * Phase 4: EngineResult.turns, persisted for the same reason as
1748
+ * finalText — MCP's list_runs/get_run need it and it was previously
1749
+ * dropped after the engine returned.
1750
+ */
1751
+ turns: number;
1752
+ /**
1753
+ * Detached executors are recovered by handle rather than inferred from trigger.
1754
+ */
1755
+ executionManaged: boolean;
1756
+ /**
1757
+ * Phase 6: which durable executor backend holds this run, if any
1758
+ * ("dbos" = a DBOS workflow whose id equals this run's id). Null for
1759
+ * in-process runs. The reconciler consults the backend before declaring a
1760
+ * stale run lost, and can adopt one orphaned by a dead instance.
1761
+ */
1762
+ executionBackend: string | null;
1763
+ /**
1764
+ * Un-phased: sub-agent dispatch (see AgentSubAgent). Null for a
1765
+ * top-level run; set when this run was created by a parent run's
1766
+ * delegate_to_<boundName> tool call. The run tree rooted at the
1767
+ * top-level ancestor shares one real-time budget scope (see
1768
+ * src/core/budget-groups.ts's pattern, generalized from BudgetGroup
1769
+ * membership to this tree).
1770
+ */
1771
+ parentRunId: string | null;
1772
+ /**
1773
+ * Ephemeral, per-dispatch grant: exactly the parent-memory keys this
1774
+ * one child run was handed permission to read via parent_memory_get.
1775
+ * Never a standing allowlist — re-granted on every dispatch call.
1776
+ */
1777
+ grantedParentMemoryKeys: string[];
1778
+ /**
1779
+ * Per-run task text for a native agent, which otherwise has no
1780
+ * per-invocation input at all (only its fixed systemPrompt). Set only by
1781
+ * delegate_to_<boundName> dispatch today — never exposed as a public
1782
+ * trigger_agent/webhook parameter for native agents, unlike coding
1783
+ * agents' CodingTaskOverrideSchema. Appended (never prepended) to the
1784
+ * loaded systemPrompt at run time so the stable prefix stays
1785
+ * prompt-cache-eligible across dispatches.
1786
+ */
1787
+ taskOverride: string | null;
1788
+ /**
1789
+ * The principal the run is visible to besides the agent's owner
1790
+ * (resource-sharing grants spec §3.5): the trigger_agent caller, a
1791
+ * webhook's creator, or a sub-agent's parent run's triggerer. Null for
1792
+ * scheduled, host-event and CLI runs, which only the owner sees. Plain
1793
+ * text, no FK.
1794
+ */
1795
+ triggeredById: string | null;
1796
+ }, ExtArgs["result"]["run"]>;
1797
+ composites: {};
1798
+ };
1799
+ export type RunGetPayload<S extends boolean | null | undefined | RunDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RunPayload, S>;
1800
+ export type RunCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RunFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1801
+ select?: RunCountAggregateInputType | true;
1802
+ };
1803
+ export interface RunDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1804
+ [K: symbol]: {
1805
+ types: Prisma.TypeMap<ExtArgs>['model']['Run'];
1806
+ meta: {
1807
+ name: 'Run';
1808
+ };
1809
+ };
1810
+ /**
1811
+ * Find zero or one Run that matches the filter.
1812
+ * @param {RunFindUniqueArgs} args - Arguments to find a Run
1813
+ * @example
1814
+ * // Get one Run
1815
+ * const run = await prisma.run.findUnique({
1816
+ * where: {
1817
+ * // ... provide filter here
1818
+ * }
1819
+ * })
1820
+ */
1821
+ findUnique<T extends RunFindUniqueArgs>(args: Prisma.SelectSubset<T, RunFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1822
+ /**
1823
+ * Find one Run that matches the filter or throw an error with `error.code='P2025'`
1824
+ * if no matches were found.
1825
+ * @param {RunFindUniqueOrThrowArgs} args - Arguments to find a Run
1826
+ * @example
1827
+ * // Get one Run
1828
+ * const run = await prisma.run.findUniqueOrThrow({
1829
+ * where: {
1830
+ * // ... provide filter here
1831
+ * }
1832
+ * })
1833
+ */
1834
+ findUniqueOrThrow<T extends RunFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RunFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1835
+ /**
1836
+ * Find the first Run that matches the filter.
1837
+ * Note, that providing `undefined` is treated as the value not being there.
1838
+ * Read more here: https://pris.ly/d/null-undefined
1839
+ * @param {RunFindFirstArgs} args - Arguments to find a Run
1840
+ * @example
1841
+ * // Get one Run
1842
+ * const run = await prisma.run.findFirst({
1843
+ * where: {
1844
+ * // ... provide filter here
1845
+ * }
1846
+ * })
1847
+ */
1848
+ findFirst<T extends RunFindFirstArgs>(args?: Prisma.SelectSubset<T, RunFindFirstArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1849
+ /**
1850
+ * Find the first Run that matches the filter or
1851
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1852
+ * Note, that providing `undefined` is treated as the value not being there.
1853
+ * Read more here: https://pris.ly/d/null-undefined
1854
+ * @param {RunFindFirstOrThrowArgs} args - Arguments to find a Run
1855
+ * @example
1856
+ * // Get one Run
1857
+ * const run = await prisma.run.findFirstOrThrow({
1858
+ * where: {
1859
+ * // ... provide filter here
1860
+ * }
1861
+ * })
1862
+ */
1863
+ findFirstOrThrow<T extends RunFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RunFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1864
+ /**
1865
+ * Find zero or more Runs that matches the filter.
1866
+ * Note, that providing `undefined` is treated as the value not being there.
1867
+ * Read more here: https://pris.ly/d/null-undefined
1868
+ * @param {RunFindManyArgs} args - Arguments to filter and select certain fields only.
1869
+ * @example
1870
+ * // Get all Runs
1871
+ * const runs = await prisma.run.findMany()
1872
+ *
1873
+ * // Get first 10 Runs
1874
+ * const runs = await prisma.run.findMany({ take: 10 })
1875
+ *
1876
+ * // Only select the `id`
1877
+ * const runWithIdOnly = await prisma.run.findMany({ select: { id: true } })
1878
+ *
1879
+ */
1880
+ findMany<T extends RunFindManyArgs>(args?: Prisma.SelectSubset<T, RunFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1881
+ /**
1882
+ * Create a Run.
1883
+ * @param {RunCreateArgs} args - Arguments to create a Run.
1884
+ * @example
1885
+ * // Create one Run
1886
+ * const Run = await prisma.run.create({
1887
+ * data: {
1888
+ * // ... data to create a Run
1889
+ * }
1890
+ * })
1891
+ *
1892
+ */
1893
+ create<T extends RunCreateArgs>(args: Prisma.SelectSubset<T, RunCreateArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1894
+ /**
1895
+ * Create many Runs.
1896
+ * @param {RunCreateManyArgs} args - Arguments to create many Runs.
1897
+ * @example
1898
+ * // Create many Runs
1899
+ * const run = await prisma.run.createMany({
1900
+ * data: [
1901
+ * // ... provide data here
1902
+ * ]
1903
+ * })
1904
+ *
1905
+ */
1906
+ createMany<T extends RunCreateManyArgs>(args?: Prisma.SelectSubset<T, RunCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1907
+ /**
1908
+ * Create many Runs and returns the data saved in the database.
1909
+ * @param {RunCreateManyAndReturnArgs} args - Arguments to create many Runs.
1910
+ * @example
1911
+ * // Create many Runs
1912
+ * const run = await prisma.run.createManyAndReturn({
1913
+ * data: [
1914
+ * // ... provide data here
1915
+ * ]
1916
+ * })
1917
+ *
1918
+ * // Create many Runs and only return the `id`
1919
+ * const runWithIdOnly = await prisma.run.createManyAndReturn({
1920
+ * select: { id: true },
1921
+ * data: [
1922
+ * // ... provide data here
1923
+ * ]
1924
+ * })
1925
+ * Note, that providing `undefined` is treated as the value not being there.
1926
+ * Read more here: https://pris.ly/d/null-undefined
1927
+ *
1928
+ */
1929
+ createManyAndReturn<T extends RunCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RunCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1930
+ /**
1931
+ * Delete a Run.
1932
+ * @param {RunDeleteArgs} args - Arguments to delete one Run.
1933
+ * @example
1934
+ * // Delete one Run
1935
+ * const Run = await prisma.run.delete({
1936
+ * where: {
1937
+ * // ... filter to delete one Run
1938
+ * }
1939
+ * })
1940
+ *
1941
+ */
1942
+ delete<T extends RunDeleteArgs>(args: Prisma.SelectSubset<T, RunDeleteArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1943
+ /**
1944
+ * Update one Run.
1945
+ * @param {RunUpdateArgs} args - Arguments to update one Run.
1946
+ * @example
1947
+ * // Update one Run
1948
+ * const run = await prisma.run.update({
1949
+ * where: {
1950
+ * // ... provide filter here
1951
+ * },
1952
+ * data: {
1953
+ * // ... provide data here
1954
+ * }
1955
+ * })
1956
+ *
1957
+ */
1958
+ update<T extends RunUpdateArgs>(args: Prisma.SelectSubset<T, RunUpdateArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1959
+ /**
1960
+ * Delete zero or more Runs.
1961
+ * @param {RunDeleteManyArgs} args - Arguments to filter Runs to delete.
1962
+ * @example
1963
+ * // Delete a few Runs
1964
+ * const { count } = await prisma.run.deleteMany({
1965
+ * where: {
1966
+ * // ... provide filter here
1967
+ * }
1968
+ * })
1969
+ *
1970
+ */
1971
+ deleteMany<T extends RunDeleteManyArgs>(args?: Prisma.SelectSubset<T, RunDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1972
+ /**
1973
+ * Update zero or more Runs.
1974
+ * Note, that providing `undefined` is treated as the value not being there.
1975
+ * Read more here: https://pris.ly/d/null-undefined
1976
+ * @param {RunUpdateManyArgs} args - Arguments to update one or more rows.
1977
+ * @example
1978
+ * // Update many Runs
1979
+ * const run = await prisma.run.updateMany({
1980
+ * where: {
1981
+ * // ... provide filter here
1982
+ * },
1983
+ * data: {
1984
+ * // ... provide data here
1985
+ * }
1986
+ * })
1987
+ *
1988
+ */
1989
+ updateMany<T extends RunUpdateManyArgs>(args: Prisma.SelectSubset<T, RunUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1990
+ /**
1991
+ * Update zero or more Runs and returns the data updated in the database.
1992
+ * @param {RunUpdateManyAndReturnArgs} args - Arguments to update many Runs.
1993
+ * @example
1994
+ * // Update many Runs
1995
+ * const run = await prisma.run.updateManyAndReturn({
1996
+ * where: {
1997
+ * // ... provide filter here
1998
+ * },
1999
+ * data: [
2000
+ * // ... provide data here
2001
+ * ]
2002
+ * })
2003
+ *
2004
+ * // Update zero or more Runs and only return the `id`
2005
+ * const runWithIdOnly = await prisma.run.updateManyAndReturn({
2006
+ * select: { id: true },
2007
+ * where: {
2008
+ * // ... provide filter here
2009
+ * },
2010
+ * data: [
2011
+ * // ... provide data here
2012
+ * ]
2013
+ * })
2014
+ * Note, that providing `undefined` is treated as the value not being there.
2015
+ * Read more here: https://pris.ly/d/null-undefined
2016
+ *
2017
+ */
2018
+ updateManyAndReturn<T extends RunUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RunUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2019
+ /**
2020
+ * Create or update one Run.
2021
+ * @param {RunUpsertArgs} args - Arguments to update or create a Run.
2022
+ * @example
2023
+ * // Update or create a Run
2024
+ * const run = await prisma.run.upsert({
2025
+ * create: {
2026
+ * // ... data to create a Run
2027
+ * },
2028
+ * update: {
2029
+ * // ... in case it already exists, update
2030
+ * },
2031
+ * where: {
2032
+ * // ... the filter for the Run we want to update
2033
+ * }
2034
+ * })
2035
+ */
2036
+ upsert<T extends RunUpsertArgs>(args: Prisma.SelectSubset<T, RunUpsertArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2037
+ /**
2038
+ * Count the number of Runs.
2039
+ * Note, that providing `undefined` is treated as the value not being there.
2040
+ * Read more here: https://pris.ly/d/null-undefined
2041
+ * @param {RunCountArgs} args - Arguments to filter Runs to count.
2042
+ * @example
2043
+ * // Count the number of Runs
2044
+ * const count = await prisma.run.count({
2045
+ * where: {
2046
+ * // ... the filter for the Runs we want to count
2047
+ * }
2048
+ * })
2049
+ **/
2050
+ count<T extends RunCountArgs>(args?: Prisma.Subset<T, RunCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RunCountAggregateOutputType> : number>;
2051
+ /**
2052
+ * Allows you to perform aggregations operations on a Run.
2053
+ * Note, that providing `undefined` is treated as the value not being there.
2054
+ * Read more here: https://pris.ly/d/null-undefined
2055
+ * @param {RunAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2056
+ * @example
2057
+ * // Ordered by age ascending
2058
+ * // Where email contains prisma.io
2059
+ * // Limited to the 10 users
2060
+ * const aggregations = await prisma.user.aggregate({
2061
+ * _avg: {
2062
+ * age: true,
2063
+ * },
2064
+ * where: {
2065
+ * email: {
2066
+ * contains: "prisma.io",
2067
+ * },
2068
+ * },
2069
+ * orderBy: {
2070
+ * age: "asc",
2071
+ * },
2072
+ * take: 10,
2073
+ * })
2074
+ **/
2075
+ aggregate<T extends RunAggregateArgs>(args: Prisma.Subset<T, RunAggregateArgs>): Prisma.PrismaPromise<GetRunAggregateType<T>>;
2076
+ /**
2077
+ * Group by Run.
2078
+ * Note, that providing `undefined` is treated as the value not being there.
2079
+ * Read more here: https://pris.ly/d/null-undefined
2080
+ * @param {RunGroupByArgs} args - Group by arguments.
2081
+ * @example
2082
+ * // Group by city, order by createdAt, get count
2083
+ * const result = await prisma.user.groupBy({
2084
+ * by: ['city', 'createdAt'],
2085
+ * orderBy: {
2086
+ * createdAt: true
2087
+ * },
2088
+ * _count: {
2089
+ * _all: true
2090
+ * },
2091
+ * })
2092
+ *
2093
+ **/
2094
+ groupBy<T extends RunGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2095
+ orderBy: RunGroupByArgs['orderBy'];
2096
+ } : {
2097
+ orderBy?: RunGroupByArgs['orderBy'];
2098
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
2099
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2100
+ Error,
2101
+ 'Field ',
2102
+ P,
2103
+ ` in "having" needs to be provided in "by"`
2104
+ ];
2105
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2106
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2107
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2108
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2109
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2110
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2111
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RunGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRunGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2112
+ /**
2113
+ * Fields of the Run model
2114
+ */
2115
+ readonly fields: RunFieldRefs;
2116
+ }
2117
+ /**
2118
+ * The delegate class that acts as a "Promise-like" for Run.
2119
+ * Why is this prefixed with `Prisma__`?
2120
+ * Because we want to prevent naming conflicts as mentioned in
2121
+ * https://github.com/prisma/prisma-client-js/issues/707
2122
+ */
2123
+ export interface Prisma__RunClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2124
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2125
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2126
+ codingRun<T extends Prisma.Run$codingRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$codingRunArgs<ExtArgs>>): Prisma.Prisma__CodingRunClient<runtime.Types.Result.GetResult<Prisma.$CodingRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2127
+ hostCheck<T extends Prisma.Run$hostCheckArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$hostCheckArgs<ExtArgs>>): Prisma.Prisma__RunHostCheckClient<runtime.Types.Result.GetResult<Prisma.$RunHostCheckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2128
+ hostStatus<T extends Prisma.Run$hostStatusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$hostStatusArgs<ExtArgs>>): Prisma.Prisma__RunHostStatusClient<runtime.Types.Result.GetResult<Prisma.$RunHostStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2129
+ parentRun<T extends Prisma.Run$parentRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$parentRunArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2130
+ childRuns<T extends Prisma.Run$childRunsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$childRunsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2131
+ /**
2132
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2133
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2134
+ * @param onrejected The callback to execute when the Promise is rejected.
2135
+ * @returns A Promise for the completion of which ever callback is executed.
2136
+ */
2137
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
2138
+ /**
2139
+ * Attaches a callback for only the rejection of the Promise.
2140
+ * @param onrejected The callback to execute when the Promise is rejected.
2141
+ * @returns A Promise for the completion of the callback.
2142
+ */
2143
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2144
+ /**
2145
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2146
+ * resolved value cannot be modified from the callback.
2147
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2148
+ * @returns A Promise for the completion of the callback.
2149
+ */
2150
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2151
+ }
2152
+ /**
2153
+ * Fields of the Run model
2154
+ */
2155
+ export interface RunFieldRefs {
2156
+ readonly id: Prisma.FieldRef<"Run", 'String'>;
2157
+ readonly agentId: Prisma.FieldRef<"Run", 'String'>;
2158
+ readonly status: Prisma.FieldRef<"Run", 'RunStatus'>;
2159
+ readonly trigger: Prisma.FieldRef<"Run", 'RunTrigger'>;
2160
+ readonly tokensIn: Prisma.FieldRef<"Run", 'Int'>;
2161
+ readonly tokensOut: Prisma.FieldRef<"Run", 'Int'>;
2162
+ readonly costUsd: Prisma.FieldRef<"Run", 'Decimal'>;
2163
+ readonly error: Prisma.FieldRef<"Run", 'String'>;
2164
+ readonly startedAt: Prisma.FieldRef<"Run", 'DateTime'>;
2165
+ readonly finishedAt: Prisma.FieldRef<"Run", 'DateTime'>;
2166
+ readonly heartbeatAt: Prisma.FieldRef<"Run", 'DateTime'>;
2167
+ readonly finalText: Prisma.FieldRef<"Run", 'String'>;
2168
+ readonly turns: Prisma.FieldRef<"Run", 'Int'>;
2169
+ readonly executionManaged: Prisma.FieldRef<"Run", 'Boolean'>;
2170
+ readonly executionBackend: Prisma.FieldRef<"Run", 'String'>;
2171
+ readonly parentRunId: Prisma.FieldRef<"Run", 'String'>;
2172
+ readonly grantedParentMemoryKeys: Prisma.FieldRef<"Run", 'String[]'>;
2173
+ readonly taskOverride: Prisma.FieldRef<"Run", 'String'>;
2174
+ readonly triggeredById: Prisma.FieldRef<"Run", 'String'>;
2175
+ }
2176
+ /**
2177
+ * Run findUnique
2178
+ */
2179
+ export type RunFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2180
+ /**
2181
+ * Select specific fields to fetch from the Run
2182
+ */
2183
+ select?: Prisma.RunSelect<ExtArgs> | null;
2184
+ /**
2185
+ * Omit specific fields from the Run
2186
+ */
2187
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2188
+ /**
2189
+ * Choose, which related nodes to fetch as well
2190
+ */
2191
+ include?: Prisma.RunInclude<ExtArgs> | null;
2192
+ /**
2193
+ * Filter, which Run to fetch.
2194
+ */
2195
+ where: Prisma.RunWhereUniqueInput;
2196
+ };
2197
+ /**
2198
+ * Run findUniqueOrThrow
2199
+ */
2200
+ export type RunFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2201
+ /**
2202
+ * Select specific fields to fetch from the Run
2203
+ */
2204
+ select?: Prisma.RunSelect<ExtArgs> | null;
2205
+ /**
2206
+ * Omit specific fields from the Run
2207
+ */
2208
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2209
+ /**
2210
+ * Choose, which related nodes to fetch as well
2211
+ */
2212
+ include?: Prisma.RunInclude<ExtArgs> | null;
2213
+ /**
2214
+ * Filter, which Run to fetch.
2215
+ */
2216
+ where: Prisma.RunWhereUniqueInput;
2217
+ };
2218
+ /**
2219
+ * Run findFirst
2220
+ */
2221
+ export type RunFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2222
+ /**
2223
+ * Select specific fields to fetch from the Run
2224
+ */
2225
+ select?: Prisma.RunSelect<ExtArgs> | null;
2226
+ /**
2227
+ * Omit specific fields from the Run
2228
+ */
2229
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2230
+ /**
2231
+ * Choose, which related nodes to fetch as well
2232
+ */
2233
+ include?: Prisma.RunInclude<ExtArgs> | null;
2234
+ /**
2235
+ * Filter, which Run to fetch.
2236
+ */
2237
+ where?: Prisma.RunWhereInput;
2238
+ /**
2239
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2240
+ *
2241
+ * Determine the order of Runs to fetch.
2242
+ */
2243
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
2244
+ /**
2245
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2246
+ *
2247
+ * Sets the position for searching for Runs.
2248
+ */
2249
+ cursor?: Prisma.RunWhereUniqueInput;
2250
+ /**
2251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2252
+ *
2253
+ * Take `±n` Runs from the position of the cursor.
2254
+ */
2255
+ take?: number;
2256
+ /**
2257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2258
+ *
2259
+ * Skip the first `n` Runs.
2260
+ */
2261
+ skip?: number;
2262
+ /**
2263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2264
+ *
2265
+ * Filter by unique combinations of Runs.
2266
+ */
2267
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
2268
+ };
2269
+ /**
2270
+ * Run findFirstOrThrow
2271
+ */
2272
+ export type RunFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2273
+ /**
2274
+ * Select specific fields to fetch from the Run
2275
+ */
2276
+ select?: Prisma.RunSelect<ExtArgs> | null;
2277
+ /**
2278
+ * Omit specific fields from the Run
2279
+ */
2280
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2281
+ /**
2282
+ * Choose, which related nodes to fetch as well
2283
+ */
2284
+ include?: Prisma.RunInclude<ExtArgs> | null;
2285
+ /**
2286
+ * Filter, which Run to fetch.
2287
+ */
2288
+ where?: Prisma.RunWhereInput;
2289
+ /**
2290
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2291
+ *
2292
+ * Determine the order of Runs to fetch.
2293
+ */
2294
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
2295
+ /**
2296
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2297
+ *
2298
+ * Sets the position for searching for Runs.
2299
+ */
2300
+ cursor?: Prisma.RunWhereUniqueInput;
2301
+ /**
2302
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2303
+ *
2304
+ * Take `±n` Runs from the position of the cursor.
2305
+ */
2306
+ take?: number;
2307
+ /**
2308
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2309
+ *
2310
+ * Skip the first `n` Runs.
2311
+ */
2312
+ skip?: number;
2313
+ /**
2314
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2315
+ *
2316
+ * Filter by unique combinations of Runs.
2317
+ */
2318
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
2319
+ };
2320
+ /**
2321
+ * Run findMany
2322
+ */
2323
+ export type RunFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2324
+ /**
2325
+ * Select specific fields to fetch from the Run
2326
+ */
2327
+ select?: Prisma.RunSelect<ExtArgs> | null;
2328
+ /**
2329
+ * Omit specific fields from the Run
2330
+ */
2331
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2332
+ /**
2333
+ * Choose, which related nodes to fetch as well
2334
+ */
2335
+ include?: Prisma.RunInclude<ExtArgs> | null;
2336
+ /**
2337
+ * Filter, which Runs to fetch.
2338
+ */
2339
+ where?: Prisma.RunWhereInput;
2340
+ /**
2341
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2342
+ *
2343
+ * Determine the order of Runs to fetch.
2344
+ */
2345
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
2346
+ /**
2347
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2348
+ *
2349
+ * Sets the position for listing Runs.
2350
+ */
2351
+ cursor?: Prisma.RunWhereUniqueInput;
2352
+ /**
2353
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2354
+ *
2355
+ * Take `±n` Runs from the position of the cursor.
2356
+ */
2357
+ take?: number;
2358
+ /**
2359
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2360
+ *
2361
+ * Skip the first `n` Runs.
2362
+ */
2363
+ skip?: number;
2364
+ /**
2365
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2366
+ *
2367
+ * Filter by unique combinations of Runs.
2368
+ */
2369
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
2370
+ };
2371
+ /**
2372
+ * Run create
2373
+ */
2374
+ export type RunCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2375
+ /**
2376
+ * Select specific fields to fetch from the Run
2377
+ */
2378
+ select?: Prisma.RunSelect<ExtArgs> | null;
2379
+ /**
2380
+ * Omit specific fields from the Run
2381
+ */
2382
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2383
+ /**
2384
+ * Choose, which related nodes to fetch as well
2385
+ */
2386
+ include?: Prisma.RunInclude<ExtArgs> | null;
2387
+ /**
2388
+ * The data needed to create a Run.
2389
+ */
2390
+ data: Prisma.XOR<Prisma.RunCreateInput, Prisma.RunUncheckedCreateInput>;
2391
+ };
2392
+ /**
2393
+ * Run createMany
2394
+ */
2395
+ export type RunCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2396
+ /**
2397
+ * The data used to create many Runs.
2398
+ */
2399
+ data: Prisma.RunCreateManyInput | Prisma.RunCreateManyInput[];
2400
+ skipDuplicates?: boolean;
2401
+ };
2402
+ /**
2403
+ * Run createManyAndReturn
2404
+ */
2405
+ export type RunCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2406
+ /**
2407
+ * Select specific fields to fetch from the Run
2408
+ */
2409
+ select?: Prisma.RunSelectCreateManyAndReturn<ExtArgs> | null;
2410
+ /**
2411
+ * Omit specific fields from the Run
2412
+ */
2413
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2414
+ /**
2415
+ * The data used to create many Runs.
2416
+ */
2417
+ data: Prisma.RunCreateManyInput | Prisma.RunCreateManyInput[];
2418
+ skipDuplicates?: boolean;
2419
+ /**
2420
+ * Choose, which related nodes to fetch as well
2421
+ */
2422
+ include?: Prisma.RunIncludeCreateManyAndReturn<ExtArgs> | null;
2423
+ };
2424
+ /**
2425
+ * Run update
2426
+ */
2427
+ export type RunUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2428
+ /**
2429
+ * Select specific fields to fetch from the Run
2430
+ */
2431
+ select?: Prisma.RunSelect<ExtArgs> | null;
2432
+ /**
2433
+ * Omit specific fields from the Run
2434
+ */
2435
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2436
+ /**
2437
+ * Choose, which related nodes to fetch as well
2438
+ */
2439
+ include?: Prisma.RunInclude<ExtArgs> | null;
2440
+ /**
2441
+ * The data needed to update a Run.
2442
+ */
2443
+ data: Prisma.XOR<Prisma.RunUpdateInput, Prisma.RunUncheckedUpdateInput>;
2444
+ /**
2445
+ * Choose, which Run to update.
2446
+ */
2447
+ where: Prisma.RunWhereUniqueInput;
2448
+ };
2449
+ /**
2450
+ * Run updateMany
2451
+ */
2452
+ export type RunUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2453
+ /**
2454
+ * The data used to update Runs.
2455
+ */
2456
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyInput>;
2457
+ /**
2458
+ * Filter which Runs to update
2459
+ */
2460
+ where?: Prisma.RunWhereInput;
2461
+ /**
2462
+ * Limit how many Runs to update.
2463
+ */
2464
+ limit?: number;
2465
+ };
2466
+ /**
2467
+ * Run updateManyAndReturn
2468
+ */
2469
+ export type RunUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2470
+ /**
2471
+ * Select specific fields to fetch from the Run
2472
+ */
2473
+ select?: Prisma.RunSelectUpdateManyAndReturn<ExtArgs> | null;
2474
+ /**
2475
+ * Omit specific fields from the Run
2476
+ */
2477
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2478
+ /**
2479
+ * The data used to update Runs.
2480
+ */
2481
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyInput>;
2482
+ /**
2483
+ * Filter which Runs to update
2484
+ */
2485
+ where?: Prisma.RunWhereInput;
2486
+ /**
2487
+ * Limit how many Runs to update.
2488
+ */
2489
+ limit?: number;
2490
+ /**
2491
+ * Choose, which related nodes to fetch as well
2492
+ */
2493
+ include?: Prisma.RunIncludeUpdateManyAndReturn<ExtArgs> | null;
2494
+ };
2495
+ /**
2496
+ * Run upsert
2497
+ */
2498
+ export type RunUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2499
+ /**
2500
+ * Select specific fields to fetch from the Run
2501
+ */
2502
+ select?: Prisma.RunSelect<ExtArgs> | null;
2503
+ /**
2504
+ * Omit specific fields from the Run
2505
+ */
2506
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2507
+ /**
2508
+ * Choose, which related nodes to fetch as well
2509
+ */
2510
+ include?: Prisma.RunInclude<ExtArgs> | null;
2511
+ /**
2512
+ * The filter to search for the Run to update in case it exists.
2513
+ */
2514
+ where: Prisma.RunWhereUniqueInput;
2515
+ /**
2516
+ * In case the Run found by the `where` argument doesn't exist, create a new Run with this data.
2517
+ */
2518
+ create: Prisma.XOR<Prisma.RunCreateInput, Prisma.RunUncheckedCreateInput>;
2519
+ /**
2520
+ * In case the Run was found with the provided `where` argument, update it with this data.
2521
+ */
2522
+ update: Prisma.XOR<Prisma.RunUpdateInput, Prisma.RunUncheckedUpdateInput>;
2523
+ };
2524
+ /**
2525
+ * Run delete
2526
+ */
2527
+ export type RunDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2528
+ /**
2529
+ * Select specific fields to fetch from the Run
2530
+ */
2531
+ select?: Prisma.RunSelect<ExtArgs> | null;
2532
+ /**
2533
+ * Omit specific fields from the Run
2534
+ */
2535
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2536
+ /**
2537
+ * Choose, which related nodes to fetch as well
2538
+ */
2539
+ include?: Prisma.RunInclude<ExtArgs> | null;
2540
+ /**
2541
+ * Filter which Run to delete.
2542
+ */
2543
+ where: Prisma.RunWhereUniqueInput;
2544
+ };
2545
+ /**
2546
+ * Run deleteMany
2547
+ */
2548
+ export type RunDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2549
+ /**
2550
+ * Filter which Runs to delete
2551
+ */
2552
+ where?: Prisma.RunWhereInput;
2553
+ /**
2554
+ * Limit how many Runs to delete.
2555
+ */
2556
+ limit?: number;
2557
+ };
2558
+ /**
2559
+ * Run.codingRun
2560
+ */
2561
+ export type Run$codingRunArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2562
+ /**
2563
+ * Select specific fields to fetch from the CodingRun
2564
+ */
2565
+ select?: Prisma.CodingRunSelect<ExtArgs> | null;
2566
+ /**
2567
+ * Omit specific fields from the CodingRun
2568
+ */
2569
+ omit?: Prisma.CodingRunOmit<ExtArgs> | null;
2570
+ /**
2571
+ * Choose, which related nodes to fetch as well
2572
+ */
2573
+ include?: Prisma.CodingRunInclude<ExtArgs> | null;
2574
+ where?: Prisma.CodingRunWhereInput;
2575
+ };
2576
+ /**
2577
+ * Run.hostCheck
2578
+ */
2579
+ export type Run$hostCheckArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2580
+ /**
2581
+ * Select specific fields to fetch from the RunHostCheck
2582
+ */
2583
+ select?: Prisma.RunHostCheckSelect<ExtArgs> | null;
2584
+ /**
2585
+ * Omit specific fields from the RunHostCheck
2586
+ */
2587
+ omit?: Prisma.RunHostCheckOmit<ExtArgs> | null;
2588
+ /**
2589
+ * Choose, which related nodes to fetch as well
2590
+ */
2591
+ include?: Prisma.RunHostCheckInclude<ExtArgs> | null;
2592
+ where?: Prisma.RunHostCheckWhereInput;
2593
+ };
2594
+ /**
2595
+ * Run.hostStatus
2596
+ */
2597
+ export type Run$hostStatusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2598
+ /**
2599
+ * Select specific fields to fetch from the RunHostStatus
2600
+ */
2601
+ select?: Prisma.RunHostStatusSelect<ExtArgs> | null;
2602
+ /**
2603
+ * Omit specific fields from the RunHostStatus
2604
+ */
2605
+ omit?: Prisma.RunHostStatusOmit<ExtArgs> | null;
2606
+ /**
2607
+ * Choose, which related nodes to fetch as well
2608
+ */
2609
+ include?: Prisma.RunHostStatusInclude<ExtArgs> | null;
2610
+ where?: Prisma.RunHostStatusWhereInput;
2611
+ };
2612
+ /**
2613
+ * Run.parentRun
2614
+ */
2615
+ export type Run$parentRunArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2616
+ /**
2617
+ * Select specific fields to fetch from the Run
2618
+ */
2619
+ select?: Prisma.RunSelect<ExtArgs> | null;
2620
+ /**
2621
+ * Omit specific fields from the Run
2622
+ */
2623
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2624
+ /**
2625
+ * Choose, which related nodes to fetch as well
2626
+ */
2627
+ include?: Prisma.RunInclude<ExtArgs> | null;
2628
+ where?: Prisma.RunWhereInput;
2629
+ };
2630
+ /**
2631
+ * Run.childRuns
2632
+ */
2633
+ export type Run$childRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2634
+ /**
2635
+ * Select specific fields to fetch from the Run
2636
+ */
2637
+ select?: Prisma.RunSelect<ExtArgs> | null;
2638
+ /**
2639
+ * Omit specific fields from the Run
2640
+ */
2641
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2642
+ /**
2643
+ * Choose, which related nodes to fetch as well
2644
+ */
2645
+ include?: Prisma.RunInclude<ExtArgs> | null;
2646
+ where?: Prisma.RunWhereInput;
2647
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
2648
+ cursor?: Prisma.RunWhereUniqueInput;
2649
+ take?: number;
2650
+ skip?: number;
2651
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
2652
+ };
2653
+ /**
2654
+ * Run without action
2655
+ */
2656
+ export type RunDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2657
+ /**
2658
+ * Select specific fields to fetch from the Run
2659
+ */
2660
+ select?: Prisma.RunSelect<ExtArgs> | null;
2661
+ /**
2662
+ * Omit specific fields from the Run
2663
+ */
2664
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2665
+ /**
2666
+ * Choose, which related nodes to fetch as well
2667
+ */
2668
+ include?: Prisma.RunInclude<ExtArgs> | null;
2669
+ };