emdash 0.41.0 → 0.42.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-DBki7IT4.mjs +26 -0
- package/dist/action-token-DBki7IT4.mjs.map +1 -0
- package/dist/activation-DDuqAat2.mjs +387 -0
- package/dist/activation-DDuqAat2.mjs.map +1 -0
- package/dist/adapters-BrZxU6vM.d.mts +171 -0
- package/dist/adapters-BrZxU6vM.d.mts.map +1 -0
- package/dist/allowed-origins-CFtudhyw.mjs +116 -0
- package/dist/allowed-origins-CFtudhyw.mjs.map +1 -0
- package/dist/api/route-utils.d.mts +5 -4
- package/dist/api/route-utils.d.mts.map +1 -1
- package/dist/api/route-utils.mjs +52 -47
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +11 -10
- package/dist/api-CFQn8VLR.mjs +4973 -0
- package/dist/api-CFQn8VLR.mjs.map +1 -0
- package/dist/api-tokens-P3mAaQgr.mjs +166 -0
- package/dist/api-tokens-P3mAaQgr.mjs.map +1 -0
- package/dist/apply-C1kq5l7p.mjs +1672 -0
- package/dist/apply-C1kq5l7p.mjs.map +1 -0
- package/dist/approvals-l9sGqPmL.mjs +460 -0
- package/dist/approvals-l9sGqPmL.mjs.map +1 -0
- package/dist/artifact-fetch-CWxyELVI.mjs +659 -0
- package/dist/artifact-fetch-CWxyELVI.mjs.map +1 -0
- package/dist/astro/index.d.mts +14 -14
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +96 -546
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +12 -12
- package/dist/astro/middleware/auth.mjs +10 -10
- package/dist/astro/middleware/media-usage-write-fence.mjs +5 -5
- package/dist/astro/middleware/redirect.d.mts.map +1 -1
- package/dist/astro/middleware/redirect.mjs +19 -9
- package/dist/astro/middleware/redirect.mjs.map +1 -1
- package/dist/astro/middleware/request-context.d.mts +2 -1
- package/dist/astro/middleware/request-context.d.mts.map +1 -1
- package/dist/astro/middleware/request-context.mjs +15 -6
- 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.mjs +114 -110
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +15 -14
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +15 -14
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +18 -17
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +18 -17
- package/dist/astro/routes/api/admin/byline-fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +18 -17
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +36 -27
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +32 -26
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +32 -26
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +20 -19
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/bulk.mjs +19 -18
- package/dist/astro/routes/api/admin/comments/bulk.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/counts.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/index.mjs +19 -18
- package/dist/astro/routes/api/admin/comments/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/core-update.d.mts +8 -0
- package/dist/astro/routes/api/admin/core-update.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/core-update.mjs +28 -0
- package/dist/astro/routes/api/admin/core-update.mjs.map +1 -0
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +6 -6
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +5 -5
- package/dist/astro/routes/api/admin/media-usage/activation.mjs +21 -20
- package/dist/astro/routes/api/admin/media-usage/activation.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +23 -22
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +23 -22
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/progress.mjs +26 -25
- package/dist/astro/routes/api/admin/media-usage/progress.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +32 -31
- package/dist/astro/routes/api/admin/media-usage/repair.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs +23 -22
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +23 -22
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs.map +1 -1
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +75 -73
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +74 -72
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +75 -73
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +86 -83
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +75 -73
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +10 -7
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +74 -72
- 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 +85 -82
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +74 -72
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +75 -73
- 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 +87 -84
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +9 -9
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +77 -75
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +75 -73
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +74 -72
- 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 +74 -72
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +10 -7
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +74 -72
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/_...path_.mjs +4 -4
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +42 -41
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +45 -44
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +45 -44
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +45 -44
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs +46 -45
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +46 -45
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +46 -45
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +46 -45
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +44 -43
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs +46 -45
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +5 -5
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +16 -15
- package/dist/astro/routes/api/admin/users/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +6 -6
- package/dist/astro/routes/api/admin/users/index.mjs +15 -14
- package/dist/astro/routes/api/admin/users/index.mjs.map +1 -1
- package/dist/astro/routes/api/auth/dev-bypass.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/accept.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/complete.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +23 -19
- package/dist/astro/routes/api/auth/invite/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/index.mjs +17 -16
- package/dist/astro/routes/api/auth/invite/index.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/register-options.mjs +18 -17
- package/dist/astro/routes/api/auth/invite/register-options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/logout.mjs +5 -5
- package/dist/astro/routes/api/auth/magic-link/send.mjs +19 -18
- 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 +19 -15
- package/dist/astro/routes/api/auth/magic-link/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/me.mjs +16 -15
- package/dist/astro/routes/api/auth/me.mjs.map +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +5 -5
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +13 -4
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +15 -14
- package/dist/astro/routes/api/auth/passkey/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/index.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/options.mjs +20 -19
- package/dist/astro/routes/api/auth/passkey/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +18 -17
- package/dist/astro/routes/api/auth/passkey/register/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +19 -18
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/verify.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/passkey/verify.mjs +23 -19
- package/dist/astro/routes/api/auth/passkey/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/complete.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/signup/complete.mjs +23 -19
- package/dist/astro/routes/api/auth/signup/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/request.mjs +18 -17
- package/dist/astro/routes/api/auth/signup/request.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/verify.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +13 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +20 -19
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +12 -11
- package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +33 -32
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +36 -35
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +36 -35
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +27 -26
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/authors.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/index.mjs +16 -15
- package/dist/astro/routes/api/content/_collection_/index.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/trash.mjs +16 -15
- package/dist/astro/routes/api/content/_collection_/trash.mjs.map +1 -1
- package/dist/astro/routes/api/dashboard.mjs +13 -11
- package/dist/astro/routes/api/dashboard.mjs.map +1 -1
- package/dist/astro/routes/api/dev/emails.mjs +5 -5
- package/dist/astro/routes/api/health.mjs +6 -6
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +25 -24
- package/dist/astro/routes/api/import/probe.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +14 -14
- package/dist/astro/routes/api/import/wordpress/execute.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +167 -21
- 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 -19
- package/dist/astro/routes/api/import/wordpress/media.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +19 -18
- package/dist/astro/routes/api/import/wordpress/prepare.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 +29 -28
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +25 -24
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs.map +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 +36 -35
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +6 -6
- package/dist/astro/routes/api/mcp.mjs +167 -110
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +20 -19
- package/dist/astro/routes/api/media/_id_/confirm.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/replace.mjs +17 -16
- package/dist/astro/routes/api/media/_id_/replace.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/upload.mjs +9 -9
- package/dist/astro/routes/api/media/_id_/usage.mjs +34 -33
- package/dist/astro/routes/api/media/_id_/usage.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_.mjs +32 -31
- package/dist/astro/routes/api/media/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +9 -9
- package/dist/astro/routes/api/media/folders/_id_.mjs +17 -16
- package/dist/astro/routes/api/media/folders/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/media/folders/index.mjs +17 -16
- package/dist/astro/routes/api/media/folders/index.mjs.map +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +5 -5
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +5 -5
- package/dist/astro/routes/api/media/providers/index.mjs +5 -5
- package/dist/astro/routes/api/media/upload-url.mjs +19 -18
- package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
- package/dist/astro/routes/api/media.mjs +36 -35
- package/dist/astro/routes/api/media.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_/items.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/translations.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_.mjs +19 -18
- package/dist/astro/routes/api/menus/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/index.mjs +19 -18
- package/dist/astro/routes/api/menus/index.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/authorize.mjs +8 -8
- package/dist/astro/routes/api/oauth/device/code.mjs +11 -11
- package/dist/astro/routes/api/oauth/device/token.mjs +10 -10
- package/dist/astro/routes/api/oauth/register.d.mts.map +1 -1
- package/dist/astro/routes/api/oauth/register.mjs +15 -7
- package/dist/astro/routes/api/oauth/register.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/token/refresh.mjs +8 -8
- package/dist/astro/routes/api/oauth/token/revoke.mjs +8 -8
- package/dist/astro/routes/api/oauth/token.mjs +8 -8
- package/dist/astro/routes/api/openapi.json.mjs +21 -20
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +12 -11
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs.map +1 -1
- 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 +36 -35
- package/dist/astro/routes/api/relations/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/index.mjs +36 -35
- package/dist/astro/routes/api/relations/index.mjs.map +1 -1
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +5 -5
- package/dist/astro/routes/api/revisions/_revisionId_/restore.d.mts.map +1 -1
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +26 -6
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +74 -72
- 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 +74 -72
- 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 +74 -72
- package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +74 -72
- 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 +74 -72
- 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 +74 -72
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +74 -72
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +74 -72
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/reorder.mjs +74 -72
- package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +17 -16
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +74 -72
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +74 -72
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +20 -19
- package/dist/astro/routes/api/search/enable.mjs.map +1 -1
- package/dist/astro/routes/api/search/index.mjs +19 -18
- package/dist/astro/routes/api/search/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/rebuild.mjs +20 -19
- package/dist/astro/routes/api/search/rebuild.mjs.map +1 -1
- package/dist/astro/routes/api/search/stats.mjs +9 -9
- package/dist/astro/routes/api/search/suggest.mjs +19 -18
- package/dist/astro/routes/api/search/suggest.mjs.map +1 -1
- package/dist/astro/routes/api/sections/_slug_.mjs +19 -18
- package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/sections/index.mjs +19 -18
- package/dist/astro/routes/api/sections/index.mjs.map +1 -1
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/export.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/index.mjs +8 -8
- package/dist/astro/routes/api/settings/email.mjs +6 -6
- package/dist/astro/routes/api/settings.mjs +23 -22
- package/dist/astro/routes/api/settings.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.mjs +26 -24
- package/dist/astro/routes/api/setup/admin-verify.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin.mjs +19 -18
- package/dist/astro/routes/api/setup/admin.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +47 -46
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +4 -4
- package/dist/astro/routes/api/setup/index.mjs +52 -51
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- package/dist/astro/routes/api/setup/status.mjs +6 -6
- package/dist/astro/routes/api/snapshot.mjs +8 -8
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +25 -24
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -24
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -24
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -24
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +24 -23
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_.mjs +25 -24
- package/dist/astro/routes/api/taxonomies/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +42 -41
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.mjs +25 -24
- package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
- package/dist/astro/routes/api/themes/preview.mjs +6 -6
- package/dist/astro/routes/api/typegen.d.mts.map +1 -1
- package/dist/astro/routes/api/typegen.mjs +8 -39
- package/dist/astro/routes/api/typegen.mjs.map +1 -1
- package/dist/astro/routes/api/visual-editing/action-token.mjs +6 -6
- package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +20 -19
- package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +4 -4
- 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 -16
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +20 -19
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +20 -19
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/index.mjs +20 -19
- package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
- package/dist/astro/routes/api/widget-components.mjs +5 -5
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +10 -10
- package/dist/astro/routes/sitemap.xml.mjs +8 -8
- package/dist/astro/types.d.mts +23 -17
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/audit-BszbE_BP.mjs +127 -0
- package/dist/audit-BszbE_BP.mjs.map +1 -0
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/authoritative-records-dSvXCfzb.mjs +5172 -0
- package/dist/authoritative-records-dSvXCfzb.mjs.map +1 -0
- package/dist/authorize-soZXK7U0.mjs +49 -0
- package/dist/authorize-soZXK7U0.mjs.map +1 -0
- package/dist/backup-DQ3CABsO.mjs +246 -0
- package/dist/backup-DQ3CABsO.mjs.map +1 -0
- package/dist/block-types-DIG_KZwi.mjs +132 -0
- package/dist/block-types-DIG_KZwi.mjs.map +1 -0
- package/dist/block-values-BrTrtA-v.mjs +175 -0
- package/dist/block-values-BrTrtA-v.mjs.map +1 -0
- package/dist/byline-02tu_Uc-.mjs +909 -0
- package/dist/byline-02tu_Uc-.mjs.map +1 -0
- package/dist/byline-fields-B01Txzyx.mjs +123 -0
- package/dist/byline-fields-B01Txzyx.mjs.map +1 -0
- package/dist/byline-fields-DHJs0Mja.mjs +280 -0
- package/dist/byline-fields-DHJs0Mja.mjs.map +1 -0
- package/dist/byline-registry-dvt4N3xV.mjs +406 -0
- package/dist/byline-registry-dvt4N3xV.mjs.map +1 -0
- package/dist/bylines-COTwmMBF.mjs +150 -0
- package/dist/bylines-COTwmMBF.mjs.map +1 -0
- package/dist/bylines-D_S8UKRX.mjs +214 -0
- package/dist/bylines-D_S8UKRX.mjs.map +1 -0
- package/dist/cache-CPanL9IO.mjs +114 -0
- package/dist/cache-CPanL9IO.mjs.map +1 -0
- package/dist/canonical-CAecl1UQ.mjs +174 -0
- package/dist/canonical-CAecl1UQ.mjs.map +1 -0
- package/dist/capture-triggers-CdZfvHtF.mjs +362 -0
- package/dist/capture-triggers-CdZfvHtF.mjs.map +1 -0
- package/dist/challenge-store-CxZxPqaw.mjs +51 -0
- package/dist/challenge-store-CxZxPqaw.mjs.map +1 -0
- package/dist/checksum-DtH6m5uk.mjs +162 -0
- package/dist/checksum-DtH6m5uk.mjs.map +1 -0
- package/dist/chrome-tags-CKELm-bo.mjs +24 -0
- package/dist/chrome-tags-CKELm-bo.mjs.map +1 -0
- package/dist/chunks-DBmkKmBH.mjs +25 -0
- package/dist/chunks-DBmkKmBH.mjs.map +1 -0
- package/dist/cli/index.mjs +58 -911
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +39 -34
- package/dist/client/index.d.mts.map +1 -1
- package/dist/client/index.mjs +8 -3
- package/dist/client/index.mjs.map +1 -1
- package/dist/collection-deletion-JecE26cS.mjs +436 -0
- package/dist/collection-deletion-JecE26cS.mjs.map +1 -0
- package/dist/collection-deletion-processor-DgCfF3a1.mjs +217 -0
- package/dist/collection-deletion-processor-DgCfF3a1.mjs.map +1 -0
- package/dist/collection-slugs-cache-BNRAPNiu.mjs +85 -0
- package/dist/collection-slugs-cache-BNRAPNiu.mjs.map +1 -0
- package/dist/comment-Cq1UYN8_.mjs +313 -0
- package/dist/comment-Cq1UYN8_.mjs.map +1 -0
- package/dist/comment-reaction-DPeGAfjd.mjs +85 -0
- package/dist/comment-reaction-DPeGAfjd.mjs.map +1 -0
- package/dist/comments-BRtp992B.mjs +99 -0
- package/dist/comments-BRtp992B.mjs.map +1 -0
- package/dist/comments-Bi2j9IoX.mjs +195 -0
- package/dist/comments-Bi2j9IoX.mjs.map +1 -0
- package/dist/components-CQY-Sgm-.mjs +108 -0
- package/dist/components-CQY-Sgm-.mjs.map +1 -0
- package/dist/config-BnuORwSP.mjs +242 -0
- package/dist/config-BnuORwSP.mjs.map +1 -0
- package/dist/config-CDmPF4p7.d.mts +39 -0
- package/dist/config-CDmPF4p7.d.mts.map +1 -0
- package/dist/config-DHsDMpXc.d.mts +6707 -0
- package/dist/config-DHsDMpXc.d.mts.map +1 -0
- package/dist/connection-B9pIasFd.mjs +36 -0
- package/dist/connection-B9pIasFd.mjs.map +1 -0
- package/dist/content-RzEXY3QX.mjs +2020 -0
- package/dist/content-RzEXY3QX.mjs.map +1 -0
- package/dist/content-list-query-CnXfe1Nu.d.mts +26 -0
- package/dist/content-list-query-CnXfe1Nu.d.mts.map +1 -0
- package/dist/content-policy-Dm32n9C6.mjs +46 -0
- package/dist/content-policy-Dm32n9C6.mjs.map +1 -0
- package/dist/content-repair-B-k5JrVN.mjs +442 -0
- package/dist/content-repair-B-k5JrVN.mjs.map +1 -0
- package/dist/context-CtRvoSAj.mjs +2026 -0
- package/dist/context-CtRvoSAj.mjs.map +1 -0
- package/dist/credits-CAFPFhuk.mjs +110 -0
- package/dist/credits-CAFPFhuk.mjs.map +1 -0
- package/dist/cron-xe5XKqA-.mjs +306 -0
- package/dist/cron-xe5XKqA-.mjs.map +1 -0
- package/dist/dashboard-BoV4pwPP.mjs +151 -0
- package/dist/dashboard-BoV4pwPP.mjs.map +1 -0
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql-migrations.d.mts +1 -1
- package/dist/db/libsql-migrations.mjs +4 -4
- 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-DaoYyFRS.mjs +81 -0
- package/dist/default-DaoYyFRS.mjs.map +1 -0
- package/dist/deferred-tasks-OBADxoFf.d.mts +9 -0
- package/dist/deferred-tasks-OBADxoFf.d.mts.map +1 -0
- package/dist/destination-r2zIAZ2S.mjs +18 -0
- package/dist/destination-r2zIAZ2S.mjs.map +1 -0
- package/dist/dev-typegen-8JlYYFno.mjs +29 -0
- package/dist/dev-typegen-8JlYYFno.mjs.map +1 -0
- package/dist/device-flow-CzKi6tID.mjs +521 -0
- package/dist/device-flow-CzKi6tID.mjs.map +1 -0
- package/dist/digest-DiYAoZpf.mjs +194 -0
- package/dist/digest-DiYAoZpf.mjs.map +1 -0
- package/dist/direct-executor-CsEmH_2m.mjs +104 -0
- package/dist/direct-executor-CsEmH_2m.mjs.map +1 -0
- package/dist/dist-Cfu8mMBs.mjs +810 -0
- package/dist/dist-Cfu8mMBs.mjs.map +1 -0
- package/dist/email-console-DmqVF5J_.mjs +50 -0
- package/dist/email-console-DmqVF5J_.mjs.map +1 -0
- package/dist/email-locale-B5OjmAj_.mjs +25 -0
- package/dist/email-locale-B5OjmAj_.mjs.map +1 -0
- package/dist/emdash-runtime-CMdYH2Of.mjs +4229 -0
- package/dist/emdash-runtime-CMdYH2Of.mjs.map +1 -0
- package/dist/enrich-BDdVNeDK.mjs +194 -0
- package/dist/enrich-BDdVNeDK.mjs.map +1 -0
- package/dist/entry-lock-B-1bUDxX.d.mts +4544 -0
- package/dist/entry-lock-B-1bUDxX.d.mts.map +1 -0
- package/dist/entry-lock-B5eaZEZP.mjs +163 -0
- package/dist/entry-lock-B5eaZEZP.mjs.map +1 -0
- package/dist/entry-lock-PP1JCXBB.mjs +1180 -0
- package/dist/entry-lock-PP1JCXBB.mjs.map +1 -0
- package/dist/entry-locks-DJAqVweV.mjs +167 -0
- package/dist/entry-locks-DJAqVweV.mjs.map +1 -0
- package/dist/env-types-BaTCgn-y.mjs +38 -0
- package/dist/env-types-BaTCgn-y.mjs.map +1 -0
- package/dist/error-CEdm_AWU.mjs +90 -0
- package/dist/error-CEdm_AWU.mjs.map +1 -0
- package/dist/errors-CNvATh_7.mjs +469 -0
- package/dist/errors-CNvATh_7.mjs.map +1 -0
- package/dist/errors-CjXd1LgH.mjs +120 -0
- package/dist/errors-CjXd1LgH.mjs.map +1 -0
- package/dist/escape-nJW7dR0s.mjs +9 -0
- package/dist/escape-nJW7dR0s.mjs.map +1 -0
- package/dist/fence-BrnQffdY.mjs +162 -0
- package/dist/fence-BrnQffdY.mjs.map +1 -0
- package/dist/field-defs-cache-DEkFYCDE.mjs +77 -0
- package/dist/field-defs-cache-DEkFYCDE.mjs.map +1 -0
- package/dist/field-map-Cp5hDSRU.mjs +83 -0
- package/dist/field-map-Cp5hDSRU.mjs.map +1 -0
- package/dist/focal-point-JX8kcOTQ.mjs +23 -0
- package/dist/focal-point-JX8kcOTQ.mjs.map +1 -0
- package/dist/fts-manager-DU03MxWu.mjs +443 -0
- package/dist/fts-manager-DU03MxWu.mjs.map +1 -0
- package/dist/gc-Gf9LOF42.mjs +75 -0
- package/dist/gc-Gf9LOF42.mjs.map +1 -0
- package/dist/hash-CY4QdeMJ.mjs +37 -0
- package/dist/hash-CY4QdeMJ.mjs.map +1 -0
- package/dist/hook-result-DjdVwWpw.d.mts +31 -0
- package/dist/hook-result-DjdVwWpw.d.mts.map +1 -0
- package/dist/hreflang-Bq0ahAd4.mjs +105 -0
- package/dist/hreflang-Bq0ahAd4.mjs.map +1 -0
- package/dist/hreflang-C7ETs0Tv.d.mts +50 -0
- package/dist/hreflang-C7ETs0Tv.d.mts.map +1 -0
- package/dist/http-route-dispatch-B2G7_OOm.mjs +339 -0
- package/dist/http-route-dispatch-B2G7_OOm.mjs.map +1 -0
- package/dist/identity-u3KgtUC9.mjs +35 -0
- package/dist/identity-u3KgtUC9.mjs.map +1 -0
- package/dist/import-CzP9ffo0.mjs +2020 -0
- package/dist/import-CzP9ffo0.mjs.map +1 -0
- package/dist/index-D1_ykO2u.d.mts +623 -0
- package/dist/index-D1_ykO2u.d.mts.map +1 -0
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +108 -104
- package/dist/install-finalization-TbcQozrV.mjs +58 -0
- package/dist/install-finalization-TbcQozrV.mjs.map +1 -0
- package/dist/keys-r08WvAng.mjs +61 -0
- package/dist/keys-r08WvAng.mjs.map +1 -0
- package/dist/kinds-CXY-fwQ6.mjs +974 -0
- package/dist/kinds-CXY-fwQ6.mjs.map +1 -0
- package/dist/lifecycle-CpebZNAA.mjs +25 -0
- package/dist/lifecycle-CpebZNAA.mjs.map +1 -0
- package/dist/load-dHcR5yh9.mjs +28 -0
- package/dist/load-dHcR5yh9.mjs.map +1 -0
- package/dist/loader-B_bcoE1h.mjs +1197 -0
- package/dist/loader-B_bcoE1h.mjs.map +1 -0
- package/dist/loops-Dn1i16FP.mjs +205 -0
- package/dist/loops-Dn1i16FP.mjs.map +1 -0
- package/dist/manifest-builder-D7Y8iirE.mjs +189 -0
- package/dist/manifest-builder-D7Y8iirE.mjs.map +1 -0
- package/dist/manifest-schema-gy37bD_D.mjs +496 -0
- package/dist/manifest-schema-gy37bD_D.mjs.map +1 -0
- package/dist/marketplace-tHWSsCUo.mjs +257 -0
- package/dist/marketplace-tHWSsCUo.mjs.map +1 -0
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +4 -4
- package/dist/media/local-runtime.d.mts +14 -14
- package/dist/media/local-runtime.mjs +7 -7
- package/dist/media-3v7mqAVX.mjs +294 -0
- package/dist/media-3v7mqAVX.mjs.map +1 -0
- package/dist/media-CputjGE1.mjs +373 -0
- package/dist/media-CputjGE1.mjs.map +1 -0
- package/dist/media-D1z_jisb.mjs +408 -0
- package/dist/media-D1z_jisb.mjs.map +1 -0
- package/dist/media-allowlist-D5a4d-RA.mjs +44 -0
- package/dist/media-allowlist-D5a4d-RA.mjs.map +1 -0
- package/dist/media-folders-D2VdVBf6.mjs +210 -0
- package/dist/media-folders-D2VdVBf6.mjs.map +1 -0
- package/dist/media-url-DloW2xrP.mjs +43 -0
- package/dist/media-url-DloW2xrP.mjs.map +1 -0
- package/dist/media-usage-B8q0owWQ.mjs +1629 -0
- package/dist/media-usage-B8q0owWQ.mjs.map +1 -0
- package/dist/media-usage-activation-CQWOOTJi.mjs +78 -0
- package/dist/media-usage-activation-CQWOOTJi.mjs.map +1 -0
- package/dist/media-usage-work-BC0qpkMD.mjs +152 -0
- package/dist/media-usage-work-BC0qpkMD.mjs.map +1 -0
- package/dist/media-usage-work-BlMjwPg8.mjs +586 -0
- package/dist/media-usage-work-BlMjwPg8.mjs.map +1 -0
- package/dist/menus-BQKqf0Up.mjs +92 -0
- package/dist/menus-BQKqf0Up.mjs.map +1 -0
- package/dist/menus-DiuhXKWf.mjs +3646 -0
- package/dist/menus-DiuhXKWf.mjs.map +1 -0
- package/dist/menus-trvc6_fW.mjs +753 -0
- package/dist/menus-trvc6_fW.mjs.map +1 -0
- package/dist/migrations/index.d.mts +1 -1
- package/dist/migrations/index.mjs +3 -3
- package/dist/mime-IZf-LHIS.mjs +36 -0
- package/dist/mime-IZf-LHIS.mjs.map +1 -0
- package/dist/mode-nh0ppSX5.mjs +23 -0
- package/dist/mode-nh0ppSX5.mjs.map +1 -0
- package/dist/node-sqlite-compat-CDOEcc97.mjs +63 -0
- package/dist/node-sqlite-compat-CDOEcc97.mjs.map +1 -0
- package/dist/normalize-BuWa0lvd.mjs +191 -0
- package/dist/normalize-BuWa0lvd.mjs.map +1 -0
- package/dist/oauth-authorization-BcRdGojQ.mjs +274 -0
- package/dist/oauth-authorization-BcRdGojQ.mjs.map +1 -0
- package/dist/oauth-clients-C-8WDTqj.mjs +266 -0
- package/dist/oauth-clients-C-8WDTqj.mjs.map +1 -0
- package/dist/oauth-state-store-CM5ZEYQS.mjs +50 -0
- package/dist/oauth-state-store-CM5ZEYQS.mjs.map +1 -0
- package/dist/oauth-user-lookup-DrrqvTZC.mjs +26 -0
- package/dist/oauth-user-lookup-DrrqvTZC.mjs.map +1 -0
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/object-cache-Bo6DGaC9.mjs +586 -0
- package/dist/object-cache-Bo6DGaC9.mjs.map +1 -0
- package/dist/options-C2IDQnD2.d.mts +81 -0
- package/dist/options-C2IDQnD2.d.mts.map +1 -0
- package/dist/ownership-DoeAIuTg.mjs +12 -0
- package/dist/ownership-DoeAIuTg.mjs.map +1 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +6 -6
- package/dist/parse-D5Sw9wAI.d.mts +172 -0
- package/dist/parse-D5Sw9wAI.d.mts.map +1 -0
- package/dist/parse-Gt2l4Sld.mjs +81 -0
- package/dist/parse-Gt2l4Sld.mjs.map +1 -0
- package/dist/passkey-config-CkQsrcU-.mjs +46 -0
- package/dist/passkey-config-CkQsrcU-.mjs.map +1 -0
- package/dist/paths-DiENGBx5.mjs +77 -0
- package/dist/paths-DiENGBx5.mjs.map +1 -0
- package/dist/patterns-DyZJ67I7.mjs +140 -0
- package/dist/patterns-DyZJ67I7.mjs.map +1 -0
- package/dist/placeholder-Cq5wLDCX.d.mts +306 -0
- package/dist/placeholder-Cq5wLDCX.d.mts.map +1 -0
- package/dist/plan-BxCS1tl5.mjs +135 -0
- package/dist/plan-BxCS1tl5.mjs.map +1 -0
- package/dist/plugin-test-runtime.d.mts +14 -14
- package/dist/plugin-test-runtime.mjs +115 -111
- package/dist/plugin-types.d.mts +5 -3
- package/dist/plugin-types.d.mts.map +1 -1
- package/dist/plugin-types.mjs.map +1 -1
- package/dist/plugin-utils.d.mts +12 -12
- package/dist/plugins/adapt-sandbox-entry.d.mts +12 -12
- package/dist/plugins/adapt-sandbox-entry.d.mts.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.mjs +48 -10
- package/dist/plugins/adapt-sandbox-entry.mjs.map +1 -1
- package/dist/plugins/host.d.mts +6 -6
- package/dist/plugins/host.mjs +49 -44
- package/dist/plugins-BpLkXA1S.mjs +277 -0
- package/dist/plugins-BpLkXA1S.mjs.map +1 -0
- package/dist/policy-C1qpNxrr.mjs +45 -0
- package/dist/policy-C1qpNxrr.mjs.map +1 -0
- package/dist/portable-text-BnRuiR1-.mjs +307 -0
- package/dist/portable-text-BnRuiR1-.mjs.map +1 -0
- package/dist/preview-DU5rwz_m.mjs +107 -0
- package/dist/preview-DU5rwz_m.mjs.map +1 -0
- package/dist/protocol-B9GEhEyi.d.mts +61 -0
- package/dist/protocol-B9GEhEyi.d.mts.map +1 -0
- package/dist/public-submission-yZaTTfsC.mjs +250 -0
- package/dist/public-submission-yZaTTfsC.mjs.map +1 -0
- package/dist/public-url-B5a0QAh6.mjs +101 -0
- package/dist/public-url-B5a0QAh6.mjs.map +1 -0
- package/dist/query-6e2CQxUv.mjs +1161 -0
- package/dist/query-6e2CQxUv.mjs.map +1 -0
- package/dist/query-DC3bv__4.mjs +41 -0
- package/dist/query-DC3bv__4.mjs.map +1 -0
- package/dist/rate-limit-BXx3Ecp9.mjs +120 -0
- package/dist/rate-limit-BXx3Ecp9.mjs.map +1 -0
- package/dist/receipt-q1VK9jhj.mjs +43 -0
- package/dist/receipt-q1VK9jhj.mjs.map +1 -0
- package/dist/redirect-BvFKh8Sz.mjs +416 -0
- package/dist/redirect-BvFKh8Sz.mjs.map +1 -0
- package/dist/redirect-D1AmADlk.mjs +19 -0
- package/dist/redirect-D1AmADlk.mjs.map +1 -0
- package/dist/redirects-CWQMKYOS.mjs +446 -0
- package/dist/redirects-CWQMKYOS.mjs.map +1 -0
- package/dist/redirects-D4EWeXAo.mjs +148 -0
- package/dist/redirects-D4EWeXAo.mjs.map +1 -0
- package/dist/registry/testing.d.mts +16 -4
- package/dist/registry/testing.d.mts.map +1 -1
- package/dist/registry/testing.mjs +20 -10
- package/dist/registry/testing.mjs.map +1 -1
- package/dist/registry-CtHRqVe-.mjs +6771 -0
- package/dist/registry-CtHRqVe-.mjs.map +1 -0
- package/dist/relations-CVI2nbrn.mjs +776 -0
- package/dist/relations-CVI2nbrn.mjs.map +1 -0
- package/dist/request-cache-C4CIo5ad.mjs +104 -0
- package/dist/request-cache-C4CIo5ad.mjs.map +1 -0
- package/dist/request-context.d.mts +9 -1
- package/dist/request-context.d.mts.map +1 -1
- package/dist/request-context.mjs.map +1 -1
- package/dist/request-meta-B6blULFY.mjs +141 -0
- package/dist/request-meta-B6blULFY.mjs.map +1 -0
- package/dist/resolve-Cx0Pwz0-.mjs +100 -0
- package/dist/resolve-Cx0Pwz0-.mjs.map +1 -0
- package/dist/resolve-D-kqyKns.mjs +199 -0
- package/dist/resolve-D-kqyKns.mjs.map +1 -0
- package/dist/revision-CGkQA0e5.mjs +366 -0
- package/dist/revision-CGkQA0e5.mjs.map +1 -0
- package/dist/route-wire-DK600v4u.mjs +197 -0
- package/dist/route-wire-DK600v4u.mjs.map +1 -0
- package/dist/routes-DTduBPzX.mjs +272 -0
- package/dist/routes-DTduBPzX.mjs.map +1 -0
- package/dist/runner-CLpxmhl8.mjs +6197 -0
- package/dist/runner-CLpxmhl8.mjs.map +1 -0
- package/dist/runner-Ji7qyH2A.d.mts +68 -0
- package/dist/runner-Ji7qyH2A.d.mts.map +1 -0
- package/dist/runtime.d.mts +13 -13
- package/dist/runtime.mjs +3 -3
- package/dist/schema/project-env-types.d.mts +12 -0
- package/dist/schema/project-env-types.d.mts.map +1 -0
- package/dist/schema/project-env-types.mjs +86 -0
- package/dist/schema/project-env-types.mjs.map +1 -0
- package/dist/schema-BZPj3kwZ.mjs +13 -0
- package/dist/schema-BZPj3kwZ.mjs.map +1 -0
- package/dist/schema-Berj5VQx.mjs +815 -0
- package/dist/schema-Berj5VQx.mjs.map +1 -0
- package/dist/scopes-C1HJaIyf.mjs +34 -0
- package/dist/scopes-C1HJaIyf.mjs.map +1 -0
- package/dist/search-thYf8j9F.mjs +448 -0
- package/dist/search-thYf8j9F.mjs.map +1 -0
- package/dist/sections-2k1uIgJ0.mjs +346 -0
- package/dist/sections-2k1uIgJ0.mjs.map +1 -0
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +39 -38
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +24 -23
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo-C61bnPuV.mjs +114 -0
- package/dist/seo-C61bnPuV.mjs.map +1 -0
- package/dist/seo-DpYxmGaL.mjs +133 -0
- package/dist/seo-DpYxmGaL.mjs.map +1 -0
- package/dist/service-BFUImckH.mjs +150 -0
- package/dist/service-BFUImckH.mjs.map +1 -0
- package/dist/session-user-DVcHsFD5.mjs +61 -0
- package/dist/session-user-DVcHsFD5.mjs.map +1 -0
- package/dist/settings-B0zQj_Tj.mjs +61 -0
- package/dist/settings-B0zQj_Tj.mjs.map +1 -0
- package/dist/settings-BJjK_X7x.mjs +51 -0
- package/dist/settings-BJjK_X7x.mjs.map +1 -0
- package/dist/settings-BbVRRGDp.mjs +439 -0
- package/dist/settings-BbVRRGDp.mjs.map +1 -0
- package/dist/setup-complete-CuLcTDTU.mjs +65 -0
- package/dist/setup-complete-CuLcTDTU.mjs.map +1 -0
- package/dist/setup-nonce-CAQoY5PC.mjs +25 -0
- package/dist/setup-nonce-CAQoY5PC.mjs.map +1 -0
- package/dist/site-settings-AYFvhwQn.mjs +50 -0
- package/dist/site-settings-AYFvhwQn.mjs.map +1 -0
- package/dist/site-url-Ceq_AUK0.mjs +16 -0
- package/dist/site-url-Ceq_AUK0.mjs.map +1 -0
- package/dist/snapshot-Dzsn3NZa.mjs +414 -0
- package/dist/snapshot-Dzsn3NZa.mjs.map +1 -0
- package/dist/ssrf-DsmvZB80.mjs +406 -0
- package/dist/ssrf-DsmvZB80.mjs.map +1 -0
- package/dist/stage-Cf9PqdUB.mjs +662 -0
- package/dist/stage-Cf9PqdUB.mjs.map +1 -0
- package/dist/staged-Bw5eHbKS.mjs +686 -0
- package/dist/staged-Bw5eHbKS.mjs.map +1 -0
- package/dist/state-kGdOMQRY.mjs +153 -0
- package/dist/state-kGdOMQRY.mjs.map +1 -0
- package/dist/status-D39Fpy8R.mjs +30 -0
- package/dist/status-D39Fpy8R.mjs.map +1 -0
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/storage-query-C9bK0Dg6.d.mts +1614 -0
- package/dist/storage-query-C9bK0Dg6.d.mts.map +1 -0
- package/dist/tar-lDI_fzLD.mjs +449 -0
- package/dist/tar-lDI_fzLD.mjs.map +1 -0
- package/dist/target-DOFs5oUC.mjs +27 -0
- package/dist/target-DOFs5oUC.mjs.map +1 -0
- package/dist/taxonomies-DQGomz9p.mjs +939 -0
- package/dist/taxonomies-DQGomz9p.mjs.map +1 -0
- package/dist/taxonomies-DWv-OYT0.mjs +697 -0
- package/dist/taxonomies-DWv-OYT0.mjs.map +1 -0
- package/dist/taxonomy-BesdHIwi.mjs +525 -0
- package/dist/taxonomy-BesdHIwi.mjs.map +1 -0
- package/dist/tokens-BIGxi8sP.mjs +171 -0
- package/dist/tokens-BIGxi8sP.mjs.map +1 -0
- package/dist/transaction-BVYIo_yu.mjs +29 -0
- package/dist/transaction-BVYIo_yu.mjs.map +1 -0
- package/dist/transfer-BtzoaXLk.mjs +166 -0
- package/dist/transfer-BtzoaXLk.mjs.map +1 -0
- package/dist/transfer-DLu_6AXL.mjs +8856 -0
- package/dist/transfer-DLu_6AXL.mjs.map +1 -0
- package/dist/transfer-download-b_PCrqJJ.mjs +33 -0
- package/dist/transfer-download-b_PCrqJJ.mjs.map +1 -0
- package/dist/transformations-DdnpSdeC.mjs +196 -0
- package/dist/transformations-DdnpSdeC.mjs.map +1 -0
- package/dist/transport-flR-Zmds.d.mts +42 -0
- package/dist/transport-flR-Zmds.d.mts.map +1 -0
- package/dist/transport-umzEbgYO.mjs +136 -0
- package/dist/transport-umzEbgYO.mjs.map +1 -0
- package/dist/trusted-proxy-BqfQFs6a.mjs +51 -0
- package/dist/trusted-proxy-BqfQFs6a.mjs.map +1 -0
- package/dist/turnstile-IvQp2uyD.mjs +53 -0
- package/dist/turnstile-IvQp2uyD.mjs.map +1 -0
- package/dist/types-2V_MVPYy.d.mts +125 -0
- package/dist/types-2V_MVPYy.d.mts.map +1 -0
- package/dist/types-B-WCvzdi.d.mts +198 -0
- package/dist/types-B-WCvzdi.d.mts.map +1 -0
- package/dist/types-BGmQ0uXs.mjs +201 -0
- package/dist/types-BGmQ0uXs.mjs.map +1 -0
- package/dist/types-CVsmpTcU.mjs +18 -0
- package/dist/types-CVsmpTcU.mjs.map +1 -0
- package/dist/types-C_V-_vMS.d.mts +198 -0
- package/dist/types-C_V-_vMS.d.mts.map +1 -0
- package/dist/types-CdEMurNh.mjs +77 -0
- package/dist/types-CdEMurNh.mjs.map +1 -0
- package/dist/types-CsmwbOwa.mjs +22 -0
- package/dist/types-CsmwbOwa.mjs.map +1 -0
- package/dist/types-Cw-1it3n.d.mts +287 -0
- package/dist/types-Cw-1it3n.d.mts.map +1 -0
- package/dist/types-D7B20WFC.d.mts +374 -0
- package/dist/types-D7B20WFC.d.mts.map +1 -0
- package/dist/types-DGw8KMX_.mjs +16 -0
- package/dist/types-DGw8KMX_.mjs.map +1 -0
- package/dist/types-DZeDpzMc.d.mts +896 -0
- package/dist/types-DZeDpzMc.d.mts.map +1 -0
- package/dist/types-DuQAIPA-.d.mts +363 -0
- package/dist/types-DuQAIPA-.d.mts.map +1 -0
- package/dist/types-edRPQchz.d.mts +85 -0
- package/dist/types-edRPQchz.d.mts.map +1 -0
- package/dist/types-j6MBDjlZ.mjs +103 -0
- package/dist/types-j6MBDjlZ.mjs.map +1 -0
- package/dist/types-pOLeFKGq.d.mts +1720 -0
- package/dist/types-pOLeFKGq.d.mts.map +1 -0
- package/dist/update-check-CaZyFHZC.mjs +161 -0
- package/dist/update-check-CaZyFHZC.mjs.map +1 -0
- package/dist/upload-attempts-BodUoFBu.mjs +32 -0
- package/dist/upload-attempts-BodUoFBu.mjs.map +1 -0
- package/dist/url-Dn3IStq8.mjs +104 -0
- package/dist/url-Dn3IStq8.mjs.map +1 -0
- package/dist/url-pattern-DGAG6ZP2.mjs +41 -0
- package/dist/url-pattern-DGAG6ZP2.mjs.map +1 -0
- package/dist/user-BOvuF1sQ.mjs +171 -0
- package/dist/user-BOvuF1sQ.mjs.map +1 -0
- package/dist/utils-CoV-PYhg.mjs +439 -0
- package/dist/utils-CoV-PYhg.mjs.map +1 -0
- package/dist/validate-WkjGwBSO.mjs +516 -0
- package/dist/validate-WkjGwBSO.mjs.map +1 -0
- package/dist/validate-dK97qe7F.d.mts +468 -0
- package/dist/validate-dK97qe7F.d.mts.map +1 -0
- package/dist/validation-D-ICq_tY.mjs +219 -0
- package/dist/validation-D-ICq_tY.mjs.map +1 -0
- package/dist/version-DbT04wbH.mjs +9 -0
- package/dist/version-DbT04wbH.mjs.map +1 -0
- package/dist/version-IneBU54o.mjs +7 -0
- package/dist/version-IneBU54o.mjs.map +1 -0
- package/dist/virtual-modules-Brh6mRVe.mjs +516 -0
- package/dist/virtual-modules-Brh6mRVe.mjs.map +1 -0
- package/dist/widgets-D8T0xBYs.mjs +126 -0
- package/dist/widgets-D8T0xBYs.mjs.map +1 -0
- package/dist/wxr-taxonomies-B6iE8m9I.d.mts +34 -0
- package/dist/wxr-taxonomies-B6iE8m9I.d.mts.map +1 -0
- package/dist/wxr-taxonomies-DEzR9N7e.mjs +453 -0
- package/dist/wxr-taxonomies-DEzR9N7e.mjs.map +1 -0
- package/dist/zod-generator-DnfG5sGQ.mjs +424 -0
- package/dist/zod-generator-DnfG5sGQ.mjs.map +1 -0
- package/package.json +13 -14
- package/src/api/errors.ts +11 -0
- package/src/api/handlers/bulk-tag.ts +4 -4
- package/src/api/handlers/content.ts +39 -17
- package/src/api/handlers/index.ts +3 -0
- package/src/api/handlers/manifest.ts +2 -0
- package/src/api/handlers/media-upload.ts +3 -0
- package/src/api/handlers/media.ts +2 -2
- package/src/api/handlers/registry.ts +123 -70
- package/src/api/handlers/revision.ts +10 -2
- package/src/api/handlers/staged-references.ts +72 -6
- package/src/api/handlers/update-check.ts +236 -0
- package/src/api/redirect.ts +9 -1
- package/src/api/schemas/content.ts +4 -0
- package/src/api/schemas/import.ts +50 -14
- package/src/api/schemas/schema.ts +12 -6
- package/src/api/setup-complete.ts +49 -1
- package/src/api/types.ts +4 -0
- package/src/astro/dev-typegen.ts +15 -22
- package/src/astro/integration/dev-typegen.ts +32 -3
- package/src/astro/integration/index.ts +88 -22
- package/src/astro/integration/routes.ts +6 -0
- package/src/astro/integration/runtime.ts +33 -7
- package/src/astro/integration/virtual-modules.ts +1 -0
- package/src/astro/integration/vite-config.ts +16 -8
- package/src/astro/middleware/redirect.ts +15 -2
- package/src/astro/middleware/request-context.ts +13 -6
- package/src/astro/routes/api/admin/bylines/[id]/index.ts +11 -1
- package/src/astro/routes/api/admin/bylines/[id]/translations.ts +7 -1
- package/src/astro/routes/api/admin/bylines/index.ts +6 -1
- package/src/astro/routes/api/admin/core-update.ts +34 -0
- package/src/astro/routes/api/admin/plugins/marketplace/[id]/icon.ts +6 -2
- package/src/astro/routes/api/admin/themes/marketplace/[id]/thumbnail.ts +6 -2
- package/src/astro/routes/api/auth/invite/complete.ts +4 -4
- package/src/astro/routes/api/auth/magic-link/verify.ts +4 -1
- package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +9 -4
- package/src/astro/routes/api/auth/passkey/verify.ts +4 -4
- package/src/astro/routes/api/auth/signup/complete.ts +4 -4
- package/src/astro/routes/api/import/wordpress/execute.ts +252 -6
- package/src/astro/routes/api/import/wordpress/prepare.ts +1 -2
- package/src/astro/routes/api/oauth/register.ts +22 -2
- package/src/astro/routes/api/revisions/[revisionId]/restore.ts +17 -1
- package/src/astro/routes/api/setup/admin-verify.ts +6 -5
- package/src/astro/routes/api/typegen.ts +4 -46
- package/src/astro/session-user.ts +14 -0
- package/src/astro/types.ts +6 -0
- package/src/bylines/credits.ts +149 -0
- package/src/bylines/index.ts +4 -142
- package/src/cli/commands/seed.ts +2 -0
- package/src/cli/credentials.ts +1 -60
- package/src/cli/index.ts +0 -2
- package/src/client/index.ts +8 -2
- package/src/components/Image.astro +24 -13
- package/src/components/InlinePortableTextEditor.tsx +25 -8
- package/src/content/converters/portable-text-to-prosemirror.ts +23 -17
- package/src/content/converters/prosemirror-to-portable-text.ts +16 -5
- package/src/content/converters/types.ts +1 -0
- package/src/database/content-datetime.ts +111 -23
- package/src/database/migrations/036_i18n_menus_and_taxonomies.ts +132 -92
- package/src/database/migrations/088_cron_oneshot_utc.ts +39 -0
- package/src/database/migrations/089_auto_seed_completion.ts +13 -0
- package/src/database/migrations/runner.ts +4 -0
- package/src/database/repositories/comment.ts +2 -2
- package/src/database/repositories/content.ts +15 -8
- package/src/database/repositories/plugin-storage.ts +1 -1
- package/src/database/repositories/redirect.ts +7 -2
- package/src/database/repositories/relation.ts +2 -2
- package/src/database/types.ts +1 -1
- package/src/db/node-sqlite-compat.ts +63 -37
- package/src/emdash-runtime.ts +63 -35
- package/src/import/wxr-taxonomies.ts +163 -88
- package/src/index.ts +10 -0
- package/src/loader.ts +8 -1
- package/src/mcp/server.ts +90 -8
- package/src/media/usage/activation.ts +18 -9
- package/src/migrations/config-loader.ts +5 -0
- package/src/object-cache/index.ts +19 -7
- package/src/object-cache/types.ts +3 -2
- package/src/plugin-types.ts +7 -0
- package/src/plugins/adapt-sandbox-entry.ts +47 -12
- package/src/plugins/byline-access.ts +158 -0
- package/src/plugins/context.ts +7 -1
- package/src/plugins/cron.ts +27 -4
- package/src/plugins/hooks.ts +47 -0
- package/src/plugins/host.ts +1 -0
- package/src/plugins/index.ts +10 -1
- package/src/plugins/manifest-schema.ts +5 -1
- package/src/plugins/marketplace.ts +48 -36
- package/src/plugins/sandbox/proxy.ts +1 -0
- package/src/plugins/types.ts +95 -0
- package/src/query.ts +9 -2
- package/src/redirects/cache.ts +11 -1
- package/src/redirects/destination.ts +20 -0
- package/src/redirects/loops.ts +10 -6
- package/src/redirects/patterns.ts +12 -30
- package/src/references/staged.ts +40 -0
- package/src/registry/testing.ts +59 -14
- package/src/request-context.ts +8 -0
- package/src/schema/block-type-registry.ts +1 -1
- package/src/schema/env-types.ts +37 -0
- package/src/schema/project-env-types.ts +41 -0
- package/src/schema/registry.ts +33 -2
- package/src/schema/types.ts +5 -0
- package/src/schema/url-pattern.ts +10 -0
- package/src/schema/zod-generator.ts +11 -1
- package/src/seed/apply.ts +34 -1
- package/src/seed/ownership.ts +15 -0
- package/src/seed/validate.ts +45 -2
- package/src/transfer/analyze/validate.ts +113 -1
- package/src/transfer/analyze/values.ts +104 -1
- package/src/transfer/analyze/write-rules.ts +8 -0
- package/src/utils/url.ts +58 -3
- package/src/virtual-modules.d.ts +3 -0
- package/dist/action-token-CbKDcPJi.mjs +0 -26
- package/dist/action-token-CbKDcPJi.mjs.map +0 -1
- package/dist/activation-PtniBLt9.mjs +0 -382
- package/dist/activation-PtniBLt9.mjs.map +0 -1
- package/dist/adapters-C_Tf5x90.d.mts +0 -171
- package/dist/adapters-C_Tf5x90.d.mts.map +0 -1
- package/dist/allowed-origins-U1z4TdEZ.mjs +0 -116
- package/dist/allowed-origins-U1z4TdEZ.mjs.map +0 -1
- package/dist/api-CXwQkV_m.mjs +0 -5122
- package/dist/api-CXwQkV_m.mjs.map +0 -1
- package/dist/api-tokens-89WlohEN.mjs +0 -166
- package/dist/api-tokens-89WlohEN.mjs.map +0 -1
- package/dist/apply-Do3KNnUk.mjs +0 -1659
- package/dist/apply-Do3KNnUk.mjs.map +0 -1
- package/dist/approvals-CAX9Yw33.mjs +0 -460
- package/dist/approvals-CAX9Yw33.mjs.map +0 -1
- package/dist/artifact-fetch-B9W4CEST.mjs +0 -659
- package/dist/artifact-fetch-B9W4CEST.mjs.map +0 -1
- package/dist/audit-CrgmE9LE.mjs +0 -127
- package/dist/audit-CrgmE9LE.mjs.map +0 -1
- package/dist/authoritative-records-C2YzIdbu.mjs +0 -5172
- package/dist/authoritative-records-C2YzIdbu.mjs.map +0 -1
- package/dist/authorize-WgdKF8QY.mjs +0 -49
- package/dist/authorize-WgdKF8QY.mjs.map +0 -1
- package/dist/backup-Ck8_lMO3.mjs +0 -246
- package/dist/backup-Ck8_lMO3.mjs.map +0 -1
- package/dist/block-types-BQ90asVI.mjs +0 -132
- package/dist/block-types-BQ90asVI.mjs.map +0 -1
- package/dist/block-values-ACFqgB1D.mjs +0 -175
- package/dist/block-values-ACFqgB1D.mjs.map +0 -1
- package/dist/bundle-Db1iNMv_.mjs +0 -667
- package/dist/bundle-Db1iNMv_.mjs.map +0 -1
- package/dist/byline-BayaYGoj.mjs +0 -909
- package/dist/byline-BayaYGoj.mjs.map +0 -1
- package/dist/byline-fields-B8HH-35f.mjs +0 -254
- package/dist/byline-fields-B8HH-35f.mjs.map +0 -1
- package/dist/byline-fields-hMPjf6Eu.mjs +0 -123
- package/dist/byline-fields-hMPjf6Eu.mjs.map +0 -1
- package/dist/byline-registry-B_EK_TQf.mjs +0 -406
- package/dist/byline-registry-B_EK_TQf.mjs.map +0 -1
- package/dist/bylines-DFAaFXWi.mjs +0 -214
- package/dist/bylines-DFAaFXWi.mjs.map +0 -1
- package/dist/bylines-DkIxUxmr.mjs +0 -232
- package/dist/bylines-DkIxUxmr.mjs.map +0 -1
- package/dist/cache-DkvhQ8XE.mjs +0 -108
- package/dist/cache-DkvhQ8XE.mjs.map +0 -1
- package/dist/canonical-CcSuuTlH.mjs +0 -174
- package/dist/canonical-CcSuuTlH.mjs.map +0 -1
- package/dist/capture-triggers-DJEoOTOq.mjs +0 -362
- package/dist/capture-triggers-DJEoOTOq.mjs.map +0 -1
- package/dist/challenge-store-CvBl81AQ.mjs +0 -51
- package/dist/challenge-store-CvBl81AQ.mjs.map +0 -1
- package/dist/checksum-CClweQzI.mjs +0 -162
- package/dist/checksum-CClweQzI.mjs.map +0 -1
- package/dist/chrome-tags-D5caJwwp.mjs +0 -24
- package/dist/chrome-tags-D5caJwwp.mjs.map +0 -1
- package/dist/chunks-DwBaj8aT.mjs +0 -25
- package/dist/chunks-DwBaj8aT.mjs.map +0 -1
- package/dist/collection-deletion-CLCdXsnV.mjs +0 -436
- package/dist/collection-deletion-CLCdXsnV.mjs.map +0 -1
- package/dist/collection-deletion-processor-hNw8x01F.mjs +0 -217
- package/dist/collection-deletion-processor-hNw8x01F.mjs.map +0 -1
- package/dist/collection-slugs-cache-CUuiduLq.mjs +0 -85
- package/dist/collection-slugs-cache-CUuiduLq.mjs.map +0 -1
- package/dist/comment-D2uvL63j.mjs +0 -313
- package/dist/comment-D2uvL63j.mjs.map +0 -1
- package/dist/comment-reaction-DevUuzg4.mjs +0 -85
- package/dist/comment-reaction-DevUuzg4.mjs.map +0 -1
- package/dist/comments-Cq0s7_hO.mjs +0 -195
- package/dist/comments-Cq0s7_hO.mjs.map +0 -1
- package/dist/comments-M4EDYAHw.mjs +0 -99
- package/dist/comments-M4EDYAHw.mjs.map +0 -1
- package/dist/components-CuIGwXMs.mjs +0 -108
- package/dist/components-CuIGwXMs.mjs.map +0 -1
- package/dist/config-52Ea5IWt.d.mts +0 -39
- package/dist/config-52Ea5IWt.d.mts.map +0 -1
- package/dist/config-CCz3xOLc.mjs +0 -242
- package/dist/config-CCz3xOLc.mjs.map +0 -1
- package/dist/config-D3d5Qudq.d.mts +0 -6669
- package/dist/config-D3d5Qudq.d.mts.map +0 -1
- package/dist/content-CbnufDsM.mjs +0 -2018
- package/dist/content-CbnufDsM.mjs.map +0 -1
- package/dist/content-list-query-D_7B1FE5.d.mts +0 -26
- package/dist/content-list-query-D_7B1FE5.d.mts.map +0 -1
- package/dist/content-policy-CYu6K1KB.mjs +0 -46
- package/dist/content-policy-CYu6K1KB.mjs.map +0 -1
- package/dist/content-repair-DlDUgFGp.mjs +0 -442
- package/dist/content-repair-DlDUgFGp.mjs.map +0 -1
- package/dist/context-CGQLA1-a.mjs +0 -1922
- package/dist/context-CGQLA1-a.mjs.map +0 -1
- package/dist/cron-c4D5C5Fx.mjs +0 -284
- package/dist/cron-c4D5C5Fx.mjs.map +0 -1
- package/dist/dashboard-CBq9kmOn.mjs +0 -151
- package/dist/dashboard-CBq9kmOn.mjs.map +0 -1
- package/dist/default-DPsys51U.mjs +0 -81
- package/dist/default-DPsys51U.mjs.map +0 -1
- package/dist/deferred-tasks-CZ7rzBdo.d.mts +0 -9
- package/dist/deferred-tasks-CZ7rzBdo.d.mts.map +0 -1
- package/dist/dev-typegen-HRxwLRcT.mjs +0 -29
- package/dist/dev-typegen-HRxwLRcT.mjs.map +0 -1
- package/dist/device-flow-OcSqE9uY.mjs +0 -521
- package/dist/device-flow-OcSqE9uY.mjs.map +0 -1
- package/dist/digest-DVZ--cE9.mjs +0 -194
- package/dist/digest-DVZ--cE9.mjs.map +0 -1
- package/dist/direct-executor-DyjAqkpT.mjs +0 -104
- package/dist/direct-executor-DyjAqkpT.mjs.map +0 -1
- package/dist/dist-FPR93_xf.mjs +0 -810
- package/dist/dist-FPR93_xf.mjs.map +0 -1
- package/dist/email-console-DyQIgEnz.mjs +0 -50
- package/dist/email-console-DyQIgEnz.mjs.map +0 -1
- package/dist/email-locale-BYb16rVd.mjs +0 -25
- package/dist/email-locale-BYb16rVd.mjs.map +0 -1
- package/dist/emdash-runtime-CrzxJFmF.mjs +0 -4214
- package/dist/emdash-runtime-CrzxJFmF.mjs.map +0 -1
- package/dist/enrich-DBtCncE2.mjs +0 -194
- package/dist/enrich-DBtCncE2.mjs.map +0 -1
- package/dist/entry-lock-BN5y4YbO.d.mts +0 -4481
- package/dist/entry-lock-BN5y4YbO.d.mts.map +0 -1
- package/dist/entry-lock-BaRBHCsH.mjs +0 -1173
- package/dist/entry-lock-BaRBHCsH.mjs.map +0 -1
- package/dist/entry-lock-C6NcnZPV.mjs +0 -163
- package/dist/entry-lock-C6NcnZPV.mjs.map +0 -1
- package/dist/entry-locks-BTyQLdbC.mjs +0 -167
- package/dist/entry-locks-BTyQLdbC.mjs.map +0 -1
- package/dist/error-BfsNNrIE.mjs +0 -90
- package/dist/error-BfsNNrIE.mjs.map +0 -1
- package/dist/errors-BN1QAnEY.mjs +0 -460
- package/dist/errors-BN1QAnEY.mjs.map +0 -1
- package/dist/errors-Bt3goF8I.mjs +0 -120
- package/dist/errors-Bt3goF8I.mjs.map +0 -1
- package/dist/escape-BveidMa2.mjs +0 -9
- package/dist/escape-BveidMa2.mjs.map +0 -1
- package/dist/fence-Bb_IbCxI.mjs +0 -162
- package/dist/fence-Bb_IbCxI.mjs.map +0 -1
- package/dist/field-defs-cache-CsZctvbu.mjs +0 -77
- package/dist/field-defs-cache-CsZctvbu.mjs.map +0 -1
- package/dist/field-map-6m9rF49t.mjs +0 -83
- package/dist/field-map-6m9rF49t.mjs.map +0 -1
- package/dist/focal-point-CZ3d1wK5.mjs +0 -23
- package/dist/focal-point-CZ3d1wK5.mjs.map +0 -1
- package/dist/fts-manager-CCaZTp8y.mjs +0 -443
- package/dist/fts-manager-CCaZTp8y.mjs.map +0 -1
- package/dist/gc-xowRjczI.mjs +0 -75
- package/dist/gc-xowRjczI.mjs.map +0 -1
- package/dist/hash-COVK27Pc.mjs +0 -37
- package/dist/hash-COVK27Pc.mjs.map +0 -1
- package/dist/hook-result-CYSk0XFe.d.mts +0 -31
- package/dist/hook-result-CYSk0XFe.d.mts.map +0 -1
- package/dist/hreflang-CChPV7jx.mjs +0 -105
- package/dist/hreflang-CChPV7jx.mjs.map +0 -1
- package/dist/hreflang-DRslq3QI.d.mts +0 -50
- package/dist/hreflang-DRslq3QI.d.mts.map +0 -1
- package/dist/http-route-dispatch-CAdp2onn.mjs +0 -339
- package/dist/http-route-dispatch-CAdp2onn.mjs.map +0 -1
- package/dist/identity-NVTOOQyq.mjs +0 -35
- package/dist/identity-NVTOOQyq.mjs.map +0 -1
- package/dist/import-wpSO2N0x.mjs +0 -2020
- package/dist/import-wpSO2N0x.mjs.map +0 -1
- package/dist/index-CDs2wq4X.d.mts +0 -623
- package/dist/index-CDs2wq4X.d.mts.map +0 -1
- package/dist/install-finalization-D9R9R-W8.mjs +0 -58
- package/dist/install-finalization-D9R9R-W8.mjs.map +0 -1
- package/dist/keys-Bck6LBfF.mjs +0 -61
- package/dist/keys-Bck6LBfF.mjs.map +0 -1
- package/dist/kinds-CYmRESWj.mjs +0 -974
- package/dist/kinds-CYmRESWj.mjs.map +0 -1
- package/dist/lifecycle-C815ZQfV.mjs +0 -25
- package/dist/lifecycle-C815ZQfV.mjs.map +0 -1
- package/dist/load-D99axixL.mjs +0 -28
- package/dist/load-D99axixL.mjs.map +0 -1
- package/dist/loader-CrRPfkHS.mjs +0 -1197
- package/dist/loader-CrRPfkHS.mjs.map +0 -1
- package/dist/loops-DMKlygqX.mjs +0 -203
- package/dist/loops-DMKlygqX.mjs.map +0 -1
- package/dist/manifest-builder-BQzCHNgB.mjs +0 -189
- package/dist/manifest-builder-BQzCHNgB.mjs.map +0 -1
- package/dist/manifest-schema-Ci2gmd0u.mjs +0 -492
- package/dist/manifest-schema-Ci2gmd0u.mjs.map +0 -1
- package/dist/media-BUQePMxP.mjs +0 -373
- package/dist/media-BUQePMxP.mjs.map +0 -1
- package/dist/media-DH8ibNlY.mjs +0 -294
- package/dist/media-DH8ibNlY.mjs.map +0 -1
- package/dist/media-OEIQ3bVc.mjs +0 -408
- package/dist/media-OEIQ3bVc.mjs.map +0 -1
- package/dist/media-allowlist-pYtaBA95.mjs +0 -44
- package/dist/media-allowlist-pYtaBA95.mjs.map +0 -1
- package/dist/media-folders-Bf8_s4de.mjs +0 -210
- package/dist/media-folders-Bf8_s4de.mjs.map +0 -1
- package/dist/media-url-C6klEuNd.mjs +0 -43
- package/dist/media-url-C6klEuNd.mjs.map +0 -1
- package/dist/media-usage-D7Y64m6v.mjs +0 -1629
- package/dist/media-usage-D7Y64m6v.mjs.map +0 -1
- package/dist/media-usage-activation-DrqbmgLA.mjs +0 -78
- package/dist/media-usage-activation-DrqbmgLA.mjs.map +0 -1
- package/dist/media-usage-work-DommYhYA.mjs +0 -152
- package/dist/media-usage-work-DommYhYA.mjs.map +0 -1
- package/dist/media-usage-work-HU63hNDu.mjs +0 -586
- package/dist/media-usage-work-HU63hNDu.mjs.map +0 -1
- package/dist/menus-BQfusWEC.mjs +0 -3608
- package/dist/menus-BQfusWEC.mjs.map +0 -1
- package/dist/menus-BtwjQt5s.mjs +0 -753
- package/dist/menus-BtwjQt5s.mjs.map +0 -1
- package/dist/menus-p_M1V7J_.mjs +0 -139
- package/dist/menus-p_M1V7J_.mjs.map +0 -1
- package/dist/mime-C94qBG-P.mjs +0 -36
- package/dist/mime-C94qBG-P.mjs.map +0 -1
- package/dist/mode-DpYW3w6U.mjs +0 -23
- package/dist/mode-DpYW3w6U.mjs.map +0 -1
- package/dist/node-sqlite-compat-pWFw0lcc.mjs +0 -46
- package/dist/node-sqlite-compat-pWFw0lcc.mjs.map +0 -1
- package/dist/normalize-DduyxBjf.mjs +0 -191
- package/dist/normalize-DduyxBjf.mjs.map +0 -1
- package/dist/oauth-authorization-DAXsH1H9.mjs +0 -274
- package/dist/oauth-authorization-DAXsH1H9.mjs.map +0 -1
- package/dist/oauth-clients-DENiDQri.mjs +0 -266
- package/dist/oauth-clients-DENiDQri.mjs.map +0 -1
- package/dist/oauth-state-store-y8mEYVq9.mjs +0 -50
- package/dist/oauth-state-store-y8mEYVq9.mjs.map +0 -1
- package/dist/oauth-user-lookup-CtTYAy-O.mjs +0 -26
- package/dist/oauth-user-lookup-CtTYAy-O.mjs.map +0 -1
- package/dist/object-cache-CqWNY5uP.mjs +0 -582
- package/dist/object-cache-CqWNY5uP.mjs.map +0 -1
- package/dist/options-BYa1FgIM.d.mts +0 -81
- package/dist/options-BYa1FgIM.d.mts.map +0 -1
- package/dist/parse-CORGGhHf.mjs +0 -81
- package/dist/parse-CORGGhHf.mjs.map +0 -1
- package/dist/parse-avNM1xWV.d.mts +0 -168
- package/dist/parse-avNM1xWV.d.mts.map +0 -1
- package/dist/passkey-config-Dih5YeIS.mjs +0 -46
- package/dist/passkey-config-Dih5YeIS.mjs.map +0 -1
- package/dist/paths-d51RFm8M.mjs +0 -77
- package/dist/paths-d51RFm8M.mjs.map +0 -1
- package/dist/patterns-CoqlXUvk.mjs +0 -145
- package/dist/patterns-CoqlXUvk.mjs.map +0 -1
- package/dist/placeholder-D2aksPMF.d.mts +0 -306
- package/dist/placeholder-D2aksPMF.d.mts.map +0 -1
- package/dist/plan-DqeZKuaR.mjs +0 -135
- package/dist/plan-DqeZKuaR.mjs.map +0 -1
- package/dist/plugins-Bb7oqjQA.mjs +0 -277
- package/dist/plugins-Bb7oqjQA.mjs.map +0 -1
- package/dist/policy-BcEqut3n.mjs +0 -45
- package/dist/policy-BcEqut3n.mjs.map +0 -1
- package/dist/portable-text-DXE8ymtD.mjs +0 -307
- package/dist/portable-text-DXE8ymtD.mjs.map +0 -1
- package/dist/preview-DEDWbwA_.mjs +0 -107
- package/dist/preview-DEDWbwA_.mjs.map +0 -1
- package/dist/protocol-BJbTzvwl.d.mts +0 -61
- package/dist/protocol-BJbTzvwl.d.mts.map +0 -1
- package/dist/public-submission-D9c9S14m.mjs +0 -250
- package/dist/public-submission-D9c9S14m.mjs.map +0 -1
- package/dist/public-url-CIRe-2T6.mjs +0 -101
- package/dist/public-url-CIRe-2T6.mjs.map +0 -1
- package/dist/query-BzifXlPS.mjs +0 -1156
- package/dist/query-BzifXlPS.mjs.map +0 -1
- package/dist/query-OzMJ6vJP.mjs +0 -41
- package/dist/query-OzMJ6vJP.mjs.map +0 -1
- package/dist/rate-limit-Csp60Vik.mjs +0 -120
- package/dist/rate-limit-Csp60Vik.mjs.map +0 -1
- package/dist/receipt-B-aU4hpJ.mjs +0 -43
- package/dist/receipt-B-aU4hpJ.mjs.map +0 -1
- package/dist/redirect-CDSw1sU3.mjs +0 -17
- package/dist/redirect-CDSw1sU3.mjs.map +0 -1
- package/dist/redirect-D1ArbO85.mjs +0 -411
- package/dist/redirect-D1ArbO85.mjs.map +0 -1
- package/dist/redirects-BjTwDTsV.mjs +0 -148
- package/dist/redirects-BjTwDTsV.mjs.map +0 -1
- package/dist/redirects-Ck50kH3n.mjs +0 -446
- package/dist/redirects-Ck50kH3n.mjs.map +0 -1
- package/dist/registry-CFcNCayZ.mjs +0 -6754
- package/dist/registry-CFcNCayZ.mjs.map +0 -1
- package/dist/relations-Cfaa1fDl.mjs +0 -776
- package/dist/relations-Cfaa1fDl.mjs.map +0 -1
- package/dist/request-cache-iHRlHx1d.mjs +0 -104
- package/dist/request-cache-iHRlHx1d.mjs.map +0 -1
- package/dist/request-meta-D47mqyev.mjs +0 -141
- package/dist/request-meta-D47mqyev.mjs.map +0 -1
- package/dist/resolve-BPE8sMvx.mjs +0 -99
- package/dist/resolve-BPE8sMvx.mjs.map +0 -1
- package/dist/resolve-C0s1E_fH.mjs +0 -199
- package/dist/resolve-C0s1E_fH.mjs.map +0 -1
- package/dist/revision-j1p4-bOj.mjs +0 -302
- package/dist/revision-j1p4-bOj.mjs.map +0 -1
- package/dist/route-wire-C9PJV9aL.mjs +0 -197
- package/dist/route-wire-C9PJV9aL.mjs.map +0 -1
- package/dist/routes-lyYw0mMf.mjs +0 -272
- package/dist/routes-lyYw0mMf.mjs.map +0 -1
- package/dist/runner-B3eyB9Gb.mjs +0 -6121
- package/dist/runner-B3eyB9Gb.mjs.map +0 -1
- package/dist/runner-DoYH2Jcu.d.mts +0 -68
- package/dist/runner-DoYH2Jcu.d.mts.map +0 -1
- package/dist/schema-BAayK46S.mjs +0 -13
- package/dist/schema-BAayK46S.mjs.map +0 -1
- package/dist/schema-Gqcl-8G4.mjs +0 -815
- package/dist/schema-Gqcl-8G4.mjs.map +0 -1
- package/dist/scopes-BqPOKoKf.mjs +0 -34
- package/dist/scopes-BqPOKoKf.mjs.map +0 -1
- package/dist/search-YJKPIEV6.mjs +0 -448
- package/dist/search-YJKPIEV6.mjs.map +0 -1
- package/dist/sections-BR_e-wK5.mjs +0 -346
- package/dist/sections-BR_e-wK5.mjs.map +0 -1
- package/dist/seo-Dsj8hy3j.mjs +0 -114
- package/dist/seo-Dsj8hy3j.mjs.map +0 -1
- package/dist/seo-XvH4LNNp.mjs +0 -133
- package/dist/seo-XvH4LNNp.mjs.map +0 -1
- package/dist/service-BsVG05gS.mjs +0 -150
- package/dist/service-BsVG05gS.mjs.map +0 -1
- package/dist/session-user-DgKbYrlj.mjs +0 -51
- package/dist/session-user-DgKbYrlj.mjs.map +0 -1
- package/dist/settings-CNPUntkh.mjs +0 -51
- package/dist/settings-CNPUntkh.mjs.map +0 -1
- package/dist/settings-D5EHi0Tk.mjs +0 -439
- package/dist/settings-D5EHi0Tk.mjs.map +0 -1
- package/dist/settings-DSfE7wOa.mjs +0 -61
- package/dist/settings-DSfE7wOa.mjs.map +0 -1
- package/dist/setup-complete-B8W8sJ9v.mjs +0 -26
- package/dist/setup-complete-B8W8sJ9v.mjs.map +0 -1
- package/dist/setup-nonce-DnSBP260.mjs +0 -25
- package/dist/setup-nonce-DnSBP260.mjs.map +0 -1
- package/dist/site-settings-NGzdrt7O.mjs +0 -50
- package/dist/site-settings-NGzdrt7O.mjs.map +0 -1
- package/dist/site-url-D6JB7tLW.mjs +0 -16
- package/dist/site-url-D6JB7tLW.mjs.map +0 -1
- package/dist/snapshot-CdcwwWAf.mjs +0 -414
- package/dist/snapshot-CdcwwWAf.mjs.map +0 -1
- package/dist/ssrf-Dv0_tRpo.mjs +0 -406
- package/dist/ssrf-Dv0_tRpo.mjs.map +0 -1
- package/dist/stage-CUjhED3P.mjs +0 -662
- package/dist/stage-CUjhED3P.mjs.map +0 -1
- package/dist/staged-C36IWXff.mjs +0 -659
- package/dist/staged-C36IWXff.mjs.map +0 -1
- package/dist/state-CKouMCSY.mjs +0 -153
- package/dist/state-CKouMCSY.mjs.map +0 -1
- package/dist/status-lzyj4Uu7.mjs +0 -30
- package/dist/status-lzyj4Uu7.mjs.map +0 -1
- package/dist/storage-query-B-cWcTjJ.d.mts +0 -1594
- package/dist/storage-query-B-cWcTjJ.d.mts.map +0 -1
- package/dist/tar-DsTXX6ch.mjs +0 -449
- package/dist/tar-DsTXX6ch.mjs.map +0 -1
- package/dist/target-DLQCwp_Z.mjs +0 -27
- package/dist/target-DLQCwp_Z.mjs.map +0 -1
- package/dist/taxonomies-BlAjr4BL.mjs +0 -697
- package/dist/taxonomies-BlAjr4BL.mjs.map +0 -1
- package/dist/taxonomies-Byyo7LOZ.mjs +0 -939
- package/dist/taxonomies-Byyo7LOZ.mjs.map +0 -1
- package/dist/taxonomy-CKDwM61Y.mjs +0 -525
- package/dist/taxonomy-CKDwM61Y.mjs.map +0 -1
- package/dist/tokens-BojXlk49.mjs +0 -171
- package/dist/tokens-BojXlk49.mjs.map +0 -1
- package/dist/transaction-DLPQWik1.mjs +0 -29
- package/dist/transaction-DLPQWik1.mjs.map +0 -1
- package/dist/transfer-XSTh2BCr.mjs +0 -8706
- package/dist/transfer-XSTh2BCr.mjs.map +0 -1
- package/dist/transfer-download-DkoCDA9d.mjs +0 -33
- package/dist/transfer-download-DkoCDA9d.mjs.map +0 -1
- package/dist/transfer-iQ26J-RT.mjs +0 -166
- package/dist/transfer-iQ26J-RT.mjs.map +0 -1
- package/dist/transformations-C7RQabKQ.mjs +0 -196
- package/dist/transformations-C7RQabKQ.mjs.map +0 -1
- package/dist/transport-D3RulfD6.mjs +0 -136
- package/dist/transport-D3RulfD6.mjs.map +0 -1
- package/dist/transport-DhlZlf4D.d.mts +0 -42
- package/dist/transport-DhlZlf4D.d.mts.map +0 -1
- package/dist/trusted-proxy-B6ECOZJc.mjs +0 -51
- package/dist/trusted-proxy-B6ECOZJc.mjs.map +0 -1
- package/dist/turnstile-lqUiY7lP.mjs +0 -53
- package/dist/turnstile-lqUiY7lP.mjs.map +0 -1
- package/dist/types-4Dn9bZhu.mjs +0 -77
- package/dist/types-4Dn9bZhu.mjs.map +0 -1
- package/dist/types-5LSo7PPx.d.mts +0 -85
- package/dist/types-5LSo7PPx.d.mts.map +0 -1
- package/dist/types-BQ3hwYJT.d.mts +0 -896
- package/dist/types-BQ3hwYJT.d.mts.map +0 -1
- package/dist/types-BYEk7qo3.d.mts +0 -198
- package/dist/types-BYEk7qo3.d.mts.map +0 -1
- package/dist/types-CJKsWVFR.mjs +0 -199
- package/dist/types-CJKsWVFR.mjs.map +0 -1
- package/dist/types-Ca_w8mmY.d.mts +0 -363
- package/dist/types-Ca_w8mmY.d.mts.map +0 -1
- package/dist/types-CkE41ZAG.mjs +0 -18
- package/dist/types-CkE41ZAG.mjs.map +0 -1
- package/dist/types-D0aJW2uR.d.mts +0 -1641
- package/dist/types-D0aJW2uR.d.mts.map +0 -1
- package/dist/types-DbpN4Qto.d.mts +0 -372
- package/dist/types-DbpN4Qto.d.mts.map +0 -1
- package/dist/types-ILDI1sdY.mjs +0 -16
- package/dist/types-ILDI1sdY.mjs.map +0 -1
- package/dist/types-OC5c-edM.mjs +0 -22
- package/dist/types-OC5c-edM.mjs.map +0 -1
- package/dist/types-aOOxRSx6.mjs +0 -103
- package/dist/types-aOOxRSx6.mjs.map +0 -1
- package/dist/types-m1WbUffD.d.mts +0 -198
- package/dist/types-m1WbUffD.d.mts.map +0 -1
- package/dist/types-uxLoPBio.d.mts +0 -124
- package/dist/types-uxLoPBio.d.mts.map +0 -1
- package/dist/types-we5uR-tV.d.mts +0 -287
- package/dist/types-we5uR-tV.d.mts.map +0 -1
- package/dist/upload-attempts-DduMy6B0.mjs +0 -32
- package/dist/upload-attempts-DduMy6B0.mjs.map +0 -1
- package/dist/url-pattern-B3EwxAAk.mjs +0 -33
- package/dist/url-pattern-B3EwxAAk.mjs.map +0 -1
- package/dist/user-ElwQjTQT.mjs +0 -171
- package/dist/user-ElwQjTQT.mjs.map +0 -1
- package/dist/utils-BlAXmfOG.mjs +0 -439
- package/dist/utils-BlAXmfOG.mjs.map +0 -1
- package/dist/validate-CH0X5b2c.d.mts +0 -468
- package/dist/validate-CH0X5b2c.d.mts.map +0 -1
- package/dist/validate-CfgRpcjA.mjs +0 -492
- package/dist/validate-CfgRpcjA.mjs.map +0 -1
- package/dist/validation-DvYJtv4k.mjs +0 -218
- package/dist/validation-DvYJtv4k.mjs.map +0 -1
- package/dist/version-DgYjhTud.mjs +0 -9
- package/dist/version-DgYjhTud.mjs.map +0 -1
- package/dist/version-Dq71scUb.mjs +0 -7
- package/dist/version-Dq71scUb.mjs.map +0 -1
- package/dist/widgets-ChFIj0be.mjs +0 -126
- package/dist/widgets-ChFIj0be.mjs.map +0 -1
- package/dist/wxr-taxonomies-CBZMp2YX.mjs +0 -372
- package/dist/wxr-taxonomies-CBZMp2YX.mjs.map +0 -1
- package/dist/wxr-taxonomies-DlKDpWN1.d.mts +0 -34
- package/dist/wxr-taxonomies-DlKDpWN1.d.mts.map +0 -1
- package/dist/zod-generator-DmTKI-Ig.mjs +0 -426
- package/dist/zod-generator-DmTKI-Ig.mjs.map +0 -1
- package/src/cli/commands/bundle-utils.ts +0 -408
- package/src/cli/commands/bundle.ts +0 -659
- package/src/cli/commands/plugin-init.ts +0 -417
- package/src/cli/commands/plugin-validate.ts +0 -31
- package/src/cli/commands/plugin.ts +0 -33
- package/src/cli/commands/publish.ts +0 -721
- /package/dist/{api-tokens-FaG1zPsj.mjs → api-tokens-BLz2MtQs.mjs} +0 -0
- /package/dist/{ssrf-DZOt8Qof.mjs → ssrf-tA45vIPX.mjs} +0 -0
|
@@ -1,58 +1,61 @@
|
|
|
1
1
|
import "../../../dialect-helpers-7_IqPdh9.mjs";
|
|
2
2
|
import { r as getI18nConfig } from "../../../config-CvmjJcVw.mjs";
|
|
3
|
-
import "../../../after-PcEvMY_6.mjs";
|
|
3
|
+
import { t as after } from "../../../after-PcEvMY_6.mjs";
|
|
4
4
|
import "../../../options-DhrI7eMv.mjs";
|
|
5
5
|
import { i as encodeBase64, t as decodeBase64 } from "../../../base64-DvnNgP7e.mjs";
|
|
6
6
|
import "../../../secrets-CIi0nFiR.mjs";
|
|
7
|
-
import "../../../object-cache-
|
|
8
|
-
import
|
|
9
|
-
import "../../../
|
|
10
|
-
import "../../../
|
|
11
|
-
import "../../../
|
|
12
|
-
import "../../../
|
|
13
|
-
import "../../../
|
|
14
|
-
import "../../../
|
|
15
|
-
import "../../../
|
|
16
|
-
import
|
|
17
|
-
import "../../../
|
|
18
|
-
import "../../../
|
|
19
|
-
import "../../../
|
|
20
|
-
import "../../../
|
|
21
|
-
import "../../../
|
|
22
|
-
import "../../../
|
|
23
|
-
import "../../../
|
|
24
|
-
import "../../../
|
|
25
|
-
import
|
|
26
|
-
import "../../../
|
|
27
|
-
import {
|
|
28
|
-
import "../../../
|
|
29
|
-
import "../../../
|
|
30
|
-
import "../../../
|
|
31
|
-
import "../../../
|
|
32
|
-
import "../../../settings-
|
|
33
|
-
import
|
|
34
|
-
import "../../../
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import "../../../
|
|
38
|
-
import "../../../
|
|
39
|
-
import "../../../
|
|
40
|
-
import "../../../
|
|
7
|
+
import "../../../object-cache-Bo6DGaC9.mjs";
|
|
8
|
+
import "../../../request-cache-C4CIo5ad.mjs";
|
|
9
|
+
import "../../../url-Dn3IStq8.mjs";
|
|
10
|
+
import { i as InvalidCursorError, s as decodeCursor } from "../../../types-j6MBDjlZ.mjs";
|
|
11
|
+
import "../../../media-CputjGE1.mjs";
|
|
12
|
+
import "../../../audit-BszbE_BP.mjs";
|
|
13
|
+
import "../../../byline-registry-dvt4N3xV.mjs";
|
|
14
|
+
import "../../../field-defs-cache-DEkFYCDE.mjs";
|
|
15
|
+
import "../../../byline-02tu_Uc-.mjs";
|
|
16
|
+
import "../../../entry-locks-DJAqVweV.mjs";
|
|
17
|
+
import "../../../fts-manager-DU03MxWu.mjs";
|
|
18
|
+
import { n as siteSettingsTag, r as taxonomyTag, t as menuTag } from "../../../chrome-tags-CKELm-bo.mjs";
|
|
19
|
+
import "../../../loader-B_bcoE1h.mjs";
|
|
20
|
+
import "../../../collection-slugs-cache-BNRAPNiu.mjs";
|
|
21
|
+
import "../../../capture-triggers-CdZfvHtF.mjs";
|
|
22
|
+
import "../../../activation-DDuqAat2.mjs";
|
|
23
|
+
import "../../../collection-deletion-JecE26cS.mjs";
|
|
24
|
+
import "../../../registry-CtHRqVe-.mjs";
|
|
25
|
+
import "../../../hash-CY4QdeMJ.mjs";
|
|
26
|
+
import "../../../zod-generator-DnfG5sGQ.mjs";
|
|
27
|
+
import { r as isTransferError, t as TransferError } from "../../../errors-CjXd1LgH.mjs";
|
|
28
|
+
import "../../../canonical-CAecl1UQ.mjs";
|
|
29
|
+
import { f as toSha256Digest } from "../../../digest-DiYAoZpf.mjs";
|
|
30
|
+
import "../../../errors-CNvATh_7.mjs";
|
|
31
|
+
import "../../../collection-deletion-processor-DgCfF3a1.mjs";
|
|
32
|
+
import "../../../settings-B0zQj_Tj.mjs";
|
|
33
|
+
import "../../../site-settings-AYFvhwQn.mjs";
|
|
34
|
+
import "../../../settings-BbVRRGDp.mjs";
|
|
35
|
+
import { t as apiError } from "../../../error-CEdm_AWU.mjs";
|
|
36
|
+
import "../../../redirects-D4EWeXAo.mjs";
|
|
37
|
+
import { Ct as updateCollectionBody, I as createTaxonomyDefBody, St as updateBlockTypeBody, Z as updateTaxonomyDefBody, dt as createBlockTypeBody, fn as bylineUpdateBody, ft as createCollectionBody, mn as contentBylineInputSchema, on as bylineCreateBody, wt as updateFieldBody, zt as contentSeoInput } from "../../../entry-lock-PP1JCXBB.mjs";
|
|
38
|
+
import { t as CONTENT_TYPE_RE } from "../../../media-D1z_jisb.mjs";
|
|
39
|
+
import "../../../comments-BRtp992B.mjs";
|
|
40
|
+
import "../../../byline-fields-DHJs0Mja.mjs";
|
|
41
|
+
import "../../../menus-BQKqf0Up.mjs";
|
|
42
|
+
import "../../../status-D39Fpy8R.mjs";
|
|
41
43
|
import "../../../api/schemas/index.mjs";
|
|
42
|
-
import { a as readSiteWriteFence, o as recordSiteWrite } from "../../../fence-
|
|
43
|
-
import { a as hasScope$1 } from "../../../api-tokens-
|
|
44
|
-
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-
|
|
45
|
-
import "../../../tar-
|
|
46
|
-
import { i as RECORD_KINDS } from "../../../kinds-
|
|
47
|
-
import "../../../paths-
|
|
48
|
-
import "../../../transformations-
|
|
49
|
-
import "../../../version-
|
|
50
|
-
import "../../../receipt-
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import "../../../
|
|
44
|
+
import { a as readSiteWriteFence, o as recordSiteWrite } from "../../../fence-BrnQffdY.mjs";
|
|
45
|
+
import { a as hasScope$1 } from "../../../api-tokens-BLz2MtQs.mjs";
|
|
46
|
+
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-BnRuiR1-.mjs";
|
|
47
|
+
import "../../../tar-lDI_fzLD.mjs";
|
|
48
|
+
import { i as RECORD_KINDS } from "../../../kinds-CXY-fwQ6.mjs";
|
|
49
|
+
import "../../../paths-DiENGBx5.mjs";
|
|
50
|
+
import "../../../transformations-DdnpSdeC.mjs";
|
|
51
|
+
import "../../../version-DbT04wbH.mjs";
|
|
52
|
+
import "../../../receipt-q1VK9jhj.mjs";
|
|
53
|
+
import { t as claimEntryLockForWrite } from "../../../entry-lock-B5eaZEZP.mjs";
|
|
54
|
+
import { S as TRANSFER_SCOPES, n as TransferApprovalRepository } from "../../../approvals-l9sGqPmL.mjs";
|
|
55
|
+
import { a as siteImportDecisionsInputSchema, t as isPlanExecutable } from "../../../plan-BxCS1tl5.mjs";
|
|
56
|
+
import { i as TransferOperationRepository } from "../../../stage-Cf9PqdUB.mjs";
|
|
57
|
+
import { C as requestTransferApproval, E as analysisTargetContext, S as handleTransferCapabilities, T as loadImportPlan, _ as handleImportGet, c as handleExportGet, d as handleImportAdvance, f as handleImportAnalyze, h as handleImportExecute, i as handleExportAdvance, o as handleExportCreate, t as exportParamsDigest, w as openExportPackage, x as handleImportReceipt } from "../../../transfer-DLu_6AXL.mjs";
|
|
58
|
+
import "../../../keys-r08WvAng.mjs";
|
|
56
59
|
import { z } from "zod";
|
|
57
60
|
import { Permissions, Role, canActOnOwn, hasPermission } from "@emdash-cms/auth";
|
|
58
61
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
@@ -410,6 +413,12 @@ const REV_PARAM_DESCRIPTION = "Revision token proving you have read the current
|
|
|
410
413
|
* read the schema, so the message says where the token comes from.
|
|
411
414
|
*/
|
|
412
415
|
const REV_MISSING_ERROR = "_rev is required: call content_get for this item and pass back the _rev it returns.";
|
|
416
|
+
/**
|
|
417
|
+
* Shared wording for the `overrideLock` parameter on write tools. Agents only
|
|
418
|
+
* see the tool schema, and re-reading never clears ENTRY_LOCKED, so when to
|
|
419
|
+
* override is stated here.
|
|
420
|
+
*/
|
|
421
|
+
const OVERRIDE_LOCK_PARAM_DESCRIPTION = "Write even though someone else has this item open in the admin. Without it, the call fails with ENTRY_LOCKED and the error names who is editing; calling content_get again does not clear it. Tell the user who holds the item, and set this only if they ask you to write anyway.";
|
|
413
422
|
const SHA256_DIGEST_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
414
423
|
const transferOperationIdSchema = z.string().regex(/^[0-9A-Za-z_-]{1,64}$/, "Invalid operation id").describe("Transfer operation id");
|
|
415
424
|
const transferApprovalIdSchema = z.string().min(1).max(64).describe("Approval id from an earlier TRANSFER_APPROVAL_REQUIRED error, once approved");
|
|
@@ -480,7 +489,7 @@ const schemaUpdateCollectionToolSchema = z.object({
|
|
|
480
489
|
description: updateCollectionBody.shape.description.describe("New collection description"),
|
|
481
490
|
icon: updateCollectionBody.shape.icon.describe("New admin UI icon name"),
|
|
482
491
|
supports: updateCollectionBody.shape.supports.describe("Complete feature list to enable; omit to preserve the current list"),
|
|
483
|
-
urlPattern: updateCollectionBody.shape.urlPattern.describe("New public URL pattern; pass null to clear it"),
|
|
492
|
+
urlPattern: updateCollectionBody.shape.urlPattern.describe("New public URL pattern such as /blog/{slug}, with at most one placeholder per path segment; pass null to clear it"),
|
|
484
493
|
routable: updateCollectionBody.shape.routable.describe("Whether entries require a slug before they can be published"),
|
|
485
494
|
hasSeo: updateCollectionBody.shape.hasSeo.describe("Whether the collection supports SEO metadata"),
|
|
486
495
|
group: updateCollectionBody.shape.group.describe("Admin sidebar folder shared with other collections of the same group; pass null to move the collection back inline"),
|
|
@@ -669,8 +678,8 @@ async function unwrapAndInvalidate(extra, result, tags, changedEarlier = false)
|
|
|
669
678
|
}
|
|
670
679
|
async function getCollectionFields(ec, collection) {
|
|
671
680
|
try {
|
|
672
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
673
|
-
const { expandCollectionBlockFields } = await import("../../../block-values-
|
|
681
|
+
const { SchemaRegistry } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
682
|
+
const { expandCollectionBlockFields } = await import("../../../block-values-BrTrtA-v.mjs").then((n) => n.t);
|
|
674
683
|
const col = await new SchemaRegistry(ec.db).getCollectionWithFields(collection);
|
|
675
684
|
return col ? (await expandCollectionBlockFields(ec.db, col)).fields : null;
|
|
676
685
|
} catch {
|
|
@@ -699,7 +708,7 @@ async function applyReadMarkdown(ec, collection, items) {
|
|
|
699
708
|
for (const item of items) if (item.data && typeof item.data === "object") item.data = convertDataForRead(item.data, fields, false);
|
|
700
709
|
}
|
|
701
710
|
async function invalidateBylines() {
|
|
702
|
-
const { invalidateBylineCache } = await import("../../../bylines-
|
|
711
|
+
const { invalidateBylineCache } = await import("../../../bylines-COTwmMBF.mjs").then((n) => n.t);
|
|
703
712
|
invalidateBylineCache();
|
|
704
713
|
}
|
|
705
714
|
/**
|
|
@@ -818,6 +827,16 @@ function extractContentId(data) {
|
|
|
818
827
|
const item = obj.item && typeof obj.item === "object" ? obj.item : obj;
|
|
819
828
|
return typeof item?.id === "string" ? item.id : void 0;
|
|
820
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
* Refuses a write while another user holds the entry's edit lock. Resolves to
|
|
832
|
+
* `null` when the write may proceed, and extends the caller's own lease if they
|
|
833
|
+
* hold it.
|
|
834
|
+
*/
|
|
835
|
+
async function refuseLockedEntry(extra, collection, entryId, overrideLock) {
|
|
836
|
+
const { emdash, userId } = getExtra(extra);
|
|
837
|
+
const refusal = await claimEntryLockForWrite(emdash.db, collection, entryId, userId, { override: overrideLock });
|
|
838
|
+
return refusal ? respondError(refusal.code, refusal.message, { ...refusal.details }) : null;
|
|
839
|
+
}
|
|
821
840
|
/** Extract the `_rev` token from a content handler response. */
|
|
822
841
|
function extractContentRev(data) {
|
|
823
842
|
if (!data || typeof data !== "object") return void 0;
|
|
@@ -1033,7 +1052,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1033
1052
|
publishedAt: contentDateTimeInputSchema.nullish().describe("Override the publication timestamp (ISO 8601). Requires content:publish_any permission. Pass null to clear. Useful for content migrations."),
|
|
1034
1053
|
migrateBlocks: z.boolean().optional().describe("Allow existing blocks to migrate to their type's active version"),
|
|
1035
1054
|
replaceBlocks: z.boolean().optional().describe("Treat an entirely keyless blocks array as an explicit replacement"),
|
|
1036
|
-
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION)
|
|
1055
|
+
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION),
|
|
1056
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1037
1057
|
})
|
|
1038
1058
|
}, async (args, extra) => {
|
|
1039
1059
|
requireScope(extra, "content:write");
|
|
@@ -1055,8 +1075,10 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1055
1075
|
}, "content:publish_any")) throw new EmDashAuthError("Setting publishedAt requires content:publish_any permission", "INSUFFICIENT_PERMISSIONS");
|
|
1056
1076
|
}
|
|
1057
1077
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1078
|
+
if (args.status !== void 0) requireOwnership(extra, ownerId, "content:publish_own", "content:publish_any");
|
|
1079
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1080
|
+
if (locked) return locked;
|
|
1058
1081
|
if (args.status === "published") {
|
|
1059
|
-
requireOwnership(extra, ownerId, "content:publish_own", "content:publish_any");
|
|
1060
1082
|
let rev = args._rev;
|
|
1061
1083
|
let liveChanged = false;
|
|
1062
1084
|
if (args.data || args.slug || args.seo !== void 0 || args.bylines !== void 0 || args.taxonomies !== void 0 || args.publishedAt !== void 0) {
|
|
@@ -1087,7 +1109,6 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1087
1109
|
}), [args.collection, resolvedId], liveChanged);
|
|
1088
1110
|
}
|
|
1089
1111
|
if (args.status === "draft") {
|
|
1090
|
-
requireOwnership(extra, ownerId, "content:publish_own", "content:publish_any");
|
|
1091
1112
|
let rev = args._rev;
|
|
1092
1113
|
let liveChanged = false;
|
|
1093
1114
|
if (args.data || args.slug || args.seo !== void 0 || args.bylines !== void 0 || args.taxonomies !== void 0 || args.publishedAt !== void 0) {
|
|
@@ -1138,7 +1159,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1138
1159
|
description: "Soft-delete a content item by moving it to the trash. The item can be restored later with content_restore, or permanently deleted with content_permanent_delete.",
|
|
1139
1160
|
inputSchema: z.object({
|
|
1140
1161
|
collection: z.string().describe("Collection slug"),
|
|
1141
|
-
id: z.string().describe("Content item ID or slug")
|
|
1162
|
+
id: z.string().describe("Content item ID or slug"),
|
|
1163
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1142
1164
|
}),
|
|
1143
1165
|
annotations: { destructiveHint: true }
|
|
1144
1166
|
}, async (args, extra) => {
|
|
@@ -1149,6 +1171,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1149
1171
|
if (!existing.success) return unwrap(existing);
|
|
1150
1172
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:delete_own", "content:delete_any");
|
|
1151
1173
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1174
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1175
|
+
if (locked) return locked;
|
|
1152
1176
|
return unwrapAndInvalidate(extra, await ec.handleContentDelete(args.collection, resolvedId), [args.collection, resolvedId]);
|
|
1153
1177
|
});
|
|
1154
1178
|
server.registerTool("content_restore", {
|
|
@@ -1188,7 +1212,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1188
1212
|
collection: z.string().describe("Collection slug"),
|
|
1189
1213
|
id: z.string().describe("Content item ID or slug"),
|
|
1190
1214
|
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION),
|
|
1191
|
-
publishedAt: contentDateTimeInputSchema.optional().describe("Override publication timestamp (ISO 8601). Requires content:publish_any permission. Useful when importing content with original publish dates.")
|
|
1215
|
+
publishedAt: contentDateTimeInputSchema.optional().describe("Override publication timestamp (ISO 8601). Requires content:publish_any permission. Useful when importing content with original publish dates."),
|
|
1216
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1192
1217
|
})
|
|
1193
1218
|
}, async (args, extra) => {
|
|
1194
1219
|
requireScope(extra, "content:write");
|
|
@@ -1204,6 +1229,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1204
1229
|
}, "content:publish_any")) throw new EmDashAuthError("Setting publishedAt requires content:publish_any permission", "INSUFFICIENT_PERMISSIONS");
|
|
1205
1230
|
}
|
|
1206
1231
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1232
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1233
|
+
if (locked) return locked;
|
|
1207
1234
|
return unwrapAndInvalidate(extra, await emdash.handleContentPublish(args.collection, resolvedId, {
|
|
1208
1235
|
publishedAt: args.publishedAt,
|
|
1209
1236
|
_rev: args._rev,
|
|
@@ -1221,7 +1248,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1221
1248
|
inputSchema: z.object({
|
|
1222
1249
|
collection: z.string().describe("Collection slug"),
|
|
1223
1250
|
id: z.string().describe("Content item ID or slug"),
|
|
1224
|
-
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION)
|
|
1251
|
+
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION),
|
|
1252
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1225
1253
|
})
|
|
1226
1254
|
}, async (args, extra) => {
|
|
1227
1255
|
requireScope(extra, "content:write");
|
|
@@ -1231,6 +1259,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1231
1259
|
if (!existing.success) return unwrap(existing);
|
|
1232
1260
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:publish_own", "content:publish_any");
|
|
1233
1261
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1262
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1263
|
+
if (locked) return locked;
|
|
1234
1264
|
return unwrapAndInvalidate(extra, await ec.handleContentUnpublish(args.collection, resolvedId, {
|
|
1235
1265
|
_rev: args._rev,
|
|
1236
1266
|
actor: {
|
|
@@ -1248,7 +1278,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1248
1278
|
collection: z.string().describe("Collection slug"),
|
|
1249
1279
|
id: z.string().describe("Content item ID or slug"),
|
|
1250
1280
|
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION),
|
|
1251
|
-
scheduledAt: contentDateTimeInputSchema.describe("ISO 8601 datetime for publication (e.g. '2025-06-01T09:00:00Z')")
|
|
1281
|
+
scheduledAt: contentDateTimeInputSchema.describe("ISO 8601 datetime for publication (e.g. '2025-06-01T09:00:00Z')"),
|
|
1282
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1252
1283
|
})
|
|
1253
1284
|
}, async (args, extra) => {
|
|
1254
1285
|
requireScope(extra, "content:write");
|
|
@@ -1258,6 +1289,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1258
1289
|
if (!existing.success) return unwrap(existing);
|
|
1259
1290
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:publish_own", "content:publish_any");
|
|
1260
1291
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1292
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1293
|
+
if (locked) return locked;
|
|
1261
1294
|
return unwrapAndInvalidate(extra, await ec.handleContentSchedule(args.collection, resolvedId, args.scheduledAt, {
|
|
1262
1295
|
_rev: args._rev,
|
|
1263
1296
|
actor: {
|
|
@@ -1273,7 +1306,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1273
1306
|
description: "Cancel a previously scheduled publication. Scheduled drafts return to draft status; published items stay published. The scheduledAt timestamp is cleared. Idempotent — calling on an item that isn't scheduled is a no-op.",
|
|
1274
1307
|
inputSchema: z.object({
|
|
1275
1308
|
collection: z.string().describe("Collection slug"),
|
|
1276
|
-
id: z.string().describe("Content item ID or slug")
|
|
1309
|
+
id: z.string().describe("Content item ID or slug"),
|
|
1310
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1277
1311
|
})
|
|
1278
1312
|
}, async (args, extra) => {
|
|
1279
1313
|
requireScope(extra, "content:write");
|
|
@@ -1283,6 +1317,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1283
1317
|
if (!existing.success) return unwrap(existing);
|
|
1284
1318
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:publish_own", "content:publish_any");
|
|
1285
1319
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1320
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1321
|
+
if (locked) return locked;
|
|
1286
1322
|
return unwrapAndInvalidate(extra, await ec.handleContentUnschedule(args.collection, resolvedId), [args.collection, resolvedId]);
|
|
1287
1323
|
});
|
|
1288
1324
|
server.registerTool("content_compare", {
|
|
@@ -1304,7 +1340,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1304
1340
|
inputSchema: z.object({
|
|
1305
1341
|
collection: z.string().describe("Collection slug"),
|
|
1306
1342
|
id: z.string().describe("Content item ID or slug"),
|
|
1307
|
-
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION)
|
|
1343
|
+
_rev: z.string({ error: REV_MISSING_ERROR }).describe(REV_PARAM_DESCRIPTION),
|
|
1344
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
1308
1345
|
}),
|
|
1309
1346
|
annotations: { destructiveHint: true }
|
|
1310
1347
|
}, async (args, extra) => {
|
|
@@ -1315,6 +1352,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1315
1352
|
if (!existing.success) return unwrap(existing);
|
|
1316
1353
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:edit_own", "content:edit_any");
|
|
1317
1354
|
const resolvedId = extractContentId(existing.data) ?? args.id;
|
|
1355
|
+
const locked = await refuseLockedEntry(extra, args.collection, resolvedId, args.overrideLock);
|
|
1356
|
+
if (locked) return locked;
|
|
1318
1357
|
return unwrapAndInvalidate(extra, await ec.handleContentDiscardDraft(args.collection, resolvedId, { _rev: args._rev }), [args.collection, resolvedId]);
|
|
1319
1358
|
});
|
|
1320
1359
|
server.registerTool("content_list_trashed", {
|
|
@@ -1391,7 +1430,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1391
1430
|
requireScope(extra, "content:read");
|
|
1392
1431
|
const ec = getEmDash(extra);
|
|
1393
1432
|
try {
|
|
1394
|
-
const { BylineRepository } = await import("../../../byline-
|
|
1433
|
+
const { BylineRepository } = await import("../../../byline-02tu_Uc-.mjs").then((n) => n.n);
|
|
1395
1434
|
return jsonResult(await new BylineRepository(ec.db).findMany({
|
|
1396
1435
|
search: args.search,
|
|
1397
1436
|
isGuest: args.isGuest,
|
|
@@ -1413,7 +1452,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1413
1452
|
requireScope(extra, "content:read");
|
|
1414
1453
|
const ec = getEmDash(extra);
|
|
1415
1454
|
try {
|
|
1416
|
-
const { BylineRepository } = await import("../../../byline-
|
|
1455
|
+
const { BylineRepository } = await import("../../../byline-02tu_Uc-.mjs").then((n) => n.n);
|
|
1417
1456
|
const byline = await new BylineRepository(ec.db).findById(args.id);
|
|
1418
1457
|
if (!byline) return respondError("NOT_FOUND", `Byline '${args.id}' not found`);
|
|
1419
1458
|
return jsonResult(byline);
|
|
@@ -1431,9 +1470,13 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1431
1470
|
requireRole(extra, Role.EDITOR);
|
|
1432
1471
|
const ec = getEmDash(extra);
|
|
1433
1472
|
try {
|
|
1434
|
-
const { handleBylineCreate } = await import("../../../bylines-
|
|
1473
|
+
const { handleBylineCreate } = await import("../../../bylines-D_S8UKRX.mjs").then((n) => n.t);
|
|
1435
1474
|
const result = await handleBylineCreate(ec.db, args);
|
|
1436
|
-
if (result.success)
|
|
1475
|
+
if (result.success) {
|
|
1476
|
+
await invalidateBylines();
|
|
1477
|
+
const byline = result.data;
|
|
1478
|
+
after(() => ec.hooks.runBylineAfterSave(byline, true));
|
|
1479
|
+
}
|
|
1437
1480
|
return unwrap(result);
|
|
1438
1481
|
} catch (error) {
|
|
1439
1482
|
return respondHandlerError(error, "BYLINE_CREATE_ERROR");
|
|
@@ -1451,10 +1494,14 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1451
1494
|
requireRole(extra, Role.EDITOR);
|
|
1452
1495
|
const ec = getEmDash(extra);
|
|
1453
1496
|
try {
|
|
1454
|
-
const { handleBylineUpdate } = await import("../../../bylines-
|
|
1497
|
+
const { handleBylineUpdate } = await import("../../../bylines-D_S8UKRX.mjs").then((n) => n.t);
|
|
1455
1498
|
const { id, ...input } = args;
|
|
1456
1499
|
const result = await handleBylineUpdate(ec.db, id, input);
|
|
1457
|
-
if (result.success)
|
|
1500
|
+
if (result.success) {
|
|
1501
|
+
await invalidateBylines();
|
|
1502
|
+
const byline = result.data;
|
|
1503
|
+
after(() => ec.hooks.runBylineAfterSave(byline, false));
|
|
1504
|
+
}
|
|
1458
1505
|
return unwrap(result);
|
|
1459
1506
|
} catch (error) {
|
|
1460
1507
|
return respondHandlerError(error, "BYLINE_UPDATE_ERROR");
|
|
@@ -1470,9 +1517,12 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1470
1517
|
requireRole(extra, Role.EDITOR);
|
|
1471
1518
|
const ec = getEmDash(extra);
|
|
1472
1519
|
try {
|
|
1473
|
-
const { BylineRepository } = await import("../../../byline-
|
|
1474
|
-
|
|
1520
|
+
const { BylineRepository } = await import("../../../byline-02tu_Uc-.mjs").then((n) => n.n);
|
|
1521
|
+
const repo = new BylineRepository(ec.db);
|
|
1522
|
+
const existing = ec.hooks.hasHooks("byline:afterDelete") ? await repo.findById(args.id) : null;
|
|
1523
|
+
if (!await repo.delete(args.id)) return respondError("NOT_FOUND", `Byline '${args.id}' not found`);
|
|
1475
1524
|
await invalidateBylines();
|
|
1525
|
+
if (existing) after(() => ec.hooks.runBylineAfterDelete(existing));
|
|
1476
1526
|
return jsonResult({ deleted: args.id });
|
|
1477
1527
|
} catch (error) {
|
|
1478
1528
|
return respondHandlerError(error, "BYLINE_DELETE_ERROR");
|
|
@@ -1487,7 +1537,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1487
1537
|
requireScope(extra, "content:read");
|
|
1488
1538
|
const ec = getEmDash(extra);
|
|
1489
1539
|
try {
|
|
1490
|
-
const { handleBylineTranslations } = await import("../../../bylines-
|
|
1540
|
+
const { handleBylineTranslations } = await import("../../../bylines-D_S8UKRX.mjs").then((n) => n.t);
|
|
1491
1541
|
return unwrap(await handleBylineTranslations(ec.db, args.id));
|
|
1492
1542
|
} catch (error) {
|
|
1493
1543
|
return respondHandlerError(error, "BYLINE_TRANSLATIONS_ERROR");
|
|
@@ -1503,7 +1553,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1503
1553
|
requireRole(extra, Role.EDITOR);
|
|
1504
1554
|
const ec = getEmDash(extra);
|
|
1505
1555
|
try {
|
|
1506
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1556
|
+
const { SchemaRegistry } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
1507
1557
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
1508
1558
|
} catch (error) {
|
|
1509
1559
|
return respondHandlerError(error, "SCHEMA_LIST_ERROR");
|
|
@@ -1519,7 +1569,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1519
1569
|
requireRole(extra, Role.EDITOR);
|
|
1520
1570
|
const ec = getEmDash(extra);
|
|
1521
1571
|
try {
|
|
1522
|
-
const { SchemaRegistry, expandCollectionBlockFields } = await import("../../../schema-
|
|
1572
|
+
const { SchemaRegistry, expandCollectionBlockFields } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
1523
1573
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
1524
1574
|
if (!collection) return respondError("NOT_FOUND", `Collection '${args.slug}' not found`);
|
|
1525
1575
|
return jsonResult(await expandCollectionBlockFields(ec.db, collection));
|
|
@@ -1536,7 +1586,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1536
1586
|
requireScope(extra, "schema:read");
|
|
1537
1587
|
requireRole(extra, Role.EDITOR);
|
|
1538
1588
|
const ec = getEmDash(extra);
|
|
1539
|
-
const { handleBlockTypeList } = await import("../../../block-types-
|
|
1589
|
+
const { handleBlockTypeList } = await import("../../../block-types-DIG_KZwi.mjs").then((n) => n.t);
|
|
1540
1590
|
return unwrap(await handleBlockTypeList(ec.db));
|
|
1541
1591
|
});
|
|
1542
1592
|
server.registerTool("schema_get_block_type", {
|
|
@@ -1548,7 +1598,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1548
1598
|
requireScope(extra, "schema:read");
|
|
1549
1599
|
requireRole(extra, Role.EDITOR);
|
|
1550
1600
|
const ec = getEmDash(extra);
|
|
1551
|
-
const { handleBlockTypeGet } = await import("../../../block-types-
|
|
1601
|
+
const { handleBlockTypeGet } = await import("../../../block-types-DIG_KZwi.mjs").then((n) => n.t);
|
|
1552
1602
|
return unwrap(await handleBlockTypeGet(ec.db, args.slug));
|
|
1553
1603
|
});
|
|
1554
1604
|
server.registerTool("schema_create_block_type", {
|
|
@@ -1559,7 +1609,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1559
1609
|
requireScope(extra, "schema:write");
|
|
1560
1610
|
requireRole(extra, Role.ADMIN);
|
|
1561
1611
|
const ec = getEmDash(extra);
|
|
1562
|
-
const { handleBlockTypeCreate } = await import("../../../block-types-
|
|
1612
|
+
const { handleBlockTypeCreate } = await import("../../../block-types-DIG_KZwi.mjs").then((n) => n.t);
|
|
1563
1613
|
return unwrap(await handleBlockTypeCreate(ec.db, args));
|
|
1564
1614
|
});
|
|
1565
1615
|
server.registerTool("schema_update_block_type", {
|
|
@@ -1574,7 +1624,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1574
1624
|
requireRole(extra, Role.ADMIN);
|
|
1575
1625
|
const ec = getEmDash(extra);
|
|
1576
1626
|
const { slug, ...input } = args;
|
|
1577
|
-
const { handleBlockTypeUpdate } = await import("../../../block-types-
|
|
1627
|
+
const { handleBlockTypeUpdate } = await import("../../../block-types-DIG_KZwi.mjs").then((n) => n.t);
|
|
1578
1628
|
return unwrap(await handleBlockTypeUpdate(ec.db, slug, input));
|
|
1579
1629
|
});
|
|
1580
1630
|
server.registerTool("schema_activate_block_type_version", {
|
|
@@ -1589,7 +1639,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1589
1639
|
requireScope(extra, "schema:write");
|
|
1590
1640
|
requireRole(extra, Role.ADMIN);
|
|
1591
1641
|
const ec = getEmDash(extra);
|
|
1592
|
-
const { handleBlockTypeVersionActivate } = await import("../../../block-types-
|
|
1642
|
+
const { handleBlockTypeVersionActivate } = await import("../../../block-types-DIG_KZwi.mjs").then((n) => n.t);
|
|
1593
1643
|
return unwrap(await handleBlockTypeVersionActivate(ec.db, args.slug, args.version, args.expectedFingerprint));
|
|
1594
1644
|
});
|
|
1595
1645
|
server.registerTool("schema_create_collection", {
|
|
@@ -1600,7 +1650,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1600
1650
|
label: z.string().describe("Display name (plural, e.g. 'Blog Posts')"),
|
|
1601
1651
|
labelSingular: z.string().optional().describe("Singular display name (e.g. 'Blog Post')"),
|
|
1602
1652
|
description: z.string().optional().describe("Description of this collection"),
|
|
1603
|
-
icon:
|
|
1653
|
+
icon: createCollectionBody.shape.icon.describe("Icon name for the admin UI"),
|
|
1604
1654
|
supports: createCollectionBody.shape.supports.describe("Features to enable (default: ['drafts', 'revisions'])"),
|
|
1605
1655
|
routable: createCollectionBody.shape.routable.describe("Require a slug before publishing (default: true)"),
|
|
1606
1656
|
editLocking: createCollectionBody.shape.editLocking.describe("Take an edit lock when an entry is opened (default: true)"),
|
|
@@ -1611,7 +1661,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1611
1661
|
requireRole(extra, Role.ADMIN);
|
|
1612
1662
|
const ec = getEmDash(extra);
|
|
1613
1663
|
try {
|
|
1614
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1664
|
+
const { SchemaRegistry } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
1615
1665
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
1616
1666
|
slug: args.slug,
|
|
1617
1667
|
label: args.label,
|
|
@@ -1642,7 +1692,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1642
1692
|
requireRole(extra, Role.ADMIN);
|
|
1643
1693
|
const ec = getEmDash(extra);
|
|
1644
1694
|
try {
|
|
1645
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1695
|
+
const { SchemaRegistry } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
1646
1696
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
1647
1697
|
ec.invalidateUrlPatternCache();
|
|
1648
1698
|
return jsonResult({ deleted: args.slug });
|
|
@@ -1661,7 +1711,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1661
1711
|
const ec = getEmDash(extra);
|
|
1662
1712
|
const { slug, ...input } = args;
|
|
1663
1713
|
try {
|
|
1664
|
-
const { handleSchemaCollectionUpdate } = await import("../../../schema-
|
|
1714
|
+
const { handleSchemaCollectionUpdate } = await import("../../../schema-Berj5VQx.mjs").then((n) => n._);
|
|
1665
1715
|
const result = await handleSchemaCollectionUpdate(ec.db, slug, input);
|
|
1666
1716
|
if (result.success) ec.invalidateUrlPatternCache();
|
|
1667
1717
|
return unwrap(result);
|
|
@@ -1720,7 +1770,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1720
1770
|
requireRole(extra, Role.ADMIN);
|
|
1721
1771
|
const ec = getEmDash(extra);
|
|
1722
1772
|
try {
|
|
1723
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1773
|
+
const { SchemaRegistry } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
1724
1774
|
return jsonResult(await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
1725
1775
|
slug: args.slug,
|
|
1726
1776
|
label: args.label,
|
|
@@ -1751,7 +1801,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1751
1801
|
requireRole(extra, Role.ADMIN);
|
|
1752
1802
|
const ec = getEmDash(extra);
|
|
1753
1803
|
try {
|
|
1754
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1804
|
+
const { SchemaRegistry } = await import("../../../schema-BZPj3kwZ.mjs").then((n) => n.t);
|
|
1755
1805
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
1756
1806
|
return jsonResult({
|
|
1757
1807
|
deleted: args.fieldSlug,
|
|
@@ -1772,7 +1822,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1772
1822
|
const ec = getEmDash(extra);
|
|
1773
1823
|
const { collection, fieldSlug, ...input } = args;
|
|
1774
1824
|
try {
|
|
1775
|
-
const { handleSchemaFieldUpdate } = await import("../../../schema-
|
|
1825
|
+
const { handleSchemaFieldUpdate } = await import("../../../schema-Berj5VQx.mjs").then((n) => n._);
|
|
1776
1826
|
return unwrap(await handleSchemaFieldUpdate(ec.db, collection, fieldSlug, input));
|
|
1777
1827
|
} catch (error) {
|
|
1778
1828
|
return respondHandlerError(error, "SCHEMA_FIELD_UPDATE_ERROR");
|
|
@@ -1815,7 +1865,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1815
1865
|
filename: z.string().min(1).describe("Filename including extension (e.g. 'cover.png')"),
|
|
1816
1866
|
base64: z.string().describe("Base64-encoded file contents."),
|
|
1817
1867
|
contentType: z.string().regex(CONTENT_TYPE_RE, "Invalid content type").describe("MIME type (e.g. 'image/png')."),
|
|
1818
|
-
alt: z.string().optional().describe("Alt text for accessibility")
|
|
1868
|
+
alt: z.string().optional().describe("Alt text for accessibility"),
|
|
1869
|
+
caption: z.string().optional().describe("Caption stored on the media record, such as the credit")
|
|
1819
1870
|
}),
|
|
1820
1871
|
annotations: { destructiveHint: false }
|
|
1821
1872
|
}, async (args, extra) => {
|
|
@@ -1829,6 +1880,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1829
1880
|
base64: args.base64,
|
|
1830
1881
|
contentType: args.contentType,
|
|
1831
1882
|
alt: args.alt,
|
|
1883
|
+
caption: args.caption,
|
|
1832
1884
|
authorId: userId,
|
|
1833
1885
|
maxUploadSize: emdash.config.maxUploadSize
|
|
1834
1886
|
}));
|
|
@@ -1902,7 +1954,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1902
1954
|
};
|
|
1903
1955
|
} else input = { scope: "all" };
|
|
1904
1956
|
try {
|
|
1905
|
-
const { handleMediaUsageRepair } = await import("../../../media-usage-
|
|
1957
|
+
const { handleMediaUsageRepair } = await import("../../../media-usage-B8q0owWQ.mjs").then((n) => n.o);
|
|
1906
1958
|
return unwrap(await handleMediaUsageRepair(ec.db, input));
|
|
1907
1959
|
} catch (error) {
|
|
1908
1960
|
return respondHandlerError(error, "MEDIA_USAGE_REPAIR_ERROR");
|
|
@@ -1923,7 +1975,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1923
1975
|
requireScope(extra, "content:read");
|
|
1924
1976
|
const ec = getEmDash(extra);
|
|
1925
1977
|
try {
|
|
1926
|
-
const { searchWithDb } = await import("../../../search-
|
|
1978
|
+
const { searchWithDb } = await import("../../../search-thYf8j9F.mjs").then((n) => n.t);
|
|
1927
1979
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
1928
1980
|
collections: args.collections,
|
|
1929
1981
|
locale: args.locale,
|
|
@@ -1943,7 +1995,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1943
1995
|
requireScope(extra, "content:read");
|
|
1944
1996
|
const ec = getEmDash(extra);
|
|
1945
1997
|
try {
|
|
1946
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
1998
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
1947
1999
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
1948
2000
|
} catch (error) {
|
|
1949
2001
|
return respondHandlerError(error, "TAXONOMY_LIST_ERROR");
|
|
@@ -1961,7 +2013,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1961
2013
|
requireScope(extra, "content:read");
|
|
1962
2014
|
const ec = getEmDash(extra);
|
|
1963
2015
|
try {
|
|
1964
|
-
const { handleTaxonomyGet } = await import("../../../taxonomies-
|
|
2016
|
+
const { handleTaxonomyGet } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
1965
2017
|
return unwrap(await handleTaxonomyGet(ec.db, args.name, { locale: args.locale }));
|
|
1966
2018
|
} catch (error) {
|
|
1967
2019
|
return respondHandlerError(error, "TAXONOMY_GET_ERROR");
|
|
@@ -1984,7 +2036,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1984
2036
|
requireRole(extra, Role.EDITOR);
|
|
1985
2037
|
const ec = getEmDash(extra);
|
|
1986
2038
|
try {
|
|
1987
|
-
const { handleTaxonomyCreate } = await import("../../../taxonomies-
|
|
2039
|
+
const { handleTaxonomyCreate } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
1988
2040
|
return unwrapAndInvalidate(extra, await handleTaxonomyCreate(ec.db, {
|
|
1989
2041
|
name: args.name,
|
|
1990
2042
|
label: args.label,
|
|
@@ -2014,7 +2066,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2014
2066
|
requireRole(extra, Role.EDITOR);
|
|
2015
2067
|
const ec = getEmDash(extra);
|
|
2016
2068
|
try {
|
|
2017
|
-
const { handleTaxonomyUpdate } = await import("../../../taxonomies-
|
|
2069
|
+
const { handleTaxonomyUpdate } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2018
2070
|
return unwrapAndInvalidate(extra, await handleTaxonomyUpdate(ec.db, args.name, {
|
|
2019
2071
|
label: args.label,
|
|
2020
2072
|
labelSingular: args.labelSingular,
|
|
@@ -2036,7 +2088,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2036
2088
|
requireRole(extra, Role.EDITOR);
|
|
2037
2089
|
const ec = getEmDash(extra);
|
|
2038
2090
|
try {
|
|
2039
|
-
const { handleTaxonomyDelete } = await import("../../../taxonomies-
|
|
2091
|
+
const { handleTaxonomyDelete } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2040
2092
|
return unwrapAndInvalidate(extra, await handleTaxonomyDelete(ec.db, args.name), [taxonomyTag(args.name)]);
|
|
2041
2093
|
} catch (error) {
|
|
2042
2094
|
return respondHandlerError(error, "TAXONOMY_DELETE_ERROR");
|
|
@@ -2056,13 +2108,13 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2056
2108
|
requireScope(extra, "content:read");
|
|
2057
2109
|
const ec = getEmDash(extra);
|
|
2058
2110
|
try {
|
|
2059
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
2111
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2060
2112
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
2061
2113
|
if (!listResult.success) return unwrap(listResult);
|
|
2062
2114
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return respondError("NOT_FOUND", `Taxonomy '${args.taxonomy}' not found`);
|
|
2063
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
2115
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-BesdHIwi.mjs").then((n) => n.n);
|
|
2064
2116
|
const repo = new TaxonomyRepository(ec.db);
|
|
2065
|
-
const limit = Math.min(args.limit ?? 50, 100);
|
|
2117
|
+
const limit = Math.max(1, Math.min(args.limit ?? 50, 100));
|
|
2066
2118
|
let cursor;
|
|
2067
2119
|
if (args.cursor) try {
|
|
2068
2120
|
cursor = decodeTaxonomyCursor(args.cursor);
|
|
@@ -2121,7 +2173,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2121
2173
|
requireRole(extra, Role.EDITOR);
|
|
2122
2174
|
const ec = getEmDash(extra);
|
|
2123
2175
|
try {
|
|
2124
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
2176
|
+
const { handleTermCreate } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2125
2177
|
return unwrapAndInvalidate(extra, await handleTermCreate(ec.db, args.taxonomy, {
|
|
2126
2178
|
slug: args.slug,
|
|
2127
2179
|
label: args.label,
|
|
@@ -2151,7 +2203,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2151
2203
|
requireRole(extra, Role.EDITOR);
|
|
2152
2204
|
const ec = getEmDash(extra);
|
|
2153
2205
|
try {
|
|
2154
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
2206
|
+
const { handleTermUpdate } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2155
2207
|
return unwrapAndInvalidate(extra, await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
2156
2208
|
slug: args.slug,
|
|
2157
2209
|
label: args.label,
|
|
@@ -2176,7 +2228,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2176
2228
|
requireRole(extra, Role.EDITOR);
|
|
2177
2229
|
const ec = getEmDash(extra);
|
|
2178
2230
|
try {
|
|
2179
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
2231
|
+
const { handleTermDelete } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2180
2232
|
return unwrapAndInvalidate(extra, await handleTermDelete(ec.db, args.taxonomy, args.termSlug, { locale: args.locale }), [taxonomyTag(args.taxonomy)]);
|
|
2181
2233
|
} catch (error) {
|
|
2182
2234
|
return respondHandlerError(error, "TAXONOMY_TERM_DELETE_ERROR");
|
|
@@ -2191,7 +2243,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2191
2243
|
requireScope(extra, "content:read");
|
|
2192
2244
|
const ec = getEmDash(extra);
|
|
2193
2245
|
try {
|
|
2194
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
2246
|
+
const { handleTermTranslations } = await import("../../../taxonomies-DQGomz9p.mjs").then((n) => n.m);
|
|
2195
2247
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
2196
2248
|
} catch (error) {
|
|
2197
2249
|
return respondHandlerError(error, "TERM_TRANSLATIONS_ERROR");
|
|
@@ -2206,7 +2258,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2206
2258
|
requireScope(extra, "content:read");
|
|
2207
2259
|
const ec = getEmDash(extra);
|
|
2208
2260
|
try {
|
|
2209
|
-
const { handleMenuList } = await import("../../../menus-
|
|
2261
|
+
const { handleMenuList } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2210
2262
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
2211
2263
|
} catch (error) {
|
|
2212
2264
|
return respondHandlerError(error, "MENU_LIST_ERROR");
|
|
@@ -2224,7 +2276,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2224
2276
|
requireScope(extra, "content:read");
|
|
2225
2277
|
const ec = getEmDash(extra);
|
|
2226
2278
|
try {
|
|
2227
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
2279
|
+
const { handleMenuGet } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2228
2280
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
2229
2281
|
} catch (error) {
|
|
2230
2282
|
return respondHandlerError(error, "MENU_GET_ERROR");
|
|
@@ -2239,7 +2291,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2239
2291
|
requireScope(extra, "content:read");
|
|
2240
2292
|
const ec = getEmDash(extra);
|
|
2241
2293
|
try {
|
|
2242
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
2294
|
+
const { handleMenuTranslations } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2243
2295
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
2244
2296
|
} catch (error) {
|
|
2245
2297
|
return respondHandlerError(error, "MENU_TRANSLATIONS_ERROR");
|
|
@@ -2259,7 +2311,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2259
2311
|
requireRole(extra, Role.EDITOR);
|
|
2260
2312
|
const ec = getEmDash(extra);
|
|
2261
2313
|
try {
|
|
2262
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
2314
|
+
const { handleMenuCreate } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2263
2315
|
return unwrapAndInvalidate(extra, await handleMenuCreate(ec.db, {
|
|
2264
2316
|
name: args.name,
|
|
2265
2317
|
label: args.label,
|
|
@@ -2283,7 +2335,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2283
2335
|
requireRole(extra, Role.EDITOR);
|
|
2284
2336
|
const ec = getEmDash(extra);
|
|
2285
2337
|
try {
|
|
2286
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
2338
|
+
const { handleMenuUpdate } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2287
2339
|
return unwrapAndInvalidate(extra, await handleMenuUpdate(ec.db, args.name, {
|
|
2288
2340
|
label: args.label,
|
|
2289
2341
|
locale: args.locale
|
|
@@ -2305,7 +2357,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2305
2357
|
requireRole(extra, Role.EDITOR);
|
|
2306
2358
|
const ec = getEmDash(extra);
|
|
2307
2359
|
try {
|
|
2308
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
2360
|
+
const { handleMenuDelete } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2309
2361
|
return unwrapAndInvalidate(extra, await handleMenuDelete(ec.db, args.name, { locale: args.locale }), [menuTag(args.name)]);
|
|
2310
2362
|
} catch (error) {
|
|
2311
2363
|
return respondHandlerError(error, "MENU_DELETE_ERROR");
|
|
@@ -2340,7 +2392,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2340
2392
|
requireRole(extra, Role.EDITOR);
|
|
2341
2393
|
const ec = getEmDash(extra);
|
|
2342
2394
|
try {
|
|
2343
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
2395
|
+
const { handleMenuSetItems } = await import("../../../menus-trvc6_fW.mjs").then((n) => n.d);
|
|
2344
2396
|
return unwrapAndInvalidate(extra, await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }), [menuTag(args.name)]);
|
|
2345
2397
|
} catch (error) {
|
|
2346
2398
|
return respondHandlerError(error, "MENU_SET_ITEMS_ERROR");
|
|
@@ -2363,7 +2415,10 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2363
2415
|
server.registerTool("revision_restore", {
|
|
2364
2416
|
title: "Restore Revision",
|
|
2365
2417
|
description: "Restore a content item to a previous revision. Replaces the current draft with the specified revision's data. Not automatically published — use content_publish afterward if needed.",
|
|
2366
|
-
inputSchema: z.object({
|
|
2418
|
+
inputSchema: z.object({
|
|
2419
|
+
revisionId: z.string().describe("Revision ID to restore"),
|
|
2420
|
+
overrideLock: z.boolean().optional().describe(OVERRIDE_LOCK_PARAM_DESCRIPTION)
|
|
2421
|
+
})
|
|
2367
2422
|
}, async (args, extra) => {
|
|
2368
2423
|
requireScope(extra, "content:write");
|
|
2369
2424
|
requireRole(extra, Role.AUTHOR);
|
|
@@ -2375,6 +2430,8 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2375
2430
|
const existing = await emdash.handleContentGet(revItem.collection, revItem.entryId);
|
|
2376
2431
|
if (!existing.success) return unwrap(existing);
|
|
2377
2432
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:edit_own", "content:edit_any");
|
|
2433
|
+
const locked = await refuseLockedEntry(extra, revItem.collection, revItem.entryId, args.overrideLock);
|
|
2434
|
+
if (locked) return locked;
|
|
2378
2435
|
return unwrap(await emdash.handleRevisionRestore(args.revisionId, userId));
|
|
2379
2436
|
});
|
|
2380
2437
|
server.registerTool("settings_get", {
|
|
@@ -2387,7 +2444,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2387
2444
|
requireRole(extra, Role.EDITOR);
|
|
2388
2445
|
const ec = getEmDash(extra);
|
|
2389
2446
|
try {
|
|
2390
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
2447
|
+
const { handleSettingsGet } = await import("../../../settings-BJjK_X7x.mjs").then((n) => n.r);
|
|
2391
2448
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
2392
2449
|
} catch (error) {
|
|
2393
2450
|
return respondHandlerError(error, "SETTINGS_READ_ERROR");
|
|
@@ -2413,7 +2470,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
2413
2470
|
requireRole(extra, Role.ADMIN);
|
|
2414
2471
|
const ec = getEmDash(extra);
|
|
2415
2472
|
try {
|
|
2416
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
2473
|
+
const { handleSettingsUpdate } = await import("../../../settings-BJjK_X7x.mjs").then((n) => n.r);
|
|
2417
2474
|
return unwrapAndInvalidate(extra, await handleSettingsUpdate(ec.db, ec.storage, args), [siteSettingsTag()]);
|
|
2418
2475
|
} catch (error) {
|
|
2419
2476
|
return respondHandlerError(error, "SETTINGS_UPDATE_ERROR");
|