@wardby/cli 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/.env.example +22 -3
  2. package/README.md +11 -9
  3. package/dist/cli-help.d.ts +1 -1
  4. package/dist/cli-help.js +1 -0
  5. package/dist/cli.js +68 -10
  6. package/dist/coding/base-commit.d.ts +6 -0
  7. package/dist/coding/base-commit.js +12 -0
  8. package/dist/coding/protocol.d.ts +17 -1
  9. package/dist/coding/protocol.js +17 -6
  10. package/dist/coding/provider.d.ts +6 -1
  11. package/dist/coding/provider.js +16 -9
  12. package/dist/config/providers.d.ts +25 -0
  13. package/dist/config/providers.js +71 -0
  14. package/dist/core/attribution.d.ts +101 -0
  15. package/dist/core/attribution.js +208 -0
  16. package/dist/core/budget-groups.d.ts +17 -10
  17. package/dist/core/budget-groups.js +15 -12
  18. package/dist/core/coding-queue.d.ts +3 -0
  19. package/dist/core/coding-queue.js +6 -2
  20. package/dist/core/coding-service-status.d.ts +11 -0
  21. package/dist/core/coding-service-status.js +17 -0
  22. package/dist/core/cost-report.d.ts +88 -0
  23. package/dist/core/cost-report.js +248 -0
  24. package/dist/core/dispatch.d.ts +42 -2
  25. package/dist/core/dispatch.js +144 -26
  26. package/dist/core/engine-native.js +17 -4
  27. package/dist/core/glob.d.ts +10 -0
  28. package/dist/core/glob.js +33 -0
  29. package/dist/core/host-events.d.ts +24 -1
  30. package/dist/core/host-events.js +341 -1
  31. package/dist/core/host-status.d.ts +19 -2
  32. package/dist/core/host-status.js +47 -30
  33. package/dist/core/issue-bridge.d.ts +60 -0
  34. package/dist/core/issue-bridge.js +189 -0
  35. package/dist/core/issue-dedupe.d.ts +70 -0
  36. package/dist/core/issue-dedupe.js +255 -0
  37. package/dist/core/issue-events.d.ts +42 -0
  38. package/dist/core/issue-events.js +155 -0
  39. package/dist/core/issue-status.d.ts +29 -0
  40. package/dist/core/issue-status.js +241 -0
  41. package/dist/core/issue-tracker-tools.d.ts +64 -0
  42. package/dist/core/issue-tracker-tools.js +850 -0
  43. package/dist/core/model-usage.d.ts +10 -0
  44. package/dist/core/model-usage.js +24 -0
  45. package/dist/core/reconciler.d.ts +8 -4
  46. package/dist/core/reconciler.js +15 -4
  47. package/dist/core/review-host-tools.js +10 -3
  48. package/dist/core/run-pricing.d.ts +61 -0
  49. package/dist/core/run-pricing.js +56 -0
  50. package/dist/core/runner.d.ts +5 -2
  51. package/dist/core/runner.js +178 -27
  52. package/dist/core/scheduler.d.ts +4 -1
  53. package/dist/core/scheduler.js +3 -2
  54. package/dist/core/self-defects.d.ts +80 -0
  55. package/dist/core/self-defects.js +180 -0
  56. package/dist/core/tool-names.js +3 -0
  57. package/dist/core/webhooks.d.ts +9 -1
  58. package/dist/core/webhooks.js +19 -1
  59. package/dist/env.js +6 -1
  60. package/dist/generated/prisma/browser.d.ts +66 -0
  61. package/dist/generated/prisma/client.d.ts +66 -0
  62. package/dist/generated/prisma/commonInputTypes.d.ts +122 -52
  63. package/dist/generated/prisma/enums.d.ts +7 -0
  64. package/dist/generated/prisma/enums.js +6 -0
  65. package/dist/generated/prisma/internal/class.d.ts +99 -0
  66. package/dist/generated/prisma/internal/class.js +4 -4
  67. package/dist/generated/prisma/internal/prismaNamespace.d.ts +826 -1
  68. package/dist/generated/prisma/internal/prismaNamespace.js +135 -2
  69. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +142 -0
  70. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -2
  71. package/dist/generated/prisma/models/Agent.d.ts +389 -1
  72. package/dist/generated/prisma/models/AgentIssueProject.d.ts +1838 -0
  73. package/dist/generated/prisma/models/AgentIssueProject.js +1 -0
  74. package/dist/generated/prisma/models/AgentRepository.d.ts +1 -1
  75. package/dist/generated/prisma/models/AuthUser.d.ts +1 -1
  76. package/dist/generated/prisma/models/CodingProxySession.d.ts +73 -1
  77. package/dist/generated/prisma/models/CodingRun.d.ts +130 -1
  78. package/dist/generated/prisma/models/CodingRunServiceStatus.d.ts +1404 -0
  79. package/dist/generated/prisma/models/CodingRunServiceStatus.js +1 -0
  80. package/dist/generated/prisma/models/IssueFingerprint.d.ts +1183 -0
  81. package/dist/generated/prisma/models/IssueFingerprint.js +1 -0
  82. package/dist/generated/prisma/models/IssuePullRequest.d.ts +1255 -0
  83. package/dist/generated/prisma/models/IssuePullRequest.js +1 -0
  84. package/dist/generated/prisma/models/ModelCatalogEntry.d.ts +1322 -0
  85. package/dist/generated/prisma/models/ModelCatalogEntry.js +1 -0
  86. package/dist/generated/prisma/models/Run.d.ts +933 -1
  87. package/dist/generated/prisma/models/RunAttribution.d.ts +1259 -0
  88. package/dist/generated/prisma/models/RunAttribution.js +1 -0
  89. package/dist/generated/prisma/models/RunIssueStatus.d.ts +1199 -0
  90. package/dist/generated/prisma/models/RunIssueStatus.js +1 -0
  91. package/dist/generated/prisma/models/RunModelUsage.d.ts +1316 -0
  92. package/dist/generated/prisma/models/RunModelUsage.js +1 -0
  93. package/dist/generated/prisma/models/WorkItem.d.ts +1408 -0
  94. package/dist/generated/prisma/models/WorkItem.js +1 -0
  95. package/dist/generated/prisma/models.d.ts +9 -0
  96. package/dist/help-index.json +355 -16
  97. package/dist/import/neutral-schema.d.ts +16 -16
  98. package/dist/knowledge/check.d.ts +13 -0
  99. package/dist/knowledge/check.js +69 -0
  100. package/dist/knowledge/cli.d.ts +14 -0
  101. package/dist/knowledge/cli.js +67 -0
  102. package/dist/knowledge/concept.d.ts +54 -0
  103. package/dist/knowledge/concept.js +78 -0
  104. package/dist/knowledge/note.d.ts +11 -0
  105. package/dist/knowledge/note.js +39 -0
  106. package/dist/knowledge/relevance.d.ts +11 -0
  107. package/dist/knowledge/relevance.js +14 -0
  108. package/dist/knowledge/span-hash.d.ts +3 -0
  109. package/dist/knowledge/span-hash.js +16 -0
  110. package/dist/mcp/auth/access.d.ts +4 -2
  111. package/dist/mcp/auth/ownership.d.ts +9 -9
  112. package/dist/mcp/auth/resource-server.d.ts +3 -1
  113. package/dist/mcp/auth/resource-server.js +18 -3
  114. package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
  115. package/dist/mcp/auth/self-hosted/session.d.ts +5 -5
  116. package/dist/mcp/context.d.ts +3 -0
  117. package/dist/mcp/host-events/deliveries.d.ts +9 -0
  118. package/dist/mcp/host-events/deliveries.js +17 -0
  119. package/dist/mcp/host-events/github-ingress.d.ts +4 -2
  120. package/dist/mcp/host-events/github-ingress.js +4 -13
  121. package/dist/mcp/host-events/jira-ingress.d.ts +29 -0
  122. package/dist/mcp/host-events/jira-ingress.js +92 -0
  123. package/dist/mcp/index.d.ts +2 -0
  124. package/dist/mcp/index.js +87 -9
  125. package/dist/mcp/server.js +5 -2
  126. package/dist/mcp/tools/agents.js +74 -3
  127. package/dist/mcp/tools/cost-report.d.ts +8 -0
  128. package/dist/mcp/tools/cost-report.js +60 -0
  129. package/dist/mcp/tools/issue-projects.d.ts +2 -0
  130. package/dist/mcp/tools/issue-projects.js +238 -0
  131. package/dist/mcp/tools/model-catalog.d.ts +22 -0
  132. package/dist/mcp/tools/model-catalog.js +423 -0
  133. package/dist/mcp/tools/repositories.js +2 -1
  134. package/dist/mcp/tools/tools.d.ts +2 -2
  135. package/dist/mcp/tools/trigger.js +33 -5
  136. package/dist/mcp/transport/streamable-http.d.ts +5 -0
  137. package/dist/mcp/transport/streamable-http.js +23 -1
  138. package/dist/mcp/webhooks/ingress.d.ts +2 -1
  139. package/dist/mcp/webhooks/ingress.js +9 -2
  140. package/dist/providers/auth/self-hosted.d.ts +8 -1
  141. package/dist/providers/auth/self-hosted.js +39 -2
  142. package/dist/providers/coding-proxy/memory-ledger.d.ts +1 -1
  143. package/dist/providers/coding-proxy/memory-ledger.js +10 -1
  144. package/dist/providers/coding-proxy/metering.d.ts +2 -1
  145. package/dist/providers/coding-proxy/metering.js +13 -2
  146. package/dist/providers/coding-proxy/prisma-ledger.js +59 -6
  147. package/dist/providers/coding-proxy/proxy.d.ts +12 -2
  148. package/dist/providers/coding-proxy/proxy.js +92 -30
  149. package/dist/providers/coding-proxy/types.d.ts +18 -1
  150. package/dist/providers/coding-proxy/types.js +12 -1
  151. package/dist/providers/engine/types.d.ts +19 -0
  152. package/dist/providers/executor/composition.js +9 -1
  153. package/dist/providers/executor/container.d.ts +30 -2
  154. package/dist/providers/executor/container.js +98 -17
  155. package/dist/providers/executor/dbos.d.ts +2 -0
  156. package/dist/providers/executor/dbos.js +7 -5
  157. package/dist/providers/executor/routing.d.ts +6 -0
  158. package/dist/providers/executor/routing.js +5 -0
  159. package/dist/providers/executor/types.d.ts +12 -0
  160. package/dist/providers/issue-tracker/adf.d.ts +31 -0
  161. package/dist/providers/issue-tracker/adf.js +181 -0
  162. package/dist/providers/issue-tracker/index.d.ts +5 -0
  163. package/dist/providers/issue-tracker/index.js +12 -0
  164. package/dist/providers/issue-tracker/jira-client.d.ts +41 -0
  165. package/dist/providers/issue-tracker/jira-client.js +151 -0
  166. package/dist/providers/issue-tracker/jira-events.d.ts +3 -0
  167. package/dist/providers/issue-tracker/jira-events.js +98 -0
  168. package/dist/providers/issue-tracker/jira.d.ts +116 -0
  169. package/dist/providers/issue-tracker/jira.js +502 -0
  170. package/dist/providers/issue-tracker/types.d.ts +269 -0
  171. package/dist/providers/issue-tracker/types.js +16 -0
  172. package/dist/providers/jobs/docker.d.ts +5 -1
  173. package/dist/providers/jobs/docker.js +61 -33
  174. package/dist/providers/jobs/kubernetes.d.ts +3 -0
  175. package/dist/providers/jobs/kubernetes.js +44 -4
  176. package/dist/providers/jobs/service-state.d.ts +22 -0
  177. package/dist/providers/jobs/service-state.js +17 -0
  178. package/dist/providers/llm/anthropic.d.ts +3 -3
  179. package/dist/providers/llm/anthropic.js +3 -9
  180. package/dist/providers/llm/bedrock.d.ts +3 -3
  181. package/dist/providers/llm/bedrock.js +3 -9
  182. package/dist/providers/llm/catalog-lookup.d.ts +10 -0
  183. package/dist/providers/llm/catalog-lookup.js +15 -0
  184. package/dist/providers/llm/catalog-shipped.d.ts +18 -0
  185. package/dist/providers/llm/catalog-shipped.js +197 -0
  186. package/dist/providers/llm/catalog-store.d.ts +58 -0
  187. package/dist/providers/llm/catalog-store.js +138 -0
  188. package/dist/providers/llm/catalog-types.d.ts +66 -0
  189. package/dist/providers/llm/catalog-types.js +64 -0
  190. package/dist/providers/llm/catalog.d.ts +61 -0
  191. package/dist/providers/llm/catalog.js +147 -0
  192. package/dist/providers/llm/claude-provider.d.ts +10 -14
  193. package/dist/providers/llm/claude-provider.js +11 -6
  194. package/dist/providers/llm/index.d.ts +9 -6
  195. package/dist/providers/llm/index.js +8 -5
  196. package/dist/providers/llm/openai.d.ts +14 -5
  197. package/dist/providers/llm/openai.js +24 -14
  198. package/dist/providers/llm/pricing-core.d.ts +5 -3
  199. package/dist/providers/llm/registration.js +8 -12
  200. package/dist/providers/llm/routing.d.ts +18 -17
  201. package/dist/providers/llm/routing.js +40 -24
  202. package/dist/providers/review-host/github-events.js +47 -1
  203. package/dist/providers/review-host/github.js +7 -6
  204. package/dist/providers/review-host/types.d.ts +25 -0
  205. package/dist/providers/vcs/git.js +2 -22
  206. package/dist/providers/vcs/github.d.ts +20 -0
  207. package/dist/providers/vcs/github.js +28 -2
  208. package/dist/providers/vcs/types.d.ts +6 -0
  209. package/dist/quickstart/index.d.ts +8 -0
  210. package/dist/quickstart/index.js +34 -34
  211. package/dist/serve.js +8 -2
  212. package/dist/viewer/api-schema.d.ts +2757 -0
  213. package/dist/viewer/api-schema.js +165 -0
  214. package/dist/viewer/build-schemas.d.ts +2 -0
  215. package/dist/viewer/build-schemas.js +18 -0
  216. package/dist/viewer/event-bus.d.ts +38 -0
  217. package/dist/viewer/event-bus.js +232 -0
  218. package/dist/viewer/graph.d.ts +40 -0
  219. package/dist/viewer/graph.js +243 -0
  220. package/dist/viewer/http.d.ts +30 -0
  221. package/dist/viewer/http.js +133 -0
  222. package/dist/viewer/run-detail.d.ts +4 -0
  223. package/dist/viewer/run-detail.js +61 -0
  224. package/dist/wardby-bin.js +5 -0
  225. package/docs/README.md +10 -0
  226. package/docs/agent-recipes.md +383 -0
  227. package/docs/code-review-agents.md +29 -2
  228. package/docs/coding-agent-setup.md +3 -0
  229. package/docs/coding-worker-isolation.md +39 -5
  230. package/docs/getting-started-gke.md +28 -11
  231. package/docs/getting-started-identity-provider.md +49 -38
  232. package/docs/getting-started.md +14 -0
  233. package/docs/jira-agents.md +649 -0
  234. package/docs/knowledge.md +387 -0
  235. package/docs/models.md +221 -0
  236. package/docs/security-deployment.md +19 -9
  237. package/docs/viewer-api.md +142 -0
  238. package/help/admin-viewer.md +39 -0
  239. package/help/agent-recipes.md +173 -0
  240. package/help/architecture-agent.md +189 -0
  241. package/help/builder-agent.md +80 -0
  242. package/help/code-review-agents.md +6 -0
  243. package/help/cost-attribution.md +67 -0
  244. package/help/creating-agents.md +22 -0
  245. package/help/deploy-gke.md +6 -0
  246. package/help/errors/model-unavailable.md +63 -0
  247. package/help/getting-started.md +1 -0
  248. package/help/github.md +18 -0
  249. package/help/identity-and-access.md +8 -3
  250. package/help/jira.md +135 -0
  251. package/help/knowledge.md +47 -0
  252. package/help/models.md +90 -0
  253. package/help/operating-agents.md +7 -1
  254. package/help/troubleshooting/budgets.md +6 -0
  255. package/package.json +5 -2
  256. package/prisma/migrations/20260930000000_jira_issue_projects/migration.sql +34 -0
  257. package/prisma/migrations/20261001000000_jira_phase2_allowlists/migration.sql +3 -0
  258. package/prisma/migrations/20261001010000_jira_link_types_allowlist/migration.sql +2 -0
  259. package/prisma/migrations/20261002000000_jira_coding_bridge/migration.sql +28 -0
  260. package/prisma/migrations/20261002010000_jira_issue_creation/migration.sql +25 -0
  261. package/prisma/migrations/20261003000000_issue_cost_attribution/migration.sql +56 -0
  262. package/prisma/migrations/20261003010000_coding_run_service_status/migration.sql +23 -0
  263. package/prisma/migrations/20261003020000_viewer_notify/migration.sql +54 -0
  264. package/prisma/migrations/20261003030000_viewer_notify_fixes/migration.sql +47 -0
  265. package/prisma/migrations/20261003040000_viewer_indexes/migration.sql +12 -0
  266. package/prisma/migrations/20261004000000_model_catalog/migration.sql +26 -0
  267. package/prisma/schema.prisma +258 -2
  268. package/dist/mcp/tools/models.d.ts +0 -8
  269. package/dist/mcp/tools/models.js +0 -15
  270. package/dist/providers/llm/pricing-anthropic.d.ts +0 -14
  271. package/dist/providers/llm/pricing-anthropic.js +0 -48
  272. package/dist/providers/llm/pricing-bedrock-claude.d.ts +0 -20
  273. package/dist/providers/llm/pricing-bedrock-claude.js +0 -46
  274. package/dist/providers/llm/pricing.d.ts +0 -30
  275. package/dist/providers/llm/pricing.js +0 -74
@@ -36,6 +36,8 @@ 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;
41
43
  effort: string | null;
@@ -55,6 +57,8 @@ export type AgentMaxAggregateOutputType = {
55
57
  lastScheduledAt: Date | null;
56
58
  maxTurns: number | null;
57
59
  ownerId: string | null;
60
+ defectProjectKey: string | null;
61
+ defectIssueType: string | null;
58
62
  budgetGroupId: string | null;
59
63
  memoryEnabled: boolean | null;
60
64
  effort: string | null;
@@ -74,6 +78,8 @@ export type AgentCountAggregateOutputType = {
74
78
  lastScheduledAt: number;
75
79
  maxTurns: number;
76
80
  ownerId: number;
81
+ defectProjectKey: number;
82
+ defectIssueType: number;
77
83
  budgetGroupId: number;
78
84
  memoryEnabled: number;
79
85
  effort: number;
@@ -102,6 +108,8 @@ export type AgentMinAggregateInputType = {
102
108
  lastScheduledAt?: true;
103
109
  maxTurns?: true;
104
110
  ownerId?: true;
111
+ defectProjectKey?: true;
112
+ defectIssueType?: true;
105
113
  budgetGroupId?: true;
106
114
  memoryEnabled?: true;
107
115
  effort?: true;
@@ -121,6 +129,8 @@ export type AgentMaxAggregateInputType = {
121
129
  lastScheduledAt?: true;
122
130
  maxTurns?: true;
123
131
  ownerId?: true;
132
+ defectProjectKey?: true;
133
+ defectIssueType?: true;
124
134
  budgetGroupId?: true;
125
135
  memoryEnabled?: true;
126
136
  effort?: true;
@@ -140,6 +150,8 @@ export type AgentCountAggregateInputType = {
140
150
  lastScheduledAt?: true;
141
151
  maxTurns?: true;
142
152
  ownerId?: true;
153
+ defectProjectKey?: true;
154
+ defectIssueType?: true;
143
155
  budgetGroupId?: true;
144
156
  memoryEnabled?: true;
145
157
  effort?: true;
@@ -236,6 +248,8 @@ export type AgentGroupByOutputType = {
236
248
  lastScheduledAt: Date | null;
237
249
  maxTurns: number;
238
250
  ownerId: string | null;
251
+ defectProjectKey: string | null;
252
+ defectIssueType: string | null;
239
253
  budgetGroupId: string | null;
240
254
  memoryEnabled: boolean;
241
255
  effort: string | null;
@@ -266,6 +280,8 @@ export type AgentWhereInput = {
266
280
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
267
281
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
268
282
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
283
+ defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
284
+ defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
269
285
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
270
286
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
271
287
  effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
@@ -277,6 +293,7 @@ export type AgentWhereInput = {
277
293
  datastores?: Prisma.AgentDatastoreListRelationFilter;
278
294
  webhooks?: Prisma.WebhookListRelationFilter;
279
295
  repositories?: Prisma.AgentRepositoryListRelationFilter;
296
+ issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
280
297
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
281
298
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
282
299
  subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
@@ -296,6 +313,8 @@ export type AgentOrderByWithRelationInput = {
296
313
  lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
297
314
  maxTurns?: Prisma.SortOrder;
298
315
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ defectProjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ defectIssueType?: Prisma.SortOrderInput | Prisma.SortOrder;
299
318
  budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
300
319
  memoryEnabled?: Prisma.SortOrder;
301
320
  effort?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -307,6 +326,7 @@ export type AgentOrderByWithRelationInput = {
307
326
  datastores?: Prisma.AgentDatastoreOrderByRelationAggregateInput;
308
327
  webhooks?: Prisma.WebhookOrderByRelationAggregateInput;
309
328
  repositories?: Prisma.AgentRepositoryOrderByRelationAggregateInput;
329
+ issueProjects?: Prisma.AgentIssueProjectOrderByRelationAggregateInput;
310
330
  budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
311
331
  subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
312
332
  subAgentEdgesAsChild?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
@@ -329,6 +349,8 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
329
349
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
330
350
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
331
351
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
352
+ defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
353
+ defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
332
354
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
333
355
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
334
356
  effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
@@ -340,6 +362,7 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
340
362
  datastores?: Prisma.AgentDatastoreListRelationFilter;
341
363
  webhooks?: Prisma.WebhookListRelationFilter;
342
364
  repositories?: Prisma.AgentRepositoryListRelationFilter;
365
+ issueProjects?: Prisma.AgentIssueProjectListRelationFilter;
343
366
  budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
344
367
  subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
345
368
  subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
@@ -359,6 +382,8 @@ export type AgentOrderByWithAggregationInput = {
359
382
  lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
360
383
  maxTurns?: Prisma.SortOrder;
361
384
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
385
+ defectProjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
386
+ defectIssueType?: Prisma.SortOrderInput | Prisma.SortOrder;
362
387
  budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
363
388
  memoryEnabled?: Prisma.SortOrder;
364
389
  effort?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -386,6 +411,8 @@ export type AgentScalarWhereWithAggregatesInput = {
386
411
  lastScheduledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null;
387
412
  maxTurns?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
388
413
  ownerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
414
+ defectProjectKey?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
415
+ defectIssueType?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
389
416
  budgetGroupId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
390
417
  memoryEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
391
418
  effort?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
@@ -404,6 +431,8 @@ export type AgentCreateInput = {
404
431
  scheduleEnabled?: boolean;
405
432
  lastScheduledAt?: Date | string | null;
406
433
  maxTurns?: number;
434
+ defectProjectKey?: string | null;
435
+ defectIssueType?: string | null;
407
436
  memoryEnabled?: boolean;
408
437
  effort?: string | null;
409
438
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -414,6 +443,7 @@ export type AgentCreateInput = {
414
443
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
415
444
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
416
445
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
446
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
417
447
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
418
448
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
419
449
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -433,6 +463,8 @@ export type AgentUncheckedCreateInput = {
433
463
  lastScheduledAt?: Date | string | null;
434
464
  maxTurns?: number;
435
465
  ownerId?: string | null;
466
+ defectProjectKey?: string | null;
467
+ defectIssueType?: string | null;
436
468
  budgetGroupId?: string | null;
437
469
  memoryEnabled?: boolean;
438
470
  effort?: string | null;
@@ -443,6 +475,7 @@ export type AgentUncheckedCreateInput = {
443
475
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
444
476
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
445
477
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
478
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
446
479
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
447
480
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
448
481
  };
@@ -460,6 +493,8 @@ export type AgentUpdateInput = {
460
493
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
461
494
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
462
495
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
496
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
498
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
464
499
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
500
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -470,6 +505,7 @@ export type AgentUpdateInput = {
470
505
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
471
506
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
472
507
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
508
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
473
509
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
474
510
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
475
511
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -489,6 +525,8 @@ export type AgentUncheckedUpdateInput = {
489
525
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
490
526
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
491
527
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
529
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
492
530
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
493
531
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
494
532
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -499,6 +537,7 @@ export type AgentUncheckedUpdateInput = {
499
537
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
500
538
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
501
539
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
540
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
502
541
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
503
542
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
504
543
  };
@@ -517,6 +556,8 @@ export type AgentCreateManyInput = {
517
556
  lastScheduledAt?: Date | string | null;
518
557
  maxTurns?: number;
519
558
  ownerId?: string | null;
559
+ defectProjectKey?: string | null;
560
+ defectIssueType?: string | null;
520
561
  budgetGroupId?: string | null;
521
562
  memoryEnabled?: boolean;
522
563
  effort?: string | null;
@@ -535,6 +576,8 @@ export type AgentUpdateManyMutationInput = {
535
576
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
536
577
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
537
578
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
579
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
580
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
538
581
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
539
582
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
540
583
  };
@@ -553,6 +596,8 @@ export type AgentUncheckedUpdateManyInput = {
553
596
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
554
597
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
555
598
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
599
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
600
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
556
601
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
557
602
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
558
603
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -572,6 +617,8 @@ export type AgentCountOrderByAggregateInput = {
572
617
  lastScheduledAt?: Prisma.SortOrder;
573
618
  maxTurns?: Prisma.SortOrder;
574
619
  ownerId?: Prisma.SortOrder;
620
+ defectProjectKey?: Prisma.SortOrder;
621
+ defectIssueType?: Prisma.SortOrder;
575
622
  budgetGroupId?: Prisma.SortOrder;
576
623
  memoryEnabled?: Prisma.SortOrder;
577
624
  effort?: Prisma.SortOrder;
@@ -595,6 +642,8 @@ export type AgentMaxOrderByAggregateInput = {
595
642
  lastScheduledAt?: Prisma.SortOrder;
596
643
  maxTurns?: Prisma.SortOrder;
597
644
  ownerId?: Prisma.SortOrder;
645
+ defectProjectKey?: Prisma.SortOrder;
646
+ defectIssueType?: Prisma.SortOrder;
598
647
  budgetGroupId?: Prisma.SortOrder;
599
648
  memoryEnabled?: Prisma.SortOrder;
600
649
  effort?: Prisma.SortOrder;
@@ -614,6 +663,8 @@ export type AgentMinOrderByAggregateInput = {
614
663
  lastScheduledAt?: Prisma.SortOrder;
615
664
  maxTurns?: Prisma.SortOrder;
616
665
  ownerId?: Prisma.SortOrder;
666
+ defectProjectKey?: Prisma.SortOrder;
667
+ defectIssueType?: Prisma.SortOrder;
617
668
  budgetGroupId?: Prisma.SortOrder;
618
669
  memoryEnabled?: Prisma.SortOrder;
619
670
  effort?: Prisma.SortOrder;
@@ -850,6 +901,18 @@ export type AgentUpdateOneRequiredWithoutRepositoriesNestedInput = {
850
901
  connect?: Prisma.AgentWhereUniqueInput;
851
902
  update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutRepositoriesInput, Prisma.AgentUpdateWithoutRepositoriesInput>, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
852
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
+ };
853
916
  export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
854
917
  id?: string;
855
918
  name: string;
@@ -864,6 +927,8 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
864
927
  scheduleEnabled?: boolean;
865
928
  lastScheduledAt?: Date | string | null;
866
929
  maxTurns?: number;
930
+ defectProjectKey?: string | null;
931
+ defectIssueType?: string | null;
867
932
  memoryEnabled?: boolean;
868
933
  effort?: string | null;
869
934
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -874,6 +939,7 @@ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
874
939
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
875
940
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
876
941
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
942
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
877
943
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
878
944
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
879
945
  };
@@ -892,6 +958,8 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
892
958
  lastScheduledAt?: Date | string | null;
893
959
  maxTurns?: number;
894
960
  ownerId?: string | null;
961
+ defectProjectKey?: string | null;
962
+ defectIssueType?: string | null;
895
963
  budgetGroupId?: string | null;
896
964
  memoryEnabled?: boolean;
897
965
  effort?: string | null;
@@ -902,6 +970,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
902
970
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
903
971
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
904
972
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
973
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
905
974
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
906
975
  };
907
976
  export type AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput = {
@@ -922,6 +991,8 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
922
991
  scheduleEnabled?: boolean;
923
992
  lastScheduledAt?: Date | string | null;
924
993
  maxTurns?: number;
994
+ defectProjectKey?: string | null;
995
+ defectIssueType?: string | null;
925
996
  memoryEnabled?: boolean;
926
997
  effort?: string | null;
927
998
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -932,6 +1003,7 @@ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
932
1003
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
933
1004
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
934
1005
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1006
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
935
1007
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
936
1008
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
937
1009
  };
@@ -950,6 +1022,8 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
950
1022
  lastScheduledAt?: Date | string | null;
951
1023
  maxTurns?: number;
952
1024
  ownerId?: string | null;
1025
+ defectProjectKey?: string | null;
1026
+ defectIssueType?: string | null;
953
1027
  budgetGroupId?: string | null;
954
1028
  memoryEnabled?: boolean;
955
1029
  effort?: string | null;
@@ -960,6 +1034,7 @@ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
960
1034
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
961
1035
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
962
1036
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1037
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
963
1038
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
964
1039
  };
965
1040
  export type AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput = {
@@ -989,6 +1064,8 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
989
1064
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
990
1065
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
991
1066
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1067
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1068
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
992
1069
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
993
1070
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
994
1071
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -999,6 +1076,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
999
1076
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1000
1077
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1001
1078
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1079
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1002
1080
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1003
1081
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1004
1082
  };
@@ -1017,6 +1095,8 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1017
1095
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1018
1096
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1019
1097
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1099
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
1100
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1021
1101
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1022
1102
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1027,6 +1107,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1027
1107
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1028
1108
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1029
1109
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1110
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1030
1111
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1031
1112
  };
1032
1113
  export type AgentUpsertWithoutSubAgentEdgesAsChildInput = {
@@ -1052,6 +1133,8 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1052
1133
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1053
1134
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1054
1135
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1136
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1137
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
1138
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1056
1139
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1057
1140
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -1062,6 +1145,7 @@ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1062
1145
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1063
1146
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1064
1147
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1148
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1065
1149
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1066
1150
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1067
1151
  };
@@ -1080,6 +1164,8 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1080
1164
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1081
1165
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1082
1166
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1167
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1168
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1083
1169
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1084
1170
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1085
1171
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1090,6 +1176,7 @@ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1090
1176
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1091
1177
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1092
1178
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1179
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1093
1180
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1094
1181
  };
1095
1182
  export type AgentCreateWithoutBudgetGroupInput = {
@@ -1106,6 +1193,8 @@ export type AgentCreateWithoutBudgetGroupInput = {
1106
1193
  scheduleEnabled?: boolean;
1107
1194
  lastScheduledAt?: Date | string | null;
1108
1195
  maxTurns?: number;
1196
+ defectProjectKey?: string | null;
1197
+ defectIssueType?: string | null;
1109
1198
  memoryEnabled?: boolean;
1110
1199
  effort?: string | null;
1111
1200
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1116,6 +1205,7 @@ export type AgentCreateWithoutBudgetGroupInput = {
1116
1205
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1117
1206
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1118
1207
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1208
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1119
1209
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1120
1210
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1121
1211
  };
@@ -1134,6 +1224,8 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1134
1224
  lastScheduledAt?: Date | string | null;
1135
1225
  maxTurns?: number;
1136
1226
  ownerId?: string | null;
1227
+ defectProjectKey?: string | null;
1228
+ defectIssueType?: string | null;
1137
1229
  memoryEnabled?: boolean;
1138
1230
  effort?: string | null;
1139
1231
  runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
@@ -1143,6 +1235,7 @@ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1143
1235
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1144
1236
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1145
1237
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1238
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1146
1239
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1147
1240
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1148
1241
  };
@@ -1185,6 +1278,8 @@ export type AgentScalarWhereInput = {
1185
1278
  lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
1186
1279
  maxTurns?: Prisma.IntFilter<"Agent"> | number;
1187
1280
  ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1281
+ defectProjectKey?: Prisma.StringNullableFilter<"Agent"> | string | null;
1282
+ defectIssueType?: Prisma.StringNullableFilter<"Agent"> | string | null;
1188
1283
  budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1189
1284
  memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1190
1285
  effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
@@ -1203,6 +1298,8 @@ export type AgentCreateWithoutToolsInput = {
1203
1298
  scheduleEnabled?: boolean;
1204
1299
  lastScheduledAt?: Date | string | null;
1205
1300
  maxTurns?: number;
1301
+ defectProjectKey?: string | null;
1302
+ defectIssueType?: string | null;
1206
1303
  memoryEnabled?: boolean;
1207
1304
  effort?: string | null;
1208
1305
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1212,6 +1309,7 @@ export type AgentCreateWithoutToolsInput = {
1212
1309
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1213
1310
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1214
1311
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1312
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1215
1313
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1216
1314
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1217
1315
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1231,6 +1329,8 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1231
1329
  lastScheduledAt?: Date | string | null;
1232
1330
  maxTurns?: number;
1233
1331
  ownerId?: string | null;
1332
+ defectProjectKey?: string | null;
1333
+ defectIssueType?: string | null;
1234
1334
  budgetGroupId?: string | null;
1235
1335
  memoryEnabled?: boolean;
1236
1336
  effort?: string | null;
@@ -1240,6 +1340,7 @@ export type AgentUncheckedCreateWithoutToolsInput = {
1240
1340
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1241
1341
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1242
1342
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1343
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1243
1344
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1244
1345
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1245
1346
  };
@@ -1270,6 +1371,8 @@ export type AgentUpdateWithoutToolsInput = {
1270
1371
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1271
1372
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1272
1373
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1374
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1375
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1273
1376
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1274
1377
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1275
1378
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -1279,6 +1382,7 @@ export type AgentUpdateWithoutToolsInput = {
1279
1382
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1280
1383
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1281
1384
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1385
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1282
1386
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1283
1387
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1284
1388
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1298,6 +1402,8 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1298
1402
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1299
1403
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1300
1404
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1405
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1406
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1301
1407
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1302
1408
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1303
1409
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1307,6 +1413,7 @@ export type AgentUncheckedUpdateWithoutToolsInput = {
1307
1413
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1308
1414
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1309
1415
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1416
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1310
1417
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1311
1418
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1312
1419
  };
@@ -1324,6 +1431,8 @@ export type AgentCreateWithoutDatastoresInput = {
1324
1431
  scheduleEnabled?: boolean;
1325
1432
  lastScheduledAt?: Date | string | null;
1326
1433
  maxTurns?: number;
1434
+ defectProjectKey?: string | null;
1435
+ defectIssueType?: string | null;
1327
1436
  memoryEnabled?: boolean;
1328
1437
  effort?: string | null;
1329
1438
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1333,6 +1442,7 @@ export type AgentCreateWithoutDatastoresInput = {
1333
1442
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1334
1443
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1335
1444
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1445
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1336
1446
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1337
1447
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1338
1448
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1352,6 +1462,8 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1352
1462
  lastScheduledAt?: Date | string | null;
1353
1463
  maxTurns?: number;
1354
1464
  ownerId?: string | null;
1465
+ defectProjectKey?: string | null;
1466
+ defectIssueType?: string | null;
1355
1467
  budgetGroupId?: string | null;
1356
1468
  memoryEnabled?: boolean;
1357
1469
  effort?: string | null;
@@ -1361,6 +1473,7 @@ export type AgentUncheckedCreateWithoutDatastoresInput = {
1361
1473
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1362
1474
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1363
1475
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1476
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1364
1477
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1365
1478
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1366
1479
  };
@@ -1391,6 +1504,8 @@ export type AgentUpdateWithoutDatastoresInput = {
1391
1504
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1392
1505
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1393
1506
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1507
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1508
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1394
1509
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1395
1510
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1396
1511
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -1400,6 +1515,7 @@ export type AgentUpdateWithoutDatastoresInput = {
1400
1515
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1401
1516
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1402
1517
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1518
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1403
1519
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1404
1520
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1405
1521
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1419,6 +1535,8 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1419
1535
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1420
1536
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1421
1537
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1538
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1539
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1422
1540
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1423
1541
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1424
1542
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1428,6 +1546,7 @@ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1428
1546
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1429
1547
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1430
1548
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1549
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1431
1550
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1432
1551
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1433
1552
  };
@@ -1445,6 +1564,8 @@ export type AgentCreateWithoutRunsInput = {
1445
1564
  scheduleEnabled?: boolean;
1446
1565
  lastScheduledAt?: Date | string | null;
1447
1566
  maxTurns?: number;
1567
+ defectProjectKey?: string | null;
1568
+ defectIssueType?: string | null;
1448
1569
  memoryEnabled?: boolean;
1449
1570
  effort?: string | null;
1450
1571
  codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
@@ -1454,6 +1575,7 @@ export type AgentCreateWithoutRunsInput = {
1454
1575
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1455
1576
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1456
1577
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1578
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1457
1579
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1458
1580
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1459
1581
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1473,6 +1595,8 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1473
1595
  lastScheduledAt?: Date | string | null;
1474
1596
  maxTurns?: number;
1475
1597
  ownerId?: string | null;
1598
+ defectProjectKey?: string | null;
1599
+ defectIssueType?: string | null;
1476
1600
  budgetGroupId?: string | null;
1477
1601
  memoryEnabled?: boolean;
1478
1602
  effort?: string | null;
@@ -1482,6 +1606,7 @@ export type AgentUncheckedCreateWithoutRunsInput = {
1482
1606
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1483
1607
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1484
1608
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1609
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1485
1610
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1486
1611
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1487
1612
  };
@@ -1512,6 +1637,8 @@ export type AgentUpdateWithoutRunsInput = {
1512
1637
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1513
1638
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1514
1639
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1640
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1641
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1515
1642
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1516
1643
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1517
1644
  codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
@@ -1521,6 +1648,7 @@ export type AgentUpdateWithoutRunsInput = {
1521
1648
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1522
1649
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1523
1650
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1651
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1524
1652
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1525
1653
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1526
1654
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1540,6 +1668,8 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1540
1668
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1541
1669
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1542
1670
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1671
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1672
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1543
1673
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1544
1674
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1545
1675
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1549,6 +1679,7 @@ export type AgentUncheckedUpdateWithoutRunsInput = {
1549
1679
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1550
1680
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1551
1681
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1682
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1552
1683
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1553
1684
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1554
1685
  };
@@ -1566,6 +1697,8 @@ export type AgentCreateWithoutCodingProfileInput = {
1566
1697
  scheduleEnabled?: boolean;
1567
1698
  lastScheduledAt?: Date | string | null;
1568
1699
  maxTurns?: number;
1700
+ defectProjectKey?: string | null;
1701
+ defectIssueType?: string | null;
1569
1702
  memoryEnabled?: boolean;
1570
1703
  effort?: string | null;
1571
1704
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1575,6 +1708,7 @@ export type AgentCreateWithoutCodingProfileInput = {
1575
1708
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1576
1709
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1577
1710
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1711
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1578
1712
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1579
1713
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1580
1714
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1594,6 +1728,8 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1594
1728
  lastScheduledAt?: Date | string | null;
1595
1729
  maxTurns?: number;
1596
1730
  ownerId?: string | null;
1731
+ defectProjectKey?: string | null;
1732
+ defectIssueType?: string | null;
1597
1733
  budgetGroupId?: string | null;
1598
1734
  memoryEnabled?: boolean;
1599
1735
  effort?: string | null;
@@ -1603,6 +1739,7 @@ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1603
1739
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1604
1740
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1605
1741
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1742
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1606
1743
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1607
1744
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1608
1745
  };
@@ -1633,6 +1770,8 @@ export type AgentUpdateWithoutCodingProfileInput = {
1633
1770
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1634
1771
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1635
1772
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1773
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1774
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1636
1775
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1637
1776
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1638
1777
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -1642,6 +1781,7 @@ export type AgentUpdateWithoutCodingProfileInput = {
1642
1781
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1643
1782
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1644
1783
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1784
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1645
1785
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1646
1786
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1647
1787
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1661,6 +1801,8 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1661
1801
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1662
1802
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1663
1803
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1804
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1805
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1664
1806
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1665
1807
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1666
1808
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1670,6 +1812,7 @@ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1670
1812
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1671
1813
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1672
1814
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1815
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1673
1816
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1674
1817
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1675
1818
  };
@@ -1687,6 +1830,8 @@ export type AgentCreateWithoutOwnerInput = {
1687
1830
  scheduleEnabled?: boolean;
1688
1831
  lastScheduledAt?: Date | string | null;
1689
1832
  maxTurns?: number;
1833
+ defectProjectKey?: string | null;
1834
+ defectIssueType?: string | null;
1690
1835
  memoryEnabled?: boolean;
1691
1836
  effort?: string | null;
1692
1837
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1696,6 +1841,7 @@ export type AgentCreateWithoutOwnerInput = {
1696
1841
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1697
1842
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1698
1843
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1844
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1699
1845
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1700
1846
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1701
1847
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1714,6 +1860,8 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
1714
1860
  scheduleEnabled?: boolean;
1715
1861
  lastScheduledAt?: Date | string | null;
1716
1862
  maxTurns?: number;
1863
+ defectProjectKey?: string | null;
1864
+ defectIssueType?: string | null;
1717
1865
  budgetGroupId?: string | null;
1718
1866
  memoryEnabled?: boolean;
1719
1867
  effort?: string | null;
@@ -1724,6 +1872,7 @@ export type AgentUncheckedCreateWithoutOwnerInput = {
1724
1872
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1725
1873
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1726
1874
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1875
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1727
1876
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1728
1877
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1729
1878
  };
@@ -1762,6 +1911,8 @@ export type AgentCreateWithoutSecretsInput = {
1762
1911
  scheduleEnabled?: boolean;
1763
1912
  lastScheduledAt?: Date | string | null;
1764
1913
  maxTurns?: number;
1914
+ defectProjectKey?: string | null;
1915
+ defectIssueType?: string | null;
1765
1916
  memoryEnabled?: boolean;
1766
1917
  effort?: string | null;
1767
1918
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1771,6 +1922,7 @@ export type AgentCreateWithoutSecretsInput = {
1771
1922
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1772
1923
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1773
1924
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1925
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1774
1926
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1775
1927
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1776
1928
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1790,6 +1942,8 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
1790
1942
  lastScheduledAt?: Date | string | null;
1791
1943
  maxTurns?: number;
1792
1944
  ownerId?: string | null;
1945
+ defectProjectKey?: string | null;
1946
+ defectIssueType?: string | null;
1793
1947
  budgetGroupId?: string | null;
1794
1948
  memoryEnabled?: boolean;
1795
1949
  effort?: string | null;
@@ -1799,6 +1953,7 @@ export type AgentUncheckedCreateWithoutSecretsInput = {
1799
1953
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1800
1954
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1801
1955
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1956
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1802
1957
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1803
1958
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1804
1959
  };
@@ -1829,6 +1984,8 @@ export type AgentUpdateWithoutSecretsInput = {
1829
1984
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1830
1985
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1831
1986
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1987
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1988
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1832
1989
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1833
1990
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1834
1991
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -1838,6 +1995,7 @@ export type AgentUpdateWithoutSecretsInput = {
1838
1995
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1839
1996
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1840
1997
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1998
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1841
1999
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1842
2000
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1843
2001
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1857,6 +2015,8 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
1857
2015
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1858
2016
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1859
2017
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2018
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2019
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1860
2020
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1861
2021
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1862
2022
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1866,6 +2026,7 @@ export type AgentUncheckedUpdateWithoutSecretsInput = {
1866
2026
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1867
2027
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1868
2028
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2029
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1869
2030
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1870
2031
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1871
2032
  };
@@ -1883,6 +2044,8 @@ export type AgentCreateWithoutWebhooksInput = {
1883
2044
  scheduleEnabled?: boolean;
1884
2045
  lastScheduledAt?: Date | string | null;
1885
2046
  maxTurns?: number;
2047
+ defectProjectKey?: string | null;
2048
+ defectIssueType?: string | null;
1886
2049
  memoryEnabled?: boolean;
1887
2050
  effort?: string | null;
1888
2051
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -1892,6 +2055,7 @@ export type AgentCreateWithoutWebhooksInput = {
1892
2055
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1893
2056
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1894
2057
  repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
2058
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
1895
2059
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1896
2060
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1897
2061
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -1911,6 +2075,8 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
1911
2075
  lastScheduledAt?: Date | string | null;
1912
2076
  maxTurns?: number;
1913
2077
  ownerId?: string | null;
2078
+ defectProjectKey?: string | null;
2079
+ defectIssueType?: string | null;
1914
2080
  budgetGroupId?: string | null;
1915
2081
  memoryEnabled?: boolean;
1916
2082
  effort?: string | null;
@@ -1920,6 +2086,7 @@ export type AgentUncheckedCreateWithoutWebhooksInput = {
1920
2086
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1921
2087
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1922
2088
  repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
2089
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
1923
2090
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1924
2091
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1925
2092
  };
@@ -1950,6 +2117,8 @@ export type AgentUpdateWithoutWebhooksInput = {
1950
2117
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1951
2118
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1952
2119
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2120
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2121
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1953
2122
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1954
2123
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1955
2124
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -1959,6 +2128,7 @@ export type AgentUpdateWithoutWebhooksInput = {
1959
2128
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1960
2129
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1961
2130
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2131
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
1962
2132
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1963
2133
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1964
2134
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -1978,6 +2148,8 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
1978
2148
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1979
2149
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1980
2150
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2151
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2152
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1981
2153
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1982
2154
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1983
2155
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1987,6 +2159,7 @@ export type AgentUncheckedUpdateWithoutWebhooksInput = {
1987
2159
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1988
2160
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1989
2161
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2162
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
1990
2163
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1991
2164
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1992
2165
  };
@@ -2004,6 +2177,8 @@ export type AgentCreateWithoutRepositoriesInput = {
2004
2177
  scheduleEnabled?: boolean;
2005
2178
  lastScheduledAt?: Date | string | null;
2006
2179
  maxTurns?: number;
2180
+ defectProjectKey?: string | null;
2181
+ defectIssueType?: string | null;
2007
2182
  memoryEnabled?: boolean;
2008
2183
  effort?: string | null;
2009
2184
  runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
@@ -2013,6 +2188,7 @@ export type AgentCreateWithoutRepositoriesInput = {
2013
2188
  secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2014
2189
  datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2015
2190
  webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2191
+ issueProjects?: Prisma.AgentIssueProjectCreateNestedManyWithoutAgentInput;
2016
2192
  budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2017
2193
  subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2018
2194
  subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
@@ -2032,6 +2208,8 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2032
2208
  lastScheduledAt?: Date | string | null;
2033
2209
  maxTurns?: number;
2034
2210
  ownerId?: string | null;
2211
+ defectProjectKey?: string | null;
2212
+ defectIssueType?: string | null;
2035
2213
  budgetGroupId?: string | null;
2036
2214
  memoryEnabled?: boolean;
2037
2215
  effort?: string | null;
@@ -2041,6 +2219,7 @@ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2041
2219
  secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2042
2220
  datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2043
2221
  webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2222
+ issueProjects?: Prisma.AgentIssueProjectUncheckedCreateNestedManyWithoutAgentInput;
2044
2223
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2045
2224
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2046
2225
  };
@@ -2071,6 +2250,8 @@ export type AgentUpdateWithoutRepositoriesInput = {
2071
2250
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2072
2251
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2073
2252
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2253
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2254
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2074
2255
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2075
2256
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2076
2257
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -2080,6 +2261,7 @@ export type AgentUpdateWithoutRepositoriesInput = {
2080
2261
  secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2081
2262
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2082
2263
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2264
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2083
2265
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2084
2266
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2085
2267
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2099,6 +2281,141 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2099
2281
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2100
2282
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2101
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;
2102
2419
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2103
2420
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2104
2421
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2108,6 +2425,7 @@ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2108
2425
  secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2109
2426
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2110
2427
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2428
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2111
2429
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2112
2430
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2113
2431
  };
@@ -2126,6 +2444,8 @@ export type AgentCreateManyBudgetGroupInput = {
2126
2444
  lastScheduledAt?: Date | string | null;
2127
2445
  maxTurns?: number;
2128
2446
  ownerId?: string | null;
2447
+ defectProjectKey?: string | null;
2448
+ defectIssueType?: string | null;
2129
2449
  memoryEnabled?: boolean;
2130
2450
  effort?: string | null;
2131
2451
  };
@@ -2143,6 +2463,8 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2143
2463
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2144
2464
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2145
2465
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2466
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2467
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2146
2468
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2147
2469
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2148
2470
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -2153,6 +2475,7 @@ export type AgentUpdateWithoutBudgetGroupInput = {
2153
2475
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2154
2476
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2155
2477
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2478
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2156
2479
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2157
2480
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2158
2481
  };
@@ -2171,6 +2494,8 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2171
2494
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2172
2495
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2173
2496
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2497
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2498
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2174
2499
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2175
2500
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2176
2501
  runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
@@ -2180,6 +2505,7 @@ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2180
2505
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2181
2506
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2182
2507
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2508
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2183
2509
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2184
2510
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2185
2511
  };
@@ -2198,6 +2524,8 @@ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
2198
2524
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2199
2525
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2200
2526
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2527
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2528
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2201
2529
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2202
2530
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2203
2531
  };
@@ -2215,6 +2543,8 @@ export type AgentCreateManyOwnerInput = {
2215
2543
  scheduleEnabled?: boolean;
2216
2544
  lastScheduledAt?: Date | string | null;
2217
2545
  maxTurns?: number;
2546
+ defectProjectKey?: string | null;
2547
+ defectIssueType?: string | null;
2218
2548
  budgetGroupId?: string | null;
2219
2549
  memoryEnabled?: boolean;
2220
2550
  effort?: string | null;
@@ -2233,6 +2563,8 @@ export type AgentUpdateWithoutOwnerInput = {
2233
2563
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2234
2564
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2235
2565
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2566
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2567
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2236
2568
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2237
2569
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2238
2570
  runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
@@ -2242,6 +2574,7 @@ export type AgentUpdateWithoutOwnerInput = {
2242
2574
  datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2243
2575
  webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2244
2576
  repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2577
+ issueProjects?: Prisma.AgentIssueProjectUpdateManyWithoutAgentNestedInput;
2245
2578
  budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2246
2579
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2247
2580
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
@@ -2260,6 +2593,8 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2260
2593
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2261
2594
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2262
2595
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2596
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2597
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2263
2598
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2264
2599
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2265
2600
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2270,6 +2605,7 @@ export type AgentUncheckedUpdateWithoutOwnerInput = {
2270
2605
  datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2271
2606
  webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2272
2607
  repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2608
+ issueProjects?: Prisma.AgentIssueProjectUncheckedUpdateManyWithoutAgentNestedInput;
2273
2609
  subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2274
2610
  subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2275
2611
  };
@@ -2287,6 +2623,8 @@ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2287
2623
  scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2288
2624
  lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2289
2625
  maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2626
+ defectProjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2627
+ defectIssueType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2290
2628
  budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2291
2629
  memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2292
2630
  effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2301,6 +2639,7 @@ export type AgentCountOutputType = {
2301
2639
  datastores: number;
2302
2640
  webhooks: number;
2303
2641
  repositories: number;
2642
+ issueProjects: number;
2304
2643
  subAgentEdgesAsParent: number;
2305
2644
  subAgentEdgesAsChild: number;
2306
2645
  };
@@ -2311,6 +2650,7 @@ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.
2311
2650
  datastores?: boolean | AgentCountOutputTypeCountDatastoresArgs;
2312
2651
  webhooks?: boolean | AgentCountOutputTypeCountWebhooksArgs;
2313
2652
  repositories?: boolean | AgentCountOutputTypeCountRepositoriesArgs;
2653
+ issueProjects?: boolean | AgentCountOutputTypeCountIssueProjectsArgs;
2314
2654
  subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
2315
2655
  subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
2316
2656
  };
@@ -2359,6 +2699,12 @@ export type AgentCountOutputTypeCountWebhooksArgs<ExtArgs extends runtime.Types.
2359
2699
  export type AgentCountOutputTypeCountRepositoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2360
2700
  where?: Prisma.AgentRepositoryWhereInput;
2361
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
+ };
2362
2708
  /**
2363
2709
  * AgentCountOutputType without action
2364
2710
  */
@@ -2386,6 +2732,8 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2386
2732
  lastScheduledAt?: boolean;
2387
2733
  maxTurns?: boolean;
2388
2734
  ownerId?: boolean;
2735
+ defectProjectKey?: boolean;
2736
+ defectIssueType?: boolean;
2389
2737
  budgetGroupId?: boolean;
2390
2738
  memoryEnabled?: boolean;
2391
2739
  effort?: boolean;
@@ -2397,6 +2745,7 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2397
2745
  datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2398
2746
  webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2399
2747
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
2748
+ issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
2400
2749
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2401
2750
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2402
2751
  subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
@@ -2417,6 +2766,8 @@ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
2417
2766
  lastScheduledAt?: boolean;
2418
2767
  maxTurns?: boolean;
2419
2768
  ownerId?: boolean;
2769
+ defectProjectKey?: boolean;
2770
+ defectIssueType?: boolean;
2420
2771
  budgetGroupId?: boolean;
2421
2772
  memoryEnabled?: boolean;
2422
2773
  effort?: boolean;
@@ -2438,6 +2789,8 @@ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
2438
2789
  lastScheduledAt?: boolean;
2439
2790
  maxTurns?: boolean;
2440
2791
  ownerId?: boolean;
2792
+ defectProjectKey?: boolean;
2793
+ defectIssueType?: boolean;
2441
2794
  budgetGroupId?: boolean;
2442
2795
  memoryEnabled?: boolean;
2443
2796
  effort?: boolean;
@@ -2459,11 +2812,13 @@ export type AgentSelectScalar = {
2459
2812
  lastScheduledAt?: boolean;
2460
2813
  maxTurns?: boolean;
2461
2814
  ownerId?: boolean;
2815
+ defectProjectKey?: boolean;
2816
+ defectIssueType?: boolean;
2462
2817
  budgetGroupId?: boolean;
2463
2818
  memoryEnabled?: boolean;
2464
2819
  effort?: boolean;
2465
2820
  };
2466
- 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" | "effort", 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"]>;
2467
2822
  export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2468
2823
  runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2469
2824
  codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
@@ -2473,6 +2828,7 @@ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
2473
2828
  datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2474
2829
  webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2475
2830
  repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
2831
+ issueProjects?: boolean | Prisma.Agent$issueProjectsArgs<ExtArgs>;
2476
2832
  budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2477
2833
  subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2478
2834
  subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
@@ -2497,6 +2853,7 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2497
2853
  datastores: Prisma.$AgentDatastorePayload<ExtArgs>[];
2498
2854
  webhooks: Prisma.$WebhookPayload<ExtArgs>[];
2499
2855
  repositories: Prisma.$AgentRepositoryPayload<ExtArgs>[];
2856
+ issueProjects: Prisma.$AgentIssueProjectPayload<ExtArgs>[];
2500
2857
  budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
2501
2858
  /**
2502
2859
  * Un-phased: sub-agent composition edges (see AgentSubAgent below). An
@@ -2524,6 +2881,11 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
2524
2881
  lastScheduledAt: Date | null;
2525
2882
  maxTurns: number;
2526
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;
2527
2889
  budgetGroupId: string | null;
2528
2890
  /**
2529
2891
  * Un-phased: gates the memory_get/memory_set/memory_list/memory_search
@@ -2875,6 +3237,7 @@ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Ty
2875
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>;
2876
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>;
2877
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>;
2878
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>;
2879
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>;
2880
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>;
@@ -2917,6 +3280,8 @@ export interface AgentFieldRefs {
2917
3280
  readonly lastScheduledAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2918
3281
  readonly maxTurns: Prisma.FieldRef<"Agent", 'Int'>;
2919
3282
  readonly ownerId: Prisma.FieldRef<"Agent", 'String'>;
3283
+ readonly defectProjectKey: Prisma.FieldRef<"Agent", 'String'>;
3284
+ readonly defectIssueType: Prisma.FieldRef<"Agent", 'String'>;
2920
3285
  readonly budgetGroupId: Prisma.FieldRef<"Agent", 'String'>;
2921
3286
  readonly memoryEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
2922
3287
  readonly effort: Prisma.FieldRef<"Agent", 'String'>;
@@ -3477,6 +3842,29 @@ export type Agent$repositoriesArgs<ExtArgs extends runtime.Types.Extensions.Inte
3477
3842
  skip?: number;
3478
3843
  distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
3479
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
+ };
3480
3868
  /**
3481
3869
  * Agent.budgetGroup
3482
3870
  */