@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
@@ -16,10 +16,12 @@ export type AggregateAgent = {
16
16
  export type AgentAvgAggregateOutputType = {
17
17
  budgetUsd: runtime.Decimal | null;
18
18
  maxTurns: number | null;
19
+ maxDelegationsPerRun: number | null;
19
20
  };
20
21
  export type AgentSumAggregateOutputType = {
21
22
  budgetUsd: runtime.Decimal | null;
22
23
  maxTurns: number | null;
24
+ maxDelegationsPerRun: number | null;
23
25
  };
24
26
  export type AgentMinAggregateOutputType = {
25
27
  id: string | null;
@@ -35,6 +37,8 @@ export type AgentMinAggregateOutputType = {
35
37
  scheduleEnabled: boolean | null;
36
38
  lastScheduledAt: Date | null;
37
39
  maxTurns: number | null;
40
+ maxDelegationsPerRun: number | null;
41
+ parallelDelegations: boolean | null;
38
42
  ownerId: string | null;
39
43
  defectProjectKey: string | null;
40
44
  defectIssueType: string | null;
@@ -56,6 +60,8 @@ export type AgentMaxAggregateOutputType = {
56
60
  scheduleEnabled: boolean | null;
57
61
  lastScheduledAt: Date | null;
58
62
  maxTurns: number | null;
63
+ maxDelegationsPerRun: number | null;
64
+ parallelDelegations: boolean | null;
59
65
  ownerId: string | null;
60
66
  defectProjectKey: string | null;
61
67
  defectIssueType: string | null;
@@ -77,6 +83,8 @@ export type AgentCountAggregateOutputType = {
77
83
  scheduleEnabled: number;
78
84
  lastScheduledAt: number;
79
85
  maxTurns: number;
86
+ maxDelegationsPerRun: number;
87
+ parallelDelegations: number;
80
88
  ownerId: number;
81
89
  defectProjectKey: number;
82
90
  defectIssueType: number;
@@ -88,10 +96,12 @@ export type AgentCountAggregateOutputType = {
88
96
  export type AgentAvgAggregateInputType = {
89
97
  budgetUsd?: true;
90
98
  maxTurns?: true;
99
+ maxDelegationsPerRun?: true;
91
100
  };
92
101
  export type AgentSumAggregateInputType = {
93
102
  budgetUsd?: true;
94
103
  maxTurns?: true;
104
+ maxDelegationsPerRun?: true;
95
105
  };
96
106
  export type AgentMinAggregateInputType = {
97
107
  id?: true;
@@ -107,6 +117,8 @@ export type AgentMinAggregateInputType = {
107
117
  scheduleEnabled?: true;
108
118
  lastScheduledAt?: true;
109
119
  maxTurns?: true;
120
+ maxDelegationsPerRun?: true;
121
+ parallelDelegations?: true;
110
122
  ownerId?: true;
111
123
  defectProjectKey?: true;
112
124
  defectIssueType?: true;
@@ -128,6 +140,8 @@ export type AgentMaxAggregateInputType = {
128
140
  scheduleEnabled?: true;
129
141
  lastScheduledAt?: true;
130
142
  maxTurns?: true;
143
+ maxDelegationsPerRun?: true;
144
+ parallelDelegations?: true;
131
145
  ownerId?: true;
132
146
  defectProjectKey?: true;
133
147
  defectIssueType?: true;
@@ -149,6 +163,8 @@ export type AgentCountAggregateInputType = {
149
163
  scheduleEnabled?: true;
150
164
  lastScheduledAt?: true;
151
165
  maxTurns?: true;
166
+ maxDelegationsPerRun?: true;
167
+ parallelDelegations?: true;
152
168
  ownerId?: true;
153
169
  defectProjectKey?: true;
154
170
  defectIssueType?: true;
@@ -247,6 +263,8 @@ export type AgentGroupByOutputType = {
247
263
  scheduleEnabled: boolean;
248
264
  lastScheduledAt: Date | null;
249
265
  maxTurns: number;
266
+ maxDelegationsPerRun: number;
267
+ parallelDelegations: boolean;
250
268
  ownerId: string | null;
251
269
  defectProjectKey: string | null;
252
270
  defectIssueType: string | null;
@@ -279,6 +297,8 @@ export type AgentWhereInput = {
279
297
  scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
280
298
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
281
299
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
300
+ maxDelegationsPerRun?: Prisma.IntFilter<"Agent"> | number;
301
+ parallelDelegations?: Prisma.BoolFilter<"Agent"> | boolean;
282
302
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
283
303
  defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
284
304
  defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
@@ -293,6 +313,7 @@ export type AgentWhereInput = {
293
313
  datastores?: Prisma.AgentDatastoreListRelationFilter;
294
314
  webhooks?: Prisma.WebhookListRelationFilter;
295
315
  repositories?: Prisma.AgentRepositoryListRelationFilter;
316
+ deferredReviews?: Prisma.DeferredReviewListRelationFilter;
296
317
  issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
297
318
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
298
319
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
@@ -312,6 +333,8 @@ export type AgentOrderByWithRelationInput = {
312
333
  scheduleEnabled?: Prisma.SortOrder;
313
334
  lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
314
335
  maxTurns?: Prisma.SortOrder;
336
+ maxDelegationsPerRun?: Prisma.SortOrder;
337
+ parallelDelegations?: Prisma.SortOrder;
315
338
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
316
339
  defectProjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
317
340
  defectIssueType?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -326,6 +349,7 @@ export type AgentOrderByWithRelationInput = {
326
349
  datastores?: Prisma.AgentDatastoreOrderByRelationAggregateInput;
327
350
  webhooks?: Prisma.WebhookOrderByRelationAggregateInput;
328
351
  repositories?: Prisma.AgentRepositoryOrderByRelationAggregateInput;
352
+ deferredReviews?: Prisma.DeferredReviewOrderByRelationAggregateInput;
329
353
  issueProjects?: Prisma.AgentIssueProjectOrderByRelationAggregateInput;
330
354
  budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
331
355
  subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
@@ -348,6 +372,8 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
348
372
  scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
349
373
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
350
374
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
375
+ maxDelegationsPerRun?: Prisma.IntFilter<"Agent"> | number;
376
+ parallelDelegations?: Prisma.BoolFilter<"Agent"> | boolean;
351
377
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
352
378
  defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
353
379
  defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
@@ -362,6 +388,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
362
388
  datastores?: Prisma.AgentDatastoreListRelationFilter;
363
389
  webhooks?: Prisma.WebhookListRelationFilter;
364
390
  repositories?: Prisma.AgentRepositoryListRelationFilter;
391
+ deferredReviews?: Prisma.DeferredReviewListRelationFilter;
365
392
  issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
366
393
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
367
394
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
@@ -381,6 +408,8 @@ export type AgentOrderByWithAggregationInput = {
381
408
  scheduleEnabled?: Prisma.SortOrder;
382
409
  lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
383
410
  maxTurns?: Prisma.SortOrder;
411
+ maxDelegationsPerRun?: Prisma.SortOrder;
412
+ parallelDelegations?: Prisma.SortOrder;
384
413
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
385
414
  defectProjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
386
415
  defectIssueType?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -410,6 +439,8 @@ export type AgentScalarWhereWithAggregatesInput = {
410
439
  scheduleEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
411
440
  lastScheduledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null;
412
441
  maxTurns?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
442
+ maxDelegationsPerRun?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
443
+ parallelDelegations?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
413
444
  ownerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
414
445
  defectProjectKey?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
415
446
  defectIssueType?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
@@ -431,6 +462,8 @@ export type AgentCreateInput = {
431
462
  scheduleEnabled?: boolean;
432
463
  lastScheduledAt?: Date | string | null;
433
464
  maxTurns?: number;
465
+ maxDelegationsPerRun?: number;
466
+ parallelDelegations?: boolean;
434
467
  defectProjectKey?: string | null;
435
468
  defectIssueType?: string | null;
436
469
  memoryEnabled?: boolean;
@@ -443,6 +476,7 @@ export type AgentCreateInput = {
443
476
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
444
477
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
445
478
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
479
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
446
480
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
447
481
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
448
482
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -462,6 +496,8 @@ export type AgentUncheckedCreateInput = {
462
496
  scheduleEnabled?: boolean;
463
497
  lastScheduledAt?: Date | string | null;
464
498
  maxTurns?: number;
499
+ maxDelegationsPerRun?: number;
500
+ parallelDelegations?: boolean;
465
501
  ownerId?: string | null;
466
502
  defectProjectKey?: string | null;
467
503
  defectIssueType?: string | null;
@@ -475,6 +511,7 @@ export type AgentUncheckedCreateInput = {
475
511
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
476
512
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
477
513
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
514
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
478
515
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
479
516
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
480
517
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -493,6 +530,8 @@ export type AgentUpdateInput = {
493
530
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
494
531
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
495
532
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
533
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
534
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
496
535
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
536
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
498
537
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -505,6 +544,7 @@ export type AgentUpdateInput = {
505
544
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
506
545
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
507
546
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
547
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
508
548
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
509
549
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
510
550
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -524,6 +564,8 @@ export type AgentUncheckedUpdateInput = {
524
564
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
525
565
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
526
566
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
567
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
568
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
527
569
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
570
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
529
571
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -537,6 +579,7 @@ export type AgentUncheckedUpdateInput = {
537
579
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
538
580
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
539
581
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
582
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
540
583
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
541
584
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
542
585
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -555,6 +598,8 @@ export type AgentCreateManyInput = {
555
598
  scheduleEnabled?: boolean;
556
599
  lastScheduledAt?: Date | string | null;
557
600
  maxTurns?: number;
601
+ maxDelegationsPerRun?: number;
602
+ parallelDelegations?: boolean;
558
603
  ownerId?: string | null;
559
604
  defectProjectKey?: string | null;
560
605
  defectIssueType?: string | null;
@@ -576,6 +621,8 @@ export type AgentUpdateManyMutationInput = {
576
621
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
577
622
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
578
623
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
624
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
625
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
579
626
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
580
627
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
581
628
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -595,6 +642,8 @@ export type AgentUncheckedUpdateManyInput = {
595
642
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
596
643
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
597
644
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
645
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
646
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
598
647
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
599
648
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
600
649
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -616,6 +665,8 @@ export type AgentCountOrderByAggregateInput = {
616
665
  scheduleEnabled?: Prisma.SortOrder;
617
666
  lastScheduledAt?: Prisma.SortOrder;
618
667
  maxTurns?: Prisma.SortOrder;
668
+ maxDelegationsPerRun?: Prisma.SortOrder;
669
+ parallelDelegations?: Prisma.SortOrder;
619
670
  ownerId?: Prisma.SortOrder;
620
671
  defectProjectKey?: Prisma.SortOrder;
621
672
  defectIssueType?: Prisma.SortOrder;
@@ -626,6 +677,7 @@ export type AgentCountOrderByAggregateInput = {
626
677
  export type AgentAvgOrderByAggregateInput = {
627
678
  budgetUsd?: Prisma.SortOrder;
628
679
  maxTurns?: Prisma.SortOrder;
680
+ maxDelegationsPerRun?: Prisma.SortOrder;
629
681
  };
630
682
  export type AgentMaxOrderByAggregateInput = {
631
683
  id?: Prisma.SortOrder;
@@ -641,6 +693,8 @@ export type AgentMaxOrderByAggregateInput = {
641
693
  scheduleEnabled?: Prisma.SortOrder;
642
694
  lastScheduledAt?: Prisma.SortOrder;
643
695
  maxTurns?: Prisma.SortOrder;
696
+ maxDelegationsPerRun?: Prisma.SortOrder;
697
+ parallelDelegations?: Prisma.SortOrder;
644
698
  ownerId?: Prisma.SortOrder;
645
699
  defectProjectKey?: Prisma.SortOrder;
646
700
  defectIssueType?: Prisma.SortOrder;
@@ -662,6 +716,8 @@ export type AgentMinOrderByAggregateInput = {
662
716
  scheduleEnabled?: Prisma.SortOrder;
663
717
  lastScheduledAt?: Prisma.SortOrder;
664
718
  maxTurns?: Prisma.SortOrder;
719
+ maxDelegationsPerRun?: Prisma.SortOrder;
720
+ parallelDelegations?: Prisma.SortOrder;
665
721
  ownerId?: Prisma.SortOrder;
666
722
  defectProjectKey?: Prisma.SortOrder;
667
723
  defectIssueType?: Prisma.SortOrder;
@@ -672,6 +728,7 @@ export type AgentMinOrderByAggregateInput = {
672
728
  export type AgentSumOrderByAggregateInput = {
673
729
  budgetUsd?: Prisma.SortOrder;
674
730
  maxTurns?: Prisma.SortOrder;
731
+ maxDelegationsPerRun?: Prisma.SortOrder;
675
732
  };
676
733
  export type AgentScalarRelationFilter = {
677
734
  is?: Prisma.AgentWhereInput;
@@ -901,6 +958,18 @@ export type AgentUpdateOneRequiredWithoutRepositoriesNestedInput = {
901
958
  connect?: Prisma.AgentWhereUniqueInput;
902
959
  update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutRepositoriesInput, Prisma.AgentUpdateWithoutRepositoriesInput>, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
903
960
  };
961
+ export type AgentCreateNestedOneWithoutDeferredReviewsInput = {
962
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutDeferredReviewsInput, Prisma.AgentUncheckedCreateWithoutDeferredReviewsInput>;
963
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutDeferredReviewsInput;
964
+ connect?: Prisma.AgentWhereUniqueInput;
965
+ };
966
+ export type AgentUpdateOneRequiredWithoutDeferredReviewsNestedInput = {
967
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutDeferredReviewsInput, Prisma.AgentUncheckedCreateWithoutDeferredReviewsInput>;
968
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutDeferredReviewsInput;
969
+ upsert?: Prisma.AgentUpsertWithoutDeferredReviewsInput;
970
+ connect?: Prisma.AgentWhereUniqueInput;
971
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutDeferredReviewsInput, Prisma.AgentUpdateWithoutDeferredReviewsInput>, Prisma.AgentUncheckedUpdateWithoutDeferredReviewsInput>;
972
+ };
904
973
  export type AgentCreateNestedOneWithoutIssueProjectsInput = {
905
974
  create?: Prisma.XOR<Prisma.AgentCreateWithoutIssueProjectsInput, Prisma.AgentUncheckedCreateWithoutIssueProjectsInput>;
906
975
  connectOrCreate?: Prisma.AgentCreateOrConnectWithoutIssueProjectsInput;
@@ -927,6 +996,8 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
927
996
  scheduleEnabled?: boolean;
928
997
  lastScheduledAt?: Date | string | null;
929
998
  maxTurns?: number;
999
+ maxDelegationsPerRun?: number;
1000
+ parallelDelegations?: boolean;
930
1001
  defectProjectKey?: string | null;
931
1002
  defectIssueType?: string | null;
932
1003
  memoryEnabled?: boolean;
@@ -939,6 +1010,7 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
939
1010
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
940
1011
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
941
1012
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1013
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
942
1014
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
943
1015
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
944
1016
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -957,6 +1029,8 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
957
1029
  scheduleEnabled?: boolean;
958
1030
  lastScheduledAt?: Date | string | null;
959
1031
  maxTurns?: number;
1032
+ maxDelegationsPerRun?: number;
1033
+ parallelDelegations?: boolean;
960
1034
  ownerId?: string | null;
961
1035
  defectProjectKey?: string | null;
962
1036
  defectIssueType?: string | null;
@@ -970,6 +1044,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
970
1044
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
971
1045
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
972
1046
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1047
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
973
1048
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
974
1049
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
975
1050
  };
@@ -991,6 +1066,8 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
991
1066
  scheduleEnabled?: boolean;
992
1067
  lastScheduledAt?: Date | string | null;
993
1068
  maxTurns?: number;
1069
+ maxDelegationsPerRun?: number;
1070
+ parallelDelegations?: boolean;
994
1071
  defectProjectKey?: string | null;
995
1072
  defectIssueType?: string | null;
996
1073
  memoryEnabled?: boolean;
@@ -1003,6 +1080,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
1003
1080
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1004
1081
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1005
1082
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1083
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1006
1084
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1007
1085
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1008
1086
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1021,6 +1099,8 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1021
1099
  scheduleEnabled?: boolean;
1022
1100
  lastScheduledAt?: Date | string | null;
1023
1101
  maxTurns?: number;
1102
+ maxDelegationsPerRun?: number;
1103
+ parallelDelegations?: boolean;
1024
1104
  ownerId?: string | null;
1025
1105
  defectProjectKey?: string | null;
1026
1106
  defectIssueType?: string | null;
@@ -1034,6 +1114,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1034
1114
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1035
1115
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1036
1116
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1117
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1037
1118
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1038
1119
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1039
1120
  };
@@ -1064,6 +1145,8 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1064
1145
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1065
1146
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1066
1147
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1148
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1149
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1067
1150
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1068
1151
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1069
1152
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1076,6 +1159,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1076
1159
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1077
1160
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1078
1161
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1162
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1079
1163
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1080
1164
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1081
1165
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1094,6 +1178,8 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1094
1178
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1095
1179
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1096
1180
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1181
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1182
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1097
1183
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
1184
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1099
1185
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1107,6 +1193,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1107
1193
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1108
1194
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1109
1195
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1196
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1110
1197
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1111
1198
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1112
1199
  };
@@ -1133,6 +1220,8 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1133
1220
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1134
1221
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1135
1222
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1223
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1224
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1136
1225
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1137
1226
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1138
1227
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1145,6 +1234,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1145
1234
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1146
1235
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1147
1236
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1237
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1148
1238
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1149
1239
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1150
1240
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1163,6 +1253,8 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1163
1253
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1164
1254
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1165
1255
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1256
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1257
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1166
1258
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1167
1259
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1168
1260
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1176,6 +1268,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1176
1268
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1177
1269
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1178
1270
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1271
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1179
1272
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1180
1273
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1181
1274
  };
@@ -1193,6 +1286,8 @@ export type AgentCreateWithoutBudgetGroupInput = {
1193
1286
  scheduleEnabled?: boolean;
1194
1287
  lastScheduledAt?: Date | string | null;
1195
1288
  maxTurns?: number;
1289
+ maxDelegationsPerRun?: number;
1290
+ parallelDelegations?: boolean;
1196
1291
  defectProjectKey?: string | null;
1197
1292
  defectIssueType?: string | null;
1198
1293
  memoryEnabled?: boolean;
@@ -1205,6 +1300,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1205
1300
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1206
1301
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1207
1302
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1303
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1208
1304
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1209
1305
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1210
1306
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1223,6 +1319,8 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1223
1319
  scheduleEnabled?: boolean;
1224
1320
  lastScheduledAt?: Date | string | null;
1225
1321
  maxTurns?: number;
1322
+ maxDelegationsPerRun?: number;
1323
+ parallelDelegations?: boolean;
1226
1324
  ownerId?: string | null;
1227
1325
  defectProjectKey?: string | null;
1228
1326
  defectIssueType?: string | null;
@@ -1235,6 +1333,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1235
1333
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1236
1334
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1237
1335
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1336
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1238
1337
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1239
1338
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1240
1339
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1277,6 +1376,8 @@ export type AgentScalarWhereInput = {
1277
1376
  scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1278
1377
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
1279
1378
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
1379
+ maxDelegationsPerRun?: Prisma.IntFilter<"Agent"> | number;
1380
+ parallelDelegations?: Prisma.BoolFilter<"Agent"> | boolean;
1280
1381
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1281
1382
  defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
1282
1383
  defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
@@ -1298,6 +1399,8 @@ export type AgentCreateWithoutToolsInput = {
1298
1399
  scheduleEnabled?: boolean;
1299
1400
  lastScheduledAt?: Date | string | null;
1300
1401
  maxTurns?: number;
1402
+ maxDelegationsPerRun?: number;
1403
+ parallelDelegations?: boolean;
1301
1404
  defectProjectKey?: string | null;
1302
1405
  defectIssueType?: string | null;
1303
1406
  memoryEnabled?: boolean;
@@ -1309,6 +1412,7 @@ export type AgentCreateWithoutToolsInput = {
1309
1412
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1310
1413
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1311
1414
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1415
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1312
1416
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1313
1417
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1314
1418
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1328,6 +1432,8 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1328
1432
  scheduleEnabled?: boolean;
1329
1433
  lastScheduledAt?: Date | string | null;
1330
1434
  maxTurns?: number;
1435
+ maxDelegationsPerRun?: number;
1436
+ parallelDelegations?: boolean;
1331
1437
  ownerId?: string | null;
1332
1438
  defectProjectKey?: string | null;
1333
1439
  defectIssueType?: string | null;
@@ -1340,6 +1446,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1340
1446
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1341
1447
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1342
1448
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1449
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1343
1450
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1344
1451
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1345
1452
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1371,6 +1478,8 @@ export type AgentUpdateWithoutToolsInput = {
1371
1478
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1372
1479
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1373
1480
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1481
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1482
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1374
1483
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1375
1484
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1376
1485
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1382,6 +1491,7 @@ export type AgentUpdateWithoutToolsInput = {
1382
1491
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1383
1492
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1384
1493
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1494
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1385
1495
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1386
1496
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1387
1497
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1401,6 +1511,8 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1401
1511
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1402
1512
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1403
1513
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1514
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1515
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1404
1516
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1405
1517
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1406
1518
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1413,6 +1525,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1413
1525
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1414
1526
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1415
1527
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1528
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1416
1529
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1417
1530
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1418
1531
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1431,6 +1544,8 @@ export type AgentCreateWithoutDatastoresInput = {
1431
1544
  scheduleEnabled?: boolean;
1432
1545
  lastScheduledAt?: Date | string | null;
1433
1546
  maxTurns?: number;
1547
+ maxDelegationsPerRun?: number;
1548
+ parallelDelegations?: boolean;
1434
1549
  defectProjectKey?: string | null;
1435
1550
  defectIssueType?: string | null;
1436
1551
  memoryEnabled?: boolean;
@@ -1442,6 +1557,7 @@ export type AgentCreateWithoutDatastoresInput = {
1442
1557
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1443
1558
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1444
1559
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1560
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1445
1561
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1446
1562
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1447
1563
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1461,6 +1577,8 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1461
1577
  scheduleEnabled?: boolean;
1462
1578
  lastScheduledAt?: Date | string | null;
1463
1579
  maxTurns?: number;
1580
+ maxDelegationsPerRun?: number;
1581
+ parallelDelegations?: boolean;
1464
1582
  ownerId?: string | null;
1465
1583
  defectProjectKey?: string | null;
1466
1584
  defectIssueType?: string | null;
@@ -1473,6 +1591,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1473
1591
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1474
1592
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1475
1593
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1594
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1476
1595
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1477
1596
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1478
1597
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1504,6 +1623,8 @@ export type AgentUpdateWithoutDatastoresInput = {
1504
1623
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1505
1624
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1506
1625
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1626
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1627
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1507
1628
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1508
1629
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1509
1630
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1515,6 +1636,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1515
1636
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1516
1637
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1517
1638
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1639
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1518
1640
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1519
1641
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1520
1642
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1534,6 +1656,8 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1534
1656
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1535
1657
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1536
1658
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1659
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1660
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1537
1661
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1538
1662
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1539
1663
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1546,6 +1670,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1546
1670
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1547
1671
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1548
1672
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1673
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1549
1674
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1550
1675
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1551
1676
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1564,6 +1689,8 @@ export type AgentCreateWithoutRunsInput = {
1564
1689
  scheduleEnabled?: boolean;
1565
1690
  lastScheduledAt?: Date | string | null;
1566
1691
  maxTurns?: number;
1692
+ maxDelegationsPerRun?: number;
1693
+ parallelDelegations?: boolean;
1567
1694
  defectProjectKey?: string | null;
1568
1695
  defectIssueType?: string | null;
1569
1696
  memoryEnabled?: boolean;
@@ -1575,6 +1702,7 @@ export type AgentCreateWithoutRunsInput = {
1575
1702
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1576
1703
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1577
1704
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1705
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1578
1706
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1579
1707
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1580
1708
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1594,6 +1722,8 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1594
1722
  scheduleEnabled?: boolean;
1595
1723
  lastScheduledAt?: Date | string | null;
1596
1724
  maxTurns?: number;
1725
+ maxDelegationsPerRun?: number;
1726
+ parallelDelegations?: boolean;
1597
1727
  ownerId?: string | null;
1598
1728
  defectProjectKey?: string | null;
1599
1729
  defectIssueType?: string | null;
@@ -1606,6 +1736,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1606
1736
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1607
1737
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1608
1738
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1739
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1609
1740
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1610
1741
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1611
1742
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1637,6 +1768,8 @@ export type AgentUpdateWithoutRunsInput = {
1637
1768
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1638
1769
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1639
1770
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1771
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1772
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1640
1773
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1641
1774
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1642
1775
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1648,6 +1781,7 @@ export type AgentUpdateWithoutRunsInput = {
1648
1781
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1649
1782
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1650
1783
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1784
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1651
1785
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1652
1786
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1653
1787
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1667,6 +1801,8 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1667
1801
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1668
1802
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1669
1803
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1804
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1805
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1670
1806
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1671
1807
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1672
1808
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1679,6 +1815,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1679
1815
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1680
1816
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1681
1817
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1818
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1682
1819
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1683
1820
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1684
1821
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1697,6 +1834,8 @@ export type AgentCreateWithoutCodingProfileInput = {
1697
1834
  scheduleEnabled?: boolean;
1698
1835
  lastScheduledAt?: Date | string | null;
1699
1836
  maxTurns?: number;
1837
+ maxDelegationsPerRun?: number;
1838
+ parallelDelegations?: boolean;
1700
1839
  defectProjectKey?: string | null;
1701
1840
  defectIssueType?: string | null;
1702
1841
  memoryEnabled?: boolean;
@@ -1708,6 +1847,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1708
1847
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1709
1848
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1710
1849
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1850
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1711
1851
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1712
1852
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1713
1853
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1727,6 +1867,8 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1727
1867
  scheduleEnabled?: boolean;
1728
1868
  lastScheduledAt?: Date | string | null;
1729
1869
  maxTurns?: number;
1870
+ maxDelegationsPerRun?: number;
1871
+ parallelDelegations?: boolean;
1730
1872
  ownerId?: string | null;
1731
1873
  defectProjectKey?: string | null;
1732
1874
  defectIssueType?: string | null;
@@ -1739,6 +1881,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1739
1881
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1740
1882
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1741
1883
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1884
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1742
1885
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1743
1886
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1744
1887
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1770,6 +1913,8 @@ export type AgentUpdateWithoutCodingProfileInput = {
1770
1913
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1771
1914
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1772
1915
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1916
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1917
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1773
1918
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1774
1919
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1775
1920
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1781,6 +1926,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
1781
1926
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1782
1927
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1783
1928
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1929
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1784
1930
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1785
1931
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1786
1932
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1800,6 +1946,8 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1800
1946
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1801
1947
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1802
1948
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1949
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
1950
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1803
1951
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1804
1952
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1805
1953
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1812,6 +1960,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1812
1960
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1813
1961
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1814
1962
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1963
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1815
1964
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1816
1965
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1817
1966
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1830,6 +1979,8 @@ export type AgentCreateWithoutOwnerInput = {
1830
1979
  scheduleEnabled?: boolean;
1831
1980
  lastScheduledAt?: Date | string | null;
1832
1981
  maxTurns?: number;
1982
+ maxDelegationsPerRun?: number;
1983
+ parallelDelegations?: boolean;
1833
1984
  defectProjectKey?: string | null;
1834
1985
  defectIssueType?: string | null;
1835
1986
  memoryEnabled?: boolean;
@@ -1841,6 +1992,7 @@ export type AgentCreateWithoutOwnerInput = {
1841
1992
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1842
1993
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1843
1994
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1995
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1844
1996
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1845
1997
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1846
1998
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1860,6 +2012,8 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
1860
2012
  scheduleEnabled?: boolean;
1861
2013
  lastScheduledAt?: Date | string | null;
1862
2014
  maxTurns?: number;
2015
+ maxDelegationsPerRun?: number;
2016
+ parallelDelegations?: boolean;
1863
2017
  defectProjectKey?: string | null;
1864
2018
  defectIssueType?: string | null;
1865
2019
  budgetGroupId?: string | null;
@@ -1872,6 +2026,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
1872
2026
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1873
2027
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1874
2028
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2029
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1875
2030
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1876
2031
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1877
2032
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1911,6 +2066,8 @@ export type AgentCreateWithoutSecretsInput = {
1911
2066
  scheduleEnabled?: boolean;
1912
2067
  lastScheduledAt?: Date | string | null;
1913
2068
  maxTurns?: number;
2069
+ maxDelegationsPerRun?: number;
2070
+ parallelDelegations?: boolean;
1914
2071
  defectProjectKey?: string | null;
1915
2072
  defectIssueType?: string | null;
1916
2073
  memoryEnabled?: boolean;
@@ -1922,6 +2079,7 @@ export type AgentCreateWithoutSecretsInput = {
1922
2079
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1923
2080
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1924
2081
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2082
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1925
2083
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1926
2084
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1927
2085
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1941,6 +2099,8 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
1941
2099
  scheduleEnabled?: boolean;
1942
2100
  lastScheduledAt?: Date | string | null;
1943
2101
  maxTurns?: number;
2102
+ maxDelegationsPerRun?: number;
2103
+ parallelDelegations?: boolean;
1944
2104
  ownerId?: string | null;
1945
2105
  defectProjectKey?: string | null;
1946
2106
  defectIssueType?: string | null;
@@ -1953,6 +2113,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
1953
2113
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1954
2114
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1955
2115
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2116
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1956
2117
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1957
2118
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1958
2119
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1984,6 +2145,8 @@ export type AgentUpdateWithoutSecretsInput = {
1984
2145
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1985
2146
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1986
2147
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2148
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2149
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1987
2150
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1988
2151
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1989
2152
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -1995,6 +2158,7 @@ export type AgentUpdateWithoutSecretsInput = {
1995
2158
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1996
2159
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1997
2160
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2161
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1998
2162
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1999
2163
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2000
2164
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2014,6 +2178,8 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2014
2178
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2015
2179
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2016
2180
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2181
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2182
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2017
2183
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2018
2184
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2019
2185
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2026,6 +2192,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2026
2192
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2027
2193
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2028
2194
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2195
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2029
2196
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2030
2197
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2031
2198
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2044,6 +2211,8 @@ export type AgentCreateWithoutWebhooksInput = {
2044
2211
  scheduleEnabled?: boolean;
2045
2212
  lastScheduledAt?: Date | string | null;
2046
2213
  maxTurns?: number;
2214
+ maxDelegationsPerRun?: number;
2215
+ parallelDelegations?: boolean;
2047
2216
  defectProjectKey?: string | null;
2048
2217
  defectIssueType?: string | null;
2049
2218
  memoryEnabled?: boolean;
@@ -2055,6 +2224,7 @@ export type AgentCreateWithoutWebhooksInput = {
2055
2224
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2056
2225
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2057
2226
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2227
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2058
2228
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2059
2229
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2060
2230
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2074,6 +2244,8 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2074
2244
  scheduleEnabled?: boolean;
2075
2245
  lastScheduledAt?: Date | string | null;
2076
2246
  maxTurns?: number;
2247
+ maxDelegationsPerRun?: number;
2248
+ parallelDelegations?: boolean;
2077
2249
  ownerId?: string | null;
2078
2250
  defectProjectKey?: string | null;
2079
2251
  defectIssueType?: string | null;
@@ -2086,6 +2258,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2086
2258
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2087
2259
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2088
2260
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2261
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2089
2262
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2090
2263
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2091
2264
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2117,6 +2290,8 @@ export type AgentUpdateWithoutWebhooksInput = {
2117
2290
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2118
2291
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2119
2292
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2293
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2294
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2120
2295
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2121
2296
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2122
2297
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -2128,6 +2303,7 @@ export type AgentUpdateWithoutWebhooksInput = {
2128
2303
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2129
2304
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2130
2305
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2306
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2131
2307
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2132
2308
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2133
2309
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2147,6 +2323,8 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2147
2323
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2148
2324
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2149
2325
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2326
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2327
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2150
2328
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2151
2329
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2152
2330
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2159,6 +2337,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2159
2337
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2160
2338
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2161
2339
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2340
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2162
2341
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2163
2342
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2164
2343
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2177,6 +2356,8 @@ export type AgentCreateWithoutRepositoriesInput = {
2177
2356
  scheduleEnabled?: boolean;
2178
2357
  lastScheduledAt?: Date | string | null;
2179
2358
  maxTurns?: number;
2359
+ maxDelegationsPerRun?: number;
2360
+ parallelDelegations?: boolean;
2180
2361
  defectProjectKey?: string | null;
2181
2362
  defectIssueType?: string | null;
2182
2363
  memoryEnabled?: boolean;
@@ -2188,6 +2369,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2188
2369
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2189
2370
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2190
2371
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2372
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2191
2373
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2192
2374
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2193
2375
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2207,6 +2389,8 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2207
2389
  scheduleEnabled?: boolean;
2208
2390
  lastScheduledAt?: Date | string | null;
2209
2391
  maxTurns?: number;
2392
+ maxDelegationsPerRun?: number;
2393
+ parallelDelegations?: boolean;
2210
2394
  ownerId?: string | null;
2211
2395
  defectProjectKey?: string | null;
2212
2396
  defectIssueType?: string | null;
@@ -2219,6 +2403,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2219
2403
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2220
2404
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2221
2405
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2406
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2222
2407
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2223
2408
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2224
2409
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2250,6 +2435,8 @@ export type AgentUpdateWithoutRepositoriesInput = {
2250
2435
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2251
2436
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2252
2437
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2438
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2439
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2253
2440
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2254
2441
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2255
2442
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -2261,6 +2448,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2261
2448
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2262
2449
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2263
2450
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2451
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2264
2452
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2265
2453
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2266
2454
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2280,6 +2468,153 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2280
2468
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2281
2469
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2282
2470
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2471
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2472
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2473
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2474
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2475
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2476
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2477
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2478
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2479
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2480
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2481
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2482
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2483
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2484
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2485
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2486
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2487
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2488
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2489
+ };
2490
+ export type AgentCreateWithoutDeferredReviewsInput = {
2491
+ id?: string;
2492
+ name: string;
2493
+ systemPrompt: string;
2494
+ model: string;
2495
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2496
+ createdAt?: Date | string;
2497
+ updatedAt?: Date | string;
2498
+ kind?: $Enums.AgentKind;
2499
+ schedule?: string | null;
2500
+ timezone?: string;
2501
+ scheduleEnabled?: boolean;
2502
+ lastScheduledAt?: Date | string | null;
2503
+ maxTurns?: number;
2504
+ maxDelegationsPerRun?: number;
2505
+ parallelDelegations?: boolean;
2506
+ defectProjectKey?: string | null;
2507
+ defectIssueType?: string | null;
2508
+ memoryEnabled?: boolean;
2509
+ effort?: string | null;
2510
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2511
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2512
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
2513
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
2514
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2515
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2516
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2517
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2518
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2519
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2520
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2521
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
2522
+ };
2523
+ export type AgentUncheckedCreateWithoutDeferredReviewsInput = {
2524
+ id?: string;
2525
+ name: string;
2526
+ systemPrompt: string;
2527
+ model: string;
2528
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2529
+ createdAt?: Date | string;
2530
+ updatedAt?: Date | string;
2531
+ kind?: $Enums.AgentKind;
2532
+ schedule?: string | null;
2533
+ timezone?: string;
2534
+ scheduleEnabled?: boolean;
2535
+ lastScheduledAt?: Date | string | null;
2536
+ maxTurns?: number;
2537
+ maxDelegationsPerRun?: number;
2538
+ parallelDelegations?: boolean;
2539
+ ownerId?: string | null;
2540
+ defectProjectKey?: string | null;
2541
+ defectIssueType?: string | null;
2542
+ budgetGroupId?: string | null;
2543
+ memoryEnabled?: boolean;
2544
+ effort?: string | null;
2545
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2546
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2547
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
2548
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2549
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2550
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2551
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2552
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2553
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2554
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2555
+ };
2556
+ export type AgentCreateOrConnectWithoutDeferredReviewsInput = {
2557
+ where: Prisma.AgentWhereUniqueInput;
2558
+ create: Prisma.XOR<Prisma.AgentCreateWithoutDeferredReviewsInput, Prisma.AgentUncheckedCreateWithoutDeferredReviewsInput>;
2559
+ };
2560
+ export type AgentUpsertWithoutDeferredReviewsInput = {
2561
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutDeferredReviewsInput, Prisma.AgentUncheckedUpdateWithoutDeferredReviewsInput>;
2562
+ create: Prisma.XOR<Prisma.AgentCreateWithoutDeferredReviewsInput, Prisma.AgentUncheckedCreateWithoutDeferredReviewsInput>;
2563
+ where?: Prisma.AgentWhereInput;
2564
+ };
2565
+ export type AgentUpdateToOneWithWhereWithoutDeferredReviewsInput = {
2566
+ where?: Prisma.AgentWhereInput;
2567
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutDeferredReviewsInput, Prisma.AgentUncheckedUpdateWithoutDeferredReviewsInput>;
2568
+ };
2569
+ export type AgentUpdateWithoutDeferredReviewsInput = {
2570
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2571
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2572
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2573
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2574
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2575
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2576
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2577
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2578
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2579
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2580
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2581
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2582
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2583
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2584
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2585
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2586
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2587
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2588
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2589
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2590
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2591
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
2592
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
2593
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2594
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2595
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2596
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2597
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2598
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2599
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2600
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2601
+ };
2602
+ export type AgentUncheckedUpdateWithoutDeferredReviewsInput = {
2603
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2604
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2605
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2606
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2607
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2608
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2609
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2610
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2611
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2612
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2613
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2614
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2615
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2616
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2617
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2283
2618
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2284
2619
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2285
2620
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2292,6 +2627,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2292
2627
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2293
2628
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2294
2629
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2630
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2295
2631
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2296
2632
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2297
2633
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2310,6 +2646,8 @@ export type AgentCreateWithoutIssueProjectsInput = {
2310
2646
  scheduleEnabled?: boolean;
2311
2647
  lastScheduledAt?: Date | string | null;
2312
2648
  maxTurns?: number;
2649
+ maxDelegationsPerRun?: number;
2650
+ parallelDelegations?: boolean;
2313
2651
  defectProjectKey?: string | null;
2314
2652
  defectIssueType?: string | null;
2315
2653
  memoryEnabled?: boolean;
@@ -2322,6 +2660,7 @@ export type AgentCreateWithoutIssueProjectsInput = {
2322
2660
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2323
2661
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2324
2662
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2663
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2325
2664
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2326
2665
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2327
2666
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2340,6 +2679,8 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2340
2679
  scheduleEnabled?: boolean;
2341
2680
  lastScheduledAt?: Date | string | null;
2342
2681
  maxTurns?: number;
2682
+ maxDelegationsPerRun?: number;
2683
+ parallelDelegations?: boolean;
2343
2684
  ownerId?: string | null;
2344
2685
  defectProjectKey?: string | null;
2345
2686
  defectIssueType?: string | null;
@@ -2353,6 +2694,7 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2353
2694
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2354
2695
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2355
2696
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2697
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2356
2698
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2357
2699
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2358
2700
  };
@@ -2383,6 +2725,8 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2383
2725
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2384
2726
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2385
2727
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2728
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2729
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2386
2730
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2387
2731
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2388
2732
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -2395,6 +2739,7 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2395
2739
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2396
2740
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2397
2741
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2742
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2398
2743
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2399
2744
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2400
2745
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2413,6 +2758,8 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2413
2758
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2414
2759
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2415
2760
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2761
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2762
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2416
2763
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2417
2764
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2418
2765
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2426,6 +2773,7 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2426
2773
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2427
2774
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2428
2775
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2776
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2429
2777
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2430
2778
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2431
2779
  };
@@ -2443,6 +2791,8 @@ export type AgentCreateManyBudgetGroupInput = {
2443
2791
  scheduleEnabled?: boolean;
2444
2792
  lastScheduledAt?: Date | string | null;
2445
2793
  maxTurns?: number;
2794
+ maxDelegationsPerRun?: number;
2795
+ parallelDelegations?: boolean;
2446
2796
  ownerId?: string | null;
2447
2797
  defectProjectKey?: string | null;
2448
2798
  defectIssueType?: string | null;
@@ -2463,6 +2813,8 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2463
2813
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2464
2814
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2465
2815
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2816
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2817
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2466
2818
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2467
2819
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2468
2820
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -2475,6 +2827,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2475
2827
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2476
2828
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2477
2829
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2830
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2478
2831
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2479
2832
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2480
2833
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2493,6 +2846,8 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2493
2846
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2494
2847
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2495
2848
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2849
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2850
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2496
2851
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2497
2852
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2498
2853
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2505,6 +2860,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2505
2860
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2506
2861
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2507
2862
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2863
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2508
2864
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2509
2865
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2510
2866
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2523,6 +2879,8 @@ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
2523
2879
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2524
2880
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2525
2881
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2882
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2883
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2526
2884
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2527
2885
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2528
2886
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2543,6 +2901,8 @@ export type AgentCreateManyOwnerInput = {
2543
2901
  scheduleEnabled?: boolean;
2544
2902
  lastScheduledAt?: Date | string | null;
2545
2903
  maxTurns?: number;
2904
+ maxDelegationsPerRun?: number;
2905
+ parallelDelegations?: boolean;
2546
2906
  defectProjectKey?: string | null;
2547
2907
  defectIssueType?: string | null;
2548
2908
  budgetGroupId?: string | null;
@@ -2563,6 +2923,8 @@ export type AgentUpdateWithoutOwnerInput = {
2563
2923
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2564
2924
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2565
2925
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2926
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2927
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2566
2928
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2567
2929
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2568
2930
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -2574,6 +2936,7 @@ export type AgentUpdateWithoutOwnerInput = {
2574
2936
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2575
2937
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2576
2938
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2939
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2577
2940
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2578
2941
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2579
2942
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2593,6 +2956,8 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2593
2956
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2594
2957
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2595
2958
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2959
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2960
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2596
2961
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2597
2962
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2598
2963
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2605,6 +2970,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2605
2970
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2606
2971
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2607
2972
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2973
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2608
2974
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2609
2975
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2610
2976
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2623,6 +2989,8 @@ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2623
2989
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2624
2990
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2625
2991
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2992
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2993
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2626
2994
  defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2627
2995
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2628
2996
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2639,6 +3007,7 @@ export type AgentCountOutputType = {
2639
3007
  datastores: number;
2640
3008
  webhooks: number;
2641
3009
  repositories: number;
3010
+ deferredReviews: number;
2642
3011
  issueProjects: number;
2643
3012
  subAgentEdgesAsParent: number;
2644
3013
  subAgentEdgesAsChild: number;
@@ -2650,6 +3019,7 @@ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.
2650
3019
  datastores?: boolean | AgentCountOutputTypeCountDatastoresArgs;
2651
3020
  webhooks?: boolean | AgentCountOutputTypeCountWebhooksArgs;
2652
3021
  repositories?: boolean | AgentCountOutputTypeCountRepositoriesArgs;
3022
+ deferredReviews?: boolean | AgentCountOutputTypeCountDeferredReviewsArgs;
2653
3023
  issueProjects?: boolean | AgentCountOutputTypeCountIssueProjectsArgs;
2654
3024
  subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
2655
3025
  subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
@@ -2699,6 +3069,12 @@ export type AgentCountOutputTypeCountWebhooksArgs<ExtArgs extends runtime.Types.
2699
3069
  export type AgentCountOutputTypeCountRepositoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2700
3070
  where?: Prisma.AgentRepositoryWhereInput;
2701
3071
  };
3072
+ /**
3073
+ * AgentCountOutputType without action
3074
+ */
3075
+ export type AgentCountOutputTypeCountDeferredReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3076
+ where?: Prisma.DeferredReviewWhereInput;
3077
+ };
2702
3078
  /**
2703
3079
  * AgentCountOutputType without action
2704
3080
  */
@@ -2731,6 +3107,8 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2731
3107
  scheduleEnabled?: boolean;
2732
3108
  lastScheduledAt?: boolean;
2733
3109
  maxTurns?: boolean;
3110
+ maxDelegationsPerRun?: boolean;
3111
+ parallelDelegations?: boolean;
2734
3112
  ownerId?: boolean;
2735
3113
  defectProjectKey?: boolean;
2736
3114
  defectIssueType?: boolean;
@@ -2745,6 +3123,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2745
3123
  datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2746
3124
  webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2747
3125
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
3126
+ deferredReviews?: boolean | Prisma.Agent$deferredReviewsArgs<ExtArgs>;
2748
3127
  issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
2749
3128
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2750
3129
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
@@ -2765,6 +3144,8 @@ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
2765
3144
  scheduleEnabled?: boolean;
2766
3145
  lastScheduledAt?: boolean;
2767
3146
  maxTurns?: boolean;
3147
+ maxDelegationsPerRun?: boolean;
3148
+ parallelDelegations?: boolean;
2768
3149
  ownerId?: boolean;
2769
3150
  defectProjectKey?: boolean;
2770
3151
  defectIssueType?: boolean;
@@ -2788,6 +3169,8 @@ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
2788
3169
  scheduleEnabled?: boolean;
2789
3170
  lastScheduledAt?: boolean;
2790
3171
  maxTurns?: boolean;
3172
+ maxDelegationsPerRun?: boolean;
3173
+ parallelDelegations?: boolean;
2791
3174
  ownerId?: boolean;
2792
3175
  defectProjectKey?: boolean;
2793
3176
  defectIssueType?: boolean;
@@ -2811,6 +3194,8 @@ export type AgentSelectScalar = {
2811
3194
  scheduleEnabled?: boolean;
2812
3195
  lastScheduledAt?: boolean;
2813
3196
  maxTurns?: boolean;
3197
+ maxDelegationsPerRun?: boolean;
3198
+ parallelDelegations?: boolean;
2814
3199
  ownerId?: boolean;
2815
3200
  defectProjectKey?: boolean;
2816
3201
  defectIssueType?: boolean;
@@ -2818,7 +3203,7 @@ export type AgentSelectScalar = {
2818
3203
  memoryEnabled?: boolean;
2819
3204
  effort?: boolean;
2820
3205
  };
2821
- export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "ownerId" | "defectProjectKey" | "defectIssueType" | "budgetGroupId" | "memoryEnabled" | "effort", ExtArgs["result"]["agent"]>;
3206
+ export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "maxDelegationsPerRun" | "parallelDelegations" | "ownerId" | "defectProjectKey" | "defectIssueType" | "budgetGroupId" | "memoryEnabled" | "effort", ExtArgs["result"]["agent"]>;
2822
3207
  export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2823
3208
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2824
3209
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
@@ -2828,6 +3213,7 @@ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2828
3213
  datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2829
3214
  webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2830
3215
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
3216
+ deferredReviews?: boolean | Prisma.Agent$deferredReviewsArgs<ExtArgs>;
2831
3217
  issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
2832
3218
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2833
3219
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
@@ -2853,6 +3239,7 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2853
3239
  datastores: Prisma.$AgentDatastorePayload<ExtArgs>[];
2854
3240
  webhooks: Prisma.$WebhookPayload<ExtArgs>[];
2855
3241
  repositories: Prisma.$AgentRepositoryPayload<ExtArgs>[];
3242
+ deferredReviews: Prisma.$DeferredReviewPayload<ExtArgs>[];
2856
3243
  issueProjects: Prisma.$AgentIssueProjectPayload<ExtArgs>[];
2857
3244
  budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
2858
3245
  /**
@@ -2880,6 +3267,14 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2880
3267
  */
2881
3268
  lastScheduledAt: Date | null;
2882
3269
  maxTurns: number;
3270
+ /**
3271
+ * Sub-agent delegations one run may make (delegate_to_*), each to a different sub-agent. 1 = route to exactly one.
3272
+ */
3273
+ maxDelegationsPerRun: number;
3274
+ /**
3275
+ * Native leads: the delegate_to_* calls of one model turn run at the same time. False = one after another.
3276
+ */
3277
+ parallelDelegations: boolean;
2883
3278
  ownerId: string | null;
2884
3279
  /**
2885
3280
  * Self-defects opt-in: the Jira project and issue type wardby files the agent's own failures into. Both or neither.
@@ -3237,6 +3632,7 @@ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Ty
3237
3632
  datastores<T extends Prisma.Agent$datastoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$datastoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentDatastorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3238
3633
  webhooks<T extends Prisma.Agent$webhooksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$webhooksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3239
3634
  repositories<T extends Prisma.Agent$repositoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$repositoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3635
+ deferredReviews<T extends Prisma.Agent$deferredReviewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$deferredReviewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeferredReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3240
3636
  issueProjects<T extends Prisma.Agent$issueProjectsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$issueProjectsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentIssueProjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3241
3637
  budgetGroup<T extends Prisma.Agent$budgetGroupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$budgetGroupArgs<ExtArgs>>): Prisma.Prisma__BudgetGroupClient<runtime.Types.Result.GetResult<Prisma.$BudgetGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
3242
3638
  subAgentEdgesAsParent<T extends Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -3279,6 +3675,8 @@ export interface AgentFieldRefs {
3279
3675
  readonly scheduleEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
3280
3676
  readonly lastScheduledAt: Prisma.FieldRef<"Agent", 'DateTime'>;
3281
3677
  readonly maxTurns: Prisma.FieldRef<"Agent", 'Int'>;
3678
+ readonly maxDelegationsPerRun: Prisma.FieldRef<"Agent", 'Int'>;
3679
+ readonly parallelDelegations: Prisma.FieldRef<"Agent", 'Boolean'>;
3282
3680
  readonly ownerId: Prisma.FieldRef<"Agent", 'String'>;
3283
3681
  readonly defectProjectKey: Prisma.FieldRef<"Agent", 'String'>;
3284
3682
  readonly defectIssueType: Prisma.FieldRef<"Agent", 'String'>;
@@ -3842,6 +4240,29 @@ export type Agent$repositoriesArgs<ExtArgs extends runtime.Types.Extensions.Inte
3842
4240
  skip?: number;
3843
4241
  distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
3844
4242
  };
4243
+ /**
4244
+ * Agent.deferredReviews
4245
+ */
4246
+ export type Agent$deferredReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4247
+ /**
4248
+ * Select specific fields to fetch from the DeferredReview
4249
+ */
4250
+ select?: Prisma.DeferredReviewSelect<ExtArgs> | null;
4251
+ /**
4252
+ * Omit specific fields from the DeferredReview
4253
+ */
4254
+ omit?: Prisma.DeferredReviewOmit<ExtArgs> | null;
4255
+ /**
4256
+ * Choose, which related nodes to fetch as well
4257
+ */
4258
+ include?: Prisma.DeferredReviewInclude<ExtArgs> | null;
4259
+ where?: Prisma.DeferredReviewWhereInput;
4260
+ orderBy?: Prisma.DeferredReviewOrderByWithRelationInput | Prisma.DeferredReviewOrderByWithRelationInput[];
4261
+ cursor?: Prisma.DeferredReviewWhereUniqueInput;
4262
+ take?: number;
4263
+ skip?: number;
4264
+ distinct?: Prisma.DeferredReviewScalarFieldEnum | Prisma.DeferredReviewScalarFieldEnum[];
4265
+ };
3845
4266
  /**
3846
4267
  * Agent.issueProjects
3847
4268
  */