@shepai/cli 1.78.0-pr247.d196fda → 1.78.1-pr241.ee88d2d
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/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.js +14 -1
- package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts +17 -0
- package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/get-feature-phase-timings.js +25 -0
- package/dist/src/presentation/web/app/actions/get-feature-plan.d.ts +18 -0
- package/dist/src/presentation/web/app/actions/get-feature-plan.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/get-feature-plan.js +31 -0
- package/dist/src/presentation/web/app/api/feature-logs/route.d.ts +16 -0
- package/dist/src/presentation/web/app/api/feature-logs/route.d.ts.map +1 -0
- package/dist/src/presentation/web/app/api/feature-logs/route.js +184 -0
- package/dist/src/presentation/web/app/build-feature-node-data.d.ts +7 -1
- package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-feature-node-data.js +7 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +7 -3
- package/dist/src/presentation/web/app/settings/page.js +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/drawer-view.d.ts +7 -19
- package/dist/src/presentation/web/components/common/control-center-drawer/drawer-view.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/drawer-view.js +6 -6
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +48 -85
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer/index.d.ts +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer/index.js +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts +8 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +90 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.d.ts +20 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.js +252 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts +31 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +123 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.stories.d.ts +20 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.stories.js +315 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/index.d.ts +3 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/index.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/index.js +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.d.ts +7 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.js +35 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.d.ts +18 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.js +89 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts +6 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +78 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts +28 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.js +157 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/plan-tab.d.ts +8 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/plan-tab.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/plan-tab.js +40 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/plan-tab.stories.d.ts +22 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/plan-tab.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/plan-tab.stories.js +188 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.d.ts +30 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.js +100 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +12 -0
- 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/index.d.ts +3 -4
- package/dist/src/presentation/web/components/common/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/index.js +3 -4
- package/dist/src/presentation/web/components/common/merge-review/index.d.ts +1 -2
- package/dist/src/presentation/web/components/common/merge-review/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/merge-review/index.js +0 -1
- package/dist/src/presentation/web/components/common/merge-review/merge-review.stories.d.ts +0 -8
- package/dist/src/presentation/web/components/common/merge-review/merge-review.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/merge-review/merge-review.stories.js +1 -33
- package/dist/src/presentation/web/components/common/prd-questionnaire/index.d.ts +1 -2
- package/dist/src/presentation/web/components/common/prd-questionnaire/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/prd-questionnaire/index.js +0 -1
- package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire.stories.d.ts +0 -10
- package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire.stories.js +1 -38
- package/dist/src/presentation/web/components/common/tech-decisions-review/index.d.ts +1 -2
- package/dist/src/presentation/web/components/common/tech-decisions-review/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/tech-decisions-review/index.js +0 -1
- package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-review.stories.d.ts +0 -8
- package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-review.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-review.stories.js +1 -29
- package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.js +5 -5
- 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 +254 -112
- package/dist/src/presentation/web/hooks/use-feature-logs.d.ts +7 -0
- package/dist/src/presentation/web/hooks/use-feature-logs.d.ts.map +1 -0
- package/dist/src/presentation/web/hooks/use-feature-logs.js +52 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/app-path-routes-manifest.json +1 -0
- 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/routes-manifest.json +6 -0
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +18 -18
- 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]/page/server-reference-manifest.json +68 -38
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
- 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]/page/server-reference-manifest.json +14 -14
- 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)/create/page/server-reference-manifest.json +18 -18
- 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]/page/server-reference-manifest.json +68 -38
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
- 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 +14 -14
- 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]/page/server-reference-manifest.json +14 -14
- 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 +1 -1
- 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/feature-logs/route/app-paths-manifest.json +3 -0
- package/web/.next/server/app/api/feature-logs/route/build-manifest.json +11 -0
- package/web/.next/server/app/api/feature-logs/route/server-reference-manifest.json +4 -0
- package/web/.next/server/app/api/feature-logs/route.js +6 -0
- package/web/.next/server/app/api/feature-logs/route.js.map +5 -0
- package/web/.next/server/app/api/feature-logs/route.js.nft.json +1 -0
- package/web/.next/server/app/api/feature-logs/route_client-reference-manifest.js +2 -0
- package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +1 -1
- 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/app-paths-manifest.json +1 -0
- package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_feature-logs_route_actions_177445e7.js +3 -0
- package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_feature-logs_route_actions_177445e7.js.map +1 -0
- package/web/.next/server/chunks/[root-of-the-server]__91d44424._.js +12 -0
- package/web/.next/server/chunks/[root-of-the-server]__91d44424._.js.map +1 -0
- 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/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_da7eef33.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_da7eef33.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_0a9251aa.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_0a9251aa.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4be9a9bb._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6eb2a2b0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6eb2a2b0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ae824a5b._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ae824a5b._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__bff2deea._.js → [root-of-the-server]__b3a4cef4._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__bff2deea._.js.map → [root-of-the-server]__b3a4cef4._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c3c963c6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c3c963c6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f0d8d054._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_b3692240._.js → _08bf9375._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_b3692240._.js.map → _08bf9375._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_d4b20e29._.js → _1bb131c4._.js} +2 -2
- package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_1e3cf73b._.js +3 -0
- package/web/.next/server/chunks/ssr/_1e3cf73b._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_34fbed18._.js +7 -0
- package/web/.next/server/chunks/ssr/_34fbed18._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_3e88ce9d._.js +3 -0
- package/web/.next/server/chunks/ssr/_3e88ce9d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_a66cde20._.js → _4b251edf._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_a66cde20._.js.map → _4b251edf._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_5d4e7151._.js +3 -0
- package/web/.next/server/chunks/ssr/_5d4e7151._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_63868199._.js +3 -0
- package/web/.next/server/chunks/ssr/_63868199._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_6d26a08f._.js +3 -0
- package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_887258d0._.js +3 -0
- package/web/.next/server/chunks/ssr/_887258d0._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_0bd0fafb._.js → _a68d7e1c._.js} +2 -2
- package/web/.next/server/chunks/ssr/_a68d7e1c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_758603c5._.js → _e7eb01d5._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_758603c5._.js.map → _e7eb01d5._.js.map} +1 -1
- 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/node_modules__pnpm_04f4e45f._.js +5 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_04f4e45f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{node_modules__pnpm_1fcecd3a._.js → node_modules__pnpm_c931457d._.js} +2 -2
- package/web/.next/server/chunks/ssr/node_modules__pnpm_c931457d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_d80c1060._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_d80c1060._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_7efa14ca._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_7efa14ca._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_021a05f2.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_021a05f2.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_(dashboard)_get-graph-data_ts_b018483e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_(dashboard)_get-graph-data_ts_b018483e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b59d79db._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_b59d79db._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_c4348b8a._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_c4348b8a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e4510d10._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_e4510d10._.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 +108 -64
- package/web/.next/static/chunks/0fb7745c30469b39.js +1 -0
- package/web/.next/static/chunks/1943a885d38cec14.js +11 -0
- package/web/.next/static/chunks/1ac497a4b2a7a143.js +1 -0
- package/web/.next/static/chunks/1ed35030fddfaf83.js +1 -0
- package/web/.next/static/chunks/201456645dc32523.js +1 -0
- package/web/.next/static/chunks/2a24ac257fc1c10b.js +1 -0
- package/web/.next/static/chunks/303a1217006489b9.js +1 -0
- package/web/.next/static/chunks/40b4ba55a08cc340.js +1 -0
- package/web/.next/static/chunks/46de72d1231c72e6.js +1 -0
- package/web/.next/static/chunks/54f920b6a940da52.js +1 -0
- package/web/.next/static/chunks/96bab6d3820504f3.css +2 -0
- package/web/.next/static/chunks/a1c2ecb710b44081.js +1 -0
- package/web/.next/static/chunks/{2cde9c085a88faa2.js → a2a8c7488178523b.js} +2 -2
- package/web/.next/static/chunks/b590b965ec136ece.js +1 -0
- package/web/.next/static/chunks/{726928a3ba2ec53b.js → bdf60cf8dc75a90f.js} +1 -1
- package/web/.next/static/chunks/e405f0502431ea60.js +3 -0
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.d.ts +0 -9
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.js +0 -60
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.stories.d.ts +0 -47
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/feature-drawer/feature-drawer.stories.js +0 -307
- package/dist/src/presentation/web/components/common/merge-review/merge-review-drawer.d.ts +0 -3
- package/dist/src/presentation/web/components/common/merge-review/merge-review-drawer.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/merge-review/merge-review-drawer.js +0 -8
- package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire-drawer.d.ts +0 -3
- package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire-drawer.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire-drawer.js +0 -8
- package/dist/src/presentation/web/components/common/review-drawer-shell/index.d.ts +0 -3
- package/dist/src/presentation/web/components/common/review-drawer-shell/index.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/index.js +0 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell-config.d.ts +0 -26
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell-config.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell-config.js +0 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.d.ts +0 -3
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.js +0 -29
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.stories.d.ts +0 -14
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/review-drawer-shell/review-drawer-shell.stories.js +0 -33
- package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-drawer.d.ts +0 -3
- package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-drawer.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-drawer.js +0 -8
- package/dist/src/presentation/web/components/common/tech-review-tabs/index.d.ts +0 -3
- package/dist/src/presentation/web/components/common/tech-review-tabs/index.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/tech-review-tabs/index.js +0 -1
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs-config.d.ts +0 -21
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs-config.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs-config.js +0 -1
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs.d.ts +0 -3
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs.js +0 -12
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs.stories.d.ts +0 -16
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/tech-review-tabs/tech-review-tabs.stories.js +0 -110
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d076a90b._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d076a90b._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_0bd0fafb._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_0e9d6bf7._.js +0 -3
- package/web/.next/server/chunks/ssr/_0e9d6bf7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_14fa79b2._.js +0 -3
- package/web/.next/server/chunks/ssr/_14fa79b2._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_61351ed3._.js +0 -3
- package/web/.next/server/chunks/ssr/_61351ed3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_8400c8bb._.js +0 -3
- package/web/.next/server/chunks/ssr/_8400c8bb._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9ac70f88._.js +0 -5
- package/web/.next/server/chunks/ssr/_9ac70f88._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9d11d025._.js +0 -7
- package/web/.next/server/chunks/ssr/_9d11d025._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_a29296f0._.js +0 -3
- package/web/.next/server/chunks/ssr/_a29296f0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_ed356507._.js +0 -3
- package/web/.next/server/chunks/ssr/_ed356507._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_1fcecd3a._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_30d7eeda._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_30d7eeda._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_565a14f8._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_565a14f8._.js.map +0 -1
- package/web/.next/static/chunks/100bf43ee3be227d.js +0 -1
- package/web/.next/static/chunks/37491dd00b50c048.js +0 -1
- package/web/.next/static/chunks/37701ed5abefa856.js +0 -1
- package/web/.next/static/chunks/42bd17823c7f41a1.css +0 -2
- package/web/.next/static/chunks/4570b60e2b206821.js +0 -1
- package/web/.next/static/chunks/4d5a5c3d8373423e.js +0 -1
- package/web/.next/static/chunks/51454a23ce051ec9.js +0 -1
- package/web/.next/static/chunks/52b56677c842e45f.js +0 -3
- package/web/.next/static/chunks/5f627cfc35ca21bc.js +0 -1
- package/web/.next/static/chunks/837e3099cbc581a3.js +0 -1
- package/web/.next/static/chunks/876edf7bbd901942.js +0 -1
- package/web/.next/static/chunks/883ee29df0f75f24.js +0 -1
- package/web/.next/static/chunks/8f122c3ac2102300.js +0 -11
- package/web/.next/static/chunks/bd539e609555e2b7.js +0 -1
- package/web/.next/static/chunks/c8b2868ae430a586.js +0 -1
- package/web/.next/static/chunks/edbd674102e897b4.js +0 -1
- /package/web/.next/static/{_p0UmHUYkX-o1pGYlVer1 → nOcqEXIvW4HbIOdPWtEmW}/_buildManifest.js +0 -0
- /package/web/.next/static/{_p0UmHUYkX-o1pGYlVer1 → nOcqEXIvW4HbIOdPWtEmW}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{_p0UmHUYkX-o1pGYlVer1 → nOcqEXIvW4HbIOdPWtEmW}/_ssgManifest.js +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useTransition, useRef, useEffect, useCallback } from 'react';
|
|
4
|
-
import { Eye, EyeOff, Check } from 'lucide-react';
|
|
4
|
+
import { Eye, EyeOff, Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Minus, Plus, ExternalLink, Settings2, } from 'lucide-react';
|
|
5
5
|
import { toast } from 'sonner';
|
|
6
|
+
import { cn } from '../../../lib/utils.js';
|
|
6
7
|
import { Label } from '../../ui/label.js';
|
|
7
8
|
import { Input } from '../../ui/input.js';
|
|
8
9
|
import { Button } from '../../ui/button.js';
|
|
9
10
|
import { Switch } from '../../ui/switch.js';
|
|
11
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
|
|
10
12
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
|
|
11
13
|
import { updateSettingsAction } from '../../../app/actions/update-settings.js';
|
|
12
14
|
import { AgentAuthMethod, EditorType } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
@@ -23,18 +25,45 @@ const EDITOR_OPTIONS = [
|
|
|
23
25
|
{ value: EditorType.Zed, label: 'Zed' },
|
|
24
26
|
{ value: EditorType.Antigravity, label: 'Antigravity' },
|
|
25
27
|
];
|
|
28
|
+
const SECTIONS = [
|
|
29
|
+
{ id: 'agent', label: 'Agent', icon: Bot },
|
|
30
|
+
{ id: 'environment', label: 'Environment', icon: Terminal },
|
|
31
|
+
{ id: 'workflow', label: 'Workflow', icon: GitBranch },
|
|
32
|
+
{ id: 'ci', label: 'CI', icon: Activity },
|
|
33
|
+
{ id: 'notifications', label: 'Notifications', icon: Bell },
|
|
34
|
+
{ id: 'feature-flags', label: 'Flags', icon: Flag },
|
|
35
|
+
{ id: 'database', label: 'Database', icon: Database },
|
|
36
|
+
];
|
|
26
37
|
function useSaveIndicator() {
|
|
27
38
|
const [isPending, startTransition] = useTransition();
|
|
39
|
+
const [showSaving, setShowSaving] = useState(false);
|
|
28
40
|
const [showSaved, setShowSaved] = useState(false);
|
|
29
|
-
const
|
|
41
|
+
const minTimerRef = useRef(null);
|
|
42
|
+
const pendingDoneRef = useRef(false);
|
|
43
|
+
// Show "Saving..." with a minimum display time of 600ms
|
|
30
44
|
useEffect(() => {
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
if (isPending && !showSaving) {
|
|
46
|
+
setShowSaving(true);
|
|
47
|
+
pendingDoneRef.current = false;
|
|
48
|
+
minTimerRef.current = setTimeout(() => {
|
|
49
|
+
minTimerRef.current = null;
|
|
50
|
+
if (pendingDoneRef.current) {
|
|
51
|
+
setShowSaving(false);
|
|
52
|
+
setShowSaved(true);
|
|
53
|
+
setTimeout(() => setShowSaved(false), 2000);
|
|
54
|
+
}
|
|
55
|
+
}, 350);
|
|
56
|
+
}
|
|
57
|
+
if (!isPending && showSaving) {
|
|
58
|
+
pendingDoneRef.current = true;
|
|
59
|
+
// If min timer already elapsed, transition now
|
|
60
|
+
if (!minTimerRef.current) {
|
|
61
|
+
setShowSaving(false);
|
|
62
|
+
setShowSaved(true);
|
|
63
|
+
setTimeout(() => setShowSaved(false), 2000);
|
|
64
|
+
}
|
|
35
65
|
}
|
|
36
|
-
|
|
37
|
-
}, [isPending]);
|
|
66
|
+
}, [isPending, showSaving]);
|
|
38
67
|
const save = useCallback((payload) => {
|
|
39
68
|
startTransition(async () => {
|
|
40
69
|
const result = await updateSettingsAction(payload);
|
|
@@ -43,23 +72,53 @@ function useSaveIndicator() {
|
|
|
43
72
|
}
|
|
44
73
|
});
|
|
45
74
|
}, [startTransition]);
|
|
46
|
-
return {
|
|
75
|
+
return { showSaving, showSaved, save };
|
|
76
|
+
}
|
|
77
|
+
/* ── Reusable row components ── */
|
|
78
|
+
function SettingsRow({ label, description, htmlFor, children, }) {
|
|
79
|
+
return (_jsxs("div", { className: "flex items-center justify-between gap-4 border-b py-2.5 last:border-b-0", children: [_jsxs("div", { className: "min-w-0", children: [_jsx(Label, { htmlFor: htmlFor, className: "cursor-pointer text-sm font-normal whitespace-nowrap", children: label }), description ? (_jsx("p", { className: "text-muted-foreground text-[11px] leading-tight", children: description })) : null] }), _jsx("div", { className: "flex shrink-0 items-center gap-2", children: children })] }));
|
|
47
80
|
}
|
|
48
|
-
function
|
|
49
|
-
return (
|
|
81
|
+
function SwitchRow({ label, description, id, testId, checked, onChange, }) {
|
|
82
|
+
return (_jsx(SettingsRow, { label: label, description: description, htmlFor: id, children: _jsx(Switch, { id: id, "data-testid": testId, checked: checked, onCheckedChange: onChange, className: "cursor-pointer" }) }));
|
|
50
83
|
}
|
|
51
|
-
|
|
52
|
-
|
|
84
|
+
/* ── Section card wrapper ── */
|
|
85
|
+
function SettingsSection({ icon: Icon, title, description, badge, testId, children, }) {
|
|
86
|
+
return (_jsxs("div", { className: "bg-background rounded-lg border", "data-testid": testId, children: [_jsxs("div", { className: "bg-muted/30 border-b px-4 py-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Icon, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("h2", { className: "text-sm font-semibold", children: title }), badge ? (_jsx("span", { className: "bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-[9px] font-medium tracking-wider uppercase", children: badge })) : null] }), _jsx("p", { className: "text-muted-foreground mt-0.5 text-[11px]", children: description })] }), _jsx("div", { className: "px-4", children: children })] }));
|
|
53
87
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
88
|
+
function NumberStepper({ id, testId, value, onChange, onBlur, placeholder, min = 1, max, step = 1, suffix, }) {
|
|
89
|
+
const numValue = value === '' ? undefined : parseInt(value, 10);
|
|
90
|
+
const decrement = () => {
|
|
91
|
+
const current = numValue ?? parseInt(placeholder, 10);
|
|
92
|
+
const next = Math.max(min, current - step);
|
|
93
|
+
onChange(String(next));
|
|
94
|
+
};
|
|
95
|
+
const increment = () => {
|
|
96
|
+
const current = numValue ?? parseInt(placeholder, 10);
|
|
97
|
+
const next = max != null ? Math.min(max, current + step) : current + step;
|
|
98
|
+
onChange(String(next));
|
|
99
|
+
};
|
|
100
|
+
return (_jsxs("div", { className: "flex items-center gap-1.5", children: [_jsxs("div", { className: "flex items-center overflow-hidden rounded-md border", children: [_jsx("button", { type: "button", onClick: () => {
|
|
101
|
+
decrement();
|
|
102
|
+
}, onMouseUp: onBlur, className: "text-muted-foreground hover:bg-muted hover:text-foreground flex h-8 w-7 cursor-pointer items-center justify-center border-r transition-colors", "aria-label": "Decrease", children: _jsx(Minus, { className: "h-3 w-3" }) }), _jsx("input", { id: id, "data-testid": testId, type: "text", inputMode: "numeric", pattern: "[0-9]*", value: value, placeholder: placeholder, onChange: (e) => {
|
|
103
|
+
const v = e.target.value.replace(/[^0-9]/g, '');
|
|
104
|
+
onChange(v);
|
|
105
|
+
}, onBlur: onBlur, className: "h-8 w-14 bg-transparent text-center text-xs outline-none" }), _jsx("button", { type: "button", onClick: () => {
|
|
106
|
+
increment();
|
|
107
|
+
}, onMouseUp: onBlur, className: "text-muted-foreground hover:bg-muted hover:text-foreground flex h-8 w-7 cursor-pointer items-center justify-center border-l transition-colors", "aria-label": "Increase", children: _jsx(Plus, { className: "h-3 w-3" }) })] }), suffix ? _jsx("span", { className: "text-muted-foreground text-[11px]", children: suffix }) : null] }));
|
|
56
108
|
}
|
|
109
|
+
function SubsectionLabel({ children }) {
|
|
110
|
+
return (_jsx("div", { className: "border-b pt-3 pb-1", children: _jsx("span", { className: "text-muted-foreground text-[10px] font-semibold tracking-wider uppercase", children: children }) }));
|
|
111
|
+
}
|
|
112
|
+
function SectionHint({ children, links, }) {
|
|
113
|
+
return (_jsxs("div", { className: "hidden pt-2 lg:block", children: [_jsx("p", { className: "text-muted-foreground/70 text-[11px] leading-relaxed", children: children }), links != null && links.length > 0 ? (_jsx("div", { className: "mt-2 flex flex-col gap-1", children: links.map((link) => (_jsxs("a", { href: link.href, target: "_blank", rel: "noopener noreferrer", className: "text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-[10px] transition-colors", children: [_jsx(ExternalLink, { className: "h-2.5 w-2.5" }), link.label] }, link.href))) })) : null] }));
|
|
114
|
+
}
|
|
115
|
+
/* ── Main component ── */
|
|
57
116
|
export function SettingsPageClient({ settings, shepHome, dbFileSize }) {
|
|
58
|
-
const {
|
|
117
|
+
const { showSaving, showSaved, save } = useSaveIndicator();
|
|
59
118
|
const featureFlags = settings.featureFlags ?? { skills: false, envDeploy: false, debug: false };
|
|
60
119
|
// Agent state
|
|
61
120
|
const [agentType, setAgentType] = useState(settings.agent.type);
|
|
62
|
-
const
|
|
121
|
+
const authMethod = settings.agent.authMethod;
|
|
63
122
|
const [token, setToken] = useState(settings.agent.token ?? '');
|
|
64
123
|
const [showToken, setShowToken] = useState(false);
|
|
65
124
|
// Environment state
|
|
@@ -133,99 +192,182 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize }) {
|
|
|
133
192
|
},
|
|
134
193
|
};
|
|
135
194
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, className: "w-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
195
|
+
const [activeSection, setActiveSection] = useState('agent');
|
|
196
|
+
// Track which section is in view via IntersectionObserver
|
|
197
|
+
useEffect(() => {
|
|
198
|
+
const els = SECTIONS.map((s) => document.getElementById(`section-${s.id}`)).filter(Boolean);
|
|
199
|
+
if (els.length === 0)
|
|
200
|
+
return;
|
|
201
|
+
const observer = new IntersectionObserver((entries) => {
|
|
202
|
+
for (const entry of entries) {
|
|
203
|
+
if (entry.isIntersecting) {
|
|
204
|
+
setActiveSection(entry.target.id.replace('section-', ''));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}, { rootMargin: '-65px 0px -60% 0px', threshold: 0 });
|
|
208
|
+
for (const el of els)
|
|
209
|
+
observer.observe(el);
|
|
210
|
+
return () => observer.disconnect();
|
|
211
|
+
}, []);
|
|
212
|
+
const scrollToSection = useCallback((id) => {
|
|
213
|
+
const el = document.getElementById(`section-${id}`);
|
|
214
|
+
if (!el)
|
|
215
|
+
return;
|
|
216
|
+
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
217
|
+
// Flash highlight
|
|
218
|
+
el.style.animation = 'none';
|
|
219
|
+
// Force reflow
|
|
220
|
+
void el.offsetHeight;
|
|
221
|
+
el.style.animation = 'section-flash 1s ease-out';
|
|
222
|
+
}, []);
|
|
223
|
+
return (_jsxs("div", { "data-testid": "settings-page-client", className: "max-w-5xl", children: [_jsx("div", { className: "bg-background/95 supports-backdrop-filter:bg-background/80 sticky top-0 z-10 grid grid-cols-1 gap-x-5 pt-6 pb-4 backdrop-blur lg:grid-cols-[1fr_280px]", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Settings2, { className: "text-muted-foreground h-4 w-4" }), _jsx("h1", { className: "text-sm font-bold tracking-tight", children: "Settings" }), _jsxs("span", { className: "relative h-4 w-16", children: [_jsx("span", { className: cn('text-muted-foreground absolute inset-0 flex items-center text-xs transition-opacity duration-300', showSaving ? 'opacity-100' : 'opacity-0'), children: "Saving..." }), _jsxs("span", { className: cn('absolute inset-0 flex items-center gap-1 text-xs text-green-600 transition-opacity duration-300', showSaved && !showSaving ? 'opacity-100' : 'opacity-0'), children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })] }), _jsx("nav", { className: "ml-auto flex items-center gap-0.5", children: SECTIONS.map((s) => {
|
|
224
|
+
const SectionIcon = s.icon;
|
|
225
|
+
const isActive = activeSection === s.id;
|
|
226
|
+
return (_jsxs("button", { type: "button", onClick: () => scrollToSection(s.id), className: cn('flex cursor-pointer items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-all', isActive
|
|
227
|
+
? 'bg-accent text-foreground font-medium'
|
|
228
|
+
: 'text-muted-foreground/60 hover:text-foreground hover:bg-accent/50'), children: [_jsx(SectionIcon, { className: "h-3 w-3" }), _jsx("span", { className: "hidden sm:inline", children: s.label })] }, s.id));
|
|
229
|
+
}) })] }) }), _jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs("div", { id: "section-agent", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Bot, title: "Agent", description: "AI coding agent and authentication", testId: "agent-settings-section", children: [_jsx(SettingsRow, { label: "Agent & Model", description: "Provider and model for all operations", htmlFor: "agent-model-picker", children: _jsx(AgentModelPicker, { initialAgentType: agentType, initialModel: settings.models.default, mode: "settings", onAgentModelChange: (newAgent) => setAgentType(newAgent), className: "w-55" }) }), _jsx(SettingsRow, { label: "Authentication", description: "How the agent authenticates", htmlFor: "auth-method", children: _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("div", { children: _jsxs(Select, { value: authMethod, disabled: true, children: [_jsx(SelectTrigger, { id: "auth-method", "data-testid": "auth-method-select", className: "w-55 cursor-not-allowed text-xs opacity-60", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: AUTH_METHOD_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] }) }) }), _jsx(TooltipContent, { children: "Coming soon" })] }) }) }), authMethod === AgentAuthMethod.Token && (_jsx(SettingsRow, { label: "API Token", htmlFor: "agent-token", children: _jsxs("div", { className: "relative w-45", children: [_jsx(Input, { id: "agent-token", "data-testid": "agent-token-input", type: showToken ? 'text' : 'password', value: token, onChange: (e) => setToken(e.target.value), onBlur: () => {
|
|
230
|
+
if (token !== (settings.agent.token ?? '')) {
|
|
231
|
+
save(buildAgentPayload({ token }));
|
|
232
|
+
}
|
|
233
|
+
}, placeholder: "Enter token", className: "pr-8" }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", className: "absolute top-0 right-0 h-full px-2 hover:bg-transparent", onClick: () => setShowToken(!showToken), "data-testid": "toggle-token-visibility", "aria-label": showToken ? 'Hide token' : 'Show token', children: showToken ? _jsx(EyeOff, { className: "h-3 w-3" }) : _jsx(Eye, { className: "h-3 w-3" }) })] }) }))] }), _jsx(SectionHint, { links: [
|
|
234
|
+
{
|
|
235
|
+
label: 'Agent system',
|
|
236
|
+
href: 'https://github.com/shep-ai/cli/blob/main/docs/architecture/agent-system.md',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: 'Adding agents',
|
|
240
|
+
href: 'https://github.com/shep-ai/cli/blob/main/docs/development/adding-agents.md',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
label: 'Configuration guide',
|
|
244
|
+
href: 'https://github.com/shep-ai/cli/blob/main/docs/guides/configuration.md',
|
|
245
|
+
},
|
|
246
|
+
], children: "Choose which AI coding agent powers your features. Each agent supports different models and capabilities. Authentication is resolved automatically via your active session." })] }), _jsxs("div", { id: "section-environment", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(SettingsSection, { icon: Terminal, title: "Environment", description: "Editor and shell preferences", testId: "environment-settings-section", children: _jsx(SettingsRow, { label: "Default Editor", description: "Editor launched for file operations", htmlFor: "default-editor", children: _jsxs(Select, { value: editor, onValueChange: (v) => {
|
|
247
|
+
setEditor(v);
|
|
248
|
+
save({
|
|
249
|
+
environment: { defaultEditor: v, shellPreference: shell },
|
|
250
|
+
});
|
|
251
|
+
}, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", className: "w-55 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: EDITOR_OPTIONS.map((opt) => {
|
|
252
|
+
const Icon = getEditorTypeIcon(opt.value);
|
|
253
|
+
return (_jsx(SelectItem, { value: opt.value, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), opt.label] }) }, opt.value));
|
|
254
|
+
}) })] }) }) }), _jsx(SectionHint, { links: [
|
|
255
|
+
{
|
|
256
|
+
label: 'Configuration guide',
|
|
257
|
+
href: 'https://github.com/shep-ai/cli/blob/main/docs/guides/configuration.md',
|
|
258
|
+
},
|
|
259
|
+
], children: "Your preferred editor is used when opening files for review or editing during the development workflow." })] }), _jsxs("div", { id: "section-workflow", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: GitBranch, title: "Workflow", description: "Automation behavior after implementation", testId: "workflow-settings-section", children: [_jsx(SwitchRow, { label: "Auto-approve PRD", description: "Skip manual review of requirements", id: "allow-prd", testId: "switch-allow-prd", checked: allowPrd, onChange: (v) => {
|
|
260
|
+
setAllowPrd(v);
|
|
261
|
+
save(buildWorkflowPayload({ allowPrd: v }));
|
|
262
|
+
} }), _jsx(SwitchRow, { label: "Auto-approve Plan", description: "Skip manual review of implementation plan", id: "allow-plan", testId: "switch-allow-plan", checked: allowPlan, onChange: (v) => {
|
|
263
|
+
setAllowPlan(v);
|
|
264
|
+
save(buildWorkflowPayload({ allowPlan: v }));
|
|
265
|
+
} }), _jsx(SwitchRow, { label: "Auto-approve Merge", description: "Merge without manual review", id: "allow-merge", testId: "switch-allow-merge", checked: allowMerge, onChange: (v) => {
|
|
266
|
+
setAllowMerge(v);
|
|
267
|
+
save(buildWorkflowPayload({ allowMerge: v }));
|
|
268
|
+
} }), _jsx(SwitchRow, { label: "Push on complete", description: "Push to remote when implementation finishes", id: "push-on-complete", testId: "switch-push-on-complete", checked: pushOnComplete, onChange: (v) => {
|
|
269
|
+
setPushOnComplete(v);
|
|
270
|
+
save(buildWorkflowPayload({ pushOnComplete: v }));
|
|
271
|
+
} }), _jsx(SwitchRow, { label: "Open PR on complete", description: "Create a pull request when done", id: "open-pr", testId: "switch-open-pr", checked: openPr, onChange: (v) => {
|
|
272
|
+
setOpenPr(v);
|
|
273
|
+
save(buildWorkflowPayload({ openPr: v }));
|
|
274
|
+
} })] }), _jsx(SectionHint, { links: [
|
|
275
|
+
{
|
|
276
|
+
label: 'Approval gates',
|
|
277
|
+
href: 'https://github.com/shep-ai/cli/blob/main/specs/016-hitl-approval-gates/spec.yaml',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
label: 'Push & PR flags',
|
|
281
|
+
href: 'https://github.com/shep-ai/cli/blob/main/specs/037-feature-pr-push-flags/spec.yaml',
|
|
282
|
+
},
|
|
283
|
+
], children: "Control how autonomous each feature run is. Auto-approve skips the human review pause at each phase. Push and PR options control what happens after successful implementation." })] }), _jsxs("div", { id: "section-ci", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Activity, title: "Continuous Integration", description: "Limits and timeouts for CI monitoring", testId: "ci-settings-section", children: [_jsx(SettingsRow, { label: "Max fix attempts", description: "Agent retries on failing CI", htmlFor: "ci-max-fix", children: _jsx(NumberStepper, { id: "ci-max-fix", testId: "ci-max-fix-input", placeholder: "3", value: ciMaxFix, onChange: setCiMaxFix, onBlur: () => {
|
|
284
|
+
if (ciMaxFix !== originalCiMaxFix)
|
|
285
|
+
save(buildWorkflowPayload({ ciMaxFix }));
|
|
286
|
+
}, min: 1, max: 10 }) }), _jsx(SettingsRow, { label: "Watch timeout", description: "Max wait for CI completion", htmlFor: "ci-timeout", children: _jsx(NumberStepper, { id: "ci-timeout", testId: "ci-timeout-input", placeholder: "300", value: ciTimeout, onChange: setCiTimeout, onBlur: () => {
|
|
287
|
+
if (ciTimeout !== originalCiTimeout)
|
|
288
|
+
save(buildWorkflowPayload({ ciTimeout }));
|
|
289
|
+
}, min: 30, step: 30, suffix: "sec" }) }), _jsx(SettingsRow, { label: "Max log size", description: "Truncate CI logs beyond this limit", htmlFor: "ci-log-max", children: _jsx(NumberStepper, { id: "ci-log-max", testId: "ci-log-max-input", placeholder: "50000", value: ciLogMax, onChange: setCiLogMax, onBlur: () => {
|
|
290
|
+
if (ciLogMax !== originalCiLogMax)
|
|
291
|
+
save(buildWorkflowPayload({ ciLogMax }));
|
|
292
|
+
}, min: 1000, step: 5000, suffix: "chars" }) })] }), _jsx(SectionHint, { links: [
|
|
293
|
+
{
|
|
294
|
+
label: 'CI/CD pipeline',
|
|
295
|
+
href: 'https://github.com/shep-ai/cli/blob/main/docs/development/cicd.md',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
label: 'CI security gates',
|
|
299
|
+
href: 'https://github.com/shep-ai/cli/blob/main/specs/003-cicd-security-gates/spec.md',
|
|
300
|
+
},
|
|
301
|
+
], children: "When a feature completes, the agent can watch CI and auto-fix failures. These limits prevent runaway retries and control how much log output is sent to the agent for analysis." })] }), _jsxs("div", { id: "section-notifications", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Bell, title: "Notifications", description: "How and when you get notified", testId: "notification-settings-section", children: [_jsx(SubsectionLabel, { children: "Channels" }), _jsx(SwitchRow, { label: "In-app", description: "Notifications inside the Shep UI", id: "notif-in-app", testId: "switch-in-app", checked: inApp, onChange: (v) => {
|
|
302
|
+
setInApp(v);
|
|
303
|
+
save(buildNotificationPayload({ inApp: v }));
|
|
304
|
+
} }), _jsx(SwitchRow, { label: "Browser", description: "Push notifications via the browser", id: "notif-browser", testId: "switch-browser", checked: browser, onChange: (v) => {
|
|
305
|
+
setBrowser(v);
|
|
306
|
+
save(buildNotificationPayload({ browser: v }));
|
|
307
|
+
} }), _jsx(SwitchRow, { label: "Desktop", description: "Native OS notifications", id: "notif-desktop", testId: "switch-desktop", checked: desktop, onChange: (v) => {
|
|
308
|
+
setDesktop(v);
|
|
309
|
+
save(buildNotificationPayload({ desktop: v }));
|
|
310
|
+
} }), _jsx(SubsectionLabel, { children: "Agent Events" }), _jsx(SwitchRow, { label: "Agent started", id: "notif-event-agentStarted", testId: "switch-event-agentStarted", checked: events.agentStarted, onChange: (v) => {
|
|
311
|
+
const newEvents = { ...events, agentStarted: v };
|
|
312
|
+
setEvents(newEvents);
|
|
313
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
314
|
+
} }), _jsx(SwitchRow, { label: "Phase completed", id: "notif-event-phaseCompleted", testId: "switch-event-phaseCompleted", checked: events.phaseCompleted, onChange: (v) => {
|
|
315
|
+
const newEvents = { ...events, phaseCompleted: v };
|
|
316
|
+
setEvents(newEvents);
|
|
317
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
318
|
+
} }), _jsx(SwitchRow, { label: "Waiting approval", id: "notif-event-waitingApproval", testId: "switch-event-waitingApproval", checked: events.waitingApproval, onChange: (v) => {
|
|
319
|
+
const newEvents = { ...events, waitingApproval: v };
|
|
320
|
+
setEvents(newEvents);
|
|
321
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
322
|
+
} }), _jsx(SwitchRow, { label: "Agent completed", id: "notif-event-agentCompleted", testId: "switch-event-agentCompleted", checked: events.agentCompleted, onChange: (v) => {
|
|
323
|
+
const newEvents = { ...events, agentCompleted: v };
|
|
324
|
+
setEvents(newEvents);
|
|
325
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
326
|
+
} }), _jsx(SwitchRow, { label: "Agent failed", id: "notif-event-agentFailed", testId: "switch-event-agentFailed", checked: events.agentFailed, onChange: (v) => {
|
|
327
|
+
const newEvents = { ...events, agentFailed: v };
|
|
328
|
+
setEvents(newEvents);
|
|
329
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
330
|
+
} }), _jsx(SubsectionLabel, { children: "Pull Request Events" }), _jsx(SwitchRow, { label: "PR merged", id: "notif-event-prMerged", testId: "switch-event-prMerged", checked: events.prMerged, onChange: (v) => {
|
|
331
|
+
const newEvents = { ...events, prMerged: v };
|
|
332
|
+
setEvents(newEvents);
|
|
333
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
334
|
+
} }), _jsx(SwitchRow, { label: "PR closed", id: "notif-event-prClosed", testId: "switch-event-prClosed", checked: events.prClosed, onChange: (v) => {
|
|
335
|
+
const newEvents = { ...events, prClosed: v };
|
|
336
|
+
setEvents(newEvents);
|
|
337
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
338
|
+
} }), _jsx(SwitchRow, { label: "PR checks passed", id: "notif-event-prChecksPassed", testId: "switch-event-prChecksPassed", checked: events.prChecksPassed, onChange: (v) => {
|
|
339
|
+
const newEvents = { ...events, prChecksPassed: v };
|
|
340
|
+
setEvents(newEvents);
|
|
341
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
342
|
+
} }), _jsx(SwitchRow, { label: "PR checks failed", id: "notif-event-prChecksFailed", testId: "switch-event-prChecksFailed", checked: events.prChecksFailed, onChange: (v) => {
|
|
343
|
+
const newEvents = { ...events, prChecksFailed: v };
|
|
344
|
+
setEvents(newEvents);
|
|
345
|
+
save(buildNotificationPayload({ events: newEvents }));
|
|
346
|
+
} })] }), _jsx(SectionHint, { links: [
|
|
347
|
+
{
|
|
348
|
+
label: 'Notification system',
|
|
349
|
+
href: 'https://github.com/shep-ai/cli/blob/main/specs/021-agent-notifications/spec.yaml',
|
|
350
|
+
},
|
|
351
|
+
], children: "Three notification channels keep you in the loop: in-app toasts, browser push notifications, and native desktop alerts. Fine-tune which agent lifecycle events trigger a notification." })] }), _jsxs("div", { id: "section-feature-flags", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Flag, title: "Feature Flags", description: "Enable or disable experimental features", badge: "Experimental", testId: "feature-flags-settings-section", children: [_jsx(SwitchRow, { label: "Skills", description: "Enable the skills system for agent capabilities", id: "flag-skills", testId: "switch-flag-skills", checked: flags.skills, onChange: (v) => {
|
|
352
|
+
const newFlags = { ...flags, skills: v };
|
|
353
|
+
setFlags(newFlags);
|
|
354
|
+
save({ featureFlags: newFlags });
|
|
355
|
+
} }), _jsx(SwitchRow, { label: "Deployments", description: "Enable environment deployment workflows", id: "flag-envDeploy", testId: "switch-flag-envDeploy", checked: flags.envDeploy, onChange: (v) => {
|
|
356
|
+
const newFlags = { ...flags, envDeploy: v };
|
|
357
|
+
setFlags(newFlags);
|
|
358
|
+
save({ featureFlags: newFlags });
|
|
359
|
+
} }), _jsx(SwitchRow, { label: "Debug", description: "Show debug panels and verbose logging", id: "flag-debug", testId: "switch-flag-debug", checked: flags.debug, onChange: (v) => {
|
|
360
|
+
const newFlags = { ...flags, debug: v };
|
|
361
|
+
setFlags(newFlags);
|
|
362
|
+
save({ featureFlags: newFlags });
|
|
363
|
+
} })] }), _jsx(SectionHint, { children: "Experimental features that are still under development. Enable at your own risk \u2014 they may change or be removed in future versions. Debug mode adds verbose logging useful for troubleshooting." })] }), _jsxs("div", { id: "section-database", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Database, title: "Database", description: "Local storage information", testId: "database-settings-section", children: [_jsx(SettingsRow, { label: "Location", description: "Path to the local SQLite database", children: _jsx("span", { className: "text-muted-foreground max-w-50 truncate font-mono text-xs", "data-testid": "shep-home-path", children: shepHome }) }), _jsx(SettingsRow, { label: "Size", children: _jsx("span", { className: "text-muted-foreground text-xs", "data-testid": "db-file-size", children: dbFileSize }) })] }), _jsx(SectionHint, { links: [
|
|
364
|
+
{
|
|
365
|
+
label: 'Settings service',
|
|
366
|
+
href: 'https://github.com/shep-ai/cli/blob/main/docs/architecture/settings-service.md',
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
label: 'Settings spec',
|
|
370
|
+
href: 'https://github.com/shep-ai/cli/blob/main/specs/005-global-settings-service/spec.md',
|
|
371
|
+
},
|
|
372
|
+
], children: "All settings are stored in a local SQLite database at ~/.shep/data. The database uses a singleton record pattern with automatic migrations on startup." })] })] })] }));
|
|
231
373
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-feature-logs.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/use-feature-logs.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,oBAAoB,CA4DzF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useState, useEffect, useRef, useCallback } from 'react';
|
|
3
|
+
export function useFeatureLogs(featureId) {
|
|
4
|
+
const [content, setContent] = useState('');
|
|
5
|
+
const [isConnected, setIsConnected] = useState(false);
|
|
6
|
+
const [error, setError] = useState(null);
|
|
7
|
+
const eventSourceRef = useRef(null);
|
|
8
|
+
const cleanup = useCallback(() => {
|
|
9
|
+
if (eventSourceRef.current) {
|
|
10
|
+
eventSourceRef.current.close();
|
|
11
|
+
eventSourceRef.current = null;
|
|
12
|
+
}
|
|
13
|
+
setIsConnected(false);
|
|
14
|
+
}, []);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (!featureId) {
|
|
17
|
+
setContent('');
|
|
18
|
+
setIsConnected(false);
|
|
19
|
+
setError(null);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
// Reset state for new featureId
|
|
23
|
+
setContent('');
|
|
24
|
+
setError(null);
|
|
25
|
+
// Connect EventSource for live updates
|
|
26
|
+
const es = new EventSource(`/api/feature-logs?featureId=${featureId}`);
|
|
27
|
+
eventSourceRef.current = es;
|
|
28
|
+
es.onopen = () => {
|
|
29
|
+
setIsConnected(true);
|
|
30
|
+
};
|
|
31
|
+
es.addEventListener('initial', (event) => {
|
|
32
|
+
const data = JSON.parse(event.data);
|
|
33
|
+
setContent(data.content);
|
|
34
|
+
});
|
|
35
|
+
es.addEventListener('log', (event) => {
|
|
36
|
+
const data = JSON.parse(event.data);
|
|
37
|
+
setContent((prev) => prev + data.content);
|
|
38
|
+
});
|
|
39
|
+
es.addEventListener('error', (event) => {
|
|
40
|
+
const data = JSON.parse(event.data);
|
|
41
|
+
setError(data.error);
|
|
42
|
+
});
|
|
43
|
+
es.onerror = () => {
|
|
44
|
+
setIsConnected(false);
|
|
45
|
+
};
|
|
46
|
+
return () => {
|
|
47
|
+
es.close();
|
|
48
|
+
eventSourceRef.current = null;
|
|
49
|
+
};
|
|
50
|
+
}, [featureId, cleanup]);
|
|
51
|
+
return { content, isConnected, error };
|
|
52
|
+
}
|