@shepai/cli 1.150.0 → 1.150.1-pr441.b309db7

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 (467) hide show
  1. package/apis/json-schema/FeatureFlags.yaml +5 -0
  2. package/apis/json-schema/NotificationEventConfig.yaml +15 -0
  3. package/apis/json-schema/NotificationEventType.yaml +3 -0
  4. package/apis/json-schema/ScheduledWorkflow.yaml +46 -0
  5. package/apis/json-schema/WorkflowExecution.yaml +38 -0
  6. package/apis/json-schema/WorkflowExecutionStatus.yaml +10 -0
  7. package/apis/json-schema/WorkflowTriggerType.yaml +7 -0
  8. package/dist/packages/core/src/application/ports/output/repositories/index.d.ts +2 -0
  9. package/dist/packages/core/src/application/ports/output/repositories/index.d.ts.map +1 -1
  10. package/dist/packages/core/src/application/ports/output/repositories/workflow-execution-repository.interface.d.ts +66 -0
  11. package/dist/packages/core/src/application/ports/output/repositories/workflow-execution-repository.interface.d.ts.map +1 -0
  12. package/dist/packages/core/src/application/ports/output/repositories/workflow-execution-repository.interface.js +11 -0
  13. package/dist/packages/core/src/application/ports/output/repositories/workflow-repository.interface.d.ts +81 -0
  14. package/dist/packages/core/src/application/ports/output/repositories/workflow-repository.interface.d.ts.map +1 -0
  15. package/dist/packages/core/src/application/ports/output/repositories/workflow-repository.interface.js +11 -0
  16. package/dist/packages/core/src/application/ports/output/services/clock.interface.d.ts +28 -0
  17. package/dist/packages/core/src/application/ports/output/services/clock.interface.d.ts.map +1 -0
  18. package/dist/packages/core/src/application/ports/output/services/clock.interface.js +13 -0
  19. package/dist/packages/core/src/application/ports/output/services/index.d.ts +1 -0
  20. package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
  21. package/dist/packages/core/src/application/use-cases/workflows/create-workflow.use-case.d.ts +28 -0
  22. package/dist/packages/core/src/application/use-cases/workflows/create-workflow.use-case.d.ts.map +1 -0
  23. package/dist/packages/core/src/application/use-cases/workflows/create-workflow.use-case.js +72 -0
  24. package/dist/packages/core/src/application/use-cases/workflows/cron-helpers.d.ts +27 -0
  25. package/dist/packages/core/src/application/use-cases/workflows/cron-helpers.d.ts.map +1 -0
  26. package/dist/packages/core/src/application/use-cases/workflows/cron-helpers.js +43 -0
  27. package/dist/packages/core/src/application/use-cases/workflows/delete-workflow.use-case.d.ts +18 -0
  28. package/dist/packages/core/src/application/use-cases/workflows/delete-workflow.use-case.d.ts.map +1 -0
  29. package/dist/packages/core/src/application/use-cases/workflows/delete-workflow.use-case.js +64 -0
  30. package/dist/packages/core/src/application/use-cases/workflows/get-workflow-history.use-case.d.ts +16 -0
  31. package/dist/packages/core/src/application/use-cases/workflows/get-workflow-history.use-case.d.ts.map +1 -0
  32. package/dist/packages/core/src/application/use-cases/workflows/get-workflow-history.use-case.js +46 -0
  33. package/dist/packages/core/src/application/use-cases/workflows/get-workflow.use-case.d.ts +13 -0
  34. package/dist/packages/core/src/application/use-cases/workflows/get-workflow.use-case.d.ts.map +1 -0
  35. package/dist/packages/core/src/application/use-cases/workflows/get-workflow.use-case.js +42 -0
  36. package/dist/packages/core/src/application/use-cases/workflows/list-workflows.use-case.d.ts +13 -0
  37. package/dist/packages/core/src/application/use-cases/workflows/list-workflows.use-case.d.ts.map +1 -0
  38. package/dist/packages/core/src/application/use-cases/workflows/list-workflows.use-case.js +33 -0
  39. package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.d.ts +19 -0
  40. package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.d.ts.map +1 -0
  41. package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.js +62 -0
  42. package/dist/packages/core/src/application/use-cases/workflows/schedule-workflow.use-case.d.ts +22 -0
  43. package/dist/packages/core/src/application/use-cases/workflows/schedule-workflow.use-case.d.ts.map +1 -0
  44. package/dist/packages/core/src/application/use-cases/workflows/schedule-workflow.use-case.js +73 -0
  45. package/dist/packages/core/src/application/use-cases/workflows/templates/branch-rebase.template.d.ts +9 -0
  46. package/dist/packages/core/src/application/use-cases/workflows/templates/branch-rebase.template.d.ts.map +1 -0
  47. package/dist/packages/core/src/application/use-cases/workflows/templates/branch-rebase.template.js +27 -0
  48. package/dist/packages/core/src/application/use-cases/workflows/templates/issue-triage.template.d.ts +11 -0
  49. package/dist/packages/core/src/application/use-cases/workflows/templates/issue-triage.template.d.ts.map +1 -0
  50. package/dist/packages/core/src/application/use-cases/workflows/templates/issue-triage.template.js +27 -0
  51. package/dist/packages/core/src/application/use-cases/workflows/toggle-workflow.use-case.d.ts +16 -0
  52. package/dist/packages/core/src/application/use-cases/workflows/toggle-workflow.use-case.d.ts.map +1 -0
  53. package/dist/packages/core/src/application/use-cases/workflows/toggle-workflow.use-case.js +60 -0
  54. package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.d.ts +25 -0
  55. package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.d.ts.map +1 -0
  56. package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.js +83 -0
  57. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  58. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +4 -0
  59. package/dist/packages/core/src/domain/generated/output.d.ts +114 -1
  60. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  61. package/dist/packages/core/src/domain/generated/output.js +16 -0
  62. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  63. package/dist/packages/core/src/infrastructure/di/container.js +66 -0
  64. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +4 -0
  65. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  66. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +8 -0
  67. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.d.ts +46 -0
  68. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.d.ts.map +1 -0
  69. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.js +57 -0
  70. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.d.ts +51 -0
  71. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.d.ts.map +1 -0
  72. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.js +71 -0
  73. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.d.ts +12 -0
  74. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.d.ts.map +1 -0
  75. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.js +22 -0
  76. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.d.ts +14 -0
  77. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.d.ts.map +1 -0
  78. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.js +65 -0
  79. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.d.ts +11 -0
  80. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.d.ts.map +1 -0
  81. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.js +17 -0
  82. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.d.ts +24 -0
  83. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.d.ts.map +1 -0
  84. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.js +92 -0
  85. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow.repository.d.ts +26 -0
  86. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow.repository.d.ts.map +1 -0
  87. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow.repository.js +117 -0
  88. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence.node.d.ts.map +1 -1
  89. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence.node.js +2 -1
  90. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/fast-implement.node.d.ts.map +1 -1
  91. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/fast-implement.node.js +11 -42
  92. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/implement.node.d.ts.map +1 -1
  93. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/implement.node.js +2 -3
  94. package/dist/packages/core/src/infrastructure/services/clock.d.ts +11 -0
  95. package/dist/packages/core/src/infrastructure/services/clock.d.ts.map +1 -0
  96. package/dist/packages/core/src/infrastructure/services/clock.js +22 -0
  97. package/dist/packages/core/src/infrastructure/services/notifications/notification.service.d.ts.map +1 -1
  98. package/dist/packages/core/src/infrastructure/services/notifications/notification.service.js +3 -0
  99. package/dist/packages/core/src/infrastructure/services/workflow-scheduler/workflow-scheduler.service.d.ts +69 -0
  100. package/dist/packages/core/src/infrastructure/services/workflow-scheduler/workflow-scheduler.service.d.ts.map +1 -0
  101. package/dist/packages/core/src/infrastructure/services/workflow-scheduler/workflow-scheduler.service.js +270 -0
  102. package/dist/src/presentation/cli/commands/_serve.command.d.ts.map +1 -1
  103. package/dist/src/presentation/cli/commands/_serve.command.js +14 -0
  104. package/dist/src/presentation/cli/commands/workflow/create.command.d.ts +13 -0
  105. package/dist/src/presentation/cli/commands/workflow/create.command.d.ts.map +1 -0
  106. package/dist/src/presentation/cli/commands/workflow/create.command.js +83 -0
  107. package/dist/src/presentation/cli/commands/workflow/delete.command.d.ts +13 -0
  108. package/dist/src/presentation/cli/commands/workflow/delete.command.d.ts.map +1 -0
  109. package/dist/src/presentation/cli/commands/workflow/delete.command.js +50 -0
  110. package/dist/src/presentation/cli/commands/workflow/disable.command.d.ts +11 -0
  111. package/dist/src/presentation/cli/commands/workflow/disable.command.d.ts.map +1 -0
  112. package/dist/src/presentation/cli/commands/workflow/disable.command.js +32 -0
  113. package/dist/src/presentation/cli/commands/workflow/enable.command.d.ts +11 -0
  114. package/dist/src/presentation/cli/commands/workflow/enable.command.d.ts.map +1 -0
  115. package/dist/src/presentation/cli/commands/workflow/enable.command.js +35 -0
  116. package/dist/src/presentation/cli/commands/workflow/format-helpers.d.ts +35 -0
  117. package/dist/src/presentation/cli/commands/workflow/format-helpers.d.ts.map +1 -0
  118. package/dist/src/presentation/cli/commands/workflow/format-helpers.js +89 -0
  119. package/dist/src/presentation/cli/commands/workflow/history.command.d.ts +12 -0
  120. package/dist/src/presentation/cli/commands/workflow/history.command.d.ts.map +1 -0
  121. package/dist/src/presentation/cli/commands/workflow/history.command.js +46 -0
  122. package/dist/src/presentation/cli/commands/workflow/index.d.ts +26 -0
  123. package/dist/src/presentation/cli/commands/workflow/index.d.ts.map +1 -0
  124. package/dist/src/presentation/cli/commands/workflow/index.js +48 -0
  125. package/dist/src/presentation/cli/commands/workflow/list.command.d.ts +11 -0
  126. package/dist/src/presentation/cli/commands/workflow/list.command.d.ts.map +1 -0
  127. package/dist/src/presentation/cli/commands/workflow/list.command.js +52 -0
  128. package/dist/src/presentation/cli/commands/workflow/run.command.d.ts +11 -0
  129. package/dist/src/presentation/cli/commands/workflow/run.command.d.ts.map +1 -0
  130. package/dist/src/presentation/cli/commands/workflow/run.command.js +37 -0
  131. package/dist/src/presentation/cli/commands/workflow/schedule.command.d.ts +13 -0
  132. package/dist/src/presentation/cli/commands/workflow/schedule.command.d.ts.map +1 -0
  133. package/dist/src/presentation/cli/commands/workflow/schedule.command.js +76 -0
  134. package/dist/src/presentation/cli/commands/workflow/show.command.d.ts +11 -0
  135. package/dist/src/presentation/cli/commands/workflow/show.command.d.ts.map +1 -0
  136. package/dist/src/presentation/cli/commands/workflow/show.command.js +93 -0
  137. package/dist/src/presentation/cli/commands/workflow/update.command.d.ts +13 -0
  138. package/dist/src/presentation/cli/commands/workflow/update.command.d.ts.map +1 -0
  139. package/dist/src/presentation/cli/commands/workflow/update.command.js +67 -0
  140. package/dist/src/presentation/cli/index.js +2 -0
  141. package/dist/src/presentation/web/app/actions/get-workflow-history.d.ts +7 -0
  142. package/dist/src/presentation/web/app/actions/get-workflow-history.d.ts.map +1 -0
  143. package/dist/src/presentation/web/app/actions/get-workflow-history.js +17 -0
  144. package/dist/src/presentation/web/app/actions/list-workflows.d.ts +7 -0
  145. package/dist/src/presentation/web/app/actions/list-workflows.d.ts.map +1 -0
  146. package/dist/src/presentation/web/app/actions/list-workflows.js +17 -0
  147. package/dist/src/presentation/web/app/actions/toggle-workflow.d.ts +8 -0
  148. package/dist/src/presentation/web/app/actions/toggle-workflow.d.ts.map +1 -0
  149. package/dist/src/presentation/web/app/actions/toggle-workflow.js +19 -0
  150. package/dist/src/presentation/web/app/actions/trigger-workflow.d.ts +8 -0
  151. package/dist/src/presentation/web/app/actions/trigger-workflow.d.ts.map +1 -0
  152. package/dist/src/presentation/web/app/actions/trigger-workflow.js +19 -0
  153. package/dist/src/presentation/web/app/workflows/page.d.ts +4 -0
  154. package/dist/src/presentation/web/app/workflows/page.d.ts.map +1 -0
  155. package/dist/src/presentation/web/app/workflows/page.js +18 -0
  156. package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map +1 -1
  157. package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.js +4 -0
  158. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.d.ts.map +1 -1
  159. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.js +1 -0
  160. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
  161. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +3 -0
  162. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
  163. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +3 -0
  164. package/dist/src/presentation/web/components/features/settings/notification-settings-section.d.ts.map +1 -1
  165. package/dist/src/presentation/web/components/features/settings/notification-settings-section.js +6 -1
  166. package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.d.ts.map +1 -1
  167. package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.js +6 -0
  168. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  169. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +19 -2
  170. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  171. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +1 -0
  172. package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.d.ts +7 -0
  173. package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.d.ts.map +1 -0
  174. package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.js +84 -0
  175. package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.stories.d.ts +11 -0
  176. package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.stories.d.ts.map +1 -0
  177. package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.stories.js +104 -0
  178. package/dist/src/presentation/web/components/features/workflows/workflow-list-item.d.ts +8 -0
  179. package/dist/src/presentation/web/components/features/workflows/workflow-list-item.d.ts.map +1 -0
  180. package/dist/src/presentation/web/components/features/workflows/workflow-list-item.js +68 -0
  181. package/dist/src/presentation/web/components/features/workflows/workflow-list-item.stories.d.ts +11 -0
  182. package/dist/src/presentation/web/components/features/workflows/workflow-list-item.stories.d.ts.map +1 -0
  183. package/dist/src/presentation/web/components/features/workflows/workflow-list-item.stories.js +89 -0
  184. package/dist/src/presentation/web/components/features/workflows/workflow-list.d.ts +8 -0
  185. package/dist/src/presentation/web/components/features/workflows/workflow-list.d.ts.map +1 -0
  186. package/dist/src/presentation/web/components/features/workflows/workflow-list.js +10 -0
  187. package/dist/src/presentation/web/components/features/workflows/workflow-list.stories.d.ts +11 -0
  188. package/dist/src/presentation/web/components/features/workflows/workflow-list.stories.d.ts.map +1 -0
  189. package/dist/src/presentation/web/components/features/workflows/workflow-list.stories.js +90 -0
  190. package/dist/src/presentation/web/components/features/workflows/workflows-page-client.d.ts +6 -0
  191. package/dist/src/presentation/web/components/features/workflows/workflows-page-client.d.ts.map +1 -0
  192. package/dist/src/presentation/web/components/features/workflows/workflows-page-client.js +14 -0
  193. package/dist/src/presentation/web/components/features/workflows/workflows-page-client.stories.d.ts +10 -0
  194. package/dist/src/presentation/web/components/features/workflows/workflows-page-client.stories.d.ts.map +1 -0
  195. package/dist/src/presentation/web/components/features/workflows/workflows-page-client.stories.js +70 -0
  196. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  197. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  198. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.d.ts.map +1 -1
  199. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.js +1 -0
  200. package/dist/src/presentation/web/hooks/feature-flags-context.d.ts.map +1 -1
  201. package/dist/src/presentation/web/hooks/feature-flags-context.js +1 -0
  202. package/dist/src/presentation/web/lib/feature-flags.d.ts +2 -0
  203. package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -1
  204. package/dist/src/presentation/web/lib/feature-flags.js +5 -0
  205. package/dist/tsconfig.build.tsbuildinfo +1 -1
  206. package/package.json +2 -1
  207. package/web/.next/BUILD_ID +1 -1
  208. package/web/.next/app-path-routes-manifest.json +2 -1
  209. package/web/.next/build-manifest.json +2 -2
  210. package/web/.next/fallback-build-manifest.json +2 -2
  211. package/web/.next/prerender-manifest.json +3 -3
  212. package/web/.next/required-server-files.js +3 -3
  213. package/web/.next/required-server-files.json +3 -3
  214. package/web/.next/routes-manifest.json +6 -0
  215. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +28 -28
  216. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +2 -2
  217. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  218. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  219. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +28 -28
  220. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
  221. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  222. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  223. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +36 -36
  224. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +2 -2
  225. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  226. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  227. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +36 -36
  228. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +2 -2
  229. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  230. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  231. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +26 -26
  232. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
  233. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  234. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  235. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +28 -28
  236. package/web/.next/server/app/(dashboard)/create/page.js +2 -2
  237. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  238. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  239. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +36 -36
  240. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +2 -2
  241. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  242. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  243. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +36 -36
  244. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +2 -2
  245. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  246. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  247. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +26 -26
  248. package/web/.next/server/app/(dashboard)/page.js +2 -2
  249. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  250. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  251. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +26 -26
  252. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
  253. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  254. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  255. package/web/.next/server/app/_global-error/page.js +1 -1
  256. package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  257. package/web/.next/server/app/_global-error.html +2 -2
  258. package/web/.next/server/app/_global-error.rsc +1 -1
  259. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  260. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  261. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  262. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  263. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  264. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
  265. package/web/.next/server/app/_not-found/page.js +1 -1
  266. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  267. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  268. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  269. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  270. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  271. package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
  272. package/web/.next/server/app/settings/page.js +3 -3
  273. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  274. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  275. package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
  276. package/web/.next/server/app/skills/page.js +2 -2
  277. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  278. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  279. package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
  280. package/web/.next/server/app/tools/page.js +2 -2
  281. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  282. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  283. package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
  284. package/web/.next/server/app/version/page.js +1 -1
  285. package/web/.next/server/app/version/page.js.nft.json +1 -1
  286. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  287. package/web/.next/server/app/workflows/page/app-paths-manifest.json +3 -0
  288. package/web/.next/server/app/workflows/page/build-manifest.json +18 -0
  289. package/web/.next/server/app/workflows/page/next-font-manifest.json +6 -0
  290. package/web/.next/server/app/workflows/page/react-loadable-manifest.json +8 -0
  291. package/web/.next/server/app/workflows/page/server-reference-manifest.json +110 -0
  292. package/web/.next/server/app/workflows/page.js +19 -0
  293. package/web/.next/server/app/workflows/page.js.map +5 -0
  294. package/web/.next/server/app/workflows/page.js.nft.json +1 -0
  295. package/web/.next/server/app/workflows/page_client-reference-manifest.js +2 -0
  296. package/web/.next/server/app-paths-manifest.json +2 -1
  297. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  298. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  299. package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js +1 -1
  300. package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js.map +1 -1
  301. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  302. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  303. package/web/.next/server/chunks/ssr/{_6256a985._.js → 403f9_next_8a33ddee._.js} +2 -2
  304. package/web/.next/server/chunks/ssr/403f9_next_8a33ddee._.js.map +1 -0
  305. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  306. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  307. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_0c7787d0._.js +3 -0
  308. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_0c7787d0._.js.map +1 -0
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__082758f6._.js +3 -0
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__082758f6._.js.map +1 -0
  311. package/web/.next/server/chunks/ssr/{[root-of-the-server]__d1040bd1._.js → [root-of-the-server]__090f24cb._.js} +2 -2
  312. package/web/.next/server/chunks/ssr/{[root-of-the-server]__d1040bd1._.js.map → [root-of-the-server]__090f24cb._.js.map} +1 -1
  313. package/web/.next/server/chunks/ssr/[root-of-the-server]__29580090._.js +1 -1
  314. package/web/.next/server/chunks/ssr/[root-of-the-server]__29580090._.js.map +1 -1
  315. package/web/.next/server/chunks/ssr/[root-of-the-server]__32cd6108._.js +3 -0
  316. package/web/.next/server/chunks/ssr/[root-of-the-server]__32cd6108._.js.map +1 -0
  317. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  318. package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
  319. package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
  320. package/web/.next/server/chunks/ssr/[root-of-the-server]__44358910._.js +4 -0
  321. package/web/.next/server/chunks/ssr/[root-of-the-server]__44358910._.js.map +1 -0
  322. package/web/.next/server/chunks/ssr/{[root-of-the-server]__3ef34e4c._.js → [root-of-the-server]__57e0ee34._.js} +3 -3
  323. package/web/.next/server/chunks/ssr/[root-of-the-server]__57e0ee34._.js.map +1 -0
  324. package/web/.next/server/chunks/ssr/{[root-of-the-server]__efeeaed4._.js → [root-of-the-server]__7aa484f5._.js} +2 -2
  325. package/web/.next/server/chunks/ssr/{[root-of-the-server]__efeeaed4._.js.map → [root-of-the-server]__7aa484f5._.js.map} +1 -1
  326. package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
  327. package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
  328. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
  329. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
  330. package/web/.next/server/chunks/ssr/[root-of-the-server]__c094882b._.js +1 -1
  331. package/web/.next/server/chunks/ssr/[root-of-the-server]__c094882b._.js.map +1 -1
  332. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0b150ddf._.js → [root-of-the-server]__c85ef334._.js} +2 -2
  333. package/web/.next/server/chunks/ssr/[root-of-the-server]__c85ef334._.js.map +1 -0
  334. package/web/.next/server/chunks/ssr/[root-of-the-server]__cf7aca8a._.js +3 -0
  335. package/web/.next/server/chunks/ssr/{[root-of-the-server]__df7c1cd3._.js.map → [root-of-the-server]__cf7aca8a._.js.map} +1 -1
  336. package/web/.next/server/chunks/ssr/[root-of-the-server]__dac5dbf1._.js +1 -1
  337. package/web/.next/server/chunks/ssr/[root-of-the-server]__dac5dbf1._.js.map +1 -1
  338. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2138fa7e._.js → [root-of-the-server]__e5851493._.js} +3 -3
  339. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5851493._.js.map +1 -0
  340. package/web/.next/server/chunks/ssr/[root-of-the-server]__fae8b355._.js +1 -1
  341. package/web/.next/server/chunks/ssr/[root-of-the-server]__fae8b355._.js.map +1 -1
  342. package/web/.next/server/chunks/ssr/_0c5f56e3._.js +2 -2
  343. package/web/.next/server/chunks/ssr/_0c5f56e3._.js.map +1 -1
  344. package/web/.next/server/chunks/ssr/_17dbc240._.js +3 -0
  345. package/web/.next/server/chunks/ssr/_17dbc240._.js.map +1 -0
  346. package/web/.next/server/chunks/ssr/_1b719e7f._.js +1 -1
  347. package/web/.next/server/chunks/ssr/_1b719e7f._.js.map +1 -1
  348. package/web/.next/server/chunks/ssr/_20a4a0d5._.js +3 -0
  349. package/web/.next/server/chunks/ssr/_20a4a0d5._.js.map +1 -0
  350. package/web/.next/server/chunks/ssr/{_8fcc39d4._.js → _212aafc7._.js} +2 -2
  351. package/web/.next/server/chunks/ssr/{_8fcc39d4._.js.map → _212aafc7._.js.map} +1 -1
  352. package/web/.next/server/chunks/ssr/_26582473._.js +3 -0
  353. package/web/.next/server/chunks/ssr/_26582473._.js.map +1 -0
  354. package/web/.next/server/chunks/ssr/{_b5fc318a._.js → _277acdde._.js} +2 -2
  355. package/web/.next/server/chunks/ssr/_277acdde._.js.map +1 -0
  356. package/web/.next/server/chunks/ssr/{_92b9e766._.js → _3038739c._.js} +2 -2
  357. package/web/.next/server/chunks/ssr/{_92b9e766._.js.map → _3038739c._.js.map} +1 -1
  358. package/web/.next/server/chunks/ssr/_37e8548b._.js +1 -1
  359. package/web/.next/server/chunks/ssr/_37e8548b._.js.map +1 -1
  360. package/web/.next/server/chunks/ssr/_4711e8cf._.js +3 -0
  361. package/web/.next/server/chunks/ssr/_4711e8cf._.js.map +1 -0
  362. package/web/.next/server/chunks/ssr/_4b432739._.js +1 -1
  363. package/web/.next/server/chunks/ssr/_4b432739._.js.map +1 -1
  364. package/web/.next/server/chunks/ssr/_55d763e2._.js +1 -1
  365. package/web/.next/server/chunks/ssr/_55d763e2._.js.map +1 -1
  366. package/web/.next/server/chunks/ssr/_64bdfc6f._.js +2 -2
  367. package/web/.next/server/chunks/ssr/_64bdfc6f._.js.map +1 -1
  368. package/web/.next/server/chunks/ssr/_89a36303._.js +3 -0
  369. package/web/.next/server/chunks/ssr/_89a36303._.js.map +1 -0
  370. package/web/.next/server/chunks/ssr/{_0020fddd._.js → _a3721140._.js} +2 -2
  371. package/web/.next/server/chunks/ssr/_a3721140._.js.map +1 -0
  372. package/web/.next/server/chunks/ssr/_b71645b4._.js +1 -1
  373. package/web/.next/server/chunks/ssr/_b71645b4._.js.map +1 -1
  374. package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
  375. package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
  376. package/web/.next/server/chunks/ssr/_e3411387._.js +9 -0
  377. package/web/.next/server/chunks/ssr/_e3411387._.js.map +1 -0
  378. package/web/.next/server/chunks/ssr/_f35785e8._.js +3 -0
  379. package/web/.next/server/chunks/ssr/_f35785e8._.js.map +1 -0
  380. package/web/.next/server/chunks/ssr/_f64ffec0._.js +4 -0
  381. package/web/.next/server/chunks/ssr/_f64ffec0._.js.map +1 -0
  382. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  383. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  384. package/web/.next/server/chunks/ssr/{_1b7dae9a._.js → f7870_sonner_dist_index_mjs_dbf63824._.js} +2 -2
  385. package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js.map +1 -0
  386. package/web/.next/server/chunks/ssr/node_modules__pnpm_28388798._.js +3 -0
  387. package/web/.next/server/chunks/ssr/node_modules__pnpm_28388798._.js.map +1 -0
  388. package/web/.next/server/chunks/ssr/node_modules__pnpm_ae1705ef._.js +3 -0
  389. package/web/.next/server/chunks/ssr/node_modules__pnpm_ae1705ef._.js.map +1 -0
  390. package/web/.next/server/chunks/ssr/src_presentation_web_47c56a89._.js +3 -0
  391. package/web/.next/server/chunks/ssr/{src_presentation_web_f449e0af._.js.map → src_presentation_web_47c56a89._.js.map} +1 -1
  392. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
  393. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
  394. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
  395. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
  396. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
  397. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  398. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  399. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  400. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  401. package/web/.next/server/pages/500.html +2 -2
  402. package/web/.next/server/server-reference-manifest.js +1 -1
  403. package/web/.next/server/server-reference-manifest.json +128 -47
  404. package/web/.next/static/chunks/012cd198f2f5f69b.js +1 -0
  405. package/web/.next/static/chunks/1717cd5043bdd3bd.js +1 -0
  406. package/web/.next/static/chunks/1760fdd748136b0a.js +1 -0
  407. package/web/.next/static/chunks/18c906505123f6bc.js +1 -0
  408. package/web/.next/static/chunks/{eb7b91c45ec7b468.js → 2be2403fc6ea10fb.js} +2 -2
  409. package/web/.next/static/chunks/2c1ff62df9b34313.js +1 -0
  410. package/web/.next/static/chunks/{672e3da3ad26005b.js → 42c9564e375717ed.js} +1 -1
  411. package/web/.next/static/chunks/5420560352333486.js +1 -0
  412. package/web/.next/static/chunks/581da2fea22a26ed.js +1 -0
  413. package/web/.next/static/chunks/7e664ecef6b0412b.js +1 -0
  414. package/web/.next/static/chunks/8254b51579b9bf14.js +1 -0
  415. package/web/.next/static/chunks/{9b8678597fa1db84.css → 919a5016ff5973a8.css} +1 -1
  416. package/web/.next/static/chunks/955de9c458882838.js +5 -0
  417. package/web/.next/static/chunks/{a18a5348858c6d75.js → 9d58a91a359e0b7d.js} +3 -3
  418. package/web/.next/static/chunks/{10b75a1ea923a690.js → c7865694beb27ce3.js} +1 -1
  419. package/web/.next/static/chunks/d7a464b957f611ba.js +1 -0
  420. package/web/.next/static/chunks/de2a780de5e1d718.js +1 -0
  421. package/web/.next/static/chunks/ed35b4293a81c861.js +9 -0
  422. package/web/.next/static/chunks/{97a773e5a88462a0.js → ed82c6ab93a79fa3.js} +1 -1
  423. package/web/.next/static/chunks/f29c8010a2d10bc5.js +1 -0
  424. package/web/.next/static/chunks/f75142a1b75f1c32.js +1 -0
  425. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_8b618f7d._.js +0 -3
  426. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_8b618f7d._.js.map +0 -1
  427. package/web/.next/server/chunks/ssr/[root-of-the-server]__0b150ddf._.js.map +0 -1
  428. package/web/.next/server/chunks/ssr/[root-of-the-server]__2138fa7e._.js.map +0 -1
  429. package/web/.next/server/chunks/ssr/[root-of-the-server]__3ef34e4c._.js.map +0 -1
  430. package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +0 -3
  431. package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +0 -1
  432. package/web/.next/server/chunks/ssr/[root-of-the-server]__df7c1cd3._.js +0 -3
  433. package/web/.next/server/chunks/ssr/_0020fddd._.js.map +0 -1
  434. package/web/.next/server/chunks/ssr/_01046927._.js +0 -9
  435. package/web/.next/server/chunks/ssr/_01046927._.js.map +0 -1
  436. package/web/.next/server/chunks/ssr/_05c23ad9._.js +0 -3
  437. package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +0 -1
  438. package/web/.next/server/chunks/ssr/_16eb4fec._.js +0 -3
  439. package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +0 -1
  440. package/web/.next/server/chunks/ssr/_1b7dae9a._.js.map +0 -1
  441. package/web/.next/server/chunks/ssr/_6256a985._.js.map +0 -1
  442. package/web/.next/server/chunks/ssr/_67104d9e._.js +0 -3
  443. package/web/.next/server/chunks/ssr/_67104d9e._.js.map +0 -1
  444. package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +0 -1
  445. package/web/.next/server/chunks/ssr/_bf695af2._.js +0 -3
  446. package/web/.next/server/chunks/ssr/_bf695af2._.js.map +0 -1
  447. package/web/.next/server/chunks/ssr/_d4b20e29._.js +0 -3
  448. package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +0 -1
  449. package/web/.next/server/chunks/ssr/node_modules__pnpm_55c7a131._.js +0 -3
  450. package/web/.next/server/chunks/ssr/node_modules__pnpm_55c7a131._.js.map +0 -1
  451. package/web/.next/server/chunks/ssr/src_presentation_web_f449e0af._.js +0 -3
  452. package/web/.next/static/chunks/08baac5434d9528e.js +0 -13
  453. package/web/.next/static/chunks/1f265c393614cad2.js +0 -1
  454. package/web/.next/static/chunks/413e2ca694528497.js +0 -1
  455. package/web/.next/static/chunks/49057cf8cd37e262.js +0 -1
  456. package/web/.next/static/chunks/56233eb0780a997e.js +0 -1
  457. package/web/.next/static/chunks/601d93593f5f664f.js +0 -1
  458. package/web/.next/static/chunks/688971d5bad5dc7c.js +0 -1
  459. package/web/.next/static/chunks/ad8f9fe681d88d09.js +0 -1
  460. package/web/.next/static/chunks/b70dd4985a814b27.js +0 -1
  461. package/web/.next/static/chunks/c69cea3bed20eea7.js +0 -1
  462. package/web/.next/static/chunks/d2e9df0b38f0d962.js +0 -1
  463. package/web/.next/static/chunks/f17d6d87a3508ba0.js +0 -1
  464. package/web/.next/static/chunks/f9a69279d55bfd3b.js +0 -1
  465. /package/web/.next/static/{e6hBEk7bk-CV1jLaYcZLX → Lsq24p2KQmGstqY0A7dDg}/_buildManifest.js +0 -0
  466. /package/web/.next/static/{e6hBEk7bk-CV1jLaYcZLX → Lsq24p2KQmGstqY0A7dDg}/_clientMiddlewareManifest.json +0 -0
  467. /package/web/.next/static/{e6hBEk7bk-CV1jLaYcZLX → Lsq24p2KQmGstqY0A7dDg}/_ssgManifest.js +0 -0
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useState, useTransition, useRef, useEffect, useCallback } from 'react';
4
4
  import { Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Minus, Plus, ExternalLink, Settings2, Timer, } from 'lucide-react';
5
5
  import { toast } from 'sonner';
@@ -123,6 +123,7 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTe
123
123
  adoptBranch: false,
124
124
  gitRebaseSync: false,
125
125
  reactFileManager: false,
126
+ scheduledWorkflows: false,
126
127
  };
127
128
  // Agent state
128
129
  const [agentType, setAgentType] = useState(settings.agent.type);
@@ -473,7 +474,19 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTe
473
474
  const newEvents = { ...events, mergeReviewReady: v };
474
475
  setEvents(newEvents);
475
476
  save(buildNotificationPayload({ events: newEvents }));
476
- } })] }), _jsx(SectionHint, { links: [
477
+ } }), flags.scheduledWorkflows ? (_jsxs(_Fragment, { children: [_jsx(SubsectionLabel, { children: "Scheduled Workflow Events" }), _jsx(SwitchRow, { label: "Workflow started", id: "notif-event-workflowStarted", testId: "switch-event-workflowStarted", checked: events.workflowStarted, onChange: (v) => {
478
+ const newEvents = { ...events, workflowStarted: v };
479
+ setEvents(newEvents);
480
+ save(buildNotificationPayload({ events: newEvents }));
481
+ } }), _jsx(SwitchRow, { label: "Workflow completed", id: "notif-event-workflowCompleted", testId: "switch-event-workflowCompleted", checked: events.workflowCompleted, onChange: (v) => {
482
+ const newEvents = { ...events, workflowCompleted: v };
483
+ setEvents(newEvents);
484
+ save(buildNotificationPayload({ events: newEvents }));
485
+ } }), _jsx(SwitchRow, { label: "Workflow failed", id: "notif-event-workflowFailed", testId: "switch-event-workflowFailed", checked: events.workflowFailed, onChange: (v) => {
486
+ const newEvents = { ...events, workflowFailed: v };
487
+ setEvents(newEvents);
488
+ save(buildNotificationPayload({ events: newEvents }));
489
+ } })] })) : null] }), _jsx(SectionHint, { links: [
477
490
  {
478
491
  label: 'Notification system',
479
492
  href: 'https://github.com/shep-ai/cli/blob/main/specs/021-agent-notifications/spec.yaml',
@@ -506,6 +519,10 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTe
506
519
  const newFlags = { ...flags, reactFileManager: v };
507
520
  setFlags(newFlags);
508
521
  save({ featureFlags: newFlags });
522
+ } }), _jsx(SwitchRow, { label: "Scheduled Workflows", description: "Enable scheduled workflows \u2014 create, schedule, and execute automated workflows on a cron schedule", id: "flag-scheduledWorkflows", testId: "switch-flag-scheduledWorkflows", checked: flags.scheduledWorkflows, onChange: (v) => {
523
+ const newFlags = { ...flags, scheduledWorkflows: v };
524
+ setFlags(newFlags);
525
+ save({ featureFlags: newFlags });
509
526
  } })] }), _jsx(SectionHint, { children: "Experimental features that are still under development. Enable at your own risk \u2014 they may change or be removed in future versions. Debug mode adds verbose logging useful for troubleshooting." })] }), _jsxs("div", { id: "section-database", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Database, title: "Database", description: "Local storage information", testId: "database-settings-section", children: [_jsx(SettingsRow, { label: "Location", description: "Path to the local SQLite database", children: _jsx("span", { className: "text-muted-foreground max-w-50 truncate font-mono text-xs", "data-testid": "shep-home-path", children: shepHome }) }), _jsx(SettingsRow, { label: "Size", children: _jsx("span", { className: "text-muted-foreground text-xs", "data-testid": "db-file-size", children: dbFileSize }) })] }), _jsx(SectionHint, { links: [
510
527
  {
511
528
  label: 'Settings service',
@@ -1 +1 @@
1
- {"version":3,"file":"settings-page-client.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;CAOiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAqBzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAa7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAsB5B,CAAC"}
1
+ {"version":3,"file":"settings-page-client.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;CAOiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAsBzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAa7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAsB5B,CAAC"}
@@ -34,6 +34,7 @@ export const AllSections = {
34
34
  adoptBranch: false,
35
35
  gitRebaseSync: false,
36
36
  reactFileManager: false,
37
+ scheduledWorkflows: false,
37
38
  },
38
39
  },
39
40
  shepHome: '/opt/shep',
@@ -0,0 +1,7 @@
1
+ import { type WorkflowExecution } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ export interface WorkflowExecutionHistoryProps {
3
+ workflowId: string;
4
+ executions?: WorkflowExecution[];
5
+ }
6
+ export declare function WorkflowExecutionHistory({ workflowId, executions: initialExecutions, }: WorkflowExecutionHistoryProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=workflow-execution-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-execution-history.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflow-execution-history.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAsDD,wBAAgB,wBAAwB,CAAC,EACvC,UAAU,EACV,UAAU,EAAE,iBAAiB,GAC9B,EAAE,6BAA6B,2CA8E/B"}
@@ -0,0 +1,84 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useState, useTransition } from 'react';
4
+ import { Clock, AlertCircle, CheckCircle2, Loader2, XCircle, Timer } from 'lucide-react';
5
+ import { cn } from '../../../lib/utils.js';
6
+ import { Badge } from '../../ui/badge.js';
7
+ import { getWorkflowHistory } from '../../../app/actions/get-workflow-history.js';
8
+ import { WorkflowExecutionStatus, WorkflowTriggerType, } from '../../../../../../packages/core/src/domain/generated/output.js';
9
+ const STATUS_CONFIG = {
10
+ [WorkflowExecutionStatus.Completed]: {
11
+ label: 'Completed',
12
+ icon: CheckCircle2,
13
+ className: 'text-emerald-600 dark:text-emerald-400',
14
+ },
15
+ [WorkflowExecutionStatus.Failed]: {
16
+ label: 'Failed',
17
+ icon: XCircle,
18
+ className: 'text-red-600 dark:text-red-400',
19
+ },
20
+ [WorkflowExecutionStatus.Running]: {
21
+ label: 'Running',
22
+ icon: Loader2,
23
+ className: 'text-blue-600 dark:text-blue-400',
24
+ },
25
+ [WorkflowExecutionStatus.Queued]: {
26
+ label: 'Queued',
27
+ icon: Clock,
28
+ className: 'text-amber-600 dark:text-amber-400',
29
+ },
30
+ [WorkflowExecutionStatus.Cancelled]: {
31
+ label: 'Cancelled',
32
+ icon: AlertCircle,
33
+ className: 'text-muted-foreground',
34
+ },
35
+ };
36
+ function formatDuration(ms) {
37
+ if (ms == null)
38
+ return '-';
39
+ if (ms < 1000)
40
+ return `${ms}ms`;
41
+ const seconds = Math.floor(ms / 1000);
42
+ if (seconds < 60)
43
+ return `${seconds}s`;
44
+ const minutes = Math.floor(seconds / 60);
45
+ const remainingSeconds = seconds % 60;
46
+ return `${minutes}m ${remainingSeconds}s`;
47
+ }
48
+ function formatTime(date) {
49
+ if (date == null)
50
+ return '-';
51
+ const d = date instanceof Date ? date : new Date(date);
52
+ return d.toLocaleString(undefined, {
53
+ month: 'short',
54
+ day: 'numeric',
55
+ hour: '2-digit',
56
+ minute: '2-digit',
57
+ });
58
+ }
59
+ export function WorkflowExecutionHistory({ workflowId, executions: initialExecutions, }) {
60
+ const [executions, setExecutions] = useState(initialExecutions ?? []);
61
+ const [isPending, startTransition] = useTransition();
62
+ useEffect(() => {
63
+ if (initialExecutions)
64
+ return;
65
+ startTransition(async () => {
66
+ const result = await getWorkflowHistory(workflowId, 10);
67
+ if (result.executions) {
68
+ setExecutions(result.executions);
69
+ }
70
+ });
71
+ }, [workflowId, initialExecutions]);
72
+ if (isPending && executions.length === 0) {
73
+ return (_jsxs("div", { className: "text-muted-foreground flex items-center gap-2 py-4 text-xs", children: [_jsx(Loader2, { className: "h-3 w-3 animate-spin" }), "Loading history..."] }));
74
+ }
75
+ if (executions.length === 0) {
76
+ return (_jsx("div", { className: "text-muted-foreground py-4 text-center text-xs", children: "No execution history yet" }));
77
+ }
78
+ return (_jsx("div", { "data-testid": "workflow-execution-history", className: "space-y-1", children: executions.map((execution) => {
79
+ const statusConfig = STATUS_CONFIG[execution.status] ?? STATUS_CONFIG[WorkflowExecutionStatus.Queued];
80
+ const StatusIcon = statusConfig.icon;
81
+ const isRunning = execution.status === WorkflowExecutionStatus.Running;
82
+ return (_jsxs("div", { "data-testid": "workflow-execution-row", className: "flex items-center gap-3 rounded-md border px-3 py-2", children: [_jsx(StatusIcon, { className: cn('h-3.5 w-3.5 shrink-0', statusConfig.className, isRunning && 'animate-spin') }), _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [_jsx("span", { className: cn('text-xs font-medium', statusConfig.className), children: statusConfig.label }), _jsx(Badge, { variant: "outline", className: "text-[10px]", children: execution.triggerType === WorkflowTriggerType.Manual ? 'Manual' : 'Scheduled' }), _jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-[10px]", children: [_jsx(Timer, { className: "h-2.5 w-2.5" }), formatDuration(execution.durationMs)] }), execution.errorMessage ? (_jsx("span", { className: "min-w-0 truncate text-[10px] text-red-600 dark:text-red-400", title: execution.errorMessage, children: execution.errorMessage })) : null] }), _jsx("span", { className: "text-muted-foreground shrink-0 text-[10px]", children: formatTime(execution.startedAt) })] }, execution.id));
83
+ }) }));
84
+ }
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { WorkflowExecutionHistory } from './workflow-execution-history.js';
3
+ declare const meta: Meta<typeof WorkflowExecutionHistory>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const AllCompleted: Story;
8
+ export declare const AllFailed: Story;
9
+ export declare const Empty: Story;
10
+ export declare const SingleRunning: Story;
11
+ //# sourceMappingURL=workflow-execution-history.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-execution-history.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflow-execution-history.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AA+DxE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,wBAAwB,CAc/C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC"}
@@ -0,0 +1,104 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WorkflowExecutionHistory } from './workflow-execution-history.js';
3
+ import { WorkflowExecutionStatus, WorkflowTriggerType, } from '../../../../../../packages/core/src/domain/generated/output.js';
4
+ function createExecution(overrides) {
5
+ const now = new Date();
6
+ return {
7
+ workflowId: 'wf-001',
8
+ triggerType: WorkflowTriggerType.Manual,
9
+ status: WorkflowExecutionStatus.Completed,
10
+ startedAt: new Date(now.getTime() - 3_600_000),
11
+ createdAt: new Date(now.getTime() - 3_600_000),
12
+ updatedAt: now,
13
+ ...overrides,
14
+ };
15
+ }
16
+ const mockExecutions = [
17
+ createExecution({
18
+ id: 'exec-1',
19
+ status: WorkflowExecutionStatus.Completed,
20
+ triggerType: WorkflowTriggerType.Scheduled,
21
+ startedAt: new Date(Date.now() - 1_800_000),
22
+ completedAt: new Date(Date.now() - 1_740_000),
23
+ durationMs: 60_000,
24
+ outputSummary: 'Closed 3 resolved issues',
25
+ }),
26
+ createExecution({
27
+ id: 'exec-2',
28
+ status: WorkflowExecutionStatus.Failed,
29
+ triggerType: WorkflowTriggerType.Manual,
30
+ startedAt: new Date(Date.now() - 7_200_000),
31
+ completedAt: new Date(Date.now() - 7_170_000),
32
+ durationMs: 30_000,
33
+ errorMessage: 'GitHub API rate limit exceeded',
34
+ }),
35
+ createExecution({
36
+ id: 'exec-3',
37
+ status: WorkflowExecutionStatus.Running,
38
+ triggerType: WorkflowTriggerType.Scheduled,
39
+ startedAt: new Date(Date.now() - 120_000),
40
+ }),
41
+ createExecution({
42
+ id: 'exec-4',
43
+ status: WorkflowExecutionStatus.Queued,
44
+ triggerType: WorkflowTriggerType.Manual,
45
+ startedAt: new Date(Date.now() - 30_000),
46
+ }),
47
+ createExecution({
48
+ id: 'exec-5',
49
+ status: WorkflowExecutionStatus.Cancelled,
50
+ triggerType: WorkflowTriggerType.Scheduled,
51
+ startedAt: new Date(Date.now() - 86_400_000),
52
+ completedAt: new Date(Date.now() - 86_390_000),
53
+ durationMs: 10_000,
54
+ }),
55
+ ];
56
+ const meta = {
57
+ title: 'Features/Workflows/WorkflowExecutionHistory',
58
+ component: WorkflowExecutionHistory,
59
+ parameters: {
60
+ layout: 'padded',
61
+ },
62
+ tags: ['autodocs'],
63
+ decorators: [
64
+ (Story) => (_jsx("div", { className: "max-w-2xl", children: _jsx(Story, {}) })),
65
+ ],
66
+ };
67
+ export default meta;
68
+ export const Default = {
69
+ args: {
70
+ workflowId: 'wf-001',
71
+ executions: mockExecutions,
72
+ },
73
+ };
74
+ export const AllCompleted = {
75
+ args: {
76
+ workflowId: 'wf-001',
77
+ executions: mockExecutions
78
+ .slice(0, 3)
79
+ .map((e) => ({ ...e, status: WorkflowExecutionStatus.Completed, durationMs: 45_000 })),
80
+ },
81
+ };
82
+ export const AllFailed = {
83
+ args: {
84
+ workflowId: 'wf-001',
85
+ executions: mockExecutions.slice(0, 3).map((e) => ({
86
+ ...e,
87
+ status: WorkflowExecutionStatus.Failed,
88
+ errorMessage: 'Connection timeout',
89
+ durationMs: 5_000,
90
+ })),
91
+ },
92
+ };
93
+ export const Empty = {
94
+ args: {
95
+ workflowId: 'wf-001',
96
+ executions: [],
97
+ },
98
+ };
99
+ export const SingleRunning = {
100
+ args: {
101
+ workflowId: 'wf-001',
102
+ executions: [mockExecutions[2]],
103
+ },
104
+ };
@@ -0,0 +1,8 @@
1
+ import type { ScheduledWorkflow } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ export interface WorkflowListItemProps {
3
+ workflow: ScheduledWorkflow;
4
+ onToggle?: (id: string, enabled: boolean) => void;
5
+ onTrigger?: (id: string) => void;
6
+ }
7
+ export declare function WorkflowListItem({ workflow, onToggle, onTrigger }: WorkflowListItemProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=workflow-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-list-item.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflow-list-item.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAuBD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qBAAqB,2CAiGxF"}
@@ -0,0 +1,68 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState, useTransition } from 'react';
4
+ import { Play, ChevronDown, ChevronRight, Clock, Calendar } from 'lucide-react';
5
+ import { toast } from 'sonner';
6
+ import { cn } from '../../../lib/utils.js';
7
+ import { Button } from '../../ui/button.js';
8
+ import { Badge } from '../../ui/badge.js';
9
+ import { Switch } from '../../ui/switch.js';
10
+ import { toggleWorkflow } from '../../../app/actions/toggle-workflow.js';
11
+ import { triggerWorkflow } from '../../../app/actions/trigger-workflow.js';
12
+ import { WorkflowExecutionHistory } from './workflow-execution-history.js';
13
+ function formatRelativeTime(date) {
14
+ if (date == null)
15
+ return 'Never';
16
+ const d = date instanceof Date ? date : new Date(date);
17
+ const now = new Date();
18
+ const diffMs = now.getTime() - d.getTime();
19
+ if (diffMs < 0) {
20
+ // Future date
21
+ const absDiff = Math.abs(diffMs);
22
+ if (absDiff < 60_000)
23
+ return 'in <1m';
24
+ if (absDiff < 3_600_000)
25
+ return `in ${Math.floor(absDiff / 60_000)}m`;
26
+ if (absDiff < 86_400_000)
27
+ return `in ${Math.floor(absDiff / 3_600_000)}h`;
28
+ return `in ${Math.floor(absDiff / 86_400_000)}d`;
29
+ }
30
+ if (diffMs < 60_000)
31
+ return '<1m ago';
32
+ if (diffMs < 3_600_000)
33
+ return `${Math.floor(diffMs / 60_000)}m ago`;
34
+ if (diffMs < 86_400_000)
35
+ return `${Math.floor(diffMs / 3_600_000)}h ago`;
36
+ return `${Math.floor(diffMs / 86_400_000)}d ago`;
37
+ }
38
+ export function WorkflowListItem({ workflow, onToggle, onTrigger }) {
39
+ const [expanded, setExpanded] = useState(false);
40
+ const [enabled, setEnabled] = useState(workflow.enabled);
41
+ const [isToggling, startToggleTransition] = useTransition();
42
+ const [isTriggering, startTriggerTransition] = useTransition();
43
+ function handleToggle(value) {
44
+ setEnabled(value);
45
+ startToggleTransition(async () => {
46
+ const result = await toggleWorkflow(workflow.id, value);
47
+ if (!result.success) {
48
+ setEnabled(!value);
49
+ toast.error(result.error ?? 'Failed to toggle workflow');
50
+ }
51
+ onToggle?.(workflow.id, value);
52
+ });
53
+ }
54
+ function handleTrigger(e) {
55
+ e.stopPropagation();
56
+ startTriggerTransition(async () => {
57
+ const result = await triggerWorkflow(workflow.id);
58
+ if (result.success) {
59
+ toast.success(`Workflow "${workflow.name}" triggered`);
60
+ }
61
+ else {
62
+ toast.error(result.error ?? 'Failed to trigger workflow');
63
+ }
64
+ onTrigger?.(workflow.id);
65
+ });
66
+ }
67
+ return (_jsxs("div", { "data-testid": "workflow-list-item", className: "rounded-lg border", children: [_jsxs("div", { className: "flex cursor-pointer items-center gap-3 px-4 py-3", onClick: () => setExpanded(!expanded), children: [expanded ? (_jsx(ChevronDown, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" })) : (_jsx(ChevronRight, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" })), _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [_jsx("span", { "data-testid": "workflow-name", className: "truncate text-sm font-medium", children: workflow.name }), workflow.cronExpression ? (_jsxs(Badge, { variant: "outline", className: "shrink-0 text-[10px]", children: [_jsx(Calendar, { className: "mr-1 h-2.5 w-2.5" }), workflow.cronExpression] })) : null, workflow.description ? (_jsx("span", { className: "text-muted-foreground hidden truncate text-xs lg:inline", children: workflow.description })) : null] }), _jsxs("div", { className: "flex shrink-0 items-center gap-3", children: [_jsxs("span", { className: "text-muted-foreground hidden items-center gap-1 text-[10px] sm:flex", children: [_jsx(Clock, { className: "h-2.5 w-2.5" }), formatRelativeTime(workflow.lastRunAt)] }), _jsx(Switch, { "data-testid": "workflow-toggle", checked: enabled, onCheckedChange: handleToggle, disabled: isToggling, onClick: (e) => e.stopPropagation(), className: cn('cursor-pointer', isToggling && 'opacity-50') }), _jsxs(Button, { size: "sm", variant: "outline", onClick: handleTrigger, disabled: isTriggering, "data-testid": "workflow-trigger-button", "aria-label": `Run ${workflow.name}`, className: "h-7 cursor-pointer px-2.5 text-xs", children: [_jsx(Play, { className: "mr-1 h-3 w-3" }), "Run"] })] })] }), expanded ? (_jsx("div", { className: "border-t px-4 py-3", children: _jsx(WorkflowExecutionHistory, { workflowId: workflow.id }) })) : null] }));
68
+ }
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { WorkflowListItem } from './workflow-list-item.js';
3
+ declare const meta: Meta<typeof WorkflowListItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const EnabledScheduled: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const ManualOnly: Story;
9
+ export declare const NeverRun: Story;
10
+ export declare const AllStates: Story;
11
+ //# sourceMappingURL=workflow-list-item.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-list-item.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflow-list-item.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAyDxD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAcvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { WorkflowListItem } from './workflow-list-item.js';
3
+ const now = new Date();
4
+ const enabledScheduledWorkflow = {
5
+ id: 'wf-001',
6
+ name: 'issue-triage',
7
+ description: 'Scan open GitHub issues and close resolved ones with evidence',
8
+ prompt: 'Scan all open issues...',
9
+ cronExpression: '0 9 * * MON',
10
+ timezone: 'America/New_York',
11
+ enabled: true,
12
+ lastRunAt: new Date(now.getTime() - 3_600_000),
13
+ nextRunAt: new Date(now.getTime() + 86_400_000),
14
+ repositoryPath: '/Users/dev/my-project',
15
+ createdAt: new Date(now.getTime() - 604_800_000),
16
+ updatedAt: now,
17
+ };
18
+ const disabledWorkflow = {
19
+ id: 'wf-002',
20
+ name: 'branch-rebase',
21
+ description: 'Rebase all tracked feature branches on main',
22
+ prompt: 'Rebase all feature branches...',
23
+ cronExpression: '0 2 * * *',
24
+ timezone: 'UTC',
25
+ enabled: false,
26
+ lastRunAt: new Date(now.getTime() - 172_800_000),
27
+ repositoryPath: '/Users/dev/my-project',
28
+ createdAt: new Date(now.getTime() - 1_209_600_000),
29
+ updatedAt: new Date(now.getTime() - 172_800_000),
30
+ };
31
+ const manualOnlyWorkflow = {
32
+ id: 'wf-003',
33
+ name: 'deploy-staging',
34
+ description: 'Deploy current branch to staging environment',
35
+ prompt: 'Deploy the current branch to staging...',
36
+ enabled: true,
37
+ repositoryPath: '/Users/dev/my-project',
38
+ createdAt: new Date(now.getTime() - 86_400_000),
39
+ updatedAt: now,
40
+ };
41
+ const neverRunWorkflow = {
42
+ id: 'wf-004',
43
+ name: 'dependency-audit',
44
+ description: 'Check for outdated or vulnerable dependencies',
45
+ prompt: 'Audit all dependencies...',
46
+ cronExpression: '0 0 * * SUN',
47
+ enabled: true,
48
+ repositoryPath: '/Users/dev/my-project',
49
+ createdAt: now,
50
+ updatedAt: now,
51
+ };
52
+ const meta = {
53
+ title: 'Features/Workflows/WorkflowListItem',
54
+ component: WorkflowListItem,
55
+ parameters: {
56
+ layout: 'padded',
57
+ },
58
+ tags: ['autodocs'],
59
+ decorators: [
60
+ (Story) => (_jsx("div", { className: "max-w-3xl", children: _jsx(Story, {}) })),
61
+ ],
62
+ };
63
+ export default meta;
64
+ export const EnabledScheduled = {
65
+ args: {
66
+ workflow: enabledScheduledWorkflow,
67
+ },
68
+ };
69
+ export const Disabled = {
70
+ args: {
71
+ workflow: disabledWorkflow,
72
+ },
73
+ };
74
+ export const ManualOnly = {
75
+ args: {
76
+ workflow: manualOnlyWorkflow,
77
+ },
78
+ };
79
+ export const NeverRun = {
80
+ args: {
81
+ workflow: neverRunWorkflow,
82
+ },
83
+ };
84
+ export const AllStates = {
85
+ decorators: [
86
+ (Story) => (_jsx("div", { className: "max-w-3xl space-y-2", children: _jsx(Story, {}) })),
87
+ ],
88
+ render: () => (_jsxs(_Fragment, { children: [_jsx(WorkflowListItem, { workflow: enabledScheduledWorkflow }), _jsx(WorkflowListItem, { workflow: disabledWorkflow }), _jsx(WorkflowListItem, { workflow: manualOnlyWorkflow }), _jsx(WorkflowListItem, { workflow: neverRunWorkflow })] })),
89
+ };
@@ -0,0 +1,8 @@
1
+ import type { ScheduledWorkflow } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ export interface WorkflowListProps {
3
+ workflows: ScheduledWorkflow[];
4
+ onToggle?: (id: string, enabled: boolean) => void;
5
+ onTrigger?: (id: string) => void;
6
+ }
7
+ export declare function WorkflowList({ workflows, onToggle, onTrigger }: WorkflowListProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=workflow-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-list.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflow-list.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CA4BjF"}
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { CalendarClock } from 'lucide-react';
4
+ import { WorkflowListItem } from './workflow-list-item.js';
5
+ export function WorkflowList({ workflows, onToggle, onTrigger }) {
6
+ if (workflows.length === 0) {
7
+ return (_jsxs("div", { "data-testid": "workflow-list-empty", className: "text-muted-foreground flex flex-col items-center justify-center py-12 text-center", children: [_jsx(CalendarClock, { className: "mb-2 h-6 w-6 opacity-20" }), _jsx("p", { className: "text-xs", children: "No workflows found." }), _jsxs("p", { className: "text-muted-foreground/60 mt-1 text-[10px]", children: ["Create one with ", _jsx("code", { className: "bg-muted rounded px-1", children: "shep workflow create" })] })] }));
8
+ }
9
+ return (_jsx("div", { "data-testid": "workflow-list", className: "space-y-2", children: workflows.map((workflow) => (_jsx(WorkflowListItem, { workflow: workflow, onToggle: onToggle, onTrigger: onTrigger }, workflow.id))) }));
10
+ }
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { WorkflowList } from './workflow-list.js';
3
+ declare const meta: Meta<typeof WorkflowList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Empty: Story;
8
+ export declare const SingleWorkflow: Story;
9
+ export declare const AllDisabled: Story;
10
+ export declare const AllEnabled: Story;
11
+ //# sourceMappingURL=workflow-list.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-list.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflow-list.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAwD/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAcnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAI5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WorkflowList } from './workflow-list.js';
3
+ const now = new Date();
4
+ const mockWorkflows = [
5
+ {
6
+ id: 'wf-001',
7
+ name: 'issue-triage',
8
+ description: 'Scan open GitHub issues and close resolved ones with evidence',
9
+ prompt: 'Scan all open issues...',
10
+ cronExpression: '0 9 * * MON',
11
+ timezone: 'America/New_York',
12
+ enabled: true,
13
+ lastRunAt: new Date(now.getTime() - 3_600_000),
14
+ nextRunAt: new Date(now.getTime() + 86_400_000),
15
+ repositoryPath: '/Users/dev/my-project',
16
+ createdAt: new Date(now.getTime() - 604_800_000),
17
+ updatedAt: now,
18
+ },
19
+ {
20
+ id: 'wf-002',
21
+ name: 'branch-rebase',
22
+ description: 'Rebase all tracked feature branches on main',
23
+ prompt: 'Rebase all feature branches...',
24
+ cronExpression: '0 2 * * *',
25
+ timezone: 'UTC',
26
+ enabled: false,
27
+ lastRunAt: new Date(now.getTime() - 172_800_000),
28
+ repositoryPath: '/Users/dev/my-project',
29
+ createdAt: new Date(now.getTime() - 1_209_600_000),
30
+ updatedAt: new Date(now.getTime() - 172_800_000),
31
+ },
32
+ {
33
+ id: 'wf-003',
34
+ name: 'deploy-staging',
35
+ description: 'Deploy current branch to staging environment',
36
+ prompt: 'Deploy the current branch to staging...',
37
+ enabled: true,
38
+ repositoryPath: '/Users/dev/my-project',
39
+ createdAt: new Date(now.getTime() - 86_400_000),
40
+ updatedAt: now,
41
+ },
42
+ {
43
+ id: 'wf-004',
44
+ name: 'dependency-audit',
45
+ description: 'Check for outdated or vulnerable dependencies',
46
+ prompt: 'Audit all dependencies...',
47
+ cronExpression: '0 0 * * SUN',
48
+ enabled: true,
49
+ repositoryPath: '/Users/dev/my-project',
50
+ createdAt: now,
51
+ updatedAt: now,
52
+ },
53
+ ];
54
+ const meta = {
55
+ title: 'Features/Workflows/WorkflowList',
56
+ component: WorkflowList,
57
+ parameters: {
58
+ layout: 'padded',
59
+ },
60
+ tags: ['autodocs'],
61
+ decorators: [
62
+ (Story) => (_jsx("div", { className: "max-w-3xl", children: _jsx(Story, {}) })),
63
+ ],
64
+ };
65
+ export default meta;
66
+ export const Default = {
67
+ args: {
68
+ workflows: mockWorkflows,
69
+ },
70
+ };
71
+ export const Empty = {
72
+ args: {
73
+ workflows: [],
74
+ },
75
+ };
76
+ export const SingleWorkflow = {
77
+ args: {
78
+ workflows: [mockWorkflows[0]],
79
+ },
80
+ };
81
+ export const AllDisabled = {
82
+ args: {
83
+ workflows: mockWorkflows.map((w) => ({ ...w, enabled: false })),
84
+ },
85
+ };
86
+ export const AllEnabled = {
87
+ args: {
88
+ workflows: mockWorkflows.map((w) => ({ ...w, enabled: true })),
89
+ },
90
+ };
@@ -0,0 +1,6 @@
1
+ import type { ScheduledWorkflow } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ export interface WorkflowsPageClientProps {
3
+ workflows: ScheduledWorkflow[];
4
+ }
5
+ export declare function WorkflowsPageClient({ workflows: initialWorkflows }: WorkflowsPageClientProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=workflows-page-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/workflows/workflows-page-client.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,wBAAwB,2CAuB5F"}
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState, useCallback } from 'react';
4
+ import { CalendarClock } from 'lucide-react';
5
+ import { WorkflowList } from './workflow-list.js';
6
+ export function WorkflowsPageClient({ workflows: initialWorkflows }) {
7
+ const [workflows, setWorkflows] = useState(initialWorkflows);
8
+ const handleToggle = useCallback((id, enabled) => {
9
+ setWorkflows((prev) => prev.map((w) => (w.id === id ? { ...w, enabled } : w)));
10
+ }, []);
11
+ const enabledCount = workflows.filter((w) => w.enabled).length;
12
+ const scheduledCount = workflows.filter((w) => w.cronExpression).length;
13
+ return (_jsxs("div", { "data-testid": "workflows-page-client", className: "max-w-4xl space-y-4", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(CalendarClock, { className: "text-muted-foreground h-4 w-4" }), _jsx("h1", { className: "text-sm font-bold tracking-tight", children: "Scheduled Workflows" }), _jsxs("span", { className: "text-muted-foreground text-[10px]", children: [enabledCount, " enabled, ", scheduledCount, " scheduled"] })] }), _jsx(WorkflowList, { workflows: workflows, onToggle: handleToggle })] }));
14
+ }