@iseoane/agent-depot 0.6.5 → 0.6.6

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/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.6] - 2026-10-29
11
+
12
+ ### Fixed
13
+
14
+ - `self update` no longer reports every Windows install as unsupported: an
15
+ `npm.cmd` shim is now accepted when the `npm/bin/npm-cli.js` that ships next
16
+ to it is present, and the global-root provenance checks still apply (#70).
17
+
10
18
  ## [0.6.5] - 2026-10-29
11
19
 
12
20
  ### Added
@@ -68,13 +68,18 @@ function successfulStdout(result) {
68
68
  }
69
69
  export function createSelfUpdateOperations(options) {
70
70
  const resolveExecutable = options.resolveExecutable ?? createPortableExecutableResolver();
71
+ const platform = options.platform ?? process.platform;
71
72
  const run = options.run ?? runProcess;
72
73
  const fetcher = options.fetch ?? globalThis.fetch;
73
74
  async function npmGlobalExecutable() {
74
75
  const npm = await resolveExecutable("npm");
75
76
  if (npm.blocked || npm.executable === undefined)
76
77
  return undefined;
77
- const target = await realpath(npm.executable).catch(() => undefined);
78
+ // On Windows npm resolves to an `npm.cmd` shim; verify the npm-cli.js that ships next to it instead.
79
+ const verifiedFile = platform === "win32" && path.basename(npm.executable).toLowerCase() === "npm.cmd"
80
+ ? path.join(path.dirname(npm.executable), "node_modules", "npm", "bin", "npm-cli.js")
81
+ : npm.executable;
82
+ const target = await realpath(verifiedFile).catch(() => undefined);
78
83
  if (target === undefined || path.basename(target) !== "npm-cli.js" || path.basename(path.dirname(target)) !== "bin" || path.basename(path.dirname(path.dirname(target))) !== "npm")
79
84
  return undefined;
80
85
  let rootResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iseoane/agent-depot",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "A cross-platform catalog for reusable coding-agent skills.",
5
5
  "license": "MIT",
6
6
  "author": "iseoane",