@divergeai/cli 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/diverge.mjs +3 -2
  2. package/package.json +1 -1
package/dist/diverge.mjs CHANGED
@@ -7387,7 +7387,7 @@ import path10 from "node:path";
7387
7387
  import { parseArgs } from "node:util";
7388
7388
 
7389
7389
  // src/version.ts
7390
- var VERSION = true ? "0.1.7" : "dev";
7390
+ var VERSION = true ? "0.1.8" : "dev";
7391
7391
  var USER_AGENT = `diverge/${VERSION}`;
7392
7392
 
7393
7393
  // src/http.ts
@@ -8041,7 +8041,8 @@ import fs4 from "node:fs";
8041
8041
  import path7 from "node:path";
8042
8042
  function findOnPath(name, env = process.env, platform = process.platform) {
8043
8043
  const dirs = (env.PATH ?? "").split(path7.delimiter).filter(Boolean);
8044
- const candidates = platform === "win32" ? [name, `${name}.cmd`, `${name}.exe`] : [name];
8044
+ const extensions = (env.PATHEXT || ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean);
8045
+ const candidates = platform === "win32" ? extensions.map((extension) => `${name}${extension.toLowerCase()}`) : [name];
8045
8046
  for (const dir of dirs) {
8046
8047
  for (const candidate of candidates) {
8047
8048
  const full = path7.join(dir, candidate);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divergeai/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Divergent platform CLI: sign in, wire coding agents to the inference gateway, call platform tools",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",