@jossuealcala/madre 1.0.4 → 1.0.5
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 +106 -1
- package/CHANGELOG.md +106 -1
- package/NOTICE +30 -0
- package/README.en.md +59 -156
- package/README.md +60 -161
- package/TRADEMARKS.md +18 -0
- package/bin/madre.mjs +2 -2
- package/docs/REFERENCE.md +1 -1
- package/docs/SDK.md +25 -4
- package/docs/en/REFERENCE.md +1 -1
- package/docs/en/SDK.md +22 -2
- package/docs/madre-banner.png +0 -0
- package/package.json +1 -1
- package/public/app.js +1078 -239
- package/public/assets/manual/madre-manual-en.pdf +0 -0
- package/public/assets/manual/madre-manual-es.pdf +0 -0
- package/public/assets/manual/shots/en-agents.webp +0 -0
- package/public/assets/manual/shots/en-code.webp +0 -0
- package/public/assets/manual/shots/en-composer.webp +0 -0
- package/public/assets/manual/shots/en-connectors.webp +0 -0
- package/public/assets/manual/shots/en-continuity.webp +0 -0
- package/public/assets/manual/shots/en-coordinator.webp +0 -0
- package/public/assets/manual/shots/en-copilot.webp +0 -0
- package/public/assets/manual/shots/en-diagnostics.webp +0 -0
- package/public/assets/manual/shots/en-home.webp +0 -0
- package/public/assets/manual/shots/en-local.webp +0 -0
- package/public/assets/manual/shots/en-memory.webp +0 -0
- package/public/assets/manual/shots/en-modes.webp +0 -0
- package/public/assets/manual/shots/en-modules.webp +0 -0
- package/public/assets/manual/shots/en-notes.webp +0 -0
- package/public/assets/manual/shots/en-settings.webp +0 -0
- package/public/assets/manual/shots/en-windows.webp +0 -0
- package/public/assets/manual/shots/es-agents.webp +0 -0
- package/public/assets/manual/shots/es-code.webp +0 -0
- package/public/assets/manual/shots/es-composer.webp +0 -0
- package/public/assets/manual/shots/es-connectors.webp +0 -0
- package/public/assets/manual/shots/es-continuity.webp +0 -0
- package/public/assets/manual/shots/es-coordinator.webp +0 -0
- package/public/assets/manual/shots/es-copilot.webp +0 -0
- package/public/assets/manual/shots/es-diagnostics.webp +0 -0
- package/public/assets/manual/shots/es-home.webp +0 -0
- package/public/assets/manual/shots/es-local.webp +0 -0
- package/public/assets/manual/shots/es-memory.webp +0 -0
- package/public/assets/manual/shots/es-modes.webp +0 -0
- package/public/assets/manual/shots/es-modules.webp +0 -0
- package/public/assets/manual/shots/es-notes.webp +0 -0
- package/public/assets/manual/shots/es-settings.webp +0 -0
- package/public/assets/manual/shots/es-windows.webp +0 -0
- package/public/en.js +74 -0
- package/public/es.js +493 -136
- package/public/i18n.js +45 -7
- package/public/index.html +2 -3
- package/public/manual-content.js +657 -0
- package/public/manual-shots.js +43 -0
- package/public/manual.css +228 -0
- package/public/manual.html +15 -0
- package/public/manual.js +398 -0
- package/public/market-art.js +56 -0
- package/public/market-view.js +140 -22
- package/public/market.js +25 -14
- package/public/mcp-catalog.js +62 -0
- package/public/resay.js +1 -0
- package/public/salas-mac.css +178 -30
- package/public/salas-mac.html +5 -5
- package/public/salas-mac.js +432 -67
- package/public/styles.css +300 -42
- package/public/tour-chapters.js +98 -90
- package/public/tour.js +63 -21
- package/public/troubleshooting.js +145 -10
- package/src/adapters/cursor.mjs +56 -7
- package/src/adapters/gemini.mjs +12 -1
- package/src/adapters/madre.mjs +27 -6
- package/src/adapters/process.mjs +5 -2
- package/src/auth-probe.mjs +22 -3
- package/src/bridge/policy.mjs +1 -1
- package/src/bridge/server.mjs +1 -1
- package/src/capabilities.mjs +3 -3
- package/src/credentials.mjs +24 -2
- package/src/history.mjs +76 -0
- package/src/i18n.mjs +23 -1
- package/src/local-ai.mjs +10 -2
- package/src/looks.mjs +17 -5
- package/src/market-license.mjs +104 -0
- package/src/market-remote.mjs +17 -1
- package/src/mcp/notes-server.mjs +120 -0
- package/src/mcp/proxy.mjs +14 -3
- package/src/models.mjs +82 -9
- package/src/modules/index.mjs +3 -1
- package/src/modules/local-models.mjs +28 -0
- package/src/modules/notes.mjs +142 -0
- package/src/modules/ollama.mjs +39 -10
- package/src/modules/playwright.mjs +14 -3
- package/src/modules/reminders.mjs +345 -0
- package/src/modules/sdk.mjs +21 -5
- package/src/mother.mjs +11 -1
- package/src/ollama.mjs +2 -2
- package/src/opencode-health.mjs +63 -0
- package/src/outbound.mjs +25 -1
- package/src/reminder-time.mjs +127 -0
- package/src/room.mjs +19 -7
- package/src/runtime-detection.mjs +6 -2
- package/src/sentinel-errors.mjs +4 -3
- package/src/server.mjs +302 -70
- package/src/tour.mjs +24 -5
package/src/tour.mjs
CHANGED
|
@@ -32,14 +32,32 @@ export const TOUR_VERSION = '1.1';
|
|
|
32
32
|
export const CHAPTERS = ['moved', 'home', 'renamed', 'board', 'widgets', 'project', 'talk', 'modes', 'coordinator', 'links', 'maps', 'settings', 'modules', 'local', 'phone', 'gestures'];
|
|
33
33
|
// The places that confuse most, each told once in one line (from option C); then, from 1.1, what
|
|
34
34
|
// each key of Home's bar opens, the first time it opens, and what each widget of Home shows. (A
|
|
35
|
-
// project's bar says it with its own first-touch cards, public/app.js, FIRST_TOUCH
|
|
35
|
+
// project's bar says it with its own first-touch cards, public/app.js, FIRST_TOUCH, and its news
|
|
36
|
+
// with NEW_HINTS: both kept here too, `touch-<id>` and `new-<id>`. Kept in the page they lived in
|
|
37
|
+
// one port, and a project takes the first free port when it opens: the cards came back whenever it
|
|
38
|
+
// got another one, and the project that got the old port inherited them (2026-10-19).)
|
|
36
39
|
export const HINTS = ['switch', 'links', 'key4',
|
|
37
|
-
'home-links', 'home-map', 'home-settings', 'home-add',
|
|
38
|
-
'w-system', 'w-servers', 'w-memory', 'w-coordinator', 'w-models', 'w-usage'
|
|
40
|
+
'home-links', 'home-map', 'home-settings', 'home-add', 'new-add-widgets',
|
|
41
|
+
'w-system', 'w-servers', 'w-memory', 'w-coordinator', 'w-models', 'w-usage',
|
|
42
|
+
'touch-settings', 'touch-modules', 'touch-market', 'touch-mother', 'touch-memory', 'touch-crew', 'touch-steps', 'touch-browser', 'touch-tree', 'touch-chats', 'touch-code', 'touch-mcp',
|
|
43
|
+
'new-copilot', 'new-mcp', 'new-finder', 'new-memory-access', 'new-dots',
|
|
44
|
+
// 1.0.5: the way in for whoever is new (the box, the agent, the permission; Home's first step),
|
|
45
|
+
// and what is new for whoever met MADRE before it.
|
|
46
|
+
'guide-talk', 'guide-agent', 'guide-mode', 'home-start',
|
|
47
|
+
// The short walks of 1.0.5 (2026-10-21): Home's Coordinator and where the manual is, in Home and
|
|
48
|
+
// in a project, and Code, for whoever is new.
|
|
49
|
+
'guide-code', 'guide-manual', 'home-coordinator', 'home-manual',
|
|
50
|
+
'new-code-ask', 'new-notes', 'new-connectors', 'new-manual'];
|
|
39
51
|
const PATHS = ['new', 'back', 'since'];
|
|
52
|
+
// The news this code knows (2026-10-21): written on the bonjour as the version a person MET MADRE
|
|
53
|
+
// with (`met`). The cards of what is new are for whoever met it before a version; someone who meets
|
|
54
|
+
// it here is shown the way in instead — the box, the agent, the permission. A tour.json from before
|
|
55
|
+
// this has no `met`: that person met MADRE before 1.0.5.
|
|
56
|
+
export const NEWS_LEVEL = '1.0.5';
|
|
57
|
+
const LEVEL = /^\d+\.\d+\.\d+$/;
|
|
40
58
|
const BEFORE = ['1.0'];
|
|
41
59
|
|
|
42
|
-
const fresh = (before = null) => ({ version: TOUR_VERSION, path: null, bonjourAt: null, done: [], at: null, closed: false, finished: null, hints: {}, held: null, before });
|
|
60
|
+
const fresh = (before = null) => ({ version: TOUR_VERSION, path: null, bonjourAt: null, done: [], at: null, closed: false, finished: null, hints: {}, held: null, before, met: null });
|
|
43
61
|
// A tab that shows the bonjour or the chapters says so every few seconds; another tab that finds it
|
|
44
62
|
// said within this long tells the person it is open there, instead of a second bonjour.
|
|
45
63
|
export const HELD_MS = 45 * 1000;
|
|
@@ -66,6 +84,7 @@ export async function readTour(stateRoot) {
|
|
|
66
84
|
hints: Object.fromEntries(HINTS.filter((id) => iso(raw.hints?.[id])).map((id) => [id, raw.hints[id]])),
|
|
67
85
|
held: raw.held && TAB.test(String(raw.held.by ?? '')) && iso(raw.held.at) ? { by: raw.held.by, at: raw.held.at } : null,
|
|
68
86
|
before: BEFORE.includes(raw.before) ? raw.before : null,
|
|
87
|
+
met: LEVEL.test(String(raw.met ?? '')) ? raw.met : null,
|
|
69
88
|
};
|
|
70
89
|
}
|
|
71
90
|
|
|
@@ -91,7 +110,7 @@ async function applyChange(stateRoot, change, now) {
|
|
|
91
110
|
if (!PATHS.includes(change.path)) return { error: 'path' };
|
|
92
111
|
state.path = change.path;
|
|
93
112
|
}
|
|
94
|
-
if (change.bonjour === true) state.bonjourAt
|
|
113
|
+
if (change.bonjour === true && !state.bonjourAt) { state.bonjourAt = at; state.met = NEWS_LEVEL; }
|
|
95
114
|
if (change.chapter !== undefined) {
|
|
96
115
|
if (!CHAPTERS.includes(change.chapter)) return { error: 'chapter' };
|
|
97
116
|
if (!state.done.includes(change.chapter)) state.done = CHAPTERS.filter((id) => id === change.chapter || state.done.includes(id));
|