@remnic/cli 9.69.27 → 9.69.29

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 +12 -20
  2. package/package.json +32 -32
package/dist/index.js CHANGED
@@ -135,6 +135,7 @@ import {
135
135
  evaluateActionConfidence,
136
136
  renderActionConfidenceText,
137
137
  expandTildePath,
138
+ readCompatEnv as readCompatEnv2,
138
139
  forkCapsule,
139
140
  readForkLineage,
140
141
  OPERATION_NAMES,
@@ -150,6 +151,14 @@ import {
150
151
  resolveRemnicConfigRecord,
151
152
  runMeetingsCliCommand
152
153
  } from "@remnic/core";
154
+
155
+ // src/config-path.ts
156
+ import { discoverConfigPath } from "@remnic/core";
157
+ function resolveConfigPath(cliPath) {
158
+ return discoverConfigPath(cliPath).path;
159
+ }
160
+
161
+ // src/commands/meetings.ts
153
162
  async function runMeetingsBinaryCommand(rest) {
154
163
  const meetingsArgs = rest.length === 0 || rest[0] === "--help" || rest[0] === "-h" ? ["help"] : rest;
155
164
  let meetingsOrchestrator;
@@ -5857,10 +5866,8 @@ async function loadOpenclawManagedUpgradeModule(packageSpec, hooks = {}) {
5857
5866
 
5858
5867
  // src/remote-daemon.ts
5859
5868
  import fs24 from "fs";
5869
+ import { readCompatEnv } from "@remnic/core";
5860
5870
  import { isLoopbackHost } from "@remnic/core/runtime/http-transport.js";
5861
- function readCompatEnv(primary, legacy) {
5862
- return process.env[primary] ?? process.env[legacy];
5863
- }
5864
5871
  function readRemnicConfigRecord(configPath) {
5865
5872
  try {
5866
5873
  const parsed = JSON.parse(fs24.readFileSync(configPath, "utf8"));
@@ -10757,7 +10764,7 @@ function parseConvergePluginConfig(value) {
10757
10764
  return parseConfig17(resolveRemnicConfigRecord16(value));
10758
10765
  }
10759
10766
  function loadConvergeCommandConfig() {
10760
- if (readCompatEnv("REMNIC_CONFIG_PATH", "ENGRAM_CONFIG_PATH")) {
10767
+ if (readCompatEnv2("REMNIC_CONFIG_PATH", "ENGRAM_CONFIG_PATH")) {
10761
10768
  return loadStandaloneConvergeCommandConfig();
10762
10769
  }
10763
10770
  const openclawConfig = readOpenclawConfig(resolveOpenclawConfigPath());
@@ -10766,21 +10773,6 @@ function loadConvergeCommandConfig() {
10766
10773
  if (pluginConfig) return pluginConfig;
10767
10774
  return loadStandaloneConvergeCommandConfig();
10768
10775
  }
10769
- function resolveConfigPath(cliPath) {
10770
- if (cliPath) return path18.resolve(expandTilde(cliPath));
10771
- const envPath = readCompatEnv("REMNIC_CONFIG_PATH", "ENGRAM_CONFIG_PATH");
10772
- if (envPath) return path18.resolve(expandTilde(envPath));
10773
- const candidates = [
10774
- path18.join(process.cwd(), "remnic.config.json"),
10775
- path18.join(process.cwd(), "engram.config.json"),
10776
- path18.join(resolveHomeDir(), ".config", "remnic", "config.json"),
10777
- path18.join(resolveHomeDir(), ".config", "engram", "config.json")
10778
- ];
10779
- for (const candidate of candidates) {
10780
- if (fs28.existsSync(candidate)) return candidate;
10781
- }
10782
- return path18.join(resolveHomeDir(), ".config", "remnic", "config.json");
10783
- }
10784
10776
  function resolveExistingBenchRemnicConfigPath(cliPath) {
10785
10777
  const configPath = resolveConfigPath(cliPath);
10786
10778
  if (fs28.existsSync(configPath)) {
@@ -10897,7 +10889,7 @@ function normalizeMemoryDirPath(memoryDir) {
10897
10889
  }
10898
10890
  function resolveMemoryDir() {
10899
10891
  const configMemoryDir = (() => {
10900
- const envMemoryDir = readCompatEnv("REMNIC_MEMORY_DIR", "ENGRAM_MEMORY_DIR");
10892
+ const envMemoryDir = readCompatEnv2("REMNIC_MEMORY_DIR", "ENGRAM_MEMORY_DIR");
10901
10893
  if (envMemoryDir) return normalizeMemoryDirPath(envMemoryDir);
10902
10894
  const configPath = resolveConfigPath();
10903
10895
  const raw = fs28.existsSync(configPath) ? JSON.parse(fs28.readFileSync(configPath, "utf8")) : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnic/cli",
3
- "version": "9.69.27",
3
+ "version": "9.69.29",
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.27",
30
- "@remnic/server": "^9.69.27",
31
- "@remnic/core": "^9.69.27"
29
+ "@remnic/plugin-pi": "^9.69.29",
30
+ "@remnic/core": "^9.69.29",
31
+ "@remnic/server": "^9.69.29"
32
32
  },
33
33
  "peerDependencies": {
34
- "@remnic/bench": "^9.69.27",
35
- "@remnic/plugin-openclaw": "^9.69.27",
36
- "@remnic/export-weclone": "^9.69.27",
37
- "@remnic/import-weclone": "^9.69.27",
38
- "@remnic/import-chatgpt": "^9.69.27",
39
- "@remnic/import-claude": "^9.69.27",
40
- "@remnic/import-gemini": "^9.69.27",
41
- "@remnic/import-lossless-claw": "^9.69.27",
42
- "@remnic/import-mem0": "^9.69.27",
43
- "@remnic/import-supermemory": "^9.69.27",
44
- "@remnic/import-okf": "^9.69.27",
45
- "@remnic/connector-limitless": "^9.69.27",
46
- "@remnic/connector-bee": "^9.69.27",
47
- "@remnic/connector-omi": "^9.69.27",
48
- "@remnic/capture-audio": "^9.69.27"
34
+ "@remnic/bench": "^9.69.29",
35
+ "@remnic/plugin-openclaw": "^9.69.29",
36
+ "@remnic/export-weclone": "^9.69.29",
37
+ "@remnic/import-weclone": "^9.69.29",
38
+ "@remnic/import-chatgpt": "^9.69.29",
39
+ "@remnic/import-claude": "^9.69.29",
40
+ "@remnic/import-gemini": "^9.69.29",
41
+ "@remnic/import-lossless-claw": "^9.69.29",
42
+ "@remnic/import-mem0": "^9.69.29",
43
+ "@remnic/import-supermemory": "^9.69.29",
44
+ "@remnic/import-okf": "^9.69.29",
45
+ "@remnic/connector-limitless": "^9.69.29",
46
+ "@remnic/connector-bee": "^9.69.29",
47
+ "@remnic/connector-omi": "^9.69.29",
48
+ "@remnic/capture-audio": "^9.69.29"
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.27",
101
- "@remnic/export-weclone": "9.69.27",
102
- "@remnic/plugin-openclaw": "9.69.27",
103
- "@remnic/import-weclone": "9.69.27",
104
- "@remnic/import-chatgpt": "9.69.27",
105
- "@remnic/import-claude": "9.69.27",
106
- "@remnic/import-gemini": "9.69.27",
107
- "@remnic/import-mem0": "9.69.27",
108
- "@remnic/import-lossless-claw": "9.69.27",
109
- "@remnic/import-supermemory": "9.69.27",
110
- "@remnic/connector-limitless": "9.69.27",
111
- "@remnic/connector-omi": "9.69.27",
112
- "@remnic/connector-bee": "9.69.27"
100
+ "@remnic/bench": "9.69.29",
101
+ "@remnic/plugin-openclaw": "9.69.29",
102
+ "@remnic/export-weclone": "9.69.29",
103
+ "@remnic/import-weclone": "9.69.29",
104
+ "@remnic/import-chatgpt": "9.69.29",
105
+ "@remnic/import-claude": "9.69.29",
106
+ "@remnic/import-gemini": "9.69.29",
107
+ "@remnic/import-mem0": "9.69.29",
108
+ "@remnic/import-lossless-claw": "9.69.29",
109
+ "@remnic/import-supermemory": "9.69.29",
110
+ "@remnic/connector-bee": "9.69.29",
111
+ "@remnic/connector-omi": "9.69.29",
112
+ "@remnic/connector-limitless": "9.69.29"
113
113
  },
114
114
  "license": "MIT",
115
115
  "repository": {