@shepai/cli 1.106.0-pr313.e9fa158 → 1.106.0
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/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +2 -2
- package/dist/packages/core/src/application/use-cases/repositories/add-repository.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/repositories/add-repository.use-case.js +2 -6
- package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.js +4 -4
- package/dist/packages/core/src/infrastructure/repositories/sqlite-repository.repository.js +4 -4
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +0 -9
- 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 +3 -5
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/evidence-prompts.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/evidence-prompts.js +3 -4
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/repair.node.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/repair.node.js +1 -2
- package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.js +1 -1
- package/dist/packages/core/src/infrastructure/services/attachment-storage.service.js +3 -3
- 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 +7 -8
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/git/worktree.service.js +4 -17
- package/dist/packages/core/src/infrastructure/services/ide-launchers/compute-worktree-path.js +1 -1
- 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 +8 -6
- 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 +27 -4
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/alacritty.json +2 -3
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/claude-code.json +2 -3
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor-cli.json +2 -3
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor.json +1 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/gh.json +1 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/git.json +1 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/vscode.json +1 -2
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/warp.json +2 -3
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/windsurf.json +2 -3
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/zed.json +2 -3
- package/dist/src/presentation/cli/commands/daemon/start-daemon.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/daemon/start-daemon.js +0 -1
- package/dist/src/presentation/cli/commands/daemon/stop-daemon.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/daemon/stop-daemon.js +4 -5
- package/dist/src/presentation/cli/commands/upgrade.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/upgrade.command.js +0 -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 +1 -2
- package/dist/src/presentation/web/app/actions/open-folder.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-folder.js +2 -4
- package/dist/src/presentation/web/app/actions/open-ide.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-ide.js +1 -2
- package/dist/src/presentation/web/app/actions/open-shell.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/open-shell.js +2 -4
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +5 -8
- package/dist/src/presentation/web/components/common/merge-review/diff-view.js +1 -1
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +2 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -10
- 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/[root-of-the-server]__f47bb8a5._.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_0a7546ed.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_0a7546ed.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_978cbb4c.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_978cbb4c.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]__51fc98b0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__51fc98b0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__57f37786._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__57f37786._.js.map +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]__708dcad1._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__708dcad1._.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]__8e002910._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8e002910._.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]__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/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.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/{_b1bbe3cd._.js → _ace6ae7f._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_b1bbe3cd._.js.map → _ace6ae7f._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_77f506b6._.js → _b17ec930._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_77f506b6._.js.map → _b17ec930._.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/{_d8c97e13._.js → _fa027412._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_d8c97e13._.js.map → _fa027412._.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_7275ce5d._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_7275ce5d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_758dfa10._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_758dfa10._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_84803221.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_84803221.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_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/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/{52a7597f541defb8.js → 0dbb7106dc1d14f0.js} +1 -1
- package/web/.next/static/chunks/{f8608b847c7a0136.js → 4731bd6b3845ae5b.js} +1 -1
- package/web/.next/static/chunks/{cf8e107354cc0159.js → 524db7fb83eb1b0a.js} +1 -1
- package/web/.next/static/chunks/{d7c39cd622a695c4.js → 5b305180fecefa25.js} +1 -1
- package/web/.next/static/chunks/{310da8e04e750294.js → 7efb0c42a34fecc0.js} +1 -1
- package/web/.next/static/chunks/{af561a5913def091.js → 85baab3c23206768.js} +1 -1
- package/web/.next/static/chunks/{1b865c5b424cba9e.js → aa8d9e8c8bf51cd8.js} +1 -1
- package/web/.next/static/chunks/{1b7418778f5a6927.js → c7f8025b210beec0.js} +1 -1
- package/web/.next/static/chunks/{8117620ed55b5113.js → c8fac6b569cb729e.js} +1 -1
- package/web/.next/static/chunks/{be7ad52cd86e161e.js → e87acba9497e0fa9.js} +2 -2
- package/dist/packages/core/src/infrastructure/services/process/tree-kill.d.ts +0 -12
- package/dist/packages/core/src/infrastructure/services/process/tree-kill.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/process/tree-kill.js +0 -11
- package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts +0 -25
- package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.js +0 -32
- /package/web/.next/static/{DhQ9HMzgdS2AYNz0twCIf → j7LoqaY49SHJhvQzViLfV}/_buildManifest.js +0 -0
- /package/web/.next/static/{DhQ9HMzgdS2AYNz0twCIf → j7LoqaY49SHJhvQzViLfV}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{DhQ9HMzgdS2AYNz0twCIf → j7LoqaY49SHJhvQzViLfV}/_ssgManifest.js +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
package/dist/packages/core/src/infrastructure/services/tool-installer/binary-exists.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|