@shepai/cli 1.136.0-pr396.e077930 → 1.136.0-pr440.bb6800a
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/Feature.yaml +3 -0
- package/apis/json-schema/FeatureFlags.yaml +0 -5
- package/apis/json-schema/SdlcLifecycle.yaml +1 -0
- package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts +2 -0
- package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +5 -91
- package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.js +4 -6
- package/dist/packages/core/src/application/use-cases/features/archive-feature.use-case.d.ts +20 -0
- package/dist/packages/core/src/application/use-cases/features/archive-feature.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/archive-feature.use-case.js +74 -0
- package/dist/packages/core/src/application/use-cases/features/unarchive-feature.use-case.d.ts +20 -0
- package/dist/packages/core/src/application/use-cases/features/unarchive-feature.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/unarchive-feature.use-case.js +65 -0
- 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 +0 -1
- package/dist/packages/core/src/domain/generated/output.d.ts +6 -5
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +1 -0
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +10 -20
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.js +6 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +0 -2
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.d.ts +12 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.js +16 -0
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.js +7 -2
- 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 +2 -3
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +0 -10
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +0 -150
- package/dist/src/presentation/cli/commands/feat/archive.command.d.ts +18 -0
- package/dist/src/presentation/cli/commands/feat/archive.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/archive.command.js +54 -0
- package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/index.js +5 -1
- package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/ls.command.js +5 -0
- package/dist/src/presentation/cli/commands/feat/unarchive.command.d.ts +17 -0
- package/dist/src/presentation/cli/commands/feat/unarchive.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/unarchive.command.js +42 -0
- 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 +18 -6
- package/dist/src/presentation/web/app/actions/archive-feature.d.ts +6 -0
- package/dist/src/presentation/web/app/actions/archive-feature.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/archive-feature.js +16 -0
- package/dist/src/presentation/web/app/actions/unarchive-feature.d.ts +6 -0
- package/dist/src/presentation/web/app/actions/unarchive-feature.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/unarchive-feature.js +16 -0
- package/dist/src/presentation/web/app/api/agent-events/route.d.ts.map +1 -1
- package/dist/src/presentation/web/app/api/agent-events/route.js +1 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +1 -16
- package/dist/src/presentation/web/components/common/control-center-drawer/repository-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/repository-drawer-client.js +4 -4
- package/dist/src/presentation/web/components/common/feature-drawer/use-feature-actions.d.ts +0 -4
- package/dist/src/presentation/web/components/common/feature-drawer/use-feature-actions.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer/use-feature-actions.js +1 -32
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +0 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts +1 -9
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +2 -2
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts +1 -9
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +2 -3
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts +0 -6
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.js +0 -30
- package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.js +6 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +3 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.js +11 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +16 -2
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +5 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +75 -1
- package/dist/src/presentation/web/components/common/open-action-menu/open-action-menu.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/open-action-menu/open-action-menu.stories.js +0 -3
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.js +3 -5
- package/dist/src/presentation/web/components/common/repository-node/repository-node.js +1 -1
- package/dist/src/presentation/web/components/common/repository-node/use-repository-actions.d.ts +0 -4
- package/dist/src/presentation/web/components/common/repository-node/use-repository-actions.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/use-repository-actions.js +0 -11
- 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 +13 -4
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts +6 -0
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center.stories.js +70 -0
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +6 -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 +43 -2
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +0 -3
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +0 -3
- package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.js +0 -5
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +0 -1
- package/dist/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 +0 -1
- package/dist/src/presentation/web/hooks/feature-flags-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/feature-flags-context.js +0 -1
- package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/sidebar-features-context.js +1 -0
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.js +17 -2
- package/dist/src/presentation/web/lib/derive-graph.d.ts +4 -0
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +12 -0
- package/dist/src/presentation/web/lib/feature-flags.d.ts +0 -2
- package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/feature-flags.js +0 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +80 -65
- 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/create/page/server-reference-manifest.json +80 -65
- 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/server-reference-manifest.json +92 -107
- 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/server-reference-manifest.json +92 -107
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +76 -61
- 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)/create/page/server-reference-manifest.json +80 -65
- 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/server-reference-manifest.json +92 -107
- 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/server-reference-manifest.json +92 -107
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +76 -61
- 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]/page/server-reference-manifest.json +76 -61
- 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.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 +3 -3
- 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/settings/page/server-reference-manifest.json +8 -8
- 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 +8 -8
- 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 +8 -8
- 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 +3 -3
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- 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/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js +2 -2
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.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]__c6e32a23._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.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_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/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3ef34e4c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__61564698._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__61564698._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6ec59045._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6ec59045._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__74ab160c._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__74ab160c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5f9c6e5._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5f9c6e5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3dbadca._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3dbadca._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__bd16cded._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__bd16cded._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f14fffe1._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f14fffe1._.js.map +1 -0
- 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/_02ec1aea._.js +1 -1
- package/web/.next/server/chunks/ssr/_02ec1aea._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_149f6559._.js → _2fdfd9ab._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_149f6559._.js.map → _2fdfd9ab._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_36059d08._.js +4 -0
- package/web/.next/server/chunks/ssr/_36059d08._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_48a8ee28._.js → _65f6e0e0._.js} +3 -3
- package/web/.next/server/chunks/ssr/{_6e8c85b1._.js.map → _65f6e0e0._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_7dca1882._.js +1 -1
- package/web/.next/server/chunks/ssr/_7dca1882._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_913fb649._.js +3 -0
- package/web/.next/server/chunks/ssr/_913fb649._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a37f5f18._.js +1 -1
- package/web/.next/server/chunks/ssr/_a37f5f18._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_1a09002f._.js → _a51673dd._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_1a09002f._.js.map → _a51673dd._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_a9f57758._.js +1 -1
- package/web/.next/server/chunks/ssr/{_939287c5._.js → _ae587066._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_939287c5._.js.map → _ae587066._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_83220ba0._.js → _d162e30d._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_83220ba0._.js.map → _d162e30d._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_6e8c85b1._.js → _d763f022._.js} +3 -3
- package/web/.next/server/chunks/ssr/{_48a8ee28._.js.map → _d763f022._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f39a1adb._.js +1 -1
- package/web/.next/server/chunks/ssr/_f39a1adb._.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 +3 -0
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_28f803bd._.js → src_presentation_web_97dc2fb0._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_28f803bd._.js.map → src_presentation_web_97dc2fb0._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
- 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_actions_open-ide_ts_baaca5d5._.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_e599bb8c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.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/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +463 -457
- package/web/.next/static/chunks/{f070c67389a686ff.js → 0b7fe2ac4f078f54.js} +1 -1
- package/web/.next/static/chunks/{aa2236a4b7c3bd45.js → 2d6eb4409cc6324d.js} +1 -1
- package/web/.next/static/chunks/{20a66a7159b97299.js → 3a7ff215d6a2c489.js} +2 -2
- package/web/.next/static/chunks/{5f67ffe1879b8536.js → 4b3e7454c2b07877.js} +1 -1
- package/web/.next/static/chunks/{f010c3293515ab73.js → 791e64500a080d4f.js} +1 -1
- package/web/.next/static/chunks/79c9871d46b22bf8.css +1 -0
- package/web/.next/static/chunks/7ee0606f698b032c.js +1 -0
- package/web/.next/static/chunks/87640f53f3bff3a6.js +1 -0
- package/web/.next/static/chunks/{6bfc9e17e141ac36.js → bb5bd1b5aafc70cd.js} +1 -1
- package/web/.next/static/chunks/{9db1dd8ad063626c.js → bf0a401666f990e2.js} +1 -1
- package/web/.next/static/chunks/c4c3fcf18262b386.js +2 -0
- package/web/.next/static/chunks/{4148e7a319ea7ec4.js → cd14232b3d8f5052.js} +1 -1
- package/web/.next/static/chunks/d0dff217a94d4ee1.js +1 -0
- package/web/.next/static/chunks/{ed248df9e975fd1f.js → dd8f2197640aea64.js} +1 -1
- package/web/.next/static/chunks/eb9841ec4d80af01.js +1 -0
- package/web/.next/static/chunks/{eeec829933170d8a.js → fc442d957b35bd5e.js} +1 -1
- package/dist/packages/core/src/application/use-cases/features/get-branch-sync-status.use-case.d.ts +0 -25
- package/dist/packages/core/src/application/use-cases/features/get-branch-sync-status.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/features/get-branch-sync-status.use-case.js +0 -62
- package/dist/packages/core/src/application/use-cases/features/rebase-feature-on-main.use-case.d.ts +0 -34
- package/dist/packages/core/src/application/use-cases/features/rebase-feature-on-main.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/features/rebase-feature-on-main.use-case.js +0 -139
- package/dist/packages/core/src/application/use-cases/repositories/sync-repository-main.use-case.d.ts +0 -16
- package/dist/packages/core/src/application/use-cases/repositories/sync-repository-main.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/repositories/sync-repository-main.use-case.js +0 -43
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/042-add-feature-flag-git-rebase-sync.d.ts +0 -11
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/042-add-feature-flag-git-rebase-sync.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/042-add-feature-flag-git-rebase-sync.js +0 -17
- package/dist/packages/core/src/infrastructure/services/agents/conflict-resolution/conflict-resolution.prompt.d.ts +0 -35
- package/dist/packages/core/src/infrastructure/services/agents/conflict-resolution/conflict-resolution.prompt.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/agents/conflict-resolution/conflict-resolution.prompt.js +0 -66
- package/dist/packages/core/src/infrastructure/services/agents/conflict-resolution/conflict-resolution.service.d.ts +0 -42
- package/dist/packages/core/src/infrastructure/services/agents/conflict-resolution/conflict-resolution.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/agents/conflict-resolution/conflict-resolution.service.js +0 -169
- package/dist/src/presentation/web/app/actions/get-branch-sync-status.d.ts +0 -11
- package/dist/src/presentation/web/app/actions/get-branch-sync-status.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/get-branch-sync-status.js +0 -22
- package/dist/src/presentation/web/app/actions/rebase-feature.d.ts +0 -5
- package/dist/src/presentation/web/app/actions/rebase-feature.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/rebase-feature.js +0 -16
- package/dist/src/presentation/web/app/actions/sync-repository.d.ts +0 -5
- package/dist/src/presentation/web/app/actions/sync-repository.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/sync-repository.js +0 -16
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.d.ts +0 -12
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.js +0 -13
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.stories.d.ts +0 -15
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.stories.js +0 -86
- package/dist/src/presentation/web/hooks/use-branch-sync-status.d.ts +0 -14
- package/dist/src/presentation/web/hooks/use-branch-sync-status.d.ts.map +0 -1
- package/dist/src/presentation/web/hooks/use-branch-sync-status.js +0 -67
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1626f5d7._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1626f5d7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__49557873._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__49557873._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__90fdc0ee._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__90fdc0ee._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a7259d16._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a7259d16._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cb850066._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cb850066._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_13f3c0ec._.js +0 -4
- package/web/.next/server/chunks/ssr/_13f3c0ec._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_51ed80a4._.js +0 -3
- package/web/.next/server/chunks/ssr/_51ed80a4._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_cfbd1d7e._.js +0 -3
- package/web/.next/server/chunks/ssr/_cfbd1d7e._.js.map +0 -1
- package/web/.next/static/chunks/031e65a4305571f7.js +0 -1
- package/web/.next/static/chunks/132d824e337f12fe.js +0 -2
- package/web/.next/static/chunks/6a370f2709c81d83.js +0 -1
- package/web/.next/static/chunks/ab3afb0b942c1eb2.css +0 -1
- package/web/.next/static/chunks/b3cc94a1e319bee8.js +0 -1
- package/web/.next/static/chunks/f66c996402a430f5.js +0 -1
- /package/web/.next/static/{8o0yazCw1kyy56LNhgtTp → JaRBeVSDLWZLQIl_k7ChK}/_buildManifest.js +0 -0
- /package/web/.next/static/{8o0yazCw1kyy56LNhgtTp → JaRBeVSDLWZLQIl_k7ChK}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{8o0yazCw1kyy56LNhgtTp → JaRBeVSDLWZLQIl_k7ChK}/_ssgManifest.js +0 -0
|
@@ -83,11 +83,9 @@ import { ListGitHubRepositoriesUseCase } from '../../application/use-cases/repos
|
|
|
83
83
|
import { CheckAndUnblockFeaturesUseCase } from '../../application/use-cases/features/check-and-unblock-features.use-case.js';
|
|
84
84
|
import { UpdateFeatureLifecycleUseCase } from '../../application/use-cases/features/update/update-feature-lifecycle.use-case.js';
|
|
85
85
|
import { CleanupFeatureWorktreeUseCase } from '../../application/use-cases/features/cleanup-feature-worktree.use-case.js';
|
|
86
|
+
import { ArchiveFeatureUseCase } from '../../application/use-cases/features/archive-feature.use-case.js';
|
|
87
|
+
import { UnarchiveFeatureUseCase } from '../../application/use-cases/features/unarchive-feature.use-case.js';
|
|
86
88
|
import { UpgradeCliUseCase } from '../../application/use-cases/upgrade/upgrade-cli.use-case.js';
|
|
87
|
-
import { SyncRepositoryMainUseCase } from '../../application/use-cases/repositories/sync-repository-main.use-case.js';
|
|
88
|
-
import { RebaseFeatureOnMainUseCase } from '../../application/use-cases/features/rebase-feature-on-main.use-case.js';
|
|
89
|
-
import { GetBranchSyncStatusUseCase } from '../../application/use-cases/features/get-branch-sync-status.use-case.js';
|
|
90
|
-
import { ConflictResolutionService } from '../services/agents/conflict-resolution/conflict-resolution.service.js';
|
|
91
89
|
// Session listing
|
|
92
90
|
import { ClaudeCodeSessionRepository } from '../services/agents/sessions/claude-code-session.repository.js';
|
|
93
91
|
import { StubSessionRepository } from '../services/agents/sessions/stub-session.repository.js';
|
|
@@ -308,14 +306,9 @@ export async function initializeContainer() {
|
|
|
308
306
|
container.registerSingleton(CheckAndUnblockFeaturesUseCase);
|
|
309
307
|
container.registerSingleton(UpdateFeatureLifecycleUseCase);
|
|
310
308
|
container.registerSingleton(CleanupFeatureWorktreeUseCase);
|
|
309
|
+
container.registerSingleton(ArchiveFeatureUseCase);
|
|
310
|
+
container.registerSingleton(UnarchiveFeatureUseCase);
|
|
311
311
|
container.registerSingleton(UpgradeCliUseCase);
|
|
312
|
-
container.registerSingleton(ConflictResolutionService);
|
|
313
|
-
container.register('ConflictResolutionService', {
|
|
314
|
-
useFactory: (c) => c.resolve(ConflictResolutionService),
|
|
315
|
-
});
|
|
316
|
-
container.registerSingleton(SyncRepositoryMainUseCase);
|
|
317
|
-
container.registerSingleton(RebaseFeatureOnMainUseCase);
|
|
318
|
-
container.registerSingleton(GetBranchSyncStatusUseCase);
|
|
319
312
|
// Session repositories (per-AgentType string tokens)
|
|
320
313
|
container.register(`IAgentSessionRepository:${AgentType.ClaudeCode}`, {
|
|
321
314
|
useFactory: () => new ClaudeCodeSessionRepository(),
|
|
@@ -412,17 +405,14 @@ export async function initializeContainer() {
|
|
|
412
405
|
container.register('CleanupFeatureWorktreeUseCase', {
|
|
413
406
|
useFactory: (c) => c.resolve(CleanupFeatureWorktreeUseCase),
|
|
414
407
|
});
|
|
415
|
-
container.register('
|
|
416
|
-
useFactory: (c) => c.resolve(
|
|
417
|
-
});
|
|
418
|
-
container.register('SyncRepositoryMainUseCase', {
|
|
419
|
-
useFactory: (c) => c.resolve(SyncRepositoryMainUseCase),
|
|
408
|
+
container.register('ArchiveFeatureUseCase', {
|
|
409
|
+
useFactory: (c) => c.resolve(ArchiveFeatureUseCase),
|
|
420
410
|
});
|
|
421
|
-
container.register('
|
|
422
|
-
useFactory: (c) => c.resolve(
|
|
411
|
+
container.register('UnarchiveFeatureUseCase', {
|
|
412
|
+
useFactory: (c) => c.resolve(UnarchiveFeatureUseCase),
|
|
423
413
|
});
|
|
424
|
-
container.register('
|
|
425
|
-
useFactory: (c) => c.resolve(
|
|
414
|
+
container.register('UpgradeCliUseCase', {
|
|
415
|
+
useFactory: (c) => c.resolve(UpgradeCliUseCase),
|
|
426
416
|
});
|
|
427
417
|
_initialized = true;
|
|
428
418
|
return container;
|
package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAGtE;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"feature.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC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UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAkDvD;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAsDrD"}
|
|
@@ -58,6 +58,8 @@ export function toDatabase(feature) {
|
|
|
58
58
|
pr_mergeable: feature.pr?.mergeable !== undefined ? (feature.pr.mergeable ? 1 : 0) : null,
|
|
59
59
|
// Feature dependency
|
|
60
60
|
parent_id: feature.parentId ?? null,
|
|
61
|
+
// Archive state
|
|
62
|
+
previous_lifecycle: feature.previousLifecycle ?? null,
|
|
61
63
|
// User attachments
|
|
62
64
|
attachments: JSON.stringify((feature.attachments ?? []).map((a) => ({ ...a, size: Number(a.size) }))),
|
|
63
65
|
// Soft delete
|
|
@@ -118,6 +120,10 @@ export function fromDatabase(row) {
|
|
|
118
120
|
}),
|
|
119
121
|
// Feature dependency
|
|
120
122
|
...(row.parent_id != null && { parentId: row.parent_id }),
|
|
123
|
+
// Archive state
|
|
124
|
+
...(row.previous_lifecycle != null && {
|
|
125
|
+
previousLifecycle: row.previous_lifecycle,
|
|
126
|
+
}),
|
|
121
127
|
// User attachments
|
|
122
128
|
attachments: JSON.parse(row.attachments ?? '[]'),
|
|
123
129
|
// Soft delete
|
package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAQvE;;;GAGG;AACH,MAAM,WAAW,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,CAAC;IACnC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IAGzB,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,6BAA6B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtC,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAC;IAG/C,mBAAmB,EAAE,MAAM,CAAC;IAG5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,mCAAmC,EAAE,MAAM,CAAC;IAG5C,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;IAGvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B,EAAE,MAAM,CAAC;IACnC,yBAAyB,EAAE,MAAM,CAAC;IAClC
|
|
1
|
+
{"version":3,"file":"settings.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAQvE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAE1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IAInB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC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IAAI,CAAC;IAC7C,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtC,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAC;IAG/C,mBAAmB,EAAE,MAAM,CAAC;IAG5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,mCAAmC,EAAE,MAAM,CAAC;IAG5C,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;IAGvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B,EAAE,MAAM,CAAC;IACnC,yBAAyB,EAAE,MAAM,CAAC;IAClC,+BAA+B,EAAE,MAAM,CAAC;CACzC;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,CAgG1D;AAsCD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,GAAG,QAAQ,CA4FvD"}
|
|
@@ -95,7 +95,6 @@ export function toDatabase(settings) {
|
|
|
95
95
|
feature_flag_debug: settings.featureFlags?.debug ? 1 : 0,
|
|
96
96
|
feature_flag_github_import: settings.featureFlags?.githubImport ? 1 : 0,
|
|
97
97
|
feature_flag_adopt_branch: settings.featureFlags?.adoptBranch ? 1 : 0,
|
|
98
|
-
feature_flag_git_rebase_sync: settings.featureFlags?.gitRebaseSync ? 1 : 0,
|
|
99
98
|
feature_flag_react_file_manager: settings.featureFlags?.reactFileManager ? 1 : 0,
|
|
100
99
|
};
|
|
101
100
|
}
|
|
@@ -217,7 +216,6 @@ export function fromDatabase(row) {
|
|
|
217
216
|
debug: row.feature_flag_debug === 1,
|
|
218
217
|
githubImport: row.feature_flag_github_import === 1,
|
|
219
218
|
adoptBranch: row.feature_flag_adopt_branch === 1,
|
|
220
|
-
gitRebaseSync: row.feature_flag_git_rebase_sync === 1,
|
|
221
219
|
reactFileManager: row.feature_flag_react_file_manager === 1,
|
|
222
220
|
},
|
|
223
221
|
// Onboarding (INTEGER → boolean)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 044: Add previous_lifecycle column to features table.
|
|
3
|
+
*
|
|
4
|
+
* Stores the lifecycle state prior to archiving so it can be restored
|
|
5
|
+
* when a feature is unarchived. Nullable TEXT — only populated when
|
|
6
|
+
* the feature lifecycle is Archived.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationParams } from 'umzug';
|
|
9
|
+
import type Database from 'better-sqlite3';
|
|
10
|
+
export declare function up({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
11
|
+
export declare function down({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=044-add-previous-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"044-add-previous-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-previous-lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,wBAAsB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAK3F;AAED,wBAAsB,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 044: Add previous_lifecycle column to features table.
|
|
3
|
+
*
|
|
4
|
+
* Stores the lifecycle state prior to archiving so it can be restored
|
|
5
|
+
* when a feature is unarchived. Nullable TEXT — only populated when
|
|
6
|
+
* the feature lifecycle is Archived.
|
|
7
|
+
*/
|
|
8
|
+
export async function up({ context: db }) {
|
|
9
|
+
const columns = db.pragma('table_info(features)');
|
|
10
|
+
if (!columns.some((c) => c.name === 'previous_lifecycle')) {
|
|
11
|
+
db.exec('ALTER TABLE features ADD COLUMN previous_lifecycle TEXT');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export async function down({ context: db }) {
|
|
15
|
+
void db;
|
|
16
|
+
}
|
package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-feature.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-feature.repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6EAA6E,CAAC;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAOhE;;;GAGG;AACH,qBACa,uBAAwB,YAAW,kBAAkB;IACpD,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAE5C,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BvC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAW7C,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAcvD,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAazE,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAa7E,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"sqlite-feature.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-feature.repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6EAA6E,CAAC;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAOhE;;;GAGG;AACH,qBACa,uBAAwB,YAAW,kBAAkB;IACpD,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAE5C,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BvC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAW7C,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAcvD,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAazE,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAa7E,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA8BtD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAQpD,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CvC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKjC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK5C"}
|
|
@@ -36,7 +36,7 @@ let SQLiteFeatureRepository = class SQLiteFeatureRepository {
|
|
|
36
36
|
push, open_pr, auto_merge, allow_prd, allow_plan, allow_merge,
|
|
37
37
|
pr_url, pr_number, pr_status, commit_hash, ci_status,
|
|
38
38
|
ci_fix_attempts, ci_fix_history, pr_mergeable,
|
|
39
|
-
parent_id,
|
|
39
|
+
parent_id, previous_lifecycle,
|
|
40
40
|
created_at, updated_at
|
|
41
41
|
) VALUES (
|
|
42
42
|
@id, @name, @slug, @description, @user_query, @repository_path, @branch,
|
|
@@ -46,7 +46,7 @@ let SQLiteFeatureRepository = class SQLiteFeatureRepository {
|
|
|
46
46
|
@push, @open_pr, @auto_merge, @allow_prd, @allow_plan, @allow_merge,
|
|
47
47
|
@pr_url, @pr_number, @pr_status, @commit_hash, @ci_status,
|
|
48
48
|
@ci_fix_attempts, @ci_fix_history, @pr_mergeable,
|
|
49
|
-
@parent_id,
|
|
49
|
+
@parent_id, @previous_lifecycle,
|
|
50
50
|
@created_at, @updated_at
|
|
51
51
|
)
|
|
52
52
|
`);
|
|
@@ -92,6 +92,10 @@ let SQLiteFeatureRepository = class SQLiteFeatureRepository {
|
|
|
92
92
|
if (!filters?.includeDeleted) {
|
|
93
93
|
conditions.push('deleted_at IS NULL');
|
|
94
94
|
}
|
|
95
|
+
if (!filters?.includeArchived && !filters?.lifecycle) {
|
|
96
|
+
conditions.push('lifecycle != ?');
|
|
97
|
+
params.push('Archived');
|
|
98
|
+
}
|
|
95
99
|
if (filters?.repositoryPath) {
|
|
96
100
|
conditions.push("REPLACE(repository_path, '\\', '/') = ?");
|
|
97
101
|
params.push(filters.repositoryPath.replace(/\\/g, '/'));
|
|
@@ -142,6 +146,7 @@ let SQLiteFeatureRepository = class SQLiteFeatureRepository {
|
|
|
142
146
|
ci_fix_history = @ci_fix_history,
|
|
143
147
|
pr_mergeable = @pr_mergeable,
|
|
144
148
|
parent_id = @parent_id,
|
|
149
|
+
previous_lifecycle = @previous_lifecycle,
|
|
145
150
|
deleted_at = @deleted_at,
|
|
146
151
|
updated_at = @updated_at
|
|
147
152
|
WHERE id = @id
|
package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-settings.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-settings.repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8EAA8E,CAAC;AACxH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAOjE;;;GAGG;AACH,qBACa,wBAAyB,YAAW,mBAAmB;IACtD,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAElD;;;;;;OAMG;IACG,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAuEnD;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAgBtC;;;;;OAKG;IACG,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"sqlite-settings.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-settings.repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8EAA8E,CAAC;AACxH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAOjE;;;GAGG;AACH,qBACa,wBAAyB,YAAW,mBAAmB;IACtD,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAElD;;;;;;OAMG;IACG,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAuEnD;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAgBtC;;;;;OAKG;IACG,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAiFhD"}
|
|
@@ -64,7 +64,7 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
64
64
|
onboarding_complete,
|
|
65
65
|
approval_gate_allow_prd, approval_gate_allow_plan,
|
|
66
66
|
approval_gate_allow_merge, approval_gate_push_on_impl_complete,
|
|
67
|
-
feature_flag_skills, feature_flag_env_deploy, feature_flag_debug, feature_flag_github_import, feature_flag_adopt_branch,
|
|
67
|
+
feature_flag_skills, feature_flag_env_deploy, feature_flag_debug, feature_flag_github_import, feature_flag_adopt_branch,
|
|
68
68
|
feature_flag_react_file_manager,
|
|
69
69
|
workflow_enable_evidence, workflow_commit_evidence,
|
|
70
70
|
hide_ci_status
|
|
@@ -90,7 +90,7 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
90
90
|
@onboarding_complete,
|
|
91
91
|
@approval_gate_allow_prd, @approval_gate_allow_plan,
|
|
92
92
|
@approval_gate_allow_merge, @approval_gate_push_on_impl_complete,
|
|
93
|
-
@feature_flag_skills, @feature_flag_env_deploy, @feature_flag_debug, @feature_flag_github_import, @feature_flag_adopt_branch,
|
|
93
|
+
@feature_flag_skills, @feature_flag_env_deploy, @feature_flag_debug, @feature_flag_github_import, @feature_flag_adopt_branch,
|
|
94
94
|
@feature_flag_react_file_manager,
|
|
95
95
|
@workflow_enable_evidence, @workflow_commit_evidence,
|
|
96
96
|
@hide_ci_status
|
|
@@ -186,7 +186,6 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
186
186
|
feature_flag_debug = @feature_flag_debug,
|
|
187
187
|
feature_flag_github_import = @feature_flag_github_import,
|
|
188
188
|
feature_flag_adopt_branch = @feature_flag_adopt_branch,
|
|
189
|
-
feature_flag_git_rebase_sync = @feature_flag_git_rebase_sync,
|
|
190
189
|
feature_flag_react_file_manager = @feature_flag_react_file_manager,
|
|
191
190
|
workflow_enable_evidence = @workflow_enable_evidence,
|
|
192
191
|
workflow_commit_evidence = @workflow_commit_evidence,
|
|
@@ -45,15 +45,5 @@ export declare class GitPrService implements IGitPrService {
|
|
|
45
45
|
private parseGhError;
|
|
46
46
|
private parsePrNumberFromUrl;
|
|
47
47
|
private parseDiffStat;
|
|
48
|
-
syncMain(cwd: string, baseBranch: string): Promise<void>;
|
|
49
|
-
rebaseOnMain(cwd: string, featureBranch: string, baseBranch: string): Promise<void>;
|
|
50
|
-
getConflictedFiles(cwd: string): Promise<string[]>;
|
|
51
|
-
stageFiles(cwd: string, files: string[]): Promise<void>;
|
|
52
|
-
rebaseContinue(cwd: string): Promise<void>;
|
|
53
|
-
rebaseAbort(cwd: string): Promise<void>;
|
|
54
|
-
getBranchSyncStatus(cwd: string, featureBranch: string, baseBranch: string): Promise<{
|
|
55
|
-
ahead: number;
|
|
56
|
-
behind: number;
|
|
57
|
-
}>;
|
|
58
48
|
}
|
|
59
49
|
//# sourceMappingURL=git-pr.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-pr.service.d.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U;IAmBlB,cAAc,CAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,WAAW,SAAS,GACnB,OAAO,CAAC,MAAM,CAAC;IAWlB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"git-pr.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/git-pr.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AAC5G,OAAO,KAAK,EACV,cAAc,EAGd,WAAW,EACX,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,wEAAwE,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBACa,YAAa,YAAW,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,YAAY;IAErE,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBjD,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgF9C,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpD,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,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CpD,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAc/E,WAAW,CACf,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,OAAO,CAAC;IA6CnB;;;OAGG;YACW,UAAU;IAmBlB,cAAc,CAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,WAAW,SAAS,GACnB,OAAO,CAAC,MAAM,CAAC;IAWlB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,aAAa;CAiBtB"}
|
|
@@ -617,14 +617,6 @@ let GitPrService = class GitPrService {
|
|
|
617
617
|
parseGitError(error) {
|
|
618
618
|
const message = error instanceof Error ? error.message : String(error);
|
|
619
619
|
const cause = error instanceof Error ? error : undefined;
|
|
620
|
-
// Rebase-specific: detect "CONFLICT" during rebase operations
|
|
621
|
-
if (message.includes('CONFLICT') && message.includes('rebase')) {
|
|
622
|
-
return new GitPrError(message, GitPrErrorCode.REBASE_CONFLICT, cause);
|
|
623
|
-
}
|
|
624
|
-
// Sync-specific: non-fast-forward or diverged branch
|
|
625
|
-
if (message.includes('non-fast-forward') || message.includes('diverged')) {
|
|
626
|
-
return new GitPrError(message, GitPrErrorCode.SYNC_FAILED, cause);
|
|
627
|
-
}
|
|
628
620
|
if (message.includes('rejected') || message.includes('conflict')) {
|
|
629
621
|
return new GitPrError(message, GitPrErrorCode.MERGE_CONFLICT, cause);
|
|
630
622
|
}
|
|
@@ -665,148 +657,6 @@ let GitPrService = class GitPrService {
|
|
|
665
657
|
commitCount,
|
|
666
658
|
};
|
|
667
659
|
}
|
|
668
|
-
// --- Rebase & Sync operations ---
|
|
669
|
-
async syncMain(cwd, baseBranch) {
|
|
670
|
-
try {
|
|
671
|
-
// Detect current branch
|
|
672
|
-
const { stdout } = await this.execFile('git', ['rev-parse', '--abbrev-ref', 'HEAD'], { cwd });
|
|
673
|
-
const currentBranch = stdout.trim();
|
|
674
|
-
if (currentBranch === baseBranch) {
|
|
675
|
-
// On the base branch — use git pull --ff-only
|
|
676
|
-
await this.execFile('git', ['pull', '--ff-only', 'origin', baseBranch], { cwd });
|
|
677
|
-
}
|
|
678
|
-
else {
|
|
679
|
-
// On a different branch — fetch the remote ref only (updates origin/<baseBranch>).
|
|
680
|
-
// We intentionally do NOT update the local <baseBranch> ref because it may be
|
|
681
|
-
// checked out in another worktree, which causes git to refuse the update with:
|
|
682
|
-
// "fatal: refusing to fetch into branch 'refs/heads/main' checked out at ..."
|
|
683
|
-
await this.execFile('git', ['fetch', 'origin', baseBranch], { cwd });
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
catch (error) {
|
|
687
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
688
|
-
const cause = error instanceof Error ? error : undefined;
|
|
689
|
-
if (message.includes('non-fast-forward') ||
|
|
690
|
-
message.includes('Not possible to fast-forward') ||
|
|
691
|
-
message.includes('diverged')) {
|
|
692
|
-
throw new GitPrError(`Cannot fast-forward '${baseBranch}': local branch has diverged from remote. ` +
|
|
693
|
-
`Resolve the divergence manually with 'git checkout ${baseBranch} && git reset --hard origin/${baseBranch}' ` +
|
|
694
|
-
`if you want to discard local changes on ${baseBranch}.`, GitPrErrorCode.SYNC_FAILED, cause);
|
|
695
|
-
}
|
|
696
|
-
throw new GitPrError(`Failed to sync '${baseBranch}' with remote: ${message}`, GitPrErrorCode.GIT_ERROR, cause);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
async rebaseOnMain(cwd, featureBranch, baseBranch) {
|
|
700
|
-
// Check for dirty worktree before starting
|
|
701
|
-
const dirty = await this.hasUncommittedChanges(cwd);
|
|
702
|
-
if (dirty) {
|
|
703
|
-
throw new GitPrError(`Cannot rebase: working directory has uncommitted changes. ` +
|
|
704
|
-
`Please commit or stash your changes before rebasing.`, GitPrErrorCode.GIT_ERROR);
|
|
705
|
-
}
|
|
706
|
-
// Checkout the feature branch
|
|
707
|
-
try {
|
|
708
|
-
await this.execFile('git', ['checkout', featureBranch], { cwd });
|
|
709
|
-
}
|
|
710
|
-
catch (error) {
|
|
711
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
712
|
-
const cause = error instanceof Error ? error : undefined;
|
|
713
|
-
if (message.includes('did not match') ||
|
|
714
|
-
message.includes('not a commit') ||
|
|
715
|
-
message.includes('pathspec')) {
|
|
716
|
-
throw new GitPrError(`Branch '${featureBranch}' not found.`, GitPrErrorCode.BRANCH_NOT_FOUND, cause);
|
|
717
|
-
}
|
|
718
|
-
throw new GitPrError(`Failed to checkout '${featureBranch}': ${message}`, GitPrErrorCode.GIT_ERROR, cause);
|
|
719
|
-
}
|
|
720
|
-
// Rebase onto origin/<baseBranch> (the remote-tracking ref).
|
|
721
|
-
// We use origin/<baseBranch> rather than the local <baseBranch> because:
|
|
722
|
-
// 1. syncMain fetches origin/<baseBranch> — it's always up-to-date
|
|
723
|
-
// 2. The local <baseBranch> may be checked out in another worktree and stale
|
|
724
|
-
const rebaseTarget = `origin/${baseBranch}`;
|
|
725
|
-
try {
|
|
726
|
-
await this.execFile('git', ['rebase', rebaseTarget], { cwd });
|
|
727
|
-
}
|
|
728
|
-
catch (error) {
|
|
729
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
730
|
-
const cause = error instanceof Error ? error : undefined;
|
|
731
|
-
// Detect rebase conflict from git stderr/exit code
|
|
732
|
-
if (message.includes('CONFLICT') || message.includes('could not apply')) {
|
|
733
|
-
// Get the list of conflicted files to include in the error message
|
|
734
|
-
let conflictedFiles = [];
|
|
735
|
-
try {
|
|
736
|
-
conflictedFiles = await this.getConflictedFiles(cwd);
|
|
737
|
-
}
|
|
738
|
-
catch {
|
|
739
|
-
// Failed to get conflicted files — still report the conflict
|
|
740
|
-
}
|
|
741
|
-
const fileList = conflictedFiles.length > 0 ? ` Conflicted files: ${conflictedFiles.join(', ')}` : '';
|
|
742
|
-
throw new GitPrError(`Rebase of '${featureBranch}' onto '${baseBranch}' encountered conflicts.${fileList}`, GitPrErrorCode.REBASE_CONFLICT, cause);
|
|
743
|
-
}
|
|
744
|
-
throw new GitPrError(`Rebase of '${featureBranch}' onto '${baseBranch}' failed: ${message}`, GitPrErrorCode.GIT_ERROR, cause);
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
async getConflictedFiles(cwd) {
|
|
748
|
-
try {
|
|
749
|
-
const { stdout } = await this.execFile('git', ['diff', '--name-only', '--diff-filter=U'], {
|
|
750
|
-
cwd,
|
|
751
|
-
});
|
|
752
|
-
return stdout
|
|
753
|
-
.trim()
|
|
754
|
-
.split('\n')
|
|
755
|
-
.filter((f) => f.length > 0)
|
|
756
|
-
.map((f) => f.replace(/\\/g, '/'));
|
|
757
|
-
}
|
|
758
|
-
catch (error) {
|
|
759
|
-
throw this.parseGitError(error);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
async stageFiles(cwd, files) {
|
|
763
|
-
try {
|
|
764
|
-
await this.execFile('git', ['add', ...files], { cwd });
|
|
765
|
-
}
|
|
766
|
-
catch (error) {
|
|
767
|
-
throw this.parseGitError(error);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
async rebaseContinue(cwd) {
|
|
771
|
-
try {
|
|
772
|
-
await this.execFile('git', ['rebase', '--continue'], {
|
|
773
|
-
cwd,
|
|
774
|
-
env: { ...process.env, GIT_EDITOR: 'true' },
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
catch (error) {
|
|
778
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
779
|
-
const cause = error instanceof Error ? error : undefined;
|
|
780
|
-
if (message.includes('CONFLICT') || message.includes('could not apply')) {
|
|
781
|
-
throw new GitPrError(`Rebase continue encountered new conflicts: ${message}`, GitPrErrorCode.REBASE_CONFLICT, cause);
|
|
782
|
-
}
|
|
783
|
-
throw this.parseGitError(error);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
async rebaseAbort(cwd) {
|
|
787
|
-
try {
|
|
788
|
-
await this.execFile('git', ['rebase', '--abort'], { cwd });
|
|
789
|
-
}
|
|
790
|
-
catch (error) {
|
|
791
|
-
throw this.parseGitError(error);
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
async getBranchSyncStatus(cwd, featureBranch, baseBranch) {
|
|
795
|
-
try {
|
|
796
|
-
const remoteRef = `origin/${baseBranch}`;
|
|
797
|
-
const [aheadResult, behindResult] = await Promise.all([
|
|
798
|
-
this.execFile('git', ['rev-list', '--count', `${remoteRef}..${featureBranch}`], { cwd }),
|
|
799
|
-
this.execFile('git', ['rev-list', '--count', `${featureBranch}..${remoteRef}`], { cwd }),
|
|
800
|
-
]);
|
|
801
|
-
return {
|
|
802
|
-
ahead: parseInt(aheadResult.stdout.trim(), 10) || 0,
|
|
803
|
-
behind: parseInt(behindResult.stdout.trim(), 10) || 0,
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
catch (error) {
|
|
807
|
-
throw this.parseGitError(error);
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
660
|
};
|
|
811
661
|
GitPrService = __decorate([
|
|
812
662
|
injectable(),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature Archive Command
|
|
3
|
+
*
|
|
4
|
+
* Archives a feature to hide it from the canvas without deleting it.
|
|
5
|
+
* Stores the current lifecycle state for restoration on unarchive.
|
|
6
|
+
*
|
|
7
|
+
* Usage: shep feat archive <id> [--force]
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* $ shep feat archive feat-123
|
|
11
|
+
* $ shep feat archive feat-123 --force
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from 'commander';
|
|
14
|
+
/**
|
|
15
|
+
* Create the feat archive command
|
|
16
|
+
*/
|
|
17
|
+
export declare function createArchiveCommand(): Command;
|
|
18
|
+
//# sourceMappingURL=archive.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/archive.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAkC9C"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature Archive Command
|
|
3
|
+
*
|
|
4
|
+
* Archives a feature to hide it from the canvas without deleting it.
|
|
5
|
+
* Stores the current lifecycle state for restoration on unarchive.
|
|
6
|
+
*
|
|
7
|
+
* Usage: shep feat archive <id> [--force]
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* $ shep feat archive feat-123
|
|
11
|
+
* $ shep feat archive feat-123 --force
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from 'commander';
|
|
14
|
+
import { container } from '../../../../../packages/core/src/infrastructure/di/container.js';
|
|
15
|
+
import { ShowFeatureUseCase } from '../../../../../packages/core/src/application/use-cases/features/show-feature.use-case.js';
|
|
16
|
+
import { ArchiveFeatureUseCase } from '../../../../../packages/core/src/application/use-cases/features/archive-feature.use-case.js';
|
|
17
|
+
import { colors, messages } from '../../ui/index.js';
|
|
18
|
+
import { confirm } from '@inquirer/prompts';
|
|
19
|
+
/**
|
|
20
|
+
* Create the feat archive command
|
|
21
|
+
*/
|
|
22
|
+
export function createArchiveCommand() {
|
|
23
|
+
return new Command('archive')
|
|
24
|
+
.description('Archive a feature to hide it from the canvas')
|
|
25
|
+
.argument('<id>', 'Feature ID or prefix')
|
|
26
|
+
.option('-f, --force', 'Skip confirmation prompt')
|
|
27
|
+
.action(async (featureId, options) => {
|
|
28
|
+
try {
|
|
29
|
+
const showUseCase = container.resolve(ShowFeatureUseCase);
|
|
30
|
+
const feature = await showUseCase.execute(featureId);
|
|
31
|
+
if (!options.force) {
|
|
32
|
+
const confirmed = await confirm({
|
|
33
|
+
message: `Archive feature "${feature.name}"?`,
|
|
34
|
+
default: false,
|
|
35
|
+
});
|
|
36
|
+
if (!confirmed) {
|
|
37
|
+
messages.info('Cancelled');
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const archiveUseCase = container.resolve(ArchiveFeatureUseCase);
|
|
42
|
+
await archiveUseCase.execute(feature.id);
|
|
43
|
+
messages.newline();
|
|
44
|
+
messages.success('Feature archived');
|
|
45
|
+
console.log(` ${colors.muted('Name:')} ${feature.name}`);
|
|
46
|
+
messages.newline();
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
const err = error instanceof Error ? error : new Error(String(error));
|
|
50
|
+
messages.error('Failed to archive feature', err);
|
|
51
|
+
process.exitCode = 1;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAepC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAgB3C"}
|
|
@@ -21,6 +21,8 @@ import { createApproveCommand } from './approve.command.js';
|
|
|
21
21
|
import { createRejectCommand } from './reject.command.js';
|
|
22
22
|
import { createLogsCommand } from './logs.command.js';
|
|
23
23
|
import { createAdoptCommand } from './adopt.command.js';
|
|
24
|
+
import { createArchiveCommand } from './archive.command.js';
|
|
25
|
+
import { createUnarchiveCommand } from './unarchive.command.js';
|
|
24
26
|
/**
|
|
25
27
|
* Create the feat command group
|
|
26
28
|
*/
|
|
@@ -37,5 +39,7 @@ export function createFeatCommand() {
|
|
|
37
39
|
.addCommand(createApproveCommand())
|
|
38
40
|
.addCommand(createRejectCommand())
|
|
39
41
|
.addCommand(createLogsCommand())
|
|
40
|
-
.addCommand(createAdoptCommand())
|
|
42
|
+
.addCommand(createAdoptCommand())
|
|
43
|
+
.addCommand(createArchiveCommand())
|
|
44
|
+
.addCommand(createUnarchiveCommand());
|
|
41
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/ls.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ls.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/ls.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkLpC,wBAAgB,eAAe,IAAI,OAAO,CAwGzC"}
|
|
@@ -48,6 +48,9 @@ const STATUS_PRIORITY = {
|
|
|
48
48
|
*/
|
|
49
49
|
function formatStatus(feature, run) {
|
|
50
50
|
// Blocked features show "Waiting" — the parent relationship is conveyed by tree indentation
|
|
51
|
+
if (feature.lifecycle === 'Archived') {
|
|
52
|
+
return `${colors.muted(symbols.dotEmpty)} ${colors.muted('Archived')}`;
|
|
53
|
+
}
|
|
51
54
|
if (feature.lifecycle === 'Deleting') {
|
|
52
55
|
return `${colors.muted(symbols.spinner[0])} ${colors.muted('Deleting')}`;
|
|
53
56
|
}
|
|
@@ -168,6 +171,7 @@ export function createLsCommand() {
|
|
|
168
171
|
.description('List features')
|
|
169
172
|
.option('-r, --repo <path>', 'Filter by repository path')
|
|
170
173
|
.option('--include-deleted', 'Include soft-deleted features')
|
|
174
|
+
.option('--show-archived', 'Include archived features')
|
|
171
175
|
.action(async (options) => {
|
|
172
176
|
try {
|
|
173
177
|
const useCase = container.resolve(ListFeaturesUseCase);
|
|
@@ -176,6 +180,7 @@ export function createLsCommand() {
|
|
|
176
180
|
const filters = {
|
|
177
181
|
...(options.repo && { repositoryPath: options.repo }),
|
|
178
182
|
...(options.includeDeleted && { includeDeleted: true }),
|
|
183
|
+
...(options.showArchived && { includeArchived: true }),
|
|
179
184
|
};
|
|
180
185
|
const features = await useCase.execute(Object.keys(filters).length > 0 ? filters : undefined);
|
|
181
186
|
// Load agent runs and phase timings for all features in parallel
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature Unarchive Command
|
|
3
|
+
*
|
|
4
|
+
* Restores an archived feature to its previous lifecycle state.
|
|
5
|
+
* No confirmation needed — unarchive is always safe and non-destructive.
|
|
6
|
+
*
|
|
7
|
+
* Usage: shep feat unarchive <id>
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* $ shep feat unarchive feat-123
|
|
11
|
+
*/
|
|
12
|
+
import { Command } from 'commander';
|
|
13
|
+
/**
|
|
14
|
+
* Create the feat unarchive command
|
|
15
|
+
*/
|
|
16
|
+
export declare function createUnarchiveCommand(): Command;
|
|
17
|
+
//# sourceMappingURL=unarchive.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unarchive.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/feat/unarchive.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAuBhD"}
|