hippo-memory 1.53.2 → 1.55.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 +5 -5
- package/dist/api.d.ts +4 -2
- package/dist/api.js +14 -10
- package/dist/audit.d.ts +19 -0
- package/dist/audit.js +40 -6
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +3 -2
- package/dist/cli.js +4 -7
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +6 -7
- package/dist/server.d.ts +14 -0
- package/dist/server.js +227 -128
- package/dist/session-digest.js +1 -5
- 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 +3 -2
package/dist/session-digest.js
CHANGED
|
@@ -23,8 +23,6 @@ export const MAX_FILES = 10;
|
|
|
23
23
|
export const MAX_DIGEST_CHARS = 1200;
|
|
24
24
|
/** Bounds a detached worker's memory; the final message sits at the end, so a tail read loses nothing. */
|
|
25
25
|
export const READ_CAP_BYTES = 64 * 1024 * 1024;
|
|
26
|
-
/** The pinned hook shows the newest 5 memories, so older digests were never injected. */
|
|
27
|
-
const RECENT_DIGESTS = 5;
|
|
28
26
|
const CLAUDE_EDIT_TOOLS = new Set(['Edit', 'Write', 'MultiEdit', 'NotebookEdit']);
|
|
29
27
|
function transcriptItem(value) {
|
|
30
28
|
return isObjectLike(value) && 'type' in value ? value : null;
|
|
@@ -441,12 +439,10 @@ export function isSessionDigestRow(entry) {
|
|
|
441
439
|
export function sessionDigestId(tenantId, key) {
|
|
442
440
|
return `mem_${createHash('sha256').update(`${SESSION_DIGEST_TAG}\n${tenantId}\n${key}`).digest('hex').slice(0, 12)}`;
|
|
443
441
|
}
|
|
444
|
-
/** What hippo could have injected into the session:
|
|
442
|
+
/** What hippo could have injected into the session: any live digest (prompt recall reaches old ones) and the ambient handoff, never this session's own. */
|
|
445
443
|
function injectedTexts(hippoRoot, opts) {
|
|
446
444
|
const digests = loadAllEntries(hippoRoot, opts.tenantId)
|
|
447
445
|
.filter((e) => isSessionDigestRow(e) && !e.superseded_by && e.source_session_id !== opts.key)
|
|
448
|
-
.sort((a, b) => (a.created < b.created ? 1 : a.created > b.created ? -1 : 0))
|
|
449
|
-
.slice(0, RECENT_DIGESTS)
|
|
450
446
|
.map((e) => e.content);
|
|
451
447
|
const handoff = loadLatestHandoff(hippoRoot, opts.tenantId, undefined, {
|
|
452
448
|
unfinishedOnly: true,
|
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.
|
|
19
|
+
export declare const PACKAGE_VERSION = "1.55.0";
|
|
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.
|
|
19
|
+
export const PACKAGE_VERSION = '1.55.0';
|
|
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) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "hippo-memory",
|
|
3
3
|
"name": "Hippo Memory",
|
|
4
4
|
"description": "Memory for AI agents that learns what is wrong and ranks it down. Injects context at session start and captures errors.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.55.0",
|
|
6
6
|
|
|
7
7
|
"configSchema": {
|
|
8
8
|
"type": "object",
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "hippo-memory",
|
|
3
3
|
"name": "Hippo Memory",
|
|
4
4
|
"description": "Memory for AI agents that learns what is wrong and ranks it down. Injects context at session start and captures errors.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.55.0",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hippo-memory",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.0",
|
|
4
4
|
"description": "Memory for AI agents that learns what is wrong and ranks it down. MCP server, hooks for Claude Code, OpenCode and Codex, AGENTS.md instructions for Codex, Cursor, OpenClaw and Pi. SQLite, zero runtime deps.",
|
|
5
5
|
"mcpName": "io.github.kitfunso/hippo-memory",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
".": "./dist/index.js"
|
|
9
|
+
".": "./dist/index.js",
|
|
10
|
+
"./server": "./dist/server.js"
|
|
10
11
|
},
|
|
11
12
|
"openclaw": {
|
|
12
13
|
"extensions": [
|