@shepai/cli 1.175.0 → 1.175.1-pr536.17338e9
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/apis/json-schema/Application.yaml +40 -0
- package/apis/json-schema/ApplicationStatus.yaml +8 -0
- package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts +17 -0
- package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts.map +1 -0
- package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.js +6 -0
- package/dist/packages/core/src/application/ports/output/repositories/index.d.ts +1 -0
- package/dist/packages/core/src/application/ports/output/repositories/index.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts +29 -0
- package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.js +128 -0
- package/dist/packages/core/src/application/use-cases/applications/delete-application.use-case.d.ts +15 -0
- package/dist/packages/core/src/application/use-cases/applications/delete-application.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/applications/delete-application.use-case.js +45 -0
- package/dist/packages/core/src/application/use-cases/applications/get-application.use-case.d.ts +13 -0
- package/dist/packages/core/src/application/use-cases/applications/get-application.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/applications/get-application.use-case.js +33 -0
- package/dist/packages/core/src/application/use-cases/applications/index.d.ts +13 -0
- package/dist/packages/core/src/application/use-cases/applications/index.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/applications/index.js +10 -0
- package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts +13 -0
- package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.js +33 -0
- package/dist/packages/core/src/application/use-cases/applications/update-application.use-case.d.ts +14 -0
- package/dist/packages/core/src/application/use-cases/applications/update-application.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/applications/update-application.use-case.js +33 -0
- package/dist/packages/core/src/application/use-cases/repositories/create-project.use-case.d.ts +32 -0
- package/dist/packages/core/src/application/use-cases/repositories/create-project.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/repositories/create-project.use-case.js +120 -0
- package/dist/packages/core/src/domain/generated/output.d.ts +42 -0
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +6 -0
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +37 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts +37 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.js +52 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-create-applications-table.d.ts +5 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-create-applications-table.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-create-applications-table.js +34 -0
- package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts +21 -0
- package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.js +98 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.js +44 -4
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +1 -1
- 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 +11 -1
- package/dist/src/presentation/web/app/actions/check-all-agents-status.d.ts +7 -0
- package/dist/src/presentation/web/app/actions/check-all-agents-status.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/check-all-agents-status.js +30 -0
- package/dist/src/presentation/web/app/actions/create-application.d.ts +13 -0
- package/dist/src/presentation/web/app/actions/create-application.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/create-application.js +20 -0
- package/dist/src/presentation/web/app/actions/create-project-and-feature.d.ts +20 -0
- package/dist/src/presentation/web/app/actions/create-project-and-feature.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/create-project-and-feature.js +70 -0
- package/dist/src/presentation/web/app/actions/delete-application.d.ts +4 -0
- package/dist/src/presentation/web/app/actions/delete-application.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/delete-application.js +16 -0
- package/dist/src/presentation/web/app/application/[id]/page.d.ts +11 -0
- package/dist/src/presentation/web/app/application/[id]/page.d.ts.map +1 -0
- package/dist/src/presentation/web/app/application/[id]/page.js +16 -0
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts +3 -1
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +19 -0
- package/dist/src/presentation/web/components/common/application-node/application-node-config.d.ts +24 -0
- package/dist/src/presentation/web/components/common/application-node/application-node-config.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/application-node/application-node-config.js +1 -0
- package/dist/src/presentation/web/components/common/application-node/application-node.d.ts +7 -0
- package/dist/src/presentation/web/components/common/application-node/application-node.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/application-node/application-node.js +41 -0
- package/dist/src/presentation/web/components/common/application-node/application-node.stories.d.ts +12 -0
- package/dist/src/presentation/web/components/common/application-node/application-node.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/application-node/application-node.stories.js +100 -0
- package/dist/src/presentation/web/components/common/attachment-chip/attachment-chip.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/attachment-chip/attachment-chip.js +1 -1
- package/dist/src/presentation/web/components/features/application-page/application-page.d.ts +8 -0
- package/dist/src/presentation/web/components/features/application-page/application-page.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/application-page/application-page.js +86 -0
- package/dist/src/presentation/web/components/features/application-page/application-page.stories.d.ts +9 -0
- package/dist/src/presentation/web/components/features/application-page/application-page.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/application-page/application-page.stories.js +51 -0
- package/dist/src/presentation/web/components/features/chat/ChatSheet.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/chat/ChatSheet.js +4 -2
- package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts +5 -1
- package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/chat/ChatTab.js +3 -3
- package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts +3 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js +189 -118
- package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.stories.d.ts +4 -16
- package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.stories.js +16 -109
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +43 -3
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +4 -0
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +25 -1
- package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.js +2 -2
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts +2 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +2 -0
- package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.d.ts +3 -1
- 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 +9 -4
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts +5 -0
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.js +37 -2
- package/dist/src/presentation/web/lib/derive-graph.d.ts +11 -1
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +35 -1
- package/dist/src/presentation/web/lib/layout-with-dagre.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/layout-with-dagre.js +1 -0
- package/dist/translations/ar/web.json +6 -1
- package/dist/translations/de/web.json +6 -1
- package/dist/translations/en/web.json +6 -1
- package/dist/translations/es/web.json +6 -1
- package/dist/translations/fr/web.json +6 -1
- package/dist/translations/he/web.json +6 -1
- package/dist/translations/pt/web.json +6 -1
- package/dist/translations/ru/web.json +6 -1
- 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 +3 -3
- package/web/.next/required-server-files.json +3 -3
- package/web/.next/routes-manifest.json +8 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +94 -79
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +3 -3
- 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 +90 -75
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +3 -3
- 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 +96 -81
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +3 -3
- 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 +112 -97
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +3 -3
- 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 +112 -97
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +3 -3
- 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 +92 -77
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +3 -3
- 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 +92 -77
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +3 -3
- 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 +90 -75
- package/web/.next/server/app/(dashboard)/chat/page.js +3 -3
- 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 +96 -81
- package/web/.next/server/app/(dashboard)/create/page.js +3 -3
- 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 +112 -97
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +3 -3
- 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 +112 -97
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +3 -3
- 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 +90 -75
- package/web/.next/server/app/(dashboard)/page.js +3 -3
- 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 +92 -77
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +3 -3
- 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 +92 -77
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +3 -3
- 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/page.js +1 -1
- package/web/.next/server/app/_global-error/page.js.nft.json +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 +27 -12
- package/web/.next/server/app/_not-found/page.js +2 -2
- 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/attachments/upload-from-path/route.js +1 -1
- package/web/.next/server/app/api/attachments/upload-from-path/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/application/[id]/page/app-paths-manifest.json +3 -0
- package/web/.next/server/app/application/[id]/page/build-manifest.json +18 -0
- package/web/.next/server/app/application/[id]/page/next-font-manifest.json +6 -0
- package/web/.next/server/app/application/[id]/page/react-loadable-manifest.json +1 -0
- package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +110 -0
- package/web/.next/server/app/application/[id]/page.js +18 -0
- package/web/.next/server/app/application/[id]/page.js.map +5 -0
- package/web/.next/server/app/application/[id]/page.js.nft.json +1 -0
- package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +2 -0
- package/web/.next/server/app/features/page/server-reference-manifest.json +27 -12
- package/web/.next/server/app/features/page.js +2 -2
- 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 +33 -18
- package/web/.next/server/app/settings/page.js +2 -2
- 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 +41 -26
- package/web/.next/server/app/skills/page.js +2 -2
- 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 +37 -22
- package/web/.next/server/app/tools/page.js +2 -2
- 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 +27 -12
- package/web/.next/server/app/version/page.js +2 -2
- 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/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/{[root-of-the-server]__ea653642._.js → [root-of-the-server]__a5879003._.js} +2 -2
- package/web/.next/server/chunks/{[root-of-the-server]__ea653642._.js.map → [root-of-the-server]__a5879003._.js.map} +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_c4b92435.js +3 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_c4b92435.js.map +1 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_e4478080.js +3 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_e4478080.js.map +1 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_9b144ef8.js +3 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_9b144ef8.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/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/7f428_lucide-react_dist_esm_icons_281e0ef8._.js +1 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_281e0ef8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_a593f310._.js +1 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_a593f310._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__00efb844._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__00efb844._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__d1040bd1._.js → [root-of-the-server]__090f24cb._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__d1040bd1._.js.map → [root-of-the-server]__090f24cb._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0d64745d._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0d64745d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__51ec77a8._.js → [root-of-the-server]__234748ae._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__aa72e794._.js.map → [root-of-the-server]__234748ae._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__23b5ca2c._.js +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__66047a1b._.js → [root-of-the-server]__2a2005ad._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__a932cd3a._.js.map → [root-of-the-server]__2a2005ad._.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]__22d17c66._.js → [root-of-the-server]__3a6d2b30._.js} +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3a6d2b30._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__a932cd3a._.js → [root-of-the-server]__5d481a91._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__51ec77a8._.js.map → [root-of-the-server]__5d481a91._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__63272afd._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__63272afd._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7e2919._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7e2919._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7528eb6f._.js +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__efeeaed4._.js → [root-of-the-server]__7aa484f5._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__efeeaed4._.js.map → [root-of-the-server]__7aa484f5._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__86ff0bc5._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__86ff0bc5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__aa72e794._.js → [root-of-the-server]__e7504e4a._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__66047a1b._.js.map → [root-of-the-server]__e7504e4a._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
- package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
- package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1879404a._.js +1 -1
- package/web/.next/server/chunks/ssr/_1879404a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_295fffde._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_2bea8166._.js +4 -0
- package/web/.next/server/chunks/ssr/_2bea8166._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_46a35540._.js +3 -0
- package/web/.next/server/chunks/ssr/_46a35540._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_4e42f1b7._.js +3 -0
- package/web/.next/server/chunks/ssr/_4e42f1b7._.js.map +1 -0
- 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/_6f66d7ac._.js +3 -0
- package/web/.next/server/chunks/ssr/_6f66d7ac._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_73e62e34._.js +7 -0
- package/web/.next/server/chunks/ssr/_73e62e34._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_af6b8b94._.js → _946a7fc6._.js} +3 -3
- package/web/.next/server/chunks/ssr/_946a7fc6._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_e0dd6fcf._.js → _a0ddd745._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_e0dd6fcf._.js.map → _a0ddd745._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_b0311e50._.js +3 -0
- package/web/.next/server/chunks/ssr/_b0311e50._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_b7a43c05._.js +1 -1
- package/web/.next/server/chunks/ssr/_b7a43c05._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d485d3b9._.js +3 -0
- package/web/.next/server/chunks/ssr/_d485d3b9._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f3cd7f63._.js +9 -0
- package/web/.next/server/chunks/ssr/_f3cd7f63._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_4cbb7f95._.js → _f86fc1bf._.js} +2 -2
- package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f8c55130._.js +1 -1
- package/web/.next/server/chunks/ssr/_f8c55130._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f916587a._.js +3 -0
- package/web/.next/server/chunks/ssr/_f916587a._.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/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_139547d4._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_139547d4._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_5b7ef96a._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_807cba76._.js.map → src_presentation_web_5b7ef96a._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5f6f6651._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_5f6f6651._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_9cd4b94c._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_e3a30e30._.js.map → src_presentation_web_9cd4b94c._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_bc9fae39.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_bc9fae39.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1619f987.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1619f987.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_1b3c83ff.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_1b3c83ff.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +30 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b3759f18._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_17d39233._.js.map → src_presentation_web_b3759f18._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_bceeb973._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_e1cd1869._.js.map → src_presentation_web_bceeb973._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.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_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_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/translations_23dd5e7e._.js +1 -1
- package/web/.next/server/chunks/ssr/translations_23dd5e7e._.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 +883 -686
- package/web/.next/static/chunks/0dbc8228223540f0.js +1 -0
- package/web/.next/static/chunks/2090882dcaad5f8f.js +3 -0
- package/web/.next/static/chunks/{238fdbed09dc61b6.js → 288a6a7b2abf36ae.js} +2 -2
- package/web/.next/static/chunks/357c3d4c713a444b.js +1 -0
- package/web/.next/static/chunks/{39054eabee156e55.js → 39cd2f842b9377e5.js} +3 -3
- package/web/.next/static/chunks/{873e837cd1179cdd.js → 4b63765a2c9294db.js} +1 -1
- package/web/.next/static/chunks/67499ef845dda801.js +1 -0
- package/web/.next/static/chunks/{940c842293a6ee9b.js → 6a5b9181d2b5160c.js} +1 -1
- package/web/.next/static/chunks/771b8283dff48366.js +5 -0
- package/web/.next/static/chunks/79f687a9b9f2dca3.js +1 -0
- package/web/.next/static/chunks/7acc65394c377946.js +1 -0
- package/web/.next/static/chunks/{bc41a393614b1192.js → 89a6fefe537cca64.js} +1 -1
- package/web/.next/static/chunks/8da227cb5d5c25b1.js +7 -0
- package/web/.next/static/chunks/90cce661ba250a41.js +1 -0
- package/web/.next/static/chunks/{a22ee308ae1509ca.js → 97a84c58c17399ee.js} +1 -1
- package/web/.next/static/chunks/994f0ac30cd8661a.js +1 -0
- package/web/.next/static/chunks/{09edd35d194bec06.js → bcbae49e0f6d65ca.js} +3 -3
- package/web/.next/static/chunks/bdd3467bb34c2b76.css +1 -0
- package/web/.next/static/chunks/bf5da7f887552cca.js +1 -0
- package/web/.next/static/chunks/c9bd1dea77920749.js +1 -0
- package/web/.next/static/chunks/ce8d4b5094c4dd62.js +1 -0
- package/web/.next/static/chunks/d2f65dc6c7e99186.js +1 -0
- package/web/.next/static/chunks/{2ad924f5ba5ec0a6.js → e9ab2deb269fa340.js} +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js +0 -3
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js.map +0 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js +0 -3
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js.map +0 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js +0 -3
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__22d17c66._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__69dd3217._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__69dd3217._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_2b021b35._.js +0 -3
- package/web/.next/server/chunks/ssr/_2b021b35._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_43ba79e7._.js +0 -3
- package/web/.next/server/chunks/ssr/_43ba79e7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_4cbb7f95._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_6abfa39e._.js +0 -3
- package/web/.next/server/chunks/ssr/_6abfa39e._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_7cb0396e._.js +0 -3
- package/web/.next/server/chunks/ssr/_7cb0396e._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_af6b8b94._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_d9c0a97a._.js +0 -7
- package/web/.next/server/chunks/ssr/_d9c0a97a._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_e680c57c._.js +0 -9
- package/web/.next/server/chunks/ssr/_e680c57c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_ef15a0bd._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_ef15a0bd._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js +0 -3
- package/web/.next/static/chunks/0b07ee72b0c639ef.js +0 -7
- package/web/.next/static/chunks/1b336d1266a0aa3d.js +0 -1
- package/web/.next/static/chunks/28f6b1cab38ab025.js +0 -3
- package/web/.next/static/chunks/46e2693dbc9262fd.js +0 -5
- package/web/.next/static/chunks/8b0a9cb5109fe899.js +0 -1
- package/web/.next/static/chunks/971e52f3f386ccfd.js +0 -1
- package/web/.next/static/chunks/a20f2d6f76f469b7.css +0 -1
- package/web/.next/static/chunks/b2aa69e4b0b032d9.js +0 -1
- package/web/.next/static/chunks/b63e6727c84f30e2.js +0 -1
- package/web/.next/static/chunks/b65e555419a0c664.js +0 -1
- package/web/.next/static/chunks/b7b5d65a5dd2fff1.js +0 -1
- package/web/.next/static/chunks/ba0e0fa2d1a650bb.js +0 -1
- package/web/.next/static/chunks/c10c0d6d458453bc.js +0 -1
- package/web/.next/static/chunks/d26542df5ecc8717.js +0 -1
- /package/web/.next/static/{9rcv3ICw0kZNuv3TVdO8E → GfIqHvmVtZCXK5PAbtkQf}/_buildManifest.js +0 -0
- /package/web/.next/static/{9rcv3ICw0kZNuv3TVdO8E → GfIqHvmVtZCXK5PAbtkQf}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{9rcv3ICw0kZNuv3TVdO8E → GfIqHvmVtZCXK5PAbtkQf}/_ssgManifest.js +0 -0
package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js
CHANGED
|
@@ -1,136 +1,207 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { useState, useCallback, useRef, useEffect } from 'react';
|
|
4
|
+
import { SendHorizontal, Paperclip, Loader2, LayoutGrid, Zap, ClipboardList, ChevronDown, Check, X, } from 'lucide-react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { cn } from '../../../lib/utils.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
import { createProjectAndFeature } from '../../../app/actions/create-project-and-feature.js';
|
|
8
|
+
import { createApplication } from '../../../app/actions/create-application.js';
|
|
9
|
+
import { AgentModelPicker } from '../../features/settings/AgentModelPicker/index.js';
|
|
10
|
+
import { AttachmentChip } from '../../common/attachment-chip/index.js';
|
|
11
|
+
import { ShepLogo } from '../../common/shep-logo/index.js';
|
|
12
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip.js';
|
|
13
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '../../ui/dropdown-menu.js';
|
|
14
|
+
import { useAttachments } from '../../../hooks/use-attachments.js';
|
|
15
|
+
const BUILD_MODES = ['application', 'fast', 'spec'];
|
|
16
|
+
const BUILD_MODE_CONFIG = {
|
|
17
|
+
application: {
|
|
18
|
+
icon: LayoutGrid,
|
|
19
|
+
label: 'Application',
|
|
20
|
+
placeholder: 'Build a modern e-commerce storefront with product catalog...',
|
|
21
|
+
suggestions: [
|
|
22
|
+
'A landing page with hero, features, and pricing sections',
|
|
23
|
+
'Full-stack SaaS app with auth, billing, and dashboard',
|
|
24
|
+
'Mobile-first social media app with real-time chat',
|
|
25
|
+
'Personal portfolio with blog and project showcase',
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
fast: {
|
|
29
|
+
icon: Zap,
|
|
30
|
+
label: 'Fast',
|
|
31
|
+
placeholder: 'Add a dark mode toggle to the settings page...',
|
|
32
|
+
suggestions: [
|
|
33
|
+
'Add pagination to the users list endpoint',
|
|
34
|
+
'Fix the broken logout redirect',
|
|
35
|
+
'Add input validation to the signup form',
|
|
36
|
+
'Refactor the API error handling middleware',
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
spec: {
|
|
40
|
+
icon: ClipboardList,
|
|
41
|
+
label: 'Spec Driven',
|
|
42
|
+
placeholder: 'Implement a role-based access control system with audit logging...',
|
|
43
|
+
suggestions: [
|
|
44
|
+
'OAuth2 authentication with SSO and MFA support',
|
|
45
|
+
'Event-driven notification system with email and push',
|
|
46
|
+
'REST API with versioning, rate limiting, and OpenAPI docs',
|
|
47
|
+
'Data pipeline with ETL, validation, and monitoring',
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export function ControlCenterEmptyState({ onRepositorySelect, onApplicationCreated, onClose, className, }) {
|
|
16
52
|
const { t } = useTranslation('web');
|
|
17
|
-
const [
|
|
18
|
-
const [
|
|
19
|
-
const [
|
|
20
|
-
const [
|
|
21
|
-
const [
|
|
22
|
-
const [
|
|
23
|
-
const [
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
53
|
+
const [description, setDescription] = useState('');
|
|
54
|
+
const [overrideAgent, setOverrideAgent] = useState(undefined);
|
|
55
|
+
const [overrideModel, setOverrideModel] = useState(undefined);
|
|
56
|
+
const [buildMode, setBuildMode] = useState('application');
|
|
57
|
+
const [submitting, setSubmitting] = useState(false);
|
|
58
|
+
const [error, setError] = useState(null);
|
|
59
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
60
|
+
const textareaRef = useRef(null);
|
|
61
|
+
const att = useAttachments();
|
|
62
|
+
// Circular mode switching with Shift+Tab, close overlay with Escape
|
|
63
|
+
const cycleBuildMode = useCallback(() => {
|
|
64
|
+
setBuildMode((prev) => {
|
|
65
|
+
const idx = BUILD_MODES.indexOf(prev);
|
|
66
|
+
return BUILD_MODES[(idx + 1) % BUILD_MODES.length];
|
|
28
67
|
});
|
|
29
68
|
}, []);
|
|
30
69
|
useEffect(() => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
70
|
+
const handleGlobalKeyDown = (e) => {
|
|
71
|
+
if (e.key === 'Escape' && onClose)
|
|
72
|
+
onClose();
|
|
73
|
+
if (e.key === 'Tab' && e.shiftKey) {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
cycleBuildMode();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
window.addEventListener('keydown', handleGlobalKeyDown);
|
|
79
|
+
return () => window.removeEventListener('keydown', handleGlobalKeyDown);
|
|
80
|
+
}, [onClose, cycleBuildMode]);
|
|
81
|
+
const handleSubmit = useCallback(async () => {
|
|
82
|
+
if (!description.trim() || submitting)
|
|
41
83
|
return;
|
|
42
|
-
|
|
43
|
-
|
|
84
|
+
setSubmitting(true);
|
|
85
|
+
setError(null);
|
|
44
86
|
try {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
87
|
+
if (buildMode === 'application') {
|
|
88
|
+
const result = await createApplication({
|
|
89
|
+
description: description.trim(),
|
|
90
|
+
agentType: overrideAgent,
|
|
91
|
+
modelOverride: overrideModel,
|
|
92
|
+
});
|
|
93
|
+
if (result.error) {
|
|
94
|
+
setError(result.error);
|
|
95
|
+
setSubmitting(false);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (result.repositoryPath) {
|
|
99
|
+
onRepositorySelect?.(result.repositoryPath);
|
|
100
|
+
}
|
|
101
|
+
if (result.application) {
|
|
102
|
+
window.dispatchEvent(new CustomEvent('shep:application-created', {
|
|
103
|
+
detail: {
|
|
104
|
+
applicationId: result.application.id,
|
|
105
|
+
name: result.application.name,
|
|
106
|
+
description: result.application.description,
|
|
107
|
+
repositoryPath: result.repositoryPath,
|
|
108
|
+
status: result.application.status,
|
|
109
|
+
},
|
|
110
|
+
}));
|
|
111
|
+
onApplicationCreated?.(result.application.id, description.trim());
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const result = await createProjectAndFeature({
|
|
116
|
+
description: description.trim(),
|
|
117
|
+
attachments: att.completedAttachments.map((a) => ({
|
|
118
|
+
path: a.path,
|
|
119
|
+
name: a.name,
|
|
120
|
+
notes: a.notes,
|
|
121
|
+
})),
|
|
122
|
+
agentType: overrideAgent,
|
|
123
|
+
model: overrideModel,
|
|
124
|
+
fast: buildMode === 'fast',
|
|
125
|
+
});
|
|
126
|
+
if (result.error) {
|
|
127
|
+
setError(result.error);
|
|
128
|
+
setSubmitting(false);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (result.repositoryPath) {
|
|
132
|
+
onRepositorySelect?.(result.repositoryPath);
|
|
133
|
+
}
|
|
134
|
+
if (result.feature && result.repositoryPath) {
|
|
135
|
+
window.dispatchEvent(new CustomEvent('shep:feature-created', {
|
|
136
|
+
detail: {
|
|
137
|
+
featureId: result.feature.id,
|
|
138
|
+
name: result.feature.name,
|
|
139
|
+
description: result.feature.description,
|
|
140
|
+
repositoryPath: result.repositoryPath,
|
|
141
|
+
},
|
|
142
|
+
}));
|
|
143
|
+
}
|
|
48
144
|
}
|
|
49
145
|
}
|
|
50
146
|
catch {
|
|
51
|
-
|
|
52
|
-
|
|
147
|
+
setError('Something went wrong. Please try again.');
|
|
148
|
+
setSubmitting(false);
|
|
53
149
|
}
|
|
54
|
-
|
|
55
|
-
|
|
150
|
+
}, [
|
|
151
|
+
description,
|
|
152
|
+
submitting,
|
|
153
|
+
buildMode,
|
|
154
|
+
att.completedAttachments,
|
|
155
|
+
overrideAgent,
|
|
156
|
+
overrideModel,
|
|
157
|
+
onRepositorySelect,
|
|
158
|
+
onApplicationCreated,
|
|
159
|
+
]);
|
|
160
|
+
const handleKeyDown = useCallback((e) => {
|
|
161
|
+
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
|
|
162
|
+
e.preventDefault();
|
|
163
|
+
handleSubmit();
|
|
56
164
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
165
|
+
}, [handleSubmit]);
|
|
166
|
+
const handlePickFiles = useCallback(async () => {
|
|
167
|
+
try {
|
|
168
|
+
const res = await fetch('/api/dialog/pick-files');
|
|
169
|
+
if (!res.ok)
|
|
170
|
+
return;
|
|
171
|
+
const data = (await res.json());
|
|
172
|
+
if (!data.paths?.length)
|
|
173
|
+
return;
|
|
174
|
+
for (const filePath of data.paths) {
|
|
175
|
+
const uploadRes = await fetch('/api/attachments/upload-from-path', {
|
|
176
|
+
method: 'POST',
|
|
177
|
+
headers: { 'Content-Type': 'application/json' },
|
|
178
|
+
body: JSON.stringify({ path: filePath, sessionId: 'onboarding' }),
|
|
179
|
+
});
|
|
180
|
+
if (!uploadRes.ok)
|
|
181
|
+
continue;
|
|
182
|
+
const uploaded = (await uploadRes.json());
|
|
183
|
+
att.addAttachment(uploaded);
|
|
184
|
+
}
|
|
61
185
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
setAgentReady(true);
|
|
71
|
-
}, []);
|
|
72
|
-
const handleRetryAuth = useCallback(() => {
|
|
73
|
-
setAuthStatus(null);
|
|
74
|
-
checkAgentAuth().then(setAuthStatus);
|
|
186
|
+
catch {
|
|
187
|
+
// Native picker not available — ignore
|
|
188
|
+
}
|
|
189
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- att.addAttachment is stable
|
|
190
|
+
}, [att.addAttachment]);
|
|
191
|
+
const handleSuggestionClick = useCallback((suggestion) => {
|
|
192
|
+
setDescription(suggestion);
|
|
193
|
+
textareaRef.current?.focus();
|
|
75
194
|
}, []);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return (_jsxs("div", { "data-testid": "control-center-empty-state", className: cn('relative flex h-full w-full flex-col items-center justify-center px-8', className), children: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
setShowReactPicker(false);
|
|
89
|
-
}, onSelect: handleReactPickerSelect })] }));
|
|
90
|
-
}
|
|
91
|
-
/** Status row for the AI agent (Claude Code, etc.) */
|
|
92
|
-
function AgentAuthBanner({ status, onRetry, }) {
|
|
93
|
-
const { t } = useTranslation('web');
|
|
94
|
-
if (!status) {
|
|
95
|
-
return (_jsx(ChecklistRow, { icon: _jsx(Loader2, { className: "text-muted-foreground/50 h-4 w-4 animate-spin" }), children: _jsx("span", { className: "text-muted-foreground/50 text-sm", children: t('emptyState.checkingSetup') }) }));
|
|
96
|
-
}
|
|
97
|
-
if (status.installed && status.authenticated) {
|
|
98
|
-
return (_jsx(ChecklistRow, { icon: _jsx(CheckCircle2, { className: "h-4 w-4 text-emerald-500" }), children: _jsx("span", { className: "text-sm text-emerald-600 dark:text-emerald-400", children: t('emptyState.ready', { label: status.label }) }) }));
|
|
99
|
-
}
|
|
100
|
-
if (!status.installed) {
|
|
101
|
-
return (_jsxs(ChecklistRow, { icon: _jsx(AlertCircle, { className: "h-4 w-4 text-amber-500" }), children: [_jsx("span", { className: "text-sm font-medium text-amber-600 dark:text-amber-400", children: t('emptyState.notInstalled', { label: status.label }) }), status.installCommand ? _jsx(CopyableCommand, { command: status.installCommand }) : null, _jsx("button", { type: "button", onClick: onRetry, className: "text-xs text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400", children: t('emptyState.reCheck') })] }));
|
|
102
|
-
}
|
|
103
|
-
return (_jsxs(ChecklistRow, { icon: _jsx(AlertCircle, { className: "h-4 w-4 text-amber-500" }), children: [_jsx("span", { className: "text-sm font-medium text-amber-600 dark:text-amber-400", children: t('emptyState.needsAuth', { label: status.label }) }), status.authCommand ? _jsx(CopyableCommand, { command: status.authCommand }) : null, _jsxs("div", { className: "flex items-center gap-3", children: [status.binaryName ? (_jsxs("button", { type: "button", "data-testid": "auth-banner-open-terminal", onClick: async () => {
|
|
104
|
-
try {
|
|
105
|
-
const toolId = status.agentType === 'claude-code' ? 'claude-code' : status.agentType;
|
|
106
|
-
await fetch(`/api/tools/${toolId}/launch`, { method: 'POST' });
|
|
107
|
-
}
|
|
108
|
-
catch {
|
|
109
|
-
/* best effort */
|
|
110
|
-
}
|
|
111
|
-
}, className: "flex items-center gap-1 text-xs font-medium text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400", children: [_jsx(Terminal, { className: "h-3 w-3" }), t('emptyState.open', { label: status.label })] })) : null, _jsx("button", { type: "button", onClick: onRetry, className: "text-xs text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400", children: t('emptyState.reCheck') })] })] }));
|
|
112
|
-
}
|
|
113
|
-
/** Status row for system tools (git, gh) */
|
|
114
|
-
function ToolStatusRow({ label, status, missingHint, }) {
|
|
115
|
-
const { t } = useTranslation('web');
|
|
116
|
-
if (!status) {
|
|
117
|
-
return (_jsx(ChecklistRow, { icon: _jsx(Loader2, { className: "text-muted-foreground/50 h-4 w-4 animate-spin" }), children: _jsx("span", { className: "text-muted-foreground/50 text-sm", children: t('emptyState.checking', { label }) }) }));
|
|
118
|
-
}
|
|
119
|
-
if (status.installed) {
|
|
120
|
-
return (_jsx(ChecklistRow, { icon: _jsx(CheckCircle2, { className: "h-4 w-4 text-emerald-500" }), children: _jsxs("span", { className: "flex items-baseline gap-2", children: [_jsx("span", { className: "text-sm text-emerald-600 dark:text-emerald-400", children: t('emptyState.ready', { label }) }), status.version ? (_jsxs("span", { className: "text-muted-foreground/40 text-xs", children: ["v", status.version] })) : null] }) }));
|
|
121
|
-
}
|
|
122
|
-
return (_jsxs(ChecklistRow, { icon: _jsx(AlertCircle, { className: "h-4 w-4 text-amber-500" }), children: [_jsx("span", { className: "text-sm font-medium text-amber-600 dark:text-amber-400", children: t('emptyState.notFound', { label }) }), _jsx("span", { className: "text-muted-foreground/50 text-xs", children: missingHint }), status.installCommand ? _jsx(CopyableCommand, { command: status.installCommand }) : null, status.installUrl ? (_jsxs("a", { href: status.installUrl, target: "_blank", rel: "noopener noreferrer", className: "inline-flex items-center gap-1 text-xs text-amber-600 underline underline-offset-2 hover:text-amber-800 dark:text-amber-400", children: [t('emptyState.docs'), " ", _jsx(ExternalLink, { className: "h-3 w-3" })] })) : null] }));
|
|
123
|
-
}
|
|
124
|
-
/** Checklist row: icon pinned left, children stacked vertically and fill width */
|
|
125
|
-
function ChecklistRow({ icon, children }) {
|
|
126
|
-
return (_jsxs("div", { className: "animate-in fade-in flex items-start gap-2.5", children: [_jsx("div", { className: "mt-0.5 shrink-0", children: icon }), _jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: children })] }));
|
|
127
|
-
}
|
|
128
|
-
/** Compact copyable command block — fills available row width */
|
|
129
|
-
function CopyableCommand({ command }) {
|
|
130
|
-
const [copied, setCopied] = useState(false);
|
|
131
|
-
return (_jsxs("button", { type: "button", onClick: async () => {
|
|
132
|
-
await navigator.clipboard.writeText(command);
|
|
133
|
-
setCopied(true);
|
|
134
|
-
setTimeout(() => setCopied(false), 2000);
|
|
135
|
-
}, className: "group/cmd flex cursor-pointer items-center justify-between gap-2 rounded-md bg-zinc-100 py-1 ps-2.5 pe-2 text-start transition-colors hover:bg-zinc-200 dark:bg-zinc-800 dark:hover:bg-zinc-700", children: [_jsx("code", { className: "min-w-0 truncate text-[11px] leading-relaxed text-zinc-600 dark:text-zinc-300", children: command }), copied ? (_jsx(Check, { className: "h-3 w-3 shrink-0 text-emerald-500" })) : (_jsx(Copy, { className: "h-3 w-3 shrink-0 text-zinc-400 opacity-0 transition-opacity group-hover/cmd:opacity-100" }))] }));
|
|
195
|
+
const modeConfig = BUILD_MODE_CONFIG[buildMode];
|
|
196
|
+
const ModeIcon = modeConfig.icon;
|
|
197
|
+
return (_jsxs("div", { "data-testid": "control-center-empty-state", className: cn('relative flex h-full w-full flex-col items-center justify-center overflow-hidden px-8', className), children: [_jsx("div", { className: "onboard-bg pointer-events-none absolute inset-0 animate-[onboard-fade-in_1.2s_ease-out_both]" }), onClose ? (_jsx("button", { type: "button", onClick: onClose, "aria-label": "Close", className: "text-muted-foreground hover:text-foreground hover:bg-accent/50 absolute top-4 right-4 z-10 cursor-pointer rounded p-1.5 transition-colors", children: _jsx(X, { className: "h-5 w-5" }) })) : null, _jsxs("div", { className: "relative flex w-full max-w-2xl flex-col items-center", children: [_jsx("div", { className: "mb-6 animate-[onboard-logo_0.8s_cubic-bezier(0.16,1,0.3,1)_both]", style: { animationDelay: '0ms' }, children: _jsx(ShepLogo, { size: 72, className: "text-foreground" }) }), _jsx("h1", { className: "text-foreground animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both] text-center text-5xl font-extralight tracking-tight", style: { animationDelay: '120ms' }, children: "What do you want to build?" }), _jsx("p", { className: "text-muted-foreground mt-3 animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both] text-center text-lg leading-relaxed font-light", style: { animationDelay: '220ms' }, children: "Describe your idea and Shep creates the project for you." }), _jsxs("div", { className: "mt-10 w-full animate-[onboard-fade-up_0.7s_cubic-bezier(0.16,1,0.3,1)_both]", style: { animationDelay: '350ms' }, children: [_jsxs("div", { onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), onDragEnter: att.handleDragEnter, onDragLeave: att.handleDragLeave, onDragOver: att.handleDragOver, onDrop: att.handleDrop, className: cn('flex flex-col rounded-xl border transition-all duration-200', 'border-border/60 bg-background shadow-sm dark:border-white/10 dark:bg-white/[0.04]', isFocused &&
|
|
198
|
+
'ring-ring/50 border-ring shadow-md ring-[3px] dark:border-orange-500/40 dark:ring-orange-500/25', att.isDragOver && 'border-primary/50 bg-primary/5', submitting && 'opacity-70'), children: [_jsx("textarea", { ref: textareaRef, rows: 2, autoFocus: true, value: description, onChange: (e) => setDescription(e.target.value), onKeyDown: handleKeyDown, onPaste: att.handlePaste, placeholder: modeConfig.placeholder, disabled: submitting, className: "text-foreground placeholder:text-muted-foreground/60 max-h-[10rem] min-h-[4.5rem] w-full resize-none border-0 bg-transparent px-4 py-3.5 text-sm leading-relaxed focus:outline-none disabled:cursor-not-allowed" }), att.attachments.length > 0 ? (_jsx("div", { className: "flex shrink-0 items-center gap-2.5 overflow-x-auto overflow-y-visible px-5 pt-2 pb-2", children: att.attachments.map((file) => (_jsx(AttachmentChip, { name: file.name, size: file.size, mimeType: file.mimeType, path: file.path, onRemove: () => att.removeAttachment(file.id), loading: file.loading, notes: file.notes, onNotesChange: (notes) => att.updateNotes(file.id, notes) }, file.id))) })) : null, att.uploadError ? (_jsx("p", { className: "text-destructive px-4 pb-2 text-xs", children: att.uploadError })) : null, _jsxs("div", { className: "border-border/60 flex shrink-0 items-center gap-3 border-t px-3 py-2 dark:border-white/10", children: [_jsx(AgentModelPicker, { initialAgentType: overrideAgent ?? 'claude-code', initialModel: overrideModel ?? 'claude-sonnet-4-6', mode: "override", showInstallStatus: true, onAgentModelChange: (agent, model) => {
|
|
199
|
+
setOverrideAgent(agent);
|
|
200
|
+
setOverrideModel(model);
|
|
201
|
+
}, className: "w-55" }), _jsx("div", { className: "flex-1" }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { type: "button", "data-testid": "build-mode-selector", className: "text-muted-foreground hover:text-foreground hover:bg-accent/50 flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors", children: [_jsxs("span", { className: "flex animate-[onboard-fade-up_0.25s_ease-out_both] items-center gap-1.5", children: [_jsx(ModeIcon, { className: "h-3.5 w-3.5" }), modeConfig.label] }, buildMode), _jsx(ChevronDown, { className: "h-3 w-3 opacity-50" })] }) }), _jsx(DropdownMenuContent, { align: "end", className: "min-w-[160px]", children: BUILD_MODES.map((mode) => {
|
|
202
|
+
const cfg = BUILD_MODE_CONFIG[mode];
|
|
203
|
+
const Icon = cfg.icon;
|
|
204
|
+
const isActive = buildMode === mode;
|
|
205
|
+
return (_jsxs(DropdownMenuItem, { onClick: () => setBuildMode(mode), "data-testid": `build-mode-${mode}`, className: "flex items-center gap-2", children: [_jsx(Icon, { className: "h-3.5 w-3.5" }), _jsx("span", { className: "flex-1", children: cfg.label }), isActive ? _jsx(Check, { className: "text-foreground h-3.5 w-3.5" }) : null] }, mode));
|
|
206
|
+
}) })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: handlePickFiles, disabled: submitting, "aria-label": t('chat.attachFiles'), className: "text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors disabled:opacity-50", children: _jsx(Paperclip, { className: "h-4 w-4" }) }) }), _jsx(TooltipContent, { side: "top", children: t('chat.attachFiles') })] }), _jsx("button", { type: "button", onClick: handleSubmit, disabled: !description.trim() || submitting, className: cn('bg-foreground text-background inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-lg', 'hover:bg-foreground/90 disabled:pointer-events-none disabled:opacity-30', 'transition-all duration-150'), children: submitting ? (_jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin" })) : (_jsx(SendHorizontal, { className: "h-3.5 w-3.5" })) })] })] }), error ? _jsx("p", { className: "text-destructive mt-2 text-center text-sm", children: error }) : null] }), _jsx("div", { className: "mt-6 flex animate-[onboard-fade-up_0.4s_ease-out_both] flex-wrap justify-center gap-2", children: modeConfig.suggestions.map((suggestion) => (_jsx("button", { type: "button", onClick: () => handleSuggestionClick(suggestion), disabled: submitting, className: "text-muted-foreground hover:text-foreground border-border/60 hover:border-border hover:bg-accent/50 cursor-pointer rounded-full border px-3.5 py-1.5 text-xs transition-all duration-150 disabled:opacity-50 dark:border-white/10 dark:hover:border-white/20 dark:hover:bg-white/[0.06]", children: suggestion }, suggestion))) }, buildMode)] })] }));
|
|
136
207
|
}
|
|
@@ -3,22 +3,10 @@ import { ControlCenterEmptyState } from './control-center-empty-state.js';
|
|
|
3
3
|
declare const meta: Meta<typeof ControlCenterEmptyState>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
|
-
/**
|
|
7
|
-
export declare const
|
|
8
|
-
/** Git is missing — blocks all workflow phases */
|
|
9
|
-
export declare const GitMissing: Story;
|
|
10
|
-
/** GitHub CLI is missing — PR features unavailable */
|
|
11
|
-
export declare const GhCliMissing: Story;
|
|
12
|
-
/** Both git and gh are missing */
|
|
13
|
-
export declare const BothToolsMissing: Story;
|
|
14
|
-
/** Claude Code not installed */
|
|
15
|
-
export declare const ClaudeCodeNotInstalled: Story;
|
|
16
|
-
/** Cursor CLI not installed */
|
|
17
|
-
export declare const CursorCliNotInstalled: Story;
|
|
18
|
-
/** Gemini CLI not installed */
|
|
19
|
-
export declare const GeminiCliNotInstalled: Story;
|
|
20
|
-
/** Agent not installed + tools missing — worst case */
|
|
21
|
-
export declare const EverythingMissing: Story;
|
|
6
|
+
/** Prompt-first onboarding — the default view after agent setup */
|
|
7
|
+
export declare const Default: Story;
|
|
22
8
|
/** With callback — for interaction testing */
|
|
23
9
|
export declare const WithCallback: Story;
|
|
10
|
+
/** As overlay — with close button */
|
|
11
|
+
export declare const AsOverlay: Story;
|
|
24
12
|
//# sourceMappingURL=control-center-empty-state.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-center-empty-state.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-empty-state.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,uBAAuB,CAc9C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"control-center-empty-state.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-empty-state.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,uBAAuB,CAc9C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,mEAAmE;AACnE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC;AAEF,qCAAqC;AACrC,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC"}
|
|
@@ -12,116 +12,9 @@ const meta = {
|
|
|
12
12
|
],
|
|
13
13
|
};
|
|
14
14
|
export default meta;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
installed: true,
|
|
18
|
-
authenticated: true,
|
|
19
|
-
label: 'Claude Code',
|
|
20
|
-
binaryName: 'claude',
|
|
21
|
-
installCommand: 'curl -fsSL https://claude.ai/install.sh | bash',
|
|
22
|
-
authCommand: null,
|
|
23
|
-
};
|
|
24
|
-
const claudeNotInstalled = {
|
|
25
|
-
agentType: 'claude-code',
|
|
26
|
-
installed: false,
|
|
27
|
-
authenticated: false,
|
|
28
|
-
label: 'Claude Code',
|
|
29
|
-
binaryName: 'claude',
|
|
30
|
-
installCommand: 'curl -fsSL https://claude.ai/install.sh | bash',
|
|
31
|
-
authCommand: 'Install Claude Code first',
|
|
32
|
-
};
|
|
33
|
-
const cursorNotInstalled = {
|
|
34
|
-
agentType: 'cursor',
|
|
35
|
-
installed: false,
|
|
36
|
-
authenticated: false,
|
|
37
|
-
label: 'Cursor CLI',
|
|
38
|
-
binaryName: 'cursor-agent',
|
|
39
|
-
installCommand: 'curl https://cursor.com/install -fsS | bash',
|
|
40
|
-
authCommand: 'Install Cursor CLI first',
|
|
41
|
-
};
|
|
42
|
-
const geminiNotInstalled = {
|
|
43
|
-
agentType: 'gemini-cli',
|
|
44
|
-
installed: false,
|
|
45
|
-
authenticated: false,
|
|
46
|
-
label: 'Gemini CLI',
|
|
47
|
-
binaryName: 'gemini',
|
|
48
|
-
installCommand: 'npm install -g @google/gemini-cli',
|
|
49
|
-
authCommand: 'Install Gemini CLI first',
|
|
50
|
-
};
|
|
51
|
-
const gitReady = {
|
|
52
|
-
installed: true,
|
|
53
|
-
version: '2.43.0',
|
|
54
|
-
installCommand: 'sudo apt-get install -y git',
|
|
55
|
-
installUrl: 'https://git-scm.com',
|
|
56
|
-
};
|
|
57
|
-
const gitMissing = {
|
|
58
|
-
installed: false,
|
|
59
|
-
version: null,
|
|
60
|
-
installCommand: 'sudo apt-get install -y git',
|
|
61
|
-
installUrl: 'https://git-scm.com',
|
|
62
|
-
};
|
|
63
|
-
const ghReady = {
|
|
64
|
-
installed: true,
|
|
65
|
-
version: '2.40.1',
|
|
66
|
-
installCommand: 'sudo apt install gh -y',
|
|
67
|
-
installUrl: 'https://cli.github.com',
|
|
68
|
-
};
|
|
69
|
-
const ghMissing = {
|
|
70
|
-
installed: false,
|
|
71
|
-
version: null,
|
|
72
|
-
installCommand: 'sudo apt install gh -y',
|
|
73
|
-
installUrl: 'https://cli.github.com',
|
|
74
|
-
};
|
|
75
|
-
function setMocks(agent, git, gh) {
|
|
76
|
-
return () => {
|
|
77
|
-
const win = globalThis;
|
|
78
|
-
win.__mockAgentAuth = agent;
|
|
79
|
-
win.__mockToolStatus = { git, gh };
|
|
80
|
-
return () => {
|
|
81
|
-
delete win.__mockAgentAuth;
|
|
82
|
-
delete win.__mockToolStatus;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
/** All tools installed — the happy path */
|
|
87
|
-
export const AllToolsReady = {
|
|
15
|
+
/** Prompt-first onboarding — the default view after agent setup */
|
|
16
|
+
export const Default = {
|
|
88
17
|
args: {},
|
|
89
|
-
beforeEach: setMocks(agentReady, gitReady, ghReady),
|
|
90
|
-
};
|
|
91
|
-
/** Git is missing — blocks all workflow phases */
|
|
92
|
-
export const GitMissing = {
|
|
93
|
-
args: {},
|
|
94
|
-
beforeEach: setMocks(agentReady, gitMissing, ghReady),
|
|
95
|
-
};
|
|
96
|
-
/** GitHub CLI is missing — PR features unavailable */
|
|
97
|
-
export const GhCliMissing = {
|
|
98
|
-
args: {},
|
|
99
|
-
beforeEach: setMocks(agentReady, gitReady, ghMissing),
|
|
100
|
-
};
|
|
101
|
-
/** Both git and gh are missing */
|
|
102
|
-
export const BothToolsMissing = {
|
|
103
|
-
args: {},
|
|
104
|
-
beforeEach: setMocks(agentReady, gitMissing, ghMissing),
|
|
105
|
-
};
|
|
106
|
-
/** Claude Code not installed */
|
|
107
|
-
export const ClaudeCodeNotInstalled = {
|
|
108
|
-
args: {},
|
|
109
|
-
beforeEach: setMocks(claudeNotInstalled, gitReady, ghReady),
|
|
110
|
-
};
|
|
111
|
-
/** Cursor CLI not installed */
|
|
112
|
-
export const CursorCliNotInstalled = {
|
|
113
|
-
args: {},
|
|
114
|
-
beforeEach: setMocks(cursorNotInstalled, gitReady, ghReady),
|
|
115
|
-
};
|
|
116
|
-
/** Gemini CLI not installed */
|
|
117
|
-
export const GeminiCliNotInstalled = {
|
|
118
|
-
args: {},
|
|
119
|
-
beforeEach: setMocks(geminiNotInstalled, gitReady, ghReady),
|
|
120
|
-
};
|
|
121
|
-
/** Agent not installed + tools missing — worst case */
|
|
122
|
-
export const EverythingMissing = {
|
|
123
|
-
args: {},
|
|
124
|
-
beforeEach: setMocks(claudeNotInstalled, gitMissing, ghMissing),
|
|
125
18
|
};
|
|
126
19
|
/** With callback — for interaction testing */
|
|
127
20
|
export const WithCallback = {
|
|
@@ -130,5 +23,19 @@ export const WithCallback = {
|
|
|
130
23
|
// eslint-disable-next-line no-console
|
|
131
24
|
console.log('Selected repository:', path);
|
|
132
25
|
},
|
|
26
|
+
onApplicationCreated: (appId) => {
|
|
27
|
+
// eslint-disable-next-line no-console
|
|
28
|
+
console.log('Application created:', appId);
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
/** As overlay — with close button */
|
|
33
|
+
export const AsOverlay = {
|
|
34
|
+
args: {
|
|
35
|
+
onClose: () => {
|
|
36
|
+
// eslint-disable-next-line no-console
|
|
37
|
+
console.log('Close clicked');
|
|
38
|
+
},
|
|
39
|
+
className: 'bg-background',
|
|
133
40
|
},
|
|
134
41
|
};
|
package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAIpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAgC5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAIpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAgC5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CA2iBzF"}
|
package/dist/src/presentation/web/components/features/control-center/control-center-inner.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { useRouter, usePathname } from 'next/navigation';
|
|
5
|
-
import { Sparkles, FolderPlus, Github, GitBranch } from 'lucide-react';
|
|
5
|
+
import { Sparkles, FolderPlus, Github, GitBranch, LayoutGrid } from 'lucide-react';
|
|
6
6
|
import { useReactFlow } from '@xyflow/react';
|
|
7
7
|
import { FeaturesCanvas } from '../../features/features-canvas/index.js';
|
|
8
8
|
import { CanvasToolbar } from '../../features/features-canvas/canvas-toolbar.js';
|
|
@@ -36,7 +36,7 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
36
36
|
const { fitView } = useReactFlow();
|
|
37
37
|
const drawerTimerRef = useRef(null);
|
|
38
38
|
const { defaultViewport, onMoveEnd: handleViewportChange, resetViewport, } = useViewportPersistence();
|
|
39
|
-
const { nodes, edges, onNodesChange, handleConnect, handleAddRepository, handleArchiveFeature, handleDeleteFeature, handleRetryFeature, handleStartFeature, handleStopFeature, handleUnarchiveFeature, handleDeleteRepository, createFeatureNode, showArchived, setShowArchived, setCallbacks, } = useControlCenterState(initialNodes, initialEdges);
|
|
39
|
+
const { nodes, edges, onNodesChange, handleConnect, handleAddRepository, handleArchiveFeature, handleDeleteFeature, handleRetryFeature, handleStartFeature, handleStopFeature, handleUnarchiveFeature, handleDeleteRepository, handleDeleteApplication, createFeatureNode, addApplication, showArchived, setShowArchived, setCallbacks, } = useControlCenterState(initialNodes, initialEdges);
|
|
40
40
|
// Publish sidebar features + repo state to context
|
|
41
41
|
const { setFeatures: setSidebarFeatures, setHasRepositories: setSidebarHasRepos } = useSidebarFeaturesContext();
|
|
42
42
|
const featureNodes = useMemo(() => nodes.filter((n) => n.type === 'featureNode'), [nodes]);
|
|
@@ -73,6 +73,9 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
73
73
|
setSidebarFeatures(sidebarItems);
|
|
74
74
|
}, [sidebarKey, featureNodes, setSidebarFeatures]);
|
|
75
75
|
// ── URL-based navigation handlers ────────────────────────────────────
|
|
76
|
+
const handleApplicationClick = useCallback((applicationId) => {
|
|
77
|
+
guardedNavigate(() => router.push(`/application/${applicationId}`));
|
|
78
|
+
}, [router, guardedNavigate]);
|
|
76
79
|
const handleNodeClick = useCallback((event, node) => {
|
|
77
80
|
if (node.type === 'featureNode') {
|
|
78
81
|
const data = node.data;
|
|
@@ -210,6 +213,23 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
210
213
|
window.addEventListener('shep:feature-created', handler);
|
|
211
214
|
return () => window.removeEventListener('shep:feature-created', handler);
|
|
212
215
|
}, [nodes, createFeatureNode]);
|
|
216
|
+
// Listen for application creation events from the empty state prompt overlay
|
|
217
|
+
useEffect(() => {
|
|
218
|
+
const handler = (e) => {
|
|
219
|
+
const detail = e.detail;
|
|
220
|
+
const appNodeId = `app-${detail.applicationId}`;
|
|
221
|
+
addApplication(appNodeId, {
|
|
222
|
+
id: detail.applicationId,
|
|
223
|
+
name: detail.name,
|
|
224
|
+
description: detail.description ?? '',
|
|
225
|
+
status: detail.status ?? 'Idle',
|
|
226
|
+
repositoryPath: detail.repositoryPath ?? '',
|
|
227
|
+
additionalPathCount: 0,
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
window.addEventListener('shep:application-created', handler);
|
|
231
|
+
return () => window.removeEventListener('shep:application-created', handler);
|
|
232
|
+
}, [addApplication]);
|
|
213
233
|
// Listen for delete requests from the feature drawer (fires when the user
|
|
214
234
|
// confirms delete inside the drawer). Delegates to handleDeleteFeature so
|
|
215
235
|
// the canvas gets optimistic state, mutation guard, and node removal.
|
|
@@ -252,6 +272,8 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
252
272
|
onRepositoryAdd: handleAddFeatureToRepo,
|
|
253
273
|
onRepositoryClick: handleRepositoryClick,
|
|
254
274
|
onRepositoryDelete: handleDeleteRepository,
|
|
275
|
+
onApplicationClick: handleApplicationClick,
|
|
276
|
+
onApplicationDelete: handleDeleteApplication,
|
|
255
277
|
});
|
|
256
278
|
}, [
|
|
257
279
|
setCallbacks,
|
|
@@ -265,6 +287,8 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
265
287
|
handleAddFeatureToRepo,
|
|
266
288
|
handleRepositoryClick,
|
|
267
289
|
handleDeleteRepository,
|
|
290
|
+
handleApplicationClick,
|
|
291
|
+
handleDeleteApplication,
|
|
268
292
|
]);
|
|
269
293
|
const handleMoveEnd = useCallback((_event, viewport) => {
|
|
270
294
|
handleViewportChange(viewport);
|
|
@@ -316,6 +340,8 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
316
340
|
const handlePickFolder = useCallback(() => {
|
|
317
341
|
window.dispatchEvent(new CustomEvent('shep:pick-folder'));
|
|
318
342
|
}, []);
|
|
343
|
+
// ── Full-screen create prompt overlay ────────────────────────────────
|
|
344
|
+
const [showCreatePrompt, setShowCreatePrompt] = useState(false);
|
|
319
345
|
const featureFlags = useFeatureFlags();
|
|
320
346
|
// (+) FAB actions — only visible on control center
|
|
321
347
|
const fabActions = useMemo(() => {
|
|
@@ -335,6 +361,12 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
335
361
|
icon: _jsx(FolderPlus, { className: "h-4 w-4" }),
|
|
336
362
|
onClick: handlePickFolder,
|
|
337
363
|
},
|
|
364
|
+
{
|
|
365
|
+
id: 'new-application',
|
|
366
|
+
label: t('fab.newApplication'),
|
|
367
|
+
icon: _jsx(LayoutGrid, { className: "h-4 w-4" }),
|
|
368
|
+
onClick: () => setShowCreatePrompt(true),
|
|
369
|
+
},
|
|
338
370
|
];
|
|
339
371
|
if (featureFlags.adoptBranch) {
|
|
340
372
|
actions.push({
|
|
@@ -367,7 +399,15 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
|
|
|
367
399
|
featureFlags.githubImport,
|
|
368
400
|
]);
|
|
369
401
|
const canvasToolbar = (_jsx(CanvasToolbar, { showArchived: showArchived, onToggleArchived: () => setShowArchived(!showArchived), onResetViewport: resetViewport }));
|
|
370
|
-
return (_jsxs(_Fragment, { children: [_jsx(FeaturesCanvas, { nodes: showCanvas ? displayNodes : [], edges: showCanvas ? edges : [], selectedFeatureId: selectedFeatureId, selectedRepository: selectedRepository, defaultViewport: defaultViewport, onNodesChange: onNodesChange, onConnect: handleConnect, onAddFeature: handleAddFeature, onNodeClick: handleNodeClick, onPaneClick: handleClearDrawers, onMoveEnd: handleMoveEnd, toolbar: canvasToolbar, emptyState: _jsx(ControlCenterEmptyState, { onRepositorySelect: addRepoAndFocus
|
|
402
|
+
return (_jsxs(_Fragment, { children: [_jsx(FeaturesCanvas, { nodes: showCanvas ? displayNodes : [], edges: showCanvas ? edges : [], selectedFeatureId: selectedFeatureId, selectedRepository: selectedRepository, defaultViewport: defaultViewport, onNodesChange: onNodesChange, onConnect: handleConnect, onAddFeature: handleAddFeature, onNodeClick: handleNodeClick, onPaneClick: handleClearDrawers, onMoveEnd: handleMoveEnd, toolbar: canvasToolbar, emptyState: _jsx(ControlCenterEmptyState, { onRepositorySelect: addRepoAndFocus, onApplicationCreated: (appId, initialPrompt) => {
|
|
403
|
+
router.push(`/application/${appId}?prompt=${encodeURIComponent(initialPrompt)}`);
|
|
404
|
+
} }) }), showCanvas ? _jsx(CreateFab, { actions: fabActions }) : null, showCreatePrompt ? (_jsx("div", { className: "absolute inset-0 z-50", children: _jsx(ControlCenterEmptyState, { onRepositorySelect: (path) => {
|
|
405
|
+
setShowCreatePrompt(false);
|
|
406
|
+
addRepoAndFocus(path);
|
|
407
|
+
}, onApplicationCreated: (appId, initialPrompt) => {
|
|
408
|
+
setShowCreatePrompt(false);
|
|
409
|
+
router.push(`/application/${appId}?prompt=${encodeURIComponent(initialPrompt)}`);
|
|
410
|
+
}, onClose: () => setShowCreatePrompt(false), className: "bg-background" }) })) : null] }));
|
|
371
411
|
}
|
|
372
412
|
/** (+) FAB that tracks sidebar width via CSS var + transition.
|
|
373
413
|
* When fabLayout.swapPosition is true, moves to the end side (right in LTR). */
|