dineway 0.2.44 → 0.2.46

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 (220) hide show
  1. package/dist/api/route-utils.d.mts +4 -4
  2. package/dist/api/route-utils.mjs +11 -11
  3. package/dist/api/schemas/index.d.mts +1 -1
  4. package/dist/{api-Dz33hkaL.mjs → api-BSmjb74C.mjs} +9 -9
  5. package/dist/{apply-SoTzf8LK.mjs → apply-Caad3Uh7.mjs} +14 -14
  6. package/dist/astro/index.d.mts +3 -3
  7. package/dist/astro/index.mjs +3 -3
  8. package/dist/astro/middleware/auth.d.mts +3 -3
  9. package/dist/astro/middleware/auth.mjs +2 -2
  10. package/dist/astro/middleware/redirect.mjs +3 -3
  11. package/dist/astro/middleware/setup.mjs +1 -1
  12. package/dist/astro/middleware.mjs +57 -57
  13. package/dist/astro/routes/api/admin/briefing.mjs +15 -15
  14. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +7 -7
  15. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +7 -7
  16. package/dist/astro/routes/api/admin/bylines/index.mjs +7 -7
  17. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +5 -5
  18. package/dist/astro/routes/api/admin/comments/_id_.mjs +4 -4
  19. package/dist/astro/routes/api/admin/comments/bulk.mjs +4 -4
  20. package/dist/astro/routes/api/admin/comments/counts.mjs +4 -4
  21. package/dist/astro/routes/api/admin/comments/index.mjs +4 -4
  22. package/dist/astro/routes/api/admin/context/_id_/history.mjs +22 -22
  23. package/dist/astro/routes/api/admin/context/_id_/index.mjs +22 -22
  24. package/dist/astro/routes/api/admin/context/_id_/review.mjs +22 -22
  25. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +22 -22
  26. package/dist/astro/routes/api/admin/context/diff.mjs +22 -22
  27. package/dist/astro/routes/api/admin/context/index.mjs +22 -22
  28. package/dist/astro/routes/api/admin/context/stale.mjs +22 -22
  29. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +23 -23
  30. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +23 -23
  31. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +23 -23
  32. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +22 -22
  33. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +37 -37
  34. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +37 -37
  35. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +33 -33
  36. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +37 -37
  37. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +37 -37
  38. package/dist/astro/routes/api/admin/plugins/index.mjs +33 -33
  39. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +33 -33
  40. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +37 -37
  41. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +33 -33
  42. package/dist/astro/routes/api/admin/plugins/updates.mjs +33 -33
  43. package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +15 -15
  44. package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +19 -19
  45. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +26 -26
  46. package/dist/astro/routes/api/admin/review-requests/index.mjs +24 -24
  47. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +33 -33
  48. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +33 -33
  49. package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
  50. package/dist/astro/routes/api/auth/invite/register-options.mjs +1 -1
  51. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  52. package/dist/astro/routes/api/auth/passkey/options.mjs +1 -1
  53. package/dist/astro/routes/api/auth/passkey/register/options.mjs +1 -1
  54. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
  55. package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
  56. package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
  57. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +3 -3
  58. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +5 -5
  59. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +4 -4
  60. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +5 -5
  61. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +13 -13
  62. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +13 -13
  63. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +10 -10
  64. package/dist/astro/routes/api/content/_collection_/_id_.mjs +2 -2
  65. package/dist/astro/routes/api/content/_collection_/index.mjs +2 -2
  66. package/dist/astro/routes/api/dashboard.mjs +8 -8
  67. package/dist/astro/routes/api/health.mjs +1 -1
  68. package/dist/astro/routes/api/import/probe.mjs +8 -8
  69. package/dist/astro/routes/api/import/wordpress/analyze.mjs +4 -4
  70. package/dist/astro/routes/api/import/wordpress/execute.d.mts +3 -3
  71. package/dist/astro/routes/api/import/wordpress/execute.mjs +25 -25
  72. package/dist/astro/routes/api/import/wordpress/media.d.mts +3 -3
  73. package/dist/astro/routes/api/import/wordpress/prepare.mjs +23 -23
  74. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +3 -3
  75. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +23 -23
  76. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +10 -10
  77. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +3 -3
  78. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +26 -26
  79. package/dist/astro/routes/api/manifest.mjs +2 -2
  80. package/dist/astro/routes/api/mcp.mjs +60 -60
  81. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +23 -23
  82. package/dist/astro/routes/api/menus/_name_/items.mjs +23 -23
  83. package/dist/astro/routes/api/menus/_name_/reorder.mjs +23 -23
  84. package/dist/astro/routes/api/menus/_name_/translations.mjs +23 -23
  85. package/dist/astro/routes/api/menus/_name_.mjs +23 -23
  86. package/dist/astro/routes/api/menus/index.mjs +23 -23
  87. package/dist/astro/routes/api/openapi.json.mjs +1 -1
  88. package/dist/astro/routes/api/redirects/_id_.mjs +22 -22
  89. package/dist/astro/routes/api/redirects/index.mjs +22 -22
  90. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +33 -33
  91. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +33 -33
  92. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +33 -33
  93. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +33 -33
  94. package/dist/astro/routes/api/schema/collections/index.mjs +33 -33
  95. package/dist/astro/routes/api/schema/index.mjs +4 -4
  96. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +33 -33
  97. package/dist/astro/routes/api/schema/orphans/index.mjs +33 -33
  98. package/dist/astro/routes/api/search/enable.mjs +4 -4
  99. package/dist/astro/routes/api/search/index.mjs +4 -4
  100. package/dist/astro/routes/api/search/rebuild.mjs +4 -4
  101. package/dist/astro/routes/api/search/stats.mjs +4 -4
  102. package/dist/astro/routes/api/search/suggest.mjs +4 -4
  103. package/dist/astro/routes/api/sections/_slug_.mjs +23 -23
  104. package/dist/astro/routes/api/sections/index.mjs +23 -23
  105. package/dist/astro/routes/api/settings/reviews.mjs +1 -1
  106. package/dist/astro/routes/api/settings.mjs +23 -23
  107. package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
  108. package/dist/astro/routes/api/setup/admin.mjs +1 -1
  109. package/dist/astro/routes/api/setup/dev-bypass.mjs +16 -16
  110. package/dist/astro/routes/api/setup/index.mjs +17 -17
  111. package/dist/astro/routes/api/setup/status.mjs +1 -1
  112. package/dist/astro/routes/api/snapshot.mjs +1 -1
  113. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -25
  114. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -25
  115. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -25
  116. package/dist/astro/routes/api/taxonomies/index.mjs +25 -25
  117. package/dist/astro/routes/api/typegen.mjs +2 -2
  118. package/dist/astro/routes/api/well-known/auth.mjs +2 -2
  119. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +22 -22
  120. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +23 -23
  121. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +23 -23
  122. package/dist/astro/routes/api/widget-areas/_name_.mjs +23 -23
  123. package/dist/astro/routes/api/widget-areas/index.mjs +23 -23
  124. package/dist/astro/routes/robots.txt.mjs +5 -5
  125. package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
  126. package/dist/astro/routes/sitemap.xml.mjs +9 -9
  127. package/dist/astro/session-driver.mjs +3 -3
  128. package/dist/astro/types.d.mts +3 -3
  129. package/dist/{briefing-CXQA-DpY.mjs → briefing-CbsLoDJS.mjs} +1 -1
  130. package/dist/{briefing-9YqN5XoW.mjs → briefing-yQgD73g4.mjs} +5 -5
  131. package/dist/{byline-BvFH-UZw.mjs → byline-BS25s1R-.mjs} +5 -5
  132. package/dist/{byline-fields-LAgJ9PSU.d.mts → byline-fields-D6EXp7_j.d.mts} +27 -27
  133. package/dist/{bylines-ZfS9Qm_E.mjs → bylines-CLBeFLdo.mjs} +1 -1
  134. package/dist/{bylines-DLFjKcNr.mjs → bylines-ZRvo3-j0.mjs} +3 -3
  135. package/dist/cli/index.mjs +26 -24
  136. package/dist/cli/plugin-kit.d.mts +3 -3
  137. package/dist/cli/plugin-kit.mjs +1 -1
  138. package/dist/client/index.d.mts +3 -3
  139. package/dist/client/index.mjs +2 -2
  140. package/dist/{comment-CbGlRPPS.mjs → comment-BTt78k0n.mjs} +1 -1
  141. package/dist/{comments-CaCApohz.mjs → comments-Do2zF3as.mjs} +1 -1
  142. package/dist/{content-Dxx0H4k8.mjs → content-BZBomTNV.mjs} +4 -4
  143. package/dist/{content-refresh-COi0WfKw.mjs → content-refresh-DbGFLB3p.mjs} +2 -2
  144. package/dist/content-storage/index.d.mts +11 -3
  145. package/dist/content-storage/index.mjs +12 -12
  146. package/dist/{content-write-eOTKAf2d.mjs → content-write-Bt_eiX9o.mjs} +9 -9
  147. package/dist/{context-c4OnrX-0.mjs → context-RtLnM2-Z.mjs} +4 -4
  148. package/dist/{context-DIiMrXaP.mjs → context-VxiTIEQa.mjs} +2 -2
  149. package/dist/{dashboard-C_x93lbv.mjs → dashboard-C_x53TcC.mjs} +1 -1
  150. package/dist/database/d1/index.d.mts +3 -3
  151. package/dist/database/d1/index.mjs +2 -2
  152. package/dist/{discovery-CIgViNk9.mjs → discovery-DNwLsQqJ.mjs} +1 -1
  153. package/dist/{evidence-FRy3SVTP.mjs → evidence-D3Tqm_ik.mjs} +2 -2
  154. package/dist/{hitl-requests-DtPNPiYe.mjs → hitl-requests-ysSO7eqS.mjs} +1 -1
  155. package/dist/{hitl-route-helpers-BKI0ZeUF.mjs → hitl-route-helpers-BLJYI67Y.mjs} +1 -1
  156. package/dist/{import-Cn1_u1S2.mjs → import-BkBVo6UM.mjs} +3 -3
  157. package/dist/index.d.mts +3 -3
  158. package/dist/index.mjs +45 -45
  159. package/dist/{jsonld-DZXdAyOK.d.mts → jsonld-BObNyc22.d.mts} +1 -1
  160. package/dist/{loader-C9hvIKEW.mjs → loader--zFg6meV.mjs} +4 -4
  161. package/dist/{mcp-reviewed-executor-B4O9L9MT.mjs → mcp-reviewed-executor-CiuVfiL_.mjs} +2 -2
  162. package/dist/media/local-runtime.d.mts +3 -3
  163. package/dist/{menus-BfQjG9Wc.mjs → menus-BoNLPIAK.mjs} +1 -1
  164. package/dist/{menus-DL-BYzwG.mjs → menus-Dq323Wka.mjs} +3 -3
  165. package/dist/{migration-C9nW8q7f.mjs → migration-BhVzGnj0.mjs} +67 -27
  166. package/dist/{object-cache-qP60KjUp.mjs → object-cache-Ue6kAfzf.mjs} +1 -1
  167. package/dist/{owned-metadata-CJs4-k1w.mjs → owned-metadata-bXhDX1WW.mjs} +1 -1
  168. package/dist/page/index.d.mts +4 -4
  169. package/dist/plugin-utils.d.mts +3 -3
  170. package/dist/plugins/adapt-sandbox-entry.d.mts +3 -3
  171. package/dist/{plugins-rop9tkYG.mjs → plugins-C10hTI65.mjs} +2 -2
  172. package/dist/{public-url-DLcDMtBJ.d.mts → public-url-JnHtmWfz.d.mts} +1 -1
  173. package/dist/{publication-authorization-CS8WqkzL.mjs → publication-authorization-DBNXaGgH.mjs} +4 -4
  174. package/dist/{query-D0qnvePL.mjs → query-5edkcMYz.mjs} +3 -3
  175. package/dist/{query-B1t4PSfw.mjs → query-CNXVFYWz.mjs} +10 -10
  176. package/dist/{registry-3xWpSYNI.mjs → registry-DEKqjKIM.mjs} +1 -1
  177. package/dist/{release-Bk-UaI2C.mjs → release-CIYyinzY.mjs} +1 -1
  178. package/dist/{review-requests-BQZp6VaG.mjs → review-requests-B7UdAl1r.mjs} +1 -1
  179. package/dist/{revision-BhnVYOMz.mjs → revision-BtgwJxxa.mjs} +2 -2
  180. package/dist/{revisions-C-T9CdGo.mjs → revisions-CQZI886L.mjs} +1 -1
  181. package/dist/{runtime-Dz7vZRPU.mjs → runtime-BLoyGKUx.mjs} +64 -3
  182. package/dist/{runtime-Dx9QpCL5.d.mts → runtime-ecsN2xL9.d.mts} +1 -1
  183. package/dist/runtime.d.mts +3 -3
  184. package/dist/runtime.mjs +3 -3
  185. package/dist/{schema-2x9K4t9t.mjs → schema-DIXUswIX.mjs} +1 -1
  186. package/dist/{search--Qmm2s6n.mjs → search-TXLzVROW.mjs} +1 -1
  187. package/dist/{sections-0cg9Dhp6.mjs → sections-zaZhTZqa.mjs} +1 -1
  188. package/dist/seed/index.mjs +16 -16
  189. package/dist/seo/index.mjs +5 -5
  190. package/dist/{seo-DxrTizK0.mjs → seo-BQ7R2a1z.mjs} +5 -5
  191. package/dist/{seo-BYBqbsZk.mjs → seo-DdczIQvk.mjs} +1 -1
  192. package/dist/{service-Y-ZEhFVM.mjs → service-CUlcOLZj.mjs} +2 -2
  193. package/dist/{settings-D0SBKo-W.mjs → settings-Bc2eQPR6.mjs} +2 -2
  194. package/dist/{settings-DM4P-jVe.mjs → settings-CoCGUtE6.mjs} +1 -1
  195. package/dist/{site-context-DNiKKCc1.mjs → site-context-DkxgOnQl.mjs} +6 -6
  196. package/dist/{submission-C7tI1Frs.mjs → submission-BNP2Sc3O.mjs} +4 -4
  197. package/dist/{taxonomies-CZHI0fCa.mjs → taxonomies-CVe1PGaO.mjs} +3 -3
  198. package/dist/{taxonomies-Cf9huhQ6.mjs → taxonomies-zgZ2HG_z.mjs} +2 -2
  199. package/dist/{taxonomy-B4O77tAe.mjs → taxonomy-CcyZD5jQ.mjs} +3 -3
  200. package/dist/{types-z2nZassR.d.mts → types-jtUocGnQ.d.mts} +3 -3
  201. package/dist/ui/server-runtime.d.mts +5 -5
  202. package/dist/ui/server-runtime.mjs +13 -13
  203. package/dist/version-BJwTlK4L.mjs +6 -0
  204. package/dist/{widgets-P1hMbKIT.mjs → widgets-CJBk8bm7.mjs} +1 -1
  205. package/dist/{worker-CcvePQzq.mjs → worker-D82vT5OV.mjs} +4 -4
  206. package/dist/{write-intent-D6xfcx1f.mjs → write-intent-CjTERf3N.mjs} +1 -1
  207. package/package.json +3 -3
  208. package/dist/version-DU2EdwT0.mjs +0 -6
  209. /package/dist/{allowed-origins-CQyKpMbJ.mjs → allowed-origins-SQbPK6WG.mjs} +0 -0
  210. /package/dist/{challenge-store-BImHCJvl.mjs → challenge-store-7IZ_NqWg.mjs} +0 -0
  211. /package/dist/{forgeway-account-B-z2_ZOQ.mjs → forgeway-account-CVSG1imu.mjs} +0 -0
  212. /package/dist/{mode-BoM5FjH7.mjs → mode-C3RI5Z5t.mjs} +0 -0
  213. /package/dist/{output-4F_wq70p.mjs → output-TGkiEMQF.mjs} +0 -0
  214. /package/dist/{policy-BL8yj6uD.mjs → policy-DbceGc4P.mjs} +0 -0
  215. /package/dist/{portable-text-DeJeHr_T.mjs → portable-text-CJ9v0T_j.mjs} +0 -0
  216. /package/dist/{session-user-j7I8GMvK.mjs → session-user-D36BRaZY.mjs} +0 -0
  217. /package/dist/{setup-complete-Cn-Ho9RX.mjs → setup-complete-eTV6C0-E.mjs} +0 -0
  218. /package/dist/{state-LzJZ7qpq.mjs → state-CKkqoA6i.mjs} +0 -0
  219. /package/dist/{transport-DHTeMsJG.mjs → transport-C_bzEHB4.mjs} +0 -0
  220. /package/dist/{workers-build-Bd4w1aw9.mjs → workers-build-4926MPc0.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
2
- import { t as ContentRepository } from "./content-Dxx0H4k8.mjs";
2
+ import { t as ContentRepository } from "./content-BZBomTNV.mjs";
3
3
  import { t as MediaRepository } from "./media-BjH5OD-A.mjs";
4
4
  import { t as UserRepository } from "./user-Bl2_8rhJ.mjs";
5
5
  import { r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
@@ -1,16 +1,16 @@
1
- import { At as ResolvedPlugin, ac as assertD1Migrations, cc as compileD1Schema, ic as D1MigrationOptions, oc as migrateD1, rc as D1Migration, sc as D1SchemaObject } from "../../types-z2nZassR.mjs";
1
+ import { At as ResolvedPlugin, ac as assertD1Migrations, cc as compileD1Schema, ic as D1MigrationOptions, oc as migrateD1, rc as D1Migration, sc as D1SchemaObject } from "../../types-jtUocGnQ.mjs";
2
2
  import "../../types-CG9uGPBL.mjs";
3
3
  import "../../runner-DlkOiguI.mjs";
4
4
  import "../../index-_fCUsJx9.mjs";
5
5
  import "../../types-CeFGasN8.mjs";
6
6
  import "../../types-DLwh1QkC.mjs";
7
7
  import "../../adapters-cL325h6c.mjs";
8
- import "../../runtime-Dx9QpCL5.mjs";
8
+ import "../../runtime-ecsN2xL9.mjs";
9
9
  import "../../hook-events-lN-kz-4_.mjs";
10
10
  import "../../scheduled-publish-7kZkKw7t.mjs";
11
11
  import "../../public-url-CvNSyMJJ.mjs";
12
12
  import "../../validate-CleBZbkv.mjs";
13
- import "../../byline-fields-LAgJ9PSU.mjs";
13
+ import "../../byline-fields-D6EXp7_j.mjs";
14
14
  import "../../types-BuplUVZ4.mjs";
15
15
  import { Kysely } from "kysely";
16
16
 
@@ -2,7 +2,7 @@ import { o as assertD1Migrations, s as migrateD1 } from "../../runner-CuG8o1uW.m
2
2
  import "../../d1-binding-DrLMBUxu.mjs";
3
3
  import "../../dialect-helpers-C6xtO-Ui.mjs";
4
4
  import "../../migrations-DTCIQJ2_.mjs";
5
- import "../../state-LzJZ7qpq.mjs";
6
- import { n as compileD1Schema, t as migrateD1Release } from "../../release-Bk-UaI2C.mjs";
5
+ import "../../state-CKkqoA6i.mjs";
6
+ import { n as compileD1Schema, t as migrateD1Release } from "../../release-CIYyinzY.mjs";
7
7
 
8
8
  export { assertD1Migrations, compileD1Schema, migrateD1, migrateD1Release };
@@ -1,7 +1,7 @@
1
1
  import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
2
2
  import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
3
3
  import { n as publicDiscoveryExclusions } from "./public-discovery-CGRirTJH.mjs";
4
- import { n as SchemaRegistry } from "./registry-3xWpSYNI.mjs";
4
+ import { n as SchemaRegistry } from "./registry-DEKqjKIM.mjs";
5
5
  import { t as resolveContentUrl } from "./public-url-NCefkiXz.mjs";
6
6
  import { sql } from "kysely";
7
7
 
@@ -1,9 +1,9 @@
1
1
  import { i as encodeBase64url } from "./base64-qvSs0Gxy.mjs";
2
2
  import { t as MediaRepository } from "./media-BjH5OD-A.mjs";
3
3
  import { t as buildStableHash } from "./stable-hash-9RDJgfif.mjs";
4
- import { a as selectActiveBriefingContextEntries, i as parseSiteBriefingScope, m as ContextRepository } from "./briefing-9YqN5XoW.mjs";
4
+ import { a as selectActiveBriefingContextEntries, i as parseSiteBriefingScope, m as ContextRepository } from "./briefing-yQgD73g4.mjs";
5
5
  import { n as sha256, s as readBoundedBytes } from "./runs-BGqkkqhp.mjs";
6
- import { c as loadContentMediaUsageFields } from "./content-refresh-COi0WfKw.mjs";
6
+ import { c as loadContentMediaUsageFields } from "./content-refresh-DbGFLB3p.mjs";
7
7
  import { r as ssrfSafeFetch } from "./ssrf-C7tTSD1r.mjs";
8
8
  import { imageSize } from "image-size";
9
9
 
@@ -1,4 +1,4 @@
1
- import { b as HitlRequestService } from "./site-context-DNiKKCc1.mjs";
1
+ import { b as HitlRequestService } from "./site-context-DkxgOnQl.mjs";
2
2
  import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-BtKXzyIH.mjs";
3
3
 
4
4
  //#region src/api/handlers/hitl-requests.ts
@@ -1,5 +1,5 @@
1
1
  import { i as resolveActorIdentity } from "./actor-D0AW80ld.mjs";
2
- import { t as WorkflowHitlCoordinator } from "./site-context-DNiKKCc1.mjs";
2
+ import { t as WorkflowHitlCoordinator } from "./site-context-DkxgOnQl.mjs";
3
3
  import { t as apiError } from "./error-HuAkl_6r.mjs";
4
4
  import { p as logSiteActivitySafely } from "./activity-events-D4JfWJFI.mjs";
5
5
  import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-BtKXzyIH.mjs";
@@ -1,10 +1,10 @@
1
1
  import { n as slugify } from "./slugify-DvoaEPtL.mjs";
2
- import { t as TaxonomyRepository } from "./taxonomy-B4O77tAe.mjs";
2
+ import { t as TaxonomyRepository } from "./taxonomy-CcyZD5jQ.mjs";
3
3
  import { t as OptionsRepository } from "./options-yFkLUuTw.mjs";
4
4
  import { a as validateExternalUrl, n as resolveAndValidateExternalUrl, r as ssrfSafeFetch } from "./ssrf-C7tTSD1r.mjs";
5
- import { o as invalidateSiteSettingsCache } from "./settings-D0SBKo-W.mjs";
5
+ import { o as invalidateSiteSettingsCache } from "./settings-Bc2eQPR6.mjs";
6
6
  import { n as resolveLocaleChain } from "./resolve-BdDNBmaU.mjs";
7
- import { l as invalidateTermCache } from "./taxonomies-CZHI0fCa.mjs";
7
+ import { l as invalidateTermCache } from "./taxonomies-CVe1PGaO.mjs";
8
8
  import { n as parseWxrString } from "./parser-CoH5-854.mjs";
9
9
  import { _ as sanitizeFieldSlug, a as getFilenameFromUrl, c as isInternalMetaKey, d as mapMetaKeyToField, f as mapPostTypeToCollection, h as relativizeContentLinks, i as checkSchemaCompatibility, l as isInternalPostType, m as normalizeUrl$1, n as FEATURED_IMAGE_FIELD, o as guessMimeType, p as mapWpStatus, r as buildAttachmentMap, s as inferMetaType, t as BASE_REQUIRED_FIELDS, u as isPluginBookkeepingMeta } from "./utils-WY63JOPB.mjs";
10
10
  import { ulid } from "ulidx";
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AfterCallback, after } from "./after.mjs";
2
2
  import { _ as UpdateCollectionInput, a as ColumnType, d as FieldType, f as FieldValidation, g as RESERVED_FIELD_SLUGS, h as RESERVED_COLLECTION_SLUGS, i as CollectionWithFields, l as FIELD_TYPE_TO_COLUMN, m as PublicDiscoveryRules, n as CollectionSource, o as CreateCollectionInput, p as FieldWidgetOptions, r as CollectionSupport, s as CreateFieldInput, t as Collection, u as Field, v as UpdateFieldInput } from "./types-BjWhF4eO.mjs";
3
3
  import { a as ContentSeo, c as DinewayValidationError, d as ScheduledNotDueError, f as UpdateContentInput, i as ContentItem, l as FindManyOptions, m as encodeCursor, n as ContentBylineCredit, o as ContentSeoInput, p as decodeCursor, s as CreateContentInput, t as BylineSummary, u as FindManyResult } from "./types--vDpt_aS.mjs";
4
- import { $ as PluginMcpCommandPreview, $a as RevisionResponse, $i as resolveDinewayPath, $n as UpdateMenuItemInput, $o as handleContentUpdate, $r as PluginSecretStatus, $s as getDb, $t as PublicationReleasePreparationTarget, A as MediaUploadEvent, Aa as PortableTextUnknownBlock, Ai as invalidateCollectionCache, An as getEntryTerms, Ar as verifyPreviewToken, As as MarkAssignmentsOverdueInput, At as ResolvedPlugin, B as PluginActor, Ba as UpdateSectionInput, Bi as ContentEntry, Bn as UpdateTermInput, Bo as handleContentDiscardDraft, Br as HandoffSnapshot, C as FieldWidgetConfig, Ca as PortableTextCodeBlock, Ci as verifyPreviewSignature, Cn as ReorderWidgetsInput, Co as SandboxRunnerFactory, Cr as getPreviewUrl, Cs as AssignmentActorRef, Ct as PortableTextBlockConfig, D as KVAccess, Da as PortableTextMarkDef, Di as contentNamespace, Dn as WidgetComponentDef, Do as PluginMcpTargetAuthorizer, Dr as VerifyPreviewTokenResult, Ds as AssignmentRepository, Dt as PublicPageSchema, E as HttpAccess, Ea as PortableTextLinkMark, Ei as cachedQuery, En as WidgetArea, Er as VerifyPreviewTokenOptions, Es as AssignmentPriority, Et as PublicPageImage, F as PageMetadataContribution, Fa as getSections, Fi as invalidateTaxonomyObjectCache, Fn as getTermsForEntries, Fo as handleContentCompare, Fr as CreateWorkflowAssignmentInput, Fs as SiteActivityActorType, Ft as StandardHookHandler, G as PluginAuthMethod, Ga as MediaListResponse, Gi as ResolvePathResult, Gn as getMenus, Go as handleContentListTrashed, Gr as NodeSandboxRunner, Gs as MediaRepository, Gt as PublicationReadinessBlocker, H as PluginAdminConfig, Ha as getCollectionInfo, Hi as EditFieldMeta, Hn as getBylineBySlug, Ho as handleContentGet, Hr as PublicationReleasePolicyContribution, Hs as RevisionRepository, Ht as isStandardPluginDefinition, I as PageMetadataEvent, Ia as CreateSectionInput, Ii as isObjectCacheActive, In as CreateTermInput, Io as handleContentCountScheduled, Ir as HandoffResumeResult, Is as SiteActivityRepository, It as StandardPluginDefinition, J as PluginD1Support, Ja as handleMediaDelete, Ji as TranslationsResult, Jn as Menu, Jo as handleContentRestore, Jr as SandboxNotAvailableError, Js as EntryData, Jt as PublicationReadinessPolicyTarget, K as PluginCapability, Ka as MediaResponse, Ki as SelectedCollectionData, Kn as CreateMenuInput, Ko as handleContentPermanentDelete, Kr as createNodeSandboxRunner, Ks as ContentRepository, Kt as PublicationReadinessPolicyBlocker, L as PageMetadataHandler, La as GetSectionsOptions, Li as CacheHint, Ln as TaxonomyDef, Lo as handleContentCountTrashed, Lr as HandoffSnapshotStore, Ls as SiteActivityResultStatus, Lt as StandardRouteEntry, M as PageFragmentContribution, Ma as ProseMirrorMark, Mi as invalidateMenuObjectCache, Mn as getTaxonomyDefs, Mr as AssignmentActionInput, Mt as ResolvedPluginMcpConfig, N as PageFragmentEvent, Na as ProseMirrorNode, Ni as invalidateObjectCache, Nn as getTaxonomyTerms, Nr as AssignmentListInput, Ns as CreateSiteActivityInput, Nt as RouteContext, O as LogAccess, Oa as PortableTextSpan, Oi as contentNamespaces, On as WidgetType, Or as generatePreviewToken, Os as AssignmentStatus, Ot as PublicSchemaNode, P as PageFragmentHandler, Pa as getSection, Pi as invalidateSchemaObjectCache, Pn as getTerm, Po as handleContentAuthors, Pr as AssignmentService, Ps as SiteActivity, Pt as StandardHookEntry, Q as PluginMcpAuthorization, Qa as RevisionListResponse, Qi as getTranslations, Qn as UpdateMenuInput, Qo as handleContentUnschedule, Qr as createReviewedPluginMcpCommandExecutor, Qt as PublicationReleasePolicy, Ra as Section, Ri as CollectionFilter, Rn as TaxonomyTerm, Ro as handleContentCreate, Rr as ResumeHandoffSnapshotInput, Rs as SiteActivitySourceType, Rt as StandardRouteHandler, S as EmailMessage, Sa as prosemirrorToPortableText, Sc as ManifestResponse, Si as signPreviewUrl, Sn as PropDef, So as SandboxRunner, Sr as buildPreviewUrl, Ss as Assignment, St as PluginTargetScope, T as HookName, Ta as PortableTextImageBlock, Ti as CachedQueryOptions, Tn as Widget, To as SerializedRequest, Tr as PreviewTokenPayload, Ts as AssignmentListQuery, Tt as PublicPageContext, U as PluginAdminExports, Ua as SchemaError, Ui as EntryResult, Un as getEntriesByByline, Uo as handleContentGetIncludingTrashed, Ur as PublicationReleasePolicyDisposition, Us as CreateMediaInput, V as PluginActorType, Va as validateContent, Vi as DinewayCollections, Vn as getByline, Vo as handleContentDuplicate, Vr as BuiltContentReleasePayload, Vt as StoredComment, W as PluginAdminPage, Wa as SchemaRegistry, Wi as InferCollectionData, Wn as getMenu, Wo as handleContentList, Wr as buildStableActionHash, Ws as MediaItem, Wt as PublicationPolicyOverride, X as PluginHooks, Xa as handleMediaList, Xi as getDinewayEntry, Xn as MenuItemType, Xo as handleContentTranslations, Xr as PluginManager, Xs as WhereRange, Xt as PublicationReadinessWarning, Y as PluginDefinition, Ya as handleMediaGet, Yi as getDinewayCollection, Yn as MenuItem, Yo as handleContentSchedule, Yr as createNoopSandboxRunner, Ys as EntryFilter, Z as PluginManifest, Za as handleMediaUpdate, Zi as getEditMeta, Zn as ReorderMenuItemsInput, Zo as handleContentUnpublish, Zr as createPluginManager, Zs as WhereValue, _ as EmailAfterSendHandler, _a as isSafeHref, _c as ApiContext, _i as PreviewSidecarClient, _n as getWidgetArea, _o as HookResult, _r as renderPreviewLoadingPage, _s as ContentReference, _t as PluginRouteMethod, a as CommentAfterModerateEvent, aa as GuestAccessExpectedScope, ai as definePlugin, an as search, ao as SiteBriefingAssembler, ar as getPluginSettings, as as ContentReviewHandlers, at as PluginMcpQueryTool, b as EmailDeliverEvent, ba as hashString, bc as FieldDescriptor, bi as defaultPreviewSidecarClient, bn as CreateWidgetAreaInput, bo as SandboxEmailSendCallback, br as isPreviewRequest, bs as RelationRepository, bt as PluginRouteTargetContext, c as CommentBeforeCreateHandler, ca as IssueGuestAccessTokenOptions, ci as FileSessionDatabaseFactory, cn as FTSManager, cr as setSiteSettings, cs as prepareContentWrite, ct as PluginMcpReversibility, d as ContentAccess, da as VerifyGuestAccessTokenResult, di as SessionDatabaseFactory, dn as SearchOptions, do as ConfirmedContentPublicationResult, dr as AppliedSnapshotMeta, ds as image, dt as PluginMcpTool, ea as CMSAnnotation, ec as DatabaseConfig, ei as PluginSecretStore, en as currentTimestamp, eo as handleRevisionGet, er as GetCommentsOptions, es as ReviewSubmissionError, et as PluginMcpCommandTool, f as ContentDeleteEvent, fa as hashGuestAccessToken, fi as SessionDatabaseHandle, fn as SearchResponse, fo as PublishConfirmedContentInput, fr as ApplySnapshotToDatabaseOptions, fs as FieldDefinition, ft as PluginMigration, g as EmailAfterSendEvent, ga as checkRateLimit, gi as SessionOpenOrCreateOptions, gn as Suggestion, go as HookPipeline, gr as Snapshot, gs as PortableTextBlock, gt as PluginRouteBodyMode, h as EmailAccess, ha as RateLimitResult, hi as SessionOpenOptions, hn as SuggestOptions, hr as getAppliedSnapshotMeta, hs as ImageValue, ht as PluginRouteAuthorization, i as CommentAfterCreateHandler, ia as createNoop, ii as runPluginMigrations, in as getSuggestions, io as SiteBriefing, ir as getPluginSetting, is as ReviewRequestActorInput, it as PluginMcpPiiPolicy, j as ModerationDecision, ja as ProseMirrorDocument, ji as invalidateCommentObjectCache, jn as getTaxonomyDef, jr as AssignmentAccessContext, js as ReviewRequest, jt as ResolvedPluginHooks, k as MediaAccess, ka as PortableTextTextBlock, ki as invalidateBylineObjectCache, kn as getEntriesByTerm, ko as PluginDescriptor, kr as parseContentId, ks as CreateAssignmentInput, kt as ResolvedHook, l as CommentModerateEvent, la as IssuedGuestAccessToken, li as FileSessionDatabaseFactoryOptions, ln as CollectionSearchOptions, lo as AtomicConfirmedContentAuthorizer, lr as PreviewToolbarConfig, ls as portableText, lt as PluginMcpRiskFactor, m as ContentPublishStateChangeEvent, ma as verifyGuestAccessToken, mi as SessionDatabaseLimitError, mn as SearchStats, mo as PluginRouteError, mr as dropSessionDatabaseTables, ms as FileValue, n as CollectionCommentSettings, na as FieldAnnotation, ni as ValidatedPluginManifest, nn as extractSearchableFields, no as handleRevisionRestore, nr as getCommentCount, ns as prepareAutomatedReview, nt as PluginMcpExecutionContext, o as CommentAfterModerateHandler, oa as GuestAccessTokenClaims, oi as FilePreviewMiddlewareConfig, on as searchCollection, oo as SiteBriefingContextEntry, or as getSiteSetting, os as ContentWriteInput, ot as PluginMcpResource, p as ContentHookEvent, pa as issueGuestAccessToken, pi as SessionDatabaseInfo, pn as SearchResult, pr as applySnapshotToDatabase, ps as FieldUIHints, pt as PluginRoute, q as PluginContext, qa as handleMediaCreate, qi as TranslationSummary, qn as CreateMenuItemInput, qo as handleContentPublish, qr as NoopSandboxRunner, qs as CollectionFilter$1, qt as PublicationReadinessPolicyFinding, r as CommentAfterCreateEvent, ra as createEditable, ri as pluginManifestSchema, rn as getSearchStats, ro as generateManifest, rr as getComments, rs as submitAutomatedReview, rt as PluginMcpPiiClass, s as CommentBeforeCreateEvent, sa as GuestAccessTokenConfigurationError, si as createFilePreviewMiddleware, sn as searchWithDb, sr as getSiteSettings, ss as PreparedContentWrite, st as PluginMcpResourceContent, t as BreadcrumbItem, ta as EditProxy, tc as DinewayDatabaseError, ti as PluginSecretStoreOptions, tn as extractPlainText, to as handleRevisionList, tr as GetCommentsResult, ts as ReviewSubmissionInput, tt as PluginMcpConfig, u as CommentModerateHandler, ua as VerifyGuestAccessTokenOptions, ui as SessionCleanupResult, un as SearchConfig, uo as ConfirmedContentAuthorizer, ur as renderPreviewToolbar, us as reference, ut as PluginMcpRiskLevel, v as EmailBeforeSendEvent, va as sanitizeHref, vc as ContentListResponse, vi as PreviewSidecarSignature, vn as getWidgetAreas, vo as createHookPipeline, vr as isBlockedInPreview, vs as CreateRelationInput, vt as PluginRouteTargetAuthorizationRequest, w as HookConfig, wa as PortableTextHtmlBlock, wi as CacheNamespace, wn as UpdateWidgetInput, wo as SandboxedPlugin, wr as GeneratePreviewTokenOptions, ws as AssignmentActorType, wt as PortableTextBlockField, x as EmailDeliverHandler, xa as portableTextToProsemirror, xc as ListResponse, xi as parsePreviewSignatureHeader, xn as CreateWidgetInput, xo as SandboxOptions, xr as GetPreviewUrlOptions, xs as UpdateRelationInput, xt as PluginStorageConfig, y as EmailBeforeSendHandler, ya as computeContentHash, yc as ContentResponse, yi as buildPreviewSignatureHeader, yn as getWidgetComponents, yo as SandboxEmailMessage, yr as getPreviewToken, ys as Relation, yt as PluginRouteTargetAuthorizer, z as PagePlacement, za as SectionSource, zi as CollectionResult, zn as TaxonomyTermRow, zo as handleContentDelete, zr as CreateHandoffSnapshotInput, zs as SiteActivityTimelineQuery, zt as StorageCollection } from "./types-z2nZassR.mjs";
4
+ import { $ as PluginMcpCommandPreview, $a as RevisionResponse, $i as resolveDinewayPath, $n as UpdateMenuItemInput, $o as handleContentUpdate, $r as PluginSecretStatus, $s as getDb, $t as PublicationReleasePreparationTarget, A as MediaUploadEvent, Aa as PortableTextUnknownBlock, Ai as invalidateCollectionCache, An as getEntryTerms, Ar as verifyPreviewToken, As as MarkAssignmentsOverdueInput, At as ResolvedPlugin, B as PluginActor, Ba as UpdateSectionInput, Bi as ContentEntry, Bn as UpdateTermInput, Bo as handleContentDiscardDraft, Br as HandoffSnapshot, C as FieldWidgetConfig, Ca as PortableTextCodeBlock, Ci as verifyPreviewSignature, Cn as ReorderWidgetsInput, Co as SandboxRunnerFactory, Cr as getPreviewUrl, Cs as AssignmentActorRef, Ct as PortableTextBlockConfig, D as KVAccess, Da as PortableTextMarkDef, Di as contentNamespace, Dn as WidgetComponentDef, Do as PluginMcpTargetAuthorizer, Dr as VerifyPreviewTokenResult, Ds as AssignmentRepository, Dt as PublicPageSchema, E as HttpAccess, Ea as PortableTextLinkMark, Ei as cachedQuery, En as WidgetArea, Er as VerifyPreviewTokenOptions, Es as AssignmentPriority, Et as PublicPageImage, F as PageMetadataContribution, Fa as getSections, Fi as invalidateTaxonomyObjectCache, Fn as getTermsForEntries, Fo as handleContentCompare, Fr as CreateWorkflowAssignmentInput, Fs as SiteActivityActorType, Ft as StandardHookHandler, G as PluginAuthMethod, Ga as MediaListResponse, Gi as ResolvePathResult, Gn as getMenus, Go as handleContentListTrashed, Gr as NodeSandboxRunner, Gs as MediaRepository, Gt as PublicationReadinessBlocker, H as PluginAdminConfig, Ha as getCollectionInfo, Hi as EditFieldMeta, Hn as getBylineBySlug, Ho as handleContentGet, Hr as PublicationReleasePolicyContribution, Hs as RevisionRepository, Ht as isStandardPluginDefinition, I as PageMetadataEvent, Ia as CreateSectionInput, Ii as isObjectCacheActive, In as CreateTermInput, Io as handleContentCountScheduled, Ir as HandoffResumeResult, Is as SiteActivityRepository, It as StandardPluginDefinition, J as PluginD1Support, Ja as handleMediaDelete, Ji as TranslationsResult, Jn as Menu, Jo as handleContentRestore, Jr as SandboxNotAvailableError, Js as EntryData, Jt as PublicationReadinessPolicyTarget, K as PluginCapability, Ka as MediaResponse, Ki as SelectedCollectionData, Kn as CreateMenuInput, Ko as handleContentPermanentDelete, Kr as createNodeSandboxRunner, Ks as ContentRepository, Kt as PublicationReadinessPolicyBlocker, L as PageMetadataHandler, La as GetSectionsOptions, Li as CacheHint, Ln as TaxonomyDef, Lo as handleContentCountTrashed, Lr as HandoffSnapshotStore, Ls as SiteActivityResultStatus, Lt as StandardRouteEntry, M as PageFragmentContribution, Ma as ProseMirrorMark, Mi as invalidateMenuObjectCache, Mn as getTaxonomyDefs, Mr as AssignmentActionInput, Mt as ResolvedPluginMcpConfig, N as PageFragmentEvent, Na as ProseMirrorNode, Ni as invalidateObjectCache, Nn as getTaxonomyTerms, Nr as AssignmentListInput, Ns as CreateSiteActivityInput, Nt as RouteContext, O as LogAccess, Oa as PortableTextSpan, Oi as contentNamespaces, On as WidgetType, Or as generatePreviewToken, Os as AssignmentStatus, Ot as PublicSchemaNode, P as PageFragmentHandler, Pa as getSection, Pi as invalidateSchemaObjectCache, Pn as getTerm, Po as handleContentAuthors, Pr as AssignmentService, Ps as SiteActivity, Pt as StandardHookEntry, Q as PluginMcpAuthorization, Qa as RevisionListResponse, Qi as getTranslations, Qn as UpdateMenuInput, Qo as handleContentUnschedule, Qr as createReviewedPluginMcpCommandExecutor, Qt as PublicationReleasePolicy, Ra as Section, Ri as CollectionFilter, Rn as TaxonomyTerm, Ro as handleContentCreate, Rr as ResumeHandoffSnapshotInput, Rs as SiteActivitySourceType, Rt as StandardRouteHandler, S as EmailMessage, Sa as prosemirrorToPortableText, Sc as ManifestResponse, Si as signPreviewUrl, Sn as PropDef, So as SandboxRunner, Sr as buildPreviewUrl, Ss as Assignment, St as PluginTargetScope, T as HookName, Ta as PortableTextImageBlock, Ti as CachedQueryOptions, Tn as Widget, To as SerializedRequest, Tr as PreviewTokenPayload, Ts as AssignmentListQuery, Tt as PublicPageContext, U as PluginAdminExports, Ua as SchemaError, Ui as EntryResult, Un as getEntriesByByline, Uo as handleContentGetIncludingTrashed, Ur as PublicationReleasePolicyDisposition, Us as CreateMediaInput, V as PluginActorType, Va as validateContent, Vi as DinewayCollections, Vn as getByline, Vo as handleContentDuplicate, Vr as BuiltContentReleasePayload, Vt as StoredComment, W as PluginAdminPage, Wa as SchemaRegistry, Wi as InferCollectionData, Wn as getMenu, Wo as handleContentList, Wr as buildStableActionHash, Ws as MediaItem, Wt as PublicationPolicyOverride, X as PluginHooks, Xa as handleMediaList, Xi as getDinewayEntry, Xn as MenuItemType, Xo as handleContentTranslations, Xr as PluginManager, Xs as WhereRange, Xt as PublicationReadinessWarning, Y as PluginDefinition, Ya as handleMediaGet, Yi as getDinewayCollection, Yn as MenuItem, Yo as handleContentSchedule, Yr as createNoopSandboxRunner, Ys as EntryFilter, Z as PluginManifest, Za as handleMediaUpdate, Zi as getEditMeta, Zn as ReorderMenuItemsInput, Zo as handleContentUnpublish, Zr as createPluginManager, Zs as WhereValue, _ as EmailAfterSendHandler, _a as isSafeHref, _c as ApiContext, _i as PreviewSidecarClient, _n as getWidgetArea, _o as HookResult, _r as renderPreviewLoadingPage, _s as ContentReference, _t as PluginRouteMethod, a as CommentAfterModerateEvent, aa as GuestAccessExpectedScope, ai as definePlugin, an as search, ao as SiteBriefingAssembler, ar as getPluginSettings, as as ContentReviewHandlers, at as PluginMcpQueryTool, b as EmailDeliverEvent, ba as hashString, bc as FieldDescriptor, bi as defaultPreviewSidecarClient, bn as CreateWidgetAreaInput, bo as SandboxEmailSendCallback, br as isPreviewRequest, bs as RelationRepository, bt as PluginRouteTargetContext, c as CommentBeforeCreateHandler, ca as IssueGuestAccessTokenOptions, ci as FileSessionDatabaseFactory, cn as FTSManager, cr as setSiteSettings, cs as prepareContentWrite, ct as PluginMcpReversibility, d as ContentAccess, da as VerifyGuestAccessTokenResult, di as SessionDatabaseFactory, dn as SearchOptions, do as ConfirmedContentPublicationResult, dr as AppliedSnapshotMeta, ds as image, dt as PluginMcpTool, ea as CMSAnnotation, ec as DatabaseConfig, ei as PluginSecretStore, en as currentTimestamp, eo as handleRevisionGet, er as GetCommentsOptions, es as ReviewSubmissionError, et as PluginMcpCommandTool, f as ContentDeleteEvent, fa as hashGuestAccessToken, fi as SessionDatabaseHandle, fn as SearchResponse, fo as PublishConfirmedContentInput, fr as ApplySnapshotToDatabaseOptions, fs as FieldDefinition, ft as PluginMigration, g as EmailAfterSendEvent, ga as checkRateLimit, gi as SessionOpenOrCreateOptions, gn as Suggestion, go as HookPipeline, gr as Snapshot, gs as PortableTextBlock, gt as PluginRouteBodyMode, h as EmailAccess, ha as RateLimitResult, hi as SessionOpenOptions, hn as SuggestOptions, hr as getAppliedSnapshotMeta, hs as ImageValue, ht as PluginRouteAuthorization, i as CommentAfterCreateHandler, ia as createNoop, ii as runPluginMigrations, in as getSuggestions, io as SiteBriefing, ir as getPluginSetting, is as ReviewRequestActorInput, it as PluginMcpPiiPolicy, j as ModerationDecision, ja as ProseMirrorDocument, ji as invalidateCommentObjectCache, jn as getTaxonomyDef, jr as AssignmentAccessContext, js as ReviewRequest, jt as ResolvedPluginHooks, k as MediaAccess, ka as PortableTextTextBlock, ki as invalidateBylineObjectCache, kn as getEntriesByTerm, ko as PluginDescriptor, kr as parseContentId, ks as CreateAssignmentInput, kt as ResolvedHook, l as CommentModerateEvent, la as IssuedGuestAccessToken, li as FileSessionDatabaseFactoryOptions, ln as CollectionSearchOptions, lo as AtomicConfirmedContentAuthorizer, lr as PreviewToolbarConfig, ls as portableText, lt as PluginMcpRiskFactor, m as ContentPublishStateChangeEvent, ma as verifyGuestAccessToken, mi as SessionDatabaseLimitError, mn as SearchStats, mo as PluginRouteError, mr as dropSessionDatabaseTables, ms as FileValue, n as CollectionCommentSettings, na as FieldAnnotation, ni as ValidatedPluginManifest, nn as extractSearchableFields, no as handleRevisionRestore, nr as getCommentCount, ns as prepareAutomatedReview, nt as PluginMcpExecutionContext, o as CommentAfterModerateHandler, oa as GuestAccessTokenClaims, oi as FilePreviewMiddlewareConfig, on as searchCollection, oo as SiteBriefingContextEntry, or as getSiteSetting, os as ContentWriteInput, ot as PluginMcpResource, p as ContentHookEvent, pa as issueGuestAccessToken, pi as SessionDatabaseInfo, pn as SearchResult, pr as applySnapshotToDatabase, ps as FieldUIHints, pt as PluginRoute, q as PluginContext, qa as handleMediaCreate, qi as TranslationSummary, qn as CreateMenuItemInput, qo as handleContentPublish, qr as NoopSandboxRunner, qs as CollectionFilter$1, qt as PublicationReadinessPolicyFinding, r as CommentAfterCreateEvent, ra as createEditable, ri as pluginManifestSchema, rn as getSearchStats, ro as generateManifest, rr as getComments, rs as submitAutomatedReview, rt as PluginMcpPiiClass, s as CommentBeforeCreateEvent, sa as GuestAccessTokenConfigurationError, si as createFilePreviewMiddleware, sn as searchWithDb, sr as getSiteSettings, ss as PreparedContentWrite, st as PluginMcpResourceContent, t as BreadcrumbItem, ta as EditProxy, tc as DinewayDatabaseError, ti as PluginSecretStoreOptions, tn as extractPlainText, to as handleRevisionList, tr as GetCommentsResult, ts as ReviewSubmissionInput, tt as PluginMcpConfig, u as CommentModerateHandler, ua as VerifyGuestAccessTokenOptions, ui as SessionCleanupResult, un as SearchConfig, uo as ConfirmedContentAuthorizer, ur as renderPreviewToolbar, us as reference, ut as PluginMcpRiskLevel, v as EmailBeforeSendEvent, va as sanitizeHref, vc as ContentListResponse, vi as PreviewSidecarSignature, vn as getWidgetAreas, vo as createHookPipeline, vr as isBlockedInPreview, vs as CreateRelationInput, vt as PluginRouteTargetAuthorizationRequest, w as HookConfig, wa as PortableTextHtmlBlock, wi as CacheNamespace, wn as UpdateWidgetInput, wo as SandboxedPlugin, wr as GeneratePreviewTokenOptions, ws as AssignmentActorType, wt as PortableTextBlockField, x as EmailDeliverHandler, xa as portableTextToProsemirror, xc as ListResponse, xi as parsePreviewSignatureHeader, xn as CreateWidgetInput, xo as SandboxOptions, xr as GetPreviewUrlOptions, xs as UpdateRelationInput, xt as PluginStorageConfig, y as EmailBeforeSendHandler, ya as computeContentHash, yc as ContentResponse, yi as buildPreviewSignatureHeader, yn as getWidgetComponents, yo as SandboxEmailMessage, yr as getPreviewToken, ys as Relation, yt as PluginRouteTargetAuthorizer, z as PagePlacement, za as SectionSource, zi as CollectionResult, zn as TaxonomyTermRow, zo as handleContentDelete, zr as CreateHandoffSnapshotInput, zs as SiteActivityTimelineQuery, zt as StorageCollection } from "./types-jtUocGnQ.mjs";
5
5
  import { $ as RestaurantReservationExperienceIncludedAddonTable, $t as VenuePaymentEventTable, A as RestaurantNotificationSettingsTable, At as UserTable, B as RestaurantOutboxDeliveryTable, Bt as VenueGuestAccessTable, C as RestaurantMenuLocationAssignmentTable, Ct as RestaurantServiceScope, D as RestaurantMenuTable, Dt as RestaurantTaxMode, E as RestaurantMenuSectionTable, Et as RestaurantTableTable, F as RestaurantOrderSnapshotTable, Ft as VenueBookingPolicyTable, G as RestaurantPriorityAlertOpportunityTable, Gt as VenueOrderCancellationSnapshotTable, H as RestaurantPaymentStatus, Ht as VenueLocationTable, I as RestaurantOrderSource, It as VenueCancellationPolicyTable, J as RestaurantReservationAddonCategoryTable, Jt as VenueOrderTable, K as RestaurantPriorityAlertTable, Kt as VenueOrderStatus, L as RestaurantOrderStatus, Lt as VenueCancellationPolicyTierTable, M as RestaurantOrderItemModifierTable, Mt as VenueAvailabilityRuleTable, N as RestaurantOrderItemTable, Nt as VenueBookingHoldTable, O as RestaurantModifierGroupTable, Ot as RestaurantZoneTable, P as RestaurantOrderSequenceTable, Pt as VenueBookingMode, Q as RestaurantReservationExperienceAddonCategoryTable, Qt as VenuePaymentCollection, R as RestaurantOrderStatusHistoryTable, Rt as VenueConversationReadTable, S as RestaurantMenuItemTranslationTable, St as RestaurantReservationTableAssignmentTable, T as RestaurantMenuSectionItemTable, Tt as RestaurantTabRoundTable, U as RestaurantPaymentTable, Ut as VenueMessageTable, V as RestaurantPaymentFlow, Vt as VenueLocationMembershipTable, W as RestaurantPriorityAlertDeliveryTable, Wt as VenueNotificationSettingsTable, X as RestaurantReservationBlockTable, Xt as VenuePaymentAllocationStatus, Y as RestaurantReservationAddonTable, Yt as VenueOutboxEventTable, Z as RestaurantReservationDemandSettingsTable, Zt as VenuePaymentAllocationTable, _ as RestaurantHoursTable, _t as RestaurantReservationRequestTable, a as RestaurantCapacityOverrideTable, an as VenueQuoteStatus, at as RestaurantReservationHoldCommercialSelectionTable, b as RestaurantMenuItemModifierGroupTable, bt as RestaurantReservationStatus, c as RestaurantDeliverySettingsTable, cn as VenueRecordStatus, ct as RestaurantReservationOfferLinkDeliveryTable, d as RestaurantDineInSettingsTable, dn as VenueReviewResponseTable, dt as RestaurantReservationPromotionAllocationTable, en as VenuePaymentRecordStatus, et as RestaurantReservationExperienceTable, f as RestaurantFulfilmentType, fn as VenueReviewTable, ft as RestaurantReservationPromotionOperationTable, g as RestaurantHoursOverrideTable, gt as RestaurantReservationQuoteTable, h as RestaurantGuestAccessTable, hn as VenueTable, ht as RestaurantReservationQuoteLineTable, i as RestaurantCapacityCounterTable, in as VenueQuoteRecordStatus, it as RestaurantReservationHoldAddonTable, j as RestaurantOperatingSettingsTable, jt as VenueAvailabilityBlockTable, k as RestaurantModifierOptionTable, l as RestaurantDeliveryZoneTable, ln as VenueRefundTable, lt as RestaurantReservationOfferTable, m as RestaurantGiftCardTable, mn as VenueSpaceTable, mt as RestaurantReservationQuoteCheckoutTable, n as Database, nn as VenuePaymentTable, nt as RestaurantReservationGiftCardOperationTable, o as RestaurantCartHoldTable, on as VenueQuoteTable, ot as RestaurantReservationHoldTable, p as RestaurantGiftCardLedgerEntryTable, pn as VenueSpaceLayoutTable, pt as RestaurantReservationPromotionTable, q as RestaurantRefundTable, qt as VenueOrderStatusHistoryTable, r as MediaTable, rn as VenueQuoteLineTable, rt as RestaurantReservationHoldAddonOperationTable, s as RestaurantClosureTable, sn as VenueRatePlanTable, st as RestaurantReservationLanguageSettingsTable, tn as VenuePaymentStatus, tt as RestaurantReservationGiftCardAllocationTable, u as RestaurantDineInSessionTable, un as VenueReviewInvitationTable, ut as RestaurantReservationPaymentPolicyTable, v as RestaurantLocationMembershipTable, vt as RestaurantReservationRequestTableAssignmentTable, w as RestaurantMenuOverrideTable, wt as RestaurantSpecialHoursTable, x as RestaurantMenuItemTable, xt as RestaurantReservationTable, y as RestaurantLocationTable, yt as RestaurantReservationSettingsTable, z as RestaurantOrderTable, zt as VenueConversationTable } from "./types-CG9uGPBL.mjs";
6
6
  import { _ as MediaValue, n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-CjKwIO3g.mjs";
7
7
  import { n as getMigrationStatus, t as MigrationStatus } from "./runner-DlkOiguI.mjs";
@@ -10,13 +10,13 @@ import "./types-CeFGasN8.mjs";
10
10
  import { a as AuthResult, i as AuthProviderModule, n as AuthProviderAdminExports, o as AuthRouteDescriptor, r as AuthProviderDescriptor, s as ExternalAuthConfig, t as AuthDescriptor } from "./types-DLwh1QkC.mjs";
11
11
  import { i as PostgresConfig, n as DatabaseDialectType, r as LibsqlConfig, s as SqliteConfig, t as DatabaseDescriptor } from "./adapters-cL325h6c.mjs";
12
12
  import { i as ObjectCacheRuntimeConfig, n as ObjectCacheBackend, r as ObjectCacheDescriptor } from "./types-BSCBDV_V.mjs";
13
- import "./runtime-Dx9QpCL5.mjs";
13
+ import "./runtime-ecsN2xL9.mjs";
14
14
  import "./hook-events-lN-kz-4_.mjs";
15
15
  import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescriptor, i as FileInfo, l as SignedUploadOptions, n as DinewayStorageError, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, t as CreateStorageFn, u as SignedUploadUrl } from "./types-B2rEY0ik.mjs";
16
16
  import "./scheduled-publish-7kZkKw7t.mjs";
17
17
  import { c as I18nConfig, d as isI18nEnabled, l as getFallbackChain, n as resolveContentUrl, t as ResolveContentUrlInput, u as getI18nConfig } from "./public-url-CvNSyMJJ.mjs";
18
18
  import { C as SiteSettingKey, S as SeoSettings, _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, l as SeedContentEntry, o as SeedApplyOptions, p as SeedMenuItem, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, w as SiteSettings, x as MediaReference, y as SeedWidgetArea } from "./validate-CleBZbkv.mjs";
19
- import "./byline-fields-LAgJ9PSU.mjs";
19
+ import "./byline-fields-D6EXp7_j.mjs";
20
20
  import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
21
21
  import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
22
22
  import { S as UrlInput, _ as SourceAuth, a as FileInput, b as SourceProbeResult, c as ImportContext, d as ImportSource, f as NormalizedItem, g as ProbeResult, h as PostTypeMapping, i as FieldCompatibility, l as ImportFieldDef, m as PostTypeAnalysis, n as CollectionSchemaStatus, o as ImportAnalysis, p as OAuthInput, r as FetchOptions, s as ImportConfig, t as AttachmentInfo, u as ImportResult, v as SourceCapabilities, x as SuggestedAction, y as SourceInput } from "./types-BuplUVZ4.mjs";
package/dist/index.mjs CHANGED
@@ -5,79 +5,79 @@ import { r as DinewayDatabaseError } from "./connection-DJ3GzHVH.mjs";
5
5
  import "./d1-binding-DrLMBUxu.mjs";
6
6
  import { i as currentTimestamp } from "./dialect-helpers-C6xtO-Ui.mjs";
7
7
  import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-XW5tMrH8.mjs";
8
- import { C as image, S as reference, _ as issueGuestAccessToken, a as createNoopSandboxRunner, b as prosemirrorToPortableText, c as PluginSecretStore, f as definePlugin, g as hashGuestAccessToken, h as GuestAccessTokenConfigurationError, i as SandboxNotAvailableError, l as PluginRouteError, n as createNodeSandboxRunner, o as PluginManager, r as NoopSandboxRunner, s as createPluginManager, t as NodeSandboxRunner, v as verifyGuestAccessToken, w as RelationRepository, x as portableText, y as portableTextToProsemirror } from "./plugins-rop9tkYG.mjs";
8
+ import { C as image, S as reference, _ as issueGuestAccessToken, a as createNoopSandboxRunner, b as prosemirrorToPortableText, c as PluginSecretStore, f as definePlugin, g as hashGuestAccessToken, h as GuestAccessTokenConfigurationError, i as SandboxNotAvailableError, l as PluginRouteError, n as createNodeSandboxRunner, o as PluginManager, r as NoopSandboxRunner, s as createPluginManager, t as NodeSandboxRunner, v as verifyGuestAccessToken, w as RelationRepository, x as portableText, y as portableTextToProsemirror } from "./plugins-C10hTI65.mjs";
9
9
  import "./config---A7Bg68.mjs";
10
- import { f as extractPlainText, p as extractSearchableFields } from "./runtime-Dz7vZRPU.mjs";
11
- import "./revisions-C-T9CdGo.mjs";
10
+ import { f as extractPlainText, p as extractSearchableFields } from "./runtime-BLoyGKUx.mjs";
11
+ import "./revisions-CQZI886L.mjs";
12
12
  import "./runtime-env-DpYGy4pT.mjs";
13
13
  import "./base64-qvSs0Gxy.mjs";
14
14
  import { i as encodeCursor, n as ScheduledNotDueError, r as decodeCursor, t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
15
- import { r as getDb } from "./loader-C9hvIKEW.mjs";
15
+ import { r as getDb } from "./loader--zFg6meV.mjs";
16
16
  import "./actor-D0AW80ld.mjs";
17
17
  import "./atomic-authority-Bf5QZboB.mjs";
18
- import { t as ContentRepository } from "./content-Dxx0H4k8.mjs";
18
+ import { t as ContentRepository } from "./content-BZBomTNV.mjs";
19
19
  import "./request-cache-CizvDoxV.mjs";
20
20
  import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-BgUxCuwu.mjs";
21
21
  import "./byline-registry-Caj0_gbU.mjs";
22
22
  import "./field-defs-cache-dn5Tw79A.mjs";
23
- import { a as invalidateBylineObjectCache, c as invalidateMenuObjectCache, d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, i as contentNamespaces, l as invalidateObjectCache, n as cachedQuery, o as invalidateCollectionCache, r as contentNamespace, s as invalidateCommentObjectCache, t as CacheNamespace, u as invalidateSchemaObjectCache } from "./object-cache-qP60KjUp.mjs";
24
- import { t as BylineRepository } from "./byline-BvFH-UZw.mjs";
25
- import "./owned-metadata-CJs4-k1w.mjs";
23
+ import { a as invalidateBylineObjectCache, c as invalidateMenuObjectCache, d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, i as contentNamespaces, l as invalidateObjectCache, n as cachedQuery, o as invalidateCollectionCache, r as contentNamespace, s as invalidateCommentObjectCache, t as CacheNamespace, u as invalidateSchemaObjectCache } from "./object-cache-Ue6kAfzf.mjs";
24
+ import { t as BylineRepository } from "./byline-BS25s1R-.mjs";
25
+ import "./owned-metadata-bXhDX1WW.mjs";
26
26
  import { t as decodeSlug } from "./slugify-DvoaEPtL.mjs";
27
- import { t as RevisionRepository } from "./revision-BhnVYOMz.mjs";
27
+ import { t as RevisionRepository } from "./revision-BtgwJxxa.mjs";
28
28
  import { t as MediaRepository } from "./media-BjH5OD-A.mjs";
29
29
  import "./user-Bl2_8rhJ.mjs";
30
30
  import "./terms-EskuqbKE.mjs";
31
- import "./taxonomy-B4O77tAe.mjs";
32
- import "./comment-CbGlRPPS.mjs";
31
+ import "./taxonomy-CcyZD5jQ.mjs";
32
+ import "./comment-BTt78k0n.mjs";
33
33
  import "./options-yFkLUuTw.mjs";
34
34
  import "./audit-hXJBTPY0.mjs";
35
35
  import { t as SiteActivityRepository } from "./site-activity-hpfJkmxQ.mjs";
36
36
  import "./review-requests-DZYM51yI.mjs";
37
- import "./publication-authorization-CS8WqkzL.mjs";
38
- import { n as AssignmentService, r as HandoffSnapshotStore, w as AssignmentRepository } from "./site-context-DNiKKCc1.mjs";
39
- import "./context-c4OnrX-0.mjs";
40
- import "./menus-BfQjG9Wc.mjs";
37
+ import "./publication-authorization-DBNXaGgH.mjs";
38
+ import { n as AssignmentService, r as HandoffSnapshotStore, w as AssignmentRepository } from "./site-context-DkxgOnQl.mjs";
39
+ import "./context-RtLnM2-Z.mjs";
40
+ import "./menus-BoNLPIAK.mjs";
41
41
  import "./redirect-CJ-FAbNK.mjs";
42
42
  import { n as normalizeMediaValue } from "./normalize-DrmlLn40.mjs";
43
43
  import { n as generatePlaceholder } from "./enrich-CAMsD1aT.mjs";
44
- import { C as handleContentUnschedule, S as handleContentUnpublish, _ as handleContentPermanentDelete, a as handleContentAuthors, b as handleContentSchedule, c as handleContentCountTrashed, d as handleContentDiscardDraft, f as handleContentDuplicate, g as handleContentListTrashed, h as handleContentList, l as handleContentCreate, m as handleContentGetIncludingTrashed, n as prepareContentWrite, o as handleContentCompare, p as handleContentGet, s as handleContentCountScheduled, u as handleContentDelete, v as handleContentPublish, w as handleContentUpdate, x as handleContentTranslations, y as handleContentRestore } from "./content-write-eOTKAf2d.mjs";
44
+ import { C as handleContentUnschedule, S as handleContentUnpublish, _ as handleContentPermanentDelete, a as handleContentAuthors, b as handleContentSchedule, c as handleContentCountTrashed, d as handleContentDiscardDraft, f as handleContentDuplicate, g as handleContentListTrashed, h as handleContentList, l as handleContentCreate, m as handleContentGetIncludingTrashed, n as prepareContentWrite, o as handleContentCompare, p as handleContentGet, s as handleContentCountScheduled, u as handleContentDelete, v as handleContentPublish, w as handleContentUpdate, x as handleContentTranslations, y as handleContentRestore } from "./content-write-Bt_eiX9o.mjs";
45
45
  import "./version-store-DyYULGd3.mjs";
46
- import "./write-intent-D6xfcx1f.mjs";
47
- import "./seo-DxrTizK0.mjs";
46
+ import "./write-intent-CjTERf3N.mjs";
47
+ import "./seo-BQ7R2a1z.mjs";
48
48
  import { n as buildStableActionHash } from "./review-payload-mDJIgcFy.mjs";
49
49
  import "./context-types-B9ShQ_6c.mjs";
50
- import { d as HookPipeline, f as createHookPipeline, t as SiteBriefingAssembler } from "./briefing-9YqN5XoW.mjs";
50
+ import { d as HookPipeline, f as createHookPipeline, t as SiteBriefingAssembler } from "./briefing-yQgD73g4.mjs";
51
51
  import "./runs-BGqkkqhp.mjs";
52
52
  import "./secrets-D52WNV_c.mjs";
53
- import "./content-refresh-COi0WfKw.mjs";
53
+ import "./content-refresh-DbGFLB3p.mjs";
54
54
  import "./ssrf-C7tTSD1r.mjs";
55
55
  import { n as hashString, t as computeContentHash } from "./hash-BinU5FKm.mjs";
56
56
  import { t as FTSManager } from "./fts-manager-BHwhq1lC.mjs";
57
57
  import "./public-discovery-CGRirTJH.mjs";
58
- import { n as SchemaRegistry, t as SchemaError } from "./registry-3xWpSYNI.mjs";
59
- import { i as getSiteSettings, n as getPluginSettings, r as getSiteSetting, s as setSiteSettings, t as getPluginSetting } from "./settings-D0SBKo-W.mjs";
60
- import "./evidence-FRy3SVTP.mjs";
61
- import { n as prepareAutomatedReview, r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-C7tI1Frs.mjs";
62
- import "./dashboard-C_x93lbv.mjs";
63
- import "./briefing-CXQA-DpY.mjs";
64
- import "./review-requests-BQZp6VaG.mjs";
65
- import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, T as handleMediaCreate, j as handleRevisionList, k as handleMediaUpdate } from "./api-Dz33hkaL.mjs";
66
- import { t as getCollectionInfo } from "./query-D0qnvePL.mjs";
58
+ import { n as SchemaRegistry, t as SchemaError } from "./registry-DEKqjKIM.mjs";
59
+ import { i as getSiteSettings, n as getPluginSettings, r as getSiteSetting, s as setSiteSettings, t as getPluginSetting } from "./settings-Bc2eQPR6.mjs";
60
+ import "./evidence-D3Tqm_ik.mjs";
61
+ import { n as prepareAutomatedReview, r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-BNP2Sc3O.mjs";
62
+ import "./dashboard-C_x53TcC.mjs";
63
+ import "./briefing-CbsLoDJS.mjs";
64
+ import "./review-requests-B7UdAl1r.mjs";
65
+ import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, T as handleMediaCreate, j as handleRevisionList, k as handleMediaUpdate } from "./api-BSmjb74C.mjs";
66
+ import { t as getCollectionInfo } from "./query-5edkcMYz.mjs";
67
67
  import { r as validateContent } from "./zod-generator-DBu-v5Zy.mjs";
68
- import "./schema-2x9K4t9t.mjs";
69
- import "./discovery-CIgViNk9.mjs";
68
+ import "./schema-DIXUswIX.mjs";
69
+ import "./discovery-DNwLsQqJ.mjs";
70
70
  import { t as resolveContentUrl } from "./public-url-NCefkiXz.mjs";
71
- import "./seo-BYBqbsZk.mjs";
72
- import "./bylines-ZfS9Qm_E.mjs";
71
+ import "./seo-DdczIQvk.mjs";
72
+ import "./bylines-CLBeFLdo.mjs";
73
73
  import "./byline-fields-BAezRNxz.mjs";
74
- import { o as getSection, s as getSections } from "./sections-0cg9Dhp6.mjs";
75
- import "./settings-DM4P-jVe.mjs";
74
+ import { o as getSection, s as getSections } from "./sections-zaZhTZqa.mjs";
75
+ import "./settings-CoCGUtE6.mjs";
76
76
  import "./store-rYMso0t7.mjs";
77
77
  import "./integration-credentials-B23h97Ip.mjs";
78
78
  import "./resolve-BdDNBmaU.mjs";
79
- import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-CZHI0fCa.mjs";
80
- import "./taxonomies-Cf9huhQ6.mjs";
79
+ import { a as getTaxonomyTerms, i as getTaxonomyDefs, n as getEntryTerms, o as getTerm, r as getTaxonomyDef, s as getTermsForEntries, t as getEntriesByTerm } from "./taxonomies-CVe1PGaO.mjs";
80
+ import "./taxonomies-zgZ2HG_z.mjs";
81
81
  import { r as isStandardPluginDefinition } from "./types-MCEx6w1B.mjs";
82
82
  import { i as pluginManifestSchema } from "./manifest-schema-B_rWNZn5.mjs";
83
83
  import { t as DinewayStorageError } from "./types-PX2c4KA4.mjs";
@@ -89,7 +89,7 @@ import { n as sanitizeHref, t as isSafeHref } from "./url--_ukDIsN.mjs";
89
89
  import "./status-CDqWWt6i.mjs";
90
90
  import "./trusted-proxy-Dmi1gZXh.mjs";
91
91
  import { t as checkRateLimit } from "./rate-limit-BzNkH-vQ.mjs";
92
- import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-B1t4PSfw.mjs";
92
+ import { c as createEditable, i as getTranslations, l as createNoop, n as getDinewayEntry, r as getEditMeta, s as resolveDinewayPath, t as getDinewayCollection } from "./query-CNXVFYWz.mjs";
93
93
  import { a as verifyPreviewSignature, i as signPreviewUrl, n as defaultPreviewSidecarClient, r as parsePreviewSignatureHeader, t as buildPreviewSignatureHeader } from "./sidecar-client-D69s90P-.mjs";
94
94
  import { a as createFilePreviewMiddleware, c as dropSessionDatabaseTables, d as SessionDatabaseLimitError, f as isBlockedInPreview, i as getPreviewUrl, l as getAppliedSnapshotMeta, n as isPreviewRequest, o as renderPreviewToolbar, p as renderPreviewLoadingPage, r as buildPreviewUrl, s as applySnapshotToDatabase, t as getPreviewToken, u as FileSessionDatabaseFactory } from "./preview-DC1K_aSd.mjs";
95
95
  import { n as parseWxrString, t as parseWxr } from "./parser-CoH5-854.mjs";
@@ -97,20 +97,20 @@ import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
97
97
  import { n as runPluginMigrations } from "./migrations-DTCIQJ2_.mjs";
98
98
  import "./request-meta-DOBXMRX0.mjs";
99
99
  import "./api-tokens-CK0aCsS2.mjs";
100
- import { t as createReviewedPluginMcpCommandExecutor } from "./mcp-reviewed-executor-B4O9L9MT.mjs";
100
+ import { t as createReviewedPluginMcpCommandExecutor } from "./mcp-reviewed-executor-CiuVfiL_.mjs";
101
101
  import "./activity-lyE6xCrf.mjs";
102
102
  import "./activity-events-D4JfWJFI.mjs";
103
103
  import "./utils-WY63JOPB.mjs";
104
- import { a as searchCollection, i as search, n as getSearchStats, o as searchWithDb, r as getSuggestions } from "./search--Qmm2s6n.mjs";
105
- import { _ as probeUrl, d as wxrSource, f as clearSources, g as getUrlSources, h as getSource, i as wordpressRestSource, m as getFileSources, p as getAllSources, u as parseWxrDate, v as registerSource, x as importReusableBlocksAsSections } from "./import-Cn1_u1S2.mjs";
104
+ import { a as searchCollection, i as search, n as getSearchStats, o as searchWithDb, r as getSuggestions } from "./search-TXLzVROW.mjs";
105
+ import { _ as probeUrl, d as wxrSource, f as clearSources, g as getUrlSources, h as getSource, i as wordpressRestSource, m as getFileSources, p as getAllSources, u as parseWxrDate, v as registerSource, x as importReusableBlocksAsSections } from "./import-BkBVo6UM.mjs";
106
106
  import { n as parseContentId, r as verifyPreviewToken, t as generatePreviewToken } from "./tokens-B6bMUhBx.mjs";
107
107
  import { getContentSeo, getSeoMeta } from "./seo/index.mjs";
108
108
  import "./comment-reaction-CFkwluRq.mjs";
109
- import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-DL-BYzwG.mjs";
110
- import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-DLFjKcNr.mjs";
111
- import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-P1hMbKIT.mjs";
109
+ import { i as getComments, n as getMenus, r as getCommentCount, t as getMenu } from "./menus-Dq323Wka.mjs";
110
+ import { i as getEntriesByByline, n as getByline, r as getBylineBySlug } from "./bylines-ZRvo3-j0.mjs";
111
+ import { n as getWidgetAreas, r as getWidgetComponents, t as getWidgetArea } from "./widgets-CJBk8bm7.mjs";
112
112
  import { t as validateSeed } from "./validate-WOW5vZz_.mjs";
113
- import { t as applySeed } from "./apply-SoTzf8LK.mjs";
113
+ import { t as applySeed } from "./apply-Caad3Uh7.mjs";
114
114
  import "./load-XTcFS1Dp.mjs";
115
115
  import "./seed/index.mjs";
116
116
  import { ulid } from "ulidx";
@@ -1,4 +1,4 @@
1
- import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, R as PageMetadataLinkRel, Tt as PublicPageContext, t as BreadcrumbItem, z as PagePlacement } from "./types-z2nZassR.mjs";
1
+ import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, R as PageMetadataLinkRel, Tt as PublicPageContext, t as BreadcrumbItem, z as PagePlacement } from "./types-jtUocGnQ.mjs";
2
2
  import { S as SeoSettings } from "./validate-CleBZbkv.mjs";
3
3
 
4
4
  //#region src/page/context.d.ts
@@ -2,8 +2,8 @@ import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
2
2
  import { getRequestContext } from "./request-context.mjs";
3
3
  import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
4
4
  import { o as isPostgres, r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
5
- import { a as hydrateContentRows, o as registerContentStorage } from "./runtime-Dz7vZRPU.mjs";
6
- import { t as readRevisionData } from "./revisions-C-T9CdGo.mjs";
5
+ import { a as hydrateContentRows, o as registerContentStorage } from "./runtime-BLoyGKUx.mjs";
6
+ import { t as readRevisionData } from "./revisions-CQZI886L.mjs";
7
7
  import { kyselyLogOption } from "./database/instrumentation.mjs";
8
8
  import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
9
9
  import { Kysely, sql } from "kysely";
@@ -682,7 +682,7 @@ function dinewayLoader() {
682
682
  } else result = await entriesQuery.execute(db);
683
683
  const hasMore = limit ? result.rows.length > limit : false;
684
684
  const rows = hasMore ? result.rows.slice(0, limit) : result.rows;
685
- await hydrateContentRows(db, type, rows, select);
685
+ await hydrateContentRows(db, type, rows, select, status === "published");
686
686
  const i18nConfig = virtualConfig?.i18n;
687
687
  const i18nEnabled = i18nConfig && i18nConfig.locales.length > 1;
688
688
  const entries = rows.map((row) => {
@@ -767,7 +767,7 @@ function dinewayLoader() {
767
767
  LIMIT 1
768
768
  `.execute(db)).rows[0];
769
769
  if (!row) return;
770
- await hydrateContentRows(db, type, [row]);
770
+ await hydrateContentRows(db, type, [row], void 0, true);
771
771
  expandFoldedSeo(row);
772
772
  const i18nConfig = virtualConfig?.i18n;
773
773
  const i18nEnabled = i18nConfig && i18nConfig.locales.length > 1;
@@ -1,6 +1,6 @@
1
1
  import { n as stableStringify } from "./stable-hash-9RDJgfif.mjs";
2
- import { o as HitlRequestRepository } from "./publication-authorization-CS8WqkzL.mjs";
3
- import { b as HitlRequestService } from "./site-context-DNiKKCc1.mjs";
2
+ import { o as HitlRequestRepository } from "./publication-authorization-DBNXaGgH.mjs";
3
+ import { b as HitlRequestService } from "./site-context-DkxgOnQl.mjs";
4
4
  import { n as buildStableActionHash } from "./review-payload-mDJIgcFy.mjs";
5
5
  import { i as hasScope$1 } from "./api-tokens-CK0aCsS2.mjs";
6
6
  import { m as logSiteActivityStrict, p as logSiteActivitySafely } from "./activity-events-D4JfWJFI.mjs";
@@ -1,4 +1,4 @@
1
- import "../types-z2nZassR.mjs";
1
+ import "../types-jtUocGnQ.mjs";
2
2
  import { n as Database } from "../types-CG9uGPBL.mjs";
3
3
  import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CjKwIO3g.mjs";
4
4
  import "../runner-DlkOiguI.mjs";
@@ -6,13 +6,13 @@ import "../index-_fCUsJx9.mjs";
6
6
  import "../types-CeFGasN8.mjs";
7
7
  import "../types-DLwh1QkC.mjs";
8
8
  import "../adapters-cL325h6c.mjs";
9
- import "../runtime-Dx9QpCL5.mjs";
9
+ import "../runtime-ecsN2xL9.mjs";
10
10
  import "../hook-events-lN-kz-4_.mjs";
11
11
  import { d as Storage } from "../types-B2rEY0ik.mjs";
12
12
  import "../scheduled-publish-7kZkKw7t.mjs";
13
13
  import "../public-url-CvNSyMJJ.mjs";
14
14
  import "../validate-CleBZbkv.mjs";
15
- import "../byline-fields-LAgJ9PSU.mjs";
15
+ import "../byline-fields-D6EXp7_j.mjs";
16
16
  import "../types-BuplUVZ4.mjs";
17
17
  import "../index.mjs";
18
18
  import { Kysely } from "kysely";
@@ -1,7 +1,7 @@
1
1
  import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
2
2
  import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "./database/batch.mjs";
3
3
  import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
4
- import { c as invalidateMenuObjectCache } from "./object-cache-qP60KjUp.mjs";
4
+ import { c as invalidateMenuObjectCache } from "./object-cache-Ue6kAfzf.mjs";
5
5
  import { sql } from "kysely";
6
6
  import { ulid } from "ulidx";
7
7
 
@@ -1,8 +1,8 @@
1
1
  import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
2
- import { r as getDb } from "./loader-C9hvIKEW.mjs";
2
+ import { r as getDb } from "./loader--zFg6meV.mjs";
3
3
  import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
4
- import { n as cachedQuery, t as CacheNamespace } from "./object-cache-qP60KjUp.mjs";
5
- import { t as CommentRepository } from "./comment-CbGlRPPS.mjs";
4
+ import { n as cachedQuery, t as CacheNamespace } from "./object-cache-Ue6kAfzf.mjs";
5
+ import { t as CommentRepository } from "./comment-BTt78k0n.mjs";
6
6
  import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-BdDNBmaU.mjs";
7
7
  import { n as sanitizeHref } from "./url--_ukDIsN.mjs";
8
8
  import { t as CommentReactionRepository } from "./comment-reaction-CFkwluRq.mjs";
@@ -1,10 +1,10 @@
1
1
  import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
2
2
  import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config---A7Bg68.mjs";
3
- import { b as prepareContentChangeJournal, d as prepareContentProjection, h as cancelContentMigration, l as assertContentIndexFields, r as getContentStorage, u as contentProjectionValues, v as readContentPartitionRoute, y as contentChangeSequence } from "./runtime-Dz7vZRPU.mjs";
4
- import { n as readRevisionDataBatch, r as storedRevisionIndex } from "./revisions-C-T9CdGo.mjs";
5
- import { t as ContentRepository } from "./content-Dxx0H4k8.mjs";
6
- import { o as invalidateCollectionCache } from "./object-cache-qP60KjUp.mjs";
7
- import { i as contentWriteConfiguration, k as snapshotPartitionDependencies } from "./content-write-eOTKAf2d.mjs";
3
+ import { b as prepareContentChangeJournal, d as prepareContentProjection, h as cancelContentMigration, l as assertContentIndexFields, r as getContentStorage, u as contentProjectionValues, v as readContentPartitionRoute, y as contentChangeSequence } from "./runtime-BLoyGKUx.mjs";
4
+ import { n as readRevisionDataBatch, r as storedRevisionIndex } from "./revisions-CQZI886L.mjs";
5
+ import { t as ContentRepository } from "./content-BZBomTNV.mjs";
6
+ import { o as invalidateCollectionCache } from "./object-cache-Ue6kAfzf.mjs";
7
+ import { i as contentWriteConfiguration, k as snapshotPartitionDependencies } from "./content-write-Bt_eiX9o.mjs";
8
8
  import { o as contentVersionSchema } from "./version-store-DyYULGd3.mjs";
9
9
  import { a as contentItemSchema } from "./content-C8i4DyTt.mjs";
10
10
  import { sql } from "kysely";
@@ -203,7 +203,14 @@ async function migrationState(db, migration) {
203
203
  return row;
204
204
  }
205
205
  async function migrationManifest(db, migration) {
206
- const rows = (await sql`SELECT * FROM _dineway_content_migration_entries WHERE migration_id=${migration.id} AND state<>'skipped' ORDER BY entry_id`.execute(db)).rows;
206
+ const rows = [];
207
+ let after = "";
208
+ for (;;) {
209
+ const page = (await sql`SELECT * FROM _dineway_content_migration_entries WHERE migration_id=${migration.id} AND state<>'skipped' AND entry_id>${after} ORDER BY entry_id LIMIT 128`.execute(db)).rows;
210
+ rows.push(...page);
211
+ if (page.length < 128) break;
212
+ after = page.at(-1).entry_id;
213
+ }
207
214
  return {
208
215
  rows,
209
216
  digest: await contentDigest(rows.map((row) => ({
@@ -395,47 +402,80 @@ async function activateContentMigrationEntry(db, migration, entryId, archive) {
395
402
  });
396
403
  invalidateCollectionCache(migration.collection);
397
404
  }
398
- /** Refresh the frozen delta, verify all current IDs, and seal the activation manifest. */
399
- async function verifyContentMigration(db, migration, archive) {
400
- const partition = await readContentPartitionRoute(db, migration.collection, migration.partition);
401
- if (partition.route.migration_id !== migration.id || partition.route.state !== "frozen") throw new ContentStorageError("CONFLICT", "The final verification requires a frozen partition.");
405
+ /** Verify one bounded page. Durable per-entry receipts let a later process resume the freeze. */
406
+ async function verifyContentMigrationPage(db, migration, archive, limit = 20) {
407
+ if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100) throw new ContentStorageError("INVALID_CONFIG", "Verification pages require a limit from 1 to 100.");
408
+ const { collection, partition, id } = migration;
409
+ let route = await readContentPartitionRoute(db, collection, partition);
402
410
  const phase = await migrationState(db, migration);
411
+ if (route.route.migration_id !== id || route.route.state !== "frozen") throw new ContentStorageError("CONFLICT", "The final verification requires a frozen partition.");
403
412
  if (["verified", "activating"].includes(phase.state)) return {
413
+ done: true,
404
414
  count: phase.verified_count,
405
415
  digest: phase.manifest_digest
406
416
  };
407
417
  if (!["frozen", "verifying"].includes(phase.state)) throw new ContentStorageError("CONFLICT", "The migration cannot be verified in its current state.");
408
418
  await atomicBatch(db, {
409
- checks: [partition.check, sql`EXISTS (SELECT 1 FROM _dineway_content_migrations WHERE id=${migration.id} AND state=${phase.state})`],
410
- statements: [sql`UPDATE _dineway_content_partitions SET epoch=epoch+1, updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE collection=${migration.collection} AND partition=${migration.partition}`.compile(db), sql`UPDATE _dineway_content_migrations SET state='verifying', updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE id=${migration.id}`.compile(db)]
419
+ checks: [route.check, sql`EXISTS (SELECT 1 FROM _dineway_content_migrations WHERE id=${id} AND state=${phase.state})`],
420
+ statements: [sql`UPDATE _dineway_content_partitions SET epoch=epoch+1,updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE collection=${collection} AND partition=${partition}`.compile(db), sql`UPDATE _dineway_content_migrations SET state='verifying',updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE id=${id}`.compile(db)]
411
421
  });
412
- const verification = await readContentPartitionRoute(db, migration.collection, migration.partition);
413
- let cursor = "";
414
- for (;;) {
415
- const ids = (await sql`SELECT c.id FROM ${sql.table(`ec_${migration.collection}`)} c JOIN _dineway_content_locations l ON l.collection=${migration.collection} AND l.entry_id=c.id WHERE l.partition=${migration.partition} AND c.id>${cursor} ORDER BY c.id LIMIT 20`.execute(db)).rows;
416
- for (const { id } of ids) await stageMigrationEntry(db, migration, id, archive, verification.route.epoch);
417
- if (ids.length < 20) break;
418
- cursor = ids.at(-1).id;
422
+ const epoch = route.route.epoch + 1;
423
+ route = await readContentPartitionRoute(db, collection, partition);
424
+ if (route.route.epoch !== epoch || route.route.migration_id !== id || route.route.state !== "frozen") throw new ContentStorageError("CONFLICT", "Another verification attempt superseded this page.");
425
+ const verifying = sql`EXISTS (SELECT 1 FROM _dineway_content_migrations WHERE id=${id} AND state='verifying')`;
426
+ const current = sql`FROM _dineway_content_locations l JOIN ${sql.table(`ec_${collection}`)} c ON c.id=l.entry_id
427
+ LEFT JOIN _dineway_content_migration_entries m ON m.migration_id=${id} AND m.entry_id=l.entry_id
428
+ WHERE l.collection=${collection} AND l.partition=${partition}`;
429
+ const sequence = sql`(SELECT coalesce(max(sequence),0) FROM _dineway_content_changes j WHERE j.collection=l.collection AND j.entry_id=l.entry_id)`;
430
+ const pending = sql`${current} AND (m.state IS NULL OR m.state <> ('checked:' || ${sequence}))`;
431
+ const page = (await sql`SELECT l.entry_id,${sequence} AS sequence ${pending} ORDER BY l.entry_id LIMIT ${limit}`.execute(db)).rows;
432
+ for (const row of page) {
433
+ const checkpoint = await stageMigrationEntry(db, migration, row.entry_id, archive, route.route.epoch);
434
+ if (!checkpoint) throw new ContentStorageError("CONFLICT", "The migration entry was not prepared.");
435
+ await atomicBatch(db, {
436
+ checks: [
437
+ route.check,
438
+ verifying,
439
+ rowUnchanged("_dineway_content_migration_entries", { ...checkpoint }),
440
+ sql`${contentChangeSequence(collection, row.entry_id)}=${row.sequence}`
441
+ ],
442
+ statements: [sql`UPDATE _dineway_content_migration_entries SET state=${"checked:" + row.sequence} WHERE migration_id=${id} AND entry_id=${row.entry_id}`.compile(db)]
443
+ });
419
444
  }
445
+ if (page.length === limit) return {
446
+ done: false,
447
+ count: page.length
448
+ };
420
449
  await atomicBatch(db, {
421
- checks: [verification.check],
422
- statements: [sql`UPDATE _dineway_content_migration_entries SET state='skipped' WHERE migration_id=${migration.id} AND state='prepared' AND NOT EXISTS (SELECT 1 FROM ${sql.table(`ec_${migration.collection}`)} c JOIN _dineway_content_locations l ON l.collection=${migration.collection} AND l.entry_id=c.id WHERE c.id=_dineway_content_migration_entries.entry_id AND l.partition=${migration.partition})`.compile(db), sql`DELETE FROM _dineway_content_locations WHERE collection=${migration.collection} AND partition=${migration.partition} AND NOT EXISTS (SELECT 1 FROM ${sql.table(`ec_${migration.collection}`)} c WHERE c.id=_dineway_content_locations.entry_id)`.compile(db)]
450
+ checks: [route.check, verifying],
451
+ statements: [sql`UPDATE _dineway_content_migration_entries SET state='skipped' WHERE migration_id=${id} AND NOT EXISTS (SELECT 1 FROM ${sql.table(`ec_${collection}`)} c JOIN _dineway_content_locations l ON l.collection=${collection} AND l.entry_id=c.id WHERE c.id=_dineway_content_migration_entries.entry_id AND l.partition=${partition})`.compile(db), sql`DELETE FROM _dineway_content_locations WHERE collection=${collection} AND partition=${partition} AND NOT EXISTS (SELECT 1 FROM ${sql.table(`ec_${collection}`)} c WHERE c.id=_dineway_content_locations.entry_id)`.compile(db)]
423
452
  });
424
453
  const manifest = await migrationManifest(db, migration);
425
454
  await atomicBatch(db, {
426
455
  checks: [
427
- verification.check,
428
- sql`EXISTS (SELECT 1 FROM _dineway_content_migrations WHERE id=${migration.id} AND state='verifying')`,
429
- sql`(SELECT COUNT(*) FROM _dineway_content_locations WHERE collection=${migration.collection} AND partition=${migration.partition})=${manifest.rows.length}`,
430
- sql`NOT EXISTS (SELECT 1 FROM _dineway_content_locations l WHERE l.collection=${migration.collection} AND l.partition=${migration.partition} AND NOT EXISTS (SELECT 1 FROM _dineway_content_migration_entries m WHERE m.migration_id=${migration.id} AND m.entry_id=l.entry_id AND m.state='prepared'))`
456
+ route.check,
457
+ verifying,
458
+ sql`NOT EXISTS (SELECT 1 ${pending})`,
459
+ sql`(SELECT count(*) FROM _dineway_content_locations WHERE collection=${collection} AND partition=${partition})=${manifest.rows.length}`,
460
+ sql`(SELECT count(*) FROM _dineway_content_migration_entries WHERE migration_id=${id} AND state LIKE 'checked:%')=${manifest.rows.length}`
431
461
  ],
432
- statements: [sql`UPDATE _dineway_content_migrations SET state='verified', manifest_digest=${manifest.digest}, verified_count=${manifest.rows.length}, updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE id=${migration.id} AND state='verifying'`.compile(db)]
462
+ statements: [sql`UPDATE _dineway_content_migration_entries SET state='prepared' WHERE migration_id=${id} AND state LIKE 'checked:%'`.compile(db), sql`UPDATE _dineway_content_migrations SET state='verified',manifest_digest=${manifest.digest},verified_count=${manifest.rows.length},updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE id=${id}`.compile(db)]
433
463
  });
434
464
  return {
465
+ done: true,
435
466
  count: manifest.rows.length,
436
467
  digest: manifest.digest
437
468
  };
438
469
  }
470
+ async function verifyContentMigration(db, migration, archive) {
471
+ for (;;) {
472
+ const page = await verifyContentMigrationPage(db, migration, archive);
473
+ if (page.done) return {
474
+ count: page.count,
475
+ digest: page.digest
476
+ };
477
+ }
478
+ }
439
479
  /** Reopen writes only after every sealed entry has activated; old archives remain retained. */
440
480
  async function completeContentMigration(db, migration) {
441
481
  const phase = await migrationState(db, migration);
@@ -524,4 +564,4 @@ async function rollbackContentMigration(db, migration, archive) {
524
564
  }
525
565
 
526
566
  //#endregion
527
- export { verifyContentMigration as a, contentMigrationSnapshotSchema as c, stageContentMigrationEntry as i, migrateContentStorageConfig as l, completeContentMigration as n, bootstrapContentDirectoryPage as o, rollbackContentMigration as r, captureContentMigrationSnapshot as s, activateContentMigrationEntry as t };
567
+ export { verifyContentMigration as a, captureContentMigrationSnapshot as c, stageContentMigrationEntry as i, contentMigrationSnapshotSchema as l, completeContentMigration as n, verifyContentMigrationPage as o, rollbackContentMigration as r, bootstrapContentDirectoryPage as s, activateContentMigrationEntry as t, migrateContentStorageConfig as u };
@@ -1,6 +1,6 @@
1
1
  import { getRequestContext } from "./request-context.mjs";
2
2
  import { after } from "./after.mjs";
3
- import { n as contentStorageCacheScope } from "./runtime-Dz7vZRPU.mjs";
3
+ import { n as contentStorageCacheScope } from "./runtime-BLoyGKUx.mjs";
4
4
 
5
5
  //#region src/object-cache/codec.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
2
2
  import { rowUnchanged } from "./database/batch.mjs";
3
- import { t as BylineRepository } from "./byline-BvFH-UZw.mjs";
3
+ import { t as BylineRepository } from "./byline-BS25s1R-.mjs";
4
4
  import { sql } from "kysely";
5
5
 
6
6
  //#region src/content-storage/owned-metadata.ts