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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-bypass.mjs","names":[],"sources":["../../../../../src/astro/routes/api/setup/dev-bypass.ts"],"sourcesContent":["/**\n * POST /_emdash/api/setup/dev-bypass\n * GET /_emdash/api/setup/dev-bypass\n *\n * Development-only endpoint to bypass the setup wizard.\n *
|
|
1
|
+
{"version":3,"file":"dev-bypass.mjs","names":[],"sources":["../../../../../src/astro/routes/api/setup/dev-bypass.ts"],"sourcesContent":["/**\n * POST /_emdash/api/setup/dev-bypass\n * GET /_emdash/api/setup/dev-bypass\n *\n * Development-only endpoint to bypass the setup wizard.\n * Creates a dev admin user and marks setup complete after runtime initialization.\n *\n * ONLY available when import.meta.env.DEV is true.\n *\n * Usage:\n * - GET with redirect: /_emdash/api/setup/dev-bypass?redirect=/_emdash/admin\n * - POST for API: Returns JSON with setup info\n * - ?content=0 (or ?content=false): apply schema/structure only, skipping\n * sample content entries, bylines, and taxonomy terms\n *\n * For agent/browser testing, navigate to:\n * /_emdash/api/setup/dev-bypass?redirect=/_emdash/admin\n */\n\nimport type { APIRoute } from \"astro\";\n\nexport const prerender = false;\n\nimport { ulid } from \"ulidx\";\n\nimport { apiError, apiSuccess, handleError } from \"#api/error.js\";\nimport { escapeHtml } from \"#api/escape.js\";\nimport { deleteApiTokensByName, handleApiTokenCreate } from \"#api/handlers/api-tokens.js\";\nimport { getPublicOrigin } from \"#api/public-url.js\";\nimport { isSafeRedirect } from \"#api/redirect.js\";\nimport { OptionsRepository } from \"#db/repositories/options.js\";\nimport { applySeed } from \"#seed/apply.js\";\nimport { loadSeed } from \"#seed/load.js\";\nimport { validateSeed } from \"#seed/validate.js\";\n\n// RBAC role levels (matching @emdash-cms/auth)\nconst ROLE_ADMIN = 50;\n\nconst DEV_USER_EMAIL = \"dev@emdash.local\";\nconst DEV_USER_NAME = \"Dev Admin\";\nconst DEV_SITE_TITLE = \"EmDash Dev Site\";\n\nasync function handleDevBypass(context: Parameters<APIRoute>[0]): Promise<Response> {\n\t// CRITICAL: Only allow in development mode\n\tif (!import.meta.env.DEV) {\n\t\treturn apiError(\"FORBIDDEN\", \"Dev bypass is only available in development mode\", 403);\n\t}\n\n\tconst { locals, url, session } = context;\n\tconst { emdash } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\ttry {\n\t\t// Apply seed (user seed or built-in default). `?content=0` (or `false`)\n\t\t// applies schema/structure only — no sample content, bylines, or terms.\n\t\tconst contentParam = url.searchParams.get(\"content\");\n\t\tconst includeContent = contentParam !== \"0\" && contentParam !== \"false\";\n\t\tconst seed = await loadSeed();\n\t\tconst validation = validateSeed(seed);\n\t\tif (validation.valid) {\n\t\t\tconst seedResult = await applySeed(emdash.db, seed, {\n\t\t\t\tincludeContent,\n\t\t\t\tonConflict: \"skip\",\n\t\t\t\tstorage: emdash.storage ?? undefined,\n\t\t\t});\n\t\t\tconsole.log(\n\t\t\t\t`[setup-dev-bypass] Seed applied: ${seedResult.collections.created} collections, ${seedResult.fields.created} fields`,\n\t\t\t);\n\t\t}\n\n\t\tconst options = new OptionsRepository(emdash.db);\n\n\t\t// Find or create dev user (direct DB access to avoid @emdash-cms/auth import issues in dev)\n\t\tconst existingUser = await emdash.db\n\t\t\t.selectFrom(\"users\")\n\t\t\t.selectAll()\n\t\t\t.where(\"email\", \"=\", DEV_USER_EMAIL)\n\t\t\t.executeTakeFirst();\n\n\t\tlet user: { id: string; email: string; name: string; role: number };\n\t\tlet userCreated = false;\n\n\t\tif (!existingUser) {\n\t\t\tconst now = new Date().toISOString();\n\t\t\tconst newUser = {\n\t\t\t\tid: ulid(),\n\t\t\t\temail: DEV_USER_EMAIL,\n\t\t\t\tname: DEV_USER_NAME,\n\t\t\t\trole: ROLE_ADMIN,\n\t\t\t\temail_verified: 1,\n\t\t\t\tcreated_at: now,\n\t\t\t\tupdated_at: now,\n\t\t\t};\n\n\t\t\tawait emdash.db.insertInto(\"users\").values(newUser).execute();\n\n\t\t\tuser = {\n\t\t\t\tid: newUser.id,\n\t\t\t\temail: newUser.email,\n\t\t\t\tname: newUser.name,\n\t\t\t\trole: newUser.role,\n\t\t\t};\n\t\t\tuserCreated = true;\n\t\t\tconsole.log(\"[setup-dev-bypass] Created dev admin user:\", user.email);\n\t\t} else {\n\t\t\tuser = {\n\t\t\t\tid: existingUser.id,\n\t\t\t\temail: existingUser.email,\n\t\t\t\tname: existingUser.name || DEV_USER_NAME,\n\t\t\t\trole: existingUser.role,\n\t\t\t};\n\t\t}\n\n\t\t// Set site title if not already set\n\t\tconst existingTitle = await options.get(\"emdash:site_title\");\n\t\tif (!existingTitle) {\n\t\t\tawait options.set(\"emdash:site_title\", DEV_SITE_TITLE);\n\t\t}\n\n\t\t// Store canonical site URL (used by magic-link/recovery emails)\n\t\tawait options.set(\"emdash:site_url\", getPublicOrigin(url, emdash?.config));\n\n\t\t// Mark setup complete\n\t\tawait options.set(\"emdash:setup_complete\", true);\n\n\t\t// Create session\n\t\tif (session) {\n\t\t\tsession.set(\"user\", { id: user.id });\n\t\t}\n\n\t\t// Optionally create a PAT token (?token=1) for headless/CLI testing.\n\t\tlet token: string | undefined;\n\t\tif (url.searchParams.has(\"token\")) {\n\t\t\t// Idempotent by name: a prior reset can leave a stale dev-bypass-token,\n\t\t\t// and the raw token is only available at creation, so drop any existing\n\t\t\t// one and mint a fresh, usable PAT rather than accumulating duplicates.\n\t\t\tawait deleteApiTokensByName(emdash.db, user.id, \"dev-bypass-token\");\n\t\t\tconst result = await handleApiTokenCreate(emdash.db, user.id, {\n\t\t\t\tname: \"dev-bypass-token\",\n\t\t\t\tscopes: [\n\t\t\t\t\t\"content:read\",\n\t\t\t\t\t\"content:write\",\n\t\t\t\t\t\"media:read\",\n\t\t\t\t\t\"media:write\",\n\t\t\t\t\t\"schema:read\",\n\t\t\t\t\t\"schema:write\",\n\t\t\t\t\t\"admin\",\n\t\t\t\t],\n\t\t\t});\n\t\t\tif (result.success) {\n\t\t\t\ttoken = result.data.token;\n\t\t\t}\n\t\t}\n\n\t\t// Check for redirect parameter\n\t\tconst redirect = url.searchParams.get(\"redirect\");\n\n\t\tif (redirect) {\n\t\t\t// Validate redirect is a safe local path (prevent open redirect via //evil.com or /\\evil.com)\n\t\t\tif (!isSafeRedirect(redirect)) {\n\t\t\t\treturn apiError(\"INVALID_REDIRECT\", \"Redirect must be a local path\", 400);\n\t\t\t}\n\n\t\t\t// Return an HTML page with meta-refresh redirect\n\t\t\t// This ensures the session is fully saved before redirect\n\t\t\tconst safeRedirect = escapeHtml(redirect);\n\t\t\tconst html = `<!DOCTYPE html>\n<html>\n<head>\n\t<meta http-equiv=\"refresh\" content=\"0;url=${safeRedirect}\">\n</head>\n<body>Redirecting...</body>\n</html>`;\n\t\t\treturn new Response(html, {\n\t\t\t\tstatus: 200,\n\t\t\t\theaders: { \"Content-Type\": \"text/html\" },\n\t\t\t});\n\t\t}\n\n\t\t// Return JSON response\n\t\treturn apiSuccess({\n\t\t\tsuccess: true,\n\t\t\tmessage: \"Dev setup complete\",\n\t\t\tmigrations: [],\n\t\t\tuserCreated,\n\t\t\tuser: {\n\t\t\t\tid: user.id,\n\t\t\t\temail: user.email,\n\t\t\t\tname: user.name,\n\t\t\t\trole: user.role,\n\t\t\t},\n\t\t\t...(token ? { token } : {}),\n\t\t});\n\t} catch (error) {\n\t\treturn handleError(error, \"Dev bypass failed\", \"DEV_BYPASS_ERROR\");\n\t}\n}\n\n// Support both GET and POST\nexport const GET: APIRoute = handleDevBypass;\nexport const POST: APIRoute = handleDevBypass;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,YAAY;AAezB,MAAM,aAAa;AAEnB,MAAM,iBAAiB;AACvB,MAAM,gBAAgB;AACtB,MAAM,iBAAiB;AAEvB,eAAe,gBAAgB,SAAqD;AAEnF,KAAI,CAAC,OAAO,KAAK,IAAI,IACpB,QAAO,SAAS,aAAa,oDAAoD,IAAI;CAGtF,MAAM,EAAE,QAAQ,KAAK,YAAY;CACjC,MAAM,EAAE,WAAW;AAEnB,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;AAGpE,KAAI;EAGH,MAAM,eAAe,IAAI,aAAa,IAAI,UAAU;EACpD,MAAM,iBAAiB,iBAAiB,OAAO,iBAAiB;EAChE,MAAM,OAAO,MAAM,UAAU;AAE7B,MADmB,aAAa,KAAK,CACtB,OAAO;GACrB,MAAM,aAAa,MAAM,UAAU,OAAO,IAAI,MAAM;IACnD;IACA,YAAY;IACZ,SAAS,OAAO,WAAW;IAC3B,CAAC;AACF,WAAQ,IACP,oCAAoC,WAAW,YAAY,QAAQ,gBAAgB,WAAW,OAAO,QAAQ,SAC7G;;EAGF,MAAM,UAAU,IAAI,kBAAkB,OAAO,GAAG;EAGhD,MAAM,eAAe,MAAM,OAAO,GAChC,WAAW,QAAQ,CACnB,WAAW,CACX,MAAM,SAAS,KAAK,eAAe,CACnC,kBAAkB;EAEpB,IAAI;EACJ,IAAI,cAAc;AAElB,MAAI,CAAC,cAAc;GAClB,MAAM,uBAAM,IAAI,MAAM,EAAC,aAAa;GACpC,MAAM,UAAU;IACf,IAAI,MAAM;IACV,OAAO;IACP,MAAM;IACN,MAAM;IACN,gBAAgB;IAChB,YAAY;IACZ,YAAY;IACZ;AAED,SAAM,OAAO,GAAG,WAAW,QAAQ,CAAC,OAAO,QAAQ,CAAC,SAAS;AAE7D,UAAO;IACN,IAAI,QAAQ;IACZ,OAAO,QAAQ;IACf,MAAM,QAAQ;IACd,MAAM,QAAQ;IACd;AACD,iBAAc;AACd,WAAQ,IAAI,8CAA8C,KAAK,MAAM;QAErE,QAAO;GACN,IAAI,aAAa;GACjB,OAAO,aAAa;GACpB,MAAM,aAAa,QAAQ;GAC3B,MAAM,aAAa;GACnB;AAKF,MAAI,CADkB,MAAM,QAAQ,IAAI,oBAAoB,CAE3D,OAAM,QAAQ,IAAI,qBAAqB,eAAe;AAIvD,QAAM,QAAQ,IAAI,mBAAmB,gBAAgB,KAAK,QAAQ,OAAO,CAAC;AAG1E,QAAM,QAAQ,IAAI,yBAAyB,KAAK;AAGhD,MAAI,QACH,SAAQ,IAAI,QAAQ,EAAE,IAAI,KAAK,IAAI,CAAC;EAIrC,IAAI;AACJ,MAAI,IAAI,aAAa,IAAI,QAAQ,EAAE;AAIlC,SAAM,sBAAsB,OAAO,IAAI,KAAK,IAAI,mBAAmB;GACnE,MAAM,SAAS,MAAM,qBAAqB,OAAO,IAAI,KAAK,IAAI;IAC7D,MAAM;IACN,QAAQ;KACP;KACA;KACA;KACA;KACA;KACA;KACA;KACA;IACD,CAAC;AACF,OAAI,OAAO,QACV,SAAQ,OAAO,KAAK;;EAKtB,MAAM,WAAW,IAAI,aAAa,IAAI,WAAW;AAEjD,MAAI,UAAU;AAEb,OAAI,CAAC,eAAe,SAAS,CAC5B,QAAO,SAAS,oBAAoB,iCAAiC,IAAI;GAM1E,MAAM,OAAO;;;6CADQ,WAAW,SAAS,CAIc;;;;AAIvD,UAAO,IAAI,SAAS,MAAM;IACzB,QAAQ;IACR,SAAS,EAAE,gBAAgB,aAAa;IACxC,CAAC;;AAIH,SAAO,WAAW;GACjB,SAAS;GACT,SAAS;GACT,YAAY,EAAE;GACd;GACA,MAAM;IACL,IAAI,KAAK;IACT,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,MAAM,KAAK;IACX;GACD,GAAI,QAAQ,EAAE,OAAO,GAAG,EAAE;GAC1B,CAAC;UACM,OAAO;AACf,SAAO,YAAY,OAAO,qBAAqB,mBAAmB;;;AAKpE,MAAa,MAAgB;AAC7B,MAAa,OAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/astro/routes/api/setup/index.ts"],"mappings":";;;cAQa,SAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../src/astro/routes/api/setup/index.ts"],"mappings":";;;cAQa,SAAA;AAAA,cAYA,IAAA,EAAM,QAAA"}
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { a as runMigrations } from "../../../../runner-BiDvq5dv.mjs";
|
|
2
1
|
import "../../../../dialect-helpers-BSbfaO3F.mjs";
|
|
3
2
|
import "../../../../config-C3EBstHi.mjs";
|
|
4
3
|
import "../../../../after-CBU2vkoO.mjs";
|
|
5
4
|
import "../../../../object-cache-71tPfV4A.mjs";
|
|
6
|
-
import "../../../../content-
|
|
5
|
+
import "../../../../content-ZHCc1ngN.mjs";
|
|
7
6
|
import "../../../../slugify-B994zkXC.mjs";
|
|
8
7
|
import "../../../../base64-CvLhUKQv.mjs";
|
|
9
8
|
import "../../../../types-CQPWhPxE.mjs";
|
|
10
9
|
import "../../../../media-CzhAn2--.mjs";
|
|
11
|
-
import "../../../../taxonomy-
|
|
10
|
+
import "../../../../taxonomy-BqCZ1TdU.mjs";
|
|
12
11
|
import { t as OptionsRepository } from "../../../../options-CBXIHUoT.mjs";
|
|
13
12
|
import "../../../../redirect-COsS6SWJ.mjs";
|
|
14
13
|
import "../../../../request-cache-BSUptuJR.mjs";
|
|
15
14
|
import "../../../../byline-registry-DDun8sxh.mjs";
|
|
16
|
-
import "../../../../field-defs-cache-
|
|
17
|
-
import "../../../../byline-
|
|
15
|
+
import "../../../../field-defs-cache-BzwBlJrR.mjs";
|
|
16
|
+
import "../../../../byline-yjvWq4ip.mjs";
|
|
18
17
|
import "../../../../dist-D_6CKR8z.mjs";
|
|
19
|
-
import "../../../../fts-manager-
|
|
20
|
-
import "../../../../loader-
|
|
21
|
-
import "../../../../content-refresh-
|
|
22
|
-
import "../../../../collection-deletion-
|
|
23
|
-
import "../../../../registry-
|
|
24
|
-
import "../../../../settings-
|
|
18
|
+
import "../../../../fts-manager-DyZEohZC.mjs";
|
|
19
|
+
import "../../../../loader-CdG_Ci3H.mjs";
|
|
20
|
+
import "../../../../content-refresh-B_8SJzuU.mjs";
|
|
21
|
+
import "../../../../collection-deletion-DQPvMD8R.mjs";
|
|
22
|
+
import "../../../../registry-Cqa2I749.mjs";
|
|
23
|
+
import "../../../../settings-xRdoUZr0.mjs";
|
|
25
24
|
import "../../../../ssrf-Cpvg_n3A.mjs";
|
|
26
25
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DupyJZE2.mjs";
|
|
27
26
|
import { n as parseBody, t as isParseError } from "../../../../parse-DFbuc-Fh.mjs";
|
|
28
27
|
import "../../../../media-BWWWb8kg.mjs";
|
|
29
|
-
import "../../../../redirects-
|
|
28
|
+
import "../../../../redirects-DTDHWH31.mjs";
|
|
30
29
|
import { x as setupBody } from "../../../../relations-BBApI4e2.mjs";
|
|
31
30
|
import "../../../../status-CWVYpbD8.mjs";
|
|
32
31
|
import "../../../../api/schemas/index.mjs";
|
|
33
32
|
import "../../../../ssrf-DpXgKsna.mjs";
|
|
34
|
-
import { t as validateSeed } from "../../../../validate-
|
|
35
|
-
import { t as applySeed } from "../../../../apply-
|
|
36
|
-
import { t as loadSeed } from "../../../../load-
|
|
33
|
+
import { t as validateSeed } from "../../../../validate-BMLBvxOC.mjs";
|
|
34
|
+
import { t as applySeed } from "../../../../apply-kUDt80-G.mjs";
|
|
35
|
+
import { t as loadSeed } from "../../../../load-YJ2xl3ra.mjs";
|
|
37
36
|
import { r as getPublicOrigin } from "../../../../public-url-CWoFhQT8.mjs";
|
|
38
|
-
import { t as getAuthMode } from "../../../../mode-
|
|
37
|
+
import { t as getAuthMode } from "../../../../mode-BDoH_WcF.mjs";
|
|
39
38
|
|
|
40
39
|
//#region src/astro/routes/api/setup/index.ts
|
|
41
40
|
const prerender = false;
|
|
@@ -49,11 +48,6 @@ const POST = async ({ request, url, locals }) => {
|
|
|
49
48
|
} catch {}
|
|
50
49
|
const body = await parseBody(request, setupBody);
|
|
51
50
|
if (isParseError(body)) return body;
|
|
52
|
-
try {
|
|
53
|
-
await runMigrations(emdash.db);
|
|
54
|
-
} catch (error) {
|
|
55
|
-
return handleError(error, "Failed to run database migrations", "MIGRATION_ERROR");
|
|
56
|
-
}
|
|
57
51
|
const seed = await loadSeed();
|
|
58
52
|
seed.settings = {
|
|
59
53
|
...seed.settings,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/astro/routes/api/setup/index.ts"],"sourcesContent":["/**\n * POST /_emdash/api/setup\n *\n * Executes the setup wizard - applies seed file and marks setup complete\n */\n\nimport type { APIRoute } from \"astro\";\n\nexport const prerender = false;\n\nimport { apiError, apiSuccess, handleError } from \"#api/error.js\";\nimport { isParseError, parseBody } from \"#api/parse.js\";\nimport { getPublicOrigin } from \"#api/public-url.js\";\nimport { setupBody } from \"#api/schemas.js\";\nimport { getAuthMode } from \"#auth/mode.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/astro/routes/api/setup/index.ts"],"sourcesContent":["/**\n * POST /_emdash/api/setup\n *\n * Executes the setup wizard - applies seed file and marks setup complete\n */\n\nimport type { APIRoute } from \"astro\";\n\nexport const prerender = false;\n\nimport { apiError, apiSuccess, handleError } from \"#api/error.js\";\nimport { isParseError, parseBody } from \"#api/parse.js\";\nimport { getPublicOrigin } from \"#api/public-url.js\";\nimport { setupBody } from \"#api/schemas.js\";\nimport { getAuthMode } from \"#auth/mode.js\";\nimport { OptionsRepository } from \"#db/repositories/options.js\";\nimport { applySeed } from \"#seed/apply.js\";\nimport { loadSeed } from \"#seed/load.js\";\nimport { validateSeed } from \"#seed/validate.js\";\n\nexport const POST: APIRoute = async ({ request, url, locals }) => {\n\tconst { emdash } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\ttry {\n\t\t// Guard: reject if setup has already been completed.\n\t\t// The options table may not exist on first-ever setup (pre-migration),\n\t\t// so a query failure means setup hasn't run yet — allow it to proceed.\n\t\ttry {\n\t\t\tconst options = new OptionsRepository(emdash.db);\n\t\t\tconst setupComplete = await options.get(\"emdash:setup_complete\");\n\n\t\t\tif (setupComplete === true || setupComplete === \"true\") {\n\t\t\t\treturn apiError(\"ALREADY_CONFIGURED\", \"Setup has already been completed\", 409);\n\t\t\t}\n\t\t} catch {\n\t\t\t// Options table doesn't exist yet — first-ever setup, allow it\n\t\t}\n\n\t\t// Parse request body\n\t\tconst body = await parseBody(request, setupBody);\n\t\tif (isParseError(body)) return body;\n\n\t\t// Load seed file (user seed or built-in default)\n\t\tconst seed = await loadSeed();\n\n\t\t// Override seed settings with form values\n\t\tseed.settings = {\n\t\t\t...seed.settings,\n\t\t\ttitle: body.title,\n\t\t\ttagline: body.tagline,\n\t\t};\n\n\t\t// Apply seed\n\t\tconst validation = validateSeed(seed);\n\t\tif (!validation.valid) {\n\t\t\treturn apiError(\"INVALID_SEED\", `Invalid seed file: ${validation.errors.join(\", \")}`, 400);\n\t\t}\n\n\t\tlet result;\n\t\ttry {\n\t\t\tresult = await applySeed(emdash.db, seed, {\n\t\t\t\tincludeContent: body.includeContent,\n\t\t\t\tonConflict: \"skip\",\n\t\t\t\tstorage: emdash.storage ?? undefined,\n\t\t\t});\n\t\t} catch (error) {\n\t\t\treturn handleError(error, \"Failed to apply seed\", \"SEED_ERROR\");\n\t\t}\n\n\t\t// Store setup state\n\t\t// In external auth mode, mark setup complete immediately (first user to login becomes admin)\n\t\t// Otherwise, setup_complete is set after admin user is created (passkey or auth provider)\n\t\tconst authMode = getAuthMode(emdash.config);\n\t\tconst useExternalAuth = authMode.type === \"external\";\n\n\t\ttry {\n\t\t\tconst options = new OptionsRepository(emdash.db);\n\n\t\t\t// Store the canonical site URL from the setup request.\n\t\t\t// Write-once at the DB level so concurrent setup POSTs can't both\n\t\t\t// observe an empty value and race to write. A spoofed Host header\n\t\t\t// on a later call during the wizard window must not be able to\n\t\t\t// replace the first value.\n\t\t\tconst siteUrl = getPublicOrigin(url, emdash.config);\n\t\t\tawait options.setIfAbsent(\"emdash:site_url\", siteUrl);\n\n\t\t\tif (useExternalAuth) {\n\t\t\t\t// External auth mode: mark setup complete now\n\t\t\t\t// First user to log in via external provider will become admin\n\t\t\t\tawait options.set(\"emdash:setup_complete\", true);\n\t\t\t\tawait options.set(\"emdash:site_title\", body.title);\n\t\t\t\tif (body.tagline) {\n\t\t\t\t\tawait options.set(\"emdash:site_tagline\", body.tagline);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Passkey/provider mode: store state for next step (admin creation)\n\t\t\t\tawait options.set(\"emdash:setup_state\", {\n\t\t\t\t\tstep: \"site_complete\",\n\t\t\t\t\ttitle: body.title,\n\t\t\t\t\ttagline: body.tagline,\n\t\t\t\t});\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Failed to save setup state:\", error);\n\t\t\t// Non-fatal - continue anyway\n\t\t}\n\n\t\t// Return success with result\n\t\treturn apiSuccess({\n\t\t\tsuccess: true,\n\t\t\t// In external auth mode, setup is complete - redirect to admin\n\t\t\tsetupComplete: useExternalAuth,\n\t\t\tresult,\n\t\t});\n\t} catch (error) {\n\t\treturn handleError(error, \"Setup failed\", \"SETUP_ERROR\");\n\t}\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAa,YAAY;AAYzB,MAAa,OAAiB,OAAO,EAAE,SAAS,KAAK,aAAa;CACjE,MAAM,EAAE,WAAW;AAEnB,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;AAGpE,KAAI;AAIH,MAAI;GAEH,MAAM,gBAAgB,MADN,IAAI,kBAAkB,OAAO,GAAG,CACZ,IAAI,wBAAwB;AAEhE,OAAI,kBAAkB,QAAQ,kBAAkB,OAC/C,QAAO,SAAS,sBAAsB,oCAAoC,IAAI;UAExE;EAKR,MAAM,OAAO,MAAM,UAAU,SAAS,UAAU;AAChD,MAAI,aAAa,KAAK,CAAE,QAAO;EAG/B,MAAM,OAAO,MAAM,UAAU;AAG7B,OAAK,WAAW;GACf,GAAG,KAAK;GACR,OAAO,KAAK;GACZ,SAAS,KAAK;GACd;EAGD,MAAM,aAAa,aAAa,KAAK;AACrC,MAAI,CAAC,WAAW,MACf,QAAO,SAAS,gBAAgB,sBAAsB,WAAW,OAAO,KAAK,KAAK,IAAI,IAAI;EAG3F,IAAI;AACJ,MAAI;AACH,YAAS,MAAM,UAAU,OAAO,IAAI,MAAM;IACzC,gBAAgB,KAAK;IACrB,YAAY;IACZ,SAAS,OAAO,WAAW;IAC3B,CAAC;WACM,OAAO;AACf,UAAO,YAAY,OAAO,wBAAwB,aAAa;;EAOhE,MAAM,kBADW,YAAY,OAAO,OAAO,CACV,SAAS;AAE1C,MAAI;GACH,MAAM,UAAU,IAAI,kBAAkB,OAAO,GAAG;GAOhD,MAAM,UAAU,gBAAgB,KAAK,OAAO,OAAO;AACnD,SAAM,QAAQ,YAAY,mBAAmB,QAAQ;AAErD,OAAI,iBAAiB;AAGpB,UAAM,QAAQ,IAAI,yBAAyB,KAAK;AAChD,UAAM,QAAQ,IAAI,qBAAqB,KAAK,MAAM;AAClD,QAAI,KAAK,QACR,OAAM,QAAQ,IAAI,uBAAuB,KAAK,QAAQ;SAIvD,OAAM,QAAQ,IAAI,sBAAsB;IACvC,MAAM;IACN,OAAO,KAAK;IACZ,SAAS,KAAK;IACd,CAAC;WAEK,OAAO;AACf,WAAQ,MAAM,+BAA+B,MAAM;;AAKpD,SAAO,WAAW;GACjB,SAAS;GAET,eAAe;GACf;GACA,CAAC;UACM,OAAO;AACf,SAAO,YAAY,OAAO,gBAAgB,cAAc"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../base64-CvLhUKQv.mjs";
|
|
2
2
|
import "../../../../types-CQPWhPxE.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DupyJZE2.mjs";
|
|
4
|
-
import { n as loadUserSeed } from "../../../../load-
|
|
5
|
-
import { t as getAuthMode } from "../../../../mode-
|
|
4
|
+
import { n as loadUserSeed } from "../../../../load-YJ2xl3ra.mjs";
|
|
5
|
+
import { t as getAuthMode } from "../../../../mode-BDoH_WcF.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/astro/routes/api/setup/status.ts
|
|
8
8
|
const prerender = false;
|
|
@@ -4,10 +4,10 @@ import "../../../types-CQPWhPxE.mjs";
|
|
|
4
4
|
import "../../../options-CBXIHUoT.mjs";
|
|
5
5
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../error-DupyJZE2.mjs";
|
|
6
6
|
import { r as getPublicOrigin } from "../../../public-url-CWoFhQT8.mjs";
|
|
7
|
-
import { n as parsePreviewSignatureHeader, r as verifyPreviewSignature, t as generateSnapshot } from "../../../snapshot-
|
|
8
|
-
import { i as resolveSecretsCached } from "../../../secrets-
|
|
9
|
-
import { t as resolveSessionUser } from "../../../session-user-
|
|
10
|
-
import { r as requirePerm } from "../../../authorize-
|
|
7
|
+
import { n as parsePreviewSignatureHeader, r as verifyPreviewSignature, t as generateSnapshot } from "../../../snapshot-BBlGkb2q.mjs";
|
|
8
|
+
import { i as resolveSecretsCached } from "../../../secrets-BEgsAQEU.mjs";
|
|
9
|
+
import { t as resolveSessionUser } from "../../../session-user-BEorKVT-.mjs";
|
|
10
|
+
import { r as requirePerm } from "../../../authorize-DUElxgOQ.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/snapshot.ts
|
|
13
13
|
const prerender = false;
|
|
@@ -5,20 +5,20 @@ import "../../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../../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 "../../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../../loader-
|
|
12
|
-
import "../../../../../taxonomies-
|
|
13
|
-
import { d as handleTermReorder } from "../../../../../taxonomies-
|
|
11
|
+
import "../../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { d as handleTermReorder } from "../../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, 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 { U as reorderTermsBody } from "../../../../../redirects-
|
|
17
|
+
import { U as reorderTermsBody } from "../../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/taxonomies/[name]/reorder.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -5,20 +5,20 @@ import "../../../../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../../../../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 "../../../../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../../../../loader-
|
|
12
|
-
import "../../../../../../../taxonomies-
|
|
13
|
-
import { f as handleTermTranslations, l as handleTermGet, s as handleTermCreate } from "../../../../../../../taxonomies-
|
|
11
|
+
import "../../../../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { f as handleTermTranslations, l as handleTermGet, s as handleTermCreate } from "../../../../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import { et as localeFilterQuery } from "../../../../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import "../../../../../../../redirects-
|
|
17
|
+
import "../../../../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
import { z } from "zod";
|
|
23
23
|
|
|
24
24
|
//#region src/astro/routes/api/taxonomies/[name]/terms/[slug]/translations.ts
|
|
@@ -5,20 +5,20 @@ import "../../../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../../../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 "../../../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../../../loader-
|
|
12
|
-
import "../../../../../../taxonomies-
|
|
13
|
-
import { c as handleTermDelete, l as handleTermGet, p as handleTermUpdate } from "../../../../../../taxonomies-
|
|
11
|
+
import "../../../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { c as handleTermDelete, l as handleTermGet, p as handleTermUpdate } from "../../../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import { et as localeFilterQuery } from "../../../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import { rt as updateTermBody } from "../../../../../../redirects-
|
|
17
|
+
import { rt as updateTermBody } from "../../../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/taxonomies/[name]/terms/[slug].ts
|
|
24
24
|
const prerender = false;
|
|
@@ -5,20 +5,20 @@ import "../../../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../../../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 "../../../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../../../loader-
|
|
12
|
-
import "../../../../../../taxonomies-
|
|
13
|
-
import { s as handleTermCreate, u as handleTermList } from "../../../../../../taxonomies-
|
|
11
|
+
import "../../../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { s as handleTermCreate, u as handleTermList } from "../../../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import "../../../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import { H as createTermBody, Y as termListQuery } from "../../../../../../redirects-
|
|
17
|
+
import { H as createTermBody, Y as termListQuery } from "../../../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/taxonomies/[name]/terms/index.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -5,20 +5,20 @@ import "../../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../../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 "../../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../../loader-
|
|
12
|
-
import "../../../../../taxonomies-
|
|
13
|
-
import { i as handleTaxonomyGet, n as handleTaxonomyDefTranslations } from "../../../../../taxonomies-
|
|
11
|
+
import "../../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { i as handleTaxonomyGet, n as handleTaxonomyDefTranslations } from "../../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { i as parseQuery, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import { et as localeFilterQuery } from "../../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import "../../../../../redirects-
|
|
17
|
+
import "../../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/taxonomies/[name]/translations.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -5,20 +5,20 @@ import "../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../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 "../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../loader-
|
|
12
|
-
import "../../../../taxonomies-
|
|
13
|
-
import { i as handleTaxonomyGet, o as handleTaxonomyUpdate, r as handleTaxonomyDelete } from "../../../../taxonomies-
|
|
11
|
+
import "../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { i as handleTaxonomyGet, o as handleTaxonomyUpdate, r as handleTaxonomyDelete } from "../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import { et as localeFilterQuery } from "../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import { nt as updateTaxonomyDefBody } from "../../../../redirects-
|
|
17
|
+
import { nt as updateTaxonomyDefBody } from "../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/taxonomies/[name].ts
|
|
24
24
|
const prerender = false;
|
|
@@ -5,20 +5,20 @@ import "../../../../object-cache-71tPfV4A.mjs";
|
|
|
5
5
|
import "../../../../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 "../../../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../../../loader-
|
|
12
|
-
import "../../../../taxonomies-
|
|
13
|
-
import { a as handleTaxonomyList, t as handleTaxonomyCreate } from "../../../../taxonomies-
|
|
11
|
+
import "../../../../loader-CdG_Ci3H.mjs";
|
|
12
|
+
import "../../../../taxonomies-BlrncHi9.mjs";
|
|
13
|
+
import { a as handleTaxonomyList, t as handleTaxonomyCreate } from "../../../../taxonomies-OHUIiIpI.mjs";
|
|
14
14
|
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../error-DupyJZE2.mjs";
|
|
15
15
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-DFbuc-Fh.mjs";
|
|
16
16
|
import { et as localeFilterQuery } from "../../../../media-BWWWb8kg.mjs";
|
|
17
|
-
import { V as createTaxonomyDefBody } from "../../../../redirects-
|
|
17
|
+
import { V as createTaxonomyDefBody } from "../../../../redirects-DTDHWH31.mjs";
|
|
18
18
|
import "../../../../relations-BBApI4e2.mjs";
|
|
19
19
|
import "../../../../status-CWVYpbD8.mjs";
|
|
20
20
|
import "../../../../api/schemas/index.mjs";
|
|
21
|
-
import { r as requirePerm } from "../../../../authorize-
|
|
21
|
+
import { r as requirePerm } from "../../../../authorize-DUElxgOQ.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/taxonomies/index.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -4,8 +4,8 @@ import "../../../../types-CQPWhPxE.mjs";
|
|
|
4
4
|
import "../../../../options-CBXIHUoT.mjs";
|
|
5
5
|
import { n as apiSuccess, t as apiError } from "../../../../error-DupyJZE2.mjs";
|
|
6
6
|
import { r as getPublicOrigin } from "../../../../public-url-CWoFhQT8.mjs";
|
|
7
|
-
import { i as resolveSecretsCached } from "../../../../secrets-
|
|
8
|
-
import { r as requirePerm } from "../../../../authorize-
|
|
7
|
+
import { i as resolveSecretsCached } from "../../../../secrets-BEgsAQEU.mjs";
|
|
8
|
+
import { r as requirePerm } from "../../../../authorize-DUElxgOQ.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/themes/preview.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -19,7 +19,7 @@ async function safeListCollections(registry) {
|
|
|
19
19
|
* Generate types content and metadata from the current schema.
|
|
20
20
|
*/
|
|
21
21
|
async function generateTypes(registry) {
|
|
22
|
-
const { generateTypesFile, generateSchemaHash } = await import("../../../zod-generator-
|
|
22
|
+
const { generateTypesFile, generateSchemaHash } = await import("../../../zod-generator-LC-on_Vb.mjs").then((n) => n.a);
|
|
23
23
|
const collections = await safeListCollections(registry);
|
|
24
24
|
const collectionsWithFields = await Promise.all(collections.map(async (c) => {
|
|
25
25
|
const fields = await registry.listFields(c.id);
|
|
@@ -42,7 +42,7 @@ const GET = async ({ locals }) => {
|
|
|
42
42
|
const { emdash } = locals;
|
|
43
43
|
if (!emdash?.db) return apiError("NOT_CONFIGURED", "EmDash not configured", 500);
|
|
44
44
|
try {
|
|
45
|
-
const { SchemaRegistry } = await import("../../../registry-
|
|
45
|
+
const { SchemaRegistry } = await import("../../../registry-Cqa2I749.mjs").then((n) => n.r);
|
|
46
46
|
const { types } = await generateTypes(new SchemaRegistry(emdash.db));
|
|
47
47
|
return new Response(types, {
|
|
48
48
|
status: 200,
|
|
@@ -66,7 +66,7 @@ const POST = async ({ locals }) => {
|
|
|
66
66
|
const { emdash } = locals;
|
|
67
67
|
if (!emdash?.db) return apiError("NOT_CONFIGURED", "EmDash not configured", 500);
|
|
68
68
|
try {
|
|
69
|
-
const { SchemaRegistry } = await import("../../../registry-
|
|
69
|
+
const { SchemaRegistry } = await import("../../../registry-Cqa2I749.mjs").then((n) => n.r);
|
|
70
70
|
return apiSuccess(await generateTypes(new SchemaRegistry(emdash.db)));
|
|
71
71
|
} catch (error) {
|
|
72
72
|
return handleError(error, "Typegen failed", "TYPEGEN_ERROR");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../options-CBXIHUoT.mjs";
|
|
2
|
-
import { t as getAuthMode } from "../../../../mode-
|
|
2
|
+
import { t as getAuthMode } from "../../../../mode-BDoH_WcF.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/well-known/auth.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as getPublicOrigin } from "../../../../public-url-CWoFhQT8.mjs";
|
|
2
|
-
import { n as VALID_SCOPES } from "../../../../api-tokens-
|
|
2
|
+
import { n as VALID_SCOPES } from "../../../../api-tokens-rIXC6LdE.mjs";
|
|
3
3
|
import virtualConfig from "virtual:emdash/config";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/oauth-authorization-server.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as getPublicOrigin } from "../../../../public-url-CWoFhQT8.mjs";
|
|
2
|
-
import { n as VALID_SCOPES } from "../../../../api-tokens-
|
|
2
|
+
import { n as VALID_SCOPES } from "../../../../api-tokens-rIXC6LdE.mjs";
|
|
3
3
|
import virtualConfig from "virtual:emdash/config";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/oauth-protected-resource.ts
|
|
@@ -4,11 +4,11 @@ import "../../../../../types-CQPWhPxE.mjs";
|
|
|
4
4
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DupyJZE2.mjs";
|
|
5
5
|
import { n as parseBody, t as isParseError } from "../../../../../parse-DFbuc-Fh.mjs";
|
|
6
6
|
import "../../../../../media-BWWWb8kg.mjs";
|
|
7
|
-
import { h as reorderWidgetsBody } from "../../../../../redirects-
|
|
7
|
+
import { h as reorderWidgetsBody } from "../../../../../redirects-DTDHWH31.mjs";
|
|
8
8
|
import "../../../../../relations-BBApI4e2.mjs";
|
|
9
9
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
10
10
|
import "../../../../../api/schemas/index.mjs";
|
|
11
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
11
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/widget-areas/[name]/reorder.ts
|
|
14
14
|
const prerender = false;
|
|
@@ -3,16 +3,16 @@ import "../../../../../../config-C3EBstHi.mjs";
|
|
|
3
3
|
import "../../../../../../base64-CvLhUKQv.mjs";
|
|
4
4
|
import "../../../../../../types-CQPWhPxE.mjs";
|
|
5
5
|
import "../../../../../../request-cache-BSUptuJR.mjs";
|
|
6
|
-
import "../../../../../../loader-
|
|
6
|
+
import "../../../../../../loader-CdG_Ci3H.mjs";
|
|
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 { g as updateWidgetBody } from "../../../../../../redirects-
|
|
10
|
+
import { g as updateWidgetBody } from "../../../../../../redirects-DTDHWH31.mjs";
|
|
11
11
|
import "../../../../../../relations-BBApI4e2.mjs";
|
|
12
12
|
import "../../../../../../status-CWVYpbD8.mjs";
|
|
13
13
|
import "../../../../../../api/schemas/index.mjs";
|
|
14
|
-
import { i as rowToWidget } from "../../../../../../widgets-
|
|
15
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
14
|
+
import { i as rowToWidget } from "../../../../../../widgets-BD3ho7Rq.mjs";
|
|
15
|
+
import { r as requirePerm } from "../../../../../../authorize-DUElxgOQ.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/astro/routes/api/widget-areas/[name]/widgets/[id].ts
|
|
18
18
|
const prerender = false;
|
|
@@ -3,16 +3,16 @@ import "../../../../../config-C3EBstHi.mjs";
|
|
|
3
3
|
import "../../../../../base64-CvLhUKQv.mjs";
|
|
4
4
|
import "../../../../../types-CQPWhPxE.mjs";
|
|
5
5
|
import "../../../../../request-cache-BSUptuJR.mjs";
|
|
6
|
-
import "../../../../../loader-
|
|
6
|
+
import "../../../../../loader-CdG_Ci3H.mjs";
|
|
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 { m as createWidgetBody } from "../../../../../redirects-
|
|
10
|
+
import { m as createWidgetBody } from "../../../../../redirects-DTDHWH31.mjs";
|
|
11
11
|
import "../../../../../relations-BBApI4e2.mjs";
|
|
12
12
|
import "../../../../../status-CWVYpbD8.mjs";
|
|
13
13
|
import "../../../../../api/schemas/index.mjs";
|
|
14
|
-
import { i as rowToWidget } from "../../../../../widgets-
|
|
15
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
14
|
+
import { i as rowToWidget } from "../../../../../widgets-BD3ho7Rq.mjs";
|
|
15
|
+
import { r as requirePerm } from "../../../../../authorize-DUElxgOQ.mjs";
|
|
16
16
|
import { ulid } from "ulidx";
|
|
17
17
|
|
|
18
18
|
//#region src/astro/routes/api/widget-areas/[name]/widgets.ts
|
|
@@ -3,10 +3,10 @@ import "../../../../config-C3EBstHi.mjs";
|
|
|
3
3
|
import "../../../../base64-CvLhUKQv.mjs";
|
|
4
4
|
import "../../../../types-CQPWhPxE.mjs";
|
|
5
5
|
import "../../../../request-cache-BSUptuJR.mjs";
|
|
6
|
-
import "../../../../loader-
|
|
6
|
+
import "../../../../loader-CdG_Ci3H.mjs";
|
|
7
7
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DupyJZE2.mjs";
|
|
8
|
-
import { i as rowToWidget } from "../../../../widgets-
|
|
9
|
-
import { r as requirePerm } from "../../../../authorize-
|
|
8
|
+
import { i as rowToWidget } from "../../../../widgets-BD3ho7Rq.mjs";
|
|
9
|
+
import { r as requirePerm } from "../../../../authorize-DUElxgOQ.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/widget-areas/[name].ts
|
|
12
12
|
const prerender = false;
|
|
@@ -3,16 +3,16 @@ import "../../../../config-C3EBstHi.mjs";
|
|
|
3
3
|
import "../../../../base64-CvLhUKQv.mjs";
|
|
4
4
|
import "../../../../types-CQPWhPxE.mjs";
|
|
5
5
|
import "../../../../request-cache-BSUptuJR.mjs";
|
|
6
|
-
import "../../../../loader-
|
|
6
|
+
import "../../../../loader-CdG_Ci3H.mjs";
|
|
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 { p as createWidgetAreaBody } from "../../../../redirects-
|
|
10
|
+
import { p as createWidgetAreaBody } from "../../../../redirects-DTDHWH31.mjs";
|
|
11
11
|
import "../../../../relations-BBApI4e2.mjs";
|
|
12
12
|
import "../../../../status-CWVYpbD8.mjs";
|
|
13
13
|
import "../../../../api/schemas/index.mjs";
|
|
14
|
-
import { i as rowToWidget } from "../../../../widgets-
|
|
15
|
-
import { r as requirePerm } from "../../../../authorize-
|
|
14
|
+
import { i as rowToWidget } from "../../../../widgets-BD3ho7Rq.mjs";
|
|
15
|
+
import { r as requirePerm } from "../../../../authorize-DUElxgOQ.mjs";
|
|
16
16
|
import { ulid } from "ulidx";
|
|
17
17
|
|
|
18
18
|
//#region src/astro/routes/api/widget-areas/index.ts
|
|
@@ -7,8 +7,8 @@ import "../../types-CQPWhPxE.mjs";
|
|
|
7
7
|
import "../../media-CzhAn2--.mjs";
|
|
8
8
|
import "../../options-CBXIHUoT.mjs";
|
|
9
9
|
import "../../request-cache-BSUptuJR.mjs";
|
|
10
|
-
import "../../loader-
|
|
11
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
10
|
+
import "../../loader-CdG_Ci3H.mjs";
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "../../settings-xRdoUZr0.mjs";
|
|
12
12
|
import { r as getPublicOrigin } from "../../public-url-CWoFhQT8.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/robots.txt.ts
|
|
@@ -8,9 +8,9 @@ import "../../media-CzhAn2--.mjs";
|
|
|
8
8
|
import "../../options-CBXIHUoT.mjs";
|
|
9
9
|
import "../../request-cache-BSUptuJR.mjs";
|
|
10
10
|
import { n as localizePath, t as interpolateUrlPattern } from "../../resolve-DOhVEvty.mjs";
|
|
11
|
-
import "../../loader-
|
|
11
|
+
import "../../loader-CdG_Ci3H.mjs";
|
|
12
12
|
import { t as handleSitemapData } from "../../seo-AFpVvTqr.mjs";
|
|
13
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
13
|
+
import { a as getSiteSettingsWithDb } from "../../settings-xRdoUZr0.mjs";
|
|
14
14
|
import { t as buildSeoImageUrl } from "../../media-url-BvoX88FA.mjs";
|
|
15
15
|
import { r as getPublicOrigin } from "../../public-url-CWoFhQT8.mjs";
|
|
16
16
|
|
|
@@ -7,9 +7,9 @@ import "../../types-CQPWhPxE.mjs";
|
|
|
7
7
|
import "../../media-CzhAn2--.mjs";
|
|
8
8
|
import "../../options-CBXIHUoT.mjs";
|
|
9
9
|
import "../../request-cache-BSUptuJR.mjs";
|
|
10
|
-
import "../../loader-
|
|
10
|
+
import "../../loader-CdG_Ci3H.mjs";
|
|
11
11
|
import { t as handleSitemapData } from "../../seo-AFpVvTqr.mjs";
|
|
12
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
12
|
+
import { a as getSiteSettingsWithDb } from "../../settings-xRdoUZr0.mjs";
|
|
13
13
|
import { r as getPublicOrigin } from "../../public-url-CWoFhQT8.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/sitemap.xml.ts
|