@ephemushroom/opencode-claude-mem 0.4.4 → 0.6.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.
@@ -16,8 +16,13 @@ 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;
25
+ export declare function getWorkerBaseUrl(): string;
21
26
  export declare class WorkerClient {
22
27
  private static readonly BASE_URL;
23
28
  /** Per-process guard so multiple OpenCode windows don't all spawn workers. */
@@ -60,19 +65,17 @@ export declare class WorkerClient {
60
65
  static sessionInit(contentSessionId: string, project: string, prompt: string): Promise<{
61
66
  sessionDbId: number;
62
67
  promptNumber: number;
68
+ skipped?: boolean;
69
+ reason?: string;
63
70
  } | null>;
64
71
  /**
65
72
  * Send observation
66
73
  */
67
- static sendObservation(contentSessionId: string, toolName: string, toolInput: any, toolResponse: any, cwd: string): Promise<void>;
74
+ static sendObservation(contentSessionId: string, toolName: string, toolInput: unknown, toolResponse: unknown, cwd: string, toolUseId?: string): Promise<boolean>;
68
75
  /**
69
76
  * Trigger summarization
70
77
  */
71
- static summarize(contentSessionId: string, lastUserMessage: string, lastAssistantMessage: string): Promise<void>;
72
- /**
73
- * Complete session
74
- */
75
- static completeSession(contentSessionId: string): Promise<void>;
78
+ static summarize(contentSessionId: string, lastUserMessage: string, lastAssistantMessage: string, metadata?: ObservedMetadata): Promise<boolean>;
76
79
  /**
77
80
  * Get pre-formatted context for system prompt injection.
78
81
  * 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.4.4",
3
+ "version": "0.6.0",
4
4
  "description": "OpenCode plugin for Claude-Mem persistent memory system",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
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/index.d.ts",
14
- "import": "./dist/index.js"
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/index.d.ts",
18
- "import": "./dist/index.js"
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 --outdir dist --target bun --format esm --external '*' && bun src/build-tui-bridge.ts && tsc -p tsconfig.build.json --emitDeclarationOnly",
27
35
  "dev": "tsc --watch",
28
36
  "clean": "rm -rf dist",
29
37
  "lint": "oxlint",
@@ -52,11 +60,19 @@
52
60
  "publishConfig": {
53
61
  "access": "public"
54
62
  },
63
+ "dependencies": {
64
+ "@opentui/solid": "0.5.1"
65
+ },
55
66
  "devDependencies": {
56
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
73
  "oxlint": "^1.63.0",
60
- "typescript": "^5.9.3"
74
+ "solid-js": "1.9.14",
75
+ "typescript": "^5.9.3",
76
+ "zod": "4.1.8"
61
77
  }
62
78
  }