corvusmem 0.3.2 → 0.3.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/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ Format based on [Keep a Changelog](https://keepachangelog.com/); versions follow
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.3.3] — 2026-11-07
9
+ ### Fixed
10
+ - **A stray `senzu/` folder no longer hijacks Corvus's standalone memory.** Corvus coupled to Senzu whenever a
11
+ `senzu/` directory existed — but a **globally-installed Senzu** writes `senzu/memoria/` into *any* project its
12
+ hooks touch, so in a Corvus-only project the memory got split between `senzu/` and `.corvusmem/` and never
13
+ migrated to English. Corvus now couples only to a **real Senzu install** (its `senzu.json` marker, or a legacy
14
+ `.dev-standards.json`/root `devlog` layout); a bare `senzu/` folder is ignored and Corvus keeps its own
15
+ `.corvusmem/memory/`.
16
+
8
17
  ## [0.3.2] — 2026-11-07
9
18
  ### Changed
10
19
  - **`/corvus-absorb` now mines the whole doc tier, not just `CLAUDE.md`.** The command was too conservative with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corvusmem",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Deterministic, offline, zero-dependency memory for AI coding agents (Claude Code, Codex) and a standalone CLI.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib.mjs CHANGED
@@ -93,13 +93,21 @@ export const CARPETA_CORVUS = '.corvusmem'; // Corvus's own folder (standalo
93
93
  export function esLegado(root) {
94
94
  return !fs.existsSync(path.join(root, CARPETA)) && (fs.existsSync(path.join(root, '.dev-standards.json')) || fs.existsSync(path.join(root, 'devlog')));
95
95
  }
96
- // Base folder for this project's memory & config. Couple to Senzu when the project uses it
97
- // (senzu/ dir or legacy marker); otherwise Corvus lives standalone in its own .corvusmem/.
96
+ // A REAL Senzu install carries its marker (senzu.json, or legacy .dev-standards.json). A bare senzu/ folder does NOT
97
+ // mean the project uses Senzu: a globally-installed Senzu writes senzu/memoria/ into ANY project its hooks touch, and
98
+ // that stray folder must not hijack Corvus's standalone .corvusmem/. So we couple on the MARKER, never on the folder.
99
+ export function esSenzu(root) {
100
+ return fs.existsSync(path.join(root, CARPETA, 'senzu.json'))
101
+ || fs.existsSync(path.join(root, CARPETA, '.dev-standards.json'))
102
+ || fs.existsSync(path.join(root, '.dev-standards.json'));
103
+ }
104
+ // Base folder for this project's memory & config. Couple to Senzu only when the project REALLY uses it (its marker,
105
+ // or a legacy layout); otherwise Corvus lives standalone in its own .corvusmem/ — even if a stray senzu/ folder exists.
98
106
  export function carpetaBase(root) {
99
- if (fs.existsSync(path.join(root, CARPETA))) return CARPETA; // Senzu present -> couple (expected)
107
+ if (esSenzu(root)) return CARPETA; // real Senzu install (marker) -> couple (expected)
100
108
  if (fs.existsSync(path.join(root, CARPETA_CORVUS))) return CARPETA_CORVUS; // Corvus dir already here -> keep it
101
109
  if (esLegado(root)) return CARPETA; // legacy Senzu project (root devlog / .dev-standards.json)
102
- return CARPETA_CORVUS; // brand-new, no Senzu -> Corvus owns its dir
110
+ return CARPETA_CORVUS; // no real Senzu (even a stray senzu/) -> Corvus owns its dir
103
111
  }
104
112
  // Facts storage names. Standalone (Corvus's own .corvusmem/) uses English names; coupled to Senzu (or a legacy
105
113
  // layout) keeps Senzu's Spanish names, because the file is SHARED with Senzu and must stay compatible.