@agentconnect.md/daemon 1.0.0-rc.212 → 1.0.0-rc.213
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/{acp-host-CuMoxt_h.js → acp-host-BcubduQh.js} +15 -3
- package/dist/{acp-host-CuMoxt_h.js.map → acp-host-BcubduQh.js.map} +1 -1
- package/dist/{chat-CMmt04kZ.js → chat-B4M9brrI.js} +2 -2
- package/dist/{chat-CMmt04kZ.js.map → chat-B4M9brrI.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/{login-hti12388.js → login-D6n78XHJ.js} +3 -3
- package/dist/{login-hti12388.js.map → login-D6n78XHJ.js.map} +1 -1
- package/dist/{run-foreground-Bzas4Kly.js → run-foreground-9uxglFpi.js} +2 -2
- package/dist/{run-foreground-Bzas4Kly.js.map → run-foreground-9uxglFpi.js.map} +1 -1
- package/dist/run-foreground-BV-y0khZ.js +2 -0
- package/package.json +1 -1
- package/dist/run-foreground-DJyg3onO.js +0 -2
|
@@ -9962,7 +9962,19 @@ function isCommandAvailable(command, env = process.env) {
|
|
|
9962
9962
|
*/
|
|
9963
9963
|
function resolveCommandPath(command, env = process.env) {
|
|
9964
9964
|
const exts = isWin ? ["", ...(env.PATHEXT ?? ".EXE;.CMD;.BAT;.COM").split(";")] : [""];
|
|
9965
|
-
if (command.includes("/") || isWin && command.includes("\\"))
|
|
9965
|
+
if (command.includes("/") || isWin && command.includes("\\")) {
|
|
9966
|
+
const literal = exts.map((ext) => command + ext).find(isExecutableFile);
|
|
9967
|
+
if (literal) return literal;
|
|
9968
|
+
const basename = command.split(/[/\\]/).filter(Boolean).pop() ?? command;
|
|
9969
|
+
if (basename !== command || isWin && basename !== command) {
|
|
9970
|
+
const dirs = (env.PATH ?? "").split(delimiter).filter(Boolean);
|
|
9971
|
+
for (const dir of dirs) for (const ext of exts) {
|
|
9972
|
+
const p = join(dir, basename) + ext;
|
|
9973
|
+
if (isExecutableFile(p)) return p;
|
|
9974
|
+
}
|
|
9975
|
+
}
|
|
9976
|
+
return;
|
|
9977
|
+
}
|
|
9966
9978
|
const dirs = (env.PATH ?? "").split(delimiter).filter(Boolean);
|
|
9967
9979
|
for (const dir of dirs) for (const ext of exts) {
|
|
9968
9980
|
const p = join(dir, command) + ext;
|
|
@@ -10168,7 +10180,7 @@ var AcpHost = class {
|
|
|
10168
10180
|
this.opts.log?.info(`acp: CLAUDE_CODE_EXECUTABLE not set — using claude on PATH (${claude})`);
|
|
10169
10181
|
}
|
|
10170
10182
|
}
|
|
10171
|
-
const child = spawn$1(this.runtime.command, this.runtime.args, {
|
|
10183
|
+
const child = spawn$1(resolveCommandPath(this.runtime.command, env) ?? this.runtime.command, this.runtime.args, {
|
|
10172
10184
|
stdio: [
|
|
10173
10185
|
"pipe",
|
|
10174
10186
|
"pipe",
|
|
@@ -10407,4 +10419,4 @@ var AcpHost = class {
|
|
|
10407
10419
|
//#endregion
|
|
10408
10420
|
export { resolveRuntimes as _, initGitInjection as a, simpleGit as c, MAX_FRAME_BYTES as d, buildEnvelope as f, cachedRuntimeVersions as g, cachedRuntimeNames as h, prepareWorkspace as i, isFrame as l, encode as m, installedRuntimes as n, probeGitVersion as o, decodeEnvelope as p, prefetchWorkspace as r, sessionGitEnv as s, AcpHost as t, normalizeGitUrl as u };
|
|
10409
10421
|
|
|
10410
|
-
//# sourceMappingURL=acp-host-
|
|
10422
|
+
//# sourceMappingURL=acp-host-BcubduQh.js.map
|