@shepai/cli 1.174.0 → 1.175.0-pr527.9ada632

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 (502) hide show
  1. package/apis/json-schema/ActionDispositionEntry.yaml +14 -0
  2. package/apis/json-schema/DependencyFinding.yaml +28 -0
  3. package/apis/json-schema/DependencyRiskType.yaml +11 -0
  4. package/apis/json-schema/DependencyRules.yaml +38 -0
  5. package/apis/json-schema/EffectivePolicySnapshot.yaml +24 -0
  6. package/apis/json-schema/ReleaseIntegrityCheck.yaml +22 -0
  7. package/apis/json-schema/ReleaseIntegrityCheckType.yaml +9 -0
  8. package/apis/json-schema/ReleaseIntegrityResult.yaml +16 -0
  9. package/apis/json-schema/ReleaseRules.yaml +21 -0
  10. package/apis/json-schema/Repository.yaml +6 -0
  11. package/apis/json-schema/SecurityActionCategory.yaml +10 -0
  12. package/apis/json-schema/SecurityActionDisposition.yaml +8 -0
  13. package/apis/json-schema/SecurityConfig.yaml +17 -0
  14. package/apis/json-schema/SecurityEvent.yaml +36 -0
  15. package/apis/json-schema/SecurityMode.yaml +8 -0
  16. package/apis/json-schema/SecurityPolicy.yaml +24 -0
  17. package/apis/json-schema/SecuritySeverity.yaml +9 -0
  18. package/apis/json-schema/Settings.yaml +3 -0
  19. package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts +15 -1
  20. package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts.map +1 -1
  21. package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts +3 -1
  22. package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts.map +1 -1
  23. package/dist/packages/core/src/application/ports/output/repositories/repository-repository.interface.d.ts +3 -1
  24. package/dist/packages/core/src/application/ports/output/repositories/repository-repository.interface.d.ts.map +1 -1
  25. package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts +76 -0
  26. package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts.map +1 -0
  27. package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.js +11 -0
  28. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +28 -0
  29. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
  30. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.js +2 -0
  31. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts +85 -0
  32. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts.map +1 -1
  33. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.js +21 -0
  34. package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts +77 -0
  35. package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts.map +1 -0
  36. package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.js +13 -0
  37. package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts +11 -0
  38. package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts.map +1 -1
  39. package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.d.ts.map +1 -1
  40. package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.js +2 -0
  41. package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.d.ts.map +1 -1
  42. package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.js +2 -0
  43. package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.d.ts.map +1 -1
  44. package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.js +2 -0
  45. package/dist/packages/core/src/application/use-cases/features/create/create-feature-from-remote.use-case.d.ts +67 -0
  46. package/dist/packages/core/src/application/use-cases/features/create/create-feature-from-remote.use-case.d.ts.map +1 -0
  47. package/dist/packages/core/src/application/use-cases/features/create/create-feature-from-remote.use-case.js +128 -0
  48. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
  49. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +1 -0
  50. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
  51. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +2 -0
  52. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -1
  53. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +2 -0
  54. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts +16 -5
  55. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts.map +1 -1
  56. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.js +76 -14
  57. package/dist/packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.d.ts +30 -0
  58. package/dist/packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.d.ts.map +1 -0
  59. package/dist/packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.js +51 -0
  60. package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts +71 -0
  61. package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts.map +1 -0
  62. package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.js +215 -0
  63. package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts +24 -0
  64. package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts.map +1 -0
  65. package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.js +56 -0
  66. package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts +36 -0
  67. package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts.map +1 -0
  68. package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.js +76 -0
  69. package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts +14 -0
  70. package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts.map +1 -0
  71. package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.js +46 -0
  72. package/dist/packages/core/src/domain/errors/security-violation.error.d.ts +15 -0
  73. package/dist/packages/core/src/domain/errors/security-violation.error.d.ts.map +1 -0
  74. package/dist/packages/core/src/domain/errors/security-violation.error.js +20 -0
  75. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  76. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +5 -1
  77. package/dist/packages/core/src/domain/generated/output.d.ts +267 -0
  78. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  79. package/dist/packages/core/src/domain/generated/output.js +43 -0
  80. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  81. package/dist/packages/core/src/infrastructure/di/container.js +67 -0
  82. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/repository.mapper.d.ts +2 -0
  83. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/repository.mapper.d.ts.map +1 -1
  84. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/repository.mapper.js +4 -0
  85. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts +44 -0
  86. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts.map +1 -0
  87. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.js +55 -0
  88. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +3 -0
  89. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  90. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +14 -0
  91. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts +18 -0
  92. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts.map +1 -0
  93. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.js +31 -0
  94. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts +29 -0
  95. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts.map +1 -0
  96. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.js +53 -0
  97. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/055-add-repository-fork-fields.d.ts +12 -0
  98. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/055-add-repository-fork-fields.d.ts.map +1 -0
  99. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/055-add-repository-fork-fields.js +26 -0
  100. package/dist/packages/core/src/infrastructure/repositories/sqlite-repository.repository.d.ts +2 -1
  101. package/dist/packages/core/src/infrastructure/repositories/sqlite-repository.repository.d.ts.map +1 -1
  102. package/dist/packages/core/src/infrastructure/repositories/sqlite-repository.repository.js +14 -0
  103. package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts +24 -0
  104. package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts.map +1 -0
  105. package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.js +96 -0
  106. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  107. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +12 -3
  108. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts +2 -0
  109. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
  110. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +12 -0
  111. package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts +22 -0
  112. package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts.map +1 -0
  113. package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.js +30 -0
  114. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts +10 -0
  115. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts.map +1 -1
  116. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +34 -0
  117. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts.map +1 -1
  118. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts +3 -1
  119. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts.map +1 -1
  120. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.js +7 -1
  121. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts +3 -1
  122. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
  123. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +32 -1
  124. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  125. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +19 -0
  126. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts +45 -0
  127. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts.map +1 -0
  128. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.js +70 -0
  129. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts +4 -1
  130. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts.map +1 -1
  131. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.js +10 -0
  132. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts +13 -1
  133. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts.map +1 -1
  134. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.js +155 -1
  135. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +15 -0
  136. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  137. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +62 -0
  138. package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts +53 -0
  139. package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts.map +1 -0
  140. package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.js +241 -0
  141. package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts +44 -0
  142. package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts.map +1 -0
  143. package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.js +194 -0
  144. package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts +28 -0
  145. package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts.map +1 -0
  146. package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.js +50 -0
  147. package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts +26 -0
  148. package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts.map +1 -0
  149. package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.js +147 -0
  150. package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts +44 -0
  151. package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts.map +1 -0
  152. package/dist/packages/core/src/infrastructure/services/security/security-policy.service.js +174 -0
  153. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts +1 -0
  154. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts.map +1 -1
  155. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +61 -0
  156. package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
  157. package/dist/src/presentation/cli/commands/feat/new.command.js +32 -6
  158. package/dist/src/presentation/cli/commands/repo/index.d.ts.map +1 -1
  159. package/dist/src/presentation/cli/commands/repo/index.js +3 -1
  160. package/dist/src/presentation/cli/commands/repo/init-remote.command.d.ts +15 -0
  161. package/dist/src/presentation/cli/commands/repo/init-remote.command.d.ts.map +1 -0
  162. package/dist/src/presentation/cli/commands/repo/init-remote.command.js +44 -0
  163. package/dist/src/presentation/cli/commands/security.command.d.ts +16 -0
  164. package/dist/src/presentation/cli/commands/security.command.d.ts.map +1 -0
  165. package/dist/src/presentation/cli/commands/security.command.js +118 -0
  166. package/dist/src/presentation/cli/index.js +2 -0
  167. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  168. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +2 -1
  169. package/dist/src/presentation/web/app/actions/create-feature-from-remote.d.ts +31 -0
  170. package/dist/src/presentation/web/app/actions/create-feature-from-remote.d.ts.map +1 -0
  171. package/dist/src/presentation/web/app/actions/create-feature-from-remote.js +69 -0
  172. package/dist/src/presentation/web/app/actions/import-github-repository.d.ts +1 -0
  173. package/dist/src/presentation/web/app/actions/import-github-repository.d.ts.map +1 -1
  174. package/dist/src/presentation/web/app/actions/import-github-repository.js +1 -1
  175. package/dist/src/presentation/web/app/actions/security.d.ts +28 -0
  176. package/dist/src/presentation/web/app/actions/security.d.ts.map +1 -0
  177. package/dist/src/presentation/web/app/actions/security.js +59 -0
  178. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +3 -1
  179. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  180. package/dist/src/presentation/web/app/build-graph-nodes.js +2 -0
  181. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +2 -0
  182. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  183. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +1 -1
  184. package/dist/src/presentation/web/components/common/feature-create-drawer/repository-combobox.stories.d.ts +2 -0
  185. package/dist/src/presentation/web/components/common/feature-create-drawer/repository-combobox.stories.d.ts.map +1 -1
  186. package/dist/src/presentation/web/components/common/feature-create-drawer/repository-combobox.stories.js +22 -0
  187. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +3 -1
  188. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  189. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  190. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +2 -1
  191. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts +3 -1
  192. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts.map +1 -1
  193. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.js +3 -2
  194. package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts +6 -0
  195. package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts.map +1 -0
  196. package/dist/src/presentation/web/components/common/repository-node/security-panel.js +29 -0
  197. package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts +10 -0
  198. package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts.map +1 -0
  199. package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.js +53 -0
  200. package/dist/src/presentation/web/components/common/security-badge.d.ts +7 -0
  201. package/dist/src/presentation/web/components/common/security-badge.d.ts.map +1 -0
  202. package/dist/src/presentation/web/components/common/security-badge.js +30 -0
  203. package/dist/src/presentation/web/components/common/security-badge.stories.d.ts +12 -0
  204. package/dist/src/presentation/web/components/common/security-badge.stories.d.ts.map +1 -0
  205. package/dist/src/presentation/web/components/common/security-badge.stories.js +20 -0
  206. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  207. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +16 -3
  208. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts +6 -0
  209. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts.map +1 -0
  210. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.js +60 -0
  211. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts +14 -0
  212. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts.map +1 -0
  213. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.js +116 -0
  214. package/dist/src/presentation/web/lib/feature-flags.js +1 -1
  215. package/dist/translations/ar/cli.json +32 -0
  216. package/dist/translations/ar/web.json +43 -1
  217. package/dist/translations/de/cli.json +32 -0
  218. package/dist/translations/de/web.json +43 -1
  219. package/dist/translations/en/cli.json +32 -0
  220. package/dist/translations/en/web.json +43 -1
  221. package/dist/translations/es/cli.json +32 -0
  222. package/dist/translations/es/web.json +43 -1
  223. package/dist/translations/fr/cli.json +32 -0
  224. package/dist/translations/fr/web.json +43 -1
  225. package/dist/translations/he/cli.json +32 -0
  226. package/dist/translations/he/web.json +43 -1
  227. package/dist/translations/pt/cli.json +32 -0
  228. package/dist/translations/pt/web.json +43 -1
  229. package/dist/translations/ru/cli.json +32 -0
  230. package/dist/translations/ru/web.json +43 -1
  231. package/dist/tsconfig.build.tsbuildinfo +1 -1
  232. package/package.json +1 -1
  233. package/web/.next/BUILD_ID +1 -1
  234. package/web/.next/build-manifest.json +2 -2
  235. package/web/.next/fallback-build-manifest.json +2 -2
  236. package/web/.next/prerender-manifest.json +3 -3
  237. package/web/.next/required-server-files.js +3 -3
  238. package/web/.next/required-server-files.json +3 -3
  239. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
  240. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +2 -1
  241. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  242. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  243. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
  244. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +2 -1
  245. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  246. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  247. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +30 -30
  248. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -1
  249. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  250. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  251. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +38 -38
  252. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +2 -1
  253. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  254. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  255. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +38 -38
  256. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +2 -1
  257. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  258. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  259. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  260. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +2 -1
  261. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  262. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  263. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  264. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -1
  265. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  266. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  267. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
  268. package/web/.next/server/app/(dashboard)/chat/page.js +2 -1
  269. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  270. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  271. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +30 -30
  272. package/web/.next/server/app/(dashboard)/create/page.js +2 -1
  273. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  274. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  275. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +38 -38
  276. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +2 -1
  277. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  278. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  279. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +38 -38
  280. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +2 -1
  281. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  282. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  283. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
  284. package/web/.next/server/app/(dashboard)/page.js +2 -1
  285. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  286. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  287. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  288. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +2 -1
  289. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  290. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  291. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  292. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -1
  293. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  294. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  295. package/web/.next/server/app/_global-error.html +2 -2
  296. package/web/.next/server/app/_global-error.rsc +1 -1
  297. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  298. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  299. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  300. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  301. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  302. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
  303. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  304. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  305. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  306. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  307. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  308. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  309. package/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  310. package/web/.next/server/app/api/sessions-batch/route.js.nft.json +1 -1
  311. package/web/.next/server/app/features/page/server-reference-manifest.json +6 -6
  312. package/web/.next/server/app/features/page.js.nft.json +1 -1
  313. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  314. package/web/.next/server/app/settings/page/server-reference-manifest.json +33 -18
  315. package/web/.next/server/app/settings/page.js +1 -1
  316. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  317. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  318. package/web/.next/server/app/skills/page/server-reference-manifest.json +13 -13
  319. package/web/.next/server/app/skills/page.js +2 -1
  320. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  321. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  322. package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
  323. package/web/.next/server/app/tools/page.js +2 -1
  324. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  325. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  326. package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
  327. package/web/.next/server/app/version/page.js.nft.json +1 -1
  328. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  329. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  330. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  331. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  332. package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.js +1 -1
  333. package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.js.map +1 -1
  334. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  335. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  336. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js +3 -0
  337. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js.map +1 -0
  338. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js +3 -0
  339. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js.map +1 -0
  340. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js +3 -0
  341. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js.map +1 -0
  342. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  343. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  344. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  345. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  346. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +1 -1
  347. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +1 -1
  348. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  349. package/web/.next/server/chunks/ssr/[root-of-the-server]__51ec77a8._.js +3 -0
  350. package/web/.next/server/chunks/ssr/[root-of-the-server]__51ec77a8._.js.map +1 -0
  351. package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js +4 -0
  352. package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js.map +1 -0
  353. package/web/.next/server/chunks/ssr/[root-of-the-server]__66047a1b._.js +3 -0
  354. package/web/.next/server/chunks/ssr/[root-of-the-server]__66047a1b._.js.map +1 -0
  355. package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js +1 -1
  356. package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js.map +1 -1
  357. package/web/.next/server/chunks/ssr/[root-of-the-server]__a2d6c0ac._.js +4 -0
  358. package/web/.next/server/chunks/ssr/[root-of-the-server]__a2d6c0ac._.js.map +1 -0
  359. package/web/.next/server/chunks/ssr/[root-of-the-server]__a932cd3a._.js +3 -0
  360. package/web/.next/server/chunks/ssr/[root-of-the-server]__a932cd3a._.js.map +1 -0
  361. package/web/.next/server/chunks/ssr/[root-of-the-server]__aa72e794._.js +3 -0
  362. package/web/.next/server/chunks/ssr/[root-of-the-server]__aa72e794._.js.map +1 -0
  363. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +1 -1
  364. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +1 -1
  365. package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
  366. package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
  367. package/web/.next/server/chunks/ssr/_08eaf4b1._.js +3 -0
  368. package/web/.next/server/chunks/ssr/_08eaf4b1._.js.map +1 -0
  369. package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
  370. package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
  371. package/web/.next/server/chunks/ssr/_295fffde._.js +1 -1
  372. package/web/.next/server/chunks/ssr/_295fffde._.js.map +1 -1
  373. package/web/.next/server/chunks/ssr/_3686b70d._.js +3 -0
  374. package/web/.next/server/chunks/ssr/_3686b70d._.js.map +1 -0
  375. package/web/.next/server/chunks/ssr/{_3a71f39b._.js → _45286124._.js} +2 -2
  376. package/web/.next/server/chunks/ssr/{_3a71f39b._.js.map → _45286124._.js.map} +1 -1
  377. package/web/.next/server/chunks/ssr/_45496654._.js +1 -1
  378. package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
  379. package/web/.next/server/chunks/ssr/_4cbb7f95._.js +1 -1
  380. package/web/.next/server/chunks/ssr/_4cbb7f95._.js.map +1 -1
  381. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  382. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  383. package/web/.next/server/chunks/ssr/_6abfa39e._.js +1 -1
  384. package/web/.next/server/chunks/ssr/_6abfa39e._.js.map +1 -1
  385. package/web/.next/server/chunks/ssr/_783debcb._.js +9 -0
  386. package/web/.next/server/chunks/ssr/_783debcb._.js.map +1 -0
  387. package/web/.next/server/chunks/ssr/{_7953be4d._.js → _d943aad7._.js} +2 -2
  388. package/web/.next/server/chunks/ssr/_d943aad7._.js.map +1 -0
  389. package/web/.next/server/chunks/ssr/_f8c55130._.js +4 -0
  390. package/web/.next/server/chunks/ssr/_f8c55130._.js.map +1 -0
  391. package/web/.next/server/chunks/ssr/_ff04802c._.js +3 -0
  392. package/web/.next/server/chunks/ssr/_ff04802c._.js.map +1 -0
  393. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  394. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  395. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  396. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -1
  397. package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js +3 -0
  398. package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js.map +1 -0
  399. package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js +5 -0
  400. package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js.map +1 -0
  401. package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js +5 -0
  402. package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js.map +1 -0
  403. package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js +3 -0
  404. package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js.map +1 -0
  405. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js +3 -0
  406. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js.map +1 -0
  407. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js +3 -0
  408. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js.map +1 -0
  409. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js +3 -0
  410. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js.map +1 -0
  411. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
  412. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  413. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  414. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  415. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  416. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  417. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  418. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  419. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  420. package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js +1 -1
  421. package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js.map +1 -1
  422. package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js +3 -0
  423. package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js.map +1 -0
  424. package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js +3 -0
  425. package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js.map +1 -0
  426. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +1 -1
  427. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +1 -1
  428. package/web/.next/server/pages/500.html +2 -2
  429. package/web/.next/server/server-reference-manifest.js +1 -1
  430. package/web/.next/server/server-reference-manifest.json +74 -59
  431. package/web/.next/static/chunks/{ad47bc6ddec7508e.js → 128f165077681f87.js} +2 -2
  432. package/web/.next/static/chunks/20ec94c610d07a10.css +1 -0
  433. package/web/.next/static/chunks/2ceebcc839ee0d4b.js +1 -0
  434. package/web/.next/static/chunks/{6bc240cd4ae43267.js → 34e82d5f47b938e3.js} +1 -1
  435. package/web/.next/static/chunks/38c5a2cc4ce5d4d2.js +1 -0
  436. package/web/.next/static/chunks/3aba9d2242420cb5.js +1 -0
  437. package/web/.next/static/chunks/4981e52ed9b5dea3.js +1 -0
  438. package/web/.next/static/chunks/{a060ad1bb509687f.js → 4a909223df60de49.js} +1 -1
  439. package/web/.next/static/chunks/5858b85217fd0ead.js +1 -0
  440. package/web/.next/static/chunks/{a2a03ecb10000974.js → 68a0d1e04c636c09.js} +1 -1
  441. package/web/.next/static/chunks/{393b27ab5de6c454.js → 85473115de724a77.js} +1 -1
  442. package/web/.next/static/chunks/{d9c9db1823b4dffd.js → 8a5c7d80045a8f49.js} +2 -2
  443. package/web/.next/static/chunks/{5a2e1c8699897c26.js → 90c687976b254681.js} +3 -3
  444. package/web/.next/static/chunks/aab749e78b4c10bc.js +1 -0
  445. package/web/.next/static/chunks/{534194b584a151ed.js → ac18577f94d63177.js} +1 -1
  446. package/web/.next/static/chunks/ae81796726a9bba3.js +1 -0
  447. package/web/.next/static/chunks/{6dc0a23d333274ae.js → af9ee4accaa11f83.js} +2 -2
  448. package/web/.next/static/chunks/{c164b157638b2a8b.js → b082a6bb7e17b701.js} +1 -1
  449. package/web/.next/static/chunks/{b49ab0b290e9342d.js → b46545caae3b4930.js} +1 -1
  450. package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js +0 -4
  451. package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js.map +0 -1
  452. package/web/.next/server/chunks/ssr/[root-of-the-server]__4fb81977._.js +0 -4
  453. package/web/.next/server/chunks/ssr/[root-of-the-server]__4fb81977._.js.map +0 -1
  454. package/web/.next/server/chunks/ssr/[root-of-the-server]__7dcd0917._.js +0 -4
  455. package/web/.next/server/chunks/ssr/[root-of-the-server]__7dcd0917._.js.map +0 -1
  456. package/web/.next/server/chunks/ssr/[root-of-the-server]__92ffd5ee._.js +0 -4
  457. package/web/.next/server/chunks/ssr/[root-of-the-server]__92ffd5ee._.js.map +0 -1
  458. package/web/.next/server/chunks/ssr/[root-of-the-server]__b020c17d._.js +0 -4
  459. package/web/.next/server/chunks/ssr/[root-of-the-server]__b020c17d._.js.map +0 -1
  460. package/web/.next/server/chunks/ssr/[root-of-the-server]__ba7f5873._.js +0 -4
  461. package/web/.next/server/chunks/ssr/[root-of-the-server]__ba7f5873._.js.map +0 -1
  462. package/web/.next/server/chunks/ssr/[root-of-the-server]__c5e09f6f._.js +0 -4
  463. package/web/.next/server/chunks/ssr/[root-of-the-server]__c5e09f6f._.js.map +0 -1
  464. package/web/.next/server/chunks/ssr/_02e01240._.js +0 -4
  465. package/web/.next/server/chunks/ssr/_02e01240._.js.map +0 -1
  466. package/web/.next/server/chunks/ssr/_18886033._.js +0 -4
  467. package/web/.next/server/chunks/ssr/_18886033._.js.map +0 -1
  468. package/web/.next/server/chunks/ssr/_22e00a14._.js +0 -4
  469. package/web/.next/server/chunks/ssr/_22e00a14._.js.map +0 -1
  470. package/web/.next/server/chunks/ssr/_43ba79e7._.js +0 -3
  471. package/web/.next/server/chunks/ssr/_43ba79e7._.js.map +0 -1
  472. package/web/.next/server/chunks/ssr/_7953be4d._.js.map +0 -1
  473. package/web/.next/server/chunks/ssr/_7cb0396e._.js +0 -3
  474. package/web/.next/server/chunks/ssr/_7cb0396e._.js.map +0 -1
  475. package/web/.next/server/chunks/ssr/_a5a5901d._.js +0 -4
  476. package/web/.next/server/chunks/ssr/_a5a5901d._.js.map +0 -1
  477. package/web/.next/server/chunks/ssr/_ad09f271._.js +0 -4
  478. package/web/.next/server/chunks/ssr/_ad09f271._.js.map +0 -1
  479. package/web/.next/server/chunks/ssr/_c3f595c6._.js +0 -4
  480. package/web/.next/server/chunks/ssr/_c3f595c6._.js.map +0 -1
  481. package/web/.next/server/chunks/ssr/_e680c57c._.js +0 -9
  482. package/web/.next/server/chunks/ssr/_e680c57c._.js.map +0 -1
  483. package/web/.next/server/chunks/ssr/_ea9e1556._.js +0 -4
  484. package/web/.next/server/chunks/ssr/_ea9e1556._.js.map +0 -1
  485. package/web/.next/server/chunks/ssr/_f1ba9be6._.js +0 -6
  486. package/web/.next/server/chunks/ssr/_f1ba9be6._.js.map +0 -1
  487. package/web/.next/server/chunks/ssr/_f33cd07e._.js +0 -6
  488. package/web/.next/server/chunks/ssr/_f33cd07e._.js.map +0 -1
  489. package/web/.next/server/chunks/ssr/_f8b45233._.js +0 -4
  490. package/web/.next/server/chunks/ssr/_f8b45233._.js.map +0 -1
  491. package/web/.next/server/chunks/ssr/_fd595af2._.js +0 -3
  492. package/web/.next/server/chunks/ssr/_fd595af2._.js.map +0 -1
  493. package/web/.next/static/chunks/0baf5a2e56d191cf.js +0 -1
  494. package/web/.next/static/chunks/32c46154c31c58fc.js +0 -1
  495. package/web/.next/static/chunks/84b480808bd74fa9.css +0 -1
  496. package/web/.next/static/chunks/8b0a9cb5109fe899.js +0 -1
  497. package/web/.next/static/chunks/b65e555419a0c664.js +0 -1
  498. package/web/.next/static/chunks/e30aa6d2cf824fa1.js +0 -1
  499. package/web/.next/static/chunks/f5abbc495d496f5b.js +0 -1
  500. /package/web/.next/static/{nLYXtW5TIrvQiMl1yyD4O → PEEwFezIwaFMSsCXbx5zQ}/_buildManifest.js +0 -0
  501. /package/web/.next/static/{nLYXtW5TIrvQiMl1yyD4O → PEEwFezIwaFMSsCXbx5zQ}/_clientMiddlewareManifest.json +0 -0
  502. /package/web/.next/static/{nLYXtW5TIrvQiMl1yyD4O → PEEwFezIwaFMSsCXbx5zQ}/_ssgManifest.js +0 -0
@@ -0,0 +1,59 @@
1
+ 'use server';
2
+ import { revalidatePath } from 'next/cache';
3
+ import { resolve } from '../../lib/server-container.js';
4
+ import { updateSettings as updateSettingsSingleton } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
5
+ /**
6
+ * Fetches the current security state for a repository.
7
+ */
8
+ export async function getSecurityStateAction(repositoryPath) {
9
+ try {
10
+ const useCase = resolve('GetSecurityStateUseCase');
11
+ const state = await useCase.execute(repositoryPath);
12
+ return { state };
13
+ }
14
+ catch (error) {
15
+ const message = error instanceof Error ? error.message : 'Failed to load security state';
16
+ return { error: message };
17
+ }
18
+ }
19
+ /**
20
+ * Runs the full security enforcement flow for a repository.
21
+ */
22
+ export async function enforceSecurityAction(repositoryPath) {
23
+ try {
24
+ const useCase = resolve('EnforceSecurityUseCase');
25
+ const result = await useCase.execute({ repositoryPath });
26
+ revalidatePath('/', 'layout');
27
+ return { result };
28
+ }
29
+ catch (error) {
30
+ const message = error instanceof Error ? error.message : 'Failed to run security enforcement';
31
+ return { error: message };
32
+ }
33
+ }
34
+ /**
35
+ * Updates the security mode in settings.
36
+ */
37
+ export async function updateSecurityModeAction(mode) {
38
+ try {
39
+ const loadUseCase = resolve('LoadSettingsUseCase');
40
+ const current = await loadUseCase.execute();
41
+ const merged = {
42
+ ...current,
43
+ security: {
44
+ ...current.security,
45
+ mode,
46
+ },
47
+ updatedAt: new Date(),
48
+ };
49
+ const updateUseCase = resolve('UpdateSettingsUseCase');
50
+ await updateUseCase.execute(merged);
51
+ updateSettingsSingleton(merged);
52
+ revalidatePath('/', 'layout');
53
+ return { success: true };
54
+ }
55
+ catch (error) {
56
+ const message = error instanceof Error ? error.message : 'Failed to update security mode';
57
+ return { success: false, error: message };
58
+ }
59
+ }
@@ -1,4 +1,4 @@
1
- import type { Feature, Repository, AgentRun } from '../../../../packages/core/src/domain/generated/output.js';
1
+ import type { Feature, Repository, AgentRun, SecurityMode } from '../../../../packages/core/src/domain/generated/output.js';
2
2
  import type { CanvasNodeType } from '../components/features/features-canvas/index.js';
3
3
  import type { Edge } from '@xyflow/react';
4
4
  export interface FeatureWithRun {
@@ -29,6 +29,8 @@ export interface BuildGraphNodesOptions {
29
29
  }>;
30
30
  /** Git info resolution status keyed by repository path */
31
31
  repoGitStatus?: Map<string, 'loading' | 'ready' | 'not-a-repo'>;
32
+ /** Global security mode from settings (omitted or Disabled means no badge) */
33
+ securityMode?: SecurityMode;
32
34
  }
33
35
  export declare function buildGraphNodes(repositories: Repository[], featuresWithRuns: FeatureWithRun[], options?: BuildGraphNodesOptions): {
34
36
  nodes: CanvasNodeType[];
@@ -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;AAS1F,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;IACzB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,GAAG,CACf,MAAM,EACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CACzF,CAAC;IACF,0DAA0D;IAC1D,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC,CAAC;CACjE;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,CAoG5C"}
1
+ {"version":3,"file":"build-graph-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-graph-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,QAAQ,EACR,YAAY,EACb,MAAM,sCAAsC,CAAC;AAS9C,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;IACzB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,GAAG,CACf,MAAM,EACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CACzF,CAAC;IACF,0DAA0D;IAC1D,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC,CAAC;IAChE,8EAA8E;IAC9E,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;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,CAoG5C"}
@@ -140,6 +140,8 @@ function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes
140
140
  mergeable: feature.pr.mergeable,
141
141
  },
142
142
  }),
143
+ ...(options?.securityMode &&
144
+ options.securityMode !== 'Disabled' && { securityMode: options.securityMode }),
143
145
  };
144
146
  const featureNodeId = `feat-${feature.id}`;
145
147
  nodes.push({
@@ -21,6 +21,8 @@ export interface RepositoryOption {
21
21
  id: string;
22
22
  name: string;
23
23
  path: string;
24
+ isFork?: boolean;
25
+ upstreamUrl?: string;
24
26
  }
25
27
  export interface FeatureCreatePayload {
26
28
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAU5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,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A+E;IAC/E,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAClC,kGAAkG;IAClG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yEAAyE;IACzE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,YAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,eAAe,GAChB,EAAE,wBAAwB,2CAqgC1B;AAsJD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,GACT,EAAE,uBAAuB,2CAkNzB"}
1
+ {"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAU5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,E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CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,GACT,EAAE,uBAAuB,2CA0NzB"}
@@ -644,7 +644,7 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
644
644
  setQuery('');
645
645
  }
646
646
  }, [open]);
647
- return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Repository", disabled: disabled, "data-testid": "repository-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedRepo && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedRepo ? selectedRepo.name : 'Select repository...' }), _jsx(ChevronsUpDown, { className: "ms-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "repository-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: t('createDrawer.searchRepositories'), value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "repository-search" }) }), _jsx("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Repositories", children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", "data-testid": "repository-empty", children: "No repositories found." })) : (filtered.map((r) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === r.path, onClick: () => handleSelect(r.path), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === r.path && 'bg-accent/50'), "data-testid": `repository-option-${r.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== r.path && 'invisible') }), _jsxs("span", { className: "flex flex-col items-start truncate", children: [_jsx("span", { className: "truncate", children: r.name }), _jsx("span", { className: "text-muted-foreground truncate text-xs", children: r.path })] })] }, r.id)))) }), _jsx(Separator, {}), _jsxs("button", { type: "button", onClick: handleAddRepository, disabled: isAdding, className: "hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm", "data-testid": "add-repository-item", children: [isAdding ? (_jsx(Loader2, { className: "h-4 w-4 shrink-0 animate-spin" })) : (_jsx(FolderPlus, { className: "h-4 w-4 shrink-0" })), _jsx("span", { children: "Add new repository..." })] }), addError ? (_jsx("p", { className: "px-3 pb-2 text-xs text-red-500", "data-testid": "add-repository-error", children: addError })) : null] }) })] }), _jsx(ReactFileManagerDialog, { open: showReactPicker, onOpenChange: (isOpen) => {
647
+ return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Repository", disabled: disabled, "data-testid": "repository-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedRepo && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedRepo ? selectedRepo.name : 'Select repository...' }), _jsx(ChevronsUpDown, { className: "ms-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "repository-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: t('createDrawer.searchRepositories'), value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "repository-search" }) }), _jsx("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Repositories", children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", "data-testid": "repository-empty", children: "No repositories found." })) : (filtered.map((r) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === r.path, onClick: () => handleSelect(r.path), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === r.path && 'bg-accent/50'), "data-testid": `repository-option-${r.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== r.path && 'invisible') }), _jsxs("span", { className: "flex flex-col items-start truncate", children: [_jsxs("span", { className: "flex items-center gap-1.5 truncate", children: [r.name, r.isFork ? (_jsxs(Badge, { variant: "outline", className: "h-4 shrink-0 px-1 text-[10px]", children: [_jsx(GitFork, { className: "mr-0.5 h-2.5 w-2.5" }), "Fork"] })) : null] }), _jsx("span", { className: "text-muted-foreground truncate text-xs", children: r.path })] })] }, r.id)))) }), _jsx(Separator, {}), _jsxs("button", { type: "button", onClick: handleAddRepository, disabled: isAdding, className: "hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm", "data-testid": "add-repository-item", children: [isAdding ? (_jsx(Loader2, { className: "h-4 w-4 shrink-0 animate-spin" })) : (_jsx(FolderPlus, { className: "h-4 w-4 shrink-0" })), _jsx("span", { children: "Add new repository..." })] }), addError ? (_jsx("p", { className: "px-3 pb-2 text-xs text-red-500", "data-testid": "add-repository-error", children: addError })) : null] }) })] }), _jsx(ReactFileManagerDialog, { open: showReactPicker, onOpenChange: (isOpen) => {
648
648
  if (!isOpen)
649
649
  setShowReactPicker(false);
650
650
  }, onSelect: handleReactPickerSelect })] }));
@@ -11,4 +11,6 @@ export declare const EmptyList: Story;
11
11
  export declare const PreSelected: Story;
12
12
  /** Disabled state — combobox trigger button is non-interactive. */
13
13
  export declare const Disabled: Story;
14
+ /** Repositories with fork badges — forked repos show a "Fork" badge next to their name. */
15
+ export declare const WithForkBadges: Story;
14
16
  //# sourceMappingURL=repository-combobox.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository-combobox.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/repository-combobox.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAU7D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAOzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AA+BjD,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
1
+ {"version":3,"file":"repository-combobox.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/repository-combobox.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AA6B7D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAOzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AA+BjD,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC"}
@@ -7,6 +7,24 @@ const SAMPLE_REPOSITORIES = [
7
7
  { id: 'repo-003', name: 'shared-lib', path: '/Users/dev/libs/shared-lib' },
8
8
  { id: 'repo-004', name: 'docs-site', path: '/Users/dev/projects/docs-site' },
9
9
  ];
10
+ const REPOS_WITH_FORKS = [
11
+ { id: 'repo-001', name: 'my-app', path: '/Users/dev/projects/my-app' },
12
+ {
13
+ id: 'repo-002',
14
+ name: 'api-service',
15
+ path: '/Users/dev/projects/api-service',
16
+ isFork: true,
17
+ upstreamUrl: 'https://github.com/upstream-org/api-service',
18
+ },
19
+ { id: 'repo-003', name: 'shared-lib', path: '/Users/dev/libs/shared-lib' },
20
+ {
21
+ id: 'repo-004',
22
+ name: 'open-source-tool',
23
+ path: '/Users/dev/projects/open-source-tool',
24
+ isFork: true,
25
+ upstreamUrl: 'https://github.com/community/open-source-tool',
26
+ },
27
+ ];
10
28
  const meta = {
11
29
  title: 'Drawers/Feature/RepositoryCombobox',
12
30
  component: RepositoryCombobox,
@@ -40,3 +58,7 @@ export const PreSelected = {
40
58
  export const Disabled = {
41
59
  render: () => _jsx(RepositoryComboboxWrapper, { repositories: SAMPLE_REPOSITORIES, disabled: true }),
42
60
  };
61
+ /** Repositories with fork badges — forked repos show a "Fork" badge next to their name. */
62
+ export const WithForkBadges = {
63
+ render: () => _jsx(RepositoryComboboxWrapper, { repositories: REPOS_WITH_FORKS }),
64
+ };
@@ -1,6 +1,6 @@
1
1
  import { type LucideIcon } from 'lucide-react';
2
2
  import type { Node } from '@xyflow/react';
3
- import type { PrStatus, CiStatus, DeploymentState } from '../../../../../../packages/core/src/domain/generated/output.js';
3
+ import type { PrStatus, CiStatus, DeploymentState, SecurityMode } from '../../../../../../packages/core/src/domain/generated/output.js';
4
4
  import type { AgentTypeValue } from './agent-type-icons.js';
5
5
  export type FeatureNodeState = 'creating' | 'running' | 'action-required' | 'done' | 'blocked' | 'pending' | 'error' | 'deleting' | 'archived';
6
6
  export type FeatureLifecyclePhase = 'pending' | 'requirements' | 'research' | 'implementation' | 'review' | 'awaitingUpstream' | 'deploy' | 'maintain';
@@ -109,6 +109,8 @@ export interface FeatureNodeData {
109
109
  status: DeploymentState;
110
110
  url?: string;
111
111
  };
112
+ /** Security mode when active (Disabled, Advisory, Enforce) */
113
+ securityMode?: SecurityMode;
112
114
  onAction?: () => void;
113
115
  onSettings?: () => void;
114
116
  hasChildren?: boolean;
@@ -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,EASL,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,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,kBAAkB,GAClB,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,C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,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CA2FnF,CAAC"}
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,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,YAAY,EACb,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,kBAAkB,GAClB,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CASxE,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAA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KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CA2FnF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node.tsx"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAmDnE,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,2CAwnBA"}
1
+ {"version":3,"file":"feature-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node.tsx"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAoDnE,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,2CAynBA"}
@@ -18,6 +18,7 @@ import { DeleteFeatureDialog } from '../../common/delete-feature-dialog/index.js
18
18
  import { featureNodeStateConfig, lifecycleRunningVerbs, lifecyclePhaseBadge, } from './feature-node-state-config.js';
19
19
  import { getAgentTypeIcon } from './agent-type-icons.js';
20
20
  import { FeatureSessionsDropdown } from './feature-sessions-dropdown.js';
21
+ import { SecurityBadge } from '../../common/security-badge.js';
21
22
  function AgentIcon({ agentType, className }) {
22
23
  const IconComponent = getAgentTypeIcon(agentType);
23
24
  return _jsx(IconComponent, { className: className });
@@ -111,7 +112,7 @@ export function FeatureNode({ data, selected, }) {
111
112
  selected &&
112
113
  'border-e-rose-400 border-t-rose-400 border-b-rose-400 dark:border-e-amber-500 dark:border-t-amber-500 dark:border-b-amber-500', selected &&
113
114
  data.state !== 'action-required' &&
114
- 'border-blue-400 dark:border-amber-500/60', data.state === 'deleting' && 'opacity-60', data.state === 'archived' && 'opacity-50'), children: [data.state !== 'creating' ? (_jsx("div", { className: "absolute end-4 top-3", children: _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("span", { "data-testid": "feature-node-phase-badge", className: "flex items-center gap-1.5", children: [_jsx("span", { className: "text-muted-foreground text-[10px]", children: lifecyclePhaseBadge[data.lifecycle].tooltip }), _jsx("span", { className: cn('h-1.5 w-1.5 -translate-y-px rounded-full', lifecyclePhaseBadge[data.lifecycle].dot) })] }) }), _jsxs(TooltipContent, { side: "right", className: "max-w-56", children: [_jsx("p", { className: "font-semibold", children: lifecyclePhaseBadge[data.lifecycle].tooltip }), _jsx("p", { className: "mt-1 text-xs leading-relaxed text-neutral-500", children: lifecyclePhaseBadge[data.lifecycle].description })] })] }) }) })) : null, _jsxs("div", { className: "flex items-center gap-1.5 pe-24", children: [data.agentType ? (_jsx(AgentIcon, { agentType: data.agentType, className: "h-4 w-4 shrink-0" })) : null, _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { "data-testid": "feature-node-fast-mode-badge", className: "shrink-0", children: data.fastMode ? (_jsx(Zap, { className: "h-3.5 w-3.5 text-amber-500" })) : (_jsx(ClipboardList, { className: "h-3.5 w-3.5 text-indigo-500" })) }) }), _jsx(TooltipContent, { side: "top", children: data.fastMode ? t('featureNode.fastMode') : t('featureNode.specDriven') })] }) }), _jsx("h3", { className: "min-w-0 truncate text-sm font-bold", children: data.name })] }), data.description ? (_jsx("p", { "data-testid": "feature-node-description", className: "text-muted-foreground mt-1 line-clamp-2 text-xs", children: data.description })) : null, _jsxs("div", { className: "mt-auto pt-2", children: [config.showProgressBar ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "text-muted-foreground flex items-center justify-end text-[10px]", children: _jsxs("span", { children: [data.progress, "%"] }) }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', config.progressClass), style: { width: `${data.progress}%` } }) })] })) : null, !config.showProgressBar &&
115
+ 'border-blue-400 dark:border-amber-500/60', data.state === 'deleting' && 'opacity-60', data.state === 'archived' && 'opacity-50'), children: [data.state !== 'creating' ? (_jsx("div", { className: "absolute end-4 top-3", children: _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("span", { "data-testid": "feature-node-phase-badge", className: "flex items-center gap-1.5", children: [_jsx("span", { className: "text-muted-foreground text-[10px]", children: lifecyclePhaseBadge[data.lifecycle].tooltip }), _jsx("span", { className: cn('h-1.5 w-1.5 -translate-y-px rounded-full', lifecyclePhaseBadge[data.lifecycle].dot) })] }) }), _jsxs(TooltipContent, { side: "right", className: "max-w-56", children: [_jsx("p", { className: "font-semibold", children: lifecyclePhaseBadge[data.lifecycle].tooltip }), _jsx("p", { className: "mt-1 text-xs leading-relaxed text-neutral-500", children: lifecyclePhaseBadge[data.lifecycle].description })] })] }) }) })) : null, _jsxs("div", { className: "flex items-center gap-1.5 pe-24", children: [data.agentType ? (_jsx(AgentIcon, { agentType: data.agentType, className: "h-4 w-4 shrink-0" })) : null, _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { "data-testid": "feature-node-fast-mode-badge", className: "shrink-0", children: data.fastMode ? (_jsx(Zap, { className: "h-3.5 w-3.5 text-amber-500" })) : (_jsx(ClipboardList, { className: "h-3.5 w-3.5 text-indigo-500" })) }) }), _jsx(TooltipContent, { side: "top", children: data.fastMode ? t('featureNode.fastMode') : t('featureNode.specDriven') })] }) }), data.securityMode ? _jsx(SecurityBadge, { mode: data.securityMode }) : null, _jsx("h3", { className: "min-w-0 truncate text-sm font-bold", children: data.name })] }), data.description ? (_jsx("p", { "data-testid": "feature-node-description", className: "text-muted-foreground mt-1 line-clamp-2 text-xs", children: data.description })) : null, _jsxs("div", { className: "mt-auto pt-2", children: [config.showProgressBar ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "text-muted-foreground flex items-center justify-end text-[10px]", children: _jsxs("span", { children: [data.progress, "%"] }) }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', config.progressClass), style: { width: `${data.progress}%` } }) })] })) : null, !config.showProgressBar &&
115
116
  ![
116
117
  'deleting',
117
118
  'creating',
@@ -1,7 +1,9 @@
1
1
  import type { RepositoryNodeData } from './repository-node-config.js';
2
+ import type { SecurityEvent } from '../../../../../../packages/core/src/domain/generated/output.js';
2
3
  export interface RepositoryDrawerProps {
3
4
  data: RepositoryNodeData | null;
4
5
  onClose: () => void;
6
+ securityEvents?: SecurityEvent[];
5
7
  }
6
- export declare function RepositoryDrawer({ data, onClose }: RepositoryDrawerProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function RepositoryDrawer({ data, onClose, securityEvents }: RepositoryDrawerProps): import("react/jsx-runtime").JSX.Element;
7
9
  //# sourceMappingURL=repository-drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/repository-node/repository-drawer.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGnE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,qBAAqB,2CAwGxE"}
1
+ {"version":3,"file":"repository-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/repository-node/repository-drawer.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAE1E,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,qBAAqB,2CAgHxF"}
@@ -8,7 +8,8 @@ import { Separator } from '../../ui/separator.js';
8
8
  import { ActionButton } from '../../common/action-button/index.js';
9
9
  import { useFeatureFlags } from '../../../hooks/feature-flags-context.js';
10
10
  import { useRepositoryActions } from './use-repository-actions.js';
11
- export function RepositoryDrawer({ data, onClose }) {
11
+ import { SecurityPanel } from './security-panel.js';
12
+ export function RepositoryDrawer({ data, onClose, securityEvents }) {
12
13
  const featureFlags = useFeatureFlags();
13
14
  const handleClose = useCallback(() => {
14
15
  onClose();
@@ -20,5 +21,5 @@ export function RepositoryDrawer({ data, onClose }) {
20
21
  targetType: 'repository',
21
22
  repositoryPath: data.repositoryPath,
22
23
  }
23
- : undefined, header: data ? (_jsxs("div", { "data-testid": "repository-drawer-header", children: [_jsx(DrawerTitle, { children: data.name }), data.repositoryPath ? (_jsx(DrawerDescription, { className: "truncate font-mono text-xs", children: data.repositoryPath })) : null] })) : undefined, children: data?.repositoryPath ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "OPEN WITH" }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(ActionButton, { label: "Open in IDE", onClick: actions.openInIde, loading: actions.ideLoading, error: !!actions.ideError, icon: Code2, variant: "outline", size: "sm" }), _jsx(ActionButton, { label: "Open in Shell", onClick: actions.openInShell, loading: actions.shellLoading, error: !!actions.shellError, icon: Terminal, variant: "outline", size: "sm" }), _jsx(ActionButton, { label: "Open Folder", onClick: actions.openFolder, loading: actions.folderLoading, error: !!actions.folderError, icon: FolderOpen, variant: "outline", size: "sm" })] })] }), data.id && featureFlags.gitRebaseSync ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "GIT OPERATIONS" }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(ActionButton, { label: "Sync Main", onClick: actions.syncMain, loading: actions.syncLoading, error: !!actions.syncError, icon: RefreshCw, variant: "outline", size: "sm" }), actions.syncError ? (_jsx("p", { className: "text-destructive text-xs", children: actions.syncError })) : null] })] })] })) : null] })) : null }));
24
+ : undefined, header: data ? (_jsxs("div", { "data-testid": "repository-drawer-header", children: [_jsx(DrawerTitle, { children: data.name }), data.repositoryPath ? (_jsx(DrawerDescription, { className: "truncate font-mono text-xs", children: data.repositoryPath })) : null] })) : undefined, children: data?.repositoryPath ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "OPEN WITH" }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(ActionButton, { label: "Open in IDE", onClick: actions.openInIde, loading: actions.ideLoading, error: !!actions.ideError, icon: Code2, variant: "outline", size: "sm" }), _jsx(ActionButton, { label: "Open in Shell", onClick: actions.openInShell, loading: actions.shellLoading, error: !!actions.shellError, icon: Terminal, variant: "outline", size: "sm" }), _jsx(ActionButton, { label: "Open Folder", onClick: actions.openFolder, loading: actions.folderLoading, error: !!actions.folderError, icon: FolderOpen, variant: "outline", size: "sm" })] })] }), data.id && featureFlags.gitRebaseSync ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "GIT OPERATIONS" }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(ActionButton, { label: "Sync Main", onClick: actions.syncMain, loading: actions.syncLoading, error: !!actions.syncError, icon: RefreshCw, variant: "outline", size: "sm" }), actions.syncError ? (_jsx("p", { className: "text-destructive text-xs", children: actions.syncError })) : null] })] })] })) : null, securityEvents != null && securityEvents.length >= 0 ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "flex flex-col gap-3 p-4", children: _jsx(SecurityPanel, { events: securityEvents }) })] })) : null] })) : null }));
24
25
  }
@@ -0,0 +1,6 @@
1
+ import type { SecurityEvent } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ export interface SecurityPanelProps {
3
+ events: SecurityEvent[];
4
+ }
5
+ export declare function SecurityPanel({ events }: SecurityPanelProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=security-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-panel.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/repository-node/security-panel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAgBD,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CA6F3D"}
@@ -0,0 +1,29 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { Shield, ChevronDown, AlertTriangle } from 'lucide-react';
5
+ import { useTranslation } from 'react-i18next';
6
+ import { cn } from '../../../lib/utils.js';
7
+ import { Badge } from '../../ui/badge.js';
8
+ const SEVERITY_COLORS = {
9
+ Low: 'bg-blue-100 text-blue-700 dark:bg-blue-900/40 dark:text-blue-300',
10
+ Medium: 'bg-yellow-100 text-yellow-700 dark:bg-yellow-900/40 dark:text-yellow-300',
11
+ High: 'bg-orange-100 text-orange-700 dark:bg-orange-900/40 dark:text-orange-300',
12
+ Critical: 'bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300',
13
+ };
14
+ const SEVERITY_ICON_COLORS = {
15
+ Low: 'text-blue-500',
16
+ Medium: 'text-yellow-500',
17
+ High: 'text-orange-500',
18
+ Critical: 'text-red-500',
19
+ };
20
+ export function SecurityPanel({ events }) {
21
+ const { t } = useTranslation('web');
22
+ const hasFindings = events.length > 0;
23
+ const [expanded, setExpanded] = useState(hasFindings);
24
+ const severityCounts = events.reduce((acc, event) => {
25
+ acc[event.severity] = (acc[event.severity] ?? 0) + 1;
26
+ return acc;
27
+ }, {});
28
+ return (_jsxs("div", { "data-testid": "security-panel", children: [_jsxs("button", { type: "button", onClick: () => setExpanded(!expanded), className: "flex w-full cursor-pointer items-center justify-between text-left", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Shield, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('settings.security.panel.title').toUpperCase() }), hasFindings ? (_jsx(Badge, { variant: "secondary", className: "bg-red-100 px-1.5 py-0 text-[9px] text-red-700 dark:bg-red-900/40 dark:text-red-300", children: events.length })) : null] }), _jsx(ChevronDown, { className: cn('text-muted-foreground h-3.5 w-3.5 transition-transform', expanded && 'rotate-180') })] }), expanded ? (_jsx("div", { className: "mt-3 flex flex-col gap-2", children: !hasFindings ? (_jsx("p", { className: "text-muted-foreground text-xs", children: t('settings.security.panel.noFindings') })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "flex flex-wrap gap-1.5", children: Object.entries(severityCounts).map(([severity, count]) => (_jsxs(Badge, { variant: "secondary", className: cn('px-1.5 py-0 text-[9px]', SEVERITY_COLORS[severity]), children: [count, " ", severity] }, severity))) }), _jsx("div", { className: "flex flex-col gap-1.5", children: events.slice(0, 5).map((event) => (_jsxs("div", { className: "flex items-start gap-2 rounded-md border px-2 py-1.5", children: [_jsx(AlertTriangle, { className: cn('mt-0.5 h-3 w-3 shrink-0', SEVERITY_ICON_COLORS[event.severity] ?? 'text-muted-foreground') }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("p", { className: "truncate text-[11px]", children: event.message }), event.remediationSummary ? (_jsx("p", { className: "text-muted-foreground mt-0.5 truncate text-[10px]", children: event.remediationSummary })) : null] })] }, event.id))) })] })) })) : null] }));
29
+ }
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { SecurityPanel } from './security-panel.js';
3
+ declare const meta: Meta<typeof SecurityPanel>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SecurityPanel>;
6
+ /** No findings — clean repository. */
7
+ export declare const NoFindings: Story;
8
+ /** Mixed governance and dependency findings. */
9
+ export declare const MixedFindings: Story;
10
+ //# sourceMappingURL=security-panel.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-panel.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/repository-node/security-panel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAIpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,sCAAsC;AACtC,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,aAAa,EAAE,KAqC3B,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { SecuritySeverity, SecurityActionCategory, SecurityActionDisposition, } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ import { SecurityPanel } from './security-panel.js';
3
+ const meta = {
4
+ title: 'Common/SecurityPanel',
5
+ component: SecurityPanel,
6
+ tags: ['autodocs'],
7
+ };
8
+ export default meta;
9
+ /** No findings — clean repository. */
10
+ export const NoFindings = {
11
+ args: {
12
+ events: [],
13
+ },
14
+ };
15
+ /** Mixed governance and dependency findings. */
16
+ export const MixedFindings = {
17
+ args: {
18
+ events: [
19
+ {
20
+ id: 'evt-1',
21
+ repositoryPath: '/path/to/repo',
22
+ severity: SecuritySeverity.High,
23
+ category: SecurityActionCategory.DependencyInstall,
24
+ disposition: SecurityActionDisposition.Denied,
25
+ message: 'Package has postinstall lifecycle script: suspicious-pkg@2.0.0',
26
+ remediationSummary: 'Review and approve the lifecycle script or add to denylist',
27
+ createdAt: new Date().toISOString(),
28
+ updatedAt: new Date().toISOString(),
29
+ },
30
+ {
31
+ id: 'evt-2',
32
+ repositoryPath: '/path/to/repo',
33
+ severity: SecuritySeverity.Medium,
34
+ category: SecurityActionCategory.CiWorkflowModify,
35
+ disposition: SecurityActionDisposition.Allowed,
36
+ message: '[Governance Audit] Branch protection not enabled on main',
37
+ remediationSummary: 'Enable branch protection rules for the main branch',
38
+ createdAt: new Date().toISOString(),
39
+ updatedAt: new Date().toISOString(),
40
+ },
41
+ {
42
+ id: 'evt-3',
43
+ repositoryPath: '/path/to/repo',
44
+ severity: SecuritySeverity.Low,
45
+ category: SecurityActionCategory.DependencyInstall,
46
+ disposition: SecurityActionDisposition.Allowed,
47
+ message: 'Dependency uses git source: lodash@git+https://github.com/lodash/lodash.git',
48
+ createdAt: new Date().toISOString(),
49
+ updatedAt: new Date().toISOString(),
50
+ },
51
+ ],
52
+ },
53
+ };
@@ -0,0 +1,7 @@
1
+ import { SecurityMode } from '../../../../../packages/core/src/domain/generated/output.js';
2
+ export interface SecurityBadgeProps {
3
+ mode: SecurityMode;
4
+ className?: string;
5
+ }
6
+ export declare function SecurityBadge({ mode, className }: SecurityBadgeProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=security-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-badge.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/common/security-badge.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAsBpE"}
@@ -0,0 +1,30 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Shield, ShieldAlert, ShieldOff } from 'lucide-react';
4
+ import { useTranslation } from 'react-i18next';
5
+ import { cn } from '../../lib/utils.js';
6
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../ui/tooltip.js';
7
+ import { SecurityMode } from '../../../../../packages/core/src/domain/generated/output.js';
8
+ const BADGE_CONFIG = {
9
+ [SecurityMode.Disabled]: {
10
+ icon: ShieldOff,
11
+ colorClass: 'text-gray-400',
12
+ labelKey: 'settings.security.badge.disabled',
13
+ },
14
+ [SecurityMode.Advisory]: {
15
+ icon: Shield,
16
+ colorClass: 'text-yellow-500',
17
+ labelKey: 'settings.security.badge.advisory',
18
+ },
19
+ [SecurityMode.Enforce]: {
20
+ icon: ShieldAlert,
21
+ colorClass: 'text-red-500',
22
+ labelKey: 'settings.security.badge.enforce',
23
+ },
24
+ };
25
+ export function SecurityBadge({ mode, className }) {
26
+ const { t } = useTranslation('web');
27
+ const config = BADGE_CONFIG[mode];
28
+ const Icon = config.icon;
29
+ return (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { "data-testid": "security-badge", className: cn('inline-flex shrink-0 items-center', className), children: _jsx(Icon, { className: cn('h-3.5 w-3.5', config.colorClass) }) }) }), _jsx(TooltipContent, { side: "top", children: _jsx("p", { className: "text-xs", children: t(config.labelKey) }) })] }) }));
30
+ }
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { SecurityBadge } from './security-badge.js';
3
+ declare const meta: Meta<typeof SecurityBadge>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SecurityBadge>;
6
+ /** Advisory mode — yellow shield indicating findings are logged but not blocked. */
7
+ export declare const Advisory: Story;
8
+ /** Enforce mode — red shield indicating violations are actively blocked. */
9
+ export declare const Enforce: Story;
10
+ /** Disabled mode — gray shield indicating security is turned off. */
11
+ export declare const Disabled: Story;
12
+ //# sourceMappingURL=security-badge.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-badge.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/common/security-badge.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAIpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,oFAAoF;AACpF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { SecurityMode } from '../../../../../packages/core/src/domain/generated/output.js';
2
+ import { SecurityBadge } from './security-badge.js';
3
+ const meta = {
4
+ title: 'Common/SecurityBadge',
5
+ component: SecurityBadge,
6
+ tags: ['autodocs'],
7
+ };
8
+ export default meta;
9
+ /** Advisory mode — yellow shield indicating findings are logged but not blocked. */
10
+ export const Advisory = {
11
+ args: { mode: SecurityMode.Advisory },
12
+ };
13
+ /** Enforce mode — red shield indicating violations are actively blocked. */
14
+ export const Enforce = {
15
+ args: { mode: SecurityMode.Enforce },
16
+ };
17
+ /** Disabled mode — gray shield indicating security is turned off. */
18
+ export const Disabled = {
19
+ args: { mode: SecurityMode.Disabled },
20
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"settings-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.tsx"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EACV,QAAQ,EAKT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AA8B/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AA+QD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,GACnB,EAAE,uBAAuB,2CAw5CzB"}
1
+ {"version":3,"file":"settings-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.tsx"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EACV,QAAQ,EAKT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AA+B/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AA+QD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,GACnB,EAAE,uBAAuB,2CAk7CzB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState, useTransition, useRef, useEffect, useCallback } from 'react';
4
- import { Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Globe, Minus, Plus, ExternalLink, Settings2, Timer, MessageSquare, LayoutGrid, } from 'lucide-react';
4
+ import { Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Globe, Minus, Plus, ExternalLink, Settings2, Timer, MessageSquare, LayoutGrid, Shield, } from 'lucide-react';
5
5
  import { toast } from 'sonner';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { cn } from '../../../lib/utils.js';
@@ -9,11 +9,12 @@ import { Label } from '../../ui/label.js';
9
9
  import { Switch } from '../../ui/switch.js';
10
10
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
11
11
  import { updateSettingsAction } from '../../../app/actions/update-settings.js';
12
- import { EditorType, Language, TerminalType, } from '../../../../../../packages/core/src/domain/generated/output.js';
12
+ import { EditorType, Language, SecurityMode, TerminalType, } from '../../../../../../packages/core/src/domain/generated/output.js';
13
13
  import { getEditorTypeIcon } from '../../common/editor-type-icons.js';
14
14
  import { AgentModelPicker } from '../../features/settings/AgentModelPicker/index.js';
15
15
  import { LanguageSettingsSection } from '../../features/settings/language-settings-section.js';
16
16
  import { TimeoutSlider } from '../../features/settings/timeout-slider.js';
17
+ import { SupplyChainSecuritySettingsSection } from '../../features/settings/supply-chain-security-settings-section.js';
17
18
  const EDITOR_OPTIONS = [
18
19
  { value: EditorType.VsCode, label: 'VS Code' },
19
20
  { value: EditorType.Cursor, label: 'Cursor' },
@@ -31,6 +32,7 @@ const SECTIONS = [
31
32
  { id: 'agent', labelKey: 'settings.sections.agent', icon: Bot },
32
33
  { id: 'environment', labelKey: 'settings.sections.environment', icon: Terminal },
33
34
  { id: 'workflow', labelKey: 'settings.sections.workflow', icon: GitBranch },
35
+ { id: 'security', labelKey: 'settings.sections.security', icon: Shield },
34
36
  { id: 'ci', labelKey: 'settings.sections.ci', icon: Activity },
35
37
  { id: 'stage-timeouts', labelKey: 'settings.sections.timeouts', icon: Timer },
36
38
  { id: 'notifications', labelKey: 'settings.sections.notifications', icon: Bell },
@@ -440,7 +442,18 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTe
440
442
  label: t('settings.workflow.links.pushAndPrFlags'),
441
443
  href: 'https://github.com/shep-ai/shep/blob/main/specs/037-feature-pr-push-flags/spec.yaml',
442
444
  },
443
- ], children: t('settings.workflow.hint') })] }), _jsxs("div", { id: "section-ci", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Activity, title: t('settings.ci.title'), description: t('settings.ci.description'), testId: "ci-settings-section", children: [_jsx(SettingsRow, { label: t('settings.ci.maxFixAttempts'), description: t('settings.ci.maxFixAttemptsDescription'), htmlFor: "ci-max-fix", children: _jsx(NumberStepper, { id: "ci-max-fix", testId: "ci-max-fix-input", placeholder: "3", value: ciMaxFix, onChange: setCiMaxFix, onBlur: () => {
445
+ ], children: t('settings.workflow.hint') })] }), _jsxs("div", { id: "section-security", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(SupplyChainSecuritySettingsSection, { securityState: {
446
+ mode: settings.security?.mode ?? SecurityMode.Advisory,
447
+ lastEvaluationAt: settings.security?.lastEvaluationAt ?? null,
448
+ policySource: settings.security?.policySource ?? null,
449
+ recentEvents: [],
450
+ highestSeverityFinding: null,
451
+ } }), _jsx(SectionHint, { links: [
452
+ {
453
+ label: t('settings.security.links.securitySpec'),
454
+ href: 'https://github.com/shep-ai/shep/blob/main/specs/083-supply-chain-security/spec.yaml',
455
+ },
456
+ ], children: t('settings.security.hint') })] }), _jsxs("div", { id: "section-ci", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Activity, title: t('settings.ci.title'), description: t('settings.ci.description'), testId: "ci-settings-section", children: [_jsx(SettingsRow, { label: t('settings.ci.maxFixAttempts'), description: t('settings.ci.maxFixAttemptsDescription'), htmlFor: "ci-max-fix", children: _jsx(NumberStepper, { id: "ci-max-fix", testId: "ci-max-fix-input", placeholder: "3", value: ciMaxFix, onChange: setCiMaxFix, onBlur: () => {
444
457
  if (ciMaxFix !== originalCiMaxFix)
445
458
  save(buildWorkflowPayload({ ciMaxFix }));
446
459
  }, min: 1, max: 10 }) }), _jsx(SettingsRow, { label: t('settings.ci.watchTimeout'), description: t('settings.ci.watchTimeoutDescription'), htmlFor: "ci-timeout", children: _jsx(NumberStepper, { id: "ci-timeout", testId: "ci-timeout-input", placeholder: "300", value: ciTimeout, onChange: setCiTimeout, onBlur: () => {
@@ -0,0 +1,6 @@
1
+ import type { SecurityState } from '../../../../../../packages/core/src/application/use-cases/security/get-security-state.use-case.js';
2
+ export interface SupplyChainSecuritySettingsSectionProps {
3
+ securityState: SecurityState;
4
+ }
5
+ export declare function SupplyChainSecuritySettingsSection({ securityState, }: SupplyChainSecuritySettingsSectionProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=supply-chain-security-settings-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supply-chain-security-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/supply-chain-security-settings-section.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yEAAyE,CAAC;AAE7G,MAAM,WAAW,uCAAuC;IACtD,aAAa,EAAE,aAAa,CAAC;CAC9B;AAeD,wBAAgB,kCAAkC,CAAC,EACjD,aAAa,GACd,EAAE,uCAAuC,2CAgKzC"}