@linzumi/cli 1.0.298 → 1.0.300

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linzumi/cli",
3
- "version": "1.0.298",
3
+ "version": "1.0.300",
4
4
  "description": "Linzumi CLI \u2014 point a Codex agent at the real code on your laptop, with your team watching and steering from shared threads.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,6 +49,7 @@
49
49
  "blessed": "^0.1.81",
50
50
  "ghostty-web": "0.4.0",
51
51
  "proper-lockfile": "3.2.0",
52
+ "stream-json": "1.9.1",
52
53
  "undici": "^6.25.0",
53
54
  "ws": "^8.18.0",
54
55
  "zod": "^3.25.76"
@@ -19,7 +19,7 @@
19
19
  // src/version.ts, README.md, the public alias manifest, and version-pinning tests). This script rewrites
20
20
  // every known site, FAILS LOUDLY if any expected pattern is missing, and then
21
21
  // scans package.json/src/README/test/scripts/bin for any leftover
22
- // old-version string - so a future, not-yet-listed pin site cannot silently
22
+ // exact old-version token - so a future, not-yet-listed pin site cannot silently
23
23
  // drift past a release.
24
24
  //
25
25
  // Flags:
@@ -238,7 +238,7 @@ for (const site of knownSites) {
238
238
  });
239
239
  }
240
240
 
241
- // Leftover scan: after the planned rewrites, no old-version string may remain
241
+ // Leftover scan: after the planned rewrites, no exact old-version token may remain
242
242
  // anywhere in the package surface. This is what catches an unlisted 8th site.
243
243
  function scanTargets() {
244
244
  const roots = ['src', 'test', 'scripts', 'bin'];
@@ -301,6 +301,14 @@ function walk(directory) {
301
301
  return results;
302
302
  }
303
303
 
304
+ // Spec: plans/2026-07-12-linzumi-unscoped-npm-package-spec.md.
305
+ // A dependency with a longer patch/prerelease/build is a distinct version,
306
+ // not another CLI pin. Conventional artifact prefixes (v, cli-) introduce pins;
307
+ // only numeric/dotted prefixes can extend the version itself.
308
+ const escapedOldVersion = oldVersion.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
309
+ const oldVersionToken = new RegExp(
310
+ `(^|[^0-9.])${escapedOldVersion}(?=$|[^0-9A-Za-z.+-])`
311
+ );
304
312
  const leftovers = [];
305
313
 
306
314
  for (const file of scanTargets()) {
@@ -325,7 +333,7 @@ for (const file of scanTargets()) {
325
333
  }
326
334
  }
327
335
 
328
- if (content.includes(oldVersion)) {
336
+ if (oldVersionToken.test(content)) {
329
337
  leftovers.push(file);
330
338
  }
331
339
  }