Repository navigation
feat(themes): create and edit saved themes from an agent over MCP - #318
Merged
Merged
Conversation
- crear_tema creates an inactive theme from «Color de cada plataforma» or as a copy, with name and avatar. - Theme-owned MCP write and read tools accept an optional `tema`: the existing handler runs against a request-isolated copy of that saved look and the result is committed atomically with the usual conflict check. It never activates the theme, never touches the live config and sends nothing to overlays; the full look is validated before saving (400, nothing written); targeted writes create no backups so restore points survive an authoring session. Without `tema` every tool behaves exactly as before. Live counters stay on the current session. - MCP prompt «disenar_tema» guides the agent through what to ask, one topic at a time, shows the preview URLs and activates only on explicit request. - The full configuration backup now carries the media `.css` files that the active or saved looks reference; unreferenced CSS is still skipped and refused, and the historical error order of the import is kept. Refs #313
…s symlinks The two new referenced-CSS symlink tests skipped on every Windows run with a reason the CI baseline does not allow. They now try to create the symlink and skip with the allowed reason only on EPERM/ENOTSUP, like the other symlink tests. Refs #313
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #313 · Phase 5 of saved themes → integration branch
feat/saved-themes. User: «habría herramientas mcp para crear un tema? prguntando lo necesario y pudiendo editar cualquier elemento desde el agente?»crear_tema: inactive theme from «Color de cada plataforma» or as a copy, with name and avatar.temaon theme-owned MCP write/read tools (alerts and variations, look, global CSS, widgets/goals/bars/chat variants, commands, timers, interactive config, custom overlay theme CSS, themed config paths): runs the existing handler against a request-isolated copy of the saved look, validates the full look, commits atomically with the conflict check; never activates, never touches live config, no overlay broadcast, no backups (restore points survive an authoring session). Withouttemaevery tool is unchanged. Live counters stay on the current session.disenar_tema: asks one topic at a time (name, avatar, base, colours/typography, alert texts, sounds/media, widgets, custom overlay CSS), showspreviewThemeURLs, activates only on explicit request..cssreferenced by the active or saved looks; unreferenced CSS skipped/refused; historical import error order preserved.Verification (independent, Risk 1+3): isolation, validation, 75 race iterations with no lost or misdirected writes; MCP tools/list and calls without
temaplus panel HTTP routes identical tofeat/saved-themes; legacyimportar_temaidentical. Its two blockers fixed with regression tests:importar_temawith a theme id and no appearance silently reset the look; config import error precedence with.csschanged. Local: unit, browser, platform, typecheck green.Known advisories: a targeted write racing an active write gets 409 (safe, retry); custom overlay theme CSS can be stored for a missing overlay id (same as the active path).