@edihasaj/recall 2.0.17 → 2.0.19
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 +12 -0
- package/dist/{chunk-VUVFQJWZ.js → chunk-3SI2FCYS.js} +2 -2
- package/dist/{chunk-Q22B7YDQ.js → chunk-5VIPRV3V.js} +5 -5
- package/dist/{chunk-22AJZ7UQ.js → chunk-673NQIZX.js} +2 -2
- package/dist/{chunk-UDLRBKC3.js → chunk-6B7YHOGI.js} +3 -3
- package/dist/{chunk-YIVOTIDF.js → chunk-FH2XQDYL.js} +5 -5
- package/dist/{chunk-KLERXJ47.js → chunk-GENJNVHG.js} +3 -3
- package/dist/{chunk-2COJXGP4.js → chunk-GTHCX5LX.js} +4 -3
- package/dist/{chunk-2COJXGP4.js.map → chunk-GTHCX5LX.js.map} +1 -1
- package/dist/{chunk-EY6HIDG2.js → chunk-J4IWU2BE.js} +9 -9
- package/dist/{chunk-Q7254IPO.js → chunk-J6YBL72P.js} +193 -15
- package/dist/chunk-J6YBL72P.js.map +1 -0
- package/dist/{chunk-YIUBD27J.js → chunk-M4JG3HMA.js} +30 -37
- package/dist/chunk-M4JG3HMA.js.map +1 -0
- package/dist/{chunk-CSBXI3ET.js → chunk-NSXTH2B4.js} +8 -4
- package/dist/chunk-NSXTH2B4.js.map +1 -0
- package/dist/{chunk-ZT67CYDS.js → chunk-QDCIXULL.js} +2 -2
- package/dist/{chunk-ZT67CYDS.js.map → chunk-QDCIXULL.js.map} +1 -1
- package/dist/{chunk-FNIIUNW6.js → chunk-QDONEJJG.js} +2 -2
- package/dist/{chunk-QQ6YHR7I.js → chunk-R5CG3RC4.js} +231 -26
- package/dist/chunk-R5CG3RC4.js.map +1 -0
- package/dist/{chunk-KVZN35JF.js → chunk-WDUYM3NZ.js} +7 -7
- package/dist/{chunk-RAQT2OBR.js → chunk-WPHCCQOC.js} +7 -7
- package/dist/{chunk-GK7OWVRQ.js → chunk-X3EF5QHV.js} +3 -3
- package/dist/{chunk-XRKUJ5B4.js → chunk-ZHJRYVOD.js} +2 -2
- package/dist/{cleanup-4TXIHTJT.js → cleanup-FOGHMRL5.js} +11 -11
- package/dist/cli.js +39 -191
- package/dist/cli.js.map +1 -1
- package/dist/{codex-trust-2JIY66CP.js → codex-trust-C2GOV764.js} +4 -4
- package/dist/daemon.js +143 -39
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-OIINFHQU.js +22 -0
- package/dist/{embeddings-AAS7NKGB.js → embeddings-6Y7KXV5L.js} +5 -5
- package/dist/ingest-QFX3ZEM6.js +20 -0
- package/dist/{keychain-SHRO7W6J.js → keychain-DHS6XKIQ.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-R2C7ZSDF.js → memory-value-U6TGLBZB.js} +11 -11
- package/dist/{provenance-I5GIAP7N.js → provenance-PLISLH2V.js} +9 -9
- package/dist/quality-AYWNSDIU.js +25 -0
- package/dist/retrieval-B2DYBYAJ.js +15 -0
- package/dist/{store-X2B6MRBH.js → store-OLSM63EZ.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-H4NIS6QO.js → tasks-S5ZMXA5K.js} +11 -11
- package/dist/{usage-35HSDMNT.js → usage-RWS6VQBY.js} +4 -4
- package/package.json +1 -1
- package/vendor/recall-cloud-sync/PROVENANCE.md +18 -5
- package/vendor/recall-cloud-sync/recall-sync-local.mjs +19 -10
- package/vendor/recall-cloud-sync/recall-sync.mjs +40 -6
- package/dist/chunk-CSBXI3ET.js.map +0 -1
- package/dist/chunk-Q7254IPO.js.map +0 -1
- package/dist/chunk-QQ6YHR7I.js.map +0 -1
- package/dist/chunk-YIUBD27J.js.map +0 -1
- package/dist/dispatcher-O6NGADCQ.js +0 -22
- package/dist/ingest-DW3AG4M5.js +0 -20
- package/dist/quality-32MAXPNJ.js +0 -25
- package/dist/retrieval-RKYWWNWC.js +0 -15
- /package/dist/{chunk-VUVFQJWZ.js.map → chunk-3SI2FCYS.js.map} +0 -0
- /package/dist/{chunk-Q22B7YDQ.js.map → chunk-5VIPRV3V.js.map} +0 -0
- /package/dist/{chunk-22AJZ7UQ.js.map → chunk-673NQIZX.js.map} +0 -0
- /package/dist/{chunk-UDLRBKC3.js.map → chunk-6B7YHOGI.js.map} +0 -0
- /package/dist/{chunk-YIVOTIDF.js.map → chunk-FH2XQDYL.js.map} +0 -0
- /package/dist/{chunk-KLERXJ47.js.map → chunk-GENJNVHG.js.map} +0 -0
- /package/dist/{chunk-EY6HIDG2.js.map → chunk-J4IWU2BE.js.map} +0 -0
- /package/dist/{chunk-FNIIUNW6.js.map → chunk-QDONEJJG.js.map} +0 -0
- /package/dist/{chunk-KVZN35JF.js.map → chunk-WDUYM3NZ.js.map} +0 -0
- /package/dist/{chunk-RAQT2OBR.js.map → chunk-WPHCCQOC.js.map} +0 -0
- /package/dist/{chunk-GK7OWVRQ.js.map → chunk-X3EF5QHV.js.map} +0 -0
- /package/dist/{chunk-XRKUJ5B4.js.map → chunk-ZHJRYVOD.js.map} +0 -0
- /package/dist/{cleanup-4TXIHTJT.js.map → cleanup-FOGHMRL5.js.map} +0 -0
- /package/dist/{codex-trust-2JIY66CP.js.map → codex-trust-C2GOV764.js.map} +0 -0
- /package/dist/{dispatcher-O6NGADCQ.js.map → dispatcher-OIINFHQU.js.map} +0 -0
- /package/dist/{embeddings-AAS7NKGB.js.map → embeddings-6Y7KXV5L.js.map} +0 -0
- /package/dist/{ingest-DW3AG4M5.js.map → ingest-QFX3ZEM6.js.map} +0 -0
- /package/dist/{keychain-SHRO7W6J.js.map → keychain-DHS6XKIQ.js.map} +0 -0
- /package/dist/{memory-value-R2C7ZSDF.js.map → memory-value-U6TGLBZB.js.map} +0 -0
- /package/dist/{provenance-I5GIAP7N.js.map → provenance-PLISLH2V.js.map} +0 -0
- /package/dist/{quality-32MAXPNJ.js.map → quality-AYWNSDIU.js.map} +0 -0
- /package/dist/{retrieval-RKYWWNWC.js.map → retrieval-B2DYBYAJ.js.map} +0 -0
- /package/dist/{store-X2B6MRBH.js.map → store-OLSM63EZ.js.map} +0 -0
- /package/dist/{tasks-H4NIS6QO.js.map → tasks-S5ZMXA5K.js.map} +0 -0
- /package/dist/{usage-35HSDMNT.js.map → usage-RWS6VQBY.js.map} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
desc
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6B7YHOGI.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOwn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3SI2FCYS.js";
|
|
7
7
|
import {
|
|
8
8
|
CONFIDENCE,
|
|
9
9
|
PROMOTION,
|
|
10
10
|
normalizeNote,
|
|
11
11
|
queueMemoryEmbeddingSync,
|
|
12
12
|
rowToMemory
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NSXTH2B4.js";
|
|
14
14
|
import {
|
|
15
15
|
isPlausibleEntityName,
|
|
16
16
|
linkMemoryToEntity,
|
|
17
17
|
upsertEntity,
|
|
18
18
|
upsertRelation
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GENJNVHG.js";
|
|
20
20
|
import {
|
|
21
21
|
and,
|
|
22
22
|
auditTrail,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
like,
|
|
28
28
|
memories,
|
|
29
29
|
sql
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GTHCX5LX.js";
|
|
31
31
|
import {
|
|
32
32
|
init_define_RECALL_BUILD_INFO
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-QDCIXULL.js";
|
|
34
34
|
|
|
35
35
|
// src/graph/ingest.ts
|
|
36
36
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1072,4 +1072,4 @@ export {
|
|
|
1072
1072
|
rollbackMemory,
|
|
1073
1073
|
formatAuditTrail
|
|
1074
1074
|
};
|
|
1075
|
-
//# sourceMappingURL=chunk-
|
|
1075
|
+
//# sourceMappingURL=chunk-WDUYM3NZ.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
textMatchScore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZHJRYVOD.js";
|
|
4
4
|
import {
|
|
5
5
|
getMemory,
|
|
6
6
|
promoteMemory,
|
|
7
7
|
queryMemories
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WDUYM3NZ.js";
|
|
9
9
|
import {
|
|
10
10
|
asc,
|
|
11
11
|
desc
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6B7YHOGI.js";
|
|
13
13
|
import {
|
|
14
14
|
cosineSimilarity,
|
|
15
15
|
generateEmbedding,
|
|
16
16
|
loadEmbedding,
|
|
17
17
|
loadEmbeddingConfigFromEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NSXTH2B4.js";
|
|
19
19
|
import {
|
|
20
20
|
and,
|
|
21
21
|
eq,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
memoryInjections,
|
|
27
27
|
memoryValueEvents,
|
|
28
28
|
sql
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GTHCX5LX.js";
|
|
30
30
|
import {
|
|
31
31
|
init_define_RECALL_BUILD_INFO
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QDCIXULL.js";
|
|
33
33
|
|
|
34
34
|
// src/models/memory-value.ts
|
|
35
35
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -617,4 +617,4 @@ export {
|
|
|
617
617
|
detectAndRecordRetrievalMissesSemantic,
|
|
618
618
|
computeMemoryValueReport
|
|
619
619
|
};
|
|
620
|
-
//# sourceMappingURL=chunk-
|
|
620
|
+
//# sourceMappingURL=chunk-WPHCCQOC.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineOwn,
|
|
3
3
|
deleteOwn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3SI2FCYS.js";
|
|
5
5
|
import {
|
|
6
6
|
init_define_RECALL_BUILD_INFO
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QDCIXULL.js";
|
|
8
8
|
|
|
9
9
|
// src/agents/codex.ts
|
|
10
10
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -591,4 +591,4 @@ export {
|
|
|
591
591
|
installCodexHooks,
|
|
592
592
|
uninstallCodexHooks
|
|
593
593
|
};
|
|
594
|
-
//# sourceMappingURL=chunk-
|
|
594
|
+
//# sourceMappingURL=chunk-X3EF5QHV.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_define_RECALL_BUILD_INFO
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QDCIXULL.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-ZHJRYVOD.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-R5CG3RC4.js";
|
|
17
|
+
import "./chunk-ZHJRYVOD.js";
|
|
18
|
+
import "./chunk-WDUYM3NZ.js";
|
|
19
|
+
import "./chunk-6B7YHOGI.js";
|
|
20
|
+
import "./chunk-3SI2FCYS.js";
|
|
21
|
+
import "./chunk-NSXTH2B4.js";
|
|
22
|
+
import "./chunk-QDONEJJG.js";
|
|
23
|
+
import "./chunk-GENJNVHG.js";
|
|
24
|
+
import "./chunk-GTHCX5LX.js";
|
|
25
|
+
import "./chunk-QDCIXULL.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-FOGHMRL5.js.map
|
package/dist/cli.js
CHANGED
|
@@ -55,14 +55,14 @@ import {
|
|
|
55
55
|
unregisterStrayApps,
|
|
56
56
|
verifyBackupIntegrity,
|
|
57
57
|
writeRepoContextArtifact
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-M4JG3HMA.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-X3EF5QHV.js";
|
|
66
66
|
import {
|
|
67
67
|
closeDb,
|
|
68
68
|
cloudQueryStatus,
|
|
@@ -70,7 +70,6 @@ import {
|
|
|
70
70
|
compileContextHybrid,
|
|
71
71
|
computeMetrics,
|
|
72
72
|
createActivityEvent,
|
|
73
|
-
createLoopCoverageCache,
|
|
74
73
|
createPolicy,
|
|
75
74
|
deletePolicy,
|
|
76
75
|
discoverLocalRepos,
|
|
@@ -78,6 +77,7 @@ import {
|
|
|
78
77
|
evaluatePolicy,
|
|
79
78
|
formatMetricsReport,
|
|
80
79
|
formatPruneReport,
|
|
80
|
+
formatRestoreReport,
|
|
81
81
|
formatRetrievalEvalReport,
|
|
82
82
|
formatValueRetrievalEvalReport,
|
|
83
83
|
getDbPath,
|
|
@@ -90,14 +90,13 @@ import {
|
|
|
90
90
|
listHistorySnippets,
|
|
91
91
|
listPendingApprovals,
|
|
92
92
|
listPolicies,
|
|
93
|
-
loadInjectedMemoryIds,
|
|
94
93
|
loadRetrievalEvalFile,
|
|
95
|
-
loopRepoForMemory,
|
|
96
94
|
pruneMemories,
|
|
97
95
|
recordSignal,
|
|
98
96
|
requestApproval,
|
|
99
97
|
resetDb,
|
|
100
98
|
resolveApproval,
|
|
99
|
+
restoreUnmeasuredCandidates,
|
|
101
100
|
runRetrievalEval,
|
|
102
101
|
runValueRetrievalEval,
|
|
103
102
|
scanAndStore,
|
|
@@ -108,7 +107,7 @@ import {
|
|
|
108
107
|
startEvalSession,
|
|
109
108
|
summarizeValueRetrievalEval,
|
|
110
109
|
togglePolicy
|
|
111
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-J6YBL72P.js";
|
|
112
111
|
import {
|
|
113
112
|
autoResolveContradictions,
|
|
114
113
|
computeAllHealthScores,
|
|
@@ -117,16 +116,14 @@ import {
|
|
|
117
116
|
formatHealthReport,
|
|
118
117
|
getRepoQualityProfile,
|
|
119
118
|
inferScope,
|
|
120
|
-
isHighRiskRule,
|
|
121
|
-
isNonUserCaptureContext,
|
|
122
119
|
listContradictions,
|
|
123
120
|
processCorrection,
|
|
124
121
|
processReviewFeedback,
|
|
125
122
|
resolveContradiction
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
129
|
-
import "./chunk-
|
|
123
|
+
} from "./chunk-R5CG3RC4.js";
|
|
124
|
+
import "./chunk-WPHCCQOC.js";
|
|
125
|
+
import "./chunk-ZHJRYVOD.js";
|
|
126
|
+
import "./chunk-673NQIZX.js";
|
|
130
127
|
import {
|
|
131
128
|
confirmMemory,
|
|
132
129
|
createMemory,
|
|
@@ -134,21 +131,16 @@ import {
|
|
|
134
131
|
getAuditTrail,
|
|
135
132
|
getMemory,
|
|
136
133
|
getRecentAudit,
|
|
137
|
-
hasNonDurableProvenance,
|
|
138
134
|
listMemories,
|
|
139
135
|
listRepos,
|
|
140
136
|
queryMemories,
|
|
141
137
|
recordAudit,
|
|
142
|
-
recordAuditWithSnapshot,
|
|
143
138
|
rejectMemory,
|
|
144
139
|
rollbackMemory
|
|
145
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-WDUYM3NZ.js";
|
|
141
|
+
import "./chunk-6B7YHOGI.js";
|
|
142
|
+
import "./chunk-3SI2FCYS.js";
|
|
146
143
|
import {
|
|
147
|
-
desc
|
|
148
|
-
} from "./chunk-UDLRBKC3.js";
|
|
149
|
-
import "./chunk-VUVFQJWZ.js";
|
|
150
|
-
import {
|
|
151
|
-
CONFIDENCE,
|
|
152
144
|
bootstrapEmbeddings,
|
|
153
145
|
ensureEmbeddingProviderReady,
|
|
154
146
|
flushEmbeddingJobs,
|
|
@@ -161,27 +153,25 @@ import {
|
|
|
161
153
|
semanticSearch,
|
|
162
154
|
upsertMemoryFtsRow,
|
|
163
155
|
verifyEmbeddings
|
|
164
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-NSXTH2B4.js";
|
|
165
157
|
import {
|
|
166
158
|
deleteApiKey,
|
|
167
159
|
hasKeychainApiKey,
|
|
168
160
|
init_keychain,
|
|
169
161
|
init_outbound_url,
|
|
170
162
|
normalizeSyncRemoteUrl
|
|
171
|
-
} from "./chunk-
|
|
172
|
-
import "./chunk-
|
|
163
|
+
} from "./chunk-QDONEJJG.js";
|
|
164
|
+
import "./chunk-GENJNVHG.js";
|
|
173
165
|
import {
|
|
174
166
|
and,
|
|
175
|
-
auditTrail,
|
|
176
167
|
eq,
|
|
177
168
|
gt,
|
|
178
169
|
memories,
|
|
179
|
-
sql,
|
|
180
170
|
syncState
|
|
181
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-GTHCX5LX.js";
|
|
182
172
|
import {
|
|
183
173
|
init_define_RECALL_BUILD_INFO
|
|
184
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-QDCIXULL.js";
|
|
185
175
|
|
|
186
176
|
// src/cli.ts
|
|
187
177
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1098,148 +1088,6 @@ async function joinTeam(config, teamId) {
|
|
|
1098
1088
|
if (!resp.ok) throw new Error(`Failed to join team: ${resp.statusText}`);
|
|
1099
1089
|
}
|
|
1100
1090
|
|
|
1101
|
-
// src/pruning/restore.ts
|
|
1102
|
-
init_define_RECALL_BUILD_INFO();
|
|
1103
|
-
var DAY_MS = 864e5;
|
|
1104
|
-
var CONFIDENCE_EPSILON = 1e-9;
|
|
1105
|
-
var RESTORE_ACTOR = "auto-pruner";
|
|
1106
|
-
var RESTORE_REASON_PREFIX = "Restored to auto-injection: demoted while the injection loop was inactive";
|
|
1107
|
-
function isRiskyToRestore(memory) {
|
|
1108
|
-
if (isHighRiskRule(memory.text) || isNonUserCaptureContext(memory.text) || hasNonDurableProvenance(memory)) return true;
|
|
1109
|
-
const contexts = memory.evidence.filter((entry) => entry.type === "session_correction" || entry.type === "review_feedback").map((entry) => entry.context?.trim()).filter((context) => Boolean(context));
|
|
1110
|
-
return contexts.length > 0 && contexts.every(isNonUserCaptureContext);
|
|
1111
|
-
}
|
|
1112
|
-
function prunerArchivalAt(db, memory) {
|
|
1113
|
-
const latest = db.select().from(auditTrail).where(eq(auditTrail.memory_id, memory.id)).orderBy(desc(auditTrail.timestamp), sql`rowid DESC`).limit(1).get();
|
|
1114
|
-
if (!latest || latest.action !== "demoted" || latest.actor !== RESTORE_ACTOR || !/^Archived (?:unconfirmed candidate after \d+(?:\.\d+)?d without selection or repetition|from auto-injection: no activity since )/.test(latest.reason ?? "") || !latest.after_snapshot) return null;
|
|
1115
|
-
try {
|
|
1116
|
-
const after = JSON.parse(latest.after_snapshot);
|
|
1117
|
-
if (!after || typeof after !== "object" || Array.isArray(after)) return null;
|
|
1118
|
-
const fields = [
|
|
1119
|
-
"id",
|
|
1120
|
-
"type",
|
|
1121
|
-
"text",
|
|
1122
|
-
"scope",
|
|
1123
|
-
"repo",
|
|
1124
|
-
"path_scope",
|
|
1125
|
-
"status",
|
|
1126
|
-
"confidence",
|
|
1127
|
-
"source",
|
|
1128
|
-
"created_at",
|
|
1129
|
-
"updated_at",
|
|
1130
|
-
"last_validated_at",
|
|
1131
|
-
"last_injected_at",
|
|
1132
|
-
"injection_count",
|
|
1133
|
-
"override_count",
|
|
1134
|
-
"repetition_count",
|
|
1135
|
-
"auto_inject",
|
|
1136
|
-
"evidence",
|
|
1137
|
-
"capture_context",
|
|
1138
|
-
"supersedes"
|
|
1139
|
-
];
|
|
1140
|
-
if (fields.some(
|
|
1141
|
-
(field) => JSON.stringify(after[field]) !== JSON.stringify(memory[field])
|
|
1142
|
-
) || (after.note ?? null) !== (memory.note ?? null)) return null;
|
|
1143
|
-
if (latest.before_snapshot) {
|
|
1144
|
-
const before = JSON.parse(latest.before_snapshot);
|
|
1145
|
-
if (!before || before.auto_inject !== true) return null;
|
|
1146
|
-
}
|
|
1147
|
-
return typeof after.updated_at === "string" && Number.isFinite(Date.parse(after.updated_at)) ? after.updated_at : null;
|
|
1148
|
-
} catch {
|
|
1149
|
-
return null;
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
function restoreUnmeasuredCandidates(db, options = {}) {
|
|
1153
|
-
const minConfidence = options.minConfidence ?? CONFIDENCE.ACTIVE_MIN;
|
|
1154
|
-
const lookbackDays = options.lookbackDays ?? 30;
|
|
1155
|
-
const dryRun = options.dryRun ?? false;
|
|
1156
|
-
if (!Number.isFinite(minConfidence) || minConfidence < 0 || minConfidence > 1) {
|
|
1157
|
-
throw new RangeError("minConfidence must be a number between 0 and 1");
|
|
1158
|
-
}
|
|
1159
|
-
if (!Number.isFinite(lookbackDays) || lookbackDays <= 0) {
|
|
1160
|
-
throw new RangeError("lookbackDays must be a positive number");
|
|
1161
|
-
}
|
|
1162
|
-
const now = options.now ?? Date.now();
|
|
1163
|
-
const nowIso = new Date(now).toISOString();
|
|
1164
|
-
const sinceIso = new Date(now - lookbackDays * DAY_MS).toISOString();
|
|
1165
|
-
const loopCovered = createLoopCoverageCache(db);
|
|
1166
|
-
const result = {
|
|
1167
|
-
restored: [],
|
|
1168
|
-
skipped_below_gate: 0,
|
|
1169
|
-
skipped_loop_active: 0,
|
|
1170
|
-
skipped_risky: 0,
|
|
1171
|
-
skipped_not_pruner_archived: 0,
|
|
1172
|
-
min_confidence: minConfidence,
|
|
1173
|
-
lookback_days: lookbackDays,
|
|
1174
|
-
dry_run: dryRun
|
|
1175
|
-
};
|
|
1176
|
-
const restore = () => {
|
|
1177
|
-
const selected = loadInjectedMemoryIds(db);
|
|
1178
|
-
const archived = queryMemories(db, {
|
|
1179
|
-
repo: options.repo,
|
|
1180
|
-
status: "candidate",
|
|
1181
|
-
auto_inject: false
|
|
1182
|
-
}).filter((memory) => memory.injection_count === 0 && !selected.has(memory.id));
|
|
1183
|
-
for (const before of archived) {
|
|
1184
|
-
if (before.confidence + CONFIDENCE_EPSILON < minConfidence) {
|
|
1185
|
-
result.skipped_below_gate++;
|
|
1186
|
-
continue;
|
|
1187
|
-
}
|
|
1188
|
-
if (isRiskyToRestore(before)) {
|
|
1189
|
-
result.skipped_risky++;
|
|
1190
|
-
continue;
|
|
1191
|
-
}
|
|
1192
|
-
const archivedAt = prunerArchivalAt(db, before);
|
|
1193
|
-
if (!archivedAt) {
|
|
1194
|
-
result.skipped_not_pruner_archived++;
|
|
1195
|
-
continue;
|
|
1196
|
-
}
|
|
1197
|
-
const archiveWindowStart = new Date(Date.parse(archivedAt) - lookbackDays * DAY_MS).toISOString();
|
|
1198
|
-
const repo = loopRepoForMemory(before);
|
|
1199
|
-
if (loopCovered(repo, archiveWindowStart, archivedAt) || loopCovered(repo, sinceIso, nowIso)) {
|
|
1200
|
-
result.skipped_loop_active++;
|
|
1201
|
-
continue;
|
|
1202
|
-
}
|
|
1203
|
-
result.restored.push(before.id);
|
|
1204
|
-
if (dryRun) continue;
|
|
1205
|
-
db.update(memories).set({ auto_inject: true, updated_at: nowIso }).where(eq(memories.id, before.id)).run();
|
|
1206
|
-
const reason = `${RESTORE_REASON_PREFIX} (no injection coverage in ${lookbackDays}d; archival ${archivedAt})`;
|
|
1207
|
-
recordAuditWithSnapshot(
|
|
1208
|
-
db,
|
|
1209
|
-
before.id,
|
|
1210
|
-
"policy_applied",
|
|
1211
|
-
RESTORE_ACTOR,
|
|
1212
|
-
reason,
|
|
1213
|
-
before,
|
|
1214
|
-
getMemory(db, before.id) ?? null
|
|
1215
|
-
);
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
|
-
const transaction = db.$client.transaction(restore);
|
|
1219
|
-
if (dryRun) transaction();
|
|
1220
|
-
else transaction.immediate();
|
|
1221
|
-
return result;
|
|
1222
|
-
}
|
|
1223
|
-
function formatRestoreReport(result) {
|
|
1224
|
-
const prefix = result.dry_run ? "[DRY RUN] " : "";
|
|
1225
|
-
const lines = [
|
|
1226
|
-
`${prefix}Restore Unmeasured Candidates`,
|
|
1227
|
-
``,
|
|
1228
|
-
`Gate: confidence >= ${result.min_confidence.toFixed(2)}, loop window ${result.lookback_days}d`,
|
|
1229
|
-
`${result.dry_run ? "Would restore" : "Restored"}: ${result.restored.length}`,
|
|
1230
|
-
`Below gate: ${result.skipped_below_gate}`,
|
|
1231
|
-
`Loop active: ${result.skipped_loop_active}`,
|
|
1232
|
-
`Risky (confirm): ${result.skipped_risky}`,
|
|
1233
|
-
`No pruner proof: ${result.skipped_not_pruner_archived}`
|
|
1234
|
-
];
|
|
1235
|
-
if (result.restored.length > 0) {
|
|
1236
|
-
lines.push("", result.dry_run ? "Would restore:" : "Restored:");
|
|
1237
|
-
for (const id of result.restored.slice(0, 10)) lines.push(` ${id.slice(0, 8)}`);
|
|
1238
|
-
if (result.restored.length > 10) lines.push(` ... and ${result.restored.length - 10} more`);
|
|
1239
|
-
}
|
|
1240
|
-
return lines.join("\n");
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
1091
|
// src/reliability/canary.ts
|
|
1244
1092
|
init_define_RECALL_BUILD_INFO();
|
|
1245
1093
|
import { mkdtempSync, rmSync } from "fs";
|
|
@@ -2055,7 +1903,7 @@ program.command("doctor").description("Show local Recall runtime, DB, embedding,
|
|
|
2055
1903
|
const finalReport = opts.fix ? getDoctorReport() : report;
|
|
2056
1904
|
const codexEntry = finalReport.agents.find((agent) => agent.agent === "codex" && agent.detected);
|
|
2057
1905
|
if (codexEntry) {
|
|
2058
|
-
const { inspectCodexTrust } = await import("./codex-trust-
|
|
1906
|
+
const { inspectCodexTrust } = await import("./codex-trust-C2GOV764.js");
|
|
2059
1907
|
codexEntry.hook_trust = await inspectCodexTrust();
|
|
2060
1908
|
}
|
|
2061
1909
|
if (opts.json) {
|
|
@@ -2784,7 +2632,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
2784
2632
|
});
|
|
2785
2633
|
let snapshot = null;
|
|
2786
2634
|
if (opts.snapshot) {
|
|
2787
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
2635
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-AYWNSDIU.js");
|
|
2788
2636
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
2789
2637
|
snapshot = recordQualitySnapshot(
|
|
2790
2638
|
db,
|
|
@@ -3313,15 +3161,15 @@ uiCmd.command("status").description("Show WebUI status").option("--daemon-port <
|
|
|
3313
3161
|
var graphCmd = program.command("graph").description("Inspect and rebuild the knowledge graph (entities + relations)");
|
|
3314
3162
|
graphCmd.command("stats").description("Show entity/relation counts").action(async () => {
|
|
3315
3163
|
const db = initDb();
|
|
3316
|
-
const { countEntities, countRelations } = await import("./store-
|
|
3164
|
+
const { countEntities, countRelations } = await import("./store-OLSM63EZ.js");
|
|
3317
3165
|
console.log(`entities: ${countEntities(db)}`);
|
|
3318
3166
|
console.log(`relations: ${countRelations(db)}`);
|
|
3319
3167
|
});
|
|
3320
3168
|
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) => {
|
|
3321
3169
|
const db = initDb();
|
|
3322
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
3170
|
+
const { ingestMemoryHeuristic } = await import("./ingest-QFX3ZEM6.js");
|
|
3323
3171
|
if (opts.rebuild) {
|
|
3324
|
-
const { clearGraph } = await import("./store-
|
|
3172
|
+
const { clearGraph } = await import("./store-OLSM63EZ.js");
|
|
3325
3173
|
clearGraph(db);
|
|
3326
3174
|
console.log("Cleared existing graph entities and relations.");
|
|
3327
3175
|
}
|
|
@@ -3343,7 +3191,7 @@ graphCmd.command("backfill").description("Run the heuristic extractor over every
|
|
|
3343
3191
|
});
|
|
3344
3192
|
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) => {
|
|
3345
3193
|
const db = initDb();
|
|
3346
|
-
const { listEntities } = await import("./store-
|
|
3194
|
+
const { listEntities } = await import("./store-OLSM63EZ.js");
|
|
3347
3195
|
const rows = listEntities(db, {
|
|
3348
3196
|
repo: opts.repo,
|
|
3349
3197
|
kind: opts.kind,
|
|
@@ -3362,8 +3210,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
3362
3210
|
});
|
|
3363
3211
|
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) => {
|
|
3364
3212
|
const db = initDb();
|
|
3365
|
-
const { graphQuery } = await import("./retrieval-
|
|
3366
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
3213
|
+
const { graphQuery } = await import("./retrieval-B2DYBYAJ.js");
|
|
3214
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-6Y7KXV5L.js");
|
|
3367
3215
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
3368
3216
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
3369
3217
|
repo: opts.repo,
|
|
@@ -3379,7 +3227,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
3379
3227
|
});
|
|
3380
3228
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
3381
3229
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
3382
|
-
const { getTaskStats } = await import("./tasks-
|
|
3230
|
+
const { getTaskStats } = await import("./tasks-S5ZMXA5K.js");
|
|
3383
3231
|
const db = initDb();
|
|
3384
3232
|
const stats = getTaskStats(db);
|
|
3385
3233
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -3405,7 +3253,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
3405
3253
|
}
|
|
3406
3254
|
});
|
|
3407
3255
|
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) => {
|
|
3408
|
-
const { listTasks } = await import("./tasks-
|
|
3256
|
+
const { listTasks } = await import("./tasks-S5ZMXA5K.js");
|
|
3409
3257
|
const db = initDb();
|
|
3410
3258
|
const tasks = listTasks(db, {
|
|
3411
3259
|
status: opts.status,
|
|
@@ -3427,7 +3275,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
3427
3275
|
}
|
|
3428
3276
|
});
|
|
3429
3277
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
3430
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
3278
|
+
const { deleteTask, listTasks } = await import("./tasks-S5ZMXA5K.js");
|
|
3431
3279
|
const db = initDb();
|
|
3432
3280
|
const all = listTasks(db, { limit: 1e4 });
|
|
3433
3281
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -3446,7 +3294,7 @@ maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)")
|
|
|
3446
3294
|
});
|
|
3447
3295
|
var credentialsCmd = maintenanceCmd.command("credentials").description("Manage LLM provider API keys in macOS Keychain (env fallback on other platforms)");
|
|
3448
3296
|
credentialsCmd.command("list", { isDefault: true }).description("Show which providers have credentials available").action(async () => {
|
|
3449
|
-
const { listCredentials } = await import("./keychain-
|
|
3297
|
+
const { listCredentials } = await import("./keychain-DHS6XKIQ.js");
|
|
3450
3298
|
const creds = listCredentials();
|
|
3451
3299
|
if (creds.length === 0) {
|
|
3452
3300
|
console.log("No API keys configured. Set one with:");
|
|
@@ -3460,7 +3308,7 @@ credentialsCmd.command("list", { isDefault: true }).description("Show which prov
|
|
|
3460
3308
|
}
|
|
3461
3309
|
});
|
|
3462
3310
|
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) => {
|
|
3463
|
-
const { setApiKey, setAzureConfig } = await import("./keychain-
|
|
3311
|
+
const { setApiKey, setAzureConfig } = await import("./keychain-DHS6XKIQ.js");
|
|
3464
3312
|
const provider = providerArg === "azure" ? "azure-openai" : providerArg;
|
|
3465
3313
|
if (provider === "openai" || provider === "anthropic") {
|
|
3466
3314
|
const key = keyArg ?? await readStdinKey();
|
|
@@ -3522,7 +3370,7 @@ credentialsCmd.command("set").description("Store credentials for an LLM provider
|
|
|
3522
3370
|
process.exit(1);
|
|
3523
3371
|
});
|
|
3524
3372
|
credentialsCmd.command("clear").description("Remove provider credentials from the macOS Keychain").argument("<provider>", "openai|anthropic|azure").action(async (providerArg) => {
|
|
3525
|
-
const { deleteApiKey: deleteApiKey2 } = await import("./keychain-
|
|
3373
|
+
const { deleteApiKey: deleteApiKey2 } = await import("./keychain-DHS6XKIQ.js");
|
|
3526
3374
|
const provider = providerArg === "azure" ? "azure-openai" : providerArg;
|
|
3527
3375
|
if (provider !== "openai" && provider !== "anthropic" && provider !== "azure-openai") {
|
|
3528
3376
|
console.error(`Provider must be "openai", "anthropic", or "azure", got "${providerArg}".`);
|
|
@@ -3533,8 +3381,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
3533
3381
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
3534
3382
|
});
|
|
3535
3383
|
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) => {
|
|
3536
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
3537
|
-
const { listTasks } = await import("./tasks-
|
|
3384
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-OIINFHQU.js");
|
|
3385
|
+
const { listTasks } = await import("./tasks-S5ZMXA5K.js");
|
|
3538
3386
|
const db = initDb();
|
|
3539
3387
|
if (opts.preview) {
|
|
3540
3388
|
const pending = listTasks(db, {
|
|
@@ -3591,12 +3439,12 @@ ${p.prompt.max_output_tokens}
|
|
|
3591
3439
|
console.log(formatDispatchReport(report));
|
|
3592
3440
|
});
|
|
3593
3441
|
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) => {
|
|
3594
|
-
const { quarantineGeneratedMemories } = await import("./provenance-
|
|
3442
|
+
const { quarantineGeneratedMemories } = await import("./provenance-PLISLH2V.js");
|
|
3595
3443
|
const ids = quarantineGeneratedMemories(initDb(), Boolean(opts.apply));
|
|
3596
3444
|
console.log(JSON.stringify({ applied: Boolean(opts.apply), count: ids.length, memory_ids: ids }, null, 2));
|
|
3597
3445
|
});
|
|
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) => {
|
|
3599
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
3446
|
+
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|reject_agent_authored").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) => {
|
|
3447
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-FOGHMRL5.js");
|
|
3600
3448
|
const db = initDb();
|
|
3601
3449
|
if (opts.list) {
|
|
3602
3450
|
const runs = listCleanupRuns(db);
|
|
@@ -3650,7 +3498,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
3650
3498
|
recordQualitySnapshot,
|
|
3651
3499
|
listQualitySnapshots,
|
|
3652
3500
|
diffQualitySnapshots
|
|
3653
|
-
} = await import("./quality-
|
|
3501
|
+
} = await import("./quality-AYWNSDIU.js");
|
|
3654
3502
|
const db = initDb();
|
|
3655
3503
|
if (opts.history) {
|
|
3656
3504
|
const snaps = listQualitySnapshots(db);
|
|
@@ -3711,7 +3559,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
3711
3559
|
const {
|
|
3712
3560
|
backfillMemoryValueEvents,
|
|
3713
3561
|
formatMemoryValueBackfillReport
|
|
3714
|
-
} = await import("./memory-value-
|
|
3562
|
+
} = await import("./memory-value-U6TGLBZB.js");
|
|
3715
3563
|
const db = initDb();
|
|
3716
3564
|
const report = backfillMemoryValueEvents(db, {
|
|
3717
3565
|
sinceIso: opts.since,
|
|
@@ -3724,7 +3572,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
3724
3572
|
console.log(formatMemoryValueBackfillReport(report));
|
|
3725
3573
|
});
|
|
3726
3574
|
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) => {
|
|
3727
|
-
const { summarizeUsage, formatUsageReport } = await import("./usage-
|
|
3575
|
+
const { summarizeUsage, formatUsageReport } = await import("./usage-RWS6VQBY.js");
|
|
3728
3576
|
const db = initDb();
|
|
3729
3577
|
const summary = summarizeUsage(db, {
|
|
3730
3578
|
sinceIso: opts.since,
|