@shepai/cli 1.116.3-pr375.ea5b2a2 → 1.117.0-pr367.ca5b6ac

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 (477) hide show
  1. package/apis/json-schema/AnalyzeRepoTimeouts.yaml +10 -0
  2. package/apis/json-schema/SdlcLifecycle.yaml +1 -0
  3. package/apis/json-schema/StageTimeouts.yaml +35 -0
  4. package/apis/json-schema/WorkflowConfig.yaml +6 -0
  5. package/dist/packages/core/src/application/ports/output/services/index.d.ts +2 -0
  6. package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
  7. package/dist/packages/core/src/application/ports/output/services/tunnel-service.interface.d.ts +41 -0
  8. package/dist/packages/core/src/application/ports/output/services/tunnel-service.interface.d.ts.map +1 -0
  9. package/dist/packages/core/src/application/ports/output/services/tunnel-service.interface.js +14 -0
  10. package/dist/packages/core/src/application/ports/output/services/webhook-service.interface.d.ts +65 -0
  11. package/dist/packages/core/src/application/ports/output/services/webhook-service.interface.d.ts.map +1 -0
  12. package/dist/packages/core/src/application/ports/output/services/webhook-service.interface.js +10 -0
  13. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
  14. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +17 -8
  15. package/dist/packages/core/src/application/use-cases/features/create/types.d.ts +2 -0
  16. package/dist/packages/core/src/application/use-cases/features/create/types.d.ts.map +1 -1
  17. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts +1 -3
  18. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
  19. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +2 -4
  20. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts +25 -0
  21. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -0
  22. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +116 -0
  23. package/dist/packages/core/src/domain/generated/output.d.ts +47 -0
  24. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  25. package/dist/packages/core/src/domain/generated/output.js +1 -0
  26. package/dist/packages/core/src/domain/lifecycle-gates.d.ts +3 -0
  27. package/dist/packages/core/src/domain/lifecycle-gates.d.ts.map +1 -1
  28. package/dist/packages/core/src/domain/lifecycle-gates.js +3 -0
  29. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  30. package/dist/packages/core/src/infrastructure/di/container.js +19 -0
  31. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +7 -0
  32. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  33. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +44 -0
  34. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts +22 -0
  35. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts.map +1 -0
  36. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.js +53 -0
  37. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts.map +1 -1
  38. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +15 -6
  39. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  40. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +15 -0
  41. package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.d.ts.map +1 -1
  42. package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.js +15 -0
  43. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts +11 -1
  44. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  45. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +42 -3
  46. package/dist/packages/core/src/infrastructure/services/tunnel/cloudflare-tunnel.service.d.ts +55 -0
  47. package/dist/packages/core/src/infrastructure/services/tunnel/cloudflare-tunnel.service.d.ts.map +1 -0
  48. package/dist/packages/core/src/infrastructure/services/tunnel/cloudflare-tunnel.service.js +203 -0
  49. package/dist/packages/core/src/infrastructure/services/webhook/github-webhook.service.d.ts +75 -0
  50. package/dist/packages/core/src/infrastructure/services/webhook/github-webhook.service.d.ts.map +1 -0
  51. package/dist/packages/core/src/infrastructure/services/webhook/github-webhook.service.js +372 -0
  52. package/dist/packages/core/src/infrastructure/services/webhook/webhook-manager.service.d.ts +82 -0
  53. package/dist/packages/core/src/infrastructure/services/webhook/webhook-manager.service.d.ts.map +1 -0
  54. package/dist/packages/core/src/infrastructure/services/webhook/webhook-manager.service.js +206 -0
  55. package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
  56. package/dist/src/presentation/cli/commands/feat/index.js +2 -0
  57. package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
  58. package/dist/src/presentation/cli/commands/feat/ls.command.js +3 -0
  59. package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
  60. package/dist/src/presentation/cli/commands/feat/new.command.js +9 -1
  61. package/dist/src/presentation/cli/commands/feat/start.command.d.ts +12 -0
  62. package/dist/src/presentation/cli/commands/feat/start.command.d.ts.map +1 -0
  63. package/dist/src/presentation/cli/commands/feat/start.command.js +43 -0
  64. package/dist/src/presentation/cli/commands/ui.command.d.ts.map +1 -1
  65. package/dist/src/presentation/cli/commands/ui.command.js +15 -0
  66. package/dist/src/presentation/web/app/actions/approve-feature.d.ts.map +1 -1
  67. package/dist/src/presentation/web/app/actions/approve-feature.js +0 -9
  68. package/dist/src/presentation/web/app/actions/create-feature.d.ts +2 -0
  69. package/dist/src/presentation/web/app/actions/create-feature.d.ts.map +1 -1
  70. package/dist/src/presentation/web/app/actions/create-feature.js +3 -1
  71. package/dist/src/presentation/web/app/actions/load-webhook-status.d.ts +3 -0
  72. package/dist/src/presentation/web/app/actions/load-webhook-status.d.ts.map +1 -0
  73. package/dist/src/presentation/web/app/actions/load-webhook-status.js +19 -0
  74. package/dist/src/presentation/web/app/actions/reject-feature.d.ts.map +1 -1
  75. package/dist/src/presentation/web/app/actions/reject-feature.js +0 -9
  76. package/dist/src/presentation/web/app/actions/start-feature.d.ts +5 -0
  77. package/dist/src/presentation/web/app/actions/start-feature.d.ts.map +1 -0
  78. package/dist/src/presentation/web/app/actions/start-feature.js +16 -0
  79. package/dist/src/presentation/web/app/api/agent-events/route.d.ts.map +1 -1
  80. package/dist/src/presentation/web/app/api/agent-events/route.js +1 -0
  81. package/dist/src/presentation/web/app/api/webhooks/deliveries/route.d.ts +9 -0
  82. package/dist/src/presentation/web/app/api/webhooks/deliveries/route.d.ts.map +1 -0
  83. package/dist/src/presentation/web/app/api/webhooks/deliveries/route.js +27 -0
  84. package/dist/src/presentation/web/app/api/webhooks/github/route.d.ts +17 -0
  85. package/dist/src/presentation/web/app/api/webhooks/github/route.d.ts.map +1 -0
  86. package/dist/src/presentation/web/app/api/webhooks/github/route.js +70 -0
  87. package/dist/src/presentation/web/app/api/webhooks/status/route.d.ts +9 -0
  88. package/dist/src/presentation/web/app/api/webhooks/status/route.d.ts.map +1 -0
  89. package/dist/src/presentation/web/app/api/webhooks/status/route.js +26 -0
  90. package/dist/src/presentation/web/app/webhooks/page.d.ts +4 -0
  91. package/dist/src/presentation/web/app/webhooks/page.d.ts.map +1 -0
  92. package/dist/src/presentation/web/app/webhooks/page.js +9 -0
  93. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +1 -1
  94. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.js +1 -1
  95. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
  96. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +20 -1
  97. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +2 -0
  98. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  99. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +6 -2
  100. package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map +1 -1
  101. package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.js +6 -0
  102. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +3 -2
  103. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  104. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.js +13 -1
  105. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  106. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +12 -3
  107. package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +2 -0
  108. package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
  109. package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +36 -2
  110. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  111. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -1
  112. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -0
  113. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
  114. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +23 -0
  115. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  116. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +75 -2
  117. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts +1 -0
  118. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  119. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +23 -0
  120. package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts +11 -0
  121. package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts.map +1 -0
  122. package/dist/src/presentation/web/components/features/settings/timeout-slider.js +63 -0
  123. package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts +10 -0
  124. package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts.map +1 -0
  125. package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.js +24 -0
  126. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  127. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +97 -2
  128. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
  129. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +22 -0
  130. package/dist/src/presentation/web/components/features/webhooks/types.d.ts +32 -0
  131. package/dist/src/presentation/web/components/features/webhooks/types.d.ts.map +1 -0
  132. package/dist/src/presentation/web/components/features/webhooks/types.js +1 -0
  133. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.d.ts +6 -0
  134. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.d.ts.map +1 -0
  135. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.js +38 -0
  136. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.d.ts +9 -0
  137. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.d.ts.map +1 -0
  138. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.js +69 -0
  139. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.d.ts +7 -0
  140. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.d.ts.map +1 -0
  141. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.js +11 -0
  142. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.stories.d.ts +9 -0
  143. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.stories.d.ts.map +1 -0
  144. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.stories.js +31 -0
  145. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.d.ts +6 -0
  146. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.d.ts.map +1 -0
  147. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.js +21 -0
  148. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.stories.d.ts +9 -0
  149. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.stories.d.ts.map +1 -0
  150. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.stories.js +56 -0
  151. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.d.ts +6 -0
  152. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.d.ts.map +1 -0
  153. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.js +39 -0
  154. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.stories.d.ts +8 -0
  155. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.stories.d.ts.map +1 -0
  156. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.stories.js +59 -0
  157. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  158. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  159. package/dist/src/presentation/web/components/ui/slider.d.ts +5 -0
  160. package/dist/src/presentation/web/components/ui/slider.d.ts.map +1 -0
  161. package/dist/src/presentation/web/components/ui/slider.js +10 -0
  162. package/dist/src/presentation/web/components/ui/slider.stories.d.ts +7 -0
  163. package/dist/src/presentation/web/components/ui/slider.stories.d.ts.map +1 -0
  164. package/dist/src/presentation/web/components/ui/slider.stories.js +15 -0
  165. package/dist/src/presentation/web/dev-server.js +20 -0
  166. package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
  167. package/dist/src/presentation/web/hooks/sidebar-features-context.js +1 -0
  168. package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
  169. package/dist/src/presentation/web/hooks/use-graph-state.js +1 -0
  170. package/dist/src/presentation/web/lib/derive-graph.d.ts +2 -0
  171. package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
  172. package/dist/src/presentation/web/lib/derive-graph.js +5 -0
  173. package/dist/tsconfig.build.tsbuildinfo +1 -1
  174. package/package.json +3 -1
  175. package/web/.next/BUILD_ID +1 -1
  176. package/web/.next/app-path-routes-manifest.json +5 -1
  177. package/web/.next/build-manifest.json +6 -6
  178. package/web/.next/fallback-build-manifest.json +2 -2
  179. package/web/.next/prerender-manifest.json +3 -3
  180. package/web/.next/required-server-files.js +2 -2
  181. package/web/.next/required-server-files.json +2 -2
  182. package/web/.next/routes-manifest.json +24 -0
  183. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +4 -4
  184. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +55 -40
  185. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  186. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  187. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  188. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  189. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +67 -52
  190. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  191. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  192. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  193. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +4 -4
  194. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +67 -52
  195. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  196. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  197. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  198. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +4 -4
  199. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +51 -36
  200. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  201. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  202. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  203. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +4 -4
  204. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +55 -40
  205. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  206. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  207. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  208. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  209. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +67 -52
  210. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  211. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  212. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  213. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +4 -4
  214. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +67 -52
  215. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  216. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  217. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  218. package/web/.next/server/app/(dashboard)/page/build-manifest.json +4 -4
  219. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +51 -36
  220. package/web/.next/server/app/(dashboard)/page.js +1 -1
  221. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  222. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  223. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +4 -4
  224. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +51 -36
  225. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  226. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  227. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  228. package/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
  229. package/web/.next/server/app/_global-error.html +2 -2
  230. package/web/.next/server/app/_global-error.rsc +1 -1
  231. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  232. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  233. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  234. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  235. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  236. package/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
  237. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  238. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  239. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  240. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  241. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  242. package/web/.next/server/app/api/webhooks/deliveries/route/app-paths-manifest.json +3 -0
  243. package/web/.next/server/app/api/webhooks/deliveries/route/build-manifest.json +11 -0
  244. package/web/.next/server/app/api/webhooks/deliveries/route/server-reference-manifest.json +4 -0
  245. package/web/.next/server/app/api/webhooks/deliveries/route.js +6 -0
  246. package/web/.next/server/app/api/webhooks/deliveries/route.js.map +5 -0
  247. package/web/.next/server/app/api/webhooks/deliveries/route.js.nft.json +1 -0
  248. package/web/.next/server/app/api/webhooks/deliveries/route_client-reference-manifest.js +2 -0
  249. package/web/.next/server/app/api/webhooks/github/route/app-paths-manifest.json +3 -0
  250. package/web/.next/server/app/api/webhooks/github/route/build-manifest.json +11 -0
  251. package/web/.next/server/app/api/webhooks/github/route/server-reference-manifest.json +4 -0
  252. package/web/.next/server/app/api/webhooks/github/route.js +6 -0
  253. package/web/.next/server/app/api/webhooks/github/route.js.map +5 -0
  254. package/web/.next/server/app/api/webhooks/github/route.js.nft.json +1 -0
  255. package/web/.next/server/app/api/webhooks/github/route_client-reference-manifest.js +2 -0
  256. package/web/.next/server/app/api/webhooks/status/route/app-paths-manifest.json +3 -0
  257. package/web/.next/server/app/api/webhooks/status/route/build-manifest.json +11 -0
  258. package/web/.next/server/app/api/webhooks/status/route/server-reference-manifest.json +4 -0
  259. package/web/.next/server/app/api/webhooks/status/route.js +6 -0
  260. package/web/.next/server/app/api/webhooks/status/route.js.map +5 -0
  261. package/web/.next/server/app/api/webhooks/status/route.js.nft.json +1 -0
  262. package/web/.next/server/app/api/webhooks/status/route_client-reference-manifest.js +2 -0
  263. package/web/.next/server/app/settings/page/build-manifest.json +4 -4
  264. package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
  265. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  266. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  267. package/web/.next/server/app/skills/page/build-manifest.json +4 -4
  268. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  269. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  270. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  271. package/web/.next/server/app/tools/page/build-manifest.json +4 -4
  272. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  273. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  274. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  275. package/web/.next/server/app/version/page/build-manifest.json +4 -4
  276. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  277. package/web/.next/server/app/version/page.js.nft.json +1 -1
  278. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  279. package/web/.next/server/app/webhooks/page/app-paths-manifest.json +3 -0
  280. package/web/.next/server/app/webhooks/page/build-manifest.json +18 -0
  281. package/web/.next/server/app/webhooks/page/next-font-manifest.json +6 -0
  282. package/web/.next/server/app/webhooks/page/react-loadable-manifest.json +1 -0
  283. package/web/.next/server/app/webhooks/page/server-reference-manifest.json +35 -0
  284. package/web/.next/server/app/webhooks/page.js +16 -0
  285. package/web/.next/server/app/webhooks/page.js.map +5 -0
  286. package/web/.next/server/app/webhooks/page.js.nft.json +1 -0
  287. package/web/.next/server/app/webhooks/page_client-reference-manifest.js +2 -0
  288. package/web/.next/server/app-paths-manifest.json +5 -1
  289. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  290. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  291. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js +2 -2
  292. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js.map +1 -1
  293. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_deliveries_route_actions_d9e34c8d.js +3 -0
  294. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_deliveries_route_actions_d9e34c8d.js.map +1 -0
  295. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_github_route_actions_1b0d0c38.js +3 -0
  296. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_github_route_actions_1b0d0c38.js.map +1 -0
  297. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_status_route_actions_1a0d86a1.js +3 -0
  298. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_status_route_actions_1a0d86a1.js.map +1 -0
  299. package/web/.next/server/chunks/[root-of-the-server]__15e5d45c._.js +3 -0
  300. package/web/.next/server/chunks/[root-of-the-server]__15e5d45c._.js.map +1 -0
  301. package/web/.next/server/chunks/[root-of-the-server]__23be381e._.js +3 -0
  302. package/web/.next/server/chunks/[root-of-the-server]__23be381e._.js.map +1 -0
  303. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +1 -1
  304. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js.map +1 -1
  305. package/web/.next/server/chunks/[root-of-the-server]__9fc760c0._.js +3 -0
  306. package/web/.next/server/chunks/[root-of-the-server]__9fc760c0._.js.map +1 -0
  307. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  308. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  309. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  310. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  311. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  312. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_activity_22f9667f.js +3 -0
  313. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_activity_22f9667f.js.map +1 -0
  314. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +3 -0
  315. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -0
  316. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +3 -0
  317. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -0
  318. package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
  319. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
  320. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
  321. package/web/.next/server/chunks/ssr/[root-of-the-server]__172d9576._.js +3 -0
  322. package/web/.next/server/chunks/ssr/[root-of-the-server]__172d9576._.js.map +1 -0
  323. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
  324. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +1 -1
  325. package/web/.next/server/chunks/ssr/[root-of-the-server]__2a5592d5._.js +3 -0
  326. package/web/.next/server/chunks/ssr/[root-of-the-server]__2a5592d5._.js.map +1 -0
  327. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d847b7b._.js +3 -0
  328. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d847b7b._.js.map +1 -0
  329. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
  330. package/web/.next/server/chunks/ssr/[root-of-the-server]__87a7ae30._.js +3 -0
  331. package/web/.next/server/chunks/ssr/[root-of-the-server]__87a7ae30._.js.map +1 -0
  332. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
  333. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +1 -1
  334. package/web/.next/server/chunks/ssr/[root-of-the-server]__920dccd5._.js +4 -0
  335. package/web/.next/server/chunks/ssr/[root-of-the-server]__920dccd5._.js.map +1 -0
  336. package/web/.next/server/chunks/ssr/[root-of-the-server]__a42f5a88._.js +3 -0
  337. package/web/.next/server/chunks/ssr/[root-of-the-server]__a42f5a88._.js.map +1 -0
  338. package/web/.next/server/chunks/ssr/[root-of-the-server]__a93289b0._.js +3 -0
  339. package/web/.next/server/chunks/ssr/[root-of-the-server]__a93289b0._.js.map +1 -0
  340. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
  341. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
  342. package/web/.next/server/chunks/ssr/[root-of-the-server]__ac0304e7._.js +3 -0
  343. package/web/.next/server/chunks/ssr/[root-of-the-server]__ac0304e7._.js.map +1 -0
  344. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
  345. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
  346. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  347. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  348. package/web/.next/server/chunks/ssr/_250a63ae._.js +1 -1
  349. package/web/.next/server/chunks/ssr/_250a63ae._.js.map +1 -1
  350. package/web/.next/server/chunks/ssr/_26b2c311._.js +3 -0
  351. package/web/.next/server/chunks/ssr/_26b2c311._.js.map +1 -0
  352. package/web/.next/server/chunks/ssr/{_f2f36bf9._.js → _719ef347._.js} +2 -2
  353. package/web/.next/server/chunks/ssr/_719ef347._.js.map +1 -0
  354. package/web/.next/server/chunks/ssr/_809c53f6._.js +9 -0
  355. package/web/.next/server/chunks/ssr/_809c53f6._.js.map +1 -0
  356. package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
  357. package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
  358. package/web/.next/server/chunks/ssr/_98047ffd._.js +3 -0
  359. package/web/.next/server/chunks/ssr/_98047ffd._.js.map +1 -0
  360. package/web/.next/server/chunks/ssr/_9eea4c51._.js +3 -0
  361. package/web/.next/server/chunks/ssr/_9eea4c51._.js.map +1 -0
  362. package/web/.next/server/chunks/ssr/_a4899a76._.js +3 -0
  363. package/web/.next/server/chunks/ssr/_a4899a76._.js.map +1 -0
  364. package/web/.next/server/chunks/ssr/_b715515b._.js +3 -0
  365. package/web/.next/server/chunks/ssr/{_86617fb9._.js.map → _b715515b._.js.map} +1 -1
  366. package/web/.next/server/chunks/ssr/_b7eb93fc._.js +4 -0
  367. package/web/.next/server/chunks/ssr/_b7eb93fc._.js.map +1 -0
  368. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  369. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  370. package/web/.next/server/chunks/ssr/_e0a01382._.js +3 -0
  371. package/web/.next/server/chunks/ssr/_e0a01382._.js.map +1 -0
  372. package/web/.next/server/chunks/ssr/_f8b36e2c._.js +3 -0
  373. package/web/.next/server/chunks/ssr/_f8b36e2c._.js.map +1 -0
  374. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  375. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  376. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_webhooks_webhooks-page-client_tsx_b2662ea3._.js +3 -0
  377. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_webhooks_webhooks-page-client_tsx_b2662ea3._.js.map +1 -0
  378. package/web/.next/server/chunks/ssr/{_1bb131c4._.js → node_modules__pnpm_747b43ac._.js} +2 -2
  379. package/web/.next/server/chunks/ssr/node_modules__pnpm_747b43ac._.js.map +1 -0
  380. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js +5 -0
  381. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -0
  382. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +3 -0
  383. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -0
  384. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  385. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  386. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  387. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  388. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  389. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js.map +1 -1
  390. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  391. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js.map +1 -1
  392. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  393. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  394. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  395. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  396. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js +5 -0
  397. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js.map +1 -0
  398. package/web/.next/server/middleware-build-manifest.js +4 -4
  399. package/web/.next/server/pages/500.html +2 -2
  400. package/web/.next/server/server-reference-manifest.js +1 -1
  401. package/web/.next/server/server-reference-manifest.json +323 -230
  402. package/web/.next/static/chunks/06b948216df083c1.js +1 -0
  403. package/web/.next/static/chunks/{763f6ecc4593dc10.js → 2ac228556e3d1db4.js} +1 -1
  404. package/web/.next/static/chunks/31f35710932542ef.js +1 -0
  405. package/web/.next/static/chunks/40b6bcf1a2de4a0f.js +1 -0
  406. package/web/.next/static/chunks/4714eb891fa4fd81.js +1 -0
  407. package/web/.next/static/chunks/57094e1cbd326d6c.css +1 -0
  408. package/web/.next/static/chunks/{5225e7b93df59de9.js → 5856c588eb7f21fd.js} +1 -1
  409. package/web/.next/static/chunks/5f6161ceb4263319.js +1 -0
  410. package/web/.next/static/chunks/81f470d21748eafd.js +2 -0
  411. package/web/.next/static/chunks/829305a6e02eff1f.js +1 -0
  412. package/web/.next/static/chunks/97aaeeee72be634b.js +1 -0
  413. package/web/.next/static/chunks/{672e3da3ad26005b.js → 98e3a7cf58fc912a.js} +1 -1
  414. package/web/.next/static/chunks/9a7361e2365b2d8e.js +1 -0
  415. package/web/.next/static/chunks/9af45e885bd4ccef.js +1 -0
  416. package/web/.next/static/chunks/{f32b896b3ceae18d.js → ab8b8f80cbc8366f.js} +2 -2
  417. package/web/.next/static/chunks/c3c3f2c9eb309920.js +1 -0
  418. package/web/.next/static/chunks/c7e793951b20a67f.js +1 -0
  419. package/web/.next/static/chunks/cb2824954c3975b0.js +1 -0
  420. package/web/.next/static/chunks/{053b644519f721f1.js → d3db43fcdbbd9b68.js} +1 -1
  421. package/web/.next/static/chunks/e9621b096a69e4e8.js +11 -0
  422. package/web/.next/static/chunks/fb99c57e6d28a274.js +1 -0
  423. package/web/.next/static/chunks/{turbopack-426d9bc2450816ba.js → turbopack-b1685b5f87ad1d60.js} +1 -1
  424. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +0 -3
  425. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +0 -1
  426. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +0 -3
  427. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +0 -1
  428. package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js +0 -3
  429. package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js.map +0 -1
  430. package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js +0 -3
  431. package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js.map +0 -1
  432. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +0 -3
  433. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +0 -1
  434. package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js +0 -3
  435. package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js.map +0 -1
  436. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js +0 -3
  437. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js.map +0 -1
  438. package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js +0 -3
  439. package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js.map +0 -1
  440. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +0 -1
  441. package/web/.next/server/chunks/ssr/_273d4632._.js +0 -3
  442. package/web/.next/server/chunks/ssr/_273d4632._.js.map +0 -1
  443. package/web/.next/server/chunks/ssr/_6d26a08f._.js +0 -3
  444. package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +0 -1
  445. package/web/.next/server/chunks/ssr/_86617fb9._.js +0 -3
  446. package/web/.next/server/chunks/ssr/_a68d7e1c._.js +0 -9
  447. package/web/.next/server/chunks/ssr/_a68d7e1c._.js.map +0 -1
  448. package/web/.next/server/chunks/ssr/_b5d0b00e._.js +0 -3
  449. package/web/.next/server/chunks/ssr/_b5d0b00e._.js.map +0 -1
  450. package/web/.next/server/chunks/ssr/_b5fc318a._.js +0 -3
  451. package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +0 -1
  452. package/web/.next/server/chunks/ssr/_f2f36bf9._.js.map +0 -1
  453. package/web/.next/server/chunks/ssr/_f5316e67._.js +0 -3
  454. package/web/.next/server/chunks/ssr/_f5316e67._.js.map +0 -1
  455. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +0 -3
  456. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +0 -1
  457. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +0 -5
  458. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +0 -1
  459. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +0 -5
  460. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +0 -1
  461. package/web/.next/static/chunks/121a2e602cb9df92.js +0 -11
  462. package/web/.next/static/chunks/303a1217006489b9.js +0 -1
  463. package/web/.next/static/chunks/3a806cf059241bc9.js +0 -1
  464. package/web/.next/static/chunks/57b45edf86522369.css +0 -1
  465. package/web/.next/static/chunks/619af41a8d3232e5.js +0 -1
  466. package/web/.next/static/chunks/6770c61692fe5605.js +0 -1
  467. package/web/.next/static/chunks/84a181ff3270fd9f.js +0 -1
  468. package/web/.next/static/chunks/8c3ff8561102a386.js +0 -1
  469. package/web/.next/static/chunks/a1b3371ef3ffd58b.js +0 -2
  470. package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +0 -1
  471. package/web/.next/static/chunks/bec349a77c5c5796.js +0 -1
  472. package/web/.next/static/chunks/e85bcc69a4ceb89e.js +0 -1
  473. package/web/.next/static/chunks/ed3a602003bcb31b.js +0 -1
  474. package/web/.next/static/chunks/fcde0cbb2976b933.js +0 -1
  475. /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → T6bpRqj4p37ell4NNYIUl}/_buildManifest.js +0 -0
  476. /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → T6bpRqj4p37ell4NNYIUl}/_clientMiddlewareManifest.json +0 -0
  477. /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → T6bpRqj4p37ell4NNYIUl}/_ssgManifest.js +0 -0
@@ -0,0 +1,11 @@
1
+ export interface TimeoutSliderProps {
2
+ id: string;
3
+ testId: string;
4
+ /** Current value in seconds (as a string for form compatibility) */
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ onBlur: () => void;
8
+ defaultSeconds?: number;
9
+ }
10
+ export declare function TimeoutSlider({ id, testId, value, onChange, onBlur, defaultSeconds, }: TimeoutSliderProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=timeout-slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeout-slider.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/timeout-slider.tsx"],"names":[],"mappings":"AAwCA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAWD,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,MAAM,EACN,KAAK,EACL,QAAQ,EACR,MAAM,EACN,cAAqB,GACtB,EAAE,kBAAkB,2CAyCpB"}
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState, useCallback } from 'react';
4
+ import { Slider } from '../../ui/slider.js';
5
+ /** Fixed duration presets in seconds — slider snaps to these values */
6
+ const PRESETS = [
7
+ 60, // 1m
8
+ 120, // 2m
9
+ 300, // 5m
10
+ 600, // 10m
11
+ 900, // 15m
12
+ 1800, // 30m
13
+ 2700, // 45m
14
+ 3600, // 1h
15
+ 7200, // 2h
16
+ 10800, // 3h
17
+ 14400, // 4h
18
+ 21600, // 6h
19
+ 28800, // 8h
20
+ 43200, // 12h
21
+ 86400, // 24h
22
+ ];
23
+ const SLIDER_MAX = PRESETS.length - 1;
24
+ /** Find the closest preset index for a given seconds value */
25
+ function secondsToIndex(seconds) {
26
+ let closest = 0;
27
+ let minDiff = Math.abs(seconds - PRESETS[0]);
28
+ for (let i = 1; i < PRESETS.length; i++) {
29
+ const diff = Math.abs(seconds - PRESETS[i]);
30
+ if (diff < minDiff) {
31
+ minDiff = diff;
32
+ closest = i;
33
+ }
34
+ }
35
+ return closest;
36
+ }
37
+ function formatDuration(totalSeconds) {
38
+ const hours = Math.floor(totalSeconds / 3600);
39
+ const minutes = Math.round((totalSeconds % 3600) / 60);
40
+ if (hours === 0)
41
+ return `${minutes}m`;
42
+ if (minutes === 0)
43
+ return `${hours}h`;
44
+ return `${hours}h ${minutes}m`;
45
+ }
46
+ export function TimeoutSlider({ id, testId, value, onChange, onBlur, defaultSeconds = 1800, }) {
47
+ const numValue = value === '' ? defaultSeconds : parseInt(value, 10);
48
+ const seconds = numValue || defaultSeconds;
49
+ // Local index state prevents snap-back during drag — updates immediately
50
+ // without waiting for the parent to re-render with the new value.
51
+ const [localIndex, setLocalIndex] = useState(() => secondsToIndex(seconds));
52
+ // Sync from props only when the resolved index actually differs
53
+ // (e.g. external reset or server push). Avoids overwriting during drag.
54
+ const propsIndex = secondsToIndex(seconds);
55
+ if (propsIndex !== localIndex && PRESETS[localIndex] !== seconds) {
56
+ setLocalIndex(propsIndex);
57
+ }
58
+ const handleChange = useCallback(([i]) => {
59
+ setLocalIndex(i);
60
+ onChange(String(PRESETS[i]));
61
+ }, [onChange]);
62
+ return (_jsxs("div", { className: "flex w-55 items-center gap-2", children: [_jsx(Slider, { id: id, "data-testid": testId, min: 0, max: SLIDER_MAX, step: 1, value: [localIndex], onValueChange: handleChange, onValueCommit: () => onBlur(), className: "min-w-0 flex-1" }), _jsx("span", { className: "text-muted-foreground shrink-0 text-right text-xs tabular-nums", children: formatDuration(PRESETS[localIndex]) })] }));
63
+ }
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { TimeoutSlider } from './timeout-slider.js';
3
+ declare const meta: Meta<typeof TimeoutSlider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TimeoutSlider>;
6
+ export declare const Default: Story;
7
+ export declare const ShortTimeout: Story;
8
+ export declare const LongTimeout: Story;
9
+ export declare const AllStages: Story;
10
+ //# sourceMappingURL=timeout-slider.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeout-slider.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/timeout-slider.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAGpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AA6B5C,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { TimeoutSlider } from './timeout-slider.js';
4
+ const meta = {
5
+ title: 'Features/Settings/TimeoutSlider',
6
+ component: TimeoutSlider,
7
+ };
8
+ export default meta;
9
+ function TimeoutSliderDemo({ label = 'Analyze', defaultSeconds = 1800, }) {
10
+ const [value, setValue] = useState(String(defaultSeconds));
11
+ return (_jsx("div", { style: { maxWidth: 500 }, children: _jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 16 }, children: [_jsx("span", { style: { fontSize: 14 }, children: label }), _jsx(TimeoutSlider, { id: "demo-slider", testId: "demo-slider-input", value: value, onChange: setValue, onBlur: () => undefined, defaultSeconds: defaultSeconds })] }) }));
12
+ }
13
+ export const Default = {
14
+ render: () => _jsx(TimeoutSliderDemo, {}),
15
+ };
16
+ export const ShortTimeout = {
17
+ render: () => _jsx(TimeoutSliderDemo, { label: "Analyze Repo", defaultSeconds: 600 }),
18
+ };
19
+ export const LongTimeout = {
20
+ render: () => _jsx(TimeoutSliderDemo, { label: "Implement", defaultSeconds: 5400 }),
21
+ };
22
+ export const AllStages = {
23
+ render: () => (_jsxs("div", { style: { maxWidth: 500, display: 'flex', flexDirection: 'column', gap: 16 }, children: [_jsx(TimeoutSliderDemo, { label: "Analyze", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Requirements", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Research", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Plan", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Implement", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Merge", defaultSeconds: 1800 })] })),
24
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CAgQjF"}
1
+ {"version":3,"file":"workflow-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CA0ajF"}
@@ -9,6 +9,7 @@ import { Input } from '../../ui/input.js';
9
9
  import { Switch } from '../../ui/switch.js';
10
10
  import { Separator } from '../../ui/separator.js';
11
11
  import { updateSettingsAction } from '../../../app/actions/update-settings.js';
12
+ import { TimeoutSlider } from '../../features/settings/timeout-slider.js';
12
13
  export function WorkflowSettingsSection({ workflow }) {
13
14
  const [openPr, setOpenPr] = useState(workflow.openPrOnImplementationComplete);
14
15
  const [pushOnComplete, setPushOnComplete] = useState(workflow.approvalGateDefaults.pushOnImplementationComplete);
@@ -18,6 +19,18 @@ export function WorkflowSettingsSection({ workflow }) {
18
19
  const [ciMaxFix, setCiMaxFix] = useState(workflow.ciMaxFixAttempts != null ? String(workflow.ciMaxFixAttempts) : '');
19
20
  const [ciTimeout, setCiTimeout] = useState(workflow.ciWatchTimeoutMs != null ? String(Math.round(workflow.ciWatchTimeoutMs / 1000)) : '');
20
21
  const [ciLogMax, setCiLogMax] = useState(workflow.ciLogMaxChars != null ? String(workflow.ciLogMaxChars) : '');
22
+ // Per-stage timeout states (seconds for display)
23
+ // Defaults: feature agent stages = 1_800_000 ms (1800s), analyze-repo = 600_000 ms (600s)
24
+ const st = workflow.stageTimeouts;
25
+ const [analyzeTimeout, setAnalyzeTimeout] = useState(String(Math.round((st?.analyzeMs ?? 1_800_000) / 1000)));
26
+ const [requirementsTimeout, setRequirementsTimeout] = useState(String(Math.round((st?.requirementsMs ?? 1_800_000) / 1000)));
27
+ const [researchTimeout, setResearchTimeout] = useState(String(Math.round((st?.researchMs ?? 1_800_000) / 1000)));
28
+ const [planTimeout, setPlanTimeout] = useState(String(Math.round((st?.planMs ?? 1_800_000) / 1000)));
29
+ const [implementTimeout, setImplementTimeout] = useState(String(Math.round((st?.implementMs ?? 1_800_000) / 1000)));
30
+ const [mergeTimeout, setMergeTimeout] = useState(String(Math.round((st?.mergeMs ?? 1_800_000) / 1000)));
31
+ // Analyze-repo agent timeout state
32
+ const art = workflow.analyzeRepoTimeouts;
33
+ const [analyzeRepoTimeout, setAnalyzeRepoTimeout] = useState(String(Math.round((art?.analyzeMs ?? 600_000) / 1000)));
21
34
  const [isPending, startTransition] = useTransition();
22
35
  const [showSaved, setShowSaved] = useState(false);
23
36
  const prevPendingRef = useRef(false);
@@ -35,6 +48,10 @@ export function WorkflowSettingsSection({ workflow }) {
35
48
  const n = parseInt(value, 10);
36
49
  return Number.isNaN(n) || n <= 0 ? undefined : n;
37
50
  }
51
+ function secondsToMs(val) {
52
+ const n = parseOptionalInt(val);
53
+ return n != null ? n * 1000 : undefined;
54
+ }
38
55
  function buildPayload(overrides = {}) {
39
56
  const timeoutSeconds = parseOptionalInt(overrides.ciTimeout ?? ciTimeout);
40
57
  return {
@@ -49,6 +66,17 @@ export function WorkflowSettingsSection({ workflow }) {
49
66
  ciMaxFixAttempts: parseOptionalInt(overrides.ciMaxFix ?? ciMaxFix),
50
67
  ciWatchTimeoutMs: timeoutSeconds != null ? timeoutSeconds * 1000 : undefined,
51
68
  ciLogMaxChars: parseOptionalInt(overrides.ciLogMax ?? ciLogMax),
69
+ stageTimeouts: {
70
+ analyzeMs: secondsToMs(overrides.analyzeTimeout ?? analyzeTimeout),
71
+ requirementsMs: secondsToMs(overrides.requirementsTimeout ?? requirementsTimeout),
72
+ researchMs: secondsToMs(overrides.researchTimeout ?? researchTimeout),
73
+ planMs: secondsToMs(overrides.planTimeout ?? planTimeout),
74
+ implementMs: secondsToMs(overrides.implementTimeout ?? implementTimeout),
75
+ mergeMs: secondsToMs(overrides.mergeTimeout ?? mergeTimeout),
76
+ },
77
+ analyzeRepoTimeouts: {
78
+ analyzeMs: secondsToMs(overrides.analyzeRepoTimeout ?? analyzeRepoTimeout),
79
+ },
52
80
  },
53
81
  };
54
82
  }
@@ -64,7 +92,7 @@ export function WorkflowSettingsSection({ workflow }) {
64
92
  setter(value);
65
93
  save({ [key]: value });
66
94
  }
67
- function handleCiFieldBlur(key, currentValue, originalValue) {
95
+ function handleFieldBlur(key, currentValue, originalValue) {
68
96
  if (currentValue !== originalValue) {
69
97
  save({ [key]: currentValue });
70
98
  }
@@ -72,5 +100,72 @@ export function WorkflowSettingsSection({ workflow }) {
72
100
  const originalCiMaxFix = workflow.ciMaxFixAttempts != null ? String(workflow.ciMaxFixAttempts) : '';
73
101
  const originalCiTimeout = workflow.ciWatchTimeoutMs != null ? String(Math.round(workflow.ciWatchTimeoutMs / 1000)) : '';
74
102
  const originalCiLogMax = workflow.ciLogMaxChars != null ? String(workflow.ciLogMaxChars) : '';
75
- return (_jsxs(Card, { id: "workflow", className: "scroll-mt-6", "data-testid": "workflow-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Workflow" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure PR behavior, approval gates, and CI settings" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "open-pr", children: "Open PR on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Automatically create a pull request when the agent finishes" })] }), _jsx(Switch, { id: "open-pr", "data-testid": "switch-open-pr", checked: openPr, onCheckedChange: (v) => handleSwitchChange('openPr', setOpenPr, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "push-on-complete", children: "Push on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Push the branch to remote when implementation is done" })] }), _jsx(Switch, { id: "push-on-complete", "data-testid": "switch-push-on-complete", checked: pushOnComplete, onCheckedChange: (v) => handleSwitchChange('pushOnComplete', setPushOnComplete, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Approval Gates" }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-prd", children: "PRD auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for product requirement documents" })] }), _jsx(Switch, { id: "allow-prd", "data-testid": "switch-allow-prd", checked: allowPrd, onCheckedChange: (v) => handleSwitchChange('allowPrd', setAllowPrd, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-plan", children: "Plan auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for implementation plans" })] }), _jsx(Switch, { id: "allow-plan", "data-testid": "switch-allow-plan", checked: allowPlan, onCheckedChange: (v) => handleSwitchChange('allowPlan', setAllowPlan, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-merge", children: "Merge auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for PR merges" })] }), _jsx(Switch, { id: "allow-merge", "data-testid": "switch-allow-merge", checked: allowMerge, onCheckedChange: (v) => handleSwitchChange('allowMerge', setAllowMerge, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "CI Settings" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-max-fix", children: "Max fix attempts" }), _jsx(Input, { id: "ci-max-fix", "data-testid": "ci-max-fix-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", min: 1, max: 10, placeholder: "e.g., 3", value: ciMaxFix, onChange: (e) => setCiMaxFix(e.target.value), onBlur: () => handleCiFieldBlur('ciMaxFix', ciMaxFix, originalCiMaxFix) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How many times the agent retries fixing CI failures" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-timeout", children: "Watch timeout (seconds)" }), _jsx(Input, { id: "ci-timeout", "data-testid": "ci-timeout-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 300", value: ciTimeout, onChange: (e) => setCiTimeout(e.target.value), onBlur: () => handleCiFieldBlur('ciTimeout', ciTimeout, originalCiTimeout) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How long to wait for CI to complete before timing out" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-log-max", children: "Max log characters" }), _jsx(Input, { id: "ci-log-max", "data-testid": "ci-log-max-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 50000", value: ciLogMax, onChange: (e) => setCiLogMax(e.target.value), onBlur: () => handleCiFieldBlur('ciLogMax', ciLogMax, originalCiLogMax) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum characters to capture from CI logs" })] })] })] })] }));
103
+ const originalAnalyzeTimeout = st?.analyzeMs != null ? String(Math.round(st.analyzeMs / 1000)) : '';
104
+ const originalRequirementsTimeout = st?.requirementsMs != null ? String(Math.round(st.requirementsMs / 1000)) : '';
105
+ const originalResearchTimeout = st?.researchMs != null ? String(Math.round(st.researchMs / 1000)) : '';
106
+ const originalPlanTimeout = st?.planMs != null ? String(Math.round(st.planMs / 1000)) : '';
107
+ const originalImplementTimeout = st?.implementMs != null ? String(Math.round(st.implementMs / 1000)) : '';
108
+ const originalMergeTimeout = st?.mergeMs != null ? String(Math.round(st.mergeMs / 1000)) : '';
109
+ const originalAnalyzeRepoTimeout = art?.analyzeMs != null ? String(Math.round(art.analyzeMs / 1000)) : '';
110
+ const FEATURE_AGENT_FIELDS = [
111
+ {
112
+ key: 'analyzeTimeout',
113
+ label: 'Analyze',
114
+ defaultSeconds: 1800,
115
+ state: analyzeTimeout,
116
+ setter: setAnalyzeTimeout,
117
+ original: originalAnalyzeTimeout,
118
+ },
119
+ {
120
+ key: 'requirementsTimeout',
121
+ label: 'Requirements',
122
+ defaultSeconds: 1800,
123
+ state: requirementsTimeout,
124
+ setter: setRequirementsTimeout,
125
+ original: originalRequirementsTimeout,
126
+ },
127
+ {
128
+ key: 'researchTimeout',
129
+ label: 'Research',
130
+ defaultSeconds: 1800,
131
+ state: researchTimeout,
132
+ setter: setResearchTimeout,
133
+ original: originalResearchTimeout,
134
+ },
135
+ {
136
+ key: 'planTimeout',
137
+ label: 'Plan',
138
+ defaultSeconds: 1800,
139
+ state: planTimeout,
140
+ setter: setPlanTimeout,
141
+ original: originalPlanTimeout,
142
+ },
143
+ {
144
+ key: 'implementTimeout',
145
+ label: 'Implement',
146
+ defaultSeconds: 1800,
147
+ state: implementTimeout,
148
+ setter: setImplementTimeout,
149
+ original: originalImplementTimeout,
150
+ },
151
+ {
152
+ key: 'mergeTimeout',
153
+ label: 'Merge',
154
+ defaultSeconds: 1800,
155
+ state: mergeTimeout,
156
+ setter: setMergeTimeout,
157
+ original: originalMergeTimeout,
158
+ },
159
+ ];
160
+ const ANALYZE_REPO_FIELDS = [
161
+ {
162
+ key: 'analyzeRepoTimeout',
163
+ label: 'Analyze',
164
+ defaultSeconds: 600,
165
+ state: analyzeRepoTimeout,
166
+ setter: setAnalyzeRepoTimeout,
167
+ original: originalAnalyzeRepoTimeout,
168
+ },
169
+ ];
170
+ return (_jsxs(Card, { id: "workflow", className: "scroll-mt-6", "data-testid": "workflow-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Workflow" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure PR behavior, approval gates, and CI settings" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "open-pr", children: "Open PR on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Automatically create a pull request when the agent finishes" })] }), _jsx(Switch, { id: "open-pr", "data-testid": "switch-open-pr", checked: openPr, onCheckedChange: (v) => handleSwitchChange('openPr', setOpenPr, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "push-on-complete", children: "Push on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Push the branch to remote when implementation is done" })] }), _jsx(Switch, { id: "push-on-complete", "data-testid": "switch-push-on-complete", checked: pushOnComplete, onCheckedChange: (v) => handleSwitchChange('pushOnComplete', setPushOnComplete, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Approval Gates" }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-prd", children: "PRD auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for product requirement documents" })] }), _jsx(Switch, { id: "allow-prd", "data-testid": "switch-allow-prd", checked: allowPrd, onCheckedChange: (v) => handleSwitchChange('allowPrd', setAllowPrd, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-plan", children: "Plan auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for implementation plans" })] }), _jsx(Switch, { id: "allow-plan", "data-testid": "switch-allow-plan", checked: allowPlan, onCheckedChange: (v) => handleSwitchChange('allowPlan', setAllowPlan, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-merge", children: "Merge auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for PR merges" })] }), _jsx(Switch, { id: "allow-merge", "data-testid": "switch-allow-merge", checked: allowMerge, onCheckedChange: (v) => handleSwitchChange('allowMerge', setAllowMerge, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "CI Settings" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-max-fix", children: "Max fix attempts" }), _jsx(Input, { id: "ci-max-fix", "data-testid": "ci-max-fix-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", min: 1, max: 10, placeholder: "e.g., 3", value: ciMaxFix, onChange: (e) => setCiMaxFix(e.target.value), onBlur: () => handleFieldBlur('ciMaxFix', ciMaxFix, originalCiMaxFix) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How many times the agent retries fixing CI failures" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-timeout", children: "Watch timeout (seconds)" }), _jsx(Input, { id: "ci-timeout", "data-testid": "ci-timeout-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 300", value: ciTimeout, onChange: (e) => setCiTimeout(e.target.value), onBlur: () => handleFieldBlur('ciTimeout', ciTimeout, originalCiTimeout) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How long to wait for CI to complete before timing out" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-log-max", children: "Max log characters" }), _jsx(Input, { id: "ci-log-max", "data-testid": "ci-log-max-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 50000", value: ciLogMax, onChange: (e) => setCiLogMax(e.target.value), onBlur: () => handleFieldBlur('ciLogMax', ciLogMax, originalCiLogMax) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum characters to capture from CI logs" })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Stage Timeouts" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum execution time per agent stage" }), _jsx("h4", { className: "text-muted-foreground text-xs font-semibold tracking-wider uppercase", children: "Feature Agent" }), FEATURE_AGENT_FIELDS.map((field) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx(Label, { htmlFor: `stage-timeout-${field.key}`, children: field.label }), _jsx(TimeoutSlider, { id: `stage-timeout-${field.key}`, testId: `stage-timeout-${field.key}-input`, value: field.state, onChange: field.setter, onBlur: () => handleFieldBlur(field.key, field.state, field.original), defaultSeconds: field.defaultSeconds })] }, field.key))), _jsx("h4", { className: "text-muted-foreground pt-2 text-xs font-semibold tracking-wider uppercase", children: "Analyze Repository Agent" }), ANALYZE_REPO_FIELDS.map((field) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx(Label, { htmlFor: `stage-timeout-${field.key}`, children: field.label }), _jsx(TimeoutSlider, { id: `stage-timeout-${field.key}`, testId: `stage-timeout-${field.key}-input`, value: field.state, onChange: field.setter, onBlur: () => handleFieldBlur(field.key, field.state, field.original), defaultSeconds: field.defaultSeconds })] }, field.key)))] })] })] }));
76
171
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAiB5B,CAAC"}
1
+ {"version":3,"file":"workflow-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA4BxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA4B5B,CAAC"}
@@ -36,6 +36,17 @@ export const AllEnabled = {
36
36
  ciMaxFixAttempts: 3,
37
37
  ciWatchTimeoutMs: 300000,
38
38
  ciLogMaxChars: 50000,
39
+ stageTimeouts: {
40
+ analyzeMs: 600000,
41
+ requirementsMs: 600000,
42
+ researchMs: 600000,
43
+ planMs: 600000,
44
+ implementMs: 600000,
45
+ mergeMs: 600000,
46
+ },
47
+ analyzeRepoTimeouts: {
48
+ analyzeMs: 600000,
49
+ },
39
50
  enableEvidence: true,
40
51
  commitEvidence: true,
41
52
  },
@@ -54,6 +65,17 @@ export const WithCiSettings = {
54
65
  ciMaxFixAttempts: 5,
55
66
  ciWatchTimeoutMs: 600000,
56
67
  ciLogMaxChars: 100000,
68
+ stageTimeouts: {
69
+ analyzeMs: 1200000,
70
+ requirementsMs: 1200000,
71
+ researchMs: 1200000,
72
+ planMs: 1200000,
73
+ implementMs: 1200000,
74
+ mergeMs: 1200000,
75
+ },
76
+ analyzeRepoTimeouts: {
77
+ analyzeMs: 1200000,
78
+ },
57
79
  enableEvidence: false,
58
80
  commitEvidence: false,
59
81
  },
@@ -0,0 +1,32 @@
1
+ export type WebhookDeliveryStatus = 'success' | 'ignored' | 'error';
2
+ export interface WebhookDeliveryRecord {
3
+ deliveryId: string;
4
+ eventType: string;
5
+ source: string;
6
+ receivedAt: string;
7
+ status: WebhookDeliveryStatus;
8
+ statusMessage: string;
9
+ durationMs: number;
10
+ payload: Record<string, unknown>;
11
+ }
12
+ export interface RegisteredWebhookInfo {
13
+ repoFullName: string;
14
+ webhookId: number;
15
+ repositoryPath: string;
16
+ }
17
+ export interface WebhookSystemStatus {
18
+ running: boolean;
19
+ tunnel: {
20
+ connected: boolean;
21
+ publicUrl: string | null;
22
+ };
23
+ webhooks: {
24
+ registered: readonly RegisteredWebhookInfo[];
25
+ totalDeliveries: number;
26
+ successCount: number;
27
+ errorCount: number;
28
+ ignoredCount: number;
29
+ };
30
+ startedAt: string | null;
31
+ }
32
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/webhooks/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE;QACR,UAAU,EAAE,SAAS,qBAAqB,EAAE,CAAC;QAC7C,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,6 @@
1
+ import type { WebhookDeliveryRecord } from './types.js';
2
+ export interface WebhookDeliveryTableProps {
3
+ deliveries: WebhookDeliveryRecord[];
4
+ }
5
+ export declare function WebhookDeliveryTable({ deliveries }: WebhookDeliveryTableProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=webhook-delivery-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-delivery-table.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/webhooks/webhook-delivery-table.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAyB,MAAM,SAAS,CAAC;AAE5E,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,qBAAqB,EAAE,CAAC;CACrC;AAcD,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE,yBAAyB,2CAsE7E"}
@@ -0,0 +1,38 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { CheckCircle, XCircle, MinusCircle, ChevronDown, ChevronRight } from 'lucide-react';
5
+ import { Card, CardContent, CardHeader, CardTitle } from '../../ui/card.js';
6
+ import { Badge } from '../../ui/badge.js';
7
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
8
+ import { cn } from '../../../lib/utils.js';
9
+ const STATUS_ICON = {
10
+ success: _jsx(CheckCircle, { className: "h-4 w-4 text-green-500" }),
11
+ error: _jsx(XCircle, { className: "h-4 w-4 text-red-500" }),
12
+ ignored: _jsx(MinusCircle, { className: "h-4 w-4 text-yellow-500" }),
13
+ };
14
+ const STATUS_LABEL = {
15
+ success: 'Success',
16
+ error: 'Error',
17
+ ignored: 'Ignored',
18
+ };
19
+ export function WebhookDeliveryTable({ deliveries }) {
20
+ const [statusFilter, setStatusFilter] = useState('all');
21
+ const [eventTypeFilter, setEventTypeFilter] = useState('all');
22
+ const [expandedId, setExpandedId] = useState(null);
23
+ const eventTypes = [...new Set(deliveries.map((d) => d.eventType))];
24
+ const filtered = deliveries.filter((d) => {
25
+ if (statusFilter !== 'all' && d.status !== statusFilter)
26
+ return false;
27
+ if (eventTypeFilter !== 'all' && d.eventType !== eventTypeFilter)
28
+ return false;
29
+ return true;
30
+ });
31
+ return (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs(CardTitle, { className: "text-sm font-medium", children: ["Delivery History (", filtered.length, ")"] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs(Select, { value: statusFilter, onValueChange: setStatusFilter, children: [_jsx(SelectTrigger, { className: "h-8 w-[120px]", children: _jsx(SelectValue, { placeholder: "Status" }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: "all", children: "All Status" }), _jsx(SelectItem, { value: "success", children: "Success" }), _jsx(SelectItem, { value: "error", children: "Error" }), _jsx(SelectItem, { value: "ignored", children: "Ignored" })] })] }), _jsxs(Select, { value: eventTypeFilter, onValueChange: setEventTypeFilter, children: [_jsx(SelectTrigger, { className: "h-8 w-[150px]", children: _jsx(SelectValue, { placeholder: "Event Type" }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: "all", children: "All Events" }), eventTypes.map((type) => (_jsx(SelectItem, { value: type, children: type }, type)))] })] })] })] }) }), _jsx(CardContent, { children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground py-8 text-center text-sm", children: "No delivery records yet. Webhook events will appear here when received." })) : (_jsx("div", { className: "space-y-1", children: filtered.map((delivery) => (_jsx(DeliveryRow, { delivery: delivery, expanded: expandedId === delivery.deliveryId, onToggle: () => setExpandedId(expandedId === delivery.deliveryId ? null : delivery.deliveryId) }, delivery.deliveryId))) })) })] }));
32
+ }
33
+ function DeliveryRow({ delivery, expanded, onToggle, }) {
34
+ const time = new Date(delivery.receivedAt);
35
+ const timeStr = time.toLocaleTimeString();
36
+ const dateStr = time.toLocaleDateString();
37
+ return (_jsxs("div", { className: cn('rounded-lg border', expanded && 'bg-muted/50'), children: [_jsxs("button", { type: "button", className: "flex w-full items-center gap-3 px-3 py-2 text-left text-sm", onClick: onToggle, children: [expanded ? (_jsx(ChevronDown, { className: "h-4 w-4 shrink-0" })) : (_jsx(ChevronRight, { className: "h-4 w-4 shrink-0" })), STATUS_ICON[delivery.status], _jsx(Badge, { variant: "outline", className: "text-xs", children: delivery.eventType }), _jsx("span", { className: "text-muted-foreground min-w-0 flex-1 truncate text-xs", children: delivery.deliveryId }), _jsxs("span", { className: "text-muted-foreground shrink-0 text-xs", children: [delivery.durationMs, "ms"] }), _jsx("span", { className: "text-muted-foreground shrink-0 text-xs", children: timeStr })] }), expanded ? (_jsxs("div", { className: "border-t px-3 py-3", children: [_jsxs("div", { className: "mb-2 grid grid-cols-2 gap-2 text-xs", children: [_jsxs("div", { children: [_jsx("span", { className: "text-muted-foreground", children: "Status:" }), ' ', _jsx(Badge, { variant: delivery.status === 'error' ? 'destructive' : 'secondary', className: "text-xs", children: STATUS_LABEL[delivery.status] })] }), _jsxs("div", { children: [_jsx("span", { className: "text-muted-foreground", children: "Date:" }), " ", dateStr, " ", timeStr] }), _jsxs("div", { children: [_jsx("span", { className: "text-muted-foreground", children: "Duration:" }), " ", delivery.durationMs, "ms"] }), _jsxs("div", { children: [_jsx("span", { className: "text-muted-foreground", children: "Source:" }), " ", delivery.source] })] }), _jsxs("div", { className: "mb-2", children: [_jsx("span", { className: "text-muted-foreground text-xs", children: "Message:" }), _jsx("p", { className: "text-sm", children: delivery.statusMessage })] }), _jsxs("div", { children: [_jsx("span", { className: "text-muted-foreground text-xs", children: "Payload:" }), _jsx("pre", { className: "bg-muted mt-1 max-h-60 overflow-auto rounded-md p-2 text-xs", children: JSON.stringify(delivery.payload, null, 2) })] })] })) : null] }));
38
+ }
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { WebhookDeliveryTable } from './webhook-delivery-table.js';
3
+ declare const meta: Meta<typeof WebhookDeliveryTable>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const WithDeliveries: Story;
7
+ export declare const Empty: Story;
8
+ export declare const OnlyErrors: Story;
9
+ //# sourceMappingURL=webhook-delivery-table.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-delivery-table.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAwDhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAK3C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { WebhookDeliveryTable } from './webhook-delivery-table.js';
2
+ const mockDeliveries = [
3
+ {
4
+ deliveryId: 'abc-123-def',
5
+ eventType: 'pull_request',
6
+ source: 'github',
7
+ receivedAt: new Date(Date.now() - 60000).toISOString(),
8
+ status: 'success',
9
+ statusMessage: 'Processed successfully',
10
+ durationMs: 12,
11
+ payload: {
12
+ action: 'closed',
13
+ pull_request: {
14
+ number: 42,
15
+ merged: true,
16
+ html_url: 'https://github.com/acme/web-app/pull/42',
17
+ },
18
+ },
19
+ },
20
+ {
21
+ deliveryId: 'abc-456-ghi',
22
+ eventType: 'check_suite',
23
+ source: 'github',
24
+ receivedAt: new Date(Date.now() - 120000).toISOString(),
25
+ status: 'success',
26
+ statusMessage: 'Processed successfully',
27
+ durationMs: 8,
28
+ payload: {
29
+ action: 'completed',
30
+ check_suite: { conclusion: 'success', head_branch: 'feat/login' },
31
+ },
32
+ },
33
+ {
34
+ deliveryId: 'abc-789-jkl',
35
+ eventType: 'check_run',
36
+ source: 'github',
37
+ receivedAt: new Date(Date.now() - 180000).toISOString(),
38
+ status: 'error',
39
+ statusMessage: 'Feature not found for branch refs/heads/unknown',
40
+ durationMs: 3,
41
+ payload: { action: 'completed', check_run: { conclusion: 'failure' } },
42
+ },
43
+ {
44
+ deliveryId: 'abc-012-mno',
45
+ eventType: 'ping',
46
+ source: 'github',
47
+ receivedAt: new Date(Date.now() - 240000).toISOString(),
48
+ status: 'ignored',
49
+ statusMessage: 'Unhandled event type: ping',
50
+ durationMs: 0,
51
+ payload: { zen: 'Keep it logically awesome.' },
52
+ },
53
+ ];
54
+ const meta = {
55
+ title: 'Features/Webhooks/WebhookDeliveryTable',
56
+ component: WebhookDeliveryTable,
57
+ parameters: { layout: 'padded' },
58
+ tags: ['autodocs'],
59
+ };
60
+ export default meta;
61
+ export const WithDeliveries = {
62
+ args: { deliveries: mockDeliveries },
63
+ };
64
+ export const Empty = {
65
+ args: { deliveries: [] },
66
+ };
67
+ export const OnlyErrors = {
68
+ args: { deliveries: mockDeliveries.filter((d) => d.status === 'error') },
69
+ };
@@ -0,0 +1,7 @@
1
+ import type { RegisteredWebhookInfo } from './types.js';
2
+ export interface WebhookRepoListProps {
3
+ webhooks: readonly RegisteredWebhookInfo[];
4
+ tunnelUrl: string | null;
5
+ }
6
+ export declare function WebhookRepoList({ webhooks, tunnelUrl }: WebhookRepoListProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=webhook-repo-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-repo-list.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/webhooks/webhook-repo-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC3C,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,oBAAoB,2CA2D5E"}
@@ -0,0 +1,11 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { GitBranch, ExternalLink } from 'lucide-react';
4
+ import { Card, CardContent, CardHeader, CardTitle } from '../../ui/card.js';
5
+ import { Badge } from '../../ui/badge.js';
6
+ export function WebhookRepoList({ webhooks, tunnelUrl }) {
7
+ if (webhooks.length === 0) {
8
+ return (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { className: "text-sm font-medium", children: "Registered Repositories" }) }), _jsx(CardContent, { children: _jsx("p", { className: "text-muted-foreground text-sm", children: "No webhooks registered. Webhooks are automatically created for repositories with features in the Review lifecycle when cloudflared is available." }) })] }));
9
+ }
10
+ return (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsxs(CardTitle, { className: "text-sm font-medium", children: ["Registered Repositories (", webhooks.length, ")"] }) }), _jsx(CardContent, { children: _jsx("div", { className: "space-y-3", children: webhooks.map((webhook) => (_jsxs("div", { className: "flex items-center justify-between rounded-lg border p-3", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4" }), _jsxs("div", { children: [_jsx("p", { className: "text-sm font-medium", children: webhook.repoFullName }), _jsxs("p", { className: "text-muted-foreground text-xs", children: ["Webhook #", webhook.webhookId] })] })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Badge, { variant: "outline", className: "text-xs", children: "Active" }), tunnelUrl ? (_jsx("a", { href: `https://github.com/${webhook.repoFullName}/settings/hooks/${webhook.webhookId}`, target: "_blank", rel: "noopener noreferrer", className: "text-muted-foreground hover:text-foreground", children: _jsx(ExternalLink, { className: "h-3.5 w-3.5" }) })) : null] })] }, webhook.webhookId))) }) })] }));
11
+ }
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { WebhookRepoList } from './webhook-repo-list.js';
3
+ declare const meta: Meta<typeof WebhookRepoList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const WithWebhooks: Story;
7
+ export declare const Empty: Story;
8
+ export declare const SingleRepo: Story;
9
+ //# sourceMappingURL=webhook-repo-list.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-repo-list.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/webhooks/webhook-repo-list.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAKtC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { WebhookRepoList } from './webhook-repo-list.js';
2
+ const mockWebhooks = [
3
+ { repoFullName: 'acme/web-app', webhookId: 12345, repositoryPath: '/home/user/web-app' },
4
+ { repoFullName: 'acme/api-service', webhookId: 12346, repositoryPath: '/home/user/api-service' },
5
+ { repoFullName: 'acme/shared-lib', webhookId: 12347, repositoryPath: '/home/user/shared-lib' },
6
+ ];
7
+ const meta = {
8
+ title: 'Features/Webhooks/WebhookRepoList',
9
+ component: WebhookRepoList,
10
+ parameters: { layout: 'padded' },
11
+ tags: ['autodocs'],
12
+ };
13
+ export default meta;
14
+ export const WithWebhooks = {
15
+ args: {
16
+ webhooks: mockWebhooks,
17
+ tunnelUrl: 'https://random-subdomain.trycloudflare.com',
18
+ },
19
+ };
20
+ export const Empty = {
21
+ args: {
22
+ webhooks: [],
23
+ tunnelUrl: null,
24
+ },
25
+ };
26
+ export const SingleRepo = {
27
+ args: {
28
+ webhooks: [mockWebhooks[0]],
29
+ tunnelUrl: 'https://random-subdomain.trycloudflare.com',
30
+ },
31
+ };
@@ -0,0 +1,6 @@
1
+ import type { WebhookSystemStatus } from './types.js';
2
+ export interface WebhookStatusCardsProps {
3
+ status: WebhookSystemStatus;
4
+ }
5
+ export declare function WebhookStatusCards({ status }: WebhookStatusCardsProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=webhook-status-cards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-status-cards.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/webhooks/webhook-status-cards.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,uBAAuB,2CA2FrE"}