@h-rig/memory-plugin 0.0.6-alpha.156
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 +1 -0
- package/dist/src/cli.d.ts +14 -0
- package/dist/src/cli.js +1500 -0
- package/dist/src/db.d.ts +8 -0
- package/dist/src/db.js +751 -0
- package/dist/src/embed.d.ts +22 -0
- package/dist/src/embed.js +284 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +1628 -0
- package/dist/src/plugin.d.ts +4 -0
- package/dist/src/plugin.js +1579 -0
- package/dist/src/query.d.ts +12 -0
- package/dist/src/query.js +291 -0
- package/dist/src/read.d.ts +12 -0
- package/dist/src/read.js +314 -0
- package/dist/src/service.d.ts +14 -0
- package/dist/src/service.js +1511 -0
- package/dist/src/write.d.ts +27 -0
- package/dist/src/write.js +1033 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @h-rig/memory-plugin
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { promoteCanonicalMemoryEvent } from "./write";
|
|
2
|
+
import { type MemoryEventInput, type MemoryQueryResult } from "@rig/contracts";
|
|
3
|
+
import type { RuntimeTaskContext } from "@rig/runtime/control-plane/runtime/context";
|
|
4
|
+
import type { ExecuteMemoryCommandOptions } from "@rig/runtime/control-plane/memory-service-port";
|
|
5
|
+
export type { ExecuteMemoryCommandOptions };
|
|
6
|
+
type ExecuteMemoryCommandDeps = {
|
|
7
|
+
currentBranch: (projectRoot: string) => string;
|
|
8
|
+
ensureRuntimeMemoryUsable: (runtimeContext: RuntimeTaskContext | null) => Promise<void>;
|
|
9
|
+
syncRuntimeMemory: (runtimeContext: RuntimeTaskContext | null, event: MemoryEventInput) => Promise<void>;
|
|
10
|
+
lookupRelevantMemory: (runtimeContext: RuntimeTaskContext | null, query: string) => Promise<MemoryQueryResult[]>;
|
|
11
|
+
memorySummaryForKey: (runtimeContext: RuntimeTaskContext | null, canonicalKey: string) => Promise<string | null>;
|
|
12
|
+
promoteCanonicalMemoryEvent: typeof promoteCanonicalMemoryEvent;
|
|
13
|
+
};
|
|
14
|
+
export declare function executeMemoryCommand(options: ExecuteMemoryCommandOptions, deps?: Partial<ExecuteMemoryCommandDeps>): Promise<string>;
|