emdash 0.34.0 → 0.35.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/{adapters-34EN2eXO.d.mts → adapters-Bb1vG41D.d.mts} +8 -1
- package/dist/adapters-Bb1vG41D.d.mts.map +1 -0
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +9 -9
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +1 -1
- package/dist/{api-DdAsirBe.mjs → api-BeBglVxU.mjs} +10 -10
- package/dist/{api-DdAsirBe.mjs.map → api-BeBglVxU.mjs.map} +1 -1
- package/dist/{api-tokens-CFXu8F_2.mjs → api-tokens-KO24G1Fd.mjs} +2 -2
- package/dist/{api-tokens-CFXu8F_2.mjs.map → api-tokens-KO24G1Fd.mjs.map} +1 -1
- package/dist/{apply-D5zfeD09.mjs → apply-kUDt80-G.mjs} +16 -16
- package/dist/{apply-D5zfeD09.mjs.map → apply-kUDt80-G.mjs.map} +1 -1
- package/dist/astro/index.d.mts +12 -12
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +71 -15
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +10 -10
- package/dist/astro/middleware/auth.mjs +4 -4
- package/dist/astro/middleware/redirect.mjs +2 -2
- package/dist/astro/middleware/request-context.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +10 -10
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +143 -74
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +1 -1
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +3 -3
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/index.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/bulk.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/counts.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/index.mjs +3 -3
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +1 -1
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +7 -7
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +7 -7
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +4 -4
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs +7 -7
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +7 -7
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +1 -1
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/index.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +28 -28
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +29 -29
- package/dist/astro/routes/api/admin/plugins/updates.mjs +28 -28
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +28 -28
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +28 -28
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +1 -1
- package/dist/astro/routes/api/admin/users/index.mjs +1 -1
- package/dist/astro/routes/api/auth/dev-bypass.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/dev-bypass.mjs +2 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/index.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
- package/dist/astro/routes/api/auth/logout.mjs +1 -1
- package/dist/astro/routes/api/auth/magic-link/send.mjs +3 -3
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +1 -1
- package/dist/astro/routes/api/auth/me.mjs +2 -2
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/request.mjs +3 -3
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +5 -5
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/authors.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/index.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
- package/dist/astro/routes/api/dashboard.mjs +4 -4
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +11 -11
- package/dist/astro/routes/api/import/wordpress/execute.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/media.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/media.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +11 -11
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +11 -11
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +11 -11
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +38 -38
- package/dist/astro/routes/api/media/_id_/confirm.mjs +2 -2
- package/dist/astro/routes/api/media/_id_/upload.mjs +2 -2
- package/dist/astro/routes/api/media/_id_/usage.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +5 -5
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +1 -1
- package/dist/astro/routes/api/media/providers/index.mjs +1 -1
- package/dist/astro/routes/api/media/upload-url.mjs +3 -3
- package/dist/astro/routes/api/media.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +3 -3
- package/dist/astro/routes/api/menus/_name_/items.mjs +3 -3
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +3 -3
- package/dist/astro/routes/api/menus/_name_/translations.mjs +3 -3
- package/dist/astro/routes/api/menus/_name_.mjs +3 -3
- package/dist/astro/routes/api/menus/index.mjs +3 -3
- package/dist/astro/routes/api/oauth/authorize.mjs +5 -5
- package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/code.mjs +4 -4
- package/dist/astro/routes/api/oauth/device/token.mjs +4 -4
- package/dist/astro/routes/api/oauth/register.mjs +1 -1
- package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
- package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
- package/dist/astro/routes/api/oauth/token.mjs +4 -4
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/summary.mjs +3 -3
- package/dist/astro/routes/api/redirects/_id_.mjs +4 -4
- package/dist/astro/routes/api/redirects/index.mjs +4 -4
- package/dist/astro/routes/api/relations/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/relations/_id_/translations.mjs +8 -8
- package/dist/astro/routes/api/relations/index.mjs +9 -9
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +1 -1
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/index.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/reorder.mjs +28 -28
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +28 -28
- package/dist/astro/routes/api/schema/orphans/index.mjs +28 -28
- package/dist/astro/routes/api/search/enable.mjs +5 -5
- package/dist/astro/routes/api/search/index.mjs +4 -4
- package/dist/astro/routes/api/search/rebuild.mjs +5 -5
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +4 -4
- package/dist/astro/routes/api/sections/_slug_.mjs +4 -4
- package/dist/astro/routes/api/sections/index.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +3 -3
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +3 -3
- package/dist/astro/routes/api/settings/backups/export.mjs +3 -3
- package/dist/astro/routes/api/settings/backups/index.mjs +3 -3
- package/dist/astro/routes/api/settings/email.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +5 -5
- package/dist/astro/routes/api/setup/admin-verify.mjs +4 -4
- package/dist/astro/routes/api/setup/admin.mjs +4 -4
- package/dist/astro/routes/api/setup/dev-bypass.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +18 -21
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/index.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/index.mjs +15 -21
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- package/dist/astro/routes/api/setup/status.mjs +2 -2
- package/dist/astro/routes/api/snapshot.mjs +4 -4
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/index.mjs +6 -6
- package/dist/astro/routes/api/themes/preview.mjs +2 -2
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +4 -4
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +4 -4
- package/dist/astro/routes/api/widget-areas/_name_.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/index.mjs +4 -4
- package/dist/astro/routes/robots.txt.mjs +2 -2
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +2 -2
- package/dist/astro/routes/sitemap.xml.mjs +2 -2
- package/dist/astro/types.d.mts +14 -14
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-1iFJzPaZ.mjs → authorize-DUElxgOQ.mjs} +1 -1
- package/dist/{authorize-1iFJzPaZ.mjs.map → authorize-DUElxgOQ.mjs.map} +1 -1
- package/dist/{backup-LHjIAVNP.mjs → backup-DWYpJlLj.mjs} +3 -3
- package/dist/{backup-LHjIAVNP.mjs.map → backup-DWYpJlLj.mjs.map} +1 -1
- package/dist/{bundle-CBEXrBnb.mjs → bundle-vn56sLos.mjs} +5 -5
- package/dist/{bundle-CBEXrBnb.mjs.map → bundle-vn56sLos.mjs.map} +1 -1
- package/dist/{byline-fields-C5S8wygO.mjs → byline-fields-txaLGoME.mjs} +1 -1
- package/dist/{byline-fields-C5S8wygO.mjs.map → byline-fields-txaLGoME.mjs.map} +1 -1
- package/dist/{byline-pEcoDps8.mjs → byline-yjvWq4ip.mjs} +4 -4
- package/dist/{byline-pEcoDps8.mjs.map → byline-yjvWq4ip.mjs.map} +1 -1
- package/dist/{bylines-DJfSfXCL.mjs → bylines-Bu7pchQ4.mjs} +3 -3
- package/dist/{bylines-DJfSfXCL.mjs.map → bylines-Bu7pchQ4.mjs.map} +1 -1
- package/dist/{bylines-BWemdX2k.mjs → bylines-DjXS5p0P.mjs} +5 -5
- package/dist/{bylines-BWemdX2k.mjs.map → bylines-DjXS5p0P.mjs.map} +1 -1
- package/dist/{cache-CBJaDy_E.mjs → cache-C46-3Irl.mjs} +2 -2
- package/dist/{cache-CBJaDy_E.mjs.map → cache-C46-3Irl.mjs.map} +1 -1
- package/dist/{challenge-store-CZyFVaad.mjs → challenge-store-SIL5DsF2.mjs} +1 -1
- package/dist/{challenge-store-CZyFVaad.mjs.map → challenge-store-SIL5DsF2.mjs.map} +1 -1
- package/dist/{chunks-DfPax1I0.mjs → chunks-fiZ8G9RJ.mjs} +2 -2
- package/dist/{chunks-DfPax1I0.mjs.map → chunks-fiZ8G9RJ.mjs.map} +1 -1
- package/dist/cli/index.mjs +551 -51
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.mjs +2 -2
- package/dist/{collection-deletion-C8BugSGz.mjs → collection-deletion-DQPvMD8R.mjs} +2 -2
- package/dist/{collection-deletion-C8BugSGz.mjs.map → collection-deletion-DQPvMD8R.mjs.map} +1 -1
- package/dist/{comment-reaction-D6qfHKBc.mjs → comment-reaction-D-2J84UE.mjs} +2 -2
- package/dist/{comment-reaction-D6qfHKBc.mjs.map → comment-reaction-D-2J84UE.mjs.map} +1 -1
- package/dist/{comments-CTOuhTSX.mjs → comments-CTfZtLmM.mjs} +1 -1
- package/dist/{comments-CTOuhTSX.mjs.map → comments-CTfZtLmM.mjs.map} +1 -1
- package/dist/config-COQzTe5Q.d.mts +34 -0
- package/dist/config-COQzTe5Q.d.mts.map +1 -0
- package/dist/{content-BNfwh7xX.mjs → content-ZHCc1ngN.mjs} +3 -3
- package/dist/{content-BNfwh7xX.mjs.map → content-ZHCc1ngN.mjs.map} +1 -1
- package/dist/{content-list-query-DhQ84eVV.d.mts → content-list-query-wJ2WN8Vp.d.mts} +1 -1
- package/dist/{content-list-query-DhQ84eVV.d.mts.map → content-list-query-wJ2WN8Vp.d.mts.map} +1 -1
- package/dist/{content-refresh-DNERP4-f.mjs → content-refresh-B_8SJzuU.mjs} +2 -2
- package/dist/{content-refresh-DNERP4-f.mjs.map → content-refresh-B_8SJzuU.mjs.map} +1 -1
- package/dist/{context-DRgOvSnW.mjs → context-ZldbZcle.mjs} +7 -7
- package/dist/{context-DRgOvSnW.mjs.map → context-ZldbZcle.mjs.map} +1 -1
- package/dist/{dashboard-CB8J89rJ.mjs → dashboard-DvHbk_cv.mjs} +3 -3
- package/dist/{dashboard-CB8J89rJ.mjs.map → dashboard-DvHbk_cv.mjs.map} +1 -1
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.mjs +30 -7
- package/dist/db/index.mjs.map +1 -1
- package/dist/db/libsql-migrations.d.mts +11 -0
- package/dist/db/libsql-migrations.d.mts.map +1 -0
- package/dist/db/libsql-migrations.mjs +57 -0
- package/dist/db/libsql-migrations.mjs.map +1 -0
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres-migrations.d.mts +10 -0
- package/dist/db/postgres-migrations.d.mts.map +1 -0
- package/dist/db/postgres-migrations.mjs +47 -0
- package/dist/db/postgres-migrations.mjs.map +1 -0
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite-migrations.d.mts +10 -0
- package/dist/db/sqlite-migrations.d.mts.map +1 -0
- package/dist/db/sqlite-migrations.mjs +28 -0
- package/dist/db/sqlite-migrations.mjs.map +1 -0
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{deferred-tasks-BMsa9F64.d.mts → deferred-tasks-SDWxrgzJ.d.mts} +1 -1
- package/dist/{deferred-tasks-BMsa9F64.d.mts.map → deferred-tasks-SDWxrgzJ.d.mts.map} +1 -1
- package/dist/{device-flow-CaioYGK3.mjs → device-flow-C0GdD_z8.mjs} +4 -4
- package/dist/{device-flow-CaioYGK3.mjs.map → device-flow-C0GdD_z8.mjs.map} +1 -1
- package/dist/direct-executor-CDXeJCSs.mjs +85 -0
- package/dist/direct-executor-CDXeJCSs.mjs.map +1 -0
- package/dist/{escape-C_aLKP3H.mjs → escape-DUY2r2Zs.mjs} +1 -1
- package/dist/{escape-C_aLKP3H.mjs.map → escape-DUY2r2Zs.mjs.map} +1 -1
- package/dist/{field-defs-cache-hg6QkjV9.mjs → field-defs-cache-BzwBlJrR.mjs} +2 -2
- package/dist/{field-defs-cache-hg6QkjV9.mjs.map → field-defs-cache-BzwBlJrR.mjs.map} +1 -1
- package/dist/{fts-manager-CZ-5dVwJ.mjs → fts-manager-DyZEohZC.mjs} +2 -2
- package/dist/{fts-manager-CZ-5dVwJ.mjs.map → fts-manager-DyZEohZC.mjs.map} +1 -1
- package/dist/{hreflang-DNswoYsi.mjs → hreflang-BBe83kKa.mjs} +5 -5
- package/dist/{hreflang-DNswoYsi.mjs.map → hreflang-BBe83kKa.mjs.map} +1 -1
- package/dist/{hreflang-D3Uehfv2.d.mts → hreflang-DwT2E0Sa.d.mts} +2 -2
- package/dist/{hreflang-D3Uehfv2.d.mts.map → hreflang-DwT2E0Sa.d.mts.map} +1 -1
- package/dist/identity-Ys6Dlc9C.mjs +35 -0
- package/dist/identity-Ys6Dlc9C.mjs.map +1 -0
- package/dist/{import-B41u8Rot.mjs → import-DPkLmeXO.mjs} +2 -2
- package/dist/{import-B41u8Rot.mjs.map → import-DPkLmeXO.mjs.map} +1 -1
- package/dist/{index-C3Y-rsyN.d.mts → index-BVBZj4-7.d.mts} +28 -49
- package/dist/index-BVBZj4-7.d.mts.map +1 -0
- package/dist/{index-Cof4-Fab.d.mts → index-C9KuQyO-.d.mts} +3 -3
- package/dist/{index-Cof4-Fab.d.mts.map → index-C9KuQyO-.d.mts.map} +1 -1
- package/dist/index.d.mts +21 -20
- package/dist/index.mjs +42 -42
- package/dist/{load-DmvJrtxS.mjs → load-YJ2xl3ra.mjs} +2 -2
- package/dist/{load-DmvJrtxS.mjs.map → load-YJ2xl3ra.mjs.map} +1 -1
- package/dist/{loader-DLBqRiGP.mjs → loader-CdG_Ci3H.mjs} +2 -2
- package/dist/{loader-DLBqRiGP.mjs.map → loader-CdG_Ci3H.mjs.map} +1 -1
- package/dist/manifest-builder-B252yQUf.mjs +189 -0
- package/dist/manifest-builder-B252yQUf.mjs.map +1 -0
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +12 -12
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-allowlist-BD6HhgXA.mjs → media-allowlist-D6x-Us02.mjs} +1 -1
- package/dist/{media-allowlist-BD6HhgXA.mjs.map → media-allowlist-D6x-Us02.mjs.map} +1 -1
- package/dist/{media-upload-9yas9zGH.mjs → media-upload-CHBVn6m-.mjs} +2 -2
- package/dist/{media-upload-9yas9zGH.mjs.map → media-upload-CHBVn6m-.mjs.map} +1 -1
- package/dist/{media-usage-De3qvwjc.mjs → media-usage-BZCydfvu.mjs} +4 -4
- package/dist/{media-usage-De3qvwjc.mjs.map → media-usage-BZCydfvu.mjs.map} +1 -1
- package/dist/{media-usage-work-B9Bksh_b.mjs → media-usage-work-CLo_6tct.mjs} +2 -2
- package/dist/{media-usage-work-B9Bksh_b.mjs.map → media-usage-work-CLo_6tct.mjs.map} +1 -1
- package/dist/{menus-CC-yn1F9.mjs → menus-DSo5QeW0.mjs} +6 -6
- package/dist/{menus-CC-yn1F9.mjs.map → menus-DSo5QeW0.mjs.map} +1 -1
- package/dist/{menus-fxvEDYE6.mjs → menus-TCNSd2vp.mjs} +2 -2
- package/dist/{menus-fxvEDYE6.mjs.map → menus-TCNSd2vp.mjs.map} +1 -1
- package/dist/migrations/index.d.mts +22 -0
- package/dist/migrations/index.d.mts.map +1 -0
- package/dist/migrations/index.mjs +7 -0
- package/dist/{mode-Bpe-tNNy.mjs → mode-BDoH_WcF.mjs} +1 -1
- package/dist/{mode-Bpe-tNNy.mjs.map → mode-BDoH_WcF.mjs.map} +1 -1
- package/dist/{oauth-authorization-BXO1MKej.mjs → oauth-authorization-iOikmrJd.mjs} +4 -4
- package/dist/{oauth-authorization-BXO1MKej.mjs.map → oauth-authorization-iOikmrJd.mjs.map} +1 -1
- package/dist/{oauth-clients-C_DNqtRu.mjs → oauth-clients-CvI0nHMJ.mjs} +1 -1
- package/dist/{oauth-clients-C_DNqtRu.mjs.map → oauth-clients-CvI0nHMJ.mjs.map} +1 -1
- package/dist/{oauth-state-store-DwAxMtk4.mjs → oauth-state-store-Ba8KZlwW.mjs} +1 -1
- package/dist/{oauth-state-store-DwAxMtk4.mjs.map → oauth-state-store-Ba8KZlwW.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-BxfZizdk.mjs → oauth-user-lookup-C5SQwGYC.mjs} +1 -1
- package/dist/{oauth-user-lookup-BxfZizdk.mjs.map → oauth-user-lookup-C5SQwGYC.mjs.map} +1 -1
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{options-DRe1pIBL.d.mts → options--hhz-jZ1.d.mts} +3 -3
- package/dist/{options-DRe1pIBL.d.mts.map → options--hhz-jZ1.d.mts.map} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/{passkey-config-_2GOwwK8.mjs → passkey-config-DFAmUyuE.mjs} +1 -1
- package/dist/{passkey-config-_2GOwwK8.mjs.map → passkey-config-DFAmUyuE.mjs.map} +1 -1
- package/dist/{placeholder-CzW7Lshs.d.mts → placeholder-Dp0K3RkD.d.mts} +1 -1
- package/dist/{placeholder-CzW7Lshs.d.mts.map → placeholder-Dp0K3RkD.d.mts.map} +1 -1
- package/dist/plugin-types.d.mts +1 -1
- package/dist/plugin-utils.d.mts +10 -10
- package/dist/plugins/adapt-sandbox-entry.d.mts +10 -10
- package/dist/policy-TluUIxuu.mjs +45 -0
- package/dist/policy-TluUIxuu.mjs.map +1 -0
- package/dist/{portable-text-DhKbDAGr.mjs → portable-text-imBW5cHK.mjs} +1 -1
- package/dist/{portable-text-DhKbDAGr.mjs.map → portable-text-imBW5cHK.mjs.map} +1 -1
- package/dist/protocol-DjsJHTlK.d.mts +52 -0
- package/dist/protocol-DjsJHTlK.d.mts.map +1 -0
- package/dist/{query-vgZNwIhh.mjs → query-BWs7O5Il.mjs} +3 -3
- package/dist/{query-vgZNwIhh.mjs.map → query-BWs7O5Il.mjs.map} +1 -1
- package/dist/{query-BgjfiLUQ.mjs → query-zTVAR1Sl.mjs} +12 -12
- package/dist/{query-BgjfiLUQ.mjs.map → query-zTVAR1Sl.mjs.map} +1 -1
- package/dist/{rate-limit-L5anykgo.mjs → rate-limit-Bx4g9m3p.mjs} +1 -1
- package/dist/{rate-limit-L5anykgo.mjs.map → rate-limit-Bx4g9m3p.mjs.map} +1 -1
- package/dist/{redirect-KBNE3UEs.mjs → redirect-BgAOGHDq.mjs} +1 -1
- package/dist/{redirect-KBNE3UEs.mjs.map → redirect-BgAOGHDq.mjs.map} +1 -1
- package/dist/{redirects-cV9g7V-0.mjs → redirects-DTDHWH31.mjs} +2 -2
- package/dist/{redirects-cV9g7V-0.mjs.map → redirects-DTDHWH31.mjs.map} +1 -1
- package/dist/{redirects-CufRQt0Q.mjs → redirects-DyChwDkG.mjs} +1 -1
- package/dist/{redirects-CufRQt0Q.mjs.map → redirects-DyChwDkG.mjs.map} +1 -1
- package/dist/{registry-C581V4TP.mjs → registry-Cqa2I749.mjs} +6 -6
- package/dist/{registry-C581V4TP.mjs.map → registry-Cqa2I749.mjs.map} +1 -1
- package/dist/{relation-DtmAQH7s.mjs → relation-BnHB0T4J.mjs} +2 -2
- package/dist/{relation-DtmAQH7s.mjs.map → relation-BnHB0T4J.mjs.map} +1 -1
- package/dist/{relations-DItI3MN9.d.mts → relations-BHo5A8Zf.d.mts} +35 -35
- package/dist/{relations-DItI3MN9.d.mts.map → relations-BHo5A8Zf.d.mts.map} +1 -1
- package/dist/{relations-DICSyfsh.mjs → relations-D5sM5fW0.mjs} +4 -4
- package/dist/{relations-DICSyfsh.mjs.map → relations-D5sM5fW0.mjs.map} +1 -1
- package/dist/request-context.d.mts +1 -1
- package/dist/{runner-CgQbELYC.d.mts → runner-BYHZn3Jy.d.mts} +16 -3
- package/dist/runner-BYHZn3Jy.d.mts.map +1 -0
- package/dist/{runner-BiDvq5dv.mjs → runner-C1T11CfC.mjs} +34 -4
- package/dist/{runner-BiDvq5dv.mjs.map → runner-C1T11CfC.mjs.map} +1 -1
- package/dist/runtime.d.mts +11 -11
- package/dist/runtime.mjs +1 -1
- package/dist/{schema-CeQSNwB3.mjs → schema-2AOsSn2v.mjs} +4 -4
- package/dist/{schema-CeQSNwB3.mjs.map → schema-2AOsSn2v.mjs.map} +1 -1
- package/dist/{schema-BFyTg38T.mjs → schema-DZ5YVVZj.mjs} +3 -3
- package/dist/{schema-BFyTg38T.mjs.map → schema-DZ5YVVZj.mjs.map} +1 -1
- package/dist/{scopes-BVeuhGBE.mjs → scopes-8ClPF2bC.mjs} +2 -2
- package/dist/{scopes-BVeuhGBE.mjs.map → scopes-8ClPF2bC.mjs.map} +1 -1
- package/dist/{search-BpuPKZb0.mjs → search-u1QYdOCG.mjs} +4 -4
- package/dist/{search-BpuPKZb0.mjs.map → search-u1QYdOCG.mjs.map} +1 -1
- package/dist/{secrets-dtYs2hDo.mjs → secrets-BEgsAQEU.mjs} +1 -1
- package/dist/{secrets-dtYs2hDo.mjs.map → secrets-BEgsAQEU.mjs.map} +1 -1
- package/dist/{sections-COctk6hf.mjs → sections-DmHviGyM.mjs} +2 -2
- package/dist/{sections-COctk6hf.mjs.map → sections-DmHviGyM.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +13 -13
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +9 -9
- package/dist/{seo-CvDxfvFb.mjs → seo-Dq4G-RrO.mjs} +2 -2
- package/dist/{seo-CvDxfvFb.mjs.map → seo-Dq4G-RrO.mjs.map} +1 -1
- package/dist/{service-xMiMSTsR.mjs → service-BpArayPr.mjs} +2 -2
- package/dist/{service-xMiMSTsR.mjs.map → service-BpArayPr.mjs.map} +1 -1
- package/dist/{session-user-BzVemLkw.mjs → session-user-BEorKVT-.mjs} +1 -1
- package/dist/{session-user-BzVemLkw.mjs.map → session-user-BEorKVT-.mjs.map} +1 -1
- package/dist/{settings-BE9aqn_9.mjs → settings-DE9xtzqd.mjs} +3 -3
- package/dist/{settings-BE9aqn_9.mjs.map → settings-DE9xtzqd.mjs.map} +1 -1
- package/dist/{settings-B372MV0p.mjs → settings-xRdoUZr0.mjs} +2 -2
- package/dist/{settings-B372MV0p.mjs.map → settings-xRdoUZr0.mjs.map} +1 -1
- package/dist/{setup-complete-DF7TAfD5.mjs → setup-complete-BnT8pq_C.mjs} +1 -1
- package/dist/{setup-complete-DF7TAfD5.mjs.map → setup-complete-BnT8pq_C.mjs.map} +1 -1
- package/dist/{setup-nonce-Do-U_cg9.mjs → setup-nonce-CBitf_oQ.mjs} +1 -1
- package/dist/{setup-nonce-Do-U_cg9.mjs.map → setup-nonce-CBitf_oQ.mjs.map} +1 -1
- package/dist/{site-url-Bowsi9T-.mjs → site-url-DjpIXMXJ.mjs} +1 -1
- package/dist/{site-url-Bowsi9T-.mjs.map → site-url-DjpIXMXJ.mjs.map} +1 -1
- package/dist/{snapshot-B5h6aPMh.mjs → snapshot-BBlGkb2q.mjs} +1 -1
- package/dist/{snapshot-B5h6aPMh.mjs.map → snapshot-BBlGkb2q.mjs.map} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +2 -2
- package/dist/storage/s3.d.mts +1 -1
- package/dist/target-DixqqV5i.mjs +27 -0
- package/dist/target-DixqqV5i.mjs.map +1 -0
- package/dist/{taxonomies-B0o9ExNV.mjs → taxonomies-BlrncHi9.mjs} +5 -5
- package/dist/{taxonomies-B0o9ExNV.mjs.map → taxonomies-BlrncHi9.mjs.map} +1 -1
- package/dist/{taxonomies-Dk3MAklL.mjs → taxonomies-OHUIiIpI.mjs} +4 -4
- package/dist/{taxonomies-Dk3MAklL.mjs.map → taxonomies-OHUIiIpI.mjs.map} +1 -1
- package/dist/{taxonomy-CPeM8d2o.mjs → taxonomy-BqCZ1TdU.mjs} +3 -3
- package/dist/{taxonomy-CPeM8d2o.mjs.map → taxonomy-BqCZ1TdU.mjs.map} +1 -1
- package/dist/{transport--CfOflrp.mjs → transport-DBJwa-Si.mjs} +1 -1
- package/dist/{transport--CfOflrp.mjs.map → transport-DBJwa-Si.mjs.map} +1 -1
- package/dist/{transport-B_rfeU-a.d.mts → transport-RQE36APG.d.mts} +1 -1
- package/dist/{transport-B_rfeU-a.d.mts.map → transport-RQE36APG.d.mts.map} +1 -1
- package/dist/{types-CFUfyt1s.d.mts → types-BcqdcT-r.d.mts} +1 -1
- package/dist/{types-CFUfyt1s.d.mts.map → types-BcqdcT-r.d.mts.map} +1 -1
- package/dist/{types-CPx2lIGo.d.mts → types-BntycPTF.d.mts} +1 -1
- package/dist/{types-CPx2lIGo.d.mts.map → types-BntycPTF.d.mts.map} +1 -1
- package/dist/{types-C3_AbkDP.d.mts → types-C2pMvO62.d.mts} +1 -1
- package/dist/{types-C3_AbkDP.d.mts.map → types-C2pMvO62.d.mts.map} +1 -1
- package/dist/{types-DefV3OiO.d.mts → types-CXnOzDe1.d.mts} +1 -1
- package/dist/{types-DefV3OiO.d.mts.map → types-CXnOzDe1.d.mts.map} +1 -1
- package/dist/{types-D4_1Ga4L.d.mts → types-DN64_zzZ.d.mts} +3 -3
- package/dist/{types-D4_1Ga4L.d.mts.map → types-DN64_zzZ.d.mts.map} +1 -1
- package/dist/{types-CAGdePf3.d.mts → types-DQIDRKF2.d.mts} +1 -1
- package/dist/{types-CAGdePf3.d.mts.map → types-DQIDRKF2.d.mts.map} +1 -1
- package/dist/{types-BPuloofb.d.mts → types-DWRhk9xZ.d.mts} +1 -1
- package/dist/{types-BPuloofb.d.mts.map → types-DWRhk9xZ.d.mts.map} +1 -1
- package/dist/{types-X0MThr7x.d.mts → types-Dfk8KI5R.d.mts} +1 -1
- package/dist/{types-X0MThr7x.d.mts.map → types-Dfk8KI5R.d.mts.map} +1 -1
- package/dist/{types-Cs-TFLNf.d.mts → types-DrJrVCT1.d.mts} +3 -3
- package/dist/{types-Cs-TFLNf.d.mts.map → types-DrJrVCT1.d.mts.map} +1 -1
- package/dist/{upload-attempts-hlne3iA1.mjs → upload-attempts-D4FS8LT6.mjs} +1 -1
- package/dist/{upload-attempts-hlne3iA1.mjs.map → upload-attempts-D4FS8LT6.mjs.map} +1 -1
- package/dist/{user-sHgJ62SP.mjs → user-DJZfUJVE.mjs} +2 -2
- package/dist/{user-sHgJ62SP.mjs.map → user-DJZfUJVE.mjs.map} +1 -1
- package/dist/{validate-BkqIG_Uj.mjs → validate-BMLBvxOC.mjs} +2 -2
- package/dist/{validate-BkqIG_Uj.mjs.map → validate-BMLBvxOC.mjs.map} +1 -1
- package/dist/{validate-DeGtBN84.d.mts → validate-CTqt5nuE.d.mts} +5 -5
- package/dist/{validate-DeGtBN84.d.mts.map → validate-CTqt5nuE.d.mts.map} +1 -1
- package/dist/{validation-CiJb_X5o.mjs → validation-npvENUCB.mjs} +7 -7
- package/dist/{validation-CiJb_X5o.mjs.map → validation-npvENUCB.mjs.map} +1 -1
- package/dist/version-DB_fqCSI.mjs +7 -0
- package/dist/{version-x0NjTScG.mjs.map → version-DB_fqCSI.mjs.map} +1 -1
- package/dist/{widgets-Cwzvww0W.mjs → widgets-BD3ho7Rq.mjs} +2 -2
- package/dist/{widgets-Cwzvww0W.mjs.map → widgets-BD3ho7Rq.mjs.map} +1 -1
- package/dist/{wxr-taxonomies-QZjWxjyk.mjs → wxr-taxonomies-B1R3vBoD.mjs} +3 -3
- package/dist/{wxr-taxonomies-QZjWxjyk.mjs.map → wxr-taxonomies-B1R3vBoD.mjs.map} +1 -1
- package/dist/{wxr-taxonomies-CmC0ZsDr.d.mts → wxr-taxonomies-Ca68766D.d.mts} +1 -1
- package/dist/{wxr-taxonomies-CmC0ZsDr.d.mts.map → wxr-taxonomies-Ca68766D.d.mts.map} +1 -1
- package/dist/{zod-generator-D11MhxG4.mjs → zod-generator-LC-on_Vb.mjs} +2 -2
- package/dist/{zod-generator-D11MhxG4.mjs.map → zod-generator-LC-on_Vb.mjs.map} +1 -1
- package/package.json +21 -5
- package/src/astro/integration/index.ts +46 -14
- package/src/astro/integration/runtime.ts +3 -0
- package/src/astro/middleware/scoped-db.ts +21 -0
- package/src/astro/middleware.ts +67 -10
- package/src/astro/routes/api/auth/dev-bypass.ts +0 -4
- package/src/astro/routes/api/setup/dev-bypass.ts +2 -7
- package/src/astro/routes/api/setup/index.ts +5 -13
- package/src/cli/commands/migrate.ts +593 -0
- package/src/cli/index.ts +2 -23
- package/src/database/index.ts +8 -2
- package/src/database/migrations/policy.ts +70 -0
- package/src/database/migrations/runner.ts +49 -3
- package/src/db/adapters.ts +50 -2
- package/src/db/index.ts +3 -1
- package/src/db/libsql-migrations.ts +72 -0
- package/src/db/postgres-migrations.ts +59 -0
- package/src/db/sqlite-migrations.ts +37 -0
- package/src/emdash-runtime.ts +44 -15
- package/src/i18n/normalize.ts +31 -0
- package/src/index.ts +7 -1
- package/src/migrations/config-loader.ts +205 -0
- package/src/migrations/direct-executor.ts +141 -0
- package/src/migrations/identity.ts +46 -0
- package/src/migrations/index.ts +19 -0
- package/src/migrations/integration-metadata.ts +67 -0
- package/src/migrations/manifest-builder.ts +55 -0
- package/src/migrations/manifest-writer.ts +63 -0
- package/src/migrations/manifest.ts +197 -0
- package/src/migrations/protocol.ts +59 -0
- package/src/migrations/target.ts +35 -0
- package/src/virtual-modules.d.ts +8 -0
- package/dist/adapters-34EN2eXO.d.mts.map +0 -1
- package/dist/index-C3Y-rsyN.d.mts.map +0 -1
- package/dist/runner-CgQbELYC.d.mts.map +0 -1
- package/dist/version-x0NjTScG.mjs +0 -7
- /package/dist/{api-tokens-CyTsLszZ.mjs → api-tokens-rIXC6LdE.mjs} +0 -0
|
@@ -5,19 +5,19 @@ import "../../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import { n as slugify } from "../../../../../slugify-B994zkXC.mjs";
|
|
6
6
|
import "../../../../../base64-CvLhUKQv.mjs";
|
|
7
7
|
import "../../../../../types-CQPWhPxE.mjs";
|
|
8
|
-
import "../../../../../taxonomy-
|
|
8
|
+
import "../../../../../taxonomy-BqCZ1TdU.mjs";
|
|
9
9
|
import "../../../../../request-cache-BSUptuJR.mjs";
|
|
10
10
|
import "../../../../../byline-registry-DDun8sxh.mjs";
|
|
11
|
-
import "../../../../../field-defs-cache-
|
|
12
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
11
|
+
import "../../../../../field-defs-cache-BzwBlJrR.mjs";
|
|
12
|
+
import { t as BylineRepository } from "../../../../../byline-yjvWq4ip.mjs";
|
|
13
13
|
import "../../../../../resolve-DOhVEvty.mjs";
|
|
14
|
-
import "../../../../../loader-
|
|
15
|
-
import "../../../../../taxonomies-
|
|
14
|
+
import "../../../../../loader-CdG_Ci3H.mjs";
|
|
15
|
+
import "../../../../../taxonomies-BlrncHi9.mjs";
|
|
16
16
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
17
17
|
import { g as resolveImportByline } from "../../../../../utils-D4vD_Y98.mjs";
|
|
18
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
18
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
19
19
|
import { sanitizeSlug } from "./analyze.mjs";
|
|
20
|
-
import { a as preImportWxrTaxonomies, i as mirrorTermsToLocales, n as isWxrTaxonomyConflictError, o as setPostTermAssignmentsReplacing, t as attachPostTaxonomies } from "../../../../../wxr-taxonomies-
|
|
20
|
+
import { a as preImportWxrTaxonomies, i as mirrorTermsToLocales, n as isWxrTaxonomyConflictError, o as setPostTermAssignmentsReplacing, t as attachPostTaxonomies } from "../../../../../wxr-taxonomies-B1R3vBoD.mjs";
|
|
21
21
|
import { gutenbergToPortableText } from "@emdash-cms/gutenberg-to-portable-text";
|
|
22
22
|
import { ContentRepository, importReusableBlocksAsSections, parseWxrDate, parseWxrString } from "emdash";
|
|
23
23
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../../../options-
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import "../../../../../types-
|
|
4
|
-
import "../../../../../relations-
|
|
5
|
-
import "../../../../../index-
|
|
6
|
-
import "../../../../../runner-
|
|
7
|
-
import "../../../../../index-
|
|
8
|
-
import "../../../../../types-
|
|
9
|
-
import "../../../../../hreflang-
|
|
10
|
-
import "../../../../../validate-
|
|
1
|
+
import "../../../../../options--hhz-jZ1.mjs";
|
|
2
|
+
import "../../../../../types-DQIDRKF2.mjs";
|
|
3
|
+
import "../../../../../types-DrJrVCT1.mjs";
|
|
4
|
+
import "../../../../../relations-BHo5A8Zf.mjs";
|
|
5
|
+
import "../../../../../index-BVBZj4-7.mjs";
|
|
6
|
+
import "../../../../../runner-BYHZn3Jy.mjs";
|
|
7
|
+
import "../../../../../index-C9KuQyO-.mjs";
|
|
8
|
+
import "../../../../../types-CXnOzDe1.mjs";
|
|
9
|
+
import "../../../../../hreflang-DwT2E0Sa.mjs";
|
|
10
|
+
import "../../../../../validate-CTqt5nuE.mjs";
|
|
11
11
|
import { EmDashHandlers } from "../../../../types.mjs";
|
|
12
12
|
import { AttachmentInfo } from "./analyze.mjs";
|
|
13
13
|
import { APIRoute } from "astro";
|
|
@@ -7,12 +7,12 @@ import { a as validateExternalUrl, r as ssrfSafeFetch, t as SsrfError } from "..
|
|
|
7
7
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
8
8
|
import { n as parseBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
9
9
|
import "../../../../../media-BWWWb8kg.mjs";
|
|
10
|
-
import "../../../../../redirects-
|
|
10
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
11
11
|
import { C as wpMediaImportBody } from "../../../../../relations-BBApI4e2.mjs";
|
|
12
12
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
13
13
|
import "../../../../../api/schemas/index.mjs";
|
|
14
14
|
import "../../../../../ssrf-DpXgKsna.mjs";
|
|
15
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
15
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
16
16
|
import { ulid } from "ulidx";
|
|
17
17
|
import mime from "mime/lite";
|
|
18
18
|
import * as path from "node:path";
|
|
@@ -5,11 +5,11 @@ import "../../../../../types-CQPWhPxE.mjs";
|
|
|
5
5
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
6
6
|
import { n as parseBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
7
7
|
import "../../../../../media-BWWWb8kg.mjs";
|
|
8
|
-
import "../../../../../redirects-
|
|
8
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
9
9
|
import { E as wpPrepareBody } from "../../../../../relations-BBApI4e2.mjs";
|
|
10
10
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
11
11
|
import "../../../../../api/schemas/index.mjs";
|
|
12
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
12
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
13
13
|
import { capitalize, sanitizeSlug, singularize } from "./analyze.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/import/wordpress/prepare.ts
|
|
@@ -34,7 +34,7 @@ const POST = async ({ request, locals }) => {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
async function prepareImport(db, request) {
|
|
37
|
-
const { SchemaRegistry } = await import("../../../../../registry-
|
|
37
|
+
const { SchemaRegistry } = await import("../../../../../registry-Cqa2I749.mjs").then((n) => n.r);
|
|
38
38
|
const registry = new SchemaRegistry(db);
|
|
39
39
|
const result = {
|
|
40
40
|
success: true,
|
|
@@ -100,7 +100,7 @@ async function prepareImport(db, request) {
|
|
|
100
100
|
"post",
|
|
101
101
|
"page"
|
|
102
102
|
].includes(collectionSlug)) {
|
|
103
|
-
const { FTSManager } = await import("../../../../../fts-manager-
|
|
103
|
+
const { FTSManager } = await import("../../../../../fts-manager-DyZEohZC.mjs").then((n) => n.n);
|
|
104
104
|
const ftsManager = new FTSManager(db);
|
|
105
105
|
if ((await ftsManager.getSearchableFields(collectionSlug)).length > 0) try {
|
|
106
106
|
await ftsManager.enableSearch(collectionSlug);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../../../../options-
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import "../../../../../types-
|
|
4
|
-
import "../../../../../relations-
|
|
5
|
-
import { f as MediaProvider } from "../../../../../placeholder-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../runner-
|
|
8
|
-
import "../../../../../index-
|
|
9
|
-
import "../../../../../types-
|
|
10
|
-
import "../../../../../hreflang-
|
|
11
|
-
import "../../../../../validate-
|
|
1
|
+
import "../../../../../options--hhz-jZ1.mjs";
|
|
2
|
+
import "../../../../../types-DQIDRKF2.mjs";
|
|
3
|
+
import "../../../../../types-DrJrVCT1.mjs";
|
|
4
|
+
import "../../../../../relations-BHo5A8Zf.mjs";
|
|
5
|
+
import { f as MediaProvider } from "../../../../../placeholder-Dp0K3RkD.mjs";
|
|
6
|
+
import { jr as markContentMediaUsageCollectionStaleSafely } from "../../../../../index-BVBZj4-7.mjs";
|
|
7
|
+
import "../../../../../runner-BYHZn3Jy.mjs";
|
|
8
|
+
import "../../../../../index-C9KuQyO-.mjs";
|
|
9
|
+
import "../../../../../types-CXnOzDe1.mjs";
|
|
10
|
+
import "../../../../../hreflang-DwT2E0Sa.mjs";
|
|
11
|
+
import "../../../../../validate-CTqt5nuE.mjs";
|
|
12
12
|
import { EmDashHandlers } from "../../../../types.mjs";
|
|
13
13
|
import { APIRoute } from "astro";
|
|
14
14
|
|
|
@@ -4,15 +4,15 @@ import "../../../../../config-C3EBstHi.mjs";
|
|
|
4
4
|
import "../../../../../base64-CvLhUKQv.mjs";
|
|
5
5
|
import "../../../../../types-CQPWhPxE.mjs";
|
|
6
6
|
import { n as normalizeMediaValue } from "../../../../../normalize-Bc-s_r-a.mjs";
|
|
7
|
-
import { c as markContentMediaUsageCollectionStaleSafely } from "../../../../../content-refresh-
|
|
7
|
+
import { c as markContentMediaUsageCollectionStaleSafely } from "../../../../../content-refresh-B_8SJzuU.mjs";
|
|
8
8
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
9
9
|
import { n as parseBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
10
10
|
import "../../../../../media-BWWWb8kg.mjs";
|
|
11
|
-
import "../../../../../redirects-
|
|
11
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
12
12
|
import { D as wpRewriteUrlsBody } from "../../../../../relations-BBApI4e2.mjs";
|
|
13
13
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
14
14
|
import "../../../../../api/schemas/index.mjs";
|
|
15
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
15
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
16
16
|
import { buildBaseUrlMap, extractMediaUrl, findMatchingUrl, rewritePortableTextUrls, rewriteStringUrls } from "./rewrite-url-helpers.mjs";
|
|
17
17
|
import { sql } from "kysely";
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ const POST = async ({ request, locals }) => {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
async function rewriteUrls(db, urlMap, getProvider, collections, markUsageCollectionStale = markContentMediaUsageCollectionStaleSafely) {
|
|
42
|
-
const { SchemaRegistry } = await import("../../../../../registry-
|
|
42
|
+
const { SchemaRegistry } = await import("../../../../../registry-Cqa2I749.mjs").then((n) => n.r);
|
|
43
43
|
const registry = new SchemaRegistry(db);
|
|
44
44
|
const result = {
|
|
45
45
|
updated: 0,
|
|
@@ -8,20 +8,20 @@ import "../../../../../types-CQPWhPxE.mjs";
|
|
|
8
8
|
import "../../../../../media-CzhAn2--.mjs";
|
|
9
9
|
import "../../../../../options-CBXIHUoT.mjs";
|
|
10
10
|
import "../../../../../request-cache-BSUptuJR.mjs";
|
|
11
|
-
import "../../../../../loader-
|
|
12
|
-
import "../../../../../settings-
|
|
11
|
+
import "../../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../../settings-xRdoUZr0.mjs";
|
|
13
13
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-Cpvg_n3A.mjs";
|
|
14
14
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { n as parseBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import "../../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import "../../../../../redirects-
|
|
17
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import { w as wpPluginAnalyzeBody } from "../../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../../api/schemas/index.mjs";
|
|
21
|
-
import { p as getSource } from "../../../../../import-
|
|
21
|
+
import { p as getSource } from "../../../../../import-DPkLmeXO.mjs";
|
|
22
22
|
import "../../../../../ssrf-DpXgKsna.mjs";
|
|
23
23
|
import "../../../../../utils-D4vD_Y98.mjs";
|
|
24
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
24
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
25
25
|
import { SchemaRegistry } from "emdash";
|
|
26
26
|
|
|
27
27
|
//#region src/astro/routes/api/import/wordpress-plugin/analyze.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../../../../../options-
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import "../../../../../types-
|
|
4
|
-
import "../../../../../relations-
|
|
5
|
-
import "../../../../../index-
|
|
6
|
-
import "../../../../../runner-
|
|
7
|
-
import { t as fetchPluginTaxonomies } from "../../../../../index-
|
|
8
|
-
import { f as NormalizedItem, s as ImportConfig, u as ImportResult } from "../../../../../types-
|
|
9
|
-
import "../../../../../hreflang-
|
|
10
|
-
import "../../../../../validate-
|
|
1
|
+
import "../../../../../options--hhz-jZ1.mjs";
|
|
2
|
+
import "../../../../../types-DQIDRKF2.mjs";
|
|
3
|
+
import "../../../../../types-DrJrVCT1.mjs";
|
|
4
|
+
import "../../../../../relations-BHo5A8Zf.mjs";
|
|
5
|
+
import "../../../../../index-BVBZj4-7.mjs";
|
|
6
|
+
import "../../../../../runner-BYHZn3Jy.mjs";
|
|
7
|
+
import { t as fetchPluginTaxonomies } from "../../../../../index-C9KuQyO-.mjs";
|
|
8
|
+
import { f as NormalizedItem, s as ImportConfig, u as ImportResult } from "../../../../../types-CXnOzDe1.mjs";
|
|
9
|
+
import "../../../../../hreflang-DwT2E0Sa.mjs";
|
|
10
|
+
import "../../../../../validate-CTqt5nuE.mjs";
|
|
11
11
|
import { EmDashHandlers, EmDashManifest } from "../../../../types.mjs";
|
|
12
|
-
import { t as TaxonomyImportPlan } from "../../../../../wxr-taxonomies-
|
|
12
|
+
import { t as TaxonomyImportPlan } from "../../../../../wxr-taxonomies-Ca68766D.mjs";
|
|
13
13
|
import { APIRoute } from "astro";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/import/wordpress-plugin/execute.d.ts
|
|
@@ -6,32 +6,32 @@ import { n as slugify } from "../../../../../slugify-B994zkXC.mjs";
|
|
|
6
6
|
import "../../../../../base64-CvLhUKQv.mjs";
|
|
7
7
|
import "../../../../../types-CQPWhPxE.mjs";
|
|
8
8
|
import "../../../../../media-CzhAn2--.mjs";
|
|
9
|
-
import "../../../../../taxonomy-
|
|
9
|
+
import "../../../../../taxonomy-BqCZ1TdU.mjs";
|
|
10
10
|
import "../../../../../options-CBXIHUoT.mjs";
|
|
11
11
|
import "../../../../../request-cache-BSUptuJR.mjs";
|
|
12
12
|
import "../../../../../byline-registry-DDun8sxh.mjs";
|
|
13
|
-
import "../../../../../field-defs-cache-
|
|
14
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
13
|
+
import "../../../../../field-defs-cache-BzwBlJrR.mjs";
|
|
14
|
+
import { t as BylineRepository } from "../../../../../byline-yjvWq4ip.mjs";
|
|
15
15
|
import "../../../../../dist-D_6CKR8z.mjs";
|
|
16
16
|
import "../../../../../enrich-_ySMEvEE.mjs";
|
|
17
17
|
import "../../../../../resolve-DOhVEvty.mjs";
|
|
18
|
-
import "../../../../../loader-
|
|
19
|
-
import "../../../../../taxonomies-
|
|
20
|
-
import "../../../../../settings-
|
|
21
|
-
import { t as handleTaxonomyCreate } from "../../../../../taxonomies-
|
|
18
|
+
import "../../../../../loader-CdG_Ci3H.mjs";
|
|
19
|
+
import "../../../../../taxonomies-BlrncHi9.mjs";
|
|
20
|
+
import "../../../../../settings-xRdoUZr0.mjs";
|
|
21
|
+
import { t as handleTaxonomyCreate } from "../../../../../taxonomies-OHUIiIpI.mjs";
|
|
22
22
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-Cpvg_n3A.mjs";
|
|
23
23
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
24
24
|
import { n as parseBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
25
25
|
import "../../../../../media-BWWWb8kg.mjs";
|
|
26
|
-
import "../../../../../redirects-
|
|
26
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
27
27
|
import { T as wpPluginExecuteBody } from "../../../../../relations-BBApI4e2.mjs";
|
|
28
28
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
29
29
|
import "../../../../../api/schemas/index.mjs";
|
|
30
|
-
import { _ as importSiteSettings, a as fetchPluginOptions, i as fetchPluginMenus, n as fetchPluginCommentsPage, o as fetchPluginTaxonomies, p as getSource, r as fetchPluginContentPage, t as fetchPluginComments, v as parseSiteSettingsFromPlugin, x as importMenusFromPlugin, y as importCommentsFromPlugin } from "../../../../../import-
|
|
30
|
+
import { _ as importSiteSettings, a as fetchPluginOptions, i as fetchPluginMenus, n as fetchPluginCommentsPage, o as fetchPluginTaxonomies, p as getSource, r as fetchPluginContentPage, t as fetchPluginComments, v as parseSiteSettingsFromPlugin, x as importMenusFromPlugin, y as importCommentsFromPlugin } from "../../../../../import-DPkLmeXO.mjs";
|
|
31
31
|
import "../../../../../ssrf-DpXgKsna.mjs";
|
|
32
32
|
import { _ as sanitizeFieldSlug, g as resolveImportByline } from "../../../../../utils-D4vD_Y98.mjs";
|
|
33
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
34
|
-
import { a as preImportWxrTaxonomies, r as loadTaxonomyPlanFromDb, t as attachPostTaxonomies } from "../../../../../wxr-taxonomies-
|
|
33
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
34
|
+
import { a as preImportWxrTaxonomies, r as loadTaxonomyPlanFromDb, t as attachPostTaxonomies } from "../../../../../wxr-taxonomies-B1R3vBoD.mjs";
|
|
35
35
|
import { importMediaWithProgress } from "../wordpress/media.mjs";
|
|
36
36
|
import { ContentRepository, SchemaRegistry } from "emdash";
|
|
37
37
|
|
|
@@ -2,8 +2,8 @@ import "../../../base64-CvLhUKQv.mjs";
|
|
|
2
2
|
import "../../../types-CQPWhPxE.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "../../../options-CBXIHUoT.mjs";
|
|
4
4
|
import { n as apiSuccess, r as handleError } from "../../../error-DupyJZE2.mjs";
|
|
5
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
6
|
-
import { t as getAuthMode } from "../../../mode-
|
|
5
|
+
import { n as VERSION, t as COMMIT } from "../../../version-DB_fqCSI.mjs";
|
|
6
|
+
import { t as getAuthMode } from "../../../mode-BDoH_WcF.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/manifest.ts
|
|
9
9
|
const prerender = false;
|
|
@@ -3,12 +3,12 @@ import { i as encodeBase64, t as decodeBase64 } from "../../../base64-CvLhUKQv.m
|
|
|
3
3
|
import { i as InvalidCursorError, o as decodeCursor } from "../../../types-CQPWhPxE.mjs";
|
|
4
4
|
import { t as apiError } from "../../../error-DupyJZE2.mjs";
|
|
5
5
|
import { t as CONTENT_TYPE_RE } from "../../../media-BWWWb8kg.mjs";
|
|
6
|
-
import { Gt as updateFieldBody, Pt as createCollectionBody, Wt as updateCollectionBody, in as contentSeoInput, pn as bylineCreateBody, xn as contentBylineInputSchema, yn as bylineUpdateBody } from "../../../redirects-
|
|
6
|
+
import { Gt as updateFieldBody, Pt as createCollectionBody, Wt as updateCollectionBody, in as contentSeoInput, pn as bylineCreateBody, xn as contentBylineInputSchema, yn as bylineUpdateBody } from "../../../redirects-DTDHWH31.mjs";
|
|
7
7
|
import "../../../relations-BBApI4e2.mjs";
|
|
8
8
|
import "../../../status-CWVYpbD8.mjs";
|
|
9
9
|
import "../../../api/schemas/index.mjs";
|
|
10
|
-
import { i as hasScope$1 } from "../../../api-tokens-
|
|
11
|
-
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-
|
|
10
|
+
import { i as hasScope$1 } from "../../../api-tokens-rIXC6LdE.mjs";
|
|
11
|
+
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-imBW5cHK.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { Permissions, Role, canActOnOwn, hasPermission } from "@emdash-cms/auth";
|
|
14
14
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
@@ -234,7 +234,7 @@ function getEmDash(extra) {
|
|
|
234
234
|
}
|
|
235
235
|
async function getCollectionFields(ec, collection) {
|
|
236
236
|
try {
|
|
237
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
237
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
238
238
|
const col = await new SchemaRegistry(ec.db).getCollectionWithFields(collection);
|
|
239
239
|
return col ? col.fields : null;
|
|
240
240
|
} catch {
|
|
@@ -263,7 +263,7 @@ async function applyReadMarkdown(ec, collection, items) {
|
|
|
263
263
|
for (const item of items) if (item.data && typeof item.data === "object") item.data = convertDataForRead(item.data, fields, false);
|
|
264
264
|
}
|
|
265
265
|
async function invalidateBylines() {
|
|
266
|
-
const { invalidateBylineCache } = await import("../../../bylines-
|
|
266
|
+
const { invalidateBylineCache } = await import("../../../bylines-DjXS5p0P.mjs").then((n) => n.t);
|
|
267
267
|
invalidateBylineCache();
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
@@ -819,7 +819,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
819
819
|
requireScope(extra, "content:read");
|
|
820
820
|
const ec = getEmDash(extra);
|
|
821
821
|
try {
|
|
822
|
-
const { BylineRepository } = await import("../../../byline-
|
|
822
|
+
const { BylineRepository } = await import("../../../byline-yjvWq4ip.mjs").then((n) => n.n);
|
|
823
823
|
return jsonResult(await new BylineRepository(ec.db).findMany({
|
|
824
824
|
search: args.search,
|
|
825
825
|
isGuest: args.isGuest,
|
|
@@ -841,7 +841,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
841
841
|
requireScope(extra, "content:read");
|
|
842
842
|
const ec = getEmDash(extra);
|
|
843
843
|
try {
|
|
844
|
-
const { BylineRepository } = await import("../../../byline-
|
|
844
|
+
const { BylineRepository } = await import("../../../byline-yjvWq4ip.mjs").then((n) => n.n);
|
|
845
845
|
const byline = await new BylineRepository(ec.db).findById(args.id);
|
|
846
846
|
if (!byline) return respondError("NOT_FOUND", `Byline '${args.id}' not found`);
|
|
847
847
|
return jsonResult(byline);
|
|
@@ -859,7 +859,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
859
859
|
requireRole(extra, Role.EDITOR);
|
|
860
860
|
const ec = getEmDash(extra);
|
|
861
861
|
try {
|
|
862
|
-
const { handleBylineCreate } = await import("../../../bylines-
|
|
862
|
+
const { handleBylineCreate } = await import("../../../bylines-Bu7pchQ4.mjs").then((n) => n.t);
|
|
863
863
|
const result = await handleBylineCreate(ec.db, args);
|
|
864
864
|
if (result.success) await invalidateBylines();
|
|
865
865
|
return unwrap(result);
|
|
@@ -879,7 +879,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
879
879
|
requireRole(extra, Role.EDITOR);
|
|
880
880
|
const ec = getEmDash(extra);
|
|
881
881
|
try {
|
|
882
|
-
const { handleBylineUpdate } = await import("../../../bylines-
|
|
882
|
+
const { handleBylineUpdate } = await import("../../../bylines-Bu7pchQ4.mjs").then((n) => n.t);
|
|
883
883
|
const { id, ...input } = args;
|
|
884
884
|
const result = await handleBylineUpdate(ec.db, id, input);
|
|
885
885
|
if (result.success) await invalidateBylines();
|
|
@@ -898,7 +898,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
898
898
|
requireRole(extra, Role.EDITOR);
|
|
899
899
|
const ec = getEmDash(extra);
|
|
900
900
|
try {
|
|
901
|
-
const { BylineRepository } = await import("../../../byline-
|
|
901
|
+
const { BylineRepository } = await import("../../../byline-yjvWq4ip.mjs").then((n) => n.n);
|
|
902
902
|
if (!await new BylineRepository(ec.db).delete(args.id)) return respondError("NOT_FOUND", `Byline '${args.id}' not found`);
|
|
903
903
|
await invalidateBylines();
|
|
904
904
|
return jsonResult({ deleted: args.id });
|
|
@@ -915,7 +915,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
915
915
|
requireScope(extra, "content:read");
|
|
916
916
|
const ec = getEmDash(extra);
|
|
917
917
|
try {
|
|
918
|
-
const { handleBylineTranslations } = await import("../../../bylines-
|
|
918
|
+
const { handleBylineTranslations } = await import("../../../bylines-Bu7pchQ4.mjs").then((n) => n.t);
|
|
919
919
|
return unwrap(await handleBylineTranslations(ec.db, args.id));
|
|
920
920
|
} catch (error) {
|
|
921
921
|
return respondHandlerError(error, "BYLINE_TRANSLATIONS_ERROR");
|
|
@@ -931,7 +931,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
931
931
|
requireRole(extra, Role.EDITOR);
|
|
932
932
|
const ec = getEmDash(extra);
|
|
933
933
|
try {
|
|
934
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
934
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
935
935
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
936
936
|
} catch (error) {
|
|
937
937
|
return respondHandlerError(error, "SCHEMA_LIST_ERROR");
|
|
@@ -947,7 +947,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
947
947
|
requireRole(extra, Role.EDITOR);
|
|
948
948
|
const ec = getEmDash(extra);
|
|
949
949
|
try {
|
|
950
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
950
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
951
951
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
952
952
|
if (!collection) return respondError("NOT_FOUND", `Collection '${args.slug}' not found`);
|
|
953
953
|
return jsonResult(collection);
|
|
@@ -972,7 +972,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
972
972
|
requireRole(extra, Role.ADMIN);
|
|
973
973
|
const ec = getEmDash(extra);
|
|
974
974
|
try {
|
|
975
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
975
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
976
976
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
977
977
|
slug: args.slug,
|
|
978
978
|
label: args.label,
|
|
@@ -1001,7 +1001,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1001
1001
|
requireRole(extra, Role.ADMIN);
|
|
1002
1002
|
const ec = getEmDash(extra);
|
|
1003
1003
|
try {
|
|
1004
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1004
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
1005
1005
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
1006
1006
|
ec.invalidateUrlPatternCache();
|
|
1007
1007
|
return jsonResult({ deleted: args.slug });
|
|
@@ -1020,7 +1020,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1020
1020
|
const ec = getEmDash(extra);
|
|
1021
1021
|
const { slug, ...input } = args;
|
|
1022
1022
|
try {
|
|
1023
|
-
const { handleSchemaCollectionUpdate } = await import("../../../schema-
|
|
1023
|
+
const { handleSchemaCollectionUpdate } = await import("../../../schema-2AOsSn2v.mjs").then((n) => n.m);
|
|
1024
1024
|
const result = await handleSchemaCollectionUpdate(ec.db, slug, input);
|
|
1025
1025
|
if (result.success) ec.invalidateUrlPatternCache();
|
|
1026
1026
|
return unwrap(result);
|
|
@@ -1075,7 +1075,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1075
1075
|
requireRole(extra, Role.ADMIN);
|
|
1076
1076
|
const ec = getEmDash(extra);
|
|
1077
1077
|
try {
|
|
1078
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1078
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
1079
1079
|
return jsonResult(await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
1080
1080
|
slug: args.slug,
|
|
1081
1081
|
label: args.label,
|
|
@@ -1106,7 +1106,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1106
1106
|
requireRole(extra, Role.ADMIN);
|
|
1107
1107
|
const ec = getEmDash(extra);
|
|
1108
1108
|
try {
|
|
1109
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
1109
|
+
const { SchemaRegistry } = await import("../../../schema-DZ5YVVZj.mjs").then((n) => n.t);
|
|
1110
1110
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
1111
1111
|
return jsonResult({
|
|
1112
1112
|
deleted: args.fieldSlug,
|
|
@@ -1127,7 +1127,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1127
1127
|
const ec = getEmDash(extra);
|
|
1128
1128
|
const { collection, fieldSlug, ...input } = args;
|
|
1129
1129
|
try {
|
|
1130
|
-
const { handleSchemaFieldUpdate } = await import("../../../schema-
|
|
1130
|
+
const { handleSchemaFieldUpdate } = await import("../../../schema-2AOsSn2v.mjs").then((n) => n.m);
|
|
1131
1131
|
return unwrap(await handleSchemaFieldUpdate(ec.db, collection, fieldSlug, input));
|
|
1132
1132
|
} catch (error) {
|
|
1133
1133
|
return respondHandlerError(error, "SCHEMA_FIELD_UPDATE_ERROR");
|
|
@@ -1198,7 +1198,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1198
1198
|
const { emdash, userId } = getExtra(extra);
|
|
1199
1199
|
if (!emdash.storage) return respondError("NO_STORAGE", "Storage not configured");
|
|
1200
1200
|
try {
|
|
1201
|
-
const { handleMediaUpload } = await import("../../../media-upload-
|
|
1201
|
+
const { handleMediaUpload } = await import("../../../media-upload-CHBVn6m-.mjs");
|
|
1202
1202
|
return unwrap(await handleMediaUpload(emdash.db, emdash.storage, {
|
|
1203
1203
|
filename: args.filename,
|
|
1204
1204
|
base64: args.base64,
|
|
@@ -1278,7 +1278,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1278
1278
|
};
|
|
1279
1279
|
} else input = { scope: "all" };
|
|
1280
1280
|
try {
|
|
1281
|
-
const { handleMediaUsageRepair } = await import("../../../media-usage-
|
|
1281
|
+
const { handleMediaUsageRepair } = await import("../../../media-usage-BZCydfvu.mjs").then((n) => n.i);
|
|
1282
1282
|
return unwrap(await handleMediaUsageRepair(ec.db, input));
|
|
1283
1283
|
} catch (error) {
|
|
1284
1284
|
return respondHandlerError(error, "MEDIA_USAGE_REPAIR_ERROR");
|
|
@@ -1299,7 +1299,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1299
1299
|
requireScope(extra, "content:read");
|
|
1300
1300
|
const ec = getEmDash(extra);
|
|
1301
1301
|
try {
|
|
1302
|
-
const { searchWithDb } = await import("../../../search-
|
|
1302
|
+
const { searchWithDb } = await import("../../../search-u1QYdOCG.mjs").then((n) => n.t);
|
|
1303
1303
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
1304
1304
|
collections: args.collections,
|
|
1305
1305
|
locale: args.locale,
|
|
@@ -1319,7 +1319,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1319
1319
|
requireScope(extra, "content:read");
|
|
1320
1320
|
const ec = getEmDash(extra);
|
|
1321
1321
|
try {
|
|
1322
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
1322
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-OHUIiIpI.mjs").then((n) => n.m);
|
|
1323
1323
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
1324
1324
|
} catch (error) {
|
|
1325
1325
|
return respondHandlerError(error, "TAXONOMY_LIST_ERROR");
|
|
@@ -1339,11 +1339,11 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1339
1339
|
requireScope(extra, "content:read");
|
|
1340
1340
|
const ec = getEmDash(extra);
|
|
1341
1341
|
try {
|
|
1342
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
1342
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-OHUIiIpI.mjs").then((n) => n.m);
|
|
1343
1343
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
1344
1344
|
if (!listResult.success) return unwrap(listResult);
|
|
1345
1345
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return respondError("NOT_FOUND", `Taxonomy '${args.taxonomy}' not found`);
|
|
1346
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
1346
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-BqCZ1TdU.mjs").then((n) => n.n);
|
|
1347
1347
|
const repo = new TaxonomyRepository(ec.db);
|
|
1348
1348
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
1349
1349
|
let cursor;
|
|
@@ -1404,7 +1404,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1404
1404
|
requireRole(extra, Role.EDITOR);
|
|
1405
1405
|
const ec = getEmDash(extra);
|
|
1406
1406
|
try {
|
|
1407
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
1407
|
+
const { handleTermCreate } = await import("../../../taxonomies-OHUIiIpI.mjs").then((n) => n.m);
|
|
1408
1408
|
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
1409
1409
|
slug: args.slug,
|
|
1410
1410
|
label: args.label,
|
|
@@ -1433,7 +1433,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1433
1433
|
requireRole(extra, Role.EDITOR);
|
|
1434
1434
|
const ec = getEmDash(extra);
|
|
1435
1435
|
try {
|
|
1436
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
1436
|
+
const { handleTermUpdate } = await import("../../../taxonomies-OHUIiIpI.mjs").then((n) => n.m);
|
|
1437
1437
|
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
1438
1438
|
slug: args.slug,
|
|
1439
1439
|
label: args.label,
|
|
@@ -1457,7 +1457,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1457
1457
|
requireRole(extra, Role.EDITOR);
|
|
1458
1458
|
const ec = getEmDash(extra);
|
|
1459
1459
|
try {
|
|
1460
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
1460
|
+
const { handleTermDelete } = await import("../../../taxonomies-OHUIiIpI.mjs").then((n) => n.m);
|
|
1461
1461
|
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug));
|
|
1462
1462
|
} catch (error) {
|
|
1463
1463
|
return respondHandlerError(error, "TAXONOMY_TERM_DELETE_ERROR");
|
|
@@ -1472,7 +1472,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1472
1472
|
requireScope(extra, "content:read");
|
|
1473
1473
|
const ec = getEmDash(extra);
|
|
1474
1474
|
try {
|
|
1475
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
1475
|
+
const { handleTermTranslations } = await import("../../../taxonomies-OHUIiIpI.mjs").then((n) => n.m);
|
|
1476
1476
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
1477
1477
|
} catch (error) {
|
|
1478
1478
|
return respondHandlerError(error, "TERM_TRANSLATIONS_ERROR");
|
|
@@ -1487,7 +1487,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1487
1487
|
requireScope(extra, "content:read");
|
|
1488
1488
|
const ec = getEmDash(extra);
|
|
1489
1489
|
try {
|
|
1490
|
-
const { handleMenuList } = await import("../../../menus-
|
|
1490
|
+
const { handleMenuList } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1491
1491
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
1492
1492
|
} catch (error) {
|
|
1493
1493
|
return respondHandlerError(error, "MENU_LIST_ERROR");
|
|
@@ -1505,7 +1505,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1505
1505
|
requireScope(extra, "content:read");
|
|
1506
1506
|
const ec = getEmDash(extra);
|
|
1507
1507
|
try {
|
|
1508
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
1508
|
+
const { handleMenuGet } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1509
1509
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
1510
1510
|
} catch (error) {
|
|
1511
1511
|
return respondHandlerError(error, "MENU_GET_ERROR");
|
|
@@ -1520,7 +1520,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1520
1520
|
requireScope(extra, "content:read");
|
|
1521
1521
|
const ec = getEmDash(extra);
|
|
1522
1522
|
try {
|
|
1523
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
1523
|
+
const { handleMenuTranslations } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1524
1524
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
1525
1525
|
} catch (error) {
|
|
1526
1526
|
return respondHandlerError(error, "MENU_TRANSLATIONS_ERROR");
|
|
@@ -1540,7 +1540,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1540
1540
|
requireRole(extra, Role.EDITOR);
|
|
1541
1541
|
const ec = getEmDash(extra);
|
|
1542
1542
|
try {
|
|
1543
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
1543
|
+
const { handleMenuCreate } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1544
1544
|
return unwrap(await handleMenuCreate(ec.db, {
|
|
1545
1545
|
name: args.name,
|
|
1546
1546
|
label: args.label,
|
|
@@ -1564,7 +1564,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1564
1564
|
requireRole(extra, Role.EDITOR);
|
|
1565
1565
|
const ec = getEmDash(extra);
|
|
1566
1566
|
try {
|
|
1567
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
1567
|
+
const { handleMenuUpdate } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1568
1568
|
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
1569
1569
|
label: args.label,
|
|
1570
1570
|
locale: args.locale
|
|
@@ -1586,7 +1586,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1586
1586
|
requireRole(extra, Role.EDITOR);
|
|
1587
1587
|
const ec = getEmDash(extra);
|
|
1588
1588
|
try {
|
|
1589
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
1589
|
+
const { handleMenuDelete } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1590
1590
|
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
1591
1591
|
} catch (error) {
|
|
1592
1592
|
return respondHandlerError(error, "MENU_DELETE_ERROR");
|
|
@@ -1621,7 +1621,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1621
1621
|
requireRole(extra, Role.EDITOR);
|
|
1622
1622
|
const ec = getEmDash(extra);
|
|
1623
1623
|
try {
|
|
1624
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
1624
|
+
const { handleMenuSetItems } = await import("../../../menus-TCNSd2vp.mjs").then((n) => n.d);
|
|
1625
1625
|
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
1626
1626
|
} catch (error) {
|
|
1627
1627
|
return respondHandlerError(error, "MENU_SET_ITEMS_ERROR");
|
|
@@ -1668,7 +1668,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1668
1668
|
requireRole(extra, Role.EDITOR);
|
|
1669
1669
|
const ec = getEmDash(extra);
|
|
1670
1670
|
try {
|
|
1671
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
1671
|
+
const { handleSettingsGet } = await import("../../../settings-DE9xtzqd.mjs").then((n) => n.r);
|
|
1672
1672
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
1673
1673
|
} catch (error) {
|
|
1674
1674
|
return respondHandlerError(error, "SETTINGS_READ_ERROR");
|
|
@@ -1694,7 +1694,7 @@ function createMcpServer(pluginTools = [], request) {
|
|
|
1694
1694
|
requireRole(extra, Role.ADMIN);
|
|
1695
1695
|
const ec = getEmDash(extra);
|
|
1696
1696
|
try {
|
|
1697
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
1697
|
+
const { handleSettingsUpdate } = await import("../../../settings-DE9xtzqd.mjs").then((n) => n.r);
|
|
1698
1698
|
return unwrap(await handleSettingsUpdate(ec.db, ec.storage, args));
|
|
1699
1699
|
} catch (error) {
|
|
1700
1700
|
return respondHandlerError(error, "SETTINGS_UPDATE_ERROR");
|
|
@@ -8,11 +8,11 @@ import { n as computeContentHash, t as MAX_CONTENT_HASH_BYTES } from "../../../.
|
|
|
8
8
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
9
9
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
10
10
|
import { i as mediaConfirmBody } from "../../../../../media-BWWWb8kg.mjs";
|
|
11
|
-
import "../../../../../redirects-
|
|
11
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
12
12
|
import "../../../../../relations-BBApI4e2.mjs";
|
|
13
13
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
14
14
|
import "../../../../../api/schemas/index.mjs";
|
|
15
|
-
import { n as requireOwnerPerm, r as requirePerm } from "../../../../../authorize-
|
|
15
|
+
import { n as requireOwnerPerm, r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
18
18
|
const prerender = false;
|