corvusmem 0.3.3 → 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 +59 -0
- package/README.md +118 -94
- package/cli/corvusmem.mjs +1 -0
- package/cli/import.mjs +1 -0
- package/cli/memory-check.mjs +2 -1
- package/cli/memory.mjs +2 -1
- package/cli/search.mjs +1 -0
- package/commands/corvus-absorb.md +13 -12
- package/commands/corvus-cortex.md +14 -0
- package/cortex/cortex-text.mjs +7 -6
- package/cortex/cortex.mjs +11 -3
- package/docs.md +125 -108
- package/install.mjs +77 -5
- package/package.json +2 -2
- package/src/facts-guard.mjs +1 -0
- package/src/facts.mjs +5 -3
- package/src/file-memory.mjs +1 -0
- package/src/host.mjs +120 -118
- package/src/import.mjs +1 -0
- package/src/lib.mjs +47 -9
- package/src/live-memory.mjs +1 -0
- package/src/live-recall.mjs +3 -2
- package/src/messages.mjs +1 -0
- package/src/session-end.mjs +1 -0
- package/src/session-start.mjs +3 -2
- package/src/session-state.mjs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,65 @@ 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
|
+
|
|
19
|
+
## [0.5.0] — 2026-11-08
|
|
20
|
+
### Added
|
|
21
|
+
- **Install Corvus as a native plugin — Claude Code and Codex.** The repo is now a Claude Code **marketplace**
|
|
22
|
+
(`.claude-plugin/marketplace.json` + a committed `plugins/corvusmem/`), so you install it the way you install any
|
|
23
|
+
plugin instead of wiring hooks into a project:
|
|
24
|
+
```
|
|
25
|
+
/plugin marketplace add petersonsenadevs/corvusmem
|
|
26
|
+
/plugin install corvusmem@corvusmem
|
|
27
|
+
```
|
|
28
|
+
The hooks fire natively (the host's own plugin mechanism), everywhere, with nothing to maintain. Codex consumes the
|
|
29
|
+
**same** plugin (`hooks/hooks.json` uses `${CLAUDE_PLUGIN_ROOT}`; edits arrive as `apply_patch`). `npx corvusmem install`
|
|
30
|
+
stays as the path for agents without plugin support, or a quick trial. Generate/refresh both with
|
|
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`.
|
|
36
|
+
- **Fast save/recall — no more `npx` cold start.** The memory CLI now ships *next to* the hooks — in the plugin
|
|
37
|
+
(`$CLAUDE_PLUGIN_ROOT/cli/`), in a per-project install (`.corvusmem/cli/`) and in a global one
|
|
38
|
+
(`~/.config/corvusmem/cli/`). The hooks pick the fastest available invocation (`node ".../cli/corvusmem.mjs"`) and
|
|
39
|
+
fall back to `npx corvusmem` only for an agent that has none of it installed. So once Corvus is installed, the agent
|
|
40
|
+
saving a fact no longer pays npm's resolve-and-spawn cost on every call.
|
|
41
|
+
|
|
42
|
+
## [0.4.0] — 2026-11-08
|
|
43
|
+
### Changed
|
|
44
|
+
- **Corvus is the memory owner — its hooks are the ones that fire, Senzu defers to it.** When Corvus is installed
|
|
45
|
+
(per-project or global), it OWNS the memory: its hooks inject and capture as normal, and Senzu steps back from memory
|
|
46
|
+
(its recall/capture/facts hooks yield to Corvus, and its session-start drops the facts block) while keeping everything
|
|
47
|
+
else — method, plan, devlog, guards. Before, both layers shared a first-wins handshake and Senzu (listed first) won,
|
|
48
|
+
so Corvus looked like it "did nothing". Now the split is deterministic and Corvus's memory is what you see.
|
|
49
|
+
*(Requires the matching Senzu release that defers to Corvus; update the Senzu plugin too.)*
|
|
50
|
+
- **One stable store, and it adopts what Senzu had.** Project facts always live in Corvus's own
|
|
51
|
+
`.corvusmem/memory/facts.jsonl` (English, visible) — never in `senzu/memoria/hechos.jsonl`, and the location never
|
|
52
|
+
flips when Senzu is added or removed. When Corvus lands on a project that already used Senzu, it **adopts** the facts
|
|
53
|
+
from `senzu/memoria/hechos.jsonl` into its own store once (a copy, so nothing is lost and it is reversible), and never
|
|
54
|
+
clobbers facts it already has.
|
|
55
|
+
- **The installer says so.** Installing into a project that already uses Senzu now prints that Corvus owns the memory
|
|
56
|
+
there (it adopts Senzu's facts and Senzu defers), and to update the Senzu plugin so it steps back.
|
|
57
|
+
|
|
58
|
+
## [0.3.4] — 2026-11-07
|
|
59
|
+
### Changed
|
|
60
|
+
- **`/corvus-absorb` is now exhaustive by design.** The command states its real goal up front — *after it runs, the
|
|
61
|
+
agent should be able to work without re-reading the markdown docs* — and instructs the agent to open and read
|
|
62
|
+
**every** doc-tier file (not a sample), expect **many facts** (dozens, often 100+ for a rich repo; one or more per
|
|
63
|
+
feature/node spec), and **check coverage** at the end (every substantial doc must contribute at least one fact). It
|
|
64
|
+
also corrects the misconception that fewer facts is better: the per-message cap is on *injection*, not *storage*, so
|
|
65
|
+
more good atomic facts make memory richer, never noisier. Still skips noise (how-tos, API dumps, boilerplate).
|
|
66
|
+
|
|
8
67
|
## [0.3.3] — 2026-11-07
|
|
9
68
|
### Fixed
|
|
10
69
|
- **A stray `senzu/` folder no longer hijacks Corvus's standalone memory.** Corvus coupled to Senzu whenever a
|
package/README.md
CHANGED
|
@@ -1,94 +1,118 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/petersonsenadevs/corvusmem/main/assets/crow.png" alt="Corvusmem — the crow that remembers" width="200" />
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# Corvusmem
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<a href="https://www.npmjs.com/package/corvusmem"><img src="https://img.shields.io/npm/v/corvusmem?color=e07a33" alt="npm version" /></a>
|
|
9
|
-
<img src="https://img.shields.io/node/v/corvusmem" alt="node" />
|
|
10
|
-
<img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="zero dependencies" />
|
|
11
|
-
<img src="https://img.shields.io/badge/offline-yes-brightgreen" alt="offline" />
|
|
12
|
-
<img src="https://img.shields.io/badge/license-PolyForm%20NC-blue" alt="license" />
|
|
13
|
-
</p>
|
|
14
|
-
|
|
15
|
-
**Deterministic, offline, zero-dependency memory for AI coding agents.** Corvusmem stores the stable facts your
|
|
16
|
-
agent learns, replaces and dates them, and recalls them the same way every time — in any language, with no network
|
|
17
|
-
and no servers. It plugs into where you already work: Claude Code / Codex (hooks) and a standalone CLI.
|
|
18
|
-
|
|
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
|
-
|
|
21
|
-
>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- `
|
|
44
|
-
- `
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
npx corvusmem --
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
npx
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/petersonsenadevs/corvusmem/main/assets/crow.png" alt="Corvusmem — the crow that remembers" width="200" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# Corvusmem
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/corvusmem"><img src="https://img.shields.io/npm/v/corvusmem?color=e07a33" alt="npm version" /></a>
|
|
9
|
+
<img src="https://img.shields.io/node/v/corvusmem" alt="node" />
|
|
10
|
+
<img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="zero dependencies" />
|
|
11
|
+
<img src="https://img.shields.io/badge/offline-yes-brightgreen" alt="offline" />
|
|
12
|
+
<img src="https://img.shields.io/badge/license-PolyForm%20NC-blue" alt="license" />
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
**Deterministic, offline, zero-dependency memory for AI coding agents.** Corvusmem stores the stable facts your
|
|
16
|
+
agent learns, replaces and dates them, and recalls them the same way every time — in any language, with no network
|
|
17
|
+
and no servers. It plugs into where you already work: Claude Code / Codex (hooks) and a standalone CLI.
|
|
18
|
+
|
|
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
|
+
|
|
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
|
+
|
|
23
|
+
> **Narrative docs (what it is, the message, the Cortex, FAQ):** [`docs.md`](./docs.md). This README is the quick
|
|
24
|
+
> reference for structure and commands.
|
|
25
|
+
|
|
26
|
+
## Why Corvusmem
|
|
27
|
+
- **Deterministic** — same input, same result. No embeddings, no vector database, no model to run recall.
|
|
28
|
+
- **Offline & private** — the memory is a plain file you own. No server, no cloud, no API key, no telemetry.
|
|
29
|
+
- **Zero-dependency** — pure Node, identical on Windows, macOS and Linux.
|
|
30
|
+
- **Any language** — keys and values in any language; recall is language-agnostic.
|
|
31
|
+
- **Per-author** — on a shared project, teammates' personal facts never overwrite each other.
|
|
32
|
+
- **Bounded footprint** — a hard cap keeps the context cost flat (O(1), not O(n)) — see the [benchmarks](https://corvusmem.vercel.app/benchmarks).
|
|
33
|
+
- **See it** — the Cortex draws your whole memory as a local HTML brain.
|
|
34
|
+
|
|
35
|
+
## How it works
|
|
36
|
+
Your agent forgets everything between sessions. Corvusmem is a memory it keeps: facts live in a lightweight local
|
|
37
|
+
graph, retrieved by name, date and relevance with two-hop activation — no embeddings, no vector database, no API key.
|
|
38
|
+
Same input, same result. The whole memory is a file you own.
|
|
39
|
+
|
|
40
|
+
## Structure
|
|
41
|
+
- `src/` — the core: the facts engine (`facts.mjs`), shared base (`lib`, `messages`, `session-end`), host detection
|
|
42
|
+
(`host.mjs`) and the brain hooks (`live-recall`, `session-start`, `session-state`, `live-memory`,
|
|
43
|
+
`file-memory`, `facts-guard`). Same-directory imports only: self-contained, zero external dependencies.
|
|
44
|
+
- `cli/` — `memory.mjs`: the command line (`--save` / `--search` / `--recall` / `--context` / `--cortex`).
|
|
45
|
+
- `cortex/` — `cortex.mjs` + `cortex-text.mjs`: your memory as a local HTML page (the "Cortex"), no network.
|
|
46
|
+
- `tests/` — deterministic, LLM-free suites: `test-boundary` (clean core), `test-facts` (engine), `test-hard-recall`.
|
|
47
|
+
|
|
48
|
+
## Install
|
|
49
|
+
|
|
50
|
+
Two ways. **Install it as a plugin** if your agent supports plugins (Claude Code, Codex) — it is native, there is
|
|
51
|
+
nothing to wire into a project, and the memory CLI runs locally (no `npx` cold start). **Use the `npx` install** for
|
|
52
|
+
any agent that does not do plugins, or for a quick trial.
|
|
53
|
+
|
|
54
|
+
### As a plugin — Claude Code (recommended)
|
|
55
|
+
```
|
|
56
|
+
/plugin marketplace add petersonsenadevs/corvusmem
|
|
57
|
+
/plugin install corvusmem@corvusmem
|
|
58
|
+
```
|
|
59
|
+
The hooks fire natively (the same mechanism Claude uses for any plugin), everywhere, and saving/recalling runs as
|
|
60
|
+
`node "$CLAUDE_PLUGIN_ROOT/cli/corvusmem.mjs"` — no `npx`. Update later with `/plugin update corvusmem@corvusmem`.
|
|
61
|
+
|
|
62
|
+
### As a plugin — Codex
|
|
63
|
+
Add the same marketplace in the Codex app and approve the hooks (they live in `~/.codex/config.toml`). Codex consumes
|
|
64
|
+
the **same** plugin — `hooks/hooks.json` uses `${CLAUDE_PLUGIN_ROOT}`, and edits arrive as `apply_patch`, which the
|
|
65
|
+
hooks already understand.
|
|
66
|
+
|
|
67
|
+
### As an npx install (any agent, or a quick trial)
|
|
68
|
+
```
|
|
69
|
+
npx corvusmem install # register the hooks in the current project's .claude/settings.json
|
|
70
|
+
npx corvusmem install --global # for every project (~/.claude/settings.json)
|
|
71
|
+
npx corvusmem uninstall # remove Corvusmem's hooks (leaves memory intact)
|
|
72
|
+
npx corvusmem install --dry-run # show what it would do, without writing
|
|
73
|
+
```
|
|
74
|
+
Merge-safe (it never overwrites your hooks or permissions) and idempotent. It copies the hooks **and** the memory CLI
|
|
75
|
+
to a durable spot (`.corvusmem/hooks/` + `.corvusmem/cli/`, or `~/.config/corvusmem/` for `--global`), so the hooks and
|
|
76
|
+
the save/recall commands run via `node` — not `npx` — from then on. It also writes `.corvusmem/hooks.json` (a portable
|
|
77
|
+
manifest). The bare `npx corvusmem --save/--recall` still works for an agent with none of this set up (just slower).
|
|
78
|
+
|
|
79
|
+
**Per-project vs global only decides *where the hooks turn on*** — for one repo (config in that repo) or for every
|
|
80
|
+
project (`--global`, in your home). It does **not** change where memory lives: project facts always land in that repo's
|
|
81
|
+
`.corvusmem/`, your personal facts in `~/.config/corvusmem/`.
|
|
82
|
+
|
|
83
|
+
**Sharing with a team**: commit `.corvusmem/` (the shared project memory) and, for a per-project install,
|
|
84
|
+
`.claude/settings.json` so teammates get the hooks the moment they clone. Never commit `~/.config/corvusmem/` — that is
|
|
85
|
+
your private memory.
|
|
86
|
+
|
|
87
|
+
## Usage
|
|
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):
|
|
94
|
+
```
|
|
95
|
+
npx corvusmem --cortex # the same Cortex, from the shell
|
|
96
|
+
npx corvusmem --recall "stripe webhook" # ask what it already knows
|
|
97
|
+
npx corvusmem --list # list every fact
|
|
98
|
+
npx corvusmem --save --dimension project.stack --value "Astro + Tailwind" --scope project
|
|
99
|
+
npx corvusmem --forget <id> # drop one fact
|
|
100
|
+
```
|
|
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.
|
|
103
|
+
Flags are English with Spanish aliases (`--save`/`--guardar`, `--recall`/`--recordar`); keys and values work in any
|
|
104
|
+
language — the memory is language-agnostic.
|
|
105
|
+
|
|
106
|
+
## Test
|
|
107
|
+
```
|
|
108
|
+
npm test
|
|
109
|
+
```
|
|
110
|
+
(or `node tests/test-boundary.mjs && node tests/test-facts.mjs && node tests/test-hard-recall.mjs`)
|
|
111
|
+
|
|
112
|
+
## License
|
|
113
|
+
Dual-licensed (© 2026 Peterson Sena):
|
|
114
|
+
- **Noncommercial use** (personal, study, hobby, nonprofit, education/public sector): free under **PolyForm
|
|
115
|
+
Noncommercial 1.0.0** (`LICENSE`), keeping the credit (`Required Notice`).
|
|
116
|
+
- **Commercial use**: requires a separate **paid license** — see `COMMERCIAL.md` (petersonsena24@gmail.com).
|
|
117
|
+
|
|
118
|
+
This is not legal advice; for final commercial terms, consult a professional.
|
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.
|
package/cli/memory-check.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
|
// 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);
|
|
@@ -58,7 +59,7 @@ if (perdidas.length) avisos.push(`rutas que ya no existen en el proyecto: ${perd
|
|
|
58
59
|
// Decisiones que citan un valor que un hecho ya sustituyó (motor de hechos, hooks/facts.mjs). Sin el motor, se omite.
|
|
59
60
|
{
|
|
60
61
|
const AQUI = path.dirname(new URL(import.meta.url).pathname.replace(/^\/([A-Za-z]:)/, '$1'));
|
|
61
|
-
const motor = [path.join(AQUI, '..', 'src', 'facts.mjs'), path.join(AQUI, '..', '..', '..', 'hooks', 'facts.mjs'), path.join(root, '.claude', 'hooks', 'facts.mjs')].find(f => fs.existsSync(f));
|
|
62
|
+
const motor = [path.join(AQUI, '..', 'src', 'facts.mjs'), path.join(AQUI, '..', 'hooks', 'facts.mjs'), path.join(AQUI, '..', '..', '..', 'hooks', 'facts.mjs'), path.join(root, '.claude', 'hooks', 'facts.mjs')].find(f => fs.existsSync(f));
|
|
62
63
|
if (motor) {
|
|
63
64
|
try {
|
|
64
65
|
const { decisionesObsoletas } = await import(new URL('file:///' + motor.replace(/\\/g, '/').replace(/^\//, '')).href);
|
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).
|
|
@@ -42,7 +43,7 @@ const out = s => process.stdout.write(s + '\n');
|
|
|
42
43
|
|
|
43
44
|
async function motor() { // facts.mjs de los hooks: junto a la skill (plugin o .claude), o en el paquete de Senzu
|
|
44
45
|
const marcador = (() => { try { return JSON.parse(fs.readFileSync(path.join(root, 'senzu', 'senzu.json'), 'utf8')); } catch { return {}; } })();
|
|
45
|
-
const c = [path.join(AQUI, '..', 'src', 'facts.mjs'), path.join(AQUI, '..', '..', '..', 'hooks', 'facts.mjs'), path.join(root, '.claude', 'hooks', 'facts.mjs'),
|
|
46
|
+
const c = [path.join(AQUI, '..', 'src', 'facts.mjs'), path.join(AQUI, '..', 'hooks', 'facts.mjs'), path.join(AQUI, '..', '..', '..', 'hooks', 'facts.mjs'), path.join(root, '.claude', 'hooks', 'facts.mjs'),
|
|
46
47
|
marcador.standardsRoot && path.join(marcador.standardsRoot, 'core', 'hooks', 'facts.mjs'), process.env.SENZU_HOME && path.join(process.env.SENZU_HOME, 'core', 'hooks', 'facts.mjs')].filter(Boolean);
|
|
47
48
|
for (const f of c) if (fs.existsSync(f)) return import(pathToFileURL(f).href);
|
|
48
49
|
out('No encuentro el motor de hechos (hooks/facts.mjs). ¿Está instalado? Ejecuta: npx corvusmem install');
|
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]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Absorb the project's existing
|
|
2
|
+
description: Absorb the project's existing knowledge — agent files AND the whole docs tree (architecture, decisions, feature/node specs, devlog) — into Corvus, thoroughly, so the team's memory lives in Corvus instead of only in scattered markdown.
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
You are absorbing this project's **existing**
|
|
5
|
+
You are absorbing this project's **existing** knowledge into Corvus. The goal is concrete: **after this runs, the agent should be able to work on the project without re-reading the markdown docs**, because everything in them that matters is now in memory. If you only skim `CLAUDE.md` and save a handful of facts, you have FAILED — the team will keep opening their `.md` files and Corvus adds nothing. Be **exhaustive about what matters**, selective only about noise.
|
|
6
6
|
|
|
7
7
|
**Speak the user's language.** Every question, confirmation and the final report go in the language the user writes to you in (Spanish, etc.) — only this command's name and the saved `--keys` identifiers stay in English (and `--keys` should also include the user's own language).
|
|
8
8
|
|
|
@@ -20,21 +20,21 @@ It returns the memory documents already in the repo in two tiers (`{ agent, docs
|
|
|
20
20
|
|
|
21
21
|
If the list is empty, say so and stop. If `truncated` is true, mention that more markdown exists than was shown.
|
|
22
22
|
|
|
23
|
-
## 2. Read
|
|
24
|
-
Read **every `agent`-tier file** in full.
|
|
23
|
+
## 2. Read EVERYTHING, then distil (this is YOUR job, not the tool's)
|
|
24
|
+
Read **every `agent`-tier file** in full, and **open and read every `doc`-tier file too — not a sample**. Each file in the doc tier (architecture notes, ADRs, a devlog, and every feature / node / design spec) is listed because it likely holds durable knowledge. **Judge by the content inside, never the filename.** A large `docs/` tree is the whole point — read all of it; skip a file only after reading enough to see it is pure noise. Only **ask the user** when there are so many files that reading them all is genuinely impractical; otherwise read, don't ask.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
**Expect many facts — this is the part people get wrong.** A substantial doc usually yields *several* facts: its purpose, each decision and its reason, each contract/interface, each gotcha or "what didn't work". A project with N feature/node specs should produce **well more than N facts** — dozens, often 100+ for a rich repo. **Thirty facts out of thirty-plus docs means you under-read: go back and read the specs you skipped.** The point of Corvus is that the agent stops needing the `.md` files — that only works if what matters is actually in memory.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Keep every piece of **durable memory** — what should still be true next week:
|
|
29
29
|
|
|
30
30
|
- decisions, with the reason behind them (one fact per distinct decision)
|
|
31
31
|
- rules and conventions the team must follow
|
|
32
|
-
-
|
|
33
|
-
-
|
|
32
|
+
- project facts (stack, architecture, components, domains, external services, environments)
|
|
33
|
+
- **per-feature / per-node contracts and behaviour** (what each one does, its inputs/outputs, its rules) — one or more facts per spec
|
|
34
34
|
- constraints, known gotchas, "what didn't work"
|
|
35
|
-
- open goals
|
|
35
|
+
- user / team preferences, open goals, pending tasks
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Leave out only the **noise**: install/run steps, step-by-step how-tos, API/parameter dumps you would re-read from the doc anyway, tool tutorials, generic boilerplate, anything obvious from the code, anything transient, and anything already covered by a fact you saved. **When in doubt whether something is durable, keep it** — storage is cheap and recall only ever surfaces the few relevant facts per message, so more good facts make memory richer, never noisier.
|
|
38
38
|
|
|
39
39
|
## 3. Save each item (deterministic sink)
|
|
40
40
|
For every item worth keeping, run one command:
|
|
@@ -47,8 +47,9 @@ npx corvusmem --save --dimension <family.topic> --value "<self-contained stateme
|
|
|
47
47
|
- Make `--value` stand on its own: name the thing and use absolute dates (e.g. "Payments go through Stripe with idempotent webhooks (one key per event)", not "we use it").
|
|
48
48
|
- `--keys`: a few search terms, including the user's own language.
|
|
49
49
|
- Add `--scope usuario` only for facts true across **all** the user's projects; the default is this project.
|
|
50
|
+
- Make each fact **atomic** (one idea) and give it good `--keys` — that is exactly what lets you store many facts without losing any to recall.
|
|
50
51
|
- Corvus de-duplicates by dimension, so re-running is safe — a repeated value is not stored twice.
|
|
51
52
|
- If you cannot tell which family a fact belongs to, or whether two notes are the same fact, **ask the user** instead of guessing.
|
|
52
53
|
|
|
53
|
-
## 4. Report
|
|
54
|
-
Finish with
|
|
54
|
+
## 4. Report — and check coverage
|
|
55
|
+
Finish with: how many documents you read (out of how many `import` found), how many facts you saved (grouped by family), and — importantly — **confirm every doc-tier file contributed at least one fact**, or name the ones that did not and why. If a substantial spec produced zero facts, you skipped it: go back and read it. **Do not delete or modify the original files** — they stay as they are.
|
|
@@ -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.
|
package/cortex/cortex-text.mjs
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/Ojna08g5NDNSSUVJQ0FXTko2Mi8LCgkODQ0MDAxNR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kJggg==';
|
|
12
|
+
|
|
8
13
|
// ---------------------------------------------------------------- 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: #
|
|
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>
|