@shepai/cli 1.144.0 → 1.145.0-pr452.ae7b9df
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 +25 -0
- package/apis/json-schema/PullRequest.yaml +11 -0
- package/apis/json-schema/SdlcLifecycle.yaml +1 -0
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts +5 -0
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/git-fork-service.interface.d.ts +79 -0
- package/dist/packages/core/src/application/ports/output/services/git-fork-service.interface.d.ts.map +1 -0
- package/dist/packages/core/src/application/ports/output/services/git-fork-service.interface.js +31 -0
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.js +5 -0
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +10 -0
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts +10 -0
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/poll-upstream-pr.use-case.d.ts +23 -0
- package/dist/packages/core/src/application/use-cases/features/poll-upstream-pr.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/poll-upstream-pr.use-case.js +84 -0
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +2 -0
- package/dist/packages/core/src/domain/generated/output.d.ts +33 -0
- 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 +2 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/feature.mapper.d.ts +8 -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 +18 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-add-fork-and-pr-columns.d.ts +13 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-add-fork-and-pr-columns.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-add-fork-and-pr-columns.js +30 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-per-feature-workflow-columns.d.ts +12 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-per-feature-workflow-columns.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-per-feature-workflow-columns.js +23 -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 +23 -4
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts +25 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +85 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts +5 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.js +15 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts +5 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +23 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/ci-watch-fix-loop.d.ts +6 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/ci-watch-fix-loop.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/ci-watch-fix-loop.js +104 -66
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge-output-parser.d.ts +12 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge-output-parser.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge-output-parser.js +33 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.d.ts +2 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.js +50 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts +8 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +40 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/analyze.prompt.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/analyze.prompt.js +11 -9
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts +10 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +68 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/plan.prompt.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/plan.prompt.js +8 -6
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/requirements.prompt.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/requirements.prompt.js +11 -9
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/research.prompt.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/research.prompt.js +8 -6
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/schemas/spec.schema.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/schemas/spec.schema.js +3 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/schemas/validation.d.ts +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/schemas/validation.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/schemas/validation.js +9 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts +5 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.js +20 -0
- package/dist/packages/core/src/infrastructure/services/git/git-fork.service.d.ts +25 -0
- package/dist/packages/core/src/infrastructure/services/git/git-fork.service.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/git/git-fork.service.js +145 -0
- package/dist/packages/core/src/infrastructure/services/pr-sync/pr-sync-watcher.service.d.ts +17 -3
- package/dist/packages/core/src/infrastructure/services/pr-sync/pr-sync-watcher.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/pr-sync/pr-sync-watcher.service.js +98 -15
- package/dist/src/presentation/cli/commands/ui.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/ui.command.js +2 -1
- package/dist/src/presentation/web/app/actions/create-feature.d.ts +10 -0
- package/dist/src/presentation/web/app/actions/create-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/create-feature.js +8 -1
- 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/app/build-feature-node-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-feature-node-data.js +5 -3
- package/dist/src/presentation/web/app/build-graph-nodes.js +5 -3
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +4 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +24 -7
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.d.ts +12 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.js +35 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +7 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +5 -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 +12 -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 +1 -0
- package/dist/src/presentation/web/dev-server.js +2 -1
- 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 +3 -3
- package/web/.next/required-server-files.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +28 -28
- 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 +28 -28
- 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 +36 -36
- 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 +36 -36
- 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 +26 -26
- 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 +28 -28
- 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 +36 -36
- 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 +36 -36
- 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 +26 -26
- 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 +26 -26
- 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/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_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_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]__0b150ddf._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0b150ddf._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2138fa7e._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2138fa7e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__29580090._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__29580090._.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]__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]__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]__c094882b._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c094882b._.js.map +1 -1
- 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]__dac5dbf1._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dac5dbf1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__df7c1cd3._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__df7c1cd3._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fae8b355._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fae8b355._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0c5f56e3._.js +2 -2
- package/web/.next/server/chunks/ssr/_0c5f56e3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1b719e7f._.js +1 -1
- package/web/.next/server/chunks/ssr/_1b719e7f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_37e8548b._.js +1 -1
- package/web/.next/server/chunks/ssr/_37e8548b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_55d763e2._.js +1 -1
- package/web/.next/server/chunks/ssr/_55d763e2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_c67ad133._.js → _5b89327c._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_c67ad133._.js.map → _5b89327c._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_6256a985._.js +1 -1
- package/web/.next/server/chunks/ssr/_6256a985._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_64bdfc6f._.js +2 -2
- package/web/.next/server/chunks/ssr/_64bdfc6f._.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/_8fcc39d4._.js +3 -0
- package/web/.next/server/chunks/ssr/_8fcc39d4._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_b71645b4._.js +1 -1
- package/web/.next/server/chunks/ssr/_b71645b4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_c64f06d5._.js → _c480d290._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_c64f06d5._.js.map → _c480d290._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_d4b20e29._.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/src_presentation_web_36d135cd._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_dd85ad88._.js.map → src_presentation_web_36d135cd._.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_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 +44 -44
- package/web/.next/static/chunks/{74ee98538b63a4b2.css → 0b18c50740356276.css} +1 -1
- package/web/.next/static/chunks/2f69a2c8803b4d03.js +1 -0
- package/web/.next/static/chunks/{53478ed65db63030.js → 412d6a39406dcc01.js} +2 -2
- package/web/.next/static/chunks/{21502baa33ad728a.js → 4887b859bc457552.js} +2 -2
- package/web/.next/static/chunks/4f0adb1f7fe668dc.js +1 -0
- package/web/.next/static/chunks/{1867fdb7f2c6035f.js → 62b396454129b531.js} +1 -1
- package/web/.next/static/chunks/{8cc1aea0d82835be.js → 66dbc5a3e4f9a938.js} +1 -1
- package/web/.next/static/chunks/{60c6c3c30fba3b7c.js → 9940f68284ee180e.js} +1 -1
- package/web/.next/static/chunks/{683ec435a34ca112.js → 9f1367bf0f603996.js} +1 -1
- package/web/.next/static/chunks/{ecfbc35ad11c83bb.js → af3b565e34bea1e8.js} +1 -1
- package/web/.next/static/chunks/{88300dbc7c91abb2.js → b190938cb5fd9b35.js} +1 -1
- package/web/.next/static/chunks/{904cdf4c47654f32.js → e7744ffb13a4a677.js} +1 -1
- package/web/.next/static/chunks/{de0704c3e73118cf.js → f0d47ebee8ca8bc3.js} +1 -1
- package/web/.next/static/chunks/fa556c575c788679.js +1 -0
- 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/_a9f57758._.js +0 -3
- package/web/.next/server/chunks/ssr/_a9f57758._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_dd85ad88._.js +0 -3
- package/web/.next/static/chunks/0bce83a11c7a9383.js +0 -1
- package/web/.next/static/chunks/6a370f2709c81d83.js +0 -1
- package/web/.next/static/chunks/9e3e916a22d1121f.js +0 -1
- /package/web/.next/static/{rsS9eOHzCHbGCCwBS1fRh → myvK7Q1DabrQLkyfNQtH1}/_buildManifest.js +0 -0
- /package/web/.next/static/{rsS9eOHzCHbGCCwBS1fRh → myvK7Q1DabrQLkyfNQtH1}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{rsS9eOHzCHbGCCwBS1fRh → myvK7Q1DabrQLkyfNQtH1}/_ssgManifest.js +0 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* PR Sync Watcher Service
|
|
3
3
|
*
|
|
4
4
|
* Polls GitHub PR status and CI status for features in the Review lifecycle
|
|
5
|
-
* stage,
|
|
5
|
+
* stage, and upstream PR status for features in the AwaitingUpstream stage,
|
|
6
|
+
* updating feature records and emitting notifications when transitions
|
|
6
7
|
* are detected. Follows the NotificationWatcherService polling pattern.
|
|
7
8
|
*
|
|
8
9
|
* Maintains in-memory tracking of last-known PR and CI status per feature
|
|
@@ -24,6 +25,7 @@ export class PrSyncWatcherService {
|
|
|
24
25
|
agentRunRepo;
|
|
25
26
|
gitPrService;
|
|
26
27
|
notificationService;
|
|
28
|
+
gitForkService;
|
|
27
29
|
pollIntervalMs;
|
|
28
30
|
trackedFeatures = new Map();
|
|
29
31
|
skippedRepos = new Set();
|
|
@@ -32,11 +34,12 @@ export class PrSyncWatcherService {
|
|
|
32
34
|
processId;
|
|
33
35
|
intervalId = null;
|
|
34
36
|
pollCycle = 0;
|
|
35
|
-
constructor(featureRepo, agentRunRepo, gitPrService, notificationService, pollIntervalMs = DEFAULT_POLL_INTERVAL_MS, db = null) {
|
|
37
|
+
constructor(featureRepo, agentRunRepo, gitPrService, notificationService, pollIntervalMs = DEFAULT_POLL_INTERVAL_MS, db = null, gitForkService = null) {
|
|
36
38
|
this.featureRepo = featureRepo;
|
|
37
39
|
this.agentRunRepo = agentRunRepo;
|
|
38
40
|
this.gitPrService = gitPrService;
|
|
39
41
|
this.notificationService = notificationService;
|
|
42
|
+
this.gitForkService = gitForkService;
|
|
40
43
|
this.pollIntervalMs = pollIntervalMs;
|
|
41
44
|
this.db = db;
|
|
42
45
|
this.processId = `${process.pid}-${Date.now()}`;
|
|
@@ -97,26 +100,32 @@ export class PrSyncWatcherService {
|
|
|
97
100
|
return; // another process holds the lock — skip this cycle
|
|
98
101
|
}
|
|
99
102
|
this.pollCycle++;
|
|
100
|
-
const
|
|
103
|
+
const allReviewFeatures = await this.featureRepo.list({ lifecycle: SdlcLifecycle.Review });
|
|
101
104
|
// Include features with a valid repositoryPath (with or without PR data)
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
this.trackedFeatures.clear();
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
// Group features by repositoryPath for batch queries
|
|
105
|
+
const reviewFeatures = allReviewFeatures.filter((f) => f.repositoryPath);
|
|
106
|
+
// Group Review features by repositoryPath for batch queries
|
|
108
107
|
const byRepo = new Map();
|
|
109
|
-
for (const feature of
|
|
108
|
+
for (const feature of reviewFeatures) {
|
|
110
109
|
const group = byRepo.get(feature.repositoryPath) ?? [];
|
|
111
110
|
group.push(feature);
|
|
112
111
|
byRepo.set(feature.repositoryPath, group);
|
|
113
112
|
}
|
|
114
|
-
// Process each repository
|
|
113
|
+
// Process each repository (Review features)
|
|
115
114
|
for (const [repoPath, repoFeatures] of byRepo) {
|
|
116
115
|
await this.processRepository(repoPath, repoFeatures);
|
|
117
116
|
}
|
|
118
|
-
//
|
|
119
|
-
const
|
|
117
|
+
// Process AwaitingUpstream features (poll upstream PR status individually)
|
|
118
|
+
const awaitingFeatures = await this.featureRepo.list({
|
|
119
|
+
lifecycle: SdlcLifecycle.AwaitingUpstream,
|
|
120
|
+
});
|
|
121
|
+
for (const feature of awaitingFeatures) {
|
|
122
|
+
await this.processAwaitingUpstreamFeature(feature);
|
|
123
|
+
}
|
|
124
|
+
// Prune features no longer in Review or AwaitingUpstream
|
|
125
|
+
const currentFeatureIds = new Set([
|
|
126
|
+
...reviewFeatures.map((f) => f.id),
|
|
127
|
+
...awaitingFeatures.map((f) => f.id),
|
|
128
|
+
]);
|
|
120
129
|
for (const trackedId of this.trackedFeatures.keys()) {
|
|
121
130
|
if (!currentFeatureIds.has(trackedId)) {
|
|
122
131
|
this.trackedFeatures.delete(trackedId);
|
|
@@ -319,6 +328,80 @@ export class PrSyncWatcherService {
|
|
|
319
328
|
tracked.unchangedCycles++;
|
|
320
329
|
}
|
|
321
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* Extract upstream repo (owner/name) from an upstream PR URL.
|
|
333
|
+
* Expected format: https://github.com/owner/repo/pull/123
|
|
334
|
+
*/
|
|
335
|
+
extractUpstreamRepo(upstreamPrUrl) {
|
|
336
|
+
const match = upstreamPrUrl.match(/github\.com\/([^/]+\/[^/]+)\/pull\//);
|
|
337
|
+
return match?.[1] ?? null;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Poll upstream PR status for a feature in AwaitingUpstream lifecycle.
|
|
341
|
+
* If the upstream PR is merged, transition to Maintain.
|
|
342
|
+
* If the upstream PR is closed, update upstreamPrStatus to Closed.
|
|
343
|
+
*/
|
|
344
|
+
async processAwaitingUpstreamFeature(feature) {
|
|
345
|
+
if (!this.gitForkService)
|
|
346
|
+
return;
|
|
347
|
+
if (!feature.pr?.upstreamPrUrl || !feature.pr?.upstreamPrNumber)
|
|
348
|
+
return;
|
|
349
|
+
// Check exponential backoff — skip features that haven't changed recently
|
|
350
|
+
if (!this.shouldPollFeature(feature.id)) {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const upstreamRepo = this.extractUpstreamRepo(feature.pr.upstreamPrUrl);
|
|
354
|
+
if (!upstreamRepo) {
|
|
355
|
+
// eslint-disable-next-line no-console
|
|
356
|
+
console.warn(`${TAG} Could not extract upstream repo from URL: ${feature.pr.upstreamPrUrl}`);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
let upstreamStatus;
|
|
360
|
+
try {
|
|
361
|
+
upstreamStatus = await this.gitForkService.getUpstreamPrStatus(upstreamRepo, feature.pr.upstreamPrNumber);
|
|
362
|
+
}
|
|
363
|
+
catch (error) {
|
|
364
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
365
|
+
// eslint-disable-next-line no-console
|
|
366
|
+
console.warn(`${TAG} getUpstreamPrStatus failed for "${feature.name}" (${upstreamRepo}#${feature.pr.upstreamPrNumber}): ${msg}`);
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
// Initialize tracking if needed
|
|
370
|
+
const prevState = this.trackedFeatures.get(feature.id);
|
|
371
|
+
if (!prevState) {
|
|
372
|
+
this.trackedFeatures.set(feature.id, {
|
|
373
|
+
prStatus: feature.pr.upstreamPrStatus ?? PrStatus.Open,
|
|
374
|
+
ciStatus: undefined,
|
|
375
|
+
mergeable: undefined,
|
|
376
|
+
featureName: feature.name,
|
|
377
|
+
unchangedCycles: 0,
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
const tracked = this.trackedFeatures.get(feature.id);
|
|
381
|
+
const previousStatus = tracked.prStatus;
|
|
382
|
+
if (upstreamStatus === previousStatus) {
|
|
383
|
+
tracked.unchangedCycles++;
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
// eslint-disable-next-line no-console
|
|
387
|
+
console.log(`${TAG} Upstream PR #${feature.pr.upstreamPrNumber} status changed: ${previousStatus} -> ${upstreamStatus} for "${feature.name}"`);
|
|
388
|
+
tracked.prStatus = upstreamStatus;
|
|
389
|
+
tracked.unchangedCycles = 0;
|
|
390
|
+
if (upstreamStatus === PrStatus.Merged) {
|
|
391
|
+
feature.lifecycle = SdlcLifecycle.Maintain;
|
|
392
|
+
feature.pr = { ...feature.pr, upstreamPrStatus: PrStatus.Merged };
|
|
393
|
+
feature.updatedAt = new Date();
|
|
394
|
+
await this.featureRepo.update(feature);
|
|
395
|
+
await this.completeAgentRun(feature);
|
|
396
|
+
this.emitNotification(NotificationEventType.PrMerged, feature.id, feature.agentRunId ?? '', feature.name, `Upstream PR #${feature.pr.upstreamPrNumber} merged for ${feature.name}`, NotificationSeverity.Success);
|
|
397
|
+
}
|
|
398
|
+
else if (upstreamStatus === PrStatus.Closed) {
|
|
399
|
+
feature.pr = { ...feature.pr, upstreamPrStatus: PrStatus.Closed };
|
|
400
|
+
feature.updatedAt = new Date();
|
|
401
|
+
await this.featureRepo.update(feature);
|
|
402
|
+
this.emitNotification(NotificationEventType.PrClosed, feature.id, feature.agentRunId ?? '', feature.name, `Upstream PR #${feature.pr.upstreamPrNumber} closed for ${feature.name}`, NotificationSeverity.Warning);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
322
405
|
/** Mark associated agent run as completed so the UI reflects "done" state. */
|
|
323
406
|
async completeAgentRun(feature) {
|
|
324
407
|
if (!feature.agentRunId)
|
|
@@ -353,11 +436,11 @@ let watcherInstance = null;
|
|
|
353
436
|
*
|
|
354
437
|
* @throws Error if the watcher is already initialized
|
|
355
438
|
*/
|
|
356
|
-
export function initializePrSyncWatcher(featureRepo, agentRunRepo, gitPrService, notificationService, pollIntervalMs, db) {
|
|
439
|
+
export function initializePrSyncWatcher(featureRepo, agentRunRepo, gitPrService, notificationService, pollIntervalMs, db, gitForkService) {
|
|
357
440
|
if (watcherInstance !== null) {
|
|
358
441
|
throw new Error('PR sync watcher already initialized. Cannot re-initialize.');
|
|
359
442
|
}
|
|
360
|
-
watcherInstance = new PrSyncWatcherService(featureRepo, agentRunRepo, gitPrService, notificationService, pollIntervalMs, db ?? null);
|
|
443
|
+
watcherInstance = new PrSyncWatcherService(featureRepo, agentRunRepo, gitPrService, notificationService, pollIntervalMs, db ?? null, gitForkService ?? null);
|
|
361
444
|
}
|
|
362
445
|
/**
|
|
363
446
|
* Get the PR sync watcher singleton.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.command.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/ui.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAwB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ui.command.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/ui.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAwB,MAAM,WAAW,CAAC;AAiC1D;;GAEG;AACH,wBAAgB,eAAe,IAAI,OAAO,CA4FzC"}
|
|
@@ -67,8 +67,9 @@ Examples:
|
|
|
67
67
|
getNotificationWatcher().start();
|
|
68
68
|
// Start PR sync watcher to detect PR/CI status transitions on GitHub
|
|
69
69
|
const gitPrService = container.resolve('IGitPrService');
|
|
70
|
+
const gitForkService = container.resolve('IGitForkService');
|
|
70
71
|
const db = getExistingConnection();
|
|
71
|
-
initializePrSyncWatcher(featureRepo, runRepo, gitPrService, notificationService, undefined, db);
|
|
72
|
+
initializePrSyncWatcher(featureRepo, runRepo, gitPrService, notificationService, undefined, db, gitForkService);
|
|
72
73
|
getPrSyncWatcher().start();
|
|
73
74
|
const url = `http://localhost:${port}`;
|
|
74
75
|
messages.success(`Server ready at ${fmt.code(url)}`);
|
|
@@ -20,6 +20,16 @@ interface CreateFeatureInput {
|
|
|
20
20
|
fast?: boolean;
|
|
21
21
|
/** When true, create the feature in pending state (no agent spawned). */
|
|
22
22
|
pending?: boolean;
|
|
23
|
+
/** Fork repo and create PR to upstream at merge time. */
|
|
24
|
+
forkAndPr?: boolean;
|
|
25
|
+
/** Commit specs/evidences into the repo (default: true, auto-false when forkAndPr). */
|
|
26
|
+
commitSpecs?: boolean;
|
|
27
|
+
/** Enable CI watch/fix loop after push. */
|
|
28
|
+
ciWatchEnabled?: boolean;
|
|
29
|
+
/** Enable evidence collection after implementation. */
|
|
30
|
+
enableEvidence?: boolean;
|
|
31
|
+
/** Commit evidence to PR. */
|
|
32
|
+
commitEvidence?: boolean;
|
|
23
33
|
/** Optional agent type override for this feature run */
|
|
24
34
|
agentType?: string;
|
|
25
35
|
/** Optional model identifier for this feature run */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-feature.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/create-feature.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAGpE,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAQD,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE;QACd,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yEAAyE;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,aAAa,CACjC,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"create-feature.d.ts","sourceRoot":"","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7 @@
|
|
|
2
2
|
import { resolve } from '../../lib/server-container.js';
|
|
3
3
|
import { composeUserInput } from './compose-user-input.js';
|
|
4
4
|
export async function createFeature(input) {
|
|
5
|
-
const { description, repositoryPath, attachments, sessionId, approvalGates, push, openPr, parentId, fast, pending, agentType, model, } = input;
|
|
5
|
+
const { description, repositoryPath, attachments, sessionId, approvalGates, push, openPr, parentId, fast, pending, forkAndPr, commitSpecs, ciWatchEnabled, enableEvidence, commitEvidence, agentType, model, } = input;
|
|
6
6
|
if (!description?.trim()) {
|
|
7
7
|
return { error: 'description is required' };
|
|
8
8
|
}
|
|
@@ -28,6 +28,11 @@ export async function createFeature(input) {
|
|
|
28
28
|
description,
|
|
29
29
|
...(fast ? { fast } : {}),
|
|
30
30
|
...(pending ? { pending } : {}),
|
|
31
|
+
...(forkAndPr != null ? { forkAndPr } : {}),
|
|
32
|
+
...(commitSpecs != null ? { commitSpecs } : {}),
|
|
33
|
+
...(ciWatchEnabled != null ? { ciWatchEnabled } : {}),
|
|
34
|
+
...(enableEvidence != null ? { enableEvidence } : {}),
|
|
35
|
+
...(commitEvidence != null ? { commitEvidence } : {}),
|
|
31
36
|
...(agentType ? { agentType } : {}),
|
|
32
37
|
...(model ? { model } : {}),
|
|
33
38
|
});
|
|
@@ -43,6 +48,8 @@ export async function createFeature(input) {
|
|
|
43
48
|
...(parentId ? { parentId } : {}),
|
|
44
49
|
...(fast ? { fast } : {}),
|
|
45
50
|
...(pending ? { pending } : {}),
|
|
51
|
+
...(forkAndPr != null ? { forkAndPr } : {}),
|
|
52
|
+
...(commitSpecs != null ? { commitSpecs } : {}),
|
|
46
53
|
...(agentType ? { agentType } : {}),
|
|
47
54
|
...(model ? { model } : {}),
|
|
48
55
|
...(sessionId ? { sessionId } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/app/api/agent-events/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,eAAO,MAAM,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/app/api/agent-events/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAwEvC,wBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CA4R9C"}
|
|
@@ -36,6 +36,7 @@ const LIFECYCLE_TO_NODE = {
|
|
|
36
36
|
[SdlcLifecycle.Blocked]: 'blocked',
|
|
37
37
|
[SdlcLifecycle.Pending]: 'pending',
|
|
38
38
|
[SdlcLifecycle.Deleting]: 'blocked',
|
|
39
|
+
[SdlcLifecycle.AwaitingUpstream]: 'merge',
|
|
39
40
|
[SdlcLifecycle.Archived]: 'archived',
|
|
40
41
|
};
|
|
41
42
|
const STATUS_TO_EVENT = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-feature-node-data.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-feature-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAS9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yEAAyE;IACzE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,eAAe,
|
|
1
|
+
{"version":3,"file":"build-feature-node-data.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-feature-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAS9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yEAAyE;IACzE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,eAAe,CAsDjB"}
|
|
@@ -28,9 +28,11 @@ export function buildFeatureNodeData(feature, run, options) {
|
|
|
28
28
|
approvalGates: feature.approvalGates,
|
|
29
29
|
push: feature.push,
|
|
30
30
|
openPr: feature.openPr,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
forkAndPr: feature.forkAndPr,
|
|
32
|
+
commitSpecs: feature.commitSpecs,
|
|
33
|
+
enableEvidence: feature.enableEvidence ?? options?.enableEvidence ?? false,
|
|
34
|
+
commitEvidence: feature.commitEvidence ?? options?.commitEvidence ?? false,
|
|
35
|
+
ciWatchEnabled: feature.ciWatchEnabled ?? options?.ciWatchEnabled ?? true,
|
|
34
36
|
...(options?.hideCiStatus != null && { hideCiStatus: options.hideCiStatus }),
|
|
35
37
|
...(options?.repositoryName && { repositoryName: options.repositoryName }),
|
|
36
38
|
...(options?.baseBranch && { baseBranch: options.baseBranch }),
|
|
@@ -118,9 +118,11 @@ function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes
|
|
|
118
118
|
approvalGates: feature.approvalGates,
|
|
119
119
|
push: feature.push,
|
|
120
120
|
openPr: feature.openPr,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
forkAndPr: feature.forkAndPr,
|
|
122
|
+
commitSpecs: feature.commitSpecs,
|
|
123
|
+
enableEvidence: feature.enableEvidence ?? options?.enableEvidence ?? false,
|
|
124
|
+
commitEvidence: feature.commitEvidence ?? options?.commitEvidence ?? false,
|
|
125
|
+
ciWatchEnabled: feature.ciWatchEnabled ?? options?.ciWatchEnabled ?? true,
|
|
124
126
|
...(repoName && { repositoryName: repoName }),
|
|
125
127
|
...(run?.agentType && { agentType: run.agentType }),
|
|
126
128
|
...(run?.modelId && { modelId: run.modelId }),
|
|
@@ -59,5 +59,5 @@ export function BaseDrawer({ open, onClose, modal = false, dismissOnOutsideClick
|
|
|
59
59
|
function DeployBar({ deployTarget }) {
|
|
60
60
|
const deployAction = useDeployAction(deployTarget);
|
|
61
61
|
const isDeploymentActive = deployAction.status === 'Booting' || deployAction.status === 'Ready';
|
|
62
|
-
return (_jsxs("div", { "data-testid": "base-drawer-deploy-bar", className: "flex items-center gap-2 px-4 pb-3", children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { children: _jsx(ActionButton, { label: isDeploymentActive ? 'Stop Dev Server' : 'Start Dev Server', onClick: isDeploymentActive ? deployAction.stop : deployAction.deploy, loading: deployAction.deployLoading || deployAction.stopLoading, error: !!deployAction.deployError, icon: isDeploymentActive ? Square : Play, iconOnly: true, variant: "outline", size: "icon-sm" }) }) }), _jsx(TooltipContent, { children: isDeploymentActive ? 'Stop Dev Server' : 'Start Dev Server' })] }) }), isDeploymentActive ? (_jsx(DeploymentStatusBadge, { status: deployAction.status, url: deployAction.url, targetId: deployTarget.targetId })) : null] }));
|
|
62
|
+
return (_jsxs("div", { "data-testid": "base-drawer-deploy-bar", className: "flex items-center gap-2 px-4 pt-3 pb-3", children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { children: _jsx(ActionButton, { label: isDeploymentActive ? 'Stop Dev Server' : 'Start Dev Server', onClick: isDeploymentActive ? deployAction.stop : deployAction.deploy, loading: deployAction.deployLoading || deployAction.stopLoading, error: !!deployAction.deployError, icon: isDeploymentActive ? Square : Play, iconOnly: true, variant: "outline", size: "icon-sm" }) }) }), _jsx(TooltipContent, { children: isDeploymentActive ? 'Stop Dev Server' : 'Start Dev Server' })] }) }), isDeploymentActive ? (_jsx(DeploymentStatusBadge, { status: deployAction.status, url: deployAction.url, targetId: deployTarget.targetId })) : null] }));
|
|
63
63
|
}
|
package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ export interface FeatureCreatePayload {
|
|
|
39
39
|
fast: boolean;
|
|
40
40
|
/** When true, create the feature in pending state (no agent spawned). */
|
|
41
41
|
pending?: boolean;
|
|
42
|
+
/** Fork repo and create PR to upstream at merge time. */
|
|
43
|
+
forkAndPr: boolean;
|
|
44
|
+
/** Commit specs/evidences into the repo (defaults false when forkAndPr is enabled). */
|
|
45
|
+
commitSpecs: boolean;
|
|
42
46
|
/** Optional agent type override for this feature run */
|
|
43
47
|
agentType?: string;
|
|
44
48
|
/** Optional model override for this feature run */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAS5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,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EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,eAAe,EACf,QAAQ,GACT,EAAE,uBAAuB,2CAiNzB"}
|
package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
4
|
-
import { PaperclipIcon, ChevronsUpDown, CheckIcon, Zap, Clock, FolderPlus, Loader2, } from 'lucide-react';
|
|
4
|
+
import { PaperclipIcon, ChevronsUpDown, CheckIcon, Zap, Clock, FolderPlus, Loader2, GitFork, FileText, } from 'lucide-react';
|
|
5
5
|
import { cn } from '../../../lib/utils.js';
|
|
6
6
|
import { useSoundAction } from '../../../hooks/use-sound-action.js';
|
|
7
7
|
import { BaseDrawer } from '../../common/base-drawer/index.js';
|
|
@@ -131,6 +131,8 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
131
131
|
const [parentId, setParentId] = useState(undefined);
|
|
132
132
|
const [fast, setFast] = useState(false);
|
|
133
133
|
const [pending, setPending] = useState(false);
|
|
134
|
+
const [forkAndPr, setForkAndPr] = useState(false);
|
|
135
|
+
const [commitSpecs, setCommitSpecs] = useState(true);
|
|
134
136
|
const [overrideAgent, setOverrideAgent] = useState(undefined);
|
|
135
137
|
const [overrideModel, setOverrideModel] = useState(undefined);
|
|
136
138
|
const [selectedRepoPath, setSelectedRepoPath] = useState(validRepoPath || undefined);
|
|
@@ -177,6 +179,8 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
177
179
|
setLocalRepos(repositories ?? []);
|
|
178
180
|
setFast(false);
|
|
179
181
|
setPending(false);
|
|
182
|
+
setForkAndPr(false);
|
|
183
|
+
setCommitSpecs(true);
|
|
180
184
|
setOverrideAgent(undefined);
|
|
181
185
|
setOverrideModel(undefined);
|
|
182
186
|
setUploadError(null);
|
|
@@ -320,12 +324,14 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
320
324
|
allowPlan: approvalGates.allowPlan ?? false,
|
|
321
325
|
allowMerge: approvalGates.allowMerge ?? false,
|
|
322
326
|
},
|
|
323
|
-
push: push || openPr,
|
|
324
|
-
openPr,
|
|
327
|
+
push: forkAndPr ? true : push || openPr,
|
|
328
|
+
openPr: forkAndPr ? true : openPr,
|
|
325
329
|
ciWatchEnabled,
|
|
326
330
|
enableEvidence,
|
|
327
331
|
commitEvidence,
|
|
328
332
|
fast,
|
|
333
|
+
forkAndPr,
|
|
334
|
+
commitSpecs,
|
|
329
335
|
...(pending ? { pending } : {}),
|
|
330
336
|
...(overrideAgent ? { agentType: overrideAgent } : {}),
|
|
331
337
|
...(overrideModel ? { model: overrideModel } : {}),
|
|
@@ -346,6 +352,8 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
346
352
|
ciWatchEnabled,
|
|
347
353
|
commitEvidence,
|
|
348
354
|
fast,
|
|
355
|
+
forkAndPr,
|
|
356
|
+
commitSpecs,
|
|
349
357
|
pending,
|
|
350
358
|
overrideAgent,
|
|
351
359
|
overrideModel,
|
|
@@ -449,19 +457,28 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
|
|
|
449
457
|
setEnableEvidence(v);
|
|
450
458
|
if (!v)
|
|
451
459
|
setCommitEvidence(false);
|
|
452
|
-
}, disabled: isSubmitting }), _jsx(Label, { htmlFor: "enable-evidence", className: "cursor-pointer text-xs font-medium", children: "Collect" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Capture screenshots and artifacts after implementation." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-evidence", size: "sm", checked: commitEvidence, onCheckedChange: setCommitEvidence, disabled: isSubmitting || !enableEvidence || !openPr }), _jsx(Label, { htmlFor: "commit-evidence", className: cn('cursor-pointer text-xs font-medium', (!enableEvidence || !openPr) && 'opacity-50'), children: "Add to PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: !openPr
|
|
460
|
+
}, disabled: isSubmitting }), _jsx(Label, { htmlFor: "enable-evidence", className: "cursor-pointer text-xs font-medium", children: "Collect" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Capture screenshots and artifacts after implementation." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-evidence", size: "sm", checked: commitEvidence, onCheckedChange: setCommitEvidence, disabled: isSubmitting || !enableEvidence || (!openPr && !forkAndPr) }), _jsx(Label, { htmlFor: "commit-evidence", className: cn('cursor-pointer text-xs font-medium', (!enableEvidence || (!openPr && !forkAndPr)) && 'opacity-50'), children: "Add to PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: !openPr && !forkAndPr
|
|
453
461
|
? 'Requires PR to be enabled'
|
|
454
462
|
: !enableEvidence
|
|
455
463
|
? 'Requires evidence collection to be enabled'
|
|
456
|
-
: 'Include evidence in the pull request body.' })] })] })] }), _jsxs("div", { className: "border-input flex items-
|
|
464
|
+
: 'Include evidence in the pull request body.' })] })] })] }), _jsxs("div", { className: "border-input flex items-start gap-4 rounded-md border px-3 py-2.5", children: [_jsx("span", { className: "text-muted-foreground w-16 shrink-0 pt-0.5 text-xs font-semibold tracking-wider", children: "GIT" }), _jsxs("div", { className: "flex flex-1 flex-wrap items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "push", size: "sm", checked: forkAndPr ? true : push || openPr, onCheckedChange: (v) => {
|
|
457
465
|
setPush(v);
|
|
458
466
|
if (!v && openPr)
|
|
459
467
|
setOpenPr(false);
|
|
460
|
-
}, disabled: isSubmitting }), _jsx(Label, { htmlFor: "push", className:
|
|
468
|
+
}, disabled: isSubmitting || forkAndPr }), _jsx(Label, { htmlFor: "push", className: cn('cursor-pointer text-xs font-medium', forkAndPr && 'opacity-50'), children: "Push" })] }) }), _jsx(TooltipContent, { side: "bottom", children: forkAndPr
|
|
469
|
+
? 'Enabled — contributing to upstream'
|
|
470
|
+
: 'Push branch to remote after implementation.' })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "open-pr", size: "sm", checked: forkAndPr ? true : openPr, onCheckedChange: (v) => {
|
|
461
471
|
setOpenPr(v);
|
|
462
472
|
if (!v)
|
|
463
473
|
setCommitEvidence(false);
|
|
464
|
-
}, disabled: isSubmitting }), _jsx(Label, { htmlFor: "open-pr", className:
|
|
474
|
+
}, disabled: isSubmitting || forkAndPr }), _jsx(Label, { htmlFor: "open-pr", className: cn('cursor-pointer text-xs font-medium', forkAndPr && 'opacity-50'), children: "PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: forkAndPr
|
|
475
|
+
? 'Enabled — contributing to upstream'
|
|
476
|
+
: 'Open a pull request after pushing.' })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "ci-watch", size: "sm", checked: ciWatchEnabled, onCheckedChange: setCiWatchEnabled, disabled: isSubmitting }), _jsx(Label, { htmlFor: "ci-watch", className: "cursor-pointer text-xs font-medium", children: "Watch" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Watch CI and auto-fix after push." })] }), _jsx("div", { className: "bg-border h-4 w-px shrink-0" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-specs", size: "sm", checked: commitSpecs, onCheckedChange: setCommitSpecs, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "commit-specs", className: "flex cursor-pointer items-center gap-1 text-xs font-medium", children: [_jsx(FileText, { className: "h-3 w-3" }), "Commit Specs"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Commit specs to repository." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "fork-and-pr", size: "sm", checked: forkAndPr, onCheckedChange: (v) => {
|
|
477
|
+
setForkAndPr(v);
|
|
478
|
+
// Auto-flip commitSpecs to false when enabling contribute mode
|
|
479
|
+
if (v)
|
|
480
|
+
setCommitSpecs(false);
|
|
481
|
+
}, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "fork-and-pr", className: "flex cursor-pointer items-center gap-1 text-xs font-medium", children: [_jsx(GitFork, { className: "h-3 w-3" }), "Fork & PR"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Contribute via fork (PR to upstream)." })] })] })] })] })] }) }) }) }));
|
|
465
482
|
}
|
|
466
483
|
function ParentFeatureCombobox({ features, value, onChange, disabled, }) {
|
|
467
484
|
const [open, setOpen] = useState(false);
|
|
@@ -120,6 +120,18 @@ export declare const DiscardConfirmation: Story;
|
|
|
120
120
|
*/
|
|
121
121
|
export declare const DragDropReady: Story;
|
|
122
122
|
export declare const Interactive: Story;
|
|
123
|
+
/**
|
|
124
|
+
* Fork & PR enabled — the "Fork & PR" toggle in the GIT row is checked.
|
|
125
|
+
* When enabled, Push and PR toggles are locked to `true` (disabled with
|
|
126
|
+
* "Enabled — contributing to upstream" tooltip), and `commitSpecs`
|
|
127
|
+
* auto-flips to `false`.
|
|
128
|
+
*/
|
|
129
|
+
export declare const ForkAndPrEnabled: Story;
|
|
130
|
+
/**
|
|
131
|
+
* Fork & PR with Commit Specs re-enabled — after enabling contribute mode
|
|
132
|
+
* (which auto-disables commitSpecs), the user overrides commitSpecs back to `true`.
|
|
133
|
+
*/
|
|
134
|
+
export declare const ForkAndPrWithCommitSpecs: Story;
|
|
123
135
|
/**
|
|
124
136
|
* With repository selector — opened from sidebar without repo context.
|
|
125
137
|
* Shows the searchable repository combobox at the top of the form.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-create-drawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAU9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAgC1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAmDlD,uFAAuF;AACvF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAWlC,CAAC;AAkDF,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAwCF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KAwCzB,CAAC;AAuCF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AA6BF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC"}
|
|
1
|
+
{"version":3,"file":"feature-create-drawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAU9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAgC1C,C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EAAE,KAU9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAatC,CAAC;AAuCF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AA6BF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC"}
|
|
@@ -398,6 +398,41 @@ export const Interactive = {
|
|
|
398
398
|
}, repositoryPath: "/Users/dev/my-repo", currentAgentType: "claude-code", currentModel: "claude-sonnet-4-6" })] }));
|
|
399
399
|
},
|
|
400
400
|
};
|
|
401
|
+
/* ---------------------------------------------------------------------------
|
|
402
|
+
* Contribute (Fork & PR) stories
|
|
403
|
+
* ------------------------------------------------------------------------- */
|
|
404
|
+
/**
|
|
405
|
+
* Fork & PR enabled — the "Fork & PR" toggle in the GIT row is checked.
|
|
406
|
+
* When enabled, Push and PR toggles are locked to `true` (disabled with
|
|
407
|
+
* "Enabled — contributing to upstream" tooltip), and `commitSpecs`
|
|
408
|
+
* auto-flips to `false`.
|
|
409
|
+
*/
|
|
410
|
+
export const ForkAndPrEnabled = {
|
|
411
|
+
render: () => _jsx(CreateDrawerTrigger, { label: "Open (Fork & PR)" }),
|
|
412
|
+
play: async ({ canvasElement }) => {
|
|
413
|
+
const canvas = within(canvasElement);
|
|
414
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open (Fork & PR)' }));
|
|
415
|
+
const body = within(canvasElement.ownerDocument.body);
|
|
416
|
+
const forkToggle = await body.findByLabelText('Fork & PR');
|
|
417
|
+
await userEvent.click(forkToggle);
|
|
418
|
+
},
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Fork & PR with Commit Specs re-enabled — after enabling contribute mode
|
|
422
|
+
* (which auto-disables commitSpecs), the user overrides commitSpecs back to `true`.
|
|
423
|
+
*/
|
|
424
|
+
export const ForkAndPrWithCommitSpecs = {
|
|
425
|
+
render: () => _jsx(CreateDrawerTrigger, { label: "Open (Fork + Specs)" }),
|
|
426
|
+
play: async ({ canvasElement }) => {
|
|
427
|
+
const canvas = within(canvasElement);
|
|
428
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open (Fork + Specs)' }));
|
|
429
|
+
const body = within(canvasElement.ownerDocument.body);
|
|
430
|
+
const forkToggle = await body.findByLabelText('Fork & PR');
|
|
431
|
+
await userEvent.click(forkToggle);
|
|
432
|
+
const specsToggle = body.getByLabelText('Commit Specs');
|
|
433
|
+
await userEvent.click(specsToggle);
|
|
434
|
+
},
|
|
435
|
+
};
|
|
401
436
|
/* ---------------------------------------------------------------------------
|
|
402
437
|
* Repository selector stories
|
|
403
438
|
* ------------------------------------------------------------------------- */
|
|
@@ -120,10 +120,16 @@ function FeatureSettings({ data }) {
|
|
|
120
120
|
data.openPr != null ||
|
|
121
121
|
data.ciWatchEnabled != null ||
|
|
122
122
|
data.enableEvidence != null ||
|
|
123
|
+
data.forkAndPr != null ||
|
|
124
|
+
data.commitSpecs != null ||
|
|
123
125
|
data.modelId;
|
|
124
126
|
if (!hasSettings)
|
|
125
127
|
return null;
|
|
126
|
-
return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-settings", className: "flex flex-col gap-3 p-4", children: [_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "SETTINGS" }), data.modelId ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Model" }), _jsx("span", { className: "text-sm", children: getModelMeta(data.modelId).displayName || data.modelId })] })) : null, data.approvalGates ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(ShieldCheck, { className: "h-3 w-3" }), "Auto-Approve"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.approvalGates.allowPrd, label: "PRD" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowPlan, label: "Plan" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowMerge, label: "Merge" })] })] })) : null, data.enableEvidence != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(FileSearch, { className: "h-3 w-3" }), "Evidence"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.enableEvidence, label: "Collect" }), data.commitEvidence != null ? (_jsx(SettingBadge, { enabled: data.commitEvidence, label: "Add to PR" })) : null] })] })) : null, data.push != null ||
|
|
128
|
+
return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-settings", className: "flex flex-col gap-3 p-4", children: [_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "SETTINGS" }), data.modelId ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Model" }), _jsx("span", { className: "text-sm", children: getModelMeta(data.modelId).displayName || data.modelId })] })) : null, data.approvalGates ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(ShieldCheck, { className: "h-3 w-3" }), "Auto-Approve"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.approvalGates.allowPrd, label: "PRD" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowPlan, label: "Plan" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowMerge, label: "Merge" })] })] })) : null, data.enableEvidence != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(FileSearch, { className: "h-3 w-3" }), "Evidence"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.enableEvidence, label: "Collect" }), data.commitEvidence != null ? (_jsx(SettingBadge, { enabled: data.commitEvidence, label: "Add to PR" })) : null] })] })) : null, data.push != null ||
|
|
129
|
+
data.openPr != null ||
|
|
130
|
+
data.ciWatchEnabled != null ||
|
|
131
|
+
data.commitSpecs != null ||
|
|
132
|
+
data.forkAndPr != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(GitBranch, { className: "h-3 w-3" }), "Git"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [data.push != null ? _jsx(SettingBadge, { enabled: data.push, label: "Push" }) : null, data.openPr != null ? _jsx(SettingBadge, { enabled: data.openPr, label: "PR" }) : null, data.ciWatchEnabled != null ? (_jsx(SettingBadge, { enabled: data.ciWatchEnabled, label: "Watch" })) : null, data.commitSpecs != null ? (_jsx(SettingBadge, { enabled: data.commitSpecs, label: "Commit Specs" })) : null, data.forkAndPr != null ? (_jsx(SettingBadge, { enabled: data.forkAndPr, label: "Fork & PR" })) : null] })] })) : null] })] }));
|
|
127
133
|
}
|
|
128
134
|
function DetailRow({ label, value }) {
|
|
129
135
|
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), _jsx("span", { className: "text-sm", children: value })] }));
|
package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Node } from '@xyflow/react';
|
|
|
3
3
|
import type { PrStatus, CiStatus, DeploymentState } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
4
4
|
import type { AgentTypeValue } from './agent-type-icons.js';
|
|
5
5
|
export type FeatureNodeState = 'creating' | 'running' | 'action-required' | 'done' | 'blocked' | 'pending' | 'error' | 'deleting' | 'archived';
|
|
6
|
-
export type FeatureLifecyclePhase = 'pending' | 'requirements' | 'research' | 'implementation' | 'review' | 'deploy' | 'maintain';
|
|
6
|
+
export type FeatureLifecyclePhase = 'pending' | 'requirements' | 'research' | 'implementation' | 'review' | 'awaitingUpstream' | 'deploy' | 'maintain';
|
|
7
7
|
/** Human-readable display labels for lifecycle phases. */
|
|
8
8
|
export declare const lifecycleDisplayLabels: Record<FeatureLifecyclePhase, string>;
|
|
9
9
|
/** Left border color for each lifecycle phase. */
|
|
@@ -94,6 +94,10 @@ export interface FeatureNodeData {
|
|
|
94
94
|
enableEvidence?: boolean;
|
|
95
95
|
/** Whether evidence is committed to the PR body */
|
|
96
96
|
commitEvidence?: boolean;
|
|
97
|
+
/** Whether to fork the repo and create a PR to upstream */
|
|
98
|
+
forkAndPr?: boolean;
|
|
99
|
+
/** Whether to commit specs into the repository */
|
|
100
|
+
commitSpecs?: boolean;
|
|
97
101
|
/** Whether to hide CI status badges from UI */
|
|
98
102
|
hideCiStatus?: boolean;
|
|
99
103
|
/** Whether the feature has an associated agent run (for log tab visibility) */
|
package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,kBAAkB,GAClB,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CASxE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CASvE,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CASvE,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,EAAE,MAAM,CACtC,qBAAqB,EACrB;IACE,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,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