@ixo/editor 7.17.1 → 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.
Files changed (343) hide show
  1. package/README.md +6 -0
  2. package/dist/{BidConfig-PKO3SHPM.js → BidConfig-TQXBUKGD.js} +10 -10
  3. package/dist/{BidFlowDetail-56UM43KU.js → BidFlowDetail-3BKTJXXA.js} +20 -17
  4. package/dist/{BidFlowDetail-56UM43KU.js.map → BidFlowDetail-3BKTJXXA.js.map} +1 -1
  5. package/dist/{CalendarEventCreateConfig-MCNRXHUN.js → CalendarEventCreateConfig-U7NFXBME.js} +11 -11
  6. package/dist/{CalendarEventCreateFlowDetail-6KSERH4V.js → CalendarEventCreateFlowDetail-ERQXISWY.js} +12 -12
  7. package/dist/{CalendarEventListConfig-G3ENMMOL.js → CalendarEventListConfig-FMZXJEPI.js} +11 -11
  8. package/dist/{CalendarEventListFlowDetail-454HM6LH.js → CalendarEventListFlowDetail-DXOUHADW.js} +5 -5
  9. package/dist/{CalendarEventUpdateConfig-SOE7ETBT.js → CalendarEventUpdateConfig-C43L7PHE.js} +11 -11
  10. package/dist/{CalendarEventUpdateFlowDetail-AS6O4DCV.js → CalendarEventUpdateFlowDetail-M6Z3TM3W.js} +12 -12
  11. package/dist/{ClaimConfig-XZWF6MXM.js → ClaimConfig-XLFL3IWC.js} +10 -10
  12. package/dist/{ClaimFlowDetail-TLD7WGZD.js → ClaimFlowDetail-CLEBNXGP.js} +20 -17
  13. package/dist/{ClaimFlowDetail-TLD7WGZD.js.map → ClaimFlowDetail-CLEBNXGP.js.map} +1 -1
  14. package/dist/{CollectionLifecycleConfig-DRQU52FG.js → CollectionLifecycleConfig-556UBJ2I.js} +4 -4
  15. package/dist/{CollectionLifecycleFlowDetail-W44R544P.js → CollectionLifecycleFlowDetail-JYNRCJ5S.js} +19 -16
  16. package/dist/{CollectionLifecycleFlowDetail-W44R544P.js.map → CollectionLifecycleFlowDetail-JYNRCJ5S.js.map} +1 -1
  17. package/dist/{CollectionUsersConfig-CTRSFWNE.js → CollectionUsersConfig-6P22QEYH.js} +10 -10
  18. package/dist/{CollectionUsersFlowDetail-SAFF27DZ.js → CollectionUsersFlowDetail-75KV4MLK.js} +23 -20
  19. package/dist/{CollectionUsersFlowDetail-SAFF27DZ.js.map → CollectionUsersFlowDetail-75KV4MLK.js.map} +1 -1
  20. package/dist/{CredentialStoreConfig-UUIJPIMZ.js → CredentialStoreConfig-G476HYFO.js} +8 -8
  21. package/dist/{CredentialStoreFlowDetail-3YIBCZ2P.js → CredentialStoreFlowDetail-PHFJWDQ6.js} +7 -7
  22. package/dist/{DesignPodFlowDetail-I7APOS5J.js → DesignPodFlowDetail-QE7XKTQ2.js} +5 -5
  23. package/dist/{DomainCardPreviewFlowDetail-7GMZ3U73.js → DomainCardPreviewFlowDetail-YN6CBAIF.js} +7 -7
  24. package/dist/{DomainIndexerLookupFlowDetail-D5UBF2EZ.js → DomainIndexerLookupFlowDetail-QGCPCVQU.js} +5 -5
  25. package/dist/{DomainSignFlowDetail-746C7LNN.js → DomainSignFlowDetail-DHJPC6PO.js} +8 -8
  26. package/dist/{DomainSingleSelectionConfig-IINRDF2X.js → DomainSingleSelectionConfig-EJTQIOGS.js} +4 -4
  27. package/dist/{DomainSingleSelectionFlowDetail-DDGNJZ7I.js → DomainSingleSelectionFlowDetail-3FNDUQNQ.js} +5 -5
  28. package/dist/{EmailSendConfig-LKBUVEOZ.js → EmailSendConfig-ZCXQK3SV.js} +10 -10
  29. package/dist/{EntityCreateOracleFlowDetail-YQUDO5MI.js → EntityCreateOracleFlowDetail-C6MV65OC.js} +7 -7
  30. package/dist/{EntitySingleSelectionFlowDetail-WU3TRAWU.js → EntitySingleSelectionFlowDetail-55TDSVSD.js} +5 -5
  31. package/dist/{EntityTransferFlowDetail-WAMV7YFS.js → EntityTransferFlowDetail-FT4IU4H6.js} +7 -7
  32. package/dist/{EvalEngineConfig-JP3LJWWU.js → EvalEngineConfig-NATHCR6D.js} +13 -13
  33. package/dist/{EvalEngineFlowDetail-BUUKGGSD.js → EvalEngineFlowDetail-K4UUV3SQ.js} +9 -9
  34. package/dist/{EvaluateBidConfig-CXSCBM3X.js → EvaluateBidConfig-UYCRRF2T.js} +10 -10
  35. package/dist/{EvaluateBidFlowDetail-56FBHYK5.js → EvaluateBidFlowDetail-FQP74NYF.js} +21 -18
  36. package/dist/{EvaluateBidFlowDetail-56FBHYK5.js.map → EvaluateBidFlowDetail-FQP74NYF.js.map} +1 -1
  37. package/dist/{EvaluateClaimConfig-XNRJJV4U.js → EvaluateClaimConfig-QVBOPMX2.js} +10 -10
  38. package/dist/{EvaluateClaimFlowDetail-4664ORTM.js → EvaluateClaimFlowDetail-7UDCX4G5.js} +20 -17
  39. package/dist/{EvaluateClaimFlowDetail-4664ORTM.js.map → EvaluateClaimFlowDetail-7UDCX4G5.js.map} +1 -1
  40. package/dist/{FormSubmitFlowDetail-CXG5R3WY.js → FormSubmitFlowDetail-7EGYHASY.js} +7 -7
  41. package/dist/{GovernanceAuthzExecFlowDetail-KTVR7DCF.js → GovernanceAuthzExecFlowDetail-H4E53YQ4.js} +12 -12
  42. package/dist/{GovernanceAuthzGrantFlowDetail-644VRW5A.js → GovernanceAuthzGrantFlowDetail-34ZEJMAG.js} +10 -10
  43. package/dist/{GovernanceAuthzRevokeFlowDetail-ALTWR47Q.js → GovernanceAuthzRevokeFlowDetail-OIPUTKBU.js} +10 -10
  44. package/dist/{GovernanceChainVoteFlowDetail-5KLKCHEM.js → GovernanceChainVoteFlowDetail-GDYO5YNZ.js} +9 -9
  45. package/dist/{GovernanceConfigFlowDetail-SOXSID6T.js → GovernanceConfigFlowDetail-EAX44S7P.js} +5 -5
  46. package/dist/{GovernanceContractExecuteFlowDetail-Y4TIBJPP.js → GovernanceContractExecuteFlowDetail-JAEBWT5F.js} +9 -9
  47. package/dist/{GovernanceContractInstantiateFlowDetail-6RXY72KU.js → GovernanceContractInstantiateFlowDetail-TKK2CE3N.js} +9 -9
  48. package/dist/{GovernanceContractManageCw20FlowDetail-2EIDOO3K.js → GovernanceContractManageCw20FlowDetail-PZ4YHU6Z.js} +8 -8
  49. package/dist/{GovernanceContractMigrateFlowDetail-C3N63YPC.js → GovernanceContractMigrateFlowDetail-EA5BNLXK.js} +9 -9
  50. package/dist/{GovernanceContractUpdateAdminFlowDetail-HEWDMBAN.js → GovernanceContractUpdateAdminFlowDetail-QOB2BCB2.js} +8 -8
  51. package/dist/{GovernanceCustomMessageFlowDetail-DEZA3Z57.js → GovernanceCustomMessageFlowDetail-SQJKIYUU.js} +9 -9
  52. package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-W7KP4FZB.js → GovernanceDaoAcceptToMarketplaceFlowDetail-NAGN66IN.js} +9 -9
  53. package/dist/{GovernanceDaoAdminExecFlowDetail-R5EMFJFO.js → GovernanceDaoAdminExecFlowDetail-RST73GEG.js} +11 -11
  54. package/dist/{GovernanceDaoCreateEntityFlowDetail-MIZB7SKM.js → GovernanceDaoCreateEntityFlowDetail-3ZU4M6XB.js} +9 -9
  55. package/dist/{GovernanceDaoJoinFlowDetail-WFC43PRS.js → GovernanceDaoJoinFlowDetail-P54XEJBK.js} +9 -9
  56. package/dist/{GovernanceDaoManageStorageFlowDetail-GQHOYJDB.js → GovernanceDaoManageStorageFlowDetail-ATW44N2O.js} +8 -8
  57. package/dist/{GovernanceDaoManageSubDaosFlowDetail-KUQE4XDR.js → GovernanceDaoManageSubDaosFlowDetail-PSZ4L6JS.js} +10 -10
  58. package/dist/{GovernanceDaoUpdateInfoFlowDetail-IONJD53S.js → GovernanceDaoUpdateInfoFlowDetail-JM367SP3.js} +8 -8
  59. package/dist/{GovernanceMemberProposalConfig-4MLIAT6T.js → GovernanceMemberProposalConfig-T6V4XMD5.js} +5 -5
  60. package/dist/{GovernanceMemberProposalFlowDetail-IKFBZZJI.js → GovernanceMemberProposalFlowDetail-QV4GZGCL.js} +9 -9
  61. package/dist/{GovernanceNftBurnFlowDetail-EQWHCRTN.js → GovernanceNftBurnFlowDetail-LWZXYELU.js} +8 -8
  62. package/dist/{GovernanceNftManageCollectionsFlowDetail-Y2ATTFVK.js → GovernanceNftManageCollectionsFlowDetail-SBBJAA3O.js} +8 -8
  63. package/dist/{GovernanceNftTransferFlowDetail-IAE4ZO5Y.js → GovernanceNftTransferFlowDetail-M3FZ44DR.js} +9 -9
  64. package/dist/{GovernanceSettingsProposalConfig-2JMD2SQ6.js → GovernanceSettingsProposalConfig-LWZSLPOP.js} +6 -6
  65. package/dist/GovernanceSettingsProposalFlowDetail-XPNZHMRM.js +291 -0
  66. package/dist/GovernanceSettingsProposalFlowDetail-XPNZHMRM.js.map +1 -0
  67. package/dist/{GovernanceStakingStakeFlowDetail-XH5WPERK.js → GovernanceStakingStakeFlowDetail-YTSU64YA.js} +8 -8
  68. package/dist/{GovernanceStakingStakeToGroupFlowDetail-WBA5EHOD.js → GovernanceStakingStakeToGroupFlowDetail-BINBC737.js} +8 -8
  69. package/dist/GovernanceSubmissionConfigProposalFlowDetail-2M2WYVRI.js +202 -0
  70. package/dist/GovernanceSubmissionConfigProposalFlowDetail-2M2WYVRI.js.map +1 -0
  71. package/dist/{GovernanceTransactionMintFlowDetail-LWUSSCMY.js → GovernanceTransactionMintFlowDetail-JMRKVSSC.js} +9 -9
  72. package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-7RF3YLUW.js → GovernanceTransactionPerformTokenSwapFlowDetail-ISJWELXS.js} +8 -8
  73. package/dist/{GovernanceTransactionSendFundsConfig-MFPOXPYA.js → GovernanceTransactionSendFundsConfig-2ZZGBB66.js} +5 -5
  74. package/dist/{GovernanceTransactionSendFundsFlowDetail-DMLUO3BM.js → GovernanceTransactionSendFundsFlowDetail-3JWTIOLT.js} +12 -12
  75. package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-Y6XITVRH.js → GovernanceTransactionSendGroupTokenFlowDetail-6TBIUJLV.js} +10 -10
  76. package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-7RRP7VJF.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-SQH73HL2.js} +8 -8
  77. package/dist/{GovernanceValidatorActionsFlowDetail-SP7Q2TJC.js → GovernanceValidatorActionsFlowDetail-VFPEROKQ.js} +9 -9
  78. package/dist/{HarvestConfig-FFARBTWA.js → HarvestConfig-TUREICJM.js} +9 -9
  79. package/dist/{HarvestFlowDetail-EXFUJCC5.js → HarvestFlowDetail-6VDHMIIR.js} +7 -7
  80. package/dist/{HttpRequestConfig-JXWZ4XZ5.js → HttpRequestConfig-NZP4M72G.js} +8 -8
  81. package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js → HttpRequestFlowDetail-VKPVV3EW.js} +5 -5
  82. package/dist/{IdentityCreateFlowDetail-ZN5UYPAL.js → IdentityCreateFlowDetail-PRX37M4E.js} +13 -13
  83. package/dist/{IidCreateFlowDetail-6V3HVZTJ.js → IidCreateFlowDetail-SHBEMN4T.js} +13 -13
  84. package/dist/{KycVerifyConfig-6F55N6UR.js → KycVerifyConfig-E5LO2HWP.js} +8 -8
  85. package/dist/{KycVerifyFlowDetail-H3R2KQT5.js → KycVerifyFlowDetail-ECXG4G2V.js} +13 -13
  86. package/dist/{ListDomainFlowsFlowDetail-WZSP5DDP.js → ListDomainFlowsFlowDetail-R4O5E22G.js} +5 -5
  87. package/dist/{LoadBatchesFlowDetail-6TXNWSPF.js → LoadBatchesFlowDetail-D5A3BXLP.js} +7 -7
  88. package/dist/{MatrixDmConfig-RFZBU7NL.js → MatrixDmConfig-TWT476MT.js} +4 -4
  89. package/dist/{MatrixRegisterFlowDetail-BQIC4HYM.js → MatrixRegisterFlowDetail-SNEQV5XD.js} +7 -7
  90. package/dist/{MemberMultiSelectFlowDetail-BRLUJ4KU.js → MemberMultiSelectFlowDetail-AFSBDTLU.js} +5 -5
  91. package/dist/{OracleConfig-H736YKGE.js → OracleConfig-YA235M4B.js} +8 -8
  92. package/dist/{OracleConfigureOracleFlowDetail-AS3KBSVG.js → OracleConfigureOracleFlowDetail-FG7W6KQV.js} +13 -13
  93. package/dist/{OracleContractFlowDetail-6NU5KJ5Z.js → OracleContractFlowDetail-6WOJ2XM2.js} +7 -7
  94. package/dist/{OracleDeployFlowDetail-W2LFK23M.js → OracleDeployFlowDetail-MV46JHSL.js} +7 -7
  95. package/dist/{OracleDeploySetupFlowDetail-4XV3XB6G.js → OracleDeploySetupFlowDetail-O4OY5VBH.js} +7 -7
  96. package/dist/{OracleDeployStartFlowDetail-7ZEZUSMN.js → OracleDeployStartFlowDetail-TLKREH6F.js} +7 -7
  97. package/dist/{OracleFlowDetail-LQGZ2U2F.js → OracleFlowDetail-VEH2AEPI.js} +7 -7
  98. package/dist/{OraclePromptFlowDetail-IWUMH4LJ.js → OraclePromptFlowDetail-3VVAWBXP.js} +7 -7
  99. package/dist/{OracleStoreConfigFlowDetail-ND6YNZPT.js → OracleStoreConfigFlowDetail-F6BIC2MI.js} +7 -7
  100. package/dist/{OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js → OracleStoreSecretsAndConfigFlowDetail-OJL7FBEX.js} +13 -13
  101. package/dist/{OracleStoreSecretsFlowDetail-GX3ADRWP.js → OracleStoreSecretsFlowDetail-Q7BB6VPM.js} +13 -13
  102. package/dist/{ProposalCreateConfig-7YYMB5EH.js → ProposalCreateConfig-PD2HANKW.js} +12 -12
  103. package/dist/{ProposalCreateFlowDetail-EU2NNZRS.js → ProposalCreateFlowDetail-H5TB6CRI.js} +64 -44
  104. package/dist/ProposalCreateFlowDetail-H5TB6CRI.js.map +1 -0
  105. package/dist/{ProposalVoteConfig-U5DF2WWT.js → ProposalVoteConfig-CGDNREKQ.js} +10 -10
  106. package/dist/{ProposalVoteFlowDetail-66B6H75V.js → ProposalVoteFlowDetail-BNIZNLJ3.js} +8 -8
  107. package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js → ProtocolSelectFlowDetail-X34GCQXS.js} +4 -4
  108. package/dist/{RetireConfig-4QOIAETV.js → RetireConfig-XCYWEMCM.js} +9 -9
  109. package/dist/{RetireFlowDetail-YQLPDYC4.js → RetireFlowDetail-J2VJGNU3.js} +7 -7
  110. package/dist/{SandboxProvisionFlowDetail-GVC7DAI3.js → SandboxProvisionFlowDetail-DTCXKMFO.js} +7 -7
  111. package/dist/{WalletFundConfig-UEQ3TKIO.js → WalletFundConfig-MU6JRK2X.js} +5 -5
  112. package/dist/{WalletFundFlowDetail-767QZKZM.js → WalletFundFlowDetail-7YJDOYVS.js} +8 -8
  113. package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js → WalletGenerateAndFundFlowDetail-CME4JE3R.js} +5 -5
  114. package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js → WalletGenerateFlowDetail-3KTVG2V4.js} +5 -5
  115. package/dist/{XeroContactCreateConfig-HXSGZD7Q.js → XeroContactCreateConfig-4VKYUIJQ.js} +11 -11
  116. package/dist/{XeroContactCreateFlowDetail-ZUUILA5R.js → XeroContactCreateFlowDetail-JRJ5I4CD.js} +12 -12
  117. package/dist/{XeroInvoiceCreateConfig-72KXJ73Z.js → XeroInvoiceCreateConfig-ULKQXCNS.js} +11 -11
  118. package/dist/{XeroInvoiceCreateFlowDetail-ZMYUYNQM.js → XeroInvoiceCreateFlowDetail-DTOFRV4L.js} +14 -14
  119. package/dist/{XeroInvoiceListConfig-DEZSXEVD.js → XeroInvoiceListConfig-PPXFYVVK.js} +11 -11
  120. package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js → XeroInvoiceListFlowDetail-RPE7NCMF.js} +5 -5
  121. package/dist/{XeroPaymentCreateConfig-VXXJE4QT.js → XeroPaymentCreateConfig-EIYSLLZK.js} +8 -8
  122. package/dist/{XeroPaymentCreateFlowDetail-PXSGHLE2.js → XeroPaymentCreateFlowDetail-MMLHUXLS.js} +13 -13
  123. package/dist/action-manifest.json +5089 -543
  124. package/dist/{chunk-7LI5YJAE.js → chunk-2GIBQPNN.js} +2 -2
  125. package/dist/{chunk-GVNMIIMQ.js → chunk-3PUDS5PV.js} +133 -4
  126. package/dist/chunk-3PUDS5PV.js.map +1 -0
  127. package/dist/{chunk-EIDAXWST.js → chunk-45KKBVIM.js} +2 -2
  128. package/dist/{chunk-4Y66NZYT.js → chunk-6NH4PDTY.js} +43 -1
  129. package/dist/chunk-6NH4PDTY.js.map +1 -0
  130. package/dist/{chunk-U57CCGM4.js → chunk-6S4TEGYI.js} +2 -2
  131. package/dist/{chunk-KXTRAHCF.js → chunk-7C2WFOG2.js} +1034 -105
  132. package/dist/chunk-7C2WFOG2.js.map +1 -0
  133. package/dist/{chunk-NBDFKF6H.js → chunk-7UJMOJBH.js} +2 -2
  134. package/dist/{chunk-5NJA7YNR.js → chunk-A34Z7KJC.js} +2 -2
  135. package/dist/chunk-AKRAO7H6.js +24 -0
  136. package/dist/chunk-AKRAO7H6.js.map +1 -0
  137. package/dist/{chunk-IZRTWKW3.js → chunk-AW6YLUSS.js} +2 -2
  138. package/dist/{chunk-DDFGCFUF.js → chunk-B7X6QSZ7.js} +17 -6
  139. package/dist/chunk-B7X6QSZ7.js.map +1 -0
  140. package/dist/{chunk-TSXHPGXB.js → chunk-BH5JRBU4.js} +2 -2
  141. package/dist/{chunk-HNZQKYXU.js → chunk-DRPCLFT2.js} +4 -3
  142. package/dist/{chunk-HNZQKYXU.js.map → chunk-DRPCLFT2.js.map} +1 -1
  143. package/dist/{chunk-AO5TGK5A.js → chunk-GMEYEPGZ.js} +2 -2
  144. package/dist/chunk-HVL25AOI.js +55 -0
  145. package/dist/chunk-HVL25AOI.js.map +1 -0
  146. package/dist/{chunk-ICKOVZDM.js → chunk-IJUGKKMY.js} +2 -2
  147. package/dist/{chunk-3JJJGENW.js → chunk-IY7QJKBL.js} +2 -2
  148. package/dist/{chunk-DKQM4R2N.js → chunk-JD25JVOX.js} +2 -2
  149. package/dist/{chunk-TK3JNKME.js → chunk-L56HTYJR.js} +1 -1
  150. package/dist/chunk-L56HTYJR.js.map +1 -0
  151. package/dist/{chunk-7TT4RM2M.js → chunk-L6ZHO7T4.js} +2 -2
  152. package/dist/{chunk-VNRY7ABX.js → chunk-LUUZ3SG6.js} +3 -3
  153. package/dist/chunk-LUUZ3SG6.js.map +1 -0
  154. package/dist/{chunk-6SWOXRMF.js → chunk-NDD5CJZB.js} +2 -2
  155. package/dist/{chunk-WUWAC5S6.js → chunk-Q2FDVC3Z.js} +3 -3
  156. package/dist/{chunk-Z7QWH42V.js → chunk-QUGMNWDO.js} +2 -2
  157. package/dist/{chunk-OF3LB65M.js → chunk-RIHEX7HK.js} +2 -2
  158. package/dist/{chunk-SYOPQ3JE.js → chunk-RZXGA5XL.js} +9 -7
  159. package/dist/{chunk-SYOPQ3JE.js.map → chunk-RZXGA5XL.js.map} +1 -1
  160. package/dist/chunk-SUIL2KJT.js +190 -0
  161. package/dist/chunk-SUIL2KJT.js.map +1 -0
  162. package/dist/{chunk-TMQA4RSG.js → chunk-SXCEELAR.js} +3 -3
  163. package/dist/{chunk-WAM3FJJL.js → chunk-T3GM5CRM.js} +3 -3
  164. package/dist/chunk-VSVM2MPJ.js +149 -0
  165. package/dist/chunk-VSVM2MPJ.js.map +1 -0
  166. package/dist/{chunk-GNXZSPZ5.js → chunk-WBTL6EX4.js} +4 -4
  167. package/dist/{chunk-OCAYEGI2.js → chunk-WKYPC2IS.js} +1 -1
  168. package/dist/chunk-WKYPC2IS.js.map +1 -0
  169. package/dist/{chunk-XLBKC3EL.js → chunk-WY4JOYIF.js} +2 -2
  170. package/dist/{chunk-JRY6LLK6.js → chunk-X6U4GFNS.js} +3 -3
  171. package/dist/chunk-X6U4GFNS.js.map +1 -0
  172. package/dist/{chunk-PNHXP67T.js → chunk-XGICKRWF.js} +601 -55
  173. package/dist/chunk-XGICKRWF.js.map +1 -0
  174. package/dist/{chunk-EGZGY3OM.js → chunk-XKDMDEUI.js} +2953 -1203
  175. package/dist/chunk-XKDMDEUI.js.map +1 -0
  176. package/dist/{chunk-AOLCNPGV.js → chunk-YQ2KFBAT.js} +2 -2
  177. package/dist/{chunk-EVHWLO2C.js → chunk-YQWE5CZP.js} +169 -6
  178. package/dist/chunk-YQWE5CZP.js.map +1 -0
  179. package/dist/{chunk-OG56C7DD.js → chunk-YRWVRQXG.js} +2 -2
  180. package/dist/{chunk-OV4KVTZI.js → chunk-Z46UWMKG.js} +2 -2
  181. package/dist/{chunk-T4KY7UF7.js → chunk-ZAZDJGPW.js} +2 -2
  182. package/dist/{chunk-5DOXIPDH.js → chunk-ZCKNE7BN.js} +2 -2
  183. package/dist/{connections-Ch8YM5VH.d.ts → connections-Bb8EVlWA.d.ts} +19 -10
  184. package/dist/core/index.cjs +1853 -173
  185. package/dist/core/index.cjs.map +1 -1
  186. package/dist/core/index.d.ts +346 -6
  187. package/dist/core/index.js +44 -10
  188. package/dist/core/index.js.map +1 -1
  189. package/dist/{graphql-client-CQ4fit1Q.d.ts → graphql-client-Dukm5Usv.d.ts} +2 -2
  190. package/dist/index.d.ts +3 -3
  191. package/dist/index.js +30 -24
  192. package/dist/index.js.map +1 -1
  193. package/dist/mantine/index.d.ts +3 -3
  194. package/dist/mantine/index.js +29 -23
  195. package/dist/mantine/index.js.map +1 -1
  196. package/dist/{types-C62gQYvE.d.ts → types-D0TryOYl.d.ts} +693 -6
  197. package/package.json +1 -1
  198. package/dist/GovernanceSettingsProposalFlowDetail-IXOEGPQL.js +0 -164
  199. package/dist/GovernanceSettingsProposalFlowDetail-IXOEGPQL.js.map +0 -1
  200. package/dist/GovernanceSubmissionConfigProposalFlowDetail-WFPYJRO2.js +0 -110
  201. package/dist/GovernanceSubmissionConfigProposalFlowDetail-WFPYJRO2.js.map +0 -1
  202. package/dist/ProposalCreateFlowDetail-EU2NNZRS.js.map +0 -1
  203. package/dist/chunk-4Y66NZYT.js.map +0 -1
  204. package/dist/chunk-DDFGCFUF.js.map +0 -1
  205. package/dist/chunk-DP5X7SLN.js +0 -315
  206. package/dist/chunk-DP5X7SLN.js.map +0 -1
  207. package/dist/chunk-EGZGY3OM.js.map +0 -1
  208. package/dist/chunk-EVHWLO2C.js.map +0 -1
  209. package/dist/chunk-GVNMIIMQ.js.map +0 -1
  210. package/dist/chunk-JRY6LLK6.js.map +0 -1
  211. package/dist/chunk-KXTRAHCF.js.map +0 -1
  212. package/dist/chunk-OCAYEGI2.js.map +0 -1
  213. package/dist/chunk-PNHXP67T.js.map +0 -1
  214. package/dist/chunk-TK3JNKME.js.map +0 -1
  215. package/dist/chunk-VNRY7ABX.js.map +0 -1
  216. /package/dist/{BidConfig-PKO3SHPM.js.map → BidConfig-TQXBUKGD.js.map} +0 -0
  217. /package/dist/{CalendarEventCreateConfig-MCNRXHUN.js.map → CalendarEventCreateConfig-U7NFXBME.js.map} +0 -0
  218. /package/dist/{CalendarEventCreateFlowDetail-6KSERH4V.js.map → CalendarEventCreateFlowDetail-ERQXISWY.js.map} +0 -0
  219. /package/dist/{CalendarEventListConfig-G3ENMMOL.js.map → CalendarEventListConfig-FMZXJEPI.js.map} +0 -0
  220. /package/dist/{CalendarEventListFlowDetail-454HM6LH.js.map → CalendarEventListFlowDetail-DXOUHADW.js.map} +0 -0
  221. /package/dist/{CalendarEventUpdateConfig-SOE7ETBT.js.map → CalendarEventUpdateConfig-C43L7PHE.js.map} +0 -0
  222. /package/dist/{CalendarEventUpdateFlowDetail-AS6O4DCV.js.map → CalendarEventUpdateFlowDetail-M6Z3TM3W.js.map} +0 -0
  223. /package/dist/{ClaimConfig-XZWF6MXM.js.map → ClaimConfig-XLFL3IWC.js.map} +0 -0
  224. /package/dist/{CollectionLifecycleConfig-DRQU52FG.js.map → CollectionLifecycleConfig-556UBJ2I.js.map} +0 -0
  225. /package/dist/{CollectionUsersConfig-CTRSFWNE.js.map → CollectionUsersConfig-6P22QEYH.js.map} +0 -0
  226. /package/dist/{CredentialStoreConfig-UUIJPIMZ.js.map → CredentialStoreConfig-G476HYFO.js.map} +0 -0
  227. /package/dist/{CredentialStoreFlowDetail-3YIBCZ2P.js.map → CredentialStoreFlowDetail-PHFJWDQ6.js.map} +0 -0
  228. /package/dist/{DesignPodFlowDetail-I7APOS5J.js.map → DesignPodFlowDetail-QE7XKTQ2.js.map} +0 -0
  229. /package/dist/{DomainCardPreviewFlowDetail-7GMZ3U73.js.map → DomainCardPreviewFlowDetail-YN6CBAIF.js.map} +0 -0
  230. /package/dist/{DomainIndexerLookupFlowDetail-D5UBF2EZ.js.map → DomainIndexerLookupFlowDetail-QGCPCVQU.js.map} +0 -0
  231. /package/dist/{DomainSignFlowDetail-746C7LNN.js.map → DomainSignFlowDetail-DHJPC6PO.js.map} +0 -0
  232. /package/dist/{DomainSingleSelectionConfig-IINRDF2X.js.map → DomainSingleSelectionConfig-EJTQIOGS.js.map} +0 -0
  233. /package/dist/{DomainSingleSelectionFlowDetail-DDGNJZ7I.js.map → DomainSingleSelectionFlowDetail-3FNDUQNQ.js.map} +0 -0
  234. /package/dist/{EmailSendConfig-LKBUVEOZ.js.map → EmailSendConfig-ZCXQK3SV.js.map} +0 -0
  235. /package/dist/{EntityCreateOracleFlowDetail-YQUDO5MI.js.map → EntityCreateOracleFlowDetail-C6MV65OC.js.map} +0 -0
  236. /package/dist/{EntitySingleSelectionFlowDetail-WU3TRAWU.js.map → EntitySingleSelectionFlowDetail-55TDSVSD.js.map} +0 -0
  237. /package/dist/{EntityTransferFlowDetail-WAMV7YFS.js.map → EntityTransferFlowDetail-FT4IU4H6.js.map} +0 -0
  238. /package/dist/{EvalEngineConfig-JP3LJWWU.js.map → EvalEngineConfig-NATHCR6D.js.map} +0 -0
  239. /package/dist/{EvalEngineFlowDetail-BUUKGGSD.js.map → EvalEngineFlowDetail-K4UUV3SQ.js.map} +0 -0
  240. /package/dist/{EvaluateBidConfig-CXSCBM3X.js.map → EvaluateBidConfig-UYCRRF2T.js.map} +0 -0
  241. /package/dist/{EvaluateClaimConfig-XNRJJV4U.js.map → EvaluateClaimConfig-QVBOPMX2.js.map} +0 -0
  242. /package/dist/{FormSubmitFlowDetail-CXG5R3WY.js.map → FormSubmitFlowDetail-7EGYHASY.js.map} +0 -0
  243. /package/dist/{GovernanceAuthzExecFlowDetail-KTVR7DCF.js.map → GovernanceAuthzExecFlowDetail-H4E53YQ4.js.map} +0 -0
  244. /package/dist/{GovernanceAuthzGrantFlowDetail-644VRW5A.js.map → GovernanceAuthzGrantFlowDetail-34ZEJMAG.js.map} +0 -0
  245. /package/dist/{GovernanceAuthzRevokeFlowDetail-ALTWR47Q.js.map → GovernanceAuthzRevokeFlowDetail-OIPUTKBU.js.map} +0 -0
  246. /package/dist/{GovernanceChainVoteFlowDetail-5KLKCHEM.js.map → GovernanceChainVoteFlowDetail-GDYO5YNZ.js.map} +0 -0
  247. /package/dist/{GovernanceConfigFlowDetail-SOXSID6T.js.map → GovernanceConfigFlowDetail-EAX44S7P.js.map} +0 -0
  248. /package/dist/{GovernanceContractExecuteFlowDetail-Y4TIBJPP.js.map → GovernanceContractExecuteFlowDetail-JAEBWT5F.js.map} +0 -0
  249. /package/dist/{GovernanceContractInstantiateFlowDetail-6RXY72KU.js.map → GovernanceContractInstantiateFlowDetail-TKK2CE3N.js.map} +0 -0
  250. /package/dist/{GovernanceContractManageCw20FlowDetail-2EIDOO3K.js.map → GovernanceContractManageCw20FlowDetail-PZ4YHU6Z.js.map} +0 -0
  251. /package/dist/{GovernanceContractMigrateFlowDetail-C3N63YPC.js.map → GovernanceContractMigrateFlowDetail-EA5BNLXK.js.map} +0 -0
  252. /package/dist/{GovernanceContractUpdateAdminFlowDetail-HEWDMBAN.js.map → GovernanceContractUpdateAdminFlowDetail-QOB2BCB2.js.map} +0 -0
  253. /package/dist/{GovernanceCustomMessageFlowDetail-DEZA3Z57.js.map → GovernanceCustomMessageFlowDetail-SQJKIYUU.js.map} +0 -0
  254. /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-W7KP4FZB.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-NAGN66IN.js.map} +0 -0
  255. /package/dist/{GovernanceDaoAdminExecFlowDetail-R5EMFJFO.js.map → GovernanceDaoAdminExecFlowDetail-RST73GEG.js.map} +0 -0
  256. /package/dist/{GovernanceDaoCreateEntityFlowDetail-MIZB7SKM.js.map → GovernanceDaoCreateEntityFlowDetail-3ZU4M6XB.js.map} +0 -0
  257. /package/dist/{GovernanceDaoJoinFlowDetail-WFC43PRS.js.map → GovernanceDaoJoinFlowDetail-P54XEJBK.js.map} +0 -0
  258. /package/dist/{GovernanceDaoManageStorageFlowDetail-GQHOYJDB.js.map → GovernanceDaoManageStorageFlowDetail-ATW44N2O.js.map} +0 -0
  259. /package/dist/{GovernanceDaoManageSubDaosFlowDetail-KUQE4XDR.js.map → GovernanceDaoManageSubDaosFlowDetail-PSZ4L6JS.js.map} +0 -0
  260. /package/dist/{GovernanceDaoUpdateInfoFlowDetail-IONJD53S.js.map → GovernanceDaoUpdateInfoFlowDetail-JM367SP3.js.map} +0 -0
  261. /package/dist/{GovernanceMemberProposalConfig-4MLIAT6T.js.map → GovernanceMemberProposalConfig-T6V4XMD5.js.map} +0 -0
  262. /package/dist/{GovernanceMemberProposalFlowDetail-IKFBZZJI.js.map → GovernanceMemberProposalFlowDetail-QV4GZGCL.js.map} +0 -0
  263. /package/dist/{GovernanceNftBurnFlowDetail-EQWHCRTN.js.map → GovernanceNftBurnFlowDetail-LWZXYELU.js.map} +0 -0
  264. /package/dist/{GovernanceNftManageCollectionsFlowDetail-Y2ATTFVK.js.map → GovernanceNftManageCollectionsFlowDetail-SBBJAA3O.js.map} +0 -0
  265. /package/dist/{GovernanceNftTransferFlowDetail-IAE4ZO5Y.js.map → GovernanceNftTransferFlowDetail-M3FZ44DR.js.map} +0 -0
  266. /package/dist/{GovernanceSettingsProposalConfig-2JMD2SQ6.js.map → GovernanceSettingsProposalConfig-LWZSLPOP.js.map} +0 -0
  267. /package/dist/{GovernanceStakingStakeFlowDetail-XH5WPERK.js.map → GovernanceStakingStakeFlowDetail-YTSU64YA.js.map} +0 -0
  268. /package/dist/{GovernanceStakingStakeToGroupFlowDetail-WBA5EHOD.js.map → GovernanceStakingStakeToGroupFlowDetail-BINBC737.js.map} +0 -0
  269. /package/dist/{GovernanceTransactionMintFlowDetail-LWUSSCMY.js.map → GovernanceTransactionMintFlowDetail-JMRKVSSC.js.map} +0 -0
  270. /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-7RF3YLUW.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-ISJWELXS.js.map} +0 -0
  271. /package/dist/{GovernanceTransactionSendFundsConfig-MFPOXPYA.js.map → GovernanceTransactionSendFundsConfig-2ZZGBB66.js.map} +0 -0
  272. /package/dist/{GovernanceTransactionSendFundsFlowDetail-DMLUO3BM.js.map → GovernanceTransactionSendFundsFlowDetail-3JWTIOLT.js.map} +0 -0
  273. /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-Y6XITVRH.js.map → GovernanceTransactionSendGroupTokenFlowDetail-6TBIUJLV.js.map} +0 -0
  274. /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-7RRP7VJF.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-SQH73HL2.js.map} +0 -0
  275. /package/dist/{GovernanceValidatorActionsFlowDetail-SP7Q2TJC.js.map → GovernanceValidatorActionsFlowDetail-VFPEROKQ.js.map} +0 -0
  276. /package/dist/{HarvestConfig-FFARBTWA.js.map → HarvestConfig-TUREICJM.js.map} +0 -0
  277. /package/dist/{HarvestFlowDetail-EXFUJCC5.js.map → HarvestFlowDetail-6VDHMIIR.js.map} +0 -0
  278. /package/dist/{HttpRequestConfig-JXWZ4XZ5.js.map → HttpRequestConfig-NZP4M72G.js.map} +0 -0
  279. /package/dist/{HttpRequestFlowDetail-3CHJ3MHJ.js.map → HttpRequestFlowDetail-VKPVV3EW.js.map} +0 -0
  280. /package/dist/{IdentityCreateFlowDetail-ZN5UYPAL.js.map → IdentityCreateFlowDetail-PRX37M4E.js.map} +0 -0
  281. /package/dist/{IidCreateFlowDetail-6V3HVZTJ.js.map → IidCreateFlowDetail-SHBEMN4T.js.map} +0 -0
  282. /package/dist/{KycVerifyConfig-6F55N6UR.js.map → KycVerifyConfig-E5LO2HWP.js.map} +0 -0
  283. /package/dist/{KycVerifyFlowDetail-H3R2KQT5.js.map → KycVerifyFlowDetail-ECXG4G2V.js.map} +0 -0
  284. /package/dist/{ListDomainFlowsFlowDetail-WZSP5DDP.js.map → ListDomainFlowsFlowDetail-R4O5E22G.js.map} +0 -0
  285. /package/dist/{LoadBatchesFlowDetail-6TXNWSPF.js.map → LoadBatchesFlowDetail-D5A3BXLP.js.map} +0 -0
  286. /package/dist/{MatrixDmConfig-RFZBU7NL.js.map → MatrixDmConfig-TWT476MT.js.map} +0 -0
  287. /package/dist/{MatrixRegisterFlowDetail-BQIC4HYM.js.map → MatrixRegisterFlowDetail-SNEQV5XD.js.map} +0 -0
  288. /package/dist/{MemberMultiSelectFlowDetail-BRLUJ4KU.js.map → MemberMultiSelectFlowDetail-AFSBDTLU.js.map} +0 -0
  289. /package/dist/{OracleConfig-H736YKGE.js.map → OracleConfig-YA235M4B.js.map} +0 -0
  290. /package/dist/{OracleConfigureOracleFlowDetail-AS3KBSVG.js.map → OracleConfigureOracleFlowDetail-FG7W6KQV.js.map} +0 -0
  291. /package/dist/{OracleContractFlowDetail-6NU5KJ5Z.js.map → OracleContractFlowDetail-6WOJ2XM2.js.map} +0 -0
  292. /package/dist/{OracleDeployFlowDetail-W2LFK23M.js.map → OracleDeployFlowDetail-MV46JHSL.js.map} +0 -0
  293. /package/dist/{OracleDeploySetupFlowDetail-4XV3XB6G.js.map → OracleDeploySetupFlowDetail-O4OY5VBH.js.map} +0 -0
  294. /package/dist/{OracleDeployStartFlowDetail-7ZEZUSMN.js.map → OracleDeployStartFlowDetail-TLKREH6F.js.map} +0 -0
  295. /package/dist/{OracleFlowDetail-LQGZ2U2F.js.map → OracleFlowDetail-VEH2AEPI.js.map} +0 -0
  296. /package/dist/{OraclePromptFlowDetail-IWUMH4LJ.js.map → OraclePromptFlowDetail-3VVAWBXP.js.map} +0 -0
  297. /package/dist/{OracleStoreConfigFlowDetail-ND6YNZPT.js.map → OracleStoreConfigFlowDetail-F6BIC2MI.js.map} +0 -0
  298. /package/dist/{OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js.map → OracleStoreSecretsAndConfigFlowDetail-OJL7FBEX.js.map} +0 -0
  299. /package/dist/{OracleStoreSecretsFlowDetail-GX3ADRWP.js.map → OracleStoreSecretsFlowDetail-Q7BB6VPM.js.map} +0 -0
  300. /package/dist/{ProposalCreateConfig-7YYMB5EH.js.map → ProposalCreateConfig-PD2HANKW.js.map} +0 -0
  301. /package/dist/{ProposalVoteConfig-U5DF2WWT.js.map → ProposalVoteConfig-CGDNREKQ.js.map} +0 -0
  302. /package/dist/{ProposalVoteFlowDetail-66B6H75V.js.map → ProposalVoteFlowDetail-BNIZNLJ3.js.map} +0 -0
  303. /package/dist/{ProtocolSelectFlowDetail-X3KBTHIC.js.map → ProtocolSelectFlowDetail-X34GCQXS.js.map} +0 -0
  304. /package/dist/{RetireConfig-4QOIAETV.js.map → RetireConfig-XCYWEMCM.js.map} +0 -0
  305. /package/dist/{RetireFlowDetail-YQLPDYC4.js.map → RetireFlowDetail-J2VJGNU3.js.map} +0 -0
  306. /package/dist/{SandboxProvisionFlowDetail-GVC7DAI3.js.map → SandboxProvisionFlowDetail-DTCXKMFO.js.map} +0 -0
  307. /package/dist/{WalletFundConfig-UEQ3TKIO.js.map → WalletFundConfig-MU6JRK2X.js.map} +0 -0
  308. /package/dist/{WalletFundFlowDetail-767QZKZM.js.map → WalletFundFlowDetail-7YJDOYVS.js.map} +0 -0
  309. /package/dist/{WalletGenerateAndFundFlowDetail-VOXXSJRG.js.map → WalletGenerateAndFundFlowDetail-CME4JE3R.js.map} +0 -0
  310. /package/dist/{WalletGenerateFlowDetail-3SQVIUVH.js.map → WalletGenerateFlowDetail-3KTVG2V4.js.map} +0 -0
  311. /package/dist/{XeroContactCreateConfig-HXSGZD7Q.js.map → XeroContactCreateConfig-4VKYUIJQ.js.map} +0 -0
  312. /package/dist/{XeroContactCreateFlowDetail-ZUUILA5R.js.map → XeroContactCreateFlowDetail-JRJ5I4CD.js.map} +0 -0
  313. /package/dist/{XeroInvoiceCreateConfig-72KXJ73Z.js.map → XeroInvoiceCreateConfig-ULKQXCNS.js.map} +0 -0
  314. /package/dist/{XeroInvoiceCreateFlowDetail-ZMYUYNQM.js.map → XeroInvoiceCreateFlowDetail-DTOFRV4L.js.map} +0 -0
  315. /package/dist/{XeroInvoiceListConfig-DEZSXEVD.js.map → XeroInvoiceListConfig-PPXFYVVK.js.map} +0 -0
  316. /package/dist/{XeroInvoiceListFlowDetail-BTS5Q4UJ.js.map → XeroInvoiceListFlowDetail-RPE7NCMF.js.map} +0 -0
  317. /package/dist/{XeroPaymentCreateConfig-VXXJE4QT.js.map → XeroPaymentCreateConfig-EIYSLLZK.js.map} +0 -0
  318. /package/dist/{XeroPaymentCreateFlowDetail-PXSGHLE2.js.map → XeroPaymentCreateFlowDetail-MMLHUXLS.js.map} +0 -0
  319. /package/dist/{chunk-7LI5YJAE.js.map → chunk-2GIBQPNN.js.map} +0 -0
  320. /package/dist/{chunk-EIDAXWST.js.map → chunk-45KKBVIM.js.map} +0 -0
  321. /package/dist/{chunk-U57CCGM4.js.map → chunk-6S4TEGYI.js.map} +0 -0
  322. /package/dist/{chunk-NBDFKF6H.js.map → chunk-7UJMOJBH.js.map} +0 -0
  323. /package/dist/{chunk-5NJA7YNR.js.map → chunk-A34Z7KJC.js.map} +0 -0
  324. /package/dist/{chunk-IZRTWKW3.js.map → chunk-AW6YLUSS.js.map} +0 -0
  325. /package/dist/{chunk-TSXHPGXB.js.map → chunk-BH5JRBU4.js.map} +0 -0
  326. /package/dist/{chunk-AO5TGK5A.js.map → chunk-GMEYEPGZ.js.map} +0 -0
  327. /package/dist/{chunk-ICKOVZDM.js.map → chunk-IJUGKKMY.js.map} +0 -0
  328. /package/dist/{chunk-3JJJGENW.js.map → chunk-IY7QJKBL.js.map} +0 -0
  329. /package/dist/{chunk-DKQM4R2N.js.map → chunk-JD25JVOX.js.map} +0 -0
  330. /package/dist/{chunk-7TT4RM2M.js.map → chunk-L6ZHO7T4.js.map} +0 -0
  331. /package/dist/{chunk-6SWOXRMF.js.map → chunk-NDD5CJZB.js.map} +0 -0
  332. /package/dist/{chunk-WUWAC5S6.js.map → chunk-Q2FDVC3Z.js.map} +0 -0
  333. /package/dist/{chunk-Z7QWH42V.js.map → chunk-QUGMNWDO.js.map} +0 -0
  334. /package/dist/{chunk-OF3LB65M.js.map → chunk-RIHEX7HK.js.map} +0 -0
  335. /package/dist/{chunk-TMQA4RSG.js.map → chunk-SXCEELAR.js.map} +0 -0
  336. /package/dist/{chunk-WAM3FJJL.js.map → chunk-T3GM5CRM.js.map} +0 -0
  337. /package/dist/{chunk-GNXZSPZ5.js.map → chunk-WBTL6EX4.js.map} +0 -0
  338. /package/dist/{chunk-XLBKC3EL.js.map → chunk-WY4JOYIF.js.map} +0 -0
  339. /package/dist/{chunk-AOLCNPGV.js.map → chunk-YQ2KFBAT.js.map} +0 -0
  340. /package/dist/{chunk-OG56C7DD.js.map → chunk-YRWVRQXG.js.map} +0 -0
  341. /package/dist/{chunk-OV4KVTZI.js.map → chunk-Z46UWMKG.js.map} +0 -0
  342. /package/dist/{chunk-T4KY7UF7.js.map → chunk-ZAZDJGPW.js.map} +0 -0
  343. /package/dist/{chunk-5DOXIPDH.js.map → chunk-ZCKNE7BN.js.map} +0 -0
@@ -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,
@@ -1461,6 +1478,31 @@ var PRESENTATION = {
1461
1478
  "qi/governance.dao.manage-storage": { displayName: "Manage Storage Items", description: "Propose setting or removing an item in the DAO's on-chain storage" },
1462
1479
  "qi/governance.dao.manage-subdaos": { displayName: "Manage SubDAOs", description: "Propose recognising or removing SubDAOs of this DAO" },
1463
1480
  "qi/governance.dao.update-info": { displayName: "Update DAO Info", description: "Propose replacing the DAO's name, description and image" },
1481
+ "qi/governance.dao.upgrade": { displayName: "Upgrade DAO Contracts", description: "Migrate a DAO's governance contracts to the current DAO DAO generation" },
1482
+ "qi/governance.veto": { displayName: "Veto Proposal", description: "Cancel a passed proposal during its veto window as the POD's configured vetoer" },
1483
+ "qi/governance.proposal-module.add": {
1484
+ displayName: "Add Proposal Module",
1485
+ description: "Propose a new single- or multiple-choice proposal module, optionally gated by an approver"
1486
+ },
1487
+ "qi/governance.approver.setup": { displayName: "Become Approver", description: "Propose automating this POD's approval of a child POD's submissions" },
1488
+ "qi/governance.approval.review": { displayName: "Review Submission", description: "Approve or reject a submission waiting for you as approver" },
1489
+ "qi/governance.proposal.create-multiple": { displayName: "Multiple-Choice Proposal", description: "Submit a proposal where members pick one of several options" },
1490
+ "qi/governance.rewards.create": { displayName: "Create Reward Distribution", description: "Propose a native or cw20 reward stream split among members by voting power" },
1491
+ "qi/governance.rewards.fund": { displayName: "Fund Rewards", description: "Propose funding a reward distribution from the treasury" },
1492
+ "qi/governance.rewards.withdraw": { displayName: "Withdraw Rewards", description: "Propose clawing back undistributed reward funds" },
1493
+ "qi/governance.rewards.claim": { displayName: "Claim Rewards", description: "Claim your pending rewards from a distribution" },
1494
+ "qi/governance.delegation.setup": { displayName: "Enable Vote Delegation", description: "Propose adding a delegation module so members can delegate their voting power" },
1495
+ "qi/governance.delegation.register": { displayName: "Register as Delegate", description: "Become a delegate other members can delegate voting power to" },
1496
+ "qi/governance.delegation.unregister": { displayName: "Unregister as Delegate", description: "Stop being a delegate" },
1497
+ "qi/governance.delegation.delegate": { displayName: "Delegate Voting Power", description: "Delegate a share of your voting power to a registered delegate" },
1498
+ "qi/governance.delegation.undelegate": { displayName: "Withdraw Delegation", description: "Take back voting power you delegated" },
1499
+ "qi/governance.nft.active-threshold": { displayName: "Active Threshold", description: "Propose how much of the collection must be staked before the group accepts proposals" },
1500
+ "qi/governance.dao.pause": { displayName: "Pause Group", description: "Propose pausing the group so nothing executes for a set time" },
1501
+ "qi/governance.dao.unpause": { displayName: "Unpause Group", description: "End a group's pause early as its admin (DAO DAO v2.7.1+)" },
1502
+ "qi/governance.submission-policy": {
1503
+ displayName: "Update Who May Propose",
1504
+ description: "Propose changes to the allow and deny lists for proposal submission, without touching the deposit"
1505
+ },
1464
1506
  "qi/governance.member-proposal": { displayName: "Membership Proposal", description: "Propose adding/removing members or changing voting power" },
1465
1507
  "qi/governance.nft.burn": { displayName: "Burn NFT", description: "Propose permanently burning an NFT held by the treasury" },
1466
1508
  "qi/governance.nft.manage-collections": { displayName: "Manage NFT Collections", description: "Propose tracking or untracking an NFT collection in the treasury" },
@@ -1665,6 +1707,7 @@ function registerAction(definition) {
1665
1707
  definition.contractVersion = LEGACY_ACTION_CONTRACT_VERSION;
1666
1708
  }
1667
1709
  if (definition.can) definition.can = normalizeCan(definition.can);
1710
+ assertMutableOutputPaths(definition);
1668
1711
  Object.assign(definition, normalizeActionPolicy(definition));
1669
1712
  if (!definition.done) {
1670
1713
  warnOnce(`missing-done-contract:${definition.type}`, `[flow-config] action ${definition.type}: no done contract declared; defaulting to state === 'completed'`);
@@ -1673,6 +1716,22 @@ function registerAction(definition) {
1673
1716
  actions.set(definition.type, definition);
1674
1717
  registryRevision += 1;
1675
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
+ }
1676
1735
  function getAction(type) {
1677
1736
  return actions.get(resolveActionType(type));
1678
1737
  }
@@ -7508,6 +7567,67 @@ register(
7508
7567
  }
7509
7568
  );
7510
7569
 
7570
+ // src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
7571
+ var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
7572
+ var AUTO_VOTES = /* @__PURE__ */ new Set(["yes", "no", "abstain"]);
7573
+ function autoVoteFromInputs(inputs) {
7574
+ const raw = inputs?.voteOnSubmission;
7575
+ const vote = raw === true ? "yes" : String(raw ?? "").trim().toLowerCase();
7576
+ return AUTO_VOTES.has(vote) ? { vote } : null;
7577
+ }
7578
+ function isGroupExecution(inputs) {
7579
+ return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
7580
+ }
7581
+ function requireGroupExecutionParams(inputs) {
7582
+ const coreAddress = String(inputs.groupCoreAddress || "").trim();
7583
+ if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
7584
+ const title = String(inputs.proposalTitle || "").trim();
7585
+ if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
7586
+ const description = String(inputs.proposalDescription || "").trim();
7587
+ if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
7588
+ return { coreAddress, title, description };
7589
+ }
7590
+ async function proposeGroupExecution(ctx, params) {
7591
+ const handlers = ctx.handlers;
7592
+ if (!handlers?.createGroupExecutionProposal) {
7593
+ throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
7594
+ }
7595
+ const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent, autoVote } = params;
7596
+ const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
7597
+ coreAddress,
7598
+ title,
7599
+ description,
7600
+ msgs,
7601
+ ...autoVote ? { autoVote } : {}
7602
+ });
7603
+ if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
7604
+ throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
7605
+ }
7606
+ return {
7607
+ output: {
7608
+ ...expectedOutput,
7609
+ groupExecution: true,
7610
+ groupCoreAddress: coreAddress,
7611
+ groupProposalId: String(proposalId),
7612
+ groupProposalContractAddress: String(proposalContractAddress || ""),
7613
+ proposalTitle: title,
7614
+ proposalDescription: description
7615
+ },
7616
+ completion: {
7617
+ state: "awaiting_readback",
7618
+ readBack: {
7619
+ kind: GROUP_PROPOSAL_READBACK_KIND,
7620
+ proposalId: String(proposalId),
7621
+ proposalContractAddress: String(proposalContractAddress || ""),
7622
+ coreAddress,
7623
+ expectedOutput,
7624
+ ...completionEvent ? { completionEvent } : {},
7625
+ ...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
7626
+ }
7627
+ }
7628
+ };
7629
+ }
7630
+
7511
7631
  // src/core/lib/actionRegistry/actions/governance/_shared.ts
7512
7632
  var GOVERNANCE_REQUIRED_FIELDS = {
7513
7633
  "qi/governance.authz.exec": ["authzExecActionType"],
@@ -7535,6 +7655,15 @@ var GOVERNANCE_REQUIRED_FIELDS = {
7535
7655
  "qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
7536
7656
  "qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent"],
7537
7657
  "qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired"],
7658
+ "qi/governance.submission-policy": [],
7659
+ "qi/governance.dao.pause": ["pauseHours"],
7660
+ "qi/governance.nft.active-threshold": ["thresholdType"],
7661
+ "qi/governance.delegation.setup": [],
7662
+ "qi/governance.rewards.create": ["denom", "emissionMode"],
7663
+ "qi/governance.proposal-module.add": ["kind", "votingPeriodSeconds"],
7664
+ "qi/governance.approver.setup": ["approvalModule"],
7665
+ "qi/governance.rewards.fund": ["distributionId", "amount"],
7666
+ "qi/governance.rewards.withdraw": ["distributionId"],
7538
7667
  "qi/governance.transaction.mint": ["recipient", "amount"],
7539
7668
  "qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
7540
7669
  "qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
@@ -7566,8 +7695,40 @@ var GOVERNANCE_FIELDS = {
7566
7695
  "qi/governance.nft.transfer": ["collection", "tokenId", "recipient", "executeSmartContract", "smartContractMsg"],
7567
7696
  "qi/governance.staking.stake": ["stakeType", "validator", "toValidator", "amount"],
7568
7697
  "qi/governance.staking.stake-to-group": ["tokenContract", "stakingContract", "amount"],
7569
- "qi/governance.settings-proposal": ["votingPeriodHours", "quorumPercent", "thresholdPercent", "allowRevoting"],
7570
- "qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy"],
7698
+ "qi/governance.settings-proposal": [
7699
+ "votingPeriodHours",
7700
+ "quorumPercent",
7701
+ "thresholdPercent",
7702
+ "allowRevoting",
7703
+ "vetoEnabled",
7704
+ "vetoer",
7705
+ "vetoTimelockHours",
7706
+ "vetoEarlyExecute",
7707
+ "vetoBeforePassed"
7708
+ ],
7709
+ "qi/governance.submission-config-proposal": ["anyoneCanPropose", "depositRequired", "depositAmount", "depositRefundPolicy", "policyMode", "daoMembers", "allowlist", "denylist"],
7710
+ "qi/governance.submission-policy": ["allowlistAdd", "allowlistRemove", "denylistAdd", "denylistRemove", "setDaoMembers"],
7711
+ "qi/governance.dao.pause": ["pauseHours"],
7712
+ "qi/governance.nft.active-threshold": ["thresholdType", "thresholdValue"],
7713
+ "qi/governance.delegation.setup": ["vpCapPercent", "validityBlocks", "maxDelegations"],
7714
+ "qi/governance.rewards.create": ["denomType", "denom", "emissionMode", "amount", "periodSeconds", "continuous", "openFunding", "withdrawDestination"],
7715
+ "qi/governance.proposal-module.add": [
7716
+ "kind",
7717
+ "approvalRequired",
7718
+ "approver",
7719
+ "thresholdPercent",
7720
+ "quorumPercent",
7721
+ "votingPeriodSeconds",
7722
+ "allowRevoting",
7723
+ "anyoneCanPropose",
7724
+ "depositAmount",
7725
+ "depositDenom",
7726
+ "depositRefundPolicy",
7727
+ "label"
7728
+ ],
7729
+ "qi/governance.approver.setup": ["approvalModule", "votingPeriodSeconds", "thresholdPercent"],
7730
+ "qi/governance.rewards.fund": ["distributionId", "amount"],
7731
+ "qi/governance.rewards.withdraw": ["distributionId"],
7571
7732
  "qi/governance.transaction.mint": ["recipient", "amount"],
7572
7733
  "qi/governance.transaction.send-funds": ["recipient", "denom", "amount"],
7573
7734
  "qi/governance.transaction.perform-token-swap": ["tokenSwapContractAddress", "selfPartyType", "selfPartyDenomOrAddress", "selfPartyAmount"],
@@ -7575,8 +7736,39 @@ var GOVERNANCE_FIELDS = {
7575
7736
  "qi/governance.transaction.withdraw-token-swap": ["tokenSwapContractAddress"],
7576
7737
  "qi/governance.validator.actions": ["validatorActionType", "createMsg", "editMsg"]
7577
7738
  };
7578
- var BOOLEAN_FIELDS = /* @__PURE__ */ new Set(["adding", "automaticallyAddCw20s", "automaticallyAddCw721s", "executeSmartContract", "anyoneCanPropose", "depositRequired", "allowRevoting"]);
7579
- var NUMBER_FIELDS = /* @__PURE__ */ new Set(["codeId", "vote", "votingPeriodHours", "quorumPercent", "thresholdPercent"]);
7739
+ var BOOLEAN_FIELDS = /* @__PURE__ */ new Set([
7740
+ "adding",
7741
+ "automaticallyAddCw20s",
7742
+ "automaticallyAddCw721s",
7743
+ "executeSmartContract",
7744
+ "anyoneCanPropose",
7745
+ "depositRequired",
7746
+ "allowRevoting",
7747
+ "vetoEnabled",
7748
+ "vetoEarlyExecute",
7749
+ "vetoBeforePassed",
7750
+ "daoMembers",
7751
+ "setDaoMembers",
7752
+ "continuous",
7753
+ "openFunding",
7754
+ "approvalRequired"
7755
+ ]);
7756
+ var NUMBER_FIELDS = /* @__PURE__ */ new Set([
7757
+ "codeId",
7758
+ "vote",
7759
+ "votingPeriodHours",
7760
+ "quorumPercent",
7761
+ "thresholdPercent",
7762
+ "vetoTimelockHours",
7763
+ "pauseHours",
7764
+ "thresholdValue",
7765
+ "vpCapPercent",
7766
+ "validityBlocks",
7767
+ "maxDelegations",
7768
+ "periodSeconds",
7769
+ "distributionId",
7770
+ "votingPeriodSeconds"
7771
+ ]);
7580
7772
  var ARRAY_FIELDS = /* @__PURE__ */ new Set(["funds", "msgs", "toAdd", "toRemove", "members"]);
7581
7773
  var OBJECT_FIELDS = /* @__PURE__ */ new Set(["value"]);
7582
7774
  function governanceProperty(name) {
@@ -7590,7 +7782,12 @@ function governanceInputSchema(type, extraFields = {}, requiredOverride) {
7590
7782
  const properties = {
7591
7783
  coreAddress: { type: "string", description: "DAO core contract address." },
7592
7784
  title: { type: "string", description: "Proposal title voters see." },
7593
- description: { type: "string", description: "Long-form proposal description voters see." }
7785
+ description: { type: "string", description: "Long-form proposal description voters see." },
7786
+ voteOnSubmission: {
7787
+ type: "string",
7788
+ enum: ["", "yes", "no", "abstain"],
7789
+ description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
7790
+ }
7594
7791
  };
7595
7792
  for (const field of GOVERNANCE_FIELDS[type] || []) properties[field] = governanceProperty(field);
7596
7793
  Object.assign(properties, extraFields);
@@ -7638,13 +7835,15 @@ function registerGovernanceProposalAction(spec) {
7638
7835
  const { preProposalContractAddress } = await handlers.getPreProposalContractAddress({ coreAddress });
7639
7836
  const { groupContractAddress } = await handlers.getGroupContractAddress({ coreAddress });
7640
7837
  const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
7838
+ const autoVote = autoVoteFromInputs(inputs);
7641
7839
  const proposalId = await handlers.createProposal({
7642
7840
  preProposalContractAddress,
7643
7841
  title,
7644
7842
  description,
7645
7843
  actions: actions2,
7646
7844
  coreAddress,
7647
- groupContractAddress
7845
+ groupContractAddress,
7846
+ ...autoVote ? { autoVote } : {}
7648
7847
  });
7649
7848
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
7650
7849
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -7683,6 +7882,10 @@ function registerGovernanceProposalAction(spec) {
7683
7882
  }
7684
7883
  });
7685
7884
  }
7885
+ function parseAddressList(value) {
7886
+ const list = Array.isArray(value) ? value : typeof value === "string" ? value.split(/[\s,;]+/) : [];
7887
+ return [...new Set(list.map((v) => String(v ?? "").trim()).filter(Boolean))];
7888
+ }
7686
7889
 
7687
7890
  // src/core/utils/accountList.ts
7688
7891
  var IXO_HRP = "ixo";
@@ -7812,7 +8015,8 @@ registerAction({
7812
8015
  description,
7813
8016
  actions: [updateMembersAction],
7814
8017
  coreAddress,
7815
- groupContractAddress
8018
+ groupContractAddress,
8019
+ ...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
7816
8020
  });
7817
8021
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
7818
8022
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -7833,6 +8037,8 @@ registerAction({
7833
8037
  });
7834
8038
 
7835
8039
  // src/core/lib/actionRegistry/actions/governance/settingsProposal.ts
8040
+ var isTrue = (value) => value === true || value === "true";
8041
+ var isFalse = (value) => value === false || value === "false";
7836
8042
  function clampPercent(value, label, { allowZero = false } = {}) {
7837
8043
  const n = Number(value);
7838
8044
  if (!Number.isFinite(n)) throw new Error(`${label} must be a number`);
@@ -7856,7 +8062,13 @@ registerAction({
7856
8062
  { path: "status", displayName: "Proposal Status", type: "string", description: "Current proposal status (open, passed, rejected, executed, etc.)" },
7857
8063
  { path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module contract address" },
7858
8064
  { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
7859
- { path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" }
8065
+ { path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of proposal creation" },
8066
+ {
8067
+ path: "vetoConfigured",
8068
+ displayName: "Veto Configured",
8069
+ type: "string",
8070
+ description: "'true' when the proposal sets a veto, 'false' when it clears one, 'unchanged' otherwise"
8071
+ }
7860
8072
  ],
7861
8073
  // Mirrors run()'s throw-preamble (there is no inputSchema to declare
7862
8074
  // requiredness on): coreAddress and the three numeric voting settings.
@@ -7899,6 +8111,15 @@ registerAction({
7899
8111
  proposalDurationUnits: "hours",
7900
8112
  allowRevoting
7901
8113
  };
8114
+ if (isTrue(inputs.vetoEnabled)) {
8115
+ const vetoer = String(inputs.vetoer || "").trim();
8116
+ if (!vetoer) throw new Error("vetoer is required when the veto is enabled");
8117
+ const timelockHours = Number(inputs.vetoTimelockHours);
8118
+ if (!Number.isFinite(timelockHours) || timelockHours <= 0) throw new Error("vetoTimelockHours must be a positive number");
8119
+ Object.assign(data, { veto: { vetoer, timelockHours, earlyExecute: isTrue(inputs.vetoEarlyExecute), vetoBeforePassed: isTrue(inputs.vetoBeforePassed) } });
8120
+ } else if (isFalse(inputs.vetoEnabled)) {
8121
+ Object.assign(data, { veto: null });
8122
+ }
7902
8123
  const updateVotingConfigAction = { type: "UpdateVotingConfig", data };
7903
8124
  const title = String(inputs.title || "").trim() || "Update governance settings";
7904
8125
  const description = String(inputs.description || "").trim() || "Updates the POD's voting rules once the proposal passes.";
@@ -7911,7 +8132,8 @@ registerAction({
7911
8132
  description,
7912
8133
  actions: [updateVotingConfigAction],
7913
8134
  coreAddress,
7914
- groupContractAddress
8135
+ groupContractAddress,
8136
+ ...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
7915
8137
  });
7916
8138
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
7917
8139
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -7924,7 +8146,8 @@ registerAction({
7924
8146
  status: "open",
7925
8147
  proposalContractAddress: proposalContractAddress || "",
7926
8148
  coreAddress,
7927
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
8149
+ createdAt: (/* @__PURE__ */ new Date()).toISOString(),
8150
+ vetoConfigured: isTrue(inputs.vetoEnabled) ? "true" : isFalse(inputs.vetoEnabled) ? "false" : "unchanged"
7928
8151
  }
7929
8152
  };
7930
8153
  }
@@ -7951,6 +8174,14 @@ registerGovernanceProposalAction({
7951
8174
  }
7952
8175
  refundPolicy = policy;
7953
8176
  }
8177
+ const policyMode = String(inputs.policyMode || "").trim();
8178
+ if (policyMode && policyMode !== "anyone" && policyMode !== "specific") throw new Error("policyMode must be 'anyone' or 'specific'");
8179
+ const submissionPolicy = policyMode ? {
8180
+ mode: policyMode,
8181
+ daoMembers: inputs.daoMembers === void 0 ? true : inputs.daoMembers === true || inputs.daoMembers === "true",
8182
+ allowlist: parseAddressList(inputs.allowlist),
8183
+ denylist: parseAddressList(inputs.denylist)
8184
+ } : void 0;
7954
8185
  return [
7955
8186
  {
7956
8187
  type: "UpdatePreProposeConfig",
@@ -7958,7 +8189,8 @@ registerGovernanceProposalAction({
7958
8189
  depositRequired,
7959
8190
  // Deposit token fixed to the chain's native IXO (uixo) for now.
7960
8191
  depositInfo: { amount, type: "native", denomOrAddress: "uixo", refundPolicy },
7961
- anyoneCanPropose
8192
+ anyoneCanPropose: submissionPolicy ? submissionPolicy.mode === "anyone" : anyoneCanPropose,
8193
+ ...submissionPolicy ? { submissionPolicy } : {}
7962
8194
  }
7963
8195
  }
7964
8196
  ];
@@ -7982,6 +8214,37 @@ registerGovernanceProposalAction({
7982
8214
  ]
7983
8215
  });
7984
8216
 
8217
+ // src/core/lib/actionRegistry/actions/governance/submissionPolicy.ts
8218
+ registerGovernanceProposalAction({
8219
+ type: "qi/governance.submission-policy",
8220
+ can: "governance/submission-policy",
8221
+ buildActions: (inputs) => {
8222
+ const allowlistAdd = parseAddressList(inputs.allowlistAdd);
8223
+ const allowlistRemove = parseAddressList(inputs.allowlistRemove);
8224
+ const denylistAdd = parseAddressList(inputs.denylistAdd);
8225
+ const denylistRemove = parseAddressList(inputs.denylistRemove);
8226
+ const setDaoMembers = inputs.setDaoMembers === true || inputs.setDaoMembers === "true" ? true : inputs.setDaoMembers === false || inputs.setDaoMembers === "false" ? false : null;
8227
+ if (!allowlistAdd.length && !allowlistRemove.length && !denylistAdd.length && !denylistRemove.length && setDaoMembers === null) {
8228
+ throw new Error("Nothing to change \u2014 add or remove at least one address, or set whether members may propose");
8229
+ }
8230
+ return [{ type: "UpdateSubmissionPolicy", data: { allowlistAdd, allowlistRemove, denylistAdd, denylistRemove, setDaoMembers } }];
8231
+ },
8232
+ defaultTitle: () => "Update who may submit proposals",
8233
+ defaultDescription: () => "Changes the allow and deny lists for proposal submission once the proposal passes; the proposal deposit is untouched.",
8234
+ buildExtraOutput: (inputs) => ({
8235
+ allowlistAdd: parseAddressList(inputs.allowlistAdd).join(","),
8236
+ allowlistRemove: parseAddressList(inputs.allowlistRemove).join(","),
8237
+ denylistAdd: parseAddressList(inputs.denylistAdd).join(","),
8238
+ denylistRemove: parseAddressList(inputs.denylistRemove).join(",")
8239
+ }),
8240
+ extraOutputSchema: [
8241
+ { path: "allowlistAdd", displayName: "Allowlist Added", type: "string", description: "Addresses gaining the right to propose" },
8242
+ { path: "allowlistRemove", displayName: "Allowlist Removed", type: "string", description: "Addresses losing the right to propose" },
8243
+ { path: "denylistAdd", displayName: "Denylist Added", type: "string", description: "Addresses blocked from proposing" },
8244
+ { path: "denylistRemove", displayName: "Denylist Removed", type: "string", description: "Addresses unblocked" }
8245
+ ]
8246
+ });
8247
+
7985
8248
  // src/core/lib/actionRegistry/actions/governance/transactionSendFunds.ts
7986
8249
  registerAction({
7987
8250
  type: "qi/governance.transaction.send-funds",
@@ -8049,7 +8312,8 @@ registerAction({
8049
8312
  description,
8050
8313
  actions: [spendAction],
8051
8314
  coreAddress,
8052
- groupContractAddress
8315
+ groupContractAddress,
8316
+ ...autoVoteFromInputs(inputs) ? { autoVote: autoVoteFromInputs(inputs) } : {}
8053
8317
  });
8054
8318
  if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
8055
8319
  throw new Error("Proposal creation returned no proposal id. Check the handler logs.");
@@ -8606,6 +8870,664 @@ registerGovernanceProposalAction({
8606
8870
  extraOutputSchema: [{ path: "typeUrl", displayName: "Message Type URL", type: "string", description: "The stargate message type the proposal broadcasts" }]
8607
8871
  });
8608
8872
 
8873
+ // src/core/lib/actionRegistry/actions/governance/daoUpgrade.ts
8874
+ var isTrue2 = (value) => value === true || value === "true";
8875
+ var OUTPUT_SCHEMA = [
8876
+ { path: "status", displayName: "Upgrade Status", type: "string", description: "'up-to-date', 'core-migrated', 'proposal-open', 'proposal-executed' or 'partial'" },
8877
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
8878
+ { path: "targetVersion", displayName: "Target Version", type: "string", description: "The DAO DAO generation upgraded to" },
8879
+ { path: "coreMigrated", displayName: "Core Migrated", type: "string", description: "'true' when this run migrated the core contract" },
8880
+ { path: "coreTransactionHash", displayName: "Core Migration Tx", type: "string", description: "Transaction hash of the direct core migration, when one was signed" },
8881
+ { path: "proposalId", displayName: "Proposal ID", type: "string", description: "The on-chain proposal migrating the governance modules, when one was created" },
8882
+ { path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the upgrade proposal lives on" },
8883
+ { path: "proposalTitle", displayName: "Proposal Title", type: "string", description: "The proposal name voters see on-chain" },
8884
+ { path: "proposalDescription", displayName: "Proposal Description", type: "string", description: "The long-form description voters see on-chain" },
8885
+ { path: "migratedModules", displayName: "Migrated Modules", type: "string", description: "Comma-separated list of the modules the proposal migrates" },
8886
+ { path: "skippedModules", displayName: "Skipped Modules", type: "string", description: "Comma-separated list of modules left as they are, with the reason" },
8887
+ { path: "createdAt", displayName: "Created At", type: "string", description: "ISO timestamp of this run" }
8888
+ ];
8889
+ function summarizePlan(plan) {
8890
+ const migrated = (plan.messages.proposalStep?.items || []).filter((item) => item.kind !== "remove-hook").map((item) => `${item.contract} ${item.fromVersion}\u2192${item.toVersion}${item.kind === "swap" ? " (replaced)" : ""}`).join(", ");
8891
+ const skipped = plan.messages.skipped.map((entry) => `${entry.contract} (${entry.reason})`).join(", ");
8892
+ return { migrated, skipped };
8893
+ }
8894
+ registerAction({
8895
+ type: "qi/governance.dao.upgrade",
8896
+ can: "governance.dao/upgrade",
8897
+ sideEffect: true,
8898
+ executionOwner: "human",
8899
+ proof: { fields: ["status"] },
8900
+ done: doneWhenCompleted,
8901
+ defaultRequiresConfirmation: true,
8902
+ requiredCapability: "flow/block/execute",
8903
+ inputSchema: {
8904
+ type: "object",
8905
+ required: ["coreAddress"],
8906
+ additionalProperties: false,
8907
+ properties: {
8908
+ coreAddress: { type: "string", description: "DAO core contract address." },
8909
+ migrateVotingModule: { type: "boolean", description: "Also migrate the voting module (cw4 migrations bundle the required RemoveHook)." },
8910
+ skipCoreMigration: { type: "boolean", description: "Leave the core contract at its current version and only propose the module migrations." },
8911
+ title: { type: "string", description: "Proposal title voters see." },
8912
+ description: { type: "string", description: "Long-form proposal description voters see." }
8913
+ }
8914
+ },
8915
+ outputSchema: OUTPUT_SCHEMA,
8916
+ run: async (inputs, ctx) => {
8917
+ const handlers = ctx.handlers;
8918
+ if (!handlers) throw new Error("Handlers not available");
8919
+ if (!handlers.getDaoUpgradePlan || !handlers.executeTransaction || !handlers.createProposal) {
8920
+ throw new Error("DAO upgrade handlers not available on this host");
8921
+ }
8922
+ const coreAddress = String(inputs.coreAddress || "").trim();
8923
+ if (!coreAddress) throw new Error("coreAddress is required");
8924
+ const migrateVotingModule = isTrue2(inputs.migrateVotingModule);
8925
+ const plan = await handlers.getDaoUpgradePlan({ coreAddress, migrateVotingModule });
8926
+ const createdAt = (/* @__PURE__ */ new Date()).toISOString();
8927
+ const { migrated, skipped } = summarizePlan(plan);
8928
+ const blocking = plan.issues.filter((issue) => issue.severity === "blocking");
8929
+ if (blocking.length) throw new Error(blocking.map((issue) => issue.message).join(" "));
8930
+ const base = {
8931
+ coreAddress,
8932
+ targetVersion: plan.targetVersion,
8933
+ coreMigrated: "false",
8934
+ coreTransactionHash: "",
8935
+ proposalId: "",
8936
+ proposalContractAddress: "",
8937
+ proposalTitle: "",
8938
+ proposalDescription: "",
8939
+ migratedModules: migrated,
8940
+ skippedModules: skipped,
8941
+ createdAt
8942
+ };
8943
+ if (plan.isUpToDate) {
8944
+ return { output: { ...base, status: "up-to-date" } };
8945
+ }
8946
+ let coreTransactionHash = "";
8947
+ const coreStep = plan.messages.coreStep;
8948
+ if (coreStep && plan.canSignCore && !isTrue2(inputs.skipCoreMigration)) {
8949
+ const result = await handlers.executeTransaction({
8950
+ messages: [coreStep.message],
8951
+ memo: `Migrate DAO core ${coreAddress} to DAO DAO v${plan.targetVersion}`
8952
+ });
8953
+ coreTransactionHash = String(result?.transactionHash || "");
8954
+ if (!coreTransactionHash) throw new Error("The core migration returned no transaction hash \u2014 check the wallet and try again.");
8955
+ }
8956
+ const proposalStep = plan.messages.proposalStep;
8957
+ if (!proposalStep) {
8958
+ if (!coreTransactionHash) {
8959
+ throw new Error(plan.issues.map((issue) => issue.message).join(" ") || "Nothing in this upgrade can be executed by the connected wallet.");
8960
+ }
8961
+ return { output: { ...base, status: "core-migrated", coreMigrated: "true", coreTransactionHash } };
8962
+ }
8963
+ const title = String(inputs.title || "").trim() || proposalStep.title;
8964
+ const description = String(inputs.description || "").trim() || proposalStep.description;
8965
+ const proposalId = await handlers.createProposal({
8966
+ preProposalContractAddress: plan.preProposalContractAddress,
8967
+ title,
8968
+ description,
8969
+ actions: proposalStep.actions,
8970
+ coreAddress,
8971
+ groupContractAddress: plan.groupContractAddress
8972
+ });
8973
+ if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
8974
+ throw new Error("Upgrade proposal creation returned no proposal id. Check the handler logs.");
8975
+ }
8976
+ const proposalContractAddress = String(plan.version.proposal?.address || "");
8977
+ const expectedOutput = {
8978
+ ...base,
8979
+ status: "proposal-executed",
8980
+ coreMigrated: coreTransactionHash ? "true" : "false",
8981
+ coreTransactionHash,
8982
+ proposalId: String(proposalId),
8983
+ proposalContractAddress,
8984
+ proposalTitle: title,
8985
+ proposalDescription: description
8986
+ };
8987
+ return {
8988
+ output: { ...expectedOutput, status: "proposal-open" },
8989
+ completion: {
8990
+ state: "awaiting_readback",
8991
+ readBack: {
8992
+ kind: GROUP_PROPOSAL_READBACK_KIND,
8993
+ proposalId: String(proposalId),
8994
+ proposalContractAddress,
8995
+ coreAddress,
8996
+ expectedOutput
8997
+ }
8998
+ },
8999
+ topicRecords: ctx.topic ? [
9000
+ {
9001
+ type: "org.ixo.topic.proposal-receipt",
9002
+ id: sha256Digest({ topicId: ctx.topic.topicId, proposalContractAddress, proposalId }),
9003
+ version: 1,
9004
+ value: {
9005
+ event: "created",
9006
+ actionType: "qi/governance.dao.upgrade",
9007
+ proposalId: String(proposalId),
9008
+ proposalContractAddress,
9009
+ coreAddress,
9010
+ proposalTitle: title,
9011
+ proposalDescriptionDigest: sha256Digest(description),
9012
+ createdAt
9013
+ }
9014
+ }
9015
+ ] : void 0
9016
+ };
9017
+ }
9018
+ });
9019
+
9020
+ // src/core/lib/actionRegistry/actions/governance/veto.ts
9021
+ registerAction({
9022
+ type: "qi/governance.veto",
9023
+ can: "governance/veto",
9024
+ sideEffect: true,
9025
+ executionOwner: "human",
9026
+ proof: { fields: ["transactionHash"] },
9027
+ done: doneWhenCompleted,
9028
+ defaultRequiresConfirmation: true,
9029
+ requiredCapability: "flow/block/execute",
9030
+ inputSchema: {
9031
+ type: "object",
9032
+ required: ["coreAddress", "proposalId"],
9033
+ additionalProperties: false,
9034
+ properties: {
9035
+ coreAddress: { type: "string", description: "DAO core contract address." },
9036
+ proposalId: { type: ["string", "number"], description: "The proposal to veto." }
9037
+ }
9038
+ },
9039
+ outputSchema: [
9040
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the veto transaction" },
9041
+ { path: "proposalId", displayName: "Proposal ID", type: "string", description: "The vetoed proposal" },
9042
+ { path: "proposalContractAddress", displayName: "Proposal Contract Address", type: "string", description: "The proposal module the veto was sent to" },
9043
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
9044
+ { path: "status", displayName: "Proposal Status", type: "string", description: "'vetoed' once the veto transaction landed" },
9045
+ { path: "vetoedAt", displayName: "Vetoed At", type: "string", description: "ISO timestamp of the veto" }
9046
+ ],
9047
+ run: async (inputs, ctx) => {
9048
+ const handlers = ctx.handlers;
9049
+ if (!handlers) throw new Error("Handlers not available");
9050
+ if (!handlers.getProposalContractAddress || !handlers.vetoProposal) throw new Error("Veto handlers not available on this host");
9051
+ const coreAddress = String(inputs.coreAddress || "").trim();
9052
+ if (!coreAddress) throw new Error("coreAddress is required");
9053
+ const proposalId = Number(inputs.proposalId);
9054
+ if (!Number.isInteger(proposalId) || proposalId <= 0) throw new Error("proposalId must be a positive whole number");
9055
+ const { proposalContractAddress } = await handlers.getProposalContractAddress({ coreAddress });
9056
+ if (!proposalContractAddress) throw new Error(`No proposal module found for ${coreAddress}`);
9057
+ const { transactionHash } = await handlers.vetoProposal({ proposalContractAddress, proposalId });
9058
+ if (!transactionHash) throw new Error("The veto returned no transaction hash. Check the handler logs.");
9059
+ return {
9060
+ output: {
9061
+ transactionHash,
9062
+ proposalId: String(proposalId),
9063
+ proposalContractAddress,
9064
+ coreAddress,
9065
+ status: "vetoed",
9066
+ vetoedAt: (/* @__PURE__ */ new Date()).toISOString()
9067
+ }
9068
+ };
9069
+ }
9070
+ });
9071
+
9072
+ // src/core/lib/actionRegistry/actions/governance/daoPause.ts
9073
+ registerGovernanceProposalAction({
9074
+ type: "qi/governance.dao.pause",
9075
+ can: "governance/dao-pause",
9076
+ buildActions: (inputs) => {
9077
+ const coreAddress = String(inputs.coreAddress || "").trim();
9078
+ if (!coreAddress) throw new Error("coreAddress is required");
9079
+ const hours = Number(inputs.pauseHours);
9080
+ if (!Number.isFinite(hours) || hours <= 0) throw new Error("pauseHours must be a positive number of hours");
9081
+ const seconds = Math.round(hours * 3600);
9082
+ return [{ type: "Execute", data: { address: coreAddress, message: JSON.stringify({ pause: { duration: { time: seconds } } }), funds: [] } }];
9083
+ },
9084
+ defaultTitle: (inputs) => `Pause the group for ${Number(inputs.pauseHours) || "?"} hours`,
9085
+ defaultDescription: () => "Once this proposal passes the group executes nothing until the pause ends; proposing and voting continue.",
9086
+ buildExtraOutput: (inputs) => ({ pauseSeconds: String(Math.round((Number(inputs.pauseHours) || 0) * 3600)) }),
9087
+ extraOutputSchema: [{ path: "pauseSeconds", displayName: "Pause Seconds", type: "string", description: "The pause duration submitted, in seconds" }]
9088
+ });
9089
+
9090
+ // src/core/lib/actionRegistry/actions/governance/daoUnpause.ts
9091
+ registerAction({
9092
+ type: "qi/governance.dao.unpause",
9093
+ can: "governance/dao-unpause",
9094
+ sideEffect: true,
9095
+ executionOwner: "human",
9096
+ proof: { fields: ["transactionHash"] },
9097
+ done: doneWhenCompleted,
9098
+ defaultRequiresConfirmation: true,
9099
+ requiredCapability: "flow/block/execute",
9100
+ inputSchema: {
9101
+ type: "object",
9102
+ required: ["coreAddress"],
9103
+ additionalProperties: false,
9104
+ properties: {
9105
+ coreAddress: { type: "string", description: "DAO core contract address." }
9106
+ }
9107
+ },
9108
+ outputSchema: [
9109
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the unpause transaction" },
9110
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
9111
+ { path: "unpausedAt", displayName: "Unpaused At", type: "string", description: "ISO timestamp of the unpause" }
9112
+ ],
9113
+ run: async (inputs, ctx) => {
9114
+ const handlers = ctx.handlers;
9115
+ if (!handlers) throw new Error("Handlers not available");
9116
+ if (!handlers.unpauseDao) throw new Error("Unpause handler not available on this host");
9117
+ const coreAddress = String(inputs.coreAddress || "").trim();
9118
+ if (!coreAddress) throw new Error("coreAddress is required");
9119
+ const { transactionHash } = await handlers.unpauseDao({ coreAddress });
9120
+ if (!transactionHash) throw new Error("The unpause returned no transaction hash. Check the handler logs.");
9121
+ return { output: { transactionHash, coreAddress, unpausedAt: (/* @__PURE__ */ new Date()).toISOString() } };
9122
+ }
9123
+ });
9124
+
9125
+ // src/core/lib/actionRegistry/actions/governance/nftActiveThreshold.ts
9126
+ registerGovernanceProposalAction({
9127
+ type: "qi/governance.nft.active-threshold",
9128
+ can: "governance/nft-active-threshold",
9129
+ buildActions: (inputs) => {
9130
+ const thresholdType = String(inputs.thresholdType || "none").trim();
9131
+ if (!["none", "count", "percent"].includes(thresholdType)) throw new Error("thresholdType must be 'none', 'count' or 'percent'");
9132
+ const value = Number(inputs.thresholdValue);
9133
+ if (thresholdType === "count" && (!Number.isInteger(value) || value <= 0)) throw new Error("thresholdValue must be a whole number greater than 0 for a count threshold");
9134
+ if (thresholdType === "percent" && (!Number.isFinite(value) || value <= 0 || value > 100))
9135
+ throw new Error("thresholdValue must be between 0 and 100 for a percentage threshold");
9136
+ return [{ type: "UpdateActiveThreshold", data: thresholdType === "none" ? { thresholdType } : { thresholdType, thresholdValue: value } }];
9137
+ },
9138
+ defaultTitle: (inputs) => String(inputs.thresholdType || "none") === "none" ? "Remove the active threshold" : `Set the active threshold to ${inputs.thresholdValue}${String(inputs.thresholdType) === "percent" ? "%" : " staked"}`,
9139
+ defaultDescription: () => "Changes how much of the collection must be staked before this group accepts new proposals.",
9140
+ buildExtraOutput: (inputs) => ({ thresholdType: String(inputs.thresholdType || "none"), thresholdValue: String(inputs.thresholdValue ?? "") }),
9141
+ extraOutputSchema: [
9142
+ { path: "thresholdType", displayName: "Threshold Type", type: "string", description: "none, count or percent" },
9143
+ { path: "thresholdValue", displayName: "Threshold Value", type: "string", description: "The submitted count or percentage" }
9144
+ ]
9145
+ });
9146
+
9147
+ // src/core/lib/actionRegistry/actions/governance/delegationSetup.ts
9148
+ registerGovernanceProposalAction({
9149
+ type: "qi/governance.delegation.setup",
9150
+ can: "governance/delegation-setup",
9151
+ buildActions: (inputs) => {
9152
+ const optional = (value, label, max) => {
9153
+ if (value === void 0 || value === null || value === "") return null;
9154
+ const n = Number(value);
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}` : ""}`);
9157
+ return n;
9158
+ };
9159
+ const vpCapPercent = optional(inputs.vpCapPercent, "vpCapPercent", 100);
9160
+ const validityBlocks = optional(inputs.validityBlocks, "validityBlocks");
9161
+ const maxDelegations = optional(inputs.maxDelegations, "maxDelegations");
9162
+ return [{ type: "DelegationSetup", data: { vpCapPercent, validityBlocks, maxDelegations } }];
9163
+ },
9164
+ defaultTitle: () => "Enable vote delegation",
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.",
9166
+ buildExtraOutput: (inputs) => ({
9167
+ vpCapPercent: String(inputs.vpCapPercent ?? ""),
9168
+ validityBlocks: String(inputs.validityBlocks ?? ""),
9169
+ maxDelegations: String(inputs.maxDelegations ?? "")
9170
+ }),
9171
+ extraOutputSchema: [
9172
+ { path: "vpCapPercent", displayName: "Voting Power Cap %", type: "string", description: "The submitted cap, blank for none" },
9173
+ { path: "validityBlocks", displayName: "Validity Blocks", type: "string", description: "The submitted delegation validity, blank for never expiring" },
9174
+ { path: "maxDelegations", displayName: "Max Delegations", type: "string", description: "The submitted per-member delegation limit" }
9175
+ ]
9176
+ });
9177
+
9178
+ // src/core/lib/actionRegistry/actions/governance/delegation.ts
9179
+ var KINDS = [
9180
+ { type: "qi/governance.delegation.register", can: "governance/delegation-register", action: "register", needsDelegate: false, needsPercent: false },
9181
+ { type: "qi/governance.delegation.unregister", can: "governance/delegation-unregister", action: "unregister", needsDelegate: false, needsPercent: false },
9182
+ { type: "qi/governance.delegation.delegate", can: "governance/delegation-delegate", action: "delegate", needsDelegate: true, needsPercent: true },
9183
+ { type: "qi/governance.delegation.undelegate", can: "governance/delegation-undelegate", action: "undelegate", needsDelegate: true, needsPercent: false }
9184
+ ];
9185
+ for (const kind of KINDS) {
9186
+ registerAction({
9187
+ type: kind.type,
9188
+ can: kind.can,
9189
+ sideEffect: true,
9190
+ executionOwner: "human",
9191
+ proof: { fields: ["transactionHash"] },
9192
+ done: doneWhenCompleted,
9193
+ defaultRequiresConfirmation: true,
9194
+ requiredCapability: "flow/block/execute",
9195
+ inputSchema: {
9196
+ type: "object",
9197
+ required: ["coreAddress", ...kind.needsDelegate ? ["delegate"] : [], ...kind.needsPercent ? ["percent"] : []],
9198
+ additionalProperties: false,
9199
+ properties: {
9200
+ coreAddress: { type: "string", description: "DAO core contract address." },
9201
+ ...kind.needsDelegate ? { delegate: { type: "string", description: "The delegate's address or DID." } } : {},
9202
+ ...kind.needsPercent ? { percent: { type: ["number", "string"], description: "Share of your voting power to delegate, 0\u2013100." } } : {}
9203
+ }
9204
+ },
9205
+ outputSchema: [
9206
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the delegation transaction" },
9207
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
9208
+ { path: "delegationModuleAddress", displayName: "Delegation Module", type: "string", description: "The dao_vote_delegation contract" },
9209
+ { path: "action", displayName: "Action", type: "string", description: "register | unregister | delegate | undelegate" },
9210
+ { path: "delegate", displayName: "Delegate", type: "string", description: "The delegate involved, when any" },
9211
+ { path: "percent", displayName: "Percent", type: "string", description: "The delegated share, when any" }
9212
+ ],
9213
+ run: async (inputs, ctx) => {
9214
+ const handlers = ctx.handlers;
9215
+ if (!handlers) throw new Error("Handlers not available");
9216
+ if (!handlers.delegationExecute) throw new Error("Delegation handlers not available on this host");
9217
+ const coreAddress = String(inputs.coreAddress || "").trim();
9218
+ if (!coreAddress) throw new Error("coreAddress is required");
9219
+ const delegate = String(inputs.delegate || "").trim();
9220
+ if (kind.needsDelegate && !delegate) throw new Error("delegate is required");
9221
+ const percent = kind.needsPercent ? Number(inputs.percent) : void 0;
9222
+ if (kind.needsPercent && (!Number.isFinite(percent) || percent <= 0 || percent > 100)) throw new Error("percent must be between 0 and 100");
9223
+ const { transactionHash, delegationModuleAddress } = await handlers.delegationExecute({
9224
+ coreAddress,
9225
+ action: kind.action,
9226
+ ...kind.needsDelegate ? { delegate } : {},
9227
+ ...kind.needsPercent ? { percent } : {}
9228
+ });
9229
+ if (!transactionHash) throw new Error("The delegation transaction returned no hash. Check the handler logs.");
9230
+ return {
9231
+ output: {
9232
+ transactionHash,
9233
+ coreAddress,
9234
+ delegationModuleAddress,
9235
+ action: kind.action,
9236
+ ...kind.needsDelegate ? { delegate } : {},
9237
+ ...kind.needsPercent ? { percent: String(percent) } : {}
9238
+ }
9239
+ };
9240
+ }
9241
+ });
9242
+ }
9243
+
9244
+ // src/core/lib/actionRegistry/actions/governance/rewards.ts
9245
+ registerGovernanceProposalAction({
9246
+ type: "qi/governance.rewards.create",
9247
+ can: "governance/rewards-create",
9248
+ buildActions: (inputs) => {
9249
+ const denomType = String(inputs.denomType || "native");
9250
+ if (denomType !== "native" && denomType !== "cw20") throw new Error("denomType must be 'native' or 'cw20'");
9251
+ const denom = String(inputs.denom || "").trim();
9252
+ if (!denom) throw new Error("denom is required");
9253
+ const emissionMode = String(inputs.emissionMode || "linear");
9254
+ if (!["linear", "immediate", "paused"].includes(emissionMode)) throw new Error("emissionMode must be 'linear', 'immediate' or 'paused'");
9255
+ const amount = inputs.amount === void 0 || inputs.amount === null || inputs.amount === "" ? null : String(inputs.amount);
9256
+ const periodSeconds = inputs.periodSeconds === void 0 || inputs.periodSeconds === null || inputs.periodSeconds === "" ? null : Number(inputs.periodSeconds);
9257
+ if (emissionMode === "linear") {
9258
+ if (!amount || !/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0 for a linear emission");
9259
+ if (!Number.isInteger(periodSeconds) || periodSeconds <= 0) throw new Error("periodSeconds must be a whole number greater than 0 for a linear emission");
9260
+ }
9261
+ const bool2 = (v) => v === void 0 || v === null || v === "" ? null : v === true || v === "true";
9262
+ return [
9263
+ {
9264
+ type: "RewardsCreate",
9265
+ data: {
9266
+ denomType,
9267
+ denom,
9268
+ emissionMode,
9269
+ amount,
9270
+ periodSeconds,
9271
+ continuous: bool2(inputs.continuous),
9272
+ openFunding: bool2(inputs.openFunding),
9273
+ withdrawDestination: inputs.withdrawDestination ? String(inputs.withdrawDestination) : null
9274
+ }
9275
+ }
9276
+ ];
9277
+ },
9278
+ defaultTitle: (inputs) => `Create a ${String(inputs.denom || "")} reward distribution`,
9279
+ defaultDescription: () => "Members share the rewards in proportion to their voting power.",
9280
+ buildExtraOutput: (inputs) => ({ denom: String(inputs.denom || ""), emissionMode: String(inputs.emissionMode || "linear") }),
9281
+ extraOutputSchema: [
9282
+ { path: "denom", displayName: "Denom", type: "string", description: "The reward denom" },
9283
+ { path: "emissionMode", displayName: "Emission", type: "string", description: "linear | immediate | paused" }
9284
+ ]
9285
+ });
9286
+ var requireId = (value) => {
9287
+ const id = Number(value);
9288
+ if (!Number.isInteger(id) || id < 0) throw new Error("distributionId must be a whole number");
9289
+ return id;
9290
+ };
9291
+ registerGovernanceProposalAction({
9292
+ type: "qi/governance.rewards.fund",
9293
+ can: "governance/rewards-fund",
9294
+ buildActions: (inputs) => {
9295
+ const id = requireId(inputs.distributionId);
9296
+ const amount = String(inputs.amount ?? "").trim();
9297
+ if (!/^[0-9]+$/.test(amount) || amount === "0") throw new Error("amount must be a whole base-unit amount greater than 0");
9298
+ return [{ type: "RewardsFund", data: { id, amount } }];
9299
+ },
9300
+ defaultTitle: (inputs) => `Fund reward distribution #${String(inputs.distributionId ?? "")}`,
9301
+ defaultDescription: () => "Moves funds from the treasury into the reward distribution.",
9302
+ buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? ""), amount: String(inputs.amount ?? "") }),
9303
+ extraOutputSchema: [
9304
+ { path: "distributionId", displayName: "Distribution", type: "string", description: "The funded distribution id" },
9305
+ { path: "amount", displayName: "Amount", type: "string", description: "Base units funded" }
9306
+ ]
9307
+ });
9308
+ registerGovernanceProposalAction({
9309
+ type: "qi/governance.rewards.withdraw",
9310
+ can: "governance/rewards-withdraw",
9311
+ buildActions: (inputs) => [{ type: "RewardsWithdraw", data: { id: requireId(inputs.distributionId) } }],
9312
+ defaultTitle: (inputs) => `Withdraw undistributed rewards from #${String(inputs.distributionId ?? "")}`,
9313
+ defaultDescription: () => "Returns funds that were not yet distributed to the withdraw destination.",
9314
+ buildExtraOutput: (inputs) => ({ distributionId: String(inputs.distributionId ?? "") }),
9315
+ extraOutputSchema: [{ path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution withdrawn from" }]
9316
+ });
9317
+ registerAction({
9318
+ type: "qi/governance.rewards.claim",
9319
+ can: "governance/rewards-claim",
9320
+ sideEffect: true,
9321
+ executionOwner: "human",
9322
+ proof: { fields: ["transactionHash"] },
9323
+ done: doneWhenCompleted,
9324
+ defaultRequiresConfirmation: true,
9325
+ requiredCapability: "flow/block/execute",
9326
+ inputSchema: {
9327
+ type: "object",
9328
+ required: ["coreAddress", "distributionId"],
9329
+ additionalProperties: false,
9330
+ properties: {
9331
+ coreAddress: { type: "string", description: "DAO core contract address." },
9332
+ distributionId: { type: ["number", "string"], description: "The distribution to claim from." }
9333
+ }
9334
+ },
9335
+ outputSchema: [
9336
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the claim transaction" },
9337
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
9338
+ { path: "distributorAddress", displayName: "Distributor", type: "string", description: "The dao_rewards_distributor contract" },
9339
+ { path: "distributionId", displayName: "Distribution", type: "string", description: "The distribution claimed from" }
9340
+ ],
9341
+ run: async (inputs, ctx) => {
9342
+ const handlers = ctx.handlers;
9343
+ if (!handlers) throw new Error("Handlers not available");
9344
+ if (!handlers.rewardsClaim) throw new Error("Rewards handlers not available on this host");
9345
+ const coreAddress = String(inputs.coreAddress || "").trim();
9346
+ if (!coreAddress) throw new Error("coreAddress is required");
9347
+ const id = requireId(inputs.distributionId);
9348
+ const { transactionHash, distributorAddress } = await handlers.rewardsClaim({ coreAddress, id });
9349
+ if (!transactionHash) throw new Error("The claim returned no transaction hash. Check the handler logs.");
9350
+ return { output: { transactionHash, coreAddress, distributorAddress, distributionId: String(id) } };
9351
+ }
9352
+ });
9353
+
9354
+ // src/core/lib/actionRegistry/actions/governance/approval.ts
9355
+ var optionalNumber = (value, label, max) => {
9356
+ if (value === void 0 || value === null || value === "") return null;
9357
+ const n = Number(value);
9358
+ if (!Number.isFinite(n) || n <= 0 || max !== void 0 && n > max) throw new Error(`${label} must be a number greater than 0${max !== void 0 ? ` and at most ${max}` : ""}`);
9359
+ return n;
9360
+ };
9361
+ var bool = (v) => v === void 0 || v === null || v === "" ? void 0 : v === true || v === "true";
9362
+ registerGovernanceProposalAction({
9363
+ type: "qi/governance.proposal-module.add",
9364
+ can: "governance/proposal-module-add",
9365
+ buildActions: (inputs) => {
9366
+ const kind = String(inputs.kind || "single");
9367
+ if (kind !== "single" && kind !== "multiple") throw new Error("kind must be 'single' or 'multiple'");
9368
+ const votingPeriodSeconds = Number(inputs.votingPeriodSeconds);
9369
+ if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
9370
+ const approvalRequired = bool(inputs.approvalRequired) === true;
9371
+ const approver = String(inputs.approver || "").trim();
9372
+ if (approvalRequired && !approver) throw new Error("approver is required when approvalRequired is on");
9373
+ const refund = String(inputs.depositRefundPolicy || "always");
9374
+ if (!["always", "only_passed", "never"].includes(refund)) throw new Error("depositRefundPolicy must be 'always', 'only_passed' or 'never'");
9375
+ return [
9376
+ {
9377
+ type: "AddProposalModule",
9378
+ data: {
9379
+ kind,
9380
+ approvalRequired,
9381
+ approver: approvalRequired ? approver : null,
9382
+ thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100),
9383
+ quorumPercent: optionalNumber(inputs.quorumPercent, "quorumPercent", 100),
9384
+ votingPeriodSeconds,
9385
+ allowRevoting: bool(inputs.allowRevoting) !== false,
9386
+ anyoneCanPropose: bool(inputs.anyoneCanPropose) === true,
9387
+ depositAmount: inputs.depositAmount ? String(inputs.depositAmount) : null,
9388
+ depositDenom: inputs.depositDenom ? String(inputs.depositDenom) : null,
9389
+ depositRefundPolicy: refund,
9390
+ label: inputs.label ? String(inputs.label) : void 0
9391
+ }
9392
+ }
9393
+ ];
9394
+ },
9395
+ defaultTitle: (inputs) => `Add a ${String(inputs.kind || "single") === "multiple" ? "multiple-choice" : "single-choice"} proposal module${bool(inputs.approvalRequired) ? " with approval" : ""}`,
9396
+ defaultDescription: () => "Proposals submitted to the new module follow its own voting rules.",
9397
+ buildExtraOutput: (inputs) => ({ kind: String(inputs.kind || "single"), approvalRequired: String(bool(inputs.approvalRequired) === true) }),
9398
+ extraOutputSchema: [
9399
+ { path: "kind", displayName: "Kind", type: "string", description: "single | multiple" },
9400
+ { path: "approvalRequired", displayName: "Approval Required", type: "string", description: "'true' when submissions wait for an approver" }
9401
+ ]
9402
+ });
9403
+ registerGovernanceProposalAction({
9404
+ type: "qi/governance.approver.setup",
9405
+ can: "governance/approver-setup",
9406
+ buildActions: (inputs) => {
9407
+ const approvalModule = String(inputs.approvalModule || "").trim();
9408
+ if (!approvalModule) throw new Error("approvalModule (the child POD's approval module address) is required");
9409
+ const votingPeriodSeconds = inputs.votingPeriodSeconds ? Number(inputs.votingPeriodSeconds) : 604800;
9410
+ if (!Number.isInteger(votingPeriodSeconds) || votingPeriodSeconds <= 0) throw new Error("votingPeriodSeconds must be a whole number greater than 0");
9411
+ return [{ type: "ApproverSetup", data: { approvalModule, votingPeriodSeconds, thresholdPercent: optionalNumber(inputs.thresholdPercent, "thresholdPercent", 100) } }];
9412
+ },
9413
+ defaultTitle: (inputs) => `Become the approver for ${String(inputs.approvalModule || "")}`,
9414
+ defaultDescription: () => "Each submission on the child POD's approval module becomes an approve/reject proposal here.",
9415
+ buildExtraOutput: (inputs) => ({ approvalModule: String(inputs.approvalModule || "") }),
9416
+ extraOutputSchema: [{ path: "approvalModule", displayName: "Approval Module", type: "string", description: "The child POD's approval module" }]
9417
+ });
9418
+ registerAction({
9419
+ type: "qi/governance.approval.review",
9420
+ can: "governance/approval-review",
9421
+ sideEffect: true,
9422
+ executionOwner: "human",
9423
+ proof: { fields: ["transactionHash"] },
9424
+ done: doneWhenCompleted,
9425
+ defaultRequiresConfirmation: true,
9426
+ requiredCapability: "flow/block/execute",
9427
+ inputSchema: {
9428
+ type: "object",
9429
+ required: ["coreAddress", "approvalModule", "approvalId", "decision"],
9430
+ additionalProperties: false,
9431
+ properties: {
9432
+ coreAddress: { type: "string", description: "DAO core contract address." },
9433
+ approvalModule: { type: "string", description: "The approval pre-propose module holding the submission." },
9434
+ approvalId: { type: ["number", "string"], description: "The submission id." },
9435
+ decision: { type: "string", enum: ["approve", "reject"], description: "approve | reject" }
9436
+ }
9437
+ },
9438
+ outputSchema: [
9439
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the review transaction" },
9440
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
9441
+ { path: "approvalModule", displayName: "Approval Module", type: "string", description: "The approval module" },
9442
+ { path: "approvalId", displayName: "Submission", type: "string", description: "The reviewed submission id" },
9443
+ { path: "decision", displayName: "Decision", type: "string", description: "approve | reject" }
9444
+ ],
9445
+ run: async (inputs, ctx) => {
9446
+ const handlers = ctx.handlers;
9447
+ if (!handlers) throw new Error("Handlers not available");
9448
+ if (!handlers.reviewSubmission) throw new Error("Approval handlers not available on this host");
9449
+ const coreAddress = String(inputs.coreAddress || "").trim();
9450
+ if (!coreAddress) throw new Error("coreAddress is required");
9451
+ const approvalModule = String(inputs.approvalModule || "").trim();
9452
+ if (!approvalModule) throw new Error("approvalModule is required");
9453
+ const approvalId = Number(inputs.approvalId);
9454
+ if (!Number.isInteger(approvalId) || approvalId < 0) throw new Error("approvalId must be a whole number");
9455
+ const decision = String(inputs.decision);
9456
+ if (decision !== "approve" && decision !== "reject") throw new Error("decision must be 'approve' or 'reject'");
9457
+ const { transactionHash } = await handlers.reviewSubmission({ approvalModule, approvalId, decision });
9458
+ if (!transactionHash) throw new Error("The review returned no transaction hash. Check the handler logs.");
9459
+ return { output: { transactionHash, coreAddress, approvalModule, approvalId: String(approvalId), decision } };
9460
+ }
9461
+ });
9462
+ function parseOptions(value) {
9463
+ if (Array.isArray(value))
9464
+ return value.map(
9465
+ (o) => typeof o === "string" ? { title: o } : { title: String(o?.title ?? ""), description: o?.description ? String(o.description) : void 0 }
9466
+ );
9467
+ const text = String(value ?? "").trim();
9468
+ if (!text) return [];
9469
+ if (text.startsWith("[")) {
9470
+ try {
9471
+ return parseOptions(JSON.parse(text));
9472
+ } catch {
9473
+ throw new Error("options must be a JSON array of { title, description } or one option per line");
9474
+ }
9475
+ }
9476
+ return text.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((line) => {
9477
+ const [title, ...rest] = line.split(/\s+[-–—]\s+|:\s+/);
9478
+ return { title: title.trim(), description: rest.length ? rest.join(" ").trim() : void 0 };
9479
+ });
9480
+ }
9481
+ registerAction({
9482
+ type: "qi/governance.proposal.create-multiple",
9483
+ can: "governance/proposal-create-multiple",
9484
+ sideEffect: true,
9485
+ executionOwner: "human",
9486
+ proof: { fields: ["transactionHash"] },
9487
+ done: doneWhenCompleted,
9488
+ defaultRequiresConfirmation: true,
9489
+ requiredCapability: "flow/block/execute",
9490
+ inputSchema: {
9491
+ type: "object",
9492
+ required: ["coreAddress", "title", "options"],
9493
+ additionalProperties: false,
9494
+ properties: {
9495
+ coreAddress: { type: "string", description: "DAO core contract address." },
9496
+ proposalModule: { type: "string", description: "The multiple-choice proposal module; blank = the first one on the POD." },
9497
+ title: { type: "string", description: "Proposal title." },
9498
+ description: { type: "string", description: "Proposal description." },
9499
+ options: { type: ["array", "string"], description: 'JSON array of { title, description }, or one option per line ("Title - description").' }
9500
+ }
9501
+ },
9502
+ outputSchema: [
9503
+ { path: "transactionHash", displayName: "Transaction Hash", type: "string", description: "Hash of the propose transaction" },
9504
+ { path: "coreAddress", displayName: "Core Address", type: "string", description: "The DAO core contract address" },
9505
+ { path: "proposalModule", displayName: "Proposal Module", type: "string", description: "The multiple-choice module the proposal went to" },
9506
+ { path: "optionCount", displayName: "Options", type: "string", description: "Number of options submitted" }
9507
+ ],
9508
+ run: async (inputs, ctx) => {
9509
+ const handlers = ctx.handlers;
9510
+ if (!handlers) throw new Error("Handlers not available");
9511
+ if (!handlers.createMultipleChoiceProposal) throw new Error("Multiple-choice proposal handler not available on this host");
9512
+ const coreAddress = String(inputs.coreAddress || "").trim();
9513
+ if (!coreAddress) throw new Error("coreAddress is required");
9514
+ const title = String(inputs.title || "").trim();
9515
+ if (!title) throw new Error("title is required");
9516
+ const options = parseOptions(inputs.options).filter((o) => o.title);
9517
+ if (options.length < 2) throw new Error("At least two options are required");
9518
+ if (options.length > 10) throw new Error("At most 10 options are allowed");
9519
+ const { transactionHash, proposalModule } = await handlers.createMultipleChoiceProposal({
9520
+ coreAddress,
9521
+ proposalModule: inputs.proposalModule ? String(inputs.proposalModule) : void 0,
9522
+ title,
9523
+ description: String(inputs.description || ""),
9524
+ options
9525
+ });
9526
+ if (!transactionHash) throw new Error("The proposal returned no transaction hash. Check the handler logs.");
9527
+ return { output: { transactionHash, coreAddress, proposalModule, optionCount: String(options.length) } };
9528
+ }
9529
+ });
9530
+
8609
9531
  // src/core/lib/actionRegistry/actions/governance/nftBurn.ts
8610
9532
  registerGovernanceProposalAction({
8611
9533
  type: "qi/governance.nft.burn",
@@ -8951,7 +9873,7 @@ var INPUT_PROPERTIES = {
8951
9873
  headers: { type: "object", additionalProperties: { type: "string" }, description: "Non-secret request headers. Authorization and cookies are rejected." },
8952
9874
  body: { description: "Request body for a mutating HTTP request." }
8953
9875
  };
8954
- var OUTPUT_SCHEMA = [
9876
+ var OUTPUT_SCHEMA2 = [
8955
9877
  { path: "requestId", displayName: "Request ID", type: "string", description: "Host invocation identifier." },
8956
9878
  { path: "status", displayName: "HTTP Status", type: "number" },
8957
9879
  { path: "responseDigest", displayName: "Response Digest", type: "string", description: "Digest of the response body." },
@@ -9006,7 +9928,7 @@ registerAction({
9006
9928
  properties: { ...INPUT_PROPERTIES, method: { type: "string", enum: ["GET", "HEAD"], default: "GET" } }
9007
9929
  },
9008
9930
  getMissingInputs: missingEndpoint,
9009
- outputSchema: OUTPUT_SCHEMA,
9931
+ outputSchema: OUTPUT_SCHEMA2,
9010
9932
  run: async (rawInputs, ctx) => {
9011
9933
  const inputs = normalizeHttpInputs(rawInputs);
9012
9934
  const url = publicHttpUrl(inputs.endpoint ?? inputs.url);
@@ -9077,7 +9999,7 @@ registerAction({
9077
9999
  }
9078
10000
  },
9079
10001
  getMissingInputs: missingEndpoint,
9080
- outputSchema: OUTPUT_SCHEMA,
10002
+ outputSchema: OUTPUT_SCHEMA2,
9081
10003
  run: async (rawInputs, ctx) => {
9082
10004
  const inputs = normalizeHttpInputs(rawInputs);
9083
10005
  const service = ctx.services.http;
@@ -9505,60 +10427,6 @@ registerAction({
9505
10427
  }
9506
10428
  });
9507
10429
 
9508
- // src/core/lib/actionRegistry/actions/_shared/groupExecution.ts
9509
- var GROUP_PROPOSAL_READBACK_KIND = "group-proposal";
9510
- function isGroupExecution(inputs) {
9511
- return inputs?.actAsGroup === true || inputs?.actAsGroup === "true";
9512
- }
9513
- function requireGroupExecutionParams(inputs) {
9514
- const coreAddress = String(inputs.groupCoreAddress || "").trim();
9515
- if (!coreAddress) throw new Error("groupCoreAddress is required when acting as a POD");
9516
- const title = String(inputs.proposalTitle || "").trim();
9517
- if (!title) throw new Error("proposalTitle is required when acting as a POD \u2014 voters must see what they are approving");
9518
- const description = String(inputs.proposalDescription || "").trim();
9519
- if (!description) throw new Error("proposalDescription is required when acting as a POD \u2014 voters must see what they are approving");
9520
- return { coreAddress, title, description };
9521
- }
9522
- async function proposeGroupExecution(ctx, params) {
9523
- const handlers = ctx.handlers;
9524
- if (!handlers?.createGroupExecutionProposal) {
9525
- throw new Error("Group execution is not available: the host does not implement createGroupExecutionProposal");
9526
- }
9527
- const { coreAddress, title, description, msgs, expectedOutput, finalize, finalizeParams, completionEvent } = params;
9528
- const { proposalId, proposalContractAddress } = await handlers.createGroupExecutionProposal({
9529
- coreAddress,
9530
- title,
9531
- description,
9532
- msgs
9533
- });
9534
- if (proposalId === void 0 || proposalId === null || String(proposalId).trim() === "") {
9535
- throw new Error("POD proposal creation returned no proposal id. Check the handler logs.");
9536
- }
9537
- return {
9538
- output: {
9539
- ...expectedOutput,
9540
- groupExecution: true,
9541
- groupCoreAddress: coreAddress,
9542
- groupProposalId: String(proposalId),
9543
- groupProposalContractAddress: String(proposalContractAddress || ""),
9544
- proposalTitle: title,
9545
- proposalDescription: description
9546
- },
9547
- completion: {
9548
- state: "awaiting_readback",
9549
- readBack: {
9550
- kind: GROUP_PROPOSAL_READBACK_KIND,
9551
- proposalId: String(proposalId),
9552
- proposalContractAddress: String(proposalContractAddress || ""),
9553
- coreAddress,
9554
- expectedOutput,
9555
- ...completionEvent ? { completionEvent } : {},
9556
- ...finalize ? { finalize, finalizeParams: finalizeParams || {} } : {}
9557
- }
9558
- }
9559
- };
9560
- }
9561
-
9562
10430
  // src/core/lib/actionRegistry/actions/bid/bid.ts
9563
10431
  function normalizeBidRole(role) {
9564
10432
  const normalized = String(role || "").trim().toLowerCase();
@@ -9616,6 +10484,7 @@ registerAction({
9616
10484
  if (isGroupExecution(inputs)) {
9617
10485
  const { coreAddress, title, description } = requireGroupExecutionParams(inputs);
9618
10486
  return proposeGroupExecution(ctx, {
10487
+ autoVote: autoVoteFromInputs(inputs),
9619
10488
  coreAddress,
9620
10489
  title,
9621
10490
  description,
@@ -9780,6 +10649,7 @@ registerAction({
9780
10649
  maxAmounts: Array.isArray(maxAmounts) ? maxAmounts : void 0
9781
10650
  });
9782
10651
  return proposeGroupExecution(ctx, {
10652
+ autoVote: autoVoteFromInputs(inputs),
9783
10653
  coreAddress,
9784
10654
  title,
9785
10655
  description,
@@ -9792,6 +10662,7 @@ registerAction({
9792
10662
  const reason = String(inputs.reason || "").trim();
9793
10663
  if (!reason) throw new Error("reason is required when decision is reject");
9794
10664
  return proposeGroupExecution(ctx, {
10665
+ autoVote: autoVoteFromInputs(inputs),
9795
10666
  coreAddress,
9796
10667
  title,
9797
10668
  description,
@@ -10000,6 +10871,7 @@ registerAction({
10000
10871
  const claimId2 = String(prepared?.claimId || "").trim();
10001
10872
  if (!claimId2) throw new Error("prepareGroupClaimSubmission returned no claim identifier");
10002
10873
  return proposeGroupExecution(ctx, {
10874
+ autoVote: autoVoteFromInputs(inputs),
10003
10875
  coreAddress,
10004
10876
  title,
10005
10877
  description,
@@ -10465,6 +11337,9 @@ registerAction({
10465
11337
  // the full vocabulary (e.g. returning [] to hide the static baseline).
10466
11338
  dynamicResolutionMode: "replace",
10467
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"],
10468
11343
  done: evaluateClaimDone,
10469
11344
  // Repeatable: an evaluator processes many claims over the flow's life. Done
10470
11345
  // is a snapshot ("no pending claims as of the last check") that reopens when
@@ -10674,6 +11549,7 @@ registerAction({
10674
11549
  } catch {
10675
11550
  }
10676
11551
  return proposeGroupExecution(ctx, {
11552
+ autoVote: autoVoteFromInputs(inputs),
10677
11553
  coreAddress,
10678
11554
  title,
10679
11555
  description,
@@ -10841,6 +11717,9 @@ registerAction({
10841
11717
  can: "proposal/create",
10842
11718
  sideEffect: true,
10843
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"],
10844
11723
  done: doneWhenCompleted,
10845
11724
  defaultRequiresConfirmation: true,
10846
11725
  requiredCapability: "flow/block/execute",
@@ -10851,7 +11730,12 @@ registerAction({
10851
11730
  coreAddress: { type: "string", description: "The DAO core contract address." },
10852
11731
  title: { type: "string", description: "The proposal title." },
10853
11732
  description: { type: "string", description: "The proposal description." },
10854
- actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." }
11733
+ actions: { type: "array", description: "Optional proposal actions (array or JSON string array)." },
11734
+ voteOnSubmission: {
11735
+ type: "string",
11736
+ enum: ["", "yes", "no", "abstain"],
11737
+ description: "Cast the proposer's own vote in the same transaction (DAO DAO v2.5+ PODs; ignored on older ones)."
11738
+ }
10855
11739
  }
10856
11740
  },
10857
11741
  outputSchema: [
@@ -10896,13 +11780,15 @@ registerAction({
10896
11780
  const { proposalContractAddress } = await handlers.getProposalContractAddress({
10897
11781
  coreAddress
10898
11782
  });
11783
+ const autoVote = autoVoteFromInputs(inputs);
10899
11784
  const params = {
10900
11785
  preProposalContractAddress,
10901
11786
  title,
10902
11787
  description,
10903
11788
  actions: actions2.length > 0 ? actions2 : void 0,
10904
11789
  coreAddress,
10905
- groupContractAddress
11790
+ groupContractAddress,
11791
+ ...autoVote ? { autoVote } : {}
10906
11792
  };
10907
11793
  const proposalId = await handlers.createProposal(params);
10908
11794
  return {
@@ -11292,7 +12178,8 @@ function buildGroupConfig(groupType, governance, memberConfig) {
11292
12178
  ...baseConfig,
11293
12179
  ...decisionPolicy,
11294
12180
  nftContractAddress: memberConfig?.nftContractAddress || "",
11295
- ...unstakingDuration ? { unstakingDurationAmount: unstakingDuration.amount, unstakingDurationUnit: unstakingDuration.unit } : {}
12181
+ ...unstakingDuration ? { unstakingDurationAmount: unstakingDuration.amount, unstakingDurationUnit: unstakingDuration.unit } : {},
12182
+ ...memberConfig?.activeThresholdType && memberConfig.activeThresholdType !== "none" ? { activeThresholdType: memberConfig.activeThresholdType, activeThresholdValue: memberConfig.activeThresholdValue } : {}
11296
12183
  };
11297
12184
  }
11298
12185
  if (groupType === "tokenStaking") {
@@ -12464,6 +13351,63 @@ async function sendDirectMessage(matrixClient, targetDid, message) {
12464
13351
  return { roomId };
12465
13352
  }
12466
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
+
12467
13411
  // src/core/lib/actionRegistry/actions/matrixDm.ts
12468
13412
  registerAction({
12469
13413
  type: "qi/matrix.dm",
@@ -12485,14 +13429,14 @@ registerAction({
12485
13429
  { path: "sentAt", displayName: "Sent At", type: "string", description: "Timestamp when the message was sent" }
12486
13430
  ],
12487
13431
  run: async (inputs, ctx) => {
12488
- const matrixClient = ctx.editor?.getMatrixClient?.();
12489
- if (!matrixClient) {
12490
- throw new Error("Matrix client not available");
12491
- }
12492
13432
  const targetDid = String(inputs.targetDid || "").trim();
12493
13433
  const message = String(inputs.message || "").trim();
12494
13434
  if (!targetDid) throw new Error("Recipient DID is required");
12495
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
+ }
12496
13440
  const result = await sendDirectMessage(matrixClient, targetDid, message);
12497
13441
  return {
12498
13442
  output: {
@@ -13856,6 +14800,7 @@ registerAction({
13856
14800
  params: createParams
13857
14801
  });
13858
14802
  return proposeGroupExecution(ctx, {
14803
+ autoVote: autoVoteFromInputs(inputs),
13859
14804
  coreAddress,
13860
14805
  title,
13861
14806
  description,
@@ -13924,6 +14869,7 @@ registerAction({
13924
14869
  params: { ...inputs, collectionId, adminAddress }
13925
14870
  });
13926
14871
  return proposeGroupExecution(ctx, {
14872
+ autoVote: autoVoteFromInputs(inputs),
13927
14873
  coreAddress,
13928
14874
  title,
13929
14875
  description,
@@ -14415,6 +15361,7 @@ registerAction({
14415
15361
  msgs.push(...prepared.msgs || []);
14416
15362
  }
14417
15363
  return proposeGroupExecution(ctx, {
15364
+ autoVote: autoVoteFromInputs(inputs),
14418
15365
  coreAddress,
14419
15366
  title,
14420
15367
  description,
@@ -16708,6 +17655,7 @@ registerAction({
16708
17655
 
16709
17656
  // src/core/lib/actionRegistry/actions/decisionRequest/index.ts
16710
17657
  var DECISION_REQUEST_ACTION_TYPE = "qi/decision.request";
17658
+ var DECISION_DECIDING_STATUS = "deciding";
16711
17659
  var DECISION_REQUEST_ERROR_CODES = {
16712
17660
  paymentRequired: "payment_required",
16713
17661
  pending: "decision_pending",
@@ -16726,7 +17674,12 @@ var DECISION_REQUEST_OUTPUT_SCHEMA = [
16726
17674
  { path: "claimId", displayName: "Claim ID", type: "string", description: "The oracle's id for the submitted claim." },
16727
17675
  { path: "verdict", displayName: "Verdict", type: "string", description: "approve, partial, reject or review." },
16728
17676
  { path: "receiptCid", displayName: "Receipt CID", type: "string", description: "CID of the oracle's signed decision receipt, when one was minted." },
16729
- { path: "status", displayName: "Decision status", type: "string", description: "decided, pending_review, unusable or invalid_facts." },
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
+ },
16730
17683
  { path: "oracleDid", displayName: "Oracle DID", type: "string", description: "The oracle that decided the claim." },
16731
17684
  { path: "protocolDid", displayName: "Protocol DID", type: "string", description: "The protocol the claim was submitted under." },
16732
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." },
@@ -16776,8 +17729,27 @@ function decisionAttemptOf(ctx) {
16776
17729
  const value = ctx.runtime ? ctx.runtime.get(ctx.nodeId)?.[ATTEMPT_FIELD] : void 0;
16777
17730
  return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : 0;
16778
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
+ }
16779
17751
  var decisionRequestDone = {
16780
- 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,
16781
17753
  reopenable: true,
16782
17754
  standingDoneRequiresFold: true
16783
17755
  };
@@ -16812,25 +17784,27 @@ registerAction({
16812
17784
  const oracleDid = String(inputs.oracleDid || "").trim();
16813
17785
  const apiUrl = String(inputs.apiUrl || "").trim();
16814
17786
  const protocolDid = String(inputs.protocolDid || "").trim();
16815
- if (!oracleDid || !apiUrl) throw new Error("No oracle selected. Pick the evaluation oracle that should decide this claim.");
16816
- if (!protocolDid) throw new Error("No protocol selected. Pick the protocol this claim is submitted under.");
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.");
16817
17789
  const formMode = inputs.answersMode === "form" || !!ctx.pendingInvocation;
16818
17790
  const answers = formMode ? formAnswersOf(inputs, ctx) : parseDecisionAnswers(inputs.answers);
16819
17791
  const service = ctx.services.decisions;
16820
- if (!service) throw new Error("decisions service not configured (ctx.services.decisions is undefined)");
17792
+ if (!service) throw notSent("decisions service not configured (ctx.services.decisions is undefined)");
16821
17793
  console.log(`${LOG2} step 1/2 ensureSource`, { oracleDid });
16822
- const { sourceId } = await service.ensureSource({ oracleDid, apiUrl, protocolDid });
16823
- if (!sourceId) throw new Error("[step 1/2 source] the oracle returned no source id");
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");
16824
17796
  const attempt = decisionAttemptOf(ctx);
16825
17797
  console.log(`${LOG2} step 2/2 submitClaim`, { oracleDid, protocolDid, attempt });
16826
- const result = await service.submitClaim({
16827
- oracleDid,
16828
- apiUrl,
16829
- sourceId,
16830
- protocolDid,
16831
- answers,
16832
- idempotencyKey: decisionIdempotencyKey(ctx, { oracleDid, protocolDid, answers }, attempt)
16833
- });
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
+ );
16834
17808
  switch (result.status) {
16835
17809
  case "decided":
16836
17810
  return {
@@ -16846,22 +17820,33 @@ registerAction({
16846
17820
  }
16847
17821
  };
16848
17822
  case "pending":
16849
- throw new Error(
16850
- `[${DECISION_REQUEST_ERROR_CODES.pending}] The oracle is still deciding claim ${result.claimId}. Run this step again to keep waiting.${result.payment ? ` paid=${result.payment.amount}` : ""}`
16851
- );
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
+ };
16852
17839
  case "payment_required":
16853
- throw new Error(`[${DECISION_REQUEST_ERROR_CODES.paymentRequired}] ${result.message}`);
17840
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentRequired}] ${result.message}`);
16854
17841
  case "payment_approval_required":
16855
- throw new Error(`[${DECISION_REQUEST_ERROR_CODES.paymentApprovalRequired}] This oracle charges for its decisions. amount=${result.amount} fundingUrl=${result.fundingUrl}`);
17842
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentApprovalRequired}] This oracle charges for its decisions. amount=${result.amount} fundingUrl=${result.fundingUrl}`);
16856
17843
  case "payment_refused":
16857
- throw new Error(
16858
- `[${DECISION_REQUEST_ERROR_CODES.paymentRefused}] The payment was refused. reason=${result.reason} amount=${result.amount} fundingUrl=${result.fundingUrl}`
16859
- );
17844
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentRefused}] The payment was refused. reason=${result.reason} amount=${result.amount} fundingUrl=${result.fundingUrl}`);
16860
17845
  case "payments_unavailable":
16861
- throw new Error(`[${DECISION_REQUEST_ERROR_CODES.paymentsUnavailable}] Decisions can't be paid for on this network yet.`);
17846
+ throw notSent(`[${DECISION_REQUEST_ERROR_CODES.paymentsUnavailable}] Decisions can't be paid for on this network yet.`);
16862
17847
  case "failed":
16863
17848
  ctx.runtime?.update(ctx.nodeId, { [ATTEMPT_FIELD]: attempt + 1 });
16864
- throw new Error(`The oracle could not decide claim ${result.claimId}: ${result.message}`);
17849
+ throw notSent(`The oracle could not decide claim ${result.claimId}: ${result.message}`);
16865
17850
  default:
16866
17851
  throw new Error(result.message || "The decision request failed");
16867
17852
  }
@@ -21024,7 +22009,7 @@ function runRecordTrust(record4, sourceBlockId, invocationsMap, receipts) {
21024
22009
  const invocation = invocationsMap.get(record4.invocationCid);
21025
22010
  if (!invocation || typeof invocation !== "object" || invocation.result !== "success") return "untrusted";
21026
22011
  if (!receipts) return "untrusted";
21027
- const status = receipts.check(invocation, { blockId: sourceBlockId });
22012
+ const status = receipts.check(invocation, { blockId: sourceBlockId, output: record4.output, events: record4.events });
21028
22013
  return status.status === "verified" ? "verified" : status.status === "pending" ? "pending" : "untrusted";
21029
22014
  }
21030
22015
  function processRunRecord(yDoc, runId, sourceBlockId, record4, listenersBySource, getNodeOutput2, isConsumed, now) {
@@ -21355,6 +22340,23 @@ function digestInputResponse(content) {
21355
22340
  const { authorization: _authorization, ...rest } = content;
21356
22341
  return digestRequestValue(rest);
21357
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
+ }
21358
22360
  function randomRequestId() {
21359
22361
  const bytes = new Uint8Array(16);
21360
22362
  globalThis.crypto.getRandomValues(bytes);
@@ -21366,6 +22368,7 @@ async function createFlowRequest(ucanService, params) {
21366
22368
  if (params.kind === "schedule.arm" && (!params.scheduleId || params.scheduleRevision === void 0)) {
21367
22369
  throw new Error("A schedule arm request needs the schedule and its current revision.");
21368
22370
  }
22371
+ if (params.topicRequest && params.kind !== "run.start") throw new Error("Only a session start can be made for a Topic request.");
21369
22372
  const requestId = params.requestId ?? randomRequestId();
21370
22373
  const capability = capabilityForRequest(params.kind, params.docId, params.stepId);
21371
22374
  const facts = {
@@ -21382,7 +22385,8 @@ async function createFlowRequest(ucanService, params) {
21382
22385
  ...params.answerDigest ? { answerDigest: params.answerDigest } : {},
21383
22386
  ...params.requestEventId ? { requestEventId: params.requestEventId } : {},
21384
22387
  ...params.scheduleId ? { scheduleId: params.scheduleId } : {},
21385
- ...params.scheduleRevision !== void 0 ? { scheduleRevision: params.scheduleRevision } : {}
22388
+ ...params.scheduleRevision !== void 0 ? { scheduleRevision: params.scheduleRevision } : {},
22389
+ ...topicRequestFacts(params.topicRequest)
21386
22390
  };
21387
22391
  const result = await ucanService.createAndValidateInvocation(
21388
22392
  {
@@ -21423,7 +22427,7 @@ function readFlowRequest(yDoc, requestId) {
21423
22427
  return found;
21424
22428
  }
21425
22429
  function lifecycleRequestProof(options) {
21426
- return async ({ runId, defHash }) => options.ucanService.createRequestInvocation({
22430
+ return async ({ runId, defHash, topicRequest }) => options.ucanService.createRequestInvocation({
21427
22431
  kind: options.kind,
21428
22432
  requesterDid: options.requesterDid,
21429
22433
  flowManagerDid: options.flowManagerDid,
@@ -21431,6 +22435,7 @@ function lifecycleRequestProof(options) {
21431
22435
  docId: options.docId,
21432
22436
  runId,
21433
22437
  defHash,
22438
+ ...topicRequest && options.kind === "run.start" ? { topicRequest } : {},
21434
22439
  pin: await options.getPin()
21435
22440
  });
21436
22441
  }
@@ -21490,6 +22495,21 @@ var FlowNotMigratedError = class extends Error {
21490
22495
  this.name = "FlowNotMigratedError";
21491
22496
  }
21492
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
+ }
21493
22513
  var RunNotMigratedError = class extends Error {
21494
22514
  constructor(runId) {
21495
22515
  super(`Run "${runId}" has no frozen manifest, so it is not a session.`);
@@ -21644,6 +22664,12 @@ async function startRun(params) {
21644
22664
  if (usesLegacyRuntimeCompatibility(params.yDoc)) {
21645
22665
  throw new FlowNotMigratedError(params.flowUri);
21646
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();
21647
22673
  const authorization = await requireAuthorization(params.authorize, {
21648
22674
  can: "flow/run.start",
21649
22675
  with: params.flowUri,
@@ -21652,13 +22678,16 @@ async function startRun(params) {
21652
22678
  const now = params.now?.() ?? Date.now();
21653
22679
  const seq = nextRunSequence(params.yDoc);
21654
22680
  const runId = createRunId(seq, now);
21655
- 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;
21656
22684
  const meta = {
21657
22685
  seq,
21658
22686
  startedAt: now,
21659
22687
  startedByDid: params.actorDid,
21660
22688
  origin: "started",
21661
22689
  ...request ? { startRequestId: request.requestId } : {},
22690
+ ...topicRequest ? { topicRequest } : {},
21662
22691
  ...params.label ? { label: params.label } : {},
21663
22692
  manifest: {
21664
22693
  blockIds: [...params.definition.manifest.blockIds],
@@ -21670,7 +22699,7 @@ async function startRun(params) {
21670
22699
  kind: "run.started",
21671
22700
  payload: {
21672
22701
  // The requester's signed start request (a real invocation, not a grant).
21673
- ...request ? { invocationCid: request.invocationCid } : authorization.invocationCid ? { invocationCid: authorization.invocationCid } : {},
22702
+ ...invocationCid ? { invocationCid } : {},
21674
22703
  definitionRevision: params.definition.manifest.defHash,
21675
22704
  ...params.label ? { label: params.label } : {}
21676
22705
  },
@@ -21700,7 +22729,8 @@ async function startRun(params) {
21700
22729
  return {
21701
22730
  run: { id: runId, meta },
21702
22731
  eventId,
21703
- flowStartInvocations
22732
+ flowStartInvocations,
22733
+ ...invocationCid ? { invocationCid } : {}
21704
22734
  };
21705
22735
  });
21706
22736
  }
@@ -22366,7 +23396,110 @@ var isAuthorized = async (blockId, actorDid, ucanService, flowUri) => {
22366
23396
  };
22367
23397
  };
22368
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
+
22369
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
+ }
22370
23503
  var updateRuntimeAfterSuccess = (node, actorDid, runtime, actionResult, invocationCid, now) => {
22371
23504
  const updates = {
22372
23505
  submittedByDid: actionResult.submittedByDid || actorDid,
@@ -22379,7 +23512,18 @@ var updateRuntimeAfterSuccess = (node, actorDid, runtime, actionResult, invocati
22379
23512
  }
22380
23513
  runtime.update(node.id, updates);
22381
23514
  };
22382
- var executeNode = async ({ node, actorDid, actorType, entityRoomId, context, action, invocationFacts = {}, pin }) => {
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;
22383
23527
  const { runtime, ucanService, invocationStore, flowUri, flowId, sessionRunId, now } = context;
22384
23528
  const auth = await isAuthorized(node.id, actorDid, ucanService, flowUri);
22385
23529
  if (!auth.authorized || !ucanService) {
@@ -22465,6 +23609,21 @@ var executeNode = async ({ node, actorDid, actorType, entityRoomId, context, act
22465
23609
  invocationCid
22466
23610
  };
22467
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;
22468
23627
  {
22469
23628
  const storedInvocation = {
22470
23629
  cid: invocationCid,
@@ -22478,10 +23637,13 @@ var executeNode = async ({ node, actorDid, actorType, entityRoomId, context, act
22478
23637
  result: "success",
22479
23638
  proofCids,
22480
23639
  facts: signedFacts,
22481
- claimId: result.claimId
23640
+ claimId: result.claimId,
23641
+ ...resultReceipt ? { resultReceipt } : {}
22482
23642
  };
22483
23643
  invocationStore.add(storedInvocation);
22484
- ucanService.receipts?.remember(storedInvocation, { blockId: node.id }, { status: "verified" });
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);
22485
23647
  }
22486
23648
  updateRuntimeAfterSuccess(node, actorDid, runtime, result, invocationCid, now);
22487
23649
  return {
@@ -23315,6 +24477,8 @@ async function executeActionBlock(params) {
23315
24477
  let proofFailureOutput;
23316
24478
  let topicRecords = [];
23317
24479
  let terminalRaceError = null;
24480
+ let effectPortTouched = false;
24481
+ let runError = null;
23318
24482
  const startedAt = now();
23319
24483
  const previousState = runtime.get(blockId);
23320
24484
  const attempt = (previousState.attempt || 0) + 1;
@@ -23449,35 +24613,47 @@ async function executeActionBlock(params) {
23449
24613
  }
23450
24614
  }
23451
24615
  params.onEffectStart?.();
23452
- const result = await action.run(inputBuild.inputs, {
23453
- actorDid: params.actorDid,
23454
- flowId,
23455
- sessionRunId,
23456
- designPodAuthority: params.designPodAuthority,
23457
- flowUri,
23458
- nodeId: blockId,
23459
- flowNode,
23460
- runtime,
23461
- services: actionServices,
23462
- runEventLog: params.runEventLog,
23463
- handlers: params.handlers,
23464
- editor,
23465
- yDoc,
23466
- pendingInvocation: inputBuild.pendingInvocation,
23467
- topic: params.topic,
23468
- flowRevision: params.flowRevision,
23469
- ...executionProof.invocationCid ? {
23470
- executionProof: {
23471
- invocationCid: executionProof.invocationCid,
23472
- invocation: executionProof.invocation,
23473
- capabilityId: executionProof.capabilityId,
23474
- proofCids: executionProof.proofCids,
23475
- capability: executionProof.capability,
23476
- facts: executionProof.facts,
23477
- inputDigest
23478
- }
23479
- } : {}
23480
- });
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
+ }
23481
24657
  if (result.events?.length) events.push(...result.events);
23482
24658
  if (result.topicRecords?.length) topicRecords = result.topicRecords;
23483
24659
  if (result.completion?.state === "awaiting_readback") {
@@ -23493,7 +24669,9 @@ async function executeActionBlock(params) {
23493
24669
  }
23494
24670
  return {
23495
24671
  payload: result.output,
23496
- submittedByDid: params.actorDid || void 0
24672
+ submittedByDid: params.actorDid || void 0,
24673
+ events: [...events],
24674
+ ...requestedAwaitingReadBack ? { awaitingReadBack: true } : {}
23497
24675
  };
23498
24676
  },
23499
24677
  pin: params.pin || ""
@@ -23583,7 +24761,16 @@ async function executeActionBlock(params) {
23583
24761
  runId: executionId
23584
24762
  };
23585
24763
  }
23586
- updateRuntimeFailure(runtime, blockId, message, now);
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
+ }
23587
24774
  if (sessionRunId && (eventLog || timelineRequired)) {
23588
24775
  await appendRunTimelineEvent({
23589
24776
  eventLog,
@@ -23595,7 +24782,7 @@ async function executeActionBlock(params) {
23595
24782
  attempt,
23596
24783
  executionId,
23597
24784
  durationMs: Math.max(0, now() - startedAt),
23598
- error: { message }
24785
+ error: outcomeUnknown ? { message, code: EFFECT_OUTCOME_UNKNOWN_CODE } : { message }
23599
24786
  },
23600
24787
  idempotencyKey: createRunEventIdempotencyKey("action.failed", sessionRunId, blockId, executionId),
23601
24788
  ts: now()
@@ -23605,8 +24792,8 @@ async function executeActionBlock(params) {
23605
24792
  now
23606
24793
  });
23607
24794
  }
23608
- const topicWriteBack2 = await recordTopicPhase("failed", {
23609
- error: { message },
24795
+ const topicWriteBack2 = await recordTopicPhase(outcomeUnknown ? "needs_verification" : "failed", {
24796
+ error: outcomeUnknown ? { code: EFFECT_OUTCOME_UNKNOWN_CODE, message } : { message },
23610
24797
  invocationReference: outcome.invocationCid || outcome.capabilityId
23611
24798
  });
23612
24799
  return {
@@ -23617,6 +24804,7 @@ async function executeActionBlock(params) {
23617
24804
  error: message,
23618
24805
  pendingInvocation: inputBuild.pendingInvocation
23619
24806
  }),
24807
+ ...outcomeUnknown ? { completionState: "needs_verification" } : {},
23620
24808
  invocationCid: outcome.invocationCid,
23621
24809
  capabilityId: outcome.capabilityId,
23622
24810
  executionId,
@@ -23734,11 +24922,14 @@ async function executeActionBlock(params) {
23734
24922
  });
23735
24923
  }
23736
24924
  const pendingInvocationRemoved = completionState === "completed" ? cleanupCompletedPendingInvocation(yDoc, blockId, inputBuild.pendingInvocation, sessionRunId) : false;
23737
- const topicWriteBack = await recordTopicPhase(completionState === "completed" ? "succeeded" : completionState === "needs_verification" ? "needs_verification" : "failed", {
23738
- output,
23739
- ...boundedOutput.exceeded ? { error: { code: "RUN_OUTPUT_TOO_LARGE", message: `Action output exceeded the ${MAX_RUN_ACTION_OUTPUT_BYTES / 1024} KiB run-head limit.` } } : {},
23740
- invocationReference: outcome.invocationCid || outcome.capabilityId
23741
- });
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
+ );
23742
24933
  return {
23743
24934
  success: !boundedOutput.exceeded,
23744
24935
  stage: outcome.stage,
@@ -23800,7 +24991,7 @@ function receiptVerdict(params, invocationCid, missingReason) {
23800
24991
  if (invocation.result !== "success") return { status: "unverified", reason: "Completion references a failed invocation." };
23801
24992
  if (invocation.blockId && invocation.blockId !== params.blockId) return { status: "unverified", reason: "Completion references an invocation for a different block." };
23802
24993
  if (!params.checkReceipt) return { status: "unverified", reason: "This step's receipt can't be checked here: no UCAN verifier is set up." };
23803
- const receipt = params.checkReceipt(invocation, { blockId: params.blockId });
24994
+ const receipt = params.checkReceipt(invocation, { blockId: params.blockId, output: params.runtime?.output });
23804
24995
  if (receipt.status === "pending") return { status: "pending" };
23805
24996
  if (receipt.status === "unverified") return { status: "unverified", reason: receipt.reason };
23806
24997
  return { status: "verified" };
@@ -23846,12 +25037,78 @@ function isVerifiedCompletion(params) {
23846
25037
  return verifyCompletion(params).status === "verified";
23847
25038
  }
23848
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
+
23849
25105
  // src/core/lib/flowEngine/blockPhase.ts
23850
25106
  function deriveBlockPhase(params) {
23851
25107
  const { runtime, actionType, pendingInvocationCount = 0, runCount, done = false } = params;
23852
25108
  const repeatable = isRepeatableAction(actionType);
23853
25109
  const state = runtime?.state ?? "idle";
23854
25110
  const base = { repeatable, ...repeatable && runCount !== void 0 ? { runCount } : {} };
25111
+ const completionUnverified = deriveEvidenceStatus(runtime, params.completionVerification).kind === "unverified";
23855
25112
  switch (state) {
23856
25113
  case "idle":
23857
25114
  if (pendingInvocationCount > 0) {
@@ -23871,10 +25128,12 @@ function deriveBlockPhase(params) {
23871
25128
  case "completed":
23872
25129
  if (repeatable) {
23873
25130
  if (done && pendingInvocationCount === 0) {
25131
+ if (completionUnverified) return { ...base, phase: "failed", detail: "completion_unverified", safeToRetry: false };
23874
25132
  return { ...base, phase: "complete", detail: "drained", safeToRetry: true };
23875
25133
  }
23876
25134
  return { ...base, phase: "active", detail: "standing", safeToRetry: true };
23877
25135
  }
25136
+ if (completionUnverified) return { ...base, phase: "failed", detail: "completion_unverified", safeToRetry: false };
23878
25137
  return { ...base, phase: "complete", detail: "completed", safeToRetry: false };
23879
25138
  case "cancelled":
23880
25139
  return { ...base, phase: "complete", detail: "cancelled", safeToRetry: false };
@@ -23887,6 +25146,324 @@ function deriveBlockPhase(params) {
23887
25146
  }
23888
25147
  }
23889
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
+
23890
25467
  // src/core/lib/flowEngine/vnext/contracts.ts
23891
25468
  var FlowDefinitionVerificationError = class extends Error {
23892
25469
  constructor(code, message) {
@@ -26524,10 +28101,10 @@ var createMemoryInvocationStore = () => {
26524
28101
  };
26525
28102
 
26526
28103
  // src/core/services/ucanService.ts
26527
- var import_ucan2 = require("@ixo/ucan");
28104
+ var import_ucan4 = require("@ixo/ucan");
26528
28105
 
26529
28106
  // src/core/lib/ucan/signedChain.ts
26530
- var import_ucan = require("@ixo/ucan");
28107
+ var import_ucan3 = require("@ixo/ucan");
26531
28108
  var import_core = require("@ucanto/core");
26532
28109
  var PORTAL_PROOF_CHAIN_LIMITS = Object.freeze({
26533
28110
  maxDepth: 10,
@@ -26665,7 +28242,7 @@ async function verifyNodeSignature(node, env) {
26665
28242
  if (!Array.isArray(keys)) return keys;
26666
28243
  for (const key of keys) {
26667
28244
  try {
26668
- const verifier = import_ucan.ed25519.Verifier.parse(key);
28245
+ const verifier = import_ucan3.ed25519.Verifier.parse(key);
26669
28246
  const wrapped = {
26670
28247
  did: () => issuerDid,
26671
28248
  verify: (payload, signature) => verifier.verify(payload, signature)
@@ -26750,7 +28327,7 @@ async function verifyGrant(car, options) {
26750
28327
  if (!options.env.revocationChecker) return fail("NO_REVOCATION_CHECKER", "Could not confirm the grant was not cancelled: no revocation service is configured.");
26751
28328
  const notYet = checkTimeAt(walked.nodes, Date.now());
26752
28329
  if (notYet?.code === "NOT_YET_VALID") return notYet;
26753
- const validator = await (0, import_ucan.createUCANValidator)({
28330
+ const validator = await (0, import_ucan3.createUCANValidator)({
26754
28331
  serverDid: node.audience.did(),
26755
28332
  rootIssuers: [ownerDid],
26756
28333
  didResolver: options.env.didResolver,
@@ -26777,7 +28354,7 @@ var capabilityParsers = /* @__PURE__ */ new Map();
26777
28354
  function capabilityParser(can) {
26778
28355
  let parser = capabilityParsers.get(can);
26779
28356
  if (!parser) {
26780
- parser = (0, import_ucan.defineCapability)({ can, protocol: "ixo:" });
28357
+ parser = (0, import_ucan3.defineCapability)({ can, protocol: "ixo:" });
26781
28358
  capabilityParsers.set(can, parser);
26782
28359
  }
26783
28360
  return parser;
@@ -26796,7 +28373,7 @@ function factsMatch(facts, expected) {
26796
28373
  return Object.entries(expected).every(([key, value]) => JSON.stringify(record4[key]) === JSON.stringify(value));
26797
28374
  });
26798
28375
  }
26799
- function plainFacts(facts) {
28376
+ function plainFacts2(facts) {
26800
28377
  return (facts ?? []).filter((fact) => Boolean(fact) && typeof fact === "object" && !Array.isArray(fact));
26801
28378
  }
26802
28379
  async function verifyInvocation(car, options) {
@@ -26830,7 +28407,7 @@ async function verifyInvocation(car, options) {
26830
28407
  invokerDid,
26831
28408
  audienceDid,
26832
28409
  capability,
26833
- facts: plainFacts(node.facts),
28410
+ facts: plainFacts2(node.facts),
26834
28411
  ...expSeconds !== void 0 ? { expiresAt: expSeconds * 1e3 } : {},
26835
28412
  ...grantExpSeconds !== void 0 ? { grantsExpireAt: grantExpSeconds * 1e3 } : {},
26836
28413
  proofChain: walked.dids,
@@ -26838,7 +28415,7 @@ async function verifyInvocation(car, options) {
26838
28415
  };
26839
28416
  if (options.at === void 0) {
26840
28417
  if (!options.env.revocationChecker) return fail("NO_REVOCATION_CHECKER", "Could not confirm the grant was not cancelled: no revocation service is configured.");
26841
- const validator = await (0, import_ucan.createUCANValidator)({
28418
+ const validator = await (0, import_ucan3.createUCANValidator)({
26842
28419
  serverDid: node.audience.did(),
26843
28420
  rootIssuers: [ownerDid],
26844
28421
  didResolver: options.env.didResolver,
@@ -26923,11 +28500,11 @@ async function getSigner(handlers, did, didType, entityRoomId, pin) {
26923
28500
  const supportedDid = toSupportedDID(normalizedDid);
26924
28501
  if (handlers.getPrivateKey) {
26925
28502
  const privateKey = await handlers.getPrivateKey({ did: normalizedDid, didType, entityRoomId, pin });
26926
- return (0, import_ucan2.parseSigner)(privateKey, supportedDid);
28503
+ return (0, import_ucan4.parseSigner)(privateKey, supportedDid);
26927
28504
  }
26928
28505
  if (handlers.getMnemonic) {
26929
28506
  const mnemonic = await handlers.getMnemonic({ did: normalizedDid, didType, entityRoomId, pin });
26930
- const result = await (0, import_ucan2.signerFromMnemonic)(mnemonic, supportedDid);
28507
+ const result = await (0, import_ucan4.signerFromMnemonic)(mnemonic, supportedDid);
26931
28508
  return result.signer;
26932
28509
  }
26933
28510
  throw new Error("No signer handler configured (need getPrivateKey or getMnemonic)");
@@ -26952,7 +28529,7 @@ var createUcanService = (config) => {
26952
28529
  return null;
26953
28530
  }
26954
28531
  try {
26955
- const delegation = await (0, import_ucan2.parseDelegation)(stored.delegation);
28532
+ const delegation = await (0, import_ucan4.parseDelegation)(stored.delegation);
26956
28533
  delegationCache.set(cid, delegation);
26957
28534
  return delegation;
26958
28535
  } catch {
@@ -27015,14 +28592,14 @@ var createUcanService = (config) => {
27015
28592
  return storedDelegation2;
27016
28593
  }
27017
28594
  const signer = await getSigner(handlers, ownerDid, issuerType, entityRoomId, pin);
27018
- const delegation = await (0, import_ucan2.createDelegation)({
28595
+ const delegation = await (0, import_ucan4.createDelegation)({
27019
28596
  issuer: signer,
27020
28597
  audience: toInvocationAudienceDID(normalizedOwnerDid),
27021
28598
  capabilities,
27022
28599
  proofs: [],
27023
28600
  expiration: Math.floor(rootExpiration / 1e3)
27024
28601
  });
27025
- const serialized = await (0, import_ucan2.serializeDelegation)(delegation);
28602
+ const serialized = await (0, import_ucan4.serializeDelegation)(delegation);
27026
28603
  const cid = getCidFromDelegation(delegation);
27027
28604
  const storedDelegation = {
27028
28605
  cid,
@@ -27078,14 +28655,14 @@ var createUcanService = (config) => {
27078
28655
  }
27079
28656
  const signer = await getSigner(handlers, issuerDid, issuerType, entityRoomId, pin);
27080
28657
  const proofDelegations = await getProofDelegations(proofCids);
27081
- const delegation = await (0, import_ucan2.createDelegation)({
28658
+ const delegation = await (0, import_ucan4.createDelegation)({
27082
28659
  issuer: signer,
27083
28660
  audience: toInvocationAudienceDID(normalizedAudienceDid),
27084
28661
  capabilities: toUcantoCapabilities(capabilities),
27085
28662
  proofs: proofDelegations,
27086
28663
  expiration: Math.floor(expiration / 1e3)
27087
28664
  });
27088
- const serialized = await (0, import_ucan2.serializeDelegation)(delegation);
28665
+ const serialized = await (0, import_ucan4.serializeDelegation)(delegation);
27089
28666
  const cid = getCidFromDelegation(delegation);
27090
28667
  const storedDelegation = {
27091
28668
  cid,
@@ -27186,7 +28763,7 @@ var createUcanService = (config) => {
27186
28763
  ...capability.nb && { nb: capability.nb }
27187
28764
  };
27188
28765
  expiration = Math.floor(Date.now() / 1e3) + ttlSeconds;
27189
- const invocation = await (0, import_ucan2.createInvocation)({
28766
+ const invocation = await (0, import_ucan4.createInvocation)({
27190
28767
  issuer: signer,
27191
28768
  audience,
27192
28769
  capability: ucantoCapability,
@@ -27195,7 +28772,7 @@ var createUcanService = (config) => {
27195
28772
  expiration
27196
28773
  });
27197
28774
  const built = await invocation.buildIPLDView();
27198
- minted = { cid: built.cid.toString(), invocation: await (0, import_ucan2.serializeInvocation)(invocation) };
28775
+ minted = { cid: built.cid.toString(), invocation: await (0, import_ucan4.serializeInvocation)(invocation) };
27199
28776
  }
27200
28777
  if (!config.verification) return refuse("This invocation cannot be checked in this editor: no UCAN verifier is set up.");
27201
28778
  const verdict = await verifyInvocation(minted.invocation, {
@@ -27674,7 +29251,9 @@ function classifyNodeState({ block, runtime, now, pendingInvocationCount = 0, co
27674
29251
  if (derived.phase === "failed") return "Blocked";
27675
29252
  if (derived.phase === "complete") return "Done";
27676
29253
  const requiresFold = !!actionType && getAction(actionType)?.done?.standingDoneRequiresFold === true;
27677
- if (derived.detail === "standing" && pendingInvocationCount === 0 && (!requiresFold || done)) return "Done";
29254
+ if (derived.detail === "standing" && pendingInvocationCount === 0 && (!requiresFold || done)) {
29255
+ return completionVerification?.status === "unverified" ? "Blocked" : "Done";
29256
+ }
27678
29257
  if (runtime.error) return "Blocked";
27679
29258
  const dueAt = getDueAt(block);
27680
29259
  if (dueAt != null && dueAt <= now) return "Overdue";
@@ -27700,7 +29279,7 @@ function snapshotNode(block, runtime, now, pendingInvocationCount = 0, completio
27700
29279
  const title = getBlockTitle(block);
27701
29280
  if (title) snapshot.title = title;
27702
29281
  if (publicState === "Blocked") {
27703
- if (runtime.state === "needs_verification") {
29282
+ if (runtime.state === "needs_verification" || runtime.state === "completed" && completionVerification?.status === "unverified") {
27704
29283
  snapshot.blockerCause = "awaiting_verification";
27705
29284
  } else {
27706
29285
  snapshot.blockerCause = classifyBlockerCause(block, runtime) || "unknown";
@@ -31379,12 +32958,12 @@ var createQiForgeTopicExecutorAdapter = (executor, bridge) => new ManifestBoundT
31379
32958
  var createMcpTopicExecutorAdapter = (executor, bridge) => new ManifestBoundTopicExecutorAdapter("mcp", executor, bridge);
31380
32959
 
31381
32960
  // src/core/lib/ucan/verificationEnv.ts
31382
- var import_ucan3 = require("@ixo/ucan");
32961
+ var import_ucan5 = require("@ixo/ucan");
31383
32962
  var checkers = /* @__PURE__ */ new Map();
31384
32963
  function revocationCheckerFor(url) {
31385
32964
  let checker = checkers.get(url);
31386
32965
  if (!checker) {
31387
- checker = (0, import_ucan3.createUcanStoreRevocationChecker)({ url });
32966
+ checker = (0, import_ucan5.createUcanStoreRevocationChecker)({ url });
31388
32967
  checkers.set(url, checker);
31389
32968
  }
31390
32969
  return checker;
@@ -31645,7 +33224,83 @@ function createReceiptVerifier(options) {
31645
33224
  const cache = /* @__PURE__ */ new Map();
31646
33225
  const inFlight = /* @__PURE__ */ new Map();
31647
33226
  const listeners = /* @__PURE__ */ new Set();
31648
- const keyOf2 = (invocation, expected) => `${invocation.cid}\0${expected.blockId}\0${invocation.invokerDid}\0${invocation.sessionRunId ?? ""}`;
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
+ }
31649
33304
  async function run(invocation, expected) {
31650
33305
  const owner = options.getOwnerDid() ? normalizeDid(options.getOwnerDid()) : "";
31651
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 };
@@ -31654,7 +33309,7 @@ function createReceiptVerifier(options) {
31654
33309
  expectedAudience: owner,
31655
33310
  ownerDid: owner,
31656
33311
  actorDid: invocation.invokerDid,
31657
- required: { can: "flow/block/execute", with: `${typeof options.flowUri === "function" ? options.flowUri() : options.flowUri}:${expected.blockId}` },
33312
+ required: { can: "flow/block/execute", with: `${flowUriNow()}:${expected.blockId}` },
31658
33313
  // The record's session run (what every surface groups it under) must be
31659
33314
  // the one the signer bound it to.
31660
33315
  ...invocation.sessionRunId ? { expectedFacts: { sessionRunId: invocation.sessionRunId } } : {},
@@ -31662,9 +33317,17 @@ function createReceiptVerifier(options) {
31662
33317
  at: invocation.executedAt
31663
33318
  });
31664
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
+ }
31665
33323
  if (verdict.revokedNow) {
31666
33324
  return { status: { status: "unverified", reason: "This step was done under a grant that has since been cancelled.", revokedSince: true }, transient: false };
31667
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
+ }
31668
33331
  return { status: { status: "verified", ...verdict.noTimeAnchor ? { noTimeAnchor: true } : {} }, transient: false };
31669
33332
  }
31670
33333
  const verifier = {
@@ -32215,6 +33878,7 @@ function createOracleInitFlowTemplate() {
32215
33878
  ACTION_SAFETY_BY_TYPE,
32216
33879
  AUTHORITY_RECHECK_MS,
32217
33880
  ActionContractResolutionError,
33881
+ ActionEffectNotStartedError,
32218
33882
  ActionManifestV2VerificationError,
32219
33883
  ComposioContractMismatchError,
32220
33884
  DESIGN_POD_CONTROL_IDS,
@@ -32224,10 +33888,12 @@ function createOracleInitFlowTemplate() {
32224
33888
  DESIGN_POD_STATE_MAP_KEY,
32225
33889
  DESIGN_POD_TEMPLATE_ID,
32226
33890
  DESIGN_YOMA_METHOD_V1,
33891
+ EFFECT_OUTCOME_UNKNOWN_CODE,
32227
33892
  EffectClaimTransitionError,
32228
33893
  EncryptedMatrixFlowDefinitionRevisionRepository,
32229
33894
  ExplicitRunRequiredError,
32230
33895
  FLOW_AUTHORITY_EVENT_TYPE,
33896
+ FLOW_BLOCK_EXECUTE_CAN,
32231
33897
  FLOW_CAPABILITIES,
32232
33898
  FLOW_CONNECTIONS_MAP_KEY,
32233
33899
  FLOW_CONNECTION_BINDINGS_MAP_KEY,
@@ -32266,6 +33932,8 @@ function createOracleInitFlowTemplate() {
32266
33932
  PROFESSIONAL_SERVICE_METHOD_V1,
32267
33933
  PROOF_MISSING_CODE,
32268
33934
  PeerExecutionError,
33935
+ RESULT_RECEIPT_FACT_TYPE,
33936
+ RESULT_RECEIPT_REQUIRED,
32269
33937
  RUNS_TERMINAL_MAP_KEY,
32270
33938
  RUNS_TERMINAL_PENDING_MAP_KEY,
32271
33939
  RUN_RECORD_AUDIT_TYPE,
@@ -32278,6 +33946,7 @@ function createOracleInitFlowTemplate() {
32278
33946
  STEP_COMPLETED_EVENT_NAME,
32279
33947
  TerminalRunExecutionError,
32280
33948
  TopicActionBridge,
33949
+ TopicRequestAlreadyStartedError,
32281
33950
  TopicRevisionConflictError,
32282
33951
  UNIVERSAL_ACTION_COMPLETED_OUTCOME,
32283
33952
  UnknownRunError,
@@ -32333,6 +34002,7 @@ function createOracleInitFlowTemplate() {
32333
34002
  capabilityForRequest,
32334
34003
  capabilityPatternCoversCan,
32335
34004
  censusFlowAuthority,
34005
+ checkFlowDefinition,
32336
34006
  claimEffect,
32337
34007
  classifyBlockerCause,
32338
34008
  classifyNodeState,
@@ -32342,6 +34012,7 @@ function createOracleInitFlowTemplate() {
32342
34012
  closeRun,
32343
34013
  collectPhantomLegacyRun,
32344
34014
  commitDesignPodPhase,
34015
+ compileAuthorityRequirements,
32345
34016
  compileBaseUcanFlow,
32346
34017
  compileDesignPodRelease,
32347
34018
  computeActionContractDigest,
@@ -32393,8 +34064,13 @@ function createOracleInitFlowTemplate() {
32393
34064
  deriveAttemptId,
32394
34065
  deriveEffectClaimKey,
32395
34066
  deriveEventId,
34067
+ deriveEvidenceStatus,
34068
+ deriveExecutionStatus,
32396
34069
  deriveReceiptId,
34070
+ deriveReworkPolicy,
32397
34071
  deriveRunId,
34072
+ deriveWorkItemPhase,
34073
+ deriveWorkStatus,
32398
34074
  detectRunDefinitionDrift,
32399
34075
  digestCanonicalJson,
32400
34076
  digestDesignPodValue,
@@ -32462,6 +34138,7 @@ function createOracleInitFlowTemplate() {
32462
34138
  isBelowTheLineBlock,
32463
34139
  isBlankInputValue,
32464
34140
  isCapabilityMatch,
34141
+ isEffectNotStartedError,
32465
34142
  isExternalMutation,
32466
34143
  isFlowOwner,
32467
34144
  isLegacyRuntimeAdoptionEnabled,
@@ -32575,10 +34252,12 @@ function createOracleInitFlowTemplate() {
32575
34252
  resolveRunIdForRead,
32576
34253
  resolveRuntimeRefs,
32577
34254
  resolveSingleReference,
34255
+ resolveStepAction,
32578
34256
  resourceMatches,
32579
34257
  retryPendingRunTimelineEvents,
32580
34258
  revocationCheckerFor,
32581
34259
  runLedgerAttestations,
34260
+ runStartRequestExpectedFacts,
32582
34261
  sameDesignPodActor,
32583
34262
  seedDesignPodMethodDefinition,
32584
34263
  seedDesignPodTemplateFlow,
@@ -32607,6 +34286,7 @@ function createOracleInitFlowTemplate() {
32607
34286
  snapshotInputRefs,
32608
34287
  snapshotNode,
32609
34288
  startRun,
34289
+ stepAssigneeDid,
32610
34290
  subscribeToActionState,
32611
34291
  summarizeFlowAuthorityCensus,
32612
34292
  swapFlowBlocks,