opencode-codex-memory 0.7.1 → 0.7.2
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 +6 -6
- package/dist/src/tui.d.ts +10 -0
- package/dist/src/tui.js +24 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ If you want the mental model — learning, remembering, forgetting — see
|
|
|
52
52
|
|
|
53
53
|
```json
|
|
54
54
|
{
|
|
55
|
-
"plugin": ["opencode-codex-memory@0.7.
|
|
55
|
+
"plugin": ["opencode-codex-memory@0.7.2"]
|
|
56
56
|
}
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -72,7 +72,7 @@ V2 plugin syntax:
|
|
|
72
72
|
|
|
73
73
|
```jsonc
|
|
74
74
|
{
|
|
75
|
-
"plugins": [{ "package": "opencode-codex-memory@0.7.
|
|
75
|
+
"plugins": [{ "package": "opencode-codex-memory@0.7.2" }],
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
@@ -198,7 +198,7 @@ To set options, turn the plugin entry into a `[name, options]` pair:
|
|
|
198
198
|
```json
|
|
199
199
|
{
|
|
200
200
|
"plugin": [
|
|
201
|
-
["opencode-codex-memory@0.7.
|
|
201
|
+
["opencode-codex-memory@0.7.2", { "disable_on_external_context": true, "min_rollout_idle_hours": 2 }]
|
|
202
202
|
]
|
|
203
203
|
}
|
|
204
204
|
```
|
|
@@ -265,7 +265,7 @@ Off by default; no changes to Codex's own config are required.
|
|
|
265
265
|
{
|
|
266
266
|
"plugin": [
|
|
267
267
|
[
|
|
268
|
-
"opencode-codex-memory@0.7.
|
|
268
|
+
"opencode-codex-memory@0.7.2",
|
|
269
269
|
{ "codex_interop": { "import": true, "export": true } }
|
|
270
270
|
]
|
|
271
271
|
]
|
|
@@ -322,7 +322,7 @@ from the project memories Claude already keeps on your machine. **One-way only**
|
|
|
322
322
|
```json
|
|
323
323
|
{
|
|
324
324
|
"plugin": [
|
|
325
|
-
["opencode-codex-memory@0.7.
|
|
325
|
+
["opencode-codex-memory@0.7.2", { "claude_import": { "enabled": true } }]
|
|
326
326
|
]
|
|
327
327
|
}
|
|
328
328
|
```
|
|
@@ -349,7 +349,7 @@ Claude names each project with an opaque id (a folder under
|
|
|
349
349
|
{
|
|
350
350
|
"plugin": [
|
|
351
351
|
[
|
|
352
|
-
"opencode-codex-memory@0.7.
|
|
352
|
+
"opencode-codex-memory@0.7.2",
|
|
353
353
|
{
|
|
354
354
|
"claude_import": {
|
|
355
355
|
"enabled": true,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PluginSetup = (() => void | Promise<void>) | void;
|
|
2
|
+
declare function setup(ctx: unknown): Promise<PluginSetup>;
|
|
3
|
+
/** OpenCode 1.x TUI host: keep the package loadable. No sidebar on 1.x. */
|
|
4
|
+
declare function tui(): Promise<void>;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
id: string;
|
|
7
|
+
setup: typeof setup;
|
|
8
|
+
tui: typeof tui;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
package/dist/src/tui.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dual-host `./tui` entry.
|
|
3
|
+
*
|
|
4
|
+
* OpenCode 1.18.29+ (and 1.18.30) resolves `exports["./tui"]` and requires
|
|
5
|
+
* `default.tui()` — `readV1Plugin(..., "tui")` in strict mode. The Memory
|
|
6
|
+
* sidebar is OpenCode 2-only (`src/v2/tui.tsx`) and must not load until a
|
|
7
|
+
* V2 host calls setup(): the V2 TUI SDK is an optional peer and is missing
|
|
8
|
+
* on 1.x, so a static import there is "failed to load plugin".
|
|
9
|
+
*/
|
|
10
|
+
const PLUGIN_ID = "opencode-codex-memory.tui";
|
|
11
|
+
async function setup(ctx) {
|
|
12
|
+
const { default: plugin } = await import("./v2/tui.js");
|
|
13
|
+
const fn = plugin.setup;
|
|
14
|
+
if (typeof fn !== "function")
|
|
15
|
+
return;
|
|
16
|
+
return fn(ctx);
|
|
17
|
+
}
|
|
18
|
+
/** OpenCode 1.x TUI host: keep the package loadable. No sidebar on 1.x. */
|
|
19
|
+
async function tui() { }
|
|
20
|
+
export default {
|
|
21
|
+
id: PLUGIN_ID,
|
|
22
|
+
setup,
|
|
23
|
+
tui,
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-codex-memory",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
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",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"types": "./dist/src/v2/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./tui": {
|
|
21
|
-
"types": "./dist/src/
|
|
22
|
-
"import": "./dist/src/
|
|
21
|
+
"types": "./dist/src/tui.d.ts",
|
|
22
|
+
"import": "./dist/src/tui.js"
|
|
23
23
|
},
|
|
24
24
|
"./tools/*": {
|
|
25
25
|
"import": "./dist/tools/*.js",
|