@ixo/editor 7.5.2 → 7.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BidConfig-BM2HTDUN.js → BidConfig-UW3SNVWN.js} +10 -10
- package/dist/{BidFlowDetail-FFRVYGVK.js → BidFlowDetail-RBPTJJHO.js} +15 -15
- package/dist/{CalendarEventCreateConfig-QXEH7ZF7.js → CalendarEventCreateConfig-S3IHRO5Z.js} +11 -11
- package/dist/{CalendarEventCreateFlowDetail-7UM5WUAC.js → CalendarEventCreateFlowDetail-KXZBLEMQ.js} +12 -12
- package/dist/{CalendarEventListConfig-GJJHPT3M.js → CalendarEventListConfig-XZGO4BK6.js} +11 -11
- package/dist/{CalendarEventListFlowDetail-Z5IQI3NS.js → CalendarEventListFlowDetail-PJRCX2NR.js} +5 -5
- package/dist/{CalendarEventUpdateConfig-LJDGOAD7.js → CalendarEventUpdateConfig-DV5TTJZZ.js} +11 -11
- package/dist/{CalendarEventUpdateFlowDetail-DRB4NLS3.js → CalendarEventUpdateFlowDetail-TCGSEOBJ.js} +12 -12
- package/dist/{ClaimConfig-DH55KCIR.js → ClaimConfig-FRXNG6K2.js} +10 -10
- package/dist/{ClaimFlowDetail-NCUHS5MU.js → ClaimFlowDetail-WPHPUAXB.js} +15 -15
- package/dist/{CollectionLifecycleConfig-HD6XA6OY.js → CollectionLifecycleConfig-LAPQJHCG.js} +4 -4
- package/dist/{CollectionLifecycleFlowDetail-2SRQUN4V.js → CollectionLifecycleFlowDetail-P63KRR4I.js} +16 -19
- package/dist/CollectionLifecycleFlowDetail-P63KRR4I.js.map +1 -0
- package/dist/{CollectionUsersConfig-HIXNB6L3.js → CollectionUsersConfig-6SXRKETK.js} +10 -10
- package/dist/{CollectionUsersFlowDetail-U3WWINSP.js → CollectionUsersFlowDetail-THGGJI4L.js} +16 -16
- package/dist/{CredentialStoreConfig-KAST7NSD.js → CredentialStoreConfig-YIMQ7EKP.js} +8 -8
- package/dist/{CredentialStoreFlowDetail-GNPMSHLF.js → CredentialStoreFlowDetail-NHXV2PSO.js} +7 -7
- package/dist/{DesignPodFlowDetail-T3FTSR2O.js → DesignPodFlowDetail-BU65AXVH.js} +5 -5
- package/dist/{DomainCardPreviewFlowDetail-4ISRIIY3.js → DomainCardPreviewFlowDetail-ZMSVNT6H.js} +7 -7
- package/dist/{DomainIndexerLookupFlowDetail-3EYHZDCS.js → DomainIndexerLookupFlowDetail-6LWGBCTA.js} +5 -5
- package/dist/{DomainSignFlowDetail-JQNJRVAP.js → DomainSignFlowDetail-ILCET6US.js} +8 -8
- package/dist/{DomainSingleSelectionConfig-XPVPLWSJ.js → DomainSingleSelectionConfig-2FGOSVRU.js} +4 -4
- package/dist/{DomainSingleSelectionFlowDetail-GZH6PDDA.js → DomainSingleSelectionFlowDetail-FWW4IXO7.js} +5 -5
- package/dist/{EmailSendConfig-H5P7FZZC.js → EmailSendConfig-HVFQVHOC.js} +10 -10
- package/dist/{EntityCreateOracleFlowDetail-42XQMSCH.js → EntityCreateOracleFlowDetail-QNT5BIPG.js} +7 -7
- package/dist/{EntitySingleSelectionFlowDetail-LMAZBZYZ.js → EntitySingleSelectionFlowDetail-ILW5UDN4.js} +5 -5
- package/dist/{EntityTransferFlowDetail-ZGUJD6II.js → EntityTransferFlowDetail-CSRBFYRZ.js} +7 -7
- package/dist/{EvalEngineConfig-O3LW7BTN.js → EvalEngineConfig-HWSDGITH.js} +12 -12
- package/dist/{EvalEngineFlowDetail-FQAX4PJ5.js → EvalEngineFlowDetail-4GQH22WZ.js} +11 -14
- package/dist/EvalEngineFlowDetail-4GQH22WZ.js.map +1 -0
- package/dist/{EvaluateBidConfig-I5VAOCPH.js → EvaluateBidConfig-CAVE3CYZ.js} +10 -10
- package/dist/{EvaluateBidFlowDetail-TL2MQHJY.js → EvaluateBidFlowDetail-ZOP4MER6.js} +14 -14
- package/dist/{EvaluateClaimConfig-5OHAY4IZ.js → EvaluateClaimConfig-NIRUEOUX.js} +10 -10
- package/dist/{EvaluateClaimFlowDetail-CAZP7V23.js → EvaluateClaimFlowDetail-RVVQARO2.js} +16 -15
- package/dist/EvaluateClaimFlowDetail-RVVQARO2.js.map +1 -0
- package/dist/{FormSubmitFlowDetail-T3GH5YNF.js → FormSubmitFlowDetail-EWYBQUUG.js} +7 -7
- package/dist/{GovernanceAuthzExecFlowDetail-Y2I2CGPW.js → GovernanceAuthzExecFlowDetail-UZXE5IXT.js} +8 -8
- package/dist/{GovernanceAuthzGrantFlowDetail-BAAGAQX4.js → GovernanceAuthzGrantFlowDetail-L2FOPY4P.js} +9 -9
- package/dist/{GovernanceAuthzRevokeFlowDetail-MDUD4FBH.js → GovernanceAuthzRevokeFlowDetail-QB2CKPEO.js} +9 -9
- package/dist/{GovernanceChainVoteFlowDetail-DPD33EPE.js → GovernanceChainVoteFlowDetail-XKY4HW6Y.js} +8 -8
- package/dist/{GovernanceConfigFlowDetail-QY6UAGNY.js → GovernanceConfigFlowDetail-7CGXIFJ5.js} +5 -5
- package/dist/{GovernanceContractExecuteFlowDetail-VZABB4XR.js → GovernanceContractExecuteFlowDetail-NTJKKA3R.js} +9 -9
- package/dist/{GovernanceContractInstantiateFlowDetail-IRKOOOLV.js → GovernanceContractInstantiateFlowDetail-G7IELIWU.js} +9 -9
- package/dist/{GovernanceContractManageCw20FlowDetail-YWAENYYT.js → GovernanceContractManageCw20FlowDetail-GNI6LPGB.js} +8 -8
- package/dist/{GovernanceContractMigrateFlowDetail-JLW32K7F.js → GovernanceContractMigrateFlowDetail-TYEOHIYU.js} +9 -9
- package/dist/{GovernanceContractUpdateAdminFlowDetail-K77J3D6A.js → GovernanceContractUpdateAdminFlowDetail-J5OOX4RV.js} +8 -8
- package/dist/{GovernanceCustomMessageFlowDetail-346JD2IE.js → GovernanceCustomMessageFlowDetail-5JN67XZC.js} +9 -9
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-H5O7UCKF.js → GovernanceDaoAcceptToMarketplaceFlowDetail-SSNFN2XR.js} +9 -9
- package/dist/{GovernanceDaoAdminExecFlowDetail-6YODDTGX.js → GovernanceDaoAdminExecFlowDetail-5EWVTFFM.js} +10 -10
- package/dist/{GovernanceDaoCreateEntityFlowDetail-QP6MTHQ7.js → GovernanceDaoCreateEntityFlowDetail-EO27DQ2M.js} +9 -9
- package/dist/{GovernanceDaoJoinFlowDetail-BD72QJRT.js → GovernanceDaoJoinFlowDetail-FHCZ6V6O.js} +9 -9
- package/dist/{GovernanceDaoManageStorageFlowDetail-VMGH76Y5.js → GovernanceDaoManageStorageFlowDetail-6722MSHQ.js} +8 -8
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-WOEICKV4.js → GovernanceDaoManageSubDaosFlowDetail-5RQ274FJ.js} +9 -9
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-WD2WHRSI.js → GovernanceDaoUpdateInfoFlowDetail-5AMYI2LC.js} +8 -8
- package/dist/{GovernanceMemberProposalConfig-S6367HIM.js → GovernanceMemberProposalConfig-GRVDV66G.js} +5 -5
- package/dist/{GovernanceMemberProposalFlowDetail-2HUWCHZV.js → GovernanceMemberProposalFlowDetail-KDMUVJSD.js} +9 -9
- package/dist/{GovernanceNftBurnFlowDetail-R4NULXZ4.js → GovernanceNftBurnFlowDetail-ZY55ZAF2.js} +8 -8
- package/dist/{GovernanceNftManageCollectionsFlowDetail-ODEXPF3W.js → GovernanceNftManageCollectionsFlowDetail-TRH4GKN3.js} +8 -8
- package/dist/{GovernanceNftTransferFlowDetail-HNNPNH6J.js → GovernanceNftTransferFlowDetail-HEJ7ZS4B.js} +9 -9
- package/dist/{GovernanceSettingsProposalConfig-N6WVUTSJ.js → GovernanceSettingsProposalConfig-GLWZ6NXR.js} +5 -5
- package/dist/{GovernanceSettingsProposalFlowDetail-VPZ4XNVV.js → GovernanceSettingsProposalFlowDetail-YD6KYILV.js} +8 -8
- package/dist/{GovernanceStakingStakeFlowDetail-6R7WH4LO.js → GovernanceStakingStakeFlowDetail-F2SQM5NI.js} +8 -8
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-HSCQXQLH.js → GovernanceStakingStakeToGroupFlowDetail-AIOX7L7P.js} +8 -8
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-IBYNEDOA.js → GovernanceSubmissionConfigProposalFlowDetail-CA7O3UM7.js} +8 -8
- package/dist/{GovernanceTransactionMintFlowDetail-ZJO6LMQF.js → GovernanceTransactionMintFlowDetail-L2UVWKEF.js} +9 -9
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-EJWXJ36Y.js → GovernanceTransactionPerformTokenSwapFlowDetail-AKTM3XGP.js} +8 -8
- package/dist/{GovernanceTransactionSendFundsConfig-A3U74KXL.js → GovernanceTransactionSendFundsConfig-AN7QDOYE.js} +5 -5
- package/dist/{GovernanceTransactionSendFundsFlowDetail-GY255CPG.js → GovernanceTransactionSendFundsFlowDetail-6F4NRJJ6.js} +9 -9
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-L7NNQJPG.js → GovernanceTransactionSendGroupTokenFlowDetail-H4SOTUDQ.js} +9 -9
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-M2KU45XD.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-TCT6B6FD.js} +8 -8
- package/dist/{GovernanceValidatorActionsFlowDetail-2ILQ3T62.js → GovernanceValidatorActionsFlowDetail-K2XDONO3.js} +8 -8
- package/dist/{HarvestConfig-MQCRQM6E.js → HarvestConfig-JT56JPR3.js} +9 -9
- package/dist/{HarvestFlowDetail-VIKJRHMG.js → HarvestFlowDetail-K5JPYFKW.js} +7 -7
- package/dist/{HttpRequestConfig-24VT44SK.js → HttpRequestConfig-M5E5CGBV.js} +8 -8
- package/dist/{HttpRequestFlowDetail-U4RBHD2Q.js → HttpRequestFlowDetail-S62VF63Q.js} +5 -5
- package/dist/{IdentityCreateFlowDetail-OLD34L5E.js → IdentityCreateFlowDetail-4A7OYRCC.js} +13 -13
- package/dist/{IidCreateFlowDetail-ADX57VHX.js → IidCreateFlowDetail-ZVEM4Q7L.js} +13 -13
- package/dist/{KycVerifyConfig-QKU3GYXH.js → KycVerifyConfig-KTGH3YPY.js} +8 -8
- package/dist/{KycVerifyFlowDetail-TVSOPVEZ.js → KycVerifyFlowDetail-3N4HABDG.js} +13 -13
- package/dist/{ListDomainFlowsFlowDetail-67YOFUZ7.js → ListDomainFlowsFlowDetail-MEQD2KAH.js} +5 -5
- package/dist/{LoadBatchesFlowDetail-B2QFTIB7.js → LoadBatchesFlowDetail-RWU6REAQ.js} +7 -7
- package/dist/{MatrixDmConfig-UIHGX3U5.js → MatrixDmConfig-N73TEAYG.js} +4 -4
- package/dist/{MatrixRegisterFlowDetail-IAOBUWFG.js → MatrixRegisterFlowDetail-7SY3ILTZ.js} +7 -7
- package/dist/{MemberMultiSelectFlowDetail-2UC2DFH3.js → MemberMultiSelectFlowDetail-DZS7UPOI.js} +5 -5
- package/dist/{OracleConfig-RU6N4JBF.js → OracleConfig-BP57HAML.js} +8 -8
- package/dist/{OracleConfigureOracleFlowDetail-MGI425Z2.js → OracleConfigureOracleFlowDetail-4W5XPIGY.js} +13 -13
- package/dist/{OracleContractFlowDetail-TQHZHZ6O.js → OracleContractFlowDetail-TFF27YO7.js} +7 -7
- package/dist/{OracleDeployFlowDetail-TIYCRKM3.js → OracleDeployFlowDetail-M5DJCWRD.js} +7 -7
- package/dist/{OracleDeploySetupFlowDetail-HSK3LECV.js → OracleDeploySetupFlowDetail-DMCBO733.js} +7 -7
- package/dist/{OracleDeployStartFlowDetail-HGP5I2W7.js → OracleDeployStartFlowDetail-S62VNHAV.js} +7 -7
- package/dist/{OracleFlowDetail-6QTNYOFP.js → OracleFlowDetail-RTI7ANL5.js} +7 -7
- package/dist/{OraclePromptFlowDetail-JG27FNSF.js → OraclePromptFlowDetail-OWSDJDXQ.js} +7 -7
- package/dist/{OracleStoreConfigFlowDetail-JJGFRYFK.js → OracleStoreConfigFlowDetail-WTMI4HFO.js} +7 -7
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-OPGHG7J7.js → OracleStoreSecretsAndConfigFlowDetail-IHRWVVNJ.js} +13 -13
- package/dist/{OracleStoreSecretsFlowDetail-XPJ3M2G6.js → OracleStoreSecretsFlowDetail-QY67CA2M.js} +13 -13
- package/dist/{ProposalCreateConfig-IDYWCWAG.js → ProposalCreateConfig-DAGQTOPP.js} +10 -10
- package/dist/{ProposalCreateFlowDetail-SVEFQ5SG.js → ProposalCreateFlowDetail-LVHNJQ4N.js} +14 -14
- package/dist/{ProposalVoteConfig-OWI2HZMF.js → ProposalVoteConfig-BUQ7YOJC.js} +10 -10
- package/dist/{ProposalVoteFlowDetail-HNGDXTO6.js → ProposalVoteFlowDetail-2Z7C7RFW.js} +8 -8
- package/dist/{ProtocolSelectFlowDetail-UE63ED6D.js → ProtocolSelectFlowDetail-OZMEE4BV.js} +4 -4
- package/dist/{RetireConfig-BF2DX5IS.js → RetireConfig-6AJV46OC.js} +9 -9
- package/dist/{RetireFlowDetail-FXLGFRLQ.js → RetireFlowDetail-UD25EOMV.js} +7 -7
- package/dist/{SandboxProvisionFlowDetail-BRFODVZO.js → SandboxProvisionFlowDetail-7XOQBSFP.js} +7 -7
- package/dist/{WalletFundConfig-HEGUGHGH.js → WalletFundConfig-CK7CJC4R.js} +5 -5
- package/dist/{WalletFundFlowDetail-HKDE266V.js → WalletFundFlowDetail-DMVR7GAY.js} +8 -8
- package/dist/{WalletGenerateAndFundFlowDetail-Q5W3HQDO.js → WalletGenerateAndFundFlowDetail-5MXWIE42.js} +5 -5
- package/dist/{WalletGenerateFlowDetail-VAVADRLE.js → WalletGenerateFlowDetail-7RVBITVG.js} +5 -5
- package/dist/{XeroContactCreateConfig-UM4RX6QF.js → XeroContactCreateConfig-VDW36BAD.js} +11 -11
- package/dist/{XeroContactCreateFlowDetail-BIDHUJGJ.js → XeroContactCreateFlowDetail-5NAR3V23.js} +12 -12
- package/dist/{XeroInvoiceCreateConfig-NGFAFMMN.js → XeroInvoiceCreateConfig-3CSPQIRN.js} +11 -11
- package/dist/{XeroInvoiceCreateFlowDetail-N6R4PLOY.js → XeroInvoiceCreateFlowDetail-VHLVN7U4.js} +14 -14
- package/dist/{XeroInvoiceListConfig-WTWZ47HC.js → XeroInvoiceListConfig-765TF5MN.js} +11 -11
- package/dist/{XeroInvoiceListFlowDetail-SCQNZZ23.js → XeroInvoiceListFlowDetail-4SE6SY65.js} +5 -5
- package/dist/{XeroPaymentCreateConfig-ONPADVHN.js → XeroPaymentCreateConfig-FZUOUTU7.js} +8 -8
- package/dist/{XeroPaymentCreateFlowDetail-ZHN6QWBM.js → XeroPaymentCreateFlowDetail-ZUJ7ORJO.js} +13 -13
- package/dist/{chunk-NB5VUHBA.js → chunk-22IUOXHS.js} +2 -2
- package/dist/{chunk-M7XUQCKC.js → chunk-2MF7Z23C.js} +2 -2
- package/dist/{chunk-6S3WBLXO.js → chunk-332C2UBI.js} +2770 -2227
- package/dist/chunk-332C2UBI.js.map +1 -0
- package/dist/{chunk-RZYWBGBY.js → chunk-3IP5TXSM.js} +2 -2
- package/dist/{chunk-H4D6GI5K.js → chunk-3KY2P4GB.js} +2 -2
- package/dist/{chunk-YNDTWBZY.js → chunk-4LPINDS7.js} +2 -2
- package/dist/{chunk-JCI46234.js → chunk-5PDVYGOE.js} +2 -2
- package/dist/{chunk-HPHWYDGB.js → chunk-BLSDMB7H.js} +3 -3
- package/dist/{chunk-QODQ3MCH.js → chunk-CUBGUXJ2.js} +2 -2
- package/dist/{chunk-X5W725D3.js → chunk-CZIGDW25.js} +1 -1
- package/dist/chunk-CZIGDW25.js.map +1 -0
- package/dist/{chunk-QIDYNTJV.js → chunk-DFVUEQRR.js} +3 -3
- package/dist/{chunk-TZ2OESAU.js → chunk-ETUITRYH.js} +2 -2
- package/dist/{chunk-XTZMVZHW.js → chunk-FU3GOBDX.js} +2 -2
- package/dist/{chunk-TGRBWL3B.js → chunk-GH7O4QGO.js} +3 -3
- package/dist/{chunk-UOYPASUI.js → chunk-H2OYJ7T2.js} +2 -2
- package/dist/chunk-H3UJUFQJ.js +344 -0
- package/dist/chunk-H3UJUFQJ.js.map +1 -0
- package/dist/{chunk-MDCOAGIF.js → chunk-HKK2CXCE.js} +6 -6
- package/dist/{chunk-FYPDR7DJ.js → chunk-HNI2BNV4.js} +29 -15
- package/dist/chunk-HNI2BNV4.js.map +1 -0
- package/dist/{chunk-PNS4Y2PQ.js → chunk-JIUHQT5G.js} +2 -2
- package/dist/{chunk-5JEXVSJG.js → chunk-JPOMVC6W.js} +3 -3
- package/dist/{chunk-MFUWKWMA.js → chunk-JUEFMNUL.js} +2 -2
- package/dist/{chunk-6XRJZRJX.js → chunk-JYLF3EOD.js} +3 -3
- package/dist/chunk-JYLF3EOD.js.map +1 -0
- package/dist/{chunk-66XW6TQT.js → chunk-KAU3TGO5.js} +5 -5
- package/dist/{chunk-X5BU6FRG.js → chunk-M2KG76WI.js} +2 -2
- package/dist/{chunk-GA5CI6H2.js → chunk-ND7WSPZB.js} +2 -2
- package/dist/{chunk-LMQT3VUE.js → chunk-NIKTH7CV.js} +2 -2
- package/dist/{chunk-AZGVSR3T.js → chunk-OKKUZIFE.js} +2 -2
- package/dist/{chunk-6KQSIDNF.js → chunk-PBDLX42I.js} +4 -4
- package/dist/{chunk-5OXTR4EW.js → chunk-TP5UUAVZ.js} +5 -5
- package/dist/{chunk-3BEM2G6U.js → chunk-UXYTZ5TQ.js} +2 -2
- package/dist/{chunk-OW5BCFQE.js → chunk-VWGAZF36.js} +2 -2
- package/dist/{chunk-VD4HSZSN.js → chunk-WKOKMWRK.js} +2 -2
- package/dist/{chunk-CGM6D3UB.js → chunk-WYTEIOZH.js} +2 -2
- package/dist/{chunk-QP2DVM4G.js → chunk-Z2YD3WXG.js} +2 -2
- package/dist/{chunk-ELGWSV22.js → chunk-ZBLL3M5Y.js} +2 -2
- package/dist/{connections-Cs5-9hGz.d.ts → connections-Du-QOZB0.d.ts} +1 -1
- package/dist/core/index.cjs +575 -217
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +9 -7
- package/dist/core/index.js +24 -10
- package/dist/core/index.js.map +1 -1
- package/dist/graphql-client-BYr5yPrt.d.ts +536 -0
- package/dist/index-D99iLwsk.d.ts +112 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +21 -21
- package/dist/mantine/index.d.ts +98 -105
- package/dist/mantine/index.js +72 -267
- package/dist/mantine/index.js.map +1 -1
- package/dist/{types-C6MmkH69.d.ts → types-DCBOtXnc.d.ts} +853 -1848
- package/package.json +18 -13
- package/style-core.css +286 -0
- package/style-mantine.css +8856 -19
- package/style-scoped.css +1478 -255
- package/style.css +8856 -19
- package/dist/CollectionLifecycleFlowDetail-2SRQUN4V.js.map +0 -1
- package/dist/EvalEngineFlowDetail-FQAX4PJ5.js.map +0 -1
- package/dist/EvaluateClaimFlowDetail-CAZP7V23.js.map +0 -1
- package/dist/chunk-6S3WBLXO.js.map +0 -1
- package/dist/chunk-6XRJZRJX.js.map +0 -1
- package/dist/chunk-FYPDR7DJ.js.map +0 -1
- package/dist/chunk-X5W725D3.js.map +0 -1
- package/dist/graphql-client-BanLWXV8.d.ts +0 -766
- package/dist/nodeContext-CV9D4s3X.d.ts +0 -45
- /package/dist/{BidConfig-BM2HTDUN.js.map → BidConfig-UW3SNVWN.js.map} +0 -0
- /package/dist/{BidFlowDetail-FFRVYGVK.js.map → BidFlowDetail-RBPTJJHO.js.map} +0 -0
- /package/dist/{CalendarEventCreateConfig-QXEH7ZF7.js.map → CalendarEventCreateConfig-S3IHRO5Z.js.map} +0 -0
- /package/dist/{CalendarEventCreateFlowDetail-7UM5WUAC.js.map → CalendarEventCreateFlowDetail-KXZBLEMQ.js.map} +0 -0
- /package/dist/{CalendarEventListConfig-GJJHPT3M.js.map → CalendarEventListConfig-XZGO4BK6.js.map} +0 -0
- /package/dist/{CalendarEventListFlowDetail-Z5IQI3NS.js.map → CalendarEventListFlowDetail-PJRCX2NR.js.map} +0 -0
- /package/dist/{CalendarEventUpdateConfig-LJDGOAD7.js.map → CalendarEventUpdateConfig-DV5TTJZZ.js.map} +0 -0
- /package/dist/{CalendarEventUpdateFlowDetail-DRB4NLS3.js.map → CalendarEventUpdateFlowDetail-TCGSEOBJ.js.map} +0 -0
- /package/dist/{ClaimConfig-DH55KCIR.js.map → ClaimConfig-FRXNG6K2.js.map} +0 -0
- /package/dist/{ClaimFlowDetail-NCUHS5MU.js.map → ClaimFlowDetail-WPHPUAXB.js.map} +0 -0
- /package/dist/{CollectionLifecycleConfig-HD6XA6OY.js.map → CollectionLifecycleConfig-LAPQJHCG.js.map} +0 -0
- /package/dist/{CollectionUsersConfig-HIXNB6L3.js.map → CollectionUsersConfig-6SXRKETK.js.map} +0 -0
- /package/dist/{CollectionUsersFlowDetail-U3WWINSP.js.map → CollectionUsersFlowDetail-THGGJI4L.js.map} +0 -0
- /package/dist/{CredentialStoreConfig-KAST7NSD.js.map → CredentialStoreConfig-YIMQ7EKP.js.map} +0 -0
- /package/dist/{CredentialStoreFlowDetail-GNPMSHLF.js.map → CredentialStoreFlowDetail-NHXV2PSO.js.map} +0 -0
- /package/dist/{DesignPodFlowDetail-T3FTSR2O.js.map → DesignPodFlowDetail-BU65AXVH.js.map} +0 -0
- /package/dist/{DomainCardPreviewFlowDetail-4ISRIIY3.js.map → DomainCardPreviewFlowDetail-ZMSVNT6H.js.map} +0 -0
- /package/dist/{DomainIndexerLookupFlowDetail-3EYHZDCS.js.map → DomainIndexerLookupFlowDetail-6LWGBCTA.js.map} +0 -0
- /package/dist/{DomainSignFlowDetail-JQNJRVAP.js.map → DomainSignFlowDetail-ILCET6US.js.map} +0 -0
- /package/dist/{DomainSingleSelectionConfig-XPVPLWSJ.js.map → DomainSingleSelectionConfig-2FGOSVRU.js.map} +0 -0
- /package/dist/{DomainSingleSelectionFlowDetail-GZH6PDDA.js.map → DomainSingleSelectionFlowDetail-FWW4IXO7.js.map} +0 -0
- /package/dist/{EmailSendConfig-H5P7FZZC.js.map → EmailSendConfig-HVFQVHOC.js.map} +0 -0
- /package/dist/{EntityCreateOracleFlowDetail-42XQMSCH.js.map → EntityCreateOracleFlowDetail-QNT5BIPG.js.map} +0 -0
- /package/dist/{EntitySingleSelectionFlowDetail-LMAZBZYZ.js.map → EntitySingleSelectionFlowDetail-ILW5UDN4.js.map} +0 -0
- /package/dist/{EntityTransferFlowDetail-ZGUJD6II.js.map → EntityTransferFlowDetail-CSRBFYRZ.js.map} +0 -0
- /package/dist/{EvalEngineConfig-O3LW7BTN.js.map → EvalEngineConfig-HWSDGITH.js.map} +0 -0
- /package/dist/{EvaluateBidConfig-I5VAOCPH.js.map → EvaluateBidConfig-CAVE3CYZ.js.map} +0 -0
- /package/dist/{EvaluateBidFlowDetail-TL2MQHJY.js.map → EvaluateBidFlowDetail-ZOP4MER6.js.map} +0 -0
- /package/dist/{EvaluateClaimConfig-5OHAY4IZ.js.map → EvaluateClaimConfig-NIRUEOUX.js.map} +0 -0
- /package/dist/{FormSubmitFlowDetail-T3GH5YNF.js.map → FormSubmitFlowDetail-EWYBQUUG.js.map} +0 -0
- /package/dist/{GovernanceAuthzExecFlowDetail-Y2I2CGPW.js.map → GovernanceAuthzExecFlowDetail-UZXE5IXT.js.map} +0 -0
- /package/dist/{GovernanceAuthzGrantFlowDetail-BAAGAQX4.js.map → GovernanceAuthzGrantFlowDetail-L2FOPY4P.js.map} +0 -0
- /package/dist/{GovernanceAuthzRevokeFlowDetail-MDUD4FBH.js.map → GovernanceAuthzRevokeFlowDetail-QB2CKPEO.js.map} +0 -0
- /package/dist/{GovernanceChainVoteFlowDetail-DPD33EPE.js.map → GovernanceChainVoteFlowDetail-XKY4HW6Y.js.map} +0 -0
- /package/dist/{GovernanceConfigFlowDetail-QY6UAGNY.js.map → GovernanceConfigFlowDetail-7CGXIFJ5.js.map} +0 -0
- /package/dist/{GovernanceContractExecuteFlowDetail-VZABB4XR.js.map → GovernanceContractExecuteFlowDetail-NTJKKA3R.js.map} +0 -0
- /package/dist/{GovernanceContractInstantiateFlowDetail-IRKOOOLV.js.map → GovernanceContractInstantiateFlowDetail-G7IELIWU.js.map} +0 -0
- /package/dist/{GovernanceContractManageCw20FlowDetail-YWAENYYT.js.map → GovernanceContractManageCw20FlowDetail-GNI6LPGB.js.map} +0 -0
- /package/dist/{GovernanceContractMigrateFlowDetail-JLW32K7F.js.map → GovernanceContractMigrateFlowDetail-TYEOHIYU.js.map} +0 -0
- /package/dist/{GovernanceContractUpdateAdminFlowDetail-K77J3D6A.js.map → GovernanceContractUpdateAdminFlowDetail-J5OOX4RV.js.map} +0 -0
- /package/dist/{GovernanceCustomMessageFlowDetail-346JD2IE.js.map → GovernanceCustomMessageFlowDetail-5JN67XZC.js.map} +0 -0
- /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-H5O7UCKF.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-SSNFN2XR.js.map} +0 -0
- /package/dist/{GovernanceDaoAdminExecFlowDetail-6YODDTGX.js.map → GovernanceDaoAdminExecFlowDetail-5EWVTFFM.js.map} +0 -0
- /package/dist/{GovernanceDaoCreateEntityFlowDetail-QP6MTHQ7.js.map → GovernanceDaoCreateEntityFlowDetail-EO27DQ2M.js.map} +0 -0
- /package/dist/{GovernanceDaoJoinFlowDetail-BD72QJRT.js.map → GovernanceDaoJoinFlowDetail-FHCZ6V6O.js.map} +0 -0
- /package/dist/{GovernanceDaoManageStorageFlowDetail-VMGH76Y5.js.map → GovernanceDaoManageStorageFlowDetail-6722MSHQ.js.map} +0 -0
- /package/dist/{GovernanceDaoManageSubDaosFlowDetail-WOEICKV4.js.map → GovernanceDaoManageSubDaosFlowDetail-5RQ274FJ.js.map} +0 -0
- /package/dist/{GovernanceDaoUpdateInfoFlowDetail-WD2WHRSI.js.map → GovernanceDaoUpdateInfoFlowDetail-5AMYI2LC.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalConfig-S6367HIM.js.map → GovernanceMemberProposalConfig-GRVDV66G.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalFlowDetail-2HUWCHZV.js.map → GovernanceMemberProposalFlowDetail-KDMUVJSD.js.map} +0 -0
- /package/dist/{GovernanceNftBurnFlowDetail-R4NULXZ4.js.map → GovernanceNftBurnFlowDetail-ZY55ZAF2.js.map} +0 -0
- /package/dist/{GovernanceNftManageCollectionsFlowDetail-ODEXPF3W.js.map → GovernanceNftManageCollectionsFlowDetail-TRH4GKN3.js.map} +0 -0
- /package/dist/{GovernanceNftTransferFlowDetail-HNNPNH6J.js.map → GovernanceNftTransferFlowDetail-HEJ7ZS4B.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalConfig-N6WVUTSJ.js.map → GovernanceSettingsProposalConfig-GLWZ6NXR.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalFlowDetail-VPZ4XNVV.js.map → GovernanceSettingsProposalFlowDetail-YD6KYILV.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeFlowDetail-6R7WH4LO.js.map → GovernanceStakingStakeFlowDetail-F2SQM5NI.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeToGroupFlowDetail-HSCQXQLH.js.map → GovernanceStakingStakeToGroupFlowDetail-AIOX7L7P.js.map} +0 -0
- /package/dist/{GovernanceSubmissionConfigProposalFlowDetail-IBYNEDOA.js.map → GovernanceSubmissionConfigProposalFlowDetail-CA7O3UM7.js.map} +0 -0
- /package/dist/{GovernanceTransactionMintFlowDetail-ZJO6LMQF.js.map → GovernanceTransactionMintFlowDetail-L2UVWKEF.js.map} +0 -0
- /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-EJWXJ36Y.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-AKTM3XGP.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsConfig-A3U74KXL.js.map → GovernanceTransactionSendFundsConfig-AN7QDOYE.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsFlowDetail-GY255CPG.js.map → GovernanceTransactionSendFundsFlowDetail-6F4NRJJ6.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-L7NNQJPG.js.map → GovernanceTransactionSendGroupTokenFlowDetail-H4SOTUDQ.js.map} +0 -0
- /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-M2KU45XD.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-TCT6B6FD.js.map} +0 -0
- /package/dist/{GovernanceValidatorActionsFlowDetail-2ILQ3T62.js.map → GovernanceValidatorActionsFlowDetail-K2XDONO3.js.map} +0 -0
- /package/dist/{HarvestConfig-MQCRQM6E.js.map → HarvestConfig-JT56JPR3.js.map} +0 -0
- /package/dist/{HarvestFlowDetail-VIKJRHMG.js.map → HarvestFlowDetail-K5JPYFKW.js.map} +0 -0
- /package/dist/{HttpRequestConfig-24VT44SK.js.map → HttpRequestConfig-M5E5CGBV.js.map} +0 -0
- /package/dist/{HttpRequestFlowDetail-U4RBHD2Q.js.map → HttpRequestFlowDetail-S62VF63Q.js.map} +0 -0
- /package/dist/{IdentityCreateFlowDetail-OLD34L5E.js.map → IdentityCreateFlowDetail-4A7OYRCC.js.map} +0 -0
- /package/dist/{IidCreateFlowDetail-ADX57VHX.js.map → IidCreateFlowDetail-ZVEM4Q7L.js.map} +0 -0
- /package/dist/{KycVerifyConfig-QKU3GYXH.js.map → KycVerifyConfig-KTGH3YPY.js.map} +0 -0
- /package/dist/{KycVerifyFlowDetail-TVSOPVEZ.js.map → KycVerifyFlowDetail-3N4HABDG.js.map} +0 -0
- /package/dist/{ListDomainFlowsFlowDetail-67YOFUZ7.js.map → ListDomainFlowsFlowDetail-MEQD2KAH.js.map} +0 -0
- /package/dist/{LoadBatchesFlowDetail-B2QFTIB7.js.map → LoadBatchesFlowDetail-RWU6REAQ.js.map} +0 -0
- /package/dist/{MatrixDmConfig-UIHGX3U5.js.map → MatrixDmConfig-N73TEAYG.js.map} +0 -0
- /package/dist/{MatrixRegisterFlowDetail-IAOBUWFG.js.map → MatrixRegisterFlowDetail-7SY3ILTZ.js.map} +0 -0
- /package/dist/{MemberMultiSelectFlowDetail-2UC2DFH3.js.map → MemberMultiSelectFlowDetail-DZS7UPOI.js.map} +0 -0
- /package/dist/{OracleConfig-RU6N4JBF.js.map → OracleConfig-BP57HAML.js.map} +0 -0
- /package/dist/{OracleConfigureOracleFlowDetail-MGI425Z2.js.map → OracleConfigureOracleFlowDetail-4W5XPIGY.js.map} +0 -0
- /package/dist/{OracleContractFlowDetail-TQHZHZ6O.js.map → OracleContractFlowDetail-TFF27YO7.js.map} +0 -0
- /package/dist/{OracleDeployFlowDetail-TIYCRKM3.js.map → OracleDeployFlowDetail-M5DJCWRD.js.map} +0 -0
- /package/dist/{OracleDeploySetupFlowDetail-HSK3LECV.js.map → OracleDeploySetupFlowDetail-DMCBO733.js.map} +0 -0
- /package/dist/{OracleDeployStartFlowDetail-HGP5I2W7.js.map → OracleDeployStartFlowDetail-S62VNHAV.js.map} +0 -0
- /package/dist/{OracleFlowDetail-6QTNYOFP.js.map → OracleFlowDetail-RTI7ANL5.js.map} +0 -0
- /package/dist/{OraclePromptFlowDetail-JG27FNSF.js.map → OraclePromptFlowDetail-OWSDJDXQ.js.map} +0 -0
- /package/dist/{OracleStoreConfigFlowDetail-JJGFRYFK.js.map → OracleStoreConfigFlowDetail-WTMI4HFO.js.map} +0 -0
- /package/dist/{OracleStoreSecretsAndConfigFlowDetail-OPGHG7J7.js.map → OracleStoreSecretsAndConfigFlowDetail-IHRWVVNJ.js.map} +0 -0
- /package/dist/{OracleStoreSecretsFlowDetail-XPJ3M2G6.js.map → OracleStoreSecretsFlowDetail-QY67CA2M.js.map} +0 -0
- /package/dist/{ProposalCreateConfig-IDYWCWAG.js.map → ProposalCreateConfig-DAGQTOPP.js.map} +0 -0
- /package/dist/{ProposalCreateFlowDetail-SVEFQ5SG.js.map → ProposalCreateFlowDetail-LVHNJQ4N.js.map} +0 -0
- /package/dist/{ProposalVoteConfig-OWI2HZMF.js.map → ProposalVoteConfig-BUQ7YOJC.js.map} +0 -0
- /package/dist/{ProposalVoteFlowDetail-HNGDXTO6.js.map → ProposalVoteFlowDetail-2Z7C7RFW.js.map} +0 -0
- /package/dist/{ProtocolSelectFlowDetail-UE63ED6D.js.map → ProtocolSelectFlowDetail-OZMEE4BV.js.map} +0 -0
- /package/dist/{RetireConfig-BF2DX5IS.js.map → RetireConfig-6AJV46OC.js.map} +0 -0
- /package/dist/{RetireFlowDetail-FXLGFRLQ.js.map → RetireFlowDetail-UD25EOMV.js.map} +0 -0
- /package/dist/{SandboxProvisionFlowDetail-BRFODVZO.js.map → SandboxProvisionFlowDetail-7XOQBSFP.js.map} +0 -0
- /package/dist/{WalletFundConfig-HEGUGHGH.js.map → WalletFundConfig-CK7CJC4R.js.map} +0 -0
- /package/dist/{WalletFundFlowDetail-HKDE266V.js.map → WalletFundFlowDetail-DMVR7GAY.js.map} +0 -0
- /package/dist/{WalletGenerateAndFundFlowDetail-Q5W3HQDO.js.map → WalletGenerateAndFundFlowDetail-5MXWIE42.js.map} +0 -0
- /package/dist/{WalletGenerateFlowDetail-VAVADRLE.js.map → WalletGenerateFlowDetail-7RVBITVG.js.map} +0 -0
- /package/dist/{XeroContactCreateConfig-UM4RX6QF.js.map → XeroContactCreateConfig-VDW36BAD.js.map} +0 -0
- /package/dist/{XeroContactCreateFlowDetail-BIDHUJGJ.js.map → XeroContactCreateFlowDetail-5NAR3V23.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateConfig-NGFAFMMN.js.map → XeroInvoiceCreateConfig-3CSPQIRN.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateFlowDetail-N6R4PLOY.js.map → XeroInvoiceCreateFlowDetail-VHLVN7U4.js.map} +0 -0
- /package/dist/{XeroInvoiceListConfig-WTWZ47HC.js.map → XeroInvoiceListConfig-765TF5MN.js.map} +0 -0
- /package/dist/{XeroInvoiceListFlowDetail-SCQNZZ23.js.map → XeroInvoiceListFlowDetail-4SE6SY65.js.map} +0 -0
- /package/dist/{XeroPaymentCreateConfig-ONPADVHN.js.map → XeroPaymentCreateConfig-FZUOUTU7.js.map} +0 -0
- /package/dist/{XeroPaymentCreateFlowDetail-ZHN6QWBM.js.map → XeroPaymentCreateFlowDetail-ZUJ7ORJO.js.map} +0 -0
- /package/dist/{chunk-NB5VUHBA.js.map → chunk-22IUOXHS.js.map} +0 -0
- /package/dist/{chunk-M7XUQCKC.js.map → chunk-2MF7Z23C.js.map} +0 -0
- /package/dist/{chunk-RZYWBGBY.js.map → chunk-3IP5TXSM.js.map} +0 -0
- /package/dist/{chunk-H4D6GI5K.js.map → chunk-3KY2P4GB.js.map} +0 -0
- /package/dist/{chunk-YNDTWBZY.js.map → chunk-4LPINDS7.js.map} +0 -0
- /package/dist/{chunk-JCI46234.js.map → chunk-5PDVYGOE.js.map} +0 -0
- /package/dist/{chunk-HPHWYDGB.js.map → chunk-BLSDMB7H.js.map} +0 -0
- /package/dist/{chunk-QODQ3MCH.js.map → chunk-CUBGUXJ2.js.map} +0 -0
- /package/dist/{chunk-QIDYNTJV.js.map → chunk-DFVUEQRR.js.map} +0 -0
- /package/dist/{chunk-TZ2OESAU.js.map → chunk-ETUITRYH.js.map} +0 -0
- /package/dist/{chunk-XTZMVZHW.js.map → chunk-FU3GOBDX.js.map} +0 -0
- /package/dist/{chunk-TGRBWL3B.js.map → chunk-GH7O4QGO.js.map} +0 -0
- /package/dist/{chunk-UOYPASUI.js.map → chunk-H2OYJ7T2.js.map} +0 -0
- /package/dist/{chunk-MDCOAGIF.js.map → chunk-HKK2CXCE.js.map} +0 -0
- /package/dist/{chunk-PNS4Y2PQ.js.map → chunk-JIUHQT5G.js.map} +0 -0
- /package/dist/{chunk-5JEXVSJG.js.map → chunk-JPOMVC6W.js.map} +0 -0
- /package/dist/{chunk-MFUWKWMA.js.map → chunk-JUEFMNUL.js.map} +0 -0
- /package/dist/{chunk-66XW6TQT.js.map → chunk-KAU3TGO5.js.map} +0 -0
- /package/dist/{chunk-X5BU6FRG.js.map → chunk-M2KG76WI.js.map} +0 -0
- /package/dist/{chunk-GA5CI6H2.js.map → chunk-ND7WSPZB.js.map} +0 -0
- /package/dist/{chunk-LMQT3VUE.js.map → chunk-NIKTH7CV.js.map} +0 -0
- /package/dist/{chunk-AZGVSR3T.js.map → chunk-OKKUZIFE.js.map} +0 -0
- /package/dist/{chunk-6KQSIDNF.js.map → chunk-PBDLX42I.js.map} +0 -0
- /package/dist/{chunk-5OXTR4EW.js.map → chunk-TP5UUAVZ.js.map} +0 -0
- /package/dist/{chunk-3BEM2G6U.js.map → chunk-UXYTZ5TQ.js.map} +0 -0
- /package/dist/{chunk-OW5BCFQE.js.map → chunk-VWGAZF36.js.map} +0 -0
- /package/dist/{chunk-VD4HSZSN.js.map → chunk-WKOKMWRK.js.map} +0 -0
- /package/dist/{chunk-CGM6D3UB.js.map → chunk-WYTEIOZH.js.map} +0 -0
- /package/dist/{chunk-QP2DVM4G.js.map → chunk-Z2YD3WXG.js.map} +0 -0
- /package/dist/{chunk-ELGWSV22.js.map → chunk-ZBLL3M5Y.js.map} +0 -0
package/dist/core/index.cjs
CHANGED
|
@@ -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(
|
|
1196
|
-
if (!
|
|
1197
|
-
const candidate =
|
|
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
|
|
1220
|
-
const validation = validateTopicSemanticRecord(
|
|
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
|
|
2419
|
-
if (["resolved", "accepted_for_later", "blocking"].includes(
|
|
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((
|
|
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,
|
|
2642
|
-
if (
|
|
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:
|
|
2647
|
-
previousDigest:
|
|
2648
|
-
eventType:
|
|
2649
|
-
payloadDigest:
|
|
2650
|
-
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 (
|
|
2653
|
-
payloadDigests.add(
|
|
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
|
|
2814
|
-
if (!
|
|
2815
|
-
if (
|
|
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:
|
|
2819
|
-
if (
|
|
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
|
-
|
|
2829
|
+
record4.proof,
|
|
2824
2830
|
{
|
|
2825
|
-
actorDid:
|
|
2831
|
+
actorDid: record4.updatedByDid,
|
|
2826
2832
|
actionType: "qi/blueprint.checklist-update",
|
|
2827
|
-
inputs: governedInputs(state, { itemId:
|
|
2833
|
+
inputs: governedInputs(state, { itemId: record4.itemId, disposition: record4.disposition })
|
|
2828
2834
|
},
|
|
2829
2835
|
options.authority,
|
|
2830
2836
|
options.verifyInvocation
|
|
2831
2837
|
);
|
|
2832
|
-
if (
|
|
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
|
|
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 (!
|
|
3272
|
-
const clear = await crypto.subtle.decrypt({ name: "AES-GCM", iv: new Uint8Array(
|
|
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:
|
|
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
|
|
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
|
|
4120
|
-
if (
|
|
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
|
|
4262
|
-
if (!
|
|
4263
|
-
if (
|
|
4264
|
-
if (
|
|
4265
|
-
const sourceRunIdField =
|
|
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:
|
|
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
|
|
6095
|
-
if (
|
|
6096
|
-
const 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
|
|
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}`,
|
|
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
|
|
9711
|
-
if (!
|
|
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
|
-
...
|
|
9717
|
-
...
|
|
9718
|
-
...
|
|
9719
|
-
completedAt:
|
|
9720
|
-
...
|
|
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
|
|
9916
|
-
if (isSettledStatus(
|
|
9917
|
-
if (
|
|
9918
|
-
if (isSettledStatus(
|
|
9919
|
-
const payments =
|
|
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
|
|
9932
|
-
const 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 =
|
|
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
|
|
10790
|
-
const protocolDid = String(
|
|
10791
|
-
const sourceRoomId = String(
|
|
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(
|
|
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
|
|
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 =
|
|
11661
|
-
const minimumAvailable =
|
|
11662
|
-
const 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:
|
|
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 =
|
|
11781
|
-
const issuer = typeof credential.issuer === "string" ? requiredString2(credential.issuer, "credential.issuer") : requiredString2(
|
|
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(
|
|
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:
|
|
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 =
|
|
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 :
|
|
11957
|
-
const outcomeBuyer = inputs.outcomeBuyer === void 0 ? void 0 :
|
|
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 =
|
|
12012
|
-
const issuer = typeof credential.issuer === "string" ? requiredString2(credential.issuer, "credential.issuer") : requiredString2(
|
|
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
|
|
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" :
|
|
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)}:${
|
|
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 =
|
|
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:
|
|
17460
|
-
return { output: { recordId:
|
|
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
|
|
20502
|
-
const trust = runRecordTrust(
|
|
20842
|
+
for (const record4 of records) {
|
|
20843
|
+
const trust = runRecordTrust(record4, sourceBlockId, invocationsMap, receipts);
|
|
20503
20844
|
if (trust === "pending") {
|
|
20504
|
-
const invocation = invocationsMap.get(
|
|
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,
|
|
20510
|
-
processBarrierRunRecord(yDoc, runId, sourceBlockId,
|
|
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(
|
|
20567
|
-
if (!
|
|
20568
|
-
const invocation = invocationsMap.get(
|
|
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,
|
|
20575
|
-
if (!Array.isArray(
|
|
20576
|
-
|
|
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:
|
|
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,
|
|
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:
|
|
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:
|
|
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
|
-
...
|
|
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,
|
|
20622
|
-
if (!Array.isArray(
|
|
20623
|
-
for (const event of
|
|
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:
|
|
20976
|
+
runId: record4.runId,
|
|
20636
20977
|
sessionRunId: runId,
|
|
20637
20978
|
payload: event.payload || {},
|
|
20638
|
-
emittedAt:
|
|
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,
|
|
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:
|
|
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:
|
|
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
|
-
...
|
|
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,
|
|
20960
|
-
yDoc.getMap(FLOW_REQUESTS_MAP_KEY).set(
|
|
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((
|
|
20965
|
-
if (!found &&
|
|
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
|
|
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,
|
|
20998
|
-
resetActionState(yDoc, params.runId, params.stepId, { state: "idle", requestId:
|
|
21338
|
+
writeFlowRequest(yDoc, record4);
|
|
21339
|
+
resetActionState(yDoc, params.runId, params.stepId, { state: "idle", requestId: record4.requestId });
|
|
20999
21340
|
});
|
|
21000
|
-
return
|
|
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(
|
|
24168
|
-
if (
|
|
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 (
|
|
24512
|
+
if (record4.leaseExpiresAt <= now) throw new EffectClaimTransitionError("STALE_FENCE", "Effect claim lease has expired");
|
|
24172
24513
|
}
|
|
24173
|
-
function renewEffectClaim(
|
|
24174
|
-
assertFence(
|
|
24175
|
-
if (
|
|
24176
|
-
return { ...
|
|
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(
|
|
24179
|
-
assertFence(
|
|
24180
|
-
if (
|
|
24181
|
-
if (
|
|
24182
|
-
return { ...
|
|
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(
|
|
24185
|
-
assertFence(
|
|
24186
|
-
if (
|
|
24187
|
-
if (
|
|
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
|
|
24531
|
+
return record4;
|
|
24191
24532
|
}
|
|
24192
|
-
if (
|
|
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 ??
|
|
24536
|
+
const nextCorrelation = providerCorrelation ?? record4.providerCorrelation;
|
|
24196
24537
|
return {
|
|
24197
|
-
...
|
|
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(
|
|
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 (
|
|
24210
|
-
const expectedCorrelation = providerCorrelation ??
|
|
24211
|
-
const sameCorrelation =
|
|
24212
|
-
const sameSuccess = outcome !== "succeeded" ||
|
|
24213
|
-
if (
|
|
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(
|
|
24217
|
-
if (outcome === "failed_before_effect" &&
|
|
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" && (
|
|
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 ??
|
|
24567
|
+
const nextCorrelation = providerCorrelation ?? record4.providerCorrelation;
|
|
24227
24568
|
return {
|
|
24228
|
-
...
|
|
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(
|
|
24236
|
-
assertFence(
|
|
24237
|
-
if (
|
|
24238
|
-
if (
|
|
24239
|
-
const nextCorrelation = providerCorrelation ??
|
|
24240
|
-
return { ...
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
25552
|
+
for (const record4 of await outbox.pending(limit)) {
|
|
25212
25553
|
try {
|
|
25213
25554
|
const delivered = await delivery.deliver({
|
|
25214
|
-
receiptId:
|
|
25215
|
-
receiptDigest:
|
|
25216
|
-
canonicalReceipt:
|
|
25555
|
+
receiptId: record4.receiptId,
|
|
25556
|
+
receiptDigest: record4.receiptDigest,
|
|
25557
|
+
canonicalReceipt: record4.canonicalReceipt
|
|
25217
25558
|
});
|
|
25218
|
-
await outbox.markDelivered(
|
|
25219
|
-
outcomes.push({ receiptId:
|
|
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:
|
|
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
|
|
26309
|
-
return Object.entries(expected).every(([key, value]) => JSON.stringify(
|
|
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
|
|
28171
|
-
return typeof
|
|
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
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
|
|
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
|
|
29120
|
-
|
|
29121
|
-
|
|
29122
|
-
|
|
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
|
}
|
|
@@ -29415,6 +29760,14 @@ async function writeFlowIdentity(client, roomId, docId, options = {}) {
|
|
|
29415
29760
|
return "written";
|
|
29416
29761
|
}
|
|
29417
29762
|
|
|
29763
|
+
// src/core/lib/headlessClient.ts
|
|
29764
|
+
function applyHeadlessClientDefaults(client) {
|
|
29765
|
+
const settings = client;
|
|
29766
|
+
if (settings.clientOpts !== void 0) return;
|
|
29767
|
+
settings.canSupportVoip = false;
|
|
29768
|
+
settings.clientOpts = { lazyLoadMembers: true };
|
|
29769
|
+
}
|
|
29770
|
+
|
|
29418
29771
|
// src/core/lib/flowCompiler/setup.ts
|
|
29419
29772
|
async function readFlowAsBaseUcan(options) {
|
|
29420
29773
|
const { roomId, matrixClient } = options;
|
|
@@ -29532,8 +29885,7 @@ function applyFlowPlanToYDoc(yDoc, options) {
|
|
|
29532
29885
|
async function connectToRoom(roomId, matrixClient, options) {
|
|
29533
29886
|
const yDoc = new Y9.Doc();
|
|
29534
29887
|
const client = matrixClient;
|
|
29535
|
-
client
|
|
29536
|
-
client.clientOpts = { lazyLoadMembers: true };
|
|
29888
|
+
applyHeadlessClientDefaults(client);
|
|
29537
29889
|
const provider = new import_matrix_crdt2.MatrixProvider(
|
|
29538
29890
|
yDoc,
|
|
29539
29891
|
client,
|
|
@@ -30610,7 +30962,7 @@ function statusWording(status) {
|
|
|
30610
30962
|
}
|
|
30611
30963
|
}
|
|
30612
30964
|
function topicActionThreadUpdateBody(action, status, semanticRecords) {
|
|
30613
|
-
const recordText = semanticRecords.length > 0 ? ` ${semanticRecords.map((
|
|
30965
|
+
const recordText = semanticRecords.length > 0 ? ` ${semanticRecords.map((record4) => `${record4.displayName}: ${record4.description}`).join(" ")}` : "";
|
|
30614
30966
|
return `${action.displayName} ${statusWording(status)}. ${action.description}${recordText} This update does not change the Topic, contract, outcome, claim, or settlement lifecycle.`;
|
|
30615
30967
|
}
|
|
30616
30968
|
function topicActionThreadUpdateId(input) {
|
|
@@ -30620,12 +30972,12 @@ function buildTopicActionThreadUpdate(receipt, action, semanticRecords) {
|
|
|
30620
30972
|
if (!TERMINAL_STATUSES.has(receipt.status)) return void 0;
|
|
30621
30973
|
const status = receipt.status;
|
|
30622
30974
|
const definitions = new Map((action.topic?.semanticRecordTypes || []).map((definition) => [definition.type, definition]));
|
|
30623
|
-
const presentedRecords = semanticRecords.map((
|
|
30624
|
-
const definition = definitions.get(
|
|
30975
|
+
const presentedRecords = semanticRecords.map((record4) => {
|
|
30976
|
+
const definition = definitions.get(record4.type);
|
|
30625
30977
|
return {
|
|
30626
|
-
recordId:
|
|
30627
|
-
type:
|
|
30628
|
-
version:
|
|
30978
|
+
recordId: record4.id,
|
|
30979
|
+
type: record4.type,
|
|
30980
|
+
version: record4.version,
|
|
30629
30981
|
displayName: definition.displayName,
|
|
30630
30982
|
description: definition.description
|
|
30631
30983
|
};
|
|
@@ -30980,11 +31332,11 @@ function createFlowAuthorityIndex(options) {
|
|
|
30980
31332
|
if (actor === owner) return { decision: await ownerDecision(owner, capability), until: recheck };
|
|
30981
31333
|
const rootCid = options.delegationStore.getRootCid();
|
|
30982
31334
|
const candidates = [];
|
|
30983
|
-
for (const
|
|
30984
|
-
if (
|
|
30985
|
-
const signed = await audienceOf(
|
|
31335
|
+
for (const record4 of options.delegationStore.getAll()) {
|
|
31336
|
+
if (record4.cid === rootCid) continue;
|
|
31337
|
+
const signed = await audienceOf(record4.cid, record4.delegation);
|
|
30986
31338
|
if (!signed || signed.audience !== actor) continue;
|
|
30987
|
-
candidates.push({ cid:
|
|
31339
|
+
candidates.push({ cid: record4.cid, car: record4.delegation, exact: signed.resources.includes(capability.with) });
|
|
30988
31340
|
}
|
|
30989
31341
|
if (candidates.length === 0) {
|
|
30990
31342
|
return { decision: { allowed: false, code: "NO_GRANT", reason: "You have not been given this step in this flow." }, until: recheck };
|
|
@@ -31047,9 +31399,9 @@ var RESERVED_KEYS = /* @__PURE__ */ new Set(["__root__", "__version__"]);
|
|
|
31047
31399
|
function unwrap(value) {
|
|
31048
31400
|
const plain = value && typeof value.toJSON === "function" ? value.toJSON() : value;
|
|
31049
31401
|
if (!plain || typeof plain !== "object" || Array.isArray(plain)) return null;
|
|
31050
|
-
const
|
|
31051
|
-
const data =
|
|
31052
|
-
return data && typeof data === "object" && !Array.isArray(data) ? data :
|
|
31402
|
+
const record4 = plain;
|
|
31403
|
+
const data = record4.data;
|
|
31404
|
+
return data && typeof data === "object" && !Array.isArray(data) ? data : record4;
|
|
31053
31405
|
}
|
|
31054
31406
|
async function parse(car, cid) {
|
|
31055
31407
|
if (typeof car !== "string" || !car) return null;
|
|
@@ -31083,8 +31435,8 @@ async function censusFlowAuthority(yDoc, creatorDid = flowOwnerOf(yDoc)) {
|
|
|
31083
31435
|
const others = /* @__PURE__ */ new Map();
|
|
31084
31436
|
for (const [cid, raw] of delegations.entries()) {
|
|
31085
31437
|
if (RESERVED_KEYS.has(cid)) continue;
|
|
31086
|
-
const
|
|
31087
|
-
const node = await parse(
|
|
31438
|
+
const record4 = unwrap(raw);
|
|
31439
|
+
const node = await parse(record4?.delegation, cid);
|
|
31088
31440
|
if (!node) {
|
|
31089
31441
|
unsignedRecords += 1;
|
|
31090
31442
|
continue;
|
|
@@ -31203,8 +31555,8 @@ function createReceiptVerifier(options) {
|
|
|
31203
31555
|
var import_core4 = require("@ucanto/core");
|
|
31204
31556
|
var FLOW_AUTHORITY_EVENT_TYPE = "ixo.qi.flow.authority.v1";
|
|
31205
31557
|
function isRecord6(value) {
|
|
31206
|
-
const
|
|
31207
|
-
return Boolean(
|
|
31558
|
+
const record4 = value;
|
|
31559
|
+
return Boolean(record4 && record4.v === 1 && record4.grant?.car && record4.invocation?.car && record4.action && typeof record4.rootIssuer === "string");
|
|
31208
31560
|
}
|
|
31209
31561
|
function authorityEventMatches(content, runId, stepId) {
|
|
31210
31562
|
return isRecord6(content) && content.action.runId === runId && content.action.stepId === stepId;
|
|
@@ -31235,48 +31587,48 @@ async function verifyPortalReceipt(params, receipt, now) {
|
|
|
31235
31587
|
return { ...base, ...statusFor(verdict.invocation, verdict.revokedNow, now) };
|
|
31236
31588
|
}
|
|
31237
31589
|
async function verifyFlowManagerRecord(params, event, now) {
|
|
31238
|
-
const
|
|
31239
|
-
if (!isRecord6(
|
|
31240
|
-
if (normalizeDid(
|
|
31590
|
+
const record4 = event.content;
|
|
31591
|
+
if (!isRecord6(record4)) return { status: "not-verified", source: "flow-manager-record", reason: "The flow-manager's authority record could not be read." };
|
|
31592
|
+
if (normalizeDid(record4.rootIssuer) !== normalizeDid(params.ownerDid)) {
|
|
31241
31593
|
return {
|
|
31242
31594
|
status: "not-verified",
|
|
31243
31595
|
source: "flow-manager-record",
|
|
31244
|
-
reason: `The flow-manager acted under authority from ${
|
|
31596
|
+
reason: `The flow-manager acted under authority from ${record4.rootIssuer}, who did not create this flow.`
|
|
31245
31597
|
};
|
|
31246
31598
|
}
|
|
31247
31599
|
const env = {
|
|
31248
31600
|
revocationChecker: params.env.revocationChecker,
|
|
31249
31601
|
didResolver: async (did) => {
|
|
31250
31602
|
if (did.startsWith("did:key:")) return { ok: [did] };
|
|
31251
|
-
const keys = (
|
|
31603
|
+
const keys = (record4.signers[did] ?? []).filter((key) => key.startsWith("did:key:"));
|
|
31252
31604
|
return keys.length > 0 ? { ok: keys } : { error: { name: "DIDKeyResolutionError", did, message: `the record keeps no key for ${did}` } };
|
|
31253
31605
|
}
|
|
31254
31606
|
};
|
|
31255
|
-
const holder = await holderOf(
|
|
31256
|
-
const verdict = await verifyInvocation(
|
|
31257
|
-
cid:
|
|
31607
|
+
const holder = await holderOf(record4);
|
|
31608
|
+
const verdict = await verifyInvocation(record4.invocation.car, {
|
|
31609
|
+
cid: record4.invocation.cid,
|
|
31258
31610
|
expectedAudience: holder,
|
|
31259
31611
|
ownerDid: params.ownerDid,
|
|
31260
31612
|
actorDid: holder,
|
|
31261
|
-
required: { can:
|
|
31613
|
+
required: { can: record4.action.can, with: record4.action.with },
|
|
31262
31614
|
expectedFacts: {
|
|
31263
|
-
runId:
|
|
31264
|
-
stepId:
|
|
31265
|
-
attemptId:
|
|
31266
|
-
operationId:
|
|
31267
|
-
inputDigest:
|
|
31615
|
+
runId: record4.action.runId,
|
|
31616
|
+
stepId: record4.action.stepId,
|
|
31617
|
+
attemptId: record4.action.attemptId,
|
|
31618
|
+
operationId: record4.action.operationId,
|
|
31619
|
+
inputDigest: record4.action.inputDigest
|
|
31268
31620
|
},
|
|
31269
31621
|
env,
|
|
31270
31622
|
at: event.originServerTs,
|
|
31271
|
-
allowBlockExecuteFallback:
|
|
31623
|
+
allowBlockExecuteFallback: record4.action.safety !== "fenced"
|
|
31272
31624
|
});
|
|
31273
31625
|
if (!verdict.ok) return { status: "not-verified", source: "flow-manager-record", actorDid: holder, reason: verdict.reason };
|
|
31274
|
-
if (!verdict.invocation.proofChainCids.includes(
|
|
31626
|
+
if (!verdict.invocation.proofChainCids.includes(record4.grant.cid)) {
|
|
31275
31627
|
return { status: "not-verified", source: "flow-manager-record", actorDid: holder, reason: "The flow-manager did not act under the grant it recorded." };
|
|
31276
31628
|
}
|
|
31277
31629
|
let requesterDid;
|
|
31278
|
-
if (
|
|
31279
|
-
const requester = await verifyRequester(
|
|
31630
|
+
if (record4.requester) {
|
|
31631
|
+
const requester = await verifyRequester(record4, env, event.originServerTs, params.ownerDid);
|
|
31280
31632
|
if ("reason" in requester) return { status: "not-verified", source: "flow-manager-record", actorDid: holder, reason: requester.reason };
|
|
31281
31633
|
requesterDid = requester.did;
|
|
31282
31634
|
}
|
|
@@ -31289,13 +31641,13 @@ async function verifyFlowManagerRecord(params, event, now) {
|
|
|
31289
31641
|
...statusFor(verdict.invocation, verdict.revokedNow, now)
|
|
31290
31642
|
};
|
|
31291
31643
|
}
|
|
31292
|
-
async function holderOf(
|
|
31293
|
-
const extracted = await import_core4.Delegation.extract(decodeCarBase64(
|
|
31644
|
+
async function holderOf(record4) {
|
|
31645
|
+
const extracted = await import_core4.Delegation.extract(decodeCarBase64(record4.grant.car));
|
|
31294
31646
|
const grant = extracted.ok;
|
|
31295
31647
|
return grant ? normalizeDid(grant.audience.did()) : "";
|
|
31296
31648
|
}
|
|
31297
|
-
async function verifyRequester(
|
|
31298
|
-
const requester =
|
|
31649
|
+
async function verifyRequester(record4, env, fallbackAt, ownerDid) {
|
|
31650
|
+
const requester = record4.requester;
|
|
31299
31651
|
const extracted = await import_core4.Delegation.extract(decodeCarBase64(requester.car));
|
|
31300
31652
|
const node = extracted.ok;
|
|
31301
31653
|
const claimed = node?.capabilities?.[0];
|
|
@@ -31305,7 +31657,7 @@ async function verifyRequester(record3, env, fallbackAt, ownerDid) {
|
|
|
31305
31657
|
expectedAudience: node.audience.did(),
|
|
31306
31658
|
ownerDid,
|
|
31307
31659
|
required: { can: claimed.can, with: claimed.with },
|
|
31308
|
-
expectedFacts: { type: "qi.flow.request", runId:
|
|
31660
|
+
expectedFacts: { type: "qi.flow.request", runId: record4.action.runId },
|
|
31309
31661
|
env,
|
|
31310
31662
|
// Checked as of when the flow-manager accepted it: a request lives for
|
|
31311
31663
|
// minutes, the run it started for much longer.
|
|
@@ -31744,6 +32096,7 @@ function createOracleInitFlowTemplate() {
|
|
|
31744
32096
|
FlowNotMigratedError,
|
|
31745
32097
|
HistoricalManifestActionContractResolver,
|
|
31746
32098
|
INVOCATIONS_MAP_KEY,
|
|
32099
|
+
IXO_BLOCK_FENCE,
|
|
31747
32100
|
InMemoryTopicActionOutboxStore,
|
|
31748
32101
|
InvalidConditionConfigError,
|
|
31749
32102
|
LATEST_VERSION,
|
|
@@ -31760,6 +32113,7 @@ function createOracleInitFlowTemplate() {
|
|
|
31760
32113
|
MatrixRoomFlowEventStore,
|
|
31761
32114
|
NODE_CONTEXT_MAP_NAME,
|
|
31762
32115
|
NODE_CONTEXT_OVERRIDES_MAP_NAME,
|
|
32116
|
+
PAGE_FILE_SCHEMA_VERSION,
|
|
31763
32117
|
PROFESSIONAL_SERVICE_DESIGN_POD_PLAN_V1,
|
|
31764
32118
|
PROFESSIONAL_SERVICE_METHOD_V1,
|
|
31765
32119
|
PROOF_MISSING_CODE,
|
|
@@ -31806,6 +32160,7 @@ function createOracleInitFlowTemplate() {
|
|
|
31806
32160
|
authorityEventMatches,
|
|
31807
32161
|
bindFlowOwner,
|
|
31808
32162
|
bindFlowOwnerFromRoom,
|
|
32163
|
+
blocksToPageMarkdown,
|
|
31809
32164
|
boundRunActionOutput,
|
|
31810
32165
|
boundRunEventJson,
|
|
31811
32166
|
buildActionRunInputs,
|
|
@@ -31991,6 +32346,9 @@ function createOracleInitFlowTemplate() {
|
|
|
31991
32346
|
normalizeConditions,
|
|
31992
32347
|
normalizeDid,
|
|
31993
32348
|
oracleInitSurveySchema,
|
|
32349
|
+
pageContentHash,
|
|
32350
|
+
pageDocumentHash,
|
|
32351
|
+
pageMarkdownToBlocks,
|
|
31994
32352
|
parseConditionConfig,
|
|
31995
32353
|
parseConditionConfigStrict,
|
|
31996
32354
|
parseDesignPodOperationalFlow,
|