@typeroll/mcp-server 0.45.132 → 0.45.134
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 +8 -0
- package/dist/bundled-content.js +19 -18
- package/dist/tools/deploy.js +2 -1
- package/dist/tools/domain.js +9 -7
- package/dist/tools/extensions.js +2 -1
- package/dist/tools/migration.js +1 -1
- package/dist/tools/settings.js +3 -3
- package/dist/version.js +1 -1
- package/dist/workspace.js +15 -1
- package/package.json +1 -1
- package/skills/tr-design-review.md +7 -1
- package/skills/tr-edit-site.md +11 -2
- package/skills/tr-import-url.md +12 -2
- package/skills/tr-migrate-multisite.md +5 -0
- package/skills/tr-migrate-wp.md +11 -2
- package/skills/tr-migration-evidence.md +11 -0
- package/skills/tr-new-site.md +5 -0
- package/skills/tr-redesign-branch.md +5 -0
- package/skills/tr-upgrade-rendering.md +25 -9
- package/workspace-templates/qa/checklist.md +18 -0
- package/workspace-templates/scripts/README.md +36 -8
- package/workspace-templates/scripts/typeroll/browser.cjs +81 -4
- package/workspace-templates/scripts/typeroll/check_assets.py +3 -1
- package/workspace-templates/scripts/typeroll/check_heading_spacing.cjs +3 -2
- package/workspace-templates/scripts/typeroll/check_url_parity.py +14 -5
- package/workspace-templates/scripts/typeroll/pacing.py +117 -0
- package/workspace-templates/workflows/migration.md +15 -1
- package/workspace-templates/workflows/source-media.md +4 -1
package/dist/tools/deploy.js
CHANGED
|
@@ -17,6 +17,7 @@ export const deployTools = [
|
|
|
17
17
|
environment: z.enum(['production', 'staging']).optional(),
|
|
18
18
|
confirm_live_domains: z.boolean().optional().describe('Required (true) for a real deploy of a cut-over site: acknowledges that the deploy publishes to the live domains named by get_publication_impact or the live_domain_confirmation_required error. Only after the site owner approved this production release. Not needed for dry_run or sites that are not cut over.'),
|
|
19
19
|
allow_unsaved: z.boolean().optional().describe('Explicitly publish saved content while leaving the reported unsaved Pages/partials untouched. Only after owner confirmation.'),
|
|
20
|
+
accept_missing_media: z.boolean().optional().describe('Publish without referenced media files that are missing from the site\'s media storage (their copy failed and was set aside), leaving their references empty and listing each file in job.warnings. Only after the site owner accepted publishing without those files. By default such a publication fails once, before anything goes live, with job.failure.code media_missing and job.failure.missing_media (media_id, filename, source_host, code, reason; at most 100) plus missing_media_total; a dry_run reports the same list. Files still uploading or migrating fail with media_migration_pending either way.'),
|
|
20
21
|
dry_run: z.boolean().optional().describe('Validate without publishing. Checks the frozen source only, including image links without an accessible name (publication_validation_failed). Also runs every app derivation on the frozen content with the installed app releases and records job.derivation_receipt (content_revision, apps, data_digest, receipts, cache_keys) — read it with get_deploy_status. A required app that fails fails the dry run with its reason.'),
|
|
21
22
|
version: versionParam,
|
|
22
23
|
},
|
|
@@ -42,7 +43,7 @@ export const deployTools = [
|
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
name: 'get_deploy_status',
|
|
45
|
-
description: "Status of a single deploy job. Optional top-level build_progress reports the exact task status, attempt, step and completed/total files; not an overall percentage or ETA. Media preparation runs in windows of about 12 minutes that each save their position, so attempt rises in a healthy build: media_continuations counts those planned windows, retries counts failed runs started again, and deadline is when the build stops for good. Do not cancel while completed still rises. While a build or verification step waits for a runner, build_progress.status is queued, deadline is null (its working time starts when a runner claims it) and build_progress.queue says why: { state, message, queued_at, queued_for_seconds, provider, provider_status, ahead, ahead_kinds, running_kinds, expires_at }. state waiting_for_provider means nothing in this organization is ahead and the provider has not started a runner yet (provider_status is the provider's own status, e.g. queued or initializing; running_kinds lists this organization's other builds on the same account, such as media_preparation); waiting_for_other_builds means ahead other builds of this organization run first. job.phase carries the same message. A queued build is normal and can wait many minutes: keep polling (every 30–60 s is enough) and do not retrigger, cancel or start another publication. Only a step that no runner claims by expires_at (6 hours) fails, with job.failure.code build_queue_timeout. Returns { job, queued_for_seconds, queue_timeout_seconds }. job.targets and job.production, when present, record where the publication was admitted to publish and whether that included a live domain. job.status is one of queued | running | succeeded | failed. On a failed build, job.error names the failed step and the cause the step printed, job.failure.code is the reported code (e.g. media_build_process_exit_1) and job.failure.diagnostic holds { cause, lines } (the last 40 lines that step printed, credentials removed). On the Cloudflare build engine job.failure.provider_log also holds { step, build_id, summary, lines } from the provider's build log (last 60 lines). Read them before retrying; retrying does not fix a cause that is in the content or the build engine. job.warnings, when present, lists non-blocking findings of a deploy that still ran, for example a media file left out of the publication because it could not be published safely (an SVG that could not be sanitized); report them to the user. Polling cadence: ~5s for queued/running. job.render_report, when present, reports actual HTML mode (full/partial), rendered, reused, total and removed route counts plus a fallback reason. From Core 0.2.17, custom blocks and consumed image metadata are tracked per route; older caches require one full build. It does not measure media or provider startup savings. job.coordinator, when present, reports the last completed CMS phase and duration_ms for that attempt; external build waiting is excluded. Keep observing the same job across checkpoints; do not trigger duplicate deploys. A job whose own status stays 'queued' (not a queued build step, which runs under job.status running) for longer than queue_timeout_seconds (default 300s) auto-flips to failed with phase='queue_timeout' — so a single poll past that timestamp returns the terminal state and you can stop polling.",
|
|
46
|
+
description: "Status of a single deploy job. Optional top-level build_progress reports the exact task status, attempt, step and completed/total files; not an overall percentage or ETA. Media preparation runs in windows of about 12 minutes that each save their position, so attempt rises in a healthy build: media_continuations counts those planned windows, retries counts failed runs started again, and deadline is when the build stops for good. Do not cancel while completed still rises. While a build or verification step waits for a runner, build_progress.status is queued, deadline is null (its working time starts when a runner claims it) and build_progress.queue says why: { state, message, queued_at, queued_for_seconds, provider, provider_status, ahead, ahead_kinds, running_kinds, expires_at }. state waiting_for_provider means nothing in this organization is ahead and the provider has not started a runner yet (provider_status is the provider's own status, e.g. queued or initializing; running_kinds lists this organization's other builds on the same account, such as media_preparation); waiting_for_other_builds means ahead other builds of this organization run first. job.phase carries the same message. A queued build is normal and can wait many minutes: keep polling (every 30–60 s is enough) and do not retrigger, cancel or start another publication. Only a step that no runner claims by expires_at (6 hours) fails, with job.failure.code build_queue_timeout. Returns { job, queued_for_seconds, queue_timeout_seconds }. job.targets and job.production, when present, record where the publication was admitted to publish and whether that included a live domain. job.status is one of queued | running | succeeded | failed. On a failed build, job.error names the failed step and the cause the step printed, job.failure.code is the reported code (e.g. media_build_process_exit_1) and job.failure.diagnostic holds { cause, lines } (the last 40 lines that step printed, credentials removed). On the Cloudflare build engine job.failure.provider_log also holds { step, build_id, summary, lines } from the provider's build log (last 60 lines). Read them before retrying; retrying does not fix a cause that is in the content or the build engine. job.warnings, when present, lists non-blocking findings of a deploy that still ran, for example a media file left out of the publication because it could not be published safely (an SVG that could not be sanitized) or because it was missing and the deploy accepted that (accept_missing_media); report them to the user. A failed job with job.failure.code media_missing lists the referenced files whose copy to media storage failed in job.failure.missing_media (at most 100; missing_media_total counts them all): retry the media migration or re-import them, or ask the owner whether to publish with accept_missing_media: true. Polling cadence: ~5s for queued/running. job.render_report, when present, reports actual HTML mode (full/partial), rendered, reused, total and removed route counts plus a fallback reason. From Core 0.2.17, custom blocks and consumed image metadata are tracked per route; older caches require one full build. It does not measure media or provider startup savings. job.coordinator, when present, reports the last completed CMS phase and duration_ms for that attempt; external build waiting is excluded. Keep observing the same job across checkpoints; do not trigger duplicate deploys. A job whose own status stays 'queued' (not a queued build step, which runs under job.status running) for longer than queue_timeout_seconds (default 300s) auto-flips to failed with phase='queue_timeout' — so a single poll past that timestamp returns the terminal state and you can stop polling.",
|
|
46
47
|
inputSchema: { job_id: z.string(), include_provider: z.boolean().optional().describe('Also read the exact Git commit and Cloudflare build stages for a customer Git publication. Does not return build secrets.') },
|
|
47
48
|
handler: withErrorBoundary(async (args, { client, siteId }) => {
|
|
48
49
|
const res = await client.get(siteId, `deploys/${encodeURIComponent(args.job_id)}`);
|
package/dist/tools/domain.js
CHANGED
|
@@ -24,12 +24,13 @@ export const domainTools = [
|
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
name: 'guide_publishing_domain_change',
|
|
27
|
-
description: 'Guide a site domain move. Start with check: returns hosting, zone, nameserver, certificate, permission, publishing, redirect capacity, candidate_noindex and candidate checks, current phase, next action and an explicit switch summary. candidate_noindex blocks prepare and approve while site settings, the last publication or the candidate tell search engines not to index or follow the site (next_action resolve_noindex): the temporary address is already blocked from indexing by Typeroll, so prepare with confirm_disable_noindex: true to turn it off and build an indexable candidate in one step, or pass allow_noindex_launch: true to launch hidden on purpose. Saving future hosts is inert. Prepare republishes the last public content on main with the new origins, replacing the current site before DNS changes; newer unpublished CMS edits are excluded. Later normal publications retain the new origins. Approve changes DNS for the same main artifact without another build. Adding redirect hosts preserves the main artifact. Approve requires explicit user approval of the switch summary and any validation interruption. Automatic DNS is journaled and rolled back after a failed check or the agreed deadline; later external edits require manual attention. Rollback requests restoration through the serialized publication chain. After go-live, Typeroll re-checks who serves the website and redirect hosts at about 2, 10 and 30 minutes; next_action remove_other_host (with traffic_live false and a serving check) means another provider answers the host, typically a previous host\'s Cloudflare for SaaS hostname that outranks the customer\'s DNS: remove the domain from that host\'s dashboard, then check again. Live website hosts are then checked daily. A switch goes live only when the website host\'s Cloudflare Pages custom domain is active; otherwise it fails with pages_domain_not_active and automatic DNS is restored. Before approval, a check previous_host_saas:<host> (host_checks warning previous_host_saas_hostname, also in switch_summary.previous_host) means the current host (for example Kinsta) still holds the domain as a Cloudflare for SaaS hostname, which blocks Pages validation: tell the user to remove the domain there right before or right after the switch, inside the validation window. After go-live, next_action retry_validation (check pages_domain:<host>, traffic_live false) means the Pages custom domain is not active (pending or deactivated, visitors typically get HTTP 522): make sure the previous host released the domain, then call action retry_validation. It is idempotent: it re-checks the host and asks Cloudflare to retry validation (never a DNS change), at most once a minute. Previous website addresses (such as the temporary sites address) get a 301 through one Single Redirect rule per new website host in their zone; check reports host_checks warnings redirect_rule_quota (the zone\'s rule quota is full, Free plan: 10) or redirect_permission_missing with a remedy before approval. A refused write never blocks or rolls back the switch: the old address keeps noindex, previous_hosts records the issue code, and next_action repair_previous_host_redirects re-creates missing redirects without a build or DNS change once the remedy is applied (idempotent; safe to repeat). External DNS remains the caller’s responsibility.',
|
|
27
|
+
description: 'Guide a site domain move. Start with check: returns hosting, zone, nameserver, certificate, permission, publishing, redirect capacity, candidate_noindex and candidate checks, current phase, next action and an explicit switch summary. candidate_noindex blocks prepare and approve while site settings, the last publication or the candidate tell search engines not to index or follow the site (next_action resolve_noindex): the temporary address is already blocked from indexing by Typeroll, so prepare with confirm_disable_noindex: true to turn it off and build an indexable candidate in one step, or pass allow_noindex_launch: true to launch hidden on purpose. Saving future hosts is inert. Prepare republishes the last public content on main with the new origins, replacing the current site before DNS changes; newer unpublished CMS edits are excluded. Later normal publications retain the new origins. Approve changes DNS for the same main artifact without another build. Adding redirect hosts preserves the main artifact. Approve requires explicit user approval of the switch summary and any validation interruption. Automatic DNS is journaled and rolled back after a failed check or the agreed deadline; later external edits require manual attention. Rollback requests restoration through the serialized publication chain. After go-live, Typeroll re-checks who serves the website and redirect hosts at about 2, 10 and 30 minutes; next_action remove_other_host (with traffic_live false and a serving check) means another provider answers the host, typically a previous host\'s Cloudflare for SaaS hostname that outranks the customer\'s DNS: remove the domain from that host\'s dashboard, then check again. Live website hosts are then checked daily. A switch goes live only when the website host\'s Cloudflare Pages custom domain is active; otherwise it fails with pages_domain_not_active and automatic DNS is restored. Before approval, a check previous_host_saas:<host> (host_checks warning previous_host_saas_hostname, also in switch_summary.previous_host) means the current host (for example Kinsta) still holds the domain as a Cloudflare for SaaS hostname, which blocks Pages validation: tell the user to remove the domain there right before or right after the switch, inside the validation window. After go-live, next_action retry_validation (check pages_domain:<host>, traffic_live false) means the Pages custom domain is not active (pending or deactivated, visitors typically get HTTP 522): make sure the previous host released the domain, then call action retry_validation. It is idempotent: it re-checks the host and asks Cloudflare to retry validation (never a DNS change), at most once a minute. Previous website addresses (such as the temporary sites address) get a 301 through one Single Redirect rule per new website host in their zone; check reports host_checks warnings redirect_rule_quota (the zone\'s rule quota is full, Free plan: 10) or redirect_permission_missing with a remedy before approval. A refused write never blocks or rolls back the switch: the old address keeps noindex, previous_hosts records the issue code, and next_action repair_previous_host_redirects re-creates missing redirects without a build or DNS change once the remedy is applied (idempotent; safe to repeat). The www counterpart of the website host (example.com for www.example.com, and the other way round) redirects to it by default without being listed in redirect_hosts: check lists it as www_redirect:<host> and in implicit_redirects (source "default"); the next normal publication of the live site, or repair_previous_host_redirects, adds it to the same Single Redirect rule without a build or DNS change. A counterpart that serves something else is never taken over (warning www_redirect_host_in_use); save with www_redirect: false to opt out. External DNS remains the caller’s responsibility.',
|
|
28
28
|
inputSchema: {
|
|
29
29
|
action: z.enum(['check', 'preview', 'save', 'prepare', 'approve', 'rollback', 'retry_validation', 'repair_previous_host_redirects']),
|
|
30
30
|
revision: z.string().optional(), candidate_id: z.string().optional(),
|
|
31
31
|
website_host: z.string().nullable().optional(), media_host: z.string().nullable().optional(), media_path_prefix: z.string().optional(),
|
|
32
32
|
redirect_hosts: z.array(z.string()).max(4).optional(), dns_mode: z.enum(['automatic', 'external']).optional(),
|
|
33
|
+
www_redirect: z.boolean().optional().describe('For save: false stops the default redirect of the www counterpart (example.com ↔ www.example.com) to the website host; true restores it. Omit to keep the saved value.'),
|
|
33
34
|
confirm_rebuild: z.boolean().optional(), accept_validation_window: z.boolean().optional(),
|
|
34
35
|
validation_timeout_minutes: z.number().int().min(5).max(45).optional(),
|
|
35
36
|
confirm_disable_noindex: z.boolean().optional().describe('For prepare: Turn off sitewide_noindex and sitewide_nofollow (and remove noindex from a robots meta tag in scripts_head) in the site settings and build the candidate indexable for the new website host in the same step, without a separate publication. Use this after the user confirms the site should be found by search engines; it satisfies the candidate_noindex blocker.'),
|
|
@@ -190,9 +191,9 @@ export const domainTools = [
|
|
|
190
191
|
{
|
|
191
192
|
name: 'read_organization_media_migration',
|
|
192
193
|
noSite: true,
|
|
193
|
-
description: 'Read progress and actionable failures while original media moves to the organization Cloudflare account: overall state
|
|
194
|
-
inputSchema: {},
|
|
195
|
-
handler: withErrorBoundary(async (
|
|
194
|
+
description: 'Read progress and actionable failures while original media moves to the organization Cloudflare account: overall state, ok and updated_at, each site (state, ok, counts, error, updated_at) and failed_media for files that could not be copied and were set aside. state is queued | running | failed | complete | complete_with_failures. complete_with_failures means the migration finished but set files aside: it is not success, and ok is true only for complete with failed_files 0. failed_media lists every set-aside file, 100 per call in site and media order (site_id, media_id, filename, source_url without its query, source_host, code, message, at, transient); failed_media_total counts them all and failed_media_next, when not null, is the failed_after value for the next page. transient: true means the copy failed for a passing reason (for example media_transfer_resources_exceeded, a 5xx or a timeout) after the automatic retries at 1, 5, 15, 30 and 60 minutes, so a retry may succeed; other codes (a refused source, an integrity failure) need the file fixed or deleted. Then call retry_organization_media_migration. Requires an organization API key.',
|
|
195
|
+
inputSchema: { failed_after: z.string().optional().describe('failed_media_next from the previous call, to read the next page of failed_media.') },
|
|
196
|
+
handler: withErrorBoundary(async (args, { client }) => ok(await client.rootGet(`publishing/media-migration${args.failed_after ? `?failed_after=${encodeURIComponent(args.failed_after)}` : ''}`))),
|
|
196
197
|
},
|
|
197
198
|
{
|
|
198
199
|
name: 'retry_organization_media_migration',
|
|
@@ -220,18 +221,19 @@ export const domainTools = [
|
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
223
|
name: 'read_publishing_domains',
|
|
223
|
-
description: 'Read the desired and active website, redirect and media hosts, retained media aliases, DNS management mode and domain configuration revision. host_checks lists each future host with its Cloudflare zone and structured blockers and warnings (code, host, message), for example apex_zone_required (an apex such as example.com needs an active Cloudflare zone in the hosting account), zone_not_active (the zone is pending until its nameservers change) or redirect_zone_required. Resolve blockers before preparing. preparation and redirect_preparations hold DNS records, the zone redirect rule and certificate state after preparation. Saving intent does not switch traffic. published identifies the addresses embedded in main, separately from active (verified traffic). Saving desired hosts is inert. prepare_publishing_domain_change explicitly replaces main with the new origins; later normal publication retains them and refreshes the DNS approval receipt. candidate.sitewide_noindex describes the frozen candidate, not current settings. Prepare and approve reject an authored noindex launch with candidate_noindex unless allow_noindex_launch is true. serving_check reports read-only follow-up checks about 2, 10 and 30 minutes after the website host went live: status pending, serving, inconclusive (a transport or edge error, never an alarm), other_host (issue code domain_served_by_other_host, with observed.provider_hint and remedy) or other_publication (domain_serving_other_publication). Checks continue daily while the host is live. serving_check.pages_domain is the latest read of the website host\'s Cloudflare Pages custom domain (status, validation, retried_at); serving_check.pages_issue (code pages_domain_not_active, with status, remedy and retryable) stands while it is not active, for example deactivated after a previous host\'s Cloudflare for SaaS hostname blocked validation. Checks retry validation automatically when the host points at the Pages project; to retry now, call guide_publishing_domain_change with action retry_validation. host_checks warning previous_host_saas_hostname means the current host still holds the domain as a Cloudflare for SaaS hostname: remove it there around the switch. An alarm stands until a later check succeeds; reads re-check it. Inconclusive reads never raise or clear an alarm. Typeroll never changes DNS or rolls back because of it.',
|
|
224
|
+
description: 'Read the desired and active website, redirect and media hosts, retained media aliases, DNS management mode and domain configuration revision. host_checks lists each future host with its Cloudflare zone and structured blockers and warnings (code, host, message), for example apex_zone_required (an apex such as example.com needs an active Cloudflare zone in the hosting account), zone_not_active (the zone is pending until its nameservers change) or redirect_zone_required. Resolve blockers before preparing. preparation and redirect_preparations hold DNS records, the zone redirect rule and certificate state after preparation. Saving intent does not switch traffic. published identifies the addresses embedded in main, separately from active (verified traffic). Saving desired hosts is inert. prepare_publishing_domain_change explicitly replaces main with the new origins; later normal publication retains them and refreshes the DNS approval receipt. candidate.sitewide_noindex describes the frozen candidate, not current settings. Prepare and approve reject an authored noindex launch with candidate_noindex unless allow_noindex_launch is true. serving_check reports read-only follow-up checks about 2, 10 and 30 minutes after the website host went live: status pending, serving, inconclusive (a transport or edge error, never an alarm), other_host (issue code domain_served_by_other_host, with observed.provider_hint and remedy) or other_publication (domain_serving_other_publication). Checks continue daily while the host is live. serving_check.pages_domain is the latest read of the website host\'s Cloudflare Pages custom domain (status, validation, retried_at); serving_check.pages_issue (code pages_domain_not_active, with status, remedy and retryable) stands while it is not active, for example deactivated after a previous host\'s Cloudflare for SaaS hostname blocked validation. Checks retry validation automatically when the host points at the Pages project; to retry now, call guide_publishing_domain_change with action retry_validation. host_checks warning previous_host_saas_hostname means the current host still holds the domain as a Cloudflare for SaaS hostname: remove it there around the switch. An alarm stands until a later check succeeds; reads re-check it. Inconclusive reads never raise or clear an alarm. Typeroll never changes DNS or rolls back because of it. www_redirect (default true) and implicit_redirect_hosts in desired and active list the www counterpart of the website host (example.com for www.example.com, and the other way round), which redirects 301 to it by default without being listed in redirect_hosts; never send implicit_redirect_hosts back. implicit_redirects reports it with source "default" and status planned, verified, pending or warning (issue code and remedy, also as host_checks warnings), for example www_redirect_host_in_use (the counterpart serves something else; Typeroll never takes it over), www_redirect_record_missing, www_redirect_external_dns, redirect_rule_quota or redirect_permission_missing.',
|
|
224
225
|
inputSchema: {},
|
|
225
226
|
handler: withErrorBoundary(async (_args, { client, siteId }) => ok(await client.get(siteId, 'publishing/domains'))),
|
|
226
227
|
},
|
|
227
228
|
{
|
|
228
229
|
name: 'set_publishing_domains',
|
|
229
|
-
description: 'Save future website, redirect and media hosts before preparing a deployment. Normal trigger_deploy continues updating the current or temporary address, even while future hosts await validation. Shortly before changing DNS, explicitly call prepare_publishing_domain_change to publish the last published snapshot again with these hosts. That explicit publication replaces main before DNS changes. Later normal publications retain its new origins and refresh the DNS approval receipt; no second build is needed to switch DNS. Requires the current revision from read_publishing_domains. This does not publish content or change traffic DNS. Choose external DNS when your agent manages Cloudflare independently. redirect_hosts (for example www.example.com when example.com is the website host) answer 301 to the website host, keeping path and query, through a Single Redirect rule in the host\'s Cloudflare zone; they are switched and verified with the website. The response includes host_checks: resolve its blockers before preparing.',
|
|
230
|
+
description: 'Save future website, redirect and media hosts before preparing a deployment. Normal trigger_deploy continues updating the current or temporary address, even while future hosts await validation. Shortly before changing DNS, explicitly call prepare_publishing_domain_change to publish the last published snapshot again with these hosts. That explicit publication replaces main before DNS changes. Later normal publications retain its new origins and refresh the DNS approval receipt; no second build is needed to switch DNS. Requires the current revision from read_publishing_domains. This does not publish content or change traffic DNS. Choose external DNS when your agent manages Cloudflare independently. redirect_hosts (for example www.example.com when example.com is the website host) answer 301 to the website host, keeping path and query, through a Single Redirect rule in the host\'s Cloudflare zone; they are switched and verified with the website. The www counterpart of website_host redirects to it by default and does not need to be listed; the next publication of the live site creates its redirect rule (never DNS) when the counterpart is unused by anything else. Set www_redirect false to opt out. The response includes host_checks: resolve its blockers before preparing.',
|
|
230
231
|
inputSchema: {
|
|
231
232
|
revision: z.string(), website_host: z.string().nullable(), media_host: z.string().nullable().describe('Optional site media host, such as media.<site domain>, so image addresses do not show the organization media domain. Its domain must be in the organization\'s connected Cloudflare account. Null uses the organization\'s shared media host.'),
|
|
232
233
|
confirm_rebuild: z.boolean().optional().describe('Legacy input; Core 0.2.116+ does not require confirmation to save inert future addresses.'),
|
|
233
234
|
media_path_prefix: z.string().optional().describe('Empty on a separate media host; /media when using the website host.'),
|
|
234
|
-
redirect_hosts: z.array(z.string()).max(4).optional().describe('
|
|
235
|
+
redirect_hosts: z.array(z.string()).max(4).optional().describe('Additional hostnames that redirect permanently to website_host. The www counterpart (www.example.com for example.com, and the other way round) redirects by default and need not be listed. Omit or send [] for none.'),
|
|
236
|
+
www_redirect: z.boolean().optional().describe('Default true: the www counterpart of website_host redirects to it. Send false only when the counterpart is used for something else; omit to keep the saved value.'),
|
|
235
237
|
dns_mode: z.enum(['automatic', 'external']),
|
|
236
238
|
},
|
|
237
239
|
handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.put(siteId, 'publishing/domains', args))),
|
package/dist/tools/extensions.js
CHANGED
|
@@ -35,12 +35,13 @@ export const extensionTools = [
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
name: 'activate_extension_release',
|
|
38
|
-
description: 'Explicitly activate a pending migration release for this site only. First read_extension_installation and review pending_activation_manifest, configuration and app migration instructions. Changes runtime selection immediately
|
|
38
|
+
description: 'Explicitly activate a pending migration release for this site only. First read_extension_installation and review pending_activation_manifest, configuration and app migration instructions. Changes the app API\'s runtime selection immediately, but published pages keep calling the version they were built with until the next publication activates: run trigger_deploy with dry_run: true first, then publish soon after, since the live site can break in between. Never queues publication itself. Refused with 409 form_targets_undeclared and affected_forms when a form posts to an endpoint the new release does not declare (its publication would fail); install a release that declares it, change the form target, or repeat with confirm_form_targets: true. Existing permissions remain unless granted_scopes is explicitly supplied. Admin permission required.',
|
|
39
39
|
inputSchema: {
|
|
40
40
|
installation_id: z.string().min(1),
|
|
41
41
|
version: z.string().min(1).describe('Pending published release to activate.'),
|
|
42
42
|
config: z.record(z.string(), z.unknown()).optional(),
|
|
43
43
|
granted_scopes: z.array(z.string()).optional(),
|
|
44
|
+
confirm_form_targets: z.boolean().optional().describe('Activate although the forms listed in affected_forms post to endpoints this release does not declare.'),
|
|
44
45
|
},
|
|
45
46
|
handler: withErrorBoundary(async (args, { client, siteId }) => {
|
|
46
47
|
const { installation_id, ...patch } = args;
|
package/dist/tools/migration.js
CHANGED
|
@@ -206,7 +206,7 @@ export const migrationTools = [
|
|
|
206
206
|
.optional()
|
|
207
207
|
.describe('Return all rows when verdicts is omitted. Default false: successful/excluded rows are summarized but omitted.'),
|
|
208
208
|
limit: z.number().int().positive().max(500).optional().describe('Max URLs per run (default 150). `truncated: true` in the response means there are more.'),
|
|
209
|
-
concurrency: z.number().int().positive().max(12).optional(),
|
|
209
|
+
concurrency: z.number().int().positive().max(12).optional().describe('Parallel requests (default 4, max 12). Hosts and CDNs throttle faster crawlers; 429 and 503 answers are retried with backoff.'),
|
|
210
210
|
},
|
|
211
211
|
handler: withErrorBoundary(async (args, { client, siteId }) => {
|
|
212
212
|
const res = await client.post(siteId, 'migration-urls/verify', args);
|
package/dist/tools/settings.js
CHANGED
|
@@ -42,7 +42,7 @@ export const settingsTools = [
|
|
|
42
42
|
description: 'Patch site settings, including responsive breakpoints for block layouts and visibility. Accepts everything the portal Settings form does. Requires admin permission on the site, as in the portal. Only the fields you pass change. ' +
|
|
43
43
|
'Pass fields at the TOP LEVEL of the object — do NOT wrap in a "settings" or "patch" key. ' +
|
|
44
44
|
'Example: {"site_name": "Acme", "colors": {"primary": "#ff0"}} not {"settings": {...}}. ' +
|
|
45
|
-
'Nested objects (colors, fonts, contact, social) are shallow-merged into the existing value. ' +
|
|
45
|
+
'Nested objects (colors, fonts, contact, social, cookie_consent, typography) are shallow-merged into the existing value, and design_scales per scale step: only the keys you pass change, and a typography control or scale step set to null returns to its default. ' +
|
|
46
46
|
'Unknown top-level keys return a 400 error listing the valid fields. ' +
|
|
47
47
|
'scripts_head / scripts_body_end / custom_css and cookie_consent scripts ARE writable here — useful for a global stylesheet or analytics tag across all pages. ' +
|
|
48
48
|
'Social sharing and structured data: default_og_image, twitter_handle, organization ({name, logo, same_as[]}, replaced as a whole; null clears). ' +
|
|
@@ -90,8 +90,8 @@ export const settingsTools = [
|
|
|
90
90
|
staging_url: z.string().nullable().optional().describe('URL of a staging environment for this site, for reference. Stored on the Site, not per version. Trailing slashes are dropped; empty string or null clears.'),
|
|
91
91
|
form_submission_retention_days: z.number().int().min(30).max(3650).nullable().optional().describe('Opt-in deletion of completed form submissions this many days (30–3650) after they were completed, on every form of the site, including existing submissions: those already older are deleted immediately and cannot be restored. null (the default) keeps submissions until someone deletes them. Site administrators only (never an Extension credential); stored on the Site, not per version. The response reports form_submission_retention { updated, deleted }. Partial submissions keep their form\'s partial_ttl_days.'),
|
|
92
92
|
render_version: z.number().int().min(1).optional().describe('Platform render version. Platform output changes ship as new versions so existing sites never change look on their own. Upgrade only after previewing (get_preview_link render_version) and with the user\'s approval; the tr-upgrade-rendering skill compares every page. Lowering it returns to an earlier version.'),
|
|
93
|
-
typography: z.object({ ratio_mobile: z.number().min(1.1).max(1.5).optional(), ratio_desktop: z.number().min(1.1).max(1.5).optional(), rhythm: z.number().min(0.5).max(2).optional(), line_length: z.union([z.number().min(40).max(90), z.literal('none')]).optional() }).strict().optional().describe('Fluid design controls (render version 10+). Base size is fonts.size_base. line_length caps prose at 40–90 characters (default 65), or "none" for no measure: prose fills its column, so templates that own their text columns need no --measure-prose custom CSS.
|
|
94
|
-
design_scales: z.record(z.string(), z.record(z.string(), z.union([z.string(), z.object({ mobile: z.string().optional(), tablet: z.string().optional(), laptop: z.string().optional(), desktop: z.string().optional(), wide: z.string().optional() }).strict()]))).optional().describe('Site token scales (
|
|
93
|
+
typography: z.object({ ratio_mobile: z.number().min(1.1).max(1.5).nullable().optional(), ratio_desktop: z.number().min(1.1).max(1.5).nullable().optional(), rhythm: z.number().min(0.5).max(2).nullable().optional(), line_length: z.union([z.number().min(40).max(90), z.literal('none')]).nullable().optional() }).strict().nullable().optional().describe('Fluid design controls (render version 10+). Base size is fonts.size_base. line_length caps prose at 40–90 characters (default 65), or "none" for no measure: prose fills its column, so templates that own their text columns need no --measure-prose custom CSS. Merged into the stored typography: only the controls you pass change, null resets one control to its default, and typography: null resets them all.'),
|
|
94
|
+
design_scales: z.record(z.string(), z.record(z.string(), z.union([z.string(), z.object({ mobile: z.string().optional(), tablet: z.string().optional(), laptop: z.string().optional(), desktop: z.string().optional(), wide: z.string().optional() }).strict()]).nullable()).nullable()).nullable().optional().describe('Site token scales, merged per step: only the steps you pass change (a responsive map replaces that step\'s previous value), a step set to null returns to the platform default, a scale set to null resets that scale, and design_scales: null resets every scale. Scales: type_size xs/sm/md/lg/xl/2xl/3xl; space none/xs/sm/md/lg/xl in px/rem/em or clamp(min, length + vw, max), or responsive maps; leading tight/snug/normal/relaxed/loose as unitless 1–2. Steps never set use platform defaults.'),
|
|
95
95
|
colors: z.record(z.string(), z.string().nullable()).optional().describe('Palette: primary, secondary, accent, background, surface, surface_hover, text, text_light (shallow-merged). Optional on_primary, on_secondary, on_accent set the text colour on that theme colour (buttons, badges, tabs, call-to-action sections, styles using the on_* tokens) as a hex colour such as "#ffffff"; null returns to the automatic black or white (chosen by APCA from render version 8, by the WCAG 2 ratio before). A chosen on_* colour applies on every render version. The response lists `on_colors` with each one\'s APCA Lc and WCAG 2 ratio; a choice below APCA Lc 60 (button text, 16px/600) is kept and returned as a warning. Prefer the automatic choice unless the brand specifies a colour.'),
|
|
96
96
|
fonts: z.record(z.string(), z.unknown()).optional().describe('heading, body, mono (Google Fonts family or "system"), size_base (px) and smoothing: "auto" (browser default) or "antialiased" (thinner text on macOS, for light text on dark backgrounds); null clears smoothing. Unset smoothing is auto from render version 6. delivery: "self_hosted" (default: published pages load the font files from the site itself, no request to Google before consent) or "google" (Google Fonts CDN).'),
|
|
97
97
|
contact: z
|
package/dist/version.js
CHANGED
package/dist/workspace.js
CHANGED
|
@@ -65,6 +65,19 @@ Public documentation: https://typeroll.com/docs/llms.txt
|
|
|
65
65
|
explicitly; the hosted server cannot read this workspace file.
|
|
66
66
|
- Distinguish working copies, saved CMS content and deployed output. Save within
|
|
67
67
|
the user's scope, review previews and deploy only when explicitly authorized.
|
|
68
|
+
- Preview your edits with get_preview_link include_working_copy: true for the
|
|
69
|
+
changed Page (page_id or slug); use frame_url for rendering checks and
|
|
70
|
+
screenshots. Save working copies before publishing.
|
|
71
|
+
- Before publishing, run trigger_deploy dry_run: true and read
|
|
72
|
+
get_publication_impact. A publication ships everything saved on the Site,
|
|
73
|
+
including other people's and other sessions' changes. If it lists changes you
|
|
74
|
+
did not make, stop and find out whose they are. After an app version switch,
|
|
75
|
+
dry-run and publish soon: live keeps the published version until then.
|
|
76
|
+
- Before a render_version upgrade, compare previews at the current and target
|
|
77
|
+
version (tr-upgrade-rendering), not the live site afterwards.
|
|
78
|
+
- On your own computer, run request-heavy steps slowly: ISPs, routers and DNS
|
|
79
|
+
can throttle rapid requests. Prefer a cloud session for large crawls, media
|
|
80
|
+
copies and full-site checks (scripts/README.md).
|
|
68
81
|
- Check get_import_readiness before any import. For new uploads use signed direct
|
|
69
82
|
upload/finalization. Never put image bytes or customer secrets in Git.
|
|
70
83
|
- Inspect desktop/mobile layouts and interaction states. Read changes back.
|
|
@@ -84,7 +97,8 @@ tr-import-url, tr-migrate-astro or tr-migrate-multisite). Record text_intent and
|
|
|
84
97
|
in brief/migration.md; design includes images. Ask if either is unclear. Standard blocks first, reviewed
|
|
85
98
|
custom types next, documented HTML exceptions last. Preserve or meaningfully
|
|
86
99
|
redirect every old public URL. Import completion is not block reconstruction
|
|
87
|
-
or launch acceptance.
|
|
100
|
+
or launch acceptance. A migration is finished only when no media or Page has
|
|
101
|
+
failed, or each failure is reviewed and accepted. Compare text and design/images separately: preserved dimensions to the source,
|
|
88
102
|
renewed dimensions to their approved brief. New design never permits rewriting preserved text. Start with workflows/migration.md for the kickoff
|
|
89
103
|
prompt. The agent rebuilds imported HTML using ordinary block tools; the owner
|
|
90
104
|
does not need to manually convert each Page. No automatic converter is available.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeroll/mcp-server",
|
|
3
3
|
"mcpName": "io.github.Typeroll/typeroll",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.134",
|
|
5
5
|
"description": "Typeroll CMS MCP server \u2013 connect AI agents to the REST API to manage content and publish static websites.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -37,7 +37,10 @@ So, always:
|
|
|
37
37
|
1. Get a URL for the version under review. While iterating, use the DB-live
|
|
38
38
|
`get_preview_link` (mint once, reuse — defaults to a 24h TTL) — it renders
|
|
39
39
|
from the DB with no build, so fixes show on reload without re-deploying, and
|
|
40
|
-
it's the loop for content and layout review (screenshots, reading).
|
|
40
|
+
it's the loop for content and layout review (screenshots, reading). To see
|
|
41
|
+
your own unsaved edits, mint it with `include_working_copy: true` and the
|
|
42
|
+
changed page (`page_id` or `slug`, so its path is in the link); screenshot
|
|
43
|
+
its `frame_url`, the rendered page without the wrapper. It is
|
|
41
44
|
NOT a measurement surface: it serves the page from the portal origin as a
|
|
42
45
|
nested frame in an opaque-origin sandbox, so evaluate/DOM/computed-style
|
|
43
46
|
reads from your browser tool do not reach it reliably, the same-origin
|
|
@@ -55,6 +58,9 @@ So, always:
|
|
|
55
58
|
3. If you run several variants with one shared browser profile, do them
|
|
56
59
|
SEQUENTIALLY — parallel browser agents on one profile contaminate each other's
|
|
57
60
|
tabs/screenshots.
|
|
61
|
+
4. On the user's own computer, load pages slowly (a pause between page loads,
|
|
62
|
+
back off on 429/503): home ISPs, routers and DNS resolvers can throttle or
|
|
63
|
+
block many rapid requests. Run full-site sweeps in a cloud session.
|
|
58
64
|
|
|
59
65
|
## The dimensions — run each, record the result
|
|
60
66
|
|
package/skills/tr-edit-site.md
CHANGED
|
@@ -36,6 +36,10 @@ description: Edit or create Typeroll pages with a person’s usual AI assistant.
|
|
|
36
36
|
user has authorized saving. `save: true` or `commit_working_copy` makes the
|
|
37
37
|
draft durable; saving and deploying are different actions. Publish only
|
|
38
38
|
when authorized and readiness passes. Report the actual result and URL.
|
|
39
|
+
7. Before a real deploy, run `trigger_deploy` with `dry_run: true` and read
|
|
40
|
+
`get_publication_impact`. A publication ships everything saved on the
|
|
41
|
+
site, including changes by other people and other agent sessions. If the
|
|
42
|
+
impact lists changes you did not make, stop and ask whose they are.
|
|
39
43
|
|
|
40
44
|
## Everyday requests
|
|
41
45
|
|
|
@@ -47,7 +51,9 @@ page's `url` (its path). The public address is `get_site` → `urls.production`
|
|
|
47
51
|
plus that path, and it serves the page only after it is published and
|
|
48
52
|
deployed. Never invent a domain; when there is none, say why and offer a
|
|
49
53
|
preview instead: `get_preview_link page_id=… include_working_copy:true` shows
|
|
50
|
-
drafts and unpublished pages
|
|
54
|
+
drafts and unpublished pages, with the page's path in the link. Mint one link
|
|
55
|
+
and reuse it while iterating. For screenshots and rendering checks, open its
|
|
56
|
+
`frame_url` (the rendered page without the preview wrapper).
|
|
51
57
|
|
|
52
58
|
**Images the user provides.** Upload first: a URL with `upload_media_from_url`,
|
|
53
59
|
a local file with `create_upload_url` (see `tr-images`); `list_media` finds
|
|
@@ -88,7 +94,10 @@ publish again once the engine is idle. `retry_deploy_verification` only
|
|
|
88
94
|
retries public verification of an already-served publication
|
|
89
95
|
(`publication_observation_timeout`, `publication_cache_refresh_*`); a build or
|
|
90
96
|
engine-side static verification failure needs a new publish after fixing the
|
|
91
|
-
reported cause.
|
|
97
|
+
reported cause. After switching an app's version (for example
|
|
98
|
+
`activate_extension_release`), dry-run and publish soon, with approval: the
|
|
99
|
+
live pages keep the version they were published with until the next
|
|
100
|
+
publication.
|
|
92
101
|
|
|
93
102
|
**Site-wide changes are composition, not a series of page edits.** "Change
|
|
94
103
|
every hero", "a CTA on every product page", "our phone number in every
|
package/skills/tr-import-url.md
CHANGED
|
@@ -62,6 +62,11 @@ Parse `<a href>` links to discover internal pages. Build a list:
|
|
|
62
62
|
Exclude private/session/admin URLs deliberately. Inventory public pagination and
|
|
63
63
|
query routes and keep them working or map relevant redirects. Do not silently retire public routes.
|
|
64
64
|
|
|
65
|
+
Fetch slowly when you run on the user's own computer: one or two pages at a
|
|
66
|
+
time with a pause, and back off on 429/503. An ISP, router or DNS resolver can
|
|
67
|
+
throttle or block many rapid requests to one host. Prefer a cloud session for
|
|
68
|
+
large crawls.
|
|
69
|
+
|
|
65
70
|
**Map source styling to named styles.** A class the source uses for a
|
|
66
71
|
recurring treatment (`.eyebrow`, `.lead`, `.btn-outline`, `.section-dark`)
|
|
67
72
|
becomes a site style with `create_style` and is applied with `style_id`. A
|
|
@@ -161,7 +166,10 @@ Walk through every imported page with the user. Common issues:
|
|
|
161
166
|
|
|
162
167
|
### 7. Publish + deploy
|
|
163
168
|
|
|
164
|
-
After approval, save working copies and confirm publishing readiness
|
|
169
|
+
After approval, save working copies and confirm publishing readiness. Run
|
|
170
|
+
`trigger_deploy dry_run=true` and read `get_publication_impact` first: the
|
|
171
|
+
publication ships everything saved on the site, including other sessions'
|
|
172
|
+
changes; stop and ask about any you did not make.
|
|
165
173
|
```
|
|
166
174
|
batch_update_pages updates=[
|
|
167
175
|
{page_id: "om-oss", patch: {status: "published"}},
|
|
@@ -174,7 +182,9 @@ get_migration_launch_report
|
|
|
174
182
|
```
|
|
175
183
|
|
|
176
184
|
This is candidate verification, not permission to change traffic DNS. Every old
|
|
177
|
-
public URL must serve its content or a relevant redirect before cutover.
|
|
185
|
+
public URL must serve its content or a relevant redirect before cutover. The
|
|
186
|
+
migration is finished only when no media or page has failed, or each failure is
|
|
187
|
+
reviewed and accepted; check the live pages' images once after publication.
|
|
178
188
|
|
|
179
189
|
## Platform-specific notes
|
|
180
190
|
|
|
@@ -245,6 +245,11 @@ A cluster of one is meaningless markup.
|
|
|
245
245
|
## Phase 7 — Verify BEFORE touching DNS
|
|
246
246
|
|
|
247
247
|
Deploy each site (`trigger_deploy`), then check what it actually serves.
|
|
248
|
+
Dry-run first (`dry_run: true`) and read `get_publication_impact`: a
|
|
249
|
+
publication ships everything saved on that site, including other sessions'
|
|
250
|
+
changes. Stop and ask about any change you did not make. On the user's own
|
|
251
|
+
computer, run the per-site checks slowly; home connections throttle many rapid
|
|
252
|
+
requests, so prefer a cloud session for full-site checks.
|
|
248
253
|
|
|
249
254
|
**Publish one site at a time.** All sites in an organization share one
|
|
250
255
|
organization build engine, and its runners claim the oldest task in the
|
package/skills/tr-migrate-wp.md
CHANGED
|
@@ -214,6 +214,9 @@ a. Choose access based on missing evidence, not a mandatory plugin install:
|
|
|
214
214
|
Do not ask the owner to install the helper when public sources cover the scope.
|
|
215
215
|
Inventory both Pages and posts (including sitemap-excluded public records),
|
|
216
216
|
crawl internal links and inspect redirects, menus and CSS background images.
|
|
217
|
+
On the user's own computer, crawl and download slowly (one or two requests
|
|
218
|
+
at a time, back off on 429/503): an ISP, router or DNS resolver can throttle
|
|
219
|
+
or block rapid requests. Prefer a cloud session for large sites.
|
|
217
220
|
Do not claim the helper exports a field without reading its current contract.
|
|
218
221
|
The helper is distributed through Typeroll's documented package; do not claim
|
|
219
222
|
WordPress.org availability. Listing it there is separate publication work.
|
|
@@ -375,7 +378,10 @@ suggestion; leave it if the user chose to skip it.
|
|
|
375
378
|
The report warns and never blocks a publication. A clean report is not approval
|
|
376
379
|
to publish: publish only when the user has approved it.
|
|
377
380
|
|
|
378
|
-
When the user signs off:
|
|
381
|
+
When the user signs off, dry-run first: `trigger_deploy dry_run=true` and
|
|
382
|
+
`get_publication_impact`. The publication ships everything saved on the site,
|
|
383
|
+
including other people's and other sessions' changes; stop and ask about any
|
|
384
|
+
you did not make. Then:
|
|
379
385
|
|
|
380
386
|
```
|
|
381
387
|
read_site_readiness
|
|
@@ -389,7 +395,10 @@ get_deploy_status job_id=<id> # poll
|
|
|
389
395
|
```
|
|
390
396
|
|
|
391
397
|
The readiness report does not replace `get_migration_launch_report`: URL
|
|
392
|
-
parity and SEO acceptance remain the migration's own launch gate.
|
|
398
|
+
parity and SEO acceptance remain the migration's own launch gate. Do not call
|
|
399
|
+
the migration finished while `read_organization_media_migration` lists
|
|
400
|
+
`failed_media` for the site or a page import failed, unless each failure is
|
|
401
|
+
reviewed and accepted; check the live pages' images once after publication.
|
|
393
402
|
|
|
394
403
|
Run `read_site_readiness` again after the publication. It reads saved content
|
|
395
404
|
and settings, so confirm the rest on the live site: the AI crawler zone check
|
|
@@ -113,6 +113,12 @@ copying prose: retain decoded labels, href paths, query parameters, fragments,
|
|
|
113
113
|
`target` and meaningful `rel` tokens. A source CSS class may identify a CTA
|
|
114
114
|
whose appearance would disappear when copied into prose.
|
|
115
115
|
|
|
116
|
+
Capture and crawl the source slowly when you run on the user's own computer:
|
|
117
|
+
an ISP, router or DNS resolver can throttle or block many rapid requests to one
|
|
118
|
+
host, and the failures look like a broken source. Load a few pages at a time
|
|
119
|
+
with pauses, back off on 429/503 (honour `Retry-After`), and prefer a cloud
|
|
120
|
+
session for large crawls, media copies and full-site screenshot runs.
|
|
121
|
+
|
|
116
122
|
Before removing builder wrappers/classes, preserve the information they carry:
|
|
117
123
|
anchors, lazy/srcset/background images, captions, tables, ordering, downloads,
|
|
118
124
|
embeds and interactions. Content modernization is a separate decision.
|
|
@@ -303,6 +309,11 @@ and zero unexplained regressions against that reference. `FAIL` or `UNVERIFIED`
|
|
|
303
309
|
technical publication has approval. An intentional deviation needs exact before/
|
|
304
310
|
after evidence, specific user benefit and accepted scope; “cleaner” is not a reason.
|
|
305
311
|
|
|
312
|
+
Do not call the migration finished while its status shows failed media or
|
|
313
|
+
Pages (`read_organization_media_migration` → `failed_media`, failed imports or
|
|
314
|
+
inventory rows), unless each failure is reviewed and its acceptance recorded.
|
|
315
|
+
After the first publication, check the live pages' images once.
|
|
316
|
+
|
|
306
317
|
Preserve-mode examples from a moving-services migration:
|
|
307
318
|
|
|
308
319
|
| Surface | Passing evidence | Separate visual result |
|
package/skills/tr-new-site.md
CHANGED
|
@@ -449,11 +449,16 @@ deployment.
|
|
|
449
449
|
|
|
450
450
|
```
|
|
451
451
|
read_site_readiness
|
|
452
|
+
trigger_deploy dry_run=true # read get_publication_impact before the real deploy
|
|
452
453
|
trigger_deploy
|
|
453
454
|
get_deploy_status job_id=<id>
|
|
454
455
|
read_site_readiness
|
|
455
456
|
```
|
|
456
457
|
|
|
458
|
+
A publication ships everything saved on the site, including changes by other
|
|
459
|
+
people and other agent sessions. If the impact lists changes you did not make,
|
|
460
|
+
stop and ask whose they are.
|
|
461
|
+
|
|
457
462
|
Run `read_site_readiness` again after the publication. It reads saved content
|
|
458
463
|
and settings, so confirm the rest on the live site: the AI crawler zone check
|
|
459
464
|
needs the site's website host, and a Search Console property verified by DNS
|
|
@@ -289,10 +289,15 @@ permission):
|
|
|
289
289
|
```
|
|
290
290
|
read_site_readiness # on the branch, before the merge
|
|
291
291
|
merge_branch version_id="<branch>" # branch's diffs land on main
|
|
292
|
+
trigger_deploy dry_run=true # then read get_publication_impact
|
|
292
293
|
trigger_deploy
|
|
293
294
|
get_deploy_status job_id=<id> # poll until succeeded
|
|
294
295
|
```
|
|
295
296
|
|
|
297
|
+
A deploy ships everything saved on main, including other people's and other
|
|
298
|
+
sessions' changes. If `get_publication_impact` lists changes that are not in
|
|
299
|
+
the branch, stop and ask whose they are before the real deploy.
|
|
300
|
+
|
|
296
301
|
Optionally, after a successful deploy:
|
|
297
302
|
|
|
298
303
|
```
|
|
@@ -27,20 +27,29 @@ comparison first.
|
|
|
27
27
|
the home page, one page per content type and template, and every page
|
|
28
28
|
whose blocks use a component named in `upgrades[].changes`.
|
|
29
29
|
|
|
30
|
-
3. **Mint two links per page set.** One `get_preview_link`
|
|
31
|
-
`render_version` (current) and one with `render_version: latest`
|
|
32
|
-
Both show saved content. Mint each once and reuse it; internal
|
|
33
|
-
the token.
|
|
30
|
+
3. **Mint two links per page set, before upgrading.** One `get_preview_link`
|
|
31
|
+
without `render_version` (current) and one with `render_version: latest`
|
|
32
|
+
(target). Both show saved content. Mint each once and reuse it; internal
|
|
33
|
+
links keep the token. Put the page's path in each link (`page_id` or
|
|
34
|
+
`slug`) and capture its `frame_url`, the rendered page without the preview
|
|
35
|
+
wrapper. Compare these two, never the live site after the upgrade: once
|
|
36
|
+
upgraded and published, the old look is gone and regressions hide in it.
|
|
34
37
|
|
|
35
38
|
4. **Screenshot both** at 390, 768 and 1440 px wide, full page, after fonts
|
|
36
39
|
and images have loaded (`document.fonts.ready`, scroll to the end to
|
|
37
40
|
trigger lazy images, then back to the top). Use a headless browser with a
|
|
38
|
-
fixed viewport and `reducedMotion: 'reduce'`.
|
|
41
|
+
fixed viewport and `reducedMotion: 'reduce'`. Also record computed boxes
|
|
42
|
+
(top, height, margin, padding, gap) of each section and heading, for
|
|
43
|
+
example with the starter's `layout_trace.cjs`. On your own computer, load
|
|
44
|
+
pages slowly; home connections can throttle many rapid requests (the
|
|
45
|
+
starter's browser tools pace page loads). Use a cloud session for large sites.
|
|
39
46
|
|
|
40
47
|
5. **Compare.** Pixel-diff each pair (same size, small per-pixel tolerance)
|
|
41
48
|
and record the changed area and the bounding boxes of changed regions.
|
|
42
|
-
Crop each region from both versions.
|
|
43
|
-
|
|
49
|
+
Crop each region from both versions. Compare the computed boxes too: a
|
|
50
|
+
vertical shift (content moved up or down) is a difference even when each
|
|
51
|
+
block looks the same. Ignore differences confined to embedded third-party
|
|
52
|
+
frames (maps, booking widgets, video).
|
|
44
53
|
|
|
45
54
|
6. **Report** per page and width: unchanged, or the cropped before/after
|
|
46
55
|
regions with a one-line description ("links in body text are underlined",
|
|
@@ -55,7 +64,10 @@ comparison first.
|
|
|
55
64
|
the button in the form grid targets `form > .form-actions`. Version 17
|
|
56
65
|
loads weights written in CSS: propose removing `fonts.load` entries that
|
|
57
66
|
only existed for them, and element rules that were scoped only to keep
|
|
58
|
-
them off the cookie banner.
|
|
67
|
+
them off the cookie banner. Any rule that targets platform markup
|
|
68
|
+
(`.block-section-inner`, `[data-block=...]` internals) can change with a
|
|
69
|
+
render version: prefer block settings and named styles, and re-check such
|
|
70
|
+
rules at all three widths after the upgrade.
|
|
59
71
|
|
|
60
72
|
7. **Ask before upgrading.** Never upgrade on your own. If the user wants to
|
|
61
73
|
keep a specific old look, solve it with a site style or page CSS first and
|
|
@@ -63,7 +75,9 @@ comparison first.
|
|
|
63
75
|
|
|
64
76
|
8. **Upgrade** with `update_site_settings render_version: <latest>` (pass
|
|
65
77
|
`version` to do it on a branch first). The preview changes at once; the
|
|
66
|
-
live site changes at the next deploy.
|
|
78
|
+
live site changes at the next deploy. Run `trigger_deploy` with
|
|
79
|
+
`dry_run: true` and read `get_publication_impact` first: the deploy also
|
|
80
|
+
ships every other saved change. To undo, write the previous number.
|
|
67
81
|
|
|
68
82
|
## Platform fixes behind a newer version
|
|
69
83
|
|
|
@@ -80,5 +94,7 @@ paddings or custom CSS); those workarounds outlive the fix and fight it.
|
|
|
80
94
|
- Lazy images and web fonts cause false differences. Wait for them in both
|
|
81
95
|
screenshots.
|
|
82
96
|
- Comparing only the home page misses changes in components it doesn't use.
|
|
97
|
+
- Comparing against the live site after upgrading hides regressions: the
|
|
98
|
+
baseline is gone. Capture both previews before the upgrade.
|
|
83
99
|
- Don't encode a workaround in custom CSS to resist an upgrade without
|
|
84
100
|
telling the user; it becomes a hidden fork of the platform styles.
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
- Confirm Organization, Site, Version and deployed/source identity.
|
|
4
4
|
- Run `python3 scripts/typeroll/check_unsaved.py` before trigger_deploy. Review
|
|
5
5
|
and explicitly save authorized Pages and partials; templates save immediately.
|
|
6
|
+
- Then run `trigger_deploy` with `dry_run: true` and read `get_publication_impact`.
|
|
7
|
+
A publication ships everything saved on the Site, including other people's and
|
|
8
|
+
other sessions' changes. Stop and find out about any change you did not make.
|
|
9
|
+
- Review your own edits with `get_preview_link` `include_working_copy: true` for
|
|
10
|
+
the changed Page (`page_id` or `slug`); use its `frame_url` for screenshots.
|
|
11
|
+
- After switching an app version, dry-run and publish soon: the live site keeps
|
|
12
|
+
the version it was published with until the next publication.
|
|
6
13
|
- Publish one Site at a time per Organization (shared build engine): start the
|
|
7
14
|
next only when the previous job finished and read_organization_build_engine
|
|
8
15
|
shows no active_jobs.
|
|
@@ -20,6 +27,12 @@
|
|
|
20
27
|
- Check home title/suffix, metadata, canonical/indexing policy and JSON-LD.
|
|
21
28
|
- Run check_url_parity.py and check_assets.py on the deployed candidate; compare
|
|
22
29
|
final targets with the approved URL map and flatten accidental redirect chains.
|
|
30
|
+
- On your own computer, keep the scripts' local request profile: home ISPs,
|
|
31
|
+
routers and DNS can throttle rapid requests. Run full-site checks, URL parity
|
|
32
|
+
and screenshot runs on large sites in a cloud session (scripts/README.md).
|
|
33
|
+
- A migration is finished only when no media or Page has failed, or each failure
|
|
34
|
+
is reviewed and accepted in brief/migration.md. After publication, check the
|
|
35
|
+
live Pages' images once.
|
|
23
36
|
- Treat 403/network/DNS failures as unverified. Do not claim search-bot access
|
|
24
37
|
from a user-agent string or turn off customer protection without approval.
|
|
25
38
|
- Record tested pages, viewports, revision, results and unresolved issues per QA
|
|
@@ -83,6 +96,11 @@ read before edits, update afterward, check external links at each editorial revi
|
|
|
83
96
|
and archive notes for confirmed removed Pages under pages/archived/. Refreshing
|
|
84
97
|
generated facts never counts as a completed review. Keep notes out of public output.
|
|
85
98
|
|
|
99
|
+
- Before a render-version upgrade, screenshot 390, 768 and 1440px and record
|
|
100
|
+
computed boxes from a preview at the current version and one at the target
|
|
101
|
+
`render_version`. Compare those two; comparing the live site after the upgrade
|
|
102
|
+
hides regressions. Vertical shifts count as differences. Re-check site or Page
|
|
103
|
+
CSS that targets platform markup (`.block-section-inner`, `[data-block]` internals).
|
|
86
104
|
- After a Core rendering upgrade, compare typography and spacing at 375, 768
|
|
87
105
|
and 1280px. Opening headings in cards, boxes and sections must not add the
|
|
88
106
|
editorial heading's top margin. Check actual fonts as well as the Site settings
|
|
@@ -21,6 +21,27 @@ shared media operations instead. It is a small hosted MCP helper for API keys,
|
|
|
21
21
|
not a replacement OAuth client or a new general CRUD CLI. REST is also supported
|
|
22
22
|
by Typeroll if your integration already uses it.
|
|
23
23
|
|
|
24
|
+
## Request pace: your computer or a cloud session
|
|
25
|
+
|
|
26
|
+
Home connections throttle. An ISP, router or DNS resolver can slow down or block
|
|
27
|
+
many rapid requests from one machine, both to the old website during a migration
|
|
28
|
+
and to the new site during checks. The network tools therefore pace themselves
|
|
29
|
+
(`pacing.py` for the Python checks, `browser.cjs` between browser page loads):
|
|
30
|
+
|
|
31
|
+
| Profile | When | Concurrency | Between requests per host |
|
|
32
|
+
| --- | --- | --- | --- |
|
|
33
|
+
| `local` | default | 2 | 300 ms |
|
|
34
|
+
| `cloud` | `CLAUDE_CODE_REMOTE=true`, `CODESPACES`, `GITHUB_ACTIONS` or `CI` is set | 5 | 100 ms |
|
|
35
|
+
|
|
36
|
+
Each tool prints the profile it uses. Set `TYPEROLL_REQUEST_PROFILE=local|cloud`
|
|
37
|
+
to choose one and `TYPEROLL_REQUEST_CONCURRENCY=N` (1–16) to change concurrency.
|
|
38
|
+
429 and 5xx answers and network errors are retried up to three times with
|
|
39
|
+
backoff, honouring `Retry-After`; a host that asks for more than a minute is
|
|
40
|
+
reported, not hammered. On your own computer, keep the local profile and check
|
|
41
|
+
a few pages first. Run large crawls, media copies and full-site checks in a
|
|
42
|
+
cloud session (Claude Code on the web, Codespaces, CI). Do the same for your
|
|
43
|
+
own crawling or copying of the old site.
|
|
44
|
+
|
|
24
45
|
## Before publication
|
|
25
46
|
|
|
26
47
|
```sh
|
|
@@ -31,6 +52,11 @@ Exit 1 lists unsaved Pages **and partials**. Review those changes; save only the
|
|
|
31
52
|
work authorized for this publication, then run again. Templates save immediately.
|
|
32
53
|
A working-copy preview is not proof of saved output. Never auto-save other work.
|
|
33
54
|
|
|
55
|
+
Then run `trigger_deploy` with `dry_run: true` and read `get_publication_impact`.
|
|
56
|
+
A publication ships everything saved on the Site, including changes by other
|
|
57
|
+
people and other agent sessions. If the list has changes you did not make, stop
|
|
58
|
+
and find out whose they are before publishing.
|
|
59
|
+
|
|
34
60
|
## After an authorized publication
|
|
35
61
|
|
|
36
62
|
```sh
|
|
@@ -46,8 +72,8 @@ detects loops and flags chains beyond a single redirect (one initial slash
|
|
|
46
72
|
normalization is allowed). This does **not** prove the final destination is the
|
|
47
73
|
editorially correct page: compare with the approved URL map too. No inventory
|
|
48
74
|
is a failure, not a passing zero-row check. Asset QA uses resolved routes,
|
|
49
|
-
checks published/unlisted Pages, relative URLs, srcset and downloads,
|
|
50
|
-
|
|
75
|
+
checks published/unlisted Pages, relative URLs, srcset and downloads, sends HEAD
|
|
76
|
+
requests at the request profile's concurrency and falls back to GET when HEAD is unsupported. CSS
|
|
51
77
|
backgrounds, authenticated assets and dynamically loaded resources need browser QA.
|
|
52
78
|
Neither tool spoofs a search crawler. A 403/DNS/network failure is unverified;
|
|
53
79
|
inspect access policy rather than treating it as a broken migration or a pass.
|
|
@@ -64,9 +90,11 @@ inspect access policy rather than treating it as a broken migration or a pass.
|
|
|
64
90
|
It is not transactional: a failure can leave a partial draft; inspect before retry.
|
|
65
91
|
- `shootframe.cjs OUT-PREFIX SIGNED-PREVIEW-URL [widths...]`: selects only the
|
|
66
92
|
Typeroll preview iframe, reports fonts/hosts/overflow. Signed URLs are secrets;
|
|
67
|
-
pass privately, never paste into committed reports or shell history.
|
|
68
|
-
|
|
69
|
-
|
|
93
|
+
pass privately, never paste into committed reports or shell history. For your
|
|
94
|
+
own changes, mint the link with `include_working_copy: true` and the changed
|
|
95
|
+
Page (`page_id` or `slug`), and pass its `frame_url`. Direct-frame capture
|
|
96
|
+
checks rendering only; test Extension storage/navigation/handoffs in the
|
|
97
|
+
original wrapper because those features depend on its parent bridge.
|
|
70
98
|
- `layout_trace.cjs URL [width] [selector]`: computed spacing of ancestors and
|
|
71
99
|
next section. Works with a direct page or Typeroll preview.
|
|
72
100
|
- `contact_sheet.py OUT-PREFIX COLS TILE-WIDTH PNG...`: Pillow contact sheets.
|
|
@@ -80,9 +108,9 @@ inspect access policy rather than treating it as a broken migration or a pass.
|
|
|
80
108
|
|
|
81
109
|
Browser reports exit nonzero for missing images, overflow, unexpected H1 count,
|
|
82
110
|
failed requests or incomplete scrolling. They keep third-party failures visible.
|
|
83
|
-
Network checks retry only
|
|
84
|
-
exports stay under ignored qa/reports/ or sources/private/. Do not
|
|
85
|
-
URLs, personal data or customer assets. Adapt scripts deliberately and run tests
|
|
111
|
+
Network checks retry only bounded reads, paced per host. All reports, screenshots
|
|
112
|
+
and source exports stay under ignored qa/reports/ or sources/private/. Do not
|
|
113
|
+
commit signed URLs, personal data or customer assets. Adapt scripts deliberately and run tests
|
|
86
114
|
before applying broad changes. The workspace updater preserves your edits.
|
|
87
115
|
|
|
88
116
|
## Palette migration (Core 0.2.106 / MCP 0.45.80+)
|