@shepai/cli 1.141.0 → 1.142.0-pr453.13e9c32
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/src/presentation/web/app/api/sessions/route.d.ts.map +1 -1
- package/dist/src/presentation/web/app/api/sessions/route.js +45 -13
- package/dist/src/presentation/web/app/layout.d.ts +1 -1
- package/dist/src/presentation/web/app/layout.d.ts.map +1 -1
- package/dist/src/presentation/web/app/layout.js +6 -13
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.js +12 -10
- package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +8 -5
- package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts +3 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.js +13 -5
- package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts +2 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-node.js +3 -4
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts +5 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +25 -8
- package/dist/src/presentation/web/components/layouts/app-shell/app-shell.d.ts +3 -1
- 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 +4 -4
- package/dist/src/presentation/web/components/ui/sidebar.d.ts +2 -0
- package/dist/src/presentation/web/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/presentation/web/components/ui/sidebar.js +26 -28
- package/dist/src/presentation/web/components/ui/tooltip.d.ts +2 -0
- package/dist/src/presentation/web/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/presentation/web/components/ui/tooltip.js +3 -1
- package/dist/src/presentation/web/hooks/use-selected-repository.d.ts +13 -0
- package/dist/src/presentation/web/hooks/use-selected-repository.d.ts.map +1 -0
- package/dist/src/presentation/web/hooks/use-selected-repository.js +19 -0
- 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 +7 -6
- 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 +6 -4
- 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 +7 -5
- 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 +7 -5
- 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 +6 -4
- 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 +6 -4
- 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 +7 -5
- 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 +7 -5
- 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 +6 -4
- 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 +6 -4
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error/page.js +2 -2
- package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page.js +5 -3
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
- package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
- package/web/.next/server/app/api/sessions/route.js +3 -2
- package/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/settings/page.js +6 -5
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/skills/page.js +9 -8
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/tools/page.js +6 -4
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/version/page.js +5 -3
- 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/chunks/403f9_next_dist_esm_build_templates_app-route_ff60e4a5.js +3 -0
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_ff60e4a5.js.map +1 -0
- package/web/.next/server/chunks/[externals]__448264a3._.js +3 -0
- package/web/.next/server/chunks/[externals]__448264a3._.js.map +1 -0
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/ssr/{403f9_next_dist_compiled_dc550646._.js → 403f9_next_dist_compiled_@opentelemetry_api_index_5410770c.js} +2 -2
- package/web/.next/server/chunks/ssr/403f9_next_dist_compiled_@opentelemetry_api_index_5410770c.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/{[root-of-the-server]__6ec59045._.js → [root-of-the-server]__0b150ddf._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__6ec59045._.js.map → [root-of-the-server]__0b150ddf._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__a5f9c6e5._.js → [root-of-the-server]__2138fa7e._.js} +3 -3
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__a5f9c6e5._.js.map → [root-of-the-server]__2138fa7e._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__74756aae._.js → [root-of-the-server]__29580090._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__42faf5ae._.js.map → [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]__685ee565._.js → [root-of-the-server]__c094882b._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__685ee565._.js.map → [root-of-the-server]__c094882b._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d1040bd1._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d1040bd1._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__42faf5ae._.js → [root-of-the-server]__dac5dbf1._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__74756aae._.js.map → [root-of-the-server]__dac5dbf1._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__efeeaed4._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__efeeaed4._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__2bdf88a0._.js → [root-of-the-server]__fae8b355._.js} +2 -2
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__2bdf88a0._.js.map → [root-of-the-server]__fae8b355._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_0020fddd._.js +1 -1
- package/web/.next/server/chunks/ssr/_0020fddd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_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/{_28a956b1._.js → _32981544._.js} +2 -2
- package/web/.next/server/chunks/ssr/_32981544._.js.map +1 -0
- 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/_4b432739._.js +3 -0
- package/web/.next/server/chunks/ssr/_4b432739._.js.map +1 -0
- 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/_6256a985._.js +21 -0
- package/web/.next/server/chunks/ssr/_6256a985._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_63e2b867._.js +3 -0
- package/web/.next/server/chunks/ssr/{_b1979aeb._.js.map → _63e2b867._.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/_6c7faa01._.js +3 -0
- package/web/.next/server/chunks/ssr/_6c7faa01._.js.map +1 -0
- 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/_a9f57758._.js +1 -1
- package/web/.next/server/chunks/ssr/_a9f57758._.js.map +1 -1
- 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/_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_688c51e1._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_d89ef34e._.js.map → src_presentation_web_688c51e1._.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_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/chunks/ssr/src_presentation_web_db9fa0c2._.js +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/{7e7537ab107a5ed5.js → 08baac5434d9528e.js} +1 -1
- package/web/.next/static/chunks/{afc41125785be75f.js → 08e65e91fd585be8.js} +2 -2
- package/web/.next/static/chunks/4575b817cd7db8c5.js +1 -0
- package/web/.next/static/chunks/{2ab4c62a9ed3203b.js → 5f44d9e531c22671.js} +1 -1
- package/web/.next/static/chunks/{1c723fbadbc86104.js → 603856182abb645c.js} +1 -1
- package/web/.next/static/chunks/{4310eecfa4cbfdc3.js → 724568a9e1667cb1.js} +2 -2
- package/web/.next/static/chunks/74ee98538b63a4b2.css +1 -0
- package/web/.next/static/chunks/{6df249ae87a1eb01.js → 85d5f2264fa98de1.js} +1 -1
- package/web/.next/static/chunks/8d9be8bb05402535.js +1 -0
- package/web/.next/static/chunks/{00684a50a5e10dc6.js → 965e6498eaf81213.js} +1 -1
- package/web/.next/static/chunks/{6fce8e3b5b8a70f0.js → a09e919d12064e37.js} +1 -1
- package/web/.next/static/chunks/{17d9b423d445bba0.js → e749dc8b153ba333.js} +1 -1
- package/web/.next/static/chunks/{93c4d09e761f79fb.js → ea9c9f37826b159d.js} +1 -1
- package/web/.next/static/chunks/{61bfd3a083064587.js → ff97b9889fb1642b.js} +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a62bd945._.js +0 -3
- package/web/.next/server/chunks/[root-of-the-server]__a62bd945._.js.map +0 -1
- package/web/.next/server/chunks/ssr/403f9_next_dist_31ea46d3._.js +0 -6
- package/web/.next/server/chunks/ssr/403f9_next_dist_31ea46d3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/403f9_next_dist_compiled_dc550646._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4af0afe0._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4af0afe0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9bc1434f._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9bc1434f._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_02ec1aea._.js +0 -21
- package/web/.next/server/chunks/ssr/_02ec1aea._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_28a956b1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_a37f5f18._.js +0 -13
- package/web/.next/server/chunks/ssr/_a37f5f18._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_b1979aeb._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_d89ef34e._.js +0 -3
- package/web/.next/static/chunks/2659d28c2abd16f7.js +0 -1
- package/web/.next/static/chunks/64050cca05af6700.css +0 -1
- package/web/.next/static/chunks/6d2b3c320bb7aeaa.js +0 -1
- /package/web/.next/static/{2TgqGh19fr07pbj00i0U7 → vfqEcI-EmzmeSUI9cEWTq}/_buildManifest.js +0 -0
- /package/web/.next/static/{2TgqGh19fr07pbj00i0U7 → vfqEcI-EmzmeSUI9cEWTq}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{2TgqGh19fr07pbj00i0U7 → vfqEcI-EmzmeSUI9cEWTq}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAStD,OAAO,EAAW,cAAc,EAAmC,MAAM,yBAAyB,CAAC;AAEnG,QAAA,MAAM,mBAAmB,sBAAsB,CAAC;AAMhD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE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ACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
|
|
@@ -25,36 +25,15 @@ function useSidebar() {
|
|
|
25
25
|
}
|
|
26
26
|
return context;
|
|
27
27
|
}
|
|
28
|
-
function readSidebarState(fallback) {
|
|
29
|
-
try {
|
|
30
|
-
const stored = localStorage.getItem(SIDEBAR_STORAGE_KEY);
|
|
31
|
-
if (stored === 'true')
|
|
32
|
-
return true;
|
|
33
|
-
if (stored === 'false')
|
|
34
|
-
return false;
|
|
35
|
-
return fallback;
|
|
36
|
-
}
|
|
37
|
-
catch {
|
|
38
|
-
return fallback;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
28
|
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
|
|
42
29
|
const isMobile = useIsMobile();
|
|
43
30
|
const [openMobile, setOpenMobile] = React.useState(false);
|
|
31
|
+
const [animated, setAnimated] = React.useState(false);
|
|
44
32
|
// This is the internal state of the sidebar.
|
|
45
33
|
// We use openProp and setOpenProp for control from outside the component.
|
|
46
|
-
//
|
|
34
|
+
// defaultOpen comes from server-side cookie reading, so SSR and client agree.
|
|
47
35
|
const [_open, _setOpen] = React.useState(defaultOpen);
|
|
48
36
|
const open = openProp ?? _open;
|
|
49
|
-
// After hydration, sync state from localStorage to avoid SSR mismatch.
|
|
50
|
-
React.useEffect(() => {
|
|
51
|
-
if (openProp !== undefined)
|
|
52
|
-
return; // controlled mode — skip
|
|
53
|
-
const stored = readSidebarState(defaultOpen);
|
|
54
|
-
if (stored !== defaultOpen) {
|
|
55
|
-
_setOpen(stored);
|
|
56
|
-
}
|
|
57
|
-
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
58
37
|
const setOpen = React.useCallback((value) => {
|
|
59
38
|
const openState = typeof value === 'function' ? value(open) : value;
|
|
60
39
|
if (setOpenProp) {
|
|
@@ -63,9 +42,11 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
63
42
|
else {
|
|
64
43
|
_setOpen(openState);
|
|
65
44
|
}
|
|
66
|
-
// Persist sidebar state to localStorage
|
|
45
|
+
// Persist sidebar state to localStorage and a cookie (so the server can
|
|
46
|
+
// read it on the next request and render the correct initial state).
|
|
67
47
|
try {
|
|
68
48
|
localStorage.setItem(SIDEBAR_STORAGE_KEY, String(openState));
|
|
49
|
+
document.cookie = `${SIDEBAR_STORAGE_KEY}=${openState}; path=/; max-age=31536000; SameSite=Lax`;
|
|
69
50
|
}
|
|
70
51
|
catch {
|
|
71
52
|
// Silently ignore storage errors (e.g. quota exceeded, private browsing).
|
|
@@ -73,8 +54,24 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
73
54
|
}, [setOpenProp, open]);
|
|
74
55
|
// Helper to toggle the sidebar.
|
|
75
56
|
const toggleSidebar = React.useCallback(() => {
|
|
57
|
+
setAnimated(true);
|
|
76
58
|
return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
|
|
77
59
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
60
|
+
// Seed cookie from localStorage for existing users who have localStorage
|
|
61
|
+
// but no cookie yet (one-time migration).
|
|
62
|
+
React.useEffect(() => {
|
|
63
|
+
try {
|
|
64
|
+
if (!document.cookie.includes(SIDEBAR_STORAGE_KEY)) {
|
|
65
|
+
const stored = localStorage.getItem(SIDEBAR_STORAGE_KEY);
|
|
66
|
+
if (stored != null) {
|
|
67
|
+
document.cookie = `${SIDEBAR_STORAGE_KEY}=${stored}; path=/; max-age=31536000; SameSite=Lax`;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
// Ignore
|
|
73
|
+
}
|
|
74
|
+
}, []);
|
|
78
75
|
// Adds a keyboard shortcut to toggle the sidebar.
|
|
79
76
|
React.useEffect(() => {
|
|
80
77
|
const handleKeyDown = (event) => {
|
|
@@ -97,7 +94,8 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
97
94
|
openMobile,
|
|
98
95
|
setOpenMobile,
|
|
99
96
|
toggleSidebar,
|
|
100
|
-
|
|
97
|
+
animated,
|
|
98
|
+
}), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar, animated]);
|
|
101
99
|
return (_jsx(SidebarContext.Provider, { value: contextValue, children: _jsx(TooltipProvider, { delayDuration: 0, children: _jsx("div", { "data-slot": "sidebar-wrapper", style: {
|
|
102
100
|
'--sidebar-width': SIDEBAR_WIDTH,
|
|
103
101
|
'--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
|
|
@@ -105,7 +103,7 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
105
103
|
}, className: cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className), ...props, children: children }) }) }));
|
|
106
104
|
}
|
|
107
105
|
function Sidebar({ side = 'left', variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }) {
|
|
108
|
-
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
106
|
+
const { isMobile, state, openMobile, setOpenMobile, animated } = useSidebar();
|
|
109
107
|
if (collapsible === 'none') {
|
|
110
108
|
return (_jsx("div", { "data-slot": "sidebar", className: cn('bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col', className), ...props, children: children }));
|
|
111
109
|
}
|
|
@@ -114,9 +112,9 @@ function Sidebar({ side = 'left', variant = 'sidebar', collapsible = 'offcanvas'
|
|
|
114
112
|
'--sidebar-width': SIDEBAR_WIDTH_MOBILE,
|
|
115
113
|
}, side: side, children: [_jsxs(SheetHeader, { className: "sr-only", children: [_jsx(SheetTitle, { children: "Sidebar" }), _jsx(SheetDescription, { children: "Displays the mobile sidebar." })] }), _jsx("div", { className: "flex h-full w-full flex-col", children: children })] }) }));
|
|
116
114
|
}
|
|
117
|
-
return (_jsxs("div", { className: "group peer text-sidebar-foreground hidden md:block", "data-state": state, "data-collapsible": state === 'collapsed' ? collapsible : '', "data-variant": variant, "data-side": side, "data-slot": "sidebar", children: [_jsx("div", { "data-slot": "sidebar-gap", className: cn('relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear', 'group-data-[collapsible=offcanvas]:w-0', 'group-data-[side=right]:rotate-180', variant === 'floating' || variant === 'inset'
|
|
115
|
+
return (_jsxs("div", { className: "group peer text-sidebar-foreground hidden md:block", "data-state": state, "data-collapsible": state === 'collapsed' ? collapsible : '', "data-variant": variant, "data-side": side, "data-slot": "sidebar", children: [_jsx("div", { "data-slot": "sidebar-gap", className: cn('relative w-(--sidebar-width) bg-transparent', animated && 'transition-[width] duration-200 ease-linear', 'group-data-[collapsible=offcanvas]:w-0', 'group-data-[side=right]:rotate-180', variant === 'floating' || variant === 'inset'
|
|
118
116
|
? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'
|
|
119
|
-
: 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)') }), _jsx("div", { "data-slot": "sidebar-container", className: cn('fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear
|
|
117
|
+
: 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)') }), _jsx("div", { "data-slot": "sidebar-container", className: cn('fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex', animated && 'transition-[left,right,width] duration-200 ease-linear', side === 'left'
|
|
120
118
|
? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
|
|
121
119
|
: 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
|
|
122
120
|
// Adjust the padding for floating and inset variants.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
3
|
+
/** Default tooltip hover delay (ms) for canvas nodes and UI controls. */
|
|
4
|
+
export declare const TOOLTIP_DELAY_MS = 400;
|
|
3
5
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
6
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIvD,iBAAS,eAAe,CAAC,EACvB,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIvD,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,iBAAS,eAAe,CAAC,EACvB,aAAgC,EAChC,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEhF;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAE1F;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAiBvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
|
-
|
|
5
|
+
/** Default tooltip hover delay (ms) for canvas nodes and UI controls. */
|
|
6
|
+
export const TOOLTIP_DELAY_MS = 400;
|
|
7
|
+
function TooltipProvider({ delayDuration = TOOLTIP_DELAY_MS, ...props }) {
|
|
6
8
|
return (_jsx(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delayDuration: delayDuration, ...props }));
|
|
7
9
|
}
|
|
8
10
|
function Tooltip({ ...props }) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the selected repository context from the current URL.
|
|
3
|
+
* Returns `{ id, path }` — either or both may be set depending on the route.
|
|
4
|
+
*
|
|
5
|
+
* Matches:
|
|
6
|
+
* - `/repository/<id>` → id is set
|
|
7
|
+
* - `/create?repo=<path>` → path is set
|
|
8
|
+
*/
|
|
9
|
+
export declare function useSelectedRepository(): {
|
|
10
|
+
id: string | null;
|
|
11
|
+
path: string | null;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=use-selected-repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-selected-repository.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/use-selected-repository.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI;IAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAWlF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { usePathname, useSearchParams } from 'next/navigation';
|
|
3
|
+
/**
|
|
4
|
+
* Extracts the selected repository context from the current URL.
|
|
5
|
+
* Returns `{ id, path }` — either or both may be set depending on the route.
|
|
6
|
+
*
|
|
7
|
+
* Matches:
|
|
8
|
+
* - `/repository/<id>` → id is set
|
|
9
|
+
* - `/create?repo=<path>` → path is set
|
|
10
|
+
*/
|
|
11
|
+
export function useSelectedRepository() {
|
|
12
|
+
const pathname = usePathname();
|
|
13
|
+
const searchParams = useSearchParams();
|
|
14
|
+
const repoIdMatch = pathname.match(/^\/repository\/([^/]+)/);
|
|
15
|
+
const id = repoIdMatch?.[1] ?? null;
|
|
16
|
+
const isCreate = pathname.startsWith('/create');
|
|
17
|
+
const path = isCreate ? searchParams.get('repo') : null;
|
|
18
|
+
return { id, path };
|
|
19
|
+
}
|