mosaic-headless 1.34.6 → 1.34.8
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/SKILL.md +13 -7
- package/assets/templates/platforms/claude-ai.json +1 -1
- package/assets/templates/platforms/claude-code.json +1 -1
- package/assets/templates/platforms/codex-cli.json +1 -1
- package/assets/templates/platforms/copilot.json +1 -1
- package/assets/templates/platforms/gemini-cli.json +1 -1
- package/package.json +1 -1
- package/references/design-system.md +12 -0
package/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: |
|
|
|
5
5
|
license: "MIT"
|
|
6
6
|
metadata:
|
|
7
7
|
author: "moksa (https://moksaweb.com)"
|
|
8
|
-
version: "1.34.
|
|
8
|
+
version: "1.34.8"
|
|
9
9
|
homepage: "https://github.com/Moksa1123/mosaic-headless"
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -716,18 +716,24 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
716
716
|
collections and child nodes you never sent. Take every revision in the response.
|
|
717
717
|
- **One root per document, or the document renders empty.** A second, empty
|
|
718
718
|
`component-internal` (or master/template root) ordered first makes Mosaic render
|
|
719
|
-
from it: every instance of that component prints nothing, and
|
|
720
|
-
|
|
721
|
-
1.0.11 site; restoring them alone changed nothing until the
|
|
722
|
-
deleted).
|
|
719
|
+
from it: every instance of that component prints nothing, and within a day the
|
|
720
|
+
overrides that point into the real tree were gone with no master commit in
|
|
721
|
+
between (90 on a live 1.0.11 site; restoring them alone changed nothing until the
|
|
722
|
+
empty roots were deleted). Heal syncs an instance's overrides by walking the
|
|
723
|
+
component from that first root (`keepOverrideNodesInSync`), and heal runs on
|
|
724
|
+
front-end renders too. Health check, which must return no rows (group by `themeID` too: the
|
|
723
725
|
same component ID in two themes is not a duplicate):
|
|
724
726
|
`SELECT themeID, documentType, documentID, parentType, COUNT(*) n FROM wp_mosaic_nodes WHERE parentType IN ('master','template','component','componentDocument') GROUP BY themeID, documentType, documentID, parentType HAVING n > 1`.
|
|
725
727
|
A node's `revision` is a time-based UUID (v1), so it dates when that root was
|
|
726
728
|
written. Match that time against the access log. `build_site.py` stops and the
|
|
727
729
|
fix tools skip a document with more than one root; `scan_inline_tags.py` warns.
|
|
728
730
|
Reading every document over REST does not create roots (135 before and after a
|
|
729
|
-
full scan on the demo site).
|
|
730
|
-
|
|
731
|
+
full scan on the demo site). Both creations traced so far came from the
|
|
732
|
+
database failing under load: a MySQL restart on one site, a crawler driving a
|
|
733
|
+
burst of fast HTTP 500s on another. Each time a front-end render's heal read the
|
|
734
|
+
failed query as "no root" and wrote a new empty one, with no REST write in the
|
|
735
|
+
log. A site that sees this needs the load handled (bot rate limits, MySQL
|
|
736
|
+
capacity) as much as the roots repaired.
|
|
731
737
|
- **`modified_gmt` is server-assigned.**
|
|
732
738
|
- **Styling hangs on the generated `._<token>` class, not your `attrID`**, and the
|
|
733
739
|
token (`_a`, `_b`, ... `_ba`: a base-38 per-document counter) is not stable. The
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "moksa (https://moksaweb.com)",
|
|
23
|
-
"version": "1.34.
|
|
23
|
+
"version": "1.34.8"
|
|
24
24
|
},
|
|
25
25
|
"loaderBehaviour": "Upload via Settings -> Skills -> Upload. Claude.ai parses SKILL.md frontmatter and surfaces the skill in your library. The extraction tool (extract-block-schema.php) needs a live WP-CLI connection and won't run in the sandbox; use it from a local terminal against your own site instead.",
|
|
26
26
|
"uploadSteps": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "moksa (https://moksaweb.com)",
|
|
23
|
-
"version": "1.34.
|
|
23
|
+
"version": "1.34.8"
|
|
24
24
|
},
|
|
25
25
|
"loaderBehaviour": "Auto-loads on session start when SKILL.md frontmatter parses successfully.",
|
|
26
26
|
"verified": true,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "moksa (https://moksaweb.com)",
|
|
23
|
-
"version": "1.34.
|
|
23
|
+
"version": "1.34.8"
|
|
24
24
|
},
|
|
25
25
|
"loaderBehaviour": "Confirmed (2026-07-11): Codex CLI natively supports the SKILL.md spec. Place SKILL.md under .codex/skills/<name>/ (project) or ~/.codex/skills/<name>/ (personal) and Codex loads the name+description at session start, then the full body on demand. A parallel, broader convention .agents/skills/ (searched from cwd up to repo root, then ~/.agents/skills/) also exists across multiple tools - if your Codex CLI version prioritizes that path instead, mirror the same SKILL.md there.",
|
|
26
26
|
"verified": true,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "moksa (https://moksaweb.com)",
|
|
23
|
-
"version": "1.34.
|
|
23
|
+
"version": "1.34.8"
|
|
24
24
|
},
|
|
25
25
|
"loaderBehaviour": "CHANGED as of 2026-07-11: GitHub Copilot added a proper '.github/skills/' Agent Skills directory (December 2025), alongside the older single-file .github/copilot-instructions.md convention. This config targets the new skills-directory form. If your Copilot version predates this (pre Dec 2025), use the instructions-append fallback instead (see fallback below).",
|
|
26
26
|
"fallback": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "moksa (https://moksaweb.com)",
|
|
23
|
-
"version": "1.34.
|
|
23
|
+
"version": "1.34.8"
|
|
24
24
|
},
|
|
25
25
|
"loaderBehaviour": "CHANGED as of 2026-07-11: Gemini CLI now natively supports the same SKILL.md standard as Claude Code and Codex CLI - the same directory-based skill works unmodified. Gemini CLI discovers skills in this precedence order: built-in, extension skills, ~/.gemini/skills/ (personal), .gemini/skills/ (project, shared via version control). At session start Gemini injects each discovered skill's name+description into the system prompt and calls activate_skill when a task matches.",
|
|
26
26
|
"verified": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mosaic-headless",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.8",
|
|
4
4
|
"description": "AI-agent skill: build Mosaic Pro (Nextend) WordPress sites by writing the underlying data model directly - 23 custom tables, no visual editor, no DOM. Every node type, style property and node property swept against a live install and asserted on the delivered HTML and compiled CSS. Installs into Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot, Continue, Windsurf and Claude.ai.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wordpress",
|
|
@@ -322,6 +322,18 @@ Four more things a build that leans on components runs into:
|
|
|
322
322
|
`uuid5(COMPONENT_NAMESPACE, name)` so rebuilds update the same row; renaming the
|
|
323
323
|
key in `site["components"]` therefore creates a new component and leaves the old
|
|
324
324
|
one behind.
|
|
325
|
+
- **Refilling a definition re-keys its inner nodes, so update only what uses it.**
|
|
326
|
+
`ensure_components` deletes the old inner nodes and flattens the tree again, which
|
|
327
|
+
gives every inner node a new id; an instance's override nodes still point
|
|
328
|
+
`override.originalID` at the old ids, and their text falls back to the definition's
|
|
329
|
+
(reported from a client build). An incremental updater does not need to rewrite the
|
|
330
|
+
whole site to cover this: a NEW component has no overrides anywhere yet, so write the
|
|
331
|
+
definition plus the documents that place it; a CHANGED one needs the documents that
|
|
332
|
+
place it re-committed with their overrides - the master if the header or footer
|
|
333
|
+
holds an instance, and each template whose tree does - and nothing else. Keep the
|
|
334
|
+
spec deterministic while deciding what changed: a fresh `uuid4` inside a definition
|
|
335
|
+
(an interaction item's `uuid`, say) makes every spec hash differ and every component
|
|
336
|
+
look changed; derive such ids with `uuid5` (reported from the same build).
|
|
325
337
|
- **An expression inside a definition is evaluated where the instance is.** A link
|
|
326
338
|
`{"v": "@concat('/contact/?ref=', @VAR('post/title'), '#consult')"}` inside a
|
|
327
339
|
component, placed in a single-post template, carries THAT post's title (reported
|