hippo-memory 1.52.0 → 1.52.2
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/api.d.ts +4 -0
- package/dist/api.js +71 -13
- package/dist/audit.d.ts +1 -0
- package/dist/audit.js +1 -1
- package/dist/auth.d.ts +1 -0
- package/dist/auth.js +6 -1
- package/dist/capture-error.js +2 -2
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +71 -27
- package/dist/config.d.ts +15 -0
- package/dist/config.js +6 -0
- package/dist/db.js +4 -3
- package/dist/half-life-migration.js +2 -3
- package/dist/prompt-recall.d.ts +33 -0
- package/dist/prompt-recall.js +68 -0
- package/dist/reject-flow.js +5 -8
- package/dist/store.d.ts +16 -1
- package/dist/store.js +131 -133
- package/dist/token-ledger.d.ts +2 -1
- package/dist/token-ledger.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/working-memory.js +5 -8
- 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 +1 -1
package/dist/token-ledger.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import type { DatabaseSyncLike } from './db.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Where a block of memory text was sent.
|
|
4
4
|
* - `hook`: the per-prompt `UserPromptSubmit` hook (`hippo context --pinned-only`).
|
|
5
|
+
* - `hook_recall`: the same hook's Z1 prompt-recall section (docs/plans/2026-09-26-z1-prompt-recall.md).
|
|
5
6
|
* - `context`, `recall`: the CLI commands.
|
|
6
7
|
* - `mcp_recall`, `mcp_context`: the MCP tools.
|
|
7
8
|
* - `http_recall`, `http_context`, `http_assemble`: the HTTP API.
|
|
8
9
|
*/
|
|
9
|
-
export type TokenSurface = 'hook' | 'context' | 'recall' | 'mcp_recall' | 'mcp_context' | 'http_recall' | 'http_context' | 'http_assemble';
|
|
10
|
+
export type TokenSurface = 'hook' | 'hook_recall' | 'context' | 'recall' | 'mcp_recall' | 'mcp_context' | 'http_recall' | 'http_context' | 'http_assemble';
|
|
10
11
|
/** All surfaces, in report order. */
|
|
11
12
|
export declare const TOKEN_SURFACES: readonly TokenSurface[];
|
|
12
13
|
/**
|
package/dist/token-ledger.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import { createHash } from 'node:crypto';
|
|
22
22
|
/** All surfaces, in report order. */
|
|
23
23
|
export const TOKEN_SURFACES = [
|
|
24
|
-
'hook', 'context', 'recall', 'mcp_recall', 'mcp_context',
|
|
24
|
+
'hook', 'hook_recall', 'context', 'recall', 'mcp_recall', 'mcp_context',
|
|
25
25
|
'http_recall', 'http_context', 'http_assemble',
|
|
26
26
|
];
|
|
27
27
|
/** Rows older than this are pruned on write. */
|
package/dist/version.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* an ESM `import` can resolve cleanly, and a hardcoded constant survives
|
|
17
17
|
* any packager that drops .json files.
|
|
18
18
|
*/
|
|
19
|
-
export declare const PACKAGE_VERSION = "1.52.
|
|
19
|
+
export declare const PACKAGE_VERSION = "1.52.2";
|
|
20
20
|
/** Compares plain x.y.z versions, positive if a > b; tags throw so the rollback guard never misfires silently. */
|
|
21
21
|
export declare function compareSemver(a: string, b: string): number;
|
|
22
22
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* an ESM `import` can resolve cleanly, and a hardcoded constant survives
|
|
17
17
|
* any packager that drops .json files.
|
|
18
18
|
*/
|
|
19
|
-
export const PACKAGE_VERSION = '1.52.
|
|
19
|
+
export const PACKAGE_VERSION = '1.52.2';
|
|
20
20
|
/** Compares plain x.y.z versions, positive if a > b; tags throw so the rollback guard never misfires silently. */
|
|
21
21
|
export function compareSemver(a, b) {
|
|
22
22
|
const parse = (v) => {
|
package/dist/working-memory.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* importance-ranked, and automatically evicted when the buffer
|
|
6
6
|
* exceeds WM_MAX_ENTRIES per scope.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { closeHippoDb } from './db.js';
|
|
9
|
+
import { openStore } from './store.js';
|
|
10
10
|
export const WM_MAX_ENTRIES = 20;
|
|
11
11
|
function rowToItem(row) {
|
|
12
12
|
let metadata = {};
|
|
@@ -38,8 +38,7 @@ function rowToItem(row) {
|
|
|
38
38
|
* Returns the new row ID.
|
|
39
39
|
*/
|
|
40
40
|
export function wmPush(hippoRoot, opts) {
|
|
41
|
-
|
|
42
|
-
const db = openHippoDb(hippoRoot);
|
|
41
|
+
const db = openStore(hippoRoot);
|
|
43
42
|
try {
|
|
44
43
|
const now = new Date().toISOString();
|
|
45
44
|
const importance = opts.importance ?? 0;
|
|
@@ -89,8 +88,7 @@ export function wmPush(hippoRoot, opts) {
|
|
|
89
88
|
* Read working memory entries, sorted by importance DESC.
|
|
90
89
|
*/
|
|
91
90
|
export function wmRead(hippoRoot, opts) {
|
|
92
|
-
|
|
93
|
-
const db = openHippoDb(hippoRoot);
|
|
91
|
+
const db = openStore(hippoRoot);
|
|
94
92
|
try {
|
|
95
93
|
const clauses = [];
|
|
96
94
|
const params = [];
|
|
@@ -124,8 +122,7 @@ export function wmRead(hippoRoot, opts) {
|
|
|
124
122
|
* Clear (delete) working memory entries. Returns the count deleted.
|
|
125
123
|
*/
|
|
126
124
|
export function wmClear(hippoRoot, opts) {
|
|
127
|
-
|
|
128
|
-
const db = openHippoDb(hippoRoot);
|
|
125
|
+
const db = openStore(hippoRoot);
|
|
129
126
|
try {
|
|
130
127
|
const clauses = [];
|
|
131
128
|
const params = [];
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "hippo-memory",
|
|
3
3
|
"name": "Hippo Memory",
|
|
4
4
|
"description": "Biologically-inspired memory for AI agents. Decay by default, retrieval strengthening, sleep consolidation.",
|
|
5
|
-
"version": "1.52.
|
|
5
|
+
"version": "1.52.2",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hippo-memory",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.2",
|
|
4
4
|
"description": "Biologically-inspired memory for AI agents. Zero runtime deps, SQLite, MCP server, and an opt-in hosted TypeSafe Jev reranker. Decay, retrieval strengthening, consolidation.",
|
|
5
5
|
"mcpName": "io.github.kitfunso/hippo-memory",
|
|
6
6
|
"type": "module",
|