@remnic/cli 10.0.85 → 10.0.87

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 +17 -6
  2. package/package.json +32 -32
package/dist/index.js CHANGED
@@ -531,6 +531,7 @@ import {
531
531
  rollbackFromEngramMigration,
532
532
  buildBriefing,
533
533
  withBriefingDeadline,
534
+ BriefingTimeoutError,
534
535
  parseBriefingWindow,
535
536
  parseBriefingFocus,
536
537
  validateBriefingFormat,
@@ -14266,7 +14267,7 @@ function buildQueryRecallRequest(queryText) {
14266
14267
  sessionKey: `remnic-cli:query:${process.pid}`
14267
14268
  };
14268
14269
  }
14269
- async function cmdQuery(queryText, json, explain) {
14270
+ async function cmdQuery(queryText, json, explain, abortSignal) {
14270
14271
  if (!queryText) {
14271
14272
  console.error("Usage: remnic query <text>");
14272
14273
  process.exit(1);
@@ -14289,6 +14290,7 @@ async function cmdQuery(queryText, json, explain) {
14289
14290
  const config = parseConfig17(remnicCfg);
14290
14291
  const orchestrator = new Orchestrator11(config);
14291
14292
  await orchestrator.initialize();
14293
+ abortSignal?.throwIfAborted();
14292
14294
  const service = new EngramAccessService2(orchestrator);
14293
14295
  const recallRequest = buildQueryRecallRequest(queryText);
14294
14296
  try {
@@ -14456,13 +14458,13 @@ async function runXrayCommand(rest, io) {
14456
14458
  }
14457
14459
  async function cmdXray(rest) {
14458
14460
  const { rawQuery, options } = extractXrayRawArgs(rest);
14459
- parseXrayCliOptions(rawQuery, options);
14461
+ const parsed = parseXrayCliOptions(rawQuery, options);
14460
14462
  const remote = resolveRemoteDaemon(resolveConfigPath());
14461
14463
  if (remote) {
14462
14464
  await runXrayCommand(rest, xrayCliIo((request) => remoteRecallXray(remote, request)));
14463
14465
  return;
14464
14466
  }
14465
- initLogger6();
14467
+ initCliLogger(parsed.format === "json");
14466
14468
  const configPath = resolveConfigPath();
14467
14469
  const raw = fs32.existsSync(configPath) ? JSON.parse(fs32.readFileSync(configPath, "utf8")) : {};
14468
14470
  const remnicCfg = resolveRemnicConfigRecord16(raw);
@@ -14533,13 +14535,13 @@ async function runWhyCommand(rest, io) {
14533
14535
  }
14534
14536
  async function cmdWhy(rest) {
14535
14537
  const { rawQuery, options } = extractWhyRawArgs(rest);
14536
- parseWhyCliOptions(rawQuery, options);
14538
+ const parsed = parseWhyCliOptions(rawQuery, options);
14537
14539
  const remote = resolveRemoteDaemon(resolveConfigPath());
14538
14540
  if (remote) {
14539
14541
  await runWhyCommand(rest, whyCliIo((request) => remoteRecallWhy(remote, request)));
14540
14542
  return;
14541
14543
  }
14542
- initLogger6();
14544
+ initCliLogger(parsed.format === "json");
14543
14545
  const configPath = resolveConfigPath();
14544
14546
  const raw = fs32.existsSync(configPath) ? JSON.parse(fs32.readFileSync(configPath, "utf8")) : {};
14545
14547
  const config = parseConfig17(resolveRemnicConfigRecord16(raw));
@@ -20341,7 +20343,16 @@ async function main(argv = process.argv.slice(2)) {
20341
20343
  const json = rest.includes("--json");
20342
20344
  const explain = rest.includes("--explain");
20343
20345
  const queryText = rest.filter((a) => !a.startsWith("--")).join(" ");
20344
- await cmdQuery(queryText, json, explain);
20346
+ try {
20347
+ await withBriefingDeadline((signal) => cmdQuery(queryText, json, explain, signal), void 0, "query");
20348
+ } catch (err) {
20349
+ if (json && err instanceof BriefingTimeoutError) {
20350
+ process.stderr.write(`${JSON.stringify({ error: err.message })}
20351
+ `);
20352
+ process.exit(1);
20353
+ }
20354
+ throw err;
20355
+ }
20345
20356
  break;
20346
20357
  }
20347
20358
  case "recall":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnic/cli",
3
- "version": "10.0.85",
3
+ "version": "10.0.87",
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": "^10.0.85",
30
- "@remnic/server": "^10.0.85",
31
- "@remnic/core": "^10.0.85"
29
+ "@remnic/plugin-pi": "^10.0.87",
30
+ "@remnic/server": "^10.0.87",
31
+ "@remnic/core": "^10.0.87"
32
32
  },
33
33
  "peerDependencies": {
34
- "@remnic/bench": "^10.0.85",
35
- "@remnic/plugin-openclaw": "^10.0.85",
36
- "@remnic/export-weclone": "^10.0.85",
37
- "@remnic/import-weclone": "^10.0.85",
38
- "@remnic/import-chatgpt": "^10.0.85",
39
- "@remnic/import-claude": "^10.0.85",
40
- "@remnic/import-gemini": "^10.0.85",
41
- "@remnic/import-lossless-claw": "^10.0.85",
42
- "@remnic/import-mem0": "^10.0.85",
43
- "@remnic/import-supermemory": "^10.0.85",
44
- "@remnic/import-okf": "^10.0.85",
45
- "@remnic/connector-limitless": "^10.0.85",
46
- "@remnic/connector-bee": "^10.0.85",
47
- "@remnic/connector-omi": "^10.0.85",
48
- "@remnic/capture-audio": "^10.0.85"
34
+ "@remnic/bench": "^10.0.87",
35
+ "@remnic/plugin-openclaw": "^10.0.87",
36
+ "@remnic/export-weclone": "^10.0.87",
37
+ "@remnic/import-weclone": "^10.0.87",
38
+ "@remnic/import-chatgpt": "^10.0.87",
39
+ "@remnic/import-claude": "^10.0.87",
40
+ "@remnic/import-gemini": "^10.0.87",
41
+ "@remnic/import-lossless-claw": "^10.0.87",
42
+ "@remnic/import-mem0": "^10.0.87",
43
+ "@remnic/import-supermemory": "^10.0.87",
44
+ "@remnic/import-okf": "^10.0.87",
45
+ "@remnic/connector-limitless": "^10.0.87",
46
+ "@remnic/connector-bee": "^10.0.87",
47
+ "@remnic/connector-omi": "^10.0.87",
48
+ "@remnic/capture-audio": "^10.0.87"
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": "10.0.85",
101
- "@remnic/plugin-openclaw": "10.0.85",
102
- "@remnic/import-weclone": "10.0.85",
103
- "@remnic/export-weclone": "10.0.85",
104
- "@remnic/import-chatgpt": "10.0.85",
105
- "@remnic/import-claude": "10.0.85",
106
- "@remnic/import-gemini": "10.0.85",
107
- "@remnic/import-mem0": "10.0.85",
108
- "@remnic/import-lossless-claw": "10.0.85",
109
- "@remnic/import-supermemory": "10.0.85",
110
- "@remnic/connector-limitless": "10.0.85",
111
- "@remnic/connector-bee": "10.0.85",
112
- "@remnic/connector-omi": "10.0.85"
100
+ "@remnic/plugin-openclaw": "10.0.87",
101
+ "@remnic/bench": "10.0.87",
102
+ "@remnic/export-weclone": "10.0.87",
103
+ "@remnic/import-gemini": "10.0.87",
104
+ "@remnic/import-claude": "10.0.87",
105
+ "@remnic/import-lossless-claw": "10.0.87",
106
+ "@remnic/import-mem0": "10.0.87",
107
+ "@remnic/import-weclone": "10.0.87",
108
+ "@remnic/import-chatgpt": "10.0.87",
109
+ "@remnic/import-supermemory": "10.0.87",
110
+ "@remnic/connector-bee": "10.0.87",
111
+ "@remnic/connector-limitless": "10.0.87",
112
+ "@remnic/connector-omi": "10.0.87"
113
113
  },
114
114
  "license": "MIT",
115
115
  "repository": {