@ixo/editor 7.18.0 → 7.19.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-P5CJR43N.js → BidConfig-TQXBUKGD.js} +10 -10
- package/dist/{BidFlowDetail-SV33OI2Y.js → BidFlowDetail-3BKTJXXA.js} +16 -16
- package/dist/{CalendarEventCreateConfig-4IZ2UHS3.js → CalendarEventCreateConfig-U7NFXBME.js} +11 -11
- package/dist/{CalendarEventCreateFlowDetail-CSI6N2PF.js → CalendarEventCreateFlowDetail-ERQXISWY.js} +12 -12
- package/dist/{CalendarEventListConfig-N4XXZLUC.js → CalendarEventListConfig-FMZXJEPI.js} +11 -11
- package/dist/{CalendarEventListFlowDetail-Y2MQYWXT.js → CalendarEventListFlowDetail-DXOUHADW.js} +5 -5
- package/dist/{CalendarEventUpdateConfig-R2IUZZWK.js → CalendarEventUpdateConfig-C43L7PHE.js} +11 -11
- package/dist/{CalendarEventUpdateFlowDetail-MAZSAC6G.js → CalendarEventUpdateFlowDetail-M6Z3TM3W.js} +12 -12
- package/dist/{ClaimConfig-QJETYD5G.js → ClaimConfig-XLFL3IWC.js} +10 -10
- package/dist/{ClaimFlowDetail-UEGNEOLD.js → ClaimFlowDetail-CLEBNXGP.js} +16 -16
- package/dist/{CollectionLifecycleConfig-CGZKXQP7.js → CollectionLifecycleConfig-556UBJ2I.js} +4 -4
- package/dist/{CollectionLifecycleFlowDetail-HKORLTZM.js → CollectionLifecycleFlowDetail-JYNRCJ5S.js} +15 -15
- package/dist/{CollectionUsersConfig-A7ASGD2L.js → CollectionUsersConfig-6P22QEYH.js} +10 -10
- package/dist/{CollectionUsersFlowDetail-JUULKPNC.js → CollectionUsersFlowDetail-75KV4MLK.js} +19 -19
- package/dist/{CredentialStoreConfig-DAA3ZT24.js → CredentialStoreConfig-G476HYFO.js} +8 -8
- package/dist/{CredentialStoreFlowDetail-W3TMZREQ.js → CredentialStoreFlowDetail-PHFJWDQ6.js} +7 -7
- package/dist/{DesignPodFlowDetail-HEFNV3J3.js → DesignPodFlowDetail-QE7XKTQ2.js} +5 -5
- package/dist/{DomainCardPreviewFlowDetail-OG2SLUYU.js → DomainCardPreviewFlowDetail-YN6CBAIF.js} +7 -7
- package/dist/{DomainIndexerLookupFlowDetail-DPPNZNOU.js → DomainIndexerLookupFlowDetail-QGCPCVQU.js} +5 -5
- package/dist/{DomainSignFlowDetail-CHJPBXCN.js → DomainSignFlowDetail-DHJPC6PO.js} +8 -8
- package/dist/{DomainSingleSelectionConfig-6BU762LL.js → DomainSingleSelectionConfig-EJTQIOGS.js} +4 -4
- package/dist/{DomainSingleSelectionFlowDetail-JFFYQC4P.js → DomainSingleSelectionFlowDetail-3FNDUQNQ.js} +5 -5
- package/dist/{EmailSendConfig-V2H65UW5.js → EmailSendConfig-ZCXQK3SV.js} +10 -10
- package/dist/{EntityCreateOracleFlowDetail-ZL3FDZHV.js → EntityCreateOracleFlowDetail-C6MV65OC.js} +7 -7
- package/dist/{EntitySingleSelectionFlowDetail-TL7PATBJ.js → EntitySingleSelectionFlowDetail-55TDSVSD.js} +5 -5
- package/dist/{EntityTransferFlowDetail-5JMBBK53.js → EntityTransferFlowDetail-FT4IU4H6.js} +7 -7
- package/dist/{EvalEngineConfig-UYKCKNQQ.js → EvalEngineConfig-NATHCR6D.js} +13 -13
- package/dist/{EvalEngineFlowDetail-VCLYU5FV.js → EvalEngineFlowDetail-K4UUV3SQ.js} +9 -9
- package/dist/{EvaluateBidConfig-T6FZD4KE.js → EvaluateBidConfig-UYCRRF2T.js} +10 -10
- package/dist/{EvaluateBidFlowDetail-EKL5NXYX.js → EvaluateBidFlowDetail-FQP74NYF.js} +17 -17
- package/dist/{EvaluateClaimConfig-DXPZIL4Q.js → EvaluateClaimConfig-QVBOPMX2.js} +10 -10
- package/dist/{EvaluateClaimFlowDetail-EVEA3UXR.js → EvaluateClaimFlowDetail-7UDCX4G5.js} +16 -16
- package/dist/{FormSubmitFlowDetail-34DAUMGE.js → FormSubmitFlowDetail-7EGYHASY.js} +7 -7
- package/dist/{GovernanceAuthzExecFlowDetail-4ICVRCYV.js → GovernanceAuthzExecFlowDetail-H4E53YQ4.js} +8 -8
- package/dist/{GovernanceAuthzGrantFlowDetail-NYU6RBMD.js → GovernanceAuthzGrantFlowDetail-34ZEJMAG.js} +9 -9
- package/dist/{GovernanceAuthzRevokeFlowDetail-2NYVNJRY.js → GovernanceAuthzRevokeFlowDetail-OIPUTKBU.js} +9 -9
- package/dist/{GovernanceChainVoteFlowDetail-LM3NSV32.js → GovernanceChainVoteFlowDetail-GDYO5YNZ.js} +8 -8
- package/dist/{GovernanceConfigFlowDetail-7GPHNALT.js → GovernanceConfigFlowDetail-EAX44S7P.js} +5 -5
- package/dist/{GovernanceContractExecuteFlowDetail-U3SOGE5Q.js → GovernanceContractExecuteFlowDetail-JAEBWT5F.js} +9 -9
- package/dist/{GovernanceContractInstantiateFlowDetail-5S7MA2TT.js → GovernanceContractInstantiateFlowDetail-TKK2CE3N.js} +9 -9
- package/dist/{GovernanceContractManageCw20FlowDetail-WTAYJUC6.js → GovernanceContractManageCw20FlowDetail-PZ4YHU6Z.js} +8 -8
- package/dist/{GovernanceContractMigrateFlowDetail-FQLAJC7X.js → GovernanceContractMigrateFlowDetail-EA5BNLXK.js} +9 -9
- package/dist/{GovernanceContractUpdateAdminFlowDetail-NGZTF35T.js → GovernanceContractUpdateAdminFlowDetail-QOB2BCB2.js} +8 -8
- package/dist/{GovernanceCustomMessageFlowDetail-5M7NRHYN.js → GovernanceCustomMessageFlowDetail-SQJKIYUU.js} +9 -9
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-DJJWFWS6.js → GovernanceDaoAcceptToMarketplaceFlowDetail-NAGN66IN.js} +9 -9
- package/dist/{GovernanceDaoAdminExecFlowDetail-N7NOFQ4Z.js → GovernanceDaoAdminExecFlowDetail-RST73GEG.js} +10 -10
- package/dist/{GovernanceDaoCreateEntityFlowDetail-PSWK7BXP.js → GovernanceDaoCreateEntityFlowDetail-3ZU4M6XB.js} +9 -9
- package/dist/{GovernanceDaoJoinFlowDetail-Q3WSUZX3.js → GovernanceDaoJoinFlowDetail-P54XEJBK.js} +9 -9
- package/dist/{GovernanceDaoManageStorageFlowDetail-QWFCDZMJ.js → GovernanceDaoManageStorageFlowDetail-ATW44N2O.js} +8 -8
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-2JITWAYZ.js → GovernanceDaoManageSubDaosFlowDetail-PSZ4L6JS.js} +9 -9
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-R5ZK5SNL.js → GovernanceDaoUpdateInfoFlowDetail-JM367SP3.js} +8 -8
- package/dist/{GovernanceMemberProposalConfig-DADW2B2Y.js → GovernanceMemberProposalConfig-T6V4XMD5.js} +5 -5
- package/dist/{GovernanceMemberProposalFlowDetail-ZHGLGNVK.js → GovernanceMemberProposalFlowDetail-QV4GZGCL.js} +9 -9
- package/dist/{GovernanceNftBurnFlowDetail-XNHCP7SW.js → GovernanceNftBurnFlowDetail-LWZXYELU.js} +8 -8
- package/dist/{GovernanceNftManageCollectionsFlowDetail-RMVCVWXS.js → GovernanceNftManageCollectionsFlowDetail-SBBJAA3O.js} +8 -8
- package/dist/{GovernanceNftTransferFlowDetail-ANUJ3UUE.js → GovernanceNftTransferFlowDetail-M3FZ44DR.js} +9 -9
- package/dist/{GovernanceSettingsProposalConfig-WT2XRFJV.js → GovernanceSettingsProposalConfig-LWZSLPOP.js} +5 -5
- package/dist/{GovernanceSettingsProposalFlowDetail-IWCYMAIH.js → GovernanceSettingsProposalFlowDetail-XPNZHMRM.js} +8 -8
- package/dist/{GovernanceStakingStakeFlowDetail-LM37IMVO.js → GovernanceStakingStakeFlowDetail-YTSU64YA.js} +8 -8
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-VNARHVFO.js → GovernanceStakingStakeToGroupFlowDetail-BINBC737.js} +8 -8
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-ZT4LW4CU.js → GovernanceSubmissionConfigProposalFlowDetail-2M2WYVRI.js} +8 -8
- package/dist/{GovernanceTransactionMintFlowDetail-MP36YVVV.js → GovernanceTransactionMintFlowDetail-JMRKVSSC.js} +9 -9
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-ABSKBNLZ.js → GovernanceTransactionPerformTokenSwapFlowDetail-ISJWELXS.js} +8 -8
- package/dist/{GovernanceTransactionSendFundsConfig-RLDBUKIT.js → GovernanceTransactionSendFundsConfig-2ZZGBB66.js} +5 -5
- package/dist/{GovernanceTransactionSendFundsFlowDetail-OIYTEWTP.js → GovernanceTransactionSendFundsFlowDetail-3JWTIOLT.js} +9 -9
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-I6ORHQUY.js → GovernanceTransactionSendGroupTokenFlowDetail-6TBIUJLV.js} +9 -9
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-HIJLXLTD.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-SQH73HL2.js} +8 -8
- package/dist/{GovernanceValidatorActionsFlowDetail-ANDTFZ63.js → GovernanceValidatorActionsFlowDetail-VFPEROKQ.js} +8 -8
- package/dist/{HarvestConfig-FBA2LMWP.js → HarvestConfig-TUREICJM.js} +9 -9
- package/dist/{HarvestFlowDetail-YSW6OEL6.js → HarvestFlowDetail-6VDHMIIR.js} +7 -7
- package/dist/{HttpRequestConfig-4OJ4KQGC.js → HttpRequestConfig-NZP4M72G.js} +8 -8
- package/dist/{HttpRequestFlowDetail-6JPPTSIZ.js → HttpRequestFlowDetail-VKPVV3EW.js} +5 -5
- package/dist/{IdentityCreateFlowDetail-Q2Z7GSMV.js → IdentityCreateFlowDetail-PRX37M4E.js} +13 -13
- package/dist/{IidCreateFlowDetail-LKRE5KDH.js → IidCreateFlowDetail-SHBEMN4T.js} +13 -13
- package/dist/{KycVerifyConfig-ZZSQPKXU.js → KycVerifyConfig-E5LO2HWP.js} +8 -8
- package/dist/{KycVerifyFlowDetail-JEQM5A7R.js → KycVerifyFlowDetail-ECXG4G2V.js} +13 -13
- package/dist/{ListDomainFlowsFlowDetail-DK4YPMEJ.js → ListDomainFlowsFlowDetail-R4O5E22G.js} +5 -5
- package/dist/{LoadBatchesFlowDetail-A4HDN3OR.js → LoadBatchesFlowDetail-D5A3BXLP.js} +7 -7
- package/dist/{MatrixDmConfig-5VO4RJHR.js → MatrixDmConfig-TWT476MT.js} +4 -4
- package/dist/{MatrixRegisterFlowDetail-JMPQ6EHL.js → MatrixRegisterFlowDetail-SNEQV5XD.js} +7 -7
- package/dist/{MemberMultiSelectFlowDetail-3ZEIOH4X.js → MemberMultiSelectFlowDetail-AFSBDTLU.js} +5 -5
- package/dist/{OracleConfig-6I47PA2F.js → OracleConfig-YA235M4B.js} +8 -8
- package/dist/{OracleConfigureOracleFlowDetail-BFYUTBHC.js → OracleConfigureOracleFlowDetail-FG7W6KQV.js} +13 -13
- package/dist/{OracleContractFlowDetail-MYEJZNCP.js → OracleContractFlowDetail-6WOJ2XM2.js} +7 -7
- package/dist/{OracleDeployFlowDetail-YF7XQMZZ.js → OracleDeployFlowDetail-MV46JHSL.js} +7 -7
- package/dist/{OracleDeploySetupFlowDetail-QLX7O63W.js → OracleDeploySetupFlowDetail-O4OY5VBH.js} +7 -7
- package/dist/{OracleDeployStartFlowDetail-NRPW76XH.js → OracleDeployStartFlowDetail-TLKREH6F.js} +7 -7
- package/dist/{OracleFlowDetail-F7AX3GTY.js → OracleFlowDetail-VEH2AEPI.js} +7 -7
- package/dist/{OraclePromptFlowDetail-NVHRWHTS.js → OraclePromptFlowDetail-3VVAWBXP.js} +7 -7
- package/dist/{OracleStoreConfigFlowDetail-XUBCZZBO.js → OracleStoreConfigFlowDetail-F6BIC2MI.js} +7 -7
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-M7OEWUPG.js → OracleStoreSecretsAndConfigFlowDetail-OJL7FBEX.js} +13 -13
- package/dist/{OracleStoreSecretsFlowDetail-LHW2JSKX.js → OracleStoreSecretsFlowDetail-Q7BB6VPM.js} +13 -13
- package/dist/{ProposalCreateConfig-DAIAJWU4.js → ProposalCreateConfig-PD2HANKW.js} +10 -10
- package/dist/{ProposalCreateFlowDetail-I5RX74EW.js → ProposalCreateFlowDetail-H5TB6CRI.js} +14 -14
- package/dist/ProposalCreateFlowDetail-H5TB6CRI.js.map +1 -0
- package/dist/{ProposalVoteConfig-2FOG2FFP.js → ProposalVoteConfig-CGDNREKQ.js} +10 -10
- package/dist/{ProposalVoteFlowDetail-BRHGJXD2.js → ProposalVoteFlowDetail-BNIZNLJ3.js} +8 -8
- package/dist/{ProtocolSelectFlowDetail-3RKNFTWF.js → ProtocolSelectFlowDetail-X34GCQXS.js} +4 -4
- package/dist/{RetireConfig-IFSJTDMZ.js → RetireConfig-XCYWEMCM.js} +9 -9
- package/dist/{RetireFlowDetail-OOGYAODJ.js → RetireFlowDetail-J2VJGNU3.js} +7 -7
- package/dist/{SandboxProvisionFlowDetail-LFHRTPLR.js → SandboxProvisionFlowDetail-DTCXKMFO.js} +7 -7
- package/dist/{WalletFundConfig-WK7QIPL6.js → WalletFundConfig-MU6JRK2X.js} +5 -5
- package/dist/{WalletFundFlowDetail-N2XTMXIG.js → WalletFundFlowDetail-7YJDOYVS.js} +8 -8
- package/dist/{WalletGenerateAndFundFlowDetail-5LKRKR4R.js → WalletGenerateAndFundFlowDetail-CME4JE3R.js} +5 -5
- package/dist/{WalletGenerateFlowDetail-RXZJMLLP.js → WalletGenerateFlowDetail-3KTVG2V4.js} +5 -5
- package/dist/{XeroContactCreateConfig-34JJXNUW.js → XeroContactCreateConfig-4VKYUIJQ.js} +11 -11
- package/dist/{XeroContactCreateFlowDetail-4BDRDAXW.js → XeroContactCreateFlowDetail-JRJ5I4CD.js} +12 -12
- package/dist/{XeroInvoiceCreateConfig-VI4HQP2Z.js → XeroInvoiceCreateConfig-ULKQXCNS.js} +11 -11
- package/dist/{XeroInvoiceCreateFlowDetail-AKS7WN4K.js → XeroInvoiceCreateFlowDetail-DTOFRV4L.js} +14 -14
- package/dist/{XeroInvoiceListConfig-6GELQTQK.js → XeroInvoiceListConfig-PPXFYVVK.js} +11 -11
- package/dist/{XeroInvoiceListFlowDetail-27GR2BSJ.js → XeroInvoiceListFlowDetail-RPE7NCMF.js} +5 -5
- package/dist/{XeroPaymentCreateConfig-7PNHPUGK.js → XeroPaymentCreateConfig-EIYSLLZK.js} +8 -8
- package/dist/{XeroPaymentCreateFlowDetail-PDWKG2SR.js → XeroPaymentCreateFlowDetail-MMLHUXLS.js} +13 -13
- package/dist/action-manifest.json +3 -3
- package/dist/{chunk-D737IBAL.js → chunk-2GIBQPNN.js} +2 -2
- package/dist/{chunk-UEIFCJTT.js → chunk-3PUDS5PV.js} +2 -2
- package/dist/{chunk-S2TUXPUL.js → chunk-45KKBVIM.js} +2 -2
- package/dist/{chunk-LOK5IXGD.js → chunk-6NH4PDTY.js} +18 -1
- package/dist/chunk-6NH4PDTY.js.map +1 -0
- package/dist/{chunk-SAY4IOQ4.js → chunk-6S4TEGYI.js} +2 -2
- package/dist/{chunk-YC6BYZJZ.js → chunk-7C2WFOG2.js} +146 -36
- package/dist/chunk-7C2WFOG2.js.map +1 -0
- package/dist/{chunk-OHXDPRPB.js → chunk-7UJMOJBH.js} +2 -2
- package/dist/{chunk-FSGPZ6UT.js → chunk-A34Z7KJC.js} +2 -2
- package/dist/{chunk-LVPX7CAS.js → chunk-AW6YLUSS.js} +2 -2
- package/dist/{chunk-NTQKVYLG.js → chunk-B7X6QSZ7.js} +2 -2
- package/dist/{chunk-3WIS2UI4.js → chunk-BH5JRBU4.js} +2 -2
- package/dist/{chunk-UCO4YJ5L.js → chunk-DRPCLFT2.js} +2 -2
- package/dist/{chunk-B464VTTD.js → chunk-IJUGKKMY.js} +2 -2
- package/dist/{chunk-RG7Z2VMU.js → chunk-IY7QJKBL.js} +2 -2
- package/dist/{chunk-25POTAU5.js → chunk-JD25JVOX.js} +2 -2
- package/dist/{chunk-AJF7MIIN.js → chunk-L6ZHO7T4.js} +2 -2
- package/dist/{chunk-X7PMVRGS.js → chunk-LUUZ3SG6.js} +3 -3
- package/dist/chunk-LUUZ3SG6.js.map +1 -0
- package/dist/{chunk-CC7MDRBY.js → chunk-NDD5CJZB.js} +2 -2
- package/dist/{chunk-JYNYVFSY.js → chunk-Q2FDVC3Z.js} +3 -3
- package/dist/{chunk-3C6YD77I.js → chunk-QUGMNWDO.js} +2 -2
- package/dist/{chunk-A35SKJEL.js → chunk-RIHEX7HK.js} +2 -2
- package/dist/{chunk-RNKNOEYB.js → chunk-RZXGA5XL.js} +9 -7
- package/dist/{chunk-RNKNOEYB.js.map → chunk-RZXGA5XL.js.map} +1 -1
- package/dist/{chunk-UIBIZKN4.js → chunk-SUIL2KJT.js} +5 -5
- package/dist/{chunk-7WBLDDDN.js → chunk-SXCEELAR.js} +3 -3
- package/dist/{chunk-635DLQIO.js → chunk-T3GM5CRM.js} +3 -3
- package/dist/{chunk-X7L5XHYY.js → chunk-VSVM2MPJ.js} +2 -2
- package/dist/{chunk-SWDPZFJ7.js → chunk-WBTL6EX4.js} +4 -4
- package/dist/{chunk-ARLE35FS.js → chunk-WY4JOYIF.js} +2 -2
- package/dist/{chunk-75L5M6BB.js → chunk-X6U4GFNS.js} +3 -3
- package/dist/chunk-X6U4GFNS.js.map +1 -0
- package/dist/{chunk-JRWJLWOY.js → chunk-XGICKRWF.js} +601 -55
- package/dist/chunk-XGICKRWF.js.map +1 -0
- package/dist/{chunk-VOW7DHXR.js → chunk-XKDMDEUI.js} +564 -506
- package/dist/chunk-XKDMDEUI.js.map +1 -0
- package/dist/{chunk-BJDQVMYW.js → chunk-YQ2KFBAT.js} +2 -2
- package/dist/{chunk-FWXXWWT7.js → chunk-YQWE5CZP.js} +169 -6
- package/dist/chunk-YQWE5CZP.js.map +1 -0
- package/dist/{chunk-DGALOR3X.js → chunk-YRWVRQXG.js} +2 -2
- package/dist/{chunk-EZ424ZXM.js → chunk-Z46UWMKG.js} +2 -2
- package/dist/{chunk-B3R2NVUD.js → chunk-ZAZDJGPW.js} +2 -2
- package/dist/{chunk-LJCGR4FZ.js → chunk-ZCKNE7BN.js} +2 -2
- package/dist/{connections-BJYmPkaj.d.ts → connections-Bb8EVlWA.d.ts} +19 -10
- package/dist/core/index.cjs +938 -103
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +346 -6
- package/dist/core/index.js +44 -10
- package/dist/core/index.js.map +1 -1
- package/dist/{graphql-client-CdN8lj4D.d.ts → graphql-client-Dukm5Usv.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +25 -25
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.js +24 -24
- package/dist/{types-DsF-l-4t.d.ts → types-D0TryOYl.d.ts} +141 -2
- package/package.json +1 -1
- package/dist/ProposalCreateFlowDetail-I5RX74EW.js.map +0 -1
- package/dist/chunk-75L5M6BB.js.map +0 -1
- package/dist/chunk-FWXXWWT7.js.map +0 -1
- package/dist/chunk-JRWJLWOY.js.map +0 -1
- package/dist/chunk-LOK5IXGD.js.map +0 -1
- package/dist/chunk-VOW7DHXR.js.map +0 -1
- package/dist/chunk-X7PMVRGS.js.map +0 -1
- package/dist/chunk-YC6BYZJZ.js.map +0 -1
- /package/dist/{BidConfig-P5CJR43N.js.map → BidConfig-TQXBUKGD.js.map} +0 -0
- /package/dist/{BidFlowDetail-SV33OI2Y.js.map → BidFlowDetail-3BKTJXXA.js.map} +0 -0
- /package/dist/{CalendarEventCreateConfig-4IZ2UHS3.js.map → CalendarEventCreateConfig-U7NFXBME.js.map} +0 -0
- /package/dist/{CalendarEventCreateFlowDetail-CSI6N2PF.js.map → CalendarEventCreateFlowDetail-ERQXISWY.js.map} +0 -0
- /package/dist/{CalendarEventListConfig-N4XXZLUC.js.map → CalendarEventListConfig-FMZXJEPI.js.map} +0 -0
- /package/dist/{CalendarEventListFlowDetail-Y2MQYWXT.js.map → CalendarEventListFlowDetail-DXOUHADW.js.map} +0 -0
- /package/dist/{CalendarEventUpdateConfig-R2IUZZWK.js.map → CalendarEventUpdateConfig-C43L7PHE.js.map} +0 -0
- /package/dist/{CalendarEventUpdateFlowDetail-MAZSAC6G.js.map → CalendarEventUpdateFlowDetail-M6Z3TM3W.js.map} +0 -0
- /package/dist/{ClaimConfig-QJETYD5G.js.map → ClaimConfig-XLFL3IWC.js.map} +0 -0
- /package/dist/{ClaimFlowDetail-UEGNEOLD.js.map → ClaimFlowDetail-CLEBNXGP.js.map} +0 -0
- /package/dist/{CollectionLifecycleConfig-CGZKXQP7.js.map → CollectionLifecycleConfig-556UBJ2I.js.map} +0 -0
- /package/dist/{CollectionLifecycleFlowDetail-HKORLTZM.js.map → CollectionLifecycleFlowDetail-JYNRCJ5S.js.map} +0 -0
- /package/dist/{CollectionUsersConfig-A7ASGD2L.js.map → CollectionUsersConfig-6P22QEYH.js.map} +0 -0
- /package/dist/{CollectionUsersFlowDetail-JUULKPNC.js.map → CollectionUsersFlowDetail-75KV4MLK.js.map} +0 -0
- /package/dist/{CredentialStoreConfig-DAA3ZT24.js.map → CredentialStoreConfig-G476HYFO.js.map} +0 -0
- /package/dist/{CredentialStoreFlowDetail-W3TMZREQ.js.map → CredentialStoreFlowDetail-PHFJWDQ6.js.map} +0 -0
- /package/dist/{DesignPodFlowDetail-HEFNV3J3.js.map → DesignPodFlowDetail-QE7XKTQ2.js.map} +0 -0
- /package/dist/{DomainCardPreviewFlowDetail-OG2SLUYU.js.map → DomainCardPreviewFlowDetail-YN6CBAIF.js.map} +0 -0
- /package/dist/{DomainIndexerLookupFlowDetail-DPPNZNOU.js.map → DomainIndexerLookupFlowDetail-QGCPCVQU.js.map} +0 -0
- /package/dist/{DomainSignFlowDetail-CHJPBXCN.js.map → DomainSignFlowDetail-DHJPC6PO.js.map} +0 -0
- /package/dist/{DomainSingleSelectionConfig-6BU762LL.js.map → DomainSingleSelectionConfig-EJTQIOGS.js.map} +0 -0
- /package/dist/{DomainSingleSelectionFlowDetail-JFFYQC4P.js.map → DomainSingleSelectionFlowDetail-3FNDUQNQ.js.map} +0 -0
- /package/dist/{EmailSendConfig-V2H65UW5.js.map → EmailSendConfig-ZCXQK3SV.js.map} +0 -0
- /package/dist/{EntityCreateOracleFlowDetail-ZL3FDZHV.js.map → EntityCreateOracleFlowDetail-C6MV65OC.js.map} +0 -0
- /package/dist/{EntitySingleSelectionFlowDetail-TL7PATBJ.js.map → EntitySingleSelectionFlowDetail-55TDSVSD.js.map} +0 -0
- /package/dist/{EntityTransferFlowDetail-5JMBBK53.js.map → EntityTransferFlowDetail-FT4IU4H6.js.map} +0 -0
- /package/dist/{EvalEngineConfig-UYKCKNQQ.js.map → EvalEngineConfig-NATHCR6D.js.map} +0 -0
- /package/dist/{EvalEngineFlowDetail-VCLYU5FV.js.map → EvalEngineFlowDetail-K4UUV3SQ.js.map} +0 -0
- /package/dist/{EvaluateBidConfig-T6FZD4KE.js.map → EvaluateBidConfig-UYCRRF2T.js.map} +0 -0
- /package/dist/{EvaluateBidFlowDetail-EKL5NXYX.js.map → EvaluateBidFlowDetail-FQP74NYF.js.map} +0 -0
- /package/dist/{EvaluateClaimConfig-DXPZIL4Q.js.map → EvaluateClaimConfig-QVBOPMX2.js.map} +0 -0
- /package/dist/{EvaluateClaimFlowDetail-EVEA3UXR.js.map → EvaluateClaimFlowDetail-7UDCX4G5.js.map} +0 -0
- /package/dist/{FormSubmitFlowDetail-34DAUMGE.js.map → FormSubmitFlowDetail-7EGYHASY.js.map} +0 -0
- /package/dist/{GovernanceAuthzExecFlowDetail-4ICVRCYV.js.map → GovernanceAuthzExecFlowDetail-H4E53YQ4.js.map} +0 -0
- /package/dist/{GovernanceAuthzGrantFlowDetail-NYU6RBMD.js.map → GovernanceAuthzGrantFlowDetail-34ZEJMAG.js.map} +0 -0
- /package/dist/{GovernanceAuthzRevokeFlowDetail-2NYVNJRY.js.map → GovernanceAuthzRevokeFlowDetail-OIPUTKBU.js.map} +0 -0
- /package/dist/{GovernanceChainVoteFlowDetail-LM3NSV32.js.map → GovernanceChainVoteFlowDetail-GDYO5YNZ.js.map} +0 -0
- /package/dist/{GovernanceConfigFlowDetail-7GPHNALT.js.map → GovernanceConfigFlowDetail-EAX44S7P.js.map} +0 -0
- /package/dist/{GovernanceContractExecuteFlowDetail-U3SOGE5Q.js.map → GovernanceContractExecuteFlowDetail-JAEBWT5F.js.map} +0 -0
- /package/dist/{GovernanceContractInstantiateFlowDetail-5S7MA2TT.js.map → GovernanceContractInstantiateFlowDetail-TKK2CE3N.js.map} +0 -0
- /package/dist/{GovernanceContractManageCw20FlowDetail-WTAYJUC6.js.map → GovernanceContractManageCw20FlowDetail-PZ4YHU6Z.js.map} +0 -0
- /package/dist/{GovernanceContractMigrateFlowDetail-FQLAJC7X.js.map → GovernanceContractMigrateFlowDetail-EA5BNLXK.js.map} +0 -0
- /package/dist/{GovernanceContractUpdateAdminFlowDetail-NGZTF35T.js.map → GovernanceContractUpdateAdminFlowDetail-QOB2BCB2.js.map} +0 -0
- /package/dist/{GovernanceCustomMessageFlowDetail-5M7NRHYN.js.map → GovernanceCustomMessageFlowDetail-SQJKIYUU.js.map} +0 -0
- /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-DJJWFWS6.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-NAGN66IN.js.map} +0 -0
- /package/dist/{GovernanceDaoAdminExecFlowDetail-N7NOFQ4Z.js.map → GovernanceDaoAdminExecFlowDetail-RST73GEG.js.map} +0 -0
- /package/dist/{GovernanceDaoCreateEntityFlowDetail-PSWK7BXP.js.map → GovernanceDaoCreateEntityFlowDetail-3ZU4M6XB.js.map} +0 -0
- /package/dist/{GovernanceDaoJoinFlowDetail-Q3WSUZX3.js.map → GovernanceDaoJoinFlowDetail-P54XEJBK.js.map} +0 -0
- /package/dist/{GovernanceDaoManageStorageFlowDetail-QWFCDZMJ.js.map → GovernanceDaoManageStorageFlowDetail-ATW44N2O.js.map} +0 -0
- /package/dist/{GovernanceDaoManageSubDaosFlowDetail-2JITWAYZ.js.map → GovernanceDaoManageSubDaosFlowDetail-PSZ4L6JS.js.map} +0 -0
- /package/dist/{GovernanceDaoUpdateInfoFlowDetail-R5ZK5SNL.js.map → GovernanceDaoUpdateInfoFlowDetail-JM367SP3.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalConfig-DADW2B2Y.js.map → GovernanceMemberProposalConfig-T6V4XMD5.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalFlowDetail-ZHGLGNVK.js.map → GovernanceMemberProposalFlowDetail-QV4GZGCL.js.map} +0 -0
- /package/dist/{GovernanceNftBurnFlowDetail-XNHCP7SW.js.map → GovernanceNftBurnFlowDetail-LWZXYELU.js.map} +0 -0
- /package/dist/{GovernanceNftManageCollectionsFlowDetail-RMVCVWXS.js.map → GovernanceNftManageCollectionsFlowDetail-SBBJAA3O.js.map} +0 -0
- /package/dist/{GovernanceNftTransferFlowDetail-ANUJ3UUE.js.map → GovernanceNftTransferFlowDetail-M3FZ44DR.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalConfig-WT2XRFJV.js.map → GovernanceSettingsProposalConfig-LWZSLPOP.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalFlowDetail-IWCYMAIH.js.map → GovernanceSettingsProposalFlowDetail-XPNZHMRM.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeFlowDetail-LM37IMVO.js.map → GovernanceStakingStakeFlowDetail-YTSU64YA.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeToGroupFlowDetail-VNARHVFO.js.map → GovernanceStakingStakeToGroupFlowDetail-BINBC737.js.map} +0 -0
- /package/dist/{GovernanceSubmissionConfigProposalFlowDetail-ZT4LW4CU.js.map → GovernanceSubmissionConfigProposalFlowDetail-2M2WYVRI.js.map} +0 -0
- /package/dist/{GovernanceTransactionMintFlowDetail-MP36YVVV.js.map → GovernanceTransactionMintFlowDetail-JMRKVSSC.js.map} +0 -0
- /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-ABSKBNLZ.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-ISJWELXS.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsConfig-RLDBUKIT.js.map → GovernanceTransactionSendFundsConfig-2ZZGBB66.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsFlowDetail-OIYTEWTP.js.map → GovernanceTransactionSendFundsFlowDetail-3JWTIOLT.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-I6ORHQUY.js.map → GovernanceTransactionSendGroupTokenFlowDetail-6TBIUJLV.js.map} +0 -0
- /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-HIJLXLTD.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-SQH73HL2.js.map} +0 -0
- /package/dist/{GovernanceValidatorActionsFlowDetail-ANDTFZ63.js.map → GovernanceValidatorActionsFlowDetail-VFPEROKQ.js.map} +0 -0
- /package/dist/{HarvestConfig-FBA2LMWP.js.map → HarvestConfig-TUREICJM.js.map} +0 -0
- /package/dist/{HarvestFlowDetail-YSW6OEL6.js.map → HarvestFlowDetail-6VDHMIIR.js.map} +0 -0
- /package/dist/{HttpRequestConfig-4OJ4KQGC.js.map → HttpRequestConfig-NZP4M72G.js.map} +0 -0
- /package/dist/{HttpRequestFlowDetail-6JPPTSIZ.js.map → HttpRequestFlowDetail-VKPVV3EW.js.map} +0 -0
- /package/dist/{IdentityCreateFlowDetail-Q2Z7GSMV.js.map → IdentityCreateFlowDetail-PRX37M4E.js.map} +0 -0
- /package/dist/{IidCreateFlowDetail-LKRE5KDH.js.map → IidCreateFlowDetail-SHBEMN4T.js.map} +0 -0
- /package/dist/{KycVerifyConfig-ZZSQPKXU.js.map → KycVerifyConfig-E5LO2HWP.js.map} +0 -0
- /package/dist/{KycVerifyFlowDetail-JEQM5A7R.js.map → KycVerifyFlowDetail-ECXG4G2V.js.map} +0 -0
- /package/dist/{ListDomainFlowsFlowDetail-DK4YPMEJ.js.map → ListDomainFlowsFlowDetail-R4O5E22G.js.map} +0 -0
- /package/dist/{LoadBatchesFlowDetail-A4HDN3OR.js.map → LoadBatchesFlowDetail-D5A3BXLP.js.map} +0 -0
- /package/dist/{MatrixDmConfig-5VO4RJHR.js.map → MatrixDmConfig-TWT476MT.js.map} +0 -0
- /package/dist/{MatrixRegisterFlowDetail-JMPQ6EHL.js.map → MatrixRegisterFlowDetail-SNEQV5XD.js.map} +0 -0
- /package/dist/{MemberMultiSelectFlowDetail-3ZEIOH4X.js.map → MemberMultiSelectFlowDetail-AFSBDTLU.js.map} +0 -0
- /package/dist/{OracleConfig-6I47PA2F.js.map → OracleConfig-YA235M4B.js.map} +0 -0
- /package/dist/{OracleConfigureOracleFlowDetail-BFYUTBHC.js.map → OracleConfigureOracleFlowDetail-FG7W6KQV.js.map} +0 -0
- /package/dist/{OracleContractFlowDetail-MYEJZNCP.js.map → OracleContractFlowDetail-6WOJ2XM2.js.map} +0 -0
- /package/dist/{OracleDeployFlowDetail-YF7XQMZZ.js.map → OracleDeployFlowDetail-MV46JHSL.js.map} +0 -0
- /package/dist/{OracleDeploySetupFlowDetail-QLX7O63W.js.map → OracleDeploySetupFlowDetail-O4OY5VBH.js.map} +0 -0
- /package/dist/{OracleDeployStartFlowDetail-NRPW76XH.js.map → OracleDeployStartFlowDetail-TLKREH6F.js.map} +0 -0
- /package/dist/{OracleFlowDetail-F7AX3GTY.js.map → OracleFlowDetail-VEH2AEPI.js.map} +0 -0
- /package/dist/{OraclePromptFlowDetail-NVHRWHTS.js.map → OraclePromptFlowDetail-3VVAWBXP.js.map} +0 -0
- /package/dist/{OracleStoreConfigFlowDetail-XUBCZZBO.js.map → OracleStoreConfigFlowDetail-F6BIC2MI.js.map} +0 -0
- /package/dist/{OracleStoreSecretsAndConfigFlowDetail-M7OEWUPG.js.map → OracleStoreSecretsAndConfigFlowDetail-OJL7FBEX.js.map} +0 -0
- /package/dist/{OracleStoreSecretsFlowDetail-LHW2JSKX.js.map → OracleStoreSecretsFlowDetail-Q7BB6VPM.js.map} +0 -0
- /package/dist/{ProposalCreateConfig-DAIAJWU4.js.map → ProposalCreateConfig-PD2HANKW.js.map} +0 -0
- /package/dist/{ProposalVoteConfig-2FOG2FFP.js.map → ProposalVoteConfig-CGDNREKQ.js.map} +0 -0
- /package/dist/{ProposalVoteFlowDetail-BRHGJXD2.js.map → ProposalVoteFlowDetail-BNIZNLJ3.js.map} +0 -0
- /package/dist/{ProtocolSelectFlowDetail-3RKNFTWF.js.map → ProtocolSelectFlowDetail-X34GCQXS.js.map} +0 -0
- /package/dist/{RetireConfig-IFSJTDMZ.js.map → RetireConfig-XCYWEMCM.js.map} +0 -0
- /package/dist/{RetireFlowDetail-OOGYAODJ.js.map → RetireFlowDetail-J2VJGNU3.js.map} +0 -0
- /package/dist/{SandboxProvisionFlowDetail-LFHRTPLR.js.map → SandboxProvisionFlowDetail-DTCXKMFO.js.map} +0 -0
- /package/dist/{WalletFundConfig-WK7QIPL6.js.map → WalletFundConfig-MU6JRK2X.js.map} +0 -0
- /package/dist/{WalletFundFlowDetail-N2XTMXIG.js.map → WalletFundFlowDetail-7YJDOYVS.js.map} +0 -0
- /package/dist/{WalletGenerateAndFundFlowDetail-5LKRKR4R.js.map → WalletGenerateAndFundFlowDetail-CME4JE3R.js.map} +0 -0
- /package/dist/{WalletGenerateFlowDetail-RXZJMLLP.js.map → WalletGenerateFlowDetail-3KTVG2V4.js.map} +0 -0
- /package/dist/{XeroContactCreateConfig-34JJXNUW.js.map → XeroContactCreateConfig-4VKYUIJQ.js.map} +0 -0
- /package/dist/{XeroContactCreateFlowDetail-4BDRDAXW.js.map → XeroContactCreateFlowDetail-JRJ5I4CD.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateConfig-VI4HQP2Z.js.map → XeroInvoiceCreateConfig-ULKQXCNS.js.map} +0 -0
- /package/dist/{XeroInvoiceCreateFlowDetail-AKS7WN4K.js.map → XeroInvoiceCreateFlowDetail-DTOFRV4L.js.map} +0 -0
- /package/dist/{XeroInvoiceListConfig-6GELQTQK.js.map → XeroInvoiceListConfig-PPXFYVVK.js.map} +0 -0
- /package/dist/{XeroInvoiceListFlowDetail-27GR2BSJ.js.map → XeroInvoiceListFlowDetail-RPE7NCMF.js.map} +0 -0
- /package/dist/{XeroPaymentCreateConfig-7PNHPUGK.js.map → XeroPaymentCreateConfig-EIYSLLZK.js.map} +0 -0
- /package/dist/{XeroPaymentCreateFlowDetail-PDWKG2SR.js.map → XeroPaymentCreateFlowDetail-MMLHUXLS.js.map} +0 -0
- /package/dist/{chunk-D737IBAL.js.map → chunk-2GIBQPNN.js.map} +0 -0
- /package/dist/{chunk-UEIFCJTT.js.map → chunk-3PUDS5PV.js.map} +0 -0
- /package/dist/{chunk-S2TUXPUL.js.map → chunk-45KKBVIM.js.map} +0 -0
- /package/dist/{chunk-SAY4IOQ4.js.map → chunk-6S4TEGYI.js.map} +0 -0
- /package/dist/{chunk-OHXDPRPB.js.map → chunk-7UJMOJBH.js.map} +0 -0
- /package/dist/{chunk-FSGPZ6UT.js.map → chunk-A34Z7KJC.js.map} +0 -0
- /package/dist/{chunk-LVPX7CAS.js.map → chunk-AW6YLUSS.js.map} +0 -0
- /package/dist/{chunk-NTQKVYLG.js.map → chunk-B7X6QSZ7.js.map} +0 -0
- /package/dist/{chunk-3WIS2UI4.js.map → chunk-BH5JRBU4.js.map} +0 -0
- /package/dist/{chunk-UCO4YJ5L.js.map → chunk-DRPCLFT2.js.map} +0 -0
- /package/dist/{chunk-B464VTTD.js.map → chunk-IJUGKKMY.js.map} +0 -0
- /package/dist/{chunk-RG7Z2VMU.js.map → chunk-IY7QJKBL.js.map} +0 -0
- /package/dist/{chunk-25POTAU5.js.map → chunk-JD25JVOX.js.map} +0 -0
- /package/dist/{chunk-AJF7MIIN.js.map → chunk-L6ZHO7T4.js.map} +0 -0
- /package/dist/{chunk-CC7MDRBY.js.map → chunk-NDD5CJZB.js.map} +0 -0
- /package/dist/{chunk-JYNYVFSY.js.map → chunk-Q2FDVC3Z.js.map} +0 -0
- /package/dist/{chunk-3C6YD77I.js.map → chunk-QUGMNWDO.js.map} +0 -0
- /package/dist/{chunk-A35SKJEL.js.map → chunk-RIHEX7HK.js.map} +0 -0
- /package/dist/{chunk-UIBIZKN4.js.map → chunk-SUIL2KJT.js.map} +0 -0
- /package/dist/{chunk-7WBLDDDN.js.map → chunk-SXCEELAR.js.map} +0 -0
- /package/dist/{chunk-635DLQIO.js.map → chunk-T3GM5CRM.js.map} +0 -0
- /package/dist/{chunk-X7L5XHYY.js.map → chunk-VSVM2MPJ.js.map} +0 -0
- /package/dist/{chunk-SWDPZFJ7.js.map → chunk-WBTL6EX4.js.map} +0 -0
- /package/dist/{chunk-ARLE35FS.js.map → chunk-WY4JOYIF.js.map} +0 -0
- /package/dist/{chunk-BJDQVMYW.js.map → chunk-YQ2KFBAT.js.map} +0 -0
- /package/dist/{chunk-DGALOR3X.js.map → chunk-YRWVRQXG.js.map} +0 -0
- /package/dist/{chunk-EZ424ZXM.js.map → chunk-Z46UWMKG.js.map} +0 -0
- /package/dist/{chunk-B3R2NVUD.js.map → chunk-ZAZDJGPW.js.map} +0 -0
- /package/dist/{chunk-LJCGR4FZ.js.map → chunk-ZCKNE7BN.js.map} +0 -0
package/dist/core/index.cjs
CHANGED
|
@@ -80,6 +80,7 @@ __export(core_exports, {
|
|
|
80
80
|
ACTION_SAFETY_BY_TYPE: () => ACTION_SAFETY_BY_TYPE,
|
|
81
81
|
AUTHORITY_RECHECK_MS: () => AUTHORITY_RECHECK_MS,
|
|
82
82
|
ActionContractResolutionError: () => ActionContractResolutionError,
|
|
83
|
+
ActionEffectNotStartedError: () => ActionEffectNotStartedError,
|
|
83
84
|
ActionManifestV2VerificationError: () => ActionManifestV2VerificationError,
|
|
84
85
|
ComposioContractMismatchError: () => ComposioContractMismatchError,
|
|
85
86
|
DESIGN_POD_CONTROL_IDS: () => DESIGN_POD_CONTROL_IDS,
|
|
@@ -89,10 +90,12 @@ __export(core_exports, {
|
|
|
89
90
|
DESIGN_POD_STATE_MAP_KEY: () => DESIGN_POD_STATE_MAP_KEY,
|
|
90
91
|
DESIGN_POD_TEMPLATE_ID: () => DESIGN_POD_TEMPLATE_ID,
|
|
91
92
|
DESIGN_YOMA_METHOD_V1: () => DESIGN_YOMA_METHOD_V1,
|
|
93
|
+
EFFECT_OUTCOME_UNKNOWN_CODE: () => EFFECT_OUTCOME_UNKNOWN_CODE,
|
|
92
94
|
EffectClaimTransitionError: () => EffectClaimTransitionError,
|
|
93
95
|
EncryptedMatrixFlowDefinitionRevisionRepository: () => EncryptedMatrixFlowDefinitionRevisionRepository,
|
|
94
96
|
ExplicitRunRequiredError: () => ExplicitRunRequiredError,
|
|
95
97
|
FLOW_AUTHORITY_EVENT_TYPE: () => FLOW_AUTHORITY_EVENT_TYPE,
|
|
98
|
+
FLOW_BLOCK_EXECUTE_CAN: () => FLOW_BLOCK_EXECUTE_CAN,
|
|
96
99
|
FLOW_CAPABILITIES: () => FLOW_CAPABILITIES,
|
|
97
100
|
FLOW_CONNECTIONS_MAP_KEY: () => FLOW_CONNECTIONS_MAP_KEY,
|
|
98
101
|
FLOW_CONNECTION_BINDINGS_MAP_KEY: () => FLOW_CONNECTION_BINDINGS_MAP_KEY,
|
|
@@ -131,6 +134,8 @@ __export(core_exports, {
|
|
|
131
134
|
PROFESSIONAL_SERVICE_METHOD_V1: () => PROFESSIONAL_SERVICE_METHOD_V1,
|
|
132
135
|
PROOF_MISSING_CODE: () => PROOF_MISSING_CODE,
|
|
133
136
|
PeerExecutionError: () => PeerExecutionError,
|
|
137
|
+
RESULT_RECEIPT_FACT_TYPE: () => RESULT_RECEIPT_FACT_TYPE,
|
|
138
|
+
RESULT_RECEIPT_REQUIRED: () => RESULT_RECEIPT_REQUIRED,
|
|
134
139
|
RUNS_TERMINAL_MAP_KEY: () => RUNS_TERMINAL_MAP_KEY,
|
|
135
140
|
RUNS_TERMINAL_PENDING_MAP_KEY: () => RUNS_TERMINAL_PENDING_MAP_KEY,
|
|
136
141
|
RUN_RECORD_AUDIT_TYPE: () => RUN_RECORD_AUDIT_TYPE,
|
|
@@ -143,6 +148,7 @@ __export(core_exports, {
|
|
|
143
148
|
STEP_COMPLETED_EVENT_NAME: () => STEP_COMPLETED_EVENT_NAME,
|
|
144
149
|
TerminalRunExecutionError: () => TerminalRunExecutionError,
|
|
145
150
|
TopicActionBridge: () => TopicActionBridge,
|
|
151
|
+
TopicRequestAlreadyStartedError: () => TopicRequestAlreadyStartedError,
|
|
146
152
|
TopicRevisionConflictError: () => TopicRevisionConflictError,
|
|
147
153
|
UNIVERSAL_ACTION_COMPLETED_OUTCOME: () => UNIVERSAL_ACTION_COMPLETED_OUTCOME,
|
|
148
154
|
UnknownRunError: () => UnknownRunError,
|
|
@@ -198,6 +204,7 @@ __export(core_exports, {
|
|
|
198
204
|
capabilityForRequest: () => capabilityForRequest,
|
|
199
205
|
capabilityPatternCoversCan: () => capabilityPatternCoversCan,
|
|
200
206
|
censusFlowAuthority: () => censusFlowAuthority,
|
|
207
|
+
checkFlowDefinition: () => checkFlowDefinition,
|
|
201
208
|
claimEffect: () => claimEffect,
|
|
202
209
|
classifyBlockerCause: () => classifyBlockerCause,
|
|
203
210
|
classifyNodeState: () => classifyNodeState,
|
|
@@ -207,6 +214,7 @@ __export(core_exports, {
|
|
|
207
214
|
closeRun: () => closeRun,
|
|
208
215
|
collectPhantomLegacyRun: () => collectPhantomLegacyRun,
|
|
209
216
|
commitDesignPodPhase: () => commitDesignPodPhase,
|
|
217
|
+
compileAuthorityRequirements: () => compileAuthorityRequirements,
|
|
210
218
|
compileBaseUcanFlow: () => compileBaseUcanFlow,
|
|
211
219
|
compileDesignPodRelease: () => compileDesignPodRelease,
|
|
212
220
|
computeActionContractDigest: () => computeActionContractDigest,
|
|
@@ -258,8 +266,13 @@ __export(core_exports, {
|
|
|
258
266
|
deriveAttemptId: () => deriveAttemptId,
|
|
259
267
|
deriveEffectClaimKey: () => deriveEffectClaimKey,
|
|
260
268
|
deriveEventId: () => deriveEventId,
|
|
269
|
+
deriveEvidenceStatus: () => deriveEvidenceStatus,
|
|
270
|
+
deriveExecutionStatus: () => deriveExecutionStatus,
|
|
261
271
|
deriveReceiptId: () => deriveReceiptId,
|
|
272
|
+
deriveReworkPolicy: () => deriveReworkPolicy,
|
|
262
273
|
deriveRunId: () => deriveRunId,
|
|
274
|
+
deriveWorkItemPhase: () => deriveWorkItemPhase,
|
|
275
|
+
deriveWorkStatus: () => deriveWorkStatus,
|
|
263
276
|
detectRunDefinitionDrift: () => detectRunDefinitionDrift,
|
|
264
277
|
digestCanonicalJson: () => digestCanonicalJson,
|
|
265
278
|
digestDesignPodValue: () => digestDesignPodValue,
|
|
@@ -327,6 +340,7 @@ __export(core_exports, {
|
|
|
327
340
|
isBelowTheLineBlock: () => isBelowTheLineBlock,
|
|
328
341
|
isBlankInputValue: () => isBlankInputValue,
|
|
329
342
|
isCapabilityMatch: () => isCapabilityMatch,
|
|
343
|
+
isEffectNotStartedError: () => isEffectNotStartedError,
|
|
330
344
|
isExternalMutation: () => isExternalMutation,
|
|
331
345
|
isFlowOwner: () => isFlowOwner,
|
|
332
346
|
isLegacyRuntimeAdoptionEnabled: () => isLegacyRuntimeAdoptionEnabled,
|
|
@@ -440,10 +454,12 @@ __export(core_exports, {
|
|
|
440
454
|
resolveRunIdForRead: () => resolveRunIdForRead,
|
|
441
455
|
resolveRuntimeRefs: () => resolveRuntimeRefs,
|
|
442
456
|
resolveSingleReference: () => resolveSingleReference,
|
|
457
|
+
resolveStepAction: () => resolveStepAction,
|
|
443
458
|
resourceMatches: () => resourceMatches,
|
|
444
459
|
retryPendingRunTimelineEvents: () => retryPendingRunTimelineEvents,
|
|
445
460
|
revocationCheckerFor: () => revocationCheckerFor,
|
|
446
461
|
runLedgerAttestations: () => runLedgerAttestations,
|
|
462
|
+
runStartRequestExpectedFacts: () => runStartRequestExpectedFacts,
|
|
447
463
|
sameDesignPodActor: () => sameDesignPodActor,
|
|
448
464
|
seedDesignPodMethodDefinition: () => seedDesignPodMethodDefinition,
|
|
449
465
|
seedDesignPodTemplateFlow: () => seedDesignPodTemplateFlow,
|
|
@@ -472,6 +488,7 @@ __export(core_exports, {
|
|
|
472
488
|
snapshotInputRefs: () => snapshotInputRefs,
|
|
473
489
|
snapshotNode: () => snapshotNode,
|
|
474
490
|
startRun: () => startRun,
|
|
491
|
+
stepAssigneeDid: () => stepAssigneeDid,
|
|
475
492
|
subscribeToActionState: () => subscribeToActionState,
|
|
476
493
|
summarizeFlowAuthorityCensus: () => summarizeFlowAuthorityCensus,
|
|
477
494
|
swapFlowBlocks: () => swapFlowBlocks,
|
|
@@ -1690,6 +1707,7 @@ function registerAction(definition) {
|
|
|
1690
1707
|
definition.contractVersion = LEGACY_ACTION_CONTRACT_VERSION;
|
|
1691
1708
|
}
|
|
1692
1709
|
if (definition.can) definition.can = normalizeCan(definition.can);
|
|
1710
|
+
assertMutableOutputPaths(definition);
|
|
1693
1711
|
Object.assign(definition, normalizeActionPolicy(definition));
|
|
1694
1712
|
if (!definition.done) {
|
|
1695
1713
|
warnOnce(`missing-done-contract:${definition.type}`, `[flow-config] action ${definition.type}: no done contract declared; defaulting to state === 'completed'`);
|
|
@@ -1698,6 +1716,22 @@ function registerAction(definition) {
|
|
|
1698
1716
|
actions.set(definition.type, definition);
|
|
1699
1717
|
registryRevision += 1;
|
|
1700
1718
|
}
|
|
1719
|
+
var overlaps = (left, right) => left === right || left.startsWith(`${right}.`) || right.startsWith(`${left}.`);
|
|
1720
|
+
function assertMutableOutputPaths(definition) {
|
|
1721
|
+
const paths = definition.mutableOutputPaths;
|
|
1722
|
+
if (paths === void 0) return;
|
|
1723
|
+
if (!Array.isArray(paths)) throw new Error(`Action '${definition.type}': mutableOutputPaths must be an array of output paths.`);
|
|
1724
|
+
const proofFields = definition.proof && typeof definition.proof === "object" && "fields" in definition.proof ? definition.proof.fields : [];
|
|
1725
|
+
for (const path of paths) {
|
|
1726
|
+
if (typeof path !== "string" || !path.trim() || path.split(".").some((segment2) => !segment2)) {
|
|
1727
|
+
throw new Error(`Action '${definition.type}': mutableOutputPaths entry ${JSON.stringify(path)} is not an output path.`);
|
|
1728
|
+
}
|
|
1729
|
+
const proofField = proofFields.find((field) => overlaps(path, field));
|
|
1730
|
+
if (proofField) {
|
|
1731
|
+
throw new Error(`Action '${definition.type}': mutableOutputPaths may not include the proof field '${proofField}' (listed as '${path}').`);
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1701
1735
|
function getAction(type) {
|
|
1702
1736
|
return actions.get(resolveActionType(type));
|
|
1703
1737
|
}
|
|
@@ -9118,7 +9152,8 @@ registerGovernanceProposalAction({
|
|
|
9118
9152
|
const optional = (value, label, max) => {
|
|
9119
9153
|
if (value === void 0 || value === null || value === "") return null;
|
|
9120
9154
|
const n = Number(value);
|
|
9121
|
-
if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max)
|
|
9155
|
+
if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max)
|
|
9156
|
+
throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
|
|
9122
9157
|
return n;
|
|
9123
9158
|
};
|
|
9124
9159
|
const vpCapPercent = optional(inputs.vpCapPercent, "vpCapPercent", 100);
|
|
@@ -9128,7 +9163,11 @@ registerGovernanceProposalAction({
|
|
|
9128
9163
|
},
|
|
9129
9164
|
defaultTitle: () => "Enable vote delegation",
|
|
9130
9165
|
defaultDescription: () => "Members will be able to delegate a share of their voting power to registered delegates; delegators can still vote themselves, which overrides the delegate for that proposal.",
|
|
9131
|
-
buildExtraOutput: (inputs) => ({
|
|
9166
|
+
buildExtraOutput: (inputs) => ({
|
|
9167
|
+
vpCapPercent: String(inputs.vpCapPercent ?? ""),
|
|
9168
|
+
validityBlocks: String(inputs.validityBlocks ?? ""),
|
|
9169
|
+
maxDelegations: String(inputs.maxDelegations ?? "")
|
|
9170
|
+
}),
|
|
9132
9171
|
extraOutputSchema: [
|
|
9133
9172
|
{ path: "vpCapPercent", displayName: "Voting Power Cap %", type: "string", description: "The submitted cap, blank for none" },
|
|
9134
9173
|
{ path: "validityBlocks", displayName: "Validity Blocks", type: "string", description: "The submitted delegation validity, blank for never expiring" },
|
|
@@ -11298,6 +11337,9 @@ registerAction({
|
|
|
11298
11337
|
// the full vocabulary (e.g. returning [] to hide the static baseline).
|
|
11299
11338
|
dynamicResolutionMode: "replace",
|
|
11300
11339
|
proof: { fields: ["claimId"] },
|
|
11340
|
+
// The pending-work snapshot `done` folds over is refreshed on the completed
|
|
11341
|
+
// step by the flow detail and by completion reconciliation.
|
|
11342
|
+
mutableOutputPaths: ["pendingClaimCount", "pendingCheckedAt", "collectionClosed"],
|
|
11301
11343
|
done: evaluateClaimDone,
|
|
11302
11344
|
// Repeatable: an evaluator processes many claims over the flow's life. Done
|
|
11303
11345
|
// is a snapshot ("no pending claims as of the last check") that reopens when
|
|
@@ -11675,6 +11717,9 @@ registerAction({
|
|
|
11675
11717
|
can: "proposal/create",
|
|
11676
11718
|
sideEffect: true,
|
|
11677
11719
|
proof: { fields: ["proposalId"] },
|
|
11720
|
+
// The flow detail syncs the on-chain status (and, once executed, the
|
|
11721
|
+
// proposal module address) into the completed step's output.
|
|
11722
|
+
mutableOutputPaths: ["status", "proposalContractAddress"],
|
|
11678
11723
|
done: doneWhenCompleted,
|
|
11679
11724
|
defaultRequiresConfirmation: true,
|
|
11680
11725
|
requiredCapability: "flow/block/execute",
|
|
@@ -13306,6 +13351,63 @@ async function sendDirectMessage(matrixClient, targetDid, message) {
|
|
|
13306
13351
|
return { roomId };
|
|
13307
13352
|
}
|
|
13308
13353
|
|
|
13354
|
+
// src/core/lib/actionRegistry/effectBoundary.ts
|
|
13355
|
+
var EFFECT_OUTCOME_UNKNOWN_CODE = "EFFECT_OUTCOME_UNKNOWN";
|
|
13356
|
+
var ActionEffectNotStartedError = class extends Error {
|
|
13357
|
+
constructor(message) {
|
|
13358
|
+
super(message);
|
|
13359
|
+
this.effectNotStarted = true;
|
|
13360
|
+
this.name = "ActionEffectNotStartedError";
|
|
13361
|
+
}
|
|
13362
|
+
};
|
|
13363
|
+
function isEffectNotStartedError(error) {
|
|
13364
|
+
return !!error && typeof error === "object" && error.effectNotStarted === true;
|
|
13365
|
+
}
|
|
13366
|
+
function trackPort(value, onTouch, seen2) {
|
|
13367
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return value;
|
|
13368
|
+
const target = value;
|
|
13369
|
+
const cached2 = seen2.get(target);
|
|
13370
|
+
if (cached2) return cached2;
|
|
13371
|
+
const proxy = new Proxy(target, {
|
|
13372
|
+
get(obj, prop) {
|
|
13373
|
+
const raw = Reflect.get(obj, prop);
|
|
13374
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(obj, prop);
|
|
13375
|
+
if (descriptor && !descriptor.configurable && descriptor.writable === false) {
|
|
13376
|
+
if (typeof raw === "function") onTouch();
|
|
13377
|
+
return raw;
|
|
13378
|
+
}
|
|
13379
|
+
if (typeof raw === "function") {
|
|
13380
|
+
return (...args) => {
|
|
13381
|
+
onTouch();
|
|
13382
|
+
return Reflect.apply(raw, obj, args);
|
|
13383
|
+
};
|
|
13384
|
+
}
|
|
13385
|
+
return trackPort(raw, onTouch, seen2);
|
|
13386
|
+
}
|
|
13387
|
+
});
|
|
13388
|
+
seen2.set(target, proxy);
|
|
13389
|
+
return proxy;
|
|
13390
|
+
}
|
|
13391
|
+
function trackActionEffectPorts(ctx, onTouch) {
|
|
13392
|
+
const seen2 = /* @__PURE__ */ new WeakMap();
|
|
13393
|
+
const services = trackPort(ctx.services, onTouch, seen2);
|
|
13394
|
+
const handlers = ctx.handlers ? trackPort(ctx.handlers, onTouch, seen2) : ctx.handlers;
|
|
13395
|
+
const { editor, runEventLog, ...rest } = ctx;
|
|
13396
|
+
return {
|
|
13397
|
+
...rest,
|
|
13398
|
+
services,
|
|
13399
|
+
handlers,
|
|
13400
|
+
get editor() {
|
|
13401
|
+
if (editor) onTouch();
|
|
13402
|
+
return editor;
|
|
13403
|
+
},
|
|
13404
|
+
get runEventLog() {
|
|
13405
|
+
if (runEventLog) onTouch();
|
|
13406
|
+
return runEventLog;
|
|
13407
|
+
}
|
|
13408
|
+
};
|
|
13409
|
+
}
|
|
13410
|
+
|
|
13309
13411
|
// src/core/lib/actionRegistry/actions/matrixDm.ts
|
|
13310
13412
|
registerAction({
|
|
13311
13413
|
type: "qi/matrix.dm",
|
|
@@ -13327,14 +13429,14 @@ registerAction({
|
|
|
13327
13429
|
{ path: "sentAt", displayName: "Sent At", type: "string", description: "Timestamp when the message was sent" }
|
|
13328
13430
|
],
|
|
13329
13431
|
run: async (inputs, ctx) => {
|
|
13330
|
-
const matrixClient = ctx.editor?.getMatrixClient?.();
|
|
13331
|
-
if (!matrixClient) {
|
|
13332
|
-
throw new Error("Matrix client not available");
|
|
13333
|
-
}
|
|
13334
13432
|
const targetDid = String(inputs.targetDid || "").trim();
|
|
13335
13433
|
const message = String(inputs.message || "").trim();
|
|
13336
13434
|
if (!targetDid) throw new Error("Recipient DID is required");
|
|
13337
13435
|
if (!message) throw new Error("Message is required");
|
|
13436
|
+
const matrixClient = ctx.editor?.getMatrixClient?.();
|
|
13437
|
+
if (!matrixClient) {
|
|
13438
|
+
throw new ActionEffectNotStartedError("Matrix client not available");
|
|
13439
|
+
}
|
|
13338
13440
|
const result = await sendDirectMessage(matrixClient, targetDid, message);
|
|
13339
13441
|
return {
|
|
13340
13442
|
output: {
|
|
@@ -17553,6 +17655,7 @@ registerAction({
|
|
|
17553
17655
|
|
|
17554
17656
|
// src/core/lib/actionRegistry/actions/decisionRequest/index.ts
|
|
17555
17657
|
var DECISION_REQUEST_ACTION_TYPE = "qi/decision.request";
|
|
17658
|
+
var DECISION_DECIDING_STATUS = "deciding";
|
|
17556
17659
|
var DECISION_REQUEST_ERROR_CODES = {
|
|
17557
17660
|
paymentRequired: "payment_required",
|
|
17558
17661
|
pending: "decision_pending",
|
|
@@ -17571,7 +17674,12 @@ var DECISION_REQUEST_OUTPUT_SCHEMA = [
|
|
|
17571
17674
|
{ path: "claimId", displayName: "Claim ID", type: "string", description: "The oracle's id for the submitted claim." },
|
|
17572
17675
|
{ path: "verdict", displayName: "Verdict", type: "string", description: "approve, partial, reject or review." },
|
|
17573
17676
|
{ path: "receiptCid", displayName: "Receipt CID", type: "string", description: "CID of the oracle's signed decision receipt, when one was minted." },
|
|
17574
|
-
{
|
|
17677
|
+
{
|
|
17678
|
+
path: "status",
|
|
17679
|
+
displayName: "Decision status",
|
|
17680
|
+
type: "string",
|
|
17681
|
+
description: "decided, pending_review, unusable or invalid_facts; deciding while the oracle has not decided yet."
|
|
17682
|
+
},
|
|
17575
17683
|
{ path: "oracleDid", displayName: "Oracle DID", type: "string", description: "The oracle that decided the claim." },
|
|
17576
17684
|
{ path: "protocolDid", displayName: "Protocol DID", type: "string", description: "The protocol the claim was submitted under." },
|
|
17577
17685
|
{ path: "paidAmount", displayName: "Paid (upay)", type: "string", description: "What this decision cost, in upay (1 PAY = 1,000,000 upay); empty when it was free." },
|
|
@@ -17621,8 +17729,27 @@ function decisionAttemptOf(ctx) {
|
|
|
17621
17729
|
const value = ctx.runtime ? ctx.runtime.get(ctx.nodeId)?.[ATTEMPT_FIELD] : void 0;
|
|
17622
17730
|
return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : 0;
|
|
17623
17731
|
}
|
|
17732
|
+
var PRE_SUBMIT_CODES = [
|
|
17733
|
+
DECISION_REQUEST_ERROR_CODES.sourceSetupRequired,
|
|
17734
|
+
DECISION_REQUEST_ERROR_CODES.oracleUntrusted,
|
|
17735
|
+
DECISION_REQUEST_ERROR_CODES.fileRejected,
|
|
17736
|
+
DECISION_REQUEST_ERROR_CODES.fileUnreadable,
|
|
17737
|
+
DECISION_REQUEST_ERROR_CODES.uploadFailed
|
|
17738
|
+
];
|
|
17739
|
+
function notSent(message) {
|
|
17740
|
+
return new ActionEffectNotStartedError(message);
|
|
17741
|
+
}
|
|
17742
|
+
async function beforeSubmit(call) {
|
|
17743
|
+
try {
|
|
17744
|
+
return await call();
|
|
17745
|
+
} catch (error) {
|
|
17746
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
17747
|
+
if (PRE_SUBMIT_CODES.some((code) => message.includes(`[${code}]`))) throw notSent(message);
|
|
17748
|
+
throw error;
|
|
17749
|
+
}
|
|
17750
|
+
}
|
|
17624
17751
|
var decisionRequestDone = {
|
|
17625
|
-
isDone: (state) => state.state === "completed" && typeof state.output?.claimId === "string" && state.output.claimId.trim().length > 0,
|
|
17752
|
+
isDone: (state) => state.state === "completed" && typeof state.output?.claimId === "string" && state.output.claimId.trim().length > 0 && state.output.status !== DECISION_DECIDING_STATUS,
|
|
17626
17753
|
reopenable: true,
|
|
17627
17754
|
standingDoneRequiresFold: true
|
|
17628
17755
|
};
|
|
@@ -17657,25 +17784,27 @@ registerAction({
|
|
|
17657
17784
|
const oracleDid = String(inputs.oracleDid || "").trim();
|
|
17658
17785
|
const apiUrl = String(inputs.apiUrl || "").trim();
|
|
17659
17786
|
const protocolDid = String(inputs.protocolDid || "").trim();
|
|
17660
|
-
if (!oracleDid || !apiUrl) throw
|
|
17661
|
-
if (!protocolDid) throw
|
|
17787
|
+
if (!oracleDid || !apiUrl) throw notSent("No oracle selected. Pick the evaluation oracle that should decide this claim.");
|
|
17788
|
+
if (!protocolDid) throw notSent("No protocol selected. Pick the protocol this claim is submitted under.");
|
|
17662
17789
|
const formMode = inputs.answersMode === "form" || !!ctx.pendingInvocation;
|
|
17663
17790
|
const answers = formMode ? formAnswersOf(inputs, ctx) : parseDecisionAnswers(inputs.answers);
|
|
17664
17791
|
const service = ctx.services.decisions;
|
|
17665
|
-
if (!service) throw
|
|
17792
|
+
if (!service) throw notSent("decisions service not configured (ctx.services.decisions is undefined)");
|
|
17666
17793
|
console.log(`${LOG2} step 1/2 ensureSource`, { oracleDid });
|
|
17667
|
-
const { sourceId } = await service.ensureSource({ oracleDid, apiUrl, protocolDid });
|
|
17668
|
-
if (!sourceId) throw
|
|
17794
|
+
const { sourceId } = await beforeSubmit(() => service.ensureSource({ oracleDid, apiUrl, protocolDid }));
|
|
17795
|
+
if (!sourceId) throw notSent("[step 1/2 source] the oracle returned no source id");
|
|
17669
17796
|
const attempt = decisionAttemptOf(ctx);
|
|
17670
17797
|
console.log(`${LOG2} step 2/2 submitClaim`, { oracleDid, protocolDid, attempt });
|
|
17671
|
-
const result = await
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
|
|
17678
|
-
|
|
17798
|
+
const result = await beforeSubmit(
|
|
17799
|
+
() => service.submitClaim({
|
|
17800
|
+
oracleDid,
|
|
17801
|
+
apiUrl,
|
|
17802
|
+
sourceId,
|
|
17803
|
+
protocolDid,
|
|
17804
|
+
answers,
|
|
17805
|
+
idempotencyKey: decisionIdempotencyKey(ctx, { oracleDid, protocolDid, answers }, attempt)
|
|
17806
|
+
})
|
|
17807
|
+
);
|
|
17679
17808
|
switch (result.status) {
|
|
17680
17809
|
case "decided":
|
|
17681
17810
|
return {
|
|
@@ -17691,22 +17820,33 @@ registerAction({
|
|
|
17691
17820
|
}
|
|
17692
17821
|
};
|
|
17693
17822
|
case "pending":
|
|
17694
|
-
|
|
17695
|
-
|
|
17696
|
-
|
|
17823
|
+
return {
|
|
17824
|
+
output: {
|
|
17825
|
+
claimId: result.claimId,
|
|
17826
|
+
verdict: "",
|
|
17827
|
+
receiptCid: "",
|
|
17828
|
+
status: DECISION_DECIDING_STATUS,
|
|
17829
|
+
oracleDid,
|
|
17830
|
+
protocolDid,
|
|
17831
|
+
paidAmount: result.payment?.amount ?? "",
|
|
17832
|
+
paymentTx: result.payment?.transaction ?? ""
|
|
17833
|
+
},
|
|
17834
|
+
completion: {
|
|
17835
|
+
state: "awaiting_readback",
|
|
17836
|
+
readBack: { kind: DECISION_REQUEST_ACTION_TYPE, correlationId: result.claimId, claimStatus: result.claimStatus, oracleDid, protocolDid }
|
|
17837
|
+
}
|
|
17838
|
+
};
|
|
17697
17839
|
case "payment_required":
|
|
17698
|
-
throw
|
|
17840
|
+
throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentRequired}] ${result.message}`);
|
|
17699
17841
|
case "payment_approval_required":
|
|
17700
|
-
throw
|
|
17842
|
+
throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentApprovalRequired}] This oracle charges for its decisions. amount=${result.amount} fundingUrl=${result.fundingUrl}`);
|
|
17701
17843
|
case "payment_refused":
|
|
17702
|
-
throw
|
|
17703
|
-
`[${DECISION_REQUEST_ERROR_CODES.paymentRefused}] The payment was refused. reason=${result.reason} amount=${result.amount} fundingUrl=${result.fundingUrl}`
|
|
17704
|
-
);
|
|
17844
|
+
throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentRefused}] The payment was refused. reason=${result.reason} amount=${result.amount} fundingUrl=${result.fundingUrl}`);
|
|
17705
17845
|
case "payments_unavailable":
|
|
17706
|
-
throw
|
|
17846
|
+
throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentsUnavailable}] Decisions can't be paid for on this network yet.`);
|
|
17707
17847
|
case "failed":
|
|
17708
17848
|
ctx.runtime?.update(ctx.nodeId, { [ATTEMPT_FIELD]: attempt + 1 });
|
|
17709
|
-
throw
|
|
17849
|
+
throw notSent(`The oracle could not decide claim ${result.claimId}: ${result.message}`);
|
|
17710
17850
|
default:
|
|
17711
17851
|
throw new Error(result.message || "The decision request failed");
|
|
17712
17852
|
}
|
|
@@ -21869,7 +22009,7 @@ function runRecordTrust(record4, sourceBlockId, invocationsMap, receipts) {
|
|
|
21869
22009
|
const invocation = invocationsMap.get(record4.invocationCid);
|
|
21870
22010
|
if (!invocation || typeof invocation !== "object" || invocation.result !== "success") return "untrusted";
|
|
21871
22011
|
if (!receipts) return "untrusted";
|
|
21872
|
-
const status = receipts.check(invocation, { blockId: sourceBlockId });
|
|
22012
|
+
const status = receipts.check(invocation, { blockId: sourceBlockId, output: record4.output, events: record4.events });
|
|
21873
22013
|
return status.status === "verified" ? "verified" : status.status === "pending" ? "pending" : "untrusted";
|
|
21874
22014
|
}
|
|
21875
22015
|
function processRunRecord(yDoc, runId, sourceBlockId, record4, listenersBySource, getNodeOutput2, isConsumed, now) {
|
|
@@ -22200,6 +22340,23 @@ function digestInputResponse(content) {
|
|
|
22200
22340
|
const { authorization: _authorization, ...rest } = content;
|
|
22201
22341
|
return digestRequestValue(rest);
|
|
22202
22342
|
}
|
|
22343
|
+
function topicRequestFacts(topicRequest) {
|
|
22344
|
+
if (!topicRequest) return {};
|
|
22345
|
+
return {
|
|
22346
|
+
topicRequestId: topicRequest.requestId,
|
|
22347
|
+
topicId: topicRequest.topicId,
|
|
22348
|
+
...topicRequest.bindingId ? { topicBindingId: topicRequest.bindingId } : {}
|
|
22349
|
+
};
|
|
22350
|
+
}
|
|
22351
|
+
function runStartRequestExpectedFacts(params) {
|
|
22352
|
+
return {
|
|
22353
|
+
type: "qi.flow.request",
|
|
22354
|
+
kind: "run.start",
|
|
22355
|
+
runId: params.runId,
|
|
22356
|
+
requestId: params.requestId,
|
|
22357
|
+
...topicRequestFacts(params.topicRequest)
|
|
22358
|
+
};
|
|
22359
|
+
}
|
|
22203
22360
|
function randomRequestId() {
|
|
22204
22361
|
const bytes = new Uint8Array(16);
|
|
22205
22362
|
globalThis.crypto.getRandomValues(bytes);
|
|
@@ -22211,6 +22368,7 @@ async function createFlowRequest(ucanService, params) {
|
|
|
22211
22368
|
if (params.kind === "schedule.arm" && (!params.scheduleId || params.scheduleRevision === void 0)) {
|
|
22212
22369
|
throw new Error("A schedule arm request needs the schedule and its current revision.");
|
|
22213
22370
|
}
|
|
22371
|
+
if (params.topicRequest && params.kind !== "run.start") throw new Error("Only a session start can be made for a Topic request.");
|
|
22214
22372
|
const requestId = params.requestId ?? randomRequestId();
|
|
22215
22373
|
const capability = capabilityForRequest(params.kind, params.docId, params.stepId);
|
|
22216
22374
|
const facts = {
|
|
@@ -22227,7 +22385,8 @@ async function createFlowRequest(ucanService, params) {
|
|
|
22227
22385
|
...params.answerDigest ? { answerDigest: params.answerDigest } : {},
|
|
22228
22386
|
...params.requestEventId ? { requestEventId: params.requestEventId } : {},
|
|
22229
22387
|
...params.scheduleId ? { scheduleId: params.scheduleId } : {},
|
|
22230
|
-
...params.scheduleRevision !== void 0 ? { scheduleRevision: params.scheduleRevision } : {}
|
|
22388
|
+
...params.scheduleRevision !== void 0 ? { scheduleRevision: params.scheduleRevision } : {},
|
|
22389
|
+
...topicRequestFacts(params.topicRequest)
|
|
22231
22390
|
};
|
|
22232
22391
|
const result = await ucanService.createAndValidateInvocation(
|
|
22233
22392
|
{
|
|
@@ -22268,7 +22427,7 @@ function readFlowRequest(yDoc, requestId) {
|
|
|
22268
22427
|
return found;
|
|
22269
22428
|
}
|
|
22270
22429
|
function lifecycleRequestProof(options) {
|
|
22271
|
-
return async ({ runId, defHash }) => options.ucanService.createRequestInvocation({
|
|
22430
|
+
return async ({ runId, defHash, topicRequest }) => options.ucanService.createRequestInvocation({
|
|
22272
22431
|
kind: options.kind,
|
|
22273
22432
|
requesterDid: options.requesterDid,
|
|
22274
22433
|
flowManagerDid: options.flowManagerDid,
|
|
@@ -22276,6 +22435,7 @@ function lifecycleRequestProof(options) {
|
|
|
22276
22435
|
docId: options.docId,
|
|
22277
22436
|
runId,
|
|
22278
22437
|
defHash,
|
|
22438
|
+
...topicRequest && options.kind === "run.start" ? { topicRequest } : {},
|
|
22279
22439
|
pin: await options.getPin()
|
|
22280
22440
|
});
|
|
22281
22441
|
}
|
|
@@ -22335,6 +22495,21 @@ var FlowNotMigratedError = class extends Error {
|
|
|
22335
22495
|
this.name = "FlowNotMigratedError";
|
|
22336
22496
|
}
|
|
22337
22497
|
};
|
|
22498
|
+
var TopicRequestAlreadyStartedError = class extends Error {
|
|
22499
|
+
constructor(topicRequestId, runId) {
|
|
22500
|
+
super(`Topic request "${topicRequestId}" already has a session: "${runId}".`);
|
|
22501
|
+
this.topicRequestId = topicRequestId;
|
|
22502
|
+
this.runId = runId;
|
|
22503
|
+
this.name = "TopicRequestAlreadyStartedError";
|
|
22504
|
+
}
|
|
22505
|
+
};
|
|
22506
|
+
function runForTopicRequest(yDoc, topicRequestId) {
|
|
22507
|
+
let found;
|
|
22508
|
+
getExistingRunsMap(yDoc)?.forEach((_, runId) => {
|
|
22509
|
+
if (!found && getRunMeta(yDoc, runId)?.topicRequest?.requestId === topicRequestId) found = runId;
|
|
22510
|
+
});
|
|
22511
|
+
return found;
|
|
22512
|
+
}
|
|
22338
22513
|
var RunNotMigratedError = class extends Error {
|
|
22339
22514
|
constructor(runId) {
|
|
22340
22515
|
super(`Run "${runId}" has no frozen manifest, so it is not a session.`);
|
|
@@ -22489,6 +22664,12 @@ async function startRun(params) {
|
|
|
22489
22664
|
if (usesLegacyRuntimeCompatibility(params.yDoc)) {
|
|
22490
22665
|
throw new FlowNotMigratedError(params.flowUri);
|
|
22491
22666
|
}
|
|
22667
|
+
const topicRequest = params.topicRequest ? { ...params.topicRequest } : void 0;
|
|
22668
|
+
const assertTopicRequestUnused = () => {
|
|
22669
|
+
const existing = topicRequest ? runForTopicRequest(params.yDoc, topicRequest.requestId) : void 0;
|
|
22670
|
+
if (topicRequest && existing) throw new TopicRequestAlreadyStartedError(topicRequest.requestId, existing);
|
|
22671
|
+
};
|
|
22672
|
+
assertTopicRequestUnused();
|
|
22492
22673
|
const authorization = await requireAuthorization(params.authorize, {
|
|
22493
22674
|
can: "flow/run.start",
|
|
22494
22675
|
with: params.flowUri,
|
|
@@ -22497,13 +22678,16 @@ async function startRun(params) {
|
|
|
22497
22678
|
const now = params.now?.() ?? Date.now();
|
|
22498
22679
|
const seq = nextRunSequence(params.yDoc);
|
|
22499
22680
|
const runId = createRunId(seq, now);
|
|
22500
|
-
const request = params.requestProof ? await params.requestProof({ runId, defHash: params.definition.manifest.defHash }) : void 0;
|
|
22681
|
+
const request = params.requestProof ? await params.requestProof({ runId, defHash: params.definition.manifest.defHash, ...topicRequest ? { topicRequest } : {} }) : void 0;
|
|
22682
|
+
assertTopicRequestUnused();
|
|
22683
|
+
const invocationCid = request ? request.invocationCid : authorization.invocationCid;
|
|
22501
22684
|
const meta = {
|
|
22502
22685
|
seq,
|
|
22503
22686
|
startedAt: now,
|
|
22504
22687
|
startedByDid: params.actorDid,
|
|
22505
22688
|
origin: "started",
|
|
22506
22689
|
...request ? { startRequestId: request.requestId } : {},
|
|
22690
|
+
...topicRequest ? { topicRequest } : {},
|
|
22507
22691
|
...params.label ? { label: params.label } : {},
|
|
22508
22692
|
manifest: {
|
|
22509
22693
|
blockIds: [...params.definition.manifest.blockIds],
|
|
@@ -22515,7 +22699,7 @@ async function startRun(params) {
|
|
|
22515
22699
|
kind: "run.started",
|
|
22516
22700
|
payload: {
|
|
22517
22701
|
// The requester's signed start request (a real invocation, not a grant).
|
|
22518
|
-
...
|
|
22702
|
+
...invocationCid ? { invocationCid } : {},
|
|
22519
22703
|
definitionRevision: params.definition.manifest.defHash,
|
|
22520
22704
|
...params.label ? { label: params.label } : {}
|
|
22521
22705
|
},
|
|
@@ -22545,7 +22729,8 @@ async function startRun(params) {
|
|
|
22545
22729
|
return {
|
|
22546
22730
|
run: { id: runId, meta },
|
|
22547
22731
|
eventId,
|
|
22548
|
-
flowStartInvocations
|
|
22732
|
+
flowStartInvocations,
|
|
22733
|
+
...invocationCid ? { invocationCid } : {}
|
|
22549
22734
|
};
|
|
22550
22735
|
});
|
|
22551
22736
|
}
|
|
@@ -23211,7 +23396,110 @@ var isAuthorized = async (blockId, actorDid, ucanService, flowUri) => {
|
|
|
23211
23396
|
};
|
|
23212
23397
|
};
|
|
23213
23398
|
|
|
23399
|
+
// src/core/types/ucan.ts
|
|
23400
|
+
var RESULT_RECEIPT_FACT_TYPE = "qi.flow.action.result";
|
|
23401
|
+
var RESULT_RECEIPT_REQUIRED = "required";
|
|
23402
|
+
|
|
23403
|
+
// src/core/lib/ucan/resultReceipt.ts
|
|
23404
|
+
function jsonForm(value) {
|
|
23405
|
+
const json = JSON.stringify(value);
|
|
23406
|
+
if (json === void 0) throw new TypeError("This value has no JSON form.");
|
|
23407
|
+
return JSON.parse(json);
|
|
23408
|
+
}
|
|
23409
|
+
function boundOutputOf(output, mutablePaths = []) {
|
|
23410
|
+
if (mutablePaths.length === 0) return output;
|
|
23411
|
+
const copy = jsonForm(output);
|
|
23412
|
+
for (const path of mutablePaths) {
|
|
23413
|
+
const segments = path.split(".");
|
|
23414
|
+
let parent = copy;
|
|
23415
|
+
for (const segment2 of segments.slice(0, -1)) {
|
|
23416
|
+
parent = parent && typeof parent === "object" && !Array.isArray(parent) ? parent[segment2] : void 0;
|
|
23417
|
+
}
|
|
23418
|
+
if (parent && typeof parent === "object" && !Array.isArray(parent)) delete parent[segments[segments.length - 1]];
|
|
23419
|
+
}
|
|
23420
|
+
return copy;
|
|
23421
|
+
}
|
|
23422
|
+
async function digestResultValue(value) {
|
|
23423
|
+
return digestCanonicalJson(jsonForm(value));
|
|
23424
|
+
}
|
|
23425
|
+
function canonicalResultText(value) {
|
|
23426
|
+
try {
|
|
23427
|
+
return canonicalizeJson(jsonForm(value));
|
|
23428
|
+
} catch {
|
|
23429
|
+
return void 0;
|
|
23430
|
+
}
|
|
23431
|
+
}
|
|
23432
|
+
function plainFacts(facts) {
|
|
23433
|
+
const list = Array.isArray(facts) ? facts : facts ? [facts] : [];
|
|
23434
|
+
return list.filter((fact) => Boolean(fact) && typeof fact === "object" && !Array.isArray(fact));
|
|
23435
|
+
}
|
|
23436
|
+
function resultRequirementFact(facts) {
|
|
23437
|
+
return plainFacts(facts).find((fact) => fact.resultReceipt === RESULT_RECEIPT_REQUIRED);
|
|
23438
|
+
}
|
|
23439
|
+
function isResultReceiptFacts(facts) {
|
|
23440
|
+
return plainFacts(facts).some((fact) => fact.type === RESULT_RECEIPT_FACT_TYPE);
|
|
23441
|
+
}
|
|
23442
|
+
function findResultFact(facts, invocationCid) {
|
|
23443
|
+
const fact = plainFacts(facts).find((candidate) => candidate.type === RESULT_RECEIPT_FACT_TYPE && candidate.invocationCid === invocationCid);
|
|
23444
|
+
if (!fact || typeof fact.outputDigest !== "string" || typeof fact.blockId !== "string") return void 0;
|
|
23445
|
+
return fact;
|
|
23446
|
+
}
|
|
23447
|
+
function recordBindsResult(invocation) {
|
|
23448
|
+
return invocation.resultReceipt !== void 0 || resultRequirementFact(invocation.facts) !== void 0;
|
|
23449
|
+
}
|
|
23450
|
+
|
|
23214
23451
|
// src/core/lib/flowEngine/executor.ts
|
|
23452
|
+
var completionOutputOf = (payload) => boundRunActionOutput(payload || {}).output;
|
|
23453
|
+
var RESULT_NOT_SIGNED = "This step's result was not signed.";
|
|
23454
|
+
async function signResultReceipt(params) {
|
|
23455
|
+
try {
|
|
23456
|
+
const actionType = typeof params.signedFacts.actionType === "string" ? params.signedFacts.actionType : void 0;
|
|
23457
|
+
const unboundOutputPaths = [...(actionType ? getAction(actionType)?.mutableOutputPaths : void 0) ?? []];
|
|
23458
|
+
const outputDigest2 = await digestResultValue(boundOutputOf(params.output, unboundOutputPaths));
|
|
23459
|
+
let eventsDigest;
|
|
23460
|
+
if (params.result.events) {
|
|
23461
|
+
try {
|
|
23462
|
+
eventsDigest = await digestResultValue(params.result.events);
|
|
23463
|
+
} catch {
|
|
23464
|
+
eventsDigest = void 0;
|
|
23465
|
+
}
|
|
23466
|
+
}
|
|
23467
|
+
const facts = {
|
|
23468
|
+
type: RESULT_RECEIPT_FACT_TYPE,
|
|
23469
|
+
invocationCid: params.invocationCid,
|
|
23470
|
+
blockId: params.blockId,
|
|
23471
|
+
disposition: params.result.awaitingReadBack ? "awaiting_readback" : "succeeded",
|
|
23472
|
+
outputDigest: outputDigest2,
|
|
23473
|
+
...unboundOutputPaths.length > 0 ? { unboundOutputPaths } : {},
|
|
23474
|
+
...eventsDigest ? { eventsDigest } : {},
|
|
23475
|
+
...typeof params.signedFacts.sessionRunId === "string" ? { sessionRunId: params.signedFacts.sessionRunId } : {},
|
|
23476
|
+
...typeof params.signedFacts.inputDigest === "string" ? { inputDigest: params.signedFacts.inputDigest } : {}
|
|
23477
|
+
};
|
|
23478
|
+
const signed = await params.ucanService.createAndValidateInvocation(
|
|
23479
|
+
{
|
|
23480
|
+
invokerDid: params.actorDid,
|
|
23481
|
+
invokerType: params.actorType,
|
|
23482
|
+
entityRoomId: params.entityRoomId,
|
|
23483
|
+
capability: params.capability,
|
|
23484
|
+
proofs: [],
|
|
23485
|
+
facts,
|
|
23486
|
+
pin: params.pin
|
|
23487
|
+
},
|
|
23488
|
+
params.flowId,
|
|
23489
|
+
params.blockId
|
|
23490
|
+
);
|
|
23491
|
+
if (!signed.valid || !signed.cid || !signed.invocation || typeof signed.signedAt !== "number") return void 0;
|
|
23492
|
+
return {
|
|
23493
|
+
cid: signed.cid,
|
|
23494
|
+
invocation: signed.invocation,
|
|
23495
|
+
outputDigest: outputDigest2,
|
|
23496
|
+
signedAt: signed.signedAt,
|
|
23497
|
+
...facts.disposition === "awaiting_readback" ? { disposition: "awaiting_readback" } : {}
|
|
23498
|
+
};
|
|
23499
|
+
} catch {
|
|
23500
|
+
return void 0;
|
|
23501
|
+
}
|
|
23502
|
+
}
|
|
23215
23503
|
var updateRuntimeAfterSuccess = (node, actorDid, runtime, actionResult, invocationCid, now) => {
|
|
23216
23504
|
const updates = {
|
|
23217
23505
|
submittedByDid: actionResult.submittedByDid || actorDid,
|
|
@@ -23224,7 +23512,18 @@ var updateRuntimeAfterSuccess = (node, actorDid, runtime, actionResult, invocati
|
|
|
23224
23512
|
}
|
|
23225
23513
|
runtime.update(node.id, updates);
|
|
23226
23514
|
};
|
|
23227
|
-
var executeNode = async ({
|
|
23515
|
+
var executeNode = async ({
|
|
23516
|
+
node,
|
|
23517
|
+
actorDid,
|
|
23518
|
+
actorType,
|
|
23519
|
+
entityRoomId,
|
|
23520
|
+
context,
|
|
23521
|
+
action,
|
|
23522
|
+
invocationFacts: callerFacts = {},
|
|
23523
|
+
signResult = true,
|
|
23524
|
+
pin
|
|
23525
|
+
}) => {
|
|
23526
|
+
const invocationFacts = signResult ? { ...callerFacts, resultReceipt: RESULT_RECEIPT_REQUIRED } : callerFacts;
|
|
23228
23527
|
const { runtime, ucanService, invocationStore, flowUri, flowId, sessionRunId, now } = context;
|
|
23229
23528
|
const auth = await isAuthorized(node.id, actorDid, ucanService, flowUri);
|
|
23230
23529
|
if (!auth.authorized || !ucanService) {
|
|
@@ -23310,6 +23609,21 @@ var executeNode = async ({ node, actorDid, actorType, entityRoomId, context, act
|
|
|
23310
23609
|
invocationCid
|
|
23311
23610
|
};
|
|
23312
23611
|
}
|
|
23612
|
+
const output = completionOutputOf(result.payload);
|
|
23613
|
+
const resultReceipt = signResult ? await signResultReceipt({
|
|
23614
|
+
ucanService,
|
|
23615
|
+
actorDid,
|
|
23616
|
+
actorType,
|
|
23617
|
+
entityRoomId,
|
|
23618
|
+
capability,
|
|
23619
|
+
flowId,
|
|
23620
|
+
blockId: node.id,
|
|
23621
|
+
invocationCid,
|
|
23622
|
+
signedFacts,
|
|
23623
|
+
result,
|
|
23624
|
+
output,
|
|
23625
|
+
pin
|
|
23626
|
+
}) : void 0;
|
|
23313
23627
|
{
|
|
23314
23628
|
const storedInvocation = {
|
|
23315
23629
|
cid: invocationCid,
|
|
@@ -23323,10 +23637,13 @@ var executeNode = async ({ node, actorDid, actorType, entityRoomId, context, act
|
|
|
23323
23637
|
result: "success",
|
|
23324
23638
|
proofCids,
|
|
23325
23639
|
facts: signedFacts,
|
|
23326
|
-
claimId: result.claimId
|
|
23640
|
+
claimId: result.claimId,
|
|
23641
|
+
...resultReceipt ? { resultReceipt } : {}
|
|
23327
23642
|
};
|
|
23328
23643
|
invocationStore.add(storedInvocation);
|
|
23329
|
-
|
|
23644
|
+
const status = signResult && !resultReceipt ? { status: "unverified", reason: RESULT_NOT_SIGNED } : { status: "verified" };
|
|
23645
|
+
ucanService.receipts?.remember(storedInvocation, { blockId: node.id, output }, status);
|
|
23646
|
+
if (result.events) ucanService.receipts?.remember(storedInvocation, { blockId: node.id, output, events: result.events }, status);
|
|
23330
23647
|
}
|
|
23331
23648
|
updateRuntimeAfterSuccess(node, actorDid, runtime, result, invocationCid, now);
|
|
23332
23649
|
return {
|
|
@@ -24160,6 +24477,8 @@ async function executeActionBlock(params) {
|
|
|
24160
24477
|
let proofFailureOutput;
|
|
24161
24478
|
let topicRecords = [];
|
|
24162
24479
|
let terminalRaceError = null;
|
|
24480
|
+
let effectPortTouched = false;
|
|
24481
|
+
let runError = null;
|
|
24163
24482
|
const startedAt = now();
|
|
24164
24483
|
const previousState = runtime.get(blockId);
|
|
24165
24484
|
const attempt = (previousState.attempt || 0) + 1;
|
|
@@ -24294,35 +24613,47 @@ async function executeActionBlock(params) {
|
|
|
24294
24613
|
}
|
|
24295
24614
|
}
|
|
24296
24615
|
params.onEffectStart?.();
|
|
24297
|
-
const
|
|
24298
|
-
|
|
24299
|
-
|
|
24300
|
-
|
|
24301
|
-
|
|
24302
|
-
|
|
24303
|
-
|
|
24304
|
-
|
|
24305
|
-
|
|
24306
|
-
|
|
24307
|
-
|
|
24308
|
-
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
executionProof
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24616
|
+
const runContext = trackActionEffectPorts(
|
|
24617
|
+
{
|
|
24618
|
+
actorDid: params.actorDid,
|
|
24619
|
+
flowId,
|
|
24620
|
+
sessionRunId,
|
|
24621
|
+
designPodAuthority: params.designPodAuthority,
|
|
24622
|
+
flowUri,
|
|
24623
|
+
nodeId: blockId,
|
|
24624
|
+
flowNode,
|
|
24625
|
+
runtime,
|
|
24626
|
+
services: actionServices,
|
|
24627
|
+
runEventLog: params.runEventLog,
|
|
24628
|
+
handlers: params.handlers,
|
|
24629
|
+
editor,
|
|
24630
|
+
yDoc,
|
|
24631
|
+
pendingInvocation: inputBuild.pendingInvocation,
|
|
24632
|
+
topic: params.topic,
|
|
24633
|
+
flowRevision: params.flowRevision,
|
|
24634
|
+
...executionProof.invocationCid ? {
|
|
24635
|
+
executionProof: {
|
|
24636
|
+
invocationCid: executionProof.invocationCid,
|
|
24637
|
+
invocation: executionProof.invocation,
|
|
24638
|
+
capabilityId: executionProof.capabilityId,
|
|
24639
|
+
proofCids: executionProof.proofCids,
|
|
24640
|
+
capability: executionProof.capability,
|
|
24641
|
+
facts: executionProof.facts,
|
|
24642
|
+
inputDigest
|
|
24643
|
+
}
|
|
24644
|
+
} : {}
|
|
24645
|
+
},
|
|
24646
|
+
() => {
|
|
24647
|
+
effectPortTouched = true;
|
|
24648
|
+
}
|
|
24649
|
+
);
|
|
24650
|
+
let result;
|
|
24651
|
+
try {
|
|
24652
|
+
result = await action.run(inputBuild.inputs, runContext);
|
|
24653
|
+
} catch (error) {
|
|
24654
|
+
runError = { error };
|
|
24655
|
+
throw error;
|
|
24656
|
+
}
|
|
24326
24657
|
if (result.events?.length) events.push(...result.events);
|
|
24327
24658
|
if (result.topicRecords?.length) topicRecords = result.topicRecords;
|
|
24328
24659
|
if (result.completion?.state === "awaiting_readback") {
|
|
@@ -24338,7 +24669,9 @@ async function executeActionBlock(params) {
|
|
|
24338
24669
|
}
|
|
24339
24670
|
return {
|
|
24340
24671
|
payload: result.output,
|
|
24341
|
-
submittedByDid: params.actorDid || void 0
|
|
24672
|
+
submittedByDid: params.actorDid || void 0,
|
|
24673
|
+
events: [...events],
|
|
24674
|
+
...requestedAwaitingReadBack ? { awaitingReadBack: true } : {}
|
|
24342
24675
|
};
|
|
24343
24676
|
},
|
|
24344
24677
|
pin: params.pin || ""
|
|
@@ -24428,7 +24761,16 @@ async function executeActionBlock(params) {
|
|
|
24428
24761
|
runId: executionId
|
|
24429
24762
|
};
|
|
24430
24763
|
}
|
|
24431
|
-
|
|
24764
|
+
const thrownByRun = runError;
|
|
24765
|
+
const outcomeUnknown = !!thrownByRun && action.sideEffect === true && effectPortTouched && !isEffectNotStartedError(thrownByRun.error);
|
|
24766
|
+
if (outcomeUnknown) {
|
|
24767
|
+
runtime.update(blockId, {
|
|
24768
|
+
state: "needs_verification",
|
|
24769
|
+
error: { message, code: EFFECT_OUTCOME_UNKNOWN_CODE, at: now() }
|
|
24770
|
+
});
|
|
24771
|
+
} else {
|
|
24772
|
+
updateRuntimeFailure(runtime, blockId, message, now);
|
|
24773
|
+
}
|
|
24432
24774
|
if (sessionRunId && (eventLog || timelineRequired)) {
|
|
24433
24775
|
await appendRunTimelineEvent({
|
|
24434
24776
|
eventLog,
|
|
@@ -24440,7 +24782,7 @@ async function executeActionBlock(params) {
|
|
|
24440
24782
|
attempt,
|
|
24441
24783
|
executionId,
|
|
24442
24784
|
durationMs: Math.max(0, now() - startedAt),
|
|
24443
|
-
error: { message }
|
|
24785
|
+
error: outcomeUnknown ? { message, code: EFFECT_OUTCOME_UNKNOWN_CODE } : { message }
|
|
24444
24786
|
},
|
|
24445
24787
|
idempotencyKey: createRunEventIdempotencyKey("action.failed", sessionRunId, blockId, executionId),
|
|
24446
24788
|
ts: now()
|
|
@@ -24450,8 +24792,8 @@ async function executeActionBlock(params) {
|
|
|
24450
24792
|
now
|
|
24451
24793
|
});
|
|
24452
24794
|
}
|
|
24453
|
-
const topicWriteBack2 = await recordTopicPhase("failed", {
|
|
24454
|
-
error: { message },
|
|
24795
|
+
const topicWriteBack2 = await recordTopicPhase(outcomeUnknown ? "needs_verification" : "failed", {
|
|
24796
|
+
error: outcomeUnknown ? { code: EFFECT_OUTCOME_UNKNOWN_CODE, message } : { message },
|
|
24455
24797
|
invocationReference: outcome.invocationCid || outcome.capabilityId
|
|
24456
24798
|
});
|
|
24457
24799
|
return {
|
|
@@ -24462,6 +24804,7 @@ async function executeActionBlock(params) {
|
|
|
24462
24804
|
error: message,
|
|
24463
24805
|
pendingInvocation: inputBuild.pendingInvocation
|
|
24464
24806
|
}),
|
|
24807
|
+
...outcomeUnknown ? { completionState: "needs_verification" } : {},
|
|
24465
24808
|
invocationCid: outcome.invocationCid,
|
|
24466
24809
|
capabilityId: outcome.capabilityId,
|
|
24467
24810
|
executionId,
|
|
@@ -24579,11 +24922,14 @@ async function executeActionBlock(params) {
|
|
|
24579
24922
|
});
|
|
24580
24923
|
}
|
|
24581
24924
|
const pendingInvocationRemoved = completionState === "completed" ? cleanupCompletedPendingInvocation(yDoc, blockId, inputBuild.pendingInvocation, sessionRunId) : false;
|
|
24582
|
-
const topicWriteBack = await recordTopicPhase(
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24925
|
+
const topicWriteBack = await recordTopicPhase(
|
|
24926
|
+
completionState === "completed" ? "succeeded" : completionState === "needs_verification" ? "needs_verification" : completionState === "awaiting_readback" ? "awaiting_confirmation" : "failed",
|
|
24927
|
+
{
|
|
24928
|
+
output,
|
|
24929
|
+
...boundedOutput.exceeded ? { error: { code: "RUN_OUTPUT_TOO_LARGE", message: `Action output exceeded the ${MAX_RUN_ACTION_OUTPUT_BYTES / 1024} KiB run-head limit.` } } : {},
|
|
24930
|
+
invocationReference: outcome.invocationCid || outcome.capabilityId
|
|
24931
|
+
}
|
|
24932
|
+
);
|
|
24587
24933
|
return {
|
|
24588
24934
|
success: !boundedOutput.exceeded,
|
|
24589
24935
|
stage: outcome.stage,
|
|
@@ -24645,7 +24991,7 @@ function receiptVerdict(params, invocationCid, missingReason) {
|
|
|
24645
24991
|
if (invocation.result !== "success") return { status: "unverified", reason: "Completion references a failed invocation." };
|
|
24646
24992
|
if (invocation.blockId && invocation.blockId !== params.blockId) return { status: "unverified", reason: "Completion references an invocation for a different block." };
|
|
24647
24993
|
if (!params.checkReceipt) return { status: "unverified", reason: "This step's receipt can't be checked here: no UCAN verifier is set up." };
|
|
24648
|
-
const receipt = params.checkReceipt(invocation, { blockId: params.blockId });
|
|
24994
|
+
const receipt = params.checkReceipt(invocation, { blockId: params.blockId, output: params.runtime?.output });
|
|
24649
24995
|
if (receipt.status === "pending") return { status: "pending" };
|
|
24650
24996
|
if (receipt.status === "unverified") return { status: "unverified", reason: receipt.reason };
|
|
24651
24997
|
return { status: "verified" };
|
|
@@ -24691,12 +25037,78 @@ function isVerifiedCompletion(params) {
|
|
|
24691
25037
|
return verifyCompletion(params).status === "verified";
|
|
24692
25038
|
}
|
|
24693
25039
|
|
|
25040
|
+
// src/core/lib/flowEngine/workStatus.ts
|
|
25041
|
+
var UNVERIFIED_FALLBACK_REASON = "The completion could not be verified.";
|
|
25042
|
+
function deriveExecutionStatus(runtime) {
|
|
25043
|
+
const attemptId = typeof runtime?.attemptId === "string" ? runtime.attemptId : void 0;
|
|
25044
|
+
const attempt = attemptId ? { attemptId } : {};
|
|
25045
|
+
switch (runtime?.state ?? "idle") {
|
|
25046
|
+
case "idle":
|
|
25047
|
+
return { kind: "not_started" };
|
|
25048
|
+
case "awaiting_human":
|
|
25049
|
+
return { kind: "waiting_input" };
|
|
25050
|
+
case "pending":
|
|
25051
|
+
case "running":
|
|
25052
|
+
case "retry_scheduled":
|
|
25053
|
+
return { kind: "running", ...attempt };
|
|
25054
|
+
case "awaiting_readback":
|
|
25055
|
+
case "completed":
|
|
25056
|
+
return { kind: "executed", ...attempt };
|
|
25057
|
+
case "failed":
|
|
25058
|
+
return { kind: "failed_clean", ...attempt, error: runtime?.error?.message ?? "" };
|
|
25059
|
+
case "cancelled":
|
|
25060
|
+
return { kind: "cancelled", inFlight: [] };
|
|
25061
|
+
case "needs_verification":
|
|
25062
|
+
default:
|
|
25063
|
+
return { kind: "unknown_effect", ...attempt };
|
|
25064
|
+
}
|
|
25065
|
+
}
|
|
25066
|
+
function deriveEvidenceStatus(runtime, completionVerification) {
|
|
25067
|
+
if (runtime?.state !== "completed" || !completionVerification) return { kind: "none" };
|
|
25068
|
+
if (completionVerification.status === "verified") return { kind: "verified", basis: "completion_verification" };
|
|
25069
|
+
if (completionVerification.status === "unverified") return { kind: "unverified", reason: completionVerification.reason || UNVERIFIED_FALLBACK_REASON };
|
|
25070
|
+
return { kind: "none" };
|
|
25071
|
+
}
|
|
25072
|
+
function deriveWorkStatus(params) {
|
|
25073
|
+
return {
|
|
25074
|
+
execution: deriveExecutionStatus(params.runtime),
|
|
25075
|
+
evidence: deriveEvidenceStatus(params.runtime, params.completionVerification),
|
|
25076
|
+
evaluation: params.evaluation ?? { kind: "not_required" },
|
|
25077
|
+
acceptance: params.acceptance ?? { kind: "none" }
|
|
25078
|
+
};
|
|
25079
|
+
}
|
|
25080
|
+
function needsAttention({ execution, evidence, evaluation, acceptance }) {
|
|
25081
|
+
if (execution.kind === "unknown_effect" || execution.kind === "failed_clean") return true;
|
|
25082
|
+
if (evidence.kind === "unverified") return true;
|
|
25083
|
+
if (evaluation.kind === "indeterminate" || evaluation.kind === "failed" || evaluation.kind === "superseded") return true;
|
|
25084
|
+
if (evaluation.kind === "determined" && !evaluation.favourable) return true;
|
|
25085
|
+
return acceptance.kind === "rejected";
|
|
25086
|
+
}
|
|
25087
|
+
function deriveWorkItemPhase(status) {
|
|
25088
|
+
const { execution, evidence, evaluation, acceptance } = status;
|
|
25089
|
+
if (execution.kind === "cancelled") return "stopped";
|
|
25090
|
+
if (needsAttention(status)) return "needs_attention";
|
|
25091
|
+
switch (execution.kind) {
|
|
25092
|
+
case "not_started":
|
|
25093
|
+
return "not_started";
|
|
25094
|
+
case "waiting_input":
|
|
25095
|
+
return "waiting_for_you";
|
|
25096
|
+
case "running":
|
|
25097
|
+
return "working";
|
|
25098
|
+
}
|
|
25099
|
+
if (evidence.kind !== "verified") return "checking_results";
|
|
25100
|
+
if (evaluation.kind === "not_required") return "finished";
|
|
25101
|
+
if (evaluation.kind === "determined" && evaluation.favourable && acceptance.kind === "accepted") return "outcome_verified";
|
|
25102
|
+
return "checking_results";
|
|
25103
|
+
}
|
|
25104
|
+
|
|
24694
25105
|
// src/core/lib/flowEngine/blockPhase.ts
|
|
24695
25106
|
function deriveBlockPhase(params) {
|
|
24696
25107
|
const { runtime, actionType, pendingInvocationCount = 0, runCount, done = false } = params;
|
|
24697
25108
|
const repeatable = isRepeatableAction(actionType);
|
|
24698
25109
|
const state = runtime?.state ?? "idle";
|
|
24699
25110
|
const base = { repeatable, ...repeatable && runCount !== void 0 ? { runCount } : {} };
|
|
25111
|
+
const completionUnverified = deriveEvidenceStatus(runtime, params.completionVerification).kind === "unverified";
|
|
24700
25112
|
switch (state) {
|
|
24701
25113
|
case "idle":
|
|
24702
25114
|
if (pendingInvocationCount > 0) {
|
|
@@ -24716,10 +25128,12 @@ function deriveBlockPhase(params) {
|
|
|
24716
25128
|
case "completed":
|
|
24717
25129
|
if (repeatable) {
|
|
24718
25130
|
if (done && pendingInvocationCount === 0) {
|
|
25131
|
+
if (completionUnverified) return { ...base, phase: "failed", detail: "completion_unverified", safeToRetry: false };
|
|
24719
25132
|
return { ...base, phase: "complete", detail: "drained", safeToRetry: true };
|
|
24720
25133
|
}
|
|
24721
25134
|
return { ...base, phase: "active", detail: "standing", safeToRetry: true };
|
|
24722
25135
|
}
|
|
25136
|
+
if (completionUnverified) return { ...base, phase: "failed", detail: "completion_unverified", safeToRetry: false };
|
|
24723
25137
|
return { ...base, phase: "complete", detail: "completed", safeToRetry: false };
|
|
24724
25138
|
case "cancelled":
|
|
24725
25139
|
return { ...base, phase: "complete", detail: "cancelled", safeToRetry: false };
|
|
@@ -24732,6 +25146,324 @@ function deriveBlockPhase(params) {
|
|
|
24732
25146
|
}
|
|
24733
25147
|
}
|
|
24734
25148
|
|
|
25149
|
+
// src/core/lib/flowEngine/admission.ts
|
|
25150
|
+
var FLOW_BLOCK_EXECUTE_CAN = "flow/block/execute";
|
|
25151
|
+
var SCOPE_ROOTS = /* @__PURE__ */ new Set(["item", "payload", "util", "trigger"]);
|
|
25152
|
+
var LIFECYCLE_ACTION_TYPES = /* @__PURE__ */ new Set(["qi/flow.run.start", "qi/flow.run.close"]);
|
|
25153
|
+
var EVENT_TRIGGER_TYPES = /* @__PURE__ */ new Set(["block.event", "block.event.all"]);
|
|
25154
|
+
var KNOWN_TRIGGER_TYPES = /* @__PURE__ */ new Set(["manual", "flow.start", "block.event", "block.event.all", "schedule", "topic.request"]);
|
|
25155
|
+
function parseJsonProp2(value) {
|
|
25156
|
+
if (value == null || value === "") return { ok: true, value: void 0 };
|
|
25157
|
+
if (typeof value !== "string") return typeof value === "object" ? { ok: true, value } : { ok: false };
|
|
25158
|
+
try {
|
|
25159
|
+
const parsed = JSON.parse(value);
|
|
25160
|
+
return parsed !== null && typeof parsed === "object" ? { ok: true, value: parsed } : { ok: false };
|
|
25161
|
+
} catch {
|
|
25162
|
+
return { ok: false };
|
|
25163
|
+
}
|
|
25164
|
+
}
|
|
25165
|
+
function actionTypeOf(block) {
|
|
25166
|
+
const actionType = block.props?.actionType;
|
|
25167
|
+
return typeof actionType === "string" ? actionType.trim() : void 0;
|
|
25168
|
+
}
|
|
25169
|
+
function resolveStepAction(block) {
|
|
25170
|
+
const actionType = actionTypeOf(block);
|
|
25171
|
+
if (!actionType) return void 0;
|
|
25172
|
+
return getAction(actionType) ?? getActionByCan(actionType);
|
|
25173
|
+
}
|
|
25174
|
+
function isActionStep(block) {
|
|
25175
|
+
return block.type === "action" || actionTypeOf(block) !== void 0;
|
|
25176
|
+
}
|
|
25177
|
+
function stepInputs(block) {
|
|
25178
|
+
const parsed = parseJsonProp2(block.props?.inputs);
|
|
25179
|
+
if (parsed.ok && Array.isArray(parsed.value)) return { ok: false };
|
|
25180
|
+
return parsed;
|
|
25181
|
+
}
|
|
25182
|
+
function stepTrigger(block) {
|
|
25183
|
+
return parseJsonProp2(block.props?.trigger);
|
|
25184
|
+
}
|
|
25185
|
+
function stepAssigneeDid(block) {
|
|
25186
|
+
const parsed = parseJsonProp2(block.props?.assignment);
|
|
25187
|
+
const did = parsed.ok ? parsed.value?.assignedActor?.did : void 0;
|
|
25188
|
+
return typeof did === "string" && did.length > 0 ? did : void 0;
|
|
25189
|
+
}
|
|
25190
|
+
function checkpointFor(block, action) {
|
|
25191
|
+
const raw = block.props?.requiresConfirmation;
|
|
25192
|
+
if (raw === true || raw === "true") return "ask_before";
|
|
25193
|
+
if (raw === false || raw === "false") return "none";
|
|
25194
|
+
return action.defaultRequiresConfirmation ? "ask_before" : "none";
|
|
25195
|
+
}
|
|
25196
|
+
function collectReferences(value, inputPath, found) {
|
|
25197
|
+
if (typeof value === "string") {
|
|
25198
|
+
for (const reference of parseReferences(value)) {
|
|
25199
|
+
found.push({ inputPath, ref: reference.fullMatch, root: reference.blockId, path: reference.propPath, structured: false });
|
|
25200
|
+
}
|
|
25201
|
+
return;
|
|
25202
|
+
}
|
|
25203
|
+
if (isRuntimeRef(value)) {
|
|
25204
|
+
const ref = value.$ref;
|
|
25205
|
+
const dot = ref.indexOf(".");
|
|
25206
|
+
if (dot > 0) found.push({ inputPath, ref, root: ref.slice(0, dot), path: ref.slice(dot + 1), structured: true });
|
|
25207
|
+
return;
|
|
25208
|
+
}
|
|
25209
|
+
if (Array.isArray(value)) {
|
|
25210
|
+
value.forEach((item, index) => collectReferences(item, `${inputPath}.${index}`, found));
|
|
25211
|
+
return;
|
|
25212
|
+
}
|
|
25213
|
+
if (value !== null && typeof value === "object") {
|
|
25214
|
+
for (const [key, item] of Object.entries(value)) collectReferences(item, `${inputPath}.${key}`, found);
|
|
25215
|
+
}
|
|
25216
|
+
}
|
|
25217
|
+
function schemaDeclares(schema, path) {
|
|
25218
|
+
return schema.some((field) => path === field.path || path.startsWith(`${field.path}.`) || field.path.startsWith(`${path}.`));
|
|
25219
|
+
}
|
|
25220
|
+
function outputPathDeclared(schema, outputPath) {
|
|
25221
|
+
if (schemaDeclares(schema, outputPath)) return true;
|
|
25222
|
+
if (outputPath.startsWith("data.") && schemaDeclares(schema, outputPath.slice("data.".length))) return true;
|
|
25223
|
+
return outputPath.startsWith("http.data.") && schemaDeclares(schema, outputPath.slice("http.data.".length));
|
|
25224
|
+
}
|
|
25225
|
+
function findCycles(nodes, edges) {
|
|
25226
|
+
let index = 0;
|
|
25227
|
+
const indices = /* @__PURE__ */ new Map();
|
|
25228
|
+
const lowlinks = /* @__PURE__ */ new Map();
|
|
25229
|
+
const stack = [];
|
|
25230
|
+
const onStack = /* @__PURE__ */ new Set();
|
|
25231
|
+
const cycles = [];
|
|
25232
|
+
const visit = (node) => {
|
|
25233
|
+
indices.set(node, index);
|
|
25234
|
+
lowlinks.set(node, index);
|
|
25235
|
+
index += 1;
|
|
25236
|
+
stack.push(node);
|
|
25237
|
+
onStack.add(node);
|
|
25238
|
+
for (const next of edges.get(node) ?? []) {
|
|
25239
|
+
if (!indices.has(next)) {
|
|
25240
|
+
visit(next);
|
|
25241
|
+
lowlinks.set(node, Math.min(lowlinks.get(node), lowlinks.get(next)));
|
|
25242
|
+
} else if (onStack.has(next)) {
|
|
25243
|
+
lowlinks.set(node, Math.min(lowlinks.get(node), indices.get(next)));
|
|
25244
|
+
}
|
|
25245
|
+
}
|
|
25246
|
+
if (lowlinks.get(node) !== indices.get(node)) return;
|
|
25247
|
+
const component = [];
|
|
25248
|
+
let member;
|
|
25249
|
+
do {
|
|
25250
|
+
member = stack.pop();
|
|
25251
|
+
onStack.delete(member);
|
|
25252
|
+
component.push(member);
|
|
25253
|
+
} while (member !== node);
|
|
25254
|
+
if (component.length > 1 || edges.get(node)?.has(node)) cycles.push(component);
|
|
25255
|
+
};
|
|
25256
|
+
for (const node of nodes) if (!indices.has(node)) visit(node);
|
|
25257
|
+
return cycles;
|
|
25258
|
+
}
|
|
25259
|
+
function orderCycle(component, order, edges) {
|
|
25260
|
+
const members = new Set(component);
|
|
25261
|
+
const byOrder = (a, b) => (order.get(a) ?? 0) - (order.get(b) ?? 0);
|
|
25262
|
+
const start = [...component].sort(byOrder)[0];
|
|
25263
|
+
const path = [start];
|
|
25264
|
+
const seen2 = /* @__PURE__ */ new Set([start]);
|
|
25265
|
+
let current = start;
|
|
25266
|
+
for (; ; ) {
|
|
25267
|
+
const next = [...edges.get(current) ?? []].filter((id) => members.has(id) && !seen2.has(id)).sort(byOrder)[0];
|
|
25268
|
+
if (!next) break;
|
|
25269
|
+
path.push(next);
|
|
25270
|
+
seen2.add(next);
|
|
25271
|
+
current = next;
|
|
25272
|
+
}
|
|
25273
|
+
return [...path, start];
|
|
25274
|
+
}
|
|
25275
|
+
function checkFlowDefinition(params) {
|
|
25276
|
+
const blockers = [];
|
|
25277
|
+
const warnings = [];
|
|
25278
|
+
const aliases2 = params.blockIdAliases ?? {};
|
|
25279
|
+
const stepsById = new Map(params.steps.map((step) => [step.id, step]));
|
|
25280
|
+
const documentIds = new Set(params.documentBlockIds ?? []);
|
|
25281
|
+
for (const step of params.steps) documentIds.add(step.id);
|
|
25282
|
+
const resolveId = (id) => !documentIds.has(id) && Object.prototype.hasOwnProperty.call(aliases2, id) ? aliases2[id] : id;
|
|
25283
|
+
const order = new Map(params.steps.map((step, position) => [step.id, position]));
|
|
25284
|
+
const actions2 = /* @__PURE__ */ new Map();
|
|
25285
|
+
const inputsById = /* @__PURE__ */ new Map();
|
|
25286
|
+
for (const step of params.steps) {
|
|
25287
|
+
actions2.set(step.id, resolveStepAction(step));
|
|
25288
|
+
const inputs = stepInputs(step);
|
|
25289
|
+
inputsById.set(step.id, inputs.ok ? inputs.value ?? {} : {});
|
|
25290
|
+
}
|
|
25291
|
+
const triggerEdges = /* @__PURE__ */ new Map();
|
|
25292
|
+
const allEdges = /* @__PURE__ */ new Map();
|
|
25293
|
+
const addEdge = (map, from, to) => {
|
|
25294
|
+
if (!map.has(from)) map.set(from, /* @__PURE__ */ new Set());
|
|
25295
|
+
map.get(from).add(to);
|
|
25296
|
+
};
|
|
25297
|
+
const checkEventSource = (stepId, source, unknownReason) => {
|
|
25298
|
+
const sourceId = typeof source.sourceBlockId === "string" ? source.sourceBlockId.trim() : "";
|
|
25299
|
+
const eventName = typeof source.eventName === "string" ? source.eventName.trim() : "";
|
|
25300
|
+
if (!sourceId || !eventName) {
|
|
25301
|
+
warnings.push({ kind: "invalid_definition", stepId, reason: "trigger_invalid", detail: { field: "trigger", ...sourceId ? { targetBlockId: sourceId } : {} } });
|
|
25302
|
+
if (!sourceId) return;
|
|
25303
|
+
}
|
|
25304
|
+
const resolved = resolveId(sourceId);
|
|
25305
|
+
if (!stepsById.has(resolved)) {
|
|
25306
|
+
blockers.push({ kind: "invalid_definition", stepId, reason: unknownReason, detail: { field: "trigger", targetBlockId: sourceId, ...eventName ? { eventName } : {} } });
|
|
25307
|
+
return;
|
|
25308
|
+
}
|
|
25309
|
+
addEdge(triggerEdges, resolved, stepId);
|
|
25310
|
+
addEdge(allEdges, resolved, stepId);
|
|
25311
|
+
const sourceAction = actions2.get(resolved);
|
|
25312
|
+
if (!sourceAction || !eventName || eventName === STEP_COMPLETED_EVENT_NAME) return;
|
|
25313
|
+
const declared = getEventsForBlock(sourceAction, inputsById.get(resolved) ?? {}).map((event) => event.name);
|
|
25314
|
+
if (declared.includes(eventName)) return;
|
|
25315
|
+
warnings.push({
|
|
25316
|
+
kind: "invalid_definition",
|
|
25317
|
+
stepId,
|
|
25318
|
+
reason: "trigger_unknown_event",
|
|
25319
|
+
detail: { field: "trigger", targetBlockId: resolved, eventName, declaredEvents: declared, actionType: sourceAction.type }
|
|
25320
|
+
});
|
|
25321
|
+
};
|
|
25322
|
+
for (const step of params.steps) {
|
|
25323
|
+
const action = actions2.get(step.id);
|
|
25324
|
+
const actionType = actionTypeOf(step);
|
|
25325
|
+
if (isActionStep(step)) {
|
|
25326
|
+
if (!actionType) warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "missing_action_type", detail: {} });
|
|
25327
|
+
else if (!action) warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "unknown_action_type", detail: { actionType } });
|
|
25328
|
+
}
|
|
25329
|
+
if (!stepInputs(step).ok) warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "inputs_invalid", detail: { field: "inputs" } });
|
|
25330
|
+
const parsedTrigger = stepTrigger(step);
|
|
25331
|
+
const trigger = parsedTrigger.ok ? parsedTrigger.value : void 0;
|
|
25332
|
+
const triggerType = typeof trigger?.type === "string" ? trigger.type : void 0;
|
|
25333
|
+
if (!parsedTrigger.ok || trigger && (!triggerType || !KNOWN_TRIGGER_TYPES.has(triggerType))) {
|
|
25334
|
+
warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "trigger_invalid", detail: { field: "trigger" } });
|
|
25335
|
+
} else if (triggerType === "block.event") {
|
|
25336
|
+
checkEventSource(step.id, trigger, "trigger_unknown_source");
|
|
25337
|
+
} else if (triggerType === "block.event.all") {
|
|
25338
|
+
const sources = Array.isArray(trigger.sources) ? trigger.sources : [];
|
|
25339
|
+
if (sources.length === 0) blockers.push({ kind: "invalid_definition", stepId: step.id, reason: "join_no_sources", detail: { field: "trigger" } });
|
|
25340
|
+
for (const source of sources) {
|
|
25341
|
+
if (!source || typeof source !== "object") {
|
|
25342
|
+
warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "trigger_invalid", detail: { field: "trigger" } });
|
|
25343
|
+
continue;
|
|
25344
|
+
}
|
|
25345
|
+
if (typeof source.alias !== "string" || source.alias.trim() === "") {
|
|
25346
|
+
warnings.push({
|
|
25347
|
+
kind: "invalid_definition",
|
|
25348
|
+
stepId: step.id,
|
|
25349
|
+
reason: "trigger_invalid",
|
|
25350
|
+
detail: { field: "trigger", ...typeof source.sourceBlockId === "string" ? { targetBlockId: source.sourceBlockId } : {} }
|
|
25351
|
+
});
|
|
25352
|
+
}
|
|
25353
|
+
checkEventSource(step.id, source, "join_unknown_source");
|
|
25354
|
+
}
|
|
25355
|
+
}
|
|
25356
|
+
const parsedConditions = parseJsonProp2(step.props?.conditions);
|
|
25357
|
+
if (!parsedConditions.ok) {
|
|
25358
|
+
warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "conditions_invalid", detail: { field: "conditions" } });
|
|
25359
|
+
} else if (parsedConditions.value?.enabled === true && Array.isArray(parsedConditions.value.conditions)) {
|
|
25360
|
+
for (const condition of parsedConditions.value.conditions) {
|
|
25361
|
+
const conditionId = typeof condition?.id === "string" ? condition.id : void 0;
|
|
25362
|
+
const sourceId = typeof condition?.sourceBlockId === "string" ? condition.sourceBlockId.trim() : "";
|
|
25363
|
+
if (!sourceId) {
|
|
25364
|
+
warnings.push({ kind: "invalid_definition", stepId: step.id, reason: "conditions_invalid", detail: { field: "conditions", ...conditionId ? { conditionId } : {} } });
|
|
25365
|
+
} else if (!documentIds.has(resolveId(sourceId))) {
|
|
25366
|
+
blockers.push({
|
|
25367
|
+
kind: "invalid_definition",
|
|
25368
|
+
stepId: step.id,
|
|
25369
|
+
reason: "condition_unknown_block",
|
|
25370
|
+
detail: { field: "conditions", targetBlockId: sourceId, ...conditionId ? { conditionId } : {} }
|
|
25371
|
+
});
|
|
25372
|
+
}
|
|
25373
|
+
}
|
|
25374
|
+
}
|
|
25375
|
+
const inputs = inputsById.get(step.id) ?? {};
|
|
25376
|
+
const references = [];
|
|
25377
|
+
for (const [key, value] of Object.entries(inputs)) collectReferences(value, key, references);
|
|
25378
|
+
const unresolvableInputs = /* @__PURE__ */ new Set();
|
|
25379
|
+
const isEventTriggered = triggerType !== void 0 && EVENT_TRIGGER_TYPES.has(triggerType);
|
|
25380
|
+
for (const reference of references) {
|
|
25381
|
+
const topInput = reference.inputPath.split(".")[0];
|
|
25382
|
+
if (reference.structured && reference.root === "trigger") {
|
|
25383
|
+
if (!isEventTriggered) {
|
|
25384
|
+
warnings.push({
|
|
25385
|
+
kind: "invalid_definition",
|
|
25386
|
+
stepId: step.id,
|
|
25387
|
+
reason: "trigger_payload_without_trigger",
|
|
25388
|
+
detail: { field: "inputs", inputPath: reference.inputPath, ref: reference.ref }
|
|
25389
|
+
});
|
|
25390
|
+
}
|
|
25391
|
+
continue;
|
|
25392
|
+
}
|
|
25393
|
+
if (!reference.structured && SCOPE_ROOTS.has(reference.root)) continue;
|
|
25394
|
+
const target = resolveId(reference.root);
|
|
25395
|
+
if (!documentIds.has(target)) {
|
|
25396
|
+
blockers.push({
|
|
25397
|
+
kind: "invalid_definition",
|
|
25398
|
+
stepId: step.id,
|
|
25399
|
+
reason: "reference_unknown_block",
|
|
25400
|
+
detail: { field: "inputs", inputPath: reference.inputPath, ref: reference.ref, targetBlockId: reference.root }
|
|
25401
|
+
});
|
|
25402
|
+
unresolvableInputs.add(topInput);
|
|
25403
|
+
continue;
|
|
25404
|
+
}
|
|
25405
|
+
if (!reference.path.startsWith("output.") || !stepsById.has(target)) continue;
|
|
25406
|
+
addEdge(allEdges, target, step.id);
|
|
25407
|
+
if (target === step.id) unresolvableInputs.add(topInput);
|
|
25408
|
+
const outputPath = reference.path.slice("output.".length);
|
|
25409
|
+
const schema = getOutputSchemaForBlock(actions2.get(target), inputsById.get(target) ?? {});
|
|
25410
|
+
if (schema.length > 0 && !outputPathDeclared(schema, outputPath)) {
|
|
25411
|
+
warnings.push({
|
|
25412
|
+
kind: "invalid_definition",
|
|
25413
|
+
stepId: step.id,
|
|
25414
|
+
reason: "reference_undeclared_output",
|
|
25415
|
+
detail: { field: "inputs", inputPath: reference.inputPath, ref: reference.ref, targetBlockId: target, outputPath }
|
|
25416
|
+
});
|
|
25417
|
+
}
|
|
25418
|
+
}
|
|
25419
|
+
if (action) {
|
|
25420
|
+
const blank = new Set(getMissingActionInputs(action.type, inputs));
|
|
25421
|
+
const withoutUnresolvable = Object.fromEntries(Object.entries(inputs).filter(([key]) => !unresolvableInputs.has(key)));
|
|
25422
|
+
for (const path of getMissingActionInputs(action.type, withoutUnresolvable)) {
|
|
25423
|
+
if (blank.has(path)) warnings.push({ kind: "missing_input", stepId: step.id, path, cause: "blank" });
|
|
25424
|
+
else blockers.push({ kind: "missing_input", stepId: step.id, path, cause: "unresolvable_reference" });
|
|
25425
|
+
}
|
|
25426
|
+
}
|
|
25427
|
+
}
|
|
25428
|
+
for (const component of findCycles(
|
|
25429
|
+
params.steps.map((step) => step.id),
|
|
25430
|
+
allEdges
|
|
25431
|
+
)) {
|
|
25432
|
+
const cycle = orderCycle(component, order, allEdges);
|
|
25433
|
+
const triggersOnly = cycle.slice(0, -1).every((id, position) => triggerEdges.get(id)?.has(cycle[position + 1]) === true);
|
|
25434
|
+
blockers.push({ kind: "invalid_definition", stepId: cycle[0], reason: triggersOnly ? "trigger_cycle" : "reference_cycle", detail: { cycle } });
|
|
25435
|
+
}
|
|
25436
|
+
return { blockers, warnings };
|
|
25437
|
+
}
|
|
25438
|
+
function compileAuthorityRequirements(params) {
|
|
25439
|
+
const requirements = [];
|
|
25440
|
+
for (const step of params.steps) {
|
|
25441
|
+
const action = resolveStepAction(step);
|
|
25442
|
+
if (!action || LIFECYCLE_ACTION_TYPES.has(action.type)) continue;
|
|
25443
|
+
const executorDid = stepAssigneeDid(step);
|
|
25444
|
+
requirements.push({
|
|
25445
|
+
stepId: step.id,
|
|
25446
|
+
actionType: action.type,
|
|
25447
|
+
can: FLOW_BLOCK_EXECUTE_CAN,
|
|
25448
|
+
with: params.flowUri ? `${params.flowUri}:${step.id}` : step.id,
|
|
25449
|
+
...action.can ? { actionCan: action.can } : {},
|
|
25450
|
+
...action.requiredCapability ? { requiredCapability: action.requiredCapability } : {},
|
|
25451
|
+
...executorDid ? { executorDid, executorSource: "assignment" } : {},
|
|
25452
|
+
...action.executionOwner ? { executionOwner: action.executionOwner } : {},
|
|
25453
|
+
sideEffect: action.sideEffect,
|
|
25454
|
+
checkpoint: checkpointFor(step, action),
|
|
25455
|
+
...action.riskTier ? { riskTier: action.riskTier } : {}
|
|
25456
|
+
});
|
|
25457
|
+
}
|
|
25458
|
+
return requirements;
|
|
25459
|
+
}
|
|
25460
|
+
function deriveReworkPolicy(steps) {
|
|
25461
|
+
return {
|
|
25462
|
+
retry: "manual",
|
|
25463
|
+
repeatableStepIds: steps.filter((step) => resolveStepAction(step)?.cardinality === "many").map((step) => step.id)
|
|
25464
|
+
};
|
|
25465
|
+
}
|
|
25466
|
+
|
|
24735
25467
|
// src/core/lib/flowEngine/vnext/contracts.ts
|
|
24736
25468
|
var FlowDefinitionVerificationError = class extends Error {
|
|
24737
25469
|
constructor(code, message) {
|
|
@@ -27369,10 +28101,10 @@ var createMemoryInvocationStore = () => {
|
|
|
27369
28101
|
};
|
|
27370
28102
|
|
|
27371
28103
|
// src/core/services/ucanService.ts
|
|
27372
|
-
var
|
|
28104
|
+
var import_ucan4 = require("@ixo/ucan");
|
|
27373
28105
|
|
|
27374
28106
|
// src/core/lib/ucan/signedChain.ts
|
|
27375
|
-
var
|
|
28107
|
+
var import_ucan3 = require("@ixo/ucan");
|
|
27376
28108
|
var import_core = require("@ucanto/core");
|
|
27377
28109
|
var PORTAL_PROOF_CHAIN_LIMITS = Object.freeze({
|
|
27378
28110
|
maxDepth: 10,
|
|
@@ -27510,7 +28242,7 @@ async function verifyNodeSignature(node, env) {
|
|
|
27510
28242
|
if (!Array.isArray(keys)) return keys;
|
|
27511
28243
|
for (const key of keys) {
|
|
27512
28244
|
try {
|
|
27513
|
-
const verifier =
|
|
28245
|
+
const verifier = import_ucan3.ed25519.Verifier.parse(key);
|
|
27514
28246
|
const wrapped = {
|
|
27515
28247
|
did: () => issuerDid,
|
|
27516
28248
|
verify: (payload, signature) => verifier.verify(payload, signature)
|
|
@@ -27595,7 +28327,7 @@ async function verifyGrant(car, options) {
|
|
|
27595
28327
|
if (!options.env.revocationChecker) return fail("NO_REVOCATION_CHECKER", "Could not confirm the grant was not cancelled: no revocation service is configured.");
|
|
27596
28328
|
const notYet = checkTimeAt(walked.nodes, Date.now());
|
|
27597
28329
|
if (notYet?.code === "NOT_YET_VALID") return notYet;
|
|
27598
|
-
const validator = await (0,
|
|
28330
|
+
const validator = await (0, import_ucan3.createUCANValidator)({
|
|
27599
28331
|
serverDid: node.audience.did(),
|
|
27600
28332
|
rootIssuers: [ownerDid],
|
|
27601
28333
|
didResolver: options.env.didResolver,
|
|
@@ -27622,7 +28354,7 @@ var capabilityParsers = /* @__PURE__ */ new Map();
|
|
|
27622
28354
|
function capabilityParser(can) {
|
|
27623
28355
|
let parser = capabilityParsers.get(can);
|
|
27624
28356
|
if (!parser) {
|
|
27625
|
-
parser = (0,
|
|
28357
|
+
parser = (0, import_ucan3.defineCapability)({ can, protocol: "ixo:" });
|
|
27626
28358
|
capabilityParsers.set(can, parser);
|
|
27627
28359
|
}
|
|
27628
28360
|
return parser;
|
|
@@ -27641,7 +28373,7 @@ function factsMatch(facts, expected) {
|
|
|
27641
28373
|
return Object.entries(expected).every(([key, value]) => JSON.stringify(record4[key]) === JSON.stringify(value));
|
|
27642
28374
|
});
|
|
27643
28375
|
}
|
|
27644
|
-
function
|
|
28376
|
+
function plainFacts2(facts) {
|
|
27645
28377
|
return (facts ?? []).filter((fact) => Boolean(fact) && typeof fact === "object" && !Array.isArray(fact));
|
|
27646
28378
|
}
|
|
27647
28379
|
async function verifyInvocation(car, options) {
|
|
@@ -27675,7 +28407,7 @@ async function verifyInvocation(car, options) {
|
|
|
27675
28407
|
invokerDid,
|
|
27676
28408
|
audienceDid,
|
|
27677
28409
|
capability,
|
|
27678
|
-
facts:
|
|
28410
|
+
facts: plainFacts2(node.facts),
|
|
27679
28411
|
...expSeconds !== void 0 ? { expiresAt: expSeconds * 1e3 } : {},
|
|
27680
28412
|
...grantExpSeconds !== void 0 ? { grantsExpireAt: grantExpSeconds * 1e3 } : {},
|
|
27681
28413
|
proofChain: walked.dids,
|
|
@@ -27683,7 +28415,7 @@ async function verifyInvocation(car, options) {
|
|
|
27683
28415
|
};
|
|
27684
28416
|
if (options.at === void 0) {
|
|
27685
28417
|
if (!options.env.revocationChecker) return fail("NO_REVOCATION_CHECKER", "Could not confirm the grant was not cancelled: no revocation service is configured.");
|
|
27686
|
-
const validator = await (0,
|
|
28418
|
+
const validator = await (0, import_ucan3.createUCANValidator)({
|
|
27687
28419
|
serverDid: node.audience.did(),
|
|
27688
28420
|
rootIssuers: [ownerDid],
|
|
27689
28421
|
didResolver: options.env.didResolver,
|
|
@@ -27768,11 +28500,11 @@ async function getSigner(handlers, did, didType, entityRoomId, pin) {
|
|
|
27768
28500
|
const supportedDid = toSupportedDID(normalizedDid);
|
|
27769
28501
|
if (handlers.getPrivateKey) {
|
|
27770
28502
|
const privateKey = await handlers.getPrivateKey({ did: normalizedDid, didType, entityRoomId, pin });
|
|
27771
|
-
return (0,
|
|
28503
|
+
return (0, import_ucan4.parseSigner)(privateKey, supportedDid);
|
|
27772
28504
|
}
|
|
27773
28505
|
if (handlers.getMnemonic) {
|
|
27774
28506
|
const mnemonic = await handlers.getMnemonic({ did: normalizedDid, didType, entityRoomId, pin });
|
|
27775
|
-
const result = await (0,
|
|
28507
|
+
const result = await (0, import_ucan4.signerFromMnemonic)(mnemonic, supportedDid);
|
|
27776
28508
|
return result.signer;
|
|
27777
28509
|
}
|
|
27778
28510
|
throw new Error("No signer handler configured (need getPrivateKey or getMnemonic)");
|
|
@@ -27797,7 +28529,7 @@ var createUcanService = (config) => {
|
|
|
27797
28529
|
return null;
|
|
27798
28530
|
}
|
|
27799
28531
|
try {
|
|
27800
|
-
const delegation = await (0,
|
|
28532
|
+
const delegation = await (0, import_ucan4.parseDelegation)(stored.delegation);
|
|
27801
28533
|
delegationCache.set(cid, delegation);
|
|
27802
28534
|
return delegation;
|
|
27803
28535
|
} catch {
|
|
@@ -27860,14 +28592,14 @@ var createUcanService = (config) => {
|
|
|
27860
28592
|
return storedDelegation2;
|
|
27861
28593
|
}
|
|
27862
28594
|
const signer = await getSigner(handlers, ownerDid, issuerType, entityRoomId, pin);
|
|
27863
|
-
const delegation = await (0,
|
|
28595
|
+
const delegation = await (0, import_ucan4.createDelegation)({
|
|
27864
28596
|
issuer: signer,
|
|
27865
28597
|
audience: toInvocationAudienceDID(normalizedOwnerDid),
|
|
27866
28598
|
capabilities,
|
|
27867
28599
|
proofs: [],
|
|
27868
28600
|
expiration: Math.floor(rootExpiration / 1e3)
|
|
27869
28601
|
});
|
|
27870
|
-
const serialized = await (0,
|
|
28602
|
+
const serialized = await (0, import_ucan4.serializeDelegation)(delegation);
|
|
27871
28603
|
const cid = getCidFromDelegation(delegation);
|
|
27872
28604
|
const storedDelegation = {
|
|
27873
28605
|
cid,
|
|
@@ -27923,14 +28655,14 @@ var createUcanService = (config) => {
|
|
|
27923
28655
|
}
|
|
27924
28656
|
const signer = await getSigner(handlers, issuerDid, issuerType, entityRoomId, pin);
|
|
27925
28657
|
const proofDelegations = await getProofDelegations(proofCids);
|
|
27926
|
-
const delegation = await (0,
|
|
28658
|
+
const delegation = await (0, import_ucan4.createDelegation)({
|
|
27927
28659
|
issuer: signer,
|
|
27928
28660
|
audience: toInvocationAudienceDID(normalizedAudienceDid),
|
|
27929
28661
|
capabilities: toUcantoCapabilities(capabilities),
|
|
27930
28662
|
proofs: proofDelegations,
|
|
27931
28663
|
expiration: Math.floor(expiration / 1e3)
|
|
27932
28664
|
});
|
|
27933
|
-
const serialized = await (0,
|
|
28665
|
+
const serialized = await (0, import_ucan4.serializeDelegation)(delegation);
|
|
27934
28666
|
const cid = getCidFromDelegation(delegation);
|
|
27935
28667
|
const storedDelegation = {
|
|
27936
28668
|
cid,
|
|
@@ -28031,7 +28763,7 @@ var createUcanService = (config) => {
|
|
|
28031
28763
|
...capability.nb && { nb: capability.nb }
|
|
28032
28764
|
};
|
|
28033
28765
|
expiration = Math.floor(Date.now() / 1e3) + ttlSeconds;
|
|
28034
|
-
const invocation = await (0,
|
|
28766
|
+
const invocation = await (0, import_ucan4.createInvocation)({
|
|
28035
28767
|
issuer: signer,
|
|
28036
28768
|
audience,
|
|
28037
28769
|
capability: ucantoCapability,
|
|
@@ -28040,7 +28772,7 @@ var createUcanService = (config) => {
|
|
|
28040
28772
|
expiration
|
|
28041
28773
|
});
|
|
28042
28774
|
const built = await invocation.buildIPLDView();
|
|
28043
|
-
minted = { cid: built.cid.toString(), invocation: await (0,
|
|
28775
|
+
minted = { cid: built.cid.toString(), invocation: await (0, import_ucan4.serializeInvocation)(invocation) };
|
|
28044
28776
|
}
|
|
28045
28777
|
if (!config.verification) return refuse("This invocation cannot be checked in this editor: no UCAN verifier is set up.");
|
|
28046
28778
|
const verdict = await verifyInvocation(minted.invocation, {
|
|
@@ -28519,7 +29251,9 @@ function classifyNodeState({ block, runtime, now, pendingInvocationCount = 0, co
|
|
|
28519
29251
|
if (derived.phase === "failed") return "Blocked";
|
|
28520
29252
|
if (derived.phase === "complete") return "Done";
|
|
28521
29253
|
const requiresFold = !!actionType && getAction(actionType)?.done?.standingDoneRequiresFold === true;
|
|
28522
|
-
if (derived.detail === "standing" && pendingInvocationCount === 0 && (!requiresFold || done))
|
|
29254
|
+
if (derived.detail === "standing" && pendingInvocationCount === 0 && (!requiresFold || done)) {
|
|
29255
|
+
return completionVerification?.status === "unverified" ? "Blocked" : "Done";
|
|
29256
|
+
}
|
|
28523
29257
|
if (runtime.error) return "Blocked";
|
|
28524
29258
|
const dueAt = getDueAt(block);
|
|
28525
29259
|
if (dueAt != null && dueAt <= now) return "Overdue";
|
|
@@ -28545,7 +29279,7 @@ function snapshotNode(block, runtime, now, pendingInvocationCount = 0, completio
|
|
|
28545
29279
|
const title = getBlockTitle(block);
|
|
28546
29280
|
if (title) snapshot.title = title;
|
|
28547
29281
|
if (publicState === "Blocked") {
|
|
28548
|
-
if (runtime.state === "needs_verification") {
|
|
29282
|
+
if (runtime.state === "needs_verification" || runtime.state === "completed" && completionVerification?.status === "unverified") {
|
|
28549
29283
|
snapshot.blockerCause = "awaiting_verification";
|
|
28550
29284
|
} else {
|
|
28551
29285
|
snapshot.blockerCause = classifyBlockerCause(block, runtime) || "unknown";
|
|
@@ -32224,12 +32958,12 @@ var createQiForgeTopicExecutorAdapter = (executor, bridge) => new ManifestBoundT
|
|
|
32224
32958
|
var createMcpTopicExecutorAdapter = (executor, bridge) => new ManifestBoundTopicExecutorAdapter("mcp", executor, bridge);
|
|
32225
32959
|
|
|
32226
32960
|
// src/core/lib/ucan/verificationEnv.ts
|
|
32227
|
-
var
|
|
32961
|
+
var import_ucan5 = require("@ixo/ucan");
|
|
32228
32962
|
var checkers = /* @__PURE__ */ new Map();
|
|
32229
32963
|
function revocationCheckerFor(url) {
|
|
32230
32964
|
let checker = checkers.get(url);
|
|
32231
32965
|
if (!checker) {
|
|
32232
|
-
checker = (0,
|
|
32966
|
+
checker = (0, import_ucan5.createUcanStoreRevocationChecker)({ url });
|
|
32233
32967
|
checkers.set(url, checker);
|
|
32234
32968
|
}
|
|
32235
32969
|
return checker;
|
|
@@ -32490,7 +33224,83 @@ function createReceiptVerifier(options) {
|
|
|
32490
33224
|
const cache = /* @__PURE__ */ new Map();
|
|
32491
33225
|
const inFlight = /* @__PURE__ */ new Map();
|
|
32492
33226
|
const listeners = /* @__PURE__ */ new Set();
|
|
32493
|
-
const keyOf2 = (invocation, expected) =>
|
|
33227
|
+
const keyOf2 = (invocation, expected) => {
|
|
33228
|
+
const base = `${invocation.cid}\0${expected.blockId}\0${invocation.invokerDid}\0${invocation.sessionRunId ?? ""}`;
|
|
33229
|
+
if (!recordBindsResult(invocation)) return base;
|
|
33230
|
+
const result = invocation.resultReceipt;
|
|
33231
|
+
const resultPart = result && typeof result === "object" ? `${String(result.cid)}\0${String(result.signedAt)}` : "-";
|
|
33232
|
+
if (result && typeof result === "object" && result.disposition === "awaiting_readback") return `${base}\0${resultPart}\0readback`;
|
|
33233
|
+
const text = (value) => value === void 0 ? "-" : canonicalResultText(value) ?? "!";
|
|
33234
|
+
return `${base}\0${resultPart}\0${text(expected.output)}\0${text(expected.events)}`;
|
|
33235
|
+
};
|
|
33236
|
+
const flowUriNow = () => typeof options.flowUri === "function" ? options.flowUri() : options.flowUri;
|
|
33237
|
+
async function checkResult(invocation, executed, requirement, expected, owner) {
|
|
33238
|
+
const unverified = (reason, transient = false) => ({ status: { status: "unverified", reason }, transient });
|
|
33239
|
+
const result = invocation.resultReceipt;
|
|
33240
|
+
if (!result || typeof result !== "object" || typeof result.cid !== "string" || typeof result.invocation !== "string" || !result.invocation) {
|
|
33241
|
+
return unverified("This step's result was not signed.");
|
|
33242
|
+
}
|
|
33243
|
+
if (typeof result.signedAt !== "number" || !Number.isFinite(result.signedAt)) {
|
|
33244
|
+
return unverified("This step's signed result has no signing time, so it can't be checked.");
|
|
33245
|
+
}
|
|
33246
|
+
const verdict = await verifyInvocation(result.invocation, {
|
|
33247
|
+
cid: result.cid,
|
|
33248
|
+
expectedAudience: owner,
|
|
33249
|
+
ownerDid: owner,
|
|
33250
|
+
actorDid: executed.invokerDid,
|
|
33251
|
+
required: { can: executed.capability.can, with: executed.capability.with },
|
|
33252
|
+
expectedFacts: {
|
|
33253
|
+
invocationCid: invocation.cid,
|
|
33254
|
+
blockId: expected.blockId,
|
|
33255
|
+
...typeof requirement.sessionRunId === "string" ? { sessionRunId: requirement.sessionRunId } : {},
|
|
33256
|
+
...typeof requirement.inputDigest === "string" ? { inputDigest: requirement.inputDigest } : {}
|
|
33257
|
+
},
|
|
33258
|
+
env: options.env,
|
|
33259
|
+
at: result.signedAt
|
|
33260
|
+
});
|
|
33261
|
+
if (!verdict.ok) {
|
|
33262
|
+
if (verdict.code === "FACTS_MISMATCH") return unverified("This step's signed result is for a different step, run or input.");
|
|
33263
|
+
return unverified(`This step's signed result does not check out: ${verdict.reason}`, TRANSIENT.has(verdict.code));
|
|
33264
|
+
}
|
|
33265
|
+
if (verdict.noTimeAnchor) return unverified("This step's signed result has no expiry, so when it was signed can't be checked.");
|
|
33266
|
+
if (verdict.revokedNow) {
|
|
33267
|
+
return { status: { status: "unverified", reason: "This step was done under a grant that has since been cancelled.", revokedSince: true }, transient: false };
|
|
33268
|
+
}
|
|
33269
|
+
const signed = findResultFact(verdict.invocation.facts, invocation.cid);
|
|
33270
|
+
if (!signed) return unverified("This step's signed result does not say what the step produced.");
|
|
33271
|
+
if (result.disposition === "awaiting_readback" !== (signed.disposition === "awaiting_readback")) {
|
|
33272
|
+
return unverified("This step's stored result receipt does not match what was signed.");
|
|
33273
|
+
}
|
|
33274
|
+
if (signed.disposition === "awaiting_readback") return null;
|
|
33275
|
+
const unbound = signed.unboundOutputPaths ?? [];
|
|
33276
|
+
if (!Array.isArray(unbound) || unbound.some((path) => typeof path !== "string")) {
|
|
33277
|
+
return unverified("This step's signed result does not say what the step produced.");
|
|
33278
|
+
}
|
|
33279
|
+
if (unbound.length > 0) {
|
|
33280
|
+
const actionType = typeof requirement.actionType === "string" ? requirement.actionType : void 0;
|
|
33281
|
+
const declared = (actionType ? getAction(actionType)?.mutableOutputPaths : void 0) ?? [];
|
|
33282
|
+
if (unbound.some((path) => !declared.includes(path))) {
|
|
33283
|
+
return unverified("This step's signed result leaves out fields its action does not allow to change.");
|
|
33284
|
+
}
|
|
33285
|
+
}
|
|
33286
|
+
let outputDigest2;
|
|
33287
|
+
try {
|
|
33288
|
+
outputDigest2 = await digestResultValue(boundOutputOf(expected.output, unbound));
|
|
33289
|
+
} catch {
|
|
33290
|
+
outputDigest2 = void 0;
|
|
33291
|
+
}
|
|
33292
|
+
if (outputDigest2 !== signed.outputDigest) return unverified("This step's stored result is not the result that was signed.");
|
|
33293
|
+
if (expected.events !== void 0 && typeof signed.eventsDigest === "string") {
|
|
33294
|
+
let eventsDigest;
|
|
33295
|
+
try {
|
|
33296
|
+
eventsDigest = await digestResultValue(expected.events);
|
|
33297
|
+
} catch {
|
|
33298
|
+
eventsDigest = void 0;
|
|
33299
|
+
}
|
|
33300
|
+
if (eventsDigest !== signed.eventsDigest) return unverified("This step's recorded events are not the events that were signed.");
|
|
33301
|
+
}
|
|
33302
|
+
return null;
|
|
33303
|
+
}
|
|
32494
33304
|
async function run(invocation, expected) {
|
|
32495
33305
|
const owner = options.getOwnerDid() ? normalizeDid(options.getOwnerDid()) : "";
|
|
32496
33306
|
if (!owner) return { status: { status: "unverified", reason: "We can't tell who created this flow yet, so its receipts can't be checked." }, transient: true };
|
|
@@ -32499,7 +33309,7 @@ function createReceiptVerifier(options) {
|
|
|
32499
33309
|
expectedAudience: owner,
|
|
32500
33310
|
ownerDid: owner,
|
|
32501
33311
|
actorDid: invocation.invokerDid,
|
|
32502
|
-
required: { can: "flow/block/execute", with: `${
|
|
33312
|
+
required: { can: "flow/block/execute", with: `${flowUriNow()}:${expected.blockId}` },
|
|
32503
33313
|
// The record's session run (what every surface groups it under) must be
|
|
32504
33314
|
// the one the signer bound it to.
|
|
32505
33315
|
...invocation.sessionRunId ? { expectedFacts: { sessionRunId: invocation.sessionRunId } } : {},
|
|
@@ -32507,9 +33317,17 @@ function createReceiptVerifier(options) {
|
|
|
32507
33317
|
at: invocation.executedAt
|
|
32508
33318
|
});
|
|
32509
33319
|
if (!verdict.ok) return { status: { status: "unverified", reason: verdict.reason }, transient: TRANSIENT.has(verdict.code) };
|
|
33320
|
+
if (isResultReceiptFacts(verdict.invocation.facts)) {
|
|
33321
|
+
return { status: { status: "unverified", reason: "This is the signed result of a step, not the signed request to run it." }, transient: false };
|
|
33322
|
+
}
|
|
32510
33323
|
if (verdict.revokedNow) {
|
|
32511
33324
|
return { status: { status: "unverified", reason: "This step was done under a grant that has since been cancelled.", revokedSince: true }, transient: false };
|
|
32512
33325
|
}
|
|
33326
|
+
const requirement = resultRequirementFact(verdict.invocation.facts);
|
|
33327
|
+
if (requirement) {
|
|
33328
|
+
const failure = await checkResult(invocation, verdict.invocation, requirement, expected, owner);
|
|
33329
|
+
if (failure) return failure;
|
|
33330
|
+
}
|
|
32513
33331
|
return { status: { status: "verified", ...verdict.noTimeAnchor ? { noTimeAnchor: true } : {} }, transient: false };
|
|
32514
33332
|
}
|
|
32515
33333
|
const verifier = {
|
|
@@ -33060,6 +33878,7 @@ function createOracleInitFlowTemplate() {
|
|
|
33060
33878
|
ACTION_SAFETY_BY_TYPE,
|
|
33061
33879
|
AUTHORITY_RECHECK_MS,
|
|
33062
33880
|
ActionContractResolutionError,
|
|
33881
|
+
ActionEffectNotStartedError,
|
|
33063
33882
|
ActionManifestV2VerificationError,
|
|
33064
33883
|
ComposioContractMismatchError,
|
|
33065
33884
|
DESIGN_POD_CONTROL_IDS,
|
|
@@ -33069,10 +33888,12 @@ function createOracleInitFlowTemplate() {
|
|
|
33069
33888
|
DESIGN_POD_STATE_MAP_KEY,
|
|
33070
33889
|
DESIGN_POD_TEMPLATE_ID,
|
|
33071
33890
|
DESIGN_YOMA_METHOD_V1,
|
|
33891
|
+
EFFECT_OUTCOME_UNKNOWN_CODE,
|
|
33072
33892
|
EffectClaimTransitionError,
|
|
33073
33893
|
EncryptedMatrixFlowDefinitionRevisionRepository,
|
|
33074
33894
|
ExplicitRunRequiredError,
|
|
33075
33895
|
FLOW_AUTHORITY_EVENT_TYPE,
|
|
33896
|
+
FLOW_BLOCK_EXECUTE_CAN,
|
|
33076
33897
|
FLOW_CAPABILITIES,
|
|
33077
33898
|
FLOW_CONNECTIONS_MAP_KEY,
|
|
33078
33899
|
FLOW_CONNECTION_BINDINGS_MAP_KEY,
|
|
@@ -33111,6 +33932,8 @@ function createOracleInitFlowTemplate() {
|
|
|
33111
33932
|
PROFESSIONAL_SERVICE_METHOD_V1,
|
|
33112
33933
|
PROOF_MISSING_CODE,
|
|
33113
33934
|
PeerExecutionError,
|
|
33935
|
+
RESULT_RECEIPT_FACT_TYPE,
|
|
33936
|
+
RESULT_RECEIPT_REQUIRED,
|
|
33114
33937
|
RUNS_TERMINAL_MAP_KEY,
|
|
33115
33938
|
RUNS_TERMINAL_PENDING_MAP_KEY,
|
|
33116
33939
|
RUN_RECORD_AUDIT_TYPE,
|
|
@@ -33123,6 +33946,7 @@ function createOracleInitFlowTemplate() {
|
|
|
33123
33946
|
STEP_COMPLETED_EVENT_NAME,
|
|
33124
33947
|
TerminalRunExecutionError,
|
|
33125
33948
|
TopicActionBridge,
|
|
33949
|
+
TopicRequestAlreadyStartedError,
|
|
33126
33950
|
TopicRevisionConflictError,
|
|
33127
33951
|
UNIVERSAL_ACTION_COMPLETED_OUTCOME,
|
|
33128
33952
|
UnknownRunError,
|
|
@@ -33178,6 +34002,7 @@ function createOracleInitFlowTemplate() {
|
|
|
33178
34002
|
capabilityForRequest,
|
|
33179
34003
|
capabilityPatternCoversCan,
|
|
33180
34004
|
censusFlowAuthority,
|
|
34005
|
+
checkFlowDefinition,
|
|
33181
34006
|
claimEffect,
|
|
33182
34007
|
classifyBlockerCause,
|
|
33183
34008
|
classifyNodeState,
|
|
@@ -33187,6 +34012,7 @@ function createOracleInitFlowTemplate() {
|
|
|
33187
34012
|
closeRun,
|
|
33188
34013
|
collectPhantomLegacyRun,
|
|
33189
34014
|
commitDesignPodPhase,
|
|
34015
|
+
compileAuthorityRequirements,
|
|
33190
34016
|
compileBaseUcanFlow,
|
|
33191
34017
|
compileDesignPodRelease,
|
|
33192
34018
|
computeActionContractDigest,
|
|
@@ -33238,8 +34064,13 @@ function createOracleInitFlowTemplate() {
|
|
|
33238
34064
|
deriveAttemptId,
|
|
33239
34065
|
deriveEffectClaimKey,
|
|
33240
34066
|
deriveEventId,
|
|
34067
|
+
deriveEvidenceStatus,
|
|
34068
|
+
deriveExecutionStatus,
|
|
33241
34069
|
deriveReceiptId,
|
|
34070
|
+
deriveReworkPolicy,
|
|
33242
34071
|
deriveRunId,
|
|
34072
|
+
deriveWorkItemPhase,
|
|
34073
|
+
deriveWorkStatus,
|
|
33243
34074
|
detectRunDefinitionDrift,
|
|
33244
34075
|
digestCanonicalJson,
|
|
33245
34076
|
digestDesignPodValue,
|
|
@@ -33307,6 +34138,7 @@ function createOracleInitFlowTemplate() {
|
|
|
33307
34138
|
isBelowTheLineBlock,
|
|
33308
34139
|
isBlankInputValue,
|
|
33309
34140
|
isCapabilityMatch,
|
|
34141
|
+
isEffectNotStartedError,
|
|
33310
34142
|
isExternalMutation,
|
|
33311
34143
|
isFlowOwner,
|
|
33312
34144
|
isLegacyRuntimeAdoptionEnabled,
|
|
@@ -33420,10 +34252,12 @@ function createOracleInitFlowTemplate() {
|
|
|
33420
34252
|
resolveRunIdForRead,
|
|
33421
34253
|
resolveRuntimeRefs,
|
|
33422
34254
|
resolveSingleReference,
|
|
34255
|
+
resolveStepAction,
|
|
33423
34256
|
resourceMatches,
|
|
33424
34257
|
retryPendingRunTimelineEvents,
|
|
33425
34258
|
revocationCheckerFor,
|
|
33426
34259
|
runLedgerAttestations,
|
|
34260
|
+
runStartRequestExpectedFacts,
|
|
33427
34261
|
sameDesignPodActor,
|
|
33428
34262
|
seedDesignPodMethodDefinition,
|
|
33429
34263
|
seedDesignPodTemplateFlow,
|
|
@@ -33452,6 +34286,7 @@ function createOracleInitFlowTemplate() {
|
|
|
33452
34286
|
snapshotInputRefs,
|
|
33453
34287
|
snapshotNode,
|
|
33454
34288
|
startRun,
|
|
34289
|
+
stepAssigneeDid,
|
|
33455
34290
|
subscribeToActionState,
|
|
33456
34291
|
summarizeFlowAuthorityCensus,
|
|
33457
34292
|
swapFlowBlocks,
|