corvusmem 0.2.0 → 0.2.1

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,11 @@ Format based on [Keep a Changelog](https://keepachangelog.com/); versions follow
5
5
 
6
6
  ## [Unreleased]
7
7
  ### Changed
8
+ - The memory-map **zone names** now follow the UI language (English by default, Spanish with `CORVUS_LANG`/marker
9
+ `lang`), closing the last Spanish label in the injected memory map.
10
+
11
+ ## [0.2.0] — 2026-11-05
12
+ ### Changed
8
13
  - **Standalone context is now memory-only and English-first.** When Corvusmem is installed on its own, the
9
14
  `SessionStart` hook injects **only memory** (facts, open goals/todos, obsolescence/contradiction notices, the memory
10
15
  map and last-session continuity) — the work-method block (plan, skills, devlog, stack, design system, conventions)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corvusmem",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
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/facts.mjs CHANGED
@@ -1269,8 +1269,13 @@ function lexicoDe(dimension) { return LEXICO_TOKENS.get(dimension.slice(dimensio
1269
1269
  // ---------------------------------------------------------------- mapa de la memoria (X-T9)
1270
1270
  // Para que el agente SEPA qué hay y qué puede consultar (no solo lo que coincide con un mensaje): los temas de cada
1271
1271
  // zona, cuántas decisiones y entradas del devlog. Corto: es un índice, no el contenido.
1272
- const NOMBRE_ZONA = { frontal: 'objetivos, pendientes y límites', parietal: 'el proyecto', temporal: 'el usuario', hipocampo: 'aprendizajes y notas' };
1273
- export function mapaMemoria(root, { ahora = hoy(), maxTemas = 12 } = {}) {
1272
+ const NOMBRE_ZONA = {
1273
+ frontal: { en: 'goals, todos and limits', es: 'objetivos, pendientes y límites' },
1274
+ parietal: { en: 'the project', es: 'el proyecto' },
1275
+ temporal: { en: 'the user', es: 'el usuario' },
1276
+ hipocampo: { en: 'learnings and notes', es: 'aprendizajes y notas' },
1277
+ };
1278
+ export function mapaMemoria(root, { ahora = hoy(), maxTemas = 12, lang = localeUI(root) } = {}) {
1274
1279
  const vig = todosLosHechos(root).filter(h => vigente(h, ahora) || h.estado === 'dudoso');
1275
1280
  const zonas = {};
1276
1281
  for (const h of vig) {
@@ -1282,7 +1287,7 @@ export function mapaMemoria(root, { ahora = hoy(), maxTemas = 12 } = {}) {
1282
1287
  const entradas = entradasDelDevlog(root, 100000);
1283
1288
  return {
1284
1289
  hechos: vig.length,
1285
- zonas: Object.entries(NOMBRE_ZONA).filter(([z]) => zonas[z]).map(([z, nombre]) => ({ zona: z, nombre, temas: [...zonas[z].keys()].slice(0, maxTemas), mas: Math.max(0, zonas[z].size - maxTemas) })),
1290
+ zonas: Object.entries(NOMBRE_ZONA).filter(([z]) => zonas[z]).map(([z, nombre]) => ({ zona: z, nombre: nombre[lang] || nombre.en, temas: [...zonas[z].keys()].slice(0, maxTemas), mas: Math.max(0, zonas[z].size - maxTemas) })),
1286
1291
  decisiones, reglas, entradas: entradas.length, ultima: entradas[0] ? { num: entradas[0].devlog, titulo: entradas[0].valor } : null,
1287
1292
  };
1288
1293
  }