codexport 0.1.8 → 0.1.9

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/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { homedir, platform } from "node:os";
11
11
  import path from "node:path";
12
12
  import { spawn } from "node:child_process";
13
13
  import { parse as parseToml, stringify as stringifyToml } from "smol-toml";
14
- const VERSION = "0.1.8";
14
+ const VERSION = "0.1.9";
15
15
  const DEFAULT_PORT = 17342;
16
16
  const DEFAULT_TIMEOUT_MS = 5_000;
17
17
  const CODEXPORT_DIR = ".codexport";
@@ -467,8 +467,11 @@ function mcpHasRequiredPortableEnv(name, command, server) {
467
467
  function ensurePortablePathEnv(server) {
468
468
  const env = server.env && typeof server.env === "object" && !Array.isArray(server.env) ? server.env : {};
469
469
  const existingPath = typeof env.PATH === "string" ? env.PATH : undefined;
470
- const portableBins = ["${home}/.bun/bin", "${home}/.local/bin", "${home}/.cargo/bin", "${home}/go/bin"];
471
- env.PATH = [...portableBins, existingPath ?? process.env.PATH ?? ""].filter(Boolean).join(path.delimiter);
470
+ const fallbackPath = platform() === "win32"
471
+ ? ["${home}/AppData/Roaming/npm", "C:/Program Files/nodejs", "C:/Windows/System32", "C:/Windows"]
472
+ : ["/usr/local/bin", "/usr/bin", "/bin"];
473
+ const portableBins = ["${home}/.bun/bin", "${home}/.local/bin", "${home}/.cargo/bin", "${home}/go/bin", ...fallbackPath];
474
+ env.PATH = [...portableBins, existingPath].filter(Boolean).join(path.delimiter);
472
475
  server.env = env;
473
476
  }
474
477
  function npmPackageForPortableMcp(name, commandName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexport",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "sync a canonical Codex setup from one master machine to follower machines",
5
5
  "author": "Microck <contact@micr.dev>",
6
6
  "license": "MIT",