@edihasaj/recall 1.4.14 → 1.4.16
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/{chunk-JFUMA4WV.js → chunk-3Z3KXVR4.js} +164 -12
- package/dist/chunk-3Z3KXVR4.js.map +1 -0
- package/dist/{chunk-HRUNR5JJ.js → chunk-4VM442I2.js} +7 -7
- package/dist/{chunk-DJNJQA7L.js → chunk-5IXZATFP.js} +5 -5
- package/dist/{chunk-KOBZIF2X.js → chunk-6ILX2JCU.js} +5 -5
- package/dist/{chunk-Q2KCBLJO.js → chunk-6ITYXKTU.js} +3 -3
- package/dist/{chunk-22KM2YEO.js → chunk-6LKUTMJB.js} +3 -3
- package/dist/{chunk-47CB7PKL.js → chunk-6NGYPNRD.js} +2 -2
- package/dist/{chunk-VSEAVK7X.js → chunk-7KMWCSJO.js} +4 -3
- package/dist/chunk-7KMWCSJO.js.map +1 -0
- package/dist/{chunk-BWKFROGW.js → chunk-GTTCVKF2.js} +14 -5
- package/dist/chunk-GTTCVKF2.js.map +1 -0
- package/dist/{chunk-CYAODQOH.js → chunk-MZOQHVVD.js} +2 -2
- package/dist/{chunk-CYAODQOH.js.map → chunk-MZOQHVVD.js.map} +1 -1
- package/dist/{chunk-RWEX4VJE.js → chunk-NUULY6HN.js} +3 -3
- package/dist/{chunk-HUMJTWWT.js → chunk-RHSP4EP2.js} +173 -11
- package/dist/chunk-RHSP4EP2.js.map +1 -0
- package/dist/{chunk-M3ASNCVM.js → chunk-STSOYDTJ.js} +178 -24
- package/dist/chunk-STSOYDTJ.js.map +1 -0
- package/dist/{chunk-HFHNPOBW.js → chunk-TAD3XLFA.js} +7 -7
- package/dist/{chunk-7Z3CCCS2.js → chunk-TNTP6ILA.js} +2 -2
- package/dist/{chunk-GGUWKT6I.js → chunk-VGVC6TI4.js} +9 -9
- package/dist/{chunk-AQOI4FCW.js → chunk-WN7HSHQY.js} +2 -2
- package/dist/{chunk-XCFTE74H.js → chunk-ZCTUZHBI.js} +2 -2
- package/dist/{cleanup-YCYA6BJB.js → cleanup-Y7X3YZDW.js} +11 -11
- package/dist/cli.js +42 -36
- package/dist/cli.js.map +1 -1
- package/dist/{codex-trust-Z7LNNRVT.js → codex-trust-HIFEHI7X.js} +4 -4
- package/dist/daemon.js +17 -17
- package/dist/dispatcher-7GGQWV4W.js +22 -0
- package/dist/{embeddings-VZPCFCEY.js → embeddings-FWNXO6GK.js} +5 -5
- package/dist/ingest-7EMEMHDG.js +20 -0
- package/dist/{keychain-2PXI2EGF.js → keychain-I76FJCZF.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-XSPRH6KY.js → memory-value-VOWGTLBV.js} +11 -11
- package/dist/{provenance-GJR7S7VA.js → provenance-BGVB7HW7.js} +9 -9
- package/dist/quality-OFFU4MWY.js +25 -0
- package/dist/retrieval-4T7PADU2.js +15 -0
- package/dist/{store-HIM5US7B.js → store-VEFKN5Z3.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-TAXJSUKB.js → tasks-XFKW2ORZ.js} +11 -11
- package/dist/{usage-XMYRFJBJ.js → usage-T6KFTDZW.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-BWKFROGW.js.map +0 -1
- package/dist/chunk-HUMJTWWT.js.map +0 -1
- package/dist/chunk-JFUMA4WV.js.map +0 -1
- package/dist/chunk-M3ASNCVM.js.map +0 -1
- package/dist/chunk-VSEAVK7X.js.map +0 -1
- package/dist/dispatcher-FP3WS74F.js +0 -22
- package/dist/ingest-QEKMNVL7.js +0 -20
- package/dist/quality-TWOC3UMF.js +0 -25
- package/dist/retrieval-RW6YBQ6P.js +0 -15
- /package/dist/{chunk-HRUNR5JJ.js.map → chunk-4VM442I2.js.map} +0 -0
- /package/dist/{chunk-DJNJQA7L.js.map → chunk-5IXZATFP.js.map} +0 -0
- /package/dist/{chunk-KOBZIF2X.js.map → chunk-6ILX2JCU.js.map} +0 -0
- /package/dist/{chunk-Q2KCBLJO.js.map → chunk-6ITYXKTU.js.map} +0 -0
- /package/dist/{chunk-22KM2YEO.js.map → chunk-6LKUTMJB.js.map} +0 -0
- /package/dist/{chunk-47CB7PKL.js.map → chunk-6NGYPNRD.js.map} +0 -0
- /package/dist/{chunk-RWEX4VJE.js.map → chunk-NUULY6HN.js.map} +0 -0
- /package/dist/{chunk-HFHNPOBW.js.map → chunk-TAD3XLFA.js.map} +0 -0
- /package/dist/{chunk-7Z3CCCS2.js.map → chunk-TNTP6ILA.js.map} +0 -0
- /package/dist/{chunk-GGUWKT6I.js.map → chunk-VGVC6TI4.js.map} +0 -0
- /package/dist/{chunk-AQOI4FCW.js.map → chunk-WN7HSHQY.js.map} +0 -0
- /package/dist/{chunk-XCFTE74H.js.map → chunk-ZCTUZHBI.js.map} +0 -0
- /package/dist/{cleanup-YCYA6BJB.js.map → cleanup-Y7X3YZDW.js.map} +0 -0
- /package/dist/{codex-trust-Z7LNNRVT.js.map → codex-trust-HIFEHI7X.js.map} +0 -0
- /package/dist/{dispatcher-FP3WS74F.js.map → dispatcher-7GGQWV4W.js.map} +0 -0
- /package/dist/{embeddings-VZPCFCEY.js.map → embeddings-FWNXO6GK.js.map} +0 -0
- /package/dist/{ingest-QEKMNVL7.js.map → ingest-7EMEMHDG.js.map} +0 -0
- /package/dist/{keychain-2PXI2EGF.js.map → keychain-I76FJCZF.js.map} +0 -0
- /package/dist/{memory-value-XSPRH6KY.js.map → memory-value-VOWGTLBV.js.map} +0 -0
- /package/dist/{provenance-GJR7S7VA.js.map → provenance-BGVB7HW7.js.map} +0 -0
- /package/dist/{quality-TWOC3UMF.js.map → quality-OFFU4MWY.js.map} +0 -0
- /package/dist/{retrieval-RW6YBQ6P.js.map → retrieval-4T7PADU2.js.map} +0 -0
- /package/dist/{store-HIM5US7B.js.map → store-VEFKN5Z3.js.map} +0 -0
- /package/dist/{tasks-TAXJSUKB.js.map → tasks-XFKW2ORZ.js.map} +0 -0
- /package/dist/{usage-XMYRFJBJ.js.map → usage-T6KFTDZW.js.map} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
desc
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NUULY6HN.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOwn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WN7HSHQY.js";
|
|
7
7
|
import {
|
|
8
8
|
CONFIDENCE,
|
|
9
9
|
PROMOTION,
|
|
10
10
|
queueMemoryEmbeddingSync
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GTTCVKF2.js";
|
|
12
12
|
import {
|
|
13
13
|
isPlausibleEntityName,
|
|
14
14
|
linkMemoryToEntity,
|
|
15
15
|
upsertEntity,
|
|
16
16
|
upsertRelation
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6LKUTMJB.js";
|
|
18
18
|
import {
|
|
19
19
|
and,
|
|
20
20
|
auditTrail,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
like,
|
|
26
26
|
memories,
|
|
27
27
|
sql
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7KMWCSJO.js";
|
|
29
29
|
import {
|
|
30
30
|
init_define_RECALL_BUILD_INFO
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MZOQHVVD.js";
|
|
32
32
|
|
|
33
33
|
// src/graph/ingest.ts
|
|
34
34
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -996,4 +996,4 @@ export {
|
|
|
996
996
|
getMemoryFeedbackSummaries,
|
|
997
997
|
feedbackWeightedScore
|
|
998
998
|
};
|
|
999
|
-
//# sourceMappingURL=chunk-
|
|
999
|
+
//# sourceMappingURL=chunk-TAD3XLFA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_define_RECALL_BUILD_INFO
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZOQHVVD.js";
|
|
4
4
|
|
|
5
5
|
// src/text/match.ts
|
|
6
6
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -116,4 +116,4 @@ export {
|
|
|
116
116
|
textMatchScore,
|
|
117
117
|
matchTokens
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
119
|
+
//# sourceMappingURL=chunk-TNTP6ILA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
graphQuery
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5IXZATFP.js";
|
|
4
4
|
import {
|
|
5
5
|
captureCorrectionFallback,
|
|
6
6
|
compileContext,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
scanAndStore,
|
|
27
27
|
sessionEndFallback,
|
|
28
28
|
signalOutcomeFallback
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-STSOYDTJ.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_LEASE_SECONDS,
|
|
32
32
|
TaskClaimConflictError,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
processReviewFeedback,
|
|
43
43
|
releaseTask,
|
|
44
44
|
submitTask
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-RHSP4EP2.js";
|
|
46
46
|
import {
|
|
47
47
|
recordCompletionUseValueEventsSemantic
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-4VM442I2.js";
|
|
49
49
|
import {
|
|
50
50
|
confirmMemory,
|
|
51
51
|
demoteGlobalMemory,
|
|
@@ -58,20 +58,20 @@ import {
|
|
|
58
58
|
recordAudit,
|
|
59
59
|
rejectMemory,
|
|
60
60
|
rollbackMemory
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-TAD3XLFA.js";
|
|
62
62
|
import {
|
|
63
63
|
loadEmbeddingConfigFromEnv,
|
|
64
64
|
tagActivitySource
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-GTTCVKF2.js";
|
|
66
66
|
import {
|
|
67
67
|
getEntity,
|
|
68
68
|
listEntities,
|
|
69
69
|
listMemoryIdsForEntity,
|
|
70
70
|
neighborsOf
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-6LKUTMJB.js";
|
|
72
72
|
import {
|
|
73
73
|
init_define_RECALL_BUILD_INFO
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-MZOQHVVD.js";
|
|
75
75
|
|
|
76
76
|
// src/mcp/factory.ts
|
|
77
77
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1287,4 +1287,4 @@ function createRecallMcpServer(db = initDb()) {
|
|
|
1287
1287
|
export {
|
|
1288
1288
|
createRecallMcpServer
|
|
1289
1289
|
};
|
|
1290
|
-
//# sourceMappingURL=chunk-
|
|
1290
|
+
//# sourceMappingURL=chunk-VGVC6TI4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_define_RECALL_BUILD_INFO
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZOQHVVD.js";
|
|
4
4
|
|
|
5
5
|
// src/security/object.ts
|
|
6
6
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
defineOwn,
|
|
21
21
|
deleteOwn
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-WN7HSHQY.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__esm,
|
|
3
3
|
__export,
|
|
4
4
|
init_define_RECALL_BUILD_INFO
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MZOQHVVD.js";
|
|
6
6
|
|
|
7
7
|
// src/security/outbound-url.ts
|
|
8
8
|
import { isIP } from "net";
|
|
@@ -306,4 +306,4 @@ export {
|
|
|
306
306
|
keychain_exports,
|
|
307
307
|
init_keychain
|
|
308
308
|
};
|
|
309
|
-
//# sourceMappingURL=chunk-
|
|
309
|
+
//# sourceMappingURL=chunk-ZCTUZHBI.js.map
|
|
@@ -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-RHSP4EP2.js";
|
|
17
|
+
import "./chunk-TNTP6ILA.js";
|
|
18
|
+
import "./chunk-TAD3XLFA.js";
|
|
19
|
+
import "./chunk-NUULY6HN.js";
|
|
20
|
+
import "./chunk-WN7HSHQY.js";
|
|
21
|
+
import "./chunk-GTTCVKF2.js";
|
|
22
|
+
import "./chunk-ZCTUZHBI.js";
|
|
23
|
+
import "./chunk-6LKUTMJB.js";
|
|
24
|
+
import "./chunk-7KMWCSJO.js";
|
|
25
|
+
import "./chunk-MZOQHVVD.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-Y7X3YZDW.js.map
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveCodexHookTargets,
|
|
8
8
|
resolveUserHomeDir,
|
|
9
9
|
uninstallCodexHooks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6ITYXKTU.js";
|
|
11
11
|
import {
|
|
12
12
|
dispatchCodexNotify,
|
|
13
13
|
ensureDailyBackup,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
readCodexToolInputFromStdin,
|
|
38
38
|
restoreBackup,
|
|
39
39
|
verifyBackupIntegrity
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3Z3KXVR4.js";
|
|
41
41
|
import {
|
|
42
42
|
RECALL_DB_USER_VERSION,
|
|
43
43
|
closeDb,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
summarizeValueRetrievalEval,
|
|
85
85
|
togglePolicy,
|
|
86
86
|
writeRepoContextArtifact
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-STSOYDTJ.js";
|
|
88
88
|
import {
|
|
89
89
|
autoResolveContradictions,
|
|
90
90
|
computeAllHealthScores,
|
|
@@ -97,10 +97,10 @@ import {
|
|
|
97
97
|
processCorrection,
|
|
98
98
|
processReviewFeedback,
|
|
99
99
|
resolveContradiction
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-RHSP4EP2.js";
|
|
101
|
+
import "./chunk-4VM442I2.js";
|
|
102
|
+
import "./chunk-TNTP6ILA.js";
|
|
103
|
+
import "./chunk-6NGYPNRD.js";
|
|
104
104
|
import {
|
|
105
105
|
confirmMemory,
|
|
106
106
|
createMemory,
|
|
@@ -114,12 +114,12 @@ import {
|
|
|
114
114
|
recordAudit,
|
|
115
115
|
rejectMemory,
|
|
116
116
|
rollbackMemory
|
|
117
|
-
} from "./chunk-
|
|
118
|
-
import "./chunk-
|
|
117
|
+
} from "./chunk-TAD3XLFA.js";
|
|
118
|
+
import "./chunk-NUULY6HN.js";
|
|
119
119
|
import {
|
|
120
120
|
defineOwn,
|
|
121
121
|
deleteOwn
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-WN7HSHQY.js";
|
|
123
123
|
import {
|
|
124
124
|
atomicWriteUtf8File,
|
|
125
125
|
bootstrapEmbeddings,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
searchMemoryFtsIndex,
|
|
135
135
|
semanticSearch,
|
|
136
136
|
verifyEmbeddings
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-GTTCVKF2.js";
|
|
138
138
|
import {
|
|
139
139
|
deleteApiKey,
|
|
140
140
|
hasKeychainApiKey,
|
|
@@ -142,8 +142,8 @@ import {
|
|
|
142
142
|
init_outbound_url,
|
|
143
143
|
keychain_exports,
|
|
144
144
|
normalizeSyncRemoteUrl
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-ZCTUZHBI.js";
|
|
146
|
+
import "./chunk-6LKUTMJB.js";
|
|
147
147
|
import {
|
|
148
148
|
activityEvents,
|
|
149
149
|
and,
|
|
@@ -154,11 +154,11 @@ import {
|
|
|
154
154
|
memoryInjections,
|
|
155
155
|
memoryValueEvents,
|
|
156
156
|
syncState
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-7KMWCSJO.js";
|
|
158
158
|
import {
|
|
159
159
|
__toCommonJS,
|
|
160
160
|
init_define_RECALL_BUILD_INFO
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-MZOQHVVD.js";
|
|
162
162
|
|
|
163
163
|
// src/cli.ts
|
|
164
164
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1025,6 +1025,12 @@ function buildManagedGroups(options) {
|
|
|
1025
1025
|
hooks: [commandHook(`${commandPrefix} hook tool --agent claude-code --claude-code-stdin`, "tool")]
|
|
1026
1026
|
}
|
|
1027
1027
|
];
|
|
1028
|
+
groups.PostToolUseFailure = [
|
|
1029
|
+
{
|
|
1030
|
+
matcher: "Bash",
|
|
1031
|
+
hooks: [commandHook(`${commandPrefix} hook tool --agent claude-code --claude-code-stdin`, "tool")]
|
|
1032
|
+
}
|
|
1033
|
+
];
|
|
1028
1034
|
}
|
|
1029
1035
|
if (installedEvents.size === 0 || installedEvents.has("session_ended")) {
|
|
1030
1036
|
groups.SessionEnd = [
|
|
@@ -3583,7 +3589,7 @@ program.command("doctor").description("Show local Recall runtime, DB, embedding,
|
|
|
3583
3589
|
const finalReport = opts.fix ? getDoctorReport() : report;
|
|
3584
3590
|
const codexEntry = finalReport.agents.find((agent) => agent.agent === "codex" && agent.detected);
|
|
3585
3591
|
if (codexEntry) {
|
|
3586
|
-
const { inspectCodexTrust } = await import("./codex-trust-
|
|
3592
|
+
const { inspectCodexTrust } = await import("./codex-trust-HIFEHI7X.js");
|
|
3587
3593
|
codexEntry.hook_trust = await inspectCodexTrust();
|
|
3588
3594
|
}
|
|
3589
3595
|
if (opts.json) {
|
|
@@ -4310,7 +4316,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
4310
4316
|
});
|
|
4311
4317
|
let snapshot = null;
|
|
4312
4318
|
if (opts.snapshot) {
|
|
4313
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
4319
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-OFFU4MWY.js");
|
|
4314
4320
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
4315
4321
|
snapshot = recordQualitySnapshot(
|
|
4316
4322
|
db,
|
|
@@ -4819,15 +4825,15 @@ uiCmd.command("status").description("Show WebUI status").option("--daemon-port <
|
|
|
4819
4825
|
var graphCmd = program.command("graph").description("Inspect and rebuild the knowledge graph (entities + relations)");
|
|
4820
4826
|
graphCmd.command("stats").description("Show entity/relation counts").action(async () => {
|
|
4821
4827
|
const db = initDb();
|
|
4822
|
-
const { countEntities, countRelations } = await import("./store-
|
|
4828
|
+
const { countEntities, countRelations } = await import("./store-VEFKN5Z3.js");
|
|
4823
4829
|
console.log(`entities: ${countEntities(db)}`);
|
|
4824
4830
|
console.log(`relations: ${countRelations(db)}`);
|
|
4825
4831
|
});
|
|
4826
4832
|
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) => {
|
|
4827
4833
|
const db = initDb();
|
|
4828
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4834
|
+
const { ingestMemoryHeuristic } = await import("./ingest-7EMEMHDG.js");
|
|
4829
4835
|
if (opts.rebuild) {
|
|
4830
|
-
const { clearGraph } = await import("./store-
|
|
4836
|
+
const { clearGraph } = await import("./store-VEFKN5Z3.js");
|
|
4831
4837
|
clearGraph(db);
|
|
4832
4838
|
console.log("Cleared existing graph entities and relations.");
|
|
4833
4839
|
}
|
|
@@ -4849,7 +4855,7 @@ graphCmd.command("backfill").description("Run the heuristic extractor over every
|
|
|
4849
4855
|
});
|
|
4850
4856
|
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) => {
|
|
4851
4857
|
const db = initDb();
|
|
4852
|
-
const { listEntities } = await import("./store-
|
|
4858
|
+
const { listEntities } = await import("./store-VEFKN5Z3.js");
|
|
4853
4859
|
const rows = listEntities(db, {
|
|
4854
4860
|
repo: opts.repo,
|
|
4855
4861
|
kind: opts.kind,
|
|
@@ -4868,8 +4874,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
4868
4874
|
});
|
|
4869
4875
|
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) => {
|
|
4870
4876
|
const db = initDb();
|
|
4871
|
-
const { graphQuery } = await import("./retrieval-
|
|
4872
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
4877
|
+
const { graphQuery } = await import("./retrieval-4T7PADU2.js");
|
|
4878
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-FWNXO6GK.js");
|
|
4873
4879
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
4874
4880
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
4875
4881
|
repo: opts.repo,
|
|
@@ -4885,7 +4891,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
4885
4891
|
});
|
|
4886
4892
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
4887
4893
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
4888
|
-
const { getTaskStats } = await import("./tasks-
|
|
4894
|
+
const { getTaskStats } = await import("./tasks-XFKW2ORZ.js");
|
|
4889
4895
|
const db = initDb();
|
|
4890
4896
|
const stats = getTaskStats(db);
|
|
4891
4897
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -4911,7 +4917,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
4911
4917
|
}
|
|
4912
4918
|
});
|
|
4913
4919
|
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) => {
|
|
4914
|
-
const { listTasks } = await import("./tasks-
|
|
4920
|
+
const { listTasks } = await import("./tasks-XFKW2ORZ.js");
|
|
4915
4921
|
const db = initDb();
|
|
4916
4922
|
const tasks = listTasks(db, {
|
|
4917
4923
|
status: opts.status,
|
|
@@ -4933,7 +4939,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
4933
4939
|
}
|
|
4934
4940
|
});
|
|
4935
4941
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
4936
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
4942
|
+
const { deleteTask, listTasks } = await import("./tasks-XFKW2ORZ.js");
|
|
4937
4943
|
const db = initDb();
|
|
4938
4944
|
const all = listTasks(db, { limit: 1e4 });
|
|
4939
4945
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -4952,7 +4958,7 @@ maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)")
|
|
|
4952
4958
|
});
|
|
4953
4959
|
var credentialsCmd = maintenanceCmd.command("credentials").description("Manage LLM provider API keys in macOS Keychain (env fallback on other platforms)");
|
|
4954
4960
|
credentialsCmd.command("list", { isDefault: true }).description("Show which providers have credentials available").action(async () => {
|
|
4955
|
-
const { listCredentials } = await import("./keychain-
|
|
4961
|
+
const { listCredentials } = await import("./keychain-I76FJCZF.js");
|
|
4956
4962
|
const creds = listCredentials();
|
|
4957
4963
|
if (creds.length === 0) {
|
|
4958
4964
|
console.log("No API keys configured. Set one with:");
|
|
@@ -4966,7 +4972,7 @@ credentialsCmd.command("list", { isDefault: true }).description("Show which prov
|
|
|
4966
4972
|
}
|
|
4967
4973
|
});
|
|
4968
4974
|
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) => {
|
|
4969
|
-
const { setApiKey, setAzureConfig } = await import("./keychain-
|
|
4975
|
+
const { setApiKey, setAzureConfig } = await import("./keychain-I76FJCZF.js");
|
|
4970
4976
|
const provider = providerArg === "azure" ? "azure-openai" : providerArg;
|
|
4971
4977
|
if (provider === "openai" || provider === "anthropic") {
|
|
4972
4978
|
const key = keyArg ?? await readStdinKey();
|
|
@@ -5028,7 +5034,7 @@ credentialsCmd.command("set").description("Store credentials for an LLM provider
|
|
|
5028
5034
|
process.exit(1);
|
|
5029
5035
|
});
|
|
5030
5036
|
credentialsCmd.command("clear").description("Remove provider credentials from the macOS Keychain").argument("<provider>", "openai|anthropic|azure").action(async (providerArg) => {
|
|
5031
|
-
const { deleteApiKey: deleteApiKey2 } = await import("./keychain-
|
|
5037
|
+
const { deleteApiKey: deleteApiKey2 } = await import("./keychain-I76FJCZF.js");
|
|
5032
5038
|
const provider = providerArg === "azure" ? "azure-openai" : providerArg;
|
|
5033
5039
|
if (provider !== "openai" && provider !== "anthropic" && provider !== "azure-openai") {
|
|
5034
5040
|
console.error(`Provider must be "openai", "anthropic", or "azure", got "${providerArg}".`);
|
|
@@ -5039,8 +5045,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
5039
5045
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
5040
5046
|
});
|
|
5041
5047
|
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) => {
|
|
5042
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
5043
|
-
const { listTasks } = await import("./tasks-
|
|
5048
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-7GGQWV4W.js");
|
|
5049
|
+
const { listTasks } = await import("./tasks-XFKW2ORZ.js");
|
|
5044
5050
|
const db = initDb();
|
|
5045
5051
|
if (opts.preview) {
|
|
5046
5052
|
const pending = listTasks(db, {
|
|
@@ -5097,12 +5103,12 @@ ${p.prompt.max_output_tokens}
|
|
|
5097
5103
|
console.log(formatDispatchReport(report));
|
|
5098
5104
|
});
|
|
5099
5105
|
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) => {
|
|
5100
|
-
const { quarantineGeneratedMemories } = await import("./provenance-
|
|
5106
|
+
const { quarantineGeneratedMemories } = await import("./provenance-BGVB7HW7.js");
|
|
5101
5107
|
const ids = quarantineGeneratedMemories(initDb(), Boolean(opts.apply));
|
|
5102
5108
|
console.log(JSON.stringify({ applied: Boolean(opts.apply), count: ids.length, memory_ids: ids }, null, 2));
|
|
5103
5109
|
});
|
|
5104
5110
|
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) => {
|
|
5105
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
5111
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-Y7X3YZDW.js");
|
|
5106
5112
|
const db = initDb();
|
|
5107
5113
|
if (opts.list) {
|
|
5108
5114
|
const runs = listCleanupRuns(db);
|
|
@@ -5156,7 +5162,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
5156
5162
|
recordQualitySnapshot,
|
|
5157
5163
|
listQualitySnapshots,
|
|
5158
5164
|
diffQualitySnapshots
|
|
5159
|
-
} = await import("./quality-
|
|
5165
|
+
} = await import("./quality-OFFU4MWY.js");
|
|
5160
5166
|
const db = initDb();
|
|
5161
5167
|
if (opts.history) {
|
|
5162
5168
|
const snaps = listQualitySnapshots(db);
|
|
@@ -5217,7 +5223,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5217
5223
|
const {
|
|
5218
5224
|
backfillMemoryValueEvents,
|
|
5219
5225
|
formatMemoryValueBackfillReport
|
|
5220
|
-
} = await import("./memory-value-
|
|
5226
|
+
} = await import("./memory-value-VOWGTLBV.js");
|
|
5221
5227
|
const db = initDb();
|
|
5222
5228
|
const report = backfillMemoryValueEvents(db, {
|
|
5223
5229
|
sinceIso: opts.since,
|
|
@@ -5230,7 +5236,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5230
5236
|
console.log(formatMemoryValueBackfillReport(report));
|
|
5231
5237
|
});
|
|
5232
5238
|
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) => {
|
|
5233
|
-
const { summarizeUsage, formatUsageReport } = await import("./usage-
|
|
5239
|
+
const { summarizeUsage, formatUsageReport } = await import("./usage-T6KFTDZW.js");
|
|
5234
5240
|
const db = initDb();
|
|
5235
5241
|
const summary = summarizeUsage(db, {
|
|
5236
5242
|
sinceIso: opts.since,
|