@bman654/clodex 2.11.3 → 2.11.5
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/README.md
CHANGED
|
@@ -195,6 +195,8 @@ Patch the installed Claude Code binary so clodex favorites and aliases are first
|
|
|
195
195
|
| `--disable-local-patches` | Disable local patches and rebuild from pristine bytes without them |
|
|
196
196
|
| `--help` | Help |
|
|
197
197
|
|
|
198
|
+
On Windows, when Claude Code was installed with `npm install -g`, the `claude` on your PATH is a small launcher script (`claude.cmd`, `claude.ps1`, and an extensionless one) rather than the program itself; `clodex patch` follows it to the program and patches that. (On macOS and Linux npm makes a symlink instead, which always worked.) If the launcher cannot be followed — its program moved or removed, or it names two different programs — `clodex patch` stops without touching anything and tells you to set `CLODEX_CLAUDE_PATH` to the program directly.
|
|
199
|
+
|
|
198
200
|
The patch map is built from your favorites and aliases; context windows come from provider metadata. A pristine per-version backup is kept, and a manifest (`~/.clodex/patch-state.json`) makes re-runs no-ops until your config or Claude Code version changes — then the binary is restored first and re-patched fresh. `clodex claude` checks patch freshness at launch and offers to re-patch (a non-blocking notice when not interactive). Re-run `clodex patch` after every `claude` update.
|
|
199
201
|
|
|
200
202
|
#### Local patches (trusted code)
|
|
@@ -1246,7 +1246,11 @@ var FALLBACK_CLAUDE_VERSION = "2.1.183";
|
|
|
1246
1246
|
var VERSION_PROBE_TIMEOUT_MS = 15e3;
|
|
1247
1247
|
function getClaudeVersionForBinary(binaryPath) {
|
|
1248
1248
|
try {
|
|
1249
|
-
const result =
|
|
1249
|
+
const result = /\.[cm]?js$/i.test(binaryPath) ? execFileSync2(process.execPath, [binaryPath, "--version"], {
|
|
1250
|
+
encoding: "utf8",
|
|
1251
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
1252
|
+
timeout: VERSION_PROBE_TIMEOUT_MS
|
|
1253
|
+
}) : isWindows ? execSync(`"${binaryPath}" --version`, {
|
|
1250
1254
|
encoding: "utf8",
|
|
1251
1255
|
stdio: ["pipe", "pipe", "pipe"],
|
|
1252
1256
|
timeout: VERSION_PROBE_TIMEOUT_MS
|
|
@@ -1723,4 +1727,4 @@ export {
|
|
|
1723
1727
|
wrapperRequiresServer,
|
|
1724
1728
|
computeWrapperEnv
|
|
1725
1729
|
};
|
|
1726
|
-
//# sourceMappingURL=chunk-
|
|
1730
|
+
//# sourceMappingURL=chunk-ZM2KYLPH.js.map
|