@typeroll/mcp-server 0.45.149 → 0.45.151

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/dist/server.js CHANGED
@@ -169,6 +169,9 @@ export function effectFor(name) {
169
169
  || name === 'prepare_organization_media_storage'
170
170
  || name === 'save_organization_media_access'
171
171
  || name === 'set_email_settings'
172
+ || name === 'set_organization_email_settings'
173
+ || name === 'remove_organization_email_settings'
174
+ || name === 'send_organization_test_email'
172
175
  || name === 'set_form_spam_protection'
173
176
  || name === 'delete_form_spam_protection'
174
177
  || name === 'delete_email_settings'
@@ -7,25 +7,51 @@ import { ok, withErrorBoundary } from './helpers.js';
7
7
  export const emailTools = [
8
8
  {
9
9
  name: 'get_email_settings',
10
- description: "Read the site's outgoing email connector (the provider form notifications send through): type, from, reply_to and config with secrets masked as { set: true }, plus every available provider with its field schema and whether the server can store secrets (crypto_configured). email is null when nothing is connected. Admin permission required.",
10
+ description: "Read the site's selected outgoing account, campaign sending limits, available organization account and provider fields. Secrets are masked; shared organization credentials are never returned. Campaign limits are per site across its apps and exclude transactional mail. Admin permission required.",
11
11
  handler: withErrorBoundary(async (_args, { client, siteId }) => ok(await client.get(siteId, 'integrations/email'))),
12
12
  },
13
13
  {
14
14
  name: 'set_email_settings',
15
15
  description: "Connect or change the site's outgoing email provider, like Settings → Email & notifications in the portal. Read get_email_settings first for the provider field schema. Examples: postmark config { server_token, message_stream? }; smtp config { host, port?, secure?, user?, password? }. Secrets are encrypted server-side and never returned; omit a secret (or send the masked value) to keep the stored one. Then call send_test_email. Admin permission required.",
16
16
  inputSchema: {
17
- type: z.string().min(1).describe('Provider type from get_email_settings providers, e.g. "postmark" or "smtp".'),
18
- from: z.string().min(1).describe('Sender, e.g. "Acme <hello@acme.com>". Must be a sender the provider accepts.'),
17
+ type: z.string().min(1).optional().describe('Provider type when configuring this site’s own account.'),
18
+ from: z.string().min(1).optional().describe('Sender when configuring this site’s own account.'),
19
+ source: z.enum(['site', 'organization', 'none']).optional().describe('Organization requires a current grant from its owner. Selecting it references the shared account without copying credentials.'),
20
+ bulk_email: z.object({ daily_limit: z.number().int().min(0).max(10000).optional(), minimum_interval_minutes: z.number().int().min(1).max(1440).optional() }).optional().describe('Site campaign allowance and pacing. UTC day; 0 disables campaigns. Transactional mail does not consume this allowance.'),
19
21
  reply_to: z.string().optional().describe('Optional default Reply-To address.'),
20
22
  config: z.record(z.string(), z.unknown()).optional().describe('Provider fields keyed by the field schema.'),
21
23
  },
22
24
  handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.put(siteId, 'integrations/email', {
23
- type: args.type,
24
- from: args.from,
25
+ ...(args.type !== undefined ? { type: args.type, config: args.config ?? {} } : {}),
26
+ ...(args.from !== undefined ? { from: args.from } : {}),
27
+ ...(args.source !== undefined ? { source: args.source } : {}),
28
+ ...(args.bulk_email !== undefined ? { bulk_email: args.bulk_email } : {}),
25
29
  ...(args.reply_to !== undefined ? { reply_to: args.reply_to } : {}),
26
- config: args.config ?? {},
27
30
  }))),
28
31
  },
32
+ {
33
+ name: 'get_organization_email_settings', noSite: true,
34
+ description: 'Read the selected Organization’s shared email account with secrets masked, its exact revision and the owned Sites allowed to use it. Only a current Organization owner, through a personal connection or an owner-issued organization API key, can manage this account. Site keys are refused.',
35
+ inputSchema: {}, handler: withErrorBoundary(async (_args, { client }) => ok(await client.rootGet('organization/email'))),
36
+ },
37
+ {
38
+ name: 'set_organization_email_settings', noSite: true,
39
+ description: 'Configure the Organization’s shared email account or its explicit Site grants. Read get_organization_email_settings first and pass its expected_revision. Prefer entering secrets in the portal; never repeat a secret. Omitted fields preserve the account or grants; a new account allows no Sites by default. Sites must still select the organization account themselves and retain their own campaign budgets. Owner authority is required.',
40
+ inputSchema: { expected_revision: z.string().regex(/^[a-f0-9]{64}$/), type: z.string().optional(), from: z.string().optional(), reply_to: z.string().optional(), config: z.record(z.string(), z.unknown()).optional(), allowed_site_ids: z.array(z.string()).max(1000).optional() },
41
+ handler: withErrorBoundary(async (args, { client }) => ok(await client.rootPut('organization/email', args))),
42
+ },
43
+ {
44
+ name: 'remove_organization_email_settings', noSite: true,
45
+ description: 'Disconnect the Organization’s shared mail account and withdraw all Site grants. Sites using it stop sending through that account; they do not silently fall back to another account. Requires the current expected_revision, Organization owner authority and the user’s approval for this disconnection.',
46
+ inputSchema: { expected_revision: z.string().regex(/^[a-f0-9]{64}$/) },
47
+ handler: withErrorBoundary(async (args, { client }) => ok(await client.rootDelete('organization/email', args))),
48
+ },
49
+ {
50
+ name: 'send_organization_test_email', noSite: true,
51
+ description: 'Send one test through the stored Organization mail account, only when the user requested this test and recipient. Requires Organization owner authority. It does not start a campaign or grant Site access.',
52
+ inputSchema: { to: z.string().min(3) },
53
+ handler: withErrorBoundary(async (args, { client }) => ok(await client.rootPost('organization/email', args))),
54
+ },
29
55
  {
30
56
  name: 'delete_email_settings',
31
57
  description: "Disconnect the site's outgoing email provider and delete its stored credentials. Form email notifications stop being sent until a provider is connected again; submissions are still stored. Admin permission required.",
@@ -77,7 +77,7 @@ export const mediaTools = [
77
77
  },
78
78
  {
79
79
  name: 'create_upload_url',
80
- description: 'Mint a 5-min signed PUT URL for direct-to-R2 upload. The returned cdn_url is an authenticated editor reference, not a public sharing link. REQUIRED follow-up: call `finalize_media` after the PUT succeeds to verify and freeze the private original. Publish a PDF explicitly with `publish_media_file`; images become public with a website publication. The response carries `finalize_url` as a reminder. This signed-PUT path is the INTEGRITY-SAFE way to upload bytes from disk or a generated asset — a direct `curl --data-binary @file` sends the bytes straight to R2 without transcribing them through the model, so it can\'t be corrupted the way a large `upload_media_inline` base64 blob can (ESPECIALLY use this, not inline, for SVG/logos). For a public source URL, `upload_media_from_url` is the one-call equivalent; reserve `upload_media_inline` for tiny payloads only.',
80
+ description: 'Mint a temporary signed PUT URL for direct-to-R2 upload; use the returned expiry. The returned cdn_url is an authenticated editor reference, not a public sharing link. REQUIRED follow-up: call `finalize_media` after the PUT succeeds to verify and freeze the private original. Publish a PDF explicitly with `publish_media_file`; images become public with a website publication. The response carries `finalize_url` as a reminder. This signed-PUT path is the INTEGRITY-SAFE way to upload bytes from disk or a generated asset — a direct `curl --data-binary @file` sends the bytes straight to R2 without transcribing them through the model, so it can\'t be corrupted the way a large `upload_media_inline` base64 blob can (ESPECIALLY use this, not inline, for SVG/logos). For a public source URL, `upload_media_from_url` is the one-call equivalent; reserve `upload_media_inline` for tiny payloads only.',
81
81
  inputSchema: {
82
82
  filename: z.string().min(1).describe('Should end in an extension of content_type (e.g. logo.png with image/png). When the extension is missing or belongs to another type, the type\'s extension is appended (logo → logo.png, photo.html → photo.html.png); the response returns the stored filename. Unsupported types answer 415.'),
83
83
  content_type: z.string().min(1).describe('e.g. "image/png", "image/jpeg", "application/pdf". SVGs are sanitized at finalize; an SVG that cannot be sanitized is refused.'),
@@ -173,7 +173,7 @@ export const mediaTools = [
173
173
  if (!putRes.ok) {
174
174
  throw new Error(`R2 upload failed: ${putRes.status} ${putRes.statusText}`);
175
175
  }
176
- // Auto-finalize (cache headers + AVIF/WebP variants). See
176
+ // Verify and freeze the original; images queue private preparation. See
177
177
  // upload_media_from_url for the same pattern + rationale.
178
178
  let finalizeResult = null;
179
179
  let finalizeError = null;
@@ -201,7 +201,7 @@ export const mediaTools = [
201
201
  media_id: z.string(),
202
202
  alt_text: z.string().optional(),
203
203
  filename: z.string().optional(),
204
- public_path: z.string().nullable().optional().describe('Optional stable path such as /wp-content/uploads/2023/photo.jpg. Applied at the next build; existing public image URLs stay available.'),
204
+ public_path: z.string().nullable().optional().describe('Optional path such as /products/photo.jpg. New uploads default to the root filename without date folders. Publication numbers names used by different bytes. Safe old aliases are retained for included media; reserved names do not republish deleted or unused files. Use null to choose the current filename again.'),
205
205
  },
206
206
  handler: withErrorBoundary(async (args, { client, siteId }) => {
207
207
  const { media_id, ...body } = args;
@@ -211,7 +211,7 @@ export const mediaTools = [
211
211
  },
212
212
  {
213
213
  name: 'generate_image_variants',
214
- description: 'Run the build-time srcset pipeline for one image: produces webp + avif variants at 320 / 640 / 1024 / 1920 (skipping upscales), uploads them to R2 alongside the original, and patches the media doc with a variants[] array. Synchronous; takes ~1-5s per image. Skips PDFs and non-image media without erroring. NOTE: prefer `finalize_media` for new uploads — it does this PLUS sets immutable Cache-Control on the original. Use this tool only for surgical variant reruns.',
214
+ description: 'Compatibility endpoint that reports pending build-time responsive image work. It does not transcode images synchronously or upload variants from the portal. The organization build engine generates smaller WebP/AVIF widths and the full original width without upscaling during preparation or publication. Finalize each new direct upload with finalize_media; use get_media_preparation to observe queued preparation. Non-processable files, including PDFs, return skipped: true. A variants_pending response is not proof that a file is ready or public.',
215
215
  inputSchema: { media_id: z.string() },
216
216
  handler: withErrorBoundary(async (args, { client, siteId }) => {
217
217
  const res = await client.post(siteId, `media/${encodeURIComponent(args.media_id)}/generate-variants`);
@@ -233,7 +233,7 @@ export const mediaTools = [
233
233
  },
234
234
  {
235
235
  name: 'finalize_all_media',
236
- description: 'Backfill version of finalize_media: walks the entire media library, applies cache headers + variant generation to every item missing them. Use this once on legacy sites to fix Lighthouse "cache lifetimes" + "image delivery" warnings in one go. Synchronous, can take minutes on large libraries (~1-5s per image needing variants, ~50ms for cache-only). Idempotent.',
236
+ description: 'Admin-only compatibility backfill. For customer publishing, returns variants_pending and instructs you to finalize each direct upload using its finalize_url; it does not finalize every private upload. Legacy runtime-storage sites apply missing cache metadata by walking the library synchronously. Neither path transcodes responsive image variants in the portal. Use finalize_media for new uploads and get_media_preparation for background build progress.',
237
237
  inputSchema: {},
238
238
  handler: withErrorBoundary(async (_args, { client, siteId }) => {
239
239
  const res = await client.post(siteId, 'media/finalize-all');
@@ -80,6 +80,12 @@ export const pageTools = [
80
80
  return ok(res);
81
81
  }),
82
82
  },
83
+ {
84
+ name: 'read_published_page',
85
+ description: 'Read the page from the last verified publication of this version: public title, fields, address, source revision and publication ID. Never includes a working copy, private fields or pending proposals. Returns 404 when no verified public source exists. Use this for facts intended for external messages, rather than read_page.',
86
+ inputSchema: { page_id: z.string(), version: versionParam },
87
+ handler: withErrorBoundary(async (args, { client, siteId }) => ok(await client.get(siteId, `pages/${encodeURIComponent(args.page_id)}/published`, v(args.version)))),
88
+ },
83
89
  {
84
90
  name: 'batch_read_pages',
85
91
  description: 'Read up to 200 pages in a single call. Returns pages_by_id — a map keyed by page_id for easy lookup — plus a not_found list. Use to bulk-load context before a redesign sweep.',
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.149';
11
+ export const VERSION = '0.45.151';
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.149",
4
+ "version": "0.45.151",
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": {
@@ -7,7 +7,8 @@ description: Use when the user asks for an image, hero, illustration, or logo to
7
7
 
8
8
  The Typeroll API does NOT accept image bytes directly. Uploads go
9
9
  through a signed PUT URL straight to Cloudflare R2, and the API only
10
- sees the metadata. Two-step flow:
10
+ sees the metadata. For local files, mint an upload URL, PUT the bytes, then
11
+ finalize and verify the result before referencing it:
11
12
 
12
13
  For public source URLs, prefer `upload_media_from_url`; for 2–50 files use
13
14
  `upload_media_batch_from_urls` (max 25 MiB per file). Both download, upload,
@@ -32,6 +33,19 @@ Do not delete configured redirects merely because current HTML no longer uses
32
33
  them. Core 0.3.48 compacts equivalent per-file rules in the frozen publication;
33
34
  stored rules stay intact. See https://typeroll.com/docs/tools/redirects/.
34
35
 
36
+ From Core 0.3.49, new uploads default to the media root (`photo.jpg`), without
37
+ automatic year/month folders. Explicit folders and WordPress upload-relative
38
+ folders are preserved; `wp-content/uploads` and multisite prefixes are removed
39
+ from new addresses. Different bytes receive permanent numeric names (`photo-2.jpg`);
40
+ safe old aliases for included media stay available without a redirect per replacement.
41
+ Managed WordPress imports declare their uploads namespace so publication can
42
+ use one prefix with exact collision exceptions. A borrowed image alone does
43
+ not declare a namespace. Check the returned public paths and the complete old
44
+ URL inventory; Cloud requires the corresponding platform release. A reserved name
45
+ does not retain a deleted or unused file in every future build. Private object
46
+ keys and responsive variants can still contain hashes; never construct URLs
47
+ from those internal keys.
48
+
35
49
  ### 1. Get an image
36
50
 
37
51
  Options, in order of preference:
@@ -63,8 +77,8 @@ Returns:
63
77
  ```json
64
78
  {
65
79
  "upload_url": "https://...r2.cloudflarestorage.com/.../signed-...",
66
- "cdn_url": "https://cdn.example.com/orgs/.../images/...png",
67
- "key": "orgs/.../images/...png",
80
+ "cdn_url": "https://portal.example.com/api/sites/site/media/abc123/content",
81
+ "key": "private/media/<site-prefix>/uploads/<upload-id>/hero-services.png",
68
82
  "media_id": "abc123",
69
83
  "expires_in": 300
70
84
  }
@@ -87,10 +101,12 @@ Body: <file bytes>
87
101
  In a shell:
88
102
 
89
103
  ```bash
90
- curl -sS -X PUT --data-binary @hero-services.png "$UPLOAD_URL"
104
+ curl --fail-with-body -sS -X PUT -H "Content-Type: image/png" \
105
+ --data-binary @hero-services.png "$UPLOAD_URL"
91
106
  ```
92
107
 
93
- Optionally with `-H "Content-Type: image/png"` if you need to override what R2 will infer. **Nothing else.**
108
+ Send the same `Content-Type` used to request the upload URL. Do not attach your
109
+ Typeroll API key or copy the URL's signing query parameters into headers.
94
110
 
95
111
  > The signed URL embeds checksum-related query parameters
96
112
  > (`x-amz-checksum-crc32`, `x-amz-sdk-checksum-algorithm`) for legacy
@@ -109,16 +125,20 @@ await fetch(uploadUrl, {
109
125
  });
110
126
  ```
111
127
 
112
- Parallelise N uploads via shell `&` + `wait`:
113
-
114
- ```bash
115
- while IFS=$'\t' read -r filename signed_url; do
116
- curl -sS -X PUT --data-binary @"$filename" "$signed_url" &
117
- done < manifest.tsv
118
- wait
119
- ```
120
-
121
- A 200 OK from R2 means the image is now live at `cdn_url`.
128
+ For many local files, use bounded concurrency and record each PUT result
129
+ against its media ID. Send each file's declared Content-Type, finalize only
130
+ successful uploads, and inspect every finalization result before creating
131
+ references. A background shell loop's final exit code does not prove that
132
+ all its uploads succeeded. Retry failed entries, not the entire batch.
133
+
134
+ A successful PUT means the upload reached storage; it is not yet a verified
135
+ or public image. Call `finalize_media media_id=<id> expected_sha256=<source-hash>`
136
+ (or the returned finalization endpoint) and inspect the result before referencing it.
137
+ Finalization freezes the private original and queues background image
138
+ preparation. It does not publish the file. Use the returned authenticated
139
+ `cdn_url` in content only after verification; website publication rewrites it
140
+ to the public address. A PDF can be published separately with
141
+ `publish_media_file`. A 202/pending import is not a completed upload.
122
142
 
123
143
  ### 4. Patch metadata (alt text, etc.)
124
144
 
@@ -196,9 +216,10 @@ width, without upscaling or duplicate width descriptors. Check `currentSrc` and
196
216
  the actual encoded dimensions on the published site; the CMS preview can use the
197
217
  original and hide an undersized derivative. Do not compensate with custom CSS
198
218
  or `sizes` alone. Existing static sites need republication for the versioned v2
199
- recipe; unchanged subsequent builds reuse verified media. Explicit API variant
200
- workflows must regenerate their variant metadata before rebuilding.
201
-
219
+ recipe; unchanged subsequent builds reuse verified media.
220
+ `generate_image_variants` reports pending build-time work; it does not encode
221
+ variants synchronously or repair a broken upload. Inspect `get_media_preparation`
222
+ and the actual published output instead of looping that endpoint.
202
223
 
203
224
  ## Replace an existing image efficiently
204
225
 
@@ -16,7 +16,6 @@ Use standard blocks first, reviewed custom types next, rare documented HTML last
16
16
  All four combinations must preserve or meaningfully redirect every old public URL. That
17
17
  shared contract defines acceptance; this recipe only adds source-specific steps.
18
18
 
19
-
20
19
  > **The buffer model (draft writes).** Every content write in this recipe
21
20
  > (pages, blocks and partials) lands in an unsaved per-doc
22
21
  > DRAFT — deploys and plain previews only see SAVED content. For recipe-style
@@ -24,7 +23,6 @@ shared contract defines acceptance; this recipe only adds source-specific steps.
24
23
  > the task itself), or run `commit_working_copy` per doc before any
25
24
  > `trigger_deploy`. Preview your drafts with `include_working_copy: true`.
26
25
 
27
-
28
26
  ## When to use this vs tr-migrate-wp
29
27
 
30
28
  | Source | Use |
@@ -154,6 +152,19 @@ for private and never-public addresses. Existing configured rules stay intact;
154
152
  Core 0.3.48 compacts equivalent per-file lines only in frozen publication output.
155
153
  See https://typeroll.com/docs/tools/redirects/ for the policy and Bulk quotas.
156
154
 
155
+ From Core 0.3.49, new uploads default to the media root (`photo.jpg`), without
156
+ automatic year/month folders. Explicit folders and WordPress upload-relative
157
+ folders are preserved; `wp-content/uploads` and multisite prefixes are removed
158
+ from new addresses. Different bytes receive permanent numeric names (`photo-2.jpg`);
159
+ safe old aliases for included media stay available without a redirect per replacement.
160
+ Managed WordPress imports declare their uploads namespace so publication can
161
+ use one prefix with exact collision exceptions. A borrowed image alone does
162
+ not declare a namespace. Check the returned public paths and the complete old
163
+ URL inventory; Cloud requires the corresponding platform release. A reserved name
164
+ does not retain a deleted or unused file in every future build. Private object
165
+ keys and responsive variants can still contain hashes; never construct URLs
166
+ from those internal keys.
167
+
157
168
  If the source URLs differ from the target slugs, create redirects:
158
169
 
159
170
  ```
@@ -86,6 +86,20 @@ to returned media URLs. Use direct upload URLs for local bytes and the customer
86
86
  transfer flow for remote media; do not relay large base64 payloads through the
87
87
  model. Preserve alt text, captions, dimensions, links and image variants.
88
88
 
89
+ ### Media identity and public URL checks
90
+
91
+ Follow `tr-images` for upload → verification → private preparation → publication.
92
+ Do not use pending imports or share authenticated editor URLs. From Core
93
+ 0.3.49, new uploads default to root filenames without date folders; explicit
94
+ folders and WordPress upload-relative folders remain supported. Read returned
95
+ paths rather than flattening names or predicting numeric collision suffixes.
96
+ Keep each Site's media namespace separate, including when several old Sites
97
+ are merged. Verify historical image/PDF URLs independently of rewritten HTML;
98
+ use established prefix mappings and exact exceptions, not a redirect for every
99
+ new variant. The matching Core runtime is required. See
100
+ https://typeroll.com/docs/tools/media/ and
101
+ https://typeroll.com/docs/tools/redirects/#image-and-file-addresses.
102
+
89
103
  ## Listing and verification
90
104
 
91
105
  An archive is a Page with `core/page_list` filtered by `content_type`. Configure
@@ -190,6 +190,20 @@ source JavaScript, and carry each market's own analytics and advertising IDs
190
190
  over in that site's Integrations app with its cookie banner enabled. Never
191
191
  reuse one market's tracking IDs on another.
192
192
 
193
+ ### Media identity and public URL checks
194
+
195
+ Follow `tr-images` for upload → verification → private preparation → publication.
196
+ Do not use pending imports or share authenticated editor URLs. From Core
197
+ 0.3.49, new uploads default to root filenames without date folders; explicit
198
+ folders and WordPress upload-relative folders remain supported. Read returned
199
+ paths rather than flattening names or predicting numeric collision suffixes.
200
+ Keep each Site's media namespace separate, including when several old Sites
201
+ are merged. Verify historical image/PDF URLs independently of rewritten HTML;
202
+ use established prefix mappings and exact exceptions, not a redirect for every
203
+ new variant. The matching Core runtime is required. See
204
+ https://typeroll.com/docs/tools/media/ and
205
+ https://typeroll.com/docs/tools/redirects/#image-and-file-addresses.
206
+
193
207
  ## Phase 5 — Redirects for everything you didn't preserve
194
208
 
195
209
  Work the coverage report, not your memory:
@@ -16,7 +16,6 @@ Use standard blocks first, reviewed custom types next, rare documented HTML last
16
16
  All four combinations must preserve or meaningfully redirect every old public URL. That
17
17
  shared contract defines acceptance; this recipe only adds source-specific steps.
18
18
 
19
-
20
19
  > **The buffer model (draft writes).** Every content write in this recipe
21
20
  > (pages, blocks and partials) lands in an unsaved per-doc
22
21
  > DRAFT — deploys and plain previews only see SAVED content. For recipe-style
@@ -24,7 +23,6 @@ shared contract defines acceptance; this recipe only adds source-specific steps.
24
23
  > the task itself), or run `commit_working_copy` per doc before any
25
24
  > `trigger_deploy`. Preview your drafts with `include_working_copy: true`.
26
25
 
27
-
28
26
  The platform's migration workflow is the "managed" path for customers who
29
27
  want one-click. It runs on the server and is also available to you:
30
28
  `start_workflow type="migration" config={ wp_url }` on an existing site, or
@@ -69,7 +67,6 @@ Verify a primary/surface change in a test Version across header, footer, cards,
69
67
  menus and buttons, then restore the test settings. Do not republish automatically.
70
68
 
71
69
 
72
-
73
70
  ## Preconditions
74
71
 
75
72
  **Run the readiness check FIRST — before touching any content:**
@@ -248,6 +245,19 @@ c. Migrate referenced images with `upload_media_from_url`. The customer's
248
245
  per-file lines covered by an equivalent existing rule in the frozen output,
249
246
  without changing stored rules. See https://typeroll.com/docs/tools/redirects/.
250
247
 
248
+ From Core 0.3.49, new uploads default to the media root (`photo.jpg`), without
249
+ automatic year/month folders. Explicit folders and WordPress upload-relative
250
+ folders are preserved; `wp-content/uploads` and multisite prefixes are removed
251
+ from new addresses. Different bytes receive permanent numeric names (`photo-2.jpg`);
252
+ safe old aliases for included media stay available without a redirect per replacement.
253
+ Managed WordPress imports declare their uploads namespace so publication can
254
+ use one prefix with exact collision exceptions. A borrowed image alone does
255
+ not declare a namespace. Check the returned public paths and the complete old
256
+ URL inventory; Cloud requires the corresponding platform release. A reserved name
257
+ does not retain a deleted or unused file in every future build. Private object
258
+ keys and responsive variants can still contain hashes; never construct URLs
259
+ from those internal keys.
260
+
251
261
  The managed importer stores cleaned HTML. Typeroll does not convert HTML into blocks, and `set_page_mode` never rewrites HTML. You, the external agent, rebuild the imported content with ordinary block tools. The owner does not need to convert every Page manually. There is no editor conversion preview; it was removed in Core 0.2.58. Preserve the complete source before switching modes and never publish the empty intermediate Page.
252
262
 
253
263
  d. Rebuild into editable blocks according to the selected intent. Preserve exact
@@ -480,7 +490,6 @@ Compare ordered headings/text/media/CTAs, including malformed wrappers, lazy and
480
490
  noscript images and related-content boundaries. Existing Pages are not rewritten;
481
491
  repair confirmed placement errors against raw source without reimporting edits.
482
492
 
483
-
484
493
  ## Navigation and empty-media variants
485
494
 
486
495
  Inventory first-step input banners independently of final submission providers.
@@ -497,7 +506,6 @@ explicit `show_image: false`. Compare actual footer link height plus gap, wrappi
497
506
  focus and column breakpoints; compact navigation density is an intentional option.
498
507
  Verify native preview and static output on the agreed viewport boundaries.
499
508
 
500
-
501
509
  ## Before retiring the source
502
510
 
503
511
  Follow the starter's workflows/source-media.md. Archive unused and print originals
@@ -377,6 +377,20 @@ precedence and generated aliases. Stored rules are unchanged. Keep old public
377
377
  file URLs working independently of rewriting HTML; do not invent wildcards from
378
378
  partial media inventories or create automatic rules for never-public variants.
379
379
  Use https://typeroll.com/docs/tools/redirects/ for current budgets and the policy.
380
+
381
+ From Core 0.3.49, new uploads default to the media root (`photo.jpg`), without
382
+ automatic year/month folders. Explicit folders and WordPress upload-relative
383
+ folders are preserved; `wp-content/uploads` and multisite prefixes are removed
384
+ from new addresses. Different bytes receive permanent numeric names (`photo-2.jpg`);
385
+ safe old aliases for included media stay available without a redirect per replacement.
386
+ Managed WordPress imports declare their uploads namespace so publication can
387
+ use one prefix with exact collision exceptions. A borrowed image alone does
388
+ not declare a namespace. Check the returned public paths and the complete old
389
+ URL inventory; Cloud requires the corresponding platform release. A reserved name
390
+ does not retain a deleted or unused file in every future build. Private object
391
+ keys and responsive variants can still contain hashes; never construct URLs
392
+ from those internal keys.
393
+
380
394
  Never split `_redirects` into multiple files.
381
395
  After publication, run `verify_migration_urls` against the agreed full inventory.
382
396
  Do not delete old provider redirect lists without separate explicit approval.
@@ -32,6 +32,21 @@ the CMS. Do not delete source files or cancel old hosting as part of this routin
32
32
  separate old-host retirement decision. This archive does not preserve old
33
33
  public URLs by itself: keep URL parity/redirect acceptance separate.
34
34
 
35
+ ## Keep archive keys separate from public media paths
36
+
37
+ An archive preserves full source identity. Core 0.3.49 public CMS names instead
38
+ default new uploads to the Site's media root, preserve optional/WordPress
39
+ upload-relative folders, and assign permanent numeric suffixes for conflicts.
40
+ Those delivery names are not a substitute for this archive manifest. Never
41
+ flatten source folders or infer the archive key from a new public filename.
42
+
43
+ Verify copied bytes before creating content references. Private upload/editor
44
+ URLs are not public or permanent archive links, and preparation is not
45
+ publication. A prefix redirect cannot restore unavailable files or prove a
46
+ complete source inventory. Keep old image/PDF URL verification separate from
47
+ private archiving and the approval to retire hosting. See the public media
48
+ and redirect guides for the installed Core version.
49
+
35
50
  ## Prepare print images for the web
36
51
 
37
52
  Use `scripts/typeroll/prepare_image.py` for a reviewed local TIFF or other original.