mosaic-headless 1.38.2 → 1.38.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/SKILL.md +2 -2
- 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/data/pending.csv +2 -1
- package/package.json +1 -1
- package/references/facts.md +31 -0
package/SKILL.md
CHANGED
|
@@ -6,7 +6,7 @@ license: "MIT"
|
|
|
6
6
|
user-invocable: true
|
|
7
7
|
metadata:
|
|
8
8
|
author: "moksa (https://moksaweb.com)"
|
|
9
|
-
version: "1.38.
|
|
9
|
+
version: "1.38.3"
|
|
10
10
|
homepage: "https://github.com/Moksa1123/mosaic-headless"
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -154,7 +154,7 @@ Five facts that cause most broken pages (the rest: [facts.md](references/facts.m
|
|
|
154
154
|
|
|
155
155
|
- A `button`'s words go in a `text` node (`build_page.py` wraps them); only four types take a `url`.
|
|
156
156
|
- A `wysiwyg-text` run prints tags literally since 1.0.11: inline formatting is `wysiwyg-span` / `-link` / `-linebreak`.
|
|
157
|
-
- One root per document, or every instance renders empty; `build_site.py` stops on a duplicate root. But deleting a root (or re-keying a component) makes heal empty that component's overrides in every other document: export them first.
|
|
157
|
+
- One root per document, or every instance renders empty; `build_site.py` stops on a duplicate root. But deleting a root (or re-keying a component) makes heal empty that component's overrides in every other document: export them first. Empty roots come from a front-end render's heal reading a lost database connection as "no root"; blocking front-end writes to `wp_mosaic_nodes` prevents it ([facts.md](references/facts.md)).
|
|
158
158
|
- `@media(` in a `code` node is a function call and returns HTTP 500 after a clean commit; write `@media (`.
|
|
159
159
|
- `scrollDepth`'s action slot is `reached` since 1.0.10; the old slot name is stored and never runs.
|
|
160
160
|
|
package/data/pending.csv
CHANGED
|
@@ -8,4 +8,5 @@ date,question,why_not_found,asked_by,status
|
|
|
8
8
|
2026-11-16,Is a top-level user-invocable key accepted by the claude.ai skill upload,scripts/check-release.mjs notes the Agent Skills spec allows only six top-level keys; Claude Code reads user-invocable and the claude-code platform template now writes it; the other platform templates do not; the claude.ai upload path is untested,mosaic skill (SOP item 0),open
|
|
9
9
|
2026-11-17,"Mosaic 1.0.13 editor features the skill cannot write yet: new collection-variable types (background/gradient, box/text shadow, nested; font size and line height as variables); List classes; pageLoad delay; scroll-direction offset; Hide/Show in Editor actions; accordion all-open; External Styles / Gutenberg Styles","they live in the editor JavaScript, not in the PHP the extractors read; each needs one editor-authored example read back from the row on a 1.0.13 site (references/upgrading.md)",user (Mosaic 1.0.13 release),open
|
|
10
10
|
2026-11-17,Demo verifiers and sweeps not yet re-run on Mosaic 1.0.13,"the demo site was upgraded on 2026-11-17 and passed the page health check (90/90, no duplicate roots); the browser verifiers were held back because the shared host was under heavy load",user (Mosaic 1.0.13 release),open
|
|
11
|
-
2026-11-18,"Demo site: 7 component instances (case-card x3, service-row x4) in two unbound templates have all 70 override nodes emptied to originalID-only shells","not a gap in the data but a known state: written 2026-11-04 18:05 UTC after a component rebuild re-keyed the components; the templates serve no post so no visitor sees it. Left as is (read-only check); prune_unbound.php would remove the templates, or the instances can be re-filled from a spec",skill 總機 (em925 override incident follow-up),
|
|
11
|
+
2026-11-18,"Demo site: 7 component instances (case-card x3, service-row x4) in two unbound templates have all 70 override nodes emptied to originalID-only shells","not a gap in the data but a known state: written 2026-11-04 18:05 UTC after a component rebuild re-keyed the components; the templates serve no post so no visitor sees it. Left as is (read-only check); prune_unbound.php would remove the templates, or the instances can be re-filled from a spec. Whether to delete the two unbound templates is the user's decision",skill 總機 (em925 override incident follow-up),waiting (user decision)
|
|
12
|
+
2026-11-18,"Install the front-end write block for wp_mosaic_nodes on the demo site (references/facts.md, empty-root prevention)","a decision, not a gap: the block is measured on another live site; installing it on the shared demo site waits for the user",skill 總機 (em925 empty-root root cause),waiting (user decision)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mosaic-headless",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.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",
|
package/references/facts.md
CHANGED
|
@@ -37,6 +37,37 @@ Platform and rendered-tag facts, each measured. Moved out of SKILL.md on 2026-11
|
|
|
37
37
|
failed query as "no root" and wrote a new empty one, with no REST write in the
|
|
38
38
|
log. A site that sees this needs the load handled (bot rate limits, MySQL
|
|
39
39
|
capacity) as much as the roots repaired.
|
|
40
|
+
|
|
41
|
+
**Why a lost connection becomes an empty root.** Found by the em925 site's
|
|
42
|
+
session reading Mosaic 1.0.12 and WordPress (2026-11-18), re-read here against
|
|
43
|
+
Mosaic 1.0.13 and WordPress 7.1.4:
|
|
44
|
+
- every front-end render builds its document with `load()` then `heal()`, and heal
|
|
45
|
+
may write (`Mosaic/Builder/AbstractDocument.php`, `createEditorInstance()` at line
|
|
46
|
+
376, `load()` / `heal()` at 380-381 in 1.0.13 - the file is byte-identical to 1.0.12);
|
|
47
|
+
- when the connection has gone away (errno 2006) and `check_connection()` cannot
|
|
48
|
+
reconnect, `wpdb::query()` returns `false` WITHOUT setting `last_error`
|
|
49
|
+
(`wp-includes/class-wpdb.php` lines 2282-2288 on 7.1.4), so `get_results()` hands
|
|
50
|
+
back the empty `last_result` that `flush()` left (lines 1921-1927);
|
|
51
|
+
- `MosaicDB::get_results()` treats an empty array with an empty `last_error` as
|
|
52
|
+
success (`Mosaic/Database/MosaicDB.php` line 25; identical in 1.0.12 and 1.0.13),
|
|
53
|
+
so "the database was unreachable" reads as "this document has no root", and heal
|
|
54
|
+
writes a new empty one - with empty instance overrides beside it.
|
|
55
|
+
The more nodes a page has, the more queries a render makes, and the more uncached
|
|
56
|
+
bot traffic a site gets, the likelier it is. A small site is less likely to hit it,
|
|
57
|
+
not immune.
|
|
58
|
+
|
|
59
|
+
**Prevention, measured on one live site (2026-11-18):** block front-end writes to
|
|
60
|
+
`wp_mosaic_nodes`. A `query` filter refuses `INSERT` / `REPLACE` / `DELETE` on that
|
|
61
|
+
table during an ordinary front-end request, while `UPDATE` passes and wp-admin,
|
|
62
|
+
admin-ajax, REST (the editor and these tools), WP-CLI and cron are untouched; form
|
|
63
|
+
submissions live in another table and are untouched too. When it blocks, the page
|
|
64
|
+
is marked uncacheable, logged and reported. Before switching it on, the site ran it
|
|
65
|
+
log-only over 34 pages: a normal render made 0 writes to `wp_mosaic_nodes`, so
|
|
66
|
+
blocking costs nothing. It is the lightest safe fix found so far and applies to any
|
|
67
|
+
Mosaic site; whether a site installs it is that site's owner's decision. The
|
|
68
|
+
implementation belongs to that site and is not shipped here - the description above
|
|
69
|
+
is enough to write one (a must-use plugin with a `query` filter and a log-only
|
|
70
|
+
switch).
|
|
40
71
|
- **Changing a component's roots or its node ids empties its instances' overrides
|
|
41
72
|
everywhere else.** An instance in another document (a template, the master) keeps
|
|
42
73
|
one override node per component node, and heal re-syncs those nodes to the
|