mosaic-headless 1.34.2 → 1.34.3
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/README.md +1 -0
- package/SKILL.md +9 -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/tools/scan_inline_tags.py +87 -0
package/README.md
CHANGED
|
@@ -303,6 +303,7 @@ and heading level — and it earned its place at once: it caught the converter l
|
|
|
303
303
|
| `theme_export.php` / `theme_import.php` | a whole theme as JSON rows over WP-CLI, ids intact |
|
|
304
304
|
| `prune_unbound.php` | clears the templates and masters that page rebuilds leave bound to nothing, with their nodes; dry run unless `--apply` |
|
|
305
305
|
| `fix_text_runs.py` | makes buttons built before v1.34.1 editable in the Mosaic editor by wrapping their text the way the editor does; dry run unless `--apply` |
|
|
306
|
+
| `scan_inline_tags.py` | read only: finds text that holds HTML tags, which Mosaic 1.0.11+ prints as visible `<p>` / `<br>` on the page |
|
|
306
307
|
| `theme_zip.py` / `theme_zip_compare.php` / `theme_delete.php` | Mosaic's own ZIP export/import from outside the editor, the copy held against the source, and a clean delete that refuses the live theme |
|
|
307
308
|
| `list_fields.php` | every `@VAR` / `@LOOP` name a post's custom fields register, with values |
|
|
308
309
|
| `verify_dialog.py` | the 1.0.9 modal, triggers, run rules and memory, driven in a browser |
|
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.3"
|
|
9
9
|
homepage: "https://github.com/Moksa1123/mosaic-headless"
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -879,6 +879,13 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
879
879
|
`inline_html.py` maps `<strong>`/`<em>` to styled `wysiwyg-span`s instead.
|
|
880
880
|
Through 1.0.10 the run was raw HTML instead, where a tag name in prose swallowed
|
|
881
881
|
the rest of the paragraph; `build_page.py` refuses any tag in a run either way.
|
|
882
|
+
**So a site built on 1.0.10 or earlier can start showing tags overnight**: the
|
|
883
|
+
plugin updates itself, the data does not change, and every `<p>`, `<br>` or
|
|
884
|
+
`<span>` written into a run now prints. Run `tools/scan_inline_tags.py` (read only)
|
|
885
|
+
before or after the update, on any site not built by `build_page.py` (another
|
|
886
|
+
converter, hand edits, an older helper). On the test theme it listed 179 runs on
|
|
887
|
+
the Elementor-converted `el-*` pages, and each listed page printed `<p>` while
|
|
888
|
+
the rest printed none.
|
|
882
889
|
- **`menu-link` is `width: fit-content` by default** (`.m-menu-link{display:flex;gap:4px;
|
|
883
890
|
padding:4px 8px;width:fit-content;…}`). Used as a cell of a button row or a grid -
|
|
884
891
|
a phone contact bar on `2fr 1fr 1fr` - its background hugs the text and the cell
|
|
@@ -950,6 +957,7 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
|
|
|
950
957
|
| `prune_unbound.php` | delete the templates no post is bound to, the masters no kept template uses, their nodes, then orphan nodes pass after pass - one theme, dry run unless `--apply`, `assign="auto"` templates kept |
|
|
951
958
|
| `theme_delete.php` | remove a theme completely through the plugin's own routine; refuses the live one |
|
|
952
959
|
| `fix_text_runs.py` | wrap text runs that sit directly under a button, menu-link or other non-text element (built before v1.34.1) in an Inherited text `text` node, so the editor can edit them - every master, template and component, through each document's own commit; dry run unless `--apply`, idempotent, component overrides kept |
|
|
960
|
+
| `scan_inline_tags.py` | read only: list every `wysiwyg-text` run whose text holds HTML tags (printed literally on 1.0.11+), with the nearest attrID above it, across every master, template and component - run it before or after a site updates from 1.0.10 |
|
|
953
961
|
| `verify_slider.py` | the slider in a real browser: does it advance, do the arrows and bullets drive it, does the keyboard, does it stop when motion is not wanted - `--label`/`--append` put several sliders in one table, which is where a carousel and a plain slider can be held against each other |
|
|
954
962
|
| `verify_navigation.py` | a multi-page site: is every menu item a real `<a href>`, does every page answer 200 (a template that was never bound answers 406 with an empty body, which only a logged-out visitor sees), and with `--viewports` does any page scroll SIDEWAYS - the one question no per-page checker asks - and whether every in-page `#fragment` resolves ON THE PAGE THAT CARRIES IT, which an HTTP check cannot see: a bare `#services` in a SHARED header fetches the current page, answers 200 everywhere, and does nothing on every page but the one that has that section |
|
|
955
963
|
| `verify_dialog.py` | the modal in a real browser (1.0.9 and 1.0.10 alike: open is read as `:popover-open` or `dialog.open`): does it open, close, answer Esc, remember, cap - and does an OpenStreetMap carry the coordinates it was given |
|
|
@@ -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.3"
|
|
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.3"
|
|
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.3"
|
|
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.3"
|
|
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.3"
|
|
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.3",
|
|
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",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""List text runs that carry HTML tags - the runs Mosaic 1.0.11 prints as literal
|
|
3
|
+
`<span>` / `<br>` / `<a href=...>` on the page. Read only.
|
|
4
|
+
|
|
5
|
+
python scan_inline_tags.py --config site.json
|
|
6
|
+
|
|
7
|
+
Why this exists
|
|
8
|
+
---------------
|
|
9
|
+
Through 1.0.10 a `wysiwyg-text` run was output as raw HTML, so a site could carry
|
|
10
|
+
`<span class=...>`, `<a href=...>` or `<br>` inside its text and look right. 1.0.11
|
|
11
|
+
escapes the run (WysiwygTextNodeMResource::getEscapedText), and the plugin updates
|
|
12
|
+
itself, so those tags appear on the live page as visible text the moment the site
|
|
13
|
+
updates - with nothing in the data changing. build_page.py refuses tags in a run, so
|
|
14
|
+
pages it builds are clean; sites written by another builder, by hand, or by an older
|
|
15
|
+
converter may not be.
|
|
16
|
+
|
|
17
|
+
Run it before updating a site to 1.0.11, or after, to find what already shows tags.
|
|
18
|
+
Rebuild the listed nodes with inline nodes (wysiwyg-span / -link / -linebreak, see
|
|
19
|
+
inline_html.py) - the scan points at them; it does not rewrite anything.
|
|
20
|
+
"""
|
|
21
|
+
import mosaic_config
|
|
22
|
+
import argparse
|
|
23
|
+
import os
|
|
24
|
+
import sys
|
|
25
|
+
|
|
26
|
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
27
|
+
from build_page import PROSE_TAG # noqa: E402
|
|
28
|
+
from fix_text_runs import documents # noqa: E402
|
|
29
|
+
from sweep_node_types import Client # noqa: E402
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def scan(nodes):
|
|
33
|
+
"""(run, nearest ancestor with an attrID or None, tags found) for each tagged run."""
|
|
34
|
+
live = {n["ID"]: n for n in nodes if n.get("status") != "delete"}
|
|
35
|
+
out = []
|
|
36
|
+
for n in live.values():
|
|
37
|
+
if n["type"] != "wysiwyg-text":
|
|
38
|
+
continue
|
|
39
|
+
text = (n.get("data") or {}).get("text")
|
|
40
|
+
if not isinstance(text, str):
|
|
41
|
+
continue
|
|
42
|
+
tags = PROSE_TAG.findall(text)
|
|
43
|
+
if not tags:
|
|
44
|
+
continue
|
|
45
|
+
anchor, p = None, live.get(n.get("parentID"))
|
|
46
|
+
while p is not None and anchor is None:
|
|
47
|
+
if (p.get("data") or {}).get("attrID"):
|
|
48
|
+
anchor = p
|
|
49
|
+
p = live.get(p.get("parentID"))
|
|
50
|
+
out.append((n, anchor, tags))
|
|
51
|
+
return out
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def main():
|
|
55
|
+
ap = argparse.ArgumentParser()
|
|
56
|
+
ap.add_argument("--config",
|
|
57
|
+
help="JSON with base/cookie/nonce/themeID; omit it and the MOSAIC_* environment variables supply them")
|
|
58
|
+
a = ap.parse_args()
|
|
59
|
+
# page text goes to the console as-is; a cp950/cp1252 console must not end the scan
|
|
60
|
+
sys.stdout.reconfigure(errors="replace")
|
|
61
|
+
client = Client(mosaic_config.load(a.config))
|
|
62
|
+
|
|
63
|
+
total = 0
|
|
64
|
+
for instance, key, label in documents(client):
|
|
65
|
+
resp = client.get(instance)
|
|
66
|
+
if "_httperror" in resp or "response" not in resp:
|
|
67
|
+
print(" skip %-40s (could not read)" % label)
|
|
68
|
+
continue
|
|
69
|
+
hits = scan(resp["response"].get(key) or [])
|
|
70
|
+
if not hits:
|
|
71
|
+
continue
|
|
72
|
+
total += len(hits)
|
|
73
|
+
print("%s: %d run(s)" % (label, len(hits)))
|
|
74
|
+
for n, anchor, tags in hits:
|
|
75
|
+
where = "#%s" % anchor["data"]["attrID"] if anchor else "(no attrID above)"
|
|
76
|
+
text = " ".join(n["data"]["text"].split())
|
|
77
|
+
print(" %s %-24s %s" % (n["ID"][:8], where, text[:100] + ("..." if len(text) > 100 else "")))
|
|
78
|
+
print(" tags: %s" % " ".join(sorted(set(t.split()[0].rstrip(">") + ">" for t in tags))))
|
|
79
|
+
|
|
80
|
+
print("%d run(s) with HTML tags%s" % (total, "" if total else " - nothing prints a literal tag"))
|
|
81
|
+
if total:
|
|
82
|
+
print("On 1.0.11+ these print the tags as text. Rebuild them as wysiwyg-span / -link / "
|
|
83
|
+
"-linebreak nodes (inline_html.py turns an HTML fragment into those).")
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
if __name__ == "__main__":
|
|
87
|
+
main()
|