@wardby/cli 0.2.1 → 0.4.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 (555) hide show
  1. package/.env.example +53 -4
  2. package/README.md +52 -13
  3. package/dist/claude-coding-worker/driver.d.ts +6 -1
  4. package/dist/claude-coding-worker/driver.js +27 -1
  5. package/dist/claude-coding-worker/main.js +2 -0
  6. package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
  7. package/dist/claude-coding-worker/tool-socket.js +26 -0
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +14 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +284 -36
  12. package/dist/coding/base-commit.d.ts +6 -0
  13. package/dist/coding/base-commit.js +12 -0
  14. package/dist/coding/collect-exclude.d.ts +25 -0
  15. package/dist/coding/collect-exclude.js +76 -0
  16. package/dist/coding/profile.d.ts +67 -22
  17. package/dist/coding/profile.js +58 -25
  18. package/dist/coding/protected-path-wording.d.ts +24 -0
  19. package/dist/coding/protected-path-wording.js +55 -0
  20. package/dist/coding/protected-paths.d.ts +31 -0
  21. package/dist/coding/protected-paths.js +48 -0
  22. package/dist/coding/protocol.d.ts +91 -4
  23. package/dist/coding/protocol.js +123 -12
  24. package/dist/coding/provider.d.ts +6 -1
  25. package/dist/coding/provider.js +16 -9
  26. package/dist/coding/registry/adapters.d.ts +2 -0
  27. package/dist/coding/registry/adapters.js +9 -0
  28. package/dist/coding/registry/allowlist.d.ts +9 -0
  29. package/dist/coding/registry/allowlist.js +28 -0
  30. package/dist/coding/registry/json-scan.d.ts +55 -0
  31. package/dist/coding/registry/json-scan.js +191 -0
  32. package/dist/coding/registry/lockfiles.d.ts +6 -0
  33. package/dist/coding/registry/lockfiles.js +89 -0
  34. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  35. package/dist/coding/registry/npm-lockfile.js +73 -0
  36. package/dist/coding/registry/npm-plan.d.ts +29 -0
  37. package/dist/coding/registry/npm-plan.js +289 -0
  38. package/dist/coding/registry/npm.d.ts +7 -0
  39. package/dist/coding/registry/npm.js +252 -0
  40. package/dist/coding/registry/pypi.d.ts +4 -0
  41. package/dist/coding/registry/pypi.js +210 -0
  42. package/dist/coding/registry/report.d.ts +37 -0
  43. package/dist/coding/registry/report.js +31 -0
  44. package/dist/coding/registry/token.d.ts +4 -0
  45. package/dist/coding/registry/token.js +7 -0
  46. package/dist/coding/registry/types.d.ts +286 -0
  47. package/dist/coding/registry/types.js +19 -0
  48. package/dist/coding/registry/worker-config.d.ts +14 -0
  49. package/dist/coding/registry/worker-config.js +31 -0
  50. package/dist/coding/services/builtins.d.ts +22 -0
  51. package/dist/coding/services/builtins.js +85 -0
  52. package/dist/coding/services/catalog.d.ts +443 -0
  53. package/dist/coding/services/catalog.js +159 -0
  54. package/dist/coding/services/declaration.d.ts +11 -0
  55. package/dist/coding/services/declaration.js +114 -0
  56. package/dist/coding/services/note.d.ts +8 -0
  57. package/dist/coding/services/note.js +15 -0
  58. package/dist/coding/services/resolve.d.ts +25 -0
  59. package/dist/coding/services/resolve.js +50 -0
  60. package/dist/coding/services/wording.d.ts +25 -0
  61. package/dist/coding/services/wording.js +70 -0
  62. package/dist/coding-proxy/main.js +24 -4
  63. package/dist/coding-worker/artifact.d.ts +6 -0
  64. package/dist/coding-worker/debug-trace.d.ts +37 -0
  65. package/dist/coding-worker/debug-trace.js +117 -0
  66. package/dist/coding-worker/driver.d.ts +13 -1
  67. package/dist/coding-worker/driver.js +102 -13
  68. package/dist/coding-worker/errors.js +8 -0
  69. package/dist/coding-worker/main.js +10 -2
  70. package/dist/coding-worker/sdk.d.ts +2 -2
  71. package/dist/coding-worker/sdk.js +7 -2
  72. package/dist/coding-worker/types.d.ts +3 -0
  73. package/dist/config/providers.d.ts +66 -0
  74. package/dist/config/providers.js +137 -0
  75. package/dist/core/attribution.d.ts +101 -0
  76. package/dist/core/attribution.js +208 -0
  77. package/dist/core/budget-groups.d.ts +120 -10
  78. package/dist/core/budget-groups.js +133 -24
  79. package/dist/core/budget-wording.d.ts +22 -0
  80. package/dist/core/budget-wording.js +55 -0
  81. package/dist/core/coding-queue.d.ts +3 -0
  82. package/dist/core/coding-queue.js +6 -2
  83. package/dist/core/coding-service-status.d.ts +11 -0
  84. package/dist/core/coding-service-status.js +17 -0
  85. package/dist/core/cost-report.d.ts +88 -0
  86. package/dist/core/cost-report.js +248 -0
  87. package/dist/core/datastores.js +18 -2
  88. package/dist/core/db.d.ts +5 -1
  89. package/dist/core/db.js +8 -2
  90. package/dist/core/dispatch.d.ts +74 -7
  91. package/dist/core/dispatch.js +382 -47
  92. package/dist/core/engine-native.js +44 -14
  93. package/dist/core/glob.d.ts +10 -0
  94. package/dist/core/glob.js +33 -0
  95. package/dist/core/grants.d.ts +86 -0
  96. package/dist/core/grants.js +126 -0
  97. package/dist/core/host-events.d.ts +72 -0
  98. package/dist/core/host-events.js +597 -0
  99. package/dist/core/host-identity-links.d.ts +54 -0
  100. package/dist/core/host-identity-links.js +189 -0
  101. package/dist/core/host-status.d.ts +78 -0
  102. package/dist/core/host-status.js +228 -0
  103. package/dist/core/in-flight-runs.d.ts +8 -0
  104. package/dist/core/in-flight-runs.js +56 -0
  105. package/dist/core/issue-bridge.d.ts +60 -0
  106. package/dist/core/issue-bridge.js +189 -0
  107. package/dist/core/issue-dedupe.d.ts +70 -0
  108. package/dist/core/issue-dedupe.js +255 -0
  109. package/dist/core/issue-events.d.ts +42 -0
  110. package/dist/core/issue-events.js +155 -0
  111. package/dist/core/issue-status.d.ts +29 -0
  112. package/dist/core/issue-status.js +241 -0
  113. package/dist/core/issue-tracker-tools.d.ts +64 -0
  114. package/dist/core/issue-tracker-tools.js +850 -0
  115. package/dist/core/model-usage.d.ts +10 -0
  116. package/dist/core/model-usage.js +24 -0
  117. package/dist/core/provider-wording.d.ts +12 -0
  118. package/dist/core/provider-wording.js +44 -0
  119. package/dist/core/reconciler.d.ts +42 -2
  120. package/dist/core/reconciler.js +97 -2
  121. package/dist/core/repo-access.d.ts +99 -0
  122. package/dist/core/repo-access.js +136 -0
  123. package/dist/core/review-host-checks.d.ts +11 -0
  124. package/dist/core/review-host-checks.js +41 -0
  125. package/dist/core/review-host-tools.d.ts +47 -0
  126. package/dist/core/review-host-tools.js +354 -0
  127. package/dist/core/run-heartbeat.d.ts +27 -0
  128. package/dist/core/run-heartbeat.js +54 -0
  129. package/dist/core/run-pricing.d.ts +61 -0
  130. package/dist/core/run-pricing.js +56 -0
  131. package/dist/core/runner.d.ts +33 -8
  132. package/dist/core/runner.js +410 -62
  133. package/dist/core/scheduler.d.ts +4 -1
  134. package/dist/core/scheduler.js +3 -2
  135. package/dist/core/secrets.d.ts +11 -2
  136. package/dist/core/secrets.js +25 -6
  137. package/dist/core/self-defects.d.ts +80 -0
  138. package/dist/core/self-defects.js +180 -0
  139. package/dist/core/subagent-memory-tools.d.ts +1 -1
  140. package/dist/core/subagent-memory-tools.js +16 -3
  141. package/dist/core/tool-admin.d.ts +81 -0
  142. package/dist/core/tool-admin.js +129 -0
  143. package/dist/core/tool-names.d.ts +42 -0
  144. package/dist/core/tool-names.js +67 -0
  145. package/dist/core/untrusted-content.d.ts +32 -0
  146. package/dist/core/untrusted-content.js +72 -0
  147. package/dist/core/webhooks.d.ts +17 -2
  148. package/dist/core/webhooks.js +42 -3
  149. package/dist/generated/prisma/browser.d.ts +166 -0
  150. package/dist/generated/prisma/client.d.ts +166 -0
  151. package/dist/generated/prisma/commonInputTypes.d.ts +152 -52
  152. package/dist/generated/prisma/enums.d.ts +13 -0
  153. package/dist/generated/prisma/enums.js +12 -1
  154. package/dist/generated/prisma/internal/class.d.ts +242 -0
  155. package/dist/generated/prisma/internal/class.js +4 -4
  156. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2571 -577
  157. package/dist/generated/prisma/internal/prismaNamespace.js +312 -6
  158. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +328 -0
  159. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +312 -6
  160. package/dist/generated/prisma/models/Agent.d.ts +682 -1
  161. package/dist/generated/prisma/models/AgentIssueProject.d.ts +1838 -0
  162. package/dist/generated/prisma/models/AgentIssueProject.js +1 -0
  163. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  164. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  165. package/dist/generated/prisma/models/AgentTool.d.ts +95 -1
  166. package/dist/generated/prisma/models/AuthUser.d.ts +56 -1
  167. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +258 -7
  168. package/dist/generated/prisma/models/CodingProxySession.d.ts +195 -2
  169. package/dist/generated/prisma/models/CodingRun.d.ts +1405 -95
  170. package/dist/generated/prisma/models/CodingRunServiceStatus.d.ts +1404 -0
  171. package/dist/generated/prisma/models/CodingRunServiceStatus.js +1 -0
  172. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  173. package/dist/generated/prisma/models/CodingService.js +1 -0
  174. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  175. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  176. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  177. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  178. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  179. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  180. package/dist/generated/prisma/models/IssueFingerprint.d.ts +1183 -0
  181. package/dist/generated/prisma/models/IssueFingerprint.js +1 -0
  182. package/dist/generated/prisma/models/IssuePullRequest.d.ts +1255 -0
  183. package/dist/generated/prisma/models/IssuePullRequest.js +1 -0
  184. package/dist/generated/prisma/models/ModelCatalogEntry.d.ts +1322 -0
  185. package/dist/generated/prisma/models/ModelCatalogEntry.js +1 -0
  186. package/dist/generated/prisma/models/Principal.d.ts +455 -0
  187. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  188. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  189. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  190. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  191. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  192. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  193. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  194. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  195. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  196. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  197. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  198. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  199. package/dist/generated/prisma/models/Run.d.ts +1402 -82
  200. package/dist/generated/prisma/models/RunAttribution.d.ts +1259 -0
  201. package/dist/generated/prisma/models/RunAttribution.js +1 -0
  202. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  203. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  204. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  205. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  206. package/dist/generated/prisma/models/RunIssueStatus.d.ts +1199 -0
  207. package/dist/generated/prisma/models/RunIssueStatus.js +1 -0
  208. package/dist/generated/prisma/models/RunModelUsage.d.ts +1316 -0
  209. package/dist/generated/prisma/models/RunModelUsage.js +1 -0
  210. package/dist/generated/prisma/models/Tool.d.ts +15 -3
  211. package/dist/generated/prisma/models/WorkItem.d.ts +1408 -0
  212. package/dist/generated/prisma/models/WorkItem.js +1 -0
  213. package/dist/generated/prisma/models.d.ts +22 -0
  214. package/dist/help/build.d.ts +1 -0
  215. package/dist/help/build.js +9 -0
  216. package/dist/help/catalog.d.ts +24 -0
  217. package/dist/help/catalog.js +160 -0
  218. package/dist/help/cli.d.ts +2 -0
  219. package/dist/help/cli.js +65 -0
  220. package/dist/help/runtime.d.ts +3 -0
  221. package/dist/help/runtime.js +44 -0
  222. package/dist/help/search.d.ts +9 -0
  223. package/dist/help/search.js +104 -0
  224. package/dist/help-index.json +999 -0
  225. package/dist/import/cli-args.js +3 -2
  226. package/dist/import/create.d.ts +5 -0
  227. package/dist/import/create.js +67 -13
  228. package/dist/import/index.js +19 -9
  229. package/dist/import/neutral-schema.d.ts +18 -18
  230. package/dist/knowledge/check.d.ts +13 -0
  231. package/dist/knowledge/check.js +69 -0
  232. package/dist/knowledge/cli.d.ts +14 -0
  233. package/dist/knowledge/cli.js +67 -0
  234. package/dist/knowledge/concept.d.ts +54 -0
  235. package/dist/knowledge/concept.js +78 -0
  236. package/dist/knowledge/note.d.ts +11 -0
  237. package/dist/knowledge/note.js +39 -0
  238. package/dist/knowledge/relevance.d.ts +11 -0
  239. package/dist/knowledge/relevance.js +14 -0
  240. package/dist/knowledge/span-hash.d.ts +3 -0
  241. package/dist/knowledge/span-hash.js +16 -0
  242. package/dist/mcp/auth/access.d.ts +72 -0
  243. package/dist/mcp/auth/access.js +58 -0
  244. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  245. package/dist/mcp/auth/grants-cli.js +518 -0
  246. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  247. package/dist/mcp/auth/host-account-cli.js +47 -0
  248. package/dist/mcp/auth/ownership.d.ts +25 -51
  249. package/dist/mcp/auth/ownership.js +19 -14
  250. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  251. package/dist/mcp/auth/repo-authorization.js +51 -0
  252. package/dist/mcp/auth/resource-server.d.ts +33 -2
  253. package/dist/mcp/auth/resource-server.js +99 -3
  254. package/dist/mcp/auth/self-hosted/browser.js +2 -2
  255. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  256. package/dist/mcp/auth/self-hosted/credentials.d.ts +23 -5
  257. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  258. package/dist/mcp/auth/self-hosted/session.d.ts +7 -6
  259. package/dist/mcp/context.d.ts +30 -1
  260. package/dist/mcp/errors.d.ts +25 -6
  261. package/dist/mcp/errors.js +98 -0
  262. package/dist/mcp/host-events/deliveries.d.ts +9 -0
  263. package/dist/mcp/host-events/deliveries.js +17 -0
  264. package/dist/mcp/host-events/github-ingress.d.ts +38 -0
  265. package/dist/mcp/host-events/github-ingress.js +83 -0
  266. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  267. package/dist/mcp/host-events/github-user-callback.js +50 -0
  268. package/dist/mcp/host-events/jira-ingress.d.ts +29 -0
  269. package/dist/mcp/host-events/jira-ingress.js +92 -0
  270. package/dist/mcp/index.d.ts +10 -1
  271. package/dist/mcp/index.js +187 -19
  272. package/dist/mcp/server.js +32 -11
  273. package/dist/mcp/tools/agents.js +519 -50
  274. package/dist/mcp/tools/budget-groups.js +3 -3
  275. package/dist/mcp/tools/cost-report.d.ts +8 -0
  276. package/dist/mcp/tools/cost-report.js +60 -0
  277. package/dist/mcp/tools/datastore.js +22 -15
  278. package/dist/mcp/tools/grants.d.ts +2 -0
  279. package/dist/mcp/tools/grants.js +239 -0
  280. package/dist/mcp/tools/help.d.ts +5 -0
  281. package/dist/mcp/tools/help.js +67 -0
  282. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  283. package/dist/mcp/tools/host-accounts.js +114 -0
  284. package/dist/mcp/tools/issue-projects.d.ts +2 -0
  285. package/dist/mcp/tools/issue-projects.js +238 -0
  286. package/dist/mcp/tools/memory.d.ts +7 -1
  287. package/dist/mcp/tools/memory.js +5 -5
  288. package/dist/mcp/tools/model-catalog.d.ts +22 -0
  289. package/dist/mcp/tools/model-catalog.js +423 -0
  290. package/dist/mcp/tools/repositories.d.ts +2 -0
  291. package/dist/mcp/tools/repositories.js +182 -0
  292. package/dist/mcp/tools/runs.d.ts +6 -0
  293. package/dist/mcp/tools/runs.js +60 -6
  294. package/dist/mcp/tools/scheduling.js +3 -6
  295. package/dist/mcp/tools/secrets.js +18 -6
  296. package/dist/mcp/tools/services.d.ts +2 -0
  297. package/dist/mcp/tools/services.js +222 -0
  298. package/dist/mcp/tools/subagents.js +52 -16
  299. package/dist/mcp/tools/tools.d.ts +41 -0
  300. package/dist/mcp/tools/tools.js +201 -40
  301. package/dist/mcp/tools/trigger.js +65 -7
  302. package/dist/mcp/tools/webhooks.js +15 -4
  303. package/dist/mcp/transport/streamable-http.d.ts +15 -0
  304. package/dist/mcp/transport/streamable-http.js +55 -3
  305. package/dist/mcp/webhooks/ingress.d.ts +2 -1
  306. package/dist/mcp/webhooks/ingress.js +9 -2
  307. package/dist/providers/auth/delegating.d.ts +19 -0
  308. package/dist/providers/auth/delegating.js +71 -0
  309. package/dist/providers/auth/index.d.ts +2 -0
  310. package/dist/providers/auth/index.js +11 -0
  311. package/dist/providers/auth/self-hosted.d.ts +10 -2
  312. package/dist/providers/auth/self-hosted.js +55 -6
  313. package/dist/providers/auth/types.d.ts +6 -0
  314. package/dist/providers/coding-proxy/memory-ledger.d.ts +4 -1
  315. package/dist/providers/coding-proxy/memory-ledger.js +31 -3
  316. package/dist/providers/coding-proxy/metering.d.ts +6 -1
  317. package/dist/providers/coding-proxy/metering.js +41 -4
  318. package/dist/providers/coding-proxy/prisma-ledger.d.ts +17 -0
  319. package/dist/providers/coding-proxy/prisma-ledger.js +106 -8
  320. package/dist/providers/coding-proxy/proxy.d.ts +25 -2
  321. package/dist/providers/coding-proxy/proxy.js +561 -38
  322. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  323. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  324. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  325. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  326. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  327. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  328. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  329. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  330. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  331. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  332. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  333. package/dist/providers/coding-proxy/registry/store.js +70 -0
  334. package/dist/providers/coding-proxy/runtime.d.ts +17 -0
  335. package/dist/providers/coding-proxy/runtime.js +63 -0
  336. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  337. package/dist/providers/coding-proxy/server.d.ts +11 -0
  338. package/dist/providers/coding-proxy/server.js +163 -0
  339. package/dist/providers/coding-proxy/types.d.ts +33 -1
  340. package/dist/providers/coding-proxy/types.js +12 -1
  341. package/dist/providers/engine/types.d.ts +29 -0
  342. package/dist/providers/executor/build.d.ts +2 -2
  343. package/dist/providers/executor/composition.d.ts +3 -0
  344. package/dist/providers/executor/composition.js +28 -1
  345. package/dist/providers/executor/container.d.ts +134 -4
  346. package/dist/providers/executor/container.js +394 -37
  347. package/dist/providers/executor/dbos.d.ts +4 -3
  348. package/dist/providers/executor/dbos.js +7 -5
  349. package/dist/providers/executor/in-process.d.ts +2 -3
  350. package/dist/providers/executor/routing.d.ts +13 -0
  351. package/dist/providers/executor/routing.js +18 -0
  352. package/dist/providers/executor/types.d.ts +34 -0
  353. package/dist/providers/issue-tracker/adf.d.ts +31 -0
  354. package/dist/providers/issue-tracker/adf.js +181 -0
  355. package/dist/providers/issue-tracker/index.d.ts +5 -0
  356. package/dist/providers/issue-tracker/index.js +12 -0
  357. package/dist/providers/issue-tracker/jira-client.d.ts +41 -0
  358. package/dist/providers/issue-tracker/jira-client.js +151 -0
  359. package/dist/providers/issue-tracker/jira-events.d.ts +3 -0
  360. package/dist/providers/issue-tracker/jira-events.js +98 -0
  361. package/dist/providers/issue-tracker/jira.d.ts +116 -0
  362. package/dist/providers/issue-tracker/jira.js +502 -0
  363. package/dist/providers/issue-tracker/types.d.ts +269 -0
  364. package/dist/providers/issue-tracker/types.js +16 -0
  365. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  366. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  367. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  368. package/dist/providers/jobs/collect-prune.js +27 -0
  369. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  370. package/dist/providers/jobs/docker-isolation.js +213 -22
  371. package/dist/providers/jobs/docker-services.d.ts +35 -0
  372. package/dist/providers/jobs/docker-services.js +191 -0
  373. package/dist/providers/jobs/docker.d.ts +53 -2
  374. package/dist/providers/jobs/docker.js +307 -32
  375. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  376. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  377. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  378. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  379. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  380. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  381. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  382. package/dist/providers/jobs/kubernetes.d.ts +24 -2
  383. package/dist/providers/jobs/kubernetes.js +153 -22
  384. package/dist/providers/jobs/service-state.d.ts +22 -0
  385. package/dist/providers/jobs/service-state.js +17 -0
  386. package/dist/providers/jobs/types.d.ts +18 -0
  387. package/dist/providers/llm/anthropic.d.ts +3 -3
  388. package/dist/providers/llm/anthropic.js +3 -5
  389. package/dist/providers/llm/bedrock.d.ts +3 -3
  390. package/dist/providers/llm/bedrock.js +3 -8
  391. package/dist/providers/llm/catalog-lookup.d.ts +10 -0
  392. package/dist/providers/llm/catalog-lookup.js +15 -0
  393. package/dist/providers/llm/catalog-shipped.d.ts +18 -0
  394. package/dist/providers/llm/catalog-shipped.js +197 -0
  395. package/dist/providers/llm/catalog-store.d.ts +58 -0
  396. package/dist/providers/llm/catalog-store.js +138 -0
  397. package/dist/providers/llm/catalog-types.d.ts +66 -0
  398. package/dist/providers/llm/catalog-types.js +64 -0
  399. package/dist/providers/llm/catalog.d.ts +61 -0
  400. package/dist/providers/llm/catalog.js +147 -0
  401. package/dist/providers/llm/claude-messages.d.ts +5 -1
  402. package/dist/providers/llm/claude-messages.js +1 -0
  403. package/dist/providers/llm/claude-provider.d.ts +10 -12
  404. package/dist/providers/llm/claude-provider.js +15 -6
  405. package/dist/providers/llm/index.d.ts +9 -6
  406. package/dist/providers/llm/index.js +8 -5
  407. package/dist/providers/llm/openai.d.ts +14 -5
  408. package/dist/providers/llm/openai.js +24 -14
  409. package/dist/providers/llm/pricing-core.d.ts +5 -3
  410. package/dist/providers/llm/registration.js +8 -12
  411. package/dist/providers/llm/routing.d.ts +21 -11
  412. package/dist/providers/llm/routing.js +47 -13
  413. package/dist/providers/llm/types.d.ts +12 -0
  414. package/dist/providers/llm/types.js +8 -1
  415. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  416. package/dist/providers/review-host/diff-lines.js +59 -0
  417. package/dist/providers/review-host/github-events.d.ts +6 -0
  418. package/dist/providers/review-host/github-events.js +226 -0
  419. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  420. package/dist/providers/review-host/github-user-auth.js +128 -0
  421. package/dist/providers/review-host/github.d.ts +57 -0
  422. package/dist/providers/review-host/github.js +568 -0
  423. package/dist/providers/review-host/index.d.ts +12 -0
  424. package/dist/providers/review-host/index.js +30 -0
  425. package/dist/providers/review-host/review-format.d.ts +19 -0
  426. package/dist/providers/review-host/review-format.js +59 -0
  427. package/dist/providers/review-host/types.d.ts +309 -0
  428. package/dist/providers/review-host/types.js +24 -0
  429. package/dist/providers/vcs/git.d.ts +16 -6
  430. package/dist/providers/vcs/git.js +78 -34
  431. package/dist/providers/vcs/github.d.ts +94 -3
  432. package/dist/providers/vcs/github.js +223 -17
  433. package/dist/providers/vcs/types.d.ts +48 -4
  434. package/dist/quickstart/index.d.ts +2 -0
  435. package/dist/quickstart/index.js +36 -8
  436. package/dist/sandbox/fetch-policy.d.ts +20 -2
  437. package/dist/sandbox/fetch-policy.js +64 -3
  438. package/dist/sandbox/host-functions.d.ts +9 -1
  439. package/dist/sandbox/host-functions.js +12 -5
  440. package/dist/serve.js +8 -2
  441. package/dist/viewer/api-schema.d.ts +2757 -0
  442. package/dist/viewer/api-schema.js +165 -0
  443. package/dist/viewer/build-schemas.d.ts +2 -0
  444. package/dist/viewer/build-schemas.js +18 -0
  445. package/dist/viewer/event-bus.d.ts +38 -0
  446. package/dist/viewer/event-bus.js +232 -0
  447. package/dist/viewer/graph.d.ts +40 -0
  448. package/dist/viewer/graph.js +243 -0
  449. package/dist/viewer/http.d.ts +30 -0
  450. package/dist/viewer/http.js +133 -0
  451. package/dist/viewer/run-detail.d.ts +4 -0
  452. package/dist/viewer/run-detail.js +61 -0
  453. package/dist/wardby-bin.js +11 -0
  454. package/docs/README.md +40 -0
  455. package/docs/agent-recipes.md +383 -0
  456. package/docs/architecture-runtime.md +90 -0
  457. package/docs/assets/brand/wardby-icon-512.png +0 -0
  458. package/docs/assets/brand/wardby-icon.svg +16 -0
  459. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  460. package/docs/assets/brand/wardby-mascot.png +0 -0
  461. package/docs/assets/brand/wardby-mascot.svg +5 -0
  462. package/docs/assets/wardby-workflow.svg +106 -0
  463. package/docs/code-review-agents.md +508 -0
  464. package/docs/coding-agent-setup.md +175 -0
  465. package/docs/coding-packages.md +455 -0
  466. package/docs/coding-services.md +300 -0
  467. package/docs/coding-worker-byo-images.md +98 -0
  468. package/docs/coding-worker-isolation.md +1068 -0
  469. package/docs/getting-started-gke.md +632 -0
  470. package/docs/getting-started-identity-provider.md +319 -0
  471. package/docs/getting-started.md +147 -0
  472. package/docs/jira-agents.md +649 -0
  473. package/docs/knowledge.md +387 -0
  474. package/docs/models.md +221 -0
  475. package/docs/observability.md +53 -0
  476. package/docs/release-verification.md +66 -0
  477. package/docs/security-deployment.md +667 -0
  478. package/docs/viewer-api.md +142 -0
  479. package/help/admin-viewer.md +39 -0
  480. package/help/agent-recipes.md +173 -0
  481. package/help/architecture-agent.md +189 -0
  482. package/help/builder-agent.md +80 -0
  483. package/help/code-review-agents.md +37 -0
  484. package/help/coding-packages.md +31 -0
  485. package/help/coding-services.md +71 -0
  486. package/help/cost-attribution.md +67 -0
  487. package/help/creating-agents.md +90 -0
  488. package/help/deploy-gke.md +45 -0
  489. package/help/deployment-targets.md +39 -0
  490. package/help/errors/budget-group-exhausted.md +25 -0
  491. package/help/errors/docker-isolation-unsupported.md +26 -0
  492. package/help/errors/model-unavailable.md +63 -0
  493. package/help/errors/protected-path.md +45 -0
  494. package/help/errors/repo-access.md +27 -0
  495. package/help/errors/service-declaration-invalid.md +27 -0
  496. package/help/errors/service-declaration-unavailable.md +25 -0
  497. package/help/errors/service-launcher-unsupported.md +30 -0
  498. package/help/errors/service-not-allowed.md +27 -0
  499. package/help/errors/service-unknown.md +23 -0
  500. package/help/errors/service-unready.md +49 -0
  501. package/help/getting-started.md +32 -0
  502. package/help/github.md +48 -0
  503. package/help/identity-and-access.md +44 -0
  504. package/help/jira.md +135 -0
  505. package/help/knowledge.md +47 -0
  506. package/help/mcp.md +30 -0
  507. package/help/models.md +90 -0
  508. package/help/native-capabilities.md +30 -0
  509. package/help/observability.md +41 -0
  510. package/help/operating-agents.md +36 -0
  511. package/help/security.md +27 -0
  512. package/help/troubleshooting/budgets.md +32 -0
  513. package/help/troubleshooting/coding-workers.md +47 -0
  514. package/help/troubleshooting/repository-access.md +27 -0
  515. package/package.json +14 -3
  516. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  517. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  518. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  519. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  520. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  521. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  522. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  523. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  524. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  525. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  526. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  527. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  528. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  529. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  530. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  531. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  532. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  533. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  534. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  535. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  536. package/prisma/migrations/20260930000000_jira_issue_projects/migration.sql +34 -0
  537. package/prisma/migrations/20261001000000_jira_phase2_allowlists/migration.sql +3 -0
  538. package/prisma/migrations/20261001010000_jira_link_types_allowlist/migration.sql +2 -0
  539. package/prisma/migrations/20261002000000_jira_coding_bridge/migration.sql +28 -0
  540. package/prisma/migrations/20261002010000_jira_issue_creation/migration.sql +25 -0
  541. package/prisma/migrations/20261003000000_issue_cost_attribution/migration.sql +56 -0
  542. package/prisma/migrations/20261003010000_coding_run_service_status/migration.sql +23 -0
  543. package/prisma/migrations/20261003020000_viewer_notify/migration.sql +54 -0
  544. package/prisma/migrations/20261003030000_viewer_notify_fixes/migration.sql +47 -0
  545. package/prisma/migrations/20261003040000_viewer_indexes/migration.sql +12 -0
  546. package/prisma/migrations/20261004000000_model_catalog/migration.sql +26 -0
  547. package/prisma/schema.prisma +663 -21
  548. package/dist/mcp/tools/models.d.ts +0 -8
  549. package/dist/mcp/tools/models.js +0 -15
  550. package/dist/providers/llm/pricing-anthropic.d.ts +0 -4
  551. package/dist/providers/llm/pricing-anthropic.js +0 -30
  552. package/dist/providers/llm/pricing-bedrock-claude.d.ts +0 -12
  553. package/dist/providers/llm/pricing-bedrock-claude.js +0 -37
  554. package/dist/providers/llm/pricing.d.ts +0 -30
  555. package/dist/providers/llm/pricing.js +0 -74
@@ -36,8 +36,11 @@ export type AgentMinAggregateOutputType = {
36
36
  lastScheduledAt: Date | null;
37
37
  maxTurns: number | null;
38
38
  ownerId: string | null;
39
+ defectProjectKey: string | null;
40
+ defectIssueType: string | null;
39
41
  budgetGroupId: string | null;
40
42
  memoryEnabled: boolean | null;
43
+ effort: string | null;
41
44
  };
42
45
  export type AgentMaxAggregateOutputType = {
43
46
  id: string | null;
@@ -54,8 +57,11 @@ export type AgentMaxAggregateOutputType = {
54
57
  lastScheduledAt: Date | null;
55
58
  maxTurns: number | null;
56
59
  ownerId: string | null;
60
+ defectProjectKey: string | null;
61
+ defectIssueType: string | null;
57
62
  budgetGroupId: string | null;
58
63
  memoryEnabled: boolean | null;
64
+ effort: string | null;
59
65
  };
60
66
  export type AgentCountAggregateOutputType = {
61
67
  id: number;
@@ -72,8 +78,11 @@ export type AgentCountAggregateOutputType = {
72
78
  lastScheduledAt: number;
73
79
  maxTurns: number;
74
80
  ownerId: number;
81
+ defectProjectKey: number;
82
+ defectIssueType: number;
75
83
  budgetGroupId: number;
76
84
  memoryEnabled: number;
85
+ effort: number;
77
86
  _all: number;
78
87
  };
79
88
  export type AgentAvgAggregateInputType = {
@@ -99,8 +108,11 @@ export type AgentMinAggregateInputType = {
99
108
  lastScheduledAt?: true;
100
109
  maxTurns?: true;
101
110
  ownerId?: true;
111
+ defectProjectKey?: true;
112
+ defectIssueType?: true;
102
113
  budgetGroupId?: true;
103
114
  memoryEnabled?: true;
115
+ effort?: true;
104
116
  };
105
117
  export type AgentMaxAggregateInputType = {
106
118
  id?: true;
@@ -117,8 +129,11 @@ export type AgentMaxAggregateInputType = {
117
129
  lastScheduledAt?: true;
118
130
  maxTurns?: true;
119
131
  ownerId?: true;
132
+ defectProjectKey?: true;
133
+ defectIssueType?: true;
120
134
  budgetGroupId?: true;
121
135
  memoryEnabled?: true;
136
+ effort?: true;
122
137
  };
123
138
  export type AgentCountAggregateInputType = {
124
139
  id?: true;
@@ -135,8 +150,11 @@ export type AgentCountAggregateInputType = {
135
150
  lastScheduledAt?: true;
136
151
  maxTurns?: true;
137
152
  ownerId?: true;
153
+ defectProjectKey?: true;
154
+ defectIssueType?: true;
138
155
  budgetGroupId?: true;
139
156
  memoryEnabled?: true;
157
+ effort?: true;
140
158
  _all?: true;
141
159
  };
142
160
  export type AgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -230,8 +248,11 @@ export type AgentGroupByOutputType = {
230
248
  lastScheduledAt: Date | null;
231
249
  maxTurns: number;
232
250
  ownerId: string | null;
251
+ defectProjectKey: string | null;
252
+ defectIssueType: string | null;
233
253
  budgetGroupId: string | null;
234
254
  memoryEnabled: boolean;
255
+ effort: string | null;
235
256
  _count: AgentCountAggregateOutputType | null;
236
257
  _avg: AgentAvgAggregateOutputType | null;
237
258
  _sum: AgentSumAggregateOutputType | null;
@@ -259,8 +280,11 @@ export type AgentWhereInput = {
259
280
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
260
281
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
261
282
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
283
+ defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
284
+ defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
262
285
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
263
286
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
287
+ effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
264
288
  runs?: Prisma.RunListRelationFilter;
265
289
  codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
266
290
  tools?: Prisma.AgentToolListRelationFilter;
@@ -268,6 +292,8 @@ export type AgentWhereInput = {
268
292
  secrets?: Prisma.AgentSecretListRelationFilter;
269
293
  datastores?: Prisma.AgentDatastoreListRelationFilter;
270
294
  webhooks?: Prisma.WebhookListRelationFilter;
295
+ repositories?: Prisma.AgentRepositoryListRelationFilter;
296
+ issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
271
297
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
272
298
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
273
299
  subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
@@ -287,8 +313,11 @@ export type AgentOrderByWithRelationInput = {
287
313
  lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
288
314
  maxTurns?: Prisma.SortOrder;
289
315
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ defectProjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ defectIssueType?: Prisma.SortOrderInput | Prisma.SortOrder;
290
318
  budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
291
319
  memoryEnabled?: Prisma.SortOrder;
320
+ effort?: Prisma.SortOrderInput | Prisma.SortOrder;
292
321
  runs?: Prisma.RunOrderByRelationAggregateInput;
293
322
  codingProfile?: Prisma.CodingAgentProfileOrderByWithRelationInput;
294
323
  tools?: Prisma.AgentToolOrderByRelationAggregateInput;
@@ -296,6 +325,8 @@ export type AgentOrderByWithRelationInput = {
296
325
  secrets?: Prisma.AgentSecretOrderByRelationAggregateInput;
297
326
  datastores?: Prisma.AgentDatastoreOrderByRelationAggregateInput;
298
327
  webhooks?: Prisma.WebhookOrderByRelationAggregateInput;
328
+ repositories?: Prisma.AgentRepositoryOrderByRelationAggregateInput;
329
+ issueProjects?: Prisma.AgentIssueProjectOrderByRelationAggregateInput;
299
330
  budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
300
331
  subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
301
332
  subAgentEdgesAsChild?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
@@ -318,8 +349,11 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
318
349
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
319
350
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
320
351
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
352
+ defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
353
+ defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
321
354
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
322
355
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
356
+ effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
323
357
  runs?: Prisma.RunListRelationFilter;
324
358
  codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
325
359
  tools?: Prisma.AgentToolListRelationFilter;
@@ -327,6 +361,8 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
327
361
  secrets?: Prisma.AgentSecretListRelationFilter;
328
362
  datastores?: Prisma.AgentDatastoreListRelationFilter;
329
363
  webhooks?: Prisma.WebhookListRelationFilter;
364
+ repositories?: Prisma.AgentRepositoryListRelationFilter;
365
+ issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
330
366
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
331
367
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
332
368
  subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
@@ -346,8 +382,11 @@ export type AgentOrderByWithAggregationInput = {
346
382
  lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
347
383
  maxTurns?: Prisma.SortOrder;
348
384
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
385
+ defectProjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
386
+ defectIssueType?: Prisma.SortOrderInput | Prisma.SortOrder;
349
387
  budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
350
388
  memoryEnabled?: Prisma.SortOrder;
389
+ effort?: Prisma.SortOrderInput | Prisma.SortOrder;
351
390
  _count?: Prisma.AgentCountOrderByAggregateInput;
352
391
  _avg?: Prisma.AgentAvgOrderByAggregateInput;
353
392
  _max?: Prisma.AgentMaxOrderByAggregateInput;
@@ -372,8 +411,11 @@ export type AgentScalarWhereWithAggregatesInput = {
372
411
  lastScheduledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null;
373
412
  maxTurns?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
374
413
  ownerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
414
+ defectProjectKey?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
415
+ defectIssueType?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
375
416
  budgetGroupId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
376
417
  memoryEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
418
+ effort?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
377
419
  };
378
420
  export type AgentCreateInput = {
379
421
  id?: string;
@@ -389,7 +431,10 @@ export type AgentCreateInput = {
389
431
  scheduleEnabled?: boolean;
390
432
  lastScheduledAt?: Date | string | null;
391
433
  maxTurns?: number;
434
+ defectProjectKey?: string | null;
435
+ defectIssueType?: string | null;
392
436
  memoryEnabled?: boolean;
437
+ effort?: string | null;
393
438
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
394
439
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
395
440
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -397,6 +442,8 @@ export type AgentCreateInput = {
397
442
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
398
443
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
399
444
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
445
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
446
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
400
447
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
401
448
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
402
449
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -416,14 +463,19 @@ export type AgentUncheckedCreateInput = {
416
463
  lastScheduledAt?: Date | string | null;
417
464
  maxTurns?: number;
418
465
  ownerId?: string | null;
466
+ defectProjectKey?: string | null;
467
+ defectIssueType?: string | null;
419
468
  budgetGroupId?: string | null;
420
469
  memoryEnabled?: boolean;
470
+ effort?: string | null;
421
471
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
422
472
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
423
473
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
424
474
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
425
475
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
426
476
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
477
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
478
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
427
479
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
428
480
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
429
481
  };
@@ -441,7 +493,10 @@ export type AgentUpdateInput = {
441
493
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
442
494
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
495
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
496
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
444
498
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
499
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
445
500
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
446
501
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
447
502
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -449,6 +504,8 @@ export type AgentUpdateInput = {
449
504
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
450
505
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
451
506
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
507
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
508
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
452
509
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
453
510
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
454
511
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -468,14 +525,19 @@ export type AgentUncheckedUpdateInput = {
468
525
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
469
526
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
470
527
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
529
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
530
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
472
531
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
532
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
533
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
474
534
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
475
535
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
476
536
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
477
537
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
478
538
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
539
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
540
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
479
541
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
480
542
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
481
543
  };
@@ -494,8 +556,11 @@ export type AgentCreateManyInput = {
494
556
  lastScheduledAt?: Date | string | null;
495
557
  maxTurns?: number;
496
558
  ownerId?: string | null;
559
+ defectProjectKey?: string | null;
560
+ defectIssueType?: string | null;
497
561
  budgetGroupId?: string | null;
498
562
  memoryEnabled?: boolean;
563
+ effort?: string | null;
499
564
  };
500
565
  export type AgentUpdateManyMutationInput = {
501
566
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -511,7 +576,10 @@ export type AgentUpdateManyMutationInput = {
511
576
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
512
577
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
513
578
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
579
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
580
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
581
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
582
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
583
  };
516
584
  export type AgentUncheckedUpdateManyInput = {
517
585
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -528,8 +596,11 @@ export type AgentUncheckedUpdateManyInput = {
528
596
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
529
597
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
530
598
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
599
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
600
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
601
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
532
602
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
603
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
533
604
  };
534
605
  export type AgentCountOrderByAggregateInput = {
535
606
  id?: Prisma.SortOrder;
@@ -546,8 +617,11 @@ export type AgentCountOrderByAggregateInput = {
546
617
  lastScheduledAt?: Prisma.SortOrder;
547
618
  maxTurns?: Prisma.SortOrder;
548
619
  ownerId?: Prisma.SortOrder;
620
+ defectProjectKey?: Prisma.SortOrder;
621
+ defectIssueType?: Prisma.SortOrder;
549
622
  budgetGroupId?: Prisma.SortOrder;
550
623
  memoryEnabled?: Prisma.SortOrder;
624
+ effort?: Prisma.SortOrder;
551
625
  };
552
626
  export type AgentAvgOrderByAggregateInput = {
553
627
  budgetUsd?: Prisma.SortOrder;
@@ -568,8 +642,11 @@ export type AgentMaxOrderByAggregateInput = {
568
642
  lastScheduledAt?: Prisma.SortOrder;
569
643
  maxTurns?: Prisma.SortOrder;
570
644
  ownerId?: Prisma.SortOrder;
645
+ defectProjectKey?: Prisma.SortOrder;
646
+ defectIssueType?: Prisma.SortOrder;
571
647
  budgetGroupId?: Prisma.SortOrder;
572
648
  memoryEnabled?: Prisma.SortOrder;
649
+ effort?: Prisma.SortOrder;
573
650
  };
574
651
  export type AgentMinOrderByAggregateInput = {
575
652
  id?: Prisma.SortOrder;
@@ -586,8 +663,11 @@ export type AgentMinOrderByAggregateInput = {
586
663
  lastScheduledAt?: Prisma.SortOrder;
587
664
  maxTurns?: Prisma.SortOrder;
588
665
  ownerId?: Prisma.SortOrder;
666
+ defectProjectKey?: Prisma.SortOrder;
667
+ defectIssueType?: Prisma.SortOrder;
589
668
  budgetGroupId?: Prisma.SortOrder;
590
669
  memoryEnabled?: Prisma.SortOrder;
670
+ effort?: Prisma.SortOrder;
591
671
  };
592
672
  export type AgentSumOrderByAggregateInput = {
593
673
  budgetUsd?: Prisma.SortOrder;
@@ -809,6 +889,30 @@ export type AgentUpdateOneRequiredWithoutWebhooksNestedInput = {
809
889
  connect?: Prisma.AgentWhereUniqueInput;
810
890
  update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutWebhooksInput, Prisma.AgentUpdateWithoutWebhooksInput>, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
811
891
  };
892
+ export type AgentCreateNestedOneWithoutRepositoriesInput = {
893
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
894
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRepositoriesInput;
895
+ connect?: Prisma.AgentWhereUniqueInput;
896
+ };
897
+ export type AgentUpdateOneRequiredWithoutRepositoriesNestedInput = {
898
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
899
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRepositoriesInput;
900
+ upsert?: Prisma.AgentUpsertWithoutRepositoriesInput;
901
+ connect?: Prisma.AgentWhereUniqueInput;
902
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutRepositoriesInput, Prisma.AgentUpdateWithoutRepositoriesInput>, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
903
+ };
904
+ export type AgentCreateNestedOneWithoutIssueProjectsInput = {
905
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutIssueProjectsInput, Prisma.AgentUncheckedCreateWithoutIssueProjectsInput>;
906
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutIssueProjectsInput;
907
+ connect?: Prisma.AgentWhereUniqueInput;
908
+ };
909
+ export type AgentUpdateOneRequiredWithoutIssueProjectsNestedInput = {
910
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutIssueProjectsInput, Prisma.AgentUncheckedCreateWithoutIssueProjectsInput>;
911
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutIssueProjectsInput;
912
+ upsert?: Prisma.AgentUpsertWithoutIssueProjectsInput;
913
+ connect?: Prisma.AgentWhereUniqueInput;
914
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutIssueProjectsInput, Prisma.AgentUpdateWithoutIssueProjectsInput>, Prisma.AgentUncheckedUpdateWithoutIssueProjectsInput>;
915
+ };
812
916
  export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
813
917
  id?: string;
814
918
  name: string;
@@ -823,7 +927,10 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
823
927
  scheduleEnabled?: boolean;
824
928
  lastScheduledAt?: Date | string | null;
825
929
  maxTurns?: number;
930
+ defectProjectKey?: string | null;
931
+ defectIssueType?: string | null;
826
932
  memoryEnabled?: boolean;
933
+ effort?: string | null;
827
934
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
828
935
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
829
936
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -831,6 +938,8 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
831
938
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
832
939
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
833
940
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
941
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
942
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
834
943
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
835
944
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
836
945
  };
@@ -849,14 +958,19 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
849
958
  lastScheduledAt?: Date | string | null;
850
959
  maxTurns?: number;
851
960
  ownerId?: string | null;
961
+ defectProjectKey?: string | null;
962
+ defectIssueType?: string | null;
852
963
  budgetGroupId?: string | null;
853
964
  memoryEnabled?: boolean;
965
+ effort?: string | null;
854
966
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
855
967
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
856
968
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
857
969
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
858
970
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
859
971
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
972
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
973
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
860
974
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
861
975
  };
862
976
  export type AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput = {
@@ -877,7 +991,10 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
877
991
  scheduleEnabled?: boolean;
878
992
  lastScheduledAt?: Date | string | null;
879
993
  maxTurns?: number;
994
+ defectProjectKey?: string | null;
995
+ defectIssueType?: string | null;
880
996
  memoryEnabled?: boolean;
997
+ effort?: string | null;
881
998
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
882
999
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
883
1000
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -885,6 +1002,8 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
885
1002
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
886
1003
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
887
1004
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1005
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1006
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
888
1007
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
889
1008
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
890
1009
  };
@@ -903,14 +1022,19 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
903
1022
  lastScheduledAt?: Date | string | null;
904
1023
  maxTurns?: number;
905
1024
  ownerId?: string | null;
1025
+ defectProjectKey?: string | null;
1026
+ defectIssueType?: string | null;
906
1027
  budgetGroupId?: string | null;
907
1028
  memoryEnabled?: boolean;
1029
+ effort?: string | null;
908
1030
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
909
1031
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
910
1032
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
911
1033
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
912
1034
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
913
1035
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1036
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1037
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
914
1038
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
915
1039
  };
916
1040
  export type AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput = {
@@ -940,7 +1064,10 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
940
1064
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
941
1065
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
942
1066
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1067
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1068
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
943
1069
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1070
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
944
1071
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
945
1072
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
946
1073
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -948,6 +1075,8 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
948
1075
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
949
1076
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
950
1077
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1078
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1079
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
951
1080
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
952
1081
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
953
1082
  };
@@ -966,14 +1095,19 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
966
1095
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
967
1096
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
968
1097
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1099
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
969
1100
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
970
1101
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1102
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
971
1103
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
972
1104
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
973
1105
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
974
1106
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
975
1107
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
976
1108
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1109
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1110
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
977
1111
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
978
1112
  };
979
1113
  export type AgentUpsertWithoutSubAgentEdgesAsChildInput = {
@@ -999,7 +1133,10 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
999
1133
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1000
1134
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1001
1135
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1136
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1137
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1002
1138
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1139
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1003
1140
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1004
1141
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1005
1142
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -1007,6 +1144,8 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1007
1144
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1008
1145
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1009
1146
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1147
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1148
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1010
1149
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1011
1150
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1012
1151
  };
@@ -1025,14 +1164,19 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1025
1164
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1026
1165
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1027
1166
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1167
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1168
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1028
1169
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
1170
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1171
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1030
1172
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1031
1173
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1032
1174
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1033
1175
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1034
1176
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1035
1177
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1178
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1179
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1036
1180
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1037
1181
  };
1038
1182
  export type AgentCreateWithoutBudgetGroupInput = {
@@ -1049,7 +1193,10 @@ export type AgentCreateWithoutBudgetGroupInput = {
1049
1193
  scheduleEnabled?: boolean;
1050
1194
  lastScheduledAt?: Date | string | null;
1051
1195
  maxTurns?: number;
1196
+ defectProjectKey?: string | null;
1197
+ defectIssueType?: string | null;
1052
1198
  memoryEnabled?: boolean;
1199
+ effort?: string | null;
1053
1200
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1054
1201
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1055
1202
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
@@ -1057,6 +1204,8 @@ export type AgentCreateWithoutBudgetGroupInput = {
1057
1204
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1058
1205
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1059
1206
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1207
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1208
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1060
1209
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1061
1210
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1062
1211
  };
@@ -1075,13 +1224,18 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1075
1224
  lastScheduledAt?: Date | string | null;
1076
1225
  maxTurns?: number;
1077
1226
  ownerId?: string | null;
1227
+ defectProjectKey?: string | null;
1228
+ defectIssueType?: string | null;
1078
1229
  memoryEnabled?: boolean;
1230
+ effort?: string | null;
1079
1231
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1080
1232
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1081
1233
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1082
1234
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1083
1235
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1084
1236
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1237
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1238
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1085
1239
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1086
1240
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1087
1241
  };
@@ -1124,8 +1278,11 @@ export type AgentScalarWhereInput = {
1124
1278
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
1125
1279
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
1126
1280
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1281
+ defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
1282
+ defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
1127
1283
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1128
1284
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1285
+ effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
1129
1286
  };
1130
1287
  export type AgentCreateWithoutToolsInput = {
1131
1288
  id?: string;
@@ -1141,13 +1298,18 @@ export type AgentCreateWithoutToolsInput = {
1141
1298
  scheduleEnabled?: boolean;
1142
1299
  lastScheduledAt?: Date | string | null;
1143
1300
  maxTurns?: number;
1301
+ defectProjectKey?: string | null;
1302
+ defectIssueType?: string | null;
1144
1303
  memoryEnabled?: boolean;
1304
+ effort?: string | null;
1145
1305
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1146
1306
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1147
1307
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1148
1308
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1149
1309
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1150
1310
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1311
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1312
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1151
1313
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1152
1314
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1153
1315
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1167,13 +1329,18 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1167
1329
  lastScheduledAt?: Date | string | null;
1168
1330
  maxTurns?: number;
1169
1331
  ownerId?: string | null;
1332
+ defectProjectKey?: string | null;
1333
+ defectIssueType?: string | null;
1170
1334
  budgetGroupId?: string | null;
1171
1335
  memoryEnabled?: boolean;
1336
+ effort?: string | null;
1172
1337
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1173
1338
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1174
1339
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1175
1340
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1176
1341
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1342
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1343
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1177
1344
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1178
1345
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1179
1346
  };
@@ -1204,13 +1371,18 @@ export type AgentUpdateWithoutToolsInput = {
1204
1371
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1205
1372
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1206
1373
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1374
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1375
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1207
1376
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1377
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1208
1378
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1209
1379
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1210
1380
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1211
1381
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1212
1382
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1213
1383
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1384
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1385
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1214
1386
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1215
1387
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1216
1388
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1230,13 +1402,18 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1230
1402
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1231
1403
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1232
1404
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1405
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1406
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1233
1407
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1234
1408
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1409
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1235
1410
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1236
1411
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1237
1412
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1238
1413
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1239
1414
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1415
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1416
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1240
1417
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1241
1418
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1242
1419
  };
@@ -1254,13 +1431,18 @@ export type AgentCreateWithoutDatastoresInput = {
1254
1431
  scheduleEnabled?: boolean;
1255
1432
  lastScheduledAt?: Date | string | null;
1256
1433
  maxTurns?: number;
1434
+ defectProjectKey?: string | null;
1435
+ defectIssueType?: string | null;
1257
1436
  memoryEnabled?: boolean;
1437
+ effort?: string | null;
1258
1438
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1259
1439
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1260
1440
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1261
1441
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1262
1442
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1263
1443
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1444
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1445
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1264
1446
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1265
1447
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1266
1448
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1280,13 +1462,18 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1280
1462
  lastScheduledAt?: Date | string | null;
1281
1463
  maxTurns?: number;
1282
1464
  ownerId?: string | null;
1465
+ defectProjectKey?: string | null;
1466
+ defectIssueType?: string | null;
1283
1467
  budgetGroupId?: string | null;
1284
1468
  memoryEnabled?: boolean;
1469
+ effort?: string | null;
1285
1470
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1286
1471
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1287
1472
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1288
1473
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1289
1474
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1475
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1476
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1290
1477
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1291
1478
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1292
1479
  };
@@ -1317,13 +1504,18 @@ export type AgentUpdateWithoutDatastoresInput = {
1317
1504
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1318
1505
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1319
1506
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1507
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1508
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1320
1509
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1510
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1321
1511
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1322
1512
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1323
1513
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1324
1514
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1325
1515
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1326
1516
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1517
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1518
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1327
1519
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1328
1520
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1329
1521
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1343,13 +1535,18 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1343
1535
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1344
1536
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1345
1537
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1538
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1539
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1346
1540
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1347
1541
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1542
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1348
1543
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1349
1544
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1350
1545
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1351
1546
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1352
1547
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1548
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1549
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1353
1550
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1354
1551
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1355
1552
  };
@@ -1367,13 +1564,18 @@ export type AgentCreateWithoutRunsInput = {
1367
1564
  scheduleEnabled?: boolean;
1368
1565
  lastScheduledAt?: Date | string | null;
1369
1566
  maxTurns?: number;
1567
+ defectProjectKey?: string | null;
1568
+ defectIssueType?: string | null;
1370
1569
  memoryEnabled?: boolean;
1570
+ effort?: string | null;
1371
1571
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1372
1572
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1373
1573
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1374
1574
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1375
1575
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1376
1576
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1577
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1578
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1377
1579
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1378
1580
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1379
1581
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1393,13 +1595,18 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1393
1595
  lastScheduledAt?: Date | string | null;
1394
1596
  maxTurns?: number;
1395
1597
  ownerId?: string | null;
1598
+ defectProjectKey?: string | null;
1599
+ defectIssueType?: string | null;
1396
1600
  budgetGroupId?: string | null;
1397
1601
  memoryEnabled?: boolean;
1602
+ effort?: string | null;
1398
1603
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1399
1604
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1400
1605
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1401
1606
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1402
1607
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1608
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1609
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1403
1610
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1404
1611
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1405
1612
  };
@@ -1430,13 +1637,18 @@ export type AgentUpdateWithoutRunsInput = {
1430
1637
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1431
1638
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1432
1639
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1640
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1641
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1433
1642
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1643
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1434
1644
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1435
1645
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1436
1646
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1437
1647
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1438
1648
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1439
1649
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1650
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1651
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1440
1652
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1441
1653
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1442
1654
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1456,13 +1668,18 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1456
1668
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1457
1669
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1458
1670
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1671
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1672
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1459
1673
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
1674
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1675
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1461
1676
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1462
1677
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1463
1678
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1464
1679
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1465
1680
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1681
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1682
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1466
1683
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1467
1684
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1468
1685
  };
@@ -1480,13 +1697,18 @@ export type AgentCreateWithoutCodingProfileInput = {
1480
1697
  scheduleEnabled?: boolean;
1481
1698
  lastScheduledAt?: Date | string | null;
1482
1699
  maxTurns?: number;
1700
+ defectProjectKey?: string | null;
1701
+ defectIssueType?: string | null;
1483
1702
  memoryEnabled?: boolean;
1703
+ effort?: string | null;
1484
1704
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1485
1705
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1486
1706
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1487
1707
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1488
1708
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1489
1709
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1710
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1711
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1490
1712
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1491
1713
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1492
1714
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1506,13 +1728,18 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1506
1728
  lastScheduledAt?: Date | string | null;
1507
1729
  maxTurns?: number;
1508
1730
  ownerId?: string | null;
1731
+ defectProjectKey?: string | null;
1732
+ defectIssueType?: string | null;
1509
1733
  budgetGroupId?: string | null;
1510
1734
  memoryEnabled?: boolean;
1735
+ effort?: string | null;
1511
1736
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1512
1737
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1513
1738
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1514
1739
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1515
1740
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1741
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1742
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1516
1743
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1517
1744
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1518
1745
  };
@@ -1543,13 +1770,18 @@ export type AgentUpdateWithoutCodingProfileInput = {
1543
1770
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1544
1771
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1545
1772
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1773
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1774
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1546
1775
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1776
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1547
1777
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1548
1778
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1549
1779
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1550
1780
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1551
1781
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1552
1782
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1783
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1784
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1553
1785
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1554
1786
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1555
1787
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1569,13 +1801,18 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1569
1801
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1570
1802
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1571
1803
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1804
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1805
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1572
1806
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1573
1807
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1808
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1574
1809
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1575
1810
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1576
1811
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1577
1812
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1578
1813
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1814
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1815
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1579
1816
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1580
1817
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1581
1818
  };
@@ -1593,13 +1830,18 @@ export type AgentCreateWithoutOwnerInput = {
1593
1830
  scheduleEnabled?: boolean;
1594
1831
  lastScheduledAt?: Date | string | null;
1595
1832
  maxTurns?: number;
1833
+ defectProjectKey?: string | null;
1834
+ defectIssueType?: string | null;
1596
1835
  memoryEnabled?: boolean;
1836
+ effort?: string | null;
1597
1837
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1598
1838
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1599
1839
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1600
1840
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1601
1841
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1602
1842
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1843
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1844
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1603
1845
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1604
1846
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1605
1847
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1618,14 +1860,19 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
1618
1860
  scheduleEnabled?: boolean;
1619
1861
  lastScheduledAt?: Date | string | null;
1620
1862
  maxTurns?: number;
1863
+ defectProjectKey?: string | null;
1864
+ defectIssueType?: string | null;
1621
1865
  budgetGroupId?: string | null;
1622
1866
  memoryEnabled?: boolean;
1867
+ effort?: string | null;
1623
1868
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1624
1869
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1625
1870
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1626
1871
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1627
1872
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1628
1873
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1874
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1875
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1629
1876
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1630
1877
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1631
1878
  };
@@ -1664,13 +1911,18 @@ export type AgentCreateWithoutSecretsInput = {
1664
1911
  scheduleEnabled?: boolean;
1665
1912
  lastScheduledAt?: Date | string | null;
1666
1913
  maxTurns?: number;
1914
+ defectProjectKey?: string | null;
1915
+ defectIssueType?: string | null;
1667
1916
  memoryEnabled?: boolean;
1917
+ effort?: string | null;
1668
1918
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1669
1919
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1670
1920
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1671
1921
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1672
1922
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1673
1923
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1924
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1925
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1674
1926
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1675
1927
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1676
1928
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1690,13 +1942,18 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
1690
1942
  lastScheduledAt?: Date | string | null;
1691
1943
  maxTurns?: number;
1692
1944
  ownerId?: string | null;
1945
+ defectProjectKey?: string | null;
1946
+ defectIssueType?: string | null;
1693
1947
  budgetGroupId?: string | null;
1694
1948
  memoryEnabled?: boolean;
1949
+ effort?: string | null;
1695
1950
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1696
1951
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1697
1952
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1698
1953
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1699
1954
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1955
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1956
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1700
1957
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1701
1958
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1702
1959
  };
@@ -1727,13 +1984,18 @@ export type AgentUpdateWithoutSecretsInput = {
1727
1984
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1728
1985
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1729
1986
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1987
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1988
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1730
1989
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1990
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1731
1991
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1732
1992
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1733
1993
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1734
1994
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1735
1995
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1736
1996
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1997
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1998
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1737
1999
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1738
2000
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1739
2001
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1753,13 +2015,18 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
1753
2015
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1754
2016
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1755
2017
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2018
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2019
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1756
2020
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
2021
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2022
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
2023
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1759
2024
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1760
2025
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1761
2026
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1762
2027
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2028
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2029
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1763
2030
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1764
2031
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1765
2032
  };
@@ -1777,13 +2044,18 @@ export type AgentCreateWithoutWebhooksInput = {
1777
2044
  scheduleEnabled?: boolean;
1778
2045
  lastScheduledAt?: Date | string | null;
1779
2046
  maxTurns?: number;
2047
+ defectProjectKey?: string | null;
2048
+ defectIssueType?: string | null;
1780
2049
  memoryEnabled?: boolean;
2050
+ effort?: string | null;
1781
2051
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1782
2052
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1783
2053
  tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1784
2054
  owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1785
2055
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1786
2056
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2057
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2058
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1787
2059
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1788
2060
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1789
2061
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1803,13 +2075,18 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
1803
2075
  lastScheduledAt?: Date | string | null;
1804
2076
  maxTurns?: number;
1805
2077
  ownerId?: string | null;
2078
+ defectProjectKey?: string | null;
2079
+ defectIssueType?: string | null;
1806
2080
  budgetGroupId?: string | null;
1807
2081
  memoryEnabled?: boolean;
2082
+ effort?: string | null;
1808
2083
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1809
2084
  codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1810
2085
  tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1811
2086
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1812
2087
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2088
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2089
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1813
2090
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1814
2091
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1815
2092
  };
@@ -1840,13 +2117,18 @@ export type AgentUpdateWithoutWebhooksInput = {
1840
2117
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1841
2118
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1842
2119
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2120
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2121
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1843
2122
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2123
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1844
2124
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1845
2125
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1846
2126
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1847
2127
  owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1848
2128
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1849
2129
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2130
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2131
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1850
2132
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1851
2133
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1852
2134
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1866,13 +2148,284 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
1866
2148
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1867
2149
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1868
2150
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2151
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2152
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2153
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2154
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2155
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2156
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2157
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2158
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2159
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2160
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2161
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2162
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2163
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2164
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2165
+ };
2166
+ export type AgentCreateWithoutRepositoriesInput = {
2167
+ id?: string;
2168
+ name: string;
2169
+ systemPrompt: string;
2170
+ model: string;
2171
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2172
+ createdAt?: Date | string;
2173
+ updatedAt?: Date | string;
2174
+ kind?: $Enums.AgentKind;
2175
+ schedule?: string | null;
2176
+ timezone?: string;
2177
+ scheduleEnabled?: boolean;
2178
+ lastScheduledAt?: Date | string | null;
2179
+ maxTurns?: number;
2180
+ defectProjectKey?: string | null;
2181
+ defectIssueType?: string | null;
2182
+ memoryEnabled?: boolean;
2183
+ effort?: string | null;
2184
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2185
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2186
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
2187
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
2188
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2189
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2190
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2191
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2192
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2193
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2194
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
2195
+ };
2196
+ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2197
+ id?: string;
2198
+ name: string;
2199
+ systemPrompt: string;
2200
+ model: string;
2201
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2202
+ createdAt?: Date | string;
2203
+ updatedAt?: Date | string;
2204
+ kind?: $Enums.AgentKind;
2205
+ schedule?: string | null;
2206
+ timezone?: string;
2207
+ scheduleEnabled?: boolean;
2208
+ lastScheduledAt?: Date | string | null;
2209
+ maxTurns?: number;
2210
+ ownerId?: string | null;
2211
+ defectProjectKey?: string | null;
2212
+ defectIssueType?: string | null;
2213
+ budgetGroupId?: string | null;
2214
+ memoryEnabled?: boolean;
2215
+ effort?: string | null;
2216
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2217
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2218
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
2219
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2220
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2221
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2222
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2223
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2224
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2225
+ };
2226
+ export type AgentCreateOrConnectWithoutRepositoriesInput = {
2227
+ where: Prisma.AgentWhereUniqueInput;
2228
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
2229
+ };
2230
+ export type AgentUpsertWithoutRepositoriesInput = {
2231
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutRepositoriesInput, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
2232
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
2233
+ where?: Prisma.AgentWhereInput;
2234
+ };
2235
+ export type AgentUpdateToOneWithWhereWithoutRepositoriesInput = {
2236
+ where?: Prisma.AgentWhereInput;
2237
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutRepositoriesInput, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
2238
+ };
2239
+ export type AgentUpdateWithoutRepositoriesInput = {
2240
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2241
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2242
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2243
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2244
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2245
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2246
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2247
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2248
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2249
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2250
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2251
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2252
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2253
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2254
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2255
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2256
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2257
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2258
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2259
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
2260
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
2261
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2262
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2263
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2264
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2265
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2266
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2267
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2268
+ };
2269
+ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2270
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2271
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2272
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2273
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2274
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2275
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2276
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2277
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2278
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2279
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2280
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2281
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2282
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2283
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2284
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2285
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2286
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2287
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2288
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2289
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2290
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2291
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2292
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2293
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2294
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2295
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2296
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2297
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2298
+ };
2299
+ export type AgentCreateWithoutIssueProjectsInput = {
2300
+ id?: string;
2301
+ name: string;
2302
+ systemPrompt: string;
2303
+ model: string;
2304
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2305
+ createdAt?: Date | string;
2306
+ updatedAt?: Date | string;
2307
+ kind?: $Enums.AgentKind;
2308
+ schedule?: string | null;
2309
+ timezone?: string;
2310
+ scheduleEnabled?: boolean;
2311
+ lastScheduledAt?: Date | string | null;
2312
+ maxTurns?: number;
2313
+ defectProjectKey?: string | null;
2314
+ defectIssueType?: string | null;
2315
+ memoryEnabled?: boolean;
2316
+ effort?: string | null;
2317
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2318
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2319
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
2320
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
2321
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2322
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2323
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2324
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2325
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2326
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2327
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
2328
+ };
2329
+ export type AgentUncheckedCreateWithoutIssueProjectsInput = {
2330
+ id?: string;
2331
+ name: string;
2332
+ systemPrompt: string;
2333
+ model: string;
2334
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2335
+ createdAt?: Date | string;
2336
+ updatedAt?: Date | string;
2337
+ kind?: $Enums.AgentKind;
2338
+ schedule?: string | null;
2339
+ timezone?: string;
2340
+ scheduleEnabled?: boolean;
2341
+ lastScheduledAt?: Date | string | null;
2342
+ maxTurns?: number;
2343
+ ownerId?: string | null;
2344
+ defectProjectKey?: string | null;
2345
+ defectIssueType?: string | null;
2346
+ budgetGroupId?: string | null;
2347
+ memoryEnabled?: boolean;
2348
+ effort?: string | null;
2349
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2350
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2351
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
2352
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2353
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2354
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2355
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2356
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2357
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2358
+ };
2359
+ export type AgentCreateOrConnectWithoutIssueProjectsInput = {
2360
+ where: Prisma.AgentWhereUniqueInput;
2361
+ create: Prisma.XOR<Prisma.AgentCreateWithoutIssueProjectsInput, Prisma.AgentUncheckedCreateWithoutIssueProjectsInput>;
2362
+ };
2363
+ export type AgentUpsertWithoutIssueProjectsInput = {
2364
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutIssueProjectsInput, Prisma.AgentUncheckedUpdateWithoutIssueProjectsInput>;
2365
+ create: Prisma.XOR<Prisma.AgentCreateWithoutIssueProjectsInput, Prisma.AgentUncheckedCreateWithoutIssueProjectsInput>;
2366
+ where?: Prisma.AgentWhereInput;
2367
+ };
2368
+ export type AgentUpdateToOneWithWhereWithoutIssueProjectsInput = {
2369
+ where?: Prisma.AgentWhereInput;
2370
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutIssueProjectsInput, Prisma.AgentUncheckedUpdateWithoutIssueProjectsInput>;
2371
+ };
2372
+ export type AgentUpdateWithoutIssueProjectsInput = {
2373
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2374
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2375
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2376
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2377
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2379
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2380
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2381
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2382
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2383
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2384
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2385
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2386
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2387
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2388
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2389
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2390
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2391
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2392
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
2393
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
2394
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2395
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2396
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2397
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2398
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2399
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2400
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2401
+ };
2402
+ export type AgentUncheckedUpdateWithoutIssueProjectsInput = {
2403
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2404
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2405
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2406
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2407
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2408
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2409
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2410
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2411
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2412
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2413
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2414
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2415
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2416
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2417
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2418
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1869
2419
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1870
2420
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2421
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1871
2422
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1872
2423
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1873
2424
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1874
2425
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1875
2426
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2427
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2428
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1876
2429
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1877
2430
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1878
2431
  };
@@ -1891,7 +2444,10 @@ export type AgentCreateManyBudgetGroupInput = {
1891
2444
  lastScheduledAt?: Date | string | null;
1892
2445
  maxTurns?: number;
1893
2446
  ownerId?: string | null;
2447
+ defectProjectKey?: string | null;
2448
+ defectIssueType?: string | null;
1894
2449
  memoryEnabled?: boolean;
2450
+ effort?: string | null;
1895
2451
  };
1896
2452
  export type AgentUpdateWithoutBudgetGroupInput = {
1897
2453
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1907,7 +2463,10 @@ export type AgentUpdateWithoutBudgetGroupInput = {
1907
2463
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1908
2464
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1909
2465
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2466
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2467
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1910
2468
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2469
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1911
2470
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1912
2471
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1913
2472
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
@@ -1915,6 +2474,8 @@ export type AgentUpdateWithoutBudgetGroupInput = {
1915
2474
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1916
2475
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1917
2476
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2477
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2478
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1918
2479
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1919
2480
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1920
2481
  };
@@ -1933,13 +2494,18 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
1933
2494
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1934
2495
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1935
2496
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2497
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2498
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1936
2499
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2500
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1937
2501
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1938
2502
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1939
2503
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1940
2504
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1941
2505
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1942
2506
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2507
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2508
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1943
2509
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1944
2510
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1945
2511
  };
@@ -1958,7 +2524,10 @@ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
1958
2524
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1959
2525
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1960
2526
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2527
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2528
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1961
2529
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2530
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1962
2531
  };
1963
2532
  export type AgentCreateManyOwnerInput = {
1964
2533
  id?: string;
@@ -1974,8 +2543,11 @@ export type AgentCreateManyOwnerInput = {
1974
2543
  scheduleEnabled?: boolean;
1975
2544
  lastScheduledAt?: Date | string | null;
1976
2545
  maxTurns?: number;
2546
+ defectProjectKey?: string | null;
2547
+ defectIssueType?: string | null;
1977
2548
  budgetGroupId?: string | null;
1978
2549
  memoryEnabled?: boolean;
2550
+ effort?: string | null;
1979
2551
  };
1980
2552
  export type AgentUpdateWithoutOwnerInput = {
1981
2553
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1991,13 +2563,18 @@ export type AgentUpdateWithoutOwnerInput = {
1991
2563
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1992
2564
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1993
2565
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2566
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2567
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1994
2568
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2569
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1995
2570
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1996
2571
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1997
2572
  tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1998
2573
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1999
2574
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2000
2575
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2576
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2577
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2001
2578
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2002
2579
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2003
2580
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2016,14 +2593,19 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2016
2593
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2017
2594
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2018
2595
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2596
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2597
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2019
2598
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2020
2599
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2600
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2021
2601
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2022
2602
  codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2023
2603
  tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2024
2604
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2025
2605
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2026
2606
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2607
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2608
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2027
2609
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2028
2610
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2029
2611
  };
@@ -2041,8 +2623,11 @@ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2041
2623
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2042
2624
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2043
2625
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2626
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2627
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2044
2628
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2045
2629
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2630
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2046
2631
  };
2047
2632
  /**
2048
2633
  * Count Type AgentCountOutputType
@@ -2053,6 +2638,8 @@ export type AgentCountOutputType = {
2053
2638
  secrets: number;
2054
2639
  datastores: number;
2055
2640
  webhooks: number;
2641
+ repositories: number;
2642
+ issueProjects: number;
2056
2643
  subAgentEdgesAsParent: number;
2057
2644
  subAgentEdgesAsChild: number;
2058
2645
  };
@@ -2062,6 +2649,8 @@ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.
2062
2649
  secrets?: boolean | AgentCountOutputTypeCountSecretsArgs;
2063
2650
  datastores?: boolean | AgentCountOutputTypeCountDatastoresArgs;
2064
2651
  webhooks?: boolean | AgentCountOutputTypeCountWebhooksArgs;
2652
+ repositories?: boolean | AgentCountOutputTypeCountRepositoriesArgs;
2653
+ issueProjects?: boolean | AgentCountOutputTypeCountIssueProjectsArgs;
2065
2654
  subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
2066
2655
  subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
2067
2656
  };
@@ -2104,6 +2693,18 @@ export type AgentCountOutputTypeCountDatastoresArgs<ExtArgs extends runtime.Type
2104
2693
  export type AgentCountOutputTypeCountWebhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2105
2694
  where?: Prisma.WebhookWhereInput;
2106
2695
  };
2696
+ /**
2697
+ * AgentCountOutputType without action
2698
+ */
2699
+ export type AgentCountOutputTypeCountRepositoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2700
+ where?: Prisma.AgentRepositoryWhereInput;
2701
+ };
2702
+ /**
2703
+ * AgentCountOutputType without action
2704
+ */
2705
+ export type AgentCountOutputTypeCountIssueProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2706
+ where?: Prisma.AgentIssueProjectWhereInput;
2707
+ };
2107
2708
  /**
2108
2709
  * AgentCountOutputType without action
2109
2710
  */
@@ -2131,8 +2732,11 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2131
2732
  lastScheduledAt?: boolean;
2132
2733
  maxTurns?: boolean;
2133
2734
  ownerId?: boolean;
2735
+ defectProjectKey?: boolean;
2736
+ defectIssueType?: boolean;
2134
2737
  budgetGroupId?: boolean;
2135
2738
  memoryEnabled?: boolean;
2739
+ effort?: boolean;
2136
2740
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2137
2741
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
2138
2742
  tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>;
@@ -2140,6 +2744,8 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2140
2744
  secrets?: boolean | Prisma.Agent$secretsArgs<ExtArgs>;
2141
2745
  datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2142
2746
  webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2747
+ repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
2748
+ issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
2143
2749
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2144
2750
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2145
2751
  subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
@@ -2160,8 +2766,11 @@ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
2160
2766
  lastScheduledAt?: boolean;
2161
2767
  maxTurns?: boolean;
2162
2768
  ownerId?: boolean;
2769
+ defectProjectKey?: boolean;
2770
+ defectIssueType?: boolean;
2163
2771
  budgetGroupId?: boolean;
2164
2772
  memoryEnabled?: boolean;
2773
+ effort?: boolean;
2165
2774
  owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2166
2775
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2167
2776
  }, ExtArgs["result"]["agent"]>;
@@ -2180,8 +2789,11 @@ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
2180
2789
  lastScheduledAt?: boolean;
2181
2790
  maxTurns?: boolean;
2182
2791
  ownerId?: boolean;
2792
+ defectProjectKey?: boolean;
2793
+ defectIssueType?: boolean;
2183
2794
  budgetGroupId?: boolean;
2184
2795
  memoryEnabled?: boolean;
2796
+ effort?: boolean;
2185
2797
  owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2186
2798
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2187
2799
  }, ExtArgs["result"]["agent"]>;
@@ -2200,10 +2812,13 @@ export type AgentSelectScalar = {
2200
2812
  lastScheduledAt?: boolean;
2201
2813
  maxTurns?: boolean;
2202
2814
  ownerId?: boolean;
2815
+ defectProjectKey?: boolean;
2816
+ defectIssueType?: boolean;
2203
2817
  budgetGroupId?: boolean;
2204
2818
  memoryEnabled?: boolean;
2819
+ effort?: boolean;
2205
2820
  };
2206
- export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "ownerId" | "budgetGroupId" | "memoryEnabled", ExtArgs["result"]["agent"]>;
2821
+ export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "ownerId" | "defectProjectKey" | "defectIssueType" | "budgetGroupId" | "memoryEnabled" | "effort", ExtArgs["result"]["agent"]>;
2207
2822
  export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2208
2823
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2209
2824
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
@@ -2212,6 +2827,8 @@ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2212
2827
  secrets?: boolean | Prisma.Agent$secretsArgs<ExtArgs>;
2213
2828
  datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2214
2829
  webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2830
+ repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
2831
+ issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
2215
2832
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2216
2833
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2217
2834
  subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
@@ -2235,6 +2852,8 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2235
2852
  secrets: Prisma.$AgentSecretPayload<ExtArgs>[];
2236
2853
  datastores: Prisma.$AgentDatastorePayload<ExtArgs>[];
2237
2854
  webhooks: Prisma.$WebhookPayload<ExtArgs>[];
2855
+ repositories: Prisma.$AgentRepositoryPayload<ExtArgs>[];
2856
+ issueProjects: Prisma.$AgentIssueProjectPayload<ExtArgs>[];
2238
2857
  budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
2239
2858
  /**
2240
2859
  * Un-phased: sub-agent composition edges (see AgentSubAgent below). An
@@ -2262,6 +2881,11 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2262
2881
  lastScheduledAt: Date | null;
2263
2882
  maxTurns: number;
2264
2883
  ownerId: string | null;
2884
+ /**
2885
+ * Self-defects opt-in: the Jira project and issue type wardby files the agent's own failures into. Both or neither.
2886
+ */
2887
+ defectProjectKey: string | null;
2888
+ defectIssueType: string | null;
2265
2889
  budgetGroupId: string | null;
2266
2890
  /**
2267
2891
  * Un-phased: gates the memory_get/memory_set/memory_list/memory_search
@@ -2270,6 +2894,12 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2270
2894
  * created for it.
2271
2895
  */
2272
2896
  memoryEnabled: boolean;
2897
+ /**
2898
+ * Un-phased: reasoning effort for native agents (low, medium, high,
2899
+ * xhigh, max). Validated against the model in code, not a DB enum.
2900
+ * Null = the provider's default.
2901
+ */
2902
+ effort: string | null;
2273
2903
  }, ExtArgs["result"]["agent"]>;
2274
2904
  composites: {};
2275
2905
  };
@@ -2606,6 +3236,8 @@ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Ty
2606
3236
  secrets<T extends Prisma.Agent$secretsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$secretsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSecretPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2607
3237
  datastores<T extends Prisma.Agent$datastoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$datastoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentDatastorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2608
3238
  webhooks<T extends Prisma.Agent$webhooksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$webhooksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3239
+ 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>;
3240
+ 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>;
2609
3241
  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>;
2610
3242
  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>;
2611
3243
  subAgentEdgesAsChild<T extends Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -2648,8 +3280,11 @@ export interface AgentFieldRefs {
2648
3280
  readonly lastScheduledAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2649
3281
  readonly maxTurns: Prisma.FieldRef<"Agent", 'Int'>;
2650
3282
  readonly ownerId: Prisma.FieldRef<"Agent", 'String'>;
3283
+ readonly defectProjectKey: Prisma.FieldRef<"Agent", 'String'>;
3284
+ readonly defectIssueType: Prisma.FieldRef<"Agent", 'String'>;
2651
3285
  readonly budgetGroupId: Prisma.FieldRef<"Agent", 'String'>;
2652
3286
  readonly memoryEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
3287
+ readonly effort: Prisma.FieldRef<"Agent", 'String'>;
2653
3288
  }
2654
3289
  /**
2655
3290
  * Agent findUnique
@@ -3184,6 +3819,52 @@ export type Agent$webhooksArgs<ExtArgs extends runtime.Types.Extensions.Internal
3184
3819
  skip?: number;
3185
3820
  distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
3186
3821
  };
3822
+ /**
3823
+ * Agent.repositories
3824
+ */
3825
+ export type Agent$repositoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3826
+ /**
3827
+ * Select specific fields to fetch from the AgentRepository
3828
+ */
3829
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
3830
+ /**
3831
+ * Omit specific fields from the AgentRepository
3832
+ */
3833
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
3834
+ /**
3835
+ * Choose, which related nodes to fetch as well
3836
+ */
3837
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
3838
+ where?: Prisma.AgentRepositoryWhereInput;
3839
+ orderBy?: Prisma.AgentRepositoryOrderByWithRelationInput | Prisma.AgentRepositoryOrderByWithRelationInput[];
3840
+ cursor?: Prisma.AgentRepositoryWhereUniqueInput;
3841
+ take?: number;
3842
+ skip?: number;
3843
+ distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
3844
+ };
3845
+ /**
3846
+ * Agent.issueProjects
3847
+ */
3848
+ export type Agent$issueProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3849
+ /**
3850
+ * Select specific fields to fetch from the AgentIssueProject
3851
+ */
3852
+ select?: Prisma.AgentIssueProjectSelect<ExtArgs> | null;
3853
+ /**
3854
+ * Omit specific fields from the AgentIssueProject
3855
+ */
3856
+ omit?: Prisma.AgentIssueProjectOmit<ExtArgs> | null;
3857
+ /**
3858
+ * Choose, which related nodes to fetch as well
3859
+ */
3860
+ include?: Prisma.AgentIssueProjectInclude<ExtArgs> | null;
3861
+ where?: Prisma.AgentIssueProjectWhereInput;
3862
+ orderBy?: Prisma.AgentIssueProjectOrderByWithRelationInput | Prisma.AgentIssueProjectOrderByWithRelationInput[];
3863
+ cursor?: Prisma.AgentIssueProjectWhereUniqueInput;
3864
+ take?: number;
3865
+ skip?: number;
3866
+ distinct?: Prisma.AgentIssueProjectScalarFieldEnum | Prisma.AgentIssueProjectScalarFieldEnum[];
3867
+ };
3187
3868
  /**
3188
3869
  * Agent.budgetGroup
3189
3870
  */