@wardby/cli 0.3.0 → 0.4.1

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 (275) hide show
  1. package/.env.example +22 -3
  2. package/README.md +11 -9
  3. package/dist/cli-help.d.ts +1 -1
  4. package/dist/cli-help.js +1 -0
  5. package/dist/cli.js +68 -10
  6. package/dist/coding/base-commit.d.ts +6 -0
  7. package/dist/coding/base-commit.js +12 -0
  8. package/dist/coding/protocol.d.ts +17 -1
  9. package/dist/coding/protocol.js +17 -6
  10. package/dist/coding/provider.d.ts +6 -1
  11. package/dist/coding/provider.js +16 -9
  12. package/dist/config/providers.d.ts +25 -0
  13. package/dist/config/providers.js +71 -0
  14. package/dist/core/attribution.d.ts +101 -0
  15. package/dist/core/attribution.js +208 -0
  16. package/dist/core/budget-groups.d.ts +17 -10
  17. package/dist/core/budget-groups.js +15 -12
  18. package/dist/core/coding-queue.d.ts +3 -0
  19. package/dist/core/coding-queue.js +6 -2
  20. package/dist/core/coding-service-status.d.ts +11 -0
  21. package/dist/core/coding-service-status.js +17 -0
  22. package/dist/core/cost-report.d.ts +88 -0
  23. package/dist/core/cost-report.js +248 -0
  24. package/dist/core/dispatch.d.ts +42 -2
  25. package/dist/core/dispatch.js +144 -26
  26. package/dist/core/engine-native.js +17 -4
  27. package/dist/core/glob.d.ts +10 -0
  28. package/dist/core/glob.js +33 -0
  29. package/dist/core/host-events.d.ts +24 -1
  30. package/dist/core/host-events.js +341 -1
  31. package/dist/core/host-status.d.ts +19 -2
  32. package/dist/core/host-status.js +47 -30
  33. package/dist/core/issue-bridge.d.ts +60 -0
  34. package/dist/core/issue-bridge.js +189 -0
  35. package/dist/core/issue-dedupe.d.ts +70 -0
  36. package/dist/core/issue-dedupe.js +255 -0
  37. package/dist/core/issue-events.d.ts +42 -0
  38. package/dist/core/issue-events.js +155 -0
  39. package/dist/core/issue-status.d.ts +29 -0
  40. package/dist/core/issue-status.js +241 -0
  41. package/dist/core/issue-tracker-tools.d.ts +64 -0
  42. package/dist/core/issue-tracker-tools.js +850 -0
  43. package/dist/core/model-usage.d.ts +10 -0
  44. package/dist/core/model-usage.js +24 -0
  45. package/dist/core/reconciler.d.ts +8 -4
  46. package/dist/core/reconciler.js +15 -4
  47. package/dist/core/review-host-tools.js +10 -3
  48. package/dist/core/run-pricing.d.ts +61 -0
  49. package/dist/core/run-pricing.js +56 -0
  50. package/dist/core/runner.d.ts +5 -2
  51. package/dist/core/runner.js +178 -27
  52. package/dist/core/scheduler.d.ts +4 -1
  53. package/dist/core/scheduler.js +3 -2
  54. package/dist/core/self-defects.d.ts +80 -0
  55. package/dist/core/self-defects.js +180 -0
  56. package/dist/core/tool-names.js +3 -0
  57. package/dist/core/webhooks.d.ts +9 -1
  58. package/dist/core/webhooks.js +19 -1
  59. package/dist/env.js +6 -1
  60. package/dist/generated/prisma/browser.d.ts +66 -0
  61. package/dist/generated/prisma/client.d.ts +66 -0
  62. package/dist/generated/prisma/commonInputTypes.d.ts +122 -52
  63. package/dist/generated/prisma/enums.d.ts +7 -0
  64. package/dist/generated/prisma/enums.js +6 -0
  65. package/dist/generated/prisma/internal/class.d.ts +99 -0
  66. package/dist/generated/prisma/internal/class.js +4 -4
  67. package/dist/generated/prisma/internal/prismaNamespace.d.ts +826 -1
  68. package/dist/generated/prisma/internal/prismaNamespace.js +135 -2
  69. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +142 -0
  70. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -2
  71. package/dist/generated/prisma/models/Agent.d.ts +389 -1
  72. package/dist/generated/prisma/models/AgentIssueProject.d.ts +1838 -0
  73. package/dist/generated/prisma/models/AgentIssueProject.js +1 -0
  74. package/dist/generated/prisma/models/AgentRepository.d.ts +1 -1
  75. package/dist/generated/prisma/models/AuthUser.d.ts +1 -1
  76. package/dist/generated/prisma/models/CodingProxySession.d.ts +73 -1
  77. package/dist/generated/prisma/models/CodingRun.d.ts +130 -1
  78. package/dist/generated/prisma/models/CodingRunServiceStatus.d.ts +1404 -0
  79. package/dist/generated/prisma/models/CodingRunServiceStatus.js +1 -0
  80. package/dist/generated/prisma/models/IssueFingerprint.d.ts +1183 -0
  81. package/dist/generated/prisma/models/IssueFingerprint.js +1 -0
  82. package/dist/generated/prisma/models/IssuePullRequest.d.ts +1255 -0
  83. package/dist/generated/prisma/models/IssuePullRequest.js +1 -0
  84. package/dist/generated/prisma/models/ModelCatalogEntry.d.ts +1322 -0
  85. package/dist/generated/prisma/models/ModelCatalogEntry.js +1 -0
  86. package/dist/generated/prisma/models/Run.d.ts +933 -1
  87. package/dist/generated/prisma/models/RunAttribution.d.ts +1259 -0
  88. package/dist/generated/prisma/models/RunAttribution.js +1 -0
  89. package/dist/generated/prisma/models/RunIssueStatus.d.ts +1199 -0
  90. package/dist/generated/prisma/models/RunIssueStatus.js +1 -0
  91. package/dist/generated/prisma/models/RunModelUsage.d.ts +1316 -0
  92. package/dist/generated/prisma/models/RunModelUsage.js +1 -0
  93. package/dist/generated/prisma/models/WorkItem.d.ts +1408 -0
  94. package/dist/generated/prisma/models/WorkItem.js +1 -0
  95. package/dist/generated/prisma/models.d.ts +9 -0
  96. package/dist/help-index.json +355 -16
  97. package/dist/import/neutral-schema.d.ts +16 -16
  98. package/dist/knowledge/check.d.ts +13 -0
  99. package/dist/knowledge/check.js +69 -0
  100. package/dist/knowledge/cli.d.ts +14 -0
  101. package/dist/knowledge/cli.js +67 -0
  102. package/dist/knowledge/concept.d.ts +54 -0
  103. package/dist/knowledge/concept.js +78 -0
  104. package/dist/knowledge/note.d.ts +11 -0
  105. package/dist/knowledge/note.js +39 -0
  106. package/dist/knowledge/relevance.d.ts +11 -0
  107. package/dist/knowledge/relevance.js +14 -0
  108. package/dist/knowledge/span-hash.d.ts +3 -0
  109. package/dist/knowledge/span-hash.js +16 -0
  110. package/dist/mcp/auth/access.d.ts +4 -2
  111. package/dist/mcp/auth/ownership.d.ts +9 -9
  112. package/dist/mcp/auth/resource-server.d.ts +3 -1
  113. package/dist/mcp/auth/resource-server.js +18 -3
  114. package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
  115. package/dist/mcp/auth/self-hosted/session.d.ts +5 -5
  116. package/dist/mcp/context.d.ts +3 -0
  117. package/dist/mcp/host-events/deliveries.d.ts +9 -0
  118. package/dist/mcp/host-events/deliveries.js +17 -0
  119. package/dist/mcp/host-events/github-ingress.d.ts +4 -2
  120. package/dist/mcp/host-events/github-ingress.js +4 -13
  121. package/dist/mcp/host-events/jira-ingress.d.ts +29 -0
  122. package/dist/mcp/host-events/jira-ingress.js +92 -0
  123. package/dist/mcp/index.d.ts +2 -0
  124. package/dist/mcp/index.js +87 -9
  125. package/dist/mcp/server.js +5 -2
  126. package/dist/mcp/tools/agents.js +74 -3
  127. package/dist/mcp/tools/cost-report.d.ts +8 -0
  128. package/dist/mcp/tools/cost-report.js +60 -0
  129. package/dist/mcp/tools/issue-projects.d.ts +2 -0
  130. package/dist/mcp/tools/issue-projects.js +238 -0
  131. package/dist/mcp/tools/model-catalog.d.ts +22 -0
  132. package/dist/mcp/tools/model-catalog.js +423 -0
  133. package/dist/mcp/tools/repositories.js +2 -1
  134. package/dist/mcp/tools/tools.d.ts +2 -2
  135. package/dist/mcp/tools/trigger.js +33 -5
  136. package/dist/mcp/transport/streamable-http.d.ts +5 -0
  137. package/dist/mcp/transport/streamable-http.js +23 -1
  138. package/dist/mcp/webhooks/ingress.d.ts +2 -1
  139. package/dist/mcp/webhooks/ingress.js +9 -2
  140. package/dist/providers/auth/self-hosted.d.ts +8 -1
  141. package/dist/providers/auth/self-hosted.js +39 -2
  142. package/dist/providers/coding-proxy/memory-ledger.d.ts +1 -1
  143. package/dist/providers/coding-proxy/memory-ledger.js +10 -1
  144. package/dist/providers/coding-proxy/metering.d.ts +2 -1
  145. package/dist/providers/coding-proxy/metering.js +13 -2
  146. package/dist/providers/coding-proxy/prisma-ledger.js +59 -6
  147. package/dist/providers/coding-proxy/proxy.d.ts +12 -2
  148. package/dist/providers/coding-proxy/proxy.js +92 -30
  149. package/dist/providers/coding-proxy/types.d.ts +18 -1
  150. package/dist/providers/coding-proxy/types.js +12 -1
  151. package/dist/providers/engine/types.d.ts +19 -0
  152. package/dist/providers/executor/composition.js +9 -1
  153. package/dist/providers/executor/container.d.ts +30 -2
  154. package/dist/providers/executor/container.js +98 -17
  155. package/dist/providers/executor/dbos.d.ts +2 -0
  156. package/dist/providers/executor/dbos.js +7 -5
  157. package/dist/providers/executor/routing.d.ts +6 -0
  158. package/dist/providers/executor/routing.js +5 -0
  159. package/dist/providers/executor/types.d.ts +12 -0
  160. package/dist/providers/issue-tracker/adf.d.ts +31 -0
  161. package/dist/providers/issue-tracker/adf.js +181 -0
  162. package/dist/providers/issue-tracker/index.d.ts +5 -0
  163. package/dist/providers/issue-tracker/index.js +12 -0
  164. package/dist/providers/issue-tracker/jira-client.d.ts +41 -0
  165. package/dist/providers/issue-tracker/jira-client.js +151 -0
  166. package/dist/providers/issue-tracker/jira-events.d.ts +3 -0
  167. package/dist/providers/issue-tracker/jira-events.js +98 -0
  168. package/dist/providers/issue-tracker/jira.d.ts +116 -0
  169. package/dist/providers/issue-tracker/jira.js +502 -0
  170. package/dist/providers/issue-tracker/types.d.ts +269 -0
  171. package/dist/providers/issue-tracker/types.js +16 -0
  172. package/dist/providers/jobs/docker.d.ts +5 -1
  173. package/dist/providers/jobs/docker.js +61 -33
  174. package/dist/providers/jobs/kubernetes.d.ts +3 -0
  175. package/dist/providers/jobs/kubernetes.js +44 -4
  176. package/dist/providers/jobs/service-state.d.ts +22 -0
  177. package/dist/providers/jobs/service-state.js +17 -0
  178. package/dist/providers/llm/anthropic.d.ts +3 -3
  179. package/dist/providers/llm/anthropic.js +3 -9
  180. package/dist/providers/llm/bedrock.d.ts +3 -3
  181. package/dist/providers/llm/bedrock.js +3 -9
  182. package/dist/providers/llm/catalog-lookup.d.ts +10 -0
  183. package/dist/providers/llm/catalog-lookup.js +15 -0
  184. package/dist/providers/llm/catalog-shipped.d.ts +18 -0
  185. package/dist/providers/llm/catalog-shipped.js +197 -0
  186. package/dist/providers/llm/catalog-store.d.ts +58 -0
  187. package/dist/providers/llm/catalog-store.js +138 -0
  188. package/dist/providers/llm/catalog-types.d.ts +66 -0
  189. package/dist/providers/llm/catalog-types.js +64 -0
  190. package/dist/providers/llm/catalog.d.ts +61 -0
  191. package/dist/providers/llm/catalog.js +147 -0
  192. package/dist/providers/llm/claude-provider.d.ts +10 -14
  193. package/dist/providers/llm/claude-provider.js +11 -6
  194. package/dist/providers/llm/index.d.ts +9 -6
  195. package/dist/providers/llm/index.js +8 -5
  196. package/dist/providers/llm/openai.d.ts +14 -5
  197. package/dist/providers/llm/openai.js +24 -14
  198. package/dist/providers/llm/pricing-core.d.ts +5 -3
  199. package/dist/providers/llm/registration.js +8 -12
  200. package/dist/providers/llm/routing.d.ts +18 -17
  201. package/dist/providers/llm/routing.js +40 -24
  202. package/dist/providers/review-host/github-events.js +47 -1
  203. package/dist/providers/review-host/github.js +7 -6
  204. package/dist/providers/review-host/types.d.ts +25 -0
  205. package/dist/providers/vcs/git.js +2 -22
  206. package/dist/providers/vcs/github.d.ts +20 -0
  207. package/dist/providers/vcs/github.js +28 -2
  208. package/dist/providers/vcs/types.d.ts +6 -0
  209. package/dist/quickstart/index.d.ts +8 -0
  210. package/dist/quickstart/index.js +34 -34
  211. package/dist/serve.js +8 -2
  212. package/dist/viewer/api-schema.d.ts +2757 -0
  213. package/dist/viewer/api-schema.js +165 -0
  214. package/dist/viewer/build-schemas.d.ts +2 -0
  215. package/dist/viewer/build-schemas.js +18 -0
  216. package/dist/viewer/event-bus.d.ts +38 -0
  217. package/dist/viewer/event-bus.js +232 -0
  218. package/dist/viewer/graph.d.ts +40 -0
  219. package/dist/viewer/graph.js +243 -0
  220. package/dist/viewer/http.d.ts +30 -0
  221. package/dist/viewer/http.js +133 -0
  222. package/dist/viewer/run-detail.d.ts +4 -0
  223. package/dist/viewer/run-detail.js +61 -0
  224. package/dist/wardby-bin.js +5 -0
  225. package/docs/README.md +10 -0
  226. package/docs/agent-recipes.md +383 -0
  227. package/docs/code-review-agents.md +29 -2
  228. package/docs/coding-agent-setup.md +3 -0
  229. package/docs/coding-worker-isolation.md +39 -5
  230. package/docs/getting-started-gke.md +28 -11
  231. package/docs/getting-started-identity-provider.md +49 -38
  232. package/docs/getting-started.md +14 -0
  233. package/docs/jira-agents.md +649 -0
  234. package/docs/knowledge.md +387 -0
  235. package/docs/models.md +221 -0
  236. package/docs/security-deployment.md +19 -9
  237. package/docs/viewer-api.md +142 -0
  238. package/help/admin-viewer.md +39 -0
  239. package/help/agent-recipes.md +173 -0
  240. package/help/architecture-agent.md +189 -0
  241. package/help/builder-agent.md +80 -0
  242. package/help/code-review-agents.md +6 -0
  243. package/help/cost-attribution.md +67 -0
  244. package/help/creating-agents.md +22 -0
  245. package/help/deploy-gke.md +6 -0
  246. package/help/errors/model-unavailable.md +63 -0
  247. package/help/getting-started.md +1 -0
  248. package/help/github.md +18 -0
  249. package/help/identity-and-access.md +8 -3
  250. package/help/jira.md +135 -0
  251. package/help/knowledge.md +47 -0
  252. package/help/models.md +90 -0
  253. package/help/operating-agents.md +7 -1
  254. package/help/troubleshooting/budgets.md +6 -0
  255. package/package.json +5 -2
  256. package/prisma/migrations/20260930000000_jira_issue_projects/migration.sql +34 -0
  257. package/prisma/migrations/20261001000000_jira_phase2_allowlists/migration.sql +3 -0
  258. package/prisma/migrations/20261001010000_jira_link_types_allowlist/migration.sql +2 -0
  259. package/prisma/migrations/20261002000000_jira_coding_bridge/migration.sql +28 -0
  260. package/prisma/migrations/20261002010000_jira_issue_creation/migration.sql +25 -0
  261. package/prisma/migrations/20261003000000_issue_cost_attribution/migration.sql +56 -0
  262. package/prisma/migrations/20261003010000_coding_run_service_status/migration.sql +23 -0
  263. package/prisma/migrations/20261003020000_viewer_notify/migration.sql +54 -0
  264. package/prisma/migrations/20261003030000_viewer_notify_fixes/migration.sql +47 -0
  265. package/prisma/migrations/20261003040000_viewer_indexes/migration.sql +12 -0
  266. package/prisma/migrations/20261004000000_model_catalog/migration.sql +26 -0
  267. package/prisma/schema.prisma +258 -2
  268. package/dist/mcp/tools/models.d.ts +0 -8
  269. package/dist/mcp/tools/models.js +0 -15
  270. package/dist/providers/llm/pricing-anthropic.d.ts +0 -14
  271. package/dist/providers/llm/pricing-anthropic.js +0 -48
  272. package/dist/providers/llm/pricing-bedrock-claude.d.ts +0 -20
  273. package/dist/providers/llm/pricing-bedrock-claude.js +0 -46
  274. package/dist/providers/llm/pricing.d.ts +0 -30
  275. package/dist/providers/llm/pricing.js +0 -74
@@ -39,6 +39,7 @@ export type RunMinAggregateOutputType = {
39
39
  heartbeatAt: Date | null;
40
40
  finalText: string | null;
41
41
  turns: number | null;
42
+ pricingVersion: string | null;
42
43
  executionManaged: boolean | null;
43
44
  executionBackend: string | null;
44
45
  parentRunId: string | null;
@@ -59,6 +60,7 @@ export type RunMaxAggregateOutputType = {
59
60
  heartbeatAt: Date | null;
60
61
  finalText: string | null;
61
62
  turns: number | null;
63
+ pricingVersion: string | null;
62
64
  executionManaged: boolean | null;
63
65
  executionBackend: string | null;
64
66
  parentRunId: string | null;
@@ -79,6 +81,8 @@ export type RunCountAggregateOutputType = {
79
81
  heartbeatAt: number;
80
82
  finalText: number;
81
83
  turns: number;
84
+ pricingVersion: number;
85
+ pricingSnapshot: number;
82
86
  executionManaged: number;
83
87
  executionBackend: number;
84
88
  parentRunId: number;
@@ -113,6 +117,7 @@ export type RunMinAggregateInputType = {
113
117
  heartbeatAt?: true;
114
118
  finalText?: true;
115
119
  turns?: true;
120
+ pricingVersion?: true;
116
121
  executionManaged?: true;
117
122
  executionBackend?: true;
118
123
  parentRunId?: true;
@@ -133,6 +138,7 @@ export type RunMaxAggregateInputType = {
133
138
  heartbeatAt?: true;
134
139
  finalText?: true;
135
140
  turns?: true;
141
+ pricingVersion?: true;
136
142
  executionManaged?: true;
137
143
  executionBackend?: true;
138
144
  parentRunId?: true;
@@ -153,6 +159,8 @@ export type RunCountAggregateInputType = {
153
159
  heartbeatAt?: true;
154
160
  finalText?: true;
155
161
  turns?: true;
162
+ pricingVersion?: true;
163
+ pricingSnapshot?: true;
156
164
  executionManaged?: true;
157
165
  executionBackend?: true;
158
166
  parentRunId?: true;
@@ -251,6 +259,8 @@ export type RunGroupByOutputType = {
251
259
  heartbeatAt: Date | null;
252
260
  finalText: string | null;
253
261
  turns: number;
262
+ pricingVersion: string | null;
263
+ pricingSnapshot: runtime.JsonValue | null;
254
264
  executionManaged: boolean;
255
265
  executionBackend: string | null;
256
266
  parentRunId: string | null;
@@ -283,6 +293,8 @@ export type RunWhereInput = {
283
293
  heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
284
294
  finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
285
295
  turns?: Prisma.IntFilter<"Run"> | number;
296
+ pricingVersion?: Prisma.StringNullableFilter<"Run"> | string | null;
297
+ pricingSnapshot?: Prisma.JsonNullableFilter<"Run">;
286
298
  executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
287
299
  executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
288
300
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
@@ -293,6 +305,10 @@ export type RunWhereInput = {
293
305
  codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
294
306
  hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
295
307
  hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
308
+ issueStatus?: Prisma.XOR<Prisma.RunIssueStatusNullableScalarRelationFilter, Prisma.RunIssueStatusWhereInput> | null;
309
+ attribution?: Prisma.XOR<Prisma.RunAttributionNullableScalarRelationFilter, Prisma.RunAttributionWhereInput> | null;
310
+ modelUsage?: Prisma.RunModelUsageListRelationFilter;
311
+ serviceStatuses?: Prisma.CodingRunServiceStatusListRelationFilter;
296
312
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
297
313
  childRuns?: Prisma.RunListRelationFilter;
298
314
  };
@@ -310,6 +326,8 @@ export type RunOrderByWithRelationInput = {
310
326
  heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
311
327
  finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
312
328
  turns?: Prisma.SortOrder;
329
+ pricingVersion?: Prisma.SortOrderInput | Prisma.SortOrder;
330
+ pricingSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
313
331
  executionManaged?: Prisma.SortOrder;
314
332
  executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
315
333
  parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -320,6 +338,10 @@ export type RunOrderByWithRelationInput = {
320
338
  codingRun?: Prisma.CodingRunOrderByWithRelationInput;
321
339
  hostCheck?: Prisma.RunHostCheckOrderByWithRelationInput;
322
340
  hostStatus?: Prisma.RunHostStatusOrderByWithRelationInput;
341
+ issueStatus?: Prisma.RunIssueStatusOrderByWithRelationInput;
342
+ attribution?: Prisma.RunAttributionOrderByWithRelationInput;
343
+ modelUsage?: Prisma.RunModelUsageOrderByRelationAggregateInput;
344
+ serviceStatuses?: Prisma.CodingRunServiceStatusOrderByRelationAggregateInput;
323
345
  parentRun?: Prisma.RunOrderByWithRelationInput;
324
346
  childRuns?: Prisma.RunOrderByRelationAggregateInput;
325
347
  };
@@ -340,6 +362,8 @@ export type RunWhereUniqueInput = Prisma.AtLeast<{
340
362
  heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
341
363
  finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
342
364
  turns?: Prisma.IntFilter<"Run"> | number;
365
+ pricingVersion?: Prisma.StringNullableFilter<"Run"> | string | null;
366
+ pricingSnapshot?: Prisma.JsonNullableFilter<"Run">;
343
367
  executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
344
368
  executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
345
369
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
@@ -350,6 +374,10 @@ export type RunWhereUniqueInput = Prisma.AtLeast<{
350
374
  codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
351
375
  hostCheck?: Prisma.XOR<Prisma.RunHostCheckNullableScalarRelationFilter, Prisma.RunHostCheckWhereInput> | null;
352
376
  hostStatus?: Prisma.XOR<Prisma.RunHostStatusNullableScalarRelationFilter, Prisma.RunHostStatusWhereInput> | null;
377
+ issueStatus?: Prisma.XOR<Prisma.RunIssueStatusNullableScalarRelationFilter, Prisma.RunIssueStatusWhereInput> | null;
378
+ attribution?: Prisma.XOR<Prisma.RunAttributionNullableScalarRelationFilter, Prisma.RunAttributionWhereInput> | null;
379
+ modelUsage?: Prisma.RunModelUsageListRelationFilter;
380
+ serviceStatuses?: Prisma.CodingRunServiceStatusListRelationFilter;
353
381
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
354
382
  childRuns?: Prisma.RunListRelationFilter;
355
383
  }, "id">;
@@ -367,6 +395,8 @@ export type RunOrderByWithAggregationInput = {
367
395
  heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
368
396
  finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
369
397
  turns?: Prisma.SortOrder;
398
+ pricingVersion?: Prisma.SortOrderInput | Prisma.SortOrder;
399
+ pricingSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder;
370
400
  executionManaged?: Prisma.SortOrder;
371
401
  executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
372
402
  parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -396,6 +426,8 @@ export type RunScalarWhereWithAggregatesInput = {
396
426
  heartbeatAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Run"> | Date | string | null;
397
427
  finalText?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
398
428
  turns?: Prisma.IntWithAggregatesFilter<"Run"> | number;
429
+ pricingVersion?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
430
+ pricingSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"Run">;
399
431
  executionManaged?: Prisma.BoolWithAggregatesFilter<"Run"> | boolean;
400
432
  executionBackend?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
401
433
  parentRunId?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
@@ -416,6 +448,8 @@ export type RunCreateInput = {
416
448
  heartbeatAt?: Date | string | null;
417
449
  finalText?: string | null;
418
450
  turns?: number;
451
+ pricingVersion?: string | null;
452
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
419
453
  executionManaged?: boolean;
420
454
  executionBackend?: string | null;
421
455
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -425,6 +459,10 @@ export type RunCreateInput = {
425
459
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
426
460
  hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
427
461
  hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
462
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
463
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
464
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
465
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
428
466
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
429
467
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
430
468
  };
@@ -442,6 +480,8 @@ export type RunUncheckedCreateInput = {
442
480
  heartbeatAt?: Date | string | null;
443
481
  finalText?: string | null;
444
482
  turns?: number;
483
+ pricingVersion?: string | null;
484
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
445
485
  executionManaged?: boolean;
446
486
  executionBackend?: string | null;
447
487
  parentRunId?: string | null;
@@ -451,6 +491,10 @@ export type RunUncheckedCreateInput = {
451
491
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
452
492
  hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
453
493
  hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
494
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
495
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
496
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
497
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
454
498
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
455
499
  };
456
500
  export type RunUpdateInput = {
@@ -466,6 +510,8 @@ export type RunUpdateInput = {
466
510
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
467
511
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
468
512
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
513
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
469
515
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
470
516
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
517
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -475,6 +521,10 @@ export type RunUpdateInput = {
475
521
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
476
522
  hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
477
523
  hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
524
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
525
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
526
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
527
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
478
528
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
479
529
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
480
530
  };
@@ -492,6 +542,8 @@ export type RunUncheckedUpdateInput = {
492
542
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
493
543
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
544
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
545
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
546
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
495
547
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
496
548
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
549
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -501,6 +553,10 @@ export type RunUncheckedUpdateInput = {
501
553
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
502
554
  hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
503
555
  hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
556
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
557
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
558
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
559
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
504
560
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
505
561
  };
506
562
  export type RunCreateManyInput = {
@@ -517,6 +573,8 @@ export type RunCreateManyInput = {
517
573
  heartbeatAt?: Date | string | null;
518
574
  finalText?: string | null;
519
575
  turns?: number;
576
+ pricingVersion?: string | null;
577
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
520
578
  executionManaged?: boolean;
521
579
  executionBackend?: string | null;
522
580
  parentRunId?: string | null;
@@ -537,6 +595,8 @@ export type RunUpdateManyMutationInput = {
537
595
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
538
596
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
539
597
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
598
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
599
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
540
600
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
541
601
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
542
602
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -557,6 +617,8 @@ export type RunUncheckedUpdateManyInput = {
557
617
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
558
618
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
559
619
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
620
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
621
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
560
622
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
561
623
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
562
624
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -597,6 +659,8 @@ export type RunCountOrderByAggregateInput = {
597
659
  heartbeatAt?: Prisma.SortOrder;
598
660
  finalText?: Prisma.SortOrder;
599
661
  turns?: Prisma.SortOrder;
662
+ pricingVersion?: Prisma.SortOrder;
663
+ pricingSnapshot?: Prisma.SortOrder;
600
664
  executionManaged?: Prisma.SortOrder;
601
665
  executionBackend?: Prisma.SortOrder;
602
666
  parentRunId?: Prisma.SortOrder;
@@ -624,6 +688,7 @@ export type RunMaxOrderByAggregateInput = {
624
688
  heartbeatAt?: Prisma.SortOrder;
625
689
  finalText?: Prisma.SortOrder;
626
690
  turns?: Prisma.SortOrder;
691
+ pricingVersion?: Prisma.SortOrder;
627
692
  executionManaged?: Prisma.SortOrder;
628
693
  executionBackend?: Prisma.SortOrder;
629
694
  parentRunId?: Prisma.SortOrder;
@@ -644,6 +709,7 @@ export type RunMinOrderByAggregateInput = {
644
709
  heartbeatAt?: Prisma.SortOrder;
645
710
  finalText?: Prisma.SortOrder;
646
711
  turns?: Prisma.SortOrder;
712
+ pricingVersion?: Prisma.SortOrder;
647
713
  executionManaged?: Prisma.SortOrder;
648
714
  executionBackend?: Prisma.SortOrder;
649
715
  parentRunId?: Prisma.SortOrder;
@@ -775,6 +841,18 @@ export type RunUpdateOneRequiredWithoutCodingRunNestedInput = {
775
841
  connect?: Prisma.RunWhereUniqueInput;
776
842
  update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutCodingRunInput, Prisma.RunUpdateWithoutCodingRunInput>, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
777
843
  };
844
+ export type RunCreateNestedOneWithoutServiceStatusesInput = {
845
+ create?: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
846
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutServiceStatusesInput;
847
+ connect?: Prisma.RunWhereUniqueInput;
848
+ };
849
+ export type RunUpdateOneRequiredWithoutServiceStatusesNestedInput = {
850
+ create?: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
851
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutServiceStatusesInput;
852
+ upsert?: Prisma.RunUpsertWithoutServiceStatusesInput;
853
+ connect?: Prisma.RunWhereUniqueInput;
854
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutServiceStatusesInput, Prisma.RunUpdateWithoutServiceStatusesInput>, Prisma.RunUncheckedUpdateWithoutServiceStatusesInput>;
855
+ };
778
856
  export type RunCreateNestedOneWithoutHostCheckInput = {
779
857
  create?: Prisma.XOR<Prisma.RunCreateWithoutHostCheckInput, Prisma.RunUncheckedCreateWithoutHostCheckInput>;
780
858
  connectOrCreate?: Prisma.RunCreateOrConnectWithoutHostCheckInput;
@@ -799,6 +877,42 @@ export type RunUpdateOneRequiredWithoutHostStatusNestedInput = {
799
877
  connect?: Prisma.RunWhereUniqueInput;
800
878
  update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutHostStatusInput, Prisma.RunUpdateWithoutHostStatusInput>, Prisma.RunUncheckedUpdateWithoutHostStatusInput>;
801
879
  };
880
+ export type RunCreateNestedOneWithoutIssueStatusInput = {
881
+ create?: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
882
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutIssueStatusInput;
883
+ connect?: Prisma.RunWhereUniqueInput;
884
+ };
885
+ export type RunUpdateOneRequiredWithoutIssueStatusNestedInput = {
886
+ create?: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
887
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutIssueStatusInput;
888
+ upsert?: Prisma.RunUpsertWithoutIssueStatusInput;
889
+ connect?: Prisma.RunWhereUniqueInput;
890
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutIssueStatusInput, Prisma.RunUpdateWithoutIssueStatusInput>, Prisma.RunUncheckedUpdateWithoutIssueStatusInput>;
891
+ };
892
+ export type RunCreateNestedOneWithoutAttributionInput = {
893
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
894
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAttributionInput;
895
+ connect?: Prisma.RunWhereUniqueInput;
896
+ };
897
+ export type RunUpdateOneRequiredWithoutAttributionNestedInput = {
898
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
899
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAttributionInput;
900
+ upsert?: Prisma.RunUpsertWithoutAttributionInput;
901
+ connect?: Prisma.RunWhereUniqueInput;
902
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutAttributionInput, Prisma.RunUpdateWithoutAttributionInput>, Prisma.RunUncheckedUpdateWithoutAttributionInput>;
903
+ };
904
+ export type RunCreateNestedOneWithoutModelUsageInput = {
905
+ create?: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
906
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutModelUsageInput;
907
+ connect?: Prisma.RunWhereUniqueInput;
908
+ };
909
+ export type RunUpdateOneRequiredWithoutModelUsageNestedInput = {
910
+ create?: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
911
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutModelUsageInput;
912
+ upsert?: Prisma.RunUpsertWithoutModelUsageInput;
913
+ connect?: Prisma.RunWhereUniqueInput;
914
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutModelUsageInput, Prisma.RunUpdateWithoutModelUsageInput>, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
915
+ };
802
916
  export type RunCreateWithoutAgentInput = {
803
917
  id?: string;
804
918
  status?: $Enums.RunStatus;
@@ -812,6 +926,8 @@ export type RunCreateWithoutAgentInput = {
812
926
  heartbeatAt?: Date | string | null;
813
927
  finalText?: string | null;
814
928
  turns?: number;
929
+ pricingVersion?: string | null;
930
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
815
931
  executionManaged?: boolean;
816
932
  executionBackend?: string | null;
817
933
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -820,6 +936,10 @@ export type RunCreateWithoutAgentInput = {
820
936
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
821
937
  hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
822
938
  hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
939
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
940
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
941
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
942
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
823
943
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
824
944
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
825
945
  };
@@ -836,6 +956,8 @@ export type RunUncheckedCreateWithoutAgentInput = {
836
956
  heartbeatAt?: Date | string | null;
837
957
  finalText?: string | null;
838
958
  turns?: number;
959
+ pricingVersion?: string | null;
960
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
839
961
  executionManaged?: boolean;
840
962
  executionBackend?: string | null;
841
963
  parentRunId?: string | null;
@@ -845,6 +967,10 @@ export type RunUncheckedCreateWithoutAgentInput = {
845
967
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
846
968
  hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
847
969
  hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
970
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
971
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
972
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
973
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
848
974
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
849
975
  };
850
976
  export type RunCreateOrConnectWithoutAgentInput = {
@@ -885,6 +1011,8 @@ export type RunScalarWhereInput = {
885
1011
  heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
886
1012
  finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
887
1013
  turns?: Prisma.IntFilter<"Run"> | number;
1014
+ pricingVersion?: Prisma.StringNullableFilter<"Run"> | string | null;
1015
+ pricingSnapshot?: Prisma.JsonNullableFilter<"Run">;
888
1016
  executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
889
1017
  executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
890
1018
  parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
@@ -905,6 +1033,8 @@ export type RunCreateWithoutChildRunsInput = {
905
1033
  heartbeatAt?: Date | string | null;
906
1034
  finalText?: string | null;
907
1035
  turns?: number;
1036
+ pricingVersion?: string | null;
1037
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
908
1038
  executionManaged?: boolean;
909
1039
  executionBackend?: string | null;
910
1040
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -914,6 +1044,10 @@ export type RunCreateWithoutChildRunsInput = {
914
1044
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
915
1045
  hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
916
1046
  hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1047
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1048
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1049
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1050
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
917
1051
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
918
1052
  };
919
1053
  export type RunUncheckedCreateWithoutChildRunsInput = {
@@ -930,6 +1064,8 @@ export type RunUncheckedCreateWithoutChildRunsInput = {
930
1064
  heartbeatAt?: Date | string | null;
931
1065
  finalText?: string | null;
932
1066
  turns?: number;
1067
+ pricingVersion?: string | null;
1068
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
933
1069
  executionManaged?: boolean;
934
1070
  executionBackend?: string | null;
935
1071
  parentRunId?: string | null;
@@ -939,6 +1075,10 @@ export type RunUncheckedCreateWithoutChildRunsInput = {
939
1075
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
940
1076
  hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
941
1077
  hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1078
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1079
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1080
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1081
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
942
1082
  };
943
1083
  export type RunCreateOrConnectWithoutChildRunsInput = {
944
1084
  where: Prisma.RunWhereUniqueInput;
@@ -957,6 +1097,8 @@ export type RunCreateWithoutParentRunInput = {
957
1097
  heartbeatAt?: Date | string | null;
958
1098
  finalText?: string | null;
959
1099
  turns?: number;
1100
+ pricingVersion?: string | null;
1101
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
960
1102
  executionManaged?: boolean;
961
1103
  executionBackend?: string | null;
962
1104
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -966,6 +1108,10 @@ export type RunCreateWithoutParentRunInput = {
966
1108
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
967
1109
  hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
968
1110
  hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1111
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1112
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1113
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1114
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
969
1115
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
970
1116
  };
971
1117
  export type RunUncheckedCreateWithoutParentRunInput = {
@@ -982,6 +1128,8 @@ export type RunUncheckedCreateWithoutParentRunInput = {
982
1128
  heartbeatAt?: Date | string | null;
983
1129
  finalText?: string | null;
984
1130
  turns?: number;
1131
+ pricingVersion?: string | null;
1132
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
985
1133
  executionManaged?: boolean;
986
1134
  executionBackend?: string | null;
987
1135
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -990,6 +1138,10 @@ export type RunUncheckedCreateWithoutParentRunInput = {
990
1138
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
991
1139
  hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
992
1140
  hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1141
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1142
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1143
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1144
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
993
1145
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
994
1146
  };
995
1147
  export type RunCreateOrConnectWithoutParentRunInput = {
@@ -1022,6 +1174,8 @@ export type RunUpdateWithoutChildRunsInput = {
1022
1174
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1023
1175
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1024
1176
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1177
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1178
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1025
1179
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1026
1180
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1027
1181
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1031,6 +1185,10 @@ export type RunUpdateWithoutChildRunsInput = {
1031
1185
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1032
1186
  hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1033
1187
  hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1188
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1189
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1190
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1191
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1034
1192
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1035
1193
  };
1036
1194
  export type RunUncheckedUpdateWithoutChildRunsInput = {
@@ -1047,6 +1205,8 @@ export type RunUncheckedUpdateWithoutChildRunsInput = {
1047
1205
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1048
1206
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1049
1207
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1208
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1209
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1050
1210
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1051
1211
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1052
1212
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1056,6 +1216,10 @@ export type RunUncheckedUpdateWithoutChildRunsInput = {
1056
1216
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1057
1217
  hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1058
1218
  hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1219
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1220
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1221
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1222
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1059
1223
  };
1060
1224
  export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
1061
1225
  where: Prisma.RunWhereUniqueInput;
@@ -1083,6 +1247,8 @@ export type RunCreateWithoutCodingRunInput = {
1083
1247
  heartbeatAt?: Date | string | null;
1084
1248
  finalText?: string | null;
1085
1249
  turns?: number;
1250
+ pricingVersion?: string | null;
1251
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1086
1252
  executionManaged?: boolean;
1087
1253
  executionBackend?: string | null;
1088
1254
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -1091,6 +1257,10 @@ export type RunCreateWithoutCodingRunInput = {
1091
1257
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1092
1258
  hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1093
1259
  hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1260
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1261
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1262
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1263
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1094
1264
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1095
1265
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1096
1266
  };
@@ -1108,6 +1278,8 @@ export type RunUncheckedCreateWithoutCodingRunInput = {
1108
1278
  heartbeatAt?: Date | string | null;
1109
1279
  finalText?: string | null;
1110
1280
  turns?: number;
1281
+ pricingVersion?: string | null;
1282
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1111
1283
  executionManaged?: boolean;
1112
1284
  executionBackend?: string | null;
1113
1285
  parentRunId?: string | null;
@@ -1116,6 +1288,10 @@ export type RunUncheckedCreateWithoutCodingRunInput = {
1116
1288
  triggeredById?: string | null;
1117
1289
  hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1118
1290
  hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1291
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1292
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1293
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1294
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1119
1295
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1120
1296
  };
1121
1297
  export type RunCreateOrConnectWithoutCodingRunInput = {
@@ -1144,6 +1320,8 @@ export type RunUpdateWithoutCodingRunInput = {
1144
1320
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1145
1321
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1146
1322
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1323
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1324
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1147
1325
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1148
1326
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1149
1327
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1152,6 +1330,10 @@ export type RunUpdateWithoutCodingRunInput = {
1152
1330
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1153
1331
  hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1154
1332
  hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1333
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1334
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1335
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1336
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1155
1337
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1156
1338
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1157
1339
  };
@@ -1169,14 +1351,153 @@ export type RunUncheckedUpdateWithoutCodingRunInput = {
1169
1351
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1170
1352
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1171
1353
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1354
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1355
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1356
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1357
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1358
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1359
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1360
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1361
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1362
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1363
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1364
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1365
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1366
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1367
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1368
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1369
+ };
1370
+ export type RunCreateWithoutServiceStatusesInput = {
1371
+ id?: string;
1372
+ status?: $Enums.RunStatus;
1373
+ trigger?: $Enums.RunTrigger;
1374
+ tokensIn?: number;
1375
+ tokensOut?: number;
1376
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1377
+ error?: string | null;
1378
+ startedAt?: Date | string;
1379
+ finishedAt?: Date | string | null;
1380
+ heartbeatAt?: Date | string | null;
1381
+ finalText?: string | null;
1382
+ turns?: number;
1383
+ pricingVersion?: string | null;
1384
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1385
+ executionManaged?: boolean;
1386
+ executionBackend?: string | null;
1387
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1388
+ taskOverride?: string | null;
1389
+ triggeredById?: string | null;
1390
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1391
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1392
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1393
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1394
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1395
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1396
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1397
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1398
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1399
+ };
1400
+ export type RunUncheckedCreateWithoutServiceStatusesInput = {
1401
+ id?: string;
1402
+ agentId: string;
1403
+ status?: $Enums.RunStatus;
1404
+ trigger?: $Enums.RunTrigger;
1405
+ tokensIn?: number;
1406
+ tokensOut?: number;
1407
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1408
+ error?: string | null;
1409
+ startedAt?: Date | string;
1410
+ finishedAt?: Date | string | null;
1411
+ heartbeatAt?: Date | string | null;
1412
+ finalText?: string | null;
1413
+ turns?: number;
1414
+ pricingVersion?: string | null;
1415
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1416
+ executionManaged?: boolean;
1417
+ executionBackend?: string | null;
1418
+ parentRunId?: string | null;
1419
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1420
+ taskOverride?: string | null;
1421
+ triggeredById?: string | null;
1422
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1423
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1424
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1425
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1426
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1427
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1428
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1429
+ };
1430
+ export type RunCreateOrConnectWithoutServiceStatusesInput = {
1431
+ where: Prisma.RunWhereUniqueInput;
1432
+ create: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
1433
+ };
1434
+ export type RunUpsertWithoutServiceStatusesInput = {
1435
+ update: Prisma.XOR<Prisma.RunUpdateWithoutServiceStatusesInput, Prisma.RunUncheckedUpdateWithoutServiceStatusesInput>;
1436
+ create: Prisma.XOR<Prisma.RunCreateWithoutServiceStatusesInput, Prisma.RunUncheckedCreateWithoutServiceStatusesInput>;
1437
+ where?: Prisma.RunWhereInput;
1438
+ };
1439
+ export type RunUpdateToOneWithWhereWithoutServiceStatusesInput = {
1440
+ where?: Prisma.RunWhereInput;
1441
+ data: Prisma.XOR<Prisma.RunUpdateWithoutServiceStatusesInput, Prisma.RunUncheckedUpdateWithoutServiceStatusesInput>;
1442
+ };
1443
+ export type RunUpdateWithoutServiceStatusesInput = {
1444
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1445
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1446
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1447
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1448
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1449
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1450
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1451
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1452
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1453
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1454
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1455
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1456
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1457
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1458
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1459
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1461
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1462
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1463
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1464
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1465
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1466
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1467
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1468
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1469
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1470
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1471
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1472
+ };
1473
+ export type RunUncheckedUpdateWithoutServiceStatusesInput = {
1474
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1475
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1476
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1477
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1478
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1479
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1480
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1481
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1482
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1483
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1484
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1485
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1486
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1487
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1488
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1172
1489
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1173
1490
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1174
1491
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1175
1492
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1176
1493
  taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1177
1494
  triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1495
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1178
1496
  hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1179
1497
  hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1498
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1499
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1500
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1180
1501
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1181
1502
  };
1182
1503
  export type RunCreateWithoutHostCheckInput = {
@@ -1192,6 +1513,8 @@ export type RunCreateWithoutHostCheckInput = {
1192
1513
  heartbeatAt?: Date | string | null;
1193
1514
  finalText?: string | null;
1194
1515
  turns?: number;
1516
+ pricingVersion?: string | null;
1517
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1195
1518
  executionManaged?: boolean;
1196
1519
  executionBackend?: string | null;
1197
1520
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -1200,6 +1523,10 @@ export type RunCreateWithoutHostCheckInput = {
1200
1523
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1201
1524
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1202
1525
  hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1526
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1527
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1528
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1529
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1203
1530
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1204
1531
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1205
1532
  };
@@ -1217,6 +1544,8 @@ export type RunUncheckedCreateWithoutHostCheckInput = {
1217
1544
  heartbeatAt?: Date | string | null;
1218
1545
  finalText?: string | null;
1219
1546
  turns?: number;
1547
+ pricingVersion?: string | null;
1548
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1220
1549
  executionManaged?: boolean;
1221
1550
  executionBackend?: string | null;
1222
1551
  parentRunId?: string | null;
@@ -1225,6 +1554,10 @@ export type RunUncheckedCreateWithoutHostCheckInput = {
1225
1554
  triggeredById?: string | null;
1226
1555
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1227
1556
  hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1557
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1558
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1559
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1560
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1228
1561
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1229
1562
  };
1230
1563
  export type RunCreateOrConnectWithoutHostCheckInput = {
@@ -1253,6 +1586,8 @@ export type RunUpdateWithoutHostCheckInput = {
1253
1586
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1254
1587
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1255
1588
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1589
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1590
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1256
1591
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1257
1592
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1258
1593
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1261,6 +1596,10 @@ export type RunUpdateWithoutHostCheckInput = {
1261
1596
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1262
1597
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1263
1598
  hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1599
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1600
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1601
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1602
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1264
1603
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1265
1604
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1266
1605
  };
@@ -1278,6 +1617,8 @@ export type RunUncheckedUpdateWithoutHostCheckInput = {
1278
1617
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1279
1618
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1280
1619
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1620
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1621
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1281
1622
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1282
1623
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1283
1624
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1286,6 +1627,10 @@ export type RunUncheckedUpdateWithoutHostCheckInput = {
1286
1627
  triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1287
1628
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1288
1629
  hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1630
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1631
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1632
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1633
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1289
1634
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1290
1635
  };
1291
1636
  export type RunCreateWithoutHostStatusInput = {
@@ -1301,6 +1646,8 @@ export type RunCreateWithoutHostStatusInput = {
1301
1646
  heartbeatAt?: Date | string | null;
1302
1647
  finalText?: string | null;
1303
1648
  turns?: number;
1649
+ pricingVersion?: string | null;
1650
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1304
1651
  executionManaged?: boolean;
1305
1652
  executionBackend?: string | null;
1306
1653
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -1309,6 +1656,10 @@ export type RunCreateWithoutHostStatusInput = {
1309
1656
  agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1310
1657
  codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1311
1658
  hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1659
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1660
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1661
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1662
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1312
1663
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1313
1664
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1314
1665
  };
@@ -1326,6 +1677,8 @@ export type RunUncheckedCreateWithoutHostStatusInput = {
1326
1677
  heartbeatAt?: Date | string | null;
1327
1678
  finalText?: string | null;
1328
1679
  turns?: number;
1680
+ pricingVersion?: string | null;
1681
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1329
1682
  executionManaged?: boolean;
1330
1683
  executionBackend?: string | null;
1331
1684
  parentRunId?: string | null;
@@ -1334,6 +1687,10 @@ export type RunUncheckedCreateWithoutHostStatusInput = {
1334
1687
  triggeredById?: string | null;
1335
1688
  codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1336
1689
  hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1690
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1691
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1692
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1693
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1337
1694
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1338
1695
  };
1339
1696
  export type RunCreateOrConnectWithoutHostStatusInput = {
@@ -1362,6 +1719,8 @@ export type RunUpdateWithoutHostStatusInput = {
1362
1719
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1363
1720
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1364
1721
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1722
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1723
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1365
1724
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1366
1725
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1367
1726
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1370,6 +1729,10 @@ export type RunUpdateWithoutHostStatusInput = {
1370
1729
  agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1371
1730
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1372
1731
  hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1732
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1733
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1734
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1735
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1373
1736
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1374
1737
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1375
1738
  };
@@ -1387,6 +1750,274 @@ export type RunUncheckedUpdateWithoutHostStatusInput = {
1387
1750
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1388
1751
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1389
1752
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
1753
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1754
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1755
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1756
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1759
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1760
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1761
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1762
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1763
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1764
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1765
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1766
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1767
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1768
+ };
1769
+ export type RunCreateWithoutIssueStatusInput = {
1770
+ id?: string;
1771
+ status?: $Enums.RunStatus;
1772
+ trigger?: $Enums.RunTrigger;
1773
+ tokensIn?: number;
1774
+ tokensOut?: number;
1775
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1776
+ error?: string | null;
1777
+ startedAt?: Date | string;
1778
+ finishedAt?: Date | string | null;
1779
+ heartbeatAt?: Date | string | null;
1780
+ finalText?: string | null;
1781
+ turns?: number;
1782
+ pricingVersion?: string | null;
1783
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1784
+ executionManaged?: boolean;
1785
+ executionBackend?: string | null;
1786
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1787
+ taskOverride?: string | null;
1788
+ triggeredById?: string | null;
1789
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1790
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1791
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1792
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1793
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1794
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1795
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1796
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1797
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1798
+ };
1799
+ export type RunUncheckedCreateWithoutIssueStatusInput = {
1800
+ id?: string;
1801
+ agentId: string;
1802
+ status?: $Enums.RunStatus;
1803
+ trigger?: $Enums.RunTrigger;
1804
+ tokensIn?: number;
1805
+ tokensOut?: number;
1806
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1807
+ error?: string | null;
1808
+ startedAt?: Date | string;
1809
+ finishedAt?: Date | string | null;
1810
+ heartbeatAt?: Date | string | null;
1811
+ finalText?: string | null;
1812
+ turns?: number;
1813
+ pricingVersion?: string | null;
1814
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1815
+ executionManaged?: boolean;
1816
+ executionBackend?: string | null;
1817
+ parentRunId?: string | null;
1818
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1819
+ taskOverride?: string | null;
1820
+ triggeredById?: string | null;
1821
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1822
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1823
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1824
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1825
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1826
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1827
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1828
+ };
1829
+ export type RunCreateOrConnectWithoutIssueStatusInput = {
1830
+ where: Prisma.RunWhereUniqueInput;
1831
+ create: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
1832
+ };
1833
+ export type RunUpsertWithoutIssueStatusInput = {
1834
+ update: Prisma.XOR<Prisma.RunUpdateWithoutIssueStatusInput, Prisma.RunUncheckedUpdateWithoutIssueStatusInput>;
1835
+ create: Prisma.XOR<Prisma.RunCreateWithoutIssueStatusInput, Prisma.RunUncheckedCreateWithoutIssueStatusInput>;
1836
+ where?: Prisma.RunWhereInput;
1837
+ };
1838
+ export type RunUpdateToOneWithWhereWithoutIssueStatusInput = {
1839
+ where?: Prisma.RunWhereInput;
1840
+ data: Prisma.XOR<Prisma.RunUpdateWithoutIssueStatusInput, Prisma.RunUncheckedUpdateWithoutIssueStatusInput>;
1841
+ };
1842
+ export type RunUpdateWithoutIssueStatusInput = {
1843
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1844
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1845
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1846
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1847
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1848
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1849
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1850
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1851
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1852
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1853
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1854
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1855
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1856
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1857
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1858
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1859
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1860
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1861
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1862
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1863
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1864
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1865
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1866
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1867
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1868
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1869
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1870
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1871
+ };
1872
+ export type RunUncheckedUpdateWithoutIssueStatusInput = {
1873
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1874
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1875
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1876
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1877
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1878
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1879
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1880
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1881
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1882
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1883
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1884
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1885
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1886
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1887
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1888
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1889
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1890
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1891
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1892
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1893
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1894
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1895
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1896
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
1897
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1898
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1899
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1900
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1901
+ };
1902
+ export type RunCreateWithoutAttributionInput = {
1903
+ id?: string;
1904
+ status?: $Enums.RunStatus;
1905
+ trigger?: $Enums.RunTrigger;
1906
+ tokensIn?: number;
1907
+ tokensOut?: number;
1908
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1909
+ error?: string | null;
1910
+ startedAt?: Date | string;
1911
+ finishedAt?: Date | string | null;
1912
+ heartbeatAt?: Date | string | null;
1913
+ finalText?: string | null;
1914
+ turns?: number;
1915
+ pricingVersion?: string | null;
1916
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1917
+ executionManaged?: boolean;
1918
+ executionBackend?: string | null;
1919
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1920
+ taskOverride?: string | null;
1921
+ triggeredById?: string | null;
1922
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1923
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
1924
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
1925
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
1926
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1927
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1928
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1929
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1930
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1931
+ };
1932
+ export type RunUncheckedCreateWithoutAttributionInput = {
1933
+ id?: string;
1934
+ agentId: string;
1935
+ status?: $Enums.RunStatus;
1936
+ trigger?: $Enums.RunTrigger;
1937
+ tokensIn?: number;
1938
+ tokensOut?: number;
1939
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1940
+ error?: string | null;
1941
+ startedAt?: Date | string;
1942
+ finishedAt?: Date | string | null;
1943
+ heartbeatAt?: Date | string | null;
1944
+ finalText?: string | null;
1945
+ turns?: number;
1946
+ pricingVersion?: string | null;
1947
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1948
+ executionManaged?: boolean;
1949
+ executionBackend?: string | null;
1950
+ parentRunId?: string | null;
1951
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1952
+ taskOverride?: string | null;
1953
+ triggeredById?: string | null;
1954
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
1955
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
1956
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
1957
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1958
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1959
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1960
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1961
+ };
1962
+ export type RunCreateOrConnectWithoutAttributionInput = {
1963
+ where: Prisma.RunWhereUniqueInput;
1964
+ create: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
1965
+ };
1966
+ export type RunUpsertWithoutAttributionInput = {
1967
+ update: Prisma.XOR<Prisma.RunUpdateWithoutAttributionInput, Prisma.RunUncheckedUpdateWithoutAttributionInput>;
1968
+ create: Prisma.XOR<Prisma.RunCreateWithoutAttributionInput, Prisma.RunUncheckedCreateWithoutAttributionInput>;
1969
+ where?: Prisma.RunWhereInput;
1970
+ };
1971
+ export type RunUpdateToOneWithWhereWithoutAttributionInput = {
1972
+ where?: Prisma.RunWhereInput;
1973
+ data: Prisma.XOR<Prisma.RunUpdateWithoutAttributionInput, Prisma.RunUncheckedUpdateWithoutAttributionInput>;
1974
+ };
1975
+ export type RunUpdateWithoutAttributionInput = {
1976
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1977
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1978
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1979
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1980
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1981
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1982
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1983
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1984
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1985
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1986
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1987
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1988
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1989
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1990
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1991
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1992
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1993
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1994
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1995
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1996
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1997
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1998
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
1999
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2000
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2001
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2002
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2003
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2004
+ };
2005
+ export type RunUncheckedUpdateWithoutAttributionInput = {
2006
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2007
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
2008
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
2009
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
2010
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
2011
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
2012
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2013
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2014
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2015
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2016
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2017
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2018
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
2019
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2020
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1390
2021
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1391
2022
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1392
2023
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1395,6 +2026,143 @@ export type RunUncheckedUpdateWithoutHostStatusInput = {
1395
2026
  triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1396
2027
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1397
2028
  hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2029
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2030
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2031
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2032
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2033
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
2034
+ };
2035
+ export type RunCreateWithoutModelUsageInput = {
2036
+ id?: string;
2037
+ status?: $Enums.RunStatus;
2038
+ trigger?: $Enums.RunTrigger;
2039
+ tokensIn?: number;
2040
+ tokensOut?: number;
2041
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
2042
+ error?: string | null;
2043
+ startedAt?: Date | string;
2044
+ finishedAt?: Date | string | null;
2045
+ heartbeatAt?: Date | string | null;
2046
+ finalText?: string | null;
2047
+ turns?: number;
2048
+ pricingVersion?: string | null;
2049
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2050
+ executionManaged?: boolean;
2051
+ executionBackend?: string | null;
2052
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
2053
+ taskOverride?: string | null;
2054
+ triggeredById?: string | null;
2055
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
2056
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
2057
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
2058
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
2059
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
2060
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
2061
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
2062
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
2063
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
2064
+ };
2065
+ export type RunUncheckedCreateWithoutModelUsageInput = {
2066
+ id?: string;
2067
+ agentId: string;
2068
+ status?: $Enums.RunStatus;
2069
+ trigger?: $Enums.RunTrigger;
2070
+ tokensIn?: number;
2071
+ tokensOut?: number;
2072
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
2073
+ error?: string | null;
2074
+ startedAt?: Date | string;
2075
+ finishedAt?: Date | string | null;
2076
+ heartbeatAt?: Date | string | null;
2077
+ finalText?: string | null;
2078
+ turns?: number;
2079
+ pricingVersion?: string | null;
2080
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2081
+ executionManaged?: boolean;
2082
+ executionBackend?: string | null;
2083
+ parentRunId?: string | null;
2084
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
2085
+ taskOverride?: string | null;
2086
+ triggeredById?: string | null;
2087
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
2088
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
2089
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
2090
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
2091
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
2092
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
2093
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
2094
+ };
2095
+ export type RunCreateOrConnectWithoutModelUsageInput = {
2096
+ where: Prisma.RunWhereUniqueInput;
2097
+ create: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
2098
+ };
2099
+ export type RunUpsertWithoutModelUsageInput = {
2100
+ update: Prisma.XOR<Prisma.RunUpdateWithoutModelUsageInput, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
2101
+ create: Prisma.XOR<Prisma.RunCreateWithoutModelUsageInput, Prisma.RunUncheckedCreateWithoutModelUsageInput>;
2102
+ where?: Prisma.RunWhereInput;
2103
+ };
2104
+ export type RunUpdateToOneWithWhereWithoutModelUsageInput = {
2105
+ where?: Prisma.RunWhereInput;
2106
+ data: Prisma.XOR<Prisma.RunUpdateWithoutModelUsageInput, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
2107
+ };
2108
+ export type RunUpdateWithoutModelUsageInput = {
2109
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2110
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
2111
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
2112
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
2113
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
2114
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2115
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2116
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2117
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2118
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2119
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2120
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
2121
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2122
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2123
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2124
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2125
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
2126
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2127
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2128
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
2129
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
2130
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
2131
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2132
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2133
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2134
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2135
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2136
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2137
+ };
2138
+ export type RunUncheckedUpdateWithoutModelUsageInput = {
2139
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2140
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
2141
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
2142
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
2143
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
2144
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
2145
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2146
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2147
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2148
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2149
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2150
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2151
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
2152
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2153
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2154
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2155
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2156
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2157
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
2158
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2159
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2160
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
2161
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2162
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2163
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2164
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2165
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1398
2166
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1399
2167
  };
1400
2168
  export type RunCreateManyAgentInput = {
@@ -1410,6 +2178,8 @@ export type RunCreateManyAgentInput = {
1410
2178
  heartbeatAt?: Date | string | null;
1411
2179
  finalText?: string | null;
1412
2180
  turns?: number;
2181
+ pricingVersion?: string | null;
2182
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1413
2183
  executionManaged?: boolean;
1414
2184
  executionBackend?: string | null;
1415
2185
  parentRunId?: string | null;
@@ -1430,6 +2200,8 @@ export type RunUpdateWithoutAgentInput = {
1430
2200
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1431
2201
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1432
2202
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2203
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2204
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1433
2205
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1434
2206
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1435
2207
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1438,6 +2210,10 @@ export type RunUpdateWithoutAgentInput = {
1438
2210
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1439
2211
  hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1440
2212
  hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2213
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2214
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2215
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2216
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1441
2217
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1442
2218
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1443
2219
  };
@@ -1454,6 +2230,8 @@ export type RunUncheckedUpdateWithoutAgentInput = {
1454
2230
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1455
2231
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1456
2232
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2233
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2234
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1457
2235
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1458
2236
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1459
2237
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1463,6 +2241,10 @@ export type RunUncheckedUpdateWithoutAgentInput = {
1463
2241
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1464
2242
  hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1465
2243
  hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2244
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2245
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2246
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2247
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1466
2248
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1467
2249
  };
1468
2250
  export type RunUncheckedUpdateManyWithoutAgentInput = {
@@ -1478,6 +2260,8 @@ export type RunUncheckedUpdateManyWithoutAgentInput = {
1478
2260
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1479
2261
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1480
2262
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2263
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2264
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1481
2265
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1482
2266
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1483
2267
  parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1499,6 +2283,8 @@ export type RunCreateManyParentRunInput = {
1499
2283
  heartbeatAt?: Date | string | null;
1500
2284
  finalText?: string | null;
1501
2285
  turns?: number;
2286
+ pricingVersion?: string | null;
2287
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1502
2288
  executionManaged?: boolean;
1503
2289
  executionBackend?: string | null;
1504
2290
  grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
@@ -1518,6 +2304,8 @@ export type RunUpdateWithoutParentRunInput = {
1518
2304
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1519
2305
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1520
2306
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2307
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2308
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1521
2309
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1522
2310
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1523
2311
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1527,6 +2315,10 @@ export type RunUpdateWithoutParentRunInput = {
1527
2315
  codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1528
2316
  hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
1529
2317
  hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2318
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2319
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2320
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2321
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1530
2322
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1531
2323
  };
1532
2324
  export type RunUncheckedUpdateWithoutParentRunInput = {
@@ -1543,6 +2335,8 @@ export type RunUncheckedUpdateWithoutParentRunInput = {
1543
2335
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1544
2336
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1545
2337
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2338
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2339
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1546
2340
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1547
2341
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1548
2342
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1551,6 +2345,10 @@ export type RunUncheckedUpdateWithoutParentRunInput = {
1551
2345
  codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1552
2346
  hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
1553
2347
  hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2348
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2349
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2350
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2351
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1554
2352
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1555
2353
  };
1556
2354
  export type RunUncheckedUpdateManyWithoutParentRunInput = {
@@ -1567,6 +2365,8 @@ export type RunUncheckedUpdateManyWithoutParentRunInput = {
1567
2365
  heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1568
2366
  finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1569
2367
  turns?: Prisma.IntFieldUpdateOperationsInput | number;
2368
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2369
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1570
2370
  executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1571
2371
  executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1572
2372
  grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
@@ -1577,9 +2377,13 @@ export type RunUncheckedUpdateManyWithoutParentRunInput = {
1577
2377
  * Count Type RunCountOutputType
1578
2378
  */
1579
2379
  export type RunCountOutputType = {
2380
+ modelUsage: number;
2381
+ serviceStatuses: number;
1580
2382
  childRuns: number;
1581
2383
  };
1582
2384
  export type RunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2385
+ modelUsage?: boolean | RunCountOutputTypeCountModelUsageArgs;
2386
+ serviceStatuses?: boolean | RunCountOutputTypeCountServiceStatusesArgs;
1583
2387
  childRuns?: boolean | RunCountOutputTypeCountChildRunsArgs;
1584
2388
  };
1585
2389
  /**
@@ -1591,6 +2395,18 @@ export type RunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensio
1591
2395
  */
1592
2396
  select?: Prisma.RunCountOutputTypeSelect<ExtArgs> | null;
1593
2397
  };
2398
+ /**
2399
+ * RunCountOutputType without action
2400
+ */
2401
+ export type RunCountOutputTypeCountModelUsageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2402
+ where?: Prisma.RunModelUsageWhereInput;
2403
+ };
2404
+ /**
2405
+ * RunCountOutputType without action
2406
+ */
2407
+ export type RunCountOutputTypeCountServiceStatusesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2408
+ where?: Prisma.CodingRunServiceStatusWhereInput;
2409
+ };
1594
2410
  /**
1595
2411
  * RunCountOutputType without action
1596
2412
  */
@@ -1611,6 +2427,8 @@ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
1611
2427
  heartbeatAt?: boolean;
1612
2428
  finalText?: boolean;
1613
2429
  turns?: boolean;
2430
+ pricingVersion?: boolean;
2431
+ pricingSnapshot?: boolean;
1614
2432
  executionManaged?: boolean;
1615
2433
  executionBackend?: boolean;
1616
2434
  parentRunId?: boolean;
@@ -1621,6 +2439,10 @@ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
1621
2439
  codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1622
2440
  hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
1623
2441
  hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
2442
+ issueStatus?: boolean | Prisma.Run$issueStatusArgs<ExtArgs>;
2443
+ attribution?: boolean | Prisma.Run$attributionArgs<ExtArgs>;
2444
+ modelUsage?: boolean | Prisma.Run$modelUsageArgs<ExtArgs>;
2445
+ serviceStatuses?: boolean | Prisma.Run$serviceStatusesArgs<ExtArgs>;
1624
2446
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1625
2447
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1626
2448
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1639,6 +2461,8 @@ export type RunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extension
1639
2461
  heartbeatAt?: boolean;
1640
2462
  finalText?: boolean;
1641
2463
  turns?: boolean;
2464
+ pricingVersion?: boolean;
2465
+ pricingSnapshot?: boolean;
1642
2466
  executionManaged?: boolean;
1643
2467
  executionBackend?: boolean;
1644
2468
  parentRunId?: boolean;
@@ -1662,6 +2486,8 @@ export type RunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extension
1662
2486
  heartbeatAt?: boolean;
1663
2487
  finalText?: boolean;
1664
2488
  turns?: boolean;
2489
+ pricingVersion?: boolean;
2490
+ pricingSnapshot?: boolean;
1665
2491
  executionManaged?: boolean;
1666
2492
  executionBackend?: boolean;
1667
2493
  parentRunId?: boolean;
@@ -1685,6 +2511,8 @@ export type RunSelectScalar = {
1685
2511
  heartbeatAt?: boolean;
1686
2512
  finalText?: boolean;
1687
2513
  turns?: boolean;
2514
+ pricingVersion?: boolean;
2515
+ pricingSnapshot?: boolean;
1688
2516
  executionManaged?: boolean;
1689
2517
  executionBackend?: boolean;
1690
2518
  parentRunId?: boolean;
@@ -1692,12 +2520,16 @@ export type RunSelectScalar = {
1692
2520
  taskOverride?: boolean;
1693
2521
  triggeredById?: boolean;
1694
2522
  };
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"]>;
2523
+ export type RunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "status" | "trigger" | "tokensIn" | "tokensOut" | "costUsd" | "error" | "startedAt" | "finishedAt" | "heartbeatAt" | "finalText" | "turns" | "pricingVersion" | "pricingSnapshot" | "executionManaged" | "executionBackend" | "parentRunId" | "grantedParentMemoryKeys" | "taskOverride" | "triggeredById", ExtArgs["result"]["run"]>;
1696
2524
  export type RunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1697
2525
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1698
2526
  codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1699
2527
  hostCheck?: boolean | Prisma.Run$hostCheckArgs<ExtArgs>;
1700
2528
  hostStatus?: boolean | Prisma.Run$hostStatusArgs<ExtArgs>;
2529
+ issueStatus?: boolean | Prisma.Run$issueStatusArgs<ExtArgs>;
2530
+ attribution?: boolean | Prisma.Run$attributionArgs<ExtArgs>;
2531
+ modelUsage?: boolean | Prisma.Run$modelUsageArgs<ExtArgs>;
2532
+ serviceStatuses?: boolean | Prisma.Run$serviceStatusesArgs<ExtArgs>;
1701
2533
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1702
2534
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1703
2535
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -1717,6 +2549,10 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1717
2549
  codingRun: Prisma.$CodingRunPayload<ExtArgs> | null;
1718
2550
  hostCheck: Prisma.$RunHostCheckPayload<ExtArgs> | null;
1719
2551
  hostStatus: Prisma.$RunHostStatusPayload<ExtArgs> | null;
2552
+ issueStatus: Prisma.$RunIssueStatusPayload<ExtArgs> | null;
2553
+ attribution: Prisma.$RunAttributionPayload<ExtArgs> | null;
2554
+ modelUsage: Prisma.$RunModelUsagePayload<ExtArgs>[];
2555
+ serviceStatuses: Prisma.$CodingRunServiceStatusPayload<ExtArgs>[];
1720
2556
  parentRun: Prisma.$RunPayload<ExtArgs> | null;
1721
2557
  childRuns: Prisma.$RunPayload<ExtArgs>[];
1722
2558
  };
@@ -1749,6 +2585,14 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1749
2585
  * dropped after the engine returned.
1750
2586
  */
1751
2587
  turns: number;
2588
+ /**
2589
+ * The run's model catalog entry, recorded when it started (native: the
2590
+ * runner's load step; coding: dispatch). The run is billed at these rates
2591
+ * for its whole life, resumes included. Null on runs from before the
2592
+ * model catalog.
2593
+ */
2594
+ pricingVersion: string | null;
2595
+ pricingSnapshot: runtime.JsonValue | null;
1752
2596
  /**
1753
2597
  * Detached executors are recovered by handle rather than inferred from trigger.
1754
2598
  */
@@ -2126,6 +2970,10 @@ export interface Prisma__RunClient<T, Null = never, ExtArgs extends runtime.Type
2126
2970
  codingRun<T extends Prisma.Run$codingRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$codingRunArgs<ExtArgs>>): Prisma.Prisma__CodingRunClient<runtime.Types.Result.GetResult<Prisma.$CodingRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2127
2971
  hostCheck<T extends Prisma.Run$hostCheckArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$hostCheckArgs<ExtArgs>>): Prisma.Prisma__RunHostCheckClient<runtime.Types.Result.GetResult<Prisma.$RunHostCheckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2128
2972
  hostStatus<T extends Prisma.Run$hostStatusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$hostStatusArgs<ExtArgs>>): Prisma.Prisma__RunHostStatusClient<runtime.Types.Result.GetResult<Prisma.$RunHostStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2973
+ issueStatus<T extends Prisma.Run$issueStatusArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$issueStatusArgs<ExtArgs>>): Prisma.Prisma__RunIssueStatusClient<runtime.Types.Result.GetResult<Prisma.$RunIssueStatusPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2974
+ attribution<T extends Prisma.Run$attributionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$attributionArgs<ExtArgs>>): Prisma.Prisma__RunAttributionClient<runtime.Types.Result.GetResult<Prisma.$RunAttributionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2975
+ modelUsage<T extends Prisma.Run$modelUsageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$modelUsageArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunModelUsagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2976
+ serviceStatuses<T extends Prisma.Run$serviceStatusesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$serviceStatusesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingRunServiceStatusPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2129
2977
  parentRun<T extends Prisma.Run$parentRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$parentRunArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2130
2978
  childRuns<T extends Prisma.Run$childRunsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$childRunsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2131
2979
  /**
@@ -2166,6 +3014,8 @@ export interface RunFieldRefs {
2166
3014
  readonly heartbeatAt: Prisma.FieldRef<"Run", 'DateTime'>;
2167
3015
  readonly finalText: Prisma.FieldRef<"Run", 'String'>;
2168
3016
  readonly turns: Prisma.FieldRef<"Run", 'Int'>;
3017
+ readonly pricingVersion: Prisma.FieldRef<"Run", 'String'>;
3018
+ readonly pricingSnapshot: Prisma.FieldRef<"Run", 'Json'>;
2169
3019
  readonly executionManaged: Prisma.FieldRef<"Run", 'Boolean'>;
2170
3020
  readonly executionBackend: Prisma.FieldRef<"Run", 'String'>;
2171
3021
  readonly parentRunId: Prisma.FieldRef<"Run", 'String'>;
@@ -2609,6 +3459,88 @@ export type Run$hostStatusArgs<ExtArgs extends runtime.Types.Extensions.Internal
2609
3459
  include?: Prisma.RunHostStatusInclude<ExtArgs> | null;
2610
3460
  where?: Prisma.RunHostStatusWhereInput;
2611
3461
  };
3462
+ /**
3463
+ * Run.issueStatus
3464
+ */
3465
+ export type Run$issueStatusArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3466
+ /**
3467
+ * Select specific fields to fetch from the RunIssueStatus
3468
+ */
3469
+ select?: Prisma.RunIssueStatusSelect<ExtArgs> | null;
3470
+ /**
3471
+ * Omit specific fields from the RunIssueStatus
3472
+ */
3473
+ omit?: Prisma.RunIssueStatusOmit<ExtArgs> | null;
3474
+ /**
3475
+ * Choose, which related nodes to fetch as well
3476
+ */
3477
+ include?: Prisma.RunIssueStatusInclude<ExtArgs> | null;
3478
+ where?: Prisma.RunIssueStatusWhereInput;
3479
+ };
3480
+ /**
3481
+ * Run.attribution
3482
+ */
3483
+ export type Run$attributionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3484
+ /**
3485
+ * Select specific fields to fetch from the RunAttribution
3486
+ */
3487
+ select?: Prisma.RunAttributionSelect<ExtArgs> | null;
3488
+ /**
3489
+ * Omit specific fields from the RunAttribution
3490
+ */
3491
+ omit?: Prisma.RunAttributionOmit<ExtArgs> | null;
3492
+ /**
3493
+ * Choose, which related nodes to fetch as well
3494
+ */
3495
+ include?: Prisma.RunAttributionInclude<ExtArgs> | null;
3496
+ where?: Prisma.RunAttributionWhereInput;
3497
+ };
3498
+ /**
3499
+ * Run.modelUsage
3500
+ */
3501
+ export type Run$modelUsageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3502
+ /**
3503
+ * Select specific fields to fetch from the RunModelUsage
3504
+ */
3505
+ select?: Prisma.RunModelUsageSelect<ExtArgs> | null;
3506
+ /**
3507
+ * Omit specific fields from the RunModelUsage
3508
+ */
3509
+ omit?: Prisma.RunModelUsageOmit<ExtArgs> | null;
3510
+ /**
3511
+ * Choose, which related nodes to fetch as well
3512
+ */
3513
+ include?: Prisma.RunModelUsageInclude<ExtArgs> | null;
3514
+ where?: Prisma.RunModelUsageWhereInput;
3515
+ orderBy?: Prisma.RunModelUsageOrderByWithRelationInput | Prisma.RunModelUsageOrderByWithRelationInput[];
3516
+ cursor?: Prisma.RunModelUsageWhereUniqueInput;
3517
+ take?: number;
3518
+ skip?: number;
3519
+ distinct?: Prisma.RunModelUsageScalarFieldEnum | Prisma.RunModelUsageScalarFieldEnum[];
3520
+ };
3521
+ /**
3522
+ * Run.serviceStatuses
3523
+ */
3524
+ export type Run$serviceStatusesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3525
+ /**
3526
+ * Select specific fields to fetch from the CodingRunServiceStatus
3527
+ */
3528
+ select?: Prisma.CodingRunServiceStatusSelect<ExtArgs> | null;
3529
+ /**
3530
+ * Omit specific fields from the CodingRunServiceStatus
3531
+ */
3532
+ omit?: Prisma.CodingRunServiceStatusOmit<ExtArgs> | null;
3533
+ /**
3534
+ * Choose, which related nodes to fetch as well
3535
+ */
3536
+ include?: Prisma.CodingRunServiceStatusInclude<ExtArgs> | null;
3537
+ where?: Prisma.CodingRunServiceStatusWhereInput;
3538
+ orderBy?: Prisma.CodingRunServiceStatusOrderByWithRelationInput | Prisma.CodingRunServiceStatusOrderByWithRelationInput[];
3539
+ cursor?: Prisma.CodingRunServiceStatusWhereUniqueInput;
3540
+ take?: number;
3541
+ skip?: number;
3542
+ distinct?: Prisma.CodingRunServiceStatusScalarFieldEnum | Prisma.CodingRunServiceStatusScalarFieldEnum[];
3543
+ };
2612
3544
  /**
2613
3545
  * Run.parentRun
2614
3546
  */