@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.
@@ -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("\\")) return exts.map((ext) => command + ext).find(isExecutableFile);
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-CuMoxt_h.js.map
10422
+ //# sourceMappingURL=acp-host-BcubduQh.js.map