opencode-mem 2.12.1 → 2.13.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/dist/plugin.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- #!/usr/bin/env node
2
1
  declare const OpenCodeMemPlugin: import("@opencode-ai/plugin").Plugin;
3
2
  export { OpenCodeMemPlugin };
4
- export default OpenCodeMemPlugin;
3
+ declare const _default: {
4
+ server: import("@opencode-ai/plugin").Plugin;
5
+ };
6
+ export default _default;
5
7
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":";AACA,QAAA,MAAQ,iBAAiB,sCAA+B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,QAAA,MAAQ,iBAAiB,sCAA+B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,CAAC;;;;AAC7B,wBAAoE"}
package/dist/plugin.js CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  const { OpenCodeMemPlugin } = await import("./index.js");
3
2
  export { OpenCodeMemPlugin };
4
- export default OpenCodeMemPlugin;
3
+ export default { server: OpenCodeMemPlugin };
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "opencode-mem",
3
- "version": "2.12.1",
3
+ "version": "2.13.0",
4
4
  "description": "OpenCode plugin that gives coding agents persistent memory using local vector database",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/plugin.js",
11
+ "types": "./dist/index.d.ts"
12
+ },
13
+ "./server": {
14
+ "import": "./dist/plugin.js",
15
+ "types": "./dist/index.d.ts"
16
+ }
17
+ },
8
18
  "scripts": {
9
19
  "build": "bunx tsc && mkdir -p dist/web && cp -r src/web/* dist/web/",
10
20
  "dev": "tsc --watch",
@@ -35,8 +45,8 @@
35
45
  "dependencies": {
36
46
  "@ai-sdk/anthropic": "^3.0.58",
37
47
  "@ai-sdk/openai": "^3.0.41",
38
- "@opencode-ai/plugin": "^1.0.162",
39
- "@opencode-ai/sdk": "^1.2.26",
48
+ "@opencode-ai/plugin": "^1.3.0",
49
+ "@opencode-ai/sdk": "^1.3.0",
40
50
  "@xenova/transformers": "^2.17.2",
41
51
  "ai": "^6.0.116",
42
52
  "franc-min": "^6.2.0",