@wardby/cli 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/.env.example +34 -4
  2. package/README.md +183 -71
  3. package/dist/claude-coding-worker/driver.d.ts +7 -1
  4. package/dist/claude-coding-worker/driver.js +31 -2
  5. package/dist/claude-coding-worker/main.js +5 -2
  6. package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
  7. package/dist/claude-coding-worker/tool-socket.js +26 -0
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +13 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +219 -29
  12. package/dist/coding/collect-exclude.d.ts +25 -0
  13. package/dist/coding/collect-exclude.js +76 -0
  14. package/dist/coding/profile.d.ts +67 -22
  15. package/dist/coding/profile.js +58 -25
  16. package/dist/coding/protected-path-wording.d.ts +24 -0
  17. package/dist/coding/protected-path-wording.js +55 -0
  18. package/dist/coding/protected-paths.d.ts +31 -0
  19. package/dist/coding/protected-paths.js +48 -0
  20. package/dist/coding/protocol.d.ts +99 -3
  21. package/dist/coding/protocol.js +155 -4
  22. package/dist/coding/registry/adapters.d.ts +2 -0
  23. package/dist/coding/registry/adapters.js +9 -0
  24. package/dist/coding/registry/allowlist.d.ts +9 -0
  25. package/dist/coding/registry/allowlist.js +28 -0
  26. package/dist/coding/registry/json-scan.d.ts +55 -0
  27. package/dist/coding/registry/json-scan.js +191 -0
  28. package/dist/coding/registry/lockfiles.d.ts +6 -0
  29. package/dist/coding/registry/lockfiles.js +89 -0
  30. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  31. package/dist/coding/registry/npm-lockfile.js +73 -0
  32. package/dist/coding/registry/npm-plan.d.ts +29 -0
  33. package/dist/coding/registry/npm-plan.js +289 -0
  34. package/dist/coding/registry/npm.d.ts +7 -0
  35. package/dist/coding/registry/npm.js +252 -0
  36. package/dist/coding/registry/pypi.d.ts +4 -0
  37. package/dist/coding/registry/pypi.js +210 -0
  38. package/dist/coding/registry/report.d.ts +37 -0
  39. package/dist/coding/registry/report.js +31 -0
  40. package/dist/coding/registry/token.d.ts +4 -0
  41. package/dist/coding/registry/token.js +7 -0
  42. package/dist/coding/registry/types.d.ts +286 -0
  43. package/dist/coding/registry/types.js +19 -0
  44. package/dist/coding/registry/worker-config.d.ts +14 -0
  45. package/dist/coding/registry/worker-config.js +31 -0
  46. package/dist/coding/services/builtins.d.ts +22 -0
  47. package/dist/coding/services/builtins.js +85 -0
  48. package/dist/coding/services/catalog.d.ts +443 -0
  49. package/dist/coding/services/catalog.js +159 -0
  50. package/dist/coding/services/declaration.d.ts +11 -0
  51. package/dist/coding/services/declaration.js +114 -0
  52. package/dist/coding/services/note.d.ts +8 -0
  53. package/dist/coding/services/note.js +15 -0
  54. package/dist/coding/services/resolve.d.ts +25 -0
  55. package/dist/coding/services/resolve.js +50 -0
  56. package/dist/coding/services/wording.d.ts +25 -0
  57. package/dist/coding/services/wording.js +70 -0
  58. package/dist/coding-proxy/main.js +24 -4
  59. package/dist/coding-worker/artifact.d.ts +18 -0
  60. package/dist/coding-worker/artifact.js +48 -6
  61. package/dist/coding-worker/debug-trace.d.ts +37 -0
  62. package/dist/coding-worker/debug-trace.js +117 -0
  63. package/dist/coding-worker/driver.d.ts +14 -1
  64. package/dist/coding-worker/driver.js +106 -14
  65. package/dist/coding-worker/errors.d.ts +7 -0
  66. package/dist/coding-worker/errors.js +26 -0
  67. package/dist/coding-worker/main.js +13 -4
  68. package/dist/coding-worker/sdk.d.ts +2 -2
  69. package/dist/coding-worker/sdk.js +7 -2
  70. package/dist/coding-worker/types.d.ts +3 -0
  71. package/dist/config/providers.d.ts +41 -0
  72. package/dist/config/providers.js +66 -0
  73. package/dist/core/budget-groups.d.ts +109 -6
  74. package/dist/core/budget-groups.js +125 -19
  75. package/dist/core/budget-wording.d.ts +22 -0
  76. package/dist/core/budget-wording.js +55 -0
  77. package/dist/core/coding-queue.d.ts +1 -1
  78. package/dist/core/datastores.d.ts +1 -1
  79. package/dist/core/datastores.js +18 -2
  80. package/dist/core/db.d.ts +40 -2
  81. package/dist/core/db.js +75 -2
  82. package/dist/core/dispatch.d.ts +49 -7
  83. package/dist/core/dispatch.js +290 -45
  84. package/dist/core/engine-native.js +27 -10
  85. package/dist/core/grants.d.ts +86 -0
  86. package/dist/core/grants.js +126 -0
  87. package/dist/core/host-events.d.ts +49 -0
  88. package/dist/core/host-events.js +257 -0
  89. package/dist/core/host-identity-links.d.ts +54 -0
  90. package/dist/core/host-identity-links.js +189 -0
  91. package/dist/core/host-status.d.ts +61 -0
  92. package/dist/core/host-status.js +211 -0
  93. package/dist/core/http-runtime.js +3 -4
  94. package/dist/core/in-flight-runs.d.ts +8 -0
  95. package/dist/core/in-flight-runs.js +56 -0
  96. package/dist/core/lease.d.ts +1 -1
  97. package/dist/core/private-directory.d.ts +20 -0
  98. package/dist/core/private-directory.js +36 -0
  99. package/dist/core/provider-wording.d.ts +12 -0
  100. package/dist/core/provider-wording.js +44 -0
  101. package/dist/core/reconciler.d.ts +39 -3
  102. package/dist/core/reconciler.js +86 -2
  103. package/dist/core/repo-access.d.ts +99 -0
  104. package/dist/core/repo-access.js +136 -0
  105. package/dist/core/review-host-checks.d.ts +11 -0
  106. package/dist/core/review-host-checks.js +41 -0
  107. package/dist/core/review-host-tools.d.ts +47 -0
  108. package/dist/core/review-host-tools.js +347 -0
  109. package/dist/core/run-heartbeat.d.ts +27 -0
  110. package/dist/core/run-heartbeat.js +54 -0
  111. package/dist/core/runner.d.ts +31 -9
  112. package/dist/core/runner.js +237 -40
  113. package/dist/core/scheduler.d.ts +1 -1
  114. package/dist/core/secrets.d.ts +12 -3
  115. package/dist/core/secrets.js +25 -6
  116. package/dist/core/subagent-memory-tools.d.ts +2 -2
  117. package/dist/core/subagent-memory-tools.js +16 -3
  118. package/dist/core/tool-admin.d.ts +81 -0
  119. package/dist/core/tool-admin.js +129 -0
  120. package/dist/core/tool-names.d.ts +42 -0
  121. package/dist/core/tool-names.js +64 -0
  122. package/dist/core/untrusted-content.d.ts +32 -0
  123. package/dist/core/untrusted-content.js +72 -0
  124. package/dist/core/webhooks.d.ts +9 -2
  125. package/dist/core/webhooks.js +23 -2
  126. package/dist/generated/prisma/browser.d.ts +328 -0
  127. package/dist/generated/prisma/browser.js +17 -0
  128. package/dist/generated/prisma/client.d.ts +347 -0
  129. package/dist/generated/prisma/client.js +34 -0
  130. package/dist/generated/prisma/commonInputTypes.d.ts +839 -0
  131. package/dist/generated/prisma/commonInputTypes.js +10 -0
  132. package/dist/generated/prisma/enums.d.ts +59 -0
  133. package/dist/generated/prisma/enums.js +59 -0
  134. package/dist/generated/prisma/internal/class.d.ts +605 -0
  135. package/dist/generated/prisma/internal/class.js +49 -0
  136. package/dist/generated/prisma/internal/prismaNamespace.d.ts +4494 -0
  137. package/dist/generated/prisma/internal/prismaNamespace.js +628 -0
  138. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +635 -0
  139. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +599 -0
  140. package/dist/generated/prisma/models/Agent.d.ts +3560 -0
  141. package/dist/generated/prisma/models/Agent.js +1 -0
  142. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  143. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  144. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  145. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  146. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  147. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  148. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  149. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  150. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  151. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  152. package/dist/generated/prisma/models/AgentTool.d.ts +1403 -0
  153. package/dist/generated/prisma/models/AgentTool.js +1 -0
  154. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  155. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  156. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  157. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  158. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  159. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  160. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  161. package/dist/generated/prisma/models/AuthSession.js +1 -0
  162. package/dist/generated/prisma/models/AuthUser.d.ts +1700 -0
  163. package/dist/generated/prisma/models/AuthUser.js +1 -0
  164. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  165. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  166. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1681 -0
  167. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  168. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  169. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  170. package/dist/generated/prisma/models/CodingProxySession.d.ts +1626 -0
  171. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  172. package/dist/generated/prisma/models/CodingRun.d.ts +3583 -0
  173. package/dist/generated/prisma/models/CodingRun.js +1 -0
  174. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  175. package/dist/generated/prisma/models/CodingService.js +1 -0
  176. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  177. package/dist/generated/prisma/models/Datastore.js +1 -0
  178. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  179. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  180. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  181. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  182. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  183. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  184. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  185. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  186. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  187. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  188. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  189. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  190. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  191. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  192. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  193. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  194. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  195. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  196. package/dist/generated/prisma/models/Principal.d.ts +2245 -0
  197. package/dist/generated/prisma/models/Principal.js +1 -0
  198. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  199. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  200. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  201. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  202. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  203. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  204. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  205. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  206. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  207. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  208. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  209. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  210. package/dist/generated/prisma/models/Run.d.ts +2669 -0
  211. package/dist/generated/prisma/models/Run.js +1 -0
  212. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  213. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  214. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  215. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  216. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  217. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  218. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  219. package/dist/generated/prisma/models/Secret.js +1 -0
  220. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  221. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  222. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  223. package/dist/generated/prisma/models/Task.js +1 -0
  224. package/dist/generated/prisma/models/Tool.d.ts +1490 -0
  225. package/dist/generated/prisma/models/Tool.js +1 -0
  226. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  227. package/dist/generated/prisma/models/Webhook.js +1 -0
  228. package/dist/generated/prisma/models.d.ts +45 -0
  229. package/dist/generated/prisma/models.js +1 -0
  230. package/dist/help/build.d.ts +1 -0
  231. package/dist/help/build.js +9 -0
  232. package/dist/help/catalog.d.ts +24 -0
  233. package/dist/help/catalog.js +160 -0
  234. package/dist/help/cli.d.ts +2 -0
  235. package/dist/help/cli.js +65 -0
  236. package/dist/help/runtime.d.ts +3 -0
  237. package/dist/help/runtime.js +44 -0
  238. package/dist/help/search.d.ts +9 -0
  239. package/dist/help/search.js +104 -0
  240. package/dist/help-index.json +660 -0
  241. package/dist/import/cli-args.js +3 -2
  242. package/dist/import/create.d.ts +6 -1
  243. package/dist/import/create.js +68 -14
  244. package/dist/import/index.d.ts +1 -1
  245. package/dist/import/index.js +19 -9
  246. package/dist/import/neutral-schema.d.ts +11 -11
  247. package/dist/mcp/auth/access.d.ts +70 -0
  248. package/dist/mcp/auth/access.js +58 -0
  249. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  250. package/dist/mcp/auth/grants-cli.js +518 -0
  251. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  252. package/dist/mcp/auth/host-account-cli.js +47 -0
  253. package/dist/mcp/auth/ownership.d.ts +37 -63
  254. package/dist/mcp/auth/ownership.js +19 -14
  255. package/dist/mcp/auth/principal.d.ts +1 -1
  256. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  257. package/dist/mcp/auth/repo-authorization.js +51 -0
  258. package/dist/mcp/auth/resource-server.d.ts +32 -3
  259. package/dist/mcp/auth/resource-server.js +84 -3
  260. package/dist/mcp/auth/self-hosted/browser.js +22 -8
  261. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  262. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  263. package/dist/mcp/auth/self-hosted/credentials.d.ts +21 -3
  264. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  265. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  266. package/dist/mcp/auth/self-hosted/session.d.ts +3 -2
  267. package/dist/mcp/context.d.ts +28 -2
  268. package/dist/mcp/errors.d.ts +25 -6
  269. package/dist/mcp/errors.js +98 -0
  270. package/dist/mcp/host-events/github-ingress.d.ts +36 -0
  271. package/dist/mcp/host-events/github-ingress.js +92 -0
  272. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  273. package/dist/mcp/host-events/github-user-callback.js +50 -0
  274. package/dist/mcp/index.d.ts +8 -1
  275. package/dist/mcp/index.js +106 -16
  276. package/dist/mcp/server.d.ts +1 -1
  277. package/dist/mcp/server.js +27 -9
  278. package/dist/mcp/shared/page-style.d.ts +16 -0
  279. package/dist/mcp/shared/page-style.js +129 -0
  280. package/dist/mcp/tasks/manager.d.ts +1 -1
  281. package/dist/mcp/tools/agents.js +447 -49
  282. package/dist/mcp/tools/budget-groups.js +3 -3
  283. package/dist/mcp/tools/datastore.js +23 -16
  284. package/dist/mcp/tools/grants.d.ts +2 -0
  285. package/dist/mcp/tools/grants.js +239 -0
  286. package/dist/mcp/tools/help.d.ts +5 -0
  287. package/dist/mcp/tools/help.js +67 -0
  288. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  289. package/dist/mcp/tools/host-accounts.js +114 -0
  290. package/dist/mcp/tools/memory.d.ts +7 -1
  291. package/dist/mcp/tools/memory.js +5 -5
  292. package/dist/mcp/tools/repositories.d.ts +2 -0
  293. package/dist/mcp/tools/repositories.js +181 -0
  294. package/dist/mcp/tools/runs.d.ts +6 -0
  295. package/dist/mcp/tools/runs.js +60 -6
  296. package/dist/mcp/tools/scheduling.js +4 -7
  297. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  298. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  299. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  300. package/dist/mcp/tools/secrets.js +18 -6
  301. package/dist/mcp/tools/services.d.ts +2 -0
  302. package/dist/mcp/tools/services.js +222 -0
  303. package/dist/mcp/tools/subagents.js +53 -17
  304. package/dist/mcp/tools/tools.d.ts +41 -0
  305. package/dist/mcp/tools/tools.js +202 -41
  306. package/dist/mcp/tools/trigger.js +36 -6
  307. package/dist/mcp/tools/webhooks.js +15 -4
  308. package/dist/mcp/transport/streamable-http.d.ts +11 -1
  309. package/dist/mcp/transport/streamable-http.js +32 -2
  310. package/dist/mcp/unattended-schedules.d.ts +1 -1
  311. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  312. package/dist/providers/auth/delegating.d.ts +19 -0
  313. package/dist/providers/auth/delegating.js +71 -0
  314. package/dist/providers/auth/index.d.ts +3 -1
  315. package/dist/providers/auth/index.js +11 -0
  316. package/dist/providers/auth/self-hosted.d.ts +4 -3
  317. package/dist/providers/auth/self-hosted.js +16 -4
  318. package/dist/providers/auth/types.d.ts +6 -0
  319. package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
  320. package/dist/providers/coding-proxy/memory-ledger.js +21 -2
  321. package/dist/providers/coding-proxy/metering.d.ts +4 -0
  322. package/dist/providers/coding-proxy/metering.js +28 -2
  323. package/dist/providers/coding-proxy/prisma-ledger.d.ts +18 -1
  324. package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
  325. package/dist/providers/coding-proxy/proxy.d.ts +13 -0
  326. package/dist/providers/coding-proxy/proxy.js +479 -18
  327. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  328. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  329. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  330. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  331. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  332. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  333. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  334. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  335. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  336. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  337. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  338. package/dist/providers/coding-proxy/registry/store.js +70 -0
  339. package/dist/providers/coding-proxy/runtime.d.ts +18 -1
  340. package/dist/providers/coding-proxy/runtime.js +63 -0
  341. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  342. package/dist/providers/coding-proxy/server.d.ts +11 -0
  343. package/dist/providers/coding-proxy/server.js +163 -0
  344. package/dist/providers/coding-proxy/types.d.ts +15 -0
  345. package/dist/providers/datastore/postgres.d.ts +1 -1
  346. package/dist/providers/engine/types.d.ts +10 -0
  347. package/dist/providers/executor/build.d.ts +3 -3
  348. package/dist/providers/executor/composition.d.ts +4 -1
  349. package/dist/providers/executor/composition.js +19 -0
  350. package/dist/providers/executor/container.d.ts +106 -4
  351. package/dist/providers/executor/container.js +305 -22
  352. package/dist/providers/executor/dbos.d.ts +3 -4
  353. package/dist/providers/executor/in-process.d.ts +2 -3
  354. package/dist/providers/executor/routing.d.ts +7 -0
  355. package/dist/providers/executor/routing.js +13 -0
  356. package/dist/providers/executor/types.d.ts +22 -0
  357. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  358. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  359. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  360. package/dist/providers/jobs/collect-prune.js +27 -0
  361. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  362. package/dist/providers/jobs/docker-isolation.js +213 -22
  363. package/dist/providers/jobs/docker-services.d.ts +35 -0
  364. package/dist/providers/jobs/docker-services.js +191 -0
  365. package/dist/providers/jobs/docker.d.ts +60 -2
  366. package/dist/providers/jobs/docker.js +313 -50
  367. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  368. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  369. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  370. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  371. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  372. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  373. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  374. package/dist/providers/jobs/kubernetes.d.ts +21 -2
  375. package/dist/providers/jobs/kubernetes.js +117 -31
  376. package/dist/providers/jobs/types.d.ts +20 -0
  377. package/dist/providers/llm/anthropic.js +6 -2
  378. package/dist/providers/llm/bedrock.js +2 -1
  379. package/dist/providers/llm/claude-messages.d.ts +5 -1
  380. package/dist/providers/llm/claude-messages.js +1 -0
  381. package/dist/providers/llm/claude-provider.d.ts +3 -1
  382. package/dist/providers/llm/claude-provider.js +5 -1
  383. package/dist/providers/llm/index.d.ts +1 -1
  384. package/dist/providers/llm/index.js +1 -1
  385. package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
  386. package/dist/providers/llm/pricing-anthropic.js +32 -14
  387. package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
  388. package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
  389. package/dist/providers/llm/routing.d.ts +10 -1
  390. package/dist/providers/llm/routing.js +18 -0
  391. package/dist/providers/llm/types.d.ts +12 -0
  392. package/dist/providers/llm/types.js +8 -1
  393. package/dist/providers/memory/postgres.d.ts +1 -1
  394. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  395. package/dist/providers/review-host/diff-lines.js +59 -0
  396. package/dist/providers/review-host/github-events.d.ts +6 -0
  397. package/dist/providers/review-host/github-events.js +180 -0
  398. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  399. package/dist/providers/review-host/github-user-auth.js +128 -0
  400. package/dist/providers/review-host/github.d.ts +57 -0
  401. package/dist/providers/review-host/github.js +567 -0
  402. package/dist/providers/review-host/index.d.ts +12 -0
  403. package/dist/providers/review-host/index.js +30 -0
  404. package/dist/providers/review-host/review-format.d.ts +19 -0
  405. package/dist/providers/review-host/review-format.js +59 -0
  406. package/dist/providers/review-host/types.d.ts +284 -0
  407. package/dist/providers/review-host/types.js +24 -0
  408. package/dist/providers/vcs/git.d.ts +16 -6
  409. package/dist/providers/vcs/git.js +79 -14
  410. package/dist/providers/vcs/github.d.ts +74 -3
  411. package/dist/providers/vcs/github.js +195 -15
  412. package/dist/providers/vcs/types.d.ts +42 -4
  413. package/dist/quickstart/index.js +34 -32
  414. package/dist/quickstart/migrate.d.ts +23 -0
  415. package/dist/quickstart/migrate.js +125 -0
  416. package/dist/sandbox/fetch-policy.d.ts +20 -2
  417. package/dist/sandbox/fetch-policy.js +64 -3
  418. package/dist/sandbox/host-functions.d.ts +9 -1
  419. package/dist/sandbox/host-functions.js +12 -5
  420. package/dist/serve.js +1 -1
  421. package/dist/wardby-bin.js +6 -0
  422. package/docs/README.md +30 -0
  423. package/docs/architecture-runtime.md +90 -0
  424. package/docs/assets/brand/wardby-icon-512.png +0 -0
  425. package/docs/assets/brand/wardby-icon.svg +16 -0
  426. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  427. package/docs/assets/brand/wardby-mascot.png +0 -0
  428. package/docs/assets/brand/wardby-mascot.svg +5 -0
  429. package/docs/assets/wardby-workflow.svg +106 -0
  430. package/docs/code-review-agents.md +481 -0
  431. package/docs/coding-agent-setup.md +172 -0
  432. package/docs/coding-packages.md +455 -0
  433. package/docs/coding-services.md +300 -0
  434. package/docs/coding-worker-byo-images.md +98 -0
  435. package/docs/coding-worker-isolation.md +1061 -0
  436. package/docs/getting-started-gke.md +615 -0
  437. package/docs/getting-started-identity-provider.md +308 -0
  438. package/docs/getting-started.md +133 -0
  439. package/docs/observability.md +53 -0
  440. package/docs/release-verification.md +66 -0
  441. package/docs/security-deployment.md +657 -0
  442. package/help/code-review-agents.md +31 -0
  443. package/help/coding-packages.md +31 -0
  444. package/help/coding-services.md +71 -0
  445. package/help/creating-agents.md +68 -0
  446. package/help/deploy-gke.md +39 -0
  447. package/help/deployment-targets.md +39 -0
  448. package/help/errors/budget-group-exhausted.md +25 -0
  449. package/help/errors/docker-isolation-unsupported.md +26 -0
  450. package/help/errors/protected-path.md +45 -0
  451. package/help/errors/repo-access.md +27 -0
  452. package/help/errors/service-declaration-invalid.md +27 -0
  453. package/help/errors/service-declaration-unavailable.md +25 -0
  454. package/help/errors/service-launcher-unsupported.md +30 -0
  455. package/help/errors/service-not-allowed.md +27 -0
  456. package/help/errors/service-unknown.md +23 -0
  457. package/help/errors/service-unready.md +49 -0
  458. package/help/getting-started.md +31 -0
  459. package/help/github.md +30 -0
  460. package/help/identity-and-access.md +39 -0
  461. package/help/mcp.md +30 -0
  462. package/help/native-capabilities.md +30 -0
  463. package/help/observability.md +41 -0
  464. package/help/operating-agents.md +30 -0
  465. package/help/security.md +27 -0
  466. package/help/troubleshooting/budgets.md +26 -0
  467. package/help/troubleshooting/coding-workers.md +47 -0
  468. package/help/troubleshooting/repository-access.md +27 -0
  469. package/package.json +30 -11
  470. package/prisma/migrate.config.mjs +20 -0
  471. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  472. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  473. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  474. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  475. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  476. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  477. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  478. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  479. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  480. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  481. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  482. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  483. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  484. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  485. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  486. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  487. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  488. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  489. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  490. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  491. package/prisma/schema.prisma +417 -23
@@ -0,0 +1,1681 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model CodingAgentProfile
5
+ * Phase 5: owner-configured coding behavior. Runtime credentials and opaque
6
+ * launcher handles never live on the reusable profile.
7
+ */
8
+ export type CodingAgentProfileModel = runtime.Types.Result.DefaultSelection<Prisma.$CodingAgentProfilePayload>;
9
+ export type AggregateCodingAgentProfile = {
10
+ _count: CodingAgentProfileCountAggregateOutputType | null;
11
+ _avg: CodingAgentProfileAvgAggregateOutputType | null;
12
+ _sum: CodingAgentProfileSumAggregateOutputType | null;
13
+ _min: CodingAgentProfileMinAggregateOutputType | null;
14
+ _max: CodingAgentProfileMaxAggregateOutputType | null;
15
+ };
16
+ export type CodingAgentProfileAvgAggregateOutputType = {
17
+ timeoutSec: number | null;
18
+ workspaceDiskMb: number | null;
19
+ };
20
+ export type CodingAgentProfileSumAggregateOutputType = {
21
+ timeoutSec: number | null;
22
+ workspaceDiskMb: number | null;
23
+ };
24
+ export type CodingAgentProfileMinAggregateOutputType = {
25
+ agentId: string | null;
26
+ provider: string | null;
27
+ repository: string | null;
28
+ baseRef: string | null;
29
+ defaultTask: string | null;
30
+ allowWebhookTaskOverride: boolean | null;
31
+ timeoutSec: number | null;
32
+ toolchain: string | null;
33
+ toolchainVersion: string | null;
34
+ workerImageRef: string | null;
35
+ workspaceDiskMb: number | null;
36
+ debugTraceUntil: Date | null;
37
+ repositoryAuthorizedVia: string | null;
38
+ repositoryAuthorizedById: string | null;
39
+ repositoryAuthorizedAt: Date | null;
40
+ };
41
+ export type CodingAgentProfileMaxAggregateOutputType = {
42
+ agentId: string | null;
43
+ provider: string | null;
44
+ repository: string | null;
45
+ baseRef: string | null;
46
+ defaultTask: string | null;
47
+ allowWebhookTaskOverride: boolean | null;
48
+ timeoutSec: number | null;
49
+ toolchain: string | null;
50
+ toolchainVersion: string | null;
51
+ workerImageRef: string | null;
52
+ workspaceDiskMb: number | null;
53
+ debugTraceUntil: Date | null;
54
+ repositoryAuthorizedVia: string | null;
55
+ repositoryAuthorizedById: string | null;
56
+ repositoryAuthorizedAt: Date | null;
57
+ };
58
+ export type CodingAgentProfileCountAggregateOutputType = {
59
+ agentId: number;
60
+ provider: number;
61
+ repository: number;
62
+ baseRef: number;
63
+ defaultTask: number;
64
+ allowWebhookTaskOverride: number;
65
+ timeoutSec: number;
66
+ allowedEgress: number;
67
+ protectedPaths: number;
68
+ collectExclude: number;
69
+ toolchain: number;
70
+ toolchainVersion: number;
71
+ workerImageRef: number;
72
+ workspaceDiskMb: number;
73
+ packageAllowlist: number;
74
+ packagePolicy: number;
75
+ debugTraceUntil: number;
76
+ services: number;
77
+ repositoryAuthorizedVia: number;
78
+ repositoryAuthorizedById: number;
79
+ repositoryAuthorizedAt: number;
80
+ _all: number;
81
+ };
82
+ export type CodingAgentProfileAvgAggregateInputType = {
83
+ timeoutSec?: true;
84
+ workspaceDiskMb?: true;
85
+ };
86
+ export type CodingAgentProfileSumAggregateInputType = {
87
+ timeoutSec?: true;
88
+ workspaceDiskMb?: true;
89
+ };
90
+ export type CodingAgentProfileMinAggregateInputType = {
91
+ agentId?: true;
92
+ provider?: true;
93
+ repository?: true;
94
+ baseRef?: true;
95
+ defaultTask?: true;
96
+ allowWebhookTaskOverride?: true;
97
+ timeoutSec?: true;
98
+ toolchain?: true;
99
+ toolchainVersion?: true;
100
+ workerImageRef?: true;
101
+ workspaceDiskMb?: true;
102
+ debugTraceUntil?: true;
103
+ repositoryAuthorizedVia?: true;
104
+ repositoryAuthorizedById?: true;
105
+ repositoryAuthorizedAt?: true;
106
+ };
107
+ export type CodingAgentProfileMaxAggregateInputType = {
108
+ agentId?: true;
109
+ provider?: true;
110
+ repository?: true;
111
+ baseRef?: true;
112
+ defaultTask?: true;
113
+ allowWebhookTaskOverride?: true;
114
+ timeoutSec?: true;
115
+ toolchain?: true;
116
+ toolchainVersion?: true;
117
+ workerImageRef?: true;
118
+ workspaceDiskMb?: true;
119
+ debugTraceUntil?: true;
120
+ repositoryAuthorizedVia?: true;
121
+ repositoryAuthorizedById?: true;
122
+ repositoryAuthorizedAt?: true;
123
+ };
124
+ export type CodingAgentProfileCountAggregateInputType = {
125
+ agentId?: true;
126
+ provider?: true;
127
+ repository?: true;
128
+ baseRef?: true;
129
+ defaultTask?: true;
130
+ allowWebhookTaskOverride?: true;
131
+ timeoutSec?: true;
132
+ allowedEgress?: true;
133
+ protectedPaths?: true;
134
+ collectExclude?: true;
135
+ toolchain?: true;
136
+ toolchainVersion?: true;
137
+ workerImageRef?: true;
138
+ workspaceDiskMb?: true;
139
+ packageAllowlist?: true;
140
+ packagePolicy?: true;
141
+ debugTraceUntil?: true;
142
+ services?: true;
143
+ repositoryAuthorizedVia?: true;
144
+ repositoryAuthorizedById?: true;
145
+ repositoryAuthorizedAt?: true;
146
+ _all?: true;
147
+ };
148
+ export type CodingAgentProfileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
149
+ /**
150
+ * Filter which CodingAgentProfile to aggregate.
151
+ */
152
+ where?: Prisma.CodingAgentProfileWhereInput;
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
155
+ *
156
+ * Determine the order of CodingAgentProfiles to fetch.
157
+ */
158
+ orderBy?: Prisma.CodingAgentProfileOrderByWithRelationInput | Prisma.CodingAgentProfileOrderByWithRelationInput[];
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
161
+ *
162
+ * Sets the start position
163
+ */
164
+ cursor?: Prisma.CodingAgentProfileWhereUniqueInput;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
+ *
168
+ * Take `±n` CodingAgentProfiles from the position of the cursor.
169
+ */
170
+ take?: number;
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
173
+ *
174
+ * Skip the first `n` CodingAgentProfiles.
175
+ */
176
+ skip?: number;
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Count returned CodingAgentProfiles
181
+ **/
182
+ _count?: true | CodingAgentProfileCountAggregateInputType;
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to average
187
+ **/
188
+ _avg?: CodingAgentProfileAvgAggregateInputType;
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to sum
193
+ **/
194
+ _sum?: CodingAgentProfileSumAggregateInputType;
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to find the minimum value
199
+ **/
200
+ _min?: CodingAgentProfileMinAggregateInputType;
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
+ *
204
+ * Select which fields to find the maximum value
205
+ **/
206
+ _max?: CodingAgentProfileMaxAggregateInputType;
207
+ };
208
+ export type GetCodingAgentProfileAggregateType<T extends CodingAgentProfileAggregateArgs> = {
209
+ [P in keyof T & keyof AggregateCodingAgentProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCodingAgentProfile[P]> : Prisma.GetScalarType<T[P], AggregateCodingAgentProfile[P]>;
210
+ };
211
+ export type CodingAgentProfileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
212
+ where?: Prisma.CodingAgentProfileWhereInput;
213
+ orderBy?: Prisma.CodingAgentProfileOrderByWithAggregationInput | Prisma.CodingAgentProfileOrderByWithAggregationInput[];
214
+ by: Prisma.CodingAgentProfileScalarFieldEnum[] | Prisma.CodingAgentProfileScalarFieldEnum;
215
+ having?: Prisma.CodingAgentProfileScalarWhereWithAggregatesInput;
216
+ take?: number;
217
+ skip?: number;
218
+ _count?: CodingAgentProfileCountAggregateInputType | true;
219
+ _avg?: CodingAgentProfileAvgAggregateInputType;
220
+ _sum?: CodingAgentProfileSumAggregateInputType;
221
+ _min?: CodingAgentProfileMinAggregateInputType;
222
+ _max?: CodingAgentProfileMaxAggregateInputType;
223
+ };
224
+ export type CodingAgentProfileGroupByOutputType = {
225
+ agentId: string;
226
+ provider: string;
227
+ repository: string;
228
+ baseRef: string;
229
+ defaultTask: string | null;
230
+ allowWebhookTaskOverride: boolean;
231
+ timeoutSec: number;
232
+ allowedEgress: runtime.JsonValue;
233
+ protectedPaths: runtime.JsonValue;
234
+ collectExclude: runtime.JsonValue;
235
+ toolchain: string;
236
+ toolchainVersion: string | null;
237
+ workerImageRef: string | null;
238
+ workspaceDiskMb: number | null;
239
+ packageAllowlist: runtime.JsonValue;
240
+ packagePolicy: runtime.JsonValue;
241
+ debugTraceUntil: Date | null;
242
+ services: runtime.JsonValue;
243
+ repositoryAuthorizedVia: string | null;
244
+ repositoryAuthorizedById: string | null;
245
+ repositoryAuthorizedAt: Date | null;
246
+ _count: CodingAgentProfileCountAggregateOutputType | null;
247
+ _avg: CodingAgentProfileAvgAggregateOutputType | null;
248
+ _sum: CodingAgentProfileSumAggregateOutputType | null;
249
+ _min: CodingAgentProfileMinAggregateOutputType | null;
250
+ _max: CodingAgentProfileMaxAggregateOutputType | null;
251
+ };
252
+ export type GetCodingAgentProfileGroupByPayload<T extends CodingAgentProfileGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CodingAgentProfileGroupByOutputType, T['by']> & {
253
+ [P in ((keyof T) & (keyof CodingAgentProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CodingAgentProfileGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CodingAgentProfileGroupByOutputType[P]>;
254
+ }>>;
255
+ export type CodingAgentProfileWhereInput = {
256
+ AND?: Prisma.CodingAgentProfileWhereInput | Prisma.CodingAgentProfileWhereInput[];
257
+ OR?: Prisma.CodingAgentProfileWhereInput[];
258
+ NOT?: Prisma.CodingAgentProfileWhereInput | Prisma.CodingAgentProfileWhereInput[];
259
+ agentId?: Prisma.StringFilter<"CodingAgentProfile"> | string;
260
+ provider?: Prisma.StringFilter<"CodingAgentProfile"> | string;
261
+ repository?: Prisma.StringFilter<"CodingAgentProfile"> | string;
262
+ baseRef?: Prisma.StringFilter<"CodingAgentProfile"> | string;
263
+ defaultTask?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
264
+ allowWebhookTaskOverride?: Prisma.BoolFilter<"CodingAgentProfile"> | boolean;
265
+ timeoutSec?: Prisma.IntFilter<"CodingAgentProfile"> | number;
266
+ allowedEgress?: Prisma.JsonFilter<"CodingAgentProfile">;
267
+ protectedPaths?: Prisma.JsonFilter<"CodingAgentProfile">;
268
+ collectExclude?: Prisma.JsonFilter<"CodingAgentProfile">;
269
+ toolchain?: Prisma.StringFilter<"CodingAgentProfile"> | string;
270
+ toolchainVersion?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
271
+ workerImageRef?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
272
+ workspaceDiskMb?: Prisma.IntNullableFilter<"CodingAgentProfile"> | number | null;
273
+ packageAllowlist?: Prisma.JsonFilter<"CodingAgentProfile">;
274
+ packagePolicy?: Prisma.JsonFilter<"CodingAgentProfile">;
275
+ debugTraceUntil?: Prisma.DateTimeNullableFilter<"CodingAgentProfile"> | Date | string | null;
276
+ services?: Prisma.JsonFilter<"CodingAgentProfile">;
277
+ repositoryAuthorizedVia?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
278
+ repositoryAuthorizedById?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
279
+ repositoryAuthorizedAt?: Prisma.DateTimeNullableFilter<"CodingAgentProfile"> | Date | string | null;
280
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
281
+ };
282
+ export type CodingAgentProfileOrderByWithRelationInput = {
283
+ agentId?: Prisma.SortOrder;
284
+ provider?: Prisma.SortOrder;
285
+ repository?: Prisma.SortOrder;
286
+ baseRef?: Prisma.SortOrder;
287
+ defaultTask?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ allowWebhookTaskOverride?: Prisma.SortOrder;
289
+ timeoutSec?: Prisma.SortOrder;
290
+ allowedEgress?: Prisma.SortOrder;
291
+ protectedPaths?: Prisma.SortOrder;
292
+ collectExclude?: Prisma.SortOrder;
293
+ toolchain?: Prisma.SortOrder;
294
+ toolchainVersion?: Prisma.SortOrderInput | Prisma.SortOrder;
295
+ workerImageRef?: Prisma.SortOrderInput | Prisma.SortOrder;
296
+ workspaceDiskMb?: Prisma.SortOrderInput | Prisma.SortOrder;
297
+ packageAllowlist?: Prisma.SortOrder;
298
+ packagePolicy?: Prisma.SortOrder;
299
+ debugTraceUntil?: Prisma.SortOrderInput | Prisma.SortOrder;
300
+ services?: Prisma.SortOrder;
301
+ repositoryAuthorizedVia?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ repositoryAuthorizedById?: Prisma.SortOrderInput | Prisma.SortOrder;
303
+ repositoryAuthorizedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
304
+ agent?: Prisma.AgentOrderByWithRelationInput;
305
+ };
306
+ export type CodingAgentProfileWhereUniqueInput = Prisma.AtLeast<{
307
+ agentId?: string;
308
+ AND?: Prisma.CodingAgentProfileWhereInput | Prisma.CodingAgentProfileWhereInput[];
309
+ OR?: Prisma.CodingAgentProfileWhereInput[];
310
+ NOT?: Prisma.CodingAgentProfileWhereInput | Prisma.CodingAgentProfileWhereInput[];
311
+ provider?: Prisma.StringFilter<"CodingAgentProfile"> | string;
312
+ repository?: Prisma.StringFilter<"CodingAgentProfile"> | string;
313
+ baseRef?: Prisma.StringFilter<"CodingAgentProfile"> | string;
314
+ defaultTask?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
315
+ allowWebhookTaskOverride?: Prisma.BoolFilter<"CodingAgentProfile"> | boolean;
316
+ timeoutSec?: Prisma.IntFilter<"CodingAgentProfile"> | number;
317
+ allowedEgress?: Prisma.JsonFilter<"CodingAgentProfile">;
318
+ protectedPaths?: Prisma.JsonFilter<"CodingAgentProfile">;
319
+ collectExclude?: Prisma.JsonFilter<"CodingAgentProfile">;
320
+ toolchain?: Prisma.StringFilter<"CodingAgentProfile"> | string;
321
+ toolchainVersion?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
322
+ workerImageRef?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
323
+ workspaceDiskMb?: Prisma.IntNullableFilter<"CodingAgentProfile"> | number | null;
324
+ packageAllowlist?: Prisma.JsonFilter<"CodingAgentProfile">;
325
+ packagePolicy?: Prisma.JsonFilter<"CodingAgentProfile">;
326
+ debugTraceUntil?: Prisma.DateTimeNullableFilter<"CodingAgentProfile"> | Date | string | null;
327
+ services?: Prisma.JsonFilter<"CodingAgentProfile">;
328
+ repositoryAuthorizedVia?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
329
+ repositoryAuthorizedById?: Prisma.StringNullableFilter<"CodingAgentProfile"> | string | null;
330
+ repositoryAuthorizedAt?: Prisma.DateTimeNullableFilter<"CodingAgentProfile"> | Date | string | null;
331
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
332
+ }, "agentId">;
333
+ export type CodingAgentProfileOrderByWithAggregationInput = {
334
+ agentId?: Prisma.SortOrder;
335
+ provider?: Prisma.SortOrder;
336
+ repository?: Prisma.SortOrder;
337
+ baseRef?: Prisma.SortOrder;
338
+ defaultTask?: Prisma.SortOrderInput | Prisma.SortOrder;
339
+ allowWebhookTaskOverride?: Prisma.SortOrder;
340
+ timeoutSec?: Prisma.SortOrder;
341
+ allowedEgress?: Prisma.SortOrder;
342
+ protectedPaths?: Prisma.SortOrder;
343
+ collectExclude?: Prisma.SortOrder;
344
+ toolchain?: Prisma.SortOrder;
345
+ toolchainVersion?: Prisma.SortOrderInput | Prisma.SortOrder;
346
+ workerImageRef?: Prisma.SortOrderInput | Prisma.SortOrder;
347
+ workspaceDiskMb?: Prisma.SortOrderInput | Prisma.SortOrder;
348
+ packageAllowlist?: Prisma.SortOrder;
349
+ packagePolicy?: Prisma.SortOrder;
350
+ debugTraceUntil?: Prisma.SortOrderInput | Prisma.SortOrder;
351
+ services?: Prisma.SortOrder;
352
+ repositoryAuthorizedVia?: Prisma.SortOrderInput | Prisma.SortOrder;
353
+ repositoryAuthorizedById?: Prisma.SortOrderInput | Prisma.SortOrder;
354
+ repositoryAuthorizedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
355
+ _count?: Prisma.CodingAgentProfileCountOrderByAggregateInput;
356
+ _avg?: Prisma.CodingAgentProfileAvgOrderByAggregateInput;
357
+ _max?: Prisma.CodingAgentProfileMaxOrderByAggregateInput;
358
+ _min?: Prisma.CodingAgentProfileMinOrderByAggregateInput;
359
+ _sum?: Prisma.CodingAgentProfileSumOrderByAggregateInput;
360
+ };
361
+ export type CodingAgentProfileScalarWhereWithAggregatesInput = {
362
+ AND?: Prisma.CodingAgentProfileScalarWhereWithAggregatesInput | Prisma.CodingAgentProfileScalarWhereWithAggregatesInput[];
363
+ OR?: Prisma.CodingAgentProfileScalarWhereWithAggregatesInput[];
364
+ NOT?: Prisma.CodingAgentProfileScalarWhereWithAggregatesInput | Prisma.CodingAgentProfileScalarWhereWithAggregatesInput[];
365
+ agentId?: Prisma.StringWithAggregatesFilter<"CodingAgentProfile"> | string;
366
+ provider?: Prisma.StringWithAggregatesFilter<"CodingAgentProfile"> | string;
367
+ repository?: Prisma.StringWithAggregatesFilter<"CodingAgentProfile"> | string;
368
+ baseRef?: Prisma.StringWithAggregatesFilter<"CodingAgentProfile"> | string;
369
+ defaultTask?: Prisma.StringNullableWithAggregatesFilter<"CodingAgentProfile"> | string | null;
370
+ allowWebhookTaskOverride?: Prisma.BoolWithAggregatesFilter<"CodingAgentProfile"> | boolean;
371
+ timeoutSec?: Prisma.IntWithAggregatesFilter<"CodingAgentProfile"> | number;
372
+ allowedEgress?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
373
+ protectedPaths?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
374
+ collectExclude?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
375
+ toolchain?: Prisma.StringWithAggregatesFilter<"CodingAgentProfile"> | string;
376
+ toolchainVersion?: Prisma.StringNullableWithAggregatesFilter<"CodingAgentProfile"> | string | null;
377
+ workerImageRef?: Prisma.StringNullableWithAggregatesFilter<"CodingAgentProfile"> | string | null;
378
+ workspaceDiskMb?: Prisma.IntNullableWithAggregatesFilter<"CodingAgentProfile"> | number | null;
379
+ packageAllowlist?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
380
+ packagePolicy?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
381
+ debugTraceUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"CodingAgentProfile"> | Date | string | null;
382
+ services?: Prisma.JsonWithAggregatesFilter<"CodingAgentProfile">;
383
+ repositoryAuthorizedVia?: Prisma.StringNullableWithAggregatesFilter<"CodingAgentProfile"> | string | null;
384
+ repositoryAuthorizedById?: Prisma.StringNullableWithAggregatesFilter<"CodingAgentProfile"> | string | null;
385
+ repositoryAuthorizedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CodingAgentProfile"> | Date | string | null;
386
+ };
387
+ export type CodingAgentProfileCreateInput = {
388
+ provider?: string;
389
+ repository: string;
390
+ baseRef?: string;
391
+ defaultTask?: string | null;
392
+ allowWebhookTaskOverride?: boolean;
393
+ timeoutSec?: number;
394
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
395
+ protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
396
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
397
+ toolchain?: string;
398
+ toolchainVersion?: string | null;
399
+ workerImageRef?: string | null;
400
+ workspaceDiskMb?: number | null;
401
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
402
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
403
+ debugTraceUntil?: Date | string | null;
404
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
405
+ repositoryAuthorizedVia?: string | null;
406
+ repositoryAuthorizedById?: string | null;
407
+ repositoryAuthorizedAt?: Date | string | null;
408
+ agent: Prisma.AgentCreateNestedOneWithoutCodingProfileInput;
409
+ };
410
+ export type CodingAgentProfileUncheckedCreateInput = {
411
+ agentId: string;
412
+ provider?: string;
413
+ repository: string;
414
+ baseRef?: string;
415
+ defaultTask?: string | null;
416
+ allowWebhookTaskOverride?: boolean;
417
+ timeoutSec?: number;
418
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
419
+ protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
420
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
421
+ toolchain?: string;
422
+ toolchainVersion?: string | null;
423
+ workerImageRef?: string | null;
424
+ workspaceDiskMb?: number | null;
425
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
426
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
427
+ debugTraceUntil?: Date | string | null;
428
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
429
+ repositoryAuthorizedVia?: string | null;
430
+ repositoryAuthorizedById?: string | null;
431
+ repositoryAuthorizedAt?: Date | string | null;
432
+ };
433
+ export type CodingAgentProfileUpdateInput = {
434
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
436
+ baseRef?: Prisma.StringFieldUpdateOperationsInput | string;
437
+ defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
438
+ allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
439
+ timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
440
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
441
+ protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
442
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
443
+ toolchain?: Prisma.StringFieldUpdateOperationsInput | string;
444
+ toolchainVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
445
+ workerImageRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
446
+ workspaceDiskMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
447
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
448
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
449
+ debugTraceUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
450
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
451
+ repositoryAuthorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
452
+ repositoryAuthorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
453
+ repositoryAuthorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
454
+ agent?: Prisma.AgentUpdateOneRequiredWithoutCodingProfileNestedInput;
455
+ };
456
+ export type CodingAgentProfileUncheckedUpdateInput = {
457
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
458
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
459
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ baseRef?: Prisma.StringFieldUpdateOperationsInput | string;
461
+ defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
462
+ allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
463
+ timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
464
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
465
+ protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
466
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
467
+ toolchain?: Prisma.StringFieldUpdateOperationsInput | string;
468
+ toolchainVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
469
+ workerImageRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
470
+ workspaceDiskMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
471
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
472
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
473
+ debugTraceUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
474
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
475
+ repositoryAuthorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
476
+ repositoryAuthorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
477
+ repositoryAuthorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
478
+ };
479
+ export type CodingAgentProfileCreateManyInput = {
480
+ agentId: string;
481
+ provider?: string;
482
+ repository: string;
483
+ baseRef?: string;
484
+ defaultTask?: string | null;
485
+ allowWebhookTaskOverride?: boolean;
486
+ timeoutSec?: number;
487
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
488
+ protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
489
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
490
+ toolchain?: string;
491
+ toolchainVersion?: string | null;
492
+ workerImageRef?: string | null;
493
+ workspaceDiskMb?: number | null;
494
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
495
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
496
+ debugTraceUntil?: Date | string | null;
497
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
498
+ repositoryAuthorizedVia?: string | null;
499
+ repositoryAuthorizedById?: string | null;
500
+ repositoryAuthorizedAt?: Date | string | null;
501
+ };
502
+ export type CodingAgentProfileUpdateManyMutationInput = {
503
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
504
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
505
+ baseRef?: Prisma.StringFieldUpdateOperationsInput | string;
506
+ defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
507
+ allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
508
+ timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
509
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
510
+ protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
511
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
512
+ toolchain?: Prisma.StringFieldUpdateOperationsInput | string;
513
+ toolchainVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
+ workerImageRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
+ workspaceDiskMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
516
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
517
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
518
+ debugTraceUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
519
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
520
+ repositoryAuthorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
521
+ repositoryAuthorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
522
+ repositoryAuthorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
523
+ };
524
+ export type CodingAgentProfileUncheckedUpdateManyInput = {
525
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
526
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
527
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
528
+ baseRef?: Prisma.StringFieldUpdateOperationsInput | string;
529
+ defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
531
+ timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
532
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
533
+ protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
534
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
535
+ toolchain?: Prisma.StringFieldUpdateOperationsInput | string;
536
+ toolchainVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
537
+ workerImageRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
538
+ workspaceDiskMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
539
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
540
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
541
+ debugTraceUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
542
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
543
+ repositoryAuthorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
544
+ repositoryAuthorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
545
+ repositoryAuthorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
546
+ };
547
+ export type CodingAgentProfileNullableScalarRelationFilter = {
548
+ is?: Prisma.CodingAgentProfileWhereInput | null;
549
+ isNot?: Prisma.CodingAgentProfileWhereInput | null;
550
+ };
551
+ export type CodingAgentProfileCountOrderByAggregateInput = {
552
+ agentId?: Prisma.SortOrder;
553
+ provider?: Prisma.SortOrder;
554
+ repository?: Prisma.SortOrder;
555
+ baseRef?: Prisma.SortOrder;
556
+ defaultTask?: Prisma.SortOrder;
557
+ allowWebhookTaskOverride?: Prisma.SortOrder;
558
+ timeoutSec?: Prisma.SortOrder;
559
+ allowedEgress?: Prisma.SortOrder;
560
+ protectedPaths?: Prisma.SortOrder;
561
+ collectExclude?: Prisma.SortOrder;
562
+ toolchain?: Prisma.SortOrder;
563
+ toolchainVersion?: Prisma.SortOrder;
564
+ workerImageRef?: Prisma.SortOrder;
565
+ workspaceDiskMb?: Prisma.SortOrder;
566
+ packageAllowlist?: Prisma.SortOrder;
567
+ packagePolicy?: Prisma.SortOrder;
568
+ debugTraceUntil?: Prisma.SortOrder;
569
+ services?: Prisma.SortOrder;
570
+ repositoryAuthorizedVia?: Prisma.SortOrder;
571
+ repositoryAuthorizedById?: Prisma.SortOrder;
572
+ repositoryAuthorizedAt?: Prisma.SortOrder;
573
+ };
574
+ export type CodingAgentProfileAvgOrderByAggregateInput = {
575
+ timeoutSec?: Prisma.SortOrder;
576
+ workspaceDiskMb?: Prisma.SortOrder;
577
+ };
578
+ export type CodingAgentProfileMaxOrderByAggregateInput = {
579
+ agentId?: Prisma.SortOrder;
580
+ provider?: Prisma.SortOrder;
581
+ repository?: Prisma.SortOrder;
582
+ baseRef?: Prisma.SortOrder;
583
+ defaultTask?: Prisma.SortOrder;
584
+ allowWebhookTaskOverride?: Prisma.SortOrder;
585
+ timeoutSec?: Prisma.SortOrder;
586
+ toolchain?: Prisma.SortOrder;
587
+ toolchainVersion?: Prisma.SortOrder;
588
+ workerImageRef?: Prisma.SortOrder;
589
+ workspaceDiskMb?: Prisma.SortOrder;
590
+ debugTraceUntil?: Prisma.SortOrder;
591
+ repositoryAuthorizedVia?: Prisma.SortOrder;
592
+ repositoryAuthorizedById?: Prisma.SortOrder;
593
+ repositoryAuthorizedAt?: Prisma.SortOrder;
594
+ };
595
+ export type CodingAgentProfileMinOrderByAggregateInput = {
596
+ agentId?: Prisma.SortOrder;
597
+ provider?: Prisma.SortOrder;
598
+ repository?: Prisma.SortOrder;
599
+ baseRef?: Prisma.SortOrder;
600
+ defaultTask?: Prisma.SortOrder;
601
+ allowWebhookTaskOverride?: Prisma.SortOrder;
602
+ timeoutSec?: Prisma.SortOrder;
603
+ toolchain?: Prisma.SortOrder;
604
+ toolchainVersion?: Prisma.SortOrder;
605
+ workerImageRef?: Prisma.SortOrder;
606
+ workspaceDiskMb?: Prisma.SortOrder;
607
+ debugTraceUntil?: Prisma.SortOrder;
608
+ repositoryAuthorizedVia?: Prisma.SortOrder;
609
+ repositoryAuthorizedById?: Prisma.SortOrder;
610
+ repositoryAuthorizedAt?: Prisma.SortOrder;
611
+ };
612
+ export type CodingAgentProfileSumOrderByAggregateInput = {
613
+ timeoutSec?: Prisma.SortOrder;
614
+ workspaceDiskMb?: Prisma.SortOrder;
615
+ };
616
+ export type CodingAgentProfileCreateNestedOneWithoutAgentInput = {
617
+ create?: Prisma.XOR<Prisma.CodingAgentProfileCreateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedCreateWithoutAgentInput>;
618
+ connectOrCreate?: Prisma.CodingAgentProfileCreateOrConnectWithoutAgentInput;
619
+ connect?: Prisma.CodingAgentProfileWhereUniqueInput;
620
+ };
621
+ export type CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput = {
622
+ create?: Prisma.XOR<Prisma.CodingAgentProfileCreateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedCreateWithoutAgentInput>;
623
+ connectOrCreate?: Prisma.CodingAgentProfileCreateOrConnectWithoutAgentInput;
624
+ connect?: Prisma.CodingAgentProfileWhereUniqueInput;
625
+ };
626
+ export type CodingAgentProfileUpdateOneWithoutAgentNestedInput = {
627
+ create?: Prisma.XOR<Prisma.CodingAgentProfileCreateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedCreateWithoutAgentInput>;
628
+ connectOrCreate?: Prisma.CodingAgentProfileCreateOrConnectWithoutAgentInput;
629
+ upsert?: Prisma.CodingAgentProfileUpsertWithoutAgentInput;
630
+ disconnect?: Prisma.CodingAgentProfileWhereInput | boolean;
631
+ delete?: Prisma.CodingAgentProfileWhereInput | boolean;
632
+ connect?: Prisma.CodingAgentProfileWhereUniqueInput;
633
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingAgentProfileUpdateToOneWithWhereWithoutAgentInput, Prisma.CodingAgentProfileUpdateWithoutAgentInput>, Prisma.CodingAgentProfileUncheckedUpdateWithoutAgentInput>;
634
+ };
635
+ export type CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput = {
636
+ create?: Prisma.XOR<Prisma.CodingAgentProfileCreateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedCreateWithoutAgentInput>;
637
+ connectOrCreate?: Prisma.CodingAgentProfileCreateOrConnectWithoutAgentInput;
638
+ upsert?: Prisma.CodingAgentProfileUpsertWithoutAgentInput;
639
+ disconnect?: Prisma.CodingAgentProfileWhereInput | boolean;
640
+ delete?: Prisma.CodingAgentProfileWhereInput | boolean;
641
+ connect?: Prisma.CodingAgentProfileWhereUniqueInput;
642
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingAgentProfileUpdateToOneWithWhereWithoutAgentInput, Prisma.CodingAgentProfileUpdateWithoutAgentInput>, Prisma.CodingAgentProfileUncheckedUpdateWithoutAgentInput>;
643
+ };
644
+ export type NullableIntFieldUpdateOperationsInput = {
645
+ set?: number | null;
646
+ increment?: number;
647
+ decrement?: number;
648
+ multiply?: number;
649
+ divide?: number;
650
+ };
651
+ export type CodingAgentProfileCreateWithoutAgentInput = {
652
+ provider?: string;
653
+ repository: string;
654
+ baseRef?: string;
655
+ defaultTask?: string | null;
656
+ allowWebhookTaskOverride?: boolean;
657
+ timeoutSec?: number;
658
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
659
+ protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
660
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
661
+ toolchain?: string;
662
+ toolchainVersion?: string | null;
663
+ workerImageRef?: string | null;
664
+ workspaceDiskMb?: number | null;
665
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
666
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
667
+ debugTraceUntil?: Date | string | null;
668
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
669
+ repositoryAuthorizedVia?: string | null;
670
+ repositoryAuthorizedById?: string | null;
671
+ repositoryAuthorizedAt?: Date | string | null;
672
+ };
673
+ export type CodingAgentProfileUncheckedCreateWithoutAgentInput = {
674
+ provider?: string;
675
+ repository: string;
676
+ baseRef?: string;
677
+ defaultTask?: string | null;
678
+ allowWebhookTaskOverride?: boolean;
679
+ timeoutSec?: number;
680
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
681
+ protectedPaths: Prisma.JsonNullValueInput | runtime.InputJsonValue;
682
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
683
+ toolchain?: string;
684
+ toolchainVersion?: string | null;
685
+ workerImageRef?: string | null;
686
+ workspaceDiskMb?: number | null;
687
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
688
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
689
+ debugTraceUntil?: Date | string | null;
690
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
691
+ repositoryAuthorizedVia?: string | null;
692
+ repositoryAuthorizedById?: string | null;
693
+ repositoryAuthorizedAt?: Date | string | null;
694
+ };
695
+ export type CodingAgentProfileCreateOrConnectWithoutAgentInput = {
696
+ where: Prisma.CodingAgentProfileWhereUniqueInput;
697
+ create: Prisma.XOR<Prisma.CodingAgentProfileCreateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedCreateWithoutAgentInput>;
698
+ };
699
+ export type CodingAgentProfileUpsertWithoutAgentInput = {
700
+ update: Prisma.XOR<Prisma.CodingAgentProfileUpdateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedUpdateWithoutAgentInput>;
701
+ create: Prisma.XOR<Prisma.CodingAgentProfileCreateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedCreateWithoutAgentInput>;
702
+ where?: Prisma.CodingAgentProfileWhereInput;
703
+ };
704
+ export type CodingAgentProfileUpdateToOneWithWhereWithoutAgentInput = {
705
+ where?: Prisma.CodingAgentProfileWhereInput;
706
+ data: Prisma.XOR<Prisma.CodingAgentProfileUpdateWithoutAgentInput, Prisma.CodingAgentProfileUncheckedUpdateWithoutAgentInput>;
707
+ };
708
+ export type CodingAgentProfileUpdateWithoutAgentInput = {
709
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
710
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
711
+ baseRef?: Prisma.StringFieldUpdateOperationsInput | string;
712
+ defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
713
+ allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
714
+ timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
715
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
716
+ protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
717
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
718
+ toolchain?: Prisma.StringFieldUpdateOperationsInput | string;
719
+ toolchainVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
720
+ workerImageRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
721
+ workspaceDiskMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
722
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
723
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
724
+ debugTraceUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
725
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
726
+ repositoryAuthorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
727
+ repositoryAuthorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
728
+ repositoryAuthorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
729
+ };
730
+ export type CodingAgentProfileUncheckedUpdateWithoutAgentInput = {
731
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
732
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
733
+ baseRef?: Prisma.StringFieldUpdateOperationsInput | string;
734
+ defaultTask?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
735
+ allowWebhookTaskOverride?: Prisma.BoolFieldUpdateOperationsInput | boolean;
736
+ timeoutSec?: Prisma.IntFieldUpdateOperationsInput | number;
737
+ allowedEgress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
738
+ protectedPaths?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
739
+ collectExclude?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
740
+ toolchain?: Prisma.StringFieldUpdateOperationsInput | string;
741
+ toolchainVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
742
+ workerImageRef?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
743
+ workspaceDiskMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
744
+ packageAllowlist?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
745
+ packagePolicy?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
746
+ debugTraceUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
747
+ services?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
748
+ repositoryAuthorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
749
+ repositoryAuthorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
750
+ repositoryAuthorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
751
+ };
752
+ export type CodingAgentProfileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
753
+ agentId?: boolean;
754
+ provider?: boolean;
755
+ repository?: boolean;
756
+ baseRef?: boolean;
757
+ defaultTask?: boolean;
758
+ allowWebhookTaskOverride?: boolean;
759
+ timeoutSec?: boolean;
760
+ allowedEgress?: boolean;
761
+ protectedPaths?: boolean;
762
+ collectExclude?: boolean;
763
+ toolchain?: boolean;
764
+ toolchainVersion?: boolean;
765
+ workerImageRef?: boolean;
766
+ workspaceDiskMb?: boolean;
767
+ packageAllowlist?: boolean;
768
+ packagePolicy?: boolean;
769
+ debugTraceUntil?: boolean;
770
+ services?: boolean;
771
+ repositoryAuthorizedVia?: boolean;
772
+ repositoryAuthorizedById?: boolean;
773
+ repositoryAuthorizedAt?: boolean;
774
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
775
+ }, ExtArgs["result"]["codingAgentProfile"]>;
776
+ export type CodingAgentProfileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
777
+ agentId?: boolean;
778
+ provider?: boolean;
779
+ repository?: boolean;
780
+ baseRef?: boolean;
781
+ defaultTask?: boolean;
782
+ allowWebhookTaskOverride?: boolean;
783
+ timeoutSec?: boolean;
784
+ allowedEgress?: boolean;
785
+ protectedPaths?: boolean;
786
+ collectExclude?: boolean;
787
+ toolchain?: boolean;
788
+ toolchainVersion?: boolean;
789
+ workerImageRef?: boolean;
790
+ workspaceDiskMb?: boolean;
791
+ packageAllowlist?: boolean;
792
+ packagePolicy?: boolean;
793
+ debugTraceUntil?: boolean;
794
+ services?: boolean;
795
+ repositoryAuthorizedVia?: boolean;
796
+ repositoryAuthorizedById?: boolean;
797
+ repositoryAuthorizedAt?: boolean;
798
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
799
+ }, ExtArgs["result"]["codingAgentProfile"]>;
800
+ export type CodingAgentProfileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
801
+ agentId?: boolean;
802
+ provider?: boolean;
803
+ repository?: boolean;
804
+ baseRef?: boolean;
805
+ defaultTask?: boolean;
806
+ allowWebhookTaskOverride?: boolean;
807
+ timeoutSec?: boolean;
808
+ allowedEgress?: boolean;
809
+ protectedPaths?: boolean;
810
+ collectExclude?: boolean;
811
+ toolchain?: boolean;
812
+ toolchainVersion?: boolean;
813
+ workerImageRef?: boolean;
814
+ workspaceDiskMb?: boolean;
815
+ packageAllowlist?: boolean;
816
+ packagePolicy?: boolean;
817
+ debugTraceUntil?: boolean;
818
+ services?: boolean;
819
+ repositoryAuthorizedVia?: boolean;
820
+ repositoryAuthorizedById?: boolean;
821
+ repositoryAuthorizedAt?: boolean;
822
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
823
+ }, ExtArgs["result"]["codingAgentProfile"]>;
824
+ export type CodingAgentProfileSelectScalar = {
825
+ agentId?: boolean;
826
+ provider?: boolean;
827
+ repository?: boolean;
828
+ baseRef?: boolean;
829
+ defaultTask?: boolean;
830
+ allowWebhookTaskOverride?: boolean;
831
+ timeoutSec?: boolean;
832
+ allowedEgress?: boolean;
833
+ protectedPaths?: boolean;
834
+ collectExclude?: boolean;
835
+ toolchain?: boolean;
836
+ toolchainVersion?: boolean;
837
+ workerImageRef?: boolean;
838
+ workspaceDiskMb?: boolean;
839
+ packageAllowlist?: boolean;
840
+ packagePolicy?: boolean;
841
+ debugTraceUntil?: boolean;
842
+ services?: boolean;
843
+ repositoryAuthorizedVia?: boolean;
844
+ repositoryAuthorizedById?: boolean;
845
+ repositoryAuthorizedAt?: boolean;
846
+ };
847
+ export type CodingAgentProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentId" | "provider" | "repository" | "baseRef" | "defaultTask" | "allowWebhookTaskOverride" | "timeoutSec" | "allowedEgress" | "protectedPaths" | "collectExclude" | "toolchain" | "toolchainVersion" | "workerImageRef" | "workspaceDiskMb" | "packageAllowlist" | "packagePolicy" | "debugTraceUntil" | "services" | "repositoryAuthorizedVia" | "repositoryAuthorizedById" | "repositoryAuthorizedAt", ExtArgs["result"]["codingAgentProfile"]>;
848
+ export type CodingAgentProfileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
849
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
850
+ };
851
+ export type CodingAgentProfileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
852
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
853
+ };
854
+ export type CodingAgentProfileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
855
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
856
+ };
857
+ export type $CodingAgentProfilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
858
+ name: "CodingAgentProfile";
859
+ objects: {
860
+ agent: Prisma.$AgentPayload<ExtArgs>;
861
+ };
862
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
863
+ agentId: string;
864
+ provider: string;
865
+ repository: string;
866
+ baseRef: string;
867
+ defaultTask: string | null;
868
+ allowWebhookTaskOverride: boolean;
869
+ timeoutSec: number;
870
+ /**
871
+ * Unused; dropped after rollout (see the package-registry plan, Task 14).
872
+ */
873
+ allowedEgress: runtime.JsonValue;
874
+ protectedPaths: runtime.JsonValue;
875
+ collectExclude: runtime.JsonValue;
876
+ toolchain: string;
877
+ toolchainVersion: string | null;
878
+ workerImageRef: string | null;
879
+ /**
880
+ * Per-agent workspace size in MiB; null = CODING_DISK_MB.
881
+ */
882
+ workspaceDiskMb: number | null;
883
+ packageAllowlist: runtime.JsonValue;
884
+ packagePolicy: runtime.JsonValue;
885
+ /**
886
+ * Admin-requested debug trace: while now < debugTraceUntil, every coding
887
+ * run of this agent is dispatched with CodingRun.debugTrace set. Null = off.
888
+ */
889
+ debugTraceUntil: Date | null;
890
+ /**
891
+ * Coding-run services (docs/coding-services.md): the catalog names
892
+ * (CodingService.name) this agent's runs may start, any version the catalog
893
+ * has. Empty = none. Owner-set through update_agent.
894
+ */
895
+ services: runtime.JsonValue;
896
+ /**
897
+ * How `repository` was authorized for this agent (see AgentRepository.authorizedVia):
898
+ * "host_permission", "admin", or "grandfathered". Null = never authorized; runs are refused.
899
+ */
900
+ repositoryAuthorizedVia: string | null;
901
+ /**
902
+ * The principal whose GitHub access (or admin approval) authorized it. Audit only, no FK.
903
+ */
904
+ repositoryAuthorizedById: string | null;
905
+ repositoryAuthorizedAt: Date | null;
906
+ }, ExtArgs["result"]["codingAgentProfile"]>;
907
+ composites: {};
908
+ };
909
+ export type CodingAgentProfileGetPayload<S extends boolean | null | undefined | CodingAgentProfileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload, S>;
910
+ export type CodingAgentProfileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CodingAgentProfileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
911
+ select?: CodingAgentProfileCountAggregateInputType | true;
912
+ };
913
+ export interface CodingAgentProfileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
914
+ [K: symbol]: {
915
+ types: Prisma.TypeMap<ExtArgs>['model']['CodingAgentProfile'];
916
+ meta: {
917
+ name: 'CodingAgentProfile';
918
+ };
919
+ };
920
+ /**
921
+ * Find zero or one CodingAgentProfile that matches the filter.
922
+ * @param {CodingAgentProfileFindUniqueArgs} args - Arguments to find a CodingAgentProfile
923
+ * @example
924
+ * // Get one CodingAgentProfile
925
+ * const codingAgentProfile = await prisma.codingAgentProfile.findUnique({
926
+ * where: {
927
+ * // ... provide filter here
928
+ * }
929
+ * })
930
+ */
931
+ findUnique<T extends CodingAgentProfileFindUniqueArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
932
+ /**
933
+ * Find one CodingAgentProfile that matches the filter or throw an error with `error.code='P2025'`
934
+ * if no matches were found.
935
+ * @param {CodingAgentProfileFindUniqueOrThrowArgs} args - Arguments to find a CodingAgentProfile
936
+ * @example
937
+ * // Get one CodingAgentProfile
938
+ * const codingAgentProfile = await prisma.codingAgentProfile.findUniqueOrThrow({
939
+ * where: {
940
+ * // ... provide filter here
941
+ * }
942
+ * })
943
+ */
944
+ findUniqueOrThrow<T extends CodingAgentProfileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
945
+ /**
946
+ * Find the first CodingAgentProfile that matches the filter.
947
+ * Note, that providing `undefined` is treated as the value not being there.
948
+ * Read more here: https://pris.ly/d/null-undefined
949
+ * @param {CodingAgentProfileFindFirstArgs} args - Arguments to find a CodingAgentProfile
950
+ * @example
951
+ * // Get one CodingAgentProfile
952
+ * const codingAgentProfile = await prisma.codingAgentProfile.findFirst({
953
+ * where: {
954
+ * // ... provide filter here
955
+ * }
956
+ * })
957
+ */
958
+ findFirst<T extends CodingAgentProfileFindFirstArgs>(args?: Prisma.SelectSubset<T, CodingAgentProfileFindFirstArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
959
+ /**
960
+ * Find the first CodingAgentProfile that matches the filter or
961
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
962
+ * Note, that providing `undefined` is treated as the value not being there.
963
+ * Read more here: https://pris.ly/d/null-undefined
964
+ * @param {CodingAgentProfileFindFirstOrThrowArgs} args - Arguments to find a CodingAgentProfile
965
+ * @example
966
+ * // Get one CodingAgentProfile
967
+ * const codingAgentProfile = await prisma.codingAgentProfile.findFirstOrThrow({
968
+ * where: {
969
+ * // ... provide filter here
970
+ * }
971
+ * })
972
+ */
973
+ findFirstOrThrow<T extends CodingAgentProfileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CodingAgentProfileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
974
+ /**
975
+ * Find zero or more CodingAgentProfiles that matches the filter.
976
+ * Note, that providing `undefined` is treated as the value not being there.
977
+ * Read more here: https://pris.ly/d/null-undefined
978
+ * @param {CodingAgentProfileFindManyArgs} args - Arguments to filter and select certain fields only.
979
+ * @example
980
+ * // Get all CodingAgentProfiles
981
+ * const codingAgentProfiles = await prisma.codingAgentProfile.findMany()
982
+ *
983
+ * // Get first 10 CodingAgentProfiles
984
+ * const codingAgentProfiles = await prisma.codingAgentProfile.findMany({ take: 10 })
985
+ *
986
+ * // Only select the `agentId`
987
+ * const codingAgentProfileWithAgentIdOnly = await prisma.codingAgentProfile.findMany({ select: { agentId: true } })
988
+ *
989
+ */
990
+ findMany<T extends CodingAgentProfileFindManyArgs>(args?: Prisma.SelectSubset<T, CodingAgentProfileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
991
+ /**
992
+ * Create a CodingAgentProfile.
993
+ * @param {CodingAgentProfileCreateArgs} args - Arguments to create a CodingAgentProfile.
994
+ * @example
995
+ * // Create one CodingAgentProfile
996
+ * const CodingAgentProfile = await prisma.codingAgentProfile.create({
997
+ * data: {
998
+ * // ... data to create a CodingAgentProfile
999
+ * }
1000
+ * })
1001
+ *
1002
+ */
1003
+ create<T extends CodingAgentProfileCreateArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileCreateArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1004
+ /**
1005
+ * Create many CodingAgentProfiles.
1006
+ * @param {CodingAgentProfileCreateManyArgs} args - Arguments to create many CodingAgentProfiles.
1007
+ * @example
1008
+ * // Create many CodingAgentProfiles
1009
+ * const codingAgentProfile = await prisma.codingAgentProfile.createMany({
1010
+ * data: [
1011
+ * // ... provide data here
1012
+ * ]
1013
+ * })
1014
+ *
1015
+ */
1016
+ createMany<T extends CodingAgentProfileCreateManyArgs>(args?: Prisma.SelectSubset<T, CodingAgentProfileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1017
+ /**
1018
+ * Create many CodingAgentProfiles and returns the data saved in the database.
1019
+ * @param {CodingAgentProfileCreateManyAndReturnArgs} args - Arguments to create many CodingAgentProfiles.
1020
+ * @example
1021
+ * // Create many CodingAgentProfiles
1022
+ * const codingAgentProfile = await prisma.codingAgentProfile.createManyAndReturn({
1023
+ * data: [
1024
+ * // ... provide data here
1025
+ * ]
1026
+ * })
1027
+ *
1028
+ * // Create many CodingAgentProfiles and only return the `agentId`
1029
+ * const codingAgentProfileWithAgentIdOnly = await prisma.codingAgentProfile.createManyAndReturn({
1030
+ * select: { agentId: true },
1031
+ * data: [
1032
+ * // ... provide data here
1033
+ * ]
1034
+ * })
1035
+ * Note, that providing `undefined` is treated as the value not being there.
1036
+ * Read more here: https://pris.ly/d/null-undefined
1037
+ *
1038
+ */
1039
+ createManyAndReturn<T extends CodingAgentProfileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CodingAgentProfileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1040
+ /**
1041
+ * Delete a CodingAgentProfile.
1042
+ * @param {CodingAgentProfileDeleteArgs} args - Arguments to delete one CodingAgentProfile.
1043
+ * @example
1044
+ * // Delete one CodingAgentProfile
1045
+ * const CodingAgentProfile = await prisma.codingAgentProfile.delete({
1046
+ * where: {
1047
+ * // ... filter to delete one CodingAgentProfile
1048
+ * }
1049
+ * })
1050
+ *
1051
+ */
1052
+ delete<T extends CodingAgentProfileDeleteArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileDeleteArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1053
+ /**
1054
+ * Update one CodingAgentProfile.
1055
+ * @param {CodingAgentProfileUpdateArgs} args - Arguments to update one CodingAgentProfile.
1056
+ * @example
1057
+ * // Update one CodingAgentProfile
1058
+ * const codingAgentProfile = await prisma.codingAgentProfile.update({
1059
+ * where: {
1060
+ * // ... provide filter here
1061
+ * },
1062
+ * data: {
1063
+ * // ... provide data here
1064
+ * }
1065
+ * })
1066
+ *
1067
+ */
1068
+ update<T extends CodingAgentProfileUpdateArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileUpdateArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1069
+ /**
1070
+ * Delete zero or more CodingAgentProfiles.
1071
+ * @param {CodingAgentProfileDeleteManyArgs} args - Arguments to filter CodingAgentProfiles to delete.
1072
+ * @example
1073
+ * // Delete a few CodingAgentProfiles
1074
+ * const { count } = await prisma.codingAgentProfile.deleteMany({
1075
+ * where: {
1076
+ * // ... provide filter here
1077
+ * }
1078
+ * })
1079
+ *
1080
+ */
1081
+ deleteMany<T extends CodingAgentProfileDeleteManyArgs>(args?: Prisma.SelectSubset<T, CodingAgentProfileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1082
+ /**
1083
+ * Update zero or more CodingAgentProfiles.
1084
+ * Note, that providing `undefined` is treated as the value not being there.
1085
+ * Read more here: https://pris.ly/d/null-undefined
1086
+ * @param {CodingAgentProfileUpdateManyArgs} args - Arguments to update one or more rows.
1087
+ * @example
1088
+ * // Update many CodingAgentProfiles
1089
+ * const codingAgentProfile = await prisma.codingAgentProfile.updateMany({
1090
+ * where: {
1091
+ * // ... provide filter here
1092
+ * },
1093
+ * data: {
1094
+ * // ... provide data here
1095
+ * }
1096
+ * })
1097
+ *
1098
+ */
1099
+ updateMany<T extends CodingAgentProfileUpdateManyArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1100
+ /**
1101
+ * Update zero or more CodingAgentProfiles and returns the data updated in the database.
1102
+ * @param {CodingAgentProfileUpdateManyAndReturnArgs} args - Arguments to update many CodingAgentProfiles.
1103
+ * @example
1104
+ * // Update many CodingAgentProfiles
1105
+ * const codingAgentProfile = await prisma.codingAgentProfile.updateManyAndReturn({
1106
+ * where: {
1107
+ * // ... provide filter here
1108
+ * },
1109
+ * data: [
1110
+ * // ... provide data here
1111
+ * ]
1112
+ * })
1113
+ *
1114
+ * // Update zero or more CodingAgentProfiles and only return the `agentId`
1115
+ * const codingAgentProfileWithAgentIdOnly = await prisma.codingAgentProfile.updateManyAndReturn({
1116
+ * select: { agentId: true },
1117
+ * where: {
1118
+ * // ... provide filter here
1119
+ * },
1120
+ * data: [
1121
+ * // ... provide data here
1122
+ * ]
1123
+ * })
1124
+ * Note, that providing `undefined` is treated as the value not being there.
1125
+ * Read more here: https://pris.ly/d/null-undefined
1126
+ *
1127
+ */
1128
+ updateManyAndReturn<T extends CodingAgentProfileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1129
+ /**
1130
+ * Create or update one CodingAgentProfile.
1131
+ * @param {CodingAgentProfileUpsertArgs} args - Arguments to update or create a CodingAgentProfile.
1132
+ * @example
1133
+ * // Update or create a CodingAgentProfile
1134
+ * const codingAgentProfile = await prisma.codingAgentProfile.upsert({
1135
+ * create: {
1136
+ * // ... data to create a CodingAgentProfile
1137
+ * },
1138
+ * update: {
1139
+ * // ... in case it already exists, update
1140
+ * },
1141
+ * where: {
1142
+ * // ... the filter for the CodingAgentProfile we want to update
1143
+ * }
1144
+ * })
1145
+ */
1146
+ upsert<T extends CodingAgentProfileUpsertArgs>(args: Prisma.SelectSubset<T, CodingAgentProfileUpsertArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1147
+ /**
1148
+ * Count the number of CodingAgentProfiles.
1149
+ * Note, that providing `undefined` is treated as the value not being there.
1150
+ * Read more here: https://pris.ly/d/null-undefined
1151
+ * @param {CodingAgentProfileCountArgs} args - Arguments to filter CodingAgentProfiles to count.
1152
+ * @example
1153
+ * // Count the number of CodingAgentProfiles
1154
+ * const count = await prisma.codingAgentProfile.count({
1155
+ * where: {
1156
+ * // ... the filter for the CodingAgentProfiles we want to count
1157
+ * }
1158
+ * })
1159
+ **/
1160
+ count<T extends CodingAgentProfileCountArgs>(args?: Prisma.Subset<T, CodingAgentProfileCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CodingAgentProfileCountAggregateOutputType> : number>;
1161
+ /**
1162
+ * Allows you to perform aggregations operations on a CodingAgentProfile.
1163
+ * Note, that providing `undefined` is treated as the value not being there.
1164
+ * Read more here: https://pris.ly/d/null-undefined
1165
+ * @param {CodingAgentProfileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1166
+ * @example
1167
+ * // Ordered by age ascending
1168
+ * // Where email contains prisma.io
1169
+ * // Limited to the 10 users
1170
+ * const aggregations = await prisma.user.aggregate({
1171
+ * _avg: {
1172
+ * age: true,
1173
+ * },
1174
+ * where: {
1175
+ * email: {
1176
+ * contains: "prisma.io",
1177
+ * },
1178
+ * },
1179
+ * orderBy: {
1180
+ * age: "asc",
1181
+ * },
1182
+ * take: 10,
1183
+ * })
1184
+ **/
1185
+ aggregate<T extends CodingAgentProfileAggregateArgs>(args: Prisma.Subset<T, CodingAgentProfileAggregateArgs>): Prisma.PrismaPromise<GetCodingAgentProfileAggregateType<T>>;
1186
+ /**
1187
+ * Group by CodingAgentProfile.
1188
+ * Note, that providing `undefined` is treated as the value not being there.
1189
+ * Read more here: https://pris.ly/d/null-undefined
1190
+ * @param {CodingAgentProfileGroupByArgs} args - Group by arguments.
1191
+ * @example
1192
+ * // Group by city, order by createdAt, get count
1193
+ * const result = await prisma.user.groupBy({
1194
+ * by: ['city', 'createdAt'],
1195
+ * orderBy: {
1196
+ * createdAt: true
1197
+ * },
1198
+ * _count: {
1199
+ * _all: true
1200
+ * },
1201
+ * })
1202
+ *
1203
+ **/
1204
+ groupBy<T extends CodingAgentProfileGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1205
+ orderBy: CodingAgentProfileGroupByArgs['orderBy'];
1206
+ } : {
1207
+ orderBy?: CodingAgentProfileGroupByArgs['orderBy'];
1208
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1209
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1210
+ Error,
1211
+ 'Field ',
1212
+ P,
1213
+ ` in "having" needs to be provided in "by"`
1214
+ ];
1215
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1216
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1217
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1218
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1219
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1220
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1221
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CodingAgentProfileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCodingAgentProfileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1222
+ /**
1223
+ * Fields of the CodingAgentProfile model
1224
+ */
1225
+ readonly fields: CodingAgentProfileFieldRefs;
1226
+ }
1227
+ /**
1228
+ * The delegate class that acts as a "Promise-like" for CodingAgentProfile.
1229
+ * Why is this prefixed with `Prisma__`?
1230
+ * Because we want to prevent naming conflicts as mentioned in
1231
+ * https://github.com/prisma/prisma-client-js/issues/707
1232
+ */
1233
+ export interface Prisma__CodingAgentProfileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1234
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1235
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1236
+ /**
1237
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1238
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1239
+ * @param onrejected The callback to execute when the Promise is rejected.
1240
+ * @returns A Promise for the completion of which ever callback is executed.
1241
+ */
1242
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1243
+ /**
1244
+ * Attaches a callback for only the rejection of the Promise.
1245
+ * @param onrejected The callback to execute when the Promise is rejected.
1246
+ * @returns A Promise for the completion of the callback.
1247
+ */
1248
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1249
+ /**
1250
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1251
+ * resolved value cannot be modified from the callback.
1252
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1253
+ * @returns A Promise for the completion of the callback.
1254
+ */
1255
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1256
+ }
1257
+ /**
1258
+ * Fields of the CodingAgentProfile model
1259
+ */
1260
+ export interface CodingAgentProfileFieldRefs {
1261
+ readonly agentId: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1262
+ readonly provider: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1263
+ readonly repository: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1264
+ readonly baseRef: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1265
+ readonly defaultTask: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1266
+ readonly allowWebhookTaskOverride: Prisma.FieldRef<"CodingAgentProfile", 'Boolean'>;
1267
+ readonly timeoutSec: Prisma.FieldRef<"CodingAgentProfile", 'Int'>;
1268
+ readonly allowedEgress: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1269
+ readonly protectedPaths: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1270
+ readonly collectExclude: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1271
+ readonly toolchain: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1272
+ readonly toolchainVersion: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1273
+ readonly workerImageRef: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1274
+ readonly workspaceDiskMb: Prisma.FieldRef<"CodingAgentProfile", 'Int'>;
1275
+ readonly packageAllowlist: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1276
+ readonly packagePolicy: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1277
+ readonly debugTraceUntil: Prisma.FieldRef<"CodingAgentProfile", 'DateTime'>;
1278
+ readonly services: Prisma.FieldRef<"CodingAgentProfile", 'Json'>;
1279
+ readonly repositoryAuthorizedVia: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1280
+ readonly repositoryAuthorizedById: Prisma.FieldRef<"CodingAgentProfile", 'String'>;
1281
+ readonly repositoryAuthorizedAt: Prisma.FieldRef<"CodingAgentProfile", 'DateTime'>;
1282
+ }
1283
+ /**
1284
+ * CodingAgentProfile findUnique
1285
+ */
1286
+ export type CodingAgentProfileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1287
+ /**
1288
+ * Select specific fields to fetch from the CodingAgentProfile
1289
+ */
1290
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1291
+ /**
1292
+ * Omit specific fields from the CodingAgentProfile
1293
+ */
1294
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1295
+ /**
1296
+ * Choose, which related nodes to fetch as well
1297
+ */
1298
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1299
+ /**
1300
+ * Filter, which CodingAgentProfile to fetch.
1301
+ */
1302
+ where: Prisma.CodingAgentProfileWhereUniqueInput;
1303
+ };
1304
+ /**
1305
+ * CodingAgentProfile findUniqueOrThrow
1306
+ */
1307
+ export type CodingAgentProfileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1308
+ /**
1309
+ * Select specific fields to fetch from the CodingAgentProfile
1310
+ */
1311
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1312
+ /**
1313
+ * Omit specific fields from the CodingAgentProfile
1314
+ */
1315
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1316
+ /**
1317
+ * Choose, which related nodes to fetch as well
1318
+ */
1319
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1320
+ /**
1321
+ * Filter, which CodingAgentProfile to fetch.
1322
+ */
1323
+ where: Prisma.CodingAgentProfileWhereUniqueInput;
1324
+ };
1325
+ /**
1326
+ * CodingAgentProfile findFirst
1327
+ */
1328
+ export type CodingAgentProfileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1329
+ /**
1330
+ * Select specific fields to fetch from the CodingAgentProfile
1331
+ */
1332
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1333
+ /**
1334
+ * Omit specific fields from the CodingAgentProfile
1335
+ */
1336
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1337
+ /**
1338
+ * Choose, which related nodes to fetch as well
1339
+ */
1340
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1341
+ /**
1342
+ * Filter, which CodingAgentProfile to fetch.
1343
+ */
1344
+ where?: Prisma.CodingAgentProfileWhereInput;
1345
+ /**
1346
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1347
+ *
1348
+ * Determine the order of CodingAgentProfiles to fetch.
1349
+ */
1350
+ orderBy?: Prisma.CodingAgentProfileOrderByWithRelationInput | Prisma.CodingAgentProfileOrderByWithRelationInput[];
1351
+ /**
1352
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1353
+ *
1354
+ * Sets the position for searching for CodingAgentProfiles.
1355
+ */
1356
+ cursor?: Prisma.CodingAgentProfileWhereUniqueInput;
1357
+ /**
1358
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1359
+ *
1360
+ * Take `±n` CodingAgentProfiles from the position of the cursor.
1361
+ */
1362
+ take?: number;
1363
+ /**
1364
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1365
+ *
1366
+ * Skip the first `n` CodingAgentProfiles.
1367
+ */
1368
+ skip?: number;
1369
+ /**
1370
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1371
+ *
1372
+ * Filter by unique combinations of CodingAgentProfiles.
1373
+ */
1374
+ distinct?: Prisma.CodingAgentProfileScalarFieldEnum | Prisma.CodingAgentProfileScalarFieldEnum[];
1375
+ };
1376
+ /**
1377
+ * CodingAgentProfile findFirstOrThrow
1378
+ */
1379
+ export type CodingAgentProfileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the CodingAgentProfile
1382
+ */
1383
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1384
+ /**
1385
+ * Omit specific fields from the CodingAgentProfile
1386
+ */
1387
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1388
+ /**
1389
+ * Choose, which related nodes to fetch as well
1390
+ */
1391
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1392
+ /**
1393
+ * Filter, which CodingAgentProfile to fetch.
1394
+ */
1395
+ where?: Prisma.CodingAgentProfileWhereInput;
1396
+ /**
1397
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1398
+ *
1399
+ * Determine the order of CodingAgentProfiles to fetch.
1400
+ */
1401
+ orderBy?: Prisma.CodingAgentProfileOrderByWithRelationInput | Prisma.CodingAgentProfileOrderByWithRelationInput[];
1402
+ /**
1403
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1404
+ *
1405
+ * Sets the position for searching for CodingAgentProfiles.
1406
+ */
1407
+ cursor?: Prisma.CodingAgentProfileWhereUniqueInput;
1408
+ /**
1409
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1410
+ *
1411
+ * Take `±n` CodingAgentProfiles from the position of the cursor.
1412
+ */
1413
+ take?: number;
1414
+ /**
1415
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1416
+ *
1417
+ * Skip the first `n` CodingAgentProfiles.
1418
+ */
1419
+ skip?: number;
1420
+ /**
1421
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1422
+ *
1423
+ * Filter by unique combinations of CodingAgentProfiles.
1424
+ */
1425
+ distinct?: Prisma.CodingAgentProfileScalarFieldEnum | Prisma.CodingAgentProfileScalarFieldEnum[];
1426
+ };
1427
+ /**
1428
+ * CodingAgentProfile findMany
1429
+ */
1430
+ export type CodingAgentProfileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1431
+ /**
1432
+ * Select specific fields to fetch from the CodingAgentProfile
1433
+ */
1434
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1435
+ /**
1436
+ * Omit specific fields from the CodingAgentProfile
1437
+ */
1438
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1439
+ /**
1440
+ * Choose, which related nodes to fetch as well
1441
+ */
1442
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1443
+ /**
1444
+ * Filter, which CodingAgentProfiles to fetch.
1445
+ */
1446
+ where?: Prisma.CodingAgentProfileWhereInput;
1447
+ /**
1448
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1449
+ *
1450
+ * Determine the order of CodingAgentProfiles to fetch.
1451
+ */
1452
+ orderBy?: Prisma.CodingAgentProfileOrderByWithRelationInput | Prisma.CodingAgentProfileOrderByWithRelationInput[];
1453
+ /**
1454
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1455
+ *
1456
+ * Sets the position for listing CodingAgentProfiles.
1457
+ */
1458
+ cursor?: Prisma.CodingAgentProfileWhereUniqueInput;
1459
+ /**
1460
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1461
+ *
1462
+ * Take `±n` CodingAgentProfiles from the position of the cursor.
1463
+ */
1464
+ take?: number;
1465
+ /**
1466
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1467
+ *
1468
+ * Skip the first `n` CodingAgentProfiles.
1469
+ */
1470
+ skip?: number;
1471
+ /**
1472
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1473
+ *
1474
+ * Filter by unique combinations of CodingAgentProfiles.
1475
+ */
1476
+ distinct?: Prisma.CodingAgentProfileScalarFieldEnum | Prisma.CodingAgentProfileScalarFieldEnum[];
1477
+ };
1478
+ /**
1479
+ * CodingAgentProfile create
1480
+ */
1481
+ export type CodingAgentProfileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * Select specific fields to fetch from the CodingAgentProfile
1484
+ */
1485
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1486
+ /**
1487
+ * Omit specific fields from the CodingAgentProfile
1488
+ */
1489
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1490
+ /**
1491
+ * Choose, which related nodes to fetch as well
1492
+ */
1493
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1494
+ /**
1495
+ * The data needed to create a CodingAgentProfile.
1496
+ */
1497
+ data: Prisma.XOR<Prisma.CodingAgentProfileCreateInput, Prisma.CodingAgentProfileUncheckedCreateInput>;
1498
+ };
1499
+ /**
1500
+ * CodingAgentProfile createMany
1501
+ */
1502
+ export type CodingAgentProfileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1503
+ /**
1504
+ * The data used to create many CodingAgentProfiles.
1505
+ */
1506
+ data: Prisma.CodingAgentProfileCreateManyInput | Prisma.CodingAgentProfileCreateManyInput[];
1507
+ skipDuplicates?: boolean;
1508
+ };
1509
+ /**
1510
+ * CodingAgentProfile createManyAndReturn
1511
+ */
1512
+ export type CodingAgentProfileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1513
+ /**
1514
+ * Select specific fields to fetch from the CodingAgentProfile
1515
+ */
1516
+ select?: Prisma.CodingAgentProfileSelectCreateManyAndReturn<ExtArgs> | null;
1517
+ /**
1518
+ * Omit specific fields from the CodingAgentProfile
1519
+ */
1520
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1521
+ /**
1522
+ * The data used to create many CodingAgentProfiles.
1523
+ */
1524
+ data: Prisma.CodingAgentProfileCreateManyInput | Prisma.CodingAgentProfileCreateManyInput[];
1525
+ skipDuplicates?: boolean;
1526
+ /**
1527
+ * Choose, which related nodes to fetch as well
1528
+ */
1529
+ include?: Prisma.CodingAgentProfileIncludeCreateManyAndReturn<ExtArgs> | null;
1530
+ };
1531
+ /**
1532
+ * CodingAgentProfile update
1533
+ */
1534
+ export type CodingAgentProfileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1535
+ /**
1536
+ * Select specific fields to fetch from the CodingAgentProfile
1537
+ */
1538
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1539
+ /**
1540
+ * Omit specific fields from the CodingAgentProfile
1541
+ */
1542
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1543
+ /**
1544
+ * Choose, which related nodes to fetch as well
1545
+ */
1546
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1547
+ /**
1548
+ * The data needed to update a CodingAgentProfile.
1549
+ */
1550
+ data: Prisma.XOR<Prisma.CodingAgentProfileUpdateInput, Prisma.CodingAgentProfileUncheckedUpdateInput>;
1551
+ /**
1552
+ * Choose, which CodingAgentProfile to update.
1553
+ */
1554
+ where: Prisma.CodingAgentProfileWhereUniqueInput;
1555
+ };
1556
+ /**
1557
+ * CodingAgentProfile updateMany
1558
+ */
1559
+ export type CodingAgentProfileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1560
+ /**
1561
+ * The data used to update CodingAgentProfiles.
1562
+ */
1563
+ data: Prisma.XOR<Prisma.CodingAgentProfileUpdateManyMutationInput, Prisma.CodingAgentProfileUncheckedUpdateManyInput>;
1564
+ /**
1565
+ * Filter which CodingAgentProfiles to update
1566
+ */
1567
+ where?: Prisma.CodingAgentProfileWhereInput;
1568
+ /**
1569
+ * Limit how many CodingAgentProfiles to update.
1570
+ */
1571
+ limit?: number;
1572
+ };
1573
+ /**
1574
+ * CodingAgentProfile updateManyAndReturn
1575
+ */
1576
+ export type CodingAgentProfileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1577
+ /**
1578
+ * Select specific fields to fetch from the CodingAgentProfile
1579
+ */
1580
+ select?: Prisma.CodingAgentProfileSelectUpdateManyAndReturn<ExtArgs> | null;
1581
+ /**
1582
+ * Omit specific fields from the CodingAgentProfile
1583
+ */
1584
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1585
+ /**
1586
+ * The data used to update CodingAgentProfiles.
1587
+ */
1588
+ data: Prisma.XOR<Prisma.CodingAgentProfileUpdateManyMutationInput, Prisma.CodingAgentProfileUncheckedUpdateManyInput>;
1589
+ /**
1590
+ * Filter which CodingAgentProfiles to update
1591
+ */
1592
+ where?: Prisma.CodingAgentProfileWhereInput;
1593
+ /**
1594
+ * Limit how many CodingAgentProfiles to update.
1595
+ */
1596
+ limit?: number;
1597
+ /**
1598
+ * Choose, which related nodes to fetch as well
1599
+ */
1600
+ include?: Prisma.CodingAgentProfileIncludeUpdateManyAndReturn<ExtArgs> | null;
1601
+ };
1602
+ /**
1603
+ * CodingAgentProfile upsert
1604
+ */
1605
+ export type CodingAgentProfileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1606
+ /**
1607
+ * Select specific fields to fetch from the CodingAgentProfile
1608
+ */
1609
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1610
+ /**
1611
+ * Omit specific fields from the CodingAgentProfile
1612
+ */
1613
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1614
+ /**
1615
+ * Choose, which related nodes to fetch as well
1616
+ */
1617
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1618
+ /**
1619
+ * The filter to search for the CodingAgentProfile to update in case it exists.
1620
+ */
1621
+ where: Prisma.CodingAgentProfileWhereUniqueInput;
1622
+ /**
1623
+ * In case the CodingAgentProfile found by the `where` argument doesn't exist, create a new CodingAgentProfile with this data.
1624
+ */
1625
+ create: Prisma.XOR<Prisma.CodingAgentProfileCreateInput, Prisma.CodingAgentProfileUncheckedCreateInput>;
1626
+ /**
1627
+ * In case the CodingAgentProfile was found with the provided `where` argument, update it with this data.
1628
+ */
1629
+ update: Prisma.XOR<Prisma.CodingAgentProfileUpdateInput, Prisma.CodingAgentProfileUncheckedUpdateInput>;
1630
+ };
1631
+ /**
1632
+ * CodingAgentProfile delete
1633
+ */
1634
+ export type CodingAgentProfileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1635
+ /**
1636
+ * Select specific fields to fetch from the CodingAgentProfile
1637
+ */
1638
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1639
+ /**
1640
+ * Omit specific fields from the CodingAgentProfile
1641
+ */
1642
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1643
+ /**
1644
+ * Choose, which related nodes to fetch as well
1645
+ */
1646
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1647
+ /**
1648
+ * Filter which CodingAgentProfile to delete.
1649
+ */
1650
+ where: Prisma.CodingAgentProfileWhereUniqueInput;
1651
+ };
1652
+ /**
1653
+ * CodingAgentProfile deleteMany
1654
+ */
1655
+ export type CodingAgentProfileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1656
+ /**
1657
+ * Filter which CodingAgentProfiles to delete
1658
+ */
1659
+ where?: Prisma.CodingAgentProfileWhereInput;
1660
+ /**
1661
+ * Limit how many CodingAgentProfiles to delete.
1662
+ */
1663
+ limit?: number;
1664
+ };
1665
+ /**
1666
+ * CodingAgentProfile without action
1667
+ */
1668
+ export type CodingAgentProfileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1669
+ /**
1670
+ * Select specific fields to fetch from the CodingAgentProfile
1671
+ */
1672
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
1673
+ /**
1674
+ * Omit specific fields from the CodingAgentProfile
1675
+ */
1676
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
1677
+ /**
1678
+ * Choose, which related nodes to fetch as well
1679
+ */
1680
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
1681
+ };