opencode-codex-memory 0.6.2 → 0.6.3
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 +5 -5
- package/dist/src/git-baseline.js +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ If you want the mental model before the details, jump to
|
|
|
52
52
|
|
|
53
53
|
```json
|
|
54
54
|
{
|
|
55
|
-
"plugin": ["opencode-codex-memory@0.6.
|
|
55
|
+
"plugin": ["opencode-codex-memory@0.6.3"]
|
|
56
56
|
}
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -254,7 +254,7 @@ To set options, turn the plugin entry into a `[name, options]` pair:
|
|
|
254
254
|
```json
|
|
255
255
|
{
|
|
256
256
|
"plugin": [
|
|
257
|
-
["opencode-codex-memory@0.6.
|
|
257
|
+
["opencode-codex-memory@0.6.3", { "disable_on_external_context": true, "min_rollout_idle_hours": 2 }]
|
|
258
258
|
]
|
|
259
259
|
}
|
|
260
260
|
```
|
|
@@ -316,7 +316,7 @@ Off by default; no changes to Codex's own config are required.
|
|
|
316
316
|
{
|
|
317
317
|
"plugin": [
|
|
318
318
|
[
|
|
319
|
-
"opencode-codex-memory@0.6.
|
|
319
|
+
"opencode-codex-memory@0.6.3",
|
|
320
320
|
{ "codex_interop": { "import": true, "export": true } }
|
|
321
321
|
]
|
|
322
322
|
]
|
|
@@ -373,7 +373,7 @@ from the project memories Claude already keeps on your machine. **One-way only**
|
|
|
373
373
|
```json
|
|
374
374
|
{
|
|
375
375
|
"plugin": [
|
|
376
|
-
["opencode-codex-memory@0.6.
|
|
376
|
+
["opencode-codex-memory@0.6.3", { "claude_import": { "enabled": true } }]
|
|
377
377
|
]
|
|
378
378
|
}
|
|
379
379
|
```
|
|
@@ -400,7 +400,7 @@ Claude names each project with an opaque id (a folder under
|
|
|
400
400
|
{
|
|
401
401
|
"plugin": [
|
|
402
402
|
[
|
|
403
|
-
"opencode-codex-memory@0.6.
|
|
403
|
+
"opencode-codex-memory@0.6.3",
|
|
404
404
|
{
|
|
405
405
|
"claude_import": {
|
|
406
406
|
"enabled": true,
|
package/dist/src/git-baseline.js
CHANGED
|
@@ -9,6 +9,15 @@ const AUTHOR = { name: "opencode-codex-memory", email: "memory@opencode.local" }
|
|
|
9
9
|
// commits (mirrors codex's remove_workspace_diff) so it never enters the
|
|
10
10
|
// baseline history or shows up as memory content.
|
|
11
11
|
export const DIFF_ARTIFACT = "phase2_workspace_diff.md";
|
|
12
|
+
/**
|
|
13
|
+
* Hidden path components are invisible to tools/path-guard (`not found`).
|
|
14
|
+
* Codex's gix walker includes them and reads bytes directly; isomorphic-git
|
|
15
|
+
* plus path-guard would fail the whole phase-2 job on Finder `.DS_Store`.
|
|
16
|
+
* Skip them from staging and diffs — they are not consolidator-visible.
|
|
17
|
+
*/
|
|
18
|
+
function isHiddenBaselinePath(filepath) {
|
|
19
|
+
return filepath.split("/").some((part) => part.startsWith("."));
|
|
20
|
+
}
|
|
12
21
|
function removeDiffArtifact(dir) {
|
|
13
22
|
try {
|
|
14
23
|
fs.unlinkSync(path.join(dir, DIFF_ARTIFACT));
|
|
@@ -50,6 +59,8 @@ async function stageAll(dir) {
|
|
|
50
59
|
const matrix = await isogit.statusMatrix({ fs, dir });
|
|
51
60
|
let changes = 0;
|
|
52
61
|
for (const [filepath, head, workdir, stage] of matrix) {
|
|
62
|
+
if (isHiddenBaselinePath(filepath))
|
|
63
|
+
continue;
|
|
53
64
|
if (head === 1 && workdir === 1 && stage === 1)
|
|
54
65
|
continue;
|
|
55
66
|
if (workdir === 0) {
|
|
@@ -132,7 +143,7 @@ export async function captureWorkspaceDiff() {
|
|
|
132
143
|
await ensureInit(dir);
|
|
133
144
|
removeDiffArtifact(dir);
|
|
134
145
|
const matrix = await isogit.statusMatrix({ fs, dir });
|
|
135
|
-
const changedRows = matrix.filter(([filepath, head, workdir]) => head !== workdir && filepath !== DIFF_ARTIFACT);
|
|
146
|
+
const changedRows = matrix.filter(([filepath, head, workdir]) => head !== workdir && filepath !== DIFF_ARTIFACT && !isHiddenBaselinePath(filepath));
|
|
136
147
|
const changes = changedRows.map(([filepath, head, workdir]) => {
|
|
137
148
|
if (head === 0)
|
|
138
149
|
return { status: "A", path: filepath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-codex-memory",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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",
|