opencode-codex-memory 0.6.5 → 0.7.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.
Files changed (41) hide show
  1. package/README.md +26 -28
  2. package/dist/opencode.json +1 -1
  3. package/dist/src/citation.d.ts +9 -0
  4. package/dist/src/citation.js +68 -11
  5. package/dist/src/db.js +10 -0
  6. package/dist/src/host-client.d.ts +1 -0
  7. package/dist/src/host-client.js +1 -0
  8. package/dist/src/index.d.ts +12 -2
  9. package/dist/src/index.js +32 -5
  10. package/dist/src/llm.d.ts +6 -0
  11. package/dist/src/llm.js +21 -10
  12. package/dist/src/phase2.d.ts +2 -0
  13. package/dist/src/phase2.js +1 -1
  14. package/dist/src/rollout-input.d.ts +6 -0
  15. package/dist/src/rollout-input.js +111 -0
  16. package/dist/src/store.d.ts +17 -1
  17. package/dist/src/store.js +90 -4
  18. package/dist/src/v2/agents.d.ts +53 -0
  19. package/dist/src/v2/agents.js +204 -0
  20. package/dist/src/v2/citation-overlay.d.ts +7 -0
  21. package/dist/src/v2/citation-overlay.js +52 -0
  22. package/dist/src/v2/index.d.ts +7 -0
  23. package/dist/src/v2/index.js +10 -0
  24. package/dist/src/v2/injection.d.ts +14 -0
  25. package/dist/src/v2/injection.js +19 -0
  26. package/dist/src/v2/plugin.d.ts +7 -0
  27. package/dist/src/v2/plugin.js +482 -0
  28. package/dist/src/v2/service.d.ts +74 -0
  29. package/dist/src/v2/service.js +173 -0
  30. package/dist/src/v2/shim.d.ts +47 -0
  31. package/dist/src/v2/shim.js +581 -0
  32. package/dist/src/v2/status-rpc.d.ts +197 -0
  33. package/dist/src/v2/status-rpc.js +159 -0
  34. package/dist/src/v2/status.d.ts +3 -0
  35. package/dist/src/v2/status.js +83 -0
  36. package/dist/src/v2/tools.d.ts +33 -0
  37. package/dist/src/v2/tools.js +57 -0
  38. package/dist/src/v2/tui.d.ts +3 -0
  39. package/dist/src/v2/tui.js +750 -0
  40. package/opencode.json +1 -1
  41. package/package.json +38 -2
package/opencode.json CHANGED
@@ -37,4 +37,4 @@
37
37
  }
38
38
  }
39
39
  }
40
- }
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codex-memory",
3
- "version": "0.6.5",
3
+ "version": "0.7.0",
4
4
  "description": "Persistent memory plugin for opencode — ports codex's two-phase memory system (extraction → consolidation → injection → citation feedback)",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -9,6 +9,18 @@
9
9
  "import": "./dist/src/index.js",
10
10
  "types": "./dist/src/index.d.ts"
11
11
  },
12
+ "./server": {
13
+ "import": "./dist/src/index.js",
14
+ "types": "./dist/src/index.d.ts"
15
+ },
16
+ "./v2": {
17
+ "import": "./dist/src/v2/index.js",
18
+ "types": "./dist/src/v2/index.d.ts"
19
+ },
20
+ "./tui": {
21
+ "types": "./dist/src/v2/tui.d.ts",
22
+ "import": "./dist/src/v2/tui.js"
23
+ },
12
24
  "./tools/*": {
13
25
  "import": "./dist/tools/*.js",
14
26
  "types": "./dist/tools/*.d.ts"
@@ -29,9 +41,10 @@
29
41
  },
30
42
  "scripts": {
31
43
  "dev": "bun --watch src/index.ts",
32
- "build": "tsc && rm -rf dist/src/templates && cp -R src/templates dist/src/templates && cp opencode.json dist/opencode.json",
44
+ "build": "tsc && bun scripts/build-tui.ts && rm -rf dist/src/templates && cp -R src/templates dist/src/templates && cp opencode.json dist/opencode.json",
33
45
  "smoke": "bun scripts/smoke.ts",
34
46
  "contract": "bun scripts/check-opencode-contract.ts",
47
+ "contract:v2": "bun scripts/check-opencode2-contract.ts",
35
48
  "live:read": "bun scripts/live-readpath.ts",
36
49
  "live:e2e": "bun scripts/live-e2e.ts",
37
50
  "prepack": "npm run build && npm run smoke",
@@ -54,9 +67,32 @@
54
67
  "xdg-basedir": "^5.1.0"
55
68
  },
56
69
  "devDependencies": {
70
+ "@opencode/client": "2.0.3",
71
+ "@opencode/plugin": "2.0.3",
72
+ "zod": "4.1.8",
73
+ "@opencode/theme": "2.0.3",
74
+ "@opentui/core": "0.5.10",
75
+ "@opentui/solid": "0.5.10",
76
+ "solid-js": "1.9.15",
57
77
  "typescript": "^5.5.0",
58
78
  "@types/bun": "^1.1.0"
59
79
  },
80
+ "peerDependencies": {
81
+ "@opencode/client": ">=2.0.3",
82
+ "@opencode/plugin": ">=2.0.3",
83
+ "@opentui/core": ">=0.5.10",
84
+ "@opentui/solid": ">=0.5.10",
85
+ "solid-js": ">=1.9.0",
86
+ "zod": ">=4"
87
+ },
88
+ "peerDependenciesMeta": {
89
+ "@opencode/client": { "optional": true },
90
+ "@opencode/plugin": { "optional": true },
91
+ "@opentui/core": { "optional": true },
92
+ "@opentui/solid": { "optional": true },
93
+ "solid-js": { "optional": true },
94
+ "zod": { "optional": true }
95
+ },
60
96
  "engines": {
61
97
  "bun": ">=1.1.0"
62
98
  }