@linzumi/cli 1.0.161 → 1.0.162

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.161",
3
+ "version": "1.0.162",
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": {
@@ -40,13 +40,14 @@ const driverSource = `
40
40
  import {
41
41
  chmodSync,
42
42
  existsSync,
43
+ lstatSync,
43
44
  mkdirSync,
44
45
  mkdtempSync,
45
46
  readdirSync,
46
47
  readFileSync,
48
+ readlinkSync,
47
49
  realpathSync,
48
50
  rmSync,
49
- statSync,
50
51
  writeFileSync,
51
52
  } from 'node:fs';
52
53
  import { tmpdir } from 'node:os';
@@ -150,8 +151,18 @@ function snapshotFiles(dir) {
150
151
  }
151
152
  for (const name of names) {
152
153
  const full = join(current, name);
153
- const stats = statSync(full);
154
- if (stats.isDirectory()) {
154
+ // lstat (never follow): the isolated home's auth.json is a SYMLINK to
155
+ // the user's real login (fix/codex-auth-rotation-burn - possibly
156
+ // dangling when logged out), and the honest snapshot of a link is its
157
+ // target, not the bytes behind it.
158
+ const stats = lstatSync(full);
159
+ if (stats.isSymbolicLink()) {
160
+ // Dir-relative target so oracle and local scratch roots compare
161
+ // equal in the differential.
162
+ files[relative(dir, full)] = {
163
+ link: relative(dir, readlinkSync(full)),
164
+ };
165
+ } else if (stats.isDirectory()) {
155
166
  files[relative(dir, full) + '/'] = '<dir>';
156
167
  walk(full);
157
168
  } else {
@@ -468,7 +479,10 @@ await build({
468
479
  platform: 'node',
469
480
  target: 'node20',
470
481
  format: 'esm',
471
- outfile: join(packageRoot, '.differential/onboarding-support-parity-oracle.mjs'),
482
+ outfile: join(
483
+ packageRoot,
484
+ '.differential/onboarding-support-parity-oracle.mjs'
485
+ ),
472
486
  minify: false,
473
487
  sourcemap: false,
474
488
  legalComments: 'none',