keri-ts 0.5.0 → 0.6.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 (456) hide show
  1. package/README.md +7 -70
  2. package/esm/cesr/src/annotate/render.js +4 -1
  3. package/esm/cesr/src/core/parser-frame-parser.js +3 -2
  4. package/esm/cesr/src/version.js +2 -2
  5. package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
  6. package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.js +1 -1
  7. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.js +1 -1
  8. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.js +1 -1
  9. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.js +1 -1
  10. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.js +1 -1
  11. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.js +1 -1
  12. package/esm/deps/jsr.io/@std/path/1.1.5/_common/env.js +11 -0
  13. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.js +1 -1
  14. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.js +1 -1
  15. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.js +1 -1
  16. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.js +1 -1
  17. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.js +1 -1
  18. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.js +1 -1
  19. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.js +1 -1
  20. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.js +1 -1
  21. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.js +6 -3
  22. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.js +1 -1
  23. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.js +2 -2
  24. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.js +6 -3
  25. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.js +6 -3
  26. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.js +2 -2
  27. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.js +2 -2
  28. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.js +2 -2
  29. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.js +2 -2
  30. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.js +1 -1
  31. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.js +2 -2
  32. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.js +2 -2
  33. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.js +1 -1
  34. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.js +2 -2
  35. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.js +2 -2
  36. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.js +2 -2
  37. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.js +1 -1
  38. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.js +6 -1
  39. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.js +2 -1
  40. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.js +6 -1
  41. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.js +6 -1
  42. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.js +1 -1
  43. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.js +1 -1
  44. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.js +1 -1
  45. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.js +1 -1
  46. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.js +1 -1
  47. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.js +1 -1
  48. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.js +1 -1
  49. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.js +1 -1
  50. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.js +1 -1
  51. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.js +1 -1
  52. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.js +4 -9
  53. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.js +1 -1
  54. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.js +1 -1
  55. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.js +2 -2
  56. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.js +2 -2
  57. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.js +2 -2
  58. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.js +2 -2
  59. package/esm/deps/jsr.io/@std/path/1.1.5/types.js +3 -0
  60. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.js +1 -1
  61. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.js +2 -1
  62. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.js +2 -1
  63. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.js +2 -1
  64. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.js +2 -1
  65. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.js +1 -1
  66. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.js +1 -1
  67. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.js +1 -1
  68. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.js +1 -1
  69. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.js +1 -1
  70. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.js +1 -1
  71. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.js +1 -1
  72. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.js +1 -1
  73. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.js +1 -1
  74. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.js +1 -1
  75. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.js +5 -14
  76. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.js +1 -1
  77. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.js +1 -1
  78. package/esm/keri/src/app/agent-runtime.js +160 -6
  79. package/esm/keri/src/app/authenticating.js +8 -23
  80. package/esm/keri/src/app/cesr-http.js +273 -0
  81. package/esm/keri/src/app/cli/challenge.js +59 -16
  82. package/esm/keri/src/app/cli/common/displaying.js +43 -0
  83. package/esm/keri/src/app/cli/common/existing.js +88 -1
  84. package/esm/keri/src/app/cli/common/parsing.js +178 -10
  85. package/esm/keri/src/app/cli/db-dump.js +266 -44
  86. package/esm/keri/src/app/cli/delegate.js +232 -0
  87. package/esm/keri/src/app/cli/ends.js +2 -2
  88. package/esm/keri/src/app/cli/exchange.js +34 -40
  89. package/esm/keri/src/app/cli/export.js +14 -0
  90. package/esm/keri/src/app/cli/incept.js +38 -6
  91. package/esm/keri/src/app/cli/index.js +15 -3
  92. package/esm/keri/src/app/cli/init.js +13 -2
  93. package/esm/keri/src/app/cli/interact.js +116 -0
  94. package/esm/keri/src/app/cli/loc.js +2 -2
  95. package/esm/keri/src/app/cli/notifications.js +106 -0
  96. package/esm/keri/src/app/cli/oobi.js +77 -4
  97. package/esm/keri/src/app/cli/query.js +156 -0
  98. package/esm/keri/src/app/cli/rotate.js +221 -0
  99. package/esm/keri/src/app/cli/sign.js +67 -0
  100. package/esm/keri/src/app/cli/verify.js +83 -0
  101. package/esm/keri/src/app/configing.js +1 -1
  102. package/esm/keri/src/app/delegating.js +625 -0
  103. package/esm/keri/src/app/exchanging.js +29 -32
  104. package/esm/keri/src/app/forwarding.js +895 -0
  105. package/esm/keri/src/app/habbing.js +656 -245
  106. package/esm/keri/src/app/httping.js +83 -0
  107. package/esm/keri/src/app/keeping.js +10 -8
  108. package/esm/keri/src/app/mailbox-director.js +232 -102
  109. package/esm/keri/src/app/mailbox-sse.js +115 -0
  110. package/esm/keri/src/app/mailboxing.js +344 -0
  111. package/esm/keri/src/app/notifying.js +125 -0
  112. package/esm/keri/src/app/oobiery.js +146 -39
  113. package/esm/keri/src/app/organizing.js +108 -0
  114. package/esm/keri/src/app/parsering.js +363 -0
  115. package/esm/keri/src/app/query-transport.js +118 -0
  116. package/esm/keri/src/app/querying.js +13 -1
  117. package/esm/keri/src/app/reactor.js +18 -400
  118. package/esm/keri/src/app/respondant.js +132 -0
  119. package/esm/keri/src/app/signaling.js +168 -0
  120. package/esm/keri/src/app/version.js +2 -2
  121. package/esm/keri/src/app/witnessing.js +779 -0
  122. package/esm/keri/src/core/errors.js +0 -3
  123. package/esm/keri/src/core/eventing.js +172 -20
  124. package/esm/keri/src/core/kever.js +29 -16
  125. package/esm/keri/src/core/mailbox-topics.js +17 -0
  126. package/esm/keri/src/core/protocol-eventing.js +450 -0
  127. package/esm/keri/src/core/protocol-exchanging.js +124 -0
  128. package/esm/keri/src/core/protocol-serialization.js +215 -0
  129. package/esm/keri/src/core/records.js +46 -0
  130. package/esm/keri/src/core/routing.js +46 -24
  131. package/esm/keri/src/db/basing.js +68 -12
  132. package/esm/keri/src/db/core/lmdber.js +32 -7
  133. package/esm/keri/src/db/core/path-manager.js +1 -1
  134. package/esm/keri/src/db/index.js +3 -0
  135. package/esm/keri/src/db/mailboxing.js +178 -0
  136. package/esm/keri/src/db/noting.js +274 -0
  137. package/esm/keri/src/db/outboxing.js +322 -0
  138. package/esm/keri/src/library/index.js +13 -0
  139. package/esm/keri/src/npm/cli.js +3 -0
  140. package/esm/keri/src/npm/db.js +3 -0
  141. package/esm/keri/src/npm/index.js +5 -5
  142. package/esm/keri/src/npm/runtime.js +3 -0
  143. package/esm/keri/src/runtime/index.js +43 -0
  144. package/package.json +16 -14
  145. package/types/_dnt.shims.d.ts +1 -2
  146. package/types/_dnt.shims.d.ts.map +1 -1
  147. package/types/cesr/src/annotate/render.d.ts.map +1 -1
  148. package/types/cesr/src/core/parser-frame-parser.d.ts.map +1 -1
  149. package/types/cesr/src/primitives/matter.d.ts.map +1 -1
  150. package/types/cesr/src/version.d.ts +2 -2
  151. package/types/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
  152. package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts.map +1 -1
  153. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts.map +1 -1
  154. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts.map +1 -1
  155. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts.map +1 -1
  156. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts.map +1 -1
  157. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts.map +1 -1
  158. package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts +2 -0
  159. package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts.map +1 -0
  160. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts.map +1 -1
  161. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts.map +1 -1
  162. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts.map +1 -1
  163. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts.map +1 -1
  164. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts.map +1 -1
  165. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts.map +1 -1
  166. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts.map +1 -1
  167. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts.map +1 -1
  168. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.d.ts +4 -1
  169. package/types/deps/jsr.io/@std/path/1.1.5/basename.d.ts.map +1 -0
  170. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts.map +1 -1
  171. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts.map +1 -1
  172. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.d.ts +4 -1
  173. package/types/deps/jsr.io/@std/path/1.1.5/dirname.d.ts.map +1 -0
  174. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.d.ts +4 -1
  175. package/types/deps/jsr.io/@std/path/1.1.5/extname.d.ts.map +1 -0
  176. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts.map +1 -1
  177. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts.map +1 -1
  178. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts.map +1 -1
  179. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts.map +1 -1
  180. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts.map +1 -1
  181. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts.map +1 -1
  182. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts.map +1 -1
  183. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts.map +1 -1
  184. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts.map +1 -1
  185. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts.map +1 -1
  186. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts.map +1 -1
  187. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts.map +1 -1
  188. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.d.ts +5 -0
  189. package/types/deps/jsr.io/@std/path/1.1.5/posix/basename.d.ts.map +1 -0
  190. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts.map +1 -1
  191. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.d.ts +5 -0
  192. package/types/deps/jsr.io/@std/path/1.1.5/posix/dirname.d.ts.map +1 -0
  193. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.d.ts +5 -0
  194. package/types/deps/jsr.io/@std/path/1.1.5/posix/extname.d.ts.map +1 -0
  195. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts.map +1 -1
  196. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts.map +1 -1
  197. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts.map +1 -1
  198. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts.map +1 -1
  199. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts.map +1 -1
  200. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts.map +1 -1
  201. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts.map +1 -1
  202. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts.map +1 -1
  203. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts.map +1 -1
  204. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts.map +1 -1
  205. package/types/deps/jsr.io/@std/path/1.1.5/posix/resolve.d.ts.map +1 -0
  206. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts.map +1 -1
  207. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts.map +1 -1
  208. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts.map +1 -1
  209. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts.map +1 -1
  210. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts.map +1 -1
  211. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts.map +1 -1
  212. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts.map +1 -1
  213. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts.map +1 -1
  214. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.d.ts +1 -0
  215. package/types/deps/jsr.io/@std/path/1.1.5/windows/basename.d.ts.map +1 -0
  216. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts.map +1 -1
  217. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.d.ts +1 -0
  218. package/types/deps/jsr.io/@std/path/1.1.5/windows/dirname.d.ts.map +1 -0
  219. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.d.ts +1 -0
  220. package/types/deps/jsr.io/@std/path/1.1.5/windows/extname.d.ts.map +1 -0
  221. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts.map +1 -1
  222. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts.map +1 -1
  223. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts.map +1 -1
  224. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts.map +1 -1
  225. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts.map +1 -1
  226. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts.map +1 -1
  227. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts.map +1 -1
  228. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts.map +1 -1
  229. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts.map +1 -1
  230. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts.map +1 -1
  231. package/types/deps/jsr.io/@std/path/1.1.5/windows/resolve.d.ts.map +1 -0
  232. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts.map +1 -1
  233. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts.map +1 -1
  234. package/types/keri/src/app/agent-runtime.d.ts +67 -1
  235. package/types/keri/src/app/agent-runtime.d.ts.map +1 -1
  236. package/types/keri/src/app/authenticating.d.ts.map +1 -1
  237. package/types/keri/src/app/cesr-http.d.ts +117 -0
  238. package/types/keri/src/app/cesr-http.d.ts.map +1 -0
  239. package/types/keri/src/app/cli/challenge.d.ts.map +1 -1
  240. package/types/keri/src/app/cli/common/displaying.d.ts +12 -0
  241. package/types/keri/src/app/cli/common/displaying.d.ts.map +1 -0
  242. package/types/keri/src/app/cli/common/existing.d.ts +25 -6
  243. package/types/keri/src/app/cli/common/existing.d.ts.map +1 -1
  244. package/types/keri/src/app/cli/common/parsing.d.ts +69 -4
  245. package/types/keri/src/app/cli/common/parsing.d.ts.map +1 -1
  246. package/types/keri/src/app/cli/db-dump.d.ts +16 -4
  247. package/types/keri/src/app/cli/db-dump.d.ts.map +1 -1
  248. package/types/keri/src/app/cli/delegate.d.ts +3 -0
  249. package/types/keri/src/app/cli/delegate.d.ts.map +1 -0
  250. package/types/keri/src/app/cli/ends.d.ts.map +1 -1
  251. package/types/keri/src/app/cli/exchange.d.ts +6 -6
  252. package/types/keri/src/app/cli/exchange.d.ts.map +1 -1
  253. package/types/keri/src/app/cli/export.d.ts.map +1 -1
  254. package/types/keri/src/app/cli/incept.d.ts.map +1 -1
  255. package/types/keri/src/app/cli/index.d.ts +15 -3
  256. package/types/keri/src/app/cli/index.d.ts.map +1 -1
  257. package/types/keri/src/app/cli/init.d.ts.map +1 -1
  258. package/types/keri/src/app/cli/interact.d.ts +20 -0
  259. package/types/keri/src/app/cli/interact.d.ts.map +1 -0
  260. package/types/keri/src/app/cli/loc.d.ts.map +1 -1
  261. package/types/keri/src/app/cli/notifications.d.ts +5 -0
  262. package/types/keri/src/app/cli/notifications.d.ts.map +1 -0
  263. package/types/keri/src/app/cli/oobi.d.ts +7 -0
  264. package/types/keri/src/app/cli/oobi.d.ts.map +1 -1
  265. package/types/keri/src/app/cli/query.d.ts +12 -0
  266. package/types/keri/src/app/cli/query.d.ts.map +1 -0
  267. package/types/keri/src/app/cli/rotate.d.ts +23 -0
  268. package/types/keri/src/app/cli/rotate.d.ts.map +1 -0
  269. package/types/keri/src/app/cli/sign.d.ts +24 -0
  270. package/types/keri/src/app/cli/sign.d.ts.map +1 -0
  271. package/types/keri/src/app/cli/verify.d.ts +24 -0
  272. package/types/keri/src/app/cli/verify.d.ts.map +1 -0
  273. package/types/keri/src/app/delegating.d.ts +140 -0
  274. package/types/keri/src/app/delegating.d.ts.map +1 -0
  275. package/types/keri/src/app/exchanging.d.ts.map +1 -1
  276. package/types/keri/src/app/forwarding.d.ts +304 -0
  277. package/types/keri/src/app/forwarding.d.ts.map +1 -0
  278. package/types/keri/src/app/habbing.d.ts +178 -7
  279. package/types/keri/src/app/habbing.d.ts.map +1 -1
  280. package/types/keri/src/app/httping.d.ts +34 -0
  281. package/types/keri/src/app/httping.d.ts.map +1 -0
  282. package/types/keri/src/app/keeping.d.ts.map +1 -1
  283. package/types/keri/src/app/mailbox-director.d.ts +99 -34
  284. package/types/keri/src/app/mailbox-director.d.ts.map +1 -1
  285. package/types/keri/src/app/mailbox-sse.d.ts +21 -0
  286. package/types/keri/src/app/mailbox-sse.d.ts.map +1 -0
  287. package/types/keri/src/app/mailboxing.d.ts +208 -0
  288. package/types/keri/src/app/mailboxing.d.ts.map +1 -0
  289. package/types/keri/src/app/notifying.d.ts +32 -0
  290. package/types/keri/src/app/notifying.d.ts.map +1 -0
  291. package/types/keri/src/app/oobiery.d.ts +42 -1
  292. package/types/keri/src/app/oobiery.d.ts.map +1 -1
  293. package/types/keri/src/app/organizing.d.ts +36 -0
  294. package/types/keri/src/app/organizing.d.ts.map +1 -0
  295. package/types/keri/src/app/parsering.d.ts +29 -0
  296. package/types/keri/src/app/parsering.d.ts.map +1 -0
  297. package/types/keri/src/app/protocol-host-policy.d.ts +27 -0
  298. package/types/keri/src/app/protocol-host-policy.d.ts.map +1 -0
  299. package/types/keri/src/app/query-transport.d.ts +13 -0
  300. package/types/keri/src/app/query-transport.d.ts.map +1 -0
  301. package/types/keri/src/app/querying.d.ts +7 -0
  302. package/types/keri/src/app/querying.d.ts.map +1 -1
  303. package/types/keri/src/app/reactor.d.ts +12 -15
  304. package/types/keri/src/app/reactor.d.ts.map +1 -1
  305. package/types/keri/src/app/respondant.d.ts +43 -0
  306. package/types/keri/src/app/respondant.d.ts.map +1 -0
  307. package/types/keri/src/app/signaling.d.ts +64 -0
  308. package/types/keri/src/app/signaling.d.ts.map +1 -0
  309. package/types/keri/src/app/version.d.ts +2 -2
  310. package/types/keri/src/app/witnessing.d.ts +148 -0
  311. package/types/keri/src/app/witnessing.d.ts.map +1 -0
  312. package/types/keri/src/core/errors.d.ts +0 -3
  313. package/types/keri/src/core/errors.d.ts.map +1 -1
  314. package/types/keri/src/core/eventing.d.ts +13 -5
  315. package/types/keri/src/core/eventing.d.ts.map +1 -1
  316. package/types/keri/src/core/kever.d.ts.map +1 -1
  317. package/types/keri/src/core/mailbox-topics.d.ts +17 -0
  318. package/types/keri/src/core/mailbox-topics.d.ts.map +1 -1
  319. package/types/keri/src/core/protocol-eventing.d.ts +118 -0
  320. package/types/keri/src/core/protocol-eventing.d.ts.map +1 -0
  321. package/types/keri/src/core/protocol-exchanging.d.ts +36 -0
  322. package/types/keri/src/core/protocol-exchanging.d.ts.map +1 -0
  323. package/types/keri/src/core/protocol-serialization.d.ts +29 -0
  324. package/types/keri/src/core/protocol-serialization.d.ts.map +1 -0
  325. package/types/keri/src/core/records.d.ts +105 -0
  326. package/types/keri/src/core/records.d.ts.map +1 -1
  327. package/types/keri/src/core/routing.d.ts +25 -9
  328. package/types/keri/src/core/routing.d.ts.map +1 -1
  329. package/types/keri/src/db/basing.d.ts +20 -5
  330. package/types/keri/src/db/basing.d.ts.map +1 -1
  331. package/types/keri/src/db/core/lmdber.d.ts +11 -11
  332. package/types/keri/src/db/core/lmdber.d.ts.map +1 -1
  333. package/types/keri/src/db/index.d.ts +3 -0
  334. package/types/keri/src/db/index.d.ts.map +1 -1
  335. package/types/keri/src/db/mailboxing.d.ts +111 -0
  336. package/types/keri/src/db/mailboxing.d.ts.map +1 -0
  337. package/types/keri/src/db/noting.d.ts +106 -0
  338. package/types/keri/src/db/noting.d.ts.map +1 -0
  339. package/types/keri/src/db/outboxing.d.ts +160 -0
  340. package/types/keri/src/db/outboxing.d.ts.map +1 -0
  341. package/types/keri/src/library/index.d.ts +14 -0
  342. package/types/keri/src/library/index.d.ts.map +1 -0
  343. package/types/keri/src/npm/cli.d.ts +4 -0
  344. package/types/keri/src/npm/cli.d.ts.map +1 -0
  345. package/types/keri/src/npm/db.d.ts +4 -0
  346. package/types/keri/src/npm/db.d.ts.map +1 -0
  347. package/types/keri/src/npm/index.d.ts +5 -5
  348. package/types/keri/src/npm/index.d.ts.map +1 -1
  349. package/types/keri/src/npm/runtime.d.ts +4 -0
  350. package/types/keri/src/npm/runtime.d.ts.map +1 -0
  351. package/types/keri/src/runtime/index.d.ts +44 -0
  352. package/types/keri/src/runtime/index.d.ts.map +1 -0
  353. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
  354. package/esm/deps/jsr.io/@std/path/1.1.4/types.js +0 -3
  355. package/esm/keri/src/app/cli/agent.js +0 -77
  356. package/esm/keri/src/app/cli/cli-node.js +0 -9
  357. package/esm/keri/src/app/cli/cli.js +0 -83
  358. package/esm/keri/src/app/cli/command-definitions.js +0 -762
  359. package/esm/keri/src/app/index.js +0 -17
  360. package/esm/keri/src/app/server.js +0 -380
  361. package/esm/keri/src/core/index.js +0 -19
  362. package/esm/keri/src/core/messages.js +0 -81
  363. package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
  364. package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +0 -1
  365. package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +0 -1
  366. package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +0 -1
  367. package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +0 -1
  368. package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +0 -1
  369. package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +0 -1
  370. package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +0 -1
  371. package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +0 -1
  372. package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +0 -1
  373. package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +0 -1
  374. package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +0 -1
  375. package/types/keri/src/app/cli/agent.d.ts +0 -16
  376. package/types/keri/src/app/cli/agent.d.ts.map +0 -1
  377. package/types/keri/src/app/cli/cli-node.d.ts +0 -2
  378. package/types/keri/src/app/cli/cli-node.d.ts.map +0 -1
  379. package/types/keri/src/app/cli/cli.d.ts +0 -7
  380. package/types/keri/src/app/cli/cli.d.ts.map +0 -1
  381. package/types/keri/src/app/cli/command-definitions.d.ts +0 -17
  382. package/types/keri/src/app/cli/command-definitions.d.ts.map +0 -1
  383. package/types/keri/src/app/cli/command-types.d.ts +0 -21
  384. package/types/keri/src/app/cli/command-types.d.ts.map +0 -1
  385. package/types/keri/src/app/index.d.ts +0 -18
  386. package/types/keri/src/app/index.d.ts.map +0 -1
  387. package/types/keri/src/app/server.d.ts +0 -24
  388. package/types/keri/src/app/server.d.ts.map +0 -1
  389. package/types/keri/src/core/index.d.ts +0 -20
  390. package/types/keri/src/core/index.d.ts.map +0 -1
  391. package/types/keri/src/core/messages.d.ts +0 -41
  392. package/types/keri/src/core/messages.d.ts.map +0 -1
  393. /package/esm/keri/src/app/{cli/command-types.js → protocol-host-policy.js} +0 -0
  394. /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/_os.d.ts +0 -0
  395. /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts +0 -0
  396. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts +0 -0
  397. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts +0 -0
  398. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts +0 -0
  399. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts +0 -0
  400. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts +0 -0
  401. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts +0 -0
  402. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts +0 -0
  403. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts +0 -0
  404. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts +0 -0
  405. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts +0 -0
  406. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts +0 -0
  407. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts +0 -0
  408. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts +0 -0
  409. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts +0 -0
  410. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts +0 -0
  411. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts +0 -0
  412. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts +0 -0
  413. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts +0 -0
  414. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts +0 -0
  415. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts +0 -0
  416. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts +0 -0
  417. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts +0 -0
  418. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts +0 -0
  419. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts +0 -0
  420. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts +0 -0
  421. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts +0 -0
  422. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts +0 -0
  423. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts +0 -0
  424. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts +0 -0
  425. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts +0 -0
  426. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts +0 -0
  427. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts +0 -0
  428. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts +0 -0
  429. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts +0 -0
  430. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts +0 -0
  431. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts +0 -0
  432. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts +0 -0
  433. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts +0 -0
  434. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.d.ts +0 -0
  435. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts +0 -0
  436. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts +0 -0
  437. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts +0 -0
  438. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts +0 -0
  439. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts +0 -0
  440. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts +0 -0
  441. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts +0 -0
  442. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts +0 -0
  443. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts +0 -0
  444. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts +0 -0
  445. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts +0 -0
  446. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts +0 -0
  447. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts +0 -0
  448. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts +0 -0
  449. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts +0 -0
  450. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts +0 -0
  451. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts +0 -0
  452. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts +0 -0
  453. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts +0 -0
  454. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.d.ts +0 -0
  455. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts +0 -0
  456. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { normalize } from "./normalize.js";
4
4
  import { SEPARATOR_PATTERN } from "./constants.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_DOT } from "../_common/constants.js";
4
4
  import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { isPosixPathSeparator } from "./_util.js";
4
4
  import { resolve } from "./resolve.js";
@@ -1,8 +1,8 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import * as dntShim from "../../../../../../_dnt.shims.js";
4
3
  import { normalizeString } from "../_common/normalize_string.js";
5
4
  import { assertPath } from "../_common/assert_path.js";
5
+ import { cwd } from "../_common/env.js";
6
6
  import { isPosixPathSeparator } from "./_util.js";
7
7
  /**
8
8
  * Resolves path segments into a `path`.
@@ -27,12 +27,7 @@ export function resolve(...pathSegments) {
27
27
  if (i >= 0)
28
28
  path = pathSegments[i];
29
29
  else {
30
- // deno-lint-ignore no-explicit-any
31
- const { Deno } = dntShim.dntGlobalThis;
32
- if (typeof Deno?.cwd !== "function") {
33
- throw new TypeError("Resolved a relative path without a current working directory (CWD)");
34
- }
35
- path = Deno.cwd();
30
+ path = cwd("Resolved a relative path without a current working directory (CWD)");
36
31
  }
37
32
  assertPath(path);
38
33
  // Skip empty entries
@@ -43,7 +38,7 @@ export function resolve(...pathSegments) {
43
38
  resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0));
44
39
  }
45
40
  // At this point the path should be resolved to a full absolute path, but
46
- // handle relative paths to be safe (might happen when Deno.cwd() fails)
41
+ // handle relative paths to be safe (might happen when cwd() fails)
47
42
  // Normalize the path
48
43
  resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator);
49
44
  if (resolvedAbsolute) {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { encodeWhitespace } from "../_common/to_file_url.js";
4
4
  import { isAbsolute } from "./is_absolute.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  /**
4
4
  * Converts a path to a namespaced path. This function returns the path as is on posix.
@@ -1,6 +1,6 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.14/os.js";
4
4
  import { relative as posixRelative } from "./posix/relative.js";
5
5
  import { relative as windowsRelative } from "./windows/relative.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.14/os.js";
4
4
  import { resolve as posixResolve } from "./posix/resolve.js";
5
5
  import { resolve as windowsResolve } from "./windows/resolve.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.14/os.js";
4
4
  import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
5
5
  import { toFileUrl as windowsToFileUrl } from "./windows/to_file_url.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.14/os.js";
4
4
  import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
5
5
  import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.js";
6
6
  /**
@@ -0,0 +1,3 @@
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ export {};
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // Copyright the Browserify authors. MIT License.
3
3
  // Ported from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
4
  import { CHAR_COLON } from "../_common/constants.js";
@@ -24,6 +24,7 @@ import { fromFileUrl } from "./from_file_url.js";
24
24
  * @param path The path to extract the name from.
25
25
  * @param suffix The suffix to remove from extracted name.
26
26
  * @returns The extracted name.
27
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
27
28
  */
28
29
  export function basename(path, suffix = "") {
29
30
  if (path instanceof URL) {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  /**
4
4
  * The character used to separate entries in the PATH environment variable.
@@ -11,4 +11,5 @@ export const SEPARATOR = "\\";
11
11
  /**
12
12
  * A regular expression that matches one or more path separators.
13
13
  */
14
+ // deno-lint-ignore deno-style-guide/naming-convention
14
15
  export const SEPARATOR_PATTERN = /[\\/]+/;
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/dirname.js";
4
4
  import { CHAR_COLON } from "../_common/constants.js";
@@ -19,6 +19,7 @@ import { fromFileUrl } from "./from_file_url.js";
19
19
  *
20
20
  * @param path The path to get the directory from.
21
21
  * @returns The directory path.
22
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
22
23
  */
23
24
  export function dirname(path) {
24
25
  if (path instanceof URL) {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -18,6 +18,7 @@ import { fromFileUrl } from "./from_file_url.js";
18
18
  *
19
19
  * @param path The path to get the extension from.
20
20
  * @returns The extension of the `path`.
21
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
21
22
  */
22
23
  export function extname(path) {
23
24
  if (path instanceof URL) {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _format, assertArg } from "../_common/format.js";
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/from_file_url.js";
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { _globToRegExp, } from "../_common/glob_to_reg_exp.js";
4
4
  const constants = {
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_COLON } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertPath } from "../_common/assert_path.js";
4
4
  import { isPathSeparator } from "./_util.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { join } from "./join.js";
4
4
  import { SEPARATOR } from "./constants.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertArg } from "../_common/normalize.js";
4
4
  import { CHAR_COLON } from "../_common/constants.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { normalize } from "./normalize.js";
4
4
  import { SEPARATOR_PATTERN } from "./constants.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_COLON, CHAR_DOT } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_BACKWARD_SLASH } from "../_common/constants.js";
4
4
  import { resolve } from "./resolve.js";
@@ -1,9 +1,9 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import * as dntShim from "../../../../../../_dnt.shims.js";
4
3
  import { CHAR_COLON } from "../_common/constants.js";
5
4
  import { normalizeString } from "../_common/normalize_string.js";
6
5
  import { assertPath } from "../_common/assert_path.js";
6
+ import { cwd } from "../_common/env.js";
7
7
  import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
8
8
  /**
9
9
  * Resolves path segments into a `path`.
@@ -26,22 +26,14 @@ export function resolve(...pathSegments) {
26
26
  let resolvedAbsolute = false;
27
27
  for (let i = pathSegments.length - 1; i >= -1; i--) {
28
28
  let path;
29
- // deno-lint-ignore no-explicit-any
30
- const { Deno } = dntShim.dntGlobalThis;
31
29
  if (i >= 0) {
32
30
  path = pathSegments[i];
33
31
  }
34
32
  else if (!resolvedDevice) {
35
- if (typeof Deno?.cwd !== "function") {
36
- throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");
37
- }
38
- path = Deno.cwd();
33
+ path = cwd("Resolved a drive-letter-less path without a current working directory (CWD)");
39
34
  }
40
35
  else {
41
- if (typeof Deno?.env?.get !== "function" || typeof Deno?.cwd !== "function") {
42
- throw new TypeError("Resolved a relative path without a current working directory (CWD)");
43
- }
44
- path = Deno.cwd();
36
+ path = cwd("Resolved a relative path without a current working directory (CWD)");
45
37
  // Verify that a cwd was found and that it actually points
46
38
  // to our drive. If not, default to the drive's root.
47
39
  if (path === undefined ||
@@ -146,8 +138,7 @@ export function resolve(...pathSegments) {
146
138
  break;
147
139
  }
148
140
  // At this point the path should be resolved to a full absolute path,
149
- // but handle relative paths to be safe (might happen when Deno.cwd()
150
- // fails)
141
+ // but handle relative paths to be safe (might happen when cwd() fails)
151
142
  // Normalize the tail path
152
143
  resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
153
144
  return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { encodeWhitespace } from "../_common/to_file_url.js";
4
4
  import { isAbsolute } from "./is_absolute.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { CHAR_BACKWARD_SLASH, CHAR_COLON, CHAR_DOT, CHAR_QUESTION_MARK, } from "../_common/constants.js";
4
4
  import { isWindowsDeviceRoot } from "./_util.js";
@@ -1,13 +1,20 @@
1
1
  import { spawn } from "effection";
2
2
  import { Deck } from "../core/deck.js";
3
+ import { DELEGATE_MAILBOX_TOPIC, RECEIPT_MAILBOX_TOPIC, REPLAY_MAILBOX_TOPIC, REPLY_MAILBOX_TOPIC, } from "../core/mailbox-topics.js";
3
4
  import { Authenticator } from "./authenticating.js";
4
5
  import { loadChallengeHandlers } from "./challenging.js";
5
6
  import { cueDo, processCuesOnce } from "./cue-runtime.js";
7
+ import { Anchorer, loadDelegationHandlers } from "./delegating.js";
8
+ import { ForwardHandler, MailboxPoller, mailboxTopicForRoute, Poster } from "./forwarding.js";
6
9
  import { MailboxDirector } from "./mailbox-director.js";
7
- import { isWellKnownOobiUrl, Oobiery, parseOobiUrl } from "./oobiery.js";
10
+ import { openMailboxerForHabery } from "./mailboxing.js";
11
+ import { Notifier, openNoterForHabery } from "./notifying.js";
12
+ import { isWellKnownOobiUrl, loadOobiHandlers, Oobiery, parseOobiUrl } from "./oobiery.js";
8
13
  import { QueryCoordinator } from "./querying.js";
9
14
  import { Reactor } from "./reactor.js";
15
+ import { Respondant } from "./respondant.js";
10
16
  import { runtimeTurn } from "./runtime-turn.js";
17
+ import { Signaler } from "./signaling.js";
11
18
  /**
12
19
  * Create the shared runtime composition root used by CLI commands and
13
20
  * `tufa agent`.
@@ -17,24 +24,82 @@ import { runtimeTurn } from "./runtime-turn.js";
17
24
  * classes
18
25
  * - hosting style changes where the runtime is run, not what it is
19
26
  */
20
- export function createAgentRuntime(hby, options = {}) {
27
+ export function* createAgentRuntime(hby, options = {}) {
28
+ const mode = options.mode ?? "local";
29
+ const enableMailboxStore = options.enableMailboxStore ?? mode === "indirect";
30
+ const mailboxer = options.mailboxer
31
+ ?? (enableMailboxStore ? (yield* openMailboxerForHabery(hby)) : null);
32
+ const ownsMailboxer = options.mailboxer === undefined && mailboxer !== null;
33
+ const signaler = options.signaler
34
+ ?? options.notifier?.signaler
35
+ ?? (hby.signator ? new Signaler() : null);
36
+ const noter = options.noter
37
+ ?? options.notifier?.noter
38
+ ?? (!hby.readonly && hby.signator ? (yield* openNoterForHabery(hby)) : null);
39
+ const ownsNoter = options.noter === undefined
40
+ && options.notifier === undefined
41
+ && noter !== null;
42
+ const notifier = options.notifier
43
+ ?? (noter && signaler ? new Notifier(hby, { noter, signaler }) : null);
21
44
  const cues = new Deck();
22
45
  const reactor = new Reactor(hby, { cues });
23
46
  loadChallengeHandlers(hby.db, reactor.exchanger);
47
+ loadDelegationHandlers(hby, reactor.exchanger, notifier);
48
+ loadOobiHandlers(hby, reactor.exchanger, notifier);
49
+ const mailboxDirector = new MailboxDirector(hby, mailboxer ? { mailboxer } : {});
50
+ const poster = new Poster(hby, { mailboxer });
51
+ const respondant = new Respondant(hby, { poster, mailboxDirector });
52
+ if (mailboxer) {
53
+ reactor.exchanger.addHandler(new ForwardHandler(mailboxDirector));
54
+ }
55
+ for (const route of reactor.exchanger.routes.keys()) {
56
+ if (route === ForwardHandler.resource) {
57
+ continue;
58
+ }
59
+ const topic = mailboxTopicForRoute(route);
60
+ if (topic.length > 0) {
61
+ mailboxDirector.registerTopic(topic);
62
+ }
63
+ }
64
+ const mailboxPoller = new MailboxPoller(hby, mailboxDirector);
65
+ for (const topic of [
66
+ DELEGATE_MAILBOX_TOPIC,
67
+ RECEIPT_MAILBOX_TOPIC,
68
+ REPLAY_MAILBOX_TOPIC,
69
+ REPLY_MAILBOX_TOPIC,
70
+ ]) {
71
+ mailboxDirector.registerTopic(topic);
72
+ }
73
+ const querying = new QueryCoordinator(hby);
74
+ const delegating = new Anchorer(hby, { poster, querying });
24
75
  const oobiery = new Oobiery(hby, reactor, { cues });
25
76
  oobiery.registerReplyRoutes(reactor.router);
26
77
  const authenticator = new Authenticator(hby);
27
- const mailboxDirector = new MailboxDirector(hby.db);
28
- const querying = new QueryCoordinator(hby);
29
78
  return {
30
79
  hby,
31
- mode: options.mode ?? "local",
80
+ mode,
81
+ mailboxer,
82
+ noter,
83
+ notifier,
84
+ signaler,
32
85
  cues,
33
86
  reactor,
34
87
  oobiery,
35
88
  authenticator,
36
89
  mailboxDirector,
90
+ respondant,
91
+ mailboxPoller,
92
+ poster,
93
+ delegating,
37
94
  querying,
95
+ *close() {
96
+ if (ownsNoter && noter?.opened) {
97
+ yield* noter.close();
98
+ }
99
+ if (ownsMailboxer && mailboxer?.opened) {
100
+ yield* mailboxer.close();
101
+ }
102
+ },
38
103
  };
39
104
  }
40
105
  /**
@@ -55,6 +120,57 @@ export function ingestKeriBytes(runtime, bytes) {
55
120
  export function enqueueOobi(runtime, job) {
56
121
  runtime.oobiery.resolve(job.url, job.alias);
57
122
  }
123
+ /**
124
+ * Parse and settle one or more newly arrived KERI/CESR messages immediately.
125
+ *
126
+ * This is the shared ingress-settlement seam for mailbox-delivered batches and
127
+ * HTTP request payloads that should advance parser and escrow state together.
128
+ *
129
+ * Maintainer mental model:
130
+ * - this helper is intentionally route-policy-free
131
+ * - callers decide whether a message should be treated as `local` or ordinary
132
+ * remote ingress before calling it
133
+ * - once called, it always does the same two things: feed the parser and run
134
+ * one escrow replay turn
135
+ *
136
+ * Why `local` matters:
137
+ * - `local` is not an HTTP transport detail
138
+ * - it is a parser/runtime semantic switch used when the host is acting as the
139
+ * local controller or local witness for the received message
140
+ * - witness hosting relies on that distinction so accepted witness-targeted
141
+ * events emit witness cues rather than ordinary remote receipt cues
142
+ */
143
+ export function settleRuntimeIngress(runtime, messages, { local, } = {}) {
144
+ for (const message of messages) {
145
+ runtime.reactor.processChunk(message, { local });
146
+ }
147
+ runtime.reactor.processEscrowsOnce();
148
+ }
149
+ /**
150
+ * Settle one mailbox retrieval batch while preserving per-source boundaries.
151
+ *
152
+ * Local and remote poll results are intentionally processed batch-by-batch so
153
+ * follow-on escrow progress can occur before the next source is consumed.
154
+ */
155
+ export function settleMailboxPollBatch(runtime, batch) {
156
+ settleRuntimeIngress(runtime, batch.messages);
157
+ }
158
+ /**
159
+ * Drain one bounded mailbox polling turn and settle each returned batch.
160
+ *
161
+ * This keeps mailbox polling ownership inside the shared runtime surface so
162
+ * commands do not need to know how mailbox ingress is parsed and escrowed.
163
+ */
164
+ export function* processMailboxTurn(runtime, options = {}) {
165
+ runtime.mailboxPoller.configure({ hab: options.hab });
166
+ const batches = yield* runtime.mailboxPoller.processOnce({
167
+ budgetMs: options.budgetMs,
168
+ });
169
+ for (const batch of batches) {
170
+ settleMailboxPollBatch(runtime, batch);
171
+ }
172
+ return batches;
173
+ }
58
174
  /**
59
175
  * Drain one bounded runtime turn by delegating to component-owned flows.
60
176
  *
@@ -78,9 +194,16 @@ export function* processRuntimeTurn(runtime, options = {}) {
78
194
  runtime.reactor.processOnce();
79
195
  yield* runtime.oobiery.processOnce();
80
196
  yield* runtime.authenticator.processOnce();
197
+ yield* runtime.poster.processPending();
198
+ yield* runtime.delegating.processAllOnce();
199
+ runtime.signaler?.processOnce();
200
+ if (options.pollMailbox ?? true) {
201
+ yield* processMailboxTurn(runtime, { hab: options.hab });
202
+ }
81
203
  yield* processCuesOnce(runtime, { ...options, sink: runtime.querying });
82
204
  yield* runtime.querying.processPending();
83
205
  runtime.reactor.processEscrowsOnce();
206
+ yield* runtime.delegating.processAllOnce();
84
207
  yield* processCuesOnce(runtime, { ...options, sink: runtime.querying });
85
208
  yield* runtime.querying.processPending();
86
209
  }
@@ -101,6 +224,10 @@ export function runtimePendingState(runtime) {
101
224
  multiPending: runtime.hby.db.moobi.cnt() > 0,
102
225
  authQueued: runtime.hby.db.woobi.cnt() > 0,
103
226
  authInFlight: runtime.hby.db.mfa.cnt() > 0,
227
+ outboxPending: runtime.poster.hasPendingWork(),
228
+ delegationPending: runtime.hby.db.dpwe.cnt() > 0
229
+ || runtime.hby.db.dune.cnt() > 0
230
+ || runtime.hby.db.dpub.cnt() > 0,
104
231
  queriesPending: runtime.querying.hasPendingWork(),
105
232
  };
106
233
  }
@@ -109,7 +236,9 @@ export function runtimeHasPendingWork(runtime) {
109
236
  const state = runtimePendingState(runtime);
110
237
  return state.ingress || state.cues || state.replyEscrow
111
238
  || state.oobiQueued || state.oobiInFlight || state.multiPending
112
- || state.authQueued || state.authInFlight || state.queriesPending;
239
+ || state.authQueued || state.authInFlight || state.outboxPending
240
+ || state.delegationPending
241
+ || state.queriesPending;
113
242
  }
114
243
  /** Return true when a well-known URL has been authorized into `wkas.`. */
115
244
  export function runtimeHasWellKnownAuth(runtime, url) {
@@ -193,6 +322,7 @@ export { runtimeTurn } from "./runtime-turn.js";
193
322
  */
194
323
  export function* runAgentRuntime(runtime, options = {}) {
195
324
  runtime.querying.configure({ hab: options.hab, sink: options.sink });
325
+ runtime.mailboxPoller.configure({ hab: options.hab });
196
326
  const tasks = [
197
327
  yield* spawn(function* () {
198
328
  yield* runtime.reactor.msgDo();
@@ -209,6 +339,30 @@ export function* runAgentRuntime(runtime, options = {}) {
209
339
  yield* spawn(function* () {
210
340
  yield* runtime.authenticator.authDo();
211
341
  }),
342
+ ...(runtime.signaler
343
+ ? [
344
+ yield* spawn(function* () {
345
+ yield* runtime.signaler.signalDo();
346
+ }),
347
+ ]
348
+ : []),
349
+ yield* spawn(function* () {
350
+ while (true) {
351
+ yield* runtime.poster.processPending();
352
+ yield* runtimeTurn();
353
+ }
354
+ }),
355
+ yield* spawn(function* () {
356
+ yield* runtime.mailboxPoller.pollDo((batch) => {
357
+ settleMailboxPollBatch(runtime, batch);
358
+ });
359
+ }),
360
+ yield* spawn(function* () {
361
+ while (true) {
362
+ yield* runtime.delegating.processAllOnce();
363
+ yield* runtimeTurn();
364
+ }
365
+ }),
212
366
  yield* spawn(function* () {
213
367
  yield* runtime.querying.queryDo();
214
368
  }),
@@ -1,5 +1,6 @@
1
- import { action } from "effection";
1
+ import { closeResponseBody, fetchResponseHandle } from "./httping.js";
2
2
  import { isWellKnownOobiUrl, parseOobiUrl } from "./oobiery.js";
3
+ import { persistResolvedContact } from "./organizing.js";
3
4
  import { runtimeTurn } from "./runtime-turn.js";
4
5
  /**
5
6
  * Well-known OOBI authenticator for one `Habery`.
@@ -106,30 +107,14 @@ export class Authenticator {
106
107
  });
107
108
  if (response.ok && cid) {
108
109
  this.hby.db.wkas.add(cid, { url, dt: date });
110
+ persistResolvedContact(this.hby, cid, {
111
+ alias: record.oobialias,
112
+ oobi: url,
113
+ });
109
114
  }
110
115
  }
111
116
  }
112
117
  function* fetchAuthResponse(url) {
113
- return yield* action((resolve, reject) => {
114
- const controller = new AbortController();
115
- let settled = false;
116
- fetch(url, { signal: controller.signal }).then((response) => {
117
- settled = true;
118
- resolve(response);
119
- }).catch(reject);
120
- return () => {
121
- if (!settled) {
122
- controller.abort();
123
- }
124
- };
125
- });
126
- }
127
- function* closeResponseBody(response) {
128
- if (!response.body) {
129
- return;
130
- }
131
- yield* action((resolve, reject) => {
132
- response.body.cancel().then(() => resolve(undefined)).catch(reject);
133
- return () => { };
134
- });
118
+ const { response } = yield* fetchResponseHandle(url);
119
+ return response;
135
120
  }