mosaic-headless 1.34.4 → 1.34.5
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/dynamic-content.md +13 -0
- package/references/placement.md +4 -1
- package/tools/build_page.py +30 -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, 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.5"
|
|
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.5"
|
|
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.5"
|
|
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.5"
|
|
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.5"
|
|
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.5",
|
|
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",
|
|
@@ -73,6 +73,19 @@ it commits without complaint and delivers
|
|
|
73
73
|
`href="http://concat('/contact/?ref=%27…"` - the leading `@` dropped and the rest taken
|
|
74
74
|
as a URL (measured on a client build on 1.0.10). As `{"v": "@concat(…)"}` it delivers the evaluated link.
|
|
75
75
|
|
|
76
|
+
The same holds for a field that is not in the sweep tables. A form's
|
|
77
|
+
`actionOptions.entryName` and `formName` go through `LocalContext::evaluateText`,
|
|
78
|
+
which computes only `{"v": …}` and returns a plain string as it is. A plain
|
|
79
|
+
`"entryName": "@VAR('form/field_name')"` stores that text as every submission's
|
|
80
|
+
`entryLabel`, so the admin's Form Submissions list shows the raw code (measured on a
|
|
81
|
+
live form on 1.0.11). The label is stored per submission, so fixing the setting
|
|
82
|
+
does not change submissions already saved. The action settings inside
|
|
83
|
+
`actionOptions.actions[]` (email subject, replyTo, webhook body) accept either form.
|
|
84
|
+
`build_page.py` refuses `@fn(` code in a plain data string, except where a plain
|
|
85
|
+
string is evaluated: `code` content, `wpShortcode`, `wysiwyg-variable`'s
|
|
86
|
+
`dynamicCode` (and a condition's variable subject), a loop source, and form
|
|
87
|
+
action settings.
|
|
88
|
+
|
|
76
89
|
|
|
77
90
|
## The variable namespace
|
|
78
91
|
|
package/references/placement.md
CHANGED
|
@@ -220,7 +220,10 @@ the sweep tables.
|
|
|
220
220
|
keeps one open.
|
|
221
221
|
- **form**: `submitType` is `action` (default) or `native`; the options sit in
|
|
222
222
|
`actionOptions {actions[], formName, entryName}` or `nativeOptions {url, target,
|
|
223
|
-
method get|post, encoding}`, and switching type deletes the other group.
|
|
223
|
+
method get|post, encoding}`, and switching type deletes the other group.
|
|
224
|
+
`formName` and `entryName` take dynamic code only as `{"v": "@VAR('form/…')"}`;
|
|
225
|
+
a plain string is not computed, and a plain `entryName` is what the submissions
|
|
226
|
+
list shows. A native
|
|
224
227
|
submit skips server validation, the honeypot and CAPTCHA. The success screen
|
|
225
228
|
shows only for `action` with no redirect. With no error-message element, errors
|
|
226
229
|
appear in the browser's own bubble. Every label and legend is required; hide one
|
package/tools/build_page.py
CHANGED
|
@@ -73,6 +73,26 @@ def load_csv(name):
|
|
|
73
73
|
# `<br>` prints as those characters on the page. Inline formatting is written as
|
|
74
74
|
# nodes instead: wysiwyg-span, wysiwyg-linebreak, wysiwyg-link.
|
|
75
75
|
PROSE_TAG = re.compile(r"</?[a-zA-Z][a-zA-Z0-9-]*\s*[^>]*>")
|
|
76
|
+
DYNAMIC_CALL = re.compile(r"@[A-Za-z_][A-Za-z0-9_]*\s*\(")
|
|
77
|
+
# types whose own content is parsed as code from a plain string
|
|
78
|
+
RAW_CODE_TYPES = {"code", "wpShortcode", "wysiwyg-variable", "wysiwyg-text"}
|
|
79
|
+
# data keys whose plain string is evaluated (loop source; form action settings;
|
|
80
|
+
# a condition's variable subject)
|
|
81
|
+
RAW_CODE_KEYS = {"localContextOptions", "actions", "dynamicCode"}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def plain_code_paths(value, path="data"):
|
|
85
|
+
"""Paths of plain strings holding @fn( code where only {"v": ...} is computed."""
|
|
86
|
+
if isinstance(value, str):
|
|
87
|
+
return [path] if DYNAMIC_CALL.search(value) else []
|
|
88
|
+
if isinstance(value, dict):
|
|
89
|
+
if isinstance(value.get("v"), str):
|
|
90
|
+
return []
|
|
91
|
+
return [p for k, v in value.items() if k not in RAW_CODE_KEYS
|
|
92
|
+
for p in plain_code_paths(v, "%s.%s" % (path, k))]
|
|
93
|
+
if isinstance(value, list):
|
|
94
|
+
return [p for i, v in enumerate(value) for p in plain_code_paths(v, "%s[%d]" % (path, i))]
|
|
95
|
+
return []
|
|
76
96
|
AT_RULE_GLUED = re.compile(
|
|
77
97
|
r"@(media|supports|container|layer|scope|import|page|starting-style|"
|
|
78
98
|
r"font-feature-values|counter-style|property|document)\(")
|
|
@@ -134,6 +154,16 @@ class Surface:
|
|
|
134
154
|
problems.append("code content contains `%s` - Mosaic's template parser reads "
|
|
135
155
|
"it as a function call and the page renders as HTTP 500; "
|
|
136
156
|
"write `%s (`" % (hit.group(0), hit.group(0)[:-1]))
|
|
157
|
+
# Node data is computed only in the {"v": "..."} object form
|
|
158
|
+
# (DynamicCodeHelper::isDynamicCode); evaluateText hands a plain string back
|
|
159
|
+
# verbatim. So `"entryName": "@VAR('form/field_name')"` stores and shows the
|
|
160
|
+
# code itself - measured on a live form's submission list. Raw strings that ARE
|
|
161
|
+
# evaluated: code content, wpShortcode, wysiwyg-variable dynamicCode, a loop
|
|
162
|
+
# source, and form action settings (getSetting takes either form).
|
|
163
|
+
if not force and t not in RAW_CODE_TYPES:
|
|
164
|
+
for path in plain_code_paths(node.get("data") or {}):
|
|
165
|
+
problems.append("%s holds dynamic code as a plain string - it is stored "
|
|
166
|
+
"and shown literally; write it as {\"v\": \"...\"}" % path)
|
|
137
167
|
# A local-context loop's source written as `@LOOP('post/x')` renders on the
|
|
138
168
|
# front end - LoopEvaluator.php reads the loop name out of any function call -
|
|
139
169
|
# and throws in the editor, whose evaluateLoop only resolves `@VAR`
|