@jossuealcala/madre 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.en.md +42 -1
- package/CHANGELOG.md +42 -1
- package/README.en.md +4 -4
- package/README.md +4 -4
- package/SECURITY.md +11 -6
- package/bin/madre.mjs +74 -11
- package/docs/REFERENCE.md +15 -8
- package/docs/SDK.md +8 -8
- package/docs/en/REFERENCE.md +12 -7
- package/docs/en/SDK.md +8 -8
- package/docs/en/training/README.md +1 -1
- package/docs/sdk/connector-module.mjs +1 -1
- package/docs/sdk/hello-module.mjs +1 -1
- package/docs/training/README.md +1 -1
- package/docs/training/train.sh +3 -0
- package/package.json +4 -2
- package/public/activity.js +9 -0
- package/public/app.js +990 -173
- package/public/attribution.js +9 -0
- package/public/brands.js +27 -13
- package/public/en.js +2 -3
- package/public/es.js +968 -258
- package/public/index.html +3 -0
- package/public/macroverso.js +24 -5
- package/public/manual-content.js +38 -8
- package/public/market-view.js +116 -9
- package/public/market.js +28 -2
- package/public/news-scenes.js +185 -0
- package/public/notices.js +66 -0
- package/public/power.js +1 -1
- package/public/resay.js +3 -0
- package/public/salas-mac.css +294 -22
- package/public/salas-mac.html +3 -0
- package/public/salas-mac.js +760 -38
- package/public/styles.css +393 -17
- package/public/tips.js +124 -0
- package/public/tour-chapters.js +75 -75
- package/public/tour.js +36 -8
- package/public/troubleshooting.js +215 -22
- package/public/welcome-scene.js +358 -0
- package/public/welcome.js +523 -254
- package/src/adapters/gemini-rest.mjs +236 -0
- package/src/adapters/gemini.mjs +9 -7
- package/src/adapters/grok.mjs +288 -0
- package/src/adapters/process.mjs +14 -3
- package/src/auth-probe.mjs +32 -0
- package/src/bridge/policy.mjs +1 -1
- package/src/capabilities.mjs +30 -0
- package/src/checkpoint.mjs +115 -1
- package/src/codex-route.mjs +113 -0
- package/src/credentials.mjs +46 -8
- package/src/dataset.mjs +21 -8
- package/src/embeddings.mjs +2 -2
- package/src/event-store.mjs +10 -2
- package/src/ficha.mjs +142 -0
- package/src/file-ops.mjs +9 -3
- package/src/files.mjs +36 -2
- package/src/github.mjs +5 -3
- package/src/lease.mjs +5 -0
- package/src/market-check.mjs +1 -1
- package/src/market-remote.mjs +170 -3
- package/src/mcp/image-server.mjs +1 -1
- package/src/mcp/memory-server.mjs +22 -3
- package/src/mcp/proxy.mjs +31 -8
- package/src/memory-tools.mjs +12 -2
- package/src/memory.mjs +44 -3
- package/src/models.mjs +21 -3
- package/src/modules/ahp.mjs +8 -3
- package/src/modules/bishop-exam.mjs +41 -12
- package/src/modules/bishop.mjs +2 -2
- package/src/modules/check-alone.mjs +25 -0
- package/src/modules/choices.mjs +12 -10
- package/src/modules/fetch-alone.mjs +7 -0
- package/src/modules/helpers.mjs +23 -5
- package/src/modules/image-studio.mjs +13 -27
- package/src/modules/index.mjs +88 -11
- package/src/modules/isolated.mjs +160 -0
- package/src/modules/ollama.mjs +35 -6
- package/src/modules/playwright.mjs +46 -17
- package/src/modules/run-alone.mjs +122 -0
- package/src/modules/runs.mjs +11 -8
- package/src/modules/sdk.mjs +4 -2
- package/src/mother.mjs +6 -1
- package/src/notices-key.mjs +8 -0
- package/src/notices.mjs +185 -0
- package/src/ollama.mjs +57 -15
- package/src/outbound.mjs +56 -11
- package/src/room/archivist.mjs +36 -5
- package/src/room/busy.mjs +16 -0
- package/src/room/context.mjs +6 -3
- package/src/room/control.mjs +36 -6
- package/src/room/copilot.mjs +22 -28
- package/src/room/guard.mjs +32 -2
- package/src/room/prompt.mjs +32 -5
- package/src/room/vectors.mjs +7 -1
- package/src/room.mjs +98 -32
- package/src/router.mjs +1 -1
- package/src/runs.mjs +39 -0
- package/src/runtime-detection.mjs +46 -6
- package/src/salas.mjs +253 -15
- package/src/server.mjs +686 -87
- package/src/service.mjs +116 -0
- package/src/setup-trouble.mjs +20 -1
- package/src/skill-check.mjs +269 -0
- package/src/skills-import.mjs +128 -0
- package/src/skills.mjs +492 -0
- package/src/tour.mjs +15 -4
- package/src/whats-new.mjs +71 -0
package/public/attribution.js
CHANGED
|
@@ -81,6 +81,8 @@ export async function drawColophonKeys(host) {
|
|
|
81
81
|
// The legal notices (1.1.0, Business Source License 1.1): the copyright, who may use MADRE for free,
|
|
82
82
|
// that there is no warranty, how to read the license and where the code is — and the author's
|
|
83
83
|
// attribution, which NOTICE asks every copy to keep. Built with the Settings blocks both pages share.
|
|
84
|
+
export const TRADEMARKS = () => t('Codex is a trademark of OpenAI, Claude of Anthropic, Gemini of Google, Grok of xAI and OpenCode of its authors. Their logos appear unaltered and only to identify each service; MADRE is not affiliated with them or endorsed by them.');
|
|
85
|
+
|
|
84
86
|
export function drawLegal(host) {
|
|
85
87
|
if (!host) return null;
|
|
86
88
|
const make = (tag, className, text) => { const node = document.createElement(tag); if (className) node.className = className; if (text != null) node.textContent = text; return node; };
|
|
@@ -107,6 +109,13 @@ export function drawLegal(host) {
|
|
|
107
109
|
row(t('Made by {author}', { author: AUTHOR }), t('MADRE shows its author in the corner. Please keep it in every copy.'), AUTHOR_URL, 'jossuealcala.com');
|
|
108
110
|
row(t('The license'), t('{license} · free for individuals and teams of up to 10', { license: LICENSE_NAME }), LEGAL_LINKS.license, t('Read'));
|
|
109
111
|
row(t('The source code'), t('On GitHub, to read and to change.'), LEGAL_LINKS.source, 'GitHub');
|
|
112
|
+
// Whose the agents' logos are (2026-11-06): five are their owners' official marks, shown unaltered
|
|
113
|
+
// only to say which service each agent is (public/brands.js).
|
|
114
|
+
const marks = make('div', 'sx-row');
|
|
115
|
+
const said = make('div', 'sx-words');
|
|
116
|
+
said.append(make('b', null, t('Agent logos')), make('span', 'sx-hint', TRADEMARKS()));
|
|
117
|
+
marks.append(said);
|
|
118
|
+
rows.append(marks);
|
|
110
119
|
block.append(head, rows);
|
|
111
120
|
host.append(block);
|
|
112
121
|
return block;
|
package/public/brands.js
CHANGED
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
// Visual identity per agent.
|
|
4
4
|
//
|
|
5
5
|
// Colors follow each vendor's public palette so a Codex bubble reads as Codex
|
|
6
|
-
// and a Claude bubble as Claude.
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
6
|
+
// and a Claude bubble as Claude. Since 2026-11-06, by the author's decision, Codex, Claude, Gemini,
|
|
7
|
+
// OpenCode and Grok show their owners' official marks, in their one-colour version and unaltered
|
|
8
|
+
// (taken from the Lobe Icons collection, @lobehub/icons-static-svg 1.102.0, the set most multi-model
|
|
9
|
+
// apps use), only to identify each service; the room says whose trademarks they are. Cursor keeps
|
|
10
|
+
// MADRE's own drawing (2026-10-17). A mark is never redrawn or retouched: an official one goes in
|
|
11
|
+
// whole, or MADRE draws its own.
|
|
11
12
|
//
|
|
12
13
|
// `mark` receives no arguments and must return an SVG string with
|
|
13
14
|
// `fill="currentColor"` so the monogram inherits the agent color.
|
|
14
15
|
|
|
15
16
|
const glyph = (body) => `<svg viewBox="0 0 32 32" aria-hidden="true" focusable="false">${body}</svg>`;
|
|
17
|
+
// An official mark, one colour, exactly as its owner draws it (24 × 24, as published): the paths are
|
|
18
|
+
// never edited. The wider box is only the clear space around it, so it sits like the others.
|
|
19
|
+
const official = (body) => `<svg viewBox="-3 -3 30 30" fill="currentColor" fill-rule="evenodd" aria-hidden="true" focusable="false">${body}</svg>`;
|
|
16
20
|
|
|
17
21
|
export const BRANDS = {
|
|
18
22
|
codex: {
|
|
@@ -21,8 +25,8 @@ export const BRANDS = {
|
|
|
21
25
|
color: '#10A37F',
|
|
22
26
|
colorLight: '#0B7A5F',
|
|
23
27
|
ink: '#FFFFFF',
|
|
24
|
-
//
|
|
25
|
-
mark: () =>
|
|
28
|
+
// OpenAI's Codex mark, official and unaltered (2026-11-06, the author's choice): the monochrome one.
|
|
29
|
+
mark: () => official("<path clip-rule=\"evenodd\" d=\"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z\"></path>"),
|
|
26
30
|
},
|
|
27
31
|
claude: {
|
|
28
32
|
label: 'Claude',
|
|
@@ -30,8 +34,8 @@ export const BRANDS = {
|
|
|
30
34
|
color: '#D97757',
|
|
31
35
|
colorLight: '#B85C3C',
|
|
32
36
|
ink: '#FFFFFF',
|
|
33
|
-
//
|
|
34
|
-
mark: () =>
|
|
37
|
+
// Anthropic's Claude mark, official and unaltered (2026-11-06, the author's choice).
|
|
38
|
+
mark: () => official("<path d=\"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z\"></path>"),
|
|
35
39
|
},
|
|
36
40
|
gemini: {
|
|
37
41
|
label: 'Gemini',
|
|
@@ -40,8 +44,9 @@ export const BRANDS = {
|
|
|
40
44
|
colorLight: '#5B45B8',
|
|
41
45
|
ink: '#FFFFFF',
|
|
42
46
|
gradient: 'linear-gradient(135deg, #4796E3 0%, #8E75E8 55%, #D96570 100%)',
|
|
43
|
-
//
|
|
44
|
-
|
|
47
|
+
// Google's Gemini mark, official and unaltered (2026-11-06, the author's choice): its one-colour version,
|
|
48
|
+
// on Gemini's own gradient.
|
|
49
|
+
mark: () => official("<path d=\"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z\"></path>"),
|
|
45
50
|
},
|
|
46
51
|
opencode: {
|
|
47
52
|
label: 'OpenCode',
|
|
@@ -49,8 +54,8 @@ export const BRANDS = {
|
|
|
49
54
|
color: '#F2C94C',
|
|
50
55
|
colorLight: '#9A7A12',
|
|
51
56
|
ink: '#111111',
|
|
52
|
-
//
|
|
53
|
-
mark: () =>
|
|
57
|
+
// OpenCode's mark, official and unaltered (2026-11-06, the author's choice).
|
|
58
|
+
mark: () => official("<path d=\"M16 6H8v12h8V6zm4 16H4V2h16v20z\"></path>"),
|
|
54
59
|
},
|
|
55
60
|
// MADRE's own drawing for Cursor (2026-10-17), a free take on its mark rather than the mark: a
|
|
56
61
|
// cube seen from above, its three faces in three weights, and a pointer cut out of the right face.
|
|
@@ -62,6 +67,15 @@ export const BRANDS = {
|
|
|
62
67
|
ink: '#111111',
|
|
63
68
|
mark: () => glyph('<path fill="currentColor" d="M16 3.2 27.4 9.6 16 16 4.6 9.6z"/><path fill="currentColor" opacity=".42" d="M4.6 9.6 16 16v12.8L4.6 22.4z"/><path fill="currentColor" fill-rule="evenodd" opacity=".7" d="M27.4 9.6v12.8L16 28.8V16zM16 16l11.4-6.4-6.2 12-1.9-3.9z"/>'),
|
|
64
69
|
},
|
|
70
|
+
grok: {
|
|
71
|
+
label: 'Grok',
|
|
72
|
+
vendor: 'xAI',
|
|
73
|
+
color: '#E6E6E6',
|
|
74
|
+
colorLight: '#262626',
|
|
75
|
+
ink: '#111111',
|
|
76
|
+
// xAI's Grok mark, official and unaltered (2026-11-06, the author's choice).
|
|
77
|
+
mark: () => official("<path d=\"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815\"></path>"),
|
|
78
|
+
},
|
|
65
79
|
};
|
|
66
80
|
|
|
67
81
|
BRANDS.madre = {
|
package/public/en.js
CHANGED
|
@@ -107,7 +107,7 @@ export const EN = {
|
|
|
107
107
|
"DECLINED": "Declined",
|
|
108
108
|
"FROM THE MAC": "From the Mac",
|
|
109
109
|
"EXAM": "Exam",
|
|
110
|
-
"
|
|
110
|
+
"@{agent} holds EDIT mode. Restore point taken; UNDO will be one click.": "@{agent} holds «Edit». Restore point taken; «Undo» will be one click.",
|
|
111
111
|
"UNDO · GO BACK TO THE RESTORE POINT": "Undo · go back to the restore point",
|
|
112
112
|
"Put the project back exactly as it was before this EDIT turn.": "Put the project back exactly as it was before this answer in «Edit».",
|
|
113
113
|
"RESTORED": "Restored",
|
|
@@ -174,7 +174,7 @@ export const EN = {
|
|
|
174
174
|
"CREATE on: what to make. New files land where they belong in the project; nothing existing changes.": "«Create» is on: what to make. New files land where they belong in the project; nothing existing changes.",
|
|
175
175
|
"EDIT unlocked. Say what to change in the project; every action runs without asking.": "«Edit» unlocked. Say what to change in the project; every action runs without asking.",
|
|
176
176
|
"#4 FULL ACCESS unlocked. Commands run here, and changes are pushed or deployed outside your computer. Say exactly what should go out.": "«#4 Full access» unlocked. Commands run here, and changes are pushed or deployed outside your computer. Say exactly what should go out.",
|
|
177
|
-
"The agent you write to drives the project: it edits
|
|
177
|
+
"The agent you write to drives the project: it edits and makes plans with the other agents (each step can go up to #3 EDIT). It runs on its own only the commands that read; tests, builds and commits wait for your click.": "The agent you write to drives the project: it edits and makes plans with the other agents (each step can go up to «#3 Edit»). It runs on its own only the commands that read; tests, builds and commits wait for your click.",
|
|
178
178
|
"It asks you to confirm #3 only once. STOP ALL ends it.": "It asks you to confirm #3 only once. «Stop all» ends it.",
|
|
179
179
|
"NOW": "Now",
|
|
180
180
|
"RAISE TO #{n} ›": "Raise to #{n} ›",
|
|
@@ -387,7 +387,6 @@ export const EN = {
|
|
|
387
387
|
"ACCEPT": "Accept",
|
|
388
388
|
"On for CREATE.": "On for «Create».",
|
|
389
389
|
"Applies to its next CREATE.": "Applies to its next «Create».",
|
|
390
|
-
"Read-only until you unlock CREATE.": "Read-only until you unlock «Create».",
|
|
391
390
|
"Every message to this agent starts in #2 CREATE: it may add new files, but existing files stay untouched. Plan steps sent to it too.": "Every message to this agent starts in «#2 Create»: it may add new files, but existing files stay untouched. Plan steps sent to it too.",
|
|
392
391
|
"Messages start in #1 CHAT ONLY; turn on #2 CREATE when you want files.": "Messages start in «#1 Chat only»; turn on «#2 Create» when you want files.",
|
|
393
392
|
"@{agent} starts in #2 CREATE: every turn may add files to the project.": "@{agent} starts in «#2 Create»: every answer may add files to the project.",
|