@shepai/cli 1.122.2-pr395.d35739a → 1.123.0-pr394.80f3f1f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts +11 -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 +1 -55
- 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 +0 -2
- package/dist/packages/core/src/application/ports/output/services/worktree-service.interface.d.ts +25 -0
- package/dist/packages/core/src/application/ports/output/services/worktree-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.d.ts +40 -0
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.js +146 -0
- package/dist/packages/core/src/application/use-cases/features/branch-name-utils.d.ts +33 -0
- package/dist/packages/core/src/application/use-cases/features/branch-name-utils.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/branch-name-utils.js +77 -0
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +5 -10
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.d.ts +1 -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 +8 -0
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +0 -9
- 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 -93
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts +2 -0
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.js +39 -0
- package/dist/src/presentation/cli/commands/feat/adopt.command.d.ts +14 -0
- package/dist/src/presentation/cli/commands/feat/adopt.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/adopt.command.js +43 -0
- package/dist/src/presentation/cli/commands/feat/index.js +2 -2
- package/dist/src/presentation/cli/commands/repo/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/repo/index.js +1 -3
- package/dist/src/presentation/web/app/(dashboard)/@drawer/adopt/page.d.ts +10 -0
- package/dist/src/presentation/web/app/(dashboard)/@drawer/adopt/page.d.ts.map +1 -0
- package/dist/src/presentation/web/app/(dashboard)/@drawer/adopt/page.js +22 -0
- package/dist/src/presentation/web/app/actions/adopt-branch.d.ts +11 -0
- package/dist/src/presentation/web/app/actions/adopt-branch.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/adopt-branch.js +20 -0
- package/dist/src/presentation/web/app/actions/list-branches.d.ts +6 -0
- package/dist/src/presentation/web/app/actions/list-branches.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/list-branches.js +18 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.d.ts +13 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.js +69 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.stories.d.ts +35 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.stories.js +135 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.d.ts +5 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.js +69 -0
- package/dist/src/presentation/web/components/layouts/app-shell/app-shell.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-shell/app-shell.js +12 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/app-path-routes-manifest.json +1 -0
- package/web/.next/build-manifest.json +4 -4
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +2 -2
- package/web/.next/required-server-files.json +2 -2
- package/web/.next/routes-manifest.json +6 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/app-paths-manifest.json +3 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/build-manifest.json +18 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/next-font-manifest.json +6 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/react-loadable-manifest.json +1 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +335 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +20 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.map +5 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -0
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +2 -0
- package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +22 -22
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +28 -28
- 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/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
- 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/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +22 -22
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +20 -20
- 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/build-manifest.json +2 -2
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error/page/build-manifest.json +2 -2
- 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/build-manifest.json +2 -2
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/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/build-manifest.json +2 -2
- package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/build-manifest.json +2 -2
- package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/skills/page.js +4 -4
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/build-manifest.json +2 -2
- package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/build-manifest.json +2 -2
- package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/version/page.js.nft.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app-paths-manifest.json +1 -0
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_94d75bc3._.js +3 -0
- package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_94d75bc3._.js.map +1 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_cfc9281c.js +3 -0
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_cfc9281c.js.map +1 -0
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__02c84e6b._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__02c84e6b._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__06fef644._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__14664e9b._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7cbda1ea._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7cbda1ea._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9e8b25ad._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9e8b25ad._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aed1d6f8._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aed1d6f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ce6057f6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ce6057f6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e2227c0f._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e2227c0f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f0589cc3._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f0589cc3._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_037585d1._.js +3 -0
- package/web/.next/server/chunks/ssr/_037585d1._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_0a97d643._.js +3 -0
- package/web/.next/server/chunks/ssr/_0a97d643._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_19a2fb35._.js +3 -0
- package/web/.next/server/chunks/ssr/_19a2fb35._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
- package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_4093a637._.js +5 -0
- package/web/.next/server/chunks/ssr/_4093a637._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_583a83fb._.js +3 -0
- package/web/.next/server/chunks/ssr/_583a83fb._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_59905c6b._.js → _60922fc4._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_59905c6b._.js.map → _60922fc4._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_9f56cf8f._.js +3 -0
- package/web/.next/server/chunks/ssr/_9f56cf8f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a187fd7e._.js +3 -0
- package/web/.next/server/chunks/ssr/_a187fd7e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a5aa6371._.js +9 -0
- package/web/.next/server/chunks/ssr/_a5aa6371._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a9f57758._.js +3 -0
- package/web/.next/server/chunks/ssr/_a9f57758._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d5206f22._.js +4 -0
- package/web/.next/server/chunks/ssr/_d5206f22._.js.map +1 -0
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js +3 -0
- package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_7a78701e._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_7a78701e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.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/middleware-build-manifest.js +2 -2
- 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 +204 -34
- package/web/.next/static/chunks/{16c125d4054dae40.js → 14d6411c627ccc15.js} +3 -3
- package/web/.next/static/chunks/26110def6c1641a5.js +1 -0
- package/web/.next/static/chunks/{4aadcf496c0c45da.js → 2dade33cf8b0e03e.js} +1 -1
- package/web/.next/static/chunks/3e3e9c6552a6574f.css +1 -0
- package/web/.next/static/chunks/44e35ac2426a1bd0.js +1 -0
- package/web/.next/static/chunks/6295f27fe47da052.js +1 -0
- package/web/.next/static/chunks/8080c842b0358904.js +1 -0
- package/web/.next/static/chunks/{ed3a602003bcb31b.js → 89aac43287d73b02.js} +1 -1
- package/web/.next/static/chunks/8c50a0b7a7d9a4d5.js +1 -0
- package/web/.next/static/chunks/{5738cc053b378225.js → 9fe8af38605fa69a.js} +1 -1
- package/web/.next/static/chunks/a73b4cc8c0548c91.js +1 -0
- package/web/.next/static/chunks/a8ba3f3e2b0f87aa.js +1 -0
- package/web/.next/static/chunks/{47030173ef438c4c.js → b626e6ad69805e9a.js} +2 -2
- package/web/.next/static/chunks/d04de4be30ab78ca.js +3 -0
- package/web/.next/static/chunks/{44ec09b4f33c494d.js → e1de6b08082f5365.js} +1 -1
- package/web/.next/static/chunks/{28882fc716f51419.js → e413cc49d94d7093.js} +2 -2
- package/web/.next/static/chunks/{3c8f903477aacd29.js → fc45997b8b835378.js} +1 -1
- package/web/.next/static/chunks/{turbopack-426d9bc2450816ba.js → turbopack-080e470ea902d0ba.js} +1 -1
- package/dist/packages/core/src/application/use-cases/features/rebase-feature.use-case.d.ts +0 -21
- package/dist/packages/core/src/application/use-cases/features/rebase-feature.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/features/rebase-feature.use-case.js +0 -58
- package/dist/packages/core/src/application/use-cases/sync-fork-main.use-case.d.ts +0 -18
- package/dist/packages/core/src/application/use-cases/sync-fork-main.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/sync-fork-main.use-case.js +0 -40
- package/dist/src/presentation/cli/commands/feat/rebase.command.d.ts +0 -13
- package/dist/src/presentation/cli/commands/feat/rebase.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/feat/rebase.command.js +0 -45
- package/dist/src/presentation/cli/commands/repo/sync.command.d.ts +0 -12
- package/dist/src/presentation/cli/commands/repo/sync.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/repo/sync.command.js +0 -38
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js +0 -3
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__52485955._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__52485955._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_3a4c94e3._.js +0 -3
- package/web/.next/server/chunks/ssr/_3a4c94e3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_6d26a08f._.js +0 -3
- package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_8042b250._.js +0 -3
- package/web/.next/server/chunks/ssr/_8042b250._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9ac70f88._.js +0 -5
- package/web/.next/server/chunks/ssr/_9ac70f88._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_b56e7571._.js +0 -3
- package/web/.next/server/chunks/ssr/_b56e7571._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_e9703421._.js +0 -3
- package/web/.next/server/chunks/ssr/_e9703421._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f1a649e3._.js +0 -9
- package/web/.next/server/chunks/ssr/_f1a649e3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_bc66dcc6._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_bc66dcc6._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_7df6451f._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_7df6451f._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js.map +0 -1
- package/web/.next/static/chunks/0b7e384fe33dc5d4.js +0 -1
- package/web/.next/static/chunks/2d718a04eb97fa9c.js +0 -1
- package/web/.next/static/chunks/303a1217006489b9.js +0 -1
- package/web/.next/static/chunks/3925626b99dcd57a.css +0 -1
- package/web/.next/static/chunks/4443ee9c7733399b.js +0 -1
- package/web/.next/static/chunks/52b56677c842e45f.js +0 -3
- package/web/.next/static/chunks/6bc9ac207dab5ad3.js +0 -1
- package/web/.next/static/chunks/dbbb446493f21874.js +0 -1
- /package/web/.next/static/{8e_LzmibF0x2F_XwXUjHz → -FOfzDf8kOTPigHYVlPm4}/_buildManifest.js +0 -0
- /package/web/.next/static/{8e_LzmibF0x2F_XwXUjHz → -FOfzDf8kOTPigHYVlPm4}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{8e_LzmibF0x2F_XwXUjHz → -FOfzDf8kOTPigHYVlPm4}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { within, userEvent, fn } from '@storybook/test';
|
|
4
|
+
import { AdoptBranchDrawer } from './adopt-branch-drawer.js';
|
|
5
|
+
import { Button } from '../../ui/button.js';
|
|
6
|
+
/* ---------------------------------------------------------------------------
|
|
7
|
+
* Meta
|
|
8
|
+
* ------------------------------------------------------------------------- */
|
|
9
|
+
/**
|
|
10
|
+
* **AdoptBranchDrawer** is a right-side sliding drawer for importing an
|
|
11
|
+
* existing git branch into Shep's feature tracking system.
|
|
12
|
+
*
|
|
13
|
+
* ### Form
|
|
14
|
+
* - **Branch name** (required) — combobox with search for selecting a branch
|
|
15
|
+
* - **Adopt Branch** button — disabled when no branch is selected or submitting
|
|
16
|
+
* - **Cancel** button — closes the drawer
|
|
17
|
+
*
|
|
18
|
+
* ### States
|
|
19
|
+
* - Default: no branch selected, submit disabled
|
|
20
|
+
* - Loading branches: combobox shows loading spinner
|
|
21
|
+
* - Loading submit: button shows spinner
|
|
22
|
+
* - Error: error message shown below combobox
|
|
23
|
+
*/
|
|
24
|
+
const meta = {
|
|
25
|
+
title: 'Drawers/Feature/AdoptBranchDrawer',
|
|
26
|
+
component: AdoptBranchDrawer,
|
|
27
|
+
tags: ['autodocs'],
|
|
28
|
+
parameters: {
|
|
29
|
+
layout: 'fullscreen',
|
|
30
|
+
},
|
|
31
|
+
argTypes: {
|
|
32
|
+
open: { control: 'boolean', description: 'Controls drawer visibility' },
|
|
33
|
+
onClose: { description: 'Called when the drawer is dismissed' },
|
|
34
|
+
onSubmit: { description: 'Called with the branch name when the form is submitted' },
|
|
35
|
+
isSubmitting: { control: 'boolean', description: 'Shows loading state' },
|
|
36
|
+
error: { control: 'text', description: 'Error message to display' },
|
|
37
|
+
branches: { description: 'Available branch names for the combobox dropdown' },
|
|
38
|
+
branchesLoading: { control: 'boolean', description: 'Whether branches are loading' },
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export default meta;
|
|
42
|
+
/* ---------------------------------------------------------------------------
|
|
43
|
+
* Shared data
|
|
44
|
+
* ------------------------------------------------------------------------- */
|
|
45
|
+
const logSubmit = fn().mockName('onSubmit');
|
|
46
|
+
const logClose = fn().mockName('onClose');
|
|
47
|
+
const sampleBranches = [
|
|
48
|
+
'feat/user-auth',
|
|
49
|
+
'feat/dashboard-redesign',
|
|
50
|
+
'fix/login-bug',
|
|
51
|
+
'fix/memory-leak',
|
|
52
|
+
'chore/update-deps',
|
|
53
|
+
'refactor/api-layer',
|
|
54
|
+
'docs/readme-update',
|
|
55
|
+
'release/v2.0',
|
|
56
|
+
'hotfix/critical-fix',
|
|
57
|
+
'develop',
|
|
58
|
+
];
|
|
59
|
+
/* ---------------------------------------------------------------------------
|
|
60
|
+
* Trigger wrapper
|
|
61
|
+
* ------------------------------------------------------------------------- */
|
|
62
|
+
function AdoptDrawerTrigger({ label = 'Open Adopt Branch', isSubmitting = false, error, branches = sampleBranches, branchesLoading = false, }) {
|
|
63
|
+
const [open, setOpen] = useState(false);
|
|
64
|
+
return (_jsxs("div", { className: "flex h-screen items-start p-4", children: [_jsx(Button, { variant: "outline", onClick: () => setOpen(true), children: label }), _jsx(AdoptBranchDrawer, { open: open, onClose: () => {
|
|
65
|
+
setOpen(false);
|
|
66
|
+
logClose();
|
|
67
|
+
}, onSubmit: (branchName) => {
|
|
68
|
+
logSubmit(branchName);
|
|
69
|
+
setOpen(false);
|
|
70
|
+
}, isSubmitting: isSubmitting, error: error, branches: branches, branchesLoading: branchesLoading })] }));
|
|
71
|
+
}
|
|
72
|
+
/* ---------------------------------------------------------------------------
|
|
73
|
+
* Stories
|
|
74
|
+
* ------------------------------------------------------------------------- */
|
|
75
|
+
/** Default — click the trigger button to open the adopt branch drawer with branch combobox. */
|
|
76
|
+
export const Default = {
|
|
77
|
+
render: () => _jsx(AdoptDrawerTrigger, {}),
|
|
78
|
+
};
|
|
79
|
+
/** Pre-opened drawer with branch combobox for quick visual inspection. */
|
|
80
|
+
export const PreOpened = {
|
|
81
|
+
render: () => _jsx(AdoptDrawerTrigger, { label: "Open Drawer" }),
|
|
82
|
+
play: async ({ canvasElement }) => {
|
|
83
|
+
const canvas = within(canvasElement);
|
|
84
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open Drawer' }));
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
/** Branches loading state — combobox shows "Loading branches..." */
|
|
88
|
+
export const BranchesLoading = {
|
|
89
|
+
render: () => _jsx(AdoptDrawerTrigger, { label: "Open (Loading Branches)", branchesLoading: true }),
|
|
90
|
+
play: async ({ canvasElement }) => {
|
|
91
|
+
const canvas = within(canvasElement);
|
|
92
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open (Loading Branches)' }));
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
/** Loading state — submit in progress, button shows spinner. */
|
|
96
|
+
export const Loading = {
|
|
97
|
+
render: () => _jsx(AdoptDrawerTrigger, { label: "Open (Loading)", isSubmitting: true }),
|
|
98
|
+
play: async ({ canvasElement }) => {
|
|
99
|
+
const canvas = within(canvasElement);
|
|
100
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open (Loading)' }));
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
/** Error state — error message visible below combobox. */
|
|
104
|
+
export const WithError = {
|
|
105
|
+
render: () => (_jsx(AdoptDrawerTrigger, { label: "Open (Error)", error: 'Branch "main" cannot be adopted. The main branch should not be tracked as a feature.' })),
|
|
106
|
+
play: async ({ canvasElement }) => {
|
|
107
|
+
const canvas = within(canvasElement);
|
|
108
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open (Error)' }));
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
/** No branches available — empty state in the combobox dropdown. */
|
|
112
|
+
export const NoBranches = {
|
|
113
|
+
render: () => _jsx(AdoptDrawerTrigger, { label: "Open (No Branches)", branches: [] }),
|
|
114
|
+
play: async ({ canvasElement }) => {
|
|
115
|
+
const canvas = within(canvasElement);
|
|
116
|
+
await userEvent.click(canvas.getByRole('button', { name: 'Open (No Branches)' }));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
/* ---------------------------------------------------------------------------
|
|
120
|
+
* Shell template — starts open in full-page context
|
|
121
|
+
* ------------------------------------------------------------------------- */
|
|
122
|
+
function AdoptDrawerShellTemplate() {
|
|
123
|
+
const [open, setOpen] = useState(true);
|
|
124
|
+
return (_jsxs("div", { style: { height: '100vh', background: '#f8fafc', padding: '2rem' }, children: [_jsx("button", { type: "button", onClick: () => setOpen(true), style: { padding: '8px 16px', border: '1px solid #ccc', borderRadius: '6px' }, children: "Open Drawer" }), _jsx(AdoptBranchDrawer, { open: open, onClose: () => {
|
|
125
|
+
setOpen(false);
|
|
126
|
+
logClose();
|
|
127
|
+
}, onSubmit: (branchName) => {
|
|
128
|
+
logSubmit(branchName);
|
|
129
|
+
setOpen(false);
|
|
130
|
+
}, branches: sampleBranches })] }));
|
|
131
|
+
}
|
|
132
|
+
/** Adopt branch drawer rendered inside a full-page context — starts open. */
|
|
133
|
+
export const InDrawer = {
|
|
134
|
+
render: () => _jsx(AdoptDrawerShellTemplate, {}),
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adopt-drawer-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,cAAc,EAAE,EAAE,sBAAsB,2CAmF3E"}
|
package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useCallback, useEffect } from 'react';
|
|
4
|
+
import { useRouter, usePathname } from 'next/navigation';
|
|
5
|
+
import { toast } from 'sonner';
|
|
6
|
+
import { adoptBranch } from '../../../app/actions/adopt-branch.js';
|
|
7
|
+
import { listBranches } from '../../../app/actions/list-branches.js';
|
|
8
|
+
import { AdoptBranchDrawer } from './adopt-branch-drawer.js';
|
|
9
|
+
export function AdoptDrawerClient({ repositoryPath }) {
|
|
10
|
+
const router = useRouter();
|
|
11
|
+
const pathname = usePathname();
|
|
12
|
+
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
13
|
+
const [error, setError] = useState();
|
|
14
|
+
const [branches, setBranches] = useState([]);
|
|
15
|
+
const [branchesLoading, setBranchesLoading] = useState(false);
|
|
16
|
+
const isOnAdoptRoute = pathname.startsWith('/adopt');
|
|
17
|
+
const isOpen = !isSubmitting && isOnAdoptRoute;
|
|
18
|
+
// Reset isSubmitting once the route has actually changed away from /adopt
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (!isOnAdoptRoute && isSubmitting) {
|
|
21
|
+
setIsSubmitting(false);
|
|
22
|
+
}
|
|
23
|
+
}, [isOnAdoptRoute, isSubmitting]);
|
|
24
|
+
// Clear error when drawer reopens
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (isOnAdoptRoute) {
|
|
27
|
+
setError(undefined);
|
|
28
|
+
}
|
|
29
|
+
}, [isOnAdoptRoute]);
|
|
30
|
+
// Fetch branches when drawer opens
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (isOnAdoptRoute && repositoryPath) {
|
|
33
|
+
setBranchesLoading(true);
|
|
34
|
+
listBranches(repositoryPath)
|
|
35
|
+
.then(setBranches)
|
|
36
|
+
.catch(() => setBranches([]))
|
|
37
|
+
.finally(() => setBranchesLoading(false));
|
|
38
|
+
}
|
|
39
|
+
}, [isOnAdoptRoute, repositoryPath]);
|
|
40
|
+
const onClose = useCallback(() => {
|
|
41
|
+
router.push('/');
|
|
42
|
+
}, [router]);
|
|
43
|
+
const onSubmit = useCallback((branchName) => {
|
|
44
|
+
setError(undefined);
|
|
45
|
+
setIsSubmitting(true);
|
|
46
|
+
router.push('/');
|
|
47
|
+
adoptBranch({ branchName, repositoryPath })
|
|
48
|
+
.then((result) => {
|
|
49
|
+
if (result.error) {
|
|
50
|
+
toast.error(result.error);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
window.dispatchEvent(new CustomEvent('shep:feature-created', {
|
|
54
|
+
detail: {
|
|
55
|
+
featureId: result.feature.id,
|
|
56
|
+
name: result.feature.name,
|
|
57
|
+
description: result.feature.description,
|
|
58
|
+
repositoryPath: result.feature.repositoryPath,
|
|
59
|
+
},
|
|
60
|
+
}));
|
|
61
|
+
toast.success(`Branch adopted as "${result.feature.name}"`);
|
|
62
|
+
})
|
|
63
|
+
.catch(() => {
|
|
64
|
+
toast.error('Failed to adopt branch');
|
|
65
|
+
setIsSubmitting(false);
|
|
66
|
+
});
|
|
67
|
+
}, [router, repositoryPath]);
|
|
68
|
+
return (_jsx(AdoptBranchDrawer, { open: isOpen, onClose: onClose, onSubmit: onSubmit, isSubmitting: isSubmitting, error: error, branches: branches, branchesLoading: branchesLoading }));
|
|
69
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-shell/app-shell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBvE,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-shell/app-shell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBvE,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAsGD,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,2CAUnD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useMemo, useState } from 'react';
|
|
4
4
|
import { useRouter, usePathname } from 'next/navigation';
|
|
5
|
-
import { Plus, FolderPlus } from 'lucide-react';
|
|
5
|
+
import { Plus, FolderPlus, GitBranch } from 'lucide-react';
|
|
6
6
|
import { SidebarProvider, SidebarInset } from '../../ui/sidebar.js';
|
|
7
7
|
import { AppSidebar } from '../../layouts/app-sidebar/index.js';
|
|
8
8
|
import { FloatingActionButton, } from '../../common/floating-action-button/index.js';
|
|
@@ -15,7 +15,7 @@ import { SidebarFeaturesProvider, useSidebarFeaturesContext, } from '../../../ho
|
|
|
15
15
|
import { useNotifications } from '../../../hooks/use-notifications.js';
|
|
16
16
|
import { useFeatureFlags } from '../../../hooks/feature-flags-context.js';
|
|
17
17
|
/** Control center route prefixes where the FAB should be visible. */
|
|
18
|
-
const CONTROL_CENTER_PREFIXES = ['/', '/create', '/feature', '/repository'];
|
|
18
|
+
const CONTROL_CENTER_PREFIXES = ['/', '/create', '/adopt', '/feature', '/repository'];
|
|
19
19
|
function isControlCenterRoute(pathname) {
|
|
20
20
|
return CONTROL_CENTER_PREFIXES.some((prefix) => pathname === prefix || (prefix !== '/' && pathname.startsWith(`${prefix}/`)));
|
|
21
21
|
}
|
|
@@ -30,6 +30,9 @@ function AppShellInner({ children }) {
|
|
|
30
30
|
const handleNewFeature = useCallback(() => {
|
|
31
31
|
guardedNavigate(() => router.push('/create'));
|
|
32
32
|
}, [router, guardedNavigate]);
|
|
33
|
+
const handleAdoptBranch = useCallback(() => {
|
|
34
|
+
guardedNavigate(() => router.push('/adopt'));
|
|
35
|
+
}, [router, guardedNavigate]);
|
|
33
36
|
const handleFeatureClick = useCallback((featureId) => {
|
|
34
37
|
guardedNavigate(() => router.push(`/feature/${featureId}`));
|
|
35
38
|
}, [router, guardedNavigate]);
|
|
@@ -55,6 +58,12 @@ function AppShellInner({ children }) {
|
|
|
55
58
|
icon: _jsx(Plus, { className: "h-4 w-4" }),
|
|
56
59
|
onClick: handleNewFeature,
|
|
57
60
|
},
|
|
61
|
+
{
|
|
62
|
+
id: 'adopt-branch',
|
|
63
|
+
label: 'Adopt Branch',
|
|
64
|
+
icon: _jsx(GitBranch, { className: "h-4 w-4" }),
|
|
65
|
+
onClick: handleAdoptBranch,
|
|
66
|
+
},
|
|
58
67
|
{
|
|
59
68
|
id: 'add-repository',
|
|
60
69
|
label: 'Add Repository',
|
|
@@ -62,7 +71,7 @@ function AppShellInner({ children }) {
|
|
|
62
71
|
onClick: handleAddRepository,
|
|
63
72
|
loading: addingRepo,
|
|
64
73
|
},
|
|
65
|
-
], [handleNewFeature, handleAddRepository, addingRepo]);
|
|
74
|
+
], [handleNewFeature, handleAdoptBranch, handleAddRepository, addingRepo]);
|
|
66
75
|
return (_jsxs(SidebarProvider, { defaultOpen: false, children: [_jsx(AppSidebar, { features: features, featureFlags: featureFlags, onFeatureClick: handleFeatureClick }), _jsx(SidebarInset, { children: _jsxs("div", { className: "relative h-full", children: [_jsxs("div", { className: "absolute top-3 right-3 z-50 flex gap-1", "data-test-id": "canvas-actions-toolbar", children: [_jsx(SoundToggle, {}), _jsx(ThemeToggle, {})] }), _jsx("main", { className: "h-full", children: children }), isControlCenterRoute(pathname) && hasRepositories ? (_jsx(FloatingActionButton, { actions: fabActions })) : null] }) })] }));
|
|
67
76
|
}
|
|
68
77
|
export function AppShell({ children }) {
|