@typeroll/mcp-server 0.45.167 → 0.45.169
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 +3 -1
- package/dist/bundled-content.js +26 -13
- package/dist/server.js +4 -0
- package/dist/tools/apps.js +33 -0
- package/dist/tools/fonts.js +1 -1
- package/dist/tools/forms.js +4 -3
- package/dist/tools/media.js +2 -2
- package/dist/tools/migration.js +1 -1
- package/dist/tools/pages.js +7 -0
- package/dist/tools/preview.js +4 -0
- package/dist/tools/settings.js +1 -1
- package/dist/tools/styles.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +17 -8
- package/package.json +1 -1
- package/skills/tr-brand.md +1 -1
- package/skills/tr-migrate-astro.md +4 -13
- package/skills/tr-migrate-multisite.md +10 -31
- package/skills/tr-migrate-wp.md +73 -384
- package/skills/tr-responsive.md +14 -0
- package/workspace-templates/scripts/README.md +18 -0
- package/workspace-templates/scripts/typeroll/browser.cjs +6 -1
- package/workspace-templates/scripts/typeroll/call.py +5 -2
- package/workspace-templates/scripts/typeroll/css_report.py +45 -0
- package/workspace-templates/scripts/typeroll/inventory.py +264 -0
- package/workspace-templates/scripts/typeroll/media_fit.py +112 -0
- package/workspace-templates/scripts/typeroll/migration.py +254 -0
- package/workspace-templates/scripts/typeroll/page_part.cjs +34 -0
- package/workspace-templates/scripts/typeroll/page_source.py +148 -0
- package/workspace-templates/scripts/typeroll/pages.py +156 -0
- package/workspace-templates/scripts/typeroll/read_pages.cjs +169 -0
- package/workspace-templates/scripts/typeroll/shoot_hosted.cjs +13 -6
- package/workspace-templates/scripts/typeroll/trlib.py +45 -7
- package/workspace-templates/scripts/typeroll/verify_migration.cjs +47 -0
- package/workspace-templates/scripts/typeroll/verify_migration.py +274 -0
- package/workspace-templates/scripts/typeroll/write_pages.py +542 -0
- package/workspace-templates/skills/typeroll-migrate-sources.md +36 -0
- package/workspace-templates/skills/typeroll-migrate.md +109 -0
- package/workspace-templates/workflows/design.md +1 -1
- package/workspace-templates/workflows/migration.md +12 -5
package/AGENTS.md
CHANGED
|
@@ -250,7 +250,8 @@ maps to one HTTP endpoint; the actual logic runs in the customer's portal
|
|
|
250
250
|
editors change its content.
|
|
251
251
|
- **Composed** (preferred): `composition` is a tree of existing blocks;
|
|
252
252
|
`schema` declares the props editors fill in. Inner blocks bind props
|
|
253
|
-
as the whole value — `"{{props.title}}"
|
|
253
|
+
as the whole value — `"{{props.title}}"`, or among other text from
|
|
254
|
+
render version 23 (`"tel:{{props.phone}}"`) — and a `core/repeater` with
|
|
254
255
|
`items: "{{props.items}}"` (an array prop) renders its children once
|
|
255
256
|
per item, reading `"{{item.title}}"`, `"{{item.link.href}}"`.
|
|
256
257
|
- **Template** (advanced): own markup with `{{field}}`, `{{{richtext}}}`,
|
|
@@ -1397,6 +1398,7 @@ preview.
|
|
|
1397
1398
|
| **Global blocks (partials)** | `list_partials` (summary by default), `read_partial`, `create_free_block` (`blocks` or `html_content`), `update_partial`, `replace_partial`, `set_partial_mode`, `delete_partial`, `find_pages_using_block`, `make_block_global`, `detach_global_block`. Block pages reference a global block with `core/global_block` (`global_block_id`); HTML pages use `<x-include>`. |
|
|
1398
1399
|
| **Menus** | `list_menus`, `read_menu`, `update_menu` (whole tree, `expected_updated_at`), `add_menu_item`, `delete_menu`, `find_menu_usage`. Items: `page` (`page_id`, follows renames), `url`, `children` (a page's child pages as a submenu), `heading`; at most 3 levels. Locations `primary`, `footer`, `mobile`, one menu each; `take_locations: true` moves a taken location to the menu you save (the other menu keeps its items). `auto_add_pages` appends new top-level pages. A `core/navigation_links` block with `source: "menu"`, `menu: "location:primary"` shows one (render version 15). Saved directly, live at the next publication. |
|
|
1399
1400
|
| **Site fields** | `read_site_fields`, `define_site_fields` (all groups, site admin, `expected_updated_at`), `update_site_fields` (values patch; `null` removes). Settings pages the client fills in: groups of typed fields with `access` `editor` or `admin`; opening hours are an `object` field with `presentation: "opening_hours"`. Pages show values with `{{site.fields.name}}`, the `core/site_field` block and `core/show_if` conditions such as `site.fields.show_booking`. Saved directly, live at the next publication. |
|
|
1401
|
+
| **Lists and events** | `core/page_list` and `core/repeater` take `visitor_filters` (`[{ field, label, control: "select" \| "buttons" }]`), `date_condition` `upcoming`/`past` with `date_start_field`/`date_end_field` (checked in the visitor's browser), `hide_section_when_empty`, and `live_updates: true`: a record **saved** as published on main reaches the live list within a minute without publishing, so treat such a save as public. `own_page: false` on `create_page`/`update_page` makes a record that only appears in lists (no address); a record with its own page enters the list at the next publication. No pagination, groups, carousel or `exclude_current` in a live list; the publication warns when one cannot be live. |
|
|
1400
1402
|
| **Live snippets** | `list_snippets`, `read_snippet`, `update_snippet` (create or replace the whole snippet, `expected_updated_at`), `delete_snippet`. Content outside the build: a save reaches the live site within a minute without publishing. `kind` `html`, `text` or `dated` (entries by `weekday` or `date`, `fallback`; today's entry is chosen in the visitor's browser in the site's time zone), so a week's lunch is one write per week. Show one with a `core/snippet` block (`snippet`: id); a site field with `live: true` shown by `core/site_field` updates the same way. Per site, not per branch. |
|
|
1401
1403
|
| **Block templates** | `list_block_templates`, `read_block_template`, `save_block_template` (from `blocks` or `from: { page_id, block_id }`), `update_block_template`, `delete_block_template`, `insert_block_template` (copies with new ids). Per site, not per branch. |
|
|
1402
1404
|
| **Styles** | `list_styles`, `create_style`, `update_style`, `delete_style`, `apply_standard_styles`. Blocks pick a style with `style_id` (heading parts: `eyebrow_style_id`, `subtitle_style_id`). Other named block parts (`read_block_type` → `parts`, e.g. `core/rich_heading.link`, `core/hero.primary_button`) take a style site-wide through the style's `parts`, or on one block through `data.part_styles`; the block's choice replaces the site-wide one, and a style class on the element wins over both. Contrast below WCAG AA is refused. |
|