@ai-development-environment/server 0.0.48 → 0.0.49

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 (575) hide show
  1. package/package.json +1 -1
  2. package/prisma-runtime/prisma/migrations/20260723214432_add_model_costs/migration.sql +28 -0
  3. package/prisma-runtime/prisma/schema.prisma +30 -0
  4. package/standalone/.next/BUILD_ID +1 -1
  5. package/standalone/.next/app-path-routes-manifest.json +1 -0
  6. package/standalone/.next/build-manifest.json +3 -3
  7. package/standalone/.next/prerender-manifest.json +3 -3
  8. package/standalone/.next/routes-manifest.json +8 -0
  9. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  25. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  26. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  27. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  28. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  29. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  30. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  31. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  34. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  35. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  36. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  37. package/standalone/.next/server/app/[locale]/costs/page/app-paths-manifest.json +3 -0
  38. package/standalone/.next/server/app/[locale]/costs/page/build-manifest.json +16 -0
  39. package/standalone/.next/server/app/[locale]/costs/page/next-font-manifest.json +11 -0
  40. package/standalone/.next/server/app/[locale]/costs/page/react-loadable-manifest.json +1 -0
  41. package/standalone/.next/server/app/[locale]/costs/page/server-reference-manifest.json +4 -0
  42. package/standalone/.next/server/app/[locale]/costs/page.js +17 -0
  43. package/standalone/.next/server/app/[locale]/costs/page.js.map +5 -0
  44. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -0
  45. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +3 -0
  46. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  47. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  48. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  49. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  50. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  51. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  52. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  53. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  54. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  55. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  56. package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
  57. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  58. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
  59. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  60. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  61. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  62. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  63. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  64. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  65. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  66. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  67. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  68. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  69. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  70. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  71. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  72. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  73. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  74. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  75. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  76. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  77. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  78. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  79. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  80. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  81. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  82. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  83. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  84. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  85. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  86. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  87. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  88. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  89. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  90. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  91. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  92. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  93. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  94. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  95. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  96. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  97. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  98. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  99. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  100. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  101. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  102. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  103. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  104. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  105. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  106. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  107. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  108. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  109. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  110. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  111. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  112. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  113. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  114. package/standalone/.next/server/app/_global-error.html +1 -1
  115. package/standalone/.next/server/app/_global-error.rsc +1 -1
  116. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  117. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  118. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  119. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  120. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  121. package/standalone/.next/server/app/_not-found.html +1 -1
  122. package/standalone/.next/server/app/_not-found.rsc +1 -1
  123. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  124. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  125. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  126. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  127. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  128. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  129. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
  130. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  131. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
  132. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  133. package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
  134. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  135. package/standalone/.next/server/app/api/codebases/route.js +1 -1
  136. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  137. package/standalone/.next/server/app/api/graphql/route.js +1 -1
  138. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  139. package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
  140. package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
  141. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
  142. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
  143. package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
  144. package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
  145. package/standalone/.next/server/app/api/mcp/route.js +1 -1
  146. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  147. package/standalone/.next/server/app/api/openapi.json/route.js +1 -1
  148. package/standalone/.next/server/app/api/openapi.json/route.js.nft.json +1 -1
  149. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
  150. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
  151. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
  152. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  153. package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
  154. package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
  155. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
  156. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
  157. package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
  158. package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
  159. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js +1 -1
  160. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  161. package/standalone/.next/server/app/api/run-attachments/route.js +1 -1
  162. package/standalone/.next/server/app/api/run-attachments/route.js.nft.json +1 -1
  163. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
  164. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
  165. package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
  166. package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
  167. package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
  168. package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
  169. package/standalone/.next/server/app/api/tools/call/route.js +1 -1
  170. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  171. package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
  172. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  173. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
  174. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
  175. package/standalone/.next/server/app-paths-manifest.json +1 -0
  176. package/standalone/.next/server/chunks/{[root-of-the-server]__0m6-kcg._.js → [root-of-the-server]__0-ktevp._.js} +2 -2
  177. package/standalone/.next/server/chunks/{[root-of-the-server]__06tm4sl._.js → [root-of-the-server]__0-zj-yf._.js} +1 -1
  178. package/standalone/.next/server/chunks/{[root-of-the-server]__0eili-e._.js → [root-of-the-server]__01nvzbq._.js} +2 -2
  179. package/standalone/.next/server/chunks/{[root-of-the-server]__0_87b17._.js → [root-of-the-server]__03orm-i._.js} +1 -1
  180. package/standalone/.next/server/chunks/{[root-of-the-server]__039ccw_._.js → [root-of-the-server]__04_a-p8._.js} +1 -1
  181. package/standalone/.next/server/chunks/{[root-of-the-server]__045avxp._.js → [root-of-the-server]__04sca_q._.js} +1 -1
  182. package/standalone/.next/server/chunks/{[root-of-the-server]__09vpqml._.js → [root-of-the-server]__04wnjxs._.js} +1 -1
  183. package/standalone/.next/server/chunks/{[root-of-the-server]__0dvn5ie._.js → [root-of-the-server]__04xapi4._.js} +1 -1
  184. package/standalone/.next/server/chunks/{[root-of-the-server]__00kk4vq._.js → [root-of-the-server]__04xwt6o._.js} +1 -1
  185. package/standalone/.next/server/chunks/{[root-of-the-server]__00rus46._.js → [root-of-the-server]__051yqe-._.js} +1 -1
  186. package/standalone/.next/server/chunks/{[root-of-the-server]__1tw_3no._.js → [root-of-the-server]__05pgm03._.js} +2 -2
  187. package/standalone/.next/server/chunks/{[root-of-the-server]__05vesnq._.js → [root-of-the-server]__05uug8c._.js} +1 -1
  188. package/standalone/.next/server/chunks/{[root-of-the-server]__026cujx._.js → [root-of-the-server]__064xuoi._.js} +1 -1
  189. package/standalone/.next/server/chunks/{[root-of-the-server]__0hwgatq._.js → [root-of-the-server]__06bc7-t._.js} +2 -2
  190. package/standalone/.next/server/chunks/{[root-of-the-server]__05iw4b6._.js → [root-of-the-server]__06hz_5m._.js} +1 -1
  191. package/standalone/.next/server/chunks/{[root-of-the-server]__079vs-o._.js → [root-of-the-server]__06qqqz4._.js} +1 -1
  192. package/standalone/.next/server/chunks/[root-of-the-server]__073_7pr._.js +3 -0
  193. package/standalone/.next/server/chunks/[root-of-the-server]__07ezodj._.js +3 -0
  194. package/standalone/.next/server/chunks/{[root-of-the-server]__0ammric._.js → [root-of-the-server]__07gz69e._.js} +1 -1
  195. package/standalone/.next/server/chunks/{[root-of-the-server]__0avv--n._.js → [root-of-the-server]__08ekn_k._.js} +1 -1
  196. package/standalone/.next/server/chunks/{[root-of-the-server]__06qq-80._.js → [root-of-the-server]__09v822g._.js} +1 -1
  197. package/standalone/.next/server/chunks/[root-of-the-server]__0_2v0r6._.js +3 -0
  198. package/standalone/.next/server/chunks/{[root-of-the-server]__0ev57uq._.js → [root-of-the-server]__0_elwh5._.js} +1 -1
  199. package/standalone/.next/server/chunks/[root-of-the-server]__0_uti3p._.js +3 -0
  200. package/standalone/.next/server/chunks/{[root-of-the-server]__04iwwa-._.js → [root-of-the-server]__0av34cc._.js} +2 -2
  201. package/standalone/.next/server/chunks/[root-of-the-server]__0be93bj._.js +3 -0
  202. package/standalone/.next/server/chunks/[root-of-the-server]__0bzypkl._.js +3 -0
  203. package/standalone/.next/server/chunks/{[root-of-the-server]__0lfudmf._.js → [root-of-the-server]__0ccm4vp._.js} +1 -1
  204. package/standalone/.next/server/chunks/{[root-of-the-server]__212svca._.js → [root-of-the-server]__0cfp7rm._.js} +2 -2
  205. package/standalone/.next/server/chunks/[root-of-the-server]__0d3jwu8._.js +3 -0
  206. package/standalone/.next/server/chunks/[root-of-the-server]__0dqd2cd._.js +3 -0
  207. package/standalone/.next/server/chunks/[root-of-the-server]__0e3sw2f._.js +3 -0
  208. package/standalone/.next/server/chunks/[root-of-the-server]__0ehmsw5._.js +3 -0
  209. package/standalone/.next/server/chunks/[root-of-the-server]__0ey9b8q._.js +3 -0
  210. package/standalone/.next/server/chunks/[root-of-the-server]__0hxwzy5._.js +3 -0
  211. package/standalone/.next/server/chunks/{[root-of-the-server]__00pn80i._.js → [root-of-the-server]__0i46cc8._.js} +2 -2
  212. package/standalone/.next/server/chunks/{[root-of-the-server]__1mkh-uu._.js → [root-of-the-server]__0ii54f8._.js} +2 -2
  213. package/standalone/.next/server/chunks/[root-of-the-server]__0k5hi4x._.js +3 -0
  214. package/standalone/.next/server/chunks/[root-of-the-server]__0lk6mxj._.js +3 -0
  215. package/standalone/.next/server/chunks/{[root-of-the-server]__1nozyf6._.js → [root-of-the-server]__0miujba._.js} +2 -2
  216. package/standalone/.next/server/chunks/[root-of-the-server]__0qbgbqj._.js +3 -0
  217. package/standalone/.next/server/chunks/[root-of-the-server]__0qc5tar._.js +3 -0
  218. package/standalone/.next/server/chunks/[root-of-the-server]__0rland0._.js +3 -0
  219. package/standalone/.next/server/chunks/{[root-of-the-server]__1_sflnn._.js → [root-of-the-server]__0rsjbt9._.js} +2 -2
  220. package/standalone/.next/server/chunks/[root-of-the-server]__0u67sg7._.js +3 -0
  221. package/standalone/.next/server/chunks/[root-of-the-server]__0ubhe7w._.js +3 -0
  222. package/standalone/.next/server/chunks/[root-of-the-server]__0ue-6s0._.js +3 -0
  223. package/standalone/.next/server/chunks/[root-of-the-server]__0uyhbd8._.js +3 -0
  224. package/standalone/.next/server/chunks/[root-of-the-server]__0v_qn14._.js +3 -0
  225. package/standalone/.next/server/chunks/{[root-of-the-server]__0oef7yv._.js → [root-of-the-server]__0vgjzu_._.js} +2 -2
  226. package/standalone/.next/server/chunks/{[root-of-the-server]__0t1ryja._.js → [root-of-the-server]__0vs63nv._.js} +2 -2
  227. package/standalone/.next/server/chunks/{[root-of-the-server]__0ujfqqn._.js → [root-of-the-server]__0vuegxj._.js} +1 -1
  228. package/standalone/.next/server/chunks/[root-of-the-server]__0wc19bn._.js +3 -0
  229. package/standalone/.next/server/chunks/[root-of-the-server]__0xhhfqn._.js +3 -0
  230. package/standalone/.next/server/chunks/[root-of-the-server]__0xuga9u._.js +3 -0
  231. package/standalone/.next/server/chunks/[root-of-the-server]__1-b8mhr._.js +3 -0
  232. package/standalone/.next/server/chunks/[root-of-the-server]__1-vesoj._.js +3 -0
  233. package/standalone/.next/server/chunks/[root-of-the-server]__10jq5fz._.js +3 -0
  234. package/standalone/.next/server/chunks/[root-of-the-server]__11adyal._.js +3 -0
  235. package/standalone/.next/server/chunks/[root-of-the-server]__11v9z03._.js +3 -0
  236. package/standalone/.next/server/chunks/{[root-of-the-server]__03yxfwh._.js → [root-of-the-server]__12qoy0t._.js} +2 -2
  237. package/standalone/.next/server/chunks/{[root-of-the-server]__0uq2mf_._.js → [root-of-the-server]__13olq7t._.js} +2 -2
  238. package/standalone/.next/server/chunks/[root-of-the-server]__13z4o0y._.js +3 -0
  239. package/standalone/.next/server/chunks/[root-of-the-server]__14flk9w._.js +3 -0
  240. package/standalone/.next/server/chunks/[root-of-the-server]__14p4_xo._.js +3 -0
  241. package/standalone/.next/server/chunks/{[root-of-the-server]__1attksp._.js → [root-of-the-server]__14x4hy5._.js} +2 -2
  242. package/standalone/.next/server/chunks/[root-of-the-server]__16yif_j._.js +3 -0
  243. package/standalone/.next/server/chunks/[root-of-the-server]__17_i51a._.js +3 -0
  244. package/standalone/.next/server/chunks/[root-of-the-server]__17fmydy._.js +3 -0
  245. package/standalone/.next/server/chunks/[root-of-the-server]__17uilh6._.js +3 -0
  246. package/standalone/.next/server/chunks/{[root-of-the-server]__11hjzc0._.js → [root-of-the-server]__183_4dj._.js} +2 -2
  247. package/standalone/.next/server/chunks/[root-of-the-server]__18p4ewi._.js +3 -0
  248. package/standalone/.next/server/chunks/[root-of-the-server]__190kf-7._.js +3 -0
  249. package/standalone/.next/server/chunks/[root-of-the-server]__1_t7_qf._.js +3 -0
  250. package/standalone/.next/server/chunks/[root-of-the-server]__1_tq9n2._.js +3 -0
  251. package/standalone/.next/server/chunks/[root-of-the-server]__1b8ar_b._.js +3 -0
  252. package/standalone/.next/server/chunks/[root-of-the-server]__1b_j3xv._.js +3 -0
  253. package/standalone/.next/server/chunks/[root-of-the-server]__1cj96fo._.js +3 -0
  254. package/standalone/.next/server/chunks/[root-of-the-server]__1dvcmqw._.js +3 -0
  255. package/standalone/.next/server/chunks/[root-of-the-server]__1gcfshm._.js +3 -0
  256. package/standalone/.next/server/chunks/[root-of-the-server]__1gen-el._.js +3 -0
  257. package/standalone/.next/server/chunks/[root-of-the-server]__1gonl53._.js +3 -0
  258. package/standalone/.next/server/chunks/[root-of-the-server]__1hst7ec._.js +3 -0
  259. package/standalone/.next/server/chunks/[root-of-the-server]__1hvcd1x._.js +3 -0
  260. package/standalone/.next/server/chunks/[root-of-the-server]__1kajbb_._.js +3 -0
  261. package/standalone/.next/server/chunks/[root-of-the-server]__1kj1ln5._.js +3 -0
  262. package/standalone/.next/server/chunks/[root-of-the-server]__1l9-hc6._.js +3 -0
  263. package/standalone/.next/server/chunks/[root-of-the-server]__1lgant0._.js +3 -0
  264. package/standalone/.next/server/chunks/[root-of-the-server]__1na8-n6._.js +3 -0
  265. package/standalone/.next/server/chunks/[root-of-the-server]__1ottisz._.js +3 -0
  266. package/standalone/.next/server/chunks/[root-of-the-server]__1shxc8n._.js +3 -0
  267. package/standalone/.next/server/chunks/[root-of-the-server]__1tvvhzn._.js +3 -0
  268. package/standalone/.next/server/chunks/{[root-of-the-server]__1yam92a._.js → [root-of-the-server]__1ummn4p._.js} +2 -2
  269. package/standalone/.next/server/chunks/[root-of-the-server]__1v-dnat._.js +3 -0
  270. package/standalone/.next/server/chunks/[root-of-the-server]__1wdw3t2._.js +3 -0
  271. package/standalone/.next/server/chunks/[root-of-the-server]__1wdye-x._.js +3 -0
  272. package/standalone/.next/server/chunks/[root-of-the-server]__1wjvdyz._.js +3 -0
  273. package/standalone/.next/server/chunks/{[root-of-the-server]__06dbyo-._.js → [root-of-the-server]__1xnwo73._.js} +2 -2
  274. package/standalone/.next/server/chunks/{[root-of-the-server]__0v0oh52._.js → [root-of-the-server]__1yi_2qs._.js} +2 -2
  275. package/standalone/.next/server/chunks/{[root-of-the-server]__0axi_lh._.js → [root-of-the-server]__1yim97_._.js} +1 -1
  276. package/standalone/.next/server/chunks/[root-of-the-server]__1zcjrka._.js +3 -0
  277. package/standalone/.next/server/chunks/{[root-of-the-server]__08bpdlj._.js → [root-of-the-server]__1zrp8nv._.js} +2 -2
  278. package/standalone/.next/server/chunks/[root-of-the-server]__2125ewz._.js +3 -0
  279. package/standalone/.next/server/chunks/_0151la8._.js +1 -1
  280. package/standalone/.next/server/chunks/_01p5vu2._.js +1 -1
  281. package/standalone/.next/server/chunks/_07bbzzn._.js +1 -1
  282. package/standalone/.next/server/chunks/_0_3-lke._.js +88 -1
  283. package/standalone/.next/server/chunks/_0g1xb8v._.js +1 -1
  284. package/standalone/.next/server/chunks/_11p_tgb._.js +1 -1
  285. package/standalone/.next/server/chunks/_17e45g_._.js +1 -1
  286. package/standalone/.next/server/chunks/_1hmzed-._.js +192 -105
  287. package/standalone/.next/server/chunks/_1ioi8na._.js +1 -1
  288. package/standalone/.next/server/chunks/_1m96-gv._.js +1 -1
  289. package/standalone/.next/server/chunks/_1r_e2vq._.js +1 -1
  290. package/standalone/.next/server/chunks/_1xr-3kb._.js +1 -1
  291. package/standalone/.next/server/chunks/src_services_runs_index_ts_0_l1wkt._.js +5 -5
  292. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03mx68i._.js +35 -0
  293. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06_k1v8._.js +55 -0
  294. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ik85du._.js +35 -0
  295. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1wsrjus._.js → [root-of-the-server]__0lavdf4._.js} +2 -2
  296. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0lgqolk._.js +3 -0
  297. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0o4j_p7._.js +3 -0
  298. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0usqx1k._.js +3 -0
  299. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1bpbvfj._.js +3 -0
  300. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1iccye4._.js +3 -0
  301. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1m28j8h._.js +50 -0
  302. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qatu4i._.js +55 -0
  303. package/standalone/.next/server/chunks/ssr/_0-zp1-t._.js +24 -0
  304. package/standalone/.next/server/chunks/ssr/_01gprkf._.js +3 -0
  305. package/standalone/.next/server/chunks/ssr/_02ku0-d._.js +3 -0
  306. package/standalone/.next/server/chunks/ssr/_04de9zy._.js +22 -0
  307. package/standalone/.next/server/chunks/ssr/_06iu0wl._.js +14 -0
  308. package/standalone/.next/server/chunks/ssr/_09fzzrw._.js +3 -0
  309. package/standalone/.next/server/chunks/ssr/_0_l0f-3._.js +3 -0
  310. package/standalone/.next/server/chunks/ssr/_0c0xiut._.js +3 -3
  311. package/standalone/.next/server/chunks/ssr/{_1-kqme0._.js → _0egs9gy._.js} +2 -2
  312. package/standalone/.next/server/chunks/ssr/_0f77vgb._.js +3 -3
  313. package/standalone/.next/server/chunks/ssr/_0fxzy4k._.js +25 -0
  314. package/standalone/.next/server/chunks/ssr/_0kp9tyy._.js +3 -0
  315. package/standalone/.next/server/chunks/ssr/_0mbgqw2._.js +3 -0
  316. package/standalone/.next/server/chunks/ssr/_0nlc7lw._.js +3 -0
  317. package/standalone/.next/server/chunks/ssr/_0o60joc._.js +3 -0
  318. package/standalone/.next/server/chunks/ssr/_0o6a-0c._.js +3 -0
  319. package/standalone/.next/server/chunks/ssr/_0p296dl._.js +3 -0
  320. package/standalone/.next/server/chunks/ssr/_0qilx29._.js +3 -0
  321. package/standalone/.next/server/chunks/ssr/_0qt0tus._.js +34 -0
  322. package/standalone/.next/server/chunks/ssr/_0vyqwim._.js +3 -0
  323. package/standalone/.next/server/chunks/ssr/_0xquvzm._.js +3 -0
  324. package/standalone/.next/server/chunks/ssr/_0y39xwb._.js +11 -0
  325. package/standalone/.next/server/chunks/ssr/_0zush3e._.js +3 -0
  326. package/standalone/.next/server/chunks/ssr/_12xqut4._.js +3 -0
  327. package/standalone/.next/server/chunks/ssr/_1337yek._.js +3 -0
  328. package/standalone/.next/server/chunks/ssr/_15cf0-b._.js +3 -0
  329. package/standalone/.next/server/chunks/ssr/_15p60kc._.js +3 -0
  330. package/standalone/.next/server/chunks/ssr/_17dj9--._.js +3 -0
  331. package/standalone/.next/server/chunks/ssr/_1_z-mrp._.js +3 -0
  332. package/standalone/.next/server/chunks/ssr/_1btalzp._.js +3 -0
  333. package/standalone/.next/server/chunks/ssr/_1bxaf69._.js +3 -0
  334. package/standalone/.next/server/chunks/ssr/_1dwrw9s._.js +3 -0
  335. package/standalone/.next/server/chunks/ssr/{_0ov6iy1._.js → _1ejg55c._.js} +2 -2
  336. package/standalone/.next/server/chunks/ssr/_1glp2ss._.js +24 -0
  337. package/standalone/.next/server/chunks/ssr/_1hisxge._.js +3 -0
  338. package/standalone/.next/server/chunks/ssr/_1kstox-._.js +3 -0
  339. package/standalone/.next/server/chunks/ssr/_1m5s4f8._.js +3 -0
  340. package/standalone/.next/server/chunks/ssr/_1qtzca_._.js +3 -0
  341. package/standalone/.next/server/chunks/ssr/{_1kysa5a._.js → _1s5bp9h._.js} +2 -2
  342. package/standalone/.next/server/chunks/ssr/_1wb78d8._.js +34 -0
  343. package/standalone/.next/server/chunks/ssr/_1y5d9t8._.js +6 -0
  344. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +7 -7
  345. package/standalone/.next/server/chunks/ssr/{_1j_ku-q._.js → _20lnu8x._.js} +2 -2
  346. package/standalone/.next/server/chunks/ssr/{_03lk450._.js → _20wicqx._.js} +3 -3
  347. package/standalone/.next/server/chunks/ssr/_next-internal_server_app_[locale]_costs_page_actions_16fdpkb.js +3 -0
  348. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  349. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  350. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  351. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  352. package/standalone/.next/server/chunks/ssr/node_modules_0j8c3kh._.js +3 -0
  353. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1ghuygj._.js +3 -0
  354. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1x2xg00._.js +3 -0
  355. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0kifgf3.js +4 -0
  356. package/standalone/.next/server/chunks/ssr/src_components_builds_configuration-icon_tsx_1v42ztc._.js +1 -1
  357. package/standalone/.next/server/chunks/ssr/src_components_builds_coverage-report-page_tsx_1nhwba1._.js +2 -2
  358. package/standalone/.next/server/chunks/ssr/src_components_notifications_notifications-page_tsx_19f4ztg._.js +1 -1
  359. package/standalone/.next/server/chunks/ssr/src_components_push-notifications_push-notifications-page_tsx_1c_b-t4._.js +2 -2
  360. package/standalone/.next/server/chunks/ssr/src_components_runs_attachment-picker_tsx_0netm9l._.js +1 -1
  361. package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
  362. package/standalone/.next/server/chunks/ssr/src_components_runs_runs-page_tsx_0l5-7eu._.js +1 -1
  363. package/standalone/.next/server/chunks/ssr/src_components_settings-page_tsx_06dxqc7._.js +5 -5
  364. package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
  365. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  366. package/standalone/.next/server/next-font-manifest.js +1 -1
  367. package/standalone/.next/server/next-font-manifest.json +4 -0
  368. package/standalone/.next/server/pages/404.html +1 -1
  369. package/standalone/.next/server/pages/500.html +1 -1
  370. package/standalone/.next/server/server-reference-manifest.js +1 -1
  371. package/standalone/.next/server/server-reference-manifest.json +1 -1
  372. package/standalone/.next/static/chunks/{3b8uo25m50np4.js → 00-wgagfa3jgw.js} +6 -6
  373. package/standalone/.next/static/chunks/{1_zvnvft13-co.js → 0269se70im5oy.js} +1 -1
  374. package/standalone/.next/static/chunks/06ww4smr4x1rf.js +46 -0
  375. package/standalone/.next/static/chunks/0ad6f15x10087.js +31 -0
  376. package/standalone/.next/static/chunks/{04gmuff_hq-a2.js → 0gi1rut09px9z.js} +1 -1
  377. package/standalone/.next/static/chunks/0hhv79fjnhx0r.js +1 -0
  378. package/standalone/.next/static/chunks/0koiigzfqaaxm.js +6 -0
  379. package/standalone/.next/static/chunks/0lz2yyevf796v.js +57 -0
  380. package/standalone/.next/static/chunks/{12rdpylf5_1s1.js → 0n_3nenvq-cdq.js} +1 -1
  381. package/standalone/.next/static/chunks/{2g3hfv0bu6-ac.js → 0nsdo6d126qko.js} +1 -1
  382. package/standalone/.next/static/chunks/0tydvosk1yzd3.js +9 -0
  383. package/standalone/.next/static/chunks/{11rdgo_6b41l1.js → 0vh2j_0-i7_4a.js} +2 -2
  384. package/standalone/.next/static/chunks/0x7ht_1kzfirv.js +3 -0
  385. package/standalone/.next/static/chunks/{2lgln0a2k277h.js → 0xge_x1_gyy-7.js} +1 -1
  386. package/standalone/.next/static/chunks/0y9oq83e4ty93.js +29 -0
  387. package/standalone/.next/static/chunks/10ugqh884daci.js +67 -0
  388. package/standalone/.next/static/chunks/167jr5pbpylis.js +7 -0
  389. package/standalone/.next/static/chunks/{2vjc_-wvtw1hf.js → 18rpe2d8mq3kd.js} +3 -3
  390. package/standalone/.next/static/chunks/1c285hxt_qxlx.js +46 -0
  391. package/standalone/.next/static/chunks/1f3ggqgs3erm7.js +41 -0
  392. package/standalone/.next/static/chunks/1f3hspf4q04c7.js +1 -0
  393. package/standalone/.next/static/chunks/1g8c1oh-w22rr.js +54 -0
  394. package/standalone/.next/static/chunks/1h680dhlld_lc.js +33 -0
  395. package/standalone/.next/static/chunks/1hymkpu62xhp8.js +33 -0
  396. package/standalone/.next/static/chunks/{12kemc9g02r2c.js → 1l-ift-80ao1c.js} +1 -1
  397. package/standalone/.next/static/chunks/1nz8ddeplq5hs.js +1 -0
  398. package/standalone/.next/static/chunks/1qecuivo6a47u.css +1 -0
  399. package/standalone/.next/static/chunks/1r9r_g25rp8ak.js +23 -0
  400. package/standalone/.next/static/chunks/{0x7pt5btcphku.js → 1uwz2ko2jqwtz.js} +1 -1
  401. package/standalone/.next/static/chunks/1v5zb8ln1rz2d.js +1 -0
  402. package/standalone/.next/static/chunks/{0ai0x7vc1931l.js → 1xjs526g101xh.js} +1 -1
  403. package/standalone/.next/static/chunks/{3369nhs1_otwi.js → 2-duyp_kl5qx9.js} +1 -1
  404. package/standalone/.next/static/chunks/{3roht5nbja0a_.js → 21di8-zv-5qvx.js} +18 -18
  405. package/standalone/.next/static/chunks/22d7hj9vwqj9p.js +1 -0
  406. package/standalone/.next/static/chunks/{1lnlrcypmvv5h.js → 24jkxx9dbxh1h.js} +1 -1
  407. package/standalone/.next/static/chunks/{3pj0v38s6yr9s.js → 28vxarecfoquo.js} +4 -4
  408. package/standalone/.next/static/chunks/28z95ky0z7tkb.js +10 -0
  409. package/standalone/.next/static/chunks/2ayopd7367rqs.js +41 -0
  410. package/standalone/.next/static/chunks/2azupfg2-5j-p.js +1 -0
  411. package/standalone/.next/static/chunks/2brlnpt__4ftd.js +1 -0
  412. package/standalone/.next/static/chunks/2k_pfyxmtuoy5.js +1 -0
  413. package/standalone/.next/static/chunks/2km-n4_gmq7cl.js +1 -0
  414. package/standalone/.next/static/chunks/2llvq19x9do52.js +9 -0
  415. package/standalone/.next/static/chunks/{1biwep24jyw3_.js → 2qedr2wefau4t.js} +1 -1
  416. package/standalone/.next/static/chunks/2wb15vf48-edn.js +92 -0
  417. package/standalone/.next/static/chunks/{0b33bs18huezl.js → 2x2_7-5jm0gme.js} +15 -15
  418. package/standalone/.next/static/chunks/2yjrhue4lxrng.js +1 -0
  419. package/standalone/.next/static/chunks/324kabhuasm-p.js +53 -0
  420. package/standalone/.next/static/chunks/34jvsrj9xubhb.js +1 -0
  421. package/standalone/.next/static/chunks/38oh9ov0j80rj.js +12 -0
  422. package/standalone/.next/static/chunks/{42n596b3nvu1d.js → 38z6ydb1jtugp.js} +9 -9
  423. package/standalone/.next/static/chunks/{06ko8c02ly6ua.js → 3b7o_8v0u__4p.js} +1 -1
  424. package/standalone/.next/static/chunks/3e31jo--0j7bd.js +1 -0
  425. package/standalone/.next/static/chunks/3llt9fqdrs6_3.js +7 -0
  426. package/standalone/.next/static/chunks/3m3riu0uoz_w0.js +64 -0
  427. package/standalone/.next/static/chunks/3s_cg15bmegsq.js +64 -0
  428. package/standalone/.next/static/chunks/{1il4firsh2p_o.js → 3tulld0sh2yxv.js} +1 -1
  429. package/standalone/.next/static/chunks/3zr5h7dm94-d3.js +1 -0
  430. package/standalone/.next/server/chunks/[root-of-the-server]__082mwbz._.js +0 -3
  431. package/standalone/.next/server/chunks/[root-of-the-server]__08rs4kl._.js +0 -3
  432. package/standalone/.next/server/chunks/[root-of-the-server]__0ejd120._.js +0 -3
  433. package/standalone/.next/server/chunks/[root-of-the-server]__0epw197._.js +0 -3
  434. package/standalone/.next/server/chunks/[root-of-the-server]__0erekw9._.js +0 -3
  435. package/standalone/.next/server/chunks/[root-of-the-server]__0l8fuzs._.js +0 -3
  436. package/standalone/.next/server/chunks/[root-of-the-server]__0m09s9s._.js +0 -3
  437. package/standalone/.next/server/chunks/[root-of-the-server]__0o4kf3w._.js +0 -3
  438. package/standalone/.next/server/chunks/[root-of-the-server]__0q7pwvx._.js +0 -3
  439. package/standalone/.next/server/chunks/[root-of-the-server]__0quwt4e._.js +0 -3
  440. package/standalone/.next/server/chunks/[root-of-the-server]__0r2qqym._.js +0 -3
  441. package/standalone/.next/server/chunks/[root-of-the-server]__0rafxyp._.js +0 -3
  442. package/standalone/.next/server/chunks/[root-of-the-server]__0rxa3sz._.js +0 -3
  443. package/standalone/.next/server/chunks/[root-of-the-server]__0sxnukz._.js +0 -3
  444. package/standalone/.next/server/chunks/[root-of-the-server]__0tck2gw._.js +0 -3
  445. package/standalone/.next/server/chunks/[root-of-the-server]__0upntz8._.js +0 -3
  446. package/standalone/.next/server/chunks/[root-of-the-server]__0w7u33h._.js +0 -3
  447. package/standalone/.next/server/chunks/[root-of-the-server]__0wccpuq._.js +0 -3
  448. package/standalone/.next/server/chunks/[root-of-the-server]__0wq5_-0._.js +0 -3
  449. package/standalone/.next/server/chunks/[root-of-the-server]__0x8p1h0._.js +0 -3
  450. package/standalone/.next/server/chunks/[root-of-the-server]__0yq7gle._.js +0 -3
  451. package/standalone/.next/server/chunks/[root-of-the-server]__0yvl0kj._.js +0 -3
  452. package/standalone/.next/server/chunks/[root-of-the-server]__0yyj4bs._.js +0 -3
  453. package/standalone/.next/server/chunks/[root-of-the-server]__1-q8hnm._.js +0 -3
  454. package/standalone/.next/server/chunks/[root-of-the-server]__11i-u3m._.js +0 -3
  455. package/standalone/.next/server/chunks/[root-of-the-server]__11wdfkm._.js +0 -3
  456. package/standalone/.next/server/chunks/[root-of-the-server]__13-bmbg._.js +0 -3
  457. package/standalone/.next/server/chunks/[root-of-the-server]__14sr2n9._.js +0 -3
  458. package/standalone/.next/server/chunks/[root-of-the-server]__15zrchx._.js +0 -3
  459. package/standalone/.next/server/chunks/[root-of-the-server]__17im3wm._.js +0 -3
  460. package/standalone/.next/server/chunks/[root-of-the-server]__17j6ax7._.js +0 -3
  461. package/standalone/.next/server/chunks/[root-of-the-server]__19bpnrg._.js +0 -3
  462. package/standalone/.next/server/chunks/[root-of-the-server]__19y6-lp._.js +0 -3
  463. package/standalone/.next/server/chunks/[root-of-the-server]__1_8gar4._.js +0 -3
  464. package/standalone/.next/server/chunks/[root-of-the-server]__1_m78-y._.js +0 -3
  465. package/standalone/.next/server/chunks/[root-of-the-server]__1_osj_0._.js +0 -3
  466. package/standalone/.next/server/chunks/[root-of-the-server]__1_xtyhp._.js +0 -3
  467. package/standalone/.next/server/chunks/[root-of-the-server]__1ba1y6w._.js +0 -3
  468. package/standalone/.next/server/chunks/[root-of-the-server]__1d-p62y._.js +0 -3
  469. package/standalone/.next/server/chunks/[root-of-the-server]__1e2tfpn._.js +0 -3
  470. package/standalone/.next/server/chunks/[root-of-the-server]__1fw5scf._.js +0 -3
  471. package/standalone/.next/server/chunks/[root-of-the-server]__1g0rhrl._.js +0 -3
  472. package/standalone/.next/server/chunks/[root-of-the-server]__1h6a01c._.js +0 -3
  473. package/standalone/.next/server/chunks/[root-of-the-server]__1i54hfr._.js +0 -3
  474. package/standalone/.next/server/chunks/[root-of-the-server]__1ismp8w._.js +0 -3
  475. package/standalone/.next/server/chunks/[root-of-the-server]__1kgh2tn._.js +0 -3
  476. package/standalone/.next/server/chunks/[root-of-the-server]__1l0a05x._.js +0 -3
  477. package/standalone/.next/server/chunks/[root-of-the-server]__1levtv0._.js +0 -3
  478. package/standalone/.next/server/chunks/[root-of-the-server]__1mk80rh._.js +0 -3
  479. package/standalone/.next/server/chunks/[root-of-the-server]__1n58dbx._.js +0 -3
  480. package/standalone/.next/server/chunks/[root-of-the-server]__1nxvyuj._.js +0 -3
  481. package/standalone/.next/server/chunks/[root-of-the-server]__1o4ho5v._.js +0 -3
  482. package/standalone/.next/server/chunks/[root-of-the-server]__1osqj7h._.js +0 -3
  483. package/standalone/.next/server/chunks/[root-of-the-server]__1oxgsjg._.js +0 -3
  484. package/standalone/.next/server/chunks/[root-of-the-server]__1r9m70u._.js +0 -3
  485. package/standalone/.next/server/chunks/[root-of-the-server]__1t1-ozx._.js +0 -3
  486. package/standalone/.next/server/chunks/[root-of-the-server]__1tj3th9._.js +0 -3
  487. package/standalone/.next/server/chunks/[root-of-the-server]__1v_176-._.js +0 -3
  488. package/standalone/.next/server/chunks/[root-of-the-server]__1wnx190._.js +0 -3
  489. package/standalone/.next/server/chunks/[root-of-the-server]__1wsm3gj._.js +0 -3
  490. package/standalone/.next/server/chunks/[root-of-the-server]__1ygwh5f._.js +0 -3
  491. package/standalone/.next/server/chunks/[root-of-the-server]__205s18n._.js +0 -3
  492. package/standalone/.next/server/chunks/[root-of-the-server]__20m339t._.js +0 -3
  493. package/standalone/.next/server/chunks/[root-of-the-server]__216tiae._.js +0 -3
  494. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0__ku3o._.js +0 -35
  495. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f7usu6._.js +0 -3
  496. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0fa4g67._.js +0 -3
  497. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ybu1dj._.js +0 -3
  498. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ywelz9._.js +0 -55
  499. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__114998b._.js +0 -3
  500. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__144jx4y._.js +0 -35
  501. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__17mewsc._.js +0 -3
  502. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1lx9kov._.js +0 -50
  503. package/standalone/.next/server/chunks/ssr/_03edwuc._.js +0 -3
  504. package/standalone/.next/server/chunks/ssr/_03mo_w3._.js +0 -3
  505. package/standalone/.next/server/chunks/ssr/_065924f._.js +0 -3
  506. package/standalone/.next/server/chunks/ssr/_0a8xyjk._.js +0 -34
  507. package/standalone/.next/server/chunks/ssr/_0dsosms._.js +0 -34
  508. package/standalone/.next/server/chunks/ssr/_0kx9ux4._.js +0 -3
  509. package/standalone/.next/server/chunks/ssr/_0la2zju._.js +0 -3
  510. package/standalone/.next/server/chunks/ssr/_0mcyq3z._.js +0 -3
  511. package/standalone/.next/server/chunks/ssr/_0ocxapn._.js +0 -3
  512. package/standalone/.next/server/chunks/ssr/_0p03tt8._.js +0 -3
  513. package/standalone/.next/server/chunks/ssr/_0qi9ubx._.js +0 -3
  514. package/standalone/.next/server/chunks/ssr/_0s55i9k._.js +0 -3
  515. package/standalone/.next/server/chunks/ssr/_0w5dl6y._.js +0 -3
  516. package/standalone/.next/server/chunks/ssr/_1-3kr_6._.js +0 -3
  517. package/standalone/.next/server/chunks/ssr/_1-h8fzh._.js +0 -24
  518. package/standalone/.next/server/chunks/ssr/_15_tlq_._.js +0 -6
  519. package/standalone/.next/server/chunks/ssr/_1_-b2as._.js +0 -24
  520. package/standalone/.next/server/chunks/ssr/_1ax0n4o._.js +0 -3
  521. package/standalone/.next/server/chunks/ssr/_1bedv0f._.js +0 -3
  522. package/standalone/.next/server/chunks/ssr/_1cg5e7d._.js +0 -55
  523. package/standalone/.next/server/chunks/ssr/_1dre7jj._.js +0 -9
  524. package/standalone/.next/server/chunks/ssr/_1h8h0mh._.js +0 -3
  525. package/standalone/.next/server/chunks/ssr/_1j6x49s._.js +0 -3
  526. package/standalone/.next/server/chunks/ssr/_1m3mq_d._.js +0 -42
  527. package/standalone/.next/server/chunks/ssr/_1q7k2_j._.js +0 -3
  528. package/standalone/.next/server/chunks/ssr/_1qanfz-._.js +0 -3
  529. package/standalone/.next/server/chunks/ssr/_1qu6yg5._.js +0 -3
  530. package/standalone/.next/server/chunks/ssr/_1rgxkh5._.js +0 -3
  531. package/standalone/.next/server/chunks/ssr/_1rqv83r._.js +0 -3
  532. package/standalone/.next/server/chunks/ssr/_1sn2hfw._.js +0 -14
  533. package/standalone/.next/server/chunks/ssr/_1w9iqqu._.js +0 -3
  534. package/standalone/.next/server/chunks/ssr/_1y1-frz._.js +0 -22
  535. package/standalone/.next/server/chunks/ssr/_1zfs9qf._.js +0 -3
  536. package/standalone/.next/server/chunks/ssr/_1zxg4ba._.js +0 -3
  537. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0qgkxbt._.js +0 -3
  538. package/standalone/.next/static/chunks/08q6vr-p-cstj.js +0 -29
  539. package/standalone/.next/static/chunks/0_zeonk2mtnf-.js +0 -1
  540. package/standalone/.next/static/chunks/0buuj5lld90he.css +0 -1
  541. package/standalone/.next/static/chunks/0bviczmoov5a2.js +0 -1
  542. package/standalone/.next/static/chunks/0ff5gudlpx2v5.js +0 -1
  543. package/standalone/.next/static/chunks/0piy74xklzjfr.js +0 -62
  544. package/standalone/.next/static/chunks/1-eifwvqj9be1.js +0 -1
  545. package/standalone/.next/static/chunks/11jwq4xw0a435.js +0 -64
  546. package/standalone/.next/static/chunks/17uchsfglg1ck.js +0 -73
  547. package/standalone/.next/static/chunks/1_82pgfh8i49s.js +0 -1
  548. package/standalone/.next/static/chunks/1t3vla-ambxbp.js +0 -6
  549. package/standalone/.next/static/chunks/1uc144yy_2oye.js +0 -3
  550. package/standalone/.next/static/chunks/2358pwl17z6qf.js +0 -41
  551. package/standalone/.next/static/chunks/25ugyd34t2mrk.js +0 -1
  552. package/standalone/.next/static/chunks/28lukaj4hpvlk.js +0 -63
  553. package/standalone/.next/static/chunks/2efb8ggk_k58p.js +0 -53
  554. package/standalone/.next/static/chunks/2eidepo22ts0u.js +0 -1
  555. package/standalone/.next/static/chunks/2hd3kczfekev9.js +0 -12
  556. package/standalone/.next/static/chunks/2k1pvryqz_c4u.js +0 -1
  557. package/standalone/.next/static/chunks/2nzg7au4ezqgc.js +0 -109
  558. package/standalone/.next/static/chunks/2ub8d_20l7ahg.js +0 -54
  559. package/standalone/.next/static/chunks/2v3vffkcv30_q.js +0 -8
  560. package/standalone/.next/static/chunks/2y3inehs64srx.js +0 -39
  561. package/standalone/.next/static/chunks/2z2vm371tkfeo.js +0 -39
  562. package/standalone/.next/static/chunks/3-8aipql92ik4.js +0 -46
  563. package/standalone/.next/static/chunks/3-doerwkk9tw0.js +0 -57
  564. package/standalone/.next/static/chunks/300j0k53l2xf4.js +0 -7
  565. package/standalone/.next/static/chunks/38cr_upvs02u3.js +0 -10
  566. package/standalone/.next/static/chunks/3ev0nt_zzxoc6.js +0 -1
  567. package/standalone/.next/static/chunks/3he_se7z8qr9v.js +0 -1
  568. package/standalone/.next/static/chunks/3w11s4sn96-rw.js +0 -1
  569. package/standalone/.next/static/chunks/3ylqdy-23qzuz.js +0 -54
  570. package/standalone/.next/static/chunks/3yvgowlcy4bok.js +0 -7
  571. package/standalone/.next/static/chunks/43-yobagq1112.js +0 -1
  572. package/standalone/.next/static/chunks/44v5iw1qe3el2.js +0 -9
  573. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_buildManifest.js +0 -0
  574. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_clientMiddlewareManifest.js +0 -0
  575. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_ssgManifest.js +0 -0
@@ -2700,6 +2700,83 @@ extend type Mutation {
2700
2700
  assignJiraTicket(issueKey: ID!, accountId: ID): JiraTicketDetail!
2701
2701
  transitionJiraTicket(issueKey: ID!, transitionId: ID!): JiraTicketDetail!
2702
2702
  updateJiraTicket(input: UpdateJiraTicketInput!): JiraTicketDetail!
2703
+ }`,`"One model's published prices, as cost per token in the upstream catalog's units."
2704
+ type ModelCostEntry {
2705
+ model: String!
2706
+ provider: String
2707
+ mode: String
2708
+ inputCostPerToken: Float
2709
+ outputCostPerToken: Float
2710
+ cacheReadCostPerToken: Float
2711
+ cacheWriteCostPerToken: Float
2712
+ maxInputTokens: Int
2713
+ maxOutputTokens: Int
2714
+ updatedAt: String!
2715
+ }
2716
+
2717
+ "A page of catalog entries matching a search."
2718
+ type ModelCostEntryPage {
2719
+ items: [ModelCostEntry!]!
2720
+ totalCount: Int!
2721
+ }
2722
+
2723
+ "A sortable column of the model price table."
2724
+ enum ModelCostSortKey {
2725
+ MODEL
2726
+ PROVIDER
2727
+ INPUT_COST
2728
+ OUTPUT_COST
2729
+ CACHE_READ_COST
2730
+ CACHE_WRITE_COST
2731
+ CONTEXT_WINDOW
2732
+ }
2733
+
2734
+ enum ModelCostSortDirection {
2735
+ ASC
2736
+ DESC
2737
+ }
2738
+
2739
+ "Where model prices are fetched from, and the state of the last fetch."
2740
+ type ModelCostCatalog {
2741
+ "The URL a refresh would fetch: the custom one when set, otherwise the default."
2742
+ url: String!
2743
+ defaultUrl: String!
2744
+ "Null while the default is in use."
2745
+ customUrl: String
2746
+ fetchedAt: String
2747
+ entryCount: Int!
2748
+ error: String
2749
+ "True when the catalog is missing or older than the daily refresh interval."
2750
+ stale: Boolean!
2751
+ }
2752
+
2753
+ extend type AgentRun {
2754
+ """
2755
+ Cost derived from the model price catalog rather than from what the provider
2756
+ reported, so a run the provider priced at nothing still shows a number.
2757
+ """
2758
+ catalogCost: Float
2759
+ }
2760
+
2761
+ extend type RunModelUsage {
2762
+ catalogCost: Float
2763
+ }
2764
+
2765
+ extend type Query {
2766
+ modelCostCatalog: ModelCostCatalog!
2767
+ modelCostEntries(
2768
+ search: String
2769
+ first: Int = 100
2770
+ offset: Int = 0
2771
+ sortKey: ModelCostSortKey = MODEL
2772
+ direction: ModelCostSortDirection = ASC
2773
+ ): ModelCostEntryPage!
2774
+ }
2775
+
2776
+ extend type Mutation {
2777
+ "Passing null or the default URL clears the override rather than storing it."
2778
+ saveModelCostSettings(catalogUrl: String): ModelCostCatalog!
2779
+ refreshModelCosts: ModelCostCatalog!
2703
2780
  }`,`type AppNotification {
2704
2781
  id: ID!
2705
2782
  typeKey: String!
@@ -3459,6 +3536,15 @@ input ImportedRunInput {
3459
3536
  rawMetadata: JSON
3460
3537
  }
3461
3538
 
3539
+ """
3540
+ The untouched on-disk session transcript from the AI tool (Claude Code or Codex),
3541
+ base64-encoded. Read live off the agent host, so it requires an online agent.
3542
+ """
3543
+ type RunNativeSessionFile {
3544
+ filename: String!
3545
+ contentBase64: String!
3546
+ }
3547
+
3462
3548
  extend type Query {
3463
3549
  agentRuns(
3464
3550
  kind: RunKind!
@@ -3483,6 +3569,7 @@ extend type Query {
3483
3569
  after: ID
3484
3570
  ): RunQuestionBatchPage!
3485
3571
  runUsage(runId: ID!): RunUsageSummary
3572
+ runNativeSessionFile(runId: ID!): RunNativeSessionFile!
3486
3573
  runLinkedItems(runId: ID!): [AgentRun!]!
3487
3574
  runDrafts(
3488
3575
  search: String
@@ -4566,6 +4653,6 @@ extend type Mutation {
4566
4653
  extend type Subscription {
4567
4654
  worktreeOverviewChanged: WorktreeOverviewChange!
4568
4655
  worktreeInspectionChanged(worktreeId: ID!): WorktreeActivity!
4569
- }`];var ia=e.i(971619);e.i(805422);var is=e.i(661983),io=e.i(694355);function il(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}function iu(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function ic(e,t){if(e.agentId&&e.agentId!==t)throw Error("An agent may only read its own resources")}async function id(e,t,i){let n=await t.getJob(i);return n&&ic(e,n.agentId),n}function ip(e){return null===e?null:JSON.parse(e)}let ih=new _.GraphQLScalarType({name:"JSON",description:"A JSON-serializable value.",serialize:e=>e,parseValue:e=>e,parseLiteral:e=>(function e(t){switch(t.kind){case A.Kind.NULL:return null;case A.Kind.STRING:case A.Kind.BOOLEAN:return t.value;case A.Kind.INT:case A.Kind.FLOAT:return Number(t.value);case A.Kind.LIST:return t.values.map(t=>e(t));case A.Kind.OBJECT:return Object.fromEntries(t.fields.map(t=>[t.name.value,e(t.value)]));default:throw Error("Unsupported JSON literal")}})(e)});var im=e.i(735255);let ig={ALL:null,LAST_7_DAYS:7,LAST_30_DAYS:30};function iy(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iv(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iS(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}e.i(107058);var iI=e.i(112627);function iT(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iE(e){return{actor:"control-plane",ipAddress:e.ipAddress}}function ib(e){return!!e?.fieldNodes.some(t=>!!t.selectionSet&&function e(t,i,n,r=new Set){for(let a of t.selections)if("Field"===a.kind){if(a.name.value===i||a.selectionSet&&e(a.selectionSet,i,n,r))return!0}else if("InlineFragment"===a.kind){if(e(a.selectionSet,i,n,r))return!0}else if(!r.has(a.name.value)){r.add(a.name.value);let t=n.fragments[a.name.value];if(t&&e(t.selectionSet,i,n,r))return!0}return!1}(t.selectionSet,"jobs",e))}function iA(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}var iN=e.i(184015);function iD(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}function i_(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}let iO=e=>e?.toISOString()??null;function iR(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iw(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}function iC(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}let iL=e=>e?.toISOString()??null;var iF=e.i(320058);function ik(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}var iP=e.i(984179);function ix(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iM(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}let iU=e=>e?.toISOString()??null,i$=(e,t)=>{try{return JSON.parse(e)}catch{return t}};function ij(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}let iV=e=>e?.toISOString()??null,iB={maskedUdid:e=>e.udid.length<=8?"••••••••":`${e.udid.slice(0,4)}••••${e.udid.slice(-4)}`,lastIpAddress:e=>e.ipObservations?.[0]?.ipAddress??null,registeredAt:e=>iV(e.registeredAt),lastSeenAt:e=>iV(e.lastSeenAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()};function iG(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iK(e){return{requestOrigin:e??null}}function iQ(e){if(e.agentId)throw Error("Agent credentials cannot perform signing operations")}let iH=e=>e?.toISOString()??null;e.i(282790);var iJ=e.i(474170);function iq(e){if(e.agentId)throw Error("Agent credentials cannot manage push notifications")}let iW=e=>e?.toISOString()??null,iY={createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()};function iz(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iX(e){if(e.agentId)throw Error("Agent credentials cannot manage notifications")}let iZ=e=>e?.toISOString()??null;function i0(e){if(e.agentId)throw Error("Agent credentials cannot inspect polling operations")}function i1(e){if(e.agentId)throw Error("Agent credentials cannot manage runs")}function i2(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}let i5=e=>e?.toISOString()??null,i3=e=>e?JSON.parse(e):null,i4=ir.map(e=>it(e));var i6=e.i(887394),i9=e.i(948110);let i8=new class{server=null;services=null;schema=null;initPromise=null;async initializeServer(){if(null===this.server)return this.initPromise||(this.initPromise=this.buildServer().finally(()=>{this.initPromise=null})),this.initPromise}async buildServer(){var e,t,i,n,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,S;let I;this.services=(0,i6.getServerServices)(),this.schema=(e=this.services.prismaService,t=this.services.agentControlService,i=this.services.jiraService,n=this.services.gitHubService,r=this.services.ccusageService,a=this.services.codebasesService,s=this.services.toolsService,o=this.services.worktreesService,l=this.services.buildDataService,u=this.services.skillsService,c=this.services.buildsService,d=this.services.iosDevicesService,p=this.services.telemetryService,h=this.services.signingAssetsService,f=this.services.pushNotificationsService,m=this.services.cacheServerService,g=this.services.credentialService,y=this.services.notificationsService,v=this.services.pollingService,S=this.services.runsService,I=E([{Query:{health:async()=>await e.healthCheck()?"ok":"degraded"}},{JSON:ih,Agent:{capabilities:e=>ip(e.capabilitiesJson),connectionStatus:e=>null!==e.lastSeenAt&&Date.now()-e.lastSeenAt.getTime()<=(0,io.agentOnlineWindowMs)(e)&&null===e.disconnectedAt?"ONLINE":"OFFLINE",effectiveBuildsDirectory:e=>(0,ia.effectiveBuildsDirectory)(e),lastSeenAt:e=>e.lastSeenAt?.toISOString()??null,disconnectedAt:e=>e.disconnectedAt?.toISOString()??null,createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},AgentJob:{payload:e=>ip(e.payloadJson),result:e=>ip(e.resultJson),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>e.startedAt?.toISOString()??null,finishedAt:e=>e.finishedAt?.toISOString()??null,updatedAt:e=>e.updatedAt.toISOString()},AgentJobLog:{createdAt:e=>e.createdAt.toISOString()},AgentEnrollmentToken:{expiresAt:e=>e.expiresAt.toISOString()},Query:{agents:(e,i,n)=>(iu(n),t.listAgents()),agent:(e,{id:i},n)=>(ic(n,i),t.getAgent(i)),agentSelf:(e,i,n)=>{let r=il(n);return t.getAgent(r)},agentCadenceSettings:(e,{agentId:i},n)=>(ic(n,i),t.cadenceSettings(i)),agentJobs:(e,{agentId:i,limit:n},r)=>(ic(r,i),t.listJobs(i,n,!!r.agentId)),agentJob:async(e,{id:i},n)=>id(n,t,i),agentJobLogs:async(e,{jobId:i,afterSequence:n},r)=>(await id(r,t,i),t.listLogs(i,n))},Mutation:{createAgentEnrollmentToken:(e,{expiresInMinutes:i},n)=>(iu(n),t.createEnrollmentToken(i)),enrollAgent:(e,{input:i},n)=>t.enroll({...i,ipAddress:n.ipAddress}),heartbeatAgent:(e,{input:i},n)=>t.heartbeat(il(n),{...i,ipAddress:n.ipAddress}),createAgentJob:(e,{input:i},n)=>(iu(n),t.createJob(i)),claimAgentJob:(e,{jobId:i},n)=>t.claimJob(il(n),i),claimSigningSecretTransfer:(e,{transferId:i},n)=>t.claimSigningSecretTransfer(il(n),i),appendAgentJobLogs:(e,{jobId:i,logs:n},r)=>t.appendLogs(il(r),i,n),completeAgentJob:(e,i,n)=>t.completeJob(il(n),i.jobId,i.status,i.result,i.error??null),cancelAgentJob:(e,{jobId:i},n)=>(iu(n),t.cancelJob(i)),requestAgentCodebaseReconcile:async(e,{agentId:i},n)=>(iu(n),await t.requestCodebaseReconcile([i])===1),updateAgentBaseRepoDirectory:(e,{agentId:i,baseRepoDirectory:n},r)=>(iu(r),t.updateBaseRepoDirectory(i,n??null)),updateAgentBuildsDirectory:(e,{agentId:i,buildsDirectory:n},r)=>(iu(r),t.updateBuildsDirectory(i,n??null)),updateAgentDerivedDataSettings:(e,{agentId:i,input:n},r)=>(iu(r),t.updateDerivedDataSettings(i,n.mode,n.path??null)),updateAgentCadenceSettings:(e,{agentId:i,input:n},r)=>(iu(r),t.updateCadenceSettings(i,n)),deleteAgent:(e,{agentId:i},n)=>(iu(n),t.deleteAgent(i))},Subscription:{agentEvents:{subscribe:(e,{agentId:t},i)=>{if(il(i)!==t)throw Error("An agent may only subscribe to its own events");return is.agentEventBus.iterate((0,is.agentEventsTopic)(t))}},agentChanged:{subscribe:(e,{agentId:t},i)=>(t?ic(i,t):iu(i),is.agentEventBus.iterate(is.AGENT_CHANGED_TOPIC,t?e=>e.agentChanged.id===t:void 0))},agentJobChanged:{subscribe:async(e,{jobId:i},n)=>(await id(n,t,i),is.agentEventBus.iterate((0,is.agentJobChangedTopic)(i)))},agentJobLogAdded:{subscribe:async(e,{jobId:i},n)=>(await id(n,t,i),is.agentEventBus.iterate((0,is.agentJobLogTopic)(i)))}}},{Query:{jiraSettings:(e,t,n)=>(iS(n),i.getSettings()),jiraAvailableProjects:(e,t,n)=>(iS(n),i.availableProjects()),jiraProjects:(e,t,n)=>(iS(n),i.listProjects()),jiraProjectStatuses:(e,{projectId:t},n)=>(iS(n),i.projectStatuses(t)),jiraTicketBoard:(e,{sourceId:t},n)=>(iS(n),i.ticketBoard(t)),jiraTicket:(e,{issueKey:t},n)=>(iS(n),i.ticket(t)),jiraAssignableUsers:(e,{issueKey:t,query:n},r)=>(iS(r),i.assignableUsers(t,n)),jiraTicketTransitions:(e,{issueKey:t},n)=>(iS(n),i.ticketTransitions(t)),jiraTicketEditFields:(e,{issueKey:t},n)=>(iS(n),i.ticketEditFields(t)),jiraTicketChanges:(e,{issueKey:t,limit:n,offset:r},a)=>(iS(a),i.ticketChanges(t,n,r)),jiraTicketWorklogs:(e,{issueKey:t,limit:n,offset:r},a)=>(iS(a),i.ticketWorklogs(t,n,r)),jiraCacheMetrics:(e,t,n)=>(iS(n),i.cacheMetrics()),jiraApiCalls:(e,{limit:t,offset:n},r)=>(iS(r),i.listApiCalls(t,n)),jiraCachedTickets:(e,{limit:t,offset:n},r)=>(iS(r),i.listCachedTickets(t,n)),jiraCachedTicket:(e,{issueKey:t},n)=>(iS(n),i.cachedTicket(t))},Mutation:{saveJiraSettings:(e,{input:t},n)=>(iS(n),i.saveSettings(t)),testJiraConnection:(e,t,n)=>(iS(n),i.testConnection()),clearJiraCredentials:(e,t,n)=>(iS(n),i.clearCredentials()),addJiraProject:(e,{jiraId:t},n)=>(iS(n),i.addProject(t)),removeJiraProject:(e,{projectId:t},n)=>(iS(n),i.removeProject(t)),createJiraSource:(e,{input:t},n)=>(iS(n),i.createSource(t)),updateJiraSource:(e,{input:t},n)=>(iS(n),i.updateSource(t)),deleteJiraSource:(e,{id:t},n)=>(iS(n),i.deleteSource(t)),updateJiraProjectDisplaySettings:(e,{input:t},n)=>(iS(n),i.updateProjectDisplaySettings(t)),updateJiraProjectBranchNaming:(e,{projectId:t,branchNamingScript:n},r)=>(iS(r),i.updateProjectBranchNaming(t,n)),refreshJiraSource:(e,{sourceId:t},n)=>(iS(n),i.ticketBoard(t,!0)),updateJiraCacheTtl:(e,{ttlMinutes:t},n)=>(iS(n),i.updateCacheTtl(t)),clearJiraCache:(e,t,n)=>(iS(n),i.clearCache()),refreshJiraCachedTicket:(e,{issueKey:t},n)=>(iS(n),i.refreshCachedTicket(t)),deleteJiraCachedTicket:(e,{issueKey:t},n)=>(iS(n),i.deleteCachedTicket(t)),addJiraComment:(e,{issueKey:t,content:n},r)=>(iS(r),i.addComment(t,n)),assignJiraTicket:(e,{issueKey:t,accountId:n},r)=>(iS(r),i.assignTicket(t,n??null)),transitionJiraTicket:(e,{issueKey:t,transitionId:n},r)=>(iS(r),i.transitionTicket(t,n)),updateJiraTicket:(e,{input:t},n)=>(iS(n),i.updateTicket(t))}},{Query:{githubSettings:(e,t,i)=>(iT(i),n.getSettings()),githubAppSettings:(e,t,i)=>(iT(i),n.getAppSettings()),githubRepositories:(e,t,i)=>(iT(i),n.listRepositories()),githubAvailableRepositories:(e,{after:t},i)=>(iT(i),n.availableRepositories(t)),githubActionsWorkflowRuns:(e,{codebaseRepositoryId:t,branch:i,workflowId:r,first:a,after:s},o)=>(iT(o),n.actionsWorkflowRuns(t,a??25,s,i,r)),githubActionsWorkflowJobs:(e,{codebaseRepositoryId:t,workflowRunId:i},r)=>(iT(r),n.actionsWorkflowJobs(t,i)),githubActionsWorkflowRunAttempt:(e,{repositoryId:t,workflowRunId:i,attempt:r},a,s)=>(iT(a),n.actionsWorkflowRunAttempt(t,i,r,ib(s))),githubWorktreeWorkflowRuns:(e,{worktreeId:t},i)=>(iT(i),n.worktreeWorkflowRuns(t)),githubRepositoryWorkflows:(e,{codebaseRepositoryId:t},i)=>(iT(i),n.repositoryWorkflows(t)),githubAutoRetryRules:(e,{codebaseRepositoryId:t,workflowRunId:i},r)=>(iT(r),n.autoRetryRules({codebaseRepositoryId:t,workflowRunId:i})),githubPullRequests:(e,{scope:t,repositoryId:i,state:r,first:a,after:s},o,l)=>(iT(o),n.pullRequests(t,i,{includePipelineJobs:ib(l),state:r??"OPEN",first:a??25,after:s})),githubPullRequest:(e,{owner:t,name:i,number:r},a)=>(iT(a),n.pullRequest(t,i,r)),githubPullRequestMergeOptions:(e,{owner:t,name:i,number:r},a)=>(iT(a),n.pullRequestMergeOptions(t,i,r)),githubReviewThreads:(e,t,i)=>(iT(i),n.reviewThreads())},Mutation:{saveGitHubSettings:(e,{input:t},i)=>(iT(i),n.saveSettings(t)),saveGitHubAppSettings:(e,{input:t},i)=>(iT(i),n.saveAppSettings(t,iE(i),i.requestOrigin)),testGitHubConnection:(e,t,i)=>(iT(i),n.testConnection()),testGitHubAppConnection:(e,t,i)=>(iT(i),n.testAppConnection(iE(i))),clearGitHubCredentials:(e,t,i)=>(iT(i),n.clearCredentials()),clearGitHubAppCredentials:(e,t,i)=>(iT(i),n.clearAppCredentials(iE(i))),addGitHubRepository:(e,{input:t},i)=>(iT(i),n.addRepository(t)),updateGitHubRepository:(e,{input:t},i)=>(iT(i),n.updateRepository(t)),removeGitHubRepository:(e,{id:t},i)=>(iT(i),n.removeRepository(t)),mergeGitHubPullRequest:async(e,{input:t},i)=>{iT(i);let r=await n.mergePullRequest(t),{owner:a,name:s}=(0,iI.normalizeGitHubRepositoryName)(`${t.owner}/${t.name}`);return o.invalidatePullRequestsForOrigin(`github.com/${a}/${s}`),r},retryGitHubPipeline:(e,{repositoryId:t,checkSuiteId:i},r)=>(iT(r),n.retryPipeline(t,i,iE(r))),retryGitHubWorkflowJob:(e,{repositoryId:t,checkSuiteId:i,jobId:r},a)=>(iT(a),n.retryWorkflowJob(t,i,r,iE(a))),cancelGitHubActionsWorkflowRun:(e,{codebaseRepositoryId:t,workflowRunId:i,force:r},a)=>(iT(a),n.cancelActionsWorkflowRun(t,i,r,iE(a))),saveGitHubAutoRetryRule:(e,{input:t},i)=>(iT(i),n.saveAutoRetryRule(t)),setGitHubAutoRetryRuleEnabled:(e,{id:t,enabled:i},r)=>(iT(r),n.setAutoRetryRuleEnabled(t,i)),deleteGitHubAutoRetryRule:(e,{id:t},i)=>(iT(i),n.deleteAutoRetryRule(t)),replyToGitHubReviewThread:(e,{threadId:t,body:i},r)=>(iT(r),n.replyToReviewThread(t,i)),setGitHubReviewThreadResolved:(e,{threadId:t,resolved:i},r)=>(iT(r),n.setReviewThreadResolved(t,i))}},{CcusageCollection:{aggregate:(e,{range:t="ALL"})=>(0,im.filterUsageByDays)(e.aggregate,ig[t])},CcusageModelUsage:{unattributed:e=>e.unattributed??!1},Query:{ccusageCollection:async(e,{id:t},i)=>(iy(i),await r.initialize(),r.getCollection(t))},Mutation:{collectCcusage:async(e,{requestId:t},i)=>(iy(i),await r.initialize(),r.collect(t))},Subscription:{ccusageCollectionChanged:{subscribe:async(e,{id:t},i)=>(iy(i),await r.initialize(),r.subscribe(t)),resolve:e=>e}}},{DerivedDataDeletionHistory:{deletedAt:e=>e.deletedAt.toISOString()},Query:{derivedDataCollection:(e,{id:t},i)=>(iv(i),l.getCollection(t)),derivedDataDeletionHistory:(e,{first:t,after:i},n)=>(iv(n),l.history(t,i))},Mutation:{refreshDerivedData:(e,{requestId:t},i)=>(iv(i),l.refresh(t)),calculateDerivedDataSizes:(e,{collectionId:t,entryIds:i,requestId:n},r)=>(iv(r),l.calculateSizes(t,i,n)),deleteDerivedDataEntries:(e,{collectionId:t,entryIds:i,requestId:n},r)=>(iv(r),l.deleteEntries(t,i,n)),clearDerivedDataDeletionHistory:(e,t,i)=>(iv(i),l.clearHistory())},Subscription:{derivedDataCollectionChanged:{subscribe:(e,{id:t},i)=>(iv(i),l.subscribe(t)),resolve:e=>e}}},{CodebaseOverview:{repositories:e=>Array.isArray(e)?e:e.repositories??[]},CodebaseRepository:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},CodebaseSettings:{updatedAt:e=>e.updatedAt.toISOString()},Codebase:{lastCheckedAt:e=>iO(e.lastCheckedAt),lastFetchedAt:e=>iO(e.lastFetchedAt),lastFetchAttemptAt:e=>iO(e.lastFetchAttemptAt),localBranches:e=>{try{let t=JSON.parse(e.localBranchesJson);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}},remoteBranches:e=>{try{let t=JSON.parse(e.remoteBranchesJson);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}},createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),activeJob:e=>e.jobs?.[0]??null},AgentCodebaseRegistration:{canonicalOrigin:e=>e.repository.canonicalOrigin,keepBaseBranchUpToDate:e=>e.repository.keepBaseBranchUpToDate,worktrees:e=>e.worktrees??[],lastFetchedAt:e=>iO(e.lastFetchedAt),lastFetchAttemptAt:e=>iO(e.lastFetchAttemptAt)},Query:{codebaseOverview:async(e,t,i)=>(i_(i),a.overview()),codebaseRepository:(e,{id:t},i)=>(i_(i),a.repositoryDetail(t)),codebase:(e,{id:t},i)=>(i_(i),a.detail(t)),codebaseSettings:(e,t,i)=>(i_(i),a.settings()),agentCodebases:(e,t,i)=>a.agentCodebases(iD(i)),agentCodebaseConfiguration:(e,t,i)=>a.agentConfiguration(iD(i))},Mutation:{browseAgentDirectory:(e,{input:t},i)=>(i_(i),a.browse(t.agentId,t.path??null,t.requestId)),inspectAgentCodebase:(e,{input:t},i)=>(i_(i),a.inspect(t.agentId,t.folder,t.requestId)),confirmCodebase:(e,{input:t},i)=>(i_(i),a.confirm(t)),updateCodebaseRepository:(e,{input:t},i)=>(i_(i),a.updateRepository(t.id,t.name,t.description,t.jiraBranchRegex,t.keepBaseBranchUpToDate,t.skillGroupIds)),updateCodebaseSettings:(e,{input:t},i)=>(i_(i),a.updateSettings(t)),removeCodebase:(e,{id:t},i)=>(i_(i),a.removeCodebase(t)),refreshCodebases:(e,{input:t},i)=>(i_(i),a.runOperation(iN.CODEBASE_REFRESH_JOB_KIND,t.codebaseIds,t.requestId)),fetchCodebases:(e,{input:t},i)=>(i_(i),a.runOperation(iN.CODEBASE_FETCH_JOB_KIND,t.codebaseIds,t.requestId)),inspectCodebaseGitState:(e,{input:t},i)=>(i_(i),a.inspectGitState(t.codebaseId,t.requestId)),inspectCodebaseStash:(e,{input:t},i)=>(i_(i),a.inspectStash(t.codebaseId,t.stashOid,t.requestId)),runCodebaseGitOperation:(e,{input:t},i)=>(i_(i),a.runGitOperation(t)),reportCodebaseStatuses:(e,{reports:t},i)=>a.report(iD(i),t)},Subscription:{codebaseOverviewChanged:{subscribe:(e,t,i)=>(i_(i),a.subscribe())}}},{Query:{externalMcpServers:(e,t,i)=>(iR(i),s.externalServers())},Mutation:{createExternalMcpServer:(e,{input:t},i)=>(iR(i),s.createExternalServer(t)),updateExternalMcpServer:(e,{id:t,input:i},n)=>(iR(n),s.updateExternalServer(t,i)),deleteExternalMcpServer:(e,{id:t},i)=>(iR(i),s.deleteExternalServer(t))}},{WorktreeLatestBuild:{destination:e=>JSON.parse(e.destinationJson),createdAt:e=>e.createdAt.toISOString()},Worktree:{lastCheckedAt:e=>iL(e.lastCheckedAt),missingAt:e=>iL(e.missingAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},WorktreeTag:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},WorktreeSettings:{updatedAt:e=>e.updatedAt.toISOString()},WorktreeMove:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>iL(e.finishedAt)},Query:{worktreeOverview:(e,t,i)=>(iC(i),o.overview()),hiddenWorktrees:(e,t,i)=>(iC(i),o.hidden()),worktreeSettings:(e,t,i)=>(iC(i),o.settings()),previewWorktreeTicketBranch:(e,{input:t},i)=>(iC(i),o.previewTicketBranch(t)),worktreeMove:(e,{id:t},i)=>(iC(i),o.getMove(t))},Mutation:{refreshWorktrees:(e,t,i)=>(iC(i),o.requestRefresh()),reportWorktrees:(e,{reports:t},i)=>o.report(iw(i),t),reportWorktreeActivity:(e,{input:t},i)=>o.reportActivity(iw(i),t),inspectWorktree:(e,{id:t,requestId:i},n)=>(iC(n),o.inspect(t,i)),inspectWorktreeDiff:(e,{input:t},i)=>(iC(i),o.inspectDiff(t.worktreeId,{scope:t.scope,path:t.path,previousPath:t.previousPath,commitSha:t.commitSha},t.requestId)),runWorktreeOperation:(e,{input:t},i)=>(iC(i),o.runOperation(t.worktreeId,t.operation,t.requestId)),createWorktree:(e,{input:t},i)=>(iC(i),o.createWorktree(t)),changeWorktreeBranch:(e,{input:t},i)=>(iC(i),o.changeWorktreeBranch(t)),moveWorktree:(e,{input:t},i)=>(iC(i),o.moveWorktree(t)),retryWorktreeMoveWithStash:(e,{id:t},i)=>(iC(i),o.retryWorktreeMoveWithStash(t)),cancelWorktreeMove:(e,{id:t},i)=>(iC(i),o.cancelWorktreeMove(t)),deleteWorktree:(e,{input:t},i)=>(iC(i),o.deleteWorktree(t)),updateWorktreeBaseBranch:(e,{id:t,baseBranch:i},n)=>(iC(n),o.updateBaseBranch(t,i??null)),updateWorktreeHighlight:(e,{id:t,color:i},n)=>(iC(n),o.updateHighlight(t,i??null)),setWorktreeTags:(e,{id:t,tagIds:i},n)=>(iC(n),o.setTags(t,i)),saveWorktreeTag:(e,{input:t},i)=>(iC(i),o.saveTag(t)),deleteWorktreeTag:(e,{id:t},i)=>(iC(i),o.deleteTag(t)),saveWorktreeSettings:(e,{editorVariant:t},i)=>(iC(i),o.saveSettings(t)),purgeHiddenWorktree:(e,{id:t},i)=>(iC(i),o.purge(t)),purgeAllHiddenWorktrees:(e,t,i)=>(iC(i),o.purgeAll())},Subscription:{worktreeOverviewChanged:{subscribe:(e,t,i)=>(iC(i),o.subscribe())},worktreeInspectionChanged:{subscribe:(e,{worktreeId:t},i)=>(iC(i),o.subscribeInspection(t))}}},{CodebaseRepository:{skillGroups:e=>u.groupsForRepository(e.id)},Skill:{groups:e=>e.groups?.map(e=>e.group)??[],createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillFile:{contentsBase64:e=>Buffer.from(e.contents).toString("base64"),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillGroup:{skills:e=>e.skills?.map(e=>e.skill)??[],repositories:e=>e.repositories?.map(e=>e.repository)??[],createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillSettings:{updatedAt:e=>e.updatedAt.toISOString()},SkillToolObservation:{checkedAt:e=>e.checkedAt.toISOString()},SkillInstallation:{consumers:e=>{try{return JSON.parse(e.consumersJson)}catch{return[]}},lastSeenAt:e=>e.lastSeenAt.toISOString()},SkillSyncItem:{candidatePackage:e=>{try{return e.candidatePackageJson?JSON.parse(e.candidatePackageJson):null}catch{return null}},createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillSyncRun:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>{let t;return t=e.finishedAt,t?.toISOString()??null}},Query:{skillsOverview:(e,{search:t},i)=>(ik(i),u.overview(t??"")),skill:(e,{id:t},i)=>(ik(i),u.getSkill(t)),skillSyncRun:(e,{id:t},i)=>(ik(i),u.getRun(t))},Mutation:{saveSkill:(e,{input:t},i)=>(ik(i),u.saveSkill(t)),deleteSkill:(e,{id:t},i)=>(ik(i),u.deleteSkill(t)),saveSkillGroup:(e,{input:t},i)=>(ik(i),u.saveGroup(t)),deleteSkillGroup:(e,{id:t},i)=>(ik(i),u.deleteGroup(t)),saveSkillSettings:(e,{input:t},i)=>(ik(i),u.saveSettings(t)),prepareSkillSync:(e,{kind:t,groupId:i},n)=>(ik(n),u.prepareSync(t,i??null)),skipPendingSkillSync:(e,{runId:t},i)=>(ik(i),u.skipPending(t)),resolveSkillSyncItem:(e,{input:t},i)=>{var n;return ik(i),u.resolveItem({...t,package:t.package?(n=t.package,(0,iF.parseSkillPackage)({...n,packageHash:n.packageHash||(0,iF.hashSkillFiles)(n.files)})):null})},applySkillSync:(e,{runId:t},i)=>(ik(i),u.applyRun(t))},Subscription:{skillsChanged:{subscribe:(e,t,i)=>(ik(i),u.subscribe()),resolve:()=>u.overview()},skillSyncRunChanged:{subscribe:(e,{runId:t},i)=>(ik(i),u.subscribeRun(t)),resolve:(e,{runId:t})=>u.getRun(t)}}},{CodebaseProject:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},BuildConfiguration:{advancedSettings:e=>i$(e.advancedSettingsJson,{}),exportSettings:e=>e.exportSettingsJson?i$(e.exportSettingsJson,null):null,observation:e=>e.source?.observations?.[0]??null,createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},BuildSourceObservation:{schemes:e=>i$(e.schemesJson,[]),configurations:e=>i$(e.configurationsJson,[]),testPlans:e=>i$(e.testPlansJson,[]),lastParseAttemptAt:e=>e.lastParseAttemptAt.toISOString(),lastParsedAt:e=>iU(e.lastParsedAt)},BuildScript:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},BuildArtifact:{metadata:e=>i$(e.metadataJson,{}),createdAt:e=>e.createdAt.toISOString()},BuildReport:{summary:e=>i$(e.summaryJson,{}),data:async e=>i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{}),testSummary:e=>"TEST_RESULTS"===e.kind&&"READY"===e.status?i$(e.summaryJson,{}):null,tests:async e=>{if("TEST_RESULTS"!==e.kind)return[];let t=i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{});return Array.isArray(t.tests)?t.tests:[]},coverageSummary:e=>"CODE_COVERAGE"===e.kind&&"READY"===e.status?i$(e.summaryJson,{}):null,coverageFiles:async e=>{if("CODE_COVERAGE"!==e.kind)return[];let t=i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{});return Array.isArray(t.files)?t.files:[]},changedCoverageFiles:async e=>{if("CODE_COVERAGE"!==e.kind)return[];let t=i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{});return Array.isArray(t.changedFiles)?t.changedFiles:[]},build:e=>e.build??c.getBuild(e.buildId),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>iU(e.finishedAt)},BuildDeployment:{destination:e=>i$(e.destinationJson,{}),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iU(e.startedAt),finishedAt:e=>iU(e.finishedAt)},BuildExport:{settings:e=>i$(e.settingsSnapshotJson,{}),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iU(e.startedAt),finishedAt:e=>iU(e.finishedAt)},Build:{reports:e=>e.reports??c.reportsForBuild(e.id),destination:e=>i$(e.destinationJson,{}),snapshot:e=>i$(e.snapshotJson,{}),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iU(e.startedAt),finishedAt:e=>iU(e.finishedAt),updatedAt:e=>e.updatedAt.toISOString(),durationMs:e=>e.startedAt&&e.finishedAt?Math.max(0,e.finishedAt.getTime()-e.startedAt.getTime()):null,outOfDate:iP.buildOutOfDate},BuildLogEvent:{createdAt:e=>e.createdAt instanceof Date?e.createdAt.toISOString():e.createdAt},Query:{iosAppProject:(e,{codebaseId:t},i)=>(ix(i),c.project(t)),buildSigningOptions:(e,{buildId:t},i)=>(ix(i),c.signingOptionsForBuild(t)),buildScripts:(e,t,i)=>(ix(i),c.scripts()),builds:(e,t,i)=>(ix(i),c.builds(t)),build:(e,{id:t},i)=>(ix(i),c.getBuild(t)),buildLogs:(e,t,i)=>(ix(i),c.logs(t.buildId,t.after,t.first)),worktreeCoverageReports:(e,{worktreeId:t},i)=>(ix(i),c.coverageHistory(t))},Mutation:{createIosAppProject:(e,{codebaseId:t},i)=>(ix(i),c.createProject(t)),saveBuildConfiguration:(e,{input:t},i)=>(ix(i),c.saveConfiguration(t)),deleteBuildConfiguration:(e,{id:t},i)=>(ix(i),c.deleteConfiguration(t)),discoverBuildSources:(e,t,i)=>(ix(i),c.discoverSources(t.worktreeId,t.requestId)),inspectBuildSource:(e,{input:t},i)=>(ix(i),c.inspectSource(t)),reparseBuildConfiguration:(e,t,i)=>(ix(i),c.reparse(t.configurationId,t.worktreeId,t.requestId)),inspectBuildDestinations:(e,{input:t},i)=>(ix(i),c.destinations(t)),inspectBuildRunDestinations:(e,t,i)=>(ix(i),c.destinationsForBuild(t.buildId,t.requestId)),saveBuildScript:(e,{input:t},i)=>(ix(i),c.saveScript(t)),deleteBuildScript:(e,{id:t},i)=>(ix(i),c.deleteScript(t)),setCodebaseBuildScripts:(e,t,i)=>(ix(i),c.setAllowedScripts(t.codebaseId,t.scriptIds)),startBuild:(e,{input:t},i)=>(ix(i),c.startBuild({...t,telemetryRequestOrigin:i.requestOrigin})),rebuildBuild:(e,{id:t,requestId:i},n)=>(ix(n),c.rebuildBuild(t,i,n.requestOrigin)),cancelBuild:(e,{id:t},i)=>(ix(i),c.cancelBuild(t)),deleteBuilds:(e,{ids:t},i)=>(ix(i),c.deleteBuilds(t)),runBuild:(e,{input:t},i)=>(ix(i),c.runBuild(t)),exportBuildArchive:(e,{input:t},i)=>(ix(i),c.exportArchive(t)),parseBuildTestResults:(e,t,i)=>(ix(i),c.generateReport(t.buildId,"TEST_RESULTS",t.requestId)),generateBuildCoverageReport:(e,t,i)=>(ix(i),c.generateReport(t.buildId,"CODE_COVERAGE",t.requestId)),startWorktreeCoverage:(e,{input:t},i)=>(ix(i),c.startWorktreeCoverage({...t,telemetryRequestOrigin:i.requestOrigin})),reportBuildProgress:(e,{input:t},i)=>c.reportProgress(iM(i),t),appendBuildLogEvents:(e,{buildId:t,events:i},n)=>c.appendLogs(iM(n),t,i)},Subscription:{buildsChanged:{subscribe:(e,t,i)=>(ix(i),is.agentEventBus.iterate(is.BUILDS_CHANGED_TOPIC))},buildChanged:{subscribe:(e,{id:t},i)=>(ix(i),is.agentEventBus.iterate((0,is.buildTopic)(t)))},buildLogAdded:{subscribe:(e,{buildId:t},i)=>(ix(i),is.agentEventBus.iterate((0,is.buildLogTopic)(t)))}}},{IosDevice:iB,IosDeviceSummary:iB,IosDeviceEnrollment:{expiresAt:e=>e.expiresAt.toISOString(),downloadedAt:e=>iV(e.downloadedAt),consumedAt:e=>iV(e.consumedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},IosDeviceIpObservation:{observedAt:e=>e.observedAt.toISOString()},Query:{iosDevices:(e,{status:t},i)=>(ij(i),d.devices(t)),iosDevice:(e,{id:t},i)=>(ij(i),d.device(t)),iosDeviceFirmware:(e,{id:t},i)=>(ij(i),d.deviceFirmware(t)),iosDeviceSettings:(e,t,i)=>(ij(i),d.getSettings())},Mutation:{renameIosDevice:(e,{id:t,displayName:i},n)=>(ij(n),d.renameDevice(t,i)),rejectIosDevice:(e,{id:t},i)=>(ij(i),d.rejectDevice(t)),deleteIosDevice:(e,{id:t},i)=>(ij(i),d.deleteDevice(t)),registerIosDevice:(e,{id:t},i)=>(ij(i),d.registerDevice(t)),saveIosProfileSettings:(e,{input:t},i)=>(ij(i),d.saveProfileSettings(t)),regenerateIosProfileSigner:(e,t,i)=>(ij(i),d.regenerateProfileSignerView()),saveAppStoreConnectSettings:(e,{input:t},i)=>(ij(i),d.saveAppStoreConnectSettings(t)),testAppStoreConnectSettings:(e,t,i)=>(ij(i),d.testAppStoreConnectSettings()),clearAppStoreConnectSettings:(e,t,i)=>(ij(i),d.clearAppStoreConnectSettings())},Subscription:{iosDevicesChanged:{subscribe:(e,t,i)=>(ij(i),d.subscribe()),resolve:e=>e}}},{Query:{telemetryTimeline:(e,{input:t},i)=>(iG(i),p.timeline(t)),telemetryEntries:(e,{ids:t},i)=>(iG(i),p.entries(t)),telemetryFacets:(e,{view:t},i)=>(iG(i),p.facets(t)),telemetryFields:(e,{view:t},i)=>(iG(i),p.fields(t)),telemetrySettings:(e,{requestOrigin:t},i)=>(iG(i),p.settings(iK(t))),telemetryViewSettings:(e,{view:t},i)=>(iG(i),p.viewSettings(t)),telemetryColumnPresets:(e,{view:t},i)=>(iG(i),p.columnPresets(t)),telemetrySavedFilters:(e,{view:t},i)=>(iG(i),p.savedFilters(t))},Mutation:{saveTelemetrySettings:(e,{input:t,requestOrigin:i},n)=>(iG(n),p.saveSettings(t,iK(i))),saveTelemetryViewSettings:(e,{input:t},i)=>(iG(i),p.saveViewSettings(t)),saveTelemetryColumnPreset:(e,{input:t},i)=>(iG(i),p.saveColumnPreset(t)),deleteTelemetryColumnPreset:(e,{id:t},i)=>(iG(i),p.deleteColumnPreset(t)),saveTelemetryFilter:(e,{input:t},i)=>(iG(i),p.saveFilter(t)),deleteTelemetryFilter:(e,{id:t},i)=>(iG(i),p.deleteFilter(t)),addTelemetrySeparator:(e,{name:t},i)=>(iG(i),p.addSeparator(t)),updateTelemetryHighlight:(e,{id:t,color:i},n)=>(iG(n),p.highlight(t,i??null)),clearSelectedTelemetry:(e,{selection:t},i)=>(iG(i),p.clearSelected(t)),clearTelemetry:(e,{view:t,includeSeparators:i},n)=>(iG(n),p.clearAll(t,i)),clearTelemetryBeforeLatestSeparator:(e,{view:t},i)=>(iG(i),p.clearBeforeLatestSeparator(t))},Subscription:{telemetryEntriesChanged:{subscribe:(e,t,i)=>(iG(i),p.subscribe()),resolve:e=>e},telemetrySettingsChanged:{subscribe:(e,t,i)=>(iG(i),p.subscribeSettings()),resolve:e=>e}}},{LocalSigningProfile:{provisionedDevices:e=>h.profileDevices(e.deviceUdids)},SigningOperation:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>iH(e.finishedAt)},SigningOperationItem:{createdAt:e=>e.createdAt.toISOString(),finishedAt:e=>iH(e.finishedAt)},Query:{signingAgents:(e,t,i)=>(iQ(i),h.agents()),signingProfiles:(e,t,i)=>(iQ(i),h.profiles()),signingProfile:(e,{id:t},i)=>(iQ(i),h.profile(t)),signingCertificates:(e,t,i)=>(iQ(i),h.certificates()),signingOperations:(e,{limit:t},i)=>(iQ(i),h.operations(t)),appleDeveloperInventory:(e,t,i)=>(iQ(i),h.portalInventory())},Mutation:{refreshSigningAssets:(e,{agentIds:t},i)=>(iQ(i),h.refresh(t??void 0)),uploadSigningProfile:(e,t,i)=>(iQ(i),h.uploadProfile(t.contentBase64,t.targetAgentIds)),downloadSigningProfile:(e,t,i)=>(iQ(i),h.downloadProfile(t.uuid,t.agentId)),syncSigningProfile:(e,t,i)=>(iQ(i),h.syncProfile(t.uuid,t.sourceAgentId,t.targetAgentIds)),deleteSigningProfile:(e,t,i)=>(iQ(i),h.deleteProfile(t.uuid,t.agentIds)),deleteExpiredSigningProfiles:(e,{agentIds:t},i)=>(iQ(i),h.deleteExpiredProfiles(t??void 0)),importSigningIdentity:(e,t,i)=>(iQ(i),h.importIdentity(t)),deleteSigningIdentity:(e,t,i)=>(iQ(i),h.deleteIdentity(t.sha1,t.agentIds)),createApplePortalProfile:(e,{input:t},i)=>(iQ(i),h.createPortalProfile(t)),deleteApplePortalProfile:(e,{id:t},i)=>(iQ(i),h.deletePortalProfile(t)),revokeApplePortalCertificate:(e,{id:t},i)=>(iQ(i),h.revokePortalCertificate(t))},Subscription:{signingAssetsChanged:{subscribe:(e,t,i)=>(iQ(i),h.subscribe()),resolve:()=>!0}}},{ApnsRegistration:{...iY,tokenMasked:e=>e.tokenMasked??(e.token?`${e.token.slice(0,8)}…${e.token.slice(-8)}`:"—"),supportedPushTypes:e=>e.supportedPushTypes??(e.pushTypesJson?JSON.parse(e.pushTypesJson):[]),pushMagicConfigured:e=>!!e.pushMagic,invalidatedAt:e=>iW(e.invalidatedAt),lastFailureAt:e=>iW(e.lastFailureAt),lastRegisteredAt:e=>e.lastRegisteredAt.toISOString(),lastSentAt:e=>iW(e.lastSentAt)},ApnsCertificateCredential:{...iY,expiresAt:e=>iW(e.expiresAt),lastTestedAt:e=>iW(e.lastTestedAt)},PushNotificationSettings:{updatedAt:e=>e.updatedAt.toISOString(),tokenConfiguredAt:e=>iW(e.tokenConfiguredAt),tokenLastUsedAt:e=>iW(e.tokenLastUsedAt)},ApnsBroadcastChannel:iY,PushNotificationPreset:{...iY,editor:e=>JSON.parse(e.editorJson)},PushNotificationBatch:{...iY,editor:e=>JSON.parse(e.editorJson),payload:e=>JSON.parse(e.payloadJson),headers:e=>JSON.parse(e.headersJson),startedAt:e=>iW(e.startedAt),finishedAt:e=>iW(e.finishedAt)},PushNotificationDelivery:{createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iW(e.startedAt),finishedAt:e=>iW(e.finishedAt),responseTimestamp:e=>iW(e.responseTimestamp)},Query:{apnsRegistrations:(e,t,i)=>(iq(i),f.registrations()),pushNotificationSettings:(e,t,i)=>(iq(i),f.settings()),apnsBroadcastChannels:(e,t,i)=>(iq(i),f.channels()),pushNotificationPresets:(e,t,i)=>(iq(i),f.presets()),pushNotificationHistory:(e,{limit:t},i)=>(iq(i),f.history(t)),validatePushNotification:(e,{editor:t},i)=>(iq(i),(0,iJ.validatePushEditor)(t))},Mutation:{renameApnsRegistration:(e,t,i)=>(iq(i),f.renameRegistration(t.id,t.displayName)),setApnsRegistrationActive:(e,t,i)=>(iq(i),f.setRegistrationActive(t.id,t.active)),deleteApnsRegistration:(e,{id:t},i)=>(iq(i),f.deleteRegistration(t)),saveApnsTokenSettings:(e,{input:t},i)=>(iq(i),f.saveTokenSettings(t)),clearApnsTokenSettings:(e,t,i)=>(iq(i),f.clearTokenSettings()),addApnsCertificateCredential:(e,{input:t},i)=>(iq(i),f.addCertificateCredential(t)),retestApnsCertificateCredential:(e,{id:t},i)=>(iq(i),f.retestCertificateCredential(t)),deleteApnsCertificateCredential:(e,{id:t},i)=>(iq(i),f.deleteCertificateCredential(t)),createApnsBroadcastChannel:(e,{input:t},i)=>(iq(i),f.createChannel(t)),deleteApnsBroadcastChannel:(e,{id:t},i)=>(iq(i),f.deleteChannel(t)),savePushNotificationPreset:(e,t,i)=>(iq(i),f.savePreset(t.name,t.editor,t.id)),deletePushNotificationPreset:(e,{id:t},i)=>(iq(i),f.deletePreset(t)),savePushNotificationDraft:(e,{editor:t},i)=>(iq(i),f.saveDraft(t)),sendPushNotification:(e,{input:t},i)=>(iq(i),f.send(t)),resendPushNotification:(e,t,i)=>(iq(i),f.resend(t.id,t.requestId)),deletePushNotificationHistory:(e,{id:t},i)=>(iq(i),f.deleteHistory(t)),clearPushNotificationHistory:(e,t,i)=>(iq(i),f.clearHistory())},Subscription:{pushNotificationsChanged:{subscribe:(e,t,i)=>(iq(i),f.subscribe()),resolve:()=>!0}}},{Query:{cacheServerSettings:(e,t,i)=>(iA(i),m.getSettings()),cacheEntries:(e,t,i)=>(iA(i),m.listCacheEntries(t)),cacheEntryDetail:(e,{id:t},i)=>(iA(i),m.getCacheEntryDetail(t)),cacheStorageLocation:(e,{id:t},i)=>(iA(i),m.getStorageLocation(t)),cacheEntryMatch:(e,t,i)=>(iA(i),m.matchCacheEntry(t))},Mutation:{saveCacheServerSettings:(e,{input:t},i)=>(iA(i),m.saveSettings(t)),testCacheServerConnection:(e,t,i)=>(iA(i),m.testConnection()),clearCacheServerSettings:(e,t,i)=>(iA(i),m.clearSettings()),deleteCacheEntry:(e,{id:t},i)=>(iA(i),m.deleteCacheEntry(t)),deleteCacheEntriesByIds:(e,{ids:t},i)=>(iA(i),m.deleteCacheEntriesByIds(t)),deleteCacheEntries:(e,t,i)=>(iA(i),m.deleteCacheEntries(t)),deleteCacheStorageLocation:(e,{id:t},i)=>(iA(i),m.deleteStorageLocation(t))}},{CredentialStorageType:{DATABASE:"database",VAULT:"vault",KEYCHAIN:"keychain",UNKNOWN:"unknown"},Query:{credentialStoreStatus:(e,t,i)=>(iz(i),g.status()),credentials:(e,t,i)=>(iz(i),g.list())}},{AppNotification:{sidebarDismissedAt:e=>iZ(e.sidebarDismissedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},NotificationPreference:{updatedAt:e=>iZ(e.updatedAt)},WebPushSubscription:{expirationTime:e=>iZ(e.expirationTime),lastSeenAt:e=>e.lastSeenAt.toISOString(),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},Query:{notifications:(e,t,i)=>(iX(i),y.history(t)),sidebarNotifications:(e,{limit:t},i)=>(iX(i),y.sidebar(t??void 0)),notificationPreferences:(e,t,i)=>(iX(i),y.preferences()),webPushState:(e,t,i)=>(iX(i),y.webPushState()),webPushSubscriptions:(e,t,i)=>(iX(i),y.webPushSubscriptions())},Mutation:{saveNotificationPreference:(e,{input:t},i)=>(iX(i),y.savePreference(t)),dismissNotification:(e,{id:t},i)=>(iX(i),y.dismiss(t)),dismissAllSidebarNotifications:(e,t,i)=>(iX(i),y.dismissAll()),deleteNotifications:(e,{selection:t},i)=>(iX(i),y.deleteSelection(t)),deleteAllNotifications:(e,t,i)=>(iX(i),y.deleteAll()),prepareWebPush:async(e,t,i)=>(iX(i),await y.prepareWebPush(),y.webPushState()),registerWebPushSubscription:async(e,{input:t},i)=>(iX(i),await y.registerWebPush(t),y.webPushState()),unregisterWebPushSubscription:(e,{endpoint:t},i)=>(iX(i),y.unregisterWebPush(t)),deleteWebPushSubscription:(e,{id:t},i)=>(iX(i),y.deleteWebPushSubscription(t)),testWebPushSubscription:(e,{id:t},i)=>(iX(i),y.testWebPushSubscription(t))},Subscription:{notificationsChanged:{subscribe:(e,t,i)=>(iX(i),y.subscribe())}}},{Query:{pollingOperations:(e,t,i)=>(i0(i),v.list())},Subscription:{pollingOperationChanged:{subscribe:(e,t,i)=>(i0(i),v.subscribe())}}},{AgentRun:{archivedAt:e=>i5(e.archivedAt),nativeArchivedAt:e=>i5(e.nativeArchivedAt),startedAt:e=>i5(e.startedAt),finishedAt:e=>i5(e.finishedAt),pricingUpdatedAt:e=>i5(e.pricingUpdatedAt),playedAt:e=>i5(e.playedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},RunAttempt:{startedAt:e=>e.startedAt.toISOString(),finishedAt:e=>i5(e.finishedAt),supersededAt:e=>i5(e.supersededAt)},RunInput:{createdAt:e=>e.createdAt.toISOString()},RunAttachment:{downloadPath:e=>`/api/run-attachments/${encodeURIComponent(e.id)}`,createdAt:e=>e.createdAt.toISOString()},RunEvent:{raw:e=>i3(e.rawJson),createdAt:e=>e.createdAt.toISOString(),supersededAt:e=>i5(e.supersededAt)},RunToolCall:{input:e=>i3(e.inputJson),output:e=>i3(e.outputJson),startedAt:e=>e.startedAt.toISOString(),finishedAt:e=>i5(e.finishedAt),supersededAt:e=>i5(e.supersededAt)},RunAnswerRevision:{answers:e=>JSON.parse(e.answersJson),createdAt:e=>e.createdAt.toISOString(),supersededAt:e=>i5(e.supersededAt)},RunQuestionBatch:{createdAt:e=>e.createdAt.toISOString(),answeredAt:e=>i5(e.answeredAt),supersededAt:e=>i5(e.supersededAt),revisionPreparedAt:e=>i5(e.revisionPreparedAt)},RunCheckpoint:{createdAt:e=>e.createdAt.toISOString()},RunDraft:{archivedAt:e=>i5(e.archivedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},RunCommand:{payload:e=>JSON.parse(e.payloadJson),createdAt:e=>e.createdAt.toISOString(),claimedAt:e=>i5(e.claimedAt),finishedAt:e=>i5(e.finishedAt)},RunProviderImportStatus:{catalog:e=>i3(e.catalogJson),lastStartedAt:e=>i5(e.lastStartedAt),lastCompletedAt:e=>i5(e.lastCompletedAt),updatedAt:e=>e.updatedAt.toISOString()},Query:{agentRuns:(e,t,i)=>(i1(i),S.list(t)),agentRun:(e,{id:t},i)=>(i1(i),S.get(t)),runEvents:(e,t,i)=>(i1(i),S.events(t)),runQuestionBatches:(e,t,i)=>(i1(i),S.questions(t)),runUsage:(e,{runId:t},i)=>(i1(i),S.usage(t)),runLinkedItems:(e,{runId:t},i)=>(i1(i),S.linkedItems(t)),runDrafts:(e,t,i)=>(i1(i),S.drafts(t)),runDraft:(e,{id:t},i)=>(i1(i),S.draft(t)),runProviderCatalog:(e,t,i)=>(i1(i),S.providerCatalog(t)),runProviderImportStatus:(e,t,i)=>(i1(i),S.providerImportStatus()),pendingRunCommands:(e,t,i)=>S.pendingCommands(i2(i))},Mutation:{createAgentRun:(e,{input:t},i)=>(i1(i),S.create(t)),playPlan:(e,{planId:t},i)=>(i1(i),S.playPlan(t)),createRunFollowUp:(e,{sourceId:t,input:i},n)=>(i1(n),S.followUp(t,i)),saveRunDraft:(e,{input:t},i)=>(i1(i),S.saveDraft(t)),archiveAgentRuns:(e,{ids:t,archived:i},n)=>(i1(n),S.archive(t,i)),deleteAgentRuns:(e,{ids:t},i)=>(i1(i),S.deleteRuns(t)),archiveRunDrafts:(e,{ids:t,archived:i},n)=>(i1(n),S.archiveDrafts(t,i)),deleteRunDrafts:(e,{ids:t},i)=>(i1(i),S.deleteDrafts(t)),pauseAgentRun:(e,{id:t},i)=>(i1(i),S.lifecycle(t,"PAUSE")),continueAgentRun:(e,{id:t},i)=>(i1(i),S.lifecycle(t,"CONTINUE")),cancelAgentRun:(e,{id:t},i)=>(i1(i),S.lifecycle(t,"CANCEL")),steerAgentRun:(e,{id:t,prompt:i,attachmentIds:n},r)=>(i1(r),S.steer(t,i,n)),answerRunQuestion:(e,{batchId:t,answers:i},n)=>(i1(n),S.answerQuestion(t,i)),prepareRunAnswerRevision:(e,{batchId:t},i)=>(i1(i),S.prepareAnswerRevision(t)),reviseRunAnswer:(e,{batchId:t,answers:i,stash:n,rollback:r},a)=>(i1(a),S.reviseAnswer(t,i,!!n,!1!==r)),claimRunCommand:(e,{id:t},i)=>S.claimCommand(i2(i),t),completeRunCommand:(e,{id:t,status:i,error:n},r)=>S.completeCommand(i2(r),t,i,n),beginRunAttempt:(e,{runId:t,nativeId:i},n)=>S.beginAttempt(i2(n),t,i),updateRunAttemptNativeId:(e,t,i)=>S.updateAttemptNativeId(i2(i),t.attemptId,t.nativeId,t.providerVersion),appendRunEvents:(e,t,i)=>S.appendEvents(i2(i),t.runId,t.attemptId??null,t.events),reportRunQuestion:(e,t,i)=>S.reportQuestion(i2(i),t.runId,t.attemptId??null,t.nativeRequestId??null,t.eventSequence??null,t.questions),reportRunUsage:(e,t,i)=>S.reportUsage(i2(i),t.runId,t.attemptId??null,t.input),finishRunAttempt:(e,t,i)=>S.finishAttempt(i2(i),t.attemptId,t.input),reportRunCheckpoint:(e,t,i)=>S.reportCheckpoint(i2(i),t.runId,t.attemptId??null,t.input),reportRunAnswerRevisionPreview:(e,t,i)=>S.reportAnswerRevisionPreview(i2(i),t.batchId,t.rollbackPatch,t.pushedCommitWarning),applyRunAnswerRevision:(e,t,i)=>S.applyAnswerRevision(i2(i),t.batchId,t.revisionId,t.replacementAttemptId),importProviderRuns:(e,{provider:t,runs:i},n)=>S.importRuns(i2(n),t,i),reportRunProviderImportStatus:(e,t,i)=>S.reportProviderImportStatus(i2(i),t.provider,t.status,t.error,t.catalog)},Subscription:{agentRunsChanged:{subscribe:(e,t,i)=>(i1(i),S.subscribeRuns()),resolve:e=>S.get(e.runChanged.id)},agentRunChanged:{subscribe:(e,{runId:t},i)=>(i1(i),S.subscribeRun(t)),resolve:e=>S.get(e.runChanged.id)},runEventAdded:{subscribe:(e,{runId:t},i)=>(i1(i),S.subscribeEvents(t))},runQuestionChanged:{subscribe:(e,{runId:t},i)=>(i1(i),S.subscribeQuestions(t)),resolve:e=>S.questionBatch(e.runQuestionChanged.id)}}}]),(0,t3.buildSubgraphSchema)({typeDefs:i4,resolvers:I}));let T="true"===process.env.APOLLO_SANDBOX;this.server=new tX({schema:this.schema,introspection:T,plugins:T?[(0,t5.ApolloServerPluginLandingPageLocalDefault)({footer:!1})]:[(0,t5.ApolloServerPluginLandingPageProductionDefault)({footer:!1})]})}async createContext(e=new Headers){let t;if(await this.initializeServer(),!this.services)throw Error("GraphQL services not initialized");let i=function(e){if(e instanceof Headers)return e;let t=new Headers;for(let[i,n]of Object.entries(e))Array.isArray(n)?t.set(i,n.join(", ")):void 0!==n&&t.set(i,n);return t}(e),n=await this.services.agentControlService.authenticate((t=i.get("authorization"),!t?.startsWith("Bearer ")?null:t.slice(7).trim()||null));return{prismaService:this.services.prismaService,agentControlService:this.services.agentControlService,agentId:n,ipAddress:i.get("x-forwarded-for")?.split(",")[0]?.trim()||null,requestOrigin:(0,i9.resolvePublicOrigin)(i)?.origin??null}}async getSchema(){if(await this.initializeServer(),!this.schema)throw Error("GraphQL schema not properly initialized");return this.schema}async getServer(){if(await this.initializeServer(),!this.server)throw Error("GraphQL server not properly initialized");return this.server}};e.s(["SharedGraphQLServerService",0,i8],379993)}];
4656
+ }`];var ia=e.i(971619);e.i(805422);var is=e.i(661983),io=e.i(694355);function il(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}function iu(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function ic(e,t){if(e.agentId&&e.agentId!==t)throw Error("An agent may only read its own resources")}async function id(e,t,i){let n=await t.getJob(i);return n&&ic(e,n.agentId),n}function ip(e){return null===e?null:JSON.parse(e)}let ih=new _.GraphQLScalarType({name:"JSON",description:"A JSON-serializable value.",serialize:e=>e,parseValue:e=>e,parseLiteral:e=>(function e(t){switch(t.kind){case A.Kind.NULL:return null;case A.Kind.STRING:case A.Kind.BOOLEAN:return t.value;case A.Kind.INT:case A.Kind.FLOAT:return Number(t.value);case A.Kind.LIST:return t.values.map(t=>e(t));case A.Kind.OBJECT:return Object.fromEntries(t.fields.map(t=>[t.name.value,e(t.value)]));default:throw Error("Unsupported JSON literal")}})(e)});var im=e.i(735255);let ig={ALL:null,LAST_7_DAYS:7,LAST_30_DAYS:30};function iy(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iv(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iS(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}e.i(107058);var iI=e.i(112627);function iT(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iE(e){return{actor:"control-plane",ipAddress:e.ipAddress}}function ib(e){return!!e?.fieldNodes.some(t=>!!t.selectionSet&&function e(t,i,n,r=new Set){for(let a of t.selections)if("Field"===a.kind){if(a.name.value===i||a.selectionSet&&e(a.selectionSet,i,n,r))return!0}else if("InlineFragment"===a.kind){if(e(a.selectionSet,i,n,r))return!0}else if(!r.has(a.name.value)){r.add(a.name.value);let t=n.fragments[a.name.value];if(t&&e(t.selectionSet,i,n,r))return!0}return!1}(t.selectionSet,"jobs",e))}function iA(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}var iN=e.i(184015);function iD(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}function i_(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}let iO=e=>e?.toISOString()??null;function iR(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iw(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}function iC(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}let iL=e=>e?.toISOString()??null;var iF=e.i(320058);function ik(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}var iP=e.i(984179);function ix(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iM(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}let iU=e=>e?.toISOString()??null,i$=(e,t)=>{try{return JSON.parse(e)}catch{return t}};function ij(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}let iV=e=>e?.toISOString()??null,iB={maskedUdid:e=>e.udid.length<=8?"••••••••":`${e.udid.slice(0,4)}••••${e.udid.slice(-4)}`,lastIpAddress:e=>e.ipObservations?.[0]?.ipAddress??null,registeredAt:e=>iV(e.registeredAt),lastSeenAt:e=>iV(e.lastSeenAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()};function iG(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iK(e){return{requestOrigin:e??null}}function iQ(e){if(e.agentId)throw Error("Agent credentials cannot perform signing operations")}let iH=e=>e?.toISOString()??null;e.i(282790);var iJ=e.i(474170);function iq(e){if(e.agentId)throw Error("Agent credentials cannot manage push notifications")}let iW=e=>e?.toISOString()??null,iY={createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()};function iz(e){if(e.agentId)throw Error("Agent credentials cannot perform control-plane operations")}function iX(e){if(e.agentId)throw Error("Agent credentials cannot manage notifications")}let iZ=e=>e?.toISOString()??null;function i0(e){if(e.agentId)throw Error("Agent credentials cannot inspect polling operations")}function i1(e){if(e.agentId)throw Error("Agent credentials cannot manage runs")}function i2(e){if(!e.agentId)throw Error("Agent authentication is required");return e.agentId}let i5=e=>e?.toISOString()??null,i3=e=>e?JSON.parse(e):null;function i4(e){if(e.agentId)throw Error("Agent credentials cannot read the model cost catalog")}let i6=ir.map(e=>it(e));var i9=e.i(887394),i8=e.i(948110);let i7=new class{server=null;services=null;schema=null;initPromise=null;async initializeServer(){if(null===this.server)return this.initPromise||(this.initPromise=this.buildServer().finally(()=>{this.initPromise=null})),this.initPromise}async buildServer(){var e,t,i,n,r,a,s,o,l,u,c,d,p,h,f,m,g,y,v,S,I;let T;this.services=(0,i9.getServerServices)(),this.schema=(e=this.services.prismaService,t=this.services.agentControlService,i=this.services.jiraService,n=this.services.gitHubService,r=this.services.ccusageService,a=this.services.codebasesService,s=this.services.toolsService,o=this.services.worktreesService,l=this.services.buildDataService,u=this.services.skillsService,c=this.services.buildsService,d=this.services.iosDevicesService,p=this.services.telemetryService,h=this.services.signingAssetsService,f=this.services.pushNotificationsService,m=this.services.cacheServerService,g=this.services.credentialService,y=this.services.notificationsService,v=this.services.pollingService,S=this.services.modelCostsService,I=this.services.runsService,T=E([{Query:{health:async()=>await e.healthCheck()?"ok":"degraded"}},{JSON:ih,Agent:{capabilities:e=>ip(e.capabilitiesJson),connectionStatus:e=>null!==e.lastSeenAt&&Date.now()-e.lastSeenAt.getTime()<=(0,io.agentOnlineWindowMs)(e)&&null===e.disconnectedAt?"ONLINE":"OFFLINE",effectiveBuildsDirectory:e=>(0,ia.effectiveBuildsDirectory)(e),lastSeenAt:e=>e.lastSeenAt?.toISOString()??null,disconnectedAt:e=>e.disconnectedAt?.toISOString()??null,createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},AgentJob:{payload:e=>ip(e.payloadJson),result:e=>ip(e.resultJson),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>e.startedAt?.toISOString()??null,finishedAt:e=>e.finishedAt?.toISOString()??null,updatedAt:e=>e.updatedAt.toISOString()},AgentJobLog:{createdAt:e=>e.createdAt.toISOString()},AgentEnrollmentToken:{expiresAt:e=>e.expiresAt.toISOString()},Query:{agents:(e,i,n)=>(iu(n),t.listAgents()),agent:(e,{id:i},n)=>(ic(n,i),t.getAgent(i)),agentSelf:(e,i,n)=>{let r=il(n);return t.getAgent(r)},agentCadenceSettings:(e,{agentId:i},n)=>(ic(n,i),t.cadenceSettings(i)),agentJobs:(e,{agentId:i,limit:n},r)=>(ic(r,i),t.listJobs(i,n,!!r.agentId)),agentJob:async(e,{id:i},n)=>id(n,t,i),agentJobLogs:async(e,{jobId:i,afterSequence:n},r)=>(await id(r,t,i),t.listLogs(i,n))},Mutation:{createAgentEnrollmentToken:(e,{expiresInMinutes:i},n)=>(iu(n),t.createEnrollmentToken(i)),enrollAgent:(e,{input:i},n)=>t.enroll({...i,ipAddress:n.ipAddress}),heartbeatAgent:(e,{input:i},n)=>t.heartbeat(il(n),{...i,ipAddress:n.ipAddress}),createAgentJob:(e,{input:i},n)=>(iu(n),t.createJob(i)),claimAgentJob:(e,{jobId:i},n)=>t.claimJob(il(n),i),claimSigningSecretTransfer:(e,{transferId:i},n)=>t.claimSigningSecretTransfer(il(n),i),appendAgentJobLogs:(e,{jobId:i,logs:n},r)=>t.appendLogs(il(r),i,n),completeAgentJob:(e,i,n)=>t.completeJob(il(n),i.jobId,i.status,i.result,i.error??null),cancelAgentJob:(e,{jobId:i},n)=>(iu(n),t.cancelJob(i)),requestAgentCodebaseReconcile:async(e,{agentId:i},n)=>(iu(n),await t.requestCodebaseReconcile([i])===1),updateAgentBaseRepoDirectory:(e,{agentId:i,baseRepoDirectory:n},r)=>(iu(r),t.updateBaseRepoDirectory(i,n??null)),updateAgentBuildsDirectory:(e,{agentId:i,buildsDirectory:n},r)=>(iu(r),t.updateBuildsDirectory(i,n??null)),updateAgentDerivedDataSettings:(e,{agentId:i,input:n},r)=>(iu(r),t.updateDerivedDataSettings(i,n.mode,n.path??null)),updateAgentCadenceSettings:(e,{agentId:i,input:n},r)=>(iu(r),t.updateCadenceSettings(i,n)),deleteAgent:(e,{agentId:i},n)=>(iu(n),t.deleteAgent(i))},Subscription:{agentEvents:{subscribe:(e,{agentId:t},i)=>{if(il(i)!==t)throw Error("An agent may only subscribe to its own events");return is.agentEventBus.iterate((0,is.agentEventsTopic)(t))}},agentChanged:{subscribe:(e,{agentId:t},i)=>(t?ic(i,t):iu(i),is.agentEventBus.iterate(is.AGENT_CHANGED_TOPIC,t?e=>e.agentChanged.id===t:void 0))},agentJobChanged:{subscribe:async(e,{jobId:i},n)=>(await id(n,t,i),is.agentEventBus.iterate((0,is.agentJobChangedTopic)(i)))},agentJobLogAdded:{subscribe:async(e,{jobId:i},n)=>(await id(n,t,i),is.agentEventBus.iterate((0,is.agentJobLogTopic)(i)))}}},{Query:{jiraSettings:(e,t,n)=>(iS(n),i.getSettings()),jiraAvailableProjects:(e,t,n)=>(iS(n),i.availableProjects()),jiraProjects:(e,t,n)=>(iS(n),i.listProjects()),jiraProjectStatuses:(e,{projectId:t},n)=>(iS(n),i.projectStatuses(t)),jiraTicketBoard:(e,{sourceId:t},n)=>(iS(n),i.ticketBoard(t)),jiraTicket:(e,{issueKey:t},n)=>(iS(n),i.ticket(t)),jiraAssignableUsers:(e,{issueKey:t,query:n},r)=>(iS(r),i.assignableUsers(t,n)),jiraTicketTransitions:(e,{issueKey:t},n)=>(iS(n),i.ticketTransitions(t)),jiraTicketEditFields:(e,{issueKey:t},n)=>(iS(n),i.ticketEditFields(t)),jiraTicketChanges:(e,{issueKey:t,limit:n,offset:r},a)=>(iS(a),i.ticketChanges(t,n,r)),jiraTicketWorklogs:(e,{issueKey:t,limit:n,offset:r},a)=>(iS(a),i.ticketWorklogs(t,n,r)),jiraCacheMetrics:(e,t,n)=>(iS(n),i.cacheMetrics()),jiraApiCalls:(e,{limit:t,offset:n},r)=>(iS(r),i.listApiCalls(t,n)),jiraCachedTickets:(e,{limit:t,offset:n},r)=>(iS(r),i.listCachedTickets(t,n)),jiraCachedTicket:(e,{issueKey:t},n)=>(iS(n),i.cachedTicket(t))},Mutation:{saveJiraSettings:(e,{input:t},n)=>(iS(n),i.saveSettings(t)),testJiraConnection:(e,t,n)=>(iS(n),i.testConnection()),clearJiraCredentials:(e,t,n)=>(iS(n),i.clearCredentials()),addJiraProject:(e,{jiraId:t},n)=>(iS(n),i.addProject(t)),removeJiraProject:(e,{projectId:t},n)=>(iS(n),i.removeProject(t)),createJiraSource:(e,{input:t},n)=>(iS(n),i.createSource(t)),updateJiraSource:(e,{input:t},n)=>(iS(n),i.updateSource(t)),deleteJiraSource:(e,{id:t},n)=>(iS(n),i.deleteSource(t)),updateJiraProjectDisplaySettings:(e,{input:t},n)=>(iS(n),i.updateProjectDisplaySettings(t)),updateJiraProjectBranchNaming:(e,{projectId:t,branchNamingScript:n},r)=>(iS(r),i.updateProjectBranchNaming(t,n)),refreshJiraSource:(e,{sourceId:t},n)=>(iS(n),i.ticketBoard(t,!0)),updateJiraCacheTtl:(e,{ttlMinutes:t},n)=>(iS(n),i.updateCacheTtl(t)),clearJiraCache:(e,t,n)=>(iS(n),i.clearCache()),refreshJiraCachedTicket:(e,{issueKey:t},n)=>(iS(n),i.refreshCachedTicket(t)),deleteJiraCachedTicket:(e,{issueKey:t},n)=>(iS(n),i.deleteCachedTicket(t)),addJiraComment:(e,{issueKey:t,content:n},r)=>(iS(r),i.addComment(t,n)),assignJiraTicket:(e,{issueKey:t,accountId:n},r)=>(iS(r),i.assignTicket(t,n??null)),transitionJiraTicket:(e,{issueKey:t,transitionId:n},r)=>(iS(r),i.transitionTicket(t,n)),updateJiraTicket:(e,{input:t},n)=>(iS(n),i.updateTicket(t))}},{Query:{githubSettings:(e,t,i)=>(iT(i),n.getSettings()),githubAppSettings:(e,t,i)=>(iT(i),n.getAppSettings()),githubRepositories:(e,t,i)=>(iT(i),n.listRepositories()),githubAvailableRepositories:(e,{after:t},i)=>(iT(i),n.availableRepositories(t)),githubActionsWorkflowRuns:(e,{codebaseRepositoryId:t,branch:i,workflowId:r,first:a,after:s},o)=>(iT(o),n.actionsWorkflowRuns(t,a??25,s,i,r)),githubActionsWorkflowJobs:(e,{codebaseRepositoryId:t,workflowRunId:i},r)=>(iT(r),n.actionsWorkflowJobs(t,i)),githubActionsWorkflowRunAttempt:(e,{repositoryId:t,workflowRunId:i,attempt:r},a,s)=>(iT(a),n.actionsWorkflowRunAttempt(t,i,r,ib(s))),githubWorktreeWorkflowRuns:(e,{worktreeId:t},i)=>(iT(i),n.worktreeWorkflowRuns(t)),githubRepositoryWorkflows:(e,{codebaseRepositoryId:t},i)=>(iT(i),n.repositoryWorkflows(t)),githubAutoRetryRules:(e,{codebaseRepositoryId:t,workflowRunId:i},r)=>(iT(r),n.autoRetryRules({codebaseRepositoryId:t,workflowRunId:i})),githubPullRequests:(e,{scope:t,repositoryId:i,state:r,first:a,after:s},o,l)=>(iT(o),n.pullRequests(t,i,{includePipelineJobs:ib(l),state:r??"OPEN",first:a??25,after:s})),githubPullRequest:(e,{owner:t,name:i,number:r},a)=>(iT(a),n.pullRequest(t,i,r)),githubPullRequestMergeOptions:(e,{owner:t,name:i,number:r},a)=>(iT(a),n.pullRequestMergeOptions(t,i,r)),githubReviewThreads:(e,t,i)=>(iT(i),n.reviewThreads())},Mutation:{saveGitHubSettings:(e,{input:t},i)=>(iT(i),n.saveSettings(t)),saveGitHubAppSettings:(e,{input:t},i)=>(iT(i),n.saveAppSettings(t,iE(i),i.requestOrigin)),testGitHubConnection:(e,t,i)=>(iT(i),n.testConnection()),testGitHubAppConnection:(e,t,i)=>(iT(i),n.testAppConnection(iE(i))),clearGitHubCredentials:(e,t,i)=>(iT(i),n.clearCredentials()),clearGitHubAppCredentials:(e,t,i)=>(iT(i),n.clearAppCredentials(iE(i))),addGitHubRepository:(e,{input:t},i)=>(iT(i),n.addRepository(t)),updateGitHubRepository:(e,{input:t},i)=>(iT(i),n.updateRepository(t)),removeGitHubRepository:(e,{id:t},i)=>(iT(i),n.removeRepository(t)),mergeGitHubPullRequest:async(e,{input:t},i)=>{iT(i);let r=await n.mergePullRequest(t),{owner:a,name:s}=(0,iI.normalizeGitHubRepositoryName)(`${t.owner}/${t.name}`);return o.invalidatePullRequestsForOrigin(`github.com/${a}/${s}`),r},retryGitHubPipeline:(e,{repositoryId:t,checkSuiteId:i},r)=>(iT(r),n.retryPipeline(t,i,iE(r))),retryGitHubWorkflowJob:(e,{repositoryId:t,checkSuiteId:i,jobId:r},a)=>(iT(a),n.retryWorkflowJob(t,i,r,iE(a))),cancelGitHubActionsWorkflowRun:(e,{codebaseRepositoryId:t,workflowRunId:i,force:r},a)=>(iT(a),n.cancelActionsWorkflowRun(t,i,r,iE(a))),saveGitHubAutoRetryRule:(e,{input:t},i)=>(iT(i),n.saveAutoRetryRule(t)),setGitHubAutoRetryRuleEnabled:(e,{id:t,enabled:i},r)=>(iT(r),n.setAutoRetryRuleEnabled(t,i)),deleteGitHubAutoRetryRule:(e,{id:t},i)=>(iT(i),n.deleteAutoRetryRule(t)),replyToGitHubReviewThread:(e,{threadId:t,body:i},r)=>(iT(r),n.replyToReviewThread(t,i)),setGitHubReviewThreadResolved:(e,{threadId:t,resolved:i},r)=>(iT(r),n.setReviewThreadResolved(t,i))}},{CcusageCollection:{aggregate:(e,{range:t="ALL"})=>(0,im.filterUsageByDays)(e.aggregate,ig[t])},CcusageModelUsage:{unattributed:e=>e.unattributed??!1},Query:{ccusageCollection:async(e,{id:t},i)=>(iy(i),await r.initialize(),r.getCollection(t))},Mutation:{collectCcusage:async(e,{requestId:t},i)=>(iy(i),await r.initialize(),r.collect(t))},Subscription:{ccusageCollectionChanged:{subscribe:async(e,{id:t},i)=>(iy(i),await r.initialize(),r.subscribe(t)),resolve:e=>e}}},{DerivedDataDeletionHistory:{deletedAt:e=>e.deletedAt.toISOString()},Query:{derivedDataCollection:(e,{id:t},i)=>(iv(i),l.getCollection(t)),derivedDataDeletionHistory:(e,{first:t,after:i},n)=>(iv(n),l.history(t,i))},Mutation:{refreshDerivedData:(e,{requestId:t},i)=>(iv(i),l.refresh(t)),calculateDerivedDataSizes:(e,{collectionId:t,entryIds:i,requestId:n},r)=>(iv(r),l.calculateSizes(t,i,n)),deleteDerivedDataEntries:(e,{collectionId:t,entryIds:i,requestId:n},r)=>(iv(r),l.deleteEntries(t,i,n)),clearDerivedDataDeletionHistory:(e,t,i)=>(iv(i),l.clearHistory())},Subscription:{derivedDataCollectionChanged:{subscribe:(e,{id:t},i)=>(iv(i),l.subscribe(t)),resolve:e=>e}}},{CodebaseOverview:{repositories:e=>Array.isArray(e)?e:e.repositories??[]},CodebaseRepository:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},CodebaseSettings:{updatedAt:e=>e.updatedAt.toISOString()},Codebase:{lastCheckedAt:e=>iO(e.lastCheckedAt),lastFetchedAt:e=>iO(e.lastFetchedAt),lastFetchAttemptAt:e=>iO(e.lastFetchAttemptAt),localBranches:e=>{try{let t=JSON.parse(e.localBranchesJson);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}},remoteBranches:e=>{try{let t=JSON.parse(e.remoteBranchesJson);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}},createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),activeJob:e=>e.jobs?.[0]??null},AgentCodebaseRegistration:{canonicalOrigin:e=>e.repository.canonicalOrigin,keepBaseBranchUpToDate:e=>e.repository.keepBaseBranchUpToDate,worktrees:e=>e.worktrees??[],lastFetchedAt:e=>iO(e.lastFetchedAt),lastFetchAttemptAt:e=>iO(e.lastFetchAttemptAt)},Query:{codebaseOverview:async(e,t,i)=>(i_(i),a.overview()),codebaseRepository:(e,{id:t},i)=>(i_(i),a.repositoryDetail(t)),codebase:(e,{id:t},i)=>(i_(i),a.detail(t)),codebaseSettings:(e,t,i)=>(i_(i),a.settings()),agentCodebases:(e,t,i)=>a.agentCodebases(iD(i)),agentCodebaseConfiguration:(e,t,i)=>a.agentConfiguration(iD(i))},Mutation:{browseAgentDirectory:(e,{input:t},i)=>(i_(i),a.browse(t.agentId,t.path??null,t.requestId)),inspectAgentCodebase:(e,{input:t},i)=>(i_(i),a.inspect(t.agentId,t.folder,t.requestId)),confirmCodebase:(e,{input:t},i)=>(i_(i),a.confirm(t)),updateCodebaseRepository:(e,{input:t},i)=>(i_(i),a.updateRepository(t.id,t.name,t.description,t.jiraBranchRegex,t.keepBaseBranchUpToDate,t.skillGroupIds)),updateCodebaseSettings:(e,{input:t},i)=>(i_(i),a.updateSettings(t)),removeCodebase:(e,{id:t},i)=>(i_(i),a.removeCodebase(t)),refreshCodebases:(e,{input:t},i)=>(i_(i),a.runOperation(iN.CODEBASE_REFRESH_JOB_KIND,t.codebaseIds,t.requestId)),fetchCodebases:(e,{input:t},i)=>(i_(i),a.runOperation(iN.CODEBASE_FETCH_JOB_KIND,t.codebaseIds,t.requestId)),inspectCodebaseGitState:(e,{input:t},i)=>(i_(i),a.inspectGitState(t.codebaseId,t.requestId)),inspectCodebaseStash:(e,{input:t},i)=>(i_(i),a.inspectStash(t.codebaseId,t.stashOid,t.requestId)),runCodebaseGitOperation:(e,{input:t},i)=>(i_(i),a.runGitOperation(t)),reportCodebaseStatuses:(e,{reports:t},i)=>a.report(iD(i),t)},Subscription:{codebaseOverviewChanged:{subscribe:(e,t,i)=>(i_(i),a.subscribe())}}},{Query:{externalMcpServers:(e,t,i)=>(iR(i),s.externalServers())},Mutation:{createExternalMcpServer:(e,{input:t},i)=>(iR(i),s.createExternalServer(t)),updateExternalMcpServer:(e,{id:t,input:i},n)=>(iR(n),s.updateExternalServer(t,i)),deleteExternalMcpServer:(e,{id:t},i)=>(iR(i),s.deleteExternalServer(t))}},{WorktreeLatestBuild:{destination:e=>JSON.parse(e.destinationJson),createdAt:e=>e.createdAt.toISOString()},Worktree:{lastCheckedAt:e=>iL(e.lastCheckedAt),missingAt:e=>iL(e.missingAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},WorktreeTag:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},WorktreeSettings:{updatedAt:e=>e.updatedAt.toISOString()},WorktreeMove:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>iL(e.finishedAt)},Query:{worktreeOverview:(e,t,i)=>(iC(i),o.overview()),hiddenWorktrees:(e,t,i)=>(iC(i),o.hidden()),worktreeSettings:(e,t,i)=>(iC(i),o.settings()),previewWorktreeTicketBranch:(e,{input:t},i)=>(iC(i),o.previewTicketBranch(t)),worktreeMove:(e,{id:t},i)=>(iC(i),o.getMove(t))},Mutation:{refreshWorktrees:(e,t,i)=>(iC(i),o.requestRefresh()),reportWorktrees:(e,{reports:t},i)=>o.report(iw(i),t),reportWorktreeActivity:(e,{input:t},i)=>o.reportActivity(iw(i),t),inspectWorktree:(e,{id:t,requestId:i},n)=>(iC(n),o.inspect(t,i)),inspectWorktreeDiff:(e,{input:t},i)=>(iC(i),o.inspectDiff(t.worktreeId,{scope:t.scope,path:t.path,previousPath:t.previousPath,commitSha:t.commitSha},t.requestId)),runWorktreeOperation:(e,{input:t},i)=>(iC(i),o.runOperation(t.worktreeId,t.operation,t.requestId)),createWorktree:(e,{input:t},i)=>(iC(i),o.createWorktree(t)),changeWorktreeBranch:(e,{input:t},i)=>(iC(i),o.changeWorktreeBranch(t)),moveWorktree:(e,{input:t},i)=>(iC(i),o.moveWorktree(t)),retryWorktreeMoveWithStash:(e,{id:t},i)=>(iC(i),o.retryWorktreeMoveWithStash(t)),cancelWorktreeMove:(e,{id:t},i)=>(iC(i),o.cancelWorktreeMove(t)),deleteWorktree:(e,{input:t},i)=>(iC(i),o.deleteWorktree(t)),updateWorktreeBaseBranch:(e,{id:t,baseBranch:i},n)=>(iC(n),o.updateBaseBranch(t,i??null)),updateWorktreeHighlight:(e,{id:t,color:i},n)=>(iC(n),o.updateHighlight(t,i??null)),setWorktreeTags:(e,{id:t,tagIds:i},n)=>(iC(n),o.setTags(t,i)),saveWorktreeTag:(e,{input:t},i)=>(iC(i),o.saveTag(t)),deleteWorktreeTag:(e,{id:t},i)=>(iC(i),o.deleteTag(t)),saveWorktreeSettings:(e,{editorVariant:t},i)=>(iC(i),o.saveSettings(t)),purgeHiddenWorktree:(e,{id:t},i)=>(iC(i),o.purge(t)),purgeAllHiddenWorktrees:(e,t,i)=>(iC(i),o.purgeAll())},Subscription:{worktreeOverviewChanged:{subscribe:(e,t,i)=>(iC(i),o.subscribe())},worktreeInspectionChanged:{subscribe:(e,{worktreeId:t},i)=>(iC(i),o.subscribeInspection(t))}}},{CodebaseRepository:{skillGroups:e=>u.groupsForRepository(e.id)},Skill:{groups:e=>e.groups?.map(e=>e.group)??[],createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillFile:{contentsBase64:e=>Buffer.from(e.contents).toString("base64"),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillGroup:{skills:e=>e.skills?.map(e=>e.skill)??[],repositories:e=>e.repositories?.map(e=>e.repository)??[],createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillSettings:{updatedAt:e=>e.updatedAt.toISOString()},SkillToolObservation:{checkedAt:e=>e.checkedAt.toISOString()},SkillInstallation:{consumers:e=>{try{return JSON.parse(e.consumersJson)}catch{return[]}},lastSeenAt:e=>e.lastSeenAt.toISOString()},SkillSyncItem:{candidatePackage:e=>{try{return e.candidatePackageJson?JSON.parse(e.candidatePackageJson):null}catch{return null}},createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},SkillSyncRun:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>{let t;return t=e.finishedAt,t?.toISOString()??null}},Query:{skillsOverview:(e,{search:t},i)=>(ik(i),u.overview(t??"")),skill:(e,{id:t},i)=>(ik(i),u.getSkill(t)),skillSyncRun:(e,{id:t},i)=>(ik(i),u.getRun(t))},Mutation:{saveSkill:(e,{input:t},i)=>(ik(i),u.saveSkill(t)),deleteSkill:(e,{id:t},i)=>(ik(i),u.deleteSkill(t)),saveSkillGroup:(e,{input:t},i)=>(ik(i),u.saveGroup(t)),deleteSkillGroup:(e,{id:t},i)=>(ik(i),u.deleteGroup(t)),saveSkillSettings:(e,{input:t},i)=>(ik(i),u.saveSettings(t)),prepareSkillSync:(e,{kind:t,groupId:i},n)=>(ik(n),u.prepareSync(t,i??null)),skipPendingSkillSync:(e,{runId:t},i)=>(ik(i),u.skipPending(t)),resolveSkillSyncItem:(e,{input:t},i)=>{var n;return ik(i),u.resolveItem({...t,package:t.package?(n=t.package,(0,iF.parseSkillPackage)({...n,packageHash:n.packageHash||(0,iF.hashSkillFiles)(n.files)})):null})},applySkillSync:(e,{runId:t},i)=>(ik(i),u.applyRun(t))},Subscription:{skillsChanged:{subscribe:(e,t,i)=>(ik(i),u.subscribe()),resolve:()=>u.overview()},skillSyncRunChanged:{subscribe:(e,{runId:t},i)=>(ik(i),u.subscribeRun(t)),resolve:(e,{runId:t})=>u.getRun(t)}}},{CodebaseProject:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},BuildConfiguration:{advancedSettings:e=>i$(e.advancedSettingsJson,{}),exportSettings:e=>e.exportSettingsJson?i$(e.exportSettingsJson,null):null,observation:e=>e.source?.observations?.[0]??null,createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},BuildSourceObservation:{schemes:e=>i$(e.schemesJson,[]),configurations:e=>i$(e.configurationsJson,[]),testPlans:e=>i$(e.testPlansJson,[]),lastParseAttemptAt:e=>e.lastParseAttemptAt.toISOString(),lastParsedAt:e=>iU(e.lastParsedAt)},BuildScript:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},BuildArtifact:{metadata:e=>i$(e.metadataJson,{}),createdAt:e=>e.createdAt.toISOString()},BuildReport:{summary:e=>i$(e.summaryJson,{}),data:async e=>i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{}),testSummary:e=>"TEST_RESULTS"===e.kind&&"READY"===e.status?i$(e.summaryJson,{}):null,tests:async e=>{if("TEST_RESULTS"!==e.kind)return[];let t=i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{});return Array.isArray(t.tests)?t.tests:[]},coverageSummary:e=>"CODE_COVERAGE"===e.kind&&"READY"===e.status?i$(e.summaryJson,{}):null,coverageFiles:async e=>{if("CODE_COVERAGE"!==e.kind)return[];let t=i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{});return Array.isArray(t.files)?t.files:[]},changedCoverageFiles:async e=>{if("CODE_COVERAGE"!==e.kind)return[];let t=i$("string"==typeof e.dataJson?e.dataJson:await c.reportData(e.id),{});return Array.isArray(t.changedFiles)?t.changedFiles:[]},build:e=>e.build??c.getBuild(e.buildId),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>iU(e.finishedAt)},BuildDeployment:{destination:e=>i$(e.destinationJson,{}),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iU(e.startedAt),finishedAt:e=>iU(e.finishedAt)},BuildExport:{settings:e=>i$(e.settingsSnapshotJson,{}),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iU(e.startedAt),finishedAt:e=>iU(e.finishedAt)},Build:{reports:e=>e.reports??c.reportsForBuild(e.id),destination:e=>i$(e.destinationJson,{}),snapshot:e=>i$(e.snapshotJson,{}),createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iU(e.startedAt),finishedAt:e=>iU(e.finishedAt),updatedAt:e=>e.updatedAt.toISOString(),durationMs:e=>e.startedAt&&e.finishedAt?Math.max(0,e.finishedAt.getTime()-e.startedAt.getTime()):null,outOfDate:iP.buildOutOfDate},BuildLogEvent:{createdAt:e=>e.createdAt instanceof Date?e.createdAt.toISOString():e.createdAt},Query:{iosAppProject:(e,{codebaseId:t},i)=>(ix(i),c.project(t)),buildSigningOptions:(e,{buildId:t},i)=>(ix(i),c.signingOptionsForBuild(t)),buildScripts:(e,t,i)=>(ix(i),c.scripts()),builds:(e,t,i)=>(ix(i),c.builds(t)),build:(e,{id:t},i)=>(ix(i),c.getBuild(t)),buildLogs:(e,t,i)=>(ix(i),c.logs(t.buildId,t.after,t.first)),worktreeCoverageReports:(e,{worktreeId:t},i)=>(ix(i),c.coverageHistory(t))},Mutation:{createIosAppProject:(e,{codebaseId:t},i)=>(ix(i),c.createProject(t)),saveBuildConfiguration:(e,{input:t},i)=>(ix(i),c.saveConfiguration(t)),deleteBuildConfiguration:(e,{id:t},i)=>(ix(i),c.deleteConfiguration(t)),discoverBuildSources:(e,t,i)=>(ix(i),c.discoverSources(t.worktreeId,t.requestId)),inspectBuildSource:(e,{input:t},i)=>(ix(i),c.inspectSource(t)),reparseBuildConfiguration:(e,t,i)=>(ix(i),c.reparse(t.configurationId,t.worktreeId,t.requestId)),inspectBuildDestinations:(e,{input:t},i)=>(ix(i),c.destinations(t)),inspectBuildRunDestinations:(e,t,i)=>(ix(i),c.destinationsForBuild(t.buildId,t.requestId)),saveBuildScript:(e,{input:t},i)=>(ix(i),c.saveScript(t)),deleteBuildScript:(e,{id:t},i)=>(ix(i),c.deleteScript(t)),setCodebaseBuildScripts:(e,t,i)=>(ix(i),c.setAllowedScripts(t.codebaseId,t.scriptIds)),startBuild:(e,{input:t},i)=>(ix(i),c.startBuild({...t,telemetryRequestOrigin:i.requestOrigin})),rebuildBuild:(e,{id:t,requestId:i},n)=>(ix(n),c.rebuildBuild(t,i,n.requestOrigin)),cancelBuild:(e,{id:t},i)=>(ix(i),c.cancelBuild(t)),deleteBuilds:(e,{ids:t},i)=>(ix(i),c.deleteBuilds(t)),runBuild:(e,{input:t},i)=>(ix(i),c.runBuild(t)),exportBuildArchive:(e,{input:t},i)=>(ix(i),c.exportArchive(t)),parseBuildTestResults:(e,t,i)=>(ix(i),c.generateReport(t.buildId,"TEST_RESULTS",t.requestId)),generateBuildCoverageReport:(e,t,i)=>(ix(i),c.generateReport(t.buildId,"CODE_COVERAGE",t.requestId)),startWorktreeCoverage:(e,{input:t},i)=>(ix(i),c.startWorktreeCoverage({...t,telemetryRequestOrigin:i.requestOrigin})),reportBuildProgress:(e,{input:t},i)=>c.reportProgress(iM(i),t),appendBuildLogEvents:(e,{buildId:t,events:i},n)=>c.appendLogs(iM(n),t,i)},Subscription:{buildsChanged:{subscribe:(e,t,i)=>(ix(i),is.agentEventBus.iterate(is.BUILDS_CHANGED_TOPIC))},buildChanged:{subscribe:(e,{id:t},i)=>(ix(i),is.agentEventBus.iterate((0,is.buildTopic)(t)))},buildLogAdded:{subscribe:(e,{buildId:t},i)=>(ix(i),is.agentEventBus.iterate((0,is.buildLogTopic)(t)))}}},{IosDevice:iB,IosDeviceSummary:iB,IosDeviceEnrollment:{expiresAt:e=>e.expiresAt.toISOString(),downloadedAt:e=>iV(e.downloadedAt),consumedAt:e=>iV(e.consumedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},IosDeviceIpObservation:{observedAt:e=>e.observedAt.toISOString()},Query:{iosDevices:(e,{status:t},i)=>(ij(i),d.devices(t)),iosDevice:(e,{id:t},i)=>(ij(i),d.device(t)),iosDeviceFirmware:(e,{id:t},i)=>(ij(i),d.deviceFirmware(t)),iosDeviceSettings:(e,t,i)=>(ij(i),d.getSettings())},Mutation:{renameIosDevice:(e,{id:t,displayName:i},n)=>(ij(n),d.renameDevice(t,i)),rejectIosDevice:(e,{id:t},i)=>(ij(i),d.rejectDevice(t)),deleteIosDevice:(e,{id:t},i)=>(ij(i),d.deleteDevice(t)),registerIosDevice:(e,{id:t},i)=>(ij(i),d.registerDevice(t)),saveIosProfileSettings:(e,{input:t},i)=>(ij(i),d.saveProfileSettings(t)),regenerateIosProfileSigner:(e,t,i)=>(ij(i),d.regenerateProfileSignerView()),saveAppStoreConnectSettings:(e,{input:t},i)=>(ij(i),d.saveAppStoreConnectSettings(t)),testAppStoreConnectSettings:(e,t,i)=>(ij(i),d.testAppStoreConnectSettings()),clearAppStoreConnectSettings:(e,t,i)=>(ij(i),d.clearAppStoreConnectSettings())},Subscription:{iosDevicesChanged:{subscribe:(e,t,i)=>(ij(i),d.subscribe()),resolve:e=>e}}},{Query:{telemetryTimeline:(e,{input:t},i)=>(iG(i),p.timeline(t)),telemetryEntries:(e,{ids:t},i)=>(iG(i),p.entries(t)),telemetryFacets:(e,{view:t},i)=>(iG(i),p.facets(t)),telemetryFields:(e,{view:t},i)=>(iG(i),p.fields(t)),telemetrySettings:(e,{requestOrigin:t},i)=>(iG(i),p.settings(iK(t))),telemetryViewSettings:(e,{view:t},i)=>(iG(i),p.viewSettings(t)),telemetryColumnPresets:(e,{view:t},i)=>(iG(i),p.columnPresets(t)),telemetrySavedFilters:(e,{view:t},i)=>(iG(i),p.savedFilters(t))},Mutation:{saveTelemetrySettings:(e,{input:t,requestOrigin:i},n)=>(iG(n),p.saveSettings(t,iK(i))),saveTelemetryViewSettings:(e,{input:t},i)=>(iG(i),p.saveViewSettings(t)),saveTelemetryColumnPreset:(e,{input:t},i)=>(iG(i),p.saveColumnPreset(t)),deleteTelemetryColumnPreset:(e,{id:t},i)=>(iG(i),p.deleteColumnPreset(t)),saveTelemetryFilter:(e,{input:t},i)=>(iG(i),p.saveFilter(t)),deleteTelemetryFilter:(e,{id:t},i)=>(iG(i),p.deleteFilter(t)),addTelemetrySeparator:(e,{name:t},i)=>(iG(i),p.addSeparator(t)),updateTelemetryHighlight:(e,{id:t,color:i},n)=>(iG(n),p.highlight(t,i??null)),clearSelectedTelemetry:(e,{selection:t},i)=>(iG(i),p.clearSelected(t)),clearTelemetry:(e,{view:t,includeSeparators:i},n)=>(iG(n),p.clearAll(t,i)),clearTelemetryBeforeLatestSeparator:(e,{view:t},i)=>(iG(i),p.clearBeforeLatestSeparator(t))},Subscription:{telemetryEntriesChanged:{subscribe:(e,t,i)=>(iG(i),p.subscribe()),resolve:e=>e},telemetrySettingsChanged:{subscribe:(e,t,i)=>(iG(i),p.subscribeSettings()),resolve:e=>e}}},{LocalSigningProfile:{provisionedDevices:e=>h.profileDevices(e.deviceUdids)},SigningOperation:{createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString(),finishedAt:e=>iH(e.finishedAt)},SigningOperationItem:{createdAt:e=>e.createdAt.toISOString(),finishedAt:e=>iH(e.finishedAt)},Query:{signingAgents:(e,t,i)=>(iQ(i),h.agents()),signingProfiles:(e,t,i)=>(iQ(i),h.profiles()),signingProfile:(e,{id:t},i)=>(iQ(i),h.profile(t)),signingCertificates:(e,t,i)=>(iQ(i),h.certificates()),signingOperations:(e,{limit:t},i)=>(iQ(i),h.operations(t)),appleDeveloperInventory:(e,t,i)=>(iQ(i),h.portalInventory())},Mutation:{refreshSigningAssets:(e,{agentIds:t},i)=>(iQ(i),h.refresh(t??void 0)),uploadSigningProfile:(e,t,i)=>(iQ(i),h.uploadProfile(t.contentBase64,t.targetAgentIds)),downloadSigningProfile:(e,t,i)=>(iQ(i),h.downloadProfile(t.uuid,t.agentId)),syncSigningProfile:(e,t,i)=>(iQ(i),h.syncProfile(t.uuid,t.sourceAgentId,t.targetAgentIds)),deleteSigningProfile:(e,t,i)=>(iQ(i),h.deleteProfile(t.uuid,t.agentIds)),deleteExpiredSigningProfiles:(e,{agentIds:t},i)=>(iQ(i),h.deleteExpiredProfiles(t??void 0)),importSigningIdentity:(e,t,i)=>(iQ(i),h.importIdentity(t)),deleteSigningIdentity:(e,t,i)=>(iQ(i),h.deleteIdentity(t.sha1,t.agentIds)),createApplePortalProfile:(e,{input:t},i)=>(iQ(i),h.createPortalProfile(t)),deleteApplePortalProfile:(e,{id:t},i)=>(iQ(i),h.deletePortalProfile(t)),revokeApplePortalCertificate:(e,{id:t},i)=>(iQ(i),h.revokePortalCertificate(t))},Subscription:{signingAssetsChanged:{subscribe:(e,t,i)=>(iQ(i),h.subscribe()),resolve:()=>!0}}},{ApnsRegistration:{...iY,tokenMasked:e=>e.tokenMasked??(e.token?`${e.token.slice(0,8)}…${e.token.slice(-8)}`:"—"),supportedPushTypes:e=>e.supportedPushTypes??(e.pushTypesJson?JSON.parse(e.pushTypesJson):[]),pushMagicConfigured:e=>!!e.pushMagic,invalidatedAt:e=>iW(e.invalidatedAt),lastFailureAt:e=>iW(e.lastFailureAt),lastRegisteredAt:e=>e.lastRegisteredAt.toISOString(),lastSentAt:e=>iW(e.lastSentAt)},ApnsCertificateCredential:{...iY,expiresAt:e=>iW(e.expiresAt),lastTestedAt:e=>iW(e.lastTestedAt)},PushNotificationSettings:{updatedAt:e=>e.updatedAt.toISOString(),tokenConfiguredAt:e=>iW(e.tokenConfiguredAt),tokenLastUsedAt:e=>iW(e.tokenLastUsedAt)},ApnsBroadcastChannel:iY,PushNotificationPreset:{...iY,editor:e=>JSON.parse(e.editorJson)},PushNotificationBatch:{...iY,editor:e=>JSON.parse(e.editorJson),payload:e=>JSON.parse(e.payloadJson),headers:e=>JSON.parse(e.headersJson),startedAt:e=>iW(e.startedAt),finishedAt:e=>iW(e.finishedAt)},PushNotificationDelivery:{createdAt:e=>e.createdAt.toISOString(),startedAt:e=>iW(e.startedAt),finishedAt:e=>iW(e.finishedAt),responseTimestamp:e=>iW(e.responseTimestamp)},Query:{apnsRegistrations:(e,t,i)=>(iq(i),f.registrations()),pushNotificationSettings:(e,t,i)=>(iq(i),f.settings()),apnsBroadcastChannels:(e,t,i)=>(iq(i),f.channels()),pushNotificationPresets:(e,t,i)=>(iq(i),f.presets()),pushNotificationHistory:(e,{limit:t},i)=>(iq(i),f.history(t)),validatePushNotification:(e,{editor:t},i)=>(iq(i),(0,iJ.validatePushEditor)(t))},Mutation:{renameApnsRegistration:(e,t,i)=>(iq(i),f.renameRegistration(t.id,t.displayName)),setApnsRegistrationActive:(e,t,i)=>(iq(i),f.setRegistrationActive(t.id,t.active)),deleteApnsRegistration:(e,{id:t},i)=>(iq(i),f.deleteRegistration(t)),saveApnsTokenSettings:(e,{input:t},i)=>(iq(i),f.saveTokenSettings(t)),clearApnsTokenSettings:(e,t,i)=>(iq(i),f.clearTokenSettings()),addApnsCertificateCredential:(e,{input:t},i)=>(iq(i),f.addCertificateCredential(t)),retestApnsCertificateCredential:(e,{id:t},i)=>(iq(i),f.retestCertificateCredential(t)),deleteApnsCertificateCredential:(e,{id:t},i)=>(iq(i),f.deleteCertificateCredential(t)),createApnsBroadcastChannel:(e,{input:t},i)=>(iq(i),f.createChannel(t)),deleteApnsBroadcastChannel:(e,{id:t},i)=>(iq(i),f.deleteChannel(t)),savePushNotificationPreset:(e,t,i)=>(iq(i),f.savePreset(t.name,t.editor,t.id)),deletePushNotificationPreset:(e,{id:t},i)=>(iq(i),f.deletePreset(t)),savePushNotificationDraft:(e,{editor:t},i)=>(iq(i),f.saveDraft(t)),sendPushNotification:(e,{input:t},i)=>(iq(i),f.send(t)),resendPushNotification:(e,t,i)=>(iq(i),f.resend(t.id,t.requestId)),deletePushNotificationHistory:(e,{id:t},i)=>(iq(i),f.deleteHistory(t)),clearPushNotificationHistory:(e,t,i)=>(iq(i),f.clearHistory())},Subscription:{pushNotificationsChanged:{subscribe:(e,t,i)=>(iq(i),f.subscribe()),resolve:()=>!0}}},{Query:{cacheServerSettings:(e,t,i)=>(iA(i),m.getSettings()),cacheEntries:(e,t,i)=>(iA(i),m.listCacheEntries(t)),cacheEntryDetail:(e,{id:t},i)=>(iA(i),m.getCacheEntryDetail(t)),cacheStorageLocation:(e,{id:t},i)=>(iA(i),m.getStorageLocation(t)),cacheEntryMatch:(e,t,i)=>(iA(i),m.matchCacheEntry(t))},Mutation:{saveCacheServerSettings:(e,{input:t},i)=>(iA(i),m.saveSettings(t)),testCacheServerConnection:(e,t,i)=>(iA(i),m.testConnection()),clearCacheServerSettings:(e,t,i)=>(iA(i),m.clearSettings()),deleteCacheEntry:(e,{id:t},i)=>(iA(i),m.deleteCacheEntry(t)),deleteCacheEntriesByIds:(e,{ids:t},i)=>(iA(i),m.deleteCacheEntriesByIds(t)),deleteCacheEntries:(e,t,i)=>(iA(i),m.deleteCacheEntries(t)),deleteCacheStorageLocation:(e,{id:t},i)=>(iA(i),m.deleteStorageLocation(t))}},{CredentialStorageType:{DATABASE:"database",VAULT:"vault",KEYCHAIN:"keychain",UNKNOWN:"unknown"},Query:{credentialStoreStatus:(e,t,i)=>(iz(i),g.status()),credentials:(e,t,i)=>(iz(i),g.list())}},{AppNotification:{sidebarDismissedAt:e=>iZ(e.sidebarDismissedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},NotificationPreference:{updatedAt:e=>iZ(e.updatedAt)},WebPushSubscription:{expirationTime:e=>iZ(e.expirationTime),lastSeenAt:e=>e.lastSeenAt.toISOString(),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},Query:{notifications:(e,t,i)=>(iX(i),y.history(t)),sidebarNotifications:(e,{limit:t},i)=>(iX(i),y.sidebar(t??void 0)),notificationPreferences:(e,t,i)=>(iX(i),y.preferences()),webPushState:(e,t,i)=>(iX(i),y.webPushState()),webPushSubscriptions:(e,t,i)=>(iX(i),y.webPushSubscriptions())},Mutation:{saveNotificationPreference:(e,{input:t},i)=>(iX(i),y.savePreference(t)),dismissNotification:(e,{id:t},i)=>(iX(i),y.dismiss(t)),dismissAllSidebarNotifications:(e,t,i)=>(iX(i),y.dismissAll()),deleteNotifications:(e,{selection:t},i)=>(iX(i),y.deleteSelection(t)),deleteAllNotifications:(e,t,i)=>(iX(i),y.deleteAll()),prepareWebPush:async(e,t,i)=>(iX(i),await y.prepareWebPush(),y.webPushState()),registerWebPushSubscription:async(e,{input:t},i)=>(iX(i),await y.registerWebPush(t),y.webPushState()),unregisterWebPushSubscription:(e,{endpoint:t},i)=>(iX(i),y.unregisterWebPush(t)),deleteWebPushSubscription:(e,{id:t},i)=>(iX(i),y.deleteWebPushSubscription(t)),testWebPushSubscription:(e,{id:t},i)=>(iX(i),y.testWebPushSubscription(t))},Subscription:{notificationsChanged:{subscribe:(e,t,i)=>(iX(i),y.subscribe())}}},{Query:{pollingOperations:(e,t,i)=>(i0(i),v.list())},Subscription:{pollingOperationChanged:{subscribe:(e,t,i)=>(i0(i),v.subscribe())}}},{AgentRun:{catalogCost:async e=>{await S.ensureFresh();let t=e.modelUsage?.length?e.modelUsage:[e],i=await S.lookup(t.map(({model:e})=>e)),n=0,r=!1;for(let e of t){let t=S.estimate(i.get(e.model),e);null!==t&&(n+=t,r=!0)}return r?n:null}},RunModelUsage:{catalogCost:async e=>{await S.ensureFresh();let t=await S.lookup([e.model]);return S.estimate(t.get(e.model),e)}},Query:{modelCostCatalog:async(e,t,i)=>(i4(i),await S.ensureFresh(),S.getCatalog()),modelCostEntries:(e,t,i)=>(i4(i),S.listEntries(t))},Mutation:{saveModelCostSettings:(e,{catalogUrl:t},i)=>(i4(i),S.saveSettings(t??null)),refreshModelCosts:(e,t,i)=>(i4(i),S.refresh())}},{AgentRun:{archivedAt:e=>i5(e.archivedAt),nativeArchivedAt:e=>i5(e.nativeArchivedAt),startedAt:e=>i5(e.startedAt),finishedAt:e=>i5(e.finishedAt),pricingUpdatedAt:e=>i5(e.pricingUpdatedAt),playedAt:e=>i5(e.playedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},RunAttempt:{startedAt:e=>e.startedAt.toISOString(),finishedAt:e=>i5(e.finishedAt),supersededAt:e=>i5(e.supersededAt)},RunInput:{createdAt:e=>e.createdAt.toISOString()},RunAttachment:{downloadPath:e=>`/api/run-attachments/${encodeURIComponent(e.id)}`,createdAt:e=>e.createdAt.toISOString()},RunEvent:{raw:e=>i3(e.rawJson),createdAt:e=>e.createdAt.toISOString(),supersededAt:e=>i5(e.supersededAt)},RunToolCall:{input:e=>i3(e.inputJson),output:e=>i3(e.outputJson),startedAt:e=>e.startedAt.toISOString(),finishedAt:e=>i5(e.finishedAt),supersededAt:e=>i5(e.supersededAt)},RunAnswerRevision:{answers:e=>JSON.parse(e.answersJson),createdAt:e=>e.createdAt.toISOString(),supersededAt:e=>i5(e.supersededAt)},RunQuestionBatch:{createdAt:e=>e.createdAt.toISOString(),answeredAt:e=>i5(e.answeredAt),supersededAt:e=>i5(e.supersededAt),revisionPreparedAt:e=>i5(e.revisionPreparedAt)},RunCheckpoint:{createdAt:e=>e.createdAt.toISOString()},RunDraft:{archivedAt:e=>i5(e.archivedAt),createdAt:e=>e.createdAt.toISOString(),updatedAt:e=>e.updatedAt.toISOString()},RunCommand:{payload:e=>JSON.parse(e.payloadJson),createdAt:e=>e.createdAt.toISOString(),claimedAt:e=>i5(e.claimedAt),finishedAt:e=>i5(e.finishedAt)},RunProviderImportStatus:{catalog:e=>i3(e.catalogJson),lastStartedAt:e=>i5(e.lastStartedAt),lastCompletedAt:e=>i5(e.lastCompletedAt),updatedAt:e=>e.updatedAt.toISOString()},Query:{agentRuns:(e,t,i)=>(i1(i),I.list(t)),agentRun:(e,{id:t},i)=>(i1(i),I.get(t)),runEvents:(e,t,i)=>(i1(i),I.events(t)),runQuestionBatches:(e,t,i)=>(i1(i),I.questions(t)),runUsage:(e,{runId:t},i)=>(i1(i),I.usage(t)),runNativeSessionFile:(e,{runId:t},i)=>(i1(i),I.nativeSessionFile(t)),runLinkedItems:(e,{runId:t},i)=>(i1(i),I.linkedItems(t)),runDrafts:(e,t,i)=>(i1(i),I.drafts(t)),runDraft:(e,{id:t},i)=>(i1(i),I.draft(t)),runProviderCatalog:(e,t,i)=>(i1(i),I.providerCatalog(t)),runProviderImportStatus:(e,t,i)=>(i1(i),I.providerImportStatus()),pendingRunCommands:(e,t,i)=>I.pendingCommands(i2(i))},Mutation:{createAgentRun:(e,{input:t},i)=>(i1(i),I.create(t)),playPlan:(e,{planId:t},i)=>(i1(i),I.playPlan(t)),createRunFollowUp:(e,{sourceId:t,input:i},n)=>(i1(n),I.followUp(t,i)),saveRunDraft:(e,{input:t},i)=>(i1(i),I.saveDraft(t)),archiveAgentRuns:(e,{ids:t,archived:i},n)=>(i1(n),I.archive(t,i)),deleteAgentRuns:(e,{ids:t},i)=>(i1(i),I.deleteRuns(t)),archiveRunDrafts:(e,{ids:t,archived:i},n)=>(i1(n),I.archiveDrafts(t,i)),deleteRunDrafts:(e,{ids:t},i)=>(i1(i),I.deleteDrafts(t)),pauseAgentRun:(e,{id:t},i)=>(i1(i),I.lifecycle(t,"PAUSE")),continueAgentRun:(e,{id:t},i)=>(i1(i),I.lifecycle(t,"CONTINUE")),cancelAgentRun:(e,{id:t},i)=>(i1(i),I.lifecycle(t,"CANCEL")),steerAgentRun:(e,{id:t,prompt:i,attachmentIds:n},r)=>(i1(r),I.steer(t,i,n)),answerRunQuestion:(e,{batchId:t,answers:i},n)=>(i1(n),I.answerQuestion(t,i)),prepareRunAnswerRevision:(e,{batchId:t},i)=>(i1(i),I.prepareAnswerRevision(t)),reviseRunAnswer:(e,{batchId:t,answers:i,stash:n,rollback:r},a)=>(i1(a),I.reviseAnswer(t,i,!!n,!1!==r)),claimRunCommand:(e,{id:t},i)=>I.claimCommand(i2(i),t),completeRunCommand:(e,{id:t,status:i,error:n},r)=>I.completeCommand(i2(r),t,i,n),beginRunAttempt:(e,{runId:t,nativeId:i},n)=>I.beginAttempt(i2(n),t,i),updateRunAttemptNativeId:(e,t,i)=>I.updateAttemptNativeId(i2(i),t.attemptId,t.nativeId,t.providerVersion),appendRunEvents:(e,t,i)=>I.appendEvents(i2(i),t.runId,t.attemptId??null,t.events),reportRunQuestion:(e,t,i)=>I.reportQuestion(i2(i),t.runId,t.attemptId??null,t.nativeRequestId??null,t.eventSequence??null,t.questions),reportRunUsage:(e,t,i)=>I.reportUsage(i2(i),t.runId,t.attemptId??null,t.input),finishRunAttempt:(e,t,i)=>I.finishAttempt(i2(i),t.attemptId,t.input),reportRunCheckpoint:(e,t,i)=>I.reportCheckpoint(i2(i),t.runId,t.attemptId??null,t.input),reportRunAnswerRevisionPreview:(e,t,i)=>I.reportAnswerRevisionPreview(i2(i),t.batchId,t.rollbackPatch,t.pushedCommitWarning),applyRunAnswerRevision:(e,t,i)=>I.applyAnswerRevision(i2(i),t.batchId,t.revisionId,t.replacementAttemptId),importProviderRuns:(e,{provider:t,runs:i},n)=>I.importRuns(i2(n),t,i),reportRunProviderImportStatus:(e,t,i)=>I.reportProviderImportStatus(i2(i),t.provider,t.status,t.error,t.catalog)},Subscription:{agentRunsChanged:{subscribe:(e,t,i)=>(i1(i),I.subscribeRuns()),resolve:e=>I.get(e.runChanged.id)},agentRunChanged:{subscribe:(e,{runId:t},i)=>(i1(i),I.subscribeRun(t)),resolve:e=>I.get(e.runChanged.id)},runEventAdded:{subscribe:(e,{runId:t},i)=>(i1(i),I.subscribeEvents(t))},runQuestionChanged:{subscribe:(e,{runId:t},i)=>(i1(i),I.subscribeQuestions(t)),resolve:e=>I.questionBatch(e.runQuestionChanged.id)}}}]),(0,t3.buildSubgraphSchema)({typeDefs:i6,resolvers:T}));let b="true"===process.env.APOLLO_SANDBOX;this.server=new tX({schema:this.schema,introspection:b,plugins:b?[(0,t5.ApolloServerPluginLandingPageLocalDefault)({footer:!1})]:[(0,t5.ApolloServerPluginLandingPageProductionDefault)({footer:!1})]})}async createContext(e=new Headers){let t;if(await this.initializeServer(),!this.services)throw Error("GraphQL services not initialized");let i=function(e){if(e instanceof Headers)return e;let t=new Headers;for(let[i,n]of Object.entries(e))Array.isArray(n)?t.set(i,n.join(", ")):void 0!==n&&t.set(i,n);return t}(e),n=await this.services.agentControlService.authenticate((t=i.get("authorization"),!t?.startsWith("Bearer ")?null:t.slice(7).trim()||null));return{prismaService:this.services.prismaService,agentControlService:this.services.agentControlService,agentId:n,ipAddress:i.get("x-forwarded-for")?.split(",")[0]?.trim()||null,requestOrigin:(0,i8.resolvePublicOrigin)(i)?.origin??null}}async getSchema(){if(await this.initializeServer(),!this.schema)throw Error("GraphQL schema not properly initialized");return this.schema}async getServer(){if(await this.initializeServer(),!this.server)throw Error("GraphQL server not properly initialized");return this.server}};e.s(["SharedGraphQLServerService",0,i7],379993)}];
4570
4657
 
4571
4658
  //# sourceMappingURL=_0_3-lke._.js.map