@shepai/cli 1.101.2 → 1.101.3-pr299.26f760e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packages/core/src/infrastructure/repositories/sqlite-repository.repository.js +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.js +5 -3
- package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.js +1 -1
- package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts +1 -1
- package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.js +8 -7
- package/dist/packages/core/src/infrastructure/services/ide-launchers/json-driven-ide-launcher.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/ide-launchers/json-driven-ide-launcher.service.js +6 -8
- package/dist/packages/core/src/infrastructure/services/process/tree-kill.d.ts +12 -0
- package/dist/packages/core/src/infrastructure/services/process/tree-kill.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/process/tree-kill.js +11 -0
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +1 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts +25 -0
- package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.js +32 -0
- package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.js +4 -27
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/alacritty.json +3 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/claude-code.json +3 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor-cli.json +3 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor.json +2 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/gh.json +2 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/git.json +2 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/vscode.json +2 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/warp.json +3 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/windsurf.json +3 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/zed.json +3 -2
- package/dist/src/presentation/cli/commands/daemon/start-daemon.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/daemon/start-daemon.js +1 -0
- package/dist/src/presentation/cli/commands/daemon/stop-daemon.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/daemon/stop-daemon.js +5 -4
- package/dist/src/presentation/web/app/actions/deploy-repository.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/deploy-repository.js +2 -1
- package/dist/src/presentation/web/app/actions/open-folder.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-folder.js +4 -2
- package/dist/src/presentation/web/app/actions/open-ide.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-ide.js +2 -1
- package/dist/src/presentation/web/app/actions/open-shell.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-shell.js +4 -2
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +6 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-node-config.d.ts +2 -0
- package/dist/src/presentation/web/components/common/repository-node/repository-node-config.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +7 -1
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.js +24 -0
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +9 -2
- package/dist/src/presentation/web/lib/layout-with-dagre.d.ts +2 -2
- package/dist/src/presentation/web/lib/layout-with-dagre.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/layout-with-dagre.js +34 -35
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +3 -3
- package/web/.next/required-server-files.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_c757eb00.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_c757eb00.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_7eb49631.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_7eb49631.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0b6bb4ae._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0b6bb4ae._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6a82177d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6a82177d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__845a9d2a._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__845a9d2a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ec9a1550._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ec9a1550._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f8932d55._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f8932d55._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0796f5ff._.js +3 -0
- package/web/.next/server/chunks/ssr/{_4473cfb6._.js.map → _0796f5ff._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_280d26ea._.js → _36c19ad6._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_280d26ea._.js.map → _36c19ad6._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_7b1078ea._.js → _72b106be._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_7b1078ea._.js.map → _72b106be._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_3c53a23d._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_3c53a23d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_befd865a.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_befd865a.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_(dashboard)_get-graph-data_ts_b018483e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_(dashboard)_get-graph-data_ts_b018483e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ec8c7a4f._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_ec8c7a4f._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +30 -30
- package/web/.next/static/chunks/{a66eac8ca44acbb8.js → 04a7577d12e4f21a.js} +1 -1
- package/web/.next/static/chunks/{4d833a7ba9df9988.js → 16dfaa54dfd2528d.js} +1 -1
- package/web/.next/static/chunks/{7666092966404f8c.js → 3c5d209316ec8ce6.js} +1 -1
- package/web/.next/static/chunks/{9a8b41844fcfcfac.js → 4a770f409f1f87b1.js} +1 -1
- package/web/.next/static/chunks/{623fe05019d98c59.js → 593b04977b5d928e.js} +1 -1
- package/web/.next/static/chunks/{1f7e94b3b3b34cf8.js → 720325fcd4254859.js} +2 -2
- package/web/.next/static/chunks/8d38ab818783b1ea.js +1 -0
- package/web/.next/static/chunks/{76ff101574593296.js → 91d905a60c9893e3.js} +2 -2
- package/web/.next/static/chunks/{30dfa1c50ed84f72.js → 9c431e3943cffd8e.js} +1 -1
- package/web/.next/static/chunks/{5355ccb00d9222d9.js → c4e6df7d3f9d642b.js} +1 -1
- package/web/.next/static/chunks/{7410dc38a52be411.js → e06d87d6bda01e27.js} +1 -1
- package/web/.next/server/chunks/ssr/_4473cfb6._.js +0 -3
- package/web/.next/static/chunks/8b86d41dab85f3fd.js +0 -1
- /package/web/.next/static/{SKROAp66dxxVOMZZax_Vp → oZM8kM8VMeZVvbFuLCaiB}/_buildManifest.js +0 -0
- /package/web/.next/static/{SKROAp66dxxVOMZZax_Vp → oZM8kM8VMeZVvbFuLCaiB}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{SKROAp66dxxVOMZZax_Vp → oZM8kM8VMeZVvbFuLCaiB}/_ssgManifest.js +0 -0
|
@@ -41,7 +41,7 @@ let SQLiteRepositoryRepository = class SQLiteRepositoryRepository {
|
|
|
41
41
|
return row ? fromDatabase(row) : null;
|
|
42
42
|
}
|
|
43
43
|
async list() {
|
|
44
|
-
const stmt = this.db.prepare('SELECT * FROM repositories WHERE deleted_at IS NULL ORDER BY
|
|
44
|
+
const stmt = this.db.prepare('SELECT * FROM repositories WHERE deleted_at IS NULL ORDER BY created_at ASC');
|
|
45
45
|
const rows = stmt.all();
|
|
46
46
|
return rows.map(fromDatabase);
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-executor.service.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,4EAA4E,CAAC;
|
|
1
|
+
{"version":3,"file":"dev-executor.service.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,4EAA4E,CAAC;AAwIpF,qBAAa,uBAAwB,YAAW,cAAc;IAC5D,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAsB;IACnD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;;IAM3B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAOvF,aAAa,CAClB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,qBAAqB,GAC9B,aAAa,CAAC,yBAAyB,CAAC;IAK3C,eAAe,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO;IAIhD,OAAO,CAAC,QAAQ;CAmEjB"}
|
|
@@ -101,20 +101,22 @@ const CI_FIX_RESULT = 'Fixed CI failure: corrected import path. All checks now p
|
|
|
101
101
|
* plan.prompt.ts:199.
|
|
102
102
|
*/
|
|
103
103
|
function extractSpecDir(prompt) {
|
|
104
|
+
// Match both Unix absolute paths (/...) and Windows absolute paths (C:\...)
|
|
105
|
+
const ABS_PATH = String.raw `(?:\/|[A-Za-z]:[/\\])[^\s\n]+`;
|
|
104
106
|
// Analyze ("Write your analysis to:"), requirements ("Update the file at:"),
|
|
105
107
|
// research ("Write your research to:")
|
|
106
|
-
const fileMatch = prompt.match(
|
|
108
|
+
const fileMatch = prompt.match(new RegExp(`(?:Write your \\w+ to|Update the file at):\\s+(${ABS_PATH})`));
|
|
107
109
|
if (fileMatch)
|
|
108
110
|
return path.dirname(fileMatch[1]);
|
|
109
111
|
// Plan: "Write to BOTH /path/plan.yaml AND /path/tasks.yaml"
|
|
110
|
-
const planMatch = prompt.match(
|
|
112
|
+
const planMatch = prompt.match(new RegExp(`Write to BOTH\\s+(${ABS_PATH})[/\\\\]plan\\.yaml`));
|
|
111
113
|
if (planMatch)
|
|
112
114
|
return planMatch[1];
|
|
113
115
|
return null;
|
|
114
116
|
}
|
|
115
117
|
/** Validate extracted specDir: must be absolute, no ".." traversal. */
|
|
116
118
|
function validateSpecDir(specDir) {
|
|
117
|
-
if (!
|
|
119
|
+
if (!path.isAbsolute(specDir))
|
|
118
120
|
throw new Error(`DevAgentExecutorService: invalid specDir (not absolute): ${specDir}`);
|
|
119
121
|
if (specDir.includes('..'))
|
|
120
122
|
throw new Error(`DevAgentExecutorService: invalid specDir (contains ".."): ${specDir}`);
|
|
@@ -311,7 +311,7 @@ let ClaudeCodeSessionRepository = class ClaudeCodeSessionRepository {
|
|
|
311
311
|
const home = os.homedir();
|
|
312
312
|
if (filePath === home)
|
|
313
313
|
return '~';
|
|
314
|
-
if (filePath.startsWith(`${home}
|
|
314
|
+
if (filePath.startsWith(`${home}${path.sep}`)) {
|
|
315
315
|
return `~${filePath.slice(home.length)}`;
|
|
316
316
|
}
|
|
317
317
|
return filePath;
|
package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/deployment/deployment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"deployment.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/deployment/deployment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAI9D,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACT,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAoBzD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnC;AAgBD,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsC;IAClE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwB;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;gBAElC,IAAI,GAAE,OAAO,CAAC,qBAAqB,CAAM;IAIrD;;;OAGG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IA+EjD;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAYpD;;OAEG;IACG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyC3C;;OAEG;IACH,OAAO,IAAI,IAAI;IAOf;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI;IAM5C;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAI1D;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAI3D;;OAEG;IACH,OAAO,CAAC,WAAW;IAQnB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA+D5B;;OAEG;YACW,aAAa;IAW3B;;OAEG;IACH,OAAO,CAAC,WAAW;CASpB"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { spawn } from 'node:child_process';
|
|
10
10
|
import { EventEmitter } from 'node:events';
|
|
11
|
+
import treeKill from 'tree-kill';
|
|
11
12
|
import { DeploymentState } from '../../../domain/generated/output.js';
|
|
12
13
|
import { detectDevScript } from './detect-dev-script.js';
|
|
13
14
|
import { createDeploymentLogger } from './deployment-logger.js';
|
|
@@ -19,7 +20,7 @@ const MAX_WAIT_MS = 5000;
|
|
|
19
20
|
const defaultDeps = {
|
|
20
21
|
spawn,
|
|
21
22
|
detectDevScript,
|
|
22
|
-
kill: (pid, signal) =>
|
|
23
|
+
kill: (pid, signal) => treeKill(pid, signal),
|
|
23
24
|
isAlive: (pid) => {
|
|
24
25
|
try {
|
|
25
26
|
process.kill(pid, 0);
|
|
@@ -123,11 +124,11 @@ export class DeploymentService {
|
|
|
123
124
|
log.info(`stop("${targetId}") — no deployment found, nothing to stop`);
|
|
124
125
|
return;
|
|
125
126
|
}
|
|
126
|
-
log.info(`stop("${targetId}") — sending SIGTERM to process
|
|
127
|
+
log.info(`stop("${targetId}") — sending SIGTERM to process tree (pid=${entry.pid})`);
|
|
127
128
|
entry.logs.clear();
|
|
128
|
-
// Send SIGTERM to process
|
|
129
|
+
// Send SIGTERM to process tree (tree-kill handles child processes)
|
|
129
130
|
try {
|
|
130
|
-
this.deps.kill(
|
|
131
|
+
this.deps.kill(entry.pid, 'SIGTERM');
|
|
131
132
|
}
|
|
132
133
|
catch {
|
|
133
134
|
log.info(`stop("${targetId}") — process already dead on SIGTERM`);
|
|
@@ -140,7 +141,7 @@ export class DeploymentService {
|
|
|
140
141
|
log.warn(`stop("${targetId}") — process did not exit after ${MAX_WAIT_MS}ms, escalating to SIGKILL`);
|
|
141
142
|
// Escalate to SIGKILL
|
|
142
143
|
try {
|
|
143
|
-
this.deps.kill(
|
|
144
|
+
this.deps.kill(entry.pid, 'SIGKILL');
|
|
144
145
|
}
|
|
145
146
|
catch {
|
|
146
147
|
// Process may have exited between check and kill
|
|
@@ -183,11 +184,11 @@ export class DeploymentService {
|
|
|
183
184
|
this.emitter.off(event, handler);
|
|
184
185
|
}
|
|
185
186
|
/**
|
|
186
|
-
* Send SIGKILL to a process
|
|
187
|
+
* Send SIGKILL to a process tree.
|
|
187
188
|
*/
|
|
188
189
|
killProcess(entry) {
|
|
189
190
|
try {
|
|
190
|
-
this.deps.kill(
|
|
191
|
+
this.deps.kill(entry.pid, 'SIGKILL');
|
|
191
192
|
}
|
|
192
193
|
catch {
|
|
193
194
|
// Process may already be dead
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-driven-ide-launcher.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/ide-launchers/json-driven-ide-launcher.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"json-driven-ide-launcher.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/ide-launchers/json-driven-ide-launcher.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,8EAA8E,CAAC;AAetF;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAGnF;AAED,qBACa,4BAA6B,YAAW,mBAAmB;IACtE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwB;;IAiB1C,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAC/B,OAAO,CAAC,eAAe,CAAC;IA8DrB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAQ5D"}
|
|
@@ -16,8 +16,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
16
16
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17
17
|
};
|
|
18
18
|
import { injectable } from 'tsyringe';
|
|
19
|
-
import { spawn
|
|
19
|
+
import { spawn } from 'node:child_process';
|
|
20
20
|
import { platform } from 'node:os';
|
|
21
|
+
import { checkBinaryExists } from '../tool-installer/binary-exists.js';
|
|
21
22
|
import { TOOL_METADATA } from '../tool-installer/tool-metadata.js';
|
|
22
23
|
/**
|
|
23
24
|
* Resolve a platform-specific value from a string or per-platform record.
|
|
@@ -101,16 +102,13 @@ let JsonDrivenIdeLauncherService = class JsonDrivenIdeLauncherService {
|
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
checkAvailability(editorId) {
|
|
105
|
+
async checkAvailability(editorId) {
|
|
105
106
|
const entry = this.editors.get(editorId);
|
|
106
107
|
if (!entry)
|
|
107
|
-
return
|
|
108
|
+
return false;
|
|
108
109
|
const binary = resolvePlatformValue(entry.binary);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
resolve(!err);
|
|
112
|
-
});
|
|
113
|
-
});
|
|
110
|
+
const result = await checkBinaryExists(binary);
|
|
111
|
+
return result.found;
|
|
114
112
|
}
|
|
115
113
|
};
|
|
116
114
|
JsonDrivenIdeLauncherService = __decorate([
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform process tree termination.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the npm `tree-kill` package for use by the presentation layer,
|
|
5
|
+
* which cannot resolve packages installed in packages/core/node_modules
|
|
6
|
+
* directly (pnpm workspace isolation).
|
|
7
|
+
*
|
|
8
|
+
* Uses taskkill /T /F on Windows, kill/ps/pgrep on Unix.
|
|
9
|
+
*/
|
|
10
|
+
import treeKill from 'tree-kill';
|
|
11
|
+
export { treeKill };
|
|
12
|
+
//# sourceMappingURL=tree-kill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-kill.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/process/tree-kill.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,QAAQ,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform process tree termination.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the npm `tree-kill` package for use by the presentation layer,
|
|
5
|
+
* which cannot resolve packages installed in packages/core/node_modules
|
|
6
|
+
* directly (pnpm workspace isolation).
|
|
7
|
+
*
|
|
8
|
+
* Uses taskkill /T /F on Windows, kill/ps/pgrep on Unix.
|
|
9
|
+
*/
|
|
10
|
+
import treeKill from 'tree-kill';
|
|
11
|
+
export { treeKill };
|
|
@@ -35,7 +35,7 @@ function applyTemplate(template, vars) {
|
|
|
35
35
|
return result;
|
|
36
36
|
}
|
|
37
37
|
// ─── YAML Templates ────────────────────────────────────────────────
|
|
38
|
-
// These match .claude/skills/shep-kit
|
|
38
|
+
// These match .claude/skills/shep-kit-new-feature/templates/ exactly.
|
|
39
39
|
const SPEC_YAML = `# Feature Specification (YAML)
|
|
40
40
|
# This is the source of truth. Markdown is auto-generated from this file.
|
|
41
41
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform binary existence check.
|
|
3
|
+
*
|
|
4
|
+
* Wraps the npm `which` package to provide a single cross-platform API
|
|
5
|
+
* for checking if a binary exists in the system PATH. Works on Unix
|
|
6
|
+
* (which) and Windows (where.exe + PATHEXT resolution) without platform
|
|
7
|
+
* branching.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Check if a binary exists in the system PATH.
|
|
11
|
+
*
|
|
12
|
+
* Uses the npm `which` package which handles Windows PATHEXT resolution
|
|
13
|
+
* internally (.exe, .cmd, .bat extensions).
|
|
14
|
+
*
|
|
15
|
+
* Returns:
|
|
16
|
+
* - `{ found: true }` when the binary is on PATH
|
|
17
|
+
* - `{ found: false, notInPath: true }` when the binary is not on PATH
|
|
18
|
+
* - `{ found: false, error }` for genuine errors (e.g. permission denied)
|
|
19
|
+
*/
|
|
20
|
+
export declare const checkBinaryExists: (binary: string) => Promise<{
|
|
21
|
+
found: boolean;
|
|
22
|
+
notInPath?: boolean;
|
|
23
|
+
error?: Error;
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=binary-exists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary-exists.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/tool-installer/binary-exists.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,KACb,OAAO,CAAC;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAUhE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform binary existence check.
|
|
3
|
+
*
|
|
4
|
+
* Wraps the npm `which` package to provide a single cross-platform API
|
|
5
|
+
* for checking if a binary exists in the system PATH. Works on Unix
|
|
6
|
+
* (which) and Windows (where.exe + PATHEXT resolution) without platform
|
|
7
|
+
* branching.
|
|
8
|
+
*/
|
|
9
|
+
import which from 'which';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a binary exists in the system PATH.
|
|
12
|
+
*
|
|
13
|
+
* Uses the npm `which` package which handles Windows PATHEXT resolution
|
|
14
|
+
* internally (.exe, .cmd, .bat extensions).
|
|
15
|
+
*
|
|
16
|
+
* Returns:
|
|
17
|
+
* - `{ found: true }` when the binary is on PATH
|
|
18
|
+
* - `{ found: false, notInPath: true }` when the binary is not on PATH
|
|
19
|
+
* - `{ found: false, error }` for genuine errors (e.g. permission denied)
|
|
20
|
+
*/
|
|
21
|
+
export const checkBinaryExists = async (binary) => {
|
|
22
|
+
try {
|
|
23
|
+
const result = await which(binary, { nothrow: true });
|
|
24
|
+
if (result !== null) {
|
|
25
|
+
return { found: true };
|
|
26
|
+
}
|
|
27
|
+
return { found: false, notInPath: true };
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
return { found: false, error: error instanceof Error ? error : new Error(String(error)) };
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-installer.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/tool-installer/tool-installer.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sEAAsE,CAAC;AAClH,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-installer.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/tool-installer/tool-installer.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sEAAsE,CAAC;AAClH,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,qCAAqC,CAAC;AA2B7C,qBACa,wBAAyB,YAAW,qBAAqB;IACpE;;;OAGG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAoC1E;;;OAGG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;IAqB9D;;;OAGG;IACG,cAAc,CAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAChC,OAAO,CAAC,sBAAsB,CAAC;IAgFlC;;OAEG;IACH,OAAO,CAAC,6BAA6B;CA4BtC"}
|
package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.js
CHANGED
|
@@ -18,10 +18,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { injectable } from 'tsyringe';
|
|
21
|
-
import { exec,
|
|
21
|
+
import { exec, spawn } from 'node:child_process';
|
|
22
22
|
import { platform } from 'node:os';
|
|
23
23
|
import { createAvailableStatus, createMissingStatus, createErrorStatus, } from '../../../domain/value-objects/tool-installation-status.js';
|
|
24
24
|
import { TOOL_METADATA } from './tool-metadata.js';
|
|
25
|
+
import { checkBinaryExists } from './binary-exists.js';
|
|
25
26
|
/**
|
|
26
27
|
* Resolve binary name for the current platform.
|
|
27
28
|
* Supports both simple string binaries and per-platform maps.
|
|
@@ -31,30 +32,6 @@ function resolveBinary(metadata) {
|
|
|
31
32
|
return metadata.binary;
|
|
32
33
|
return metadata.binary[platform()] ?? Object.values(metadata.binary)[0];
|
|
33
34
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if a binary exists in the system PATH using 'which' command.
|
|
36
|
-
*
|
|
37
|
-
* `which` exits with code 1 when the binary is simply not in PATH.
|
|
38
|
-
* Node's execFile wraps that as an Error, but it's a normal "not found"
|
|
39
|
-
* result. Only truly unexpected failures (ENOENT for `which` itself,
|
|
40
|
-
* EACCES, signals, etc.) are surfaced via the `error` field.
|
|
41
|
-
*/
|
|
42
|
-
const checkBinaryExists = (binary) => {
|
|
43
|
-
return new Promise((resolve) => {
|
|
44
|
-
execFile('which', [binary], (err) => {
|
|
45
|
-
if (!err)
|
|
46
|
-
return resolve({ found: true });
|
|
47
|
-
// execFile errors from a non-zero exit code have a numeric `code` property.
|
|
48
|
-
// That's the normal "binary not found in PATH" case.
|
|
49
|
-
const code = err.code;
|
|
50
|
-
if (code === undefined || typeof code === 'number') {
|
|
51
|
-
return resolve({ found: false, notInPath: true });
|
|
52
|
-
}
|
|
53
|
-
// Anything else (ENOENT for `which` itself, EACCES, etc.) is a real error.
|
|
54
|
-
resolve({ found: false, error: err });
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
35
|
/**
|
|
59
36
|
* Run a shell command and resolve true when it exits 0, false otherwise.
|
|
60
37
|
* Used as a fallback for GUI apps whose binary isn't in PATH (e.g. Warp, iTerm2).
|
|
@@ -130,8 +107,8 @@ let ToolInstallerServiceImpl = class ToolInstallerServiceImpl {
|
|
|
130
107
|
}
|
|
131
108
|
return new Promise((resolve) => {
|
|
132
109
|
let output = '';
|
|
133
|
-
const child = spawn(
|
|
134
|
-
shell:
|
|
110
|
+
const child = spawn(installCommand.command, [], {
|
|
111
|
+
shell: true,
|
|
135
112
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
136
113
|
env: {
|
|
137
114
|
...process.env,
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
"tags": ["terminal"],
|
|
6
6
|
"author": "Alacritty Contributors",
|
|
7
7
|
"website": "https://alacritty.org",
|
|
8
|
-
"platforms": ["linux", "darwin"],
|
|
8
|
+
"platforms": ["linux", "darwin", "win32"],
|
|
9
9
|
"iconUrl": "https://cdn.simpleicons.org/alacritty",
|
|
10
10
|
"binary": "alacritty",
|
|
11
11
|
"packageManager": "brew",
|
|
12
12
|
"commands": {
|
|
13
13
|
"darwin": "brew install --cask alacritty",
|
|
14
|
-
"linux": "sudo apt-get update && sudo apt-get install -y alacritty"
|
|
14
|
+
"linux": "sudo apt-get update && sudo apt-get install -y alacritty",
|
|
15
|
+
"win32": "winget install --id Alacritty.Alacritty -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://alacritty.org/",
|
package/dist/packages/core/src/infrastructure/services/tool-installer/tools/claude-code.json
CHANGED
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
"tags": ["cli-agent"],
|
|
6
6
|
"author": "Anthropic",
|
|
7
7
|
"website": "https://claude.ai/code",
|
|
8
|
-
"platforms": ["linux", "darwin"],
|
|
8
|
+
"platforms": ["linux", "darwin", "win32"],
|
|
9
9
|
"iconUrl": "https://cdn.simpleicons.org/claude",
|
|
10
10
|
"binary": "claude",
|
|
11
11
|
"packageManager": "curl",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "curl -fsSL https://claude.ai/install.sh | bash",
|
|
14
|
-
"darwin": "curl -fsSL https://claude.ai/install.sh | bash"
|
|
14
|
+
"darwin": "curl -fsSL https://claude.ai/install.sh | bash",
|
|
15
|
+
"win32": "npm install -g @anthropic-ai/claude-code"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://code.claude.com/docs/en/overview",
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
"tags": ["cli-agent"],
|
|
6
6
|
"author": "Anysphere",
|
|
7
7
|
"website": "https://cursor.com",
|
|
8
|
-
"platforms": ["linux", "darwin"],
|
|
8
|
+
"platforms": ["linux", "darwin", "win32"],
|
|
9
9
|
"iconUrl": "https://cdn.simpleicons.org/cursor",
|
|
10
10
|
"binary": "cursor-agent",
|
|
11
11
|
"packageManager": "curl",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "curl https://cursor.com/install -fsS | bash",
|
|
14
|
-
"darwin": "curl https://cursor.com/install -fsS | bash"
|
|
14
|
+
"darwin": "curl https://cursor.com/install -fsS | bash",
|
|
15
|
+
"win32": "winget install --id Anysphere.Cursor -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://www.codecademy.com/article/getting-started-with-cursor-cli",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"packageManager": "manual",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "Download from https://cursor.com/download and install the AppImage manually",
|
|
14
|
-
"darwin": "Download from https://cursor.com/download or use: brew install --cask cursor"
|
|
14
|
+
"darwin": "Download from https://cursor.com/download or use: brew install --cask cursor",
|
|
15
|
+
"win32": "winget install --id Anysphere.Cursor -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 600000,
|
|
17
18
|
"documentationUrl": "https://cursor.com/download",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"packageManager": "apt",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo \"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y",
|
|
14
|
-
"darwin": "brew install gh"
|
|
14
|
+
"darwin": "brew install gh",
|
|
15
|
+
"win32": "winget install --id GitHub.cli -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://cli.github.com/manual/",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"packageManager": "apt",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "sudo apt-get update && sudo apt-get install -y git",
|
|
14
|
-
"darwin": "xcode-select --install"
|
|
14
|
+
"darwin": "xcode-select --install",
|
|
15
|
+
"win32": "winget install --id Git.Git -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://git-scm.com/doc",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"packageManager": "apt",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --yes --dearmor -o /usr/share/keyrings/packages.microsoft.gpg && echo \"deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main\" | sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null && sudo apt-get update && sudo apt-get install -y code",
|
|
14
|
-
"darwin": "brew install visual-studio-code"
|
|
14
|
+
"darwin": "brew install visual-studio-code",
|
|
15
|
+
"win32": "winget install --id Microsoft.VisualStudioCode -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://code.visualstudio.com/docs/setup/linux",
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
"tags": ["terminal"],
|
|
6
6
|
"author": "Warp",
|
|
7
7
|
"website": "https://www.warp.dev",
|
|
8
|
-
"platforms": ["darwin"],
|
|
8
|
+
"platforms": ["darwin", "win32"],
|
|
9
9
|
"iconUrl": "https://cdn.simpleicons.org/warp",
|
|
10
10
|
"binary": "warp",
|
|
11
11
|
"packageManager": "brew",
|
|
12
12
|
"commands": {
|
|
13
|
-
"darwin": "brew install --cask warp"
|
|
13
|
+
"darwin": "brew install --cask warp",
|
|
14
|
+
"win32": "winget install --id Warp.Warp -e --source winget"
|
|
14
15
|
},
|
|
15
16
|
"timeout": 300000,
|
|
16
17
|
"documentationUrl": "https://docs.warp.dev/",
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
"tags": ["ide"],
|
|
6
6
|
"author": "Codeium",
|
|
7
7
|
"website": "https://codeium.com/windsurf",
|
|
8
|
-
"platforms": ["linux", "darwin"],
|
|
8
|
+
"platforms": ["linux", "darwin", "win32"],
|
|
9
9
|
"iconUrl": "https://cdn.simpleicons.org/windsurf",
|
|
10
10
|
"binary": "windsurf",
|
|
11
11
|
"packageManager": "apt",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "curl -fsSL \"https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/windsurf.gpg\" | sudo gpg --yes --dearmor -o /usr/share/keyrings/windsurf-stable-archive-keyring.gpg && echo \"deb [signed-by=/usr/share/keyrings/windsurf-stable-archive-keyring.gpg arch=amd64] https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt stable main\" | sudo tee /etc/apt/sources.list.d/windsurf.list > /dev/null && sudo apt-get update && sudo apt-get install -y windsurf",
|
|
14
|
-
"darwin": "brew install --cask windsurf"
|
|
14
|
+
"darwin": "brew install --cask windsurf",
|
|
15
|
+
"win32": "winget install --id Codeium.Windsurf -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://docs.windsurf.com/windsurf/getting-started",
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
"tags": ["ide"],
|
|
6
6
|
"author": "Zed Industries",
|
|
7
7
|
"website": "https://zed.dev",
|
|
8
|
-
"platforms": ["linux", "darwin"],
|
|
8
|
+
"platforms": ["linux", "darwin", "win32"],
|
|
9
9
|
"iconUrl": "https://cdn.simpleicons.org/zedindustries",
|
|
10
10
|
"binary": "zed",
|
|
11
11
|
"packageManager": "curl",
|
|
12
12
|
"commands": {
|
|
13
13
|
"linux": "curl -f https://zed.dev/install.sh | sh",
|
|
14
|
-
"darwin": "curl -f https://zed.dev/install.sh | sh"
|
|
14
|
+
"darwin": "curl -f https://zed.dev/install.sh | sh",
|
|
15
|
+
"win32": "winget install --id ZedIndustries.Zed -e --source winget"
|
|
15
16
|
},
|
|
16
17
|
"timeout": 300000,
|
|
17
18
|
"documentationUrl": "https://zed.dev/docs/installation",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-daemon.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/daemon/start-daemon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAoBH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,IAAI,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"start-daemon.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/daemon/start-daemon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAoBH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,IAAI,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgG9E"}
|
|
@@ -67,6 +67,7 @@ export async function startDaemon(opts = {}) {
|
|
|
67
67
|
const child = spawn(process.execPath, [...process.execArgv, process.argv[1], '_serve', '--port', String(port)], {
|
|
68
68
|
detached: true,
|
|
69
69
|
stdio: ['ignore', logFd, logFd],
|
|
70
|
+
windowsHide: true,
|
|
70
71
|
});
|
|
71
72
|
// Wait briefly for the child to either settle or crash.
|
|
72
73
|
const exitCode = await Promise.race([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stop-daemon.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/daemon/stop-daemon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"stop-daemon.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/daemon/stop-daemon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iEAAiE,CAAC;AA0BtG;;;GAGG;AACH,wBAAsB,UAAU,CAAC,aAAa,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAyC7E"}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* @param daemonService - IDaemonService instance (injected by caller for testability, NFR-4)
|
|
20
20
|
*/
|
|
21
|
+
import { treeKill } from '../../../../../packages/core/src/infrastructure/services/process/tree-kill.js';
|
|
21
22
|
import { messages } from '../../ui/index.js';
|
|
22
23
|
const POLL_INTERVAL_MS = 200;
|
|
23
24
|
const MAX_WAIT_MS = 5000;
|
|
@@ -54,15 +55,15 @@ export async function stopDaemon(daemonService) {
|
|
|
54
55
|
}
|
|
55
56
|
try {
|
|
56
57
|
messages.info(`Stopping Shep daemon (PID ${pid})...`);
|
|
57
|
-
// Send SIGTERM — request graceful shutdown
|
|
58
|
-
|
|
58
|
+
// Send SIGTERM to process tree — request graceful shutdown
|
|
59
|
+
treeKill(pid, 'SIGTERM');
|
|
59
60
|
// Poll for up to 5s waiting for the process to exit
|
|
60
61
|
const died = await pollUntilDead(daemonService, pid, MAX_WAIT_MS, POLL_INTERVAL_MS);
|
|
61
62
|
if (!died) {
|
|
62
|
-
// Graceful shutdown timed out — force kill
|
|
63
|
+
// Graceful shutdown timed out — force kill process tree
|
|
63
64
|
messages.info('Daemon did not stop gracefully, sending SIGKILL...');
|
|
64
65
|
try {
|
|
65
|
-
|
|
66
|
+
treeKill(pid, 'SIGKILL');
|
|
66
67
|
}
|
|
67
68
|
catch {
|
|
68
69
|
// Process may have exited between the check and the kill — ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-repository.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/deploy-repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy-repository.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/deploy-repository.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAIvE,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC,CAyBxE"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use server';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
|
+
import { isAbsolute } from 'node:path';
|
|
3
4
|
import { resolve } from '../../lib/server-container.js';
|
|
4
5
|
import { createDeploymentLogger } from '../../../../../packages/core/src/infrastructure/services/deployment/deployment-logger.js';
|
|
5
6
|
import { DeploymentState } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
6
7
|
const log = createDeploymentLogger('[deployRepository]');
|
|
7
8
|
export async function deployRepository(repositoryPath) {
|
|
8
9
|
log.info(`called — repositoryPath="${repositoryPath}"`);
|
|
9
|
-
if (!repositoryPath
|
|
10
|
+
if (!repositoryPath || !isAbsolute(repositoryPath)) {
|
|
10
11
|
log.warn('rejected — not an absolute path');
|
|
11
12
|
return { success: false, error: 'repositoryPath must be an absolute path' };
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-folder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-folder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open-folder.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/open-folder.ts"],"names":[],"mappings":"AAiBA,wBAAsB,UAAU,CAC9B,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA8B9D"}
|
|
@@ -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
|
|
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()}
|
|
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":"
|
|
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
|
|
7
|
+
if (!repositoryPath || !isAbsolute(repositoryPath)) {
|
|
7
8
|
return { success: false, error: 'repositoryPath must be an absolute path' };
|
|
8
9
|
}
|
|
9
10
|
const settings = getSettings();
|