@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/README.md +1 -1
- package/dist/impl-res/cloud-supervisor.mjs +4 -4
- package/dist/impl-res/index.js +101 -101
- package/dist/impl-res/mcp-server.mjs +21 -21
- package/dist/impl-ts/cloud-supervisor.mjs +4 -4
- package/dist/impl-ts/index.js +465 -464
- package/package.json +1 -1
- package/scripts/build-onboarding-support-parity-oracle.mjs +18 -4
package/package.json
CHANGED
|
@@ -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
|
-
|
|
154
|
-
|
|
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(
|
|
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',
|