emdash 0.18.0 → 0.20.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-C5AWLJSD.d.mts → adapters-BzIHV3sw.d.mts} +1 -1
- package/dist/{adapters-C5AWLJSD.d.mts.map → adapters-BzIHV3sw.d.mts.map} +1 -1
- package/dist/{allowed-origins-CyYLEJkp.mjs → allowed-origins-B1u7Qnvg.mjs} +2 -2
- package/dist/{allowed-origins-CyYLEJkp.mjs.map → allowed-origins-B1u7Qnvg.mjs.map} +1 -1
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +15 -15
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-Cs7DAACP.mjs → api-DStv36ik.mjs} +123 -20
- package/dist/api-DStv36ik.mjs.map +1 -0
- package/dist/{api-tokens-VrXNiNvV.mjs → api-tokens-DPfhPu5V.mjs} +2 -2
- package/dist/{api-tokens-VrXNiNvV.mjs.map → api-tokens-DPfhPu5V.mjs.map} +1 -1
- package/dist/{apply-BWMV4Zmw.mjs → apply-Dr7snAMT.mjs} +23 -23
- package/dist/apply-Dr7snAMT.mjs.map +1 -0
- package/dist/astro/index.d.mts +10 -10
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +115 -25
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +26 -4
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +242 -259
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +8 -8
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +8 -8
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +8 -8
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/index.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +8 -8
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +5 -5
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +4 -4
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/updates.mjs +33 -33
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +33 -33
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +33 -33
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
- package/dist/astro/routes/api/auth/logout.mjs +3 -3
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/me.mjs +6 -6
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +4 -4
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +12 -10
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +9 -8
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/authors.d.mts +8 -0
- package/dist/astro/routes/api/content/_collection_/authors.d.mts.map +1 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs +19 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs.map +1 -0
- package/dist/astro/routes/api/content/_collection_/index.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +9 -9
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +29 -29
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
- package/dist/astro/routes/api/media/providers/index.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +7 -7
- package/dist/astro/routes/api/media.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/items.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/translations.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_.mjs +7 -7
- package/dist/astro/routes/api/menus/index.mjs +7 -7
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +8 -8
- package/dist/astro/routes/api/oauth/device/token.mjs +7 -7
- package/dist/astro/routes/api/oauth/register.mjs +3 -3
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +17 -3
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +9 -9
- package/dist/astro/routes/api/redirects/404s/summary.mjs +9 -9
- package/dist/astro/routes/api/redirects/_id_.mjs +10 -10
- package/dist/astro/routes/api/redirects/index.mjs +10 -10
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +3 -3
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/index.mjs +33 -33
- package/dist/astro/routes/api/schema/index.mjs +9 -14
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +33 -33
- package/dist/astro/routes/api/schema/orphans/index.mjs +33 -33
- package/dist/astro/routes/api/search/enable.mjs +9 -9
- package/dist/astro/routes/api/search/index.mjs +8 -8
- package/dist/astro/routes/api/search/rebuild.mjs +9 -9
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs +8 -8
- package/dist/astro/routes/api/sections/index.mjs +8 -8
- package/dist/astro/routes/api/settings/email.mjs +5 -5
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
- package/dist/astro/routes/api/setup/admin.mjs +10 -10
- package/dist/astro/routes/api/setup/dev-bypass.mjs +23 -23
- package/dist/astro/routes/api/setup/dev-reset.mjs +3 -3
- package/dist/astro/routes/api/setup/index.mjs +23 -23
- package/dist/astro/routes/api/setup/status.mjs +4 -4
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/index.mjs +11 -11
- package/dist/astro/routes/api/themes/preview.mjs +6 -6
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- 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 +6 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +9 -8
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +9 -8
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.mjs +6 -5
- package/dist/astro/routes/api/widget-areas/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/index.mjs +9 -8
- package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
- package/dist/astro/routes/api/widget-components.mjs +3 -3
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.d.mts.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +16 -9
- package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
- package/dist/astro/routes/sitemap.xml.mjs +8 -8
- package/dist/astro/types.d.mts +19 -12
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-CotM4Yiu.mjs → authorize-DsMSVSaY.mjs} +2 -2
- package/dist/{authorize-CotM4Yiu.mjs.map → authorize-DsMSVSaY.mjs.map} +1 -1
- package/dist/{byline-CWQ9aSoz.mjs → byline-DUx48sJp.mjs} +6 -6
- package/dist/{byline-CWQ9aSoz.mjs.map → byline-DUx48sJp.mjs.map} +1 -1
- package/dist/{byline-fields-DC3Wkk-U.mjs → byline-fields--WxSNS79.mjs} +2 -2
- package/dist/{byline-fields-DC3Wkk-U.mjs.map → byline-fields--WxSNS79.mjs.map} +1 -1
- package/dist/{byline-fields-Dr-xcb6S.mjs → byline-fields-8TMtkBnH.mjs} +3 -3
- package/dist/{byline-fields-Dr-xcb6S.mjs.map → byline-fields-8TMtkBnH.mjs.map} +1 -1
- package/dist/{byline-fields-BNy7Ng1U.d.mts → byline-fields-DbibsvTl.d.mts} +30 -2
- package/dist/byline-fields-DbibsvTl.d.mts.map +1 -0
- package/dist/{byline-registry-CxK5g559.mjs → byline-registry-CWP7I71B.mjs} +3 -3
- package/dist/{byline-registry-CxK5g559.mjs.map → byline-registry-CWP7I71B.mjs.map} +1 -1
- package/dist/{bylines-LJMgENMI.mjs → bylines-BdxWCnPL.mjs} +3 -3
- package/dist/{bylines-LJMgENMI.mjs.map → bylines-BdxWCnPL.mjs.map} +1 -1
- package/dist/{bylines-BJSva1Un.mjs → bylines-s8c2DXbH.mjs} +50 -6
- package/dist/{bylines-BJSva1Un.mjs.map → bylines-s8c2DXbH.mjs.map} +1 -1
- package/dist/{cache-lZL7SgVb.mjs → cache-B_HzASVT.mjs} +3 -3
- package/dist/{cache-lZL7SgVb.mjs.map → cache-B_HzASVT.mjs.map} +1 -1
- package/dist/{challenge-store-DGwuCc4R.mjs → challenge-store-DXX3rfdI.mjs} +1 -1
- package/dist/{challenge-store-DGwuCc4R.mjs.map → challenge-store-DXX3rfdI.mjs.map} +1 -1
- package/dist/{chunks-BU-vP9Dh.mjs → chunks-BerYVuve.mjs} +2 -2
- package/dist/{chunks-BU-vP9Dh.mjs.map → chunks-BerYVuve.mjs.map} +1 -1
- package/dist/cli/index.mjs +46 -32
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/{comment-C4jVbCM8.mjs → comment-sqQxNpN3.mjs} +2 -2
- package/dist/{comment-C4jVbCM8.mjs.map → comment-sqQxNpN3.mjs.map} +1 -1
- package/dist/{comments-BTAbC0Ek.mjs → comments-Vkivawyl.mjs} +3 -3
- package/dist/{comments-BTAbC0Ek.mjs.map → comments-Vkivawyl.mjs.map} +1 -1
- package/dist/{components-CTfpu3PZ.mjs → components-CK0cuUoH.mjs} +1 -1
- package/dist/{components-CTfpu3PZ.mjs.map → components-CK0cuUoH.mjs.map} +1 -1
- package/dist/{content-CyqOmOzm.mjs → content-BIlVx-RX.mjs} +132 -43
- package/dist/content-BIlVx-RX.mjs.map +1 -0
- package/dist/{context-DZ7bEh5-.mjs → context-Y7BRkWes.mjs} +10 -10
- package/dist/{context-DZ7bEh5-.mjs.map → context-Y7BRkWes.mjs.map} +1 -1
- package/dist/{cron-DZovZUnC.mjs → cron-BJ2ClIlj.mjs} +4 -3
- package/dist/cron-BJ2ClIlj.mjs.map +1 -0
- package/dist/{dashboard-B5WQpNTP.mjs → dashboard-2JgAMWxK.mjs} +4 -4
- package/dist/{dashboard-B5WQpNTP.mjs.map → dashboard-2JgAMWxK.mjs.map} +1 -1
- package/dist/database/instrumentation.d.mts +10 -1
- package/dist/database/instrumentation.d.mts.map +1 -1
- package/dist/database/instrumentation.mjs +13 -1
- package/dist/database/instrumentation.mjs.map +1 -1
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{default-xLFNSsZ9.mjs → default-IlBaTFxM.mjs} +1 -1
- package/dist/{default-xLFNSsZ9.mjs.map → default-IlBaTFxM.mjs.map} +1 -1
- package/dist/{device-flow-ptLrVINd.mjs → device-flow-R23SIbQ2.mjs} +5 -5
- package/dist/{device-flow-ptLrVINd.mjs.map → device-flow-R23SIbQ2.mjs.map} +1 -1
- package/dist/{error-DJOsMVSt.mjs → error-RwM4dD35.mjs} +2 -2
- package/dist/{error-DJOsMVSt.mjs.map → error-RwM4dD35.mjs.map} +1 -1
- package/dist/{escape-bIyGoW5W.mjs → escape-Ds07EEyu.mjs} +1 -1
- package/dist/{escape-bIyGoW5W.mjs.map → escape-Ds07EEyu.mjs.map} +1 -1
- package/dist/{fts-manager-DR1ERA0c.mjs → fts-manager-1RgHmopc.mjs} +2 -2
- package/dist/{fts-manager-DR1ERA0c.mjs.map → fts-manager-1RgHmopc.mjs.map} +1 -1
- package/dist/{index-CjKdMZ3U.d.mts → index-B1keaX5Y.d.mts} +237 -24
- package/dist/index-B1keaX5Y.d.mts.map +1 -0
- package/dist/{index-D60_SzHG.d.mts → index-DR56od45.d.mts} +3 -3
- package/dist/{index-D60_SzHG.d.mts.map → index-DR56od45.d.mts.map} +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +46 -46
- package/dist/{load-6ZrRhepW.mjs → load-BBetCvLC.mjs} +2 -2
- package/dist/{load-6ZrRhepW.mjs.map → load-BBetCvLC.mjs.map} +1 -1
- package/dist/{loader-Dyx8dhFV.mjs → loader-ZN1ll-d-.mjs} +36 -37
- package/dist/loader-ZN1ll-d-.mjs.map +1 -0
- package/dist/{manifest-schema-Cj-YrzrF.mjs → manifest-schema-BtwbL_vj.mjs} +55 -2
- package/dist/manifest-schema-BtwbL_vj.mjs.map +1 -0
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +11 -11
- package/dist/media/local-runtime.mjs +6 -6
- package/dist/{media-C-oovGCG.mjs → media-JOf3pNkw.mjs} +2 -2
- package/dist/{media-C-oovGCG.mjs.map → media-JOf3pNkw.mjs.map} +1 -1
- package/dist/{media-allowlist-CMcoYIjQ.mjs → media-allowlist-Dknq-OFY.mjs} +1 -1
- package/dist/{media-allowlist-CMcoYIjQ.mjs.map → media-allowlist-Dknq-OFY.mjs.map} +1 -1
- package/dist/media-url-VClf8glU.mjs +26 -0
- package/dist/media-url-VClf8glU.mjs.map +1 -0
- package/dist/{menus-DugoYwTX.mjs → menus-DX4_E01q.mjs} +3 -3
- package/dist/{menus-DugoYwTX.mjs.map → menus-DX4_E01q.mjs.map} +1 -1
- package/dist/{menus-BKkxXCmd.mjs → menus-DrQLusqj.mjs} +87 -37
- package/dist/menus-DrQLusqj.mjs.map +1 -0
- package/dist/{mode-BjlXswIw.mjs → mode-CO2vQHfq.mjs} +1 -1
- package/dist/{mode-BjlXswIw.mjs.map → mode-CO2vQHfq.mjs.map} +1 -1
- package/dist/{normalize-DVV8nbrL.mjs → normalize-CK5o04zr.mjs} +2 -2
- package/dist/{normalize-DVV8nbrL.mjs.map → normalize-CK5o04zr.mjs.map} +1 -1
- package/dist/{oauth-authorization-DvBAL75d.mjs → oauth-authorization-Bw4NdF_S.mjs} +5 -5
- package/dist/{oauth-authorization-DvBAL75d.mjs.map → oauth-authorization-Bw4NdF_S.mjs.map} +1 -1
- package/dist/{oauth-clients-8mPDStMv.mjs → oauth-clients-BGGFp57s.mjs} +1 -1
- package/dist/{oauth-clients-8mPDStMv.mjs.map → oauth-clients-BGGFp57s.mjs.map} +1 -1
- package/dist/{oauth-state-store-BJ7YtrfD.mjs → oauth-state-store-97x0xtN2.mjs} +1 -1
- package/dist/{oauth-state-store-BJ7YtrfD.mjs.map → oauth-state-store-97x0xtN2.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-BdDSDvjF.mjs → oauth-user-lookup-B_vnZHKO.mjs} +1 -1
- package/dist/{oauth-user-lookup-BdDSDvjF.mjs.map → oauth-user-lookup-B_vnZHKO.mjs.map} +1 -1
- package/dist/{options-BL4X94qY.mjs → options-BPCVnesz.mjs} +1 -1
- package/dist/{options-BL4X94qY.mjs.map → options-BPCVnesz.mjs.map} +1 -1
- package/dist/{options-tb7DJROi.d.mts → options-DyYIYpPd.d.mts} +3 -3
- package/dist/{options-tb7DJROi.d.mts.map → options-DyYIYpPd.d.mts.map} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/{parse-BBkFmLVr.mjs → parse-CrGndy1A.mjs} +2 -2
- package/dist/{parse-BBkFmLVr.mjs.map → parse-CrGndy1A.mjs.map} +1 -1
- package/dist/{passkey-config-BDVM86Tj.mjs → passkey-config-C3QgnQnU.mjs} +1 -1
- package/dist/{passkey-config-BDVM86Tj.mjs.map → passkey-config-C3QgnQnU.mjs.map} +1 -1
- package/dist/{patterns-CqG5Ya3i.mjs → patterns-p-RBdTbM.mjs} +1 -1
- package/dist/{patterns-CqG5Ya3i.mjs.map → patterns-p-RBdTbM.mjs.map} +1 -1
- package/dist/{placeholder-B9lUUEmj.d.mts → placeholder-CVBv5z8k.d.mts} +1 -1
- package/dist/{placeholder-B9lUUEmj.d.mts.map → placeholder-CVBv5z8k.d.mts.map} +1 -1
- package/dist/plugin-types.d.mts +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +2 -2
- package/dist/{public-url-egRHCy1m.mjs → public-url-BFVC2OTJ.mjs} +1 -1
- package/dist/{public-url-egRHCy1m.mjs.map → public-url-BFVC2OTJ.mjs.map} +1 -1
- package/dist/{query-Ctlq1aOk.mjs → query-CbUcI4Xk.mjs} +33 -17
- package/dist/query-CbUcI4Xk.mjs.map +1 -0
- package/dist/{rate-limit-CH6W6ikK.mjs → rate-limit-C7hjdkS5.mjs} +2 -2
- package/dist/{rate-limit-CH6W6ikK.mjs.map → rate-limit-C7hjdkS5.mjs.map} +1 -1
- package/dist/{redirect-Cw3JTlmj.mjs → redirect-B_q19j4v.mjs} +1 -1
- package/dist/{redirect-Cw3JTlmj.mjs.map → redirect-B_q19j4v.mjs.map} +1 -1
- package/dist/{redirect-C6tJA7tk.mjs → redirect-CRWIt8Zj.mjs} +3 -3
- package/dist/{redirect-C6tJA7tk.mjs.map → redirect-CRWIt8Zj.mjs.map} +1 -1
- package/dist/{redirects-C0L9JUk4.mjs → redirects-CCbCqCCd.mjs} +28 -4
- package/dist/redirects-CCbCqCCd.mjs.map +1 -0
- package/dist/{redirects-CacE9eQa.mjs → redirects-DxVoR7PI.mjs} +5 -5
- package/dist/{redirects-CacE9eQa.mjs.map → redirects-DxVoR7PI.mjs.map} +1 -1
- package/dist/{registry-CIDxZbhh.mjs → registry-brYh-rAT.mjs} +6 -6
- package/dist/{registry-CIDxZbhh.mjs.map → registry-brYh-rAT.mjs.map} +1 -1
- package/dist/{request-cache-BYMs-BGX.mjs → request-cache-D32LpnmI.mjs} +1 -1
- package/dist/{request-cache-BYMs-BGX.mjs.map → request-cache-D32LpnmI.mjs.map} +1 -1
- package/dist/request-context.d.mts +7 -0
- package/dist/request-context.d.mts.map +1 -1
- package/dist/request-context.mjs +2 -1
- package/dist/request-context.mjs.map +1 -1
- package/dist/{runner-pt6Wl-l-.mjs → runner--4wMWwKM.mjs} +217 -166
- package/dist/runner--4wMWwKM.mjs.map +1 -0
- package/dist/{runner-DM1yR5qd.d.mts → runner-DTdhuI9i.d.mts} +2 -2
- package/dist/{runner-DM1yR5qd.d.mts.map → runner-DTdhuI9i.d.mts.map} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +2 -2
- package/dist/{schema-B4tk0HAG.mjs → schema-C1E70ug_.mjs} +5 -5
- package/dist/{schema-B4tk0HAG.mjs.map → schema-C1E70ug_.mjs.map} +1 -1
- package/dist/{search-f-fNfwab.mjs → search-B3SGZw91.mjs} +4 -4
- package/dist/{search-f-fNfwab.mjs.map → search-B3SGZw91.mjs.map} +1 -1
- package/dist/{secrets-YYbTgB1w.mjs → secrets-ChPTmy9x.mjs} +2 -2
- package/dist/{secrets-YYbTgB1w.mjs.map → secrets-ChPTmy9x.mjs.map} +1 -1
- package/dist/{sections-biElLfT9.mjs → sections-D_lVzwRZ.mjs} +3 -3
- package/dist/{sections-biElLfT9.mjs.map → sections-D_lVzwRZ.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +17 -17
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.d.mts.map +1 -1
- package/dist/seo/index.mjs +3 -12
- package/dist/seo/index.mjs.map +1 -1
- package/dist/{seo-BR39kvTF.mjs → seo-B5e6y9Wk.mjs} +2 -2
- package/dist/{seo-BR39kvTF.mjs.map → seo-B5e6y9Wk.mjs.map} +1 -1
- package/dist/{seo-DfjLvu8i.mjs → seo-D_LPkOtu.mjs} +4 -3
- package/dist/seo-D_LPkOtu.mjs.map +1 -0
- package/dist/{service-BhR2acnc.mjs → service-ChDcsTBs.mjs} +3 -3
- package/dist/{service-BhR2acnc.mjs.map → service-ChDcsTBs.mjs.map} +1 -1
- package/dist/{settings-D_NJvjgN.mjs → settings-Cv47v9u8.mjs} +3 -3
- package/dist/{settings-D_NJvjgN.mjs.map → settings-Cv47v9u8.mjs.map} +1 -1
- package/dist/settings-DfxiWY_s.mjs +411 -0
- package/dist/settings-DfxiWY_s.mjs.map +1 -0
- package/dist/{setup-complete-VoEZfasi.mjs → setup-complete-yvPE4OsP.mjs} +2 -2
- package/dist/{setup-complete-VoEZfasi.mjs.map → setup-complete-yvPE4OsP.mjs.map} +1 -1
- package/dist/{setup-nonce-Bm0uKqmf.mjs → setup-nonce-C9aFzb94.mjs} +1 -1
- package/dist/{setup-nonce-Bm0uKqmf.mjs.map → setup-nonce-C9aFzb94.mjs.map} +1 -1
- package/dist/{site-url-Cm8-sJy7.mjs → site-url-CnHlmAs9.mjs} +2 -2
- package/dist/{site-url-Cm8-sJy7.mjs.map → site-url-CnHlmAs9.mjs.map} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/{taxonomies-Mhn9rjTQ.mjs → taxonomies-BILwiyGk.mjs} +4 -4
- package/dist/{taxonomies-Mhn9rjTQ.mjs.map → taxonomies-BILwiyGk.mjs.map} +1 -1
- package/dist/{taxonomies-Crtzy4MT.mjs → taxonomies-BdAmbOwx.mjs} +50 -12
- package/dist/taxonomies-BdAmbOwx.mjs.map +1 -0
- package/dist/{taxonomy-DTZrIQpi.mjs → taxonomy-CdllE4oq.mjs} +3 -3
- package/dist/{taxonomy-DTZrIQpi.mjs.map → taxonomy-CdllE4oq.mjs.map} +1 -1
- package/dist/{transaction-NQj4VJ7Z.mjs → transaction-x2tJQ-A1.mjs} +1 -1
- package/dist/{transaction-NQj4VJ7Z.mjs.map → transaction-x2tJQ-A1.mjs.map} +1 -1
- package/dist/{transport-OnMNbsIA.d.mts → transport-B7PPP2CC.d.mts} +1 -1
- package/dist/{transport-OnMNbsIA.d.mts.map → transport-B7PPP2CC.d.mts.map} +1 -1
- package/dist/{transport--Ck3RBin.mjs → transport-CmpLD7W3.mjs} +1 -1
- package/dist/{transport--Ck3RBin.mjs.map → transport-CmpLD7W3.mjs.map} +1 -1
- package/dist/{types-DWnN7weG.d.mts → types-BFgrqwSk.d.mts} +1 -1
- package/dist/{types-DWnN7weG.d.mts.map → types-BFgrqwSk.d.mts.map} +1 -1
- package/dist/{types-Qa7-HJJC.d.mts → types-BH8-30hc.d.mts} +1 -1
- package/dist/{types-Qa7-HJJC.d.mts.map → types-BH8-30hc.d.mts.map} +1 -1
- package/dist/{types-DawhLFwy.d.mts → types-BPzXTV9x.d.mts} +26 -1
- package/dist/{types-DawhLFwy.d.mts.map → types-BPzXTV9x.d.mts.map} +1 -1
- package/dist/{types-DbCWhHet.d.mts → types-BUUVn1zr.d.mts} +2 -2
- package/dist/types-BUUVn1zr.d.mts.map +1 -0
- package/dist/{types-K3MDsxpy.mjs → types-BXSUSAjt.mjs} +16 -3
- package/dist/{types-K3MDsxpy.mjs.map → types-BXSUSAjt.mjs.map} +1 -1
- package/dist/{types-DMwSpvcw.d.mts → types-CPAPl93j.d.mts} +9 -3
- package/dist/{types-DMwSpvcw.d.mts.map → types-CPAPl93j.d.mts.map} +1 -1
- package/dist/types-CZI4E3qG.mjs +3 -0
- package/dist/{types-kwqCOUxj.d.mts → types-D4kUqbHh.d.mts} +1 -1
- package/dist/{types-kwqCOUxj.d.mts.map → types-D4kUqbHh.d.mts.map} +1 -1
- package/dist/{types-i8_uzhMD.d.mts → types-DTniiNto.d.mts} +19 -4
- package/dist/types-DTniiNto.d.mts.map +1 -0
- package/dist/{types-D8bhH891.mjs → types-DZk_y-MU.mjs} +1 -1
- package/dist/types-DZk_y-MU.mjs.map +1 -0
- package/dist/{types-DX6v9KzJ.d.mts → types-S15DXXNi.d.mts} +1 -1
- package/dist/{types-DX6v9KzJ.d.mts.map → types-S15DXXNi.d.mts.map} +1 -1
- package/dist/{user-DzEUl5zA.mjs → user-C0um7wrg.mjs} +18 -2
- package/dist/user-C0um7wrg.mjs.map +1 -0
- package/dist/{validate-JCXcsqiY.mjs → validate-Bz4vqcX1.mjs} +6 -3
- package/dist/validate-Bz4vqcX1.mjs.map +1 -0
- package/dist/{validate-Dy6nkNls.d.mts → validate-CNwkPWzz.d.mts} +13 -5
- package/dist/validate-CNwkPWzz.d.mts.map +1 -0
- package/dist/{validation-Bq-VyKJg.mjs → validation-DgGTJm3u.mjs} +5 -5
- package/dist/{validation-Bq-VyKJg.mjs.map → validation-DgGTJm3u.mjs.map} +1 -1
- package/dist/version-D-5txk2m.mjs +7 -0
- package/dist/{version-CnS-Cr8A.mjs.map → version-D-5txk2m.mjs.map} +1 -1
- package/dist/{widgets-Bap1eS1X.mjs → widgets-DZfmAbE4.mjs} +47 -44
- package/dist/widgets-DZfmAbE4.mjs.map +1 -0
- package/dist/{zod-generator-BSDpkqSH.mjs → zod-generator-Djo_VHCt.mjs} +2 -2
- package/dist/{zod-generator-BSDpkqSH.mjs.map → zod-generator-Djo_VHCt.mjs.map} +1 -1
- package/package.json +10 -10
- package/src/api/handlers/content.ts +107 -8
- package/src/api/handlers/index.ts +2 -0
- package/src/api/handlers/marketplace.ts +2 -5
- package/src/api/handlers/registry.ts +70 -0
- package/src/api/handlers/seo.ts +9 -1
- package/src/api/openapi/document.ts +25 -0
- package/src/api/schemas/content.ts +33 -0
- package/src/api/schemas/schema.ts +13 -1
- package/src/astro/integration/index.ts +98 -0
- package/src/astro/integration/routes.ts +6 -0
- package/src/astro/integration/virtual-modules.ts +39 -0
- package/src/astro/integration/vite-config.ts +12 -0
- package/src/astro/middleware.ts +48 -6
- package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +4 -2
- package/src/astro/routes/api/content/[collection]/[id]/publish.ts +4 -2
- package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +8 -4
- package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +4 -2
- package/src/astro/routes/api/content/[collection]/[id].ts +4 -2
- package/src/astro/routes/api/content/[collection]/authors.ts +34 -0
- package/src/astro/routes/api/schema/index.ts +7 -15
- package/src/astro/routes/sitemap-[collection].xml.ts +13 -2
- package/src/astro/types.ts +8 -1
- package/src/bylines/index.ts +57 -0
- package/src/cli/commands/bundle-utils.ts +2 -0
- package/src/cli/commands/export-seed.ts +28 -12
- package/src/cli/commands/secrets.ts +2 -2
- package/src/components/EmDashImage.astro +22 -4
- package/src/components/Image.astro +20 -3
- package/src/database/instrumentation.ts +13 -0
- package/src/database/migrations/043_content_references.ts +121 -0
- package/src/database/migrations/runner.ts +2 -0
- package/src/database/repositories/content.ts +225 -67
- package/src/database/repositories/index.ts +7 -0
- package/src/database/repositories/relation.ts +467 -0
- package/src/database/repositories/types.ts +31 -0
- package/src/database/repositories/user.ts +18 -0
- package/src/database/types.ts +34 -0
- package/src/emdash-runtime.ts +172 -67
- package/src/index.ts +8 -1
- package/src/loader.ts +81 -39
- package/src/media/responsive.ts +125 -0
- package/src/plugins/cron.ts +3 -2
- package/src/plugins/index.ts +5 -0
- package/src/plugins/manifest-schema.ts +75 -0
- package/src/plugins/marketplace.ts +2 -5
- package/src/plugins/scheduler/node.ts +9 -2
- package/src/plugins/types.ts +12 -0
- package/src/query.ts +45 -7
- package/src/request-context.ts +8 -0
- package/src/scheduled-publish.ts +153 -0
- package/src/schema/types.ts +11 -1
- package/src/seed/apply.ts +16 -6
- package/src/seed/types.ts +9 -0
- package/src/seed/validate.ts +15 -0
- package/src/seo/index.ts +2 -28
- package/src/seo/media-url.ts +32 -0
- package/src/settings/index.ts +32 -40
- package/src/taxonomies/index.ts +79 -12
- package/src/utils/isolate-cache.ts +189 -0
- package/src/virtual-modules.d.ts +11 -0
- package/src/widgets/index.ts +57 -54
- package/dist/api-Cs7DAACP.mjs.map +0 -1
- package/dist/apply-BWMV4Zmw.mjs.map +0 -1
- package/dist/byline-fields-BNy7Ng1U.d.mts.map +0 -1
- package/dist/content-CyqOmOzm.mjs.map +0 -1
- package/dist/cron-DZovZUnC.mjs.map +0 -1
- package/dist/index-CjKdMZ3U.d.mts.map +0 -1
- package/dist/loader-Dyx8dhFV.mjs.map +0 -1
- package/dist/manifest-schema-Cj-YrzrF.mjs.map +0 -1
- package/dist/menus-BKkxXCmd.mjs.map +0 -1
- package/dist/query-Ctlq1aOk.mjs.map +0 -1
- package/dist/redirects-C0L9JUk4.mjs.map +0 -1
- package/dist/runner-pt6Wl-l-.mjs.map +0 -1
- package/dist/seo-DfjLvu8i.mjs.map +0 -1
- package/dist/settings-b5zW1R1T.mjs +0 -235
- package/dist/settings-b5zW1R1T.mjs.map +0 -1
- package/dist/taxonomies-Crtzy4MT.mjs.map +0 -1
- package/dist/types-Cj2S6FuC.mjs +0 -3
- package/dist/types-D8bhH891.mjs.map +0 -1
- package/dist/types-DbCWhHet.d.mts.map +0 -1
- package/dist/types-i8_uzhMD.d.mts.map +0 -1
- package/dist/user-DzEUl5zA.mjs.map +0 -1
- package/dist/validate-Dy6nkNls.d.mts.map +0 -1
- package/dist/validate-JCXcsqiY.mjs.map +0 -1
- package/dist/version-CnS-Cr8A.mjs +0 -7
- package/dist/widgets-Bap1eS1X.mjs.map +0 -1
- package/src/plugins/scheduler/piggyback.ts +0 -71
- /package/dist/{api-tokens-B6VgoE6M.mjs → api-tokens-Oq39ba-Z.mjs} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import { n as slugify } from "../../../../../slugify-Cjh1ssOZ.mjs";
|
|
3
3
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import { t as TaxonomyRepository } from "../../../../../taxonomy-
|
|
6
|
-
import "../../../../../request-cache-
|
|
7
|
-
import "../../../../../byline-registry-
|
|
8
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
9
|
-
import "../../../../../loader-
|
|
4
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
5
|
+
import { t as TaxonomyRepository } from "../../../../../taxonomy-CdllE4oq.mjs";
|
|
6
|
+
import "../../../../../request-cache-D32LpnmI.mjs";
|
|
7
|
+
import "../../../../../byline-registry-CWP7I71B.mjs";
|
|
8
|
+
import { t as BylineRepository } from "../../../../../byline-DUx48sJp.mjs";
|
|
9
|
+
import "../../../../../loader-ZN1ll-d-.mjs";
|
|
10
10
|
import { i as resolveLocaleChain } from "../../../../../resolve-BqYMVG0D.mjs";
|
|
11
|
-
import { l as invalidateTermCache } from "../../../../../taxonomies-
|
|
12
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
11
|
+
import { l as invalidateTermCache } from "../../../../../taxonomies-BdAmbOwx.mjs";
|
|
12
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
13
13
|
import { m as resolveImportByline } from "../../../../../utils-C4Ih4DML.mjs";
|
|
14
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
14
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
15
15
|
import { sanitizeSlug } from "./analyze.mjs";
|
|
16
16
|
import { gutenbergToPortableText } from "@emdash-cms/gutenberg-to-portable-text";
|
|
17
17
|
import { ContentRepository, importReusableBlocksAsSections, parseWxrDate, parseWxrString } from "emdash";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
3
|
import { a as validateExternalUrl, r as ssrfSafeFetch, t as SsrfError } from "../../../../../ssrf-BsVGIE0Z.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import "../../../../../redirects-
|
|
7
|
-
import { p as wpMediaImportBody } from "../../../../../byline-fields-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import "../../../../../redirects-CCbCqCCd.mjs";
|
|
7
|
+
import { p as wpMediaImportBody } from "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
9
|
import "../../../../../ssrf-BvgVcfNQ.mjs";
|
|
10
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
10
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
import mime from "mime/lite";
|
|
13
13
|
import * as path from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as FIELD_TYPES } from "../../../../../types-
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import "../../../../../redirects-
|
|
7
|
-
import { g as wpPrepareBody } from "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as FIELD_TYPES } from "../../../../../types-DZk_y-MU.mjs";
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import "../../../../../redirects-CCbCqCCd.mjs";
|
|
7
|
+
import { g as wpPrepareBody } from "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
10
10
|
import { capitalize, sanitizeSlug, singularize } from "./analyze.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/import/wordpress/prepare.ts
|
|
@@ -31,7 +31,7 @@ const POST = async ({ request, locals }) => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
async function prepareImport(db, request) {
|
|
34
|
-
const { SchemaRegistry } = await import("../../../../../registry-
|
|
34
|
+
const { SchemaRegistry } = await import("../../../../../registry-brYh-rAT.mjs").then((n) => n.r);
|
|
35
35
|
const registry = new SchemaRegistry(db);
|
|
36
36
|
const result = {
|
|
37
37
|
success: true,
|
|
@@ -97,7 +97,7 @@ async function prepareImport(db, request) {
|
|
|
97
97
|
"post",
|
|
98
98
|
"page"
|
|
99
99
|
].includes(collectionSlug)) {
|
|
100
|
-
const { FTSManager } = await import("../../../../../fts-manager-
|
|
100
|
+
const { FTSManager } = await import("../../../../../fts-manager-1RgHmopc.mjs").then((n) => n.n);
|
|
101
101
|
const ftsManager = new FTSManager(db);
|
|
102
102
|
if ((await ftsManager.getSearchableFields(collectionSlug)).length > 0) try {
|
|
103
103
|
await ftsManager.enableSearch(collectionSlug);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "../../../../../validate-VPnKoIzW.mjs";
|
|
2
2
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
3
|
-
import "../../../../../types-
|
|
4
|
-
import {
|
|
5
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
6
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
7
|
-
import "../../../../../redirects-
|
|
8
|
-
import { _ as wpRewriteUrlsBody } from "../../../../../byline-fields-
|
|
3
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
4
|
+
import { n as normalizeMediaValue } from "../../../../../normalize-CK5o04zr.mjs";
|
|
5
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
6
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
7
|
+
import "../../../../../redirects-CCbCqCCd.mjs";
|
|
8
|
+
import { _ as wpRewriteUrlsBody } from "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
10
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
11
11
|
import { buildBaseUrlMap, extractMediaUrl, findMatchingUrl, rewritePortableTextUrls, rewriteStringUrls } from "./rewrite-url-helpers.mjs";
|
|
12
12
|
import { sql } from "kysely";
|
|
13
13
|
|
|
@@ -34,7 +34,7 @@ const POST = async ({ request, locals }) => {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
async function rewriteUrls(db, urlMap, getProvider, collections) {
|
|
37
|
-
const { SchemaRegistry } = await import("../../../../../registry-
|
|
37
|
+
const { SchemaRegistry } = await import("../../../../../registry-brYh-rAT.mjs").then((n) => n.r);
|
|
38
38
|
const registry = new SchemaRegistry(db);
|
|
39
39
|
const result = {
|
|
40
40
|
updated: 0,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
3
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-BsVGIE0Z.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import "../../../../../redirects-
|
|
7
|
-
import { m as wpPluginAnalyzeBody } from "../../../../../byline-fields-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import "../../../../../redirects-CCbCqCCd.mjs";
|
|
7
|
+
import { m as wpPluginAnalyzeBody } from "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
9
|
import { s as getSource } from "../../../../../import-Dh8bWmyq.mjs";
|
|
10
10
|
import "../../../../../ssrf-BvgVcfNQ.mjs";
|
|
11
11
|
import "../../../../../utils-C4Ih4DML.mjs";
|
|
12
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
12
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
13
13
|
import { SchemaRegistry } from "emdash";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/import/wordpress-plugin/analyze.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as ImportConfig, u as ImportResult } from "../../../../../types-
|
|
1
|
+
import { s as ImportConfig, u as ImportResult } from "../../../../../types-BFgrqwSk.mjs";
|
|
2
2
|
import { APIRoute } from "astro";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/import/wordpress-plugin/execute.d.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import { n as slugify } from "../../../../../slugify-Cjh1ssOZ.mjs";
|
|
3
3
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../request-cache-
|
|
6
|
-
import "../../../../../byline-registry-
|
|
7
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
4
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
5
|
+
import "../../../../../request-cache-D32LpnmI.mjs";
|
|
6
|
+
import "../../../../../byline-registry-CWP7I71B.mjs";
|
|
7
|
+
import { t as BylineRepository } from "../../../../../byline-DUx48sJp.mjs";
|
|
8
8
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-BsVGIE0Z.mjs";
|
|
9
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
10
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
11
|
-
import "../../../../../redirects-
|
|
12
|
-
import { h as wpPluginExecuteBody } from "../../../../../byline-fields-
|
|
9
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
10
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
11
|
+
import "../../../../../redirects-CCbCqCCd.mjs";
|
|
12
|
+
import { h as wpPluginExecuteBody } from "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
13
13
|
import "../../../../../api/schemas/index.mjs";
|
|
14
14
|
import { s as getSource } from "../../../../../import-Dh8bWmyq.mjs";
|
|
15
15
|
import "../../../../../ssrf-BvgVcfNQ.mjs";
|
|
16
16
|
import { m as resolveImportByline } from "../../../../../utils-C4Ih4DML.mjs";
|
|
17
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
17
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
18
18
|
import { ContentRepository, SchemaRegistry } from "emdash";
|
|
19
19
|
|
|
20
20
|
//#region src/astro/routes/api/import/wordpress-plugin/execute.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { r as handleError } from "../../../error-
|
|
4
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
5
|
-
import { t as getAuthMode } from "../../../mode-
|
|
2
|
+
import "../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { r as handleError } from "../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as VERSION, t as COMMIT } from "../../../version-D-5txk2m.mjs";
|
|
5
|
+
import { t as getAuthMode } from "../../../mode-CO2vQHfq.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/astro/routes/api/manifest.ts
|
|
8
8
|
const prerender = false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { t as apiError } from "../../../error-
|
|
4
|
-
import {
|
|
5
|
-
import "../../../byline-fields-
|
|
2
|
+
import "../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { t as apiError } from "../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { En as contentBylineInputSchema, ln as contentSeoInput } from "../../../redirects-CCbCqCCd.mjs";
|
|
5
|
+
import "../../../byline-fields-8TMtkBnH.mjs";
|
|
6
6
|
import "../../../api/schemas/index.mjs";
|
|
7
|
-
import { i as hasScope } from "../../../api-tokens-
|
|
7
|
+
import { i as hasScope } from "../../../api-tokens-Oq39ba-Z.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { Role, canActOnOwn, hasPermission } from "@emdash-cms/auth";
|
|
10
10
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
@@ -645,7 +645,7 @@ function createMcpServer() {
|
|
|
645
645
|
requireRole(extra, Role.EDITOR);
|
|
646
646
|
const ec = getEmDash(extra);
|
|
647
647
|
try {
|
|
648
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
648
|
+
const { SchemaRegistry } = await import("../../../schema-C1E70ug_.mjs").then((n) => n.t);
|
|
649
649
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
650
650
|
} catch (error) {
|
|
651
651
|
return respondHandlerError(error, "SCHEMA_LIST_ERROR");
|
|
@@ -661,7 +661,7 @@ function createMcpServer() {
|
|
|
661
661
|
requireRole(extra, Role.EDITOR);
|
|
662
662
|
const ec = getEmDash(extra);
|
|
663
663
|
try {
|
|
664
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
664
|
+
const { SchemaRegistry } = await import("../../../schema-C1E70ug_.mjs").then((n) => n.t);
|
|
665
665
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
666
666
|
if (!collection) return respondError("NOT_FOUND", `Collection '${args.slug}' not found`);
|
|
667
667
|
return jsonResult(collection);
|
|
@@ -691,7 +691,7 @@ function createMcpServer() {
|
|
|
691
691
|
requireRole(extra, Role.ADMIN);
|
|
692
692
|
const ec = getEmDash(extra);
|
|
693
693
|
try {
|
|
694
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
694
|
+
const { SchemaRegistry } = await import("../../../schema-C1E70ug_.mjs").then((n) => n.t);
|
|
695
695
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
696
696
|
slug: args.slug,
|
|
697
697
|
label: args.label,
|
|
@@ -719,7 +719,7 @@ function createMcpServer() {
|
|
|
719
719
|
requireRole(extra, Role.ADMIN);
|
|
720
720
|
const ec = getEmDash(extra);
|
|
721
721
|
try {
|
|
722
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
722
|
+
const { SchemaRegistry } = await import("../../../schema-C1E70ug_.mjs").then((n) => n.t);
|
|
723
723
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
724
724
|
ec.invalidateUrlPatternCache();
|
|
725
725
|
return jsonResult({ deleted: args.slug });
|
|
@@ -773,7 +773,7 @@ function createMcpServer() {
|
|
|
773
773
|
requireRole(extra, Role.ADMIN);
|
|
774
774
|
const ec = getEmDash(extra);
|
|
775
775
|
try {
|
|
776
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
776
|
+
const { SchemaRegistry } = await import("../../../schema-C1E70ug_.mjs").then((n) => n.t);
|
|
777
777
|
return jsonResult(await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
778
778
|
slug: args.slug,
|
|
779
779
|
label: args.label,
|
|
@@ -803,7 +803,7 @@ function createMcpServer() {
|
|
|
803
803
|
requireRole(extra, Role.ADMIN);
|
|
804
804
|
const ec = getEmDash(extra);
|
|
805
805
|
try {
|
|
806
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
806
|
+
const { SchemaRegistry } = await import("../../../schema-C1E70ug_.mjs").then((n) => n.t);
|
|
807
807
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
808
808
|
return jsonResult({
|
|
809
809
|
deleted: args.fieldSlug,
|
|
@@ -924,7 +924,7 @@ function createMcpServer() {
|
|
|
924
924
|
requireScope(extra, "content:read");
|
|
925
925
|
const ec = getEmDash(extra);
|
|
926
926
|
try {
|
|
927
|
-
const { searchWithDb } = await import("../../../search-
|
|
927
|
+
const { searchWithDb } = await import("../../../search-B3SGZw91.mjs").then((n) => n.t);
|
|
928
928
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
929
929
|
collections: args.collections,
|
|
930
930
|
locale: args.locale,
|
|
@@ -943,7 +943,7 @@ function createMcpServer() {
|
|
|
943
943
|
requireScope(extra, "content:read");
|
|
944
944
|
const ec = getEmDash(extra);
|
|
945
945
|
try {
|
|
946
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
946
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-BILwiyGk.mjs").then((n) => n.l);
|
|
947
947
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
948
948
|
} catch (error) {
|
|
949
949
|
return respondHandlerError(error, "TAXONOMY_LIST_ERROR");
|
|
@@ -963,12 +963,12 @@ function createMcpServer() {
|
|
|
963
963
|
requireScope(extra, "content:read");
|
|
964
964
|
const ec = getEmDash(extra);
|
|
965
965
|
try {
|
|
966
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
966
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-BILwiyGk.mjs").then((n) => n.l);
|
|
967
967
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
968
968
|
if (!listResult.success) return unwrap(listResult);
|
|
969
969
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return respondError("NOT_FOUND", `Taxonomy '${args.taxonomy}' not found`);
|
|
970
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
971
|
-
const { decodeCursor, encodeCursor, InvalidCursorError } = await import("../../../types-
|
|
970
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-CdllE4oq.mjs").then((n) => n.n);
|
|
971
|
+
const { decodeCursor, encodeCursor, InvalidCursorError } = await import("../../../types-BXSUSAjt.mjs").then((n) => n.o);
|
|
972
972
|
const repo = new TaxonomyRepository(ec.db);
|
|
973
973
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
974
974
|
const terms = await repo.findByName(args.taxonomy, { locale: args.locale });
|
|
@@ -1022,7 +1022,7 @@ function createMcpServer() {
|
|
|
1022
1022
|
requireRole(extra, Role.EDITOR);
|
|
1023
1023
|
const ec = getEmDash(extra);
|
|
1024
1024
|
try {
|
|
1025
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
1025
|
+
const { handleTermCreate } = await import("../../../taxonomies-BILwiyGk.mjs").then((n) => n.l);
|
|
1026
1026
|
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
1027
1027
|
slug: args.slug,
|
|
1028
1028
|
label: args.label,
|
|
@@ -1051,7 +1051,7 @@ function createMcpServer() {
|
|
|
1051
1051
|
requireRole(extra, Role.EDITOR);
|
|
1052
1052
|
const ec = getEmDash(extra);
|
|
1053
1053
|
try {
|
|
1054
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
1054
|
+
const { handleTermUpdate } = await import("../../../taxonomies-BILwiyGk.mjs").then((n) => n.l);
|
|
1055
1055
|
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
1056
1056
|
slug: args.slug,
|
|
1057
1057
|
label: args.label,
|
|
@@ -1075,7 +1075,7 @@ function createMcpServer() {
|
|
|
1075
1075
|
requireRole(extra, Role.EDITOR);
|
|
1076
1076
|
const ec = getEmDash(extra);
|
|
1077
1077
|
try {
|
|
1078
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
1078
|
+
const { handleTermDelete } = await import("../../../taxonomies-BILwiyGk.mjs").then((n) => n.l);
|
|
1079
1079
|
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug));
|
|
1080
1080
|
} catch (error) {
|
|
1081
1081
|
return respondHandlerError(error, "TAXONOMY_TERM_DELETE_ERROR");
|
|
@@ -1090,7 +1090,7 @@ function createMcpServer() {
|
|
|
1090
1090
|
requireScope(extra, "content:read");
|
|
1091
1091
|
const ec = getEmDash(extra);
|
|
1092
1092
|
try {
|
|
1093
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
1093
|
+
const { handleTermTranslations } = await import("../../../taxonomies-BILwiyGk.mjs").then((n) => n.l);
|
|
1094
1094
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
1095
1095
|
} catch (error) {
|
|
1096
1096
|
return respondHandlerError(error, "TERM_TRANSLATIONS_ERROR");
|
|
@@ -1105,7 +1105,7 @@ function createMcpServer() {
|
|
|
1105
1105
|
requireScope(extra, "content:read");
|
|
1106
1106
|
const ec = getEmDash(extra);
|
|
1107
1107
|
try {
|
|
1108
|
-
const { handleMenuList } = await import("../../../menus-
|
|
1108
|
+
const { handleMenuList } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1109
1109
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
1110
1110
|
} catch (error) {
|
|
1111
1111
|
return respondHandlerError(error, "MENU_LIST_ERROR");
|
|
@@ -1123,7 +1123,7 @@ function createMcpServer() {
|
|
|
1123
1123
|
requireScope(extra, "content:read");
|
|
1124
1124
|
const ec = getEmDash(extra);
|
|
1125
1125
|
try {
|
|
1126
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
1126
|
+
const { handleMenuGet } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1127
1127
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
1128
1128
|
} catch (error) {
|
|
1129
1129
|
return respondHandlerError(error, "MENU_GET_ERROR");
|
|
@@ -1138,7 +1138,7 @@ function createMcpServer() {
|
|
|
1138
1138
|
requireScope(extra, "content:read");
|
|
1139
1139
|
const ec = getEmDash(extra);
|
|
1140
1140
|
try {
|
|
1141
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
1141
|
+
const { handleMenuTranslations } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1142
1142
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
1143
1143
|
} catch (error) {
|
|
1144
1144
|
return respondHandlerError(error, "MENU_TRANSLATIONS_ERROR");
|
|
@@ -1158,7 +1158,7 @@ function createMcpServer() {
|
|
|
1158
1158
|
requireRole(extra, Role.EDITOR);
|
|
1159
1159
|
const ec = getEmDash(extra);
|
|
1160
1160
|
try {
|
|
1161
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
1161
|
+
const { handleMenuCreate } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1162
1162
|
return unwrap(await handleMenuCreate(ec.db, {
|
|
1163
1163
|
name: args.name,
|
|
1164
1164
|
label: args.label,
|
|
@@ -1182,7 +1182,7 @@ function createMcpServer() {
|
|
|
1182
1182
|
requireRole(extra, Role.EDITOR);
|
|
1183
1183
|
const ec = getEmDash(extra);
|
|
1184
1184
|
try {
|
|
1185
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
1185
|
+
const { handleMenuUpdate } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1186
1186
|
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
1187
1187
|
label: args.label,
|
|
1188
1188
|
locale: args.locale
|
|
@@ -1204,7 +1204,7 @@ function createMcpServer() {
|
|
|
1204
1204
|
requireRole(extra, Role.EDITOR);
|
|
1205
1205
|
const ec = getEmDash(extra);
|
|
1206
1206
|
try {
|
|
1207
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
1207
|
+
const { handleMenuDelete } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1208
1208
|
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
1209
1209
|
} catch (error) {
|
|
1210
1210
|
return respondHandlerError(error, "MENU_DELETE_ERROR");
|
|
@@ -1239,7 +1239,7 @@ function createMcpServer() {
|
|
|
1239
1239
|
requireRole(extra, Role.EDITOR);
|
|
1240
1240
|
const ec = getEmDash(extra);
|
|
1241
1241
|
try {
|
|
1242
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
1242
|
+
const { handleMenuSetItems } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1243
1243
|
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
1244
1244
|
} catch (error) {
|
|
1245
1245
|
return respondHandlerError(error, "MENU_SET_ITEMS_ERROR");
|
|
@@ -1286,7 +1286,7 @@ function createMcpServer() {
|
|
|
1286
1286
|
requireRole(extra, Role.EDITOR);
|
|
1287
1287
|
const ec = getEmDash(extra);
|
|
1288
1288
|
try {
|
|
1289
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
1289
|
+
const { handleSettingsGet } = await import("../../../settings-Cv47v9u8.mjs").then((n) => n.r);
|
|
1290
1290
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
1291
1291
|
} catch (error) {
|
|
1292
1292
|
return respondHandlerError(error, "SETTINGS_READ_ERROR");
|
|
@@ -1312,7 +1312,7 @@ function createMcpServer() {
|
|
|
1312
1312
|
requireRole(extra, Role.ADMIN);
|
|
1313
1313
|
const ec = getEmDash(extra);
|
|
1314
1314
|
try {
|
|
1315
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
1315
|
+
const { handleSettingsUpdate } = await import("../../../settings-Cv47v9u8.mjs").then((n) => n.r);
|
|
1316
1316
|
return unwrap(await handleSettingsUpdate(ec.db, ec.storage, args));
|
|
1317
1317
|
} catch (error) {
|
|
1318
1318
|
return respondHandlerError(error, "SETTINGS_UPDATE_ERROR");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import { Vt as mediaConfirmBody } from "../../../../../redirects-
|
|
6
|
-
import "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
5
|
+
import { Vt as mediaConfirmBody } from "../../../../../redirects-CCbCqCCd.mjs";
|
|
6
|
+
import "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-
|
|
8
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
9
9
|
import { MediaRepository } from "emdash";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
5
|
-
import { Yt as mediaUpdateBody } from "../../../../redirects-
|
|
6
|
-
import "../../../../byline-fields-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-CrGndy1A.mjs";
|
|
5
|
+
import { Yt as mediaUpdateBody } from "../../../../redirects-CCbCqCCd.mjs";
|
|
6
|
+
import "../../../../byline-fields-8TMtkBnH.mjs";
|
|
7
7
|
import "../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-
|
|
8
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-DsMSVSaY.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/media/[id].ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { r as handleError, t as apiError } from "../../../../../error-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/media/file/[...key].ts
|
|
6
6
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
2
|
+
import "../../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as requirePerm } from "../../../../../../authorize-DsMSVSaY.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/[providerId]/[itemId].ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
2
|
+
import "../../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as requirePerm } from "../../../../../../authorize-DsMSVSaY.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/[providerId]/index.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/index.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
3
|
import { n as normalizeMime, t as matchesMimeAllowlist } from "../../../../mime-CCEzze7W.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
6
|
-
import { Xt as mediaUploadUrlBody, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../../redirects-
|
|
7
|
-
import "../../../../byline-fields-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Xt as mediaUploadUrlBody, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../../redirects-CCbCqCCd.mjs";
|
|
7
|
+
import "../../../../byline-fields-8TMtkBnH.mjs";
|
|
8
8
|
import "../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
10
|
-
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../../media-allowlist-
|
|
9
|
+
import { n as requirePerm } from "../../../../authorize-DsMSVSaY.mjs";
|
|
10
|
+
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../../media-allowlist-Dknq-OFY.mjs";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
import * as path from "node:path";
|
|
13
13
|
import { MediaRepository } from "emdash";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { t as MediaRepository } from "../../../media-
|
|
2
|
+
import "../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { t as MediaRepository } from "../../../media-JOf3pNkw.mjs";
|
|
4
4
|
import { t as generatePlaceholder } from "../../../placeholder-BZxr8W1j.mjs";
|
|
5
5
|
import { n as normalizeMime, t as matchesMimeAllowlist } from "../../../mime-CCEzze7W.mjs";
|
|
6
6
|
import { t as computeContentHash } from "../../../hash-9w3pd3-m.mjs";
|
|
7
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../error-
|
|
8
|
-
import { i as parseQuery, t as isParseError } from "../../../parse-
|
|
9
|
-
import { Bt as formatFileSize, Gt as mediaListQuery, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../redirects-
|
|
10
|
-
import "../../../byline-fields-
|
|
7
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../error-RwM4dD35.mjs";
|
|
8
|
+
import { i as parseQuery, t as isParseError } from "../../../parse-CrGndy1A.mjs";
|
|
9
|
+
import { Bt as formatFileSize, Gt as mediaListQuery, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../redirects-CCbCqCCd.mjs";
|
|
10
|
+
import "../../../byline-fields-8TMtkBnH.mjs";
|
|
11
11
|
import "../../../api/schemas/index.mjs";
|
|
12
|
-
import { n as requirePerm } from "../../../authorize-
|
|
13
|
-
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../media-allowlist-
|
|
12
|
+
import { n as requirePerm } from "../../../authorize-DsMSVSaY.mjs";
|
|
13
|
+
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../media-allowlist-Dknq-OFY.mjs";
|
|
14
14
|
import { ulid } from "ulidx";
|
|
15
15
|
import * as path from "node:path";
|
|
16
16
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { a as handleMenuItemDelete, s as handleMenuItemUpdate } from "../../../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../../byline-fields-
|
|
2
|
+
import "../../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as handleMenuItemDelete, s as handleMenuItemUpdate } from "../../../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery, lt as updateMenuItemBody } from "../../../../../../redirects-CCbCqCCd.mjs";
|
|
7
|
+
import "../../../../../../byline-fields-8TMtkBnH.mjs";
|
|
8
8
|
import "../../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../../authorize-DsMSVSaY.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/[name]/items/[id].ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { i as handleMenuItemCreate } from "../../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError } from "../../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { i as handleMenuItemCreate } from "../../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery, et as createMenuItemBody } from "../../../../../redirects-CCbCqCCd.mjs";
|
|
7
|
+
import "../../../../../byline-fields-8TMtkBnH.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../authorize-DsMSVSaY.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/[name]/items.ts
|
|
12
12
|
const prerender = false;
|