Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ExecutionOptions, CommandCodeResult } from "./types.js";
import { resolveCommandCodePath } from "./resolver.js";
import { executeMock } from "./mock.js";
import {
IS_WINDOWS,
MAX_PARTIAL_OUTPUT_CHARS,
STREAM_CHUNK_INTERVAL_MS,
} from "./constants.js";
Expand All @@ -19,7 +18,7 @@ import {
*
* - Checks COMMANDCODE_MOCK env var and delegates to mock executor if set.
* - Resolves the CLI binary path via the resolver module.
* - Spawns the process with shell: true on Windows, shell: false on Unix.
* - Spawns the process with shell: false on all platforms (resolver handles PATH/shim resolution).
* - Always includes `--skip-onboarding` in the args.
* - Applies timeout via AbortController + setTimeout.
* - On timeout: SIGTERM → wait 2s → SIGKILL → collect partial output (up to 10,000 chars).
Expand Down
2 changes: 1 addition & 1 deletion src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function findOnPath(name: string): string | null {
? (process.env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD").split(";")
: [""];

for (const dir of pathEnv.split(delimiter)) {
for (const dir of pathEnv.split(IS_WINDOWS ? ";" : delimiter)) {
if (!dir) continue;
for (const ext of exts) {
const candidate = join(dir, name + ext);
Expand Down
Loading