opencode-memoir 1.1.9 → 2.0.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 +17 -80
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +142 -1109
- package/dist/index.js.map +4 -4
- package/dist/memory-saver.d.ts +6 -0
- package/dist/memory-saver.d.ts.map +1 -0
- package/dist/store.d.ts +13 -111
- package/dist/store.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/capture-hooks.d.ts +0 -7
- package/dist/capture-hooks.d.ts.map +0 -1
- package/dist/capture.d.ts +0 -44
- package/dist/capture.d.ts.map +0 -1
- package/dist/commands.d.ts +0 -12
- package/dist/commands.d.ts.map +0 -1
- package/dist/memoir-ops.d.ts +0 -7
- package/dist/memoir-ops.d.ts.map +0 -1
- package/dist/recall-gate.d.ts +0 -27
- package/dist/recall-gate.d.ts.map +0 -1
- package/dist/session-context.d.ts +0 -8
- package/dist/session-context.d.ts.map +0 -1
- package/dist/tools.d.ts +0 -49
- package/dist/tools.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -15
- package/dist/utils.d.ts.map +0 -1
package/dist/tools.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export declare const memoirTools: {
|
|
2
|
-
memoir_status: {
|
|
3
|
-
description: string;
|
|
4
|
-
args: {};
|
|
5
|
-
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
6
|
-
};
|
|
7
|
-
memoir_remember: {
|
|
8
|
-
description: string;
|
|
9
|
-
args: {
|
|
10
|
-
content: import("zod").ZodString;
|
|
11
|
-
path: import("zod").ZodString;
|
|
12
|
-
namespace: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
-
replace: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
14
|
-
};
|
|
15
|
-
execute(args: {
|
|
16
|
-
content: string;
|
|
17
|
-
path: string;
|
|
18
|
-
namespace?: string | undefined;
|
|
19
|
-
replace?: boolean | undefined;
|
|
20
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
21
|
-
};
|
|
22
|
-
memoir_recall: {
|
|
23
|
-
description: string;
|
|
24
|
-
args: {
|
|
25
|
-
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
-
namespace: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
-
namespaces: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
28
|
-
includeMetrics: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
29
|
-
};
|
|
30
|
-
execute(args: {
|
|
31
|
-
query?: string | undefined;
|
|
32
|
-
namespace?: string | undefined;
|
|
33
|
-
namespaces?: string[] | undefined;
|
|
34
|
-
includeMetrics?: boolean | undefined;
|
|
35
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
36
|
-
};
|
|
37
|
-
memoir_get: {
|
|
38
|
-
description: string;
|
|
39
|
-
args: {
|
|
40
|
-
keys: import("zod").ZodArray<import("zod").ZodString>;
|
|
41
|
-
namespace: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
-
};
|
|
43
|
-
execute(args: {
|
|
44
|
-
keys: string[];
|
|
45
|
-
namespace?: string | undefined;
|
|
46
|
-
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=tools.d.ts.map
|
package/dist/tools.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AA0JA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvB,CAAC"}
|
package/dist/utils.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** Shared helpers for the Memoir OpenCode plugin.
|
|
2
|
-
*
|
|
3
|
-
* IMPORTANT: these must NOT be exported from index.ts — OpenCode's plugin
|
|
4
|
-
* loader treats every module export as a plugin and throws
|
|
5
|
-
* "Plugin export is not a function" on non-function exports.
|
|
6
|
-
*/
|
|
7
|
-
export declare function coercePaths(path: string | string[] | undefined): string[];
|
|
8
|
-
/** Format JSON string with 2-space indentation. Passes non-JSON through unchanged. */
|
|
9
|
-
export declare function tryPrettyJson(text: string): string;
|
|
10
|
-
/** Max keys memoir_get accepts to avoid hitting OS arg-length limits. */
|
|
11
|
-
export declare const MEMOIR_GET_MAX_KEYS = 20;
|
|
12
|
-
export declare const SECRET_PATTERN: RegExp;
|
|
13
|
-
/** Safely extract a display string from an unknown thrown value. */
|
|
14
|
-
export declare function errorMessage(e: unknown): string;
|
|
15
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,CAGzE;AAED,sFAAsF;AACtF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,eAAO,MAAM,cAAc,QAe1B,CAAC;AAEF,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAE/C"}
|