@shepai/cli 1.103.1-pr310.96614dc → 1.104.0-pr299.a2cc06c

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 (177) hide show
  1. package/apis/json-schema/FeatureFlags.yaml +1 -1
  2. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -1
  3. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts.map +1 -1
  4. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +1 -6
  5. package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.d.ts.map +1 -1
  6. package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.js +5 -3
  7. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.js +1 -1
  8. package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts +1 -1
  9. package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts.map +1 -1
  10. package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.js +8 -7
  11. package/dist/packages/core/src/infrastructure/services/ide-launchers/json-driven-ide-launcher.service.d.ts.map +1 -1
  12. package/dist/packages/core/src/infrastructure/services/ide-launchers/json-driven-ide-launcher.service.js +6 -8
  13. package/dist/packages/core/src/infrastructure/services/process/tree-kill.d.ts +12 -0
  14. package/dist/packages/core/src/infrastructure/services/process/tree-kill.d.ts.map +1 -0
  15. package/dist/packages/core/src/infrastructure/services/process/tree-kill.js +11 -0
  16. package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +1 -1
  17. package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts +25 -0
  18. package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts.map +1 -0
  19. package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.js +32 -0
  20. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.d.ts.map +1 -1
  21. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.js +4 -27
  22. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/alacritty.json +3 -2
  23. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/claude-code.json +3 -2
  24. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor-cli.json +3 -2
  25. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor.json +2 -1
  26. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/gh.json +2 -1
  27. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/git.json +2 -1
  28. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/vscode.json +2 -1
  29. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/warp.json +3 -2
  30. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/windsurf.json +3 -2
  31. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/zed.json +3 -2
  32. package/dist/src/presentation/cli/commands/daemon/start-daemon.d.ts.map +1 -1
  33. package/dist/src/presentation/cli/commands/daemon/start-daemon.js +1 -0
  34. package/dist/src/presentation/cli/commands/daemon/stop-daemon.d.ts.map +1 -1
  35. package/dist/src/presentation/cli/commands/daemon/stop-daemon.js +5 -4
  36. package/dist/src/presentation/web/app/actions/deploy-repository.d.ts.map +1 -1
  37. package/dist/src/presentation/web/app/actions/deploy-repository.js +2 -1
  38. package/dist/src/presentation/web/app/actions/open-folder.d.ts.map +1 -1
  39. package/dist/src/presentation/web/app/actions/open-folder.js +4 -2
  40. package/dist/src/presentation/web/app/actions/open-ide.d.ts.map +1 -1
  41. package/dist/src/presentation/web/app/actions/open-ide.js +2 -1
  42. package/dist/src/presentation/web/app/actions/open-shell.d.ts.map +1 -1
  43. package/dist/src/presentation/web/app/actions/open-shell.js +4 -2
  44. package/dist/src/presentation/web/components/common/merge-review/diff-view.js +1 -1
  45. package/dist/src/presentation/web/hooks/feature-flags-context.js +1 -1
  46. package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -1
  47. package/dist/src/presentation/web/lib/feature-flags.js +1 -3
  48. package/dist/tsconfig.build.tsbuildinfo +1 -1
  49. package/package.json +3 -1
  50. package/web/.next/BUILD_ID +1 -1
  51. package/web/.next/build-manifest.json +2 -2
  52. package/web/.next/fallback-build-manifest.json +2 -2
  53. package/web/.next/prerender-manifest.json +3 -3
  54. package/web/.next/required-server-files.js +2 -2
  55. package/web/.next/required-server-files.json +2 -2
  56. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +20 -20
  57. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  58. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  59. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +25 -25
  60. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  61. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  62. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +25 -25
  63. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  64. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  65. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
  66. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  67. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  68. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +20 -20
  69. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  70. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  71. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +25 -25
  72. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  73. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  74. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +25 -25
  75. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  76. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  77. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +18 -18
  78. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  79. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  80. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
  81. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  82. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  83. package/web/.next/server/app/_global-error.html +2 -2
  84. package/web/.next/server/app/_global-error.rsc +1 -1
  85. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  86. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  87. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  88. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  89. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  90. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  91. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
  93. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  94. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  95. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  96. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  97. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  98. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  99. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  100. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  101. package/web/.next/server/chunks/[root-of-the-server]__f47bb8a5._.js +1 -1
  102. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  103. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  104. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_0a7546ed.js +1 -1
  105. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_0a7546ed.js.map +1 -1
  106. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_978cbb4c.js +1 -1
  107. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_978cbb4c.js.map +1 -1
  108. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
  109. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
  110. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
  111. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +1 -1
  112. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  113. package/web/.next/server/chunks/ssr/[root-of-the-server]__51fc98b0._.js +1 -1
  114. package/web/.next/server/chunks/ssr/[root-of-the-server]__51fc98b0._.js.map +1 -1
  115. package/web/.next/server/chunks/ssr/[root-of-the-server]__57f37786._.js +1 -1
  116. package/web/.next/server/chunks/ssr/[root-of-the-server]__57f37786._.js.map +1 -1
  117. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
  118. package/web/.next/server/chunks/ssr/[root-of-the-server]__708dcad1._.js +1 -1
  119. package/web/.next/server/chunks/ssr/[root-of-the-server]__708dcad1._.js.map +1 -1
  120. package/web/.next/server/chunks/ssr/[root-of-the-server]__845a9d2a._.js +1 -1
  121. package/web/.next/server/chunks/ssr/[root-of-the-server]__845a9d2a._.js.map +1 -1
  122. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
  123. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +1 -1
  124. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e002910._.js +1 -1
  125. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e002910._.js.map +1 -1
  126. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
  127. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
  128. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
  129. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
  130. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  131. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  132. package/web/.next/server/chunks/ssr/{_738c91ef._.js → _2e3ec01b._.js} +2 -2
  133. package/web/.next/server/chunks/ssr/{_738c91ef._.js.map → _2e3ec01b._.js.map} +1 -1
  134. package/web/.next/server/chunks/ssr/{_ef876eb3._.js → _4038d4ba._.js} +2 -2
  135. package/web/.next/server/chunks/ssr/{_ef876eb3._.js.map → _4038d4ba._.js.map} +1 -1
  136. package/web/.next/server/chunks/ssr/{_147b5486._.js → _606f5d13._.js} +2 -2
  137. package/web/.next/server/chunks/ssr/{_147b5486._.js.map → _606f5d13._.js.map} +1 -1
  138. package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
  139. package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
  140. package/web/.next/server/chunks/ssr/_a37f5f18._.js +1 -1
  141. package/web/.next/server/chunks/ssr/_a37f5f18._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  143. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/_e6f2da4f._.js +1 -1
  145. package/web/.next/server/chunks/ssr/_e6f2da4f._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  147. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/src_presentation_web_7275ce5d._.js +2 -2
  149. package/web/.next/server/chunks/ssr/src_presentation_web_7275ce5d._.js.map +1 -1
  150. package/web/.next/server/chunks/ssr/src_presentation_web_758dfa10._.js +2 -2
  151. package/web/.next/server/chunks/ssr/src_presentation_web_758dfa10._.js.map +1 -1
  152. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_84803221.js +1 -1
  153. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_84803221.js.map +1 -1
  154. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  155. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  156. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  157. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  158. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  159. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  160. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  161. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  162. package/web/.next/server/pages/500.html +2 -2
  163. package/web/.next/server/server-reference-manifest.js +1 -1
  164. package/web/.next/server/server-reference-manifest.json +30 -30
  165. package/web/.next/static/chunks/{9672fd81ad812e95.js → 04f85d1bb4c9bd9f.js} +1 -1
  166. package/web/.next/static/chunks/{437d35dca5f99de7.js → 106f17ea546b4873.js} +2 -2
  167. package/web/.next/static/chunks/{8f74334e0d81fbf6.js → 3a19191db405a122.js} +1 -1
  168. package/web/.next/static/chunks/{e59cd240494601da.js → 57a806a72d427ce2.js} +1 -1
  169. package/web/.next/static/chunks/{399d760c5ea67761.js → 58f603517ee8f671.js} +1 -1
  170. package/web/.next/static/chunks/{c30a156f8727a5b6.js → 5cd861cac966b22e.js} +1 -1
  171. package/web/.next/static/chunks/{9c6b445c48d5c63b.js → 7e08e1d6fc515719.js} +1 -1
  172. package/web/.next/static/chunks/{9c77a4c94d390c55.js → 9ae5355ecbb986c4.js} +1 -1
  173. package/web/.next/static/chunks/{54623651bd67b953.js → ad4c597b1d9f2868.js} +2 -2
  174. package/web/.next/static/chunks/{31cc6211dddbf4b7.js → fe424cb940ac3b65.js} +2 -2
  175. /package/web/.next/static/{sR85VWrKwuty89MX4kL75 → KRcEMJYZ0qHENkXOfvNU-}/_buildManifest.js +0 -0
  176. /package/web/.next/static/{sR85VWrKwuty89MX4kL75 → KRcEMJYZ0qHENkXOfvNU-}/_clientMiddlewareManifest.json +0 -0
  177. /package/web/.next/static/{sR85VWrKwuty89MX4kL75 → KRcEMJYZ0qHENkXOfvNU-}/_ssgManifest.js +0 -0
@@ -1,6 +1,7 @@
1
1
  'use server';
2
2
  import { existsSync } from 'node:fs';
3
3
  import { platform } from 'node:os';
4
+ import { isAbsolute } from 'node:path';
4
5
  import { spawn } from 'node:child_process';
5
6
  // Use a record lookup instead of if/else to prevent the bundler from
6
7
  // tree-shaking platform branches at build time. Turbopack evaluates
@@ -9,9 +10,10 @@ import { spawn } from 'node:child_process';
9
10
  const FOLDER_COMMANDS = {
10
11
  darwin: { cmd: 'open', args: (p) => [p] },
11
12
  linux: { cmd: 'xdg-open', args: (p) => [p] },
13
+ win32: { cmd: 'explorer', args: (p) => [p] },
12
14
  };
13
15
  export async function openFolder(repositoryPath) {
14
- if (!repositoryPath?.startsWith('/')) {
16
+ if (!repositoryPath || !isAbsolute(repositoryPath)) {
15
17
  return { success: false, error: 'repositoryPath must be an absolute path' };
16
18
  }
17
19
  try {
@@ -22,7 +24,7 @@ export async function openFolder(repositoryPath) {
22
24
  if (!entry) {
23
25
  return {
24
26
  success: false,
25
- error: `Unsupported platform: ${platform()}. Folder open is supported on macOS and Linux only.`,
27
+ error: `Unsupported platform: ${platform()}`,
26
28
  };
27
29
  }
28
30
  const child = spawn(entry.cmd, entry.args(repositoryPath), {
@@ -1 +1 @@
1
- {"version":3,"file":"open-ide.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-ide.ts"],"names":[],"mappings":"AAMA,UAAU,YAAY;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,OAAO,CAC3B,KAAK,EAAE,YAAY,GAClB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAuB/E"}
1
+ {"version":3,"file":"open-ide.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-ide.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,OAAO,CAC3B,KAAK,EAAE,YAAY,GAClB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAuB/E"}
@@ -1,9 +1,10 @@
1
1
  'use server';
2
+ import { isAbsolute } from 'node:path';
2
3
  import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
3
4
  import { resolve } from '../../lib/server-container.js';
4
5
  export async function openIde(input) {
5
6
  const { repositoryPath, branch } = input;
6
- if (!repositoryPath?.startsWith('/')) {
7
+ if (!repositoryPath || !isAbsolute(repositoryPath)) {
7
8
  return { success: false, error: 'repositoryPath must be an absolute path' };
8
9
  }
9
10
  const settings = getSettings();
@@ -1 +1 @@
1
- {"version":3,"file":"open-shell.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-shell.ts"],"names":[],"mappings":"AAiBA,UAAU,cAAc;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,SAAS,CAC7B,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAoC9E"}
1
+ {"version":3,"file":"open-shell.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-shell.ts"],"names":[],"mappings":"AAmBA,UAAU,cAAc;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,SAAS,CAC7B,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAoC9E"}
@@ -1,6 +1,7 @@
1
1
  'use server';
2
2
  import { existsSync } from 'node:fs';
3
3
  import { platform } from 'node:os';
4
+ import { isAbsolute } from 'node:path';
4
5
  import { spawn } from 'node:child_process';
5
6
  import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
6
7
  import { computeWorktreePath } from '../../../../../packages/core/src/infrastructure/services/ide-launchers/compute-worktree-path.js';
@@ -11,10 +12,11 @@ import { computeWorktreePath } from '../../../../../packages/core/src/infrastruc
11
12
  const SHELL_COMMANDS = {
12
13
  darwin: { cmd: 'open', args: (p) => ['-a', 'Terminal', p] },
13
14
  linux: { cmd: 'x-terminal-emulator', args: (p) => [`--working-directory=${p}`] },
15
+ win32: { cmd: 'powershell', args: (p) => ['-NoExit', '-Command', `Set-Location "${p}"`] },
14
16
  };
15
17
  export async function openShell(input) {
16
18
  const { repositoryPath, branch } = input;
17
- if (!repositoryPath?.startsWith('/')) {
19
+ if (!repositoryPath || !isAbsolute(repositoryPath)) {
18
20
  return { success: false, error: 'repositoryPath must be an absolute path' };
19
21
  }
20
22
  try {
@@ -28,7 +30,7 @@ export async function openShell(input) {
28
30
  if (!entry) {
29
31
  return {
30
32
  success: false,
31
- error: `Unsupported platform: ${platform()}. Shell launch is supported on macOS and Linux only.`,
33
+ error: `Unsupported platform: ${platform()}`,
32
34
  };
33
35
  }
34
36
  const child = spawn(entry.cmd, entry.args(targetPath), {
@@ -26,5 +26,5 @@ function FileDiffItem({ file }) {
26
26
  export function DiffView({ fileDiffs }) {
27
27
  if (fileDiffs.length === 0)
28
28
  return null;
29
- return (_jsxs("div", { className: "border-border rounded-lg border", children: [_jsx("div", { className: "px-4 py-3", children: _jsxs("div", { className: "mb-2 flex items-center gap-2", children: [_jsx(FileText, { className: "text-muted-foreground h-4 w-4" }), _jsx("span", { className: "text-foreground text-xs font-semibold", children: "Changed Files" }), _jsxs("span", { className: "text-muted-foreground text-[10px]", children: ["(", fileDiffs.length, ")"] })] }) }), _jsx("div", { className: "border-border border-t", children: fileDiffs.map((file) => (_jsx(FileDiffItem, { file: file }, file.path))) })] }));
29
+ return (_jsxs("div", { className: "border-border rounded-lg border", children: [_jsx("div", { className: "px-4 py-3", children: _jsxs("div", { className: "mb-2 flex items-center gap-2", children: [_jsx(FileText, { className: "text-muted-foreground h-4 w-4" }), _jsx("span", { className: "text-foreground text-xs font-semibold", children: "Changed Files" }), _jsxs("span", { className: "text-muted-foreground text-[10px]", children: ["(", fileDiffs.length, ")"] })] }) }), _jsx("div", { className: "border-border border-t", children: fileDiffs.map((file) => (_jsx(FileDiffItem, { file: file }, `${file.status}-${file.path}`))) })] }));
30
30
  }
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { createContext, useContext } from 'react';
4
- const defaultFlags = { skills: false, envDeploy: true, debug: false };
4
+ const defaultFlags = { skills: false, envDeploy: false, debug: false };
5
5
  const FeatureFlagsContext = createContext(defaultFlags);
6
6
  /**
7
7
  * Provides server-resolved feature flags to all client components.
@@ -1 +1 @@
1
- {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/feature-flags.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,eAAe,IAAI,iBAAiB,CAwBnD;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;CAUf,CAAC"}
1
+ {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/feature-flags.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,eAAe,IAAI,iBAAiB,CAqBnD;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;CAUf,CAAC"}
@@ -27,9 +27,7 @@ export function getFeatureFlags() {
27
27
  }
28
28
  return {
29
29
  skills: isEnabled(process.env.NEXT_PUBLIC_FLAG_SKILLS),
30
- envDeploy: process.env.NEXT_PUBLIC_FLAG_ENV_DEPLOY !== undefined
31
- ? isEnabled(process.env.NEXT_PUBLIC_FLAG_ENV_DEPLOY)
32
- : true,
30
+ envDeploy: isEnabled(process.env.NEXT_PUBLIC_FLAG_ENV_DEPLOY),
33
31
  debug: false,
34
32
  };
35
33
  }