hippo-memory 1.58.0 → 1.60.0
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 +13 -1
- package/dist/agent-memories/apply.d.ts +1 -1
- package/dist/agent-memories/legacy.js +4 -1
- package/dist/api.d.ts +2 -0
- package/dist/api.js +25 -9
- package/dist/audit.d.ts +1 -1
- package/dist/audit.js +3 -0
- package/dist/autolearn.js +5 -2
- package/dist/capture.js +8 -6
- package/dist/cli/output.d.ts +3 -0
- package/dist/cli/output.js +7 -0
- package/dist/cli/projects.d.ts +4 -0
- package/dist/cli/projects.js +90 -0
- package/dist/cli/shared.js +14 -8
- package/dist/cli/sleep.js +5 -3
- package/dist/cli.d.ts +356 -0
- package/dist/cli.js +1587 -1404
- package/dist/compaction-record.js +7 -6
- package/dist/config.js +12 -11
- package/dist/connectors/github/cli-impl.js +1 -0
- package/dist/consolidate.js +16 -4
- package/dist/dag.js +11 -9
- package/dist/dashboard.js +4 -2
- package/dist/db.js +16 -3
- package/dist/dedupe.js +1 -1
- package/dist/delivery-recorder.js +1 -0
- package/dist/doctor.js +24 -0
- package/dist/dormant.d.ts +2 -2
- package/dist/dormant.js +1 -0
- package/dist/embedding-provider.js +3 -2
- package/dist/embeddings.js +10 -7
- package/dist/extract.js +20 -19
- package/dist/graph.js +3 -8
- package/dist/handoff.js +3 -0
- package/dist/hooks.js +3 -0
- package/dist/importers.js +6 -3
- package/dist/incidents.js +1 -0
- package/dist/judgment.js +5 -2
- package/dist/mcp/server.d.ts +5 -0
- package/dist/mcp/server.js +32 -13
- package/dist/memory.d.ts +5 -3
- package/dist/processes.js +1 -0
- package/dist/project-identity.d.ts +1 -1
- package/dist/project-identity.js +9 -4
- package/dist/project-merge.d.ts +52 -0
- package/dist/project-merge.js +168 -0
- package/dist/raw-archive-mirror-cleanup.js +2 -1
- package/dist/recall-scope.d.ts +3 -3
- package/dist/recall-scope.js +5 -4
- package/dist/recall-trace.d.ts +2 -2
- package/dist/recall-trace.js +10 -14
- package/dist/refine-llm.js +18 -10
- package/dist/rerankers/clef.d.ts +29 -0
- package/dist/rerankers/clef.js +223 -0
- package/dist/rerankers/cross-encoder.js +6 -4
- package/dist/rerankers/index.js +3 -0
- package/dist/rerankers/jev.d.ts +14 -1
- package/dist/rerankers/jev.js +30 -20
- package/dist/rerankers/llm.js +3 -3
- package/dist/rerankers/types.d.ts +16 -0
- package/dist/same-text.d.ts +2 -0
- package/dist/same-text.js +4 -0
- package/dist/scheduler.js +1 -0
- package/dist/search.js +4 -2
- package/dist/secret-detect.js +1 -0
- package/dist/server.d.ts +6 -1
- package/dist/server.js +38 -15
- package/dist/shared.js +21 -19
- package/dist/stdin.js +1 -0
- package/dist/store.d.ts +33 -1
- package/dist/store.js +123 -22
- package/dist/token-ledger.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/extensions/openclaw-plugin/openclaw.plugin.json +1 -1
- package/extensions/openclaw-plugin/package.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -2
package/dist/cli.d.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* hippo rejections
|
|
21
21
|
* hippo unreject <digest-prefix>
|
|
22
22
|
* hippo dormant [<query>] [--limit <n>] [--json] | restore <id> | forget <id>
|
|
23
|
+
* hippo projects [--json] | merge <from> <into> [--apply] | repair [--apply]
|
|
23
24
|
* hippo tokens [--days <n>] [--json] [--global]
|
|
24
25
|
* hippo doctor [--json]
|
|
25
26
|
* hippo inspect <id>
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
import { MemoryEntry } from './memory.js';
|
|
36
37
|
/** Test-only: reset the module-level recall-history Map. Call from beforeEach. */
|
|
37
38
|
export declare function __resetSessionRecallHistoryCli(): void;
|
|
39
|
+
import { type CliFlags } from './cli/shared.js';
|
|
38
40
|
export declare const BOOLEAN_FLAGS: ReadonlySet<string>;
|
|
39
41
|
export declare const KNOWN_FLAGS: ReadonlySet<string>;
|
|
40
42
|
export declare function parseArgs(argv: string[]): {
|
|
@@ -53,7 +55,361 @@ export declare function printContextMarkdown(items: Array<{
|
|
|
53
55
|
showStrength?: boolean;
|
|
54
56
|
heading?: string;
|
|
55
57
|
}): void;
|
|
58
|
+
interface CommandContext {
|
|
59
|
+
readonly hippoRoot: string;
|
|
60
|
+
readonly args: string[];
|
|
61
|
+
readonly flags: CliFlags;
|
|
62
|
+
}
|
|
63
|
+
declare function handleRemember({ hippoRoot, args, flags }: CommandContext): Promise<void>;
|
|
64
|
+
declare function handleRecall({ hippoRoot, args, flags }: CommandContext): Promise<void>;
|
|
65
|
+
declare function handleDrill({ hippoRoot, args, flags }: CommandContext): void;
|
|
66
|
+
declare function handleAssemble({ hippoRoot, args, flags }: CommandContext): void;
|
|
67
|
+
declare function handleSupersede({ hippoRoot, args, flags }: CommandContext): void;
|
|
68
|
+
declare function handleExplain({ hippoRoot, args, flags }: CommandContext): Promise<void>;
|
|
69
|
+
declare function handleEval({ hippoRoot, args, flags }: CommandContext): Promise<void>;
|
|
70
|
+
declare function handleTrace({ hippoRoot, args, flags }: CommandContext): void;
|
|
71
|
+
declare function handlePreCompact({ hippoRoot, flags }: CommandContext): Promise<void>;
|
|
72
|
+
declare function handlePostCompact({ hippoRoot, flags }: CommandContext): Promise<void>;
|
|
73
|
+
declare function handleCaptureError({ hippoRoot }: CommandContext): Promise<void>;
|
|
74
|
+
declare function handleCompactResume({ hippoRoot }: CommandContext): Promise<void>;
|
|
75
|
+
declare function handleAudit({ hippoRoot, args, flags }: CommandContext): void;
|
|
76
|
+
declare function handleCorrectionLatency({ hippoRoot, flags }: CommandContext): void;
|
|
77
|
+
declare function handleProvenance({ hippoRoot, flags }: CommandContext): void;
|
|
78
|
+
declare function handleDoctor({ flags }: CommandContext): void;
|
|
79
|
+
declare function handleSupportBundle({ flags }: CommandContext): void;
|
|
80
|
+
declare function handleForget({ hippoRoot, args, flags }: CommandContext): Promise<void>;
|
|
81
|
+
declare function handleInspect({ hippoRoot, args }: CommandContext): void;
|
|
82
|
+
declare function handleContext({ hippoRoot, args, flags }: CommandContext): Promise<void>;
|
|
83
|
+
declare function handleWatch({ hippoRoot, args }: CommandContext): Promise<void>;
|
|
84
|
+
declare function handlePromote({ hippoRoot, args }: CommandContext): Promise<void>;
|
|
85
|
+
declare function handleShare({ hippoRoot, args, flags }: CommandContext): void;
|
|
86
|
+
declare function handlePeers({ flags }: CommandContext): void;
|
|
87
|
+
declare function handleExport({ hippoRoot, args, flags }: CommandContext): void;
|
|
88
|
+
declare function handleCapture({ hippoRoot, flags }: CommandContext): Promise<void>;
|
|
89
|
+
declare function handleDashboard({ hippoRoot, flags }: CommandContext): Promise<void>;
|
|
90
|
+
declare function handleMcp(): Promise<void>;
|
|
91
|
+
declare function handleServe({ hippoRoot, flags }: CommandContext): Promise<void>;
|
|
92
|
+
declare function handleInvalidate({ hippoRoot, args, flags }: CommandContext): void;
|
|
93
|
+
/** Every verb main() dispatches, keyed by name, with its handler, aliases and help blocks. */
|
|
94
|
+
export declare const COMMANDS: {
|
|
95
|
+
init: {
|
|
96
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
97
|
+
usage: string[];
|
|
98
|
+
};
|
|
99
|
+
remember: {
|
|
100
|
+
run: typeof handleRemember;
|
|
101
|
+
usage: string[];
|
|
102
|
+
};
|
|
103
|
+
recall: {
|
|
104
|
+
run: typeof handleRecall;
|
|
105
|
+
usage: string[];
|
|
106
|
+
};
|
|
107
|
+
drill: {
|
|
108
|
+
run: typeof handleDrill;
|
|
109
|
+
usage: string[];
|
|
110
|
+
};
|
|
111
|
+
assemble: {
|
|
112
|
+
run: typeof handleAssemble;
|
|
113
|
+
usage: string[];
|
|
114
|
+
};
|
|
115
|
+
supersede: {
|
|
116
|
+
run: typeof handleSupersede;
|
|
117
|
+
usage: string[];
|
|
118
|
+
};
|
|
119
|
+
explain: {
|
|
120
|
+
run: typeof handleExplain;
|
|
121
|
+
usage: string[];
|
|
122
|
+
};
|
|
123
|
+
eval: {
|
|
124
|
+
run: typeof handleEval;
|
|
125
|
+
usage: string[];
|
|
126
|
+
};
|
|
127
|
+
trace: {
|
|
128
|
+
run: typeof handleTrace;
|
|
129
|
+
usage: string[];
|
|
130
|
+
};
|
|
131
|
+
refine: {
|
|
132
|
+
run: ({ hippoRoot, flags }: CommandContext) => Promise<void>;
|
|
133
|
+
usage: string[];
|
|
134
|
+
};
|
|
135
|
+
sleep: {
|
|
136
|
+
run: ({ hippoRoot, flags }: CommandContext) => Promise<void>;
|
|
137
|
+
usage: string[];
|
|
138
|
+
};
|
|
139
|
+
'last-sleep': {
|
|
140
|
+
run: ({ flags }: CommandContext) => void;
|
|
141
|
+
usage: string[];
|
|
142
|
+
};
|
|
143
|
+
'session-end': {
|
|
144
|
+
run: ({ hippoRoot, flags }: CommandContext) => Promise<void>;
|
|
145
|
+
usage: string[];
|
|
146
|
+
};
|
|
147
|
+
'__session-end-worker': {
|
|
148
|
+
run: ({ hippoRoot, flags }: CommandContext) => Promise<void>;
|
|
149
|
+
usage: never[];
|
|
150
|
+
};
|
|
151
|
+
'pre-compact': {
|
|
152
|
+
run: typeof handlePreCompact;
|
|
153
|
+
usage: string[];
|
|
154
|
+
};
|
|
155
|
+
'post-compact': {
|
|
156
|
+
run: typeof handlePostCompact;
|
|
157
|
+
usage: string[];
|
|
158
|
+
};
|
|
159
|
+
'capture-error': {
|
|
160
|
+
run: typeof handleCaptureError;
|
|
161
|
+
usage: string[];
|
|
162
|
+
};
|
|
163
|
+
'compact-resume': {
|
|
164
|
+
run: typeof handleCompactResume;
|
|
165
|
+
usage: string[];
|
|
166
|
+
};
|
|
167
|
+
'codex-run': {
|
|
168
|
+
run: ({ hippoRoot, args }: CommandContext) => void;
|
|
169
|
+
usage: string[];
|
|
170
|
+
};
|
|
171
|
+
'__codex-session-end-worker': {
|
|
172
|
+
run: ({ hippoRoot, flags }: CommandContext) => Promise<void>;
|
|
173
|
+
usage: never[];
|
|
174
|
+
};
|
|
175
|
+
dedup: {
|
|
176
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
177
|
+
usage: string[];
|
|
178
|
+
};
|
|
179
|
+
dag: {
|
|
180
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
181
|
+
usage: string[];
|
|
182
|
+
};
|
|
183
|
+
auth: {
|
|
184
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
185
|
+
usage: string[];
|
|
186
|
+
};
|
|
187
|
+
goal: {
|
|
188
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
189
|
+
usage: string[];
|
|
190
|
+
};
|
|
191
|
+
slack: {
|
|
192
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
193
|
+
usage: string[];
|
|
194
|
+
};
|
|
195
|
+
github: {
|
|
196
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => Promise<void>;
|
|
197
|
+
usage: string[];
|
|
198
|
+
};
|
|
199
|
+
audit: {
|
|
200
|
+
run: typeof handleAudit;
|
|
201
|
+
usage: string[];
|
|
202
|
+
};
|
|
203
|
+
'correction-latency': {
|
|
204
|
+
run: typeof handleCorrectionLatency;
|
|
205
|
+
usage: string[];
|
|
206
|
+
};
|
|
207
|
+
provenance: {
|
|
208
|
+
run: typeof handleProvenance;
|
|
209
|
+
usage: string[];
|
|
210
|
+
};
|
|
211
|
+
status: {
|
|
212
|
+
run: ({ hippoRoot }: CommandContext) => void;
|
|
213
|
+
usage: string[];
|
|
214
|
+
};
|
|
215
|
+
outcome: {
|
|
216
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
217
|
+
usage: string[];
|
|
218
|
+
};
|
|
219
|
+
conflicts: {
|
|
220
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
221
|
+
usage: string[];
|
|
222
|
+
};
|
|
223
|
+
resolve: {
|
|
224
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
225
|
+
usage: string[];
|
|
226
|
+
};
|
|
227
|
+
reject: {
|
|
228
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
229
|
+
usage: string[];
|
|
230
|
+
};
|
|
231
|
+
rejections: {
|
|
232
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
233
|
+
usage: string[];
|
|
234
|
+
};
|
|
235
|
+
unreject: {
|
|
236
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
237
|
+
usage: string[];
|
|
238
|
+
};
|
|
239
|
+
dormant: {
|
|
240
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
241
|
+
usage: string[];
|
|
242
|
+
};
|
|
243
|
+
projects: {
|
|
244
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => Promise<void>;
|
|
245
|
+
usage: string[];
|
|
246
|
+
};
|
|
247
|
+
quarantine: {
|
|
248
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
249
|
+
usage: string[];
|
|
250
|
+
};
|
|
251
|
+
tokens: {
|
|
252
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
253
|
+
usage: string[];
|
|
254
|
+
};
|
|
255
|
+
failures: {
|
|
256
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
257
|
+
usage: string[];
|
|
258
|
+
};
|
|
259
|
+
doctor: {
|
|
260
|
+
run: typeof handleDoctor;
|
|
261
|
+
usage: string[];
|
|
262
|
+
};
|
|
263
|
+
'support-bundle': {
|
|
264
|
+
run: typeof handleSupportBundle;
|
|
265
|
+
usage: string[];
|
|
266
|
+
};
|
|
267
|
+
snapshot: {
|
|
268
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
269
|
+
usage: string[];
|
|
270
|
+
};
|
|
271
|
+
session: {
|
|
272
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
273
|
+
usage: string[];
|
|
274
|
+
};
|
|
275
|
+
handoff: {
|
|
276
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
277
|
+
usage: string[];
|
|
278
|
+
};
|
|
279
|
+
card: {
|
|
280
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
281
|
+
usage: string[];
|
|
282
|
+
};
|
|
283
|
+
predict: {
|
|
284
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
285
|
+
usage: string[];
|
|
286
|
+
};
|
|
287
|
+
current: {
|
|
288
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
289
|
+
usage: string[];
|
|
290
|
+
};
|
|
291
|
+
forget: {
|
|
292
|
+
run: typeof handleForget;
|
|
293
|
+
usage: string[];
|
|
294
|
+
};
|
|
295
|
+
inspect: {
|
|
296
|
+
run: typeof handleInspect;
|
|
297
|
+
usage: string[];
|
|
298
|
+
};
|
|
299
|
+
context: {
|
|
300
|
+
run: typeof handleContext;
|
|
301
|
+
usage: string[];
|
|
302
|
+
};
|
|
303
|
+
hook: {
|
|
304
|
+
run: ({ args, flags }: CommandContext) => void;
|
|
305
|
+
usage: string[];
|
|
306
|
+
};
|
|
307
|
+
setup: {
|
|
308
|
+
run: ({ flags }: CommandContext) => void;
|
|
309
|
+
usage: string[];
|
|
310
|
+
};
|
|
311
|
+
'daily-runner': {
|
|
312
|
+
run: () => void;
|
|
313
|
+
usage: string[];
|
|
314
|
+
};
|
|
315
|
+
embed: {
|
|
316
|
+
run: ({ hippoRoot, flags }: CommandContext) => Promise<void>;
|
|
317
|
+
usage: string[];
|
|
318
|
+
};
|
|
319
|
+
watch: {
|
|
320
|
+
run: typeof handleWatch;
|
|
321
|
+
usage: string[];
|
|
322
|
+
};
|
|
323
|
+
learn: {
|
|
324
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
325
|
+
usage: string[];
|
|
326
|
+
};
|
|
327
|
+
promote: {
|
|
328
|
+
run: typeof handlePromote;
|
|
329
|
+
usage: string[];
|
|
330
|
+
};
|
|
331
|
+
sync: {
|
|
332
|
+
run: ({ hippoRoot, flags }: CommandContext) => void;
|
|
333
|
+
usage: string[];
|
|
334
|
+
};
|
|
335
|
+
share: {
|
|
336
|
+
run: typeof handleShare;
|
|
337
|
+
usage: string[];
|
|
338
|
+
};
|
|
339
|
+
peers: {
|
|
340
|
+
run: typeof handlePeers;
|
|
341
|
+
usage: string[];
|
|
342
|
+
};
|
|
343
|
+
import: {
|
|
344
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
345
|
+
usage: string[];
|
|
346
|
+
};
|
|
347
|
+
export: {
|
|
348
|
+
run: typeof handleExport;
|
|
349
|
+
usage: string[];
|
|
350
|
+
};
|
|
351
|
+
capture: {
|
|
352
|
+
run: typeof handleCapture;
|
|
353
|
+
usage: string[];
|
|
354
|
+
};
|
|
355
|
+
dashboard: {
|
|
356
|
+
run: typeof handleDashboard;
|
|
357
|
+
usage: string[];
|
|
358
|
+
};
|
|
359
|
+
wm: {
|
|
360
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
361
|
+
usage: string[];
|
|
362
|
+
};
|
|
363
|
+
mcp: {
|
|
364
|
+
run: typeof handleMcp;
|
|
365
|
+
usage: string[];
|
|
366
|
+
};
|
|
367
|
+
serve: {
|
|
368
|
+
run: typeof handleServe;
|
|
369
|
+
usage: string[];
|
|
370
|
+
};
|
|
371
|
+
invalidate: {
|
|
372
|
+
run: typeof handleInvalidate;
|
|
373
|
+
usage: string[];
|
|
374
|
+
};
|
|
375
|
+
decide: {
|
|
376
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
377
|
+
usage: string[];
|
|
378
|
+
};
|
|
379
|
+
incident: {
|
|
380
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
381
|
+
usage: string[];
|
|
382
|
+
};
|
|
383
|
+
process: {
|
|
384
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
385
|
+
usage: string[];
|
|
386
|
+
};
|
|
387
|
+
policy: {
|
|
388
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
389
|
+
usage: string[];
|
|
390
|
+
};
|
|
391
|
+
skill: {
|
|
392
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
393
|
+
usage: string[];
|
|
394
|
+
};
|
|
395
|
+
brief: {
|
|
396
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
397
|
+
aliases: string[];
|
|
398
|
+
usage: string[];
|
|
399
|
+
};
|
|
400
|
+
note: {
|
|
401
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
402
|
+
aliases: string[];
|
|
403
|
+
usage: string[];
|
|
404
|
+
};
|
|
405
|
+
graph: {
|
|
406
|
+
run: ({ hippoRoot, args, flags }: CommandContext) => void;
|
|
407
|
+
usage: string[];
|
|
408
|
+
};
|
|
409
|
+
};
|
|
56
410
|
export declare function usageText(): string;
|
|
411
|
+
/** One verb's help blocks as `hippo <verb> --help` prints them, or null for a verb with none. */
|
|
57
412
|
export declare function verbUsage(verb: string): string | null;
|
|
58
413
|
export declare function runCli(argv?: string[]): Promise<void>;
|
|
414
|
+
export {};
|
|
59
415
|
//# sourceMappingURL=cli.d.ts.map
|