@psiclawops/hypermem 0.8.0 → 0.8.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/ARCHITECTURE.md +1 -1
- package/CHANGELOG.md +101 -0
- package/INSTALL.md +800 -0
- package/README.md +131 -31
- package/bin/hypermem-status.mjs +11 -1
- package/dist/background-indexer.js +9 -9
- package/dist/cross-agent.d.ts +1 -1
- package/dist/cross-agent.js +17 -17
- package/dist/dreaming-promoter.d.ts +1 -1
- package/dist/dreaming-promoter.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/open-domain.js +1 -1
- package/dist/seed.d.ts +1 -1
- package/dist/seed.js +1 -1
- package/dist/session-flusher.d.ts +2 -2
- package/dist/session-flusher.js +2 -2
- package/dist/spawn-context.d.ts +1 -1
- package/dist/spawn-context.js +1 -1
- package/dist/temporal-store.js +2 -2
- package/dist/topic-store.js +5 -5
- package/dist/topic-synthesizer.js +1 -1
- package/dist/trigger-registry.d.ts +1 -1
- package/dist/trigger-registry.js +4 -4
- package/dist/types.d.ts +2 -2
- package/dist/version.d.ts +4 -4
- package/dist/version.js +4 -4
- package/package.json +3 -1
|
@@ -35,7 +35,7 @@ function keystoneScore(msg) {
|
|
|
35
35
|
const backtickMatches = text.match(/`[^`]+`/g) || [];
|
|
36
36
|
score += backtickMatches.length * 0.2;
|
|
37
37
|
// Agent mentions (known patterns)
|
|
38
|
-
const agentMentions = text.match(/\b(
|
|
38
|
+
const agentMentions = text.match(/\b(agent1|agent2|agent4|agent3|agent5|agent6|director1|director2|director7|specialist2|specialist1)\b/gi) || [];
|
|
39
39
|
score += agentMentions.length * 0.25;
|
|
40
40
|
// Quoted content
|
|
41
41
|
const quotedMatches = text.match(/"[^"]{10,}"/g) || [];
|
|
@@ -39,7 +39,7 @@ export interface CollectionTrigger {
|
|
|
39
39
|
export declare const TRIGGER_REGISTRY_VERSION = "1.0.0";
|
|
40
40
|
/**
|
|
41
41
|
* Default trigger registry for standard ACA collections.
|
|
42
|
-
* Covers the core ACA offload use case from
|
|
42
|
+
* Covers the core ACA offload use case from agent6's spec.
|
|
43
43
|
*/
|
|
44
44
|
export declare const TRIGGER_REGISTRY: CollectionTrigger[];
|
|
45
45
|
/** Backward-compat alias — same reference as TRIGGER_REGISTRY */
|
package/dist/trigger-registry.js
CHANGED
|
@@ -13,7 +13,7 @@ import { createHash } from 'node:crypto';
|
|
|
13
13
|
export const TRIGGER_REGISTRY_VERSION = '1.0.0';
|
|
14
14
|
/**
|
|
15
15
|
* Default trigger registry for standard ACA collections.
|
|
16
|
-
* Covers the core ACA offload use case from
|
|
16
|
+
* Covers the core ACA offload use case from agent6's spec.
|
|
17
17
|
*/
|
|
18
18
|
export const TRIGGER_REGISTRY = [
|
|
19
19
|
{
|
|
@@ -61,7 +61,7 @@ export const TRIGGER_REGISTRY = [
|
|
|
61
61
|
],
|
|
62
62
|
maxTokens: 800,
|
|
63
63
|
maxChunks: 2,
|
|
64
|
-
owner: '
|
|
64
|
+
owner: 'agent1',
|
|
65
65
|
category: 'operations',
|
|
66
66
|
description: 'Agent operational procedures: boot sequence, heartbeat, work queue, session startup',
|
|
67
67
|
},
|
|
@@ -98,7 +98,7 @@ export const TRIGGER_REGISTRY = [
|
|
|
98
98
|
],
|
|
99
99
|
maxTokens: 1500,
|
|
100
100
|
maxChunks: 4,
|
|
101
|
-
owner: '
|
|
101
|
+
owner: 'agent1',
|
|
102
102
|
category: 'memory',
|
|
103
103
|
description: 'Decision history: past choices, previously agreed approaches, recalled context',
|
|
104
104
|
},
|
|
@@ -124,7 +124,7 @@ export const TRIGGER_REGISTRY = [
|
|
|
124
124
|
],
|
|
125
125
|
maxTokens: 1200,
|
|
126
126
|
maxChunks: 3,
|
|
127
|
-
owner: '
|
|
127
|
+
owner: 'agent1',
|
|
128
128
|
category: 'operations',
|
|
129
129
|
description: 'Agent tooling reference: CLI commands, config paths, deployment procedures, quick reference',
|
|
130
130
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export type FactScope = 'agent' | 'session' | 'user';
|
|
|
70
70
|
/**
|
|
71
71
|
* Memory visibility levels:
|
|
72
72
|
* - private: Only the owning agent can read. Identity, SOUL, personal reflections.
|
|
73
|
-
* - org: Agents in the same org (e.g.,
|
|
73
|
+
* - org: Agents in the same org (e.g., agent1's directors: Pylon, Vigil, Plane).
|
|
74
74
|
* - council: All council seats can read.
|
|
75
75
|
* - fleet: Any agent in the fleet can read.
|
|
76
76
|
*/
|
|
@@ -400,7 +400,7 @@ export interface ProviderMessage {
|
|
|
400
400
|
* to identify high-signal unprocessed messages.
|
|
401
401
|
*
|
|
402
402
|
* Stored in Redis (hm:{a}:s:{s}:cursor) with dual-write to SQLite for
|
|
403
|
-
* durability across Redis eviction (
|
|
403
|
+
* durability across Redis eviction (agent2 Gate 2).
|
|
404
404
|
*/
|
|
405
405
|
export interface SessionCursor {
|
|
406
406
|
/** StoredMessage.id of the newest message included in the last window */
|
package/dist/version.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Release version — matches package.json and is stamped into library.db on every startup. */
|
|
2
|
-
export declare const ENGINE_VERSION = "0.8.
|
|
2
|
+
export declare const ENGINE_VERSION = "0.8.2";
|
|
3
3
|
/** Minimum Node.js version required — matches package.json engines field. */
|
|
4
4
|
export declare const MIN_NODE_VERSION = "22.0.0";
|
|
5
5
|
/** @deprecated No longer used — Redis was replaced with SQLite :memory: CacheLayer. */
|
|
@@ -19,15 +19,15 @@ export declare const LIBRARY_SCHEMA_VERSION_EXPORT = 19;
|
|
|
19
19
|
/**
|
|
20
20
|
* Compatibility version — the single number operators and consumers check.
|
|
21
21
|
* Maps to: messages.db schema v10, library schema v19.
|
|
22
|
-
* Matches ENGINE_VERSION for the 0.8.
|
|
22
|
+
* Matches ENGINE_VERSION for the 0.8.2 release.
|
|
23
23
|
*/
|
|
24
|
-
export declare const HYPERMEM_COMPAT_VERSION = "0.8.
|
|
24
|
+
export declare const HYPERMEM_COMPAT_VERSION = "0.8.2";
|
|
25
25
|
/**
|
|
26
26
|
* Schema compatibility map — machine-readable version requirements.
|
|
27
27
|
* Use this to verify DB schemas match the running engine.
|
|
28
28
|
*/
|
|
29
29
|
export declare const SCHEMA_COMPAT: {
|
|
30
|
-
readonly compatVersion: "0.8.
|
|
30
|
+
readonly compatVersion: "0.8.2";
|
|
31
31
|
readonly mainSchema: 10;
|
|
32
32
|
readonly librarySchema: 19;
|
|
33
33
|
};
|
package/dist/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Release version — matches package.json and is stamped into library.db on every startup. */
|
|
2
|
-
export const ENGINE_VERSION = '0.8.
|
|
2
|
+
export const ENGINE_VERSION = '0.8.2';
|
|
3
3
|
/** Minimum Node.js version required — matches package.json engines field. */
|
|
4
4
|
export const MIN_NODE_VERSION = '22.0.0';
|
|
5
5
|
/** @deprecated No longer used — Redis was replaced with SQLite :memory: CacheLayer. */
|
|
@@ -19,15 +19,15 @@ export const LIBRARY_SCHEMA_VERSION_EXPORT = 19;
|
|
|
19
19
|
/**
|
|
20
20
|
* Compatibility version — the single number operators and consumers check.
|
|
21
21
|
* Maps to: messages.db schema v10, library schema v19.
|
|
22
|
-
* Matches ENGINE_VERSION for the 0.8.
|
|
22
|
+
* Matches ENGINE_VERSION for the 0.8.2 release.
|
|
23
23
|
*/
|
|
24
|
-
export const HYPERMEM_COMPAT_VERSION = '0.8.
|
|
24
|
+
export const HYPERMEM_COMPAT_VERSION = '0.8.2';
|
|
25
25
|
/**
|
|
26
26
|
* Schema compatibility map — machine-readable version requirements.
|
|
27
27
|
* Use this to verify DB schemas match the running engine.
|
|
28
28
|
*/
|
|
29
29
|
export const SCHEMA_COMPAT = {
|
|
30
|
-
compatVersion: '0.8.
|
|
30
|
+
compatVersion: '0.8.2',
|
|
31
31
|
mainSchema: 10,
|
|
32
32
|
librarySchema: 19,
|
|
33
33
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@psiclawops/hypermem",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Agent-centric memory and context composition engine for OpenClaw",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"dist/**/*.d.ts",
|
|
49
49
|
"dist/**/*.d.ts.map",
|
|
50
50
|
"README.md",
|
|
51
|
+
"INSTALL.md",
|
|
52
|
+
"CHANGELOG.md",
|
|
51
53
|
"ARCHITECTURE.md",
|
|
52
54
|
"LICENSE"
|
|
53
55
|
],
|