@edihasaj/recall 2.0.15 → 2.0.17
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/README.md +22 -4
- package/dist/{chunk-UNHFXJ3J.js → chunk-22AJZ7UQ.js} +2 -2
- package/dist/{chunk-3XNM4OBY.js → chunk-2COJXGP4.js} +2 -2
- package/dist/{chunk-UPBAWEEX.js → chunk-CSBXI3ET.js} +41 -22
- package/dist/chunk-CSBXI3ET.js.map +1 -0
- package/dist/{chunk-QRRXTZ2D.js → chunk-EY6HIDG2.js} +13 -11
- package/dist/chunk-EY6HIDG2.js.map +1 -0
- package/dist/{chunk-IP3Y6IVH.js → chunk-FNIIUNW6.js} +2 -2
- package/dist/{chunk-5HLPQ4QO.js → chunk-GK7OWVRQ.js} +3 -3
- package/dist/{chunk-5VFPRH5H.js → chunk-KLERXJ47.js} +3 -3
- package/dist/{chunk-6VNCO5FJ.js → chunk-KVZN35JF.js} +7 -7
- package/dist/{chunk-6OSF6UMA.js → chunk-Q22B7YDQ.js} +5 -5
- package/dist/{chunk-OICFUTKH.js → chunk-Q7254IPO.js} +908 -43
- package/dist/chunk-Q7254IPO.js.map +1 -0
- package/dist/{chunk-EKIFJ47B.js → chunk-QQ6YHR7I.js} +11 -11
- package/dist/{chunk-S6P6VLHE.js → chunk-RAQT2OBR.js} +7 -7
- package/dist/{chunk-6IICQV52.js → chunk-UDLRBKC3.js} +3 -3
- package/dist/{chunk-HYJLVJF3.js → chunk-VUVFQJWZ.js} +2 -2
- package/dist/{chunk-J5ID5UG6.js → chunk-XRKUJ5B4.js} +2 -2
- package/dist/{chunk-KLHMJF5K.js → chunk-YIUBD27J.js} +14 -14
- package/dist/chunk-YIUBD27J.js.map +1 -0
- package/dist/{chunk-CNVC77BD.js → chunk-YIVOTIDF.js} +5 -5
- package/dist/{chunk-WGO53NXP.js → chunk-ZT67CYDS.js} +2 -2
- package/dist/chunk-ZT67CYDS.js.map +1 -0
- package/dist/{cleanup-KDX5OURB.js → cleanup-4TXIHTJT.js} +11 -11
- package/dist/cli.js +55 -36
- package/dist/cli.js.map +1 -1
- package/dist/{codex-trust-D3GWH24Q.js → codex-trust-2JIY66CP.js} +4 -4
- package/dist/daemon.js +1090 -169
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-O6NGADCQ.js +22 -0
- package/dist/{embeddings-MYVWUUN3.js → embeddings-AAS7NKGB.js} +5 -5
- package/dist/ingest-DW3AG4M5.js +20 -0
- package/dist/{keychain-6A4D2OC7.js → keychain-SHRO7W6J.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-GUTJ6GZZ.js → memory-value-R2C7ZSDF.js} +11 -11
- package/dist/{provenance-YTXKCFG6.js → provenance-I5GIAP7N.js} +9 -9
- package/dist/quality-32MAXPNJ.js +25 -0
- package/dist/retrieval-RKYWWNWC.js +15 -0
- package/dist/{store-N44KEHDD.js → store-X2B6MRBH.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-WOTNJOMJ.js → tasks-H4NIS6QO.js} +11 -11
- package/dist/{usage-LJNNKBGV.js → usage-35HSDMNT.js} +4 -4
- package/package.json +6 -5
- package/vendor/recall-cloud-sync/PROVENANCE.md +27 -0
- package/vendor/recall-cloud-sync/managed-worker.mjs +48 -0
- package/vendor/recall-cloud-sync/private-token.mjs +95 -0
- package/vendor/recall-cloud-sync/recall-sync-local.mjs +406 -0
- package/vendor/recall-cloud-sync/recall-sync.mjs +1266 -0
- package/dist/chunk-KLHMJF5K.js.map +0 -1
- package/dist/chunk-OICFUTKH.js.map +0 -1
- package/dist/chunk-QRRXTZ2D.js.map +0 -1
- package/dist/chunk-UPBAWEEX.js.map +0 -1
- package/dist/chunk-WGO53NXP.js.map +0 -1
- package/dist/dispatcher-3WK6HO5O.js +0 -22
- package/dist/ingest-J5BURTVS.js +0 -20
- package/dist/quality-JFHCRXD5.js +0 -25
- package/dist/retrieval-4V3SVEI6.js +0 -15
- /package/dist/{chunk-UNHFXJ3J.js.map → chunk-22AJZ7UQ.js.map} +0 -0
- /package/dist/{chunk-3XNM4OBY.js.map → chunk-2COJXGP4.js.map} +0 -0
- /package/dist/{chunk-IP3Y6IVH.js.map → chunk-FNIIUNW6.js.map} +0 -0
- /package/dist/{chunk-5HLPQ4QO.js.map → chunk-GK7OWVRQ.js.map} +0 -0
- /package/dist/{chunk-5VFPRH5H.js.map → chunk-KLERXJ47.js.map} +0 -0
- /package/dist/{chunk-6VNCO5FJ.js.map → chunk-KVZN35JF.js.map} +0 -0
- /package/dist/{chunk-6OSF6UMA.js.map → chunk-Q22B7YDQ.js.map} +0 -0
- /package/dist/{chunk-EKIFJ47B.js.map → chunk-QQ6YHR7I.js.map} +0 -0
- /package/dist/{chunk-S6P6VLHE.js.map → chunk-RAQT2OBR.js.map} +0 -0
- /package/dist/{chunk-6IICQV52.js.map → chunk-UDLRBKC3.js.map} +0 -0
- /package/dist/{chunk-HYJLVJF3.js.map → chunk-VUVFQJWZ.js.map} +0 -0
- /package/dist/{chunk-J5ID5UG6.js.map → chunk-XRKUJ5B4.js.map} +0 -0
- /package/dist/{chunk-CNVC77BD.js.map → chunk-YIVOTIDF.js.map} +0 -0
- /package/dist/{cleanup-KDX5OURB.js.map → cleanup-4TXIHTJT.js.map} +0 -0
- /package/dist/{codex-trust-D3GWH24Q.js.map → codex-trust-2JIY66CP.js.map} +0 -0
- /package/dist/{dispatcher-3WK6HO5O.js.map → dispatcher-O6NGADCQ.js.map} +0 -0
- /package/dist/{embeddings-MYVWUUN3.js.map → embeddings-AAS7NKGB.js.map} +0 -0
- /package/dist/{ingest-J5BURTVS.js.map → ingest-DW3AG4M5.js.map} +0 -0
- /package/dist/{keychain-6A4D2OC7.js.map → keychain-SHRO7W6J.js.map} +0 -0
- /package/dist/{memory-value-GUTJ6GZZ.js.map → memory-value-R2C7ZSDF.js.map} +0 -0
- /package/dist/{provenance-YTXKCFG6.js.map → provenance-I5GIAP7N.js.map} +0 -0
- /package/dist/{quality-JFHCRXD5.js.map → quality-32MAXPNJ.js.map} +0 -0
- /package/dist/{retrieval-4V3SVEI6.js.map → retrieval-RKYWWNWC.js.map} +0 -0
- /package/dist/{store-N44KEHDD.js.map → store-X2B6MRBH.js.map} +0 -0
- /package/dist/{tasks-WOTNJOMJ.js.map → tasks-H4NIS6QO.js.map} +0 -0
- /package/dist/{usage-LJNNKBGV.js.map → usage-35HSDMNT.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeMemoryValueReport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RAQT2OBR.js";
|
|
4
4
|
import {
|
|
5
5
|
desc
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UDLRBKC3.js";
|
|
7
7
|
import {
|
|
8
8
|
and,
|
|
9
9
|
eq,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
memoryInjections,
|
|
15
15
|
qualitySnapshots,
|
|
16
16
|
sql
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2COJXGP4.js";
|
|
18
18
|
import {
|
|
19
19
|
init_define_RECALL_BUILD_INFO
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZT67CYDS.js";
|
|
21
21
|
|
|
22
22
|
// src/maintenance/quality.ts
|
|
23
23
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -184,4 +184,4 @@ export {
|
|
|
184
184
|
diffQualitySnapshots,
|
|
185
185
|
formatQualityReport
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
187
|
+
//# sourceMappingURL=chunk-YIVOTIDF.js.map
|
|
@@ -28,7 +28,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
28
28
|
var define_RECALL_BUILD_INFO_default;
|
|
29
29
|
var init_define_RECALL_BUILD_INFO = __esm({
|
|
30
30
|
"<define:__RECALL_BUILD_INFO__>"() {
|
|
31
|
-
define_RECALL_BUILD_INFO_default = { sha: "
|
|
31
|
+
define_RECALL_BUILD_INFO_default = { sha: "0273270db1c107924c93832351a5fb3887cbcf93", built_at: "2026-10-27T09:24:44.639Z", dependencies: { "@huggingface/transformers": "4.3.1", "onnxruntime-node": "1.30.0", "better-sqlite3": "11.10.0", "sqlite-vec": "0.1.9", "@photostructure/sqlite-vec": "2.0.1" } };
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
init_define_RECALL_BUILD_INFO,
|
|
40
40
|
define_RECALL_BUILD_INFO_default
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-ZT67CYDS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["<define:__RECALL_BUILD_INFO__>"],"sourcesContent":["{\"sha\":\"0273270db1c107924c93832351a5fb3887cbcf93\",\"built_at\":\"2026-10-27T09:24:44.639Z\",\"dependencies\":{\"@huggingface/transformers\":\"4.3.1\",\"onnxruntime-node\":\"1.30.0\",\"better-sqlite3\":\"11.10.0\",\"sqlite-vec\":\"0.1.9\",\"@photostructure/sqlite-vec\":\"2.0.1\"}}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,yCAAC,KAAM,4CAA2C,UAAW,4BAA2B,cAAe,EAAC,6BAA4B,SAAQ,oBAAmB,UAAS,kBAAiB,WAAU,cAAa,SAAQ,8BAA6B,QAAO,EAAC;AAAA;AAAA;","names":[]}
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
qualityReasons,
|
|
14
14
|
revertCleanupRun,
|
|
15
15
|
runDeterministicCleanup
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-QQ6YHR7I.js";
|
|
17
|
+
import "./chunk-XRKUJ5B4.js";
|
|
18
|
+
import "./chunk-KVZN35JF.js";
|
|
19
|
+
import "./chunk-UDLRBKC3.js";
|
|
20
|
+
import "./chunk-VUVFQJWZ.js";
|
|
21
|
+
import "./chunk-CSBXI3ET.js";
|
|
22
|
+
import "./chunk-FNIIUNW6.js";
|
|
23
|
+
import "./chunk-KLERXJ47.js";
|
|
24
|
+
import "./chunk-2COJXGP4.js";
|
|
25
|
+
import "./chunk-ZT67CYDS.js";
|
|
26
26
|
export {
|
|
27
27
|
formatCleanupReport,
|
|
28
28
|
isWorkspaceRootAlias,
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
revertCleanupRun,
|
|
40
40
|
runDeterministicCleanup
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=cleanup-
|
|
42
|
+
//# sourceMappingURL=cleanup-4TXIHTJT.js.map
|
package/dist/cli.js
CHANGED
|
@@ -55,16 +55,17 @@ import {
|
|
|
55
55
|
unregisterStrayApps,
|
|
56
56
|
verifyBackupIntegrity,
|
|
57
57
|
writeRepoContextArtifact
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-YIUBD27J.js";
|
|
59
59
|
import {
|
|
60
60
|
hasCommand,
|
|
61
61
|
installCodexHooks,
|
|
62
62
|
resolveCodexHookTargets,
|
|
63
63
|
resolveUserHomeDir,
|
|
64
64
|
uninstallCodexHooks
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-GK7OWVRQ.js";
|
|
66
66
|
import {
|
|
67
67
|
closeDb,
|
|
68
|
+
cloudQueryStatus,
|
|
68
69
|
compileContext,
|
|
69
70
|
compileContextHybrid,
|
|
70
71
|
computeMetrics,
|
|
@@ -101,11 +102,13 @@ import {
|
|
|
101
102
|
runValueRetrievalEval,
|
|
102
103
|
scanAndStore,
|
|
103
104
|
searchHistorySnippets,
|
|
105
|
+
setCloudQueryBackgroundEnabled,
|
|
106
|
+
setCloudQueryEnabled,
|
|
104
107
|
signalOutcomeFallback,
|
|
105
108
|
startEvalSession,
|
|
106
109
|
summarizeValueRetrievalEval,
|
|
107
110
|
togglePolicy
|
|
108
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-Q7254IPO.js";
|
|
109
112
|
import {
|
|
110
113
|
autoResolveContradictions,
|
|
111
114
|
computeAllHealthScores,
|
|
@@ -120,10 +123,10 @@ import {
|
|
|
120
123
|
processCorrection,
|
|
121
124
|
processReviewFeedback,
|
|
122
125
|
resolveContradiction
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
126
|
+
} from "./chunk-QQ6YHR7I.js";
|
|
127
|
+
import "./chunk-RAQT2OBR.js";
|
|
128
|
+
import "./chunk-XRKUJ5B4.js";
|
|
129
|
+
import "./chunk-22AJZ7UQ.js";
|
|
127
130
|
import {
|
|
128
131
|
confirmMemory,
|
|
129
132
|
createMemory,
|
|
@@ -139,11 +142,11 @@ import {
|
|
|
139
142
|
recordAuditWithSnapshot,
|
|
140
143
|
rejectMemory,
|
|
141
144
|
rollbackMemory
|
|
142
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-KVZN35JF.js";
|
|
143
146
|
import {
|
|
144
147
|
desc
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
148
|
+
} from "./chunk-UDLRBKC3.js";
|
|
149
|
+
import "./chunk-VUVFQJWZ.js";
|
|
147
150
|
import {
|
|
148
151
|
CONFIDENCE,
|
|
149
152
|
bootstrapEmbeddings,
|
|
@@ -158,15 +161,15 @@ import {
|
|
|
158
161
|
semanticSearch,
|
|
159
162
|
upsertMemoryFtsRow,
|
|
160
163
|
verifyEmbeddings
|
|
161
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-CSBXI3ET.js";
|
|
162
165
|
import {
|
|
163
166
|
deleteApiKey,
|
|
164
167
|
hasKeychainApiKey,
|
|
165
168
|
init_keychain,
|
|
166
169
|
init_outbound_url,
|
|
167
170
|
normalizeSyncRemoteUrl
|
|
168
|
-
} from "./chunk-
|
|
169
|
-
import "./chunk-
|
|
171
|
+
} from "./chunk-FNIIUNW6.js";
|
|
172
|
+
import "./chunk-KLERXJ47.js";
|
|
170
173
|
import {
|
|
171
174
|
and,
|
|
172
175
|
auditTrail,
|
|
@@ -175,10 +178,10 @@ import {
|
|
|
175
178
|
memories,
|
|
176
179
|
sql,
|
|
177
180
|
syncState
|
|
178
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-2COJXGP4.js";
|
|
179
182
|
import {
|
|
180
183
|
init_define_RECALL_BUILD_INFO
|
|
181
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-ZT67CYDS.js";
|
|
182
185
|
|
|
183
186
|
// src/cli.ts
|
|
184
187
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -434,6 +437,18 @@ To import: recall harness2 import ${JSON.stringify(file)} --repo ${JSON.stringif
|
|
|
434
437
|
});
|
|
435
438
|
}
|
|
436
439
|
|
|
440
|
+
// src/cli/cloud-query.ts
|
|
441
|
+
init_define_RECALL_BUILD_INFO();
|
|
442
|
+
function registerCloudQueryCommands(program2) {
|
|
443
|
+
program2.command("cloud-query [mode]").description("Online memory lookup defaults on for connected Cloud; off keeps retrieval local").action((mode = "status") => {
|
|
444
|
+
if (!["on", "off", "status"].includes(mode)) {
|
|
445
|
+
throw new Error("Use cloud-query on, off, or status");
|
|
446
|
+
}
|
|
447
|
+
if (mode !== "status") setCloudQueryEnabled(mode === "on");
|
|
448
|
+
console.log(JSON.stringify(cloudQueryStatus()));
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
|
|
437
452
|
// src/cli.ts
|
|
438
453
|
import { resolve as resolve4 } from "path";
|
|
439
454
|
import { writeFileSync, readFileSync as readFileSync3, realpathSync } from "fs";
|
|
@@ -1993,6 +2008,7 @@ function defaultRecallAppPath(platform = process.platform) {
|
|
|
1993
2008
|
}
|
|
1994
2009
|
program.name("recall").description("Cross-tool coding memory and instruction compiler").version(pkg.version);
|
|
1995
2010
|
registerHarness2Commands(program);
|
|
2011
|
+
registerCloudQueryCommands(program);
|
|
1996
2012
|
program.command("init").description("Initialize Recall database").action(() => {
|
|
1997
2013
|
initDb();
|
|
1998
2014
|
console.log("Recall initialized. Database ready.");
|
|
@@ -2039,7 +2055,7 @@ program.command("doctor").description("Show local Recall runtime, DB, embedding,
|
|
|
2039
2055
|
const finalReport = opts.fix ? getDoctorReport() : report;
|
|
2040
2056
|
const codexEntry = finalReport.agents.find((agent) => agent.agent === "codex" && agent.detected);
|
|
2041
2057
|
if (codexEntry) {
|
|
2042
|
-
const { inspectCodexTrust } = await import("./codex-trust-
|
|
2058
|
+
const { inspectCodexTrust } = await import("./codex-trust-2JIY66CP.js");
|
|
2043
2059
|
codexEntry.hook_trust = await inspectCodexTrust();
|
|
2044
2060
|
}
|
|
2045
2061
|
if (opts.json) {
|
|
@@ -2363,6 +2379,7 @@ hookCmd.command("stats").description("Inspect local hook call telemetry").option
|
|
|
2363
2379
|
}
|
|
2364
2380
|
});
|
|
2365
2381
|
program.command("ump").description("Serve the Universal Memory Protocol (UMP) over Recall's engine").option("--http <port>", "Serve the UMP HTTP binding on this port").option("--stdio", "Serve the UMP MCP binding over stdio (default)").option("--smart", "Route writes through Recall's capture/judgement pipeline").action(async (opts) => {
|
|
2382
|
+
setCloudQueryBackgroundEnabled(true);
|
|
2366
2383
|
await runUmpServer({
|
|
2367
2384
|
http: opts.http ? parseInt(opts.http, 10) : void 0,
|
|
2368
2385
|
stdio: opts.stdio,
|
|
@@ -2682,6 +2699,7 @@ historyCmd.command("search").description("Search history snippets with hybrid le
|
|
|
2682
2699
|
}
|
|
2683
2700
|
});
|
|
2684
2701
|
program.command("serve").description("Start the MCP server (stdio transport)").action(async () => {
|
|
2702
|
+
setCloudQueryBackgroundEnabled(true);
|
|
2685
2703
|
await import("./mcp.js");
|
|
2686
2704
|
});
|
|
2687
2705
|
var syncCmd = program.command("sync").description("Sync memories with remote server");
|
|
@@ -2766,7 +2784,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
2766
2784
|
});
|
|
2767
2785
|
let snapshot = null;
|
|
2768
2786
|
if (opts.snapshot) {
|
|
2769
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
2787
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-32MAXPNJ.js");
|
|
2770
2788
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
2771
2789
|
snapshot = recordQualitySnapshot(
|
|
2772
2790
|
db,
|
|
@@ -3295,15 +3313,15 @@ uiCmd.command("status").description("Show WebUI status").option("--daemon-port <
|
|
|
3295
3313
|
var graphCmd = program.command("graph").description("Inspect and rebuild the knowledge graph (entities + relations)");
|
|
3296
3314
|
graphCmd.command("stats").description("Show entity/relation counts").action(async () => {
|
|
3297
3315
|
const db = initDb();
|
|
3298
|
-
const { countEntities, countRelations } = await import("./store-
|
|
3316
|
+
const { countEntities, countRelations } = await import("./store-X2B6MRBH.js");
|
|
3299
3317
|
console.log(`entities: ${countEntities(db)}`);
|
|
3300
3318
|
console.log(`relations: ${countRelations(db)}`);
|
|
3301
3319
|
});
|
|
3302
3320
|
graphCmd.command("backfill").description("Run the heuristic extractor over every active memory (idempotent)").option("--repo <repo>", "Limit to a single repo").option("--limit <n>", "Cap rows processed", "10000").option("--rebuild", "Clear all existing entities/relations first, then re-extract").action(async (opts) => {
|
|
3303
3321
|
const db = initDb();
|
|
3304
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
3322
|
+
const { ingestMemoryHeuristic } = await import("./ingest-DW3AG4M5.js");
|
|
3305
3323
|
if (opts.rebuild) {
|
|
3306
|
-
const { clearGraph } = await import("./store-
|
|
3324
|
+
const { clearGraph } = await import("./store-X2B6MRBH.js");
|
|
3307
3325
|
clearGraph(db);
|
|
3308
3326
|
console.log("Cleared existing graph entities and relations.");
|
|
3309
3327
|
}
|
|
@@ -3325,7 +3343,7 @@ graphCmd.command("backfill").description("Run the heuristic extractor over every
|
|
|
3325
3343
|
});
|
|
3326
3344
|
graphCmd.command("entities").description("List entities").option("--repo <repo>", "Filter by repo").option("--kind <kind>", "Filter by entity kind").option("--search <q>", "Substring filter on name").option("--limit <n>", "Max rows", "50").action(async (opts) => {
|
|
3327
3345
|
const db = initDb();
|
|
3328
|
-
const { listEntities } = await import("./store-
|
|
3346
|
+
const { listEntities } = await import("./store-X2B6MRBH.js");
|
|
3329
3347
|
const rows = listEntities(db, {
|
|
3330
3348
|
repo: opts.repo,
|
|
3331
3349
|
kind: opts.kind,
|
|
@@ -3344,8 +3362,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
3344
3362
|
});
|
|
3345
3363
|
graphCmd.command("query <query...>").description("Run graph-aware retrieval for a query").option("--repo <repo>", "Restrict to repo").option("--hops <n>", "Graph hops", "2").option("--limit <n>", "Max hits", "10").action(async (queryTokens, opts) => {
|
|
3346
3364
|
const db = initDb();
|
|
3347
|
-
const { graphQuery } = await import("./retrieval-
|
|
3348
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
3365
|
+
const { graphQuery } = await import("./retrieval-RKYWWNWC.js");
|
|
3366
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-AAS7NKGB.js");
|
|
3349
3367
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
3350
3368
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
3351
3369
|
repo: opts.repo,
|
|
@@ -3361,7 +3379,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
3361
3379
|
});
|
|
3362
3380
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
3363
3381
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
3364
|
-
const { getTaskStats } = await import("./tasks-
|
|
3382
|
+
const { getTaskStats } = await import("./tasks-H4NIS6QO.js");
|
|
3365
3383
|
const db = initDb();
|
|
3366
3384
|
const stats = getTaskStats(db);
|
|
3367
3385
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -3387,7 +3405,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
3387
3405
|
}
|
|
3388
3406
|
});
|
|
3389
3407
|
maintenanceCmd.command("list").description("List tasks (default: pending)").option("-s, --status <status>", "pending|claimed|completed|abandoned", "pending").option("-k, --kind <kind>", "Filter by kind").option("-r, --repo <repo>", "Filter by repo").option("-n, --limit <n>", "Max entries", "20").action(async (opts) => {
|
|
3390
|
-
const { listTasks } = await import("./tasks-
|
|
3408
|
+
const { listTasks } = await import("./tasks-H4NIS6QO.js");
|
|
3391
3409
|
const db = initDb();
|
|
3392
3410
|
const tasks = listTasks(db, {
|
|
3393
3411
|
status: opts.status,
|
|
@@ -3409,7 +3427,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
3409
3427
|
}
|
|
3410
3428
|
});
|
|
3411
3429
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
3412
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
3430
|
+
const { deleteTask, listTasks } = await import("./tasks-H4NIS6QO.js");
|
|
3413
3431
|
const db = initDb();
|
|
3414
3432
|
const all = listTasks(db, { limit: 1e4 });
|
|
3415
3433
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -3428,7 +3446,7 @@ maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)")
|
|
|
3428
3446
|
});
|
|
3429
3447
|
var credentialsCmd = maintenanceCmd.command("credentials").description("Manage LLM provider API keys in macOS Keychain (env fallback on other platforms)");
|
|
3430
3448
|
credentialsCmd.command("list", { isDefault: true }).description("Show which providers have credentials available").action(async () => {
|
|
3431
|
-
const { listCredentials } = await import("./keychain-
|
|
3449
|
+
const { listCredentials } = await import("./keychain-SHRO7W6J.js");
|
|
3432
3450
|
const creds = listCredentials();
|
|
3433
3451
|
if (creds.length === 0) {
|
|
3434
3452
|
console.log("No API keys configured. Set one with:");
|
|
@@ -3442,7 +3460,7 @@ credentialsCmd.command("list", { isDefault: true }).description("Show which prov
|
|
|
3442
3460
|
}
|
|
3443
3461
|
});
|
|
3444
3462
|
credentialsCmd.command("set").description("Store credentials for an LLM provider in the macOS Keychain").argument("<provider>", "openai|anthropic|azure").argument("[key]", "API key (prompts via stdin if omitted; required for openai/anthropic and for azure unless --stdin-json is used)").option("--endpoint <url>", "Azure OpenAI resource endpoint (e.g. https://myresource.openai.azure.com)").option("--deployment <name>", "Azure OpenAI deployment name").option("--api-version <version>", "Azure OpenAI api-version (e.g. 2024-10-21)").option("--stdin-json", "Read the azure config (endpoint/deployment/api_version/key) as a JSON object from stdin").action(async (providerArg, keyArg, opts) => {
|
|
3445
|
-
const { setApiKey, setAzureConfig } = await import("./keychain-
|
|
3463
|
+
const { setApiKey, setAzureConfig } = await import("./keychain-SHRO7W6J.js");
|
|
3446
3464
|
const provider = providerArg === "azure" ? "azure-openai" : providerArg;
|
|
3447
3465
|
if (provider === "openai" || provider === "anthropic") {
|
|
3448
3466
|
const key = keyArg ?? await readStdinKey();
|
|
@@ -3504,7 +3522,7 @@ credentialsCmd.command("set").description("Store credentials for an LLM provider
|
|
|
3504
3522
|
process.exit(1);
|
|
3505
3523
|
});
|
|
3506
3524
|
credentialsCmd.command("clear").description("Remove provider credentials from the macOS Keychain").argument("<provider>", "openai|anthropic|azure").action(async (providerArg) => {
|
|
3507
|
-
const { deleteApiKey: deleteApiKey2 } = await import("./keychain-
|
|
3525
|
+
const { deleteApiKey: deleteApiKey2 } = await import("./keychain-SHRO7W6J.js");
|
|
3508
3526
|
const provider = providerArg === "azure" ? "azure-openai" : providerArg;
|
|
3509
3527
|
if (provider !== "openai" && provider !== "anthropic" && provider !== "azure-openai") {
|
|
3510
3528
|
console.error(`Provider must be "openai", "anthropic", or "azure", got "${providerArg}".`);
|
|
@@ -3515,8 +3533,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
3515
3533
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
3516
3534
|
});
|
|
3517
3535
|
maintenanceCmd.command("dispatch").description("Run the daemon-owned dispatcher once against pending maintenance tasks (requires a configured LLM provider)").option("--provider <provider>", "openai|anthropic|azure-openai (defaults to whichever is configured)").option("--model <model>", "Model override").option("--kind <kind>", "Restrict to a single task kind (repeatable)", (value, acc = []) => [...acc, value], []).option("--repo <repo>", "Restrict to a single repo").option("--max <n>", "Max tasks to run this round", "5").option("--dry-run", "Show which tasks would be dispatched; do not call the LLM").option("--preview", "Show the actual prompts that would be sent (no provider needed; no LLM call)").option("--json", "Emit the raw JSON report").action(async (opts) => {
|
|
3518
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
3519
|
-
const { listTasks } = await import("./tasks-
|
|
3536
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-O6NGADCQ.js");
|
|
3537
|
+
const { listTasks } = await import("./tasks-H4NIS6QO.js");
|
|
3520
3538
|
const db = initDb();
|
|
3521
3539
|
if (opts.preview) {
|
|
3522
3540
|
const pending = listTasks(db, {
|
|
@@ -3573,12 +3591,12 @@ ${p.prompt.max_output_tokens}
|
|
|
3573
3591
|
console.log(formatDispatchReport(report));
|
|
3574
3592
|
});
|
|
3575
3593
|
maintenanceCmd.command("quarantine-generated").description("Preview memories supported only by generated messages; preserve them outside injection").option("--apply", "Quarantine matching memories with reversible audit snapshots").action(async (opts) => {
|
|
3576
|
-
const { quarantineGeneratedMemories } = await import("./provenance-
|
|
3594
|
+
const { quarantineGeneratedMemories } = await import("./provenance-I5GIAP7N.js");
|
|
3577
3595
|
const ids = quarantineGeneratedMemories(initDb(), Boolean(opts.apply));
|
|
3578
3596
|
console.log(JSON.stringify({ applied: Boolean(opts.apply), count: ids.length, memory_ids: ids }, null, 2));
|
|
3579
3597
|
});
|
|
3580
3598
|
maintenanceCmd.command("cleanup").description("Run deterministic, LLM-free cleanup for duplicate, low-quality, stale, and mis-scoped memories").option("--apply", "Persist changes (default is dry-run)").option("--only <action>", "Restrict to one action: dedupe_exact_merge|reject_fragment_candidate|promote_repeat_correction|suppress_unproductive_command|globalize_cross_repo|reject_test_fixture_repo|reject_invalid_scope|reject_generic_scanned_tooling").option("--revert <run-id>", "Revert a previous cleanup run (id or 8-char prefix)").option("--list", "List recent cleanup runs").option("--json", "Emit the raw JSON report").action(async (opts) => {
|
|
3581
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
3599
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-4TXIHTJT.js");
|
|
3582
3600
|
const db = initDb();
|
|
3583
3601
|
if (opts.list) {
|
|
3584
3602
|
const runs = listCleanupRuns(db);
|
|
@@ -3632,7 +3650,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
3632
3650
|
recordQualitySnapshot,
|
|
3633
3651
|
listQualitySnapshots,
|
|
3634
3652
|
diffQualitySnapshots
|
|
3635
|
-
} = await import("./quality-
|
|
3653
|
+
} = await import("./quality-32MAXPNJ.js");
|
|
3636
3654
|
const db = initDb();
|
|
3637
3655
|
if (opts.history) {
|
|
3638
3656
|
const snaps = listQualitySnapshots(db);
|
|
@@ -3693,7 +3711,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
3693
3711
|
const {
|
|
3694
3712
|
backfillMemoryValueEvents,
|
|
3695
3713
|
formatMemoryValueBackfillReport
|
|
3696
|
-
} = await import("./memory-value-
|
|
3714
|
+
} = await import("./memory-value-R2C7ZSDF.js");
|
|
3697
3715
|
const db = initDb();
|
|
3698
3716
|
const report = backfillMemoryValueEvents(db, {
|
|
3699
3717
|
sinceIso: opts.since,
|
|
@@ -3706,7 +3724,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
3706
3724
|
console.log(formatMemoryValueBackfillReport(report));
|
|
3707
3725
|
});
|
|
3708
3726
|
maintenanceCmd.command("usage").description("Summarize LLM API usage (tokens, cost) across recent maintenance runs").option("--since <iso>", "Window start (default: last 30 days)").option("--limit <n>", "Recent-call rows to show", "10").option("--json", "Emit raw JSON summary").action(async (opts) => {
|
|
3709
|
-
const { summarizeUsage, formatUsageReport } = await import("./usage-
|
|
3727
|
+
const { summarizeUsage, formatUsageReport } = await import("./usage-35HSDMNT.js");
|
|
3710
3728
|
const db = initDb();
|
|
3711
3729
|
const summary = summarizeUsage(db, {
|
|
3712
3730
|
sinceIso: opts.since,
|
|
@@ -3841,6 +3859,7 @@ function isDirectCliInvocation(moduleUrl, argvPath) {
|
|
|
3841
3859
|
}
|
|
3842
3860
|
}
|
|
3843
3861
|
if (isDirectCliInvocation(import.meta.url, process.argv[1])) {
|
|
3862
|
+
setCloudQueryBackgroundEnabled(false);
|
|
3844
3863
|
await program.parseAsync(process.argv);
|
|
3845
3864
|
}
|
|
3846
3865
|
export {
|