hippo-memory 1.38.0 → 1.38.1

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.
Files changed (53) hide show
  1. package/dist/compare.d.ts +26 -13
  2. package/dist/compare.d.ts.map +1 -1
  3. package/dist/compare.js +50 -20
  4. package/dist/compare.js.map +1 -1
  5. package/dist/consolidate.js +1 -1
  6. package/dist/consolidate.js.map +1 -1
  7. package/dist/db.d.ts.map +1 -1
  8. package/dist/db.js +61 -0
  9. package/dist/db.js.map +1 -1
  10. package/dist/dedupe.d.ts +9 -7
  11. package/dist/dedupe.d.ts.map +1 -1
  12. package/dist/dedupe.js +12 -8
  13. package/dist/dedupe.js.map +1 -1
  14. package/dist/extensions/openclaw-plugin/index.js +585 -0
  15. package/dist/extensions/openclaw-plugin/index.js.map +1 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/memory-value.js +1 -1
  21. package/dist/memory-value.js.map +1 -1
  22. package/dist/server.d.ts +28 -4
  23. package/dist/server.d.ts.map +1 -1
  24. package/dist/server.js +62 -19
  25. package/dist/server.js.map +1 -1
  26. package/dist/sleep-redact.d.ts +7 -6
  27. package/dist/sleep-redact.d.ts.map +1 -1
  28. package/dist/sleep-redact.js +7 -6
  29. package/dist/sleep-redact.js.map +1 -1
  30. package/dist/src/compare.js +50 -20
  31. package/dist/src/compare.js.map +1 -1
  32. package/dist/src/consolidate.js +1 -1
  33. package/dist/src/consolidate.js.map +1 -1
  34. package/dist/src/db.js +61 -0
  35. package/dist/src/db.js.map +1 -1
  36. package/dist/src/dedupe.js +12 -8
  37. package/dist/src/dedupe.js.map +1 -1
  38. package/dist/src/index.js +2 -0
  39. package/dist/src/index.js.map +1 -1
  40. package/dist/src/memory-value.js +1 -1
  41. package/dist/src/memory-value.js.map +1 -1
  42. package/dist/src/server.js +62 -19
  43. package/dist/src/server.js.map +1 -1
  44. package/dist/src/sleep-redact.js +7 -6
  45. package/dist/src/sleep-redact.js.map +1 -1
  46. package/dist/src/version.js +1 -1
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/extensions/openclaw-plugin/index.ts +7 -7
  50. package/extensions/openclaw-plugin/openclaw.plugin.json +1 -1
  51. package/extensions/openclaw-plugin/package.json +2 -1
  52. package/openclaw.plugin.json +1 -1
  53. package/package.json +3 -3
@@ -8,6 +8,7 @@
8
8
  */
9
9
 
10
10
  import { execFileSync, spawn } from 'child_process';
11
+ import type { ChildProcess, ExecFileSyncOptionsWithStringEncoding, SpawnOptions } from 'child_process';
11
12
  import { existsSync, readdirSync, rmSync } from 'fs';
12
13
  import { join } from 'path';
13
14
  import { basename as posixBasename, dirname as posixDirname } from 'path/posix';
@@ -35,21 +36,20 @@ type HippoRuntimeContext = {
35
36
  * built-in modules. Never called outside tests -- register(api)'s public
36
37
  * behavior is unaffected when it's never invoked.
37
38
  *
38
- * The function shapes below are narrower than Node's full overloaded
39
- * child_process/fs types -- they capture only the call shape this plugin
40
- * actually uses, so test doubles don't need to satisfy every overload.
39
+ * Option params use Node's own overload-selecting types so `deps = {
40
+ * execFileSync, spawn, existsSync }` type-checks under strict without a cast.
41
41
  */
42
42
  export interface HippoPluginDeps {
43
43
  execFileSync: (
44
44
  file: string,
45
45
  args: readonly string[],
46
- options: { cwd: string; encoding: 'utf8'; timeout: number; stdio: string[] },
46
+ options: ExecFileSyncOptionsWithStringEncoding,
47
47
  ) => string;
48
48
  spawn: (
49
49
  command: string,
50
- args: string[],
51
- options: { cwd: string; detached: boolean; stdio: string; windowsHide: boolean },
52
- ) => { unref: () => void };
50
+ args: readonly string[],
51
+ options: SpawnOptions,
52
+ ) => Pick<ChildProcess, 'unref'>;
53
53
  existsSync: (path: string) => boolean;
54
54
  }
55
55
 
@@ -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.38.0",
5
+ "version": "1.38.1",
6
6
 
7
7
  "configSchema": {
8
8
  "type": "object",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "hippo-memory",
3
- "version": "1.38.0",
3
+ "version": "1.38.1",
4
+ "type": "module",
4
5
  "description": "Hippo Memory plugin for OpenClaw - biologically-inspired agent memory",
5
6
  "main": "index.ts",
6
7
  "openclaw": {
@@ -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.38.0",
5
+ "version": "1.38.1",
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.38.0",
3
+ "version": "1.38.1",
4
4
  "description": "Biologically-inspired memory system for AI agents. Decay by default, strength through use.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "scripts": {
27
27
  "baseline": "npm run build && npm test",
28
- "build": "tsc && tsc -p tsconfig.benchmarks.json",
28
+ "build": "tsc && tsc -p tsconfig.benchmarks.json && tsc -p tsconfig.extensions.json",
29
29
  "dev": "tsc --watch",
30
30
  "pretest": "npm run build",
31
31
  "test": "vitest run",
@@ -37,7 +37,7 @@
37
37
  "smoke:openclaw-install": "node scripts/smoke-openclaw-install.mjs",
38
38
  "build:ui": "cd ui && npm install && npm run build",
39
39
  "build:all": "npm run build && npm run build:ui",
40
- "prepublishOnly": "node scripts/check-manifest-versions.mjs && node scripts/check-em-dashes-in-release-notes.mjs && node scripts/check-graph-writes.mjs && npm run build:all"
40
+ "prepublishOnly": "node scripts/check-manifest-versions.mjs && node scripts/check-em-dashes-in-release-notes.mjs && node scripts/check-graph-writes.mjs && npm run build:all && node scripts/check-openclaw-dist.mjs && npm run smoke:openclaw-install && node scripts/check-tests-pass.mjs"
41
41
  },
42
42
  "keywords": [
43
43
  "memory",