@typeroll/mcp-server 0.45.40 → 0.45.42
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/AGENTS.md +15 -14
- package/README.md +5 -2
- package/dist/bundled-content.js +6 -6
- package/dist/tools/forms.js +4 -2
- package/dist/tools/page-blocks.js +6 -13
- package/dist/tools/partials.js +2 -3
- package/dist/tools/search.js +1 -1
- package/dist/tools/settings.js +1 -1
- package/dist/tools/versions.js +1 -1
- package/dist/tools/working-copy.js +44 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/tr-forms.md +5 -0
- package/skills/tr-migrate-wp.md +3 -1
- package/skills/tr-new-site.md +4 -2
- package/skills/tr-redesign-branch.md +9 -5
package/AGENTS.md
CHANGED
|
@@ -315,7 +315,7 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
|
|
|
315
315
|
everything you write through `?version=<branch-id>` lives on the
|
|
316
316
|
branch until you `merge_branch` it back to main. Branches default
|
|
317
317
|
`robots_blocked: true` so a half-finished redesign can't be indexed,
|
|
318
|
-
and deploys land at a stable `
|
|
318
|
+
and deploys land at a stable address (`deploy_url` on the version). That
|
|
319
319
|
branch deploy renders the site's full inherited brand (settings, fonts,
|
|
320
320
|
favicon, header/footer — everything not overridden on the branch), so
|
|
321
321
|
it's a faithful preview of what merging to main will look like, not just
|
|
@@ -404,7 +404,7 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
|
|
|
404
404
|
direct PATCH attempts and points at the mode endpoint.
|
|
405
405
|
**Before `trigger_deploy`: commit.** Deploys build saved content only —
|
|
406
406
|
an uncommitted draft silently stays behind.
|
|
407
|
-
- **Deploys /
|
|
407
|
+
- **Deploys / the branch `deploy_url` are the STATIC BUILD**, refreshed
|
|
408
408
|
only by `trigger_deploy`. Reach for them when you want the real compiled
|
|
409
409
|
output: publishing, a stakeholder link to the built site, or a faithful
|
|
410
410
|
pre-merge check. The branch alias is permanent across re-deploys; the
|
|
@@ -592,22 +592,21 @@ Use `set_page_mode` — it snapshots a revision before flipping, so the
|
|
|
592
592
|
previous state is restorable:
|
|
593
593
|
|
|
594
594
|
```
|
|
595
|
-
#
|
|
596
|
-
set_page_mode page_id=about to=blocks convert=true
|
|
597
|
-
|
|
598
|
-
# Or just switch the mode without converting (empty blocks):
|
|
595
|
+
# Switch the mode without converting the HTML body:
|
|
599
596
|
set_page_mode page_id=about to=blocks
|
|
600
597
|
|
|
601
598
|
# Switch back to HTML (drops the block tree; revision retains it):
|
|
602
599
|
set_page_mode page_id=about to=html
|
|
603
600
|
```
|
|
604
601
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
602
|
+
`convert_page_to_blocks` previews a heuristic conversion and lists
|
|
603
|
+
`unconverted` text, classes, and markup. It does not write, and
|
|
604
|
+
`set_page_mode` does not apply that preview. A person accepts the
|
|
605
|
+
preview in the page editor. The heuristic recognises `<h1-4>` →
|
|
606
|
+
heading, `<img>` → image, `<a.btn>` → button, `grid-cols-2` →
|
|
607
|
+
two-column, `<section>` / hero divs → section. Link-wrapped card text
|
|
608
|
+
and author classes are reported as unconverted rather than discarded
|
|
609
|
+
silently.
|
|
611
610
|
|
|
612
611
|
### "Build a directory or migrate a content family"
|
|
613
612
|
|
|
@@ -985,7 +984,9 @@ design as perfect/approved off a glance or a partial pass.
|
|
|
985
984
|
|
|
986
985
|
Preview shows DB state (drafts included). Live (`get_site → urls.production`)
|
|
987
986
|
shows the most recent deploy. Branch deploys live at
|
|
988
|
-
`
|
|
987
|
+
`read_version → deploy_url`. The publishing setup decides that host (under a
|
|
988
|
+
Hosting Group, a `v-…` host under the group's site address base); never
|
|
989
|
+
construct it or guess a `pages.dev` alias.
|
|
989
990
|
|
|
990
991
|
## Branches
|
|
991
992
|
|
|
@@ -1001,7 +1002,7 @@ the live site until you `merge_branch`.
|
|
|
1001
1002
|
|
|
1002
1003
|
Branches default `robots_blocked: true`. While iterating, preview the branch
|
|
1003
1004
|
with a reused `get_preview_link` (DB-live, no build). Deploys to a branch land
|
|
1004
|
-
at a stable URL (`
|
|
1005
|
+
at a stable URL (`deploy_url` on the version) — that's the compiled static
|
|
1005
1006
|
build, for sharing the finished result / stakeholder review, not per-edit
|
|
1006
1007
|
preview.
|
|
1007
1008
|
|
package/README.md
CHANGED
|
@@ -226,8 +226,8 @@ the full reference + concrete operation recipes.
|
|
|
226
226
|
`verify_migration_urls` (successful rows omitted unless requested), plus
|
|
227
227
|
`repair_migration_plain_text` for dry-run-first cleanup of legacy WordPress
|
|
228
228
|
entities and markup in allowlisted plain-text fields.
|
|
229
|
-
- **Branches** — create, read, delete, merge.
|
|
230
|
-
|
|
229
|
+
- **Branches** — create, read, delete, merge. A deployed branch gets its own
|
|
230
|
+
stable address, reported as `deploy_url` by `list_versions` / `read_version`.
|
|
231
231
|
- **Deploy** — trigger (with `dry_run` to build without publishing), list, get
|
|
232
232
|
status. A finished job reports `cost`: what the build consumed in server
|
|
233
233
|
time, broken down per phase. Estimates from a rate card, not billing records.
|
|
@@ -240,6 +240,9 @@ the full reference + concrete operation recipes.
|
|
|
240
240
|
on the write call; inspect/discard with `read_working_copy` /
|
|
241
241
|
`discard_working_copy`. Status changes and structural operations apply
|
|
242
242
|
immediately.
|
|
243
|
+
- **History** — `list_page_revisions`, `read_page_revision` and
|
|
244
|
+
`restore_page_revision` (to a draft, or saved with `save: true`) undo page
|
|
245
|
+
changes from earlier saves.
|
|
243
246
|
|
|
244
247
|
## Direct REST API access
|
|
245
248
|
|