@remnic/cli 9.69.20 → 9.69.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/dist/index.js +9 -7
- package/package.json +32 -32
package/dist/index.js
CHANGED
|
@@ -3100,6 +3100,9 @@ function formatConvergeApplyReport(result) {
|
|
|
3100
3100
|
lines.push(formatConvergeReport(result.plan));
|
|
3101
3101
|
return lines.join("\n");
|
|
3102
3102
|
}
|
|
3103
|
+
function convergeTimeoutFlagToMs(seconds) {
|
|
3104
|
+
return normalizeConvergePeerRequestTimeoutMs(Math.round(seconds * 1e3), "--timeout");
|
|
3105
|
+
}
|
|
3103
3106
|
async function cmdConverge(action, rest, json, config = parseConfig13({})) {
|
|
3104
3107
|
if (action === "help" || action === "--help" || action === "-h" || rest.includes("--help") || rest.includes("-h")) {
|
|
3105
3108
|
console.log(`Usage: remnic converge <plan|apply|watch> [options]
|
|
@@ -3136,7 +3139,7 @@ Options:
|
|
|
3136
3139
|
let dryRun = false;
|
|
3137
3140
|
let conflictPolicy;
|
|
3138
3141
|
let intervalSeconds;
|
|
3139
|
-
let
|
|
3142
|
+
let timeoutMsFlag;
|
|
3140
3143
|
for (let i = 0; i < rest.length; i += 1) {
|
|
3141
3144
|
const arg = rest[i];
|
|
3142
3145
|
if ((arg === "--peer" || arg === "--remote-url" || arg === "--remote") && rest[i + 1]) {
|
|
@@ -3160,13 +3163,12 @@ Options:
|
|
|
3160
3163
|
} else if (arg === "--timeout") {
|
|
3161
3164
|
const raw = rest[i + 1];
|
|
3162
3165
|
const parsed = raw === void 0 ? Number.NaN : Number(raw);
|
|
3163
|
-
|
|
3164
|
-
timeoutSeconds = normalizeConvergePeerRequestTimeoutMs(parsed, "--timeout") / 1e3;
|
|
3165
|
-
} catch {
|
|
3166
|
+
if (!Number.isFinite(parsed) || parsed <= 0) {
|
|
3166
3167
|
process.stderr.write("converge: --timeout must be a positive number of seconds.\n");
|
|
3167
3168
|
process.exitCode = 2;
|
|
3168
3169
|
return;
|
|
3169
3170
|
}
|
|
3171
|
+
timeoutMsFlag = convergeTimeoutFlagToMs(parsed);
|
|
3170
3172
|
i += 1;
|
|
3171
3173
|
} else if (arg === "--conflict-policy") {
|
|
3172
3174
|
const policy = rest[i + 1];
|
|
@@ -3192,7 +3194,7 @@ Options:
|
|
|
3192
3194
|
peerToken,
|
|
3193
3195
|
conflictPolicy,
|
|
3194
3196
|
intervalMs: intervalSeconds !== void 0 ? intervalSeconds * 1e3 : void 0,
|
|
3195
|
-
|
|
3197
|
+
...timeoutMsFlag !== void 0 ? { peerRequestTimeoutMs: timeoutMsFlag } : {},
|
|
3196
3198
|
signal: controller.signal,
|
|
3197
3199
|
onCycle: json ? void 0 : (cycle, event) => {
|
|
3198
3200
|
if (event.error !== void 0) {
|
|
@@ -3229,7 +3231,7 @@ Options:
|
|
|
3229
3231
|
peerUrl,
|
|
3230
3232
|
peerToken,
|
|
3231
3233
|
conflictPolicy,
|
|
3232
|
-
...
|
|
3234
|
+
...timeoutMsFlag !== void 0 ? { peerRequestTimeoutMs: timeoutMsFlag } : {}
|
|
3233
3235
|
});
|
|
3234
3236
|
if (json) {
|
|
3235
3237
|
console.log(JSON.stringify(plan, null, 2));
|
|
@@ -3244,7 +3246,7 @@ Options:
|
|
|
3244
3246
|
dryRun,
|
|
3245
3247
|
conflictPolicy,
|
|
3246
3248
|
config,
|
|
3247
|
-
...
|
|
3249
|
+
...timeoutMsFlag !== void 0 ? { peerRequestTimeoutMs: timeoutMsFlag } : {}
|
|
3248
3250
|
});
|
|
3249
3251
|
if (json) {
|
|
3250
3252
|
console.log(JSON.stringify(result, null, 2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/cli",
|
|
3
|
-
"version": "9.69.
|
|
3
|
+
"version": "9.69.21",
|
|
4
4
|
"description": "CLI for Remnic memory — init, query, doctor, daemon management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"yaml": "^2.4.2",
|
|
29
|
-
"@remnic/plugin-pi": "^9.69.
|
|
30
|
-
"@remnic/server": "^9.69.
|
|
31
|
-
"@remnic/core": "^9.69.
|
|
29
|
+
"@remnic/plugin-pi": "^9.69.21",
|
|
30
|
+
"@remnic/server": "^9.69.21",
|
|
31
|
+
"@remnic/core": "^9.69.21"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@remnic/bench": "^9.69.
|
|
35
|
-
"@remnic/plugin-openclaw": "^9.69.
|
|
36
|
-
"@remnic/export-weclone": "^9.69.
|
|
37
|
-
"@remnic/import-weclone": "^9.69.
|
|
38
|
-
"@remnic/import-chatgpt": "^9.69.
|
|
39
|
-
"@remnic/import-claude": "^9.69.
|
|
40
|
-
"@remnic/import-gemini": "^9.69.
|
|
41
|
-
"@remnic/import-lossless-claw": "^9.69.
|
|
42
|
-
"@remnic/import-mem0": "^9.69.
|
|
43
|
-
"@remnic/import-supermemory": "^9.69.
|
|
44
|
-
"@remnic/import-okf": "^9.69.
|
|
45
|
-
"@remnic/connector-limitless": "^9.69.
|
|
46
|
-
"@remnic/connector-bee": "^9.69.
|
|
47
|
-
"@remnic/connector-omi": "^9.69.
|
|
48
|
-
"@remnic/capture-audio": "^9.69.
|
|
34
|
+
"@remnic/bench": "^9.69.21",
|
|
35
|
+
"@remnic/plugin-openclaw": "^9.69.21",
|
|
36
|
+
"@remnic/export-weclone": "^9.69.21",
|
|
37
|
+
"@remnic/import-weclone": "^9.69.21",
|
|
38
|
+
"@remnic/import-chatgpt": "^9.69.21",
|
|
39
|
+
"@remnic/import-claude": "^9.69.21",
|
|
40
|
+
"@remnic/import-gemini": "^9.69.21",
|
|
41
|
+
"@remnic/import-lossless-claw": "^9.69.21",
|
|
42
|
+
"@remnic/import-mem0": "^9.69.21",
|
|
43
|
+
"@remnic/import-supermemory": "^9.69.21",
|
|
44
|
+
"@remnic/import-okf": "^9.69.21",
|
|
45
|
+
"@remnic/connector-limitless": "^9.69.21",
|
|
46
|
+
"@remnic/connector-bee": "^9.69.21",
|
|
47
|
+
"@remnic/connector-omi": "^9.69.21",
|
|
48
|
+
"@remnic/capture-audio": "^9.69.21"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@remnic/bench": {
|
|
@@ -97,19 +97,19 @@
|
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"tsup": "^8.5.1",
|
|
99
99
|
"typescript": "^5.9.3",
|
|
100
|
-
"@remnic/
|
|
101
|
-
"@remnic/
|
|
102
|
-
"@remnic/
|
|
103
|
-
"@remnic/
|
|
104
|
-
"@remnic/import-
|
|
105
|
-
"@remnic/import-
|
|
106
|
-
"@remnic/import-
|
|
107
|
-
"@remnic/import-
|
|
108
|
-
"@remnic/import-
|
|
109
|
-
"@remnic/
|
|
110
|
-
"@remnic/connector-
|
|
111
|
-
"@remnic/connector-bee": "9.69.
|
|
112
|
-
"@remnic/
|
|
100
|
+
"@remnic/plugin-openclaw": "9.69.21",
|
|
101
|
+
"@remnic/bench": "9.69.21",
|
|
102
|
+
"@remnic/export-weclone": "9.69.21",
|
|
103
|
+
"@remnic/import-weclone": "9.69.21",
|
|
104
|
+
"@remnic/import-chatgpt": "9.69.21",
|
|
105
|
+
"@remnic/import-claude": "9.69.21",
|
|
106
|
+
"@remnic/import-mem0": "9.69.21",
|
|
107
|
+
"@remnic/import-gemini": "9.69.21",
|
|
108
|
+
"@remnic/import-lossless-claw": "9.69.21",
|
|
109
|
+
"@remnic/import-supermemory": "9.69.21",
|
|
110
|
+
"@remnic/connector-limitless": "9.69.21",
|
|
111
|
+
"@remnic/connector-bee": "9.69.21",
|
|
112
|
+
"@remnic/connector-omi": "9.69.21"
|
|
113
113
|
},
|
|
114
114
|
"license": "MIT",
|
|
115
115
|
"repository": {
|