@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
@@ -15,10 +15,12 @@ export type AggregateCodingAgentProfile = {
15
15
  };
16
16
  export type CodingAgentProfileAvgAggregateOutputType = {
17
17
  timeoutSec: number | null;
18
+ maxTurns: number | null;
18
19
  workspaceDiskMb: number | null;
19
20
  };
20
21
  export type CodingAgentProfileSumAggregateOutputType = {
21
22
  timeoutSec: number | null;
23
+ maxTurns: number | null;
22
24
  workspaceDiskMb: number | null;
23
25
  };
24
26
  export type CodingAgentProfileMinAggregateOutputType = {
@@ -29,6 +31,7 @@ export type CodingAgentProfileMinAggregateOutputType = {
29
31
  defaultTask: string | null;
30
32
  allowWebhookTaskOverride: boolean | null;
31
33
  timeoutSec: number | null;
34
+ maxTurns: number | null;
32
35
  toolchain: string | null;
33
36
  toolchainVersion: string | null;
34
37
  workerImageRef: string | null;
@@ -46,6 +49,7 @@ export type CodingAgentProfileMaxAggregateOutputType = {
46
49
  defaultTask: string | null;
47
50
  allowWebhookTaskOverride: boolean | null;
48
51
  timeoutSec: number | null;
52
+ maxTurns: number | null;
49
53
  toolchain: string | null;
50
54
  toolchainVersion: string | null;
51
55
  workerImageRef: string | null;
@@ -63,6 +67,7 @@ export type CodingAgentProfileCountAggregateOutputType = {
63
67
  defaultTask: number;
64
68
  allowWebhookTaskOverride: number;
65
69
  timeoutSec: number;
70
+ maxTurns: number;
66
71
  allowedEgress: number;
67
72
  protectedPaths: number;
68
73
  collectExclude: number;
@@ -81,10 +86,12 @@ export type CodingAgentProfileCountAggregateOutputType = {
81
86
  };
82
87
  export type CodingAgentProfileAvgAggregateInputType = {
83
88
  timeoutSec?: true;
89
+ maxTurns?: true;
84
90
  workspaceDiskMb?: true;
85
91
  };
86
92
  export type CodingAgentProfileSumAggregateInputType = {
87
93
  timeoutSec?: true;
94
+ maxTurns?: true;
88
95
  workspaceDiskMb?: true;
89
96
  };
90
97
  export type CodingAgentProfileMinAggregateInputType = {
@@ -95,6 +102,7 @@ export type CodingAgentProfileMinAggregateInputType = {
95
102
  defaultTask?: true;
96
103
  allowWebhookTaskOverride?: true;
97
104
  timeoutSec?: true;
105
+ maxTurns?: true;
98
106
  toolchain?: true;
99
107
  toolchainVersion?: true;
100
108
  workerImageRef?: true;
@@ -112,6 +120,7 @@ export type CodingAgentProfileMaxAggregateInputType = {
112
120
  defaultTask?: true;
113
121
  allowWebhookTaskOverride?: true;
114
122
  timeoutSec?: true;
123
+ maxTurns?: true;
115
124
  toolchain?: true;
116
125
  toolchainVersion?: true;
117
126
  workerImageRef?: true;
@@ -129,6 +138,7 @@ export type CodingAgentProfileCountAggregateInputType = {
129
138
  defaultTask?: true;
130
139
  allowWebhookTaskOverride?: true;
131
140
  timeoutSec?: true;
141
+ maxTurns?: true;
132
142
  allowedEgress?: true;
133
143
  protectedPaths?: true;
134
144
  collectExclude?: true;
@@ -229,6 +239,7 @@ export type CodingAgentProfileGroupByOutputType = {
229
239
  defaultTask: string | null;
230
240
  allowWebhookTaskOverride: boolean;
231
241
  timeoutSec: number;
242
+ maxTurns: number | null;
232
243
  allowedEgress: runtime.JsonValue;
233
244
  protectedPaths: runtime.JsonValue;
234
245
  collectExclude: runtime.JsonValue;
@@ -263,6 +274,7 @@ export type CodingAgentProfileWhereInput = {
263
274
  defaultTask?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
264
275
  allowWebhookTaskOverride?: Prisma.BoolFilter<"CodingAgentProfile"> | boolean;
265
276
  timeoutSec?: Prisma.IntFilter<"CodingAgentProfile"> | number;
277
+ maxTurns?: Prisma.IntNullableFilter<"CodingAgentProfile"> | number | null;
266
278
  allowedEgress?: Prisma.JsonFilter<"CodingAgentProfile">;
267
279
  protectedPaths?: Prisma.JsonFilter<"CodingAgentProfile">;
268
280
  collectExclude?: Prisma.JsonFilter<"CodingAgentProfile">;
@@ -287,6 +299,7 @@ export type CodingAgentProfileOrderByWithRelationInput = {
287
299
  defaultTask?: Prisma.SortOrderInput | Prisma.SortOrder;
288
300
  allowWebhookTaskOverride?: Prisma.SortOrder;
289
301
  timeoutSec?: Prisma.SortOrder;
302
+ maxTurns?: Prisma.SortOrderInput | Prisma.SortOrder;
290
303
  allowedEgress?: Prisma.SortOrder;
291
304
  protectedPaths?: Prisma.SortOrder;
292
305
  collectExclude?: Prisma.SortOrder;
@@ -314,6 +327,7 @@ export type CodingAgentProfileWhereUniqueInput = Prisma.AtLeast<{
314
327
  defaultTask?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
315
328
  allowWebhookTaskOverride?: Prisma.BoolFilter<"CodingAgentProfile"> | boolean;
316
329
  timeoutSec?: Prisma.IntFilter<"CodingAgentProfile"> | number;
330
+ maxTurns?: Prisma.IntNullableFilter<"CodingAgentProfile"> | number | null;
317
331
  allowedEgress?: Prisma.JsonFilter<"CodingAgentProfile">;
318
332
  protectedPaths?: Prisma.JsonFilter<"CodingAgentProfile">;
319
333
  collectExclude?: Prisma.JsonFilter<"CodingAgentProfile">;
@@ -338,6 +352,7 @@ export type CodingAgentProfileOrderByWithAggregationInput = {
338
352
  defaultTask?: Prisma.SortOrderInput | Prisma.SortOrder;
339
353
  allowWebhookTaskOverride?: Prisma.SortOrder;
340
354
  timeoutSec?: Prisma.SortOrder;
355
+ maxTurns?: Prisma.SortOrderInput | Prisma.SortOrder;
341
356
  allowedEgress?: Prisma.SortOrder;
342
357
  protectedPaths?: Prisma.SortOrder;
343
358
  collectExclude?: Prisma.SortOrder;
@@ -369,6 +384,7 @@ export type CodingAgentProfileScalarWhereWithAggregatesInput = {
369
384
  defaultTask?: Prisma.StringNullableWithAggregatesFilter<"CodingAgentProfile"> | string | null;
370
385
  allowWebhookTaskOverride?: Prisma.BoolWithAggregatesFilter<"CodingAgentProfile"> | boolean;
371
386
  timeoutSec?: Prisma.IntWithAggregatesFilter<"CodingAgentProfile"> | number;
387
+ maxTurns?: Prisma.IntNullableWithAggregatesFilter<"CodingAgentProfile"> | number | null;
372
388
  allowedEgress?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
373
389
  protectedPaths?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
374
390
  collectExclude?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
@@ -391,6 +407,7 @@ export type CodingAgentProfileCreateInput = {
391
407
  defaultTask?: string | null;
392
408
  allowWebhookTaskOverride?: boolean;
393
409
  timeoutSec?: number;
410
+ maxTurns?: number | null;
394
411
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
395
412
  protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
396
413
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -415,6 +432,7 @@ export type CodingAgentProfileUncheckedCreateInput = {
415
432
  defaultTask?: string | null;
416
433
  allowWebhookTaskOverride?: boolean;
417
434
  timeoutSec?: number;
435
+ maxTurns?: number | null;
418
436
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
419
437
  protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
420
438
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -437,6 +455,7 @@ export type CodingAgentProfileUpdateInput = {
437
455
  defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
438
456
  allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
439
457
  timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
458
+ maxTurns?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
440
459
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
441
460
  protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
442
461
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -461,6 +480,7 @@ export type CodingAgentProfileUncheckedUpdateInput = {
461
480
  defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
462
481
  allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
463
482
  timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
483
+ maxTurns?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
464
484
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
465
485
  protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
466
486
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -484,6 +504,7 @@ export type CodingAgentProfileCreateManyInput = {
484
504
  defaultTask?: string | null;
485
505
  allowWebhookTaskOverride?: boolean;
486
506
  timeoutSec?: number;
507
+ maxTurns?: number | null;
487
508
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
488
509
  protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
489
510
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -506,6 +527,7 @@ export type CodingAgentProfileUpdateManyMutationInput = {
506
527
  defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
507
528
  allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
508
529
  timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
530
+ maxTurns?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
509
531
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
510
532
  protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
511
533
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -529,6 +551,7 @@ export type CodingAgentProfileUncheckedUpdateManyInput = {
529
551
  defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
552
  allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
531
553
  timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
554
+ maxTurns?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
532
555
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
533
556
  protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
534
557
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -556,6 +579,7 @@ export type CodingAgentProfileCountOrderByAggregateInput = {
556
579
  defaultTask?: Prisma.SortOrder;
557
580
  allowWebhookTaskOverride?: Prisma.SortOrder;
558
581
  timeoutSec?: Prisma.SortOrder;
582
+ maxTurns?: Prisma.SortOrder;
559
583
  allowedEgress?: Prisma.SortOrder;
560
584
  protectedPaths?: Prisma.SortOrder;
561
585
  collectExclude?: Prisma.SortOrder;
@@ -573,6 +597,7 @@ export type CodingAgentProfileCountOrderByAggregateInput = {
573
597
  };
574
598
  export type CodingAgentProfileAvgOrderByAggregateInput = {
575
599
  timeoutSec?: Prisma.SortOrder;
600
+ maxTurns?: Prisma.SortOrder;
576
601
  workspaceDiskMb?: Prisma.SortOrder;
577
602
  };
578
603
  export type CodingAgentProfileMaxOrderByAggregateInput = {
@@ -583,6 +608,7 @@ export type CodingAgentProfileMaxOrderByAggregateInput = {
583
608
  defaultTask?: Prisma.SortOrder;
584
609
  allowWebhookTaskOverride?: Prisma.SortOrder;
585
610
  timeoutSec?: Prisma.SortOrder;
611
+ maxTurns?: Prisma.SortOrder;
586
612
  toolchain?: Prisma.SortOrder;
587
613
  toolchainVersion?: Prisma.SortOrder;
588
614
  workerImageRef?: Prisma.SortOrder;
@@ -600,6 +626,7 @@ export type CodingAgentProfileMinOrderByAggregateInput = {
600
626
  defaultTask?: Prisma.SortOrder;
601
627
  allowWebhookTaskOverride?: Prisma.SortOrder;
602
628
  timeoutSec?: Prisma.SortOrder;
629
+ maxTurns?: Prisma.SortOrder;
603
630
  toolchain?: Prisma.SortOrder;
604
631
  toolchainVersion?: Prisma.SortOrder;
605
632
  workerImageRef?: Prisma.SortOrder;
@@ -611,6 +638,7 @@ export type CodingAgentProfileMinOrderByAggregateInput = {
611
638
  };
612
639
  export type CodingAgentProfileSumOrderByAggregateInput = {
613
640
  timeoutSec?: Prisma.SortOrder;
641
+ maxTurns?: Prisma.SortOrder;
614
642
  workspaceDiskMb?: Prisma.SortOrder;
615
643
  };
616
644
  export type CodingAgentProfileCreateNestedOneWithoutAgentInput = {
@@ -655,6 +683,7 @@ export type CodingAgentProfileCreateWithoutAgentInput = {
655
683
  defaultTask?: string | null;
656
684
  allowWebhookTaskOverride?: boolean;
657
685
  timeoutSec?: number;
686
+ maxTurns?: number | null;
658
687
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
659
688
  protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
660
689
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -677,6 +706,7 @@ export type CodingAgentProfileUncheckedCreateWithoutAgentInput = {
677
706
  defaultTask?: string | null;
678
707
  allowWebhookTaskOverride?: boolean;
679
708
  timeoutSec?: number;
709
+ maxTurns?: number | null;
680
710
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
681
711
  protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
682
712
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -712,6 +742,7 @@ export type CodingAgentProfileUpdateWithoutAgentInput = {
712
742
  defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
713
743
  allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
714
744
  timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
745
+ maxTurns?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
715
746
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
716
747
  protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
717
748
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -734,6 +765,7 @@ export type CodingAgentProfileUncheckedUpdateWithoutAgentInput = {
734
765
  defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
735
766
  allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
736
767
  timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
768
+ maxTurns?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
737
769
  allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
738
770
  protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
739
771
  collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
@@ -757,6 +789,7 @@ export type CodingAgentProfileSelect<ExtArgs extends runtime.Types.Extensions.In
757
789
  defaultTask?: boolean;
758
790
  allowWebhookTaskOverride?: boolean;
759
791
  timeoutSec?: boolean;
792
+ maxTurns?: boolean;
760
793
  allowedEgress?: boolean;
761
794
  protectedPaths?: boolean;
762
795
  collectExclude?: boolean;
@@ -781,6 +814,7 @@ export type CodingAgentProfileSelectCreateManyAndReturn<ExtArgs extends runtime.
781
814
  defaultTask?: boolean;
782
815
  allowWebhookTaskOverride?: boolean;
783
816
  timeoutSec?: boolean;
817
+ maxTurns?: boolean;
784
818
  allowedEgress?: boolean;
785
819
  protectedPaths?: boolean;
786
820
  collectExclude?: boolean;
@@ -805,6 +839,7 @@ export type CodingAgentProfileSelectUpdateManyAndReturn<ExtArgs extends runtime.
805
839
  defaultTask?: boolean;
806
840
  allowWebhookTaskOverride?: boolean;
807
841
  timeoutSec?: boolean;
842
+ maxTurns?: boolean;
808
843
  allowedEgress?: boolean;
809
844
  protectedPaths?: boolean;
810
845
  collectExclude?: boolean;
@@ -829,6 +864,7 @@ export type CodingAgentProfileSelectScalar = {
829
864
  defaultTask?: boolean;
830
865
  allowWebhookTaskOverride?: boolean;
831
866
  timeoutSec?: boolean;
867
+ maxTurns?: boolean;
832
868
  allowedEgress?: boolean;
833
869
  protectedPaths?: boolean;
834
870
  collectExclude?: boolean;
@@ -844,7 +880,7 @@ export type CodingAgentProfileSelectScalar = {
844
880
  repositoryAuthorizedById?: boolean;
845
881
  repositoryAuthorizedAt?: boolean;
846
882
  };
847
- export type CodingAgentProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentId" | "provider" | "repository" | "baseRef" | "defaultTask" | "allowWebhookTaskOverride" | "timeoutSec" | "allowedEgress" | "protectedPaths" | "collectExclude" | "toolchain" | "toolchainVersion" | "workerImageRef" | "workspaceDiskMb" | "packageAllowlist" | "packagePolicy" | "debugTraceUntil" | "services" | "repositoryAuthorizedVia" | "repositoryAuthorizedById" | "repositoryAuthorizedAt", ExtArgs["result"]["codingAgentProfile"]>;
883
+ export type CodingAgentProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentId" | "provider" | "repository" | "baseRef" | "defaultTask" | "allowWebhookTaskOverride" | "timeoutSec" | "maxTurns" | "allowedEgress" | "protectedPaths" | "collectExclude" | "toolchain" | "toolchainVersion" | "workerImageRef" | "workspaceDiskMb" | "packageAllowlist" | "packagePolicy" | "debugTraceUntil" | "services" | "repositoryAuthorizedVia" | "repositoryAuthorizedById" | "repositoryAuthorizedAt", ExtArgs["result"]["codingAgentProfile"]>;
848
884
  export type CodingAgentProfileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
849
885
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
850
886
  };
@@ -867,6 +903,10 @@ export type $CodingAgentProfilePayload<ExtArgs extends runtime.Types.Extensions.
867
903
  defaultTask: string | null;
868
904
  allowWebhookTaskOverride: boolean;
869
905
  timeoutSec: number;
906
+ /**
907
+ * Claude Code runs only: the most agent turns a run may take. Null = the worker default (200).
908
+ */
909
+ maxTurns: number | null;
870
910
  /**
871
911
  * Unused; dropped after rollout (see the package-registry plan, Task 14).
872
912
  */
@@ -1265,6 +1305,7 @@ export interface CodingAgentProfileFieldRefs {
1265
1305
  readonly defaultTask: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1266
1306
  readonly allowWebhookTaskOverride: Prisma.FieldRef<"CodingAgentProfile", 'Boolean'>;
1267
1307
  readonly timeoutSec: Prisma.FieldRef<"CodingAgentProfile", 'Int'>;
1308
+ readonly maxTurns: Prisma.FieldRef<"CodingAgentProfile", 'Int'>;
1268
1309
  readonly allowedEgress: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1269
1310
  readonly protectedPaths: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1270
1311
  readonly collectExclude: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;