@shepai/cli 1.162.0-pr506.4839064 → 1.162.0-pr508.dd32620

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.
Files changed (313) hide show
  1. package/apis/json-schema/FabLayoutConfig.yaml +11 -0
  2. package/apis/json-schema/Settings.yaml +3 -0
  3. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts +0 -20
  4. package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts.map +1 -1
  5. package/dist/packages/core/src/application/ports/output/services/index.d.ts +1 -1
  6. package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
  7. package/dist/packages/core/src/domain/generated/output.d.ts +13 -0
  8. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  9. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  10. package/dist/packages/core/src/infrastructure/di/container.js +0 -5
  11. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +1 -0
  12. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  13. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +6 -0
  14. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/050-add-fab-position-swapped.d.ts +15 -0
  15. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/050-add-fab-position-swapped.d.ts.map +1 -0
  16. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/050-add-fab-position-swapped.js +20 -0
  17. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts +1 -2
  18. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/services/external/github-repository.service.js +0 -20
  20. package/dist/src/presentation/cli/commands/repo/add.command.d.ts.map +1 -1
  21. package/dist/src/presentation/cli/commands/repo/add.command.js +1 -3
  22. package/dist/src/presentation/tui/wizards/github-import.wizard.d.ts +2 -5
  23. package/dist/src/presentation/tui/wizards/github-import.wizard.d.ts.map +1 -1
  24. package/dist/src/presentation/tui/wizards/github-import.wizard.js +6 -38
  25. package/dist/src/presentation/web/app/actions/list-github-repositories.d.ts +0 -1
  26. package/dist/src/presentation/web/app/actions/list-github-repositories.d.ts.map +1 -1
  27. package/dist/src/presentation/web/app/layout.d.ts.map +1 -1
  28. package/dist/src/presentation/web/app/layout.js +3 -1
  29. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.d.ts +1 -8
  30. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.d.ts.map +1 -1
  31. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.js +7 -37
  32. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.stories.d.ts +0 -1
  33. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.stories.d.ts.map +1 -1
  34. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.stories.js +0 -35
  35. package/dist/src/presentation/web/components/features/chat/ChatSheet.d.ts.map +1 -1
  36. package/dist/src/presentation/web/components/features/chat/ChatSheet.js +22 -2
  37. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  38. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +15 -1
  39. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  40. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +9 -2
  41. package/dist/src/presentation/web/hooks/fab-layout-context.d.ts +18 -0
  42. package/dist/src/presentation/web/hooks/fab-layout-context.d.ts.map +1 -0
  43. package/dist/src/presentation/web/hooks/fab-layout-context.js +19 -0
  44. package/dist/src/presentation/web/lib/fab-layout.d.ts +11 -0
  45. package/dist/src/presentation/web/lib/fab-layout.d.ts.map +1 -0
  46. package/dist/src/presentation/web/lib/fab-layout.js +21 -0
  47. package/dist/translations/ar/web.json +8 -0
  48. package/dist/translations/de/web.json +8 -0
  49. package/dist/translations/en/web.json +8 -0
  50. package/dist/translations/es/web.json +8 -0
  51. package/dist/translations/fr/web.json +8 -0
  52. package/dist/translations/he/web.json +8 -0
  53. package/dist/translations/pt/web.json +8 -0
  54. package/dist/translations/ru/web.json +8 -0
  55. package/dist/tsconfig.build.tsbuildinfo +1 -1
  56. package/package.json +1 -1
  57. package/web/.next/BUILD_ID +1 -1
  58. package/web/.next/build-manifest.json +2 -2
  59. package/web/.next/fallback-build-manifest.json +2 -2
  60. package/web/.next/prerender-manifest.json +3 -3
  61. package/web/.next/required-server-files.js +1 -1
  62. package/web/.next/required-server-files.json +1 -1
  63. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +56 -71
  64. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +2 -2
  65. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  66. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  67. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +52 -67
  68. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +2 -2
  69. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  70. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  71. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +58 -73
  72. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
  73. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  74. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  75. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +72 -87
  76. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +2 -2
  77. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  78. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  79. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +72 -87
  80. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +2 -2
  81. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  82. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  83. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +52 -67
  84. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +2 -2
  85. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  86. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  87. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +52 -67
  88. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
  89. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  90. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +52 -67
  92. package/web/.next/server/app/(dashboard)/chat/page.js +2 -2
  93. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  94. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  95. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +58 -73
  96. package/web/.next/server/app/(dashboard)/create/page.js +2 -2
  97. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  98. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  99. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +72 -87
  100. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +2 -2
  101. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  102. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  103. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +72 -87
  104. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +2 -2
  105. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  106. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  107. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +52 -67
  108. package/web/.next/server/app/(dashboard)/page.js +2 -2
  109. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  110. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  111. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +52 -67
  112. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +2 -2
  113. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  114. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  115. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +52 -67
  116. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
  117. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  118. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  119. package/web/.next/server/app/_global-error.html +2 -2
  120. package/web/.next/server/app/_global-error.rsc +1 -1
  121. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  122. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  123. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  124. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  125. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  126. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +10 -25
  127. package/web/.next/server/app/_not-found/page.js +2 -2
  128. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  129. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  130. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  131. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  132. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  133. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  134. package/web/.next/server/app/settings/page/server-reference-manifest.json +16 -31
  135. package/web/.next/server/app/settings/page.js +2 -2
  136. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  137. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  138. package/web/.next/server/app/skills/page/server-reference-manifest.json +20 -35
  139. package/web/.next/server/app/skills/page.js +2 -2
  140. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  141. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  142. package/web/.next/server/app/tools/page/server-reference-manifest.json +20 -35
  143. package/web/.next/server/app/tools/page.js +2 -2
  144. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  145. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  146. package/web/.next/server/app/version/page/server-reference-manifest.json +10 -25
  147. package/web/.next/server/app/version/page.js +2 -2
  148. package/web/.next/server/app/version/page.js.nft.json +1 -1
  149. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  150. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  151. package/web/.next/server/chunks/[root-of-the-server]__beda892a._.js.map +1 -1
  152. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  153. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  154. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  155. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  156. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  157. package/web/.next/server/chunks/ssr/[root-of-the-server]__13762e17._.js +4 -0
  158. package/web/.next/server/chunks/ssr/[root-of-the-server]__13762e17._.js.map +1 -0
  159. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  160. package/web/.next/server/chunks/ssr/[root-of-the-server]__56b70465._.js +4 -0
  161. package/web/.next/server/chunks/ssr/[root-of-the-server]__56b70465._.js.map +1 -0
  162. package/web/.next/server/chunks/ssr/[root-of-the-server]__7c878f0b._.js +4 -0
  163. package/web/.next/server/chunks/ssr/[root-of-the-server]__7c878f0b._.js.map +1 -0
  164. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b0aac03._.js +1 -1
  165. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b0aac03._.js.map +1 -1
  166. package/web/.next/server/chunks/ssr/[root-of-the-server]__8d27866c._.js +4 -0
  167. package/web/.next/server/chunks/ssr/[root-of-the-server]__8d27866c._.js.map +1 -0
  168. package/web/.next/server/chunks/ssr/[root-of-the-server]__bd6ed91a._.js +4 -0
  169. package/web/.next/server/chunks/ssr/[root-of-the-server]__bd6ed91a._.js.map +1 -0
  170. package/web/.next/server/chunks/ssr/[root-of-the-server]__c30f1f82._.js +4 -0
  171. package/web/.next/server/chunks/ssr/[root-of-the-server]__c30f1f82._.js.map +1 -0
  172. package/web/.next/server/chunks/ssr/[root-of-the-server]__ee0eaaf9._.js +3 -0
  173. package/web/.next/server/chunks/ssr/[root-of-the-server]__ee0eaaf9._.js.map +1 -0
  174. package/web/.next/server/chunks/ssr/[root-of-the-server]__f076cf0a._.js +4 -0
  175. package/web/.next/server/chunks/ssr/[root-of-the-server]__f076cf0a._.js.map +1 -0
  176. package/web/.next/server/chunks/ssr/[root-of-the-server]__fc4010d3._.js +4 -0
  177. package/web/.next/server/chunks/ssr/[root-of-the-server]__fc4010d3._.js.map +1 -0
  178. package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
  179. package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
  180. package/web/.next/server/chunks/ssr/_0dc06d07._.js.map +1 -1
  181. package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
  182. package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
  183. package/web/.next/server/chunks/ssr/{_bcaea66b._.js → _1879404a._.js} +2 -2
  184. package/web/.next/server/chunks/ssr/_1879404a._.js.map +1 -0
  185. package/web/.next/server/chunks/ssr/{_ce97386b._.js → _1c309165._.js} +2 -2
  186. package/web/.next/server/chunks/ssr/_1c309165._.js.map +1 -0
  187. package/web/.next/server/chunks/ssr/{_b9ba2473._.js → _1e08a336._.js} +2 -2
  188. package/web/.next/server/chunks/ssr/_1e08a336._.js.map +1 -0
  189. package/web/.next/server/chunks/ssr/_3a0b989f._.js +6 -0
  190. package/web/.next/server/chunks/ssr/_3a0b989f._.js.map +1 -0
  191. package/web/.next/server/chunks/ssr/_44bdb249._.js +3 -0
  192. package/web/.next/server/chunks/ssr/_44bdb249._.js.map +1 -0
  193. package/web/.next/server/chunks/ssr/_5119a3df._.js.map +1 -1
  194. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  195. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  196. package/web/.next/server/chunks/ssr/_5f69c13f._.js +4 -0
  197. package/web/.next/server/chunks/ssr/_5f69c13f._.js.map +1 -0
  198. package/web/.next/server/chunks/ssr/_7c5b97c6._.js +4 -0
  199. package/web/.next/server/chunks/ssr/_7c5b97c6._.js.map +1 -0
  200. package/web/.next/server/chunks/ssr/_82c57f10._.js +4 -0
  201. package/web/.next/server/chunks/ssr/_82c57f10._.js.map +1 -0
  202. package/web/.next/server/chunks/ssr/{_0727935d._.js → _9495d50b._.js} +2 -2
  203. package/web/.next/server/chunks/ssr/{_0727935d._.js.map → _9495d50b._.js.map} +1 -1
  204. package/web/.next/server/chunks/ssr/{_71ba6039._.js → _98608e52._.js} +2 -2
  205. package/web/.next/server/chunks/ssr/{_71ba6039._.js.map → _98608e52._.js.map} +1 -1
  206. package/web/.next/server/chunks/ssr/{_0fc83881._.js → _9e323f3d._.js} +2 -2
  207. package/web/.next/server/chunks/ssr/{_0fc83881._.js.map → _9e323f3d._.js.map} +1 -1
  208. package/web/.next/server/chunks/ssr/_a0e3f7e4._.js +4 -0
  209. package/web/.next/server/chunks/ssr/_a0e3f7e4._.js.map +1 -0
  210. package/web/.next/server/chunks/ssr/_ac4a3873._.js +1 -1
  211. package/web/.next/server/chunks/ssr/_ca0aa7f0._.js +4 -0
  212. package/web/.next/server/chunks/ssr/_ca0aa7f0._.js.map +1 -0
  213. package/web/.next/server/chunks/ssr/_cb5a021e._.js +4 -0
  214. package/web/.next/server/chunks/ssr/_cb5a021e._.js.map +1 -0
  215. package/web/.next/server/chunks/ssr/_d86175ae._.js +4 -0
  216. package/web/.next/server/chunks/ssr/_d86175ae._.js.map +1 -0
  217. package/web/.next/server/chunks/ssr/_d8bedf13._.js +4 -0
  218. package/web/.next/server/chunks/ssr/_d8bedf13._.js.map +1 -0
  219. package/web/.next/server/chunks/ssr/_d90b0a06._.js +3 -0
  220. package/web/.next/server/chunks/ssr/_d90b0a06._.js.map +1 -0
  221. package/web/.next/server/chunks/ssr/_fa7efce3._.js +6 -0
  222. package/web/.next/server/chunks/ssr/_fa7efce3._.js.map +1 -0
  223. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  224. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  225. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
  226. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  227. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  228. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  229. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  230. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +1 -1
  231. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +1 -1
  232. package/web/.next/server/pages/500.html +2 -2
  233. package/web/.next/server/server-reference-manifest.js +1 -1
  234. package/web/.next/server/server-reference-manifest.json +495 -636
  235. package/web/.next/static/chunks/28ae5046faef6cec.js +1 -0
  236. package/web/.next/static/chunks/34bd2e899b5a55e6.js +1 -0
  237. package/web/.next/static/chunks/{0b25e132c6474df2.js → 484e31561e6d523d.js} +1 -1
  238. package/web/.next/static/chunks/4864ff06a738d58b.js +1 -0
  239. package/web/.next/static/chunks/514e506334f8e57b.js +1 -0
  240. package/web/.next/static/chunks/{d98bc2adcbbf962b.js → 5c8dca184272bc4b.js} +3 -3
  241. package/web/.next/static/chunks/{b84a4b22a24e32e5.js → 67bf071c4145ff1d.js} +1 -1
  242. package/web/.next/static/chunks/{430ebb233af04232.js → 69b81659854111a2.js} +2 -2
  243. package/web/.next/static/chunks/6e02d90be8319561.js +1 -0
  244. package/web/.next/static/chunks/{6dfd3331ed16c17a.js → 8b2553218c70ef4e.js} +1 -1
  245. package/web/.next/static/chunks/{63f6860c64adac54.js → b1a0efa74fe6f260.js} +1 -1
  246. package/web/.next/static/chunks/b2656bfbdf34660a.js +1 -0
  247. package/web/.next/static/chunks/{35ec31863fa35a53.js → da31b5d51e87831e.js} +1 -1
  248. package/web/.next/static/chunks/e779296e738a812b.css +1 -0
  249. package/web/.next/static/chunks/f3e2b3afb8208e68.js +7 -0
  250. package/dist/packages/core/src/application/use-cases/repositories/list-github-organizations.use-case.d.ts +0 -13
  251. package/dist/packages/core/src/application/use-cases/repositories/list-github-organizations.use-case.d.ts.map +0 -1
  252. package/dist/packages/core/src/application/use-cases/repositories/list-github-organizations.use-case.js +0 -35
  253. package/dist/src/presentation/web/app/actions/list-github-organizations.d.ts +0 -6
  254. package/dist/src/presentation/web/app/actions/list-github-organizations.d.ts.map +0 -1
  255. package/dist/src/presentation/web/app/actions/list-github-organizations.js +0 -17
  256. package/web/.next/server/chunks/ssr/[root-of-the-server]__1abe77bb._.js +0 -4
  257. package/web/.next/server/chunks/ssr/[root-of-the-server]__1abe77bb._.js.map +0 -1
  258. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +0 -4
  259. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +0 -1
  260. package/web/.next/server/chunks/ssr/[root-of-the-server]__512b2c98._.js +0 -4
  261. package/web/.next/server/chunks/ssr/[root-of-the-server]__512b2c98._.js.map +0 -1
  262. package/web/.next/server/chunks/ssr/[root-of-the-server]__7562afc6._.js +0 -4
  263. package/web/.next/server/chunks/ssr/[root-of-the-server]__7562afc6._.js.map +0 -1
  264. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +0 -4
  265. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +0 -1
  266. package/web/.next/server/chunks/ssr/[root-of-the-server]__bde2d922._.js +0 -4
  267. package/web/.next/server/chunks/ssr/[root-of-the-server]__bde2d922._.js.map +0 -1
  268. package/web/.next/server/chunks/ssr/[root-of-the-server]__c7691da2._.js +0 -4
  269. package/web/.next/server/chunks/ssr/[root-of-the-server]__c7691da2._.js.map +0 -1
  270. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5ceba65._.js +0 -3
  271. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5ceba65._.js.map +0 -1
  272. package/web/.next/server/chunks/ssr/[root-of-the-server]__f1048f45._.js +0 -4
  273. package/web/.next/server/chunks/ssr/[root-of-the-server]__f1048f45._.js.map +0 -1
  274. package/web/.next/server/chunks/ssr/_075fae20._.js +0 -4
  275. package/web/.next/server/chunks/ssr/_075fae20._.js.map +0 -1
  276. package/web/.next/server/chunks/ssr/_125c55af._.js +0 -4
  277. package/web/.next/server/chunks/ssr/_125c55af._.js.map +0 -1
  278. package/web/.next/server/chunks/ssr/_22e00a14._.js +0 -4
  279. package/web/.next/server/chunks/ssr/_22e00a14._.js.map +0 -1
  280. package/web/.next/server/chunks/ssr/_289a182a._.js +0 -3
  281. package/web/.next/server/chunks/ssr/_289a182a._.js.map +0 -1
  282. package/web/.next/server/chunks/ssr/_628621c7._.js +0 -4
  283. package/web/.next/server/chunks/ssr/_628621c7._.js.map +0 -1
  284. package/web/.next/server/chunks/ssr/_68996e5b._.js +0 -3
  285. package/web/.next/server/chunks/ssr/_68996e5b._.js.map +0 -1
  286. package/web/.next/server/chunks/ssr/_9412b27f._.js +0 -4
  287. package/web/.next/server/chunks/ssr/_9412b27f._.js.map +0 -1
  288. package/web/.next/server/chunks/ssr/_a5a5901d._.js +0 -4
  289. package/web/.next/server/chunks/ssr/_a5a5901d._.js.map +0 -1
  290. package/web/.next/server/chunks/ssr/_b9ba2473._.js.map +0 -1
  291. package/web/.next/server/chunks/ssr/_bcaea66b._.js.map +0 -1
  292. package/web/.next/server/chunks/ssr/_c3f595c6._.js +0 -4
  293. package/web/.next/server/chunks/ssr/_c3f595c6._.js.map +0 -1
  294. package/web/.next/server/chunks/ssr/_ce97386b._.js.map +0 -1
  295. package/web/.next/server/chunks/ssr/_f1ba9be6._.js +0 -6
  296. package/web/.next/server/chunks/ssr/_f1ba9be6._.js.map +0 -1
  297. package/web/.next/server/chunks/ssr/_f33cd07e._.js +0 -6
  298. package/web/.next/server/chunks/ssr/_f33cd07e._.js.map +0 -1
  299. package/web/.next/server/chunks/ssr/_f8b45233._.js +0 -4
  300. package/web/.next/server/chunks/ssr/_f8b45233._.js.map +0 -1
  301. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_select_tsx_45d6b8ae._.js +0 -3
  302. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_select_tsx_45d6b8ae._.js.map +0 -1
  303. package/web/.next/static/chunks/045afc2f5599f55e.js +0 -7
  304. package/web/.next/static/chunks/50a500c1cc2dee74.js +0 -1
  305. package/web/.next/static/chunks/63b4954715fc3423.js +0 -1
  306. package/web/.next/static/chunks/6b7c8cc4aaebde67.js +0 -1
  307. package/web/.next/static/chunks/86c476f04ff32e7b.css +0 -1
  308. package/web/.next/static/chunks/9059af01c4765dae.js +0 -1
  309. package/web/.next/static/chunks/c3a67566f78b5bc3.js +0 -1
  310. package/web/.next/static/chunks/e4f58183caab77d8.js +0 -1
  311. /package/web/.next/static/{Nr75BQmqg1jHaq9Qff_Wk → IJHZRhTBPkXpDW-gf5mSb}/_buildManifest.js +0 -0
  312. /package/web/.next/static/{Nr75BQmqg1jHaq9Qff_Wk → IJHZRhTBPkXpDW-gf5mSb}/_clientMiddlewareManifest.json +0 -0
  313. /package/web/.next/static/{Nr75BQmqg1jHaq9Qff_Wk → IJHZRhTBPkXpDW-gf5mSb}/_ssgManifest.js +0 -0
@@ -1,5 +1,4 @@
1
1
  import type { GitHubRepo } from '../../../../../../packages/core/src/application/ports/output/services/github-repository-service.interface.js';
2
- import type { GitHubOrganization } from '../../../../../../packages/core/src/application/ports/output/services/github-repository-service.interface.js';
3
2
  export interface GitHubRepoBrowserProps {
4
3
  onSelect: (nameWithOwner: string) => void;
5
4
  loading?: boolean;
@@ -7,16 +6,10 @@ export interface GitHubRepoBrowserProps {
7
6
  fetchRepos?: (input?: {
8
7
  search?: string;
9
8
  limit?: number;
10
- owner?: string;
11
9
  }) => Promise<{
12
10
  repos?: GitHubRepo[];
13
11
  error?: string;
14
12
  }>;
15
- /** Override the fetch function for testing/stories */
16
- fetchOrgs?: () => Promise<{
17
- orgs?: GitHubOrganization[];
18
- error?: string;
19
- }>;
20
13
  }
21
- export declare function GitHubRepoBrowser({ onSelect, loading: externalLoading, fetchRepos, fetchOrgs, }: GitHubRepoBrowserProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function GitHubRepoBrowser({ onSelect, loading: externalLoading, fetchRepos, }: GitHubRepoBrowserProps): import("react/jsx-runtime").JSX.Element;
22
15
  //# sourceMappingURL=github-repo-browser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"github-repo-browser.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/github-import-dialog/github-repo-browser.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oFAAoF,CAAC;AACrH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oFAAoF,CAAC;AAK7H,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,KAAK,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxD,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;QAAE,IAAI,CAAC,EAAE,kBAAkB,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5E;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAO,EAAE,eAAuB,EAChC,UAAmC,EACnC,SAAmC,GACpC,EAAE,sBAAsB,2CA+KxB"}
1
+ {"version":3,"file":"github-repo-browser.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/github-import-dialog/github-repo-browser.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oFAAoF,CAAC;AAErH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,KAAK,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzD;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAO,EAAE,eAAuB,EAChC,UAAmC,GACpC,EAAE,sBAAsB,2CAsIxB"}
@@ -5,44 +5,18 @@ import { Lock, Globe, Loader2, Search, AlertCircle } from 'lucide-react';
5
5
  import { Input } from '../../ui/input.js';
6
6
  import { Badge } from '../../ui/badge.js';
7
7
  import { Skeleton } from '../../ui/skeleton.js';
8
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
9
8
  import { listGitHubRepositories } from '../../../app/actions/list-github-repositories.js';
10
- import { listGitHubOrganizations } from '../../../app/actions/list-github-organizations.js';
11
- /** Sentinel value representing the authenticated user's personal account */
12
- const PERSONAL_OWNER = '__personal__';
13
- export function GitHubRepoBrowser({ onSelect, loading: externalLoading = false, fetchRepos = listGitHubRepositories, fetchOrgs = listGitHubOrganizations, }) {
9
+ export function GitHubRepoBrowser({ onSelect, loading: externalLoading = false, fetchRepos = listGitHubRepositories, }) {
14
10
  const [repos, setRepos] = useState([]);
15
- const [orgs, setOrgs] = useState([]);
16
11
  const [fetching, setFetching] = useState(true);
17
12
  const [error, setError] = useState('');
18
13
  const [search, setSearch] = useState('');
19
- const [selectedOwner, setSelectedOwner] = useState(PERSONAL_OWNER);
20
14
  const debounceRef = useRef(null);
21
- // Fetch organizations on mount
22
- useEffect(() => {
23
- async function loadOrgs() {
24
- try {
25
- const result = await fetchOrgs();
26
- if (result.orgs) {
27
- setOrgs(result.orgs);
28
- }
29
- }
30
- catch {
31
- // Org listing failure is non-critical — user can still browse personal repos
32
- }
33
- }
34
- loadOrgs();
35
- }, [fetchOrgs]);
36
- const fetchData = useCallback(async (searchTerm, owner) => {
15
+ const fetchData = useCallback(async (searchTerm) => {
37
16
  setFetching(true);
38
17
  setError('');
39
18
  try {
40
- const input = {};
41
- if (searchTerm)
42
- input.search = searchTerm;
43
- if (owner && owner !== PERSONAL_OWNER)
44
- input.owner = owner;
45
- const result = await fetchRepos(Object.keys(input).length > 0 ? input : undefined);
19
+ const result = await fetchRepos(searchTerm ? { search: searchTerm } : undefined);
46
20
  if (result.error) {
47
21
  setError(result.error);
48
22
  setRepos([]);
@@ -60,23 +34,19 @@ export function GitHubRepoBrowser({ onSelect, loading: externalLoading = false,
60
34
  }
61
35
  }, [fetchRepos]);
62
36
  useEffect(() => {
63
- fetchData(search || undefined, selectedOwner);
64
- }, [fetchData, selectedOwner]); // eslint-disable-line react-hooks/exhaustive-deps
37
+ fetchData();
38
+ }, [fetchData]);
65
39
  function handleSearchChange(value) {
66
40
  setSearch(value);
67
41
  if (debounceRef.current)
68
42
  clearTimeout(debounceRef.current);
69
43
  debounceRef.current = setTimeout(() => {
70
- fetchData(value || undefined, selectedOwner);
44
+ fetchData(value || undefined);
71
45
  }, 300);
72
46
  }
73
- function handleOwnerChange(value) {
74
- setSelectedOwner(value);
75
- setSearch('');
76
- }
77
47
  const disabled = externalLoading;
78
48
  if (error && !fetching) {
79
49
  return (_jsxs("div", { className: "flex flex-col items-center gap-2 py-8 text-center", "data-testid": "repo-browser-error", children: [_jsx(AlertCircle, { className: "text-destructive h-8 w-8" }), _jsx("p", { className: "text-destructive text-sm", children: error })] }));
80
50
  }
81
- return (_jsxs("div", { className: "flex flex-col gap-3", children: [orgs.length > 0 ? (_jsxs(Select, { value: selectedOwner, onValueChange: handleOwnerChange, disabled: disabled, children: [_jsx(SelectTrigger, { "aria-label": "Select owner", children: _jsx(SelectValue, { placeholder: "Select owner" }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: PERSONAL_OWNER, children: "My repositories" }), orgs.map((org) => (_jsx(SelectItem, { value: org.login, children: org.login }, org.login)))] })] })) : null, _jsxs("div", { className: "relative", children: [_jsx(Search, { className: "text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2" }), _jsx(Input, { placeholder: "Search repositories...", value: search, onChange: (e) => handleSearchChange(e.target.value), className: "ps-9", disabled: disabled, "aria-label": "Search repositories" })] }), _jsx("div", { className: "max-h-64 overflow-x-hidden overflow-y-auto rounded-md border", role: "listbox", "aria-label": "GitHub repositories", children: fetching ? (_jsx("div", { className: "flex flex-col gap-2 p-3", "data-testid": "repo-browser-loading", children: Array.from({ length: 5 }).map((_, i) => (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Skeleton, { className: "h-4 w-48" }), _jsx(Skeleton, { className: "h-3 w-72" })] }, `skeleton-${String(i)}`))) })) : repos.length === 0 ? (_jsx("div", { className: "text-muted-foreground py-8 text-center text-sm", "data-testid": "repo-browser-empty", children: "No repositories found" })) : (repos.map((repo) => (_jsxs("button", { type: "button", role: "option", "aria-selected": false, className: "hover:bg-accent flex w-full items-start gap-2 border-b px-3 py-2.5 text-start last:border-b-0 disabled:opacity-50", onClick: () => onSelect(repo.nameWithOwner), disabled: disabled, children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "truncate text-sm font-medium", children: repo.nameWithOwner }), _jsx(Badge, { variant: repo.isPrivate ? 'secondary' : 'outline', className: "shrink-0 text-xs", children: repo.isPrivate ? (_jsxs(_Fragment, { children: [_jsx(Lock, { className: "me-1 h-3 w-3" }), "Private"] })) : (_jsxs(_Fragment, { children: [_jsx(Globe, { className: "me-1 h-3 w-3" }), "Public"] })) })] }), repo.description ? (_jsx("p", { className: "text-muted-foreground mt-0.5 truncate text-xs", children: repo.description })) : null] }), disabled ? _jsx(Loader2, { className: "mt-0.5 h-4 w-4 shrink-0 animate-spin" }) : null] }, repo.nameWithOwner)))) })] }));
51
+ return (_jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs("div", { className: "relative", children: [_jsx(Search, { className: "text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2" }), _jsx(Input, { placeholder: "Search repositories...", value: search, onChange: (e) => handleSearchChange(e.target.value), className: "ps-9", disabled: disabled, "aria-label": "Search repositories" })] }), _jsx("div", { className: "max-h-64 overflow-x-hidden overflow-y-auto rounded-md border", role: "listbox", "aria-label": "GitHub repositories", children: fetching ? (_jsx("div", { className: "flex flex-col gap-2 p-3", "data-testid": "repo-browser-loading", children: Array.from({ length: 5 }).map((_, i) => (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx(Skeleton, { className: "h-4 w-48" }), _jsx(Skeleton, { className: "h-3 w-72" })] }, `skeleton-${String(i)}`))) })) : repos.length === 0 ? (_jsx("div", { className: "text-muted-foreground py-8 text-center text-sm", "data-testid": "repo-browser-empty", children: "No repositories found" })) : (repos.map((repo) => (_jsxs("button", { type: "button", role: "option", "aria-selected": false, className: "hover:bg-accent flex w-full items-start gap-2 border-b px-3 py-2.5 text-start last:border-b-0 disabled:opacity-50", onClick: () => onSelect(repo.nameWithOwner), disabled: disabled, children: [_jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "truncate text-sm font-medium", children: repo.nameWithOwner }), _jsx(Badge, { variant: repo.isPrivate ? 'secondary' : 'outline', className: "shrink-0 text-xs", children: repo.isPrivate ? (_jsxs(_Fragment, { children: [_jsx(Lock, { className: "me-1 h-3 w-3" }), "Private"] })) : (_jsxs(_Fragment, { children: [_jsx(Globe, { className: "me-1 h-3 w-3" }), "Public"] })) })] }), repo.description ? (_jsx("p", { className: "text-muted-foreground mt-0.5 truncate text-xs", children: repo.description })) : null] }), disabled ? _jsx(Loader2, { className: "mt-0.5 h-4 w-4 shrink-0 animate-spin" }) : null] }, repo.nameWithOwner)))) })] }));
82
52
  }
@@ -4,7 +4,6 @@ declare const meta: Meta<typeof GitHubRepoBrowser>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof GitHubRepoBrowser>;
6
6
  export declare const Default: Story;
7
- export declare const WithOrganizations: Story;
8
7
  export declare const Loading: Story;
9
8
  export declare const Empty: Story;
10
9
  export declare const Error: Story;
@@ -1 +1 @@
1
- {"version":3,"file":"github-repo-browser.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/github-import-dialog/github-repo-browser.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAgE1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAiBxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAU/B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC"}
1
+ {"version":3,"file":"github-repo-browser.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/github-import-dialog/github-repo-browser.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAyC1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAiBxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC"}
@@ -38,26 +38,6 @@ const mockRepos = [
38
38
  pushedAt: '2025-03-11T09:00:00Z',
39
39
  },
40
40
  ];
41
- const mockOrgRepos = [
42
- {
43
- name: 'platform',
44
- nameWithOwner: 'acme-corp/platform',
45
- description: 'Core platform monorepo',
46
- isPrivate: true,
47
- pushedAt: '2025-03-15T10:00:00Z',
48
- },
49
- {
50
- name: 'design-system',
51
- nameWithOwner: 'acme-corp/design-system',
52
- description: 'Shared design system components',
53
- isPrivate: false,
54
- pushedAt: '2025-03-14T08:00:00Z',
55
- },
56
- ];
57
- const mockOrgs = [
58
- { login: 'acme-corp', description: 'Acme Corporation' },
59
- { login: 'open-source-collective', description: 'Open source projects' },
60
- ];
61
41
  const meta = {
62
42
  title: 'Composed/GitHubRepoBrowser',
63
43
  component: GitHubRepoBrowser,
@@ -76,31 +56,17 @@ export default meta;
76
56
  export const Default = {
77
57
  args: {
78
58
  fetchRepos: () => Promise.resolve({ repos: mockRepos }),
79
- fetchOrgs: () => Promise.resolve({ orgs: [] }),
80
- },
81
- };
82
- export const WithOrganizations = {
83
- args: {
84
- fetchRepos: (input) => {
85
- if (input?.owner === 'acme-corp') {
86
- return Promise.resolve({ repos: mockOrgRepos });
87
- }
88
- return Promise.resolve({ repos: mockRepos });
89
- },
90
- fetchOrgs: () => Promise.resolve({ orgs: mockOrgs }),
91
59
  },
92
60
  };
93
61
  export const Loading = {
94
62
  args: {
95
63
  // eslint-disable-next-line @typescript-eslint/no-empty-function
96
64
  fetchRepos: () => new Promise(() => { }), // never resolves
97
- fetchOrgs: () => Promise.resolve({ orgs: [] }),
98
65
  },
99
66
  };
100
67
  export const Empty = {
101
68
  args: {
102
69
  fetchRepos: () => Promise.resolve({ repos: [] }),
103
- fetchOrgs: () => Promise.resolve({ orgs: [] }),
104
70
  },
105
71
  };
106
72
  export const Error = {
@@ -108,6 +74,5 @@ export const Error = {
108
74
  fetchRepos: () => Promise.resolve({
109
75
  error: 'GitHub CLI is not authenticated. Run `gh auth login` to sign in.',
110
76
  }),
111
- fetchOrgs: () => Promise.resolve({ orgs: [] }),
112
77
  },
113
78
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ChatSheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/chat/ChatSheet.tsx"],"names":[],"mappings":"AAyDA,wBAAgB,eAAe,4CAkY9B"}
1
+ {"version":3,"file":"ChatSheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/chat/ChatSheet.tsx"],"names":[],"mappings":"AA2DA,wBAAgB,eAAe,4CAwY9B"}
@@ -8,6 +8,8 @@ import { Button } from '../../ui/button.js';
8
8
  import { ChatTab } from './ChatTab.js';
9
9
  import { ChatDotIndicator } from './ChatDotIndicator.js';
10
10
  import { useTurnStatus } from '../../../hooks/turn-statuses-provider.js';
11
+ import { useFabLayout } from '../../../hooks/fab-layout-context.js';
12
+ import { useSidebar } from '../../ui/sidebar.js';
11
13
  // ── Persistent global chat popup (draggable + resizable) ──────────────────
12
14
  const DEFAULT_W = 520;
13
15
  const DEFAULT_H_VH = 70; // percentage of viewport height
@@ -48,6 +50,8 @@ export function GlobalChatPopup() {
48
50
  const [hasOpened, setHasOpened] = useState(false);
49
51
  const [isMaximized, setIsMaximized] = useState(false);
50
52
  const globalChatTurnStatus = useTurnStatus('global');
53
+ const { swapPosition } = useFabLayout();
54
+ const { state: sidebarState } = useSidebar();
51
55
  // Position/size — initialized from localStorage
52
56
  // eslint-disable-next-line react/hook-use-state -- wrapped setters below
53
57
  const [pos, setPosRaw] = useState(() => loadPersistedState().pos);
@@ -229,7 +233,7 @@ export function GlobalChatPopup() {
229
233
  };
230
234
  return (_jsxs(_Fragment, { children: [hasOpened ? (_jsxs("div", { ref: panelRef, className: cn(isMaximized
231
235
  ? 'bg-background fixed inset-0 z-[60] flex flex-col overflow-hidden dark:bg-neutral-900'
232
- : cn(!pos && 'fixed end-8 bottom-24', 'z-[60] flex flex-col overflow-hidden rounded-lg', 'border-border/60 border dark:border-white/10', 'bg-background dark:bg-neutral-900', 'shadow-[0_8px_40px_-8px_rgba(0,0,0,0.2)] dark:shadow-[0_8px_40px_-8px_rgba(0,0,0,0.6)]'), 'transition-opacity duration-300 ease-out', isOpen ? 'pointer-events-auto opacity-100' : 'pointer-events-none opacity-0'), style: panelStyle, children: [!isMaximized ? (_jsx("div", { className: "h-[2px] shrink-0 bg-gradient-to-r from-transparent via-violet-500/50 to-transparent" })) : null, !isMaximized ? (_jsx("div", { onMouseDown: onResizeStart, className: "absolute end-0 top-0 z-10 h-4 w-4 cursor-ne-resize" })) : null, _jsxs("div", { onMouseDown: isMaximized ? undefined : onDragStart, className: cn('relative flex h-11 shrink-0 items-center gap-2.5 border-b border-black/[0.06] px-3.5 dark:border-white/[0.06]', !isMaximized && 'cursor-grab active:cursor-grabbing'), children: [_jsx("div", { className: "from-foreground/[0.02] to-foreground/[0.02] pointer-events-none absolute inset-0 bg-gradient-to-r via-transparent" }), !isMaximized ? (_jsx(GripVertical, { className: "text-foreground/15 relative h-3.5 w-3.5 shrink-0" })) : null, _jsx("div", { className: "relative flex h-5 w-5 items-center justify-center", children: _jsx(Bot, { className: "text-foreground/50 h-4 w-4" }) }), _jsxs("div", { className: "relative flex items-baseline gap-2", children: [_jsx("span", { className: "text-foreground/90 text-base font-bold tracking-tight", children: "Shep" }), _jsx("span", { className: "text-foreground/30 text-xs font-medium tracking-widest uppercase", children: "global" })] }), _jsxs("div", { className: "relative ms-auto flex items-center gap-0.5", children: [_jsx("button", { type: "button", onClick: toggleMaximize, className: "text-foreground/30 hover:text-foreground/60 rounded-md p-1 transition-colors", title: isMaximized ? 'Restore (⌘⇧M)' : 'Maximize (⌘⇧M)', children: isMaximized ? (_jsx(Minimize2, { className: "h-3.5 w-3.5" })) : (_jsx(Maximize2, { className: "h-3.5 w-3.5" })) }), _jsx("button", { type: "button", onClick: handleClose, className: "text-foreground/30 hover:text-foreground/60 rounded-md p-1 transition-colors", title: "Close (\u2318\u21E7K)", children: _jsx(X, { className: "h-3.5 w-3.5" }) })] })] }), _jsx("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(ChatTab, { featureId: "global" }) }), !isMaximized ? (_jsx("div", { onMouseDown: (e) => {
236
+ : cn(!pos && (swapPosition ? 'fixed start-8 bottom-24' : 'fixed end-8 bottom-24'), 'z-[60] flex flex-col overflow-hidden rounded-lg', 'border-border/60 border dark:border-white/10', 'bg-background dark:bg-neutral-900', 'shadow-[0_8px_40px_-8px_rgba(0,0,0,0.2)] dark:shadow-[0_8px_40px_-8px_rgba(0,0,0,0.6)]'), 'transition-opacity duration-300 ease-out', isOpen ? 'pointer-events-auto opacity-100' : 'pointer-events-none opacity-0'), style: panelStyle, children: [!isMaximized ? (_jsx("div", { className: "h-[2px] shrink-0 bg-gradient-to-r from-transparent via-violet-500/50 to-transparent" })) : null, !isMaximized ? (_jsx("div", { onMouseDown: onResizeStart, className: "absolute end-0 top-0 z-10 h-4 w-4 cursor-ne-resize" })) : null, _jsxs("div", { onMouseDown: isMaximized ? undefined : onDragStart, className: cn('relative flex h-11 shrink-0 items-center gap-2.5 border-b border-black/[0.06] px-3.5 dark:border-white/[0.06]', !isMaximized && 'cursor-grab active:cursor-grabbing'), children: [_jsx("div", { className: "from-foreground/[0.02] to-foreground/[0.02] pointer-events-none absolute inset-0 bg-gradient-to-r via-transparent" }), !isMaximized ? (_jsx(GripVertical, { className: "text-foreground/15 relative h-3.5 w-3.5 shrink-0" })) : null, _jsx("div", { className: "relative flex h-5 w-5 items-center justify-center", children: _jsx(Bot, { className: "text-foreground/50 h-4 w-4" }) }), _jsxs("div", { className: "relative flex items-baseline gap-2", children: [_jsx("span", { className: "text-foreground/90 text-base font-bold tracking-tight", children: "Shep" }), _jsx("span", { className: "text-foreground/30 text-xs font-medium tracking-widest uppercase", children: "global" })] }), _jsxs("div", { className: "relative ms-auto flex items-center gap-0.5", children: [_jsx("button", { type: "button", onClick: toggleMaximize, className: "text-foreground/30 hover:text-foreground/60 rounded-md p-1 transition-colors", title: isMaximized ? 'Restore (⌘⇧M)' : 'Maximize (⌘⇧M)', children: isMaximized ? (_jsx(Minimize2, { className: "h-3.5 w-3.5" })) : (_jsx(Maximize2, { className: "h-3.5 w-3.5" })) }), _jsx("button", { type: "button", onClick: handleClose, className: "text-foreground/30 hover:text-foreground/60 rounded-md p-1 transition-colors", title: "Close (\u2318\u21E7K)", children: _jsx(X, { className: "h-3.5 w-3.5" }) })] })] }), _jsx("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(ChatTab, { featureId: "global" }) }), !isMaximized ? (_jsx("div", { onMouseDown: (e) => {
233
237
  e.preventDefault();
234
238
  e.stopPropagation();
235
239
  const panel = panelRef.current;
@@ -255,7 +259,23 @@ export function GlobalChatPopup() {
255
259
  };
256
260
  document.addEventListener('mousemove', onMove);
257
261
  document.addEventListener('mouseup', onUp);
258
- }, className: "absolute end-0 bottom-0 z-10 h-4 w-4 cursor-se-resize" })) : null] })) : null, _jsxs("div", { className: cn('group/fab fixed end-8 bottom-6 z-30', isMaximized && 'hidden'), children: [_jsxs(Button, { size: "icon", onClick: toggle, className: cn('relative h-14 w-14 rounded-full shadow-lg', 'transition-all duration-200 hover:scale-105 hover:shadow-xl active:scale-95', isOpen
262
+ }, className: "absolute end-0 bottom-0 z-10 h-4 w-4 cursor-se-resize" })) : null] })) : null, _jsxs(ChatFabWrapper, { swapPosition: swapPosition, sidebarState: sidebarState, isMaximized: isMaximized, children: [_jsxs(Button, { size: "icon", onClick: toggle, className: cn('relative h-14 w-14 rounded-full shadow-lg', 'transition-all duration-200 hover:scale-105 hover:shadow-xl active:scale-95', isOpen
259
263
  ? 'bg-violet-600 text-white hover:bg-violet-500'
260
264
  : 'bg-violet-500 text-white hover:bg-violet-400 dark:bg-violet-500 dark:hover:bg-violet-400'), children: [_jsx(MessageSquare, { className: cn('absolute h-7 w-7 stroke-[2.5] transition-all duration-200', isOpen ? 'scale-0 rotate-90 opacity-0' : 'scale-100 rotate-0 opacity-100') }), _jsx(X, { className: cn('absolute h-6 w-6 stroke-[2.5] transition-all duration-200', isOpen ? 'scale-100 rotate-0 opacity-100' : 'scale-0 -rotate-90 opacity-0') }), !isOpen && _jsx(ChatDotIndicator, { status: globalChatTurnStatus, className: "end-0 top-0" })] }), _jsx("div", { className: "pointer-events-none absolute bottom-[calc(100%+8px)] left-1/2 -translate-x-1/2 translate-y-1 opacity-0 transition-all duration-200 group-hover/fab:translate-y-0 group-hover/fab:opacity-100", children: _jsxs("div", { className: "bg-foreground rounded-lg px-3 py-1.5 text-center shadow-lg", children: [_jsx("p", { className: "text-background text-xs font-medium whitespace-nowrap", children: t('chat.shepChat') }), _jsxs("p", { className: "text-background/50 mt-0.5 flex items-center justify-center gap-1 text-[10px]", children: [_jsx("kbd", { className: "bg-background/15 rounded px-1 py-px font-mono", children: "\u2318" }), _jsx("kbd", { className: "bg-background/15 rounded px-1 py-px font-mono", children: "\u21E7" }), _jsx("kbd", { className: "bg-background/15 rounded px-1 py-px font-mono", children: "K" })] })] }) })] })] }));
261
265
  }
266
+ /** Wrapper for the Chat FAB that handles position swapping. */
267
+ function ChatFabWrapper({ swapPosition, sidebarState, isMaximized, children, }) {
268
+ const { i18n } = useTranslation('web');
269
+ const isRtl = i18n.dir() === 'rtl';
270
+ if (!swapPosition) {
271
+ return (_jsx("div", { className: cn('group/fab fixed end-8 bottom-6 z-30', isMaximized && 'hidden'), children: children }));
272
+ }
273
+ // Swapped: chat FAB moves to start side, tracking sidebar width
274
+ const sidebarOffset = sidebarState === 'expanded'
275
+ ? 'calc(var(--sidebar-width) + 32px)'
276
+ : 'calc(var(--sidebar-width-icon) + 32px)';
277
+ const positionStyle = isRtl
278
+ ? { right: sidebarOffset, transition: 'right 200ms ease-in-out' }
279
+ : { left: sidebarOffset, transition: 'left 200ms ease-in-out' };
280
+ return (_jsx("div", { className: cn('group/fab fixed bottom-6 z-30', isMaximized && 'hidden'), style: positionStyle, children: children }));
281
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAIpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AA+B5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CA+czF"}
1
+ {"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAIpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAgC5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CA+czF"}
@@ -16,6 +16,7 @@ import { useSoundAction } from '../../../hooks/use-sound-action.js';
16
16
  import { useDrawerCloseGuard } from '../../../hooks/drawer-close-guard.js';
17
17
  import { useViewportPersistence } from '../../../hooks/use-viewport-persistence.js';
18
18
  import { useSidebar } from '../../ui/sidebar.js';
19
+ import { useFabLayout } from '../../../hooks/fab-layout-context.js';
19
20
  import { ControlCenterEmptyState } from './control-center-empty-state.js';
20
21
  import { useControlCenterState } from './use-control-center-state.js';
21
22
  const AUTO_FOCUS_OPTIONS = {
@@ -353,11 +354,24 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
353
354
  const canvasToolbar = (_jsx(CanvasToolbar, { showArchived: showArchived, onToggleArchived: () => setShowArchived(!showArchived), onResetViewport: resetViewport }));
354
355
  return (_jsxs(_Fragment, { children: [_jsx(FeaturesCanvas, { nodes: showCanvas ? displayNodes : [], edges: showCanvas ? edges : [], selectedFeatureId: selectedFeatureId, selectedRepository: selectedRepository, defaultViewport: defaultViewport, onNodesChange: onNodesChange, onConnect: handleConnect, onAddFeature: handleAddFeature, onNodeClick: handleNodeClick, onPaneClick: handleClearDrawers, onMoveEnd: handleMoveEnd, toolbar: canvasToolbar, emptyState: _jsx(ControlCenterEmptyState, { onRepositorySelect: addRepoAndFocus }) }), showCanvas ? _jsx(CreateFab, { actions: fabActions }) : null] }));
355
356
  }
356
- /** (+) FAB that tracks sidebar width via CSS var + transition. */
357
+ /** (+) FAB that tracks sidebar width via CSS var + transition.
358
+ * When fabLayout.swapPosition is true, moves to the end side (right in LTR). */
357
359
  function CreateFab({ actions }) {
358
360
  const { state } = useSidebar();
359
361
  const { i18n } = useTranslation('web');
362
+ const { swapPosition } = useFabLayout();
360
363
  const isRtl = i18n.dir() === 'rtl';
364
+ // Default: start side (left in LTR), tracking sidebar width
365
+ // Swapped: end side (right in LTR), fixed 32px from edge
366
+ if (swapPosition) {
367
+ const positionStyle = isRtl
368
+ ? {
369
+ left: 'calc(var(--sidebar-width-icon) + 32px)',
370
+ transition: 'left 200ms ease-in-out',
371
+ }
372
+ : { right: '32px', transition: 'right 200ms ease-in-out' };
373
+ return (_jsx(FloatingActionButton, { actions: actions, className: "!fixed bottom-6", style: positionStyle }));
374
+ }
361
375
  // Sidebar expanded = var(--sidebar-width) = 16rem, collapsed = var(--sidebar-width-icon) = 3rem
362
376
  // Position just outside the sidebar edge with 16px gap
363
377
  const offset = state === 'expanded'
@@ -1 +1 @@
1
- {"version":3,"file":"settings-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.tsx"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,QAAQ,EAIT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AA6B/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AA+QD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,GACnB,EAAE,uBAAuB,2CAm1CzB"}
1
+ {"version":3,"file":"settings-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.tsx"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EACV,QAAQ,EAKT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AA8B/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AA+QD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,GACnB,EAAE,uBAAuB,2CAi3CzB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState, useTransition, useRef, useEffect, useCallback } from 'react';
4
- import { Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Globe, Minus, Plus, ExternalLink, Settings2, Timer, MessageSquare, } from 'lucide-react';
4
+ import { Check, Bot, Terminal, GitBranch, Activity, Bell, Flag, Database, Globe, Minus, Plus, ExternalLink, Settings2, Timer, MessageSquare, LayoutGrid, } from 'lucide-react';
5
5
  import { toast } from 'sonner';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { cn } from '../../../lib/utils.js';
@@ -36,6 +36,7 @@ const SECTIONS = [
36
36
  { id: 'notifications', labelKey: 'settings.sections.notifications', icon: Bell },
37
37
  { id: 'feature-flags', labelKey: 'settings.sections.flags', icon: Flag },
38
38
  { id: 'interactive-agent', labelKey: 'settings.sections.chat', icon: MessageSquare },
39
+ { id: 'fab-layout', labelKey: 'settings.sections.layout', icon: LayoutGrid },
39
40
  { id: 'database', labelKey: 'settings.sections.database', icon: Database },
40
41
  ];
41
42
  function useSaveIndicator() {
@@ -190,6 +191,9 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTe
190
191
  const [interactiveEnabled, setInteractiveEnabled] = useState(interactiveAgentConfig.enabled);
191
192
  const [interactiveTimeout, setInteractiveTimeout] = useState(String(interactiveAgentConfig.autoTimeoutMinutes));
192
193
  const [interactiveSessions, setInteractiveSessions] = useState(String(interactiveAgentConfig.maxConcurrentSessions));
194
+ // FAB layout state
195
+ const fabLayoutConfig = settings.fabLayout ?? { swapPosition: false };
196
+ const [fabSwapPosition, setFabSwapPosition] = useState(fabLayoutConfig.swapPosition);
193
197
  // Notification state
194
198
  const [inApp, setInApp] = useState(settings.notifications.inApp.enabled);
195
199
  const [events, setEvents] = useState({ ...settings.notifications.events });
@@ -588,7 +592,10 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTe
588
592
  maxConcurrentSessions: clamped,
589
593
  },
590
594
  });
591
- } }) })] }), _jsx(SectionHint, { children: t('settings.interactiveAgent.hint') })] }), _jsxs("div", { id: "section-database", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Database, title: t('settings.database.title'), description: t('settings.database.sectionDescription'), testId: "database-settings-section", children: [_jsx(SettingsRow, { label: t('settings.database.location'), description: t('settings.database.locationDescription'), children: _jsx("span", { className: "text-muted-foreground max-w-50 truncate font-mono text-xs", "data-testid": "shep-home-path", children: shepHome }) }), _jsx(SettingsRow, { label: t('settings.database.size'), children: _jsx("span", { className: "text-muted-foreground text-xs", "data-testid": "db-file-size", children: dbFileSize }) })] }), _jsx(SectionHint, { links: [
595
+ } }) })] }), _jsx(SectionHint, { children: t('settings.interactiveAgent.hint') })] }), _jsxs("div", { id: "section-fab-layout", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(SettingsSection, { icon: LayoutGrid, title: t('settings.fabLayout.title'), description: t('settings.fabLayout.description'), testId: "fab-layout-settings-section", children: _jsx(SwitchRow, { label: t('settings.fabLayout.swapPosition'), description: t('settings.fabLayout.swapPositionDescription'), id: "fab-swap-position", testId: "switch-fab-swap-position", checked: fabSwapPosition, onChange: (v) => {
596
+ setFabSwapPosition(v);
597
+ save({ fabLayout: { swapPosition: v } });
598
+ } }) }), _jsx(SectionHint, { children: t('settings.fabLayout.hint') })] }), _jsxs("div", { id: "section-database", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Database, title: t('settings.database.title'), description: t('settings.database.sectionDescription'), testId: "database-settings-section", children: [_jsx(SettingsRow, { label: t('settings.database.location'), description: t('settings.database.locationDescription'), children: _jsx("span", { className: "text-muted-foreground max-w-50 truncate font-mono text-xs", "data-testid": "shep-home-path", children: shepHome }) }), _jsx(SettingsRow, { label: t('settings.database.size'), children: _jsx("span", { className: "text-muted-foreground text-xs", "data-testid": "db-file-size", children: dbFileSize }) })] }), _jsx(SectionHint, { links: [
592
599
  {
593
600
  label: t('settings.database.links.settingsService'),
594
601
  href: 'https://github.com/shep-ai/shep/blob/main/docs/architecture/settings-service.md',
@@ -0,0 +1,18 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { FabLayoutState } from '../lib/fab-layout.js';
3
+ interface FabLayoutProviderProps {
4
+ children: ReactNode;
5
+ layout: FabLayoutState;
6
+ }
7
+ /**
8
+ * Provides server-resolved FAB layout configuration to all client components.
9
+ * Initialized in the root layout with values from the DB singleton.
10
+ */
11
+ export declare function FabLayoutProvider({ children, layout }: FabLayoutProviderProps): import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * Read FAB layout config from context. Returns default (not swapped)
14
+ * when used outside a FabLayoutProvider (e.g., Storybook, tests).
15
+ */
16
+ export declare function useFabLayout(): FabLayoutState;
17
+ export {};
18
+ //# sourceMappingURL=fab-layout-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fab-layout-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/fab-layout-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,sBAAsB,2CAE7E;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,cAAc,CAE7C"}
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext } from 'react';
4
+ const defaultLayout = { swapPosition: false };
5
+ const FabLayoutContext = createContext(defaultLayout);
6
+ /**
7
+ * Provides server-resolved FAB layout configuration to all client components.
8
+ * Initialized in the root layout with values from the DB singleton.
9
+ */
10
+ export function FabLayoutProvider({ children, layout }) {
11
+ return _jsx(FabLayoutContext.Provider, { value: layout, children: children });
12
+ }
13
+ /**
14
+ * Read FAB layout config from context. Returns default (not swapped)
15
+ * when used outside a FabLayoutProvider (e.g., Storybook, tests).
16
+ */
17
+ export function useFabLayout() {
18
+ return useContext(FabLayoutContext);
19
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * FAB layout configuration for the web UI.
3
+ *
4
+ * Reads from Settings.fabLayout when available, defaulting to
5
+ * swapPosition = false (Create FAB on start side, Chat FAB on end side).
6
+ */
7
+ export interface FabLayoutState {
8
+ swapPosition: boolean;
9
+ }
10
+ export declare function getFabLayout(): FabLayoutState;
11
+ //# sourceMappingURL=fab-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fab-layout.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/fab-layout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,YAAY,IAAI,cAAc,CAa7C"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * FAB layout configuration for the web UI.
3
+ *
4
+ * Reads from Settings.fabLayout when available, defaulting to
5
+ * swapPosition = false (Create FAB on start side, Chat FAB on end side).
6
+ */
7
+ import { hasSettings, getSettings } from '../../../../packages/core/src/infrastructure/services/settings.service.js';
8
+ export function getFabLayout() {
9
+ try {
10
+ if (hasSettings()) {
11
+ const fabLayout = getSettings().fabLayout;
12
+ if (fabLayout) {
13
+ return { swapPosition: fabLayout.swapPosition };
14
+ }
15
+ }
16
+ }
17
+ catch {
18
+ // Settings not initialized (e.g., during build/SSG or client-side hydration)
19
+ }
20
+ return { swapPosition: false };
21
+ }
@@ -14,6 +14,7 @@
14
14
  "notifications": "الإشعارات",
15
15
  "flags": "العلامات",
16
16
  "chat": "المحادثة",
17
+ "layout": "التخطيط",
17
18
  "database": "قاعدة البيانات"
18
19
  },
19
20
  "language": {
@@ -212,6 +213,13 @@
212
213
  "maxConcurrentSessionsDescription": "الحد الأقصى لعدد جلسات الوكيل التفاعلية النشطة في وقت واحد (1–10)",
213
214
  "hint": "علامة المحادثة تُنشئ عملية وكيل مستمرة لكل ميزة. المهلة التلقائية تُوقف الجلسات الخاملة تلقائيًا لتوفير الموارد. حد الجلسات المتزامنة يمنع الاستخدام المفرط للموارد على أجهزة المطورين."
214
215
  },
216
+ "fabLayout": {
217
+ "title": "التخطيط",
218
+ "description": "التحكم في موضع أزرار الإجراء العائمة في مركز التحكم",
219
+ "swapPosition": "تبديل مواضع الأزرار العائمة",
220
+ "swapPositionDescription": "نقل زر المحادثة إلى اليسار وزر الإنشاء إلى اليمين",
221
+ "hint": "يوجد زران عائمان (إنشاء ومحادثة) في الزوايا السفلية لمركز التحكم. قم بتفعيل هذا الخيار لتبديل مواضعهما."
222
+ },
215
223
  "database": {
216
224
  "title": "قاعدة البيانات",
217
225
  "description": "مسار قاعدة البيانات وإدارتها",
@@ -14,6 +14,7 @@
14
14
  "notifications": "Benachrichtigungen",
15
15
  "flags": "Flags",
16
16
  "chat": "Chat",
17
+ "layout": "Layout",
17
18
  "database": "Datenbank"
18
19
  },
19
20
  "language": {
@@ -198,6 +199,13 @@
198
199
  "maxConcurrentSessionsDescription": "Maximale Anzahl aktiver interaktiver Agenten-Sitzungen gleichzeitig (1–10)",
199
200
  "hint": "Der Chat-Tab startet einen persistenten Agentenprozess pro Feature. Das Auto-Zeitlimit stoppt inaktive Sitzungen automatisch, um Ressourcen zu sparen. Das Limit für gleichzeitige Sitzungen verhindert unkontrollierten Ressourcenverbrauch auf Entwicklermaschinen."
200
201
  },
202
+ "fabLayout": {
203
+ "title": "Layout",
204
+ "description": "Position der schwebenden Aktionsschaltflächen im Kontrollzentrum steuern",
205
+ "swapPosition": "FAB-Positionen tauschen",
206
+ "swapPositionDescription": "Chat-Button nach links und Erstellen-Button nach rechts verschieben",
207
+ "hint": "Die zwei schwebenden Aktionsschaltflächen (Erstellen und Chat) befinden sich in den unteren Ecken des Kontrollzentrums. Aktivieren Sie diese Option, um ihre Positionen zu tauschen."
208
+ },
201
209
  "database": {
202
210
  "title": "Datenbank",
203
211
  "description": "Datenbankpfad und -verwaltung",
@@ -14,6 +14,7 @@
14
14
  "notifications": "Notifications",
15
15
  "flags": "Flags",
16
16
  "chat": "Chat",
17
+ "layout": "Layout",
17
18
  "database": "Database"
18
19
  },
19
20
  "language": {
@@ -212,6 +213,13 @@
212
213
  "maxConcurrentSessionsDescription": "Maximum number of active interactive agent sessions at once (1–10)",
213
214
  "hint": "The Chat tab spawns a persistent agent process per feature. Auto-timeout stops idle sessions automatically to conserve resources. The concurrent session cap prevents runaway resource usage on developer machines."
214
215
  },
216
+ "fabLayout": {
217
+ "title": "Layout",
218
+ "description": "Control the position of floating action buttons in the control center",
219
+ "swapPosition": "Swap FAB positions",
220
+ "swapPositionDescription": "Move the Chat button to the left and the Create button to the right",
221
+ "hint": "The two floating action buttons (Create and Chat) sit in the bottom corners of the control center. Enable this toggle to swap their positions."
222
+ },
215
223
  "database": {
216
224
  "title": "Database",
217
225
  "description": "Database path and management",
@@ -14,6 +14,7 @@
14
14
  "notifications": "Notificaciones",
15
15
  "flags": "Opciones",
16
16
  "chat": "Chat",
17
+ "layout": "Diseño",
17
18
  "database": "Base de datos"
18
19
  },
19
20
  "language": {
@@ -212,6 +213,13 @@
212
213
  "maxConcurrentSessionsDescription": "Número máximo de sesiones de agente interactivo activas a la vez (1-10)",
213
214
  "hint": "La pestaña de chat genera un proceso de agente persistente por funcionalidad. El tiempo de espera automático detiene las sesiones inactivas automáticamente para conservar recursos. El límite de sesiones concurrentes previene el uso excesivo de recursos en las máquinas de los desarrolladores."
214
215
  },
216
+ "fabLayout": {
217
+ "title": "Diseño",
218
+ "description": "Controlar la posición de los botones de acción flotantes en el centro de control",
219
+ "swapPosition": "Intercambiar posiciones de FAB",
220
+ "swapPositionDescription": "Mover el botón de Chat a la izquierda y el de Crear a la derecha",
221
+ "hint": "Los dos botones de acción flotantes (Crear y Chat) se ubican en las esquinas inferiores del centro de control. Active esta opción para intercambiar sus posiciones."
222
+ },
215
223
  "database": {
216
224
  "title": "Base de datos",
217
225
  "description": "Ruta de la base de datos y administración",
@@ -14,6 +14,7 @@
14
14
  "notifications": "Notifications",
15
15
  "flags": "Drapeaux",
16
16
  "chat": "Chat",
17
+ "layout": "Disposition",
17
18
  "database": "Base de données"
18
19
  },
19
20
  "language": {
@@ -212,6 +213,13 @@
212
213
  "maxConcurrentSessionsDescription": "Nombre maximum de sessions d'agent interactif actives simultanément (1-10)",
213
214
  "hint": "L'onglet Chat lance un processus d'agent persistant par fonctionnalité. Le délai d'inactivité automatique arrête les sessions inactives pour économiser les ressources. Le plafond de sessions simultanées empêche l'utilisation incontrôlée des ressources sur les machines de développement."
214
215
  },
216
+ "fabLayout": {
217
+ "title": "Disposition",
218
+ "description": "Contrôler la position des boutons d'action flottants dans le centre de contrôle",
219
+ "swapPosition": "Inverser les positions des FAB",
220
+ "swapPositionDescription": "Déplacer le bouton Chat à gauche et le bouton Créer à droite",
221
+ "hint": "Les deux boutons d'action flottants (Créer et Chat) se trouvent dans les coins inférieurs du centre de contrôle. Activez cette option pour inverser leurs positions."
222
+ },
215
223
  "database": {
216
224
  "title": "Base de données",
217
225
  "description": "Chemin et gestion de la base de données",
@@ -14,6 +14,7 @@
14
14
  "notifications": "התראות",
15
15
  "flags": "דגלים",
16
16
  "chat": "צ'אט",
17
+ "layout": "פריסה",
17
18
  "database": "מסד נתונים"
18
19
  },
19
20
  "language": {
@@ -212,6 +213,13 @@
212
213
  "maxConcurrentSessionsDescription": "מספר מרבי של סשנים אינטראקטיביים פעילים בו-זמנית (1-10)",
213
214
  "hint": "לשונית הצ'אט מפעילה תהליך סוכן מתמשך לכל פיצ'ר. תפוגת זמן אוטומטית עוצרת סשנים לא פעילים כדי לחסוך במשאבים. מגבלת הסשנים המקבילים מונעת שימוש מופרז במשאבים על מכונות מפתחים."
214
215
  },
216
+ "fabLayout": {
217
+ "title": "פריסה",
218
+ "description": "שליטה במיקום כפתורי הפעולה הצפים במרכז הבקרה",
219
+ "swapPosition": "החלפת מיקומי כפתורים צפים",
220
+ "swapPositionDescription": "העברת כפתור הצ'אט לשמאל וכפתור היצירה לימין",
221
+ "hint": "שני כפתורי הפעולה הצפים (יצירה וצ'אט) נמצאים בפינות התחתונות של מרכז הבקרה. הפעל את האפשרות הזו כדי להחליף את מיקומיהם."
222
+ },
215
223
  "database": {
216
224
  "title": "מסד נתונים",
217
225
  "description": "נתיב מסד הנתונים וניהול",
@@ -14,6 +14,7 @@
14
14
  "notifications": "Notificações",
15
15
  "flags": "Flags",
16
16
  "chat": "Chat",
17
+ "layout": "Layout",
17
18
  "database": "Banco de Dados"
18
19
  },
19
20
  "language": {
@@ -212,6 +213,13 @@
212
213
  "maxConcurrentSessionsDescription": "Número máximo de sessões de agente interativo ativas ao mesmo tempo (1-10)",
213
214
  "hint": "A aba Chat inicia um processo de agente persistente por recurso. O tempo limite automático para sessões ociosas automaticamente para economizar recursos. O limite de sessões simultâneas evita uso excessivo de recursos em máquinas de desenvolvimento."
214
215
  },
216
+ "fabLayout": {
217
+ "title": "Layout",
218
+ "description": "Controlar a posição dos botões de ação flutuantes no centro de controle",
219
+ "swapPosition": "Trocar posições dos FABs",
220
+ "swapPositionDescription": "Mover o botão de Chat para a esquerda e o de Criar para a direita",
221
+ "hint": "Os dois botões de ação flutuantes (Criar e Chat) ficam nos cantos inferiores do centro de controle. Ative esta opção para trocar suas posições."
222
+ },
215
223
  "database": {
216
224
  "title": "Banco de Dados",
217
225
  "description": "Caminho e gerenciamento do banco de dados",