@remnic/cli 9.3.557 → 9.3.558
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/dist/index.js +9 -5
- package/package.json +22 -22
package/dist/index.js
CHANGED
|
@@ -184,6 +184,7 @@ async function loadWecloneExportModule() {
|
|
|
184
184
|
// src/bench-build-freshness.ts
|
|
185
185
|
import {
|
|
186
186
|
existsSync,
|
|
187
|
+
lstatSync,
|
|
187
188
|
readdirSync,
|
|
188
189
|
readFileSync,
|
|
189
190
|
statSync
|
|
@@ -273,7 +274,10 @@ function newestMtime(roots) {
|
|
|
273
274
|
if (!existsSync(entryPath)) {
|
|
274
275
|
return;
|
|
275
276
|
}
|
|
276
|
-
const stat =
|
|
277
|
+
const stat = lstatSync(entryPath);
|
|
278
|
+
if (stat.isSymbolicLink()) {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
277
281
|
if (stat.isDirectory()) {
|
|
278
282
|
for (const child of readdirSync(entryPath)) {
|
|
279
283
|
visit(path.join(entryPath, child));
|
|
@@ -2324,7 +2328,7 @@ import {
|
|
|
2324
2328
|
} from "@remnic/core";
|
|
2325
2329
|
|
|
2326
2330
|
// src/import-bundle-detect.ts
|
|
2327
|
-
import { lstatSync, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "fs";
|
|
2331
|
+
import { lstatSync as lstatSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "fs";
|
|
2328
2332
|
import path9 from "path";
|
|
2329
2333
|
function detectBundleEntries(bundleDir, options = {}) {
|
|
2330
2334
|
const readdir2 = options.readdirImpl ?? defaultReaddir;
|
|
@@ -2333,7 +2337,7 @@ function detectBundleEntries(bundleDir, options = {}) {
|
|
|
2333
2337
|
const isRegularFile = options.isRegularFileImpl ?? (options.readdirImpl !== void 0 || options.isDirectoryImpl !== void 0 ? (p) => !isDirectory2(p) : defaultIsRegularFile);
|
|
2334
2338
|
if (options.readdirImpl === void 0 && options.isDirectoryImpl === void 0) {
|
|
2335
2339
|
try {
|
|
2336
|
-
const rootStat =
|
|
2340
|
+
const rootStat = lstatSync2(bundleDir);
|
|
2337
2341
|
if (rootStat.isSymbolicLink()) {
|
|
2338
2342
|
throw new Error(
|
|
2339
2343
|
`Bundle directory '${bundleDir}' is a symbolic link. Pass the resolved directory path instead.`
|
|
@@ -2450,7 +2454,7 @@ function defaultReadFile(p) {
|
|
|
2450
2454
|
}
|
|
2451
2455
|
function defaultIsDirectory(p) {
|
|
2452
2456
|
try {
|
|
2453
|
-
const s =
|
|
2457
|
+
const s = lstatSync2(p);
|
|
2454
2458
|
if (s.isSymbolicLink()) return false;
|
|
2455
2459
|
return s.isDirectory();
|
|
2456
2460
|
} catch {
|
|
@@ -2459,7 +2463,7 @@ function defaultIsDirectory(p) {
|
|
|
2459
2463
|
}
|
|
2460
2464
|
function defaultIsRegularFile(p) {
|
|
2461
2465
|
try {
|
|
2462
|
-
const s =
|
|
2466
|
+
const s = lstatSync2(p);
|
|
2463
2467
|
if (s.isSymbolicLink()) return false;
|
|
2464
2468
|
return s.isFile();
|
|
2465
2469
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/cli",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.558",
|
|
4
4
|
"description": "CLI for Remnic memory — init, query, doctor, daemon management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"yaml": "^2.4.2",
|
|
29
|
-
"@remnic/
|
|
30
|
-
"@remnic/
|
|
31
|
-
"@remnic/server": "^9.3.
|
|
29
|
+
"@remnic/plugin-pi": "^9.3.558",
|
|
30
|
+
"@remnic/core": "^9.3.558",
|
|
31
|
+
"@remnic/server": "^9.3.558"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@remnic/bench": "^9.3.
|
|
35
|
-
"@remnic/export-weclone": "^9.3.
|
|
36
|
-
"@remnic/import-weclone": "^9.3.
|
|
37
|
-
"@remnic/import-chatgpt": "^9.3.
|
|
38
|
-
"@remnic/import-claude": "^9.3.
|
|
39
|
-
"@remnic/import-gemini": "^9.3.
|
|
40
|
-
"@remnic/import-lossless-claw": "^9.3.
|
|
41
|
-
"@remnic/import-mem0": "^9.3.
|
|
42
|
-
"@remnic/import-supermemory": "^9.3.
|
|
34
|
+
"@remnic/bench": "^9.3.558",
|
|
35
|
+
"@remnic/export-weclone": "^9.3.558",
|
|
36
|
+
"@remnic/import-weclone": "^9.3.558",
|
|
37
|
+
"@remnic/import-chatgpt": "^9.3.558",
|
|
38
|
+
"@remnic/import-claude": "^9.3.558",
|
|
39
|
+
"@remnic/import-gemini": "^9.3.558",
|
|
40
|
+
"@remnic/import-lossless-claw": "^9.3.558",
|
|
41
|
+
"@remnic/import-mem0": "^9.3.558",
|
|
42
|
+
"@remnic/import-supermemory": "^9.3.558"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@remnic/bench": {
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"tsup": "^8.5.1",
|
|
75
75
|
"typescript": "^5.9.3",
|
|
76
|
-
"@remnic/bench": "9.3.
|
|
77
|
-
"@remnic/export-weclone": "9.3.
|
|
78
|
-
"@remnic/import-
|
|
79
|
-
"@remnic/import-
|
|
80
|
-
"@remnic/import-
|
|
81
|
-
"@remnic/import-
|
|
82
|
-
"@remnic/import-
|
|
83
|
-
"@remnic/import-supermemory": "9.3.
|
|
84
|
-
"@remnic/import-
|
|
76
|
+
"@remnic/bench": "9.3.558",
|
|
77
|
+
"@remnic/export-weclone": "9.3.558",
|
|
78
|
+
"@remnic/import-chatgpt": "9.3.558",
|
|
79
|
+
"@remnic/import-weclone": "9.3.558",
|
|
80
|
+
"@remnic/import-claude": "9.3.558",
|
|
81
|
+
"@remnic/import-gemini": "9.3.558",
|
|
82
|
+
"@remnic/import-lossless-claw": "9.3.558",
|
|
83
|
+
"@remnic/import-supermemory": "9.3.558",
|
|
84
|
+
"@remnic/import-mem0": "9.3.558"
|
|
85
85
|
},
|
|
86
86
|
"license": "MIT",
|
|
87
87
|
"repository": {
|