@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.
- package/README.md +1 -0
- package/apis/json-schema/FeatureFlags.yaml +0 -5
- package/apis/json-schema/Settings.yaml +0 -3
- package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts +1 -15
- package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts +1 -3
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts +0 -38
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.js +0 -9
- package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts +0 -11
- package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.js +0 -2
- package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.js +0 -2
- package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.js +0 -2
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +0 -1
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +0 -2
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +0 -2
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -6
- package/dist/packages/core/src/domain/generated/output.d.ts +0 -263
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +0 -43
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +0 -57
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +0 -4
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +0 -17
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +3 -15
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts +0 -2
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +0 -12
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts +0 -10
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +0 -34
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts +1 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.js +1 -7
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts +1 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +1 -32
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +0 -25
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts +1 -4
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.js +0 -10
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts +1 -10
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.js +1 -101
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts +0 -1
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +0 -61
- package/dist/src/presentation/cli/index.js +0 -2
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +1 -5
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts +1 -3
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +0 -2
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +1 -3
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +1 -2
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts +1 -3
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.js +2 -3
- package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.js +3 -3
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +0 -3
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +0 -3
- package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.js +7 -26
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +0 -1
- package/dist/translations/ar/cli.json +0 -21
- package/dist/translations/ar/web.json +1 -43
- package/dist/translations/de/cli.json +0 -21
- package/dist/translations/de/web.json +1 -43
- package/dist/translations/en/cli.json +0 -21
- package/dist/translations/en/web.json +1 -43
- package/dist/translations/es/cli.json +0 -21
- package/dist/translations/es/web.json +1 -43
- package/dist/translations/fr/cli.json +0 -21
- package/dist/translations/fr/web.json +1 -43
- package/dist/translations/he/cli.json +0 -21
- package/dist/translations/he/web.json +1 -43
- package/dist/translations/pt/cli.json +1 -22
- package/dist/translations/pt/web.json +1 -43
- package/dist/translations/ru/cli.json +0 -21
- package/dist/translations/ru/web.json +1 -43
- package/dist/translations/uk/cli.json +0 -21
- package/dist/translations/uk/web.json +1 -43
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +32 -32
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +33 -33
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +41 -41
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +33 -33
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +41 -41
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
- package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
- package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
- package/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/web/.next/server/app/api/sessions-batch/route.js.nft.json +1 -1
- package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +16 -16
- package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
- package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/applications/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/applications/page.js.nft.json +1 -1
- package/web/.next/server/app/applications/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/features/page/server-reference-manifest.json +7 -7
- package/web/.next/server/app/features/page.js.nft.json +1 -1
- package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +20 -35
- package/web/.next/server/app/settings/page.js +1 -1
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +13 -13
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +7 -7
- package/web/.next/server/app/version/page.js.nft.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__10e976f3._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__84fede21._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__84fede21._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__aabea727._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__aabea727._.js.map +1 -1
- package/web/.next/server/chunks/d9f3b_next_dist_esm_build_templates_app-route_fc401c5d.js +1 -1
- package/web/.next/server/chunks/d9f3b_next_dist_esm_build_templates_app-route_fc401c5d.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__288ffaa6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__288ffaa6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4101a4a8._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4101a4a8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__538580df._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__538580df._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5de261._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5c5de261._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__638955bc._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a9255c9a._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a9255c9a._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ac9ab3c5._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ac9ab3c5._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b88acc3c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b88acc3c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c3d233f3._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c3d233f3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c6dba2b8._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c6dba2b8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__eacd32e9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__eacd32e9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f94e4165._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f94e4165._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ff5a5243._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ff5a5243._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_bb029ee1._.js → _06fde7cf._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_bb029ee1._.js.map → _06fde7cf._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_22d60ea8._.js +3 -0
- package/web/.next/server/chunks/ssr/_22d60ea8._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_33a243dd._.js +1 -1
- package/web/.next/server/chunks/ssr/_33a243dd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_88a1b163._.js → _4b57bcc3._.js} +2 -2
- package/web/.next/server/chunks/ssr/_4b57bcc3._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_519d77a9._.js +1 -1
- package/web/.next/server/chunks/ssr/_519d77a9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_5b868d9b._.js +1 -1
- package/web/.next/server/chunks/ssr/_5b868d9b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_615e07af._.js +3 -0
- package/web/.next/server/chunks/ssr/_615e07af._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_700b8ec9._.js → _64d1b6ab._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_700b8ec9._.js.map → _64d1b6ab._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_6b254164._.js +1 -1
- package/web/.next/server/chunks/ssr/_6b254164._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_72cc0c05._.js +1 -1
- package/web/.next/server/chunks/ssr/_72cc0c05._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_ac5961de._.js → _87fc28df._.js} +2 -2
- package/web/.next/server/chunks/ssr/_87fc28df._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_59563ac1._.js → _8b845c2a._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_59563ac1._.js.map → _8b845c2a._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_8e101e0b._.js +2 -2
- package/web/.next/server/chunks/ssr/_8e101e0b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_dfbeab70._.js +3 -0
- package/web/.next/server/chunks/ssr/_dfbeab70._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_e65abbd1._.js +1 -1
- package/web/.next/server/chunks/ssr/_e65abbd1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f86fc1bf._.js +1 -1
- package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_fc778d22._.js +3 -0
- package/web/.next/server/chunks/ssr/_fc778d22._.js.map +1 -0
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
- package/web/.next/server/chunks/ssr/{node_modules__pnpm_9ac649c1._.js → node_modules__pnpm_28a53b5d._.js} +2 -2
- package/web/.next/server/chunks/ssr/{node_modules__pnpm_9ac649c1._.js.map → node_modules__pnpm_28a53b5d._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js +3 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_8514dfcd._.js +3 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/translations_1562ae1a._.js +1 -1
- package/web/.next/server/chunks/ssr/translations_1562ae1a._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +64 -79
- package/web/.next/static/chunks/{61201f0a38dc6784.js → 04c38e109dd4d082.js} +2 -2
- package/web/.next/static/chunks/{ded36f5739e4a4e1.js → 0658b69414ca5ecc.js} +1 -1
- package/web/.next/static/chunks/{03f93b2842ca688b.js → 1a0d47b7acf662f8.js} +2 -2
- package/web/.next/static/chunks/2cbe80f8e84d59a8.js +1 -0
- package/web/.next/static/chunks/{fcf7327eb2731905.js → 302c86aa96dcbacc.js} +1 -1
- package/web/.next/static/chunks/31f0d4fdd800c3ec.js +1 -0
- package/web/.next/static/chunks/36d968c44c52dccd.js +1 -0
- package/web/.next/static/chunks/3a6eedce30387a65.js +1 -0
- package/web/.next/static/chunks/{69bb98258075326f.js → 4ac64eaceef16292.js} +1 -1
- package/web/.next/static/chunks/{6be5713bee484a88.js → 4d7751c92a531b4c.js} +1 -1
- package/web/.next/static/chunks/{776acfd9be35f7b8.js → 4f4945ed1c4b793f.js} +3 -3
- package/web/.next/static/chunks/{c31dd6ed2546ed02.js → 7aaf68f557255f3d.js} +1 -1
- package/web/.next/static/chunks/81345b1f79dad8ea.js +1 -0
- package/web/.next/static/chunks/81b02c44e71de1ec.css +1 -0
- package/web/.next/static/chunks/91548fae41232f24.js +1 -0
- package/web/.next/static/chunks/930ceb2e741b0343.js +1 -0
- package/web/.next/static/chunks/9619faa56afb8dee.js +1 -0
- package/web/.next/static/chunks/{c47be6406b8c0053.js → 966f57938829b729.js} +1 -1
- package/web/.next/static/chunks/{dd5877dbb207f4ba.js → 97a6e70bf3c1e782.js} +1 -1
- package/web/.next/static/chunks/{5cb969096639b8db.js → 9a6c59ac77000a57.js} +1 -1
- package/web/.next/static/chunks/9aea22f126886a4a.js +7 -0
- package/web/.next/static/chunks/{aa792ef5139df0ab.js → a19c77561ecb59d0.js} +1 -1
- package/web/.next/static/chunks/c0a3918240432e6f.js +1 -0
- package/web/.next/static/chunks/{14ccadfe528de126.js → c9dde6d26ec1357f.js} +1 -1
- package/web/.next/static/chunks/e9e5cb9172ef1908.js +5 -0
- package/web/.next/static/chunks/f89f13e73f1306e0.js +1 -0
- package/apis/json-schema/ActionDispositionEntry.yaml +0 -14
- package/apis/json-schema/DependencyFinding.yaml +0 -28
- package/apis/json-schema/DependencyRiskType.yaml +0 -11
- package/apis/json-schema/DependencyRules.yaml +0 -38
- package/apis/json-schema/EffectivePolicySnapshot.yaml +0 -24
- package/apis/json-schema/ReleaseIntegrityCheck.yaml +0 -22
- package/apis/json-schema/ReleaseIntegrityCheckType.yaml +0 -9
- package/apis/json-schema/ReleaseIntegrityResult.yaml +0 -16
- package/apis/json-schema/ReleaseRules.yaml +0 -21
- package/apis/json-schema/SecurityActionCategory.yaml +0 -10
- package/apis/json-schema/SecurityActionDisposition.yaml +0 -8
- package/apis/json-schema/SecurityConfig.yaml +0 -17
- package/apis/json-schema/SecurityEvent.yaml +0 -36
- package/apis/json-schema/SecurityMode.yaml +0 -8
- package/apis/json-schema/SecurityPolicy.yaml +0 -24
- package/apis/json-schema/SecuritySeverity.yaml +0 -9
- package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts +0 -76
- package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.js +0 -11
- package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts +0 -77
- package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.js +0 -13
- package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts +0 -71
- package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.js +0 -215
- package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts +0 -24
- package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.js +0 -56
- package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts +0 -36
- package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.js +0 -76
- package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts +0 -14
- package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.js +0 -46
- package/dist/packages/core/src/domain/errors/security-violation.error.d.ts +0 -15
- package/dist/packages/core/src/domain/errors/security-violation.error.d.ts.map +0 -1
- package/dist/packages/core/src/domain/errors/security-violation.error.js +0 -20
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts +0 -44
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.js +0 -55
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts +0 -18
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.js +0 -31
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts +0 -29
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.js +0 -53
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-feature-flag-supply-chain-security.d.ts +0 -16
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-feature-flag-supply-chain-security.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-feature-flag-supply-chain-security.js +0 -22
- package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts +0 -24
- package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.js +0 -96
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts +0 -22
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.js +0 -30
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts +0 -59
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.js +0 -89
- package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts +0 -53
- package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.js +0 -241
- package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts +0 -44
- package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.js +0 -194
- package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts +0 -28
- package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.js +0 -50
- package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts +0 -26
- package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.js +0 -147
- package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts +0 -44
- package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/security-policy.service.js +0 -174
- package/dist/src/presentation/cli/commands/security.command.d.ts +0 -16
- package/dist/src/presentation/cli/commands/security.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/security.command.js +0 -133
- package/dist/src/presentation/web/app/actions/security.d.ts +0 -28
- package/dist/src/presentation/web/app/actions/security.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/security.js +0 -59
- package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts +0 -6
- package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/repository-node/security-panel.js +0 -29
- package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts +0 -10
- package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.js +0 -53
- package/dist/src/presentation/web/components/common/security-badge.d.ts +0 -7
- package/dist/src/presentation/web/components/common/security-badge.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/security-badge.js +0 -30
- package/dist/src/presentation/web/components/common/security-badge.stories.d.ts +0 -12
- package/dist/src/presentation/web/components/common/security-badge.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/security-badge.stories.js +0 -20
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts +0 -6
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.js +0 -60
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts +0 -14
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.js +0 -116
- package/web/.next/server/chunks/ssr/[root-of-the-server]__81a09b67._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__81a09b67._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c21d1dbd._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c21d1dbd._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_4fe617d4._.js +0 -3
- package/web/.next/server/chunks/ssr/_4fe617d4._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_6bb86205._.js +0 -3
- package/web/.next/server/chunks/ssr/_6bb86205._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_88a1b163._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_a54e0548._.js +0 -3
- package/web/.next/server/chunks/ssr/_a54e0548._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_ac5961de._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f8c78107._.js +0 -3
- package/web/.next/server/chunks/ssr/_f8c78107._.js.map +0 -1
- package/web/.next/static/chunks/04dacffc25b1aeca.js +0 -1
- package/web/.next/static/chunks/12d22b6a19665808.js +0 -1
- package/web/.next/static/chunks/1d538b66f81665fc.js +0 -1
- package/web/.next/static/chunks/23fab49df408d779.js +0 -1
- package/web/.next/static/chunks/6264451e0550022f.js +0 -7
- package/web/.next/static/chunks/7260582ee8e58549.js +0 -1
- package/web/.next/static/chunks/769f6939e7a4698a.js +0 -1
- package/web/.next/static/chunks/7851e1a90ca04c06.js +0 -1
- package/web/.next/static/chunks/84c1ad7ae5fc042d.js +0 -1
- package/web/.next/static/chunks/8d1446e71ffa2ed7.js +0 -5
- package/web/.next/static/chunks/cd8143002baa074e.js +0 -1
- package/web/.next/static/chunks/f0c985090f51835b.css +0 -1
- package/web/.next/static/chunks/f4ff691fdf16fb25.js +0 -1
- /package/web/.next/static/{Ed9rVk6pcfyq98DN_pOrK → s9Tl6ka-fGtxB11GslSv7}/_buildManifest.js +0 -0
- /package/web/.next/static/{Ed9rVk6pcfyq98DN_pOrK → s9Tl6ka-fGtxB11GslSv7}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{Ed9rVk6pcfyq98DN_pOrK → s9Tl6ka-fGtxB11GslSv7}/_ssgManifest.js +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Security Command Group
|
|
3
|
-
*
|
|
4
|
-
* Top-level security command with subcommands for supply-chain security
|
|
5
|
-
* policy management and enforcement.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* shep security enforce Evaluate and enforce security posture
|
|
9
|
-
* shep security enforce --output json Machine-readable output for CI
|
|
10
|
-
*/
|
|
11
|
-
import { Command } from 'commander';
|
|
12
|
-
/**
|
|
13
|
-
* Create the security command group with all subcommands.
|
|
14
|
-
*/
|
|
15
|
-
export declare function createSecurityCommand(): Command;
|
|
16
|
-
//# sourceMappingURL=security.command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"security.command.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/security.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAoI/C"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Security Command Group
|
|
3
|
-
*
|
|
4
|
-
* Top-level security command with subcommands for supply-chain security
|
|
5
|
-
* policy management and enforcement.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* shep security enforce Evaluate and enforce security posture
|
|
9
|
-
* shep security enforce --output json Machine-readable output for CI
|
|
10
|
-
*/
|
|
11
|
-
import { Command } from 'commander';
|
|
12
|
-
import { container } from '../../../../packages/core/src/infrastructure/di/container.js';
|
|
13
|
-
import { EnforceSecurityUseCase } from '../../../../packages/core/src/application/use-cases/security/enforce-security.use-case.js';
|
|
14
|
-
import { SecurityMode } from '../../../../packages/core/src/domain/generated/output.js';
|
|
15
|
-
import { getSettings } from '../../../../packages/core/src/infrastructure/services/settings.service.js';
|
|
16
|
-
import { colors, fmt, messages } from '../ui/index.js';
|
|
17
|
-
import { OutputFormatter } from '../ui/output.js';
|
|
18
|
-
import { getCliI18n } from '../i18n.js';
|
|
19
|
-
/**
|
|
20
|
-
* Create the security command group with all subcommands.
|
|
21
|
-
*/
|
|
22
|
-
export function createSecurityCommand() {
|
|
23
|
-
const t = getCliI18n().t;
|
|
24
|
-
const security = new Command('security').description(t('cli:commands.security.description'));
|
|
25
|
-
security
|
|
26
|
-
.command('enforce')
|
|
27
|
-
.description(t('cli:commands.security.enforce.description'))
|
|
28
|
-
.option('-r, --repo <path>', t('cli:commands.security.enforce.repoOption'), process.cwd())
|
|
29
|
-
.option('-o, --output <format>', t('cli:commands.security.enforce.outputOption'), 'table')
|
|
30
|
-
.action(async (options) => {
|
|
31
|
-
try {
|
|
32
|
-
// Master kill switch — if the supplyChainSecurity feature flag is off,
|
|
33
|
-
// the command becomes a no-op and exits 0. Prevents accidental enforcement
|
|
34
|
-
// after the flag has been used as a rollback.
|
|
35
|
-
//
|
|
36
|
-
// Two ways to disable:
|
|
37
|
-
// 1. SHEP_SUPPLY_CHAIN_SECURITY=false environment variable (intended for CI)
|
|
38
|
-
// 2. featureFlags.supplyChainSecurity=false in the Shep settings DB (local user)
|
|
39
|
-
const envOverride = process.env.SHEP_SUPPLY_CHAIN_SECURITY;
|
|
40
|
-
const envDisabled = envOverride === 'false' || envOverride === '0';
|
|
41
|
-
const settingsEnabled = getSettings().featureFlags?.supplyChainSecurity ?? true;
|
|
42
|
-
if (envDisabled || !settingsEnabled) {
|
|
43
|
-
messages.info(t('cli:commands.security.enforce.flagDisabledNote'));
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const useCase = container.resolve(EnforceSecurityUseCase);
|
|
47
|
-
const result = await useCase.execute({ repositoryPath: options.repo });
|
|
48
|
-
const outputFormat = options.output;
|
|
49
|
-
if (outputFormat === 'json' || outputFormat === 'yaml') {
|
|
50
|
-
// Machine-readable output
|
|
51
|
-
console.log(OutputFormatter.format(result, outputFormat));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
// Human-readable table output
|
|
55
|
-
messages.newline();
|
|
56
|
-
if (result.mode === SecurityMode.Disabled) {
|
|
57
|
-
messages.info(t('cli:commands.security.enforce.disabledNote'));
|
|
58
|
-
messages.newline();
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
// Summary header
|
|
62
|
-
console.log(`${fmt.label(t('cli:commands.security.enforce.modeLabel'))}: ${result.mode}`);
|
|
63
|
-
console.log(`${fmt.label(t('cli:commands.security.enforce.sourceLabel'))}: ${result.policy.source}`);
|
|
64
|
-
console.log(`${fmt.label(t('cli:commands.security.enforce.totalFindingsLabel'))}: ${result.totalFindings}`);
|
|
65
|
-
messages.newline();
|
|
66
|
-
// Dependency findings
|
|
67
|
-
if (result.dependencyFindings.length > 0) {
|
|
68
|
-
console.log(fmt.heading(t('cli:commands.security.enforce.dependencyFindingsLabel')));
|
|
69
|
-
for (const finding of result.dependencyFindings) {
|
|
70
|
-
const severityColor = finding.severity === 'Critical' || finding.severity === 'High'
|
|
71
|
-
? colors.error
|
|
72
|
-
: colors.warning;
|
|
73
|
-
console.log(` ${severityColor(`[${finding.severity}]`)} ${finding.packageName}: ${finding.message}`);
|
|
74
|
-
if (finding.remediation) {
|
|
75
|
-
console.log(` ${colors.muted(finding.remediation)}`);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
messages.newline();
|
|
79
|
-
}
|
|
80
|
-
// Release integrity
|
|
81
|
-
const failedChecks = result.releaseIntegrity.checks.filter((c) => !c.passed);
|
|
82
|
-
if (failedChecks.length > 0) {
|
|
83
|
-
console.log(fmt.heading(t('cli:commands.security.enforce.releaseIntegrityLabel')));
|
|
84
|
-
for (const check of failedChecks) {
|
|
85
|
-
const severityColor = check.severity === 'Critical' || check.severity === 'High'
|
|
86
|
-
? colors.error
|
|
87
|
-
: colors.warning;
|
|
88
|
-
console.log(` ${severityColor(`[${check.severity}]`)} ${check.message}`);
|
|
89
|
-
}
|
|
90
|
-
messages.newline();
|
|
91
|
-
}
|
|
92
|
-
// Governance findings (audit-only)
|
|
93
|
-
if (result.governanceFindings.length > 0) {
|
|
94
|
-
console.log(fmt.heading(t('cli:commands.security.enforce.governanceFindingsLabel')));
|
|
95
|
-
for (const finding of result.governanceFindings) {
|
|
96
|
-
const severityColor = finding.severity === 'Critical' || finding.severity === 'High'
|
|
97
|
-
? colors.error
|
|
98
|
-
: colors.warning;
|
|
99
|
-
console.log(` ${severityColor(`[${finding.severity}]`)} ${finding.message}`);
|
|
100
|
-
if (finding.remediation) {
|
|
101
|
-
console.log(` ${colors.muted(finding.remediation)}`);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
messages.newline();
|
|
105
|
-
}
|
|
106
|
-
// Result
|
|
107
|
-
if (result.totalFindings === 0) {
|
|
108
|
-
messages.info(t('cli:commands.security.enforce.noFindings'));
|
|
109
|
-
}
|
|
110
|
-
if (result.passed) {
|
|
111
|
-
messages.success(t('cli:commands.security.enforce.passed'));
|
|
112
|
-
if (result.mode === SecurityMode.Advisory && result.totalFindings > 0) {
|
|
113
|
-
messages.info(t('cli:commands.security.enforce.advisoryNote'));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
messages.error(t('cli:commands.security.enforce.failed'));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
messages.newline();
|
|
121
|
-
}
|
|
122
|
-
if (!result.passed) {
|
|
123
|
-
process.exitCode = 1;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
catch (error) {
|
|
127
|
-
const err = error instanceof Error ? error : new Error(String(error));
|
|
128
|
-
messages.error(t('cli:commands.security.enforce.failedToEnforce'), err);
|
|
129
|
-
process.exitCode = 1;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
return security;
|
|
133
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { SecurityState } from '../../../../../packages/core/src/application/use-cases/security/get-security-state.use-case.js';
|
|
2
|
-
import type { EnforceSecurityResult } from '../../../../../packages/core/src/application/use-cases/security/enforce-security.use-case.js';
|
|
3
|
-
import type { SecurityMode } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
4
|
-
export interface GetSecurityStateResult {
|
|
5
|
-
state?: SecurityState;
|
|
6
|
-
error?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface EnforceSecurityActionResult {
|
|
9
|
-
result?: EnforceSecurityResult;
|
|
10
|
-
error?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface UpdateSecurityModeResult {
|
|
13
|
-
success: boolean;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Fetches the current security state for a repository.
|
|
18
|
-
*/
|
|
19
|
-
export declare function getSecurityStateAction(repositoryPath: string): Promise<GetSecurityStateResult>;
|
|
20
|
-
/**
|
|
21
|
-
* Runs the full security enforcement flow for a repository.
|
|
22
|
-
*/
|
|
23
|
-
export declare function enforceSecurityAction(repositoryPath: string): Promise<EnforceSecurityActionResult>;
|
|
24
|
-
/**
|
|
25
|
-
* Updates the security mode in settings.
|
|
26
|
-
*/
|
|
27
|
-
export declare function updateSecurityModeAction(mode: SecurityMode): Promise<UpdateSecurityModeResult>;
|
|
28
|
-
//# sourceMappingURL=security.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/security.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,yEAAyE,CAAC;AACjF,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,uEAAuE,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,sBAAsB,CAAC,CASjC;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,2BAA2B,CAAC,CAUtC;AAED;;GAEG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,wBAAwB,CAAC,CAyBnC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
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,6 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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,6 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useTransition, useRef, useEffect } from 'react';
|
|
4
|
-
import { Shield, Check, AlertTriangle, ShieldAlert, ShieldOff } from 'lucide-react';
|
|
5
|
-
import { toast } from 'sonner';
|
|
6
|
-
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { cn } from '../../../lib/utils.js';
|
|
8
|
-
import { Badge } from '../../ui/badge.js';
|
|
9
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
|
|
10
|
-
import { updateSecurityModeAction } from '../../../app/actions/security.js';
|
|
11
|
-
import { SecurityMode } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
12
|
-
const MODE_OPTIONS = [
|
|
13
|
-
{ value: SecurityMode.Disabled, icon: ShieldOff },
|
|
14
|
-
{ value: SecurityMode.Advisory, icon: Shield },
|
|
15
|
-
{ value: SecurityMode.Enforce, icon: ShieldAlert },
|
|
16
|
-
];
|
|
17
|
-
const SEVERITY_COLORS = {
|
|
18
|
-
Low: 'bg-blue-100 text-blue-700 dark:bg-blue-900/40 dark:text-blue-300',
|
|
19
|
-
Medium: 'bg-yellow-100 text-yellow-700 dark:bg-yellow-900/40 dark:text-yellow-300',
|
|
20
|
-
High: 'bg-orange-100 text-orange-700 dark:bg-orange-900/40 dark:text-orange-300',
|
|
21
|
-
Critical: 'bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300',
|
|
22
|
-
};
|
|
23
|
-
export function SupplyChainSecuritySettingsSection({ securityState, }) {
|
|
24
|
-
const { t } = useTranslation('web');
|
|
25
|
-
const [mode, setMode] = useState(securityState.mode);
|
|
26
|
-
const [isPending, startTransition] = useTransition();
|
|
27
|
-
const [showSaved, setShowSaved] = useState(false);
|
|
28
|
-
const prevPendingRef = useRef(false);
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
if (prevPendingRef.current && !isPending) {
|
|
31
|
-
setShowSaved(true);
|
|
32
|
-
const timer = setTimeout(() => setShowSaved(false), 2000);
|
|
33
|
-
return () => clearTimeout(timer);
|
|
34
|
-
}
|
|
35
|
-
prevPendingRef.current = isPending;
|
|
36
|
-
}, [isPending]);
|
|
37
|
-
function handleModeChange(value) {
|
|
38
|
-
const newMode = value;
|
|
39
|
-
setMode(newMode);
|
|
40
|
-
startTransition(async () => {
|
|
41
|
-
const result = await updateSecurityModeAction(newMode);
|
|
42
|
-
if (!result.success) {
|
|
43
|
-
toast.error(result.error ?? t('settings.failedToSave'));
|
|
44
|
-
setMode(securityState.mode);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
const lastEvalDisplay = securityState.lastEvaluationAt
|
|
49
|
-
? new Date(securityState.lastEvaluationAt).toLocaleString()
|
|
50
|
-
: t('settings.security.lastEvaluationNever');
|
|
51
|
-
const policySourceDisplay = securityState.policySource ?? t('settings.security.policySourceNone');
|
|
52
|
-
return (_jsxs("div", { className: "bg-background rounded-lg border", "data-testid": "security-settings-section", children: [_jsxs("div", { className: "bg-muted/30 border-b px-4 py-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Shield, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("h2", { className: "text-sm font-semibold", children: t('settings.security.sectionTitle') }), isPending ? (_jsx("span", { className: "text-muted-foreground text-xs", children: t('settings.saving') })) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), t('settings.saved')] })) : null] }), _jsx("p", { className: "text-muted-foreground mt-0.5 text-[11px]", children: t('settings.security.sectionDescription') })] }), _jsxs("div", { className: "px-4", children: [_jsxs("div", { className: "flex items-center justify-between gap-4 border-b py-2.5", children: [_jsxs("div", { className: "min-w-0", children: [_jsx("label", { htmlFor: "security-mode", className: "cursor-pointer text-sm font-normal whitespace-nowrap", children: t('settings.security.mode') }), _jsx("p", { className: "text-muted-foreground text-[11px] leading-tight", children: t('settings.security.modeDescription') })] }), _jsx("div", { className: "flex shrink-0 items-center gap-2", children: _jsxs(Select, { value: mode, onValueChange: handleModeChange, children: [_jsx(SelectTrigger, { id: "security-mode", "data-testid": "security-mode-select", className: "w-40 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: MODE_OPTIONS.map((opt) => {
|
|
53
|
-
const Icon = opt.icon;
|
|
54
|
-
return (_jsx(SelectItem, { value: opt.value, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [_jsx(Icon, { className: "h-3.5 w-3.5 shrink-0" }), t(`settings.security.mode${opt.value}`)] }) }, opt.value));
|
|
55
|
-
}) })] }) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4 border-b py-2.5", children: [_jsx("div", { className: "min-w-0", children: _jsx("span", { className: "text-sm font-normal whitespace-nowrap", children: t('settings.security.policySource') }) }), _jsx("span", { className: "text-muted-foreground max-w-50 truncate font-mono text-xs", children: policySourceDisplay })] }), _jsxs("div", { className: "flex items-center justify-between gap-4 border-b py-2.5", children: [_jsx("div", { className: "min-w-0", children: _jsx("span", { className: "text-sm font-normal whitespace-nowrap", children: t('settings.security.lastEvaluation') }) }), _jsx("span", { className: "text-muted-foreground text-xs", children: lastEvalDisplay })] }), _jsxs("div", { className: "py-2.5 last:border-b-0", children: [_jsx("div", { className: "mb-2", children: _jsx("span", { className: "text-sm font-normal", children: t('settings.security.recentFindings') }) }), securityState.recentEvents.length === 0 ? (_jsx("p", { className: "text-muted-foreground text-xs", children: t('settings.security.noFindings') })) : (_jsx("div", { className: "flex flex-col gap-1.5", children: securityState.recentEvents.slice(0, 5).map((event) => (_jsxs("div", { className: "flex items-start gap-2 rounded-md border px-2.5 py-1.5", children: [_jsx(AlertTriangle, { className: cn('mt-0.5 h-3 w-3 shrink-0', event.severity === 'Critical' || event.severity === 'High'
|
|
56
|
-
? 'text-red-500'
|
|
57
|
-
: event.severity === 'Medium'
|
|
58
|
-
? 'text-yellow-500'
|
|
59
|
-
: 'text-blue-500') }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(Badge, { variant: "secondary", className: cn('px-1 py-0 text-[9px]', SEVERITY_COLORS[event.severity]), children: t(`settings.security.severity.${event.severity}`) }), _jsx("span", { className: "text-muted-foreground text-[10px]", children: event.category })] }), _jsx("p", { className: "mt-0.5 truncate text-[11px]", children: event.message })] })] }, event.id))) }))] })] })] }));
|
|
60
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { SupplyChainSecuritySettingsSection } from './supply-chain-security-settings-section.js';
|
|
3
|
-
declare const meta: Meta<typeof SupplyChainSecuritySettingsSection>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof SupplyChainSecuritySettingsSection>;
|
|
6
|
-
/** Advisory mode with no findings — default posture for new repositories. */
|
|
7
|
-
export declare const AdvisoryNoFindings: Story;
|
|
8
|
-
/** Disabled mode — security enforcement is turned off. */
|
|
9
|
-
export declare const Disabled: Story;
|
|
10
|
-
/** Enforce mode with a critical finding. */
|
|
11
|
-
export declare const EnforceWithCriticalFinding: Story;
|
|
12
|
-
/** Advisory mode with multiple findings of varying severity. */
|
|
13
|
-
export declare const AdvisoryWithMultipleFindings: Story;
|
|
14
|
-
//# sourceMappingURL=supply-chain-security-settings-section.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supply-chain-security-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAG9F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kCAAkC,CAIzD,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAUjE,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,KAIhC,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,0BAA0B,EAAE,KAgCxC,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,4BAA4B,EAAE,KAkD1C,CAAC"}
|