mosaic-headless 1.33.1 → 1.33.2
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 +1 -1
- 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/styling.md +14 -0
- package/references/write-protocol.md +9 -0
- package/tools/build_page.py +14 -0
- package/tools/sweep_node_types.py +5 -0
package/SKILL.md
CHANGED
|
@@ -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, 98 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.33.
|
|
23
|
+
"version": "1.33.2"
|
|
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, 98 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.33.
|
|
23
|
+
"version": "1.33.2"
|
|
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, 98 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.33.
|
|
23
|
+
"version": "1.33.2"
|
|
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, 98 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.33.
|
|
23
|
+
"version": "1.33.2"
|
|
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, 98 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.33.
|
|
23
|
+
"version": "1.33.2"
|
|
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.33.
|
|
3
|
+
"version": "1.33.2",
|
|
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",
|
package/references/styling.md
CHANGED
|
@@ -230,6 +230,20 @@ dropped, which is the only reason they cost minutes instead of a debugging sessi
|
|
|
230
230
|
— a property that is not in the registry cannot be set at all, and Mosaic's own
|
|
231
231
|
API accepts the write and discards it.
|
|
232
232
|
|
|
233
|
+
## `fontFamily` takes a plain family list, nothing else
|
|
234
|
+
|
|
235
|
+
`ValidatorStyleFontFamily` (NEXT-5841) accepts quoted names and unquoted identifier
|
|
236
|
+
runs joined by commas — `"Noto Sans TC", sans-serif`, `system-ui, -apple-system` — or
|
|
237
|
+
a font variable `{"var": id}`. `var(--x)`, any function, or a tab / newline between
|
|
238
|
+
names is not a family list. The commit accepts it, stored data loads without
|
|
239
|
+
validation, and `CSSFontFamilyPropertyFactory` then drops it: no rule, no error, the
|
|
240
|
+
element just inherits. A CSS custom property for the font goes in
|
|
241
|
+
`customDeclarations` (`font-family: var(--x);`). `build_page.py` refuses the bad
|
|
242
|
+
string.
|
|
243
|
+
|
|
244
|
+
`fontWeight` is the enum `100`…`900` only — no `bold`, `bolder`, `normal`; the
|
|
245
|
+
builder refuses those like any other enum miss.
|
|
246
|
+
|
|
233
247
|
## Gradient stops take units (1.0.10)
|
|
234
248
|
|
|
235
249
|
A gradient's `dots[].position` - background and mask alike - used to be a bare float
|
|
@@ -20,6 +20,15 @@ All 114 routes are in `data/rest-routes.csv`; the namespace is
|
|
|
20
20
|
the base URL changes on every Mosaic update. Read it from `mosaicOptions.rest_api_url`
|
|
21
21
|
on any Mosaic admin page rather than composing it yourself.
|
|
22
22
|
|
|
23
|
+
**Mosaic → Settings is the one instance outside the theme:**
|
|
24
|
+
`/mosaic/v<version>/settingsEditorInstance` (+ `/checkout`, `/check`, `/commit`), with
|
|
25
|
+
no `theme/<themeID>/` in the path. `Client.get()` and `Client.commit()` always prefix
|
|
26
|
+
the theme, so they 404 on it; read it with `Client.api_get("settingsEditorInstance")`
|
|
27
|
+
and commit to the same un-prefixed path. Its `scriptsInline` switch inlines only the
|
|
28
|
+
component scripts (accordion, dropdown, navbar, form, slider, dialog — each
|
|
29
|
+
`*ElementMResource` asks `MosaicSettings::isScriptsInlineAllowed()`); `Frontend.js`
|
|
30
|
+
still loads as a file.
|
|
31
|
+
|
|
23
32
|
## The envelopes
|
|
24
33
|
|
|
25
34
|
Both `checkout` and `check` take one required string parameter, `syncCheckEnvelopes`
|
package/tools/build_page.py
CHANGED
|
@@ -251,6 +251,12 @@ class Surface:
|
|
|
251
251
|
for p, value in props.items():
|
|
252
252
|
if p not in self.style_props and p not in shorthands:
|
|
253
253
|
problems.append("%r is not a supported style property (on %s)" % (p, t))
|
|
254
|
+
if (p == "fontFamily" and isinstance(value, str)
|
|
255
|
+
and not FONT_FAMILY_LIST.match(value.strip(" \t\n\r\f"))):
|
|
256
|
+
problems.append("fontFamily=%r is not a plain family list - Mosaic "
|
|
257
|
+
"drops it without a rule (NEXT-5841); use a font "
|
|
258
|
+
"variable {\"var\": id}, or customDeclarations for "
|
|
259
|
+
"var(--x) (on %s)" % (value, t))
|
|
254
260
|
allowed = self.style_enums.get(p)
|
|
255
261
|
if allowed and isinstance(value, str) and value not in allowed:
|
|
256
262
|
problems.append("%s=%r is not one of %s (on %s)"
|
|
@@ -265,6 +271,14 @@ class Surface:
|
|
|
265
271
|
|
|
266
272
|
# A fixed namespace, so a design token's row ID is a function of its name alone and
|
|
267
273
|
# a rebuild rebinds the same row instead of adding a second one.
|
|
274
|
+
# ValidatorStyleFontFamily.php (NEXT-5841): quoted names and unquoted identifier
|
|
275
|
+
# runs, joined by commas with spaces only. Anything else - var(), a function, a tab
|
|
276
|
+
# or newline between names - is dropped at compile time with no error.
|
|
277
|
+
_FF_UNQUOTED = r"[\w-]+(?: +[\w-]+)*"
|
|
278
|
+
_FF_NAME = (r"(?:\"[^\"\\<;{}\x00-\x1f\x7f]+\"|'[^'\\<;{}\x00-\x1f\x7f]+'|"
|
|
279
|
+
+ _FF_UNQUOTED + ")")
|
|
280
|
+
FONT_FAMILY_LIST = re.compile(r"^" + _FF_NAME + r"(?: *, *" + _FF_NAME + r")*$")
|
|
281
|
+
|
|
268
282
|
VAR_NAMESPACE = uuid.UUID("6d6f7361-6963-4865-6164-6c657373ff01")
|
|
269
283
|
VAR_IDS = {}
|
|
270
284
|
|
|
@@ -86,6 +86,11 @@ class Client:
|
|
|
86
86
|
def get(self, tail):
|
|
87
87
|
return self._call(self.theme_url(tail))
|
|
88
88
|
|
|
89
|
+
def api_get(self, tail):
|
|
90
|
+
"""A route outside the theme, e.g. `settingsEditorInstance` (Mosaic → Settings),
|
|
91
|
+
which lives at /mosaic/v<version>/ and 404s under /theme/<id>/."""
|
|
92
|
+
return self._call("%s/%s" % (self.api, tail))
|
|
93
|
+
|
|
89
94
|
def commit(self, tail, sync, revisions):
|
|
90
95
|
return self._call(
|
|
91
96
|
self.theme_url(tail + "/commit"),
|