@jossuealcala/madre 1.1.0 → 1.1.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.en.md +16 -1
- package/CHANGELOG.md +16 -1
- package/README.en.md +1 -5
- package/README.md +1 -5
- package/bin/madre.mjs +21 -22
- package/package.json +1 -1
- package/public/app.js +9 -3
- package/public/es.js +11 -2
- package/public/macroverso.js +4 -1
- package/public/manual-content.js +20 -16
- package/public/page-errors.js +2 -0
- package/public/salas-mac.js +7 -2
- package/public/troubleshooting.js +20 -4
- package/src/modules/ollama.mjs +14 -8
- package/src/sentinel-errors.mjs +4 -1
- package/src/server.mjs +24 -11
- package/src/setup-trouble.mjs +2 -0
package/CHANGELOG.en.md
CHANGED
|
@@ -4,7 +4,22 @@ Every published version of `@jossuealcala/madre`. Dates in ISO format.
|
|
|
4
4
|
|
|
5
5
|
A version closes when it is on npm: until then its section is called **Unreleased** and it can keep growing. Each published version has exactly one `vX.Y.Z` tag, one GitHub release and one section here; the patch number can reach two digits (`0.2.10`) before the minor goes up. See `docs/ROADMAP.md` for the criteria on what bumps each number. This is the English translation of [CHANGELOG.md](CHANGELOG.md); the Spanish file is the original.
|
|
6
6
|
|
|
7
|
-
## 1.1.
|
|
7
|
+
## 1.1.2 · Unreleased
|
|
8
|
+
|
|
9
|
+
## 1.1.1 · 2026-10-31
|
|
10
|
+
|
|
11
|
+
An urgent fixes release, with what 1.1.0's diagnostics said, and an installer for Windows.
|
|
12
|
+
|
|
13
|
+
- **MADRE on Windows with a double click.** Download `MADRE-Instalador.exe` from madre.run/en/windows and open it. It turns on WSL if needed, prepares a Linux of MADRE's own (it does not touch your Ubuntu, if you have one) and installs Node and MADRE inside. At the end it leaves «MADRE» in the Start menu and on the desktop, and it opens in your browser with no terminal windows. Windows asks for permission once, and only if WSL was off. If a restart is needed, the installer continues by itself when you are back. To remove it, «Desinstalar MADRE» in Installed apps; it asks before deleting MADRE's Linux and what you saved there.
|
|
14
|
+
- **A plan's closing step reads in plain words.** When an AI finished a plan with others, the chat showed in grey, in its name, MADRE's internal instruction to close it. Now it says «Reading what the others answered, to give you the final answer».
|
|
15
|
+
- **The manual explains Windows step by step:** the installer, what to do if «Windows protected your PC» shows up, why it does (the installer has no digital signature yet; the certificate is on its way) and how to remove it.
|
|
16
|
+
- **Uninstall MADRE uninstalls again.** In 1.1.0 the button closed everything and crashed before removing anything.
|
|
17
|
+
- **The AI on your computer installs on Ubuntu and WSL.** Ollama's installer now needs `zstd`, and a new Ubuntu does not have it. MADRE installs it first. If it cannot, it gives you the whole line for the terminal.
|
|
18
|
+
- **MADRE explains two failures it did not recognise.** When Codex runs out of your ChatGPT plan's usage, it says that is Codex's limit and when it comes back. And when Gemini has no account, it takes you to connect one.
|
|
19
|
+
- **Sharing memory between projects** now opens even with only one project besides the Coordinator; the window used to break.
|
|
20
|
+
- **The Map** no longer gets lost when you come back to its tab mid-animation.
|
|
21
|
+
- **If MADRE changes version while it is open**, the page asks you to close it and open it again, instead of failing.
|
|
22
|
+
- **Cleaner diagnostics.** A browser notice that was not a failure is no longer sent. A failure that names its model is no longer mistaken for the permission-modes help, so it arrives whole.
|
|
8
23
|
|
|
9
24
|
## 1.1.0 · 2026-10-31
|
|
10
25
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,22 @@ Todas las versiones publicadas de `@jossuealcala/madre`. Fechas en ISO.
|
|
|
4
4
|
|
|
5
5
|
Una versión se cierra cuando está en npm: hasta entonces su sección se llama **Sin publicar** y puede crecer. Cada versión publicada tiene exactamente una etiqueta `vX.Y.Z`, una release en GitHub y una sección aquí; el parche puede llegar a dos dígitos (`0.2.10`) antes de subir el menor. Ver `docs/ROADMAP.md` para el criterio de qué sube cada número.
|
|
6
6
|
|
|
7
|
-
## 1.1.
|
|
7
|
+
## 1.1.2 · Sin publicar
|
|
8
|
+
|
|
9
|
+
## 1.1.1 · 2026-10-31
|
|
10
|
+
|
|
11
|
+
Una versión de arreglos urgentes, con lo que dijo el diagnóstico de la 1.1.0, y un instalador para Windows.
|
|
12
|
+
|
|
13
|
+
- **MADRE en Windows con doble clic.** Descarga `MADRE-Instalador.exe` de madre.run/windows y ábrelo. Enciende WSL si hace falta, prepara un Linux propio de MADRE (no toca tu Ubuntu, si tienes uno) e instala Node y MADRE adentro. Al final deja «MADRE» en el menú Inicio y en el escritorio, y se abre en tu navegador sin ventanas de terminal. Windows pide permiso una sola vez, y solo si WSL estaba apagado. Si hay que reiniciar, el instalador sigue solo al volver. Para quitarlo, «Desinstalar MADRE» en Aplicaciones instaladas; te pregunta antes de borrar el Linux de MADRE y lo que guardaste ahí.
|
|
14
|
+
- **El paso de cierre de un plan se lee en español.** Cuando una IA terminaba un plan con otras, el chat mostraba en gris, a su nombre, la instrucción interna en inglés que MADRE le manda para cerrar. Ahora dice «Leyendo lo que contestaron los demás para darte la respuesta final».
|
|
15
|
+
- **El manual explica Windows paso a paso:** el instalador, qué hacer si aparece «Windows protegió tu PC», por qué sale (el instalador aún no tiene firma digital; el certificado ya se tramita) y cómo quitarlo.
|
|
16
|
+
- **Desinstalar MADRE ya desinstala.** En la 1.1.0, el botón cerraba todo y se caía antes de borrar nada.
|
|
17
|
+
- **La IA en tu computadora se instala en Ubuntu y en WSL.** El instalador de Ollama ahora exige `zstd`, y un Ubuntu nuevo no lo trae. MADRE lo instala primero. Si no puede, te da la línea completa para la terminal.
|
|
18
|
+
- **MADRE explica dos fallas que antes no reconocía.** Cuando Codex se queda sin uso de tu plan de ChatGPT, te dice que es su límite y cuándo vuelve. Y cuando Gemini no tiene cuenta, te lleva a conectarla.
|
|
19
|
+
- **Compartir memoria entre proyectos** ya abre aunque solo tengas un proyecto además del Coordinador; antes, la ventana se rompía.
|
|
20
|
+
- **El Mapa** ya no se pierde al volver a la pestaña a media animación.
|
|
21
|
+
- **Si MADRE cambia de versión mientras está abierta**, la página te pide cerrarla y abrirla otra vez, en lugar de fallar.
|
|
22
|
+
- **Diagnóstico más limpio.** Ya no manda un aviso del navegador que no era una falla. Una falla que menciona el modelo ya no se confunde con la ayuda de los modos de permiso, así que llega completa.
|
|
8
23
|
|
|
9
24
|
## 1.1.0 · 2026-10-31
|
|
10
25
|
|
package/README.en.md
CHANGED
|
@@ -27,11 +27,7 @@
|
|
|
27
27
|
npx @jossuealcala/madre
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
**Windows.**
|
|
31
|
-
|
|
32
|
-
1. Open PowerShell as administrator and type `wsl --install`. Restart if it asks you to.
|
|
33
|
-
2. Open **Ubuntu** from the Start menu.
|
|
34
|
-
3. Type `npx @jossuealcala/madre` there.
|
|
30
|
+
**Windows.** Download the installer from [madre.run/en/windows](https://madre.run/en/windows) and open it with a double click. It turns on WSL2 (the Linux that comes with Windows) if needed, prepares MADRE's Linux and leaves it in the Start menu, with no terminal. Prefer the terminal? Inside Ubuntu (WSL2), install Node 22 and `zstd`, and type `npx @jossuealcala/madre`.
|
|
35
31
|
|
|
36
32
|
You need Node 22.5 or newer and at least one AI you are signed in to. There is no account to create. MADRE opens in your browser and a welcome guides you step by step: it connects your AIs, puts a free AI on your computer if it fits, and adds your first project.
|
|
37
33
|
|
package/README.md
CHANGED
|
@@ -27,11 +27,7 @@
|
|
|
27
27
|
npx @jossuealcala/madre
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
**Windows.**
|
|
31
|
-
|
|
32
|
-
1. Abre PowerShell como administrador y escribe `wsl --install`. Reinicia si te lo pide.
|
|
33
|
-
2. Abre **Ubuntu** desde el menú Inicio.
|
|
34
|
-
3. Ahí escribe `npx @jossuealcala/madre`.
|
|
30
|
+
**Windows.** Descarga el instalador en [madre.run/windows](https://madre.run/windows) y ábrelo con doble clic. Enciende WSL2 (el Linux que trae Windows) si hace falta, prepara el Linux de MADRE y la deja en el menú Inicio, sin terminal. ¿Prefieres la terminal? Dentro de Ubuntu (WSL2), instala Node 22 y `zstd`, y escribe `npx @jossuealcala/madre`.
|
|
35
31
|
|
|
36
32
|
Necesitas Node 22.5 o más nuevo y al menos una IA con sesión. No hay cuenta que crear. MADRE se abre en tu navegador y una bienvenida te guía paso a paso: conecta tus IAs, pone una IA gratis en tu computadora si cabe y agrega tu primer proyecto.
|
|
37
33
|
|
package/bin/madre.mjs
CHANGED
|
@@ -26,37 +26,36 @@ const { command } = cli;
|
|
|
26
26
|
|
|
27
27
|
// WINDOWS (1.1.0, docs/WINDOWS.md D-001): on Windows, MADRE runs inside WSL2, not on Windows itself —
|
|
28
28
|
// what it promises about permissions (the write bit, process groups, each agent's sandbox) does not
|
|
29
|
-
// exist there the same way, and a start halfway is worse than none. A native start
|
|
30
|
-
//
|
|
29
|
+
// exist there the same way, and a start halfway is worse than none. A native start points at the
|
|
30
|
+
// installer (1.1.1, WIN-033: one file, a double click, no terminal), keeps the terminal way below it
|
|
31
|
+
// for whoever prefers it, in the person's language, and stops. PULSE_WINDOWS_NATIVE=1 lets a
|
|
31
32
|
// developer go on anyway.
|
|
32
33
|
if (process.platform === 'win32' && process.env.PULSE_WINDOWS_NATIVE !== '1' && command !== 'help') {
|
|
33
34
|
const spanish = /^es\b/i.test(Intl.DateTimeFormat().resolvedOptions().locale ?? '');
|
|
34
35
|
console.log(spanish ? `
|
|
35
|
-
MADRE en Windows
|
|
36
|
+
MADRE en Windows se instala con su instalador: descárgalo y ábrelo con doble clic.
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
wsl --install
|
|
39
|
-
2. Abre «Ubuntu» desde el menú Inicio y crea tu usuario.
|
|
40
|
-
3. Dentro de Ubuntu, instala Node.js y abre MADRE:
|
|
41
|
-
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
|
42
|
-
sudo apt install -y nodejs
|
|
43
|
-
npx @jossuealcala/madre
|
|
38
|
+
https://madre.run/windows
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
Hace todo solo: enciende WSL (el Linux que viene con Windows), prepara el Linux de MADRE
|
|
41
|
+
y deja «MADRE» en el menú Inicio. Sin terminal.
|
|
42
|
+
|
|
43
|
+
¿Prefieres la terminal? Dentro de Ubuntu (WSL2):
|
|
44
|
+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
|
45
|
+
sudo apt install -y nodejs zstd
|
|
46
|
+
npx @jossuealcala/madre
|
|
47
47
|
` : `
|
|
48
|
-
On Windows, MADRE
|
|
48
|
+
On Windows, MADRE installs with its installer: download it and open it with a double click.
|
|
49
|
+
|
|
50
|
+
https://madre.run/en/windows
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
2. Open «Ubuntu» from the Start menu and create your user.
|
|
53
|
-
3. Inside Ubuntu, install Node.js and open MADRE:
|
|
54
|
-
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
|
55
|
-
sudo apt install -y nodejs
|
|
56
|
-
npx @jossuealcala/madre
|
|
52
|
+
It does everything by itself: turns on WSL (the Linux that comes with Windows), prepares
|
|
53
|
+
MADRE's Linux and leaves «MADRE» in the Start menu. No terminal.
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
Prefer the terminal? Inside Ubuntu (WSL2):
|
|
56
|
+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
|
|
57
|
+
sudo apt install -y nodejs zstd
|
|
58
|
+
npx @jossuealcala/madre
|
|
60
59
|
`);
|
|
61
60
|
process.exit(1);
|
|
62
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jossuealcala/madre",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "MADRE · one local room where the AI coding agents already on your machine (Codex, Claude Code, Gemini CLI, OpenCode) work on your project together, share one memory you can see and explore, and answer to you. Read-only by default, with per-message permission modes and checkpoints you can undo. Nothing leaves your machine on its own.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
package/public/app.js
CHANGED
|
@@ -5240,6 +5240,12 @@ function renderUserMessage(event) {
|
|
|
5240
5240
|
function renderAssistantMessage(event) {
|
|
5241
5241
|
const { messageId, parentMessageId, sender, target, text, ash, status, step, totalSteps, model, effort, mode } = event.payload;
|
|
5242
5242
|
const delegated = status === 'delegated';
|
|
5243
|
+
// The plan's last step is MADRE asking its author to close it. What MADRE asked is an instruction
|
|
5244
|
+
// to the agent, in English, not something the agent said: the room showed it word for word in the
|
|
5245
|
+
// agent's name (seen on Windows, 2026-10-31). The person reads what is happening instead.
|
|
5246
|
+
// A closing the agent wrote in its plan (a «closing:» line) is its own words and stays as written.
|
|
5247
|
+
const closingAsk = delegated && target === sender;
|
|
5248
|
+
const shown = closingAsk && /^Review the delegated answers and the work completed\./.test(String(text ?? '')) ? t('Reading what the others answered, to give you the final answer.') : text;
|
|
5243
5249
|
const compact = state.lastSender === sender && !delegated && !ash?.active && !event.ghost;
|
|
5244
5250
|
const node = row('assistant', sender, { compact });
|
|
5245
5251
|
if (event.ghost || mode === 0) node.classList.add('ghost');
|
|
@@ -5256,7 +5262,7 @@ function renderAssistantMessage(event) {
|
|
|
5256
5262
|
to.append(`→ @${target}`);
|
|
5257
5263
|
who.append(to);
|
|
5258
5264
|
}
|
|
5259
|
-
who.append(el('span', 'badge',
|
|
5265
|
+
who.append(el('span', 'badge', closingAsk ? t('wrapping up') : t('step {n}/{total}', { n: step, total: totalSteps })));
|
|
5260
5266
|
} else if (target && target !== 'you') {
|
|
5261
5267
|
// And its closing answer says so, not «answering @itself».
|
|
5262
5268
|
who.append(el('span', 'badge', target === sender ? t('closing turn') : t('answering @{agent}', { agent: target })));
|
|
@@ -5276,7 +5282,7 @@ function renderAssistantMessage(event) {
|
|
|
5276
5282
|
col.append(who);
|
|
5277
5283
|
}
|
|
5278
5284
|
const bubble = el('div', 'bubble');
|
|
5279
|
-
bubble.append(renderMarkdown(
|
|
5285
|
+
bubble.append(renderMarkdown(shown));
|
|
5280
5286
|
// Written as the human's copilot: a green round robot on the agent's own circle.
|
|
5281
5287
|
if (event.payload.copilot) {
|
|
5282
5288
|
node.classList.add('copilot');
|
|
@@ -5294,7 +5300,7 @@ function renderAssistantMessage(event) {
|
|
|
5294
5300
|
const foot = el('div', 'bubble-foot');
|
|
5295
5301
|
const used = attachMemoryUsed(event.payload);
|
|
5296
5302
|
if (used) foot.append(used.toggle);
|
|
5297
|
-
foot.append(bubbleActions({ text, sender, sequence: event.sequence, messageId: delegated ? null : messageId }));
|
|
5303
|
+
foot.append(bubbleActions({ text: shown, sender, sequence: event.sequence, messageId: delegated ? null : messageId }));
|
|
5298
5304
|
const stamp = el('div', 'stamp');
|
|
5299
5305
|
stamp.id = `usage-${messageId}`;
|
|
5300
5306
|
stamp.append(el('span', null, formatTime(event.timestamp)));
|
package/public/es.js
CHANGED
|
@@ -2341,6 +2341,8 @@ export const ES = {
|
|
|
2341
2341
|
|
|
2342
2342
|
// La burbuja.
|
|
2343
2343
|
'closing turn': 'respuesta final',
|
|
2344
|
+
'wrapping up': 'cerrando',
|
|
2345
|
+
'Reading what the others answered, to give you the final answer.': 'Leyendo lo que contestaron los demás para darte la respuesta final.',
|
|
2344
2346
|
'step {n}/{total}': 'paso {n}/{total}',
|
|
2345
2347
|
'Good reply · keep it for your model': 'Buena respuesta · guárdala para entrenar tu modelo',
|
|
2346
2348
|
'Bad reply · keep it out of the dataset': 'Mala respuesta · déjala fuera de los datos de entrenamiento',
|
|
@@ -5678,6 +5680,11 @@ export const ES = {
|
|
|
5678
5680
|
'Cursor\'s plan has reached its usage limit': 'El plan de Cursor llegó a su límite de uso',
|
|
5679
5681
|
'Your Cursor account has used up the agent usage its plan gives for this period, and Cursor refuses every turn until it renews or the plan changes. It is Cursor\'s limit, not MADRE\'s: nothing in the project is wrong.': 'Tu cuenta de Cursor ya usó todo lo que su plan da de agente en este periodo, y Cursor rechaza cada turno hasta que se renueve o cambie el plan. Es un límite de Cursor, no de MADRE: no hay nada mal en el proyecto.',
|
|
5680
5682
|
'Wait for the usage to renew, change the Cursor plan, or ask another agent in the meantime.': 'Espera a que se renueve el uso, cambia el plan de Cursor o pregúntale a otro agente mientras tanto.',
|
|
5683
|
+
'MADRE changed version while it was open. Close it and open it again.': 'MADRE cambió de versión mientras estaba abierta. Ciérrala y vuelve a abrirla.',
|
|
5684
|
+
'Installing it needs zstd, which this Linux does not have. In a terminal: sudo apt install -y zstd, then try again.': 'Para instalarla hace falta zstd, y este Linux no lo tiene. En una terminal: sudo apt install -y zstd, y vuelve a intentar.',
|
|
5685
|
+
'Codex has reached its usage limit': 'Codex llegó a su límite de uso',
|
|
5686
|
+
'Your ChatGPT account has used up the Codex usage its plan gives for this period, and Codex refuses every turn until it renews. Codex says when that is at the end of its message. It is OpenAI\'s limit, not MADRE\'s: nothing in the project is wrong.': 'Tu cuenta de ChatGPT ya usó todo lo que su plan da de Codex en este periodo, y Codex rechaza cada turno hasta que se renueve. Al final de su mensaje Codex dice cuándo. Es un límite de OpenAI, no de MADRE: no hay nada mal en el proyecto.',
|
|
5687
|
+
'Wait until the date Codex gives, change your ChatGPT plan, or ask another agent in the meantime.': 'Espera a la fecha que da Codex, cambia tu plan de ChatGPT o pregúntale a otro agente mientras tanto.',
|
|
5681
5688
|
'YOUR CHOICE': 'Tu elección',
|
|
5682
5689
|
' · {n} message carried': ' · {n} mensaje cargado',
|
|
5683
5690
|
' · {n} older stays in the record': ' · {n} más viejo se queda en el historial',
|
|
@@ -5686,6 +5693,7 @@ export const ES = {
|
|
|
5686
5693
|
'# OpenCode, one turn on its own free model:': '# OpenCode, un turno con su modelo gratuito:',
|
|
5687
5694
|
'# or take the key with no balance out of OpenCode:': '# o quítale a OpenCode la llave sin saldo:',
|
|
5688
5695
|
'# plan and usage: https://cursor.com/dashboard': '# plan y uso: https://cursor.com/dashboard',
|
|
5696
|
+
'# plan and usage: https://chatgpt.com/codex/settings/usage': '# plan y uso: https://chatgpt.com/codex/settings/usage',
|
|
5689
5697
|
'RETRY ON {model}': 'Reintentar con {model}',
|
|
5690
5698
|
'SENT ON {model}': 'Enviado con {model}',
|
|
5691
5699
|
'USE IT ALWAYS': 'Usarlo siempre',
|
|
@@ -6295,10 +6303,11 @@ export const ES = {
|
|
|
6295
6303
|
'# then add ~/projects/<project> in Home': '# luego agrega ~/projects/<project> en Inicio',
|
|
6296
6304
|
'MADRE on Windows': 'MADRE en Windows',
|
|
6297
6305
|
'On Windows, MADRE runs inside WSL2 (Windows Subsystem for Linux), the Linux that comes with Windows 10 and 11. Inside it MADRE works as on any Linux, and opens in your Windows browser. It does not run on Windows directly.': 'En Windows, MADRE funciona dentro de WSL2 (Subsistema de Windows para Linux), el Linux que traen Windows 10 y 11. Dentro de él, MADRE funciona como en cualquier Linux y se abre en tu navegador de Windows. No corre directo en Windows.',
|
|
6298
|
-
'
|
|
6306
|
+
'Download MADRE\'s installer from madre.run/windows and open it with a double click: it turns WSL on, prepares MADRE\'s Linux and leaves MADRE in the Start menu, with no terminal. Keep your projects inside Linux, not in /mnt/c.': 'Descarga el instalador de MADRE en madre.run/windows y ábrelo con doble clic: enciende WSL, prepara el Linux de MADRE y deja MADRE en el menú Inicio, sin terminal. Guarda tus proyectos dentro de Linux, no en /mnt/c.',
|
|
6299
6307
|
'# this is for Windows': '# esto es para Windows',
|
|
6300
6308
|
'# you are already in WSL: MADRE runs here as on any Linux': '# ya estás en WSL: MADRE corre aquí como en cualquier Linux',
|
|
6301
|
-
'#
|
|
6309
|
+
'# the installer, a double click and no terminal:': '# el instalador, con doble clic y sin terminal:',
|
|
6310
|
+
'# or by hand: in PowerShell, as administrator, once:': '# o a mano: en PowerShell, como administrador, una vez:',
|
|
6302
6311
|
'# restart, open «Ubuntu» from the Start menu, and in it:': '# reinicia, abre «Ubuntu» desde el menú Inicio y, ahí:',
|
|
6303
6312
|
// The welcome's talk with @madre and stopping a download (2026-10-28).
|
|
6304
6313
|
'You cancelled the download. What already arrived stays in Ollama: download it again and it picks up from there.': 'Cancelaste la descarga. Lo que ya bajó se queda en Ollama: si vuelves a descargarlo, sigue desde ahí.',
|
package/public/macroverso.js
CHANGED
|
@@ -791,7 +791,10 @@ export function openMacroverso({ host, rooms, here, enlaces = [], accent = '#9bf
|
|
|
791
791
|
clock += dt;
|
|
792
792
|
tick();
|
|
793
793
|
if (camera.to) {
|
|
794
|
-
|
|
794
|
+
// Never below 0: a frame stamped before the flight began (a tab coming back, a measured
|
|
795
|
+
// step) made k hugely negative, the cubic ease threw the zoom to -4.5e8 and the orbits could
|
|
796
|
+
// not be drawn (1.1.0 diagnostics).
|
|
797
|
+
const k = Math.max(0, Math.min(1, (now - camera.to.at) / camera.to.ms));
|
|
795
798
|
const e = ease(k);
|
|
796
799
|
camera.x = camera.to.from.x + (camera.to.x - camera.to.from.x) * e;
|
|
797
800
|
camera.y = camera.to.from.y + (camera.to.y - camera.to.from.y) * e;
|
package/public/manual-content.js
CHANGED
|
@@ -75,15 +75,15 @@ export const MANUAL = {
|
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
id: 'windows',
|
|
78
|
-
name: 'Windows, con
|
|
79
|
-
note: 'En Windows, MADRE funciona dentro de WSL2, el Linux que traen Windows 10 y 11.
|
|
78
|
+
name: 'Windows, con su instalador',
|
|
79
|
+
note: 'En Windows, MADRE funciona dentro de WSL2, el Linux que traen Windows 10 y 11. Su instalador lo prepara todo, sin PowerShell ni terminal: enciende WSL si está apagado, crea un Linux aparte solo para MADRE (no toca tus archivos de Windows ni tu Ubuntu, si tienes uno) e instala adentro Node.js y MADRE. Tarda unos minutos y descarga unos 400 MB.',
|
|
80
80
|
steps: [
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
81
|
+
'Descarga `MADRE-Instalador.exe` en madre.run/windows. Pesa poco: lo demás lo descarga mientras instala.',
|
|
82
|
+
'Ábrelo con doble clic. La primera vez Windows muestra «Windows protegió tu PC». Sale porque el instalador todavía no tiene firma digital, no porque haya algo malo en él: pulsa «Más información» y luego «Ejecutar de todas formas». Estamos tramitando el certificado de firma para que este aviso desaparezca.',
|
|
83
|
+
'Pulsa «Instalar». Si WSL estaba apagado, Windows te pide permiso una vez y quizá reiniciar: el instalador sigue solo al volver.',
|
|
84
|
+
'Al terminar, abre «MADRE» desde el menú Inicio o el escritorio. Se abre en tu navegador de Windows, sin ventanas de terminal.',
|
|
84
85
|
],
|
|
85
|
-
|
|
86
|
-
tip: 'Guarda tus proyectos dentro de Linux (en /home), no en /mnt/c: ahí MADRE va más rápido y protege mejor tus archivos.',
|
|
86
|
+
tip: 'Sin sorpresas: el instalador no pide contraseñas y fuera de encender WSL no cambia nada de Windows; su código está a la vista en GitHub (carpeta installer/windows). Para quitarlo: Configuración › Aplicaciones › MADRE › Desinstalar; te pregunta antes de borrar el Linux de MADRE. ¿Prefieres la terminal? En Ubuntu (WSL2): `curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -`, `sudo apt install -y nodejs zstd` y `npx @jossuealcala/madre`.',
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
name: 'Otra computadora (SSH) o máquina virtual',
|
|
@@ -421,7 +421,9 @@ export const MANUAL = {
|
|
|
421
421
|
['El agente no contestó a tiempo.', 'Vuelve a preguntar. Si pasa seguido, sube el tiempo límite en Ajustes › Trabajo y límites.'],
|
|
422
422
|
['«El puerto ya está en uso».', 'Ya hay otra MADRE abierta: usa esa, o abre esta en otro puerto con `npx @jossuealcala/madre --port 4800`.'],
|
|
423
423
|
['La Terminal dice que tu Node es muy viejo.', 'Instala Node 22.5 o más nuevo desde nodejs.org y vuelve a correr el comando.'],
|
|
424
|
-
['Abriste MADRE en Windows y te dice que se detiene.', 'En Windows, MADRE funciona dentro de WSL2.
|
|
424
|
+
['Abriste MADRE en Windows y te dice que se detiene.', 'En Windows, MADRE funciona dentro de WSL2. Usa su instalador: «Windows, con su instalador» en «Empieza aquí».'],
|
|
425
|
+
['Windows dice «Windows protegió tu PC» al abrir el instalador.', 'Es por la falta de firma digital, no por el instalador. Pulsa «Más información» y luego «Ejecutar de todas formas». Si no aparece ese botón, haz clic derecho en el archivo › Propiedades › marca «Desbloquear» › Aceptar, y ábrelo otra vez.'],
|
|
426
|
+
['En Windows (WSL), la IA en tu computadora no se instala.', 'Al instalador de Ollama le falta zstd, que Ubuntu no trae. En Ubuntu pega `sudo apt-get install -y zstd` y vuelve a pulsar Instalar.'],
|
|
425
427
|
['En WSL, la IA local de Windows no contesta.', 'En la app de Ollama de Windows, activa «Expose Ollama to the network». Luego, en Ajustes › IA local, escribe la dirección que te sugiere MADRE.'],
|
|
426
428
|
['No se abrió el navegador.', 'Abre la dirección que escribió la terminal (termina en /salas). En WSL, ábrela en tu navegador de Windows con localhost.'],
|
|
427
429
|
['Entraste por SSH y la página no carga.', 'Abre en tu computadora el túnel que escribió la terminal, con 127.0.0.1 y no localhost, y déjalo abierto.'],
|
|
@@ -512,15 +514,15 @@ export const MANUAL = {
|
|
|
512
514
|
},
|
|
513
515
|
{
|
|
514
516
|
id: 'windows',
|
|
515
|
-
name: 'Windows, with
|
|
516
|
-
note: 'On Windows, MADRE runs inside WSL2, the Linux that comes with Windows 10 and 11.
|
|
517
|
+
name: 'Windows, with its installer',
|
|
518
|
+
note: 'On Windows, MADRE runs inside WSL2, the Linux that comes with Windows 10 and 11. Its installer prepares everything, with no PowerShell and no terminal: it turns WSL on if it is off, creates a separate Linux just for MADRE (it does not touch your Windows files or your Ubuntu, if you have one) and installs Node.js and MADRE inside. It takes a few minutes and downloads about 400 MB.',
|
|
517
519
|
steps: [
|
|
518
|
-
'
|
|
519
|
-
'Open «
|
|
520
|
-
'
|
|
520
|
+
'Download `MADRE-Instalador.exe` from madre.run/en/windows. It is small: the rest downloads while it installs.',
|
|
521
|
+
'Open it with a double click. The first time, Windows shows «Windows protected your PC». It appears because the installer does not have a digital signature yet, not because anything is wrong with it: press «More info» and then «Run anyway». We are getting the signing certificate so this notice goes away.',
|
|
522
|
+
'Press «Install». If WSL was off, Windows asks for permission once and maybe a restart: the installer continues by itself when you are back.',
|
|
523
|
+
'When it finishes, open «MADRE» from the Start menu or the desktop. It opens in your Windows browser, with no terminal windows.',
|
|
521
524
|
],
|
|
522
|
-
code:
|
|
523
|
-
tip: 'Keep your projects inside Linux (in /home), not in /mnt/c: there MADRE is faster and protects your files better.',
|
|
525
|
+
tip: 'No surprises: the installer asks for no passwords and, besides turning WSL on, changes nothing in Windows; its code is in the open on GitHub (folder installer/windows). To remove it: Settings › Apps › MADRE › Uninstall; it asks before deleting MADRE\'s Linux. Prefer the terminal? In Ubuntu (WSL2): `curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -`, `sudo apt install -y nodejs zstd` and `npx @jossuealcala/madre`.',
|
|
524
526
|
},
|
|
525
527
|
{
|
|
526
528
|
name: 'Another computer (SSH) or a virtual machine',
|
|
@@ -858,7 +860,9 @@ export const MANUAL = {
|
|
|
858
860
|
['The agent did not answer in time.', 'Ask again. If it happens often, raise the time limit in Settings › Work and limits.'],
|
|
859
861
|
['«The port is already in use».', 'Another MADRE is open: use that one, or open this one on another port with `npx @jossuealcala/madre --port 4800`.'],
|
|
860
862
|
['The Terminal says your Node is too old.', 'Install Node 22.5 or newer from nodejs.org and run the command again.'],
|
|
861
|
-
['You opened MADRE on Windows and it says it stops.', 'On Windows, MADRE runs inside WSL2.
|
|
863
|
+
['You opened MADRE on Windows and it says it stops.', 'On Windows, MADRE runs inside WSL2. Use its installer: «Windows, with its installer» in «Start here».'],
|
|
864
|
+
['Windows says «Windows protected your PC» when you open the installer.', 'It is because the digital signature is missing, not because of the installer. Press «More info» and then «Run anyway». If that button does not appear, right-click the file › Properties › tick «Unblock» › OK, and open it again.'],
|
|
865
|
+
['On Windows (WSL), the AI on your computer does not install.', 'Ollama\'s installer needs zstd, which Ubuntu does not come with. In Ubuntu paste `sudo apt-get install -y zstd` and press Install again.'],
|
|
862
866
|
['In WSL, Windows\' local AI does not answer.', 'In the Ollama app on Windows, turn on «Expose Ollama to the network». Then, in Settings › Local AI, type the address MADRE suggests.'],
|
|
863
867
|
['The browser did not open.', 'Open the address the terminal printed (it ends in /salas). In WSL, open it in your Windows browser with localhost.'],
|
|
864
868
|
['You came in over SSH and the page does not load.', 'On your own computer, open the tunnel the terminal printed, with 127.0.0.1 and not localhost, and leave it open.'],
|
package/public/page-errors.js
CHANGED
|
@@ -13,6 +13,8 @@ export function tellFailures(page) {
|
|
|
13
13
|
// «Script error.» is a script of another site, a browser extension's: not MADRE's.
|
|
14
14
|
if (!said || said === 'Script error.' || told.has(said) || told.size >= 20) return;
|
|
15
15
|
if (/chrome-extension:|moz-extension:|safari-web-extension:/.test(String(stack ?? ''))) return;
|
|
16
|
+
// The browser's own notice that a resize waited one frame: nothing failed (1.1.0, 12 copies).
|
|
17
|
+
if (/^ResizeObserver loop/.test(said)) return;
|
|
16
18
|
told.add(said);
|
|
17
19
|
void fetch('/api/telemetry/page-error', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ page, message: said, stack: String(stack ?? '').slice(0, 4000) }) }).catch(() => null);
|
|
18
20
|
};
|
package/public/salas-mac.js
CHANGED
|
@@ -2616,7 +2616,11 @@ function openLinkSheet({ reader = null, source = null } = {}) {
|
|
|
2616
2616
|
// Coordinator as the one that shares, the two change places; it never reads both ways.
|
|
2617
2617
|
const coordinator = (id) => Boolean(data.salas) && id === data.salas;
|
|
2618
2618
|
if (coordinator(pick.source)) [pick.reader, pick.source] = [pick.source, pick.reader];
|
|
2619
|
-
|
|
2619
|
+
// One project and the Coordinator, asked from the project's card (it as the one that reads):
|
|
2620
|
+
// nobody else could share, so the project shares and the Coordinator reads. Without this the
|
|
2621
|
+
// sheet started with no source and broke on its first paint (1.1.0 diagnostics, 3 copies).
|
|
2622
|
+
if (!pick.source && pick.reader && !coordinator(pick.reader) && rooms.some((room) => coordinator(room.id))) [pick.source, pick.reader] = [pick.reader, data.salas];
|
|
2623
|
+
const settle =() => { if (coordinator(pick.source) && !coordinator(pick.reader)) [pick.reader, pick.source] = [pick.source, pick.reader]; if (coordinator(pick.source) || coordinator(pick.reader)) pick.both = false; };
|
|
2620
2624
|
const roomOf = (id) => rooms.find((room) => room.id === id) ?? null;
|
|
2621
2625
|
const nameOf = (id) => { const room = roomOf(id); return room ? roomLabel(room) : ''; };
|
|
2622
2626
|
// Orders only with BISHOP on one side; they would go into the other.
|
|
@@ -2754,7 +2758,7 @@ function openLinkSheet({ reader = null, source = null } = {}) {
|
|
|
2754
2758
|
return node;
|
|
2755
2759
|
}
|
|
2756
2760
|
function paintEnd(node, id, role) {
|
|
2757
|
-
if (node.dataset.room !== id) {
|
|
2761
|
+
if (node.dataset.room !== id || !node.lastChild) {
|
|
2758
2762
|
node.dataset.room = id;
|
|
2759
2763
|
node.replaceChildren();
|
|
2760
2764
|
const body = id === data.salas ? mark('bishop', 46) : (() => { const disc = el('span', 'lw-room-mark'); disc.innerHTML = FOLDER_GLYPH; return disc; })(); // trusted: drawn here
|
|
@@ -4535,6 +4539,7 @@ const TROUBLE_WORDS = {
|
|
|
4535
4539
|
permission: () => t('This computer did not let MADRE install it. Try again; if it fails again, install it from a terminal (below).'),
|
|
4536
4540
|
disk: () => t('There is not enough free space on this computer to install it.'),
|
|
4537
4541
|
'npm-missing': () => t('Installing it needs Node and npm, and this computer does not have them. Install Node from nodejs.org, then try again.'),
|
|
4542
|
+
'zstd-missing': () => t('Installing it needs zstd, which this Linux does not have. In a terminal: sudo apt install -y zstd, then try again.'),
|
|
4538
4543
|
timeout: () => t('It took too long and was stopped. Try again.'),
|
|
4539
4544
|
unknown: () => t('It did not install.'),
|
|
4540
4545
|
},
|
|
@@ -202,13 +202,27 @@ export const CONDITIONS = [
|
|
|
202
202
|
remedy: 'Wait for the usage to renew, change the Cursor plan, or ask another agent in the meantime.',
|
|
203
203
|
fixes: same(['# plan and usage: https://cursor.com/dashboard', 'cursor-agent status']),
|
|
204
204
|
},
|
|
205
|
+
{
|
|
206
|
+
// Seen in the diagnostics of 1.1.0 (2026-10-31): Codex on a free ChatGPT account ran out and
|
|
207
|
+
// the room called it an unknown failure.
|
|
208
|
+
id: 'codex-usage-limit',
|
|
209
|
+
code: 'MU-074',
|
|
210
|
+
agent: 'codex',
|
|
211
|
+
severity: 'blocking',
|
|
212
|
+
title: 'Codex has reached its usage limit',
|
|
213
|
+
match: /hit your usage limit|usage limit reached|Upgrade to (?:Plus|Pro) to continue/i,
|
|
214
|
+
diagnosis: 'Your ChatGPT account has used up the Codex usage its plan gives for this period, and Codex refuses every turn until it renews. Codex says when that is at the end of its message. It is OpenAI\'s limit, not MADRE\'s: nothing in the project is wrong.',
|
|
215
|
+
remedy: 'Wait until the date Codex gives, change your ChatGPT plan, or ask another agent in the meantime.',
|
|
216
|
+
fixes: same(['# plan and usage: https://chatgpt.com/codex/settings/usage']),
|
|
217
|
+
},
|
|
205
218
|
{
|
|
206
219
|
id: 'not-signed-in',
|
|
207
220
|
code: 'MU-008',
|
|
208
221
|
solvedIn: 'connections',
|
|
209
222
|
severity: 'blocking',
|
|
210
223
|
title: 'Agent installed but signed out',
|
|
211
|
-
|
|
224
|
+
// «set an Auth method»: Gemini with no account chosen exits with code 41 (1.1.0 diagnostics).
|
|
225
|
+
match: /not logged in|sign in required|Error authenticating|unauthorized|please (?:log|sign) ?in|no credentials|set an Auth method/i,
|
|
212
226
|
diagnosis: 'The CLI is on this computer but has no session for its provider. MADRE never stores credentials; each agent keeps its own.',
|
|
213
227
|
remedy: 'This agent has no session yet. Connect it once in Settings › Agents (MADRE runs its sign-in for you, nothing to type in a terminal), or ask the same of an agent that is connected.',
|
|
214
228
|
fixes: same(['npx @jossuealcala/madre setup', '# or directly:', 'codex login', 'claude auth login', 'opencode auth login', 'gemini # then /auth']),
|
|
@@ -411,7 +425,9 @@ export const CONDITIONS = [
|
|
|
411
425
|
code: 'MU-023',
|
|
412
426
|
severity: 'informational',
|
|
413
427
|
title: 'Permission modes: #0 INCOGNITO · #1 CHAT ONLY · #2 CREATE · #3 EDIT · #4 FULL ACCESS',
|
|
414
|
-
|
|
428
|
+
// \bmodes?\b: a bare «mode» also matched «model», and any agent failure that named its model
|
|
429
|
+
// was filed as this help card (1.1.0 diagnostics, MU-023 from Codex and OpenCode).
|
|
430
|
+
match: /\bmodes?\b|ghost|exchange|control|airlock|deploy|despleg|producci|override|designation|max mode|#[0-4]\b/i,
|
|
415
431
|
diagnosis: 'Every message goes out at a mode, chosen in the chip after TO @agent (or typed as #2 in the text). #0 INCOGNITO is off the record: nothing is saved, no other agent remembers it, gone on reload, no plan. #1 CHAT ONLY is the default: read and coordinate. #2 CREATE lets the agent add new files and folders anywhere in the project, where they belong; whatever existed before is put back after the turn and the project says so. #3 EDIT puts one agent in command of the project itself: a git restore point is taken first, every change is listed afterwards, writes into .git, .pulse or .env files are reverted on the spot, and UNDO goes back to the restore point. One holder at a time; it needs Max mode #3 and a git repository. Your mode is the ceiling of any plan the message starts, and #3 is never given to a plan step. Each agent has a Max mode in Settings → Permissions; above it, #2 is answered read-only and #3 is refused. When a #1 plan reaches a step that wants to create something, the project pauses and asks you: GRANT ONCE, GRANT FOR PLAN or DENY, with a 3-minute clock; silence denies. #4 FULL ACCESS is EDIT plus commands: tests, builds, git push, deploys with the CLIs and sessions already on this machine. Files still come back with UNDO; what leaves the machine does not, so the unlock asks for the project name twice. An agent that says it needs a "production mode" or "permission to run commands" is asking for #4.',
|
|
416
432
|
remedy: 'Pick the mode in the chip, or type #0..#4 in the message. Raise an agent\'s Max mode in Settings → Permissions, under Who may do what. EDIT asks for the project name (the folder name) in the unlock; FULL ACCESS asks for it twice.',
|
|
417
433
|
fixes: same(['# chip: TO @codex #1 CHAT ONLY ▾ → choose', '@codex #2 create the poster', '@opencode #4 run the tests and deploy to preview', '# Settings → Permissions → Who may do what']),
|
|
@@ -861,12 +877,12 @@ export const CONDITIONS = [
|
|
|
861
877
|
title: 'MADRE on Windows',
|
|
862
878
|
match: /\bwin32\b|native Windows|Windows nativo|wsl --install/i,
|
|
863
879
|
diagnosis: 'On Windows, MADRE runs inside WSL2 (Windows Subsystem for Linux), the Linux that comes with Windows 10 and 11. Inside it MADRE works as on any Linux, and opens in your Windows browser. It does not run on Windows directly.',
|
|
864
|
-
remedy: '
|
|
880
|
+
remedy: 'Download MADRE\'s installer from madre.run/windows and open it with a double click: it turns WSL on, prepares MADRE\'s Linux and leaves MADRE in the Start menu, with no terminal. Keep your projects inside Linux, not in /mnt/c.',
|
|
865
881
|
fixes: {
|
|
866
882
|
darwin: ['# this is for Windows'],
|
|
867
883
|
linux: ['# this is for Windows'],
|
|
868
884
|
wsl: ['# you are already in WSL: MADRE runs here as on any Linux'],
|
|
869
|
-
win32: ['# in PowerShell, as administrator, once:', 'wsl --install', '# restart, open «Ubuntu» from the Start menu, and in it:', 'curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -', 'sudo apt install -y nodejs', 'npx @jossuealcala/madre'],
|
|
885
|
+
win32: ['# the installer, a double click and no terminal:', 'https://madre.run/windows', '# or by hand: in PowerShell, as administrator, once:', 'wsl --install', '# restart, open «Ubuntu» from the Start menu, and in it:', 'curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -', 'sudo apt install -y nodejs zstd', 'npx @jossuealcala/madre'],
|
|
870
886
|
},
|
|
871
887
|
},
|
|
872
888
|
];
|
package/src/modules/ollama.mjs
CHANGED
|
@@ -26,6 +26,10 @@ export async function recommendedHere() {
|
|
|
26
26
|
// changes format and size with each release, needs the GPU libraries beside it and a PATH the
|
|
27
27
|
// running MADRE does not see, and gives no service. One person keeps this; the script keeps itself.)
|
|
28
28
|
const LINUX_SCRIPT = 'curl -fsSL https://ollama.com/install.sh | sh';
|
|
29
|
+
// Ollama's script now unpacks a .zst archive and stops with «requires zstd» when the tool is
|
|
30
|
+
// missing, which a fresh Ubuntu (WSL included) is (WIN-029: 8 copies in 1.1.0's diagnostics). On a
|
|
31
|
+
// system with apt, the line that runs, or the one handed over, installs zstd first.
|
|
32
|
+
const withZstd = (script, zstd, apt) => (zstd || !apt ? script : `sudo -n apt-get install -y zstd && ${script}`);
|
|
29
33
|
const NEEDS_PASSWORD = "Ollama's install script needs the administrator password, and MADRE cannot ask for it. Run the command in a terminal, then press RECHECK.";
|
|
30
34
|
|
|
31
35
|
// `sudo -n true` answers at once: 0 when no password is needed, an error when one is (or when this
|
|
@@ -44,30 +48,32 @@ export async function adminHere({ platform = process.platform, uid = process.get
|
|
|
44
48
|
|
|
45
49
|
// Ollama is not an npm package, so each system has its own way in. Where MADRE can run it, the
|
|
46
50
|
// command is shown on the button before it runs; where it cannot, it hands over the download.
|
|
47
|
-
export function ollamaInstallPlan({ platform = process.platform, brew = null, admin = true } = {}) {
|
|
51
|
+
export function ollamaInstallPlan({ platform = process.platform, brew = null, admin = true, zstd = true, apt = false } = {}) {
|
|
52
|
+
const script = withZstd(LINUX_SCRIPT, zstd, apt);
|
|
48
53
|
if (platform === 'darwin') {
|
|
49
54
|
return brew
|
|
50
55
|
? { command: brew, args: ['install', 'ollama'], display: 'brew install ollama', note: 'Installs Ollama with Homebrew, the package manager already on this computer.' }
|
|
51
56
|
: { command: null, download: 'https://ollama.com/download', display: null, note: 'Homebrew is not on this computer. Download Ollama from ollama.com, open it once, and press RECHECK.' };
|
|
52
57
|
}
|
|
53
58
|
if (platform === 'linux') {
|
|
54
|
-
if (!admin) return { command: null, manual: true, display:
|
|
55
|
-
return { command: 'sh', args: ['-c',
|
|
59
|
+
if (!admin) return { command: null, manual: true, display: script.replace('sudo -n ', 'sudo '), note: t(NEEDS_PASSWORD) };
|
|
60
|
+
return { command: 'sh', args: ['-c', script], display: script, note: "Ollama's own install script, downloaded from ollama.com and run on this computer." };
|
|
56
61
|
}
|
|
57
62
|
return { command: null, download: 'https://ollama.com/download', display: null, note: 'Download the Ollama installer from ollama.com, run it, and press RECHECK.' };
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
// A newer Ollama. Where MADRE can do it, the command is shown before it runs; where it cannot,
|
|
61
66
|
// it hands over the download rather than pretending.
|
|
62
|
-
export function ollamaUpdatePlan({ platform = process.platform, brew = null, admin = true } = {}) {
|
|
67
|
+
export function ollamaUpdatePlan({ platform = process.platform, brew = null, admin = true, zstd = true, apt = false } = {}) {
|
|
68
|
+
const script = withZstd(LINUX_SCRIPT, zstd, apt);
|
|
63
69
|
if (platform === 'darwin') {
|
|
64
70
|
return brew
|
|
65
71
|
? { command: brew, args: ['upgrade', 'ollama'], display: 'brew upgrade ollama', note: 'Upgrades Ollama with Homebrew. Your models stay where they are.' }
|
|
66
72
|
: { command: null, download: 'https://ollama.com/download', display: null, note: 'Ollama was not installed with Homebrew. Download the newer one from ollama.com, open it once, and press RECHECK. Your models stay where they are.' };
|
|
67
73
|
}
|
|
68
74
|
if (platform === 'linux') {
|
|
69
|
-
if (!admin) return { command: null, manual: true, display:
|
|
70
|
-
return { command: 'sh', args: ['-c',
|
|
75
|
+
if (!admin) return { command: null, manual: true, display: script.replace('sudo -n ', 'sudo '), note: `${t(NEEDS_PASSWORD)} ${t('Your models stay where they are.')}` };
|
|
76
|
+
return { command: 'sh', args: ['-c', script], display: script, note: "Ollama's own install script upgrades in place. Your models stay where they are." };
|
|
71
77
|
}
|
|
72
78
|
return { command: null, download: 'https://ollama.com/download', display: null, note: 'Download the newer Ollama from ollama.com and run it. Your models stay where they are.' };
|
|
73
79
|
}
|
|
@@ -81,7 +87,7 @@ export async function ollamaView(probe, settings) {
|
|
|
81
87
|
const binary = await findOnPath('ollama');
|
|
82
88
|
// The sudo question is only worth asking while there is something to install.
|
|
83
89
|
const admin = binary ? true : await adminHere();
|
|
84
|
-
return { ...probe, settings, binary, install: ollamaInstallPlan({ brew: await findOnPath('brew'), admin }), start: ollamaStartPlan() };
|
|
90
|
+
return { ...probe, settings, binary, install: ollamaInstallPlan({ brew: await findOnPath('brew'), admin, zstd: Boolean(await findOnPath('zstd')), apt: Boolean(await findOnPath('apt-get')) }), start: ollamaStartPlan() };
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
export default defineModule({
|
|
@@ -118,7 +124,7 @@ export default defineModule({
|
|
|
118
124
|
},
|
|
119
125
|
async updatePlan(ctx) {
|
|
120
126
|
const { findOnPath } = await import('./helpers.mjs');
|
|
121
|
-
const plan = ollamaUpdatePlan({ brew: await findOnPath('brew'), admin: await adminHere() });
|
|
127
|
+
const plan = ollamaUpdatePlan({ brew: await findOnPath('brew'), admin: await adminHere(), zstd: Boolean(await findOnPath('zstd')), apt: Boolean(await findOnPath('apt-get')) });
|
|
122
128
|
if (!plan.command) return plan;
|
|
123
129
|
// Upgrading replaces the binary, not the server already running: until it restarts, the old
|
|
124
130
|
// version keeps answering. Said before the button is pressed, done after the command.
|
package/src/sentinel-errors.mjs
CHANGED
|
@@ -112,7 +112,10 @@ export class ErrorSentinel {
|
|
|
112
112
|
// diagnose — filing it would be reporting the brake as a fault. A turn cut because MADRE was
|
|
113
113
|
// closing is the same: every room closed mid-turn filed «MADRE is shutting down» (2026-10-21).
|
|
114
114
|
if (stopped || closing) return null;
|
|
115
|
-
|
|
115
|
+
// A help card for everyone (informational and of no agent, like the permission modes) explains
|
|
116
|
+
// a feature, not a failure: filing one under it threw away the agent's words (1.1.0, MU-023).
|
|
117
|
+
// An agent's own notice (MU-002, Codex reading stdin) still explains its agent's failure.
|
|
118
|
+
const known = diagnose(error, target ?? null).filter((condition) => condition.severity !== 'informational' || condition.agent);
|
|
116
119
|
const agentVersion = this.#agents.find((one) => one.id === target)?.version ?? null;
|
|
117
120
|
// Known or not, the author hears of it (2026-10-28): how often each known condition happens is
|
|
118
121
|
// as useful as the conditions nobody catalogued.
|
package/src/server.mjs
CHANGED
|
@@ -2063,7 +2063,7 @@ export async function createPulseServer({
|
|
|
2063
2063
|
install: async () => {
|
|
2064
2064
|
if (installing) return { ok: false, error: t('Another install is running. Wait for it to finish and try again.') };
|
|
2065
2065
|
const { ollamaInstallPlan, adminHere } = await import('./modules/ollama.mjs');
|
|
2066
|
-
const plan = ollamaInstallPlan({ brew: await findOnPath('brew'), admin: await adminHere() });
|
|
2066
|
+
const plan = ollamaInstallPlan({ brew: await findOnPath('brew'), admin: await adminHere(), zstd: Boolean(await findOnPath('zstd')), apt: Boolean(await findOnPath('apt-get')) });
|
|
2067
2067
|
if (!plan.command) return { ok: false, error: plan.note, download: plan.download, manual: plan.manual ? plan.display : null };
|
|
2068
2068
|
installing = 'ollama'; installingSince = Date.now();
|
|
2069
2069
|
await room.record('extension.install.started', { id: 'ollama', name: 'OLLAMA', command: plan.display, platforms: [], alreadyInstalled: false });
|
|
@@ -2228,6 +2228,15 @@ export async function createPulseServer({
|
|
|
2228
2228
|
// Which machine serves the page, written into it (public/i18n.js, hostWords): the browser that
|
|
2229
2229
|
// reads it may be on another one, a Mac looking at a Linux box, and must not say «Mac» there.
|
|
2230
2230
|
const withHost = (html) => html.replace('<head>', `<head>\n <meta name="madre-host" content="${JSON.stringify(hostFacts()).replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<')}">`);
|
|
2231
|
+
// A page of MADRE's own. Its files can vanish under a running copy (npx replaced its folder
|
|
2232
|
+
// with a newer version): then the page says so, instead of a failure (1.1.0 diagnostics).
|
|
2233
|
+
const pageHtml = async (name) => {
|
|
2234
|
+
try { return withHost(await readFile(join(publicDirectory, name), 'utf8')); }
|
|
2235
|
+
catch (error) {
|
|
2236
|
+
if (error?.code !== 'ENOENT') throw error;
|
|
2237
|
+
return `<!doctype html><meta charset="utf-8"><title>MADRE</title><body style="font:16px system-ui;background:#111;color:#eee;padding:48px"><p>${t('MADRE changed version while it was open. Close it and open it again.')}</p></body>`;
|
|
2238
|
+
}
|
|
2239
|
+
};
|
|
2231
2240
|
const designationOk = (given) => typeof given === 'string' && given.trim().toLowerCase() === basename(canonicalProjectRoot).toLowerCase();
|
|
2232
2241
|
// A request the bridge passed on from a paired phone. It reaches the room from 127.0.0.1 like
|
|
2233
2242
|
// anything on this Mac, so «only from this computer» has to ask this too.
|
|
@@ -2235,7 +2244,7 @@ export async function createPulseServer({
|
|
|
2235
2244
|
const phoneKind = viaPhone ? String(request.headers['x-madre-device-kind'] ?? 'other').slice(0, 20) : null;
|
|
2236
2245
|
try {
|
|
2237
2246
|
if (request.method === 'GET' && url.pathname === '/') {
|
|
2238
|
-
const html =
|
|
2247
|
+
const html = await pageHtml('index.html');
|
|
2239
2248
|
response.writeHead(200, { 'content-type': 'text/html; charset=utf-8', ...PAGE_GUARDS });
|
|
2240
2249
|
return response.end(html);
|
|
2241
2250
|
}
|
|
@@ -2248,7 +2257,7 @@ export async function createPulseServer({
|
|
|
2248
2257
|
// The user manual (public/manual.html, 1.0.5): read here, without a network, in the room's
|
|
2249
2258
|
// language; and the same manual printed, in both languages (scripts/manual-pdf.mjs).
|
|
2250
2259
|
if (request.method === 'GET' && url.pathname === '/manual') {
|
|
2251
|
-
const html =
|
|
2260
|
+
const html = await pageHtml('manual.html');
|
|
2252
2261
|
response.writeHead(200, { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-cache', ...PAGE_GUARDS });
|
|
2253
2262
|
return response.end(html);
|
|
2254
2263
|
}
|
|
@@ -2444,7 +2453,7 @@ export async function createPulseServer({
|
|
|
2444
2453
|
return response.end();
|
|
2445
2454
|
}
|
|
2446
2455
|
}
|
|
2447
|
-
const html =
|
|
2456
|
+
const html = await pageHtml('salas-mac.html');
|
|
2448
2457
|
response.writeHead(200, { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-cache', ...PAGE_GUARDS });
|
|
2449
2458
|
return response.end(html);
|
|
2450
2459
|
}
|
|
@@ -2770,7 +2779,15 @@ export async function createPulseServer({
|
|
|
2770
2779
|
const { stuck } = await closeOtherRooms();
|
|
2771
2780
|
if (stuck.length) return sendJson(response, 409, { error: t('These projects did not close, so nothing was removed: {list}. Close them from Home and try again.', { list: stuck.join(', ') }), stuck });
|
|
2772
2781
|
sendJson(response, 202, { uninstalling: true, ...planView(plan), madeGo: payload?.made === true });
|
|
2773
|
-
|
|
2782
|
+
// Said before anything goes (src/install-metrics.mjs): a copy uninstalled, with the
|
|
2783
|
+
// diagnostics. It travels with the event because startPulse cannot see this room's
|
|
2784
|
+
// diagnostics (1.1.0 read `testMode` there and crashed before removing anything).
|
|
2785
|
+
const farewell = async () => {
|
|
2786
|
+
if (testMode || !(await diagnosticsNow().catch(() => false))) return;
|
|
2787
|
+
diagnostics.count('life.uninstall');
|
|
2788
|
+
await diagnostics.flush({ fetchImpl: reportFetch }).catch(() => null);
|
|
2789
|
+
};
|
|
2790
|
+
setTimeout(() => server.emit('madre:uninstall', { plan, made: payload?.made === true, farewell }), 150);
|
|
2774
2791
|
return undefined;
|
|
2775
2792
|
}
|
|
2776
2793
|
// This room, asked to close by Salas: what is running stops and the room closes the way a
|
|
@@ -5038,12 +5055,8 @@ export async function startPulse({ port, projectRoot, openBrowser, openPath = ''
|
|
|
5038
5055
|
// Uninstalling (src/uninstall.mjs): the room closes as it does for a signal — every write done,
|
|
5039
5056
|
// the memory file closed — and only then is what the plan named taken away, last thing before the
|
|
5040
5057
|
// process ends, so nothing of MADRE's writes it back.
|
|
5041
|
-
server.once('madre:uninstall', ({ plan, made }) => server.close(async () => {
|
|
5042
|
-
|
|
5043
|
-
if (!testMode && await diagnosticsNow().catch(() => false)) {
|
|
5044
|
-
diagnostics.count('life.uninstall');
|
|
5045
|
-
await diagnostics.flush({ fetchImpl: reportFetch }).catch(() => null);
|
|
5046
|
-
}
|
|
5058
|
+
server.once('madre:uninstall', ({ plan, made, farewell }) => server.close(async () => {
|
|
5059
|
+
await farewell?.().catch(() => null);
|
|
5047
5060
|
const done = await removeMadre(plan, { made }).catch((error) => ({ removed: [], failed: [{ path: null, error: error.message }] }));
|
|
5048
5061
|
console.log(done.failed.length ? `\nMADRE was uninstalled, except:\n${done.failed.map((one) => ` ${one.path ?? ''} ${one.error}`).join('\n')}\n` : '\nMADRE was uninstalled.\n');
|
|
5049
5062
|
process.exit(0);
|
package/src/setup-trouble.mjs
CHANGED
|
@@ -11,11 +11,13 @@ const PERMISSION = /EACCES|EPERM|permission denied|operation not permitted|acces
|
|
|
11
11
|
const DISK = /ENOSPC|no space left/i;
|
|
12
12
|
const NO_NPM = /spawn npm(\.cmd)? ENOENT|npm(\.cmd)?: (command )?not found|'npm' is not recognized|command not found: npm/i;
|
|
13
13
|
const TIMEOUT = /timed out|timeout|ETIMEDOUT after|SIGTERM/i;
|
|
14
|
+
const NO_ZSTD = /requires zstd|install zstd/i;
|
|
14
15
|
const CANCELLED = /cancell?ed|aborted by the user/i;
|
|
15
16
|
|
|
16
17
|
export function installTrouble(text = '') {
|
|
17
18
|
const said = String(text);
|
|
18
19
|
if (NO_NPM.test(said)) return 'npm-missing';
|
|
20
|
+
if (NO_ZSTD.test(said)) return 'zstd-missing';
|
|
19
21
|
if (DISK.test(said)) return 'disk';
|
|
20
22
|
if (NETWORK.test(said)) return 'network';
|
|
21
23
|
if (PERMISSION.test(said)) return 'permission';
|