@wardby/cli 0.4.1 → 0.5.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 (221) hide show
  1. package/.env.example +8 -1
  2. package/README.md +3 -1
  3. package/deploy/local/docker-compose.quickstart-coding.yml +27 -0
  4. package/dist/claude-coding-worker/driver.d.ts +2 -0
  5. package/dist/claude-coding-worker/driver.js +19 -3
  6. package/dist/claude-coding-worker/sdk.js +1 -1
  7. package/dist/cli.js +41 -22
  8. package/dist/coding/continuation-wording.d.ts +10 -0
  9. package/dist/coding/continuation-wording.js +13 -0
  10. package/dist/coding/docker-preflight.d.ts +12 -0
  11. package/dist/coding/docker-preflight.js +40 -0
  12. package/dist/coding/local-git.d.ts +22 -0
  13. package/dist/coding/local-git.js +102 -0
  14. package/dist/coding/local-repo-status.d.ts +7 -0
  15. package/dist/coding/local-repo-status.js +56 -0
  16. package/dist/coding/local-repo.d.ts +17 -0
  17. package/dist/coding/local-repo.js +65 -0
  18. package/dist/coding/observability.d.ts +1 -1
  19. package/dist/coding/observability.js +1 -0
  20. package/dist/coding/profile.d.ts +6 -0
  21. package/dist/coding/profile.js +13 -4
  22. package/dist/coding/protocol.d.ts +32 -7
  23. package/dist/coding/protocol.js +66 -4
  24. package/dist/coding-worker/artifact.d.ts +1 -0
  25. package/dist/coding-worker/errors.js +2 -0
  26. package/dist/config/providers.d.ts +13 -0
  27. package/dist/config/providers.js +21 -9
  28. package/dist/core/attribution.d.ts +13 -0
  29. package/dist/core/attribution.js +30 -0
  30. package/dist/core/budget-groups.d.ts +3 -1
  31. package/dist/core/budget-groups.js +53 -5
  32. package/dist/core/ci-context.d.ts +8 -0
  33. package/dist/core/ci-context.js +59 -0
  34. package/dist/core/delegation-siblings.d.ts +22 -0
  35. package/dist/core/delegation-siblings.js +40 -0
  36. package/dist/core/dispatch.d.ts +28 -4
  37. package/dist/core/dispatch.js +57 -15
  38. package/dist/core/engine-native.d.ts +16 -0
  39. package/dist/core/engine-native.js +49 -2
  40. package/dist/core/host-events.d.ts +25 -2
  41. package/dist/core/host-events.js +361 -19
  42. package/dist/core/host-status.d.ts +8 -3
  43. package/dist/core/host-status.js +38 -7
  44. package/dist/core/issue-events.d.ts +2 -6
  45. package/dist/core/issue-events.js +13 -19
  46. package/dist/core/pull-request-state-sync.d.ts +17 -0
  47. package/dist/core/pull-request-state-sync.js +53 -0
  48. package/dist/core/reconciler.d.ts +10 -1
  49. package/dist/core/reconciler.js +15 -2
  50. package/dist/core/related-pull-requests.d.ts +95 -0
  51. package/dist/core/related-pull-requests.js +338 -0
  52. package/dist/core/repo-access.d.ts +5 -1
  53. package/dist/core/repo-access.js +17 -1
  54. package/dist/core/review-fix-ledger.d.ts +20 -0
  55. package/dist/core/review-fix-ledger.js +41 -0
  56. package/dist/core/review-fix.d.ts +60 -0
  57. package/dist/core/review-fix.js +155 -0
  58. package/dist/core/review-host-tools.d.ts +13 -2
  59. package/dist/core/review-host-tools.js +72 -11
  60. package/dist/core/runner.d.ts +2 -2
  61. package/dist/core/runner.js +379 -184
  62. package/dist/core/serial-gate.d.ts +11 -0
  63. package/dist/core/serial-gate.js +19 -0
  64. package/dist/core/timing.d.ts +7 -0
  65. package/dist/core/timing.js +7 -0
  66. package/dist/generated/prisma/browser.d.ts +23 -0
  67. package/dist/generated/prisma/client.d.ts +23 -0
  68. package/dist/generated/prisma/commonInputTypes.d.ts +22 -0
  69. package/dist/generated/prisma/internal/class.d.ts +33 -0
  70. package/dist/generated/prisma/internal/class.js +4 -4
  71. package/dist/generated/prisma/internal/prismaNamespace.d.ts +274 -1
  72. package/dist/generated/prisma/internal/prismaNamespace.js +47 -2
  73. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +48 -0
  74. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +47 -2
  75. package/dist/generated/prisma/models/Agent.d.ts +422 -1
  76. package/dist/generated/prisma/models/AgentRepository.d.ts +120 -2
  77. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +42 -1
  78. package/dist/generated/prisma/models/CodingRun.d.ts +205 -1
  79. package/dist/generated/prisma/models/DeferredReview.d.ts +1336 -0
  80. package/dist/generated/prisma/models/DeferredReview.js +1 -0
  81. package/dist/generated/prisma/models/LocalPullRequest.d.ts +1384 -0
  82. package/dist/generated/prisma/models/LocalPullRequest.js +1 -0
  83. package/dist/generated/prisma/models/LocalReview.d.ts +1315 -0
  84. package/dist/generated/prisma/models/LocalReview.js +1 -0
  85. package/dist/generated/prisma/models/Run.d.ts +223 -0
  86. package/dist/generated/prisma/models/RunHostCheck.d.ts +148 -1
  87. package/dist/generated/prisma/models.d.ts +3 -0
  88. package/dist/help-index.json +486 -37
  89. package/dist/import/neutral-schema.d.ts +2 -2
  90. package/dist/mcp/auth/access.d.ts +3 -1
  91. package/dist/mcp/auth/host-account-cli.js +2 -2
  92. package/dist/mcp/auth/repo-authorization.d.ts +6 -7
  93. package/dist/mcp/auth/repo-authorization.js +21 -0
  94. package/dist/mcp/index.js +4 -1
  95. package/dist/mcp/tools/agents.js +46 -4
  96. package/dist/mcp/tools/host-accounts.js +2 -2
  97. package/dist/mcp/tools/repositories.js +71 -12
  98. package/dist/mcp/tools/runs.js +23 -0
  99. package/dist/mcp/tools/trigger.js +153 -24
  100. package/dist/providers/engine/types.d.ts +11 -0
  101. package/dist/providers/executor/composition.js +12 -7
  102. package/dist/providers/executor/container.d.ts +40 -3
  103. package/dist/providers/executor/container.js +140 -9
  104. package/dist/providers/executor/types.d.ts +1 -1
  105. package/dist/providers/jobs/fake-kubernetes-api.d.ts +3 -2
  106. package/dist/providers/jobs/fake-kubernetes-api.js +3 -0
  107. package/dist/providers/jobs/kubernetes-api.d.ts +3 -1
  108. package/dist/providers/jobs/kubernetes-client.d.ts +2 -1
  109. package/dist/providers/jobs/kubernetes-client.js +3 -0
  110. package/dist/providers/jobs/kubernetes-isolation.d.ts +7 -0
  111. package/dist/providers/jobs/kubernetes-isolation.js +8 -3
  112. package/dist/providers/jobs/kubernetes-preflight.d.ts +8 -0
  113. package/dist/providers/jobs/kubernetes-preflight.js +7 -0
  114. package/dist/providers/jobs/kubernetes-quota.d.ts +31 -0
  115. package/dist/providers/jobs/kubernetes-quota.js +110 -0
  116. package/dist/providers/jobs/kubernetes.d.ts +9 -0
  117. package/dist/providers/jobs/kubernetes.js +50 -0
  118. package/dist/providers/jobs/types.d.ts +7 -0
  119. package/dist/providers/review-host/ci.d.ts +7 -0
  120. package/dist/providers/review-host/ci.js +20 -0
  121. package/dist/providers/review-host/github-events.d.ts +7 -0
  122. package/dist/providers/review-host/github-events.js +31 -7
  123. package/dist/providers/review-host/github.d.ts +19 -2
  124. package/dist/providers/review-host/github.js +145 -2
  125. package/dist/providers/review-host/index.d.ts +8 -2
  126. package/dist/providers/review-host/index.js +14 -3
  127. package/dist/providers/review-host/local.d.ts +72 -0
  128. package/dist/providers/review-host/local.js +434 -0
  129. package/dist/providers/review-host/types.d.ts +65 -3
  130. package/dist/providers/review-host/types.js +5 -3
  131. package/dist/providers/vcs/git.d.ts +10 -20
  132. package/dist/providers/vcs/git.js +71 -127
  133. package/dist/providers/vcs/github-remote.d.ts +67 -0
  134. package/dist/providers/vcs/github-remote.js +201 -0
  135. package/dist/providers/vcs/github.d.ts +81 -0
  136. package/dist/providers/vcs/github.js +203 -6
  137. package/dist/providers/vcs/index.d.ts +16 -1
  138. package/dist/providers/vcs/index.js +43 -15
  139. package/dist/providers/vcs/local-remote.d.ts +44 -0
  140. package/dist/providers/vcs/local-remote.js +108 -0
  141. package/dist/providers/vcs/remote.d.ts +58 -0
  142. package/dist/providers/vcs/remote.js +1 -0
  143. package/dist/providers/vcs/routing.d.ts +33 -0
  144. package/dist/providers/vcs/routing.js +52 -0
  145. package/dist/providers/vcs/types.d.ts +12 -1
  146. package/dist/quickstart/coding-db.d.ts +11 -0
  147. package/dist/quickstart/coding-db.js +75 -0
  148. package/dist/quickstart/coding-doctor.d.ts +13 -0
  149. package/dist/quickstart/coding-doctor.js +88 -0
  150. package/dist/quickstart/coding-images.d.ts +15 -0
  151. package/dist/quickstart/coding-images.js +79 -0
  152. package/dist/quickstart/coding-seed.d.ts +63 -0
  153. package/dist/quickstart/coding-seed.js +85 -0
  154. package/dist/quickstart/coding.d.ts +66 -0
  155. package/dist/quickstart/coding.js +430 -0
  156. package/dist/quickstart/images.d.ts +19 -0
  157. package/dist/quickstart/images.js +63 -0
  158. package/dist/quickstart/index.js +61 -12
  159. package/dist/quickstart/starter-services.d.ts +45 -0
  160. package/dist/quickstart/starter-services.js +186 -0
  161. package/dist/quickstart-images.json +1 -0
  162. package/dist/serve.js +14 -1
  163. package/dist/viewer/api-schema.d.ts +176 -0
  164. package/dist/viewer/api-schema.js +27 -2
  165. package/dist/viewer/graph.d.ts +7 -2
  166. package/dist/viewer/graph.js +25 -11
  167. package/dist/viewer/http.d.ts +7 -1
  168. package/dist/viewer/http.js +8 -3
  169. package/dist/viewer/infra.d.ts +2 -0
  170. package/dist/viewer/infra.js +23 -0
  171. package/dist/viewer/run-detail.d.ts +2 -1
  172. package/dist/viewer/run-detail.js +2 -2
  173. package/docs/agent-recipes.md +127 -5
  174. package/docs/code-review-agents.md +293 -38
  175. package/docs/coding-agent-setup.md +141 -2
  176. package/docs/coding-packages.md +21 -0
  177. package/docs/coding-services.md +3 -0
  178. package/docs/coding-worker-isolation.md +56 -20
  179. package/docs/getting-started-gke.md +24 -0
  180. package/docs/getting-started.md +196 -10
  181. package/docs/jira-agents.md +26 -5
  182. package/docs/security-deployment.md +9 -0
  183. package/docs/viewer-api.md +21 -2
  184. package/help/admin-viewer.md +11 -1
  185. package/help/agent-recipes.md +30 -4
  186. package/help/builder-agent.md +4 -0
  187. package/help/code-review-agents.md +82 -2
  188. package/help/coding-packages.md +12 -1
  189. package/help/coding-services.md +4 -0
  190. package/help/cost-attribution.md +3 -1
  191. package/help/creating-agents.md +3 -0
  192. package/help/deploy-gke.md +2 -1
  193. package/help/errors/coding-provider-not-configured.md +60 -0
  194. package/help/errors/coding-turn-limit.md +25 -0
  195. package/help/errors/continuation-closed.md +75 -0
  196. package/help/errors/local-branch-conflict.md +37 -0
  197. package/help/errors/local-path-invalid.md +30 -0
  198. package/help/errors/local-ref-invalid.md +36 -0
  199. package/help/errors/local-ref-not-found.md +41 -0
  200. package/help/errors/local-repo-not-allowed.md +46 -0
  201. package/help/errors/local-repo-not-found.md +39 -0
  202. package/help/errors/model-unavailable.md +7 -6
  203. package/help/errors/vcs-github-not-configured.md +34 -0
  204. package/help/getting-started.md +28 -0
  205. package/help/github.md +22 -5
  206. package/help/jira.md +9 -2
  207. package/help/local-repositories.md +182 -0
  208. package/help/related-pull-requests.md +89 -0
  209. package/help/review-fix-rounds.md +69 -0
  210. package/help/troubleshooting/budgets.md +11 -0
  211. package/help/troubleshooting/coding-workers.md +22 -0
  212. package/help/troubleshooting/repository-access.md +5 -0
  213. package/package.json +3 -2
  214. package/prisma/migrations/20261004100000_delegations_and_coding_turns/migration.sql +12 -0
  215. package/prisma/migrations/20261005000000_review_fix_rounds/migration.sql +5 -0
  216. package/prisma/migrations/20261006000000_parallel_delegations/migration.sql +6 -0
  217. package/prisma/migrations/20261007000000_ci_rereview/migration.sql +4 -0
  218. package/prisma/migrations/20261008000000_review_after_ci/migration.sql +33 -0
  219. package/prisma/migrations/20261009000001_coding_run_local_branch/migration.sql +7 -0
  220. package/prisma/migrations/20261009000002_local_review/migration.sql +50 -0
  221. package/prisma/schema.prisma +98 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -309,6 +309,7 @@ export type RunWhereInput = {
309
309
  attribution?: Prisma.XOR<Prisma.RunAttributionNullableScalarRelationFilter, Prisma.RunAttributionWhereInput> | null;
310
310
  modelUsage?: Prisma.RunModelUsageListRelationFilter;
311
311
  serviceStatuses?: Prisma.CodingRunServiceStatusListRelationFilter;
312
+ localPullRequest?: Prisma.XOR<Prisma.LocalPullRequestNullableScalarRelationFilter, Prisma.LocalPullRequestWhereInput> | null;
312
313
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
313
314
  childRuns?: Prisma.RunListRelationFilter;
314
315
  };
@@ -342,6 +343,7 @@ export type RunOrderByWithRelationInput = {
342
343
  attribution?: Prisma.RunAttributionOrderByWithRelationInput;
343
344
  modelUsage?: Prisma.RunModelUsageOrderByRelationAggregateInput;
344
345
  serviceStatuses?: Prisma.CodingRunServiceStatusOrderByRelationAggregateInput;
346
+ localPullRequest?: Prisma.LocalPullRequestOrderByWithRelationInput;
345
347
  parentRun?: Prisma.RunOrderByWithRelationInput;
346
348
  childRuns?: Prisma.RunOrderByRelationAggregateInput;
347
349
  };
@@ -378,6 +380,7 @@ export type RunWhereUniqueInput = Prisma.AtLeast<{
378
380
  attribution?: Prisma.XOR<Prisma.RunAttributionNullableScalarRelationFilter, Prisma.RunAttributionWhereInput> | null;
379
381
  modelUsage?: Prisma.RunModelUsageListRelationFilter;
380
382
  serviceStatuses?: Prisma.CodingRunServiceStatusListRelationFilter;
383
+ localPullRequest?: Prisma.XOR<Prisma.LocalPullRequestNullableScalarRelationFilter, Prisma.LocalPullRequestWhereInput> | null;
381
384
  parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
382
385
  childRuns?: Prisma.RunListRelationFilter;
383
386
  }, "id">;
@@ -463,6 +466,7 @@ export type RunCreateInput = {
463
466
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
464
467
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
465
468
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
469
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
466
470
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
467
471
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
468
472
  };
@@ -495,6 +499,7 @@ export type RunUncheckedCreateInput = {
495
499
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
496
500
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
497
501
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
502
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
498
503
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
499
504
  };
500
505
  export type RunUpdateInput = {
@@ -525,6 +530,7 @@ export type RunUpdateInput = {
525
530
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
526
531
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
527
532
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
533
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
528
534
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
529
535
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
530
536
  };
@@ -557,6 +563,7 @@ export type RunUncheckedUpdateInput = {
557
563
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
558
564
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
559
565
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
566
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
560
567
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
561
568
  };
562
569
  export type RunCreateManyInput = {
@@ -913,6 +920,20 @@ export type RunUpdateOneRequiredWithoutModelUsageNestedInput = {
913
920
  connect?: Prisma.RunWhereUniqueInput;
914
921
  update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutModelUsageInput, Prisma.RunUpdateWithoutModelUsageInput>, Prisma.RunUncheckedUpdateWithoutModelUsageInput>;
915
922
  };
923
+ export type RunCreateNestedOneWithoutLocalPullRequestInput = {
924
+ create?: Prisma.XOR<Prisma.RunCreateWithoutLocalPullRequestInput, Prisma.RunUncheckedCreateWithoutLocalPullRequestInput>;
925
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutLocalPullRequestInput;
926
+ connect?: Prisma.RunWhereUniqueInput;
927
+ };
928
+ export type RunUpdateOneWithoutLocalPullRequestNestedInput = {
929
+ create?: Prisma.XOR<Prisma.RunCreateWithoutLocalPullRequestInput, Prisma.RunUncheckedCreateWithoutLocalPullRequestInput>;
930
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutLocalPullRequestInput;
931
+ upsert?: Prisma.RunUpsertWithoutLocalPullRequestInput;
932
+ disconnect?: Prisma.RunWhereInput | boolean;
933
+ delete?: Prisma.RunWhereInput | boolean;
934
+ connect?: Prisma.RunWhereUniqueInput;
935
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutLocalPullRequestInput, Prisma.RunUpdateWithoutLocalPullRequestInput>, Prisma.RunUncheckedUpdateWithoutLocalPullRequestInput>;
936
+ };
916
937
  export type RunCreateWithoutAgentInput = {
917
938
  id?: string;
918
939
  status?: $Enums.RunStatus;
@@ -940,6 +961,7 @@ export type RunCreateWithoutAgentInput = {
940
961
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
941
962
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
942
963
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
964
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
943
965
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
944
966
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
945
967
  };
@@ -971,6 +993,7 @@ export type RunUncheckedCreateWithoutAgentInput = {
971
993
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
972
994
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
973
995
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
996
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
974
997
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
975
998
  };
976
999
  export type RunCreateOrConnectWithoutAgentInput = {
@@ -1048,6 +1071,7 @@ export type RunCreateWithoutChildRunsInput = {
1048
1071
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1049
1072
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1050
1073
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1074
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1051
1075
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1052
1076
  };
1053
1077
  export type RunUncheckedCreateWithoutChildRunsInput = {
@@ -1079,6 +1103,7 @@ export type RunUncheckedCreateWithoutChildRunsInput = {
1079
1103
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1080
1104
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1081
1105
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1106
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1082
1107
  };
1083
1108
  export type RunCreateOrConnectWithoutChildRunsInput = {
1084
1109
  where: Prisma.RunWhereUniqueInput;
@@ -1112,6 +1137,7 @@ export type RunCreateWithoutParentRunInput = {
1112
1137
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1113
1138
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1114
1139
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1140
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1115
1141
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1116
1142
  };
1117
1143
  export type RunUncheckedCreateWithoutParentRunInput = {
@@ -1142,6 +1168,7 @@ export type RunUncheckedCreateWithoutParentRunInput = {
1142
1168
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1143
1169
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1144
1170
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1171
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1145
1172
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1146
1173
  };
1147
1174
  export type RunCreateOrConnectWithoutParentRunInput = {
@@ -1189,6 +1216,7 @@ export type RunUpdateWithoutChildRunsInput = {
1189
1216
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1190
1217
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1191
1218
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1219
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
1192
1220
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1193
1221
  };
1194
1222
  export type RunUncheckedUpdateWithoutChildRunsInput = {
@@ -1220,6 +1248,7 @@ export type RunUncheckedUpdateWithoutChildRunsInput = {
1220
1248
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1221
1249
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1222
1250
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1251
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
1223
1252
  };
1224
1253
  export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
1225
1254
  where: Prisma.RunWhereUniqueInput;
@@ -1261,6 +1290,7 @@ export type RunCreateWithoutCodingRunInput = {
1261
1290
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1262
1291
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1263
1292
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1293
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1264
1294
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1265
1295
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1266
1296
  };
@@ -1292,6 +1322,7 @@ export type RunUncheckedCreateWithoutCodingRunInput = {
1292
1322
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1293
1323
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1294
1324
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1325
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1295
1326
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1296
1327
  };
1297
1328
  export type RunCreateOrConnectWithoutCodingRunInput = {
@@ -1334,6 +1365,7 @@ export type RunUpdateWithoutCodingRunInput = {
1334
1365
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1335
1366
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1336
1367
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1368
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
1337
1369
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1338
1370
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1339
1371
  };
@@ -1365,6 +1397,7 @@ export type RunUncheckedUpdateWithoutCodingRunInput = {
1365
1397
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1366
1398
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1367
1399
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1400
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
1368
1401
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1369
1402
  };
1370
1403
  export type RunCreateWithoutServiceStatusesInput = {
@@ -1394,6 +1427,7 @@ export type RunCreateWithoutServiceStatusesInput = {
1394
1427
  issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1395
1428
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1396
1429
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1430
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1397
1431
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1398
1432
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1399
1433
  };
@@ -1425,6 +1459,7 @@ export type RunUncheckedCreateWithoutServiceStatusesInput = {
1425
1459
  issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1426
1460
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1427
1461
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1462
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1428
1463
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1429
1464
  };
1430
1465
  export type RunCreateOrConnectWithoutServiceStatusesInput = {
@@ -1467,6 +1502,7 @@ export type RunUpdateWithoutServiceStatusesInput = {
1467
1502
  issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
1468
1503
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1469
1504
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1505
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
1470
1506
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1471
1507
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1472
1508
  };
@@ -1498,6 +1534,7 @@ export type RunUncheckedUpdateWithoutServiceStatusesInput = {
1498
1534
  issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
1499
1535
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1500
1536
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1537
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
1501
1538
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1502
1539
  };
1503
1540
  export type RunCreateWithoutHostCheckInput = {
@@ -1527,6 +1564,7 @@ export type RunCreateWithoutHostCheckInput = {
1527
1564
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1528
1565
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1529
1566
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1567
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1530
1568
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1531
1569
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1532
1570
  };
@@ -1558,6 +1596,7 @@ export type RunUncheckedCreateWithoutHostCheckInput = {
1558
1596
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1559
1597
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1560
1598
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1599
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1561
1600
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1562
1601
  };
1563
1602
  export type RunCreateOrConnectWithoutHostCheckInput = {
@@ -1600,6 +1639,7 @@ export type RunUpdateWithoutHostCheckInput = {
1600
1639
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1601
1640
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1602
1641
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1642
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
1603
1643
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1604
1644
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1605
1645
  };
@@ -1631,6 +1671,7 @@ export type RunUncheckedUpdateWithoutHostCheckInput = {
1631
1671
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1632
1672
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1633
1673
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1674
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
1634
1675
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1635
1676
  };
1636
1677
  export type RunCreateWithoutHostStatusInput = {
@@ -1660,6 +1701,7 @@ export type RunCreateWithoutHostStatusInput = {
1660
1701
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1661
1702
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1662
1703
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1704
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1663
1705
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1664
1706
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1665
1707
  };
@@ -1691,6 +1733,7 @@ export type RunUncheckedCreateWithoutHostStatusInput = {
1691
1733
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1692
1734
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1693
1735
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1736
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1694
1737
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1695
1738
  };
1696
1739
  export type RunCreateOrConnectWithoutHostStatusInput = {
@@ -1733,6 +1776,7 @@ export type RunUpdateWithoutHostStatusInput = {
1733
1776
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1734
1777
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1735
1778
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1779
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
1736
1780
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1737
1781
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1738
1782
  };
@@ -1764,6 +1808,7 @@ export type RunUncheckedUpdateWithoutHostStatusInput = {
1764
1808
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1765
1809
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1766
1810
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1811
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
1767
1812
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1768
1813
  };
1769
1814
  export type RunCreateWithoutIssueStatusInput = {
@@ -1793,6 +1838,7 @@ export type RunCreateWithoutIssueStatusInput = {
1793
1838
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
1794
1839
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1795
1840
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1841
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1796
1842
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1797
1843
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1798
1844
  };
@@ -1824,6 +1870,7 @@ export type RunUncheckedCreateWithoutIssueStatusInput = {
1824
1870
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
1825
1871
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1826
1872
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
1873
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1827
1874
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1828
1875
  };
1829
1876
  export type RunCreateOrConnectWithoutIssueStatusInput = {
@@ -1866,6 +1913,7 @@ export type RunUpdateWithoutIssueStatusInput = {
1866
1913
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
1867
1914
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
1868
1915
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
1916
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
1869
1917
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1870
1918
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1871
1919
  };
@@ -1897,6 +1945,7 @@ export type RunUncheckedUpdateWithoutIssueStatusInput = {
1897
1945
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
1898
1946
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
1899
1947
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
1948
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
1900
1949
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1901
1950
  };
1902
1951
  export type RunCreateWithoutAttributionInput = {
@@ -1926,6 +1975,7 @@ export type RunCreateWithoutAttributionInput = {
1926
1975
  issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
1927
1976
  modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
1928
1977
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
1978
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
1929
1979
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1930
1980
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1931
1981
  };
@@ -1957,6 +2007,7 @@ export type RunUncheckedCreateWithoutAttributionInput = {
1957
2007
  issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
1958
2008
  modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
1959
2009
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
2010
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
1960
2011
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1961
2012
  };
1962
2013
  export type RunCreateOrConnectWithoutAttributionInput = {
@@ -1999,6 +2050,7 @@ export type RunUpdateWithoutAttributionInput = {
1999
2050
  issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2000
2051
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2001
2052
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2053
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
2002
2054
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2003
2055
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2004
2056
  };
@@ -2030,6 +2082,7 @@ export type RunUncheckedUpdateWithoutAttributionInput = {
2030
2082
  issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2031
2083
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2032
2084
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2085
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
2033
2086
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
2034
2087
  };
2035
2088
  export type RunCreateWithoutModelUsageInput = {
@@ -2059,6 +2112,7 @@ export type RunCreateWithoutModelUsageInput = {
2059
2112
  issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
2060
2113
  attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
2061
2114
  serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
2115
+ localPullRequest?: Prisma.LocalPullRequestCreateNestedOneWithoutRunInput;
2062
2116
  parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
2063
2117
  childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
2064
2118
  };
@@ -2090,6 +2144,7 @@ export type RunUncheckedCreateWithoutModelUsageInput = {
2090
2144
  issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
2091
2145
  attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
2092
2146
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
2147
+ localPullRequest?: Prisma.LocalPullRequestUncheckedCreateNestedOneWithoutRunInput;
2093
2148
  childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
2094
2149
  };
2095
2150
  export type RunCreateOrConnectWithoutModelUsageInput = {
@@ -2132,6 +2187,7 @@ export type RunUpdateWithoutModelUsageInput = {
2132
2187
  issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2133
2188
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2134
2189
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2190
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
2135
2191
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2136
2192
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2137
2193
  };
@@ -2163,6 +2219,144 @@ export type RunUncheckedUpdateWithoutModelUsageInput = {
2163
2219
  issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2164
2220
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2165
2221
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2222
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
2223
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
2224
+ };
2225
+ export type RunCreateWithoutLocalPullRequestInput = {
2226
+ id?: string;
2227
+ status?: $Enums.RunStatus;
2228
+ trigger?: $Enums.RunTrigger;
2229
+ tokensIn?: number;
2230
+ tokensOut?: number;
2231
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
2232
+ error?: string | null;
2233
+ startedAt?: Date | string;
2234
+ finishedAt?: Date | string | null;
2235
+ heartbeatAt?: Date | string | null;
2236
+ finalText?: string | null;
2237
+ turns?: number;
2238
+ pricingVersion?: string | null;
2239
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2240
+ executionManaged?: boolean;
2241
+ executionBackend?: string | null;
2242
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
2243
+ taskOverride?: string | null;
2244
+ triggeredById?: string | null;
2245
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
2246
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
2247
+ hostCheck?: Prisma.RunHostCheckCreateNestedOneWithoutRunInput;
2248
+ hostStatus?: Prisma.RunHostStatusCreateNestedOneWithoutRunInput;
2249
+ issueStatus?: Prisma.RunIssueStatusCreateNestedOneWithoutRunInput;
2250
+ attribution?: Prisma.RunAttributionCreateNestedOneWithoutRunInput;
2251
+ modelUsage?: Prisma.RunModelUsageCreateNestedManyWithoutRunInput;
2252
+ serviceStatuses?: Prisma.CodingRunServiceStatusCreateNestedManyWithoutRunInput;
2253
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
2254
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
2255
+ };
2256
+ export type RunUncheckedCreateWithoutLocalPullRequestInput = {
2257
+ id?: string;
2258
+ agentId: string;
2259
+ status?: $Enums.RunStatus;
2260
+ trigger?: $Enums.RunTrigger;
2261
+ tokensIn?: number;
2262
+ tokensOut?: number;
2263
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
2264
+ error?: string | null;
2265
+ startedAt?: Date | string;
2266
+ finishedAt?: Date | string | null;
2267
+ heartbeatAt?: Date | string | null;
2268
+ finalText?: string | null;
2269
+ turns?: number;
2270
+ pricingVersion?: string | null;
2271
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2272
+ executionManaged?: boolean;
2273
+ executionBackend?: string | null;
2274
+ parentRunId?: string | null;
2275
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
2276
+ taskOverride?: string | null;
2277
+ triggeredById?: string | null;
2278
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
2279
+ hostCheck?: Prisma.RunHostCheckUncheckedCreateNestedOneWithoutRunInput;
2280
+ hostStatus?: Prisma.RunHostStatusUncheckedCreateNestedOneWithoutRunInput;
2281
+ issueStatus?: Prisma.RunIssueStatusUncheckedCreateNestedOneWithoutRunInput;
2282
+ attribution?: Prisma.RunAttributionUncheckedCreateNestedOneWithoutRunInput;
2283
+ modelUsage?: Prisma.RunModelUsageUncheckedCreateNestedManyWithoutRunInput;
2284
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedCreateNestedManyWithoutRunInput;
2285
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
2286
+ };
2287
+ export type RunCreateOrConnectWithoutLocalPullRequestInput = {
2288
+ where: Prisma.RunWhereUniqueInput;
2289
+ create: Prisma.XOR<Prisma.RunCreateWithoutLocalPullRequestInput, Prisma.RunUncheckedCreateWithoutLocalPullRequestInput>;
2290
+ };
2291
+ export type RunUpsertWithoutLocalPullRequestInput = {
2292
+ update: Prisma.XOR<Prisma.RunUpdateWithoutLocalPullRequestInput, Prisma.RunUncheckedUpdateWithoutLocalPullRequestInput>;
2293
+ create: Prisma.XOR<Prisma.RunCreateWithoutLocalPullRequestInput, Prisma.RunUncheckedCreateWithoutLocalPullRequestInput>;
2294
+ where?: Prisma.RunWhereInput;
2295
+ };
2296
+ export type RunUpdateToOneWithWhereWithoutLocalPullRequestInput = {
2297
+ where?: Prisma.RunWhereInput;
2298
+ data: Prisma.XOR<Prisma.RunUpdateWithoutLocalPullRequestInput, Prisma.RunUncheckedUpdateWithoutLocalPullRequestInput>;
2299
+ };
2300
+ export type RunUpdateWithoutLocalPullRequestInput = {
2301
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2302
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
2303
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
2304
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
2305
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
2306
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2307
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2308
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2309
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2310
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2311
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2312
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
2313
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2314
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2315
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2316
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2317
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
2318
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2319
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2320
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
2321
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
2322
+ hostCheck?: Prisma.RunHostCheckUpdateOneWithoutRunNestedInput;
2323
+ hostStatus?: Prisma.RunHostStatusUpdateOneWithoutRunNestedInput;
2324
+ issueStatus?: Prisma.RunIssueStatusUpdateOneWithoutRunNestedInput;
2325
+ attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2326
+ modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2327
+ serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2328
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2329
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2330
+ };
2331
+ export type RunUncheckedUpdateWithoutLocalPullRequestInput = {
2332
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2333
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
2334
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
2335
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
2336
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
2337
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
2338
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2339
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2340
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2341
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2342
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2343
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2344
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
2345
+ pricingVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2346
+ pricingSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2347
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2348
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2349
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2350
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
2351
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2352
+ triggeredById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2353
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
2354
+ hostCheck?: Prisma.RunHostCheckUncheckedUpdateOneWithoutRunNestedInput;
2355
+ hostStatus?: Prisma.RunHostStatusUncheckedUpdateOneWithoutRunNestedInput;
2356
+ issueStatus?: Prisma.RunIssueStatusUncheckedUpdateOneWithoutRunNestedInput;
2357
+ attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2358
+ modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2359
+ serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2166
2360
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
2167
2361
  };
2168
2362
  export type RunCreateManyAgentInput = {
@@ -2214,6 +2408,7 @@ export type RunUpdateWithoutAgentInput = {
2214
2408
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2215
2409
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2216
2410
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2411
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
2217
2412
  parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
2218
2413
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2219
2414
  };
@@ -2245,6 +2440,7 @@ export type RunUncheckedUpdateWithoutAgentInput = {
2245
2440
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2246
2441
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2247
2442
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2443
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
2248
2444
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
2249
2445
  };
2250
2446
  export type RunUncheckedUpdateManyWithoutAgentInput = {
@@ -2319,6 +2515,7 @@ export type RunUpdateWithoutParentRunInput = {
2319
2515
  attribution?: Prisma.RunAttributionUpdateOneWithoutRunNestedInput;
2320
2516
  modelUsage?: Prisma.RunModelUsageUpdateManyWithoutRunNestedInput;
2321
2517
  serviceStatuses?: Prisma.CodingRunServiceStatusUpdateManyWithoutRunNestedInput;
2518
+ localPullRequest?: Prisma.LocalPullRequestUpdateOneWithoutRunNestedInput;
2322
2519
  childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
2323
2520
  };
2324
2521
  export type RunUncheckedUpdateWithoutParentRunInput = {
@@ -2349,6 +2546,7 @@ export type RunUncheckedUpdateWithoutParentRunInput = {
2349
2546
  attribution?: Prisma.RunAttributionUncheckedUpdateOneWithoutRunNestedInput;
2350
2547
  modelUsage?: Prisma.RunModelUsageUncheckedUpdateManyWithoutRunNestedInput;
2351
2548
  serviceStatuses?: Prisma.CodingRunServiceStatusUncheckedUpdateManyWithoutRunNestedInput;
2549
+ localPullRequest?: Prisma.LocalPullRequestUncheckedUpdateOneWithoutRunNestedInput;
2352
2550
  childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
2353
2551
  };
2354
2552
  export type RunUncheckedUpdateManyWithoutParentRunInput = {
@@ -2443,6 +2641,7 @@ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
2443
2641
  attribution?: boolean | Prisma.Run$attributionArgs<ExtArgs>;
2444
2642
  modelUsage?: boolean | Prisma.Run$modelUsageArgs<ExtArgs>;
2445
2643
  serviceStatuses?: boolean | Prisma.Run$serviceStatusesArgs<ExtArgs>;
2644
+ localPullRequest?: boolean | Prisma.Run$localPullRequestArgs<ExtArgs>;
2446
2645
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
2447
2646
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
2448
2647
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -2530,6 +2729,7 @@ export type RunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
2530
2729
  attribution?: boolean | Prisma.Run$attributionArgs<ExtArgs>;
2531
2730
  modelUsage?: boolean | Prisma.Run$modelUsageArgs<ExtArgs>;
2532
2731
  serviceStatuses?: boolean | Prisma.Run$serviceStatusesArgs<ExtArgs>;
2732
+ localPullRequest?: boolean | Prisma.Run$localPullRequestArgs<ExtArgs>;
2533
2733
  parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
2534
2734
  childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
2535
2735
  _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
@@ -2553,6 +2753,10 @@ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2553
2753
  attribution: Prisma.$RunAttributionPayload<ExtArgs> | null;
2554
2754
  modelUsage: Prisma.$RunModelUsagePayload<ExtArgs>[];
2555
2755
  serviceStatuses: Prisma.$CodingRunServiceStatusPayload<ExtArgs>[];
2756
+ /**
2757
+ * A manual review of a local branch: this run is the review run dispatched for it.
2758
+ */
2759
+ localPullRequest: Prisma.$LocalPullRequestPayload<ExtArgs> | null;
2556
2760
  parentRun: Prisma.$RunPayload<ExtArgs> | null;
2557
2761
  childRuns: Prisma.$RunPayload<ExtArgs>[];
2558
2762
  };
@@ -2974,6 +3178,7 @@ export interface Prisma__RunClient<T, Null = never, ExtArgs extends runtime.Type
2974
3178
  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
3179
  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
3180
  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>;
3181
+ localPullRequest<T extends Prisma.Run$localPullRequestArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$localPullRequestArgs<ExtArgs>>): Prisma.Prisma__LocalPullRequestClient<runtime.Types.Result.GetResult<Prisma.$LocalPullRequestPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2977
3182
  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>;
2978
3183
  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>;
2979
3184
  /**
@@ -3541,6 +3746,24 @@ export type Run$serviceStatusesArgs<ExtArgs extends runtime.Types.Extensions.Int
3541
3746
  skip?: number;
3542
3747
  distinct?: Prisma.CodingRunServiceStatusScalarFieldEnum | Prisma.CodingRunServiceStatusScalarFieldEnum[];
3543
3748
  };
3749
+ /**
3750
+ * Run.localPullRequest
3751
+ */
3752
+ export type Run$localPullRequestArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3753
+ /**
3754
+ * Select specific fields to fetch from the LocalPullRequest
3755
+ */
3756
+ select?: Prisma.LocalPullRequestSelect<ExtArgs> | null;
3757
+ /**
3758
+ * Omit specific fields from the LocalPullRequest
3759
+ */
3760
+ omit?: Prisma.LocalPullRequestOmit<ExtArgs> | null;
3761
+ /**
3762
+ * Choose, which related nodes to fetch as well
3763
+ */
3764
+ include?: Prisma.LocalPullRequestInclude<ExtArgs> | null;
3765
+ where?: Prisma.LocalPullRequestWhereInput;
3766
+ };
3544
3767
  /**
3545
3768
  * Run.parentRun
3546
3769
  */