@jossuealcala/madre 1.0.3 → 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 (106) hide show
  1. package/CHANGELOG.en.md +113 -1
  2. package/CHANGELOG.md +113 -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 +1087 -247
  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 +495 -137
  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 +185 -30
  64. package/public/salas-mac.html +5 -5
  65. package/public/salas-mac.js +475 -68
  66. package/public/styles.css +306 -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/ports.mjs +4 -6
  100. package/src/reminder-time.mjs +127 -0
  101. package/src/room.mjs +19 -7
  102. package/src/runtime-detection.mjs +6 -2
  103. package/src/sentinel-errors.mjs +4 -3
  104. package/src/server-sentinel.mjs +7 -3
  105. package/src/server.mjs +302 -70
  106. package/src/tour.mjs +24 -5
@@ -49,10 +49,15 @@ body.salas-mac {
49
49
  /* THE BAR, as a room's (styles.css, .shell > .bar and .bar-home): the surface as glass, the sheen,
50
50
  the bevel and the layered shadow, mono at 11 px; a group of its own on the right for reload and
51
51
  settings. It stays at the top while the lobby scrolls under it. */
52
- .sm-top { position: sticky; top: 0; z-index: 12; display: flex; align-items: stretch; gap: 10px; max-width: 1440px; margin: 0 auto; padding: 10px 20px 0; }
52
+ .sm-top { position: sticky; top: 0; z-index: 12; display: flex; align-items: stretch; justify-content: center; gap: 10px; max-width: 1440px; margin: 0 auto; padding: 10px 20px 0; }
53
53
  .sm-topbar { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; height: 48px; padding: 9px 12px 9px 16px; border-radius: 20px; background-color: color-mix(in srgb, var(--bg) 93%, transparent); background-image: var(--sheen); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); box-shadow: var(--bevel), 0 1px 2px rgba(0, 0, 0, .45), 0 10px 24px -10px rgba(0, 0, 0, .6), 16px 24px 50px -24px rgba(0, 0, 0, .55); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-2); }
54
54
  :root[data-scheme="light"] .sm-topbar { background-color: color-mix(in srgb, #ffffff 94%, transparent); box-shadow: var(--bevel), 0 1px 2px rgba(20, 40, 60, .12), 0 10px 24px -12px rgba(20, 40, 60, .24), 16px 24px 50px -26px rgba(20, 40, 60, .28); }
55
- .sm-topbar:first-child { flex: 1; }
55
+ /* As wide as what it holds (1.0.5): it grows with each project, agent or notice and, once it meets
56
+ the keys on the right, shrinks and folds what does not fit (fitBar, pinsFit) instead of leaving a
57
+ gap in the middle or pushing anything out. The two bars sit together in the middle of the page,
58
+ one gap apart (2026-10-20): never the bar at the left and its keys stranded at the right. */
59
+ .sm-topbar:first-child { flex: 0 1 auto; }
60
+ .sm-tb-home { margin-left: 0; }
56
61
  .sm-tb-home { flex: none; gap: 6px; padding: 9px 10px; }
57
62
  .sm-brand { display: inline-flex; align-items: center; flex: none; color: var(--text); border-radius: 8px; padding: 4px 2px; }
58
63
  .sm-brand .brand-logo { height: 15px; }
@@ -100,10 +105,12 @@ body.salas-mac {
100
105
  .sm-pill.is-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-acc); animation: sm-beat 1.4s ease-in-out infinite; }
101
106
  .sm-pill.is-update { background: color-mix(in srgb, var(--session-wait) 18%, transparent); color: var(--text); }
102
107
  .sm-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; padding: 0 4px; border-radius: 999px; background: var(--s-acc); color: var(--s-acc-ink); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0; }
103
- @media (max-width: 1180px) { .sm-tb-agents, .sm-live span { display: none; } }
108
+ /* What steps out when the bar is short is fitBar's call, measured, not the window's width: a split or a
109
+ small window with room to spare kept nothing (2026-10-20). Only a phone drops the projects for good. */
104
110
  /* However tight the bar, «+n» fits whole: the rooms go behind it, never under the next key. */
105
111
  .sm-tb-open:not([hidden]) { min-width: 40px; }
106
- @media (max-width: 980px) { .sm-tb-open, .sm-pill.is-update { display: none; } }
112
+ @media (max-width: 980px) { .sm-pill.is-update { display: none; } }
113
+ @media (max-width: 560px) { .sm-tb-open { display: none; } }
107
114
  @media (max-width: 720px) { .sm-crumb, .sm-barkey span { display: none; } .sm-top { padding: 8px 10px 0; } }
108
115
  /* A phone (2026-10-14): the bar never runs under its right group. The logo keeps only its pulse, the
109
116
  keys sit closer, and reload — which the page's own pull does — steps out, as in a project's bar. */
@@ -117,7 +124,14 @@ body.salas-mac {
117
124
  }
118
125
  @media (max-width: 560px) { #sm-reload { display: none; } }
119
126
  .sm-brand:focus-visible { outline: 2px solid var(--s-acc); outline-offset: 3px; }
120
- .sm-spacer { flex: 1; }
127
+ .sm-spacer { flex: 0 0 0; margin-left: -6px; }
128
+ /* A bar that does not fit (salas-mac.js, fitBar): the computer's name steps out, then the keys keep
129
+ their icons, then the agents step out. */
130
+ .sm-topbar.is-tight { gap: 10px; }
131
+ .sm-topbar.is-tight .sm-live > span { display: none; }
132
+ .sm-topbar.is-tighter .sm-barkey > span { display: none; }
133
+ .sm-topbar.is-tighter .sm-barkey { padding: 0 8px; }
134
+ .sm-topbar.is-tightest .sm-tb-agents { display: none; }
121
135
  /* The bar's keys are the room's bar keys (styles.css, .mother-button, .tree-button, .stop-all). */
122
136
  .sm-barkey, .sm-stop { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
123
137
  .sm-barkey svg, .sm-stop svg { width: var(--ico-sm); height: var(--ico-sm); }
@@ -264,7 +278,7 @@ a.sm-tag-room:hover { background: color-mix(in srgb, var(--s-acc) 16%, transpare
264
278
  .sm-chip.ask { max-width: 100%; padding: 5px 10px; border: 0; font-family: var(--read); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: color-mix(in srgb, var(--s-acc) 72%, var(--text)); background: color-mix(in srgb, var(--s-acc) 15%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
265
279
 
266
280
  /* Waiting for you: one number, green when nobody waits, the accent when someone does. */
267
- .sm-waiting.has .sm-big { color: var(--s-acc); }
281
+ .sm-waiting.has .sm-big, #sm-attention.has .sm-big { color: var(--s-acc); }
268
282
  .sm-waiting.has { --ring: inset 0 0 0 1.5px color-mix(in srgb, var(--s-acc) 60%, transparent); }
269
283
  .sm-waiting-body { display: grid; gap: 6px; }
270
284
  .sm-waiting-row { display: grid; gap: 1px; padding: 7px 10px; border-radius: 12px; color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--s-acc) 12%, transparent); }
@@ -376,7 +390,7 @@ a.sm-tag-room:hover { background: color-mix(in srgb, var(--s-acc) 16%, transpare
376
390
  blur behind. */
377
391
  dialog.sm-sheet { --sm-sheet-w: 520px; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--text); overflow: hidden auto; overscroll-behavior: contain; }
378
392
  dialog.sm-sheet[open] { --sm-sheet-pad: 28px; display: flex; flex-direction: column; align-items: center; padding: var(--sm-sheet-pad) 16px; }
379
- dialog.sm-sheet > .sm-sheet-body { flex: none; width: min(var(--sm-sheet-w), 100%); margin-block: auto; overflow: clip; border-radius: 18px; background-color: color-mix(in srgb, var(--bg-2) 94%, transparent); background-image: linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent 120px); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 34px 90px -30px rgba(0, 0, 0, .55), 0 8px 24px -8px rgba(0, 0, 0, .25); }
393
+ dialog.sm-sheet > .sm-sheet-body { flex: none; width: min(var(--sm-sheet-w), 100%); margin-block: auto; max-height: calc(100dvh - 2 * var(--sm-sheet-pad, 28px)); overflow: hidden auto; overscroll-behavior: contain; border-radius: 18px; background-color: color-mix(in srgb, var(--bg-2) 94%, transparent); background-image: linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent 120px); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 34px 90px -30px rgba(0, 0, 0, .55), 0 8px 24px -8px rgba(0, 0, 0, .25); }
380
394
  :root[data-scheme="light"] dialog.sm-sheet > .sm-sheet-body { background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 120px); }
381
395
  .sm-sheet::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
382
396
  .sm-sheet:where(:not(.sm-settings)) form { display: grid; gap: 16px; padding: 24px 24px 20px; }
@@ -466,6 +480,8 @@ body.sm-in-macro { overflow: hidden; }
466
480
  .sm-add { height: 32px; padding: 0 14px; font-size: 13px; }
467
481
  .sm-btn[disabled] { opacity: .45; box-shadow: none; cursor: default; }
468
482
  .sm-btn.small { height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
483
+ .sm-btn.small.quiet { background: transparent; box-shadow: none; color: var(--s-text-2, inherit); }
484
+ .sm-attention-acts { display: inline-flex; gap: 6px; flex: none; }
469
485
 
470
486
  /* An agent's mark: its own colour and glyph (brands.js). */
471
487
  .sm-mark { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--b); color: var(--b-ink); box-shadow: 0 1px 2px rgba(15, 20, 30, .14), 0 4px 10px -5px rgba(15, 20, 30, .28); }
@@ -749,20 +765,23 @@ body.sm-in-macro { overflow: hidden; }
749
765
  @media (prefers-reduced-motion: reduce) { .lw-end, .lw-end.is-bishop::before { animation: none; } .lw-wires .sm-wire { animation: none; } }
750
766
 
751
767
  /* AJUSTES, the room's window (styles.css: #settings, .settings-*, .sx-*), as wide as the room's.
752
- Its head stays at the top of the screen while the screen carries the window. The board, the
753
- scrim and the sheet over it share one place, so the window is as tall as the taller of the two
754
- and nothing inside it scrolls. */
768
+ Since 2026-10-20 it is as tall as the screen allows and never taller: its head stays put, and
769
+ the board and the open section each scroll inside it, as the room's Settings do. (Before, the
770
+ window grew with what it held and the screen scrolled it: a long section, Local AI, ran off the
771
+ bottom of the window.) */
755
772
  .sm-sheet.sm-settings { --sm-sheet-w: 980px; }
756
- .sm-sheet-body.sm-settings-window { display: flex; flex-direction: column; gap: 0; padding: 0; min-height: min(640px, calc(100dvh - 56px)); }
757
- /* Sticky against the screen's edge, not the layer's padding: the head meets the top of the screen. */
758
- .sm-settings-window > .settings-head { position: sticky; top: calc(-1 * var(--sm-sheet-pad, 0px)); z-index: 4; cursor: default; touch-action: auto; background: color-mix(in srgb, var(--bg-2) 96%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
759
- .sm-settings-body { position: relative; flex: 1; display: grid; container: settings / inline-size; }
760
- .sm-settings-body > * { grid-area: 1 / 1; min-width: 0; }
761
- .sm-settings-body > .settings-board { align-self: start; overflow: visible; }
762
- .sm-settings-body > .settings-results { align-self: start; overflow: visible; }
773
+ /* From the top, not centred: a centred window moved up by half of whatever opened in it, and the
774
+ card just clicked slid out from under the pointer (2026-10-19). */
775
+ dialog.sm-sheet.sm-settings > .sm-sheet-body { margin-block: 0 auto; }
776
+ .sm-sheet-body.sm-settings-window { display: flex; flex-direction: column; gap: 0; padding: 0; height: min(900px, calc(100dvh - 56px)); max-height: none; overflow: hidden; }
777
+ .sm-settings-window > .settings-head { position: relative; z-index: 4; flex: none; cursor: default; touch-action: auto; background: color-mix(in srgb, var(--bg-2) 96%, transparent); }
778
+ .sm-settings-body { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr); container: settings / inline-size; }
779
+ .sm-settings-body > * { grid-area: 1 / 1; min-width: 0; min-height: 0; }
780
+ .sm-settings-body > .settings-board { align-self: stretch; overflow: hidden auto; overscroll-behavior: contain; }
781
+ .sm-settings-body > .settings-results { align-self: stretch; overflow: hidden auto; overscroll-behavior: contain; }
763
782
  .sm-settings-body > .settings-scrim { position: absolute; inset: 0; }
764
- .sm-settings-body > .settings-sheet { position: relative; inset: auto; justify-self: end; width: min(580px, 64%); display: block; overflow: visible; }
765
- .sm-settings-body .settings-scroll { overflow: visible; }
783
+ .sm-settings-body > .settings-sheet { position: relative; inset: auto; justify-self: end; align-self: stretch; width: min(580px, 64%); display: flex; flex-direction: column; overflow: hidden; }
784
+ .sm-settings-body .settings-scroll { flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
766
785
  @container settings (max-width: 700px) { .sm-settings-body > .settings-sheet { width: 100%; } }
767
786
  /* Appearance over the whole window, in two columns when there is room; the wallpapers small enough
768
787
  that the thirteen fit in two rows. */
@@ -941,7 +960,7 @@ dialog.sm-sheet.sm-graph { --sm-sheet-w: min(1120px, 94vw); }
941
960
  .sm-graph-title { display: grid; gap: 2px; }
942
961
  .sm-graph-title h3 { margin: 0; }
943
962
  .sm-graph-title small { font-size: 12.5px; color: var(--text-3); }
944
- .sm-graph-stage { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; min-height: min(620px, 72vh); }
963
+ .sm-graph-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; min-height: min(620px, 72vh); }
945
964
  .sm-graph-canvas { height: auto !important; min-height: min(620px, 72vh); margin: 0 !important; }
946
965
  .sm-graph-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface, var(--panel)); box-shadow: var(--key-track); overflow: auto; }
947
966
  .sm-graph-big { font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
@@ -1068,13 +1087,6 @@ dialog.sm-sheet.sm-graph { --sm-sheet-w: min(1120px, 94vw); }
1068
1087
 
1069
1088
  /* Connections: the two halves of the link are apart at rest and close on each other under the
1070
1089
  pointer, the bar between them drawn as they meet. */
1071
- #sm-tb-links svg :is(.ic-a, .ic-b) { transition: transform calc(220ms * var(--motion-scale, 1)) var(--ease-out, ease-out); }
1072
- #sm-tb-links svg .ic-a { transform: translate(1.2px, -1.2px); }
1073
- #sm-tb-links svg .ic-b { transform: translate(-1.2px, 1.2px); }
1074
- #sm-tb-links svg .ic-mid { stroke-dasharray: 6; stroke-dashoffset: 6; transition: stroke-dashoffset calc(260ms * var(--motion-scale, 1)) var(--ease-out, ease-out) 60ms; }
1075
- #sm-tb-links:is(:hover, :focus-visible) svg :is(.ic-a, .ic-b) { transform: none; }
1076
- #sm-tb-links:is(:hover, :focus-visible) svg .ic-mid { stroke-dashoffset: 0; }
1077
- @media (prefers-reduced-motion: reduce) { #sm-tb-links svg :is(.ic-a, .ic-b) { transform: none; } #sm-tb-links svg .ic-mid { stroke-dashoffset: 0; transition: none; } }
1078
1090
 
1079
1091
  /* ==========================================================================================
1080
1092
  EACH PROJECT ON ITS PIECE OF THE WALLPAPER · 13 OCT
@@ -1323,9 +1335,6 @@ dialog.sm-sheet:focus, dialog.sm-sheet:focus-visible { outline: none; }
1323
1335
  Diagnostics do in a project. The widgets key pulses once under the pointer, and its squares fill
1324
1336
  while the sheet it opens is there. */
1325
1337
  .salas-mac :is(#sm-tb-links, #sm-macro):is(:hover, :focus-visible) { box-shadow: var(--key-rest), 0 3px 8px -5px var(--key-lift, rgba(22, 30, 22, .16)); }
1326
- #sm-add-widgets:is(:hover, :focus-visible) svg { animation: icon-pulse calc(520ms * var(--motion-scale, 1)) var(--ease-out, ease-out); }
1327
- #sm-add-widgets svg rect { fill: currentColor; fill-opacity: 0; transition: fill-opacity calc(200ms * var(--motion-scale, 1)) var(--ease-out, ease-out); }
1328
- #sm-add-widgets:active svg rect, #sm-add-widgets.filled svg rect { fill-opacity: 1; }
1329
1338
  @keyframes icon-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
1330
1339
  @media (prefers-reduced-motion: reduce) { #sm-add-widgets:is(:hover, :focus-visible) svg { animation: none; } }
1331
1340
 
@@ -1380,3 +1389,149 @@ body.sm-in-macro > :is(.tour-hint, .tour-hint-away, .hint-spot)[data-under="page
1380
1389
  100% { transform: translate3d(-5vmax, 3vmax, 0) rotate(-12deg) scale(1.1); opacity: .95; }
1381
1390
  }
1382
1391
  @media (prefers-reduced-motion: reduce) { .sm-gas { animation: none !important; } }
1392
+
1393
+ /* CONNECTIONS, 1.0.5: quieter and exact. A project is a solid dot of its tone inside a hairline
1394
+ ring, its halo small and slow; a wire is a 1px line of the source's tone, and the notes on their
1395
+ way are one short spark that travels it, without blur. Under the pointer a project or a wire comes
1396
+ forward and the rest steps back (the focus rules above). The Coordinator keeps its mark. */
1397
+ .sm-map .node .star { animation: none; }
1398
+ .sm-map .node .star .halo { opacity: calc(var(--star-halo) * .55); mix-blend-mode: normal; animation: sm-breathe-soft 5.2s ease-in-out var(--tw-delay, 0s) infinite; }
1399
+ .sm-map .node .star .ring { fill: none; stroke: var(--pc, var(--s-acc)); stroke-width: 1; stroke-opacity: .42; transition: stroke-opacity 160ms var(--ease-out, ease-out); }
1400
+ .sm-map .node:not(.linked) .star .ring { stroke-opacity: .2; stroke-dasharray: 2 3; }
1401
+ .sm-map .node:not(.linked) .star .body { fill: none; stroke: color-mix(in srgb, var(--pc, var(--s-acc)) 60%, var(--text-3)) !important; stroke-width: 1.4; }
1402
+ .sm-map .node:not(.linked) .star .heart { opacity: 0; }
1403
+ .sm-map .node .star .heart { opacity: calc(var(--star-heart) * .8); }
1404
+ .sm-map .node:is(:hover, .lit) .star .ring { stroke-opacity: .9; }
1405
+ .sm-map .node.asleep .star { opacity: .6; }
1406
+ .sm-map .wire { stroke-width: 1 !important; stroke-opacity: .3; }
1407
+ :root[data-scheme="dark"] .sm-map .wire { stroke-opacity: .34; }
1408
+ .sm-map .wire:hover, .sm-map .wire.hover, .sm-map svg.focusing .wire.lit { stroke-width: 1.6 !important; stroke-opacity: .85; }
1409
+ .sm-map .spoke { stroke-opacity: .12; stroke-dasharray: 1 5; }
1410
+ .sm-map .flow { stroke-width: 2; stroke-dasharray: 5 64; mix-blend-mode: normal; opacity: .95; animation: sm-current-soft 2.6s linear var(--flow-delay, 0s) infinite; }
1411
+ .sm-map .flow.back { stroke-dasharray: 3 66; animation-direction: reverse; }
1412
+ .sm-map .flow.still { animation: none; stroke-dasharray: none; stroke-width: 1; opacity: .4; }
1413
+ .sm-map .bishop .corona { opacity: calc(var(--star-halo) * .45); mix-blend-mode: normal; animation: sm-breathe-soft 6s ease-in-out infinite; }
1414
+ .sm-map .label { font-size: 11.5px; font-weight: 560; fill: var(--text-2); letter-spacing: 0; }
1415
+ .sm-map .node:is(:hover, .lit) .label, .sm-map .node.waiting .label { fill: var(--text); }
1416
+ @keyframes sm-current-soft { from { stroke-dashoffset: 69; } to { stroke-dashoffset: 0; } }
1417
+ @keyframes sm-breathe-soft { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
1418
+ @media (prefers-reduced-motion: reduce) { .sm-map :is(.flow, .node .star .halo, .bishop .corona) { animation: none; } }
1419
+
1420
+ /* THE BAR'S KEYS, 1.0.5 (salas-mac.html). Each says what it is on hover, small and quiet:
1421
+ Connections is two links already joined, and a few sparks leave the joint; the Market is a
1422
+ basket of modules that shakes once and settles them; Modules fills its four pieces one after
1423
+ another; Add widgets (a wide piece, a square and a circle, like Home itself) fills the same way. */
1424
+ .salas-mac :is(#sm-tb-links, #sm-tb-market, #sm-tb-modules, #sm-add-widgets) svg { overflow: visible; }
1425
+ #sm-tb-links svg :is(.ic-male, .ic-female) { transition: transform calc(240ms * var(--motion-scale, 1)) var(--ease-out, ease-out), color calc(240ms * var(--motion-scale, 1)) var(--ease-out, ease-out); }
1426
+ #sm-tb-links svg .ic-male { transform: translateX(-.6px); }
1427
+ #sm-tb-links svg .ic-female { transform: translateX(.6px); }
1428
+ /* Plugged in: the prongs go into the socket and the pair takes the accent. */
1429
+ #sm-tb-links:is(:hover, :focus-visible) svg .ic-male { transform: translateX(2.4px); color: var(--s-acc, currentColor); }
1430
+ #sm-tb-links:is(:hover, :focus-visible) svg .ic-female { transform: translateX(-.4px); color: var(--s-acc, currentColor); }
1431
+
1432
+ #sm-tb-market svg .ic-basket { transform-box: fill-box; transform-origin: 50% 100%; }
1433
+ #sm-tb-market svg .ic-mods > * { transform-box: fill-box; transform-origin: center; }
1434
+ #sm-tb-market:is(:hover, :focus-visible) svg .ic-basket { animation: sm-basket calc(560ms * var(--motion-scale, 1)) var(--ease-out, ease-out); }
1435
+ #sm-tb-market:is(:hover, :focus-visible) svg .ic-m1 { animation: sm-settle calc(560ms * var(--motion-scale, 1)) var(--ease-out, ease-out) 40ms; }
1436
+ #sm-tb-market:is(:hover, :focus-visible) svg .ic-m2 { animation: sm-settle calc(560ms * var(--motion-scale, 1)) var(--ease-out, ease-out) 100ms; }
1437
+ #sm-tb-market:is(:hover, :focus-visible) svg .ic-m3 { animation: sm-settle calc(560ms * var(--motion-scale, 1)) var(--ease-out, ease-out) 160ms; }
1438
+ @keyframes sm-basket { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 55% { transform: rotate(5deg); } 80% { transform: rotate(-2deg); } }
1439
+ @keyframes sm-settle { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-1.6px); } 70% { transform: translateY(.5px); } }
1440
+
1441
+ #sm-tb-modules svg rect, #sm-add-widgets svg :is(rect, circle) { fill: currentColor; fill-opacity: 0; transition: fill-opacity calc(180ms * var(--motion-scale, 1)) var(--ease-out, ease-out); }
1442
+ /* A tint, not a block (1.0.5): the pieces keep their outline and the air between them. */
1443
+ #sm-tb-modules:is(:hover, :focus-visible) svg rect, #sm-add-widgets:is(:hover, :focus-visible) svg :is(rect, circle), #sm-add-widgets.filled svg :is(rect, circle) { fill-opacity: .22; }
1444
+ #sm-tb-modules svg .ic-q2, #sm-add-widgets svg .ic-w2 { transition-delay: 60ms; }
1445
+ #sm-tb-modules svg .ic-q3, #sm-add-widgets svg .ic-w3 { transition-delay: 120ms; }
1446
+ #sm-tb-modules svg .ic-q4 { transition-delay: 180ms; }
1447
+ @media (prefers-reduced-motion: reduce) {
1448
+ #sm-tb-market svg :is(.ic-basket, .ic-mods > *) { animation: none !important; }
1449
+ #sm-tb-links svg :is(.ic-male, .ic-female) { transition: none; }
1450
+ #sm-tb-modules svg rect, #sm-add-widgets svg :is(rect, circle) { transition: none; }
1451
+ }
1452
+
1453
+ /* WAITING FOR YOU, 1.0.5: the dot of a project that needs the person beats softly, on the bar, on
1454
+ its card and on its pinned key: a halo of the accent that grows and fades, every 2.2 s. The dot
1455
+ itself does not move or change size, so the bar never shifts; with reduced motion it stays still. */
1456
+ .sm-tb-room.is-waiting > i, .is-waiting .sm-state .dot, .sm-pin-glyph.is-waiting i { animation: sm-attention calc(2200ms * var(--motion-scale, 1)) ease-out infinite; }
1457
+ @keyframes sm-attention {
1458
+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-acc) 55%, transparent); }
1459
+ 70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--s-acc) 0%, transparent); }
1460
+ 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-acc) 0%, transparent); }
1461
+ }
1462
+ @media (prefers-reduced-motion: reduce) { .sm-tb-room.is-waiting > i, .is-waiting .sm-state .dot, .sm-pin-glyph.is-waiting i { animation: none; } }
1463
+
1464
+ /* Keys of one place in one row (1.0.5): a narrow side wraps them, never stacks them by default. */
1465
+ .sm-keys-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
1466
+ .sm-graph-side .sm-keys-row .sm-btn { margin-top: 0; }
1467
+
1468
+ /* NEURAL CONNECTIONS, 1.0.5 (salas-mac.js, paintMap): the deep glow behind, the dendrites and their
1469
+ beads in each project's tone, the axons faint until something travels them, the signals bright.
1470
+ Over the quieter rules above. */
1471
+ .sm-map .depth-stop { stop-color: rgb(16, 52, 96); }
1472
+ :root[data-scheme="light"] .sm-map .depth-stop { stop-color: rgb(110, 150, 200); }
1473
+ .sm-map .depth { opacity: .55; pointer-events: none; }
1474
+ :root[data-scheme="light"] .sm-map .depth { opacity: .22; }
1475
+ .sm-map .dendrites path { fill: none; stroke: var(--pc, var(--s-acc)); stroke-width: 1; stroke-linecap: round; stroke-opacity: .42; }
1476
+ .sm-map .dendrites .bead { fill: var(--pc, var(--s-acc)); opacity: .7; }
1477
+ .sm-map .node:not(.linked) .dendrites { opacity: .45; }
1478
+ .sm-map .node:is(:hover, .lit) .dendrites path { stroke-opacity: .8; }
1479
+ .sm-map .node .star .halo { opacity: calc(var(--star-halo) * .75); }
1480
+ .sm-map .node .star .ring { stroke-opacity: .28; }
1481
+ .sm-map .wire { stroke-opacity: .22; }
1482
+ :root[data-scheme="dark"] .sm-map .wire { stroke-opacity: .26; }
1483
+ .sm-map .flow.signal { stroke: none; animation: none; opacity: 1; }
1484
+ .sm-map svg.focusing .flow.signal:not(.lit) { opacity: .08; }
1485
+
1486
+ /* THE PROJECTS ON THE BAR, 1.0.5: no dot. A project's key is lit while it is open, in its own
1487
+ accent's light gradient with the accent's ink (src/looks.mjs); asleep, it is a quiet key, and a
1488
+ press wakes it and lights it. When something there needs the person it beats softly until they
1489
+ go in; while an agent works it breathes. One that does not answer keeps a dashed edge. */
1490
+ .sm-tb-open > .sm-tb-room:not(.is-more):not(.sm-tb-slot) > i { display: none; }
1491
+ .sm-tb-open > .sm-tb-room:not(.is-asleep):not(.is-waking):not(.is-more):not(.sm-tb-slot) {
1492
+ background: linear-gradient(160deg, color-mix(in oklab, var(--acc, var(--s-acc)) 82%, #ffffff) 0%, var(--acc, var(--s-acc)) 60%, color-mix(in oklab, var(--acc, var(--s-acc)) 84%, #000000) 100%);
1493
+ color: var(--acc-ink, #0a1405);
1494
+ font-weight: 650;
1495
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 0 0 .5px color-mix(in srgb, var(--acc, var(--s-acc)) 60%, transparent);
1496
+ }
1497
+ .sm-tb-open > .sm-tb-room.is-asleep { background: var(--surface, var(--panel)); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); }
1498
+ .sm-tb-open > .sm-tb-room.is-asleep:hover { color: var(--text); }
1499
+ .sm-tb-open > .sm-tb-room:is(.is-outdated, .is-quiet) { box-shadow: inset 0 0 0 1.2px color-mix(in srgb, var(--acc-ink, #000) 45%, transparent); outline: 1px dashed color-mix(in srgb, var(--acc, var(--s-acc)) 70%, transparent); outline-offset: 1px; }
1500
+ .sm-tb-open > .sm-tb-room.is-waiting { animation: sm-key-attention calc(2200ms * var(--motion-scale, 1)) ease-out infinite; }
1501
+ .sm-tb-open > .sm-tb-room.is-working { animation: sm-key-breathe calc(2600ms * var(--motion-scale, 1)) ease-in-out infinite; }
1502
+ @keyframes sm-key-attention {
1503
+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc, var(--s-acc)) 60%, transparent); }
1504
+ 70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--acc, var(--s-acc)) 0%, transparent); }
1505
+ 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc, var(--s-acc)) 0%, transparent); }
1506
+ }
1507
+ @keyframes sm-key-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
1508
+ /* Waking (1.0.5): not lit yet, it is not open yet. Its color fills it from the left while the
1509
+ project starts, and it lights whole only when it answers. */
1510
+ .sm-tb-open > .sm-tb-room.is-waking {
1511
+ background-color: var(--surface, var(--panel));
1512
+ background-image: linear-gradient(160deg, color-mix(in oklab, var(--acc, var(--s-acc)) 82%, #ffffff) 0%, var(--acc, var(--s-acc)) 60%, color-mix(in oklab, var(--acc, var(--s-acc)) 84%, #000000) 100%);
1513
+ background-repeat: no-repeat; background-size: 0% 100%;
1514
+ color: var(--text-2); font-weight: 600;
1515
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc, var(--s-acc)) 45%, transparent);
1516
+ animation: sm-key-wake calc(2400ms * var(--motion-scale, 1)) cubic-bezier(.4, 0, .2, 1) infinite;
1517
+ }
1518
+ @keyframes sm-key-wake { 0% { background-size: 0% 100%; } 85%, 100% { background-size: 100% 100%; } }
1519
+ @media (prefers-reduced-motion: reduce) { .sm-tb-open > .sm-tb-room:is(.is-waiting, .is-working, .is-waking) { animation: none; } .sm-tb-open > .sm-tb-room.is-waking { background-size: 50% 100%; } }
1520
+
1521
+ /* MADRE usage (the author's widget, 2026-10-20): the week's figure first, with its trend; the 30
1522
+ days with their dates and legend; and the author's own copies, left out. */
1523
+ .sm-usage-lead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
1524
+ .sm-usage-lead > span { font-size: 13px; color: var(--text-2); }
1525
+ .sm-usage-trend { flex-basis: 100%; font-size: 12px; color: var(--text-3); }
1526
+ .sm-usage-trend.up { color: var(--s-acc); }
1527
+ .sm-usage-trend.down { color: var(--session-wait, #d9a90f); }
1528
+ .sm-usage-chart { display: grid; gap: 4px; }
1529
+ .sm-usage-axis { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
1530
+ .sm-usage-legend { display: inline-flex; align-items: center; gap: 5px; }
1531
+ .sm-usage-legend i { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--s-acc) 45%, transparent); }
1532
+ .sm-usage-legend i.is-new { background: var(--s-acc); margin-left: 6px; }
1533
+ .sm-usage-mine { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
1534
+ .sm-usage-mine > small { color: var(--text-3); font-size: 12px; }
1535
+ .sm-usage-exclude { display: flex; gap: 6px; }
1536
+ .sm-usage-exclude input { flex: 1; min-width: 0; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-family: var(--mono); font-size: 11.5px; }
1537
+ .sm-install-id { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); user-select: all; overflow-wrap: anywhere; }
@@ -43,15 +43,15 @@
43
43
  <span>Stop all</span>
44
44
  </button>
45
45
  <button id="sm-tb-links" class="sm-barkey" type="button">
46
- <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><path class="ic-mid" d="M8.2 11.8 11.8 8.2"/><path class="ic-a" d="M9 5.6 10.6 4a3.2 3.2 0 0 1 4.5 4.5L13.5 10"/><path class="ic-b" d="M11 14.4 9.4 16a3.2 3.2 0 0 1-4.5-4.5L6.5 10"/></svg>
46
+ <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><g class="ic-male"><path d="M1.2 10h1.4"/><rect x="2.6" y="6.9" width="4.8" height="6.2" rx="1.6"/><path d="M7.4 8.7h2.1M7.4 11.3h2.1" stroke-width="1.4"/></g><g class="ic-female"><path d="M12.6 7.6V6.9h3a1.6 1.6 0 0 1 1.6 1.6v3a1.6 1.6 0 0 1-1.6 1.6h-3v-.7"/><path d="M12.6 8.3v3.4"/><path d="M17.2 10h1.6"/></g></svg>
47
47
  <span>Connections</span><b id="sm-tb-links-count" class="sm-badge" hidden></b>
48
48
  </button>
49
49
  <button id="sm-tb-market" class="sm-barkey" type="button">
50
- <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3.6 7.6 4.8 4h10.4l1.2 3.6"/><path class="ic-f" d="M3.6 7.6h12.8a2.1 2.1 0 0 1-4.2 0 2.1 2.1 0 0 1-4.2 0 2.1 2.1 0 0 1-4.4 0z"/><path d="M4.6 10.4V16h10.8v-5.6"/><path d="M8.4 16v-3.2h3.2V16"/></svg>
50
+ <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><g class="ic-basket"><g class="ic-mods" stroke-width="1.4"><rect class="ic-m1" x="4.4" y="5.2" width="3.4" height="3.4" rx="1"/><circle class="ic-m2" cx="10" cy="5.3" r="1.8"/><rect class="ic-m3" x="12.2" y="5.2" width="3.4" height="3.4" rx="1"/></g><path d="M2.8 10.4h14.4l-1.5 5.4a1.6 1.6 0 0 1-1.6 1.2H5.9a1.6 1.6 0 0 1-1.6-1.2z"/><path d="M7.6 13v1.6M10 13v1.6M12.4 13v1.6" stroke-width="1.3"/></g></svg>
51
51
  <span>Market</span>
52
52
  </button>
53
53
  <button id="sm-tb-modules" class="sm-barkey" type="button">
54
- <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="6" height="6" rx="1.8"/><rect class="ic-f" x="11" y="3" width="6" height="6" rx="1.8"/><rect x="3" y="11" width="6" height="6" rx="1.8"/><path d="M12 14l1.6 1.6L17 12.2"/></svg>
54
+ <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect class="ic-q1" x="3" y="3" width="6" height="6" rx="1.8"/><rect class="ic-q2" x="11" y="3" width="6" height="6" rx="1.8"/><rect class="ic-q3" x="3" y="11" width="6" height="6" rx="1.8"/><rect class="ic-q4" x="11" y="11" width="6" height="6" rx="1.8"/></svg>
55
55
  <span>Modules</span>
56
56
  </button>
57
57
  <button id="sm-macro" class="sm-barkey sm-macro" type="button" hidden>
@@ -61,7 +61,7 @@
61
61
  </nav>
62
62
  <nav class="sm-topbar sm-tb-home" aria-label="Reload and settings">
63
63
  <button id="sm-add-widgets" class="sm-icon-key bar" type="button" aria-label="Add widgets to Home" title="Add widgets to Home">
64
- <svg viewBox="0 0 20 20" aria-hidden="true"><rect x="2.8" y="2.8" width="6" height="6" rx="1.6" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="11.2" y="2.8" width="6" height="6" rx="1.6" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="2.8" y="11.2" width="6" height="6" rx="1.6" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M14.2 11.4v5.6M11.4 14.2h5.6" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
64
+ <svg viewBox="0 0 20 20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><rect class="ic-w1" x="2.8" y="2.8" width="14.4" height="5.6" rx="2.4"/><rect class="ic-w2" x="2.8" y="11" width="6.2" height="6.2" rx="1.8"/><circle class="ic-w3" cx="14.1" cy="14.1" r="3.1"/></svg>
65
65
  </button>
66
66
  <button id="sm-reload" class="sm-icon-key bar" type="button" aria-label="Reload the page" title="Reload the page">
67
67
  <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M16 10a6 6 0 1 1-1.76-4.24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.1 3.6v3.6h-3.6" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -140,7 +140,7 @@
140
140
  <ol id="sm-decisions-list" class="sm-decisions"></ol>
141
141
  </section>
142
142
  <section id="sm-attention" class="sm-tile c-4" aria-labelledby="sm-attention-title">
143
- <header class="sm-tile-head"><h2 id="sm-attention-title">Needs you</h2><span id="sm-attention-count" class="sm-chip port"></span></header>
143
+ <header class="sm-tile-head"><h2 id="sm-attention-title">Needs you</h2><b id="sm-attention-count" class="sm-big">0</b></header>
144
144
  <ul id="sm-attention-list" class="sm-attention"></ul>
145
145
  </section>
146
146
  <section id="sm-memory" class="sm-tile c-3" aria-labelledby="sm-memory-title">