@remnic/cli 9.69.20 → 9.69.22

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. 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 timeoutSeconds;
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
- try {
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
- peerRequestTimeoutMs: timeoutSeconds !== void 0 ? timeoutSeconds * 1e3 : void 0,
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
- ...timeoutSeconds !== void 0 ? { peerRequestTimeoutMs: timeoutSeconds * 1e3 } : {}
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
- ...timeoutSeconds !== void 0 ? { peerRequestTimeoutMs: timeoutSeconds * 1e3 } : {}
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.20",
3
+ "version": "9.69.22",
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.20",
30
- "@remnic/server": "^9.69.20",
31
- "@remnic/core": "^9.69.20"
29
+ "@remnic/plugin-pi": "^9.69.22",
30
+ "@remnic/server": "^9.69.22",
31
+ "@remnic/core": "^9.69.22"
32
32
  },
33
33
  "peerDependencies": {
34
- "@remnic/bench": "^9.69.20",
35
- "@remnic/plugin-openclaw": "^9.69.20",
36
- "@remnic/export-weclone": "^9.69.20",
37
- "@remnic/import-weclone": "^9.69.20",
38
- "@remnic/import-chatgpt": "^9.69.20",
39
- "@remnic/import-claude": "^9.69.20",
40
- "@remnic/import-gemini": "^9.69.20",
41
- "@remnic/import-lossless-claw": "^9.69.20",
42
- "@remnic/import-mem0": "^9.69.20",
43
- "@remnic/import-supermemory": "^9.69.20",
44
- "@remnic/import-okf": "^9.69.20",
45
- "@remnic/connector-limitless": "^9.69.20",
46
- "@remnic/connector-bee": "^9.69.20",
47
- "@remnic/connector-omi": "^9.69.20",
48
- "@remnic/capture-audio": "^9.69.20"
34
+ "@remnic/bench": "^9.69.22",
35
+ "@remnic/plugin-openclaw": "^9.69.22",
36
+ "@remnic/export-weclone": "^9.69.22",
37
+ "@remnic/import-weclone": "^9.69.22",
38
+ "@remnic/import-chatgpt": "^9.69.22",
39
+ "@remnic/import-claude": "^9.69.22",
40
+ "@remnic/import-gemini": "^9.69.22",
41
+ "@remnic/import-lossless-claw": "^9.69.22",
42
+ "@remnic/import-mem0": "^9.69.22",
43
+ "@remnic/import-supermemory": "^9.69.22",
44
+ "@remnic/import-okf": "^9.69.22",
45
+ "@remnic/connector-limitless": "^9.69.22",
46
+ "@remnic/connector-bee": "^9.69.22",
47
+ "@remnic/connector-omi": "^9.69.22",
48
+ "@remnic/capture-audio": "^9.69.22"
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/bench": "9.69.20",
101
- "@remnic/plugin-openclaw": "9.69.20",
102
- "@remnic/import-weclone": "9.69.20",
103
- "@remnic/export-weclone": "9.69.20",
104
- "@remnic/import-lossless-claw": "9.69.20",
105
- "@remnic/import-chatgpt": "9.69.20",
106
- "@remnic/import-gemini": "9.69.20",
107
- "@remnic/import-claude": "9.69.20",
108
- "@remnic/import-mem0": "9.69.20",
109
- "@remnic/connector-limitless": "9.69.20",
110
- "@remnic/connector-omi": "9.69.20",
111
- "@remnic/connector-bee": "9.69.20",
112
- "@remnic/import-supermemory": "9.69.20"
100
+ "@remnic/bench": "9.69.22",
101
+ "@remnic/plugin-openclaw": "9.69.22",
102
+ "@remnic/export-weclone": "9.69.22",
103
+ "@remnic/import-weclone": "9.69.22",
104
+ "@remnic/import-chatgpt": "9.69.22",
105
+ "@remnic/import-claude": "9.69.22",
106
+ "@remnic/import-gemini": "9.69.22",
107
+ "@remnic/import-lossless-claw": "9.69.22",
108
+ "@remnic/import-supermemory": "9.69.22",
109
+ "@remnic/connector-bee": "9.69.22",
110
+ "@remnic/import-mem0": "9.69.22",
111
+ "@remnic/connector-limitless": "9.69.22",
112
+ "@remnic/connector-omi": "9.69.22"
113
113
  },
114
114
  "license": "MIT",
115
115
  "repository": {