corvusmem 0.5.0 → 0.5.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,17 @@ Format based on [Keep a Changelog](https://keepachangelog.com/); versions follow
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.5.1] — 2026-11-08
9
+ ### Changed
10
+ - **The Cortex gets a header with the crow.** The full Cortex (`/corvus-cortex`) now shows the Corvusmem crow in its
11
+ header beside the wordmark (with a soft amber glow), and the dark palette is lifted to a slightly warmer neutral —
12
+ subtle and un-saturated. The brain itself (2D and 3D) is unchanged. The footer now credits **Corvusmem** (it said
13
+ "Senzu") in all six languages.
14
+ ### Added
15
+ - **Authorship across the codebase.** Author byline in every core source file (`src/`, `cli/`, `cortex/`, `install.mjs`),
16
+ `author` in `package.json`, a credit in the README, and an `author` meta tag plus a visible footer credit in the
17
+ generated Cortex HTML.
18
+
8
19
  ## [0.5.0] — 2026-11-08
9
20
  ### Added
10
21
  - **Install Corvus as a native plugin — Claude Code and Codex.** The repo is now a Claude Code **marketplace**
@@ -18,6 +29,10 @@ Format based on [Keep a Changelog](https://keepachangelog.com/); versions follow
18
29
  **same** plugin (`hooks/hooks.json` uses `${CLAUDE_PLUGIN_ROOT}`; edits arrive as `apply_patch`). `npx corvusmem install`
19
30
  stays as the path for agents without plugin support, or a quick trial. Generate/refresh both with
20
31
  `node install.mjs --marketplace` (the release flow runs it so the plugin always carries the current version and hooks).
32
+ - **`/corvus-cortex` — open the Cortex as a command, not an `npx` call.** A new slash command (bundled in the plugin
33
+ and in `.claude/commands/`) opens your memory as a local HTML "brain" via the local CLI, falling back to `npx` only
34
+ when nothing is installed. The Cortex renderer (`cortex/`) now ships with the plugin and the install, so `--cortex`
35
+ runs locally without `npx`.
21
36
  - **Fast save/recall — no more `npx` cold start.** The memory CLI now ships *next to* the hooks — in the plugin
22
37
  (`$CLAUDE_PLUGIN_ROOT/cli/`), in a per-project install (`.corvusmem/cli/`) and in a global one
23
38
  (`~/.config/corvusmem/cli/`). The hooks pick the fastest available invocation (`node ".../cli/corvusmem.mjs"`) and
package/README.md CHANGED
@@ -18,6 +18,8 @@ and no servers. It plugs into where you already work: Claude Code / Codex (hooks
18
18
 
19
19
  🌐 [Website](https://corvusmem.vercel.app) · 📖 [Docs](https://corvusmem.vercel.app/docs) · 📊 [Benchmarks](https://corvusmem.vercel.app/benchmarks) · 📦 [npm](https://www.npmjs.com/package/corvusmem)
20
20
 
21
+ <p align="center"><sub>Built by <b>Peterson Sena</b> (<a href="https://dev.to/r3v3rs3">r3v3rs3</a>) · the crow that remembers 🐦‍⬛</sub></p>
22
+
21
23
  > **Narrative docs (what it is, the message, the Cortex, FAQ):** [`docs.md`](./docs.md). This README is the quick
22
24
  > reference for structure and commands.
23
25
 
@@ -83,15 +85,21 @@ project (`--global`, in your home). It does **not** change where memory lives: p
83
85
  your private memory.
84
86
 
85
87
  ## Usage
86
- Once installed, the agent captures and recalls memory on its own — you don't do a thing. To look at it or steer it:
88
+ Once installed, the agent captures and recalls memory on its own — you don't do a thing. Two slash commands come with
89
+ it (native — no `npx`):
90
+ - **`/corvus-cortex`** — open the Cortex: your whole memory as a local HTML "brain" (offline).
91
+ - **`/corvus-absorb`** — pull the knowledge already in the repo (CLAUDE.md, docs…) into memory, once.
92
+
93
+ To look at or steer memory from the **terminal** (handy for any agent, or no agent at all):
87
94
  ```
88
- npx corvusmem --cortex # your whole memory as a local HTML brain (offline)
89
- npx corvusmem --recall "stripe webhook" # ask what it already knows, from the terminal
95
+ npx corvusmem --cortex # the same Cortex, from the shell
96
+ npx corvusmem --recall "stripe webhook" # ask what it already knows
90
97
  npx corvusmem --list # list every fact
91
98
  npx corvusmem --save --dimension project.stack --value "Astro + Tailwind" --scope project
92
99
  npx corvusmem --forget <id> # drop one fact
93
100
  ```
94
- The Cortex also takes `--client` (a shareable view with nothing private), `--output <dir>` and `--lang en|es|…`.
101
+ The Cortex also takes `--client` (a shareable view with nothing private), `--output <dir>` and `--lang en|es|…`. Once
102
+ Corvus is installed (plugin or `npx corvusmem install`), those commands run from the local copy — no `npx` cold start.
95
103
  Flags are English with Spanish aliases (`--save`/`--guardar`, `--recall`/`--recordar`); keys and values work in any
96
104
  language — the memory is language-agnostic.
97
105
 
package/cli/corvusmem.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // Despachador del CLI `corvusmem`: el subcomando decide a quién llama.
3
4
  // corvusmem install [--claude|--codex|--global|--plugin <dir>...] -> install.mjs (instalar/empaquetar)
4
5
  // corvusmem uninstall [...] -> install.mjs --uninstall
package/cli/import.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // `corvusmem import` — list the memory documents already in this project, in two tiers, so the agent
3
4
  // (via /corvus-absorb) can read them and save what matters. Deterministic, offline, READ-ONLY: it writes
4
5
  // nothing to memory. `--json` prints the machine-readable contract the command consumes.
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // Revisa la memoria del proyecto (senzu/devlog/MEMORIA.md) y avisa de lo que la estropea con el tiempo:
3
4
  // - más de 60 líneas (lo sustituido y lo cerrado va a MEMORIA-historico.md);
4
5
  // - «ver NNN» que no existe en el devlog; D-xxx repetidos; huecos en la numeración (aviso suave);
package/cli/memory.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // Memoria de HECHOS (determinista, en cualquier idioma, sin red): lo que el usuario afirma de forma estable.
3
4
  // El agente entiende la frase (en el idioma que sea) y la guarda estructurada; el motor la sustituye, la fecha y la
4
5
  // recupera siempre igual. Para buscar entre idiomas, añade --claves en otros idiomas (p. ej. en inglés y en el del usuario).
package/cli/search.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // Buscador del devlog: encuentra decisiones y entradas pasadas sin leer archivos enteros.
3
4
  // Ejecutar desde la RAÍZ del proyecto (cualquier agente, cualquier OS, sin dependencias):
4
5
  // node <skills-dir>/devlog/scripts/search.mjs "pagos stripe" [--max 5] [--desde 2026-09] [--hasta 2026-10-15]
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: Open the Cortex — the user's Corvusmem memory drawn as a local, offline HTML "brain" (facts, goals, decisions, each in its zone). A local command, not an npx call.
3
+ ---
4
+
5
+ Open the **Cortex** for the user: Corvusmem's whole memory (project facts, open goals, decisions, the memory map) rendered as a single local HTML "brain" that works offline and follows the page's light/dark theme.
6
+
7
+ Run it with the **fastest local path available** — do not default to `npx` (that is only the fallback for an agent with nothing installed). Use the first of these that applies:
8
+
9
+ - **Installed as a plugin** (the `CLAUDE_PLUGIN_ROOT` env var is set): `node "$CLAUDE_PLUGIN_ROOT/cli/corvusmem.mjs" --cortex`
10
+ - **Per-project install** (`.corvusmem/cli/corvusmem.mjs` exists): `node "$CLAUDE_PROJECT_DIR/.corvusmem/cli/corvusmem.mjs" --cortex`
11
+ - **Global install** (`~/.config/corvusmem/cli/corvusmem.mjs` exists): `node "<that path>" --cortex`
12
+ - **Nothing installed** (fallback only): `npx corvusmem --cortex`
13
+
14
+ Pick the user's language for anything you say. The command writes a local HTML file and prints its path — tell the user the path so they can open it. Add `--cliente` for a client-facing view, or `--idioma en|es` to force the language. It renders only what is actually stored; never invent memory that is not there.
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Textos de la interfaz de Cortex, por idioma. Los DATOS (lo que recuerda la memoria) no se traducen: se enseñan
2
3
  // como se guardaron. Para añadir un idioma, copia el bloque `en` y tradúcelo; el que falte en uno cae al inglés y,
3
4
  // si tampoco está, al castellano. {x} se sustituye al pintar.
@@ -23,7 +24,7 @@ export const TEXTOS = {
23
24
  hoy: 'hoy', cerrado: 'cerrado', tipos: { sustituido: 'cambió', nuevo: 'nuevo', aprendido: 'aprendido', resuelto: 'resuelto', abandonado: 'abandonado', cerrado: 'cerrado' },
24
25
  abiertoHace: 'abierto hace {n} {d}', dia: 'día', dias: 'días', desdeHoy: 'desde hoy',
25
26
  cmdDecision: 'Se cambia en MEMORIA.md (o con /recordar): no la contradigas sin citarla.',
26
- pie: 'Generado el {f} con Senzu.', pieDueno: 'Archivo local con datos privados: no lo publiques (para el cliente, --cortex --cliente).', pieCliente: 'Solo lectura.',
27
+ pie: 'Generado el {f} con Corvusmem · r3v3rs3.', pieDueno: 'Archivo local con datos privados: no lo publiques (para el cliente, --cortex --cliente).', pieCliente: 'Solo lectura.',
27
28
  aria3d: 'Cerebro en 3D: arrástralo o usa las flechas para girarlo; doble clic para volver de lado', ariaCerebro: 'Cerebro de la memoria: cada zona es un tipo de recuerdo', ariaZonas: 'Zonas de la memoria',
28
29
  },
29
30
  en: {
@@ -47,7 +48,7 @@ export const TEXTOS = {
47
48
  hoy: 'today', cerrado: 'closed', tipos: { sustituido: 'changed', nuevo: 'new', aprendido: 'learned', resuelto: 'solved', abandonado: 'dropped', cerrado: 'closed' },
48
49
  abiertoHace: 'open for {n} {d}', dia: 'day', dias: 'days', desdeHoy: 'since today',
49
50
  cmdDecision: 'Changed in MEMORIA.md (or with /recordar): do not contradict it without quoting it.',
50
- pie: 'Generated on {f} with Senzu.', pieDueno: 'Local file with private data: do not publish it (for the client, --cortex --cliente).', pieCliente: 'Read only.',
51
+ pie: 'Generated on {f} with Corvusmem · r3v3rs3.', pieDueno: 'Local file with private data: do not publish it (for the client, --cortex --cliente).', pieCliente: 'Read only.',
51
52
  aria3d: '3D brain: drag it or use the arrow keys to turn it; double click for the side view', ariaCerebro: 'Memory brain: each zone is a kind of memory', ariaZonas: 'Memory zones',
52
53
  },
53
54
  pt: {
@@ -71,7 +72,7 @@ export const TEXTOS = {
71
72
  hoy: 'hoje', cerrado: 'fechado', tipos: { sustituido: 'mudou', nuevo: 'novo', aprendido: 'aprendido', resuelto: 'resolvido', abandonado: 'abandonado', cerrado: 'fechado' },
72
73
  abiertoHace: 'aberto há {n} {d}', dia: 'dia', dias: 'dias', desdeHoy: 'desde hoje',
73
74
  cmdDecision: 'Muda-se no MEMORIA.md (ou com /recordar): não a contradigas sem a citar.',
74
- pie: 'Gerado em {f} com Senzu.', pieDueno: 'Ficheiro local com dados privados: não o publiques (para o cliente, --cortex --cliente).', pieCliente: 'Só leitura.',
75
+ pie: 'Gerado em {f} com Corvusmem · r3v3rs3.', pieDueno: 'Ficheiro local com dados privados: não o publiques (para o cliente, --cortex --cliente).', pieCliente: 'Só leitura.',
75
76
  aria3d: 'Cérebro em 3D: arrasta-o ou usa as setas para o rodar; duplo clique para o ver de lado', ariaCerebro: 'Cérebro da memória: cada zona é um tipo de memória', ariaZonas: 'Zonas da memória',
76
77
  },
77
78
  fr: {
@@ -95,7 +96,7 @@ export const TEXTOS = {
95
96
  hoy: 'aujourd’hui', cerrado: 'fermé', tipos: { sustituido: 'a changé', nuevo: 'nouveau', aprendido: 'appris', resuelto: 'résolu', abandonado: 'abandonné', cerrado: 'fermé' },
96
97
  abiertoHace: 'ouvert depuis {n} {d}', dia: 'jour', dias: 'jours', desdeHoy: 'depuis aujourd’hui',
97
98
  cmdDecision: 'Se change dans MEMORIA.md (ou avec /recordar) : ne la contredis pas sans la citer.',
98
- pie: 'Généré le {f} avec Senzu.', pieDueno: 'Fichier local avec des données privées : ne le publie pas (pour le client, --cortex --cliente).', pieCliente: 'Lecture seule.',
99
+ pie: 'Généré le {f} avec Corvusmem · r3v3rs3.', pieDueno: 'Fichier local avec des données privées : ne le publie pas (pour le client, --cortex --cliente).', pieCliente: 'Lecture seule.',
99
100
  aria3d: 'Cerveau en 3D : fais-le glisser ou utilise les flèches pour le tourner ; double clic pour la vue de profil', ariaCerebro: 'Cerveau de la mémoire : chaque zone est un type de souvenir', ariaZonas: 'Zones de la mémoire',
100
101
  },
101
102
  de: {
@@ -119,7 +120,7 @@ export const TEXTOS = {
119
120
  hoy: 'heute', cerrado: 'geschlossen', tipos: { sustituido: 'geändert', nuevo: 'neu', aprendido: 'gelernt', resuelto: 'erledigt', abandonado: 'verworfen', cerrado: 'geschlossen' },
120
121
  abiertoHace: 'seit {n} {d} offen', dia: 'Tag', dias: 'Tagen', desdeHoy: 'seit heute',
121
122
  cmdDecision: 'Wird in MEMORIA.md geändert (oder mit /recordar): nicht widersprechen, ohne sie zu zitieren.',
122
- pie: 'Erstellt am {f} mit Senzu.', pieDueno: 'Lokale Datei mit privaten Daten: nicht veröffentlichen (für den Kunden: --cortex --cliente).', pieCliente: 'Nur lesen.',
123
+ pie: 'Erstellt am {f} mit Corvusmem · r3v3rs3.', pieDueno: 'Lokale Datei mit privaten Daten: nicht veröffentlichen (für den Kunden: --cortex --cliente).', pieCliente: 'Nur lesen.',
123
124
  aria3d: '3D-Gehirn: ziehen oder Pfeiltasten zum Drehen; Doppelklick für die Seitenansicht', ariaCerebro: 'Gehirn des Gedächtnisses: jede Zone ist eine Art Erinnerung', ariaZonas: 'Zonen des Gedächtnisses',
124
125
  },
125
126
  it: {
@@ -143,7 +144,7 @@ export const TEXTOS = {
143
144
  hoy: 'oggi', cerrado: 'chiuso', tipos: { sustituido: 'cambiato', nuevo: 'nuovo', aprendido: 'imparato', resuelto: 'risolto', abandonado: 'abbandonato', cerrado: 'chiuso' },
144
145
  abiertoHace: 'aperto da {n} {d}', dia: 'giorno', dias: 'giorni', desdeHoy: 'da oggi',
145
146
  cmdDecision: 'Si cambia in MEMORIA.md (o con /recordar): non contraddirla senza citarla.',
146
- pie: 'Generato il {f} con Senzu.', pieDueno: 'File locale con dati privati: non pubblicarlo (per il cliente, --cortex --cliente).', pieCliente: 'Sola lettura.',
147
+ pie: 'Generato il {f} con Corvusmem · r3v3rs3.', pieDueno: 'File locale con dati privati: non pubblicarlo (per il cliente, --cortex --cliente).', pieCliente: 'Sola lettura.',
147
148
  aria3d: 'Cervello in 3D: trascinalo o usa le frecce per girarlo; doppio clic per la vista laterale', ariaCerebro: 'Cervello della memoria: ogni zona è un tipo di ricordo', ariaZonas: 'Zone della memoria',
148
149
  },
149
150
  };
package/cortex/cortex.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Cortex (F7-T3/T4): la memoria del proyecto como un HTML local, autocontenido y sin red, con el diseño elegido en las
2
3
  // rondas (plan/design-system/cortex/MASTER.md: «Nocturno» + 2D «Neón de línea» + 3D de puntos con giro libre).
3
4
  // Lo usa `memory.mjs --cortex [--cliente] [--idioma xx]`; los datos salen de facts.mjs → datosCortex() (con --cliente,
@@ -5,6 +6,10 @@
5
6
  // La interfaz habla el idioma del navegador (o el de --idioma, o el que se elija): textos en cortex-text.mjs.
6
7
  import { TEXTOS } from './cortex-text.mjs';
7
8
 
9
+ // Marca del header: el cuervo de Corvusmem (PNG reescalado a 72px e incrustado como data-URI para que el HTML siga
10
+ // siendo autocontenido y offline). Fuente: assets/crow.png.
11
+ const CUERVO_SRC = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABOCAMAAAC0aqBoAAADAFBMVEVMaXFXUE0YFhYpJiYmJCMrKCcdGxtbTkQVFBMPDw4zLy0cGhkTEhIWFRUtKikhHx8fHR0kIiEaGRgRERAMDAwxLSwJCQkoJSQZFxdHQT4QEA89ODcvLCtFPz0vKylNR0QjIB9CPDk3MjI5MzFCPTs0MTAnIyE7NjU/Ojna08g5NDNSSUVJQ0FXTko2Mi8LCgkODQ0MDAxNRUE7NTIiHx5YUU0sJ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// ---------------------------------------------------------------- 2D: vista lateral (delante a la izquierda)
9
14
  // Frontal y parietal separados por el surco central; el temporal, por debajo de la cisura de Silvio (con aire); el
10
15
  // hipocampo, dentro del temporal; cerebelo con sus láminas y tronco del encéfalo.
@@ -40,7 +45,7 @@ const CSS = `
40
45
  casi-negra + acento ÁMBAR, tipografía serif en títulos. Las 5 zonas se rearmonizan a tonos tierra/joya apagados:
41
46
  distinguibles entre sí y distintos del ámbar, que queda reservado al ESTADO ACTIVO (--foco). */
42
47
  :root {
43
- --fondo: #0A0A0A; --papel: #111111; --papel-alto: #1A1A1A; --borde: #222222; --texto: #F5F5F5; --suave: #A3A3A3; --linea: #333333; --foco: #B45309;
48
+ --fondo: #121110; --papel: #1A1917; --papel-alto: #222120; --borde: #2C2A28; --texto: #F5F5F5; --suave: #A6A3A0; --linea: #3A3836; --foco: #B45309;
44
49
  --r-frontal: #C25E3A; --r-parietal: #4E8C86; --r-occipital: #5B7FA6; --r-temporal: #B05C7E; --r-hipocampo: #7E9B52;
45
50
  --fuente-titulos: 'Instrument Serif', Georgia, 'Times New Roman', serif; --fuente-texto: 'Inter', system-ui, 'Segoe UI', sans-serif; --radio: 999px;
46
51
  --halo: rgba(10, 10, 10, .85); --tinte: 12%;
@@ -64,7 +69,8 @@ button:focus-visible, select:focus-visible, input:focus-visible, .hecho:focus-vi
64
69
  .lienzo { position: relative; padding: 28px 32px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px;
65
70
  background: radial-gradient(60% 55% at 45% 52%, color-mix(in srgb, var(--r-parietal) var(--tinte), transparent), transparent 70%), var(--fondo); }
66
71
  .arriba { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
67
- .marca { font: 700 12px/1 var(--fuente-titulos); letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }
72
+ .marca { display: flex; align-items: center; gap: 11px; font: 700 12px/1 var(--fuente-titulos); letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }
73
+ .marca img { width: 34px; height: 34px; display: block; filter: drop-shadow(0 0 11px color-mix(in srgb, var(--foco) 42%, transparent)); }
68
74
  .marca b { color: var(--r-temporal); font-weight: 700; }
69
75
  h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; line-height: 1.02; margin-top: 10px; overflow-wrap: anywhere; }
70
76
  .cifras { margin: 8px 0 0; color: var(--suave); font-size: 15px; } .cifras b { color: var(--texto); }
@@ -710,10 +716,12 @@ export function htmlCortex(datos, { cli = null, idioma = null, soloCerebro = fal
710
716
  const D = { ...datos, cli: cliente ? null : cli, idioma: idioma && TEXTOS[idioma] ? idioma : null };
711
717
  const es = TEXTOS.es; // el HTML trae el castellano escrito (sin JavaScript también se lee); el programa lo traduce
712
718
  return `<!doctype html>
719
+ <!-- Corvusmem · the crow that remembers · author: Peterson Sena (r3v3rs3) · https://corvusmem.vercel.app -->
713
720
  <html lang="es" data-theme="dark"${cliente ? ' data-cliente' : ''}${solo ? ' data-solo' : ''}>
714
721
  <head>
715
722
  <meta charset="utf-8">
716
723
  <meta name="viewport" content="width=device-width, initial-scale=1">
724
+ <meta name="author" content="Peterson Sena (r3v3rs3)">
717
725
  <meta name="robots" content="noindex">
718
726
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27%3E%3Crect width=%2732%27 height=%2732%27 rx=%278%27 fill=%27%230C0F13%27/%3E%3Cpath d=%27M7 18c-2-6 3-11 9-11s11 4 9 10c-1 4-5 6-9 6s-8-1-9-5z%27 fill=%27none%27 stroke=%27%233DD6C4%27 stroke-width=%272%27/%3E%3Cpath d=%27M12 19c2-3 6-3 8-1%27 fill=%27none%27 stroke=%27%239BE15D%27 stroke-width=%272%27 stroke-linecap=%27round%27/%3E%3C/svg%3E">
719
727
  <title>Cortex · ${esc(datos.proyecto)}${cliente ? ' (cliente)' : ''}</title>
@@ -724,7 +732,7 @@ export function htmlCortex(datos, { cli = null, idioma = null, soloCerebro = fal
724
732
  <section class="lienzo">
725
733
  <div class="arriba">
726
734
  <div>
727
- <div class="marca">Cortex${cliente ? ` · <b data-t="vistaParaCliente">${es.vistaParaCliente}</b>` : ''}</div>
735
+ <div class="marca"><img src="${CUERVO_SRC}" alt="" width="34" height="34" /><span>Cortex${cliente ? ` · <b data-t="vistaParaCliente">${es.vistaParaCliente}</b>` : ''}</span></div>
728
736
  <h1 id="titulo">${esc(es.titulo.replace('{p}', datos.proyecto))}</h1>
729
737
  <p class="cifras" id="cifras"></p>
730
738
  </div>
package/install.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // Instalador de Corvusmem (F10-T2). Registra los hooks del núcleo y prepara las carpetas de memoria, sin
3
4
  // dependencias y sin red. Determinista, merge-safe (no pisa lo que el usuario ya tenga) e idempotente.
4
5
  //
@@ -25,6 +26,7 @@ const AQUI = path.dirname(fileURLToPath(import.meta.url));
25
26
  const SRC = path.join(AQUI, 'src'); // donde viven los hooks del núcleo (ruta absoluta)
26
27
  const CMDS_SRC = path.join(AQUI, 'commands'); // slash-command templates (/corvus-absorb)
27
28
  const CLI_SRC = path.join(AQUI, 'cli'); // el CLI de la memoria (corvusmem.mjs + subcomandos): se empaqueta para el guardado RÁPIDO (sin npx)
29
+ const CORTEX_SRC = path.join(AQUI, 'cortex'); // el render del Cortex (cortex.mjs + cortex-text.mjs): se empaqueta para que --cortex funcione en local (sin npx)
28
30
  const args = process.argv.slice(2);
29
31
  const opt = n => { const i = args.indexOf(n); return i >= 0 ? (args[i + 1] && !args[i + 1].startsWith('--') ? args[i + 1] : true) : null; };
30
32
  const has = n => args.includes(n);
@@ -79,6 +81,16 @@ function copiarCli(baseDir) {
79
81
  for (const f of fs.readdirSync(CLI_SRC)) if (f.endsWith('.mjs')) { fs.copyFileSync(path.join(CLI_SRC, f), path.join(dir, f)); n++; }
80
82
  return n;
81
83
  }
84
+ // El render del Cortex a <baseDir>/cortex/ (hermano de cli/): cli/memory.mjs lo carga en ../cortex/cortex.mjs, así
85
+ // `/corvus-cortex` (o --cortex) dibuja el cerebro HTML con node LOCAL, sin npx.
86
+ function copiarCortex(baseDir) {
87
+ if (DRY) { log(` [dry-run] would copy the Cortex to ${path.join(baseDir, 'cortex')}`); return 0; }
88
+ const dir = path.join(baseDir, 'cortex');
89
+ fs.mkdirSync(dir, { recursive: true });
90
+ let n = 0;
91
+ try { for (const f of fs.readdirSync(CORTEX_SRC)) if (f.endsWith('.mjs')) { fs.copyFileSync(path.join(CORTEX_SRC, f), path.join(dir, f)); n++; } } catch { }
92
+ return n;
93
+ }
82
94
 
83
95
  // Slash commands (e.g. /corvus-absorb) go to .claude/commands/ — per project, or the HOME with --global.
84
96
  function instalarComandos(quitar) {
@@ -127,6 +139,8 @@ function empaquetarPlugin(destino) {
127
139
  for (const f of fs.readdirSync(SRC)) if (f.endsWith('.mjs')) { fs.copyFileSync(path.join(SRC, f), path.join(hooksDir, f)); n++; }
128
140
  // 2b) el CLI de memoria en <plugin>/cli/ (hermano de hooks/): para que el agente guarde/recuerde con node, sin npx
129
141
  const ncli = copiarCli(dir);
142
+ // 2c) el render del Cortex en <plugin>/cortex/: para que /corvus-cortex dibuje el cerebro en local, sin npx
143
+ const ncx = copiarCortex(dir);
130
144
  // 3) slash commands (/corvus-absorb) in the plugin's commands/ dir
131
145
  let nc = 0;
132
146
  try {
@@ -136,7 +150,7 @@ function empaquetarPlugin(destino) {
136
150
  // 4) plugin.json
137
151
  const plugin = { name: 'corvusmem', description: pkg.description || 'Memoria determinista, offline y sin dependencias para agentes de IA.', version: pkg.version || '0.0.0', author: { name: 'Peterson Sena' }, homepage: pkg.homepage || 'https://corvusmem.vercel.app', repository: (pkg.repository && pkg.repository.url) || 'https://github.com/petersonsenadevs/corvusmem', license: 'SEE LICENSE IN LICENSE' };
138
152
  fs.writeFileSync(path.join(dir, '.claude-plugin', 'plugin.json'), JSON.stringify(plugin, null, 2) + '\n');
139
- log(` [plugin] ${dir}: .claude-plugin/plugin.json + hooks/hooks.json + ${n} .mjs + ${ncli} cli${nc ? ` + ${nc} command(s)` : ''}`);
153
+ log(` [plugin] ${dir}: .claude-plugin/plugin.json + hooks/hooks.json + ${n} .mjs + ${ncli} cli + ${ncx} cortex${nc ? ` + ${nc} command(s)` : ''}`);
140
154
  }
141
155
 
142
156
  // Genera, DENTRO del repo, el plugin committeable `plugins/corvusmem/` y el `.claude-plugin/marketplace.json` de la
@@ -229,12 +243,13 @@ function run() {
229
243
  // 0) Copias DURABLES de los hooks (o quitarlas). La MEMORIA (.corvusmem/memoria, ~/.config/corvusmem) no se toca.
230
244
  const cliBase = path.dirname(hooksDir); // .corvusmem/ (proyecto) o ~/.config/corvusmem/ (global); el cli va junto a hooks
231
245
  if (quitar) {
232
- if (!DRY) { try { fs.rmSync(hooksDir, { recursive: true, force: true }); } catch {} try { fs.rmSync(path.join(cliBase, 'cli'), { recursive: true, force: true }); } catch {} }
246
+ if (!DRY) { try { fs.rmSync(hooksDir, { recursive: true, force: true }); } catch {} try { fs.rmSync(path.join(cliBase, 'cli'), { recursive: true, force: true }); } catch {} try { fs.rmSync(path.join(cliBase, 'cortex'), { recursive: true, force: true }); } catch {} }
233
247
  log(` [hooks] removed ${hooksDir}`);
234
248
  } else {
235
249
  const n = copiarHooks(hooksDir);
236
250
  const ncli = copiarCli(cliBase);
237
- log(` [hooks] ${n} core file(s) + ${ncli} CLI file(s) copied to ${cliBase.replace(/\\/g, '/')} (fast save, no npx)`);
251
+ const ncx = copiarCortex(cliBase);
252
+ log(` [hooks] ${n} core + ${ncli} CLI + ${ncx} Cortex file(s) copied to ${cliBase.replace(/\\/g, '/')} (fast save & cortex, no npx)`);
238
253
  }
239
254
 
240
255
  // 1) Claude: hooks en settings.json (proyecto o HOME)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corvusmem",
3
- "version": "0.5.0",
3
+ "version": "0.5.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": {
@@ -38,7 +38,7 @@
38
38
  "local-first",
39
39
  "no-embeddings"
40
40
  ],
41
- "author": "Peterson Sena",
41
+ "author": "Peterson Sena aka r3v3rs3 (https://dev.to/r3v3rs3)",
42
42
  "license": "SEE LICENSE IN LICENSE",
43
43
  "homepage": "https://corvusmem.vercel.app",
44
44
  "repository": {
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook de la memoria de hechos que OBLIGA a revisarla (plan de Corvusmem, F3), en cualquier idioma: no busca
2
3
  // frases (eso depende del idioma); comprueba si el agente revisó la memoria. Quien entiende si el usuario dijo algo
3
4
  // estable es el agente.
package/src/facts.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Motor de HECHOS de Corvusmem: memoria determinista en CUALQUIER idioma, sin red ni modelos (devlog 098).
2
3
  // Dimensiones con sustitución, validez en el tiempo, deduplicación, cupos por familia y motivo de cada resultado,
3
4
  // sin Postgres, Redis ni embeddings.
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook PreToolUse (Edit|Write|MultiEdit; en Codex, apply_patch traducido por lib.mjs): memoria POR ARCHIVO.
2
3
  // La primera vez que la sesión va a tocar un archivo, le pasa al agente lo que la memoria y el devlog dicen de
3
4
  // ese archivo (por su ruta o su nombre): decisiones vigentes, lo que no funcionó, por qué se hizo así.
package/src/host.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
2
3
  // host.mjs — Detección de anfitrión del núcleo de memoria (carve-out Corvusmem, F9-T2).
3
4
  // El MISMO núcleo corre bajo varios anfitriones; aquí se resuelve, por señales del entorno, determinista y sin red:
4
5
  // · agente: 'claude' | 'codex' | 'obsidian' | 'standalone' — el runtime que ejecuta el núcleo
package/src/import.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Corvus memory import — DISCOVERY ONLY (deterministic, offline, zero-dependency).
2
3
  // Finds the memory documents already in a project so nothing a teammate wrote is lost, in two tiers:
3
4
  // tier 'agent' — known agent-memory files (CLAUDE.md, AGENTS.md, Cursor/Copilot/Gemini rules, a Senzu
package/src/lib.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Funciones compartidas por los hooks de Senzu (Node >= 18, ESM).
2
3
  // Port agnóstico de _common.ps1: mismo comportamiento en Windows, macOS y Linux.
3
4
  // Los hooks leen stdin como UTF-8 directo (sin reparación de codepage OEM: eso era un problema de PowerShell).
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook UserPromptSubmit: la memoria se alimenta de lo que dice el usuario, no de que el agente se acuerde.
2
3
  // 1. Guarda las últimas peticiones de la sesión (las lee estado-sesion para /retomar).
3
4
  // 2. Si la petición trae una REGLA o una CORRECCIÓN clara («no vuelvas a…», «te dije…», «a partir de ahora…»,
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook UserPromptSubmit: el RECUERDO VIVO. Con cada mensaje del usuario, lo que la memoria ya sabe de eso —hechos
2
3
  // (en cualquier idioma), decisiones de MEMORIA.md y entradas del devlog— llega al agente antes de responder, con su
3
4
  // fuente y su motivo. Así no pregunta lo que ya se sabe ni contradice lo decidido (plan de Corvusmem, F2-T2).
package/src/messages.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Catalogo de los mensajes de la UI que ve el usuario (muros, avisos), por idioma. El CONTENIDO de las skills
2
3
  // NO esta aqui: lo lee el agente, que responde en el idioma del usuario. Un id por mensaje; valor {en, es}.
3
4
  // - El idioma lo resuelve localeUI(root) en lib.mjs (por defecto 'en').
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook SessionEnd: limpia los marcadores de sesión de Senzu en el temp (prefijo interno dev-standards-) (rápido: presupuesto de 1,5 s).
2
3
 
3
4
  import fs from 'node:fs';
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook SessionStart (Corvusmem): inyecta SOLO la memoria del proyecto y del usuario — hechos vigentes, objetivos y
2
3
  // pendientes abiertos, avisos de contradicción/obsolescencia, el mapa de la memoria y la continuidad de la sesión
3
4
  // anterior. Por defecto en inglés (localeUI → catálogo messages.mjs). No bloquea.
@@ -1,3 +1,4 @@
1
+ // Corvusmem · author: Peterson Sena (r3v3rs3) · https://github.com/petersonsenadevs/corvusmem
1
2
  // Hook Stop y PreCompact: guarda EN QUÉ ESTÁBAMOS para la siguiente sesión (/retomar), y al cerrar comprueba que
2
3
  // las reglas y correcciones del usuario de esta sesión (las detecta memoria-viva) quedaron apuntadas.
3
4
  // El estado va a senzu/.estado/ultima-sesion.json (ignorado por git): las últimas peticiones, los archivos que