emdash 0.27.0 → 0.28.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-u037EnTR.d.mts → adapters-hUy8vOB-.d.mts} +1 -1
- package/dist/{adapters-u037EnTR.d.mts.map → adapters-hUy8vOB-.d.mts.map} +1 -1
- package/dist/{allowed-origins-D5FxMUo8.mjs → allowed-origins-CRsJ6BPM.mjs} +2 -2
- package/dist/{allowed-origins-D5FxMUo8.mjs.map → allowed-origins-CRsJ6BPM.mjs.map} +1 -1
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +17 -16
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-80kycR9o.mjs → api-BFURZn1i.mjs} +33 -23
- package/dist/api-BFURZn1i.mjs.map +1 -0
- package/dist/{api-tokens-D6ppjIVi.mjs → api-tokens-DvqeZmVq.mjs} +2 -2
- package/dist/{api-tokens-D6ppjIVi.mjs.map → api-tokens-DvqeZmVq.mjs.map} +1 -1
- package/dist/{apply-DSypk6Iu.mjs → apply-Bu-8nYHL.mjs} +111 -74
- package/dist/apply-Bu-8nYHL.mjs.map +1 -0
- package/dist/astro/index.d.mts +12 -12
- package/dist/astro/index.mjs +3 -3
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +10 -10
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +50 -11
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -2
- package/dist/astro/middleware.mjs +124 -71
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -6
- 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 +4 -4
- 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 +14 -14
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +14 -14
- package/dist/astro/routes/api/admin/bylines/index.mjs +14 -14
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +4 -4
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- 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 +37 -36
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +37 -36
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +37 -36
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +37 -36
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +36 -35
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +36 -35
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +36 -35
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- 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 +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +6 -6
- 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 +9 -9
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
- 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 +9 -9
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +13 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
- 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 +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- 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.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +13 -13
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/authors.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/index.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -7
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/dev/emails.mjs +3 -3
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +19 -11
- package/dist/astro/routes/api/import/probe.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +11 -41
- package/dist/astro/routes/api/import/wordpress/execute.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +12 -407
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/media.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +19 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +97 -79
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +19 -11
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +40 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +519 -39
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +39 -39
- package/dist/astro/routes/api/media/_id_/confirm.mjs +7 -7
- package/dist/astro/routes/api/media/_id_.mjs +7 -7
- 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 +8 -8
- package/dist/astro/routes/api/media.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/translations.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_.mjs +9 -9
- package/dist/astro/routes/api/menus/index.mjs +9 -9
- 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 +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- 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 +4 -4
- 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 +36 -35
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +36 -35
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +36 -35
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +36 -35
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +36 -35
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +7 -6
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +36 -35
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +36 -35
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +10 -10
- package/dist/astro/routes/api/search/index.mjs +9 -9
- package/dist/astro/routes/api/search/rebuild.mjs +10 -10
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +9 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +9 -9
- package/dist/astro/routes/api/sections/index.mjs +9 -9
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- 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 +25 -24
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +26 -25
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- 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 +13 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/index.mjs +13 -13
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +9 -9
- package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/index.mjs +9 -9
- package/dist/astro/routes/api/widget-components.mjs +3 -3
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
- package/dist/astro/routes/sitemap.xml.mjs +7 -7
- package/dist/astro/types.d.mts +13 -13
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-C3a_zGsM.mjs → authorize-Dz88F_Fw.mjs} +2 -2
- package/dist/{authorize-C3a_zGsM.mjs.map → authorize-Dz88F_Fw.mjs.map} +1 -1
- package/dist/{byline-DEKSVPTy.mjs → byline-Bm8ZgUP9.mjs} +6 -6
- package/dist/{byline-DEKSVPTy.mjs.map → byline-Bm8ZgUP9.mjs.map} +1 -1
- package/dist/{byline-fields-eyJMblSr.mjs → byline-fields-2Lp5Hbgf.mjs} +18 -3
- package/dist/byline-fields-2Lp5Hbgf.mjs.map +1 -0
- package/dist/{byline-fields-DaMKzkhO.mjs → byline-fields-CIx_GuN4.mjs} +1 -1
- package/dist/{byline-fields-DaMKzkhO.mjs.map → byline-fields-CIx_GuN4.mjs.map} +1 -1
- package/dist/{byline-fields-CtQ6blXd.d.mts → byline-fields-Cgrt9-aL.d.mts} +49 -34
- package/dist/{byline-fields-CtQ6blXd.d.mts.map → byline-fields-Cgrt9-aL.d.mts.map} +1 -1
- package/dist/{bylines-Ds4-otXl.mjs → bylines-6tm9mgQb.mjs} +4 -4
- package/dist/{bylines-Ds4-otXl.mjs.map → bylines-6tm9mgQb.mjs.map} +1 -1
- package/dist/{bylines-CiqgTHWF.mjs → bylines-Woq87129.mjs} +6 -6
- package/dist/{bylines-CiqgTHWF.mjs.map → bylines-Woq87129.mjs.map} +1 -1
- package/dist/{cache-Ciu3e3AF.mjs → cache-CEBAZjir.mjs} +2 -2
- package/dist/{cache-Ciu3e3AF.mjs.map → cache-CEBAZjir.mjs.map} +1 -1
- package/dist/{challenge-store-LhiqMccz.mjs → challenge-store-anhwVER0.mjs} +1 -1
- package/dist/{challenge-store-LhiqMccz.mjs.map → challenge-store-anhwVER0.mjs.map} +1 -1
- package/dist/{chunks-CZFiauig.mjs → chunks-B2isWQhr.mjs} +2 -2
- package/dist/{chunks-CZFiauig.mjs.map → chunks-B2isWQhr.mjs.map} +1 -1
- package/dist/cli/index.mjs +22 -21
- 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 +2 -2
- package/dist/{comment-CH1IrFFs.mjs → comment-CzeatwBV.mjs} +3 -3
- package/dist/{comment-CH1IrFFs.mjs.map → comment-CzeatwBV.mjs.map} +1 -1
- package/dist/{comment-reaction-kruNY-kP.mjs → comment-reaction-Cj9QJY7I.mjs} +2 -2
- package/dist/{comment-reaction-kruNY-kP.mjs.map → comment-reaction-Cj9QJY7I.mjs.map} +1 -1
- package/dist/{comments-BUJyXbgq.mjs → comments-BLE-jv5k.mjs} +3 -3
- package/dist/{comments-BUJyXbgq.mjs.map → comments-BLE-jv5k.mjs.map} +1 -1
- package/dist/{components-CYt4uVK9.mjs → components-B_sATNUc.mjs} +1 -1
- package/dist/{components-CYt4uVK9.mjs.map → components-B_sATNUc.mjs.map} +1 -1
- package/dist/{content-RmfHoWqK.mjs → content-DhgEth4k.mjs} +4 -4
- package/dist/{content-RmfHoWqK.mjs.map → content-DhgEth4k.mjs.map} +1 -1
- package/dist/content-refresh-CA4uKwzH.mjs +1531 -0
- package/dist/content-refresh-CA4uKwzH.mjs.map +1 -0
- package/dist/{context-CzUU_WzL.mjs → context-CUsR9dXL.mjs} +76 -54
- package/dist/context-CUsR9dXL.mjs.map +1 -0
- package/dist/{cron-C5LVoNmP.mjs → cron-v4FTEFR_.mjs} +1 -1
- package/dist/{cron-C5LVoNmP.mjs.map → cron-v4FTEFR_.mjs.map} +1 -1
- package/dist/{dashboard-CVyGhift.mjs → dashboard-EvEKF5en.mjs} +4 -4
- package/dist/{dashboard-CVyGhift.mjs.map → dashboard-EvEKF5en.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-CeRG-Ot4.mjs → default-CM_D83Mg.mjs} +1 -1
- package/dist/{default-CeRG-Ot4.mjs.map → default-CM_D83Mg.mjs.map} +1 -1
- package/dist/{device-flow-DENDCQ9F.mjs → device-flow-CfGP18Uw.mjs} +4 -4
- package/dist/{device-flow-DENDCQ9F.mjs.map → device-flow-CfGP18Uw.mjs.map} +1 -1
- package/dist/{email-console-DJP32ucW.mjs → email-console-CIf4Lfvv.mjs} +1 -1
- package/dist/{email-console-DJP32ucW.mjs.map → email-console-CIf4Lfvv.mjs.map} +1 -1
- package/dist/{error-BHkLZk-w.mjs → error-CkAseSqZ.mjs} +2 -2
- package/dist/{error-BHkLZk-w.mjs.map → error-CkAseSqZ.mjs.map} +1 -1
- package/dist/{escape-Bjio4ZsM.mjs → escape-DqD0aCKu.mjs} +1 -1
- package/dist/{escape-Bjio4ZsM.mjs.map → escape-DqD0aCKu.mjs.map} +1 -1
- package/dist/{field-defs-cache-BA-8ZPiT.mjs → field-defs-cache-WUI88LX5.mjs} +2 -2
- package/dist/{field-defs-cache-BA-8ZPiT.mjs.map → field-defs-cache-WUI88LX5.mjs.map} +1 -1
- package/dist/{fts-manager-Db9jGavf.mjs → fts-manager-BbFaF_V8.mjs} +2 -2
- package/dist/{fts-manager-Db9jGavf.mjs.map → fts-manager-BbFaF_V8.mjs.map} +1 -1
- package/dist/{import-Bb1T9WJS.mjs → import-fYLf14Co.mjs} +514 -25
- package/dist/import-fYLf14Co.mjs.map +1 -0
- package/dist/{index-CDZZjrLT.d.mts → index-B9sIxwe4.d.mts} +21 -22
- package/dist/{index-CDZZjrLT.d.mts.map → index-B9sIxwe4.d.mts.map} +1 -1
- package/dist/{index-DGIjmUXQ.d.mts → index-Bm-Gy8Mh.d.mts} +25 -4
- package/dist/index-Bm-Gy8Mh.d.mts.map +1 -0
- package/dist/index.d.mts +18 -18
- package/dist/index.mjs +54 -53
- package/dist/{load-DpHICVPh.mjs → load-Djn3HWQS.mjs} +2 -2
- package/dist/{load-DpHICVPh.mjs.map → load-Djn3HWQS.mjs.map} +1 -1
- package/dist/{loader-4K37qA-y.mjs → loader-CB6YHeul.mjs} +6 -5
- package/dist/loader-CB6YHeul.mjs.map +1 -0
- package/dist/{manifest-schema-kPGX7VS-.mjs → manifest-schema-BHlgZM1W.mjs} +1 -1
- package/dist/{manifest-schema-kPGX7VS-.mjs.map → manifest-schema-BHlgZM1W.mjs.map} +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +12 -12
- package/dist/media/local-runtime.mjs +5 -5
- package/dist/{media-C0nRRfs1.mjs → media-BrXIaMFN.mjs} +2 -2
- package/dist/{media-C0nRRfs1.mjs.map → media-BrXIaMFN.mjs.map} +1 -1
- package/dist/{media-allowlist-Du8t1u6a.mjs → media-allowlist-CRHEeJ_i.mjs} +1 -1
- package/dist/{media-allowlist-Du8t1u6a.mjs.map → media-allowlist-CRHEeJ_i.mjs.map} +1 -1
- package/dist/{media-url-O4rm9-SQ.mjs → media-url-CKi5XSw4.mjs} +1 -1
- package/dist/{media-url-O4rm9-SQ.mjs.map → media-url-CKi5XSw4.mjs.map} +1 -1
- package/dist/{menus-SL2K0xq2.mjs → menus-Cfivc2Ad.mjs} +3 -3
- package/dist/{menus-SL2K0xq2.mjs.map → menus-Cfivc2Ad.mjs.map} +1 -1
- package/dist/{menus-DzRyC1ID.mjs → menus-CsZ2ZEK2.mjs} +16 -12
- package/dist/{menus-DzRyC1ID.mjs.map → menus-CsZ2ZEK2.mjs.map} +1 -1
- package/dist/{mode-BB0F8xTC.mjs → mode-BM9QgEmt.mjs} +1 -1
- package/dist/{mode-BB0F8xTC.mjs.map → mode-BM9QgEmt.mjs.map} +1 -1
- package/dist/{oauth-authorization-CsvzIp_F.mjs → oauth-authorization-CXWkIGT4.mjs} +4 -4
- package/dist/{oauth-authorization-CsvzIp_F.mjs.map → oauth-authorization-CXWkIGT4.mjs.map} +1 -1
- package/dist/{oauth-clients-C9SYwEbZ.mjs → oauth-clients-BmTI5rsl.mjs} +1 -1
- package/dist/{oauth-clients-C9SYwEbZ.mjs.map → oauth-clients-BmTI5rsl.mjs.map} +1 -1
- package/dist/{oauth-state-store---zrApfB.mjs → oauth-state-store-YLFLcH5F.mjs} +1 -1
- package/dist/{oauth-state-store---zrApfB.mjs.map → oauth-state-store-YLFLcH5F.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-SHsWRlG9.mjs → oauth-user-lookup-Bsc_GsX-.mjs} +1 -1
- package/dist/{oauth-user-lookup-SHsWRlG9.mjs.map → oauth-user-lookup-Bsc_GsX-.mjs.map} +1 -1
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{object-cache-CHbHv83-.mjs → object-cache-Bok5j2ae.mjs} +43 -3
- package/dist/object-cache-Bok5j2ae.mjs.map +1 -0
- package/dist/{options-41nCWqi9.d.mts → options-iMpRRxIe.d.mts} +3 -3
- package/dist/{options-41nCWqi9.d.mts.map → options-iMpRRxIe.d.mts.map} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/{parse-CqyZj3Hp.mjs → parse-GmjecGct.mjs} +2 -2
- package/dist/{parse-CqyZj3Hp.mjs.map → parse-GmjecGct.mjs.map} +1 -1
- package/dist/{passkey-config-C0YfSBko.mjs → passkey-config-De0ahnRg.mjs} +1 -1
- package/dist/{passkey-config-C0YfSBko.mjs.map → passkey-config-De0ahnRg.mjs.map} +1 -1
- package/dist/{placeholder-Cuce9U-m.d.mts → placeholder-BSKwzRe4.d.mts} +1 -1
- package/dist/{placeholder-Cuce9U-m.d.mts.map → placeholder-BSKwzRe4.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/plugins/adapt-sandbox-entry.mjs +2 -2
- package/dist/{portable-text-BICg8bTk.mjs → portable-text-cCa0cGV6.mjs} +1 -1
- package/dist/{portable-text-BICg8bTk.mjs.map → portable-text-cCa0cGV6.mjs.map} +1 -1
- package/dist/{preview-DKGCt2_p.mjs → preview-SSXNVPAC.mjs} +2 -2
- package/dist/{preview-DKGCt2_p.mjs.map → preview-SSXNVPAC.mjs.map} +1 -1
- package/dist/{public-url-CTVqgMmg.mjs → public-url-Danv47cS.mjs} +1 -1
- package/dist/{public-url-CTVqgMmg.mjs.map → public-url-Danv47cS.mjs.map} +1 -1
- package/dist/{query-B0M-9LYR.mjs → query-ByGq6ver.mjs} +14 -14
- package/dist/{query-B0M-9LYR.mjs.map → query-ByGq6ver.mjs.map} +1 -1
- package/dist/{rate-limit-BwoUdIpC.mjs → rate-limit-C_Lf63Dd.mjs} +2 -2
- package/dist/{rate-limit-BwoUdIpC.mjs.map → rate-limit-C_Lf63Dd.mjs.map} +1 -1
- package/dist/{redirect-CS-PHtNh.mjs → redirect-CoW3G-0U.mjs} +1 -1
- package/dist/{redirect-CS-PHtNh.mjs.map → redirect-CoW3G-0U.mjs.map} +1 -1
- package/dist/{redirect-lMOzG04S.mjs → redirect-IyfNirgS.mjs} +2 -2
- package/dist/{redirect-lMOzG04S.mjs.map → redirect-IyfNirgS.mjs.map} +1 -1
- package/dist/{redirects-9218MmYl.mjs → redirects-Bs1g42Ri.mjs} +4 -4
- package/dist/{redirects-9218MmYl.mjs.map → redirects-Bs1g42Ri.mjs.map} +1 -1
- package/dist/{redirects-Dcbuisoj.mjs → redirects-DXEXBAII.mjs} +2 -2
- package/dist/{redirects-Dcbuisoj.mjs.map → redirects-DXEXBAII.mjs.map} +1 -1
- package/dist/{registry-DP-iEtdR.mjs → registry-B65mUtPa.mjs} +122 -79
- package/dist/registry-B65mUtPa.mjs.map +1 -0
- package/dist/{request-meta-CmS1tDFf.mjs → request-meta-DbvXaAvU.mjs} +2 -2
- package/dist/{request-meta-CmS1tDFf.mjs.map → request-meta-DbvXaAvU.mjs.map} +1 -1
- package/dist/{resolve-C7I0qiR0.mjs → resolve-DR3wqMTy.mjs} +1 -1
- package/dist/{resolve-C7I0qiR0.mjs.map → resolve-DR3wqMTy.mjs.map} +1 -1
- package/dist/{runner-BbR3DfrL.d.mts → runner-DvFWoz8-.d.mts} +2 -2
- package/dist/{runner-BbR3DfrL.d.mts.map → runner-DvFWoz8-.d.mts.map} +1 -1
- package/dist/{runner-CFngB4WZ.mjs → runner-K8XK101B.mjs} +309 -190
- package/dist/runner-K8XK101B.mjs.map +1 -0
- package/dist/runtime.d.mts +11 -11
- package/dist/runtime.mjs +2 -2
- package/dist/{scheduled-publish-BMljtY5G.d.mts → scheduled-publish-Drffrf2a.d.mts} +1 -1
- package/dist/scheduled-publish-Drffrf2a.d.mts.map +1 -0
- package/dist/{schema-BfJ7bIXH.mjs → schema-Blhoxp3P.mjs} +5 -5
- package/dist/{schema-BfJ7bIXH.mjs.map → schema-Blhoxp3P.mjs.map} +1 -1
- package/dist/{search-C7t3PH1J.mjs → search-DZN2HZ-V.mjs} +4 -4
- package/dist/{search-C7t3PH1J.mjs.map → search-DZN2HZ-V.mjs.map} +1 -1
- package/dist/{secrets-BSf9pRRY.mjs → secrets-kp760LlD.mjs} +2 -2
- package/dist/{secrets-BSf9pRRY.mjs.map → secrets-kp760LlD.mjs.map} +1 -1
- package/dist/{sections-Dm0CVX23.mjs → sections-CpF5SaGr.mjs} +3 -3
- package/dist/{sections-Dm0CVX23.mjs.map → sections-CpF5SaGr.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +19 -18
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +1 -1
- package/dist/{seo-BkhuuaaE.mjs → seo-89-53DDs.mjs} +1 -1
- package/dist/{seo-BkhuuaaE.mjs.map → seo-89-53DDs.mjs.map} +1 -1
- package/dist/{seo-Dd3tbY_k.mjs → seo-DXu2UQnC.mjs} +3 -3
- package/dist/{seo-Dd3tbY_k.mjs.map → seo-DXu2UQnC.mjs.map} +1 -1
- package/dist/{service-CTrqp_Jy.mjs → service-DQmiBMzt.mjs} +3 -3
- package/dist/{service-CTrqp_Jy.mjs.map → service-DQmiBMzt.mjs.map} +1 -1
- package/dist/{session-user-B8aLtKAH.mjs → session-user-Cascbax7.mjs} +1 -1
- package/dist/{session-user-B8aLtKAH.mjs.map → session-user-Cascbax7.mjs.map} +1 -1
- package/dist/{settings-CZ7ZP9cW.mjs → settings-rZyHEcNT.mjs} +3 -3
- package/dist/{settings-CZ7ZP9cW.mjs.map → settings-rZyHEcNT.mjs.map} +1 -1
- package/dist/{settings-BX8cWBus.mjs → settings-zhmdKyJQ.mjs} +5 -5
- package/dist/{settings-BX8cWBus.mjs.map → settings-zhmdKyJQ.mjs.map} +1 -1
- package/dist/{setup-complete-gEiySUc-.mjs → setup-complete-Cb3LRyzy.mjs} +1 -1
- package/dist/{setup-complete-gEiySUc-.mjs.map → setup-complete-Cb3LRyzy.mjs.map} +1 -1
- package/dist/{setup-nonce-DzS50zme.mjs → setup-nonce-Z8x0tHf8.mjs} +1 -1
- package/dist/{setup-nonce-DzS50zme.mjs.map → setup-nonce-Z8x0tHf8.mjs.map} +1 -1
- package/dist/{single-flight-cache-Cdfkic3t.mjs → single-flight-cache-BG3B_GhN.mjs} +1 -1
- package/dist/{single-flight-cache-Cdfkic3t.mjs.map → single-flight-cache-BG3B_GhN.mjs.map} +1 -1
- package/dist/{site-url-BLebyON8.mjs → site-url-BBfDTgZB.mjs} +1 -1
- package/dist/{site-url-BLebyON8.mjs.map → site-url-BBfDTgZB.mjs.map} +1 -1
- package/dist/{ssrf-BRKb343l.mjs → ssrf-1g7usGBg.mjs} +1 -1
- package/dist/{ssrf-BRKb343l.mjs.map → ssrf-1g7usGBg.mjs.map} +1 -1
- package/dist/{status-vUK0SA17.mjs → status-CqJQX1QN.mjs} +1 -1
- package/dist/{status-vUK0SA17.mjs.map → status-CqJQX1QN.mjs.map} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{taxonomies-DChKcVxf.mjs → taxonomies-BGBd16Eu.mjs} +4 -4
- package/dist/{taxonomies-DChKcVxf.mjs.map → taxonomies-BGBd16Eu.mjs.map} +1 -1
- package/dist/{taxonomies-ckPjz-6d.mjs → taxonomies-Cnb4F-Pb.mjs} +7 -7
- package/dist/{taxonomies-ckPjz-6d.mjs.map → taxonomies-Cnb4F-Pb.mjs.map} +1 -1
- package/dist/{taxonomy-Cru-he6s.mjs → taxonomy-BxGxZZdu.mjs} +4 -4
- package/dist/{taxonomy-Cru-he6s.mjs.map → taxonomy-BxGxZZdu.mjs.map} +1 -1
- package/dist/{tokens-LeuXF9gG.mjs → tokens-BGT0TUUo.mjs} +1 -1
- package/dist/{tokens-LeuXF9gG.mjs.map → tokens-BGT0TUUo.mjs.map} +1 -1
- package/dist/{transport-Blrl2k_o.d.mts → transport-BMDWHSgZ.d.mts} +1 -1
- package/dist/{transport-Blrl2k_o.d.mts.map → transport-BMDWHSgZ.d.mts.map} +1 -1
- package/dist/{transport-_2nBz7e9.mjs → transport-DPefPMcz.mjs} +1 -1
- package/dist/{transport-_2nBz7e9.mjs.map → transport-DPefPMcz.mjs.map} +1 -1
- package/dist/{trusted-proxy-DZY5WCn2.mjs → trusted-proxy-VTPRiX2s.mjs} +1 -1
- package/dist/{trusted-proxy-DZY5WCn2.mjs.map → trusted-proxy-VTPRiX2s.mjs.map} +1 -1
- package/dist/{types-ETmO_jQr.d.mts → types-BcLUUbbR.d.mts} +2 -2
- package/dist/{types-ETmO_jQr.d.mts.map → types-BcLUUbbR.d.mts.map} +1 -1
- package/dist/{types-BYnDBVwe.d.mts → types-CGbYowGQ.d.mts} +2 -2
- package/dist/{types-BYnDBVwe.d.mts.map → types-CGbYowGQ.d.mts.map} +1 -1
- package/dist/{types-CvuKO5Pn.d.mts → types-CgvhU-hF.d.mts} +1 -1
- package/dist/{types-CvuKO5Pn.d.mts.map → types-CgvhU-hF.d.mts.map} +1 -1
- package/dist/{types-Y09-wtyU.d.mts → types-ClUkdbWb.d.mts} +1 -1
- package/dist/{types-Y09-wtyU.d.mts.map → types-ClUkdbWb.d.mts.map} +1 -1
- package/dist/{types-DU4TSFS5.mjs → types-CuW0zWDA.mjs} +2 -2
- package/dist/{types-DU4TSFS5.mjs.map → types-CuW0zWDA.mjs.map} +1 -1
- package/dist/{types-BkZ8DUEI.d.mts → types-DmHk7vAt.d.mts} +1 -1
- package/dist/{types-BkZ8DUEI.d.mts.map → types-DmHk7vAt.d.mts.map} +1 -1
- package/dist/{types-CQAugunJ.mjs → types-Jo3UYd6b.mjs} +1 -1
- package/dist/{types-CQAugunJ.mjs.map → types-Jo3UYd6b.mjs.map} +1 -1
- package/dist/{types-xIfVRNLp.d.mts → types-_HFLRzTn.d.mts} +22 -1
- package/dist/types-_HFLRzTn.d.mts.map +1 -0
- package/dist/{types-ByChcBgE.d.mts → types-ea9sAPck.d.mts} +1 -1
- package/dist/{types-ByChcBgE.d.mts.map → types-ea9sAPck.d.mts.map} +1 -1
- package/dist/{types-CNlaBFzx.d.mts → types-g_aFIdW0.d.mts} +1 -1
- package/dist/{types-CNlaBFzx.d.mts.map → types-g_aFIdW0.d.mts.map} +1 -1
- package/dist/{types-Dbqff978.d.mts → types-vgEWF18A.d.mts} +19 -1
- package/dist/{types-Dbqff978.d.mts.map → types-vgEWF18A.d.mts.map} +1 -1
- package/dist/{user-DgGbKL9s.mjs → user-BjAOvU3Z.mjs} +3 -3
- package/dist/{user-DgGbKL9s.mjs.map → user-BjAOvU3Z.mjs.map} +1 -1
- package/dist/{utils-B7A57fm9.mjs → utils-BJXElxdw.mjs} +156 -7
- package/dist/utils-BJXElxdw.mjs.map +1 -0
- package/dist/{validate-CRkcYZAR.mjs → validate-CWSnKVIJ.mjs} +2 -2
- package/dist/{validate-CRkcYZAR.mjs.map → validate-CWSnKVIJ.mjs.map} +1 -1
- package/dist/{validate-9ECmtEpJ.d.mts → validate-Z1b86_3B.d.mts} +5 -5
- package/dist/{validate-9ECmtEpJ.d.mts.map → validate-Z1b86_3B.d.mts.map} +1 -1
- package/dist/{validation-sR26SOwD.mjs → validation-c8WjhH8z.mjs} +8 -5
- package/dist/{validation-sR26SOwD.mjs.map → validation-c8WjhH8z.mjs.map} +1 -1
- package/dist/version-CaccU7DM.mjs +7 -0
- package/dist/{version-CrqhKGWn.mjs.map → version-CaccU7DM.mjs.map} +1 -1
- package/dist/{widgets-DRgtn7Cl.mjs → widgets-hWcIicX8.mjs} +3 -3
- package/dist/{widgets-DRgtn7Cl.mjs.map → widgets-hWcIicX8.mjs.map} +1 -1
- package/dist/wxr-taxonomies-0_uxSrmf.d.mts +34 -0
- package/dist/wxr-taxonomies-0_uxSrmf.d.mts.map +1 -0
- package/dist/wxr-taxonomies-BC3OYpvx.mjs +425 -0
- package/dist/wxr-taxonomies-BC3OYpvx.mjs.map +1 -0
- package/dist/{zod-generator-C5JaV--i.mjs → zod-generator-CacrR-i8.mjs} +2 -2
- package/dist/{zod-generator-C5JaV--i.mjs.map → zod-generator-CacrR-i8.mjs.map} +1 -1
- package/package.json +7 -7
- package/src/api/handlers/content.ts +10 -7
- package/src/api/schemas/import.ts +19 -0
- package/src/astro/integration/runtime.ts +3 -6
- package/src/astro/middleware/auth.ts +9 -3
- package/src/astro/middleware/csp.ts +54 -3
- package/src/astro/routes/admin.astro +9 -0
- package/src/astro/routes/api/import/wordpress/rewrite-urls.ts +122 -98
- package/src/astro/routes/api/import/wordpress-plugin/execute.ts +794 -44
- package/src/components/EmDashImage.astro +59 -23
- package/src/components/Image.astro +36 -35
- package/src/database/migrations/049_taxonomies_name_locale_index.ts +42 -0
- package/src/database/migrations/050_media_usage_index_status.ts +142 -0
- package/src/database/migrations/runner.ts +4 -0
- package/src/database/repositories/media-usage.ts +932 -58
- package/src/database/types.ts +22 -0
- package/src/emdash-runtime.ts +123 -3
- package/src/import/comments.ts +159 -0
- package/src/import/index.ts +8 -1
- package/src/import/settings.ts +65 -189
- package/src/import/sources/wordpress-plugin.ts +338 -42
- package/src/import/sources/wxr.ts +4 -1
- package/src/import/types.ts +12 -0
- package/src/import/utils.ts +207 -0
- package/src/import/wxr-taxonomies.ts +39 -0
- package/src/loader.ts +13 -2
- package/src/media/usage/content-fields.ts +119 -0
- package/src/media/usage/content-refresh.ts +524 -0
- package/src/media/usage/content-repair.ts +491 -0
- package/src/media/usage/content-snapshots.ts +435 -0
- package/src/media/usage/extractor.ts +4 -4
- package/src/media/usage/source-key.ts +22 -0
- package/src/menus/index.ts +17 -1
- package/src/object-cache/index.ts +82 -7
- package/src/plugins/context.ts +100 -71
- package/src/schema/registry.ts +240 -154
- package/src/seed/apply.ts +156 -99
- package/dist/api-80kycR9o.mjs.map +0 -1
- package/dist/apply-DSypk6Iu.mjs.map +0 -1
- package/dist/byline-fields-eyJMblSr.mjs.map +0 -1
- package/dist/context-CzUU_WzL.mjs.map +0 -1
- package/dist/import-Bb1T9WJS.mjs.map +0 -1
- package/dist/index-DGIjmUXQ.d.mts.map +0 -1
- package/dist/loader-4K37qA-y.mjs.map +0 -1
- package/dist/object-cache-CHbHv83-.mjs.map +0 -1
- package/dist/registry-DP-iEtdR.mjs.map +0 -1
- package/dist/runner-CFngB4WZ.mjs.map +0 -1
- package/dist/scheduled-publish-BMljtY5G.d.mts.map +0 -1
- package/dist/types-xIfVRNLp.d.mts.map +0 -1
- package/dist/utils-B7A57fm9.mjs.map +0 -1
- package/dist/version-CrqhKGWn.mjs +0 -7
- /package/dist/{api-tokens-B4BQybOp.mjs → api-tokens-DsvvCtdh.mjs} +0 -0
- /package/dist/{ssrf-CcX9zvMK.mjs → ssrf-CmuGgCq3.mjs} +0 -0
- /package/dist/{types-BvbeGEtr.mjs → types-DROWRxYV.mjs} +0 -0
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../../after-B1IIdH3Y.mjs";
|
|
3
|
-
import "../../../../../../../object-cache-
|
|
4
|
-
import "../../../../../../../content-
|
|
3
|
+
import "../../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
|
+
import "../../../../../../../content-DhgEth4k.mjs";
|
|
5
5
|
import "../../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../../types-
|
|
7
|
-
import "../../../../../../../media-
|
|
8
|
-
import "../../../../../../../user-
|
|
9
|
-
import "../../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../../comment-
|
|
6
|
+
import "../../../../../../../types-CuW0zWDA.mjs";
|
|
7
|
+
import "../../../../../../../media-BrXIaMFN.mjs";
|
|
8
|
+
import "../../../../../../../user-BjAOvU3Z.mjs";
|
|
9
|
+
import "../../../../../../../taxonomy-BxGxZZdu.mjs";
|
|
10
|
+
import "../../../../../../../comment-CzeatwBV.mjs";
|
|
11
11
|
import "../../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../../menus-
|
|
13
|
-
import "../../../../../../../redirect-
|
|
12
|
+
import "../../../../../../../menus-Cfivc2Ad.mjs";
|
|
13
|
+
import "../../../../../../../redirect-IyfNirgS.mjs";
|
|
14
14
|
import "../../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../../byline-
|
|
18
|
-
import "../../../../../../../seo-
|
|
19
|
-
import { l as handleMarketplaceGetPlugin } from "../../../../../../../api-
|
|
20
|
-
import "../../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../../
|
|
22
|
-
import "../../../../../../../
|
|
23
|
-
import "../../../../../../../
|
|
24
|
-
import "../../../../../../../
|
|
25
|
-
import "../../../../../../../
|
|
26
|
-
import "../../../../../../../
|
|
27
|
-
import "../../../../../../../
|
|
28
|
-
import "../../../../../../../
|
|
29
|
-
import "../../../../../../../settings-
|
|
30
|
-
import "../../../../../../../
|
|
31
|
-
import "../../../../../../../
|
|
32
|
-
import "../../../../../../../taxonomies-
|
|
33
|
-
import "../../../../../../../
|
|
34
|
-
import "../../../../../../../
|
|
35
|
-
import "../../../../../../../
|
|
36
|
-
import
|
|
37
|
-
import "../../../../../../../
|
|
38
|
-
import "../../../../../../../
|
|
39
|
-
import "../../../../../../../
|
|
40
|
-
import "../../../../../../../
|
|
41
|
-
import
|
|
16
|
+
import "../../../../../../../field-defs-cache-WUI88LX5.mjs";
|
|
17
|
+
import "../../../../../../../byline-Bm8ZgUP9.mjs";
|
|
18
|
+
import "../../../../../../../seo-DXu2UQnC.mjs";
|
|
19
|
+
import { l as handleMarketplaceGetPlugin } from "../../../../../../../api-BFURZn1i.mjs";
|
|
20
|
+
import "../../../../../../../dashboard-EvEKF5en.mjs";
|
|
21
|
+
import "../../../../../../../content-refresh-CA4uKwzH.mjs";
|
|
22
|
+
import "../../../../../../../fts-manager-BbFaF_V8.mjs";
|
|
23
|
+
import "../../../../../../../registry-B65mUtPa.mjs";
|
|
24
|
+
import "../../../../../../../loader-CB6YHeul.mjs";
|
|
25
|
+
import "../../../../../../../schema-Blhoxp3P.mjs";
|
|
26
|
+
import "../../../../../../../zod-generator-CacrR-i8.mjs";
|
|
27
|
+
import "../../../../../../../seo-89-53DDs.mjs";
|
|
28
|
+
import "../../../../../../../sections-CpF5SaGr.mjs";
|
|
29
|
+
import "../../../../../../../settings-zhmdKyJQ.mjs";
|
|
30
|
+
import "../../../../../../../settings-rZyHEcNT.mjs";
|
|
31
|
+
import "../../../../../../../resolve-DR3wqMTy.mjs";
|
|
32
|
+
import "../../../../../../../taxonomies-Cnb4F-Pb.mjs";
|
|
33
|
+
import "../../../../../../../taxonomies-BGBd16Eu.mjs";
|
|
34
|
+
import "../../../../../../../manifest-schema-BHlgZM1W.mjs";
|
|
35
|
+
import "../../../../../../../types-DROWRxYV.mjs";
|
|
36
|
+
import "../../../../../../../ssrf-1g7usGBg.mjs";
|
|
37
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../../error-CkAseSqZ.mjs";
|
|
38
|
+
import "../../../../../../../parse-GmjecGct.mjs";
|
|
39
|
+
import "../../../../../../../redirects-DXEXBAII.mjs";
|
|
40
|
+
import "../../../../../../../byline-fields-2Lp5Hbgf.mjs";
|
|
41
|
+
import "../../../../../../../status-CqJQX1QN.mjs";
|
|
42
|
+
import { n as requirePerm } from "../../../../../../../authorize-Dz88F_Fw.mjs";
|
|
42
43
|
|
|
43
44
|
//#region src/astro/routes/api/admin/plugins/marketplace/[id]/index.ts
|
|
44
45
|
const prerender = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/marketplace/[id]/index.ts"],"sourcesContent":["/**\n * Marketplace plugin detail proxy endpoint\n *\n * GET /_emdash/api/admin/plugins/marketplace/:id - Get plugin details\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handleMarketplaceGetPlugin } from \"#api/index.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ params, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:read\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst result = await handleMarketplaceGetPlugin(emdash.config.marketplace, id);\n\n\treturn unwrapResult(result);\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/marketplace/[id]/index.ts"],"sourcesContent":["/**\n * Marketplace plugin detail proxy endpoint\n *\n * GET /_emdash/api/admin/plugins/marketplace/:id - Get plugin details\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handleMarketplaceGetPlugin } from \"#api/index.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ params, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:read\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst result = await handleMarketplaceGetPlugin(emdash.config.marketplace, id);\n\n\treturn unwrapResult(result);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAa,YAAY;AAEzB,MAAa,MAAgB,OAAO,EAAE,QAAQ,aAAa;CAC1D,MAAM,EAAE,QAAQ,SAAS;CACzB,MAAM,EAAE,OAAO;AAEf,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,eAAe;AAChD,KAAI,OAAQ,QAAO;AAEnB,KAAI,CAAC,GACJ,QAAO,SAAS,mBAAmB,sBAAsB,IAAI;AAK9D,QAAO,aAFQ,MAAM,2BAA2B,OAAO,OAAO,aAAa,GAAG,CAEnD"}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../../after-B1IIdH3Y.mjs";
|
|
3
|
-
import "../../../../../../../object-cache-
|
|
4
|
-
import "../../../../../../../content-
|
|
3
|
+
import "../../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
|
+
import "../../../../../../../content-DhgEth4k.mjs";
|
|
5
5
|
import "../../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../../types-
|
|
7
|
-
import "../../../../../../../media-
|
|
8
|
-
import "../../../../../../../user-
|
|
9
|
-
import "../../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../../comment-
|
|
6
|
+
import "../../../../../../../types-CuW0zWDA.mjs";
|
|
7
|
+
import "../../../../../../../media-BrXIaMFN.mjs";
|
|
8
|
+
import "../../../../../../../user-BjAOvU3Z.mjs";
|
|
9
|
+
import "../../../../../../../taxonomy-BxGxZZdu.mjs";
|
|
10
|
+
import "../../../../../../../comment-CzeatwBV.mjs";
|
|
11
11
|
import "../../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../../menus-
|
|
13
|
-
import "../../../../../../../redirect-
|
|
12
|
+
import "../../../../../../../menus-Cfivc2Ad.mjs";
|
|
13
|
+
import "../../../../../../../redirect-IyfNirgS.mjs";
|
|
14
14
|
import "../../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../../byline-
|
|
18
|
-
import "../../../../../../../seo-
|
|
19
|
-
import { u as handleMarketplaceInstall } from "../../../../../../../api-
|
|
20
|
-
import "../../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../../
|
|
22
|
-
import "../../../../../../../
|
|
23
|
-
import "../../../../../../../
|
|
24
|
-
import "../../../../../../../
|
|
25
|
-
import "../../../../../../../
|
|
26
|
-
import "../../../../../../../
|
|
27
|
-
import "../../../../../../../
|
|
28
|
-
import "../../../../../../../
|
|
29
|
-
import "../../../../../../../settings-
|
|
30
|
-
import "../../../../../../../
|
|
31
|
-
import "../../../../../../../
|
|
32
|
-
import "../../../../../../../taxonomies-
|
|
33
|
-
import "../../../../../../../
|
|
34
|
-
import "../../../../../../../
|
|
35
|
-
import "../../../../../../../
|
|
36
|
-
import
|
|
37
|
-
import { r as
|
|
38
|
-
import "../../../../../../../
|
|
39
|
-
import "../../../../../../../
|
|
40
|
-
import "../../../../../../../
|
|
41
|
-
import
|
|
16
|
+
import "../../../../../../../field-defs-cache-WUI88LX5.mjs";
|
|
17
|
+
import "../../../../../../../byline-Bm8ZgUP9.mjs";
|
|
18
|
+
import "../../../../../../../seo-DXu2UQnC.mjs";
|
|
19
|
+
import { u as handleMarketplaceInstall } from "../../../../../../../api-BFURZn1i.mjs";
|
|
20
|
+
import "../../../../../../../dashboard-EvEKF5en.mjs";
|
|
21
|
+
import "../../../../../../../content-refresh-CA4uKwzH.mjs";
|
|
22
|
+
import "../../../../../../../fts-manager-BbFaF_V8.mjs";
|
|
23
|
+
import "../../../../../../../registry-B65mUtPa.mjs";
|
|
24
|
+
import "../../../../../../../loader-CB6YHeul.mjs";
|
|
25
|
+
import "../../../../../../../schema-Blhoxp3P.mjs";
|
|
26
|
+
import "../../../../../../../zod-generator-CacrR-i8.mjs";
|
|
27
|
+
import "../../../../../../../seo-89-53DDs.mjs";
|
|
28
|
+
import "../../../../../../../sections-CpF5SaGr.mjs";
|
|
29
|
+
import "../../../../../../../settings-zhmdKyJQ.mjs";
|
|
30
|
+
import "../../../../../../../settings-rZyHEcNT.mjs";
|
|
31
|
+
import "../../../../../../../resolve-DR3wqMTy.mjs";
|
|
32
|
+
import "../../../../../../../taxonomies-Cnb4F-Pb.mjs";
|
|
33
|
+
import "../../../../../../../taxonomies-BGBd16Eu.mjs";
|
|
34
|
+
import "../../../../../../../manifest-schema-BHlgZM1W.mjs";
|
|
35
|
+
import "../../../../../../../types-DROWRxYV.mjs";
|
|
36
|
+
import "../../../../../../../ssrf-1g7usGBg.mjs";
|
|
37
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../../error-CkAseSqZ.mjs";
|
|
38
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../../parse-GmjecGct.mjs";
|
|
39
|
+
import "../../../../../../../redirects-DXEXBAII.mjs";
|
|
40
|
+
import "../../../../../../../byline-fields-2Lp5Hbgf.mjs";
|
|
41
|
+
import "../../../../../../../status-CqJQX1QN.mjs";
|
|
42
|
+
import { n as requirePerm } from "../../../../../../../authorize-Dz88F_Fw.mjs";
|
|
42
43
|
import { z } from "zod";
|
|
43
44
|
|
|
44
45
|
//#region src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts"],"sourcesContent":["/**\n * Marketplace plugin install endpoint\n *\n * POST /_emdash/api/admin/plugins/marketplace/:id/install - Install a marketplace plugin\n */\n\nimport type { APIRoute } from \"astro\";\nimport { z } from \"zod\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, handleError, unwrapResult } from \"#api/error.js\";\nimport { handleMarketplaceInstall } from \"#api/index.js\";\nimport { isParseError, parseOptionalBody } from \"#api/parse.js\";\n\nexport const prerender = false;\n\nconst installBodySchema = z.object({\n\tversion: z.string().min(1).optional(),\n});\n\nexport const POST: APIRoute = async ({ params, request, locals }) => {\n\ttry {\n\t\tconst { emdash, user } = locals;\n\t\tconst { id } = params;\n\n\t\tif (!emdash?.db) {\n\t\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t\t}\n\n\t\tconst denied = requirePerm(user, \"plugins:manage\");\n\t\tif (denied) return denied;\n\n\t\tif (!id) {\n\t\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t\t}\n\n\t\tconst body = await parseOptionalBody(request, installBodySchema, {});\n\t\tif (isParseError(body)) return body;\n\n\t\tconst configuredPluginIds = new Set<string>(\n\t\t\temdash.configuredPlugins.map((p: { id: string }) => p.id),\n\t\t);\n\n\t\tconst siteOrigin = new URL(request.url).origin;\n\n\t\tconst result = await handleMarketplaceInstall(\n\t\t\temdash.db,\n\t\t\temdash.storage,\n\t\t\temdash.getSandboxRunner(),\n\t\t\temdash.config.marketplace,\n\t\t\tid,\n\t\t\t{\n\t\t\t\tversion: body.version,\n\t\t\t\tconfiguredPluginIds,\n\t\t\t\tsiteOrigin,\n\t\t\t\tsandboxBypassed: emdash.isSandboxBypassed(),\n\t\t\t},\n\t\t);\n\n\t\tif (!result.success) return unwrapResult(result);\n\n\t\tawait emdash.syncMarketplacePlugins();\n\n\t\treturn unwrapResult(result, 201);\n\t} catch (error) {\n\t\tconsole.error(\"[marketplace-install] Unhandled error:\", error);\n\t\treturn handleError(error, \"Failed to install plugin from marketplace\", \"INSTALL_FAILED\");\n\t}\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"install.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts"],"sourcesContent":["/**\n * Marketplace plugin install endpoint\n *\n * POST /_emdash/api/admin/plugins/marketplace/:id/install - Install a marketplace plugin\n */\n\nimport type { APIRoute } from \"astro\";\nimport { z } from \"zod\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, handleError, unwrapResult } from \"#api/error.js\";\nimport { handleMarketplaceInstall } from \"#api/index.js\";\nimport { isParseError, parseOptionalBody } from \"#api/parse.js\";\n\nexport const prerender = false;\n\nconst installBodySchema = z.object({\n\tversion: z.string().min(1).optional(),\n});\n\nexport const POST: APIRoute = async ({ params, request, locals }) => {\n\ttry {\n\t\tconst { emdash, user } = locals;\n\t\tconst { id } = params;\n\n\t\tif (!emdash?.db) {\n\t\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t\t}\n\n\t\tconst denied = requirePerm(user, \"plugins:manage\");\n\t\tif (denied) return denied;\n\n\t\tif (!id) {\n\t\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t\t}\n\n\t\tconst body = await parseOptionalBody(request, installBodySchema, {});\n\t\tif (isParseError(body)) return body;\n\n\t\tconst configuredPluginIds = new Set<string>(\n\t\t\temdash.configuredPlugins.map((p: { id: string }) => p.id),\n\t\t);\n\n\t\tconst siteOrigin = new URL(request.url).origin;\n\n\t\tconst result = await handleMarketplaceInstall(\n\t\t\temdash.db,\n\t\t\temdash.storage,\n\t\t\temdash.getSandboxRunner(),\n\t\t\temdash.config.marketplace,\n\t\t\tid,\n\t\t\t{\n\t\t\t\tversion: body.version,\n\t\t\t\tconfiguredPluginIds,\n\t\t\t\tsiteOrigin,\n\t\t\t\tsandboxBypassed: emdash.isSandboxBypassed(),\n\t\t\t},\n\t\t);\n\n\t\tif (!result.success) return unwrapResult(result);\n\n\t\tawait emdash.syncMarketplacePlugins();\n\n\t\treturn unwrapResult(result, 201);\n\t} catch (error) {\n\t\tconsole.error(\"[marketplace-install] Unhandled error:\", error);\n\t\treturn handleError(error, \"Failed to install plugin from marketplace\", \"INSTALL_FAILED\");\n\t}\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,YAAY;AAEzB,MAAM,oBAAoB,EAAE,OAAO,EAClC,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU,EACrC,CAAC;AAEF,MAAa,OAAiB,OAAO,EAAE,QAAQ,SAAS,aAAa;AACpE,KAAI;EACH,MAAM,EAAE,QAAQ,SAAS;EACzB,MAAM,EAAE,OAAO;AAEf,MAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;EAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,MAAI,OAAQ,QAAO;AAEnB,MAAI,CAAC,GACJ,QAAO,SAAS,mBAAmB,sBAAsB,IAAI;EAG9D,MAAM,OAAO,MAAM,kBAAkB,SAAS,mBAAmB,EAAE,CAAC;AACpE,MAAI,aAAa,KAAK,CAAE,QAAO;EAE/B,MAAM,sBAAsB,IAAI,IAC/B,OAAO,kBAAkB,KAAK,MAAsB,EAAE,GAAG,CACzD;EAED,MAAM,aAAa,IAAI,IAAI,QAAQ,IAAI,CAAC;EAExC,MAAM,SAAS,MAAM,yBACpB,OAAO,IACP,OAAO,SACP,OAAO,kBAAkB,EACzB,OAAO,OAAO,aACd,IACA;GACC,SAAS,KAAK;GACd;GACA;GACA,iBAAiB,OAAO,mBAAmB;GAC3C,CACD;AAED,MAAI,CAAC,OAAO,QAAS,QAAO,aAAa,OAAO;AAEhD,QAAM,OAAO,wBAAwB;AAErC,SAAO,aAAa,QAAQ,IAAI;UACxB,OAAO;AACf,UAAQ,MAAM,0CAA0C,MAAM;AAC9D,SAAO,YAAY,OAAO,6CAA6C,iBAAiB"}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
|
-
import "../../../../../../object-cache-
|
|
4
|
-
import "../../../../../../content-
|
|
3
|
+
import "../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
|
+
import "../../../../../../content-DhgEth4k.mjs";
|
|
5
5
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../types-
|
|
7
|
-
import "../../../../../../media-
|
|
8
|
-
import "../../../../../../user-
|
|
9
|
-
import "../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../comment-
|
|
6
|
+
import "../../../../../../types-CuW0zWDA.mjs";
|
|
7
|
+
import "../../../../../../media-BrXIaMFN.mjs";
|
|
8
|
+
import "../../../../../../user-BjAOvU3Z.mjs";
|
|
9
|
+
import "../../../../../../taxonomy-BxGxZZdu.mjs";
|
|
10
|
+
import "../../../../../../comment-CzeatwBV.mjs";
|
|
11
11
|
import "../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../menus-
|
|
13
|
-
import "../../../../../../redirect-
|
|
12
|
+
import "../../../../../../menus-Cfivc2Ad.mjs";
|
|
13
|
+
import "../../../../../../redirect-IyfNirgS.mjs";
|
|
14
14
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../byline-
|
|
18
|
-
import "../../../../../../seo-
|
|
19
|
-
import { d as handleMarketplaceSearch } from "../../../../../../api-
|
|
20
|
-
import "../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../
|
|
22
|
-
import "../../../../../../
|
|
23
|
-
import "../../../../../../
|
|
24
|
-
import "../../../../../../
|
|
25
|
-
import "../../../../../../
|
|
26
|
-
import "../../../../../../
|
|
27
|
-
import "../../../../../../
|
|
28
|
-
import "../../../../../../
|
|
29
|
-
import "../../../../../../settings-
|
|
30
|
-
import "../../../../../../
|
|
31
|
-
import "../../../../../../
|
|
32
|
-
import "../../../../../../taxonomies-
|
|
33
|
-
import "../../../../../../
|
|
34
|
-
import "../../../../../../
|
|
35
|
-
import "../../../../../../
|
|
36
|
-
import
|
|
37
|
-
import "../../../../../../
|
|
38
|
-
import "../../../../../../
|
|
39
|
-
import "../../../../../../
|
|
40
|
-
import "../../../../../../
|
|
41
|
-
import
|
|
16
|
+
import "../../../../../../field-defs-cache-WUI88LX5.mjs";
|
|
17
|
+
import "../../../../../../byline-Bm8ZgUP9.mjs";
|
|
18
|
+
import "../../../../../../seo-DXu2UQnC.mjs";
|
|
19
|
+
import { d as handleMarketplaceSearch } from "../../../../../../api-BFURZn1i.mjs";
|
|
20
|
+
import "../../../../../../dashboard-EvEKF5en.mjs";
|
|
21
|
+
import "../../../../../../content-refresh-CA4uKwzH.mjs";
|
|
22
|
+
import "../../../../../../fts-manager-BbFaF_V8.mjs";
|
|
23
|
+
import "../../../../../../registry-B65mUtPa.mjs";
|
|
24
|
+
import "../../../../../../loader-CB6YHeul.mjs";
|
|
25
|
+
import "../../../../../../schema-Blhoxp3P.mjs";
|
|
26
|
+
import "../../../../../../zod-generator-CacrR-i8.mjs";
|
|
27
|
+
import "../../../../../../seo-89-53DDs.mjs";
|
|
28
|
+
import "../../../../../../sections-CpF5SaGr.mjs";
|
|
29
|
+
import "../../../../../../settings-zhmdKyJQ.mjs";
|
|
30
|
+
import "../../../../../../settings-rZyHEcNT.mjs";
|
|
31
|
+
import "../../../../../../resolve-DR3wqMTy.mjs";
|
|
32
|
+
import "../../../../../../taxonomies-Cnb4F-Pb.mjs";
|
|
33
|
+
import "../../../../../../taxonomies-BGBd16Eu.mjs";
|
|
34
|
+
import "../../../../../../manifest-schema-BHlgZM1W.mjs";
|
|
35
|
+
import "../../../../../../types-DROWRxYV.mjs";
|
|
36
|
+
import "../../../../../../ssrf-1g7usGBg.mjs";
|
|
37
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../error-CkAseSqZ.mjs";
|
|
38
|
+
import "../../../../../../parse-GmjecGct.mjs";
|
|
39
|
+
import "../../../../../../redirects-DXEXBAII.mjs";
|
|
40
|
+
import "../../../../../../byline-fields-2Lp5Hbgf.mjs";
|
|
41
|
+
import "../../../../../../status-CqJQX1QN.mjs";
|
|
42
|
+
import { n as requirePerm } from "../../../../../../authorize-Dz88F_Fw.mjs";
|
|
42
43
|
|
|
43
44
|
//#region src/astro/routes/api/admin/plugins/marketplace/index.ts
|
|
44
45
|
const prerender = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/marketplace/index.ts"],"sourcesContent":["/**\n * Marketplace search proxy endpoint\n *\n * GET /_emdash/api/admin/plugins/marketplace - Search marketplace plugins\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handleMarketplaceSearch } from \"#api/index.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ url, locals }) => {\n\tconst { emdash, user } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:read\");\n\tif (denied) return denied;\n\n\tconst query = url.searchParams.get(\"q\") ?? undefined;\n\tconst category = url.searchParams.get(\"category\") ?? undefined;\n\tconst cursor = url.searchParams.get(\"cursor\") ?? undefined;\n\tconst limitParam = url.searchParams.get(\"limit\");\n\tconst limit = limitParam ? Math.min(Math.max(1, parseInt(limitParam, 10) || 50), 100) : undefined;\n\n\tconst result = await handleMarketplaceSearch(emdash.config.marketplace, query, {\n\t\tcategory,\n\t\tcursor,\n\t\tlimit,\n\t});\n\n\treturn unwrapResult(result);\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/marketplace/index.ts"],"sourcesContent":["/**\n * Marketplace search proxy endpoint\n *\n * GET /_emdash/api/admin/plugins/marketplace - Search marketplace plugins\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handleMarketplaceSearch } from \"#api/index.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ url, locals }) => {\n\tconst { emdash, user } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:read\");\n\tif (denied) return denied;\n\n\tconst query = url.searchParams.get(\"q\") ?? undefined;\n\tconst category = url.searchParams.get(\"category\") ?? undefined;\n\tconst cursor = url.searchParams.get(\"cursor\") ?? undefined;\n\tconst limitParam = url.searchParams.get(\"limit\");\n\tconst limit = limitParam ? Math.min(Math.max(1, parseInt(limitParam, 10) || 50), 100) : undefined;\n\n\tconst result = await handleMarketplaceSearch(emdash.config.marketplace, query, {\n\t\tcategory,\n\t\tcursor,\n\t\tlimit,\n\t});\n\n\treturn unwrapResult(result);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAa,YAAY;AAEzB,MAAa,MAAgB,OAAO,EAAE,KAAK,aAAa;CACvD,MAAM,EAAE,QAAQ,SAAS;AAEzB,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,eAAe;AAChD,KAAI,OAAQ,QAAO;CAEnB,MAAM,QAAQ,IAAI,aAAa,IAAI,IAAI,IAAI;CAC3C,MAAM,WAAW,IAAI,aAAa,IAAI,WAAW,IAAI;CACrD,MAAM,SAAS,IAAI,aAAa,IAAI,SAAS,IAAI;CACjD,MAAM,aAAa,IAAI,aAAa,IAAI,QAAQ;CAChD,MAAM,QAAQ,aAAa,KAAK,IAAI,KAAK,IAAI,GAAG,SAAS,YAAY,GAAG,IAAI,GAAG,EAAE,IAAI,GAAG;AAQxF,QAAO,aANQ,MAAM,wBAAwB,OAAO,OAAO,aAAa,OAAO;EAC9E;EACA;EACA;EACA,CAAC,CAEyB"}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../../after-B1IIdH3Y.mjs";
|
|
3
|
-
import "../../../../../../../object-cache-
|
|
4
|
-
import "../../../../../../../content-
|
|
3
|
+
import "../../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
|
+
import "../../../../../../../content-DhgEth4k.mjs";
|
|
5
5
|
import "../../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../../types-
|
|
7
|
-
import "../../../../../../../media-
|
|
8
|
-
import "../../../../../../../user-
|
|
9
|
-
import "../../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../../comment-
|
|
6
|
+
import "../../../../../../../types-CuW0zWDA.mjs";
|
|
7
|
+
import "../../../../../../../media-BrXIaMFN.mjs";
|
|
8
|
+
import "../../../../../../../user-BjAOvU3Z.mjs";
|
|
9
|
+
import "../../../../../../../taxonomy-BxGxZZdu.mjs";
|
|
10
|
+
import "../../../../../../../comment-CzeatwBV.mjs";
|
|
11
11
|
import "../../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../../menus-
|
|
13
|
-
import "../../../../../../../redirect-
|
|
12
|
+
import "../../../../../../../menus-Cfivc2Ad.mjs";
|
|
13
|
+
import "../../../../../../../redirect-IyfNirgS.mjs";
|
|
14
14
|
import "../../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../../byline-
|
|
18
|
-
import "../../../../../../../seo-
|
|
19
|
-
import { r as handleRegistryUninstall } from "../../../../../../../api-
|
|
20
|
-
import "../../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../../
|
|
22
|
-
import "../../../../../../../
|
|
23
|
-
import "../../../../../../../
|
|
24
|
-
import "../../../../../../../
|
|
25
|
-
import "../../../../../../../
|
|
26
|
-
import "../../../../../../../
|
|
27
|
-
import "../../../../../../../
|
|
28
|
-
import "../../../../../../../
|
|
29
|
-
import "../../../../../../../settings-
|
|
30
|
-
import "../../../../../../../
|
|
31
|
-
import "../../../../../../../
|
|
32
|
-
import "../../../../../../../taxonomies-
|
|
33
|
-
import "../../../../../../../
|
|
34
|
-
import "../../../../../../../
|
|
35
|
-
import "../../../../../../../
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import "../../../../../../../
|
|
39
|
-
import "../../../../../../../
|
|
40
|
-
import "../../../../../../../
|
|
41
|
-
import
|
|
16
|
+
import "../../../../../../../field-defs-cache-WUI88LX5.mjs";
|
|
17
|
+
import "../../../../../../../byline-Bm8ZgUP9.mjs";
|
|
18
|
+
import "../../../../../../../seo-DXu2UQnC.mjs";
|
|
19
|
+
import { r as handleRegistryUninstall } from "../../../../../../../api-BFURZn1i.mjs";
|
|
20
|
+
import "../../../../../../../dashboard-EvEKF5en.mjs";
|
|
21
|
+
import "../../../../../../../content-refresh-CA4uKwzH.mjs";
|
|
22
|
+
import "../../../../../../../fts-manager-BbFaF_V8.mjs";
|
|
23
|
+
import "../../../../../../../registry-B65mUtPa.mjs";
|
|
24
|
+
import "../../../../../../../loader-CB6YHeul.mjs";
|
|
25
|
+
import "../../../../../../../schema-Blhoxp3P.mjs";
|
|
26
|
+
import "../../../../../../../zod-generator-CacrR-i8.mjs";
|
|
27
|
+
import "../../../../../../../seo-89-53DDs.mjs";
|
|
28
|
+
import "../../../../../../../sections-CpF5SaGr.mjs";
|
|
29
|
+
import "../../../../../../../settings-zhmdKyJQ.mjs";
|
|
30
|
+
import "../../../../../../../settings-rZyHEcNT.mjs";
|
|
31
|
+
import "../../../../../../../resolve-DR3wqMTy.mjs";
|
|
32
|
+
import "../../../../../../../taxonomies-Cnb4F-Pb.mjs";
|
|
33
|
+
import "../../../../../../../taxonomies-BGBd16Eu.mjs";
|
|
34
|
+
import "../../../../../../../manifest-schema-BHlgZM1W.mjs";
|
|
35
|
+
import "../../../../../../../types-DROWRxYV.mjs";
|
|
36
|
+
import "../../../../../../../ssrf-1g7usGBg.mjs";
|
|
37
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../../error-CkAseSqZ.mjs";
|
|
38
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../../parse-GmjecGct.mjs";
|
|
39
|
+
import "../../../../../../../redirects-DXEXBAII.mjs";
|
|
40
|
+
import "../../../../../../../byline-fields-2Lp5Hbgf.mjs";
|
|
41
|
+
import "../../../../../../../status-CqJQX1QN.mjs";
|
|
42
|
+
import { n as requirePerm } from "../../../../../../../authorize-Dz88F_Fw.mjs";
|
|
42
43
|
import { z } from "zod";
|
|
43
44
|
|
|
44
45
|
//#region src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts"],"sourcesContent":["/**\n * Registry plugin uninstall endpoint (experimental)\n *\n * POST /_emdash/api/admin/plugins/registry/:id/uninstall — Uninstall a\n * registry-source plugin. Mirrors the marketplace uninstall route; the\n * handler refuses non-registry sources, so this won't trash a marketplace\n * or config plugin that shares the id namespace.\n */\n\nimport type { APIRoute } from \"astro\";\nimport { z } from \"zod\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handleRegistryUninstall } from \"#api/index.js\";\nimport { isParseError, parseOptionalBody } from \"#api/parse.js\";\n\nexport const prerender = false;\n\nconst uninstallBodySchema = z.object({\n\tdeleteData: z.boolean().optional(),\n});\n\nexport const POST: APIRoute = async ({ params, request, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:manage\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst body = await parseOptionalBody(request, uninstallBodySchema, {});\n\tif (isParseError(body)) return body;\n\n\tconst result = await handleRegistryUninstall(emdash.db, emdash.storage, id, {\n\t\tdeleteData: body.deleteData ?? false,\n\t});\n\n\tif (!result.success) return unwrapResult(result);\n\n\tawait emdash.syncRegistryPlugins();\n\n\treturn unwrapResult(result);\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uninstall.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts"],"sourcesContent":["/**\n * Registry plugin uninstall endpoint (experimental)\n *\n * POST /_emdash/api/admin/plugins/registry/:id/uninstall — Uninstall a\n * registry-source plugin. Mirrors the marketplace uninstall route; the\n * handler refuses non-registry sources, so this won't trash a marketplace\n * or config plugin that shares the id namespace.\n */\n\nimport type { APIRoute } from \"astro\";\nimport { z } from \"zod\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handleRegistryUninstall } from \"#api/index.js\";\nimport { isParseError, parseOptionalBody } from \"#api/parse.js\";\n\nexport const prerender = false;\n\nconst uninstallBodySchema = z.object({\n\tdeleteData: z.boolean().optional(),\n});\n\nexport const POST: APIRoute = async ({ params, request, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:manage\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst body = await parseOptionalBody(request, uninstallBodySchema, {});\n\tif (isParseError(body)) return body;\n\n\tconst result = await handleRegistryUninstall(emdash.db, emdash.storage, id, {\n\t\tdeleteData: body.deleteData ?? false,\n\t});\n\n\tif (!result.success) return unwrapResult(result);\n\n\tawait emdash.syncRegistryPlugins();\n\n\treturn unwrapResult(result);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAa,YAAY;AAEzB,MAAM,sBAAsB,EAAE,OAAO,EACpC,YAAY,EAAE,SAAS,CAAC,UAAU,EAClC,CAAC;AAEF,MAAa,OAAiB,OAAO,EAAE,QAAQ,SAAS,aAAa;CACpE,MAAM,EAAE,QAAQ,SAAS;CACzB,MAAM,EAAE,OAAO;AAEf,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,KAAI,OAAQ,QAAO;AAEnB,KAAI,CAAC,GACJ,QAAO,SAAS,mBAAmB,sBAAsB,IAAI;CAG9D,MAAM,OAAO,MAAM,kBAAkB,SAAS,qBAAqB,EAAE,CAAC;AACtE,KAAI,aAAa,KAAK,CAAE,QAAO;CAE/B,MAAM,SAAS,MAAM,wBAAwB,OAAO,IAAI,OAAO,SAAS,IAAI,EAC3E,YAAY,KAAK,cAAc,OAC/B,CAAC;AAEF,KAAI,CAAC,OAAO,QAAS,QAAO,aAAa,OAAO;AAEhD,OAAM,OAAO,qBAAqB;AAElC,QAAO,aAAa,OAAO"}
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../../after-B1IIdH3Y.mjs";
|
|
3
|
-
import "../../../../../../../object-cache-
|
|
4
|
-
import "../../../../../../../content-
|
|
3
|
+
import "../../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
|
+
import "../../../../../../../content-DhgEth4k.mjs";
|
|
5
5
|
import "../../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../../types-
|
|
7
|
-
import "../../../../../../../media-
|
|
8
|
-
import "../../../../../../../user-
|
|
9
|
-
import "../../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../../comment-
|
|
6
|
+
import "../../../../../../../types-CuW0zWDA.mjs";
|
|
7
|
+
import "../../../../../../../media-BrXIaMFN.mjs";
|
|
8
|
+
import "../../../../../../../user-BjAOvU3Z.mjs";
|
|
9
|
+
import "../../../../../../../taxonomy-BxGxZZdu.mjs";
|
|
10
|
+
import "../../../../../../../comment-CzeatwBV.mjs";
|
|
11
11
|
import "../../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../../menus-
|
|
13
|
-
import "../../../../../../../redirect-
|
|
12
|
+
import "../../../../../../../menus-Cfivc2Ad.mjs";
|
|
13
|
+
import "../../../../../../../redirect-IyfNirgS.mjs";
|
|
14
14
|
import "../../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../../byline-
|
|
18
|
-
import "../../../../../../../seo-
|
|
19
|
-
import { i as handleRegistryUpdate } from "../../../../../../../api-
|
|
20
|
-
import "../../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../../
|
|
22
|
-
import "../../../../../../../
|
|
23
|
-
import "../../../../../../../
|
|
24
|
-
import "../../../../../../../
|
|
25
|
-
import "../../../../../../../
|
|
26
|
-
import "../../../../../../../
|
|
27
|
-
import "../../../../../../../
|
|
28
|
-
import "../../../../../../../
|
|
29
|
-
import "../../../../../../../settings-
|
|
30
|
-
import "../../../../../../../
|
|
31
|
-
import "../../../../../../../
|
|
32
|
-
import "../../../../../../../taxonomies-
|
|
33
|
-
import "../../../../../../../
|
|
34
|
-
import "../../../../../../../
|
|
35
|
-
import "../../../../../../../
|
|
36
|
-
import
|
|
37
|
-
import { r as
|
|
38
|
-
import "../../../../../../../
|
|
39
|
-
import "../../../../../../../
|
|
40
|
-
import "../../../../../../../
|
|
41
|
-
import
|
|
42
|
-
import { n as
|
|
16
|
+
import "../../../../../../../field-defs-cache-WUI88LX5.mjs";
|
|
17
|
+
import "../../../../../../../byline-Bm8ZgUP9.mjs";
|
|
18
|
+
import "../../../../../../../seo-DXu2UQnC.mjs";
|
|
19
|
+
import { i as handleRegistryUpdate } from "../../../../../../../api-BFURZn1i.mjs";
|
|
20
|
+
import "../../../../../../../dashboard-EvEKF5en.mjs";
|
|
21
|
+
import "../../../../../../../content-refresh-CA4uKwzH.mjs";
|
|
22
|
+
import "../../../../../../../fts-manager-BbFaF_V8.mjs";
|
|
23
|
+
import "../../../../../../../registry-B65mUtPa.mjs";
|
|
24
|
+
import "../../../../../../../loader-CB6YHeul.mjs";
|
|
25
|
+
import "../../../../../../../schema-Blhoxp3P.mjs";
|
|
26
|
+
import "../../../../../../../zod-generator-CacrR-i8.mjs";
|
|
27
|
+
import "../../../../../../../seo-89-53DDs.mjs";
|
|
28
|
+
import "../../../../../../../sections-CpF5SaGr.mjs";
|
|
29
|
+
import "../../../../../../../settings-zhmdKyJQ.mjs";
|
|
30
|
+
import "../../../../../../../settings-rZyHEcNT.mjs";
|
|
31
|
+
import "../../../../../../../resolve-DR3wqMTy.mjs";
|
|
32
|
+
import "../../../../../../../taxonomies-Cnb4F-Pb.mjs";
|
|
33
|
+
import "../../../../../../../taxonomies-BGBd16Eu.mjs";
|
|
34
|
+
import "../../../../../../../manifest-schema-BHlgZM1W.mjs";
|
|
35
|
+
import "../../../../../../../types-DROWRxYV.mjs";
|
|
36
|
+
import "../../../../../../../ssrf-1g7usGBg.mjs";
|
|
37
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../../error-CkAseSqZ.mjs";
|
|
38
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../../parse-GmjecGct.mjs";
|
|
39
|
+
import "../../../../../../../redirects-DXEXBAII.mjs";
|
|
40
|
+
import "../../../../../../../byline-fields-2Lp5Hbgf.mjs";
|
|
41
|
+
import "../../../../../../../status-CqJQX1QN.mjs";
|
|
42
|
+
import { n as VERSION } from "../../../../../../../version-CaccU7DM.mjs";
|
|
43
|
+
import { n as requirePerm } from "../../../../../../../authorize-Dz88F_Fw.mjs";
|
|
43
44
|
import { z } from "zod";
|
|
44
45
|
import { hostEnvFromVersions } from "@emdash-cms/registry-client/env";
|
|
45
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/registry/[id]/update.ts"],"sourcesContent":["/**\n * Registry plugin update endpoint (experimental)\n *\n * POST /_emdash/api/admin/plugins/registry/:id/update — Update a\n * registry-source plugin to a newer release. Mirrors the marketplace\n * update route's escalation gates: `CAPABILITY_ESCALATION` if the new\n * version declares new capabilities and `confirmCapabilityChanges` is\n * absent, and `ROUTE_VISIBILITY_ESCALATION` if it newly exposes public\n * routes and `confirmRouteVisibilityChanges` is absent.\n */\n\nimport { hostEnvFromVersions } from \"@emdash-cms/registry-client/env\";\nimport type { APIRoute } from \"astro\";\nimport { z } from \"zod\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, handleError, unwrapResult } from \"#api/error.js\";\nimport { handleRegistryUpdate } from \"#api/index.js\";\nimport { isParseError, parseOptionalBody } from \"#api/parse.js\";\n\nimport { VERSION } from \"../../../../../../../version.js\";\n\nexport const prerender = false;\n\nconst updateBodySchema = z.object({\n\t/** Optional explicit target version. Defaults to the aggregator's latest. */\n\tversion: z.string().min(1).max(64).optional(),\n\t/**\n\t * Set by the admin's capability re-consent dialog when the new version\n\t * declares capabilities the installed version did not. Without this,\n\t * the handler returns `CAPABILITY_ESCALATION` carrying the diff.\n\t */\n\tconfirmCapabilityChanges: z.boolean().optional(),\n\t/**\n\t * Set by the admin's route-visibility re-consent dialog when the new\n\t * version newly exposes a public (unauthenticated) route.\n\t */\n\tconfirmRouteVisibilityChanges: z.boolean().optional(),\n});\n\nexport const POST: APIRoute = async ({ params, request, locals }) => {\n\ttry {\n\t\tconst { emdash, user } = locals;\n\t\tconst { id } = params;\n\n\t\tif (!emdash?.db) {\n\t\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t\t}\n\n\t\tconst denied = requirePerm(user, \"plugins:manage\");\n\t\tif (denied) return denied;\n\n\t\tif (!id) {\n\t\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t\t}\n\n\t\tconst body = await parseOptionalBody(request, updateBodySchema, {});\n\t\tif (isParseError(body)) return body;\n\n\t\tconst result = await handleRegistryUpdate(\n\t\t\temdash.db,\n\t\t\temdash.storage,\n\t\t\temdash.getSandboxRunner(),\n\t\t\temdash.config.experimental?.registry,\n\t\t\tid,\n\t\t\t{\n\t\t\t\tversion: body.version,\n\t\t\t\tconfirmCapabilityChanges: body.confirmCapabilityChanges,\n\t\t\t\tconfirmRouteVisibilityChanges: body.confirmRouteVisibilityChanges,\n\t\t\t\thostEnv: hostEnvFromVersions(VERSION, emdash.config.astroVersion),\n\t\t\t},\n\t\t);\n\n\t\tif (!result.success) return unwrapResult(result);\n\n\t\tawait emdash.syncRegistryPlugins();\n\n\t\treturn unwrapResult(result);\n\t} catch (error) {\n\t\tconsole.error(\"[registry-update] Unhandled error:\", error);\n\t\treturn handleError(error, \"Failed to update plugin from registry\", \"UPDATE_FAILED\");\n\t}\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.mjs","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/registry/[id]/update.ts"],"sourcesContent":["/**\n * Registry plugin update endpoint (experimental)\n *\n * POST /_emdash/api/admin/plugins/registry/:id/update — Update a\n * registry-source plugin to a newer release. Mirrors the marketplace\n * update route's escalation gates: `CAPABILITY_ESCALATION` if the new\n * version declares new capabilities and `confirmCapabilityChanges` is\n * absent, and `ROUTE_VISIBILITY_ESCALATION` if it newly exposes public\n * routes and `confirmRouteVisibilityChanges` is absent.\n */\n\nimport { hostEnvFromVersions } from \"@emdash-cms/registry-client/env\";\nimport type { APIRoute } from \"astro\";\nimport { z } from \"zod\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, handleError, unwrapResult } from \"#api/error.js\";\nimport { handleRegistryUpdate } from \"#api/index.js\";\nimport { isParseError, parseOptionalBody } from \"#api/parse.js\";\n\nimport { VERSION } from \"../../../../../../../version.js\";\n\nexport const prerender = false;\n\nconst updateBodySchema = z.object({\n\t/** Optional explicit target version. Defaults to the aggregator's latest. */\n\tversion: z.string().min(1).max(64).optional(),\n\t/**\n\t * Set by the admin's capability re-consent dialog when the new version\n\t * declares capabilities the installed version did not. Without this,\n\t * the handler returns `CAPABILITY_ESCALATION` carrying the diff.\n\t */\n\tconfirmCapabilityChanges: z.boolean().optional(),\n\t/**\n\t * Set by the admin's route-visibility re-consent dialog when the new\n\t * version newly exposes a public (unauthenticated) route.\n\t */\n\tconfirmRouteVisibilityChanges: z.boolean().optional(),\n});\n\nexport const POST: APIRoute = async ({ params, request, locals }) => {\n\ttry {\n\t\tconst { emdash, user } = locals;\n\t\tconst { id } = params;\n\n\t\tif (!emdash?.db) {\n\t\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t\t}\n\n\t\tconst denied = requirePerm(user, \"plugins:manage\");\n\t\tif (denied) return denied;\n\n\t\tif (!id) {\n\t\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t\t}\n\n\t\tconst body = await parseOptionalBody(request, updateBodySchema, {});\n\t\tif (isParseError(body)) return body;\n\n\t\tconst result = await handleRegistryUpdate(\n\t\t\temdash.db,\n\t\t\temdash.storage,\n\t\t\temdash.getSandboxRunner(),\n\t\t\temdash.config.experimental?.registry,\n\t\t\tid,\n\t\t\t{\n\t\t\t\tversion: body.version,\n\t\t\t\tconfirmCapabilityChanges: body.confirmCapabilityChanges,\n\t\t\t\tconfirmRouteVisibilityChanges: body.confirmRouteVisibilityChanges,\n\t\t\t\thostEnv: hostEnvFromVersions(VERSION, emdash.config.astroVersion),\n\t\t\t},\n\t\t);\n\n\t\tif (!result.success) return unwrapResult(result);\n\n\t\tawait emdash.syncRegistryPlugins();\n\n\t\treturn unwrapResult(result);\n\t} catch (error) {\n\t\tconsole.error(\"[registry-update] Unhandled error:\", error);\n\t\treturn handleError(error, \"Failed to update plugin from registry\", \"UPDATE_FAILED\");\n\t}\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,YAAY;AAEzB,MAAM,mBAAmB,EAAE,OAAO;CAEjC,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,GAAG,CAAC,UAAU;CAM7C,0BAA0B,EAAE,SAAS,CAAC,UAAU;CAKhD,+BAA+B,EAAE,SAAS,CAAC,UAAU;CACrD,CAAC;AAEF,MAAa,OAAiB,OAAO,EAAE,QAAQ,SAAS,aAAa;AACpE,KAAI;EACH,MAAM,EAAE,QAAQ,SAAS;EACzB,MAAM,EAAE,OAAO;AAEf,MAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;EAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,MAAI,OAAQ,QAAO;AAEnB,MAAI,CAAC,GACJ,QAAO,SAAS,mBAAmB,sBAAsB,IAAI;EAG9D,MAAM,OAAO,MAAM,kBAAkB,SAAS,kBAAkB,EAAE,CAAC;AACnE,MAAI,aAAa,KAAK,CAAE,QAAO;EAE/B,MAAM,SAAS,MAAM,qBACpB,OAAO,IACP,OAAO,SACP,OAAO,kBAAkB,EACzB,OAAO,OAAO,cAAc,UAC5B,IACA;GACC,SAAS,KAAK;GACd,0BAA0B,KAAK;GAC/B,+BAA+B,KAAK;GACpC,SAAS,oBAAoB,SAAS,OAAO,OAAO,aAAa;GACjE,CACD;AAED,MAAI,CAAC,OAAO,QAAS,QAAO,aAAa,OAAO;AAEhD,QAAM,OAAO,qBAAqB;AAElC,SAAO,aAAa,OAAO;UACnB,OAAO;AACf,UAAQ,MAAM,sCAAsC,MAAM;AAC1D,SAAO,YAAY,OAAO,yCAAyC,gBAAgB"}
|