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.
- package/README.md +44 -120
- package/esm/app/cli/agent.js +0 -19
- package/esm/app/cli/annotate.js +7 -2
- package/esm/app/cli/benchmark.js +210 -0
- package/esm/app/cli/cli.js +50 -52
- package/esm/app/cli/command-definitions.js +258 -6
- package/esm/app/cli/common/existing.js +40 -0
- package/esm/app/cli/common/parsing.js +20 -0
- package/esm/app/cli/export.js +51 -0
- package/esm/app/cli/incept.js +106 -0
- package/esm/app/cli/index.js +9 -0
- package/esm/app/cli/init.js +72 -41
- package/esm/app/configing.js +261 -0
- package/esm/app/habbing.js +386 -0
- package/esm/app/index.js +10 -0
- package/esm/app/keeping.js +321 -0
- package/esm/app/version.js +2 -2
- package/esm/db/basing.js +66 -1
- package/esm/db/core/lmdber.js +13 -7
- package/esm/db/core/path-manager.js +193 -169
- package/esm/db/index.js +1 -0
- package/esm/db/keeping.js +214 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +235 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/mod.js +216 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +64 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +93 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +113 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +49 -0
- package/esm/npm/index.js +7 -2
- package/package.json +6 -3
- package/types/app/cli/agent.d.ts.map +1 -1
- package/types/app/cli/annotate.d.ts.map +1 -1
- package/types/app/cli/benchmark.d.ts +11 -0
- package/types/app/cli/benchmark.d.ts.map +1 -0
- package/types/app/cli/cli.d.ts.map +1 -1
- package/types/app/cli/command-definitions.d.ts +5 -2
- package/types/app/cli/command-definitions.d.ts.map +1 -1
- package/types/app/cli/command-types.d.ts +12 -0
- package/types/app/cli/command-types.d.ts.map +1 -1
- package/types/app/cli/common/existing.d.ts +4 -0
- package/types/app/cli/common/existing.d.ts.map +1 -0
- package/types/app/cli/common/parsing.d.ts +15 -0
- package/types/app/cli/common/parsing.d.ts.map +1 -0
- package/types/app/cli/export.d.ts +8 -0
- package/types/app/cli/export.d.ts.map +1 -0
- package/types/app/cli/incept.d.ts +8 -0
- package/types/app/cli/incept.d.ts.map +1 -0
- package/types/app/cli/index.d.ts +10 -0
- package/types/app/cli/index.d.ts.map +1 -0
- package/types/app/cli/init.d.ts +5 -0
- package/types/app/cli/init.d.ts.map +1 -1
- package/types/app/configing.d.ts +57 -0
- package/types/app/configing.d.ts.map +1 -0
- package/types/app/habbing.d.ts +107 -0
- package/types/app/habbing.d.ts.map +1 -0
- package/types/app/index.d.ts +11 -0
- package/types/app/index.d.ts.map +1 -0
- package/types/app/keeping.d.ts +72 -0
- package/types/app/keeping.d.ts.map +1 -0
- package/types/app/version.d.ts +2 -2
- package/types/app/version.d.ts.map +1 -1
- package/types/db/basing.d.ts +16 -1
- package/types/db/basing.d.ts.map +1 -1
- package/types/db/core/lmdber.d.ts +8 -4
- package/types/db/core/lmdber.d.ts.map +1 -1
- package/types/db/core/path-manager.d.ts +88 -24
- package/types/db/core/path-manager.d.ts.map +1 -1
- package/types/db/index.d.ts +1 -0
- package/types/db/index.d.ts.map +1 -1
- package/types/db/keeping.d.ts +73 -0
- package/types/db/keeping.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +4 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/common.d.ts +28 -0
- package/types/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
- package/types/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/format.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
- package/types/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
- package/types/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/mod.d.ts +213 -0
- package/types/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
- package/types/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +29 -0
- package/types/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/parse.d.ts +35 -0
- package/types/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +24 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +25 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +16 -0
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/relative.d.ts +24 -0
- package/types/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +21 -0
- package/types/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/types.d.ts +38 -0
- package/types/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +24 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +25 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +1 -0
- package/types/npm/index.d.ts +7 -2
- package/types/npm/index.d.ts.map +1 -1
- package/esm/app/cli/stub-commands.js +0 -61
- package/types/app/cli/stub-commands.d.ts +0 -6
- package/types/app/cli/stub-commands.d.ts.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A parsed path object generated by path.parse() or consumed by path.format().
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { parse } from "@std/path";
|
|
7
|
+
*
|
|
8
|
+
* const parsedPathObj = parse("c:\\path\\dir\\index.html");
|
|
9
|
+
* parsedPathObj.root; // "c:\\"
|
|
10
|
+
* parsedPathObj.dir; // "c:\\path\\dir"
|
|
11
|
+
* parsedPathObj.base; // "index.html"
|
|
12
|
+
* parsedPathObj.ext; // ".html"
|
|
13
|
+
* parsedPathObj.name; // "index"
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export interface ParsedPath {
|
|
17
|
+
/**
|
|
18
|
+
* The root of the path such as '/' or 'c:\'
|
|
19
|
+
*/
|
|
20
|
+
root: string;
|
|
21
|
+
/**
|
|
22
|
+
* The full directory path of the parent such as '/home/user/dir' or 'c:\path\dir'
|
|
23
|
+
*/
|
|
24
|
+
dir: string;
|
|
25
|
+
/**
|
|
26
|
+
* The file name including extension (if any) such as 'index.html'
|
|
27
|
+
*/
|
|
28
|
+
base: string;
|
|
29
|
+
/**
|
|
30
|
+
* The file extension (if any) such as '.html'
|
|
31
|
+
*/
|
|
32
|
+
ext: string;
|
|
33
|
+
/**
|
|
34
|
+
* The file name without extension (if any) such as 'index'
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/_util.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKzD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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/windows/basename";
|
|
8
|
+
* import { assertEquals } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* assertEquals(basename("C:\\user\\Documents\\"), "Documents");
|
|
11
|
+
* assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
|
|
12
|
+
* assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
|
|
13
|
+
* assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
|
|
14
|
+
* assertEquals(basename(new URL("file:///C:/user/Documents/image.png"), ".png"), "image");
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param path The path to extract the name from.
|
|
18
|
+
* @param suffix The suffix to remove from extracted name.
|
|
19
|
+
* @returns The extracted name.
|
|
20
|
+
*/
|
|
21
|
+
export declare function basename(path: string | URL, suffix?: string): string;
|
|
22
|
+
//# 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/windows/basename.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAoBhE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The character used to separate entries in the PATH environment variable.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DELIMITER: ";";
|
|
5
|
+
/**
|
|
6
|
+
* The character used to separate components of a file path.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SEPARATOR: "\\";
|
|
9
|
+
/**
|
|
10
|
+
* A regular expression that matches one or more path separators.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SEPARATOR_PATTERN: RegExp;
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,IAAa,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the directory path of a `path`.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { dirname } from "@std/path/windows/dirname";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(dirname("C:\\foo\\bar\\baz.ext"), "C:\\foo\\bar");
|
|
10
|
+
* assertEquals(dirname(new URL("file:///C:/foo/bar/baz.ext")), "C:\\foo\\bar");
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param path The path to get the directory from.
|
|
14
|
+
* @returns The directory path.
|
|
15
|
+
*/
|
|
16
|
+
export declare function dirname(path: string | URL): string;
|
|
17
|
+
//# sourceMappingURL=dirname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/dirname.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAyFlD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the extension of the `path` with leading period.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { extname } from "@std/path/windows/extname";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(extname("file.ts"), ".ts");
|
|
10
|
+
* assertEquals(extname(new URL("file:///C:/foo/bar/baz.ext")), ".ext");
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param path The path to get the extension from.
|
|
14
|
+
* @returns The extension of the `path`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function extname(path: string | URL): string;
|
|
17
|
+
//# 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/windows/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAkElD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ParsedPath } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Generate a path from `ParsedPath` object.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { format } from "@std/path/windows/format";
|
|
8
|
+
* import { assertEquals } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* const path = format({
|
|
11
|
+
* root: "C:\\",
|
|
12
|
+
* dir: "C:\\path\\dir",
|
|
13
|
+
* base: "file.txt",
|
|
14
|
+
* ext: ".txt",
|
|
15
|
+
* name: "file"
|
|
16
|
+
* });
|
|
17
|
+
* assertEquals(path, "C:\\path\\dir\\file.txt");
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param pathObject The path object to format.
|
|
21
|
+
* @returns The formatted path.
|
|
22
|
+
*/
|
|
23
|
+
export declare function format(pathObject: Partial<ParsedPath>): string;
|
|
24
|
+
//# 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/windows/format.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAG9D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a file URL to a path string.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { fromFileUrl } from "@std/path/windows/from-file-url";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
|
|
10
|
+
* assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
|
|
11
|
+
* assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param url The file URL to convert.
|
|
15
|
+
* @returns The path string.
|
|
16
|
+
*/
|
|
17
|
+
export declare function fromFileUrl(url: URL | string): string;
|
|
18
|
+
//# 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/windows/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAYrD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { type GlobOptions } from "../_common/glob_to_reg_exp.js";
|
|
2
|
+
/** Convert a glob string to a regular expression.
|
|
3
|
+
*
|
|
4
|
+
* Tries to match bash glob expansion as closely as possible.
|
|
5
|
+
*
|
|
6
|
+
* Basic glob syntax:
|
|
7
|
+
* - `*` - Matches everything without leaving the path segment.
|
|
8
|
+
* - `?` - Matches any single character.
|
|
9
|
+
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
10
|
+
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
11
|
+
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
12
|
+
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
13
|
+
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
14
|
+
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
15
|
+
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
16
|
+
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
17
|
+
* for a complete list of supported character classes.
|
|
18
|
+
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
19
|
+
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
20
|
+
* - `/` - Path separator.
|
|
21
|
+
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
22
|
+
*
|
|
23
|
+
* Extended syntax:
|
|
24
|
+
* - Requires `{ extended: true }`.
|
|
25
|
+
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
26
|
+
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
27
|
+
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
28
|
+
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
29
|
+
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
30
|
+
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
31
|
+
*
|
|
32
|
+
* Globstar syntax:
|
|
33
|
+
* - Requires `{ globstar: true }`.
|
|
34
|
+
* - `**` - Matches any number of any path segments.
|
|
35
|
+
* - Must comprise its entire path segment in the provided glob.
|
|
36
|
+
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
37
|
+
*
|
|
38
|
+
* Note the following properties:
|
|
39
|
+
* - The generated `RegExp` is anchored at both start and end.
|
|
40
|
+
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
41
|
+
* provided glob have no meaning and are discarded.
|
|
42
|
+
* - Absolute globs will only match absolute paths, etc.
|
|
43
|
+
* - Empty globs will match nothing.
|
|
44
|
+
* - Any special glob syntax must be contained to one path segment. For example,
|
|
45
|
+
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
46
|
+
* first segment ends with an unclosed group.
|
|
47
|
+
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
48
|
+
* parse error has occurred. Every character for that segment is taken
|
|
49
|
+
* literally in this event.
|
|
50
|
+
*
|
|
51
|
+
* Limitations:
|
|
52
|
+
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
53
|
+
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
54
|
+
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
55
|
+
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
56
|
+
* the group occurs not nested at the end of the segment.
|
|
57
|
+
*
|
|
58
|
+
* @example Usage
|
|
59
|
+
* ```ts
|
|
60
|
+
* import { globToRegExp } from "@std/path/windows/glob-to-regexp";
|
|
61
|
+
* import { assertEquals } from "@std/assert";
|
|
62
|
+
*
|
|
63
|
+
* assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param glob Glob string to convert.
|
|
67
|
+
* @param options Conversion options.
|
|
68
|
+
* @returns The regular expression equivalent to the glob.
|
|
69
|
+
*/
|
|
70
|
+
export declare function globToRegExp(glob: string, options?: GlobOptions): RegExp;
|
|
71
|
+
//# 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/windows/glob_to_regexp.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AAWvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAER"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verifies whether provided path is absolute.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { isAbsolute } from "@std/path/windows/is-absolute";
|
|
7
|
+
* import { assert, assertFalse } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assert(isAbsolute("C:\\foo\\bar"));
|
|
10
|
+
* assertFalse(isAbsolute("..\\baz"));
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param path The path to verify.
|
|
14
|
+
* @returns `true` if the path is absolute, `false` otherwise.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isAbsolute(path: string): boolean;
|
|
17
|
+
//# 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/windows/is_absolute.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAiBhD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { join } from "@std/path/windows/join";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(join("C:\\foo", "bar", "baz\\.."), "C:\\foo\\bar");
|
|
10
|
+
* assertEquals(join(new URL("file:///C:/foo"), "bar", "baz\\.."), "C:\\foo\\bar");
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param path The path to join. This can be string or file URL.
|
|
14
|
+
* @param paths The paths to join.
|
|
15
|
+
* @returns The joined path.
|
|
16
|
+
*/
|
|
17
|
+
export declare function join(path?: URL | string, ...paths: string[]): string;
|
|
18
|
+
//# 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/windows/join.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAqDpE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
|
|
2
|
+
export type { GlobOptions };
|
|
3
|
+
/**
|
|
4
|
+
* Like join(), but doesn't collapse "**\/.." when `globstar` is true.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { joinGlobs } from "@std/path/windows/join-globs";
|
|
10
|
+
* import { assertEquals } from "@std/assert";
|
|
11
|
+
*
|
|
12
|
+
* const joined = joinGlobs(["foo", "**", "bar"], { globstar: true });
|
|
13
|
+
* assertEquals(joined, "foo\\**\\bar");
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @param globs The globs to join.
|
|
17
|
+
* @param options The options for glob pattern.
|
|
18
|
+
* @returns The joined glob pattern.
|
|
19
|
+
*/
|
|
20
|
+
export declare function joinGlobs(globs: string[], options?: Pick<GlobOptions, "globstar">): string;
|
|
21
|
+
//# 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/windows/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAKjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAM,GAC1C,MAAM,CAeR"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
3
|
+
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
4
|
+
* A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { normalize } from "@std/path/windows/normalize";
|
|
9
|
+
* import { assertEquals } from "@std/assert";
|
|
10
|
+
*
|
|
11
|
+
* assertEquals(normalize("C:\\foo\\..\\bar"), "C:\\bar");
|
|
12
|
+
* assertEquals(normalize(new URL("file:///C:/foo/../bar")), "C:\\bar");
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param path The path to normalize
|
|
16
|
+
* @returns The normalized path
|
|
17
|
+
*/
|
|
18
|
+
export declare function normalize(path: string | URL): string;
|
|
19
|
+
//# 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/windows/normalize.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CA6GpD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
|
|
2
|
+
export type { GlobOptions };
|
|
3
|
+
/**
|
|
4
|
+
* Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { normalizeGlob } from "@std/path/windows/normalize-glob";
|
|
9
|
+
* import { assertEquals } from "@std/assert";
|
|
10
|
+
*
|
|
11
|
+
* const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true });
|
|
12
|
+
* assertEquals(normalized, "**\\bar");
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param glob The glob pattern to normalize.
|
|
16
|
+
* @param options The options for glob pattern.
|
|
17
|
+
* @returns The normalized glob pattern.
|
|
18
|
+
*/
|
|
19
|
+
export declare function normalizeGlob(glob: string, options?: Pick<GlobOptions, "globstar">): string;
|
|
20
|
+
//# 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/windows/normalize_glob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAIjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAM,GAC1C,MAAM,CAcR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ParsedPath } from "../types.js";
|
|
2
|
+
export type { ParsedPath } from "../types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Return a `ParsedPath` object of the `path`.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { parse } from "@std/path/windows/parse";
|
|
9
|
+
* import { assertEquals } from "@std/assert";
|
|
10
|
+
*
|
|
11
|
+
* const parsed = parse("C:\\foo\\bar\\baz.ext");
|
|
12
|
+
* assertEquals(parsed, {
|
|
13
|
+
* root: "C:\\",
|
|
14
|
+
* dir: "C:\\foo\\bar",
|
|
15
|
+
* base: "baz.ext",
|
|
16
|
+
* ext: ".ext",
|
|
17
|
+
* name: "baz",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @param path The path to parse.
|
|
22
|
+
* @returns The `ParsedPath` object.
|
|
23
|
+
*/
|
|
24
|
+
export declare function parse(path: string): ParsedPath;
|
|
25
|
+
//# 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/windows/parse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAwJ9C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the relative path from `from` to `to` based on current working directory.
|
|
3
|
+
*
|
|
4
|
+
* An example in windows, for instance:
|
|
5
|
+
* from = 'C:\\orandea\\test\\aaa'
|
|
6
|
+
* to = 'C:\\orandea\\impl\\bbb'
|
|
7
|
+
* The output of the function should be: '..\\..\\impl\\bbb'
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { relative } from "@std/path/windows/relative";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* const relativePath = relative("C:\\foobar\\test\\aaa", "C:\\foobar\\impl\\bbb");
|
|
15
|
+
* assertEquals(relativePath, "..\\..\\impl\\bbb");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param from The path from which to calculate the relative path
|
|
19
|
+
* @param to The path to which to calculate the relative path
|
|
20
|
+
* @returns The relative path from `from` to `to`
|
|
21
|
+
*/
|
|
22
|
+
export declare function relative(from: string, to: string): string;
|
|
23
|
+
//# sourceMappingURL=relative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relative.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/relative.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAmGzD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves path segments into a `path`.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { resolve } from "@std/path/windows/resolve";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* const resolved = resolve("C:\\foo\\bar", "..\\baz");
|
|
10
|
+
* assertEquals(resolved, "C:\\foo\\baz");
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param pathSegments The path segments to process to path
|
|
14
|
+
* @returns The resolved path
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolve(...pathSegments: string[]): string;
|
|
17
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/resolve.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,GAAG,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAwJzD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a path string to a file URL.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { toFileUrl } from "@std/path/windows/to-file-url";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo"));
|
|
10
|
+
* assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo"));
|
|
11
|
+
* assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo"));
|
|
12
|
+
* ```
|
|
13
|
+
* @param path The path to convert.
|
|
14
|
+
* @returns The file URL.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toFileUrl(path: string): URL;
|
|
17
|
+
//# sourceMappingURL=to_file_url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAgB3C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves path to a namespace path
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { toNamespacedPath } from "@std/path/windows/to-namespaced-path";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* const namespaced = toNamespacedPath("C:\\foo\\bar");
|
|
10
|
+
* assertEquals(namespaced, "\\\\?\\C:\\foo\\bar");
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param path The path to resolve to namespaced path
|
|
14
|
+
* @returns The resolved namespaced path
|
|
15
|
+
*/
|
|
16
|
+
export declare function toNamespacedPath(path: string): string;
|
|
17
|
+
//# sourceMappingURL=to_namespaced_path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_namespaced_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgCrD"}
|
package/types/npm/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* npm package root entrypoint.
|
|
3
|
+
*
|
|
4
|
+
* Keep this file stable because build_npm.ts and package export paths
|
|
5
|
+
* are wired to ./src/npm/index.ts -> ./esm/npm/index.js.
|
|
6
|
+
*/
|
|
1
7
|
import "../_dnt.polyfills.js";
|
|
2
8
|
export * from "../core/index.js";
|
|
3
9
|
export * from "../db/index.js";
|
|
4
|
-
export
|
|
5
|
-
export * from "../app/version.js";
|
|
10
|
+
export * from "../app/index.js";
|
|
6
11
|
//# sourceMappingURL=index.d.ts.map
|
package/types/npm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/npm/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/npm/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,sBAAsB,CAAC;AAE9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../_dnt.shims.js";
|
|
2
|
-
export function isStubCommandsEnabled() {
|
|
3
|
-
return dntShim.Deno.env.get("TUFA_ENABLE_STUB_COMMANDS") === "1";
|
|
4
|
-
}
|
|
5
|
-
export function createStubCommandHandlers() {
|
|
6
|
-
return new Map([
|
|
7
|
-
["incept", inceptCommand],
|
|
8
|
-
["rotate", rotateCommand],
|
|
9
|
-
["interact", interactCommand],
|
|
10
|
-
["witness", witnessCommand],
|
|
11
|
-
]);
|
|
12
|
-
}
|
|
13
|
-
export function registerStubCommands(program, dispatch) {
|
|
14
|
-
const exp = program
|
|
15
|
-
.command("experimental")
|
|
16
|
-
.description("Experimental or placeholder commands");
|
|
17
|
-
exp
|
|
18
|
-
.command("incept")
|
|
19
|
-
.description("Create a new identifier (placeholder)")
|
|
20
|
-
.action(() => {
|
|
21
|
-
dispatch({ name: "incept", args: {} });
|
|
22
|
-
return Promise.resolve();
|
|
23
|
-
});
|
|
24
|
-
exp
|
|
25
|
-
.command("rotate")
|
|
26
|
-
.description("Rotate keys for an identifier (placeholder)")
|
|
27
|
-
.action(() => {
|
|
28
|
-
dispatch({ name: "rotate", args: {} });
|
|
29
|
-
return Promise.resolve();
|
|
30
|
-
});
|
|
31
|
-
exp
|
|
32
|
-
.command("interact")
|
|
33
|
-
.description("Create an interaction event (placeholder)")
|
|
34
|
-
.action(() => {
|
|
35
|
-
dispatch({ name: "interact", args: {} });
|
|
36
|
-
return Promise.resolve();
|
|
37
|
-
});
|
|
38
|
-
exp
|
|
39
|
-
.command("witness")
|
|
40
|
-
.description("Start a witness server (placeholder)")
|
|
41
|
-
.action(() => {
|
|
42
|
-
dispatch({ name: "witness", args: {} });
|
|
43
|
-
return Promise.resolve();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
// deno-lint-ignore require-yield
|
|
47
|
-
function* inceptCommand(_args) {
|
|
48
|
-
console.log("tufa experimental incept command - coming soon!");
|
|
49
|
-
}
|
|
50
|
-
// deno-lint-ignore require-yield
|
|
51
|
-
function* rotateCommand(_args) {
|
|
52
|
-
console.log("tufa experimental rotate command - coming soon!");
|
|
53
|
-
}
|
|
54
|
-
// deno-lint-ignore require-yield
|
|
55
|
-
function* interactCommand(_args) {
|
|
56
|
-
console.log("tufa experimental interact command - coming soon!");
|
|
57
|
-
}
|
|
58
|
-
// deno-lint-ignore require-yield
|
|
59
|
-
function* witnessCommand(_args) {
|
|
60
|
-
console.log("tufa experimental witness command - coming soon!");
|
|
61
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { type CommandDispatch, type CommandHandler } from "./command-types.js";
|
|
3
|
-
export declare function isStubCommandsEnabled(): boolean;
|
|
4
|
-
export declare function createStubCommandHandlers(): Map<string, CommandHandler>;
|
|
5
|
-
export declare function registerStubCommands(program: Command, dispatch: CommandDispatch): void;
|
|
6
|
-
//# sourceMappingURL=stub-commands.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stub-commands.d.ts","sourceRoot":"","sources":["../../../src/app/cli/stub-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAE5B,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED,wBAAgB,yBAAyB,IAAI,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAOvE;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,eAAe,GACxB,IAAI,CAoCN"}
|