keri-ts 2.1.0 → 2.2.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 (294) hide show
  1. package/README.md +30 -2
  2. package/esm/keri/npm/src/acdc/authoring.js +195 -0
  3. package/esm/keri/npm/src/acdc/custody.js +164 -0
  4. package/esm/keri/npm/src/acdc/dhking.js +244 -32
  5. package/esm/keri/npm/src/acdc/regbasing.js +10 -0
  6. package/esm/keri/npm/src/acdc/salting.js +16 -1
  7. package/esm/keri/npm/src/acdc/scheming.js +93 -54
  8. package/esm/keri/npm/src/acdc/unblinding.js +118 -95
  9. package/esm/keri/npm/src/app/bootstrap/authenticating.js +4 -6
  10. package/esm/keri/npm/src/app/bootstrap/oobi-resolving.js +41 -0
  11. package/esm/keri/npm/src/app/bootstrap/oobiery.js +4 -6
  12. package/esm/keri/npm/src/app/credentials/credential-revoking.js +1 -0
  13. package/esm/keri/npm/src/app/credentials/credential-workflows.js +2 -0
  14. package/esm/keri/npm/src/app/credentials/registry-settling.js +44 -0
  15. package/esm/keri/npm/src/app/credentials/root-replicating.js +68 -60
  16. package/esm/keri/npm/src/app/credentials/root-replicator.js +198 -0
  17. package/esm/keri/npm/src/app/credentials/tel-completion.js +36 -0
  18. package/esm/keri/npm/src/app/delivery/forwarding.js +16 -3
  19. package/esm/keri/npm/src/app/exchanges/exchanging.js +14 -4
  20. package/esm/keri/npm/src/app/identity/challenging.js +50 -0
  21. package/esm/keri/npm/src/app/identity/delegating.js +77 -77
  22. package/esm/keri/npm/src/app/identity/delegation-approval.js +333 -0
  23. package/esm/keri/npm/src/app/identity/event-completion.js +154 -0
  24. package/esm/keri/npm/src/app/identity/habbing.js +129 -6
  25. package/esm/keri/npm/src/app/identity/keeping.js +77 -4
  26. package/esm/keri/npm/src/app/ipex/group-ipex.js +327 -0
  27. package/esm/keri/npm/src/app/ipex/group-issuance.js +902 -0
  28. package/esm/keri/npm/src/app/ipex/ipex-admitting.js +120 -0
  29. package/esm/keri/npm/src/app/ipex/ipex-conversation.js +197 -0
  30. package/esm/keri/npm/src/app/ipex/ipex-discloser.js +591 -0
  31. package/esm/keri/npm/src/app/ipex/ipex-granting.js +93 -0
  32. package/esm/keri/npm/src/app/ipex/ipex-grouping.js +34 -11
  33. package/esm/keri/npm/src/app/ipex/issuance.js +888 -0
  34. package/esm/keri/npm/src/app/ipex/pending-presentations.js +46 -0
  35. package/esm/keri/npm/src/app/ipex/presentation-files.js +200 -0
  36. package/esm/keri/npm/src/app/ipex/presenting.js +401 -0
  37. package/esm/keri/npm/src/app/ipex/receive-issuance.js +86 -0
  38. package/esm/keri/npm/src/app/ipex/unblinding-workflow.js +660 -0
  39. package/esm/keri/npm/src/app/mailbox/ipex-arrival.js +103 -0
  40. package/esm/keri/npm/src/app/mailbox/kel-publisher.js +322 -0
  41. package/esm/keri/npm/src/app/mailbox/kel-publishing.js +65 -0
  42. package/esm/keri/npm/src/app/mailbox/kel-submission.js +24 -0
  43. package/esm/keri/npm/src/app/mailbox/mailbox-admin.js +208 -0
  44. package/esm/keri/npm/src/app/mailbox/mailbox-poller.js +212 -47
  45. package/esm/keri/npm/src/app/mailbox/mailboxing.js +10 -5
  46. package/esm/keri/npm/src/app/multisig/counseling.js +482 -0
  47. package/esm/keri/npm/src/app/multisig/group-members.js +18 -0
  48. package/esm/keri/npm/src/app/multisig/multisig-workflows.js +94 -139
  49. package/esm/keri/npm/src/app/multisig/proposals.js +281 -0
  50. package/esm/keri/npm/src/app/multisig/proposing.js +122 -0
  51. package/esm/keri/npm/src/app/notifications/signaling.js +5 -5
  52. package/esm/keri/npm/src/app/protocol/parsering.js +26 -1
  53. package/esm/keri/npm/src/app/protocol/protocol-processing.js +9 -3
  54. package/esm/keri/npm/src/app/queries/query-workflows.js +98 -0
  55. package/esm/keri/npm/src/app/runtime/agent-runtime.js +106 -55
  56. package/esm/keri/npm/src/app/runtime/cue-runtime.js +3 -6
  57. package/esm/keri/npm/src/app/runtime/delivery-outbox.js +87 -0
  58. package/esm/keri/npm/src/app/runtime/doing.js +17 -0
  59. package/esm/keri/npm/src/app/runtime/ipex-auxiliaries.js +207 -0
  60. package/esm/keri/npm/src/app/runtime/operation-owners.js +151 -0
  61. package/esm/keri/npm/src/app/runtime/retry-backoff.js +93 -0
  62. package/esm/keri/npm/src/app/runtime/workflow-contract.js +80 -0
  63. package/esm/keri/npm/src/app/transport/http-client.js +25 -6
  64. package/esm/keri/npm/src/app/witness/http-endpoints.js +4 -4
  65. package/esm/keri/npm/src/cli/common/event-completion.js +49 -0
  66. package/esm/keri/npm/src/cli/common/runtime-workers.js +23 -0
  67. package/esm/keri/npm/src/cli/credentials/ipex.js +157 -190
  68. package/esm/keri/npm/src/cli/credentials/vc.js +53 -72
  69. package/esm/keri/npm/src/cli/endpoints/did.js +12 -3
  70. package/esm/keri/npm/src/cli/endpoints/oobi.js +10 -13
  71. package/esm/keri/npm/src/cli/identity/challenge.js +8 -34
  72. package/esm/keri/npm/src/cli/identity/delegate.js +81 -258
  73. package/esm/keri/npm/src/cli/identity/incept.js +15 -32
  74. package/esm/keri/npm/src/cli/identity/interact.js +5 -17
  75. package/esm/keri/npm/src/cli/identity/rotate.js +8 -36
  76. package/esm/keri/npm/src/cli/index.js +3 -1
  77. package/esm/keri/npm/src/cli/messaging/group-join.js +79 -0
  78. package/esm/keri/npm/src/cli/messaging/group-wait.js +88 -0
  79. package/esm/keri/npm/src/cli/messaging/multisig.js +163 -284
  80. package/esm/keri/npm/src/cli/messaging/root-copy-lines.js +31 -0
  81. package/esm/keri/npm/src/core/kel/eventing.js +66 -10
  82. package/esm/keri/npm/src/core/mailbox/kram-policy.js +39 -6
  83. package/esm/keri/npm/src/core/mailbox/kraming.js +2 -0
  84. package/esm/keri/npm/src/core/records.js +23 -0
  85. package/esm/keri/npm/src/core/routing.js +13 -0
  86. package/esm/keri/npm/src/db/basing.js +34 -2
  87. package/esm/keri/npm/src/db/core/indexeddb-persistence.js +221 -0
  88. package/esm/keri/npm/src/db/indexeddb.js +98 -0
  89. package/esm/keri/npm/src/db/keeping.js +11 -2
  90. package/esm/keri/npm/src/db/store-lock.js +150 -0
  91. package/esm/keri/npm/src/npm/db-indexeddb.browser.js +2 -0
  92. package/esm/keri/npm/src/npm/db-indexeddb.js +3 -0
  93. package/esm/keri/npm/src/npm/db.browser.js +2 -0
  94. package/esm/keri/npm/src/npm/index.browser.js +9 -0
  95. package/esm/keri/npm/src/npm/runtime-web.browser.js +2 -0
  96. package/esm/keri/npm/src/npm/runtime-web.js +3 -0
  97. package/esm/keri/npm/src/npm/runtime.browser.js +2 -0
  98. package/esm/keri/npm/src/runtime/index.js +51 -4
  99. package/esm/keri/npm/src/runtime/web/output-barrier.js +47 -0
  100. package/esm/keri/npm/src/runtime/web/persistent-storage.js +37 -0
  101. package/esm/keri/npm/src/runtime/web.js +10 -0
  102. package/esm/keri/npm/src/vdr/tel-publication.js +16 -0
  103. package/esm/keri/npm/src/version.js +2 -2
  104. package/package.json +15 -2
  105. package/types/acdc/authoring.d.ts +54 -0
  106. package/types/acdc/authoring.d.ts.map +1 -0
  107. package/types/acdc/custody.d.ts +77 -0
  108. package/types/acdc/custody.d.ts.map +1 -0
  109. package/types/acdc/dhking.d.ts +94 -3
  110. package/types/acdc/dhking.d.ts.map +1 -1
  111. package/types/acdc/regbasing.d.ts +4 -0
  112. package/types/acdc/regbasing.d.ts.map +1 -1
  113. package/types/acdc/salting.d.ts +6 -1
  114. package/types/acdc/salting.d.ts.map +1 -1
  115. package/types/acdc/scheming.d.ts +2 -0
  116. package/types/acdc/scheming.d.ts.map +1 -1
  117. package/types/acdc/unblinding.d.ts +58 -19
  118. package/types/acdc/unblinding.d.ts.map +1 -1
  119. package/types/app/bootstrap/authenticating.d.ts +3 -1
  120. package/types/app/bootstrap/authenticating.d.ts.map +1 -1
  121. package/types/app/bootstrap/oobi-resolving.d.ts +92 -0
  122. package/types/app/bootstrap/oobi-resolving.d.ts.map +1 -0
  123. package/types/app/bootstrap/oobiery.d.ts +3 -1
  124. package/types/app/bootstrap/oobiery.d.ts.map +1 -1
  125. package/types/app/credentials/credential-revoking.d.ts +3 -0
  126. package/types/app/credentials/credential-revoking.d.ts.map +1 -1
  127. package/types/app/credentials/credential-workflows.d.ts +5 -0
  128. package/types/app/credentials/credential-workflows.d.ts.map +1 -1
  129. package/types/app/credentials/registry-settling.d.ts +85 -0
  130. package/types/app/credentials/registry-settling.d.ts.map +1 -0
  131. package/types/app/credentials/root-replicating.d.ts +56 -44
  132. package/types/app/credentials/root-replicating.d.ts.map +1 -1
  133. package/types/app/credentials/root-replicator.d.ts +105 -0
  134. package/types/app/credentials/root-replicator.d.ts.map +1 -0
  135. package/types/app/credentials/tel-completion.d.ts +55 -0
  136. package/types/app/credentials/tel-completion.d.ts.map +1 -0
  137. package/types/app/delivery/forwarding.d.ts +6 -0
  138. package/types/app/delivery/forwarding.d.ts.map +1 -1
  139. package/types/app/exchanges/exchanging.d.ts.map +1 -1
  140. package/types/app/identity/challenging.d.ts +54 -0
  141. package/types/app/identity/challenging.d.ts.map +1 -1
  142. package/types/app/identity/delegating.d.ts +21 -4
  143. package/types/app/identity/delegating.d.ts.map +1 -1
  144. package/types/app/identity/delegation-approval.d.ts +228 -0
  145. package/types/app/identity/delegation-approval.d.ts.map +1 -0
  146. package/types/app/identity/event-completion.d.ts +151 -0
  147. package/types/app/identity/event-completion.d.ts.map +1 -0
  148. package/types/app/identity/habbing.d.ts +67 -2
  149. package/types/app/identity/habbing.d.ts.map +1 -1
  150. package/types/app/identity/keeping.d.ts +49 -3
  151. package/types/app/identity/keeping.d.ts.map +1 -1
  152. package/types/app/ipex/group-ipex.d.ts +247 -0
  153. package/types/app/ipex/group-ipex.d.ts.map +1 -0
  154. package/types/app/ipex/group-issuance.d.ts +281 -0
  155. package/types/app/ipex/group-issuance.d.ts.map +1 -0
  156. package/types/app/ipex/ipex-admitting.d.ts +47 -0
  157. package/types/app/ipex/ipex-admitting.d.ts.map +1 -0
  158. package/types/app/ipex/ipex-conversation.d.ts +195 -0
  159. package/types/app/ipex/ipex-conversation.d.ts.map +1 -0
  160. package/types/app/ipex/ipex-discloser.d.ts +156 -0
  161. package/types/app/ipex/ipex-discloser.d.ts.map +1 -0
  162. package/types/app/ipex/ipex-granting.d.ts +145 -0
  163. package/types/app/ipex/ipex-granting.d.ts.map +1 -0
  164. package/types/app/ipex/ipex-grouping.d.ts +18 -0
  165. package/types/app/ipex/ipex-grouping.d.ts.map +1 -1
  166. package/types/app/ipex/issuance.d.ts +443 -0
  167. package/types/app/ipex/issuance.d.ts.map +1 -0
  168. package/types/app/ipex/pending-presentations.d.ts +25 -0
  169. package/types/app/ipex/pending-presentations.d.ts.map +1 -0
  170. package/types/app/ipex/presentation-files.d.ts +47 -0
  171. package/types/app/ipex/presentation-files.d.ts.map +1 -0
  172. package/types/app/ipex/presenting.d.ts +298 -0
  173. package/types/app/ipex/presenting.d.ts.map +1 -0
  174. package/types/app/ipex/receive-issuance.d.ts +99 -0
  175. package/types/app/ipex/receive-issuance.d.ts.map +1 -0
  176. package/types/app/ipex/unblinding-workflow.d.ts +255 -0
  177. package/types/app/ipex/unblinding-workflow.d.ts.map +1 -0
  178. package/types/app/mailbox/ipex-arrival.d.ts +104 -0
  179. package/types/app/mailbox/ipex-arrival.d.ts.map +1 -0
  180. package/types/app/mailbox/kel-publisher.d.ts +141 -0
  181. package/types/app/mailbox/kel-publisher.d.ts.map +1 -0
  182. package/types/app/mailbox/kel-publishing.d.ts +70 -0
  183. package/types/app/mailbox/kel-publishing.d.ts.map +1 -0
  184. package/types/app/mailbox/kel-submission.d.ts +18 -0
  185. package/types/app/mailbox/kel-submission.d.ts.map +1 -0
  186. package/types/app/mailbox/mailbox-admin.d.ts +113 -0
  187. package/types/app/mailbox/mailbox-admin.d.ts.map +1 -0
  188. package/types/app/mailbox/mailbox-poller.d.ts +92 -3
  189. package/types/app/mailbox/mailbox-poller.d.ts.map +1 -1
  190. package/types/app/mailbox/mailboxing.d.ts +3 -0
  191. package/types/app/mailbox/mailboxing.d.ts.map +1 -1
  192. package/types/app/multisig/counseling.d.ts +196 -0
  193. package/types/app/multisig/counseling.d.ts.map +1 -0
  194. package/types/app/multisig/group-members.d.ts +11 -0
  195. package/types/app/multisig/group-members.d.ts.map +1 -1
  196. package/types/app/multisig/grouping.d.ts +39 -20
  197. package/types/app/multisig/grouping.d.ts.map +1 -1
  198. package/types/app/multisig/multisig-workflows.d.ts +91 -22
  199. package/types/app/multisig/multisig-workflows.d.ts.map +1 -1
  200. package/types/app/multisig/proposals.d.ts +129 -0
  201. package/types/app/multisig/proposals.d.ts.map +1 -0
  202. package/types/app/multisig/proposing.d.ts +125 -0
  203. package/types/app/multisig/proposing.d.ts.map +1 -0
  204. package/types/app/notifications/signaling.d.ts +3 -1
  205. package/types/app/notifications/signaling.d.ts.map +1 -1
  206. package/types/app/protocol/parsering.d.ts +13 -0
  207. package/types/app/protocol/parsering.d.ts.map +1 -1
  208. package/types/app/protocol/protocol-processing.d.ts +7 -1
  209. package/types/app/protocol/protocol-processing.d.ts.map +1 -1
  210. package/types/app/queries/query-workflows.d.ts +98 -0
  211. package/types/app/queries/query-workflows.d.ts.map +1 -0
  212. package/types/app/runtime/agent-runtime.d.ts +72 -25
  213. package/types/app/runtime/agent-runtime.d.ts.map +1 -1
  214. package/types/app/runtime/cue-runtime.d.ts +2 -1
  215. package/types/app/runtime/cue-runtime.d.ts.map +1 -1
  216. package/types/app/runtime/delivery-outbox.d.ts +68 -0
  217. package/types/app/runtime/delivery-outbox.d.ts.map +1 -0
  218. package/types/app/runtime/doing.d.ts +27 -0
  219. package/types/app/runtime/doing.d.ts.map +1 -0
  220. package/types/app/runtime/ipex-auxiliaries.d.ts +74 -0
  221. package/types/app/runtime/ipex-auxiliaries.d.ts.map +1 -0
  222. package/types/app/runtime/operation-owners.d.ts +137 -0
  223. package/types/app/runtime/operation-owners.d.ts.map +1 -0
  224. package/types/app/runtime/retry-backoff.d.ts +49 -0
  225. package/types/app/runtime/retry-backoff.d.ts.map +1 -0
  226. package/types/app/runtime/workflow-contract.d.ts +79 -0
  227. package/types/app/runtime/workflow-contract.d.ts.map +1 -0
  228. package/types/app/transport/http-client.d.ts.map +1 -1
  229. package/types/cli/common/event-completion.d.ts +26 -0
  230. package/types/cli/common/event-completion.d.ts.map +1 -0
  231. package/types/cli/common/runtime-workers.d.ts +23 -0
  232. package/types/cli/common/runtime-workers.d.ts.map +1 -0
  233. package/types/cli/credentials/ipex.d.ts.map +1 -1
  234. package/types/cli/credentials/vc.d.ts +1 -1
  235. package/types/cli/credentials/vc.d.ts.map +1 -1
  236. package/types/cli/endpoints/did.d.ts.map +1 -1
  237. package/types/cli/endpoints/oobi.d.ts +3 -1
  238. package/types/cli/endpoints/oobi.d.ts.map +1 -1
  239. package/types/cli/identity/challenge.d.ts +1 -1
  240. package/types/cli/identity/challenge.d.ts.map +1 -1
  241. package/types/cli/identity/delegate.d.ts +14 -1
  242. package/types/cli/identity/delegate.d.ts.map +1 -1
  243. package/types/cli/identity/incept.d.ts.map +1 -1
  244. package/types/cli/identity/interact.d.ts.map +1 -1
  245. package/types/cli/identity/rotate.d.ts.map +1 -1
  246. package/types/cli/index.d.ts +3 -1
  247. package/types/cli/index.d.ts.map +1 -1
  248. package/types/cli/messaging/group-join.d.ts +53 -0
  249. package/types/cli/messaging/group-join.d.ts.map +1 -0
  250. package/types/cli/messaging/group-wait.d.ts +34 -0
  251. package/types/cli/messaging/group-wait.d.ts.map +1 -0
  252. package/types/cli/messaging/multisig.d.ts +28 -5
  253. package/types/cli/messaging/multisig.d.ts.map +1 -1
  254. package/types/cli/messaging/root-copy-lines.d.ts +39 -0
  255. package/types/cli/messaging/root-copy-lines.d.ts.map +1 -0
  256. package/types/core/cues.d.ts +11 -0
  257. package/types/core/cues.d.ts.map +1 -1
  258. package/types/core/kel/eventing.d.ts.map +1 -1
  259. package/types/core/mailbox/kram-policy.d.ts +14 -0
  260. package/types/core/mailbox/kram-policy.d.ts.map +1 -1
  261. package/types/core/mailbox/kraming.d.ts +1 -1
  262. package/types/core/mailbox/kraming.d.ts.map +1 -1
  263. package/types/core/records.d.ts +61 -0
  264. package/types/core/records.d.ts.map +1 -1
  265. package/types/core/routing.d.ts +6 -0
  266. package/types/core/routing.d.ts.map +1 -1
  267. package/types/db/basing.d.ts +8 -2
  268. package/types/db/basing.d.ts.map +1 -1
  269. package/types/db/core/indexeddb-persistence.d.ts +59 -0
  270. package/types/db/core/indexeddb-persistence.d.ts.map +1 -0
  271. package/types/db/indexeddb.d.ts +37 -0
  272. package/types/db/indexeddb.d.ts.map +1 -0
  273. package/types/db/keeping.d.ts +5 -2
  274. package/types/db/keeping.d.ts.map +1 -1
  275. package/types/db/store-lock.d.ts +72 -0
  276. package/types/db/store-lock.d.ts.map +1 -0
  277. package/types/npm/db-indexeddb.d.ts +4 -0
  278. package/types/npm/db-indexeddb.d.ts.map +1 -0
  279. package/types/npm/runtime-web.d.ts +4 -0
  280. package/types/npm/runtime-web.d.ts.map +1 -0
  281. package/types/runtime/index.d.ts +41 -6
  282. package/types/runtime/index.d.ts.map +1 -1
  283. package/types/runtime/web/output-barrier.d.ts +30 -0
  284. package/types/runtime/web/output-barrier.d.ts.map +1 -0
  285. package/types/runtime/web/persistent-storage.d.ts +36 -0
  286. package/types/runtime/web/persistent-storage.d.ts.map +1 -0
  287. package/types/runtime/web.d.ts +11 -0
  288. package/types/runtime/web.d.ts.map +1 -0
  289. package/types/vdr/tel-publication.d.ts +6 -0
  290. package/types/vdr/tel-publication.d.ts.map +1 -1
  291. package/types/version.d.ts +2 -2
  292. package/esm/keri/npm/src/cli/common/tel-completion.js +0 -24
  293. package/types/cli/common/tel-completion.d.ts +0 -8
  294. package/types/cli/common/tel-completion.d.ts.map +0 -1
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Composition and loop of the runtime's operations owners.
3
+ *
4
+ * The runtime owns one `IssuanceOperations`, one
5
+ * `PresentationOperations` and one `UnblindingOperations`, each an in-memory live table
6
+ * with status derived from the protocol stores, and,
7
+ * when it has a registry root owner, one `RootReplicator`. `runAgentRuntime` runs each
8
+ * owner's `processOnce` on one fiber with an adaptive cadence ({@link operationOwnersDo}). The owners
9
+ * act only for operations a user began or copies already owed.
10
+ *
11
+ * The root replicator is a runtime reaction. It derives what is owed from state and records
12
+ * sent copies in the Baser (`rrsn.`), so a CLI command that sends copies through its own
13
+ * replicator shares that record with the loop and a later pass does not repeat its sends.
14
+ */
15
+ import { type Operation } from "effection";
16
+ import { type DerivedUpdateStore } from "../../acdc/custody.js";
17
+ import type { Regery } from "../../acdc/registraring.js";
18
+ import type { RegistryRoot } from "../../acdc/salting.js";
19
+ import { RootReplicator } from "../credentials/root-replicator.js";
20
+ import type { Poster } from "../delivery/forwarding.js";
21
+ import type { Exchanger } from "../exchanges/exchanging.js";
22
+ import type { Habery } from "../identity/habbing.js";
23
+ import { GroupIpexOperations } from "../ipex/group-ipex.js";
24
+ import type { CredentialViews } from "../ipex/ipex-discloser.js";
25
+ import { IssuanceOperations } from "../ipex/issuance.js";
26
+ import { PresentationOperations } from "../ipex/presenting.js";
27
+ import { UnblindingOperations } from "../ipex/unblinding-workflow.js";
28
+ import type { Counselor } from "../multisig/counseling.js";
29
+ import type { Multiplexor } from "../multisig/grouping.js";
30
+ import type { ProtocolProcessor } from "../protocol/protocol-processing.js";
31
+ import type { Reactor } from "../protocol/reactor.js";
32
+ import type { Receiptor } from "../witness/receipting.js";
33
+ import { type DoerPacing } from "./doing.js";
34
+ import type { IpexAuxiliaries } from "./ipex-auxiliaries.js";
35
+ import type { RetryPolicy } from "./retry-backoff.js";
36
+ import type { RuntimeClock } from "./runtime-clock.js";
37
+ import type { ChangeSink } from "./workflow-contract.js";
38
+ /** Milliseconds between owner passes; the cadence of the CLI drivers the loop replaced. */
39
+ export declare const OWNER_TOCK_MS = 50;
40
+ /** Tocks between the replicator's full rotation checks: 1200 tocks of 50 ms is a minute. */
41
+ export declare const OWNER_SWEEP_TOCKS = 1200;
42
+ /** The production pacing of the owner loop. */
43
+ export declare const OWNER_PACING: Readonly<DoerPacing>;
44
+ /**
45
+ * What an embedder may supply; every field is optional. The operation tables are in memory and their status is
46
+ * derived from the protocol stores, so there is no store port for them.
47
+ */
48
+ export interface OperationStores {
49
+ /**
50
+ * Non-secret blind-derivation coordinates for issuance and derived presentation. Defaults to
51
+ * {@link BaserDerivedUpdateStore} over the registry environment's database, which is durable wherever the
52
+ * registry store is; a wallet with its own table supplies that instead.
53
+ */
54
+ derived?: DerivedUpdateStore;
55
+ /** The embedder's credential inventory, from which presentation selects issued and held credentials. Without it only replies and `apply` can be presented. */
56
+ views?: CredentialViews;
57
+ /** Receives identity-only changes after commit; defaults to the runtime's Signaler when it has one. */
58
+ changes?: ChangeSink;
59
+ }
60
+ /** The operations owners of one runtime, additive on `AgentRuntime.operations`. */
61
+ export interface RuntimeOperations {
62
+ readonly issuance: IssuanceOperations;
63
+ /** A local group's v2 IPEX messages (its Admit): propose, approve, status, wait. */
64
+ readonly groupIpex: GroupIpexOperations;
65
+ readonly presentation: PresentationOperations;
66
+ readonly unblinding: UnblindingOperations;
67
+ /** What the owner loop could not do; read by a host that reports runtime health. */
68
+ readonly health: OwnerHealth;
69
+ }
70
+ /** The last failure of an owner pass that no single operation owned, and how many there have been. */
71
+ export interface OwnerFault {
72
+ owner: "issuance" | "groupIpex" | "presentation" | "unblinding" | "replicator";
73
+ error: string;
74
+ /** ISO 8601 time of the failure on the host clock. */
75
+ at: string;
76
+ }
77
+ /**
78
+ * Failures of the owner loop itself. A failure of one operation (a delivery that throws, an unreadable stored
79
+ * Grant) ends that operation as `failed` and is never recorded here; this records only what escaped an owner
80
+ * pass, which the loop survives so that the other owners keep running. `faults` counts them and `last` keeps
81
+ * the latest. Nothing clears it: a host reads it and decides.
82
+ */
83
+ export declare class OwnerHealth {
84
+ faults: number;
85
+ last: OwnerFault | null;
86
+ }
87
+ /** What the runtime composes for its operations owners. */
88
+ export interface ComposedOwners {
89
+ operations: RuntimeOperations;
90
+ rootReplicator: RootReplicator | null;
91
+ }
92
+ /** The runtime pieces the owners borrow; no AgentRuntime bundle. */
93
+ export interface OwnerParts {
94
+ hby: Habery;
95
+ acdc: Regery;
96
+ exc: Exchanger;
97
+ protocol: ProtocolProcessor;
98
+ reactor: Reactor;
99
+ postman: Poster;
100
+ receiptor: Receiptor;
101
+ ipex: IpexAuxiliaries;
102
+ clock: RuntimeClock;
103
+ registryRoot: RegistryRoot | null;
104
+ /** Delegates the DH wrappers of group issuance; one owner per runtime registers. */
105
+ mux: Multiplexor;
106
+ /** Counsels the group anchor of a custodian's registry update. */
107
+ counselor: Counselor;
108
+ /** Delivery retry delays of the owners; the production policy when absent. */
109
+ retry?: Readonly<RetryPolicy>;
110
+ /** Milliseconds between issuer query resends; one second when absent. */
111
+ queryResendMs?: number;
112
+ changes?: ChangeSink;
113
+ }
114
+ /** Construct the owners over their in-memory tables; the derivation store defaults to the registry database. */
115
+ export declare function composeOwners(parts: OwnerParts, stores?: OperationStores): ComposedOwners;
116
+ /** What the owner loop runs: the owners, the replicator, the DH owners whose completion cues prompt it, the clock. */
117
+ export interface OwnerLoopParts extends ComposedOwners {
118
+ ipex: IpexAuxiliaries;
119
+ clock: RuntimeClock;
120
+ }
121
+ /**
122
+ * Run every owner on one fiber until halted, as a fixed-tock doer (`./doing.ts`): each tock runs an owner that
123
+ * has live work, then the replicator (after prompting it with the live DH owners' `replicated` cues), and then
124
+ * the loop waits one tock. Work begun between tocks is seen on the next one; nothing wakes the loop early.
125
+ *
126
+ * Idle cost, per tock: four constant-time table checks, one in-memory walk of the Unblind owners for an owed
127
+ * reply, one drain of each DH owner's cue deck, and the replicator's emptiness checks. The replicator's
128
+ * rotation check (the establishment SAID of each local group, one keyed read per local identifier) runs on
129
+ * tock 0 and every `pacing.sweepTocks`. No owner reads a protocol store. Only the first pass, once, scans the
130
+ * pending exchange escrow for resumable Grants.
131
+ *
132
+ * A failure that escapes an owner pass is recorded in `operations.health` and the loop keeps running, so
133
+ * one owner's fault never stops the others. The owners run one after another, so a delivery that does not return holds the others up until it fails or
134
+ * its Grant deadline passes; operations already bound each delivery by that deadline.
135
+ */
136
+ export declare function operationOwnersDo(owners: OwnerLoopParts, pacing?: Readonly<DoerPacing>): Operation<never>;
137
+ //# sourceMappingURL=operation-owners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-owners.d.ts","sourceRoot":"","sources":["../../../src/app/runtime/operation-owners.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAqB,kBAAkB,EAAkB,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,E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BlB"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Retry state for a transient delivery failure inside a live operation.
3
+ *
4
+ * A member that is briefly offline is normal, so an owner keeps the unsent work, waits with a doubling delay and
5
+ * tries again on a later pass instead of ending the operation at the first error. The owner decides when retrying
6
+ * stops: an operation with a deadline ends at the deadline, and one without ends once failures have lasted the
7
+ * bound it states.
8
+ */
9
+ /** Delay after the first failure; it doubles per consecutive failure up to {@link RETRY_MAX_MS}. */
10
+ export declare const RETRY_BASE_MS = 1000;
11
+ /** Longest delay between attempts. */
12
+ export declare const RETRY_MAX_MS = 30000;
13
+ /** How long failures may last before an owner with no deadline of its own gives up. */
14
+ export declare const RETRY_BOUND_MS = 600000;
15
+ /**
16
+ * How long a retried action waits: it starts at `baseMs`, doubles per consecutive failure up to `maxMs`, and an
17
+ * owner that gives up does so once failures have lasted `boundMs`. Owners that never give up ignore the bound.
18
+ * Milliseconds; a test passes small values.
19
+ */
20
+ export interface RetryPolicy {
21
+ baseMs: number;
22
+ maxMs: number;
23
+ boundMs: number;
24
+ }
25
+ /** The production delays of delivery retries. */
26
+ export declare const DEFAULT_RETRY_POLICY: Readonly<RetryPolicy>;
27
+ /** Consecutive-failure counter with a next-attempt time; memory only. */
28
+ export declare class RetryBackoff {
29
+ #private;
30
+ private readonly policy;
31
+ /** Consecutive failures since the last success. */
32
+ attempts: number;
33
+ /** Time of the first failure of the current run (host clock, ms); 0 when none. */
34
+ since: number;
35
+ /** Error of the latest failure. */
36
+ last: unknown;
37
+ constructor(policy?: Readonly<RetryPolicy>);
38
+ /** Host-clock time (ms) of the next attempt. */
39
+ get next(): number;
40
+ /** Whether an attempt may be made at `now`. */
41
+ due(now: number): boolean;
42
+ /** Record a failure at `now` and schedule the next attempt. */
43
+ failed(now: number, error: unknown): void;
44
+ /** Whether failures have lasted at least `boundMs` by `now`. */
45
+ exhausted(now: number, boundMs: number): boolean;
46
+ /** Forget failures after a success. */
47
+ succeeded(): void;
48
+ }
49
+ //# sourceMappingURL=retry-backoff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry-backoff.d.ts","sourceRoot":"","sources":["../../../src/app/runtime/retry-backoff.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oGAAoG;AACpG,eAAO,MAAM,aAAa,OAAQ,CAAC;AACnC,sCAAsC;AACtC,eAAO,MAAM,YAAY,QAAS,CAAC;AACnC,uFAAuF;AACvF,eAAO,MAAM,cAAc,SAAU,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,iDAAiD;AACjD,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAIrD,CAAC;AAEH,yEAAyE;AACzE,qBAAa,YAAY;;IASX,OAAO,CAAC,QAAQ,CAAC,MAAM;IARnC,mDAAmD;IACnD,QAAQ,SAAK;IACb,kFAAkF;IAClF,KAAK,SAAK;IACV,mCAAmC;IACnC,IAAI,EAAE,OAAO,CAAQ;gBAGQ,MAAM,GAAE,QAAQ,CAAC,WAAW,CAAwB;IAEjF,gDAAgD;IAChD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,+CAA+C;IAC/C,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIzB,+DAA+D;IAC/D,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAOzC,gEAAgE;IAChE,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAIhD,uCAAuC;IACvC,SAAS,IAAI,IAAI;CAMlB"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Shared pieces of the library workflow contract.
3
+ *
4
+ * Library workflows follow one shape: `begin*` is an explicit operation that
5
+ * returns after local commit, `*Status` is a pure synchronous read, and
6
+ * `waitFor*` only observes. A wait never starts runtime workers: a host that
7
+ * already runs a runtime must not get a second poller and escrow loop. One-shot
8
+ * hosts such as the CLI run the runtime around the wait themselves
9
+ * (`cli/common/runtime-workers.ts`). Remote and time-driven outcomes, including
10
+ * an expired wait, are returned values; only caller-contract, invariant and
11
+ * infrastructure failures throw.
12
+ */
13
+ import { type Operation } from "effection";
14
+ import type { Signaler } from "../notifications/signaling.js";
15
+ import { type RuntimeClock } from "./runtime-clock.js";
16
+ /** Workflow families that publish changes. */
17
+ export type WorkflowKind = "oobi" | "query" | "event" | "delegation" | "group" | "issuance" | "ipex" | "presentation" | "unblinding"
18
+ /** A registry root copy was retained; `id` is the registry. */
19
+ | "root";
20
+ /** Identity of a workflow whose status may have changed; consumers re-read status. */
21
+ export interface WorkflowChange {
22
+ kind: WorkflowKind;
23
+ id: string;
24
+ }
25
+ /**
26
+ * Receiver of change identities. Owners publish after their commit and never
27
+ * depend on what the sink does with it; a sink must not throw into a workflow.
28
+ */
29
+ export interface ChangeSink {
30
+ push(change: WorkflowChange): void;
31
+ }
32
+ /**
33
+ * Result of a library wait. `settled` means the status reached a terminal or
34
+ * wanted state; `timed-out` means the budget expired first. Either way `status`
35
+ * is the status read at return, so a caller never needs a second read to explain
36
+ * the outcome. `Timed` adds fields to the timed-out arm (default: the budget).
37
+ */
38
+ export type WaitResult<S, Timed extends object = {
39
+ timeoutMs: number;
40
+ }> = {
41
+ readonly outcome: "settled";
42
+ readonly status: S;
43
+ } | ({
44
+ readonly outcome: "timed-out";
45
+ readonly status: S;
46
+ } & Readonly<Timed>);
47
+ /** In-memory sink that records changes in order. */
48
+ export declare class MemoryChangeSink implements ChangeSink {
49
+ readonly changes: WorkflowChange[];
50
+ push(change: WorkflowChange): void;
51
+ }
52
+ /**
53
+ * Back a sink with the host's transient `Signaler`. Publishing needs no polling:
54
+ * `push` is a synchronous append that collapses repeats of one workflow into a
55
+ * single signal (collapse key `kind:id`). Delivery is pull-based, though: the
56
+ * Signaler has no subscriber hook, so the consumer must read `signaler.list()`.
57
+ * A closed or failing Signaler drops the change instead of throwing: a hint must
58
+ * never break the workflow that published it.
59
+ */
60
+ export declare function signalerChangeSink(signaler: Pick<Signaler, "push">): ChangeSink;
61
+ /**
62
+ * Observe-only wait: poll `done`, yielding to the scheduler between checks,
63
+ * until it holds or the deadline passes. Starts no worker and has no effects of
64
+ * its own.
65
+ *
66
+ * @param done Synchronous status read; checked before the first yield.
67
+ * @param pollMs Elapsed milliseconds between checks. Omitted: yield one scheduler turn.
68
+ * @returns True when `done` held, false when `timeoutMs` elapsed first.
69
+ */
70
+ export declare function observeUntil(done: () => boolean, { timeoutMs, clock, pollMs }: {
71
+ timeoutMs: number;
72
+ clock?: Pick<RuntimeClock, "now">;
73
+ pollMs?: number;
74
+ }): Operation<boolean>;
75
+ /**
76
+ * Wait `milliseconds` on the host's clock, so a fake clock drives it and cancellation releases the timer.
77
+ */
78
+ export declare function waitOnClock(clock: RuntimeClock, milliseconds: number): Operation<void>;
79
+ //# sourceMappingURL=workflow-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-contract.d.ts","sourceRoot":"","sources":["../../../src/app/runtime/workflow-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAU,KAAK,SAAS,EAAS,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAGpE,8CAA8C;AAC9C,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,OAAO,GACP,OAAO,GACP,YAAY,GACZ,OAAO,GACP,UAAU,GACV,MAAM,GACN,cAAc,GACd,YAAY;AACd,+DAA+D;GAC7D,MAAM,CAAC;AAEX,sFAAsF;AACtF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM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,OAAO,CAAC;IAC1B,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED,gGAAgG;AAChG,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;;;;;OAOG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;CACvD;AAED,uGAAuG;AACvG,MAAM,WAAW,UAAU;IACzB,qFAAqF;IACrF,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;IAEzB;;;;;;;OAOG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;IACtE;;;;;;;;;;OAUG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAC1E;AAmBD;;;;;;GAMG;AACH,qBAAa,eAAgB,YAAW,UAAU;IAChD;;;;;;;OAOG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,SAAS,CAAC,YAAY,CAAC;IASzE;;;;;;;;;;OAUG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,SAAS,CAAC,kBAAkB,CAAC;CAyH7E"}
@@ -0,0 +1,26 @@
1
+ import type { Operation } from "effection";
2
+ import type { DelegationWorkflowStatus } from "../../app/identity/delegating.js";
3
+ import { completeEvent, type EventCompletionDeps } from "../../app/identity/event-completion.js";
4
+ import type { Habery } from "../../app/identity/habbing.js";
5
+ import { KelPublisher } from "../../app/mailbox/kel-publisher.js";
6
+ import type { HttpClient } from "../../app/transport/http-client.js";
7
+ /** Event-completion dependencies of a command, with the publisher that tells mailboxes after a rotation. */
8
+ export interface CliEventCompletionDeps extends EventCompletionDeps {
9
+ readonly publisher: KelPublisher;
10
+ }
11
+ /**
12
+ * Compose event-completion dependencies for one CLI command.
13
+ *
14
+ * A short-lived runtime is created only when a delegated event needs workers.
15
+ * It is lent to the library for that one scope with its workers running around
16
+ * the library's observe-only wait, and closed on every exit path.
17
+ */
18
+ export declare function cliEventCompletionDeps(hby: Habery, http: HttpClient): CliEventCompletionDeps;
19
+ /**
20
+ * `completeEvent` for commands: an expired delegation wait fails the command with
21
+ * the text the CLI has always printed, then the caller sees the usual result.
22
+ */
23
+ export declare function completeEventOrThrow(deps: CliEventCompletionDeps, ...args: Parameters<typeof completeEvent> extends [unknown, ...infer Rest] ? Rest : never): Operation<{
24
+ delegationPhase: DelegationWorkflowStatus["phase"] | null;
25
+ }>;
26
+ //# sourceMappingURL=event-completion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-completion.d.ts","sourceRoot":"","sources":["../../../src/cli/common/event-completion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAIlE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAGrE,4GAA4G;AAC5G,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;CAClC;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,sBAAsB,CAuB5F;AAED;;;GAGG;AACH,wBAAiB,oBAAoB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GACxF,SAAS,CAAC;IAAE,eAAe,EAAE,wBAAwB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC,CAS1E"}
@@ -0,0 +1,23 @@
1
+ import { type Operation } from "effection";
2
+ import type { Hab } from "../../app/identity/habbing.js";
3
+ import { type AgentRuntime } from "../../app/runtime/agent-runtime.js";
4
+ import type { AgentCue } from "../../core/cues.js";
5
+ import type { Deck } from "../../core/deck.js";
6
+ /**
7
+ * Run the runtime workers around one observe-only library call.
8
+ *
9
+ * Library workflows only observe (see `app/runtime/workflow-contract.ts`); a
10
+ * one-shot CLI command has no running runtime, so it supplies the workers here.
11
+ * The worker is halted and joined on success, failure and cancellation before
12
+ * the caller can release stores.
13
+ *
14
+ * @param runtime Borrowed composed runtime; the command owns its lifetime.
15
+ * @param options Signer, mailbox polling and command-owned query cue Deck.
16
+ * @param use Observe-only operation that depends on the workers' progress.
17
+ */
18
+ export declare function withRuntimeWorkers<T>(runtime: AgentRuntime, options: {
19
+ hab?: Hab;
20
+ pollMailbox?: boolean;
21
+ queryCues?: Deck<AgentCue>;
22
+ }, use: () => Operation<T>): Operation<T>;
23
+ //# sourceMappingURL=runtime-workers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-workers.d.ts","sourceRoot":"","sources":["../../../src/cli/common/runtime-workers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAS,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,KAAK,YAA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AAC1E,wBAAiB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,CAE1F;AAED;;;GAGG;AACH,wBAAiB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,CAuB1F;AAED;;;;GAIG;AACH,wBAAiB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,eAAe,CAAC,CAwG3F;AAED;;;;GAIG;AACH,wBAAiB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,eAAe,CAAC,CA8E3F;AAED,yEAAyE;AACzE,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAgB/E;AAED,yGAAyG;AACzG,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,CAsCzF;AAED;;;;GAIG;AACH,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,CAQzF;AAED,qFAAqF;AACrF,wBAAiB,gBAAgB,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,KAAK,GAAG,IAAI,EACnB,QAAQ,EAAE,eAAe,GACxB,SAAS,CAAC,cAAc,CAAC,CAiH3B"}
@@ -1,4 +1,4 @@
1
- import { type Operation } from "effection";
1
+ import type { Operation } from "effection";
2
2
  import { type CredentialRevokeResult } from "../../app/credentials/credential-revoking.js";
3
3
  import { type IssueResult, type RegistryResult } from "../../app/credentials/credential-workflows.js";
4
4
  /** Implement `tufa vc schema import` by pinning JSON schemas into `schema.`. */
@@ -1 +1 @@
1
- {"version":3,"file":"vc.d.ts","sourceRoot":"","sources":["../../../src/cli/credentials/vc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,SAAS,EAAS,MAAM,WAAW,CAAC;AAExD,OAAO,EACL,KAAK,sBAAsB,EAI5B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAOL,KAAK,WAAW,EAGhB,KAAK,cAAc,EACpB,MAAM,+CAA+C,CAAC;AAiEvD,gFAAgF;AAChF,wBAAiB,qBAAqB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAWrF;AAED;;;;GAIG;AACH,wBAAiB,uBAAuB,CACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,cAAc,CAAC,CA6B3B;AAED,uEAAuE;AACvE,wBAAiB,qBAAqB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAOrF;AAED,2EAA2E;AAC3E,wBAAiB,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAKvF;AAED;;;;GAIG;AACH,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC,CA6DtF;AAED,oEAAoE;AACpE,wBAAiB,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAgB7E;AAED,mFAAmF;AACnF,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAa/E;AAED;;;;;;;;GAQG;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AAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAgB7E;AAED,mFAAmF;AACnF,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAa/E;AAED;;;;;;;;GAQG;AACH,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAyB/E;AAED;;;;GAIG;AACH,wBAAiB,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,sBAAsB,CAAC,CA8CjG"}
@@ -1 +1 @@
1
- {"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../../src/cli/endpoints/did.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAqD3C,iCAAiC;AACjC,wBAAiB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAsC9E;AAED,qCAAqC;AACrC,wBAAiB,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CA2ClF;AAED;;;;GAIG;AACH,wBAAiB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAwBjF;AAED,oCAAoC;AACpC,wBAAiB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CA4BjF"}
1
+ {"version":3,"file":"did.d.ts","sourceRoot":"","sources":["../../../src/cli/endpoints/did.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAuD3C,iCAAiC;AACjC,wBAAiB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAsC9E;AAED,qCAAqC;AACrC,wBAAiB,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CA2ClF;AAED;;;;GAIG;AACH,wBAAiB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAwBjF;AAED,oCAAoC;AACpC,wBAAiB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAgCjF"}
@@ -16,7 +16,9 @@ export declare function oobiGenerateCommand(args: Record<string, unknown>): Oper
16
16
  *
17
17
  * The command queues one OOBI job, runs the shared workers, and succeeds only if
18
18
  * the URL lands in `roobi.`. Any reply/event material fetched from the OOBI is
19
- * forced through the same parser/routing path used by the long-lived host.
19
+ * forced through the same parser/routing path used by the long-lived host. It
20
+ * waits on that URL's own record, never on unrelated pending runtime work such
21
+ * as group proposals or delegation escrows.
20
22
  */
21
23
  export declare function oobiResolveCommand(args: Record<string, unknown>): Operation<void>;
22
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"oobi.d.ts","sourceRoot":"","sources":["../../../src/cli/endpoints/oobi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA8D3C;;;;;;;;;;GAUG;AACH,wBAAiB,mBAAmB,CAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAwFjB;AAED;;;;;;GAMG;AACH,wBAAiB,kBAAkB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAkDjB;AAED;;;;;;;GAOG;AACH,wBAAiB,kBAAkB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CA8DjB"}
1
+ {"version":3,"file":"oobi.d.ts","sourceRoot":"","sources":["../../../src/cli/endpoints/oobi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA8D3C;;;;;;;;;;GAUG;AACH,wBAAiB,mBAAmB,CAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAwFjB;AAED;;;;;;;;GAQG;AACH,wBAAiB,kBAAkB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CA+CjB;AAED;;;;;;;GAOG;AACH,wBAAiB,kBAAkB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CA8DjB"}
@@ -1,4 +1,4 @@
1
- import { type Operation } from "effection";
1
+ import type { Operation } from "effection";
2
2
  /** Implement `tufa challenge generate`. */
3
3
  export declare function challengeGenerateCommand(args: Record<string, unknown>): Operation<void>;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"challenge.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/challenge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAS,MAAM,WAAW,CAAC;AAsD1D,2CAA2C;AAC3C,wBAAiB,wBAAwB,CACvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CASjB;AAED;;;;GAIG;AACH,wBAAiB,uBAAuB,CACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CA+DjB;AAED,0GAA0G;AAC1G,wBAAiB,sBAAsB,CACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAwFjB"}
1
+ {"version":3,"file":"challenge.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAoD3C,2CAA2C;AAC3C,wBAAiB,wBAAwB,CACvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CASjB;AAED;;;;GAIG;AACH,wBAAiB,uBAAuB,CACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAmDjB;AAED,0GAA0G;AAC1G,wBAAiB,sBAAsB,CACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAqFjB"}
@@ -1,4 +1,17 @@
1
- import { type Operation } from "effection";
1
+ /**
2
+ * Delegator-side CLI approval for pending delegated events.
3
+ *
4
+ * KERIpy correspondence:
5
+ * - this is the bounded command analogue of KLI's delegation approval flow
6
+ * - pending work is discovered from durable `delegables.` escrow, not from
7
+ * controller notifications
8
+ *
9
+ * Maintainer rule:
10
+ * - `/delegate/request` notifications are UI hints only
11
+ * - approval ordering and event selection come from the delegated-event escrows
12
+ * and the delegator's own KEL state
13
+ */
14
+ import type { Operation } from "effection";
2
15
  /** Approve pending delegated events for the selected local delegator habitat. */
3
16
  export declare function delegateConfirmCommand(args: Record<string, unknown>): Operation<void>;
4
17
  //# sourceMappingURL=delegate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/delegate.ts"],"names":[],"mappings":"AAcA,OAAO,EAAQ,KAAK,SAAS,EAAsB,MAAM,WAAW,CAAC;AA0YrE,iFAAiF;AACjF,wBAAiB,sBAAsB,CACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAuCjB"}
1
+ {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/delegate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAmM3C,iFAAiF;AACjF,wBAAiB,sBAAsB,CACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CA0CjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"incept.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/incept.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA6EjD;;;;;;GAMG;AACH,wBAAiB,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CA6J7E"}
1
+ {"version":3,"file":"incept.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/incept.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAuEjD;;;;;;GAMG;AACH,wBAAiB,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAmI7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"interact.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/interact.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA+B3C;;;;;;;;;GASG;AACH,wBAAiB,eAAe,CAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CA0FjB"}
1
+ {"version":3,"file":"interact.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/interact.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA+B3C;;;;;;;;;GASG;AACH,wBAAiB,eAAe,CAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,SAAS,CAAC,IAAI,CAAC,CAuEjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"rotate.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/rotate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AAIzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAgG3C;;;;;;;;;GASG;AACH,wBAAiB,aAAa,CAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,EAAE,YAAY,EAAE,GAAE;IAAE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,KAAK,cAAc,CAAA;CAAO,GACnG,SAAS,CAAC,IAAI,CAAC,CAqJjB"}
1
+ {"version":3,"file":"rotate.d.ts","sourceRoot":"","sources":["../../../src/cli/identity/rotate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA4F3C;;;;;;;;;GASG;AACH,wBAAiB,aAAa,CAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,EAAE,YAAY,EAAE,GAAE;IAAE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,KAAK,cAAc,CAAA;CAAO,GACnG,SAAS,CAAC,IAAI,CAAC,CAgHjB"}
@@ -8,8 +8,9 @@
8
8
  export { parseGvrsn } from "../core/attachment-countering.js";
9
9
  export { type AgentRuntimeContext, type CommandContextDependencies, type CommandHaberyOptions, type CommandStoreArgs, type HabAgentRuntimeContext, type HabContext, type HaberyContext, withAgentRuntime, withExistingHab, withExistingHabery, withHabAndAgentRuntime, } from "./common/context.js";
10
10
  export { type EnsuredHabery, ensureHby, setupHby } from "./common/existing.js";
11
- export { parseBooleanOption, parseCountOption, parseIntegerOption, parseNumberOption, parseStringListOption, parseStringOption, } from "./common/parsing.js";
11
+ export { parseBooleanOption, parseCountOption, parseIntegerOption, parseKeriVersionOption, parseNumberOption, parseStringListOption, parseStringOption, } from "./common/parsing.js";
12
12
  export { writeJsonLine, writeTextLines } from "./common/rendering.js";
13
+ export { withRuntimeWorkers } from "./common/runtime-workers.js";
13
14
  export { resolveWitnessAuths, type WitnessAuthOptions } from "./common/witness-auth.js";
14
15
  export { ipexAdmitCommand, type IpexAdmitResult, ipexAgreeCommand, ipexApplyCommand, ipexGrantCommand, type IpexGrantResult, ipexJoinCommand, type IpexJoinOptions, type IpexJoinResult, ipexListCommand, ipexOfferCommand, ipexPollCommand, type IpexPollResult, type IpexSendResult, ipexSpurnCommand, joinIpexProposal, } from "./credentials/ipex.js";
15
16
  export { vcCreateCommand, vcExportCommand, vcImportCommand, vcListCommand, vcRegistryInceptCommand, vcRegistryListCommand, vcRegistryStatusCommand, vcRevokeCommand, vcSchemaImportCommand, } from "./credentials/vc.js";
@@ -30,6 +31,7 @@ export { rotateCommand } from "./identity/rotate.js";
30
31
  export { exchangeSendCommand } from "./messaging/exchange.js";
31
32
  export { type GroupEventResult, multisigInceptCommand, multisigInteractCommand, multisigJoinCommand, type MultisigJoinResult, multisigRotateCommand, multisigRpyCommand, type RootCopyOutcome, } from "./messaging/multisig.js";
32
33
  export { notificationsListCommand, notificationsMarkReadCommand, notificationsRemoveCommand, } from "./messaging/notifications.js";
34
+ export { type RootCopyLine, rootCopyLine, RootCopyRecoveryCommand, type RootResealLine, rootResealLine, } from "./messaging/root-copy-lines.js";
33
35
  export { annotateCommand } from "./tools/annotate.js";
34
36
  export { benchmarkCommand } from "./tools/benchmark.js";
35
37
  export { dumpEvts } from "./tools/db-dump.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oFAAoF;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,gBAAgB,EAChB,g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O,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,KAAK,gBAAgB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,YAAY,EACjB,YAAY,EACZ,uBAAuB,EACvB,KAAK,cAAc,EACnB,cAAc,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * `tufa multisig join` proposal selection, as KERIpy `kli multisig join`.
3
+ *
4
+ * Join approves exactly one stored proposal, the first the user consents to:
5
+ * - an explicit `--said` names the proposal, otherwise the unapproved proposals
6
+ * the notice store announces are offered in notice order;
7
+ * - without `--auto` every offered proposal is shown and approved only on a yes;
8
+ * - with `--auto` the first offered proposal is approved without a prompt. This is
9
+ * the whole of auto consent: it exists only inside the `join` the user ran for
10
+ * that purpose, and no other command signs a proposal it was not asked to sign.
11
+ *
12
+ * Signing, publication and the Counselor hand-off belong to `approveGroupProposal`.
13
+ */
14
+ import { type Operation } from "effection";
15
+ import { type GroupApprovalChoices, type GroupApprovalDeps, type GroupApprovalResult, type GroupProposal } from "../../app/multisig/proposals.js";
16
+ import type { Notifier } from "../../app/notifications/notifying.js";
17
+ /** Approval collaborators with a notice store that can also be cleared of the joined proposal. */
18
+ export type JoinDeps = Omit<GroupApprovalDeps, "notifier"> & {
19
+ readonly notifier: Pick<Notifier, "list" | "remove"> | null;
20
+ };
21
+ /** What the user is asked, and what a host-chosen answer carries into the approval. */
22
+ export interface JoinPrompts {
23
+ /** Whether the user consents to sign this proposal. */
24
+ confirm(proposal: GroupProposal): boolean;
25
+ /** Local alias for a group this member has not joined yet. */
26
+ groupAlias(proposal: GroupProposal): string;
27
+ /** Local name for a registry proposal. */
28
+ registryName(proposal: GroupProposal): string;
29
+ /** Extra approval inputs such as the Counselor's memory-only choices; may refuse by throwing. */
30
+ inputs(proposal: GroupProposal): GroupApprovalChoices;
31
+ }
32
+ /** One selection pass over stored proposals. */
33
+ export interface JoinOptions extends JoinPrompts {
34
+ /** Group prefix or alias that proposals must belong to; a name not yet used (a group to be created) filters nothing. */
35
+ group?: string;
36
+ /** Wrapper SAID of the one proposal to approve. */
37
+ said?: string;
38
+ /** Epoch milliseconds after which an empty search gives up. */
39
+ deadline: number;
40
+ }
41
+ /** The proposal that was approved and what approval did. */
42
+ export interface JoinedProposal {
43
+ proposal: GroupProposal;
44
+ result: GroupApprovalResult;
45
+ }
46
+ /**
47
+ * Approve the first proposal the user consents to, polling stored proposals until
48
+ * the deadline. A declined proposal is not offered again by this call. Returns
49
+ * null when nothing was approved; the host owns the runtime that delivers new
50
+ * proposals while this waits.
51
+ */
52
+ export declare function joinProposal(deps: JoinDeps, options: JoinOptions): Operation<JoinedProposal | null>;
53
+ //# sourceMappingURL=group-join.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-join.d.ts","sourceR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EAAE,WAAW,GAAG,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAkCpG"}
@@ -0,0 +1,34 @@
1
+ import type { Operation } from "effection";
2
+ import type { Hab, Habery } from "../../app/identity/habbing.js";
3
+ import { type CounselInputs, type GroupEventRef } from "../../app/multisig/counseling.js";
4
+ import type { AgentRuntime } from "../../app/runtime/agent-runtime.js";
5
+ /** Witness authorization choices of a group command. */
6
+ export interface WitnessChoices {
7
+ code?: string[];
8
+ codeTime?: string;
9
+ authenticate?: boolean;
10
+ }
11
+ /** The local hab that sends a delegated group event's traffic; the user must name it. */
12
+ export declare function delegationProxy(hby: Habery, alias: string | undefined, label: string): Hab;
13
+ /**
14
+ * Counselor inputs for a proposed event. `fallbackAfterMs: 0` makes every member
15
+ * submit witness receipts and publish the delegation request, as this command
16
+ * always has; KERIpy's `kli` elects one member and the others only fetch.
17
+ */
18
+ export declare function counselInputs(hby: Habery, proxy?: string, delegated?: boolean, label?: string): CounselInputs;
19
+ /** Wait until the exact event is accepted here, replaced at its sn, or the deadline passes. */
20
+ export declare function waitForAcceptance(hby: Habery, runtime: AgentRuntime, event: GroupEventRef, deadline: number): Operation<boolean>;
21
+ /** Witness Authorization values for the group's current witnesses, as `--code`/`--authenticate` choose. */
22
+ export declare function witnessAuths(hby: Habery, pre: string, args: WitnessChoices): import("../../runtime/index.js").WitnessAuthMap | undefined;
23
+ /** Give a counseled event this command's witness authorizations; memory only. */
24
+ export declare function supplyWitnessAuths(hby: Habery, runtime: AgentRuntime, event: GroupEventRef | undefined, args: WitnessChoices): void;
25
+ /** Give a delegated event just approved here its proxy; other events need none. */
26
+ export declare function supplyDelegationProxy(hby: Habery, runtime: AgentRuntime, event: GroupEventRef, alias?: string): void;
27
+ /**
28
+ * Wait for the Counselor to complete an accepted event: witness receipts and,
29
+ * for a delegated event, the delegator's approval.
30
+ *
31
+ * @returns The delegation phase for a delegated inception or rotation, else null.
32
+ */
33
+ export declare function finishAcceptedEvent(hby: Habery, runtime: AgentRuntime, event: GroupEventRef, args: WitnessChoices): Operation<string | null>;
34
+ //# sourceMappingURL=group-wait.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group-wait.d.ts","sourceRoot":"","sources":["../../../src/cli/messaging/group-wait.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAGnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAKvE,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAI1F;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,UAAQ,EAAE,KAAK,SAAK,GAAG,aAAa,CAEvG;AAED,+FAA+F;AAC/F,wBAAiB,iBAAiB,CAChC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,MAAM,GACf,SAAS,CAAC,OAAO,CAAC,CAOpB;AAED,2GAA2G;AAC3G,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,+DAO1E;AAED,iFAAiF;AACjF,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,OAAO,E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