@ixo/editor 6.35.5 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BidConfig-4AQPVSPC.js → BidConfig-ZH625SNZ.js} +12 -13
- package/dist/{BidConfig-4AQPVSPC.js.map → BidConfig-ZH625SNZ.js.map} +1 -1
- package/dist/{BidFlowDetail-ET3TZUFV.js → BidFlowDetail-SZMKY75S.js} +18 -19
- package/dist/{BidFlowDetail-ET3TZUFV.js.map → BidFlowDetail-SZMKY75S.js.map} +1 -1
- package/dist/{CalendarEventCreateConfig-IRPEASQE.js → CalendarEventCreateConfig-F7EYC4VL.js} +13 -14
- package/dist/{CalendarEventCreateConfig-IRPEASQE.js.map → CalendarEventCreateConfig-F7EYC4VL.js.map} +1 -1
- package/dist/{CalendarEventCreateFlowDetail-XGSRNIDZ.js → CalendarEventCreateFlowDetail-JMYDUZRK.js} +14 -15
- package/dist/{CalendarEventCreateFlowDetail-XGSRNIDZ.js.map → CalendarEventCreateFlowDetail-JMYDUZRK.js.map} +1 -1
- package/dist/{CalendarEventListConfig-I3BQR3DL.js → CalendarEventListConfig-RRIV7IZG.js} +13 -14
- package/dist/{CalendarEventListConfig-I3BQR3DL.js.map → CalendarEventListConfig-RRIV7IZG.js.map} +1 -1
- package/dist/{CalendarEventListFlowDetail-SSRTOXIX.js → CalendarEventListFlowDetail-6LN4I3SI.js} +7 -5
- package/dist/{CalendarEventListFlowDetail-SSRTOXIX.js.map → CalendarEventListFlowDetail-6LN4I3SI.js.map} +1 -1
- package/dist/{CalendarEventUpdateConfig-O3YZKZIM.js → CalendarEventUpdateConfig-SARWZZG4.js} +13 -14
- package/dist/{CalendarEventUpdateConfig-O3YZKZIM.js.map → CalendarEventUpdateConfig-SARWZZG4.js.map} +1 -1
- package/dist/{CalendarEventUpdateFlowDetail-K4DSHL6C.js → CalendarEventUpdateFlowDetail-KZ2FG76Z.js} +14 -15
- package/dist/{CalendarEventUpdateFlowDetail-K4DSHL6C.js.map → CalendarEventUpdateFlowDetail-KZ2FG76Z.js.map} +1 -1
- package/dist/{ClaimConfig-2Q5W3Y4C.js → ClaimConfig-PMRVROQ7.js} +12 -13
- package/dist/{ClaimConfig-2Q5W3Y4C.js.map → ClaimConfig-PMRVROQ7.js.map} +1 -1
- package/dist/{ClaimFlowDetail-PKXLVOXC.js → ClaimFlowDetail-3364FIDU.js} +18 -19
- package/dist/{ClaimFlowDetail-PKXLVOXC.js.map → ClaimFlowDetail-3364FIDU.js.map} +1 -1
- package/dist/{CollectionLifecycleConfig-LCCGZ3CJ.js → CollectionLifecycleConfig-YPTZZJ3S.js} +6 -4
- package/dist/{CollectionLifecycleConfig-LCCGZ3CJ.js.map → CollectionLifecycleConfig-YPTZZJ3S.js.map} +1 -1
- package/dist/{CollectionLifecycleFlowDetail-IZCKERFC.js → CollectionLifecycleFlowDetail-OD7OZH6W.js} +17 -18
- package/dist/{CollectionLifecycleFlowDetail-IZCKERFC.js.map → CollectionLifecycleFlowDetail-OD7OZH6W.js.map} +1 -1
- package/dist/{CollectionUsersConfig-WVS7JE2F.js → CollectionUsersConfig-ETJM2G23.js} +15 -16
- package/dist/{CollectionUsersConfig-WVS7JE2F.js.map → CollectionUsersConfig-ETJM2G23.js.map} +1 -1
- package/dist/{CollectionUsersFlowDetail-Y2UH3TU7.js → CollectionUsersFlowDetail-AMPT7UEV.js} +19 -20
- package/dist/{CollectionUsersFlowDetail-Y2UH3TU7.js.map → CollectionUsersFlowDetail-AMPT7UEV.js.map} +1 -1
- package/dist/{CredentialStoreConfig-V3YSYSIT.js → CredentialStoreConfig-ZQFLCBDT.js} +9 -11
- package/dist/{CredentialStoreConfig-V3YSYSIT.js.map → CredentialStoreConfig-ZQFLCBDT.js.map} +1 -1
- package/dist/{CredentialStoreFlowDetail-FL7QAM3S.js → CredentialStoreFlowDetail-5LRH7NH5.js} +9 -10
- package/dist/{CredentialStoreFlowDetail-FL7QAM3S.js.map → CredentialStoreFlowDetail-5LRH7NH5.js.map} +1 -1
- package/dist/{DesignPodFlowDetail-JHJWGNVY.js → DesignPodFlowDetail-ECFMDZZ3.js} +7 -8
- package/dist/{DesignPodFlowDetail-JHJWGNVY.js.map → DesignPodFlowDetail-ECFMDZZ3.js.map} +1 -1
- package/dist/{DomainCardPreviewFlowDetail-Y2FE7O5Z.js → DomainCardPreviewFlowDetail-M7FPXS4N.js} +9 -10
- package/dist/{DomainCardPreviewFlowDetail-Y2FE7O5Z.js.map → DomainCardPreviewFlowDetail-M7FPXS4N.js.map} +1 -1
- package/dist/{DomainIndexerLookupFlowDetail-GJ7WWK7I.js → DomainIndexerLookupFlowDetail-L6GSDWLI.js} +7 -5
- package/dist/{DomainIndexerLookupFlowDetail-GJ7WWK7I.js.map → DomainIndexerLookupFlowDetail-L6GSDWLI.js.map} +1 -1
- package/dist/{DomainSignFlowDetail-BXZ6JBPR.js → DomainSignFlowDetail-5ERYSTPG.js} +10 -11
- package/dist/{DomainSignFlowDetail-BXZ6JBPR.js.map → DomainSignFlowDetail-5ERYSTPG.js.map} +1 -1
- package/dist/{DomainSingleSelectionConfig-ZNKIXB4P.js → DomainSingleSelectionConfig-DTHYPZBO.js} +6 -4
- package/dist/{DomainSingleSelectionConfig-ZNKIXB4P.js.map → DomainSingleSelectionConfig-DTHYPZBO.js.map} +1 -1
- package/dist/{DomainSingleSelectionFlowDetail-HWTQXSLA.js → DomainSingleSelectionFlowDetail-JKNAC2RY.js} +7 -5
- package/dist/{DomainSingleSelectionFlowDetail-HWTQXSLA.js.map → DomainSingleSelectionFlowDetail-JKNAC2RY.js.map} +1 -1
- package/dist/{EmailSendConfig-OQVXHNAF.js → EmailSendConfig-O3XDS5IE.js} +12 -13
- package/dist/{EmailSendConfig-OQVXHNAF.js.map → EmailSendConfig-O3XDS5IE.js.map} +1 -1
- package/dist/{EntityCreateOracleFlowDetail-H2X7CPYU.js → EntityCreateOracleFlowDetail-6XJ4UEL5.js} +9 -10
- package/dist/{EntityCreateOracleFlowDetail-H2X7CPYU.js.map → EntityCreateOracleFlowDetail-6XJ4UEL5.js.map} +1 -1
- package/dist/{EntitySingleSelectionFlowDetail-GFQGX3GA.js → EntitySingleSelectionFlowDetail-5BDIVHQV.js} +8 -6
- package/dist/{EntitySingleSelectionFlowDetail-GFQGX3GA.js.map → EntitySingleSelectionFlowDetail-5BDIVHQV.js.map} +1 -1
- package/dist/{EntityTransferFlowDetail-XEXM34XB.js → EntityTransferFlowDetail-DY2UZ5VA.js} +9 -10
- package/dist/{EntityTransferFlowDetail-XEXM34XB.js.map → EntityTransferFlowDetail-DY2UZ5VA.js.map} +1 -1
- package/dist/{EvalEngineConfig-6B5EXETY.js → EvalEngineConfig-5ZBXA3Q6.js} +17 -18
- package/dist/{EvalEngineConfig-6B5EXETY.js.map → EvalEngineConfig-5ZBXA3Q6.js.map} +1 -1
- package/dist/{EvalEngineFlowDetail-PUFRNO4U.js → EvalEngineFlowDetail-YL3FFONH.js} +11 -10
- package/dist/{EvalEngineFlowDetail-PUFRNO4U.js.map → EvalEngineFlowDetail-YL3FFONH.js.map} +1 -1
- package/dist/{EvaluateBidConfig-FGCVB3YR.js → EvaluateBidConfig-ZU7QUFXL.js} +12 -13
- package/dist/{EvaluateBidConfig-FGCVB3YR.js.map → EvaluateBidConfig-ZU7QUFXL.js.map} +1 -1
- package/dist/{EvaluateBidFlowDetail-4C3K2QVH.js → EvaluateBidFlowDetail-IATWBOE5.js} +17 -18
- package/dist/{EvaluateBidFlowDetail-4C3K2QVH.js.map → EvaluateBidFlowDetail-IATWBOE5.js.map} +1 -1
- package/dist/{EvaluateClaimConfig-LG47V642.js → EvaluateClaimConfig-HEYNWGSN.js} +12 -13
- package/dist/{EvaluateClaimConfig-LG47V642.js.map → EvaluateClaimConfig-HEYNWGSN.js.map} +1 -1
- package/dist/{EvaluateClaimFlowDetail-ITMCSEZT.js → EvaluateClaimFlowDetail-TOX53BGP.js} +18 -19
- package/dist/{EvaluateClaimFlowDetail-ITMCSEZT.js.map → EvaluateClaimFlowDetail-TOX53BGP.js.map} +1 -1
- package/dist/{FormSubmitFlowDetail-IAHDJS6P.js → FormSubmitFlowDetail-CVSUWEAW.js} +9 -10
- package/dist/{FormSubmitFlowDetail-IAHDJS6P.js.map → FormSubmitFlowDetail-CVSUWEAW.js.map} +1 -1
- package/dist/{GovernanceAuthzExecFlowDetail-SQBGU5BX.js → GovernanceAuthzExecFlowDetail-GWKPT7QW.js} +10 -11
- package/dist/{GovernanceAuthzExecFlowDetail-SQBGU5BX.js.map → GovernanceAuthzExecFlowDetail-GWKPT7QW.js.map} +1 -1
- package/dist/{GovernanceAuthzGrantFlowDetail-DZPNLANT.js → GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js} +11 -12
- package/dist/{GovernanceAuthzGrantFlowDetail-DZPNLANT.js.map → GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js.map} +1 -1
- package/dist/{GovernanceAuthzRevokeFlowDetail-3JZ4IUJG.js → GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js} +11 -12
- package/dist/{GovernanceAuthzRevokeFlowDetail-3JZ4IUJG.js.map → GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js.map} +1 -1
- package/dist/{GovernanceChainVoteFlowDetail-475UDNG6.js → GovernanceChainVoteFlowDetail-BO3DJNDF.js} +10 -11
- package/dist/{GovernanceChainVoteFlowDetail-475UDNG6.js.map → GovernanceChainVoteFlowDetail-BO3DJNDF.js.map} +1 -1
- package/dist/{GovernanceConfigFlowDetail-SQ5PPDRX.js → GovernanceConfigFlowDetail-FZB4R54G.js} +7 -5
- package/dist/{GovernanceConfigFlowDetail-SQ5PPDRX.js.map → GovernanceConfigFlowDetail-FZB4R54G.js.map} +1 -1
- package/dist/{GovernanceContractExecuteFlowDetail-H2ZV6W2E.js → GovernanceContractExecuteFlowDetail-JHIXCNXS.js} +11 -12
- package/dist/{GovernanceContractExecuteFlowDetail-H2ZV6W2E.js.map → GovernanceContractExecuteFlowDetail-JHIXCNXS.js.map} +1 -1
- package/dist/{GovernanceContractInstantiateFlowDetail-YJJMGM54.js → GovernanceContractInstantiateFlowDetail-XWSI2HXG.js} +11 -12
- package/dist/{GovernanceContractInstantiateFlowDetail-YJJMGM54.js.map → GovernanceContractInstantiateFlowDetail-XWSI2HXG.js.map} +1 -1
- package/dist/{GovernanceContractManageCw20FlowDetail-OCBMW3YJ.js → GovernanceContractManageCw20FlowDetail-5QI3FBNT.js} +10 -11
- package/dist/{GovernanceContractManageCw20FlowDetail-OCBMW3YJ.js.map → GovernanceContractManageCw20FlowDetail-5QI3FBNT.js.map} +1 -1
- package/dist/{GovernanceContractMigrateFlowDetail-JDNIKTT3.js → GovernanceContractMigrateFlowDetail-W2DEBKKU.js} +11 -12
- package/dist/{GovernanceContractMigrateFlowDetail-JDNIKTT3.js.map → GovernanceContractMigrateFlowDetail-W2DEBKKU.js.map} +1 -1
- package/dist/{GovernanceContractUpdateAdminFlowDetail-SZBOAOCC.js → GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js} +10 -11
- package/dist/{GovernanceContractUpdateAdminFlowDetail-SZBOAOCC.js.map → GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js.map} +1 -1
- package/dist/{GovernanceCustomMessageFlowDetail-CXD4ZATO.js → GovernanceCustomMessageFlowDetail-NNTHVM5D.js} +11 -12
- package/dist/{GovernanceCustomMessageFlowDetail-CXD4ZATO.js.map → GovernanceCustomMessageFlowDetail-NNTHVM5D.js.map} +1 -1
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-Q6ZBNY7Z.js → GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js} +11 -12
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-Q6ZBNY7Z.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js.map} +1 -1
- package/dist/{GovernanceDaoAdminExecFlowDetail-JAEAY2US.js → GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js} +12 -13
- package/dist/{GovernanceDaoAdminExecFlowDetail-JAEAY2US.js.map → GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js.map} +1 -1
- package/dist/{GovernanceDaoCreateEntityFlowDetail-7RVNTVAB.js → GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js} +11 -12
- package/dist/{GovernanceDaoCreateEntityFlowDetail-7RVNTVAB.js.map → GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js.map} +1 -1
- package/dist/{GovernanceDaoJoinFlowDetail-XYCTCNHO.js → GovernanceDaoJoinFlowDetail-GJWWQPD2.js} +11 -12
- package/dist/{GovernanceDaoJoinFlowDetail-XYCTCNHO.js.map → GovernanceDaoJoinFlowDetail-GJWWQPD2.js.map} +1 -1
- package/dist/{GovernanceDaoManageStorageFlowDetail-LMLYLYYC.js → GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js} +10 -11
- package/dist/{GovernanceDaoManageStorageFlowDetail-LMLYLYYC.js.map → GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js.map} +1 -1
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-YUFQ67JN.js → GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js} +11 -12
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-YUFQ67JN.js.map → GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js.map} +1 -1
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-G5FIBY4L.js → GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js} +10 -11
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-G5FIBY4L.js.map → GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js.map} +1 -1
- package/dist/{GovernanceMemberProposalConfig-IGPXEFDB.js → GovernanceMemberProposalConfig-LW6KNHVY.js} +7 -5
- package/dist/{GovernanceMemberProposalConfig-IGPXEFDB.js.map → GovernanceMemberProposalConfig-LW6KNHVY.js.map} +1 -1
- package/dist/{GovernanceMemberProposalFlowDetail-T3VURONF.js → GovernanceMemberProposalFlowDetail-JNO3RPDW.js} +11 -12
- package/dist/{GovernanceMemberProposalFlowDetail-T3VURONF.js.map → GovernanceMemberProposalFlowDetail-JNO3RPDW.js.map} +1 -1
- package/dist/{GovernanceNftBurnFlowDetail-AG4I2O7H.js → GovernanceNftBurnFlowDetail-MG3S2DZB.js} +10 -11
- package/dist/{GovernanceNftBurnFlowDetail-AG4I2O7H.js.map → GovernanceNftBurnFlowDetail-MG3S2DZB.js.map} +1 -1
- package/dist/{GovernanceNftManageCollectionsFlowDetail-UAAGO3Q6.js → GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js} +10 -11
- package/dist/{GovernanceNftManageCollectionsFlowDetail-UAAGO3Q6.js.map → GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js.map} +1 -1
- package/dist/{GovernanceNftTransferFlowDetail-KXM7DTOV.js → GovernanceNftTransferFlowDetail-27CRQVTA.js} +11 -12
- package/dist/{GovernanceNftTransferFlowDetail-KXM7DTOV.js.map → GovernanceNftTransferFlowDetail-27CRQVTA.js.map} +1 -1
- package/dist/{GovernanceSettingsProposalConfig-4SLJTBLW.js → GovernanceSettingsProposalConfig-WBOTSKNF.js} +7 -5
- package/dist/{GovernanceSettingsProposalConfig-4SLJTBLW.js.map → GovernanceSettingsProposalConfig-WBOTSKNF.js.map} +1 -1
- package/dist/{GovernanceSettingsProposalFlowDetail-VFZPSCLR.js → GovernanceSettingsProposalFlowDetail-W2KXBQM2.js} +10 -11
- package/dist/{GovernanceSettingsProposalFlowDetail-VFZPSCLR.js.map → GovernanceSettingsProposalFlowDetail-W2KXBQM2.js.map} +1 -1
- package/dist/{GovernanceStakingStakeFlowDetail-ULLJ7FLM.js → GovernanceStakingStakeFlowDetail-Z7MCDZDV.js} +10 -11
- package/dist/{GovernanceStakingStakeFlowDetail-ULLJ7FLM.js.map → GovernanceStakingStakeFlowDetail-Z7MCDZDV.js.map} +1 -1
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-CSPKJA3H.js → GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js} +10 -11
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-CSPKJA3H.js.map → GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js.map} +1 -1
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-MZCPSZF2.js → GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js} +10 -11
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-MZCPSZF2.js.map → GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js.map} +1 -1
- package/dist/{GovernanceTransactionMintFlowDetail-Y2WRAODH.js → GovernanceTransactionMintFlowDetail-K6PPDCH6.js} +11 -12
- package/dist/{GovernanceTransactionMintFlowDetail-Y2WRAODH.js.map → GovernanceTransactionMintFlowDetail-K6PPDCH6.js.map} +1 -1
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-GEK6PMMI.js → GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js} +10 -11
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-GEK6PMMI.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js.map} +1 -1
- package/dist/{GovernanceTransactionSendFundsConfig-VBKMLSF3.js → GovernanceTransactionSendFundsConfig-JRROE44J.js} +7 -5
- package/dist/{GovernanceTransactionSendFundsConfig-VBKMLSF3.js.map → GovernanceTransactionSendFundsConfig-JRROE44J.js.map} +1 -1
- package/dist/{GovernanceTransactionSendFundsFlowDetail-5TZB64VL.js → GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js} +11 -12
- package/dist/{GovernanceTransactionSendFundsFlowDetail-5TZB64VL.js.map → GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js.map} +1 -1
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-EGOWVZM2.js → GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js} +11 -12
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-EGOWVZM2.js.map → GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js.map} +1 -1
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-6XWVO5O6.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js} +10 -11
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-6XWVO5O6.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js.map} +1 -1
- package/dist/{GovernanceValidatorActionsFlowDetail-ZMLPAFUB.js → GovernanceValidatorActionsFlowDetail-3YSPIIVG.js} +10 -11
- package/dist/{GovernanceValidatorActionsFlowDetail-ZMLPAFUB.js.map → GovernanceValidatorActionsFlowDetail-3YSPIIVG.js.map} +1 -1
- package/dist/{HarvestConfig-72UJXJ2I.js → HarvestConfig-FXZYEZRA.js} +10 -12
- package/dist/{HarvestConfig-72UJXJ2I.js.map → HarvestConfig-FXZYEZRA.js.map} +1 -1
- package/dist/{HarvestFlowDetail-X3RUH3X3.js → HarvestFlowDetail-Y2AJWJKR.js} +9 -10
- package/dist/{HarvestFlowDetail-X3RUH3X3.js.map → HarvestFlowDetail-Y2AJWJKR.js.map} +1 -1
- package/dist/{HttpRequestConfig-PZAX5VZO.js → HttpRequestConfig-A3UIM3K2.js} +9 -11
- package/dist/{HttpRequestConfig-PZAX5VZO.js.map → HttpRequestConfig-A3UIM3K2.js.map} +1 -1
- package/dist/{HttpRequestFlowDetail-JVLV533Z.js → HttpRequestFlowDetail-VWD64O3P.js} +7 -5
- package/dist/{HttpRequestFlowDetail-JVLV533Z.js.map → HttpRequestFlowDetail-VWD64O3P.js.map} +1 -1
- package/dist/{IdentityCreateFlowDetail-EXJ3Y36S.js → IdentityCreateFlowDetail-DXUI6S4I.js} +17 -18
- package/dist/{IdentityCreateFlowDetail-EXJ3Y36S.js.map → IdentityCreateFlowDetail-DXUI6S4I.js.map} +1 -1
- package/dist/{IidCreateFlowDetail-4BVQYOFR.js → IidCreateFlowDetail-INISHT4R.js} +17 -18
- package/dist/{IidCreateFlowDetail-4BVQYOFR.js.map → IidCreateFlowDetail-INISHT4R.js.map} +1 -1
- package/dist/{KycVerifyConfig-7YN6E4QF.js → KycVerifyConfig-KSECQD2D.js} +9 -11
- package/dist/{KycVerifyConfig-7YN6E4QF.js.map → KycVerifyConfig-KSECQD2D.js.map} +1 -1
- package/dist/{KycVerifyFlowDetail-DTK3GB6S.js → KycVerifyFlowDetail-ZLDIZ4HC.js} +16 -17
- package/dist/{KycVerifyFlowDetail-DTK3GB6S.js.map → KycVerifyFlowDetail-ZLDIZ4HC.js.map} +1 -1
- package/dist/{ListDomainFlowsFlowDetail-XX5AXDZZ.js → ListDomainFlowsFlowDetail-PJQCAY3I.js} +7 -5
- package/dist/{ListDomainFlowsFlowDetail-XX5AXDZZ.js.map → ListDomainFlowsFlowDetail-PJQCAY3I.js.map} +1 -1
- package/dist/{LoadBatchesFlowDetail-GB24T76O.js → LoadBatchesFlowDetail-TL4TQDZ5.js} +9 -10
- package/dist/{LoadBatchesFlowDetail-GB24T76O.js.map → LoadBatchesFlowDetail-TL4TQDZ5.js.map} +1 -1
- package/dist/{MatrixDmConfig-NBII27CS.js → MatrixDmConfig-DRY27FAM.js} +6 -4
- package/dist/{MatrixDmConfig-NBII27CS.js.map → MatrixDmConfig-DRY27FAM.js.map} +1 -1
- package/dist/{MatrixRegisterFlowDetail-D5YNL5QX.js → MatrixRegisterFlowDetail-RXHGTTQF.js} +9 -10
- package/dist/{MatrixRegisterFlowDetail-D5YNL5QX.js.map → MatrixRegisterFlowDetail-RXHGTTQF.js.map} +1 -1
- package/dist/{MemberMultiSelectFlowDetail-6C4ZMSDR.js → MemberMultiSelectFlowDetail-N64ZK7GE.js} +7 -5
- package/dist/{MemberMultiSelectFlowDetail-6C4ZMSDR.js.map → MemberMultiSelectFlowDetail-N64ZK7GE.js.map} +1 -1
- package/dist/{OracleConfig-RW55I2YD.js → OracleConfig-KUPPRFL2.js} +9 -11
- package/dist/{OracleConfig-RW55I2YD.js.map → OracleConfig-KUPPRFL2.js.map} +1 -1
- package/dist/{OracleConfigureOracleFlowDetail-R3JOT72V.js → OracleConfigureOracleFlowDetail-L7GRKOSV.js} +17 -18
- package/dist/{OracleConfigureOracleFlowDetail-R3JOT72V.js.map → OracleConfigureOracleFlowDetail-L7GRKOSV.js.map} +1 -1
- package/dist/{OracleContractFlowDetail-M3PM4AU4.js → OracleContractFlowDetail-D2XZYWVG.js} +9 -10
- package/dist/{OracleContractFlowDetail-M3PM4AU4.js.map → OracleContractFlowDetail-D2XZYWVG.js.map} +1 -1
- package/dist/{OracleDeployFlowDetail-WKTMD2AD.js → OracleDeployFlowDetail-TCFIJYP7.js} +9 -10
- package/dist/{OracleDeployFlowDetail-WKTMD2AD.js.map → OracleDeployFlowDetail-TCFIJYP7.js.map} +1 -1
- package/dist/{OracleDeploySetupFlowDetail-R3BQ7EAU.js → OracleDeploySetupFlowDetail-KMGBPIND.js} +9 -10
- package/dist/{OracleDeploySetupFlowDetail-R3BQ7EAU.js.map → OracleDeploySetupFlowDetail-KMGBPIND.js.map} +1 -1
- package/dist/{OracleDeployStartFlowDetail-EL3CMDMG.js → OracleDeployStartFlowDetail-DTK5PLC5.js} +9 -10
- package/dist/{OracleDeployStartFlowDetail-EL3CMDMG.js.map → OracleDeployStartFlowDetail-DTK5PLC5.js.map} +1 -1
- package/dist/{OracleFlowDetail-5JCJK3GH.js → OracleFlowDetail-FEPE3YYU.js} +9 -10
- package/dist/{OracleFlowDetail-5JCJK3GH.js.map → OracleFlowDetail-FEPE3YYU.js.map} +1 -1
- package/dist/{OraclePromptFlowDetail-O3XNK7HY.js → OraclePromptFlowDetail-2B55RVOO.js} +9 -10
- package/dist/{OraclePromptFlowDetail-O3XNK7HY.js.map → OraclePromptFlowDetail-2B55RVOO.js.map} +1 -1
- package/dist/{OracleStoreConfigFlowDetail-Q6AUUSUL.js → OracleStoreConfigFlowDetail-Q6PTB2TR.js} +9 -10
- package/dist/{OracleStoreConfigFlowDetail-Q6AUUSUL.js.map → OracleStoreConfigFlowDetail-Q6PTB2TR.js.map} +1 -1
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-EIQPZQMF.js → OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js} +17 -18
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-EIQPZQMF.js.map → OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js.map} +1 -1
- package/dist/{OracleStoreSecretsFlowDetail-WJXCPYSN.js → OracleStoreSecretsFlowDetail-DHNXG3CZ.js} +17 -18
- package/dist/{OracleStoreSecretsFlowDetail-WJXCPYSN.js.map → OracleStoreSecretsFlowDetail-DHNXG3CZ.js.map} +1 -1
- package/dist/{ProposalCreateConfig-7C5W2UHX.js → ProposalCreateConfig-W3XNV7SH.js} +12 -13
- package/dist/{ProposalCreateConfig-7C5W2UHX.js.map → ProposalCreateConfig-W3XNV7SH.js.map} +1 -1
- package/dist/{ProposalCreateFlowDetail-PJB2ANZM.js → ProposalCreateFlowDetail-2ZNJZMSY.js} +19 -20
- package/dist/{ProposalCreateFlowDetail-PJB2ANZM.js.map → ProposalCreateFlowDetail-2ZNJZMSY.js.map} +1 -1
- package/dist/{ProposalVoteConfig-AUU6QCSN.js → ProposalVoteConfig-DDEF76CL.js} +12 -13
- package/dist/{ProposalVoteConfig-AUU6QCSN.js.map → ProposalVoteConfig-DDEF76CL.js.map} +1 -1
- package/dist/{ProposalVoteFlowDetail-IJJ3OHAB.js → ProposalVoteFlowDetail-6BOYU4XJ.js} +10 -11
- package/dist/{ProposalVoteFlowDetail-IJJ3OHAB.js.map → ProposalVoteFlowDetail-6BOYU4XJ.js.map} +1 -1
- package/dist/{ProtocolSelectFlowDetail-XBSJIEIH.js → ProtocolSelectFlowDetail-IKYJQZAO.js} +6 -4
- package/dist/{ProtocolSelectFlowDetail-XBSJIEIH.js.map → ProtocolSelectFlowDetail-IKYJQZAO.js.map} +1 -1
- package/dist/{RetireConfig-EICGSI7K.js → RetireConfig-PQPUZHIW.js} +10 -12
- package/dist/{RetireConfig-EICGSI7K.js.map → RetireConfig-PQPUZHIW.js.map} +1 -1
- package/dist/{RetireFlowDetail-VZ5O4SXI.js → RetireFlowDetail-SP5GBJSA.js} +9 -10
- package/dist/{RetireFlowDetail-VZ5O4SXI.js.map → RetireFlowDetail-SP5GBJSA.js.map} +1 -1
- package/dist/{SandboxProvisionFlowDetail-RUY64INV.js → SandboxProvisionFlowDetail-CQ7XZWNA.js} +9 -10
- package/dist/{SandboxProvisionFlowDetail-RUY64INV.js.map → SandboxProvisionFlowDetail-CQ7XZWNA.js.map} +1 -1
- package/dist/{WalletFundConfig-CMM3EP3B.js → WalletFundConfig-T5S6B2HH.js} +7 -5
- package/dist/{WalletFundConfig-CMM3EP3B.js.map → WalletFundConfig-T5S6B2HH.js.map} +1 -1
- package/dist/{WalletFundFlowDetail-TXWCZA4K.js → WalletFundFlowDetail-WLQLJS34.js} +10 -11
- package/dist/{WalletFundFlowDetail-TXWCZA4K.js.map → WalletFundFlowDetail-WLQLJS34.js.map} +1 -1
- package/dist/{WalletGenerateAndFundFlowDetail-C2LZW3NO.js → WalletGenerateAndFundFlowDetail-7LEBWWEA.js} +7 -5
- package/dist/{WalletGenerateAndFundFlowDetail-C2LZW3NO.js.map → WalletGenerateAndFundFlowDetail-7LEBWWEA.js.map} +1 -1
- package/dist/{WalletGenerateFlowDetail-CQCNDGJA.js → WalletGenerateFlowDetail-CBAVDW7Z.js} +7 -5
- package/dist/{WalletGenerateFlowDetail-CQCNDGJA.js.map → WalletGenerateFlowDetail-CBAVDW7Z.js.map} +1 -1
- package/dist/{XeroContactCreateConfig-MGXISMDB.js → XeroContactCreateConfig-TKJKZAC4.js} +13 -14
- package/dist/{XeroContactCreateConfig-MGXISMDB.js.map → XeroContactCreateConfig-TKJKZAC4.js.map} +1 -1
- package/dist/{XeroContactCreateFlowDetail-45CMV27U.js → XeroContactCreateFlowDetail-O3ZITUCC.js} +14 -15
- package/dist/{XeroContactCreateFlowDetail-45CMV27U.js.map → XeroContactCreateFlowDetail-O3ZITUCC.js.map} +1 -1
- package/dist/{XeroInvoiceCreateConfig-MQBUY5KV.js → XeroInvoiceCreateConfig-LAMB7Q3J.js} +16 -17
- package/dist/{XeroInvoiceCreateConfig-MQBUY5KV.js.map → XeroInvoiceCreateConfig-LAMB7Q3J.js.map} +1 -1
- package/dist/{XeroInvoiceCreateFlowDetail-N6ZLSOFL.js → XeroInvoiceCreateFlowDetail-KIYWUT2B.js} +16 -17
- package/dist/{XeroInvoiceCreateFlowDetail-N6ZLSOFL.js.map → XeroInvoiceCreateFlowDetail-KIYWUT2B.js.map} +1 -1
- package/dist/{XeroInvoiceListConfig-UNX4VEOG.js → XeroInvoiceListConfig-PUUQP4UP.js} +13 -14
- package/dist/{XeroInvoiceListConfig-UNX4VEOG.js.map → XeroInvoiceListConfig-PUUQP4UP.js.map} +1 -1
- package/dist/{XeroInvoiceListFlowDetail-LYHODWH6.js → XeroInvoiceListFlowDetail-YPU6MFSX.js} +7 -5
- package/dist/{XeroInvoiceListFlowDetail-LYHODWH6.js.map → XeroInvoiceListFlowDetail-YPU6MFSX.js.map} +1 -1
- package/dist/{XeroPaymentCreateConfig-KLIV5FAB.js → XeroPaymentCreateConfig-XNMSDVG3.js} +9 -11
- package/dist/{XeroPaymentCreateConfig-KLIV5FAB.js.map → XeroPaymentCreateConfig-XNMSDVG3.js.map} +1 -1
- package/dist/{XeroPaymentCreateFlowDetail-6D5K4Z5O.js → XeroPaymentCreateFlowDetail-CB55SP6X.js} +15 -16
- package/dist/{XeroPaymentCreateFlowDetail-6D5K4Z5O.js.map → XeroPaymentCreateFlowDetail-CB55SP6X.js.map} +1 -1
- package/dist/chunk-2KOJBMG5.js +1296 -0
- package/dist/chunk-2KOJBMG5.js.map +1 -0
- package/dist/{chunk-7VFCZZMP.js → chunk-3WLWIA7D.js} +68 -7
- package/dist/chunk-3WLWIA7D.js.map +1 -0
- package/dist/{chunk-STH2HPZK.js → chunk-6JOBSAZF.js} +2 -2
- package/dist/{chunk-JIDTNKKL.js → chunk-7TVYQNOR.js} +57 -6
- package/dist/chunk-7TVYQNOR.js.map +1 -0
- package/dist/{chunk-PFF6VY35.js → chunk-A7L3NJK6.js} +2 -2
- package/dist/{chunk-4DGCCXD6.js → chunk-BAQA4AZN.js} +36 -5
- package/dist/chunk-BAQA4AZN.js.map +1 -0
- package/dist/{chunk-MQCDMHRZ.js → chunk-C376YPPE.js} +3 -3
- package/dist/{chunk-4PONO4US.js → chunk-CMG6TZKH.js} +3 -3
- package/dist/{chunk-DSAOXGJH.js → chunk-DMXZIAAW.js} +3 -3
- package/dist/{chunk-E6N2G3BQ.js → chunk-DVZU2FI6.js} +13 -13
- package/dist/chunk-DVZU2FI6.js.map +1 -0
- package/dist/{chunk-676HDB7K.js → chunk-EH7EYO4N.js} +4 -4
- package/dist/{chunk-QND2IQ67.js → chunk-EWDTMHPF.js} +702 -647
- package/dist/chunk-EWDTMHPF.js.map +1 -0
- package/dist/{chunk-5IH3VC5I.js → chunk-FJ36VM6S.js} +2 -2
- package/dist/{chunk-Y4EEDWYE.js → chunk-IMN2PXVU.js} +8 -6
- package/dist/{chunk-Y4EEDWYE.js.map → chunk-IMN2PXVU.js.map} +1 -1
- package/dist/{chunk-IFWKRCFF.js → chunk-J6AWMFEF.js} +2 -2
- package/dist/{chunk-ZP4D73DO.js → chunk-JDNOVB6L.js} +2 -2
- package/dist/{chunk-NIXT2SBH.js → chunk-JK6RAKE3.js} +2 -2
- package/dist/{chunk-F2SBFVIX.js → chunk-JSE2MTU7.js} +241 -218
- package/dist/chunk-JSE2MTU7.js.map +1 -0
- package/dist/{chunk-PYNDJDWZ.js → chunk-JWC4VVY7.js} +3 -5
- package/dist/{chunk-PYNDJDWZ.js.map → chunk-JWC4VVY7.js.map} +1 -1
- package/dist/{chunk-EGVS23DR.js → chunk-L7WHIPGC.js} +2 -2
- package/dist/{chunk-IVOOK475.js → chunk-LSWKBCB3.js} +5 -5
- package/dist/{chunk-NJAII6CO.js → chunk-M3GHFF5N.js} +2 -2
- package/dist/{chunk-ILSFU3WD.js → chunk-MQAJXYIS.js} +2 -2
- package/dist/{chunk-QZYCJ2GZ.js → chunk-MY22PTP4.js} +2 -2
- package/dist/{chunk-JVROGQ7Q.js → chunk-QSUE3ZFB.js} +2 -2
- package/dist/{chunk-IIIZZ4E4.js → chunk-QW7LA67J.js} +304 -213
- package/dist/chunk-QW7LA67J.js.map +1 -0
- package/dist/{chunk-FFYZXA75.js → chunk-RETGBEFM.js} +2 -2
- package/dist/{chunk-VRZ5LMOW.js → chunk-RQS3KQLQ.js} +2 -2
- package/dist/{chunk-SEJJ7CRI.js → chunk-RV7QJFSE.js} +2 -2
- package/dist/{chunk-GR4SIU32.js → chunk-S2ETTOE5.js} +2 -2
- package/dist/{chunk-YLNEKJQ5.js → chunk-SRSVMD6E.js} +2 -2
- package/dist/{chunk-P7OBLJAG.js → chunk-SUUULPJP.js} +13 -11
- package/dist/chunk-SUUULPJP.js.map +1 -0
- package/dist/chunk-THG6RXFR.js +68 -0
- package/dist/chunk-THG6RXFR.js.map +1 -0
- package/dist/{chunk-RRYBAE6E.js → chunk-UTLM6U75.js} +6 -66
- package/dist/chunk-UTLM6U75.js.map +1 -0
- package/dist/{chunk-BZ7UPUTY.js → chunk-X23SZR5N.js} +2 -2
- package/dist/{chunk-ZZ7FDJKJ.js → chunk-YMGLWNV5.js} +2 -2
- package/dist/{chunk-SB5UCPZH.js → chunk-ZIT2N7CI.js} +2 -2
- package/dist/{connections-CEcurtWI.d.ts → connections-tcxJgB1K.d.ts} +20 -23
- package/dist/core/index.cjs +1495 -414
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +276 -24
- package/dist/core/index.js +366 -85
- package/dist/core/index.js.map +1 -1
- package/dist/flow-vnext/index.js +6 -4
- package/dist/{graphql-client-B2tREsx6.d.ts → graphql-client-VK7-KGDc.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +28 -28
- package/dist/mantine/index.d.ts +4 -4
- package/dist/mantine/index.js +30 -32
- package/dist/mantine/index.js.map +1 -1
- package/dist/{types-Dqk5MTfW.d.ts → types-CYtPUWc7.d.ts} +889 -400
- package/package.json +3 -2
- package/dist/chunk-4DGCCXD6.js.map +0 -1
- package/dist/chunk-7VFCZZMP.js.map +0 -1
- package/dist/chunk-7W7UUUIE.js +0 -609
- package/dist/chunk-7W7UUUIE.js.map +0 -1
- package/dist/chunk-E6N2G3BQ.js.map +0 -1
- package/dist/chunk-F2SBFVIX.js.map +0 -1
- package/dist/chunk-HT6L7A5M.js +0 -12
- package/dist/chunk-HT6L7A5M.js.map +0 -1
- package/dist/chunk-IIIZZ4E4.js.map +0 -1
- package/dist/chunk-JIDTNKKL.js.map +0 -1
- package/dist/chunk-P7OBLJAG.js.map +0 -1
- package/dist/chunk-QND2IQ67.js.map +0 -1
- package/dist/chunk-RRYBAE6E.js.map +0 -1
- package/dist/chunk-TS2LNBF2.js +0 -68
- package/dist/chunk-TS2LNBF2.js.map +0 -1
- /package/dist/{chunk-STH2HPZK.js.map → chunk-6JOBSAZF.js.map} +0 -0
- /package/dist/{chunk-PFF6VY35.js.map → chunk-A7L3NJK6.js.map} +0 -0
- /package/dist/{chunk-MQCDMHRZ.js.map → chunk-C376YPPE.js.map} +0 -0
- /package/dist/{chunk-4PONO4US.js.map → chunk-CMG6TZKH.js.map} +0 -0
- /package/dist/{chunk-DSAOXGJH.js.map → chunk-DMXZIAAW.js.map} +0 -0
- /package/dist/{chunk-676HDB7K.js.map → chunk-EH7EYO4N.js.map} +0 -0
- /package/dist/{chunk-5IH3VC5I.js.map → chunk-FJ36VM6S.js.map} +0 -0
- /package/dist/{chunk-IFWKRCFF.js.map → chunk-J6AWMFEF.js.map} +0 -0
- /package/dist/{chunk-ZP4D73DO.js.map → chunk-JDNOVB6L.js.map} +0 -0
- /package/dist/{chunk-NIXT2SBH.js.map → chunk-JK6RAKE3.js.map} +0 -0
- /package/dist/{chunk-EGVS23DR.js.map → chunk-L7WHIPGC.js.map} +0 -0
- /package/dist/{chunk-IVOOK475.js.map → chunk-LSWKBCB3.js.map} +0 -0
- /package/dist/{chunk-NJAII6CO.js.map → chunk-M3GHFF5N.js.map} +0 -0
- /package/dist/{chunk-ILSFU3WD.js.map → chunk-MQAJXYIS.js.map} +0 -0
- /package/dist/{chunk-QZYCJ2GZ.js.map → chunk-MY22PTP4.js.map} +0 -0
- /package/dist/{chunk-JVROGQ7Q.js.map → chunk-QSUE3ZFB.js.map} +0 -0
- /package/dist/{chunk-FFYZXA75.js.map → chunk-RETGBEFM.js.map} +0 -0
- /package/dist/{chunk-VRZ5LMOW.js.map → chunk-RQS3KQLQ.js.map} +0 -0
- /package/dist/{chunk-SEJJ7CRI.js.map → chunk-RV7QJFSE.js.map} +0 -0
- /package/dist/{chunk-GR4SIU32.js.map → chunk-S2ETTOE5.js.map} +0 -0
- /package/dist/{chunk-YLNEKJQ5.js.map → chunk-SRSVMD6E.js.map} +0 -0
- /package/dist/{chunk-BZ7UPUTY.js.map → chunk-X23SZR5N.js.map} +0 -0
- /package/dist/{chunk-ZZ7FDJKJ.js.map → chunk-YMGLWNV5.js.map} +0 -0
- /package/dist/{chunk-SB5UCPZH.js.map → chunk-ZIT2N7CI.js.map} +0 -0
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/lib/topicActions/topicActionBridge.ts","../../src/core/lib/topicActions/externalExecutorAdapter.ts","../../src/core/templates/oracleInitFlow.ts"],"sourcesContent":["import * as Y from 'yjs';\nimport { canonicalActionJson, sha256Digest } from '../actionRegistry/digest';\nimport { ACTION_REGISTRY_VERSION, generateActionManifest } from '../actionRegistry/manifest';\nimport { getAction } from '../actionRegistry/registry';\nimport { validateTopicSemanticRecordBatch } from '../actionRegistry/topicSemanticRecords';\nimport type { ActionDefinition, TopicActionRecord, TopicExecutionContext } from '../actionRegistry/types';\n\nexport type TopicActionReceiptStatus = 'requested' | 'awaiting_confirmation' | 'running' | 'succeeded' | 'failed' | 'rejected' | 'cancelled' | 'needs_verification';\nexport type TopicActionTerminalStatus = Extract<TopicActionReceiptStatus, 'succeeded' | 'failed' | 'rejected' | 'cancelled' | 'needs_verification'>;\n\nexport interface TopicActionThreadUpdateV1 {\n version: 1;\n updateId: `sha256:${string}`;\n topicId: string;\n requestId: string;\n receipt: { receiptId: string; operationId?: string };\n action: { type: string; displayName: string; description: string };\n status: TopicActionTerminalStatus;\n occurredAt: string;\n semanticRecords: Array<{ recordId: string; type: string; version: number; displayName: string; description: string }>;\n body: string;\n /** Informational only: this message never advances a governed lifecycle. */\n lifecycleEffect: 'none';\n}\n\nexport interface TopicActionReceiptV2 {\n version: 2;\n receiptId: string;\n sequence: number;\n requestId: string;\n topicId: string;\n topicRevision: string;\n action: { type: string; can: string; registryVersion: string; contractDigest: `sha256:${string}` };\n runtime: {\n provider: TopicExecutionContext['executorProvider'];\n bindingId?: string;\n flowUri?: string;\n sessionRunId?: string;\n nodeId?: string;\n executionId: string;\n };\n actorDid: string;\n executorDid: string;\n status: TopicActionReceiptStatus;\n idempotencyKey: string;\n occurredAt: string;\n authorization: { capability: string; invocation?: string; confirmation?: string };\n input: { digest: `sha256:${string}`; ref?: string; summary?: Record<string, unknown> };\n /** Ordered digest of the complete semantic record envelopes written with this receipt. */\n semanticRecordsDigest: `sha256:${string}`;\n output?: { digest: `sha256:${string}`; ref?: string; summary?: Record<string, unknown> };\n proof?: { kind: 'fields' | 'custom' | 'host-receipt'; digest: `sha256:${string}`; refs?: string[] };\n evidenceRefs?: string[];\n traceRef?: string;\n error?: { code?: string; message: string };\n issuerDid: string;\n signature: string;\n}\n\nexport type UnsignedTopicActionReceiptV2 = Omit<TopicActionReceiptV2, 'issuerDid' | 'signature'>;\n\nexport interface TopicActionReceiptSigner {\n sign(receipt: UnsignedTopicActionReceiptV2): Promise<{ issuerDid: string; signature: string }>;\n}\n\nexport interface TopicActionReceiptVerifier {\n verify(\n receipt: TopicActionReceiptV2,\n expected: { audience: string; capability: 'topic/record-action'; actionType: string; topicId: string }\n ): Promise<{ valid: boolean; reason?: string; audience?: string; capabilities?: string[]; revoked?: boolean; expiresAt?: string }>;\n}\n\nexport interface TopicActionReceiptSink {\n appendReceipt(params: { receipt: TopicActionReceiptV2; semanticRecords: TopicActionRecord[]; previousRevision: string }): Promise<{ operationId: string; topicRevision: string }>;\n appendThreadUpdate(params: { update: TopicActionThreadUpdateV1; transactionId: string }): Promise<{ eventId: string }>;\n}\n\nexport class TopicRevisionConflictError extends Error {\n constructor(readonly currentRevision: string) {\n super(`Topic revision conflict; current revision is ${currentRevision}`);\n this.name = 'TopicRevisionConflictError';\n }\n}\n\nexport interface TopicActionOutboxEntry {\n deduplicationKey: string;\n receipt: TopicActionReceiptV2;\n semanticRecords: TopicActionRecord[];\n writeRevision: string;\n queuedAt: string;\n attempts: number;\n threadUpdate?: TopicActionThreadUpdateV1;\n receiptDelivery?: { operationId: string; topicRevision: string };\n noticeDelivery?: { eventId: string };\n lastError?: string;\n}\n\nexport interface TopicActionOutboxStore {\n nextSequence(topicId: string, requestId: string): Promise<number>;\n enqueue(entry: TopicActionOutboxEntry): Promise<'queued' | 'duplicate'>;\n pending(): Promise<TopicActionOutboxEntry[]>;\n update(entry: TopicActionOutboxEntry): Promise<void>;\n markDelivered(deduplicationKey: string, operationId: string, topicRevision: string): Promise<void>;\n has(deduplicationKey: string): Promise<boolean>;\n}\n\nfunction mergeOutboxProgress(current: TopicActionOutboxEntry, next: TopicActionOutboxEntry): TopicActionOutboxEntry {\n return {\n ...current,\n ...next,\n attempts: Math.max(current.attempts, next.attempts),\n receiptDelivery: next.receiptDelivery ?? current.receiptDelivery,\n noticeDelivery: next.noticeDelivery ?? current.noticeDelivery,\n };\n}\n\nexport class InMemoryTopicActionOutboxStore implements TopicActionOutboxStore {\n private readonly entries = new Map<string, TopicActionOutboxEntry>();\n private readonly delivered = new Set<string>();\n private readonly sequences = new Map<string, number>();\n\n async nextSequence(topicId: string, requestId: string): Promise<number> {\n const key = `${topicId}|${requestId}`;\n const sequence = (this.sequences.get(key) || 0) + 1;\n this.sequences.set(key, sequence);\n return sequence;\n }\n\n async enqueue(entry: TopicActionOutboxEntry): Promise<'queued' | 'duplicate'> {\n if (this.entries.has(entry.deduplicationKey) || this.delivered.has(entry.deduplicationKey)) return 'duplicate';\n this.entries.set(entry.deduplicationKey, structuredClone(entry));\n return 'queued';\n }\n\n async pending(): Promise<TopicActionOutboxEntry[]> {\n return [...this.entries.values()].map((entry) => structuredClone(entry));\n }\n\n async update(entry: TopicActionOutboxEntry): Promise<void> {\n if (this.delivered.has(entry.deduplicationKey)) return;\n const current = this.entries.get(entry.deduplicationKey);\n this.entries.set(entry.deduplicationKey, structuredClone(current ? mergeOutboxProgress(current, entry) : entry));\n }\n\n async markDelivered(deduplicationKey: string): Promise<void> {\n this.entries.delete(deduplicationKey);\n this.delivered.add(deduplicationKey);\n }\n\n async has(deduplicationKey: string): Promise<boolean> {\n return this.entries.has(deduplicationKey) || this.delivered.has(deduplicationKey);\n }\n}\n\n/** Durable, collaboration-safe outbox stored alongside the Flow Y.Doc. */\nexport class YjsTopicActionOutboxStore implements TopicActionOutboxStore {\n private readonly entries: Y.Map<TopicActionOutboxEntry>;\n private readonly delivered: Y.Map<{ operationId: string; topicRevision: string }>;\n private readonly sequences: Y.Map<number>;\n\n constructor(private readonly yDoc: Y.Doc) {\n this.entries = yDoc.getMap<TopicActionOutboxEntry>('topicActionReceiptOutbox');\n this.delivered = yDoc.getMap<{ operationId: string; topicRevision: string }>('topicActionReceiptDelivered');\n this.sequences = yDoc.getMap<number>('topicActionReceiptSequences');\n }\n\n async nextSequence(topicId: string, requestId: string): Promise<number> {\n const key = `${topicId}|${requestId}`;\n let sequence = 0;\n this.yDoc.transact(() => {\n sequence = (this.sequences.get(key) || 0) + 1;\n this.sequences.set(key, sequence);\n }, 'topic-action-sequence');\n return sequence;\n }\n\n async enqueue(entry: TopicActionOutboxEntry): Promise<'queued' | 'duplicate'> {\n if (this.entries.has(entry.deduplicationKey) || this.delivered.has(entry.deduplicationKey)) return 'duplicate';\n this.entries.set(entry.deduplicationKey, structuredClone(entry));\n return 'queued';\n }\n\n async pending(): Promise<TopicActionOutboxEntry[]> {\n return [...this.entries.values()].filter((entry) => !this.delivered.has(entry.deduplicationKey)).map((entry) => structuredClone(entry));\n }\n\n async update(entry: TopicActionOutboxEntry): Promise<void> {\n this.yDoc.transact(() => {\n if (this.delivered.has(entry.deduplicationKey)) return;\n const current = this.entries.get(entry.deduplicationKey);\n this.entries.set(entry.deduplicationKey, structuredClone(current ? mergeOutboxProgress(current, entry) : entry));\n }, 'topic-action-outbox-progress');\n }\n\n async markDelivered(deduplicationKey: string, operationId: string, topicRevision: string): Promise<void> {\n this.yDoc.transact(() => {\n this.entries.delete(deduplicationKey);\n this.delivered.set(deduplicationKey, { operationId, topicRevision });\n }, 'topic-action-delivered');\n }\n\n async has(deduplicationKey: string): Promise<boolean> {\n return this.entries.has(deduplicationKey) || this.delivered.has(deduplicationKey);\n }\n}\n\nexport type TopicActionWriteBackState = 'delivered' | 'queued' | 'duplicate' | 'rejected';\nexport interface TopicActionWriteBackResult {\n state: TopicActionWriteBackState;\n receiptId?: string;\n operationId?: string;\n topicRevision?: string;\n threadEventId?: string;\n error?: string;\n}\n\nexport interface RecordFlowActionPhaseParams {\n topic: TopicExecutionContext;\n actionType: string;\n actorDid: string;\n executorDid: string;\n executionId: string;\n status: TopicActionReceiptStatus;\n input: Record<string, unknown>;\n output?: Record<string, unknown>;\n semanticRecords?: TopicActionRecord[];\n flowUri?: string;\n sessionRunId?: string;\n nodeId?: string;\n invocationReference?: string;\n traceReference?: string;\n evidenceReferences?: string[];\n error?: { code?: string; message: string };\n occurredAt?: string;\n}\n\nfunction readPath(value: Record<string, unknown>, path: string): unknown {\n return path.split('.').reduce<unknown>((current, segment) => (current && typeof current === 'object' ? (current as Record<string, unknown>)[segment] : undefined), value);\n}\n\nfunction safeSummary(value: Record<string, unknown> | undefined, sensitivePaths: string[]): Record<string, unknown> | undefined {\n if (!value) return undefined;\n const sensitiveRoots = new Set(sensitivePaths.map((path) => path.split('.')[0]));\n const summary: Record<string, unknown> = {};\n for (const key of Object.keys(value).sort()) {\n if (Object.keys(summary).length >= 20 || sensitiveRoots.has(key)) continue;\n const item = value[key];\n if (typeof item === 'string') summary[key] = item.length <= 240 ? item : `${item.slice(0, 237)}…`;\n else if (typeof item === 'number' || typeof item === 'boolean' || item === null) summary[key] = item;\n else if (Array.isArray(item)) summary[key] = { count: item.length };\n else if (item && typeof item === 'object') summary[key] = { digest: sha256Digest(item) };\n }\n return Object.keys(summary).length > 0 ? summary : undefined;\n}\n\nfunction proofFor(action: ActionDefinition, output: Record<string, unknown> | undefined): TopicActionReceiptV2['proof'] {\n if (!output || action.proof === 'none') return undefined;\n if ('validate' in action.proof) return { kind: 'custom', digest: sha256Digest(output) };\n const values = action.proof.fields.map((path) => readPath(output, path)).filter((value) => value !== undefined && value !== null && value !== '');\n const refs = values.filter((value): value is string => typeof value === 'string' && value.length <= 500);\n return { kind: 'fields', digest: sha256Digest(values), ...(refs.length > 0 ? { refs: [...new Set(refs)].slice(0, 50) } : {}) };\n}\n\nfunction localPhaseDeduplicationKey(receipt: Pick<TopicActionReceiptV2, 'topicId' | 'requestId' | 'status' | 'idempotencyKey'> & { runtime: { executionId: string } }): string {\n return sha256Digest({\n topicId: receipt.topicId,\n requestId: receipt.requestId,\n executionId: receipt.runtime.executionId,\n status: receipt.status,\n idempotencyKey: receipt.idempotencyKey,\n });\n}\n\nfunction externalReceiptDeduplicationKey(receipt: Pick<TopicActionReceiptV2, 'topicId' | 'requestId' | 'receiptId' | 'sequence'>): string {\n return sha256Digest({ topicId: receipt.topicId, requestId: receipt.requestId, receiptId: receipt.receiptId, sequence: receipt.sequence });\n}\n\nexport function topicSemanticRecordsDigest(records: readonly TopicActionRecord[]): `sha256:${string}` {\n return sha256Digest(records);\n}\n\nfunction validateSemanticRecords(action: ActionDefinition, records: TopicActionRecord[]): void {\n if (!action.topic) throw new Error('Action has no Topic policy');\n const result = validateTopicSemanticRecordBatch(records, action.topic);\n if (!result.valid) throw new Error(`Invalid Topic semantic record (${result.code})`);\n}\n\nconst TERMINAL_STATUSES = new Set<TopicActionReceiptStatus>(['succeeded', 'failed', 'rejected', 'cancelled', 'needs_verification']);\nconst MAX_RECEIPT_DELIVERY_ATTEMPTS = 3;\n\nfunction statusWording(status: TopicActionTerminalStatus): string {\n switch (status) {\n case 'succeeded':\n return 'completed successfully';\n case 'failed':\n return 'failed';\n case 'rejected':\n return 'was rejected';\n case 'cancelled':\n return 'was cancelled';\n case 'needs_verification':\n return 'completed and needs verification';\n }\n}\n\nexport function topicActionThreadUpdateBody(\n action: Pick<ActionDefinition, 'displayName' | 'description'>,\n status: TopicActionTerminalStatus,\n semanticRecords: TopicActionThreadUpdateV1['semanticRecords']\n): string {\n const recordText = semanticRecords.length > 0 ? ` ${semanticRecords.map((record) => `${record.displayName}: ${record.description}`).join(' ')}` : '';\n return `${action.displayName} ${statusWording(status)}. ${action.description}${recordText} This update does not change the Topic, contract, outcome, claim, or settlement lifecycle.`;\n}\n\nexport function topicActionThreadUpdateId(input: {\n topicId: string;\n requestId: string;\n receiptId: string;\n status: TopicActionTerminalStatus;\n semanticRecords: Array<{ recordId: string; type: string; version: number }>;\n}): `sha256:${string}` {\n return sha256Digest(input);\n}\n\n/** Build the one safe, deterministic Matrix update shared by every executor. */\nexport function buildTopicActionThreadUpdate(receipt: TopicActionReceiptV2, action: ActionDefinition, semanticRecords: TopicActionRecord[]): TopicActionThreadUpdateV1 | undefined {\n if (!TERMINAL_STATUSES.has(receipt.status)) return undefined;\n const status = receipt.status as TopicActionTerminalStatus;\n const definitions = new Map((action.topic?.semanticRecordTypes || []).map((definition) => [definition.type, definition]));\n const presentedRecords = semanticRecords.map((record) => {\n const definition = definitions.get(record.type)!;\n return {\n recordId: record.id,\n type: record.type,\n version: record.version,\n displayName: definition.displayName,\n description: definition.description,\n };\n });\n const body = topicActionThreadUpdateBody(action, status, presentedRecords);\n const semanticRecordReferences = presentedRecords.map(({ recordId, type, version }) => ({ recordId, type, version }));\n return {\n version: 1,\n updateId: topicActionThreadUpdateId({\n topicId: receipt.topicId,\n requestId: receipt.requestId,\n receiptId: receipt.receiptId,\n status,\n semanticRecords: semanticRecordReferences,\n }),\n topicId: receipt.topicId,\n requestId: receipt.requestId,\n receipt: { receiptId: receipt.receiptId },\n action: { type: action.type, displayName: action.displayName, description: action.description },\n status,\n occurredAt: receipt.occurredAt,\n semanticRecords: presentedRecords,\n body,\n lifecycleEffect: 'none',\n };\n}\n\nexport function topicActionThreadUpdateTransactionId(update: TopicActionThreadUpdateV1): string {\n return `topic-action-update-${update.updateId.slice('sha256:'.length)}`;\n}\n\nexport class TopicActionBridge {\n private readonly deliveries = new Map<string, Promise<TopicActionWriteBackResult>>();\n\n constructor(\n private readonly sink: TopicActionReceiptSink,\n private readonly signer: TopicActionReceiptSigner,\n private readonly store: TopicActionOutboxStore = new InMemoryTopicActionOutboxStore(),\n private readonly verifier?: TopicActionReceiptVerifier,\n private readonly now: () => Date = () => new Date()\n ) {}\n\n async recordFlowPhase(params: RecordFlowActionPhaseParams): Promise<TopicActionWriteBackResult> {\n const action = getAction(params.actionType);\n if (!action) return { state: 'rejected', error: `Unknown Action '${params.actionType}'` };\n const manifestEntry = generateActionManifest().actions.find((entry) => entry.type === action.type);\n if (!manifestEntry) return { state: 'rejected', error: `Action '${action.type}' is absent from Manifest v4` };\n const baseKind = params.topic.kind.source === 'standard' ? params.topic.kind.kind : params.topic.kind.baseKind;\n if (!action.topic?.supportedBaseKinds.includes(baseKind)) return { state: 'rejected', error: `Action '${action.type}' does not support Topic Kind '${baseKind}'` };\n const semanticRecords = params.semanticRecords || [];\n try {\n validateSemanticRecords(action, semanticRecords);\n } catch (error) {\n return { state: 'rejected', error: error instanceof Error ? error.message : 'Invalid Topic semantic records' };\n }\n\n const stablePhaseKey = localPhaseDeduplicationKey({\n topicId: params.topic.topicId,\n requestId: params.topic.requestId,\n status: params.status,\n idempotencyKey: params.topic.idempotencyKey,\n runtime: { executionId: params.executionId },\n });\n if (await this.store.has(stablePhaseKey)) return { state: 'duplicate' };\n\n const sequence = await this.store.nextSequence(params.topic.topicId, params.topic.requestId);\n const occurredAt = params.occurredAt || this.now().toISOString();\n const idempotencyKey = params.topic.idempotencyKey;\n const inputSummary = safeSummary(params.input, action.sensitiveInputPaths || []);\n const outputSummary = safeSummary(params.output, action.sensitiveOutputPaths || []);\n const proof = proofFor(action, params.output);\n const unsigned: UnsignedTopicActionReceiptV2 = {\n version: 2,\n receiptId: sha256Digest({ topicId: params.topic.topicId, requestId: params.topic.requestId, executionId: params.executionId, sequence, status: params.status }),\n sequence,\n requestId: params.topic.requestId,\n topicId: params.topic.topicId,\n topicRevision: params.topic.topicRevision,\n action: { type: action.type, can: manifestEntry.can, registryVersion: ACTION_REGISTRY_VERSION, contractDigest: manifestEntry.contractDigest },\n runtime: {\n provider: params.topic.executorProvider,\n ...(params.topic.bindingId ? { bindingId: params.topic.bindingId } : {}),\n ...(params.flowUri ? { flowUri: params.flowUri } : {}),\n ...(params.sessionRunId ? { sessionRunId: params.sessionRunId } : {}),\n ...(params.nodeId ? { nodeId: params.nodeId } : {}),\n executionId: params.executionId,\n },\n actorDid: params.actorDid,\n executorDid: params.executorDid,\n status: params.status,\n idempotencyKey,\n occurredAt,\n authorization: {\n capability: params.topic.topicCapabilityReference,\n ...(params.invocationReference ? { invocation: params.invocationReference } : {}),\n ...(params.topic.confirmationReference ? { confirmation: params.topic.confirmationReference } : {}),\n },\n input: { digest: sha256Digest(params.input), ...(inputSummary ? { summary: inputSummary } : {}) },\n semanticRecordsDigest: topicSemanticRecordsDigest(semanticRecords),\n ...(params.output ? { output: { digest: sha256Digest(params.output), ...(outputSummary ? { summary: outputSummary } : {}) } } : {}),\n ...(proof ? { proof } : {}),\n ...(params.evidenceReferences?.length ? { evidenceRefs: [...new Set(params.evidenceReferences)].slice(0, 100) } : {}),\n ...(params.traceReference ? { traceRef: params.traceReference } : {}),\n ...(params.error ? { error: { ...(params.error.code ? { code: params.error.code.slice(0, 80) } : {}), message: params.error.message.slice(0, 2000) } } : {}),\n };\n const signed = await this.signer.sign(unsigned);\n return this.queueAndFlush({ ...unsigned, ...signed }, action, semanticRecords, params.topic.topicRevision, stablePhaseKey);\n }\n\n async ingestExternalReceipt(receipt: TopicActionReceiptV2, semanticRecords: TopicActionRecord[] = []): Promise<TopicActionWriteBackResult> {\n const action = getAction(receipt.action.type);\n const manifest = generateActionManifest();\n const manifestEntry = action && manifest.actions.find((entry) => entry.type === action.type);\n if (!action || !manifestEntry) return { state: 'rejected', error: 'Receipt names an unknown Action' };\n if (receipt.action.contractDigest !== manifestEntry.contractDigest || receipt.action.can !== manifestEntry.can || receipt.action.registryVersion !== manifest.registryVersion) {\n return { state: 'rejected', error: 'Receipt Action contract does not match the live manifest' };\n }\n if (!this.verifier) return { state: 'rejected', error: 'No external receipt verifier is configured' };\n const verification = await this.verifier.verify(receipt, {\n audience: receipt.topicId,\n capability: 'topic/record-action',\n actionType: receipt.action.type,\n topicId: receipt.topicId,\n });\n if (!verification.valid || verification.revoked)\n return { state: 'rejected', error: verification.reason || (verification.revoked ? 'Receipt capability was revoked' : 'Receipt signature is invalid') };\n if (verification.audience && verification.audience !== receipt.topicId) return { state: 'rejected', error: 'Receipt has the wrong audience' };\n if (verification.capabilities && !verification.capabilities.includes('topic/record-action'))\n return { state: 'rejected', error: 'Receipt does not grant Topic receipt recording' };\n if (verification.expiresAt && Date.parse(verification.expiresAt) <= this.now().getTime()) return { state: 'rejected', error: 'Receipt capability is expired' };\n if (Date.parse(receipt.occurredAt) > this.now().getTime() + 5 * 60_000) return { state: 'rejected', error: 'Receipt occurrence time is too far in the future' };\n try {\n validateSemanticRecords(action, semanticRecords);\n } catch (error) {\n return { state: 'rejected', error: error instanceof Error ? error.message : 'Invalid Topic semantic records' };\n }\n if (receipt.semanticRecordsDigest !== topicSemanticRecordsDigest(semanticRecords)) {\n return { state: 'rejected', error: 'Receipt semantic record digest does not match its records' };\n }\n return this.queueAndFlush(receipt, action, semanticRecords, receipt.topicRevision, externalReceiptDeduplicationKey(receipt));\n }\n\n async flush(): Promise<TopicActionWriteBackResult[]> {\n const results: TopicActionWriteBackResult[] = [];\n for (const entry of await this.store.pending()) results.push(await this.deliver(entry));\n return results;\n }\n\n private async queueAndFlush(\n receipt: TopicActionReceiptV2,\n action: ActionDefinition,\n semanticRecords: TopicActionRecord[],\n writeRevision: string,\n key: string\n ): Promise<TopicActionWriteBackResult> {\n if (await this.store.has(key)) return { state: 'duplicate', receiptId: receipt.receiptId };\n const queued = await this.store.enqueue({\n deduplicationKey: key,\n receipt,\n semanticRecords,\n writeRevision,\n queuedAt: this.now().toISOString(),\n attempts: 0,\n threadUpdate: buildTopicActionThreadUpdate(receipt, action, semanticRecords),\n });\n if (queued === 'duplicate') return { state: 'duplicate', receiptId: receipt.receiptId };\n const entry = (await this.store.pending()).find((candidate) => candidate.deduplicationKey === key);\n return entry ? this.deliver(entry) : { state: 'duplicate', receiptId: receipt.receiptId };\n }\n\n private deliver(entry: TopicActionOutboxEntry): Promise<TopicActionWriteBackResult> {\n const inFlight = this.deliveries.get(entry.deduplicationKey);\n if (inFlight) return inFlight;\n const delivery = this.deliverOnce(entry).finally(() => this.deliveries.delete(entry.deduplicationKey));\n this.deliveries.set(entry.deduplicationKey, delivery);\n return delivery;\n }\n\n private async deliverOnce(entry: TopicActionOutboxEntry): Promise<TopicActionWriteBackResult> {\n let current = { ...entry, attempts: entry.attempts + 1 };\n try {\n if (!current.receiptDelivery) {\n const result = await this.sink.appendReceipt({ receipt: current.receipt, semanticRecords: current.semanticRecords, previousRevision: current.writeRevision });\n current = {\n ...current,\n receiptDelivery: result,\n writeRevision: result.topicRevision,\n threadUpdate: current.threadUpdate ? { ...current.threadUpdate, receipt: { ...current.threadUpdate.receipt, operationId: result.operationId } } : undefined,\n lastError: undefined,\n };\n await this.store.update(current);\n }\n if (current.threadUpdate && !current.noticeDelivery) {\n const notice = await this.sink.appendThreadUpdate({\n update: current.threadUpdate,\n transactionId: topicActionThreadUpdateTransactionId(current.threadUpdate),\n });\n current = { ...current, noticeDelivery: notice, lastError: undefined };\n await this.store.update(current);\n }\n const delivery = current.receiptDelivery!;\n await this.store.markDelivered(current.deduplicationKey, delivery.operationId, delivery.topicRevision);\n return {\n state: 'delivered',\n receiptId: current.receipt.receiptId,\n operationId: delivery.operationId,\n topicRevision: delivery.topicRevision,\n ...(current.noticeDelivery ? { threadEventId: current.noticeDelivery.eventId } : {}),\n };\n } catch (error) {\n if (!current.receiptDelivery && error instanceof TopicRevisionConflictError) {\n current = { ...current, writeRevision: error.currentRevision, lastError: error.message };\n await this.store.update(current);\n if (current.attempts < MAX_RECEIPT_DELIVERY_ATTEMPTS) return this.deliverOnce(current);\n }\n current = { ...current, lastError: error instanceof Error ? error.message : 'Topic write-back failed' };\n await this.store.update(current);\n return {\n state: 'queued',\n receiptId: current.receipt.receiptId,\n ...(current.receiptDelivery ? { operationId: current.receiptDelivery.operationId, topicRevision: current.receiptDelivery.topicRevision } : {}),\n error: current.lastError,\n };\n }\n }\n}\n\n/** Stable digest payload for any DID/UCAN/JWS receipt signer. */\nexport function topicActionReceiptSigningPayload(receipt: UnsignedTopicActionReceiptV2): string {\n return canonicalActionJson(receipt);\n}\n","import { generateActionManifest } from '../actionRegistry/manifest';\nimport type { TopicActionInvocationV1, TopicActionRecord, TopicActionRuntimeProvider } from '../actionRegistry/types';\nimport type { TopicActionBridge, TopicActionReceiptV2, TopicActionWriteBackResult } from './topicActionBridge';\n\nexport interface ExternalTopicExecutorResult {\n receipt: TopicActionReceiptV2;\n semanticRecords?: TopicActionRecord[];\n}\n\nexport interface ExternalTopicExecutorPort {\n invoke(invocation: TopicActionInvocationV1): Promise<ExternalTopicExecutorResult>;\n}\n\n/** Shared manifest/invocation boundary for both QiForge and MCP providers. */\nexport class ManifestBoundTopicExecutorAdapter {\n constructor(\n readonly provider: Exclude<TopicActionRuntimeProvider, 'qi-flow'>,\n private readonly executor: ExternalTopicExecutorPort,\n private readonly bridge: TopicActionBridge\n ) {}\n\n async execute(invocation: TopicActionInvocationV1): Promise<TopicActionWriteBackResult> {\n this.validateInvocation(invocation);\n const result = await this.executor.invoke(structuredClone(invocation));\n this.validateResult(invocation, result);\n return this.bridge.ingestExternalReceipt(result.receipt, result.semanticRecords || []);\n }\n\n private validateInvocation(invocation: TopicActionInvocationV1): void {\n if (invocation.version !== 1 || invocation.executorProvider !== this.provider) throw new Error(`Invocation is not addressed to ${this.provider}`);\n if (!invocation.requestId || !invocation.idempotencyKey || !invocation.topicId || !invocation.topicRevision) throw new Error('External Topic invocation is incomplete');\n if (!invocation.actorDid.startsWith('did:') || !invocation.executorDid.startsWith('did:')) throw new Error('External Topic invocation requires actor and executor DIDs');\n if (!invocation.topicCapabilityReference || !invocation.input.digest.startsWith('sha256:')) throw new Error('External Topic invocation lacks capability or safe input digest');\n const manifest = generateActionManifest();\n const action = manifest.actions.find((entry) => entry.type === invocation.actionType);\n if (!action || action.hidden || action.deprecated) throw new Error(`Action '${invocation.actionType}' is unavailable to external executors`);\n if (action.contractDigest !== invocation.actionContractDigest) throw new Error(`Action '${invocation.actionType}' contract digest does not match Manifest v4`);\n }\n\n private validateResult(invocation: TopicActionInvocationV1, result: ExternalTopicExecutorResult): void {\n const receipt = result.receipt;\n if (\n receipt.topicId !== invocation.topicId ||\n receipt.topicRevision !== invocation.topicRevision ||\n receipt.requestId !== invocation.requestId ||\n receipt.idempotencyKey !== invocation.idempotencyKey\n ) {\n throw new Error('External receipt does not correlate to its invocation');\n }\n if (receipt.runtime.provider !== this.provider || receipt.action.type !== invocation.actionType || receipt.action.contractDigest !== invocation.actionContractDigest) {\n throw new Error('External receipt provider or Action contract does not match its invocation');\n }\n if (receipt.actorDid !== invocation.actorDid || receipt.executorDid !== invocation.executorDid)\n throw new Error('External receipt actor or executor DID does not match its invocation');\n if (receipt.input.digest !== invocation.input.digest) throw new Error('External receipt input digest does not match its invocation');\n if (receipt.authorization.capability !== invocation.topicCapabilityReference) throw new Error('External receipt uses a different Topic capability reference');\n }\n}\n\nexport const createQiForgeTopicExecutorAdapter = (executor: ExternalTopicExecutorPort, bridge: TopicActionBridge): ManifestBoundTopicExecutorAdapter =>\n new ManifestBoundTopicExecutorAdapter('qiforge', executor, bridge);\n\nexport const createMcpTopicExecutorAdapter = (executor: ExternalTopicExecutorPort, bridge: TopicActionBridge): ManifestBoundTopicExecutorAdapter =>\n new ManifestBoundTopicExecutorAdapter('mcp', executor, bridge);\n","import type { FlowMetadata } from '../types/editor';\nimport type { FlowNode } from '../types/authorization';\n\n// ---------------------------------------------------------------------------\n// SurveyJS schema for the oracle configuration form\n// ---------------------------------------------------------------------------\n\nexport const oracleInitSurveySchema = {\n title: 'Oracle Configuration',\n description: 'Provide the details needed to initialise a new oracle on the IXO network.',\n logoPosition: 'right',\n pages: [\n {\n name: 'basicInfo',\n title: 'Basic Information',\n elements: [\n {\n type: 'text',\n name: 'projectName',\n title: 'Project Name',\n description: 'Used as the folder name — no spaces or special characters.',\n isRequired: true,\n validators: [\n {\n type: 'regex',\n text: 'Only lowercase letters, numbers, and hyphens are allowed (no spaces or special characters).',\n regex: '^[a-z0-9]+(-[a-z0-9]+)*$',\n },\n ],\n },\n {\n type: 'text',\n name: 'pin',\n title: 'PIN',\n description: 'A 6-digit PIN used to secure wallet operations.',\n isRequired: true,\n inputType: 'password',\n maxLength: 6,\n validators: [\n {\n type: 'regex',\n text: 'PIN must be exactly 6 digits.',\n regex: '^\\\\d{6}$',\n },\n ],\n },\n ],\n },\n {\n name: 'oracleDetails',\n title: 'Oracle Details',\n elements: [\n {\n type: 'text',\n name: 'oracleName',\n title: 'Oracle Name',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'orgName',\n title: 'Organisation Name',\n isRequired: true,\n },\n {\n type: 'comment',\n name: 'description',\n title: 'Description',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'location',\n title: 'Location',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'logoUrl',\n title: 'Logo URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'coverImageUrl',\n title: 'Cover Image URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n ],\n },\n {\n name: 'serviceConfig',\n title: 'Service Configuration',\n elements: [\n {\n type: 'text',\n name: 'apiUrl',\n title: 'API URL',\n isRequired: true,\n inputType: 'url',\n defaultValue: 'http://localhost:4000',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'price',\n title: 'Price',\n description: 'Service price in IXO tokens (minimum 1).',\n isRequired: true,\n inputType: 'number',\n defaultValue: 100,\n validators: [\n {\n type: 'numeric',\n text: 'Price must be at least 1.',\n minValue: 1,\n },\n ],\n },\n {\n type: 'dropdown',\n name: 'llmModel',\n title: 'LLM Model',\n isRequired: true,\n choices: [\n { value: 'kimi-k2.5', text: 'Kimi K2.5' },\n { value: 'claude-sonnet', text: 'Claude Sonnet' },\n { value: 'gpt-4o', text: 'GPT-4o' },\n { value: 'gemini-2.5', text: 'Gemini 2.5' },\n { value: 'llama-4', text: 'Llama 4' },\n { value: 'custom', text: 'Custom' },\n ],\n },\n {\n type: 'comment',\n name: 'opening',\n title: 'Opening Message',\n description: 'The greeting or introduction the agent uses when starting a conversation.',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'communicationStyle',\n title: 'Communication Style',\n description: 'How the agent should communicate (e.g. formal, friendly, concise).',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'capabilities',\n title: 'What can the agent do?',\n description: 'Describe what this agent is capable of doing for users.',\n isRequired: false,\n },\n ],\n },\n ],\n};\n\n// ---------------------------------------------------------------------------\n// Template generator\n// ---------------------------------------------------------------------------\n\nexport function createOracleInitFlowTemplate(): {\n metadata: FlowMetadata;\n nodes: FlowNode[];\n} {\n const metadata: FlowMetadata = {\n '@context': 'https://schema.ixo.world/flow/v1',\n _type: 'flow/oracle-init',\n schema_version: '1.0.0',\n doc_id: '',\n title: 'Oracle Init Flow',\n createdAt: new Date().toISOString(),\n createdBy: '',\n flowOwnerDid: '',\n };\n\n const nodes: FlowNode[] = [\n // ------------------------------------------------------------------\n // [1] Form — collects all oracle configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-form',\n type: 'form',\n props: {\n title: 'Oracle Configuration',\n description: 'Enter the details for your new oracle.',\n icon: 'checklist',\n surveySchema: JSON.stringify(oracleInitSurveySchema),\n },\n },\n\n // ------------------------------------------------------------------\n // [2] Skills — skill/MCP configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-skills',\n type: 'skills',\n props: {\n title: 'Oracle Skills & MCP Servers',\n description: 'Configure skills and MCP servers for the oracle.',\n icon: 'tools',\n skills: '[]',\n entityDid: '',\n mcpServers: '[]',\n status: 'pending',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-form',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [3] Action — Generate & Fund Wallet\n // Generates a new wallet and funds it in one step.\n // ------------------------------------------------------------------\n {\n id: 'oracle-wallet',\n type: 'action',\n props: {\n title: 'Generate & Fund Wallet',\n description: 'Generate a new IXO wallet and fund it with tokens.',\n icon: 'bolt',\n actionType: 'qi/wallet.generateAndFund',\n inputs: JSON.stringify({}),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-skills',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [4] Action — Create Identity (IID + Matrix)\n // Creates the on-chain IID document, then registers the Matrix account.\n // ------------------------------------------------------------------\n {\n id: 'oracle-identity',\n type: 'action',\n props: {\n title: 'Create Identity',\n description: 'Create on-chain DID document and register Matrix account.',\n icon: 'bolt',\n actionType: 'qi/identity.create',\n inputs: JSON.stringify({\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n did: '{{oracle-wallet.output.did}}',\n address: '{{oracle-wallet.output.address}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-wallet',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [5] Action — Create Oracle Entity\n // On-chain entity creation with P-256 encryption key.\n // ------------------------------------------------------------------\n {\n id: 'oracle-entity-create',\n type: 'action',\n props: {\n title: 'Create Oracle Entity',\n description: 'Create the oracle entity on the IXO network.',\n icon: 'bolt',\n actionType: 'qi/entity.createOracle',\n inputs: JSON.stringify({\n // Wallet outputs\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n address: '{{oracle-wallet.output.address}}',\n did: '{{oracle-wallet.output.did}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n // Matrix outputs (from identity block)\n matrixAccessToken: '{{oracle-identity.output.matrixAccessToken}}',\n matrixRoomId: '{{oracle-identity.output.matrixRoomId}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-identity',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [6] Action — Configure Oracle (contract + secrets + config)\n // Creates the user↔oracle DM room, encrypts secrets, stores config.\n // ------------------------------------------------------------------\n {\n id: 'oracle-configure',\n type: 'action',\n props: {\n title: 'Configure Oracle',\n description: 'Contract oracle, encrypt secrets, and store configuration.',\n icon: 'bolt',\n actionType: 'qi/oracle.configureOracle',\n inputs: JSON.stringify({\n // Contract input\n oracleEntityDid: '{{oracle-entity-create.output.entityDid}}',\n // Secrets routing (matrixRoomId comes from contract phase, not inputs)\n publicKeyMultibase: '{{oracle-entity-create.output.encryptionPublicKeyMultibase}}',\n verificationMethodId: '{{oracle-entity-create.output.encryptionVerificationMethodId}}',\n // Fresh mxLogin params\n matrixHomeServerUrl: '{{oracle-identity.output.matrixHomeServerUrl}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n // Sensitive plaintext values\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n // MCP auth secrets (already JWE-encrypted by skills block FlowDetail)\n mcpAuthSecrets: '{{oracle-skills.output.mcpAuthSecrets}}',\n // Skills outputs\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n // Identifiers\n matrixUserId: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n oracleAddress: '{{oracle-wallet.output.address}}',\n oracleDid: '{{oracle-wallet.output.did}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-entity-create',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [7] Action — Deploy Oracle (setup + start)\n // Clones repo, writes config, builds, then starts the process.\n // ------------------------------------------------------------------\n {\n id: 'oracle-deploy',\n type: 'action',\n props: {\n title: 'Deploy Oracle',\n description: 'Set up environment and start the oracle process.',\n icon: 'bolt',\n actionType: 'qi/oracle.deploy',\n inputs: JSON.stringify({\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n roomId: '{{oracle-configure.output.userOracleRoomId}}',\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n freshAccessToken: '{{oracle-configure.output.freshAccessToken}}',\n openRouterApiKey: '{{oracle-configure.output.openRouterApiKeyPlaintext}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-configure',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [8] Secrets — display credentials and download\n // ------------------------------------------------------------------\n {\n id: 'oracle-secrets',\n type: 'secrets',\n props: {\n title: 'Oracle Credentials',\n description: 'Download your oracle credentials after setup is complete.',\n icon: 'key',\n downloadEndpoint: '',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-deploy',\n requiredStatus: 'approved',\n },\n },\n ];\n\n return { metadata, nodes };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EO,IAAM,6BAAN,cAAyC,MAAM;AAAA,EACpD,YAAqB,iBAAyB;AAC5C,UAAM,gDAAgD,eAAe,EAAE;AADpD;AAEnB,SAAK,OAAO;AAAA,EACd;AACF;AAwBA,SAAS,oBAAoB,SAAiC,MAAsD;AAClH,SAAO;AAAA,IACL,GAAG;A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AC;AAAA,QACD,sBAAsB;AAAA,MACxB;AAAA,MACA,qBAAqB;AAAA,QACnB,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA;AAAA;AAAA;AAAA,IAKA;AAAA,MACE,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,QACL,OAAO;AAAA,QACP,aAAa;AAAA,QACb,MAAM;AAAA,QACN,kBAAkB;AAAA,QAClB,WAAW;AAAA,MACb;AAAA,MACA,qBAAqB;AAAA,QACnB,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,UAAU,MAAM;AAC3B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/core/lib/topicActions/topicActionBridge.ts","../../src/core/lib/topicActions/externalExecutorAdapter.ts","../../src/core/lib/ucan/census.ts","../../src/core/lib/ucan/actionAuthority.ts","../../src/core/templates/oracleInitFlow.ts"],"sourcesContent":["import * as Y from 'yjs';\nimport { canonicalActionJson, sha256Digest } from '../actionRegistry/digest';\nimport { ACTION_REGISTRY_VERSION, generateActionManifest } from '../actionRegistry/manifest';\nimport { getAction } from '../actionRegistry/registry';\nimport { validateTopicSemanticRecordBatch } from '../actionRegistry/topicSemanticRecords';\nimport type { ActionDefinition, TopicActionRecord, TopicExecutionContext } from '../actionRegistry/types';\n\nexport type TopicActionReceiptStatus = 'requested' | 'awaiting_confirmation' | 'running' | 'succeeded' | 'failed' | 'rejected' | 'cancelled' | 'needs_verification';\nexport type TopicActionTerminalStatus = Extract<TopicActionReceiptStatus, 'succeeded' | 'failed' | 'rejected' | 'cancelled' | 'needs_verification'>;\n\nexport interface TopicActionThreadUpdateV1 {\n version: 1;\n updateId: `sha256:${string}`;\n topicId: string;\n requestId: string;\n receipt: { receiptId: string; operationId?: string };\n action: { type: string; displayName: string; description: string };\n status: TopicActionTerminalStatus;\n occurredAt: string;\n semanticRecords: Array<{ recordId: string; type: string; version: number; displayName: string; description: string }>;\n body: string;\n /** Informational only: this message never advances a governed lifecycle. */\n lifecycleEffect: 'none';\n}\n\nexport interface TopicActionReceiptV2 {\n version: 2;\n receiptId: string;\n sequence: number;\n requestId: string;\n topicId: string;\n topicRevision: string;\n action: { type: string; can: string; registryVersion: string; contractDigest: `sha256:${string}` };\n runtime: {\n provider: TopicExecutionContext['executorProvider'];\n bindingId?: string;\n flowUri?: string;\n sessionRunId?: string;\n nodeId?: string;\n executionId: string;\n };\n actorDid: string;\n executorDid: string;\n status: TopicActionReceiptStatus;\n idempotencyKey: string;\n occurredAt: string;\n authorization: { capability: string; invocation?: string; confirmation?: string };\n input: { digest: `sha256:${string}`; ref?: string; summary?: Record<string, unknown> };\n /** Ordered digest of the complete semantic record envelopes written with this receipt. */\n semanticRecordsDigest: `sha256:${string}`;\n output?: { digest: `sha256:${string}`; ref?: string; summary?: Record<string, unknown> };\n proof?: { kind: 'fields' | 'custom' | 'host-receipt'; digest: `sha256:${string}`; refs?: string[] };\n evidenceRefs?: string[];\n traceRef?: string;\n error?: { code?: string; message: string };\n issuerDid: string;\n signature: string;\n}\n\nexport type UnsignedTopicActionReceiptV2 = Omit<TopicActionReceiptV2, 'issuerDid' | 'signature'>;\n\nexport interface TopicActionReceiptSigner {\n sign(receipt: UnsignedTopicActionReceiptV2): Promise<{ issuerDid: string; signature: string }>;\n}\n\nexport interface TopicActionReceiptVerifier {\n verify(\n receipt: TopicActionReceiptV2,\n expected: { audience: string; capability: 'topic/record-action'; actionType: string; topicId: string }\n ): Promise<{ valid: boolean; reason?: string; audience?: string; capabilities?: string[]; revoked?: boolean; expiresAt?: string }>;\n}\n\nexport interface TopicActionReceiptSink {\n appendReceipt(params: { receipt: TopicActionReceiptV2; semanticRecords: TopicActionRecord[]; previousRevision: string }): Promise<{ operationId: string; topicRevision: string }>;\n appendThreadUpdate(params: { update: TopicActionThreadUpdateV1; transactionId: string }): Promise<{ eventId: string }>;\n}\n\nexport class TopicRevisionConflictError extends Error {\n constructor(readonly currentRevision: string) {\n super(`Topic revision conflict; current revision is ${currentRevision}`);\n this.name = 'TopicRevisionConflictError';\n }\n}\n\nexport interface TopicActionOutboxEntry {\n deduplicationKey: string;\n receipt: TopicActionReceiptV2;\n semanticRecords: TopicActionRecord[];\n writeRevision: string;\n queuedAt: string;\n attempts: number;\n threadUpdate?: TopicActionThreadUpdateV1;\n receiptDelivery?: { operationId: string; topicRevision: string };\n noticeDelivery?: { eventId: string };\n lastError?: string;\n}\n\nexport interface TopicActionOutboxStore {\n nextSequence(topicId: string, requestId: string): Promise<number>;\n enqueue(entry: TopicActionOutboxEntry): Promise<'queued' | 'duplicate'>;\n pending(): Promise<TopicActionOutboxEntry[]>;\n update(entry: TopicActionOutboxEntry): Promise<void>;\n markDelivered(deduplicationKey: string, operationId: string, topicRevision: string): Promise<void>;\n has(deduplicationKey: string): Promise<boolean>;\n}\n\nfunction mergeOutboxProgress(current: TopicActionOutboxEntry, next: TopicActionOutboxEntry): TopicActionOutboxEntry {\n return {\n ...current,\n ...next,\n attempts: Math.max(current.attempts, next.attempts),\n receiptDelivery: next.receiptDelivery ?? current.receiptDelivery,\n noticeDelivery: next.noticeDelivery ?? current.noticeDelivery,\n };\n}\n\nexport class InMemoryTopicActionOutboxStore implements TopicActionOutboxStore {\n private readonly entries = new Map<string, TopicActionOutboxEntry>();\n private readonly delivered = new Set<string>();\n private readonly sequences = new Map<string, number>();\n\n async nextSequence(topicId: string, requestId: string): Promise<number> {\n const key = `${topicId}|${requestId}`;\n const sequence = (this.sequences.get(key) || 0) + 1;\n this.sequences.set(key, sequence);\n return sequence;\n }\n\n async enqueue(entry: TopicActionOutboxEntry): Promise<'queued' | 'duplicate'> {\n if (this.entries.has(entry.deduplicationKey) || this.delivered.has(entry.deduplicationKey)) return 'duplicate';\n this.entries.set(entry.deduplicationKey, structuredClone(entry));\n return 'queued';\n }\n\n async pending(): Promise<TopicActionOutboxEntry[]> {\n return [...this.entries.values()].map((entry) => structuredClone(entry));\n }\n\n async update(entry: TopicActionOutboxEntry): Promise<void> {\n if (this.delivered.has(entry.deduplicationKey)) return;\n const current = this.entries.get(entry.deduplicationKey);\n this.entries.set(entry.deduplicationKey, structuredClone(current ? mergeOutboxProgress(current, entry) : entry));\n }\n\n async markDelivered(deduplicationKey: string): Promise<void> {\n this.entries.delete(deduplicationKey);\n this.delivered.add(deduplicationKey);\n }\n\n async has(deduplicationKey: string): Promise<boolean> {\n return this.entries.has(deduplicationKey) || this.delivered.has(deduplicationKey);\n }\n}\n\n/** Durable, collaboration-safe outbox stored alongside the Flow Y.Doc. */\nexport class YjsTopicActionOutboxStore implements TopicActionOutboxStore {\n private readonly entries: Y.Map<TopicActionOutboxEntry>;\n private readonly delivered: Y.Map<{ operationId: string; topicRevision: string }>;\n private readonly sequences: Y.Map<number>;\n\n constructor(private readonly yDoc: Y.Doc) {\n this.entries = yDoc.getMap<TopicActionOutboxEntry>('topicActionReceiptOutbox');\n this.delivered = yDoc.getMap<{ operationId: string; topicRevision: string }>('topicActionReceiptDelivered');\n this.sequences = yDoc.getMap<number>('topicActionReceiptSequences');\n }\n\n async nextSequence(topicId: string, requestId: string): Promise<number> {\n const key = `${topicId}|${requestId}`;\n let sequence = 0;\n this.yDoc.transact(() => {\n sequence = (this.sequences.get(key) || 0) + 1;\n this.sequences.set(key, sequence);\n }, 'topic-action-sequence');\n return sequence;\n }\n\n async enqueue(entry: TopicActionOutboxEntry): Promise<'queued' | 'duplicate'> {\n if (this.entries.has(entry.deduplicationKey) || this.delivered.has(entry.deduplicationKey)) return 'duplicate';\n this.entries.set(entry.deduplicationKey, structuredClone(entry));\n return 'queued';\n }\n\n async pending(): Promise<TopicActionOutboxEntry[]> {\n return [...this.entries.values()].filter((entry) => !this.delivered.has(entry.deduplicationKey)).map((entry) => structuredClone(entry));\n }\n\n async update(entry: TopicActionOutboxEntry): Promise<void> {\n this.yDoc.transact(() => {\n if (this.delivered.has(entry.deduplicationKey)) return;\n const current = this.entries.get(entry.deduplicationKey);\n this.entries.set(entry.deduplicationKey, structuredClone(current ? mergeOutboxProgress(current, entry) : entry));\n }, 'topic-action-outbox-progress');\n }\n\n async markDelivered(deduplicationKey: string, operationId: string, topicRevision: string): Promise<void> {\n this.yDoc.transact(() => {\n this.entries.delete(deduplicationKey);\n this.delivered.set(deduplicationKey, { operationId, topicRevision });\n }, 'topic-action-delivered');\n }\n\n async has(deduplicationKey: string): Promise<boolean> {\n return this.entries.has(deduplicationKey) || this.delivered.has(deduplicationKey);\n }\n}\n\nexport type TopicActionWriteBackState = 'delivered' | 'queued' | 'duplicate' | 'rejected';\nexport interface TopicActionWriteBackResult {\n state: TopicActionWriteBackState;\n receiptId?: string;\n operationId?: string;\n topicRevision?: string;\n threadEventId?: string;\n error?: string;\n}\n\nexport interface RecordFlowActionPhaseParams {\n topic: TopicExecutionContext;\n actionType: string;\n actorDid: string;\n executorDid: string;\n executionId: string;\n status: TopicActionReceiptStatus;\n input: Record<string, unknown>;\n output?: Record<string, unknown>;\n semanticRecords?: TopicActionRecord[];\n flowUri?: string;\n sessionRunId?: string;\n nodeId?: string;\n invocationReference?: string;\n traceReference?: string;\n evidenceReferences?: string[];\n error?: { code?: string; message: string };\n occurredAt?: string;\n}\n\nfunction readPath(value: Record<string, unknown>, path: string): unknown {\n return path.split('.').reduce<unknown>((current, segment) => (current && typeof current === 'object' ? (current as Record<string, unknown>)[segment] : undefined), value);\n}\n\nfunction safeSummary(value: Record<string, unknown> | undefined, sensitivePaths: string[]): Record<string, unknown> | undefined {\n if (!value) return undefined;\n const sensitiveRoots = new Set(sensitivePaths.map((path) => path.split('.')[0]));\n const summary: Record<string, unknown> = {};\n for (const key of Object.keys(value).sort()) {\n if (Object.keys(summary).length >= 20 || sensitiveRoots.has(key)) continue;\n const item = value[key];\n if (typeof item === 'string') summary[key] = item.length <= 240 ? item : `${item.slice(0, 237)}…`;\n else if (typeof item === 'number' || typeof item === 'boolean' || item === null) summary[key] = item;\n else if (Array.isArray(item)) summary[key] = { count: item.length };\n else if (item && typeof item === 'object') summary[key] = { digest: sha256Digest(item) };\n }\n return Object.keys(summary).length > 0 ? summary : undefined;\n}\n\nfunction proofFor(action: ActionDefinition, output: Record<string, unknown> | undefined): TopicActionReceiptV2['proof'] {\n if (!output || action.proof === 'none') return undefined;\n if ('validate' in action.proof) return { kind: 'custom', digest: sha256Digest(output) };\n const values = action.proof.fields.map((path) => readPath(output, path)).filter((value) => value !== undefined && value !== null && value !== '');\n const refs = values.filter((value): value is string => typeof value === 'string' && value.length <= 500);\n return { kind: 'fields', digest: sha256Digest(values), ...(refs.length > 0 ? { refs: [...new Set(refs)].slice(0, 50) } : {}) };\n}\n\nfunction localPhaseDeduplicationKey(receipt: Pick<TopicActionReceiptV2, 'topicId' | 'requestId' | 'status' | 'idempotencyKey'> & { runtime: { executionId: string } }): string {\n return sha256Digest({\n topicId: receipt.topicId,\n requestId: receipt.requestId,\n executionId: receipt.runtime.executionId,\n status: receipt.status,\n idempotencyKey: receipt.idempotencyKey,\n });\n}\n\nfunction externalReceiptDeduplicationKey(receipt: Pick<TopicActionReceiptV2, 'topicId' | 'requestId' | 'receiptId' | 'sequence'>): string {\n return sha256Digest({ topicId: receipt.topicId, requestId: receipt.requestId, receiptId: receipt.receiptId, sequence: receipt.sequence });\n}\n\nexport function topicSemanticRecordsDigest(records: readonly TopicActionRecord[]): `sha256:${string}` {\n return sha256Digest(records);\n}\n\nfunction validateSemanticRecords(action: ActionDefinition, records: TopicActionRecord[]): void {\n if (!action.topic) throw new Error('Action has no Topic policy');\n const result = validateTopicSemanticRecordBatch(records, action.topic);\n if (!result.valid) throw new Error(`Invalid Topic semantic record (${result.code})`);\n}\n\nconst TERMINAL_STATUSES = new Set<TopicActionReceiptStatus>(['succeeded', 'failed', 'rejected', 'cancelled', 'needs_verification']);\nconst MAX_RECEIPT_DELIVERY_ATTEMPTS = 3;\n\nfunction statusWording(status: TopicActionTerminalStatus): string {\n switch (status) {\n case 'succeeded':\n return 'completed successfully';\n case 'failed':\n return 'failed';\n case 'rejected':\n return 'was rejected';\n case 'cancelled':\n return 'was cancelled';\n case 'needs_verification':\n return 'completed and needs verification';\n }\n}\n\nexport function topicActionThreadUpdateBody(\n action: Pick<ActionDefinition, 'displayName' | 'description'>,\n status: TopicActionTerminalStatus,\n semanticRecords: TopicActionThreadUpdateV1['semanticRecords']\n): string {\n const recordText = semanticRecords.length > 0 ? ` ${semanticRecords.map((record) => `${record.displayName}: ${record.description}`).join(' ')}` : '';\n return `${action.displayName} ${statusWording(status)}. ${action.description}${recordText} This update does not change the Topic, contract, outcome, claim, or settlement lifecycle.`;\n}\n\nexport function topicActionThreadUpdateId(input: {\n topicId: string;\n requestId: string;\n receiptId: string;\n status: TopicActionTerminalStatus;\n semanticRecords: Array<{ recordId: string; type: string; version: number }>;\n}): `sha256:${string}` {\n return sha256Digest(input);\n}\n\n/** Build the one safe, deterministic Matrix update shared by every executor. */\nexport function buildTopicActionThreadUpdate(receipt: TopicActionReceiptV2, action: ActionDefinition, semanticRecords: TopicActionRecord[]): TopicActionThreadUpdateV1 | undefined {\n if (!TERMINAL_STATUSES.has(receipt.status)) return undefined;\n const status = receipt.status as TopicActionTerminalStatus;\n const definitions = new Map((action.topic?.semanticRecordTypes || []).map((definition) => [definition.type, definition]));\n const presentedRecords = semanticRecords.map((record) => {\n const definition = definitions.get(record.type)!;\n return {\n recordId: record.id,\n type: record.type,\n version: record.version,\n displayName: definition.displayName,\n description: definition.description,\n };\n });\n const body = topicActionThreadUpdateBody(action, status, presentedRecords);\n const semanticRecordReferences = presentedRecords.map(({ recordId, type, version }) => ({ recordId, type, version }));\n return {\n version: 1,\n updateId: topicActionThreadUpdateId({\n topicId: receipt.topicId,\n requestId: receipt.requestId,\n receiptId: receipt.receiptId,\n status,\n semanticRecords: semanticRecordReferences,\n }),\n topicId: receipt.topicId,\n requestId: receipt.requestId,\n receipt: { receiptId: receipt.receiptId },\n action: { type: action.type, displayName: action.displayName, description: action.description },\n status,\n occurredAt: receipt.occurredAt,\n semanticRecords: presentedRecords,\n body,\n lifecycleEffect: 'none',\n };\n}\n\nexport function topicActionThreadUpdateTransactionId(update: TopicActionThreadUpdateV1): string {\n return `topic-action-update-${update.updateId.slice('sha256:'.length)}`;\n}\n\nexport class TopicActionBridge {\n private readonly deliveries = new Map<string, Promise<TopicActionWriteBackResult>>();\n\n constructor(\n private readonly sink: TopicActionReceiptSink,\n private readonly signer: TopicActionReceiptSigner,\n private readonly store: TopicActionOutboxStore = new InMemoryTopicActionOutboxStore(),\n private readonly verifier?: TopicActionReceiptVerifier,\n private readonly now: () => Date = () => new Date()\n ) {}\n\n async recordFlowPhase(params: RecordFlowActionPhaseParams): Promise<TopicActionWriteBackResult> {\n const action = getAction(params.actionType);\n if (!action) return { state: 'rejected', error: `Unknown Action '${params.actionType}'` };\n const manifestEntry = generateActionManifest().actions.find((entry) => entry.type === action.type);\n if (!manifestEntry) return { state: 'rejected', error: `Action '${action.type}' is absent from Manifest v4` };\n const baseKind = params.topic.kind.source === 'standard' ? params.topic.kind.kind : params.topic.kind.baseKind;\n if (!action.topic?.supportedBaseKinds.includes(baseKind)) return { state: 'rejected', error: `Action '${action.type}' does not support Topic Kind '${baseKind}'` };\n const semanticRecords = params.semanticRecords || [];\n try {\n validateSemanticRecords(action, semanticRecords);\n } catch (error) {\n return { state: 'rejected', error: error instanceof Error ? error.message : 'Invalid Topic semantic records' };\n }\n\n const stablePhaseKey = localPhaseDeduplicationKey({\n topicId: params.topic.topicId,\n requestId: params.topic.requestId,\n status: params.status,\n idempotencyKey: params.topic.idempotencyKey,\n runtime: { executionId: params.executionId },\n });\n if (await this.store.has(stablePhaseKey)) return { state: 'duplicate' };\n\n const sequence = await this.store.nextSequence(params.topic.topicId, params.topic.requestId);\n const occurredAt = params.occurredAt || this.now().toISOString();\n const idempotencyKey = params.topic.idempotencyKey;\n const inputSummary = safeSummary(params.input, action.sensitiveInputPaths || []);\n const outputSummary = safeSummary(params.output, action.sensitiveOutputPaths || []);\n const proof = proofFor(action, params.output);\n const unsigned: UnsignedTopicActionReceiptV2 = {\n version: 2,\n receiptId: sha256Digest({ topicId: params.topic.topicId, requestId: params.topic.requestId, executionId: params.executionId, sequence, status: params.status }),\n sequence,\n requestId: params.topic.requestId,\n topicId: params.topic.topicId,\n topicRevision: params.topic.topicRevision,\n action: { type: action.type, can: manifestEntry.can, registryVersion: ACTION_REGISTRY_VERSION, contractDigest: manifestEntry.contractDigest },\n runtime: {\n provider: params.topic.executorProvider,\n ...(params.topic.bindingId ? { bindingId: params.topic.bindingId } : {}),\n ...(params.flowUri ? { flowUri: params.flowUri } : {}),\n ...(params.sessionRunId ? { sessionRunId: params.sessionRunId } : {}),\n ...(params.nodeId ? { nodeId: params.nodeId } : {}),\n executionId: params.executionId,\n },\n actorDid: params.actorDid,\n executorDid: params.executorDid,\n status: params.status,\n idempotencyKey,\n occurredAt,\n authorization: {\n capability: params.topic.topicCapabilityReference,\n ...(params.invocationReference ? { invocation: params.invocationReference } : {}),\n ...(params.topic.confirmationReference ? { confirmation: params.topic.confirmationReference } : {}),\n },\n input: { digest: sha256Digest(params.input), ...(inputSummary ? { summary: inputSummary } : {}) },\n semanticRecordsDigest: topicSemanticRecordsDigest(semanticRecords),\n ...(params.output ? { output: { digest: sha256Digest(params.output), ...(outputSummary ? { summary: outputSummary } : {}) } } : {}),\n ...(proof ? { proof } : {}),\n ...(params.evidenceReferences?.length ? { evidenceRefs: [...new Set(params.evidenceReferences)].slice(0, 100) } : {}),\n ...(params.traceReference ? { traceRef: params.traceReference } : {}),\n ...(params.error ? { error: { ...(params.error.code ? { code: params.error.code.slice(0, 80) } : {}), message: params.error.message.slice(0, 2000) } } : {}),\n };\n const signed = await this.signer.sign(unsigned);\n return this.queueAndFlush({ ...unsigned, ...signed }, action, semanticRecords, params.topic.topicRevision, stablePhaseKey);\n }\n\n async ingestExternalReceipt(receipt: TopicActionReceiptV2, semanticRecords: TopicActionRecord[] = []): Promise<TopicActionWriteBackResult> {\n const action = getAction(receipt.action.type);\n const manifest = generateActionManifest();\n const manifestEntry = action && manifest.actions.find((entry) => entry.type === action.type);\n if (!action || !manifestEntry) return { state: 'rejected', error: 'Receipt names an unknown Action' };\n if (receipt.action.contractDigest !== manifestEntry.contractDigest || receipt.action.can !== manifestEntry.can || receipt.action.registryVersion !== manifest.registryVersion) {\n return { state: 'rejected', error: 'Receipt Action contract does not match the live manifest' };\n }\n if (!this.verifier) return { state: 'rejected', error: 'No external receipt verifier is configured' };\n const verification = await this.verifier.verify(receipt, {\n audience: receipt.topicId,\n capability: 'topic/record-action',\n actionType: receipt.action.type,\n topicId: receipt.topicId,\n });\n if (!verification.valid || verification.revoked)\n return { state: 'rejected', error: verification.reason || (verification.revoked ? 'Receipt capability was revoked' : 'Receipt signature is invalid') };\n if (verification.audience && verification.audience !== receipt.topicId) return { state: 'rejected', error: 'Receipt has the wrong audience' };\n if (verification.capabilities && !verification.capabilities.includes('topic/record-action'))\n return { state: 'rejected', error: 'Receipt does not grant Topic receipt recording' };\n if (verification.expiresAt && Date.parse(verification.expiresAt) <= this.now().getTime()) return { state: 'rejected', error: 'Receipt capability is expired' };\n if (Date.parse(receipt.occurredAt) > this.now().getTime() + 5 * 60_000) return { state: 'rejected', error: 'Receipt occurrence time is too far in the future' };\n try {\n validateSemanticRecords(action, semanticRecords);\n } catch (error) {\n return { state: 'rejected', error: error instanceof Error ? error.message : 'Invalid Topic semantic records' };\n }\n if (receipt.semanticRecordsDigest !== topicSemanticRecordsDigest(semanticRecords)) {\n return { state: 'rejected', error: 'Receipt semantic record digest does not match its records' };\n }\n return this.queueAndFlush(receipt, action, semanticRecords, receipt.topicRevision, externalReceiptDeduplicationKey(receipt));\n }\n\n async flush(): Promise<TopicActionWriteBackResult[]> {\n const results: TopicActionWriteBackResult[] = [];\n for (const entry of await this.store.pending()) results.push(await this.deliver(entry));\n return results;\n }\n\n private async queueAndFlush(\n receipt: TopicActionReceiptV2,\n action: ActionDefinition,\n semanticRecords: TopicActionRecord[],\n writeRevision: string,\n key: string\n ): Promise<TopicActionWriteBackResult> {\n if (await this.store.has(key)) return { state: 'duplicate', receiptId: receipt.receiptId };\n const queued = await this.store.enqueue({\n deduplicationKey: key,\n receipt,\n semanticRecords,\n writeRevision,\n queuedAt: this.now().toISOString(),\n attempts: 0,\n threadUpdate: buildTopicActionThreadUpdate(receipt, action, semanticRecords),\n });\n if (queued === 'duplicate') return { state: 'duplicate', receiptId: receipt.receiptId };\n const entry = (await this.store.pending()).find((candidate) => candidate.deduplicationKey === key);\n return entry ? this.deliver(entry) : { state: 'duplicate', receiptId: receipt.receiptId };\n }\n\n private deliver(entry: TopicActionOutboxEntry): Promise<TopicActionWriteBackResult> {\n const inFlight = this.deliveries.get(entry.deduplicationKey);\n if (inFlight) return inFlight;\n const delivery = this.deliverOnce(entry).finally(() => this.deliveries.delete(entry.deduplicationKey));\n this.deliveries.set(entry.deduplicationKey, delivery);\n return delivery;\n }\n\n private async deliverOnce(entry: TopicActionOutboxEntry): Promise<TopicActionWriteBackResult> {\n let current = { ...entry, attempts: entry.attempts + 1 };\n try {\n if (!current.receiptDelivery) {\n const result = await this.sink.appendReceipt({ receipt: current.receipt, semanticRecords: current.semanticRecords, previousRevision: current.writeRevision });\n current = {\n ...current,\n receiptDelivery: result,\n writeRevision: result.topicRevision,\n threadUpdate: current.threadUpdate ? { ...current.threadUpdate, receipt: { ...current.threadUpdate.receipt, operationId: result.operationId } } : undefined,\n lastError: undefined,\n };\n await this.store.update(current);\n }\n if (current.threadUpdate && !current.noticeDelivery) {\n const notice = await this.sink.appendThreadUpdate({\n update: current.threadUpdate,\n transactionId: topicActionThreadUpdateTransactionId(current.threadUpdate),\n });\n current = { ...current, noticeDelivery: notice, lastError: undefined };\n await this.store.update(current);\n }\n const delivery = current.receiptDelivery!;\n await this.store.markDelivered(current.deduplicationKey, delivery.operationId, delivery.topicRevision);\n return {\n state: 'delivered',\n receiptId: current.receipt.receiptId,\n operationId: delivery.operationId,\n topicRevision: delivery.topicRevision,\n ...(current.noticeDelivery ? { threadEventId: current.noticeDelivery.eventId } : {}),\n };\n } catch (error) {\n if (!current.receiptDelivery && error instanceof TopicRevisionConflictError) {\n current = { ...current, writeRevision: error.currentRevision, lastError: error.message };\n await this.store.update(current);\n if (current.attempts < MAX_RECEIPT_DELIVERY_ATTEMPTS) return this.deliverOnce(current);\n }\n current = { ...current, lastError: error instanceof Error ? error.message : 'Topic write-back failed' };\n await this.store.update(current);\n return {\n state: 'queued',\n receiptId: current.receipt.receiptId,\n ...(current.receiptDelivery ? { operationId: current.receiptDelivery.operationId, topicRevision: current.receiptDelivery.topicRevision } : {}),\n error: current.lastError,\n };\n }\n }\n}\n\n/** Stable digest payload for any DID/UCAN/JWS receipt signer. */\nexport function topicActionReceiptSigningPayload(receipt: UnsignedTopicActionReceiptV2): string {\n return canonicalActionJson(receipt);\n}\n","import { generateActionManifest } from '../actionRegistry/manifest';\nimport type { TopicActionInvocationV1, TopicActionRecord, TopicActionRuntimeProvider } from '../actionRegistry/types';\nimport type { TopicActionBridge, TopicActionReceiptV2, TopicActionWriteBackResult } from './topicActionBridge';\n\nexport interface ExternalTopicExecutorResult {\n receipt: TopicActionReceiptV2;\n semanticRecords?: TopicActionRecord[];\n}\n\nexport interface ExternalTopicExecutorPort {\n invoke(invocation: TopicActionInvocationV1): Promise<ExternalTopicExecutorResult>;\n}\n\n/** Shared manifest/invocation boundary for both QiForge and MCP providers. */\nexport class ManifestBoundTopicExecutorAdapter {\n constructor(\n readonly provider: Exclude<TopicActionRuntimeProvider, 'qi-flow'>,\n private readonly executor: ExternalTopicExecutorPort,\n private readonly bridge: TopicActionBridge\n ) {}\n\n async execute(invocation: TopicActionInvocationV1): Promise<TopicActionWriteBackResult> {\n this.validateInvocation(invocation);\n const result = await this.executor.invoke(structuredClone(invocation));\n this.validateResult(invocation, result);\n return this.bridge.ingestExternalReceipt(result.receipt, result.semanticRecords || []);\n }\n\n private validateInvocation(invocation: TopicActionInvocationV1): void {\n if (invocation.version !== 1 || invocation.executorProvider !== this.provider) throw new Error(`Invocation is not addressed to ${this.provider}`);\n if (!invocation.requestId || !invocation.idempotencyKey || !invocation.topicId || !invocation.topicRevision) throw new Error('External Topic invocation is incomplete');\n if (!invocation.actorDid.startsWith('did:') || !invocation.executorDid.startsWith('did:')) throw new Error('External Topic invocation requires actor and executor DIDs');\n if (!invocation.topicCapabilityReference || !invocation.input.digest.startsWith('sha256:')) throw new Error('External Topic invocation lacks capability or safe input digest');\n const manifest = generateActionManifest();\n const action = manifest.actions.find((entry) => entry.type === invocation.actionType);\n if (!action || action.hidden || action.deprecated) throw new Error(`Action '${invocation.actionType}' is unavailable to external executors`);\n if (action.contractDigest !== invocation.actionContractDigest) throw new Error(`Action '${invocation.actionType}' contract digest does not match Manifest v4`);\n }\n\n private validateResult(invocation: TopicActionInvocationV1, result: ExternalTopicExecutorResult): void {\n const receipt = result.receipt;\n if (\n receipt.topicId !== invocation.topicId ||\n receipt.topicRevision !== invocation.topicRevision ||\n receipt.requestId !== invocation.requestId ||\n receipt.idempotencyKey !== invocation.idempotencyKey\n ) {\n throw new Error('External receipt does not correlate to its invocation');\n }\n if (receipt.runtime.provider !== this.provider || receipt.action.type !== invocation.actionType || receipt.action.contractDigest !== invocation.actionContractDigest) {\n throw new Error('External receipt provider or Action contract does not match its invocation');\n }\n if (receipt.actorDid !== invocation.actorDid || receipt.executorDid !== invocation.executorDid)\n throw new Error('External receipt actor or executor DID does not match its invocation');\n if (receipt.input.digest !== invocation.input.digest) throw new Error('External receipt input digest does not match its invocation');\n if (receipt.authorization.capability !== invocation.topicCapabilityReference) throw new Error('External receipt uses a different Topic capability reference');\n }\n}\n\nexport const createQiForgeTopicExecutorAdapter = (executor: ExternalTopicExecutorPort, bridge: TopicActionBridge): ManifestBoundTopicExecutorAdapter =>\n new ManifestBoundTopicExecutorAdapter('qiforge', executor, bridge);\n\nexport const createMcpTopicExecutorAdapter = (executor: ExternalTopicExecutorPort, bridge: TopicActionBridge): ManifestBoundTopicExecutorAdapter =>\n new ManifestBoundTopicExecutorAdapter('mcp', executor, bridge);\n","/**\n * Read-only census of who a flow's grants really come from (decision 2).\n *\n * The flow-manager enforces \"authority roots at the room creator\", so every\n * flow whose grants were signed by someone else has to be found and re-signed\n * by its creator. This counts them. It never writes anything and\n * never decides authority — it reads each grant's signed CAR to find the\n * issuer at the top of its chain, and compares that with the room creator.\n * The doc's `flowOwnerDid` copy is reported next to it so the three can be\n * compared (creator vs root issuer vs Y.Doc owner), and nothing else.\n */\nimport { Delegation as UcantoDelegation } from '@ucanto/core';\nimport type { Doc as YDoc } from 'yjs';\n\nimport { flowOwnerOf } from '../flowOwner';\nimport { decodeCarBase64 } from './signedChain';\nimport { normalizeDid } from './normalizeDid';\n\nconst RESERVED_KEYS = new Set(['__root__', '__version__']);\n\nexport interface FlowAuthorityCensus {\n /** The room creator, '' when not known. */\n creatorDid: string;\n /** The doc's `root.flowOwnerDid` copy. Display only. */\n mirrorOwnerDid: string;\n /** Issuer read from the pinned root's CAR, '' when it has none that parses. */\n rootIssuerDid: string;\n rootIssuedByCreator: boolean;\n /** Grants with a readable CAR, root excluded. */\n grants: number;\n /** Grants whose chain starts with someone other than the creator. */\n grantsNotFromCreator: number;\n /** Records with no CAR or one that does not parse, or whose CID differs from its key. */\n unsignedRecords: number;\n /** Who signed the grants the creator did not, with counts, most first. */\n otherIssuers: Array<{ did: string; grants: number }>;\n /** True when the creator should re-sign: a known creator, and a root or any grant not theirs. */\n needsResign: boolean;\n}\n\ninterface ParsedNode {\n cid: { toString(): string };\n issuer: { did(): string };\n proofs?: readonly unknown[];\n}\n\nfunction unwrap(value: unknown): Record<string, unknown> | null {\n const plain = value && typeof (value as { toJSON?: unknown }).toJSON === 'function' ? (value as { toJSON(): unknown }).toJSON() : value;\n if (!plain || typeof plain !== 'object' || Array.isArray(plain)) return null;\n const record = plain as Record<string, unknown>;\n const data = record.data;\n return data && typeof data === 'object' && !Array.isArray(data) ? (data as Record<string, unknown>) : record;\n}\n\nasync function parse(car: unknown, cid: string): Promise<ParsedNode | null> {\n if (typeof car !== 'string' || !car) return null;\n try {\n const extracted = await UcantoDelegation.extract(decodeCarBase64(car));\n const node = extracted.ok as unknown as ParsedNode | undefined;\n if (!node || node.cid.toString() !== cid) return null;\n return node;\n } catch {\n return null;\n }\n}\n\n/** Issuer at the top of the chain, following the first proof, the way every verifier reports it. */\nfunction chainRootIssuer(node: ParsedNode): string {\n let current: ParsedNode = node;\n for (let depth = 0; depth < 32; depth += 1) {\n const parent = current.proofs?.[0] as ParsedNode | undefined;\n if (!parent || typeof parent.issuer?.did !== 'function') break;\n current = parent;\n }\n return normalizeDid(current.issuer.did());\n}\n\nexport async function censusFlowAuthority(yDoc: YDoc, creatorDid: string = flowOwnerOf(yDoc)): Promise<FlowAuthorityCensus> {\n const creator = creatorDid ? normalizeDid(creatorDid) : '';\n const delegations = yDoc.getMap<unknown>('delegations');\n const rootCid = delegations.get('__root__');\n const mirror = yDoc.getMap('root').get('flowOwnerDid');\n\n let rootIssuerDid = '';\n let grants = 0;\n let grantsNotFromCreator = 0;\n let unsignedRecords = 0;\n const others = new Map<string, number>();\n\n for (const [cid, raw] of delegations.entries()) {\n if (RESERVED_KEYS.has(cid)) continue;\n const record = unwrap(raw);\n const node = await parse(record?.delegation, cid);\n if (!node) {\n unsignedRecords += 1;\n continue;\n }\n const issuer = chainRootIssuer(node);\n if (cid === rootCid) {\n rootIssuerDid = normalizeDid(node.issuer.did());\n continue;\n }\n grants += 1;\n if (issuer !== creator) {\n grantsNotFromCreator += 1;\n others.set(issuer, (others.get(issuer) ?? 0) + 1);\n }\n }\n\n const rootIssuedByCreator = Boolean(creator && rootIssuerDid === creator);\n return {\n creatorDid: creator,\n mirrorOwnerDid: typeof mirror === 'string' ? mirror : '',\n rootIssuerDid,\n rootIssuedByCreator,\n grants,\n grantsNotFromCreator,\n unsignedRecords,\n otherIssuers: [...others.entries()].map(([did, count]) => ({ did, grants: count })).sort((a, b) => b.grants - a.grants || a.did.localeCompare(b.did)),\n needsResign: Boolean(creator) && ((Boolean(rootIssuerDid) && !rootIssuedByCreator) || grantsNotFromCreator > 0),\n };\n}\n\nexport interface FlowAuthorityCensusSummary {\n flows: number;\n flowsWithUnknownCreator: number;\n flowsNeedingResign: number;\n grantsNotFromCreator: number;\n}\n\n/** Add up per-flow censuses, e.g. across a workspace. */\nexport function summarizeFlowAuthorityCensus(censuses: FlowAuthorityCensus[]): FlowAuthorityCensusSummary {\n return censuses.reduce<FlowAuthorityCensusSummary>(\n (summary, census) => ({\n flows: summary.flows + 1,\n flowsWithUnknownCreator: summary.flowsWithUnknownCreator + (census.creatorDid ? 0 : 1),\n flowsNeedingResign: summary.flowsNeedingResign + (census.needsResign ? 1 : 0),\n grantsNotFromCreator: summary.grantsNotFromCreator + census.grantsNotFromCreator,\n }),\n { flows: 0, flowsWithUnknownCreator: 0, flowsNeedingResign: 0, grantsNotFromCreator: 0 }\n );\n}\n","/**\n * \"Who was allowed to do this step, and does that still check out?\" — the\n * re-verify view behind the step panel (F).\n *\n * A step is done either by a person in the Portal (their signed receipt in\n * the `invocations` map, contract §3) or by the flow-manager (its\n * `ixo.qi.flow.authority.v1` record in the room timeline, contract §4). Both\n * are checked from their signed CARs, as of when the step ran, and against\n * the room creator. The answer is one of four:\n *\n * - `verified` valid when it ran, and the grants behind it still are.\n * - `verified-at-the-time` valid when it ran; a grant has since expired or\n * been revoked.\n * - `not-verified` the signatures, chain, time or step do not check out\n * (with the reason in plain words).\n * - `no-time-anchor` a legacy receipt minted with no expiry: the\n * signatures check out, but when it ran rests only on\n * the unsigned record.\n */\nimport type { Doc as YDoc } from 'yjs';\n\nimport type { StoredInvocation } from '../../types/ucan';\nimport { readActionState } from '../flowEngine/runs';\nimport { normalizeDid } from './normalizeDid';\nimport { Delegation as UcantoDelegation } from '@ucanto/core';\n\nimport { decodeCarBase64, verifyInvocation, type UcanVerificationEnv, type VerifiedInvocation } from './signedChain';\n\nexport const FLOW_AUTHORITY_EVENT_TYPE = 'ixo.qi.flow.authority.v1';\n\nexport type StepAuthorityStatus = 'verified' | 'verified-at-the-time' | 'not-verified' | 'no-time-anchor';\n\nexport interface StepAuthorityResult {\n status: StepAuthorityStatus;\n /** Who did it: the Portal signer, or the flow-manager. */\n actorDid?: string;\n /** Owner first, the actor last. */\n chain?: string[];\n /** When it ran (epoch ms), from the signed time window. */\n at?: number;\n /** Where the proof came from. */\n source: 'portal-receipt' | 'flow-manager-record' | 'none';\n /** Plain words: why it is not verified, or what changed since. */\n reason?: string;\n /** For the flow-manager: the person whose signed request it acted on, when it recorded one. */\n requesterDid?: string;\n}\n\n/** The flow-manager's authority record (contract §4, as built by flow-runner). */\nexport interface FlowManagerAuthorityRecordV1 {\n v: 1;\n roomId: string;\n rootIssuer: string;\n grant: { cid: string; car: string };\n invocation: { cid: string; car: string };\n action: { can: string; with: string; safety: string; runId: string; stepId: string; attemptId: string; operationId: string; inputDigest: string };\n signers: Record<string, string[]>;\n requester?: { cid: string; car: string; acceptedAt?: number; rootIssuer?: string };\n}\n\nexport interface AuthorityEventLike {\n eventId?: string;\n originServerTs: number;\n content: unknown;\n}\n\nexport interface VerifyActionAuthorityParams {\n yDoc: YDoc;\n runId: string;\n stepId: string;\n /** The room creator. */\n ownerDid: string;\n flowUri: string;\n env: UcanVerificationEnv;\n /** The flow-manager's authority event for this step, when the host found one. */\n authorityEvent?: AuthorityEventLike | null;\n now?: () => number;\n}\n\nfunction isRecord(value: unknown): value is FlowManagerAuthorityRecordV1 {\n const record = value as Partial<FlowManagerAuthorityRecordV1> | null;\n return Boolean(record && record.v === 1 && record.grant?.car && record.invocation?.car && record.action && typeof record.rootIssuer === 'string');\n}\n\n/** Whether an authority event is about this run and step. */\nexport function authorityEventMatches(content: unknown, runId: string, stepId: string): boolean {\n return isRecord(content) && content.action.runId === runId && content.action.stepId === stepId;\n}\n\nfunction statusFor(invocation: VerifiedInvocation, revokedNow: string | undefined, now: number): Pick<StepAuthorityResult, 'status' | 'reason'> {\n if (revokedNow) return { status: 'verified-at-the-time', reason: 'A grant behind it has been cancelled since.' };\n if (invocation.grantsExpireAt !== undefined && invocation.grantsExpireAt <= now) {\n return { status: 'verified-at-the-time', reason: `A grant behind it expired on ${new Date(invocation.grantsExpireAt).toISOString()}.` };\n }\n return { status: 'verified' };\n}\n\nasync function verifyPortalReceipt(params: VerifyActionAuthorityParams, receipt: StoredInvocation, now: number): Promise<StepAuthorityResult> {\n const verdict = await verifyInvocation(receipt.invocation, {\n cid: receipt.cid,\n expectedAudience: params.ownerDid,\n ownerDid: params.ownerDid,\n actorDid: receipt.invokerDid,\n required: { can: 'flow/block/execute', with: `${params.flowUri}:${params.stepId}` },\n ...(receipt.sessionRunId ? { expectedFacts: { sessionRunId: receipt.sessionRunId } } : {}),\n env: params.env,\n at: receipt.executedAt,\n });\n if (!verdict.ok) return { status: 'not-verified', source: 'portal-receipt', actorDid: normalizeDid(receipt.invokerDid), reason: verdict.reason };\n const base = { source: 'portal-receipt' as const, actorDid: verdict.invocation.invokerDid, chain: verdict.invocation.proofChain, at: receipt.executedAt };\n if (verdict.noTimeAnchor) {\n return { ...base, status: 'no-time-anchor', reason: 'This receipt was signed with no expiry, so the time it ran is only what the record says.' };\n }\n return { ...base, ...statusFor(verdict.invocation, verdict.revokedNow, now) };\n}\n\nasync function verifyFlowManagerRecord(params: VerifyActionAuthorityParams, event: AuthorityEventLike, now: number): Promise<StepAuthorityResult> {\n const record = event.content;\n if (!isRecord(record)) return { status: 'not-verified', source: 'flow-manager-record', reason: \"The flow-manager's authority record could not be read.\" };\n if (normalizeDid(record.rootIssuer) !== normalizeDid(params.ownerDid)) {\n return {\n status: 'not-verified',\n source: 'flow-manager-record',\n reason: `The flow-manager acted under authority from ${record.rootIssuer}, who did not create this flow.`,\n };\n }\n // The keys each signer had when the step ran, as the flow-manager recorded\n // them: a DID's keys can change later, and the check is about then.\n const env: UcanVerificationEnv = {\n revocationChecker: params.env.revocationChecker,\n didResolver: async (did) => {\n if (did.startsWith('did:key:')) return { ok: [did as `did:key:${string}`] };\n const keys = (record.signers[did] ?? []).filter((key): key is `did:key:${string}` => key.startsWith('did:key:'));\n return keys.length > 0 ? { ok: keys } : { error: { name: 'DIDKeyResolutionError', did, message: `the record keeps no key for ${did}` } };\n },\n };\n const holder = await holderOf(record);\n const verdict = await verifyInvocation(record.invocation.car, {\n cid: record.invocation.cid,\n expectedAudience: holder,\n ownerDid: params.ownerDid,\n actorDid: holder,\n required: { can: record.action.can, with: record.action.with },\n expectedFacts: {\n runId: record.action.runId,\n stepId: record.action.stepId,\n attemptId: record.action.attemptId,\n operationId: record.action.operationId,\n inputDigest: record.action.inputDigest,\n },\n env,\n at: event.originServerTs,\n allowBlockExecuteFallback: record.action.safety !== 'fenced',\n });\n if (!verdict.ok) return { status: 'not-verified', source: 'flow-manager-record', actorDid: holder, reason: verdict.reason };\n if (!verdict.invocation.proofChainCids.includes(record.grant.cid)) {\n return { status: 'not-verified', source: 'flow-manager-record', actorDid: holder, reason: 'The flow-manager did not act under the grant it recorded.' };\n }\n let requesterDid: string | undefined;\n if (record.requester) {\n const requester = await verifyRequester(record, env, event.originServerTs, params.ownerDid);\n if ('reason' in requester) return { status: 'not-verified', source: 'flow-manager-record', actorDid: holder, reason: requester.reason };\n requesterDid = requester.did;\n }\n return {\n source: 'flow-manager-record',\n actorDid: holder,\n chain: verdict.invocation.proofChain,\n at: event.originServerTs,\n ...(requesterDid ? { requesterDid } : {}),\n ...statusFor(verdict.invocation, verdict.revokedNow, now),\n };\n}\n\nasync function holderOf(record: FlowManagerAuthorityRecordV1): Promise<string> {\n const extracted = await UcantoDelegation.extract(decodeCarBase64(record.grant.car));\n const grant = extracted.ok as unknown as { audience: { did(): string } } | undefined;\n return grant ? normalizeDid(grant.audience.did()) : '';\n}\n\nasync function verifyRequester(\n record: FlowManagerAuthorityRecordV1,\n env: UcanVerificationEnv,\n fallbackAt: number,\n ownerDid: string\n): Promise<{ did: string } | { reason: string }> {\n const requester = record.requester!;\n const extracted = await UcantoDelegation.extract(decodeCarBase64(requester.car));\n const node = extracted.ok as unknown as { audience: { did(): string }; issuer: { did(): string }; capabilities: Array<{ can: string; with: string }> } | undefined;\n const claimed = node?.capabilities?.[0];\n if (!node || !claimed) return { reason: \"The requester's signed request could not be read.\" };\n const verdict = await verifyInvocation(requester.car, {\n cid: requester.cid,\n expectedAudience: node.audience.did(),\n ownerDid,\n required: { can: claimed.can, with: claimed.with },\n expectedFacts: { type: 'qi.flow.request', runId: record.action.runId },\n env,\n // Checked as of when the flow-manager accepted it: a request lives for\n // minutes, the run it started for much longer.\n at: typeof requester.acceptedAt === 'number' ? requester.acceptedAt : fallbackAt,\n });\n if (!verdict.ok) return { reason: `The request the flow-manager acted on does not check out: ${verdict.reason}` };\n return { did: verdict.invocation.invokerDid };\n}\n\n/**\n * Re-verify who was allowed to do one step of one run. Reads the Portal\n * receipt the step's runtime points at when there is one, otherwise the\n * flow-manager's authority record the host passes in.\n */\nexport async function verifyActionAuthority(params: VerifyActionAuthorityParams): Promise<StepAuthorityResult> {\n const now = (params.now ?? Date.now)();\n if (!params.ownerDid) return { status: 'not-verified', source: 'none', reason: \"We can't tell who created this flow, so nothing in it can be checked.\" };\n const runtime = readActionState(params.yDoc, params.runId, params.stepId);\n const receiptCid = typeof runtime.lastInvocationCid === 'string' ? runtime.lastInvocationCid : undefined;\n const receipt = receiptCid ? (params.yDoc.getMap<StoredInvocation>('invocations').get(receiptCid) as StoredInvocation | undefined) : undefined;\n if (receipt && typeof receipt === 'object' && receipt.invocation) return verifyPortalReceipt(params, receipt, now);\n if (params.authorityEvent) return verifyFlowManagerRecord(params, params.authorityEvent, now);\n return {\n status: 'not-verified',\n source: 'none',\n reason: receiptCid ? 'The receipt this step points at is missing its signed copy.' : 'There is no signed proof of who did this step.',\n };\n}\n","import type { FlowMetadata } from '../types/editor';\nimport type { FlowNode } from '../types/authorization';\n\n// ---------------------------------------------------------------------------\n// SurveyJS schema for the oracle configuration form\n// ---------------------------------------------------------------------------\n\nexport const oracleInitSurveySchema = {\n title: 'Oracle Configuration',\n description: 'Provide the details needed to initialise a new oracle on the IXO network.',\n logoPosition: 'right',\n pages: [\n {\n name: 'basicInfo',\n title: 'Basic Information',\n elements: [\n {\n type: 'text',\n name: 'projectName',\n title: 'Project Name',\n description: 'Used as the folder name — no spaces or special characters.',\n isRequired: true,\n validators: [\n {\n type: 'regex',\n text: 'Only lowercase letters, numbers, and hyphens are allowed (no spaces or special characters).',\n regex: '^[a-z0-9]+(-[a-z0-9]+)*$',\n },\n ],\n },\n {\n type: 'text',\n name: 'pin',\n title: 'PIN',\n description: 'A 6-digit PIN used to secure wallet operations.',\n isRequired: true,\n inputType: 'password',\n maxLength: 6,\n validators: [\n {\n type: 'regex',\n text: 'PIN must be exactly 6 digits.',\n regex: '^\\\\d{6}$',\n },\n ],\n },\n ],\n },\n {\n name: 'oracleDetails',\n title: 'Oracle Details',\n elements: [\n {\n type: 'text',\n name: 'oracleName',\n title: 'Oracle Name',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'orgName',\n title: 'Organisation Name',\n isRequired: true,\n },\n {\n type: 'comment',\n name: 'description',\n title: 'Description',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'location',\n title: 'Location',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'logoUrl',\n title: 'Logo URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'coverImageUrl',\n title: 'Cover Image URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n ],\n },\n {\n name: 'serviceConfig',\n title: 'Service Configuration',\n elements: [\n {\n type: 'text',\n name: 'apiUrl',\n title: 'API URL',\n isRequired: true,\n inputType: 'url',\n defaultValue: 'http://localhost:4000',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'price',\n title: 'Price',\n description: 'Service price in IXO tokens (minimum 1).',\n isRequired: true,\n inputType: 'number',\n defaultValue: 100,\n validators: [\n {\n type: 'numeric',\n text: 'Price must be at least 1.',\n minValue: 1,\n },\n ],\n },\n {\n type: 'dropdown',\n name: 'llmModel',\n title: 'LLM Model',\n isRequired: true,\n choices: [\n { value: 'kimi-k2.5', text: 'Kimi K2.5' },\n { value: 'claude-sonnet', text: 'Claude Sonnet' },\n { value: 'gpt-4o', text: 'GPT-4o' },\n { value: 'gemini-2.5', text: 'Gemini 2.5' },\n { value: 'llama-4', text: 'Llama 4' },\n { value: 'custom', text: 'Custom' },\n ],\n },\n {\n type: 'comment',\n name: 'opening',\n title: 'Opening Message',\n description: 'The greeting or introduction the agent uses when starting a conversation.',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'communicationStyle',\n title: 'Communication Style',\n description: 'How the agent should communicate (e.g. formal, friendly, concise).',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'capabilities',\n title: 'What can the agent do?',\n description: 'Describe what this agent is capable of doing for users.',\n isRequired: false,\n },\n ],\n },\n ],\n};\n\n// ---------------------------------------------------------------------------\n// Template generator\n// ---------------------------------------------------------------------------\n\nexport function createOracleInitFlowTemplate(): {\n metadata: FlowMetadata;\n nodes: FlowNode[];\n} {\n const metadata: FlowMetadata = {\n '@context': 'https://schema.ixo.world/flow/v1',\n _type: 'flow/oracle-init',\n schema_version: '1.0.0',\n doc_id: '',\n title: 'Oracle Init Flow',\n createdAt: new Date().toISOString(),\n createdBy: '',\n flowOwnerDid: '',\n };\n\n const nodes: FlowNode[] = [\n // ------------------------------------------------------------------\n // [1] Form — collects all oracle configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-form',\n type: 'form',\n props: {\n title: 'Oracle Configuration',\n description: 'Enter the details for your new oracle.',\n icon: 'checklist',\n surveySchema: JSON.stringify(oracleInitSurveySchema),\n },\n },\n\n // ------------------------------------------------------------------\n // [2] Skills — skill/MCP configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-skills',\n type: 'skills',\n props: {\n title: 'Oracle Skills & MCP Servers',\n description: 'Configure skills and MCP servers for the oracle.',\n icon: 'tools',\n skills: '[]',\n entityDid: '',\n mcpServers: '[]',\n status: 'pending',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-form',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [3] Action — Generate & Fund Wallet\n // Generates a new wallet and funds it in one step.\n // ------------------------------------------------------------------\n {\n id: 'oracle-wallet',\n type: 'action',\n props: {\n title: 'Generate & Fund Wallet',\n description: 'Generate a new IXO wallet and fund it with tokens.',\n icon: 'bolt',\n actionType: 'qi/wallet.generateAndFund',\n inputs: JSON.stringify({}),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-skills',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [4] Action — Create Identity (IID + Matrix)\n // Creates the on-chain IID document, then registers the Matrix account.\n // ------------------------------------------------------------------\n {\n id: 'oracle-identity',\n type: 'action',\n props: {\n title: 'Create Identity',\n description: 'Create on-chain DID document and register Matrix account.',\n icon: 'bolt',\n actionType: 'qi/identity.create',\n inputs: JSON.stringify({\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n did: '{{oracle-wallet.output.did}}',\n address: '{{oracle-wallet.output.address}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-wallet',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [5] Action — Create Oracle Entity\n // On-chain entity creation with P-256 encryption key.\n // ------------------------------------------------------------------\n {\n id: 'oracle-entity-create',\n type: 'action',\n props: {\n title: 'Create Oracle Entity',\n description: 'Create the oracle entity on the IXO network.',\n icon: 'bolt',\n actionType: 'qi/entity.createOracle',\n inputs: JSON.stringify({\n // Wallet outputs\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n address: '{{oracle-wallet.output.address}}',\n did: '{{oracle-wallet.output.did}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n // Matrix outputs (from identity block)\n matrixAccessToken: '{{oracle-identity.output.matrixAccessToken}}',\n matrixRoomId: '{{oracle-identity.output.matrixRoomId}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-identity',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [6] Action — Configure Oracle (contract + secrets + config)\n // Creates the user↔oracle DM room, encrypts secrets, stores config.\n // ------------------------------------------------------------------\n {\n id: 'oracle-configure',\n type: 'action',\n props: {\n title: 'Configure Oracle',\n description: 'Contract oracle, encrypt secrets, and store configuration.',\n icon: 'bolt',\n actionType: 'qi/oracle.configureOracle',\n inputs: JSON.stringify({\n // Contract input\n oracleEntityDid: '{{oracle-entity-create.output.entityDid}}',\n // Secrets routing (matrixRoomId comes from contract phase, not inputs)\n publicKeyMultibase: '{{oracle-entity-create.output.encryptionPublicKeyMultibase}}',\n verificationMethodId: '{{oracle-entity-create.output.encryptionVerificationMethodId}}',\n // Fresh mxLogin params\n matrixHomeServerUrl: '{{oracle-identity.output.matrixHomeServerUrl}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n // Sensitive plaintext values\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n // MCP auth secrets (already JWE-encrypted by skills block FlowDetail)\n mcpAuthSecrets: '{{oracle-skills.output.mcpAuthSecrets}}',\n // Skills outputs\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n // Identifiers\n matrixUserId: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n oracleAddress: '{{oracle-wallet.output.address}}',\n oracleDid: '{{oracle-wallet.output.did}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-entity-create',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [7] Action — Deploy Oracle (setup + start)\n // Clones repo, writes config, builds, then starts the process.\n // ------------------------------------------------------------------\n {\n id: 'oracle-deploy',\n type: 'action',\n props: {\n title: 'Deploy Oracle',\n description: 'Set up environment and start the oracle process.',\n icon: 'bolt',\n actionType: 'qi/oracle.deploy',\n inputs: JSON.stringify({\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n roomId: '{{oracle-configure.output.userOracleRoomId}}',\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n freshAccessToken: '{{oracle-configure.output.freshAccessToken}}',\n openRouterApiKey: '{{oracle-configure.output.openRouterApiKeyPlaintext}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-configure',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [8] Secrets — display credentials and download\n // ------------------------------------------------------------------\n {\n id: 'oracle-secrets',\n type: 'secrets',\n props: {\n title: 'Oracle Credentials',\n description: 'Download your oracle credentials after setup is complete.',\n icon: 'key',\n downloadEndpoint: '',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-deploy',\n requiredStatus: 'approved',\n },\n },\n ];\n\n return { metadata, nodes };\n}\n"],"mappings":";;;;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AAM;AAAA,QACN,kBAAkB;AAAA,QAClB,WAAW;AAAA,MACb;AAAA,MACA,qBAAqB;AAAA,QACnB,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,UAAU,MAAM;AAC3B;","names":["UcantoDelegation","UcantoDelegation"]}
|
package/dist/flow-vnext/index.js
CHANGED
|
@@ -18,20 +18,17 @@ import {
|
|
|
18
18
|
armEffectClaim,
|
|
19
19
|
assertLegacyFlowOperationAllowed,
|
|
20
20
|
buildFlowResourceUri,
|
|
21
|
-
canonicalizeJson,
|
|
22
21
|
claimEffect,
|
|
23
22
|
computeActionContractDigest,
|
|
24
23
|
computeComposioAvailabilityDigest,
|
|
25
24
|
computeExecutionPolicyDigest,
|
|
26
25
|
computeFlowDefinitionDigest,
|
|
27
26
|
createPeerExecutor,
|
|
28
|
-
deepFreezeJson,
|
|
29
27
|
deriveAttemptId,
|
|
30
28
|
deriveEffectClaimKey,
|
|
31
29
|
deriveEventId,
|
|
32
30
|
deriveReceiptId,
|
|
33
31
|
deriveRunId,
|
|
34
|
-
digestCanonicalJson,
|
|
35
32
|
drainTopicReceiptOutbox,
|
|
36
33
|
fingerprintFlowCommand,
|
|
37
34
|
flowRunProjectionStorageKey,
|
|
@@ -55,8 +52,13 @@ import {
|
|
|
55
52
|
verifyFlowDefinitionRevision,
|
|
56
53
|
verifyFlowEvent,
|
|
57
54
|
verifyMatrixDefinitionAnchor
|
|
58
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-UTLM6U75.js";
|
|
59
56
|
import "../chunk-N3ORMGAI.js";
|
|
57
|
+
import {
|
|
58
|
+
canonicalizeJson,
|
|
59
|
+
deepFreezeJson,
|
|
60
|
+
digestCanonicalJson
|
|
61
|
+
} from "../chunk-THG6RXFR.js";
|
|
60
62
|
import "../chunk-NCSGIRRQ.js";
|
|
61
63
|
export {
|
|
62
64
|
ActionContractResolutionError,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
|
-
import { am as IxoBlockProps, k as IxoEditorOptions, a9 as IxoEditorType, h as IxoCollaborativeEditorOptions, c as BlocknoteHandlers, B as BlockRequirements, av as UnlMapConfig, aq as DynamicListDataProvider, ar as DynamicListPanelRenderer, as as DynamicListRenderer, ao as DomainCardRenderer, ad as RunEventAppender, y as Translate, at as TopicActionRuntimeContext, e as DelegationGrant } from './types-
|
|
2
|
+
import { am as IxoBlockProps, k as IxoEditorOptions, a9 as IxoEditorType, h as IxoCollaborativeEditorOptions, c as BlocknoteHandlers, B as BlockRequirements, av as UnlMapConfig, aq as DynamicListDataProvider, ar as DynamicListPanelRenderer, as as DynamicListRenderer, ao as DomainCardRenderer, ad as RunEventAppender, y as Translate, at as TopicActionRuntimeContext, e as DelegationGrant } from './types-CYtPUWc7.js';
|
|
3
3
|
import { Text, Doc, Map, Array as Array$1 } from 'yjs';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import * as _tiptap_core from '@tiptap/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ApiRequestBlockProps, a as ApiRequestBlockSpec, b as AuthorizationTab, c as AuthorizationTabState, B as BlockPresenceUser, C as CheckboxBlockProps, d as CheckboxBlockSpec, e as CoverImage, f as CoverImageProps, D as DevUcanGrantButton, E as Entity, g as EntityResponse, h as EntitySigningSetup, i as EntityVariables, j as EvaluationTab, k as EvaluationTabState, F as FlowPermissionsPanel, l as FlowStepRefProps, m as FlowStepRefSpec, G as GrantPermissionModal, n as GraphQLClient, o as GraphQLRequest, p as GraphQLResponse, H as HttpMethod, I as IxoEditor, q as IxoEditorProps, K as KeyValuePair, L as ListBlockProps, r as ListBlockSettings, s as ListBlockSpec, O as OverviewBlock, t as OverviewBlockProps, P as ProposalBlockProps, u as ProposalBlockSpec, v as getEntity, w as inlineContentSpecs, x as ixoGraphQLClient, y as useBlockPresence, z as useCreateCollaborativeIxoEditor, J as useCreateIxoEditor, M as useTrackBlockFocus } from './graphql-client-
|
|
2
|
-
export { A as AuthorizationResult, B as BaseUcanFlow, a as BuildFlowAgentContextParams, C as CompiledFlow, b as CompilerRegistry, E as ExecuteNodeParams, c as ExecutionContext, d as ExecutionOutcome, F as FLOW_CONNECTIONS_MAP_KEY, e as FLOW_CONNECTION_BINDINGS_MAP_KEY, f as FLOW_PARTICIPANTS_MAP_KEY, g as FlowAgentActor, h as FlowAgentCommand, i as FlowAgentCommandResult, j as FlowAgentContext, k as FlowAgentExecutor, l as FlowAgentLease, m as FlowAgentNodeSnapshot, n as FlowAgentPublicNodeState, o as FlowAgentService, p as FlowAgentTickResult, q as FlowCapability, r as FlowConnection, s as FlowConnectionBinding, t as FlowConnectionRequirementKey, u as FlowParticipant, v as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, w as ReadFlowResult, x as ReadableEditor, S as SetupFlowOptions, y as SetupFlowResult, z as acquireFlowAgentLease, D as appendAgentLedgerEvent, G as buildAuthzFromProps, H as buildFlowAgentContext, I as buildFlowNodeFromBlock, J as cleanupExpiredFlowAgentLeases, K as compileBaseUcanFlow, L as createAgentCommand, O as decompileToBaseUcanFlow, P as evaluateFlowAgentPolicy, Q as executeNode, T as executeQueuedAgentCommands, U as getActiveEditor, V as getFlowAgentMaps, W as isAuthorized, X as mergeCompiledFlows, Y as planRalphLoopCommands, Z as queueAgentCommand, _ as readAgentLedgerEvents, $ as readCompiledFlowFromYDoc, a0 as readFlow, a1 as readFlowAsBaseUcan, a2 as readFlowConnectionBindings, a3 as readFlowConnections, a4 as readFlowFromEditor, a5 as readFlowParticipants, a6 as readQueuedAgentCommands, a7 as releaseFlowAgentLease, a8 as removeFlowConnection, a9 as removeFlowConnectionBinding, aa as removeFlowParticipant, ab as setActiveEditor, ac as setFlowConnectionAgent, ad as setFlowConnectionOptional, ae as setFlowConnectionRequires, af as setFlowParticipantPowerLevel, ag as setFlowParticipantRequirements, ah as setupFlowFromBaseUcan, ai as tickFlowAgent, aj as upsertFlowConnection, ak as upsertFlowConnectionBinding, al as upsertFlowParticipant, am as validateAgentCommand, an as validateFlowAgentLease } from './connections-
|
|
3
|
-
export { A as Addr, a as AuthzExecActionTypes, B as BlockRequirements, b as BlocknoteContextValue, c as BlocknoteHandlers, d as BlocknoteProvider, C as CosmosMsgForEmpty, D as DelegationChainValidationResult, e as DelegationGrant, E as Expiration, F as FlowRuntimeStateManager, I as ImportProtocolTemplateResult, f as ImportProtocolTemplatesToSpaceParams, g as InvocationStore, h as IxoCollaborativeEditorOptions, i as IxoCollaborativeUser, j as IxoEditorConfig, k as IxoEditorOptions, l as IxoEditorTheme, L as ListProtocolDeedsWithTemplatesParams, M as MatrixPrivacySettings, m as MatrixRoom, n as MatrixSpace, o as MatrixSpaceStructure, p as MatrixSubspace, P as ProposalAction, q as ProposalResponse, r as ProtocolDeedWithTemplates, s as ProtocolTemplateSummary, S as SingleChoiceProposal, t as StakeType, t as StakeTypeValue, u as Status, v as StoredDelegation, w as StoredInvocation, T as Threshold, x as Timestamp, y as Translate, U as UcanCapability, z as UcanDelegationStore, G as UcanService, H as UcanServiceConfig, J as UcanServiceHandlers, K as Uint128, N as User, V as ValidatorActionType, O as Vote, Q as VoteInfo, R as VoteResponse, W as Votes, X as blockSpecs, Y as createInvocationStore, Z as createMemoryInvocationStore, _ as createMemoryUcanDelegationStore, $ as createRuntimeStateManager, a0 as createUcanDelegationStore, a1 as createUcanService, a2 as getExtraSlashMenuItems, a3 as useBlocknoteContext, a4 as useBlocknoteHandlers, a5 as useTranslate } from './types-
|
|
1
|
+
export { A as ApiRequestBlockProps, a as ApiRequestBlockSpec, b as AuthorizationTab, c as AuthorizationTabState, B as BlockPresenceUser, C as CheckboxBlockProps, d as CheckboxBlockSpec, e as CoverImage, f as CoverImageProps, D as DevUcanGrantButton, E as Entity, g as EntityResponse, h as EntitySigningSetup, i as EntityVariables, j as EvaluationTab, k as EvaluationTabState, F as FlowPermissionsPanel, l as FlowStepRefProps, m as FlowStepRefSpec, G as GrantPermissionModal, n as GraphQLClient, o as GraphQLRequest, p as GraphQLResponse, H as HttpMethod, I as IxoEditor, q as IxoEditorProps, K as KeyValuePair, L as ListBlockProps, r as ListBlockSettings, s as ListBlockSpec, O as OverviewBlock, t as OverviewBlockProps, P as ProposalBlockProps, u as ProposalBlockSpec, v as getEntity, w as inlineContentSpecs, x as ixoGraphQLClient, y as useBlockPresence, z as useCreateCollaborativeIxoEditor, J as useCreateIxoEditor, M as useTrackBlockFocus } from './graphql-client-VK7-KGDc.js';
|
|
2
|
+
export { A as AuthorizationResult, B as BaseUcanFlow, a as BuildFlowAgentContextParams, C as CompiledFlow, b as CompilerRegistry, E as ExecuteNodeParams, c as ExecutionContext, d as ExecutionOutcome, F as FLOW_CONNECTIONS_MAP_KEY, e as FLOW_CONNECTION_BINDINGS_MAP_KEY, f as FLOW_PARTICIPANTS_MAP_KEY, g as FlowAgentActor, h as FlowAgentCommand, i as FlowAgentCommandResult, j as FlowAgentContext, k as FlowAgentExecutor, l as FlowAgentLease, m as FlowAgentNodeSnapshot, n as FlowAgentPublicNodeState, o as FlowAgentService, p as FlowAgentTickResult, q as FlowCapability, r as FlowConnection, s as FlowConnectionBinding, t as FlowConnectionRequirementKey, u as FlowParticipant, v as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, w as ReadFlowResult, x as ReadableEditor, S as SetupFlowOptions, y as SetupFlowResult, z as acquireFlowAgentLease, D as appendAgentLedgerEvent, G as buildAuthzFromProps, H as buildFlowAgentContext, I as buildFlowNodeFromBlock, J as cleanupExpiredFlowAgentLeases, K as compileBaseUcanFlow, L as createAgentCommand, O as decompileToBaseUcanFlow, P as evaluateFlowAgentPolicy, Q as executeNode, T as executeQueuedAgentCommands, U as getActiveEditor, V as getFlowAgentMaps, W as isAuthorized, X as mergeCompiledFlows, Y as planRalphLoopCommands, Z as queueAgentCommand, _ as readAgentLedgerEvents, $ as readCompiledFlowFromYDoc, a0 as readFlow, a1 as readFlowAsBaseUcan, a2 as readFlowConnectionBindings, a3 as readFlowConnections, a4 as readFlowFromEditor, a5 as readFlowParticipants, a6 as readQueuedAgentCommands, a7 as releaseFlowAgentLease, a8 as removeFlowConnection, a9 as removeFlowConnectionBinding, aa as removeFlowParticipant, ab as setActiveEditor, ac as setFlowConnectionAgent, ad as setFlowConnectionOptional, ae as setFlowConnectionRequires, af as setFlowParticipantPowerLevel, ag as setFlowParticipantRequirements, ah as setupFlowFromBaseUcan, ai as tickFlowAgent, aj as upsertFlowConnection, ak as upsertFlowConnectionBinding, al as upsertFlowParticipant, am as validateAgentCommand, an as validateFlowAgentLease } from './connections-tcxJgB1K.js';
|
|
3
|
+
export { A as Addr, a as AuthzExecActionTypes, B as BlockRequirements, b as BlocknoteContextValue, c as BlocknoteHandlers, d as BlocknoteProvider, C as CosmosMsgForEmpty, D as DelegationChainValidationResult, e as DelegationGrant, E as Expiration, F as FlowRuntimeStateManager, I as ImportProtocolTemplateResult, f as ImportProtocolTemplatesToSpaceParams, g as InvocationStore, h as IxoCollaborativeEditorOptions, i as IxoCollaborativeUser, j as IxoEditorConfig, k as IxoEditorOptions, l as IxoEditorTheme, L as ListProtocolDeedsWithTemplatesParams, M as MatrixPrivacySettings, m as MatrixRoom, n as MatrixSpace, o as MatrixSpaceStructure, p as MatrixSubspace, P as ProposalAction, q as ProposalResponse, r as ProtocolDeedWithTemplates, s as ProtocolTemplateSummary, S as SingleChoiceProposal, t as StakeType, t as StakeTypeValue, u as Status, v as StoredDelegation, w as StoredInvocation, T as Threshold, x as Timestamp, y as Translate, U as UcanCapability, z as UcanDelegationStore, G as UcanService, H as UcanServiceConfig, J as UcanServiceHandlers, K as Uint128, N as User, V as ValidatorActionType, O as Vote, Q as VoteInfo, R as VoteResponse, W as Votes, X as blockSpecs, Y as createInvocationStore, Z as createMemoryInvocationStore, _ as createMemoryUcanDelegationStore, $ as createRuntimeStateManager, a0 as createUcanDelegationStore, a1 as createUcanService, a2 as getExtraSlashMenuItems, a3 as useBlocknoteContext, a4 as useBlocknoteHandlers, a5 as useTranslate } from './types-CYtPUWc7.js';
|
|
4
4
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
5
5
|
export { F as FlowProtocolGateV1, L as LegacyFlowFrozenError, a as LegacyFlowOperation, b as assertLegacyFlowOperationAllowed } from './legacy-BpgIqaQ5.js';
|
|
6
6
|
export { A as ActionContractRef, a as ActionContractResolutionError, b as ActionContractResolutionErrorCode, c as ActionContractV1, d as ActionOutcomeEvidenceV1, e as ActionOutcomeInputV1, f as ActionSafety, g as AttemptId, B as Brand, C as CancelPeerRunCommandV1, h as CanonicalJsonValue, i as ComposioActionAvailabilityPayloadV1, j as ComposioActionAvailabilityV1, k as ComposioAvailabilityResolver, l as ComposioAvailabilitySigner, m as ComposioAvailabilityTrustPolicy, n as ComposioContractMismatchError, o as CreatePeerExecutorOptions, D as DID, E as EffectClaimAdmissionV1, p as EffectClaimLedger, q as EffectClaimRecordV1, r as EffectClaimRequestV1, s as EffectClaimResultV1, t as EffectClaimStatus, u as EffectClaimTransitionError, v as EffectDisposition, w as EncryptedMatrixFlowDefinitionRevisionRepository, x as EventId, y as ExecutePeerAttemptCommandV1, z as ExecutionPolicyPayloadV1, F as ExecutionPolicySigner, G as ExecutionPolicyTrustPolicy, H as ExecutionPolicyV1, I as ExplicitComposioGateway, J as FLOW_CAPABILITIES, K as FLOW_RUN_PROJECTIONS_MAP_KEY, L as FinalizePeerRunCommandV1, M as FlowContractIntegrityV1, N as FlowDataClassification, O as FlowDefinitionRef, P as FlowDefinitionRevisionPayloadV1, Q as FlowDefinitionRevisionRepository, R as FlowDefinitionRevisionSigner, S as FlowDefinitionRevisionTrustPolicy, T as FlowDefinitionRevisionV1, U as FlowDefinitionVerificationError, V as FlowEventAppendResult, W as FlowEventEnvelopeV1, X as FlowEventPayloadV1, Y as FlowEventSigner, Z as FlowEventTrustPolicy, _ as FlowEventValidationError, $ as FlowId, a0 as FlowJsonObject, a1 as FlowJsonValue, a2 as FlowRevisionId, a3 as FlowRunAttemptProjectionV1, a4 as FlowRunProjectionRepairResult, a5 as FlowRunProjectionV1, a6 as FlowRunTimelineEntryV1, a7 as FlowStepDefinitionV1, a8 as FlowStepTtlV1, a9 as FlowTriggerV1, aa as HistoricalActionManifestRepository, ab as HistoricalManifestActionContractResolver, ac as IdempotencyKey, ad as InvocationAuthorizer, ae as MATRIX_FLOW_DEFINITION_ANCHOR_TYPE, af as MATRIX_FLOW_EVENT_TYPE, ag as ManifestBoundActionAdapter, ah as ManifestBoundComposioActionAdapter, ai as MatrixDefinitionAnchorPayloadV1, aj as MatrixDefinitionAnchorSigner, ak as MatrixDefinitionAnchorTrustPolicy, al as MatrixDefinitionAnchorV1, am as MatrixDefinitionTransport, an as MatrixFlowEventObservationV1, ao as MatrixFlowEventStore, ap as MatrixRoomFlowEventStore, aq as MatrixRunEventCarrierV1, ar as MatrixRunEventPageV1, as as MatrixRunEventTransport, at as PeerAttemptResult, au as PeerExecutionError, av as PeerExecutor, aw as ProviderInvocationResult, ax as ProviderReadbackResult, ay as ReceiptId, az as ReducedAttemptV1, aA as ReducedFlowRunV1, aB as RejectedMatrixFlowEventV1, aC as RevisionCipher, aD as RunFinalizationAttemptSummaryV1, aE as RunFinalizationSummaryV1, aF as RunGenesisV1, aG as RunId, aH as RunTerminalStatusV1, aI as RuntimeContractV1, aJ as Sha256Digest, aK as StartPeerRunCommandV1, aL as TopicReceiptDelivery, aM as TopicReceiptOutbox, aN as TopicReceiptOutboxRecordV1, aO as TopicRequestRefV1, aP as UNIVERSAL_ACTION_COMPLETED_OUTCOME, aQ as UnsignedFlowEventEnvelopeV1, aR as VerifiedActionContractResolver, aS as VerifiedAttemptAuthorization, aT as VerifiedComposioActionAvailabilityV1, aU as VerifiedExecutionPolicyV1, aV as VerifiedFlowDefinitionRevisionV1, aW as VerifiedFlowEventEnvelopeV1, aX as VerifiedInvocation, aY as armEffectClaim, aZ as buildFlowResourceUri, a_ as canonicalizeJson, a$ as claimEffect, b0 as computeActionContractDigest, b1 as computeComposioAvailabilityDigest, b2 as computeExecutionPolicyDigest, b3 as computeFlowDefinitionDigest, b4 as createPeerExecutor, b5 as deepFreezeJson, b6 as deriveAttemptId, b7 as deriveEffectClaimKey, b8 as deriveEventId, b9 as deriveReceiptId, ba as deriveRunId, bb as digestCanonicalJson, bc as drainTopicReceiptOutbox, bd as fingerprintFlowCommand, be as flowRunProjectionStorageKey, bf as markEffectNeedsVerification, bg as matrixFlowEventTransactionId, bh as persistSignedTopicReceipt, bi as prepareEffectSuccess, bj as projectFlowRun, bk as readFlowRunProjection, bl as reduceFlowEvents, bm as renewEffectClaim, bn as repairFlowRunProjection, bo as resolveEffectClaim, bp as signComposioActionAvailability, bq as signExecutionPolicy, br as signFlowDefinitionRevision, bs as signFlowEvent, bt as signMatrixDefinitionAnchor, bu as verifyComposioActionAvailability, bv as verifyExecutionPolicy, bw as verifyFlowDefinitionRevision, bx as verifyFlowEvent, by as verifyMatrixDefinitionAnchor } from './index-b9xxXGFs.js';
|
package/dist/index.js
CHANGED
|
@@ -23,33 +23,33 @@ import {
|
|
|
23
23
|
useCreateCollaborativeIxoEditor,
|
|
24
24
|
useCreateIxoEditor,
|
|
25
25
|
useTrackBlockFocus
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-EWDTMHPF.js";
|
|
27
|
+
import "./chunk-YMGLWNV5.js";
|
|
28
|
+
import "./chunk-DMXZIAAW.js";
|
|
29
29
|
import "./chunk-7ZLW7H37.js";
|
|
30
30
|
import "./chunk-Z6PRMCV6.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-JDNOVB6L.js";
|
|
32
32
|
import "./chunk-PAY3CBWL.js";
|
|
33
33
|
import "./chunk-5NTKDOP6.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-A7L3NJK6.js";
|
|
35
35
|
import "./chunk-MHM52LCJ.js";
|
|
36
36
|
import "./chunk-NKE4TL43.js";
|
|
37
37
|
import "./chunk-EYKZIZ5J.js";
|
|
38
38
|
import "./chunk-YN4CEKCF.js";
|
|
39
39
|
import "./chunk-76YX5R4L.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-X23SZR5N.js";
|
|
41
41
|
import "./chunk-K74XQ4Q5.js";
|
|
42
42
|
import "./chunk-YCTHHBSS.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-CMG6TZKH.js";
|
|
44
44
|
import "./chunk-XPBKU3JX.js";
|
|
45
45
|
import {
|
|
46
46
|
AuthzExecActionTypes,
|
|
47
47
|
StakeType,
|
|
48
48
|
ValidatorActionType
|
|
49
49
|
} from "./chunk-TK3JNKME.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-L7WHIPGC.js";
|
|
51
51
|
import "./chunk-4NAFQF6V.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-RETGBEFM.js";
|
|
53
53
|
import "./chunk-NZ7AXA7B.js";
|
|
54
54
|
import "./chunk-BKLSSLPZ.js";
|
|
55
55
|
import "./chunk-XVA7QRVH.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
setFlowParticipantPowerLevel,
|
|
61
61
|
setFlowParticipantRequirements,
|
|
62
62
|
upsertFlowParticipant
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-IMN2PXVU.js";
|
|
64
64
|
import {
|
|
65
65
|
FlowAgentService,
|
|
66
66
|
acquireFlowAgentLease,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
tickFlowAgent,
|
|
85
85
|
validateAgentCommand,
|
|
86
86
|
validateFlowAgentLease
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-3WLWIA7D.js";
|
|
88
88
|
import {
|
|
89
89
|
appendAgentLedgerEvent,
|
|
90
90
|
buildAuthzFromProps,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
queueAgentCommand,
|
|
99
99
|
readAgentLedgerEvents,
|
|
100
100
|
readQueuedAgentCommands
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-JSE2MTU7.js";
|
|
102
102
|
import {
|
|
103
103
|
FLOW_CONNECTIONS_MAP_KEY,
|
|
104
104
|
FLOW_CONNECTION_BINDINGS_MAP_KEY,
|
|
@@ -111,14 +111,12 @@ import {
|
|
|
111
111
|
setFlowConnectionRequires,
|
|
112
112
|
upsertFlowConnection,
|
|
113
113
|
upsertFlowConnectionBinding
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-DVZU2FI6.js";
|
|
115
115
|
import "./chunk-IH4T7V4C.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-IIIZZ4E4.js";
|
|
121
|
-
import "./chunk-HT6L7A5M.js";
|
|
116
|
+
import "./chunk-JWC4VVY7.js";
|
|
117
|
+
import "./chunk-JK6RAKE3.js";
|
|
118
|
+
import "./chunk-7TVYQNOR.js";
|
|
119
|
+
import "./chunk-QSUE3ZFB.js";
|
|
122
120
|
import {
|
|
123
121
|
ActionContractResolutionError,
|
|
124
122
|
ComposioContractMismatchError,
|
|
@@ -139,20 +137,17 @@ import {
|
|
|
139
137
|
armEffectClaim,
|
|
140
138
|
assertLegacyFlowOperationAllowed,
|
|
141
139
|
buildFlowResourceUri,
|
|
142
|
-
canonicalizeJson,
|
|
143
140
|
claimEffect,
|
|
144
141
|
computeActionContractDigest,
|
|
145
142
|
computeComposioAvailabilityDigest,
|
|
146
143
|
computeExecutionPolicyDigest,
|
|
147
144
|
computeFlowDefinitionDigest,
|
|
148
145
|
createPeerExecutor,
|
|
149
|
-
deepFreezeJson,
|
|
150
146
|
deriveAttemptId,
|
|
151
147
|
deriveEffectClaimKey,
|
|
152
148
|
deriveEventId,
|
|
153
149
|
deriveReceiptId,
|
|
154
150
|
deriveRunId,
|
|
155
|
-
digestCanonicalJson,
|
|
156
151
|
drainTopicReceiptOutbox,
|
|
157
152
|
fingerprintFlowCommand,
|
|
158
153
|
flowRunProjectionStorageKey,
|
|
@@ -176,11 +171,10 @@ import {
|
|
|
176
171
|
verifyFlowDefinitionRevision,
|
|
177
172
|
verifyFlowEvent,
|
|
178
173
|
verifyMatrixDefinitionAnchor
|
|
179
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-UTLM6U75.js";
|
|
180
175
|
import "./chunk-N3ORMGAI.js";
|
|
181
|
-
import "./chunk-NCSGIRRQ.js";
|
|
182
176
|
import "./chunk-ZDNW6VQG.js";
|
|
183
|
-
import "./chunk-
|
|
177
|
+
import "./chunk-J6AWMFEF.js";
|
|
184
178
|
import "./chunk-6GKJR52N.js";
|
|
185
179
|
import "./chunk-EBFFDDAS.js";
|
|
186
180
|
import "./chunk-WO7V6ZNC.js";
|
|
@@ -189,13 +183,19 @@ import {
|
|
|
189
183
|
useBlocknoteContext,
|
|
190
184
|
useBlocknoteHandlers,
|
|
191
185
|
useTranslate
|
|
192
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-BAQA4AZN.js";
|
|
193
187
|
import {
|
|
194
188
|
createMemoryUcanDelegationStore,
|
|
195
189
|
createUcanDelegationStore,
|
|
196
190
|
createUcanService
|
|
197
|
-
} from "./chunk-
|
|
198
|
-
import "./chunk-
|
|
191
|
+
} from "./chunk-2KOJBMG5.js";
|
|
192
|
+
import "./chunk-QW7LA67J.js";
|
|
193
|
+
import {
|
|
194
|
+
canonicalizeJson,
|
|
195
|
+
deepFreezeJson,
|
|
196
|
+
digestCanonicalJson
|
|
197
|
+
} from "./chunk-THG6RXFR.js";
|
|
198
|
+
import "./chunk-NCSGIRRQ.js";
|
|
199
199
|
|
|
200
200
|
// src/index.ts
|
|
201
201
|
import { cloneDocument } from "@ixo/matrix-crdt";
|