@ixo/editor 7.5.1 → 7.6.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 (278) hide show
  1. package/dist/{BidConfig-7OPADSLJ.js → BidConfig-BM2HTDUN.js} +2 -2
  2. package/dist/{BidFlowDetail-CLGN6RFS.js → BidFlowDetail-FFRVYGVK.js} +6 -6
  3. package/dist/{CalendarEventCreateConfig-HFHRPWXW.js → CalendarEventCreateConfig-QXEH7ZF7.js} +3 -3
  4. package/dist/{CalendarEventCreateFlowDetail-ZXPHYLF4.js → CalendarEventCreateFlowDetail-7UM5WUAC.js} +3 -3
  5. package/dist/{CalendarEventListConfig-LYPXEDYO.js → CalendarEventListConfig-GJJHPT3M.js} +3 -3
  6. package/dist/{CalendarEventListFlowDetail-3P5I6NWJ.js → CalendarEventListFlowDetail-Z5IQI3NS.js} +3 -3
  7. package/dist/{CalendarEventUpdateConfig-FZNZRRCQ.js → CalendarEventUpdateConfig-LJDGOAD7.js} +3 -3
  8. package/dist/{CalendarEventUpdateFlowDetail-SBODZKHB.js → CalendarEventUpdateFlowDetail-DRB4NLS3.js} +3 -3
  9. package/dist/{ClaimConfig-T7KRYXOU.js → ClaimConfig-DH55KCIR.js} +2 -2
  10. package/dist/{ClaimFlowDetail-DI27NHDH.js → ClaimFlowDetail-NCUHS5MU.js} +6 -6
  11. package/dist/{CollectionLifecycleConfig-SLU7TWJI.js → CollectionLifecycleConfig-HD6XA6OY.js} +2 -2
  12. package/dist/{CollectionLifecycleFlowDetail-NHMR566C.js → CollectionLifecycleFlowDetail-UL2HCPDI.js} +7 -10
  13. package/dist/CollectionLifecycleFlowDetail-UL2HCPDI.js.map +1 -0
  14. package/dist/{CollectionUsersConfig-XUIJ6DSW.js → CollectionUsersConfig-HIXNB6L3.js} +2 -2
  15. package/dist/{CollectionUsersFlowDetail-IM3YWT6E.js → CollectionUsersFlowDetail-U3WWINSP.js} +7 -7
  16. package/dist/{CredentialStoreFlowDetail-FKIAQZJ7.js → CredentialStoreFlowDetail-GNPMSHLF.js} +3 -3
  17. package/dist/{DesignPodFlowDetail-UXGGFJRH.js → DesignPodFlowDetail-T3FTSR2O.js} +2 -2
  18. package/dist/{DomainCardPreviewFlowDetail-IT2OJF46.js → DomainCardPreviewFlowDetail-4ISRIIY3.js} +3 -3
  19. package/dist/{DomainIndexerLookupFlowDetail-Y7JRRKD5.js → DomainIndexerLookupFlowDetail-3EYHZDCS.js} +3 -3
  20. package/dist/{DomainSignFlowDetail-T5PZHM6M.js → DomainSignFlowDetail-JQNJRVAP.js} +3 -3
  21. package/dist/{DomainSingleSelectionConfig-H7RSNYC2.js → DomainSingleSelectionConfig-XPVPLWSJ.js} +2 -2
  22. package/dist/{DomainSingleSelectionFlowDetail-JHSD5G3A.js → DomainSingleSelectionFlowDetail-GZH6PDDA.js} +3 -3
  23. package/dist/{EmailSendConfig-6RJNKNVV.js → EmailSendConfig-H5P7FZZC.js} +2 -2
  24. package/dist/{EntityCreateOracleFlowDetail-LZPSS3GS.js → EntityCreateOracleFlowDetail-42XQMSCH.js} +3 -3
  25. package/dist/{EntitySingleSelectionFlowDetail-HMCMVXKR.js → EntitySingleSelectionFlowDetail-LMAZBZYZ.js} +3 -3
  26. package/dist/{EntityTransferFlowDetail-RSFDF5PB.js → EntityTransferFlowDetail-ZGUJD6II.js} +3 -3
  27. package/dist/{EvalEngineConfig-7JSFDMQR.js → EvalEngineConfig-O3LW7BTN.js} +3 -3
  28. package/dist/{EvalEngineFlowDetail-OAM3AGN2.js → EvalEngineFlowDetail-JTZWOUTV.js} +6 -9
  29. package/dist/EvalEngineFlowDetail-JTZWOUTV.js.map +1 -0
  30. package/dist/{EvaluateBidConfig-WYWY3SSW.js → EvaluateBidConfig-I5VAOCPH.js} +2 -2
  31. package/dist/{EvaluateBidFlowDetail-QMSIAFG5.js → EvaluateBidFlowDetail-TL2MQHJY.js} +5 -5
  32. package/dist/{EvaluateClaimConfig-FMGZ3UG7.js → EvaluateClaimConfig-5OHAY4IZ.js} +2 -2
  33. package/dist/{EvaluateClaimFlowDetail-EP6P4A3E.js → EvaluateClaimFlowDetail-CAZP7V23.js} +6 -6
  34. package/dist/{FormSubmitFlowDetail-ICG3GSOA.js → FormSubmitFlowDetail-T3GH5YNF.js} +3 -3
  35. package/dist/{GovernanceAuthzExecFlowDetail-IW76KM4Q.js → GovernanceAuthzExecFlowDetail-Y2I2CGPW.js} +4 -4
  36. package/dist/{GovernanceAuthzGrantFlowDetail-BTCMC2ZN.js → GovernanceAuthzGrantFlowDetail-BAAGAQX4.js} +5 -5
  37. package/dist/{GovernanceAuthzRevokeFlowDetail-7DVXQWXC.js → GovernanceAuthzRevokeFlowDetail-MDUD4FBH.js} +5 -5
  38. package/dist/{GovernanceChainVoteFlowDetail-CIBRJPP6.js → GovernanceChainVoteFlowDetail-DPD33EPE.js} +4 -4
  39. package/dist/{GovernanceConfigFlowDetail-6P7GLUT4.js → GovernanceConfigFlowDetail-QY6UAGNY.js} +3 -3
  40. package/dist/{GovernanceContractExecuteFlowDetail-4Q32MNXQ.js → GovernanceContractExecuteFlowDetail-VZABB4XR.js} +5 -5
  41. package/dist/{GovernanceContractInstantiateFlowDetail-GOFRJNS6.js → GovernanceContractInstantiateFlowDetail-IRKOOOLV.js} +5 -5
  42. package/dist/{GovernanceContractManageCw20FlowDetail-QYFC2CBY.js → GovernanceContractManageCw20FlowDetail-YWAENYYT.js} +4 -4
  43. package/dist/{GovernanceContractMigrateFlowDetail-YS575HJK.js → GovernanceContractMigrateFlowDetail-JLW32K7F.js} +5 -5
  44. package/dist/{GovernanceContractUpdateAdminFlowDetail-YNN5VVUN.js → GovernanceContractUpdateAdminFlowDetail-K77J3D6A.js} +4 -4
  45. package/dist/{GovernanceCustomMessageFlowDetail-AP2DYHPG.js → GovernanceCustomMessageFlowDetail-346JD2IE.js} +5 -5
  46. package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-WHC2GXB7.js → GovernanceDaoAcceptToMarketplaceFlowDetail-H5O7UCKF.js} +5 -5
  47. package/dist/{GovernanceDaoAdminExecFlowDetail-5545VOCJ.js → GovernanceDaoAdminExecFlowDetail-6YODDTGX.js} +6 -6
  48. package/dist/{GovernanceDaoCreateEntityFlowDetail-QKSNQHT3.js → GovernanceDaoCreateEntityFlowDetail-QP6MTHQ7.js} +5 -5
  49. package/dist/{GovernanceDaoJoinFlowDetail-ZIZA4CHJ.js → GovernanceDaoJoinFlowDetail-BD72QJRT.js} +5 -5
  50. package/dist/{GovernanceDaoManageStorageFlowDetail-V7CNBFD5.js → GovernanceDaoManageStorageFlowDetail-VMGH76Y5.js} +4 -4
  51. package/dist/{GovernanceDaoManageSubDaosFlowDetail-U6HCZEWB.js → GovernanceDaoManageSubDaosFlowDetail-WOEICKV4.js} +5 -5
  52. package/dist/{GovernanceDaoUpdateInfoFlowDetail-YGVZWXYR.js → GovernanceDaoUpdateInfoFlowDetail-WD2WHRSI.js} +4 -4
  53. package/dist/{GovernanceMemberProposalConfig-3HKKBDJ5.js → GovernanceMemberProposalConfig-S6367HIM.js} +3 -3
  54. package/dist/{GovernanceMemberProposalFlowDetail-5DYOTEMZ.js → GovernanceMemberProposalFlowDetail-2HUWCHZV.js} +5 -5
  55. package/dist/{GovernanceNftBurnFlowDetail-ZHL6NSBB.js → GovernanceNftBurnFlowDetail-R4NULXZ4.js} +4 -4
  56. package/dist/{GovernanceNftManageCollectionsFlowDetail-YKWXV6PI.js → GovernanceNftManageCollectionsFlowDetail-ODEXPF3W.js} +4 -4
  57. package/dist/{GovernanceNftTransferFlowDetail-SQ5ZSKIK.js → GovernanceNftTransferFlowDetail-HNNPNH6J.js} +5 -5
  58. package/dist/{GovernanceSettingsProposalConfig-IZFFFRHS.js → GovernanceSettingsProposalConfig-N6WVUTSJ.js} +3 -3
  59. package/dist/{GovernanceSettingsProposalFlowDetail-72OGJWPM.js → GovernanceSettingsProposalFlowDetail-VPZ4XNVV.js} +4 -4
  60. package/dist/{GovernanceStakingStakeFlowDetail-TQT6JVX5.js → GovernanceStakingStakeFlowDetail-6R7WH4LO.js} +4 -4
  61. package/dist/{GovernanceStakingStakeToGroupFlowDetail-RHW3KT4J.js → GovernanceStakingStakeToGroupFlowDetail-HSCQXQLH.js} +4 -4
  62. package/dist/{GovernanceSubmissionConfigProposalFlowDetail-ELSE6QV6.js → GovernanceSubmissionConfigProposalFlowDetail-IBYNEDOA.js} +4 -4
  63. package/dist/{GovernanceTransactionMintFlowDetail-3I7F3FSC.js → GovernanceTransactionMintFlowDetail-ZJO6LMQF.js} +5 -5
  64. package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-5UTYTE3P.js → GovernanceTransactionPerformTokenSwapFlowDetail-EJWXJ36Y.js} +4 -4
  65. package/dist/{GovernanceTransactionSendFundsConfig-UITDQIEX.js → GovernanceTransactionSendFundsConfig-A3U74KXL.js} +3 -3
  66. package/dist/{GovernanceTransactionSendFundsFlowDetail-FUHTFFYK.js → GovernanceTransactionSendFundsFlowDetail-GY255CPG.js} +5 -5
  67. package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-JEGHRGVA.js → GovernanceTransactionSendGroupTokenFlowDetail-L7NNQJPG.js} +5 -5
  68. package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-IGKD3XFX.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-M2KU45XD.js} +4 -4
  69. package/dist/{GovernanceValidatorActionsFlowDetail-XFJM4T54.js → GovernanceValidatorActionsFlowDetail-2ILQ3T62.js} +4 -4
  70. package/dist/{HarvestFlowDetail-4AGZTR7Z.js → HarvestFlowDetail-VIKJRHMG.js} +3 -3
  71. package/dist/{HttpRequestFlowDetail-LGWILJCS.js → HttpRequestFlowDetail-U4RBHD2Q.js} +3 -3
  72. package/dist/{IdentityCreateFlowDetail-6UVA3GLT.js → IdentityCreateFlowDetail-OLD34L5E.js} +3 -3
  73. package/dist/{IidCreateFlowDetail-6DMLKXSP.js → IidCreateFlowDetail-ADX57VHX.js} +3 -3
  74. package/dist/{KycVerifyFlowDetail-MJB5DFB5.js → KycVerifyFlowDetail-TVSOPVEZ.js} +3 -3
  75. package/dist/{ListDomainFlowsFlowDetail-PDUSV2TD.js → ListDomainFlowsFlowDetail-67YOFUZ7.js} +3 -3
  76. package/dist/{LoadBatchesFlowDetail-SXLSDRVT.js → LoadBatchesFlowDetail-B2QFTIB7.js} +3 -3
  77. package/dist/{MatrixDmConfig-XCS2HCGZ.js → MatrixDmConfig-UIHGX3U5.js} +2 -2
  78. package/dist/{MatrixRegisterFlowDetail-7JMBMOTF.js → MatrixRegisterFlowDetail-IAOBUWFG.js} +3 -3
  79. package/dist/{MemberMultiSelectFlowDetail-DLAKXCRC.js → MemberMultiSelectFlowDetail-2UC2DFH3.js} +3 -3
  80. package/dist/{OracleConfigureOracleFlowDetail-AET56AV6.js → OracleConfigureOracleFlowDetail-MGI425Z2.js} +3 -3
  81. package/dist/{OracleContractFlowDetail-4RWSGCLI.js → OracleContractFlowDetail-TQHZHZ6O.js} +3 -3
  82. package/dist/{OracleDeployFlowDetail-2HOKGJEO.js → OracleDeployFlowDetail-TIYCRKM3.js} +3 -3
  83. package/dist/{OracleDeploySetupFlowDetail-AOUCBEJK.js → OracleDeploySetupFlowDetail-HSK3LECV.js} +3 -3
  84. package/dist/{OracleDeployStartFlowDetail-5R5O54VE.js → OracleDeployStartFlowDetail-HGP5I2W7.js} +3 -3
  85. package/dist/{OracleFlowDetail-REP3CDHK.js → OracleFlowDetail-6QTNYOFP.js} +3 -3
  86. package/dist/{OraclePromptFlowDetail-RWGI7Y46.js → OraclePromptFlowDetail-JG27FNSF.js} +3 -3
  87. package/dist/{OracleStoreConfigFlowDetail-F2E4ZEVA.js → OracleStoreConfigFlowDetail-JJGFRYFK.js} +3 -3
  88. package/dist/{OracleStoreSecretsAndConfigFlowDetail-6X4CPXKW.js → OracleStoreSecretsAndConfigFlowDetail-OPGHG7J7.js} +3 -3
  89. package/dist/{OracleStoreSecretsFlowDetail-DYPIPYIT.js → OracleStoreSecretsFlowDetail-XPJ3M2G6.js} +3 -3
  90. package/dist/{ProposalCreateConfig-DRYE2AKJ.js → ProposalCreateConfig-IDYWCWAG.js} +2 -2
  91. package/dist/{ProposalCreateFlowDetail-CHIA2XWY.js → ProposalCreateFlowDetail-SVEFQ5SG.js} +4 -4
  92. package/dist/{ProposalVoteConfig-7UNWFROZ.js → ProposalVoteConfig-OWI2HZMF.js} +2 -2
  93. package/dist/{ProposalVoteFlowDetail-DSMBVP3E.js → ProposalVoteFlowDetail-HNGDXTO6.js} +4 -4
  94. package/dist/{ProtocolSelectFlowDetail-NTLOLTSO.js → ProtocolSelectFlowDetail-UE63ED6D.js} +2 -2
  95. package/dist/{RetireFlowDetail-LY77O4VE.js → RetireFlowDetail-FXLGFRLQ.js} +3 -3
  96. package/dist/{SandboxProvisionFlowDetail-QPRFK7N3.js → SandboxProvisionFlowDetail-BRFODVZO.js} +3 -3
  97. package/dist/{WalletFundConfig-QF2D65SA.js → WalletFundConfig-HEGUGHGH.js} +3 -3
  98. package/dist/{WalletFundFlowDetail-CTWM57AK.js → WalletFundFlowDetail-HKDE266V.js} +4 -4
  99. package/dist/{WalletGenerateAndFundFlowDetail-TY3HOGEU.js → WalletGenerateAndFundFlowDetail-Q5W3HQDO.js} +3 -3
  100. package/dist/{WalletGenerateFlowDetail-F5LNH4VY.js → WalletGenerateFlowDetail-VAVADRLE.js} +3 -3
  101. package/dist/{XeroContactCreateConfig-GTRMV4MO.js → XeroContactCreateConfig-UM4RX6QF.js} +3 -3
  102. package/dist/{XeroContactCreateFlowDetail-4IFZRJOF.js → XeroContactCreateFlowDetail-BIDHUJGJ.js} +3 -3
  103. package/dist/{XeroInvoiceCreateConfig-HVMMNUU4.js → XeroInvoiceCreateConfig-NGFAFMMN.js} +3 -3
  104. package/dist/{XeroInvoiceCreateFlowDetail-4UPL55DU.js → XeroInvoiceCreateFlowDetail-N6R4PLOY.js} +4 -4
  105. package/dist/{XeroInvoiceListConfig-IMXZZTNF.js → XeroInvoiceListConfig-WTWZ47HC.js} +3 -3
  106. package/dist/{XeroInvoiceListFlowDetail-SUWMEU7K.js → XeroInvoiceListFlowDetail-SCQNZZ23.js} +3 -3
  107. package/dist/{XeroPaymentCreateFlowDetail-52FOC77L.js → XeroPaymentCreateFlowDetail-ZHN6QWBM.js} +3 -3
  108. package/dist/{chunk-5JEXVSJG.js → chunk-2SKTQGH5.js} +2 -2
  109. package/dist/{chunk-DMWXSWLO.js → chunk-3BEM2G6U.js} +2 -2
  110. package/dist/{chunk-TGTS2R2O.js → chunk-5OXTR4EW.js} +3 -3
  111. package/dist/{chunk-SI2AUBY5.js → chunk-6KQSIDNF.js} +2 -2
  112. package/dist/{chunk-KSITH7AN.js → chunk-6XRJZRJX.js} +1 -1
  113. package/dist/chunk-6XRJZRJX.js.map +1 -0
  114. package/dist/{chunk-6332CJVF.js → chunk-CGM6D3UB.js} +2 -2
  115. package/dist/{chunk-XUJPJRLW.js → chunk-ELGWSV22.js} +2 -2
  116. package/dist/{chunk-PWPTKUNE.js → chunk-GA5CI6H2.js} +2 -2
  117. package/dist/chunk-H3UJUFQJ.js +344 -0
  118. package/dist/chunk-H3UJUFQJ.js.map +1 -0
  119. package/dist/{chunk-66EWPWA5.js → chunk-H4D6GI5K.js} +2 -2
  120. package/dist/{chunk-OADGEOZK.js → chunk-KKTYO345.js} +2759 -2219
  121. package/dist/chunk-KKTYO345.js.map +1 -0
  122. package/dist/{chunk-M5ELO3A5.js → chunk-NB5VUHBA.js} +2 -2
  123. package/dist/{chunk-P365VW4X.js → chunk-OW5BCFQE.js} +2 -2
  124. package/dist/{chunk-FYPDR7DJ.js → chunk-QHZMBOXS.js} +13 -9
  125. package/dist/chunk-QHZMBOXS.js.map +1 -0
  126. package/dist/{chunk-6OBTZWYM.js → chunk-QIDYNTJV.js} +2 -2
  127. package/dist/{chunk-PCRDF4BQ.js → chunk-QODQ3MCH.js} +2 -2
  128. package/dist/{chunk-3S6HH3LV.js → chunk-QP2DVM4G.js} +2 -2
  129. package/dist/{chunk-KIAAAFZF.js → chunk-RZYWBGBY.js} +2 -2
  130. package/dist/{chunk-7XB6INJ4.js → chunk-TZ2OESAU.js} +2 -2
  131. package/dist/{chunk-VOBXFJLM.js → chunk-XTZMVZHW.js} +2 -2
  132. package/dist/{chunk-SAOQXHK6.js → chunk-YNDTWBZY.js} +2 -2
  133. package/dist/{connections-Dx7agyTM.d.ts → connections-o7kw2vBI.d.ts} +1 -1
  134. package/dist/core/index.cjs +566 -215
  135. package/dist/core/index.cjs.map +1 -1
  136. package/dist/core/index.d.ts +9 -7
  137. package/dist/core/index.js +16 -2
  138. package/dist/core/index.js.map +1 -1
  139. package/dist/graphql-client-D7Mnaei-.d.ts +536 -0
  140. package/dist/index-D99iLwsk.d.ts +112 -0
  141. package/dist/index.d.ts +4 -4
  142. package/dist/index.js +10 -10
  143. package/dist/mantine/index.d.ts +98 -105
  144. package/dist/mantine/index.js +61 -256
  145. package/dist/mantine/index.js.map +1 -1
  146. package/dist/{types-BjlQ_0i3.d.ts → types-6w9s8P5j.d.ts} +853 -1848
  147. package/package.json +18 -13
  148. package/style-core.css +286 -0
  149. package/style-mantine.css +8856 -19
  150. package/style-scoped.css +1478 -255
  151. package/style.css +8856 -19
  152. package/dist/CollectionLifecycleFlowDetail-NHMR566C.js.map +0 -1
  153. package/dist/EvalEngineFlowDetail-OAM3AGN2.js.map +0 -1
  154. package/dist/chunk-FYPDR7DJ.js.map +0 -1
  155. package/dist/chunk-KSITH7AN.js.map +0 -1
  156. package/dist/chunk-OADGEOZK.js.map +0 -1
  157. package/dist/graphql-client-VfvdQc02.d.ts +0 -766
  158. package/dist/nodeContext-CV9D4s3X.d.ts +0 -45
  159. /package/dist/{BidConfig-7OPADSLJ.js.map → BidConfig-BM2HTDUN.js.map} +0 -0
  160. /package/dist/{BidFlowDetail-CLGN6RFS.js.map → BidFlowDetail-FFRVYGVK.js.map} +0 -0
  161. /package/dist/{CalendarEventCreateConfig-HFHRPWXW.js.map → CalendarEventCreateConfig-QXEH7ZF7.js.map} +0 -0
  162. /package/dist/{CalendarEventCreateFlowDetail-ZXPHYLF4.js.map → CalendarEventCreateFlowDetail-7UM5WUAC.js.map} +0 -0
  163. /package/dist/{CalendarEventListConfig-LYPXEDYO.js.map → CalendarEventListConfig-GJJHPT3M.js.map} +0 -0
  164. /package/dist/{CalendarEventListFlowDetail-3P5I6NWJ.js.map → CalendarEventListFlowDetail-Z5IQI3NS.js.map} +0 -0
  165. /package/dist/{CalendarEventUpdateConfig-FZNZRRCQ.js.map → CalendarEventUpdateConfig-LJDGOAD7.js.map} +0 -0
  166. /package/dist/{CalendarEventUpdateFlowDetail-SBODZKHB.js.map → CalendarEventUpdateFlowDetail-DRB4NLS3.js.map} +0 -0
  167. /package/dist/{ClaimConfig-T7KRYXOU.js.map → ClaimConfig-DH55KCIR.js.map} +0 -0
  168. /package/dist/{ClaimFlowDetail-DI27NHDH.js.map → ClaimFlowDetail-NCUHS5MU.js.map} +0 -0
  169. /package/dist/{CollectionLifecycleConfig-SLU7TWJI.js.map → CollectionLifecycleConfig-HD6XA6OY.js.map} +0 -0
  170. /package/dist/{CollectionUsersConfig-XUIJ6DSW.js.map → CollectionUsersConfig-HIXNB6L3.js.map} +0 -0
  171. /package/dist/{CollectionUsersFlowDetail-IM3YWT6E.js.map → CollectionUsersFlowDetail-U3WWINSP.js.map} +0 -0
  172. /package/dist/{CredentialStoreFlowDetail-FKIAQZJ7.js.map → CredentialStoreFlowDetail-GNPMSHLF.js.map} +0 -0
  173. /package/dist/{DesignPodFlowDetail-UXGGFJRH.js.map → DesignPodFlowDetail-T3FTSR2O.js.map} +0 -0
  174. /package/dist/{DomainCardPreviewFlowDetail-IT2OJF46.js.map → DomainCardPreviewFlowDetail-4ISRIIY3.js.map} +0 -0
  175. /package/dist/{DomainIndexerLookupFlowDetail-Y7JRRKD5.js.map → DomainIndexerLookupFlowDetail-3EYHZDCS.js.map} +0 -0
  176. /package/dist/{DomainSignFlowDetail-T5PZHM6M.js.map → DomainSignFlowDetail-JQNJRVAP.js.map} +0 -0
  177. /package/dist/{DomainSingleSelectionConfig-H7RSNYC2.js.map → DomainSingleSelectionConfig-XPVPLWSJ.js.map} +0 -0
  178. /package/dist/{DomainSingleSelectionFlowDetail-JHSD5G3A.js.map → DomainSingleSelectionFlowDetail-GZH6PDDA.js.map} +0 -0
  179. /package/dist/{EmailSendConfig-6RJNKNVV.js.map → EmailSendConfig-H5P7FZZC.js.map} +0 -0
  180. /package/dist/{EntityCreateOracleFlowDetail-LZPSS3GS.js.map → EntityCreateOracleFlowDetail-42XQMSCH.js.map} +0 -0
  181. /package/dist/{EntitySingleSelectionFlowDetail-HMCMVXKR.js.map → EntitySingleSelectionFlowDetail-LMAZBZYZ.js.map} +0 -0
  182. /package/dist/{EntityTransferFlowDetail-RSFDF5PB.js.map → EntityTransferFlowDetail-ZGUJD6II.js.map} +0 -0
  183. /package/dist/{EvalEngineConfig-7JSFDMQR.js.map → EvalEngineConfig-O3LW7BTN.js.map} +0 -0
  184. /package/dist/{EvaluateBidConfig-WYWY3SSW.js.map → EvaluateBidConfig-I5VAOCPH.js.map} +0 -0
  185. /package/dist/{EvaluateBidFlowDetail-QMSIAFG5.js.map → EvaluateBidFlowDetail-TL2MQHJY.js.map} +0 -0
  186. /package/dist/{EvaluateClaimConfig-FMGZ3UG7.js.map → EvaluateClaimConfig-5OHAY4IZ.js.map} +0 -0
  187. /package/dist/{EvaluateClaimFlowDetail-EP6P4A3E.js.map → EvaluateClaimFlowDetail-CAZP7V23.js.map} +0 -0
  188. /package/dist/{FormSubmitFlowDetail-ICG3GSOA.js.map → FormSubmitFlowDetail-T3GH5YNF.js.map} +0 -0
  189. /package/dist/{GovernanceAuthzExecFlowDetail-IW76KM4Q.js.map → GovernanceAuthzExecFlowDetail-Y2I2CGPW.js.map} +0 -0
  190. /package/dist/{GovernanceAuthzGrantFlowDetail-BTCMC2ZN.js.map → GovernanceAuthzGrantFlowDetail-BAAGAQX4.js.map} +0 -0
  191. /package/dist/{GovernanceAuthzRevokeFlowDetail-7DVXQWXC.js.map → GovernanceAuthzRevokeFlowDetail-MDUD4FBH.js.map} +0 -0
  192. /package/dist/{GovernanceChainVoteFlowDetail-CIBRJPP6.js.map → GovernanceChainVoteFlowDetail-DPD33EPE.js.map} +0 -0
  193. /package/dist/{GovernanceConfigFlowDetail-6P7GLUT4.js.map → GovernanceConfigFlowDetail-QY6UAGNY.js.map} +0 -0
  194. /package/dist/{GovernanceContractExecuteFlowDetail-4Q32MNXQ.js.map → GovernanceContractExecuteFlowDetail-VZABB4XR.js.map} +0 -0
  195. /package/dist/{GovernanceContractInstantiateFlowDetail-GOFRJNS6.js.map → GovernanceContractInstantiateFlowDetail-IRKOOOLV.js.map} +0 -0
  196. /package/dist/{GovernanceContractManageCw20FlowDetail-QYFC2CBY.js.map → GovernanceContractManageCw20FlowDetail-YWAENYYT.js.map} +0 -0
  197. /package/dist/{GovernanceContractMigrateFlowDetail-YS575HJK.js.map → GovernanceContractMigrateFlowDetail-JLW32K7F.js.map} +0 -0
  198. /package/dist/{GovernanceContractUpdateAdminFlowDetail-YNN5VVUN.js.map → GovernanceContractUpdateAdminFlowDetail-K77J3D6A.js.map} +0 -0
  199. /package/dist/{GovernanceCustomMessageFlowDetail-AP2DYHPG.js.map → GovernanceCustomMessageFlowDetail-346JD2IE.js.map} +0 -0
  200. /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-WHC2GXB7.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-H5O7UCKF.js.map} +0 -0
  201. /package/dist/{GovernanceDaoAdminExecFlowDetail-5545VOCJ.js.map → GovernanceDaoAdminExecFlowDetail-6YODDTGX.js.map} +0 -0
  202. /package/dist/{GovernanceDaoCreateEntityFlowDetail-QKSNQHT3.js.map → GovernanceDaoCreateEntityFlowDetail-QP6MTHQ7.js.map} +0 -0
  203. /package/dist/{GovernanceDaoJoinFlowDetail-ZIZA4CHJ.js.map → GovernanceDaoJoinFlowDetail-BD72QJRT.js.map} +0 -0
  204. /package/dist/{GovernanceDaoManageStorageFlowDetail-V7CNBFD5.js.map → GovernanceDaoManageStorageFlowDetail-VMGH76Y5.js.map} +0 -0
  205. /package/dist/{GovernanceDaoManageSubDaosFlowDetail-U6HCZEWB.js.map → GovernanceDaoManageSubDaosFlowDetail-WOEICKV4.js.map} +0 -0
  206. /package/dist/{GovernanceDaoUpdateInfoFlowDetail-YGVZWXYR.js.map → GovernanceDaoUpdateInfoFlowDetail-WD2WHRSI.js.map} +0 -0
  207. /package/dist/{GovernanceMemberProposalConfig-3HKKBDJ5.js.map → GovernanceMemberProposalConfig-S6367HIM.js.map} +0 -0
  208. /package/dist/{GovernanceMemberProposalFlowDetail-5DYOTEMZ.js.map → GovernanceMemberProposalFlowDetail-2HUWCHZV.js.map} +0 -0
  209. /package/dist/{GovernanceNftBurnFlowDetail-ZHL6NSBB.js.map → GovernanceNftBurnFlowDetail-R4NULXZ4.js.map} +0 -0
  210. /package/dist/{GovernanceNftManageCollectionsFlowDetail-YKWXV6PI.js.map → GovernanceNftManageCollectionsFlowDetail-ODEXPF3W.js.map} +0 -0
  211. /package/dist/{GovernanceNftTransferFlowDetail-SQ5ZSKIK.js.map → GovernanceNftTransferFlowDetail-HNNPNH6J.js.map} +0 -0
  212. /package/dist/{GovernanceSettingsProposalConfig-IZFFFRHS.js.map → GovernanceSettingsProposalConfig-N6WVUTSJ.js.map} +0 -0
  213. /package/dist/{GovernanceSettingsProposalFlowDetail-72OGJWPM.js.map → GovernanceSettingsProposalFlowDetail-VPZ4XNVV.js.map} +0 -0
  214. /package/dist/{GovernanceStakingStakeFlowDetail-TQT6JVX5.js.map → GovernanceStakingStakeFlowDetail-6R7WH4LO.js.map} +0 -0
  215. /package/dist/{GovernanceStakingStakeToGroupFlowDetail-RHW3KT4J.js.map → GovernanceStakingStakeToGroupFlowDetail-HSCQXQLH.js.map} +0 -0
  216. /package/dist/{GovernanceSubmissionConfigProposalFlowDetail-ELSE6QV6.js.map → GovernanceSubmissionConfigProposalFlowDetail-IBYNEDOA.js.map} +0 -0
  217. /package/dist/{GovernanceTransactionMintFlowDetail-3I7F3FSC.js.map → GovernanceTransactionMintFlowDetail-ZJO6LMQF.js.map} +0 -0
  218. /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-5UTYTE3P.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-EJWXJ36Y.js.map} +0 -0
  219. /package/dist/{GovernanceTransactionSendFundsConfig-UITDQIEX.js.map → GovernanceTransactionSendFundsConfig-A3U74KXL.js.map} +0 -0
  220. /package/dist/{GovernanceTransactionSendFundsFlowDetail-FUHTFFYK.js.map → GovernanceTransactionSendFundsFlowDetail-GY255CPG.js.map} +0 -0
  221. /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-JEGHRGVA.js.map → GovernanceTransactionSendGroupTokenFlowDetail-L7NNQJPG.js.map} +0 -0
  222. /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-IGKD3XFX.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-M2KU45XD.js.map} +0 -0
  223. /package/dist/{GovernanceValidatorActionsFlowDetail-XFJM4T54.js.map → GovernanceValidatorActionsFlowDetail-2ILQ3T62.js.map} +0 -0
  224. /package/dist/{HarvestFlowDetail-4AGZTR7Z.js.map → HarvestFlowDetail-VIKJRHMG.js.map} +0 -0
  225. /package/dist/{HttpRequestFlowDetail-LGWILJCS.js.map → HttpRequestFlowDetail-U4RBHD2Q.js.map} +0 -0
  226. /package/dist/{IdentityCreateFlowDetail-6UVA3GLT.js.map → IdentityCreateFlowDetail-OLD34L5E.js.map} +0 -0
  227. /package/dist/{IidCreateFlowDetail-6DMLKXSP.js.map → IidCreateFlowDetail-ADX57VHX.js.map} +0 -0
  228. /package/dist/{KycVerifyFlowDetail-MJB5DFB5.js.map → KycVerifyFlowDetail-TVSOPVEZ.js.map} +0 -0
  229. /package/dist/{ListDomainFlowsFlowDetail-PDUSV2TD.js.map → ListDomainFlowsFlowDetail-67YOFUZ7.js.map} +0 -0
  230. /package/dist/{LoadBatchesFlowDetail-SXLSDRVT.js.map → LoadBatchesFlowDetail-B2QFTIB7.js.map} +0 -0
  231. /package/dist/{MatrixDmConfig-XCS2HCGZ.js.map → MatrixDmConfig-UIHGX3U5.js.map} +0 -0
  232. /package/dist/{MatrixRegisterFlowDetail-7JMBMOTF.js.map → MatrixRegisterFlowDetail-IAOBUWFG.js.map} +0 -0
  233. /package/dist/{MemberMultiSelectFlowDetail-DLAKXCRC.js.map → MemberMultiSelectFlowDetail-2UC2DFH3.js.map} +0 -0
  234. /package/dist/{OracleConfigureOracleFlowDetail-AET56AV6.js.map → OracleConfigureOracleFlowDetail-MGI425Z2.js.map} +0 -0
  235. /package/dist/{OracleContractFlowDetail-4RWSGCLI.js.map → OracleContractFlowDetail-TQHZHZ6O.js.map} +0 -0
  236. /package/dist/{OracleDeployFlowDetail-2HOKGJEO.js.map → OracleDeployFlowDetail-TIYCRKM3.js.map} +0 -0
  237. /package/dist/{OracleDeploySetupFlowDetail-AOUCBEJK.js.map → OracleDeploySetupFlowDetail-HSK3LECV.js.map} +0 -0
  238. /package/dist/{OracleDeployStartFlowDetail-5R5O54VE.js.map → OracleDeployStartFlowDetail-HGP5I2W7.js.map} +0 -0
  239. /package/dist/{OracleFlowDetail-REP3CDHK.js.map → OracleFlowDetail-6QTNYOFP.js.map} +0 -0
  240. /package/dist/{OraclePromptFlowDetail-RWGI7Y46.js.map → OraclePromptFlowDetail-JG27FNSF.js.map} +0 -0
  241. /package/dist/{OracleStoreConfigFlowDetail-F2E4ZEVA.js.map → OracleStoreConfigFlowDetail-JJGFRYFK.js.map} +0 -0
  242. /package/dist/{OracleStoreSecretsAndConfigFlowDetail-6X4CPXKW.js.map → OracleStoreSecretsAndConfigFlowDetail-OPGHG7J7.js.map} +0 -0
  243. /package/dist/{OracleStoreSecretsFlowDetail-DYPIPYIT.js.map → OracleStoreSecretsFlowDetail-XPJ3M2G6.js.map} +0 -0
  244. /package/dist/{ProposalCreateConfig-DRYE2AKJ.js.map → ProposalCreateConfig-IDYWCWAG.js.map} +0 -0
  245. /package/dist/{ProposalCreateFlowDetail-CHIA2XWY.js.map → ProposalCreateFlowDetail-SVEFQ5SG.js.map} +0 -0
  246. /package/dist/{ProposalVoteConfig-7UNWFROZ.js.map → ProposalVoteConfig-OWI2HZMF.js.map} +0 -0
  247. /package/dist/{ProposalVoteFlowDetail-DSMBVP3E.js.map → ProposalVoteFlowDetail-HNGDXTO6.js.map} +0 -0
  248. /package/dist/{ProtocolSelectFlowDetail-NTLOLTSO.js.map → ProtocolSelectFlowDetail-UE63ED6D.js.map} +0 -0
  249. /package/dist/{RetireFlowDetail-LY77O4VE.js.map → RetireFlowDetail-FXLGFRLQ.js.map} +0 -0
  250. /package/dist/{SandboxProvisionFlowDetail-QPRFK7N3.js.map → SandboxProvisionFlowDetail-BRFODVZO.js.map} +0 -0
  251. /package/dist/{WalletFundConfig-QF2D65SA.js.map → WalletFundConfig-HEGUGHGH.js.map} +0 -0
  252. /package/dist/{WalletFundFlowDetail-CTWM57AK.js.map → WalletFundFlowDetail-HKDE266V.js.map} +0 -0
  253. /package/dist/{WalletGenerateAndFundFlowDetail-TY3HOGEU.js.map → WalletGenerateAndFundFlowDetail-Q5W3HQDO.js.map} +0 -0
  254. /package/dist/{WalletGenerateFlowDetail-F5LNH4VY.js.map → WalletGenerateFlowDetail-VAVADRLE.js.map} +0 -0
  255. /package/dist/{XeroContactCreateConfig-GTRMV4MO.js.map → XeroContactCreateConfig-UM4RX6QF.js.map} +0 -0
  256. /package/dist/{XeroContactCreateFlowDetail-4IFZRJOF.js.map → XeroContactCreateFlowDetail-BIDHUJGJ.js.map} +0 -0
  257. /package/dist/{XeroInvoiceCreateConfig-HVMMNUU4.js.map → XeroInvoiceCreateConfig-NGFAFMMN.js.map} +0 -0
  258. /package/dist/{XeroInvoiceCreateFlowDetail-4UPL55DU.js.map → XeroInvoiceCreateFlowDetail-N6R4PLOY.js.map} +0 -0
  259. /package/dist/{XeroInvoiceListConfig-IMXZZTNF.js.map → XeroInvoiceListConfig-WTWZ47HC.js.map} +0 -0
  260. /package/dist/{XeroInvoiceListFlowDetail-SUWMEU7K.js.map → XeroInvoiceListFlowDetail-SCQNZZ23.js.map} +0 -0
  261. /package/dist/{XeroPaymentCreateFlowDetail-52FOC77L.js.map → XeroPaymentCreateFlowDetail-ZHN6QWBM.js.map} +0 -0
  262. /package/dist/{chunk-5JEXVSJG.js.map → chunk-2SKTQGH5.js.map} +0 -0
  263. /package/dist/{chunk-DMWXSWLO.js.map → chunk-3BEM2G6U.js.map} +0 -0
  264. /package/dist/{chunk-TGTS2R2O.js.map → chunk-5OXTR4EW.js.map} +0 -0
  265. /package/dist/{chunk-SI2AUBY5.js.map → chunk-6KQSIDNF.js.map} +0 -0
  266. /package/dist/{chunk-6332CJVF.js.map → chunk-CGM6D3UB.js.map} +0 -0
  267. /package/dist/{chunk-XUJPJRLW.js.map → chunk-ELGWSV22.js.map} +0 -0
  268. /package/dist/{chunk-PWPTKUNE.js.map → chunk-GA5CI6H2.js.map} +0 -0
  269. /package/dist/{chunk-66EWPWA5.js.map → chunk-H4D6GI5K.js.map} +0 -0
  270. /package/dist/{chunk-M5ELO3A5.js.map → chunk-NB5VUHBA.js.map} +0 -0
  271. /package/dist/{chunk-P365VW4X.js.map → chunk-OW5BCFQE.js.map} +0 -0
  272. /package/dist/{chunk-6OBTZWYM.js.map → chunk-QIDYNTJV.js.map} +0 -0
  273. /package/dist/{chunk-PCRDF4BQ.js.map → chunk-QODQ3MCH.js.map} +0 -0
  274. /package/dist/{chunk-3S6HH3LV.js.map → chunk-QP2DVM4G.js.map} +0 -0
  275. /package/dist/{chunk-KIAAAFZF.js.map → chunk-RZYWBGBY.js.map} +0 -0
  276. /package/dist/{chunk-7XB6INJ4.js.map → chunk-TZ2OESAU.js.map} +0 -0
  277. /package/dist/{chunk-VOBXFJLM.js.map → chunk-XTZMVZHW.js.map} +0 -0
  278. /package/dist/{chunk-SAOQXHK6.js.map → chunk-YNDTWBZY.js.map} +0 -0
@@ -108,6 +108,7 @@ __export(core_exports, {
108
108
  FlowNotMigratedError: () => FlowNotMigratedError,
109
109
  HistoricalManifestActionContractResolver: () => HistoricalManifestActionContractResolver,
110
110
  INVOCATIONS_MAP_KEY: () => INVOCATIONS_MAP_KEY,
111
+ IXO_BLOCK_FENCE: () => IXO_BLOCK_FENCE,
111
112
  InMemoryTopicActionOutboxStore: () => InMemoryTopicActionOutboxStore,
112
113
  InvalidConditionConfigError: () => InvalidConditionConfigError,
113
114
  LATEST_VERSION: () => LATEST_VERSION,
@@ -124,6 +125,7 @@ __export(core_exports, {
124
125
  MatrixRoomFlowEventStore: () => MatrixRoomFlowEventStore,
125
126
  NODE_CONTEXT_MAP_NAME: () => NODE_CONTEXT_MAP_NAME,
126
127
  NODE_CONTEXT_OVERRIDES_MAP_NAME: () => NODE_CONTEXT_OVERRIDES_MAP_NAME,
128
+ PAGE_FILE_SCHEMA_VERSION: () => PAGE_FILE_SCHEMA_VERSION,
127
129
  PROFESSIONAL_SERVICE_DESIGN_POD_PLAN_V1: () => PROFESSIONAL_SERVICE_DESIGN_POD_PLAN_V1,
128
130
  PROFESSIONAL_SERVICE_METHOD_V1: () => PROFESSIONAL_SERVICE_METHOD_V1,
129
131
  PROOF_MISSING_CODE: () => PROOF_MISSING_CODE,
@@ -170,6 +172,7 @@ __export(core_exports, {
170
172
  authorityEventMatches: () => authorityEventMatches,
171
173
  bindFlowOwner: () => bindFlowOwner,
172
174
  bindFlowOwnerFromRoom: () => bindFlowOwnerFromRoom,
175
+ blocksToPageMarkdown: () => blocksToPageMarkdown,
173
176
  boundRunActionOutput: () => boundRunActionOutput,
174
177
  boundRunEventJson: () => boundRunEventJson,
175
178
  buildActionRunInputs: () => buildActionRunInputs,
@@ -355,6 +358,9 @@ __export(core_exports, {
355
358
  normalizeConditions: () => normalizeConditions,
356
359
  normalizeDid: () => normalizeDid,
357
360
  oracleInitSurveySchema: () => oracleInitSurveySchema,
361
+ pageContentHash: () => pageContentHash,
362
+ pageDocumentHash: () => pageDocumentHash,
363
+ pageMarkdownToBlocks: () => pageMarkdownToBlocks,
358
364
  parseConditionConfig: () => parseConditionConfig,
359
365
  parseConditionConfigStrict: () => parseConditionConfigStrict,
360
366
  parseDesignPodOperationalFlow: () => parseDesignPodOperationalFlow,
@@ -1192,9 +1198,9 @@ var validators = /* @__PURE__ */ new Map();
1192
1198
  function getTopicSemanticRecordDefinitions(types) {
1193
1199
  return types.map((type) => definitionsByType.get(type)).filter((definition) => !!definition);
1194
1200
  }
1195
- function validateTopicSemanticRecord(record3, topic) {
1196
- if (!record3 || typeof record3 !== "object" || Array.isArray(record3)) return { valid: false, code: "INVALID_RECORD_ENVELOPE" };
1197
- const candidate = record3;
1201
+ function validateTopicSemanticRecord(record4, topic) {
1202
+ if (!record4 || typeof record4 !== "object" || Array.isArray(record4)) return { valid: false, code: "INVALID_RECORD_ENVELOPE" };
1203
+ const candidate = record4;
1198
1204
  const envelopeKeys = /* @__PURE__ */ new Set(["type", "id", "version", "value", "evidenceReferences"]);
1199
1205
  if (Object.keys(candidate).some((key) => !envelopeKeys.has(key)) || typeof candidate.type !== "string" || typeof candidate.id !== "string" || !candidate.id || !Number.isInteger(candidate.version) || Number(candidate.version) < 1 || !candidate.value || typeof candidate.value !== "object" || Array.isArray(candidate.value)) {
1200
1206
  return { valid: false, code: "INVALID_RECORD_ENVELOPE" };
@@ -1216,8 +1222,8 @@ function validateTopicSemanticRecord(record3, topic) {
1216
1222
  }
1217
1223
  function validateTopicSemanticRecordBatch(records, topic) {
1218
1224
  if (records.length > MAX_TOPIC_SEMANTIC_RECORDS_PER_RECEIPT) return { valid: false, code: "TOO_MANY_RECORDS" };
1219
- for (const record3 of records) {
1220
- const validation = validateTopicSemanticRecord(record3, topic);
1225
+ for (const record4 of records) {
1226
+ const validation = validateTopicSemanticRecord(record4, topic);
1221
1227
  if (!validation.valid) return validation;
1222
1228
  }
1223
1229
  try {
@@ -2415,12 +2421,12 @@ function readDesignPodState(doc) {
2415
2421
  const itemId = key.slice(CHECKLIST_PREFIX.length);
2416
2422
  checklistRecords[itemId] = value;
2417
2423
  if (isRecord(value)) {
2418
- const record3 = value;
2419
- if (["resolved", "accepted_for_later", "blocking"].includes(record3.disposition)) checklistDispositions[itemId] = record3.disposition;
2424
+ const record4 = value;
2425
+ if (["resolved", "accepted_for_later", "blocking"].includes(record4.disposition)) checklistDispositions[itemId] = record4.disposition;
2420
2426
  }
2421
2427
  }
2422
2428
  });
2423
- const commitmentCount = Object.values(phaseCommitments).filter((record3) => record3?.status === "current").length;
2429
+ const commitmentCount = Object.values(phaseCommitments).filter((record4) => record4?.status === "current").length;
2424
2430
  const review = map.get(REVIEW_KEY);
2425
2431
  const reviewAssignment = map.get(REVIEW_ASSIGNMENT_KEY);
2426
2432
  const reviewRequest = map.get(REVIEW_REQUEST_KEY);
@@ -2638,19 +2644,19 @@ async function importLegacyDesignPodEvidence(doc, evidence, identity2, persisten
2638
2644
  if (evidence.history.length === 0) throw new Error("Legacy Design POD evidence requires its exported hash-chained history");
2639
2645
  let previousDigest = null;
2640
2646
  const payloadDigests = /* @__PURE__ */ new Set();
2641
- for (const [index, record3] of evidence.history.entries()) {
2642
- if (record3.sequence !== index || record3.previousDigest !== previousDigest) {
2647
+ for (const [index, record4] of evidence.history.entries()) {
2648
+ if (record4.sequence !== index || record4.previousDigest !== previousDigest) {
2643
2649
  throw new Error(`Legacy Design POD history chain is broken at sequence ${index}`);
2644
2650
  }
2645
2651
  const digest2 = await digestDesignPodValue({
2646
- sequence: record3.sequence,
2647
- previousDigest: record3.previousDigest,
2648
- eventType: record3.eventType,
2649
- payloadDigest: record3.payloadDigest,
2650
- occurredAt: record3.occurredAt
2652
+ sequence: record4.sequence,
2653
+ previousDigest: record4.previousDigest,
2654
+ eventType: record4.eventType,
2655
+ payloadDigest: record4.payloadDigest,
2656
+ occurredAt: record4.occurredAt
2651
2657
  });
2652
- if (record3.digest !== digest2) throw new Error(`Legacy Design POD history digest is invalid at sequence ${index}`);
2653
- payloadDigests.add(record3.payloadDigest);
2658
+ if (record4.digest !== digest2) throw new Error(`Legacy Design POD history digest is invalid at sequence ${index}`);
2659
+ payloadDigests.add(record4.payloadDigest);
2654
2660
  previousDigest = digest2;
2655
2661
  }
2656
2662
  if (evidence.historyDigest !== previousDigest) throw new Error("Legacy Design POD history head does not match the verified hash chain");
@@ -2810,26 +2816,26 @@ async function assertCompilable(doc, options) {
2810
2816
  if (unknownChecklistIds.length > 0) throw new Error(`Blueprint contains checklist records outside the pinned method manifest: ${unknownChecklistIds.join(", ")}`);
2811
2817
  const blockers = [];
2812
2818
  for (const item of manifest.publicationRules.checklistItems) {
2813
- const record3 = state.checklistRecords[item.id];
2814
- if (!record3) throw new Error(`Governed checklist item ${item.id} requires a signed disposition`);
2815
- if (record3.itemId !== item.id || !["resolved", "accepted_for_later", "blocking"].includes(record3.disposition)) {
2819
+ const record4 = state.checklistRecords[item.id];
2820
+ if (!record4) throw new Error(`Governed checklist item ${item.id} requires a signed disposition`);
2821
+ if (record4.itemId !== item.id || !["resolved", "accepted_for_later", "blocking"].includes(record4.disposition)) {
2816
2822
  throw new Error(`Governed checklist item ${item.id} has an invalid disposition record`);
2817
2823
  }
2818
- const digest2 = await digestDesignPodValue({ itemId: record3.itemId, disposition: record3.disposition, updatedByDid: record3.updatedByDid, updatedAt: record3.updatedAt });
2819
- if (record3.digest !== digest2) throw new Error(`Governed checklist item ${item.id} does not match its signed digest`);
2824
+ const digest2 = await digestDesignPodValue({ itemId: record4.itemId, disposition: record4.disposition, updatedByDid: record4.updatedByDid, updatedAt: record4.updatedAt });
2825
+ if (record4.digest !== digest2) throw new Error(`Governed checklist item ${item.id} does not match its signed digest`);
2820
2826
  await verifyActionProof(
2821
2827
  doc,
2822
2828
  state,
2823
- record3.proof,
2829
+ record4.proof,
2824
2830
  {
2825
- actorDid: record3.updatedByDid,
2831
+ actorDid: record4.updatedByDid,
2826
2832
  actionType: "qi/blueprint.checklist-update",
2827
- inputs: governedInputs(state, { itemId: record3.itemId, disposition: record3.disposition })
2833
+ inputs: governedInputs(state, { itemId: record4.itemId, disposition: record4.disposition })
2828
2834
  },
2829
2835
  options.authority,
2830
2836
  options.verifyInvocation
2831
2837
  );
2832
- if (record3.disposition === "blocking") blockers.push(item.id);
2838
+ if (record4.disposition === "blocking") blockers.push(item.id);
2833
2839
  }
2834
2840
  if (blockers.length > 0) throw new Error(`Publication blockers must be resolved before compilation: ${blockers.join(", ")}`);
2835
2841
  const providerDids = /* @__PURE__ */ new Set();
@@ -3260,7 +3266,7 @@ async function readFlowCheckpoint(client, roomId) {
3260
3266
  const auth = await identity(client, roomId);
3261
3267
  if (!auth) return;
3262
3268
  const db = await database();
3263
- const record3 = await new Promise((resolve, reject) => {
3269
+ const record4 = await new Promise((resolve, reject) => {
3264
3270
  const transaction = db.transaction("documents", "readonly");
3265
3271
  const request = transaction.objectStore("documents").get(auth.scope);
3266
3272
  request.onsuccess = () => resolve(request.result);
@@ -3268,11 +3274,11 @@ async function readFlowCheckpoint(client, roomId) {
3268
3274
  transaction.oncomplete = () => db.close();
3269
3275
  transaction.onabort = () => db.close();
3270
3276
  });
3271
- if (!record3 || Date.now() - record3.savedAt > MAX_AGE) return;
3272
- const clear = await crypto.subtle.decrypt({ name: "AES-GCM", iv: new Uint8Array(record3.iv), additionalData: new TextEncoder().encode(auth.scope) }, auth.key, record3.data);
3277
+ if (!record4 || Date.now() - record4.savedAt > MAX_AGE) return;
3278
+ const clear = await crypto.subtle.decrypt({ name: "AES-GCM", iv: new Uint8Array(record4.iv), additionalData: new TextEncoder().encode(auth.scope) }, auth.key, record4.data);
3273
3279
  const value = JSON.parse(new TextDecoder().decode(clear));
3274
3280
  if (!Array.isArray(value.update) || !value.token) return;
3275
- return { update: new Uint8Array(value.update), token: value.token, savedAt: record3.savedAt };
3281
+ return { update: new Uint8Array(value.update), token: value.token, savedAt: record4.savedAt };
3276
3282
  } catch {
3277
3283
  return;
3278
3284
  }
@@ -3299,7 +3305,7 @@ async function writeFlowCheckpoint(client, roomId, checkpoint) {
3299
3305
  const cursor = request.result;
3300
3306
  if (!cursor) {
3301
3307
  records.sort((a, b) => b.savedAt - a.savedAt);
3302
- for (const record3 of records.slice(32)) store.delete(record3.key);
3308
+ for (const record4 of records.slice(32)) store.delete(record4.key);
3303
3309
  return;
3304
3310
  }
3305
3311
  if (Date.now() - cursor.value.savedAt > MAX_AGE) cursor.delete();
@@ -3657,6 +3663,341 @@ function getSharedFlowDocument(client, roomId) {
3657
3663
  return session;
3658
3664
  }
3659
3665
 
3666
+ // src/core/lib/pageSerializer/validateBlock.ts
3667
+ var BLOCK_KEYS = /* @__PURE__ */ new Set(["id", "type", "props", "content", "children"]);
3668
+ var record2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
3669
+ var owns = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
3670
+ function validProps(value, schema) {
3671
+ if (value === void 0) return true;
3672
+ return record2(value) && Object.entries(value).every(([key, prop]) => {
3673
+ if (!owns(schema, key)) return false;
3674
+ const spec = schema[key];
3675
+ const type = spec.default === void 0 && "type" in spec ? spec.type : typeof spec.default;
3676
+ return typeof prop === type && (typeof prop !== "number" || Number.isFinite(prop)) && (!spec.values || spec.values.some((allowed) => allowed === prop));
3677
+ });
3678
+ }
3679
+ function validInline(value, schema) {
3680
+ if (typeof value === "string") return true;
3681
+ return Array.isArray(value) && value.every((item) => {
3682
+ if (typeof item === "string") return true;
3683
+ if (!record2(item)) return false;
3684
+ if (item.type === "text") {
3685
+ return typeof item.text === "string" && (item.styles === void 0 || record2(item.styles) && Object.entries(item.styles).every(([key, style]) => owns(schema.styleSchema, key) && typeof style === schema.styleSchema[key].propSchema));
3686
+ }
3687
+ if (item.type === "link") return typeof item.href === "string" && validInline(item.content, schema);
3688
+ if (typeof item.type !== "string" || !owns(schema.inlineContentSchema, item.type)) return false;
3689
+ const config = schema.inlineContentSchema[item.type];
3690
+ if (typeof config === "string") return false;
3691
+ return validProps(item.props, config.propSchema) && (config.content === "none" ? item.content === void 0 : validInline(item.content ?? [], schema));
3692
+ });
3693
+ }
3694
+ function validTable(value, schema) {
3695
+ if (!record2(value) || value.type !== "tableContent" || !Array.isArray(value.rows) || value.rows.length === 0) return false;
3696
+ const width = record2(value.rows[0]) && Array.isArray(value.rows[0].cells) ? value.rows[0].cells.length : 0;
3697
+ if (!width) return false;
3698
+ if (value.columnWidths !== void 0 && (!Array.isArray(value.columnWidths) || !value.columnWidths.every((n) => n === null || typeof n === "number" && Number.isFinite(n) && n > 0)))
3699
+ return false;
3700
+ for (const [key, max] of [
3701
+ ["headerRows", value.rows.length],
3702
+ ["headerCols", width]
3703
+ ]) {
3704
+ if (value[key] !== void 0 && (!Number.isInteger(value[key]) || Number(value[key]) < 0 || Number(value[key]) > max)) return false;
3705
+ }
3706
+ return value.rows.every(
3707
+ (row) => record2(row) && Array.isArray(row.cells) && row.cells.length > 0 && row.cells.every((cell) => {
3708
+ if (!record2(cell)) return validInline(cell, schema);
3709
+ return cell.type === "tableCell" && validInline(cell.content, schema) && validProps(cell.props, {
3710
+ colspan: { default: 1 },
3711
+ rowspan: { default: 1 },
3712
+ backgroundColor: { default: "default" },
3713
+ textColor: { default: "default" },
3714
+ textAlignment: { default: "left", values: ["left", "center", "right", "justify"] }
3715
+ });
3716
+ })
3717
+ );
3718
+ }
3719
+ function validPageBlock(value, schema, ids = /* @__PURE__ */ new Set(), depth = 0) {
3720
+ if (depth > 100 || !record2(value) || typeof value.type !== "string" || !owns(schema.blockSchema, value.type)) return false;
3721
+ if (!Object.keys(value).every((key) => BLOCK_KEYS.has(key))) return false;
3722
+ if (value.id !== void 0) {
3723
+ if (typeof value.id !== "string" || !value.id || ids.has(value.id)) return false;
3724
+ ids.add(value.id);
3725
+ }
3726
+ const config = schema.blockSchema[value.type];
3727
+ if (!validProps(value.props, config.propSchema)) return false;
3728
+ if (value.content !== void 0) {
3729
+ if (config.content === "none") return false;
3730
+ if (config.content === "inline" && !validInline(value.content, schema)) return false;
3731
+ if (config.content === "table" && !validTable(value.content, schema)) return false;
3732
+ }
3733
+ return value.children === void 0 || Array.isArray(value.children) && value.children.every((child) => validPageBlock(child, schema, ids, depth + 1));
3734
+ }
3735
+
3736
+ // src/core/lib/pageSerializer/index.ts
3737
+ var PAGE_FILE_SCHEMA_VERSION = 1;
3738
+ var IXO_BLOCK_FENCE = "ixo-block";
3739
+ var yamlValue = (value) => JSON.stringify(value);
3740
+ function frontmatter(meta) {
3741
+ const lines = Object.entries(meta).filter(([, value]) => value !== void 0 && value !== null && value !== "").map(([key, value]) => `${key}: ${yamlValue(value)}`);
3742
+ return `---
3743
+ ${lines.join("\n")}
3744
+ ---
3745
+ `;
3746
+ }
3747
+ function parseFrontmatter(markdown) {
3748
+ const match = /^---\n([\s\S]*?)\n---\n?/.exec(markdown);
3749
+ if (!match) return { meta: {}, body: markdown };
3750
+ const meta = /* @__PURE__ */ Object.create(null);
3751
+ for (const line of match[1].split("\n")) {
3752
+ const separator = line.indexOf(":");
3753
+ if (separator <= 0) continue;
3754
+ const key = line.slice(0, separator).trim();
3755
+ const raw = line.slice(separator + 1).trim();
3756
+ try {
3757
+ meta[key] = JSON.parse(raw);
3758
+ } catch {
3759
+ meta[key] = raw;
3760
+ }
3761
+ }
3762
+ return { meta, body: markdown.slice(match[0].length) };
3763
+ }
3764
+ var NON_MARKDOWN_BLOCK_TYPES = /* @__PURE__ */ new Set(["pageBreak", "toggleListItem"]);
3765
+ var isToggleHeading = (block) => block.type === "heading" && (block.props?.isToggleable === true || block.props?.isToggleable === "true");
3766
+ var MARKDOWN_INLINE_TYPES = /* @__PURE__ */ new Set(["text", "link"]);
3767
+ var hasCustomInline = (content) => {
3768
+ if (Array.isArray(content)) return content.some((item) => typeof item === "object" && item !== null && !MARKDOWN_INLINE_TYPES.has(item.type ?? "text"));
3769
+ if (typeof content !== "object" || content === null || !Array.isArray(content.rows)) return false;
3770
+ return content.rows.some(
3771
+ (row) => (row.cells ?? []).some((cell) => hasCustomInline(typeof cell === "object" && cell !== null && !Array.isArray(cell) ? cell.content : cell))
3772
+ );
3773
+ };
3774
+ var hasCustomDescendant = (block, requiresFence) => (block.children ?? []).some((child) => requiresFence(child) || hasCustomDescendant(child, requiresFence));
3775
+ var LIST_TYPES = /* @__PURE__ */ new Set(["bulletListItem", "numberedListItem", "checkListItem"]);
3776
+ var CHECK_LINE = /^( *)[*+-] \[([ xX])\](?:[ \t]+(.*))?$/;
3777
+ var BULLET_LINE = /^( *)[*+-](?:[ \t]+(.*))?$/;
3778
+ var NUMBER_LINE = /^( *)\d{1,9}[.)](?:[ \t]+(.*))?$/;
3779
+ var NOT_LIST_TEXT = /^ *(?:`{3,}|~{3,}|>|#{1,6}(?: |$)|\|)/;
3780
+ var isListItem = (block) => !!block.type && LIST_TYPES.has(block.type);
3781
+ var onlyListItemsBelow = (block) => (block.children ?? []).every((child) => isListItem(child) && onlyListItemsBelow(child));
3782
+ async function listToMarkdown(converter, items, indent = 0) {
3783
+ const lines = [];
3784
+ let number = 0;
3785
+ for (const item of items) {
3786
+ number = item.type === "numberedListItem" ? number + 1 : 0;
3787
+ const text = Array.isArray(item.content) && item.content.length ? (await converter.blocksToMarkdownLossy([{ type: "paragraph", props: {}, content: item.content, children: [] }])).trim().replace(/\n+/g, " ") : "";
3788
+ const checked = item.props?.checked === true || item.props?.checked === "true";
3789
+ const marker = item.type === "checkListItem" ? `- [${checked ? "x" : " "}]` : item.type === "numberedListItem" ? `${number}.` : "*";
3790
+ lines.push(`${" ".repeat(indent)}${marker}${text ? " " + text : ""}`);
3791
+ const childIndent = indent + (item.type === "numberedListItem" ? marker.length + 1 : 2);
3792
+ if (item.children?.length) lines.push(...await listToMarkdown(converter, item.children, childIndent));
3793
+ }
3794
+ return lines;
3795
+ }
3796
+ function listLine(line) {
3797
+ const check = CHECK_LINE.exec(line);
3798
+ if (check) return { indent: check[1].length, type: "checkListItem", checked: check[2].toLowerCase() === "x", text: (check[3] ?? "").trim() };
3799
+ const numbered = NUMBER_LINE.exec(line);
3800
+ if (numbered) return { indent: numbered[1].length, type: "numberedListItem", text: (numbered[2] ?? "").trim() };
3801
+ const bullet = BULLET_LINE.exec(line);
3802
+ if (bullet) return { indent: bullet[1].length, type: "bulletListItem", text: (bullet[2] ?? "").trim() };
3803
+ return null;
3804
+ }
3805
+ var isPlainListSource = (source) => {
3806
+ const lines = source.split("\n").filter((line) => line.trim());
3807
+ return lines.length > 0 && !!listLine(lines[0]) && lines.every((line) => !!listLine(line) || !NOT_LIST_TEXT.test(line));
3808
+ };
3809
+ async function markdownToList(converter, source) {
3810
+ const roots = [];
3811
+ const stack = [];
3812
+ const items = [];
3813
+ for (const line of source.split("\n")) {
3814
+ const parsed = listLine(line);
3815
+ if (!parsed) {
3816
+ const last = items[items.length - 1];
3817
+ if (last && line.trim()) last.text = `${last.text} ${line.trim()}`.trim();
3818
+ continue;
3819
+ }
3820
+ const block = { type: parsed.type, props: parsed.type === "checkListItem" ? { checked: parsed.checked } : {}, content: [], children: [] };
3821
+ while (stack.length && stack[stack.length - 1].indent >= parsed.indent) stack.pop();
3822
+ const parent = stack[stack.length - 1];
3823
+ (parent ? parent.block.children : roots).push(block);
3824
+ stack.push({ indent: parsed.indent, block });
3825
+ items.push({ block, text: parsed.text });
3826
+ }
3827
+ for (const item of items) {
3828
+ if (!item.text) continue;
3829
+ const parsed = await converter.tryParseMarkdownToBlocks(item.text);
3830
+ item.block.content = parsed[0]?.content ?? [];
3831
+ }
3832
+ return roots;
3833
+ }
3834
+ async function blocksToPageMarkdown(converter, blocks, meta, isCustomBlock) {
3835
+ const sections = [];
3836
+ let run = [];
3837
+ let list = [];
3838
+ const requiresFence = (block) => !!block.type && (isCustomBlock(block.type) || NON_MARKDOWN_BLOCK_TYPES.has(block.type) || isToggleHeading(block) || hasCustomInline(block.content) || block.type === "codeBlock" && block.props?.language === IXO_BLOCK_FENCE);
3839
+ const flushRun = async () => {
3840
+ if (run.length === 0) return;
3841
+ const markdown = (await converter.blocksToMarkdownLossy(run)).trim();
3842
+ if (markdown) sections.push(markdown);
3843
+ run = [];
3844
+ };
3845
+ const flushList = async () => {
3846
+ if (list.length === 0) return;
3847
+ sections.push((await listToMarkdown(converter, list)).join("\n"));
3848
+ list = [];
3849
+ };
3850
+ for (const block of blocks) {
3851
+ if (requiresFence(block) || hasCustomDescendant(block, requiresFence) || isListItem(block) && !onlyListItemsBelow(block)) {
3852
+ await flushRun();
3853
+ await flushList();
3854
+ sections.push("```" + IXO_BLOCK_FENCE + "\n" + JSON.stringify(block, null, 2) + "\n```");
3855
+ } else if (isListItem(block)) {
3856
+ await flushRun();
3857
+ list.push(block);
3858
+ } else {
3859
+ await flushList();
3860
+ run.push(block);
3861
+ }
3862
+ }
3863
+ await flushRun();
3864
+ await flushList();
3865
+ return frontmatter({ ...meta, schemaVersion: PAGE_FILE_SCHEMA_VERSION }) + "\n" + sections.join("\n\n") + "\n";
3866
+ }
3867
+ function inlineReferenceLinks(parse2, text, definitions) {
3868
+ const tree = parse2(text + "\n\n" + definitions);
3869
+ const targets = /* @__PURE__ */ new Map();
3870
+ const collect = (node) => {
3871
+ if (node.type === "definition" && node.identifier && !targets.has(node.identifier)) targets.set(node.identifier, node);
3872
+ node.children?.forEach(collect);
3873
+ };
3874
+ collect(tree);
3875
+ const destination = (target) => {
3876
+ const url = target.url ?? "";
3877
+ const title = target.title ? ` "${target.title.replace(/"/g, '\\"')}"` : "";
3878
+ return `(${/[\s()<>]/.test(url) ? `<${url}>` : url}${title})`;
3879
+ };
3880
+ const edits = [];
3881
+ const walk = (node) => {
3882
+ const start = node.position?.start.offset;
3883
+ const end = node.position?.end.offset;
3884
+ if (start !== void 0 && end !== void 0 && end <= text.length) {
3885
+ if (node.type === "definition") {
3886
+ edits.push({ start, end, value: "" });
3887
+ return;
3888
+ }
3889
+ const target = node.identifier ? targets.get(node.identifier) : void 0;
3890
+ if (node.type === "linkReference" && target) {
3891
+ const first = node.children?.[0]?.position?.start.offset;
3892
+ const last = node.children?.at(-1)?.position?.end.offset;
3893
+ const label = first !== void 0 && last !== void 0 ? text.slice(first, last) : "";
3894
+ edits.push({ start, end, value: `[${label}]${destination(target)}` });
3895
+ return;
3896
+ }
3897
+ if (node.type === "imageReference" && target) {
3898
+ edits.push({ start, end, value: `![${node.alt ?? ""}]${destination(target)}` });
3899
+ return;
3900
+ }
3901
+ }
3902
+ node.children?.forEach(walk);
3903
+ };
3904
+ walk(tree);
3905
+ return edits.sort((a, b) => b.start - a.start).reduce((out, edit) => out.slice(0, edit.start) + edit.value + out.slice(edit.end), text);
3906
+ }
3907
+ async function pageMarkdownToBlocks(converter, markdown) {
3908
+ const { meta, body } = parseFrontmatter(markdown.replace(/\r\n?/g, "\n"));
3909
+ const schemaVersion = typeof meta.schemaVersion === "number" ? meta.schemaVersion : PAGE_FILE_SCHEMA_VERSION;
3910
+ const supportedVersion = meta.schemaVersion === void 0 || meta.schemaVersion === PAGE_FILE_SCHEMA_VERSION;
3911
+ const validMeta = ["title", "id", "author", "createdAt", "exportedAt"].every((key) => meta[key] === void 0 || typeof meta[key] === "string");
3912
+ const diagnostics = supportedVersion ? [] : [{ code: "unsupported-schema-version" }];
3913
+ if (!validMeta) diagnostics.push({ code: "invalid-metadata" });
3914
+ const [{ unified }, { default: remarkParse }, { default: remarkGfm }] = await Promise.all([import("unified"), import("remark-parse"), import("remark-gfm")]);
3915
+ const processor = unified().use(remarkParse).use(remarkGfm);
3916
+ const tree = processor.parse(body);
3917
+ const definitions = tree.children.filter((node) => node.type === "definition").map((node) => body.slice(node.position?.start.offset, node.position?.end.offset)).join("\n");
3918
+ const blocks = [];
3919
+ const ids = /* @__PURE__ */ new Set();
3920
+ let cursor = 0;
3921
+ const parseRun = async (text) => {
3922
+ const resolved = inlineReferenceLinks((source) => processor.parse(source), text, definitions);
3923
+ if (resolved.trim()) blocks.push(...await converter.tryParseMarkdownToBlocks(resolved));
3924
+ };
3925
+ const preserveSource = async (text) => {
3926
+ let fenceLength = 3;
3927
+ for (const match of text.matchAll(/`+/g)) fenceLength = Math.max(fenceLength, match[0].length + 1);
3928
+ const fence = "`".repeat(fenceLength);
3929
+ blocks.push(...await converter.tryParseMarkdownToBlocks(fence + "text\n" + text + "\n" + fence));
3930
+ };
3931
+ if (!supportedVersion || !validMeta) {
3932
+ await preserveSource(markdown.replace(/\r\n?/g, "\n"));
3933
+ cursor = body.length;
3934
+ }
3935
+ for (const node of tree.children) {
3936
+ if (!supportedVersion || !validMeta) continue;
3937
+ const listStart = node.position?.start.offset;
3938
+ const listEnd = node.position?.end.offset;
3939
+ if (node.type === "list" && listStart !== void 0 && listEnd !== void 0 && isPlainListSource(body.slice(listStart, listEnd))) {
3940
+ await parseRun(body.slice(cursor, listStart));
3941
+ blocks.push(...await markdownToList(converter, body.slice(listStart, listEnd)));
3942
+ cursor = listEnd;
3943
+ continue;
3944
+ }
3945
+ if (node.type !== "code" || node.lang !== IXO_BLOCK_FENCE) continue;
3946
+ const start = node.position?.start.offset;
3947
+ const end = node.position?.end.offset;
3948
+ if (start === void 0 || end === void 0) continue;
3949
+ await parseRun(body.slice(cursor, start));
3950
+ cursor = end;
3951
+ const blockIndex = blocks.length;
3952
+ const raw = body.slice(start, end);
3953
+ const opening = /^ {0,3}(`{3,}|~{3,})/.exec(raw)?.[1];
3954
+ const closing = raw.trimEnd().split("\n").at(-1)?.trim();
3955
+ if (node.meta || !opening || !closing || !new RegExp("^" + opening[0] + "{" + opening.length + ",}$").test(closing)) {
3956
+ diagnostics.push({ code: "invalid-block", blockIndex });
3957
+ await preserveSource(raw);
3958
+ continue;
3959
+ }
3960
+ let value;
3961
+ try {
3962
+ value = JSON.parse(node.value);
3963
+ } catch {
3964
+ diagnostics.push({ code: "invalid-json", blockIndex });
3965
+ await preserveSource(body.slice(start, end));
3966
+ continue;
3967
+ }
3968
+ const candidateIds = new Set(ids);
3969
+ if (!converter.schema || !validPageBlock(value, converter.schema, candidateIds)) {
3970
+ diagnostics.push({ code: "invalid-block", blockIndex });
3971
+ await preserveSource(body.slice(start, end));
3972
+ continue;
3973
+ }
3974
+ candidateIds.forEach((id) => ids.add(id));
3975
+ blocks.push(value);
3976
+ }
3977
+ await parseRun(body.slice(cursor));
3978
+ const { schemaVersion: _ignored, ...rest } = meta;
3979
+ for (const key of ["title", "id", "author", "createdAt", "exportedAt"]) {
3980
+ if (meta[key] !== void 0 && typeof meta[key] !== "string") delete rest[key];
3981
+ }
3982
+ return { meta: { ...rest, schemaVersion }, blocks, diagnostics };
3983
+ }
3984
+ async function pageContentHash(markdown) {
3985
+ const bytes = new TextEncoder().encode(markdown);
3986
+ const digest2 = await crypto.subtle.digest("SHA-256", bytes);
3987
+ return Array.from(new Uint8Array(digest2)).map((b) => b.toString(16).padStart(2, "0")).join("");
3988
+ }
3989
+ function canonicalJson(value) {
3990
+ return JSON.stringify(
3991
+ value,
3992
+ (_key, inner) => inner && typeof inner === "object" && !Array.isArray(inner) ? Object.fromEntries(
3993
+ Object.keys(inner).sort().map((key) => [key, inner[key]])
3994
+ ) : inner
3995
+ );
3996
+ }
3997
+ async function pageDocumentHash(blocks, title) {
3998
+ return pageContentHash(canonicalJson({ title: title ?? null, blocks }));
3999
+ }
4000
+
3660
4001
  // src/core/lib/flowEngine/utils.ts
3661
4002
  var buildAuthzFromProps = (props) => {
3662
4003
  const linkedClaimCollectionId = typeof props.linkedClaimCollectionId === "string" ? props.linkedClaimCollectionId.trim() : "";
@@ -4116,8 +4457,8 @@ function removePendingInvocation(yDoc, listenerBlockId, pendingInvocationId, ses
4116
4457
  }
4117
4458
  function readConsumedPendingInvocationIds(yDoc, listenerBlockId, sessionRunId) {
4118
4459
  const consumed = /* @__PURE__ */ new Set();
4119
- for (const record3 of readRunRecords(yDoc, listenerBlockId, sessionRunId)) {
4120
- if (record3.fromPendingInvocationId) consumed.add(record3.fromPendingInvocationId);
4460
+ for (const record4 of readRunRecords(yDoc, listenerBlockId, sessionRunId)) {
4461
+ if (record4.fromPendingInvocationId) consumed.add(record4.fromPendingInvocationId);
4121
4462
  }
4122
4463
  return consumed;
4123
4464
  }
@@ -4258,13 +4599,13 @@ function findFailedListenersForSourceRun(yDoc, sourceBlockId, sourceRunId, liste
4258
4599
  const failures = [];
4259
4600
  for (const listenerBlockId of listenerBlockIds) {
4260
4601
  const records = readRunRecords(yDoc, listenerBlockId);
4261
- for (const record3 of records) {
4262
- if (!record3.error) continue;
4263
- if (record3.triggeredBy?.sourceBlockId !== sourceBlockId) continue;
4264
- if (record3.fromPendingInvocationId == null) continue;
4265
- const sourceRunIdField = record3.sourceRunId;
4602
+ for (const record4 of records) {
4603
+ if (!record4.error) continue;
4604
+ if (record4.triggeredBy?.sourceBlockId !== sourceBlockId) continue;
4605
+ if (record4.fromPendingInvocationId == null) continue;
4606
+ const sourceRunIdField = record4.sourceRunId;
4266
4607
  if (sourceRunIdField && sourceRunIdField !== sourceRunId) continue;
4267
- failures.push({ listenerBlockId, record: record3 });
4608
+ failures.push({ listenerBlockId, record: record4 });
4268
4609
  }
4269
4610
  }
4270
4611
  return failures;
@@ -6091,9 +6432,9 @@ var DESIGN_POD_PUBLICATION_CLAIM_MESSAGE = "Design POD IXO publication broadcast
6091
6432
  function publicationClaimFromEvent(event, expected) {
6092
6433
  const content = event.content;
6093
6434
  if (!content || typeof content !== "object" || Array.isArray(content)) return void 0;
6094
- const record3 = content;
6095
- if (record3.kind !== "log") return void 0;
6096
- const payload = record3.payload;
6435
+ const record4 = content;
6436
+ if (record4.kind !== "log") return void 0;
6437
+ const payload = record4.payload;
6097
6438
  if (!payload || typeof payload !== "object" || Array.isArray(payload)) return void 0;
6098
6439
  const payloadRecord = payload;
6099
6440
  if (payloadRecord.message !== DESIGN_POD_PUBLICATION_CLAIM_MESSAGE) return void 0;
@@ -6461,7 +6802,7 @@ register(
6461
6802
  if (!manifest?.publicationRules.checklistItems.some((item) => item.id === itemId)) throw new Error(`${itemId} is not a governed checklist item in the pinned method`);
6462
6803
  const updatedAt = (/* @__PURE__ */ new Date()).toISOString();
6463
6804
  const digest2 = await digestDesignPodValue({ itemId, disposition, updatedByDid: ctx.actorDid, updatedAt });
6464
- const record3 = {
6805
+ const record4 = {
6465
6806
  schemaVersion: "1.0",
6466
6807
  itemId,
6467
6808
  disposition,
@@ -6473,7 +6814,7 @@ register(
6473
6814
  const map = doc.getMap(DESIGN_POD_STATE_MAP_KEY);
6474
6815
  doc.transact(() => {
6475
6816
  assertPublicationCanBeInvalidated2(doc, map, authority, "blueprint-checklist-update");
6476
- map.set(`checklist:${itemId}`, record3);
6817
+ map.set(`checklist:${itemId}`, record4);
6477
6818
  markRecordStale(map, "reviewRequest");
6478
6819
  markRecordStale(map, "review");
6479
6820
  markRecordStale(map, "release");
@@ -9707,17 +10048,17 @@ function terminalMapFor(map) {
9707
10048
  return map?.doc ? getXeroWorkTerminalMap(map.doc) : null;
9708
10049
  }
9709
10050
  function resolveItem(terminal, item) {
9710
- const record3 = terminal?.get(item.id);
9711
- if (!record3 || item.status === "completed") return item;
10051
+ const record4 = terminal?.get(item.id);
10052
+ if (!record4 || item.status === "completed") return item;
9712
10053
  return {
9713
10054
  ...item,
9714
10055
  status: "completed",
9715
10056
  error: void 0,
9716
- ...record3.reviewPayload !== void 0 ? { reviewPayload: record3.reviewPayload } : {},
9717
- ...record3.submittedPayload !== void 0 ? { submittedPayload: record3.submittedPayload } : {},
9718
- ...record3.result !== void 0 ? { result: record3.result } : {},
9719
- completedAt: record3.completedAt,
9720
- ...record3.completedByDid !== void 0 ? { completedByDid: record3.completedByDid } : {}
10057
+ ...record4.reviewPayload !== void 0 ? { reviewPayload: record4.reviewPayload } : {},
10058
+ ...record4.submittedPayload !== void 0 ? { submittedPayload: record4.submittedPayload } : {},
10059
+ ...record4.result !== void 0 ? { result: record4.result } : {},
10060
+ completedAt: record4.completedAt,
10061
+ ...record4.completedByDid !== void 0 ? { completedByDid: record4.completedByDid } : {}
9721
10062
  };
9722
10063
  }
9723
10064
  function ensureTerminalRecord(terminal, item) {
@@ -9912,11 +10253,11 @@ function isSettledStatus(value) {
9912
10253
  }
9913
10254
  function isClaimPending(claim) {
9914
10255
  if (!claim || typeof claim !== "object") return false;
9915
- const record3 = claim;
9916
- if (isSettledStatus(record3.evaluationByClaimId?.status)) return false;
9917
- if (record3.disputeBySubjectId) return false;
9918
- if (isSettledStatus(record3.status)) return false;
9919
- const payments = record3.paymentsStatus;
10256
+ const record4 = claim;
10257
+ if (isSettledStatus(record4.evaluationByClaimId?.status)) return false;
10258
+ if (record4.disputeBySubjectId) return false;
10259
+ if (isSettledStatus(record4.status)) return false;
10260
+ const payments = record4.paymentsStatus;
9920
10261
  if (payments && typeof payments === "object") {
9921
10262
  if (payments.approval === "PAID" || payments.rejection === "PAID") return false;
9922
10263
  }
@@ -9928,12 +10269,12 @@ function countPendingClaims(claims) {
9928
10269
  }
9929
10270
  function isCollectionClosed(collection, now) {
9930
10271
  if (!collection || typeof collection !== "object") return false;
9931
- const record3 = collection;
9932
- const state = record3.state;
10272
+ const record4 = collection;
10273
+ const state = record4.state;
9933
10274
  if (toNumber(state) === 2) return true;
9934
10275
  if (String(state ?? "").trim().toUpperCase() === "CLOSED")
9935
10276
  return true;
9936
- const endDate = record3.endDate ? Date.parse(String(record3.endDate)) : NaN;
10277
+ const endDate = record4.endDate ? Date.parse(String(record4.endDate)) : NaN;
9937
10278
  return Number.isFinite(endDate) && endDate <= now;
9938
10279
  }
9939
10280
  function buildPendingClaimSnapshot(params) {
@@ -10786,11 +11127,11 @@ function getSelectedProtocolTemplates(flowTemplateConfig) {
10786
11127
  if (!Array.isArray(raw)) return [];
10787
11128
  return raw.map((item) => {
10788
11129
  if (!item || typeof item !== "object") return null;
10789
- const record3 = item;
10790
- const protocolDid = String(record3.protocolDid || "").trim();
10791
- const sourceRoomId = String(record3.sourceRoomId || "").trim();
11130
+ const record4 = item;
11131
+ const protocolDid = String(record4.protocolDid || "").trim();
11132
+ const sourceRoomId = String(record4.sourceRoomId || "").trim();
10792
11133
  if (!protocolDid || !sourceRoomId) return null;
10793
- const sourceLabel = String(record3.sourceLabel || record3.label || "").trim();
11134
+ const sourceLabel = String(record4.sourceLabel || record4.label || "").trim();
10794
11135
  return {
10795
11136
  protocolDid,
10796
11137
  sourceRoomId,
@@ -11584,7 +11925,7 @@ function requiredString2(value, name) {
11584
11925
  if (typeof value !== "string" || value.trim().length === 0) throw new Error(`${name} is required`);
11585
11926
  return value.trim();
11586
11927
  }
11587
- function record2(value, name) {
11928
+ function record3(value, name) {
11588
11929
  if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error(`${name} must be an object`);
11589
11930
  return value;
11590
11931
  }
@@ -11657,9 +11998,9 @@ registerAction({
11657
11998
  if (!["provider_wallet", "outcome_buyer_treasury", "deed_entity_account", "external_treasury"].includes(sourceAccountType)) {
11658
11999
  throw new Error("sourceAccountType is invalid");
11659
12000
  }
11660
- const payout = record2(inputs.payout, "payout");
11661
- const minimumAvailable = record2(inputs.minimumAvailable, "minimumAvailable");
11662
- const claimantAddressResolution = record2(inputs.claimantAddressResolution, "claimantAddressResolution");
12001
+ const payout = record3(inputs.payout, "payout");
12002
+ const minimumAvailable = record3(inputs.minimumAvailable, "minimumAvailable");
12003
+ const claimantAddressResolution = record3(inputs.claimantAddressResolution, "claimantAddressResolution");
11663
12004
  const method = requiredString2(claimantAddressResolution.method, "claimantAddressResolution.method");
11664
12005
  if (!["claim_subject_address", "verified_wallet_link", "provider_registry"].includes(method)) {
11665
12006
  throw new Error("claimantAddressResolution.method is invalid");
@@ -11760,7 +12101,7 @@ registerAction({
11760
12101
  issuerDid: requiredString2(inputs.issuerDid, "issuerDid"),
11761
12102
  subjectDid: requiredString2(inputs.subjectDid, "subjectDid"),
11762
12103
  yoId: requiredString2(inputs.yoId, "yoId"),
11763
- claims: record2(inputs.claims, "claims"),
12104
+ claims: record3(inputs.claims, "claims"),
11764
12105
  evidenceRefs: strings(inputs.evidenceRefs, "evidenceRefs"),
11765
12106
  deliveryChannel
11766
12107
  };
@@ -11777,13 +12118,13 @@ registerAction({
11777
12118
  });
11778
12119
  if (requiredString2(result.requestDigest, "requestDigest") !== requestDigest) throw new Error("Issued credential is not bound to the canonical issuance request");
11779
12120
  if (result.verificationStatus !== "verified") throw new Error("Issued credential was not independently verified");
11780
- const credential = record2(result.credential, "credential");
11781
- const issuer = typeof credential.issuer === "string" ? requiredString2(credential.issuer, "credential.issuer") : requiredString2(record2(credential.issuer, "credential.issuer").id, "credential.issuer.id");
12121
+ const credential = record3(result.credential, "credential");
12122
+ const issuer = typeof credential.issuer === "string" ? requiredString2(credential.issuer, "credential.issuer") : requiredString2(record3(credential.issuer, "credential.issuer").id, "credential.issuer.id");
11782
12123
  if (issuer !== request.issuerDid) throw new Error("Issued credential issuer does not match the requested issuer");
11783
12124
  const credentialTypes = typeof credential.type === "string" ? [requiredString2(credential.type, "credential.type")] : strings(credential.type, "credential.type");
11784
12125
  if (!credentialTypes.includes(request.credentialType)) throw new Error("Issued credential type does not match the requested credential type");
11785
12126
  const rawSubjects = Array.isArray(credential.credentialSubject) ? credential.credentialSubject : [credential.credentialSubject];
11786
- if (rawSubjects.length !== 1 || requiredString2(record2(rawSubjects[0], "credential.credentialSubject").id, "credential.credentialSubject.id") !== request.subjectDid) {
12127
+ if (rawSubjects.length !== 1 || requiredString2(record3(rawSubjects[0], "credential.credentialSubject").id, "credential.credentialSubject.id") !== request.subjectDid) {
11787
12128
  throw new Error("Issued credential subject does not match the requested youth");
11788
12129
  }
11789
12130
  if (credential.id !== void 0 && requiredString2(credential.id, "credential.id") !== result.credentialId) {
@@ -11832,7 +12173,7 @@ registerAction({
11832
12173
  providerOrganisationId: requiredString2(inputs.providerOrganisationId, "providerOrganisationId"),
11833
12174
  opportunityId: requestedOpportunityId,
11834
12175
  deedDid: requiredString2(inputs.deedDid, "deedDid"),
11835
- opportunity: record2(inputs.opportunity, "opportunity")
12176
+ opportunity: record3(inputs.opportunity, "opportunity")
11836
12177
  };
11837
12178
  const result = await service.execute(request);
11838
12179
  const observedOpportunityId = requiredString2(result.opportunityId, "opportunityId");
@@ -11944,7 +12285,7 @@ registerAction({
11944
12285
  run: async (inputs, ctx) => {
11945
12286
  const service = ctx.services.outcomeCertificate;
11946
12287
  if (!service) throw new Error("Outcome certificate service not configured");
11947
- const period = record2(inputs.period, "period");
12288
+ const period = record3(inputs.period, "period");
11948
12289
  const start = requiredString2(period.start, "period.start");
11949
12290
  const end = requiredString2(period.end, "period.end");
11950
12291
  const startAt = Date.parse(start);
@@ -11953,8 +12294,8 @@ registerAction({
11953
12294
  if (endAt <= startAt) throw new Error("Outcome period end must follow start");
11954
12295
  const evidenceDigest = requiredString2(inputs.evidenceDigest, "evidenceDigest");
11955
12296
  if (!/^[a-f0-9]{64}$/.test(evidenceDigest)) throw new Error("evidenceDigest must be a lowercase SHA-256 digest");
11956
- const tokenisation = inputs.tokenisation === void 0 ? void 0 : record2(inputs.tokenisation, "tokenisation");
11957
- const outcomeBuyer = inputs.outcomeBuyer === void 0 ? void 0 : record2(inputs.outcomeBuyer, "outcomeBuyer");
12297
+ const tokenisation = inputs.tokenisation === void 0 ? void 0 : record3(inputs.tokenisation, "tokenisation");
12298
+ const outcomeBuyer = inputs.outcomeBuyer === void 0 ? void 0 : record3(inputs.outcomeBuyer, "outcomeBuyer");
11958
12299
  if (tokenisation?.enabled === true) {
11959
12300
  const network = requiredString2(tokenisation.network, "tokenisation.network");
11960
12301
  if (!["testnet", "mainnet"].includes(network)) throw new Error("tokenisation.network must be testnet or mainnet");
@@ -12008,8 +12349,8 @@ registerAction({
12008
12349
  if (result.settlementStatus !== "settled") throw new Error("Configured outcome buyer has not settled");
12009
12350
  }
12010
12351
  if (result.aggregateDigest !== evidenceDigest) throw new Error("Outcome service returned a different aggregate digest");
12011
- const credential = record2(result.credential, "credential");
12012
- const issuer = typeof credential.issuer === "string" ? requiredString2(credential.issuer, "credential.issuer") : requiredString2(record2(credential.issuer, "credential.issuer").id, "credential.issuer.id");
12352
+ const credential = record3(result.credential, "credential");
12353
+ const issuer = typeof credential.issuer === "string" ? requiredString2(credential.issuer, "credential.issuer") : requiredString2(record3(credential.issuer, "credential.issuer").id, "credential.issuer.id");
12013
12354
  if (issuer !== request.issuerDid) throw new Error("Outcome credential issuer does not match the requested issuer");
12014
12355
  const credentialTypes = typeof credential.type === "string" ? [requiredString2(credential.type, "credential.type")] : strings(credential.type, "credential.type");
12015
12356
  if (!credentialTypes.includes("OutcomeCertificate")) throw new Error("Issued credential is not an OutcomeCertificate");
@@ -14435,7 +14776,7 @@ async function runEvalRegister(inputs, ctx) {
14435
14776
  }
14436
14777
 
14437
14778
  // src/core/lib/actionRegistry/actions/evalRubric/canonical.ts
14438
- function canonicalJson(value) {
14779
+ function canonicalJson2(value) {
14439
14780
  if (value === null || typeof value === "boolean" || typeof value === "string") {
14440
14781
  return JSON.stringify(value);
14441
14782
  }
@@ -14444,10 +14785,10 @@ function canonicalJson(value) {
14444
14785
  return JSON.stringify(value);
14445
14786
  }
14446
14787
  if (Array.isArray(value)) {
14447
- return `[${value.map((item) => item === void 0 ? "null" : canonicalJson(item)).join(",")}]`;
14788
+ return `[${value.map((item) => item === void 0 ? "null" : canonicalJson2(item)).join(",")}]`;
14448
14789
  }
14449
14790
  if (typeof value === "object") {
14450
- const entries = Object.entries(value).filter(([, v]) => v !== void 0).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([k, v]) => `${JSON.stringify(k)}:${canonicalJson(v)}`);
14791
+ const entries = Object.entries(value).filter(([, v]) => v !== void 0).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([k, v]) => `${JSON.stringify(k)}:${canonicalJson2(v)}`);
14451
14792
  return `{${entries.join(",")}}`;
14452
14793
  }
14453
14794
  throw new Error(`canonicalJson: unsupported value of type ${typeof value}`);
@@ -15857,7 +16198,7 @@ async function publishEvalRubric(preflight, ctx) {
15857
16198
  throw new Error("handlers not available (ctx.handlers is undefined)");
15858
16199
  }
15859
16200
  const { rubric, collectionId, evalEngineUrl } = preflight;
15860
- const bytes = canonicalJson(buildRubricEnvelope(rubric));
16201
+ const bytes = canonicalJson2(buildRubricEnvelope(rubric));
15861
16202
  console.info("[eval.rubric] step canonicalize \u2014 envelope bytes built", { byteLength: bytes.length });
15862
16203
  const uploaded = await hostCall("uploadRubric", () => service.uploadRubric({ json: bytes, fileName: "rubric" }));
15863
16204
  console.info("[eval.rubric] step upload \u2014 stored", { url: uploaded?.url, sha256: uploaded?.sha256 });
@@ -17456,8 +17797,8 @@ function registerSemanticAction(spec) {
17456
17797
  run: async (inputs, ctx) => {
17457
17798
  topicContext(ctx);
17458
17799
  const value = await spec.execute(inputs, ctx);
17459
- const { record: record3, digest: digest2 } = semanticRecord(spec.recordType, value, ctx);
17460
- return { output: { recordId: record3.id, recordType: record3.type, recordDigest: digest2, record: value }, topicRecords: [record3] };
17800
+ const { record: record4, digest: digest2 } = semanticRecord(spec.recordType, value, ctx);
17801
+ return { output: { recordId: record4.id, recordType: record4.type, recordDigest: digest2, record: value }, topicRecords: [record4] };
17461
17802
  }
17462
17803
  });
17463
17804
  }
@@ -20498,16 +20839,16 @@ function _reconcilePendingInvocationsInner(editor, yDoc, runId) {
20498
20839
  }
20499
20840
  if (!hasAnyListener) continue;
20500
20841
  const records = readRunRecords(yDoc, sourceBlockId, runId);
20501
- for (const record3 of records) {
20502
- const trust = runRecordTrust(record3, sourceBlockId, invocationsMap, receipts);
20842
+ for (const record4 of records) {
20843
+ const trust = runRecordTrust(record4, sourceBlockId, invocationsMap, receipts);
20503
20844
  if (trust === "pending") {
20504
- const invocation = invocationsMap.get(record3.invocationCid);
20845
+ const invocation = invocationsMap.get(record4.invocationCid);
20505
20846
  awaiting.push(receipts.verify(invocation, { blockId: sourceBlockId }));
20506
20847
  continue;
20507
20848
  }
20508
20849
  if (trust !== "verified") continue;
20509
- processRunRecord(yDoc, runId, sourceBlockId, record3, listenersBySource, getNodeOutput2, isConsumed, now);
20510
- processBarrierRunRecord(yDoc, runId, sourceBlockId, record3, barrierListenersBySource, getNodeOutput2, isConsumed, now);
20850
+ processRunRecord(yDoc, runId, sourceBlockId, record4, listenersBySource, getNodeOutput2, isConsumed, now);
20851
+ processBarrierRunRecord(yDoc, runId, sourceBlockId, record4, barrierListenersBySource, getNodeOutput2, isConsumed, now);
20511
20852
  }
20512
20853
  }
20513
20854
  if (awaiting.length > 0) {
@@ -20563,17 +20904,17 @@ function dispatchFlowStartTriggers(params) {
20563
20904
  }
20564
20905
  return queued;
20565
20906
  }
20566
- function runRecordTrust(record3, sourceBlockId, invocationsMap, receipts) {
20567
- if (!record3.invocationCid) return "untrusted";
20568
- const invocation = invocationsMap.get(record3.invocationCid);
20907
+ function runRecordTrust(record4, sourceBlockId, invocationsMap, receipts) {
20908
+ if (!record4.invocationCid) return "untrusted";
20909
+ const invocation = invocationsMap.get(record4.invocationCid);
20569
20910
  if (!invocation || typeof invocation !== "object" || invocation.result !== "success") return "untrusted";
20570
20911
  if (!receipts) return "untrusted";
20571
20912
  const status = receipts.check(invocation, { blockId: sourceBlockId });
20572
20913
  return status.status === "verified" ? "verified" : status.status === "pending" ? "pending" : "untrusted";
20573
20914
  }
20574
- function processRunRecord(yDoc, runId, sourceBlockId, record3, listenersBySource, getNodeOutput2, isConsumed, now) {
20575
- if (!Array.isArray(record3.events)) return;
20576
- record3.events.forEach((event, eventIndex) => {
20915
+ function processRunRecord(yDoc, runId, sourceBlockId, record4, listenersBySource, getNodeOutput2, isConsumed, now) {
20916
+ if (!Array.isArray(record4.events)) return;
20917
+ record4.events.forEach((event, eventIndex) => {
20577
20918
  if (!event?.name) return;
20578
20919
  const key = `${sourceBlockId}::${event.name}`;
20579
20920
  const listeners = listenersBySource.get(key);
@@ -20583,7 +20924,7 @@ function processRunRecord(yDoc, runId, sourceBlockId, record3, listenersBySource
20583
20924
  if (!listenerBlockId) continue;
20584
20925
  const id = computePendingInvocationId({
20585
20926
  sourceBlockId,
20586
- sourceRunId: record3.runId,
20927
+ sourceRunId: record4.runId,
20587
20928
  listenerBlockId,
20588
20929
  eventName: event.name,
20589
20930
  eventIndex,
@@ -20593,23 +20934,23 @@ function processRunRecord(yDoc, runId, sourceBlockId, record3, listenersBySource
20593
20934
  const assigneeDid = resolveAssignee(listenerBlock) || "unassigned";
20594
20935
  const inputs = parseInputs(listenerBlock);
20595
20936
  const refSnapshots = snapshotInputRefs(inputs, getNodeOutput2);
20596
- const expiresAt = computeExpiry(listenerBlock, record3.completedAt);
20937
+ const expiresAt = computeExpiry(listenerBlock, record4.completedAt);
20597
20938
  if (expiresAt && Date.parse(expiresAt) < now) continue;
20598
20939
  const invocation = {
20599
20940
  id,
20600
20941
  triggeringBlockId: sourceBlockId,
20601
- sourceRunId: record3.runId,
20942
+ sourceRunId: record4.runId,
20602
20943
  sessionRunId: runId,
20603
20944
  eventName: event.name,
20604
20945
  eventIndex,
20605
20946
  payload: event.payload,
20606
20947
  refSnapshots,
20607
20948
  assigneeDid,
20608
- emittedAt: record3.completedAt,
20949
+ emittedAt: record4.completedAt,
20609
20950
  expiresAt,
20610
20951
  // What this invocation acts on: the triggering step's verified
20611
20952
  // receipt (only verified receipts reach here).
20612
- ...record3.invocationCid ? { requestId: record3.invocationCid } : {}
20953
+ ...record4.invocationCid ? { requestId: record4.invocationCid } : {}
20613
20954
  };
20614
20955
  queuePendingInvocation(yDoc, listenerBlockId, invocation, runId);
20615
20956
  writeActionState(yDoc, runId, listenerBlockId, {
@@ -20618,9 +20959,9 @@ function processRunRecord(yDoc, runId, sourceBlockId, record3, listenersBySource
20618
20959
  }
20619
20960
  });
20620
20961
  }
20621
- function processBarrierRunRecord(yDoc, runId, sourceBlockId, record3, barrierListenersBySource, getNodeOutput2, isConsumed, now) {
20622
- if (!Array.isArray(record3.events)) return;
20623
- for (const event of record3.events) {
20962
+ function processBarrierRunRecord(yDoc, runId, sourceBlockId, record4, barrierListenersBySource, getNodeOutput2, isConsumed, now) {
20963
+ if (!Array.isArray(record4.events)) return;
20964
+ for (const event of record4.events) {
20624
20965
  if (!event?.name) continue;
20625
20966
  const key = `${sourceBlockId}::${event.name}`;
20626
20967
  const listeners = barrierListenersBySource.get(key);
@@ -20632,10 +20973,10 @@ function processBarrierRunRecord(yDoc, runId, sourceBlockId, record3, barrierLis
20632
20973
  sourceBlockId,
20633
20974
  eventName: event.name,
20634
20975
  alias: source.alias,
20635
- runId: record3.runId,
20976
+ runId: record4.runId,
20636
20977
  sessionRunId: runId,
20637
20978
  payload: event.payload || {},
20638
- emittedAt: record3.completedAt
20979
+ emittedAt: record4.completedAt
20639
20980
  };
20640
20981
  recordBarrierEvent(yDoc, listenerBlockId, entry, runId);
20641
20982
  const existing = readActionState(yDoc, runId, listenerBlockId).pendingPayload || {};
@@ -20654,23 +20995,23 @@ function processBarrierRunRecord(yDoc, runId, sourceBlockId, record3, barrierLis
20654
20995
  const mergedPayload = mergeBarrierPayloads(currentState);
20655
20996
  const inputs = parseInputs(listenerBlock);
20656
20997
  const refSnapshots = snapshotInputRefs(inputs, getNodeOutput2);
20657
- const expiresAt = computeExpiry(listenerBlock, record3.completedAt);
20998
+ const expiresAt = computeExpiry(listenerBlock, record4.completedAt);
20658
20999
  if (expiresAt && Date.parse(expiresAt) < now) continue;
20659
21000
  const invocation = {
20660
21001
  id,
20661
21002
  triggeringBlockId: sourceBlockId,
20662
- sourceRunId: record3.runId,
21003
+ sourceRunId: record4.runId,
20663
21004
  sessionRunId: runId,
20664
21005
  eventName: `barrier:${allSources.map((s) => s.alias).join("+")}`,
20665
21006
  eventIndex: 0,
20666
21007
  payload: mergedPayload,
20667
21008
  refSnapshots,
20668
21009
  assigneeDid,
20669
- emittedAt: record3.completedAt,
21010
+ emittedAt: record4.completedAt,
20670
21011
  expiresAt,
20671
21012
  // What this invocation acts on: the triggering step's verified
20672
21013
  // receipt (only verified receipts reach here).
20673
- ...record3.invocationCid ? { requestId: record3.invocationCid } : {}
21014
+ ...record4.invocationCid ? { requestId: record4.invocationCid } : {}
20674
21015
  };
20675
21016
  queuePendingInvocation(yDoc, listenerBlockId, invocation, runId);
20676
21017
  clearBarrierState(yDoc, listenerBlockId, runId);
@@ -20956,13 +21297,13 @@ async function createFlowRequest(ucanService, params) {
20956
21297
  createdAt: (params.now ?? Date.now)()
20957
21298
  };
20958
21299
  }
20959
- function writeFlowRequest(yDoc, record3) {
20960
- yDoc.getMap(FLOW_REQUESTS_MAP_KEY).set(record3.invocationCid, record3);
21300
+ function writeFlowRequest(yDoc, record4) {
21301
+ yDoc.getMap(FLOW_REQUESTS_MAP_KEY).set(record4.invocationCid, record4);
20961
21302
  }
20962
21303
  function readFlowRequest(yDoc, requestId) {
20963
21304
  let found;
20964
- yDoc.getMap(FLOW_REQUESTS_MAP_KEY).forEach((record3) => {
20965
- if (!found && record3 && typeof record3 === "object" && record3.requestId === requestId) found = record3;
21305
+ yDoc.getMap(FLOW_REQUESTS_MAP_KEY).forEach((record4) => {
21306
+ if (!found && record4 && typeof record4 === "object" && record4.requestId === requestId) found = record4;
20966
21307
  });
20967
21308
  return found;
20968
21309
  }
@@ -20981,7 +21322,7 @@ function lifecycleRequestProof(options) {
20981
21322
  async function requestStepRun(yDoc, params) {
20982
21323
  const docId = yDoc.getMap("root").get("doc_id");
20983
21324
  if (typeof docId !== "string" || !docId) throw new Error("The flow has no id yet, so a step request cannot be signed for it.");
20984
- const record3 = await createFlowRequest(params.ucanService, {
21325
+ const record4 = await createFlowRequest(params.ucanService, {
20985
21326
  kind: "step.request",
20986
21327
  requesterDid: params.requesterDid,
20987
21328
  flowManagerDid: params.flowManagerDid,
@@ -20994,10 +21335,10 @@ async function requestStepRun(yDoc, params) {
20994
21335
  pin: params.pin
20995
21336
  });
20996
21337
  yDoc.transact(() => {
20997
- writeFlowRequest(yDoc, record3);
20998
- resetActionState(yDoc, params.runId, params.stepId, { state: "idle", requestId: record3.requestId });
21338
+ writeFlowRequest(yDoc, record4);
21339
+ resetActionState(yDoc, params.runId, params.stepId, { state: "idle", requestId: record4.requestId });
20999
21340
  });
21000
- return record3;
21341
+ return record4;
21001
21342
  }
21002
21343
 
21003
21344
  // src/core/lib/flowEngine/vnext/legacy.ts
@@ -24164,37 +24505,37 @@ function claimEffect(existing, request, now) {
24164
24505
  }
24165
24506
  };
24166
24507
  }
24167
- function assertFence(record3, owner, epoch, now) {
24168
- if (record3.leaseOwner !== owner || record3.fencingEpoch !== epoch) {
24508
+ function assertFence(record4, owner, epoch, now) {
24509
+ if (record4.leaseOwner !== owner || record4.fencingEpoch !== epoch) {
24169
24510
  throw new EffectClaimTransitionError("STALE_FENCE", "Effect claim owner or fencing epoch is stale");
24170
24511
  }
24171
- if (record3.leaseExpiresAt <= now) throw new EffectClaimTransitionError("STALE_FENCE", "Effect claim lease has expired");
24512
+ if (record4.leaseExpiresAt <= now) throw new EffectClaimTransitionError("STALE_FENCE", "Effect claim lease has expired");
24172
24513
  }
24173
- function renewEffectClaim(record3, owner, epoch, leaseTtlMs, now) {
24174
- assertFence(record3, owner, epoch, now);
24175
- if (record3.status !== "claimed") throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only an unarmed claim can renew its lease");
24176
- return { ...record3, leaseExpiresAt: now + leaseTtlMs, updatedAt: now };
24514
+ function renewEffectClaim(record4, owner, epoch, leaseTtlMs, now) {
24515
+ assertFence(record4, owner, epoch, now);
24516
+ if (record4.status !== "claimed") throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only an unarmed claim can renew its lease");
24517
+ return { ...record4, leaseExpiresAt: now + leaseTtlMs, updatedAt: now };
24177
24518
  }
24178
- function armEffectClaim(record3, owner, epoch, now, providerCorrelation) {
24179
- assertFence(record3, owner, epoch, now);
24180
- if (record3.status === "armed" && record3.providerCorrelation === providerCorrelation) return record3;
24181
- if (record3.status !== "claimed") throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only a claimed effect can be armed");
24182
- return { ...record3, status: "armed", ...providerCorrelation !== void 0 ? { providerCorrelation } : {}, updatedAt: now };
24519
+ function armEffectClaim(record4, owner, epoch, now, providerCorrelation) {
24520
+ assertFence(record4, owner, epoch, now);
24521
+ if (record4.status === "armed" && record4.providerCorrelation === providerCorrelation) return record4;
24522
+ if (record4.status !== "claimed") throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only a claimed effect can be armed");
24523
+ return { ...record4, status: "armed", ...providerCorrelation !== void 0 ? { providerCorrelation } : {}, updatedAt: now };
24183
24524
  }
24184
- function prepareEffectSuccess(record3, owner, epoch, outputDigest2, outcomesDigest, now, providerCorrelation) {
24185
- assertFence(record3, owner, epoch, now);
24186
- if (record3.status === "success_prepared") {
24187
- if (record3.outputDigest !== outputDigest2 || record3.outcomesDigest !== outcomesDigest) {
24525
+ function prepareEffectSuccess(record4, owner, epoch, outputDigest2, outcomesDigest, now, providerCorrelation) {
24526
+ assertFence(record4, owner, epoch, now);
24527
+ if (record4.status === "success_prepared") {
24528
+ if (record4.outputDigest !== outputDigest2 || record4.outcomesDigest !== outcomesDigest) {
24188
24529
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "Prepared effect success has different result evidence");
24189
24530
  }
24190
- return record3;
24531
+ return record4;
24191
24532
  }
24192
- if (record3.status !== "armed" && record3.status !== "needs_verification") {
24533
+ if (record4.status !== "armed" && record4.status !== "needs_verification") {
24193
24534
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only an armed or verified effect can prepare success");
24194
24535
  }
24195
- const nextCorrelation = providerCorrelation ?? record3.providerCorrelation;
24536
+ const nextCorrelation = providerCorrelation ?? record4.providerCorrelation;
24196
24537
  return {
24197
- ...record3,
24538
+ ...record4,
24198
24539
  status: "success_prepared",
24199
24540
  outputDigest: outputDigest2,
24200
24541
  outcomesDigest,
@@ -24202,42 +24543,42 @@ function prepareEffectSuccess(record3, owner, epoch, outputDigest2, outcomesDige
24202
24543
  updatedAt: now
24203
24544
  };
24204
24545
  }
24205
- function resolveEffectClaim(record3, owner, epoch, outcome, now, providerCorrelation, successEventId) {
24546
+ function resolveEffectClaim(record4, owner, epoch, outcome, now, providerCorrelation, successEventId) {
24206
24547
  if (outcome === "failed_before_effect" && successEventId !== void 0) {
24207
24548
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "Failed-before-effect resolution cannot include success evidence");
24208
24549
  }
24209
- if (record3.status === outcome) {
24210
- const expectedCorrelation = providerCorrelation ?? record3.providerCorrelation;
24211
- const sameCorrelation = record3.providerCorrelation === expectedCorrelation;
24212
- const sameSuccess = outcome !== "succeeded" || record3.successEventId === successEventId;
24213
- if (record3.leaseOwner === owner && record3.fencingEpoch === epoch && sameCorrelation && sameSuccess) return record3;
24550
+ if (record4.status === outcome) {
24551
+ const expectedCorrelation = providerCorrelation ?? record4.providerCorrelation;
24552
+ const sameCorrelation = record4.providerCorrelation === expectedCorrelation;
24553
+ const sameSuccess = outcome !== "succeeded" || record4.successEventId === successEventId;
24554
+ if (record4.leaseOwner === owner && record4.fencingEpoch === epoch && sameCorrelation && sameSuccess) return record4;
24214
24555
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "Resolved effect evidence does not match the existing terminal record");
24215
24556
  }
24216
- assertFence(record3, owner, epoch, now);
24217
- if (outcome === "failed_before_effect" && record3.status !== "claimed") {
24557
+ assertFence(record4, owner, epoch, now);
24558
+ if (outcome === "failed_before_effect" && record4.status !== "claimed") {
24218
24559
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "An armed effect cannot be reported as failed before effect");
24219
24560
  }
24220
- if (outcome === "succeeded" && (record3.status !== "success_prepared" || !record3.outputDigest || !record3.outcomesDigest)) {
24561
+ if (outcome === "succeeded" && (record4.status !== "success_prepared" || !record4.outputDigest || !record4.outcomesDigest)) {
24221
24562
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "Effect success must be prepared before it can be finalized");
24222
24563
  }
24223
24564
  if (outcome === "succeeded" && !successEventId) {
24224
24565
  throw new EffectClaimTransitionError("INVALID_TRANSITION", "Effect success requires its durable Matrix event id");
24225
24566
  }
24226
- const nextCorrelation = providerCorrelation ?? record3.providerCorrelation;
24567
+ const nextCorrelation = providerCorrelation ?? record4.providerCorrelation;
24227
24568
  return {
24228
- ...record3,
24569
+ ...record4,
24229
24570
  status: outcome,
24230
24571
  ...nextCorrelation !== void 0 ? { providerCorrelation: nextCorrelation } : {},
24231
24572
  ...successEventId ? { successEventId } : {},
24232
24573
  updatedAt: now
24233
24574
  };
24234
24575
  }
24235
- function markEffectNeedsVerification(record3, owner, epoch, now, providerCorrelation) {
24236
- assertFence(record3, owner, epoch, now);
24237
- if (record3.status === "needs_verification" && record3.providerCorrelation === (providerCorrelation ?? record3.providerCorrelation)) return record3;
24238
- if (record3.status !== "armed") throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only an armed effect can become ambiguous");
24239
- const nextCorrelation = providerCorrelation ?? record3.providerCorrelation;
24240
- return { ...record3, status: "needs_verification", ...nextCorrelation !== void 0 ? { providerCorrelation: nextCorrelation } : {}, updatedAt: now };
24576
+ function markEffectNeedsVerification(record4, owner, epoch, now, providerCorrelation) {
24577
+ assertFence(record4, owner, epoch, now);
24578
+ if (record4.status === "needs_verification" && record4.providerCorrelation === (providerCorrelation ?? record4.providerCorrelation)) return record4;
24579
+ if (record4.status !== "armed") throw new EffectClaimTransitionError("INVALID_TRANSITION", "Only an armed effect can become ambiguous");
24580
+ const nextCorrelation = providerCorrelation ?? record4.providerCorrelation;
24581
+ return { ...record4, status: "needs_verification", ...nextCorrelation !== void 0 ? { providerCorrelation: nextCorrelation } : {}, updatedAt: now };
24241
24582
  }
24242
24583
 
24243
24584
  // src/core/lib/flowEngine/vnext/actionContracts.ts
@@ -25190,7 +25531,7 @@ async function persistSignedTopicReceipt(params) {
25190
25531
  phase: snapshot.phase,
25191
25532
  eventId: snapshot.eventId
25192
25533
  });
25193
- const record3 = {
25534
+ const record4 = {
25194
25535
  kind: "qi.flow.topic-receipt-outbox-record",
25195
25536
  schemaVersion: "1.0",
25196
25537
  receiptId,
@@ -25202,23 +25543,23 @@ async function persistSignedTopicReceipt(params) {
25202
25543
  canonicalReceipt,
25203
25544
  persistedAt: snapshot.persistedAt
25204
25545
  };
25205
- const outcome = await outbox.persist(record3);
25546
+ const outcome = await outbox.persist(record4);
25206
25547
  if (outcome === "conflict") throw new Error(`Topic receipt identity ${receiptId} is already bound to different signed bytes`);
25207
- return record3;
25548
+ return record4;
25208
25549
  }
25209
25550
  async function drainTopicReceiptOutbox(outbox, delivery, now = () => /* @__PURE__ */ new Date(), limit = 100) {
25210
25551
  const outcomes = [];
25211
- for (const record3 of await outbox.pending(limit)) {
25552
+ for (const record4 of await outbox.pending(limit)) {
25212
25553
  try {
25213
25554
  const delivered = await delivery.deliver({
25214
- receiptId: record3.receiptId,
25215
- receiptDigest: record3.receiptDigest,
25216
- canonicalReceipt: record3.canonicalReceipt
25555
+ receiptId: record4.receiptId,
25556
+ receiptDigest: record4.receiptDigest,
25557
+ canonicalReceipt: record4.canonicalReceipt
25217
25558
  });
25218
- await outbox.markDelivered(record3.receiptId, record3.receiptDigest, { ...delivered, deliveredAt: now().toISOString() });
25219
- outcomes.push({ receiptId: record3.receiptId, outcome: "delivered" });
25559
+ await outbox.markDelivered(record4.receiptId, record4.receiptDigest, { ...delivered, deliveredAt: now().toISOString() });
25560
+ outcomes.push({ receiptId: record4.receiptId, outcome: "delivered" });
25220
25561
  } catch (error) {
25221
- outcomes.push({ receiptId: record3.receiptId, outcome: "failed", error: error instanceof Error ? error.message : String(error) });
25562
+ outcomes.push({ receiptId: record4.receiptId, outcome: "failed", error: error instanceof Error ? error.message : String(error) });
25222
25563
  }
25223
25564
  }
25224
25565
  return outcomes;
@@ -26305,8 +26646,8 @@ function factsMatch(facts, expected) {
26305
26646
  if (!expected || Object.keys(expected).length === 0) return true;
26306
26647
  return (facts ?? []).some((fact) => {
26307
26648
  if (!fact || typeof fact !== "object") return false;
26308
- const record3 = fact;
26309
- return Object.entries(expected).every(([key, value]) => JSON.stringify(record3[key]) === JSON.stringify(value));
26649
+ const record4 = fact;
26650
+ return Object.entries(expected).every(([key, value]) => JSON.stringify(record4[key]) === JSON.stringify(value));
26310
26651
  });
26311
26652
  }
26312
26653
  function plainFacts(facts) {
@@ -28167,8 +28508,8 @@ function isNodeContextRecord(value) {
28167
28508
  if (!value || typeof value !== "object" || Array.isArray(value)) {
28168
28509
  return false;
28169
28510
  }
28170
- const record3 = value;
28171
- return typeof record3.kind === "string" && typeof record3.shapeVersion === "number" && typeof record3.sourceDigest === "string" && Boolean(record3.values) && typeof record3.values === "object" && !Array.isArray(record3.values) && Boolean(record3.fieldProvenance) && typeof record3.fieldProvenance === "object" && !Array.isArray(record3.fieldProvenance) && typeof record3.inferredAt === "string";
28511
+ const record4 = value;
28512
+ return typeof record4.kind === "string" && typeof record4.shapeVersion === "number" && typeof record4.sourceDigest === "string" && Boolean(record4.values) && typeof record4.values === "object" && !Array.isArray(record4.values) && Boolean(record4.fieldProvenance) && typeof record4.fieldProvenance === "object" && !Array.isArray(record4.fieldProvenance) && typeof record4.inferredAt === "string";
28172
28513
  }
28173
28514
 
28174
28515
  // src/core/index.ts
@@ -28728,10 +29069,11 @@ function readContainerProps(container, out) {
28728
29069
  addAll(asRecord(attrs?.props));
28729
29070
  const content = container.get(0);
28730
29071
  if (content instanceof Y6.XmlElement && content.nodeName !== "blockGroup") addAll(content.getAttributes());
28731
- const textColor = container.getAttribute("textColor");
28732
- if (typeof textColor === "string" && textColor !== "default") props.textColor = textColor;
28733
- const backgroundColor = container.getAttribute("backgroundColor");
28734
- if (typeof backgroundColor === "string" && backgroundColor !== "default") props.backgroundColor = backgroundColor;
29072
+ for (const key of ["textColor", "backgroundColor"]) {
29073
+ if (props[key] === "default") delete props[key];
29074
+ const legacy = container.getAttribute(key);
29075
+ if (props[key] === void 0 && typeof legacy === "string" && legacy !== "default") props[key] = legacy;
29076
+ }
28735
29077
  if (Object.keys(props).length > 0) out.set(blockId, props);
28736
29078
  }
28737
29079
  function adoptDraftShape(yDoc) {
@@ -29116,10 +29458,11 @@ function readBlocksFromFragment(fragment) {
29116
29458
  const content = container.get(0);
29117
29459
  if (!isYXmlElementLike(content)) continue;
29118
29460
  const props = { ...content.getAttributes() };
29119
- const textColor = container.getAttribute("textColor");
29120
- if (typeof textColor === "string" && textColor !== "default") props.textColor = textColor;
29121
- const backgroundColor = container.getAttribute("backgroundColor");
29122
- if (typeof backgroundColor === "string" && backgroundColor !== "default") props.backgroundColor = backgroundColor;
29461
+ for (const key of ["textColor", "backgroundColor"]) {
29462
+ if (props[key] === "default") delete props[key];
29463
+ const legacy = container.getAttribute(key);
29464
+ if (props[key] === void 0 && typeof legacy === "string" && legacy !== "default") props[key] = legacy;
29465
+ }
29123
29466
  blocks.push({ id, type: content.nodeName, props });
29124
29467
  }
29125
29468
  return blocks;
@@ -29136,6 +29479,8 @@ function createBlockContainer(block) {
29136
29479
  blockContent.setAttribute(key, value);
29137
29480
  }
29138
29481
  }
29482
+ if (rawTextColor && rawTextColor !== "default") blockContent.setAttribute("textColor", rawTextColor);
29483
+ if (rawBackgroundColor && rawBackgroundColor !== "default") blockContent.setAttribute("backgroundColor", rawBackgroundColor);
29139
29484
  blockContainer.insert(0, [blockContent]);
29140
29485
  return blockContainer;
29141
29486
  }
@@ -30610,7 +30955,7 @@ function statusWording(status) {
30610
30955
  }
30611
30956
  }
30612
30957
  function topicActionThreadUpdateBody(action, status, semanticRecords) {
30613
- const recordText = semanticRecords.length > 0 ? ` ${semanticRecords.map((record3) => `${record3.displayName}: ${record3.description}`).join(" ")}` : "";
30958
+ const recordText = semanticRecords.length > 0 ? ` ${semanticRecords.map((record4) => `${record4.displayName}: ${record4.description}`).join(" ")}` : "";
30614
30959
  return `${action.displayName} ${statusWording(status)}. ${action.description}${recordText} This update does not change the Topic, contract, outcome, claim, or settlement lifecycle.`;
30615
30960
  }
30616
30961
  function topicActionThreadUpdateId(input) {
@@ -30620,12 +30965,12 @@ function buildTopicActionThreadUpdate(receipt, action, semanticRecords) {
30620
30965
  if (!TERMINAL_STATUSES.has(receipt.status)) return void 0;
30621
30966
  const status = receipt.status;
30622
30967
  const definitions = new Map((action.topic?.semanticRecordTypes || []).map((definition) => [definition.type, definition]));
30623
- const presentedRecords = semanticRecords.map((record3) => {
30624
- const definition = definitions.get(record3.type);
30968
+ const presentedRecords = semanticRecords.map((record4) => {
30969
+ const definition = definitions.get(record4.type);
30625
30970
  return {
30626
- recordId: record3.id,
30627
- type: record3.type,
30628
- version: record3.version,
30971
+ recordId: record4.id,
30972
+ type: record4.type,
30973
+ version: record4.version,
30629
30974
  displayName: definition.displayName,
30630
30975
  description: definition.description
30631
30976
  };
@@ -30980,11 +31325,11 @@ function createFlowAuthorityIndex(options) {
30980
31325
  if (actor === owner) return { decision: await ownerDecision(owner, capability), until: recheck };
30981
31326
  const rootCid = options.delegationStore.getRootCid();
30982
31327
  const candidates = [];
30983
- for (const record3 of options.delegationStore.getAll()) {
30984
- if (record3.cid === rootCid) continue;
30985
- const signed = await audienceOf(record3.cid, record3.delegation);
31328
+ for (const record4 of options.delegationStore.getAll()) {
31329
+ if (record4.cid === rootCid) continue;
31330
+ const signed = await audienceOf(record4.cid, record4.delegation);
30986
31331
  if (!signed || signed.audience !== actor) continue;
30987
- candidates.push({ cid: record3.cid, car: record3.delegation, exact: signed.resources.includes(capability.with) });
31332
+ candidates.push({ cid: record4.cid, car: record4.delegation, exact: signed.resources.includes(capability.with) });
30988
31333
  }
30989
31334
  if (candidates.length === 0) {
30990
31335
  return { decision: { allowed: false, code: "NO_GRANT", reason: "You have not been given this step in this flow." }, until: recheck };
@@ -31047,9 +31392,9 @@ var RESERVED_KEYS = /* @__PURE__ */ new Set(["__root__", "__version__"]);
31047
31392
  function unwrap(value) {
31048
31393
  const plain = value && typeof value.toJSON === "function" ? value.toJSON() : value;
31049
31394
  if (!plain || typeof plain !== "object" || Array.isArray(plain)) return null;
31050
- const record3 = plain;
31051
- const data = record3.data;
31052
- return data && typeof data === "object" && !Array.isArray(data) ? data : record3;
31395
+ const record4 = plain;
31396
+ const data = record4.data;
31397
+ return data && typeof data === "object" && !Array.isArray(data) ? data : record4;
31053
31398
  }
31054
31399
  async function parse(car, cid) {
31055
31400
  if (typeof car !== "string" || !car) return null;
@@ -31083,8 +31428,8 @@ async function censusFlowAuthority(yDoc, creatorDid = flowOwnerOf(yDoc)) {
31083
31428
  const others = /* @__PURE__ */ new Map();
31084
31429
  for (const [cid, raw] of delegations.entries()) {
31085
31430
  if (RESERVED_KEYS.has(cid)) continue;
31086
- const record3 = unwrap(raw);
31087
- const node = await parse(record3?.delegation, cid);
31431
+ const record4 = unwrap(raw);
31432
+ const node = await parse(record4?.delegation, cid);
31088
31433
  if (!node) {
31089
31434
  unsignedRecords += 1;
31090
31435
  continue;
@@ -31203,8 +31548,8 @@ function createReceiptVerifier(options) {
31203
31548
  var import_core4 = require("@ucanto/core");
31204
31549
  var FLOW_AUTHORITY_EVENT_TYPE = "ixo.qi.flow.authority.v1";
31205
31550
  function isRecord6(value) {
31206
- const record3 = value;
31207
- return Boolean(record3 && record3.v === 1 && record3.grant?.car && record3.invocation?.car && record3.action && typeof record3.rootIssuer === "string");
31551
+ const record4 = value;
31552
+ return Boolean(record4 && record4.v === 1 && record4.grant?.car && record4.invocation?.car && record4.action && typeof record4.rootIssuer === "string");
31208
31553
  }
31209
31554
  function authorityEventMatches(content, runId, stepId) {
31210
31555
  return isRecord6(content) && content.action.runId === runId && content.action.stepId === stepId;
@@ -31235,48 +31580,48 @@ async function verifyPortalReceipt(params, receipt, now) {
31235
31580
  return { ...base, ...statusFor(verdict.invocation, verdict.revokedNow, now) };
31236
31581
  }
31237
31582
  async function verifyFlowManagerRecord(params, event, now) {
31238
- const record3 = event.content;
31239
- if (!isRecord6(record3)) return { status: "not-verified", source: "flow-manager-record", reason: "The flow-manager's authority record could not be read." };
31240
- if (normalizeDid(record3.rootIssuer) !== normalizeDid(params.ownerDid)) {
31583
+ const record4 = event.content;
31584
+ if (!isRecord6(record4)) return { status: "not-verified", source: "flow-manager-record", reason: "The flow-manager's authority record could not be read." };
31585
+ if (normalizeDid(record4.rootIssuer) !== normalizeDid(params.ownerDid)) {
31241
31586
  return {
31242
31587
  status: "not-verified",
31243
31588
  source: "flow-manager-record",
31244
- reason: `The flow-manager acted under authority from ${record3.rootIssuer}, who did not create this flow.`
31589
+ reason: `The flow-manager acted under authority from ${record4.rootIssuer}, who did not create this flow.`
31245
31590
  };
31246
31591
  }
31247
31592
  const env = {
31248
31593
  revocationChecker: params.env.revocationChecker,
31249
31594
  didResolver: async (did) => {
31250
31595
  if (did.startsWith("did:key:")) return { ok: [did] };
31251
- const keys = (record3.signers[did] ?? []).filter((key) => key.startsWith("did:key:"));
31596
+ const keys = (record4.signers[did] ?? []).filter((key) => key.startsWith("did:key:"));
31252
31597
  return keys.length > 0 ? { ok: keys } : { error: { name: "DIDKeyResolutionError", did, message: `the record keeps no key for ${did}` } };
31253
31598
  }
31254
31599
  };
31255
- const holder = await holderOf(record3);
31256
- const verdict = await verifyInvocation(record3.invocation.car, {
31257
- cid: record3.invocation.cid,
31600
+ const holder = await holderOf(record4);
31601
+ const verdict = await verifyInvocation(record4.invocation.car, {
31602
+ cid: record4.invocation.cid,
31258
31603
  expectedAudience: holder,
31259
31604
  ownerDid: params.ownerDid,
31260
31605
  actorDid: holder,
31261
- required: { can: record3.action.can, with: record3.action.with },
31606
+ required: { can: record4.action.can, with: record4.action.with },
31262
31607
  expectedFacts: {
31263
- runId: record3.action.runId,
31264
- stepId: record3.action.stepId,
31265
- attemptId: record3.action.attemptId,
31266
- operationId: record3.action.operationId,
31267
- inputDigest: record3.action.inputDigest
31608
+ runId: record4.action.runId,
31609
+ stepId: record4.action.stepId,
31610
+ attemptId: record4.action.attemptId,
31611
+ operationId: record4.action.operationId,
31612
+ inputDigest: record4.action.inputDigest
31268
31613
  },
31269
31614
  env,
31270
31615
  at: event.originServerTs,
31271
- allowBlockExecuteFallback: record3.action.safety !== "fenced"
31616
+ allowBlockExecuteFallback: record4.action.safety !== "fenced"
31272
31617
  });
31273
31618
  if (!verdict.ok) return { status: "not-verified", source: "flow-manager-record", actorDid: holder, reason: verdict.reason };
31274
- if (!verdict.invocation.proofChainCids.includes(record3.grant.cid)) {
31619
+ if (!verdict.invocation.proofChainCids.includes(record4.grant.cid)) {
31275
31620
  return { status: "not-verified", source: "flow-manager-record", actorDid: holder, reason: "The flow-manager did not act under the grant it recorded." };
31276
31621
  }
31277
31622
  let requesterDid;
31278
- if (record3.requester) {
31279
- const requester = await verifyRequester(record3, env, event.originServerTs, params.ownerDid);
31623
+ if (record4.requester) {
31624
+ const requester = await verifyRequester(record4, env, event.originServerTs, params.ownerDid);
31280
31625
  if ("reason" in requester) return { status: "not-verified", source: "flow-manager-record", actorDid: holder, reason: requester.reason };
31281
31626
  requesterDid = requester.did;
31282
31627
  }
@@ -31289,13 +31634,13 @@ async function verifyFlowManagerRecord(params, event, now) {
31289
31634
  ...statusFor(verdict.invocation, verdict.revokedNow, now)
31290
31635
  };
31291
31636
  }
31292
- async function holderOf(record3) {
31293
- const extracted = await import_core4.Delegation.extract(decodeCarBase64(record3.grant.car));
31637
+ async function holderOf(record4) {
31638
+ const extracted = await import_core4.Delegation.extract(decodeCarBase64(record4.grant.car));
31294
31639
  const grant = extracted.ok;
31295
31640
  return grant ? normalizeDid(grant.audience.did()) : "";
31296
31641
  }
31297
- async function verifyRequester(record3, env, fallbackAt, ownerDid) {
31298
- const requester = record3.requester;
31642
+ async function verifyRequester(record4, env, fallbackAt, ownerDid) {
31643
+ const requester = record4.requester;
31299
31644
  const extracted = await import_core4.Delegation.extract(decodeCarBase64(requester.car));
31300
31645
  const node = extracted.ok;
31301
31646
  const claimed = node?.capabilities?.[0];
@@ -31305,7 +31650,7 @@ async function verifyRequester(record3, env, fallbackAt, ownerDid) {
31305
31650
  expectedAudience: node.audience.did(),
31306
31651
  ownerDid,
31307
31652
  required: { can: claimed.can, with: claimed.with },
31308
- expectedFacts: { type: "qi.flow.request", runId: record3.action.runId },
31653
+ expectedFacts: { type: "qi.flow.request", runId: record4.action.runId },
31309
31654
  env,
31310
31655
  // Checked as of when the flow-manager accepted it: a request lives for
31311
31656
  // minutes, the run it started for much longer.
@@ -31744,6 +32089,7 @@ function createOracleInitFlowTemplate() {
31744
32089
  FlowNotMigratedError,
31745
32090
  HistoricalManifestActionContractResolver,
31746
32091
  INVOCATIONS_MAP_KEY,
32092
+ IXO_BLOCK_FENCE,
31747
32093
  InMemoryTopicActionOutboxStore,
31748
32094
  InvalidConditionConfigError,
31749
32095
  LATEST_VERSION,
@@ -31760,6 +32106,7 @@ function createOracleInitFlowTemplate() {
31760
32106
  MatrixRoomFlowEventStore,
31761
32107
  NODE_CONTEXT_MAP_NAME,
31762
32108
  NODE_CONTEXT_OVERRIDES_MAP_NAME,
32109
+ PAGE_FILE_SCHEMA_VERSION,
31763
32110
  PROFESSIONAL_SERVICE_DESIGN_POD_PLAN_V1,
31764
32111
  PROFESSIONAL_SERVICE_METHOD_V1,
31765
32112
  PROOF_MISSING_CODE,
@@ -31806,6 +32153,7 @@ function createOracleInitFlowTemplate() {
31806
32153
  authorityEventMatches,
31807
32154
  bindFlowOwner,
31808
32155
  bindFlowOwnerFromRoom,
32156
+ blocksToPageMarkdown,
31809
32157
  boundRunActionOutput,
31810
32158
  boundRunEventJson,
31811
32159
  buildActionRunInputs,
@@ -31991,6 +32339,9 @@ function createOracleInitFlowTemplate() {
31991
32339
  normalizeConditions,
31992
32340
  normalizeDid,
31993
32341
  oracleInitSurveySchema,
32342
+ pageContentHash,
32343
+ pageDocumentHash,
32344
+ pageMarkdownToBlocks,
31994
32345
  parseConditionConfig,
31995
32346
  parseConditionConfigStrict,
31996
32347
  parseDesignPodOperationalFlow,