mosaic-headless 1.39.0 → 1.40.1

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 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-43-blueviolet?style=flat-square" alt="43 項目のセルフテスト">
21
+ <img src="https://img.shields.io/badge/self--tests-53-blueviolet?style=flat-square" alt="53 項目のセルフテスト">
22
22
  </p>
23
23
 
24
24
  <p align="center">
@@ -146,7 +146,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
146
146
  - **自動では何も実行されません。** フック、MCP サーバー、バックグラウンドプロセスはありません。Claude が `SKILL.md` に従ってコマンドを提案し、あなたが承認したときだけ実行されます。
147
147
  - **ローカルのみ、通信なし**:`tools/mo.py` は `data/` の CSV を読んで答えを表示します。`tools/test_mosaic.py` と `tools/check_numbers.py` はこのリポジトリを読みます。書き込みも通信もしません。
148
148
  - **REST API であなたの WordPress サイトへ**:`build_page.py`、`build_site.py`、`data_upgrade.py`、`theme_zip.py`、`sweep_*.py`、`probe*.py` は、設定した 1 つのサイトの Mosaic REST ルートを呼び出し、ページ、コンポーネント、テンプレート、テーマを読み書きします。接続先はそのサイトだけです。
149
- - **WP-CLI であなたのサイト上で実行**:`tools/*.php` は `wp eval-file` でサーバー上(通常はあなた自身の SSH 経由)の WordPress 内で動き、そのサイトの Mosaic テーブルとテーマデータを読み書きします。`theme_delete.php` と `prune_unbound.php` はデータを削除するため、`--apply` を付けない限り試行のみです。
149
+ - **WP-CLI であなたのサイト上で実行**:`tools/*.php` は `wp eval-file` でサーバー上(通常はあなた自身の SSH 経由)の WordPress 内で動き、そのサイトの Mosaic テーブルとテーマデータを読み書きします。`prune_unbound.php` はデータを削除するため、`apply` という語(`--apply` ではありません)を付けない限り試行のみです。`theme_delete.php` は指定したテーマを削除し、使用中のテーマは削除しません。
150
150
  - **公開ページの読み取り**:`tools/verify_*.py` と `audit_mobile.py` は同じサイトのページを Playwright(Chromium)または `urllib` で開き、配信結果と書き込んだ内容を比較します。
151
151
  - **認証情報**:サイト URL、WordPress のログイン cookie、それに対応する `wp_rest` nonce(あなた自身のサイトの管理者のもの)。`tools/mint_session.php` がサーバー上でこれらを表示します。plugin としてインストールすると Claude Code が `userConfig` として尋ね、cookie と nonce は機密扱いでプラットフォームの資格情報ストアに保存されます。環境変数(`MOSAIC_SITE_URL`、`MOSAIC_REST_COOKIE`、`MOSAIC_REST_NONCE`)や、`--config` で渡す自分の JSON ファイルも使えます。**どのツールもあなたのマシン上で認証情報を探しません。**
152
152
  - **第三者**:`sites/` の作例は Google Fonts を読み込むため、それで作ったページでは訪問者のブラウザーが Google からフォントを取得します。
@@ -159,6 +159,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
159
159
  | `from_elementor.py` / `verify_conversion.py` | Elementor から Mosaic へ変換し、内容が届いたことを確認 | ローカルファイル/あなたのサイト |
160
160
  | `verify_rwd.py`、`verify_browser.py`、`verify_*.py` | 配信ページを Chromium で読む | あなたのサイト(読み取り) |
161
161
  | `theme_zip.py`、`theme_export.php` / `theme_import.php` | テーマ全体の移行 | あなたのサイト(REST/WP-CLI) |
162
+ | `sync_nodes.py` + `list_bindings.php` | 構築済みサイトをその場で更新:変わったノードだけを既存の master のまま書き換え。`--apply` なしはプレビューのみ | あなたのサイト(REST。紐付けは WP-CLI で読む) |
162
163
  | `data_upgrade.py` | プラグイン更新後に Mosaic のデータ移行を実行 | あなたのサイト(REST) |
163
164
  | `scan_inline_tags.py` / `fix_inline_tags.py` | 1.0.11+ で HTML タグがそのまま表示されるテキストを検出・修正 | あなたのサイト(REST) |
164
165
  | `test_mosaic.py`、`check_numbers.py` | セルフテストと数値チェック | このリポジトリ |
@@ -182,7 +183,7 @@ node type、node プロパティ、スタイルプロパティ、スタイル状
182
183
  | `data/theme-zip-verification.csv` | 22 | Mosaic 自身のテーマ ZIP を往復させて比較 |
183
184
  | `data/conversion-batch.csv` | 19 | あるサイトのすべての Elementor ページを変換・構築・検査 |
184
185
 
185
- - セルフテスト:`python tools/test_mosaic.py`、オフラインの 43 項目(検索、中国語の用語、構築結果の形と拒否ルール、公開されている構築インターフェース、このリポジトリの数値とプライバシー)。
186
+ - セルフテスト:`python tools/test_mosaic.py`、オフラインの 53 項目(検索、中国語の用語、構築結果の形と拒否ルール、公開されている構築インターフェース、このリポジトリの数値とプライバシー)。
186
187
  - evals:Mosaic 1.0.10〜1.0.12 の挙動に関する 16 問。skill ありで 16/16、なしで 0/16。結果:[evals/RESULTS.md](evals/RESULTS.md)。
187
188
  - `SKILL.md`、これらの README、バッジの数値は、`tools/check_numbers.py` がデータと照合しています。詳細:[verification-record.md](references/verification-record.md)。
188
189
 
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-43-blueviolet?style=flat-square" alt="43개 자체 테스트">
21
+ <img src="https://img.shields.io/badge/self--tests-53-blueviolet?style=flat-square" alt="53개 자체 테스트">
22
22
  </p>
23
23
 
24
24
  <p align="center">
@@ -146,7 +146,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
146
146
  - **스스로 실행되는 것은 없습니다.** hook, MCP 서버, 백그라운드 프로세스가 없습니다. Claude가 `SKILL.md`에 따라 명령을 제안하고 사용자가 승인할 때만 실행됩니다.
147
147
  - **로컬 전용, 네트워크 없음**: `tools/mo.py`는 `data/`의 CSV를 읽어 답을 출력합니다. `tools/test_mosaic.py`와 `tools/check_numbers.py`는 이 저장소를 읽습니다. 아무것도 쓰거나 연결하지 않습니다.
148
148
  - **REST API로 사용자의 WordPress 사이트에**: `build_page.py`, `build_site.py`, `data_upgrade.py`, `theme_zip.py`, `sweep_*.py`, `probe*.py`는 설정한 단 하나의 사이트의 Mosaic REST 경로를 호출해 페이지, 컴포넌트, 템플릿, 테마를 읽고 씁니다. 그 사이트에만 연결합니다.
149
- - **WP-CLI로 사용자의 사이트에서 실행**: `tools/*.php`는 `wp eval-file`로 서버(보통 사용자 자신의 SSH)의 WordPress 안에서 실행되어 그 사이트의 Mosaic 테이블과 테마 데이터를 읽고 씁니다. `theme_delete.php`와 `prune_unbound.php`는 데이터를 삭제하므로 `--apply` 없이는 시험 실행만 합니다.
149
+ - **WP-CLI로 사용자의 사이트에서 실행**: `tools/*.php`는 `wp eval-file`로 서버(보통 사용자 자신의 SSH)의 WordPress 안에서 실행되어 그 사이트의 Mosaic 테이블과 테마 데이터를 읽고 씁니다. `prune_unbound.php`는 데이터를 삭제하므로 `apply`라는 단어(`--apply`가 아님) 없이는 시험 실행만 합니다. `theme_delete.php`는 지정한 테마를 삭제하며, 사용 중인 테마는 삭제하지 않습니다.
150
150
  - **공개 페이지 읽기**: `tools/verify_*.py`와 `audit_mobile.py`는 같은 사이트의 페이지를 Playwright(Chromium) 또는 `urllib`로 열어, 전달된 결과와 기록한 내용을 비교합니다.
151
151
  - **자격 증명**: 사이트 URL, WordPress 로그인 cookie, 그에 맞는 `wp_rest` nonce(사용자 자신의 사이트 관리자). `tools/mint_session.php`가 서버에서 이 값들을 출력합니다. plugin으로 설치하면 Claude Code가 `userConfig`로 물어보며, cookie와 nonce는 민감 정보로 표시되어 플랫폼의 자격 증명 저장소에 보관됩니다. 환경 변수(`MOSAIC_SITE_URL`, `MOSAIC_REST_COOKIE`, `MOSAIC_REST_NONCE`)나 `--config`로 넘기는 자신의 JSON 파일도 쓸 수 있습니다. **어떤 도구도 사용자의 컴퓨터에서 자격 증명을 찾지 않습니다.**
152
152
  - **제3자**: `sites/`의 예제는 Google Fonts를 불러오므로, 그것으로 만든 페이지에서는 방문자의 브라우저가 Google에서 글꼴을 받아 옵니다.
@@ -159,6 +159,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
159
159
  | `from_elementor.py` / `verify_conversion.py` | Elementor를 Mosaic로 변환하고 내용이 옮겨졌는지 확인 | 로컬 파일/사용자의 사이트 |
160
160
  | `verify_rwd.py`, `verify_browser.py`, `verify_*.py` | 전달된 페이지를 Chromium으로 읽기 | 사용자의 사이트(읽기) |
161
161
  | `theme_zip.py`, `theme_export.php` / `theme_import.php` | 테마 전체 이전 | 사용자의 사이트(REST/WP-CLI) |
162
+ | `sync_nodes.py` + `list_bindings.php` | 구축된 사이트를 제자리에서 갱신: 바뀐 노드만 기존 master 그대로 수정. `--apply` 없이는 미리보기만 | 사용자의 사이트(REST. 연결 관계는 WP-CLI로 읽기) |
162
163
  | `data_upgrade.py` | 플러그인 업데이트 후 Mosaic 데이터 마이그레이션 실행 | 사용자의 사이트(REST) |
163
164
  | `scan_inline_tags.py` / `fix_inline_tags.py` | 1.0.11+에서 HTML 태그가 그대로 보이는 텍스트를 찾아 수정 | 사용자의 사이트(REST) |
164
165
  | `test_mosaic.py`, `check_numbers.py` | 자체 테스트와 숫자 검사 | 이 저장소 |
@@ -182,7 +183,7 @@ node type, node 속성, 스타일 속성, 스타일 상태는 플러그인 소
182
183
  | `data/theme-zip-verification.csv` | 22 | Mosaic 자체 테마 ZIP을 왕복시켜 비교 |
183
184
  | `data/conversion-batch.csv` | 19 | 한 사이트의 모든 Elementor 페이지를 변환, 구축, 검사 |
184
185
 
185
- - 자체 테스트: `python tools/test_mosaic.py`, 오프라인 테스트 43개(조회, 중국어 용어, 구축 결과의 형태와 거부 규칙, 공개된 구축 인터페이스, 이 저장소의 숫자와 개인정보).
186
+ - 자체 테스트: `python tools/test_mosaic.py`, 오프라인 테스트 53개(조회, 중국어 용어, 구축 결과의 형태와 거부 규칙, 공개된 구축 인터페이스, 이 저장소의 숫자와 개인정보).
186
187
  - evals: Mosaic 1.0.10~1.0.12 동작에 관한 16문항. skill 사용 시 16/16, 미사용 시 0/16. 결과: [evals/RESULTS.md](evals/RESULTS.md).
187
188
  - `SKILL.md`, 이 README들, 배지의 숫자는 `tools/check_numbers.py`가 데이터와 대조합니다. 자세한 내용: [verification-record.md](references/verification-record.md).
188
189
 
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-43-blueviolet?style=flat-square" alt="43 self-tests">
21
+ <img src="https://img.shields.io/badge/self--tests-53-blueviolet?style=flat-square" alt="53 self-tests">
22
22
  </p>
23
23
 
24
24
  <p align="center">
@@ -146,7 +146,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
146
146
  - **Nothing runs on its own.** The plugin has no hooks, no MCP servers and no background processes. Tools run only when Claude follows `SKILL.md` and you approve the command.
147
147
  - **Offline, local only**: `tools/mo.py` reads the CSV files in `data/` and prints answers. `tools/test_mosaic.py` and `tools/check_numbers.py` read the repository. They write nothing and contact nothing.
148
148
  - **Your WordPress site, over its REST API**: `build_page.py`, `build_site.py`, `data_upgrade.py`, `theme_zip.py`, the `sweep_*.py` and `probe*.py` tools call Mosaic's REST routes on the one site you configure, to read and write pages, components, templates and themes. They contact only that site.
149
- - **Your WordPress site, through WP-CLI**: the `tools/*.php` scripts run inside your WordPress with `wp eval-file`, on the server (usually over your own SSH). They read and write Mosaic's tables and theme data on that site. `theme_delete.php` and `prune_unbound.php` delete data and run as a dry run unless told `--apply`.
149
+ - **Your WordPress site, through WP-CLI**: the `tools/*.php` scripts run inside your WordPress with `wp eval-file`, on the server (usually over your own SSH). They read and write Mosaic's tables and theme data on that site. `prune_unbound.php` deletes data and runs as a dry run unless given the bare word `apply`; `theme_delete.php` deletes the theme you name and refuses the live one.
150
150
  - **Reading your public pages**: `tools/verify_*.py` and `audit_mobile.py` open pages of that same site with Playwright (Chromium) or `urllib` and compare what was delivered with what was written.
151
151
  - **Credentials**: a site URL, a WordPress logged-in cookie and the matching `wp_rest` nonce, for an administrator on your own site. `tools/mint_session.php` prints them on the server. Installed as a plugin, Claude Code asks for them as `userConfig` values; the cookie and nonce are marked sensitive and kept in the platform's credential store. They can also come from environment variables (`MOSAIC_SITE_URL`, `MOSAIC_REST_COOKIE`, `MOSAIC_REST_NONCE`) or a JSON file you pass with `--config`. **No tool looks for credentials on your machine.**
152
152
  - **Third parties**: the worked example in `sites/` loads Google Fonts, so pages built from it make visitors' browsers fetch fonts from Google.
@@ -159,6 +159,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
159
159
  | `from_elementor.py` / `verify_conversion.py` | Elementor to Mosaic, and proof the content arrived | local file / your site |
160
160
  | `verify_rwd.py`, `verify_browser.py`, `verify_*.py` | read the delivered page in Chromium | your site (read) |
161
161
  | `theme_zip.py`, `theme_export.php` / `theme_import.php` | move a whole theme | your site (REST / WP-CLI) |
162
+ | `sync_nodes.py` + `list_bindings.php` | update a built site in place: only changed nodes, on the masters it already has; dry run unless `--apply` | your site (REST; bindings read with WP-CLI) |
162
163
  | `data_upgrade.py` | run Mosaic's data migration after a plugin update | your site (REST) |
163
164
  | `scan_inline_tags.py` / `fix_inline_tags.py` | find and fix text that prints HTML tags on 1.0.11+ | your site (REST) |
164
165
  | `test_mosaic.py`, `check_numbers.py` | self-test and number check | this repository |
@@ -182,7 +183,7 @@ Node types, node properties, style properties and style states are extracted fro
182
183
  | `data/theme-zip-verification.csv` | 22 | Mosaic's own theme ZIP round-tripped and compared |
183
184
  | `data/conversion-batch.csv` | 19 | every Elementor page of a site converted, built and checked |
184
185
 
185
- - Self-test: `python tools/test_mosaic.py`, 43 offline tests (lookups, Chinese terms, the build output's shape and refusals, the public build interface, this repository's numbers and privacy).
186
+ - Self-test: `python tools/test_mosaic.py`, 53 offline tests (lookups, Chinese terms, the build output's shape and refusals, the public build interface, this repository's numbers and privacy).
186
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).
187
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).
188
189
 
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-43-blueviolet?style=flat-square" alt="43 項自我測試">
21
+ <img src="https://img.shields.io/badge/self--tests-53-blueviolet?style=flat-square" alt="53 項自我測試">
22
22
  </p>
23
23
 
24
24
  <p align="center">
@@ -146,7 +146,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
146
146
  - **不會自己執行任何東西。** 沒有 hook、沒有 MCP server、沒有背景程序。只有 Claude 依照 `SKILL.md` 提出指令、你同意之後才會執行。
147
147
  - **只在本機、不連網**:`tools/mo.py` 讀 `data/` 裡的 CSV 並印出答案;`tools/test_mosaic.py`、`tools/check_numbers.py` 讀這個 repo。都不寫入、不連線。
148
148
  - **透過 REST API 連你的 WordPress 網站**:`build_page.py`、`build_site.py`、`data_upgrade.py`、`theme_zip.py`,以及 `sweep_*.py`、`probe*.py`,會呼叫你設定的那一個網站的 Mosaic REST 路由,讀寫頁面、元件、範本和佈景。只連那個網站。
149
- - **透過 WP-CLI 在你的網站上執行**:`tools/*.php` 用 `wp eval-file` 在伺服器上(通常是你自己的 SSH)跑在你的 WordPress 裡,讀寫該網站的 Mosaic 資料表和佈景資料。`theme_delete.php`、`prune_unbound.php` 會刪資料,沒加 `--apply` 時只做試跑。
149
+ - **透過 WP-CLI 在你的網站上執行**:`tools/*.php` 用 `wp eval-file` 在伺服器上(通常是你自己的 SSH)跑在你的 WordPress 裡,讀寫該網站的 Mosaic 資料表和佈景資料。`prune_unbound.php` 會刪資料,沒加 `apply` 這個字(不是 `--apply`)時只做試跑;`theme_delete.php` 會刪掉你指定的佈景,但不會刪使用中的佈景。
150
150
  - **讀你的公開頁面**:`tools/verify_*.py`、`audit_mobile.py` 用 Playwright(Chromium)或 `urllib` 開同一個網站的頁面,比對送出的結果和寫入的內容。
151
151
  - **帳密**:網站網址、WordPress 登入 cookie 和對應的 `wp_rest` nonce,必須是你自己網站的管理員。`tools/mint_session.php` 在伺服器上印出這三個值。以 plugin 安裝時,Claude Code 會用 `userConfig` 詢問;cookie 和 nonce 標為敏感資料,存在系統的憑證儲存區。也可以用環境變數(`MOSAIC_SITE_URL`、`MOSAIC_REST_COOKIE`、`MOSAIC_REST_NONCE`),或用 `--config` 傳入你自己的 JSON 檔。**任何工具都不會在你的電腦上找帳密。**
152
152
  - **第三方**:`sites/` 裡的示範範例會載入 Google Fonts,所以用它建出來的頁面,訪客的瀏覽器會向 Google 取字型。
@@ -159,6 +159,7 @@ English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic pad
159
159
  | `from_elementor.py` / `verify_conversion.py` | Elementor 轉 Mosaic,並證明內容都搬過來 | 本機檔案/你的網站 |
160
160
  | `verify_rwd.py`、`verify_browser.py`、`verify_*.py` | 用 Chromium 讀實際送出的頁面 | 你的網站(唯讀) |
161
161
  | `theme_zip.py`、`theme_export.php` / `theme_import.php` | 搬整個佈景 | 你的網站(REST/WP-CLI) |
162
+ | `sync_nodes.py` + `list_bindings.php` | 就地更新已建好的網站:只改有變的節點,沿用原本的 master;沒加 `--apply` 只預覽 | 你的網站(REST;綁定關係用 WP-CLI 讀) |
162
163
  | `data_upgrade.py` | 外掛更新後執行 Mosaic 的資料遷移 | 你的網站(REST) |
163
164
  | `scan_inline_tags.py` / `fix_inline_tags.py` | 找出並修正 1.0.11+ 會把 HTML 標籤印出來的文字 | 你的網站(REST) |
164
165
  | `test_mosaic.py`、`check_numbers.py` | 自我測試、數字核對 | 這個 repo |
@@ -182,7 +183,7 @@ node type、node 屬性、樣式屬性、樣式狀態從外掛原始碼抽出(
182
183
  | `data/theme-zip-verification.csv` | 22 | Mosaic 自己的佈景 ZIP 匯出再匯入並比對 |
183
184
  | `data/conversion-batch.csv` | 19 | 一個網站的每個 Elementor 頁面都轉換、建置並檢查 |
184
185
 
185
- - 自我測試:`python tools/test_mosaic.py`,43 項離線測試(查詢、中文用語、建頁產出的結構與拒收規則、對外的建頁介面、本 repo 的數字與隱私)。
186
+ - 自我測試:`python tools/test_mosaic.py`,53 項離線測試(查詢、中文用語、建頁產出的結構與拒收規則、對外的建頁介面、本 repo 的數字與隱私)。
186
187
  - evals:16 題 Mosaic 1.0.10 到 1.0.12 的行為題;有 skill 16/16,沒有 skill 0/16。結果見 [evals/RESULTS.md](evals/RESULTS.md)。
187
188
  - `SKILL.md`、這幾份 README 和徽章上的數字,都由 `tools/check_numbers.py` 對照資料核對。細節見 [verification-record.md](references/verification-record.md)。
188
189
 
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.39.0"
9
+ version: "1.40.1"
10
10
  homepage: "https://github.com/Moksa1123/mosaic-headless"
11
11
  ---
12
12
 
@@ -55,7 +55,8 @@ is it safe / does it render".
55
55
  |---|---|---|
56
56
  | `tools/mo.py` | query the measured surface - **the front door**; reads `data/*.csv` only | stdlib |
57
57
  | `tools/build_page.py` | commit one page spec through the verified write path; refuses unsafe types, bad placement, out-of-enum values | stdlib |
58
- | `tools/build_site.py` | a whole site: one master with the shell, one document per page, components | stdlib |
58
+ | `tools/build_site.py` | a whole site: one master with the shell, one document per page, components. Makes a NEW master every run: never build only some pages | stdlib |
59
+ | `tools/sync_nodes.py` | update a built site in place: only the nodes that changed, on the masters it already has; dry run unless `--apply` (bindings from `list_bindings.php`) | stdlib |
59
60
  | `tools/interactions.py` | library: every interaction shape the editor stores (`tween`, `on`, `mode_switch`...) | stdlib |
60
61
  | `tools/from_elementor.py` | Elementor `_elementor_data` -> Mosaic spec, unconverted elements named | stdlib |
61
62
  | `tools/theme_zip.py`, `theme_export.php` / `theme_import.php` | move a whole theme | stdlib / WP-CLI |
@@ -132,6 +133,7 @@ fits, and say in the spec which native path was checked.
132
133
  |---|---|---|
133
134
  | **Build a page** | `mo.py skeleton`; `mo.py check <every type>`; `mo.py params` / `css` for every key; `build_page.py --spec page.json` | build exits 0, then the Verify rows for a page pass |
134
135
  | **Build a whole site** | `build_site.py --site site.json`; rebuild pages that share components **in the same run** | every page `OK`, no `STALE CACHE` line; `verify_navigation.py` exit 0 |
136
+ | **Change a built site** (a header line, a page's text or structure) | `wp eval-file tools/list_bindings.php <themeID>` → `sync_nodes.py --site --bindings` (dry run; it must list only what you changed - narrow it with `--attr <attrID>`) → `--apply`. Not `build_site.py`: it makes a new master, and building some pages splits the site | sync prints `verified` per document, exit 0; a rerun shows nothing to do |
135
137
  | **Change a style** | `mo.py css <property>` → style key; `mo.py states` for a state; tokens via `{"token": "--x"}` in a `theme` block, not per-node values | `verify_rwd.py` and `verify_browser.py` exit 0 |
136
138
  | **Responsive** | `_t` / `_m` keys only ([responsive.md](references/responsive.md)); a width copied from Elementor needs `maxWidth: "100%"` | `verify_rwd.py`, `audit_mobile.py --widths 390,768` exit 0 |
137
139
  | **Popup / drawer / tour** | `modal` (blocking) or `popover` (non-blocking); shorthand triggers only `pageLoad` / `exitIntent` / `scrollDepth`; a tour advances on `afterClose` | `verify_dialog.py` / `verify_popovers.py` exit 0 |
@@ -143,7 +145,7 @@ fits, and say in the spec which native path was checked.
143
145
  | **Plugin upgrade** | `data_upgrade.py`; re-extract (`extract_*.py`, `check_tables.py`); re-run the verifiers | [upgrading.md](references/upgrading.md) checklist; `scan_inline_tags.py` finds nothing |
144
146
  | **Elementor → Mosaic** | `from_elementor.py --strict`; build; check | `verify_conversion.py` exit 0 |
145
147
  | **Rebuild a template** | build and validate the new tree first, replace the old nodes last - never clear first ([standard-fixes.md](references/standard-fixes.md)) | the page never served blank; delivered-page checks pass |
146
- | **WooCommerce product page** | the lightbox toolbar fix and a sticky column scoped to its own container ([standard-fixes.md](references/standard-fixes.md)) | `verify_lightbox.py` and `verify_sticky.py` exit 0 |
148
+ | **WooCommerce store on Mosaic** | the standard kit: theme support, scripts, notices, gallery, lightbox, sticky summary, archives, tap targets, page cache ([mosaic-woo.md](references/mosaic-woo.md)) | its checklist; `verify_lightbox.py`, `verify_sticky.py`, `audit_mobile.py` exit 0 |
147
149
  | **Old site shows literal tags** (1.0.11+) | `scan_inline_tags.py` (read only) → `fix_inline_tags.py`, dry run then `--apply` | a second scan finds nothing |
148
150
 
149
151
  Before writing anything, read [data-model.md](references/data-model.md) (where a
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "metadata": {
23
23
  "author": "moksa (https://moksaweb.com)",
24
- "version": "1.39.0",
24
+ "version": "1.40.1",
25
25
  "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
26
  }
27
27
  },
@@ -24,7 +24,7 @@
24
24
  "user-invocable": true,
25
25
  "metadata": {
26
26
  "author": "moksa (https://moksaweb.com)",
27
- "version": "1.39.0",
27
+ "version": "1.40.1",
28
28
  "homepage": "https://github.com/Moksa1123/mosaic-headless"
29
29
  }
30
30
  },
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "metadata": {
23
23
  "author": "moksa (https://moksaweb.com)",
24
- "version": "1.39.0",
24
+ "version": "1.40.1",
25
25
  "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
26
  }
27
27
  },
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "metadata": {
23
23
  "author": "moksa (https://moksaweb.com)",
24
- "version": "1.39.0",
24
+ "version": "1.40.1",
25
25
  "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
26
  }
27
27
  },
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "metadata": {
23
23
  "author": "moksa (https://moksaweb.com)",
24
- "version": "1.39.0",
24
+ "version": "1.40.1",
25
25
  "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
26
  }
27
27
  },
package/data/pending.csv CHANGED
@@ -10,4 +10,6 @@ date,question,why_not_found,asked_by,status
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
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
- 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)",open
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
+ 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
+ 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mosaic-headless",
3
- "version": "1.39.0",
3
+ "version": "1.40.1",
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",
@@ -63,7 +63,7 @@
63
63
  "install-skill": "node scripts/install.mjs",
64
64
  "check": "node scripts/check-release.mjs",
65
65
  "preversion": "npm run check",
66
- "version": "node scripts/sync-version.mjs && git add SKILL.md assets/templates/platforms .claude-plugin/plugin.json",
66
+ "version": "node scripts/sync-version.mjs && python scripts/build_directory.py && git add SKILL.md assets/templates/platforms .claude-plugin/plugin.json directory-plugin",
67
67
  "postversion": "git push && git push --tags",
68
68
  "prepublishOnly": "npm run check"
69
69
  }
@@ -133,3 +133,11 @@ child rather than nothing.
133
133
  registering it: every non-underscore `post_meta` key present on the post type is
134
134
  exposed as `meta_<key>` (`MetaFieldUnknown`, a plain string). A site that stores
135
135
  its data with `update_post_meta()` and nothing else is already readable.
136
+
137
+ ## A menu item's ACF image
138
+
139
+ ACF fields on menu items resolve in the `menu` namespace like a post's do: an image
140
+ field's ID is `@VAR('menu/meta_<field>__id')`, and `@attachment(<that id>,
141
+ 'medium_large')` (or any registered size) gives a thumbnail URL for an `image` node.
142
+ Measured on a live 1.0.13 site (2026-11-21); run `tools/list_fields.php` on the post
143
+ to see the names a site really registers.
@@ -45,6 +45,8 @@ Moved out of SKILL.md on 2026-11-16 (skill SOP pass). `scripts/check-release.mjs
45
45
  17. `references/standard-fixes.md` — problems that kept coming back on real sites and
46
46
  the one fix each: the WooCommerce lightbox toolbar, a sticky column riding over the
47
47
  page, rebuilding a template without serving a blank page; each with its check.
48
+ 18. `references/mosaic-woo.md` — the standard kit for a WooCommerce store on Mosaic
49
+ (WooCommerce treats Mosaic as a block theme) and its checklist.
48
50
 
49
51
  ## The data files
50
52
 
@@ -143,7 +143,7 @@ Platform and rendered-tag facts, each measured. Moved out of SKILL.md on 2026-11
143
143
  in templates when nginx closed the upstream at five minutes. Pruned to the bound
144
144
  set (masters not reached from a bound template, their templates, their nodes)
145
145
  the same import took under two minutes and compared 22 of 22. Prune before you
146
- export - `wp eval-file tools/prune_unbound.php <themeID>` counts, `--apply` deletes; `wp_mosaic_template_assigns.parentID` -> template -> `masterID` is the
146
+ export - `wp eval-file tools/prune_unbound.php <themeID>` counts, `... <themeID> apply` deletes (a bare word: WP-CLI eats `--apply`); `wp_mosaic_template_assigns.parentID` -> template -> `masterID` is the
147
147
  bound set, plus any `assign="auto"` template. Then sweep ORPHANS: a probe run
148
148
  that half-failed, or a prune that removed a parent, leaves nodes whose parent id
149
149
  points at nothing. The export skips them, so the copy is short by exactly those
@@ -341,9 +341,10 @@ against the 1.0.13 source or this skill's tables; the rest is that site's measur
341
341
  `flexSizing`, `flexBasis`; `build_page.py` refuses `flex`). `display: list-item` was
342
342
  refused on that site, and `list-item` renders `display:flex` with no bullet: put
343
343
  either in `customDeclarations`.
344
- - **`modal-window` arrived with 32px of padding** on that site. The 1.0.13 base
345
- stylesheet gives `.m-modal-window` none, so it comes from the node's default style,
346
- not from the stylesheet: set `padding*` when the window should be flush.
344
+ - **`modal-window` arrives with `padding: 32px`, `border-radius: 8px`, a 384px
345
+ `max-width` and a shadow** - all in the 1.0.13 stylesheet rule that ends
346
+ `.m-modal-window)` (`row-gap: 24px` too). Set `padding*`, `borderRadius` and
347
+ `maxWidth` when the window should be flush, square or wide.
347
348
  - **The accordion does not animate unless told to.** The panel jumps from 0 to full
348
349
  height; `data.animation: "slide"` animates it (`accordion`'s `animation` takes
349
350
  `none|slide`, `data/node-properties.csv`).
@@ -374,3 +375,92 @@ against the 1.0.13 source or this skill's tables; the rest is that site's measur
374
375
  hard-codes an old thumbnail URL breaks; pass `--skip-delete`. Files WP-CLI writes
375
376
  belong to the user that ran it: reset the owner and permissions afterwards. This is
376
377
  WordPress, not Mosaic, and matters because Mosaic pages often carry thumbnail URLs.
378
+ - **A modal focuses an input, or else its window.** On open, 1.0.13's `Modal.js`
379
+ looks at the first focusable element: an `input` (not a button type), `select`,
380
+ `textarea` or `contenteditable` gets focus, anything else does not and the
381
+ `.m-modal-window` is focused instead; an `autofocus` attribute is ignored (the
382
+ two selector lists are in `Modal.js`; the behaviour measured on that site). In a
383
+ form dialog, put the input first.
384
+ - **A dropdown's hover mode works for a mouse only.** `Dropdown.js` opens on hover
385
+ only when `pointerType === "mouse"`; with touch or a pen it is tap to open, tap
386
+ to close (read in the 1.0.13 source). Test a hover menu on a touch device too.
387
+ - **`dropdown-wrapper-wide` centres its content**, so a panel taller than the
388
+ screen is cut off at both ends; set `justifyContent: flex-start` on the panel
389
+ (that site; the wrapper's `grid ... justify-content:center` is in the 1.0.13
390
+ stylesheet).
391
+ - **An interaction's `translateX` adds to the node's own CSS transform** - one
392
+ position came out 260px off. Pre-position with `left`/`top` and leave `transform`
393
+ to the interaction (references/interactions.md).
394
+ - **A taxonomy loop ignores `offset`**: a product-brand loop started from the first
395
+ term whatever the offset (that site; not in this skill's sweep, so treat it as
396
+ NO_EFFECT until measured otherwise).
397
+ - **A menu item's ACF image gives its ID**: `@VAR('menu/meta_<field>__id')`, and
398
+ `@attachment(<that id>, 'medium_large')` turns it into a thumbnail - measured on
399
+ that site (references/custom-fields.md).
400
+ - **Rendering time grows with the node count, and Mosaic has no page-output cache**
401
+ (its `Cache` stores Google fonts only). On that site a header and footer of ~860
402
+ nodes gave a 3.5-4.7s TTFB where the same host served a classic theme in
403
+ 1.0-1.4s, and one page spent 3,364ms rendering with only 32 SQL queries. Keep the
404
+ shell's node count down, and put a full-page cache in front of any WooCommerce
405
+ site built on Mosaic.
406
+
407
+ ## Measured on a third site (Mosaic 1.0.13, 2026-11-21)
408
+
409
+ From another site's test install, handed to this skill; each line says what was
410
+ also checked here against the 1.0.13 source.
411
+
412
+ - **What Mosaic stores is not byte-equal to what was sent, even when nothing
413
+ changed** - which is why comparing a spec to a live site needs normalising
414
+ (`tools/sync_nodes.py` does it). After a fresh rebuild with an unchanged spec, a
415
+ live 1.0.13 site showed 1,588 node "differences" in 21 documents. That site's own
416
+ breakdown (2026-11-21; one node can have several):
417
+ - `customDeclarations` re-spaced AND re-lined - a space after `:` and `,`, a newline
418
+ between declarations: 1,560 nodes, 1,107 with nothing else;
419
+ - `rgb()` / `rgba()` values re-spaced (`rgba(0, 0, 0, 0)` for `rgba(0,0,0,0)`):
420
+ 259 nodes (`color`, `backgroundColor`);
421
+ - an icon's `svg` rewritten: attributes reordered (`xmlns` first) and `width` /
422
+ `height` added to the root `<svg>` (from its viewBox): 281 nodes;
423
+ - keys the type does not keep, stored as null: `attributes` on button / menu-link
424
+ (11), a form label's `forInput` (5), tabs-menu's `accessibleLabel` (1);
425
+ - interactions stored without each interaction's `uuid` and without
426
+ `clickOptions.ID` (5), and a `settings.target.uuid` that names the node id the
427
+ build minted;
428
+ - and, not on that site because its spec used none, `build_page.py` itself: every
429
+ `boxShadow`, `transition` and `transform` list item gets a new random `uuid` on
430
+ every run - compare with those renamed, never by value;
431
+ - children heal() inserts. **Auto-inserted or really extra:** a live node the spec
432
+ does not have is Mosaic's own when it has no `attrID` and its type is a default
433
+ child of its parent's type (`data/default-children.csv`, "default" or "heal" -
434
+ e.g. an empty `accordion-content` gets `text > wysiwyg-text`); anything else -
435
+ a node with an `attrID`, or a type the parent does not insert - is really
436
+ extra, and means the site was edited outside the spec.
437
+ - **Every `srcset` and `sizes` entry needs its own `uuid`, or the whole set is dropped
438
+ in silence.** The commit succeeds and the image renders without them. Shapes:
439
+ `srcset: [{"image": "wp-attachment://image/<id>/<size>/<path>", "widthOrDpr": "300w", "uuid": "<uuid>"}]`,
440
+ `sizes: [{"query": "(max-width: 767px)", "slotWidth": "30vw", "uuid": "<uuid>"}, {"query": "", "slotWidth": "260px", "uuid": "<uuid>"}]`.
441
+ Confirmed in source: `ValidatorImageAttachment::createValidatorImageSourceRecord()`
442
+ and `createValidatorImageSizeRecord()` both require `uuid` (`ValidatorUUID`).
443
+ - **`attributes` (and so an `aria-label` written there) is not printed** on `button`
444
+ or `menu-link` (that site); this skill's own node-property sweep, which probed it on
445
+ a `div`, has `attributes` as `NO_EFFECT` too. An icon-only button needs visually hidden text inside it as its name.
446
+ - **`menu-link` arrives with `padding: 4px 8px`** (`.m-menu-link` in the 1.0.13
447
+ stylesheet), so a menu-link used as a plain link or a card wrapper needs its
448
+ padding set to 0.
449
+ - **`tabs-menu` has a light grey background, `#e8e8e8`** (`.m-tabs-menu` in the 1.0.13
450
+ stylesheet): on a dark mode its tab labels can disappear. Give it a background
451
+ from the mode's tokens.
452
+ - **The accordion's open state: one state, two names.** In the data it is the style
453
+ state `___accordion-item--opened`; on the page it is the class
454
+ `m-accordion-item--opened` on the item. Its selector template in 1.0.13 is
455
+ `&.m-accordion-item--opened, .m-accordion-item:where(.m-accordion-item--opened) > &,
456
+ .m-accordion-item:where(.m-accordion-item--opened) > .m-accordion-title &` - so the
457
+ state can be set on the item, on any direct child of the item, and on anything
458
+ inside its title (a "+" icon that turns into "x"), natively. A child deeper in the
459
+ panel, outside the title, needs outside CSS on the class. Source-documented; this
460
+ skill's state sweep had no host for it, so it is not browser-measured here.
461
+ - **`accordion` arrives with `grid-gap: 24px`** between items (`.m-accordion` in the
462
+ 1.0.13 stylesheet). A title that also has vertical padding leaves a visible extra
463
+ space under a divider line: set `rowGap` on the accordion.
464
+ - The `modal` open state is `:popover-open`, not `dialog[open]` (already above, under
465
+ 1.0.10), and there is no `flex` style key (above, second site): both confirmed again
466
+ on this site.
@@ -277,3 +277,10 @@ a `pageLoad` cooldown kept it shut on reload.
277
277
  `setCookie` writes a session cookie, gone when the browser closes. With a class as the
278
278
  trigger and an empty target, the action hits the element that fired; a class used as
279
279
  the TARGET hits every element carrying it on the page.
280
+
281
+ ## A transform tween adds to the node's own transform
282
+
283
+ An interaction that animates `translateX` (or any transform) composes with the
284
+ transform the node already has from its style - it does not replace it. One
285
+ pre-positioned element came out 260px off on a live 1.0.13 site. Position the
286
+ element with `left` / `top` (or margins), and leave `transform` to the interaction.
@@ -0,0 +1,113 @@
1
+ # Mosaic + WooCommerce: the standard kit and checklist
2
+
3
+ What a WooCommerce store built on Mosaic needs beyond the pages themselves. Collected
4
+ from a live store's conversion (Mosaic 1.0.13, WooCommerce 11.3, 2026-11-20/21):
5
+ each item failed there before its fix and passed after. Snippets marked *(that
6
+ site)* are that site's fix, not re-run here; adapt them to your theme's own hooks.
7
+ WooCommerce and WordPress hooks named here are their public APIs.
8
+
9
+ ## Why: WooCommerce treats Mosaic like a block theme
10
+
11
+ Mosaic renders the page itself, so WooCommerce takes the block-theme path and leaves
12
+ out pieces a classic theme would get. Four symptoms follow:
13
+
14
+ 1. **No gallery zoom, lightbox or slider.** Declare them:
15
+
16
+ ```php
17
+ add_action('after_setup_theme', function () {
18
+ add_theme_support('wc-product-gallery-zoom');
19
+ add_theme_support('wc-product-gallery-lightbox');
20
+ add_theme_support('wc-product-gallery-slider');
21
+ });
22
+ ```
23
+
24
+ 2. **`wc-single-product` is dequeued** by WooCommerce's block-template controller
25
+ (`dequeue_legacy_scripts`, priority 20), so the gallery and tabs do nothing.
26
+ Enqueue it again later:
27
+
28
+ ```php
29
+ add_action('wp_enqueue_scripts', function () {
30
+ if (function_exists('is_product') && is_product()) {
31
+ wp_enqueue_script('wc-single-product');
32
+ }
33
+ }, 30);
34
+ ```
35
+
36
+ 3. **Block-style notices take focus.** WooCommerce moves focus to
37
+ `.wc-block-components-notice-banner`, which then shows a focus ring on a box that
38
+ is not a control, and its "View cart" link arrives unstyled. *(that site)* Drop
39
+ the ring for programmatic focus only - keep it for keyboard users - and style the
40
+ link:
41
+
42
+ ```css
43
+ .wc-block-components-notice-banner:focus:not(:focus-visible){outline:none}
44
+ ```
45
+
46
+ 4. **The gallery jumps as it loads** (a phone CLS of 0.27 there). *(that site)*
47
+ Reserve the thumbnail row's height before the slider initialises - a container
48
+ query on the gallery sizes the row from the gallery's own width - and re-measure
49
+ with a CLS check.
50
+
51
+ ## The product page
52
+
53
+ | Item | Fix | Check |
54
+ |---|---|---|
55
+ | Lightbox close button not in the corner (WooCommerce's skin, 1024px and below) | the one-line preloader rule in [standard-fixes.md](standard-fixes.md) | `tools/verify_lightbox.py --url <product>` exit 0 |
56
+ | Sticky summary riding over the tabs and related products | give it its own container ([standard-fixes.md](standard-fixes.md)) | `tools/verify_sticky.py` exit 0 |
57
+ | Gallery script missing | item 2 above | the gallery slides and zooms |
58
+
59
+ ## Archives
60
+
61
+ - **"Category:" in front of every archive title** comes from WordPress's
62
+ `get_the_archive_title()` prefix. On a Mosaic site:
63
+
64
+ ```php
65
+ add_filter('get_the_archive_title_prefix', '__return_empty_string');
66
+ ```
67
+
68
+ ## A site converted from Elementor
69
+
70
+ *(that site)* Two leftovers keep running after the pages are Mosaic:
71
+
72
+ - **Elementor Pro popups still print** on Mosaic pages (its popup module prints them
73
+ in the footer). Remove that output on Mosaic-rendered pages, or retire the popups
74
+ and rebuild them as Mosaic `modal` / `popover` nodes
75
+ ([dialog-and-triggers.md](dialog-and-triggers.md)).
76
+ - **`elementor-frontend` still loads** on pages that have no Elementor content, and
77
+ logs errors to the console. Dequeue its script and style where the page has no
78
+ Elementor data.
79
+
80
+ ## Phones
81
+
82
+ - **Tap targets of at least 40×40px** (WCAG's AAA level asks 44). An icon-only
83
+ header button was 28px wide there: give icon buttons a `minWidth` / `minHeight`
84
+ of 44px in the phone breakpoint. `tools/audit_mobile.py` reports `SMALL_TARGET`
85
+ below `--min-target` (40 by default).
86
+ - **Test touch with real touch events.** A script that dispatches
87
+ `new TouchEvent(...)` in the page is ignored by WooCommerce's FlexSlider, so a
88
+ working phone gallery looks broken. Use the browser's own input: a Playwright
89
+ context with `has_touch=True` and `page.tap()` / `page.touchscreen.tap()`, or the
90
+ DevTools protocol's `Input.dispatchTouchEvent`. This skill's verifiers already do
91
+ (`verify_menus.py` taps on touch contexts; none synthesises a `TouchEvent`).
92
+
93
+ ## Speed
94
+
95
+ Mosaic has no page-output cache, and rendering time grows with the node count
96
+ ([facts.md](facts.md), second site). A WooCommerce store on Mosaic needs a full-page
97
+ cache in front of it (with cart, checkout and account excluded), and a header and
98
+ footer kept lean.
99
+
100
+ ## Checklist
101
+
102
+ | # | Check | How |
103
+ |---|---|---|
104
+ | 1 | Gallery zoom, lightbox and slider declared | theme support, item 1 |
105
+ | 2 | `wc-single-product` loaded on product pages | item 2; the gallery slides |
106
+ | 3 | Notice focus ring and "View cart" link | item 3 |
107
+ | 4 | Gallery does not shift while loading | item 4; a CLS measurement |
108
+ | 5 | Lightbox toolbar | `verify_lightbox.py` exit 0 |
109
+ | 6 | Sticky summary | `verify_sticky.py` exit 0 |
110
+ | 7 | Archive titles without a prefix | the filter above |
111
+ | 8 | No Elementor leftovers on converted sites | page source: no popup markup, no `elementor-frontend` where unused |
112
+ | 9 | Tap targets on phones | `audit_mobile.py --min-target 40` reports no `SMALL_TARGET` |
113
+ | 10 | Full-page cache on, cart / checkout / account excluded | response headers on a repeat fetch |
@@ -9,7 +9,7 @@ Every tool in `tools/`, and where the REST session comes from. Moved out of SKIL
9
9
  | `mo.py` | query the measured surface - **the front door** |
10
10
  | `benchmark_tokens.py` | reproduce the token figures: source vs tables vs query, six tasks |
11
11
  | `build_page.py` | commit one page spec through the verified write path |
12
- | `build_site.py` | a whole site: one master with the shell, one document per page |
12
+ | `build_site.py` | a whole site: one master with the shell, one document per page. It makes a NEW master and new templates on EVERY run and re-binds every page it builds, so a one-line change means a full rebuild, and building only some pages leaves the site split across masters (a header edit then reaches some pages and not others). For changes to a built site use `sync_nodes.py` |
13
13
  | `verify_rwd.py` | does every `_t`/`_m` declaration reach the served stylesheet? |
14
14
  | `verify_browser.py` | does the **browser** compute what the stylesheet promised - and does the result pass a design audit? |
15
15
  | `verify_intro.py` | does the page-load animation play, and - the part that matters - does it END and hand the page back? |
@@ -30,7 +30,7 @@ Every tool in `tools/`, and where the REST session comes from. Moved out of SKIL
30
30
  | `theme_export.php` / `theme_import.php` | move a whole theme across installs, ids intact |
31
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` |
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
- | `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 |
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 |
35
35
  | `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 |
36
36
  | `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; also warns on a document with more than one root |
@@ -40,16 +40,18 @@ Every tool in `tools/`, and where the REST session comes from. Moved out of SKIL
40
40
  | `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 |
41
41
  | `verify_popovers.py` | 1.0.10's popover in a real browser: opens, lands where its positioning says, blocks nothing, closes the way closedby says, flips, chains, and ends - every check reads `:popover-open`, never an attribute |
42
42
  | `verify_dialog_lab.py` | the question after "does the modal work": can three nodes be made into a bottom sheet, a side drawer, a corner notice, a full takeover and a gate with no way out - and does each one still fit at phone width, which the page's own width check cannot see |
43
+ | `sync_nodes.py` | update a built site IN PLACE: matches the spec to the live master and each page's template by `attrID`, commits only the nodes whose data changed, rebuilds a page's template when its structure changed (one commit, or new tree first and old removed after in batches of 150), refuses a site split across masters or a document with two roots, saves every document's JSON before writing, re-reads and verifies after. Dry run unless `--apply`; `--attr a,b` limits the comparison and the writes to those subtrees. Before comparing it normalises what Mosaic rewrites on save (re-spaced CSS and colours, rewritten svg, keys a type does not keep, interaction ids, build_page's random list-item uuids) and leaves alone the children heal inserts (references/facts.md, third site). Read the dry run before `--apply`: it should list only what you changed. `build_site.py` makes a new master every run, so use this for any change to a site that is already built |
44
+ | `list_bindings.php` | read only, `wp eval-file tools/list_bindings.php <themeID> > bindings.json`: which template and master serve each post (`wp_mosaic_template_assigns`, which the REST API does not list) - the input `sync_nodes.py` needs |
43
45
  | `verify_lightbox.py` | the WooCommerce product-image lightbox (PhotoSwipe) at 390 / 820 / 1024 / 1440px: close button flush with the toolbar's top-right corner, counter top-left, spinner out of the flow - WooCommerce's own skin breaks the first at 1024px and below (references/standard-fixes.md) |
44
46
  | `verify_sticky.py` | a sticky element while the page scrolls: rectangle intersection with every `--avoid` element at each step, never past its `--bound` container, actually stuck at `--top` - a computed `position: sticky` passes a column that rides over the whole page |
45
47
  | `verify_tokens.py` | the design tokens as the BROWSER resolved them: every `:root` property declared once (a changed value does not retire the old one), non-empty, and actually pointed at by something - a wrong `skinsData` shape still emits the declaration and serves white |
46
48
  | `verify_components.py` | presses the interactive components on a page and asserts the RESULT - a pane actually swapped, an accordion item actually opened, the map carries the coordinates it was given - because "these all work" is worth what the last press proved |
47
- | `audit_mobile.py` | the RWD defects a sideways-scroll check cannot see - type under the legible floor, controls too small to hit, a grid that never collapsed, content escaping a box that is not clipping it - re-opened at every `--widths` |
49
+ | `audit_mobile.py` | the RWD defects a sideways-scroll check cannot see - type under the legible floor, controls too small to hit (below `--min-target`, 40px by default), a grid that never collapsed, content escaping a box that is not clipping it - re-opened at every `--widths` |
48
50
  | `list_fields.php` | every `@VAR` / `@LOOP` name Mosaic registers for one post - custom fields, their derived `__label` / `__url` / `__id` properties, the row variables of each loop - with the value each resolves to (`wp eval-file`) |
49
51
  | `data_upgrade.py` | after a plugin update, run Mosaic's data migration over its own milestone route - the step wp-admin does from a screen - and set the config's version when the editor API is back |
50
52
  | `copy_styles.py` | push one node's style onto others, by attrID or prefix |
51
53
  | `bootstrap_probe_theme.php` | a licence-free scratch theme |
52
- | `mint_session.php` | a matching cookie + `wp_rest` nonce from WP-CLI |
54
+ | `mint_session.php` | a matching cookie + `wp_rest` nonce from WP-CLI; `wp eval-file tools/mint_session.php - 20` sets the lifetime in hours (12 by default; the nonce itself lapses within a day). A run that hits an expired session now says SESSION EXPIRED |
53
55
  | `mosaic_config.py` | the one place a tool resolves the site URL and session - environment (`MOSAIC_SITE_URL` / `MOSAIC_REST_COOKIE` / `MOSAIC_REST_NONCE`) over `--config` file, so a credential never has to be written to disk |
54
56
  | `override_health.sql` | read only, `wp db query < tools/override_health.sql`: component instances whose override nodes heal emptied into `{"override":{"originalID":…}}` shells, and duplicate override nodes. Run it before and after deleting a root or changing a component (references/facts.md) |
55
57
  | `check_tables.py` | re-extract all eleven source-derived tables and diff them against the shipped ones - the check for a table that is not wrong but STALE, which nothing else can see |