emdash 0.15.0 → 0.16.1
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/api/route-utils.mjs +10 -10
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-CLwG_3dh.mjs → api-BNKqxyFX.mjs} +54 -14
- package/dist/{api-CLwG_3dh.mjs.map → api-BNKqxyFX.mjs.map} +1 -1
- package/dist/{apply-wJhM_bwU.mjs → apply-BOPaD-s9.mjs} +16 -16
- package/dist/{apply-wJhM_bwU.mjs.map → apply-BOPaD-s9.mjs.map} +1 -1
- package/dist/astro/index.d.mts +3 -3
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +33 -1
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +3 -3
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/request-context.mjs +1 -1
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +66 -46
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +8 -8
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +6 -6
- 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 +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/index.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +41 -28
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.d.mts +8 -0
- package/dist/astro/routes/api/admin/plugins/registry/artifact.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +301 -0
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -0
- package/dist/astro/routes/api/admin/plugins/registry/install.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +46 -28
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +27 -27
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +27 -27
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +27 -27
- 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 +3 -3
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +3 -3
- package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/index.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +6 -6
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +4 -4
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/index.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/import/probe.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +11 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +17 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs.map +1 -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 +7 -7
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +5 -5
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +26 -26
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +4 -4
- 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 +4 -4
- package/dist/astro/routes/api/media.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/items.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/translations.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_.mjs +5 -5
- package/dist/astro/routes/api/menus/index.mjs +5 -5
- package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/code.mjs +4 -4
- package/dist/astro/routes/api/oauth/device/token.mjs +4 -4
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
- package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
- package/dist/astro/routes/api/oauth/token.mjs +2 -2
- package/dist/astro/routes/api/openapi.json.mjs +2 -2
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
- package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
- package/dist/astro/routes/api/redirects/_id_.mjs +7 -7
- package/dist/astro/routes/api/redirects/index.mjs +7 -7
- 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 +27 -27
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +27 -27
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +27 -27
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +27 -27
- package/dist/astro/routes/api/schema/collections/index.mjs +27 -27
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +27 -27
- package/dist/astro/routes/api/schema/orphans/index.mjs +27 -27
- package/dist/astro/routes/api/search/enable.mjs +7 -7
- package/dist/astro/routes/api/search/index.mjs +6 -6
- package/dist/astro/routes/api/search/rebuild.mjs +7 -7
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +6 -6
- package/dist/astro/routes/api/sections/_slug_.mjs +6 -6
- package/dist/astro/routes/api/sections/index.mjs +6 -6
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +8 -8
- package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
- package/dist/astro/routes/api/setup/admin.mjs +3 -3
- package/dist/astro/routes/api/setup/dev-bypass.mjs +15 -15
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +16 -16
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +4 -4
- package/dist/astro/routes/api/snapshot.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +9 -9
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +9 -9
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +9 -9
- package/dist/astro/routes/api/taxonomies/index.mjs +9 -9
- package/dist/astro/routes/api/themes/preview.mjs +3 -3
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +4 -4
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/index.mjs +6 -6
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +4 -4
- package/dist/astro/routes/sitemap-_collection_.xml.d.mts.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +58 -13
- package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
- package/dist/astro/routes/sitemap.xml.mjs +5 -5
- package/dist/astro/types.d.mts +10 -3
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/{authorize-Bkwe8kuL.mjs → authorize-Bn4S4DUT.mjs} +2 -2
- package/dist/{authorize-Bkwe8kuL.mjs.map → authorize-Bn4S4DUT.mjs.map} +1 -1
- package/dist/{byline-CTaWkMh5.mjs → byline-BDylH_m4.mjs} +3 -3
- package/dist/{byline-CTaWkMh5.mjs.map → byline-BDylH_m4.mjs.map} +1 -1
- package/dist/{bylines-H0Xh5TMy.mjs → bylines-B7TFEvFf.mjs} +2 -2
- package/dist/{bylines-H0Xh5TMy.mjs.map → bylines-B7TFEvFf.mjs.map} +1 -1
- package/dist/{bylines-DtDRNF1n.d.mts → bylines-DWLnr6-k.d.mts} +17 -17
- package/dist/{bylines-DtDRNF1n.d.mts.map → bylines-DWLnr6-k.d.mts.map} +1 -1
- package/dist/{bylines-BYHWU3T7.mjs → bylines-n6nykUyI.mjs} +6 -6
- package/dist/{bylines-BYHWU3T7.mjs.map → bylines-n6nykUyI.mjs.map} +1 -1
- package/dist/{cache-CNk1jIxp.mjs → cache-BcI1yUjR.mjs} +2 -2
- package/dist/{cache-CNk1jIxp.mjs.map → cache-BcI1yUjR.mjs.map} +1 -1
- package/dist/{chunks-BkfVdD-3.mjs → chunks-cYG4SnIP.mjs} +2 -2
- package/dist/{chunks-BkfVdD-3.mjs.map → chunks-cYG4SnIP.mjs.map} +1 -1
- package/dist/cli/index.mjs +61 -15
- 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/{comment-_yzlBYPx.mjs → comment-C76G-9tz.mjs} +2 -2
- package/dist/{comment-_yzlBYPx.mjs.map → comment-C76G-9tz.mjs.map} +1 -1
- package/dist/{comments-DxID-rsd.mjs → comments-CCxFFGY1.mjs} +3 -3
- package/dist/{comments-DxID-rsd.mjs.map → comments-CCxFFGY1.mjs.map} +1 -1
- package/dist/{content-C0ooIs-f.mjs → content-8voQNTXX.mjs} +3 -3
- package/dist/{content-C0ooIs-f.mjs.map → content-8voQNTXX.mjs.map} +1 -1
- package/dist/{context-sAnCaUIR.mjs → context-B7qiYrz2.mjs} +7 -7
- package/dist/{context-sAnCaUIR.mjs.map → context-B7qiYrz2.mjs.map} +1 -1
- package/dist/{dashboard-Cqw3ay2X.mjs → dashboard-BeaFSPpx.mjs} +4 -4
- package/dist/{dashboard-Cqw3ay2X.mjs.map → dashboard-BeaFSPpx.mjs.map} +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/db/sqlite.mjs +1 -1
- package/dist/{db-errors-CGN9kJfo.mjs → db-errors-BiYqoX-n.mjs} +14 -2
- package/dist/db-errors-BiYqoX-n.mjs.map +1 -0
- package/dist/{error-CPh_8eLq.mjs → error-ChfADBuu.mjs} +5 -3
- package/dist/error-ChfADBuu.mjs.map +1 -0
- package/dist/errors-9P_FDrJ_.mjs +17 -0
- package/dist/errors-9P_FDrJ_.mjs.map +1 -0
- package/dist/{fts-manager-Mnrtn-r2.mjs → fts-manager-C_b-4x8u.mjs} +2 -2
- package/dist/{fts-manager-Mnrtn-r2.mjs.map → fts-manager-C_b-4x8u.mjs.map} +1 -1
- package/dist/{index-Bv1Wf1zB.d.mts → index-D_p_jIP1.d.mts} +153 -109
- package/dist/index-D_p_jIP1.d.mts.map +1 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +38 -38
- package/dist/{load-DmXNVhst.mjs → load-CLFRjk9r.mjs} +2 -2
- package/dist/{load-DmXNVhst.mjs.map → load-CLFRjk9r.mjs.map} +1 -1
- package/dist/{loader-Chm5h7Gr.mjs → loader-D-vIJjfY.mjs} +86 -46
- package/dist/loader-D-vIJjfY.mjs.map +1 -0
- package/dist/media/local-runtime.d.mts +3 -3
- package/dist/media/local-runtime.mjs +4 -4
- package/dist/{media-oqRcNiQf.mjs → media-CKQd8AYU.mjs} +2 -2
- package/dist/{media-oqRcNiQf.mjs.map → media-CKQd8AYU.mjs.map} +1 -1
- package/dist/{menus-C75SSmRy.mjs → menus-C-nWT5Tu.mjs} +17 -11
- package/dist/menus-C-nWT5Tu.mjs.map +1 -0
- package/dist/{menus-Bjf5R1Qq.mjs → menus-arUNspyU.mjs} +2 -2
- package/dist/{menus-Bjf5R1Qq.mjs.map → menus-arUNspyU.mjs.map} +1 -1
- package/dist/{parse-3-caTKgt.mjs → parse-DHbXfvxO.mjs} +2 -2
- package/dist/{parse-3-caTKgt.mjs.map → parse-DHbXfvxO.mjs.map} +1 -1
- package/dist/plugin-utils.d.mts +25 -10
- package/dist/plugin-utils.d.mts.map +1 -1
- package/dist/plugin-utils.mjs +11 -10
- package/dist/plugin-utils.mjs.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +3 -3
- package/dist/{query-BJn8TOPk.mjs → query-7m6-l0f_.mjs} +21 -14
- package/dist/query-7m6-l0f_.mjs.map +1 -0
- package/dist/{rate-limit-D_-gAeJ0.mjs → rate-limit-D8RAXN8b.mjs} +2 -2
- package/dist/{rate-limit-D_-gAeJ0.mjs.map → rate-limit-D8RAXN8b.mjs.map} +1 -1
- package/dist/{redirect-CNv4mHX2.mjs → redirect-CjfDGrTd.mjs} +2 -2
- package/dist/{redirect-CNv4mHX2.mjs.map → redirect-CjfDGrTd.mjs.map} +1 -1
- package/dist/{redirects-B-CUZ1Xh.mjs → redirects-CowoEHdE.mjs} +3 -3
- package/dist/{redirects-B-CUZ1Xh.mjs.map → redirects-CowoEHdE.mjs.map} +1 -1
- package/dist/{registry-DqrAQDXH.mjs → registry-Cyp-dx6J.mjs} +4 -4
- package/dist/{registry-DqrAQDXH.mjs.map → registry-Cyp-dx6J.mjs.map} +1 -1
- package/dist/resolve-D6sM-SgF.mjs +143 -0
- package/dist/resolve-D6sM-SgF.mjs.map +1 -0
- package/dist/{runner-CNHRo1mT.d.mts → runner-DSQBurMS.d.mts} +7 -4
- package/dist/runner-DSQBurMS.d.mts.map +1 -0
- package/dist/{runner-CGlojznK.mjs → runner-Drnvs96u.mjs} +20 -24
- package/dist/{runner-CGlojznK.mjs.map → runner-Drnvs96u.mjs.map} +1 -1
- package/dist/runtime.d.mts +3 -3
- package/dist/runtime.mjs +2 -2
- package/dist/{schema-Djdlfi5G.mjs → schema-CI9mYPX3.mjs} +4 -4
- package/dist/{schema-Djdlfi5G.mjs.map → schema-CI9mYPX3.mjs.map} +1 -1
- package/dist/{search-By-NN3da.mjs → search-DKz_mGBP.mjs} +4 -4
- package/dist/{search-By-NN3da.mjs.map → search-DKz_mGBP.mjs.map} +1 -1
- package/dist/{sections-DcBIlOq1.mjs → sections-DBbCDIAT.mjs} +3 -3
- package/dist/{sections-DcBIlOq1.mjs.map → sections-DBbCDIAT.mjs.map} +1 -1
- package/dist/seed/index.mjs +13 -13
- package/dist/{seo-bjDoq9Eg.mjs → seo-BGCyDlkb.mjs} +2 -2
- package/dist/{seo-bjDoq9Eg.mjs.map → seo-BGCyDlkb.mjs.map} +1 -1
- package/dist/{seo-BoR4wCUh.mjs → seo-Dq707mNQ.mjs} +5 -3
- package/dist/seo-Dq707mNQ.mjs.map +1 -0
- package/dist/{service-BuuTdGAT.mjs → service-B0H7U1Y9.mjs} +2 -2
- package/dist/{service-BuuTdGAT.mjs.map → service-B0H7U1Y9.mjs.map} +1 -1
- package/dist/{settings-hcubRfkr.mjs → settings-BSXRtTzk.mjs} +3 -3
- package/dist/{settings-hcubRfkr.mjs.map → settings-BSXRtTzk.mjs.map} +1 -1
- package/dist/{settings-CJnKiWuR.mjs → settings-DfwNyQkf.mjs} +3 -3
- package/dist/{settings-CJnKiWuR.mjs.map → settings-DfwNyQkf.mjs.map} +1 -1
- package/dist/{taxonomies-CLs9HPE2.mjs → taxonomies-4vx0nmMr.mjs} +4 -4
- package/dist/{taxonomies-CLs9HPE2.mjs.map → taxonomies-4vx0nmMr.mjs.map} +1 -1
- package/dist/{taxonomies-WamPVA2x.mjs → taxonomies-CcvrMLbR.mjs} +7 -7
- package/dist/{taxonomies-WamPVA2x.mjs.map → taxonomies-CcvrMLbR.mjs.map} +1 -1
- package/dist/{taxonomy-D4Uc2LsZ.mjs → taxonomy-zqGQUqgu.mjs} +3 -3
- package/dist/{taxonomy-D4Uc2LsZ.mjs.map → taxonomy-zqGQUqgu.mjs.map} +1 -1
- package/dist/{transport-DOxLfUir.d.mts → transport-C2MGqtL6.d.mts} +1 -1
- package/dist/{transport-DOxLfUir.d.mts.map → transport-C2MGqtL6.d.mts.map} +1 -1
- package/dist/{types-ByV5sgsv.mjs → types-B0bmgwMG.mjs} +2 -2
- package/dist/{types-ByV5sgsv.mjs.map → types-B0bmgwMG.mjs.map} +1 -1
- package/dist/{user-D3BD5zdT.mjs → user-hUSOaIJy.mjs} +2 -2
- package/dist/{user-D3BD5zdT.mjs.map → user-hUSOaIJy.mjs.map} +1 -1
- package/dist/{validate-mz87i8_1.mjs → validate-IGltez8n.mjs} +2 -2
- package/dist/{validate-mz87i8_1.mjs.map → validate-IGltez8n.mjs.map} +1 -1
- package/dist/{validation-DKHhXjPr.mjs → validation-Bmymau7y.mjs} +6 -6
- package/dist/{validation-DKHhXjPr.mjs.map → validation-Bmymau7y.mjs.map} +1 -1
- package/dist/version-ITD3PlQd.mjs +7 -0
- package/dist/{version-Ct7C6RSo.mjs.map → version-ITD3PlQd.mjs.map} +1 -1
- package/dist/{widgets-lShIQXU5.mjs → widgets-yHQa4c6c.mjs} +2 -2
- package/dist/{widgets-lShIQXU5.mjs.map → widgets-yHQa4c6c.mjs.map} +1 -1
- package/dist/{zod-generator-dvxgmd1M.mjs → zod-generator-B80aap1J.mjs} +2 -2
- package/dist/{zod-generator-dvxgmd1M.mjs.map → zod-generator-B80aap1J.mjs.map} +1 -1
- package/package.json +7 -7
- package/src/api/errors.ts +2 -0
- package/src/api/handlers/index.ts +2 -0
- package/src/api/handlers/registry.ts +69 -1
- package/src/api/handlers/seo.ts +16 -1
- package/src/api/handlers/snapshot.ts +1 -1
- package/src/astro/integration/index.ts +26 -0
- package/src/astro/integration/routes.ts +5 -0
- package/src/astro/integration/runtime.ts +8 -0
- package/src/astro/middleware.ts +4 -0
- package/src/astro/public-plugin-api-routes.ts +41 -0
- package/src/astro/routes/api/admin/plugins/registry/[id]/update.ts +4 -0
- package/src/astro/routes/api/admin/plugins/registry/artifact.ts +388 -0
- package/src/astro/routes/api/admin/plugins/registry/install.ts +7 -1
- package/src/astro/routes/api/import/wordpress/rewrite-url-helpers.ts +22 -0
- package/src/astro/routes/api/import/wordpress/rewrite-urls.ts +5 -2
- package/src/astro/routes/sitemap-[collection].xml.ts +114 -14
- package/src/astro/types.ts +14 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +35 -11
- package/src/database/connection.ts +3 -10
- package/src/database/errors.ts +14 -0
- package/src/database/index.ts +3 -1
- package/src/database/migrations/runner.ts +29 -21
- package/src/emdash-runtime.ts +1 -0
- package/src/i18n/resolve.ts +152 -0
- package/src/index.ts +2 -0
- package/src/loader.ts +133 -59
- package/src/plugin-utils.ts +23 -0
- package/src/query.ts +24 -5
- package/src/utils/db-errors.ts +24 -0
- package/dist/connection-2igzM-AT.mjs +0 -57
- package/dist/connection-2igzM-AT.mjs.map +0 -1
- package/dist/db-errors-CGN9kJfo.mjs.map +0 -1
- package/dist/error-CPh_8eLq.mjs.map +0 -1
- package/dist/index-Bv1Wf1zB.d.mts.map +0 -1
- package/dist/loader-Chm5h7Gr.mjs.map +0 -1
- package/dist/menus-C75SSmRy.mjs.map +0 -1
- package/dist/query-BJn8TOPk.mjs.map +0 -1
- package/dist/resolve-Cj98DuqN.mjs +0 -39
- package/dist/resolve-Cj98DuqN.mjs.map +0 -1
- package/dist/runner-CNHRo1mT.d.mts.map +0 -1
- package/dist/seo-BoR4wCUh.mjs.map +0 -1
- package/dist/version-Ct7C6RSo.mjs +0 -7
package/dist/api/route-utils.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../dialect-helpers-BKCvISIQ.mjs";
|
|
2
|
-
import "../content-
|
|
2
|
+
import "../content-8voQNTXX.mjs";
|
|
3
3
|
import "../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../types-
|
|
5
|
-
import "../media-
|
|
6
|
-
import "../user-
|
|
4
|
+
import "../types-B0bmgwMG.mjs";
|
|
5
|
+
import "../media-CKQd8AYU.mjs";
|
|
6
|
+
import "../user-hUSOaIJy.mjs";
|
|
7
7
|
import { t as OptionsRepository } from "../options-BL4X94qY.mjs";
|
|
8
|
-
import { r as createStorageAccess } from "../context-
|
|
9
|
-
import "../seo-
|
|
8
|
+
import { r as createStorageAccess } from "../context-B7qiYrz2.mjs";
|
|
9
|
+
import "../seo-BGCyDlkb.mjs";
|
|
10
10
|
import "../request-cache-dzCt8TZB.mjs";
|
|
11
|
-
import "../loader-
|
|
12
|
-
import "../settings-
|
|
11
|
+
import "../loader-D-vIJjfY.mjs";
|
|
12
|
+
import "../settings-BSXRtTzk.mjs";
|
|
13
13
|
import "../ssrf-MZ-zrG6-.mjs";
|
|
14
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../error-
|
|
15
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-
|
|
14
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../error-ChfADBuu.mjs";
|
|
15
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-DHbXfvxO.mjs";
|
|
16
16
|
import "../ssrf-BIcd-aXW.mjs";
|
|
17
17
|
import "../cron-Bd3b3iuj.mjs";
|
|
18
18
|
import { n as getPublicOrigin } from "../public-url-CUWWFME2.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as searchSuggestQuery, $n as localeFilterQuery, $t as collectionListResponseSchema, A as allowedDomainCreateBody, An as contentItemSchema, At as authMeActionBody, B as setupAtprotoAdminBody, Bn as contentTranslationSchema, Bt as signupCompleteBody, C as createWidgetBody, Cn as mediaProviderListQuery, Ct as menuListItemSchema, D as widgetAreaWithWidgetsAndCountSchema, Dn as mediaUploadUrlResponseSchema, Dt as reorderMenuItemsBody, E as widgetAreaSchema, En as mediaUploadUrlBody, Et as menuWithItemsSchema, F as userUpdateBody, Fn as contentResponseSchema, Ft as passkeyOptionsBody, G as wpPluginExecuteBody, Gn as trashedContentListResponseSchema, Gt as commentCountsResponseSchema, H as importProbeBody, Hn as contentTrashQuery, Ht as adminCommentListResponseSchema, I as usersListQuery, In as contentScheduleBody, It as passkeyRegisterOptionsBody, J as searchEnableBody, Jn as countResponseSchema, Jt as commentStatusBody, K as wpPrepareBody, Kn as VALID_ROLE_LEVELS, Kt as commentListQuery, L as atprotoLoginBody, Ln as contentSeoInput, Lt as passkeyRegisterVerifyBody, M as userDetailSchema, Mn as contentListResponseSchema, Mt as inviteCreateBody, N as userListResponseSchema, Nn as contentPreviewUrlBody, Nt as inviteRegisterOptionsBody, O as widgetAreaWithWidgetsSchema, On as contentCompareResponseSchema, Ot as updateMenuBody, P as userSchema, Pn as contentPublishBody, Pt as magicLinkSendBody, Q as searchResultSchema, Qn as localeCode, Qt as collectionGetQuery, R as setupAdminBody, Rn as contentSeoSchema, Rt as passkeyRenameBody, S as createWidgetAreaBody, Sn as mediaListResponseSchema, St as menuItemTypeEnum, T as updateWidgetBody, Tn as mediaUpdateBody, Tt as menuTranslationsSchema, U as wpMediaImportBody, Un as contentUpdateBody, Ut as commentBulkBody, V as setupBody, Vn as contentTranslationsResponseSchema, Vt as signupRequestBody, W as wpPluginAnalyzeBody, Wn as trashedContentItemSchema, Wt as commentBulkResponseSchema, X as searchRebuildBody, Xn as deleteResponseSchema, Xt as publicCommentListResponseSchema, Y as searchQuery, Yn as cursorPaginationQuery, Yt as createCommentBody, Z as searchResponseSchema, Zn as httpUrl, Zt as publicCommentSchema, _ as notFoundSummarySchema, _n as mediaConfirmBody, _t as termWithCountSchema, a as bylineTranslationCreateBody, an as fieldListResponseSchema, at as sectionsListQuery, b as redirectsListQuery, bn as mediaItemSchema, bt as createMenuItemBody, c as bylinesListQuery, cn as fieldSchema, ct as createTermBody, d as notFoundEntrySchema, dn as orphanedTableSchema, dt as taxonomyListResponseSchema, en as collectionResponseSchema, er as offsetPaginationQuery, et as settingsUpdateBody, f as notFoundListQuery, fn as schemaExportQuery, ft as termGetResponseSchema, g as notFoundSummaryResponseSchema, gn as formatFileSize, gt as termTranslationsSchema, h as notFoundSummaryQuery, hn as DEFAULT_MAX_UPLOAD_SIZE, ht as termSchema, i as bylineSummarySchema, in as createFieldBody, it as sectionSchema, j as allowedDomainUpdateBody, jn as contentListQuery, jt as inviteCompleteBody, k as widgetSchema, kn as contentCreateBody, kt as updateMenuItemBody, l as contentBylineInputSchema, ln as orphanRegisterBody, lt as taxonomyDefSchema, m as notFoundPruneBody, mn as updateFieldBody, mt as termResponseSchema, n as bylineCreditSchema, nn as collectionWithFieldsResponseSchema, nr as slugPattern, nt as createSectionBody, o as bylineTranslationsResponseSchema, on as fieldReorderBody, ot as updateSectionBody, p as notFoundListResponseSchema, pn as updateCollectionBody, pt as termListResponseSchema, q as wpRewriteUrlsBody, qn as apiErrorSchema, qt as commentSchema, r as bylineListResponseSchema, rn as createCollectionBody, rr as successEnvelope, rt as sectionListResponseSchema, s as bylineUpdateBody, sn as fieldResponseSchema, st as createTaxonomyDefBody, t as bylineCreateBody, tn as collectionSchema, tr as roleLevel, tt as siteSettingsSchema, u as createRedirectBody, un as orphanedTableListResponseSchema, ut as taxonomyDefTranslationsSchema, v as redirectListResponseSchema, vn as mediaConfirmResponseSchema, vt as updateTermBody, w as reorderWidgetsBody, wn as mediaResponseSchema, wt as menuSchema, x as updateRedirectBody, xn as mediaListQuery, xt as menuItemSchema, y as redirectSchema, yn as mediaExistingResponseSchema, yt as createMenuBody, z as setupAdminVerifyBody, zn as contentTermsBody, zt as passkeyVerifyBody } from "../../bylines-
|
|
1
|
+
import { $ as searchSuggestQuery, $n as localeFilterQuery, $t as collectionListResponseSchema, A as allowedDomainCreateBody, An as contentItemSchema, At as authMeActionBody, B as setupAtprotoAdminBody, Bn as contentTranslationSchema, Bt as signupCompleteBody, C as createWidgetBody, Cn as mediaProviderListQuery, Ct as menuListItemSchema, D as widgetAreaWithWidgetsAndCountSchema, Dn as mediaUploadUrlResponseSchema, Dt as reorderMenuItemsBody, E as widgetAreaSchema, En as mediaUploadUrlBody, Et as menuWithItemsSchema, F as userUpdateBody, Fn as contentResponseSchema, Ft as passkeyOptionsBody, G as wpPluginExecuteBody, Gn as trashedContentListResponseSchema, Gt as commentCountsResponseSchema, H as importProbeBody, Hn as contentTrashQuery, Ht as adminCommentListResponseSchema, I as usersListQuery, In as contentScheduleBody, It as passkeyRegisterOptionsBody, J as searchEnableBody, Jn as countResponseSchema, Jt as commentStatusBody, K as wpPrepareBody, Kn as VALID_ROLE_LEVELS, Kt as commentListQuery, L as atprotoLoginBody, Ln as contentSeoInput, Lt as passkeyRegisterVerifyBody, M as userDetailSchema, Mn as contentListResponseSchema, Mt as inviteCreateBody, N as userListResponseSchema, Nn as contentPreviewUrlBody, Nt as inviteRegisterOptionsBody, O as widgetAreaWithWidgetsSchema, On as contentCompareResponseSchema, Ot as updateMenuBody, P as userSchema, Pn as contentPublishBody, Pt as magicLinkSendBody, Q as searchResultSchema, Qn as localeCode, Qt as collectionGetQuery, R as setupAdminBody, Rn as contentSeoSchema, Rt as passkeyRenameBody, S as createWidgetAreaBody, Sn as mediaListResponseSchema, St as menuItemTypeEnum, T as updateWidgetBody, Tn as mediaUpdateBody, Tt as menuTranslationsSchema, U as wpMediaImportBody, Un as contentUpdateBody, Ut as commentBulkBody, V as setupBody, Vn as contentTranslationsResponseSchema, Vt as signupRequestBody, W as wpPluginAnalyzeBody, Wn as trashedContentItemSchema, Wt as commentBulkResponseSchema, X as searchRebuildBody, Xn as deleteResponseSchema, Xt as publicCommentListResponseSchema, Y as searchQuery, Yn as cursorPaginationQuery, Yt as createCommentBody, Z as searchResponseSchema, Zn as httpUrl, Zt as publicCommentSchema, _ as notFoundSummarySchema, _n as mediaConfirmBody, _t as termWithCountSchema, a as bylineTranslationCreateBody, an as fieldListResponseSchema, at as sectionsListQuery, b as redirectsListQuery, bn as mediaItemSchema, bt as createMenuItemBody, c as bylinesListQuery, cn as fieldSchema, ct as createTermBody, d as notFoundEntrySchema, dn as orphanedTableSchema, dt as taxonomyListResponseSchema, en as collectionResponseSchema, er as offsetPaginationQuery, et as settingsUpdateBody, f as notFoundListQuery, fn as schemaExportQuery, ft as termGetResponseSchema, g as notFoundSummaryResponseSchema, gn as formatFileSize, gt as termTranslationsSchema, h as notFoundSummaryQuery, hn as DEFAULT_MAX_UPLOAD_SIZE, ht as termSchema, i as bylineSummarySchema, in as createFieldBody, it as sectionSchema, j as allowedDomainUpdateBody, jn as contentListQuery, jt as inviteCompleteBody, k as widgetSchema, kn as contentCreateBody, kt as updateMenuItemBody, l as contentBylineInputSchema, ln as orphanRegisterBody, lt as taxonomyDefSchema, m as notFoundPruneBody, mn as updateFieldBody, mt as termResponseSchema, n as bylineCreditSchema, nn as collectionWithFieldsResponseSchema, nr as slugPattern, nt as createSectionBody, o as bylineTranslationsResponseSchema, on as fieldReorderBody, ot as updateSectionBody, p as notFoundListResponseSchema, pn as updateCollectionBody, pt as termListResponseSchema, q as wpRewriteUrlsBody, qn as apiErrorSchema, qt as commentSchema, r as bylineListResponseSchema, rn as createCollectionBody, rr as successEnvelope, rt as sectionListResponseSchema, s as bylineUpdateBody, sn as fieldResponseSchema, st as createTaxonomyDefBody, t as bylineCreateBody, tn as collectionSchema, tr as roleLevel, tt as siteSettingsSchema, u as createRedirectBody, un as orphanedTableListResponseSchema, ut as taxonomyDefTranslationsSchema, v as redirectListResponseSchema, vn as mediaConfirmResponseSchema, vt as updateTermBody, w as reorderWidgetsBody, wn as mediaResponseSchema, wt as menuSchema, x as updateRedirectBody, xn as mediaListQuery, xt as menuItemSchema, y as redirectSchema, yn as mediaExistingResponseSchema, yt as createMenuBody, z as setupAdminVerifyBody, zn as contentTermsBody, zt as passkeyVerifyBody } from "../../bylines-DWLnr6-k.mjs";
|
|
2
2
|
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineListResponseSchema, bylineSummarySchema, bylineTranslationCreateBody, bylineTranslationsResponseSchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { r as validatePluginIdentifier, t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { n as getI18nConfig, r as isI18nEnabled } from "./config-CVssduLe.mjs";
|
|
3
|
-
import { r as RevisionRepository, t as ContentRepository } from "./content-
|
|
3
|
+
import { r as RevisionRepository, t as ContentRepository } from "./content-8voQNTXX.mjs";
|
|
4
4
|
import { r as encodeBase64, t as decodeBase64 } from "./base64-CqR-7kqF.mjs";
|
|
5
|
-
import { n as InvalidCursorError, t as EmDashValidationError } from "./types-
|
|
6
|
-
import { t as MediaRepository } from "./media-
|
|
7
|
-
import { t as CommentRepository } from "./comment-
|
|
5
|
+
import { n as InvalidCursorError, t as EmDashValidationError } from "./types-B0bmgwMG.mjs";
|
|
6
|
+
import { t as MediaRepository } from "./media-CKQd8AYU.mjs";
|
|
7
|
+
import { t as CommentRepository } from "./comment-C76G-9tz.mjs";
|
|
8
8
|
import { t as withTransaction } from "./transaction-NQj4VJ7Z.mjs";
|
|
9
|
-
import { t as RedirectRepository } from "./redirect-
|
|
10
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
11
|
-
import { t as BylineRepository } from "./byline-
|
|
12
|
-
import { t as SeoRepository } from "./seo-
|
|
13
|
-
import { r as invalidateRedirectCache } from "./cache-
|
|
14
|
-
import {
|
|
9
|
+
import { t as RedirectRepository } from "./redirect-CjfDGrTd.mjs";
|
|
10
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-cYG4SnIP.mjs";
|
|
11
|
+
import { t as BylineRepository } from "./byline-BDylH_m4.mjs";
|
|
12
|
+
import { t as SeoRepository } from "./seo-BGCyDlkb.mjs";
|
|
13
|
+
import { r as invalidateRedirectCache } from "./cache-BcI1yUjR.mjs";
|
|
14
|
+
import { n as isMissingTableError } from "./db-errors-BiYqoX-n.mjs";
|
|
15
15
|
import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-KV5TqkMN.mjs";
|
|
16
16
|
import { n as requestCached } from "./request-cache-dzCt8TZB.mjs";
|
|
17
17
|
import { n as hashString } from "./hash-DlUxGhQS.mjs";
|
|
18
|
-
import { n as SchemaRegistry, t as SchemaError } from "./registry-
|
|
18
|
+
import { n as SchemaRegistry, t as SchemaError } from "./registry-Cyp-dx6J.mjs";
|
|
19
19
|
import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-Czqf0TLu.mjs";
|
|
20
20
|
import { r as normalizeCapabilities } from "./types-1NNkmTIn.mjs";
|
|
21
21
|
import { t as EmDashStorageError } from "./types-Cd9UCu3t.mjs";
|
|
@@ -23,6 +23,7 @@ import { n as resolveAndValidateExternalUrl, t as SsrfError } from "./ssrf-MZ-zr
|
|
|
23
23
|
import { sql } from "kysely";
|
|
24
24
|
import { createGzipDecoder, unpackTar } from "modern-tar";
|
|
25
25
|
import { ClientResponseError, ClientValidationError } from "@atcute/client";
|
|
26
|
+
import { checkEnvCompatibility, findSkippedEnvConstraints } from "@emdash-cms/registry-client/env";
|
|
26
27
|
|
|
27
28
|
//#region src/api/rev.ts
|
|
28
29
|
/**
|
|
@@ -489,7 +490,7 @@ async function handleContentCreate(db, collection, body) {
|
|
|
489
490
|
});
|
|
490
491
|
if (body.bylines !== void 0) created.primaryBylineId = (await bylineRepo.setContentBylines(collection, created.id, body.bylines))[0]?.byline.translationGroup ?? null;
|
|
491
492
|
if (body.translationOf) {
|
|
492
|
-
const { TaxonomyRepository } = await import("./taxonomy-
|
|
493
|
+
const { TaxonomyRepository } = await import("./taxonomy-zqGQUqgu.mjs").then((n) => n.n);
|
|
493
494
|
await new TaxonomyRepository(trx).copyEntryTerms(collection, body.translationOf, created.id);
|
|
494
495
|
if (body.bylines === void 0) {
|
|
495
496
|
await bylineRepo.copyContentBylines(collection, body.translationOf, created.id);
|
|
@@ -3725,6 +3726,31 @@ async function fetchArtifact(mirrors, declaredUrl) {
|
|
|
3725
3726
|
}
|
|
3726
3727
|
throw new Error(`Failed to download artifact from any source. Tried:\n ${clientErrors.join("\n ")}`);
|
|
3727
3728
|
}
|
|
3729
|
+
/**
|
|
3730
|
+
* Gate a release's `requires` constraints against the running host
|
|
3731
|
+
* environment. `requires` is the lexicon-`unknown` value off the signed
|
|
3732
|
+
* release record — never trust its shape; `checkEnvCompatibility` guards it.
|
|
3733
|
+
*
|
|
3734
|
+
* Returns `null` when every advertised constraint is satisfied (or there are
|
|
3735
|
+
* none), or a structured `ENV_INCOMPATIBLE` error naming the unsatisfied
|
|
3736
|
+
* constraints and the host versions. The error carries the guarded `requires`
|
|
3737
|
+
* and `host` maps so the admin can render the same mismatch the UI gate shows.
|
|
3738
|
+
*/
|
|
3739
|
+
function assertEnvCompatible(requires, hostEnv) {
|
|
3740
|
+
for (const skipped of findSkippedEnvConstraints(requires, hostEnv)) console.warn(`[registry] env compatibility constraint skipped: ${skipped.key} requires ${skipped.required} but host version is ${skipped.reason}`);
|
|
3741
|
+
const mismatches = checkEnvCompatibility(requires, hostEnv);
|
|
3742
|
+
if (mismatches.length === 0) return null;
|
|
3743
|
+
const guarded = {};
|
|
3744
|
+
for (const m of mismatches) guarded[m.key] = m.required;
|
|
3745
|
+
return {
|
|
3746
|
+
code: "ENV_INCOMPATIBLE",
|
|
3747
|
+
message: `This release is not compatible with the current environment: ${mismatches.map((m) => `${m.key} requires ${m.required} but host is ${m.host}`).join("; ")}.`,
|
|
3748
|
+
details: {
|
|
3749
|
+
requires: guarded,
|
|
3750
|
+
host: hostEnv
|
|
3751
|
+
}
|
|
3752
|
+
};
|
|
3753
|
+
}
|
|
3728
3754
|
async function handleRegistryInstall(db, storage, sandboxRunner, registryConfigInput, input, opts) {
|
|
3729
3755
|
const registryConfig = coerceRegistryConfig(registryConfigInput);
|
|
3730
3756
|
if (!registryConfig) return {
|
|
@@ -3836,6 +3862,13 @@ async function handleRegistryInstall(db, storage, sandboxRunner, registryConfigI
|
|
|
3836
3862
|
message: "This release has been withdrawn (security:yanked label)."
|
|
3837
3863
|
}
|
|
3838
3864
|
};
|
|
3865
|
+
if (opts?.hostEnv) {
|
|
3866
|
+
const envError = assertEnvCompatible(releaseView.release?.requires, opts.hostEnv);
|
|
3867
|
+
if (envError) return {
|
|
3868
|
+
success: false,
|
|
3869
|
+
error: envError
|
|
3870
|
+
};
|
|
3871
|
+
}
|
|
3839
3872
|
const minimumReleaseAge = registryConfig.policy?.minimumReleaseAge;
|
|
3840
3873
|
let minimumReleaseAgeSeconds = 0;
|
|
3841
3874
|
if (minimumReleaseAge !== void 0) try {
|
|
@@ -4206,6 +4239,13 @@ async function handleRegistryUpdate(db, storage, sandboxRunner, registryConfigIn
|
|
|
4206
4239
|
message: "Release has been yanked by a trusted labeller"
|
|
4207
4240
|
}
|
|
4208
4241
|
};
|
|
4242
|
+
if (opts?.hostEnv) {
|
|
4243
|
+
const envError = assertEnvCompatible(signedRelease.requires, opts.hostEnv);
|
|
4244
|
+
if (envError) return {
|
|
4245
|
+
success: false,
|
|
4246
|
+
error: envError
|
|
4247
|
+
};
|
|
4248
|
+
}
|
|
4209
4249
|
const declaredUrl = signedRelease.artifacts?.package?.url;
|
|
4210
4250
|
const declaredChecksum = signedRelease.artifacts?.package?.checksum;
|
|
4211
4251
|
if (!declaredUrl || !declaredChecksum) return {
|
|
@@ -4401,5 +4441,5 @@ async function handleRegistryUpdateCheck(db, registryConfigInput) {
|
|
|
4401
4441
|
}
|
|
4402
4442
|
|
|
4403
4443
|
//#endregion
|
|
4404
|
-
export {
|
|
4405
|
-
//# sourceMappingURL=api-
|
|
4444
|
+
export { handleContentGetIncludingTrashed as $, handleSchemaFieldCreate as A, handleMediaUpdate as B, handleOrphanedTableList as C, handleSchemaCollectionGet as D, handleSchemaCollectionDelete as E, handleSchemaFieldUpdate as F, handleContentCompare as G, handleRevisionList as H, handleMediaCreate as I, handleContentCreate as J, handleContentCountScheduled as K, handleMediaDelete as L, handleSchemaFieldGet as M, handleSchemaFieldList as N, handleSchemaCollectionList as O, handleSchemaFieldReorder as P, handleContentGet as Q, handleMediaGet as R, PluginStateRepository as S, handleSchemaCollectionCreate as T, handleRevisionRestore as U, handleRevisionGet as V, generateManifest as W, handleContentDiscardDraft as X, handleContentDelete as Y, handleContentDuplicate as Z, loadBundleFromR2 as _, handleRegistryUpdateCheck as a, handleContentSchedule as at, handlePluginGet as b, validateAggregatorUrl as c, handleContentUnschedule as ct, handleMarketplaceSearch as d, handleContentList as et, handleMarketplaceUninstall as f, handleThemeSearch as g, handleThemeGetDetail as h, handleRegistryUpdate as i, handleContentRestore as it, handleSchemaFieldDelete as j, handleSchemaCollectionUpdate as k, handleMarketplaceGetPlugin as l, handleContentUpdate as lt, handleMarketplaceUpdateCheck as m, handleRegistryInstall as n, handleContentPermanentDelete as nt, coerceRegistryConfig as o, handleContentTranslations as ot, handleMarketplaceUpdate as p, handleContentCountTrashed as q, handleRegistryUninstall as r, handleContentPublish as rt, normalizeRegistryConfig as s, handleContentUnpublish as st, assertSafeArtifactUrl as t, handleContentListTrashed as tt, handleMarketplaceInstall as u, validateRev as ut, handlePluginDisable as v, handleOrphanedTableRegister as w, handlePluginList as x, handlePluginEnable as y, handleMediaList as z };
|
|
4445
|
+
//# sourceMappingURL=api-BNKqxyFX.mjs.map
|