@wardby/cli 0.5.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (763) hide show
  1. package/.env.example +33 -0
  2. package/README.md +25 -14
  3. package/deploy/local/docker-compose.quickstart-coding.yml +13 -0
  4. package/dist/claude-coding-worker/context.d.ts +22 -0
  5. package/dist/claude-coding-worker/context.js +92 -0
  6. package/dist/claude-coding-worker/driver.d.ts +27 -3
  7. package/dist/claude-coding-worker/driver.js +161 -20
  8. package/dist/claude-coding-worker/main.js +34 -6
  9. package/dist/claude-coding-worker/sdk.js +25 -5
  10. package/dist/claude-coding-worker/tool-socket.d.ts +27 -0
  11. package/dist/claude-coding-worker/tool-socket.js +111 -0
  12. package/dist/claude-coding-worker/transcript.d.ts +18 -0
  13. package/dist/claude-coding-worker/transcript.js +77 -0
  14. package/dist/cli-help.d.ts +1 -1
  15. package/dist/cli-help.js +6 -2
  16. package/dist/cli-native-mode.d.ts +9 -0
  17. package/dist/cli-native-mode.js +20 -0
  18. package/dist/cli.d.ts +3 -1
  19. package/dist/cli.js +161 -11
  20. package/dist/coding/claude-context.d.ts +45 -0
  21. package/dist/coding/claude-context.js +434 -0
  22. package/dist/coding/continuation-wording.d.ts +35 -0
  23. package/dist/coding/continuation-wording.js +73 -0
  24. package/dist/coding/linked-issue-note.d.ts +23 -0
  25. package/dist/coding/linked-issue-note.js +47 -0
  26. package/dist/coding/merge-wording.d.ts +28 -0
  27. package/dist/coding/merge-wording.js +78 -0
  28. package/dist/coding/pr-description-note.d.ts +9 -0
  29. package/dist/coding/pr-description-note.js +32 -0
  30. package/dist/coding/profile.d.ts +50 -118
  31. package/dist/coding/profile.js +51 -4
  32. package/dist/coding/protected-path-wording.d.ts +8 -0
  33. package/dist/coding/protected-path-wording.js +1 -1
  34. package/dist/coding/protocol.d.ts +292 -270
  35. package/dist/coding/protocol.js +322 -15
  36. package/dist/coding/redact.d.ts +3 -0
  37. package/dist/coding/redact.js +12 -0
  38. package/dist/coding/registry/allowlist.d.ts +12 -0
  39. package/dist/coding/registry/allowlist.js +14 -1
  40. package/dist/coding/registry/audit-mode.d.ts +153 -0
  41. package/dist/coding/registry/audit-mode.js +304 -0
  42. package/dist/coding/registry/lockfile-shared.d.ts +36 -0
  43. package/dist/coding/registry/lockfile-shared.js +128 -0
  44. package/dist/coding/registry/lockfiles.js +1 -1
  45. package/dist/coding/registry/npm-lockfile-formats.d.ts +11 -0
  46. package/dist/coding/registry/npm-lockfile-formats.js +41 -0
  47. package/dist/coding/registry/npm-lockfile.d.ts +8 -4
  48. package/dist/coding/registry/npm-lockfile.js +4 -6
  49. package/dist/coding/registry/npm.js +78 -8
  50. package/dist/coding/registry/pnpm-lockfile.d.ts +17 -0
  51. package/dist/coding/registry/pnpm-lockfile.js +189 -0
  52. package/dist/coding/registry/pypi-plan.d.ts +50 -0
  53. package/dist/coding/registry/pypi-plan.js +406 -0
  54. package/dist/coding/registry/pypi-requirements.d.ts +58 -0
  55. package/dist/coding/registry/pypi-requirements.js +155 -0
  56. package/dist/coding/registry/pypi.d.ts +3 -27
  57. package/dist/coding/registry/pypi.js +40 -154
  58. package/dist/coding/registry/refusal-hints.d.ts +20 -0
  59. package/dist/coding/registry/refusal-hints.js +61 -0
  60. package/dist/coding/registry/refusal-wording.d.ts +11 -0
  61. package/dist/coding/registry/refusal-wording.js +56 -0
  62. package/dist/coding/registry/report.d.ts +70 -8
  63. package/dist/coding/registry/report.js +112 -5
  64. package/dist/coding/registry/types.d.ts +58 -8
  65. package/dist/coding/registry/yarn-lockfile.d.ts +30 -0
  66. package/dist/coding/registry/yarn-lockfile.js +367 -0
  67. package/dist/coding/services/catalog.d.ts +37 -351
  68. package/dist/coding/transcript/claude-code.d.ts +13 -0
  69. package/dist/coding/transcript/claude-code.js +273 -0
  70. package/dist/coding/transcript/download-protocol.d.ts +30 -0
  71. package/dist/coding/transcript/download-protocol.js +18 -0
  72. package/dist/coding/transcript/format.d.ts +20 -0
  73. package/dist/coding/transcript/format.js +32 -0
  74. package/dist/coding/transcript/recorder.d.ts +51 -0
  75. package/dist/coding/transcript/recorder.js +225 -0
  76. package/dist/coding/transcript/resume/checkout.d.ts +31 -0
  77. package/dist/coding/transcript/resume/checkout.js +203 -0
  78. package/dist/coding/transcript/resume/command.d.ts +17 -0
  79. package/dist/coding/transcript/resume/command.js +176 -0
  80. package/dist/coding/transcript/resume/download.d.ts +20 -0
  81. package/dist/coding/transcript/resume/download.js +153 -0
  82. package/dist/coding/transcript/resume/launch.d.ts +38 -0
  83. package/dist/coding/transcript/resume/launch.js +128 -0
  84. package/dist/coding/transcript/resume/session-file.d.ts +13 -0
  85. package/dist/coding/transcript/resume/session-file.js +79 -0
  86. package/dist/coding/transcript/resume/stand-in.d.ts +11 -0
  87. package/dist/coding/transcript/resume/stand-in.js +49 -0
  88. package/dist/coding-worker/artifact.d.ts +16 -3
  89. package/dist/coding-worker/artifact.js +5 -3
  90. package/dist/coding-worker/debug-trace.d.ts +6 -5
  91. package/dist/coding-worker/debug-trace.js +13 -18
  92. package/dist/coding-worker/dependency-cache.d.mts +229 -0
  93. package/dist/coding-worker/dependency-cache.mjs +2123 -0
  94. package/dist/coding-worker/driver.d.ts +4 -3
  95. package/dist/coding-worker/driver.js +118 -38
  96. package/dist/coding-worker/errors.d.ts +1 -0
  97. package/dist/coding-worker/errors.js +32 -0
  98. package/dist/coding-worker/sdk.d.ts +6 -0
  99. package/dist/coding-worker/sdk.js +1 -0
  100. package/dist/coding-worker/skills.d.ts +23 -0
  101. package/dist/coding-worker/skills.js +117 -0
  102. package/dist/coding-worker/task-note.d.ts +11 -0
  103. package/dist/coding-worker/task-note.js +13 -0
  104. package/dist/coding-worker/types.d.ts +13 -0
  105. package/dist/config/dependency-cache.d.ts +23 -0
  106. package/dist/config/dependency-cache.js +32 -0
  107. package/dist/config/github-allowed-accounts.d.ts +15 -0
  108. package/dist/config/github-allowed-accounts.js +36 -0
  109. package/dist/config/low-power.d.ts +12 -0
  110. package/dist/config/low-power.js +18 -0
  111. package/dist/config/mobile.d.ts +12 -0
  112. package/dist/config/mobile.js +18 -0
  113. package/dist/config/providers.d.ts +65 -3
  114. package/dist/config/providers.js +147 -11
  115. package/dist/config/test-simulators.d.ts +82 -0
  116. package/dist/config/test-simulators.js +305 -0
  117. package/dist/core/async-context.d.ts +2 -0
  118. package/dist/core/async-context.js +12 -0
  119. package/dist/core/budget-events.d.ts +108 -0
  120. package/dist/core/budget-events.js +346 -0
  121. package/dist/core/budget-groups.d.ts +50 -1
  122. package/dist/core/budget-groups.js +236 -27
  123. package/dist/core/budget-stopped-head.d.ts +46 -0
  124. package/dist/core/budget-stopped-head.js +81 -0
  125. package/dist/core/budget-topup.d.ts +51 -0
  126. package/dist/core/budget-topup.js +156 -0
  127. package/dist/core/budget-wording.d.ts +16 -2
  128. package/dist/core/budget-wording.js +40 -2
  129. package/dist/core/coding-queue.d.ts +2 -1
  130. package/dist/core/coding-queue.js +7 -0
  131. package/dist/core/cron.d.ts +19 -1
  132. package/dist/core/cron.js +17 -0
  133. package/dist/core/datastores.js +1 -1
  134. package/dist/core/db.d.ts +16 -6
  135. package/dist/core/db.js +12 -10
  136. package/dist/core/deferred-coding.d.ts +14 -0
  137. package/dist/core/deferred-coding.js +62 -0
  138. package/dist/core/delegation-child.d.ts +25 -0
  139. package/dist/core/delegation-child.js +37 -0
  140. package/dist/core/dispatch.d.ts +53 -0
  141. package/dist/core/dispatch.js +167 -57
  142. package/dist/core/engine-native.js +10 -6
  143. package/dist/core/error-code.d.ts +38 -0
  144. package/dist/core/error-code.js +168 -0
  145. package/dist/core/grants.d.ts +19 -6
  146. package/dist/core/grants.js +55 -6
  147. package/dist/core/host-events.d.ts +67 -5
  148. package/dist/core/host-events.js +571 -37
  149. package/dist/core/host-status.d.ts +85 -3
  150. package/dist/core/host-status.js +298 -20
  151. package/dist/core/issue-bridge.d.ts +50 -6
  152. package/dist/core/issue-bridge.js +151 -20
  153. package/dist/core/issue-events.d.ts +1 -1
  154. package/dist/core/issue-events.js +16 -11
  155. package/dist/core/issue-status.d.ts +1 -1
  156. package/dist/core/issue-status.js +68 -29
  157. package/dist/core/logger.d.ts +5 -0
  158. package/dist/core/logger.js +14 -1
  159. package/dist/core/lost-run-children.d.ts +6 -0
  160. package/dist/core/lost-run-children.js +32 -0
  161. package/dist/core/mark-ready.d.ts +34 -0
  162. package/dist/core/mark-ready.js +152 -0
  163. package/dist/core/markdown-code.d.ts +8 -0
  164. package/dist/core/markdown-code.js +107 -0
  165. package/dist/core/memory-tools.js +7 -0
  166. package/dist/core/merge-order-check.d.ts +130 -0
  167. package/dist/core/merge-order-check.js +343 -0
  168. package/dist/core/notification-dispatcher.d.ts +70 -0
  169. package/dist/core/notification-dispatcher.js +368 -0
  170. package/dist/core/notification-templates.d.ts +19 -0
  171. package/dist/core/notification-templates.js +139 -0
  172. package/dist/core/notifications.d.ts +10 -0
  173. package/dist/core/notifications.js +38 -0
  174. package/dist/core/pg-auth.d.ts +22 -0
  175. package/dist/core/pg-auth.js +152 -0
  176. package/dist/core/power-composition.d.ts +16 -0
  177. package/dist/core/power-composition.js +37 -0
  178. package/dist/core/power-idle.d.ts +14 -0
  179. package/dist/core/power-idle.js +30 -0
  180. package/dist/core/power.d.ts +71 -0
  181. package/dist/core/power.js +202 -0
  182. package/dist/core/pull-request-state-sync.js +2 -2
  183. package/dist/core/reconciler.d.ts +8 -5
  184. package/dist/core/reconciler.js +37 -6
  185. package/dist/core/related-pull-requests.d.ts +59 -7
  186. package/dist/core/related-pull-requests.js +140 -25
  187. package/dist/core/reply-parts.d.ts +21 -0
  188. package/dist/core/reply-parts.js +73 -0
  189. package/dist/core/repo-access.d.ts +15 -0
  190. package/dist/core/repo-access.js +66 -0
  191. package/dist/core/review-fix.d.ts +38 -1
  192. package/dist/core/review-fix.js +209 -7
  193. package/dist/core/review-host-checks.d.ts +1 -1
  194. package/dist/core/review-host-tools.d.ts +23 -0
  195. package/dist/core/review-host-tools.js +156 -14
  196. package/dist/core/review-reads.d.ts +55 -0
  197. package/dist/core/review-reads.js +233 -0
  198. package/dist/core/run-status.d.ts +12 -0
  199. package/dist/core/run-status.js +12 -0
  200. package/dist/core/runner.d.ts +384 -5
  201. package/dist/core/runner.js +1244 -372
  202. package/dist/core/schedule-start.d.ts +12 -0
  203. package/dist/core/schedule-start.js +14 -0
  204. package/dist/core/secret-broker-config.d.ts +39 -0
  205. package/dist/core/secret-broker-config.js +112 -0
  206. package/dist/core/secret-guard.d.ts +46 -0
  207. package/dist/core/secret-guard.js +104 -0
  208. package/dist/core/secret-guarded-stores.d.ts +12 -0
  209. package/dist/core/secret-guarded-stores.js +41 -0
  210. package/dist/core/secret-spans.d.ts +50 -0
  211. package/dist/core/secret-spans.js +94 -0
  212. package/dist/core/secrets.d.ts +39 -4
  213. package/dist/core/secrets.js +148 -40
  214. package/dist/core/stop-run.d.ts +46 -0
  215. package/dist/core/stop-run.js +61 -0
  216. package/dist/core/workflow-event-recorder.d.ts +14 -0
  217. package/dist/core/workflow-event-recorder.js +120 -0
  218. package/dist/core/workflow-events.d.ts +94 -0
  219. package/dist/core/workflow-events.js +48 -0
  220. package/dist/core/workflow-run-events.d.ts +18 -0
  221. package/dist/core/workflow-run-events.js +75 -0
  222. package/dist/core/zod-json-schema.d.ts +4 -0
  223. package/dist/core/zod-json-schema.js +39 -0
  224. package/dist/core/zod3-window.d.ts +35 -0
  225. package/dist/core/zod3-window.js +124 -0
  226. package/dist/generated/prisma/browser.d.ts +92 -3
  227. package/dist/generated/prisma/client.d.ts +92 -3
  228. package/dist/generated/prisma/commonInputTypes.d.ts +364 -54
  229. package/dist/generated/prisma/enums.d.ts +37 -0
  230. package/dist/generated/prisma/enums.js +31 -0
  231. package/dist/generated/prisma/internal/class.d.ts +132 -0
  232. package/dist/generated/prisma/internal/class.js +4 -4
  233. package/dist/generated/prisma/internal/prismaNamespace.d.ts +1332 -142
  234. package/dist/generated/prisma/internal/prismaNamespace.js +227 -5
  235. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +234 -0
  236. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +227 -5
  237. package/dist/generated/prisma/models/Agent.d.ts +464 -7
  238. package/dist/generated/prisma/models/AgentRepository.d.ts +42 -1
  239. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +301 -1
  240. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +207 -3
  241. package/dist/generated/prisma/models/CodingProxySession.d.ts +114 -1
  242. package/dist/generated/prisma/models/CodingRun.d.ts +1841 -1
  243. package/dist/generated/prisma/models/DeferredReview.d.ts +78 -1
  244. package/dist/generated/prisma/models/DependencySnapshot.d.ts +1668 -0
  245. package/dist/generated/prisma/models/DependencySnapshot.js +1 -0
  246. package/dist/generated/prisma/models/IssuePullRequest.d.ts +6 -2
  247. package/dist/generated/prisma/models/LocalReview.d.ts +40 -1
  248. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +1713 -0
  249. package/dist/generated/prisma/models/NativeGatewayCall.js +1 -0
  250. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +1551 -0
  251. package/dist/generated/prisma/models/NativeGatewaySession.js +1 -0
  252. package/dist/generated/prisma/models/NativeWarmWorker.d.ts +1296 -0
  253. package/dist/generated/prisma/models/NativeWarmWorker.js +1 -0
  254. package/dist/generated/prisma/models/NotificationChannel.d.ts +1543 -0
  255. package/dist/generated/prisma/models/NotificationChannel.js +1 -0
  256. package/dist/generated/prisma/models/NotificationDelivery.d.ts +1502 -0
  257. package/dist/generated/prisma/models/NotificationDelivery.js +1 -0
  258. package/dist/generated/prisma/models/NotificationThread.d.ts +1090 -0
  259. package/dist/generated/prisma/models/NotificationThread.js +1 -0
  260. package/dist/generated/prisma/models/RegistryAllowance.d.ts +41 -1
  261. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +75 -1
  262. package/dist/generated/prisma/models/RegistryAuditRecord.d.ts +1364 -0
  263. package/dist/generated/prisma/models/RegistryAuditRecord.js +1 -0
  264. package/dist/generated/prisma/models/Run.d.ts +1619 -58
  265. package/dist/generated/prisma/models/RunBudgetEvent.d.ts +1211 -0
  266. package/dist/generated/prisma/models/RunBudgetEvent.js +1 -0
  267. package/dist/generated/prisma/models/RunHostCheck.d.ts +36 -1
  268. package/dist/generated/prisma/models/RunTranscript.d.ts +1339 -0
  269. package/dist/generated/prisma/models/RunTranscript.js +1 -0
  270. package/dist/generated/prisma/models/Secret.d.ts +37 -1
  271. package/dist/generated/prisma/models/SecretBrokerChange.d.ts +1101 -0
  272. package/dist/generated/prisma/models/SecretBrokerChange.js +1 -0
  273. package/dist/generated/prisma/models/WorkflowEvent.d.ts +1422 -0
  274. package/dist/generated/prisma/models/WorkflowEvent.js +1 -0
  275. package/dist/generated/prisma/models.d.ts +12 -0
  276. package/dist/help/build.js +4 -2
  277. package/dist/help/catalog.d.ts +1 -1
  278. package/dist/help/catalog.js +31 -6
  279. package/dist/help-index.json +2584 -146
  280. package/dist/import/create.js +49 -3
  281. package/dist/import/neutral-schema.d.ts +50 -277
  282. package/dist/import/neutral-schema.js +7 -4
  283. package/dist/knowledge/check.d.ts +1 -1
  284. package/dist/knowledge/cli.d.ts +11 -1
  285. package/dist/knowledge/cli.js +37 -4
  286. package/dist/knowledge/concept.d.ts +3 -19
  287. package/dist/knowledge/location.d.ts +31 -0
  288. package/dist/knowledge/location.js +78 -0
  289. package/dist/mcp/auth/access.d.ts +11 -2
  290. package/dist/mcp/auth/access.js +15 -1
  291. package/dist/mcp/auth/ownership.d.ts +7 -7
  292. package/dist/mcp/auth/repo-authorization.js +14 -0
  293. package/dist/mcp/auth/resource-server.d.ts +2 -1
  294. package/dist/mcp/auth/resource-server.js +7 -2
  295. package/dist/mcp/auth/self-hosted/browser.d.ts +1 -1
  296. package/dist/mcp/auth/self-hosted/browser.js +19 -6
  297. package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
  298. package/dist/mcp/auth/self-hosted/session.d.ts +2 -2
  299. package/dist/mcp/context.d.ts +6 -0
  300. package/dist/mcp/host-events/github-ingress.d.ts +25 -1
  301. package/dist/mcp/host-events/github-ingress.js +70 -1
  302. package/dist/mcp/index.d.ts +19 -0
  303. package/dist/mcp/index.js +117 -20
  304. package/dist/mcp/server.d.ts +13 -0
  305. package/dist/mcp/server.js +33 -14
  306. package/dist/mcp/tools/agents.d.ts +4 -0
  307. package/dist/mcp/tools/agents.js +277 -24
  308. package/dist/mcp/tools/datastore.js +17 -8
  309. package/dist/mcp/tools/grants.js +9 -3
  310. package/dist/mcp/tools/memory.js +11 -1
  311. package/dist/mcp/tools/notification-channels.d.ts +2 -0
  312. package/dist/mcp/tools/notification-channels.js +293 -0
  313. package/dist/mcp/tools/packages.d.ts +2 -0
  314. package/dist/mcp/tools/packages.js +195 -0
  315. package/dist/mcp/tools/power.d.ts +2 -0
  316. package/dist/mcp/tools/power.js +77 -0
  317. package/dist/mcp/tools/repositories.js +18 -5
  318. package/dist/mcp/tools/run-access.d.ts +16 -0
  319. package/dist/mcp/tools/run-access.js +25 -0
  320. package/dist/mcp/tools/run-transcript-download.d.ts +30 -0
  321. package/dist/mcp/tools/run-transcript-download.js +129 -0
  322. package/dist/mcp/tools/run-transcript.d.ts +19 -0
  323. package/dist/mcp/tools/run-transcript.js +70 -0
  324. package/dist/mcp/tools/runs.d.ts +0 -6
  325. package/dist/mcp/tools/runs.js +41 -14
  326. package/dist/mcp/tools/scheduling.js +3 -1
  327. package/dist/mcp/tools/secret-broker-compat.d.ts +12 -0
  328. package/dist/mcp/tools/secret-broker-compat.js +23 -0
  329. package/dist/mcp/tools/secret-elicitation-form.d.ts +22 -2
  330. package/dist/mcp/tools/secret-elicitation-form.js +205 -10
  331. package/dist/mcp/tools/secret-elicitation-server.d.ts +6 -0
  332. package/dist/mcp/tools/secret-elicitation-server.js +10 -54
  333. package/dist/mcp/tools/secret-elicitation.d.ts +38 -3
  334. package/dist/mcp/tools/secret-elicitation.js +110 -12
  335. package/dist/mcp/tools/secrets.js +186 -9
  336. package/dist/mcp/tools/stop-run.d.ts +2 -0
  337. package/dist/mcp/tools/stop-run.js +82 -0
  338. package/dist/mcp/tools/subagents.js +2 -2
  339. package/dist/mcp/tools/tools.d.ts +2 -2
  340. package/dist/mcp/tools/tools.js +47 -11
  341. package/dist/mcp/transport/stdio-link-host.d.ts +20 -0
  342. package/dist/mcp/transport/stdio-link-host.js +67 -0
  343. package/dist/mcp/transport/streamable-http.d.ts +13 -0
  344. package/dist/mcp/transport/streamable-http.js +41 -1
  345. package/dist/native-worker/composition.d.ts +23 -0
  346. package/dist/native-worker/composition.js +77 -0
  347. package/dist/native-worker/docker-isolation.d.ts +65 -0
  348. package/dist/native-worker/docker-isolation.js +183 -0
  349. package/dist/native-worker/docker-launcher.d.ts +110 -0
  350. package/dist/native-worker/docker-launcher.js +297 -0
  351. package/dist/native-worker/gateway-server.d.ts +77 -0
  352. package/dist/native-worker/gateway-server.js +412 -0
  353. package/dist/native-worker/gateway.d.ts +70 -0
  354. package/dist/native-worker/gateway.js +263 -0
  355. package/dist/native-worker/http-server.d.ts +24 -0
  356. package/dist/native-worker/http-server.js +113 -0
  357. package/dist/native-worker/http-transport.d.ts +17 -0
  358. package/dist/native-worker/http-transport.js +88 -0
  359. package/dist/native-worker/kubernetes-isolation.d.ts +90 -0
  360. package/dist/native-worker/kubernetes-isolation.js +218 -0
  361. package/dist/native-worker/kubernetes-launcher.d.ts +106 -0
  362. package/dist/native-worker/kubernetes-launcher.js +375 -0
  363. package/dist/native-worker/launch.d.ts +62 -0
  364. package/dist/native-worker/launch.js +49 -0
  365. package/dist/native-worker/ledger.d.ts +125 -0
  366. package/dist/native-worker/ledger.js +245 -0
  367. package/dist/native-worker/loopback.d.ts +12 -0
  368. package/dist/native-worker/loopback.js +44 -0
  369. package/dist/native-worker/main.d.ts +8 -0
  370. package/dist/native-worker/main.js +85 -0
  371. package/dist/native-worker/protocol.d.ts +296 -0
  372. package/dist/native-worker/protocol.js +246 -0
  373. package/dist/native-worker/sandbox-executor.d.ts +83 -0
  374. package/dist/native-worker/sandbox-executor.js +284 -0
  375. package/dist/native-worker/stderr-redaction.d.ts +77 -0
  376. package/dist/native-worker/stderr-redaction.js +237 -0
  377. package/dist/native-worker/stdio.d.ts +29 -0
  378. package/dist/native-worker/stdio.js +189 -0
  379. package/dist/native-worker/warm-delivery.d.ts +16 -0
  380. package/dist/native-worker/warm-delivery.js +33 -0
  381. package/dist/native-worker/warm-pool-ledger.d.ts +39 -0
  382. package/dist/native-worker/warm-pool-ledger.js +73 -0
  383. package/dist/native-worker/warm-pool.d.ts +107 -0
  384. package/dist/native-worker/warm-pool.js +283 -0
  385. package/dist/native-worker/worker.d.ts +17 -0
  386. package/dist/native-worker/worker.js +141 -0
  387. package/dist/observability/metrics.js +6 -1
  388. package/dist/providers/auth/authorization-server.d.ts +3 -0
  389. package/dist/providers/auth/index.js +2 -0
  390. package/dist/providers/auth/self-hosted.d.ts +14 -2
  391. package/dist/providers/auth/self-hosted.js +54 -4
  392. package/dist/providers/chat/fake.d.ts +46 -0
  393. package/dist/providers/chat/fake.js +39 -0
  394. package/dist/providers/chat/index.d.ts +4 -0
  395. package/dist/providers/chat/index.js +8 -0
  396. package/dist/providers/chat/slack.d.ts +37 -0
  397. package/dist/providers/chat/slack.js +105 -0
  398. package/dist/providers/chat/types.d.ts +42 -0
  399. package/dist/providers/chat/types.js +19 -0
  400. package/dist/providers/coding-proxy/dependency-cache/eviction.d.ts +29 -0
  401. package/dist/providers/coding-proxy/dependency-cache/eviction.js +87 -0
  402. package/dist/providers/coding-proxy/dependency-cache/key.d.ts +33 -0
  403. package/dist/providers/coding-proxy/dependency-cache/key.js +86 -0
  404. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.d.ts +18 -0
  405. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.js +40 -0
  406. package/dist/providers/coding-proxy/dependency-cache/prisma-store.d.ts +25 -0
  407. package/dist/providers/coding-proxy/dependency-cache/prisma-store.js +131 -0
  408. package/dist/providers/coding-proxy/dependency-cache/service.d.ts +70 -0
  409. package/dist/providers/coding-proxy/dependency-cache/service.js +409 -0
  410. package/dist/providers/coding-proxy/dependency-cache/store.d.ts +85 -0
  411. package/dist/providers/coding-proxy/dependency-cache/store.js +95 -0
  412. package/dist/providers/coding-proxy/hold.d.ts +32 -0
  413. package/dist/providers/coding-proxy/hold.js +86 -0
  414. package/dist/providers/coding-proxy/interrupted.d.ts +70 -0
  415. package/dist/providers/coding-proxy/interrupted.js +104 -0
  416. package/dist/providers/coding-proxy/memory-ledger.d.ts +15 -2
  417. package/dist/providers/coding-proxy/memory-ledger.js +84 -8
  418. package/dist/providers/coding-proxy/metering.d.ts +16 -0
  419. package/dist/providers/coding-proxy/metering.js +27 -4
  420. package/dist/providers/coding-proxy/prisma-ledger.d.ts +15 -2
  421. package/dist/providers/coding-proxy/prisma-ledger.js +179 -67
  422. package/dist/providers/coding-proxy/proxy.d.ts +14 -1
  423. package/dist/providers/coding-proxy/proxy.js +166 -14
  424. package/dist/providers/coding-proxy/registry/audit.d.ts +53 -10
  425. package/dist/providers/coding-proxy/registry/audit.js +94 -17
  426. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.d.ts +36 -0
  427. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.js +67 -0
  428. package/dist/providers/coding-proxy/registry/lockfile-parse.d.ts +16 -0
  429. package/dist/providers/coding-proxy/registry/lockfile-parse.js +110 -0
  430. package/dist/providers/coding-proxy/registry/plan.d.ts +9 -0
  431. package/dist/providers/coding-proxy/registry/plan.js +201 -48
  432. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +11 -5
  433. package/dist/providers/coding-proxy/registry/prisma-store.js +120 -17
  434. package/dist/providers/coding-proxy/registry/service.d.ts +97 -16
  435. package/dist/providers/coding-proxy/registry/service.js +579 -112
  436. package/dist/providers/coding-proxy/registry/store.d.ts +84 -9
  437. package/dist/providers/coding-proxy/registry/store.js +54 -1
  438. package/dist/providers/coding-proxy/runtime.d.ts +4 -0
  439. package/dist/providers/coding-proxy/runtime.js +78 -16
  440. package/dist/providers/coding-proxy/server.d.ts +6 -1
  441. package/dist/providers/coding-proxy/server.js +45 -1
  442. package/dist/providers/coding-proxy/types.d.ts +65 -1
  443. package/dist/providers/datastore/types.d.ts +5 -0
  444. package/dist/providers/engine/types.d.ts +36 -2
  445. package/dist/providers/engine/types.js +39 -0
  446. package/dist/providers/executor/composition.d.ts +31 -1
  447. package/dist/providers/executor/composition.js +81 -8
  448. package/dist/providers/executor/container.d.ts +385 -9
  449. package/dist/providers/executor/container.js +1234 -99
  450. package/dist/providers/executor/dbos-status.d.ts +31 -0
  451. package/dist/providers/executor/dbos-status.js +64 -0
  452. package/dist/providers/executor/dbos.d.ts +91 -0
  453. package/dist/providers/executor/dbos.js +319 -26
  454. package/dist/providers/executor/deferred.d.ts +44 -0
  455. package/dist/providers/executor/deferred.js +100 -0
  456. package/dist/providers/executor/in-process.d.ts +9 -1
  457. package/dist/providers/executor/in-process.js +14 -4
  458. package/dist/providers/executor/linked-issue-reader.d.ts +16 -0
  459. package/dist/providers/executor/linked-issue-reader.js +30 -0
  460. package/dist/providers/executor/routing.d.ts +39 -10
  461. package/dist/providers/executor/routing.js +77 -32
  462. package/dist/providers/executor/types.d.ts +25 -0
  463. package/dist/providers/index.d.ts +2 -1
  464. package/dist/providers/issue-tracker/types.d.ts +17 -0
  465. package/dist/providers/issue-tracker/types.js +39 -1
  466. package/dist/providers/jobs/claude-tool-setup.d.ts +4 -0
  467. package/dist/providers/jobs/claude-tool-setup.js +5 -2
  468. package/dist/providers/jobs/docker-isolation.d.ts +8 -0
  469. package/dist/providers/jobs/docker-isolation.js +17 -0
  470. package/dist/providers/jobs/docker.d.ts +1 -0
  471. package/dist/providers/jobs/docker.js +29 -4
  472. package/dist/providers/jobs/fake-kubernetes-api.d.ts +23 -2
  473. package/dist/providers/jobs/fake-kubernetes-api.js +45 -1
  474. package/dist/providers/jobs/kubernetes-api.d.ts +25 -1
  475. package/dist/providers/jobs/kubernetes-api.js +17 -0
  476. package/dist/providers/jobs/kubernetes-client.d.ts +10 -1
  477. package/dist/providers/jobs/kubernetes-client.js +61 -3
  478. package/dist/providers/jobs/kubernetes-dry-run-fixture.d.ts +6 -1
  479. package/dist/providers/jobs/kubernetes-dry-run-fixture.js +6 -3
  480. package/dist/providers/jobs/kubernetes-isolation.d.ts +5 -1
  481. package/dist/providers/jobs/kubernetes-isolation.js +23 -1
  482. package/dist/providers/jobs/kubernetes-platform.d.ts +4 -1
  483. package/dist/providers/jobs/kubernetes-platform.js +38 -1
  484. package/dist/providers/jobs/kubernetes-preflight.d.ts +2 -1
  485. package/dist/providers/jobs/kubernetes-preflight.js +4 -2
  486. package/dist/providers/jobs/kubernetes.d.ts +42 -2
  487. package/dist/providers/jobs/kubernetes.js +178 -19
  488. package/dist/providers/jobs/metadata-probes.d.ts +11 -0
  489. package/dist/providers/jobs/metadata-probes.js +13 -0
  490. package/dist/providers/jobs/types.d.ts +42 -0
  491. package/dist/providers/jobs/types.js +13 -1
  492. package/dist/providers/llm/anthropic.js +5 -1
  493. package/dist/providers/llm/bedrock.d.ts +0 -12
  494. package/dist/providers/llm/bedrock.js +4 -0
  495. package/dist/providers/llm/claude-messages.d.ts +3 -1
  496. package/dist/providers/llm/claude-messages.js +4 -1
  497. package/dist/providers/llm/claude-provider.d.ts +2 -2
  498. package/dist/providers/llm/claude-provider.js +2 -2
  499. package/dist/providers/llm/openai.d.ts +2 -2
  500. package/dist/providers/llm/openai.js +6 -2
  501. package/dist/providers/llm/routing.d.ts +2 -2
  502. package/dist/providers/llm/routing.js +2 -2
  503. package/dist/providers/llm/types.d.ts +12 -2
  504. package/dist/providers/review-host/github-events.d.ts +9 -1
  505. package/dist/providers/review-host/github-events.js +34 -12
  506. package/dist/providers/review-host/github.d.ts +39 -2
  507. package/dist/providers/review-host/github.js +274 -29
  508. package/dist/providers/review-host/local.d.ts +8 -4
  509. package/dist/providers/review-host/local.js +49 -31
  510. package/dist/providers/review-host/patch-pages.d.ts +41 -0
  511. package/dist/providers/review-host/patch-pages.js +176 -0
  512. package/dist/providers/review-host/review-format.d.ts +19 -1
  513. package/dist/providers/review-host/review-format.js +38 -7
  514. package/dist/providers/review-host/types.d.ts +157 -2
  515. package/dist/providers/review-host/types.js +8 -0
  516. package/dist/providers/storage/gcs.d.ts +63 -0
  517. package/dist/providers/storage/gcs.js +69 -0
  518. package/dist/providers/storage/index.d.ts +15 -0
  519. package/dist/providers/storage/index.js +14 -0
  520. package/dist/providers/storage/local.d.ts +24 -0
  521. package/dist/providers/storage/local.js +92 -0
  522. package/dist/providers/storage/meter.d.ts +14 -0
  523. package/dist/providers/storage/meter.js +34 -0
  524. package/dist/providers/storage/s3.d.ts +41 -0
  525. package/dist/providers/storage/s3.js +107 -0
  526. package/dist/providers/storage/types.d.ts +37 -3
  527. package/dist/providers/storage/types.js +21 -4
  528. package/dist/providers/vcs/git.d.ts +33 -2
  529. package/dist/providers/vcs/git.js +324 -22
  530. package/dist/providers/vcs/github-remote.d.ts +26 -3
  531. package/dist/providers/vcs/github-remote.js +124 -14
  532. package/dist/providers/vcs/github.d.ts +246 -12
  533. package/dist/providers/vcs/github.js +521 -61
  534. package/dist/providers/vcs/index.js +8 -1
  535. package/dist/providers/vcs/pr-description.d.ts +127 -0
  536. package/dist/providers/vcs/pr-description.js +270 -0
  537. package/dist/providers/vcs/remote.d.ts +33 -1
  538. package/dist/providers/vcs/routing.d.ts +4 -2
  539. package/dist/providers/vcs/routing.js +6 -0
  540. package/dist/providers/vcs/types.d.ts +80 -3
  541. package/dist/quickstart/coding-seed.d.ts +21 -3
  542. package/dist/quickstart/coding-seed.js +283 -3
  543. package/dist/quickstart/images.d.ts +2 -0
  544. package/dist/quickstart/images.js +7 -1
  545. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  546. package/dist/quickstart/reviewer-prompt.js +6 -6
  547. package/dist/quickstart-images.json +1 -1
  548. package/dist/sandbox/brokered-fetch.d.ts +23 -0
  549. package/dist/sandbox/brokered-fetch.js +37 -0
  550. package/dist/sandbox/generated/zod.bundle.js +62 -1
  551. package/dist/sandbox/generated/zod3.bundle.js +5 -0
  552. package/dist/sandbox/host-functions.d.ts +35 -0
  553. package/dist/sandbox/host-functions.js +150 -91
  554. package/dist/sandbox/prelude.js +7 -1
  555. package/dist/sandbox/run-in-sandbox.d.ts +19 -0
  556. package/dist/sandbox/run-in-sandbox.js +28 -10
  557. package/dist/sandbox/safe-fetch.d.ts +2 -0
  558. package/dist/sandbox/safe-fetch.js +3 -1
  559. package/dist/sandbox/secret-broker-sigv4.d.ts +2 -0
  560. package/dist/sandbox/secret-broker-sigv4.js +49 -0
  561. package/dist/sandbox/secret-broker.d.ts +34 -0
  562. package/dist/sandbox/secret-broker.js +161 -0
  563. package/dist/sandbox/tool-capabilities.d.ts +10 -30
  564. package/dist/sandbox/user-tool.d.ts +14 -0
  565. package/dist/sandbox/user-tool.js +32 -0
  566. package/dist/sandbox/zod-params.d.ts +37 -5
  567. package/dist/sandbox/zod-params.js +181 -26
  568. package/dist/serve.js +25 -0
  569. package/dist/viewer/api-schema.d.ts +372 -2454
  570. package/dist/viewer/api-schema.js +29 -0
  571. package/dist/viewer/build-schemas.js +10 -3
  572. package/dist/viewer/event-bus.d.ts +6 -0
  573. package/dist/viewer/event-bus.js +16 -7
  574. package/dist/viewer/graph.d.ts +5 -2
  575. package/dist/viewer/graph.js +7 -2
  576. package/dist/viewer/http.d.ts +0 -1
  577. package/dist/viewer/http.js +2 -2
  578. package/dist/viewer/infra.js +25 -2
  579. package/dist/viewer/limits.d.ts +4 -0
  580. package/dist/viewer/limits.js +4 -0
  581. package/dist/viewer/openapi.d.ts +15 -0
  582. package/dist/viewer/openapi.js +170 -0
  583. package/dist/wardby-bin.js +10 -0
  584. package/docs/README.md +7 -0
  585. package/docs/agent-recipes.md +114 -27
  586. package/docs/architecture-runtime.md +16 -1
  587. package/docs/code-review-agents.md +689 -45
  588. package/docs/coding-agent-setup.md +602 -12
  589. package/docs/coding-packages.md +1037 -92
  590. package/docs/coding-services.md +30 -13
  591. package/docs/coding-worker-byo-images.md +218 -6
  592. package/docs/coding-worker-isolation.md +173 -44
  593. package/docs/getting-started-gke.md +332 -129
  594. package/docs/getting-started-identity-provider.md +31 -11
  595. package/docs/getting-started.md +14 -4
  596. package/docs/jira-agents.md +22 -9
  597. package/docs/knowledge/blob-not-found-semantics.md +41 -0
  598. package/docs/knowledge/bounded-file-descriptor.md +52 -0
  599. package/docs/knowledge/delegation-admission-slots.md +52 -0
  600. package/docs/knowledge/http-dispatcher-bootstrap.md +61 -0
  601. package/docs/knowledge/import-rename-target.md +52 -0
  602. package/docs/knowledge/index.md +57 -0
  603. package/docs/knowledge/log.md +9 -0
  604. package/docs/knowledge/mcp-cancelled-task-precedence.md +41 -0
  605. package/docs/knowledge/mcp-http-prompt-discovery.md +41 -0
  606. package/docs/knowledge/mcp-schema-module-boundary.md +41 -0
  607. package/docs/knowledge/nullable-tool-uniqueness.md +52 -0
  608. package/docs/knowledge/overview-cli.md +74 -0
  609. package/docs/knowledge/overview-coding-proxy.md +72 -0
  610. package/docs/knowledge/overview-coding.md +72 -0
  611. package/docs/knowledge/overview-config.md +60 -0
  612. package/docs/knowledge/overview-core.md +72 -0
  613. package/docs/knowledge/overview-deploy.md +83 -0
  614. package/docs/knowledge/overview-mcp.md +61 -0
  615. package/docs/knowledge/overview-prisma.md +72 -0
  616. package/docs/knowledge/overview-providers.md +89 -0
  617. package/docs/knowledge/overview-sandbox.md +83 -0
  618. package/docs/knowledge/overview-surfaces.md +83 -0
  619. package/docs/knowledge/private-datastore-shared-boundary.md +54 -0
  620. package/docs/knowledge/proxy-settlement-projections.md +41 -0
  621. package/docs/knowledge/run-pricing-first-writer.md +43 -0
  622. package/docs/knowledge/schedule-claim-transaction.md +41 -0
  623. package/docs/knowledge/secret-entry-replica-contract.md +52 -0
  624. package/docs/knowledge/terminal-run-first-writer.md +41 -0
  625. package/docs/knowledge/transactional-agent-authorization.md +52 -0
  626. package/docs/knowledge/viewer-notify-write-isolation.md +30 -0
  627. package/docs/knowledge/warm-input-publication.md +30 -0
  628. package/docs/knowledge/workspace-staging-failure.md +54 -0
  629. package/docs/knowledge.md +54 -14
  630. package/docs/native-sandbox.md +731 -0
  631. package/docs/observability.md +4 -0
  632. package/docs/release-verification.md +9 -0
  633. package/docs/security-deployment.md +146 -14
  634. package/docs/slack-notifications.md +268 -0
  635. package/docs/tool-secrets.md +284 -0
  636. package/docs/viewer-api.md +46 -5
  637. package/docs/viewer-api.openapi.yml +1404 -0
  638. package/help/admin-viewer.md +29 -3
  639. package/help/agent-recipes.md +27 -0
  640. package/help/architecture-agent.md +11 -6
  641. package/help/brokered-secrets.md +79 -0
  642. package/help/build-claude-code-image.md +131 -0
  643. package/help/build-worker-image.md +6 -7
  644. package/help/builder-agent.md +19 -6
  645. package/help/code-review-agents.md +243 -10
  646. package/help/coding-packages.md +156 -6
  647. package/help/cost-attribution.md +9 -5
  648. package/help/creating-agents.md +14 -1
  649. package/help/dependency-cache.md +143 -0
  650. package/help/deploy-gke.md +23 -9
  651. package/help/deployment-targets.md +25 -14
  652. package/help/errors/budget-exhausted.md +187 -0
  653. package/help/errors/budget-group-exhausted.md +5 -1
  654. package/help/errors/coding-provider-not-configured.md +2 -2
  655. package/help/errors/coding-stream-quota-exceeded.md +33 -0
  656. package/help/errors/coding-workspace-disk-exceeds-limit.md +39 -0
  657. package/help/errors/continuation-closed.md +9 -12
  658. package/help/errors/database-auth-invalid.md +28 -0
  659. package/help/errors/delegation-conflict.md +24 -0
  660. package/help/errors/file-list-truncated.md +45 -0
  661. package/help/errors/full-read-required.md +49 -0
  662. package/help/errors/github-account-not-allowed.md +29 -0
  663. package/help/errors/graph-incomplete.md +43 -0
  664. package/help/errors/graph-limit.md +43 -0
  665. package/help/errors/low-power-disabled.md +29 -0
  666. package/help/errors/low-power-scale-forbidden.md +35 -0
  667. package/help/errors/low-power-wake-timeout.md +30 -0
  668. package/help/errors/merge-conflict.md +49 -0
  669. package/help/errors/mobile-disabled.md +31 -0
  670. package/help/errors/native-sandbox-capacity.md +22 -0
  671. package/help/errors/native-sandbox-deadline-exceeded.md +19 -0
  672. package/help/errors/native-sandbox-docker-failed.md +20 -0
  673. package/help/errors/native-sandbox-gateway-error.md +20 -0
  674. package/help/errors/native-sandbox-gateway-unavailable.md +21 -0
  675. package/help/errors/native-sandbox-image-not-pinned.md +19 -0
  676. package/help/errors/native-sandbox-isolation-mismatch.md +20 -0
  677. package/help/errors/native-sandbox-launch-abandoned.md +21 -0
  678. package/help/errors/native-sandbox-network-unenforced.md +22 -0
  679. package/help/errors/native-sandbox-requires-catalog.md +31 -0
  680. package/help/errors/native-sandbox-unavailable.md +19 -0
  681. package/help/errors/native-sandbox-warm-delivery-failed.md +21 -0
  682. package/help/errors/native-sandbox-worker-exited.md +21 -0
  683. package/help/errors/native-sandbox-worker-lost.md +20 -0
  684. package/help/errors/native-sandbox-worker-unready.md +22 -0
  685. package/help/errors/package-not-allowed-pending.md +52 -0
  686. package/help/errors/package-not-allowed.md +51 -0
  687. package/help/errors/package-refusals.md +43 -0
  688. package/help/errors/patch-cursor-malformed.md +31 -0
  689. package/help/errors/run-lost.md +39 -0
  690. package/help/errors/run-transcript-download.md +44 -0
  691. package/help/errors/secret-broker-body-invalid.md +26 -0
  692. package/help/errors/secret-broker-changed.md +20 -0
  693. package/help/errors/secret-broker-config-invalid.md +30 -0
  694. package/help/errors/secret-broker-conflict.md +27 -0
  695. package/help/errors/secret-broker-destination-denied.md +28 -0
  696. package/help/errors/secret-broker-value-invalid.md +28 -0
  697. package/help/errors/secret-brokered.md +24 -0
  698. package/help/errors/secret-in-value.md +69 -0
  699. package/help/errors/secret-not-brokered.md +25 -0
  700. package/help/errors/slack-auth-failed.md +48 -0
  701. package/help/errors/slack-channel-unreachable.md +39 -0
  702. package/help/errors/slack-not-configured.md +33 -0
  703. package/help/errors/target-merge.md +40 -0
  704. package/help/fix-merge-conflicts.md +73 -0
  705. package/help/getting-started.md +4 -5
  706. package/help/github-app-setup.md +132 -0
  707. package/help/github.md +40 -1
  708. package/help/identity-and-access.md +7 -1
  709. package/help/jira.md +23 -6
  710. package/help/knowledge.md +16 -7
  711. package/help/local-repositories.md +3 -4
  712. package/help/low-power-mode.md +131 -0
  713. package/help/merge-order-check.md +122 -0
  714. package/help/mobile-app.md +54 -0
  715. package/help/native-capabilities.md +29 -1
  716. package/help/native-sandbox.md +150 -0
  717. package/help/observability.md +8 -0
  718. package/help/operating-agents.md +5 -0
  719. package/help/package-audit-mode.md +91 -0
  720. package/help/related-pull-requests.md +80 -16
  721. package/help/repo-instructions-and-skills.md +91 -0
  722. package/help/resume-runs-locally.md +131 -0
  723. package/help/review-fix-rounds.md +43 -1
  724. package/help/sharing-agents.md +59 -0
  725. package/help/slack-notifications.md +76 -0
  726. package/help/status-comments.md +31 -0
  727. package/help/stop-run.md +58 -0
  728. package/help/troubleshooting/budgets.md +28 -0
  729. package/help/troubleshooting/coding-workers.md +99 -7
  730. package/package.json +27 -13
  731. package/prisma/migrations/20261009000003_native_execution_mode/migration.sql +12 -0
  732. package/prisma/migrations/20261009000004_native_gateway_ledger/migration.sql +65 -0
  733. package/prisma/migrations/20261009000005_native_gateway_call_child_agent/migration.sql +5 -0
  734. package/prisma/migrations/20261009000006_run_deferred_start_stop/migration.sql +14 -0
  735. package/prisma/migrations/20261009000007_native_gateway_network_ready/migration.sql +5 -0
  736. package/prisma/migrations/20261010000001_workflow_notifications/migration.sql +99 -0
  737. package/prisma/migrations/20261011000001_native_gateway_session_status_index/migration.sql +2 -0
  738. package/prisma/migrations/20261012000001_native_warm_worker/migration.sql +32 -0
  739. package/prisma/migrations/20261013000001_coding_run_merge_order/migration.sql +2 -0
  740. package/prisma/migrations/20261013000001_secret_broker/migration.sql +17 -0
  741. package/prisma/migrations/20261013000002_deferred_review_request/migration.sql +4 -0
  742. package/prisma/migrations/20261014000000_repo_skills/migration.sql +15 -0
  743. package/prisma/migrations/20261015000001_coding_run_merge_order_index/migration.sql +2 -0
  744. package/prisma/migrations/20261015000002_no_change_rereview/migration.sql +2 -0
  745. package/prisma/migrations/20261016000000_registry_approved_accepted_advisories/migration.sql +3 -0
  746. package/prisma/migrations/20261016000001_mark_ready_when_passing/migration.sql +3 -0
  747. package/prisma/migrations/20261017000000_debug_trace_max_mb/migration.sql +4 -0
  748. package/prisma/migrations/20261018000000_dependency_cache/migration.sql +53 -0
  749. package/prisma/migrations/20261019000000_claude_max_output_tokens/migration.sql +5 -0
  750. package/prisma/migrations/20261021000000_pr_description_hash/migration.sql +4 -0
  751. package/prisma/migrations/20261022000000_dependency_snapshot_validation_metadata/migration.sql +4 -0
  752. package/prisma/migrations/20261023000000_package_audit_mode/migration.sql +27 -0
  753. package/prisma/migrations/20261024000000_budget_events/migration.sql +26 -0
  754. package/prisma/migrations/20261025000000_cache_aware_holds/migration.sql +9 -0
  755. package/prisma/migrations/20261026000000_budget_overrun/migration.sql +4 -0
  756. package/prisma/migrations/20261027000000_coding_run_request/migration.sql +1 -0
  757. package/prisma/migrations/20261028000000_native_gateway_review_reads/migration.sql +6 -0
  758. package/prisma/migrations/20261029000000_lead_survives_deploy/migration.sql +6 -0
  759. package/prisma/migrations/20261030000000_local_review_covered_sha/migration.sql +2 -0
  760. package/prisma/migrations/20261031000000_coding_run_budget_limit/migration.sql +9 -0
  761. package/prisma/migrations/20261101000000_run_transcripts/migration.sql +22 -0
  762. package/prisma/schema.prisma +631 -146
  763. package/dist/sandbox/generated/zod-to-json-schema.bundle.js +0 -5
@@ -15,11 +15,13 @@ export type AggregateAgent = {
15
15
  };
16
16
  export type AgentAvgAggregateOutputType = {
17
17
  budgetUsd: runtime.Decimal | null;
18
+ allowedOverrunPercent: number | null;
18
19
  maxTurns: number | null;
19
20
  maxDelegationsPerRun: number | null;
20
21
  };
21
22
  export type AgentSumAggregateOutputType = {
22
23
  budgetUsd: runtime.Decimal | null;
24
+ allowedOverrunPercent: number | null;
23
25
  maxTurns: number | null;
24
26
  maxDelegationsPerRun: number | null;
25
27
  };
@@ -29,6 +31,7 @@ export type AgentMinAggregateOutputType = {
29
31
  systemPrompt: string | null;
30
32
  model: string | null;
31
33
  budgetUsd: runtime.Decimal | null;
34
+ allowedOverrunPercent: number | null;
32
35
  createdAt: Date | null;
33
36
  updatedAt: Date | null;
34
37
  kind: $Enums.AgentKind | null;
@@ -45,6 +48,7 @@ export type AgentMinAggregateOutputType = {
45
48
  budgetGroupId: string | null;
46
49
  memoryEnabled: boolean | null;
47
50
  effort: string | null;
51
+ nativeExecutionMode: $Enums.NativeExecutionMode | null;
48
52
  };
49
53
  export type AgentMaxAggregateOutputType = {
50
54
  id: string | null;
@@ -52,6 +56,7 @@ export type AgentMaxAggregateOutputType = {
52
56
  systemPrompt: string | null;
53
57
  model: string | null;
54
58
  budgetUsd: runtime.Decimal | null;
59
+ allowedOverrunPercent: number | null;
55
60
  createdAt: Date | null;
56
61
  updatedAt: Date | null;
57
62
  kind: $Enums.AgentKind | null;
@@ -68,6 +73,7 @@ export type AgentMaxAggregateOutputType = {
68
73
  budgetGroupId: string | null;
69
74
  memoryEnabled: boolean | null;
70
75
  effort: string | null;
76
+ nativeExecutionMode: $Enums.NativeExecutionMode | null;
71
77
  };
72
78
  export type AgentCountAggregateOutputType = {
73
79
  id: number;
@@ -75,6 +81,7 @@ export type AgentCountAggregateOutputType = {
75
81
  systemPrompt: number;
76
82
  model: number;
77
83
  budgetUsd: number;
84
+ allowedOverrunPercent: number;
78
85
  createdAt: number;
79
86
  updatedAt: number;
80
87
  kind: number;
@@ -91,15 +98,18 @@ export type AgentCountAggregateOutputType = {
91
98
  budgetGroupId: number;
92
99
  memoryEnabled: number;
93
100
  effort: number;
101
+ nativeExecutionMode: number;
94
102
  _all: number;
95
103
  };
96
104
  export type AgentAvgAggregateInputType = {
97
105
  budgetUsd?: true;
106
+ allowedOverrunPercent?: true;
98
107
  maxTurns?: true;
99
108
  maxDelegationsPerRun?: true;
100
109
  };
101
110
  export type AgentSumAggregateInputType = {
102
111
  budgetUsd?: true;
112
+ allowedOverrunPercent?: true;
103
113
  maxTurns?: true;
104
114
  maxDelegationsPerRun?: true;
105
115
  };
@@ -109,6 +119,7 @@ export type AgentMinAggregateInputType = {
109
119
  systemPrompt?: true;
110
120
  model?: true;
111
121
  budgetUsd?: true;
122
+ allowedOverrunPercent?: true;
112
123
  createdAt?: true;
113
124
  updatedAt?: true;
114
125
  kind?: true;
@@ -125,6 +136,7 @@ export type AgentMinAggregateInputType = {
125
136
  budgetGroupId?: true;
126
137
  memoryEnabled?: true;
127
138
  effort?: true;
139
+ nativeExecutionMode?: true;
128
140
  };
129
141
  export type AgentMaxAggregateInputType = {
130
142
  id?: true;
@@ -132,6 +144,7 @@ export type AgentMaxAggregateInputType = {
132
144
  systemPrompt?: true;
133
145
  model?: true;
134
146
  budgetUsd?: true;
147
+ allowedOverrunPercent?: true;
135
148
  createdAt?: true;
136
149
  updatedAt?: true;
137
150
  kind?: true;
@@ -148,6 +161,7 @@ export type AgentMaxAggregateInputType = {
148
161
  budgetGroupId?: true;
149
162
  memoryEnabled?: true;
150
163
  effort?: true;
164
+ nativeExecutionMode?: true;
151
165
  };
152
166
  export type AgentCountAggregateInputType = {
153
167
  id?: true;
@@ -155,6 +169,7 @@ export type AgentCountAggregateInputType = {
155
169
  systemPrompt?: true;
156
170
  model?: true;
157
171
  budgetUsd?: true;
172
+ allowedOverrunPercent?: true;
158
173
  createdAt?: true;
159
174
  updatedAt?: true;
160
175
  kind?: true;
@@ -171,6 +186,7 @@ export type AgentCountAggregateInputType = {
171
186
  budgetGroupId?: true;
172
187
  memoryEnabled?: true;
173
188
  effort?: true;
189
+ nativeExecutionMode?: true;
174
190
  _all?: true;
175
191
  };
176
192
  export type AgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -255,6 +271,7 @@ export type AgentGroupByOutputType = {
255
271
  systemPrompt: string;
256
272
  model: string;
257
273
  budgetUsd: runtime.Decimal;
274
+ allowedOverrunPercent: number;
258
275
  createdAt: Date;
259
276
  updatedAt: Date;
260
277
  kind: $Enums.AgentKind;
@@ -271,6 +288,7 @@ export type AgentGroupByOutputType = {
271
288
  budgetGroupId: string | null;
272
289
  memoryEnabled: boolean;
273
290
  effort: string | null;
291
+ nativeExecutionMode: $Enums.NativeExecutionMode;
274
292
  _count: AgentCountAggregateOutputType | null;
275
293
  _avg: AgentAvgAggregateOutputType | null;
276
294
  _sum: AgentSumAggregateOutputType | null;
@@ -289,6 +307,7 @@ export type AgentWhereInput = {
289
307
  systemPrompt?: Prisma.StringFilter<"Agent"> | string;
290
308
  model?: Prisma.StringFilter<"Agent"> | string;
291
309
  budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
310
+ allowedOverrunPercent?: Prisma.IntFilter<"Agent"> | number;
292
311
  createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
293
312
  updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
294
313
  kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
@@ -305,6 +324,7 @@ export type AgentWhereInput = {
305
324
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
306
325
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
307
326
  effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
327
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFilter<"Agent"> | $Enums.NativeExecutionMode;
308
328
  runs?: Prisma.RunListRelationFilter;
309
329
  codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
310
330
  tools?: Prisma.AgentToolListRelationFilter;
@@ -315,6 +335,7 @@ export type AgentWhereInput = {
315
335
  repositories?: Prisma.AgentRepositoryListRelationFilter;
316
336
  deferredReviews?: Prisma.DeferredReviewListRelationFilter;
317
337
  issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
338
+ notificationChannels?: Prisma.NotificationChannelListRelationFilter;
318
339
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
319
340
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
320
341
  subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
@@ -325,6 +346,7 @@ export type AgentOrderByWithRelationInput = {
325
346
  systemPrompt?: Prisma.SortOrder;
326
347
  model?: Prisma.SortOrder;
327
348
  budgetUsd?: Prisma.SortOrder;
349
+ allowedOverrunPercent?: Prisma.SortOrder;
328
350
  createdAt?: Prisma.SortOrder;
329
351
  updatedAt?: Prisma.SortOrder;
330
352
  kind?: Prisma.SortOrder;
@@ -341,6 +363,7 @@ export type AgentOrderByWithRelationInput = {
341
363
  budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
342
364
  memoryEnabled?: Prisma.SortOrder;
343
365
  effort?: Prisma.SortOrderInput | Prisma.SortOrder;
366
+ nativeExecutionMode?: Prisma.SortOrder;
344
367
  runs?: Prisma.RunOrderByRelationAggregateInput;
345
368
  codingProfile?: Prisma.CodingAgentProfileOrderByWithRelationInput;
346
369
  tools?: Prisma.AgentToolOrderByRelationAggregateInput;
@@ -351,6 +374,7 @@ export type AgentOrderByWithRelationInput = {
351
374
  repositories?: Prisma.AgentRepositoryOrderByRelationAggregateInput;
352
375
  deferredReviews?: Prisma.DeferredReviewOrderByRelationAggregateInput;
353
376
  issueProjects?: Prisma.AgentIssueProjectOrderByRelationAggregateInput;
377
+ notificationChannels?: Prisma.NotificationChannelOrderByRelationAggregateInput;
354
378
  budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
355
379
  subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
356
380
  subAgentEdgesAsChild?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
@@ -364,6 +388,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
364
388
  systemPrompt?: Prisma.StringFilter<"Agent"> | string;
365
389
  model?: Prisma.StringFilter<"Agent"> | string;
366
390
  budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
391
+ allowedOverrunPercent?: Prisma.IntFilter<"Agent"> | number;
367
392
  createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
368
393
  updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
369
394
  kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
@@ -380,6 +405,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
380
405
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
381
406
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
382
407
  effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
408
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFilter<"Agent"> | $Enums.NativeExecutionMode;
383
409
  runs?: Prisma.RunListRelationFilter;
384
410
  codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
385
411
  tools?: Prisma.AgentToolListRelationFilter;
@@ -390,6 +416,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
390
416
  repositories?: Prisma.AgentRepositoryListRelationFilter;
391
417
  deferredReviews?: Prisma.DeferredReviewListRelationFilter;
392
418
  issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
419
+ notificationChannels?: Prisma.NotificationChannelListRelationFilter;
393
420
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
394
421
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
395
422
  subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
@@ -400,6 +427,7 @@ export type AgentOrderByWithAggregationInput = {
400
427
  systemPrompt?: Prisma.SortOrder;
401
428
  model?: Prisma.SortOrder;
402
429
  budgetUsd?: Prisma.SortOrder;
430
+ allowedOverrunPercent?: Prisma.SortOrder;
403
431
  createdAt?: Prisma.SortOrder;
404
432
  updatedAt?: Prisma.SortOrder;
405
433
  kind?: Prisma.SortOrder;
@@ -416,6 +444,7 @@ export type AgentOrderByWithAggregationInput = {
416
444
  budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
417
445
  memoryEnabled?: Prisma.SortOrder;
418
446
  effort?: Prisma.SortOrderInput | Prisma.SortOrder;
447
+ nativeExecutionMode?: Prisma.SortOrder;
419
448
  _count?: Prisma.AgentCountOrderByAggregateInput;
420
449
  _avg?: Prisma.AgentAvgOrderByAggregateInput;
421
450
  _max?: Prisma.AgentMaxOrderByAggregateInput;
@@ -431,6 +460,7 @@ export type AgentScalarWhereWithAggregatesInput = {
431
460
  systemPrompt?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
432
461
  model?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
433
462
  budgetUsd?: Prisma.DecimalWithAggregatesFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
463
+ allowedOverrunPercent?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
434
464
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
435
465
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
436
466
  kind?: Prisma.EnumAgentKindWithAggregatesFilter<"Agent"> | $Enums.AgentKind;
@@ -447,6 +477,7 @@ export type AgentScalarWhereWithAggregatesInput = {
447
477
  budgetGroupId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
448
478
  memoryEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
449
479
  effort?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
480
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeWithAggregatesFilter<"Agent"> | $Enums.NativeExecutionMode;
450
481
  };
451
482
  export type AgentCreateInput = {
452
483
  id?: string;
@@ -454,6 +485,7 @@ export type AgentCreateInput = {
454
485
  systemPrompt: string;
455
486
  model: string;
456
487
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
488
+ allowedOverrunPercent?: number;
457
489
  createdAt?: Date | string;
458
490
  updatedAt?: Date | string;
459
491
  kind?: $Enums.AgentKind;
@@ -468,6 +500,7 @@ export type AgentCreateInput = {
468
500
  defectIssueType?: string | null;
469
501
  memoryEnabled?: boolean;
470
502
  effort?: string | null;
503
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
471
504
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
472
505
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
473
506
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -478,6 +511,7 @@ export type AgentCreateInput = {
478
511
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
479
512
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
480
513
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
514
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
481
515
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
482
516
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
483
517
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -488,6 +522,7 @@ export type AgentUncheckedCreateInput = {
488
522
  systemPrompt: string;
489
523
  model: string;
490
524
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
525
+ allowedOverrunPercent?: number;
491
526
  createdAt?: Date | string;
492
527
  updatedAt?: Date | string;
493
528
  kind?: $Enums.AgentKind;
@@ -504,6 +539,7 @@ export type AgentUncheckedCreateInput = {
504
539
  budgetGroupId?: string | null;
505
540
  memoryEnabled?: boolean;
506
541
  effort?: string | null;
542
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
507
543
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
508
544
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
509
545
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -513,6 +549,7 @@ export type AgentUncheckedCreateInput = {
513
549
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
514
550
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
515
551
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
552
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
516
553
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
517
554
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
518
555
  };
@@ -522,6 +559,7 @@ export type AgentUpdateInput = {
522
559
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
523
560
  model?: Prisma.StringFieldUpdateOperationsInput | string;
524
561
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
562
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
525
563
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
526
564
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
527
565
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -536,6 +574,7 @@ export type AgentUpdateInput = {
536
574
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
537
575
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
538
576
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
577
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
539
578
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
540
579
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
541
580
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -546,6 +585,7 @@ export type AgentUpdateInput = {
546
585
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
547
586
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
548
587
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
588
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
549
589
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
550
590
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
551
591
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -556,6 +596,7 @@ export type AgentUncheckedUpdateInput = {
556
596
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
557
597
  model?: Prisma.StringFieldUpdateOperationsInput | string;
558
598
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
599
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
559
600
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
560
601
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
561
602
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -572,6 +613,7 @@ export type AgentUncheckedUpdateInput = {
572
613
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
573
614
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
574
615
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
616
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
575
617
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
576
618
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
577
619
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -581,6 +623,7 @@ export type AgentUncheckedUpdateInput = {
581
623
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
582
624
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
583
625
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
626
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
584
627
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
585
628
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
586
629
  };
@@ -590,6 +633,7 @@ export type AgentCreateManyInput = {
590
633
  systemPrompt: string;
591
634
  model: string;
592
635
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
636
+ allowedOverrunPercent?: number;
593
637
  createdAt?: Date | string;
594
638
  updatedAt?: Date | string;
595
639
  kind?: $Enums.AgentKind;
@@ -606,6 +650,7 @@ export type AgentCreateManyInput = {
606
650
  budgetGroupId?: string | null;
607
651
  memoryEnabled?: boolean;
608
652
  effort?: string | null;
653
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
609
654
  };
610
655
  export type AgentUpdateManyMutationInput = {
611
656
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -613,6 +658,7 @@ export type AgentUpdateManyMutationInput = {
613
658
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
614
659
  model?: Prisma.StringFieldUpdateOperationsInput | string;
615
660
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
661
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
616
662
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
617
663
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
618
664
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -627,6 +673,7 @@ export type AgentUpdateManyMutationInput = {
627
673
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
628
674
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
629
675
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
676
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
630
677
  };
631
678
  export type AgentUncheckedUpdateManyInput = {
632
679
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -634,6 +681,7 @@ export type AgentUncheckedUpdateManyInput = {
634
681
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
635
682
  model?: Prisma.StringFieldUpdateOperationsInput | string;
636
683
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
684
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
637
685
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
638
686
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
639
687
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -650,6 +698,7 @@ export type AgentUncheckedUpdateManyInput = {
650
698
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
651
699
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
652
700
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
701
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
653
702
  };
654
703
  export type AgentCountOrderByAggregateInput = {
655
704
  id?: Prisma.SortOrder;
@@ -657,6 +706,7 @@ export type AgentCountOrderByAggregateInput = {
657
706
  systemPrompt?: Prisma.SortOrder;
658
707
  model?: Prisma.SortOrder;
659
708
  budgetUsd?: Prisma.SortOrder;
709
+ allowedOverrunPercent?: Prisma.SortOrder;
660
710
  createdAt?: Prisma.SortOrder;
661
711
  updatedAt?: Prisma.SortOrder;
662
712
  kind?: Prisma.SortOrder;
@@ -673,9 +723,11 @@ export type AgentCountOrderByAggregateInput = {
673
723
  budgetGroupId?: Prisma.SortOrder;
674
724
  memoryEnabled?: Prisma.SortOrder;
675
725
  effort?: Prisma.SortOrder;
726
+ nativeExecutionMode?: Prisma.SortOrder;
676
727
  };
677
728
  export type AgentAvgOrderByAggregateInput = {
678
729
  budgetUsd?: Prisma.SortOrder;
730
+ allowedOverrunPercent?: Prisma.SortOrder;
679
731
  maxTurns?: Prisma.SortOrder;
680
732
  maxDelegationsPerRun?: Prisma.SortOrder;
681
733
  };
@@ -685,6 +737,7 @@ export type AgentMaxOrderByAggregateInput = {
685
737
  systemPrompt?: Prisma.SortOrder;
686
738
  model?: Prisma.SortOrder;
687
739
  budgetUsd?: Prisma.SortOrder;
740
+ allowedOverrunPercent?: Prisma.SortOrder;
688
741
  createdAt?: Prisma.SortOrder;
689
742
  updatedAt?: Prisma.SortOrder;
690
743
  kind?: Prisma.SortOrder;
@@ -701,6 +754,7 @@ export type AgentMaxOrderByAggregateInput = {
701
754
  budgetGroupId?: Prisma.SortOrder;
702
755
  memoryEnabled?: Prisma.SortOrder;
703
756
  effort?: Prisma.SortOrder;
757
+ nativeExecutionMode?: Prisma.SortOrder;
704
758
  };
705
759
  export type AgentMinOrderByAggregateInput = {
706
760
  id?: Prisma.SortOrder;
@@ -708,6 +762,7 @@ export type AgentMinOrderByAggregateInput = {
708
762
  systemPrompt?: Prisma.SortOrder;
709
763
  model?: Prisma.SortOrder;
710
764
  budgetUsd?: Prisma.SortOrder;
765
+ allowedOverrunPercent?: Prisma.SortOrder;
711
766
  createdAt?: Prisma.SortOrder;
712
767
  updatedAt?: Prisma.SortOrder;
713
768
  kind?: Prisma.SortOrder;
@@ -724,9 +779,11 @@ export type AgentMinOrderByAggregateInput = {
724
779
  budgetGroupId?: Prisma.SortOrder;
725
780
  memoryEnabled?: Prisma.SortOrder;
726
781
  effort?: Prisma.SortOrder;
782
+ nativeExecutionMode?: Prisma.SortOrder;
727
783
  };
728
784
  export type AgentSumOrderByAggregateInput = {
729
785
  budgetUsd?: Prisma.SortOrder;
786
+ allowedOverrunPercent?: Prisma.SortOrder;
730
787
  maxTurns?: Prisma.SortOrder;
731
788
  maxDelegationsPerRun?: Prisma.SortOrder;
732
789
  };
@@ -742,6 +799,10 @@ export type AgentListRelationFilter = {
742
799
  export type AgentOrderByRelationAggregateInput = {
743
800
  _count?: Prisma.SortOrder;
744
801
  };
802
+ export type AgentNullableScalarRelationFilter = {
803
+ is?: Prisma.AgentWhereInput | null;
804
+ isNot?: Prisma.AgentWhereInput | null;
805
+ };
745
806
  export type StringFieldUpdateOperationsInput = {
746
807
  set?: string;
747
808
  };
@@ -752,6 +813,13 @@ export type DecimalFieldUpdateOperationsInput = {
752
813
  multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string;
753
814
  divide?: runtime.Decimal | runtime.DecimalJsLike | number | string;
754
815
  };
816
+ export type IntFieldUpdateOperationsInput = {
817
+ set?: number;
818
+ increment?: number;
819
+ decrement?: number;
820
+ multiply?: number;
821
+ divide?: number;
822
+ };
755
823
  export type DateTimeFieldUpdateOperationsInput = {
756
824
  set?: Date | string;
757
825
  };
@@ -767,12 +835,8 @@ export type BoolFieldUpdateOperationsInput = {
767
835
  export type NullableDateTimeFieldUpdateOperationsInput = {
768
836
  set?: Date | string | null;
769
837
  };
770
- export type IntFieldUpdateOperationsInput = {
771
- set?: number;
772
- increment?: number;
773
- decrement?: number;
774
- multiply?: number;
775
- divide?: number;
838
+ export type EnumNativeExecutionModeFieldUpdateOperationsInput = {
839
+ set?: $Enums.NativeExecutionMode;
776
840
  };
777
841
  export type AgentCreateNestedOneWithoutSubAgentEdgesAsParentInput = {
778
842
  create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
@@ -982,12 +1046,27 @@ export type AgentUpdateOneRequiredWithoutIssueProjectsNestedInput = {
982
1046
  connect?: Prisma.AgentWhereUniqueInput;
983
1047
  update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutIssueProjectsInput, Prisma.AgentUpdateWithoutIssueProjectsInput>, Prisma.AgentUncheckedUpdateWithoutIssueProjectsInput>;
984
1048
  };
1049
+ export type AgentCreateNestedOneWithoutNotificationChannelsInput = {
1050
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutNotificationChannelsInput, Prisma.AgentUncheckedCreateWithoutNotificationChannelsInput>;
1051
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutNotificationChannelsInput;
1052
+ connect?: Prisma.AgentWhereUniqueInput;
1053
+ };
1054
+ export type AgentUpdateOneWithoutNotificationChannelsNestedInput = {
1055
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutNotificationChannelsInput, Prisma.AgentUncheckedCreateWithoutNotificationChannelsInput>;
1056
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutNotificationChannelsInput;
1057
+ upsert?: Prisma.AgentUpsertWithoutNotificationChannelsInput;
1058
+ disconnect?: Prisma.AgentWhereInput | boolean;
1059
+ delete?: Prisma.AgentWhereInput | boolean;
1060
+ connect?: Prisma.AgentWhereUniqueInput;
1061
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutNotificationChannelsInput, Prisma.AgentUpdateWithoutNotificationChannelsInput>, Prisma.AgentUncheckedUpdateWithoutNotificationChannelsInput>;
1062
+ };
985
1063
  export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
986
1064
  id?: string;
987
1065
  name: string;
988
1066
  systemPrompt: string;
989
1067
  model: string;
990
1068
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1069
+ allowedOverrunPercent?: number;
991
1070
  createdAt?: Date | string;
992
1071
  updatedAt?: Date | string;
993
1072
  kind?: $Enums.AgentKind;
@@ -1002,6 +1081,7 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
1002
1081
  defectIssueType?: string | null;
1003
1082
  memoryEnabled?: boolean;
1004
1083
  effort?: string | null;
1084
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1005
1085
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1006
1086
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1007
1087
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -1012,6 +1092,7 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
1012
1092
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1013
1093
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1014
1094
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1095
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1015
1096
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1016
1097
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1017
1098
  };
@@ -1021,6 +1102,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
1021
1102
  systemPrompt: string;
1022
1103
  model: string;
1023
1104
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1105
+ allowedOverrunPercent?: number;
1024
1106
  createdAt?: Date | string;
1025
1107
  updatedAt?: Date | string;
1026
1108
  kind?: $Enums.AgentKind;
@@ -1037,6 +1119,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
1037
1119
  budgetGroupId?: string | null;
1038
1120
  memoryEnabled?: boolean;
1039
1121
  effort?: string | null;
1122
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1040
1123
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1041
1124
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1042
1125
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -1046,6 +1129,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
1046
1129
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1047
1130
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1048
1131
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1132
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1049
1133
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1050
1134
  };
1051
1135
  export type AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput = {
@@ -1058,6 +1142,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
1058
1142
  systemPrompt: string;
1059
1143
  model: string;
1060
1144
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1145
+ allowedOverrunPercent?: number;
1061
1146
  createdAt?: Date | string;
1062
1147
  updatedAt?: Date | string;
1063
1148
  kind?: $Enums.AgentKind;
@@ -1072,6 +1157,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
1072
1157
  defectIssueType?: string | null;
1073
1158
  memoryEnabled?: boolean;
1074
1159
  effort?: string | null;
1160
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1075
1161
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1076
1162
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1077
1163
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -1082,6 +1168,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
1082
1168
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1083
1169
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1084
1170
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1171
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1085
1172
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1086
1173
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1087
1174
  };
@@ -1091,6 +1178,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1091
1178
  systemPrompt: string;
1092
1179
  model: string;
1093
1180
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1181
+ allowedOverrunPercent?: number;
1094
1182
  createdAt?: Date | string;
1095
1183
  updatedAt?: Date | string;
1096
1184
  kind?: $Enums.AgentKind;
@@ -1107,6 +1195,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1107
1195
  budgetGroupId?: string | null;
1108
1196
  memoryEnabled?: boolean;
1109
1197
  effort?: string | null;
1198
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1110
1199
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1111
1200
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1112
1201
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -1116,6 +1205,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1116
1205
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1117
1206
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1118
1207
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1208
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1119
1209
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1120
1210
  };
1121
1211
  export type AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput = {
@@ -1137,6 +1227,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1137
1227
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1138
1228
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1139
1229
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1230
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1140
1231
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1141
1232
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1142
1233
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1151,6 +1242,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1151
1242
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1152
1243
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1153
1244
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1245
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1154
1246
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1155
1247
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1156
1248
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -1161,6 +1253,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1161
1253
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1162
1254
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1163
1255
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1256
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1164
1257
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1165
1258
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1166
1259
  };
@@ -1170,6 +1263,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1170
1263
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1171
1264
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1172
1265
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1266
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1173
1267
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1174
1268
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1175
1269
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1186,6 +1280,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1186
1280
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1187
1281
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1188
1282
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1283
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1189
1284
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1190
1285
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1191
1286
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -1195,6 +1290,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1195
1290
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1196
1291
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1197
1292
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1293
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1198
1294
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1199
1295
  };
1200
1296
  export type AgentUpsertWithoutSubAgentEdgesAsChildInput = {
@@ -1212,6 +1308,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1212
1308
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1213
1309
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1214
1310
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1311
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1215
1312
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1216
1313
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1217
1314
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1226,6 +1323,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1226
1323
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1227
1324
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1228
1325
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1326
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1229
1327
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1230
1328
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1231
1329
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -1236,6 +1334,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1236
1334
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1237
1335
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1238
1336
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1337
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1239
1338
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1240
1339
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1241
1340
  };
@@ -1245,6 +1344,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1245
1344
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1246
1345
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1247
1346
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1347
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1248
1348
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1249
1349
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1250
1350
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1261,6 +1361,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1261
1361
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1262
1362
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1263
1363
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1364
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1264
1365
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1265
1366
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1266
1367
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -1270,6 +1371,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1270
1371
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1271
1372
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1272
1373
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1374
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1273
1375
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1274
1376
  };
1275
1377
  export type AgentCreateWithoutBudgetGroupInput = {
@@ -1278,6 +1380,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1278
1380
  systemPrompt: string;
1279
1381
  model: string;
1280
1382
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1383
+ allowedOverrunPercent?: number;
1281
1384
  createdAt?: Date | string;
1282
1385
  updatedAt?: Date | string;
1283
1386
  kind?: $Enums.AgentKind;
@@ -1292,6 +1395,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1292
1395
  defectIssueType?: string | null;
1293
1396
  memoryEnabled?: boolean;
1294
1397
  effort?: string | null;
1398
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1295
1399
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1296
1400
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1297
1401
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -1302,6 +1406,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1302
1406
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1303
1407
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1304
1408
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1409
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1305
1410
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1306
1411
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1307
1412
  };
@@ -1311,6 +1416,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1311
1416
  systemPrompt: string;
1312
1417
  model: string;
1313
1418
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1419
+ allowedOverrunPercent?: number;
1314
1420
  createdAt?: Date | string;
1315
1421
  updatedAt?: Date | string;
1316
1422
  kind?: $Enums.AgentKind;
@@ -1326,6 +1432,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1326
1432
  defectIssueType?: string | null;
1327
1433
  memoryEnabled?: boolean;
1328
1434
  effort?: string | null;
1435
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1329
1436
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1330
1437
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1331
1438
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -1335,6 +1442,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1335
1442
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1336
1443
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1337
1444
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1445
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1338
1446
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1339
1447
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1340
1448
  };
@@ -1368,6 +1476,7 @@ export type AgentScalarWhereInput = {
1368
1476
  systemPrompt?: Prisma.StringFilter<"Agent"> | string;
1369
1477
  model?: Prisma.StringFilter<"Agent"> | string;
1370
1478
  budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
1479
+ allowedOverrunPercent?: Prisma.IntFilter<"Agent"> | number;
1371
1480
  createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1372
1481
  updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1373
1482
  kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
@@ -1384,6 +1493,7 @@ export type AgentScalarWhereInput = {
1384
1493
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1385
1494
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1386
1495
  effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
1496
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFilter<"Agent"> | $Enums.NativeExecutionMode;
1387
1497
  };
1388
1498
  export type AgentCreateWithoutToolsInput = {
1389
1499
  id?: string;
@@ -1391,6 +1501,7 @@ export type AgentCreateWithoutToolsInput = {
1391
1501
  systemPrompt: string;
1392
1502
  model: string;
1393
1503
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1504
+ allowedOverrunPercent?: number;
1394
1505
  createdAt?: Date | string;
1395
1506
  updatedAt?: Date | string;
1396
1507
  kind?: $Enums.AgentKind;
@@ -1405,6 +1516,7 @@ export type AgentCreateWithoutToolsInput = {
1405
1516
  defectIssueType?: string | null;
1406
1517
  memoryEnabled?: boolean;
1407
1518
  effort?: string | null;
1519
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1408
1520
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1409
1521
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1410
1522
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
@@ -1414,6 +1526,7 @@ export type AgentCreateWithoutToolsInput = {
1414
1526
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1415
1527
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1416
1528
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1529
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1417
1530
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1418
1531
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1419
1532
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1424,6 +1537,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1424
1537
  systemPrompt: string;
1425
1538
  model: string;
1426
1539
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1540
+ allowedOverrunPercent?: number;
1427
1541
  createdAt?: Date | string;
1428
1542
  updatedAt?: Date | string;
1429
1543
  kind?: $Enums.AgentKind;
@@ -1440,6 +1554,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1440
1554
  budgetGroupId?: string | null;
1441
1555
  memoryEnabled?: boolean;
1442
1556
  effort?: string | null;
1557
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1443
1558
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1444
1559
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1445
1560
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
@@ -1448,6 +1563,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1448
1563
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1449
1564
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1450
1565
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1566
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1451
1567
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1452
1568
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1453
1569
  };
@@ -1470,6 +1586,7 @@ export type AgentUpdateWithoutToolsInput = {
1470
1586
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1471
1587
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1472
1588
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1589
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1473
1590
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1474
1591
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1475
1592
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1484,6 +1601,7 @@ export type AgentUpdateWithoutToolsInput = {
1484
1601
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1485
1602
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1486
1603
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1604
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1487
1605
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1488
1606
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1489
1607
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
@@ -1493,6 +1611,7 @@ export type AgentUpdateWithoutToolsInput = {
1493
1611
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1494
1612
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1495
1613
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1614
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1496
1615
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1497
1616
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1498
1617
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1503,6 +1622,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1503
1622
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1504
1623
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1505
1624
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1625
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1506
1626
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1507
1627
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1508
1628
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1519,6 +1639,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1519
1639
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1520
1640
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1521
1641
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1642
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1522
1643
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1523
1644
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1524
1645
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
@@ -1527,6 +1648,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1527
1648
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1528
1649
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1529
1650
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1651
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1530
1652
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1531
1653
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1532
1654
  };
@@ -1536,6 +1658,7 @@ export type AgentCreateWithoutDatastoresInput = {
1536
1658
  systemPrompt: string;
1537
1659
  model: string;
1538
1660
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1661
+ allowedOverrunPercent?: number;
1539
1662
  createdAt?: Date | string;
1540
1663
  updatedAt?: Date | string;
1541
1664
  kind?: $Enums.AgentKind;
@@ -1550,6 +1673,7 @@ export type AgentCreateWithoutDatastoresInput = {
1550
1673
  defectIssueType?: string | null;
1551
1674
  memoryEnabled?: boolean;
1552
1675
  effort?: string | null;
1676
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1553
1677
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1554
1678
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1555
1679
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -1559,6 +1683,7 @@ export type AgentCreateWithoutDatastoresInput = {
1559
1683
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1560
1684
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1561
1685
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1686
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1562
1687
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1563
1688
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1564
1689
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1569,6 +1694,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1569
1694
  systemPrompt: string;
1570
1695
  model: string;
1571
1696
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1697
+ allowedOverrunPercent?: number;
1572
1698
  createdAt?: Date | string;
1573
1699
  updatedAt?: Date | string;
1574
1700
  kind?: $Enums.AgentKind;
@@ -1585,6 +1711,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1585
1711
  budgetGroupId?: string | null;
1586
1712
  memoryEnabled?: boolean;
1587
1713
  effort?: string | null;
1714
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1588
1715
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1589
1716
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1590
1717
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -1593,6 +1720,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1593
1720
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1594
1721
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1595
1722
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1723
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1596
1724
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1597
1725
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1598
1726
  };
@@ -1615,6 +1743,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1615
1743
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1616
1744
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1617
1745
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1746
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1618
1747
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1619
1748
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1620
1749
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1629,6 +1758,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1629
1758
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1630
1759
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1631
1760
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1761
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1632
1762
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1633
1763
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1634
1764
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -1638,6 +1768,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1638
1768
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1639
1769
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1640
1770
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1771
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1641
1772
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1642
1773
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1643
1774
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1648,6 +1779,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1648
1779
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1649
1780
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1650
1781
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1782
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1651
1783
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1652
1784
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1653
1785
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1664,6 +1796,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1664
1796
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1665
1797
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1666
1798
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1799
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1667
1800
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1668
1801
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1669
1802
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -1672,6 +1805,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1672
1805
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1673
1806
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1674
1807
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1808
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1675
1809
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1676
1810
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1677
1811
  };
@@ -1681,6 +1815,7 @@ export type AgentCreateWithoutRunsInput = {
1681
1815
  systemPrompt: string;
1682
1816
  model: string;
1683
1817
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1818
+ allowedOverrunPercent?: number;
1684
1819
  createdAt?: Date | string;
1685
1820
  updatedAt?: Date | string;
1686
1821
  kind?: $Enums.AgentKind;
@@ -1695,6 +1830,7 @@ export type AgentCreateWithoutRunsInput = {
1695
1830
  defectIssueType?: string | null;
1696
1831
  memoryEnabled?: boolean;
1697
1832
  effort?: string | null;
1833
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1698
1834
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1699
1835
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1700
1836
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
@@ -1704,6 +1840,7 @@ export type AgentCreateWithoutRunsInput = {
1704
1840
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1705
1841
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1706
1842
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1843
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1707
1844
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1708
1845
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1709
1846
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1714,6 +1851,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1714
1851
  systemPrompt: string;
1715
1852
  model: string;
1716
1853
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1854
+ allowedOverrunPercent?: number;
1717
1855
  createdAt?: Date | string;
1718
1856
  updatedAt?: Date | string;
1719
1857
  kind?: $Enums.AgentKind;
@@ -1730,6 +1868,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1730
1868
  budgetGroupId?: string | null;
1731
1869
  memoryEnabled?: boolean;
1732
1870
  effort?: string | null;
1871
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1733
1872
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1734
1873
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1735
1874
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
@@ -1738,6 +1877,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1738
1877
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1739
1878
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1740
1879
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1880
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1741
1881
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1742
1882
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1743
1883
  };
@@ -1760,6 +1900,7 @@ export type AgentUpdateWithoutRunsInput = {
1760
1900
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1761
1901
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1762
1902
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1903
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1763
1904
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1764
1905
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1765
1906
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1774,6 +1915,7 @@ export type AgentUpdateWithoutRunsInput = {
1774
1915
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1775
1916
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1776
1917
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1918
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1777
1919
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1778
1920
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1779
1921
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
@@ -1783,6 +1925,7 @@ export type AgentUpdateWithoutRunsInput = {
1783
1925
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1784
1926
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1785
1927
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1928
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1786
1929
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1787
1930
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1788
1931
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1793,6 +1936,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1793
1936
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1794
1937
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1795
1938
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1939
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1796
1940
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1797
1941
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1798
1942
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1809,6 +1953,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1809
1953
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1810
1954
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1811
1955
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1956
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1812
1957
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1813
1958
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1814
1959
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
@@ -1817,6 +1962,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1817
1962
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1818
1963
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1819
1964
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1965
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1820
1966
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1821
1967
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1822
1968
  };
@@ -1826,6 +1972,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1826
1972
  systemPrompt: string;
1827
1973
  model: string;
1828
1974
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1975
+ allowedOverrunPercent?: number;
1829
1976
  createdAt?: Date | string;
1830
1977
  updatedAt?: Date | string;
1831
1978
  kind?: $Enums.AgentKind;
@@ -1840,6 +1987,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1840
1987
  defectIssueType?: string | null;
1841
1988
  memoryEnabled?: boolean;
1842
1989
  effort?: string | null;
1990
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1843
1991
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1844
1992
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1845
1993
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
@@ -1849,6 +1997,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1849
1997
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1850
1998
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1851
1999
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2000
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1852
2001
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1853
2002
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1854
2003
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1859,6 +2008,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1859
2008
  systemPrompt: string;
1860
2009
  model: string;
1861
2010
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2011
+ allowedOverrunPercent?: number;
1862
2012
  createdAt?: Date | string;
1863
2013
  updatedAt?: Date | string;
1864
2014
  kind?: $Enums.AgentKind;
@@ -1875,6 +2025,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1875
2025
  budgetGroupId?: string | null;
1876
2026
  memoryEnabled?: boolean;
1877
2027
  effort?: string | null;
2028
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1878
2029
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1879
2030
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1880
2031
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
@@ -1883,6 +2034,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1883
2034
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1884
2035
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1885
2036
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2037
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1886
2038
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1887
2039
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1888
2040
  };
@@ -1905,6 +2057,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
1905
2057
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1906
2058
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1907
2059
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2060
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1908
2061
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1909
2062
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1910
2063
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1919,6 +2072,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
1919
2072
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1920
2073
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1921
2074
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2075
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1922
2076
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1923
2077
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1924
2078
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
@@ -1928,6 +2082,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
1928
2082
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1929
2083
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1930
2084
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2085
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1931
2086
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1932
2087
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1933
2088
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1938,6 +2093,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1938
2093
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1939
2094
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1940
2095
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2096
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1941
2097
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1942
2098
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1943
2099
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1954,6 +2110,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1954
2110
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1955
2111
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1956
2112
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2113
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
1957
2114
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1958
2115
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1959
2116
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
@@ -1962,6 +2119,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1962
2119
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1963
2120
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1964
2121
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2122
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1965
2123
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1966
2124
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1967
2125
  };
@@ -1971,6 +2129,7 @@ export type AgentCreateWithoutOwnerInput = {
1971
2129
  systemPrompt: string;
1972
2130
  model: string;
1973
2131
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2132
+ allowedOverrunPercent?: number;
1974
2133
  createdAt?: Date | string;
1975
2134
  updatedAt?: Date | string;
1976
2135
  kind?: $Enums.AgentKind;
@@ -1985,6 +2144,7 @@ export type AgentCreateWithoutOwnerInput = {
1985
2144
  defectIssueType?: string | null;
1986
2145
  memoryEnabled?: boolean;
1987
2146
  effort?: string | null;
2147
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
1988
2148
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1989
2149
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1990
2150
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -1994,6 +2154,7 @@ export type AgentCreateWithoutOwnerInput = {
1994
2154
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1995
2155
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1996
2156
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2157
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1997
2158
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1998
2159
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1999
2160
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2004,6 +2165,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
2004
2165
  systemPrompt: string;
2005
2166
  model: string;
2006
2167
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2168
+ allowedOverrunPercent?: number;
2007
2169
  createdAt?: Date | string;
2008
2170
  updatedAt?: Date | string;
2009
2171
  kind?: $Enums.AgentKind;
@@ -2019,6 +2181,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
2019
2181
  budgetGroupId?: string | null;
2020
2182
  memoryEnabled?: boolean;
2021
2183
  effort?: string | null;
2184
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2022
2185
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2023
2186
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2024
2187
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -2028,6 +2191,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
2028
2191
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2029
2192
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2030
2193
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2194
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2031
2195
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2032
2196
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2033
2197
  };
@@ -2058,6 +2222,7 @@ export type AgentCreateWithoutSecretsInput = {
2058
2222
  systemPrompt: string;
2059
2223
  model: string;
2060
2224
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2225
+ allowedOverrunPercent?: number;
2061
2226
  createdAt?: Date | string;
2062
2227
  updatedAt?: Date | string;
2063
2228
  kind?: $Enums.AgentKind;
@@ -2072,6 +2237,7 @@ export type AgentCreateWithoutSecretsInput = {
2072
2237
  defectIssueType?: string | null;
2073
2238
  memoryEnabled?: boolean;
2074
2239
  effort?: string | null;
2240
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2075
2241
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2076
2242
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2077
2243
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -2081,6 +2247,7 @@ export type AgentCreateWithoutSecretsInput = {
2081
2247
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2082
2248
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2083
2249
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2250
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2084
2251
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2085
2252
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2086
2253
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2091,6 +2258,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
2091
2258
  systemPrompt: string;
2092
2259
  model: string;
2093
2260
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2261
+ allowedOverrunPercent?: number;
2094
2262
  createdAt?: Date | string;
2095
2263
  updatedAt?: Date | string;
2096
2264
  kind?: $Enums.AgentKind;
@@ -2107,6 +2275,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
2107
2275
  budgetGroupId?: string | null;
2108
2276
  memoryEnabled?: boolean;
2109
2277
  effort?: string | null;
2278
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2110
2279
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2111
2280
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2112
2281
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -2115,6 +2284,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
2115
2284
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2116
2285
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2117
2286
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2287
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2118
2288
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2119
2289
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2120
2290
  };
@@ -2137,6 +2307,7 @@ export type AgentUpdateWithoutSecretsInput = {
2137
2307
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2138
2308
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2139
2309
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2310
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2140
2311
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2141
2312
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2142
2313
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2151,6 +2322,7 @@ export type AgentUpdateWithoutSecretsInput = {
2151
2322
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2152
2323
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2153
2324
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2325
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2154
2326
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2155
2327
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2156
2328
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2160,6 +2332,7 @@ export type AgentUpdateWithoutSecretsInput = {
2160
2332
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2161
2333
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2162
2334
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2335
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2163
2336
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2164
2337
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2165
2338
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2170,6 +2343,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2170
2343
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2171
2344
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2172
2345
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2346
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2173
2347
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2174
2348
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2175
2349
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2186,6 +2360,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2186
2360
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2187
2361
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2188
2362
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2363
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2189
2364
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2190
2365
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2191
2366
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2194,6 +2369,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2194
2369
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2195
2370
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2196
2371
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2372
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2197
2373
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2198
2374
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2199
2375
  };
@@ -2203,6 +2379,7 @@ export type AgentCreateWithoutWebhooksInput = {
2203
2379
  systemPrompt: string;
2204
2380
  model: string;
2205
2381
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2382
+ allowedOverrunPercent?: number;
2206
2383
  createdAt?: Date | string;
2207
2384
  updatedAt?: Date | string;
2208
2385
  kind?: $Enums.AgentKind;
@@ -2217,6 +2394,7 @@ export type AgentCreateWithoutWebhooksInput = {
2217
2394
  defectIssueType?: string | null;
2218
2395
  memoryEnabled?: boolean;
2219
2396
  effort?: string | null;
2397
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2220
2398
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2221
2399
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2222
2400
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -2226,6 +2404,7 @@ export type AgentCreateWithoutWebhooksInput = {
2226
2404
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2227
2405
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2228
2406
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2407
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2229
2408
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2230
2409
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2231
2410
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2236,6 +2415,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2236
2415
  systemPrompt: string;
2237
2416
  model: string;
2238
2417
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2418
+ allowedOverrunPercent?: number;
2239
2419
  createdAt?: Date | string;
2240
2420
  updatedAt?: Date | string;
2241
2421
  kind?: $Enums.AgentKind;
@@ -2252,6 +2432,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2252
2432
  budgetGroupId?: string | null;
2253
2433
  memoryEnabled?: boolean;
2254
2434
  effort?: string | null;
2435
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2255
2436
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2256
2437
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2257
2438
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -2260,6 +2441,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2260
2441
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2261
2442
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2262
2443
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2444
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2263
2445
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2264
2446
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2265
2447
  };
@@ -2282,6 +2464,7 @@ export type AgentUpdateWithoutWebhooksInput = {
2282
2464
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2283
2465
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2284
2466
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2467
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2285
2468
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2286
2469
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2287
2470
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2296,6 +2479,7 @@ export type AgentUpdateWithoutWebhooksInput = {
2296
2479
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2297
2480
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2298
2481
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2482
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2299
2483
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2300
2484
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2301
2485
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2305,6 +2489,7 @@ export type AgentUpdateWithoutWebhooksInput = {
2305
2489
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2306
2490
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2307
2491
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2492
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2308
2493
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2309
2494
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2310
2495
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2315,6 +2500,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2315
2500
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2316
2501
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2317
2502
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2503
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2318
2504
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2319
2505
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2320
2506
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2331,6 +2517,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2331
2517
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2332
2518
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2333
2519
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2520
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2334
2521
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2335
2522
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2336
2523
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2339,6 +2526,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2339
2526
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2340
2527
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2341
2528
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2529
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2342
2530
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2343
2531
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2344
2532
  };
@@ -2348,6 +2536,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2348
2536
  systemPrompt: string;
2349
2537
  model: string;
2350
2538
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2539
+ allowedOverrunPercent?: number;
2351
2540
  createdAt?: Date | string;
2352
2541
  updatedAt?: Date | string;
2353
2542
  kind?: $Enums.AgentKind;
@@ -2362,6 +2551,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2362
2551
  defectIssueType?: string | null;
2363
2552
  memoryEnabled?: boolean;
2364
2553
  effort?: string | null;
2554
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2365
2555
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2366
2556
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2367
2557
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -2371,6 +2561,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2371
2561
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2372
2562
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2373
2563
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2564
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2374
2565
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2375
2566
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2376
2567
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2381,6 +2572,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2381
2572
  systemPrompt: string;
2382
2573
  model: string;
2383
2574
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2575
+ allowedOverrunPercent?: number;
2384
2576
  createdAt?: Date | string;
2385
2577
  updatedAt?: Date | string;
2386
2578
  kind?: $Enums.AgentKind;
@@ -2397,6 +2589,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2397
2589
  budgetGroupId?: string | null;
2398
2590
  memoryEnabled?: boolean;
2399
2591
  effort?: string | null;
2592
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2400
2593
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2401
2594
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2402
2595
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -2405,6 +2598,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2405
2598
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2406
2599
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2407
2600
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2601
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2408
2602
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2409
2603
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2410
2604
  };
@@ -2427,6 +2621,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2427
2621
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2428
2622
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2429
2623
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2624
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2430
2625
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2431
2626
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2432
2627
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2441,6 +2636,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2441
2636
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2442
2637
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2443
2638
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2639
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2444
2640
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2445
2641
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2446
2642
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2450,6 +2646,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2450
2646
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2451
2647
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2452
2648
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2649
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2453
2650
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2454
2651
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2455
2652
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2460,6 +2657,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2460
2657
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2461
2658
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2462
2659
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2660
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2463
2661
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2464
2662
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2465
2663
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2476,6 +2674,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2476
2674
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2477
2675
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2478
2676
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2677
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2479
2678
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2480
2679
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2481
2680
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2484,6 +2683,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2484
2683
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2485
2684
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2486
2685
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2686
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2487
2687
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2488
2688
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2489
2689
  };
@@ -2493,6 +2693,7 @@ export type AgentCreateWithoutDeferredReviewsInput = {
2493
2693
  systemPrompt: string;
2494
2694
  model: string;
2495
2695
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2696
+ allowedOverrunPercent?: number;
2496
2697
  createdAt?: Date | string;
2497
2698
  updatedAt?: Date | string;
2498
2699
  kind?: $Enums.AgentKind;
@@ -2507,6 +2708,7 @@ export type AgentCreateWithoutDeferredReviewsInput = {
2507
2708
  defectIssueType?: string | null;
2508
2709
  memoryEnabled?: boolean;
2509
2710
  effort?: string | null;
2711
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2510
2712
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2511
2713
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2512
2714
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -2516,6 +2718,7 @@ export type AgentCreateWithoutDeferredReviewsInput = {
2516
2718
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2517
2719
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2518
2720
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2721
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2519
2722
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2520
2723
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2521
2724
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2526,6 +2729,7 @@ export type AgentUncheckedCreateWithoutDeferredReviewsInput = {
2526
2729
  systemPrompt: string;
2527
2730
  model: string;
2528
2731
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2732
+ allowedOverrunPercent?: number;
2529
2733
  createdAt?: Date | string;
2530
2734
  updatedAt?: Date | string;
2531
2735
  kind?: $Enums.AgentKind;
@@ -2542,6 +2746,7 @@ export type AgentUncheckedCreateWithoutDeferredReviewsInput = {
2542
2746
  budgetGroupId?: string | null;
2543
2747
  memoryEnabled?: boolean;
2544
2748
  effort?: string | null;
2749
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2545
2750
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2546
2751
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2547
2752
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -2550,6 +2755,7 @@ export type AgentUncheckedCreateWithoutDeferredReviewsInput = {
2550
2755
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2551
2756
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2552
2757
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2758
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2553
2759
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2554
2760
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2555
2761
  };
@@ -2572,6 +2778,7 @@ export type AgentUpdateWithoutDeferredReviewsInput = {
2572
2778
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2573
2779
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2574
2780
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2781
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2575
2782
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2576
2783
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2577
2784
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2586,6 +2793,7 @@ export type AgentUpdateWithoutDeferredReviewsInput = {
2586
2793
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2587
2794
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2588
2795
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2796
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2589
2797
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2590
2798
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2591
2799
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2595,6 +2803,7 @@ export type AgentUpdateWithoutDeferredReviewsInput = {
2595
2803
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2596
2804
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2597
2805
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2806
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2598
2807
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2599
2808
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2600
2809
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2605,6 +2814,7 @@ export type AgentUncheckedUpdateWithoutDeferredReviewsInput = {
2605
2814
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2606
2815
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2607
2816
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2817
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2608
2818
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2609
2819
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2610
2820
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2621,6 +2831,7 @@ export type AgentUncheckedUpdateWithoutDeferredReviewsInput = {
2621
2831
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2622
2832
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2623
2833
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2834
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2624
2835
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2625
2836
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2626
2837
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2629,6 +2840,7 @@ export type AgentUncheckedUpdateWithoutDeferredReviewsInput = {
2629
2840
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2630
2841
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2631
2842
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2843
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2632
2844
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2633
2845
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2634
2846
  };
@@ -2638,6 +2850,7 @@ export type AgentCreateWithoutIssueProjectsInput = {
2638
2850
  systemPrompt: string;
2639
2851
  model: string;
2640
2852
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2853
+ allowedOverrunPercent?: number;
2641
2854
  createdAt?: Date | string;
2642
2855
  updatedAt?: Date | string;
2643
2856
  kind?: $Enums.AgentKind;
@@ -2652,6 +2865,7 @@ export type AgentCreateWithoutIssueProjectsInput = {
2652
2865
  defectIssueType?: string | null;
2653
2866
  memoryEnabled?: boolean;
2654
2867
  effort?: string | null;
2868
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2655
2869
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2656
2870
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2657
2871
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -2661,6 +2875,7 @@ export type AgentCreateWithoutIssueProjectsInput = {
2661
2875
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2662
2876
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2663
2877
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2878
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2664
2879
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2665
2880
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2666
2881
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2671,6 +2886,7 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2671
2886
  systemPrompt: string;
2672
2887
  model: string;
2673
2888
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2889
+ allowedOverrunPercent?: number;
2674
2890
  createdAt?: Date | string;
2675
2891
  updatedAt?: Date | string;
2676
2892
  kind?: $Enums.AgentKind;
@@ -2687,6 +2903,7 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2687
2903
  budgetGroupId?: string | null;
2688
2904
  memoryEnabled?: boolean;
2689
2905
  effort?: string | null;
2906
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2690
2907
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2691
2908
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2692
2909
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
@@ -2695,6 +2912,7 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2695
2912
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2696
2913
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2697
2914
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2915
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2698
2916
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2699
2917
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2700
2918
  };
@@ -2717,6 +2935,7 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2717
2935
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2718
2936
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2719
2937
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2938
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2720
2939
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2721
2940
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2722
2941
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2731,6 +2950,7 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2731
2950
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2732
2951
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2733
2952
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2953
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2734
2954
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2735
2955
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2736
2956
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2740,6 +2960,7 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2740
2960
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2741
2961
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2742
2962
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2963
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2743
2964
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2744
2965
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2745
2966
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2750,6 +2971,164 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2750
2971
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2751
2972
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2752
2973
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2974
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2975
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2976
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2977
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2978
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2979
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2980
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2981
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2982
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2983
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
2984
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2985
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2986
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2987
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2988
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2989
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2990
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2991
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2992
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2993
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2994
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2995
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2996
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2997
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2998
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2999
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3000
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
3001
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
3002
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
3003
+ };
3004
+ export type AgentCreateWithoutNotificationChannelsInput = {
3005
+ id?: string;
3006
+ name: string;
3007
+ systemPrompt: string;
3008
+ model: string;
3009
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3010
+ allowedOverrunPercent?: number;
3011
+ createdAt?: Date | string;
3012
+ updatedAt?: Date | string;
3013
+ kind?: $Enums.AgentKind;
3014
+ schedule?: string | null;
3015
+ timezone?: string;
3016
+ scheduleEnabled?: boolean;
3017
+ lastScheduledAt?: Date | string | null;
3018
+ maxTurns?: number;
3019
+ maxDelegationsPerRun?: number;
3020
+ parallelDelegations?: boolean;
3021
+ defectProjectKey?: string | null;
3022
+ defectIssueType?: string | null;
3023
+ memoryEnabled?: boolean;
3024
+ effort?: string | null;
3025
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
3026
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
3027
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
3028
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
3029
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
3030
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
3031
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
3032
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
3033
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
3034
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
3035
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
3036
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
3037
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
3038
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
3039
+ };
3040
+ export type AgentUncheckedCreateWithoutNotificationChannelsInput = {
3041
+ id?: string;
3042
+ name: string;
3043
+ systemPrompt: string;
3044
+ model: string;
3045
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3046
+ allowedOverrunPercent?: number;
3047
+ createdAt?: Date | string;
3048
+ updatedAt?: Date | string;
3049
+ kind?: $Enums.AgentKind;
3050
+ schedule?: string | null;
3051
+ timezone?: string;
3052
+ scheduleEnabled?: boolean;
3053
+ lastScheduledAt?: Date | string | null;
3054
+ maxTurns?: number;
3055
+ maxDelegationsPerRun?: number;
3056
+ parallelDelegations?: boolean;
3057
+ ownerId?: string | null;
3058
+ defectProjectKey?: string | null;
3059
+ defectIssueType?: string | null;
3060
+ budgetGroupId?: string | null;
3061
+ memoryEnabled?: boolean;
3062
+ effort?: string | null;
3063
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
3064
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
3065
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
3066
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
3067
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
3068
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
3069
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
3070
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
3071
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
3072
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
3073
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
3074
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
3075
+ };
3076
+ export type AgentCreateOrConnectWithoutNotificationChannelsInput = {
3077
+ where: Prisma.AgentWhereUniqueInput;
3078
+ create: Prisma.XOR<Prisma.AgentCreateWithoutNotificationChannelsInput, Prisma.AgentUncheckedCreateWithoutNotificationChannelsInput>;
3079
+ };
3080
+ export type AgentUpsertWithoutNotificationChannelsInput = {
3081
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutNotificationChannelsInput, Prisma.AgentUncheckedUpdateWithoutNotificationChannelsInput>;
3082
+ create: Prisma.XOR<Prisma.AgentCreateWithoutNotificationChannelsInput, Prisma.AgentUncheckedCreateWithoutNotificationChannelsInput>;
3083
+ where?: Prisma.AgentWhereInput;
3084
+ };
3085
+ export type AgentUpdateToOneWithWhereWithoutNotificationChannelsInput = {
3086
+ where?: Prisma.AgentWhereInput;
3087
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutNotificationChannelsInput, Prisma.AgentUncheckedUpdateWithoutNotificationChannelsInput>;
3088
+ };
3089
+ export type AgentUpdateWithoutNotificationChannelsInput = {
3090
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3091
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3092
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3093
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
3094
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3095
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3096
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3097
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3098
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
3099
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3100
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
3101
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3102
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3103
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
3104
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
3105
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3106
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3107
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3108
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3109
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3110
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
3111
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
3112
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
3113
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
3114
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
3115
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
3116
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
3117
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
3118
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
3119
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
3120
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3121
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
3122
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
3123
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
3124
+ };
3125
+ export type AgentUncheckedUpdateWithoutNotificationChannelsInput = {
3126
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3127
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3128
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3129
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
3130
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3131
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2753
3132
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2754
3133
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2755
3134
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2766,6 +3145,7 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2766
3145
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2767
3146
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2768
3147
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3148
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2769
3149
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2770
3150
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2771
3151
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2774,6 +3154,7 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2774
3154
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2775
3155
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2776
3156
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3157
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2777
3158
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2778
3159
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2779
3160
  };
@@ -2783,6 +3164,7 @@ export type AgentCreateManyBudgetGroupInput = {
2783
3164
  systemPrompt: string;
2784
3165
  model: string;
2785
3166
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3167
+ allowedOverrunPercent?: number;
2786
3168
  createdAt?: Date | string;
2787
3169
  updatedAt?: Date | string;
2788
3170
  kind?: $Enums.AgentKind;
@@ -2798,6 +3180,7 @@ export type AgentCreateManyBudgetGroupInput = {
2798
3180
  defectIssueType?: string | null;
2799
3181
  memoryEnabled?: boolean;
2800
3182
  effort?: string | null;
3183
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2801
3184
  };
2802
3185
  export type AgentUpdateWithoutBudgetGroupInput = {
2803
3186
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2805,6 +3188,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2805
3188
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2806
3189
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2807
3190
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3191
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2808
3192
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2809
3193
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2810
3194
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2819,6 +3203,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2819
3203
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2820
3204
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2821
3205
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3206
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2822
3207
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2823
3208
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2824
3209
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2829,6 +3214,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2829
3214
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2830
3215
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2831
3216
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3217
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2832
3218
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2833
3219
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2834
3220
  };
@@ -2838,6 +3224,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2838
3224
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2839
3225
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2840
3226
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3227
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2841
3228
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2842
3229
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2843
3230
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2853,6 +3240,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2853
3240
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2854
3241
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2855
3242
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3243
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2856
3244
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2857
3245
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2858
3246
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2862,6 +3250,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2862
3250
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2863
3251
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2864
3252
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
3253
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2865
3254
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2866
3255
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2867
3256
  };
@@ -2871,6 +3260,7 @@ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
2871
3260
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2872
3261
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2873
3262
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3263
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2874
3264
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2875
3265
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2876
3266
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2886,6 +3276,7 @@ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
2886
3276
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2887
3277
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2888
3278
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3279
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2889
3280
  };
2890
3281
  export type AgentCreateManyOwnerInput = {
2891
3282
  id?: string;
@@ -2893,6 +3284,7 @@ export type AgentCreateManyOwnerInput = {
2893
3284
  systemPrompt: string;
2894
3285
  model: string;
2895
3286
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3287
+ allowedOverrunPercent?: number;
2896
3288
  createdAt?: Date | string;
2897
3289
  updatedAt?: Date | string;
2898
3290
  kind?: $Enums.AgentKind;
@@ -2908,6 +3300,7 @@ export type AgentCreateManyOwnerInput = {
2908
3300
  budgetGroupId?: string | null;
2909
3301
  memoryEnabled?: boolean;
2910
3302
  effort?: string | null;
3303
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
2911
3304
  };
2912
3305
  export type AgentUpdateWithoutOwnerInput = {
2913
3306
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2915,6 +3308,7 @@ export type AgentUpdateWithoutOwnerInput = {
2915
3308
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2916
3309
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2917
3310
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3311
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2918
3312
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2919
3313
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2920
3314
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2929,6 +3323,7 @@ export type AgentUpdateWithoutOwnerInput = {
2929
3323
  defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2930
3324
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2931
3325
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3326
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2932
3327
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2933
3328
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2934
3329
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -2938,6 +3333,7 @@ export type AgentUpdateWithoutOwnerInput = {
2938
3333
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2939
3334
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2940
3335
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3336
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2941
3337
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2942
3338
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2943
3339
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2948,6 +3344,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2948
3344
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2949
3345
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2950
3346
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3347
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2951
3348
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2952
3349
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2953
3350
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2963,6 +3360,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2963
3360
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2964
3361
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2965
3362
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3363
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2966
3364
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2967
3365
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2968
3366
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2972,6 +3370,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2972
3370
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2973
3371
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2974
3372
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
3373
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2975
3374
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2976
3375
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2977
3376
  };
@@ -2981,6 +3380,7 @@ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2981
3380
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2982
3381
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2983
3382
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3383
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2984
3384
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2985
3385
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2986
3386
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2996,6 +3396,7 @@ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2996
3396
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2997
3397
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2998
3398
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3399
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
2999
3400
  };
3000
3401
  /**
3001
3402
  * Count Type AgentCountOutputType
@@ -3009,6 +3410,7 @@ export type AgentCountOutputType = {
3009
3410
  repositories: number;
3010
3411
  deferredReviews: number;
3011
3412
  issueProjects: number;
3413
+ notificationChannels: number;
3012
3414
  subAgentEdgesAsParent: number;
3013
3415
  subAgentEdgesAsChild: number;
3014
3416
  };
@@ -3021,6 +3423,7 @@ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.
3021
3423
  repositories?: boolean | AgentCountOutputTypeCountRepositoriesArgs;
3022
3424
  deferredReviews?: boolean | AgentCountOutputTypeCountDeferredReviewsArgs;
3023
3425
  issueProjects?: boolean | AgentCountOutputTypeCountIssueProjectsArgs;
3426
+ notificationChannels?: boolean | AgentCountOutputTypeCountNotificationChannelsArgs;
3024
3427
  subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
3025
3428
  subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
3026
3429
  };
@@ -3081,6 +3484,12 @@ export type AgentCountOutputTypeCountDeferredReviewsArgs<ExtArgs extends runtime
3081
3484
  export type AgentCountOutputTypeCountIssueProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3082
3485
  where?: Prisma.AgentIssueProjectWhereInput;
3083
3486
  };
3487
+ /**
3488
+ * AgentCountOutputType without action
3489
+ */
3490
+ export type AgentCountOutputTypeCountNotificationChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3491
+ where?: Prisma.NotificationChannelWhereInput;
3492
+ };
3084
3493
  /**
3085
3494
  * AgentCountOutputType without action
3086
3495
  */
@@ -3099,6 +3508,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3099
3508
  systemPrompt?: boolean;
3100
3509
  model?: boolean;
3101
3510
  budgetUsd?: boolean;
3511
+ allowedOverrunPercent?: boolean;
3102
3512
  createdAt?: boolean;
3103
3513
  updatedAt?: boolean;
3104
3514
  kind?: boolean;
@@ -3115,6 +3525,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3115
3525
  budgetGroupId?: boolean;
3116
3526
  memoryEnabled?: boolean;
3117
3527
  effort?: boolean;
3528
+ nativeExecutionMode?: boolean;
3118
3529
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
3119
3530
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
3120
3531
  tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>;
@@ -3125,6 +3536,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3125
3536
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
3126
3537
  deferredReviews?: boolean | Prisma.Agent$deferredReviewsArgs<ExtArgs>;
3127
3538
  issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
3539
+ notificationChannels?: boolean | Prisma.Agent$notificationChannelsArgs<ExtArgs>;
3128
3540
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
3129
3541
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
3130
3542
  subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
@@ -3136,6 +3548,7 @@ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
3136
3548
  systemPrompt?: boolean;
3137
3549
  model?: boolean;
3138
3550
  budgetUsd?: boolean;
3551
+ allowedOverrunPercent?: boolean;
3139
3552
  createdAt?: boolean;
3140
3553
  updatedAt?: boolean;
3141
3554
  kind?: boolean;
@@ -3152,6 +3565,7 @@ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
3152
3565
  budgetGroupId?: boolean;
3153
3566
  memoryEnabled?: boolean;
3154
3567
  effort?: boolean;
3568
+ nativeExecutionMode?: boolean;
3155
3569
  owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
3156
3570
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
3157
3571
  }, ExtArgs["result"]["agent"]>;
@@ -3161,6 +3575,7 @@ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
3161
3575
  systemPrompt?: boolean;
3162
3576
  model?: boolean;
3163
3577
  budgetUsd?: boolean;
3578
+ allowedOverrunPercent?: boolean;
3164
3579
  createdAt?: boolean;
3165
3580
  updatedAt?: boolean;
3166
3581
  kind?: boolean;
@@ -3177,6 +3592,7 @@ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
3177
3592
  budgetGroupId?: boolean;
3178
3593
  memoryEnabled?: boolean;
3179
3594
  effort?: boolean;
3595
+ nativeExecutionMode?: boolean;
3180
3596
  owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
3181
3597
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
3182
3598
  }, ExtArgs["result"]["agent"]>;
@@ -3186,6 +3602,7 @@ export type AgentSelectScalar = {
3186
3602
  systemPrompt?: boolean;
3187
3603
  model?: boolean;
3188
3604
  budgetUsd?: boolean;
3605
+ allowedOverrunPercent?: boolean;
3189
3606
  createdAt?: boolean;
3190
3607
  updatedAt?: boolean;
3191
3608
  kind?: boolean;
@@ -3202,8 +3619,9 @@ export type AgentSelectScalar = {
3202
3619
  budgetGroupId?: boolean;
3203
3620
  memoryEnabled?: boolean;
3204
3621
  effort?: boolean;
3622
+ nativeExecutionMode?: boolean;
3205
3623
  };
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"]>;
3624
+ export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "allowedOverrunPercent" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "maxDelegationsPerRun" | "parallelDelegations" | "ownerId" | "defectProjectKey" | "defectIssueType" | "budgetGroupId" | "memoryEnabled" | "effort" | "nativeExecutionMode", ExtArgs["result"]["agent"]>;
3207
3625
  export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3208
3626
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
3209
3627
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
@@ -3215,6 +3633,7 @@ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3215
3633
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
3216
3634
  deferredReviews?: boolean | Prisma.Agent$deferredReviewsArgs<ExtArgs>;
3217
3635
  issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
3636
+ notificationChannels?: boolean | Prisma.Agent$notificationChannelsArgs<ExtArgs>;
3218
3637
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
3219
3638
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
3220
3639
  subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
@@ -3241,6 +3660,7 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
3241
3660
  repositories: Prisma.$AgentRepositoryPayload<ExtArgs>[];
3242
3661
  deferredReviews: Prisma.$DeferredReviewPayload<ExtArgs>[];
3243
3662
  issueProjects: Prisma.$AgentIssueProjectPayload<ExtArgs>[];
3663
+ notificationChannels: Prisma.$NotificationChannelPayload<ExtArgs>[];
3244
3664
  budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
3245
3665
  /**
3246
3666
  * Un-phased: sub-agent composition edges (see AgentSubAgent below). An
@@ -3256,6 +3676,10 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
3256
3676
  systemPrompt: string;
3257
3677
  model: string;
3258
3678
  budgetUsd: runtime.Decimal;
3679
+ /**
3680
+ * Percent above budgetUsd a run may spend: each coding run's limit, or (on a lead agent) its run tree's ceiling for coding sub-agents; native model calls are unaffected; group caps still apply.
3681
+ */
3682
+ allowedOverrunPercent: number;
3259
3683
  createdAt: Date;
3260
3684
  updatedAt: Date;
3261
3685
  kind: $Enums.AgentKind;
@@ -3295,6 +3719,13 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
3295
3719
  * Null = the provider's default.
3296
3720
  */
3297
3721
  effort: string | null;
3722
+ /**
3723
+ * Native agents only: where their runs execute. control-plane (default) =
3724
+ * in this server process (in-process or DBOS); sandbox = an isolated,
3725
+ * single-use worker container/pod. Each Run snapshots this at creation
3726
+ * (Run.nativeExecutionMode), so a change reaches only later runs.
3727
+ */
3728
+ nativeExecutionMode: $Enums.NativeExecutionMode;
3298
3729
  }, ExtArgs["result"]["agent"]>;
3299
3730
  composites: {};
3300
3731
  };
@@ -3634,6 +4065,7 @@ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Ty
3634
4065
  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
4066
  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>;
3636
4067
  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>;
4068
+ notificationChannels<T extends Prisma.Agent$notificationChannelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$notificationChannelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3637
4069
  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>;
3638
4070
  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>;
3639
4071
  subAgentEdgesAsChild<T extends Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -3667,6 +4099,7 @@ export interface AgentFieldRefs {
3667
4099
  readonly systemPrompt: Prisma.FieldRef<"Agent", 'String'>;
3668
4100
  readonly model: Prisma.FieldRef<"Agent", 'String'>;
3669
4101
  readonly budgetUsd: Prisma.FieldRef<"Agent", 'Decimal'>;
4102
+ readonly allowedOverrunPercent: Prisma.FieldRef<"Agent", 'Int'>;
3670
4103
  readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'>;
3671
4104
  readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'>;
3672
4105
  readonly kind: Prisma.FieldRef<"Agent", 'AgentKind'>;
@@ -3683,6 +4116,7 @@ export interface AgentFieldRefs {
3683
4116
  readonly budgetGroupId: Prisma.FieldRef<"Agent", 'String'>;
3684
4117
  readonly memoryEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
3685
4118
  readonly effort: Prisma.FieldRef<"Agent", 'String'>;
4119
+ readonly nativeExecutionMode: Prisma.FieldRef<"Agent", 'NativeExecutionMode'>;
3686
4120
  }
3687
4121
  /**
3688
4122
  * Agent findUnique
@@ -4286,6 +4720,29 @@ export type Agent$issueProjectsArgs<ExtArgs extends runtime.Types.Extensions.Int
4286
4720
  skip?: number;
4287
4721
  distinct?: Prisma.AgentIssueProjectScalarFieldEnum | Prisma.AgentIssueProjectScalarFieldEnum[];
4288
4722
  };
4723
+ /**
4724
+ * Agent.notificationChannels
4725
+ */
4726
+ export type Agent$notificationChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4727
+ /**
4728
+ * Select specific fields to fetch from the NotificationChannel
4729
+ */
4730
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
4731
+ /**
4732
+ * Omit specific fields from the NotificationChannel
4733
+ */
4734
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
4735
+ /**
4736
+ * Choose, which related nodes to fetch as well
4737
+ */
4738
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
4739
+ where?: Prisma.NotificationChannelWhereInput;
4740
+ orderBy?: Prisma.NotificationChannelOrderByWithRelationInput | Prisma.NotificationChannelOrderByWithRelationInput[];
4741
+ cursor?: Prisma.NotificationChannelWhereUniqueInput;
4742
+ take?: number;
4743
+ skip?: number;
4744
+ distinct?: Prisma.NotificationChannelScalarFieldEnum | Prisma.NotificationChannelScalarFieldEnum[];
4745
+ };
4289
4746
  /**
4290
4747
  * Agent.budgetGroup
4291
4748
  */