claude-code-arcane 2.7.0 → 2.7.1
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 +7 -0
- package/dist/cli.js +14 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.7.1](https://github.com/SebastianLuser/claude-code-arcane/compare/v2.7.0...v2.7.1) (2026-08-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **self-update:** npm self-update never ran on Windows ([13cd7cb](https://github.com/SebastianLuser/claude-code-arcane/commit/13cd7cbfdc9dc38f3c5e0fee3526b8806ebac272))
|
|
7
|
+
|
|
1
8
|
# [2.7.0](https://github.com/SebastianLuser/claude-code-arcane/compare/v2.6.1...v2.7.0) (2026-08-20)
|
|
2
9
|
|
|
3
10
|
|
package/dist/cli.js
CHANGED
|
@@ -2196,22 +2196,26 @@ async function selfUpdateNpm(opts = {}) {
|
|
|
2196
2196
|
if (opts.dryRun) {
|
|
2197
2197
|
return { updated: false, skipped: true, reason: "dry-run", fromVersion };
|
|
2198
2198
|
}
|
|
2199
|
-
const npm =
|
|
2200
|
-
const result = spawnSync(
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
timeout: 12e4
|
|
2207
|
-
}
|
|
2208
|
-
);
|
|
2199
|
+
const npm = npmInstallCommand();
|
|
2200
|
+
const result = spawnSync(npm.command, npm.args, {
|
|
2201
|
+
stdio: opts.quiet ? "ignore" : "inherit",
|
|
2202
|
+
encoding: "utf-8",
|
|
2203
|
+
timeout: 12e4,
|
|
2204
|
+
shell: npm.shell
|
|
2205
|
+
});
|
|
2209
2206
|
if (result.status === 0) {
|
|
2210
2207
|
return { updated: true, skipped: false, fromVersion };
|
|
2211
2208
|
}
|
|
2212
2209
|
const reason = result.error ? result.error.message : `npm exited with code ${result.status ?? "unknown"}`;
|
|
2213
2210
|
return { updated: false, skipped: false, reason, fromVersion };
|
|
2214
2211
|
}
|
|
2212
|
+
function npmInstallCommand(platform = process.platform) {
|
|
2213
|
+
const args = ["install", "-g", `${PACKAGE_NAME}@latest`];
|
|
2214
|
+
if (platform === "win32") {
|
|
2215
|
+
return { command: ["npm", ...args].join(" "), args: [], shell: true };
|
|
2216
|
+
}
|
|
2217
|
+
return { command: "npm", args, shell: false };
|
|
2218
|
+
}
|
|
2215
2219
|
function safeVersion() {
|
|
2216
2220
|
try {
|
|
2217
2221
|
return getPackageVersion();
|