mosaic-headless 1.31.1 → 1.31.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 +7 -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/dynamic-content.md +44 -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.31.
|
|
8
|
+
version: "1.31.2"
|
|
9
9
|
homepage: "https://github.com/Moksa1123/mosaic-headless"
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -817,6 +817,12 @@ post — `build_all.py` resets first for that reason.
|
|
|
817
817
|
default - it is a `<span>`, a label rather than a control. Measured all three.
|
|
818
818
|
`menu-link` and `wysiwyg-link` still render `<span>` without a `url`.
|
|
819
819
|
- **`text` renders as `<div>` by default** — set `tagName` for `<h1>`, `<p>` and so on.
|
|
820
|
+
- **`youtube` renders `<mosaic-youtube><iframe>` with no `title`** - the iframe gets
|
|
821
|
+
only `loading`, `src`, `allow` and an id, so an accessible name has to be added
|
|
822
|
+
some other way. `youtubeUrl` is `{"v": "https://www.youtube.com/watch?v=…"}`;
|
|
823
|
+
`lazyLoad` adds `loading="lazy"` and there is no click-to-load facade. Sized by
|
|
824
|
+
`width`/`height: 100%` inside an `aspect-ratio: 16/9` box. `privacy` alone still
|
|
825
|
+
emits nothing (NO_OUTPUT).
|
|
820
826
|
- **Eight types emit custom elements**: `<mosaic-dropdown>`, `<mosaic-navbar>`,
|
|
821
827
|
`<mosaic-tabs>`, `<mosaic-accordion>`, `<mosaic-vimeo>`, `<mosaic-youtube>` and
|
|
822
828
|
friends. A selector written against `div`/`nav` misses all of them.
|
|
@@ -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.31.
|
|
23
|
+
"version": "1.31.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.31.
|
|
23
|
+
"version": "1.31.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.31.
|
|
23
|
+
"version": "1.31.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.31.
|
|
23
|
+
"version": "1.31.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.31.
|
|
23
|
+
"version": "1.31.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.31.
|
|
3
|
+
"version": "1.31.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",
|
|
@@ -66,6 +66,14 @@ Two different shapes for the same language, and which one applies is decided by
|
|
|
66
66
|
property's validator chain in `data/node-properties.csv`: **`ValidatorDynamicCode`
|
|
67
67
|
means a bare string, `ValidatorDynamicCodeObject` means `{"v": "…"}`**.
|
|
68
68
|
|
|
69
|
+
Getting it wrong on a URL is silent and looks like a broken link rather than a broken
|
|
70
|
+
expression. `menu-link`'s `url` chain is `ValidatorDynamicCodeObject → ValidatorURL →
|
|
71
|
+
ValidatorUrlObject`; given a bare `"@concat('/contact/?ref=', @VAR('post/title'), '#consult')"`
|
|
72
|
+
it commits without complaint and delivers
|
|
73
|
+
`href="http://concat('/contact/?ref=%27…"` - the leading `@` dropped and the rest taken
|
|
74
|
+
as a URL (measured on a client build on 1.0.10). As `{"v": "@concat(…)"}` it delivers the evaluated link.
|
|
75
|
+
|
|
76
|
+
|
|
69
77
|
## The variable namespace
|
|
70
78
|
|
|
71
79
|
`data/dynamic-variables.csv` — 74 variables across 11 namespaces, each row carrying
|
|
@@ -140,6 +148,42 @@ one. `build_page.py` resolves it by treating a loop container as standing in for
|
|
|
140
148
|
its parent's children: what `slider-loop-slides` accepts is what `slider-slides`
|
|
141
149
|
accepts.
|
|
142
150
|
|
|
151
|
+
## Filtering and ordering a post loop
|
|
152
|
+
|
|
153
|
+
A `wpPostType<Type>` loop takes `filters` (the condition structure of
|
|
154
|
+
`references/templates-and-conditions.md`: units in one `evaluationUnits` group are
|
|
155
|
+
AND-ed, groups are OR-ed) and `orderByClauses`. The filters are evaluated in the
|
|
156
|
+
context the loop sits in, so inside a single-post template `@VAR('post/…')` is the
|
|
157
|
+
post being viewed. Subject IDs are built from WordPress names, camel-cased after
|
|
158
|
+
every `-`, `_` or space (source: `FilterSubjectPostTypes.php`):
|
|
159
|
+
|
|
160
|
+
| subject | id | operators | value |
|
|
161
|
+
|---|---|---|---|
|
|
162
|
+
| the posts themselves | `postType<Type>` (`postTypeWork`) | `includes` / `excludes` | a list of post ids; dynamic |
|
|
163
|
+
| a taxonomy | `taxonomy<Taxonomy>` (`taxonomyWorkCategory`) | `includes` / `excludes` | term ids; dynamic |
|
|
164
|
+
| a meta key | `postType<Type>PostMeta`, `settings.key` | the comparator you pick: `text`, `number`, `date` | per comparator |
|
|
165
|
+
|
|
166
|
+
A dynamic filter value is `{"v": …}` - the field declares `SupportDynamic`, which the
|
|
167
|
+
reader validates with `ValidatorDynamicCodeObject`. "More work in the same category,
|
|
168
|
+
not this one", measured on a client build on 1.0.10:
|
|
169
|
+
|
|
170
|
+
```json
|
|
171
|
+
{"uuid": "<uuid>", "type": "filter", "filterOptions": {"subject": {
|
|
172
|
+
"type": "postTypeWork", "postTypeWorkOptions": {"settings": {}, "comparator": {
|
|
173
|
+
"type": "postTypeWork", "postTypeWorkOptions": {
|
|
174
|
+
"operator": "excludes", "settings": {"value": {"v": "@VAR('post/id')"}}}}}}}}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
with a second unit in the same group on `taxonomyWorkCategory`, operator `includes`,
|
|
178
|
+
value `{"v": "@LOOP('post/work_category', 1, 'term_id')"}`. A Meta Box checkbox
|
|
179
|
+
(stored `"1"`) filters as subject `postTypeWorkPostMeta` with
|
|
180
|
+
`settings: {"key": "work_featured"}` and a `text` comparator
|
|
181
|
+
`{"operator": "equals", "settings": {"value": "1"}}` - six posts back, in order.
|
|
182
|
+
|
|
183
|
+
`orderByClauses` accepts `random`: `{"type": "random", "uuid": "<uuid>",
|
|
184
|
+
"randomOptions": {"settings": {}}}`, a different order on every uncached render. Under
|
|
185
|
+
a page cache that is one order per cache lifetime, not per visitor.
|
|
186
|
+
|
|
143
187
|
## `loop-pagination`, and the key you must not use
|
|
144
188
|
|
|
145
189
|
```
|