@typeroll/mcp-server 0.45.134 → 0.45.136

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.
@@ -59,23 +59,82 @@ function placeholder(name, schema) {
59
59
  default: return `{${name}}`;
60
60
  }
61
61
  }
62
- function parameters(tool) {
62
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
+ const typeOf = (value) => value?.enum ? value.enum.map((item) => JSON.stringify(item)).join(' | ')
64
+ : value?.anyOf ? value.anyOf.map(typeOf).join(' | ')
65
+ : value?.type === 'array' ? `${typeOf(value.items)}[]`
66
+ : Array.isArray(value?.type) ? value.type.join(' | ') : value?.type ?? 'any';
67
+ /** The schema of an object, looking through nullable and optional unions. */
68
+ function objectSchema(value) {
69
+ if (value?.properties)
70
+ return value;
71
+ return (value?.anyOf ?? []).find((option) => option?.properties);
72
+ }
73
+ /**
74
+ * Where each tool input travels in a recorded call. The REST body is not the
75
+ * tool's input: a tool may turn an input into the path (`target` becomes
76
+ * `/containers/{kind}/{id}/blocks`) or send an object's fields at the top
77
+ * level of the body (`patch`). Each row names what REST takes, not the MCP
78
+ * argument.
79
+ */
80
+ function parameters(tool, args, omitted, call) {
63
81
  if (!tool.inputSchema)
64
82
  return [];
65
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
66
83
  const json = z.toJSONSchema(z.object(tool.inputSchema), { unrepresentable: 'any', io: 'input' });
67
84
  const required = new Set(json.required ?? []);
68
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
69
- const typeOf = (value) => value?.enum ? value.enum.map((item) => JSON.stringify(item)).join(' | ')
70
- : value?.anyOf ? value.anyOf.map(typeOf).join(' | ')
71
- : value?.type === 'array' ? `${typeOf(value.items)}[]`
72
- : Array.isArray(value?.type) ? value.type.join(' | ') : value?.type ?? 'any';
73
- return Object.entries(json.properties ?? {}).map(([name, value]) => ({
74
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
75
- name, type: typeOf(value), required: required.has(name), description: String(value?.description ?? ''),
76
- }));
85
+ const rows = [];
86
+ for (const [name, value] of Object.entries(json.properties ?? {})) {
87
+ if (omitted.has(name))
88
+ continue;
89
+ const given = args[name];
90
+ const row = { name, type: typeOf(value), required: required.has(name), description: String(value?.description ?? '') };
91
+ if (!call) {
92
+ rows.push({ ...row, in: 'body' });
93
+ continue;
94
+ }
95
+ // In a variant chosen by its path (a page by page_id), the path parameter is required.
96
+ if (call.path.includes(`{${name}}`)) {
97
+ rows.push({ ...row, in: 'path', required: row.required || omitted.size > 0 });
98
+ continue;
99
+ }
100
+ if (call.query.includes(name)) {
101
+ rows.push({ ...row, in: 'query' });
102
+ continue;
103
+ }
104
+ if (call.body.includes(name)) {
105
+ rows.push({ ...row, in: 'body' });
106
+ continue;
107
+ }
108
+ const shape = objectSchema(value);
109
+ if (shape && given && typeof given === 'object' && !Array.isArray(given)) {
110
+ const fields = Object.entries(shape.properties);
111
+ const inner = new Set(shape.required ?? []);
112
+ // An object whose placeholders make up the path: its fields are path parameters.
113
+ const inPath = fields.filter(([key]) => {
114
+ const leaf = given[key];
115
+ return typeof leaf === 'string' && /^\{[^}]+\}$/.test(leaf) && call.path.includes(leaf);
116
+ });
117
+ if (inPath.length) {
118
+ for (const [key, field] of inPath)
119
+ rows.push({ name: key, in: 'path', type: typeOf(field), required: true, description: String(field?.description ?? row.description) });
120
+ continue;
121
+ }
122
+ // An object sent field by field at the top level of the body.
123
+ const keys = Object.keys(given);
124
+ if (keys.length && keys.every(key => call.body.includes(key))) {
125
+ for (const [key, field] of fields)
126
+ rows.push({ name: key, in: 'body', type: typeOf(field), required: inner.has(key), description: String(field?.description ?? '') });
127
+ if (shape.additionalProperties && typeof shape.additionalProperties === 'object' || shape.additionalProperties === true) {
128
+ rows.push({ name: '…', in: 'body', type: 'any', required: false, description: `Other writable fields, also at the top level of the body. ${row.description}`.trim() });
129
+ }
130
+ continue;
131
+ }
132
+ }
133
+ rows.push({ ...row, in: call.method === 'GET' || call.method === 'DELETE' ? 'query' : 'body' });
134
+ }
135
+ return rows;
77
136
  }
78
- async function record(tool) {
137
+ async function record(tool, args) {
79
138
  const calls = [];
80
139
  const fetchImpl = (async (input, init) => {
81
140
  const url = new URL(String(input instanceof Request ? input.url : input));
@@ -101,7 +160,6 @@ async function record(tool) {
101
160
  return new Response('{}', { status: 200, headers: { 'content-type': 'application/json' } });
102
161
  });
103
162
  const client = new TyperollClient({ baseUrl: BASE, apiKey: 'typeroll_live_reference', fetchImpl });
104
- const args = EXAMPLE_ARGS[tool.name] ?? Object.fromEntries(Object.entries(tool.inputSchema ?? {}).map(([name, schema]) => [name, placeholder(name, schema)]));
105
163
  const realFetch = globalThis.fetch;
106
164
  globalThis.fetch = fetchImpl;
107
165
  let timer;
@@ -122,15 +180,45 @@ async function record(tool) {
122
180
  }
123
181
  return calls;
124
182
  }
183
+ /**
184
+ * The inputs each way of calling a tool is recorded with. A block tool that
185
+ * takes a container `target` reaches a page by `page_id` and a partial or
186
+ * PageTemplate by `target`, through different routes; both are recorded.
187
+ */
188
+ function exampleArgs(tool) {
189
+ const example = EXAMPLE_ARGS[tool.name];
190
+ if (example)
191
+ return [{ args: example, omitted: new Set() }];
192
+ const args = Object.fromEntries(Object.entries(tool.inputSchema ?? {}).map(([name, schema]) => [name, placeholder(name, schema)]));
193
+ const target = args.target;
194
+ if (!target || typeof target !== 'object' || !('kind' in target) || !('id' in target))
195
+ return [{ args, omitted: new Set() }];
196
+ const container = { ...args, target: { kind: '{kind}', id: '{id}' } };
197
+ delete container.page_id;
198
+ const containerVariant = { args: container, omitted: new Set(['page_id']) };
199
+ if (!('page_id' in args))
200
+ return [containerVariant];
201
+ const page = { ...args };
202
+ delete page.target;
203
+ return [{ args: page, omitted: new Set(['target']) }, containerVariant];
204
+ }
125
205
  export async function restReference() {
126
206
  const entries = [];
127
207
  for (const tool of ALL_TOOLS) {
128
208
  if (LOCAL_TOOLS.has(tool.name))
129
209
  continue;
130
- const calls = await record(tool);
210
+ const variants = [];
211
+ for (const { args, omitted } of exampleArgs(tool)) {
212
+ const calls = await record(tool, args);
213
+ variants.push({ calls, parameters: parameters(tool, args, omitted, calls[0]) });
214
+ }
215
+ const calls = variants.flatMap(variant => variant.calls);
216
+ const note = variants.length > 1 && tool.inputSchema && 'target' in tool.inputSchema
217
+ ? 'Over REST the container is part of the path: a page at the first address, a partial or PageTemplate (or a page) at the `containers` address. The MCP `target: { kind, id }` argument chooses that address; it is not a body key.'
218
+ : undefined;
131
219
  entries.push({
132
220
  tool: tool.name, effect: effectFor(tool.name), description: tool.description,
133
- site: calls.some(call => call.path.startsWith(`/api/v1/sites/${SITE}/`)), parameters: parameters(tool), calls,
221
+ site: calls.some(call => call.path.startsWith(`/api/v1/sites/${SITE}/`)), calls, variants, ...(note ? { note } : {}),
134
222
  });
135
223
  }
136
224
  return entries;
@@ -147,15 +235,6 @@ function area(entry) {
147
235
  const name = entry.site ? (segment ? generic : 'Details') : AREA_NAMES[segment] ?? generic;
148
236
  return entry.site ? `Site: ${name}` : name;
149
237
  }
150
- function where(parameter, call) {
151
- if (call.path.includes(`{${parameter.name}}`))
152
- return 'path';
153
- if (call.query.includes(parameter.name))
154
- return 'query';
155
- if (call.body.includes(parameter.name))
156
- return 'body';
157
- return call.method === 'GET' || call.method === 'DELETE' ? 'query' : 'body';
158
- }
159
238
  /** Markdown text outside code spans must not open HTML tags. */
160
239
  const prose = (text) => text.split('`').map((part, index) => index % 2 ? part : part.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')).join('`');
161
240
  const cell = (text) => prose(text).replace(/\|/g, '\\|').replace(/\s+/g, ' ').trim();
@@ -195,10 +274,15 @@ export function renderRestReference(entries) {
195
274
  lines.push(`\`${call.method} ${call.path}\``, '');
196
275
  }
197
276
  lines.push(`Permission: \`${entry.effect}\``, '', prose(entry.description.trim()), '');
198
- if (entry.parameters.length) {
277
+ const tables = entry.variants.filter(variant => variant.parameters.length);
278
+ if (entry.note)
279
+ lines.push(prose(entry.note), '');
280
+ for (const variant of tables) {
281
+ if (tables.length > 1)
282
+ lines.push(`Parameters of \`${variant.calls[0].method} ${variant.calls[0].path}\`:`, '');
199
283
  lines.push('| Parameter | In | Type | Required | Description |', '| --- | --- | --- | --- | --- |');
200
- for (const parameter of entry.parameters) {
201
- lines.push(`| \`${parameter.name}\` | ${where(parameter, entry.calls[0])} | ${cell(parameter.type)} | ${parameter.required ? 'yes' : 'no'} | ${cell(parameter.description)} |`);
284
+ for (const parameter of variant.parameters) {
285
+ lines.push(`| \`${parameter.name}\` | ${parameter.in} | ${cell(parameter.type)} | ${parameter.required ? 'yes' : 'no'} | ${cell(parameter.description)} |`);
202
286
  }
203
287
  lines.push('');
204
288
  }
@@ -6,7 +6,7 @@ function v(version) {
6
6
  export const deployTools = [
7
7
  {
8
8
  name: 'get_publication_impact',
9
- description: 'Read where a deploy lands and provisional net saved public-source changes against the selected version’s last verified publication. targets lists every public URL the publication serves (live domains first, then the temporary address); production: true means the site is cut over and a deploy publishes to live_domains. Reports additions, removals, shared inputs, metadata-only changes and unavailable baselines. Does not build or deploy. execution is automatic and reuse_verified is false before the build; inspect job.render_report afterwards for actual rendered/reused counts; source-level classification does not prove output reuse or cost savings.',
9
+ description: 'Read where a deploy lands and provisional net saved public-source changes against the selected version’s last verified publication. targets lists every public URL the publication serves (live domains first, then the temporary address); production: true means the site is cut over and a deploy publishes to live_domains. Reports additions, removals, shared inputs, metadata-only changes and unavailable baselines. changes_known: false (comparison baseline_unavailable) means nothing was compared: total 0 and an empty changes list then mean UNKNOWN, not no changes; baseline.reason says why (not_published, publication_not_verified, snapshot_without_source_baseline, baseline_snapshot_unreadable, baseline_identity_mismatch) and baseline.message what to do: the next publication still publishes every saved page; publish once to record a baseline, and use trigger_deploy dry_run: true meanwhile to validate the full build. platform_changes lists what Typeroll itself changed since the baseline (id core_commit or extension_runtime, with before, after and affects_output), never counted in total or changes: it is not an edit to the site; extension_runtime affects output only on a site with Extension installations. Does not build or deploy. execution is automatic and reuse_verified is false before the build; inspect job.render_report afterwards for actual rendered/reused counts; source-level classification does not prove output reuse or cost savings.',
10
10
  inputSchema: { version: versionParam },
11
11
  handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.get(siteId, 'publishing/impact', v(args.version)))),
12
12
  },
@@ -103,7 +103,7 @@ export const domainTools = [
103
103
  },
104
104
  {
105
105
  name: 'read_organization_build_engine', noSite: true,
106
- description: 'Read the selected provider, saved Cloudflare and GitHub build engines, and active jobs for the organization (each with job_id, site_id, kind and status: queued, running, or publishing while a built publication uploads and verifies; image preparation jobs are media-…). A queued job also has queue (the same object as get_deploy_status build_progress.queue: waiting_for_provider while the provider has not started a runner yet, waiting_for_other_builds while other jobs in this organization go first) and phase, its message; queueing is normal, do not retrigger. A job stays listed until its deploy reaches a final status, except a domain switch that is built and verified and only waits for DNS approval: it is listed under awaiting_approval, uses no build capacity, and does not block other sites from publishing. selection.auto_update says whether outdated engines are updated by the next publication (set_organization_build_auto_update); an engine with update_available runs older code than this Typeroll. Requires an organization API key; REST: GET /api/v1/publishing/builds. No provider credentials are returned.',
106
+ description: 'Read the selected provider, saved Cloudflare and GitHub build engines, and active jobs for the organization (each with job_id, site_id, kind and status: queued, running, or publishing while a built publication uploads and verifies; image preparation jobs are media-…). A queued job also has queue (the same object as get_deploy_status build_progress.queue: waiting_for_provider while the provider has not started a runner yet, waiting_for_other_builds while other jobs in this organization go first) and phase, its message; queueing is normal, do not retrigger. A job stays listed until its deploy reaches a final status, except a domain switch that is built and verified and only waits for DNS approval: it is listed under awaiting_approval, uses no build capacity, and does not block other sites from publishing. selection.auto_update says whether outdated engines are updated by the next publication (set_organization_build_auto_update); each engine (and the selected one at the top level) has update_available (boolean) and update_reason: engine_source_changed (older code than this Typeroll; publishing still works) or capability_missing (publishing is blocked until the engine is updated), else null. With selection.auto_update on, the next publication applies the update first; otherwise an organization admin updates it with setup_organization_build_engine when no build is running. Requires an organization API key; REST: GET /api/v1/publishing/builds. No provider credentials are returned.',
107
107
  inputSchema: {},
108
108
  handler: withErrorBoundary(async (_args, { client }) => ok(await client.rootGet('publishing/builds'))),
109
109
  },
@@ -127,6 +127,17 @@ export const extensionTools = [
127
127
  return ok(await client.get(siteId, `extensions/${encodeURIComponent(args.installation_id)}/diagnostics`));
128
128
  }),
129
129
  },
130
+ {
131
+ name: 'list_extension_variants',
132
+ description: 'List the variants of an installed app contract component (render_mode contract_component) as { variants: [{ id, label }], source }. The app defines them and their settings; a block instance stores only the variant id in its `variant` field (default `standard`) and changing a variant in the app is live on every page that uses it. Without a declared variants call the list is [{ id: "standard" }]. Fails with 502 when the app does not answer. Read permission is enough.',
133
+ inputSchema: {
134
+ installation_id: z.string().min(1),
135
+ component_id: z.string().min(1).describe('Component id from the installation manifest (frontend.components[].id).'),
136
+ },
137
+ handler: withErrorBoundary(async (args, { client, siteId }) => {
138
+ return ok(await client.get(siteId, `extensions/${encodeURIComponent(args.installation_id)}/variants`, { component_id: args.component_id }));
139
+ }),
140
+ },
130
141
  {
131
142
  name: 'launch_extension_admin_page',
132
143
  description: 'Issue a single-use, short-lived launch grant for one of the Extension\'s admin pages (manifest admin.pages), as opening the page in the portal does. Returns { launch_url, method, form, expires_at }: a browser tool must POST the `form` fields to launch_url before expires_at. The provider sees the caller as api-key:{prefix}. Treat the code as a credential. For approved native pages prefer call_extension_admin. The page\'s minimum_permission applies.',
@@ -40,8 +40,8 @@ const blockSchema = z.object({
40
40
  * `{ kind: 'page', id: page_id }`.
41
41
  */
42
42
  const targetSchema = z.object({
43
- kind: z.enum(['page', 'partial', 'template']),
44
- id: z.string(),
43
+ kind: z.enum(['page', 'partial', 'template']).describe('Container kind. All content uses kind=page; the same block editor applies to every content type.'),
44
+ id: z.string().describe('The page, partial (e.g. "header", "footer") or PageTemplate id.'),
45
45
  }).describe('Address a page, partial or PageTemplate by its ID. All content uses kind=page; the same block editor applies to every content type.');
46
46
  function v(version) {
47
47
  return version ? { version } : undefined;
@@ -53,7 +53,7 @@ function v(version) {
53
53
  * asks for the tree. Sent as a query parameter, which an older Core ignores
54
54
  * and answers with the tree, where an unknown body key would be refused.
55
55
  */
56
- const responseParam = z.enum(['summary', 'tree']).optional().describe('Answer shape. "summary" (default): the changed block, parent_id, slot_index, position, has_unsaved_changes and warnings. "tree": the whole block tree of the container.');
56
+ const responseParam = z.enum(['summary', 'tree']).optional().describe('Answer shape. "summary" (the MCP default): the changed block, parent_id, slot_index, position, has_unsaved_changes and warnings. "tree" (the REST default when omitted): the same fields plus the whole block tree of the container as `blocks`.');
57
57
  function writeQuery(version, response) {
58
58
  return { ...v(version), response: response ?? 'summary' };
59
59
  }
@@ -123,7 +123,7 @@ export const settingsTools = [
123
123
  scripts_necessary: z.string().optional().describe('Trusted script markup that runs before consent.'),
124
124
  scripts_optional: z.string().optional().describe('Trusted script markup activated only after full consent.'),
125
125
  reload_after_consent: z.boolean().optional(),
126
- manage_button: z.enum(['floating', 'none']).nullable().optional().describe('How visitors reopen the banner after choosing. `floating` (default) shows the "Cookies" button fixed bottom-left; `none` leaves it out, for example where it covers forms on mobile. With `none`, link to `#cookie-settings` from the footer (a menu `url` item with href "#cookie-settings" works): withdrawing consent must stay as easy as giving it, and the write returns a `cookie_reopen_link_missing` warning while no partial or menu has such a link. null restores the default.'),
126
+ manage_button: z.enum(['footer', 'floating', 'none']).nullable().optional().describe('How visitors reopen the banner after choosing. `footer` (the default from render version 19) adds a small "Cookie settings" link at the end of the site footer that takes the footer\'s colour and font; it is left out when the footer already links to `#cookie-settings`, so a site\'s own link keeps its look. `floating` (the default before render version 19) shows the "Cookies" button fixed bottom-left. `none` leaves both out: then link to `#cookie-settings` from the footer yourself (a menu `url` item with href "#cookie-settings" works), because withdrawing consent must stay as easy as giving it; the write returns a `cookie_reopen_link_missing` warning while no partial or menu has such a link. null restores the render version\'s default.'),
127
127
  labels: z.object({
128
128
  title: z.string().optional(),
129
129
  reject: z.string().optional(),
@@ -132,7 +132,8 @@ export const settingsTools = [
132
132
  privacy_link: z.string().optional(),
133
133
  manage: z.string().optional(),
134
134
  manage_button: z.string().optional(),
135
- }).optional().describe('Plain-text replacements for the banner heading, buttons and links (max 120 characters each). `manage` is the accessible name and `manage_button` the visible text of the floating button that reopens the banner (not the `manage_button` setting beside `labels`). Omitted or blank labels follow the page language: Swedish, Norwegian Bokmål, German, Dutch, Finnish, French, Polish, Italian, Spanish, otherwise English. Replaces the whole labels object.'),
135
+ footer_link: z.string().optional(),
136
+ }).optional().describe('Plain-text replacements for the banner heading, buttons and links (max 120 characters each). `manage` is the accessible name and `manage_button` the visible text of the floating button that reopens the banner (not the `manage_button` setting beside `labels`); `footer_link` is the text of the footer link ("Cookie settings"). Omitted or blank labels follow the page language: Swedish, Norwegian Bokmål, German, Dutch, Finnish, French, Polish, Italian, Spanish, otherwise English. Replaces the whole labels object.'),
136
137
  }).optional().describe('Native consent banner configuration. Partial updates preserve omitted fields. Script fields execute in visitor browsers and are accepted under the API key authority.'),
137
138
  language_sections: z.array(z.object({
138
139
  language: z.string().describe('BCP 47 tag matched against Page.language, such as "sv-SE". Not the site language.'),
@@ -150,6 +151,7 @@ export const settingsTools = [
150
151
  privacy_link: z.string().optional(),
151
152
  manage: z.string().optional(),
152
153
  manage_button: z.string().optional(),
154
+ footer_link: z.string().optional(),
153
155
  }).optional(),
154
156
  }).optional().describe('Banner wording for this language. Without text or labels the banner uses the built-in wording in this language; scripts and enabled stay site-wide.'),
155
157
  })).nullable().optional().describe('One site, several languages: each section is a language whose pages (Page.language) live under home_path. Pages in a section get its home link in breadcrumbs, a 404 page at <home_path>404.html, and its tagline, fallback description and banner wording. Pages in the site language keep the top-level settings. Replaces the whole list; null or [] clears it. Use template/show_if on page.language in the header and footer for per-language menus.'),
package/dist/version.js CHANGED
@@ -8,4 +8,4 @@
8
8
  //
9
9
  // Keep it in lockstep with package.json: tests/version.test.ts asserts
10
10
  // VERSION === package.json.version, so a bump that forgets this line fails CI.
11
- export const VERSION = '0.45.134';
11
+ export const VERSION = '0.45.136';
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.134",
4
+ "version": "0.45.136",
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": {
@@ -200,16 +200,24 @@ Norwegian Bokmål (`nb`, `no`), German (`de`), Dutch (`nl`), Finnish (`fi`),
200
200
  French (`fr`), Polish (`pl`), Italian (`it`) and Spanish (`es`), otherwise
201
201
  English. For any other language, write `text` and set `labels` (`title`,
202
202
  `reject`, `necessary`, `accept_all`, `privacy_link`, `manage`,
203
- `manage_button`) in that language. `manage` is the accessible name and
204
- `manage_button` the visible text of the floating button that reopens the
205
- banner.
206
-
207
- To leave out the floating button (it can cover form fields on a phone), set
208
- `cookie_consent.manage_button: "none"` and add a "Cookie settings" item to the
209
- footer menu: `type: "url"`, `href: "#cookie-settings"`. Any link to
210
- `#cookie-settings` opens the banner, so visitors can still change or withdraw
211
- their choice; the settings write warns with `cookie_reopen_link_missing`
212
- while no partial or menu has one. Do not hide `.tr-consent__manage` with CSS. The publication's job `warnings`
203
+ `manage_button`, `footer_link`) in that language. `manage` is the accessible
204
+ name and `manage_button` the visible text of the floating button that reopens
205
+ the banner; `footer_link` is the text of the footer link.
206
+
207
+ Visitors reopen the banner from the footer by default (render version 19 and
208
+ later, or `cookie_consent.manage_button: "footer"`): Typeroll adds a small
209
+ "Cookie settings" link at the end of the site footer, inside its `<footer>`,
210
+ in the footer's own colour and font. Do not build that link yourself. To
211
+ place it somewhere specific instead, add a "Cookie settings" item to the
212
+ footer menu (`type: "url"`, `href: "#cookie-settings"`) or a link in the
213
+ footer partial: a footer that already links to `#cookie-settings` gets no
214
+ second link, so the site's own link keeps its look. `"floating"` keeps the
215
+ "Cookies" button fixed bottom-left (the default before render version 19; it
216
+ can cover form fields on a phone). `"none"` renders neither; then the footer
217
+ must link to `#cookie-settings` itself, so visitors can still change or
218
+ withdraw their choice, and the settings write warns with
219
+ `cookie_reopen_link_missing` while no partial or menu has one. Do not hide
220
+ `.tr-consent__manage` or `.tr-consent-footer-link` with CSS. The publication's job `warnings`
213
221
  list any banner wording and built-in control labels that fall back to English.
214
222
 
215
223
  Use `update_site_settings`, then read settings back. `scripts_necessary` and
@@ -64,7 +64,12 @@ comparison first.
64
64
  the button in the form grid targets `form > .form-actions`. Version 17
65
65
  loads weights written in CSS: propose removing `fonts.load` entries that
66
66
  only existed for them, and element rules that were scoped only to keep
67
- them off the cookie banner. Any rule that targets platform markup
67
+ them off the cookie banner. Version 19 moves the cookie banner's reopen
68
+ control from the floating "Cookies" button to a "Cookie settings" link at
69
+ the end of the footer, unless the footer already links to
70
+ `#cookie-settings`: check the footer bottom at every width, remove CSS that
71
+ only moved or hid `.tr-consent__manage`, and ask whether the user wants
72
+ `cookie_consent.manage_button: "floating"` to keep the button. Any rule that targets platform markup
68
73
  (`.block-section-inner`, `[data-block=...]` internals) can change with a
69
74
  render version: prefer block settings and named styles, and re-check such
70
75
  rules at all three widths after the upgrade.