contextecf-codeledger 0.10.19 → 0.10.21

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
@@ -6,8 +6,8 @@ Published by [Intelligent Context AI, Inc.](https://codeledger.dev).
6
6
  This is the **unscoped mirror** of [`@codeledger/cli`](https://www.npmjs.com/package/@codeledger/cli). Both packages install the exact same binary. Use whichever you prefer:
7
7
 
8
8
  ```bash
9
- npm install -g contextecf-codeledger # this package
10
- npm install -g @codeledger/cli # scoped original
9
+ npm install -g contextecf-codeledger@latest # this package
10
+ npm install -g @codeledger/cli@latest # scoped original
11
11
  ```
12
12
 
13
13
  ## Why two packages?
@@ -22,6 +22,15 @@ codeledger activate --task "describe your task"
22
22
  codeledger mcp start # for Claude Desktop / Cursor MCP integration
23
23
  ```
24
24
 
25
+ If you installed an earlier CodeLedger version and `codeledger vendor`
26
+ cannot find the standalone runtime, upgrade first and rerun the command:
27
+
28
+ ```bash
29
+ npm install -g contextecf-codeledger@latest
30
+ codeledger init
31
+ codeledger vendor
32
+ ```
33
+
25
34
  ## Links
26
35
 
27
36
  - Website: https://codeledger.dev
package/bin/codeledger.js CHANGED
@@ -5,8 +5,8 @@
5
5
  * This is the unscoped mirror of @codeledger/cli. Both packages install
6
6
  * the exact same hardened binary. You can install either:
7
7
  *
8
- * npm install -g contextecf-codeledger (this package)
9
- * npm install -g @codeledger/cli (scoped original)
8
+ * npm install -g contextecf-codeledger@latest (this package)
9
+ * npm install -g @codeledger/cli@latest (scoped original)
10
10
  *
11
11
  * This file contains no engine code. All CodeLedger functionality lives
12
12
  * inside the hardened binary downloaded during postinstall.
@@ -52,8 +52,9 @@ if (!existsSync(BINARY_PATH)) {
52
52
  '',
53
53
  'Options:',
54
54
  ' 1. Use Rosetta 2 (recommended):',
55
- ' arch -arm64 npm install -g contextecf-codeledger',
56
- ' 2. Use the vendored standalone CLI:',
55
+ ' arch -arm64 npm install -g contextecf-codeledger@latest',
56
+ ' 2. Update CodeLedger, then use the vendored standalone CLI:',
57
+ ' npm install -g contextecf-codeledger@latest',
57
58
  ' codeledger init # in your repo, sets up vendored Node.js-based CLI',
58
59
  ' ./.codeledger/bin/codeledger --version',
59
60
  ' 3. Download a binary manually from:',
@@ -67,9 +68,10 @@ if (!existsSync(BINARY_PATH)) {
67
68
  '',
68
69
  'The postinstall step may have been skipped (e.g. --ignore-scripts).',
69
70
  'Recover with one of:',
70
- ` 1. npm rebuild contextecf-codeledger`,
71
- ` 2. node "${installerPath}"`,
72
- ` 3. Re-run the install without --ignore-scripts`,
71
+ ` 1. Upgrade: npm install -g contextecf-codeledger@latest`,
72
+ ` 2. Retry this install: npm rebuild contextecf-codeledger`,
73
+ ` 3. node "${installerPath}"`,
74
+ ` 4. Re-run the install without --ignore-scripts`,
73
75
  '',
74
76
  'Or download the binary manually from:',
75
77
  ` https://github.com/codeledgerECF/codeledger/releases/tag/v${version}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contextecf-codeledger",
3
- "version": "0.10.19",
3
+ "version": "0.10.21",
4
4
  "mcpName": "io.github.codeledgerECF/codeledger",
5
5
  "description": "CodeLedger — deterministic context selection for AI coding agents. This is the unscoped mirror of @codeledger/cli; both install the same binary.",
6
6
  "type": "commonjs",
@@ -85,9 +85,9 @@ if (!platformSuffix) {
85
85
  console.log('');
86
86
  console.log('Options:');
87
87
  console.log(' 1. Use Rosetta 2 (recommended):');
88
- console.log(' arch -arm64 npm install -g contextecf-codeledger');
88
+ console.log(' arch -arm64 npm install -g contextecf-codeledger@latest');
89
89
  console.log(' 2. Use the vendored standalone CLI after init:');
90
- console.log(' CODELEDGER_SKIP_POSTINSTALL=1 npm install -g contextecf-codeledger');
90
+ console.log(' CODELEDGER_SKIP_POSTINSTALL=1 npm install -g contextecf-codeledger@latest');
91
91
  console.log(' codeledger init # sets up vendored Node.js-based CLI');
92
92
  console.log(' 3. Download a binary manually from:');
93
93
  console.log(` https://github.com/codeledgerECF/codeledger/releases/tag/v${version}`);
@@ -190,8 +190,9 @@ async function fetchBuffer(url) {
190
190
  if (i === backoffs.length) break;
191
191
  const wait = backoffs[i];
192
192
  console.log(
193
- `codeledger: 404 fetching ${url.split('/').pop()} — retrying in ${wait}s ` +
194
- `(attempt ${i + 1}/${backoffs.length + 1}, ride race window)`,
193
+ `codeledger: Binary pending — new release detected, retrying in ${wait}s ` +
194
+ `(attempt ${i + 1}/${backoffs.length + 1}). ` +
195
+ `This is normal for the first ~10 minutes after a release.`,
195
196
  );
196
197
  await new Promise((r) => setTimeout(r, wait * 1000));
197
198
  }
@@ -267,13 +268,14 @@ if (require.main === module) {
267
268
  console.error(`codeledger: postinstall failed — ${err.message}`);
268
269
  console.error('');
269
270
  console.error('Recovery options:');
270
- console.error(' 1. Retry: npm rebuild @codeledger/cli');
271
- console.error(' 2. Air-gapped install:');
272
- console.error(' CODELEDGER_SKIP_POSTINSTALL=1 npm install -g @codeledger/cli');
271
+ console.error(' 1. Upgrade: npm install -g contextecf-codeledger@latest');
272
+ console.error(' 2. Retry this install: npm rebuild contextecf-codeledger');
273
+ console.error(' 3. Air-gapped install:');
274
+ console.error(' CODELEDGER_SKIP_POSTINSTALL=1 npm install -g contextecf-codeledger@latest');
273
275
  console.error(' then manually place the binary at:');
274
276
  console.error(` ${BINARY_LOCAL_PATH}`);
275
- console.error(' 3. Use a mirror:');
276
- console.error(' CODELEDGER_BINARY_URL=https://your-mirror/path npm install -g @codeledger/cli');
277
+ console.error(' 4. Use a mirror:');
278
+ console.error(' CODELEDGER_BINARY_URL=https://your-mirror/path npm install -g contextecf-codeledger@latest');
277
279
  console.error('');
278
280
  console.error(
279
281
  `Manual download: https://github.com/codeledgerECF/codeledger/releases/tag/v${version}`,