mosaic-headless 1.40.1 → 1.40.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.ja.md +4 -4
- package/README.ko.md +4 -4
- package/README.md +4 -4
- package/README.zh-TW.md +4 -4
- 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 +3 -1
- package/package.json +1 -1
- package/references/dynamic-content.md +7 -0
- package/references/facts.md +18 -0
- package/references/tools.md +1 -1
- package/references/upgrading.md +78 -1
- package/tools/check_numbers.py +4 -3
- package/tools/sync_nodes.py +9 -3
- package/tools/test_mosaic.py +24 -0
- package/tools/theme_zip.py +21 -2
package/README.ja.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<img src="https://img.shields.io/badge/node_properties-120-success?style=flat-square" alt="120 個の node プロパティ">
|
|
19
19
|
<img src="https://img.shields.io/badge/style_properties-101-success?style=flat-square" alt="101 個のスタイルプロパティ">
|
|
20
20
|
<img src="https://img.shields.io/badge/responsive_checks-733-blueviolet?style=flat-square" alt="733 件のレスポンシブ検査">
|
|
21
|
-
<img src="https://img.shields.io/badge/self--tests-
|
|
21
|
+
<img src="https://img.shields.io/badge/self--tests-55-blueviolet?style=flat-square" alt="55 項目のセルフテスト">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
## 機能
|
|
35
35
|
|
|
36
|
-
Mosaic はページを独自のデータベーステーブルに、要素 1 つにつき 1 行で保存します(`post_content` ではありません)。この skill はそのデータモデルの計測済みマップと、それを通して書き込むツールです。データは Mosaic Pro 1.0.
|
|
36
|
+
Mosaic はページを独自のデータベーステーブルに、要素 1 つにつき 1 行で保存します(`post_content` ではありません)。この skill はそのデータモデルの計測済みマップと、それを通して書き込むツールです。データは Mosaic Pro 1.0.14 から抽出し、実サイトで 1 つずつ計測しています。
|
|
37
37
|
|
|
38
38
|
| 分野 | 内容 |
|
|
39
39
|
|---|---|
|
|
@@ -183,7 +183,7 @@ node type、node プロパティ、スタイルプロパティ、スタイル状
|
|
|
183
183
|
| `data/theme-zip-verification.csv` | 22 | Mosaic 自身のテーマ ZIP を往復させて比較 |
|
|
184
184
|
| `data/conversion-batch.csv` | 19 | あるサイトのすべての Elementor ページを変換・構築・検査 |
|
|
185
185
|
|
|
186
|
-
- セルフテスト:`python tools/test_mosaic.py`、オフラインの
|
|
186
|
+
- セルフテスト:`python tools/test_mosaic.py`、オフラインの 55 項目(検索、中国語の用語、構築結果の形と拒否ルール、公開されている構築インターフェース、このリポジトリの数値とプライバシー)。
|
|
187
187
|
- evals:Mosaic 1.0.10〜1.0.12 の挙動に関する 16 問。skill ありで 16/16、なしで 0/16。結果:[evals/RESULTS.md](evals/RESULTS.md)。
|
|
188
188
|
- `SKILL.md`、これらの README、バッジの数値は、`tools/check_numbers.py` がデータと照合しています。詳細:[verification-record.md](references/verification-record.md)。
|
|
189
189
|
|
|
@@ -200,7 +200,7 @@ node type、node プロパティ、スタイルプロパティ、スタイル状
|
|
|
200
200
|
|
|
201
201
|
## 制限
|
|
202
202
|
|
|
203
|
-
- Mosaic Pro 1.0.
|
|
203
|
+
- Mosaic Pro 1.0.14 まで計測済みです。1.0.13 のエディターにしかない機能(新しいスタイル変数の種類、List のクラス、pageLoad の遅延など)はまだ計測しておらず、ツールも書き込みません。
|
|
204
204
|
- グリッド子要素の配置プロパティは headless で書き込んでも出力されません。一部のインタラクションの形はまだ計測していません。
|
|
205
205
|
- ブラウザー検証ツールには Playwright と書き込み可能なサイトが必要で、オフラインのセルフテストには含まれません。
|
|
206
206
|
- 未解決の項目:[data/pending.csv](data/pending.csv)。詳しいガイド(失敗モード、Elementor 変換、作例):[docs/guide.md](docs/guide.md)(英語)。
|
package/README.ko.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<img src="https://img.shields.io/badge/node_properties-120-success?style=flat-square" alt="120개 node 속성">
|
|
19
19
|
<img src="https://img.shields.io/badge/style_properties-101-success?style=flat-square" alt="101개 스타일 속성">
|
|
20
20
|
<img src="https://img.shields.io/badge/responsive_checks-733-blueviolet?style=flat-square" alt="733개 반응형 검사">
|
|
21
|
-
<img src="https://img.shields.io/badge/self--tests-
|
|
21
|
+
<img src="https://img.shields.io/badge/self--tests-55-blueviolet?style=flat-square" alt="55개 자체 테스트">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
## 기능
|
|
35
35
|
|
|
36
|
-
Mosaic는 페이지를 자체 데이터베이스 테이블에 요소 하나당 한 행으로 저장합니다(`post_content`가 아닙니다). 이 skill은 그 데이터 모델의 측정된 지도와, 그것을 통해 기록하는 도구입니다. 데이터는 Mosaic Pro 1.0.
|
|
36
|
+
Mosaic는 페이지를 자체 데이터베이스 테이블에 요소 하나당 한 행으로 저장합니다(`post_content`가 아닙니다). 이 skill은 그 데이터 모델의 측정된 지도와, 그것을 통해 기록하는 도구입니다. 데이터는 Mosaic Pro 1.0.14에서 추출해 실제 사이트에서 하나씩 측정했습니다.
|
|
37
37
|
|
|
38
38
|
| 분야 | 내용 |
|
|
39
39
|
|---|---|
|
|
@@ -183,7 +183,7 @@ node type, node 속성, 스타일 속성, 스타일 상태는 플러그인 소
|
|
|
183
183
|
| `data/theme-zip-verification.csv` | 22 | Mosaic 자체 테마 ZIP을 왕복시켜 비교 |
|
|
184
184
|
| `data/conversion-batch.csv` | 19 | 한 사이트의 모든 Elementor 페이지를 변환, 구축, 검사 |
|
|
185
185
|
|
|
186
|
-
- 자체 테스트: `python tools/test_mosaic.py`, 오프라인 테스트
|
|
186
|
+
- 자체 테스트: `python tools/test_mosaic.py`, 오프라인 테스트 55개(조회, 중국어 용어, 구축 결과의 형태와 거부 규칙, 공개된 구축 인터페이스, 이 저장소의 숫자와 개인정보).
|
|
187
187
|
- evals: Mosaic 1.0.10~1.0.12 동작에 관한 16문항. skill 사용 시 16/16, 미사용 시 0/16. 결과: [evals/RESULTS.md](evals/RESULTS.md).
|
|
188
188
|
- `SKILL.md`, 이 README들, 배지의 숫자는 `tools/check_numbers.py`가 데이터와 대조합니다. 자세한 내용: [verification-record.md](references/verification-record.md).
|
|
189
189
|
|
|
@@ -200,7 +200,7 @@ node type, node 속성, 스타일 속성, 스타일 상태는 플러그인 소
|
|
|
200
200
|
|
|
201
201
|
## 제한 사항
|
|
202
202
|
|
|
203
|
-
- Mosaic Pro 1.0.
|
|
203
|
+
- Mosaic Pro 1.0.14까지 측정했습니다. 1.0.13 에디터에만 있는 기능(새 스타일 변수 유형, List 클래스, pageLoad 지연 등)은 아직 측정하지 않았고 도구도 기록하지 않습니다.
|
|
204
204
|
- 그리드 자식 배치 속성은 headless로 기록하면 출력되지 않습니다. 일부 인터랙션 형태는 아직 측정하지 않았습니다.
|
|
205
205
|
- 브라우저 검증 도구에는 Playwright와 기록 가능한 사이트가 필요하며, 오프라인 자체 테스트에는 포함되지 않습니다.
|
|
206
206
|
- 미해결 항목: [data/pending.csv](data/pending.csv). 상세 가이드(실패 모드, Elementor 변환기, 예제): [docs/guide.md](docs/guide.md)(영어).
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<img src="https://img.shields.io/badge/node_properties-120-success?style=flat-square" alt="120 node properties">
|
|
19
19
|
<img src="https://img.shields.io/badge/style_properties-101-success?style=flat-square" alt="101 style properties">
|
|
20
20
|
<img src="https://img.shields.io/badge/responsive_checks-733-blueviolet?style=flat-square" alt="733 responsive checks">
|
|
21
|
-
<img src="https://img.shields.io/badge/self--tests-
|
|
21
|
+
<img src="https://img.shields.io/badge/self--tests-55-blueviolet?style=flat-square" alt="55 self-tests">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
## What it does
|
|
35
35
|
|
|
36
|
-
Mosaic keeps a page in its own database tables, one row per element, not in `post_content`. This skill is a measured map of that model plus the tools to write through it, extracted from Mosaic Pro 1.0.
|
|
36
|
+
Mosaic keeps a page in its own database tables, one row per element, not in `post_content`. This skill is a measured map of that model plus the tools to write through it, extracted from Mosaic Pro 1.0.14 and swept on a live site.
|
|
37
37
|
|
|
38
38
|
| Area | What you get |
|
|
39
39
|
|---|---|
|
|
@@ -183,7 +183,7 @@ Node types, node properties, style properties and style states are extracted fro
|
|
|
183
183
|
| `data/theme-zip-verification.csv` | 22 | Mosaic's own theme ZIP round-tripped and compared |
|
|
184
184
|
| `data/conversion-batch.csv` | 19 | every Elementor page of a site converted, built and checked |
|
|
185
185
|
|
|
186
|
-
- Self-test: `python tools/test_mosaic.py`,
|
|
186
|
+
- Self-test: `python tools/test_mosaic.py`, 55 offline tests (lookups, Chinese terms, the build output's shape and refusals, the public build interface, this repository's numbers and privacy).
|
|
187
187
|
- Evals: 16 questions about Mosaic 1.0.10 to 1.0.12 behaviour; with the skill 16/16, without it 0/16. Results: [evals/RESULTS.md](evals/RESULTS.md).
|
|
188
188
|
- Every number in `SKILL.md`, these READMEs and their badges is checked against the data by `tools/check_numbers.py`. Detail: [verification-record.md](references/verification-record.md).
|
|
189
189
|
|
|
@@ -200,7 +200,7 @@ What a lookup costs, priced with tiktoken on the same six tasks (`data/token-ben
|
|
|
200
200
|
|
|
201
201
|
## Limits
|
|
202
202
|
|
|
203
|
-
- Measured against Mosaic Pro up to 1.0.
|
|
203
|
+
- Measured against Mosaic Pro up to 1.0.14. Features that live only in the 1.0.13 editor (new style-variable types, List classes, pageLoad delay and others) are not measured yet and are not written by the tools.
|
|
204
204
|
- Grid child placement properties emit nothing when written headlessly; some interaction shapes are still unmeasured.
|
|
205
205
|
- The browser verifiers need Playwright and a site you can write to; they are not part of the offline self-test.
|
|
206
206
|
- Open questions: [data/pending.csv](data/pending.csv). The long guide (failure modes, the Elementor converter, the worked example): [docs/guide.md](docs/guide.md).
|
package/README.zh-TW.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<img src="https://img.shields.io/badge/node_properties-120-success?style=flat-square" alt="120 個 node 屬性">
|
|
19
19
|
<img src="https://img.shields.io/badge/style_properties-101-success?style=flat-square" alt="101 個樣式屬性">
|
|
20
20
|
<img src="https://img.shields.io/badge/responsive_checks-733-blueviolet?style=flat-square" alt="733 條 RWD 檢查">
|
|
21
|
-
<img src="https://img.shields.io/badge/self--tests-
|
|
21
|
+
<img src="https://img.shields.io/badge/self--tests-55-blueviolet?style=flat-square" alt="55 項自我測試">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
## 功能
|
|
35
35
|
|
|
36
|
-
Mosaic 把頁面存在自己的資料表裡,一個元素一列,不在 `post_content`。這個 skill 是那套資料模型的實測地圖,加上透過它寫入的工具;資料從 Mosaic Pro 1.0.
|
|
36
|
+
Mosaic 把頁面存在自己的資料表裡,一個元素一列,不在 `post_content`。這個 skill 是那套資料模型的實測地圖,加上透過它寫入的工具;資料從 Mosaic Pro 1.0.14 抽出,並在正式網站上逐一實測。
|
|
37
37
|
|
|
38
38
|
| 類別 | 內容 |
|
|
39
39
|
|---|---|
|
|
@@ -183,7 +183,7 @@ node type、node 屬性、樣式屬性、樣式狀態從外掛原始碼抽出(
|
|
|
183
183
|
| `data/theme-zip-verification.csv` | 22 | Mosaic 自己的佈景 ZIP 匯出再匯入並比對 |
|
|
184
184
|
| `data/conversion-batch.csv` | 19 | 一個網站的每個 Elementor 頁面都轉換、建置並檢查 |
|
|
185
185
|
|
|
186
|
-
- 自我測試:`python tools/test_mosaic.py`,
|
|
186
|
+
- 自我測試:`python tools/test_mosaic.py`,55 項離線測試(查詢、中文用語、建頁產出的結構與拒收規則、對外的建頁介面、本 repo 的數字與隱私)。
|
|
187
187
|
- evals:16 題 Mosaic 1.0.10 到 1.0.12 的行為題;有 skill 16/16,沒有 skill 0/16。結果見 [evals/RESULTS.md](evals/RESULTS.md)。
|
|
188
188
|
- `SKILL.md`、這幾份 README 和徽章上的數字,都由 `tools/check_numbers.py` 對照資料核對。細節見 [verification-record.md](references/verification-record.md)。
|
|
189
189
|
|
|
@@ -200,7 +200,7 @@ node type、node 屬性、樣式屬性、樣式狀態從外掛原始碼抽出(
|
|
|
200
200
|
|
|
201
201
|
## 限制
|
|
202
202
|
|
|
203
|
-
- 實測到 Mosaic Pro 1.0.
|
|
203
|
+
- 實測到 Mosaic Pro 1.0.14。只存在於 1.0.13 編輯器裡的功能(新的樣式變數類型、List 的 class、pageLoad 延遲等)還沒實測,工具也不會寫。
|
|
204
204
|
- 用 headless 方式寫入格線子項位置的屬性不會有輸出;部分互動形狀還沒實測。
|
|
205
205
|
- 瀏覽器驗證器需要 Playwright 和一個可以寫入的網站,不在離線自我測試裡。
|
|
206
206
|
- 待補問題:[data/pending.csv](data/pending.csv)。完整說明(失敗模式、Elementor 轉換器、示範範例):[docs/guide.md](docs/guide.md)(英文)。
|
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.40.
|
|
9
|
+
version: "1.40.3"
|
|
10
10
|
homepage: "https://github.com/Moksa1123/mosaic-headless"
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ health, not plugin audits.
|
|
|
22
22
|
|
|
23
23
|
| | |
|
|
24
24
|
|---|---|
|
|
25
|
-
| Surface | Extracted from the Mosaic Pro plugin source, last re-extracted on **Mosaic Pro 1.0.
|
|
25
|
+
| Surface | Extracted from the Mosaic Pro plugin source, last re-extracted on **Mosaic Pro 1.0.14** (no table changed from 1.0.13) (unlicensed: the licence gates the theme library, not the node factories). `tools/check_tables.py` re-extracts every source table and diffs it against `data/`. The editor-side features of 1.0.13 and 1.0.14 are not measured yet: [upgrading.md](references/upgrading.md) |
|
|
26
26
|
| Measured on | A live WordPress 7.1 + WooCommerce 11.1 install, upgraded in place from 1.0.7 to 1.0.12. Node sweep: 133 of 134 types on 1.0.11 / 1.0.12 (`document` excluded: its probe wrecks the master). Older rows say which version they ran on. Detail: [verification-record.md](references/verification-record.md) |
|
|
27
27
|
| Size | 134 node types, 120 node property names declared in 201 rows (one row per owning data class), 191 node-property probe rows covering 118 of those names (`ariaLive` and `positioning` not yet probed), 101 style properties, 60 style states, 157 variants, 76 dynamic variables, 16 interaction triggers, 115 REST routes, 23 tables. Current counts: `python tools/mo.py stats` - do not quote numbers from memory |
|
|
28
28
|
| Provenance | Each table says where it came from: **source** (read out of the plugin code), **live** (captured from the running site), **swept / probed / driven** (written to a page and asserted on the delivered HTML, CSS or browser). Per-file list: [data-files.md](references/data-files.md) |
|
package/data/pending.csv
CHANGED
|
@@ -7,9 +7,11 @@ date,question,why_not_found,asked_by,status
|
|
|
7
7
|
2026-11-16,Shared msgids that need a msgctxt from Mosaic: Fixed / Select / Snap / Toggle / Scale down,one English string serves a verb and a noun so one zh_TW string cannot fit both (選取 for the Select field),zh_TW review 2026-11-05,closed 2026-11-17: all five carry a msgctxt in Mosaic 1.0.13
|
|
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
|
-
2026-11-17,Demo verifiers and sweeps not yet re-run on Mosaic 1.0.13,"the demo site
|
|
10
|
+
2026-11-17,Demo verifiers and sweeps not yet re-run on Mosaic 1.0.13 / 1.0.14,"the demo site went to 1.0.13 on 2026-11-17 and 1.0.14 on 2026-11-24; both passed the page health check (90/90, no duplicate roots), 1.0.14 also theme export/import and sync_nodes; the browser verifiers and property sweeps were not re-run (1.0.14 changed no stored shape)",user (Mosaic 1.0.13 release),open
|
|
11
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
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)
|
|
13
13
|
2026-11-21,"Can a child of an accordion item (an icon in the title) be styled through the ___accordion-item--opened state, or only the item itself?","conflicting: a second site (1.0.13) reported the state applies only to the item and needed outside CSS for an icon turn; the 1.0.13 selector template also targets the item's direct children and anything inside .m-accordion-title. This skill's state sweep recorded NO_HOST for it, so neither is measured here. Needs one accordion with a styled title icon, opened in Chromium","skill 總機 (second-site findings 2026-11-21, item 14)","closed 2026-11-21: source-documented in references/facts.md (third site): the selector template reaches the item, its direct children and anything inside the title; deeper panel children need outside CSS. Still not browser-measured here"
|
|
14
14
|
2026-11-21,Does a taxonomy loop's offset ever apply (a product-brand loop started from the first term whatever the offset)?,measured on a second site only; this skill's node-property sweep never probed loop offsets on a taxonomy source. Treated as NO_EFFECT in references/facts.md until a sweep measures it,"skill 總機 (batch 4, item 40)",open
|
|
15
15
|
2026-11-21,"Should build_site.py look up a post's existing template before binding, instead of always creating a new master and template?","a design decision, not a gap: em925's deploy tool imports build_site, so its behaviour is left unchanged (its md5 is part of em925's agreement). sync_nodes.py + list_bindings.php now cover in-place updates; build_site.py's limits are documented in SKILL.md and references/tools.md","skill 總機 (batch 3 item 20, batch 4 item 32)",open
|
|
16
|
+
2026-11-24,"Does Mosaic 1.0.14 really answer 503 (Retry-After 30, no-cache) and write no root when the database connection is lost mid-render?","read from the 1.0.14 source and WordPress 7.1.5's wpdb only; measuring it needs the database to go away under a front-end render, not done on the shared demo site",skill 總機 (Mosaic 1.0.14 re-verification),open
|
|
17
|
+
2026-11-24,Mosaic's own ZIP import of a ~24k-node theme exhausts a 512M PHP memory limit in createTemplates,"measured once on the demo site (1.0.14; the import flow's PHP is unchanged since 1.0.12); how much memory a theme that size needs, or whether Mosaic splits the tick, is not known. theme_import.php handles it",skill 總機 (Mosaic 1.0.14 re-verification),open
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mosaic-headless",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.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",
|
|
@@ -50,6 +50,13 @@ expression as a plain string in `dynamicCode`:
|
|
|
50
50
|
"children": [{"type": "wysiwyg-variable", "data": {"dynamicCode": "@VAR('post/title')"}}]}
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
The text's tag decides what block HTML survives (Mosaic 1.0.14, measured): a `p` or
|
|
54
|
+
`h1`-`h6` text - by `tagName` or by its Paragraph / Heading variant - strips `<p>`,
|
|
55
|
+
`<h2>` and the like out of the value and joins the runs with no space, so post content
|
|
56
|
+
reads as one run-on line; a `div` text, or one with no tag and no variant, keeps them.
|
|
57
|
+
Put `@VAR('post/content')` in a `div` text. Before 1.0.14 a variant-tagged `p` kept the
|
|
58
|
+
inner paragraphs and the browser split them into empty `<p>` (references/upgrading.md).
|
|
59
|
+
|
|
53
60
|
`wysiwyg-variable` is one of the seven types that **kill the page** when placed under
|
|
54
61
|
a plain container — it needs a wysiwyg parent, and the sweep recorded it as
|
|
55
62
|
`NodeMResourceFilterFunctionInterface parent is missing`.
|
package/references/facts.md
CHANGED
|
@@ -56,6 +56,24 @@ Platform and rendered-tag facts, each measured. Moved out of SKILL.md on 2026-11
|
|
|
56
56
|
bot traffic a site gets, the likelier it is. A small site is less likely to hit it,
|
|
57
57
|
not immune.
|
|
58
58
|
|
|
59
|
+
**Fixed in Mosaic 1.0.14, read from the source (2026-11-24).** The four readers in
|
|
60
|
+
`MosaicDB` (`get_results`, `get_row`, `get_col`, `get_var`) now also throw when
|
|
61
|
+
`$wpdb->dbh` is empty - which is what WordPress leaves after a failed reconnect
|
|
62
|
+
(`db_connect()` sets `dbh = null` on `connect_errno`, `class-wpdb.php` line 1997 on
|
|
63
|
+
7.1.5) - so a lost connection is an error, not "no root", and heal never runs on it.
|
|
64
|
+
`FrontendRenderer` catches that `DatabaseException` and answers **503 with
|
|
65
|
+
`Retry-After: 30` and no-cache headers** instead of a page. `AbstractDocument`
|
|
66
|
+
(load + heal) is byte-identical to 1.0.13: heal still writes on the front end, it is
|
|
67
|
+
only no longer fed a false empty read. What the fix does NOT do:
|
|
68
|
+
- repair a site that already has extra roots or emptied overrides: run the health
|
|
69
|
+
SQL above and `tools/override_health.sql` after upgrading, and repair as before;
|
|
70
|
+
- help any site still on 1.0.13 or older;
|
|
71
|
+
- cover a failure the readers cannot see (a read that returns empty while the
|
|
72
|
+
connection is up). None is known, but the front-end write block below still costs
|
|
73
|
+
nothing and remains a valid second layer.
|
|
74
|
+
Not measured: the 503 itself (dropping the database of the shared demo site to watch
|
|
75
|
+
it was not worth the risk).
|
|
76
|
+
|
|
59
77
|
**Prevention, measured on one live site (2026-11-18):** block front-end writes to
|
|
60
78
|
`wp_mosaic_nodes`. A `query` filter refuses `INSERT` / `REPLACE` / `DELETE` on that
|
|
61
79
|
table during an ordinary front-end request, while `UPDATE` passes and wp-admin,
|
package/references/tools.md
CHANGED
|
@@ -28,7 +28,7 @@ Every tool in `tools/`, and where the REST session comes from. Moved out of SKIL
|
|
|
28
28
|
| `interactions.py` | a library, not a command: `tween`, `on`, `mode_switch`, `set_cookie`, `cookie_is`, `hide_at_end`, `suspend` / `resume`, `class_target` - every interaction shape in the form the editor stores |
|
|
29
29
|
| `verify_recipes.py` | builds Mosaic's four docs tutorials on one page and drives each in Chromium |
|
|
30
30
|
| `theme_export.php` / `theme_import.php` | move a whole theme across installs, ids intact |
|
|
31
|
-
| `theme_zip.py` | drive Mosaic's OWN export/import - the ZIP the editor makes, attachments included, over the milestone protocol; import lands in test mode unless told `--activate` |
|
|
31
|
+
| `theme_zip.py` | drive Mosaic's OWN export/import - the ZIP the editor makes, attachments included, over the milestone protocol; import lands in test mode unless told `--activate`. Sends the `offset` / `chunkIndex` / `chunkSize` that 1.0.12+ requires (measured on 1.0.14; 1.0.8-1.0.11 do not read them, per their source); a theme of ~20k nodes can exhaust a 512M PHP limit on import - use `theme_export.php` / `theme_import.php` for those |
|
|
32
32
|
| `theme_zip_compare.php` | hold an imported copy against its source, tree for tree - every scoped table, the (parentType, type) shape, which ids survive, and orphans named rather than counted |
|
|
33
33
|
| `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 given the bare word `apply` (WP-CLI eats `--apply`), `assign="auto"` templates kept |
|
|
34
34
|
| `theme_delete.php` | remove a theme completely through the plugin's own routine; refuses the live one |
|
package/references/upgrading.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Upgrading the plugin: what 1.0.7 → 1.0.8 → 1.0.10 → 1.0.11 → 1.0.12 did to the data, measured
|
|
1
|
+
# Upgrading the plugin: what 1.0.7 → 1.0.8 → 1.0.10 → 1.0.11 → 1.0.12 → 1.0.13 → 1.0.14 did to the data, measured
|
|
2
2
|
|
|
3
3
|
A Mosaic plugin update is two events, not one. The files change when WordPress
|
|
4
4
|
installs the package; the DATA changes only when Mosaic's own upgrade flow has
|
|
@@ -451,3 +451,80 @@ Editor actions; the accordion "all open" option; Style Guides renamed External
|
|
|
451
451
|
Styles, with Gutenberg Styles. The dynamic-data function "renames" (`@FIND_IMAGE`
|
|
452
452
|
...) change the docs, not the evaluator: the ids already had underscores in 1.0.12
|
|
453
453
|
(`references/dynamic-content.md`).
|
|
454
|
+
|
|
455
|
+
## 1.0.13 → 1.0.14
|
|
456
|
+
|
|
457
|
+
Released 2026-11-24. Read from the Pro package, diffed against 1.0.13, and run on the
|
|
458
|
+
live test site the same day.
|
|
459
|
+
|
|
460
|
+
**`wp plugin update mosaic` can report success and change nothing.** Mosaic's updater
|
|
461
|
+
stages the package in `plugins/mosaic-next/` and, when the data version is unchanged,
|
|
462
|
+
moves it over `plugins/mosaic/` with `move_dir()`
|
|
463
|
+
(`MosaicUpgradeLayer/Update/UpdateInteraction.php`, `filterUpgraderInstallPackageResult`)
|
|
464
|
+
- without checking the result. Run by a system user that cannot delete inside
|
|
465
|
+
`mosaic/` (on a managed host, the server's master user, where the folders belong to
|
|
466
|
+
the application's own user and give the group only `r-x`), that move fails silently:
|
|
467
|
+
WP-CLI prints "Updated", `mosaic/` stays the old version, the new one sits inactive in
|
|
468
|
+
`mosaic-next/`. The package itself was the real one; licensing and the download were
|
|
469
|
+
not the problem. Run the update as the user that owns `wp-content/plugins/mosaic/`
|
|
470
|
+
(1.0.13 went in that way), and never trust the CLI line: check `Version:` in
|
|
471
|
+
`mosaic/mosaic.php` afterwards. To finish a half-done update by hand, copy
|
|
472
|
+
`mosaic-next/` to a new folder as the owning user (dirs 775, files 664), move
|
|
473
|
+
`mosaic/` aside and the copy into its place; `wp plugin list` then shows 1.0.14 active.
|
|
474
|
+
A leftover `mosaic-next/` owned by the other user has to be removed by that user.
|
|
475
|
+
|
|
476
|
+
**No data migration.** `defines.php`: `version 1.0.14`, `dataVersion 1.0.12`. Minimums
|
|
477
|
+
unchanged (PHP 8.2, WordPress 6.9).
|
|
478
|
+
|
|
479
|
+
**Re-extracted: nothing changed.** Every extractor re-run against 1.0.14 rewrote its
|
|
480
|
+
table byte for byte, and `check_tables.py` passes. The unauthenticated REST index lists
|
|
481
|
+
the same 115 routes with the same methods and arguments. Only three PHP files changed:
|
|
482
|
+
|
|
483
|
+
| file | change |
|
|
484
|
+
|---|---|
|
|
485
|
+
| `Mosaic/Database/MosaicDB.php` | readers throw on a lost connection - the empty-root fix (`references/facts.md`) |
|
|
486
|
+
| `Mosaic/Builder/FrontendRenderer.php` | a `DatabaseException` on a front-end render answers 503, `Retry-After: 30`, no-cache |
|
|
487
|
+
| `Mosaic/NodeTypes/Text/TextElementMResource.php` | the text filter uses the tag the element renders with (below) |
|
|
488
|
+
|
|
489
|
+
The rest is the editor bundles (multi-select, bulk styling, the interaction-preview
|
|
490
|
+
fix) and translations; none of it changes what is stored.
|
|
491
|
+
|
|
492
|
+
**Dynamic text with block HTML** (measured on the live site, post content holding two
|
|
493
|
+
paragraphs and a heading): a `text` node whose tag comes from its Paragraph or Heading
|
|
494
|
+
variant, with no `tagName`, used to filter its dynamic content as if it had no tag -
|
|
495
|
+
block tags allowed - and printed them inside its `<p>` / `<h2>`, which the browser
|
|
496
|
+
splits into empty paragraphs. 1.0.14 filters with the rendered tag:
|
|
497
|
+
|
|
498
|
+
| text node | renders | dynamic `post/content` comes out |
|
|
499
|
+
|---|---|---|
|
|
500
|
+
| no `tagName`, no variant | `<div>` | the block HTML, intact |
|
|
501
|
+
| `tagName: "div"` | `<div>` | the block HTML, intact |
|
|
502
|
+
| `tagName: "p"` or `"h2"` | `<p>` / `<h2>` | text only, block tags stripped, runs joined with no space |
|
|
503
|
+
| Paragraph / Heading 2 variant, no `tagName` | `<p>` / `<h2>` | the same - this is the case 1.0.14 fixed |
|
|
504
|
+
|
|
505
|
+
No empty `<p>` on the page. To show post content with its paragraphs, use a `div` text
|
|
506
|
+
(or no tag). `VAR` and `VAR_RAW` behaved the same here.
|
|
507
|
+
|
|
508
|
+
**On the live site:** the same 90 pages answered as before (88 × 200, the front page's
|
|
509
|
+
own permalink 301, checkout 302), no page's size moved more than 1.28%, 238 roots and no
|
|
510
|
+
duplicates before and after. The WP-CLI JSON export of the live theme was identical
|
|
511
|
+
before and after the upgrade apart from its version stamp; `theme_import.php` +
|
|
512
|
+
`theme_zip_compare.php` passed 22 of 22. `sync_nodes.py` on a throwaway two-page site:
|
|
513
|
+
an unchanged spec gave 0 differences, a one-line edit 1, a structural change rebuilt the
|
|
514
|
+
template, and the re-check gave 0.
|
|
515
|
+
|
|
516
|
+
**Mosaic's own ZIP (`theme_zip.py`) needed two fixes - broken since 1.0.12, not by
|
|
517
|
+
1.0.14.** 1.0.12 made the export's download and the import's upload "tick isolated":
|
|
518
|
+
the download serves the piece at the byte `offset` the client posts, and each upload
|
|
519
|
+
chunk carries `chunkIndex` and `chunkSize`; a chunk's tick never reports completion, the
|
|
520
|
+
call with `chunkIndex == totalChunks` does. Without them the export failed with
|
|
521
|
+
"Missing arguments [offset]" and the import with "Missing arguments". With the fix a
|
|
522
|
+
480-node theme went through export and test-mode import; the copy lacked 11 nodes whose
|
|
523
|
+
parent was not in that theme (a second `template-external` per master, left over from
|
|
524
|
+
older tools) and one variant, which the export itself left out. A 23,848-node theme
|
|
525
|
+
exported fine but its import died in `createTemplates` on PHP's 512M memory limit
|
|
526
|
+
(`ValidatorFractionalIndex.php`, deep in heal) and created nothing; the import flow's
|
|
527
|
+
PHP is unchanged from 1.0.12, so this is the theme's size, not 1.0.14. For a theme that
|
|
528
|
+
large use `theme_export.php` / `theme_import.php`.
|
|
529
|
+
|
|
530
|
+
Not measured: the 503 (it needs the database to go away); the editor-only features.
|
package/tools/check_numbers.py
CHANGED
|
@@ -97,8 +97,9 @@ RULES: list[tuple[str, str, str]] = [
|
|
|
97
97
|
(r"Measured on Mosaic Pro 1\.0\.10", "fixed", "version the popover / modal / trigger features were measured on (verification-record.md)"),
|
|
98
98
|
(r"1\.0\.7 -> 1\.0\.10 data upgrades", "fixed", "upgrade range driven over the milestone route (upgrading.md)"),
|
|
99
99
|
(r"re-verified on 1\.0\.11 and 1\.0\.12", "fixed", "plugin versions of the latest re-extraction"),
|
|
100
|
-
(r"\*\*Mosaic Pro 1\.0\.
|
|
101
|
-
(r"1\.0\.13
|
|
100
|
+
(r"\*\*Mosaic Pro 1\.0\.14\*\*", "fixed", "plugin version the source tables were last re-extracted from (upgrading.md)"),
|
|
101
|
+
(r"changed from 1\.0\.13", "fixed", "the previous version, whose tables 1.0.14 left unchanged"),
|
|
102
|
+
(r"editor-side features of 1\.0\.13 and 1\.0\.14", "fixed", "versions whose editor features are not measured yet"),
|
|
102
103
|
(r"WordPress 7\.1 \+ WooCommerce 11\.1", "fixed", "test site stack (verification-record.md)"),
|
|
103
104
|
(r"from 1\.0\.7 to 1\.0\.12", "fixed", "upgrade history of the test site"),
|
|
104
105
|
(r"Node sweep: 133 of 134 types on 1\.0\.11 / 1\.0\.12", "fixed", "document is the one type excluded from the sweep"),
|
|
@@ -188,7 +189,7 @@ README_RULES: list[tuple[str, str, str]] = [
|
|
|
188
189
|
(r"(?:with the skill|(?<!沒)有 skill|skill ありで|skill 사용 시) \d+/(\d+)", "fact", "eval_n"),
|
|
189
190
|
(r"(?:without it|沒有 skill|なしで|미사용 시) (\d+)/\d+", "fact", "eval_without"),
|
|
190
191
|
(r"(?:without it|沒有 skill|なしで|미사용 시) \d+/(\d+)", "fact", "eval_n"),
|
|
191
|
-
(r"Mosaic Pro (?:up to )?1\.0\.
|
|
192
|
+
(r"Mosaic Pro (?:up to )?1\.0\.1[34]|1\.0\.13 ?(?:editor|編輯器|のエディター|에디터)", "fixed", "plugin version the data was last extracted from / measured to (upgrading.md)"),
|
|
192
193
|
(r"Mosaic 1\.0\.10 ?(?:to|到|〜|~) ?1\.0\.12", "fixed", "version range the eval questions cover (evals/cases.json)"),
|
|
193
194
|
(r"Python 3", "fixed", "runtime requirement"),
|
|
194
195
|
(r"\bH1\b", "fixed", "an HTML heading level in an example prompt"),
|
package/tools/sync_nodes.py
CHANGED
|
@@ -261,9 +261,15 @@ def plan(spec_records: list[dict], spec_top: str, live_nodes: list[dict], live_t
|
|
|
261
261
|
if auto:
|
|
262
262
|
notes.append("%d node(s) Mosaic inserted itself (default children) - kept, not counted" % len(auto))
|
|
263
263
|
if only_attrs:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
# An --attr id that neither side of THIS document has is simply not here: the
|
|
265
|
+
# document is skipped, not refused (a site-wide run touches every document and the
|
|
266
|
+
# id lives in one of them). One-sided cases are already in struct above, as
|
|
267
|
+
# "only in the spec" / "only on the site", from the alignment.
|
|
268
|
+
def attrs_of(nodes):
|
|
269
|
+
return {(n.get("data") or {}).get("attrID") for n in nodes} - {None}
|
|
270
|
+
here = set(only_attrs) & (attrs_of(spec_records) | attrs_of(live))
|
|
271
|
+
if not here:
|
|
272
|
+
return True, [], [], ["no --attr node in this document - skipped"]
|
|
267
273
|
updates = []
|
|
268
274
|
if struct:
|
|
269
275
|
return False, struct, updates, notes
|
package/tools/test_mosaic.py
CHANGED
|
@@ -536,6 +536,30 @@ class SyncNodesPlan(unittest.TestCase):
|
|
|
536
536
|
_, _, only, _ = self.sn.plan(spec, "S", live, "L", {"r-body"})
|
|
537
537
|
self.assertEqual((len(all_updates), len(only)), (2, 1))
|
|
538
538
|
|
|
539
|
+
def test_attr_absent_from_a_document_skips_it(self):
|
|
540
|
+
# a site-wide --attr run: the id lives in one page; every other document has
|
|
541
|
+
# it on neither side and must be skipped, not refused (live site, 2026-11-21)
|
|
542
|
+
other = {"type": "div", "data": {"attrID": "o-root"},
|
|
543
|
+
"children": [{"type": "text", "data": {"attrID": "o-title"}, "text": "Other page"}]}
|
|
544
|
+
same, struct, updates, notes = self.sn.plan(self.flat(other, "S"), "S",
|
|
545
|
+
self.as_stored(self.flat(other, "L")), "L", {"r-body"})
|
|
546
|
+
self.assertTrue(same, struct)
|
|
547
|
+
self.assertEqual((struct, updates), ([], []))
|
|
548
|
+
self.assertTrue(any("skipped" in n for n in notes), notes)
|
|
549
|
+
# the document that has it still finds its one edit
|
|
550
|
+
live = self.as_stored(self.flat(self.rich_tree(), "L"))
|
|
551
|
+
same, struct, updates, _ = self.sn.plan(self.flat(self.rich_tree(body="B2"), "S"), "S", live, "L", {"r-body"})
|
|
552
|
+
self.assertTrue(same, struct)
|
|
553
|
+
self.assertEqual(len(updates), 1)
|
|
554
|
+
|
|
555
|
+
def test_attr_on_one_side_only_is_structural(self):
|
|
556
|
+
live = self.as_stored(self.flat(self.rich_tree(), "L"))
|
|
557
|
+
spec = self.rich_tree()
|
|
558
|
+
spec["children"].append({"type": "text", "data": {"attrID": "r-new"}, "text": "New"})
|
|
559
|
+
same, struct, _, _ = self.sn.plan(self.flat(spec, "S"), "S", live, "L", {"r-new"})
|
|
560
|
+
self.assertFalse(same)
|
|
561
|
+
self.assertTrue(any("@r-new" in s for s in struct), struct)
|
|
562
|
+
|
|
539
563
|
def test_normalisers(self):
|
|
540
564
|
self.assertEqual(self.sn.css_norm("a: 1px , 2px;b:c ;"), self.sn.css_norm("a:1px,2px;b:c"))
|
|
541
565
|
# measured on a live site: aspect-ratio 1/1 stored as 1 / 1, one declaration per line
|
package/tools/theme_zip.py
CHANGED
|
@@ -153,9 +153,17 @@ def export_theme(a, cfg):
|
|
|
153
153
|
out.write(data)
|
|
154
154
|
got["bytes"] += len(data)
|
|
155
155
|
|
|
156
|
+
def on_milestone(mid, fields, calls):
|
|
157
|
+
# Mosaic 1.0.12+ serves each piece of the archive from the byte offset the
|
|
158
|
+
# client posts ('Missing arguments [offset]' without it); 1.0.8-1.0.11 kept
|
|
159
|
+
# the cursor on the server and ignore the field.
|
|
160
|
+
if mid == "download":
|
|
161
|
+
fields["offset"] = got["bytes"]
|
|
162
|
+
return None
|
|
163
|
+
|
|
156
164
|
print("export theme %s" % theme)
|
|
157
165
|
Flow(cfg).run(url, {"themeID": theme, "simpleExport": "1" if a.simple else "0"},
|
|
158
|
-
on_file=on_file)
|
|
166
|
+
on_milestone=on_milestone, on_file=on_file)
|
|
159
167
|
out.close()
|
|
160
168
|
if got["bytes"] < 4 or open(a.out, "rb").read(2) != b"PK":
|
|
161
169
|
sys.exit("no archive came back (%d bytes)" % got["bytes"])
|
|
@@ -189,8 +197,19 @@ def import_theme(a, cfg):
|
|
|
189
197
|
def on_milestone(mid, fields, calls):
|
|
190
198
|
if mid != "upload":
|
|
191
199
|
return None
|
|
200
|
+
if calls > len(chunks) + 3:
|
|
201
|
+
sys.exit(" upload never reported completion after %d calls" % calls)
|
|
202
|
+
index = min(calls, len(chunks) - 1)
|
|
192
203
|
fields["totalChunks"] = str(len(chunks))
|
|
193
|
-
|
|
204
|
+
# Mosaic 1.0.12+ writes each chunk at chunkIndex * chunkSize and refuses a
|
|
205
|
+
# tick without both ('Missing arguments'); 1.0.8-1.0.11 appended and ignore them.
|
|
206
|
+
# Every chunk's tick answers isCompleted:false (a chunked batch never advances
|
|
207
|
+
# the milestone); the call AFTER the last chunk, chunkIndex == totalChunks,
|
|
208
|
+
# starts past the last batch and is the one that reports completion. It still
|
|
209
|
+
# needs a file part; nothing is written from it.
|
|
210
|
+
fields["chunkIndex"] = str(calls)
|
|
211
|
+
fields["chunkSize"] = str(CHUNK)
|
|
212
|
+
return ("file", os.path.basename(a.zip), chunks[index])
|
|
194
213
|
|
|
195
214
|
Flow(cfg).run(url, base, on_milestone=on_milestone)
|
|
196
215
|
print("imported. mode=%s - %s" % (
|