@shepai/cli 1.114.0 → 1.115.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.d.ts.map +1 -1
  2. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +4 -0
  3. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.d.ts.map +1 -1
  4. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.js +6 -1
  5. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  6. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +6 -1
  7. package/dist/src/presentation/web/app/actions/get-feature-drawer-data.d.ts.map +1 -1
  8. package/dist/src/presentation/web/app/actions/get-feature-drawer-data.js +4 -0
  9. package/dist/src/presentation/web/app/build-feature-node-data.d.ts +4 -0
  10. package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
  11. package/dist/src/presentation/web/app/build-feature-node-data.js +5 -0
  12. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +7 -1
  13. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  14. package/dist/src/presentation/web/app/build-graph-nodes.js +9 -12
  15. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -1
  16. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +17 -2
  17. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts +10 -0
  18. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts.map +1 -1
  19. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.js +69 -0
  20. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +14 -0
  21. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  22. package/dist/tsconfig.build.tsbuildinfo +1 -1
  23. package/package.json +1 -1
  24. package/web/.next/BUILD_ID +1 -1
  25. package/web/.next/build-manifest.json +2 -2
  26. package/web/.next/fallback-build-manifest.json +2 -2
  27. package/web/.next/prerender-manifest.json +3 -3
  28. package/web/.next/required-server-files.js +2 -2
  29. package/web/.next/required-server-files.json +2 -2
  30. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +20 -20
  31. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  32. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  33. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +26 -26
  34. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  35. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  36. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +26 -26
  37. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  38. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
  40. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  41. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  42. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +20 -20
  43. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  44. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  45. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +26 -26
  46. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  47. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  48. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +26 -26
  49. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  50. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  51. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +18 -18
  52. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  53. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  54. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
  55. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  56. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  57. package/web/.next/server/app/_global-error.html +2 -2
  58. package/web/.next/server/app/_global-error.rsc +1 -1
  59. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  60. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  61. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  62. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  63. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  64. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  65. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  66. package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
  67. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  68. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  69. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  70. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  71. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  72. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  73. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  74. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  75. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  76. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  77. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  78. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  79. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  80. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +1 -1
  81. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +1 -1
  82. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +1 -1
  83. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +1 -1
  84. package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js +1 -1
  85. package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js.map +1 -1
  86. package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
  87. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
  88. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
  89. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
  90. package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js +1 -1
  91. package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js.map +1 -1
  92. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
  93. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +1 -1
  94. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +1 -1
  95. package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js +1 -1
  96. package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js.map +1 -1
  97. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
  98. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
  99. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
  100. package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js +1 -1
  101. package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js.map +1 -1
  102. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js +1 -1
  103. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js.map +1 -1
  104. package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js +1 -1
  105. package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js.map +1 -1
  106. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
  107. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
  108. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  109. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  110. package/web/.next/server/chunks/ssr/{_10942246._.js → _7d4c400f._.js} +2 -2
  111. package/web/.next/server/chunks/ssr/{_10942246._.js.map → _7d4c400f._.js.map} +1 -1
  112. package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
  113. package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
  114. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  115. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  116. package/web/.next/server/chunks/ssr/{_7deb4af9._.js → _d6fedbbf._.js} +2 -2
  117. package/web/.next/server/chunks/ssr/{_7deb4af9._.js.map → _d6fedbbf._.js.map} +1 -1
  118. package/web/.next/server/chunks/ssr/{_f0432d1b._.js → _f166a7ed._.js} +2 -2
  119. package/web/.next/server/chunks/ssr/{_f0432d1b._.js.map → _f166a7ed._.js.map} +1 -1
  120. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  121. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  122. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +1 -1
  123. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +1 -1
  124. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  125. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  126. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  127. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  128. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  129. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  130. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +2 -2
  131. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +1 -1
  132. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  133. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  134. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  135. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  136. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +2 -2
  137. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +1 -1
  138. package/web/.next/server/pages/500.html +2 -2
  139. package/web/.next/server/server-reference-manifest.js +1 -1
  140. package/web/.next/server/server-reference-manifest.json +31 -31
  141. package/web/.next/static/chunks/{6cb5c415171426e8.js → 08c3f6e304e8d7b4.js} +1 -1
  142. package/web/.next/static/chunks/{0c701494594b6134.js → 29a45df76aba845e.js} +1 -1
  143. package/web/.next/static/chunks/{6fbd2c45d85eba3a.js → 36e2bf6ac6e90282.js} +1 -1
  144. package/web/.next/static/chunks/{fec29583d5cc1bed.js → 36ff38fd6b9d647d.js} +1 -1
  145. package/web/.next/static/chunks/{6b61a250047ee0b4.js → b6d30842eaeb3166.js} +2 -2
  146. package/web/.next/static/chunks/{e3d8ee066c7e996d.js → c50772767c14f013.js} +1 -1
  147. package/web/.next/static/chunks/{bcd3e54e075de2cb.js → c62c393c5d0912b7.js} +1 -1
  148. package/web/.next/static/chunks/{8d067c0e7cabc222.js → d4350f1fe1625279.js} +1 -1
  149. package/web/.next/static/chunks/{9fce0a460a0e89bc.js → d4bebfde2bed6130.js} +1 -1
  150. package/web/.next/static/chunks/ea784857fcad9e04.js +2 -0
  151. package/web/.next/static/chunks/31b1f992247624f8.js +0 -2
  152. /package/web/.next/static/{oI7zSl_ThcdDPhNbok2i3 → 8fO4nSkLwXorpa4D0V82M}/_buildManifest.js +0 -0
  153. /package/web/.next/static/{oI7zSl_ThcdDPhNbok2i3 → 8fO4nSkLwXorpa4D0V82M}/_clientMiddlewareManifest.json +0 -0
  154. /package/web/.next/static/{oI7zSl_ThcdDPhNbok2i3 → 8fO4nSkLwXorpa4D0V82M}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.tsx"],"names":[],"mappings":"AAaA,oEAAoE;AACpE,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AAED,wBAA8B,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,2DA8CvF"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.tsx"],"names":[],"mappings":"AAcA,oEAAoE;AACpE,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AAED,wBAA8B,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,2DAiDvF"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { resolve } from '../../../../../../lib/server-container.js';
3
3
  import { buildFeatureNodeData } from '../../../../../build-feature-node-data.js';
4
+ import { getSettings } from '../../../../../../../../../packages/core/src/infrastructure/services/settings.service.js';
4
5
  import { computeDrawerView, parseTabKey, } from '../../../../../../components/common/control-center-drawer/drawer-view.js';
5
6
  import { FeatureDrawerClient } from '../../../../../../components/common/control-center-drawer/feature-drawer-client.js';
6
7
  /** Skip static pre-rendering since we need runtime DI container. */
@@ -24,11 +25,14 @@ export default async function FeatureDrawerTabPage({ params }) {
24
25
  getArtifact.execute(featureId).catch(() => null),
25
26
  gitPrService.getRemoteUrl(feature.repositoryPath).catch(() => null),
26
27
  ]);
28
+ const { workflow } = getSettings();
27
29
  const nodeData = buildFeatureNodeData(feature, run, {
28
30
  repositoryName: repo?.name,
29
31
  baseBranch,
30
32
  oneLiner: artifact?.oneLiner,
31
33
  remoteUrl: remoteUrl ?? undefined,
34
+ enableEvidence: workflow.enableEvidence,
35
+ commitEvidence: workflow.commitEvidence,
32
36
  });
33
37
  const view = computeDrawerView({
34
38
  selectedNode: nodeData,
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.tsx"],"names":[],"mappings":"AAOA,oEAAoE;AACpE,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAA8B,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,2DAmCjF"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.tsx"],"names":[],"mappings":"AAQA,oEAAoE;AACpE,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAA8B,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,2DAuCjF"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { resolve } from '../../../../../lib/server-container.js';
3
3
  import { buildFeatureNodeData } from '../../../../build-feature-node-data.js';
4
+ import { getSettings } from '../../../../../../../../packages/core/src/infrastructure/services/settings.service.js';
4
5
  import { computeDrawerView } from '../../../../../components/common/control-center-drawer/drawer-view.js';
5
6
  import { FeatureDrawerClient } from '../../../../../components/common/control-center-drawer/feature-drawer-client.js';
6
7
  /** Skip static pre-rendering since we need runtime DI container. */
@@ -18,7 +19,11 @@ export default async function FeatureDrawerPage({ params }) {
18
19
  if (!feature)
19
20
  return null;
20
21
  const run = feature.agentRunId ? await agentRunRepo.findById(feature.agentRunId) : null;
21
- const nodeData = buildFeatureNodeData(feature, run);
22
+ const { workflow } = getSettings();
23
+ const nodeData = buildFeatureNodeData(feature, run, {
24
+ enableEvidence: workflow.enableEvidence,
25
+ commitEvidence: workflow.commitEvidence,
26
+ });
22
27
  const view = computeDrawerView({
23
28
  selectedNode: nodeData,
24
29
  isCreateDrawerOpen: false,
@@ -1 +1 @@
1
- {"version":3,"file":"get-graph-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/(dashboard)/get-graph-data.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ1C,wBAAsB,YAAY,IAAI,OAAO,CAAC;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAkFxF"}
1
+ {"version":3,"file":"get-graph-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/(dashboard)/get-graph-data.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ1C,wBAAsB,YAAY,IAAI,OAAO,CAAC;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAsFxF"}
@@ -1,5 +1,6 @@
1
1
  import { resolve } from '../../lib/server-container.js';
2
2
  import { CiStatus } from '../../../../../packages/core/src/domain/generated/output.js';
3
+ import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
3
4
  import { layoutWithDagre, CANVAS_LAYOUT_DEFAULTS } from '../../lib/layout-with-dagre.js';
4
5
  import { buildGraphNodes } from '../build-graph-nodes.js';
5
6
  const CI_STATUS_MAP = {
@@ -53,7 +54,11 @@ export async function getGraphData() {
53
54
  const run = feature.agentRunId ? await agentRunRepo.findById(feature.agentRunId) : null;
54
55
  return { feature, run };
55
56
  }));
56
- const { nodes, edges } = buildGraphNodes(repositories, featuresWithRuns);
57
+ const { workflow } = getSettings();
58
+ const { nodes, edges } = buildGraphNodes(repositories, featuresWithRuns, {
59
+ enableEvidence: workflow.enableEvidence,
60
+ commitEvidence: workflow.commitEvidence,
61
+ });
57
62
  // Enrich feature nodes with deployment status
58
63
  let deploymentService = null;
59
64
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"get-feature-drawer-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-feature-drawer-data.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAgC7F"}
1
+ {"version":3,"file":"get-feature-drawer-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-feature-drawer-data.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAoC7F"}
@@ -1,6 +1,7 @@
1
1
  'use server';
2
2
  import { resolve } from '../../lib/server-container.js';
3
3
  import { buildFeatureNodeData } from '../build-feature-node-data.js';
4
+ import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
4
5
  /**
5
6
  * Fetches full FeatureNodeData for a given feature ID.
6
7
  * Used by the drawer for targeted data syncing without triggering
@@ -29,11 +30,14 @@ export async function getFeatureDrawerData(featureId) {
29
30
  getArtifact.execute(featureId).catch(() => null),
30
31
  gitPrService.getRemoteUrl(feature.repositoryPath).catch(() => null),
31
32
  ]);
33
+ const { workflow } = getSettings();
32
34
  return buildFeatureNodeData(feature, run, {
33
35
  repositoryName: repo?.name,
34
36
  baseBranch,
35
37
  oneLiner: artifact?.oneLiner,
36
38
  remoteUrl: remoteUrl ?? undefined,
39
+ enableEvidence: workflow.enableEvidence,
40
+ commitEvidence: workflow.commitEvidence,
37
41
  });
38
42
  }
39
43
  catch {
@@ -7,6 +7,10 @@ export interface BuildFeatureNodeDataOptions {
7
7
  oneLiner?: string;
8
8
  /** Remote URL for the repository (HTTPS) */
9
9
  remoteUrl?: string;
10
+ /** Whether evidence collection is enabled (global workflow setting) */
11
+ enableEvidence?: boolean;
12
+ /** Whether evidence is committed to the PR body (global workflow setting) */
13
+ commitEvidence?: boolean;
10
14
  }
11
15
  /**
12
16
  * Builds a FeatureNodeData object from a Feature entity and optional AgentRun.
@@ -1 +1 @@
1
- {"version":3,"file":"build-feature-node-data.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-feature-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,eAAe,CA0CjB"}
1
+ {"version":3,"file":"build-feature-node-data.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-feature-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,eAAe,CA+CjB"}
@@ -23,6 +23,11 @@ export function buildFeatureNodeData(feature, run, options) {
23
23
  userQuery: feature.userQuery,
24
24
  createdAt: feature.createdAt instanceof Date ? feature.createdAt.getTime() : feature.createdAt,
25
25
  ...(feature.fast && { fastMode: true }),
26
+ approvalGates: feature.approvalGates,
27
+ push: feature.push,
28
+ openPr: feature.openPr,
29
+ ...(options?.enableEvidence != null && { enableEvidence: options.enableEvidence }),
30
+ ...(options?.commitEvidence != null && { commitEvidence: options.commitEvidence }),
26
31
  ...(options?.repositoryName && { repositoryName: options.repositoryName }),
27
32
  ...(options?.baseBranch && { baseBranch: options.baseBranch }),
28
33
  ...(options?.oneLiner && { oneLiner: options.oneLiner }),
@@ -13,7 +13,13 @@ export interface FeatureWithRun {
13
13
  * (id: `virtual-repo-${repositoryPath}`). This ensures the dashboard never
14
14
  * renders empty when features exist but their repository rows are missing.
15
15
  */
16
- export declare function buildGraphNodes(repositories: Repository[], featuresWithRuns: FeatureWithRun[]): {
16
+ export interface BuildGraphNodesOptions {
17
+ /** Whether evidence collection is enabled (global workflow setting) */
18
+ enableEvidence?: boolean;
19
+ /** Whether evidence is committed to the PR body (global workflow setting) */
20
+ commitEvidence?: boolean;
21
+ }
22
+ export declare function buildGraphNodes(repositories: Repository[], featuresWithRuns: FeatureWithRun[], options?: BuildGraphNodesOptions): {
17
23
  nodes: CanvasNodeType[];
18
24
  edges: Edge[];
19
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"build-graph-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-graph-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,UAAU,EAAE,EAC1B,gBAAgB,EAAE,cAAc,EAAE,GACjC;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CA2E5C"}
1
+ {"version":3,"file":"build-graph-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-graph-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,UAAU,EAAE,EAC1B,gBAAgB,EAAE,cAAc,EAAE,EAClC,OAAO,CAAC,EAAE,sBAAsB,GAC/B;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CA2F5C"}
@@ -1,15 +1,7 @@
1
1
  import { AgentRunStatus } from '../../../../packages/core/src/domain/generated/output.js';
2
2
  import { deriveNodeState, deriveProgress, deriveLifecycle, } from '../components/common/feature-node/derive-feature-state.js';
3
3
  import { isProcessAlive } from '../../../../packages/core/src/infrastructure/services/process/is-process-alive.js';
4
- /**
5
- * Builds React Flow nodes and edges from persisted repositories and features.
6
- *
7
- * Features whose repositoryPath is not covered by any real repository row are
8
- * grouped under a synthetic "virtual" repository node
9
- * (id: `virtual-repo-${repositoryPath}`). This ensures the dashboard never
10
- * renders empty when features exist but their repository rows are missing.
11
- */
12
- export function buildGraphNodes(repositories, featuresWithRuns) {
4
+ export function buildGraphNodes(repositories, featuresWithRuns, options) {
13
5
  // Normalize path separators so Windows backslash paths match forward-slash paths
14
6
  const normalizePath = (p) => p.replace(/\\/g, '/');
15
7
  // Group features by normalized repository path
@@ -42,7 +34,7 @@ export function buildGraphNodes(repositories, featuresWithRuns) {
42
34
  },
43
35
  });
44
36
  const repoFeatures = featuresByRepo[normalizedRepoPath] ?? [];
45
- appendFeatureNodes(repoFeatures, repoNodeId, featuresWithRuns, nodes, edges, repo.name);
37
+ appendFeatureNodes(repoFeatures, repoNodeId, featuresWithRuns, nodes, edges, repo.name, options);
46
38
  }
47
39
  // Second pass: group orphaned features under virtual repository nodes
48
40
  for (const [repoPath, orphanFeatures] of Object.entries(featuresByRepo)) {
@@ -56,7 +48,7 @@ export function buildGraphNodes(repositories, featuresWithRuns) {
56
48
  position: { x: 0, y: 0 },
57
49
  data: { name: repoName, repositoryPath: repoPath },
58
50
  });
59
- appendFeatureNodes(orphanFeatures, virtualRepoNodeId, featuresWithRuns, nodes, edges, repoName);
51
+ appendFeatureNodes(orphanFeatures, virtualRepoNodeId, featuresWithRuns, nodes, edges, repoName, options);
60
52
  }
61
53
  // Add parent→child dependency edges
62
54
  for (const { feature } of featuresWithRuns) {
@@ -75,7 +67,7 @@ export function buildGraphNodes(repositories, featuresWithRuns) {
75
67
  }
76
68
  return { nodes, edges };
77
69
  }
78
- function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes, edges, repoName) {
70
+ function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes, edges, repoName, options) {
79
71
  // Sort by createdAt so newest features appear last (bottom) in the layout
80
72
  const sorted = [...repoFeatures].sort((a, b) => {
81
73
  const aTime = a.feature.createdAt instanceof Date
@@ -112,6 +104,11 @@ function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes
112
104
  userQuery: feature.userQuery,
113
105
  createdAt: feature.createdAt instanceof Date ? feature.createdAt.getTime() : feature.createdAt,
114
106
  ...(feature.fast && { fastMode: true }),
107
+ approvalGates: feature.approvalGates,
108
+ push: feature.push,
109
+ openPr: feature.openPr,
110
+ ...(options?.enableEvidence != null && { enableEvidence: options.enableEvidence }),
111
+ ...(options?.commitEvidence != null && { commitEvidence: options.commitEvidence }),
115
112
  ...(repoName && { repositoryName: repoName }),
116
113
  ...(run?.agentType && { agentType: run.agentType }),
117
114
  ...(run?.modelId && { modelId: run.modelId }),
@@ -1 +1 @@
1
- {"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAOxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAoDrD"}
1
+ {"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAqDrD"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useState, useEffect, useRef } from 'react';
4
- import { AlertTriangle, ExternalLink, GitBranch, GitCommitHorizontal, RotateCcw, Zap, } from 'lucide-react';
4
+ import { AlertTriangle, Check, ExternalLink, FileSearch, GitBranch, GitCommitHorizontal, RotateCcw, ShieldCheck, X, Zap, } from 'lucide-react';
5
5
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
6
  import { PrStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
7
7
  import { cn } from '../../../lib/utils.js';
@@ -11,10 +11,11 @@ import { CiStatusBadge } from '../../common/ci-status-badge/index.js';
11
11
  import { CometSpinner } from '../../ui/comet-spinner.js';
12
12
  import { featureNodeStateConfig, lifecycleDisplayLabels } from '../../common/feature-node/index.js';
13
13
  import { getAgentTypeIcon, agentTypeLabels, } from '../../common/feature-node/agent-type-icons.js';
14
+ import { getModelMeta } from '../../../lib/model-metadata.js';
14
15
  import { formatDuration } from '../../../lib/format-duration.js';
15
16
  export function OverviewTab({ data }) {
16
17
  const isCompleted = data.lifecycle === 'maintain';
17
- return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data })] }));
18
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data }), _jsx(FeatureSettings, { data: data })] }));
18
19
  }
19
20
  function FeatureStateBadge({ data }) {
20
21
  const config = featureNodeStateConfig[data.state];
@@ -108,6 +109,20 @@ function AgentDetailRow({ agentType }) {
108
109
  const label = agentTypeLabels[agentType] ?? agentType;
109
110
  return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Agent" }), _jsxs("span", { className: "flex items-center gap-2 text-sm", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), label] })] }));
110
111
  }
112
+ // ── Settings section ─────────────────────────────────────────────────
113
+ function SettingBadge({ enabled, label }) {
114
+ return (_jsxs("span", { className: cn('inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium', enabled ? 'bg-emerald-50 text-emerald-700' : 'bg-muted text-muted-foreground'), children: [enabled ? _jsx(Check, { className: "h-3 w-3" }) : _jsx(X, { className: "h-3 w-3" }), label] }));
115
+ }
116
+ function FeatureSettings({ data }) {
117
+ const hasSettings = data.approvalGates != null ||
118
+ data.push != null ||
119
+ data.openPr != null ||
120
+ data.enableEvidence != null ||
121
+ data.modelId;
122
+ if (!hasSettings)
123
+ return null;
124
+ return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-settings", className: "flex flex-col gap-3 p-4", children: [_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "SETTINGS" }), data.modelId ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Model" }), _jsx("span", { className: "text-sm", children: getModelMeta(data.modelId).displayName || data.modelId })] })) : null, data.approvalGates ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(ShieldCheck, { className: "h-3 w-3" }), "Auto-Approve"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.approvalGates.allowPrd, label: "PRD" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowPlan, label: "Plan" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowMerge, label: "Merge" })] })] })) : null, data.enableEvidence != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(FileSearch, { className: "h-3 w-3" }), "Evidence"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.enableEvidence, label: "Collect" }), data.commitEvidence != null ? (_jsx(SettingBadge, { enabled: data.commitEvidence, label: "Add to PR" })) : null] })] })) : null, data.push != null || data.openPr != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(GitBranch, { className: "h-3 w-3" }), "Git"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [data.push != null ? _jsx(SettingBadge, { enabled: data.push, label: "Push" }) : null, data.openPr != null ? _jsx(SettingBadge, { enabled: data.openPr, label: "PR" }) : null] })] })) : null] })] }));
125
+ }
111
126
  function DetailRow({ label, value }) {
112
127
  return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), _jsx("span", { className: "text-sm", children: value })] }));
113
128
  }
@@ -37,4 +37,14 @@ export declare const DuplicateSummaryHidden: Story;
37
37
  export declare const DifferentSummary: Story;
38
38
  /** Completed feature with PR — progress hidden, PR shown in status section without borders. */
39
39
  export declare const CompletedWithPr: Story;
40
+ /** Feature with all settings visible — approval gates, evidence, git, and model. */
41
+ export declare const WithAllSettings: Story;
42
+ /** Feature with no auto-approve gates enabled. */
43
+ export declare const WithSettingsAllDisabled: Story;
44
+ /** Feature with all auto-approve gates enabled. */
45
+ export declare const WithSettingsAllApproved: Story;
46
+ /** Feature with settings and fast mode. */
47
+ export declare const FastModeWithSettings: Story;
48
+ /** Feature with evidence enabled but commit to PR disabled. */
49
+ export declare const EvidenceCollectOnly: Story;
40
50
  //# sourceMappingURL=overview-tab.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overview-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AA0G1C,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,iDAAiD;AACjD,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAOF,6CAA6C;AAC7C,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAwBF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAMF,0BAA0B;AAC1B,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,oBAAoB;AACpB,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,KAclC,CAAC;AAqBF,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,EAAE,KAEpC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAC"}
1
+ {"version":3,"file":"overview-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AAC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AAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC"}
@@ -252,3 +252,72 @@ export const CompletedWithPr = {
252
252
  },
253
253
  },
254
254
  };
255
+ /* ---------------------------------------------------------------------------
256
+ * Settings section stories
257
+ * ------------------------------------------------------------------------- */
258
+ /** Feature with all settings visible — approval gates, evidence, git, and model. */
259
+ export const WithAllSettings = {
260
+ args: {
261
+ data: {
262
+ ...noPrData,
263
+ modelId: 'claude-sonnet-4-6',
264
+ approvalGates: { allowPrd: true, allowPlan: true, allowMerge: false },
265
+ enableEvidence: true,
266
+ commitEvidence: true,
267
+ push: true,
268
+ openPr: true,
269
+ },
270
+ },
271
+ };
272
+ /** Feature with no auto-approve gates enabled. */
273
+ export const WithSettingsAllDisabled = {
274
+ args: {
275
+ data: {
276
+ ...noPrData,
277
+ modelId: 'gemini-2.5-pro',
278
+ approvalGates: { allowPrd: false, allowPlan: false, allowMerge: false },
279
+ enableEvidence: false,
280
+ commitEvidence: false,
281
+ push: false,
282
+ openPr: false,
283
+ },
284
+ },
285
+ };
286
+ /** Feature with all auto-approve gates enabled. */
287
+ export const WithSettingsAllApproved = {
288
+ args: {
289
+ data: {
290
+ ...noPrData,
291
+ modelId: 'claude-opus-4-6',
292
+ approvalGates: { allowPrd: true, allowPlan: true, allowMerge: true },
293
+ enableEvidence: true,
294
+ commitEvidence: true,
295
+ push: true,
296
+ openPr: true,
297
+ },
298
+ },
299
+ };
300
+ /** Feature with settings and fast mode. */
301
+ export const FastModeWithSettings = {
302
+ args: {
303
+ data: {
304
+ ...fastModeData,
305
+ modelId: 'claude-sonnet-4-6',
306
+ approvalGates: { allowPrd: false, allowPlan: false, allowMerge: true },
307
+ enableEvidence: true,
308
+ commitEvidence: false,
309
+ push: true,
310
+ openPr: true,
311
+ },
312
+ },
313
+ };
314
+ /** Feature with evidence enabled but commit to PR disabled. */
315
+ export const EvidenceCollectOnly = {
316
+ args: {
317
+ data: {
318
+ ...noPrData,
319
+ enableEvidence: true,
320
+ commitEvidence: false,
321
+ },
322
+ },
323
+ };
@@ -59,6 +59,20 @@ export interface FeatureNodeData {
59
59
  commitHash?: string;
60
60
  mergeable?: boolean;
61
61
  };
62
+ /** Approval gates configuration for phase transitions */
63
+ approvalGates?: {
64
+ allowPrd: boolean;
65
+ allowPlan: boolean;
66
+ allowMerge: boolean;
67
+ };
68
+ /** Whether to push branch to remote after implementation */
69
+ push?: boolean;
70
+ /** Whether to open a PR after implementation */
71
+ openPr?: boolean;
72
+ /** Whether evidence collection is enabled for this feature */
73
+ enableEvidence?: boolean;
74
+ /** Whether evidence is committed to the PR body */
75
+ commitEvidence?: boolean;
62
76
  /** Whether the feature has plan data available */
63
77
  hasPlan?: boolean;
64
78
  /** Deployment status for features with an active deployment */
@@ -1 +1 @@
1
- {"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAOxE,CAAC;AA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ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAOxE,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAOvE,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM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