@ephemushroom/opencode-claude-mem 0.4.3 → 0.5.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 +179 -45
- package/dist/cli.d.ts +17 -0
- package/dist/cli.js +694 -0
- package/dist/index.js +2126 -2119
- package/dist/package-server.d.ts +7 -0
- package/dist/package-server.js +10 -0
- package/dist/package-tui.d.ts +6 -0
- package/dist/package-tui.js +8 -0
- package/dist/shared.d.ts +14 -0
- package/dist/sidebar-model.d.ts +50 -0
- package/dist/tui-registration.d.ts +7 -0
- package/dist/tui.d.ts +0 -36
- package/dist/tui.js +30 -32
- package/dist/v2.d.ts +22 -0
- package/dist/v2.js +992 -0
- package/dist/worker-client.d.ts +6 -6
- package/package.json +28 -13
package/dist/worker-client.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export interface SearchOptions {
|
|
|
16
16
|
readonly offset?: number;
|
|
17
17
|
readonly orderBy?: SearchOrder;
|
|
18
18
|
}
|
|
19
|
+
export interface ObservedMetadata {
|
|
20
|
+
readonly observedModel?: string;
|
|
21
|
+
readonly observedBilling?: string;
|
|
22
|
+
}
|
|
19
23
|
export declare function parseWorkerEndpoint(env: Record<string, string | undefined>, rawSettings: string | null): WorkerEndpoint;
|
|
20
24
|
export declare function buildSearchParams(options: SearchOptions): URLSearchParams;
|
|
21
25
|
export declare class WorkerClient {
|
|
@@ -64,15 +68,11 @@ export declare class WorkerClient {
|
|
|
64
68
|
/**
|
|
65
69
|
* Send observation
|
|
66
70
|
*/
|
|
67
|
-
static sendObservation(contentSessionId: string, toolName: string, toolInput:
|
|
71
|
+
static sendObservation(contentSessionId: string, toolName: string, toolInput: unknown, toolResponse: unknown, cwd: string, toolUseId?: string): Promise<boolean>;
|
|
68
72
|
/**
|
|
69
73
|
* Trigger summarization
|
|
70
74
|
*/
|
|
71
|
-
static summarize(contentSessionId: string, lastUserMessage: string, lastAssistantMessage: string): Promise<
|
|
72
|
-
/**
|
|
73
|
-
* Complete session
|
|
74
|
-
*/
|
|
75
|
-
static completeSession(contentSessionId: string): Promise<void>;
|
|
75
|
+
static summarize(contentSessionId: string, lastUserMessage: string, lastAssistantMessage: string, metadata?: ObservedMetadata): Promise<boolean>;
|
|
76
76
|
/**
|
|
77
77
|
* Get pre-formatted context for system prompt injection.
|
|
78
78
|
* Uses /api/context/inject which returns rich markdown with observations + session summaries.
|
package/package.json
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ephemushroom/opencode-claude-mem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "OpenCode plugin for Claude-Mem persistent memory system",
|
|
5
|
-
"main": "./dist/
|
|
6
|
-
"types": "./dist/
|
|
5
|
+
"main": "./dist/package-server.js",
|
|
6
|
+
"types": "./dist/package-server.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"types": "./dist/
|
|
14
|
-
"import": "./dist/
|
|
13
|
+
"types": "./dist/package-server.d.ts",
|
|
14
|
+
"import": "./dist/package-server.js"
|
|
15
|
+
},
|
|
16
|
+
"./v2": {
|
|
17
|
+
"types": "./dist/v2.d.ts",
|
|
18
|
+
"import": "./dist/v2.js"
|
|
15
19
|
},
|
|
16
20
|
"./server": {
|
|
17
|
-
"types": "./dist/
|
|
18
|
-
"import": "./dist/
|
|
21
|
+
"types": "./dist/package-server.d.ts",
|
|
22
|
+
"import": "./dist/package-server.js"
|
|
19
23
|
},
|
|
20
24
|
"./tui": {
|
|
21
|
-
"types": "./dist/tui.d.ts",
|
|
22
|
-
"import": "./dist/tui.js"
|
|
25
|
+
"types": "./dist/package-tui.d.ts",
|
|
26
|
+
"import": "./dist/package-tui.js"
|
|
27
|
+
},
|
|
28
|
+
"./cli": {
|
|
29
|
+
"types": "./dist/cli.d.ts",
|
|
30
|
+
"import": "./dist/cli.js"
|
|
23
31
|
}
|
|
24
32
|
},
|
|
25
33
|
"scripts": {
|
|
26
|
-
"build": "bun build src/index.ts --outfile dist/index.js --target bun --format esm && bun build src/tui.ts --outfile dist/tui.js --target bun --format esm --external @opentui/solid --external solid-js && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
34
|
+
"build": "bun build src/index.ts --outfile dist/index.js --target bun --format esm && bun build src/v2.ts --outfile dist/v2.js --target bun --format esm && bun build src/tui.ts --outfile dist/tui.js --target bun --format esm --external @opentui/solid --external solid-js && bun build src/cli.ts --outfile dist/cli.js --target bun --format esm --external @opentui/solid --external solid-js && bun build src/package-server.ts src/package-tui.ts --outdir dist --target bun --format esm --external '*' && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
27
35
|
"dev": "tsc --watch",
|
|
28
36
|
"clean": "rm -rf dist",
|
|
29
37
|
"lint": "oxlint",
|
|
@@ -52,11 +60,18 @@
|
|
|
52
60
|
"publishConfig": {
|
|
53
61
|
"access": "public"
|
|
54
62
|
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@opentui/solid": "0.5.1"
|
|
65
|
+
},
|
|
55
66
|
"devDependencies": {
|
|
56
|
-
"@opencode-ai/plugin": "^1.
|
|
67
|
+
"@opencode-ai/plugin": "^1.14.41",
|
|
68
|
+
"@opencode-ai/plugin-v2": "npm:@opencode-ai/plugin@0.0.0-beta-19151",
|
|
69
|
+
"@opencode-ai/theme": "^0.0.0-next-17030",
|
|
70
|
+
"@opentui/core": "0.5.1",
|
|
57
71
|
"@types/bun": "latest",
|
|
58
72
|
"oxfmt": "^0.33.0",
|
|
59
|
-
"oxlint": "^1.
|
|
60
|
-
"
|
|
73
|
+
"oxlint": "^1.63.0",
|
|
74
|
+
"solid-js": "1.9.14",
|
|
75
|
+
"typescript": "^5.9.3"
|
|
61
76
|
}
|
|
62
77
|
}
|