@shepai/cli 1.167.0 → 1.168.0-pr505.7d2bb14
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/FeatureFlags.yaml +5 -0
- package/dist/packages/core/src/application/ports/output/agents/interactive-agent-executor.interface.d.ts +38 -2
- package/dist/packages/core/src/application/ports/output/agents/interactive-agent-executor.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/interactive-session-service.interface.d.ts +16 -1
- package/dist/packages/core/src/application/ports/output/services/interactive-session-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/interactive/index.d.ts +2 -0
- package/dist/packages/core/src/application/use-cases/interactive/index.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/interactive/index.js +1 -0
- package/dist/packages/core/src/application/use-cases/interactive/respond-to-interaction.use-case.d.ts +17 -0
- package/dist/packages/core/src/application/use-cases/interactive/respond-to-interaction.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/interactive/respond-to-interaction.use-case.js +34 -0
- package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.js +6 -2
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -0
- package/dist/packages/core/src/domain/generated/output.d.ts +4 -0
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +5 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.js +11 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +2 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/050-add-feature-flag-inventory.d.ts +11 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/050-add-feature-flag-inventory.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/050-add-feature-flag-inventory.js +17 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts +3 -3
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +3 -3
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +12 -3
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.d.ts +3 -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 +59 -6
- package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.d.ts +7 -0
- package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.js +101 -1
- package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/respond/route.d.ts +19 -0
- package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/respond/route.d.ts.map +1 -0
- package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/respond/route.js +33 -0
- package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.d.ts.map +1 -1
- package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.js +7 -0
- package/dist/src/presentation/web/app/features/feature-tree-page-client.d.ts +7 -0
- package/dist/src/presentation/web/app/features/feature-tree-page-client.d.ts.map +1 -0
- package/dist/src/presentation/web/app/features/feature-tree-page-client.js +13 -0
- package/dist/src/presentation/web/app/features/get-feature-tree-data.d.ts +10 -0
- package/dist/src/presentation/web/app/features/get-feature-tree-data.d.ts.map +1 -0
- package/dist/src/presentation/web/app/features/get-feature-tree-data.js +47 -0
- package/dist/src/presentation/web/app/features/page.d.ts +4 -0
- package/dist/src/presentation/web/app/features/page.d.ts.map +1 -0
- package/dist/src/presentation/web/app/features/page.js +9 -0
- package/dist/src/presentation/web/app/layout.d.ts +0 -1
- package/dist/src/presentation/web/app/layout.d.ts.map +1 -1
- package/dist/src/presentation/web/app/layout.js +0 -1
- package/dist/src/presentation/web/components/assistant-ui/thread.d.ts +3 -2
- package/dist/src/presentation/web/components/assistant-ui/thread.d.ts.map +1 -1
- package/dist/src/presentation/web/components/assistant-ui/thread.js +26 -3
- package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/react-file-manager-dialog/react-file-manager-dialog.js +68 -56
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.stories.js +1 -0
- package/dist/src/presentation/web/components/features/chat/ChatDotIndicator.d.ts +1 -0
- package/dist/src/presentation/web/components/features/chat/ChatDotIndicator.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/chat/ChatDotIndicator.js +7 -1
- package/dist/src/presentation/web/components/features/chat/ChatDotIndicator.stories.d.ts +1 -0
- package/dist/src/presentation/web/components/features/chat/ChatDotIndicator.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/chat/ChatDotIndicator.stories.js +3 -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 +3 -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 -2
- package/dist/src/presentation/web/components/features/chat/InteractionBubble.d.ts +33 -0
- package/dist/src/presentation/web/components/features/chat/InteractionBubble.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/chat/InteractionBubble.js +155 -0
- package/dist/src/presentation/web/components/features/chat/InteractionBubble.stories.d.ts +22 -0
- package/dist/src/presentation/web/components/features/chat/InteractionBubble.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/chat/InteractionBubble.stories.js +107 -0
- package/dist/src/presentation/web/components/features/chat/useChatRuntime.d.ts +16 -0
- package/dist/src/presentation/web/components/features/chat/useChatRuntime.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/chat/useChatRuntime.js +62 -1
- 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 +18 -3
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -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 +1 -1
- package/dist/src/presentation/web/components/features/feature-tree-table/feature-tree-table.d.ts +36 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/feature-tree-table.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/feature-tree-table.js +196 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/feature-tree-table.stories.d.ts +12 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/feature-tree-table.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/feature-tree-table.stories.js +166 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/index.d.ts +3 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/index.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/feature-tree-table/index.js +1 -0
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +3 -0
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +3 -0
- 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 +5 -0
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +1 -0
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.js +1 -0
- package/dist/src/presentation/web/hooks/feature-flags-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/feature-flags-context.js +1 -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 +16 -0
- package/dist/src/presentation/web/hooks/use-turn-statuses.d.ts +1 -1
- package/dist/src/presentation/web/hooks/use-turn-statuses.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-turn-statuses.js +1 -1
- package/dist/src/presentation/web/lib/feature-flags.d.ts +2 -0
- package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/feature-flags.js +5 -0
- package/dist/translations/ar/web.json +3 -0
- package/dist/translations/de/web.json +3 -0
- package/dist/translations/en/web.json +3 -0
- package/dist/translations/es/web.json +3 -0
- package/dist/translations/fr/web.json +3 -0
- package/dist/translations/he/web.json +3 -0
- package/dist/translations/pt/web.json +3 -0
- package/dist/translations/ru/web.json +3 -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 +2 -0
- package/web/.next/build-manifest.json +6 -6
- 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 +14 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/create/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +38 -38
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +38 -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]/[tab]/page/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/chat/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/chat/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/create/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/create/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +38 -38
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +38 -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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/web/.next/server/app/_global-error/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 +7 -7
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
- package/web/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
- package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
- package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route/app-paths-manifest.json +3 -0
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route/build-manifest.json +11 -0
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route/server-reference-manifest.json +4 -0
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route.js +7 -0
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route.js.map +5 -0
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route.js.nft.json +1 -0
- package/web/.next/server/app/api/interactive/chat/[featureId]/respond/route_client-reference-manifest.js +2 -0
- package/web/.next/server/app/features/page/app-paths-manifest.json +3 -0
- package/web/.next/server/app/features/page/build-manifest.json +18 -0
- package/web/.next/server/app/features/page/next-font-manifest.json +6 -0
- package/web/.next/server/app/features/page/react-loadable-manifest.json +1 -0
- package/web/.next/server/app/features/page/server-reference-manifest.json +95 -0
- package/web/.next/server/app/features/page.js +18 -0
- package/web/.next/server/app/features/page.js.map +5 -0
- package/web/.next/server/app/features/page.js.nft.json +1 -0
- package/web/.next/server/app/features/page_client-reference-manifest.js +2 -0
- package/web/.next/server/app/settings/page/build-manifest.json +4 -4
- package/web/.next/server/app/settings/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/settings/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/settings/page.js +1 -1
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/build-manifest.json +4 -4
- package/web/.next/server/app/skills/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/skills/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/skills/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/tools/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/tools/page.js +1 -1
- 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/build-manifest.json +4 -4
- package/web/.next/server/app/version/page/react-loadable-manifest.json +1 -8
- package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
- 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 +2 -0
- package/web/.next/server/chunks/8ba4b_server_app_api_interactive_chat_[featureId]_respond_route_actions_990d51bd.js +3 -0
- package/web/.next/server/chunks/8ba4b_server_app_api_interactive_chat_[featureId]_respond_route_actions_990d51bd.js.map +1 -0
- package/web/.next/server/chunks/[root-of-the-server]__31944fa2._.js +3 -0
- package/web/.next/server/chunks/[root-of-the-server]__31944fa2._.js.map +1 -0
- package/web/.next/server/chunks/[root-of-the-server]__8a281f8d._.js +9 -3
- package/web/.next/server/chunks/[root-of-the-server]__8a281f8d._.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]__c78383b1._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08c912ab._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__08c912ab._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__b062b383._.js → [root-of-the-server]__0c5452c3._.js} +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0c5452c3._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__20a36a42._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__20a36a42._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4fb81977._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4fb81977._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__dffa13c5._.js → [root-of-the-server]__69dd3217._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__dffa13c5._.js.map → [root-of-the-server]__69dd3217._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7dcd0917._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7dcd0917._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1abe77bb._.js → [root-of-the-server]__7ffd3598._.js} +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7ffd3598._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__248ee887._.js → [root-of-the-server]__851f6adb._.js} +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__851f6adb._.js.map +1 -0
- 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]__7562afc6._.js → [root-of-the-server]__b020c17d._.js} +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b020c17d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba7f5873._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba7f5873._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c5e09f6f._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c5e09f6f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__8b0aac03._.js → [root-of-the-server]__e88da4ee._.js} +3 -3
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__8b0aac03._.js.map → [root-of-the-server]__e88da4ee._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_0020fddd._.js +1 -1
- package/web/.next/server/chunks/ssr/_0020fddd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_a5913a26._.js → _004b47fc._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_a5913a26._.js.map → _004b47fc._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_02e01240._.js +1 -1
- package/web/.next/server/chunks/ssr/_02e01240._.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/_0727935d._.js +1 -1
- package/web/.next/server/chunks/ssr/_0727935d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0dc06d07._.js +1 -1
- package/web/.next/server/chunks/ssr/_0dc06d07._.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/_18886033._.js +1 -1
- package/web/.next/server/chunks/ssr/_18886033._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1e08a336._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_22e00a14._.js +1 -1
- package/web/.next/server/chunks/ssr/_22e00a14._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_4a4709c5._.js +4 -0
- package/web/.next/server/chunks/ssr/_4a4709c5._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_4cbb7f95._.js +3 -0
- package/web/.next/server/chunks/ssr/_4cbb7f95._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_5119a3df._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_560f2971._.js +3 -0
- package/web/.next/server/chunks/ssr/_560f2971._.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/{_b4c3ffcc._.js → _58902d92._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_b4c3ffcc._.js.map → _58902d92._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_506a3bc3._.js → _682fc996._.js} +2 -2
- package/web/.next/server/chunks/ssr/_682fc996._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_6892e3b9._.js +3 -0
- package/web/.next/server/chunks/ssr/_6892e3b9._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a1068852._.js +3 -0
- package/web/.next/server/chunks/ssr/_a1068852._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a5a5901d._.js +1 -1
- package/web/.next/server/chunks/ssr/_a5a5901d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_ad09f271._.js +1 -1
- package/web/.next/server/chunks/ssr/_ad09f271._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_b4a9122d._.js +3 -0
- package/web/.next/server/chunks/ssr/_b4a9122d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_c3f595c6._.js +1 -1
- package/web/.next/server/chunks/ssr/_c3f595c6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_ea9e1556._.js +1 -1
- package/web/.next/server/chunks/ssr/_ea9e1556._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f1ba9be6._.js +2 -2
- package/web/.next/server/chunks/ssr/_f1ba9be6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f33cd07e._.js +2 -2
- package/web/.next/server/chunks/ssr/_f33cd07e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f535d854._.js +3 -0
- package/web/.next/server/chunks/ssr/_f535d854._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f8b45233._.js +1 -1
- package/web/.next/server/chunks/ssr/_f8b45233._.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/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/node_modules__pnpm_12a7ede0._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_12a7ede0._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_features_feature-tree-page-client_tsx_34c5cbbf._.js +10 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_app_features_feature-tree-page-client_tsx_34c5cbbf._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_page-header_index_ts_bdf4db0b._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_page-header_index_ts_bdf4db0b._.js.map +1 -0
- 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_ui_select_tsx_45d6b8ae._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_select_tsx_45d6b8ae._.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/middleware-build-manifest.js +4 -4
- 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 +90 -48
- package/web/.next/static/chunks/{fe70e73feb07bcfd.js → 08ec4c9ab61717aa.js} +1 -1
- package/web/.next/static/chunks/{dedf6ca63c5468fa.js → 09edd35d194bec06.js} +3 -3
- package/web/.next/static/chunks/{d4d8f0a137bd2eb4.js → 12803afee7d0afc8.js} +2 -2
- package/web/.next/static/chunks/20f7cc98a013b11c.js +1 -0
- package/web/.next/static/chunks/2f711373a93c5bc3.css +1 -0
- package/web/.next/static/chunks/{8866edda931a81c2.js → 352c5cb6ed572dc3.js} +1 -1
- package/web/.next/static/chunks/3e393d6a78b2ade4.js +1 -0
- package/web/.next/static/chunks/41b4082b079b3ede.js +1 -0
- package/web/.next/static/chunks/4cec255f2754e5ec.js +1 -0
- package/web/.next/static/chunks/5a36922f56850850.js +1 -0
- package/web/.next/static/chunks/5b7275374d2696b3.css +1 -0
- package/web/.next/static/chunks/5ed47e998707b519.js +8 -0
- package/web/.next/static/chunks/647140fe96a7c88a.js +1 -0
- package/web/.next/static/chunks/6d6f70ff5151b8cb.js +7 -0
- package/web/.next/static/chunks/7bbbe3273230d2a1.js +3 -0
- package/web/.next/static/chunks/{7a7d7e71cf9b5a4e.js → 890a772551fc3962.js} +1 -1
- package/web/.next/static/chunks/982aef195c118996.js +1 -0
- package/web/.next/static/chunks/{d6a1facd04a52af5.js → a830880e642a6e01.js} +3 -3
- package/web/.next/static/chunks/c3ef3b892f7794ec.js +1 -0
- package/web/.next/static/chunks/c625deec577681f7.js +1 -0
- package/web/.next/static/chunks/dadf5909b2f15985.js +1 -0
- package/web/.next/static/chunks/dc134f3f58cdf850.js +5 -0
- package/web/.next/static/chunks/e137a48b35703673.js +1 -0
- package/web/.next/static/chunks/{3f404f608aebc7bb.js → e26afac86ed33fa7.js} +1 -1
- package/web/.next/static/chunks/f48af05c1bdb8aec.js +1 -0
- package/web/.next/static/chunks/f998b42b5cddafd6.js +1 -0
- package/web/.next/static/chunks/{d7eebb5c0aa9e101.js → fac6bac55da705ea.js} +1 -1
- package/web/.next/static/chunks/fb9d76d30fa8f790.js +1 -0
- package/web/.next/static/chunks/{turbopack-432ef324fc27240c.js → turbopack-57bb0674e2cd1d31.js} +1 -1
- package/web/package.json +2 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1abe77bb._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__248ee887._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2d0c3840._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2d0c3840._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7562afc6._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b062b383._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_3bcda5d7._.js +0 -3
- package/web/.next/server/chunks/ssr/_3bcda5d7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_4d49a312._.js +0 -3
- package/web/.next/server/chunks/ssr/_4d49a312._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_506a3bc3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_5ab8e97d._.js +0 -3
- package/web/.next/server/chunks/ssr/_5ab8e97d._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9215e9ec._.js +0 -3
- package/web/.next/server/chunks/ssr/_9215e9ec._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_b5fc318a._.js +0 -3
- package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_1300ae39._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_1300ae39._.js.map +0 -1
- package/web/.next/static/chunks/0be57768a211221a.js +0 -1
- package/web/.next/static/chunks/16eea21868510afd.js +0 -5
- package/web/.next/static/chunks/3208dc997aaee4d3.css +0 -1
- package/web/.next/static/chunks/3deefc76ea55047c.js +0 -1
- package/web/.next/static/chunks/40b6bcf1a2de4a0f.js +0 -1
- package/web/.next/static/chunks/420eb8b33d83c4cb.js +0 -1
- package/web/.next/static/chunks/63b0ad1dbc27a5d0.js +0 -1
- package/web/.next/static/chunks/65440524d7ee7d13.js +0 -1
- package/web/.next/static/chunks/672e3da3ad26005b.js +0 -1
- package/web/.next/static/chunks/6c634b447a6a0db8.js +0 -7
- package/web/.next/static/chunks/6d7b999c99d6d175.js +0 -9
- package/web/.next/static/chunks/6eb32cd5d2795a7c.js +0 -1
- package/web/.next/static/chunks/7f4d1ec4e9f921a3.js +0 -1
- package/web/.next/static/chunks/8180973e9cd6a99e.css +0 -1
- package/web/.next/static/chunks/c0e13e7d1601bc5d.js +0 -1
- package/web/.next/static/chunks/c7e793951b20a67f.js +0 -1
- package/web/.next/static/chunks/da6d0839a24602eb.js +0 -3
- package/web/.next/static/chunks/db3bf9eb0b519bae.js +0 -1
- /package/web/.next/static/{JjjyVzk5ESdcMWkH6999z → 9dnSGRS5_ITgOmM09PgwP}/_buildManifest.js +0 -0
- /package/web/.next/static/{JjjyVzk5ESdcMWkH6999z → 9dnSGRS5_ITgOmM09PgwP}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{JjjyVzk5ESdcMWkH6999z → 9dnSGRS5_ITgOmM09PgwP}/_ssgManifest.js +0 -0
|
@@ -66,11 +66,14 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
66
66
|
approval_gate_allow_merge, approval_gate_push_on_impl_complete,
|
|
67
67
|
feature_flag_skills, feature_flag_env_deploy, feature_flag_debug, feature_flag_github_import, feature_flag_adopt_branch, feature_flag_git_rebase_sync,
|
|
68
68
|
feature_flag_react_file_manager,
|
|
69
|
+
feature_flag_inventory,
|
|
69
70
|
workflow_enable_evidence, workflow_commit_evidence,
|
|
70
71
|
hide_ci_status, default_fast_mode,
|
|
71
72
|
interactive_agent_enabled, interactive_agent_auto_timeout_minutes,
|
|
72
73
|
interactive_agent_max_concurrent_sessions,
|
|
73
|
-
auto_archive_delay_minutes
|
|
74
|
+
auto_archive_delay_minutes,
|
|
75
|
+
stage_timeout_fast_implement_ms,
|
|
76
|
+
fab_position_swapped
|
|
74
77
|
) VALUES (
|
|
75
78
|
@id, @created_at, @updated_at,
|
|
76
79
|
@model_analyze, @model_requirements, @model_plan, @model_implement, @model_default,
|
|
@@ -95,11 +98,14 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
95
98
|
@approval_gate_allow_merge, @approval_gate_push_on_impl_complete,
|
|
96
99
|
@feature_flag_skills, @feature_flag_env_deploy, @feature_flag_debug, @feature_flag_github_import, @feature_flag_adopt_branch, @feature_flag_git_rebase_sync,
|
|
97
100
|
@feature_flag_react_file_manager,
|
|
101
|
+
@feature_flag_inventory,
|
|
98
102
|
@workflow_enable_evidence, @workflow_commit_evidence,
|
|
99
103
|
@hide_ci_status, @default_fast_mode,
|
|
100
104
|
@interactive_agent_enabled, @interactive_agent_auto_timeout_minutes,
|
|
101
105
|
@interactive_agent_max_concurrent_sessions,
|
|
102
|
-
@auto_archive_delay_minutes
|
|
106
|
+
@auto_archive_delay_minutes,
|
|
107
|
+
@stage_timeout_fast_implement_ms,
|
|
108
|
+
@fab_position_swapped
|
|
103
109
|
)
|
|
104
110
|
`);
|
|
105
111
|
// Execute with named parameters (safe from SQL injection)
|
|
@@ -195,6 +201,7 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
195
201
|
feature_flag_adopt_branch = @feature_flag_adopt_branch,
|
|
196
202
|
feature_flag_git_rebase_sync = @feature_flag_git_rebase_sync,
|
|
197
203
|
feature_flag_react_file_manager = @feature_flag_react_file_manager,
|
|
204
|
+
feature_flag_inventory = @feature_flag_inventory,
|
|
198
205
|
workflow_enable_evidence = @workflow_enable_evidence,
|
|
199
206
|
workflow_commit_evidence = @workflow_commit_evidence,
|
|
200
207
|
hide_ci_status = @hide_ci_status,
|
|
@@ -202,7 +209,9 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
202
209
|
interactive_agent_enabled = @interactive_agent_enabled,
|
|
203
210
|
interactive_agent_auto_timeout_minutes = @interactive_agent_auto_timeout_minutes,
|
|
204
211
|
interactive_agent_max_concurrent_sessions = @interactive_agent_max_concurrent_sessions,
|
|
205
|
-
auto_archive_delay_minutes = @auto_archive_delay_minutes
|
|
212
|
+
auto_archive_delay_minutes = @auto_archive_delay_minutes,
|
|
213
|
+
stage_timeout_fast_implement_ms = @stage_timeout_fast_implement_ms,
|
|
214
|
+
fab_position_swapped = @fab_position_swapped
|
|
206
215
|
WHERE id = @id
|
|
207
216
|
`);
|
|
208
217
|
// Execute with named parameters (safe from SQL injection)
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
* errors when shep itself is running inside a Claude Code session.
|
|
33
33
|
* - SDK message types are mapped to our own InteractiveAgentEvent to
|
|
34
34
|
* keep the application layer decoupled from SDK specifics.
|
|
35
|
+
* - AskUserQuestion is intercepted via the SDK's `canUseTool` callback,
|
|
36
|
+
* which pauses the stream until the user responds. The callback delegates
|
|
37
|
+
* to the `onUserQuestion` option provided by the session service.
|
|
35
38
|
*/
|
|
36
39
|
import type { IInteractiveAgentExecutor, InteractiveAgentOptions, InteractiveAgentSessionHandle } from '../../../../../application/ports/output/agents/interactive-agent-executor.interface.js';
|
|
37
40
|
export declare class ClaudeCodeInteractiveExecutor implements IInteractiveAgentExecutor {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-interactive-executor.service.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"claude-code-interactive-executor.service.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAOH,OAAO,KAAK,EACV,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAI9B,MAAM,wFAAwF,CAAC;AAgBhG,qBAAa,6BAA8B,YAAW,yBAAyB;IACvE,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,6BAA6B,CAAC;IAOvF,aAAa,CACjB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;OAMG;IACH,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,eAAe;IAgDvB,OAAO,CAAC,WAAW;IAqCnB;;;;;;OAMG;YACY,SAAS;IA6BxB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,aAAa;CA4PtB"}
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
* errors when shep itself is running inside a Claude Code session.
|
|
33
33
|
* - SDK message types are mapped to our own InteractiveAgentEvent to
|
|
34
34
|
* keep the application layer decoupled from SDK specifics.
|
|
35
|
+
* - AskUserQuestion is intercepted via the SDK's `canUseTool` callback,
|
|
36
|
+
* which pauses the stream until the user responds. The callback delegates
|
|
37
|
+
* to the `onUserQuestion` option provided by the session service.
|
|
35
38
|
*/
|
|
36
39
|
import { unstable_v2_createSession, unstable_v2_resumeSession, } from '@anthropic-ai/claude-agent-sdk';
|
|
37
40
|
/** Default model used when options.model is not specified. */
|
|
@@ -83,9 +86,37 @@ export class ClaudeCodeInteractiveExecutor {
|
|
|
83
86
|
buildSdkOptions(options) {
|
|
84
87
|
// Strip CLAUDECODE env var to prevent nested-session detection errors.
|
|
85
88
|
const { CLAUDECODE: _, ...cleanEnv } = process.env;
|
|
89
|
+
// Build the canUseTool callback that intercepts AskUserQuestion.
|
|
90
|
+
// When the agent calls AskUserQuestion, this callback:
|
|
91
|
+
// 1. Delegates to onUserQuestion (which notifies the UI and waits for user response)
|
|
92
|
+
// 2. Returns { behavior: 'allow', updatedInput } with the user's answers injected
|
|
93
|
+
// 3. The SDK passes the updated input to AskUserQuestion, which sees pre-filled answers
|
|
94
|
+
//
|
|
95
|
+
// For ALL other tools: auto-allow (same effect as bypassPermissions).
|
|
96
|
+
const canUseTool = options.onUserQuestion
|
|
97
|
+
? async (toolName, input, opts) => {
|
|
98
|
+
if (toolName === 'AskUserQuestion') {
|
|
99
|
+
const questions = input.questions ?? [];
|
|
100
|
+
const answers = await options.onUserQuestion({
|
|
101
|
+
toolCallId: opts.toolUseID,
|
|
102
|
+
questions,
|
|
103
|
+
});
|
|
104
|
+
// Inject answers into the tool input so the SDK treats it as already answered
|
|
105
|
+
return {
|
|
106
|
+
behavior: 'allow',
|
|
107
|
+
updatedInput: { ...input, answers },
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
// Auto-allow all other tools
|
|
111
|
+
return { behavior: 'allow' };
|
|
112
|
+
}
|
|
113
|
+
: undefined;
|
|
86
114
|
return {
|
|
87
115
|
model: options.model ?? DEFAULT_MODEL,
|
|
88
|
-
|
|
116
|
+
// When onUserQuestion is provided, use canUseTool to intercept AskUserQuestion
|
|
117
|
+
// while auto-allowing everything else (replaces bypassPermissions).
|
|
118
|
+
// When not provided, use bypassPermissions for backward compatibility.
|
|
119
|
+
...(canUseTool ? { canUseTool } : { permissionMode: 'bypassPermissions' }),
|
|
89
120
|
env: cleanEnv,
|
|
90
121
|
// Forward system prompt using preset+append pattern
|
|
91
122
|
...(options.systemPrompt && {
|
|
@@ -106,6 +137,22 @@ export class ClaudeCodeInteractiveExecutor {
|
|
|
106
137
|
return resolvedSessionId;
|
|
107
138
|
},
|
|
108
139
|
send: (message) => sdkSession.send(message),
|
|
140
|
+
sendToolResult: (toolResult) => sdkSession.send({
|
|
141
|
+
type: 'user',
|
|
142
|
+
session_id: sdkSession.sessionId,
|
|
143
|
+
parent_tool_use_id: toolResult.toolCallId,
|
|
144
|
+
tool_use_result: toolResult.result,
|
|
145
|
+
message: {
|
|
146
|
+
role: 'user',
|
|
147
|
+
content: [
|
|
148
|
+
{
|
|
149
|
+
type: 'tool_result',
|
|
150
|
+
tool_use_id: toolResult.toolCallId,
|
|
151
|
+
content: JSON.stringify(toolResult.result),
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
}),
|
|
109
156
|
stream: () => this.mapStream(sdkSession, (id) => (resolvedSessionId = id)),
|
|
110
157
|
close: async () => sdkSession.close(),
|
|
111
158
|
abort: () => {
|
|
@@ -189,11 +236,17 @@ export class ClaudeCodeInteractiveExecutor {
|
|
|
189
236
|
}
|
|
190
237
|
}
|
|
191
238
|
else if (block.type === 'tool_use') {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
239
|
+
// AskUserQuestion is handled by canUseTool callback — don't emit as tool_use
|
|
240
|
+
if (block.name === 'AskUserQuestion') {
|
|
241
|
+
// Silently skip — the canUseTool callback already handled this
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
events.push({
|
|
245
|
+
type: 'tool_use',
|
|
246
|
+
label: block.name,
|
|
247
|
+
detail: JSON.stringify(block.input ?? {}),
|
|
248
|
+
});
|
|
249
|
+
}
|
|
197
250
|
}
|
|
198
251
|
}
|
|
199
252
|
}
|
package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ export declare class InteractiveSessionService implements IInteractiveSessionSer
|
|
|
75
75
|
markRead(featureId: string): Promise<void>;
|
|
76
76
|
getTurnStatuses(featureIds: string[]): Promise<Map<string, string>>;
|
|
77
77
|
getAllActiveTurnStatuses(): Promise<Map<string, string>>;
|
|
78
|
+
respondToInteraction(featureId: string, answers: Record<string, string>): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Build the onUserQuestion callback for a session.
|
|
81
|
+
* Called by the SDK's canUseTool when the agent invokes AskUserQuestion.
|
|
82
|
+
* Returns a Promise that doesn't resolve until the user submits their answers.
|
|
83
|
+
*/
|
|
84
|
+
private buildOnUserQuestionCallback;
|
|
78
85
|
/** Find the in-memory state for an active session for a feature. */
|
|
79
86
|
private findActiveStateForFeature;
|
|
80
87
|
/** Resolve the agent type from an explicit override or settings. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive-session.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/interactive/interactive-session.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EACV,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,SAAS,EACV,MAAM,qFAAqF,CAAC;AAC7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4FAA4F,CAAC;AAChJ,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4FAA4F,CAAC;AAChJ,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8EAA8E,CAAC;
|
|
1
|
+
{"version":3,"file":"interactive-session.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/interactive/interactive-session.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EACV,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,SAAS,EACV,MAAM,qFAAqF,CAAC;AAC7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4FAA4F,CAAC;AAChJ,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4FAA4F,CAAC;AAChJ,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8EAA8E,CAAC;AAK1H,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gFAAgF,CAAC;AACzH,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AASlG,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AA8C1E;;;;;;;;;;;;;;GAcG;AACH,qBAAa,yBAA0B,YAAW,0BAA0B;IAexE,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAlBjC,0CAA0C;IAC1C,OAAO,CAAC,QAAQ,CAAmC;IACnD,wEAAwE;IACxE,OAAO,CAAC,sBAAsB,CAA6B;IAC3D;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB,CAAwD;gBAG/D,WAAW,EAAE,6BAA6B,EAC1C,WAAW,EAAE,6BAA6B,EAC1C,eAAe,EAAE,qBAAqB,EACtC,WAAW,EAAE,kBAAkB,EAC/B,cAAc,EAAE,qBAAqB;IAOlD,YAAY,CAChB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC;IAqE9B;;;;;OAKG;YACW,iBAAiB;IAsRzB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0C7C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAuClF;;OAEG;YACW,qBAAqB;IAgQ7B,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI7E,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW/C,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAIvE,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,aAAa;IAc5E,eAAe,CACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC;IA2ExB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAsFzD,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,aAAa;IAkBrF,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM/C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAc1C,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAInE,wBAAwB,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAIxD,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA2C7F;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAiDnC,oEAAoE;IACpE,OAAO,CAAC,yBAAyB;IAWjC,oEAAoE;IACpE,OAAO,CAAC,gBAAgB;IAUxB,mEAAmE;IACnE,OAAO,CAAC,iBAAiB;IAezB;;;OAGG;YACW,gBAAgB;IA0B9B;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAYd,6DAA6D;IAC7D,OAAO,CAAC,UAAU;IAQlB,2CAA2C;IAC3C,OAAO,CAAC,UAAU;IAOlB,mEAAmE;IACnE,OAAO,CAAC,YAAY;IAOpB,6EAA6E;IAC7E,OAAO,CAAC,MAAM;CAKf"}
|
package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.js
CHANGED
|
@@ -80,6 +80,8 @@ export class InteractiveSessionService {
|
|
|
80
80
|
updatedAt: now,
|
|
81
81
|
};
|
|
82
82
|
await this.sessionRepo.create(session);
|
|
83
|
+
// Mark as processing immediately so the FAB shows the spinner during boot
|
|
84
|
+
void this.sessionRepo.updateTurnStatus(session.id, 'processing');
|
|
83
85
|
// Carry over agentSessionId from previous session so resumption works
|
|
84
86
|
let previousAgentSessionId;
|
|
85
87
|
for (const [, s] of this.sessions) {
|
|
@@ -113,6 +115,8 @@ export class InteractiveSessionService {
|
|
|
113
115
|
subscribers: new Set(),
|
|
114
116
|
turnInProgress: false,
|
|
115
117
|
turnQueue: [],
|
|
118
|
+
pendingInteraction: null,
|
|
119
|
+
pendingInteractionResolver: null,
|
|
116
120
|
};
|
|
117
121
|
this.sessions.set(session.id, state);
|
|
118
122
|
// Fire-and-forget the async boot sequence. The API returns the session
|
|
@@ -189,6 +193,9 @@ export class InteractiveSessionService {
|
|
|
189
193
|
// Create the interactive executor and session
|
|
190
194
|
const executor = this.executorFactory.createInteractiveExecutor(resolvedAgentType, authConfig);
|
|
191
195
|
let handle;
|
|
196
|
+
// Build the onUserQuestion callback that pauses the SDK stream
|
|
197
|
+
// and waits for user input via the UI.
|
|
198
|
+
const onUserQuestion = this.buildOnUserQuestionCallback(state);
|
|
192
199
|
const previousAgentSessionId = state.agentSessionId;
|
|
193
200
|
if (previousAgentSessionId) {
|
|
194
201
|
// Resume existing SDK session
|
|
@@ -196,6 +203,7 @@ export class InteractiveSessionService {
|
|
|
196
203
|
cwd: worktreePath,
|
|
197
204
|
model: state.model,
|
|
198
205
|
systemPrompt: context,
|
|
206
|
+
onUserQuestion,
|
|
199
207
|
});
|
|
200
208
|
}
|
|
201
209
|
else {
|
|
@@ -204,6 +212,7 @@ export class InteractiveSessionService {
|
|
|
204
212
|
cwd: worktreePath,
|
|
205
213
|
model: state.model,
|
|
206
214
|
systemPrompt: context,
|
|
215
|
+
onUserQuestion,
|
|
207
216
|
});
|
|
208
217
|
}
|
|
209
218
|
state.handle = handle;
|
|
@@ -585,6 +594,12 @@ export class InteractiveSessionService {
|
|
|
585
594
|
});
|
|
586
595
|
}
|
|
587
596
|
break;
|
|
597
|
+
case 'user_question':
|
|
598
|
+
// AskUserQuestion is now handled by the canUseTool callback
|
|
599
|
+
// (buildOnUserQuestionCallback) which pauses the SDK stream.
|
|
600
|
+
// This event should not appear in the stream anymore, but if it
|
|
601
|
+
// does (e.g. from a different code path), ignore it here.
|
|
602
|
+
break;
|
|
588
603
|
}
|
|
589
604
|
}
|
|
590
605
|
}
|
|
@@ -819,7 +834,9 @@ export class InteractiveSessionService {
|
|
|
819
834
|
turnStatus = statuses.get(featureId) ?? 'idle';
|
|
820
835
|
}
|
|
821
836
|
}
|
|
822
|
-
|
|
837
|
+
// Include pending interaction if one exists
|
|
838
|
+
const pendingInteraction = state?.pendingInteraction ?? null;
|
|
839
|
+
return { messages, sessionStatus, streamingText, sessionInfo, turnStatus, pendingInteraction };
|
|
823
840
|
}
|
|
824
841
|
subscribeByFeature(featureId, onChunk) {
|
|
825
842
|
// Subscribe at the feature level so the callback survives session restarts.
|
|
@@ -863,6 +880,89 @@ export class InteractiveSessionService {
|
|
|
863
880
|
async getAllActiveTurnStatuses() {
|
|
864
881
|
return this.sessionRepo.getAllActiveTurnStatuses();
|
|
865
882
|
}
|
|
883
|
+
async respondToInteraction(featureId, answers) {
|
|
884
|
+
const state = this.findActiveStateForFeature(featureId);
|
|
885
|
+
if (!state?.pendingInteraction || !state.pendingInteractionResolver) {
|
|
886
|
+
throw new Error(`No pending interaction for feature ${featureId}`);
|
|
887
|
+
}
|
|
888
|
+
// Persist the user's answers as a structured user message.
|
|
889
|
+
// The {{interaction}} prefix lets the frontend detect and render it
|
|
890
|
+
// as a compact green bubble instead of a regular text message.
|
|
891
|
+
const interactionPayload = {
|
|
892
|
+
questions: state.pendingInteraction.questions.map((q) => ({
|
|
893
|
+
header: q.header,
|
|
894
|
+
question: q.question,
|
|
895
|
+
})),
|
|
896
|
+
answers,
|
|
897
|
+
};
|
|
898
|
+
const now = new Date();
|
|
899
|
+
const userMsg = {
|
|
900
|
+
id: crypto.randomUUID(),
|
|
901
|
+
featureId: state.featureId,
|
|
902
|
+
sessionId: state.sessionId,
|
|
903
|
+
role: InteractiveMessageRole.user,
|
|
904
|
+
content: `{{interaction}}${JSON.stringify(interactionPayload)}`,
|
|
905
|
+
createdAt: now,
|
|
906
|
+
updatedAt: now,
|
|
907
|
+
};
|
|
908
|
+
await this.messageRepo.create(userMsg);
|
|
909
|
+
// Resolve the Promise that the canUseTool callback is awaiting.
|
|
910
|
+
// This unblocks the SDK stream — the agent resumes with the user's answers.
|
|
911
|
+
state.pendingInteractionResolver(answers);
|
|
912
|
+
// Clear pending interaction state
|
|
913
|
+
state.pendingInteraction = null;
|
|
914
|
+
state.pendingInteractionResolver = null;
|
|
915
|
+
// Update turn status back to processing
|
|
916
|
+
void this.sessionRepo.updateTurnStatus(state.sessionId, 'processing');
|
|
917
|
+
// Clear the "Waiting for your response..." log
|
|
918
|
+
state.subscribers.forEach((sub) => sub({ delta: '', done: false }));
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Build the onUserQuestion callback for a session.
|
|
922
|
+
* Called by the SDK's canUseTool when the agent invokes AskUserQuestion.
|
|
923
|
+
* Returns a Promise that doesn't resolve until the user submits their answers.
|
|
924
|
+
*/
|
|
925
|
+
buildOnUserQuestionCallback(state) {
|
|
926
|
+
return async (interaction) => {
|
|
927
|
+
// Flush any accumulated assistant text as a separate message BEFORE
|
|
928
|
+
// the interaction. This ensures the agent's question text appears
|
|
929
|
+
// above the green answer bubble in the conversation history.
|
|
930
|
+
if (state.currentAssistantBuffer.trim()) {
|
|
931
|
+
const now = new Date();
|
|
932
|
+
const msg = {
|
|
933
|
+
id: crypto.randomUUID(),
|
|
934
|
+
featureId: state.featureId,
|
|
935
|
+
sessionId: state.sessionId,
|
|
936
|
+
role: InteractiveMessageRole.assistant,
|
|
937
|
+
content: state.currentAssistantBuffer,
|
|
938
|
+
createdAt: now,
|
|
939
|
+
updatedAt: now,
|
|
940
|
+
};
|
|
941
|
+
await this.messageRepo.create(msg);
|
|
942
|
+
state.currentAssistantBuffer = '';
|
|
943
|
+
state.toolEventsLog = [];
|
|
944
|
+
// Notify subscribers so the frontend picks up the new message
|
|
945
|
+
state.subscribers.forEach((sub) => sub({ delta: '', done: true }));
|
|
946
|
+
// Small delay so the refetch completes before the interaction appears
|
|
947
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
948
|
+
}
|
|
949
|
+
// Store the interaction data for the frontend
|
|
950
|
+
state.pendingInteraction = interaction;
|
|
951
|
+
// Update turn status so the dot indicator shows amber
|
|
952
|
+
void this.sessionRepo.updateTurnStatus(state.sessionId, 'awaiting_input');
|
|
953
|
+
// Notify subscribers so SSE pushes the interaction to the frontend
|
|
954
|
+
state.subscribers.forEach((sub) => sub({
|
|
955
|
+
delta: '',
|
|
956
|
+
done: false,
|
|
957
|
+
log: 'Waiting for your response...',
|
|
958
|
+
interaction,
|
|
959
|
+
}));
|
|
960
|
+
// Create a Promise that will be resolved when the user calls respondToInteraction
|
|
961
|
+
return new Promise((resolve) => {
|
|
962
|
+
state.pendingInteractionResolver = resolve;
|
|
963
|
+
});
|
|
964
|
+
};
|
|
965
|
+
}
|
|
866
966
|
/** Find the in-memory state for an active session for a feature. */
|
|
867
967
|
findActiveStateForFeature(featureId) {
|
|
868
968
|
for (const state of this.sessions.values()) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respond to a pending agent interaction (AskUserQuestion).
|
|
3
|
+
*
|
|
4
|
+
* POST - Submit user's answers to the pending interaction.
|
|
5
|
+
* The agent resumes processing after receiving the response.
|
|
6
|
+
*
|
|
7
|
+
* `featureId` is a polymorphic scope key: a feature UUID, "repo-<id>", or "global".
|
|
8
|
+
*/
|
|
9
|
+
import type { NextRequest } from 'next/server';
|
|
10
|
+
import { NextResponse } from 'next/server';
|
|
11
|
+
export declare const dynamic = "force-dynamic";
|
|
12
|
+
interface RouteParams {
|
|
13
|
+
params: Promise<{
|
|
14
|
+
featureId: string;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
export declare function POST(request: NextRequest, { params }: RouteParams): Promise<NextResponse>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/interactive/chat/[featureId]/respond/route.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAAsB,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAyB/F"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respond to a pending agent interaction (AskUserQuestion).
|
|
3
|
+
*
|
|
4
|
+
* POST - Submit user's answers to the pending interaction.
|
|
5
|
+
* The agent resumes processing after receiving the response.
|
|
6
|
+
*
|
|
7
|
+
* `featureId` is a polymorphic scope key: a feature UUID, "repo-<id>", or "global".
|
|
8
|
+
*/
|
|
9
|
+
import { NextResponse } from 'next/server';
|
|
10
|
+
import { resolve } from '../../../../../../lib/server-container.js';
|
|
11
|
+
export const dynamic = 'force-dynamic';
|
|
12
|
+
export async function POST(request, { params }) {
|
|
13
|
+
try {
|
|
14
|
+
const { featureId } = await params;
|
|
15
|
+
const body = (await request.json());
|
|
16
|
+
if (!body.answers || typeof body.answers !== 'object') {
|
|
17
|
+
return NextResponse.json({ error: 'answers must be a non-empty object' }, { status: 400 });
|
|
18
|
+
}
|
|
19
|
+
const useCase = resolve('RespondToInteractionUseCase');
|
|
20
|
+
await useCase.execute({
|
|
21
|
+
featureId,
|
|
22
|
+
answers: body.answers,
|
|
23
|
+
});
|
|
24
|
+
return NextResponse.json({ ok: true });
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
28
|
+
const status = message.includes('No pending interaction') ? 409 : 500;
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.error('[POST /api/interactive/chat/:featureId/respond]', error);
|
|
31
|
+
return NextResponse.json({ error: message }, { status });
|
|
32
|
+
}
|
|
33
|
+
}
|
package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAoF1F"}
|
|
@@ -38,6 +38,13 @@ export async function GET(request, { params }) {
|
|
|
38
38
|
if (chunk.done) {
|
|
39
39
|
enqueue(`event: done\ndata: ${JSON.stringify({ done: true, featureId })}\n\n`);
|
|
40
40
|
}
|
|
41
|
+
else if (chunk.interaction) {
|
|
42
|
+
// Agent is asking the user a question — emit interaction event
|
|
43
|
+
enqueue(`event: interaction\ndata: ${JSON.stringify({ interaction: chunk.interaction, featureId })}\n\n`);
|
|
44
|
+
if (chunk.log) {
|
|
45
|
+
enqueue(`event: log\ndata: ${JSON.stringify({ log: chunk.log, featureId })}\n\n`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
41
48
|
else if (chunk.activity) {
|
|
42
49
|
enqueue(`event: activity\ndata: ${JSON.stringify({ activity: chunk.activity, featureId })}\n\n`);
|
|
43
50
|
// Also send log for the status indicator
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FeatureTreeRow, InventoryRepo } from '../../components/features/feature-tree-table/index.js';
|
|
2
|
+
export interface FeatureTreePageClientProps {
|
|
3
|
+
features: FeatureTreeRow[];
|
|
4
|
+
repos: InventoryRepo[];
|
|
5
|
+
}
|
|
6
|
+
export declare function FeatureTreePageClient({ features, repos }: FeatureTreePageClientProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=feature-tree-page-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-tree-page-client.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/features/feature-tree-page-client.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAG9F,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,0BAA0B,2CAkBpF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useRouter } from 'next/navigation';
|
|
4
|
+
import { useCallback } from 'react';
|
|
5
|
+
import { FeatureTreeTable } from '../../components/features/feature-tree-table/index.js';
|
|
6
|
+
import { PageHeader } from '../../components/common/page-header/index.js';
|
|
7
|
+
export function FeatureTreePageClient({ features, repos }) {
|
|
8
|
+
const router = useRouter();
|
|
9
|
+
const handleFeatureClick = useCallback((featureId) => {
|
|
10
|
+
router.push(`/feature/${featureId}/overview`);
|
|
11
|
+
}, [router]);
|
|
12
|
+
return (_jsxs("div", { "data-testid": "feature-tree-page", className: "flex h-full flex-col gap-4", children: [_jsx(PageHeader, { title: "Inventory", description: "All repositories and features" }), _jsx("div", { className: "min-h-0 flex-1", children: _jsx(FeatureTreeTable, { data: features, repos: repos, onFeatureClick: handleFeatureClick }) })] }));
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FeatureTreeRow } from '../../components/features/feature-tree-table/index.js';
|
|
2
|
+
export interface InventoryRepo {
|
|
3
|
+
name: string;
|
|
4
|
+
remoteUrl?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function getFeatureTreeData(): Promise<{
|
|
7
|
+
features: FeatureTreeRow[];
|
|
8
|
+
repos: InventoryRepo[];
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=get-feature-tree-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-feature-tree-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/features/get-feature-tree-data.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAI/E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,wBAAsB,kBAAkB,IAAI,OAAO,CAAC;IAClD,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC,CAgCD"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { resolve } from '../../lib/server-container.js';
|
|
2
|
+
import { SdlcLifecycle } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
3
|
+
const LIFECYCLE_TO_STATUS = {
|
|
4
|
+
[SdlcLifecycle.Started]: 'pending',
|
|
5
|
+
[SdlcLifecycle.Analyze]: 'in-progress',
|
|
6
|
+
[SdlcLifecycle.Requirements]: 'action-needed',
|
|
7
|
+
[SdlcLifecycle.Research]: 'in-progress',
|
|
8
|
+
[SdlcLifecycle.Planning]: 'in-progress',
|
|
9
|
+
[SdlcLifecycle.Implementation]: 'in-progress',
|
|
10
|
+
[SdlcLifecycle.Review]: 'action-needed',
|
|
11
|
+
[SdlcLifecycle.Maintain]: 'done',
|
|
12
|
+
[SdlcLifecycle.Blocked]: 'blocked',
|
|
13
|
+
[SdlcLifecycle.Pending]: 'pending',
|
|
14
|
+
[SdlcLifecycle.Deleting]: 'blocked',
|
|
15
|
+
[SdlcLifecycle.AwaitingUpstream]: 'action-needed',
|
|
16
|
+
[SdlcLifecycle.Archived]: 'done',
|
|
17
|
+
};
|
|
18
|
+
function lifecycleToStatus(lifecycle) {
|
|
19
|
+
return LIFECYCLE_TO_STATUS[lifecycle] ?? 'pending';
|
|
20
|
+
}
|
|
21
|
+
export async function getFeatureTreeData() {
|
|
22
|
+
const listFeatures = resolve('ListFeaturesUseCase');
|
|
23
|
+
const listRepos = resolve('ListRepositoriesUseCase');
|
|
24
|
+
const [features, repositories] = await Promise.all([listFeatures.execute(), listRepos.execute()]);
|
|
25
|
+
const repoByPath = new Map();
|
|
26
|
+
for (const repo of repositories) {
|
|
27
|
+
repoByPath.set(repo.path, { name: repo.name, remoteUrl: repo.remoteUrl });
|
|
28
|
+
}
|
|
29
|
+
const featureRows = features.map((feature) => {
|
|
30
|
+
const repo = repoByPath.get(feature.repositoryPath);
|
|
31
|
+
return {
|
|
32
|
+
id: feature.id,
|
|
33
|
+
name: feature.name,
|
|
34
|
+
status: lifecycleToStatus(feature.lifecycle),
|
|
35
|
+
lifecycle: feature.lifecycle,
|
|
36
|
+
branch: feature.branch,
|
|
37
|
+
repositoryName: repo?.name ?? feature.repositoryPath.split('/').pop() ?? feature.repositoryPath,
|
|
38
|
+
remoteUrl: repo?.remoteUrl,
|
|
39
|
+
parentId: feature.parentId ?? undefined,
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
const repos = repositories.map((repo) => ({
|
|
43
|
+
name: repo.name,
|
|
44
|
+
remoteUrl: repo.remoteUrl,
|
|
45
|
+
}));
|
|
46
|
+
return { features: featureRows, repos };
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/features/page.tsx"],"names":[],"mappings":"AAGA,uFAAuF;AACvF,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,wBAA8B,YAAY,qDAQzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FeatureTreePageClient } from './feature-tree-page-client.js';
|
|
3
|
+
import { getFeatureTreeData } from './get-feature-tree-data.js';
|
|
4
|
+
/** Skip static pre-rendering since we need runtime DI container and server context. */
|
|
5
|
+
export const dynamic = 'force-dynamic';
|
|
6
|
+
export default async function FeaturesPage() {
|
|
7
|
+
const { features, repos } = await getFeatureTreeData();
|
|
8
|
+
return (_jsx("div", { className: "features-page-dotted-bg flex h-full flex-col p-6", children: _jsx(FeatureTreePageClient, { features: features, repos: repos }) }));
|
|
9
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Metadata } from 'next';
|
|
2
2
|
import '@xyflow/react/dist/base.css';
|
|
3
|
-
import '@cubone/react-file-manager/dist/style.css';
|
|
4
3
|
import './globals.css';
|
|
5
4
|
/** Force dynamic rendering for all pages since they depend on client-side context. */
|
|
6
5
|
export declare const dynamic = "force-dynamic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,6BAA6B,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,6BAA6B,CAAC;AACrC,OAAO,eAAe,CAAC;AAWvB,sFAAsF;AACtF,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAkBtB,CAAC;AAEF,wBAA8B,UAAU,CAAC,EACvC,QAAQ,GACT,EAAE,QAAQ,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,oDA6BD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cookies } from 'next/headers';
|
|
3
3
|
import '@xyflow/react/dist/base.css';
|
|
4
|
-
import '@cubone/react-file-manager/dist/style.css';
|
|
5
4
|
import './globals.css';
|
|
6
5
|
import { AppShell } from '../components/layouts/app-shell/index.js';
|
|
7
6
|
import { Toaster } from '../components/ui/sonner.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare function Thread({ className,
|
|
1
|
+
export declare function Thread({ className, afterMessages, composer, }: {
|
|
2
2
|
className?: string;
|
|
3
|
-
|
|
3
|
+
/** Content rendered inside the scrollable viewport, after messages (e.g. interaction bubbles). */
|
|
4
|
+
afterMessages?: React.ReactNode;
|
|
4
5
|
composer?: React.ReactNode;
|
|
5
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/assistant-ui/thread.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/assistant-ui/thread.tsx"],"names":[],"mappings":"AAwFA,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,aAAa,EACb,QAAQ,GACT,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kGAAkG;IAClG,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAqBA"}
|