keri-ts 0.2.2 → 0.3.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 (286) hide show
  1. package/README.md +44 -120
  2. package/esm/app/cli/agent.js +0 -19
  3. package/esm/app/cli/annotate.js +7 -2
  4. package/esm/app/cli/benchmark.js +210 -0
  5. package/esm/app/cli/cli.js +50 -52
  6. package/esm/app/cli/command-definitions.js +258 -6
  7. package/esm/app/cli/common/existing.js +40 -0
  8. package/esm/app/cli/common/parsing.js +20 -0
  9. package/esm/app/cli/export.js +51 -0
  10. package/esm/app/cli/incept.js +106 -0
  11. package/esm/app/cli/index.js +9 -0
  12. package/esm/app/cli/init.js +72 -41
  13. package/esm/app/configing.js +261 -0
  14. package/esm/app/habbing.js +386 -0
  15. package/esm/app/index.js +10 -0
  16. package/esm/app/keeping.js +321 -0
  17. package/esm/app/version.js +2 -2
  18. package/esm/db/basing.js +66 -1
  19. package/esm/db/core/lmdber.js +13 -7
  20. package/esm/db/core/path-manager.js +193 -169
  21. package/esm/db/index.js +1 -0
  22. package/esm/db/keeping.js +214 -0
  23. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
  24. package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
  25. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
  26. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
  27. package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.js +23 -0
  28. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
  29. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +8 -0
  30. package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.js +19 -0
  31. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
  32. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +235 -0
  33. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
  34. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
  35. package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.js +9 -0
  36. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
  37. package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +15 -0
  38. package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
  39. package/esm/deps/jsr.io/@std/path/1.1.4/common.js +33 -0
  40. package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +17 -0
  41. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +28 -0
  42. package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +28 -0
  43. package/esm/deps/jsr.io/@std/path/1.1.4/format.js +27 -0
  44. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +28 -0
  45. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +83 -0
  46. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
  47. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +42 -0
  48. package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
  49. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +34 -0
  50. package/esm/deps/jsr.io/@std/path/1.1.4/mod.js +216 -0
  51. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
  52. package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +35 -0
  53. package/esm/deps/jsr.io/@std/path/1.1.4/parse.js +39 -0
  54. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
  55. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
  56. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +14 -0
  57. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +64 -0
  58. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +93 -0
  59. package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.js +28 -0
  60. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
  61. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +82 -0
  62. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
  63. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
  64. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +40 -0
  65. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
  66. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +32 -0
  67. package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.js +115 -0
  68. package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.js +106 -0
  69. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +59 -0
  70. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +27 -0
  71. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +20 -0
  72. package/esm/deps/jsr.io/@std/path/1.1.4/relative.js +30 -0
  73. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +30 -0
  74. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +28 -0
  75. package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +29 -0
  76. package/esm/deps/jsr.io/@std/path/1.1.4/types.js +3 -0
  77. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
  78. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
  79. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +14 -0
  80. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +113 -0
  81. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +82 -0
  82. package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.js +28 -0
  83. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
  84. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +82 -0
  85. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
  86. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
  87. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +41 -0
  88. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
  89. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +32 -0
  90. package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.js +176 -0
  91. package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.js +131 -0
  92. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +154 -0
  93. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +34 -0
  94. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +49 -0
  95. package/esm/npm/index.js +7 -2
  96. package/package.json +6 -3
  97. package/types/app/cli/agent.d.ts.map +1 -1
  98. package/types/app/cli/annotate.d.ts.map +1 -1
  99. package/types/app/cli/benchmark.d.ts +11 -0
  100. package/types/app/cli/benchmark.d.ts.map +1 -0
  101. package/types/app/cli/cli.d.ts.map +1 -1
  102. package/types/app/cli/command-definitions.d.ts +5 -2
  103. package/types/app/cli/command-definitions.d.ts.map +1 -1
  104. package/types/app/cli/command-types.d.ts +12 -0
  105. package/types/app/cli/command-types.d.ts.map +1 -1
  106. package/types/app/cli/common/existing.d.ts +4 -0
  107. package/types/app/cli/common/existing.d.ts.map +1 -0
  108. package/types/app/cli/common/parsing.d.ts +15 -0
  109. package/types/app/cli/common/parsing.d.ts.map +1 -0
  110. package/types/app/cli/export.d.ts +8 -0
  111. package/types/app/cli/export.d.ts.map +1 -0
  112. package/types/app/cli/incept.d.ts +8 -0
  113. package/types/app/cli/incept.d.ts.map +1 -0
  114. package/types/app/cli/index.d.ts +10 -0
  115. package/types/app/cli/index.d.ts.map +1 -0
  116. package/types/app/cli/init.d.ts +5 -0
  117. package/types/app/cli/init.d.ts.map +1 -1
  118. package/types/app/configing.d.ts +57 -0
  119. package/types/app/configing.d.ts.map +1 -0
  120. package/types/app/habbing.d.ts +107 -0
  121. package/types/app/habbing.d.ts.map +1 -0
  122. package/types/app/index.d.ts +11 -0
  123. package/types/app/index.d.ts.map +1 -0
  124. package/types/app/keeping.d.ts +72 -0
  125. package/types/app/keeping.d.ts.map +1 -0
  126. package/types/app/version.d.ts +2 -2
  127. package/types/app/version.d.ts.map +1 -1
  128. package/types/db/basing.d.ts +16 -1
  129. package/types/db/basing.d.ts.map +1 -1
  130. package/types/db/core/lmdber.d.ts +8 -4
  131. package/types/db/core/lmdber.d.ts.map +1 -1
  132. package/types/db/core/path-manager.d.ts +88 -24
  133. package/types/db/core/path-manager.d.ts.map +1 -1
  134. package/types/db/index.d.ts +1 -0
  135. package/types/db/index.d.ts.map +1 -1
  136. package/types/db/keeping.d.ts +73 -0
  137. package/types/db/keeping.d.ts.map +1 -0
  138. package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  139. package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  140. package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  141. package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  142. package/types/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
  143. package/types/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  144. package/types/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
  145. package/types/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  146. package/types/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +2 -0
  147. package/types/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +1 -0
  148. package/types/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
  149. package/types/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  150. package/types/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
  151. package/types/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
  152. package/types/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +4 -0
  153. package/types/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +1 -0
  154. package/types/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
  155. package/types/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  156. package/types/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
  157. package/types/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
  158. package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
  159. package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  160. package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
  161. package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  162. package/types/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +2 -0
  163. package/types/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +1 -0
  164. package/types/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
  165. package/types/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  166. package/types/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +2 -0
  167. package/types/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
  168. package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  169. package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  170. package/types/deps/jsr.io/@std/path/1.1.4/common.d.ts +28 -0
  171. package/types/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +1 -0
  172. package/types/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
  173. package/types/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
  174. package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
  175. package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
  176. package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
  177. package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
  178. package/types/deps/jsr.io/@std/path/1.1.4/format.d.ts +22 -0
  179. package/types/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +1 -0
  180. package/types/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
  181. package/types/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
  182. package/types/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
  183. package/types/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
  184. package/types/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
  185. package/types/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  186. package/types/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
  187. package/types/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
  188. package/types/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  189. package/types/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  190. package/types/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
  191. package/types/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
  192. package/types/deps/jsr.io/@std/path/1.1.4/mod.d.ts +213 -0
  193. package/types/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +1 -0
  194. package/types/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
  195. package/types/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
  196. package/types/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +29 -0
  197. package/types/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +1 -0
  198. package/types/deps/jsr.io/@std/path/1.1.4/parse.d.ts +35 -0
  199. package/types/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +1 -0
  200. package/types/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
  201. package/types/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  202. package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  203. package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  204. package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
  205. package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
  206. package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
  207. package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
  208. package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
  209. package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
  210. package/types/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +24 -0
  211. package/types/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +1 -0
  212. package/types/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
  213. package/types/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  214. package/types/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
  215. package/types/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
  216. package/types/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
  217. package/types/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  218. package/types/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  219. package/types/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  220. package/types/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
  221. package/types/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
  222. package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  223. package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  224. package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
  225. package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
  226. package/types/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +25 -0
  227. package/types/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +1 -0
  228. package/types/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +20 -0
  229. package/types/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +1 -0
  230. package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
  231. package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
  232. package/types/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +17 -0
  233. package/types/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
  234. package/types/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +16 -0
  235. package/types/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +1 -0
  236. package/types/deps/jsr.io/@std/path/1.1.4/relative.d.ts +24 -0
  237. package/types/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +1 -0
  238. package/types/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
  239. package/types/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
  240. package/types/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +22 -0
  241. package/types/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
  242. package/types/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +21 -0
  243. package/types/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +1 -0
  244. package/types/deps/jsr.io/@std/path/1.1.4/types.d.ts +38 -0
  245. package/types/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +1 -0
  246. package/types/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
  247. package/types/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  248. package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  249. package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  250. package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
  251. package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
  252. package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
  253. package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
  254. package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
  255. package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
  256. package/types/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +24 -0
  257. package/types/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +1 -0
  258. package/types/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
  259. package/types/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  260. package/types/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
  261. package/types/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
  262. package/types/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
  263. package/types/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  264. package/types/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  265. package/types/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  266. package/types/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
  267. package/types/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
  268. package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  269. package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  270. package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
  271. package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
  272. package/types/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +25 -0
  273. package/types/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +1 -0
  274. package/types/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +23 -0
  275. package/types/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +1 -0
  276. package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
  277. package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
  278. package/types/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +17 -0
  279. package/types/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
  280. package/types/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +17 -0
  281. package/types/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +1 -0
  282. package/types/npm/index.d.ts +7 -2
  283. package/types/npm/index.d.ts.map +1 -1
  284. package/esm/app/cli/stub-commands.js +0 -61
  285. package/types/app/cli/stub-commands.d.ts +0 -6
  286. package/types/app/cli/stub-commands.d.ts.map +0 -1
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Return the extension of the path with leading period (".").
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { extname } from "@std/path/extname";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * if (Deno.build.os === "windows") {
10
+ * assertEquals(extname("C:\\home\\user\\Documents\\image.png"), ".png");
11
+ * assertEquals(extname(new URL("file:///C:/home/user/Documents/image.png")), ".png");
12
+ * } else {
13
+ * assertEquals(extname("/home/user/Documents/image.png"), ".png");
14
+ * assertEquals(extname(new URL("file:///home/user/Documents/image.png")), ".png");
15
+ * }
16
+ * ```
17
+ *
18
+ * @param path Path with extension.
19
+ * @returns The file extension. E.g. returns `.ts` for `file.ts`.
20
+ */
21
+ export declare function extname(path: string | URL): string;
22
+ //# sourceMappingURL=extname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/extname.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAElD"}
@@ -0,0 +1,22 @@
1
+ import type { ParsedPath } from "./types.js";
2
+ /**
3
+ * Generate a path from a {@linkcode ParsedPath} object. It does the
4
+ * opposite of {@linkcode https://jsr.io/@std/path/doc/~/parse | parse()}.
5
+ *
6
+ * @example Usage
7
+ * ```ts
8
+ * import { format } from "@std/path/format";
9
+ * import { assertEquals } from "@std/assert";
10
+ *
11
+ * if (Deno.build.os === "windows") {
12
+ * assertEquals(format({ dir: "C:\\path\\to", base: "script.ts" }), "C:\\path\\to\\script.ts");
13
+ * } else {
14
+ * assertEquals(format({ dir: "/path/to/dir", base: "script.ts" }), "/path/to/dir/script.ts");
15
+ * }
16
+ * ```
17
+ *
18
+ * @param pathObject Object with path components.
19
+ * @returns The formatted path.
20
+ */
21
+ export declare function format(pathObject: Partial<ParsedPath>): string;
22
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/format.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAE9D"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Converts a file URL to a path string.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { fromFileUrl } from "@std/path/from-file-url";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * if (Deno.build.os === "windows") {
10
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
11
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
12
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
13
+ * } else {
14
+ * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
15
+ * }
16
+ * ```
17
+ *
18
+ * @param url The file URL to convert to a path.
19
+ * @returns The path string.
20
+ */
21
+ export declare function fromFileUrl(url: string | URL): string;
22
+ //# sourceMappingURL=from_file_url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/from_file_url.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAErD"}
@@ -0,0 +1,77 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
3
+ /**
4
+ * Converts a glob string to a regular expression.
5
+ *
6
+ * Tries to match bash glob expansion as closely as possible.
7
+ *
8
+ * Basic glob syntax:
9
+ * - `*` - Matches everything without leaving the path segment.
10
+ * - `?` - Matches any single character.
11
+ * - `{foo,bar}` - Matches `foo` or `bar`.
12
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
13
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
14
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
15
+ * - `[[:<class>:]]` - Matches any character belonging to `<class>`.
16
+ * - `[[:alnum:]]` - Matches any digit or letter.
17
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
18
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
19
+ * for a complete list of supported character classes.
20
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
21
+ * - \` - Escapes the next character for `os` set to `"windows"`.
22
+ * - `/` - Path separator.
23
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
24
+ *
25
+ * Extended syntax:
26
+ * - Requires `{ extended: true }`.
27
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
28
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
29
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
30
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
31
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
32
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
33
+ *
34
+ * Globstar syntax:
35
+ * - Requires `{ globstar: true }`.
36
+ * - `**` - Matches any number of any path segments.
37
+ * - Must comprise its entire path segment in the provided glob.
38
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
39
+ *
40
+ * Note the following properties:
41
+ * - The generated `RegExp` is anchored at both start and end.
42
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
43
+ * provided glob have no meaning and are discarded.
44
+ * - Absolute globs will only match absolute paths, etc.
45
+ * - Empty globs will match nothing.
46
+ * - Any special glob syntax must be contained to one path segment. For example,
47
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
48
+ * first segment ends with an unclosed group.
49
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
50
+ * parse error has occurred. Every character for that segment is taken
51
+ * literally in this event.
52
+ *
53
+ * Limitations:
54
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
55
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
56
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
57
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
58
+ * the group occurs not nested at the end of the segment.
59
+ *
60
+ * @example Usage
61
+ * ```ts
62
+ * import { globToRegExp } from "@std/path/glob-to-regexp";
63
+ * import { assertEquals } from "@std/assert";
64
+ *
65
+ * if (Deno.build.os === "windows") {
66
+ * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
67
+ * } else {
68
+ * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
69
+ * }
70
+ * ```
71
+ *
72
+ * @param glob Glob string to convert.
73
+ * @param options Conversion options.
74
+ * @returns The regular expression equivalent to the glob.
75
+ */
76
+ export declare function globToRegExp(glob: string, options?: GlobOptions): RegExp;
77
+ //# sourceMappingURL=glob_to_regexp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glob_to_regexp.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAQhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Verifies whether provided path is absolute.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { isAbsolute } from "@std/path/is-absolute";
7
+ * import { assert, assertFalse } from "@std/assert";
8
+ *
9
+ * if (Deno.build.os === "windows") {
10
+ * assert(isAbsolute("C:\\home\\foo"));
11
+ * assertFalse(isAbsolute("home\\foo"));
12
+ * } else {
13
+ * assert(isAbsolute("/home/foo"));
14
+ * assertFalse(isAbsolute("home/foo"));
15
+ * }
16
+ * ```
17
+ *
18
+ * @param path Path to be verified as absolute.
19
+ * @returns `true` if path is absolute, `false` otherwise
20
+ */
21
+ export declare function isAbsolute(path: string): boolean;
22
+ //# sourceMappingURL=is_absolute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is_absolute.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Test whether the given string is a glob.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { isGlob } from "@std/path/is-glob";
7
+ * import { assert } from "@std/assert";
8
+ *
9
+ * assert(!isGlob("foo/bar/../baz"));
10
+ * assert(isGlob("foo/*ar/../baz"));
11
+ * ```
12
+ *
13
+ * @param str String to test.
14
+ * @returns `true` if the given string is a glob, otherwise `false`
15
+ */
16
+ export declare function isGlob(str: string): boolean;
17
+ //# sourceMappingURL=is_glob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is_glob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/is_glob.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CA8B3C"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Joins a sequence of paths, then normalizes the resulting path.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { join } from "@std/path/join";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * if (Deno.build.os === "windows") {
10
+ * assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
11
+ * assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
12
+ * } else {
13
+ * assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
14
+ * assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
15
+ * }
16
+ * ```
17
+ *
18
+ * @param path The path to join. This can be string or file URL.
19
+ * @param paths Paths to be joined and normalized.
20
+ * @returns The joined and normalized path.
21
+ */
22
+ export declare function join(path: string | URL, ...paths: string[]): string;
23
+ //# sourceMappingURL=join.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEnE"}
@@ -0,0 +1,28 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
3
+ /**
4
+ * Joins a sequence of globs, then normalizes the resulting glob.
5
+ *
6
+ * Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
7
+ * doesn't collapse `**\/..` when `globstar` is true.
8
+ *
9
+ * @example Usage
10
+ * ```ts
11
+ * import { joinGlobs } from "@std/path/join-globs";
12
+ * import { assertEquals } from "@std/assert";
13
+ *
14
+ * if (Deno.build.os === "windows") {
15
+ * assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
16
+ * assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
17
+ * } else {
18
+ * assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
19
+ * assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
20
+ * }
21
+ * ```
22
+ *
23
+ * @param globs Globs to be joined and normalized.
24
+ * @param options Glob options.
25
+ * @returns The joined and normalized glob string.
26
+ */
27
+ export declare function joinGlobs(globs: string[], options?: GlobOptions): string;
28
+ //# sourceMappingURL=join_globs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join_globs.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
@@ -0,0 +1,213 @@
1
+ /**
2
+ * Utilities for working with OS-specific file paths.
3
+ *
4
+ * Functions from this module will automatically switch to support the path style
5
+ * of the current OS, either `windows` for Microsoft Windows, or `posix` for
6
+ * every other operating system, eg. Linux, MacOS, BSD etc.
7
+ *
8
+ * To use functions for a specific path style regardless of the current OS
9
+ * import the modules from the platform sub directory instead.
10
+ *
11
+ * ## Basic Path Operations
12
+ *
13
+ * ```ts
14
+ * import * as path from "@std/path";
15
+ * import { assertEquals } from "@std/assert";
16
+ *
17
+ * // Get components of a path
18
+ * if (Deno.build.os === "windows") {
19
+ * assertEquals(path.basename("C:\\Users\\user\\file.txt"), "file.txt");
20
+ * assertEquals(path.dirname("C:\\Users\\user\\file.txt"), "C:\\Users\\user");
21
+ * assertEquals(path.extname("C:\\Users\\user\\file.txt"), ".txt");
22
+ * } else {
23
+ * assertEquals(path.basename("/home/user/file.txt"), "file.txt");
24
+ * assertEquals(path.dirname("/home/user/file.txt"), "/home/user");
25
+ * assertEquals(path.extname("/home/user/file.txt"), ".txt");
26
+ * }
27
+ *
28
+ * // Join path segments
29
+ * if (Deno.build.os === "windows") {
30
+ * assertEquals(path.join("C:\\", "Users", "docs", "file.txt"), "C:\\Users\\docs\\file.txt");
31
+ * } else {
32
+ * assertEquals(path.join("/home", "user", "docs", "file.txt"), "/home/user/docs/file.txt");
33
+ * }
34
+ *
35
+ * // Normalize a path
36
+ * if (Deno.build.os === "windows") {
37
+ * assertEquals(path.normalize("C:\\Users\\user\\..\\temp\\.\\file.txt"), "C:\\Users\\temp\\file.txt");
38
+ * } else {
39
+ * assertEquals(path.normalize("/home/user/../temp/./file.txt"), "/home/temp/file.txt");
40
+ * }
41
+ *
42
+ * // Resolve absolute path
43
+ * if (Deno.build.os === "windows") {
44
+ * const resolved = path.resolve("C:\\foo", "docs", "file.txt");
45
+ * assertEquals(resolved, "C:\\foo\\docs\\file.txt");
46
+ * assertEquals(path.isAbsolute(resolved), true);
47
+ * } else {
48
+ * const resolved = path.resolve("/foo", "docs", "file.txt");
49
+ * assertEquals(resolved, "/foo/docs/file.txt");
50
+ * assertEquals(path.isAbsolute(resolved), true);
51
+ * }
52
+ *
53
+ * // Get relative path
54
+ * if (Deno.build.os === "windows") {
55
+ * assertEquals(path.relative("C:\\Users", "C:\\Users\\docs\\file.txt"), "docs\\file.txt");
56
+ * assertEquals(path.relative("C:\\Users", "D:\\Programs"), "D:\\Programs");
57
+ * } else {
58
+ * assertEquals(path.relative("/home/user", "/home/user/docs/file.txt"), "docs/file.txt");
59
+ * assertEquals(path.relative("/home/user", "/var/data"), "../../var/data");
60
+ * }
61
+ * ```
62
+ *
63
+ * ## Path Parsing and Formatting
64
+ *
65
+ * ```ts
66
+ * import * as path from "@std/path";
67
+ * import { assertEquals } from "@std/assert";
68
+ *
69
+ * if (Deno.build.os === "windows") {
70
+ * const parsedWindows = path.parse("C:\\Users\\user\\file.txt");
71
+ * assertEquals(parsedWindows.root, "C:\\");
72
+ * assertEquals(parsedWindows.dir, "C:\\Users\\user");
73
+ * assertEquals(parsedWindows.base, "file.txt");
74
+ * assertEquals(parsedWindows.ext, ".txt");
75
+ * assertEquals(parsedWindows.name, "file");
76
+ *
77
+ * // Format path from components (Windows)
78
+ * assertEquals(
79
+ * path.format({ dir: "C:\\Users\\user", base: "file.txt" }),
80
+ * "C:\\Users\\user\\file.txt"
81
+ * );
82
+ * } else {
83
+ * const parsedPosix = path.parse("/home/user/file.txt");
84
+ * assertEquals(parsedPosix.root, "/");
85
+ * assertEquals(parsedPosix.dir, "/home/user");
86
+ * assertEquals(parsedPosix.base, "file.txt");
87
+ * assertEquals(parsedPosix.ext, ".txt");
88
+ * assertEquals(parsedPosix.name, "file");
89
+ *
90
+ * // Format path from components (POSIX)
91
+ * assertEquals(
92
+ * path.format({ dir: "/home/user", base: "file.txt" }),
93
+ * "/home/user/file.txt"
94
+ * );
95
+ * }
96
+ * ```
97
+ *
98
+ * ## URL Conversion
99
+ *
100
+ * ```ts
101
+ * import * as path from "@std/path";
102
+ * import { assertEquals } from "@std/assert";
103
+ *
104
+ * // Convert between file URLs and paths
105
+ * if (Deno.build.os === "windows") {
106
+ * assertEquals(path.fromFileUrl("file:///C:/Users/user/file.txt"), "C:\\Users\\user\\file.txt");
107
+ * assertEquals(path.toFileUrl("C:\\Users\\user\\file.txt").href, "file:///C:/Users/user/file.txt");
108
+ * } else {
109
+ * assertEquals(path.fromFileUrl("file:///home/user/file.txt"), "/home/user/file.txt");
110
+ * assertEquals(path.toFileUrl("/home/user/file.txt").href, "file:///home/user/file.txt");
111
+ * }
112
+ * ```
113
+ *
114
+ * ## Path Properties
115
+ *
116
+ * ```ts
117
+ * import * as path from "@std/path";
118
+ * import { assertEquals } from "@std/assert";
119
+ *
120
+ * // Check if path is absolute
121
+ * if (Deno.build.os === "windows") {
122
+ * assertEquals(path.isAbsolute("C:\\Users"), true);
123
+ * assertEquals(path.isAbsolute("\\\\Server\\share"), true);
124
+ * assertEquals(path.isAbsolute("C:relative\\path"), false);
125
+ * assertEquals(path.isAbsolute("..\\relative\\path"), false);
126
+ * } else {
127
+ * assertEquals(path.isAbsolute("/home/user"), true);
128
+ * assertEquals(path.isAbsolute("./relative/path"), false);
129
+ * assertEquals(path.isAbsolute("../relative/path"), false);
130
+ * }
131
+ *
132
+ * // Convert to namespaced path (Windows-specific)
133
+ * if (Deno.build.os === "windows") {
134
+ * assertEquals(path.toNamespacedPath("C:\\Users\\file.txt"), "\\\\?\\C:\\Users\\file.txt");
135
+ * assertEquals(path.toNamespacedPath("\\\\server\\share\\file.txt"), "\\\\?\\UNC\\server\\share\\file.txt");
136
+ * } else {
137
+ * // On POSIX, toNamespacedPath returns the path unchanged
138
+ * assertEquals(path.toNamespacedPath("/home/user/file.txt"), "/home/user/file.txt");
139
+ * }
140
+ * ```
141
+ *
142
+ * ## Glob Pattern Utilities
143
+ *
144
+ * ```ts
145
+ * import * as path from "@std/path";
146
+ * import { assertEquals } from "@std/assert";
147
+ *
148
+ * // Check if a string is a glob pattern
149
+ * assertEquals(path.isGlob("*.txt"), true);
150
+ *
151
+ * // Convert glob pattern to RegExp
152
+ * const pattern = path.globToRegExp("*.txt");
153
+ * assertEquals(pattern.test("file.txt"), true);
154
+ *
155
+ * // Join multiple glob patterns
156
+ * if (Deno.build.os === "windows") {
157
+ * assertEquals(path.joinGlobs(["src", "**\\*.ts"]), "src\\**\\*.ts");
158
+ * } else {
159
+ * assertEquals(path.joinGlobs(["src", "**\/*.ts"]), "src/**\/*.ts");
160
+ * }
161
+ *
162
+ * // Normalize a glob pattern
163
+ * if (Deno.build.os === "windows") {
164
+ * assertEquals(path.normalizeGlob("src\\..\\**\\*.ts"), "**\\*.ts");
165
+ * } else {
166
+ * assertEquals(path.normalizeGlob("src/../**\/*.ts"), "**\/*.ts");
167
+ * }
168
+ * ```
169
+ *
170
+ * For POSIX-specific functions:
171
+ *
172
+ * ```ts
173
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
174
+ * import { assertEquals } from "@std/assert";
175
+ *
176
+ * assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
177
+ * ```
178
+ *
179
+ * For Windows-specific functions:
180
+ *
181
+ * ```ts
182
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
183
+ * import { assertEquals } from "@std/assert";
184
+ *
185
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
186
+ * ```
187
+ *
188
+ * Functions for working with URLs can be found in
189
+ * {@link ./doc/posix/~ | @std/path/posix}.
190
+ *
191
+ * @module
192
+ */
193
+ export * from "./basename.js";
194
+ export * from "./constants.js";
195
+ export * from "./dirname.js";
196
+ export * from "./extname.js";
197
+ export * from "./format.js";
198
+ export * from "./from_file_url.js";
199
+ export * from "./is_absolute.js";
200
+ export * from "./join.js";
201
+ export * from "./normalize.js";
202
+ export * from "./parse.js";
203
+ export * from "./relative.js";
204
+ export * from "./resolve.js";
205
+ export * from "./to_file_url.js";
206
+ export * from "./to_namespaced_path.js";
207
+ export * from "./common.js";
208
+ export * from "./types.js";
209
+ export * from "./glob_to_regexp.js";
210
+ export * from "./is_glob.js";
211
+ export * from "./join_globs.js";
212
+ export * from "./normalize_glob.js";
213
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/mod.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+LG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Normalize the path, resolving `'..'` and `'.'` segments.
3
+ *
4
+ * Note: Resolving these segments does not necessarily mean that all will be
5
+ * eliminated. A `'..'` at the top-level will be preserved, and an empty path is
6
+ * canonically `'.'`.
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { normalize } from "@std/path/normalize";
11
+ * import { assertEquals } from "@std/assert";
12
+ *
13
+ * if (Deno.build.os === "windows") {
14
+ * assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
15
+ * assertEquals(normalize(new URL("file:///C:/foo/bar/../baz/quux")), "C:\\foo\\baz\\quux");
16
+ * } else {
17
+ * assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
18
+ * assertEquals(normalize(new URL("file:///foo/bar/../baz/quux")), "/foo/baz/quux");
19
+ * }
20
+ * ```
21
+ *
22
+ * @param path Path to be normalized
23
+ * @returns The normalized path.
24
+ */
25
+ export declare function normalize(path: string | URL): string;
26
+ //# sourceMappingURL=normalize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/normalize.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAEpD"}
@@ -0,0 +1,29 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
3
+ /**
4
+ * Normalizes a glob string.
5
+ *
6
+ * Behaves like
7
+ * {@linkcode https://jsr.io/@std/path/doc/~/normalize | normalize()}, but
8
+ * doesn't collapse "**\/.." when `globstar` is true.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { normalizeGlob } from "@std/path/normalize-glob";
13
+ * import { assertEquals } from "@std/assert";
14
+ *
15
+ * if (Deno.build.os === "windows") {
16
+ * assertEquals(normalizeGlob("foo\\bar\\..\\baz"), "foo\\baz");
17
+ * assertEquals(normalizeGlob("foo\\**\\..\\bar\\..\\baz", { globstar: true }), "foo\\**\\..\\baz");
18
+ * } else {
19
+ * assertEquals(normalizeGlob("foo/bar/../baz"), "foo/baz");
20
+ * assertEquals(normalizeGlob("foo/**\/../bar/../baz", { globstar: true }), "foo/**\/../baz");
21
+ * }
22
+ * ```
23
+ *
24
+ * @param glob Glob string to normalize.
25
+ * @param options Glob options.
26
+ * @returns The normalized glob string.
27
+ */
28
+ export declare function normalizeGlob(glob: string, options?: GlobOptions): string;
29
+ //# sourceMappingURL=normalize_glob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize_glob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAOhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
@@ -0,0 +1,35 @@
1
+ import type { ParsedPath } from "./types.js";
2
+ export type { ParsedPath } from "./types.js";
3
+ /**
4
+ * Return an object containing the parsed components of the path.
5
+ *
6
+ * Use {@linkcode https://jsr.io/@std/path/doc/~/format | format()} to reverse
7
+ * the result.
8
+ *
9
+ * @example Usage
10
+ * ```ts
11
+ * import { parse } from "@std/path/parse";
12
+ * import { assertEquals } from "@std/assert";
13
+ *
14
+ * if (Deno.build.os === "windows") {
15
+ * const parsedPathObj = parse("C:\\path\\to\\script.ts");
16
+ * assertEquals(parsedPathObj.root, "C:\\");
17
+ * assertEquals(parsedPathObj.dir, "C:\\path\\to");
18
+ * assertEquals(parsedPathObj.base, "script.ts");
19
+ * assertEquals(parsedPathObj.ext, ".ts");
20
+ * assertEquals(parsedPathObj.name, "script");
21
+ * } else {
22
+ * const parsedPathObj = parse("/path/to/dir/script.ts");
23
+ * parsedPathObj.root; // "/"
24
+ * parsedPathObj.dir; // "/path/to/dir"
25
+ * parsedPathObj.base; // "script.ts"
26
+ * parsedPathObj.ext; // ".ts"
27
+ * parsedPathObj.name; // "script"
28
+ * }
29
+ * ```
30
+ *
31
+ * @param path Path to process
32
+ * @returns An object with the parsed path components.
33
+ */
34
+ export declare function parse(path: string): ParsedPath;
35
+ //# sourceMappingURL=parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/parse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE9C"}
@@ -0,0 +1,2 @@
1
+ export declare function isPosixPathSeparator(code: number): boolean;
2
+ //# sourceMappingURL=_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Return the last portion of a `path`.
3
+ * Trailing directory separators are ignored, and optional suffix is removed.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { basename } from "@std/path/posix/basename";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * assertEquals(basename("/home/user/Documents/"), "Documents");
11
+ * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
12
+ * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
13
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
14
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
15
+ * ```
16
+ *
17
+ * @example Working with URLs
18
+ *
19
+ * Note: This function doesn't automatically strip hash and query parts from
20
+ * URLs. If your URL contains a hash or query, remove them before passing the
21
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
22
+ * and setting the `hash` and `search` properties to empty strings.
23
+ *
24
+ * ```ts
25
+ * import { basename } from "@std/path/posix/basename";
26
+ * import { assertEquals } from "@std/assert";
27
+ *
28
+ * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
29
+ * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
30
+ * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
31
+ * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
32
+ * ```
33
+ *
34
+ * @param path The path to extract the name from.
35
+ * @param suffix The suffix to remove from extracted name.
36
+ * @returns The extracted name.
37
+ */
38
+ export declare function basename(path: string | URL, suffix?: string): string;
39
+ //# sourceMappingURL=basename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAYhE"}