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
@@ -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 { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
@@ -20,6 +20,9 @@ import { fromFileUrl } from "./from_file_url.js";
20
20
  *
21
21
  * @example Working with URLs
22
22
  *
23
+ * Only `URL` instances with the `file:` protocol are accepted. To process a
24
+ * non-`file:` URL, pass it as a string or pass its `pathname` property.
25
+ *
23
26
  * ```ts
24
27
  * import { dirname } from "@std/path/posix/dirname";
25
28
  * import { assertEquals } from "@std/assert";
@@ -27,10 +30,12 @@ import { fromFileUrl } from "./from_file_url.js";
27
30
  * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
28
31
  * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
29
32
  * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
33
+ * assertEquals(dirname(new URL("https://deno.land/std/path/mod.ts").pathname), "/std/path");
30
34
  * ```
31
35
  *
32
36
  * @param path The path to get the directory from.
33
37
  * @returns The directory path.
38
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
34
39
  */
35
40
  export function dirname(path) {
36
41
  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_DOT } from "../_common/constants.js";
4
4
  import { assertPath } from "../_common/assert_path.js";
@@ -22,6 +22,9 @@ import { fromFileUrl } from "./from_file_url.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)`,
@@ -34,10 +37,12 @@ import { fromFileUrl } from "./from_file_url.js";
34
37
  * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
35
38
  * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
36
39
  * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
40
+ * assertEquals(extname(new URL("https://deno.land/std/path/mod.ts").pathname), ".ts");
37
41
  * ```
38
42
  *
39
43
  * @param path The path to get the extension from.
40
44
  * @returns The extension (ex. for `file.ts` returns `.ts`).
45
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
41
46
  */
42
47
  export function extname(path) {
43
48
  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 { assertPath } from "../_common/assert_path.js";
4
4
  import { isPosixPathSeparator } 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 { assertPath } from "../_common/assert_path.js";
4
4
  import { fromFileUrl } from "./from_file_url.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 { normalizeString } from "../_common/normalize_string.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_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";