emdash 0.15.0 → 0.16.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.
Files changed (351) hide show
  1. package/dist/api/route-utils.mjs +10 -10
  2. package/dist/api/schemas/index.d.mts +1 -1
  3. package/dist/{api-CLwG_3dh.mjs → api-BNKqxyFX.mjs} +54 -14
  4. package/dist/{api-CLwG_3dh.mjs.map → api-BNKqxyFX.mjs.map} +1 -1
  5. package/dist/{apply-wJhM_bwU.mjs → apply-BOPaD-s9.mjs} +16 -16
  6. package/dist/{apply-wJhM_bwU.mjs.map → apply-BOPaD-s9.mjs.map} +1 -1
  7. package/dist/astro/index.d.mts +3 -3
  8. package/dist/astro/index.d.mts.map +1 -1
  9. package/dist/astro/index.mjs +33 -1
  10. package/dist/astro/index.mjs.map +1 -1
  11. package/dist/astro/middleware/auth.d.mts +3 -3
  12. package/dist/astro/middleware/auth.mjs +2 -2
  13. package/dist/astro/middleware/redirect.mjs +4 -4
  14. package/dist/astro/middleware/request-context.mjs +1 -1
  15. package/dist/astro/middleware.d.mts.map +1 -1
  16. package/dist/astro/middleware.mjs +66 -46
  17. package/dist/astro/middleware.mjs.map +1 -1
  18. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
  19. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
  20. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
  21. package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
  22. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +8 -8
  23. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
  24. package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
  25. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +7 -7
  26. package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
  27. package/dist/astro/routes/api/admin/comments/bulk.mjs +6 -6
  28. package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
  29. package/dist/astro/routes/api/admin/comments/index.mjs +6 -6
  30. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +4 -4
  31. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
  32. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +3 -3
  33. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
  34. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +27 -27
  35. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +27 -27
  36. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +27 -27
  37. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +27 -27
  38. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +27 -27
  39. package/dist/astro/routes/api/admin/plugins/index.mjs +27 -27
  40. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
  41. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +27 -27
  42. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +27 -27
  43. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +27 -27
  44. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +27 -27
  45. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.d.mts.map +1 -1
  46. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +41 -28
  47. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
  48. package/dist/astro/routes/api/admin/plugins/registry/artifact.d.mts +8 -0
  49. package/dist/astro/routes/api/admin/plugins/registry/artifact.d.mts.map +1 -0
  50. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +301 -0
  51. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -0
  52. package/dist/astro/routes/api/admin/plugins/registry/install.d.mts.map +1 -1
  53. package/dist/astro/routes/api/admin/plugins/registry/install.mjs +46 -28
  54. package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
  55. package/dist/astro/routes/api/admin/plugins/updates.mjs +27 -27
  56. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +27 -27
  57. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
  58. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +27 -27
  59. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
  60. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
  61. package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
  62. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
  63. package/dist/astro/routes/api/admin/users/index.mjs +3 -3
  64. package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
  65. package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
  66. package/dist/astro/routes/api/auth/invite/complete.mjs +3 -3
  67. package/dist/astro/routes/api/auth/invite/index.mjs +3 -3
  68. package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
  69. package/dist/astro/routes/api/auth/logout.mjs +2 -2
  70. package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
  71. package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
  72. package/dist/astro/routes/api/auth/me.mjs +3 -3
  73. package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
  74. package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
  75. package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
  76. package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
  77. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
  78. package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
  79. package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
  80. package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
  81. package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
  82. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +6 -6
  83. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
  84. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
  85. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
  86. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
  87. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
  88. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +4 -4
  89. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
  90. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
  91. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +4 -4
  92. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
  93. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
  94. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
  95. package/dist/astro/routes/api/content/_collection_/_id_.mjs +4 -4
  96. package/dist/astro/routes/api/content/_collection_/index.mjs +4 -4
  97. package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
  98. package/dist/astro/routes/api/dashboard.mjs +7 -7
  99. package/dist/astro/routes/api/dev/emails.mjs +2 -2
  100. package/dist/astro/routes/api/import/probe.mjs +4 -4
  101. package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
  102. package/dist/astro/routes/api/import/wordpress/execute.d.mts +3 -3
  103. package/dist/astro/routes/api/import/wordpress/execute.mjs +8 -8
  104. package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
  105. package/dist/astro/routes/api/import/wordpress/prepare.mjs +6 -6
  106. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +11 -1
  107. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts.map +1 -1
  108. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +17 -1
  109. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs.map +1 -1
  110. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts.map +1 -1
  111. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +7 -7
  112. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs.map +1 -1
  113. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
  114. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +5 -5
  115. package/dist/astro/routes/api/manifest.mjs +3 -3
  116. package/dist/astro/routes/api/mcp.mjs +26 -26
  117. package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
  118. package/dist/astro/routes/api/media/_id_.mjs +4 -4
  119. package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
  120. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
  121. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
  122. package/dist/astro/routes/api/media/providers/index.mjs +3 -3
  123. package/dist/astro/routes/api/media/upload-url.mjs +4 -4
  124. package/dist/astro/routes/api/media.mjs +5 -5
  125. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +5 -5
  126. package/dist/astro/routes/api/menus/_name_/items.mjs +5 -5
  127. package/dist/astro/routes/api/menus/_name_/reorder.mjs +5 -5
  128. package/dist/astro/routes/api/menus/_name_/translations.mjs +5 -5
  129. package/dist/astro/routes/api/menus/_name_.mjs +5 -5
  130. package/dist/astro/routes/api/menus/index.mjs +5 -5
  131. package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
  132. package/dist/astro/routes/api/oauth/device/code.mjs +4 -4
  133. package/dist/astro/routes/api/oauth/device/token.mjs +4 -4
  134. package/dist/astro/routes/api/oauth/register.mjs +2 -2
  135. package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
  136. package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
  137. package/dist/astro/routes/api/oauth/token.mjs +2 -2
  138. package/dist/astro/routes/api/openapi.json.mjs +2 -2
  139. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
  140. package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
  141. package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
  142. package/dist/astro/routes/api/redirects/_id_.mjs +7 -7
  143. package/dist/astro/routes/api/redirects/index.mjs +7 -7
  144. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +3 -3
  145. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +3 -3
  146. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +27 -27
  147. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +27 -27
  148. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +27 -27
  149. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +27 -27
  150. package/dist/astro/routes/api/schema/collections/index.mjs +27 -27
  151. package/dist/astro/routes/api/schema/index.mjs +6 -6
  152. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +27 -27
  153. package/dist/astro/routes/api/schema/orphans/index.mjs +27 -27
  154. package/dist/astro/routes/api/search/enable.mjs +7 -7
  155. package/dist/astro/routes/api/search/index.mjs +6 -6
  156. package/dist/astro/routes/api/search/rebuild.mjs +7 -7
  157. package/dist/astro/routes/api/search/stats.mjs +6 -6
  158. package/dist/astro/routes/api/search/suggest.mjs +6 -6
  159. package/dist/astro/routes/api/sections/_slug_.mjs +6 -6
  160. package/dist/astro/routes/api/sections/index.mjs +6 -6
  161. package/dist/astro/routes/api/settings/email.mjs +4 -4
  162. package/dist/astro/routes/api/settings.mjs +8 -8
  163. package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
  164. package/dist/astro/routes/api/setup/admin.mjs +3 -3
  165. package/dist/astro/routes/api/setup/dev-bypass.mjs +15 -15
  166. package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
  167. package/dist/astro/routes/api/setup/index.mjs +16 -16
  168. package/dist/astro/routes/api/setup/status.mjs +3 -3
  169. package/dist/astro/routes/api/snapshot.mjs +4 -4
  170. package/dist/astro/routes/api/snapshot.mjs.map +1 -1
  171. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +9 -9
  172. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +9 -9
  173. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +9 -9
  174. package/dist/astro/routes/api/taxonomies/index.mjs +9 -9
  175. package/dist/astro/routes/api/themes/preview.mjs +3 -3
  176. package/dist/astro/routes/api/typegen.mjs +5 -5
  177. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +4 -4
  178. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +6 -6
  179. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +6 -6
  180. package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
  181. package/dist/astro/routes/api/widget-areas/index.mjs +6 -6
  182. package/dist/astro/routes/api/widget-components.mjs +2 -2
  183. package/dist/astro/routes/robots.txt.mjs +4 -4
  184. package/dist/astro/routes/sitemap-_collection_.xml.d.mts.map +1 -1
  185. package/dist/astro/routes/sitemap-_collection_.xml.mjs +58 -13
  186. package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
  187. package/dist/astro/routes/sitemap.xml.mjs +5 -5
  188. package/dist/astro/types.d.mts +10 -3
  189. package/dist/astro/types.d.mts.map +1 -1
  190. package/dist/{authorize-Bkwe8kuL.mjs → authorize-Bn4S4DUT.mjs} +2 -2
  191. package/dist/{authorize-Bkwe8kuL.mjs.map → authorize-Bn4S4DUT.mjs.map} +1 -1
  192. package/dist/{byline-CTaWkMh5.mjs → byline-BDylH_m4.mjs} +3 -3
  193. package/dist/{byline-CTaWkMh5.mjs.map → byline-BDylH_m4.mjs.map} +1 -1
  194. package/dist/{bylines-DtDRNF1n.d.mts → bylines-B2_XmnSU.d.mts} +34 -34
  195. package/dist/{bylines-DtDRNF1n.d.mts.map → bylines-B2_XmnSU.d.mts.map} +1 -1
  196. package/dist/{bylines-H0Xh5TMy.mjs → bylines-B7TFEvFf.mjs} +2 -2
  197. package/dist/{bylines-H0Xh5TMy.mjs.map → bylines-B7TFEvFf.mjs.map} +1 -1
  198. package/dist/{bylines-BYHWU3T7.mjs → bylines-n6nykUyI.mjs} +6 -6
  199. package/dist/{bylines-BYHWU3T7.mjs.map → bylines-n6nykUyI.mjs.map} +1 -1
  200. package/dist/{cache-CNk1jIxp.mjs → cache-BcI1yUjR.mjs} +2 -2
  201. package/dist/{cache-CNk1jIxp.mjs.map → cache-BcI1yUjR.mjs.map} +1 -1
  202. package/dist/{chunks-BkfVdD-3.mjs → chunks-cYG4SnIP.mjs} +2 -2
  203. package/dist/{chunks-BkfVdD-3.mjs.map → chunks-cYG4SnIP.mjs.map} +1 -1
  204. package/dist/cli/index.mjs +61 -15
  205. package/dist/cli/index.mjs.map +1 -1
  206. package/dist/client/cf-access.d.mts +1 -1
  207. package/dist/client/index.d.mts +1 -1
  208. package/dist/{comment-_yzlBYPx.mjs → comment-C76G-9tz.mjs} +2 -2
  209. package/dist/{comment-_yzlBYPx.mjs.map → comment-C76G-9tz.mjs.map} +1 -1
  210. package/dist/{comments-DxID-rsd.mjs → comments-CCxFFGY1.mjs} +3 -3
  211. package/dist/{comments-DxID-rsd.mjs.map → comments-CCxFFGY1.mjs.map} +1 -1
  212. package/dist/{content-C0ooIs-f.mjs → content-8voQNTXX.mjs} +3 -3
  213. package/dist/{content-C0ooIs-f.mjs.map → content-8voQNTXX.mjs.map} +1 -1
  214. package/dist/{context-sAnCaUIR.mjs → context-B7qiYrz2.mjs} +7 -7
  215. package/dist/{context-sAnCaUIR.mjs.map → context-B7qiYrz2.mjs.map} +1 -1
  216. package/dist/{dashboard-Cqw3ay2X.mjs → dashboard-BeaFSPpx.mjs} +4 -4
  217. package/dist/{dashboard-Cqw3ay2X.mjs.map → dashboard-BeaFSPpx.mjs.map} +1 -1
  218. package/dist/db/index.d.mts +1 -1
  219. package/dist/db/index.mjs +1 -1
  220. package/dist/db/sqlite.mjs +1 -1
  221. package/dist/{db-errors-CGN9kJfo.mjs → db-errors-BiYqoX-n.mjs} +14 -2
  222. package/dist/db-errors-BiYqoX-n.mjs.map +1 -0
  223. package/dist/{error-CPh_8eLq.mjs → error-ChfADBuu.mjs} +5 -3
  224. package/dist/error-ChfADBuu.mjs.map +1 -0
  225. package/dist/errors-9P_FDrJ_.mjs +17 -0
  226. package/dist/errors-9P_FDrJ_.mjs.map +1 -0
  227. package/dist/{fts-manager-Mnrtn-r2.mjs → fts-manager-C_b-4x8u.mjs} +2 -2
  228. package/dist/{fts-manager-Mnrtn-r2.mjs.map → fts-manager-C_b-4x8u.mjs.map} +1 -1
  229. package/dist/{index-Bv1Wf1zB.d.mts → index-BPZFAcgE.d.mts} +154 -110
  230. package/dist/index-BPZFAcgE.d.mts.map +1 -0
  231. package/dist/index.d.mts +4 -4
  232. package/dist/index.mjs +38 -38
  233. package/dist/{load-DmXNVhst.mjs → load-CLFRjk9r.mjs} +2 -2
  234. package/dist/{load-DmXNVhst.mjs.map → load-CLFRjk9r.mjs.map} +1 -1
  235. package/dist/{loader-Chm5h7Gr.mjs → loader-D-vIJjfY.mjs} +86 -46
  236. package/dist/loader-D-vIJjfY.mjs.map +1 -0
  237. package/dist/media/local-runtime.d.mts +3 -3
  238. package/dist/media/local-runtime.mjs +4 -4
  239. package/dist/{media-oqRcNiQf.mjs → media-CKQd8AYU.mjs} +2 -2
  240. package/dist/{media-oqRcNiQf.mjs.map → media-CKQd8AYU.mjs.map} +1 -1
  241. package/dist/{menus-C75SSmRy.mjs → menus-C-nWT5Tu.mjs} +17 -11
  242. package/dist/menus-C-nWT5Tu.mjs.map +1 -0
  243. package/dist/{menus-Bjf5R1Qq.mjs → menus-arUNspyU.mjs} +2 -2
  244. package/dist/{menus-Bjf5R1Qq.mjs.map → menus-arUNspyU.mjs.map} +1 -1
  245. package/dist/{parse-3-caTKgt.mjs → parse-DHbXfvxO.mjs} +2 -2
  246. package/dist/{parse-3-caTKgt.mjs.map → parse-DHbXfvxO.mjs.map} +1 -1
  247. package/dist/plugin-utils.d.mts +25 -10
  248. package/dist/plugin-utils.d.mts.map +1 -1
  249. package/dist/plugin-utils.mjs +11 -10
  250. package/dist/plugin-utils.mjs.map +1 -1
  251. package/dist/plugins/adapt-sandbox-entry.d.mts +3 -3
  252. package/dist/{query-BJn8TOPk.mjs → query-7m6-l0f_.mjs} +21 -14
  253. package/dist/query-7m6-l0f_.mjs.map +1 -0
  254. package/dist/{rate-limit-D_-gAeJ0.mjs → rate-limit-D8RAXN8b.mjs} +2 -2
  255. package/dist/{rate-limit-D_-gAeJ0.mjs.map → rate-limit-D8RAXN8b.mjs.map} +1 -1
  256. package/dist/{redirect-CNv4mHX2.mjs → redirect-CjfDGrTd.mjs} +2 -2
  257. package/dist/{redirect-CNv4mHX2.mjs.map → redirect-CjfDGrTd.mjs.map} +1 -1
  258. package/dist/{redirects-B-CUZ1Xh.mjs → redirects-CowoEHdE.mjs} +3 -3
  259. package/dist/{redirects-B-CUZ1Xh.mjs.map → redirects-CowoEHdE.mjs.map} +1 -1
  260. package/dist/{registry-DqrAQDXH.mjs → registry-Cyp-dx6J.mjs} +4 -4
  261. package/dist/{registry-DqrAQDXH.mjs.map → registry-Cyp-dx6J.mjs.map} +1 -1
  262. package/dist/resolve-D6sM-SgF.mjs +143 -0
  263. package/dist/resolve-D6sM-SgF.mjs.map +1 -0
  264. package/dist/{runner-CNHRo1mT.d.mts → runner-DSQBurMS.d.mts} +7 -4
  265. package/dist/runner-DSQBurMS.d.mts.map +1 -0
  266. package/dist/{runner-CGlojznK.mjs → runner-Drnvs96u.mjs} +20 -24
  267. package/dist/{runner-CGlojznK.mjs.map → runner-Drnvs96u.mjs.map} +1 -1
  268. package/dist/runtime.d.mts +3 -3
  269. package/dist/runtime.mjs +2 -2
  270. package/dist/{schema-Djdlfi5G.mjs → schema-CI9mYPX3.mjs} +4 -4
  271. package/dist/{schema-Djdlfi5G.mjs.map → schema-CI9mYPX3.mjs.map} +1 -1
  272. package/dist/{search-By-NN3da.mjs → search-DKz_mGBP.mjs} +4 -4
  273. package/dist/{search-By-NN3da.mjs.map → search-DKz_mGBP.mjs.map} +1 -1
  274. package/dist/{sections-DcBIlOq1.mjs → sections-DBbCDIAT.mjs} +3 -3
  275. package/dist/{sections-DcBIlOq1.mjs.map → sections-DBbCDIAT.mjs.map} +1 -1
  276. package/dist/seed/index.mjs +13 -13
  277. package/dist/{seo-bjDoq9Eg.mjs → seo-BGCyDlkb.mjs} +2 -2
  278. package/dist/{seo-bjDoq9Eg.mjs.map → seo-BGCyDlkb.mjs.map} +1 -1
  279. package/dist/{seo-BoR4wCUh.mjs → seo-Dq707mNQ.mjs} +5 -3
  280. package/dist/seo-Dq707mNQ.mjs.map +1 -0
  281. package/dist/{service-BuuTdGAT.mjs → service-B0H7U1Y9.mjs} +2 -2
  282. package/dist/{service-BuuTdGAT.mjs.map → service-B0H7U1Y9.mjs.map} +1 -1
  283. package/dist/{settings-hcubRfkr.mjs → settings-BSXRtTzk.mjs} +3 -3
  284. package/dist/{settings-hcubRfkr.mjs.map → settings-BSXRtTzk.mjs.map} +1 -1
  285. package/dist/{settings-CJnKiWuR.mjs → settings-DfwNyQkf.mjs} +3 -3
  286. package/dist/{settings-CJnKiWuR.mjs.map → settings-DfwNyQkf.mjs.map} +1 -1
  287. package/dist/{taxonomies-CLs9HPE2.mjs → taxonomies-4vx0nmMr.mjs} +4 -4
  288. package/dist/{taxonomies-CLs9HPE2.mjs.map → taxonomies-4vx0nmMr.mjs.map} +1 -1
  289. package/dist/{taxonomies-WamPVA2x.mjs → taxonomies-CcvrMLbR.mjs} +7 -7
  290. package/dist/{taxonomies-WamPVA2x.mjs.map → taxonomies-CcvrMLbR.mjs.map} +1 -1
  291. package/dist/{taxonomy-D4Uc2LsZ.mjs → taxonomy-zqGQUqgu.mjs} +3 -3
  292. package/dist/{taxonomy-D4Uc2LsZ.mjs.map → taxonomy-zqGQUqgu.mjs.map} +1 -1
  293. package/dist/{transport-DOxLfUir.d.mts → transport-C2MGqtL6.d.mts} +1 -1
  294. package/dist/{transport-DOxLfUir.d.mts.map → transport-C2MGqtL6.d.mts.map} +1 -1
  295. package/dist/{types-ByV5sgsv.mjs → types-B0bmgwMG.mjs} +2 -2
  296. package/dist/{types-ByV5sgsv.mjs.map → types-B0bmgwMG.mjs.map} +1 -1
  297. package/dist/{user-D3BD5zdT.mjs → user-hUSOaIJy.mjs} +2 -2
  298. package/dist/{user-D3BD5zdT.mjs.map → user-hUSOaIJy.mjs.map} +1 -1
  299. package/dist/{validate-mz87i8_1.mjs → validate-IGltez8n.mjs} +2 -2
  300. package/dist/{validate-mz87i8_1.mjs.map → validate-IGltez8n.mjs.map} +1 -1
  301. package/dist/{validation-DKHhXjPr.mjs → validation-Bmymau7y.mjs} +6 -6
  302. package/dist/{validation-DKHhXjPr.mjs.map → validation-Bmymau7y.mjs.map} +1 -1
  303. package/dist/version-BTc87L3L.mjs +7 -0
  304. package/dist/{version-Ct7C6RSo.mjs.map → version-BTc87L3L.mjs.map} +1 -1
  305. package/dist/{widgets-lShIQXU5.mjs → widgets-yHQa4c6c.mjs} +2 -2
  306. package/dist/{widgets-lShIQXU5.mjs.map → widgets-yHQa4c6c.mjs.map} +1 -1
  307. package/dist/{zod-generator-dvxgmd1M.mjs → zod-generator-B80aap1J.mjs} +2 -2
  308. package/dist/{zod-generator-dvxgmd1M.mjs.map → zod-generator-B80aap1J.mjs.map} +1 -1
  309. package/package.json +7 -7
  310. package/src/api/errors.ts +2 -0
  311. package/src/api/handlers/index.ts +2 -0
  312. package/src/api/handlers/registry.ts +69 -1
  313. package/src/api/handlers/seo.ts +16 -1
  314. package/src/api/handlers/snapshot.ts +1 -1
  315. package/src/astro/integration/index.ts +26 -0
  316. package/src/astro/integration/routes.ts +5 -0
  317. package/src/astro/integration/runtime.ts +8 -0
  318. package/src/astro/middleware.ts +4 -0
  319. package/src/astro/public-plugin-api-routes.ts +41 -0
  320. package/src/astro/routes/api/admin/plugins/registry/[id]/update.ts +4 -0
  321. package/src/astro/routes/api/admin/plugins/registry/artifact.ts +388 -0
  322. package/src/astro/routes/api/admin/plugins/registry/install.ts +7 -1
  323. package/src/astro/routes/api/import/wordpress/rewrite-url-helpers.ts +22 -0
  324. package/src/astro/routes/api/import/wordpress/rewrite-urls.ts +5 -2
  325. package/src/astro/routes/sitemap-[collection].xml.ts +114 -14
  326. package/src/astro/types.ts +14 -0
  327. package/src/content/converters/portable-text-to-prosemirror.ts +35 -11
  328. package/src/database/connection.ts +3 -10
  329. package/src/database/errors.ts +14 -0
  330. package/src/database/index.ts +3 -1
  331. package/src/database/migrations/runner.ts +29 -21
  332. package/src/emdash-runtime.ts +1 -0
  333. package/src/i18n/resolve.ts +152 -0
  334. package/src/index.ts +2 -0
  335. package/src/loader.ts +133 -59
  336. package/src/plugin-utils.ts +23 -0
  337. package/src/query.ts +24 -5
  338. package/src/utils/db-errors.ts +24 -0
  339. package/dist/connection-2igzM-AT.mjs +0 -57
  340. package/dist/connection-2igzM-AT.mjs.map +0 -1
  341. package/dist/db-errors-CGN9kJfo.mjs.map +0 -1
  342. package/dist/error-CPh_8eLq.mjs.map +0 -1
  343. package/dist/index-Bv1Wf1zB.d.mts.map +0 -1
  344. package/dist/loader-Chm5h7Gr.mjs.map +0 -1
  345. package/dist/menus-C75SSmRy.mjs.map +0 -1
  346. package/dist/query-BJn8TOPk.mjs.map +0 -1
  347. package/dist/resolve-Cj98DuqN.mjs +0 -39
  348. package/dist/resolve-Cj98DuqN.mjs.map +0 -1
  349. package/dist/runner-CNHRo1mT.d.mts.map +0 -1
  350. package/dist/seo-BoR4wCUh.mjs.map +0 -1
  351. package/dist/version-Ct7C6RSo.mjs +0 -7
@@ -1,18 +1,18 @@
1
1
  import "../dialect-helpers-BKCvISIQ.mjs";
2
- import "../content-C0ooIs-f.mjs";
2
+ import "../content-8voQNTXX.mjs";
3
3
  import "../base64-CqR-7kqF.mjs";
4
- import "../types-ByV5sgsv.mjs";
5
- import "../media-oqRcNiQf.mjs";
6
- import "../user-D3BD5zdT.mjs";
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-sAnCaUIR.mjs";
9
- import "../seo-bjDoq9Eg.mjs";
8
+ import { r as createStorageAccess } from "../context-B7qiYrz2.mjs";
9
+ import "../seo-BGCyDlkb.mjs";
10
10
  import "../request-cache-dzCt8TZB.mjs";
11
- import "../loader-Chm5h7Gr.mjs";
12
- import "../settings-hcubRfkr.mjs";
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-CPh_8eLq.mjs";
15
- import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-3-caTKgt.mjs";
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-DtDRNF1n.mjs";
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-B2_XmnSU.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-C0ooIs-f.mjs";
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-ByV5sgsv.mjs";
6
- import { t as MediaRepository } from "./media-oqRcNiQf.mjs";
7
- import { t as CommentRepository } from "./comment-_yzlBYPx.mjs";
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-CNv4mHX2.mjs";
10
- import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BkfVdD-3.mjs";
11
- import { t as BylineRepository } from "./byline-CTaWkMh5.mjs";
12
- import { t as SeoRepository } from "./seo-bjDoq9Eg.mjs";
13
- import { r as invalidateRedirectCache } from "./cache-CNk1jIxp.mjs";
14
- import { t as isMissingTableError } from "./db-errors-CGN9kJfo.mjs";
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-DqrAQDXH.mjs";
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-D4Uc2LsZ.mjs").then((n) => n.n);
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 { handleContentPermanentDelete as $, handleSchemaFieldList as A, handleRevisionRestore as B, handleSchemaCollectionDelete as C, handleSchemaFieldCreate as D, handleSchemaCollectionUpdate as E, handleMediaGet as F, handleContentCreate as G, handleContentCompare as H, handleMediaList as I, handleContentDuplicate as J, handleContentDelete as K, handleMediaUpdate as L, handleSchemaFieldUpdate as M, handleMediaCreate as N, handleSchemaFieldDelete as O, handleMediaDelete as P, handleContentListTrashed as Q, handleRevisionGet as R, handleSchemaCollectionCreate as S, handleSchemaCollectionList as T, handleContentCountScheduled as U, generateManifest as V, handleContentCountTrashed as W, handleContentGetIncludingTrashed as X, handleContentGet as Y, handleContentList as Z, handlePluginGet as _, normalizeRegistryConfig as a, handleContentUnschedule as at, handleOrphanedTableList as b, handleMarketplaceSearch as c, handleMarketplaceUpdateCheck as d, handleContentPublish as et, handleThemeGetDetail as f, handlePluginEnable as g, handlePluginDisable as h, handleRegistryUpdateCheck as i, handleContentUnpublish as it, handleSchemaFieldReorder as j, handleSchemaFieldGet as k, handleMarketplaceUninstall as l, loadBundleFromR2 as m, handleRegistryUninstall as n, handleContentSchedule as nt, handleMarketplaceGetPlugin as o, handleContentUpdate as ot, handleThemeSearch as p, handleContentDiscardDraft as q, handleRegistryUpdate as r, handleContentTranslations as rt, handleMarketplaceInstall as s, validateRev as st, handleRegistryInstall as t, handleContentRestore as tt, handleMarketplaceUpdate as u, handlePluginList as v, handleSchemaCollectionGet as w, handleOrphanedTableRegister as x, PluginStateRepository as y, handleRevisionList as z };
4405
- //# sourceMappingURL=api-CLwG_3dh.mjs.map
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