emdash 0.13.0 → 0.15.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-9DybjTO6.d.mts → adapters-C4yd_UJR.d.mts} +1 -1
- package/dist/{adapters-9DybjTO6.d.mts.map → adapters-C4yd_UJR.d.mts.map} +1 -1
- package/dist/{allowed-origins-CDdG-4Gd.mjs → allowed-origins-D0fFk9a6.mjs} +2 -2
- package/dist/{allowed-origins-CDdG-4Gd.mjs.map → allowed-origins-D0fFk9a6.mjs.map} +1 -1
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +15 -15
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-ayIQ7rIe.mjs → api-CLwG_3dh.mjs} +523 -59
- package/dist/api-CLwG_3dh.mjs.map +1 -0
- package/dist/{api-tokens-eYymBhIT.mjs → api-tokens-ucpcNXDt.mjs} +2 -2
- package/dist/{api-tokens-eYymBhIT.mjs.map → api-tokens-ucpcNXDt.mjs.map} +1 -1
- package/dist/{apply-v4DBgjPw.mjs → apply-wJhM_bwU.mjs} +17 -17
- package/dist/{apply-v4DBgjPw.mjs.map → apply-wJhM_bwU.mjs.map} +1 -1
- package/dist/astro/index.d.mts +10 -10
- package/dist/astro/index.mjs +21 -5
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/request-context.mjs.map +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +353 -71
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +5 -5
- package/dist/astro/routes/api/admin/bylines/_id_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +14 -17
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts +9 -0
- package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +70 -0
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -0
- package/dist/astro/routes/api/admin/bylines/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +25 -16
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +8 -8
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +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 +32 -31
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +32 -31
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +31 -30
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +31 -30
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +33 -31
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +31 -30
- 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 +31 -30
- 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 +33 -31
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +31 -30
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.d.mts +8 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +59 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.d.mts +8 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +72 -0
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -0
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +31 -30
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +44 -31
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +31 -30
- 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 +31 -30
- 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 +5 -5
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +8 -8
- package/dist/astro/routes/api/auth/logout.mjs +3 -3
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/me.mjs +5 -5
- 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_/callback.mjs.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +8 -8
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/index.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/dev/emails.mjs +3 -3
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +9 -8
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/prepare.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +7 -7
- 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 +10 -10
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +11 -11
- 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 +29 -29
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
- package/dist/astro/routes/api/media/providers/index.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +7 -7
- package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
- package/dist/astro/routes/api/media.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/items.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/translations.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_.mjs +7 -7
- package/dist/astro/routes/api/menus/index.mjs +7 -7
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +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 +3 -3
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +8 -8
- package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/404s/summary.mjs +8 -8
- package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +9 -9
- package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/index.mjs +9 -9
- package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
- 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 +31 -30
- 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 +31 -30
- 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 +31 -30
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +31 -30
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +31 -30
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +31 -30
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +31 -30
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +9 -9
- package/dist/astro/routes/api/search/index.mjs +8 -8
- package/dist/astro/routes/api/search/rebuild.mjs +9 -9
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/sections/index.mjs +8 -8
- package/dist/astro/routes/api/sections/index.mjs.map +1 -1
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +10 -10
- package/dist/astro/routes/api/setup/admin-verify.mjs +10 -10
- package/dist/astro/routes/api/setup/admin.mjs +9 -9
- package/dist/astro/routes/api/setup/dev-bypass.mjs +22 -22
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +22 -22
- package/dist/astro/routes/api/setup/status.mjs +4 -4
- package/dist/astro/routes/api/snapshot.mjs +5 -5
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +11 -10
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +11 -10
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +11 -10
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.mjs +11 -10
- package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
- 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 +6 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +8 -8
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +8 -8
- package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/index.mjs +8 -8
- package/dist/astro/routes/api/widget-components.mjs +3 -3
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +4 -4
- package/dist/astro/routes/sitemap.xml.mjs +5 -5
- package/dist/astro/types.d.mts +13 -12
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-BlyCH-96.mjs → authorize-Bkwe8kuL.mjs} +2 -2
- package/dist/{authorize-BlyCH-96.mjs.map → authorize-Bkwe8kuL.mjs.map} +1 -1
- package/dist/byline-CTaWkMh5.mjs +404 -0
- package/dist/byline-CTaWkMh5.mjs.map +1 -0
- package/dist/bylines-BYHWU3T7.mjs +174 -0
- package/dist/bylines-BYHWU3T7.mjs.map +1 -0
- package/dist/{bylines-C6eYUWlZ.d.mts → bylines-DtDRNF1n.d.mts} +63 -18
- package/dist/bylines-DtDRNF1n.d.mts.map +1 -0
- package/dist/bylines-H0Xh5TMy.mjs +118 -0
- package/dist/bylines-H0Xh5TMy.mjs.map +1 -0
- package/dist/{cache-CXCpjWiL.mjs → cache-CNk1jIxp.mjs} +2 -2
- package/dist/{cache-CXCpjWiL.mjs.map → cache-CNk1jIxp.mjs.map} +1 -1
- package/dist/{challenge-store-CJ0OOHOr.mjs → challenge-store-Dng1SxKT.mjs} +1 -1
- package/dist/{challenge-store-CJ0OOHOr.mjs.map → challenge-store-Dng1SxKT.mjs.map} +1 -1
- package/dist/{chunks-DyGtu1Bv.mjs → chunks-BkfVdD-3.mjs} +2 -2
- package/dist/{chunks-DyGtu1Bv.mjs.map → chunks-BkfVdD-3.mjs.map} +1 -1
- package/dist/cli/index.mjs +21 -29
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/client/index.mjs.map +1 -1
- package/dist/{comment-Dd9MI82-.mjs → comment-_yzlBYPx.mjs} +2 -2
- package/dist/{comment-Dd9MI82-.mjs.map → comment-_yzlBYPx.mjs.map} +1 -1
- package/dist/{comments-koGI0FrK.mjs → comments-DxID-rsd.mjs} +3 -3
- package/dist/{comments-koGI0FrK.mjs.map → comments-DxID-rsd.mjs.map} +1 -1
- package/dist/{components-mZem7pbe.mjs → components-Dx3DM0gg.mjs} +1 -1
- package/dist/{components-mZem7pbe.mjs.map → components-Dx3DM0gg.mjs.map} +1 -1
- package/dist/config-CVssduLe.mjs.map +1 -1
- package/dist/{content-D6YG26WG.mjs → content-C0ooIs-f.mjs} +3 -3
- package/dist/{content-D6YG26WG.mjs.map → content-C0ooIs-f.mjs.map} +1 -1
- package/dist/{context-qF8d3IPR.mjs → context-sAnCaUIR.mjs} +10 -10
- package/dist/context-sAnCaUIR.mjs.map +1 -0
- package/dist/{cron-H8eJ46dv.mjs → cron-Bd3b3iuj.mjs} +1 -1
- package/dist/{cron-H8eJ46dv.mjs.map → cron-Bd3b3iuj.mjs.map} +1 -1
- package/dist/{dashboard-BmWSIUwY.mjs → dashboard-Cqw3ay2X.mjs} +4 -4
- package/dist/{dashboard-BmWSIUwY.mjs.map → dashboard-Cqw3ay2X.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-Dbs22Gg4.mjs → default-BvTAYCzx.mjs} +1 -1
- package/dist/{default-Dbs22Gg4.mjs.map → default-BvTAYCzx.mjs.map} +1 -1
- package/dist/{device-flow-BqJRxa0Q.mjs → device-flow-B9oG8PwP.mjs} +4 -4
- package/dist/{device-flow-BqJRxa0Q.mjs.map → device-flow-B9oG8PwP.mjs.map} +1 -1
- package/dist/{email-console-Dmp5Q-P2.mjs → email-console-CubRll9q.mjs} +1 -1
- package/dist/email-console-CubRll9q.mjs.map +1 -0
- package/dist/{error-tSQWIl5U.mjs → error-CPh_8eLq.mjs} +16 -8
- package/dist/error-CPh_8eLq.mjs.map +1 -0
- package/dist/{escape-B8bdIryO.mjs → escape-Cg6kMELH.mjs} +1 -1
- package/dist/{escape-B8bdIryO.mjs.map → escape-Cg6kMELH.mjs.map} +1 -1
- package/dist/{fts-manager-B633C-kQ.mjs → fts-manager-Mnrtn-r2.mjs} +2 -2
- package/dist/{fts-manager-B633C-kQ.mjs.map → fts-manager-Mnrtn-r2.mjs.map} +1 -1
- package/dist/{import-CNfLOgDE.mjs → import-DG80rC_I.mjs} +3 -3
- package/dist/{import-CNfLOgDE.mjs.map → import-DG80rC_I.mjs.map} +1 -1
- package/dist/{index-UmOMt9T-.d.mts → index-Bv1Wf1zB.d.mts} +235 -18
- package/dist/index-Bv1Wf1zB.d.mts.map +1 -0
- package/dist/{index-D2gvztOP.d.mts → index-CC42STEm.d.mts} +3 -3
- package/dist/{index-D2gvztOP.d.mts.map → index-CC42STEm.d.mts.map} +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +50 -49
- package/dist/{load-QzYRpVN3.mjs → load-DmXNVhst.mjs} +2 -2
- package/dist/{load-QzYRpVN3.mjs.map → load-DmXNVhst.mjs.map} +1 -1
- package/dist/{loader-Cs6-Bqe6.mjs → loader-Chm5h7Gr.mjs} +3 -3
- package/dist/loader-Chm5h7Gr.mjs.map +1 -0
- package/dist/{manifest-schema-HCtSh4Jq.mjs → manifest-schema-Czqf0TLu.mjs} +1 -1
- package/dist/{manifest-schema-HCtSh4Jq.mjs.map → manifest-schema-Czqf0TLu.mjs.map} +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +11 -11
- package/dist/media/local-runtime.mjs +4 -4
- package/dist/{media-allowlist-B8EX01DH.mjs → media-allowlist-BNloC69x.mjs} +1 -1
- package/dist/{media-allowlist-B8EX01DH.mjs.map → media-allowlist-BNloC69x.mjs.map} +1 -1
- package/dist/{media-Dg7he9uK.mjs → media-oqRcNiQf.mjs} +2 -2
- package/dist/media-oqRcNiQf.mjs.map +1 -0
- package/dist/{menus-DOzIecHi.mjs → menus-Bjf5R1Qq.mjs} +2 -2
- package/dist/menus-Bjf5R1Qq.mjs.map +1 -0
- package/dist/{menus-X4Z-eBA1.mjs → menus-C75SSmRy.mjs} +30 -11
- package/dist/menus-C75SSmRy.mjs.map +1 -0
- package/dist/mime-KV5TqkMN.mjs.map +1 -1
- package/dist/{mode-DPRPvJYm.mjs → mode-CaaiebZI.mjs} +1 -1
- package/dist/{mode-DPRPvJYm.mjs.map → mode-CaaiebZI.mjs.map} +1 -1
- package/dist/{oauth-authorization-62GmpGIH.mjs → oauth-authorization-CTMeVfvj.mjs} +4 -4
- package/dist/{oauth-authorization-62GmpGIH.mjs.map → oauth-authorization-CTMeVfvj.mjs.map} +1 -1
- package/dist/{oauth-clients-D_B0_-Bz.mjs → oauth-clients-eJCbkVSG.mjs} +1 -1
- package/dist/oauth-clients-eJCbkVSG.mjs.map +1 -0
- package/dist/{oauth-state-store-DpsZViTu.mjs → oauth-state-store-vOSdOeGe.mjs} +1 -1
- package/dist/{oauth-state-store-DpsZViTu.mjs.map → oauth-state-store-vOSdOeGe.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-meyS2oB1.mjs → oauth-user-lookup-3JwsVw6N.mjs} +1 -1
- package/dist/{oauth-user-lookup-meyS2oB1.mjs.map → oauth-user-lookup-3JwsVw6N.mjs.map} +1 -1
- package/dist/options-BL4X94qY.mjs.map +1 -1
- package/dist/{options-Cq64Wx0O.d.mts → options-DhV-gwJb.d.mts} +4 -4
- package/dist/options-DhV-gwJb.d.mts.map +1 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/{parse-BFTPon-J.mjs → parse-3-caTKgt.mjs} +2 -2
- package/dist/{parse-BFTPon-J.mjs.map → parse-3-caTKgt.mjs.map} +1 -1
- package/dist/{passkey-config-Cg86_ISa.mjs → passkey-config-BloQOT3y.mjs} +1 -1
- package/dist/{passkey-config-Cg86_ISa.mjs.map → passkey-config-BloQOT3y.mjs.map} +1 -1
- package/dist/{placeholder-D3cFCU9y.d.mts → placeholder-KCkkCtgQ.d.mts} +1 -1
- package/dist/{placeholder-D3cFCU9y.d.mts.map → placeholder-KCkkCtgQ.d.mts.map} +1 -1
- package/dist/plugin-types.d.mts +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.mjs +26 -15
- package/dist/plugins/adapt-sandbox-entry.mjs.map +1 -1
- package/dist/{preview-C1LOEbWZ.mjs → preview-D4z0WONU.mjs} +2 -2
- package/dist/{preview-C1LOEbWZ.mjs.map → preview-D4z0WONU.mjs.map} +1 -1
- package/dist/{public-url-CseXl9Fv.mjs → public-url-CUWWFME2.mjs} +1 -1
- package/dist/{public-url-CseXl9Fv.mjs.map → public-url-CUWWFME2.mjs.map} +1 -1
- package/dist/{query-axZmO6Tn.mjs → query-BJn8TOPk.mjs} +16 -13
- package/dist/{query-axZmO6Tn.mjs.map → query-BJn8TOPk.mjs.map} +1 -1
- package/dist/{rate-limit-t5CVjCO6.mjs → rate-limit-D_-gAeJ0.mjs} +2 -2
- package/dist/{rate-limit-t5CVjCO6.mjs.map → rate-limit-D_-gAeJ0.mjs.map} +1 -1
- package/dist/{redirect-DGRsLO2I.mjs → redirect-BINiRYq4.mjs} +1 -1
- package/dist/{redirect-DGRsLO2I.mjs.map → redirect-BINiRYq4.mjs.map} +1 -1
- package/dist/{redirect-DkaDxq8e.mjs → redirect-CNv4mHX2.mjs} +2 -2
- package/dist/{redirect-DkaDxq8e.mjs.map → redirect-CNv4mHX2.mjs.map} +1 -1
- package/dist/{redirects-D1fdd68T.mjs → redirects-B-CUZ1Xh.mjs} +3 -3
- package/dist/{redirects-D1fdd68T.mjs.map → redirects-B-CUZ1Xh.mjs.map} +1 -1
- package/dist/{redirects-Dmj6KRU3.mjs → redirects-COMLwsV5.mjs} +19 -5
- package/dist/redirects-COMLwsV5.mjs.map +1 -0
- package/dist/{registry-BnCeHYsf.mjs → registry-DqrAQDXH.mjs} +4 -4
- package/dist/{registry-BnCeHYsf.mjs.map → registry-DqrAQDXH.mjs.map} +1 -1
- package/dist/request-cache-dzCt8TZB.mjs.map +1 -1
- package/dist/request-context.mjs.map +1 -1
- package/dist/{request-meta-CLCwSQOS.mjs → request-meta-C_Cjii-T.mjs} +2 -2
- package/dist/{request-meta-CLCwSQOS.mjs.map → request-meta-C_Cjii-T.mjs.map} +1 -1
- package/dist/resolve-Cj98DuqN.mjs +39 -0
- package/dist/resolve-Cj98DuqN.mjs.map +1 -0
- package/dist/{runner-DdnQIwz_.mjs → runner-CGlojznK.mjs} +472 -165
- package/dist/runner-CGlojznK.mjs.map +1 -0
- package/dist/{runner-DcfZewkO.d.mts → runner-CNHRo1mT.d.mts} +2 -2
- package/dist/{runner-DcfZewkO.d.mts.map → runner-CNHRo1mT.d.mts.map} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +2 -2
- package/dist/{schema-BmqagCwG.mjs → schema-Djdlfi5G.mjs} +4 -4
- package/dist/{schema-BmqagCwG.mjs.map → schema-Djdlfi5G.mjs.map} +1 -1
- package/dist/{search-CPrvO5u8.mjs → search-By-NN3da.mjs} +4 -4
- package/dist/{search-CPrvO5u8.mjs.map → search-By-NN3da.mjs.map} +1 -1
- package/dist/{secrets-6pgZyq0K.mjs → secrets-rPdhEBkD.mjs} +1 -1
- package/dist/{secrets-6pgZyq0K.mjs.map → secrets-rPdhEBkD.mjs.map} +1 -1
- package/dist/{sections-Cm-zb-gZ.mjs → sections-DcBIlOq1.mjs} +3 -3
- package/dist/{sections-Cm-zb-gZ.mjs.map → sections-DcBIlOq1.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +16 -16
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-DRq9-EPP.mjs → seo-bjDoq9Eg.mjs} +2 -2
- package/dist/{seo-DRq9-EPP.mjs.map → seo-bjDoq9Eg.mjs.map} +1 -1
- package/dist/{service-vByySp-2.mjs → service-BuuTdGAT.mjs} +3 -3
- package/dist/{service-vByySp-2.mjs.map → service-BuuTdGAT.mjs.map} +1 -1
- package/dist/{settings-CBBj7HUd.mjs → settings-CJnKiWuR.mjs} +3 -3
- package/dist/{settings-CBBj7HUd.mjs.map → settings-CJnKiWuR.mjs.map} +1 -1
- package/dist/{settings-xQKsWnzQ.mjs → settings-hcubRfkr.mjs} +3 -3
- package/dist/settings-hcubRfkr.mjs.map +1 -0
- package/dist/{setup-BGAJ2uXs.mjs → setup-Cf_TyOv5.mjs} +2 -2
- package/dist/{setup-BGAJ2uXs.mjs.map → setup-Cf_TyOv5.mjs.map} +1 -1
- package/dist/{setup-complete-C6ZCLhKo.mjs → setup-complete-MzzN9u0b.mjs} +1 -1
- package/dist/{setup-complete-C6ZCLhKo.mjs.map → setup-complete-MzzN9u0b.mjs.map} +1 -1
- package/dist/{setup-nonce-CY1gQiAU.mjs → setup-nonce-DXuriHsg.mjs} +1 -1
- package/dist/{setup-nonce-CY1gQiAU.mjs.map → setup-nonce-DXuriHsg.mjs.map} +1 -1
- package/dist/{site-url-D-M4Fd8O.mjs → site-url-xkhw1tcz.mjs} +1 -1
- package/dist/{site-url-D-M4Fd8O.mjs.map → site-url-xkhw1tcz.mjs.map} +1 -1
- package/dist/{ssrf-DzFN_qV-.mjs → ssrf-MZ-zrG6-.mjs} +1 -1
- package/dist/{ssrf-DzFN_qV-.mjs.map → ssrf-MZ-zrG6-.mjs.map} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/local.mjs.map +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/storage/s3.mjs.map +1 -1
- package/dist/{taxonomies-Dc0mzlms.mjs → taxonomies-CLs9HPE2.mjs} +4 -4
- package/dist/{taxonomies-Dc0mzlms.mjs.map → taxonomies-CLs9HPE2.mjs.map} +1 -1
- package/dist/{taxonomies-Cn9UpaR2.mjs → taxonomies-WamPVA2x.mjs} +7 -42
- package/dist/taxonomies-WamPVA2x.mjs.map +1 -0
- package/dist/{taxonomy-wPfusMK9.mjs → taxonomy-D4Uc2LsZ.mjs} +3 -3
- package/dist/{taxonomy-wPfusMK9.mjs.map → taxonomy-D4Uc2LsZ.mjs.map} +1 -1
- package/dist/{tokens-DILYNZMi.mjs → tokens-N8otWMmj.mjs} +1 -1
- package/dist/{tokens-DILYNZMi.mjs.map → tokens-N8otWMmj.mjs.map} +1 -1
- package/dist/{transport-fw-mKJzT.mjs → transport-B6CHddbu.mjs} +1 -1
- package/dist/{transport-fw-mKJzT.mjs.map → transport-B6CHddbu.mjs.map} +1 -1
- package/dist/{transport-GeXlLscf.d.mts → transport-DOxLfUir.d.mts} +1 -1
- package/dist/{transport-GeXlLscf.d.mts.map → transport-DOxLfUir.d.mts.map} +1 -1
- package/dist/{trusted-proxy-CJhQIk65.mjs → trusted-proxy-97pajC2f.mjs} +1 -1
- package/dist/{trusted-proxy-CJhQIk65.mjs.map → trusted-proxy-97pajC2f.mjs.map} +1 -1
- package/dist/{types-CwXMEPRr.mjs → types-ByV5sgsv.mjs} +2 -2
- package/dist/types-ByV5sgsv.mjs.map +1 -0
- package/dist/{types-Dz9CGX_d.mjs → types-Cd9UCu3t.mjs} +1 -1
- package/dist/{types-Dz9CGX_d.mjs.map → types-Cd9UCu3t.mjs.map} +1 -1
- package/dist/{types-DmxPPXGf.d.mts → types-CkDSF81F.d.mts} +1 -1
- package/dist/{types-DmxPPXGf.d.mts.map → types-CkDSF81F.d.mts.map} +1 -1
- package/dist/{types-BWhaSS7U.d.mts → types-CpUuGcd5.d.mts} +1 -1
- package/dist/{types-BWhaSS7U.d.mts.map → types-CpUuGcd5.d.mts.map} +1 -1
- package/dist/{types-DFowNO60.d.mts → types-D599-ruj.d.mts} +1 -1
- package/dist/{types-DFowNO60.d.mts.map → types-D599-ruj.d.mts.map} +1 -1
- package/dist/{types-B05e2naf.d.mts → types-DGHWRQgr.d.mts} +3 -3
- package/dist/{types-B05e2naf.d.mts.map → types-DGHWRQgr.d.mts.map} +1 -1
- package/dist/{types-CzvJd1ND.d.mts → types-DaYDYW6g.d.mts} +14 -1
- package/dist/types-DaYDYW6g.d.mts.map +1 -0
- package/dist/{types-C1KKK4VP.d.mts → types-DaqNzqVt.d.mts} +16 -1
- package/dist/{types-C1KKK4VP.d.mts.map → types-DaqNzqVt.d.mts.map} +1 -1
- package/dist/{types-DW1l0gCv.d.mts → types-Dgo6y-Ut.d.mts} +1 -1
- package/dist/{types-DW1l0gCv.d.mts.map → types-Dgo6y-Ut.d.mts.map} +1 -1
- package/dist/{types-Cb2UCDJg.d.mts → types-bYmRn_Uy.d.mts} +1 -1
- package/dist/{types-Cb2UCDJg.d.mts.map → types-bYmRn_Uy.d.mts.map} +1 -1
- package/dist/{user-Dr1bOCqS.mjs → user-D3BD5zdT.mjs} +2 -2
- package/dist/{user-Dr1bOCqS.mjs.map → user-D3BD5zdT.mjs.map} +1 -1
- package/dist/{utils-_F-rWBTN.mjs → utils-C3wTAP-P.mjs} +1 -1
- package/dist/{utils-_F-rWBTN.mjs.map → utils-C3wTAP-P.mjs.map} +1 -1
- package/dist/{validate-BpQGsmd7.d.mts → validate-DQtHw9NT.d.mts} +5 -5
- package/dist/{validate-BpQGsmd7.d.mts.map → validate-DQtHw9NT.d.mts.map} +1 -1
- package/dist/{validate-DlFxcVVK.mjs → validate-mz87i8_1.mjs} +2 -2
- package/dist/{validate-DlFxcVVK.mjs.map → validate-mz87i8_1.mjs.map} +1 -1
- package/dist/{validation-BiFJqUp5.mjs → validation-DKHhXjPr.mjs} +5 -5
- package/dist/{validation-BiFJqUp5.mjs.map → validation-DKHhXjPr.mjs.map} +1 -1
- package/dist/version-Ct7C6RSo.mjs +7 -0
- package/dist/{version-Dw7Z5PVU.mjs.map → version-Ct7C6RSo.mjs.map} +1 -1
- package/dist/{widgets-B9j_yzlk.mjs → widgets-lShIQXU5.mjs} +3 -3
- package/dist/widgets-lShIQXU5.mjs.map +1 -0
- package/dist/{zod-generator-DSyz01KE.mjs → zod-generator-dvxgmd1M.mjs} +2 -2
- package/dist/{zod-generator-DSyz01KE.mjs.map → zod-generator-dvxgmd1M.mjs.map} +1 -1
- package/package.json +10 -8
- package/src/api/error.ts +18 -3
- package/src/api/errors.ts +6 -0
- package/src/api/handlers/bylines.ts +161 -0
- package/src/api/handlers/content.ts +125 -43
- package/src/api/handlers/index.ts +6 -0
- package/src/api/handlers/marketplace.ts +27 -5
- package/src/api/handlers/oauth-clients.ts +1 -1
- package/src/api/handlers/registry.ts +568 -22
- package/src/api/openapi/document.ts +1 -1
- package/src/api/schemas/bylines.ts +46 -0
- package/src/astro/integration/index.ts +1 -1
- package/src/astro/integration/routes.ts +5 -0
- package/src/astro/integration/runtime.ts +12 -1
- package/src/astro/integration/virtual-modules.ts +19 -2
- package/src/astro/integration/vite-config.ts +2 -2
- package/src/astro/middleware/auth.ts +7 -7
- package/src/astro/middleware/request-context.ts +1 -1
- package/src/astro/middleware.ts +31 -20
- package/src/astro/routes/api/admin/bylines/[id]/index.ts +3 -12
- package/src/astro/routes/api/admin/bylines/[id]/translations.ts +99 -0
- package/src/astro/routes/api/admin/bylines/index.ts +22 -11
- package/src/astro/routes/api/admin/plugins/[id]/update.ts +1 -0
- package/src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts +6 -1
- package/src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts +51 -0
- package/src/astro/routes/api/admin/plugins/registry/[id]/update.ts +79 -0
- package/src/astro/routes/api/admin/plugins/updates.ts +43 -6
- package/src/astro/routes/api/admin/themes/marketplace/index.ts +1 -1
- package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +2 -2
- package/src/astro/routes/api/auth/oauth/[provider].ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/duplicate.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/publish.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/restore.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts +6 -6
- package/src/astro/routes/api/content/[collection]/[id]/translations.ts +1 -1
- package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +2 -2
- package/src/astro/routes/api/content/[collection]/[id].ts +6 -6
- package/src/astro/routes/api/import/wordpress/execute.ts +1 -1
- package/src/astro/routes/api/import/wordpress/prepare.ts +2 -2
- package/src/astro/routes/api/import/wordpress/rewrite-urls.ts +3 -3
- package/src/astro/routes/api/import/wordpress-plugin/execute.ts +2 -2
- package/src/astro/routes/api/media/upload-url.ts +1 -1
- package/src/astro/routes/api/redirects/404s/index.ts +3 -3
- package/src/astro/routes/api/redirects/404s/summary.ts +1 -1
- package/src/astro/routes/api/redirects/[id].ts +3 -3
- package/src/astro/routes/api/redirects/index.ts +2 -2
- package/src/astro/routes/api/schema/collections/[slug]/fields/[fieldSlug].ts +4 -4
- package/src/astro/routes/api/schema/collections/[slug]/fields/index.ts +2 -6
- package/src/astro/routes/api/schema/collections/[slug]/fields/reorder.ts +1 -1
- package/src/astro/routes/api/schema/collections/[slug]/index.ts +6 -6
- package/src/astro/routes/api/schema/collections/index.ts +4 -4
- package/src/astro/routes/api/schema/index.ts +1 -1
- package/src/astro/routes/api/schema/orphans/[slug].ts +1 -1
- package/src/astro/routes/api/schema/orphans/index.ts +1 -1
- package/src/astro/routes/api/sections/[slug].ts +3 -3
- package/src/astro/routes/api/sections/index.ts +2 -2
- package/src/astro/types.ts +4 -0
- package/src/auth/rate-limit.ts +1 -1
- package/src/auth/trusted-proxy.ts +1 -1
- package/src/bylines/index.ts +154 -55
- package/src/cli/commands/init.ts +4 -8
- package/src/client/index.ts +1 -1
- package/src/components/InlinePortableTextEditor.tsx +5 -1
- package/src/components/inline-code-block.tsx +343 -0
- package/src/config/secrets.ts +3 -3
- package/src/database/migrations/006_taxonomy_defs.ts +1 -1
- package/src/database/migrations/014_draft_revisions.ts +6 -6
- package/src/database/migrations/040_byline_i18n.ts +497 -0
- package/src/database/migrations/runner.ts +4 -1
- package/src/database/repositories/audit.ts +2 -2
- package/src/database/repositories/byline.ts +320 -50
- package/src/database/repositories/media.ts +2 -2
- package/src/database/repositories/menu.ts +1 -1
- package/src/database/repositories/options.ts +3 -3
- package/src/database/repositories/plugin-storage.ts +3 -3
- package/src/database/repositories/types.ts +13 -0
- package/src/database/types.ts +15 -0
- package/src/emdash-runtime.ts +492 -20
- package/src/i18n/config.ts +1 -1
- package/src/index.ts +7 -0
- package/src/loader.ts +1 -1
- package/src/mcp/server.ts +3 -3
- package/src/media/mime.ts +1 -1
- package/src/page/absolute-url.ts +1 -1
- package/src/plugins/adapt-sandbox-entry.ts +45 -40
- package/src/plugins/email-console.ts +1 -1
- package/src/plugins/index.ts +1 -0
- package/src/plugins/marketplace.ts +1 -1
- package/src/plugins/sandbox/index.ts +1 -0
- package/src/plugins/sandbox/noop.ts +11 -3
- package/src/plugins/sandbox/types.ts +28 -0
- package/src/query.ts +17 -2
- package/src/registry/config.ts +1 -1
- package/src/request-cache.ts +3 -3
- package/src/request-context.ts +1 -1
- package/src/settings/index.ts +4 -4
- package/src/storage/local.ts +1 -1
- package/src/storage/s3.ts +3 -3
- package/src/widgets/index.ts +1 -1
- package/dist/api-ayIQ7rIe.mjs.map +0 -1
- package/dist/byline-D09BaS4j.mjs +0 -220
- package/dist/byline-D09BaS4j.mjs.map +0 -1
- package/dist/bylines-BTM2xtP8.mjs +0 -113
- package/dist/bylines-BTM2xtP8.mjs.map +0 -1
- package/dist/bylines-C6eYUWlZ.d.mts.map +0 -1
- package/dist/context-qF8d3IPR.mjs.map +0 -1
- package/dist/email-console-Dmp5Q-P2.mjs.map +0 -1
- package/dist/error-tSQWIl5U.mjs.map +0 -1
- package/dist/index-UmOMt9T-.d.mts.map +0 -1
- package/dist/loader-Cs6-Bqe6.mjs.map +0 -1
- package/dist/media-Dg7he9uK.mjs.map +0 -1
- package/dist/menus-DOzIecHi.mjs.map +0 -1
- package/dist/menus-X4Z-eBA1.mjs.map +0 -1
- package/dist/oauth-clients-D_B0_-Bz.mjs.map +0 -1
- package/dist/options-Cq64Wx0O.d.mts.map +0 -1
- package/dist/redirects-Dmj6KRU3.mjs.map +0 -1
- package/dist/runner-DdnQIwz_.mjs.map +0 -1
- package/dist/settings-xQKsWnzQ.mjs.map +0 -1
- package/dist/taxonomies-Cn9UpaR2.mjs.map +0 -1
- package/dist/types-CwXMEPRr.mjs.map +0 -1
- package/dist/types-CzvJd1ND.d.mts.map +0 -1
- package/dist/version-Dw7Z5PVU.mjs +0 -7
- package/dist/widgets-B9j_yzlk.mjs.map +0 -1
- /package/dist/{api-tokens-D3C9v02m.mjs → api-tokens-iPIHAY8N.mjs} +0 -0
- /package/dist/{ssrf-CTul4uQi.mjs → ssrf-BIcd-aXW.mjs} +0 -0
- /package/dist/{types-Db67HHlU.mjs → types-1NNkmTIn.mjs} +0 -0
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
-
import "../../../../../../../content-
|
|
2
|
+
import "../../../../../../../content-C0ooIs-f.mjs";
|
|
3
3
|
import "../../../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../../../types-
|
|
5
|
-
import "../../../../../../../media-
|
|
6
|
-
import "../../../../../../../user-
|
|
7
|
-
import "../../../../../../../taxonomy-
|
|
8
|
-
import "../../../../../../../comment-
|
|
4
|
+
import "../../../../../../../types-ByV5sgsv.mjs";
|
|
5
|
+
import "../../../../../../../media-oqRcNiQf.mjs";
|
|
6
|
+
import "../../../../../../../user-D3BD5zdT.mjs";
|
|
7
|
+
import "../../../../../../../taxonomy-D4Uc2LsZ.mjs";
|
|
8
|
+
import "../../../../../../../comment-_yzlBYPx.mjs";
|
|
9
9
|
import "../../../../../../../options-BL4X94qY.mjs";
|
|
10
|
-
import "../../../../../../../menus-
|
|
11
|
-
import "../../../../../../../redirect-
|
|
12
|
-
import "../../../../../../../byline-
|
|
13
|
-
import "../../../../../../../seo-
|
|
14
|
-
import {
|
|
10
|
+
import "../../../../../../../menus-Bjf5R1Qq.mjs";
|
|
11
|
+
import "../../../../../../../redirect-CNv4mHX2.mjs";
|
|
12
|
+
import "../../../../../../../byline-CTaWkMh5.mjs";
|
|
13
|
+
import "../../../../../../../seo-bjDoq9Eg.mjs";
|
|
14
|
+
import { o as handleMarketplaceGetPlugin } from "../../../../../../../api-CLwG_3dh.mjs";
|
|
15
15
|
import "../../../../../../../request-cache-dzCt8TZB.mjs";
|
|
16
|
-
import "../../../../../../../dashboard-
|
|
17
|
-
import "../../../../../../../fts-manager-
|
|
18
|
-
import "../../../../../../../registry-
|
|
19
|
-
import "../../../../../../../loader-
|
|
20
|
-
import "../../../../../../../schema-
|
|
21
|
-
import "../../../../../../../zod-generator-
|
|
16
|
+
import "../../../../../../../dashboard-Cqw3ay2X.mjs";
|
|
17
|
+
import "../../../../../../../fts-manager-Mnrtn-r2.mjs";
|
|
18
|
+
import "../../../../../../../registry-DqrAQDXH.mjs";
|
|
19
|
+
import "../../../../../../../loader-Chm5h7Gr.mjs";
|
|
20
|
+
import "../../../../../../../schema-Djdlfi5G.mjs";
|
|
21
|
+
import "../../../../../../../zod-generator-dvxgmd1M.mjs";
|
|
22
22
|
import "../../../../../../../seo-BoR4wCUh.mjs";
|
|
23
|
-
import "../../../../../../../sections-
|
|
24
|
-
import "../../../../../../../settings-
|
|
25
|
-
import "../../../../../../../settings-
|
|
26
|
-
import "../../../../../../../
|
|
27
|
-
import "../../../../../../../taxonomies-
|
|
28
|
-
import "../../../../../../../
|
|
29
|
-
import "../../../../../../../
|
|
30
|
-
import "../../../../../../../
|
|
31
|
-
import
|
|
32
|
-
import "../../../../../../../
|
|
33
|
-
import "../../../../../../../
|
|
34
|
-
import "../../../../../../../
|
|
35
|
-
import
|
|
23
|
+
import "../../../../../../../sections-DcBIlOq1.mjs";
|
|
24
|
+
import "../../../../../../../settings-hcubRfkr.mjs";
|
|
25
|
+
import "../../../../../../../settings-CJnKiWuR.mjs";
|
|
26
|
+
import "../../../../../../../resolve-Cj98DuqN.mjs";
|
|
27
|
+
import "../../../../../../../taxonomies-WamPVA2x.mjs";
|
|
28
|
+
import "../../../../../../../taxonomies-CLs9HPE2.mjs";
|
|
29
|
+
import "../../../../../../../manifest-schema-Czqf0TLu.mjs";
|
|
30
|
+
import "../../../../../../../types-1NNkmTIn.mjs";
|
|
31
|
+
import "../../../../../../../ssrf-MZ-zrG6-.mjs";
|
|
32
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../../error-CPh_8eLq.mjs";
|
|
33
|
+
import "../../../../../../../parse-3-caTKgt.mjs";
|
|
34
|
+
import "../../../../../../../redirects-COMLwsV5.mjs";
|
|
35
|
+
import "../../../../../../../setup-Cf_TyOv5.mjs";
|
|
36
|
+
import { n as requirePerm } from "../../../../../../../authorize-Bkwe8kuL.mjs";
|
|
36
37
|
|
|
37
38
|
//#region src/astro/routes/api/admin/plugins/marketplace/[id]/index.ts
|
|
38
39
|
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,38 +1,39 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
-
import "../../../../../../../content-
|
|
2
|
+
import "../../../../../../../content-C0ooIs-f.mjs";
|
|
3
3
|
import "../../../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../../../types-
|
|
5
|
-
import "../../../../../../../media-
|
|
6
|
-
import "../../../../../../../user-
|
|
7
|
-
import "../../../../../../../taxonomy-
|
|
8
|
-
import "../../../../../../../comment-
|
|
4
|
+
import "../../../../../../../types-ByV5sgsv.mjs";
|
|
5
|
+
import "../../../../../../../media-oqRcNiQf.mjs";
|
|
6
|
+
import "../../../../../../../user-D3BD5zdT.mjs";
|
|
7
|
+
import "../../../../../../../taxonomy-D4Uc2LsZ.mjs";
|
|
8
|
+
import "../../../../../../../comment-_yzlBYPx.mjs";
|
|
9
9
|
import "../../../../../../../options-BL4X94qY.mjs";
|
|
10
|
-
import "../../../../../../../menus-
|
|
11
|
-
import "../../../../../../../redirect-
|
|
12
|
-
import "../../../../../../../byline-
|
|
13
|
-
import "../../../../../../../seo-
|
|
14
|
-
import {
|
|
10
|
+
import "../../../../../../../menus-Bjf5R1Qq.mjs";
|
|
11
|
+
import "../../../../../../../redirect-CNv4mHX2.mjs";
|
|
12
|
+
import "../../../../../../../byline-CTaWkMh5.mjs";
|
|
13
|
+
import "../../../../../../../seo-bjDoq9Eg.mjs";
|
|
14
|
+
import { s as handleMarketplaceInstall } from "../../../../../../../api-CLwG_3dh.mjs";
|
|
15
15
|
import "../../../../../../../request-cache-dzCt8TZB.mjs";
|
|
16
|
-
import "../../../../../../../dashboard-
|
|
17
|
-
import "../../../../../../../fts-manager-
|
|
18
|
-
import "../../../../../../../registry-
|
|
19
|
-
import "../../../../../../../loader-
|
|
20
|
-
import "../../../../../../../schema-
|
|
21
|
-
import "../../../../../../../zod-generator-
|
|
16
|
+
import "../../../../../../../dashboard-Cqw3ay2X.mjs";
|
|
17
|
+
import "../../../../../../../fts-manager-Mnrtn-r2.mjs";
|
|
18
|
+
import "../../../../../../../registry-DqrAQDXH.mjs";
|
|
19
|
+
import "../../../../../../../loader-Chm5h7Gr.mjs";
|
|
20
|
+
import "../../../../../../../schema-Djdlfi5G.mjs";
|
|
21
|
+
import "../../../../../../../zod-generator-dvxgmd1M.mjs";
|
|
22
22
|
import "../../../../../../../seo-BoR4wCUh.mjs";
|
|
23
|
-
import "../../../../../../../sections-
|
|
24
|
-
import "../../../../../../../settings-
|
|
25
|
-
import "../../../../../../../settings-
|
|
26
|
-
import "../../../../../../../
|
|
27
|
-
import "../../../../../../../taxonomies-
|
|
28
|
-
import "../../../../../../../
|
|
29
|
-
import "../../../../../../../
|
|
30
|
-
import "../../../../../../../
|
|
31
|
-
import
|
|
32
|
-
import { r as
|
|
33
|
-
import "../../../../../../../
|
|
34
|
-
import "../../../../../../../
|
|
35
|
-
import
|
|
23
|
+
import "../../../../../../../sections-DcBIlOq1.mjs";
|
|
24
|
+
import "../../../../../../../settings-hcubRfkr.mjs";
|
|
25
|
+
import "../../../../../../../settings-CJnKiWuR.mjs";
|
|
26
|
+
import "../../../../../../../resolve-Cj98DuqN.mjs";
|
|
27
|
+
import "../../../../../../../taxonomies-WamPVA2x.mjs";
|
|
28
|
+
import "../../../../../../../taxonomies-CLs9HPE2.mjs";
|
|
29
|
+
import "../../../../../../../manifest-schema-Czqf0TLu.mjs";
|
|
30
|
+
import "../../../../../../../types-1NNkmTIn.mjs";
|
|
31
|
+
import "../../../../../../../ssrf-MZ-zrG6-.mjs";
|
|
32
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../../error-CPh_8eLq.mjs";
|
|
33
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../../parse-3-caTKgt.mjs";
|
|
34
|
+
import "../../../../../../../redirects-COMLwsV5.mjs";
|
|
35
|
+
import "../../../../../../../setup-Cf_TyOv5.mjs";
|
|
36
|
+
import { n as requirePerm } from "../../../../../../../authorize-Bkwe8kuL.mjs";
|
|
36
37
|
import { z } from "zod";
|
|
37
38
|
|
|
38
39
|
//#region src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts
|
|
@@ -53,7 +54,8 @@ const POST = async ({ params, request, locals }) => {
|
|
|
53
54
|
const result = await handleMarketplaceInstall(emdash.db, emdash.storage, emdash.getSandboxRunner(), emdash.config.marketplace, id, {
|
|
54
55
|
version: body.version,
|
|
55
56
|
configuredPluginIds,
|
|
56
|
-
siteOrigin
|
|
57
|
+
siteOrigin,
|
|
58
|
+
sandboxBypassed: emdash.isSandboxBypassed()
|
|
57
59
|
});
|
|
58
60
|
if (!result.success) return unwrapResult(result);
|
|
59
61
|
await emdash.syncMarketplacePlugins();
|
|
@@ -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{
|
|
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,38 +1,39 @@
|
|
|
1
1
|
import "../../../../../../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
-
import "../../../../../../content-
|
|
2
|
+
import "../../../../../../content-C0ooIs-f.mjs";
|
|
3
3
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../../types-
|
|
5
|
-
import "../../../../../../media-
|
|
6
|
-
import "../../../../../../user-
|
|
7
|
-
import "../../../../../../taxonomy-
|
|
8
|
-
import "../../../../../../comment-
|
|
4
|
+
import "../../../../../../types-ByV5sgsv.mjs";
|
|
5
|
+
import "../../../../../../media-oqRcNiQf.mjs";
|
|
6
|
+
import "../../../../../../user-D3BD5zdT.mjs";
|
|
7
|
+
import "../../../../../../taxonomy-D4Uc2LsZ.mjs";
|
|
8
|
+
import "../../../../../../comment-_yzlBYPx.mjs";
|
|
9
9
|
import "../../../../../../options-BL4X94qY.mjs";
|
|
10
|
-
import "../../../../../../menus-
|
|
11
|
-
import "../../../../../../redirect-
|
|
12
|
-
import "../../../../../../byline-
|
|
13
|
-
import "../../../../../../seo-
|
|
14
|
-
import {
|
|
10
|
+
import "../../../../../../menus-Bjf5R1Qq.mjs";
|
|
11
|
+
import "../../../../../../redirect-CNv4mHX2.mjs";
|
|
12
|
+
import "../../../../../../byline-CTaWkMh5.mjs";
|
|
13
|
+
import "../../../../../../seo-bjDoq9Eg.mjs";
|
|
14
|
+
import { c as handleMarketplaceSearch } from "../../../../../../api-CLwG_3dh.mjs";
|
|
15
15
|
import "../../../../../../request-cache-dzCt8TZB.mjs";
|
|
16
|
-
import "../../../../../../dashboard-
|
|
17
|
-
import "../../../../../../fts-manager-
|
|
18
|
-
import "../../../../../../registry-
|
|
19
|
-
import "../../../../../../loader-
|
|
20
|
-
import "../../../../../../schema-
|
|
21
|
-
import "../../../../../../zod-generator-
|
|
16
|
+
import "../../../../../../dashboard-Cqw3ay2X.mjs";
|
|
17
|
+
import "../../../../../../fts-manager-Mnrtn-r2.mjs";
|
|
18
|
+
import "../../../../../../registry-DqrAQDXH.mjs";
|
|
19
|
+
import "../../../../../../loader-Chm5h7Gr.mjs";
|
|
20
|
+
import "../../../../../../schema-Djdlfi5G.mjs";
|
|
21
|
+
import "../../../../../../zod-generator-dvxgmd1M.mjs";
|
|
22
22
|
import "../../../../../../seo-BoR4wCUh.mjs";
|
|
23
|
-
import "../../../../../../sections-
|
|
24
|
-
import "../../../../../../settings-
|
|
25
|
-
import "../../../../../../settings-
|
|
26
|
-
import "../../../../../../
|
|
27
|
-
import "../../../../../../taxonomies-
|
|
28
|
-
import "../../../../../../
|
|
29
|
-
import "../../../../../../
|
|
30
|
-
import "../../../../../../
|
|
31
|
-
import
|
|
32
|
-
import "../../../../../../
|
|
33
|
-
import "../../../../../../
|
|
34
|
-
import "../../../../../../
|
|
35
|
-
import
|
|
23
|
+
import "../../../../../../sections-DcBIlOq1.mjs";
|
|
24
|
+
import "../../../../../../settings-hcubRfkr.mjs";
|
|
25
|
+
import "../../../../../../settings-CJnKiWuR.mjs";
|
|
26
|
+
import "../../../../../../resolve-Cj98DuqN.mjs";
|
|
27
|
+
import "../../../../../../taxonomies-WamPVA2x.mjs";
|
|
28
|
+
import "../../../../../../taxonomies-CLs9HPE2.mjs";
|
|
29
|
+
import "../../../../../../manifest-schema-Czqf0TLu.mjs";
|
|
30
|
+
import "../../../../../../types-1NNkmTIn.mjs";
|
|
31
|
+
import "../../../../../../ssrf-MZ-zrG6-.mjs";
|
|
32
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../error-CPh_8eLq.mjs";
|
|
33
|
+
import "../../../../../../parse-3-caTKgt.mjs";
|
|
34
|
+
import "../../../../../../redirects-COMLwsV5.mjs";
|
|
35
|
+
import "../../../../../../setup-Cf_TyOv5.mjs";
|
|
36
|
+
import { n as requirePerm } from "../../../../../../authorize-Bkwe8kuL.mjs";
|
|
36
37
|
|
|
37
38
|
//#region src/astro/routes/api/admin/plugins/marketplace/index.ts
|
|
38
39
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { APIRoute } from "astro";
|
|
2
|
+
|
|
3
|
+
//#region src/astro/routes/api/admin/plugins/registry/[id]/uninstall.d.ts
|
|
4
|
+
declare const prerender = false;
|
|
5
|
+
declare const POST: APIRoute;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { POST, prerender };
|
|
8
|
+
//# sourceMappingURL=uninstall.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninstall.d.mts","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts"],"mappings":";;;cAiBa,SAAA;AAAA,cAMA,IAAA,EAAM,QAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "../../../../../../../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
+
import "../../../../../../../content-C0ooIs-f.mjs";
|
|
3
|
+
import "../../../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
+
import "../../../../../../../types-ByV5sgsv.mjs";
|
|
5
|
+
import "../../../../../../../media-oqRcNiQf.mjs";
|
|
6
|
+
import "../../../../../../../user-D3BD5zdT.mjs";
|
|
7
|
+
import "../../../../../../../taxonomy-D4Uc2LsZ.mjs";
|
|
8
|
+
import "../../../../../../../comment-_yzlBYPx.mjs";
|
|
9
|
+
import "../../../../../../../options-BL4X94qY.mjs";
|
|
10
|
+
import "../../../../../../../menus-Bjf5R1Qq.mjs";
|
|
11
|
+
import "../../../../../../../redirect-CNv4mHX2.mjs";
|
|
12
|
+
import "../../../../../../../byline-CTaWkMh5.mjs";
|
|
13
|
+
import "../../../../../../../seo-bjDoq9Eg.mjs";
|
|
14
|
+
import { n as handleRegistryUninstall } from "../../../../../../../api-CLwG_3dh.mjs";
|
|
15
|
+
import "../../../../../../../request-cache-dzCt8TZB.mjs";
|
|
16
|
+
import "../../../../../../../dashboard-Cqw3ay2X.mjs";
|
|
17
|
+
import "../../../../../../../fts-manager-Mnrtn-r2.mjs";
|
|
18
|
+
import "../../../../../../../registry-DqrAQDXH.mjs";
|
|
19
|
+
import "../../../../../../../loader-Chm5h7Gr.mjs";
|
|
20
|
+
import "../../../../../../../schema-Djdlfi5G.mjs";
|
|
21
|
+
import "../../../../../../../zod-generator-dvxgmd1M.mjs";
|
|
22
|
+
import "../../../../../../../seo-BoR4wCUh.mjs";
|
|
23
|
+
import "../../../../../../../sections-DcBIlOq1.mjs";
|
|
24
|
+
import "../../../../../../../settings-hcubRfkr.mjs";
|
|
25
|
+
import "../../../../../../../settings-CJnKiWuR.mjs";
|
|
26
|
+
import "../../../../../../../resolve-Cj98DuqN.mjs";
|
|
27
|
+
import "../../../../../../../taxonomies-WamPVA2x.mjs";
|
|
28
|
+
import "../../../../../../../taxonomies-CLs9HPE2.mjs";
|
|
29
|
+
import "../../../../../../../manifest-schema-Czqf0TLu.mjs";
|
|
30
|
+
import "../../../../../../../types-1NNkmTIn.mjs";
|
|
31
|
+
import "../../../../../../../ssrf-MZ-zrG6-.mjs";
|
|
32
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../../error-CPh_8eLq.mjs";
|
|
33
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../../parse-3-caTKgt.mjs";
|
|
34
|
+
import "../../../../../../../redirects-COMLwsV5.mjs";
|
|
35
|
+
import "../../../../../../../setup-Cf_TyOv5.mjs";
|
|
36
|
+
import { n as requirePerm } from "../../../../../../../authorize-Bkwe8kuL.mjs";
|
|
37
|
+
import { z } from "zod";
|
|
38
|
+
|
|
39
|
+
//#region src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts
|
|
40
|
+
const prerender = false;
|
|
41
|
+
const uninstallBodySchema = z.object({ deleteData: z.boolean().optional() });
|
|
42
|
+
const POST = async ({ params, request, locals }) => {
|
|
43
|
+
const { emdash, user } = locals;
|
|
44
|
+
const { id } = params;
|
|
45
|
+
if (!emdash?.db) return apiError("NOT_CONFIGURED", "EmDash is not initialized", 500);
|
|
46
|
+
const denied = requirePerm(user, "plugins:manage");
|
|
47
|
+
if (denied) return denied;
|
|
48
|
+
if (!id) return apiError("INVALID_REQUEST", "Plugin ID required", 400);
|
|
49
|
+
const body = await parseOptionalBody(request, uninstallBodySchema, {});
|
|
50
|
+
if (isParseError(body)) return body;
|
|
51
|
+
const result = await handleRegistryUninstall(emdash.db, emdash.storage, id, { deleteData: body.deleteData ?? false });
|
|
52
|
+
if (!result.success) return unwrapResult(result);
|
|
53
|
+
await emdash.syncRegistryPlugins();
|
|
54
|
+
return unwrapResult(result);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { POST, prerender };
|
|
59
|
+
//# sourceMappingURL=uninstall.mjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.mts","names":[],"sources":["../../../../../../../../src/astro/routes/api/admin/plugins/registry/[id]/update.ts"],"mappings":";;;cAmBa,SAAA;AAAA,cAkBA,IAAA,EAAM,QAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import "../../../../../../../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
+
import "../../../../../../../content-C0ooIs-f.mjs";
|
|
3
|
+
import "../../../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
+
import "../../../../../../../types-ByV5sgsv.mjs";
|
|
5
|
+
import "../../../../../../../media-oqRcNiQf.mjs";
|
|
6
|
+
import "../../../../../../../user-D3BD5zdT.mjs";
|
|
7
|
+
import "../../../../../../../taxonomy-D4Uc2LsZ.mjs";
|
|
8
|
+
import "../../../../../../../comment-_yzlBYPx.mjs";
|
|
9
|
+
import "../../../../../../../options-BL4X94qY.mjs";
|
|
10
|
+
import "../../../../../../../menus-Bjf5R1Qq.mjs";
|
|
11
|
+
import "../../../../../../../redirect-CNv4mHX2.mjs";
|
|
12
|
+
import "../../../../../../../byline-CTaWkMh5.mjs";
|
|
13
|
+
import "../../../../../../../seo-bjDoq9Eg.mjs";
|
|
14
|
+
import { r as handleRegistryUpdate } from "../../../../../../../api-CLwG_3dh.mjs";
|
|
15
|
+
import "../../../../../../../request-cache-dzCt8TZB.mjs";
|
|
16
|
+
import "../../../../../../../dashboard-Cqw3ay2X.mjs";
|
|
17
|
+
import "../../../../../../../fts-manager-Mnrtn-r2.mjs";
|
|
18
|
+
import "../../../../../../../registry-DqrAQDXH.mjs";
|
|
19
|
+
import "../../../../../../../loader-Chm5h7Gr.mjs";
|
|
20
|
+
import "../../../../../../../schema-Djdlfi5G.mjs";
|
|
21
|
+
import "../../../../../../../zod-generator-dvxgmd1M.mjs";
|
|
22
|
+
import "../../../../../../../seo-BoR4wCUh.mjs";
|
|
23
|
+
import "../../../../../../../sections-DcBIlOq1.mjs";
|
|
24
|
+
import "../../../../../../../settings-hcubRfkr.mjs";
|
|
25
|
+
import "../../../../../../../settings-CJnKiWuR.mjs";
|
|
26
|
+
import "../../../../../../../resolve-Cj98DuqN.mjs";
|
|
27
|
+
import "../../../../../../../taxonomies-WamPVA2x.mjs";
|
|
28
|
+
import "../../../../../../../taxonomies-CLs9HPE2.mjs";
|
|
29
|
+
import "../../../../../../../manifest-schema-Czqf0TLu.mjs";
|
|
30
|
+
import "../../../../../../../types-1NNkmTIn.mjs";
|
|
31
|
+
import "../../../../../../../ssrf-MZ-zrG6-.mjs";
|
|
32
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../../error-CPh_8eLq.mjs";
|
|
33
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../../parse-3-caTKgt.mjs";
|
|
34
|
+
import "../../../../../../../redirects-COMLwsV5.mjs";
|
|
35
|
+
import "../../../../../../../setup-Cf_TyOv5.mjs";
|
|
36
|
+
import { n as requirePerm } from "../../../../../../../authorize-Bkwe8kuL.mjs";
|
|
37
|
+
import { z } from "zod";
|
|
38
|
+
|
|
39
|
+
//#region src/astro/routes/api/admin/plugins/registry/[id]/update.ts
|
|
40
|
+
const prerender = false;
|
|
41
|
+
const updateBodySchema = z.object({
|
|
42
|
+
version: z.string().min(1).max(64).optional(),
|
|
43
|
+
confirmCapabilityChanges: z.boolean().optional(),
|
|
44
|
+
confirmRouteVisibilityChanges: z.boolean().optional()
|
|
45
|
+
});
|
|
46
|
+
const POST = async ({ params, request, locals }) => {
|
|
47
|
+
try {
|
|
48
|
+
const { emdash, user } = locals;
|
|
49
|
+
const { id } = params;
|
|
50
|
+
if (!emdash?.db) return apiError("NOT_CONFIGURED", "EmDash is not initialized", 500);
|
|
51
|
+
const denied = requirePerm(user, "plugins:manage");
|
|
52
|
+
if (denied) return denied;
|
|
53
|
+
if (!id) return apiError("INVALID_REQUEST", "Plugin ID required", 400);
|
|
54
|
+
const body = await parseOptionalBody(request, updateBodySchema, {});
|
|
55
|
+
if (isParseError(body)) return body;
|
|
56
|
+
const result = await handleRegistryUpdate(emdash.db, emdash.storage, emdash.getSandboxRunner(), emdash.config.experimental?.registry, id, {
|
|
57
|
+
version: body.version,
|
|
58
|
+
confirmCapabilityChanges: body.confirmCapabilityChanges,
|
|
59
|
+
confirmRouteVisibilityChanges: body.confirmRouteVisibilityChanges
|
|
60
|
+
});
|
|
61
|
+
if (!result.success) return unwrapResult(result);
|
|
62
|
+
await emdash.syncRegistryPlugins();
|
|
63
|
+
return unwrapResult(result);
|
|
64
|
+
} catch (error) {
|
|
65
|
+
console.error("[registry-update] Unhandled error:", error);
|
|
66
|
+
return handleError(error, "Failed to update plugin from registry", "UPDATE_FAILED");
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { POST, prerender };
|
|
72
|
+
//# sourceMappingURL=update.mjs.map
|
|
@@ -0,0 +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 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\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},\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,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,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"}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import "../../../../../../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
-
import "../../../../../../content-
|
|
2
|
+
import "../../../../../../content-C0ooIs-f.mjs";
|
|
3
3
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../../types-
|
|
5
|
-
import "../../../../../../media-
|
|
6
|
-
import "../../../../../../user-
|
|
7
|
-
import "../../../../../../taxonomy-
|
|
8
|
-
import "../../../../../../comment-
|
|
4
|
+
import "../../../../../../types-ByV5sgsv.mjs";
|
|
5
|
+
import "../../../../../../media-oqRcNiQf.mjs";
|
|
6
|
+
import "../../../../../../user-D3BD5zdT.mjs";
|
|
7
|
+
import "../../../../../../taxonomy-D4Uc2LsZ.mjs";
|
|
8
|
+
import "../../../../../../comment-_yzlBYPx.mjs";
|
|
9
9
|
import "../../../../../../options-BL4X94qY.mjs";
|
|
10
|
-
import "../../../../../../menus-
|
|
11
|
-
import "../../../../../../redirect-
|
|
12
|
-
import "../../../../../../byline-
|
|
13
|
-
import "../../../../../../seo-
|
|
14
|
-
import { t as handleRegistryInstall } from "../../../../../../api-
|
|
10
|
+
import "../../../../../../menus-Bjf5R1Qq.mjs";
|
|
11
|
+
import "../../../../../../redirect-CNv4mHX2.mjs";
|
|
12
|
+
import "../../../../../../byline-CTaWkMh5.mjs";
|
|
13
|
+
import "../../../../../../seo-bjDoq9Eg.mjs";
|
|
14
|
+
import { t as handleRegistryInstall } from "../../../../../../api-CLwG_3dh.mjs";
|
|
15
15
|
import "../../../../../../request-cache-dzCt8TZB.mjs";
|
|
16
|
-
import "../../../../../../dashboard-
|
|
17
|
-
import "../../../../../../fts-manager-
|
|
18
|
-
import "../../../../../../registry-
|
|
19
|
-
import "../../../../../../loader-
|
|
20
|
-
import "../../../../../../schema-
|
|
21
|
-
import "../../../../../../zod-generator-
|
|
16
|
+
import "../../../../../../dashboard-Cqw3ay2X.mjs";
|
|
17
|
+
import "../../../../../../fts-manager-Mnrtn-r2.mjs";
|
|
18
|
+
import "../../../../../../registry-DqrAQDXH.mjs";
|
|
19
|
+
import "../../../../../../loader-Chm5h7Gr.mjs";
|
|
20
|
+
import "../../../../../../schema-Djdlfi5G.mjs";
|
|
21
|
+
import "../../../../../../zod-generator-dvxgmd1M.mjs";
|
|
22
22
|
import "../../../../../../seo-BoR4wCUh.mjs";
|
|
23
|
-
import "../../../../../../sections-
|
|
24
|
-
import "../../../../../../settings-
|
|
25
|
-
import "../../../../../../settings-
|
|
26
|
-
import "../../../../../../
|
|
27
|
-
import "../../../../../../taxonomies-
|
|
28
|
-
import "../../../../../../
|
|
29
|
-
import "../../../../../../
|
|
30
|
-
import "../../../../../../
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import "../../../../../../
|
|
34
|
-
import "../../../../../../
|
|
35
|
-
import
|
|
23
|
+
import "../../../../../../sections-DcBIlOq1.mjs";
|
|
24
|
+
import "../../../../../../settings-hcubRfkr.mjs";
|
|
25
|
+
import "../../../../../../settings-CJnKiWuR.mjs";
|
|
26
|
+
import "../../../../../../resolve-Cj98DuqN.mjs";
|
|
27
|
+
import "../../../../../../taxonomies-WamPVA2x.mjs";
|
|
28
|
+
import "../../../../../../taxonomies-CLs9HPE2.mjs";
|
|
29
|
+
import "../../../../../../manifest-schema-Czqf0TLu.mjs";
|
|
30
|
+
import "../../../../../../types-1NNkmTIn.mjs";
|
|
31
|
+
import "../../../../../../ssrf-MZ-zrG6-.mjs";
|
|
32
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-CPh_8eLq.mjs";
|
|
33
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-3-caTKgt.mjs";
|
|
34
|
+
import "../../../../../../redirects-COMLwsV5.mjs";
|
|
35
|
+
import "../../../../../../setup-Cf_TyOv5.mjs";
|
|
36
|
+
import { n as requirePerm } from "../../../../../../authorize-Bkwe8kuL.mjs";
|
|
36
37
|
import { z } from "zod";
|
|
37
38
|
|
|
38
39
|
//#region src/astro/routes/api/admin/plugins/registry/install.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/registry/install.ts"],"sourcesContent":["/**\n * Registry plugin install endpoint\n *\n * POST /_emdash/api/admin/plugins/registry/install\n *\n * Installs a plugin from the experimental decentralized plugin registry\n * (see RFC 0001). The browser resolves `(handle, slug) → (did, slug)`\n * via the aggregator before posting and sends the publisher DID\n * directly; the server skips the resolvePackage round-trip and looks\n * up the package by DID. Sending DID rather than handle means installs\n * work for publishers whose handle the aggregator couldn't resolve at\n * view time (handle is best-effort per the lexicon).\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 { handleRegistryInstall } from \"#api/index.js\";\nimport { isParseError, parseBody } from \"#api/parse.js\";\n\nexport const prerender = false;\n\nconst installBodySchema = z.object({\n\t/**\n\t * Publisher DID. Required. Browser is expected to resolve\n\t * `(handle, slug) → did` against the aggregator before posting.\n\t */\n\tdid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(2048)\n\t\t// Loose match -- atproto DID specs allow `did:plc:*` and\n\t\t// `did:web:*` plus future methods. Reject anything that\n\t\t// doesn't even start with `did:` rather than enumerating\n\t\t// methods here; downstream lexicon validation tightens.\n\t\t.regex(/^did:[a-z]+:/, \"Invalid DID\"),\n\t/** Package slug. */\n\tslug: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(64)\n\t\t// Mirrors the lexicon's slug grammar: ASCII letter followed by\n\t\t// letters / digits / `-` / `_`. Rejects anything that could\n\t\t// confuse the R2 prefix or the URL.\n\t\t.regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/, \"Invalid slug\"),\n\t/** Optional explicit version. Defaults to the aggregator's latest. */\n\tversion: z.string().min(1).max(64).optional(),\n\t/**\n\t * Capabilities the admin acknowledged in the consent dialog, lifted\n\t * from the release record's declaredAccess block at browse time.\n\t * Compared against the bundle's manifest to detect drift between the\n\t * dialog and the install POST.\n\t */\n\tacknowledgedDeclaredAccess: z.unknown().optional(),\n});\n\nexport const POST: APIRoute = async ({ request, locals }) => {\n\ttry {\n\t\tconst { emdash, user } = locals;\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\tconst body = await parseBody(request, installBodySchema);\n\t\tif (isParseError(body)) return body;\n\n\t\t// Block registry installs whose derived `pluginId` collides with\n\t\t// any build-time-reserved id: configured (in-process) plugins, and\n\t\t// sandboxed plugins declared in `config.sandboxed`. The runtime\n\t\t// caches sandboxed plugins by id; a registry install at the same\n\t\t// id would silently shadow or coexist with the build-time entry.\n\t\tconst reservedPluginIds = new Set<string>([\n\t\t\t...emdash.configuredPlugins.map((p: { id: string }) => p.id),\n\t\t\t...(emdash.config.sandboxed ?? []).map((p: { id: string }) => p.id),\n\t\t]);\n\n\t\tconst result = await handleRegistryInstall(\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\t{\n\t\t\t\tdid: body.did,\n\t\t\t\tslug: body.slug,\n\t\t\t\tversion: body.version,\n\t\t\t\tacknowledgedDeclaredAccess: body.acknowledgedDeclaredAccess,\n\t\t\t},\n\t\t\t{ configuredPluginIds: reservedPluginIds },\n\t\t);\n\n\t\tif (!result.success) return unwrapResult(result);\n\n\t\t// Sync runtime so the new plugin becomes active without a worker restart.\n\t\tawait emdash.syncRegistryPlugins();\n\n\t\treturn unwrapResult(result, 201);\n\t} catch (error) {\n\t\tconsole.error(\"[registry-install] Unhandled error:\", error);\n\t\treturn handleError(error, \"Failed to install plugin from registry\", \"INSTALL_FAILED\");\n\t}\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"install.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/registry/install.ts"],"sourcesContent":["/**\n * Registry plugin install endpoint\n *\n * POST /_emdash/api/admin/plugins/registry/install\n *\n * Installs a plugin from the experimental decentralized plugin registry\n * (see RFC 0001). The browser resolves `(handle, slug) → (did, slug)`\n * via the aggregator before posting and sends the publisher DID\n * directly; the server skips the resolvePackage round-trip and looks\n * up the package by DID. Sending DID rather than handle means installs\n * work for publishers whose handle the aggregator couldn't resolve at\n * view time (handle is best-effort per the lexicon).\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 { handleRegistryInstall } from \"#api/index.js\";\nimport { isParseError, parseBody } from \"#api/parse.js\";\n\nexport const prerender = false;\n\nconst installBodySchema = z.object({\n\t/**\n\t * Publisher DID. Required. Browser is expected to resolve\n\t * `(handle, slug) → did` against the aggregator before posting.\n\t */\n\tdid: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(2048)\n\t\t// Loose match -- atproto DID specs allow `did:plc:*` and\n\t\t// `did:web:*` plus future methods. Reject anything that\n\t\t// doesn't even start with `did:` rather than enumerating\n\t\t// methods here; downstream lexicon validation tightens.\n\t\t.regex(/^did:[a-z]+:/, \"Invalid DID\"),\n\t/** Package slug. */\n\tslug: z\n\t\t.string()\n\t\t.min(1)\n\t\t.max(64)\n\t\t// Mirrors the lexicon's slug grammar: ASCII letter followed by\n\t\t// letters / digits / `-` / `_`. Rejects anything that could\n\t\t// confuse the R2 prefix or the URL.\n\t\t.regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/, \"Invalid slug\"),\n\t/** Optional explicit version. Defaults to the aggregator's latest. */\n\tversion: z.string().min(1).max(64).optional(),\n\t/**\n\t * Capabilities the admin acknowledged in the consent dialog, lifted\n\t * from the release record's declaredAccess block at browse time.\n\t * Compared against the bundle's manifest to detect drift between the\n\t * dialog and the install POST.\n\t */\n\tacknowledgedDeclaredAccess: z.unknown().optional(),\n});\n\nexport const POST: APIRoute = async ({ request, locals }) => {\n\ttry {\n\t\tconst { emdash, user } = locals;\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\tconst body = await parseBody(request, installBodySchema);\n\t\tif (isParseError(body)) return body;\n\n\t\t// Block registry installs whose derived `pluginId` collides with\n\t\t// any build-time-reserved id: configured (in-process) plugins, and\n\t\t// sandboxed plugins declared in `config.sandboxed`. The runtime\n\t\t// caches sandboxed plugins by id; a registry install at the same\n\t\t// id would silently shadow or coexist with the build-time entry.\n\t\tconst reservedPluginIds = new Set<string>([\n\t\t\t...emdash.configuredPlugins.map((p: { id: string }) => p.id),\n\t\t\t...(emdash.config.sandboxed ?? []).map((p: { id: string }) => p.id),\n\t\t]);\n\n\t\tconst result = await handleRegistryInstall(\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\t{\n\t\t\t\tdid: body.did,\n\t\t\t\tslug: body.slug,\n\t\t\t\tversion: body.version,\n\t\t\t\tacknowledgedDeclaredAccess: body.acknowledgedDeclaredAccess,\n\t\t\t},\n\t\t\t{ configuredPluginIds: reservedPluginIds },\n\t\t);\n\n\t\tif (!result.success) return unwrapResult(result);\n\n\t\t// Sync runtime so the new plugin becomes active without a worker restart.\n\t\tawait emdash.syncRegistryPlugins();\n\n\t\treturn unwrapResult(result, 201);\n\t} catch (error) {\n\t\tconsole.error(\"[registry-install] Unhandled error:\", error);\n\t\treturn handleError(error, \"Failed to install plugin from registry\", \"INSTALL_FAILED\");\n\t}\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,YAAY;AAEzB,MAAM,oBAAoB,EAAE,OAAO;CAKlC,KAAK,EACH,QAAQ,CACR,IAAI,EAAE,CACN,IAAI,KAAK,CAKT,MAAM,gBAAgB,cAAc;CAEtC,MAAM,EACJ,QAAQ,CACR,IAAI,EAAE,CACN,IAAI,GAAG,CAIP,MAAM,4BAA4B,eAAe;CAEnD,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,GAAG,CAAC,UAAU;CAO7C,4BAA4B,EAAE,SAAS,CAAC,UAAU;CAClD,CAAC;AAEF,MAAa,OAAiB,OAAO,EAAE,SAAS,aAAa;AAC5D,KAAI;EACH,MAAM,EAAE,QAAQ,SAAS;AAEzB,MAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;EAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,MAAI,OAAQ,QAAO;EAEnB,MAAM,OAAO,MAAM,UAAU,SAAS,kBAAkB;AACxD,MAAI,aAAa,KAAK,CAAE,QAAO;EAO/B,MAAM,oBAAoB,IAAI,IAAY,CACzC,GAAG,OAAO,kBAAkB,KAAK,MAAsB,EAAE,GAAG,EAC5D,IAAI,OAAO,OAAO,aAAa,EAAE,EAAE,KAAK,MAAsB,EAAE,GAAG,CACnE,CAAC;EAEF,MAAM,SAAS,MAAM,sBACpB,OAAO,IACP,OAAO,SACP,OAAO,kBAAkB,EACzB,OAAO,OAAO,cAAc,UAC5B;GACC,KAAK,KAAK;GACV,MAAM,KAAK;GACX,SAAS,KAAK;GACd,4BAA4B,KAAK;GACjC,EACD,EAAE,qBAAqB,mBAAmB,CAC1C;AAED,MAAI,CAAC,OAAO,QAAS,QAAO,aAAa,OAAO;AAGhD,QAAM,OAAO,qBAAqB;AAElC,SAAO,aAAa,QAAQ,IAAI;UACxB,OAAO;AACf,UAAQ,MAAM,uCAAuC,MAAM;AAC3D,SAAO,YAAY,OAAO,0CAA0C,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.d.mts","names":[],"sources":["../../../../../../src/astro/routes/api/admin/plugins/updates.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"updates.d.mts","names":[],"sources":["../../../../../../src/astro/routes/api/admin/plugins/updates.ts"],"mappings":";;;cAoBa,SAAA;AAAA,cAEA,GAAA,EAAK,QAAA"}
|