@jossuealcala/madre 1.1.3 → 1.1.4
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 +20 -1
- package/CHANGELOG.md +20 -1
- package/TRADEMARKS.md +6 -2
- package/bin/madre.mjs +4 -2
- package/docs/REFERENCE.md +3 -3
- package/docs/SDK.md +28 -1
- package/docs/en/REFERENCE.md +2 -2
- package/docs/en/SDK.md +26 -0
- package/docs/sdk/hello-module.mjs +38 -3
- package/habilidades/explicamelo-facil/HABILIDAD.md +19 -0
- package/habilidades/hojas-de-calculo/HABILIDAD.md +18 -0
- package/habilidades/mensajes-a-clientes/HABILIDAD.md +19 -0
- package/habilidades/publicaciones-para-redes/HABILIDAD.md +19 -0
- package/habilidades/resumen-y-pendientes/HABILIDAD.md +18 -0
- package/habilidades/tu-pagina-paso-a-paso/HABILIDAD.md +19 -0
- package/package.json +4 -3
- package/public/activity.js +57 -22
- package/public/app.js +3998 -762
- package/public/assets/brand/OFL-SpaceGrotesk.txt +93 -0
- package/public/assets/brand/SpaceGrotesk-latin-ext.woff2 +0 -0
- package/public/assets/brand/SpaceGrotesk-latin.woff2 +0 -0
- package/public/assets/brand/madre-app-180.png +0 -0
- package/public/assets/brand/madre-app-192.png +0 -0
- package/public/assets/brand/madre-app-512.png +0 -0
- package/public/assets/brand/madre-app.svg +1 -1
- package/public/assets/brand/madre-favicon.svg +1 -1
- package/public/attribution.js +28 -27
- package/public/auto-open.js +102 -0
- package/public/brands.js +9 -6
- package/public/changes.js +63 -0
- package/public/en.js +1085 -101
- package/public/es.js +2395 -1688
- package/public/i18n.js +11 -0
- package/public/index.html +28 -27
- package/public/loader.js +322 -117
- package/public/macroverso.js +33 -350
- package/public/manual-content.js +37 -7
- package/public/manual.js +21 -6
- package/public/market-view.js +212 -105
- package/public/market.js +10 -2
- package/public/mcp-catalog.js +7 -2
- package/public/missions.js +169 -0
- package/public/news-scenes.js +110 -3
- package/public/nostromo-engine.js +935 -654
- package/public/notices.js +14 -2
- package/public/notifications.js +119 -0
- package/public/provider-marks.js +170 -0
- package/public/provider-pick.js +147 -0
- package/public/resay.js +1 -0
- package/public/review-ask.js +16 -13
- package/public/routing.js +29 -3
- package/public/salas-mac.css +257 -40
- package/public/salas-mac.html +5 -5
- package/public/salas-mac.js +376 -97
- package/public/salas.css +2 -2
- package/public/salas.html +2 -2
- package/public/salas.js +1 -1
- package/public/starters.js +128 -0
- package/public/styles.css +2656 -336
- package/public/subscription.js +303 -0
- package/public/terms-field.js +170 -0
- package/public/terms.js +117 -19
- package/public/tips.js +41 -7
- package/public/tour-chapters.js +35 -35
- package/public/tour.js +333 -43
- package/public/troubleshooting.js +100 -7
- package/public/welcome-scene.js +117 -29
- package/public/welcome.js +364 -60
- package/src/adapters/claude.mjs +2 -1
- package/src/adapters/codex.mjs +2 -1
- package/src/adapters/cursor.mjs +9 -6
- package/src/adapters/gemini.mjs +4 -0
- package/src/adapters/grok.mjs +6 -4
- package/src/adapters/madre.mjs +71 -23
- package/src/adapters/opencode.mjs +15 -2
- package/src/adapters/steps.mjs +176 -0
- package/src/app-invite.mjs +90 -0
- package/src/billing-key.mjs +8 -0
- package/src/billing.mjs +317 -0
- package/src/bridge/policy.mjs +1 -1
- package/src/capabilities.mjs +17 -11
- package/src/chats.mjs +44 -2
- package/src/checkpoint.mjs +5 -1
- package/src/commands.mjs +5 -2
- package/src/directives.mjs +1 -0
- package/src/event-store.mjs +15 -0
- package/src/extensions.mjs +5 -1
- package/src/ficha.mjs +16 -0
- package/src/image-studio.mjs +13 -3
- package/src/install-metrics.mjs +9 -3
- package/src/lease.mjs +1 -1
- package/src/looks.mjs +4 -1
- package/src/mcp/image-server.mjs +59 -90
- package/src/modules/ahp.mjs +2 -1
- package/src/modules/github.mjs +6 -2
- package/src/modules/image-providers.mjs +281 -0
- package/src/modules/image-studio.mjs +100 -19
- package/src/modules/index.mjs +7 -1
- package/src/modules/intents-observe.mjs +3 -1
- package/src/modules/playwright.mjs +33 -4
- package/src/modules/reminders.mjs +42 -2
- package/src/modules/ripley.mjs +2 -1
- package/src/modules/sdk.mjs +6 -1
- package/src/opencode-health.mjs +1 -1
- package/src/outbound.mjs +80 -6
- package/src/quota-sources.mjs +148 -3
- package/src/review-ask.mjs +55 -31
- package/src/room/changes.mjs +79 -0
- package/src/room/economy.mjs +1 -1
- package/src/room/guard.mjs +8 -1
- package/src/room/prompt.mjs +20 -4
- package/src/room.mjs +87 -21
- package/src/salas.mjs +30 -3
- package/src/server.mjs +545 -59
- package/src/setup.mjs +1 -1
- package/src/skills.mjs +10 -0
- package/src/terms.mjs +23 -5
- package/src/tour.mjs +18 -3
- package/src/updates.mjs +47 -4
- package/src/web-preview.mjs +181 -0
- package/src/whats-new.mjs +76 -4
package/public/market-view.js
CHANGED
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
// `openProject(projectId, item)` (Home), `toast(text)` and `changed()`.
|
|
16
16
|
|
|
17
17
|
import { t, language } from './i18n.js';
|
|
18
|
-
import { appIcon, communityOf, forSale, inMarket, isBought, loadMarket, marketEntry, marketExtras, marketFeatured, marketShelves, marketSkills, moduleFace, remoteEntry, skillHere } from './market.js';
|
|
18
|
+
import { appIcon, communityOf, forSale, includedSkills, yourSkills, inMarket, isBought, loadMarket, marketEntry, marketExtras, marketFeatured, marketShelves, marketSkills, moduleFace, remoteEntry, skillHere } from './market.js';
|
|
19
19
|
import { marketArt, marketGallery } from './market-art.js';
|
|
20
|
-
import { trazo } from './icons.js';
|
|
20
|
+
import { ICONS, trazo, trazoDrawing } from './icons.js';
|
|
21
|
+
import { markMission } from './missions.js';
|
|
21
22
|
|
|
22
23
|
const el = (tag, className = null, text = null) => {
|
|
23
24
|
const node = document.createElement(tag);
|
|
@@ -47,6 +48,17 @@ const GLYPH = {
|
|
|
47
48
|
next: trazo('next'),
|
|
48
49
|
search: trazo('search'),
|
|
49
50
|
};
|
|
51
|
+
// Back, the way Settings goes back (2026-11-13, the author: «the Market's back key, more coherent with
|
|
52
|
+
// the rest»): the same round key with its chevron, and where it goes in its name.
|
|
53
|
+
const backKey = (where, onClick) => {
|
|
54
|
+
const key = button('settings-back mk-back', null, onClick);
|
|
55
|
+
key.title = where;
|
|
56
|
+
key.setAttribute('aria-label', where);
|
|
57
|
+
const mark = el('span', 'settings-back-icon chev-icon');
|
|
58
|
+
mark.innerHTML = trazo('chevron'); // trusted: our own SVG string
|
|
59
|
+
key.append(mark);
|
|
60
|
+
return key;
|
|
61
|
+
};
|
|
50
62
|
const glyph = (node, name) => { node.insertAdjacentHTML('afterbegin', GLYPH[name]); return node; }; // trusted: our own SVG strings
|
|
51
63
|
|
|
52
64
|
// A module from the catalog says its name and what it does in the room's language (market.js).
|
|
@@ -58,6 +70,9 @@ const lineOf = (item) => (moduleFace(item).line ? t(moduleFace(item).line) : t(i
|
|
|
58
70
|
const makerOf = (item) => remoteEntry(item.id)?.author?.name ?? item.credit ?? null;
|
|
59
71
|
const communityTag = () => el('span', 'mk-community', t('Community'));
|
|
60
72
|
const priceOf = (item) => (marketEntry(item.id).price ? `$${marketEntry(item.id).price}` : t('Free'));
|
|
73
|
+
// Beside a key only a price is said (2026-11-11, the author: «less like the App Store»): free is the
|
|
74
|
+
// rule, so a free one says nothing under its key.
|
|
75
|
+
const paidOf = (item) => (marketEntry(item.id).price ? priceOf(item) : '');
|
|
61
76
|
const shelfOf = (item) => marketShelves().find((shelf) => shelf.id === marketEntry(item.id).shelf) ?? null;
|
|
62
77
|
// What its key does: a switch MADRE flips, a folder it writes into, or Local AI's own settings. A
|
|
63
78
|
// module from the catalog this computer does not have yet is a switch too: it is got first.
|
|
@@ -234,9 +249,12 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
234
249
|
// drops into place with the tick on it. Turning one off is only a moment.
|
|
235
250
|
const TICK = trazo('check');
|
|
236
251
|
const still = () => typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
252
|
+
// A chip keeps its words through it: it only fills, then lights (2026-11-11).
|
|
253
|
+
const isChip = (key) => key.classList.contains('mk-chip');
|
|
237
254
|
const startGetting = (key) => {
|
|
238
255
|
key.classList.add('getting');
|
|
239
256
|
key.dataset.from = String(Date.now());
|
|
257
|
+
if (isChip(key)) return;
|
|
240
258
|
key.dataset.was = key.textContent;
|
|
241
259
|
key.textContent = t('Getting it…');
|
|
242
260
|
};
|
|
@@ -246,6 +264,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
246
264
|
const shown = Date.now() - Number(key.dataset.from || 0);
|
|
247
265
|
if (!still() && shown < 700) await new Promise((resolve) => setTimeout(resolve, 700 - shown));
|
|
248
266
|
key.classList.remove('getting');
|
|
267
|
+
if (isChip(key)) { key.classList.add('on'); key.setAttribute('aria-pressed', 'true'); await new Promise((resolve) => setTimeout(resolve, still() ? 150 : 450)); return; }
|
|
249
268
|
key.classList.add('got');
|
|
250
269
|
key.innerHTML = TICK; // trusted: our own SVG string
|
|
251
270
|
key.append(el('span', null, t('Done')));
|
|
@@ -261,7 +280,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
261
280
|
const stopGetting = (key) => {
|
|
262
281
|
if (!key.classList.contains('getting')) return;
|
|
263
282
|
key.classList.remove('getting');
|
|
264
|
-
key.textContent = key.dataset.was ?? key.textContent;
|
|
283
|
+
if (!isChip(key)) key.textContent = key.dataset.was ?? key.textContent;
|
|
265
284
|
};
|
|
266
285
|
const turnHere = async (given, on, line, key) => {
|
|
267
286
|
key.disabled = true;
|
|
@@ -271,7 +290,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
271
290
|
said(line, on && item.id === 'playwright' ? t('Getting the test browser ready: MADRE downloads what it is missing. It can take a few minutes.') : t('One moment…'));
|
|
272
291
|
const answer = await post(`/api/extensions/${encodeURIComponent(item.id)}/install`, { confirm: true });
|
|
273
292
|
if (!answer.ok) { key.disabled = false; stopGetting(key); said(line, answer.body.error ?? t('{name} could not be turned on or off.', { name: nameOf(item) }), 'bad'); return; }
|
|
274
|
-
if (on) await landed(key);
|
|
293
|
+
if (on) { void markMission('market', { quiet: true }); await landed(key); }
|
|
275
294
|
notice(on ? t('{name} is on in this project.', { name: nameOf(item) }) : t('{name} is off in this project.', { name: nameOf(item) }));
|
|
276
295
|
await refresh();
|
|
277
296
|
};
|
|
@@ -284,7 +303,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
284
303
|
said(line, turningOn && item.id === 'playwright' ? t('Getting the test browser ready: MADRE downloads what it is missing. It can take a few minutes.') : t('One moment…'));
|
|
285
304
|
const answer = await post(`/api/extensions/${encodeURIComponent(item.id)}/scope`, { ...change, confirm: true });
|
|
286
305
|
if (!answer.ok) { key.disabled = false; stopGetting(key); said(line, answer.body.error ?? t('{name} could not be turned on or off.', { name: nameOf(item) }), 'bad'); return false; }
|
|
287
|
-
if (turningOn) await landed(key);
|
|
306
|
+
if (turningOn) { void markMission('market', { quiet: true }); await landed(key); }
|
|
288
307
|
await refresh();
|
|
289
308
|
return true;
|
|
290
309
|
};
|
|
@@ -296,15 +315,16 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
296
315
|
if (kind === 'local') return button('mk-get', t('Open'), () => { close(); host.localAi?.(); });
|
|
297
316
|
if (!onPage) {
|
|
298
317
|
// On a shelf the key is short: what is on says so and opens its page; what is off gets it.
|
|
299
|
-
|
|
318
|
+
// One word for getting anything, «Install», and one for having it (2026-11-11, the author).
|
|
319
|
+
if (on) return button('mk-get on', t('Installed'), () => go({ tab: 'shop', focus: item.id }));
|
|
300
320
|
// A paid module not bought yet is bought on its page, where it says what it costs and how.
|
|
301
321
|
if (unpaid(item)) return button('mk-get', t('Buy'), () => go({ tab: 'shop', focus: item.id }));
|
|
302
322
|
if (!home && kind === 'switch') {
|
|
303
|
-
const key = button('mk-get', t('
|
|
323
|
+
const key = button('mk-get', t('Install'), async (event) => { event.stopPropagation(); const line = el('span'); await turnHere(item, true, line, key); if (line.dataset.tone === 'bad') { notice(line.textContent); key.disabled = false; } });
|
|
304
324
|
return key;
|
|
305
325
|
}
|
|
306
326
|
if (!home && kind === 'install') return button('mk-get', t('Install'), () => { close(); host.installHere?.(item); });
|
|
307
|
-
return button('mk-get',
|
|
327
|
+
return button('mk-get', t('Install'), () => go({ tab: 'shop', focus: item.id, choose: true }));
|
|
308
328
|
}
|
|
309
329
|
return null;
|
|
310
330
|
};
|
|
@@ -318,69 +338,78 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
318
338
|
words.append(title, el('span', null, lineOf(item)));
|
|
319
339
|
open.append(appIcon(item, 58), words);
|
|
320
340
|
const side = el('span', 'mk-row-side');
|
|
321
|
-
side.append(getKey(item), el('small', null, isOn(item) ? '' :
|
|
341
|
+
side.append(getKey(item), el('small', null, isOn(item) ? '' : paidOf(item)));
|
|
322
342
|
line.append(open, side);
|
|
323
343
|
return line;
|
|
324
344
|
};
|
|
325
345
|
|
|
326
|
-
// THE CAROUSEL: the featured modules, each on its own colors with its picture.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
346
|
+
// THE CAROUSEL: the featured modules, each on its own colors with its picture. The rail that moves
|
|
347
|
+
// them is shared with the skills' banners (2026-11-11): one slide as wide as the page, never the
|
|
348
|
+
// next one peeking at the edge.
|
|
349
|
+
const rail = (slides, label) => {
|
|
330
350
|
const box = el('section', 'mk-carousel');
|
|
331
351
|
box.setAttribute('aria-roledescription', t('carousel'));
|
|
332
|
-
box.setAttribute('aria-label',
|
|
352
|
+
box.setAttribute('aria-label', label);
|
|
333
353
|
const track = el('div', 'mk-track');
|
|
334
354
|
const dots = el('div', 'mk-dots');
|
|
335
355
|
let index = 0;
|
|
336
|
-
|
|
337
|
-
const slide = hueOf(el('article', 'mk-slide'), item);
|
|
356
|
+
slides.forEach((slide, at) => {
|
|
338
357
|
slide.setAttribute('aria-roledescription', t('slide'));
|
|
339
|
-
slide.setAttribute('aria-label', t('{n} of {total}', { n: at + 1, total:
|
|
340
|
-
const words = el('div', 'mk-slide-words');
|
|
341
|
-
const get = el('div', 'mk-slide-get');
|
|
342
|
-
const who = el('span', 'mk-slide-who');
|
|
343
|
-
who.append(el('b', null, nameOf(item)), el('span', null, isOn(item) ? reach(item) : priceOf(item)));
|
|
344
|
-
get.append(appIcon(item, 48), who, button('mk-get light', isOn(item) ? t('See it') : unpaid(item) ? t('Buy') : kindOf(item) === 'install' ? t('Install') : kindOf(item) === 'local' ? t('Open') : t('Get'), (event) => { event.stopPropagation(); go({ tab: 'shop', focus: item.id, choose: !isOn(item) }); }));
|
|
345
|
-
words.append(el('small', null, t('Featured')), el('h2', null, nameOf(item)), el('p', null, t(marketEntry(item.id).pitch ?? lineOf(item))), get);
|
|
346
|
-
const art = el('div', 'mk-slide-art');
|
|
347
|
-
art.innerHTML = marketArt(item); // trusted: our own drawings (market-art.js)
|
|
348
|
-
slide.append(words, art);
|
|
349
|
-
slide.addEventListener('click', () => go({ tab: 'shop', focus: item.id }));
|
|
358
|
+
slide.setAttribute('aria-label', t('{n} of {total}', { n: at + 1, total: slides.length }));
|
|
350
359
|
track.append(slide);
|
|
351
360
|
const dot = button('mk-dot', null, () => show(at));
|
|
352
|
-
dot.setAttribute('aria-label', t('{n} of {total}', { n: at + 1, total:
|
|
361
|
+
dot.setAttribute('aria-label', t('{n} of {total}', { n: at + 1, total: slides.length }));
|
|
353
362
|
dots.append(dot);
|
|
354
363
|
});
|
|
355
|
-
// A slide is as wide as the track, or — in the flat store — a little narrower, with the next one
|
|
356
|
-
// peeking at the edge: either way each one starts where it starts, not at a multiple of the width.
|
|
357
364
|
const startOf = (at) => (track.children[at]?.offsetLeft ?? 0) - (track.children[0]?.offsetLeft ?? 0);
|
|
358
365
|
const show = (at, smooth = true) => {
|
|
359
|
-
index = (at +
|
|
366
|
+
index = (at + slides.length) % slides.length;
|
|
360
367
|
track.scrollTo({ left: startOf(index), behavior: smooth && !reducedMotion() ? 'smooth' : 'auto' });
|
|
361
368
|
mark();
|
|
362
369
|
};
|
|
363
370
|
const mark = () => { [...dots.children].forEach((dot, at) => dot.setAttribute('aria-current', String(at === index))); };
|
|
364
371
|
track.addEventListener('scroll', () => {
|
|
365
372
|
let at = 0;
|
|
366
|
-
|
|
373
|
+
slides.forEach((_, one) => { if (Math.abs(startOf(one) - track.scrollLeft) < Math.abs(startOf(at) - track.scrollLeft)) at = one; });
|
|
367
374
|
if (at !== index) { index = at; mark(); }
|
|
368
375
|
}, { passive: true });
|
|
369
376
|
// A window sized narrower or wider keeps the card it showed in place, never half of two.
|
|
370
377
|
if (typeof ResizeObserver === 'function') new ResizeObserver(() => { if (track.isConnected) track.scrollTo({ left: startOf(index), behavior: 'auto' }); }).observe(track);
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
378
|
+
box.append(track);
|
|
379
|
+
if (slides.length > 1) {
|
|
380
|
+
const prev = glyph(button('mk-arrow prev', null, () => show(index - 1)), 'back');
|
|
381
|
+
const next = glyph(button('mk-arrow next', null, () => show(index + 1)), 'next');
|
|
382
|
+
prev.setAttribute('aria-label', t('Previous'));
|
|
383
|
+
next.setAttribute('aria-label', t('Next'));
|
|
384
|
+
box.append(prev, next, dots);
|
|
385
|
+
}
|
|
376
386
|
mark();
|
|
377
387
|
// It moves on by itself, unless the person is reading it or asked for stillness.
|
|
378
388
|
let resting = false;
|
|
379
389
|
for (const [type, value] of [['pointerenter', true], ['pointerleave', false], ['focusin', true], ['focusout', false]]) box.addEventListener(type, () => { resting = value; });
|
|
380
390
|
clearInterval(timer);
|
|
381
|
-
if (!reducedMotion() &&
|
|
391
|
+
if (!reducedMotion() && slides.length > 1) timer = setInterval(() => { if (!resting && !document.hidden && box.isConnected) show(index + 1); }, 6500);
|
|
382
392
|
return box;
|
|
383
393
|
};
|
|
394
|
+
const carousel = () => {
|
|
395
|
+
const featured = marketFeatured(items);
|
|
396
|
+
if (!featured.length) return null;
|
|
397
|
+
const slides = featured.map((item) => {
|
|
398
|
+
const slide = hueOf(el('article', 'mk-slide'), item);
|
|
399
|
+
const words = el('div', 'mk-slide-words');
|
|
400
|
+
const get = el('div', 'mk-slide-get');
|
|
401
|
+
const who = el('span', 'mk-slide-who');
|
|
402
|
+
who.append(el('b', null, nameOf(item)), el('span', null, isOn(item) ? reach(item) : paidOf(item) || lineOf(item)));
|
|
403
|
+
get.append(appIcon(item, 48), who, button('mk-get light', isOn(item) ? t('See it') : unpaid(item) ? t('Buy') : kindOf(item) === 'local' ? t('Open') : t('Install'), (event) => { event.stopPropagation(); go({ tab: 'shop', focus: item.id, choose: !isOn(item) }); }));
|
|
404
|
+
words.append(el('small', null, t('Featured')), el('h2', null, nameOf(item)), el('p', null, t(marketEntry(item.id).pitch ?? lineOf(item))), get);
|
|
405
|
+
const art = el('div', 'mk-slide-art');
|
|
406
|
+
art.innerHTML = marketArt(item); // trusted: our own drawings (market-art.js)
|
|
407
|
+
slide.append(words, art);
|
|
408
|
+
slide.addEventListener('click', () => go({ tab: 'shop', focus: item.id }));
|
|
409
|
+
return slide;
|
|
410
|
+
});
|
|
411
|
+
return rail(slides, t('Featured'));
|
|
412
|
+
};
|
|
384
413
|
|
|
385
414
|
const shop = () => {
|
|
386
415
|
const words = input.value.trim().toLocaleLowerCase(language());
|
|
@@ -395,9 +424,10 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
395
424
|
return page;
|
|
396
425
|
}
|
|
397
426
|
const head = el('section', 'mk-head');
|
|
427
|
+
// What the Market is, in a person's words (2026-11-10, the author: «better copy of what it is»).
|
|
398
428
|
head.append(el('h1', null, t('Market')), el('p', null, home
|
|
399
|
-
? t('
|
|
400
|
-
: t('
|
|
429
|
+
? t('Tools that give your AIs new things to do: see your page, check your payments, remind you of what is pending. One button turns each on, with no terminal; you choose for every project or only one.')
|
|
430
|
+
: t('Tools that give your AIs new things to do: see your page, check your payments, remind you of what is pending. One button turns each on, with no terminal; what you get here is for this project.')));
|
|
401
431
|
page.append(head);
|
|
402
432
|
const featured = carousel();
|
|
403
433
|
if (featured) page.append(featured);
|
|
@@ -419,7 +449,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
419
449
|
// does and what it touches.
|
|
420
450
|
const detail = (item, { choose = false } = {}) => {
|
|
421
451
|
const page = el('div', 'mk-page mk-product');
|
|
422
|
-
page.append(
|
|
452
|
+
page.append(backKey(t('Back to the Market'), () => go({ tab: 'shop' })));
|
|
423
453
|
const top = el('section', 'mk-product-top');
|
|
424
454
|
const words = el('div', 'mk-product-words');
|
|
425
455
|
words.append(el('h1', null, nameOf(item)), el('p', null, lineOf(item)));
|
|
@@ -575,45 +605,36 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
575
605
|
}
|
|
576
606
|
const mine = scopeOf(item) ?? { all: on, on: [], everywhere: false, rooms: {} };
|
|
577
607
|
const everywhere = mine.everywhere || (mine.all && !ids.length);
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
const select = projectPicker(left);
|
|
598
|
-
const key = button('mk-get big quiet', t('Only in one'), async () => { const name = projectName(select.value); if (await turnScope(item, { rooms: { [select.value]: true } }, line, key)) notice(t('{name} is on in {project}.', { name: nameOf(item), project: name })); });
|
|
599
|
-
pick.append(key, select);
|
|
600
|
-
oneBox.append(pick, el('small', null, t('Choose which one. The others stay as they are.')));
|
|
601
|
-
options.append(oneBox);
|
|
602
|
-
}
|
|
603
|
-
where.append(options);
|
|
604
|
-
if (ids.length > 1) where.append(button('mk-link', t('Or decide project by project'), () => go({ tab: 'mine', focus: item.id })));
|
|
605
|
-
keys.append(where);
|
|
606
|
-
if (choose) requestAnimationFrame(() => all.focus());
|
|
607
|
-
return;
|
|
608
|
+
// Where it is on, said once and changed in the same place (2026-11-10, the author: «confusing»):
|
|
609
|
+
// a chip for all your projects and one for each, lit where it is on; a press turns it on or off
|
|
610
|
+
// there. The same chips as in Modules.
|
|
611
|
+
const where = el('div', 'mk-where');
|
|
612
|
+
where.append(el('b', 'mk-where-title', everywhere || mine.on.length ? t('It is on in') : t('Turn it on in')));
|
|
613
|
+
const chips = el('div', 'mk-chips mk-where-chips');
|
|
614
|
+
const allChip = button(`mk-chip all${everywhere ? ' on' : ''}`, t('All my projects'), async () => {
|
|
615
|
+
if (await turnScope(item, { all: !everywhere }, line, allChip) && !everywhere) notice(t('{name} is on in all your projects.', { name: nameOf(item) }));
|
|
616
|
+
});
|
|
617
|
+
allChip.setAttribute('aria-pressed', String(everywhere));
|
|
618
|
+
chips.append(allChip);
|
|
619
|
+
for (const id of ids) {
|
|
620
|
+
const here = everywhere || mine.on.includes(id);
|
|
621
|
+
const chip = button(`mk-chip${here ? ' on' : ''}`, projectName(id), async () => {
|
|
622
|
+
if (await turnScope(item, { rooms: { [id]: !here } }, line, chip) && !here) notice(t('{name} is on in {project}.', { name: nameOf(item), project: projectName(id) }));
|
|
623
|
+
});
|
|
624
|
+
chip.setAttribute('aria-pressed', String(here));
|
|
625
|
+
chip.title = here ? t('On in {project}. Press to turn it off there.', { project: projectName(id) }) : t('Off in {project}. Press to turn it on there.', { project: projectName(id) });
|
|
626
|
+
chips.append(chip);
|
|
608
627
|
}
|
|
609
|
-
|
|
628
|
+
where.append(chips, el('small', 'mk-where-note', t('«All my projects» includes the ones you add later.')));
|
|
629
|
+
keys.append(where);
|
|
630
|
+
if (choose) requestAnimationFrame(() => allChip.focus());
|
|
610
631
|
};
|
|
611
632
|
|
|
612
633
|
// MODULES, in Home: what is on and where, a switch for every project and one for each.
|
|
613
634
|
const mine = (focusId = null) => {
|
|
614
635
|
const page = el('div', 'mk-page mk-mine');
|
|
615
636
|
const head = el('section', 'mk-head');
|
|
616
|
-
head.append(el('h1', null, t('Modules')), el('p', null, t('What you have on
|
|
637
|
+
head.append(el('h1', null, t('Modules')), el('p', null, t('What you have on, and in which projects. A change here reaches each project with its next message.')));
|
|
617
638
|
page.append(head);
|
|
618
639
|
// Local AI and the connectors are MADRE's own, set in Settings (2026-10-28), as a project's
|
|
619
640
|
// Modules leaves them out (app.js, IN_SETTINGS): not a module to turn on here.
|
|
@@ -647,7 +668,8 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
647
668
|
box.id = `mk-card-${item.id}`;
|
|
648
669
|
const head = el('header', 'mk-card-head');
|
|
649
670
|
const words = el('div', 'mk-card-words');
|
|
650
|
-
|
|
671
|
+
// What it does, in a person's words (2026-11-10): where it is on, the chips below say.
|
|
672
|
+
words.append(el('b', null, nameOf(item)), el('span', null, lineOf(item)));
|
|
651
673
|
const open = button('mk-card-open', null, () => go({ tab: 'shop', focus: item.id }));
|
|
652
674
|
open.append(appIcon(item, 44), words);
|
|
653
675
|
head.append(open);
|
|
@@ -661,8 +683,16 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
661
683
|
// key and the project read as two keys of different sizes, one under the other.
|
|
662
684
|
const foot = el('div', 'mk-card-foot');
|
|
663
685
|
const chips = el('div', 'mk-chips');
|
|
664
|
-
|
|
665
|
-
|
|
686
|
+
// Every project: lit where it is installed; one without it is a chip that leads to installing it
|
|
687
|
+
// there (it installs from that project, where MADRE shows the commands first).
|
|
688
|
+
const placed = scopeOf(item)?.on ?? [];
|
|
689
|
+
for (const project of scope.projects) {
|
|
690
|
+
if (placed.includes(project.id)) { chips.append(el('span', 'mk-chip on', project.name)); continue; }
|
|
691
|
+
const chip = button('mk-chip', project.name, async () => { chip.disabled = true; await host.openProject?.(project.id, item); chip.disabled = false; });
|
|
692
|
+
chip.title = t('Not in {project}. Press to install it there.', { project: project.name });
|
|
693
|
+
chips.append(chip);
|
|
694
|
+
}
|
|
695
|
+
foot.append(chips);
|
|
666
696
|
box.append(foot);
|
|
667
697
|
} else {
|
|
668
698
|
const mineScope = scopeOf(item) ?? { all: false, on: [], everywhere: false };
|
|
@@ -688,44 +718,117 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
688
718
|
};
|
|
689
719
|
|
|
690
720
|
// ---- SKILLS (H-8). Their own tab, because a skill is not a module: it adds no button and no
|
|
691
|
-
// page, it tells whichever agent answers how the person works. So no tiles
|
|
692
|
-
//
|
|
721
|
+
// page, it tells whichever agent answers how the person works. So no tiles — a row with its
|
|
722
|
+
// sentence, and a page with the whole text before anything is kept; since 2026-11-11 the shelf opens
|
|
723
|
+
// with banners, as the Market does.
|
|
693
724
|
//
|
|
694
725
|
// Getting one is two steps, as a module's is: MADRE fetches every file and checks it against the
|
|
695
726
|
// signature, shows what it says and what it carries, and only then — on the very seal that was
|
|
696
727
|
// read — keeps it. Nothing of it runs: a program it carries could only ever run inside #4.
|
|
728
|
+
// The shelf of skills (2026-11-10, the author): a search, then what you already keep, what comes
|
|
729
|
+
// with MADRE, and what the community made; two columns, each skill with its drawing.
|
|
730
|
+
const SKILL_ICON_GUESS = [[/client|correo|mensaje|whatsapp|mail/i, 'chat'], [/red|post|instagram|social/i, 'image'], [/hoja|excel|tabla|sheet|cálculo/i, 'bars'], [/página|web|sitio|page|site/i, 'globe'], [/resum|pendiente|summar|todo/i, 'list'], [/explic|aprend|learn|explain/i, 'help'], [/cotiza|precio|quote|price/i, 'note'], [/código|code|program/i, 'code']];
|
|
731
|
+
const skillIcon = (skill) => (ICONS[skill.icon] ? skill.icon : null) ?? SKILL_ICON_GUESS.find(([test]) => test.test(`${skill.id} ${skill.name}`))?.[1] ?? 'spark';
|
|
732
|
+
const skillRow = (skill, { tag = null, key = null } = {}) => {
|
|
733
|
+
const row = el('article', 'mk-skill-row');
|
|
734
|
+
const mark = el('span', 'mk-skill-icon');
|
|
735
|
+
mark.setAttribute('aria-hidden', 'true');
|
|
736
|
+
mark.innerHTML = trazo(skillIcon(skill)); // trusted: our own SVG strings
|
|
737
|
+
const words = el('div', 'mk-skill-words');
|
|
738
|
+
const top = el('div', 'mk-skill-top');
|
|
739
|
+
top.append(el('b', null, skill.name));
|
|
740
|
+
if (tag) top.append(tag);
|
|
741
|
+
words.append(top, el('p', 'mk-skill-line', skill.line || skill.summary || ''));
|
|
742
|
+
row.append(mark, words);
|
|
743
|
+
if (key) row.append(key);
|
|
744
|
+
return row;
|
|
745
|
+
};
|
|
746
|
+
const skillShelf = (title, about, rows) => {
|
|
747
|
+
const shelf = el('section', 'mk-skill-shelf');
|
|
748
|
+
shelf.append(el('h3', 'mk-skill-shelf-title', title));
|
|
749
|
+
if (about) shelf.append(el('p', 'mk-skill-shelf-about', about));
|
|
750
|
+
const list = el('div', 'mk-skill-list');
|
|
751
|
+
list.append(...rows);
|
|
752
|
+
shelf.append(list);
|
|
753
|
+
return shelf;
|
|
754
|
+
};
|
|
755
|
+
// THE SKILLS' BANNERS (2026-11-11, the author: «banners in Skills too»): the community's first —
|
|
756
|
+
// to say out loud that people share them — then the ones MADRE comes with. Each on a colour of its
|
|
757
|
+
// own, with a picture made from its drawing: a conversation where the skill comes in.
|
|
758
|
+
const SKILL_HUES = [['#f9a8d4', '#be185d'], ['#6ee7b7', '#047857'], ['#93c5fd', '#1d4ed8'], ['#fcd34d', '#b45309'], ['#c4b5fd', '#6d28d9'], ['#fca5a5', '#b91c1c'], ['#67e8f9', '#0e7490']];
|
|
759
|
+
const skillArt = (skill, [a, b]) => {
|
|
760
|
+
const icon = trazoDrawing(skillIcon(skill));
|
|
761
|
+
const line = (x, y, w, o = 0.5, c = '#94a3b8') => `<rect x="${x}" y="${y}" width="${w}" height="8" rx="4" fill="${c}" fill-opacity="${o}"/>`;
|
|
762
|
+
return `<svg viewBox="0 0 560 400" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
763
|
+
<defs><filter id="sk-${skill.id}" x="-20%" y="-20%" width="140%" height="150%"><feDropShadow dx="0" dy="10" stdDeviation="12" flood-color="#000" flood-opacity=".18"/></filter></defs>
|
|
764
|
+
<g filter="url(#sk-${skill.id})">
|
|
765
|
+
<rect x="250" y="58" width="240" height="56" rx="18" fill="${b}"/>${line(272, 78, 150, 0.9, '#ffffff')}${line(272, 94, 96, 0.6, '#ffffff')}
|
|
766
|
+
<rect x="70" y="138" width="380" height="196" rx="20" fill="#ffffff"/>
|
|
767
|
+
<rect x="92" y="160" width="150" height="30" rx="15" fill="${a}" fill-opacity=".35"/>
|
|
768
|
+
<g transform="translate(101 166) scale(.9)" color="${b}">${icon}</g>
|
|
769
|
+
${line(128, 171, 96, 0.9, b)}
|
|
770
|
+
${line(92, 210, 320)}${line(92, 230, 290)}${line(92, 250, 304)}${line(92, 270, 210)}
|
|
771
|
+
<rect x="92" y="294" width="120" height="22" rx="11" fill="${b}" fill-opacity=".9"/>${line(110, 301, 84, 0.95, '#ffffff')}
|
|
772
|
+
</g>
|
|
773
|
+
<g transform="translate(392 230)"><rect width="104" height="104" rx="28" fill="${b}"/><g transform="translate(22 22) scale(3)" color="#ffffff">${icon}</g></g>
|
|
774
|
+
</svg>`;
|
|
775
|
+
};
|
|
776
|
+
const skillBanners = (included, community) => {
|
|
777
|
+
const featured = [...community, ...included].slice(0, 6);
|
|
778
|
+
if (!featured.length) return null;
|
|
779
|
+
const slides = featured.map((skill, at) => {
|
|
780
|
+
const hue = skill.hue ?? SKILL_HUES[at % SKILL_HUES.length];
|
|
781
|
+
const slide = el('article', 'mk-slide mk-skill-slide');
|
|
782
|
+
slide.style.setProperty('--mk-a', hue[0]);
|
|
783
|
+
slide.style.setProperty('--mk-b', hue[1]);
|
|
784
|
+
const words = el('div', 'mk-slide-words');
|
|
785
|
+
const get = el('div', 'mk-slide-get');
|
|
786
|
+
const mark = el('span', 'mk-skill-icon big');
|
|
787
|
+
mark.setAttribute('aria-hidden', 'true');
|
|
788
|
+
mark.innerHTML = trazo(skillIcon(skill)); // trusted: our own SVG strings
|
|
789
|
+
const who = el('span', 'mk-slide-who');
|
|
790
|
+
const by = skill.community ? (skill.author?.name ? t('by {name}', { name: skill.author.name }) : t('Made by the community')) : t('Comes with MADRE');
|
|
791
|
+
who.append(el('b', null, skill.name), el('span', null, by));
|
|
792
|
+
const have = skill.community ? skillHere(skill.id) : true;
|
|
793
|
+
const key = button('mk-get light', have ? t('See it') : t('Install'), (event) => { event.stopPropagation(); go({ tab: 'skills', focus: skill.community ? skill.id : null }); });
|
|
794
|
+
get.append(mark, who, key);
|
|
795
|
+
words.append(el('small', null, skill.community ? t('From the community') : t('Comes with MADRE')), el('h2', null, skill.name), el('p', null, skill.line || skill.summary || ''), get);
|
|
796
|
+
const art = el('div', 'mk-slide-art');
|
|
797
|
+
art.innerHTML = skillArt(skill, hue); // trusted: our own drawing
|
|
798
|
+
slide.append(words, art);
|
|
799
|
+
if (skill.community) slide.addEventListener('click', () => go({ tab: 'skills', focus: skill.id }));
|
|
800
|
+
return slide;
|
|
801
|
+
});
|
|
802
|
+
return rail(slides, t('Featured skills'));
|
|
803
|
+
};
|
|
697
804
|
const skillsPage = (focus) => {
|
|
698
805
|
const page = el('div', 'mk-page mk-skills');
|
|
699
806
|
const all = marketSkills();
|
|
700
807
|
const one = focus ? all.find((skill) => skill.id === focus) : null;
|
|
701
808
|
if (one) return skillPage(one);
|
|
702
|
-
|
|
703
|
-
head
|
|
809
|
+
// The same head as the Market's and Modules' (2026-11-10): one title size, one line under it.
|
|
810
|
+
const head = el('section', 'mk-head');
|
|
811
|
+
head.append(el('h1', null, t('Skills')), el('p', null, t('How you like things done, told to your AIs: write a message to a customer, explain something simply, tidy a sheet. One skill works the same for Codex, Claude, Gemini, OpenCode, Cursor and Grok.')));
|
|
704
812
|
// Bringing over the ones your agents already keep was only at the foot of Modules, where nobody
|
|
705
813
|
// looked for it (2026-11-08): the shelf of skills offers it too, where a project can take it.
|
|
706
814
|
if (host.importSkills) head.append(button('mk-get mk-skill-import', t('Bring over what you already have'), () => host.importSkills()));
|
|
707
815
|
page.append(head);
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
: button('mk-get', t('Read it'), () => go({ tab: 'skills', focus: skill.id }));
|
|
725
|
-
row.append(words, key);
|
|
726
|
-
list.append(row);
|
|
727
|
-
}
|
|
728
|
-
page.append(list);
|
|
816
|
+
const words = input.value.trim().toLocaleLowerCase(language());
|
|
817
|
+
const fits = (skill) => !words || `${skill.name} ${skill.line ?? ''} ${skill.summary ?? ''}`.toLocaleLowerCase(language()).includes(words);
|
|
818
|
+
const mine = yourSkills().filter(fits);
|
|
819
|
+
const included = includedSkills().filter(fits);
|
|
820
|
+
const shared = all.filter((skill) => !mine.some((have) => have.id === skill.id)).filter(fits);
|
|
821
|
+
const community = shared.filter((skill) => skill.community);
|
|
822
|
+
const market = shared.filter((skill) => !skill.community);
|
|
823
|
+
if (!words) { const banners = skillBanners(includedSkills(), all.filter((skill) => skill.community)); if (banners) page.append(banners); }
|
|
824
|
+
const marketRow = (skill) => skillRow(skill, {
|
|
825
|
+
tag: skill.community && skill.author?.name ? el('span', 'mk-skill-by', t('by {name}', { name: skill.author.name })) : skill.version ? el('span', 'mk-skill-tag', skill.version) : null,
|
|
826
|
+
key: skillHere(skill.id) ? button('mk-get on', t('Yours'), () => go({ tab: 'skills', focus: skill.id })) : button('mk-get', t('Install'), () => go({ tab: 'skills', focus: skill.id })),
|
|
827
|
+
});
|
|
828
|
+
if (mine.length) page.append(skillShelf(t('Your skills'), t('The ones you already keep: your own, brought over from your agents, or got here. You switch them in MODULES → Skills.'), mine.map((skill) => skillRow(skill, { tag: el('span', 'mk-skill-tag', skill.origin === 'project' ? t('this project') : t('Yours')) }))));
|
|
829
|
+
if (included.length) page.append(skillShelf(t('They come with MADRE'), t('Already on: each one comes in by itself when what you ask fits it.'), included.map((skill) => skillRow(skill, { tag: el('span', 'mk-skill-tag', t('Included')) }))));
|
|
830
|
+
if (market.length) page.append(skillShelf(t('In the Market'), null, market.map(marketRow)));
|
|
831
|
+
page.append(skillShelf(t('Made by the community'), t('Skills other people wrote and the author of MADRE reviewed. Read what each one tells your agents before you keep it.'), community.length ? community.map(marketRow) : [el('p', 'mk-empty', words ? t('No skill matches «{query}».', { query: input.value.trim() }) : t('None yet. You can write your own: type /habilidad in the conversation, and send it from MODULES → Skills.'))]));
|
|
729
832
|
return page;
|
|
730
833
|
};
|
|
731
834
|
|
|
@@ -733,7 +836,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
733
836
|
// the review — which is the one thing a module's page can never offer.
|
|
734
837
|
const skillPage = (skill) => {
|
|
735
838
|
const page = el('div', 'mk-page mk-skill-page');
|
|
736
|
-
page.append(
|
|
839
|
+
page.append(backKey(t('Back to Skills'), () => go({ tab: 'skills' })));
|
|
737
840
|
const head = el('header', 'mk-skill-head');
|
|
738
841
|
head.append(el('h2', null, skill.name));
|
|
739
842
|
const meta = el('div', 'mk-skill-meta');
|
|
@@ -749,7 +852,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
749
852
|
}
|
|
750
853
|
const body = el('div', 'mk-skill-read');
|
|
751
854
|
const said = el('p', 'mk-skill-said');
|
|
752
|
-
const keep = button('mk-get', have ? t('
|
|
855
|
+
const keep = button('mk-get', have ? t('Install again') : t('Install'), null);
|
|
753
856
|
keep.hidden = true;
|
|
754
857
|
const read = button('mk-get', t('Read what it tells my agents'), async () => {
|
|
755
858
|
read.disabled = true;
|
|
@@ -776,6 +879,8 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
776
879
|
if (!done.ok) { said.textContent = done.body.error ?? t('It could not be kept.'); return; }
|
|
777
880
|
said.textContent = '';
|
|
778
881
|
notice(t('{name} is yours now. It comes in when it fits; change that in MODULES.', { name: skill.name }));
|
|
882
|
+
// One of the first steps (missions.js): something got from the Market.
|
|
883
|
+
void markMission('market', { quiet: true });
|
|
779
884
|
host.changed?.();
|
|
780
885
|
await refresh();
|
|
781
886
|
go({ tab: 'skills', focus: skill.id });
|
|
@@ -789,7 +894,9 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
789
894
|
const render = () => {
|
|
790
895
|
if (!current) return;
|
|
791
896
|
for (const [id, key] of Object.entries(tabs)) key.setAttribute('aria-selected', String(id === view.tab));
|
|
792
|
-
search.hidden = view.tab === 'mine' ||
|
|
897
|
+
search.hidden = view.tab === 'mine' || Boolean(view.focus);
|
|
898
|
+
input.placeholder = view.tab === 'skills' ? t('Search a skill, or what it does') : t('Search a module, or what it does');
|
|
899
|
+
input.setAttribute('aria-label', input.placeholder);
|
|
793
900
|
const item = view.focus ? items.find((one) => one.id === view.focus) : null;
|
|
794
901
|
const page = view.tab === 'skills' ? skillsPage(view.focus) : view.tab === 'mine' ? mine(view.focus) : item ? detail(item, { choose: view.choose }) : shop();
|
|
795
902
|
main.replaceChildren(page);
|
|
@@ -813,7 +920,7 @@ export function openMarket({ where = 'home', tab = 'shop', focus = null, project
|
|
|
813
920
|
setTimeout(() => root.remove(), reducedMotion() ? 0 : 220);
|
|
814
921
|
before?.focus?.();
|
|
815
922
|
};
|
|
816
|
-
input.addEventListener('input', () => { if (!view.focus && view.tab === 'shop') { const at = input.selectionStart; render(); input.focus(); input.setSelectionRange(at, at); } });
|
|
923
|
+
input.addEventListener('input', () => { if (!view.focus && (view.tab === 'shop' || view.tab === 'skills')) { const at = input.selectionStart; render(); input.focus(); input.setSelectionRange(at, at); } });
|
|
817
924
|
root.addEventListener('keydown', (event) => {
|
|
818
925
|
if (event.key !== 'Escape') return;
|
|
819
926
|
event.stopPropagation();
|
package/public/market.js
CHANGED
|
@@ -19,7 +19,7 @@ export const MODULE_FACES = {
|
|
|
19
19
|
ash: { line: 'Shorter answers, fewer tokens', summary: 'Asks every agent to go straight to the point: no long introductions and no repeating what you already know. You spend less of your plan and read faster. Turn it off whenever you want the long answer.', wide: true, window: true, hue: ['#38bdf8', '#0369a1'], icon: trazoDrawing('mod-ash') },
|
|
20
20
|
intents: { line: 'How hard each question should think', summary: 'Before you send, it suggests the thinking level your question needs: low for a quick question, high for a hard bug. It learns from your own project and never changes anything without you.', wide: true, window: true, hue: ['#a78bfa', '#6d28d9'], icon: trazoDrawing('mod-intents') },
|
|
21
21
|
ollama: { line: 'AI that runs on your own computer', summary: 'A small AI model on your computer, with Ollama. It finds things in your project\'s memory by meaning, summarizes your conversations and answers as @madre. Free, private and it works without internet.', wide: true, window: true, hue: ['#4ade80', '#15803d'], icon: trazoDrawing('spark') },
|
|
22
|
-
'image-studio': { line: 'Logos and banners by your
|
|
22
|
+
'image-studio': { line: 'Logos and banners made by your AIs', summary: 'Ask in the conversation for a logo, a banner or an illustration and your AI makes it with the image model you choose: Gemini, OpenAI or Grok, on your own key. MADRE finds the keys you already have. The images are saved in your project.', hue: ['#fb7185', '#c026d3'], icon: trazoDrawing('mod-image') },
|
|
23
23
|
playwright: { line: 'Your agents open your page and look at it', summary: 'The agents open your page in a browser of their own, click through it, read its errors and bring back screenshots: they check their work the way a person would.', hue: ['#60a5fa', '#1d4ed8'], icon: trazoDrawing('mod-browser') },
|
|
24
24
|
ripley: { line: 'See your pages beside the conversation', summary: 'Shows web pages, drawings (SVG) and documents (Markdown) beside the conversation, updated while the agents work.', hue: ['#fbbf24', '#ea580c'], icon: trazoDrawing('mod-viewer') },
|
|
25
25
|
'git-pulse': { line: 'Your repository, at a glance', summary: 'Shows how your repository stands: what changed, the last commits and the branch you are on. It only reads; it never commits for you.', hue: ['#94a3b8', '#475569'], icon: trazoDrawing('mod-git') },
|
|
@@ -147,7 +147,7 @@ export const MARKET = {
|
|
|
147
147
|
ahp: { shelf: 'no-terminal', scope: 'project', price: 0, featured: 2, pitch: 'Hand work from one agent to another without losing the thread: the project keeps its state beside the code.' },
|
|
148
148
|
runs: { shelf: 'no-terminal', scope: 'everywhere', price: 0 },
|
|
149
149
|
github: { shelf: 'no-terminal', scope: 'everywhere', price: 0 },
|
|
150
|
-
'image-studio': { shelf: 'create', scope: 'everywhere', price: 0, featured: 3, pitch: 'Ask for a logo, a banner or an illustration, and
|
|
150
|
+
'image-studio': { shelf: 'create', scope: 'everywhere', price: 0, featured: 3, pitch: 'Ask for a logo, a banner or an illustration, and your AIs make it with your own key.' },
|
|
151
151
|
ripley: { shelf: 'create', scope: 'everywhere', price: 0 },
|
|
152
152
|
choices: { shelf: 'create', scope: 'everywhere', price: 0 },
|
|
153
153
|
notes: { shelf: 'organize', scope: 'everywhere', price: 0 },
|
|
@@ -238,6 +238,12 @@ export const marketSkills = () => (Array.isArray(remote?.skills) ? remote.skills
|
|
|
238
238
|
let skillsHere = {};
|
|
239
239
|
export const setMarketSkills = (installed) => { skillsHere = installed && typeof installed === 'object' ? installed : {}; };
|
|
240
240
|
export const skillHere = (id) => skillsHere[id] ?? null;
|
|
241
|
+
// The skills that come with MADRE (1.1.4): already here, nothing to get.
|
|
242
|
+
let skillsIncluded = [];
|
|
243
|
+
export const includedSkills = () => skillsIncluded;
|
|
244
|
+
// And the ones this person already keeps: theirs, brought over, or got from the Market.
|
|
245
|
+
let skillsYours = [];
|
|
246
|
+
export const yourSkills = () => skillsYours;
|
|
241
247
|
// THE PAID MODULES (src/market-license.mjs): which ones this computer bought, as /api/market says
|
|
242
248
|
// (never the keys), and whether one still has to be bought before it can be got.
|
|
243
249
|
let bought = {};
|
|
@@ -285,6 +291,8 @@ export async function loadMarket({ toast = null, open = null } = {}) {
|
|
|
285
291
|
setMarketCatalog(answer.catalog);
|
|
286
292
|
setMarketLicensed(answer.licensed);
|
|
287
293
|
setMarketSkills(answer.skills);
|
|
294
|
+
skillsIncluded = Array.isArray(answer.included) ? answer.included : [];
|
|
295
|
+
skillsYours = Array.isArray(answer.yours) ? answer.yours : [];
|
|
288
296
|
if (!toast) return answer;
|
|
289
297
|
const updated = answer.news ?? [];
|
|
290
298
|
if (updated.length) {
|