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
package/dist/cli/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getMigrationStatus, c as formatDatetimeStorageReport, i as getExactMigrationStatus, l as scanDatetimeStorage, s as runMigrations, u as __exportAll } from "../runner-
|
|
3
|
-
import { t as EmDashDatabaseError } from "../errors-9P_FDrJ_.mjs";
|
|
2
|
+
import { a as getMigrationStatus, c as formatDatetimeStorageReport, i as getExactMigrationStatus, l as scanDatetimeStorage, s as runMigrations, u as __exportAll } from "../runner-CLpxmhl8.mjs";
|
|
4
3
|
import { n as isMissingTableError } from "../db-errors-CBD5yMro.mjs";
|
|
5
4
|
import { busyLockHeldSince, migrationLockHeldMessage } from "../database/migration-lock.mjs";
|
|
6
5
|
import { t as validateIdentifier } from "../validate-DANX1-Qi.mjs";
|
|
@@ -11,72 +10,69 @@ import "../after-PcEvMY_6.mjs";
|
|
|
11
10
|
import { t as OptionsRepository } from "../options-DhrI7eMv.mjs";
|
|
12
11
|
import { a as encodeBase64url } from "../base64-DvnNgP7e.mjs";
|
|
13
12
|
import { n as fingerprintKey, r as generateEncryptionKey, t as EmDashSecretsError } from "../secrets-CIi0nFiR.mjs";
|
|
14
|
-
import { t as ContentRepository } from "../content-
|
|
15
|
-
import "../object-cache-
|
|
13
|
+
import { t as ContentRepository } from "../content-RzEXY3QX.mjs";
|
|
14
|
+
import "../object-cache-Bo6DGaC9.mjs";
|
|
16
15
|
import { n as slugify } from "../slugify-T5GHH42D.mjs";
|
|
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 "../collection-slugs-cache-
|
|
33
|
-
import "../capture-triggers-
|
|
34
|
-
import "../activation-
|
|
35
|
-
import "../collection-deletion-
|
|
36
|
-
import { L as BlockTypeRegistry, n as SchemaRegistry } from "../registry-
|
|
37
|
-
import "../hash-
|
|
38
|
-
import "../zod-generator-
|
|
39
|
-
import { r as isTransferError, t as TransferError } from "../errors-
|
|
40
|
-
import "../canonical-
|
|
41
|
-
import { d as sha256Hex, i as createSha256, s as packageDigest } from "../digest-
|
|
42
|
-
import "../block-values-
|
|
43
|
-
import "../query-
|
|
44
|
-
import "../schema-
|
|
45
|
-
import "../relations-
|
|
46
|
-
import "../settings-
|
|
47
|
-
import "../schema-
|
|
48
|
-
import "../settings-
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import "../ssrf-
|
|
52
|
-
import {
|
|
53
|
-
import "../
|
|
54
|
-
import
|
|
55
|
-
import {
|
|
56
|
-
import "../identity-NVTOOQyq.mjs";
|
|
57
|
-
import { t as openNodeSqliteDatabase } from "../node-sqlite-compat-pWFw0lcc.mjs";
|
|
16
|
+
import "../request-cache-C4CIo5ad.mjs";
|
|
17
|
+
import "../url-Dn3IStq8.mjs";
|
|
18
|
+
import "../types-j6MBDjlZ.mjs";
|
|
19
|
+
import "../revision-CGkQA0e5.mjs";
|
|
20
|
+
import { t as MediaRepository } from "../media-CputjGE1.mjs";
|
|
21
|
+
import { t as TaxonomyRepository } from "../taxonomy-BesdHIwi.mjs";
|
|
22
|
+
import "../resolve-D-kqyKns.mjs";
|
|
23
|
+
import "../redirect-BvFKh8Sz.mjs";
|
|
24
|
+
import "../byline-registry-dvt4N3xV.mjs";
|
|
25
|
+
import "../field-defs-cache-DEkFYCDE.mjs";
|
|
26
|
+
import { t as BylineRepository } from "../byline-02tu_Uc-.mjs";
|
|
27
|
+
import "../staged-Bw5eHbKS.mjs";
|
|
28
|
+
import "../dist-Cfu8mMBs.mjs";
|
|
29
|
+
import "../fts-manager-DU03MxWu.mjs";
|
|
30
|
+
import { h as selectTaxonomyDefs, p as parseTaxonomyCollections } from "../loader-B_bcoE1h.mjs";
|
|
31
|
+
import "../collection-slugs-cache-BNRAPNiu.mjs";
|
|
32
|
+
import "../capture-triggers-CdZfvHtF.mjs";
|
|
33
|
+
import "../activation-DDuqAat2.mjs";
|
|
34
|
+
import "../collection-deletion-JecE26cS.mjs";
|
|
35
|
+
import { L as BlockTypeRegistry, n as SchemaRegistry } from "../registry-CtHRqVe-.mjs";
|
|
36
|
+
import "../hash-CY4QdeMJ.mjs";
|
|
37
|
+
import "../zod-generator-DnfG5sGQ.mjs";
|
|
38
|
+
import { r as isTransferError, t as TransferError } from "../errors-CjXd1LgH.mjs";
|
|
39
|
+
import "../canonical-CAecl1UQ.mjs";
|
|
40
|
+
import { d as sha256Hex, i as createSha256, s as packageDigest } from "../digest-DiYAoZpf.mjs";
|
|
41
|
+
import "../block-values-BrTrtA-v.mjs";
|
|
42
|
+
import "../query-DC3bv__4.mjs";
|
|
43
|
+
import "../schema-BZPj3kwZ.mjs";
|
|
44
|
+
import "../relations-CVI2nbrn.mjs";
|
|
45
|
+
import "../settings-B0zQj_Tj.mjs";
|
|
46
|
+
import "../schema-Berj5VQx.mjs";
|
|
47
|
+
import "../settings-BbVRRGDp.mjs";
|
|
48
|
+
import "../ssrf-DsmvZB80.mjs";
|
|
49
|
+
import { t as applySeed } from "../apply-C1kq5l7p.mjs";
|
|
50
|
+
import "../ssrf-tA45vIPX.mjs";
|
|
51
|
+
import { n as validateSeed } from "../validate-WkjGwBSO.mjs";
|
|
52
|
+
import { a as MigrationManifestValidationError, c as normalizeAstroI18n, i as getMigrationIntegrationMetadata, n as MIGRATION_CONFIG_SYMBOL, s as validateMigrationManifest, t as buildMigrationManifest } from "../manifest-builder-D7Y8iirE.mjs";
|
|
53
|
+
import "../identity-u3KgtUC9.mjs";
|
|
54
|
+
import { n as claimExplicitSeedOwnership } from "../ownership-DoeAIuTg.mjs";
|
|
58
55
|
import { LocalStorage } from "../storage/local.mjs";
|
|
59
|
-
import { t as
|
|
56
|
+
import { t as createDatabase } from "../connection-B9pIasFd.mjs";
|
|
57
|
+
import { t as convertDataForRead } from "../portable-text-BnRuiR1-.mjs";
|
|
60
58
|
import { createHeaderAwareFetch, customHeadersInterceptor, getCachedAccessToken, isAccessRedirect, resolveCustomHeaders, runCloudflaredLogin } from "../client/cf-access.mjs";
|
|
61
59
|
import { EmDashApiError, EmDashClient } from "../client/index.mjs";
|
|
62
|
-
import { r as
|
|
63
|
-
import
|
|
64
|
-
import "../
|
|
65
|
-
import
|
|
66
|
-
import "../
|
|
67
|
-
import "../
|
|
68
|
-
import { r as verifyReceiptDigest } from "../receipt-B-aU4hpJ.mjs";
|
|
60
|
+
import { a as parseIndexLine, n as unpackSitePackage, o as parseManifest, r as decodeUtf8, t as packSitePackage } from "../tar-lDI_fzLD.mjs";
|
|
61
|
+
import "../kinds-CXY-fwQ6.mjs";
|
|
62
|
+
import { t as MANIFEST_PATH } from "../paths-DiENGBx5.mjs";
|
|
63
|
+
import "../transformations-DdnpSdeC.mjs";
|
|
64
|
+
import "../version-DbT04wbH.mjs";
|
|
65
|
+
import { r as verifyReceiptDigest } from "../receipt-q1VK9jhj.mjs";
|
|
69
66
|
import { createRequire } from "node:module";
|
|
70
|
-
import {
|
|
67
|
+
import { sql } from "kysely";
|
|
71
68
|
import { z } from "zod";
|
|
72
69
|
import { ulid } from "ulidx";
|
|
73
|
-
import { createGzipDecoder, unpackTar } from "modern-tar";
|
|
74
70
|
import { pathToFileURL } from "node:url";
|
|
75
71
|
import { access, mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
76
72
|
import { basename, dirname, isAbsolute, join, parse, resolve } from "node:path";
|
|
77
73
|
import { createReadStream, createWriteStream, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
78
74
|
import { Readable, Writable } from "node:stream";
|
|
79
|
-
import { defineCommand,
|
|
75
|
+
import { defineCommand, runMain } from "citty";
|
|
80
76
|
import consola, { consola as consola$1 } from "consola";
|
|
81
77
|
import pc from "picocolors";
|
|
82
78
|
import { spawn } from "node:child_process";
|
|
@@ -241,45 +237,6 @@ function removeCredentials(baseUrl) {
|
|
|
241
237
|
}
|
|
242
238
|
return false;
|
|
243
239
|
}
|
|
244
|
-
function marketplaceKey(registryUrl) {
|
|
245
|
-
try {
|
|
246
|
-
return `marketplace:${new URL(registryUrl).origin}`;
|
|
247
|
-
} catch {
|
|
248
|
-
return `marketplace:${registryUrl}`;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Get stored marketplace credential for a registry URL.
|
|
253
|
-
*/
|
|
254
|
-
function getMarketplaceCredential(registryUrl) {
|
|
255
|
-
const key = marketplaceKey(registryUrl);
|
|
256
|
-
const cred = readStore()[key];
|
|
257
|
-
if (!cred || !("token" in cred)) return null;
|
|
258
|
-
if (new Date(cred.expiresAt) < /* @__PURE__ */ new Date()) return null;
|
|
259
|
-
return cred;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Save marketplace credential for a registry URL.
|
|
263
|
-
*/
|
|
264
|
-
function saveMarketplaceCredential(registryUrl, cred) {
|
|
265
|
-
const key = marketplaceKey(registryUrl);
|
|
266
|
-
const store = readStore();
|
|
267
|
-
store[key] = cred;
|
|
268
|
-
writeStore(store);
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Remove marketplace credential for a registry URL.
|
|
272
|
-
*/
|
|
273
|
-
function removeMarketplaceCredential(registryUrl) {
|
|
274
|
-
const key = marketplaceKey(registryUrl);
|
|
275
|
-
const store = readStore();
|
|
276
|
-
if (key in store) {
|
|
277
|
-
delete store[key];
|
|
278
|
-
writeStore(store);
|
|
279
|
-
return true;
|
|
280
|
-
}
|
|
281
|
-
return false;
|
|
282
|
-
}
|
|
283
240
|
|
|
284
241
|
//#endregion
|
|
285
242
|
//#region src/cli/client-factory.ts
|
|
@@ -731,7 +688,7 @@ const deleteCommand$2 = defineCommand({
|
|
|
731
688
|
}
|
|
732
689
|
}
|
|
733
690
|
});
|
|
734
|
-
const publishCommand
|
|
691
|
+
const publishCommand = defineCommand({
|
|
735
692
|
meta: {
|
|
736
693
|
name: "publish",
|
|
737
694
|
description: "Publish a content item"
|
|
@@ -910,7 +867,7 @@ const contentCommand = defineCommand({
|
|
|
910
867
|
create: createCommand$1,
|
|
911
868
|
update: updateCommand,
|
|
912
869
|
delete: deleteCommand$2,
|
|
913
|
-
publish: publishCommand
|
|
870
|
+
publish: publishCommand,
|
|
914
871
|
unpublish: unpublishCommand,
|
|
915
872
|
schedule: scheduleCommand,
|
|
916
873
|
restore: restoreCommand,
|
|
@@ -918,35 +875,6 @@ const contentCommand = defineCommand({
|
|
|
918
875
|
}
|
|
919
876
|
});
|
|
920
877
|
|
|
921
|
-
//#endregion
|
|
922
|
-
//#region src/database/connection.ts
|
|
923
|
-
/**
|
|
924
|
-
* Creates a Kysely database instance
|
|
925
|
-
* Supports:
|
|
926
|
-
* - file:./path/to/db.sqlite (local SQLite)
|
|
927
|
-
* - :memory: (in-memory SQLite for testing)
|
|
928
|
-
* - libsql://... (Turso/libSQL with auth token) - TODO
|
|
929
|
-
*/
|
|
930
|
-
function createDatabase(config) {
|
|
931
|
-
try {
|
|
932
|
-
if (config.url.startsWith("file:") || config.url === ":memory:") return new Kysely({
|
|
933
|
-
dialect: new SqliteDialect({ database: openNodeSqliteDatabase(config.url === ":memory:" ? ":memory:" : config.url.replace("file:", ""), {
|
|
934
|
-
journalMode: "wal",
|
|
935
|
-
readOnly: config.readOnly
|
|
936
|
-
}) }),
|
|
937
|
-
log: kyselyLogOption()
|
|
938
|
-
});
|
|
939
|
-
if (config.url.startsWith("libsql:")) {
|
|
940
|
-
if (!config.authToken) throw new EmDashDatabaseError("Auth token required for remote libSQL database");
|
|
941
|
-
throw new EmDashDatabaseError("LibSQL not yet implemented");
|
|
942
|
-
}
|
|
943
|
-
throw new EmDashDatabaseError(`Unsupported database URL scheme: ${config.url}`);
|
|
944
|
-
} catch (error) {
|
|
945
|
-
if (error instanceof EmDashDatabaseError) throw error;
|
|
946
|
-
throw new EmDashDatabaseError("Failed to create database", error);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
|
|
950
878
|
//#endregion
|
|
951
879
|
//#region src/cli/commands/dev.ts
|
|
952
880
|
/**
|
|
@@ -3083,7 +3011,9 @@ async function loadProjectConfig(projectRoot, configFile) {
|
|
|
3083
3011
|
},
|
|
3084
3012
|
configFile,
|
|
3085
3013
|
projectRoot,
|
|
3086
|
-
"silent"
|
|
3014
|
+
"silent",
|
|
3015
|
+
void 0,
|
|
3016
|
+
"runner"
|
|
3087
3017
|
]);
|
|
3088
3018
|
if (!isRecord$1(loaded) || !Object.hasOwn(loaded, "config")) throw new MigrationConfigLoaderError(`Vite could not load Astro config: ${configFile}`);
|
|
3089
3019
|
return loaded.config;
|
|
@@ -3566,789 +3496,6 @@ const migrateCommand = defineCommand({
|
|
|
3566
3496
|
}
|
|
3567
3497
|
});
|
|
3568
3498
|
|
|
3569
|
-
//#endregion
|
|
3570
|
-
//#region src/cli/commands/plugin-init.ts
|
|
3571
|
-
/**
|
|
3572
|
-
* emdash plugin init
|
|
3573
|
-
*
|
|
3574
|
-
* Scaffold a new EmDash plugin. Generates the sandboxed-format boilerplate:
|
|
3575
|
-
* src/index.ts -- descriptor factory
|
|
3576
|
-
* src/sandbox-entry.ts -- definePlugin({ hooks, routes })
|
|
3577
|
-
* package.json
|
|
3578
|
-
* tsconfig.json
|
|
3579
|
-
*
|
|
3580
|
-
* Use --format=native (or --native) to generate native-format boilerplate
|
|
3581
|
-
* instead (createPlugin + React admin). When neither is passed and stdout
|
|
3582
|
-
* is a TTY, the user is prompted to choose.
|
|
3583
|
-
*
|
|
3584
|
-
*/
|
|
3585
|
-
const SLUG_RE = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
|
|
3586
|
-
const SCOPE_RE = /^@[^/]+\//;
|
|
3587
|
-
const pluginInitCommand = defineCommand({
|
|
3588
|
-
meta: {
|
|
3589
|
-
name: "init",
|
|
3590
|
-
description: "Scaffold a new plugin"
|
|
3591
|
-
},
|
|
3592
|
-
args: {
|
|
3593
|
-
dir: {
|
|
3594
|
-
type: "string",
|
|
3595
|
-
description: "Directory to create the plugin in (default: current directory)",
|
|
3596
|
-
default: "."
|
|
3597
|
-
},
|
|
3598
|
-
name: {
|
|
3599
|
-
type: "string",
|
|
3600
|
-
description: "Plugin name/id (e.g. my-plugin or @org/my-plugin)"
|
|
3601
|
-
},
|
|
3602
|
-
format: {
|
|
3603
|
-
type: "string",
|
|
3604
|
-
description: "Plugin format: sandboxed or native. Prompts when running interactively if not set.",
|
|
3605
|
-
valueHint: "sandboxed|native"
|
|
3606
|
-
},
|
|
3607
|
-
native: {
|
|
3608
|
-
type: "boolean",
|
|
3609
|
-
description: "Shortcut for --format=native",
|
|
3610
|
-
default: false
|
|
3611
|
-
}
|
|
3612
|
-
},
|
|
3613
|
-
async run({ args }) {
|
|
3614
|
-
const targetDir = resolve(args.dir);
|
|
3615
|
-
const format = await resolveFormat(args.format, args.native);
|
|
3616
|
-
if (!format) {
|
|
3617
|
-
consola.info("Cancelled");
|
|
3618
|
-
return;
|
|
3619
|
-
}
|
|
3620
|
-
const isNative = format === "native";
|
|
3621
|
-
let pluginName = args.name || basename(targetDir);
|
|
3622
|
-
if (!pluginName || pluginName === ".") pluginName = basename(resolve("."));
|
|
3623
|
-
const slug = pluginName.replace(SCOPE_RE, "");
|
|
3624
|
-
if (!SLUG_RE.test(slug)) {
|
|
3625
|
-
consola.error(`Invalid plugin name "${pluginName}". Use lowercase letters, numbers, and hyphens (e.g. my-plugin).`);
|
|
3626
|
-
process.exit(1);
|
|
3627
|
-
}
|
|
3628
|
-
const srcDir = join(targetDir, "src");
|
|
3629
|
-
if (await fileExists$4(join(targetDir, "package.json"))) {
|
|
3630
|
-
consola.error(`package.json already exists in ${targetDir}`);
|
|
3631
|
-
process.exit(1);
|
|
3632
|
-
}
|
|
3633
|
-
consola.start(`Scaffolding ${isNative ? "native" : "sandboxed"} plugin: ${pluginName}`);
|
|
3634
|
-
await mkdir(srcDir, { recursive: true });
|
|
3635
|
-
if (isNative) await scaffoldNative(targetDir, srcDir, pluginName, slug);
|
|
3636
|
-
else await scaffoldStandard(targetDir, srcDir, pluginName, slug);
|
|
3637
|
-
consola.success(`Plugin scaffolded in ${targetDir}`);
|
|
3638
|
-
consola.info("Next steps:");
|
|
3639
|
-
const steps = [];
|
|
3640
|
-
if (args.dir !== ".") steps.push(`cd ${args.dir}`);
|
|
3641
|
-
steps.push("pnpm install");
|
|
3642
|
-
steps.push(isNative ? "Edit src/index.ts to add hooks and routes" : "Edit src/sandbox-entry.ts to add hooks and routes");
|
|
3643
|
-
steps.push("pnpm build");
|
|
3644
|
-
if (!isNative) steps.push("emdash plugin validate --dir .");
|
|
3645
|
-
steps.forEach((step, i) => consola.info(` ${i + 1}. ${step}`));
|
|
3646
|
-
}
|
|
3647
|
-
});
|
|
3648
|
-
async function resolveFormat(formatArg, nativeFlag) {
|
|
3649
|
-
if (formatArg) {
|
|
3650
|
-
const normalized = formatArg.toLowerCase();
|
|
3651
|
-
let parsed;
|
|
3652
|
-
if (normalized === "native") parsed = "native";
|
|
3653
|
-
else if (normalized === "sandboxed" || normalized === "standard") parsed = "standard";
|
|
3654
|
-
else {
|
|
3655
|
-
consola.error(`Invalid --format "${formatArg}". Use "sandboxed" or "native".`);
|
|
3656
|
-
process.exit(1);
|
|
3657
|
-
}
|
|
3658
|
-
if (nativeFlag && parsed !== "native") {
|
|
3659
|
-
consola.error(`Conflicting flags: --native and --format=${formatArg}. Pass only one.`);
|
|
3660
|
-
process.exit(1);
|
|
3661
|
-
}
|
|
3662
|
-
return parsed;
|
|
3663
|
-
}
|
|
3664
|
-
if (nativeFlag) return "native";
|
|
3665
|
-
if (!process.stdout.isTTY) return "standard";
|
|
3666
|
-
const choice = await consola.prompt("Which plugin format?", {
|
|
3667
|
-
type: "select",
|
|
3668
|
-
initial: "standard",
|
|
3669
|
-
options: [{
|
|
3670
|
-
label: "Sandboxed",
|
|
3671
|
-
value: "standard",
|
|
3672
|
-
hint: "runs in an isolated sandbox; safe to install from the marketplace"
|
|
3673
|
-
}, {
|
|
3674
|
-
label: "Native",
|
|
3675
|
-
value: "native",
|
|
3676
|
-
hint: "full runtime access; install from npm"
|
|
3677
|
-
}],
|
|
3678
|
-
cancel: "null"
|
|
3679
|
-
});
|
|
3680
|
-
if (choice === null) return null;
|
|
3681
|
-
return choice;
|
|
3682
|
-
}
|
|
3683
|
-
function camelCase(slug) {
|
|
3684
|
-
return slug.split("-").map((s, i) => i === 0 ? s : s[0].toUpperCase() + s.slice(1)).join("");
|
|
3685
|
-
}
|
|
3686
|
-
function pascalCase(slug) {
|
|
3687
|
-
return slug.split("-").map((s) => s[0].toUpperCase() + s.slice(1)).join("");
|
|
3688
|
-
}
|
|
3689
|
-
const TSCONFIG = {
|
|
3690
|
-
compilerOptions: {
|
|
3691
|
-
target: "ES2022",
|
|
3692
|
-
module: "preserve",
|
|
3693
|
-
moduleResolution: "bundler",
|
|
3694
|
-
strict: true,
|
|
3695
|
-
esModuleInterop: true,
|
|
3696
|
-
declaration: true,
|
|
3697
|
-
outDir: "./dist",
|
|
3698
|
-
rootDir: "./src"
|
|
3699
|
-
},
|
|
3700
|
-
include: ["src/**/*"],
|
|
3701
|
-
exclude: ["node_modules", "dist"]
|
|
3702
|
-
};
|
|
3703
|
-
const TSDOWN_VERSION = "^0.20.0";
|
|
3704
|
-
const TYPESCRIPT_VERSION = "^5.9.0";
|
|
3705
|
-
async function scaffoldStandard(targetDir, srcDir, pluginName, slug) {
|
|
3706
|
-
const fnName = camelCase(slug);
|
|
3707
|
-
await writeFile(join(targetDir, "package.json"), JSON.stringify({
|
|
3708
|
-
name: pluginName,
|
|
3709
|
-
version: "0.1.0",
|
|
3710
|
-
type: "module",
|
|
3711
|
-
main: "./dist/index.mjs",
|
|
3712
|
-
exports: {
|
|
3713
|
-
".": {
|
|
3714
|
-
types: "./dist/index.d.mts",
|
|
3715
|
-
import: "./dist/index.mjs"
|
|
3716
|
-
},
|
|
3717
|
-
"./sandbox": {
|
|
3718
|
-
types: "./dist/sandbox-entry.d.mts",
|
|
3719
|
-
import: "./dist/sandbox-entry.mjs"
|
|
3720
|
-
}
|
|
3721
|
-
},
|
|
3722
|
-
files: ["dist"],
|
|
3723
|
-
scripts: {
|
|
3724
|
-
build: "tsdown src/index.ts src/sandbox-entry.ts --format esm --dts --clean",
|
|
3725
|
-
dev: "tsdown src/index.ts src/sandbox-entry.ts --format esm --dts --watch",
|
|
3726
|
-
typecheck: "tsc --noEmit"
|
|
3727
|
-
},
|
|
3728
|
-
keywords: ["emdash", "emdash-plugin"],
|
|
3729
|
-
license: "MIT",
|
|
3730
|
-
peerDependencies: { emdash: "*" },
|
|
3731
|
-
devDependencies: {
|
|
3732
|
-
emdash: "*",
|
|
3733
|
-
tsdown: TSDOWN_VERSION,
|
|
3734
|
-
typescript: TYPESCRIPT_VERSION
|
|
3735
|
-
}
|
|
3736
|
-
}, null, " ") + "\n");
|
|
3737
|
-
await writeFile(join(targetDir, "tsconfig.json"), JSON.stringify(TSCONFIG, null, " ") + "\n");
|
|
3738
|
-
await writeFile(join(srcDir, "index.ts"), `import type { PluginDescriptor } from "emdash";
|
|
3739
|
-
|
|
3740
|
-
export function ${fnName}Plugin(): PluginDescriptor {
|
|
3741
|
-
\treturn {
|
|
3742
|
-
\t\tid: "${slug}",
|
|
3743
|
-
\t\tversion: "0.1.0",
|
|
3744
|
-
\t\tformat: "standard",
|
|
3745
|
-
\t\tentrypoint: "${pluginName}/sandbox",
|
|
3746
|
-
|
|
3747
|
-
\t\tcapabilities: ["content:read"],
|
|
3748
|
-
\t\tstorage: {
|
|
3749
|
-
\t\t\tevents: { indexes: ["timestamp"] },
|
|
3750
|
-
\t\t},
|
|
3751
|
-
\t};
|
|
3752
|
-
}
|
|
3753
|
-
`);
|
|
3754
|
-
await writeFile(join(srcDir, "sandbox-entry.ts"), `import { definePlugin } from "emdash";
|
|
3755
|
-
import type { PluginContext } from "emdash";
|
|
3756
|
-
|
|
3757
|
-
interface ContentSaveEvent {
|
|
3758
|
-
\tcollection: string;
|
|
3759
|
-
\tcontent: { id: string };
|
|
3760
|
-
\tisNew: boolean;
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
|
-
export default definePlugin({
|
|
3764
|
-
\thooks: {
|
|
3765
|
-
\t\t"content:afterSave": {
|
|
3766
|
-
\t\t\thandler: async (event: ContentSaveEvent, ctx: PluginContext) => {
|
|
3767
|
-
\t\t\t\tctx.log.info("Content saved", {
|
|
3768
|
-
\t\t\t\t\tcollection: event.collection,
|
|
3769
|
-
\t\t\t\t\tid: event.content.id,
|
|
3770
|
-
\t\t\t\t});
|
|
3771
|
-
|
|
3772
|
-
\t\t\t\tawait ctx.storage.events.put(\`save-\${Date.now()}\`, {
|
|
3773
|
-
\t\t\t\t\ttimestamp: new Date().toISOString(),
|
|
3774
|
-
\t\t\t\t\tcollection: event.collection,
|
|
3775
|
-
\t\t\t\t\tcontentId: event.content.id,
|
|
3776
|
-
\t\t\t\t});
|
|
3777
|
-
\t\t\t},
|
|
3778
|
-
\t\t},
|
|
3779
|
-
\t},
|
|
3780
|
-
|
|
3781
|
-
\troutes: {
|
|
3782
|
-
\t\trecent: {
|
|
3783
|
-
\t\t\thandler: async (_routeCtx, ctx: PluginContext) => {
|
|
3784
|
-
\t\t\t\tconst result = await ctx.storage.events.query({
|
|
3785
|
-
\t\t\t\t\torderBy: { timestamp: "desc" },
|
|
3786
|
-
\t\t\t\t\tlimit: 10,
|
|
3787
|
-
\t\t\t\t});
|
|
3788
|
-
\t\t\t\treturn { events: result.items };
|
|
3789
|
-
\t\t\t},
|
|
3790
|
-
\t\t},
|
|
3791
|
-
\t},
|
|
3792
|
-
});
|
|
3793
|
-
`);
|
|
3794
|
-
}
|
|
3795
|
-
async function scaffoldNative(targetDir, srcDir, pluginName, slug) {
|
|
3796
|
-
const fnName = camelCase(slug);
|
|
3797
|
-
const typeName = pascalCase(slug);
|
|
3798
|
-
await writeFile(join(targetDir, "package.json"), JSON.stringify({
|
|
3799
|
-
name: pluginName,
|
|
3800
|
-
version: "0.1.0",
|
|
3801
|
-
type: "module",
|
|
3802
|
-
main: "./dist/index.mjs",
|
|
3803
|
-
exports: { ".": {
|
|
3804
|
-
types: "./dist/index.d.mts",
|
|
3805
|
-
import: "./dist/index.mjs"
|
|
3806
|
-
} },
|
|
3807
|
-
files: ["dist"],
|
|
3808
|
-
scripts: {
|
|
3809
|
-
build: "tsdown src/index.ts --format esm --dts --clean",
|
|
3810
|
-
dev: "tsdown src/index.ts --format esm --dts --watch",
|
|
3811
|
-
typecheck: "tsc --noEmit"
|
|
3812
|
-
},
|
|
3813
|
-
keywords: ["emdash", "emdash-plugin"],
|
|
3814
|
-
license: "MIT",
|
|
3815
|
-
peerDependencies: { emdash: "*" },
|
|
3816
|
-
devDependencies: {
|
|
3817
|
-
emdash: "*",
|
|
3818
|
-
tsdown: TSDOWN_VERSION,
|
|
3819
|
-
typescript: TYPESCRIPT_VERSION
|
|
3820
|
-
}
|
|
3821
|
-
}, null, " ") + "\n");
|
|
3822
|
-
await writeFile(join(targetDir, "tsconfig.json"), JSON.stringify(TSCONFIG, null, " ") + "\n");
|
|
3823
|
-
await writeFile(join(srcDir, "index.ts"), `import { definePlugin } from "emdash";
|
|
3824
|
-
import type { PluginDescriptor } from "emdash";
|
|
3825
|
-
|
|
3826
|
-
export interface ${typeName}Options {
|
|
3827
|
-
\tenabled?: boolean;
|
|
3828
|
-
}
|
|
3829
|
-
|
|
3830
|
-
export function ${fnName}Plugin(options: ${typeName}Options = {}): PluginDescriptor<${typeName}Options> {
|
|
3831
|
-
\treturn {
|
|
3832
|
-
\t\tid: "${slug}",
|
|
3833
|
-
\t\tversion: "0.1.0",
|
|
3834
|
-
\t\tformat: "native",
|
|
3835
|
-
\t\tentrypoint: "${pluginName}",
|
|
3836
|
-
\t\toptions,
|
|
3837
|
-
\t};
|
|
3838
|
-
}
|
|
3839
|
-
|
|
3840
|
-
export function createPlugin(options: ${typeName}Options = {}) {
|
|
3841
|
-
\treturn definePlugin({
|
|
3842
|
-
\t\tid: "${slug}",
|
|
3843
|
-
\t\tversion: "0.1.0",
|
|
3844
|
-
|
|
3845
|
-
\t\tcapabilities: ["content:read"],
|
|
3846
|
-
\t\tstorage: {
|
|
3847
|
-
\t\t\tevents: { indexes: ["createdAt"] },
|
|
3848
|
-
\t\t},
|
|
3849
|
-
|
|
3850
|
-
\t\thooks: {
|
|
3851
|
-
\t\t\t"content:afterSave": async (event, ctx) => {
|
|
3852
|
-
\t\t\t\tif (options.enabled === false) return;
|
|
3853
|
-
\t\t\t\tawait ctx.storage.events.put(\`evt_\${Date.now()}\`, {
|
|
3854
|
-
\t\t\t\t\tcollection: event.collection,
|
|
3855
|
-
\t\t\t\t\tcontentId: event.content.id,
|
|
3856
|
-
\t\t\t\t\tcreatedAt: new Date().toISOString(),
|
|
3857
|
-
\t\t\t\t});
|
|
3858
|
-
\t\t\t},
|
|
3859
|
-
\t\t},
|
|
3860
|
-
|
|
3861
|
-
\t\troutes: {
|
|
3862
|
-
\t\t\trecent: {
|
|
3863
|
-
\t\t\t\thandler: async (ctx) => {
|
|
3864
|
-
\t\t\t\t\tconst result = await ctx.storage.events.query({
|
|
3865
|
-
\t\t\t\t\t\torderBy: { createdAt: "desc" },
|
|
3866
|
-
\t\t\t\t\t\tlimit: 10,
|
|
3867
|
-
\t\t\t\t\t});
|
|
3868
|
-
\t\t\t\t\treturn { events: result.items };
|
|
3869
|
-
\t\t\t\t},
|
|
3870
|
-
\t\t\t},
|
|
3871
|
-
\t\t},
|
|
3872
|
-
\t});
|
|
3873
|
-
}
|
|
3874
|
-
|
|
3875
|
-
export default createPlugin;
|
|
3876
|
-
`);
|
|
3877
|
-
}
|
|
3878
|
-
|
|
3879
|
-
//#endregion
|
|
3880
|
-
//#region src/cli/commands/plugin-validate.ts
|
|
3881
|
-
/**
|
|
3882
|
-
* emdash plugin validate
|
|
3883
|
-
*
|
|
3884
|
-
* Runs bundle validation without producing a tarball.
|
|
3885
|
-
* Thin wrapper around `emdash plugin bundle --validate-only`.
|
|
3886
|
-
*
|
|
3887
|
-
*/
|
|
3888
|
-
const pluginValidateCommand = defineCommand({
|
|
3889
|
-
meta: {
|
|
3890
|
-
name: "validate",
|
|
3891
|
-
description: "Validate a plugin without producing a tarball (same checks as bundle)"
|
|
3892
|
-
},
|
|
3893
|
-
args: { dir: {
|
|
3894
|
-
type: "string",
|
|
3895
|
-
description: "Plugin directory (default: current directory)",
|
|
3896
|
-
default: "."
|
|
3897
|
-
} },
|
|
3898
|
-
async run({ args }) {
|
|
3899
|
-
await runCommand(bundleCommand, { rawArgs: [
|
|
3900
|
-
"--dir",
|
|
3901
|
-
args.dir,
|
|
3902
|
-
"--validateOnly"
|
|
3903
|
-
] });
|
|
3904
|
-
}
|
|
3905
|
-
});
|
|
3906
|
-
|
|
3907
|
-
//#endregion
|
|
3908
|
-
//#region src/cli/commands/publish.ts
|
|
3909
|
-
/**
|
|
3910
|
-
* emdash plugin publish
|
|
3911
|
-
*
|
|
3912
|
-
* Publishes a plugin tarball to the EmDash Marketplace.
|
|
3913
|
-
*
|
|
3914
|
-
* Flow:
|
|
3915
|
-
* 1. Resolve tarball (from --tarball path, or build via `emdash plugin bundle`)
|
|
3916
|
-
* 2. Read manifest.json from tarball to show summary
|
|
3917
|
-
* 3. Authenticate (stored credential or GitHub device flow)
|
|
3918
|
-
* 4. Pre-publish validation (check plugin exists, version not published)
|
|
3919
|
-
* 5. Upload via multipart POST
|
|
3920
|
-
* 6. Display audit results
|
|
3921
|
-
*/
|
|
3922
|
-
const DEFAULT_REGISTRY = "https://marketplace.emdashcms.com";
|
|
3923
|
-
/**
|
|
3924
|
-
* Authenticate with the marketplace via GitHub Device Flow.
|
|
3925
|
-
* Returns the marketplace JWT and author info.
|
|
3926
|
-
*/
|
|
3927
|
-
async function authenticateViaDeviceFlow(registryUrl) {
|
|
3928
|
-
consola.start("Fetching auth configuration...");
|
|
3929
|
-
const discoveryRes = await fetch(new URL("/api/v1/auth/discovery", registryUrl));
|
|
3930
|
-
if (!discoveryRes.ok) throw new Error(`Marketplace unreachable: ${discoveryRes.status} ${discoveryRes.statusText}`);
|
|
3931
|
-
const discovery = await discoveryRes.json();
|
|
3932
|
-
const deviceRes = await fetch(discovery.github.deviceAuthorizationEndpoint, {
|
|
3933
|
-
method: "POST",
|
|
3934
|
-
headers: {
|
|
3935
|
-
"Content-Type": "application/json",
|
|
3936
|
-
Accept: "application/json"
|
|
3937
|
-
},
|
|
3938
|
-
body: JSON.stringify({
|
|
3939
|
-
client_id: discovery.github.clientId,
|
|
3940
|
-
scope: "read:user user:email"
|
|
3941
|
-
})
|
|
3942
|
-
});
|
|
3943
|
-
if (!deviceRes.ok) throw new Error(`GitHub device flow failed: ${deviceRes.status}`);
|
|
3944
|
-
const deviceCode = await deviceRes.json();
|
|
3945
|
-
console.log();
|
|
3946
|
-
consola.info("Open your browser to:");
|
|
3947
|
-
console.log(` ${pc.cyan(pc.bold(deviceCode.verification_uri))}`);
|
|
3948
|
-
console.log();
|
|
3949
|
-
consola.info(`Enter code: ${pc.yellow(pc.bold(deviceCode.user_code))}`);
|
|
3950
|
-
console.log();
|
|
3951
|
-
try {
|
|
3952
|
-
const { execFile } = await import("node:child_process");
|
|
3953
|
-
if (process.platform === "darwin") execFile("open", [deviceCode.verification_uri]);
|
|
3954
|
-
else if (process.platform === "win32") execFile("cmd", [
|
|
3955
|
-
"/c",
|
|
3956
|
-
"start",
|
|
3957
|
-
"",
|
|
3958
|
-
deviceCode.verification_uri
|
|
3959
|
-
]);
|
|
3960
|
-
else execFile("xdg-open", [deviceCode.verification_uri]);
|
|
3961
|
-
} catch {}
|
|
3962
|
-
consola.start("Waiting for authorization...");
|
|
3963
|
-
const githubToken = await pollGitHubDeviceFlow(discovery.github.tokenEndpoint, discovery.github.clientId, deviceCode.device_code, deviceCode.interval, deviceCode.expires_in);
|
|
3964
|
-
consola.start("Authenticating with marketplace...");
|
|
3965
|
-
const deviceTokenUrl = new URL(discovery.marketplace.deviceTokenEndpoint, registryUrl);
|
|
3966
|
-
const authRes = await fetch(deviceTokenUrl, {
|
|
3967
|
-
method: "POST",
|
|
3968
|
-
headers: { "Content-Type": "application/json" },
|
|
3969
|
-
body: JSON.stringify({ access_token: githubToken })
|
|
3970
|
-
});
|
|
3971
|
-
if (!authRes.ok) {
|
|
3972
|
-
const body = await authRes.json().catch(() => ({}));
|
|
3973
|
-
throw new Error(`Marketplace auth failed: ${body.error ?? authRes.statusText}`);
|
|
3974
|
-
}
|
|
3975
|
-
return await authRes.json();
|
|
3976
|
-
}
|
|
3977
|
-
async function pollGitHubDeviceFlow(tokenEndpoint, clientId, deviceCode, interval, expiresIn) {
|
|
3978
|
-
const deadline = Date.now() + expiresIn * 1e3;
|
|
3979
|
-
let currentInterval = interval;
|
|
3980
|
-
while (Date.now() < deadline) {
|
|
3981
|
-
await new Promise((r) => setTimeout(r, currentInterval * 1e3));
|
|
3982
|
-
const body = await (await fetch(tokenEndpoint, {
|
|
3983
|
-
method: "POST",
|
|
3984
|
-
headers: {
|
|
3985
|
-
"Content-Type": "application/json",
|
|
3986
|
-
Accept: "application/json"
|
|
3987
|
-
},
|
|
3988
|
-
body: JSON.stringify({
|
|
3989
|
-
client_id: clientId,
|
|
3990
|
-
device_code: deviceCode,
|
|
3991
|
-
grant_type: "urn:ietf:params:oauth:grant-type:device_code"
|
|
3992
|
-
})
|
|
3993
|
-
})).json();
|
|
3994
|
-
if (body.access_token) return body.access_token;
|
|
3995
|
-
if (body.error === "authorization_pending") continue;
|
|
3996
|
-
if (body.error === "slow_down") {
|
|
3997
|
-
currentInterval = body.interval ?? currentInterval + 5;
|
|
3998
|
-
continue;
|
|
3999
|
-
}
|
|
4000
|
-
if (body.error === "expired_token") throw new Error("Device code expired. Please try again.");
|
|
4001
|
-
if (body.error === "access_denied") throw new Error("Authorization was denied.");
|
|
4002
|
-
throw new Error(`GitHub token exchange failed: ${body.error ?? "unknown error"}`);
|
|
4003
|
-
}
|
|
4004
|
-
throw new Error("Device code expired (timeout). Please try again.");
|
|
4005
|
-
}
|
|
4006
|
-
const manifestSummarySchema = pluginManifestBaseSchema.pick({
|
|
4007
|
-
id: true,
|
|
4008
|
-
version: true,
|
|
4009
|
-
capabilities: true,
|
|
4010
|
-
allowedHosts: true
|
|
4011
|
-
});
|
|
4012
|
-
/**
|
|
4013
|
-
* Read manifest.json from a tarball without fully extracting it.
|
|
4014
|
-
*/
|
|
4015
|
-
async function readManifestFromTarball(tarballPath) {
|
|
4016
|
-
const data = await readFile(tarballPath);
|
|
4017
|
-
const manifest = (await unpackTar(new ReadableStream({ start(controller) {
|
|
4018
|
-
controller.enqueue(new Uint8Array(data.buffer, data.byteOffset, data.byteLength));
|
|
4019
|
-
controller.close();
|
|
4020
|
-
} }).pipeThrough(createGzipDecoder()), { filter: (header) => header.name === "manifest.json" })).find((e) => e.header.name === "manifest.json");
|
|
4021
|
-
if (!manifest?.data) throw new Error("Tarball does not contain manifest.json");
|
|
4022
|
-
const content = new TextDecoder().decode(manifest.data);
|
|
4023
|
-
const parsed = JSON.parse(content);
|
|
4024
|
-
const result = manifestSummarySchema.safeParse(parsed);
|
|
4025
|
-
if (!result.success) throw new Error(`Invalid manifest.json: ${result.error.message}`);
|
|
4026
|
-
return result.data;
|
|
4027
|
-
}
|
|
4028
|
-
const POLL_INTERVAL_MS = 3e3;
|
|
4029
|
-
const POLL_TIMEOUT_MS = 12e4;
|
|
4030
|
-
/**
|
|
4031
|
-
* Poll the version endpoint until status leaves "pending" or timeout.
|
|
4032
|
-
* Returns the final version data, or null on timeout.
|
|
4033
|
-
*/
|
|
4034
|
-
async function pollVersionStatus(versionUrl, token) {
|
|
4035
|
-
const deadline = Date.now() + POLL_TIMEOUT_MS;
|
|
4036
|
-
while (Date.now() < deadline) {
|
|
4037
|
-
await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
|
|
4038
|
-
try {
|
|
4039
|
-
const res = await fetch(versionUrl, { headers: { Authorization: `Bearer ${token}` } });
|
|
4040
|
-
if (!res.ok) continue;
|
|
4041
|
-
const data = await res.json();
|
|
4042
|
-
if (data.status !== "pending") return data;
|
|
4043
|
-
} catch {}
|
|
4044
|
-
}
|
|
4045
|
-
return null;
|
|
4046
|
-
}
|
|
4047
|
-
function displayAuditResults(version) {
|
|
4048
|
-
const statusColor = version.status === "published" ? pc.green : version.status === "flagged" ? pc.yellow : pc.red;
|
|
4049
|
-
consola.info(` Status: ${statusColor(version.status)}`);
|
|
4050
|
-
if (version.audit_verdict) {
|
|
4051
|
-
const verdictColor = version.audit_verdict === "pass" ? pc.green : version.audit_verdict === "warn" ? pc.yellow : pc.red;
|
|
4052
|
-
consola.info(` Audit: ${verdictColor(version.audit_verdict)}`);
|
|
4053
|
-
}
|
|
4054
|
-
if (version.image_audit_verdict) {
|
|
4055
|
-
const verdictColor = version.image_audit_verdict === "pass" ? pc.green : version.image_audit_verdict === "warn" ? pc.yellow : pc.red;
|
|
4056
|
-
consola.info(` Image audit: ${verdictColor(version.image_audit_verdict)}`);
|
|
4057
|
-
}
|
|
4058
|
-
}
|
|
4059
|
-
function displayInlineAuditResults(audit, imageAudit) {
|
|
4060
|
-
const verdictColor = audit.verdict === "pass" ? pc.green : audit.verdict === "warn" ? pc.yellow : pc.red;
|
|
4061
|
-
consola.info(` Audit: ${verdictColor(audit.verdict)} (risk: ${audit.riskScore}/100)`);
|
|
4062
|
-
if (audit.findings.length > 0) for (const finding of audit.findings) {
|
|
4063
|
-
const icon = finding.severity === "high" ? pc.red("!") : pc.yellow("~");
|
|
4064
|
-
consola.info(` ${icon} [${finding.category}] ${finding.description}`);
|
|
4065
|
-
}
|
|
4066
|
-
if (imageAudit) {
|
|
4067
|
-
const imgColor = imageAudit.verdict === "pass" ? pc.green : imageAudit.verdict === "warn" ? pc.yellow : pc.red;
|
|
4068
|
-
consola.info(` Image audit: ${imgColor(imageAudit.verdict)}`);
|
|
4069
|
-
}
|
|
4070
|
-
}
|
|
4071
|
-
const publishCommand = defineCommand({
|
|
4072
|
-
meta: {
|
|
4073
|
-
name: "publish",
|
|
4074
|
-
description: "Publish a plugin to the EmDash Marketplace"
|
|
4075
|
-
},
|
|
4076
|
-
args: {
|
|
4077
|
-
tarball: {
|
|
4078
|
-
type: "string",
|
|
4079
|
-
description: "Path to plugin tarball (default: build first via `emdash plugin bundle`)"
|
|
4080
|
-
},
|
|
4081
|
-
dir: {
|
|
4082
|
-
type: "string",
|
|
4083
|
-
description: "Plugin directory (used with --build, default: current directory)",
|
|
4084
|
-
default: process.cwd()
|
|
4085
|
-
},
|
|
4086
|
-
build: {
|
|
4087
|
-
type: "boolean",
|
|
4088
|
-
description: "Build the plugin before publishing",
|
|
4089
|
-
default: false
|
|
4090
|
-
},
|
|
4091
|
-
registry: {
|
|
4092
|
-
type: "string",
|
|
4093
|
-
description: "Marketplace registry URL",
|
|
4094
|
-
default: DEFAULT_REGISTRY
|
|
4095
|
-
},
|
|
4096
|
-
"no-wait": {
|
|
4097
|
-
type: "boolean",
|
|
4098
|
-
description: "Exit immediately after upload without waiting for audit (useful for CI)",
|
|
4099
|
-
default: false
|
|
4100
|
-
}
|
|
4101
|
-
},
|
|
4102
|
-
async run({ args }) {
|
|
4103
|
-
const registryUrl = args.registry;
|
|
4104
|
-
let tarballPath;
|
|
4105
|
-
if (args.tarball) tarballPath = resolve(args.tarball);
|
|
4106
|
-
else if (args.build) {
|
|
4107
|
-
consola.start("Building plugin...");
|
|
4108
|
-
const pluginDir = resolve(args.dir);
|
|
4109
|
-
try {
|
|
4110
|
-
const { runCommand } = await import("citty");
|
|
4111
|
-
const { bundleCommand } = await import("../bundle-Db1iNMv_.mjs").then((n) => n.n);
|
|
4112
|
-
await runCommand(bundleCommand, { rawArgs: ["--dir", pluginDir] });
|
|
4113
|
-
} catch {
|
|
4114
|
-
consola.error("Build failed");
|
|
4115
|
-
process.exit(1);
|
|
4116
|
-
}
|
|
4117
|
-
const { readdir } = await import("node:fs/promises");
|
|
4118
|
-
const distDir = resolve(pluginDir, "dist");
|
|
4119
|
-
const tarball = (await readdir(distDir)).find((f) => f.endsWith(".tar.gz"));
|
|
4120
|
-
if (!tarball) {
|
|
4121
|
-
consola.error("Build succeeded but no .tar.gz found in dist/");
|
|
4122
|
-
process.exit(1);
|
|
4123
|
-
}
|
|
4124
|
-
tarballPath = resolve(distDir, tarball);
|
|
4125
|
-
} else {
|
|
4126
|
-
const pluginDir = resolve(args.dir);
|
|
4127
|
-
const { readdir } = await import("node:fs/promises");
|
|
4128
|
-
try {
|
|
4129
|
-
const distDir = resolve(pluginDir, "dist");
|
|
4130
|
-
const tarball = (await readdir(distDir)).find((f) => f.endsWith(".tar.gz"));
|
|
4131
|
-
if (tarball) tarballPath = resolve(distDir, tarball);
|
|
4132
|
-
else {
|
|
4133
|
-
consola.error("No tarball found. Run `emdash plugin bundle` first or use --build.");
|
|
4134
|
-
process.exit(1);
|
|
4135
|
-
}
|
|
4136
|
-
} catch {
|
|
4137
|
-
consola.error("No dist/ directory found. Run `emdash plugin bundle` first or use --build.");
|
|
4138
|
-
process.exit(1);
|
|
4139
|
-
}
|
|
4140
|
-
}
|
|
4141
|
-
const sizeKB = ((await stat(tarballPath)).size / 1024).toFixed(1);
|
|
4142
|
-
consola.info(`Tarball: ${pc.dim(tarballPath)} (${sizeKB}KB)`);
|
|
4143
|
-
const manifest = await readManifestFromTarball(tarballPath);
|
|
4144
|
-
console.log();
|
|
4145
|
-
consola.info(`Plugin: ${pc.bold(`${manifest.id}@${manifest.version}`)}`);
|
|
4146
|
-
if (manifest.capabilities.length > 0) consola.info(`Capabilities: ${manifest.capabilities.join(", ")}`);
|
|
4147
|
-
if (manifest.allowedHosts?.length) consola.info(`Allowed hosts: ${manifest.allowedHosts.join(", ")}`);
|
|
4148
|
-
console.log();
|
|
4149
|
-
const deprecatedCaps = manifest.capabilities.filter(isDeprecatedCapability);
|
|
4150
|
-
if (deprecatedCaps.length > 0) {
|
|
4151
|
-
consola.error("Plugin declares deprecated capability names. Rename them and re-bundle before publishing:");
|
|
4152
|
-
for (const cap of deprecatedCaps) {
|
|
4153
|
-
const replacement = CAPABILITY_RENAMES[cap];
|
|
4154
|
-
consola.error(` ${cap} → ${replacement}`);
|
|
4155
|
-
}
|
|
4156
|
-
consola.error("See https://emdashcms.com/docs/plugins/overview#capabilities for the full rename table.");
|
|
4157
|
-
process.exit(1);
|
|
4158
|
-
}
|
|
4159
|
-
let token;
|
|
4160
|
-
const envToken = process.env.EMDASH_MARKETPLACE_TOKEN;
|
|
4161
|
-
const stored = !envToken ? getMarketplaceCredential(registryUrl) : null;
|
|
4162
|
-
if (envToken) {
|
|
4163
|
-
token = envToken;
|
|
4164
|
-
consola.info("Using EMDASH_MARKETPLACE_TOKEN for authentication");
|
|
4165
|
-
} else if (stored) {
|
|
4166
|
-
token = stored.token;
|
|
4167
|
-
consola.info(`Authenticated as ${pc.bold(stored.author?.name ?? "unknown")}`);
|
|
4168
|
-
} else {
|
|
4169
|
-
consola.info("Not logged in to marketplace. Starting GitHub authentication...");
|
|
4170
|
-
const result = await authenticateViaDeviceFlow(registryUrl);
|
|
4171
|
-
token = result.token;
|
|
4172
|
-
saveMarketplaceCredential(registryUrl, {
|
|
4173
|
-
token: result.token,
|
|
4174
|
-
expiresAt: new Date(Date.now() + 30 * 86400 * 1e3).toISOString(),
|
|
4175
|
-
author: {
|
|
4176
|
-
id: result.author.id,
|
|
4177
|
-
name: result.author.name
|
|
4178
|
-
}
|
|
4179
|
-
});
|
|
4180
|
-
consola.success(`Authenticated as ${pc.bold(result.author.name)}`);
|
|
4181
|
-
}
|
|
4182
|
-
consola.start("Checking marketplace...");
|
|
4183
|
-
const pluginRes = await fetch(new URL(`/api/v1/plugins/${manifest.id}`, registryUrl));
|
|
4184
|
-
if (pluginRes.status === 404 && !envToken) {
|
|
4185
|
-
consola.info(`Plugin ${pc.bold(manifest.id)} not found in marketplace. Registering...`);
|
|
4186
|
-
const createRes = await fetch(new URL("/api/v1/plugins", registryUrl), {
|
|
4187
|
-
method: "POST",
|
|
4188
|
-
headers: {
|
|
4189
|
-
"Content-Type": "application/json",
|
|
4190
|
-
Authorization: `Bearer ${token}`
|
|
4191
|
-
},
|
|
4192
|
-
body: JSON.stringify({
|
|
4193
|
-
id: manifest.id,
|
|
4194
|
-
name: manifest.id,
|
|
4195
|
-
capabilities: manifest.capabilities
|
|
4196
|
-
})
|
|
4197
|
-
});
|
|
4198
|
-
if (!createRes.ok) {
|
|
4199
|
-
const body = await createRes.json().catch(() => ({}));
|
|
4200
|
-
if (createRes.status === 401) {
|
|
4201
|
-
removeMarketplaceCredential(registryUrl);
|
|
4202
|
-
consola.error("Authentication expired. Please run `emdash plugin publish` again to re-authenticate.");
|
|
4203
|
-
process.exit(1);
|
|
4204
|
-
}
|
|
4205
|
-
consola.error(`Failed to register plugin: ${body.error ?? createRes.statusText}`);
|
|
4206
|
-
process.exit(1);
|
|
4207
|
-
}
|
|
4208
|
-
consola.success(`Registered ${pc.bold(manifest.id)}`);
|
|
4209
|
-
} else if (pluginRes.status === 404 && envToken) consola.info(`Plugin ${pc.bold(manifest.id)} will be auto-registered on publish`);
|
|
4210
|
-
else if (!pluginRes.ok) {
|
|
4211
|
-
consola.error(`Marketplace error: ${pluginRes.status}`);
|
|
4212
|
-
process.exit(1);
|
|
4213
|
-
}
|
|
4214
|
-
consola.start(`Publishing ${manifest.id}@${manifest.version}...`);
|
|
4215
|
-
const tarballData = await readFile(tarballPath);
|
|
4216
|
-
const formData = new FormData();
|
|
4217
|
-
formData.append("bundle", new Blob([tarballData], { type: "application/gzip" }), basename(tarballPath));
|
|
4218
|
-
const uploadUrl = new URL(`/api/v1/plugins/${manifest.id}/versions`, registryUrl);
|
|
4219
|
-
const uploadRes = await fetch(uploadUrl, {
|
|
4220
|
-
method: "POST",
|
|
4221
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
4222
|
-
body: formData
|
|
4223
|
-
});
|
|
4224
|
-
if (!uploadRes.ok && uploadRes.status !== 202) {
|
|
4225
|
-
const body = await uploadRes.json().catch(() => ({}));
|
|
4226
|
-
if (uploadRes.status === 401) {
|
|
4227
|
-
if (envToken) consola.error("EMDASH_MARKETPLACE_TOKEN was rejected by the marketplace.");
|
|
4228
|
-
else {
|
|
4229
|
-
removeMarketplaceCredential(registryUrl);
|
|
4230
|
-
consola.error("Authentication expired. Please run `emdash plugin publish` again.");
|
|
4231
|
-
}
|
|
4232
|
-
process.exit(1);
|
|
4233
|
-
}
|
|
4234
|
-
if (uploadRes.status === 409) {
|
|
4235
|
-
if (body.latestVersion) consola.error(`Version ${manifest.version} must be greater than ${body.latestVersion}`);
|
|
4236
|
-
else consola.error(body.error ?? "Version conflict");
|
|
4237
|
-
process.exit(1);
|
|
4238
|
-
}
|
|
4239
|
-
if (uploadRes.status === 422 && body.audit) {
|
|
4240
|
-
consola.error("Plugin failed security audit:");
|
|
4241
|
-
consola.error(` Verdict: ${pc.red(body.audit.verdict)}`);
|
|
4242
|
-
consola.error(` Summary: ${body.audit.summary}`);
|
|
4243
|
-
process.exit(1);
|
|
4244
|
-
}
|
|
4245
|
-
consola.error(`Publish failed: ${body.error ?? uploadRes.statusText}`);
|
|
4246
|
-
process.exit(1);
|
|
4247
|
-
}
|
|
4248
|
-
const result = await uploadRes.json();
|
|
4249
|
-
console.log();
|
|
4250
|
-
consola.success(`Uploaded ${pc.bold(`${manifest.id}@${result.version}`)}`);
|
|
4251
|
-
consola.info(` Checksum: ${pc.dim(result.checksum)}`);
|
|
4252
|
-
consola.info(` Size: ${(result.bundleSize / 1024).toFixed(1)}KB`);
|
|
4253
|
-
if (uploadRes.status === 202) {
|
|
4254
|
-
consola.info(` Status: ${pc.yellow("pending")} (audit running in background)`);
|
|
4255
|
-
if (args["no-wait"]) {
|
|
4256
|
-
consola.info("Skipping audit wait (--no-wait). Check status later.");
|
|
4257
|
-
console.log();
|
|
4258
|
-
return;
|
|
4259
|
-
}
|
|
4260
|
-
consola.start("Waiting for security audit to complete...");
|
|
4261
|
-
const versionUrl = new URL(`/api/v1/plugins/${manifest.id}/versions/${manifest.version}`, registryUrl);
|
|
4262
|
-
const finalStatus = await pollVersionStatus(versionUrl.toString(), token);
|
|
4263
|
-
if (finalStatus) displayAuditResults(finalStatus);
|
|
4264
|
-
else {
|
|
4265
|
-
consola.warn("Audit did not complete within timeout. Check status later with:");
|
|
4266
|
-
consola.info(` ${pc.dim(`curl ${versionUrl.toString()}`)}`);
|
|
4267
|
-
}
|
|
4268
|
-
} else {
|
|
4269
|
-
if (result.audit) displayInlineAuditResults(result.audit, result.imageAudit ?? null);
|
|
4270
|
-
consola.info(` Status: ${pc.green(result.status ?? "published")}`);
|
|
4271
|
-
}
|
|
4272
|
-
console.log();
|
|
4273
|
-
}
|
|
4274
|
-
});
|
|
4275
|
-
const marketplaceLoginCommand = defineCommand({
|
|
4276
|
-
meta: {
|
|
4277
|
-
name: "login",
|
|
4278
|
-
description: "Log in to the EmDash Marketplace via GitHub"
|
|
4279
|
-
},
|
|
4280
|
-
args: { registry: {
|
|
4281
|
-
type: "string",
|
|
4282
|
-
description: "Marketplace registry URL",
|
|
4283
|
-
default: DEFAULT_REGISTRY
|
|
4284
|
-
} },
|
|
4285
|
-
async run({ args }) {
|
|
4286
|
-
const registryUrl = args.registry;
|
|
4287
|
-
const existing = getMarketplaceCredential(registryUrl);
|
|
4288
|
-
if (existing) {
|
|
4289
|
-
consola.info(`Already logged in as ${pc.bold(existing.author?.name ?? "unknown")}`);
|
|
4290
|
-
consola.info("Use `emdash plugin logout` to log out first.");
|
|
4291
|
-
return;
|
|
4292
|
-
}
|
|
4293
|
-
const result = await authenticateViaDeviceFlow(registryUrl);
|
|
4294
|
-
saveMarketplaceCredential(registryUrl, {
|
|
4295
|
-
token: result.token,
|
|
4296
|
-
expiresAt: new Date(Date.now() + 30 * 86400 * 1e3).toISOString(),
|
|
4297
|
-
author: {
|
|
4298
|
-
id: result.author.id,
|
|
4299
|
-
name: result.author.name
|
|
4300
|
-
}
|
|
4301
|
-
});
|
|
4302
|
-
consola.success(`Logged in as ${pc.bold(result.author.name)}`);
|
|
4303
|
-
}
|
|
4304
|
-
});
|
|
4305
|
-
const marketplaceLogoutCommand = defineCommand({
|
|
4306
|
-
meta: {
|
|
4307
|
-
name: "logout",
|
|
4308
|
-
description: "Log out of the EmDash Marketplace"
|
|
4309
|
-
},
|
|
4310
|
-
args: { registry: {
|
|
4311
|
-
type: "string",
|
|
4312
|
-
description: "Marketplace registry URL",
|
|
4313
|
-
default: DEFAULT_REGISTRY
|
|
4314
|
-
} },
|
|
4315
|
-
async run({ args }) {
|
|
4316
|
-
if (removeMarketplaceCredential(args.registry)) consola.success("Logged out of marketplace.");
|
|
4317
|
-
else consola.info("No marketplace credentials found.");
|
|
4318
|
-
}
|
|
4319
|
-
});
|
|
4320
|
-
|
|
4321
|
-
//#endregion
|
|
4322
|
-
//#region src/cli/commands/plugin.ts
|
|
4323
|
-
/**
|
|
4324
|
-
* emdash plugin
|
|
4325
|
-
*
|
|
4326
|
-
* Plugin management commands grouped under a single namespace.
|
|
4327
|
-
*
|
|
4328
|
-
* Subcommands:
|
|
4329
|
-
* - init: Scaffold a new plugin
|
|
4330
|
-
* - bundle: Bundle a plugin for marketplace distribution
|
|
4331
|
-
* - validate: Run bundle validation without producing a tarball
|
|
4332
|
-
* - publish: Publish a plugin to the marketplace
|
|
4333
|
-
* - login: Log in to the marketplace via GitHub
|
|
4334
|
-
* - logout: Log out of the marketplace
|
|
4335
|
-
*
|
|
4336
|
-
*/
|
|
4337
|
-
const pluginCommand = defineCommand({
|
|
4338
|
-
meta: {
|
|
4339
|
-
name: "plugin",
|
|
4340
|
-
description: "Manage plugins"
|
|
4341
|
-
},
|
|
4342
|
-
subCommands: {
|
|
4343
|
-
init: pluginInitCommand,
|
|
4344
|
-
bundle: bundleCommand,
|
|
4345
|
-
validate: pluginValidateCommand,
|
|
4346
|
-
publish: publishCommand,
|
|
4347
|
-
login: marketplaceLoginCommand,
|
|
4348
|
-
logout: marketplaceLogoutCommand
|
|
4349
|
-
}
|
|
4350
|
-
});
|
|
4351
|
-
|
|
4352
3499
|
//#endregion
|
|
4353
3500
|
//#region src/cli/commands/schema.ts
|
|
4354
3501
|
/**
|
|
@@ -4900,6 +4047,7 @@ const seedCommand = defineCommand({
|
|
|
4900
4047
|
};
|
|
4901
4048
|
consola.start("Applying seed...");
|
|
4902
4049
|
try {
|
|
4050
|
+
await claimExplicitSeedOwnership(db, seed);
|
|
4903
4051
|
const result = await applySeed(db, seed, options);
|
|
4904
4052
|
consola.success("Seed applied successfully!");
|
|
4905
4053
|
consola.log("");
|
|
@@ -6497,7 +5645,6 @@ runMain(defineCommand({
|
|
|
6497
5645
|
search: searchCommand,
|
|
6498
5646
|
taxonomy: taxonomyCommand,
|
|
6499
5647
|
menu: menuCommand,
|
|
6500
|
-
plugin: pluginCommand,
|
|
6501
5648
|
site: siteCommand
|
|
6502
5649
|
}
|
|
6503
5650
|
}));
|