@shepai/cli 1.117.0-pr367.ca5b6ac → 1.117.0-pr376.0b9d7e1

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 (405) hide show
  1. package/apis/json-schema/EnvironmentConfig.yaml +5 -0
  2. package/apis/json-schema/TerminalType.yaml +10 -0
  3. package/dist/packages/core/src/application/ports/output/services/index.d.ts +0 -2
  4. package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
  5. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  6. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +7 -1
  7. package/dist/packages/core/src/domain/generated/output.d.ts +11 -0
  8. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  9. package/dist/packages/core/src/domain/generated/output.js +8 -0
  10. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  11. package/dist/packages/core/src/infrastructure/di/container.js +0 -14
  12. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +1 -0
  13. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  14. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +2 -0
  15. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/036-add-terminal-preference.d.ts +11 -0
  16. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/036-add-terminal-preference.d.ts.map +1 -0
  17. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/036-add-terminal-preference.js +13 -0
  18. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +1 -1
  19. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  20. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +3 -2
  21. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-metadata.d.ts +5 -0
  22. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-metadata.d.ts.map +1 -1
  23. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-metadata.js +7 -0
  24. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/system-terminal.json +24 -0
  25. package/dist/src/presentation/cli/commands/ui.command.d.ts.map +1 -1
  26. package/dist/src/presentation/cli/commands/ui.command.js +0 -15
  27. package/dist/src/presentation/web/app/actions/get-available-terminals.d.ts +12 -0
  28. package/dist/src/presentation/web/app/actions/get-available-terminals.d.ts.map +1 -0
  29. package/dist/src/presentation/web/app/actions/get-available-terminals.js +53 -0
  30. package/dist/src/presentation/web/app/actions/open-shell.d.ts.map +1 -1
  31. package/dist/src/presentation/web/app/actions/open-shell.js +47 -3
  32. package/dist/src/presentation/web/app/settings/page.d.ts.map +1 -1
  33. package/dist/src/presentation/web/app/settings/page.js +6 -2
  34. package/dist/src/presentation/web/components/features/settings/environment-settings-section.d.ts +3 -1
  35. package/dist/src/presentation/web/components/features/settings/environment-settings-section.d.ts.map +1 -1
  36. package/dist/src/presentation/web/components/features/settings/environment-settings-section.js +32 -5
  37. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.d.ts +2 -0
  38. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.d.ts.map +1 -1
  39. package/dist/src/presentation/web/components/features/settings/environment-settings-section.stories.js +34 -1
  40. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts +3 -1
  41. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  42. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +45 -13
  43. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  44. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  45. package/dist/src/presentation/web/dev-server.js +0 -20
  46. package/dist/tsconfig.build.tsbuildinfo +1 -1
  47. package/package.json +1 -3
  48. package/web/.next/BUILD_ID +1 -1
  49. package/web/.next/app-path-routes-manifest.json +1 -5
  50. package/web/.next/build-manifest.json +6 -6
  51. package/web/.next/fallback-build-manifest.json +2 -2
  52. package/web/.next/prerender-manifest.json +3 -3
  53. package/web/.next/required-server-files.js +1 -1
  54. package/web/.next/required-server-files.json +1 -1
  55. package/web/.next/routes-manifest.json +0 -24
  56. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +4 -4
  57. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +21 -21
  58. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
  59. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  60. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  61. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  62. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +27 -27
  63. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +3 -3
  64. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  65. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  66. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +4 -4
  67. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +27 -27
  68. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +3 -3
  69. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  70. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  71. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +4 -4
  72. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +19 -19
  73. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
  74. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  75. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  76. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +4 -4
  77. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +21 -21
  78. package/web/.next/server/app/(dashboard)/create/page.js +2 -2
  79. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  80. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  81. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  82. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +27 -27
  83. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +3 -3
  84. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  85. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  86. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +4 -4
  87. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +27 -27
  88. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +3 -3
  89. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  90. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/(dashboard)/page/build-manifest.json +4 -4
  92. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +19 -19
  93. package/web/.next/server/app/(dashboard)/page.js +2 -2
  94. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  95. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  96. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +4 -4
  97. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +19 -19
  98. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
  99. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  100. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  101. package/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
  102. package/web/.next/server/app/_global-error/page.js +1 -1
  103. package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  104. package/web/.next/server/app/_global-error.html +2 -2
  105. package/web/.next/server/app/_global-error.rsc +1 -1
  106. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  107. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  108. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  109. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  110. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  111. package/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
  112. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  113. package/web/.next/server/app/_not-found/page.js +2 -2
  114. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  115. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  116. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  117. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  118. package/web/.next/server/app/settings/page/build-manifest.json +4 -4
  119. package/web/.next/server/app/settings/page/server-reference-manifest.json +25 -10
  120. package/web/.next/server/app/settings/page.js +3 -3
  121. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  122. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  123. package/web/.next/server/app/skills/page/build-manifest.json +4 -4
  124. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  125. package/web/.next/server/app/skills/page.js +2 -2
  126. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  127. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  128. package/web/.next/server/app/tools/page/build-manifest.json +4 -4
  129. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  130. package/web/.next/server/app/tools/page.js +2 -2
  131. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  132. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  133. package/web/.next/server/app/version/page/build-manifest.json +4 -4
  134. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  135. package/web/.next/server/app/version/page.js +2 -2
  136. package/web/.next/server/app/version/page.js.nft.json +1 -1
  137. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  138. package/web/.next/server/app-paths-manifest.json +1 -5
  139. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +1 -1
  140. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js.map +1 -1
  141. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  142. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  143. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  145. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +1 -1
  147. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +1 -1
  149. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -1
  150. package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
  151. package/web/.next/server/chunks/ssr/{[root-of-the-server]__4af0afe0._.js → [root-of-the-server]__2dddfea9._.js} +2 -2
  152. package/web/.next/server/chunks/ssr/{[root-of-the-server]__4af0afe0._.js.map → [root-of-the-server]__2dddfea9._.js.map} +1 -1
  153. package/web/.next/server/chunks/ssr/[root-of-the-server]__2ff2daf6._.js +4 -0
  154. package/web/.next/server/chunks/ssr/[root-of-the-server]__2ff2daf6._.js.map +1 -0
  155. package/web/.next/server/chunks/ssr/{[root-of-the-server]__ac0304e7._.js → [root-of-the-server]__3155add4._.js} +2 -2
  156. package/web/.next/server/chunks/ssr/{[root-of-the-server]__ac0304e7._.js.map → [root-of-the-server]__3155add4._.js.map} +1 -1
  157. package/web/.next/server/chunks/ssr/{[root-of-the-server]__9bc1434f._.js → [root-of-the-server]__4c7486cb._.js} +2 -2
  158. package/web/.next/server/chunks/ssr/{[root-of-the-server]__9bc1434f._.js.map → [root-of-the-server]__4c7486cb._.js.map} +1 -1
  159. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +3 -0
  160. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +1 -0
  161. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +4 -0
  162. package/web/.next/server/chunks/ssr/{[root-of-the-server]__11033878._.js.map → [root-of-the-server]__6b17a22d._.js.map} +1 -1
  163. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +4 -0
  164. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -0
  165. package/web/.next/server/chunks/ssr/[root-of-the-server]__6eb2a2b0._.js +1 -1
  166. package/web/.next/server/chunks/ssr/[root-of-the-server]__6eb2a2b0._.js.map +1 -1
  167. package/web/.next/server/chunks/ssr/[root-of-the-server]__7b707feb._.js +4 -0
  168. package/web/.next/server/chunks/ssr/[root-of-the-server]__7b707feb._.js.map +1 -0
  169. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +4 -0
  170. package/web/.next/server/chunks/ssr/{[root-of-the-server]__fdc75809._.js.map → [root-of-the-server]__804c006d._.js.map} +1 -1
  171. package/web/.next/server/chunks/ssr/{[root-of-the-server]__89e8a5cc._.js → [root-of-the-server]__8763fd7a._.js} +3 -3
  172. package/web/.next/server/chunks/ssr/[root-of-the-server]__8763fd7a._.js.map +1 -0
  173. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2a5592d5._.js → [root-of-the-server]__9c56d724._.js} +2 -2
  174. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2a5592d5._.js.map → [root-of-the-server]__9c56d724._.js.map} +1 -1
  175. package/web/.next/server/chunks/ssr/{[root-of-the-server]__a93289b0._.js → [root-of-the-server]__cfc116d5._.js} +2 -2
  176. package/web/.next/server/chunks/ssr/{[root-of-the-server]__a93289b0._.js.map → [root-of-the-server]__cfc116d5._.js.map} +1 -1
  177. package/web/.next/server/chunks/ssr/{[root-of-the-server]__172d9576._.js → [root-of-the-server]__d3841d9e._.js} +2 -2
  178. package/web/.next/server/chunks/ssr/{[root-of-the-server]__172d9576._.js.map → [root-of-the-server]__d3841d9e._.js.map} +1 -1
  179. package/web/.next/server/chunks/ssr/[root-of-the-server]__db9afe04._.js +3 -0
  180. package/web/.next/server/chunks/ssr/[root-of-the-server]__db9afe04._.js.map +1 -0
  181. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  182. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  183. package/web/.next/server/chunks/ssr/{node_modules__pnpm_747b43ac._.js → _1bb131c4._.js} +2 -2
  184. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -0
  185. package/web/.next/server/chunks/ssr/_250a63ae._.js.map +1 -1
  186. package/web/.next/server/chunks/ssr/_273d4632._.js +3 -0
  187. package/web/.next/server/chunks/ssr/_273d4632._.js.map +1 -0
  188. package/web/.next/server/chunks/ssr/_2eea2048._.js +3 -0
  189. package/web/.next/server/chunks/ssr/{_b715515b._.js.map → _2eea2048._.js.map} +1 -1
  190. package/web/.next/server/chunks/ssr/{_8dacd1e7._.js → _2f6f48b8._.js} +2 -2
  191. package/web/.next/server/chunks/ssr/{_8dacd1e7._.js.map → _2f6f48b8._.js.map} +1 -1
  192. package/web/.next/server/chunks/ssr/{_719ef347._.js → _3d260002._.js} +2 -2
  193. package/web/.next/server/chunks/ssr/_3d260002._.js.map +1 -0
  194. package/web/.next/server/chunks/ssr/_6d26a08f._.js +3 -0
  195. package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +1 -0
  196. package/web/.next/server/chunks/ssr/_a68d7e1c._.js +9 -0
  197. package/web/.next/server/chunks/ssr/_a68d7e1c._.js.map +1 -0
  198. package/web/.next/server/chunks/ssr/_b5fc318a._.js +3 -0
  199. package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +1 -0
  200. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  201. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  202. package/web/.next/server/chunks/ssr/_f5316e67._.js +3 -0
  203. package/web/.next/server/chunks/ssr/_f5316e67._.js.map +1 -0
  204. package/web/.next/server/chunks/ssr/_f5a1a9b8._.js +3 -0
  205. package/web/.next/server/chunks/ssr/_f5a1a9b8._.js.map +1 -0
  206. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  207. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  208. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js +2 -2
  209. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -1
  210. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +1 -1
  211. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -1
  212. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  213. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  214. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  215. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  216. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  217. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  218. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  219. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  220. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  221. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  222. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js +2 -2
  223. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js.map +1 -1
  224. package/web/.next/server/middleware-build-manifest.js +4 -4
  225. package/web/.next/server/pages/500.html +2 -2
  226. package/web/.next/server/server-reference-manifest.js +1 -1
  227. package/web/.next/server/server-reference-manifest.json +51 -58
  228. package/web/.next/static/chunks/{5856c588eb7f21fd.js → 09528d327a2bb15a.js} +1 -1
  229. package/web/.next/static/chunks/261a4f0c60d9e4ba.js +11 -0
  230. package/web/.next/static/chunks/303a1217006489b9.js +1 -0
  231. package/web/.next/static/chunks/304a3dced97f4f68.js +2 -0
  232. package/web/.next/static/chunks/3a806cf059241bc9.js +1 -0
  233. package/web/.next/static/chunks/619af41a8d3232e5.js +1 -0
  234. package/web/.next/static/chunks/62a8173911f8f130.css +1 -0
  235. package/web/.next/static/chunks/{98e3a7cf58fc912a.js → 672e3da3ad26005b.js} +1 -1
  236. package/web/.next/static/chunks/{2ac228556e3d1db4.js → 6a2f770718cd585d.js} +1 -1
  237. package/web/.next/static/chunks/84a181ff3270fd9f.js +1 -0
  238. package/web/.next/static/chunks/{ab8b8f80cbc8366f.js → 8748274a8d9400da.js} +2 -2
  239. package/web/.next/static/chunks/a6d2916a7b4b2633.js +1 -0
  240. package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +1 -0
  241. package/web/.next/static/chunks/bba38aefe51cfdfc.js +1 -0
  242. package/web/.next/static/chunks/bf6bd3385f65bed8.js +1 -0
  243. package/web/.next/static/chunks/{d3db43fcdbbd9b68.js → c039476485c8b4e8.js} +1 -1
  244. package/web/.next/static/chunks/d363520c26e1cd08.js +1 -0
  245. package/web/.next/static/chunks/e2ef95d904c360f3.js +1 -0
  246. package/web/.next/static/chunks/ed3a602003bcb31b.js +1 -0
  247. package/web/.next/static/chunks/{turbopack-b1685b5f87ad1d60.js → turbopack-426d9bc2450816ba.js} +1 -1
  248. package/dist/packages/core/src/application/ports/output/services/tunnel-service.interface.d.ts +0 -41
  249. package/dist/packages/core/src/application/ports/output/services/tunnel-service.interface.d.ts.map +0 -1
  250. package/dist/packages/core/src/application/ports/output/services/tunnel-service.interface.js +0 -14
  251. package/dist/packages/core/src/application/ports/output/services/webhook-service.interface.d.ts +0 -65
  252. package/dist/packages/core/src/application/ports/output/services/webhook-service.interface.d.ts.map +0 -1
  253. package/dist/packages/core/src/application/ports/output/services/webhook-service.interface.js +0 -10
  254. package/dist/packages/core/src/infrastructure/services/tunnel/cloudflare-tunnel.service.d.ts +0 -55
  255. package/dist/packages/core/src/infrastructure/services/tunnel/cloudflare-tunnel.service.d.ts.map +0 -1
  256. package/dist/packages/core/src/infrastructure/services/tunnel/cloudflare-tunnel.service.js +0 -203
  257. package/dist/packages/core/src/infrastructure/services/webhook/github-webhook.service.d.ts +0 -75
  258. package/dist/packages/core/src/infrastructure/services/webhook/github-webhook.service.d.ts.map +0 -1
  259. package/dist/packages/core/src/infrastructure/services/webhook/github-webhook.service.js +0 -372
  260. package/dist/packages/core/src/infrastructure/services/webhook/webhook-manager.service.d.ts +0 -82
  261. package/dist/packages/core/src/infrastructure/services/webhook/webhook-manager.service.d.ts.map +0 -1
  262. package/dist/packages/core/src/infrastructure/services/webhook/webhook-manager.service.js +0 -206
  263. package/dist/src/presentation/web/app/actions/load-webhook-status.d.ts +0 -3
  264. package/dist/src/presentation/web/app/actions/load-webhook-status.d.ts.map +0 -1
  265. package/dist/src/presentation/web/app/actions/load-webhook-status.js +0 -19
  266. package/dist/src/presentation/web/app/api/webhooks/deliveries/route.d.ts +0 -9
  267. package/dist/src/presentation/web/app/api/webhooks/deliveries/route.d.ts.map +0 -1
  268. package/dist/src/presentation/web/app/api/webhooks/deliveries/route.js +0 -27
  269. package/dist/src/presentation/web/app/api/webhooks/github/route.d.ts +0 -17
  270. package/dist/src/presentation/web/app/api/webhooks/github/route.d.ts.map +0 -1
  271. package/dist/src/presentation/web/app/api/webhooks/github/route.js +0 -70
  272. package/dist/src/presentation/web/app/api/webhooks/status/route.d.ts +0 -9
  273. package/dist/src/presentation/web/app/api/webhooks/status/route.d.ts.map +0 -1
  274. package/dist/src/presentation/web/app/api/webhooks/status/route.js +0 -26
  275. package/dist/src/presentation/web/app/webhooks/page.d.ts +0 -4
  276. package/dist/src/presentation/web/app/webhooks/page.d.ts.map +0 -1
  277. package/dist/src/presentation/web/app/webhooks/page.js +0 -9
  278. package/dist/src/presentation/web/components/features/webhooks/types.d.ts +0 -32
  279. package/dist/src/presentation/web/components/features/webhooks/types.d.ts.map +0 -1
  280. package/dist/src/presentation/web/components/features/webhooks/types.js +0 -1
  281. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.d.ts +0 -6
  282. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.d.ts.map +0 -1
  283. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.js +0 -38
  284. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.d.ts +0 -9
  285. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.d.ts.map +0 -1
  286. package/dist/src/presentation/web/components/features/webhooks/webhook-delivery-table.stories.js +0 -69
  287. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.d.ts +0 -7
  288. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.d.ts.map +0 -1
  289. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.js +0 -11
  290. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.stories.d.ts +0 -9
  291. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.stories.d.ts.map +0 -1
  292. package/dist/src/presentation/web/components/features/webhooks/webhook-repo-list.stories.js +0 -31
  293. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.d.ts +0 -6
  294. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.d.ts.map +0 -1
  295. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.js +0 -21
  296. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.stories.d.ts +0 -9
  297. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.stories.d.ts.map +0 -1
  298. package/dist/src/presentation/web/components/features/webhooks/webhook-status-cards.stories.js +0 -56
  299. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.d.ts +0 -6
  300. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.d.ts.map +0 -1
  301. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.js +0 -39
  302. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.stories.d.ts +0 -8
  303. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.stories.d.ts.map +0 -1
  304. package/dist/src/presentation/web/components/features/webhooks/webhooks-page-client.stories.js +0 -59
  305. package/web/.next/server/app/api/webhooks/deliveries/route/app-paths-manifest.json +0 -3
  306. package/web/.next/server/app/api/webhooks/deliveries/route/build-manifest.json +0 -11
  307. package/web/.next/server/app/api/webhooks/deliveries/route/server-reference-manifest.json +0 -4
  308. package/web/.next/server/app/api/webhooks/deliveries/route.js +0 -6
  309. package/web/.next/server/app/api/webhooks/deliveries/route.js.map +0 -5
  310. package/web/.next/server/app/api/webhooks/deliveries/route.js.nft.json +0 -1
  311. package/web/.next/server/app/api/webhooks/deliveries/route_client-reference-manifest.js +0 -2
  312. package/web/.next/server/app/api/webhooks/github/route/app-paths-manifest.json +0 -3
  313. package/web/.next/server/app/api/webhooks/github/route/build-manifest.json +0 -11
  314. package/web/.next/server/app/api/webhooks/github/route/server-reference-manifest.json +0 -4
  315. package/web/.next/server/app/api/webhooks/github/route.js +0 -6
  316. package/web/.next/server/app/api/webhooks/github/route.js.map +0 -5
  317. package/web/.next/server/app/api/webhooks/github/route.js.nft.json +0 -1
  318. package/web/.next/server/app/api/webhooks/github/route_client-reference-manifest.js +0 -2
  319. package/web/.next/server/app/api/webhooks/status/route/app-paths-manifest.json +0 -3
  320. package/web/.next/server/app/api/webhooks/status/route/build-manifest.json +0 -11
  321. package/web/.next/server/app/api/webhooks/status/route/server-reference-manifest.json +0 -4
  322. package/web/.next/server/app/api/webhooks/status/route.js +0 -6
  323. package/web/.next/server/app/api/webhooks/status/route.js.map +0 -5
  324. package/web/.next/server/app/api/webhooks/status/route.js.nft.json +0 -1
  325. package/web/.next/server/app/api/webhooks/status/route_client-reference-manifest.js +0 -2
  326. package/web/.next/server/app/webhooks/page/app-paths-manifest.json +0 -3
  327. package/web/.next/server/app/webhooks/page/build-manifest.json +0 -18
  328. package/web/.next/server/app/webhooks/page/next-font-manifest.json +0 -6
  329. package/web/.next/server/app/webhooks/page/react-loadable-manifest.json +0 -1
  330. package/web/.next/server/app/webhooks/page/server-reference-manifest.json +0 -35
  331. package/web/.next/server/app/webhooks/page.js +0 -16
  332. package/web/.next/server/app/webhooks/page.js.map +0 -5
  333. package/web/.next/server/app/webhooks/page.js.nft.json +0 -1
  334. package/web/.next/server/app/webhooks/page_client-reference-manifest.js +0 -2
  335. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_deliveries_route_actions_d9e34c8d.js +0 -3
  336. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_deliveries_route_actions_d9e34c8d.js.map +0 -1
  337. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_github_route_actions_1b0d0c38.js +0 -3
  338. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_github_route_actions_1b0d0c38.js.map +0 -1
  339. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_status_route_actions_1a0d86a1.js +0 -3
  340. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_webhooks_status_route_actions_1a0d86a1.js.map +0 -1
  341. package/web/.next/server/chunks/[root-of-the-server]__15e5d45c._.js +0 -3
  342. package/web/.next/server/chunks/[root-of-the-server]__15e5d45c._.js.map +0 -1
  343. package/web/.next/server/chunks/[root-of-the-server]__23be381e._.js +0 -3
  344. package/web/.next/server/chunks/[root-of-the-server]__23be381e._.js.map +0 -1
  345. package/web/.next/server/chunks/[root-of-the-server]__9fc760c0._.js +0 -3
  346. package/web/.next/server/chunks/[root-of-the-server]__9fc760c0._.js.map +0 -1
  347. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_activity_22f9667f.js +0 -3
  348. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_activity_22f9667f.js.map +0 -1
  349. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +0 -4
  350. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +0 -4
  351. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +0 -1
  352. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d847b7b._.js +0 -3
  353. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d847b7b._.js.map +0 -1
  354. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +0 -4
  355. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js.map +0 -1
  356. package/web/.next/server/chunks/ssr/[root-of-the-server]__87a7ae30._.js +0 -3
  357. package/web/.next/server/chunks/ssr/[root-of-the-server]__87a7ae30._.js.map +0 -1
  358. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +0 -1
  359. package/web/.next/server/chunks/ssr/[root-of-the-server]__920dccd5._.js +0 -4
  360. package/web/.next/server/chunks/ssr/[root-of-the-server]__920dccd5._.js.map +0 -1
  361. package/web/.next/server/chunks/ssr/[root-of-the-server]__a42f5a88._.js +0 -3
  362. package/web/.next/server/chunks/ssr/[root-of-the-server]__a42f5a88._.js.map +0 -1
  363. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +0 -4
  364. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +0 -1
  365. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +0 -4
  366. package/web/.next/server/chunks/ssr/_26b2c311._.js +0 -3
  367. package/web/.next/server/chunks/ssr/_26b2c311._.js.map +0 -1
  368. package/web/.next/server/chunks/ssr/_719ef347._.js.map +0 -1
  369. package/web/.next/server/chunks/ssr/_809c53f6._.js +0 -9
  370. package/web/.next/server/chunks/ssr/_809c53f6._.js.map +0 -1
  371. package/web/.next/server/chunks/ssr/_98047ffd._.js +0 -3
  372. package/web/.next/server/chunks/ssr/_98047ffd._.js.map +0 -1
  373. package/web/.next/server/chunks/ssr/_9eea4c51._.js +0 -3
  374. package/web/.next/server/chunks/ssr/_9eea4c51._.js.map +0 -1
  375. package/web/.next/server/chunks/ssr/_a4899a76._.js +0 -3
  376. package/web/.next/server/chunks/ssr/_a4899a76._.js.map +0 -1
  377. package/web/.next/server/chunks/ssr/_b715515b._.js +0 -3
  378. package/web/.next/server/chunks/ssr/_b7eb93fc._.js +0 -4
  379. package/web/.next/server/chunks/ssr/_b7eb93fc._.js.map +0 -1
  380. package/web/.next/server/chunks/ssr/_e0a01382._.js +0 -3
  381. package/web/.next/server/chunks/ssr/_e0a01382._.js.map +0 -1
  382. package/web/.next/server/chunks/ssr/_f8b36e2c._.js +0 -3
  383. package/web/.next/server/chunks/ssr/_f8b36e2c._.js.map +0 -1
  384. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_webhooks_webhooks-page-client_tsx_b2662ea3._.js +0 -3
  385. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_webhooks_webhooks-page-client_tsx_b2662ea3._.js.map +0 -1
  386. package/web/.next/server/chunks/ssr/node_modules__pnpm_747b43ac._.js.map +0 -1
  387. package/web/.next/static/chunks/06b948216df083c1.js +0 -1
  388. package/web/.next/static/chunks/31f35710932542ef.js +0 -1
  389. package/web/.next/static/chunks/40b6bcf1a2de4a0f.js +0 -1
  390. package/web/.next/static/chunks/4714eb891fa4fd81.js +0 -1
  391. package/web/.next/static/chunks/57094e1cbd326d6c.css +0 -1
  392. package/web/.next/static/chunks/5f6161ceb4263319.js +0 -1
  393. package/web/.next/static/chunks/81f470d21748eafd.js +0 -2
  394. package/web/.next/static/chunks/829305a6e02eff1f.js +0 -1
  395. package/web/.next/static/chunks/97aaeeee72be634b.js +0 -1
  396. package/web/.next/static/chunks/9a7361e2365b2d8e.js +0 -1
  397. package/web/.next/static/chunks/9af45e885bd4ccef.js +0 -1
  398. package/web/.next/static/chunks/c3c3f2c9eb309920.js +0 -1
  399. package/web/.next/static/chunks/c7e793951b20a67f.js +0 -1
  400. package/web/.next/static/chunks/cb2824954c3975b0.js +0 -1
  401. package/web/.next/static/chunks/e9621b096a69e4e8.js +0 -11
  402. package/web/.next/static/chunks/fb99c57e6d28a274.js +0 -1
  403. /package/web/.next/static/{T6bpRqj4p37ell4NNYIUl → nIxRprL30XWZ36yCODJqc}/_buildManifest.js +0 -0
  404. /package/web/.next/static/{T6bpRqj4p37ell4NNYIUl → nIxRprL30XWZ36yCODJqc}/_clientMiddlewareManifest.json +0 -0
  405. /package/web/.next/static/{T6bpRqj4p37ell4NNYIUl → nIxRprL30XWZ36yCODJqc}/_ssgManifest.js +0 -0
@@ -5,11 +5,19 @@ import { isAbsolute } from 'node:path';
5
5
  import { spawn } from 'node:child_process';
6
6
  import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
7
7
  import { computeWorktreePath } from '../../../../../packages/core/src/infrastructure/services/ide-launchers/compute-worktree-path.js';
8
- // Use a record lookup instead of if/else to prevent the bundler from
8
+ import { getTerminalEntries } from '../../../../../packages/core/src/infrastructure/services/tool-installer/tool-metadata.js';
9
+ /** Resolves a platform-keyed value to the current platform string. */
10
+ function resolvePlatformValue(value) {
11
+ if (typeof value === 'string')
12
+ return value;
13
+ return value[platform()] ?? Object.values(value)[0];
14
+ }
15
+ // Fallback commands for the "system" terminal when no tool metadata entry exists.
16
+ // Uses a record lookup instead of if/else to prevent the bundler from
9
17
  // tree-shaking platform branches at build time. Turbopack evaluates
10
18
  // os.platform() during the build and dead-code-eliminates unused branches,
11
19
  // baking in the CI platform (linux) and breaking macOS/Windows installs.
12
- const SHELL_COMMANDS = {
20
+ const SYSTEM_TERMINAL_COMMANDS = {
13
21
  darwin: { cmd: 'open', args: (p) => ['-a', 'Terminal', p] },
14
22
  linux: { cmd: 'x-terminal-emulator', args: (p) => [`--working-directory=${p}`] },
15
23
  win32: {
@@ -25,11 +33,47 @@ export async function openShell(input) {
25
33
  try {
26
34
  const settings = getSettings();
27
35
  const shell = settings.environment.shellPreference;
36
+ const terminalPref = settings.environment.terminalPreference ?? 'system';
28
37
  const targetPath = branch ? computeWorktreePath(repositoryPath, branch) : repositoryPath;
29
38
  if (!existsSync(targetPath)) {
30
39
  return { success: false, error: `Path does not exist: ${targetPath}` };
31
40
  }
32
- const entry = SHELL_COMMANDS[platform()];
41
+ // Try to find the terminal in tool metadata for non-system terminals
42
+ if (terminalPref !== 'system') {
43
+ const entries = getTerminalEntries();
44
+ const terminalEntry = entries.find(([id]) => id === terminalPref);
45
+ if (terminalEntry) {
46
+ const [, meta] = terminalEntry;
47
+ if (meta.openDirectory) {
48
+ const openCmd = resolvePlatformValue(meta.openDirectory);
49
+ if (openCmd.includes('{dir}')) {
50
+ const resolved = openCmd.replace('{dir}', targetPath);
51
+ const useShell = meta.spawnOptions?.shell === true;
52
+ if (useShell) {
53
+ const child = spawn(resolved, [], {
54
+ detached: true,
55
+ stdio: 'ignore',
56
+ shell: true,
57
+ });
58
+ child.on('error', () => undefined);
59
+ child.unref();
60
+ }
61
+ else {
62
+ const [command, ...args] = resolved.split(/\s+/);
63
+ const child = spawn(command, args, {
64
+ detached: true,
65
+ stdio: 'ignore',
66
+ });
67
+ child.on('error', () => undefined);
68
+ child.unref();
69
+ }
70
+ return { success: true, path: targetPath, shell };
71
+ }
72
+ }
73
+ }
74
+ }
75
+ // Fallback to system terminal
76
+ const entry = SYSTEM_TERMINAL_COMMANDS[platform()];
33
77
  if (!entry) {
34
78
  return {
35
79
  success: false,
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/settings/page.tsx"],"names":[],"mappings":"AAGA,uFAAuF;AACvF,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,wBAA8B,YAAY,qDAoBzC"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/settings/page.tsx"],"names":[],"mappings":"AAIA,uFAAuF;AACvF,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,wBAA8B,YAAY,qDAwBzC"}
@@ -1,12 +1,16 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { loadSettings } from '../actions/load-settings.js';
3
+ import { getAvailableTerminals } from '../actions/get-available-terminals.js';
3
4
  import { SettingsPageClient } from '../../components/features/settings/settings-page-client.js';
4
5
  /** Skip static pre-rendering since we need runtime DI container and server context. */
5
6
  export const dynamic = 'force-dynamic';
6
7
  export default async function SettingsPage() {
7
- const { settings, shepHome, dbFileSize, error } = await loadSettings();
8
+ const [{ settings, shepHome, dbFileSize, error }, availableTerminals] = await Promise.all([
9
+ loadSettings(),
10
+ getAvailableTerminals(),
11
+ ]);
8
12
  if (error || !settings) {
9
13
  return (_jsx("div", { className: "flex h-full flex-col p-6", children: _jsxs("p", { className: "text-destructive text-sm", children: ["Failed to load settings: ", error] }) }));
10
14
  }
11
- return (_jsx("div", { className: "flex h-full flex-col px-6 pb-6", children: _jsx(SettingsPageClient, { settings: settings, shepHome: shepHome ?? '', dbFileSize: dbFileSize ?? 'Unknown' }) }));
15
+ return (_jsx("div", { className: "flex h-full flex-col px-6 pb-6", children: _jsx(SettingsPageClient, { settings: settings, shepHome: shepHome ?? '', dbFileSize: dbFileSize ?? 'Unknown', availableTerminals: availableTerminals }) }));
12
16
  }
@@ -1,6 +1,8 @@
1
1
  import type { EnvironmentConfig } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ import type { AvailableTerminal } from '../../../app/actions/get-available-terminals.js';
2
3
  export interface EnvironmentSettingsSectionProps {
3
4
  environment: EnvironmentConfig;
5
+ availableTerminals?: AvailableTerminal[];
4
6
  }
5
- export declare function EnvironmentSettingsSection({ environment }: EnvironmentSettingsSectionProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function EnvironmentSettingsSection({ environment, availableTerminals, }: EnvironmentSettingsSectionProps): import("react/jsx-runtime").JSX.Element;
6
8
  //# sourceMappingURL=environment-settings-section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAgB9E,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,iBAAiB,CAAC;CAChC;AAED,wBAAgB,0BAA0B,CAAC,EAAE,WAAW,EAAE,EAAE,+BAA+B,2CAwF1F"}
1
+ {"version":3,"file":"environment-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAgB/E,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED,wBAAgB,0BAA0B,CAAC,EACzC,WAAW,EACX,kBAAkB,GACnB,EAAE,+BAA+B,2CAuIjC"}
@@ -7,7 +7,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../..
7
7
  import { Label } from '../../ui/label.js';
8
8
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
9
9
  import { updateSettingsAction } from '../../../app/actions/update-settings.js';
10
- import { EditorType } from '../../../../../../packages/core/src/domain/generated/output.js';
10
+ import { EditorType, TerminalType } from '../../../../../../packages/core/src/domain/generated/output.js';
11
11
  const EDITOR_OPTIONS = [
12
12
  { value: EditorType.VsCode, label: 'VS Code' },
13
13
  { value: EditorType.Cursor, label: 'Cursor' },
@@ -20,9 +20,10 @@ const SHELL_OPTIONS = [
20
20
  { value: 'zsh', label: 'Zsh' },
21
21
  { value: 'fish', label: 'Fish' },
22
22
  ];
23
- export function EnvironmentSettingsSection({ environment }) {
23
+ export function EnvironmentSettingsSection({ environment, availableTerminals, }) {
24
24
  const [editor, setEditor] = useState(environment.defaultEditor);
25
25
  const [shell, setShell] = useState(environment.shellPreference);
26
+ const [terminal, setTerminal] = useState(environment.terminalPreference ?? TerminalType.System);
26
27
  const [isPending, startTransition] = useTransition();
27
28
  const [showSaved, setShowSaved] = useState(false);
28
29
  const prevPendingRef = useRef(false);
@@ -44,11 +45,37 @@ export function EnvironmentSettingsSection({ environment }) {
44
45
  }
45
46
  function handleEditorChange(value) {
46
47
  setEditor(value);
47
- save({ environment: { defaultEditor: value, shellPreference: shell } });
48
+ save({
49
+ environment: {
50
+ defaultEditor: value,
51
+ shellPreference: shell,
52
+ terminalPreference: terminal,
53
+ },
54
+ });
48
55
  }
49
56
  function handleShellChange(value) {
50
57
  setShell(value);
51
- save({ environment: { defaultEditor: editor, shellPreference: value } });
58
+ save({
59
+ environment: {
60
+ defaultEditor: editor,
61
+ shellPreference: value,
62
+ terminalPreference: terminal,
63
+ },
64
+ });
65
+ }
66
+ function handleTerminalChange(value) {
67
+ setTerminal(value);
68
+ save({
69
+ environment: {
70
+ defaultEditor: editor,
71
+ shellPreference: shell,
72
+ terminalPreference: value,
73
+ },
74
+ });
52
75
  }
53
- return (_jsxs(Card, { id: "environment", className: "scroll-mt-6", "data-testid": "environment-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Terminal, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "IDE & Terminal" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure your default editor and shell preferences" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "default-editor", children: "Default Editor" }), _jsxs(Select, { value: editor, onValueChange: handleEditorChange, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: EDITOR_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "shell-preference", children: "Shell Preference" }), _jsxs(Select, { value: shell, onValueChange: handleShellChange, children: [_jsx(SelectTrigger, { id: "shell-preference", "data-testid": "shell-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SHELL_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] })] })] }));
76
+ // Filter to only show installed terminals
77
+ const terminalOptions = availableTerminals
78
+ ? availableTerminals.filter((t) => t.available)
79
+ : [{ id: TerminalType.System, name: 'System Terminal', available: true }];
80
+ return (_jsxs(Card, { id: "environment", className: "scroll-mt-6", "data-testid": "environment-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Terminal, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "IDE & Terminal" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure your default editor, shell, and terminal preferences" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "default-editor", children: "Default Editor" }), _jsxs(Select, { value: editor, onValueChange: handleEditorChange, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: EDITOR_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "shell-preference", children: "Shell Preference" }), _jsxs(Select, { value: shell, onValueChange: handleShellChange, children: [_jsx(SelectTrigger, { id: "shell-preference", "data-testid": "shell-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SHELL_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { htmlFor: "terminal-preference", children: "Terminal Emulator" }), _jsxs(Select, { value: terminal, onValueChange: handleTerminalChange, children: [_jsx(SelectTrigger, { id: "terminal-preference", "data-testid": "terminal-select", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: terminalOptions.map((opt) => (_jsx(SelectItem, { value: opt.id, children: opt.name }, opt.id))) })] })] })] })] }));
54
81
  }
@@ -12,4 +12,6 @@ export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
  export declare const Default: Story;
14
14
  export declare const CursorWithZsh: Story;
15
+ export declare const WarpSelected: Story;
16
+ export declare const OnlySystemTerminal: Story;
15
17
  //# sourceMappingURL=environment-settings-section.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAG5E,QAAA,MAAM,IAAI;;;;;;;CAOyC,CAAC;AAEpD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC"}
1
+ {"version":3,"file":"environment-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/environment-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAG5E,QAAA,MAAM,IAAI;;;;;;;CAOyC,CAAC;AAEpD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAe1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { EnvironmentSettingsSection } from './environment-settings-section.js';
2
- import { EditorType } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ import { EditorType, TerminalType } from '../../../../../../packages/core/src/domain/generated/output.js';
3
3
  const meta = {
4
4
  title: 'Features/Settings/EnvironmentSettingsSection',
5
5
  component: EnvironmentSettingsSection,
@@ -14,7 +14,13 @@ export const Default = {
14
14
  environment: {
15
15
  defaultEditor: EditorType.VsCode,
16
16
  shellPreference: 'bash',
17
+ terminalPreference: TerminalType.System,
17
18
  },
19
+ availableTerminals: [
20
+ { id: 'system', name: 'System Terminal', available: true },
21
+ { id: 'warp', name: 'Warp', available: true },
22
+ { id: 'iterm2', name: 'iTerm2', available: true },
23
+ ],
18
24
  },
19
25
  };
20
26
  export const CursorWithZsh = {
@@ -22,6 +28,33 @@ export const CursorWithZsh = {
22
28
  environment: {
23
29
  defaultEditor: EditorType.Cursor,
24
30
  shellPreference: 'zsh',
31
+ terminalPreference: TerminalType.System,
32
+ },
33
+ availableTerminals: [{ id: 'system', name: 'System Terminal', available: true }],
34
+ },
35
+ };
36
+ export const WarpSelected = {
37
+ args: {
38
+ environment: {
39
+ defaultEditor: EditorType.VsCode,
40
+ shellPreference: 'zsh',
41
+ terminalPreference: TerminalType.Warp,
42
+ },
43
+ availableTerminals: [
44
+ { id: 'system', name: 'System Terminal', available: true },
45
+ { id: 'warp', name: 'Warp', available: true },
46
+ { id: 'iterm2', name: 'iTerm2', available: true },
47
+ { id: 'alacritty', name: 'Alacritty', available: true },
48
+ { id: 'kitty', name: 'Kitty', available: true },
49
+ ],
50
+ },
51
+ };
52
+ export const OnlySystemTerminal = {
53
+ args: {
54
+ environment: {
55
+ defaultEditor: EditorType.VsCode,
56
+ shellPreference: 'bash',
57
+ terminalPreference: TerminalType.System,
25
58
  },
26
59
  },
27
60
  };
@@ -1,8 +1,10 @@
1
1
  import type { Settings } from '../../../../../../packages/core/src/domain/generated/output.js';
2
+ import type { AvailableTerminal } from '../../../app/actions/get-available-terminals.js';
2
3
  export interface SettingsPageClientProps {
3
4
  settings: Settings;
4
5
  shepHome: string;
5
6
  dbFileSize: string;
7
+ availableTerminals?: AvailableTerminal[];
6
8
  }
7
- export declare function SettingsPageClient({ settings, shepHome, dbFileSize }: SettingsPageClientProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function SettingsPageClient({ settings, shepHome, dbFileSize, availableTerminals, }: SettingsPageClientProps): import("react/jsx-runtime").JSX.Element;
8
10
  //# sourceMappingURL=settings-page-client.d.ts.map
@@ -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":"AAuCA,OAAO,KAAK,EACV,QAAQ,EAGT,MAAM,sCAAsC,CAAC;AA0B9C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AA6QD,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,uBAAuB,2CA4iC7F"}
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,EAGT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAgC/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;AA6QD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,GACnB,EAAE,uBAAuB,2CA4nCzB"}
@@ -11,7 +11,7 @@ import { Switch } from '../../ui/switch.js';
11
11
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
12
12
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../ui/select.js';
13
13
  import { updateSettingsAction } from '../../../app/actions/update-settings.js';
14
- import { AgentAuthMethod, EditorType } from '../../../../../../packages/core/src/domain/generated/output.js';
14
+ import { AgentAuthMethod, EditorType, TerminalType, } from '../../../../../../packages/core/src/domain/generated/output.js';
15
15
  import { getEditorTypeIcon } from '../../common/editor-type-icons.js';
16
16
  import { AgentModelPicker } from '../../features/settings/AgentModelPicker/index.js';
17
17
  import { TimeoutSlider } from '../../features/settings/timeout-slider.js';
@@ -26,6 +26,11 @@ const EDITOR_OPTIONS = [
26
26
  { value: EditorType.Zed, label: 'Zed' },
27
27
  { value: EditorType.Antigravity, label: 'Antigravity' },
28
28
  ];
29
+ const SHELL_OPTIONS = [
30
+ { value: 'bash', label: 'Bash' },
31
+ { value: 'zsh', label: 'Zsh' },
32
+ { value: 'fish', label: 'Fish' },
33
+ ];
29
34
  const SECTIONS = [
30
35
  { id: 'agent', label: 'Agent', icon: Bot },
31
36
  { id: 'environment', label: 'Environment', icon: Terminal },
@@ -115,7 +120,7 @@ function SectionHint({ children, links, }) {
115
120
  return (_jsxs("div", { className: "hidden pt-2 lg:block", children: [_jsx("p", { className: "text-muted-foreground/70 text-[11px] leading-relaxed", children: children }), links != null && links.length > 0 ? (_jsx("div", { className: "mt-2 flex flex-col gap-1", children: links.map((link) => (_jsxs("a", { href: link.href, target: "_blank", rel: "noopener noreferrer", className: "text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-[10px] transition-colors", children: [_jsx(ExternalLink, { className: "h-2.5 w-2.5" }), link.label] }, link.href))) })) : null] }));
116
121
  }
117
122
  /* ── Main component ── */
118
- export function SettingsPageClient({ settings, shepHome, dbFileSize }) {
123
+ export function SettingsPageClient({ settings, shepHome, dbFileSize, availableTerminals, }) {
119
124
  const { showSaving, showSaved, save } = useSaveIndicator();
120
125
  const featureFlags = settings.featureFlags ?? { skills: false, envDeploy: false, debug: false };
121
126
  // Agent state
@@ -125,7 +130,12 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize }) {
125
130
  const [showToken, setShowToken] = useState(false);
126
131
  // Environment state
127
132
  const [editor, setEditor] = useState(settings.environment.defaultEditor);
128
- const shell = settings.environment.shellPreference;
133
+ const [shell, setShell] = useState(settings.environment.shellPreference);
134
+ const [terminal, setTerminal] = useState(settings.environment.terminalPreference ?? TerminalType.System);
135
+ // Filter to only show installed terminals
136
+ const terminalOptions = availableTerminals
137
+ ? availableTerminals.filter((t) => t.available)
138
+ : [{ id: TerminalType.System, name: 'System Terminal', available: true }];
129
139
  // Workflow state
130
140
  const [openPr, setOpenPr] = useState(settings.workflow.openPrOnImplementationComplete);
131
141
  const [pushOnComplete, setPushOnComplete] = useState(settings.workflow.approvalGateDefaults.pushOnImplementationComplete);
@@ -299,20 +309,42 @@ export function SettingsPageClient({ settings, shepHome, dbFileSize }) {
299
309
  label: 'Configuration guide',
300
310
  href: 'https://github.com/shep-ai/cli/blob/main/docs/guides/configuration.md',
301
311
  },
302
- ], children: "Choose which AI coding agent powers your features. Each agent supports different models and capabilities. Authentication is resolved automatically via your active session." })] }), _jsxs("div", { id: "section-environment", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsx(SettingsSection, { icon: Terminal, title: "Environment", description: "Editor and shell preferences", testId: "environment-settings-section", children: _jsx(SettingsRow, { label: "Default Editor", description: "Editor launched for file operations", htmlFor: "default-editor", children: _jsxs(Select, { value: editor, onValueChange: (v) => {
303
- setEditor(v);
304
- save({
305
- environment: { defaultEditor: v, shellPreference: shell },
306
- });
307
- }, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", className: "w-55 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: EDITOR_OPTIONS.map((opt) => {
308
- const Icon = getEditorTypeIcon(opt.value);
309
- return (_jsx(SelectItem, { value: opt.value, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), opt.label] }) }, opt.value));
310
- }) })] }) }) }), _jsx(SectionHint, { links: [
312
+ ], children: "Choose which AI coding agent powers your features. Each agent supports different models and capabilities. Authentication is resolved automatically via your active session." })] }), _jsxs("div", { id: "section-environment", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: Terminal, title: "Environment", description: "Editor, shell, and terminal preferences", testId: "environment-settings-section", children: [_jsx(SettingsRow, { label: "Default Editor", description: "Editor launched for file operations", htmlFor: "default-editor", children: _jsxs(Select, { value: editor, onValueChange: (v) => {
313
+ setEditor(v);
314
+ save({
315
+ environment: {
316
+ defaultEditor: v,
317
+ shellPreference: shell,
318
+ terminalPreference: terminal,
319
+ },
320
+ });
321
+ }, children: [_jsx(SelectTrigger, { id: "default-editor", "data-testid": "editor-select", className: "w-55 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: EDITOR_OPTIONS.map((opt) => {
322
+ const Icon = getEditorTypeIcon(opt.value);
323
+ return (_jsx(SelectItem, { value: opt.value, children: _jsxs("span", { className: "flex items-center gap-2 text-xs", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), opt.label] }) }, opt.value));
324
+ }) })] }) }), _jsx(SettingsRow, { label: "Shell", description: "Default shell for generated scripts", htmlFor: "shell-preference", children: _jsxs(Select, { value: shell, onValueChange: (v) => {
325
+ setShell(v);
326
+ save({
327
+ environment: {
328
+ defaultEditor: editor,
329
+ shellPreference: v,
330
+ terminalPreference: terminal,
331
+ },
332
+ });
333
+ }, children: [_jsx(SelectTrigger, { id: "shell-preference", "data-testid": "shell-select", className: "w-55 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SHELL_OPTIONS.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] }) }), _jsx(SettingsRow, { label: "Terminal", description: "Terminal emulator for shell sessions", htmlFor: "terminal-preference", children: _jsxs(Select, { value: terminal, onValueChange: (v) => {
334
+ setTerminal(v);
335
+ save({
336
+ environment: {
337
+ defaultEditor: editor,
338
+ shellPreference: shell,
339
+ terminalPreference: v,
340
+ },
341
+ });
342
+ }, children: [_jsx(SelectTrigger, { id: "terminal-preference", "data-testid": "terminal-select", className: "w-55 cursor-pointer text-xs", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: terminalOptions.map((opt) => (_jsx(SelectItem, { value: opt.id, children: opt.name }, opt.id))) })] }) })] }), _jsx(SectionHint, { links: [
311
343
  {
312
344
  label: 'Configuration guide',
313
345
  href: 'https://github.com/shep-ai/cli/blob/main/docs/guides/configuration.md',
314
346
  },
315
- ], children: "Your preferred editor is used when opening files for review or editing during the development workflow." })] }), _jsxs("div", { id: "section-workflow", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: GitBranch, title: "Workflow", description: "Automation behavior after implementation", testId: "workflow-settings-section", children: [_jsx(SubsectionLabel, { children: "Approve" }), _jsx(SwitchRow, { label: "Auto-approve PRD", description: "Skip manual review of requirements", id: "allow-prd", testId: "switch-allow-prd", checked: allowPrd, onChange: (v) => {
347
+ ], children: "Your preferred editor opens files for review. The shell setting controls generated scripts. The terminal emulator is launched when opening shell sessions from the web UI." })] }), _jsxs("div", { id: "section-workflow", className: "grid scroll-mt-18 grid-cols-1 gap-x-5 rounded-lg lg:grid-cols-[1fr_280px]", children: [_jsxs(SettingsSection, { icon: GitBranch, title: "Workflow", description: "Automation behavior after implementation", testId: "workflow-settings-section", children: [_jsx(SubsectionLabel, { children: "Approve" }), _jsx(SwitchRow, { label: "Auto-approve PRD", description: "Skip manual review of requirements", id: "allow-prd", testId: "switch-allow-prd", checked: allowPrd, onChange: (v) => {
316
348
  setAllowPrd(v);
317
349
  save(buildWorkflowPayload({ allowPrd: v }));
318
350
  } }), _jsx(SwitchRow, { label: "Auto-approve Plan", description: "Skip manual review of implementation plan", id: "allow-plan", testId: "switch-allow-plan", checked: allowPlan, onChange: (v) => {
@@ -1 +1 @@
1
- {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;IAEhC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EAEZ,cAAc,GACf,EAAE,eAAe,2CAsHjB"}
1
+ {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;IAEhC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EAEZ,cAAc,GACf,EAAE,eAAe,2CAgHjB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { usePathname } from 'next/navigation';
4
- import { Home, Wrench, Puzzle, Settings, Webhook } from 'lucide-react';
4
+ import { Home, Wrench, Puzzle, Settings } from 'lucide-react';
5
5
  import { Sidebar, SidebarHeader, SidebarContent, SidebarMenu, SidebarMenuItem, SidebarRail, useSidebar, } from '../../ui/sidebar.js';
6
6
  import { ScrollArea } from '../../ui/scroll-area.js';
7
7
  import { SidebarNavItem } from '../../common/sidebar-nav-item/index.js';
@@ -29,7 +29,7 @@ export function AppSidebar({ features, featureFlags, onFeatureClick, }) {
29
29
  'flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2',
30
30
  'transition-opacity duration-200 ease-out',
31
31
  expandedVisible ? 'opacity-100' : 'opacity-0',
32
- ].join(' '), "aria-hidden": !expandedVisible, children: [_jsx(ShepLogo, { className: "shrink-0", size: 20, variant: versionData.isDev ? 'dev' : 'default' }), _jsx("span", { className: "truncate text-sm font-semibold tracking-tight", children: "Shep" }), _jsx(VersionBadge, { version: versionData.version, branch: versionData.branch || undefined, commitHash: versionData.commitHash || undefined, isDev: versionData.isDev, packageName: versionData.packageName, description: versionData.description, instancePath: versionData.instancePath || undefined })] })) : null, _jsx(SidebarCollapseToggle, { className: "shrink-0 transition-all duration-200" })] }) }), _jsx(SidebarNavItem, { icon: Home, label: "Control Center", href: "/", active: pathname === '/' }), _jsx(SidebarNavItem, { icon: Wrench, label: "Tools", href: "/tools", active: pathname === '/tools' }), featureFlags.skills ? (_jsx(SidebarNavItem, { icon: Puzzle, label: "Skills", href: "/skills", active: pathname === '/skills' })) : null, _jsx(SidebarNavItem, { icon: Webhook, label: "Webhooks", href: "/webhooks", active: pathname === '/webhooks' }), _jsx(SidebarNavItem, { icon: Settings, label: "Settings", href: "/settings", active: pathname === '/settings' })] }) }), _jsx(SidebarContent, { children: showExpanded ? (_jsxs("div", { className: [
32
+ ].join(' '), "aria-hidden": !expandedVisible, children: [_jsx(ShepLogo, { className: "shrink-0", size: 20, variant: versionData.isDev ? 'dev' : 'default' }), _jsx("span", { className: "truncate text-sm font-semibold tracking-tight", children: "Shep" }), _jsx(VersionBadge, { version: versionData.version, branch: versionData.branch || undefined, commitHash: versionData.commitHash || undefined, isDev: versionData.isDev, packageName: versionData.packageName, description: versionData.description, instancePath: versionData.instancePath || undefined })] })) : null, _jsx(SidebarCollapseToggle, { className: "shrink-0 transition-all duration-200" })] }) }), _jsx(SidebarNavItem, { icon: Home, label: "Control Center", href: "/", active: pathname === '/' }), _jsx(SidebarNavItem, { icon: Wrench, label: "Tools", href: "/tools", active: pathname === '/tools' }), featureFlags.skills ? (_jsx(SidebarNavItem, { icon: Puzzle, label: "Skills", href: "/skills", active: pathname === '/skills' })) : null, _jsx(SidebarNavItem, { icon: Settings, label: "Settings", href: "/settings", active: pathname === '/settings' })] }) }), _jsx(SidebarContent, { children: showExpanded ? (_jsxs("div", { className: [
33
33
  'min-w-0 overflow-hidden transition-opacity duration-200 ease-out',
34
34
  '[&_[data-sidebar=group-label]]:!mt-0 [&_[data-sidebar=group-label]]:!opacity-100 [&_[data-sidebar=group-label]]:!transition-none',
35
35
  expandedVisible ? 'opacity-100' : 'opacity-0',
@@ -20,7 +20,6 @@ import { initializeSettings } from '../../../packages/core/src/infrastructure/se
20
20
  import { initializeNotificationWatcher, getNotificationWatcher, } from '../../../packages/core/src/infrastructure/services/notifications/notification-watcher.service.js';
21
21
  import { initializePrSyncWatcher, getPrSyncWatcher, } from '../../../packages/core/src/infrastructure/services/pr-sync/pr-sync-watcher.service.js';
22
22
  import { getExistingConnection } from '../../../packages/core/src/infrastructure/persistence/sqlite/connection.js';
23
- import { initializeWebhookManager, getWebhookManager, hasWebhookManager, } from '../../../packages/core/src/infrastructure/services/webhook/webhook-manager.service.js';
24
23
  const DEFAULT_PORT = 3000;
25
24
  async function isPortAvailable(port) {
26
25
  return new Promise((resolve) => {
@@ -69,17 +68,6 @@ async function main() {
69
68
  const db = getExistingConnection();
70
69
  initializePrSyncWatcher(featureRepo, runRepo, gitPrService, notificationService, undefined, db);
71
70
  getPrSyncWatcher().start();
72
- // Start webhook system (optional — falls back to polling if cloudflared is not installed)
73
- try {
74
- const tunnelService = container.resolve('ITunnelService');
75
- const webhookService = container.resolve('IWebhookService');
76
- initializeWebhookManager(tunnelService, webhookService);
77
- // Start is async and non-blocking — failures are logged, not thrown
78
- void getWebhookManager().start(port);
79
- }
80
- catch (error) {
81
- console.warn('[dev-server] Webhook system init failed (using polling fallback):', error);
82
- }
83
71
  }
84
72
  catch (error) {
85
73
  console.warn('[dev-server] DI initialization failed — features will be empty:', error);
@@ -119,14 +107,6 @@ async function main() {
119
107
  console.log('\n[dev-server] Shutting down...');
120
108
  const forceExit = setTimeout(() => process.exit(0), 2000);
121
109
  try {
122
- try {
123
- if (hasWebhookManager()) {
124
- await getWebhookManager().stop();
125
- }
126
- }
127
- catch {
128
- /* not initialized */
129
- }
130
110
  try {
131
111
  getNotificationWatcher().stop();
132
112
  }