keri-ts 0.5.0 → 0.7.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 (479) hide show
  1. package/README.md +7 -70
  2. package/esm/cesr/mod.js +1 -0
  3. package/esm/cesr/src/annotate/render.js +4 -1
  4. package/esm/cesr/src/core/parser-frame-parser.js +6 -2
  5. package/esm/cesr/src/primitives/matter.js +7 -0
  6. package/esm/cesr/src/tables/counter.tables.generated.js +1 -5
  7. package/esm/cesr/src/tables/hard-code-tables.js +39 -0
  8. package/esm/cesr/src/tables/indexer.tables.generated.js +1 -9
  9. package/esm/cesr/src/tables/matter.tables.generated.js +1 -14
  10. package/esm/cesr/src/version.js +7 -4
  11. package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
  12. package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.js +1 -1
  13. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.js +1 -1
  14. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.js +1 -1
  15. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.js +1 -1
  16. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.js +1 -1
  17. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.js +1 -1
  18. package/esm/deps/jsr.io/@std/path/1.1.5/_common/env.js +11 -0
  19. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.js +1 -1
  20. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.js +1 -1
  21. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.js +1 -1
  22. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.js +1 -1
  23. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.js +1 -1
  24. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.js +1 -1
  25. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.js +1 -1
  26. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.js +1 -1
  27. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.js +6 -3
  28. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.js +1 -1
  29. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.js +2 -2
  30. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.js +6 -3
  31. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.js +6 -3
  32. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.js +2 -2
  33. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.js +2 -2
  34. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.js +2 -2
  35. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.js +2 -2
  36. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.js +1 -1
  37. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.js +2 -2
  38. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.js +2 -2
  39. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.js +1 -1
  40. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.js +2 -2
  41. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.js +2 -2
  42. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.js +2 -2
  43. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.js +1 -1
  44. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.js +6 -1
  45. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.js +2 -1
  46. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.js +6 -1
  47. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.js +6 -1
  48. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.js +1 -1
  49. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.js +1 -1
  50. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.js +1 -1
  51. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.js +1 -1
  52. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.js +1 -1
  53. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.js +1 -1
  54. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.js +1 -1
  55. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.js +1 -1
  56. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.js +1 -1
  57. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.js +1 -1
  58. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.js +4 -9
  59. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.js +1 -1
  60. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.js +1 -1
  61. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.js +2 -2
  62. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.js +2 -2
  63. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.js +2 -2
  64. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.js +2 -2
  65. package/esm/deps/jsr.io/@std/path/1.1.5/types.js +3 -0
  66. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.js +1 -1
  67. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.js +2 -1
  68. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.js +2 -1
  69. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.js +2 -1
  70. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.js +2 -1
  71. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.js +1 -1
  72. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.js +1 -1
  73. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.js +1 -1
  74. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.js +1 -1
  75. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.js +1 -1
  76. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.js +1 -1
  77. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.js +1 -1
  78. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.js +1 -1
  79. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.js +1 -1
  80. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.js +1 -1
  81. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.js +5 -14
  82. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.js +1 -1
  83. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.js +1 -1
  84. package/esm/keri/src/app/agent-runtime.js +168 -8
  85. package/esm/keri/src/app/authenticating.js +21 -25
  86. package/esm/keri/src/app/cesr-http.js +273 -0
  87. package/esm/keri/src/app/cli/challenge.js +59 -16
  88. package/esm/keri/src/app/cli/common/displaying.js +43 -0
  89. package/esm/keri/src/app/cli/common/existing.js +88 -1
  90. package/esm/keri/src/app/cli/common/parsing.js +178 -10
  91. package/esm/keri/src/app/cli/db-dump.js +266 -44
  92. package/esm/keri/src/app/cli/delegate.js +260 -0
  93. package/esm/keri/src/app/cli/ends.js +2 -2
  94. package/esm/keri/src/app/cli/exchange.js +34 -40
  95. package/esm/keri/src/app/cli/export.js +14 -0
  96. package/esm/keri/src/app/cli/incept.js +38 -6
  97. package/esm/keri/src/app/cli/index.js +15 -3
  98. package/esm/keri/src/app/cli/init.js +13 -2
  99. package/esm/keri/src/app/cli/interact.js +116 -0
  100. package/esm/keri/src/app/cli/loc.js +2 -2
  101. package/esm/keri/src/app/cli/notifications.js +110 -0
  102. package/esm/keri/src/app/cli/oobi.js +77 -4
  103. package/esm/keri/src/app/cli/query.js +156 -0
  104. package/esm/keri/src/app/cli/rotate.js +221 -0
  105. package/esm/keri/src/app/cli/sign.js +67 -0
  106. package/esm/keri/src/app/cli/verify.js +83 -0
  107. package/esm/keri/src/app/configing.js +1 -1
  108. package/esm/keri/src/app/delegating.js +646 -0
  109. package/esm/keri/src/app/exchanging.js +29 -32
  110. package/esm/keri/src/app/forwarding.js +941 -0
  111. package/esm/keri/src/app/habbing.js +657 -245
  112. package/esm/keri/src/app/httping.js +88 -0
  113. package/esm/keri/src/app/keeping.js +13 -11
  114. package/esm/keri/src/app/mailbox-director.js +232 -102
  115. package/esm/keri/src/app/mailbox-sse.js +117 -0
  116. package/esm/keri/src/app/mailboxing.js +344 -0
  117. package/esm/keri/src/app/notifying.js +136 -0
  118. package/esm/keri/src/app/oobiery.js +159 -41
  119. package/esm/keri/src/app/organizing.js +108 -0
  120. package/esm/keri/src/app/parsering.js +363 -0
  121. package/esm/keri/src/app/query-transport.js +121 -0
  122. package/esm/keri/src/app/querying.js +13 -1
  123. package/esm/keri/src/app/reactor.js +18 -400
  124. package/esm/keri/src/app/respondant.js +132 -0
  125. package/esm/keri/src/app/runtime-services.js +22 -0
  126. package/esm/keri/src/app/signaling.js +168 -0
  127. package/esm/keri/src/app/version.js +7 -4
  128. package/esm/keri/src/app/witnessing.js +779 -0
  129. package/esm/keri/src/core/errors.js +0 -3
  130. package/esm/keri/src/core/eventing.js +212 -20
  131. package/esm/keri/src/core/kever.js +38 -16
  132. package/esm/keri/src/core/mailbox-topics.js +17 -0
  133. package/esm/keri/src/core/protocol-eventing.js +465 -0
  134. package/esm/keri/src/core/protocol-exchanging.js +124 -0
  135. package/esm/keri/src/core/protocol-serialization.js +215 -0
  136. package/esm/keri/src/core/records.js +46 -0
  137. package/esm/keri/src/core/routing.js +46 -24
  138. package/esm/keri/src/db/basing.js +68 -12
  139. package/esm/keri/src/db/core/lmdber.js +32 -7
  140. package/esm/keri/src/db/core/path-manager.js +1 -1
  141. package/esm/keri/src/db/index.js +3 -0
  142. package/esm/keri/src/db/mailboxing.js +178 -0
  143. package/esm/keri/src/db/noting.js +278 -0
  144. package/esm/keri/src/db/outboxing.js +322 -0
  145. package/esm/keri/src/library/index.js +13 -0
  146. package/esm/keri/src/npm/cli.js +3 -0
  147. package/esm/keri/src/npm/db.js +3 -0
  148. package/esm/keri/src/npm/index.js +5 -5
  149. package/esm/keri/src/npm/runtime.js +3 -0
  150. package/esm/keri/src/runtime/index.js +44 -0
  151. package/package.json +16 -14
  152. package/types/_dnt.shims.d.ts +1 -2
  153. package/types/_dnt.shims.d.ts.map +1 -1
  154. package/types/cesr/mod.d.ts +1 -0
  155. package/types/cesr/mod.d.ts.map +1 -1
  156. package/types/cesr/src/annotate/render.d.ts.map +1 -1
  157. package/types/cesr/src/core/parser-frame-parser.d.ts.map +1 -1
  158. package/types/cesr/src/primitives/matter.d.ts.map +1 -1
  159. package/types/cesr/src/tables/counter.tables.generated.d.ts +1 -1
  160. package/types/cesr/src/tables/counter.tables.generated.d.ts.map +1 -1
  161. package/types/cesr/src/tables/hard-code-tables.d.ts +15 -0
  162. package/types/cesr/src/tables/hard-code-tables.d.ts.map +1 -0
  163. package/types/cesr/src/tables/indexer.tables.generated.d.ts +1 -1
  164. package/types/cesr/src/tables/indexer.tables.generated.d.ts.map +1 -1
  165. package/types/cesr/src/tables/matter.tables.generated.d.ts +1 -1
  166. package/types/cesr/src/tables/matter.tables.generated.d.ts.map +1 -1
  167. package/types/cesr/src/version.d.ts +7 -4
  168. package/types/cesr/src/version.d.ts.map +1 -1
  169. package/types/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
  170. package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts.map +1 -1
  171. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts.map +1 -1
  172. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts.map +1 -1
  173. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts.map +1 -1
  174. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts.map +1 -1
  175. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts.map +1 -1
  176. package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts +2 -0
  177. package/types/deps/jsr.io/@std/path/1.1.5/_common/env.d.ts.map +1 -0
  178. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts.map +1 -1
  179. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts.map +1 -1
  180. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts.map +1 -1
  181. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts.map +1 -1
  182. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts.map +1 -1
  183. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts.map +1 -1
  184. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts.map +1 -1
  185. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts.map +1 -1
  186. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/basename.d.ts +4 -1
  187. package/types/deps/jsr.io/@std/path/1.1.5/basename.d.ts.map +1 -0
  188. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts.map +1 -1
  189. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts.map +1 -1
  190. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/dirname.d.ts +4 -1
  191. package/types/deps/jsr.io/@std/path/1.1.5/dirname.d.ts.map +1 -0
  192. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/extname.d.ts +4 -1
  193. package/types/deps/jsr.io/@std/path/1.1.5/extname.d.ts.map +1 -0
  194. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts.map +1 -1
  195. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts.map +1 -1
  196. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts.map +1 -1
  197. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts.map +1 -1
  198. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts.map +1 -1
  199. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts.map +1 -1
  200. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts.map +1 -1
  201. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts.map +1 -1
  202. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts.map +1 -1
  203. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts.map +1 -1
  204. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts.map +1 -1
  205. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts.map +1 -1
  206. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/basename.d.ts +5 -0
  207. package/types/deps/jsr.io/@std/path/1.1.5/posix/basename.d.ts.map +1 -0
  208. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts.map +1 -1
  209. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/dirname.d.ts +5 -0
  210. package/types/deps/jsr.io/@std/path/1.1.5/posix/dirname.d.ts.map +1 -0
  211. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/extname.d.ts +5 -0
  212. package/types/deps/jsr.io/@std/path/1.1.5/posix/extname.d.ts.map +1 -0
  213. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts.map +1 -1
  214. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts.map +1 -1
  215. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts.map +1 -1
  216. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts.map +1 -1
  217. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts.map +1 -1
  218. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts.map +1 -1
  219. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts.map +1 -1
  220. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts.map +1 -1
  221. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts.map +1 -1
  222. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts.map +1 -1
  223. package/types/deps/jsr.io/@std/path/1.1.5/posix/resolve.d.ts.map +1 -0
  224. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts.map +1 -1
  225. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts.map +1 -1
  226. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts.map +1 -1
  227. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts.map +1 -1
  228. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts.map +1 -1
  229. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts.map +1 -1
  230. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts.map +1 -1
  231. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts.map +1 -1
  232. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/basename.d.ts +1 -0
  233. package/types/deps/jsr.io/@std/path/1.1.5/windows/basename.d.ts.map +1 -0
  234. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts.map +1 -1
  235. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/dirname.d.ts +1 -0
  236. package/types/deps/jsr.io/@std/path/1.1.5/windows/dirname.d.ts.map +1 -0
  237. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/extname.d.ts +1 -0
  238. package/types/deps/jsr.io/@std/path/1.1.5/windows/extname.d.ts.map +1 -0
  239. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts.map +1 -1
  240. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts.map +1 -1
  241. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts.map +1 -1
  242. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts.map +1 -1
  243. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts.map +1 -1
  244. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts.map +1 -1
  245. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts.map +1 -1
  246. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts.map +1 -1
  247. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts.map +1 -1
  248. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts.map +1 -1
  249. package/types/deps/jsr.io/@std/path/1.1.5/windows/resolve.d.ts.map +1 -0
  250. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts.map +1 -1
  251. package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts.map +1 -1
  252. package/types/keri/src/app/agent-runtime.d.ts +71 -1
  253. package/types/keri/src/app/agent-runtime.d.ts.map +1 -1
  254. package/types/keri/src/app/authenticating.d.ts +7 -1
  255. package/types/keri/src/app/authenticating.d.ts.map +1 -1
  256. package/types/keri/src/app/cesr-http.d.ts +117 -0
  257. package/types/keri/src/app/cesr-http.d.ts.map +1 -0
  258. package/types/keri/src/app/cli/challenge.d.ts.map +1 -1
  259. package/types/keri/src/app/cli/common/displaying.d.ts +12 -0
  260. package/types/keri/src/app/cli/common/displaying.d.ts.map +1 -0
  261. package/types/keri/src/app/cli/common/existing.d.ts +25 -6
  262. package/types/keri/src/app/cli/common/existing.d.ts.map +1 -1
  263. package/types/keri/src/app/cli/common/parsing.d.ts +69 -4
  264. package/types/keri/src/app/cli/common/parsing.d.ts.map +1 -1
  265. package/types/keri/src/app/cli/db-dump.d.ts +16 -4
  266. package/types/keri/src/app/cli/db-dump.d.ts.map +1 -1
  267. package/types/keri/src/app/cli/delegate.d.ts +17 -0
  268. package/types/keri/src/app/cli/delegate.d.ts.map +1 -0
  269. package/types/keri/src/app/cli/ends.d.ts.map +1 -1
  270. package/types/keri/src/app/cli/exchange.d.ts +6 -6
  271. package/types/keri/src/app/cli/exchange.d.ts.map +1 -1
  272. package/types/keri/src/app/cli/export.d.ts.map +1 -1
  273. package/types/keri/src/app/cli/incept.d.ts.map +1 -1
  274. package/types/keri/src/app/cli/index.d.ts +15 -3
  275. package/types/keri/src/app/cli/index.d.ts.map +1 -1
  276. package/types/keri/src/app/cli/init.d.ts.map +1 -1
  277. package/types/keri/src/app/cli/interact.d.ts +20 -0
  278. package/types/keri/src/app/cli/interact.d.ts.map +1 -0
  279. package/types/keri/src/app/cli/loc.d.ts.map +1 -1
  280. package/types/keri/src/app/cli/notifications.d.ts +15 -0
  281. package/types/keri/src/app/cli/notifications.d.ts.map +1 -0
  282. package/types/keri/src/app/cli/oobi.d.ts +7 -0
  283. package/types/keri/src/app/cli/oobi.d.ts.map +1 -1
  284. package/types/keri/src/app/cli/query.d.ts +12 -0
  285. package/types/keri/src/app/cli/query.d.ts.map +1 -0
  286. package/types/keri/src/app/cli/rotate.d.ts +23 -0
  287. package/types/keri/src/app/cli/rotate.d.ts.map +1 -0
  288. package/types/keri/src/app/cli/sign.d.ts +24 -0
  289. package/types/keri/src/app/cli/sign.d.ts.map +1 -0
  290. package/types/keri/src/app/cli/verify.d.ts +24 -0
  291. package/types/keri/src/app/cli/verify.d.ts.map +1 -0
  292. package/types/keri/src/app/delegating.d.ts +163 -0
  293. package/types/keri/src/app/delegating.d.ts.map +1 -0
  294. package/types/keri/src/app/exchanging.d.ts.map +1 -1
  295. package/types/keri/src/app/forwarding.d.ts +334 -0
  296. package/types/keri/src/app/forwarding.d.ts.map +1 -0
  297. package/types/keri/src/app/habbing.d.ts +178 -7
  298. package/types/keri/src/app/habbing.d.ts.map +1 -1
  299. package/types/keri/src/app/httping.d.ts +40 -0
  300. package/types/keri/src/app/httping.d.ts.map +1 -0
  301. package/types/keri/src/app/keeping.d.ts +2 -2
  302. package/types/keri/src/app/keeping.d.ts.map +1 -1
  303. package/types/keri/src/app/mailbox-director.d.ts +99 -34
  304. package/types/keri/src/app/mailbox-director.d.ts.map +1 -1
  305. package/types/keri/src/app/mailbox-sse.d.ts +25 -0
  306. package/types/keri/src/app/mailbox-sse.d.ts.map +1 -0
  307. package/types/keri/src/app/mailboxing.d.ts +208 -0
  308. package/types/keri/src/app/mailboxing.d.ts.map +1 -0
  309. package/types/keri/src/app/notifying.d.ts +55 -0
  310. package/types/keri/src/app/notifying.d.ts.map +1 -0
  311. package/types/keri/src/app/oobiery.d.ts +49 -4
  312. package/types/keri/src/app/oobiery.d.ts.map +1 -1
  313. package/types/keri/src/app/organizing.d.ts +36 -0
  314. package/types/keri/src/app/organizing.d.ts.map +1 -0
  315. package/types/keri/src/app/parsering.d.ts +29 -0
  316. package/types/keri/src/app/parsering.d.ts.map +1 -0
  317. package/types/keri/src/app/protocol-host-policy.d.ts +27 -0
  318. package/types/keri/src/app/protocol-host-policy.d.ts.map +1 -0
  319. package/types/keri/src/app/query-transport.d.ts +13 -0
  320. package/types/keri/src/app/query-transport.d.ts.map +1 -0
  321. package/types/keri/src/app/querying.d.ts +7 -0
  322. package/types/keri/src/app/querying.d.ts.map +1 -1
  323. package/types/keri/src/app/reactor.d.ts +12 -15
  324. package/types/keri/src/app/reactor.d.ts.map +1 -1
  325. package/types/keri/src/app/respondant.d.ts +43 -0
  326. package/types/keri/src/app/respondant.d.ts.map +1 -0
  327. package/types/keri/src/app/runtime-services.d.ts +26 -0
  328. package/types/keri/src/app/runtime-services.d.ts.map +1 -0
  329. package/types/keri/src/app/signaling.d.ts +64 -0
  330. package/types/keri/src/app/signaling.d.ts.map +1 -0
  331. package/types/keri/src/app/version.d.ts +7 -4
  332. package/types/keri/src/app/version.d.ts.map +1 -1
  333. package/types/keri/src/app/witnessing.d.ts +148 -0
  334. package/types/keri/src/app/witnessing.d.ts.map +1 -0
  335. package/types/keri/src/core/errors.d.ts +0 -3
  336. package/types/keri/src/core/errors.d.ts.map +1 -1
  337. package/types/keri/src/core/eventing.d.ts +43 -5
  338. package/types/keri/src/core/eventing.d.ts.map +1 -1
  339. package/types/keri/src/core/kever.d.ts.map +1 -1
  340. package/types/keri/src/core/mailbox-topics.d.ts +17 -0
  341. package/types/keri/src/core/mailbox-topics.d.ts.map +1 -1
  342. package/types/keri/src/core/protocol-eventing.d.ts +126 -0
  343. package/types/keri/src/core/protocol-eventing.d.ts.map +1 -0
  344. package/types/keri/src/core/protocol-exchanging.d.ts +36 -0
  345. package/types/keri/src/core/protocol-exchanging.d.ts.map +1 -0
  346. package/types/keri/src/core/protocol-serialization.d.ts +29 -0
  347. package/types/keri/src/core/protocol-serialization.d.ts.map +1 -0
  348. package/types/keri/src/core/records.d.ts +105 -0
  349. package/types/keri/src/core/records.d.ts.map +1 -1
  350. package/types/keri/src/core/routing.d.ts +25 -9
  351. package/types/keri/src/core/routing.d.ts.map +1 -1
  352. package/types/keri/src/db/basing.d.ts +20 -5
  353. package/types/keri/src/db/basing.d.ts.map +1 -1
  354. package/types/keri/src/db/core/lmdber.d.ts +11 -11
  355. package/types/keri/src/db/core/lmdber.d.ts.map +1 -1
  356. package/types/keri/src/db/index.d.ts +3 -0
  357. package/types/keri/src/db/index.d.ts.map +1 -1
  358. package/types/keri/src/db/mailboxing.d.ts +111 -0
  359. package/types/keri/src/db/mailboxing.d.ts.map +1 -0
  360. package/types/keri/src/db/noting.d.ts +108 -0
  361. package/types/keri/src/db/noting.d.ts.map +1 -0
  362. package/types/keri/src/db/outboxing.d.ts +160 -0
  363. package/types/keri/src/db/outboxing.d.ts.map +1 -0
  364. package/types/keri/src/library/index.d.ts +14 -0
  365. package/types/keri/src/library/index.d.ts.map +1 -0
  366. package/types/keri/src/npm/cli.d.ts +4 -0
  367. package/types/keri/src/npm/cli.d.ts.map +1 -0
  368. package/types/keri/src/npm/db.d.ts +4 -0
  369. package/types/keri/src/npm/db.d.ts.map +1 -0
  370. package/types/keri/src/npm/index.d.ts +5 -5
  371. package/types/keri/src/npm/index.d.ts.map +1 -1
  372. package/types/keri/src/npm/runtime.d.ts +4 -0
  373. package/types/keri/src/npm/runtime.d.ts.map +1 -0
  374. package/types/keri/src/runtime/index.d.ts +45 -0
  375. package/types/keri/src/runtime/index.d.ts.map +1 -0
  376. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
  377. package/esm/deps/jsr.io/@std/path/1.1.4/types.js +0 -3
  378. package/esm/keri/src/app/cli/agent.js +0 -77
  379. package/esm/keri/src/app/cli/cli-node.js +0 -9
  380. package/esm/keri/src/app/cli/cli.js +0 -83
  381. package/esm/keri/src/app/cli/command-definitions.js +0 -762
  382. package/esm/keri/src/app/index.js +0 -17
  383. package/esm/keri/src/app/server.js +0 -380
  384. package/esm/keri/src/core/index.js +0 -19
  385. package/esm/keri/src/core/messages.js +0 -81
  386. package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
  387. package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +0 -1
  388. package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +0 -1
  389. package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +0 -1
  390. package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +0 -1
  391. package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +0 -1
  392. package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +0 -1
  393. package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +0 -1
  394. package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +0 -1
  395. package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +0 -1
  396. package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +0 -1
  397. package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +0 -1
  398. package/types/keri/src/app/cli/agent.d.ts +0 -16
  399. package/types/keri/src/app/cli/agent.d.ts.map +0 -1
  400. package/types/keri/src/app/cli/cli-node.d.ts +0 -2
  401. package/types/keri/src/app/cli/cli-node.d.ts.map +0 -1
  402. package/types/keri/src/app/cli/cli.d.ts +0 -7
  403. package/types/keri/src/app/cli/cli.d.ts.map +0 -1
  404. package/types/keri/src/app/cli/command-definitions.d.ts +0 -17
  405. package/types/keri/src/app/cli/command-definitions.d.ts.map +0 -1
  406. package/types/keri/src/app/cli/command-types.d.ts +0 -21
  407. package/types/keri/src/app/cli/command-types.d.ts.map +0 -1
  408. package/types/keri/src/app/index.d.ts +0 -18
  409. package/types/keri/src/app/index.d.ts.map +0 -1
  410. package/types/keri/src/app/server.d.ts +0 -24
  411. package/types/keri/src/app/server.d.ts.map +0 -1
  412. package/types/keri/src/core/index.d.ts +0 -20
  413. package/types/keri/src/core/index.d.ts.map +0 -1
  414. package/types/keri/src/core/messages.d.ts +0 -41
  415. package/types/keri/src/core/messages.d.ts.map +0 -1
  416. /package/esm/keri/src/app/{cli/command-types.js → protocol-host-policy.js} +0 -0
  417. /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/_os.d.ts +0 -0
  418. /package/types/deps/jsr.io/@std/internal/{1.0.12 → 1.0.14}/os.d.ts +0 -0
  419. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/assert_path.d.ts +0 -0
  420. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/basename.d.ts +0 -0
  421. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/common.d.ts +0 -0
  422. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/constants.d.ts +0 -0
  423. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/dirname.d.ts +0 -0
  424. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/format.d.ts +0 -0
  425. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/from_file_url.d.ts +0 -0
  426. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/glob_to_reg_exp.d.ts +0 -0
  427. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize.d.ts +0 -0
  428. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/normalize_string.d.ts +0 -0
  429. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/relative.d.ts +0 -0
  430. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/strip_trailing_separators.d.ts +0 -0
  431. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/_common/to_file_url.d.ts +0 -0
  432. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/common.d.ts +0 -0
  433. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/constants.d.ts +0 -0
  434. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/format.d.ts +0 -0
  435. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/from_file_url.d.ts +0 -0
  436. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/glob_to_regexp.d.ts +0 -0
  437. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_absolute.d.ts +0 -0
  438. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/is_glob.d.ts +0 -0
  439. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join.d.ts +0 -0
  440. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/join_globs.d.ts +0 -0
  441. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/mod.d.ts +0 -0
  442. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize.d.ts +0 -0
  443. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/normalize_glob.d.ts +0 -0
  444. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/parse.d.ts +0 -0
  445. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/_util.d.ts +0 -0
  446. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/constants.d.ts +0 -0
  447. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/format.d.ts +0 -0
  448. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/from_file_url.d.ts +0 -0
  449. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/glob_to_regexp.d.ts +0 -0
  450. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/is_absolute.d.ts +0 -0
  451. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join.d.ts +0 -0
  452. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/join_globs.d.ts +0 -0
  453. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize.d.ts +0 -0
  454. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/normalize_glob.d.ts +0 -0
  455. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/parse.d.ts +0 -0
  456. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/relative.d.ts +0 -0
  457. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/resolve.d.ts +0 -0
  458. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_file_url.d.ts +0 -0
  459. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/posix/to_namespaced_path.d.ts +0 -0
  460. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/relative.d.ts +0 -0
  461. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/resolve.d.ts +0 -0
  462. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_file_url.d.ts +0 -0
  463. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/to_namespaced_path.d.ts +0 -0
  464. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/types.d.ts +0 -0
  465. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/_util.d.ts +0 -0
  466. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/constants.d.ts +0 -0
  467. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/format.d.ts +0 -0
  468. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/from_file_url.d.ts +0 -0
  469. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/glob_to_regexp.d.ts +0 -0
  470. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/is_absolute.d.ts +0 -0
  471. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join.d.ts +0 -0
  472. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/join_globs.d.ts +0 -0
  473. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize.d.ts +0 -0
  474. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/normalize_glob.d.ts +0 -0
  475. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/parse.d.ts +0 -0
  476. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/relative.d.ts +0 -0
  477. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/resolve.d.ts +0 -0
  478. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_file_url.d.ts +0 -0
  479. /package/types/deps/jsr.io/@std/path/{1.1.4 → 1.1.5}/windows/to_namespaced_path.d.ts +0 -0
package/README.md CHANGED
@@ -1,85 +1,22 @@
1
1
  # keri-ts
2
2
 
3
- KERI TypeScript runtime package with the `tufa` CLI.
3
+ KERI TypeScript protocol/runtime library.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
8
  # As a dependency
9
9
  npm install keri-ts
10
-
11
- # Global CLI install
12
- npm install -g keri-ts
13
- ```
14
-
15
- ## CLI quick start
16
-
17
- `tufa version` and `tufa annotate` are the fastest way to verify your setup.
18
-
19
- ```bash
20
- # Version
21
- tufa version
22
- tufa --version
23
-
24
- # Annotate CESR from file
25
- tufa annotate --in ./mystream.cesr
26
-
27
- # Annotate from stdin
28
- cat ./mystream.cesr | tufa annotate
29
- ```
30
-
31
- ## Benchmark CESR parser
32
-
33
- Benchmark any CESR stream from file or stdin:
34
-
35
- ```bash
36
- # Benchmark a stream file
37
- tufa benchmark cesr --in ./mystream.cesr
38
-
39
- # Benchmark from stdin with explicit chunk simulation
40
- cat ./mystream.cesr | tufa benchmark cesr --chunk-size 256 --iterations 25 --warmup 5
41
- ```
42
-
43
- - `--in <path>`: input file path (defaults to stdin)
44
- - `--iterations <count>`: measured benchmark runs (default `50`)
45
- - `--warmup <count>`: warmup runs before measurement (default `5`)
46
- - `--chunk-size <bytes>`: chunk size for streaming simulation (`0` = full
47
- stream)
48
- - `--framed`: benchmark parser in framed mode
49
- - `--compat`: benchmark parser with compat attachment dispatch mode
50
- - `--allow-errors`: continue benchmark even when parse errors are emitted
51
- - `--json`: print one JSON result line
52
-
53
- ## Annotate options
54
-
55
- ```bash
56
- tufa annotate --in <path> --out <path> --pretty
57
- tufa annotate --qb2 --in <binary.qb2> --out <annotation.txt>
58
10
  ```
59
11
 
60
- - `--in <path>`: input file path (defaults to stdin)
61
- - `--out <path>`: output file path (defaults to stdout)
62
- - `--qb2`: parse input as qb2 binary
63
- - `--pretty`: pretty-print annotation output
64
- - `--colored`: colorize annotation output on stdout only (ignored with `--out`)
65
-
66
- Optional color overrides:
67
-
68
- - File: `$HOME/.tufa/annot-color.yaml` or `$HOME/.tufa/annot-color.yml`
69
- - Keys: `counter`, `group`, `body`, `signature`, `said`, `opaque`, `comment`
70
- - Values: `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`,
71
- or bright variants (`brightBlack` ... `brightWhite`)
12
+ ## Library surfaces
72
13
 
73
- ## Package entrypoints
14
+ - default import: browser-safe core/types surface
15
+ - `keri-ts/runtime`: explicit non-browser-safe runtime surface
16
+ - `keri-ts/db`: explicit LMDB-backed storage surface
74
17
 
75
- ```bash
76
- # CLI help
77
- npx tufa --help
78
-
79
- # From source in this repo
80
- deno task tufa --help
81
- deno task tufa version
82
- ```
18
+ Only those three entrypoints are supported public surfaces. Runnable CLI/server
19
+ ownership lives in the separate `tufa` package.
83
20
 
84
21
  ## License
85
22
 
package/esm/cesr/mod.js CHANGED
@@ -1,2 +1,3 @@
1
+ /** cesr-ts npm package root entrypoint. */
1
2
  export * from "./src/index.js";
2
3
  export * from "./src/version.js";
@@ -251,7 +251,10 @@ function renderFrame(frame, index, options) {
251
251
  const lines = [];
252
252
  const version = frame.body.gvrsn ?? frame.body.pvrsn;
253
253
  const domain = asDomain(frame.body.raw);
254
- if (domain === "txt" || domain === "bny") {
254
+ if (frame.body.kind === "CESR" && frame.body.ked === null) {
255
+ renderMessageBody(lines, frame, options);
256
+ }
257
+ else if (domain === "txt" || domain === "bny") {
255
258
  renderNativeBody(lines, frame, options, version);
256
259
  }
257
260
  else {
@@ -242,14 +242,18 @@ export class FrameParser {
242
242
  };
243
243
  }
244
244
  catch (_error) {
245
+ // Non-native body groups wrap one Matter primitive. If Serder hydration
246
+ // fails, expose the primitive body bytes only; callers that inspect the
247
+ // fallback should not see the surrounding group counter envelope.
248
+ const raw = matter.raw;
245
249
  return {
246
250
  frame: {
247
251
  body: {
248
- raw: matter.raw,
252
+ raw,
249
253
  ked: null,
250
254
  proto: Protocols.keri,
251
255
  kind: Kinds.cesr,
252
- size: matter.raw.length,
256
+ size: raw.length,
253
257
  pvrsn: version,
254
258
  gvrsn: version,
255
259
  ilk: null,
@@ -41,6 +41,13 @@ function matterNameForCode(code) {
41
41
  }
42
42
  return name;
43
43
  }
44
+ /**
45
+ * Select the concrete variable-length Matter code for the raw payload size.
46
+ *
47
+ * Variable families encode lead bytes and soft-size width in the selector
48
+ * itself. Normalizing once during construction keeps generated qb64/qb2 forms
49
+ * deterministic without leaking that sizing policy to primitive callers.
50
+ */
44
51
  function normalizeVariableMatterCode(code, raw) {
45
52
  const sizage = MATTER_SIZES.get(code);
46
53
  if (!sizage || sizage.fs !== null) {
@@ -1,3 +1,4 @@
1
+ export { COUNTER_HARDS } from "./hard-code-tables.js";
1
2
  export const COUNTER_SIZES_V1 = new Map([
2
3
  ["-_AAA", { hs: 5, ss: 3, fs: 8 }],
3
4
  ["--L", { hs: 3, ss: 5, fs: 8 }],
@@ -84,11 +85,6 @@ export const COUNTER_SIZES_V2 = new Map([
84
85
  ["-Y", { hs: 2, ss: 2, fs: 4 }],
85
86
  ["-Z", { hs: 2, ss: 2, fs: 4 }],
86
87
  ]);
87
- export const COUNTER_HARDS = new Map([
88
- ..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("").map((c) => [`-${c}`, 2]),
89
- ["--", 3],
90
- ["-_", 5],
91
- ]);
92
88
  export const COUNTER_CODE_NAMES_V1 = {
93
89
  "-_AAA": "KERIACDCGenusVersion",
94
90
  "--L": "BigPathedMaterialCouples",
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Source-owned hard-code size tables used by generated CESR lookup modules.
3
+ *
4
+ * KERIpy derives these ranges procedurally rather than listing them alongside
5
+ * the generated size/name dictionaries. Keeping them here avoids embedding
6
+ * static table literals inside the generator while preserving the public
7
+ * generated-module exports.
8
+ */
9
+ /** Hard-code byte counts for Matter derivation code prefixes. */
10
+ export const MATTER_HARDS = new Map([
11
+ ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => [c, 1]),
12
+ ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => [c, 1]),
13
+ ["0", 2],
14
+ ["1", 4],
15
+ ["2", 4],
16
+ ["3", 4],
17
+ ["4", 2],
18
+ ["5", 2],
19
+ ["6", 2],
20
+ ["7", 4],
21
+ ["8", 4],
22
+ ["9", 4],
23
+ ]);
24
+ /** Hard-code byte counts for Indexer derivation code prefixes. */
25
+ export const INDEXER_HARDS = new Map([
26
+ ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => [c, 1]),
27
+ ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => [c, 1]),
28
+ ["0", 2],
29
+ ["1", 2],
30
+ ["2", 2],
31
+ ["3", 2],
32
+ ["4", 2],
33
+ ]);
34
+ /** Hard-code byte counts for Counter code prefixes. */
35
+ export const COUNTER_HARDS = new Map([
36
+ ..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("").map((c) => [`-${c}`, 2]),
37
+ ["--", 3],
38
+ ["-_", 5],
39
+ ]);
@@ -1,3 +1,4 @@
1
+ export { INDEXER_HARDS } from "./hard-code-tables.js";
1
2
  export const INDEXER_SIZES = new Map([
2
3
  ["0A", { hs: 2, ss: 2, os: 1, fs: 156, ls: 0 }],
3
4
  ["0B", { hs: 2, ss: 2, os: 1, fs: 156, ls: 0 }],
@@ -61,12 +62,3 @@ export const INDEXER_CODES_BY_NAME = {
61
62
  "TBD1": "1z",
62
63
  "TBD4": "4z",
63
64
  };
64
- export const INDEXER_HARDS = new Map([
65
- ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => [c, 1]),
66
- ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => [c, 1]),
67
- ["0", 2],
68
- ["1", 2],
69
- ["2", 2],
70
- ["3", 2],
71
- ["4", 2],
72
- ]);
@@ -1,3 +1,4 @@
1
+ export { MATTER_HARDS } from "./hard-code-tables.js";
1
2
  export const MATTER_SIZES = new Map([
2
3
  ["0A", { hs: 2, ss: 0, xs: 0, fs: 24, ls: 0 }],
3
4
  ["0B", { hs: 2, ss: 0, xs: 0, fs: 88, ls: 0 }],
@@ -334,17 +335,3 @@ export const MATTER_CODES_BY_NAME = {
334
335
  "X448": "L",
335
336
  "Yes": "1AAM",
336
337
  };
337
- export const MATTER_HARDS = new Map([
338
- ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => [c, 1]),
339
- ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => [c, 1]),
340
- ["0", 2],
341
- ["1", 4],
342
- ["2", 4],
343
- ["3", 4],
344
- ["4", 2],
345
- ["5", 2],
346
- ["6", 2],
347
- ["7", 4],
348
- ["8", 4],
349
- ["9", 4],
350
- ]);
@@ -1,11 +1,14 @@
1
1
  /**
2
- * Generated by scripts/generate_versions.ts.
3
- * Do not edit by hand.
2
+ * Template used by scripts/generate_versions.ts for package version modules.
3
+ *
4
+ * The generator token-replaces the string placeholders below, then formats and
5
+ * compares the rendered output during version checks. Do not edit generated
6
+ * `src/version.ts` files by hand; edit this template instead.
4
7
  */
5
8
  /** Package semantic version copied from the owning package manifest. */
6
- export const PACKAGE_VERSION = "0.5.0";
9
+ export const PACKAGE_VERSION = "0.7.0";
7
10
  /** Optional build metadata stamp injected by release/CI workflows. */
8
- export const BUILD_METADATA = "build.7.d6fc2b59e3bc691c9cf61654afbc3417593163ee";
11
+ export const BUILD_METADATA = "build.12.6aeea4790568f27066636c48ec39d2f098e3c26d";
9
12
  /** User-facing version string with build metadata appended when present. */
10
13
  export const DISPLAY_VERSION = BUILD_METADATA
11
14
  ? `${PACKAGE_VERSION}+${BUILD_METADATA}`
@@ -0,0 +1,14 @@
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
+ import * as dntShim from "../../../../../_dnt.shims.js";
3
+ export function checkWindows() {
4
+ // deno-lint-ignore no-explicit-any
5
+ const global = dntShim.dntGlobalThis;
6
+ // Check Node/Bun/Deno via `process.platform`, then the Deno global, then the browser
7
+ const platform = global.process?.platform;
8
+ if (typeof platform === "string")
9
+ return platform.startsWith("win");
10
+ const os = global.Deno?.build?.os;
11
+ if (typeof os === "string")
12
+ return os === "windows";
13
+ return global.navigator?.platform?.startsWith("Win") ?? false;
14
+ }
@@ -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 { checkWindows } from "./_os.js";
4
4
  /** Whether the current platform is Windows */
@@ -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
  export function assertPath(path) {
4
4
  if (typeof path !== "string") {
@@ -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 "./assert_path.js";
4
4
  export function stripSuffix(name, suffix) {
@@ -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
  export function common(paths, sep) {
4
4
  const [first = "", ...remaining] = paths;
@@ -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 { assertPath } from "./assert_path.js";
4
4
  export function assertArg(path) {
@@ -0,0 +1,11 @@
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
+ import * as dntShim from "../../../../../../_dnt.shims.js";
3
+ export function cwd(errorMessage) {
4
+ // deno-lint-ignore no-explicit-any
5
+ const global = dntShim.dntGlobalThis;
6
+ const getCwd = global.process?.cwd ?? global.Deno?.cwd;
7
+ if (typeof getCwd !== "function") {
8
+ throw new TypeError(errorMessage);
9
+ }
10
+ return getCwd();
11
+ }
@@ -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
  export function _format(sep, pathObject) {
4
4
  const dir = pathObject.dir || pathObject.root;
@@ -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
  export function assertArg(url) {
4
4
  url = url instanceof URL ? url : new URL(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
  const REG_EXP_ESCAPE_CHARS = [
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 { assertPath } from "./assert_path.js";
4
4
  export function assertArg(path) {
@@ -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 { assertPath } from "./assert_path.js";
4
4
  export function assertArgs(from, to) {
@@ -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
  const WHITESPACE_ENCODINGS = {
4
4
  "\u0009": "%09",
@@ -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 { basename as posixBasename } from "./posix/basename.js";
5
5
  import { basename as windowsBasename } from "./windows/basename.js";
6
6
  /**
@@ -23,10 +23,13 @@ import { basename as windowsBasename } from "./windows/basename.js";
23
23
  * }
24
24
  * ```
25
25
  *
26
- * @param path Path to extract the name from.
26
+ * @param path Path to extract the name from. When passed as a `URL`
27
+ * instance, its protocol must be `file:`. For other protocols, pass the URL
28
+ * as a string or pass its `pathname` property.
27
29
  * @param suffix Suffix to remove from extracted name.
28
30
  *
29
31
  * @returns The basename of the path.
32
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
30
33
  */
31
34
  export function basename(path, suffix = "") {
32
35
  return isWindows
@@ -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 { common as _common } from "./_common/common.js";
4
4
  import { SEPARATOR } from "./constants.js";
@@ -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
  /**
5
5
  * The character used to separate entries in the PATH environment variable.
6
6
  * On Windows, this is `;`. On all other platforms, this is `:`.
@@ -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 { dirname as posixDirname } from "./posix/dirname.js";
5
5
  import { dirname as windowsDirname } from "./windows/dirname.js";
6
6
  /**
@@ -20,8 +20,11 @@ import { dirname as windowsDirname } from "./windows/dirname.js";
20
20
  * }
21
21
  * ```
22
22
  *
23
- * @param path Path to extract the directory from.
23
+ * @param path Path to extract the directory from. When passed as a `URL`
24
+ * instance, its protocol must be `file:`. For other protocols, pass the URL
25
+ * as a string or pass its `pathname` property.
24
26
  * @returns The directory path.
27
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
25
28
  */
26
29
  export function dirname(path) {
27
30
  return isWindows ? windowsDirname(path) : posixDirname(path);
@@ -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 { extname as posixExtname } from "./posix/extname.js";
5
5
  import { extname as windowsExtname } from "./windows/extname.js";
6
6
  /**
@@ -20,8 +20,11 @@ import { extname as windowsExtname } from "./windows/extname.js";
20
20
  * }
21
21
  * ```
22
22
  *
23
- * @param path Path with extension.
23
+ * @param path Path with extension. When passed as a `URL` instance, its
24
+ * protocol must be `file:`. For other protocols, pass the URL as a string or
25
+ * pass its `pathname` property.
24
26
  * @returns The file extension. E.g. returns `.ts` for `file.ts`.
27
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
25
28
  */
26
29
  export function extname(path) {
27
30
  return isWindows ? windowsExtname(path) : posixExtname(path);
@@ -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 { format as posixFormat } from "./posix/format.js";
5
5
  import { format as windowsFormat } from "./windows/format.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 { fromFileUrl as posixFromFileUrl } from "./posix/from_file_url.js";
5
5
  import { fromFileUrl as windowsFromFileUrl } from "./windows/from_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 { globToRegExp as posixGlobToRegExp } from "./posix/glob_to_regexp.js";
5
5
  import { globToRegExp as windowsGlobToRegExp, } from "./windows/glob_to_regexp.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 { isAbsolute as posixIsAbsolute } from "./posix/is_absolute.js";
5
5
  import { isAbsolute as windowsIsAbsolute } from "./windows/is_absolute.js";
6
6
  /**
@@ -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
  * Test whether the given string is a glob.
@@ -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 { join as posixJoin } from "./posix/join.js";
5
5
  import { join as windowsJoin } from "./windows/join.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 { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
5
5
  import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
6
6
  /**
@@ -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 mostly from https://github.com/browserify/path-browserify/
4
4
  // This module is browser compatible.
@@ -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 { normalize as posixNormalize } from "./posix/normalize.js";
5
5
  import { normalize as windowsNormalize } from "./windows/normalize.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 { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
5
5
  import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.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 { parse as posixParse } from "./posix/parse.js";
5
5
  import { parse as windowsParse } from "./windows/parse.js";
6
6
  /**
@@ -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 { fromFileUrl } from "./from_file_url.js";
@@ -22,6 +22,9 @@ import { isPosixPathSeparator } from "./_util.js";
22
22
  *
23
23
  * @example Working with URLs
24
24
  *
25
+ * Only `URL` instances with the `file:` protocol are accepted. To process a
26
+ * non-`file:` URL, pass it as a string or pass its `pathname` property.
27
+ *
25
28
  * Note: This function doesn't automatically strip hash and query parts from
26
29
  * URLs. If your URL contains a hash or query, remove them before passing the
27
30
  * URL to the function. This can be done by passing the URL to `new URL(url)`,
@@ -35,11 +38,13 @@ import { isPosixPathSeparator } from "./_util.js";
35
38
  * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
36
39
  * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
37
40
  * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
41
+ * assertEquals(basename(new URL("https://deno.land/std/path/mod.ts").pathname), "mod.ts");
38
42
  * ```
39
43
  *
40
44
  * @param path The path to extract the name from.
41
45
  * @param suffix The suffix to remove from extracted name.
42
46
  * @returns The extracted name.
47
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
43
48
  */
44
49
  export function basename(path, suffix = "") {
45
50
  if (path instanceof URL) {