@shepai/cli 1.183.0-pr527.80e6e27 → 1.183.0-pr553.cd3d150

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 (465) hide show
  1. package/README.md +1 -0
  2. package/apis/json-schema/FeatureFlags.yaml +0 -5
  3. package/apis/json-schema/Settings.yaml +0 -3
  4. package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts +1 -15
  5. package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts.map +1 -1
  6. package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts +1 -3
  7. package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts.map +1 -1
  8. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts +0 -38
  9. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts.map +1 -1
  10. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.js +0 -9
  11. package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts +0 -11
  12. package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts.map +1 -1
  13. package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.d.ts.map +1 -1
  14. package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.js +0 -2
  15. package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.d.ts.map +1 -1
  16. package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.js +0 -2
  17. package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.d.ts.map +1 -1
  18. package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.js +0 -2
  19. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
  20. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +0 -1
  21. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
  22. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +0 -2
  23. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -1
  24. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +0 -2
  25. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  26. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -6
  27. package/dist/packages/core/src/domain/generated/output.d.ts +0 -263
  28. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  29. package/dist/packages/core/src/domain/generated/output.js +0 -43
  30. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  31. package/dist/packages/core/src/infrastructure/di/container.js +0 -57
  32. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +0 -4
  33. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  34. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +0 -17
  35. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  36. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +3 -15
  37. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts +0 -2
  38. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
  39. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +0 -12
  40. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts +0 -10
  41. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts.map +1 -1
  42. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +0 -34
  43. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts.map +1 -1
  44. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts +1 -3
  45. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts.map +1 -1
  46. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.js +1 -7
  47. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts +1 -3
  48. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
  49. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +1 -32
  50. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  51. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +0 -25
  52. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts +1 -4
  53. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts.map +1 -1
  54. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.js +0 -10
  55. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts +1 -10
  56. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts.map +1 -1
  57. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.js +1 -101
  58. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts +0 -1
  59. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts.map +1 -1
  60. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +0 -61
  61. package/dist/src/presentation/cli/index.js +0 -2
  62. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  63. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +1 -5
  64. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +1 -3
  65. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  66. package/dist/src/presentation/web/app/build-graph-nodes.js +0 -2
  67. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +1 -3
  68. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  69. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  70. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +1 -2
  71. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts +1 -3
  72. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts.map +1 -1
  73. package/dist/src/presentation/web/components/common/repository-node/repository-drawer.js +2 -3
  74. package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.js +3 -3
  75. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
  76. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +0 -3
  77. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
  78. package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +0 -3
  79. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  80. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +7 -26
  81. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  82. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +0 -1
  83. package/dist/translations/ar/cli.json +0 -21
  84. package/dist/translations/ar/web.json +1 -43
  85. package/dist/translations/de/cli.json +0 -21
  86. package/dist/translations/de/web.json +1 -43
  87. package/dist/translations/en/cli.json +0 -21
  88. package/dist/translations/en/web.json +1 -43
  89. package/dist/translations/es/cli.json +0 -21
  90. package/dist/translations/es/web.json +1 -43
  91. package/dist/translations/fr/cli.json +0 -21
  92. package/dist/translations/fr/web.json +1 -43
  93. package/dist/translations/he/cli.json +0 -21
  94. package/dist/translations/he/web.json +1 -43
  95. package/dist/translations/pt/cli.json +1 -22
  96. package/dist/translations/pt/web.json +1 -43
  97. package/dist/translations/ru/cli.json +0 -21
  98. package/dist/translations/ru/web.json +1 -43
  99. package/dist/translations/uk/cli.json +0 -21
  100. package/dist/translations/uk/web.json +1 -43
  101. package/dist/tsconfig.build.tsbuildinfo +1 -1
  102. package/package.json +1 -1
  103. package/web/.next/BUILD_ID +1 -1
  104. package/web/.next/build-manifest.json +2 -2
  105. package/web/.next/fallback-build-manifest.json +2 -2
  106. package/web/.next/prerender-manifest.json +3 -3
  107. package/web/.next/required-server-files.js +1 -1
  108. package/web/.next/required-server-files.json +1 -1
  109. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +32 -32
  110. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  111. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  112. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +30 -30
  113. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  114. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  115. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +33 -33
  116. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  117. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  118. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  119. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  120. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  121. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +41 -41
  122. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  123. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  124. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  125. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  126. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  127. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  128. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  129. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  130. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +30 -30
  131. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  132. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  133. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +33 -33
  134. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  135. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  136. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  137. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  138. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  139. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +41 -41
  140. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  141. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  142. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +30 -30
  143. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  144. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  145. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  146. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  147. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  148. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  149. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  150. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  151. package/web/.next/server/app/_global-error.html +2 -2
  152. package/web/.next/server/app/_global-error.rsc +1 -1
  153. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  154. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  155. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  156. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  157. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  158. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
  159. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  160. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  161. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  162. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  163. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  164. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  165. package/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  166. package/web/.next/server/app/api/sessions-batch/route.js.nft.json +1 -1
  167. package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +16 -16
  168. package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
  169. package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
  170. package/web/.next/server/app/applications/page/server-reference-manifest.json +15 -15
  171. package/web/.next/server/app/applications/page.js.nft.json +1 -1
  172. package/web/.next/server/app/applications/page_client-reference-manifest.js +1 -1
  173. package/web/.next/server/app/features/page/server-reference-manifest.json +7 -7
  174. package/web/.next/server/app/features/page.js.nft.json +1 -1
  175. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  176. package/web/.next/server/app/settings/page/server-reference-manifest.json +20 -35
  177. package/web/.next/server/app/settings/page.js +1 -1
  178. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  179. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  180. package/web/.next/server/app/skills/page/server-reference-manifest.json +15 -15
  181. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  182. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  183. package/web/.next/server/app/tools/page/server-reference-manifest.json +13 -13
  184. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  185. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  186. package/web/.next/server/app/version/page/server-reference-manifest.json +7 -7
  187. package/web/.next/server/app/version/page.js.nft.json +1 -1
  188. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  189. package/web/.next/server/chunks/[root-of-the-server]__10e976f3._.js +1 -1
  190. package/web/.next/server/chunks/[root-of-the-server]__84fede21._.js +1 -1
  191. package/web/.next/server/chunks/[root-of-the-server]__84fede21._.js.map +1 -1
  192. package/web/.next/server/chunks/[root-of-the-server]__aabea727._.js +1 -1
  193. package/web/.next/server/chunks/[root-of-the-server]__aabea727._.js.map +1 -1
  194. package/web/.next/server/chunks/d9f3b_next_dist_esm_build_templates_app-route_fc401c5d.js +1 -1
  195. package/web/.next/server/chunks/d9f3b_next_dist_esm_build_templates_app-route_fc401c5d.js.map +1 -1
  196. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js +1 -1
  197. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js.map +1 -1
  198. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js +1 -1
  199. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js.map +1 -1
  200. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js +1 -1
  201. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js.map +1 -1
  202. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  203. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  204. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  205. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  206. package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js +1 -1
  207. package/web/.next/server/chunks/ssr/[root-of-the-server]__288ffaa6._.js +1 -1
  208. package/web/.next/server/chunks/ssr/[root-of-the-server]__288ffaa6._.js.map +1 -1
  209. package/web/.next/server/chunks/ssr/[root-of-the-server]__4101a4a8._.js +1 -1
  210. package/web/.next/server/chunks/ssr/[root-of-the-server]__4101a4a8._.js.map +1 -1
  211. package/web/.next/server/chunks/ssr/[root-of-the-server]__538580df._.js +1 -1
  212. package/web/.next/server/chunks/ssr/[root-of-the-server]__538580df._.js.map +1 -1
  213. package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5de261._.js +1 -1
  214. package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5de261._.js.map +1 -1
  215. package/web/.next/server/chunks/ssr/[root-of-the-server]__638955bc._.js +1 -1
  216. package/web/.next/server/chunks/ssr/[root-of-the-server]__a9255c9a._.js +3 -0
  217. package/web/.next/server/chunks/ssr/[root-of-the-server]__a9255c9a._.js.map +1 -0
  218. package/web/.next/server/chunks/ssr/[root-of-the-server]__ac9ab3c5._.js +4 -0
  219. package/web/.next/server/chunks/ssr/[root-of-the-server]__ac9ab3c5._.js.map +1 -0
  220. package/web/.next/server/chunks/ssr/[root-of-the-server]__b88acc3c._.js +1 -1
  221. package/web/.next/server/chunks/ssr/[root-of-the-server]__b88acc3c._.js.map +1 -1
  222. package/web/.next/server/chunks/ssr/[root-of-the-server]__c3d233f3._.js +1 -1
  223. package/web/.next/server/chunks/ssr/[root-of-the-server]__c3d233f3._.js.map +1 -1
  224. package/web/.next/server/chunks/ssr/[root-of-the-server]__c6dba2b8._.js +1 -1
  225. package/web/.next/server/chunks/ssr/[root-of-the-server]__c6dba2b8._.js.map +1 -1
  226. package/web/.next/server/chunks/ssr/[root-of-the-server]__eacd32e9._.js +1 -1
  227. package/web/.next/server/chunks/ssr/[root-of-the-server]__eacd32e9._.js.map +1 -1
  228. package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js +2 -2
  229. package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js.map +1 -1
  230. package/web/.next/server/chunks/ssr/[root-of-the-server]__f94e4165._.js +1 -1
  231. package/web/.next/server/chunks/ssr/[root-of-the-server]__f94e4165._.js.map +1 -1
  232. package/web/.next/server/chunks/ssr/[root-of-the-server]__ff5a5243._.js +1 -1
  233. package/web/.next/server/chunks/ssr/[root-of-the-server]__ff5a5243._.js.map +1 -1
  234. package/web/.next/server/chunks/ssr/{_bb029ee1._.js → _06fde7cf._.js} +2 -2
  235. package/web/.next/server/chunks/ssr/{_bb029ee1._.js.map → _06fde7cf._.js.map} +1 -1
  236. package/web/.next/server/chunks/ssr/_22d60ea8._.js +3 -0
  237. package/web/.next/server/chunks/ssr/_22d60ea8._.js.map +1 -0
  238. package/web/.next/server/chunks/ssr/_33a243dd._.js +1 -1
  239. package/web/.next/server/chunks/ssr/_33a243dd._.js.map +1 -1
  240. package/web/.next/server/chunks/ssr/{_88a1b163._.js → _4b57bcc3._.js} +2 -2
  241. package/web/.next/server/chunks/ssr/_4b57bcc3._.js.map +1 -0
  242. package/web/.next/server/chunks/ssr/_519d77a9._.js +1 -1
  243. package/web/.next/server/chunks/ssr/_519d77a9._.js.map +1 -1
  244. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  245. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  246. package/web/.next/server/chunks/ssr/_5b868d9b._.js +1 -1
  247. package/web/.next/server/chunks/ssr/_5b868d9b._.js.map +1 -1
  248. package/web/.next/server/chunks/ssr/_615e07af._.js +3 -0
  249. package/web/.next/server/chunks/ssr/_615e07af._.js.map +1 -0
  250. package/web/.next/server/chunks/ssr/{_700b8ec9._.js → _64d1b6ab._.js} +2 -2
  251. package/web/.next/server/chunks/ssr/{_700b8ec9._.js.map → _64d1b6ab._.js.map} +1 -1
  252. package/web/.next/server/chunks/ssr/_6b254164._.js +1 -1
  253. package/web/.next/server/chunks/ssr/_6b254164._.js.map +1 -1
  254. package/web/.next/server/chunks/ssr/_72cc0c05._.js +1 -1
  255. package/web/.next/server/chunks/ssr/_72cc0c05._.js.map +1 -1
  256. package/web/.next/server/chunks/ssr/{_ac5961de._.js → _87fc28df._.js} +2 -2
  257. package/web/.next/server/chunks/ssr/_87fc28df._.js.map +1 -0
  258. package/web/.next/server/chunks/ssr/{_59563ac1._.js → _8b845c2a._.js} +2 -2
  259. package/web/.next/server/chunks/ssr/{_59563ac1._.js.map → _8b845c2a._.js.map} +1 -1
  260. package/web/.next/server/chunks/ssr/_8e101e0b._.js +2 -2
  261. package/web/.next/server/chunks/ssr/_8e101e0b._.js.map +1 -1
  262. package/web/.next/server/chunks/ssr/_dfbeab70._.js +3 -0
  263. package/web/.next/server/chunks/ssr/_dfbeab70._.js.map +1 -0
  264. package/web/.next/server/chunks/ssr/_e65abbd1._.js +1 -1
  265. package/web/.next/server/chunks/ssr/_e65abbd1._.js.map +1 -1
  266. package/web/.next/server/chunks/ssr/_f86fc1bf._.js +1 -1
  267. package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -1
  268. package/web/.next/server/chunks/ssr/_fc778d22._.js +3 -0
  269. package/web/.next/server/chunks/ssr/_fc778d22._.js.map +1 -0
  270. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  271. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  272. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  273. package/web/.next/server/chunks/ssr/{node_modules__pnpm_9ac649c1._.js → node_modules__pnpm_28a53b5d._.js} +2 -2
  274. package/web/.next/server/chunks/ssr/{node_modules__pnpm_9ac649c1._.js.map → node_modules__pnpm_28a53b5d._.js.map} +1 -1
  275. package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js +1 -1
  276. package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js.map +1 -1
  277. package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js +1 -1
  278. package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js.map +1 -1
  279. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +1 -1
  280. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -1
  281. package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js +1 -1
  282. package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js.map +1 -1
  283. package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js +1 -1
  284. package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js.map +1 -1
  285. package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js +3 -3
  286. package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js.map +1 -1
  287. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +1 -1
  288. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +1 -1
  289. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js +1 -1
  290. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js.map +1 -1
  291. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +1 -1
  292. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -1
  293. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_8514dfcd._.js +3 -3
  294. package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js +1 -1
  295. package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js.map +1 -1
  296. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js +1 -1
  297. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js.map +1 -1
  298. package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js +1 -1
  299. package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js.map +1 -1
  300. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  301. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  302. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
  303. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
  304. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  305. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  306. package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js +1 -1
  307. package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js.map +1 -1
  308. package/web/.next/server/chunks/ssr/translations_1562ae1a._.js +1 -1
  309. package/web/.next/server/chunks/ssr/translations_1562ae1a._.js.map +1 -1
  310. package/web/.next/server/pages/500.html +2 -2
  311. package/web/.next/server/server-reference-manifest.js +1 -1
  312. package/web/.next/server/server-reference-manifest.json +64 -79
  313. package/web/.next/static/chunks/{61201f0a38dc6784.js → 04c38e109dd4d082.js} +2 -2
  314. package/web/.next/static/chunks/{ded36f5739e4a4e1.js → 0658b69414ca5ecc.js} +1 -1
  315. package/web/.next/static/chunks/{03f93b2842ca688b.js → 1a0d47b7acf662f8.js} +2 -2
  316. package/web/.next/static/chunks/2cbe80f8e84d59a8.js +1 -0
  317. package/web/.next/static/chunks/{fcf7327eb2731905.js → 302c86aa96dcbacc.js} +1 -1
  318. package/web/.next/static/chunks/31f0d4fdd800c3ec.js +1 -0
  319. package/web/.next/static/chunks/36d968c44c52dccd.js +1 -0
  320. package/web/.next/static/chunks/3a6eedce30387a65.js +1 -0
  321. package/web/.next/static/chunks/{69bb98258075326f.js → 4ac64eaceef16292.js} +1 -1
  322. package/web/.next/static/chunks/{6be5713bee484a88.js → 4d7751c92a531b4c.js} +1 -1
  323. package/web/.next/static/chunks/{776acfd9be35f7b8.js → 4f4945ed1c4b793f.js} +3 -3
  324. package/web/.next/static/chunks/{c31dd6ed2546ed02.js → 7aaf68f557255f3d.js} +1 -1
  325. package/web/.next/static/chunks/81345b1f79dad8ea.js +1 -0
  326. package/web/.next/static/chunks/81b02c44e71de1ec.css +1 -0
  327. package/web/.next/static/chunks/91548fae41232f24.js +1 -0
  328. package/web/.next/static/chunks/930ceb2e741b0343.js +1 -0
  329. package/web/.next/static/chunks/9619faa56afb8dee.js +1 -0
  330. package/web/.next/static/chunks/{c47be6406b8c0053.js → 966f57938829b729.js} +1 -1
  331. package/web/.next/static/chunks/{dd5877dbb207f4ba.js → 97a6e70bf3c1e782.js} +1 -1
  332. package/web/.next/static/chunks/{5cb969096639b8db.js → 9a6c59ac77000a57.js} +1 -1
  333. package/web/.next/static/chunks/9aea22f126886a4a.js +7 -0
  334. package/web/.next/static/chunks/{aa792ef5139df0ab.js → a19c77561ecb59d0.js} +1 -1
  335. package/web/.next/static/chunks/c0a3918240432e6f.js +1 -0
  336. package/web/.next/static/chunks/{14ccadfe528de126.js → c9dde6d26ec1357f.js} +1 -1
  337. package/web/.next/static/chunks/e9e5cb9172ef1908.js +5 -0
  338. package/web/.next/static/chunks/f89f13e73f1306e0.js +1 -0
  339. package/apis/json-schema/ActionDispositionEntry.yaml +0 -14
  340. package/apis/json-schema/DependencyFinding.yaml +0 -28
  341. package/apis/json-schema/DependencyRiskType.yaml +0 -11
  342. package/apis/json-schema/DependencyRules.yaml +0 -38
  343. package/apis/json-schema/EffectivePolicySnapshot.yaml +0 -24
  344. package/apis/json-schema/ReleaseIntegrityCheck.yaml +0 -22
  345. package/apis/json-schema/ReleaseIntegrityCheckType.yaml +0 -9
  346. package/apis/json-schema/ReleaseIntegrityResult.yaml +0 -16
  347. package/apis/json-schema/ReleaseRules.yaml +0 -21
  348. package/apis/json-schema/SecurityActionCategory.yaml +0 -10
  349. package/apis/json-schema/SecurityActionDisposition.yaml +0 -8
  350. package/apis/json-schema/SecurityConfig.yaml +0 -17
  351. package/apis/json-schema/SecurityEvent.yaml +0 -36
  352. package/apis/json-schema/SecurityMode.yaml +0 -8
  353. package/apis/json-schema/SecurityPolicy.yaml +0 -24
  354. package/apis/json-schema/SecuritySeverity.yaml +0 -9
  355. package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts +0 -76
  356. package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts.map +0 -1
  357. package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.js +0 -11
  358. package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts +0 -77
  359. package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts.map +0 -1
  360. package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.js +0 -13
  361. package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts +0 -71
  362. package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts.map +0 -1
  363. package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.js +0 -215
  364. package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts +0 -24
  365. package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts.map +0 -1
  366. package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.js +0 -56
  367. package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts +0 -36
  368. package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts.map +0 -1
  369. package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.js +0 -76
  370. package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts +0 -14
  371. package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts.map +0 -1
  372. package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.js +0 -46
  373. package/dist/packages/core/src/domain/errors/security-violation.error.d.ts +0 -15
  374. package/dist/packages/core/src/domain/errors/security-violation.error.d.ts.map +0 -1
  375. package/dist/packages/core/src/domain/errors/security-violation.error.js +0 -20
  376. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts +0 -44
  377. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts.map +0 -1
  378. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.js +0 -55
  379. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts +0 -18
  380. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts.map +0 -1
  381. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.js +0 -31
  382. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts +0 -29
  383. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts.map +0 -1
  384. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.js +0 -53
  385. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-feature-flag-supply-chain-security.d.ts +0 -16
  386. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-feature-flag-supply-chain-security.d.ts.map +0 -1
  387. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-feature-flag-supply-chain-security.js +0 -22
  388. package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts +0 -24
  389. package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts.map +0 -1
  390. package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.js +0 -96
  391. package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts +0 -22
  392. package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts.map +0 -1
  393. package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.js +0 -30
  394. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts +0 -59
  395. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts.map +0 -1
  396. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.js +0 -89
  397. package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts +0 -53
  398. package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts.map +0 -1
  399. package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.js +0 -241
  400. package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts +0 -44
  401. package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts.map +0 -1
  402. package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.js +0 -194
  403. package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts +0 -28
  404. package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts.map +0 -1
  405. package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.js +0 -50
  406. package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts +0 -26
  407. package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts.map +0 -1
  408. package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.js +0 -147
  409. package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts +0 -44
  410. package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts.map +0 -1
  411. package/dist/packages/core/src/infrastructure/services/security/security-policy.service.js +0 -174
  412. package/dist/src/presentation/cli/commands/security.command.d.ts +0 -16
  413. package/dist/src/presentation/cli/commands/security.command.d.ts.map +0 -1
  414. package/dist/src/presentation/cli/commands/security.command.js +0 -133
  415. package/dist/src/presentation/web/app/actions/security.d.ts +0 -28
  416. package/dist/src/presentation/web/app/actions/security.d.ts.map +0 -1
  417. package/dist/src/presentation/web/app/actions/security.js +0 -59
  418. package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts +0 -6
  419. package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts.map +0 -1
  420. package/dist/src/presentation/web/components/common/repository-node/security-panel.js +0 -29
  421. package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts +0 -10
  422. package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts.map +0 -1
  423. package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.js +0 -53
  424. package/dist/src/presentation/web/components/common/security-badge.d.ts +0 -7
  425. package/dist/src/presentation/web/components/common/security-badge.d.ts.map +0 -1
  426. package/dist/src/presentation/web/components/common/security-badge.js +0 -30
  427. package/dist/src/presentation/web/components/common/security-badge.stories.d.ts +0 -12
  428. package/dist/src/presentation/web/components/common/security-badge.stories.d.ts.map +0 -1
  429. package/dist/src/presentation/web/components/common/security-badge.stories.js +0 -20
  430. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts +0 -6
  431. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts.map +0 -1
  432. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.js +0 -60
  433. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts +0 -14
  434. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts.map +0 -1
  435. package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.js +0 -116
  436. package/web/.next/server/chunks/ssr/[root-of-the-server]__81a09b67._.js +0 -4
  437. package/web/.next/server/chunks/ssr/[root-of-the-server]__81a09b67._.js.map +0 -1
  438. package/web/.next/server/chunks/ssr/[root-of-the-server]__c21d1dbd._.js +0 -3
  439. package/web/.next/server/chunks/ssr/[root-of-the-server]__c21d1dbd._.js.map +0 -1
  440. package/web/.next/server/chunks/ssr/_4fe617d4._.js +0 -3
  441. package/web/.next/server/chunks/ssr/_4fe617d4._.js.map +0 -1
  442. package/web/.next/server/chunks/ssr/_6bb86205._.js +0 -3
  443. package/web/.next/server/chunks/ssr/_6bb86205._.js.map +0 -1
  444. package/web/.next/server/chunks/ssr/_88a1b163._.js.map +0 -1
  445. package/web/.next/server/chunks/ssr/_a54e0548._.js +0 -3
  446. package/web/.next/server/chunks/ssr/_a54e0548._.js.map +0 -1
  447. package/web/.next/server/chunks/ssr/_ac5961de._.js.map +0 -1
  448. package/web/.next/server/chunks/ssr/_f8c78107._.js +0 -3
  449. package/web/.next/server/chunks/ssr/_f8c78107._.js.map +0 -1
  450. package/web/.next/static/chunks/04dacffc25b1aeca.js +0 -1
  451. package/web/.next/static/chunks/12d22b6a19665808.js +0 -1
  452. package/web/.next/static/chunks/1d538b66f81665fc.js +0 -1
  453. package/web/.next/static/chunks/23fab49df408d779.js +0 -1
  454. package/web/.next/static/chunks/6264451e0550022f.js +0 -7
  455. package/web/.next/static/chunks/7260582ee8e58549.js +0 -1
  456. package/web/.next/static/chunks/769f6939e7a4698a.js +0 -1
  457. package/web/.next/static/chunks/7851e1a90ca04c06.js +0 -1
  458. package/web/.next/static/chunks/84c1ad7ae5fc042d.js +0 -1
  459. package/web/.next/static/chunks/8d1446e71ffa2ed7.js +0 -5
  460. package/web/.next/static/chunks/cd8143002baa074e.js +0 -1
  461. package/web/.next/static/chunks/f0c985090f51835b.css +0 -1
  462. package/web/.next/static/chunks/f4ff691fdf16fb25.js +0 -1
  463. /package/web/.next/static/{Ed9rVk6pcfyq98DN_pOrK → s9Tl6ka-fGtxB11GslSv7}/_buildManifest.js +0 -0
  464. /package/web/.next/static/{Ed9rVk6pcfyq98DN_pOrK → s9Tl6ka-fGtxB11GslSv7}/_clientMiddlewareManifest.json +0 -0
  465. /package/web/.next/static/{Ed9rVk6pcfyq98DN_pOrK → s9Tl6ka-fGtxB11GslSv7}/_ssgManifest.js +0 -0
@@ -1,21 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: ReleaseRules.yaml
3
- type: object
4
- properties:
5
- requireCiOnlyPublishing:
6
- type: boolean
7
- default: true
8
- description: "Require publishing from CI only, not local (default: true)"
9
- requireProvenance:
10
- type: boolean
11
- default: true
12
- description: "Require npm provenance flags on publish (default: true)"
13
- checkWorkflowIntegrity:
14
- type: boolean
15
- default: true
16
- description: "Check that release workflow has not been tampered with (default: true)"
17
- required:
18
- - requireCiOnlyPublishing
19
- - requireProvenance
20
- - checkWorkflowIntegrity
21
- description: Release integrity policy rules
@@ -1,10 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecurityActionCategory.yaml
3
- type: string
4
- enum:
5
- - DependencyInstall
6
- - PackageScriptExec
7
- - CiWorkflowModify
8
- - PublishRelease
9
- - SandboxEscalation
10
- description: Categories of risky agent actions for runtime guardrails
@@ -1,8 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecurityActionDisposition.yaml
3
- type: string
4
- enum:
5
- - Allowed
6
- - Denied
7
- - ApprovalRequired
8
- description: Enforcement disposition for a security action category
@@ -1,17 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecurityConfig.yaml
3
- type: object
4
- properties:
5
- mode:
6
- $ref: SecurityMode.yaml
7
- default: Advisory
8
- description: "Effective security mode (default: Advisory)"
9
- lastEvaluationAt:
10
- type: string
11
- description: ISO timestamp of last policy evaluation (null if never evaluated)
12
- policySource:
13
- type: string
14
- description: Source of the active security policy (null if never evaluated)
15
- required:
16
- - mode
17
- description: Supply-chain security configuration persisted in settings
@@ -1,36 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecurityEvent.yaml
3
- type: object
4
- properties:
5
- repositoryPath:
6
- type: string
7
- description: Absolute path to the repository this event belongs to
8
- featureId:
9
- type: string
10
- description: Feature ID if this event occurred during a feature run
11
- severity:
12
- $ref: SecuritySeverity.yaml
13
- description: Severity of this security event
14
- category:
15
- $ref: SecurityActionCategory.yaml
16
- description: Action category that triggered this event
17
- disposition:
18
- $ref: SecurityActionDisposition.yaml
19
- description: How the action was handled (allowed, denied, approval-required)
20
- actor:
21
- type: string
22
- description: Actor or source that triggered this event (agent, user, CI)
23
- message:
24
- type: string
25
- description: Human-readable event description
26
- remediationSummary:
27
- type: string
28
- description: Actionable remediation guidance
29
- required:
30
- - repositoryPath
31
- - severity
32
- - category
33
- - disposition
34
- allOf:
35
- - $ref: BaseEntity.yaml
36
- description: Persisted security event for audit and observability
@@ -1,8 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecurityMode.yaml
3
- type: string
4
- enum:
5
- - Disabled
6
- - Advisory
7
- - Enforce
8
- description: Effective security mode for a repository
@@ -1,24 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecurityPolicy.yaml
3
- type: object
4
- properties:
5
- mode:
6
- $ref: SecurityMode.yaml
7
- description: Desired security mode for this repository
8
- actionDispositions:
9
- type: array
10
- items:
11
- $ref: ActionDispositionEntry.yaml
12
- description: Per-action-category enforcement dispositions
13
- dependencyRules:
14
- $ref: DependencyRules.yaml
15
- description: Dependency risk evaluation rules
16
- releaseRules:
17
- $ref: ReleaseRules.yaml
18
- description: Release integrity check rules
19
- required:
20
- - mode
21
- - actionDispositions
22
- - dependencyRules
23
- - releaseRules
24
- description: Security policy configuration from shep.security.yaml
@@ -1,9 +0,0 @@
1
- $schema: https://json-schema.org/draft/2020-12/schema
2
- $id: SecuritySeverity.yaml
3
- type: string
4
- enum:
5
- - Low
6
- - Medium
7
- - High
8
- - Critical
9
- description: Severity level for security findings
@@ -1,76 +0,0 @@
1
- /**
2
- * Security Event Repository Interface
3
- *
4
- * Output port for SecurityEvent persistence operations.
5
- * Implementations handle database-specific logic (SQLite, etc.).
6
- *
7
- * Following Clean Architecture:
8
- * - Domain and Application layers depend on this interface
9
- * - Infrastructure layer provides concrete implementations
10
- */
11
- import type { SecurityEvent, SecuritySeverity } from '../../../../domain/generated/output.js';
12
- /**
13
- * Options for querying security events.
14
- */
15
- export interface SecurityEventQueryOptions {
16
- /** Maximum number of events to return */
17
- limit?: number;
18
- /** Number of events to skip (for pagination) */
19
- offset?: number;
20
- /** Filter by minimum severity level */
21
- severity?: SecuritySeverity;
22
- }
23
- /**
24
- * Repository interface for SecurityEvent entity persistence.
25
- *
26
- * Implementations must:
27
- * - Handle database connection management
28
- * - Provide thread-safe operations (SQLite WAL handles concurrency)
29
- * - Support repository-scoped and feature-scoped queries
30
- * - Use parameterized queries for all SQL operations
31
- */
32
- export interface ISecurityEventRepository {
33
- /**
34
- * Persist a new security event.
35
- *
36
- * @param event - The security event to persist
37
- */
38
- save(event: SecurityEvent): Promise<void>;
39
- /**
40
- * Find security events for a given repository path.
41
- *
42
- * Results are ordered by created_at DESC (most recent first).
43
- *
44
- * @param repositoryPath - Absolute path to the repository
45
- * @param options - Optional query filters and pagination
46
- * @returns Array of matching security events
47
- */
48
- findByRepository(repositoryPath: string, options?: SecurityEventQueryOptions): Promise<SecurityEvent[]>;
49
- /**
50
- * Find security events for a given feature run.
51
- *
52
- * Results are ordered by created_at DESC (most recent first).
53
- *
54
- * @param featureId - The feature ID to filter by
55
- * @param options - Optional query filters and pagination
56
- * @returns Array of matching security events
57
- */
58
- findByFeature(featureId: string, options?: SecurityEventQueryOptions): Promise<SecurityEvent[]>;
59
- /**
60
- * Delete security events older than the given date.
61
- *
62
- * Used for 90-day retention cleanup.
63
- *
64
- * @param date - Events created before this date will be deleted
65
- * @returns Number of events deleted
66
- */
67
- deleteOlderThan(date: Date): Promise<number>;
68
- /**
69
- * Count security events for a given repository path.
70
- *
71
- * @param repositoryPath - Absolute path to the repository
72
- * @returns Total count of security events
73
- */
74
- count(repositoryPath: string): Promise<number>;
75
- }
76
- //# sourceMappingURL=security-event.repository.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"security-event.repository.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/repositories/security-event.repository.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE9F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C;;;;;;;;OAQG;IACH,gBAAgB,CACd,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAE5B;;;;;;;;OAQG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAEhG;;;;;;;OAOG;IACH,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7C;;;;;OAKG;IACH,KAAK,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAChD"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Security Event Repository Interface
3
- *
4
- * Output port for SecurityEvent persistence operations.
5
- * Implementations handle database-specific logic (SQLite, etc.).
6
- *
7
- * Following Clean Architecture:
8
- * - Domain and Application layers depend on this interface
9
- * - Infrastructure layer provides concrete implementations
10
- */
11
- export {};
@@ -1,77 +0,0 @@
1
- /**
2
- * Security Policy Service Interface
3
- *
4
- * Output port for the central security policy engine.
5
- * Implementations handle policy file reading, validation, merging
6
- * with persisted settings, and deterministic policy evaluation.
7
- *
8
- * Following Clean Architecture:
9
- * - Application and use-case layers depend on this interface
10
- * - Infrastructure layer provides the concrete implementation
11
- * - All consumers (CLI, runtime, CI, UI) resolve the same instance via DI
12
- */
13
- import type { EffectivePolicySnapshot, SecurityActionCategory, SecurityActionDisposition } from '../../../../domain/generated/output.js';
14
- /**
15
- * Result of validating a security policy file.
16
- */
17
- export interface PolicyValidationResult {
18
- /** Whether the policy file is valid */
19
- valid: boolean;
20
- /** Per-field validation error messages (empty when valid) */
21
- errors: string[];
22
- }
23
- /**
24
- * Service interface for security policy evaluation.
25
- *
26
- * Implementations must:
27
- * - Read shep.security.yaml from the repository root
28
- * - Merge repository policy with persisted settings defaults
29
- * - Apply deterministic precedence (global defaults < repo policy)
30
- * - Cache effective policy per repository path
31
- * - Fail fast on invalid policy files with actionable errors
32
- */
33
- export interface ISecurityPolicyService {
34
- /**
35
- * Evaluate and compute the effective security policy for a repository.
36
- *
37
- * Reads the policy file, merges with persisted settings defaults,
38
- * validates, and returns a deterministic snapshot. Re-evaluates
39
- * on every call (no cache).
40
- *
41
- * @param repositoryPath - Absolute path to the repository root
42
- * @returns Computed effective policy snapshot
43
- * @throws Error if the policy file exists but is invalid
44
- */
45
- evaluatePolicy(repositoryPath: string): Promise<EffectivePolicySnapshot>;
46
- /**
47
- * Get the effective security policy for a repository.
48
- *
49
- * Returns a cached snapshot if available, otherwise computes
50
- * and caches the result. Use evaluatePolicy() to force re-evaluation.
51
- *
52
- * @param repositoryPath - Absolute path to the repository root
53
- * @returns Cached or freshly computed effective policy snapshot
54
- * @throws Error if the policy file exists but is invalid
55
- */
56
- getEffectivePolicy(repositoryPath: string): Promise<EffectivePolicySnapshot>;
57
- /**
58
- * Validate a security policy file without computing effective policy.
59
- *
60
- * Parses and validates the file against the expected schema.
61
- * Returns a structured result with per-field error messages.
62
- *
63
- * @param filePath - Absolute path to the policy file
64
- * @returns Validation result with errors array
65
- */
66
- validatePolicyFile(filePath: string): Promise<PolicyValidationResult>;
67
- /**
68
- * Look up the enforcement disposition for a specific action category
69
- * within a given effective policy snapshot.
70
- *
71
- * @param policy - The effective policy snapshot to query
72
- * @param actionCategory - The action category to look up
73
- * @returns The disposition (Allowed, Denied, or ApprovalRequired)
74
- */
75
- getActionDisposition(policy: EffectivePolicySnapshot, actionCategory: SecurityActionCategory): SecurityActionDisposition;
76
- }
77
- //# sourceMappingURL=security-policy-service.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"security-policy-service.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/services/security-policy-service.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,wCAAwC,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,uCAAuC;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,6DAA6D;IAC7D,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEzE;;;;;;;;;OASG;IACH,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAE7E;;;;;;;;OAQG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAEtE;;;;;;;OAOG;IACH,oBAAoB,CAClB,MAAM,EAAE,uBAAuB,EAC/B,cAAc,EAAE,sBAAsB,GACrC,yBAAyB,CAAC;CAC9B"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Security Policy Service Interface
3
- *
4
- * Output port for the central security policy engine.
5
- * Implementations handle policy file reading, validation, merging
6
- * with persisted settings, and deterministic policy evaluation.
7
- *
8
- * Following Clean Architecture:
9
- * - Application and use-case layers depend on this interface
10
- * - Infrastructure layer provides the concrete implementation
11
- * - All consumers (CLI, runtime, CI, UI) resolve the same instance via DI
12
- */
13
- export {};
@@ -1,71 +0,0 @@
1
- /**
2
- * Enforce Security Use Case
3
- *
4
- * Orchestrates the full security enforcement flow:
5
- * 1. Evaluate effective policy
6
- * 2. Run dependency-risk checks
7
- * 3. Run release-integrity checks
8
- * 4. Persist findings as security events
9
- * 5. Return structured enforcement result
10
- *
11
- * Supports Advisory (always pass) and Enforce (fail on violations) modes.
12
- * Disabled mode returns empty pass result.
13
- */
14
- import { SecurityMode } from '../../../domain/generated/output.js';
15
- import type { EffectivePolicySnapshot, DependencyFinding, ReleaseIntegrityResult } from '../../../domain/generated/output.js';
16
- import type { ISecurityPolicyService } from '../../ports/output/services/security-policy-service.interface.js';
17
- import type { ISecurityEventRepository } from '../../ports/output/repositories/security-event.repository.interface.js';
18
- import type { ISettingsRepository } from '../../ports/output/repositories/settings.repository.interface.js';
19
- import type { IGitHubRepositoryService, GovernanceFinding } from '../../ports/output/services/github-repository-service.interface.js';
20
- import { DependencyRiskEvaluator } from '../../../infrastructure/services/security/dependency-risk-evaluator.js';
21
- import { ReleaseIntegrityEvaluator } from '../../../infrastructure/services/security/release-integrity-evaluator.js';
22
- /**
23
- * Input for the enforce security use case.
24
- */
25
- export interface EnforceSecurityInput {
26
- /** Absolute path to the repository to evaluate */
27
- repositoryPath: string;
28
- }
29
- /**
30
- * Result of the enforcement flow.
31
- */
32
- export interface EnforceSecurityResult {
33
- /** Whether all checks passed (Advisory always passes, Enforce fails on violations) */
34
- passed: boolean;
35
- /** Effective security mode used for evaluation */
36
- mode: SecurityMode;
37
- /** Effective policy snapshot */
38
- policy: EffectivePolicySnapshot;
39
- /** Dependency risk findings */
40
- dependencyFindings: DependencyFinding[];
41
- /** Release integrity result */
42
- releaseIntegrity: ReleaseIntegrityResult;
43
- /** GitHub governance audit findings (audit-only, do not affect pass/fail) */
44
- governanceFindings: GovernanceFinding[];
45
- /** Total number of findings (excludes governance — governance is audit-only) */
46
- totalFindings: number;
47
- }
48
- export declare class EnforceSecurityUseCase {
49
- private readonly policyService;
50
- private readonly eventRepository;
51
- private readonly settingsRepository;
52
- private readonly dependencyEvaluator;
53
- private readonly releaseEvaluator;
54
- private readonly githubService;
55
- constructor(policyService: ISecurityPolicyService, eventRepository: ISecurityEventRepository, settingsRepository: ISettingsRepository, dependencyEvaluator: DependencyRiskEvaluator, releaseEvaluator: ReleaseIntegrityEvaluator, githubService: IGitHubRepositoryService);
56
- execute(input: EnforceSecurityInput): Promise<EnforceSecurityResult>;
57
- /**
58
- * Resolve GitHub owner/repo from the repository's git remote and run governance audit.
59
- * Returns empty array if the remote cannot be resolved (not a GitHub repo, no remote, etc.).
60
- */
61
- private runGovernanceAudit;
62
- /**
63
- * Persist dependency findings, failed release checks, and governance findings as security events.
64
- */
65
- private persistFindings;
66
- /**
67
- * Update settings with the latest evaluation timestamp and policy source.
68
- */
69
- private updateEvaluationTimestamp;
70
- }
71
- //# sourceMappingURL=enforce-security.use-case.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enforce-security.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/security/enforce-security.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,YAAY,EAA0B,MAAM,qCAAqC,CAAC;AAC3F,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EAIvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wEAAwE,CAAC;AACvH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kEAAkE,CAAC;AAC5G,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,oEAAoE,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wEAAwE,CAAC;AACjH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AAOrH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,MAAM,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,IAAI,EAAE,YAAY,CAAC;IACnB,gCAAgC;IAChC,MAAM,EAAE,uBAAuB,CAAC;IAChC,+BAA+B;IAC/B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,+BAA+B;IAC/B,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,6EAA6E;IAC7E,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,gFAAgF;IAChF,aAAa,EAAE,MAAM,CAAC;CACvB;AAuBD,qBACa,sBAAsB;IAG/B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAEhC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAEnC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAEpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEjC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAVb,aAAa,EAAE,sBAAsB,EAErC,eAAe,EAAE,wBAAwB,EAEzC,kBAAkB,EAAE,mBAAmB,EAEvC,mBAAmB,EAAE,uBAAuB,EAE5C,gBAAgB,EAAE,yBAAyB,EAE3C,aAAa,EAAE,wBAAwB;IAGpD,OAAO,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IA8D1E;;;OAGG;YACW,kBAAkB;IAgBhC;;OAEG;YACW,eAAe;IA6D7B;;OAEG;YACW,yBAAyB;CAgBxC"}
@@ -1,215 +0,0 @@
1
- /**
2
- * Enforce Security Use Case
3
- *
4
- * Orchestrates the full security enforcement flow:
5
- * 1. Evaluate effective policy
6
- * 2. Run dependency-risk checks
7
- * 3. Run release-integrity checks
8
- * 4. Persist findings as security events
9
- * 5. Return structured enforcement result
10
- *
11
- * Supports Advisory (always pass) and Enforce (fail on violations) modes.
12
- * Disabled mode returns empty pass result.
13
- */
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- var __metadata = (this && this.__metadata) || function (k, v) {
21
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22
- };
23
- var __param = (this && this.__param) || function (paramIndex, decorator) {
24
- return function (target, key) { decorator(target, key, paramIndex); }
25
- };
26
- import { injectable, inject } from 'tsyringe';
27
- import { SecurityMode, SecurityActionCategory } from '../../../domain/generated/output.js';
28
- import { DependencyRiskEvaluator } from '../../../infrastructure/services/security/dependency-risk-evaluator.js';
29
- import { ReleaseIntegrityEvaluator } from '../../../infrastructure/services/security/release-integrity-evaluator.js';
30
- import { randomUUID } from 'node:crypto';
31
- import { execFile as execFileCb } from 'node:child_process';
32
- import { promisify } from 'node:util';
33
- const execFileAsync = promisify(execFileCb);
34
- /**
35
- * Default dependency rules when no policy file defines them.
36
- */
37
- const DEFAULT_DEPENDENCY_RULES = {
38
- checkLockfileConsistency: true,
39
- checkLifecycleScripts: true,
40
- checkNonRegistrySource: true,
41
- enforceStrictVersionRanges: false,
42
- allowlist: [],
43
- denylist: [],
44
- };
45
- /**
46
- * Default release rules when no policy file defines them.
47
- */
48
- const DEFAULT_RELEASE_RULES = {
49
- requireCiOnlyPublishing: true,
50
- requireProvenance: true,
51
- checkWorkflowIntegrity: true,
52
- };
53
- let EnforceSecurityUseCase = class EnforceSecurityUseCase {
54
- policyService;
55
- eventRepository;
56
- settingsRepository;
57
- dependencyEvaluator;
58
- releaseEvaluator;
59
- githubService;
60
- constructor(policyService, eventRepository, settingsRepository, dependencyEvaluator, releaseEvaluator, githubService) {
61
- this.policyService = policyService;
62
- this.eventRepository = eventRepository;
63
- this.settingsRepository = settingsRepository;
64
- this.dependencyEvaluator = dependencyEvaluator;
65
- this.releaseEvaluator = releaseEvaluator;
66
- this.githubService = githubService;
67
- }
68
- async execute(input) {
69
- // Evaluate effective policy
70
- const policy = await this.policyService.evaluatePolicy(input.repositoryPath);
71
- // Disabled mode — return empty pass result
72
- if (policy.mode === SecurityMode.Disabled) {
73
- return {
74
- passed: true,
75
- mode: SecurityMode.Disabled,
76
- policy,
77
- dependencyFindings: [],
78
- releaseIntegrity: { checks: [], passed: true },
79
- governanceFindings: [],
80
- totalFindings: 0,
81
- };
82
- }
83
- // Run dependency-risk checks
84
- const dependencyFindings = this.dependencyEvaluator.evaluate(input.repositoryPath, DEFAULT_DEPENDENCY_RULES);
85
- // Run release-integrity checks
86
- const releaseIntegrity = this.releaseEvaluator.evaluate(input.repositoryPath, DEFAULT_RELEASE_RULES);
87
- // Run governance audit (audit-only — does not affect pass/fail)
88
- const governanceFindings = await this.runGovernanceAudit(input.repositoryPath);
89
- // Count total findings (governance excluded — audit-only per FR-15)
90
- const failedReleaseChecks = releaseIntegrity.checks.filter((c) => !c.passed);
91
- const totalFindings = dependencyFindings.length + failedReleaseChecks.length;
92
- // Persist findings as security events
93
- await this.persistFindings(input.repositoryPath, dependencyFindings, releaseIntegrity, governanceFindings);
94
- // Update settings with evaluation timestamp
95
- await this.updateEvaluationTimestamp(policy.source);
96
- // Determine pass/fail based on mode (governance is always advisory)
97
- const hasFailures = totalFindings > 0;
98
- const passed = policy.mode === SecurityMode.Advisory ? true : !hasFailures;
99
- return {
100
- passed,
101
- mode: policy.mode,
102
- policy,
103
- dependencyFindings,
104
- releaseIntegrity,
105
- governanceFindings,
106
- totalFindings,
107
- };
108
- }
109
- /**
110
- * Resolve GitHub owner/repo from the repository's git remote and run governance audit.
111
- * Returns empty array if the remote cannot be resolved (not a GitHub repo, no remote, etc.).
112
- */
113
- async runGovernanceAudit(repositoryPath) {
114
- try {
115
- const { stdout } = await execFileAsync('git', ['remote', 'get-url', 'origin'], {
116
- cwd: repositoryPath,
117
- });
118
- const remoteUrl = stdout.trim();
119
- if (!remoteUrl)
120
- return [];
121
- const parsed = this.githubService.parseGitHubUrl(remoteUrl);
122
- return await this.githubService.auditRepositoryGovernance(parsed.owner, parsed.repo);
123
- }
124
- catch {
125
- // Not a GitHub repository, no remote configured, or parse failure — skip governance audit
126
- return [];
127
- }
128
- }
129
- /**
130
- * Persist dependency findings, failed release checks, and governance findings as security events.
131
- */
132
- async persistFindings(repositoryPath, depFindings, releaseResult, govFindings) {
133
- const now = new Date().toISOString();
134
- for (const finding of depFindings) {
135
- const event = {
136
- id: randomUUID(),
137
- repositoryPath,
138
- severity: finding.severity,
139
- category: SecurityActionCategory.DependencyInstall,
140
- disposition: 'Denied',
141
- message: finding.message,
142
- remediationSummary: finding.remediation,
143
- createdAt: now,
144
- updatedAt: now,
145
- };
146
- await this.eventRepository.save(event);
147
- }
148
- for (const check of releaseResult.checks) {
149
- if (!check.passed) {
150
- const event = {
151
- id: randomUUID(),
152
- repositoryPath,
153
- severity: check.severity,
154
- category: SecurityActionCategory.PublishRelease,
155
- disposition: 'Denied',
156
- message: check.message,
157
- createdAt: now,
158
- updatedAt: now,
159
- };
160
- await this.eventRepository.save(event);
161
- }
162
- }
163
- // Persist governance findings as advisory events
164
- for (const finding of govFindings) {
165
- // Map governance severity to SecuritySeverity (Unknown → Low for persistence)
166
- const severity = finding.severity === 'Unknown'
167
- ? 'Low'
168
- : finding.severity;
169
- const event = {
170
- id: randomUUID(),
171
- repositoryPath,
172
- severity,
173
- category: SecurityActionCategory.CiWorkflowModify,
174
- disposition: 'Allowed',
175
- message: `[Governance Audit] ${finding.message}`,
176
- remediationSummary: finding.remediation,
177
- createdAt: now,
178
- updatedAt: now,
179
- };
180
- await this.eventRepository.save(event);
181
- }
182
- }
183
- /**
184
- * Update settings with the latest evaluation timestamp and policy source.
185
- */
186
- async updateEvaluationTimestamp(policySource) {
187
- try {
188
- const settings = await this.settingsRepository.load();
189
- if (settings) {
190
- settings.security = {
191
- ...settings.security,
192
- mode: settings.security?.mode ?? SecurityMode.Advisory,
193
- lastEvaluationAt: new Date().toISOString(),
194
- policySource,
195
- };
196
- await this.settingsRepository.update(settings);
197
- }
198
- }
199
- catch {
200
- // Non-fatal — evaluation results are still returned even if settings update fails
201
- }
202
- }
203
- };
204
- EnforceSecurityUseCase = __decorate([
205
- injectable(),
206
- __param(0, inject('ISecurityPolicyService')),
207
- __param(1, inject('ISecurityEventRepository')),
208
- __param(2, inject('ISettingsRepository')),
209
- __param(3, inject('DependencyRiskEvaluator')),
210
- __param(4, inject('ReleaseIntegrityEvaluator')),
211
- __param(5, inject('IGitHubRepositoryService')),
212
- __metadata("design:paramtypes", [Object, Object, Object, DependencyRiskEvaluator,
213
- ReleaseIntegrityEvaluator, Object])
214
- ], EnforceSecurityUseCase);
215
- export { EnforceSecurityUseCase };
@@ -1,24 +0,0 @@
1
- /**
2
- * Evaluate Security Policy Use Case
3
- *
4
- * Wraps ISecurityPolicyService.evaluatePolicy() as a use case.
5
- * Updates settings with the latest evaluation timestamp and policy source.
6
- * Returns the effective policy snapshot.
7
- */
8
- import type { EffectivePolicySnapshot } from '../../../domain/generated/output.js';
9
- import type { ISecurityPolicyService } from '../../ports/output/services/security-policy-service.interface.js';
10
- import type { ISettingsRepository } from '../../ports/output/repositories/settings.repository.interface.js';
11
- /**
12
- * Input for the evaluate security policy use case.
13
- */
14
- export interface EvaluateSecurityPolicyInput {
15
- /** Absolute path to the repository to evaluate */
16
- repositoryPath: string;
17
- }
18
- export declare class EvaluateSecurityPolicyUseCase {
19
- private readonly policyService;
20
- private readonly settingsRepository;
21
- constructor(policyService: ISecurityPolicyService, settingsRepository: ISettingsRepository);
22
- execute(input: EvaluateSecurityPolicyInput): Promise<EffectivePolicySnapshot>;
23
- }
24
- //# sourceMappingURL=evaluate-security-policy.use-case.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluate-security-policy.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kEAAkE,CAAC;AAE5G;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,qBACa,6BAA6B;IAGtC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAFlB,aAAa,EAAE,sBAAsB,EAErC,kBAAkB,EAAE,mBAAmB;IAGpD,OAAO,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAqBpF"}