@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.
Files changed (104) hide show
  1. package/CHANGELOG.en.md +106 -1
  2. package/CHANGELOG.md +106 -1
  3. package/NOTICE +30 -0
  4. package/README.en.md +59 -156
  5. package/README.md +60 -161
  6. package/TRADEMARKS.md +18 -0
  7. package/bin/madre.mjs +2 -2
  8. package/docs/REFERENCE.md +1 -1
  9. package/docs/SDK.md +25 -4
  10. package/docs/en/REFERENCE.md +1 -1
  11. package/docs/en/SDK.md +22 -2
  12. package/docs/madre-banner.png +0 -0
  13. package/package.json +1 -1
  14. package/public/app.js +1078 -239
  15. package/public/assets/manual/madre-manual-en.pdf +0 -0
  16. package/public/assets/manual/madre-manual-es.pdf +0 -0
  17. package/public/assets/manual/shots/en-agents.webp +0 -0
  18. package/public/assets/manual/shots/en-code.webp +0 -0
  19. package/public/assets/manual/shots/en-composer.webp +0 -0
  20. package/public/assets/manual/shots/en-connectors.webp +0 -0
  21. package/public/assets/manual/shots/en-continuity.webp +0 -0
  22. package/public/assets/manual/shots/en-coordinator.webp +0 -0
  23. package/public/assets/manual/shots/en-copilot.webp +0 -0
  24. package/public/assets/manual/shots/en-diagnostics.webp +0 -0
  25. package/public/assets/manual/shots/en-home.webp +0 -0
  26. package/public/assets/manual/shots/en-local.webp +0 -0
  27. package/public/assets/manual/shots/en-memory.webp +0 -0
  28. package/public/assets/manual/shots/en-modes.webp +0 -0
  29. package/public/assets/manual/shots/en-modules.webp +0 -0
  30. package/public/assets/manual/shots/en-notes.webp +0 -0
  31. package/public/assets/manual/shots/en-settings.webp +0 -0
  32. package/public/assets/manual/shots/en-windows.webp +0 -0
  33. package/public/assets/manual/shots/es-agents.webp +0 -0
  34. package/public/assets/manual/shots/es-code.webp +0 -0
  35. package/public/assets/manual/shots/es-composer.webp +0 -0
  36. package/public/assets/manual/shots/es-connectors.webp +0 -0
  37. package/public/assets/manual/shots/es-continuity.webp +0 -0
  38. package/public/assets/manual/shots/es-coordinator.webp +0 -0
  39. package/public/assets/manual/shots/es-copilot.webp +0 -0
  40. package/public/assets/manual/shots/es-diagnostics.webp +0 -0
  41. package/public/assets/manual/shots/es-home.webp +0 -0
  42. package/public/assets/manual/shots/es-local.webp +0 -0
  43. package/public/assets/manual/shots/es-memory.webp +0 -0
  44. package/public/assets/manual/shots/es-modes.webp +0 -0
  45. package/public/assets/manual/shots/es-modules.webp +0 -0
  46. package/public/assets/manual/shots/es-notes.webp +0 -0
  47. package/public/assets/manual/shots/es-settings.webp +0 -0
  48. package/public/assets/manual/shots/es-windows.webp +0 -0
  49. package/public/en.js +74 -0
  50. package/public/es.js +493 -136
  51. package/public/i18n.js +45 -7
  52. package/public/index.html +2 -3
  53. package/public/manual-content.js +657 -0
  54. package/public/manual-shots.js +43 -0
  55. package/public/manual.css +228 -0
  56. package/public/manual.html +15 -0
  57. package/public/manual.js +398 -0
  58. package/public/market-art.js +56 -0
  59. package/public/market-view.js +140 -22
  60. package/public/market.js +25 -14
  61. package/public/mcp-catalog.js +62 -0
  62. package/public/resay.js +1 -0
  63. package/public/salas-mac.css +178 -30
  64. package/public/salas-mac.html +5 -5
  65. package/public/salas-mac.js +432 -67
  66. package/public/styles.css +300 -42
  67. package/public/tour-chapters.js +98 -90
  68. package/public/tour.js +63 -21
  69. package/public/troubleshooting.js +145 -10
  70. package/src/adapters/cursor.mjs +56 -7
  71. package/src/adapters/gemini.mjs +12 -1
  72. package/src/adapters/madre.mjs +27 -6
  73. package/src/adapters/process.mjs +5 -2
  74. package/src/auth-probe.mjs +22 -3
  75. package/src/bridge/policy.mjs +1 -1
  76. package/src/bridge/server.mjs +1 -1
  77. package/src/capabilities.mjs +3 -3
  78. package/src/credentials.mjs +24 -2
  79. package/src/history.mjs +76 -0
  80. package/src/i18n.mjs +23 -1
  81. package/src/local-ai.mjs +10 -2
  82. package/src/looks.mjs +17 -5
  83. package/src/market-license.mjs +104 -0
  84. package/src/market-remote.mjs +17 -1
  85. package/src/mcp/notes-server.mjs +120 -0
  86. package/src/mcp/proxy.mjs +14 -3
  87. package/src/models.mjs +82 -9
  88. package/src/modules/index.mjs +3 -1
  89. package/src/modules/local-models.mjs +28 -0
  90. package/src/modules/notes.mjs +142 -0
  91. package/src/modules/ollama.mjs +39 -10
  92. package/src/modules/playwright.mjs +14 -3
  93. package/src/modules/reminders.mjs +345 -0
  94. package/src/modules/sdk.mjs +21 -5
  95. package/src/mother.mjs +11 -1
  96. package/src/ollama.mjs +2 -2
  97. package/src/opencode-health.mjs +63 -0
  98. package/src/outbound.mjs +25 -1
  99. package/src/reminder-time.mjs +127 -0
  100. package/src/room.mjs +19 -7
  101. package/src/runtime-detection.mjs +6 -2
  102. package/src/sentinel-errors.mjs +4 -3
  103. package/src/server.mjs +302 -70
  104. 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 ??= at;
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));