@remnic/core 9.3.672 → 9.3.674
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/access-audit.js +2 -2
- package/dist/access-cli.js +25 -23
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.js +12 -12
- package/dist/access-mcp.js +11 -11
- package/dist/access-schema.js +3 -3
- package/dist/access-service.js +9 -9
- package/dist/active-recall.js +3 -1
- package/dist/active-recall.js.map +1 -1
- package/dist/chunk-3BQOQYRB.js +33 -0
- package/dist/chunk-3BQOQYRB.js.map +1 -0
- package/dist/{chunk-KJOYHNS7.js → chunk-7OGJQP7T.js} +4 -4
- package/dist/{chunk-EJYFPRED.js → chunk-B55KFEGS.js} +2 -2
- package/dist/{chunk-BTLNC5YM.js → chunk-GNAMDNGT.js} +5 -13
- package/dist/chunk-GNAMDNGT.js.map +1 -0
- package/dist/{chunk-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
- package/dist/{chunk-MLVMBV2C.js → chunk-IUZWBCJX.js} +8 -40
- package/dist/chunk-IUZWBCJX.js.map +1 -0
- package/dist/{chunk-PYTATYUV.js → chunk-ODWI5XU2.js} +2 -2
- package/dist/{chunk-AYGT6VBC.js → chunk-OG7A6AZX.js} +4 -4
- package/dist/{chunk-4QZ7H6FN.js → chunk-Q6MIDQEL.js} +2 -2
- package/dist/{chunk-UDJLF3BO.js → chunk-QLRYXOAD.js} +2 -2
- package/dist/chunk-QO3AILZN.js +89 -0
- package/dist/chunk-QO3AILZN.js.map +1 -0
- package/dist/{chunk-M3WF2AB6.js → chunk-R37A3BEW.js} +25 -25
- package/dist/{chunk-FP4ISXI3.js → chunk-SDLJ2W7S.js} +6 -6
- package/dist/{chunk-CXKETYZ7.js → chunk-SF45RQDX.js} +3 -3
- package/dist/{chunk-ZUPFMHJA.js → chunk-T2AOOHDA.js} +2 -2
- package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
- package/dist/{chunk-ZQJHKN7J.js → chunk-XVVEKF5I.js} +17 -17
- package/dist/{chunk-7O5CFNN4.js → chunk-ZLINDOBG.js} +4 -4
- package/dist/cli.js +23 -21
- package/dist/config.d.ts +1 -1
- package/dist/config.js +3 -1
- package/dist/connectors/index.d.ts +6 -2
- package/dist/connectors/index.js +6 -2
- package/dist/conversation-index/backend.js +2 -2
- package/dist/emit-legacy-tools.d.ts +61 -0
- package/dist/emit-legacy-tools.js +12 -0
- package/dist/emit-legacy-tools.js.map +1 -0
- package/dist/index.js +45 -43
- package/dist/index.js.map +1 -1
- package/dist/namespaces/migrate.js +5 -5
- package/dist/namespaces/search.js +4 -4
- package/dist/operator-toolkit.js +10 -8
- package/dist/orchestrator.js +14 -14
- package/dist/resume-bundles.js +4 -2
- package/dist/schemas.d.ts +22 -22
- package/dist/search/factory.js +3 -3
- package/dist/search/index.js +3 -3
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +1 -1
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/types.d.ts +12 -12
- package/package.json +2 -2
- package/src/config.test.ts +408 -6
- package/src/config.ts +12 -56
- package/src/connectors/index.ts +2 -15
- package/src/connectors/paths.ts +50 -0
- package/src/emit-legacy-tools.test.ts +297 -0
- package/src/emit-legacy-tools.ts +204 -0
- package/dist/chunk-BTLNC5YM.js.map +0 -1
- package/dist/chunk-MLVMBV2C.js.map +0 -1
- /package/dist/{chunk-KJOYHNS7.js.map → chunk-7OGJQP7T.js.map} +0 -0
- /package/dist/{chunk-EJYFPRED.js.map → chunk-B55KFEGS.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
- /package/dist/{chunk-PYTATYUV.js.map → chunk-ODWI5XU2.js.map} +0 -0
- /package/dist/{chunk-AYGT6VBC.js.map → chunk-OG7A6AZX.js.map} +0 -0
- /package/dist/{chunk-4QZ7H6FN.js.map → chunk-Q6MIDQEL.js.map} +0 -0
- /package/dist/{chunk-UDJLF3BO.js.map → chunk-QLRYXOAD.js.map} +0 -0
- /package/dist/{chunk-M3WF2AB6.js.map → chunk-R37A3BEW.js.map} +0 -0
- /package/dist/{chunk-FP4ISXI3.js.map → chunk-SDLJ2W7S.js.map} +0 -0
- /package/dist/{chunk-CXKETYZ7.js.map → chunk-SF45RQDX.js.map} +0 -0
- /package/dist/{chunk-ZUPFMHJA.js.map → chunk-T2AOOHDA.js.map} +0 -0
- /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
- /package/dist/{chunk-ZQJHKN7J.js.map → chunk-XVVEKF5I.js.map} +0 -0
- /package/dist/{chunk-7O5CFNN4.js.map → chunk-ZLINDOBG.js.map} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readEnvVar,
|
|
3
|
+
resolveHomeDir
|
|
4
|
+
} from "./chunk-JUC24CTX.js";
|
|
5
|
+
|
|
6
|
+
// src/connectors/paths.ts
|
|
7
|
+
import fs from "fs";
|
|
8
|
+
import path from "path";
|
|
9
|
+
var REGISTRY_DIR_NAME = ".engram-connectors";
|
|
10
|
+
function getConnectorsConfigRoot() {
|
|
11
|
+
const xdgConfigHome = readEnvVar("XDG_CONFIG_HOME");
|
|
12
|
+
return xdgConfigHome ? path.join(xdgConfigHome, "engram") : path.join(resolveHomeDir(), ".config", "engram");
|
|
13
|
+
}
|
|
14
|
+
function getRegistryPath() {
|
|
15
|
+
return path.join(getConnectorsConfigRoot(), REGISTRY_DIR_NAME, "registry.json");
|
|
16
|
+
}
|
|
17
|
+
function getConnectorsDir() {
|
|
18
|
+
return path.join(getConnectorsConfigRoot(), REGISTRY_DIR_NAME, "connectors");
|
|
19
|
+
}
|
|
20
|
+
function hasLegacyConnectorEntries() {
|
|
21
|
+
try {
|
|
22
|
+
return fs.readdirSync(getConnectorsDir()).some((name) => name.endsWith(".json"));
|
|
23
|
+
} catch {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
getRegistryPath,
|
|
30
|
+
getConnectorsDir,
|
|
31
|
+
hasLegacyConnectorEntries
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=chunk-3BQOQYRB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/connectors/paths.ts"],"sourcesContent":["import fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport { readEnvVar, resolveHomeDir } from \"../runtime/env.js\";\n\n/**\n * Connector registry directory name. Kept under the legacy `engram` config\n * root for backward compatibility with existing installs; the rename to a\n * `remnic` path (with a legacy read-fallback) is tracked in #1518.\n */\nexport const REGISTRY_DIR_NAME = \".engram-connectors\";\n\n/**\n * Single source of truth for the connectors config root\n * (`$XDG_CONFIG_HOME/engram` or `~/.config/engram`). Issue #1527 flagged this\n * derivation as previously duplicated across call sites — add new callers\n * here, never re-derive the path inline.\n */\nexport function getConnectorsConfigRoot(): string {\n const xdgConfigHome = readEnvVar(\"XDG_CONFIG_HOME\");\n return xdgConfigHome\n ? path.join(xdgConfigHome, \"engram\")\n : path.join(resolveHomeDir(), \".config\", \"engram\");\n}\n\n/** Path of the connector registry manifest file. */\nexport function getRegistryPath(): string {\n return path.join(getConnectorsConfigRoot(), REGISTRY_DIR_NAME, \"registry.json\");\n}\n\n/** Directory holding one `<connector-id>.json` per installed connector. */\nexport function getConnectorsDir(): string {\n return path.join(getConnectorsConfigRoot(), REGISTRY_DIR_NAME, \"connectors\");\n}\n\n/**\n * Sticky-legacy evidence for `emitLegacyTools` (issue #1550): any persisted\n * connector entry under the legacy engram connectors dir means an existing\n * install whose clients may still address engram_* aliases. Missing or\n * unreadable dir means fresh install — no evidence, no aliases.\n */\nexport function hasLegacyConnectorEntries(): boolean {\n try {\n return fs\n .readdirSync(getConnectorsDir())\n .some((name) => name.endsWith(\".json\"));\n } catch {\n return false;\n }\n}\n"],"mappings":";;;;;;AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AASV,IAAM,oBAAoB;AAQ1B,SAAS,0BAAkC;AAChD,QAAM,gBAAgB,WAAW,iBAAiB;AAClD,SAAO,gBACH,KAAK,KAAK,eAAe,QAAQ,IACjC,KAAK,KAAK,eAAe,GAAG,WAAW,QAAQ;AACrD;AAGO,SAAS,kBAA0B;AACxC,SAAO,KAAK,KAAK,wBAAwB,GAAG,mBAAmB,eAAe;AAChF;AAGO,SAAS,mBAA2B;AACzC,SAAO,KAAK,KAAK,wBAAwB,GAAG,mBAAmB,YAAY;AAC7E;AAQO,SAAS,4BAAqC;AACnD,MAAI;AACF,WAAO,GACJ,YAAY,iBAAiB,CAAC,EAC9B,KAAK,CAAC,SAAS,KAAK,SAAS,OAAO,CAAC;AAAA,EAC1C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;","names":[]}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
failOpenFaissHealth
|
|
3
|
+
} from "./chunk-E6ZDCOHM.js";
|
|
1
4
|
import {
|
|
2
5
|
rebuildConversationChunksFailOpen,
|
|
3
6
|
upsertConversationChunksFailOpen
|
|
@@ -6,9 +9,6 @@ import {
|
|
|
6
9
|
searchConversationIndex,
|
|
7
10
|
searchConversationIndexFaissFailOpen
|
|
8
11
|
} from "./chunk-7DTASS5T.js";
|
|
9
|
-
import {
|
|
10
|
-
failOpenFaissHealth
|
|
11
|
-
} from "./chunk-E6ZDCOHM.js";
|
|
12
12
|
|
|
13
13
|
// src/conversation-index/backend.ts
|
|
14
14
|
function createConversationIndexBackend(options) {
|
|
@@ -235,4 +235,4 @@ function createFaissBackend(getFaiss) {
|
|
|
235
235
|
export {
|
|
236
236
|
createConversationIndexBackend
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=chunk-
|
|
238
|
+
//# sourceMappingURL=chunk-7OGJQP7T.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-RN7MUWON.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7OGJQP7T.js";
|
|
22
22
|
import {
|
|
23
23
|
FaissConversationIndexAdapter
|
|
24
24
|
} from "./chunk-E6ZDCOHM.js";
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
createConversationSearchBackend,
|
|
171
171
|
createConversationIndexRuntime
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-B55KFEGS.js.map
|
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
coerceInstallExtension
|
|
11
11
|
} from "./chunk-PHK3HARR.js";
|
|
12
|
+
import {
|
|
13
|
+
getConnectorsDir,
|
|
14
|
+
getRegistryPath
|
|
15
|
+
} from "./chunk-3BQOQYRB.js";
|
|
12
16
|
import {
|
|
13
17
|
launchProcessSync
|
|
14
18
|
} from "./chunk-O75CRYGF.js";
|
|
@@ -626,7 +630,6 @@ var BUILTIN_CONNECTORS = [
|
|
|
626
630
|
requiresToken: true
|
|
627
631
|
}
|
|
628
632
|
];
|
|
629
|
-
var REGISTRY_DIR_NAME = ".engram-connectors";
|
|
630
633
|
var CONNECTOR_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
631
634
|
function isValidConnectorId(connectorId) {
|
|
632
635
|
return typeof connectorId === "string" && CONNECTOR_ID_PATTERN.test(connectorId);
|
|
@@ -634,11 +637,6 @@ function isValidConnectorId(connectorId) {
|
|
|
634
637
|
function isConnectorManifest(value) {
|
|
635
638
|
return typeof value === "object" && value !== null && !Array.isArray(value) && isValidConnectorId(value.id);
|
|
636
639
|
}
|
|
637
|
-
function getRegistryPath() {
|
|
638
|
-
const xdgConfigHome = readEnvVar("XDG_CONFIG_HOME");
|
|
639
|
-
const configDir = xdgConfigHome ? path2.join(xdgConfigHome, "engram") : path2.join(resolveHomeDir(), ".config", "engram");
|
|
640
|
-
return path2.join(configDir, REGISTRY_DIR_NAME, "registry.json");
|
|
641
|
-
}
|
|
642
640
|
function loadRegistry() {
|
|
643
641
|
const regPath = getRegistryPath();
|
|
644
642
|
if (!fs2.existsSync(regPath)) {
|
|
@@ -2092,11 +2090,6 @@ function removeCodexMemoryExtension(options = {}) {
|
|
|
2092
2090
|
}
|
|
2093
2091
|
return { ...paths, removed };
|
|
2094
2092
|
}
|
|
2095
|
-
function getConnectorsDir() {
|
|
2096
|
-
const xdgConfigHome = readEnvVar("XDG_CONFIG_HOME");
|
|
2097
|
-
const configDir = xdgConfigHome ? path2.join(xdgConfigHome, "engram") : path2.join(resolveHomeDir(), ".config", "engram");
|
|
2098
|
-
return path2.join(configDir, REGISTRY_DIR_NAME, "connectors");
|
|
2099
|
-
}
|
|
2100
2093
|
var WECLONE_PROXY_CONFIG_DIRNAME = ".remnic";
|
|
2101
2094
|
var WECLONE_PROXY_CONFIG_FILENAME = "weclone.json";
|
|
2102
2095
|
function resolveWeCloneProxyConfigPath() {
|
|
@@ -2244,7 +2237,6 @@ export {
|
|
|
2244
2237
|
checkMarketplaceManifest,
|
|
2245
2238
|
writeMarketplaceManifest,
|
|
2246
2239
|
installFromMarketplace,
|
|
2247
|
-
getRegistryPath,
|
|
2248
2240
|
loadRegistry,
|
|
2249
2241
|
saveRegistry,
|
|
2250
2242
|
listConnectors,
|
|
@@ -2262,4 +2254,4 @@ export {
|
|
|
2262
2254
|
resolveWeCloneProxyConfigPath,
|
|
2263
2255
|
buildWeCloneProxyConfig
|
|
2264
2256
|
};
|
|
2265
|
-
//# sourceMappingURL=chunk-
|
|
2257
|
+
//# sourceMappingURL=chunk-GNAMDNGT.js.map
|