@bamdra/bamdra-openclaw-memory 0.3.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 ADDED
@@ -0,0 +1,32 @@
1
+ # bamdra-openclaw-memory
2
+
3
+ Unified OpenClaw memory plugin that combines:
4
+
5
+ - memory context engine registration
6
+ - topic-aware hooks
7
+ - explicit memory tool registration
8
+
9
+ This is the primary install target for `v0.3.0+`.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ openclaw plugins install @bamdra/bamdra-openclaw-memory
15
+ ```
16
+
17
+ Then bind the plugin in `~/.openclaw/openclaw.json`:
18
+
19
+ ```json
20
+ {
21
+ "plugins": {
22
+ "allow": ["bamdra-openclaw-memory"],
23
+ "deny": ["memory-core"],
24
+ "slots": {
25
+ "memory": "bamdra-openclaw-memory",
26
+ "contextEngine": "bamdra-openclaw-memory"
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ For full docs, see the main project README and installation guides in the repository root.
@@ -0,0 +1,43 @@
1
+ import { type ContextEngineMemoryV2Plugin } from "@openclaw-enhanced/bamdra-memory-context-engine";
2
+ import type { MemoryV2Config } from "@openclaw-enhanced/memory-core";
3
+ declare const TOOLS_REGISTERED_KEY: unique symbol;
4
+ declare const ENGINE_REGISTERED_KEY: unique symbol;
5
+ type UnifiedPluginApi = {
6
+ registerHook?: (events: string | string[], handler: (event: unknown) => unknown | Promise<unknown>, opts?: {
7
+ name?: string;
8
+ description?: string;
9
+ priority?: number;
10
+ }) => void;
11
+ on?: (hookName: string, handler: (event: unknown, context: unknown) => unknown | Promise<unknown>, opts?: {
12
+ priority?: number;
13
+ }) => void;
14
+ pluginConfig?: Partial<MemoryV2Config>;
15
+ config?: Partial<MemoryV2Config>;
16
+ plugin?: {
17
+ config?: Partial<MemoryV2Config>;
18
+ };
19
+ runtime?: {
20
+ getContextEngine?(): ContextEngineMemoryV2Plugin | null | undefined;
21
+ contextEngine?: unknown;
22
+ config?: unknown;
23
+ };
24
+ contextEngine?: unknown;
25
+ registerContextEngine: (id: string, factory: (config: MemoryV2Config) => ContextEngineMemoryV2Plugin | Promise<ContextEngineMemoryV2Plugin>) => void;
26
+ registerTool?<TParams>(definition: {
27
+ name: string;
28
+ description: string;
29
+ parameters: Record<string, unknown>;
30
+ execute(invocationId: string, params: TParams): Promise<{
31
+ content: {
32
+ type: "text";
33
+ text: string;
34
+ }[];
35
+ }>;
36
+ }): void;
37
+ [TOOLS_REGISTERED_KEY]?: boolean;
38
+ [ENGINE_REGISTERED_KEY]?: boolean;
39
+ };
40
+ export declare function register(api: UnifiedPluginApi): void;
41
+ export declare function activate(api: UnifiedPluginApi): Promise<void>;
42
+ export {};
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAKV,cAAc,EAEf,MAAM,gCAAgC,CAAC;AAIxC,QAAA,MAAM,oBAAoB,eAA+C,CAAC;AAC1E,QAAA,MAAM,qBAAqB,eAAwD,CAAC;AAUpF,KAAK,gBAAgB,GAAG;IACtB,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EACvD,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,KAC9D,IAAI,CAAC;IACV,EAAE,CAAC,EAAE,CACH,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAA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