opencode-codex-memory 0.7.5 → 0.7.6

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 CHANGED
@@ -53,7 +53,7 @@ If you want the mental model — learning, remembering, forgetting — see
53
53
 
54
54
  ```json
55
55
  {
56
- "plugin": ["opencode-codex-memory@0.7.5"]
56
+ "plugin": ["opencode-codex-memory@0.7.6"]
57
57
  }
58
58
  ```
59
59
 
@@ -73,7 +73,7 @@ V2 plugin syntax:
73
73
 
74
74
  ```jsonc
75
75
  {
76
- "plugins": [{ "package": "opencode-codex-memory@0.7.5" }],
76
+ "plugins": [{ "package": "opencode-codex-memory@0.7.6" }],
77
77
  }
78
78
  ```
79
79
 
@@ -208,7 +208,7 @@ To set options, turn the plugin entry into a `[name, options]` pair:
208
208
  ```json
209
209
  {
210
210
  "plugin": [
211
- ["opencode-codex-memory@0.7.5", { "disable_on_external_context": true, "min_rollout_idle_hours": 2 }]
211
+ ["opencode-codex-memory@0.7.6", { "disable_on_external_context": true, "min_rollout_idle_hours": 2 }]
212
212
  ]
213
213
  }
214
214
  ```
@@ -280,7 +280,7 @@ dedicated directory:
280
280
  ```json
281
281
  {
282
282
  "plugin": [
283
- ["opencode-codex-memory@0.7.5", { "home": "/path/to/opencode-memory" }]
283
+ ["opencode-codex-memory@0.7.6", { "home": "/path/to/opencode-memory" }]
284
284
  ]
285
285
  }
286
286
  ```
@@ -290,7 +290,7 @@ OpenCode 2:
290
290
  ```jsonc
291
291
  {
292
292
  "plugins": [
293
- { "package": "opencode-codex-memory@0.7.5", "options": { "home": "/path/to/opencode-memory" } }
293
+ { "package": "opencode-codex-memory@0.7.6", "options": { "home": "/path/to/opencode-memory" } }
294
294
  ]
295
295
  }
296
296
  ```
@@ -325,7 +325,7 @@ Off by default; no changes to Codex's own config are required.
325
325
  {
326
326
  "plugin": [
327
327
  [
328
- "opencode-codex-memory@0.7.5",
328
+ "opencode-codex-memory@0.7.6",
329
329
  { "codex_interop": { "import": true, "export": true } }
330
330
  ]
331
331
  ]
@@ -382,7 +382,7 @@ from the project memories Claude already keeps on your machine. **One-way only**
382
382
  ```json
383
383
  {
384
384
  "plugin": [
385
- ["opencode-codex-memory@0.7.5", { "claude_import": { "enabled": true } }]
385
+ ["opencode-codex-memory@0.7.6", { "claude_import": { "enabled": true } }]
386
386
  ]
387
387
  }
388
388
  ```
@@ -409,7 +409,7 @@ Claude names each project with an opaque id (a folder under
409
409
  {
410
410
  "plugin": [
411
411
  [
412
- "opencode-codex-memory@0.7.5",
412
+ "opencode-codex-memory@0.7.6",
413
413
  {
414
414
  "claude_import": {
415
415
  "enabled": true,
@@ -3,5 +3,5 @@
3
3
  * the TUI renders fenced `memory-citation` blocks, so the V2 context hook
4
4
  * overlays this section onto the shared inject prompt.
5
5
  */
6
- export declare const V2_CITATION_INSTRUCTIONS = "Memory citation requirements:\n\n- If ANY relevant memory files were used: append exactly one fenced code\n block with the language tag `memory-citation` as the VERY LAST content of\n the final reply. Normal responses should include the answer first, then\n append the block at the end. The host renders this block natively.\n- Use this exact structure for programmatic parsing:\n````\n```memory-citation\nMEMORY.md:234-236|note=build command for the api service\nrollout_summaries/2026-02-17T21-23-02-ln3m-example.md:10-12|note=weekly report format\nsessions: ses_abc123 ses_def456\n```\n````\n- Do not wrap it in `<memory-citation>` XML tags; the fenced form replaces\n that older format.\n- Citation entry lines are for rendering:\n - one citation entry per line\n - format: `<file>:<line_start>-<line_end>|note=<how memory was used>`\n - use file paths relative to the memory base path (for example, `MEMORY.md`,\n `rollout_summaries/...`, `skills/...`)\n - only cite files actually used under the memory base path (do not cite\n workspace files as memory citations)\n - if you used `MEMORY.md` and then a rollout summary/skill file, cite both\n - list entries in order of importance (most important first)\n - `note` should be short, single-line, and use simple characters only (avoid\n unusual symbols, no newlines)\n- The final `sessions:` line is for us to track which past sessions you find\n useful:\n - one line, space-separated session ids after `sessions:`\n - session ids look like `ses_...` and appear in rollout summary files and\n MEMORY.md as `session_id:`\n - include unique ids only; do not repeat ids\n - omit the `sessions:` line if no session ids are available\n - do not include file paths or notes on this line\n - for every citation entry, try to find and cite the corresponding session id\n- Never include memory citations inside pull-request messages.\n- Never cite blank lines; double-check ranges.\n\n";
6
+ export declare const V2_CITATION_INSTRUCTIONS = "Memory citation requirements:\n\n- If ANY relevant memory files were used: append exactly one fenced code\n block with the language tag `memory-citation` as the VERY LAST content of\n the final reply. Answer first, then a blank line, then the block. The\n opening fence must be on its own line at column 0 \u2014 never glue it to the\n last sentence, or markdown clients treat the block as paragraph text and\n collapse its newlines. The host renders this block natively.\n- Use this exact structure for programmatic parsing (blank line before the\n fence is required):\n````\nanswer text ends here.\n\n```memory-citation\nMEMORY.md:234-236|note=build command for the api service\nrollout_summaries/2026-02-17T21-23-02-ln3m-example.md:10-12|note=weekly report format\nsessions: ses_abc123 ses_def456\n```\n````\n- Do not wrap it in `<memory-citation>` XML tags; the fenced form replaces\n that older format.\n- Citation entry lines are for rendering:\n - one citation entry per line\n - format: `<file>:<line_start>-<line_end>|note=<how memory was used>`\n - use file paths relative to the memory base path (for example, `MEMORY.md`,\n `rollout_summaries/...`, `skills/...`)\n - only cite files actually used under the memory base path (do not cite\n workspace files as memory citations)\n - if you used `MEMORY.md` and then a rollout summary/skill file, cite both\n - list entries in order of importance (most important first)\n - `note` should be short, single-line, and use simple characters only (avoid\n unusual symbols, no newlines)\n- The final `sessions:` line is for us to track which past sessions you find\n useful:\n - one line, space-separated session ids after `sessions:`\n - session ids look like `ses_...` and appear in rollout summary files and\n MEMORY.md as `session_id:`\n - include unique ids only; do not repeat ids\n - omit the `sessions:` line if no session ids are available\n - do not include file paths or notes on this line\n - for every citation entry, try to find and cite the corresponding session id\n- Never include memory citations inside pull-request messages.\n- Never cite blank lines; double-check ranges.\n\n";
7
7
  export declare function overlayV2CitationInstructions(prompt: string): string;
@@ -7,10 +7,15 @@ export const V2_CITATION_INSTRUCTIONS = `Memory citation requirements:
7
7
 
8
8
  - If ANY relevant memory files were used: append exactly one fenced code
9
9
  block with the language tag \`memory-citation\` as the VERY LAST content of
10
- the final reply. Normal responses should include the answer first, then
11
- append the block at the end. The host renders this block natively.
12
- - Use this exact structure for programmatic parsing:
10
+ the final reply. Answer first, then a blank line, then the block. The
11
+ opening fence must be on its own line at column 0 never glue it to the
12
+ last sentence, or markdown clients treat the block as paragraph text and
13
+ collapse its newlines. The host renders this block natively.
14
+ - Use this exact structure for programmatic parsing (blank line before the
15
+ fence is required):
13
16
  \`\`\`\`
17
+ answer text ends here.
18
+
14
19
  \`\`\`memory-citation
15
20
  MEMORY.md:234-236|note=build command for the api service
16
21
  rollout_summaries/2026-02-17T21-23-02-ln3m-example.md:10-12|note=weekly report format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codex-memory",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
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",