emdash 1.0.1 → 1.2.0
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/action-token-BdWad2YG.mjs +26 -0
- package/dist/action-token-BdWad2YG.mjs.map +1 -0
- package/dist/activation-xomsCMJg.mjs +387 -0
- package/dist/activation-xomsCMJg.mjs.map +1 -0
- package/dist/adapters-B4-nbElt.d.mts +173 -0
- package/dist/adapters-B4-nbElt.d.mts.map +1 -0
- package/dist/allowed-origins-CLpHGGlc.mjs +116 -0
- package/dist/allowed-origins-CLpHGGlc.mjs.map +1 -0
- package/dist/api/route-utils.d.mts +4 -4
- package/dist/api/route-utils.d.mts.map +1 -1
- package/dist/api/route-utils.mjs +49 -48
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +10 -10
- package/dist/api-DBw_IWoi.mjs +5024 -0
- package/dist/api-DBw_IWoi.mjs.map +1 -0
- package/dist/api-tokens-B0ZipcZ-.mjs +173 -0
- package/dist/api-tokens-B0ZipcZ-.mjs.map +1 -0
- package/dist/apply-Cx48saFC.mjs +1680 -0
- package/dist/apply-Cx48saFC.mjs.map +1 -0
- package/dist/approvals-BXgtXA2s.mjs +460 -0
- package/dist/approvals-BXgtXA2s.mjs.map +1 -0
- package/dist/artifact-fetch-DsRczRGG.mjs +659 -0
- package/dist/artifact-fetch-DsRczRGG.mjs.map +1 -0
- package/dist/artifacts-D-O-qj9C.mjs +307 -0
- package/dist/artifacts-D-O-qj9C.mjs.map +1 -0
- package/dist/astro/image-endpoint.d.mts.map +1 -1
- package/dist/astro/image-endpoint.mjs +26 -6
- package/dist/astro/image-endpoint.mjs.map +1 -1
- package/dist/astro/index.d.mts +14 -14
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +253 -17
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +12 -12
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +18 -13
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/media-usage-write-fence.mjs +6 -6
- package/dist/astro/middleware/redirect.d.mts.map +1 -1
- package/dist/astro/middleware/redirect.mjs +34 -32
- package/dist/astro/middleware/redirect.mjs.map +1 -1
- package/dist/astro/middleware/request-context.d.mts.map +1 -1
- package/dist/astro/middleware/request-context.mjs +99 -60
- package/dist/astro/middleware/request-context.mjs.map +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +12 -12
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +233 -128
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +15 -15
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +15 -15
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +8 -7
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +9 -8
- package/dist/astro/routes/api/admin/api-tokens/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +17 -17
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +17 -17
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +17 -17
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +22 -22
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +22 -23
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +23 -23
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +19 -19
- package/dist/astro/routes/api/admin/comments/_id_.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/bulk.mjs +18 -18
- package/dist/astro/routes/api/admin/comments/counts.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/index.mjs +18 -18
- package/dist/astro/routes/api/admin/core-update.mjs +8 -8
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +7 -7
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +6 -6
- package/dist/astro/routes/api/admin/media-usage/activation.mjs +21 -21
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +22 -22
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +22 -22
- package/dist/astro/routes/api/admin/media-usage/progress.mjs +23 -23
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +29 -29
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs +22 -22
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +22 -22
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +7 -7
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +9 -9
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +9 -9
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +73 -72
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +71 -70
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +72 -71
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +82 -81
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +72 -71
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +71 -70
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +81 -80
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +71 -70
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +72 -71
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +83 -82
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +10 -10
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +74 -73
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +72 -71
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +71 -70
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/scheduled-policy-rejections/_collection_/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +71 -70
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +8 -8
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +71 -70
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/_...path_.mjs +5 -5
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +39 -39
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +39 -39
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +42 -42
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +42 -42
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +42 -42
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs +43 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +43 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +43 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +43 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +41 -41
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs +43 -43
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +5 -5
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +5 -5
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +15 -15
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +7 -7
- package/dist/astro/routes/api/admin/users/index.mjs +15 -15
- package/dist/astro/routes/api/auth/dev-bypass.mjs +7 -7
- package/dist/astro/routes/api/auth/handover.d.mts +8 -0
- package/dist/astro/routes/api/auth/handover.d.mts.map +1 -0
- package/dist/astro/routes/api/auth/handover.mjs +49 -0
- package/dist/astro/routes/api/auth/handover.mjs.map +1 -0
- package/dist/astro/routes/api/auth/invite/accept.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/complete.mjs +20 -20
- package/dist/astro/routes/api/auth/invite/index.mjs +17 -17
- package/dist/astro/routes/api/auth/invite/register-options.mjs +18 -18
- package/dist/astro/routes/api/auth/logout.mjs +6 -6
- package/dist/astro/routes/api/auth/magic-link/send.mjs +20 -19
- package/dist/astro/routes/api/auth/magic-link/send.mjs.map +1 -1
- package/dist/astro/routes/api/auth/magic-link/verify.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +24 -18
- package/dist/astro/routes/api/auth/magic-link/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/me.mjs +16 -16
- package/dist/astro/routes/api/auth/mode.mjs +6 -6
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +36 -13
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +20 -5
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +15 -15
- package/dist/astro/routes/api/auth/passkey/index.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/options.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +28 -21
- package/dist/astro/routes/api/auth/passkey/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +18 -18
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +19 -19
- package/dist/astro/routes/api/auth/passkey/verify.mjs +20 -20
- package/dist/astro/routes/api/auth/signup/complete.mjs +20 -20
- package/dist/astro/routes/api/auth/signup/request.mjs +19 -18
- package/dist/astro/routes/api/auth/signup/request.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/verify.mjs +5 -5
- package/dist/astro/routes/api/calendar.d.mts +8 -0
- package/dist/astro/routes/api/calendar.d.mts.map +1 -0
- package/dist/astro/routes/api/calendar.mjs +204 -0
- package/dist/astro/routes/api/calendar.mjs.map +1 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +14 -14
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +20 -20
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +31 -31
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +35 -35
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +35 -35
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +25 -25
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/authors.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/index.mjs +16 -16
- package/dist/astro/routes/api/content/_collection_/trash.mjs +16 -16
- package/dist/astro/routes/api/dashboard.mjs +12 -12
- package/dist/astro/routes/api/dev/emails.mjs +6 -6
- package/dist/astro/routes/api/health.mjs +7 -7
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +25 -25
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +13 -13
- package/dist/astro/routes/api/import/wordpress/execute.mjs +31 -24
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.d.mts +12 -12
- package/dist/astro/routes/api/import/wordpress/media.mjs +20 -20
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +18 -18
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +8 -0
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +67 -31
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +13 -13
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +27 -27
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +25 -25
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +13 -13
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +40 -33
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +10 -7
- package/dist/astro/routes/api/manifest.mjs.map +1 -1
- package/dist/astro/routes/api/mcp.mjs +94 -94
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.d.mts.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +36 -20
- package/dist/astro/routes/api/media/_id_/confirm.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/replace.mjs +17 -17
- package/dist/astro/routes/api/media/_id_/upload.mjs +10 -10
- package/dist/astro/routes/api/media/_id_/usage.mjs +31 -31
- package/dist/astro/routes/api/media/_id_.mjs +29 -29
- package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +7 -7
- package/dist/astro/routes/api/media/file/_...key_.d.mts.map +1 -1
- package/dist/astro/routes/api/media/file/_...key_.mjs +46 -16
- package/dist/astro/routes/api/media/file/_...key_.mjs.map +1 -1
- package/dist/astro/routes/api/media/folders/_id_.mjs +17 -17
- package/dist/astro/routes/api/media/folders/index.mjs +17 -17
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +6 -6
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +6 -6
- package/dist/astro/routes/api/media/providers/index.mjs +6 -6
- package/dist/astro/routes/api/media/upload-url.mjs +45 -25
- package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
- package/dist/astro/routes/api/media.d.mts.map +1 -1
- package/dist/astro/routes/api/media.mjs +47 -36
- package/dist/astro/routes/api/media.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +18 -18
- package/dist/astro/routes/api/menus/_name_/items.mjs +18 -18
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +18 -18
- package/dist/astro/routes/api/menus/_name_/translations.mjs +18 -18
- package/dist/astro/routes/api/menus/_name_.mjs +18 -18
- package/dist/astro/routes/api/menus/index.mjs +18 -18
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/authorize.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/code.mjs +13 -12
- package/dist/astro/routes/api/oauth/device/code.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/device/token.mjs +12 -11
- package/dist/astro/routes/api/oauth/device/token.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/register.mjs +9 -8
- package/dist/astro/routes/api/oauth/register.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/token/refresh.mjs +9 -9
- package/dist/astro/routes/api/oauth/token/revoke.mjs +9 -9
- package/dist/astro/routes/api/oauth/token.mjs +9 -9
- package/dist/astro/routes/api/openapi.json.mjs +23 -23
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +12 -12
- package/dist/astro/routes/api/redirects/404s/index.mjs +20 -19
- package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/404s/summary.mjs +20 -19
- package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +20 -19
- package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/index.mjs +20 -19
- package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/relations/index.mjs +35 -35
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +6 -6
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +17 -17
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +71 -70
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs +71 -70
- package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/index.mjs +71 -70
- package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +71 -70
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +71 -70
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +71 -70
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +71 -70
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +71 -70
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/reorder.mjs +71 -70
- package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +17 -17
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +71 -70
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +71 -70
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +19 -19
- package/dist/astro/routes/api/search/index.mjs +18 -18
- package/dist/astro/routes/api/search/rebuild.mjs +19 -19
- package/dist/astro/routes/api/search/stats.mjs +9 -9
- package/dist/astro/routes/api/search/suggest.mjs +18 -18
- package/dist/astro/routes/api/sections/_slug_.mjs +18 -18
- package/dist/astro/routes/api/sections/index.mjs +18 -18
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +8 -8
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +8 -8
- package/dist/astro/routes/api/settings/backups/export.mjs +8 -8
- package/dist/astro/routes/api/settings/backups/index.mjs +9 -9
- package/dist/astro/routes/api/settings/domain-notify.d.mts +8 -0
- package/dist/astro/routes/api/settings/domain-notify.d.mts.map +1 -0
- package/dist/astro/routes/api/settings/domain-notify.mjs +125 -0
- package/dist/astro/routes/api/settings/domain-notify.mjs.map +1 -0
- package/dist/astro/routes/api/settings/domain.d.mts +9 -0
- package/dist/astro/routes/api/settings/domain.d.mts.map +1 -0
- package/dist/astro/routes/api/settings/domain.mjs +61 -0
- package/dist/astro/routes/api/settings/domain.mjs.map +1 -0
- package/dist/astro/routes/api/settings/email.mjs +7 -7
- package/dist/astro/routes/api/settings.mjs +22 -22
- package/dist/astro/routes/api/setup/admin-verify.mjs +21 -21
- package/dist/astro/routes/api/setup/admin.mjs +19 -19
- package/dist/astro/routes/api/setup/dev-bypass.mjs +43 -43
- package/dist/astro/routes/api/setup/dev-reset.mjs +5 -5
- package/dist/astro/routes/api/setup/index.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/index.mjs +59 -50
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- package/dist/astro/routes/api/setup/status.mjs +7 -7
- package/dist/astro/routes/api/site/domain-proof.d.mts +8 -0
- package/dist/astro/routes/api/site/domain-proof.d.mts.map +1 -0
- package/dist/astro/routes/api/site/domain-proof.mjs +33 -0
- package/dist/astro/routes/api/site/domain-proof.mjs.map +1 -0
- package/dist/astro/routes/api/snapshot.mjs +10 -10
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +22 -22
- package/dist/astro/routes/api/taxonomies/_name_.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +36 -36
- package/dist/astro/routes/api/taxonomies/index.mjs +23 -23
- package/dist/astro/routes/api/themes/preview.mjs +8 -8
- package/dist/astro/routes/api/typegen.mjs +7 -7
- package/dist/astro/routes/api/visual-editing/action-token.mjs +8 -8
- package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +20 -20
- package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +5 -5
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +17 -17
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +19 -19
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +19 -19
- package/dist/astro/routes/api/widget-areas/_name_.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/index.mjs +19 -19
- package/dist/astro/routes/api/widget-components.mjs +6 -6
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.d.mts.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +30 -13
- package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
- package/dist/astro/routes/sitemap.xml.d.mts.map +1 -1
- package/dist/astro/routes/sitemap.xml.mjs +14 -13
- package/dist/astro/routes/sitemap.xml.mjs.map +1 -1
- package/dist/astro/types.d.mts +30 -18
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/audit-CCH3MA4Y.mjs +127 -0
- package/dist/audit-CCH3MA4Y.mjs.map +1 -0
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/auth/providers/microsoft.d.mts +27 -0
- package/dist/auth/providers/microsoft.d.mts.map +1 -0
- package/dist/auth/providers/microsoft.mjs +20 -0
- package/dist/auth/providers/microsoft.mjs.map +1 -0
- package/dist/authoritative-records-Dcs7l2H5.mjs +5183 -0
- package/dist/authoritative-records-Dcs7l2H5.mjs.map +1 -0
- package/dist/authorize-TdIGpRSE.mjs +49 -0
- package/dist/authorize-TdIGpRSE.mjs.map +1 -0
- package/dist/backup-CZt5Mzwx.mjs +246 -0
- package/dist/backup-CZt5Mzwx.mjs.map +1 -0
- package/dist/base64-BQBZwXCx.mjs +63 -0
- package/dist/base64-BQBZwXCx.mjs.map +1 -0
- package/dist/block-types-DHnkzE6u.mjs +132 -0
- package/dist/block-types-DHnkzE6u.mjs.map +1 -0
- package/dist/block-values-C4N_F2-G.mjs +175 -0
- package/dist/block-values-C4N_F2-G.mjs.map +1 -0
- package/dist/byline-BmVKOQ8l.mjs +909 -0
- package/dist/byline-BmVKOQ8l.mjs.map +1 -0
- package/dist/byline-fields-B8SDs3M_.mjs +123 -0
- package/dist/byline-fields-B8SDs3M_.mjs.map +1 -0
- package/dist/byline-fields-Bze3ZdAw.mjs +280 -0
- package/dist/byline-fields-Bze3ZdAw.mjs.map +1 -0
- package/dist/bylines-CHhR28r9.mjs +150 -0
- package/dist/bylines-CHhR28r9.mjs.map +1 -0
- package/dist/bylines-DZS4OflA.mjs +234 -0
- package/dist/bylines-DZS4OflA.mjs.map +1 -0
- package/dist/cache-x0z8t_m9.mjs +133 -0
- package/dist/cache-x0z8t_m9.mjs.map +1 -0
- package/dist/canonical-BUcKRYpG.mjs +174 -0
- package/dist/canonical-BUcKRYpG.mjs.map +1 -0
- package/dist/capture-triggers-C9JKoIdT.mjs +362 -0
- package/dist/capture-triggers-C9JKoIdT.mjs.map +1 -0
- package/dist/challenge-store-BHgdPVze.mjs +51 -0
- package/dist/challenge-store-BHgdPVze.mjs.map +1 -0
- package/dist/checksum-BYR5i7qe.mjs +162 -0
- package/dist/checksum-BYR5i7qe.mjs.map +1 -0
- package/dist/chrome-tags-BIKBMZYO.mjs +24 -0
- package/dist/chrome-tags-BIKBMZYO.mjs.map +1 -0
- package/dist/chunks-Dr5Vr0zA.mjs +25 -0
- package/dist/chunks-Dr5Vr0zA.mjs.map +1 -0
- package/dist/cli/index.mjs +54 -52
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +34 -34
- package/dist/client/index.d.mts.map +1 -1
- package/dist/client/index.mjs +2 -2
- package/dist/client/index.mjs.map +1 -1
- package/dist/collection-slugs-cache-B2Gs9Jwx.mjs +85 -0
- package/dist/collection-slugs-cache-B2Gs9Jwx.mjs.map +1 -0
- package/dist/comment-CWla6OHV.mjs +325 -0
- package/dist/comment-CWla6OHV.mjs.map +1 -0
- package/dist/comment-reaction-RZrcs5cW.mjs +85 -0
- package/dist/comment-reaction-RZrcs5cW.mjs.map +1 -0
- package/dist/comments-BzmIKVb2.mjs +99 -0
- package/dist/comments-BzmIKVb2.mjs.map +1 -0
- package/dist/comments-Da_dI2O1.mjs +195 -0
- package/dist/comments-Da_dI2O1.mjs.map +1 -0
- package/dist/components-oFXumpf5.mjs +112 -0
- package/dist/components-oFXumpf5.mjs.map +1 -0
- package/dist/config--wamYxBW.d.mts +39 -0
- package/dist/config--wamYxBW.d.mts.map +1 -0
- package/dist/config-Bo4eOOdV.mjs +228 -0
- package/dist/config-Bo4eOOdV.mjs.map +1 -0
- package/dist/config-C4-UxIk7.d.mts +6790 -0
- package/dist/config-C4-UxIk7.d.mts.map +1 -0
- package/dist/connection-UpzYxtE2.mjs +36 -0
- package/dist/connection-UpzYxtE2.mjs.map +1 -0
- package/dist/content-CcHrqkgp.mjs +2072 -0
- package/dist/content-CcHrqkgp.mjs.map +1 -0
- package/dist/content-list-query-Bxxdd9fv.d.mts +26 -0
- package/dist/content-list-query-Bxxdd9fv.d.mts.map +1 -0
- package/dist/content-repair-havk1F0-.mjs +442 -0
- package/dist/content-repair-havk1F0-.mjs.map +1 -0
- package/dist/context-CvhgHgSH.mjs +2043 -0
- package/dist/context-CvhgHgSH.mjs.map +1 -0
- package/dist/credits-CygUrPOi.mjs +110 -0
- package/dist/credits-CygUrPOi.mjs.map +1 -0
- package/dist/cron-C6ytTOLw.mjs +306 -0
- package/dist/cron-C6ytTOLw.mjs.map +1 -0
- package/dist/dashboard-7_FYfafc.mjs +151 -0
- package/dist/dashboard-7_FYfafc.mjs.map +1 -0
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/index.mjs.map +1 -1
- package/dist/db/libsql-migrations.d.mts +1 -1
- package/dist/db/libsql-migrations.mjs +5 -5
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres-migrations.d.mts +1 -1
- package/dist/db/postgres-migrations.mjs +4 -4
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite-migrations.d.mts +1 -1
- package/dist/db/sqlite-migrations.mjs +4 -4
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/db/sqlite.mjs +1 -1
- package/dist/default-CHCUkV4Z.mjs +81 -0
- package/dist/default-CHCUkV4Z.mjs.map +1 -0
- package/dist/deferred-tasks-G0xhcJTl.d.mts +9 -0
- package/dist/deferred-tasks-G0xhcJTl.d.mts.map +1 -0
- package/dist/dev-typegen-Dtl8AfS6.mjs +29 -0
- package/dist/dev-typegen-Dtl8AfS6.mjs.map +1 -0
- package/dist/device-flow-CzDJmQ1q.mjs +521 -0
- package/dist/device-flow-CzDJmQ1q.mjs.map +1 -0
- package/dist/digest-xJmyPv2r.mjs +194 -0
- package/dist/digest-xJmyPv2r.mjs.map +1 -0
- package/dist/direct-executor-BXiYIVJ9.mjs +104 -0
- package/dist/direct-executor-BXiYIVJ9.mjs.map +1 -0
- package/dist/email-console-7ZPApLlm.mjs +50 -0
- package/dist/email-console-7ZPApLlm.mjs.map +1 -0
- package/dist/email-locale-DFdUA6UF.mjs +25 -0
- package/dist/email-locale-DFdUA6UF.mjs.map +1 -0
- package/dist/emdash-runtime-C4oFeVpN.mjs +4363 -0
- package/dist/emdash-runtime-C4oFeVpN.mjs.map +1 -0
- package/dist/enrich-Duu4sV3a.mjs +194 -0
- package/dist/enrich-Duu4sV3a.mjs.map +1 -0
- package/dist/entry-lock-B4n0HdQ_.mjs +163 -0
- package/dist/entry-lock-B4n0HdQ_.mjs.map +1 -0
- package/dist/entry-lock-BAAlKYrz.d.mts +4566 -0
- package/dist/entry-lock-BAAlKYrz.d.mts.map +1 -0
- package/dist/entry-lock-Cjz0h45X.mjs +1209 -0
- package/dist/entry-lock-Cjz0h45X.mjs.map +1 -0
- package/dist/env-types-4bkF6Bqg.mjs +38 -0
- package/dist/env-types-4bkF6Bqg.mjs.map +1 -0
- package/dist/error-DxgQdaZ_.mjs +90 -0
- package/dist/error-DxgQdaZ_.mjs.map +1 -0
- package/dist/errors-CjtE5aWF.mjs +120 -0
- package/dist/errors-CjtE5aWF.mjs.map +1 -0
- package/dist/errors-hskQ0C8G.mjs +479 -0
- package/dist/errors-hskQ0C8G.mjs.map +1 -0
- package/dist/escape-ESFhYzwG.mjs +9 -0
- package/dist/escape-ESFhYzwG.mjs.map +1 -0
- package/dist/fence-vc3aHgRA.mjs +162 -0
- package/dist/fence-vc3aHgRA.mjs.map +1 -0
- package/dist/field-defs-cache-zoow36nz.mjs +77 -0
- package/dist/field-defs-cache-zoow36nz.mjs.map +1 -0
- package/dist/field-map-JD1wG0Tq.mjs +83 -0
- package/dist/field-map-JD1wG0Tq.mjs.map +1 -0
- package/dist/fts-manager-WJCN8uU6.mjs +443 -0
- package/dist/fts-manager-WJCN8uU6.mjs.map +1 -0
- package/dist/gc-CsGZiKdH.mjs +75 -0
- package/dist/gc-CsGZiKdH.mjs.map +1 -0
- package/dist/hash-C4DFoJ7Z.mjs +37 -0
- package/dist/hash-C4DFoJ7Z.mjs.map +1 -0
- package/dist/hook-result-CXjtMk7Q.d.mts +31 -0
- package/dist/hook-result-CXjtMk7Q.d.mts.map +1 -0
- package/dist/hreflang-BAma7iRr.mjs +105 -0
- package/dist/hreflang-BAma7iRr.mjs.map +1 -0
- package/dist/hreflang-BsYo4x_M.d.mts +50 -0
- package/dist/hreflang-BsYo4x_M.d.mts.map +1 -0
- package/dist/http-route-dispatch-C8G7hAK6.mjs +342 -0
- package/dist/http-route-dispatch-C8G7hAK6.mjs.map +1 -0
- package/dist/identity-BwBKM1fH.mjs +35 -0
- package/dist/identity-BwBKM1fH.mjs.map +1 -0
- package/dist/import-DJ3Z2wxE.mjs +2021 -0
- package/dist/import-DJ3Z2wxE.mjs.map +1 -0
- package/dist/index-DYsn97dY.d.mts +623 -0
- package/dist/index-DYsn97dY.d.mts.map +1 -0
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +99 -98
- package/dist/init-lock-BGmew3r1.mjs +56 -0
- package/dist/init-lock-BGmew3r1.mjs.map +1 -0
- package/dist/install-finalization-DCFnFSHv.mjs +58 -0
- package/dist/install-finalization-DCFnFSHv.mjs.map +1 -0
- package/dist/keys-CGvAndSp.mjs +61 -0
- package/dist/keys-CGvAndSp.mjs.map +1 -0
- package/dist/kinds-DT1W4T4Y.mjs +974 -0
- package/dist/kinds-DT1W4T4Y.mjs.map +1 -0
- package/dist/lifecycle-BzglCSY0.mjs +25 -0
- package/dist/lifecycle-BzglCSY0.mjs.map +1 -0
- package/dist/load-DjUqmf3s.mjs +28 -0
- package/dist/load-DjUqmf3s.mjs.map +1 -0
- package/dist/loader-CetY659y.mjs +1355 -0
- package/dist/loader-CetY659y.mjs.map +1 -0
- package/dist/loops-DkT1zkPH.mjs +205 -0
- package/dist/loops-DkT1zkPH.mjs.map +1 -0
- package/dist/manifest-builder-BOFCd9rX.mjs +189 -0
- package/dist/manifest-builder-BOFCd9rX.mjs.map +1 -0
- package/dist/manifest-schema-BiFBPEsp.mjs +497 -0
- package/dist/manifest-schema-BiFBPEsp.mjs.map +1 -0
- package/dist/marketplace-CUlenvZm.mjs +257 -0
- package/dist/marketplace-CUlenvZm.mjs.map +1 -0
- package/dist/media/image-endpoint.d.mts +26 -2
- package/dist/media/image-endpoint.d.mts.map +1 -1
- package/dist/media/image-endpoint.mjs +73 -3
- package/dist/media/image-endpoint.mjs.map +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +14 -14
- package/dist/media/local-runtime.mjs +7 -7
- package/dist/media-CRKsKlfK.mjs +416 -0
- package/dist/media-CRKsKlfK.mjs.map +1 -0
- package/dist/media-C_z7sRuC.mjs +294 -0
- package/dist/media-C_z7sRuC.mjs.map +1 -0
- package/dist/media-IT8hQleU.mjs +373 -0
- package/dist/media-IT8hQleU.mjs.map +1 -0
- package/dist/media-allowlist-Ct6wvnT2.mjs +45 -0
- package/dist/media-allowlist-Ct6wvnT2.mjs.map +1 -0
- package/dist/media-folders-DtMt-vAA.mjs +210 -0
- package/dist/media-folders-DtMt-vAA.mjs.map +1 -0
- package/dist/media-url-BpXLqCmf.mjs +43 -0
- package/dist/media-url-BpXLqCmf.mjs.map +1 -0
- package/dist/media-usage-DEPHZZ9X.mjs +282 -0
- package/dist/media-usage-DEPHZZ9X.mjs.map +1 -0
- package/dist/media-usage-activation-V2Siabtw.mjs +78 -0
- package/dist/media-usage-activation-V2Siabtw.mjs.map +1 -0
- package/dist/media-usage-work-Cv1OE59F.mjs +151 -0
- package/dist/media-usage-work-Cv1OE59F.mjs.map +1 -0
- package/dist/media-usage-work-cgDYGvrt.mjs +1015 -0
- package/dist/media-usage-work-cgDYGvrt.mjs.map +1 -0
- package/dist/menus-CvVYfsuk.mjs +753 -0
- package/dist/menus-CvVYfsuk.mjs.map +1 -0
- package/dist/menus-D1HC8npj.mjs +92 -0
- package/dist/menus-D1HC8npj.mjs.map +1 -0
- package/dist/menus-DL8IPIcm.mjs +3721 -0
- package/dist/menus-DL8IPIcm.mjs.map +1 -0
- package/dist/migrations/index.d.mts +1 -1
- package/dist/migrations/index.mjs +3 -3
- package/dist/mime-B5M9R53H.mjs +81 -0
- package/dist/mime-B5M9R53H.mjs.map +1 -0
- package/dist/mode-eieqAWLe.mjs +23 -0
- package/dist/mode-eieqAWLe.mjs.map +1 -0
- package/dist/node-sqlite-compat-VuyzJw1b.mjs +63 -0
- package/dist/node-sqlite-compat-VuyzJw1b.mjs.map +1 -0
- package/dist/oauth-authorization-B6ZJbMd2.mjs +274 -0
- package/dist/oauth-authorization-B6ZJbMd2.mjs.map +1 -0
- package/dist/oauth-clients-DVjRc9v3.mjs +266 -0
- package/dist/oauth-clients-DVjRc9v3.mjs.map +1 -0
- package/dist/oauth-state-store-CnmYYsVQ.mjs +50 -0
- package/dist/oauth-state-store-CnmYYsVQ.mjs.map +1 -0
- package/dist/oauth-user-lookup-Dz1_R5vT.mjs +26 -0
- package/dist/oauth-user-lookup-Dz1_R5vT.mjs.map +1 -0
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/options-BR9XZl7h.d.mts +81 -0
- package/dist/options-BR9XZl7h.d.mts.map +1 -0
- package/dist/ownership-COPyVysP.mjs +12 -0
- package/dist/ownership-COPyVysP.mjs.map +1 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +6 -6
- package/dist/parse-BOGhrwSq.d.mts +174 -0
- package/dist/parse-BOGhrwSq.d.mts.map +1 -0
- package/dist/parse-Cn5aSk1N.mjs +81 -0
- package/dist/parse-Cn5aSk1N.mjs.map +1 -0
- package/dist/passkey-config-mMFRQUCj.mjs +46 -0
- package/dist/passkey-config-mMFRQUCj.mjs.map +1 -0
- package/dist/paths-BmcAdBo9.mjs +77 -0
- package/dist/paths-BmcAdBo9.mjs.map +1 -0
- package/dist/patterns-CMNnYCgf.mjs +159 -0
- package/dist/patterns-CMNnYCgf.mjs.map +1 -0
- package/dist/placeholder-nOep3_Gn.d.mts +306 -0
- package/dist/placeholder-nOep3_Gn.d.mts.map +1 -0
- package/dist/plan-CDY4K8CH.mjs +135 -0
- package/dist/plan-CDY4K8CH.mjs.map +1 -0
- package/dist/plugin-test-runtime.d.mts +14 -14
- package/dist/plugin-test-runtime.d.mts.map +1 -1
- package/dist/plugin-test-runtime.mjs +111 -110
- package/dist/plugin-types.d.mts +2 -2
- package/dist/plugin-utils.d.mts +12 -12
- package/dist/plugin-utils.mjs +1 -1
- package/dist/plugin-utils.mjs.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +12 -12
- package/dist/plugins/adapt-sandbox-entry.mjs +3 -3
- package/dist/plugins/host.d.mts +5 -5
- package/dist/plugins/host.mjs +45 -44
- package/dist/plugins-DFBpfbO3.mjs +261 -0
- package/dist/plugins-DFBpfbO3.mjs.map +1 -0
- package/dist/policy-B_2qnHSy.mjs +45 -0
- package/dist/policy-B_2qnHSy.mjs.map +1 -0
- package/dist/portable-text-Dc2YAusw.mjs +307 -0
- package/dist/portable-text-Dc2YAusw.mjs.map +1 -0
- package/dist/preview-BtzikJ9O.mjs +107 -0
- package/dist/preview-BtzikJ9O.mjs.map +1 -0
- package/dist/protocol-M268ox8L.d.mts +61 -0
- package/dist/protocol-M268ox8L.d.mts.map +1 -0
- package/dist/public-submission-BQZavgZU.mjs +251 -0
- package/dist/public-submission-BQZavgZU.mjs.map +1 -0
- package/dist/public-url-uT1Ok2Tu.mjs +101 -0
- package/dist/public-url-uT1Ok2Tu.mjs.map +1 -0
- package/dist/query-BGG3sDEd.mjs +1127 -0
- package/dist/query-BGG3sDEd.mjs.map +1 -0
- package/dist/query-C_CWlifp.mjs +41 -0
- package/dist/query-C_CWlifp.mjs.map +1 -0
- package/dist/range-CXK_kDbI.mjs +51 -0
- package/dist/range-CXK_kDbI.mjs.map +1 -0
- package/dist/rate-limit-Dvamvay-.mjs +127 -0
- package/dist/rate-limit-Dvamvay-.mjs.map +1 -0
- package/dist/receipt-BmQGzquP.mjs +43 -0
- package/dist/receipt-BmQGzquP.mjs.map +1 -0
- package/dist/redirect-B39kTQ_0.mjs +423 -0
- package/dist/redirect-B39kTQ_0.mjs.map +1 -0
- package/dist/redirect-BguJ00Pv.mjs +19 -0
- package/dist/redirect-BguJ00Pv.mjs.map +1 -0
- package/dist/redirects-C8G4BsfP.mjs +446 -0
- package/dist/redirects-C8G4BsfP.mjs.map +1 -0
- package/dist/redirects-DFT7Wr-e.mjs +148 -0
- package/dist/redirects-DFT7Wr-e.mjs.map +1 -0
- package/dist/registry/testing.mjs +3 -3
- package/dist/registry-DeZ27gVi.mjs +8374 -0
- package/dist/registry-DeZ27gVi.mjs.map +1 -0
- package/dist/relations-DBB1bRJW.mjs +776 -0
- package/dist/relations-DBB1bRJW.mjs.map +1 -0
- package/dist/request-context.d.mts +2 -2
- package/dist/request-context.mjs.map +1 -1
- package/dist/request-meta-BSvkhIBX.mjs +141 -0
- package/dist/request-meta-BSvkhIBX.mjs.map +1 -0
- package/dist/resolve-BxH64HN9.mjs +100 -0
- package/dist/resolve-BxH64HN9.mjs.map +1 -0
- package/dist/revision-BWEH2qQB.mjs +368 -0
- package/dist/revision-BWEH2qQB.mjs.map +1 -0
- package/dist/route-wire-CwbWB_6O.mjs +197 -0
- package/dist/route-wire-CwbWB_6O.mjs.map +1 -0
- package/dist/routes-BfIxc7ft.mjs +272 -0
- package/dist/routes-BfIxc7ft.mjs.map +1 -0
- package/dist/runner-DkeafPBA.d.mts +68 -0
- package/dist/runner-DkeafPBA.d.mts.map +1 -0
- package/dist/runner-wqt4BrIW.mjs +6383 -0
- package/dist/runner-wqt4BrIW.mjs.map +1 -0
- package/dist/runtime.d.mts +13 -13
- package/dist/runtime.mjs +3 -3
- package/dist/schema/project-env-types.mjs +38 -38
- package/dist/schema-BXIW-JHi.mjs +815 -0
- package/dist/schema-BXIW-JHi.mjs.map +1 -0
- package/dist/schema-I74JwYte.mjs +13 -0
- package/dist/schema-I74JwYte.mjs.map +1 -0
- package/dist/scopes-RWZ5ft_Z.mjs +34 -0
- package/dist/scopes-RWZ5ft_Z.mjs.map +1 -0
- package/dist/search-DxwagyWS.mjs +450 -0
- package/dist/search-DxwagyWS.mjs.map +1 -0
- package/dist/secrets-Cc_O3Kp-.mjs +369 -0
- package/dist/secrets-Cc_O3Kp-.mjs.map +1 -0
- package/dist/sections-Ccq9ZgyD.mjs +346 -0
- package/dist/sections-Ccq9ZgyD.mjs.map +1 -0
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +36 -36
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +23 -23
- package/dist/seo-CCnfPWAQ.mjs +133 -0
- package/dist/seo-CCnfPWAQ.mjs.map +1 -0
- package/dist/seo-QCtJ1jjV.mjs +188 -0
- package/dist/seo-QCtJ1jjV.mjs.map +1 -0
- package/dist/service-DX84s2rw.mjs +150 -0
- package/dist/service-DX84s2rw.mjs.map +1 -0
- package/dist/session-user-1dtJc2zv.mjs +61 -0
- package/dist/session-user-1dtJc2zv.mjs.map +1 -0
- package/dist/settings-B1jOxAIl.mjs +443 -0
- package/dist/settings-B1jOxAIl.mjs.map +1 -0
- package/dist/settings-Bc1IBl1t.mjs +66 -0
- package/dist/settings-Bc1IBl1t.mjs.map +1 -0
- package/dist/settings-GaZ5sVgg.mjs +73 -0
- package/dist/settings-GaZ5sVgg.mjs.map +1 -0
- package/dist/setup-complete-DidMAWJS.mjs +65 -0
- package/dist/setup-complete-DidMAWJS.mjs.map +1 -0
- package/dist/setup-nonce-DKl4S4c6.mjs +25 -0
- package/dist/setup-nonce-DKl4S4c6.mjs.map +1 -0
- package/dist/single-flight-cache-D0EaGbN1.mjs +104 -0
- package/dist/single-flight-cache-D0EaGbN1.mjs.map +1 -0
- package/dist/site-domain-CbI51Pc2.mjs +113 -0
- package/dist/site-domain-CbI51Pc2.mjs.map +1 -0
- package/dist/site-settings-CDdT4mVm.mjs +50 -0
- package/dist/site-settings-CDdT4mVm.mjs.map +1 -0
- package/dist/site-url-CrDZaAvo.mjs +45 -0
- package/dist/site-url-CrDZaAvo.mjs.map +1 -0
- package/dist/sitemap-name-W3BTor6X.mjs +26 -0
- package/dist/sitemap-name-W3BTor6X.mjs.map +1 -0
- package/dist/slug-BJhHKoOH.mjs +16 -0
- package/dist/slug-BJhHKoOH.mjs.map +1 -0
- package/dist/slugify-bu2-jKia.mjs +22 -0
- package/dist/slugify-bu2-jKia.mjs.map +1 -0
- package/dist/snapshot-BuI_2uDe.mjs +414 -0
- package/dist/snapshot-BuI_2uDe.mjs.map +1 -0
- package/dist/ssrf-LM_0wpGA.mjs +406 -0
- package/dist/ssrf-LM_0wpGA.mjs.map +1 -0
- package/dist/stage-DhzZuYaT.mjs +662 -0
- package/dist/stage-DhzZuYaT.mjs.map +1 -0
- package/dist/staged-DboEaWsV.mjs +686 -0
- package/dist/staged-DboEaWsV.mjs.map +1 -0
- package/dist/state-DCXDzjHq.mjs +178 -0
- package/dist/state-DCXDzjHq.mjs.map +1 -0
- package/dist/status-Dl85BK39.mjs +30 -0
- package/dist/status-Dl85BK39.mjs.map +1 -0
- package/dist/storage/local.d.mts +2 -2
- package/dist/storage/local.d.mts.map +1 -1
- package/dist/storage/local.mjs +12 -5
- package/dist/storage/local.mjs.map +1 -1
- package/dist/storage/s3.d.mts +4 -2
- package/dist/storage/s3.d.mts.map +1 -1
- package/dist/storage/s3.mjs +56 -9
- package/dist/storage/s3.mjs.map +1 -1
- package/dist/storage-query-BOBmeDMD.d.mts +1615 -0
- package/dist/storage-query-BOBmeDMD.d.mts.map +1 -0
- package/dist/tar-K40edFMt.mjs +449 -0
- package/dist/tar-K40edFMt.mjs.map +1 -0
- package/dist/target-BOighEY1.mjs +27 -0
- package/dist/target-BOighEY1.mjs.map +1 -0
- package/dist/taxonomies-DQSywBvX.mjs +697 -0
- package/dist/taxonomies-DQSywBvX.mjs.map +1 -0
- package/dist/taxonomies-Dj5eaobC.mjs +939 -0
- package/dist/taxonomies-Dj5eaobC.mjs.map +1 -0
- package/dist/taxonomy-QrNmTfIZ.mjs +550 -0
- package/dist/taxonomy-QrNmTfIZ.mjs.map +1 -0
- package/dist/tokens-j5L0as2H.mjs +171 -0
- package/dist/tokens-j5L0as2H.mjs.map +1 -0
- package/dist/transfer-CYEw8Tu4.mjs +8873 -0
- package/dist/transfer-CYEw8Tu4.mjs.map +1 -0
- package/dist/transfer-DDX10hkD.mjs +166 -0
- package/dist/transfer-DDX10hkD.mjs.map +1 -0
- package/dist/transfer-download-BAqq6GJv.mjs +33 -0
- package/dist/transfer-download-BAqq6GJv.mjs.map +1 -0
- package/dist/transformations-De44wqV_.mjs +196 -0
- package/dist/transformations-De44wqV_.mjs.map +1 -0
- package/dist/transport-1QjUhCRO.d.mts +42 -0
- package/dist/transport-1QjUhCRO.d.mts.map +1 -0
- package/dist/transport-Ds5pVX7p.mjs +136 -0
- package/dist/transport-Ds5pVX7p.mjs.map +1 -0
- package/dist/trusted-proxy-d4Tk6biT.mjs +51 -0
- package/dist/trusted-proxy-d4Tk6biT.mjs.map +1 -0
- package/dist/turnstile-DaFLtyrs.mjs +58 -0
- package/dist/turnstile-DaFLtyrs.mjs.map +1 -0
- package/dist/types-B4-1P2DK.d.mts +227 -0
- package/dist/types-B4-1P2DK.d.mts.map +1 -0
- package/dist/types-BKXA0f-c.mjs +16 -0
- package/dist/types-BKXA0f-c.mjs.map +1 -0
- package/dist/types-BiHcpUoO.d.mts +374 -0
- package/dist/types-BiHcpUoO.d.mts.map +1 -0
- package/dist/types-BihhvkyN.d.mts +85 -0
- package/dist/types-BihhvkyN.d.mts.map +1 -0
- package/dist/types-Bq9Wohd7.d.mts +363 -0
- package/dist/types-Bq9Wohd7.d.mts.map +1 -0
- package/dist/types-C-Xp0CcN.mjs +103 -0
- package/dist/types-C-Xp0CcN.mjs.map +1 -0
- package/dist/types-C4P7F1Vq.d.mts +1741 -0
- package/dist/types-C4P7F1Vq.d.mts.map +1 -0
- package/dist/types-CGaqwHw4.mjs +37 -0
- package/dist/types-CGaqwHw4.mjs.map +1 -0
- package/dist/types-Cj0_yZkn.mjs +18 -0
- package/dist/types-Cj0_yZkn.mjs.map +1 -0
- package/dist/types-D4ECCE4X.mjs +77 -0
- package/dist/types-D4ECCE4X.mjs.map +1 -0
- package/dist/types-DcRJp0vS.d.mts +125 -0
- package/dist/types-DcRJp0vS.d.mts.map +1 -0
- package/dist/types-Ff85fTzU.d.mts +289 -0
- package/dist/types-Ff85fTzU.d.mts.map +1 -0
- package/dist/types-UKr5Sf4y.d.mts +916 -0
- package/dist/types-UKr5Sf4y.d.mts.map +1 -0
- package/dist/types-YpN8hZW7.d.mts +204 -0
- package/dist/types-YpN8hZW7.d.mts.map +1 -0
- package/dist/update-check-DrlsK-tt.mjs +161 -0
- package/dist/update-check-DrlsK-tt.mjs.map +1 -0
- package/dist/upload-attempts-D8CPPvRU.mjs +32 -0
- package/dist/upload-attempts-D8CPPvRU.mjs.map +1 -0
- package/dist/url-pattern-Di4Nn3vP.mjs +41 -0
- package/dist/url-pattern-Di4Nn3vP.mjs.map +1 -0
- package/dist/user-B-ZdGjhI.mjs +171 -0
- package/dist/user-B-ZdGjhI.mjs.map +1 -0
- package/dist/utils-D7wL3r6-.mjs +437 -0
- package/dist/utils-D7wL3r6-.mjs.map +1 -0
- package/dist/validate-BSZbSUDk.mjs +524 -0
- package/dist/validate-BSZbSUDk.mjs.map +1 -0
- package/dist/validate-Dfv0DpZi.d.mts +468 -0
- package/dist/validate-Dfv0DpZi.d.mts.map +1 -0
- package/dist/validation-DRyC_Vm5.mjs +219 -0
- package/dist/validation-DRyC_Vm5.mjs.map +1 -0
- package/dist/version-C4kz0PcO.mjs +7 -0
- package/dist/version-C4kz0PcO.mjs.map +1 -0
- package/dist/version-jhs2BRtl.mjs +9 -0
- package/dist/version-jhs2BRtl.mjs.map +1 -0
- package/dist/video-DReZ48Un.mjs +54 -0
- package/dist/video-DReZ48Un.mjs.map +1 -0
- package/dist/virtual-modules-D0e6VbEv.mjs +516 -0
- package/dist/virtual-modules-D0e6VbEv.mjs.map +1 -0
- package/dist/widgets-BkcMzKct.mjs +121 -0
- package/dist/widgets-BkcMzKct.mjs.map +1 -0
- package/dist/wxr-taxonomies-BxI0CbTg.mjs +453 -0
- package/dist/wxr-taxonomies-BxI0CbTg.mjs.map +1 -0
- package/dist/wxr-taxonomies-Dad33GJi.d.mts +34 -0
- package/dist/wxr-taxonomies-Dad33GJi.d.mts.map +1 -0
- package/dist/zod-generator-BQilAboC.mjs +424 -0
- package/dist/zod-generator-BQilAboC.mjs.map +1 -0
- package/package.json +19 -10
- package/src/api/errors.ts +12 -0
- package/src/api/handlers/api-tokens.ts +12 -6
- package/src/api/handlers/bylines.ts +24 -3
- package/src/api/handlers/calendar.ts +246 -0
- package/src/api/handlers/content.ts +69 -13
- package/src/api/handlers/domain-move-notice.ts +94 -0
- package/src/api/handlers/index.ts +2 -0
- package/src/api/handlers/manifest.ts +5 -0
- package/src/api/handlers/media-allowlist.ts +1 -0
- package/src/api/handlers/media-upload.ts +13 -10
- package/src/api/handlers/media-usage.ts +2 -1
- package/src/api/handlers/media.ts +1 -0
- package/src/api/handlers/plugins.ts +21 -29
- package/src/api/handlers/redirects.ts +6 -6
- package/src/api/handlers/seo.ts +155 -59
- package/src/api/handlers/settings.ts +31 -1
- package/src/api/handlers/site-domain.ts +143 -0
- package/src/api/openapi/document.ts +2 -2
- package/src/api/public-url.ts +1 -1
- package/src/api/schemas/bylines.ts +3 -1
- package/src/api/schemas/content.ts +36 -0
- package/src/api/schemas/media-usage.ts +7 -1
- package/src/api/schemas/media.ts +12 -0
- package/src/api/site-url.ts +53 -5
- package/src/api/types.ts +2 -0
- package/src/astro/image-endpoint.ts +46 -4
- package/src/astro/integration/admin-locales.ts +168 -0
- package/src/astro/integration/dev-env.ts +84 -0
- package/src/astro/integration/index.ts +67 -10
- package/src/astro/integration/routes.ts +25 -0
- package/src/astro/integration/runtime.ts +15 -0
- package/src/astro/integration/vite-config.ts +29 -1
- package/src/astro/middleware/auth.ts +16 -3
- package/src/astro/middleware/csp.ts +2 -0
- package/src/astro/middleware/redirect.ts +47 -21
- package/src/astro/middleware/request-context.ts +64 -31
- package/src/astro/middleware.ts +150 -26
- package/src/astro/prefetch.ts +10 -3
- package/src/astro/routes/api/admin/bylines/[id]/translations.ts +0 -5
- package/src/astro/routes/api/admin/bylines/index.ts +1 -1
- package/src/astro/routes/api/admin/plugins/[id]/index.ts +1 -0
- package/src/astro/routes/api/auth/handover.ts +58 -0
- package/src/astro/routes/api/auth/magic-link/verify.ts +11 -3
- package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +56 -4
- package/src/astro/routes/api/auth/oauth/[provider].ts +37 -4
- package/src/astro/routes/api/auth/passkey/options.ts +10 -2
- package/src/astro/routes/api/calendar.ts +35 -0
- package/src/astro/routes/api/import/wordpress/execute.ts +19 -0
- package/src/astro/routes/api/import/wordpress/rewrite-url-helpers.ts +80 -42
- package/src/astro/routes/api/import/wordpress-plugin/execute.ts +15 -0
- package/src/astro/routes/api/manifest.ts +10 -0
- package/src/astro/routes/api/media/[id]/confirm.ts +19 -0
- package/src/astro/routes/api/media/file/[...key].ts +60 -12
- package/src/astro/routes/api/media/upload-url.ts +35 -7
- package/src/astro/routes/api/media.ts +24 -5
- package/src/astro/routes/api/schema/index.ts +1 -1
- package/src/astro/routes/api/settings/domain-notify.ts +76 -0
- package/src/astro/routes/api/settings/domain.ts +63 -0
- package/src/astro/routes/api/setup/index.ts +21 -2
- package/src/astro/routes/api/site/domain-proof.ts +28 -0
- package/src/astro/routes/sitemap-[collection].xml.ts +31 -8
- package/src/astro/routes/sitemap.xml.ts +12 -10
- package/src/astro/types.ts +13 -1
- package/src/auth/providers/microsoft-admin.tsx +31 -0
- package/src/auth/providers/microsoft.ts +47 -0
- package/src/auth/rate-limit.ts +18 -13
- package/src/auth/types.ts +7 -0
- package/src/aws-sdk.d.ts +2 -1
- package/src/cleanup.ts +26 -0
- package/src/cli/commands/export-seed.ts +2 -0
- package/src/cli/commands/seed.ts +5 -4
- package/src/client/index.ts +6 -1
- package/src/comments/public-submission.ts +15 -8
- package/src/comments/turnstile.ts +6 -1
- package/src/components/CommentForm.astro +48 -8
- package/src/components/Comments.astro +50 -28
- package/src/components/EmDashImage.astro +6 -4
- package/src/components/Gallery.astro +4 -3
- package/src/components/HtmlBlock.astro +17 -6
- package/src/components/HtmlBlockFrame.astro +63 -0
- package/src/components/Iframe.astro +141 -0
- package/src/components/Image.astro +4 -3
- package/src/components/InlinePortableTextEditor.tsx +156 -33
- package/src/components/Video.astro +100 -0
- package/src/components/WebMcpSearch.astro +80 -0
- package/src/components/index.ts +8 -2
- package/src/components/inline-code-block.tsx +8 -0
- package/src/components/webmcp-search.ts +138 -0
- package/src/components/widgets/RecentPosts.astro +57 -17
- package/src/config/secrets.ts +27 -15
- package/src/content/converters/mark-safety.ts +3 -3
- package/src/content/converters/portable-text-identity.ts +2 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +43 -2
- package/src/content/converters/prosemirror-to-portable-text.ts +44 -2
- package/src/content/converters/types.ts +46 -0
- package/src/content/converters/video.ts +77 -0
- package/src/database/content-datetime.ts +11 -4
- package/src/database/datetime-storage.ts +1 -1
- package/src/database/migrations/090_redirect_enable_loop_guard.ts +70 -0
- package/src/database/migrations/091_redirect_artifacts.ts +141 -0
- package/src/database/migrations/runner.ts +17 -1
- package/src/database/repositories/comment.ts +17 -3
- package/src/database/repositories/content.ts +103 -29
- package/src/database/repositories/plugin-storage.ts +28 -19
- package/src/database/repositories/redirect.ts +30 -3
- package/src/database/repositories/taxonomy.ts +61 -46
- package/src/database/repositories/types.ts +2 -0
- package/src/database/request-scoped.ts +34 -0
- package/src/database/types.ts +23 -0
- package/src/db/adapters.ts +2 -0
- package/src/emdash-runtime.ts +245 -71
- package/src/import/menus.ts +3 -0
- package/src/import/sources/wordpress-plugin.ts +3 -2
- package/src/import/utils.ts +2 -3
- package/src/index.ts +4 -0
- package/src/loader.ts +360 -98
- package/src/mcp/server.ts +12 -4
- package/src/media/image-endpoint.ts +101 -1
- package/src/media/mime.ts +21 -0
- package/src/media/responsive.ts +14 -7
- package/src/media/usage/extractor.ts +19 -2
- package/src/media/usage/types.ts +5 -1
- package/src/menus/index.ts +30 -26
- package/src/plugin-utils.ts +1 -1
- package/src/plugins/context.ts +3 -7
- package/src/plugins/hooks.ts +11 -1
- package/src/plugins/http-route-dispatch.ts +5 -1
- package/src/plugins/manager.ts +12 -2
- package/src/plugins/manifest-schema.ts +1 -0
- package/src/plugins/route-error.ts +14 -0
- package/src/plugins/routes.ts +2 -2
- package/src/plugins/state.ts +36 -0
- package/src/plugins/types.ts +22 -0
- package/src/query.ts +20 -29
- package/src/redirects/artifacts.ts +460 -0
- package/src/redirects/cache.ts +76 -41
- package/src/redirects/patterns.ts +26 -2
- package/src/request-context.ts +1 -1
- package/src/schema/registry.ts +7 -4
- package/src/schema/slug.ts +19 -0
- package/src/search/text-extraction.ts +6 -1
- package/src/seed/apply.ts +65 -57
- package/src/seed/validate.ts +31 -0
- package/src/seo/sitemap-name.ts +22 -0
- package/src/settings/index.ts +17 -12
- package/src/storage/index.ts +2 -0
- package/src/storage/local.ts +10 -2
- package/src/storage/range.ts +54 -0
- package/src/storage/s3.ts +52 -8
- package/src/storage/types.ts +30 -3
- package/src/transfer/format/columns.ts +3 -0
- package/src/transfer/import/rebuild.ts +17 -2
- package/src/transfer/import/scaffold.ts +16 -9
- package/src/ui.ts +2 -0
- package/src/utils/sanitize.ts +14 -9
- package/src/utils/slugify.ts +6 -1
- package/src/virtual-modules.d.ts +3 -0
- package/src/visual-editing/toolbar.ts +80 -35
- package/src/widgets/components.ts +4 -0
- package/src/widgets/index.ts +74 -82
- package/src/widgets/recent-posts.ts +62 -0
- package/dist/action-token-D2KE1Rqf.mjs +0 -26
- package/dist/action-token-D2KE1Rqf.mjs.map +0 -1
- package/dist/activation-DDuqAat2.mjs +0 -387
- package/dist/activation-DDuqAat2.mjs.map +0 -1
- package/dist/adapters-Ds-1Pmkm.d.mts +0 -171
- package/dist/adapters-Ds-1Pmkm.d.mts.map +0 -1
- package/dist/allowed-origins-D78QvbTO.mjs +0 -116
- package/dist/allowed-origins-D78QvbTO.mjs.map +0 -1
- package/dist/api-BBZlif0y.mjs +0 -4974
- package/dist/api-BBZlif0y.mjs.map +0 -1
- package/dist/api-tokens-BGbfWZVO.mjs +0 -166
- package/dist/api-tokens-BGbfWZVO.mjs.map +0 -1
- package/dist/apply-CDNV4JJ-.mjs +0 -1672
- package/dist/apply-CDNV4JJ-.mjs.map +0 -1
- package/dist/approvals-CVvJSEBF.mjs +0 -460
- package/dist/approvals-CVvJSEBF.mjs.map +0 -1
- package/dist/artifact-fetch-CGK0DQLj.mjs +0 -659
- package/dist/artifact-fetch-CGK0DQLj.mjs.map +0 -1
- package/dist/audit-BszbE_BP.mjs +0 -127
- package/dist/audit-BszbE_BP.mjs.map +0 -1
- package/dist/authoritative-records-ChM8dTeV.mjs +0 -5172
- package/dist/authoritative-records-ChM8dTeV.mjs.map +0 -1
- package/dist/authorize-CTGywswM.mjs +0 -49
- package/dist/authorize-CTGywswM.mjs.map +0 -1
- package/dist/backup-CDrPP8fI.mjs +0 -246
- package/dist/backup-CDrPP8fI.mjs.map +0 -1
- package/dist/base64-DvnNgP7e.mjs +0 -63
- package/dist/base64-DvnNgP7e.mjs.map +0 -1
- package/dist/block-types-nNEaPkvx.mjs +0 -132
- package/dist/block-types-nNEaPkvx.mjs.map +0 -1
- package/dist/block-values-Bho1nsZF.mjs +0 -175
- package/dist/block-values-Bho1nsZF.mjs.map +0 -1
- package/dist/byline-02tu_Uc-.mjs +0 -909
- package/dist/byline-02tu_Uc-.mjs.map +0 -1
- package/dist/byline-fields-BYbTptTU.mjs +0 -280
- package/dist/byline-fields-BYbTptTU.mjs.map +0 -1
- package/dist/byline-fields-BjQH-1z9.mjs +0 -123
- package/dist/byline-fields-BjQH-1z9.mjs.map +0 -1
- package/dist/bylines-VytjeHBI.mjs +0 -214
- package/dist/bylines-VytjeHBI.mjs.map +0 -1
- package/dist/bylines-gyWBWUUc.mjs +0 -150
- package/dist/bylines-gyWBWUUc.mjs.map +0 -1
- package/dist/cache-CPanL9IO.mjs +0 -114
- package/dist/cache-CPanL9IO.mjs.map +0 -1
- package/dist/canonical-CAecl1UQ.mjs +0 -174
- package/dist/canonical-CAecl1UQ.mjs.map +0 -1
- package/dist/capture-triggers-CdZfvHtF.mjs +0 -362
- package/dist/capture-triggers-CdZfvHtF.mjs.map +0 -1
- package/dist/challenge-store-VePApay4.mjs +0 -51
- package/dist/challenge-store-VePApay4.mjs.map +0 -1
- package/dist/checksum-BSIhEAYW.mjs +0 -162
- package/dist/checksum-BSIhEAYW.mjs.map +0 -1
- package/dist/chrome-tags-CKELm-bo.mjs +0 -24
- package/dist/chrome-tags-CKELm-bo.mjs.map +0 -1
- package/dist/chunks-DBmkKmBH.mjs +0 -25
- package/dist/chunks-DBmkKmBH.mjs.map +0 -1
- package/dist/collection-slugs-cache-BNRAPNiu.mjs +0 -85
- package/dist/collection-slugs-cache-BNRAPNiu.mjs.map +0 -1
- package/dist/comment-Cq1UYN8_.mjs +0 -313
- package/dist/comment-Cq1UYN8_.mjs.map +0 -1
- package/dist/comment-reaction-B5sZzSoA.mjs +0 -85
- package/dist/comment-reaction-B5sZzSoA.mjs.map +0 -1
- package/dist/comments-B3F-ETyh.mjs +0 -195
- package/dist/comments-B3F-ETyh.mjs.map +0 -1
- package/dist/comments-zrTgWBSg.mjs +0 -99
- package/dist/comments-zrTgWBSg.mjs.map +0 -1
- package/dist/components-Dbf4Eq16.mjs +0 -108
- package/dist/components-Dbf4Eq16.mjs.map +0 -1
- package/dist/config-BCM5sQP7.d.mts +0 -6688
- package/dist/config-BCM5sQP7.d.mts.map +0 -1
- package/dist/config-CXPcy2iY.mjs +0 -228
- package/dist/config-CXPcy2iY.mjs.map +0 -1
- package/dist/config-CZkZBuBK.d.mts +0 -39
- package/dist/config-CZkZBuBK.d.mts.map +0 -1
- package/dist/connection-C5GIciX9.mjs +0 -36
- package/dist/connection-C5GIciX9.mjs.map +0 -1
- package/dist/content-RzEXY3QX.mjs +0 -2020
- package/dist/content-RzEXY3QX.mjs.map +0 -1
- package/dist/content-list-query-B6P37Ug_.d.mts +0 -26
- package/dist/content-list-query-B6P37Ug_.d.mts.map +0 -1
- package/dist/content-repair-BDVsYXWK.mjs +0 -442
- package/dist/content-repair-BDVsYXWK.mjs.map +0 -1
- package/dist/context-BpTIzY5h.mjs +0 -2026
- package/dist/context-BpTIzY5h.mjs.map +0 -1
- package/dist/credits-JOE92Gr7.mjs +0 -110
- package/dist/credits-JOE92Gr7.mjs.map +0 -1
- package/dist/cron-ktyapbdB.mjs +0 -306
- package/dist/cron-ktyapbdB.mjs.map +0 -1
- package/dist/dashboard-BoV4pwPP.mjs +0 -151
- package/dist/dashboard-BoV4pwPP.mjs.map +0 -1
- package/dist/default-B7KnYwtQ.mjs +0 -81
- package/dist/default-B7KnYwtQ.mjs.map +0 -1
- package/dist/deferred-tasks-eaUIqXj8.d.mts +0 -9
- package/dist/deferred-tasks-eaUIqXj8.d.mts.map +0 -1
- package/dist/dev-typegen-8JlYYFno.mjs +0 -29
- package/dist/dev-typegen-8JlYYFno.mjs.map +0 -1
- package/dist/device-flow-BlV_z24g.mjs +0 -521
- package/dist/device-flow-BlV_z24g.mjs.map +0 -1
- package/dist/digest-DiYAoZpf.mjs +0 -194
- package/dist/digest-DiYAoZpf.mjs.map +0 -1
- package/dist/direct-executor-Db8xA3zg.mjs +0 -104
- package/dist/direct-executor-Db8xA3zg.mjs.map +0 -1
- package/dist/email-console-Dm78wSmg.mjs +0 -50
- package/dist/email-console-Dm78wSmg.mjs.map +0 -1
- package/dist/email-locale-B4X9LXe9.mjs +0 -25
- package/dist/email-locale-B4X9LXe9.mjs.map +0 -1
- package/dist/emdash-runtime-BakQ6io7.mjs +0 -4239
- package/dist/emdash-runtime-BakQ6io7.mjs.map +0 -1
- package/dist/enrich-BDdVNeDK.mjs +0 -194
- package/dist/enrich-BDdVNeDK.mjs.map +0 -1
- package/dist/entry-lock-DY8B-xcr.d.mts +0 -4544
- package/dist/entry-lock-DY8B-xcr.d.mts.map +0 -1
- package/dist/entry-lock-DrUAdTzf.mjs +0 -163
- package/dist/entry-lock-DrUAdTzf.mjs.map +0 -1
- package/dist/entry-lock-yIkBduqJ.mjs +0 -1180
- package/dist/entry-lock-yIkBduqJ.mjs.map +0 -1
- package/dist/env-types-DkHYR2pl.mjs +0 -38
- package/dist/env-types-DkHYR2pl.mjs.map +0 -1
- package/dist/error-DIYXAVk4.mjs +0 -90
- package/dist/error-DIYXAVk4.mjs.map +0 -1
- package/dist/errors-CNvATh_7.mjs +0 -469
- package/dist/errors-CNvATh_7.mjs.map +0 -1
- package/dist/errors-CjXd1LgH.mjs +0 -120
- package/dist/errors-CjXd1LgH.mjs.map +0 -1
- package/dist/escape-B1GM0yJU.mjs +0 -9
- package/dist/escape-B1GM0yJU.mjs.map +0 -1
- package/dist/fence-8MaKKWhp.mjs +0 -162
- package/dist/fence-8MaKKWhp.mjs.map +0 -1
- package/dist/field-defs-cache-DEkFYCDE.mjs +0 -77
- package/dist/field-defs-cache-DEkFYCDE.mjs.map +0 -1
- package/dist/field-map-D7ioN0r0.mjs +0 -83
- package/dist/field-map-D7ioN0r0.mjs.map +0 -1
- package/dist/fts-manager-DU03MxWu.mjs +0 -443
- package/dist/fts-manager-DU03MxWu.mjs.map +0 -1
- package/dist/gc-DMiE7ezk.mjs +0 -75
- package/dist/gc-DMiE7ezk.mjs.map +0 -1
- package/dist/hash-CY4QdeMJ.mjs +0 -37
- package/dist/hash-CY4QdeMJ.mjs.map +0 -1
- package/dist/hook-result-Cb67D3P3.d.mts +0 -31
- package/dist/hook-result-Cb67D3P3.d.mts.map +0 -1
- package/dist/hreflang-Bterc3b7.mjs +0 -105
- package/dist/hreflang-Bterc3b7.mjs.map +0 -1
- package/dist/hreflang-uIBOE5yg.d.mts +0 -50
- package/dist/hreflang-uIBOE5yg.d.mts.map +0 -1
- package/dist/http-route-dispatch-DubjTibD.mjs +0 -339
- package/dist/http-route-dispatch-DubjTibD.mjs.map +0 -1
- package/dist/identity-DJ-5AcdG.mjs +0 -35
- package/dist/identity-DJ-5AcdG.mjs.map +0 -1
- package/dist/import-DEfuIgRz.mjs +0 -2020
- package/dist/import-DEfuIgRz.mjs.map +0 -1
- package/dist/index-xCy3j0f6.d.mts +0 -623
- package/dist/index-xCy3j0f6.d.mts.map +0 -1
- package/dist/init-lock-4eRRB4Le.mjs +0 -56
- package/dist/init-lock-4eRRB4Le.mjs.map +0 -1
- package/dist/install-finalization-DeGRbaVa.mjs +0 -58
- package/dist/install-finalization-DeGRbaVa.mjs.map +0 -1
- package/dist/keys-DWwMxdZh.mjs +0 -61
- package/dist/keys-DWwMxdZh.mjs.map +0 -1
- package/dist/kinds-D1A-00-F.mjs +0 -974
- package/dist/kinds-D1A-00-F.mjs.map +0 -1
- package/dist/lifecycle-BWtBGNEn.mjs +0 -25
- package/dist/lifecycle-BWtBGNEn.mjs.map +0 -1
- package/dist/load-BR1NEa_3.mjs +0 -28
- package/dist/load-BR1NEa_3.mjs.map +0 -1
- package/dist/loader-D4edocWH.mjs +0 -1197
- package/dist/loader-D4edocWH.mjs.map +0 -1
- package/dist/loops-DLaHFrvI.mjs +0 -205
- package/dist/loops-DLaHFrvI.mjs.map +0 -1
- package/dist/manifest-builder-8jsSLR7s.mjs +0 -189
- package/dist/manifest-builder-8jsSLR7s.mjs.map +0 -1
- package/dist/manifest-schema-DcZjRNEv.mjs +0 -496
- package/dist/manifest-schema-DcZjRNEv.mjs.map +0 -1
- package/dist/marketplace-CNxjq10S.mjs +0 -257
- package/dist/marketplace-CNxjq10S.mjs.map +0 -1
- package/dist/media-3v7mqAVX.mjs +0 -294
- package/dist/media-3v7mqAVX.mjs.map +0 -1
- package/dist/media-Bs6qmlVl.mjs +0 -408
- package/dist/media-Bs6qmlVl.mjs.map +0 -1
- package/dist/media-CputjGE1.mjs +0 -373
- package/dist/media-CputjGE1.mjs.map +0 -1
- package/dist/media-allowlist-isqF1gAh.mjs +0 -44
- package/dist/media-allowlist-isqF1gAh.mjs.map +0 -1
- package/dist/media-folders-D2VdVBf6.mjs +0 -210
- package/dist/media-folders-D2VdVBf6.mjs.map +0 -1
- package/dist/media-url-DbkMY3y6.mjs +0 -43
- package/dist/media-url-DbkMY3y6.mjs.map +0 -1
- package/dist/media-usage-activation-BaT4AlNI.mjs +0 -78
- package/dist/media-usage-activation-BaT4AlNI.mjs.map +0 -1
- package/dist/media-usage-v43L0kR_.mjs +0 -282
- package/dist/media-usage-v43L0kR_.mjs.map +0 -1
- package/dist/media-usage-work-CY8gIeU-.mjs +0 -151
- package/dist/media-usage-work-CY8gIeU-.mjs.map +0 -1
- package/dist/media-usage-work-VO108Q9E.mjs +0 -1015
- package/dist/media-usage-work-VO108Q9E.mjs.map +0 -1
- package/dist/menus-BYyeRemR.mjs +0 -3647
- package/dist/menus-BYyeRemR.mjs.map +0 -1
- package/dist/menus-mC_XTxD7.mjs +0 -92
- package/dist/menus-mC_XTxD7.mjs.map +0 -1
- package/dist/menus-trvc6_fW.mjs +0 -753
- package/dist/menus-trvc6_fW.mjs.map +0 -1
- package/dist/mime-IZf-LHIS.mjs +0 -36
- package/dist/mime-IZf-LHIS.mjs.map +0 -1
- package/dist/mode-B9-gMXL9.mjs +0 -23
- package/dist/mode-B9-gMXL9.mjs.map +0 -1
- package/dist/node-sqlite-compat-DztcWs4y.mjs +0 -63
- package/dist/node-sqlite-compat-DztcWs4y.mjs.map +0 -1
- package/dist/oauth-authorization-BIHy9SGU.mjs +0 -274
- package/dist/oauth-authorization-BIHy9SGU.mjs.map +0 -1
- package/dist/oauth-clients-BZWZvKXa.mjs +0 -266
- package/dist/oauth-clients-BZWZvKXa.mjs.map +0 -1
- package/dist/oauth-state-store-CxXTjXdI.mjs +0 -50
- package/dist/oauth-state-store-CxXTjXdI.mjs.map +0 -1
- package/dist/oauth-user-lookup-GWojfxRl.mjs +0 -26
- package/dist/oauth-user-lookup-GWojfxRl.mjs.map +0 -1
- package/dist/options-DRF6dlXY.d.mts +0 -81
- package/dist/options-DRF6dlXY.d.mts.map +0 -1
- package/dist/ownership-Bd77AmJz.mjs +0 -12
- package/dist/ownership-Bd77AmJz.mjs.map +0 -1
- package/dist/parse-5Y0W39xR.mjs +0 -81
- package/dist/parse-5Y0W39xR.mjs.map +0 -1
- package/dist/parse-BPblgoa-.d.mts +0 -172
- package/dist/parse-BPblgoa-.d.mts.map +0 -1
- package/dist/passkey-config-PiQ5cBnt.mjs +0 -46
- package/dist/passkey-config-PiQ5cBnt.mjs.map +0 -1
- package/dist/paths-DkS74lBM.mjs +0 -77
- package/dist/paths-DkS74lBM.mjs.map +0 -1
- package/dist/patterns-DyZJ67I7.mjs +0 -140
- package/dist/patterns-DyZJ67I7.mjs.map +0 -1
- package/dist/placeholder-Bez2282x.d.mts +0 -306
- package/dist/placeholder-Bez2282x.d.mts.map +0 -1
- package/dist/plan-Lw7iGnGD.mjs +0 -135
- package/dist/plan-Lw7iGnGD.mjs.map +0 -1
- package/dist/plugins-D7xSh1Lu.mjs +0 -277
- package/dist/plugins-D7xSh1Lu.mjs.map +0 -1
- package/dist/policy-DMRiMdLn.mjs +0 -45
- package/dist/policy-DMRiMdLn.mjs.map +0 -1
- package/dist/portable-text-kcyN3F-a.mjs +0 -307
- package/dist/portable-text-kcyN3F-a.mjs.map +0 -1
- package/dist/preview--2VDLaND.mjs +0 -107
- package/dist/preview--2VDLaND.mjs.map +0 -1
- package/dist/protocol-FvwLA8P-.d.mts +0 -61
- package/dist/protocol-FvwLA8P-.d.mts.map +0 -1
- package/dist/public-submission-BRyK76U8.mjs +0 -250
- package/dist/public-submission-BRyK76U8.mjs.map +0 -1
- package/dist/public-url-7j0cpCFc.mjs +0 -101
- package/dist/public-url-7j0cpCFc.mjs.map +0 -1
- package/dist/query-BRNTde3V.mjs +0 -41
- package/dist/query-BRNTde3V.mjs.map +0 -1
- package/dist/query-DyYYWOKk.mjs +0 -1161
- package/dist/query-DyYYWOKk.mjs.map +0 -1
- package/dist/rate-limit-D0BcE76H.mjs +0 -120
- package/dist/rate-limit-D0BcE76H.mjs.map +0 -1
- package/dist/receipt-C4icyHlC.mjs +0 -43
- package/dist/receipt-C4icyHlC.mjs.map +0 -1
- package/dist/redirect-9DbtxSNG.mjs +0 -19
- package/dist/redirect-9DbtxSNG.mjs.map +0 -1
- package/dist/redirect-BvFKh8Sz.mjs +0 -416
- package/dist/redirect-BvFKh8Sz.mjs.map +0 -1
- package/dist/redirects-1nhdEaTq.mjs +0 -148
- package/dist/redirects-1nhdEaTq.mjs.map +0 -1
- package/dist/redirects-D1yMnSR9.mjs +0 -446
- package/dist/redirects-D1yMnSR9.mjs.map +0 -1
- package/dist/registry-CzPJNu3H.mjs +0 -8366
- package/dist/registry-CzPJNu3H.mjs.map +0 -1
- package/dist/relations-C8JpSkU6.mjs +0 -776
- package/dist/relations-C8JpSkU6.mjs.map +0 -1
- package/dist/request-meta-Bs60XW1m.mjs +0 -141
- package/dist/request-meta-Bs60XW1m.mjs.map +0 -1
- package/dist/resolve-BHWgMU_X.mjs +0 -100
- package/dist/resolve-BHWgMU_X.mjs.map +0 -1
- package/dist/revision-CGkQA0e5.mjs +0 -366
- package/dist/revision-CGkQA0e5.mjs.map +0 -1
- package/dist/route-wire-ClUVQduA.mjs +0 -197
- package/dist/route-wire-ClUVQduA.mjs.map +0 -1
- package/dist/routes-D2GFl3B7.mjs +0 -272
- package/dist/routes-D2GFl3B7.mjs.map +0 -1
- package/dist/runner-CLpxmhl8.mjs +0 -6197
- package/dist/runner-CLpxmhl8.mjs.map +0 -1
- package/dist/runner-CWl76CH3.d.mts +0 -68
- package/dist/runner-CWl76CH3.d.mts.map +0 -1
- package/dist/schema-27XefSYG.mjs +0 -13
- package/dist/schema-27XefSYG.mjs.map +0 -1
- package/dist/schema-Btvj3BMh.mjs +0 -815
- package/dist/schema-Btvj3BMh.mjs.map +0 -1
- package/dist/scopes-DGCj6K4p.mjs +0 -34
- package/dist/scopes-DGCj6K4p.mjs.map +0 -1
- package/dist/search-pZRRmWjh.mjs +0 -448
- package/dist/search-pZRRmWjh.mjs.map +0 -1
- package/dist/secrets-CIi0nFiR.mjs +0 -341
- package/dist/secrets-CIi0nFiR.mjs.map +0 -1
- package/dist/sections-CIhqs3Ao.mjs +0 -346
- package/dist/sections-CIhqs3Ao.mjs.map +0 -1
- package/dist/seo-DifeiGdl.mjs +0 -114
- package/dist/seo-DifeiGdl.mjs.map +0 -1
- package/dist/seo-DpYxmGaL.mjs +0 -133
- package/dist/seo-DpYxmGaL.mjs.map +0 -1
- package/dist/service-COVdVpSK.mjs +0 -150
- package/dist/service-COVdVpSK.mjs.map +0 -1
- package/dist/session-user-C6IEjuty.mjs +0 -61
- package/dist/session-user-C6IEjuty.mjs.map +0 -1
- package/dist/settings-CwcrX-Ay.mjs +0 -61
- package/dist/settings-CwcrX-Ay.mjs.map +0 -1
- package/dist/settings-D_cJtT48.mjs +0 -439
- package/dist/settings-D_cJtT48.mjs.map +0 -1
- package/dist/settings-tnPQN3Z2.mjs +0 -51
- package/dist/settings-tnPQN3Z2.mjs.map +0 -1
- package/dist/setup-complete-BOrI10UY.mjs +0 -65
- package/dist/setup-complete-BOrI10UY.mjs.map +0 -1
- package/dist/setup-nonce-0XTBLTsX.mjs +0 -25
- package/dist/setup-nonce-0XTBLTsX.mjs.map +0 -1
- package/dist/single-flight-cache-B5O2qhO1.mjs +0 -104
- package/dist/single-flight-cache-B5O2qhO1.mjs.map +0 -1
- package/dist/site-settings-B7vGFRDT.mjs +0 -50
- package/dist/site-settings-B7vGFRDT.mjs.map +0 -1
- package/dist/site-url-wEYRMHBv.mjs +0 -16
- package/dist/site-url-wEYRMHBv.mjs.map +0 -1
- package/dist/slugify-T5GHH42D.mjs +0 -17
- package/dist/slugify-T5GHH42D.mjs.map +0 -1
- package/dist/snapshot-W36KbLmc.mjs +0 -414
- package/dist/snapshot-W36KbLmc.mjs.map +0 -1
- package/dist/ssrf-CRJ-xom5.mjs +0 -406
- package/dist/ssrf-CRJ-xom5.mjs.map +0 -1
- package/dist/stage-DA0NrTRZ.mjs +0 -662
- package/dist/stage-DA0NrTRZ.mjs.map +0 -1
- package/dist/staged-Bw5eHbKS.mjs +0 -686
- package/dist/staged-Bw5eHbKS.mjs.map +0 -1
- package/dist/state-BTlprvUF.mjs +0 -153
- package/dist/state-BTlprvUF.mjs.map +0 -1
- package/dist/status-C6IrSLMT.mjs +0 -30
- package/dist/status-C6IrSLMT.mjs.map +0 -1
- package/dist/storage-query-CdVF2bng.d.mts +0 -1614
- package/dist/storage-query-CdVF2bng.d.mts.map +0 -1
- package/dist/tar-BGOZARjy.mjs +0 -449
- package/dist/tar-BGOZARjy.mjs.map +0 -1
- package/dist/target-YhYH_0uc.mjs +0 -27
- package/dist/target-YhYH_0uc.mjs.map +0 -1
- package/dist/taxonomies-DK_XBrmT.mjs +0 -697
- package/dist/taxonomies-DK_XBrmT.mjs.map +0 -1
- package/dist/taxonomies-S1M3rUC0.mjs +0 -939
- package/dist/taxonomies-S1M3rUC0.mjs.map +0 -1
- package/dist/taxonomy-BesdHIwi.mjs +0 -525
- package/dist/taxonomy-BesdHIwi.mjs.map +0 -1
- package/dist/tokens-B_ffPF1q.mjs +0 -171
- package/dist/tokens-B_ffPF1q.mjs.map +0 -1
- package/dist/transfer-9fVSxyrV.mjs +0 -166
- package/dist/transfer-9fVSxyrV.mjs.map +0 -1
- package/dist/transfer-B7LUTaYD.mjs +0 -8855
- package/dist/transfer-B7LUTaYD.mjs.map +0 -1
- package/dist/transfer-download-BdNq4VWN.mjs +0 -33
- package/dist/transfer-download-BdNq4VWN.mjs.map +0 -1
- package/dist/transformations-BtQdvyly.mjs +0 -196
- package/dist/transformations-BtQdvyly.mjs.map +0 -1
- package/dist/transport-CriYXY1c.mjs +0 -136
- package/dist/transport-CriYXY1c.mjs.map +0 -1
- package/dist/transport-SnhS6xku.d.mts +0 -42
- package/dist/transport-SnhS6xku.d.mts.map +0 -1
- package/dist/trusted-proxy-C0eHXPd-.mjs +0 -51
- package/dist/trusted-proxy-C0eHXPd-.mjs.map +0 -1
- package/dist/turnstile-BNPrWd1e.mjs +0 -53
- package/dist/turnstile-BNPrWd1e.mjs.map +0 -1
- package/dist/types-B8sF_kE5.d.mts +0 -287
- package/dist/types-B8sF_kE5.d.mts.map +0 -1
- package/dist/types-BYVIYOlD.d.mts +0 -1720
- package/dist/types-BYVIYOlD.d.mts.map +0 -1
- package/dist/types-Bs4bi95j.d.mts +0 -374
- package/dist/types-Bs4bi95j.d.mts.map +0 -1
- package/dist/types-CGuODCZi.d.mts +0 -198
- package/dist/types-CGuODCZi.d.mts.map +0 -1
- package/dist/types-CVsmpTcU.mjs +0 -18
- package/dist/types-CVsmpTcU.mjs.map +0 -1
- package/dist/types-ClFEExxn.mjs +0 -37
- package/dist/types-ClFEExxn.mjs.map +0 -1
- package/dist/types-D994zUWB.d.mts +0 -85
- package/dist/types-D994zUWB.d.mts.map +0 -1
- package/dist/types-DAj1ByJQ.d.mts +0 -125
- package/dist/types-DAj1ByJQ.d.mts.map +0 -1
- package/dist/types-Dlv6esp4.mjs +0 -77
- package/dist/types-Dlv6esp4.mjs.map +0 -1
- package/dist/types-Dr1LVwL7.d.mts +0 -363
- package/dist/types-Dr1LVwL7.d.mts.map +0 -1
- package/dist/types-MN9bOQ1g.d.mts +0 -198
- package/dist/types-MN9bOQ1g.d.mts.map +0 -1
- package/dist/types-d2Szb1oz.mjs +0 -16
- package/dist/types-d2Szb1oz.mjs.map +0 -1
- package/dist/types-ibtP7GEA.d.mts +0 -896
- package/dist/types-ibtP7GEA.d.mts.map +0 -1
- package/dist/types-j6MBDjlZ.mjs +0 -103
- package/dist/types-j6MBDjlZ.mjs.map +0 -1
- package/dist/update-check-D8No-E5s.mjs +0 -161
- package/dist/update-check-D8No-E5s.mjs.map +0 -1
- package/dist/upload-attempts-BodUoFBu.mjs +0 -32
- package/dist/upload-attempts-BodUoFBu.mjs.map +0 -1
- package/dist/url-pattern-DGAG6ZP2.mjs +0 -41
- package/dist/url-pattern-DGAG6ZP2.mjs.map +0 -1
- package/dist/user-BOvuF1sQ.mjs +0 -171
- package/dist/user-BOvuF1sQ.mjs.map +0 -1
- package/dist/utils-Dr01wRKt.mjs +0 -439
- package/dist/utils-Dr01wRKt.mjs.map +0 -1
- package/dist/validate-BttYU7NK.mjs +0 -516
- package/dist/validate-BttYU7NK.mjs.map +0 -1
- package/dist/validate-Df09inbC.d.mts +0 -468
- package/dist/validate-Df09inbC.d.mts.map +0 -1
- package/dist/validation-DH2WRwWO.mjs +0 -219
- package/dist/validation-DH2WRwWO.mjs.map +0 -1
- package/dist/version-BbygH8CT.mjs +0 -7
- package/dist/version-BbygH8CT.mjs.map +0 -1
- package/dist/version-CseoDDOd.mjs +0 -9
- package/dist/version-CseoDDOd.mjs.map +0 -1
- package/dist/virtual-modules-82GlnQyG.mjs +0 -516
- package/dist/virtual-modules-82GlnQyG.mjs.map +0 -1
- package/dist/widgets-DMAgGcQt.mjs +0 -126
- package/dist/widgets-DMAgGcQt.mjs.map +0 -1
- package/dist/wxr-taxonomies-Bi5kFSxQ.mjs +0 -453
- package/dist/wxr-taxonomies-Bi5kFSxQ.mjs.map +0 -1
- package/dist/wxr-taxonomies-y_FpYlDn.d.mts +0 -34
- package/dist/wxr-taxonomies-y_FpYlDn.d.mts.map +0 -1
- package/dist/zod-generator-DnfG5sGQ.mjs +0 -424
- package/dist/zod-generator-DnfG5sGQ.mjs.map +0 -1
- /package/dist/{api-tokens-B4COohsb.mjs → api-tokens-D2zgAIEt.mjs} +0 -0
- /package/dist/{ssrf-sC4_5rxm.mjs → ssrf-BvNItdxk.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-query-BOBmeDMD.d.mts","names":[],"sources":["../src/config/secrets.ts","../src/datetime-normalization.ts","../src/database/content-datetime.ts","../src/database/repositories/content.ts","../src/media/focal-point.ts","../src/database/repositories/media.ts","../src/database/repositories/plugin-storage.ts","../src/plugins/hooks.ts","../src/plugins/email.ts","../src/plugins/settings.ts","../src/plugins/content-access.ts","../src/plugins/context.ts","../src/plugins/sandbox/types.ts","../src/plugins/cron.ts","../src/plugins/byline-access.ts","../src/plugins/media.ts","../src/plugins/storage-query.ts"],"mappings":";;;;;;;;;;;;;;;;UA8EiB,mBAAA;;EAEhB,GAAA;EChDgB;EDkDhB,GAAA,EAAK,UAAA;;EAEL,GAAA;AAAA;;UAyCgB,UAAA;EErEkB;;;;;EF2ElC,qBAAA;EACA,qBAAA;;EAEA,cAAA;EACA,cAAA;;;;AG8OD;;;EHvOC,kBAAA;EG2Oa;EHzOb,WAAA;AAAA;;;;;;;;iBA6Ge,2BAAA,CACf,GAAA,GAAM,UAAA,GACJ,OAAA,CAAQ,mBAAA;;;UC/NM,uB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AAA,SAAW,IAAA;EAGvB,QAAA,CACL,IAAA,UACA,IAAA;IAAQ,QAAA;IAAkB,IAAA,GAAO,MAAA;EAAA,IAC/B,OAAA;EA2BG,MAAA,CAAO,IAAA,WAAe,OAAA;EAStB,IAAA,CAAA,GAAQ,OAAA,CAAQ,YAAA;AAAA;;;;;;iBChMP,kBAAA,CAAmB,EAAA,EAAI,MAAA,CAAO,QAAA,IAAY,YAAA;;;cC9F7C,+BAAA;AAAA,cACA,2BAAA;AAAA,iBAMG,iBAAA,CAAkB,IAAA,EAAM,SAAA,GAAsB,WAAA;AAAA,iBAkExC,oBAAA,CACrB,EAAA,EAAI,MAAA,CAAO,QAAA,GACX,OAAA,EAAS,IAAA,CAAK,OAAA,2BACd,EAAA,UACA,OAAA;EAAY,QAAA;AAAA,IACV,OAAA,CAAQ,UAAA;AAAA,iBAyBW,yBAAA,CACrB,EAAA,EAAI,MAAA,CAAO,QAAA,GACX,EAAA,UACA,KAAA,EAAO,kBAAA,GACL,OAAA,CAAQ,WAAA;AAAA,iBASK,6BAAA,CAA8B,KAAA,YAAiB,kBAAA;;;;;AfF/D;;;;;;;;;;;;AAgIA;;;;;cgB/Ma,yBAAA,SAAkC,KAAA;EAAA,SACrC,IAAA;EAAA,SACA,SAAA;EhB8MH;EAAA,SgB5MG,QAAA;cAEG,OAAA,UAAiB,OAAA;IAAY,KAAA;IAAiB,QAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import { t as TransferError } from "./errors-CjtE5aWF.mjs";
|
|
2
|
+
import { a as parseCanonicalJson, n as canonicalJson, o as TRANSFER_LIMITS, r as compareUtf16, t as CanonicalJsonError } from "./canonical-BUcKRYpG.mjs";
|
|
3
|
+
import { b as summarizeSchemaIssue, h as portableIdSchema, i as RECORD_KINDS, l as compareIds } from "./kinds-DT1W4T4Y.mjs";
|
|
4
|
+
import { a as parsePackagePath, n as indexChunkPath, t as MANIFEST_PATH } from "./paths-BmcAdBo9.mjs";
|
|
5
|
+
import { i as exportTransformationSchema } from "./transformations-De44wqV_.mjs";
|
|
6
|
+
import { i as SUPPORTED_FORMAT_VERSIONS, n as SITE_PACKAGE_FORMAT_VERSION, r as SITE_PACKAGE_PROFILE, t as SITE_PACKAGE_FORMAT } from "./version-jhs2BRtl.mjs";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import { createTarDecoder, createTarPacker } from "modern-tar";
|
|
9
|
+
|
|
10
|
+
//#region src/transfer/format/features.ts
|
|
11
|
+
/**
|
|
12
|
+
* Site package feature registry.
|
|
13
|
+
*
|
|
14
|
+
* `manifest.features` lists every feature the package uses (sorted);
|
|
15
|
+
* `manifest.requiredFeatures` is the subset a reader must understand to import
|
|
16
|
+
* it. Readers reject a package whose required features include one they do not
|
|
17
|
+
* know. Every v1 feature is required when present except `comment_reactions`.
|
|
18
|
+
*/
|
|
19
|
+
const SITE_PACKAGE_FEATURES = [
|
|
20
|
+
"bylines",
|
|
21
|
+
"comment_reactions",
|
|
22
|
+
"comments",
|
|
23
|
+
"content",
|
|
24
|
+
"i18n",
|
|
25
|
+
"media",
|
|
26
|
+
"menus",
|
|
27
|
+
"principals",
|
|
28
|
+
"redirects",
|
|
29
|
+
"relations",
|
|
30
|
+
"revisions",
|
|
31
|
+
"schema",
|
|
32
|
+
"sections",
|
|
33
|
+
"seo",
|
|
34
|
+
"settings",
|
|
35
|
+
"taxonomies",
|
|
36
|
+
"trash",
|
|
37
|
+
"widgets"
|
|
38
|
+
];
|
|
39
|
+
const OPTIONAL_FEATURES = new Set(["comment_reactions"]);
|
|
40
|
+
const FEATURE_SET = new Set(SITE_PACKAGE_FEATURES);
|
|
41
|
+
function isSitePackageFeature(value) {
|
|
42
|
+
return FEATURE_SET.has(value);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The feature a record kind belongs to. A package may only contain records of
|
|
46
|
+
* a kind whose feature it declares. `i18n` (more than one locale in use) and
|
|
47
|
+
* `trash` (entries with `deletedAt`) have no kind of their own.
|
|
48
|
+
*/
|
|
49
|
+
const KIND_FEATURE = Object.freeze({
|
|
50
|
+
principal: "principals",
|
|
51
|
+
block_type: "schema",
|
|
52
|
+
block_type_version: "schema",
|
|
53
|
+
collection: "schema",
|
|
54
|
+
field: "schema",
|
|
55
|
+
taxonomy_def: "taxonomies",
|
|
56
|
+
relation: "relations",
|
|
57
|
+
byline_field: "bylines",
|
|
58
|
+
media_folder: "media",
|
|
59
|
+
media: "media",
|
|
60
|
+
term: "taxonomies",
|
|
61
|
+
byline: "bylines",
|
|
62
|
+
byline_field_value: "bylines",
|
|
63
|
+
byline_field_group_value: "bylines",
|
|
64
|
+
revision: "revisions",
|
|
65
|
+
entry: "content",
|
|
66
|
+
content_term: "taxonomies",
|
|
67
|
+
content_byline: "bylines",
|
|
68
|
+
content_reference: "relations",
|
|
69
|
+
seo: "seo",
|
|
70
|
+
menu: "menus",
|
|
71
|
+
menu_item: "menus",
|
|
72
|
+
widget_area: "widgets",
|
|
73
|
+
widget: "widgets",
|
|
74
|
+
section: "sections",
|
|
75
|
+
redirect: "redirects",
|
|
76
|
+
comment: "comments",
|
|
77
|
+
comment_reaction: "comment_reactions",
|
|
78
|
+
setting: "settings"
|
|
79
|
+
});
|
|
80
|
+
/** Required features derived from a feature list (sorted). */
|
|
81
|
+
function requiredFeaturesFor(features) {
|
|
82
|
+
return [...new Set(features)].filter((feature) => !OPTIONAL_FEATURES.has(feature)).toSorted(compareUtf16);
|
|
83
|
+
}
|
|
84
|
+
/** Required features this reader does not understand (empty when supported). */
|
|
85
|
+
function unsupportedRequiredFeatures(requiredFeatures) {
|
|
86
|
+
return requiredFeatures.filter((feature) => !isSitePackageFeature(feature));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/transfer/format/manifest.ts
|
|
91
|
+
/**
|
|
92
|
+
* The package manifest and its file index.
|
|
93
|
+
*
|
|
94
|
+
* `manifest.json` is small: identity, features, locales, per-kind counts,
|
|
95
|
+
* totals, export transformations, and the list of index chunks with their
|
|
96
|
+
* sizes and digests. The complete file list (every record chunk and media
|
|
97
|
+
* blob with size and SHA-256) lives in the index chunks `index/<seq>.ndjson`,
|
|
98
|
+
* one {@link PackageFileEntry} per line, sorted by path across chunks. Because
|
|
99
|
+
* the manifest pins each index chunk's digest and each index entry pins its
|
|
100
|
+
* file's digest, `packageDigest` covers every byte of the package.
|
|
101
|
+
*/
|
|
102
|
+
const sha256Hex = z.string().regex(/^[0-9a-f]{64}$/);
|
|
103
|
+
const count = z.number().int().nonnegative();
|
|
104
|
+
const featureName = z.string().min(1).max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
105
|
+
const localeSchema = z.string().min(1).max(64);
|
|
106
|
+
function isSortedUnique(values) {
|
|
107
|
+
return values.every((value, index) => index === 0 || compareIds(values[index - 1] ?? "", value) < 0);
|
|
108
|
+
}
|
|
109
|
+
const indexChunkRefSchema = z.strictObject({
|
|
110
|
+
path: z.string(),
|
|
111
|
+
bytes: count.max(TRANSFER_LIMITS.chunkBytes),
|
|
112
|
+
sha256: sha256Hex,
|
|
113
|
+
entries: count.max(TRANSFER_LIMITS.chunkRecords)
|
|
114
|
+
});
|
|
115
|
+
const recordKindSummarySchema = z.strictObject({
|
|
116
|
+
count: count.min(1),
|
|
117
|
+
chunks: count.min(1)
|
|
118
|
+
});
|
|
119
|
+
const sitePackageManifestSchema = z.strictObject({
|
|
120
|
+
format: z.literal(SITE_PACKAGE_FORMAT),
|
|
121
|
+
formatVersion: z.literal(SITE_PACKAGE_FORMAT_VERSION),
|
|
122
|
+
packageId: portableIdSchema,
|
|
123
|
+
originSiteId: portableIdSchema,
|
|
124
|
+
createdAt: z.string().min(1).max(64),
|
|
125
|
+
createdByEmDashVersion: z.string().min(1).max(128),
|
|
126
|
+
profile: z.literal(SITE_PACKAGE_PROFILE),
|
|
127
|
+
features: z.array(featureName).max(256),
|
|
128
|
+
requiredFeatures: z.array(featureName).max(256),
|
|
129
|
+
locales: z.strictObject({
|
|
130
|
+
default: localeSchema,
|
|
131
|
+
used: z.array(localeSchema).max(1e3)
|
|
132
|
+
}),
|
|
133
|
+
records: z.partialRecord(z.enum(RECORD_KINDS), recordKindSummarySchema),
|
|
134
|
+
media: z.strictObject({
|
|
135
|
+
count,
|
|
136
|
+
totalBytes: count
|
|
137
|
+
}),
|
|
138
|
+
files: z.strictObject({
|
|
139
|
+
count: count.max(TRANSFER_LIMITS.totalFiles),
|
|
140
|
+
totalBytes: count
|
|
141
|
+
}),
|
|
142
|
+
index: z.array(indexChunkRefSchema).max(TRANSFER_LIMITS.indexChunks),
|
|
143
|
+
transformations: z.array(exportTransformationSchema).max(RECORD_KINDS.length * 8),
|
|
144
|
+
fence: z.strictObject({ attempts: z.number().int().min(1).max(TRANSFER_LIMITS.exportFenceAttempts) })
|
|
145
|
+
}).superRefine((manifest, ctx) => {
|
|
146
|
+
const issue = (path, message) => ctx.addIssue({
|
|
147
|
+
code: "custom",
|
|
148
|
+
path,
|
|
149
|
+
message
|
|
150
|
+
});
|
|
151
|
+
if (!isSortedUnique(manifest.features)) issue(["features"], "Features must be sorted and unique");
|
|
152
|
+
if (!isSortedUnique(manifest.requiredFeatures)) issue(["requiredFeatures"], "Required features must be sorted and unique");
|
|
153
|
+
const features = new Set(manifest.features);
|
|
154
|
+
for (const feature of manifest.requiredFeatures) if (!features.has(feature)) issue(["requiredFeatures"], `${feature} is not in features`);
|
|
155
|
+
for (const feature of manifest.features) if (isSitePackageFeature(feature) && !OPTIONAL_FEATURES.has(feature) && !manifest.requiredFeatures.includes(feature)) issue(["requiredFeatures"], `${feature} must be required`);
|
|
156
|
+
if (!isSortedUnique(manifest.locales.used)) issue(["locales", "used"], "Locales must be sorted and unique");
|
|
157
|
+
if (manifest.locales.used.length > 0 && !manifest.locales.used.includes(manifest.locales.default)) issue(["locales", "default"], "Default locale must be in use");
|
|
158
|
+
let totalRecords = 0;
|
|
159
|
+
for (const kind of RECORD_KINDS) {
|
|
160
|
+
const summary = manifest.records[kind];
|
|
161
|
+
if (!summary) continue;
|
|
162
|
+
totalRecords += summary.count;
|
|
163
|
+
if (!features.has(KIND_FEATURE[kind])) issue(["records", kind], `Kind ${kind} requires feature ${KIND_FEATURE[kind]}`);
|
|
164
|
+
if (summary.chunks > summary.count || summary.count > summary.chunks * TRANSFER_LIMITS.chunkRecords) issue(["records", kind], "Chunk count does not fit the record count");
|
|
165
|
+
}
|
|
166
|
+
if (totalRecords > TRANSFER_LIMITS.totalRecords) issue(["records"], "Too many records");
|
|
167
|
+
if (manifest.media.count > 0 && !features.has("media")) issue(["media"], "Media blobs require feature media");
|
|
168
|
+
if (manifest.media.count > manifest.files.count) issue(["media"], "More blobs than files");
|
|
169
|
+
if (manifest.media.totalBytes > manifest.files.totalBytes) issue(["media"], "Blob bytes exceed file bytes");
|
|
170
|
+
manifest.index.forEach((chunk, seq) => {
|
|
171
|
+
if (chunk.path !== indexChunkPath(seq)) issue([
|
|
172
|
+
"index",
|
|
173
|
+
seq,
|
|
174
|
+
"path"
|
|
175
|
+
], "Unexpected index path");
|
|
176
|
+
});
|
|
177
|
+
if (manifest.index.reduce((sum, chunk) => sum + chunk.entries, 0) !== manifest.files.count) issue(["index"], "Index entries do not match the file count");
|
|
178
|
+
if (!isSortedUnique(manifest.transformations.map((t) => `${t.code}\u0000${t.kind}`))) issue(["transformations"], "Transformations must be sorted by code and kind and unique");
|
|
179
|
+
});
|
|
180
|
+
/** One line of an index chunk. `records` is present exactly for record chunks. */
|
|
181
|
+
const packageFileEntrySchema = z.strictObject({
|
|
182
|
+
path: z.string().min(1).max(256),
|
|
183
|
+
bytes: count,
|
|
184
|
+
sha256: sha256Hex,
|
|
185
|
+
records: count.min(1).max(TRANSFER_LIMITS.chunkRecords).optional()
|
|
186
|
+
}).superRefine((entry, ctx) => {
|
|
187
|
+
const parsed = parsePackagePath(entry.path);
|
|
188
|
+
if (!parsed || parsed.type !== "records" && parsed.type !== "media") {
|
|
189
|
+
ctx.addIssue({
|
|
190
|
+
code: "custom",
|
|
191
|
+
path: ["path"],
|
|
192
|
+
message: "Invalid package file path"
|
|
193
|
+
});
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
if (parsed.type === "records") {
|
|
197
|
+
if (entry.records === void 0) ctx.addIssue({
|
|
198
|
+
code: "custom",
|
|
199
|
+
path: ["records"],
|
|
200
|
+
message: "Record count required"
|
|
201
|
+
});
|
|
202
|
+
if (entry.bytes > TRANSFER_LIMITS.chunkBytes) ctx.addIssue({
|
|
203
|
+
code: "custom",
|
|
204
|
+
path: ["bytes"],
|
|
205
|
+
message: "Chunk too large"
|
|
206
|
+
});
|
|
207
|
+
} else {
|
|
208
|
+
if (entry.records !== void 0) ctx.addIssue({
|
|
209
|
+
code: "custom",
|
|
210
|
+
path: ["records"],
|
|
211
|
+
message: "Blobs have no records"
|
|
212
|
+
});
|
|
213
|
+
if (entry.sha256 !== parsed.sha256) ctx.addIssue({
|
|
214
|
+
code: "custom",
|
|
215
|
+
path: ["sha256"],
|
|
216
|
+
message: "Blob path must be its digest"
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
/**
|
|
221
|
+
* Parse and validate `manifest.json` bytes. Throws a {@link TransferError}:
|
|
222
|
+
* `TRANSFER_LIMIT_EXCEEDED` when too large, `TRANSFER_UNSUPPORTED_FORMAT` for
|
|
223
|
+
* another format or version, `TRANSFER_UNSUPPORTED_FEATURE` for an unknown
|
|
224
|
+
* required feature, and `TRANSFER_MANIFEST_INVALID` otherwise.
|
|
225
|
+
*/
|
|
226
|
+
function parseManifest(input) {
|
|
227
|
+
if ((typeof input === "string" ? new TextEncoder().encode(input).byteLength : input.byteLength) > TRANSFER_LIMITS.manifestBytes) throw new TransferError("TRANSFER_LIMIT_EXCEEDED", "Manifest is too large", { detail: { limit: TRANSFER_LIMITS.manifestBytes } });
|
|
228
|
+
const text = typeof input === "string" ? input : decodeUtf8(input, "TRANSFER_MANIFEST_INVALID");
|
|
229
|
+
let raw;
|
|
230
|
+
try {
|
|
231
|
+
raw = parseCanonicalJson(text);
|
|
232
|
+
} catch (error) {
|
|
233
|
+
throw new TransferError("TRANSFER_MANIFEST_INVALID", "Manifest is not canonical JSON", { detail: { reason: error instanceof CanonicalJsonError ? error.message : "invalid" } });
|
|
234
|
+
}
|
|
235
|
+
const envelope = z.looseObject({
|
|
236
|
+
format: z.unknown(),
|
|
237
|
+
formatVersion: z.unknown(),
|
|
238
|
+
requiredFeatures: z.unknown()
|
|
239
|
+
}).safeParse(raw);
|
|
240
|
+
if (!envelope.success || envelope.data.format !== SITE_PACKAGE_FORMAT || typeof envelope.data.formatVersion !== "string" || !SUPPORTED_FORMAT_VERSIONS.includes(envelope.data.formatVersion)) throw new TransferError("TRANSFER_UNSUPPORTED_FORMAT", "Unsupported package format or version");
|
|
241
|
+
if (Array.isArray(envelope.data.requiredFeatures)) {
|
|
242
|
+
const unsupported = unsupportedRequiredFeatures(envelope.data.requiredFeatures.filter((value) => typeof value === "string"));
|
|
243
|
+
if (unsupported.length > 0) throw new TransferError("TRANSFER_UNSUPPORTED_FEATURE", "Package requires unsupported features", { detail: { features: unsupported.slice(0, 20).join(",") } });
|
|
244
|
+
}
|
|
245
|
+
const result = sitePackageManifestSchema.safeParse(raw);
|
|
246
|
+
if (!result.success) {
|
|
247
|
+
const first = result.error.issues[0];
|
|
248
|
+
const summary = first ? summarizeSchemaIssue(first, sitePackageManifestSchema.shape) : null;
|
|
249
|
+
throw new TransferError("TRANSFER_MANIFEST_INVALID", "Manifest failed validation", { detail: {
|
|
250
|
+
path: summary?.path ?? "",
|
|
251
|
+
reason: summary?.message ?? "invalid",
|
|
252
|
+
issues: result.error.issues.length
|
|
253
|
+
} });
|
|
254
|
+
}
|
|
255
|
+
return result.data;
|
|
256
|
+
}
|
|
257
|
+
function serializeManifest(manifest) {
|
|
258
|
+
return canonicalJson(manifest);
|
|
259
|
+
}
|
|
260
|
+
/** Parse one index line (canonical JSON, without its newline). */
|
|
261
|
+
function parseIndexLine(line) {
|
|
262
|
+
let raw;
|
|
263
|
+
try {
|
|
264
|
+
raw = parseCanonicalJson(line);
|
|
265
|
+
} catch (error) {
|
|
266
|
+
throw new TransferError("TRANSFER_MANIFEST_INVALID", "Index line is not canonical JSON", { detail: { reason: error instanceof CanonicalJsonError ? error.message : "invalid" } });
|
|
267
|
+
}
|
|
268
|
+
const result = packageFileEntrySchema.safeParse(raw);
|
|
269
|
+
if (!result.success) {
|
|
270
|
+
const first = result.error.issues[0];
|
|
271
|
+
throw new TransferError("TRANSFER_MANIFEST_INVALID", "Index line failed validation", { detail: { reason: first ? summarizeSchemaIssue(first, packageFileEntrySchema.shape).message : "invalid" } });
|
|
272
|
+
}
|
|
273
|
+
return result.data;
|
|
274
|
+
}
|
|
275
|
+
function decodeUtf8(bytes, code) {
|
|
276
|
+
try {
|
|
277
|
+
return new TextDecoder("utf-8", {
|
|
278
|
+
fatal: true,
|
|
279
|
+
ignoreBOM: true
|
|
280
|
+
}).decode(bytes);
|
|
281
|
+
} catch {
|
|
282
|
+
throw new TransferError(code, "File is not valid UTF-8");
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/transfer/container/tar.ts
|
|
288
|
+
/**
|
|
289
|
+
* The `.emdash` single-file container: an uncompressed tar of the package
|
|
290
|
+
* files, `manifest.json` first. The container is transport only — the package
|
|
291
|
+
* digest covers the manifest, which pins every file — so these helpers never
|
|
292
|
+
* need to trust the archive: every entry must be a regular file at a valid
|
|
293
|
+
* package path, appear once, and carry exactly its declared size.
|
|
294
|
+
*
|
|
295
|
+
* Runs in browsers, Node, and Workers (web streams only).
|
|
296
|
+
*/
|
|
297
|
+
/** Upper bound on archive entries: every indexed file, the index chunks, and the manifest. */
|
|
298
|
+
const MAX_ENTRIES = TRANSFER_LIMITS.totalFiles + TRANSFER_LIMITS.indexChunks + 1;
|
|
299
|
+
const DIRECTORY_ENTRY_PATTERN = /^(?:index|media|records(?:\/[a-z_]+)?)\/?$/;
|
|
300
|
+
const FIXED_MTIME = /* @__PURE__ */ new Date(0);
|
|
301
|
+
function containerError(message, detail) {
|
|
302
|
+
return new TransferError("TRANSFER_CONTAINER_INVALID", message, detail ? { detail } : {});
|
|
303
|
+
}
|
|
304
|
+
function toStream(body) {
|
|
305
|
+
if (!(body instanceof Uint8Array)) return body;
|
|
306
|
+
return new ReadableStream({ start(controller) {
|
|
307
|
+
if (body.byteLength > 0) controller.enqueue(body);
|
|
308
|
+
controller.close();
|
|
309
|
+
} });
|
|
310
|
+
}
|
|
311
|
+
function sizeGuard(path, expected) {
|
|
312
|
+
let seen = 0;
|
|
313
|
+
return new TransformStream({
|
|
314
|
+
transform(chunk, controller) {
|
|
315
|
+
seen += chunk.byteLength;
|
|
316
|
+
if (seen > expected) throw containerError("Entry is larger than declared", { path });
|
|
317
|
+
controller.enqueue(chunk);
|
|
318
|
+
},
|
|
319
|
+
flush() {
|
|
320
|
+
if (seen !== expected) throw containerError("Entry is smaller than declared", { path });
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Stream a container from package files. `manifest.json` must come first;
|
|
326
|
+
* every path must be a valid package path and appear once, and each body must
|
|
327
|
+
* produce exactly `bytes` bytes. Entries get a fixed mtime and mode so the
|
|
328
|
+
* same files always produce the same archive bytes.
|
|
329
|
+
*/
|
|
330
|
+
function packSitePackage(files) {
|
|
331
|
+
const { readable, controller } = createTarPacker();
|
|
332
|
+
(async () => {
|
|
333
|
+
const seen = /* @__PURE__ */ new Set();
|
|
334
|
+
try {
|
|
335
|
+
for await (const file of files) {
|
|
336
|
+
if (seen.size === 0 && file.path !== MANIFEST_PATH) throw containerError("The manifest must be the first entry");
|
|
337
|
+
if (!parsePackagePath(file.path)) throw containerError("Invalid package path", { path: file.path });
|
|
338
|
+
if (seen.has(file.path)) throw containerError("Duplicate package path", { path: file.path });
|
|
339
|
+
if (seen.size >= MAX_ENTRIES) throw containerError("Too many entries");
|
|
340
|
+
if (!Number.isSafeInteger(file.bytes) || file.bytes < 0) throw containerError("Invalid entry size", { path: file.path });
|
|
341
|
+
seen.add(file.path);
|
|
342
|
+
const entry = controller.add({
|
|
343
|
+
name: file.path,
|
|
344
|
+
size: file.bytes,
|
|
345
|
+
type: "file",
|
|
346
|
+
mode: 420,
|
|
347
|
+
mtime: FIXED_MTIME
|
|
348
|
+
});
|
|
349
|
+
await toStream(await file.body()).pipeThrough(sizeGuard(file.path, file.bytes)).pipeTo(entry);
|
|
350
|
+
}
|
|
351
|
+
if (seen.size === 0) throw containerError("The manifest must be the first entry");
|
|
352
|
+
controller.finalize();
|
|
353
|
+
} catch (error) {
|
|
354
|
+
controller.error(error);
|
|
355
|
+
}
|
|
356
|
+
})();
|
|
357
|
+
return readable;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Read a container entry by entry. `onFile` receives each file in archive
|
|
361
|
+
* order and may read its body; an unread body is skipped. If `onFile` takes a
|
|
362
|
+
* reader it must read the body to the end or release the lock.
|
|
363
|
+
* Rejects symlinks, hard links, and other non-file entries; paths that are
|
|
364
|
+
* not package paths (absolute, `..`, anything undeclared by the format);
|
|
365
|
+
* duplicates; a first entry other than `manifest.json`; and size mismatches.
|
|
366
|
+
* Directory entries for the package's own directories are skipped.
|
|
367
|
+
*/
|
|
368
|
+
async function unpackSitePackage(archive, onFile, options = {}) {
|
|
369
|
+
const seen = /* @__PURE__ */ new Set();
|
|
370
|
+
let callbackError;
|
|
371
|
+
const reader = archive.pipeThrough(createTarDecoder({ strict: true })).getReader();
|
|
372
|
+
try {
|
|
373
|
+
for (;;) {
|
|
374
|
+
const { done, value: entry } = await reader.read();
|
|
375
|
+
if (done) break;
|
|
376
|
+
const { header } = entry;
|
|
377
|
+
const type = header.type ?? "file";
|
|
378
|
+
const name = header.name.startsWith("./") ? header.name.slice(2) : header.name;
|
|
379
|
+
if (type === "directory" && DIRECTORY_ENTRY_PATTERN.test(name)) {
|
|
380
|
+
await entry.body.cancel();
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
if (type !== "file") {
|
|
384
|
+
await entry.body.cancel();
|
|
385
|
+
throw containerError("Container entries must be regular files", { path: name });
|
|
386
|
+
}
|
|
387
|
+
const parsed = parsePackagePath(name);
|
|
388
|
+
if (!parsed) {
|
|
389
|
+
await entry.body.cancel();
|
|
390
|
+
throw containerError("Invalid package path", { path: name.slice(0, 256) });
|
|
391
|
+
}
|
|
392
|
+
if (seen.size === 0 && parsed.type !== "manifest") {
|
|
393
|
+
await entry.body.cancel();
|
|
394
|
+
throw containerError("The manifest must be the first entry");
|
|
395
|
+
}
|
|
396
|
+
if (seen.has(name)) {
|
|
397
|
+
await entry.body.cancel();
|
|
398
|
+
throw containerError("Duplicate package path", { path: name });
|
|
399
|
+
}
|
|
400
|
+
if (seen.size >= MAX_ENTRIES) {
|
|
401
|
+
await entry.body.cancel();
|
|
402
|
+
throw containerError("Too many entries");
|
|
403
|
+
}
|
|
404
|
+
const expected = options.expectedBytes?.(name);
|
|
405
|
+
if (expected !== void 0 && expected !== header.size) {
|
|
406
|
+
await entry.body.cancel();
|
|
407
|
+
throw containerError("Entry size does not match the declared size", { path: name });
|
|
408
|
+
}
|
|
409
|
+
if (parsed.type === "manifest" && header.size > TRANSFER_LIMITS.manifestBytes) {
|
|
410
|
+
await entry.body.cancel();
|
|
411
|
+
throw new TransferError("TRANSFER_LIMIT_EXCEEDED", "Manifest is too large");
|
|
412
|
+
}
|
|
413
|
+
seen.add(name);
|
|
414
|
+
const body = entry.body.pipeThrough(sizeGuard(name, header.size));
|
|
415
|
+
let consumed = false;
|
|
416
|
+
const tracked = body.pipeThrough(new TransformStream({ flush() {
|
|
417
|
+
consumed = true;
|
|
418
|
+
} }));
|
|
419
|
+
try {
|
|
420
|
+
await onFile({
|
|
421
|
+
path: name,
|
|
422
|
+
parsed,
|
|
423
|
+
bytes: header.size,
|
|
424
|
+
body: tracked
|
|
425
|
+
});
|
|
426
|
+
} catch (error) {
|
|
427
|
+
callbackError = error;
|
|
428
|
+
await tracked.cancel().catch(() => void 0);
|
|
429
|
+
throw error;
|
|
430
|
+
}
|
|
431
|
+
if (!consumed) {
|
|
432
|
+
if (tracked.locked) throw containerError("An entry body was left locked without being read", { path: name });
|
|
433
|
+
await tracked.cancel();
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
} catch (error) {
|
|
437
|
+
await reader.cancel().catch(() => void 0);
|
|
438
|
+
if (error === callbackError || error instanceof TransferError) throw error;
|
|
439
|
+
throw new TransferError("TRANSFER_CONTAINER_INVALID", "Container could not be read", { cause: error });
|
|
440
|
+
} finally {
|
|
441
|
+
reader.releaseLock();
|
|
442
|
+
}
|
|
443
|
+
if (seen.size === 0) throw containerError("The manifest must be the first entry");
|
|
444
|
+
return { files: seen.size };
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
//#endregion
|
|
448
|
+
export { parseIndexLine as a, KIND_FEATURE as c, requiredFeaturesFor as d, indexChunkRefSchema as i, OPTIONAL_FEATURES as l, unpackSitePackage as n, parseManifest as o, decodeUtf8 as r, serializeManifest as s, packSitePackage as t, SITE_PACKAGE_FEATURES as u };
|
|
449
|
+
//# sourceMappingURL=tar-K40edFMt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tar-K40edFMt.mjs","names":[],"sources":["../src/transfer/format/features.ts","../src/transfer/format/manifest.ts","../src/transfer/container/tar.ts"],"sourcesContent":["/**\n * Site package feature registry.\n *\n * `manifest.features` lists every feature the package uses (sorted);\n * `manifest.requiredFeatures` is the subset a reader must understand to import\n * it. Readers reject a package whose required features include one they do not\n * know. Every v1 feature is required when present except `comment_reactions`.\n */\n\nimport { compareUtf16 } from \"./canonical.js\";\nimport type { RecordKind } from \"./kinds.js\";\n\nexport const SITE_PACKAGE_FEATURES = [\n\t\"bylines\",\n\t\"comment_reactions\",\n\t\"comments\",\n\t\"content\",\n\t\"i18n\",\n\t\"media\",\n\t\"menus\",\n\t\"principals\",\n\t\"redirects\",\n\t\"relations\",\n\t\"revisions\",\n\t\"schema\",\n\t\"sections\",\n\t\"seo\",\n\t\"settings\",\n\t\"taxonomies\",\n\t\"trash\",\n\t\"widgets\",\n] as const;\n\nexport type SitePackageFeature = (typeof SITE_PACKAGE_FEATURES)[number];\n\nexport const OPTIONAL_FEATURES: ReadonlySet<SitePackageFeature> = new Set([\"comment_reactions\"]);\n\nconst FEATURE_SET: ReadonlySet<string> = new Set(SITE_PACKAGE_FEATURES);\n\nexport function isSitePackageFeature(value: string): value is SitePackageFeature {\n\treturn FEATURE_SET.has(value);\n}\n\n/**\n * The feature a record kind belongs to. A package may only contain records of\n * a kind whose feature it declares. `i18n` (more than one locale in use) and\n * `trash` (entries with `deletedAt`) have no kind of their own.\n */\nexport const KIND_FEATURE: Readonly<Record<RecordKind, SitePackageFeature>> = Object.freeze({\n\tprincipal: \"principals\",\n\tblock_type: \"schema\",\n\tblock_type_version: \"schema\",\n\tcollection: \"schema\",\n\tfield: \"schema\",\n\ttaxonomy_def: \"taxonomies\",\n\trelation: \"relations\",\n\tbyline_field: \"bylines\",\n\tmedia_folder: \"media\",\n\tmedia: \"media\",\n\tterm: \"taxonomies\",\n\tbyline: \"bylines\",\n\tbyline_field_value: \"bylines\",\n\tbyline_field_group_value: \"bylines\",\n\trevision: \"revisions\",\n\tentry: \"content\",\n\tcontent_term: \"taxonomies\",\n\tcontent_byline: \"bylines\",\n\tcontent_reference: \"relations\",\n\tseo: \"seo\",\n\tmenu: \"menus\",\n\tmenu_item: \"menus\",\n\twidget_area: \"widgets\",\n\twidget: \"widgets\",\n\tsection: \"sections\",\n\tredirect: \"redirects\",\n\tcomment: \"comments\",\n\tcomment_reaction: \"comment_reactions\",\n\tsetting: \"settings\",\n});\n\n/** Required features derived from a feature list (sorted). */\nexport function requiredFeaturesFor(features: readonly SitePackageFeature[]): SitePackageFeature[] {\n\treturn [...new Set(features)]\n\t\t.filter((feature) => !OPTIONAL_FEATURES.has(feature))\n\t\t.toSorted(compareUtf16);\n}\n\n/** Required features this reader does not understand (empty when supported). */\nexport function unsupportedRequiredFeatures(requiredFeatures: readonly string[]): string[] {\n\treturn requiredFeatures.filter((feature) => !isSitePackageFeature(feature));\n}\n","/**\n * The package manifest and its file index.\n *\n * `manifest.json` is small: identity, features, locales, per-kind counts,\n * totals, export transformations, and the list of index chunks with their\n * sizes and digests. The complete file list (every record chunk and media\n * blob with size and SHA-256) lives in the index chunks `index/<seq>.ndjson`,\n * one {@link PackageFileEntry} per line, sorted by path across chunks. Because\n * the manifest pins each index chunk's digest and each index entry pins its\n * file's digest, `packageDigest` covers every byte of the package.\n */\n\nimport { z } from \"zod\";\n\nimport { TransferError } from \"../errors.js\";\nimport { canonicalJson, CanonicalJsonError, parseCanonicalJson } from \"./canonical.js\";\nimport {\n\tisSitePackageFeature,\n\tKIND_FEATURE,\n\tOPTIONAL_FEATURES,\n\tunsupportedRequiredFeatures,\n} from \"./features.js\";\nimport { summarizeSchemaIssue } from \"./issues.js\";\nimport { compareIds, portableIdSchema, RECORD_KINDS } from \"./kinds.js\";\nimport { TRANSFER_LIMITS } from \"./limits.js\";\nimport { indexChunkPath, parsePackagePath } from \"./paths.js\";\nimport { exportTransformationSchema } from \"./transformations.js\";\nimport {\n\tSITE_PACKAGE_FORMAT,\n\tSITE_PACKAGE_FORMAT_VERSION,\n\tSITE_PACKAGE_PROFILE,\n\tSUPPORTED_FORMAT_VERSIONS,\n} from \"./version.js\";\n\nconst sha256Hex = z.string().regex(/^[0-9a-f]{64}$/);\nconst count = z.number().int().nonnegative();\nconst featureName = z\n\t.string()\n\t.min(1)\n\t.max(64)\n\t.regex(/^[a-z][a-z0-9_]*$/);\nconst localeSchema = z.string().min(1).max(64);\n\nfunction isSortedUnique(values: readonly string[]): boolean {\n\treturn values.every(\n\t\t(value, index) => index === 0 || compareIds(values[index - 1] ?? \"\", value) < 0,\n\t);\n}\n\nexport const indexChunkRefSchema = z.strictObject({\n\tpath: z.string(),\n\tbytes: count.max(TRANSFER_LIMITS.chunkBytes),\n\tsha256: sha256Hex,\n\tentries: count.max(TRANSFER_LIMITS.chunkRecords),\n});\n\nexport type IndexChunkRef = z.infer<typeof indexChunkRefSchema>;\n\nexport const recordKindSummarySchema = z.strictObject({\n\tcount: count.min(1),\n\tchunks: count.min(1),\n});\n\nexport const sitePackageManifestSchema = z\n\t.strictObject({\n\t\tformat: z.literal(SITE_PACKAGE_FORMAT),\n\t\tformatVersion: z.literal(SITE_PACKAGE_FORMAT_VERSION),\n\t\tpackageId: portableIdSchema,\n\t\toriginSiteId: portableIdSchema,\n\t\tcreatedAt: z.string().min(1).max(64),\n\t\tcreatedByEmDashVersion: z.string().min(1).max(128),\n\t\tprofile: z.literal(SITE_PACKAGE_PROFILE),\n\t\tfeatures: z.array(featureName).max(256),\n\t\trequiredFeatures: z.array(featureName).max(256),\n\t\tlocales: z.strictObject({\n\t\t\tdefault: localeSchema,\n\t\t\tused: z.array(localeSchema).max(1000),\n\t\t}),\n\t\trecords: z.partialRecord(z.enum(RECORD_KINDS), recordKindSummarySchema),\n\t\tmedia: z.strictObject({ count, totalBytes: count }),\n\t\tfiles: z.strictObject({ count: count.max(TRANSFER_LIMITS.totalFiles), totalBytes: count }),\n\t\tindex: z.array(indexChunkRefSchema).max(TRANSFER_LIMITS.indexChunks),\n\t\ttransformations: z.array(exportTransformationSchema).max(RECORD_KINDS.length * 8),\n\t\tfence: z.strictObject({\n\t\t\tattempts: z.number().int().min(1).max(TRANSFER_LIMITS.exportFenceAttempts),\n\t\t}),\n\t})\n\t.superRefine((manifest, ctx) => {\n\t\tconst issue = (path: (string | number)[], message: string) =>\n\t\t\tctx.addIssue({ code: \"custom\", path, message });\n\n\t\tif (!isSortedUnique(manifest.features))\n\t\t\tissue([\"features\"], \"Features must be sorted and unique\");\n\t\tif (!isSortedUnique(manifest.requiredFeatures)) {\n\t\t\tissue([\"requiredFeatures\"], \"Required features must be sorted and unique\");\n\t\t}\n\t\tconst features = new Set(manifest.features);\n\t\tfor (const feature of manifest.requiredFeatures) {\n\t\t\tif (!features.has(feature)) issue([\"requiredFeatures\"], `${feature} is not in features`);\n\t\t}\n\t\tfor (const feature of manifest.features) {\n\t\t\tif (\n\t\t\t\tisSitePackageFeature(feature) &&\n\t\t\t\t!OPTIONAL_FEATURES.has(feature) &&\n\t\t\t\t!manifest.requiredFeatures.includes(feature)\n\t\t\t) {\n\t\t\t\tissue([\"requiredFeatures\"], `${feature} must be required`);\n\t\t\t}\n\t\t}\n\t\tif (!isSortedUnique(manifest.locales.used)) {\n\t\t\tissue([\"locales\", \"used\"], \"Locales must be sorted and unique\");\n\t\t}\n\t\tif (\n\t\t\tmanifest.locales.used.length > 0 &&\n\t\t\t!manifest.locales.used.includes(manifest.locales.default)\n\t\t) {\n\t\t\tissue([\"locales\", \"default\"], \"Default locale must be in use\");\n\t\t}\n\n\t\tlet totalRecords = 0;\n\t\tfor (const kind of RECORD_KINDS) {\n\t\t\tconst summary = manifest.records[kind];\n\t\t\tif (!summary) continue;\n\t\t\ttotalRecords += summary.count;\n\t\t\tif (!features.has(KIND_FEATURE[kind])) {\n\t\t\t\tissue([\"records\", kind], `Kind ${kind} requires feature ${KIND_FEATURE[kind]}`);\n\t\t\t}\n\t\t\tif (\n\t\t\t\tsummary.chunks > summary.count ||\n\t\t\t\tsummary.count > summary.chunks * TRANSFER_LIMITS.chunkRecords\n\t\t\t) {\n\t\t\t\tissue([\"records\", kind], \"Chunk count does not fit the record count\");\n\t\t\t}\n\t\t}\n\t\tif (totalRecords > TRANSFER_LIMITS.totalRecords) issue([\"records\"], \"Too many records\");\n\t\tif (manifest.media.count > 0 && !features.has(\"media\")) {\n\t\t\tissue([\"media\"], \"Media blobs require feature media\");\n\t\t}\n\t\tif (manifest.media.count > manifest.files.count) issue([\"media\"], \"More blobs than files\");\n\t\tif (manifest.media.totalBytes > manifest.files.totalBytes) {\n\t\t\tissue([\"media\"], \"Blob bytes exceed file bytes\");\n\t\t}\n\n\t\tmanifest.index.forEach((chunk, seq) => {\n\t\t\tif (chunk.path !== indexChunkPath(seq))\n\t\t\t\tissue([\"index\", seq, \"path\"], \"Unexpected index path\");\n\t\t});\n\t\tconst indexedEntries = manifest.index.reduce((sum, chunk) => sum + chunk.entries, 0);\n\t\tif (indexedEntries !== manifest.files.count) {\n\t\t\tissue([\"index\"], \"Index entries do not match the file count\");\n\t\t}\n\n\t\tconst transformationKeys = manifest.transformations.map((t) => `${t.code}\\u0000${t.kind}`);\n\t\tif (!isSortedUnique(transformationKeys)) {\n\t\t\tissue([\"transformations\"], \"Transformations must be sorted by code and kind and unique\");\n\t\t}\n\t});\n\nexport type SitePackageManifest = z.infer<typeof sitePackageManifestSchema>;\n\n/** One line of an index chunk. `records` is present exactly for record chunks. */\nexport const packageFileEntrySchema = z\n\t.strictObject({\n\t\tpath: z.string().min(1).max(256),\n\t\tbytes: count,\n\t\tsha256: sha256Hex,\n\t\trecords: count.min(1).max(TRANSFER_LIMITS.chunkRecords).optional(),\n\t})\n\t.superRefine((entry, ctx) => {\n\t\tconst parsed = parsePackagePath(entry.path);\n\t\tif (!parsed || (parsed.type !== \"records\" && parsed.type !== \"media\")) {\n\t\t\tctx.addIssue({ code: \"custom\", path: [\"path\"], message: \"Invalid package file path\" });\n\t\t\treturn;\n\t\t}\n\t\tif (parsed.type === \"records\") {\n\t\t\tif (entry.records === undefined) {\n\t\t\t\tctx.addIssue({ code: \"custom\", path: [\"records\"], message: \"Record count required\" });\n\t\t\t}\n\t\t\tif (entry.bytes > TRANSFER_LIMITS.chunkBytes) {\n\t\t\t\tctx.addIssue({ code: \"custom\", path: [\"bytes\"], message: \"Chunk too large\" });\n\t\t\t}\n\t\t} else {\n\t\t\tif (entry.records !== undefined) {\n\t\t\t\tctx.addIssue({ code: \"custom\", path: [\"records\"], message: \"Blobs have no records\" });\n\t\t\t}\n\t\t\tif (entry.sha256 !== parsed.sha256) {\n\t\t\t\tctx.addIssue({ code: \"custom\", path: [\"sha256\"], message: \"Blob path must be its digest\" });\n\t\t\t}\n\t\t}\n\t});\n\nexport type PackageFileEntry = z.infer<typeof packageFileEntrySchema>;\n\n/**\n * Parse and validate `manifest.json` bytes. Throws a {@link TransferError}:\n * `TRANSFER_LIMIT_EXCEEDED` when too large, `TRANSFER_UNSUPPORTED_FORMAT` for\n * another format or version, `TRANSFER_UNSUPPORTED_FEATURE` for an unknown\n * required feature, and `TRANSFER_MANIFEST_INVALID` otherwise.\n */\nexport function parseManifest(input: string | Uint8Array): SitePackageManifest {\n\tconst byteLength =\n\t\ttypeof input === \"string\" ? new TextEncoder().encode(input).byteLength : input.byteLength;\n\tif (byteLength > TRANSFER_LIMITS.manifestBytes) {\n\t\tthrow new TransferError(\"TRANSFER_LIMIT_EXCEEDED\", \"Manifest is too large\", {\n\t\t\tdetail: { limit: TRANSFER_LIMITS.manifestBytes },\n\t\t});\n\t}\n\tconst text = typeof input === \"string\" ? input : decodeUtf8(input, \"TRANSFER_MANIFEST_INVALID\");\n\n\tlet raw: unknown;\n\ttry {\n\t\traw = parseCanonicalJson(text);\n\t} catch (error) {\n\t\tthrow new TransferError(\"TRANSFER_MANIFEST_INVALID\", \"Manifest is not canonical JSON\", {\n\t\t\tdetail: { reason: error instanceof CanonicalJsonError ? error.message : \"invalid\" },\n\t\t});\n\t}\n\n\tconst envelope = z\n\t\t.looseObject({ format: z.unknown(), formatVersion: z.unknown(), requiredFeatures: z.unknown() })\n\t\t.safeParse(raw);\n\tif (\n\t\t!envelope.success ||\n\t\tenvelope.data.format !== SITE_PACKAGE_FORMAT ||\n\t\ttypeof envelope.data.formatVersion !== \"string\" ||\n\t\t!SUPPORTED_FORMAT_VERSIONS.includes(envelope.data.formatVersion)\n\t) {\n\t\tthrow new TransferError(\"TRANSFER_UNSUPPORTED_FORMAT\", \"Unsupported package format or version\");\n\t}\n\tif (Array.isArray(envelope.data.requiredFeatures)) {\n\t\tconst unsupported = unsupportedRequiredFeatures(\n\t\t\tenvelope.data.requiredFeatures.filter((value): value is string => typeof value === \"string\"),\n\t\t);\n\t\tif (unsupported.length > 0) {\n\t\t\tthrow new TransferError(\n\t\t\t\t\"TRANSFER_UNSUPPORTED_FEATURE\",\n\t\t\t\t\"Package requires unsupported features\",\n\t\t\t\t{\n\t\t\t\t\tdetail: { features: unsupported.slice(0, 20).join(\",\") },\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n\n\tconst result = sitePackageManifestSchema.safeParse(raw);\n\tif (!result.success) {\n\t\tconst first = result.error.issues[0];\n\t\tconst summary = first ? summarizeSchemaIssue(first, sitePackageManifestSchema.shape) : null;\n\t\tthrow new TransferError(\"TRANSFER_MANIFEST_INVALID\", \"Manifest failed validation\", {\n\t\t\tdetail: {\n\t\t\t\tpath: summary?.path ?? \"\",\n\t\t\t\treason: summary?.message ?? \"invalid\",\n\t\t\t\tissues: result.error.issues.length,\n\t\t\t},\n\t\t});\n\t}\n\treturn result.data;\n}\n\nexport function serializeManifest(manifest: SitePackageManifest): string {\n\treturn canonicalJson(manifest);\n}\n\n/** Parse one index line (canonical JSON, without its newline). */\nexport function parseIndexLine(line: string): PackageFileEntry {\n\tlet raw: unknown;\n\ttry {\n\t\traw = parseCanonicalJson(line);\n\t} catch (error) {\n\t\tthrow new TransferError(\"TRANSFER_MANIFEST_INVALID\", \"Index line is not canonical JSON\", {\n\t\t\tdetail: { reason: error instanceof CanonicalJsonError ? error.message : \"invalid\" },\n\t\t});\n\t}\n\tconst result = packageFileEntrySchema.safeParse(raw);\n\tif (!result.success) {\n\t\tconst first = result.error.issues[0];\n\t\tthrow new TransferError(\"TRANSFER_MANIFEST_INVALID\", \"Index line failed validation\", {\n\t\t\tdetail: {\n\t\t\t\treason: first\n\t\t\t\t\t? summarizeSchemaIssue(first, packageFileEntrySchema.shape).message\n\t\t\t\t\t: \"invalid\",\n\t\t\t},\n\t\t});\n\t}\n\treturn result.data;\n}\n\nexport function decodeUtf8(\n\tbytes: Uint8Array,\n\tcode: \"TRANSFER_MANIFEST_INVALID\" | \"TRANSFER_RECORD_INVALID\",\n): string {\n\ttry {\n\t\treturn new TextDecoder(\"utf-8\", { fatal: true, ignoreBOM: true }).decode(bytes);\n\t} catch {\n\t\tthrow new TransferError(code, \"File is not valid UTF-8\");\n\t}\n}\n","/**\n * The `.emdash` single-file container: an uncompressed tar of the package\n * files, `manifest.json` first. The container is transport only — the package\n * digest covers the manifest, which pins every file — so these helpers never\n * need to trust the archive: every entry must be a regular file at a valid\n * package path, appear once, and carry exactly its declared size.\n *\n * Runs in browsers, Node, and Workers (web streams only).\n */\n\nimport { createTarDecoder, createTarPacker } from \"modern-tar\";\n\nimport { TransferError } from \"../errors.js\";\nimport { TRANSFER_LIMITS } from \"../format/limits.js\";\nimport { MANIFEST_PATH, parsePackagePath, type PackagePath } from \"../format/paths.js\";\n\nexport const SITE_PACKAGE_FILE_EXTENSION = \".emdash\";\nexport const SITE_PACKAGE_MEDIA_TYPE = \"application/x-tar\";\n\n/** Upper bound on archive entries: every indexed file, the index chunks, and the manifest. */\nconst MAX_ENTRIES = TRANSFER_LIMITS.totalFiles + TRANSFER_LIMITS.indexChunks + 1;\n\nconst DIRECTORY_ENTRY_PATTERN = /^(?:index|media|records(?:\\/[a-z_]+)?)\\/?$/;\nconst FIXED_MTIME = new Date(0);\n\nfunction containerError(message: string, detail?: Record<string, string | number>): TransferError {\n\treturn new TransferError(\"TRANSFER_CONTAINER_INVALID\", message, detail ? { detail } : {});\n}\n\nexport interface PackageFileSource {\n\tpath: string;\n\tbytes: number;\n\tbody: () =>\n\t\t| Promise<ReadableStream<Uint8Array> | Uint8Array>\n\t\t| ReadableStream<Uint8Array>\n\t\t| Uint8Array;\n}\n\nfunction toStream(body: ReadableStream<Uint8Array> | Uint8Array): ReadableStream<Uint8Array> {\n\tif (!(body instanceof Uint8Array)) return body;\n\treturn new ReadableStream<Uint8Array>({\n\t\tstart(controller) {\n\t\t\tif (body.byteLength > 0) controller.enqueue(body);\n\t\t\tcontroller.close();\n\t\t},\n\t});\n}\n\nfunction sizeGuard(path: string, expected: number): TransformStream<Uint8Array, Uint8Array> {\n\tlet seen = 0;\n\treturn new TransformStream<Uint8Array, Uint8Array>({\n\t\ttransform(chunk, controller) {\n\t\t\tseen += chunk.byteLength;\n\t\t\tif (seen > expected) throw containerError(\"Entry is larger than declared\", { path });\n\t\t\tcontroller.enqueue(chunk);\n\t\t},\n\t\tflush() {\n\t\t\tif (seen !== expected) throw containerError(\"Entry is smaller than declared\", { path });\n\t\t},\n\t});\n}\n\n/**\n * Stream a container from package files. `manifest.json` must come first;\n * every path must be a valid package path and appear once, and each body must\n * produce exactly `bytes` bytes. Entries get a fixed mtime and mode so the\n * same files always produce the same archive bytes.\n */\nexport function packSitePackage(\n\tfiles: AsyncIterable<PackageFileSource> | Iterable<PackageFileSource>,\n): ReadableStream<Uint8Array> {\n\tconst { readable, controller } = createTarPacker();\n\tvoid (async () => {\n\t\tconst seen = new Set<string>();\n\t\ttry {\n\t\t\tfor await (const file of files) {\n\t\t\t\tif (seen.size === 0 && file.path !== MANIFEST_PATH) {\n\t\t\t\t\tthrow containerError(\"The manifest must be the first entry\");\n\t\t\t\t}\n\t\t\t\tif (!parsePackagePath(file.path)) {\n\t\t\t\t\tthrow containerError(\"Invalid package path\", { path: file.path });\n\t\t\t\t}\n\t\t\t\tif (seen.has(file.path))\n\t\t\t\t\tthrow containerError(\"Duplicate package path\", { path: file.path });\n\t\t\t\tif (seen.size >= MAX_ENTRIES) throw containerError(\"Too many entries\");\n\t\t\t\tif (!Number.isSafeInteger(file.bytes) || file.bytes < 0) {\n\t\t\t\t\tthrow containerError(\"Invalid entry size\", { path: file.path });\n\t\t\t\t}\n\t\t\t\tseen.add(file.path);\n\t\t\t\tconst entry = controller.add({\n\t\t\t\t\tname: file.path,\n\t\t\t\t\tsize: file.bytes,\n\t\t\t\t\ttype: \"file\",\n\t\t\t\t\tmode: 0o644,\n\t\t\t\t\tmtime: FIXED_MTIME,\n\t\t\t\t});\n\t\t\t\tawait toStream(await file.body())\n\t\t\t\t\t.pipeThrough(sizeGuard(file.path, file.bytes))\n\t\t\t\t\t.pipeTo(entry);\n\t\t\t}\n\t\t\tif (seen.size === 0) throw containerError(\"The manifest must be the first entry\");\n\t\t\tcontroller.finalize();\n\t\t} catch (error) {\n\t\t\tcontroller.error(error);\n\t\t}\n\t})();\n\treturn readable;\n}\n\nexport interface UnpackedPackageFile {\n\tpath: string;\n\tparsed: PackagePath;\n\tbytes: number;\n\tbody: ReadableStream<Uint8Array>;\n}\n\nexport interface UnpackOptions {\n\t/** Declared size for a path (from the manifest/index), checked against the entry header. */\n\texpectedBytes?: (path: string) => number | undefined;\n}\n\n/**\n * Read a container entry by entry. `onFile` receives each file in archive\n * order and may read its body; an unread body is skipped. If `onFile` takes a\n * reader it must read the body to the end or release the lock.\n * Rejects symlinks, hard links, and other non-file entries; paths that are\n * not package paths (absolute, `..`, anything undeclared by the format);\n * duplicates; a first entry other than `manifest.json`; and size mismatches.\n * Directory entries for the package's own directories are skipped.\n */\nexport async function unpackSitePackage(\n\tarchive: ReadableStream<Uint8Array>,\n\tonFile: (file: UnpackedPackageFile) => Promise<void>,\n\toptions: UnpackOptions = {},\n): Promise<{ files: number }> {\n\tconst seen = new Set<string>();\n\tlet callbackError: unknown;\n\tconst entries = archive.pipeThrough(createTarDecoder({ strict: true }));\n\tconst reader = entries.getReader();\n\ttry {\n\t\tfor (;;) {\n\t\t\tconst { done, value: entry } = await reader.read();\n\t\t\tif (done) break;\n\t\t\tconst { header } = entry;\n\t\t\tconst type = header.type ?? \"file\";\n\t\t\tconst name = header.name.startsWith(\"./\") ? header.name.slice(2) : header.name;\n\n\t\t\tif (type === \"directory\" && DIRECTORY_ENTRY_PATTERN.test(name)) {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (type !== \"file\") {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow containerError(\"Container entries must be regular files\", { path: name });\n\t\t\t}\n\t\t\tconst parsed = parsePackagePath(name);\n\t\t\tif (!parsed) {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow containerError(\"Invalid package path\", { path: name.slice(0, 256) });\n\t\t\t}\n\t\t\tif (seen.size === 0 && parsed.type !== \"manifest\") {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow containerError(\"The manifest must be the first entry\");\n\t\t\t}\n\t\t\tif (seen.has(name)) {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow containerError(\"Duplicate package path\", { path: name });\n\t\t\t}\n\t\t\tif (seen.size >= MAX_ENTRIES) {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow containerError(\"Too many entries\");\n\t\t\t}\n\t\t\tconst expected = options.expectedBytes?.(name);\n\t\t\tif (expected !== undefined && expected !== header.size) {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow containerError(\"Entry size does not match the declared size\", { path: name });\n\t\t\t}\n\t\t\tif (parsed.type === \"manifest\" && header.size > TRANSFER_LIMITS.manifestBytes) {\n\t\t\t\tawait entry.body.cancel();\n\t\t\t\tthrow new TransferError(\"TRANSFER_LIMIT_EXCEEDED\", \"Manifest is too large\");\n\t\t\t}\n\t\t\tseen.add(name);\n\n\t\t\tconst body = entry.body.pipeThrough(sizeGuard(name, header.size));\n\t\t\tlet consumed = false;\n\t\t\tconst tracked = body.pipeThrough(\n\t\t\t\tnew TransformStream<Uint8Array, Uint8Array>({\n\t\t\t\t\tflush() {\n\t\t\t\t\t\tconsumed = true;\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t);\n\t\t\ttry {\n\t\t\t\tawait onFile({ path: name, parsed, bytes: header.size, body: tracked });\n\t\t\t} catch (error) {\n\t\t\t\tcallbackError = error;\n\t\t\t\tawait tracked.cancel().catch(() => undefined);\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t\tif (!consumed) {\n\t\t\t\tif (tracked.locked) {\n\t\t\t\t\tthrow containerError(\"An entry body was left locked without being read\", {\n\t\t\t\t\t\tpath: name,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tawait tracked.cancel();\n\t\t\t}\n\t\t}\n\t} catch (error) {\n\t\tawait reader.cancel().catch(() => undefined);\n\t\tif (error === callbackError || error instanceof TransferError) throw error;\n\t\tthrow new TransferError(\"TRANSFER_CONTAINER_INVALID\", \"Container could not be read\", {\n\t\t\tcause: error,\n\t\t});\n\t} finally {\n\t\treader.releaseLock();\n\t}\n\tif (seen.size === 0) throw containerError(\"The manifest must be the first entry\");\n\treturn { files: seen.size };\n}\n\n/** Buffer every file of a small container into memory (tests, small tools). */\nexport async function readSitePackageArchive(\n\tarchive: ReadableStream<Uint8Array> | Uint8Array,\n\toptions: UnpackOptions & { maxTotalBytes?: number } = {},\n): Promise<Map<string, Uint8Array>> {\n\tconst files = new Map<string, Uint8Array>();\n\tconst maxTotal = options.maxTotalBytes ?? 256 * 1024 * 1024;\n\tlet total = 0;\n\tawait unpackSitePackage(\n\t\ttoStream(archive),\n\t\tasync (file) => {\n\t\t\ttotal += file.bytes;\n\t\t\tif (total > maxTotal) {\n\t\t\t\tthrow new TransferError(\"TRANSFER_LIMIT_EXCEEDED\", \"Container is too large to buffer\");\n\t\t\t}\n\t\t\tfiles.set(file.path, new Uint8Array(await new Response(file.body).arrayBuffer()));\n\t\t},\n\t\toptions,\n\t);\n\treturn files;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAa,wBAAwB;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAID,MAAa,oBAAqD,IAAI,IAAI,CAAC,oBAAoB,CAAC;AAEhG,MAAM,cAAmC,IAAI,IAAI,sBAAsB;AAEvE,SAAgB,qBAAqB,OAA4C;AAChF,QAAO,YAAY,IAAI,MAAM;;;;;;;AAQ9B,MAAa,eAAiE,OAAO,OAAO;CAC3F,WAAW;CACX,YAAY;CACZ,oBAAoB;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Hex(bytes) {
|
|
4
|
+
return Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
5
|
+
}
|
|
6
|
+
async function createMigrationTarget(kind, label, identity) {
|
|
7
|
+
const encoded = new TextEncoder().encode(JSON.stringify({
|
|
8
|
+
kind,
|
|
9
|
+
identity
|
|
10
|
+
}));
|
|
11
|
+
const digest = await crypto.subtle.digest("SHA-256", encoded);
|
|
12
|
+
return {
|
|
13
|
+
kind,
|
|
14
|
+
label,
|
|
15
|
+
fingerprint: encodeHex(new Uint8Array(digest))
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function requireMigrationEnvironment(name, env) {
|
|
19
|
+
if (typeof name !== "string" || !ENVIRONMENT_VARIABLE_PATTERN.test(name)) throw new Error("Migration credential environment variable name is invalid.");
|
|
20
|
+
const value = env[name];
|
|
21
|
+
if (!value) throw new Error(`Migration credential environment variable ${name} is not set.`);
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { requireMigrationEnvironment as n, createMigrationTarget as t };
|
|
27
|
+
//# sourceMappingURL=target-BOighEY1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target-BOighEY1.mjs","names":[],"sources":["../src/migrations/target.ts"],"sourcesContent":["import type { MigrationTarget } from \"./protocol.js\";\n\nconst ENVIRONMENT_VARIABLE_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/;\n\nfunction encodeHex(bytes: Uint8Array): string {\n\treturn Array.from(bytes, (byte) => byte.toString(16).padStart(2, \"0\")).join(\"\");\n}\n\nexport async function createMigrationTarget(\n\tkind: string,\n\tlabel: string,\n\tidentity: readonly string[],\n): Promise<MigrationTarget> {\n\tconst encoded = new TextEncoder().encode(JSON.stringify({ kind, identity }));\n\tconst digest = await crypto.subtle.digest(\"SHA-256\", encoded);\n\treturn {\n\t\tkind,\n\t\tlabel,\n\t\tfingerprint: encodeHex(new Uint8Array(digest)),\n\t};\n}\n\nexport function requireMigrationEnvironment(\n\tname: unknown,\n\tenv: Readonly<Record<string, string | undefined>>,\n): string {\n\tif (typeof name !== \"string\" || !ENVIRONMENT_VARIABLE_PATTERN.test(name)) {\n\t\tthrow new Error(\"Migration credential environment variable name is invalid.\");\n\t}\n\tconst value = env[name];\n\tif (!value) {\n\t\tthrow new Error(`Migration credential environment variable ${name} is not set.`);\n\t}\n\treturn value;\n}\n"],"mappings":";AAEA,MAAM,+BAA+B;AAErC,SAAS,UAAU,OAA2B;AAC7C,QAAO,MAAM,KAAK,QAAQ,SAAS,KAAK,SAAS,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,KAAK,GAAG;;AAGhF,eAAsB,sBACrB,MACA,OACA,UAC2B;CAC3B,MAAM,UAAU,IAAI,aAAa,CAAC,OAAO,KAAK,UAAU;EAAE;EAAM;EAAU,CAAC,CAAC;CAC5E,MAAM,SAAS,MAAM,OAAO,OAAO,OAAO,WAAW,QAAQ;AAC7D,QAAO;EACN;EACA;EACA,aAAa,UAAU,IAAI,WAAW,OAAO,CAAC;EAC9C;;AAGF,SAAgB,4BACf,MACA,KACS;AACT,KAAI,OAAO,SAAS,YAAY,CAAC,6BAA6B,KAAK,KAAK,CACvE,OAAM,IAAI,MAAM,6DAA6D;CAE9E,MAAM,QAAQ,IAAI;AAClB,KAAI,CAAC,MACJ,OAAM,IAAI,MAAM,6CAA6C,KAAK,cAAc;AAEjF,QAAO"}
|