@wardby/cli 0.6.0 → 0.8.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 (740) hide show
  1. package/.env.example +5 -5
  2. package/README.md +6 -1
  3. package/deploy/local/docker-compose.quickstart-coding.yml +19 -0
  4. package/dist/claude-coding-worker/driver.d.ts +33 -3
  5. package/dist/claude-coding-worker/driver.js +151 -21
  6. package/dist/claude-coding-worker/main.js +38 -6
  7. package/dist/claude-coding-worker/sdk.js +29 -2
  8. package/dist/claude-coding-worker/tool-socket.d.ts +27 -0
  9. package/dist/claude-coding-worker/tool-socket.js +111 -0
  10. package/dist/claude-coding-worker/transcript.d.ts +18 -0
  11. package/dist/claude-coding-worker/transcript.js +77 -0
  12. package/dist/claude-plugin/command.d.ts +61 -0
  13. package/dist/claude-plugin/command.js +376 -0
  14. package/dist/cli-help.d.ts +1 -1
  15. package/dist/cli-help.js +3 -1
  16. package/dist/cli.js +71 -13
  17. package/dist/coding/code-host.d.ts +16 -0
  18. package/dist/coding/code-host.js +60 -0
  19. package/dist/coding/continuation-wording.d.ts +35 -0
  20. package/dist/coding/continuation-wording.js +73 -0
  21. package/dist/coding/linked-issue-note.d.ts +23 -0
  22. package/dist/coding/linked-issue-note.js +47 -0
  23. package/dist/coding/mcp-token.d.ts +12 -0
  24. package/dist/coding/mcp-token.js +26 -0
  25. package/dist/coding/merge-wording.d.ts +28 -0
  26. package/dist/coding/merge-wording.js +78 -0
  27. package/dist/coding/pr-description-note.d.ts +9 -0
  28. package/dist/coding/pr-description-note.js +32 -0
  29. package/dist/coding/profile.d.ts +46 -126
  30. package/dist/coding/profile.js +45 -4
  31. package/dist/coding/protected-path-wording.d.ts +8 -0
  32. package/dist/coding/protected-path-wording.js +1 -1
  33. package/dist/coding/protocol.d.ts +264 -346
  34. package/dist/coding/protocol.js +237 -12
  35. package/dist/coding/redact.d.ts +3 -0
  36. package/dist/coding/redact.js +17 -0
  37. package/dist/coding/registry/allowlist.d.ts +12 -0
  38. package/dist/coding/registry/allowlist.js +14 -1
  39. package/dist/coding/registry/audit-mode.d.ts +153 -0
  40. package/dist/coding/registry/audit-mode.js +304 -0
  41. package/dist/coding/registry/lockfile-shared.d.ts +36 -0
  42. package/dist/coding/registry/lockfile-shared.js +128 -0
  43. package/dist/coding/registry/lockfiles.js +1 -1
  44. package/dist/coding/registry/npm-lockfile-formats.d.ts +11 -0
  45. package/dist/coding/registry/npm-lockfile-formats.js +41 -0
  46. package/dist/coding/registry/npm-lockfile.d.ts +8 -4
  47. package/dist/coding/registry/npm-lockfile.js +4 -6
  48. package/dist/coding/registry/npm.js +78 -8
  49. package/dist/coding/registry/pnpm-lockfile.d.ts +17 -0
  50. package/dist/coding/registry/pnpm-lockfile.js +189 -0
  51. package/dist/coding/registry/pypi-plan.d.ts +50 -0
  52. package/dist/coding/registry/pypi-plan.js +406 -0
  53. package/dist/coding/registry/pypi-requirements.d.ts +58 -0
  54. package/dist/coding/registry/pypi-requirements.js +155 -0
  55. package/dist/coding/registry/pypi.d.ts +3 -27
  56. package/dist/coding/registry/pypi.js +40 -154
  57. package/dist/coding/registry/refusal-hints.d.ts +20 -0
  58. package/dist/coding/registry/refusal-hints.js +61 -0
  59. package/dist/coding/registry/refusal-wording.d.ts +11 -0
  60. package/dist/coding/registry/refusal-wording.js +56 -0
  61. package/dist/coding/registry/report.d.ts +70 -8
  62. package/dist/coding/registry/report.js +112 -5
  63. package/dist/coding/registry/types.d.ts +58 -8
  64. package/dist/coding/registry/yarn-lockfile.d.ts +30 -0
  65. package/dist/coding/registry/yarn-lockfile.js +367 -0
  66. package/dist/coding/services/catalog.d.ts +37 -351
  67. package/dist/coding/transcript/claude-code.d.ts +13 -0
  68. package/dist/coding/transcript/claude-code.js +273 -0
  69. package/dist/coding/transcript/download-protocol.d.ts +30 -0
  70. package/dist/coding/transcript/download-protocol.js +18 -0
  71. package/dist/coding/transcript/format.d.ts +20 -0
  72. package/dist/coding/transcript/format.js +32 -0
  73. package/dist/coding/transcript/recorder.d.ts +52 -0
  74. package/dist/coding/transcript/recorder.js +225 -0
  75. package/dist/coding/transcript/resume/checkout.d.ts +31 -0
  76. package/dist/coding/transcript/resume/checkout.js +203 -0
  77. package/dist/coding/transcript/resume/command.d.ts +17 -0
  78. package/dist/coding/transcript/resume/command.js +176 -0
  79. package/dist/coding/transcript/resume/download.d.ts +20 -0
  80. package/dist/coding/transcript/resume/download.js +153 -0
  81. package/dist/coding/transcript/resume/launch.d.ts +38 -0
  82. package/dist/coding/transcript/resume/launch.js +128 -0
  83. package/dist/coding/transcript/resume/session-file.d.ts +13 -0
  84. package/dist/coding/transcript/resume/session-file.js +79 -0
  85. package/dist/coding/transcript/resume/stand-in.d.ts +11 -0
  86. package/dist/coding/transcript/resume/stand-in.js +49 -0
  87. package/dist/coding-worker/artifact.d.ts +8 -3
  88. package/dist/coding-worker/artifact.js +3 -1
  89. package/dist/coding-worker/debug-trace.d.ts +9 -6
  90. package/dist/coding-worker/debug-trace.js +16 -19
  91. package/dist/coding-worker/dependency-cache.d.mts +229 -0
  92. package/dist/coding-worker/dependency-cache.mjs +2123 -0
  93. package/dist/coding-worker/driver.d.ts +4 -3
  94. package/dist/coding-worker/driver.js +124 -39
  95. package/dist/coding-worker/errors.d.ts +1 -0
  96. package/dist/coding-worker/errors.js +32 -0
  97. package/dist/coding-worker/main.js +5 -1
  98. package/dist/coding-worker/mcp-config.d.ts +27 -0
  99. package/dist/coding-worker/mcp-config.js +32 -0
  100. package/dist/coding-worker/sdk.d.ts +36 -0
  101. package/dist/coding-worker/sdk.js +28 -1
  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 +15 -0
  105. package/dist/config/dependency-cache.d.ts +23 -0
  106. package/dist/config/dependency-cache.js +32 -0
  107. package/dist/config/mcp-call-limit.d.ts +8 -0
  108. package/dist/config/mcp-call-limit.js +18 -0
  109. package/dist/config/mcp-servers.d.ts +8 -0
  110. package/dist/config/mcp-servers.js +12 -0
  111. package/dist/config/providers.d.ts +12 -3
  112. package/dist/config/providers.js +55 -5
  113. package/dist/config/test-simulators.d.ts +92 -0
  114. package/dist/config/test-simulators.js +333 -0
  115. package/dist/config/tool-timeout.d.ts +1 -0
  116. package/dist/config/tool-timeout.js +18 -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-mcp.d.ts +36 -0
  130. package/dist/core/coding-mcp.js +253 -0
  131. package/dist/core/coding-queue.d.ts +2 -1
  132. package/dist/core/coding-queue.js +7 -0
  133. package/dist/core/coding-repository.d.ts +46 -0
  134. package/dist/core/coding-repository.js +92 -0
  135. package/dist/core/cron.d.ts +19 -1
  136. package/dist/core/cron.js +17 -0
  137. package/dist/core/datastores.js +1 -1
  138. package/dist/core/deferred-coding.d.ts +14 -0
  139. package/dist/core/deferred-coding.js +62 -0
  140. package/dist/core/delegation-child.d.ts +25 -0
  141. package/dist/core/delegation-child.js +37 -0
  142. package/dist/core/delegation-slots.d.ts +27 -0
  143. package/dist/core/delegation-slots.js +44 -0
  144. package/dist/core/dispatch.d.ts +48 -2
  145. package/dist/core/dispatch.js +166 -66
  146. package/dist/core/engine-native.js +1 -1
  147. package/dist/core/error-code.d.ts +38 -0
  148. package/dist/core/error-code.js +169 -0
  149. package/dist/core/grants.d.ts +46 -8
  150. package/dist/core/grants.js +99 -8
  151. package/dist/core/host-events.d.ts +18 -2
  152. package/dist/core/host-events.js +291 -27
  153. package/dist/core/host-status.d.ts +85 -3
  154. package/dist/core/host-status.js +300 -22
  155. package/dist/core/issue-bridge.d.ts +50 -6
  156. package/dist/core/issue-bridge.js +124 -33
  157. package/dist/core/issue-events.d.ts +1 -1
  158. package/dist/core/issue-events.js +4 -10
  159. package/dist/core/issue-status.d.ts +1 -1
  160. package/dist/core/issue-status.js +58 -29
  161. package/dist/core/logger.d.ts +5 -0
  162. package/dist/core/logger.js +14 -1
  163. package/dist/core/lost-run-children.d.ts +6 -0
  164. package/dist/core/lost-run-children.js +32 -0
  165. package/dist/core/mark-ready.d.ts +34 -0
  166. package/dist/core/mark-ready.js +152 -0
  167. package/dist/core/markdown-code.d.ts +8 -0
  168. package/dist/core/markdown-code.js +107 -0
  169. package/dist/core/mcp-client/client.d.ts +47 -0
  170. package/dist/core/mcp-client/client.js +141 -0
  171. package/dist/core/mcp-client/jsonrpc.d.ts +15 -0
  172. package/dist/core/mcp-client/jsonrpc.js +54 -0
  173. package/dist/core/mcp-client/results.d.ts +13 -0
  174. package/dist/core/mcp-client/results.js +42 -0
  175. package/dist/core/mcp-servers.d.ts +90 -0
  176. package/dist/core/mcp-servers.js +230 -0
  177. package/dist/core/mcp-tools.d.ts +108 -0
  178. package/dist/core/mcp-tools.js +287 -0
  179. package/dist/core/memory-tools.js +7 -0
  180. package/dist/core/merge-order-check.d.ts +2 -1
  181. package/dist/core/merge-order-check.js +44 -18
  182. package/dist/core/notification-dispatcher.js +2 -1
  183. package/dist/core/notification-templates.d.ts +1 -7
  184. package/dist/core/notification-templates.js +36 -2
  185. package/dist/core/pull-request-state-sync.js +2 -2
  186. package/dist/core/reconciler.d.ts +4 -3
  187. package/dist/core/reconciler.js +8 -1
  188. package/dist/core/related-pull-requests.d.ts +11 -3
  189. package/dist/core/related-pull-requests.js +49 -20
  190. package/dist/core/reply-parts.d.ts +21 -0
  191. package/dist/core/reply-parts.js +73 -0
  192. package/dist/core/review-fix.d.ts +1 -1
  193. package/dist/core/review-fix.js +4 -3
  194. package/dist/core/review-host-checks.d.ts +1 -1
  195. package/dist/core/review-host-tools.d.ts +3 -0
  196. package/dist/core/review-host-tools.js +102 -14
  197. package/dist/core/review-reads.d.ts +55 -0
  198. package/dist/core/review-reads.js +233 -0
  199. package/dist/core/run-status.d.ts +12 -0
  200. package/dist/core/run-status.js +12 -0
  201. package/dist/core/runner.d.ts +145 -49
  202. package/dist/core/runner.js +719 -216
  203. package/dist/core/schedule-start.d.ts +12 -0
  204. package/dist/core/schedule-start.js +14 -0
  205. package/dist/core/secret-broker-config.d.ts +12 -74
  206. package/dist/core/secret-broker-config.js +1 -1
  207. package/dist/core/secret-guard.d.ts +49 -0
  208. package/dist/core/secret-guard.js +119 -0
  209. package/dist/core/secret-guarded-stores.d.ts +12 -0
  210. package/dist/core/secret-guarded-stores.js +41 -0
  211. package/dist/core/secret-spans.d.ts +50 -0
  212. package/dist/core/secret-spans.js +94 -0
  213. package/dist/core/secrets.d.ts +11 -1
  214. package/dist/core/secrets.js +27 -1
  215. package/dist/core/serializable-retry.d.ts +18 -0
  216. package/dist/core/serializable-retry.js +43 -0
  217. package/dist/core/stop-run.d.ts +46 -0
  218. package/dist/core/stop-run.js +61 -0
  219. package/dist/core/tool-admin.d.ts +5 -1
  220. package/dist/core/tool-admin.js +7 -2
  221. package/dist/core/tool-names.d.ts +13 -0
  222. package/dist/core/tool-names.js +20 -0
  223. package/dist/core/webhooks.d.ts +4 -0
  224. package/dist/core/webhooks.js +68 -49
  225. package/dist/core/workflow-events.d.ts +14 -2
  226. package/dist/core/workflow-events.js +4 -0
  227. package/dist/core/workflow-run-events.d.ts +5 -3
  228. package/dist/core/workflow-run-events.js +45 -9
  229. package/dist/core/zod-json-schema.d.ts +4 -0
  230. package/dist/core/zod-json-schema.js +39 -0
  231. package/dist/core/zod3-window.d.ts +35 -0
  232. package/dist/core/zod3-window.js +124 -0
  233. package/dist/generated/prisma/browser.d.ts +65 -3
  234. package/dist/generated/prisma/client.d.ts +65 -3
  235. package/dist/generated/prisma/commonInputTypes.d.ts +266 -106
  236. package/dist/generated/prisma/enums.d.ts +10 -0
  237. package/dist/generated/prisma/enums.js +8 -0
  238. package/dist/generated/prisma/internal/class.d.ts +110 -0
  239. package/dist/generated/prisma/internal/class.js +4 -4
  240. package/dist/generated/prisma/internal/prismaNamespace.d.ts +957 -9
  241. package/dist/generated/prisma/internal/prismaNamespace.js +166 -2
  242. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +174 -0
  243. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +166 -2
  244. package/dist/generated/prisma/models/Agent.d.ts +377 -8
  245. package/dist/generated/prisma/models/AgentMcpServer.d.ts +1412 -0
  246. package/dist/generated/prisma/models/AgentMcpServer.js +1 -0
  247. package/dist/generated/prisma/models/AgentRepository.d.ts +81 -1
  248. package/dist/generated/prisma/models/AuthUser.d.ts +1 -1
  249. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +228 -7
  250. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +207 -3
  251. package/dist/generated/prisma/models/CodingProxySession.d.ts +232 -2
  252. package/dist/generated/prisma/models/CodingRun.d.ts +1712 -1
  253. package/dist/generated/prisma/models/DependencySnapshot.d.ts +1668 -0
  254. package/dist/generated/prisma/models/DependencySnapshot.js +1 -0
  255. package/dist/generated/prisma/models/HostProvider.d.ts +2176 -0
  256. package/dist/generated/prisma/models/HostProvider.js +1 -0
  257. package/dist/generated/prisma/models/HostProviderCredential.d.ts +1285 -0
  258. package/dist/generated/prisma/models/HostProviderCredential.js +1 -0
  259. package/dist/generated/prisma/models/HostProviderOperation.d.ts +1470 -0
  260. package/dist/generated/prisma/models/HostProviderOperation.js +1 -0
  261. package/dist/generated/prisma/models/HostProviderTrustedAccount.d.ts +1145 -0
  262. package/dist/generated/prisma/models/HostProviderTrustedAccount.js +1 -0
  263. package/dist/generated/prisma/models/IssuePullRequest.d.ts +6 -2
  264. package/dist/generated/prisma/models/LocalReview.d.ts +40 -1
  265. package/dist/generated/prisma/models/McpServer.d.ts +1500 -0
  266. package/dist/generated/prisma/models/McpServer.js +1 -0
  267. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +77 -1
  268. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +35 -1
  269. package/dist/generated/prisma/models/Principal.d.ts +167 -0
  270. package/dist/generated/prisma/models/RegistryAllowance.d.ts +41 -1
  271. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +75 -1
  272. package/dist/generated/prisma/models/RegistryAuditRecord.d.ts +1364 -0
  273. package/dist/generated/prisma/models/RegistryAuditRecord.js +1 -0
  274. package/dist/generated/prisma/models/ResourceGrant.d.ts +1 -1
  275. package/dist/generated/prisma/models/Run.d.ts +738 -2
  276. package/dist/generated/prisma/models/RunBudgetEvent.d.ts +1211 -0
  277. package/dist/generated/prisma/models/RunBudgetEvent.js +1 -0
  278. package/dist/generated/prisma/models/RunTranscript.d.ts +1339 -0
  279. package/dist/generated/prisma/models/RunTranscript.js +1 -0
  280. package/dist/generated/prisma/models/Secret.d.ts +387 -0
  281. package/dist/generated/prisma/models/Tool.d.ts +223 -1
  282. package/dist/generated/prisma/models.d.ts +10 -0
  283. package/dist/help/search.js +12 -3
  284. package/dist/help-index.json +2033 -110
  285. package/dist/import/create.js +48 -4
  286. package/dist/import/neutral-schema.d.ts +51 -281
  287. package/dist/import/neutral-schema.js +7 -4
  288. package/dist/knowledge/check.d.ts +1 -1
  289. package/dist/knowledge/cli.d.ts +11 -1
  290. package/dist/knowledge/cli.js +37 -4
  291. package/dist/knowledge/concept.d.ts +3 -19
  292. package/dist/knowledge/location.d.ts +31 -0
  293. package/dist/knowledge/location.js +78 -0
  294. package/dist/mcp/auth/access.d.ts +10 -2
  295. package/dist/mcp/auth/access.js +15 -1
  296. package/dist/mcp/auth/grants-cli.d.ts +6 -4
  297. package/dist/mcp/auth/grants-cli.js +42 -3
  298. package/dist/mcp/auth/ownership.d.ts +7 -7
  299. package/dist/mcp/auth/resource-server.d.ts +3 -1
  300. package/dist/mcp/auth/resource-server.js +17 -2
  301. package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
  302. package/dist/mcp/auth/self-hosted/session.d.ts +2 -2
  303. package/dist/mcp/context.d.ts +3 -0
  304. package/dist/mcp/host-events/github-ingress.d.ts +2 -0
  305. package/dist/mcp/host-events/github-ingress.js +2 -1
  306. package/dist/mcp/index.d.ts +6 -0
  307. package/dist/mcp/index.js +69 -10
  308. package/dist/mcp/server.d.ts +13 -0
  309. package/dist/mcp/server.js +33 -14
  310. package/dist/mcp/tools/agents.d.ts +4 -0
  311. package/dist/mcp/tools/agents.js +295 -28
  312. package/dist/mcp/tools/datastore.js +17 -8
  313. package/dist/mcp/tools/grants.js +73 -29
  314. package/dist/mcp/tools/host-providers.d.ts +2 -0
  315. package/dist/mcp/tools/host-providers.js +215 -0
  316. package/dist/mcp/tools/mcp-servers.d.ts +26 -0
  317. package/dist/mcp/tools/mcp-servers.js +481 -0
  318. package/dist/mcp/tools/memory.js +11 -1
  319. package/dist/mcp/tools/notification-channels.js +2 -2
  320. package/dist/mcp/tools/packages.d.ts +2 -0
  321. package/dist/mcp/tools/packages.js +195 -0
  322. package/dist/mcp/tools/repositories.js +65 -12
  323. package/dist/mcp/tools/run-access.d.ts +16 -0
  324. package/dist/mcp/tools/run-access.js +25 -0
  325. package/dist/mcp/tools/run-transcript-download.d.ts +30 -0
  326. package/dist/mcp/tools/run-transcript-download.js +129 -0
  327. package/dist/mcp/tools/run-transcript.d.ts +19 -0
  328. package/dist/mcp/tools/run-transcript.js +70 -0
  329. package/dist/mcp/tools/runs.js +209 -27
  330. package/dist/mcp/tools/scheduling.js +3 -1
  331. package/dist/mcp/tools/secret-elicitation-form.js +5 -0
  332. package/dist/mcp/tools/secret-elicitation-server.d.ts +6 -0
  333. package/dist/mcp/tools/secret-elicitation-server.js +10 -61
  334. package/dist/mcp/tools/secret-elicitation.d.ts +2 -0
  335. package/dist/mcp/tools/secret-elicitation.js +25 -2
  336. package/dist/mcp/tools/secrets.js +40 -6
  337. package/dist/mcp/tools/stop-run.d.ts +2 -0
  338. package/dist/mcp/tools/stop-run.js +82 -0
  339. package/dist/mcp/tools/subagents.js +2 -2
  340. package/dist/mcp/tools/tools.d.ts +7 -5
  341. package/dist/mcp/tools/tools.js +64 -16
  342. package/dist/mcp/tools/trigger.js +28 -6
  343. package/dist/mcp/transport/http-limits.d.ts +2 -0
  344. package/dist/mcp/transport/http-limits.js +6 -2
  345. package/dist/mcp/transport/stdio-link-host.d.ts +20 -0
  346. package/dist/mcp/transport/stdio-link-host.js +67 -0
  347. package/dist/mcp/transport/streamable-http.d.ts +13 -0
  348. package/dist/mcp/transport/streamable-http.js +41 -1
  349. package/dist/mcp/webhooks/ingress.js +10 -0
  350. package/dist/native-worker/docker-launcher.d.ts +38 -2
  351. package/dist/native-worker/docker-launcher.js +65 -5
  352. package/dist/native-worker/gateway-server.d.ts +55 -3
  353. package/dist/native-worker/gateway-server.js +152 -34
  354. package/dist/native-worker/gateway.d.ts +29 -1
  355. package/dist/native-worker/gateway.js +74 -4
  356. package/dist/native-worker/http-server.d.ts +7 -1
  357. package/dist/native-worker/http-server.js +62 -7
  358. package/dist/native-worker/http-transport.js +1 -1
  359. package/dist/native-worker/kubernetes-launcher.d.ts +7 -3
  360. package/dist/native-worker/kubernetes-launcher.js +43 -3
  361. package/dist/native-worker/launch.d.ts +18 -1
  362. package/dist/native-worker/launch.js +6 -1
  363. package/dist/native-worker/ledger.d.ts +24 -4
  364. package/dist/native-worker/ledger.js +62 -8
  365. package/dist/native-worker/loopback.js +3 -8
  366. package/dist/native-worker/main.d.ts +2 -1
  367. package/dist/native-worker/main.js +14 -3
  368. package/dist/native-worker/protocol.d.ts +130 -577
  369. package/dist/native-worker/protocol.js +51 -2
  370. package/dist/native-worker/sandbox-executor.d.ts +17 -2
  371. package/dist/native-worker/sandbox-executor.js +78 -4
  372. package/dist/native-worker/stderr-redaction.d.ts +77 -0
  373. package/dist/native-worker/stderr-redaction.js +237 -0
  374. package/dist/native-worker/stdio.d.ts +1 -1
  375. package/dist/native-worker/stdio.js +6 -5
  376. package/dist/native-worker/warm-pool.d.ts +2 -2
  377. package/dist/native-worker/warm-pool.js +4 -4
  378. package/dist/native-worker/worker.js +28 -2
  379. package/dist/observability/metrics.js +6 -1
  380. package/dist/providers/auth/self-hosted.d.ts +1 -1
  381. package/dist/providers/coding-proxy/capability-hash.d.ts +2 -0
  382. package/dist/providers/coding-proxy/capability-hash.js +5 -0
  383. package/dist/providers/coding-proxy/dependency-cache/eviction.d.ts +29 -0
  384. package/dist/providers/coding-proxy/dependency-cache/eviction.js +87 -0
  385. package/dist/providers/coding-proxy/dependency-cache/key.d.ts +33 -0
  386. package/dist/providers/coding-proxy/dependency-cache/key.js +86 -0
  387. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.d.ts +18 -0
  388. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.js +40 -0
  389. package/dist/providers/coding-proxy/dependency-cache/prisma-store.d.ts +25 -0
  390. package/dist/providers/coding-proxy/dependency-cache/prisma-store.js +131 -0
  391. package/dist/providers/coding-proxy/dependency-cache/service.d.ts +70 -0
  392. package/dist/providers/coding-proxy/dependency-cache/service.js +409 -0
  393. package/dist/providers/coding-proxy/dependency-cache/store.d.ts +85 -0
  394. package/dist/providers/coding-proxy/dependency-cache/store.js +95 -0
  395. package/dist/providers/coding-proxy/hold.d.ts +32 -0
  396. package/dist/providers/coding-proxy/hold.js +86 -0
  397. package/dist/providers/coding-proxy/interrupted.d.ts +70 -0
  398. package/dist/providers/coding-proxy/interrupted.js +104 -0
  399. package/dist/providers/coding-proxy/mcp-route.d.ts +34 -0
  400. package/dist/providers/coding-proxy/mcp-route.js +166 -0
  401. package/dist/providers/coding-proxy/memory-ledger.d.ts +17 -2
  402. package/dist/providers/coding-proxy/memory-ledger.js +99 -8
  403. package/dist/providers/coding-proxy/metering.d.ts +16 -0
  404. package/dist/providers/coding-proxy/metering.js +27 -4
  405. package/dist/providers/coding-proxy/prisma-ledger.d.ts +16 -2
  406. package/dist/providers/coding-proxy/prisma-ledger.js +209 -69
  407. package/dist/providers/coding-proxy/proxy.d.ts +21 -2
  408. package/dist/providers/coding-proxy/proxy.js +300 -48
  409. package/dist/providers/coding-proxy/registry/audit.d.ts +53 -10
  410. package/dist/providers/coding-proxy/registry/audit.js +94 -17
  411. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.d.ts +36 -0
  412. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.js +67 -0
  413. package/dist/providers/coding-proxy/registry/lockfile-parse.d.ts +16 -0
  414. package/dist/providers/coding-proxy/registry/lockfile-parse.js +110 -0
  415. package/dist/providers/coding-proxy/registry/plan.d.ts +9 -0
  416. package/dist/providers/coding-proxy/registry/plan.js +201 -48
  417. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +11 -5
  418. package/dist/providers/coding-proxy/registry/prisma-store.js +120 -17
  419. package/dist/providers/coding-proxy/registry/service.d.ts +97 -16
  420. package/dist/providers/coding-proxy/registry/service.js +579 -112
  421. package/dist/providers/coding-proxy/registry/store.d.ts +84 -9
  422. package/dist/providers/coding-proxy/registry/store.js +54 -1
  423. package/dist/providers/coding-proxy/runtime.d.ts +10 -0
  424. package/dist/providers/coding-proxy/runtime.js +109 -16
  425. package/dist/providers/coding-proxy/server.d.ts +9 -1
  426. package/dist/providers/coding-proxy/server.js +55 -1
  427. package/dist/providers/coding-proxy/types.d.ts +78 -1
  428. package/dist/providers/datastore/types.d.ts +5 -0
  429. package/dist/providers/engine/types.d.ts +17 -2
  430. package/dist/providers/engine/types.js +17 -0
  431. package/dist/providers/executor/composition.d.ts +10 -3
  432. package/dist/providers/executor/composition.js +52 -7
  433. package/dist/providers/executor/container.d.ts +394 -9
  434. package/dist/providers/executor/container.js +1210 -96
  435. package/dist/providers/executor/dbos-status.d.ts +31 -0
  436. package/dist/providers/executor/dbos-status.js +64 -0
  437. package/dist/providers/executor/dbos.d.ts +50 -1
  438. package/dist/providers/executor/dbos.js +207 -20
  439. package/dist/providers/executor/deferred.d.ts +12 -24
  440. package/dist/providers/executor/deferred.js +10 -29
  441. package/dist/providers/executor/in-process.d.ts +9 -1
  442. package/dist/providers/executor/in-process.js +14 -4
  443. package/dist/providers/executor/linked-issue-reader.d.ts +16 -0
  444. package/dist/providers/executor/linked-issue-reader.js +30 -0
  445. package/dist/providers/executor/routing.d.ts +2 -0
  446. package/dist/providers/executor/routing.js +4 -0
  447. package/dist/providers/executor/types.d.ts +13 -0
  448. package/dist/providers/host-tools/invoke.d.ts +37 -0
  449. package/dist/providers/host-tools/invoke.js +117 -0
  450. package/dist/providers/host-tools/operations.d.ts +65 -0
  451. package/dist/providers/host-tools/operations.js +149 -0
  452. package/dist/providers/host-tools/registry.d.ts +79 -0
  453. package/dist/providers/host-tools/registry.js +362 -0
  454. package/dist/providers/host-tools/request-guard.d.ts +17 -0
  455. package/dist/providers/host-tools/request-guard.js +99 -0
  456. package/dist/providers/host-tools/self-test.d.ts +64 -0
  457. package/dist/providers/host-tools/self-test.js +142 -0
  458. package/dist/providers/index.d.ts +2 -1
  459. package/dist/providers/issue-tracker/types.d.ts +17 -0
  460. package/dist/providers/issue-tracker/types.js +39 -1
  461. package/dist/providers/jobs/claude-tool-setup.d.ts +4 -0
  462. package/dist/providers/jobs/claude-tool-setup.js +5 -2
  463. package/dist/providers/jobs/docker-isolation.d.ts +10 -2
  464. package/dist/providers/jobs/docker-isolation.js +47 -8
  465. package/dist/providers/jobs/docker.d.ts +9 -0
  466. package/dist/providers/jobs/docker.js +60 -11
  467. package/dist/providers/jobs/fake-kubernetes-api.d.ts +2 -0
  468. package/dist/providers/jobs/fake-kubernetes-api.js +3 -0
  469. package/dist/providers/jobs/kubernetes-api.d.ts +8 -0
  470. package/dist/providers/jobs/kubernetes-api.js +10 -0
  471. package/dist/providers/jobs/kubernetes-client.js +10 -1
  472. package/dist/providers/jobs/kubernetes-isolation.d.ts +5 -1
  473. package/dist/providers/jobs/kubernetes-isolation.js +32 -3
  474. package/dist/providers/jobs/kubernetes.d.ts +11 -1
  475. package/dist/providers/jobs/kubernetes.js +111 -17
  476. package/dist/providers/jobs/types.d.ts +39 -0
  477. package/dist/providers/jobs/types.js +13 -1
  478. package/dist/providers/llm/anthropic.js +5 -1
  479. package/dist/providers/llm/bedrock.d.ts +0 -12
  480. package/dist/providers/llm/bedrock.js +4 -0
  481. package/dist/providers/llm/claude-messages.d.ts +3 -1
  482. package/dist/providers/llm/claude-messages.js +4 -1
  483. package/dist/providers/llm/claude-provider.d.ts +2 -2
  484. package/dist/providers/llm/claude-provider.js +2 -2
  485. package/dist/providers/llm/openai.d.ts +2 -2
  486. package/dist/providers/llm/openai.js +6 -2
  487. package/dist/providers/llm/routing.d.ts +2 -2
  488. package/dist/providers/llm/routing.js +2 -2
  489. package/dist/providers/llm/types.d.ts +12 -2
  490. package/dist/providers/review-host/github-events.d.ts +9 -1
  491. package/dist/providers/review-host/github-events.js +34 -12
  492. package/dist/providers/review-host/github.d.ts +29 -2
  493. package/dist/providers/review-host/github.js +224 -29
  494. package/dist/providers/review-host/local.d.ts +8 -4
  495. package/dist/providers/review-host/local.js +49 -31
  496. package/dist/providers/review-host/patch-pages.d.ts +41 -0
  497. package/dist/providers/review-host/patch-pages.js +176 -0
  498. package/dist/providers/review-host/review-format.d.ts +19 -1
  499. package/dist/providers/review-host/review-format.js +38 -7
  500. package/dist/providers/review-host/types.d.ts +140 -6
  501. package/dist/providers/review-host/types.js +9 -1
  502. package/dist/providers/storage/gcs.d.ts +63 -0
  503. package/dist/providers/storage/gcs.js +69 -0
  504. package/dist/providers/storage/index.d.ts +15 -0
  505. package/dist/providers/storage/index.js +14 -0
  506. package/dist/providers/storage/local.d.ts +24 -0
  507. package/dist/providers/storage/local.js +92 -0
  508. package/dist/providers/storage/meter.d.ts +14 -0
  509. package/dist/providers/storage/meter.js +34 -0
  510. package/dist/providers/storage/s3.d.ts +41 -0
  511. package/dist/providers/storage/s3.js +107 -0
  512. package/dist/providers/storage/types.d.ts +37 -3
  513. package/dist/providers/storage/types.js +21 -4
  514. package/dist/providers/vcs/git.d.ts +39 -4
  515. package/dist/providers/vcs/git.js +339 -26
  516. package/dist/providers/vcs/github-remote.d.ts +26 -3
  517. package/dist/providers/vcs/github-remote.js +124 -14
  518. package/dist/providers/vcs/github.d.ts +183 -44
  519. package/dist/providers/vcs/github.js +455 -56
  520. package/dist/providers/vcs/index.d.ts +1 -1
  521. package/dist/providers/vcs/index.js +9 -2
  522. package/dist/providers/vcs/pr-description.d.ts +127 -0
  523. package/dist/providers/vcs/pr-description.js +270 -0
  524. package/dist/providers/vcs/remote.d.ts +37 -1
  525. package/dist/providers/vcs/remote.js +7 -1
  526. package/dist/providers/vcs/routing.d.ts +16 -8
  527. package/dist/providers/vcs/routing.js +27 -6
  528. package/dist/providers/vcs/types.d.ts +150 -5
  529. package/dist/quickstart/coding-seed.d.ts +14 -3
  530. package/dist/quickstart/coding-seed.js +213 -4
  531. package/dist/quickstart/index.d.ts +5 -0
  532. package/dist/quickstart/index.js +21 -0
  533. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  534. package/dist/quickstart/reviewer-prompt.js +6 -6
  535. package/dist/quickstart-images.json +1 -1
  536. package/dist/sandbox/eval-core.d.ts +12 -2
  537. package/dist/sandbox/eval-core.js +20 -4
  538. package/dist/sandbox/generated/zod.bundle.js +62 -1
  539. package/dist/sandbox/generated/zod3.bundle.js +5 -0
  540. package/dist/sandbox/host-functions.d.ts +5 -0
  541. package/dist/sandbox/host-functions.js +13 -13
  542. package/dist/sandbox/limits.d.ts +4 -1
  543. package/dist/sandbox/limits.js +4 -1
  544. package/dist/sandbox/run-in-sandbox.d.ts +6 -0
  545. package/dist/sandbox/run-in-sandbox.js +14 -2
  546. package/dist/sandbox/safe-fetch.d.ts +2 -0
  547. package/dist/sandbox/safe-fetch.js +1 -1
  548. package/dist/sandbox/secret-broker.d.ts +1 -0
  549. package/dist/sandbox/secret-broker.js +4 -5
  550. package/dist/sandbox/tool-capabilities.d.ts +10 -30
  551. package/dist/sandbox/tool-timeout.d.ts +32 -0
  552. package/dist/sandbox/tool-timeout.js +52 -0
  553. package/dist/sandbox/user-tool.d.ts +8 -1
  554. package/dist/sandbox/user-tool.js +9 -3
  555. package/dist/sandbox/zod-params.d.ts +37 -5
  556. package/dist/sandbox/zod-params.js +181 -26
  557. package/dist/serve.js +8 -1
  558. package/dist/viewer/api-schema.d.ts +349 -2627
  559. package/dist/viewer/api-schema.js +7 -0
  560. package/dist/viewer/build-schemas.js +6 -2
  561. package/dist/viewer/graph.js +2 -1
  562. package/dist/viewer/openapi.js +2 -4
  563. package/dist/wardby-bin.js +15 -0
  564. package/docs/README.md +11 -1
  565. package/docs/agent-recipes.md +95 -24
  566. package/docs/architecture-runtime.md +1 -1
  567. package/docs/claude-code-plugin.md +164 -0
  568. package/docs/code-review-agents.md +557 -41
  569. package/docs/coding-agent-setup.md +566 -8
  570. package/docs/coding-packages.md +1033 -90
  571. package/docs/coding-services.md +27 -12
  572. package/docs/coding-worker-byo-images.md +24 -2
  573. package/docs/coding-worker-isolation.md +183 -37
  574. package/docs/debugging-agent-runs.md +242 -0
  575. package/docs/getting-started-gke.md +129 -141
  576. package/docs/getting-started-identity-provider.md +53 -38
  577. package/docs/getting-started.md +17 -0
  578. package/docs/host-providers.md +294 -0
  579. package/docs/jira-agents.md +17 -8
  580. package/docs/knowledge/blob-not-found-semantics.md +41 -0
  581. package/docs/knowledge/bounded-file-descriptor.md +52 -0
  582. package/docs/knowledge/delegation-admission-slots.md +52 -0
  583. package/docs/knowledge/http-dispatcher-bootstrap.md +61 -0
  584. package/docs/knowledge/import-rename-target.md +52 -0
  585. package/docs/knowledge/index.md +57 -0
  586. package/docs/knowledge/log.md +9 -0
  587. package/docs/knowledge/mcp-cancelled-task-precedence.md +41 -0
  588. package/docs/knowledge/mcp-http-prompt-discovery.md +41 -0
  589. package/docs/knowledge/mcp-schema-module-boundary.md +41 -0
  590. package/docs/knowledge/nullable-tool-uniqueness.md +52 -0
  591. package/docs/knowledge/overview-cli.md +74 -0
  592. package/docs/knowledge/overview-coding-proxy.md +72 -0
  593. package/docs/knowledge/overview-coding.md +72 -0
  594. package/docs/knowledge/overview-config.md +60 -0
  595. package/docs/knowledge/overview-core.md +72 -0
  596. package/docs/knowledge/overview-deploy.md +83 -0
  597. package/docs/knowledge/overview-mcp.md +61 -0
  598. package/docs/knowledge/overview-prisma.md +72 -0
  599. package/docs/knowledge/overview-providers.md +89 -0
  600. package/docs/knowledge/overview-sandbox.md +83 -0
  601. package/docs/knowledge/overview-surfaces.md +83 -0
  602. package/docs/knowledge/private-datastore-shared-boundary.md +54 -0
  603. package/docs/knowledge/proxy-settlement-projections.md +41 -0
  604. package/docs/knowledge/run-pricing-first-writer.md +43 -0
  605. package/docs/knowledge/schedule-claim-transaction.md +41 -0
  606. package/docs/knowledge/secret-entry-replica-contract.md +52 -0
  607. package/docs/knowledge/terminal-run-first-writer.md +41 -0
  608. package/docs/knowledge/transactional-agent-authorization.md +52 -0
  609. package/docs/knowledge/viewer-notify-write-isolation.md +30 -0
  610. package/docs/knowledge/warm-input-publication.md +30 -0
  611. package/docs/knowledge/workspace-staging-failure.md +54 -0
  612. package/docs/knowledge.md +54 -14
  613. package/docs/mcp-servers.md +254 -0
  614. package/docs/native-sandbox.md +143 -31
  615. package/docs/observability.md +4 -0
  616. package/docs/security-deployment.md +139 -29
  617. package/docs/slack-notifications.md +35 -19
  618. package/docs/tool-secrets.md +45 -10
  619. package/docs/viewer-api.md +6 -0
  620. package/docs/viewer-api.openapi.yml +1 -1
  621. package/help/admin-viewer.md +28 -2
  622. package/help/agent-recipes.md +33 -2
  623. package/help/architecture-agent.md +11 -6
  624. package/help/brokered-secrets.md +3 -0
  625. package/help/build-claude-code-image.md +1 -1
  626. package/help/build-worker-image.md +3 -1
  627. package/help/builder-agent.md +19 -6
  628. package/help/claude-code-run-pane.md +40 -0
  629. package/help/code-review-agents.md +177 -6
  630. package/help/coding-packages.md +156 -6
  631. package/help/cost-attribution.md +9 -5
  632. package/help/creating-agents.md +14 -1
  633. package/help/dependency-cache.md +143 -0
  634. package/help/deploy-gke.md +15 -8
  635. package/help/errors/budget-exhausted.md +187 -0
  636. package/help/errors/budget-group-exhausted.md +5 -1
  637. package/help/errors/coding-mcp-pins-unavailable.md +35 -0
  638. package/help/errors/coding-stream-quota-exceeded.md +33 -0
  639. package/help/errors/coding-workspace-disk-exceeds-limit.md +39 -0
  640. package/help/errors/continuation-closed.md +9 -12
  641. package/help/errors/database-auth-invalid.md +1 -1
  642. package/help/errors/delegation-conflict.md +24 -0
  643. package/help/errors/file-list-truncated.md +45 -0
  644. package/help/errors/full-read-required.md +49 -0
  645. package/help/errors/github-account-not-allowed.md +4 -0
  646. package/help/errors/graph-incomplete.md +43 -0
  647. package/help/errors/graph-limit.md +43 -0
  648. package/help/errors/host-provider-error.md +40 -0
  649. package/help/errors/host-tool-failed.md +36 -0
  650. package/help/errors/mcp-call-limit.md +22 -0
  651. package/help/errors/mcp-call-timeout.md +22 -0
  652. package/help/errors/mcp-server-auth-failed.md +22 -0
  653. package/help/errors/mcp-server-credentials-unavailable.md +45 -0
  654. package/help/errors/mcp-server-error.md +28 -0
  655. package/help/errors/mcp-server-unreachable.md +22 -0
  656. package/help/errors/mcp-servers-off.md +21 -0
  657. package/help/errors/mcp-tool-not-allowed.md +26 -0
  658. package/help/errors/mcp-tool-removed.md +22 -0
  659. package/help/errors/mcp-unavailable.md +25 -0
  660. package/help/errors/merge-conflict.md +49 -0
  661. package/help/errors/native-sandbox-capacity.md +1 -1
  662. package/help/errors/native-sandbox-deadline-exceeded.md +1 -1
  663. package/help/errors/native-sandbox-docker-failed.md +1 -1
  664. package/help/errors/native-sandbox-gateway-error.md +20 -0
  665. package/help/errors/native-sandbox-gateway-unavailable.md +1 -1
  666. package/help/errors/native-sandbox-image-not-pinned.md +1 -1
  667. package/help/errors/native-sandbox-isolation-mismatch.md +1 -1
  668. package/help/errors/native-sandbox-launch-abandoned.md +21 -0
  669. package/help/errors/native-sandbox-network-unenforced.md +1 -1
  670. package/help/errors/native-sandbox-requires-catalog.md +1 -1
  671. package/help/errors/native-sandbox-unavailable.md +1 -1
  672. package/help/errors/native-sandbox-warm-delivery-failed.md +1 -1
  673. package/help/errors/native-sandbox-worker-exited.md +4 -3
  674. package/help/errors/native-sandbox-worker-lost.md +1 -1
  675. package/help/errors/native-sandbox-worker-unready.md +1 -1
  676. package/help/errors/package-not-allowed-pending.md +52 -0
  677. package/help/errors/package-not-allowed.md +51 -0
  678. package/help/errors/package-refusals.md +43 -0
  679. package/help/errors/patch-cursor-malformed.md +31 -0
  680. package/help/errors/repository-not-listed.md +36 -0
  681. package/help/errors/repository-required.md +36 -0
  682. package/help/errors/run-lost.md +39 -0
  683. package/help/errors/run-transcript-download.md +44 -0
  684. package/help/errors/secret-in-value.md +69 -0
  685. package/help/errors/target-merge.md +40 -0
  686. package/help/errors/tool-timeout.md +38 -0
  687. package/help/fix-merge-conflicts.md +73 -0
  688. package/help/github-app-setup.md +132 -0
  689. package/help/github.md +22 -0
  690. package/help/host-providers.md +40 -0
  691. package/help/identity-and-access.md +6 -1
  692. package/help/jira.md +23 -6
  693. package/help/knowledge.md +16 -7
  694. package/help/local-repositories.md +1 -1
  695. package/help/low-power-mode.md +7 -1
  696. package/help/mcp-servers.md +73 -0
  697. package/help/mcp.md +7 -2
  698. package/help/merge-order-check.md +5 -0
  699. package/help/native-capabilities.md +55 -1
  700. package/help/native-sandbox.md +16 -2
  701. package/help/operating-agents.md +21 -0
  702. package/help/package-audit-mode.md +91 -0
  703. package/help/related-pull-requests.md +17 -10
  704. package/help/repo-instructions-and-skills.md +3 -1
  705. package/help/resume-runs-locally.md +134 -0
  706. package/help/review-fix-rounds.md +33 -1
  707. package/help/sharing-agents.md +59 -0
  708. package/help/slack-notifications.md +19 -5
  709. package/help/status-comments.md +31 -0
  710. package/help/stop-run.md +58 -0
  711. package/help/troubleshooting/budgets.md +28 -0
  712. package/help/troubleshooting/coding-workers.md +86 -7
  713. package/help/troubleshooting/debugging-agent-runs.md +29 -0
  714. package/package.json +18 -10
  715. package/prisma/migrations/20261016000000_registry_approved_accepted_advisories/migration.sql +3 -0
  716. package/prisma/migrations/20261016000001_mark_ready_when_passing/migration.sql +3 -0
  717. package/prisma/migrations/20261017000000_debug_trace_max_mb/migration.sql +4 -0
  718. package/prisma/migrations/20261018000000_dependency_cache/migration.sql +53 -0
  719. package/prisma/migrations/20261019000000_claude_max_output_tokens/migration.sql +5 -0
  720. package/prisma/migrations/20261021000000_pr_description_hash/migration.sql +4 -0
  721. package/prisma/migrations/20261022000000_dependency_snapshot_validation_metadata/migration.sql +4 -0
  722. package/prisma/migrations/20261023000000_package_audit_mode/migration.sql +27 -0
  723. package/prisma/migrations/20261024000000_budget_events/migration.sql +26 -0
  724. package/prisma/migrations/20261025000000_cache_aware_holds/migration.sql +9 -0
  725. package/prisma/migrations/20261026000000_budget_overrun/migration.sql +4 -0
  726. package/prisma/migrations/20261027000000_coding_run_request/migration.sql +1 -0
  727. package/prisma/migrations/20261028000000_native_gateway_review_reads/migration.sql +6 -0
  728. package/prisma/migrations/20261029000000_lead_survives_deploy/migration.sql +6 -0
  729. package/prisma/migrations/20261030000000_local_review_covered_sha/migration.sql +2 -0
  730. package/prisma/migrations/20261031000000_coding_run_budget_limit/migration.sql +9 -0
  731. package/prisma/migrations/20261101000000_run_transcripts/migration.sql +22 -0
  732. package/prisma/migrations/20261102000000_host_providers/migration.sql +56 -0
  733. package/prisma/migrations/20261104000000_coding_agent_repository_list/migration.sql +5 -0
  734. package/prisma/migrations/20261106000000_tool_timeout/migration.sql +4 -0
  735. package/prisma/migrations/20261107000000_mcp_servers/migration.sql +33 -0
  736. package/prisma/migrations/20261108000000_coding_mcp/migration.sql +5 -0
  737. package/prisma/migrations/20261109000000_task_run_index/migration.sql +3 -0
  738. package/prisma/schema.prisma +468 -109
  739. package/scripts/git-askpass.sh +1 -1
  740. 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;
@@ -53,6 +56,7 @@ export type AgentMaxAggregateOutputType = {
53
56
  systemPrompt: string | null;
54
57
  model: string | null;
55
58
  budgetUsd: runtime.Decimal | null;
59
+ allowedOverrunPercent: number | null;
56
60
  createdAt: Date | null;
57
61
  updatedAt: Date | null;
58
62
  kind: $Enums.AgentKind | null;
@@ -77,6 +81,7 @@ export type AgentCountAggregateOutputType = {
77
81
  systemPrompt: number;
78
82
  model: number;
79
83
  budgetUsd: number;
84
+ allowedOverrunPercent: number;
80
85
  createdAt: number;
81
86
  updatedAt: number;
82
87
  kind: number;
@@ -98,11 +103,13 @@ export type AgentCountAggregateOutputType = {
98
103
  };
99
104
  export type AgentAvgAggregateInputType = {
100
105
  budgetUsd?: true;
106
+ allowedOverrunPercent?: true;
101
107
  maxTurns?: true;
102
108
  maxDelegationsPerRun?: true;
103
109
  };
104
110
  export type AgentSumAggregateInputType = {
105
111
  budgetUsd?: true;
112
+ allowedOverrunPercent?: true;
106
113
  maxTurns?: true;
107
114
  maxDelegationsPerRun?: true;
108
115
  };
@@ -112,6 +119,7 @@ export type AgentMinAggregateInputType = {
112
119
  systemPrompt?: true;
113
120
  model?: true;
114
121
  budgetUsd?: true;
122
+ allowedOverrunPercent?: true;
115
123
  createdAt?: true;
116
124
  updatedAt?: true;
117
125
  kind?: true;
@@ -136,6 +144,7 @@ export type AgentMaxAggregateInputType = {
136
144
  systemPrompt?: true;
137
145
  model?: true;
138
146
  budgetUsd?: true;
147
+ allowedOverrunPercent?: true;
139
148
  createdAt?: true;
140
149
  updatedAt?: true;
141
150
  kind?: true;
@@ -160,6 +169,7 @@ export type AgentCountAggregateInputType = {
160
169
  systemPrompt?: true;
161
170
  model?: true;
162
171
  budgetUsd?: true;
172
+ allowedOverrunPercent?: true;
163
173
  createdAt?: true;
164
174
  updatedAt?: true;
165
175
  kind?: true;
@@ -261,6 +271,7 @@ export type AgentGroupByOutputType = {
261
271
  systemPrompt: string;
262
272
  model: string;
263
273
  budgetUsd: runtime.Decimal;
274
+ allowedOverrunPercent: number;
264
275
  createdAt: Date;
265
276
  updatedAt: Date;
266
277
  kind: $Enums.AgentKind;
@@ -296,6 +307,7 @@ export type AgentWhereInput = {
296
307
  systemPrompt?: Prisma.StringFilter<"Agent"> | string;
297
308
  model?: Prisma.StringFilter<"Agent"> | string;
298
309
  budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
310
+ allowedOverrunPercent?: Prisma.IntFilter<"Agent"> | number;
299
311
  createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
300
312
  updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
301
313
  kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
@@ -323,6 +335,7 @@ export type AgentWhereInput = {
323
335
  repositories?: Prisma.AgentRepositoryListRelationFilter;
324
336
  deferredReviews?: Prisma.DeferredReviewListRelationFilter;
325
337
  issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
338
+ mcpServers?: Prisma.AgentMcpServerListRelationFilter;
326
339
  notificationChannels?: Prisma.NotificationChannelListRelationFilter;
327
340
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
328
341
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
@@ -334,6 +347,7 @@ export type AgentOrderByWithRelationInput = {
334
347
  systemPrompt?: Prisma.SortOrder;
335
348
  model?: Prisma.SortOrder;
336
349
  budgetUsd?: Prisma.SortOrder;
350
+ allowedOverrunPercent?: Prisma.SortOrder;
337
351
  createdAt?: Prisma.SortOrder;
338
352
  updatedAt?: Prisma.SortOrder;
339
353
  kind?: Prisma.SortOrder;
@@ -361,6 +375,7 @@ export type AgentOrderByWithRelationInput = {
361
375
  repositories?: Prisma.AgentRepositoryOrderByRelationAggregateInput;
362
376
  deferredReviews?: Prisma.DeferredReviewOrderByRelationAggregateInput;
363
377
  issueProjects?: Prisma.AgentIssueProjectOrderByRelationAggregateInput;
378
+ mcpServers?: Prisma.AgentMcpServerOrderByRelationAggregateInput;
364
379
  notificationChannels?: Prisma.NotificationChannelOrderByRelationAggregateInput;
365
380
  budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
366
381
  subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
@@ -375,6 +390,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
375
390
  systemPrompt?: Prisma.StringFilter<"Agent"> | string;
376
391
  model?: Prisma.StringFilter<"Agent"> | string;
377
392
  budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
393
+ allowedOverrunPercent?: Prisma.IntFilter<"Agent"> | number;
378
394
  createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
379
395
  updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
380
396
  kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
@@ -402,6 +418,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
402
418
  repositories?: Prisma.AgentRepositoryListRelationFilter;
403
419
  deferredReviews?: Prisma.DeferredReviewListRelationFilter;
404
420
  issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
421
+ mcpServers?: Prisma.AgentMcpServerListRelationFilter;
405
422
  notificationChannels?: Prisma.NotificationChannelListRelationFilter;
406
423
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
407
424
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
@@ -413,6 +430,7 @@ export type AgentOrderByWithAggregationInput = {
413
430
  systemPrompt?: Prisma.SortOrder;
414
431
  model?: Prisma.SortOrder;
415
432
  budgetUsd?: Prisma.SortOrder;
433
+ allowedOverrunPercent?: Prisma.SortOrder;
416
434
  createdAt?: Prisma.SortOrder;
417
435
  updatedAt?: Prisma.SortOrder;
418
436
  kind?: Prisma.SortOrder;
@@ -445,6 +463,7 @@ export type AgentScalarWhereWithAggregatesInput = {
445
463
  systemPrompt?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
446
464
  model?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
447
465
  budgetUsd?: Prisma.DecimalWithAggregatesFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
466
+ allowedOverrunPercent?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
448
467
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
449
468
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
450
469
  kind?: Prisma.EnumAgentKindWithAggregatesFilter<"Agent"> | $Enums.AgentKind;
@@ -469,6 +488,7 @@ export type AgentCreateInput = {
469
488
  systemPrompt: string;
470
489
  model: string;
471
490
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
491
+ allowedOverrunPercent?: number;
472
492
  createdAt?: Date | string;
473
493
  updatedAt?: Date | string;
474
494
  kind?: $Enums.AgentKind;
@@ -494,6 +514,7 @@ export type AgentCreateInput = {
494
514
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
495
515
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
496
516
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
517
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
497
518
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
498
519
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
499
520
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -505,6 +526,7 @@ export type AgentUncheckedCreateInput = {
505
526
  systemPrompt: string;
506
527
  model: string;
507
528
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
529
+ allowedOverrunPercent?: number;
508
530
  createdAt?: Date | string;
509
531
  updatedAt?: Date | string;
510
532
  kind?: $Enums.AgentKind;
@@ -531,6 +553,7 @@ export type AgentUncheckedCreateInput = {
531
553
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
532
554
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
533
555
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
556
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
534
557
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
535
558
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
536
559
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -541,6 +564,7 @@ export type AgentUpdateInput = {
541
564
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
542
565
  model?: Prisma.StringFieldUpdateOperationsInput | string;
543
566
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
567
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
544
568
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
545
569
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
546
570
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -566,6 +590,7 @@ export type AgentUpdateInput = {
566
590
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
567
591
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
568
592
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
593
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
569
594
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
570
595
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
571
596
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -577,6 +602,7 @@ export type AgentUncheckedUpdateInput = {
577
602
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
578
603
  model?: Prisma.StringFieldUpdateOperationsInput | string;
579
604
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
605
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
580
606
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
581
607
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
582
608
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -603,6 +629,7 @@ export type AgentUncheckedUpdateInput = {
603
629
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
604
630
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
605
631
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
632
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
606
633
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
607
634
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
608
635
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -613,6 +640,7 @@ export type AgentCreateManyInput = {
613
640
  systemPrompt: string;
614
641
  model: string;
615
642
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
643
+ allowedOverrunPercent?: number;
616
644
  createdAt?: Date | string;
617
645
  updatedAt?: Date | string;
618
646
  kind?: $Enums.AgentKind;
@@ -637,6 +665,7 @@ export type AgentUpdateManyMutationInput = {
637
665
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
638
666
  model?: Prisma.StringFieldUpdateOperationsInput | string;
639
667
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
668
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
640
669
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
641
670
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
642
671
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -659,6 +688,7 @@ export type AgentUncheckedUpdateManyInput = {
659
688
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
660
689
  model?: Prisma.StringFieldUpdateOperationsInput | string;
661
690
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
691
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
662
692
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
663
693
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
664
694
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -683,6 +713,7 @@ export type AgentCountOrderByAggregateInput = {
683
713
  systemPrompt?: Prisma.SortOrder;
684
714
  model?: Prisma.SortOrder;
685
715
  budgetUsd?: Prisma.SortOrder;
716
+ allowedOverrunPercent?: Prisma.SortOrder;
686
717
  createdAt?: Prisma.SortOrder;
687
718
  updatedAt?: Prisma.SortOrder;
688
719
  kind?: Prisma.SortOrder;
@@ -703,6 +734,7 @@ export type AgentCountOrderByAggregateInput = {
703
734
  };
704
735
  export type AgentAvgOrderByAggregateInput = {
705
736
  budgetUsd?: Prisma.SortOrder;
737
+ allowedOverrunPercent?: Prisma.SortOrder;
706
738
  maxTurns?: Prisma.SortOrder;
707
739
  maxDelegationsPerRun?: Prisma.SortOrder;
708
740
  };
@@ -712,6 +744,7 @@ export type AgentMaxOrderByAggregateInput = {
712
744
  systemPrompt?: Prisma.SortOrder;
713
745
  model?: Prisma.SortOrder;
714
746
  budgetUsd?: Prisma.SortOrder;
747
+ allowedOverrunPercent?: Prisma.SortOrder;
715
748
  createdAt?: Prisma.SortOrder;
716
749
  updatedAt?: Prisma.SortOrder;
717
750
  kind?: Prisma.SortOrder;
@@ -736,6 +769,7 @@ export type AgentMinOrderByAggregateInput = {
736
769
  systemPrompt?: Prisma.SortOrder;
737
770
  model?: Prisma.SortOrder;
738
771
  budgetUsd?: Prisma.SortOrder;
772
+ allowedOverrunPercent?: Prisma.SortOrder;
739
773
  createdAt?: Prisma.SortOrder;
740
774
  updatedAt?: Prisma.SortOrder;
741
775
  kind?: Prisma.SortOrder;
@@ -756,6 +790,7 @@ export type AgentMinOrderByAggregateInput = {
756
790
  };
757
791
  export type AgentSumOrderByAggregateInput = {
758
792
  budgetUsd?: Prisma.SortOrder;
793
+ allowedOverrunPercent?: Prisma.SortOrder;
759
794
  maxTurns?: Prisma.SortOrder;
760
795
  maxDelegationsPerRun?: Prisma.SortOrder;
761
796
  };
@@ -785,6 +820,13 @@ export type DecimalFieldUpdateOperationsInput = {
785
820
  multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string;
786
821
  divide?: runtime.Decimal | runtime.DecimalJsLike | number | string;
787
822
  };
823
+ export type IntFieldUpdateOperationsInput = {
824
+ set?: number;
825
+ increment?: number;
826
+ decrement?: number;
827
+ multiply?: number;
828
+ divide?: number;
829
+ };
788
830
  export type DateTimeFieldUpdateOperationsInput = {
789
831
  set?: Date | string;
790
832
  };
@@ -800,13 +842,6 @@ export type BoolFieldUpdateOperationsInput = {
800
842
  export type NullableDateTimeFieldUpdateOperationsInput = {
801
843
  set?: Date | string | null;
802
844
  };
803
- export type IntFieldUpdateOperationsInput = {
804
- set?: number;
805
- increment?: number;
806
- decrement?: number;
807
- multiply?: number;
808
- divide?: number;
809
- };
810
845
  export type EnumNativeExecutionModeFieldUpdateOperationsInput = {
811
846
  set?: $Enums.NativeExecutionMode;
812
847
  };
@@ -1018,6 +1053,18 @@ export type AgentUpdateOneRequiredWithoutIssueProjectsNestedInput = {
1018
1053
  connect?: Prisma.AgentWhereUniqueInput;
1019
1054
  update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutIssueProjectsInput, Prisma.AgentUpdateWithoutIssueProjectsInput>, Prisma.AgentUncheckedUpdateWithoutIssueProjectsInput>;
1020
1055
  };
1056
+ export type AgentCreateNestedOneWithoutMcpServersInput = {
1057
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>;
1058
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutMcpServersInput;
1059
+ connect?: Prisma.AgentWhereUniqueInput;
1060
+ };
1061
+ export type AgentUpdateOneRequiredWithoutMcpServersNestedInput = {
1062
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>;
1063
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutMcpServersInput;
1064
+ upsert?: Prisma.AgentUpsertWithoutMcpServersInput;
1065
+ connect?: Prisma.AgentWhereUniqueInput;
1066
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutMcpServersInput, Prisma.AgentUpdateWithoutMcpServersInput>, Prisma.AgentUncheckedUpdateWithoutMcpServersInput>;
1067
+ };
1021
1068
  export type AgentCreateNestedOneWithoutNotificationChannelsInput = {
1022
1069
  create?: Prisma.XOR<Prisma.AgentCreateWithoutNotificationChannelsInput, Prisma.AgentUncheckedCreateWithoutNotificationChannelsInput>;
1023
1070
  connectOrCreate?: Prisma.AgentCreateOrConnectWithoutNotificationChannelsInput;
@@ -1038,6 +1085,7 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
1038
1085
  systemPrompt: string;
1039
1086
  model: string;
1040
1087
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1088
+ allowedOverrunPercent?: number;
1041
1089
  createdAt?: Date | string;
1042
1090
  updatedAt?: Date | string;
1043
1091
  kind?: $Enums.AgentKind;
@@ -1063,6 +1111,7 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
1063
1111
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1064
1112
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1065
1113
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1114
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1066
1115
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1067
1116
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1068
1117
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1073,6 +1122,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
1073
1122
  systemPrompt: string;
1074
1123
  model: string;
1075
1124
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1125
+ allowedOverrunPercent?: number;
1076
1126
  createdAt?: Date | string;
1077
1127
  updatedAt?: Date | string;
1078
1128
  kind?: $Enums.AgentKind;
@@ -1099,6 +1149,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
1099
1149
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1100
1150
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1101
1151
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1152
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1102
1153
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1103
1154
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1104
1155
  };
@@ -1112,6 +1163,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
1112
1163
  systemPrompt: string;
1113
1164
  model: string;
1114
1165
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1166
+ allowedOverrunPercent?: number;
1115
1167
  createdAt?: Date | string;
1116
1168
  updatedAt?: Date | string;
1117
1169
  kind?: $Enums.AgentKind;
@@ -1137,6 +1189,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
1137
1189
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1138
1190
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1139
1191
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1192
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1140
1193
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1141
1194
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1142
1195
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1147,6 +1200,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1147
1200
  systemPrompt: string;
1148
1201
  model: string;
1149
1202
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1203
+ allowedOverrunPercent?: number;
1150
1204
  createdAt?: Date | string;
1151
1205
  updatedAt?: Date | string;
1152
1206
  kind?: $Enums.AgentKind;
@@ -1173,6 +1227,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
1173
1227
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1174
1228
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1175
1229
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1230
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1176
1231
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1177
1232
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1178
1233
  };
@@ -1195,6 +1250,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1195
1250
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1196
1251
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1197
1252
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1253
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1198
1254
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1199
1255
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1200
1256
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1220,6 +1276,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
1220
1276
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1221
1277
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1222
1278
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1279
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
1223
1280
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1224
1281
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1225
1282
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1230,6 +1287,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1230
1287
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1231
1288
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1232
1289
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1290
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1233
1291
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1234
1292
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1235
1293
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1256,6 +1314,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1256
1314
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1257
1315
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1258
1316
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1317
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
1259
1318
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1260
1319
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1261
1320
  };
@@ -1274,6 +1333,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1274
1333
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1275
1334
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1276
1335
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1336
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1277
1337
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1278
1338
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1279
1339
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1299,6 +1359,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1299
1359
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1300
1360
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1301
1361
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1362
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
1302
1363
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1303
1364
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1304
1365
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1309,6 +1370,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1309
1370
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1310
1371
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1311
1372
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1373
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1312
1374
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1313
1375
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1314
1376
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1335,6 +1397,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1335
1397
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1336
1398
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1337
1399
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1400
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
1338
1401
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1339
1402
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1340
1403
  };
@@ -1344,6 +1407,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1344
1407
  systemPrompt: string;
1345
1408
  model: string;
1346
1409
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1410
+ allowedOverrunPercent?: number;
1347
1411
  createdAt?: Date | string;
1348
1412
  updatedAt?: Date | string;
1349
1413
  kind?: $Enums.AgentKind;
@@ -1369,6 +1433,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1369
1433
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1370
1434
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1371
1435
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1436
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1372
1437
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1373
1438
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1374
1439
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1379,6 +1444,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1379
1444
  systemPrompt: string;
1380
1445
  model: string;
1381
1446
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1447
+ allowedOverrunPercent?: number;
1382
1448
  createdAt?: Date | string;
1383
1449
  updatedAt?: Date | string;
1384
1450
  kind?: $Enums.AgentKind;
@@ -1404,6 +1470,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1404
1470
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1405
1471
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1406
1472
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1473
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1407
1474
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1408
1475
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1409
1476
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1438,6 +1505,7 @@ export type AgentScalarWhereInput = {
1438
1505
  systemPrompt?: Prisma.StringFilter<"Agent"> | string;
1439
1506
  model?: Prisma.StringFilter<"Agent"> | string;
1440
1507
  budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
1508
+ allowedOverrunPercent?: Prisma.IntFilter<"Agent"> | number;
1441
1509
  createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1442
1510
  updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1443
1511
  kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
@@ -1462,6 +1530,7 @@ export type AgentCreateWithoutToolsInput = {
1462
1530
  systemPrompt: string;
1463
1531
  model: string;
1464
1532
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1533
+ allowedOverrunPercent?: number;
1465
1534
  createdAt?: Date | string;
1466
1535
  updatedAt?: Date | string;
1467
1536
  kind?: $Enums.AgentKind;
@@ -1486,6 +1555,7 @@ export type AgentCreateWithoutToolsInput = {
1486
1555
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1487
1556
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1488
1557
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1558
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1489
1559
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1490
1560
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1491
1561
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1497,6 +1567,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1497
1567
  systemPrompt: string;
1498
1568
  model: string;
1499
1569
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1570
+ allowedOverrunPercent?: number;
1500
1571
  createdAt?: Date | string;
1501
1572
  updatedAt?: Date | string;
1502
1573
  kind?: $Enums.AgentKind;
@@ -1522,6 +1593,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1522
1593
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1523
1594
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1524
1595
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1596
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1525
1597
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1526
1598
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1527
1599
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1545,6 +1617,7 @@ export type AgentUpdateWithoutToolsInput = {
1545
1617
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1546
1618
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1547
1619
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1620
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1548
1621
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1549
1622
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1550
1623
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1569,6 +1642,7 @@ export type AgentUpdateWithoutToolsInput = {
1569
1642
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1570
1643
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1571
1644
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1645
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
1572
1646
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1573
1647
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1574
1648
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1580,6 +1654,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1580
1654
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1581
1655
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1582
1656
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1657
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1583
1658
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1584
1659
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1585
1660
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1605,6 +1680,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1605
1680
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1606
1681
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1607
1682
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1683
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
1608
1684
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1609
1685
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1610
1686
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1615,6 +1691,7 @@ export type AgentCreateWithoutDatastoresInput = {
1615
1691
  systemPrompt: string;
1616
1692
  model: string;
1617
1693
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1694
+ allowedOverrunPercent?: number;
1618
1695
  createdAt?: Date | string;
1619
1696
  updatedAt?: Date | string;
1620
1697
  kind?: $Enums.AgentKind;
@@ -1639,6 +1716,7 @@ export type AgentCreateWithoutDatastoresInput = {
1639
1716
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1640
1717
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1641
1718
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1719
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1642
1720
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1643
1721
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1644
1722
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1650,6 +1728,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1650
1728
  systemPrompt: string;
1651
1729
  model: string;
1652
1730
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1731
+ allowedOverrunPercent?: number;
1653
1732
  createdAt?: Date | string;
1654
1733
  updatedAt?: Date | string;
1655
1734
  kind?: $Enums.AgentKind;
@@ -1675,6 +1754,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1675
1754
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1676
1755
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1677
1756
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1757
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1678
1758
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1679
1759
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1680
1760
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1698,6 +1778,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1698
1778
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1699
1779
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1700
1780
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1781
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1701
1782
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1702
1783
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1703
1784
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1722,6 +1803,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1722
1803
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1723
1804
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1724
1805
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1806
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
1725
1807
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1726
1808
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1727
1809
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1733,6 +1815,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1733
1815
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1734
1816
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1735
1817
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1818
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1736
1819
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1737
1820
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1738
1821
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1758,6 +1841,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1758
1841
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1759
1842
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1760
1843
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1844
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
1761
1845
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1762
1846
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1763
1847
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1768,6 +1852,7 @@ export type AgentCreateWithoutRunsInput = {
1768
1852
  systemPrompt: string;
1769
1853
  model: string;
1770
1854
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1855
+ allowedOverrunPercent?: number;
1771
1856
  createdAt?: Date | string;
1772
1857
  updatedAt?: Date | string;
1773
1858
  kind?: $Enums.AgentKind;
@@ -1792,6 +1877,7 @@ export type AgentCreateWithoutRunsInput = {
1792
1877
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1793
1878
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1794
1879
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1880
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1795
1881
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1796
1882
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1797
1883
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1803,6 +1889,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1803
1889
  systemPrompt: string;
1804
1890
  model: string;
1805
1891
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1892
+ allowedOverrunPercent?: number;
1806
1893
  createdAt?: Date | string;
1807
1894
  updatedAt?: Date | string;
1808
1895
  kind?: $Enums.AgentKind;
@@ -1828,6 +1915,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1828
1915
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1829
1916
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1830
1917
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1918
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1831
1919
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1832
1920
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1833
1921
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -1851,6 +1939,7 @@ export type AgentUpdateWithoutRunsInput = {
1851
1939
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1852
1940
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1853
1941
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1942
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1854
1943
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1855
1944
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1856
1945
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1875,6 +1964,7 @@ export type AgentUpdateWithoutRunsInput = {
1875
1964
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1876
1965
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
1877
1966
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1967
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
1878
1968
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
1879
1969
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1880
1970
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -1886,6 +1976,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1886
1976
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1887
1977
  model?: Prisma.StringFieldUpdateOperationsInput | string;
1888
1978
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1979
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
1889
1980
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1890
1981
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1891
1982
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -1911,6 +2002,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1911
2002
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1912
2003
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
1913
2004
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2005
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
1914
2006
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
1915
2007
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1916
2008
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -1921,6 +2013,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1921
2013
  systemPrompt: string;
1922
2014
  model: string;
1923
2015
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2016
+ allowedOverrunPercent?: number;
1924
2017
  createdAt?: Date | string;
1925
2018
  updatedAt?: Date | string;
1926
2019
  kind?: $Enums.AgentKind;
@@ -1945,6 +2038,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1945
2038
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1946
2039
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
1947
2040
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2041
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
1948
2042
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
1949
2043
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1950
2044
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -1956,6 +2050,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1956
2050
  systemPrompt: string;
1957
2051
  model: string;
1958
2052
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2053
+ allowedOverrunPercent?: number;
1959
2054
  createdAt?: Date | string;
1960
2055
  updatedAt?: Date | string;
1961
2056
  kind?: $Enums.AgentKind;
@@ -1981,6 +2076,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1981
2076
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1982
2077
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
1983
2078
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2079
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
1984
2080
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
1985
2081
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1986
2082
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2004,6 +2100,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
2004
2100
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2005
2101
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2006
2102
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2103
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2007
2104
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2008
2105
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2009
2106
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2028,6 +2125,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
2028
2125
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2029
2126
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2030
2127
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2128
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
2031
2129
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2032
2130
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2033
2131
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2039,6 +2137,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
2039
2137
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2040
2138
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2041
2139
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2140
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2042
2141
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2043
2142
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2044
2143
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2064,6 +2163,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
2064
2163
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2065
2164
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2066
2165
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2166
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
2067
2167
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2068
2168
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2069
2169
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2074,6 +2174,7 @@ export type AgentCreateWithoutOwnerInput = {
2074
2174
  systemPrompt: string;
2075
2175
  model: string;
2076
2176
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2177
+ allowedOverrunPercent?: number;
2077
2178
  createdAt?: Date | string;
2078
2179
  updatedAt?: Date | string;
2079
2180
  kind?: $Enums.AgentKind;
@@ -2098,6 +2199,7 @@ export type AgentCreateWithoutOwnerInput = {
2098
2199
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2099
2200
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2100
2201
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2202
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2101
2203
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2102
2204
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2103
2205
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2109,6 +2211,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
2109
2211
  systemPrompt: string;
2110
2212
  model: string;
2111
2213
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2214
+ allowedOverrunPercent?: number;
2112
2215
  createdAt?: Date | string;
2113
2216
  updatedAt?: Date | string;
2114
2217
  kind?: $Enums.AgentKind;
@@ -2134,6 +2237,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
2134
2237
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2135
2238
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2136
2239
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2240
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2137
2241
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2138
2242
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2139
2243
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2165,6 +2269,7 @@ export type AgentCreateWithoutSecretsInput = {
2165
2269
  systemPrompt: string;
2166
2270
  model: string;
2167
2271
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2272
+ allowedOverrunPercent?: number;
2168
2273
  createdAt?: Date | string;
2169
2274
  updatedAt?: Date | string;
2170
2275
  kind?: $Enums.AgentKind;
@@ -2189,6 +2294,7 @@ export type AgentCreateWithoutSecretsInput = {
2189
2294
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2190
2295
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2191
2296
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2297
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2192
2298
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2193
2299
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2194
2300
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2200,6 +2306,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
2200
2306
  systemPrompt: string;
2201
2307
  model: string;
2202
2308
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2309
+ allowedOverrunPercent?: number;
2203
2310
  createdAt?: Date | string;
2204
2311
  updatedAt?: Date | string;
2205
2312
  kind?: $Enums.AgentKind;
@@ -2225,6 +2332,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
2225
2332
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2226
2333
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2227
2334
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2335
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2228
2336
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2229
2337
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2230
2338
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2248,6 +2356,7 @@ export type AgentUpdateWithoutSecretsInput = {
2248
2356
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2249
2357
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2250
2358
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2359
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2251
2360
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2252
2361
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2253
2362
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2272,6 +2381,7 @@ export type AgentUpdateWithoutSecretsInput = {
2272
2381
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2273
2382
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2274
2383
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2384
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
2275
2385
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2276
2386
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2277
2387
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2283,6 +2393,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2283
2393
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2284
2394
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2285
2395
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2396
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2286
2397
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2287
2398
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2288
2399
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2308,6 +2419,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
2308
2419
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2309
2420
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2310
2421
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2422
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
2311
2423
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2312
2424
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2313
2425
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2318,6 +2430,7 @@ export type AgentCreateWithoutWebhooksInput = {
2318
2430
  systemPrompt: string;
2319
2431
  model: string;
2320
2432
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2433
+ allowedOverrunPercent?: number;
2321
2434
  createdAt?: Date | string;
2322
2435
  updatedAt?: Date | string;
2323
2436
  kind?: $Enums.AgentKind;
@@ -2342,6 +2455,7 @@ export type AgentCreateWithoutWebhooksInput = {
2342
2455
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2343
2456
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2344
2457
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2458
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2345
2459
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2346
2460
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2347
2461
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2353,6 +2467,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2353
2467
  systemPrompt: string;
2354
2468
  model: string;
2355
2469
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2470
+ allowedOverrunPercent?: number;
2356
2471
  createdAt?: Date | string;
2357
2472
  updatedAt?: Date | string;
2358
2473
  kind?: $Enums.AgentKind;
@@ -2378,6 +2493,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
2378
2493
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2379
2494
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2380
2495
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2496
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2381
2497
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2382
2498
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2383
2499
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2401,6 +2517,7 @@ export type AgentUpdateWithoutWebhooksInput = {
2401
2517
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2402
2518
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2403
2519
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2520
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2404
2521
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2405
2522
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2406
2523
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2425,6 +2542,7 @@ export type AgentUpdateWithoutWebhooksInput = {
2425
2542
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2426
2543
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2427
2544
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2545
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
2428
2546
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2429
2547
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2430
2548
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2436,6 +2554,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2436
2554
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2437
2555
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2438
2556
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2557
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2439
2558
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2440
2559
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2441
2560
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2461,6 +2580,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
2461
2580
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2462
2581
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2463
2582
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2583
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
2464
2584
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2465
2585
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2466
2586
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2471,6 +2591,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2471
2591
  systemPrompt: string;
2472
2592
  model: string;
2473
2593
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2594
+ allowedOverrunPercent?: number;
2474
2595
  createdAt?: Date | string;
2475
2596
  updatedAt?: Date | string;
2476
2597
  kind?: $Enums.AgentKind;
@@ -2495,6 +2616,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2495
2616
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2496
2617
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2497
2618
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2619
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2498
2620
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2499
2621
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2500
2622
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2506,6 +2628,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2506
2628
  systemPrompt: string;
2507
2629
  model: string;
2508
2630
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2631
+ allowedOverrunPercent?: number;
2509
2632
  createdAt?: Date | string;
2510
2633
  updatedAt?: Date | string;
2511
2634
  kind?: $Enums.AgentKind;
@@ -2531,6 +2654,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2531
2654
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2532
2655
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2533
2656
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2657
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2534
2658
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2535
2659
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2536
2660
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2554,6 +2678,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2554
2678
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2555
2679
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2556
2680
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2681
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2557
2682
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2558
2683
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2559
2684
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2578,6 +2703,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2578
2703
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2579
2704
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
2580
2705
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2706
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
2581
2707
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2582
2708
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2583
2709
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2589,6 +2715,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2589
2715
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2590
2716
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2591
2717
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2718
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2592
2719
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2593
2720
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2594
2721
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2614,6 +2741,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2614
2741
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2615
2742
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
2616
2743
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2744
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
2617
2745
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2618
2746
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2619
2747
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2624,6 +2752,7 @@ export type AgentCreateWithoutDeferredReviewsInput = {
2624
2752
  systemPrompt: string;
2625
2753
  model: string;
2626
2754
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2755
+ allowedOverrunPercent?: number;
2627
2756
  createdAt?: Date | string;
2628
2757
  updatedAt?: Date | string;
2629
2758
  kind?: $Enums.AgentKind;
@@ -2648,6 +2777,7 @@ export type AgentCreateWithoutDeferredReviewsInput = {
2648
2777
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2649
2778
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2650
2779
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2780
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2651
2781
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2652
2782
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2653
2783
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2659,6 +2789,7 @@ export type AgentUncheckedCreateWithoutDeferredReviewsInput = {
2659
2789
  systemPrompt: string;
2660
2790
  model: string;
2661
2791
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2792
+ allowedOverrunPercent?: number;
2662
2793
  createdAt?: Date | string;
2663
2794
  updatedAt?: Date | string;
2664
2795
  kind?: $Enums.AgentKind;
@@ -2684,6 +2815,7 @@ export type AgentUncheckedCreateWithoutDeferredReviewsInput = {
2684
2815
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2685
2816
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2686
2817
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2818
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2687
2819
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2688
2820
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2689
2821
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2707,6 +2839,7 @@ export type AgentUpdateWithoutDeferredReviewsInput = {
2707
2839
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2708
2840
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2709
2841
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2842
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2710
2843
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2711
2844
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2712
2845
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2731,6 +2864,7 @@ export type AgentUpdateWithoutDeferredReviewsInput = {
2731
2864
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2732
2865
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2733
2866
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2867
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
2734
2868
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2735
2869
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2736
2870
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2742,6 +2876,7 @@ export type AgentUncheckedUpdateWithoutDeferredReviewsInput = {
2742
2876
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2743
2877
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2744
2878
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2879
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2745
2880
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2746
2881
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2747
2882
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2767,6 +2902,7 @@ export type AgentUncheckedUpdateWithoutDeferredReviewsInput = {
2767
2902
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2768
2903
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2769
2904
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2905
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
2770
2906
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2771
2907
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2772
2908
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2777,6 +2913,7 @@ export type AgentCreateWithoutIssueProjectsInput = {
2777
2913
  systemPrompt: string;
2778
2914
  model: string;
2779
2915
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2916
+ allowedOverrunPercent?: number;
2780
2917
  createdAt?: Date | string;
2781
2918
  updatedAt?: Date | string;
2782
2919
  kind?: $Enums.AgentKind;
@@ -2801,6 +2938,7 @@ export type AgentCreateWithoutIssueProjectsInput = {
2801
2938
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2802
2939
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2803
2940
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2941
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2804
2942
  notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
2805
2943
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2806
2944
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
@@ -2812,6 +2950,7 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2812
2950
  systemPrompt: string;
2813
2951
  model: string;
2814
2952
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2953
+ allowedOverrunPercent?: number;
2815
2954
  createdAt?: Date | string;
2816
2955
  updatedAt?: Date | string;
2817
2956
  kind?: $Enums.AgentKind;
@@ -2837,6 +2976,7 @@ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2837
2976
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2838
2977
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2839
2978
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2979
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2840
2980
  notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
2841
2981
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2842
2982
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
@@ -2860,6 +3000,7 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2860
3000
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2861
3001
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2862
3002
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3003
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2863
3004
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2864
3005
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2865
3006
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2884,6 +3025,7 @@ export type AgentUpdateWithoutIssueProjectsInput = {
2884
3025
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2885
3026
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2886
3027
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
3028
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
2887
3029
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
2888
3030
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2889
3031
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -2895,6 +3037,168 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2895
3037
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2896
3038
  model?: Prisma.StringFieldUpdateOperationsInput | string;
2897
3039
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3040
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3041
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3042
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3043
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
3044
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3045
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
3046
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3047
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3048
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
3049
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
3050
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3051
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3052
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3053
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3054
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3055
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3056
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3057
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
3058
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
3059
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
3060
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
3061
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
3062
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
3063
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
3064
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
3065
+ deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3066
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
3067
+ notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
3068
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
3069
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
3070
+ };
3071
+ export type AgentCreateWithoutMcpServersInput = {
3072
+ id?: string;
3073
+ name: string;
3074
+ systemPrompt: string;
3075
+ model: string;
3076
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3077
+ allowedOverrunPercent?: number;
3078
+ createdAt?: Date | string;
3079
+ updatedAt?: Date | string;
3080
+ kind?: $Enums.AgentKind;
3081
+ schedule?: string | null;
3082
+ timezone?: string;
3083
+ scheduleEnabled?: boolean;
3084
+ lastScheduledAt?: Date | string | null;
3085
+ maxTurns?: number;
3086
+ maxDelegationsPerRun?: number;
3087
+ parallelDelegations?: boolean;
3088
+ defectProjectKey?: string | null;
3089
+ defectIssueType?: string | null;
3090
+ memoryEnabled?: boolean;
3091
+ effort?: string | null;
3092
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
3093
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
3094
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
3095
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
3096
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
3097
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
3098
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
3099
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
3100
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
3101
+ deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
3102
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
3103
+ notificationChannels?: Prisma.NotificationChannelCreateNestedManyWithoutAgentInput;
3104
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
3105
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
3106
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
3107
+ };
3108
+ export type AgentUncheckedCreateWithoutMcpServersInput = {
3109
+ id?: string;
3110
+ name: string;
3111
+ systemPrompt: string;
3112
+ model: string;
3113
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3114
+ allowedOverrunPercent?: number;
3115
+ createdAt?: Date | string;
3116
+ updatedAt?: Date | string;
3117
+ kind?: $Enums.AgentKind;
3118
+ schedule?: string | null;
3119
+ timezone?: string;
3120
+ scheduleEnabled?: boolean;
3121
+ lastScheduledAt?: Date | string | null;
3122
+ maxTurns?: number;
3123
+ maxDelegationsPerRun?: number;
3124
+ parallelDelegations?: boolean;
3125
+ ownerId?: string | null;
3126
+ defectProjectKey?: string | null;
3127
+ defectIssueType?: string | null;
3128
+ budgetGroupId?: string | null;
3129
+ memoryEnabled?: boolean;
3130
+ effort?: string | null;
3131
+ nativeExecutionMode?: $Enums.NativeExecutionMode;
3132
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
3133
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
3134
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
3135
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
3136
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
3137
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
3138
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
3139
+ deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
3140
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
3141
+ notificationChannels?: Prisma.NotificationChannelUncheckedCreateNestedManyWithoutAgentInput;
3142
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
3143
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
3144
+ };
3145
+ export type AgentCreateOrConnectWithoutMcpServersInput = {
3146
+ where: Prisma.AgentWhereUniqueInput;
3147
+ create: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>;
3148
+ };
3149
+ export type AgentUpsertWithoutMcpServersInput = {
3150
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutMcpServersInput, Prisma.AgentUncheckedUpdateWithoutMcpServersInput>;
3151
+ create: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>;
3152
+ where?: Prisma.AgentWhereInput;
3153
+ };
3154
+ export type AgentUpdateToOneWithWhereWithoutMcpServersInput = {
3155
+ where?: Prisma.AgentWhereInput;
3156
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutMcpServersInput, Prisma.AgentUncheckedUpdateWithoutMcpServersInput>;
3157
+ };
3158
+ export type AgentUpdateWithoutMcpServersInput = {
3159
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3160
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3161
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3162
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
3163
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3164
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3165
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3166
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3167
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
3168
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3169
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
3170
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3171
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3172
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
3173
+ maxDelegationsPerRun?: Prisma.IntFieldUpdateOperationsInput | number;
3174
+ parallelDelegations?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3175
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3176
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3177
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3178
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3179
+ nativeExecutionMode?: Prisma.EnumNativeExecutionModeFieldUpdateOperationsInput | $Enums.NativeExecutionMode;
3180
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
3181
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
3182
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
3183
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
3184
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
3185
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
3186
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
3187
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
3188
+ deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
3189
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3190
+ notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
3191
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
3192
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
3193
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
3194
+ };
3195
+ export type AgentUncheckedUpdateWithoutMcpServersInput = {
3196
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3197
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3198
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3199
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
3200
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3201
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
2898
3202
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2899
3203
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2900
3204
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -2920,6 +3224,7 @@ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2920
3224
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2921
3225
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2922
3226
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3227
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2923
3228
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
2924
3229
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2925
3230
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -2930,6 +3235,7 @@ export type AgentCreateWithoutNotificationChannelsInput = {
2930
3235
  systemPrompt: string;
2931
3236
  model: string;
2932
3237
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3238
+ allowedOverrunPercent?: number;
2933
3239
  createdAt?: Date | string;
2934
3240
  updatedAt?: Date | string;
2935
3241
  kind?: $Enums.AgentKind;
@@ -2955,6 +3261,7 @@ export type AgentCreateWithoutNotificationChannelsInput = {
2955
3261
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2956
3262
  deferredReviews?: Prisma.DeferredReviewCreateNestedManyWithoutAgentInput;
2957
3263
  issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
3264
+ mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput;
2958
3265
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2959
3266
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2960
3267
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2965,6 +3272,7 @@ export type AgentUncheckedCreateWithoutNotificationChannelsInput = {
2965
3272
  systemPrompt: string;
2966
3273
  model: string;
2967
3274
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3275
+ allowedOverrunPercent?: number;
2968
3276
  createdAt?: Date | string;
2969
3277
  updatedAt?: Date | string;
2970
3278
  kind?: $Enums.AgentKind;
@@ -2991,6 +3299,7 @@ export type AgentUncheckedCreateWithoutNotificationChannelsInput = {
2991
3299
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2992
3300
  deferredReviews?: Prisma.DeferredReviewUncheckedCreateNestedManyWithoutAgentInput;
2993
3301
  issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
3302
+ mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput;
2994
3303
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2995
3304
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2996
3305
  };
@@ -3013,6 +3322,7 @@ export type AgentUpdateWithoutNotificationChannelsInput = {
3013
3322
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3014
3323
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3015
3324
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3325
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3016
3326
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3017
3327
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3018
3328
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3038,6 +3348,7 @@ export type AgentUpdateWithoutNotificationChannelsInput = {
3038
3348
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
3039
3349
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
3040
3350
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3351
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
3041
3352
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
3042
3353
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
3043
3354
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -3048,6 +3359,7 @@ export type AgentUncheckedUpdateWithoutNotificationChannelsInput = {
3048
3359
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3049
3360
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3050
3361
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3362
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3051
3363
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3052
3364
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3053
3365
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3074,6 +3386,7 @@ export type AgentUncheckedUpdateWithoutNotificationChannelsInput = {
3074
3386
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
3075
3387
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3076
3388
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
3389
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
3077
3390
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
3078
3391
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
3079
3392
  };
@@ -3083,6 +3396,7 @@ export type AgentCreateManyBudgetGroupInput = {
3083
3396
  systemPrompt: string;
3084
3397
  model: string;
3085
3398
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3399
+ allowedOverrunPercent?: number;
3086
3400
  createdAt?: Date | string;
3087
3401
  updatedAt?: Date | string;
3088
3402
  kind?: $Enums.AgentKind;
@@ -3106,6 +3420,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
3106
3420
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3107
3421
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3108
3422
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3423
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3109
3424
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3110
3425
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3111
3426
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3131,6 +3446,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
3131
3446
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
3132
3447
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
3133
3448
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3449
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
3134
3450
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
3135
3451
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
3136
3452
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -3141,6 +3457,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
3141
3457
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3142
3458
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3143
3459
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3460
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3144
3461
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3145
3462
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3146
3463
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3166,6 +3483,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
3166
3483
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
3167
3484
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3168
3485
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
3486
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
3169
3487
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
3170
3488
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
3171
3489
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -3176,6 +3494,7 @@ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
3176
3494
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3177
3495
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3178
3496
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3497
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3179
3498
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3180
3499
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3181
3500
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3199,6 +3518,7 @@ export type AgentCreateManyOwnerInput = {
3199
3518
  systemPrompt: string;
3200
3519
  model: string;
3201
3520
  budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
3521
+ allowedOverrunPercent?: number;
3202
3522
  createdAt?: Date | string;
3203
3523
  updatedAt?: Date | string;
3204
3524
  kind?: $Enums.AgentKind;
@@ -3222,6 +3542,7 @@ export type AgentUpdateWithoutOwnerInput = {
3222
3542
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3223
3543
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3224
3544
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3545
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3225
3546
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3226
3547
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3227
3548
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3246,6 +3567,7 @@ export type AgentUpdateWithoutOwnerInput = {
3246
3567
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
3247
3568
  deferredReviews?: Prisma.DeferredReviewUpdateManyWithoutAgentNestedInput;
3248
3569
  issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
3570
+ mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput;
3249
3571
  notificationChannels?: Prisma.NotificationChannelUpdateManyWithoutAgentNestedInput;
3250
3572
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
3251
3573
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
@@ -3257,6 +3579,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
3257
3579
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3258
3580
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3259
3581
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3582
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3260
3583
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3261
3584
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3262
3585
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3282,6 +3605,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
3282
3605
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
3283
3606
  deferredReviews?: Prisma.DeferredReviewUncheckedUpdateManyWithoutAgentNestedInput;
3284
3607
  issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
3608
+ mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput;
3285
3609
  notificationChannels?: Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput;
3286
3610
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
3287
3611
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
@@ -3292,6 +3616,7 @@ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
3292
3616
  systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
3293
3617
  model?: Prisma.StringFieldUpdateOperationsInput | string;
3294
3618
  budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
3619
+ allowedOverrunPercent?: Prisma.IntFieldUpdateOperationsInput | number;
3295
3620
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3296
3621
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3297
3622
  kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
@@ -3321,6 +3646,7 @@ export type AgentCountOutputType = {
3321
3646
  repositories: number;
3322
3647
  deferredReviews: number;
3323
3648
  issueProjects: number;
3649
+ mcpServers: number;
3324
3650
  notificationChannels: number;
3325
3651
  subAgentEdgesAsParent: number;
3326
3652
  subAgentEdgesAsChild: number;
@@ -3334,6 +3660,7 @@ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.
3334
3660
  repositories?: boolean | AgentCountOutputTypeCountRepositoriesArgs;
3335
3661
  deferredReviews?: boolean | AgentCountOutputTypeCountDeferredReviewsArgs;
3336
3662
  issueProjects?: boolean | AgentCountOutputTypeCountIssueProjectsArgs;
3663
+ mcpServers?: boolean | AgentCountOutputTypeCountMcpServersArgs;
3337
3664
  notificationChannels?: boolean | AgentCountOutputTypeCountNotificationChannelsArgs;
3338
3665
  subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
3339
3666
  subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
@@ -3395,6 +3722,12 @@ export type AgentCountOutputTypeCountDeferredReviewsArgs<ExtArgs extends runtime
3395
3722
  export type AgentCountOutputTypeCountIssueProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3396
3723
  where?: Prisma.AgentIssueProjectWhereInput;
3397
3724
  };
3725
+ /**
3726
+ * AgentCountOutputType without action
3727
+ */
3728
+ export type AgentCountOutputTypeCountMcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3729
+ where?: Prisma.AgentMcpServerWhereInput;
3730
+ };
3398
3731
  /**
3399
3732
  * AgentCountOutputType without action
3400
3733
  */
@@ -3419,6 +3752,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3419
3752
  systemPrompt?: boolean;
3420
3753
  model?: boolean;
3421
3754
  budgetUsd?: boolean;
3755
+ allowedOverrunPercent?: boolean;
3422
3756
  createdAt?: boolean;
3423
3757
  updatedAt?: boolean;
3424
3758
  kind?: boolean;
@@ -3446,6 +3780,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3446
3780
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
3447
3781
  deferredReviews?: boolean | Prisma.Agent$deferredReviewsArgs<ExtArgs>;
3448
3782
  issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
3783
+ mcpServers?: boolean | Prisma.Agent$mcpServersArgs<ExtArgs>;
3449
3784
  notificationChannels?: boolean | Prisma.Agent$notificationChannelsArgs<ExtArgs>;
3450
3785
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
3451
3786
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
@@ -3458,6 +3793,7 @@ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
3458
3793
  systemPrompt?: boolean;
3459
3794
  model?: boolean;
3460
3795
  budgetUsd?: boolean;
3796
+ allowedOverrunPercent?: boolean;
3461
3797
  createdAt?: boolean;
3462
3798
  updatedAt?: boolean;
3463
3799
  kind?: boolean;
@@ -3484,6 +3820,7 @@ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
3484
3820
  systemPrompt?: boolean;
3485
3821
  model?: boolean;
3486
3822
  budgetUsd?: boolean;
3823
+ allowedOverrunPercent?: boolean;
3487
3824
  createdAt?: boolean;
3488
3825
  updatedAt?: boolean;
3489
3826
  kind?: boolean;
@@ -3510,6 +3847,7 @@ export type AgentSelectScalar = {
3510
3847
  systemPrompt?: boolean;
3511
3848
  model?: boolean;
3512
3849
  budgetUsd?: boolean;
3850
+ allowedOverrunPercent?: boolean;
3513
3851
  createdAt?: boolean;
3514
3852
  updatedAt?: boolean;
3515
3853
  kind?: boolean;
@@ -3528,7 +3866,7 @@ export type AgentSelectScalar = {
3528
3866
  effort?: boolean;
3529
3867
  nativeExecutionMode?: boolean;
3530
3868
  };
3531
- 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" | "nativeExecutionMode", ExtArgs["result"]["agent"]>;
3869
+ 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"]>;
3532
3870
  export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3533
3871
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
3534
3872
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
@@ -3540,6 +3878,7 @@ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3540
3878
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
3541
3879
  deferredReviews?: boolean | Prisma.Agent$deferredReviewsArgs<ExtArgs>;
3542
3880
  issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
3881
+ mcpServers?: boolean | Prisma.Agent$mcpServersArgs<ExtArgs>;
3543
3882
  notificationChannels?: boolean | Prisma.Agent$notificationChannelsArgs<ExtArgs>;
3544
3883
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
3545
3884
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
@@ -3567,6 +3906,7 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
3567
3906
  repositories: Prisma.$AgentRepositoryPayload<ExtArgs>[];
3568
3907
  deferredReviews: Prisma.$DeferredReviewPayload<ExtArgs>[];
3569
3908
  issueProjects: Prisma.$AgentIssueProjectPayload<ExtArgs>[];
3909
+ mcpServers: Prisma.$AgentMcpServerPayload<ExtArgs>[];
3570
3910
  notificationChannels: Prisma.$NotificationChannelPayload<ExtArgs>[];
3571
3911
  budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
3572
3912
  /**
@@ -3583,6 +3923,10 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
3583
3923
  systemPrompt: string;
3584
3924
  model: string;
3585
3925
  budgetUsd: runtime.Decimal;
3926
+ /**
3927
+ * 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.
3928
+ */
3929
+ allowedOverrunPercent: number;
3586
3930
  createdAt: Date;
3587
3931
  updatedAt: Date;
3588
3932
  kind: $Enums.AgentKind;
@@ -3968,6 +4312,7 @@ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Ty
3968
4312
  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>;
3969
4313
  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>;
3970
4314
  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>;
4315
+ mcpServers<T extends Prisma.Agent$mcpServersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$mcpServersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3971
4316
  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>;
3972
4317
  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>;
3973
4318
  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>;
@@ -4002,6 +4347,7 @@ export interface AgentFieldRefs {
4002
4347
  readonly systemPrompt: Prisma.FieldRef<"Agent", 'String'>;
4003
4348
  readonly model: Prisma.FieldRef<"Agent", 'String'>;
4004
4349
  readonly budgetUsd: Prisma.FieldRef<"Agent", 'Decimal'>;
4350
+ readonly allowedOverrunPercent: Prisma.FieldRef<"Agent", 'Int'>;
4005
4351
  readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'>;
4006
4352
  readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'>;
4007
4353
  readonly kind: Prisma.FieldRef<"Agent", 'AgentKind'>;
@@ -4622,6 +4968,29 @@ export type Agent$issueProjectsArgs<ExtArgs extends runtime.Types.Extensions.Int
4622
4968
  skip?: number;
4623
4969
  distinct?: Prisma.AgentIssueProjectScalarFieldEnum | Prisma.AgentIssueProjectScalarFieldEnum[];
4624
4970
  };
4971
+ /**
4972
+ * Agent.mcpServers
4973
+ */
4974
+ export type Agent$mcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4975
+ /**
4976
+ * Select specific fields to fetch from the AgentMcpServer
4977
+ */
4978
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
4979
+ /**
4980
+ * Omit specific fields from the AgentMcpServer
4981
+ */
4982
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
4983
+ /**
4984
+ * Choose, which related nodes to fetch as well
4985
+ */
4986
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
4987
+ where?: Prisma.AgentMcpServerWhereInput;
4988
+ orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[];
4989
+ cursor?: Prisma.AgentMcpServerWhereUniqueInput;
4990
+ take?: number;
4991
+ skip?: number;
4992
+ distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[];
4993
+ };
4625
4994
  /**
4626
4995
  * Agent.notificationChannels
4627
4996
  */