windmill-cli 1.586.0 → 1.586.2
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/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.js +5 -4
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.js +4 -3
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.js +12 -36
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.js +1 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.js +1 -1
- package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/basename.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/dirname.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/extname.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join.js +7 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/basename.js +4 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/dirname.js +4 -6
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/extname.js +4 -8
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join.js +8 -11
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/basename.js +4 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/dirname.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/extname.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join.js +7 -10
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_chars.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_dumper_state.js +5 -14
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_loader_state.js +150 -168
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_schema.js +6 -11
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/bool.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/float.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/int.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/map.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/merge.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/nil.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/omap.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/pairs.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/regexp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/seq.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/set.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/str.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/timestamp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/undefined.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_utils.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/parse.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/stringify.js +1 -1
- package/esm/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.js +1522 -0
- package/esm/deps.js +6 -6
- package/esm/gen/services.gen.js +138 -0
- package/esm/src/commands/app/app_metadata.js +287 -0
- package/esm/src/commands/app/apps.js +65 -31
- package/esm/src/commands/app/bundle.js +249 -0
- package/esm/src/commands/app/dev.js +591 -0
- package/esm/src/commands/app/metadata.js +1 -0
- package/esm/src/commands/app/raw_apps.js +212 -0
- package/esm/src/commands/app/wmillTsDev.js +89 -0
- package/esm/src/commands/dependencies/dependencies.js +66 -0
- package/esm/src/commands/dev/dev.js +1 -1
- package/esm/src/commands/flow/flow.js +4 -5
- package/esm/src/commands/flow/flow_metadata.js +140 -0
- package/esm/src/commands/script/script.js +20 -37
- package/esm/src/commands/sync/pull.js +5 -3
- package/esm/src/commands/sync/sync.js +264 -76
- package/esm/src/commands/workspace/fork.js +6 -8
- package/esm/src/commands/workspace/workspace.js +7 -4
- package/esm/src/core/conf.js +5 -1
- package/esm/src/core/context.js +57 -47
- package/esm/src/main.js +2 -0
- package/esm/src/types.js +33 -16
- package/esm/src/utils/metadata.js +58 -178
- package/esm/src/utils/script_common.js +5 -5
- package/esm/src/utils/utils.js +21 -9
- package/package.json +4 -3
- package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.d.ts +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/basename.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/dirname.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/extname.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/basename.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/dirname.d.ts +4 -2
- package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/extname.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join.d.ts +6 -4
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize.d.ts +6 -3
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/basename.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/extname.d.ts +6 -3
- package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize.d.ts +6 -3
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_dumper_state.d.ts +1 -8
- package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_loader_state.d.ts +8 -14
- package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_schema.d.ts +3 -7
- package/types/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type.d.ts +0 -16
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
- package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.d.ts +7 -0
- package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.d.ts.map +1 -0
- package/types/deps.d.ts +6 -6
- package/types/deps.d.ts.map +1 -1
- package/types/gen/services.gen.d.ts +66 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +73 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/app_metadata.d.ts +26 -0
- package/types/src/commands/app/app_metadata.d.ts.map +1 -0
- package/types/src/commands/app/apps.d.ts +10 -1
- package/types/src/commands/app/apps.d.ts.map +1 -1
- package/types/src/commands/app/bundle.d.ts +70 -0
- package/types/src/commands/app/bundle.d.ts.map +1 -0
- package/types/src/commands/app/dev.d.ts +18 -0
- package/types/src/commands/app/dev.d.ts.map +1 -0
- package/types/src/commands/app/metadata.d.ts +20 -0
- package/types/src/commands/app/metadata.d.ts.map +1 -0
- package/types/src/commands/app/raw_apps.d.ts +18 -0
- package/types/src/commands/app/raw_apps.d.ts.map +1 -0
- package/types/src/commands/app/wmillTsDev.d.ts +2 -0
- package/types/src/commands/app/wmillTsDev.d.ts.map +1 -0
- package/types/src/commands/dependencies/dependencies.d.ts +15 -0
- package/types/src/commands/dependencies/dependencies.d.ts.map +1 -0
- package/types/src/commands/flow/flow.d.ts.map +1 -1
- package/types/src/commands/flow/flow_metadata.d.ts +8 -0
- package/types/src/commands/flow/flow_metadata.d.ts.map +1 -0
- package/types/src/commands/script/script.d.ts +4 -5
- package/types/src/commands/script/script.d.ts.map +1 -1
- package/types/src/commands/sync/pull.d.ts +1 -1
- package/types/src/commands/sync/pull.d.ts.map +1 -1
- package/types/src/commands/sync/sync.d.ts +7 -1
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/commands/workspace/fork.d.ts.map +1 -1
- package/types/src/commands/workspace/workspace.d.ts.map +1 -1
- package/types/src/core/conf.d.ts +8 -1
- package/types/src/core/conf.d.ts.map +1 -1
- package/types/src/core/context.d.ts.map +1 -1
- package/types/src/main.d.ts.map +1 -1
- package/types/src/types.d.ts +1 -1
- package/types/src/types.d.ts.map +1 -1
- package/types/src/utils/metadata.d.ts +8 -9
- package/types/src/utils/metadata.d.ts.map +1 -1
- package/types/src/utils/script_common.d.ts +6 -6
- package/types/src/utils/script_common.d.ts.map +1 -1
- package/types/src/utils/utils.d.ts +2 -0
- package/types/src/utils/utils.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +73 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +0 -5
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +0 -216
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +0 -3
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_dumper_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/stringify.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/binary.js +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_chars.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/binary.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/bool.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/float.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/int.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/map.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/merge.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/nil.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/omap.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/pairs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/seq.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/str.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/timestamp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/undefined.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_utils.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/stringify.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Ported from js-yaml v3.13.1:
|
|
2
2
|
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
3
|
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
-
// Copyright 2018-
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
5
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
6
6
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
7
7
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -186,6 +186,12 @@ export class LoaderState {
|
|
|
186
186
|
writable: true,
|
|
187
187
|
value: void 0
|
|
188
188
|
});
|
|
189
|
+
Object.defineProperty(this, "version", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
configurable: true,
|
|
192
|
+
writable: true,
|
|
193
|
+
value: void 0
|
|
194
|
+
});
|
|
189
195
|
Object.defineProperty(this, "checkLineBreaks", {
|
|
190
196
|
enumerable: true,
|
|
191
197
|
configurable: true,
|
|
@@ -234,23 +240,9 @@ export class LoaderState {
|
|
|
234
240
|
this.implicitTypes = schema.implicitTypes;
|
|
235
241
|
this.typeMap = schema.typeMap;
|
|
236
242
|
this.length = input.length;
|
|
243
|
+
this.version = null;
|
|
237
244
|
this.readIndent();
|
|
238
245
|
}
|
|
239
|
-
skipWhitespaces() {
|
|
240
|
-
let ch = this.peek();
|
|
241
|
-
while (isWhiteSpace(ch)) {
|
|
242
|
-
ch = this.next();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
skipComment() {
|
|
246
|
-
let ch = this.peek();
|
|
247
|
-
if (ch !== SHARP)
|
|
248
|
-
return;
|
|
249
|
-
ch = this.next();
|
|
250
|
-
while (ch !== 0 && !isEOL(ch)) {
|
|
251
|
-
ch = this.next();
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
246
|
readIndent() {
|
|
255
247
|
let char = this.peek();
|
|
256
248
|
while (char === SPACE) {
|
|
@@ -265,78 +257,88 @@ export class LoaderState {
|
|
|
265
257
|
this.position += 1;
|
|
266
258
|
return this.peek();
|
|
267
259
|
}
|
|
260
|
+
throwError(message) {
|
|
261
|
+
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
|
|
262
|
+
}
|
|
268
263
|
dispatchWarning(message) {
|
|
269
264
|
const error = __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, message);
|
|
270
265
|
this.onWarning?.(error);
|
|
271
266
|
}
|
|
272
|
-
yamlDirectiveHandler(args) {
|
|
267
|
+
yamlDirectiveHandler(...args) {
|
|
268
|
+
if (this.version !== null) {
|
|
269
|
+
return this.throwError("Cannot handle YAML directive: duplication of %YAML directive");
|
|
270
|
+
}
|
|
273
271
|
if (args.length !== 1) {
|
|
274
|
-
|
|
272
|
+
return this.throwError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
|
|
275
273
|
}
|
|
276
274
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
277
275
|
if (match === null) {
|
|
278
|
-
|
|
276
|
+
return this.throwError("Cannot handle YAML directive: ill-formed argument");
|
|
279
277
|
}
|
|
280
278
|
const major = parseInt(match[1], 10);
|
|
281
279
|
const minor = parseInt(match[2], 10);
|
|
282
280
|
if (major !== 1) {
|
|
283
|
-
|
|
281
|
+
return this.throwError("Cannot handle YAML directive: unacceptable YAML version");
|
|
284
282
|
}
|
|
283
|
+
this.version = args[0] ?? null;
|
|
285
284
|
this.checkLineBreaks = minor < 2;
|
|
286
285
|
if (minor !== 1 && minor !== 2) {
|
|
287
|
-
this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
|
|
286
|
+
return this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
|
|
288
287
|
}
|
|
289
|
-
return args[0] ?? null;
|
|
290
288
|
}
|
|
291
|
-
tagDirectiveHandler(args) {
|
|
289
|
+
tagDirectiveHandler(...args) {
|
|
292
290
|
if (args.length !== 2) {
|
|
293
|
-
|
|
291
|
+
return this.throwError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
|
|
294
292
|
}
|
|
295
293
|
const handle = args[0];
|
|
296
294
|
const prefix = args[1];
|
|
297
295
|
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
298
|
-
|
|
296
|
+
return this.throwError(`Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
|
|
299
297
|
}
|
|
300
298
|
if (this.tagMap.has(handle)) {
|
|
301
|
-
|
|
299
|
+
return this.throwError(`Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
|
|
302
300
|
}
|
|
303
301
|
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
304
|
-
|
|
302
|
+
return this.throwError("Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
|
|
305
303
|
}
|
|
306
304
|
this.tagMap.set(handle, prefix);
|
|
307
305
|
}
|
|
308
306
|
captureSegment(start, end, checkJson) {
|
|
307
|
+
let result;
|
|
309
308
|
if (start < end) {
|
|
310
|
-
|
|
309
|
+
result = this.input.slice(start, end);
|
|
311
310
|
if (checkJson) {
|
|
312
311
|
for (let position = 0; position < result.length; position++) {
|
|
313
312
|
const character = result.charCodeAt(position);
|
|
314
313
|
if (!(character === 0x09 ||
|
|
315
314
|
(0x20 <= character && character <= 0x10ffff))) {
|
|
316
|
-
|
|
315
|
+
return this.throwError(`Expected valid JSON character: received "${character}"`);
|
|
317
316
|
}
|
|
318
317
|
}
|
|
319
318
|
}
|
|
320
319
|
else if (PATTERN_NON_PRINTABLE.test(result)) {
|
|
321
|
-
|
|
320
|
+
return this.throwError("Stream contains non-printable characters");
|
|
322
321
|
}
|
|
323
322
|
this.result += result;
|
|
324
323
|
}
|
|
325
324
|
}
|
|
326
325
|
readBlockSequence(nodeIndent) {
|
|
326
|
+
let line;
|
|
327
|
+
let following;
|
|
327
328
|
let detected = false;
|
|
329
|
+
let ch;
|
|
328
330
|
const tag = this.tag;
|
|
329
331
|
const anchor = this.anchor;
|
|
330
332
|
const result = [];
|
|
331
333
|
if (this.anchor !== null && typeof this.anchor !== "undefined") {
|
|
332
334
|
this.anchorMap.set(this.anchor, result);
|
|
333
335
|
}
|
|
334
|
-
|
|
336
|
+
ch = this.peek();
|
|
335
337
|
while (ch !== 0) {
|
|
336
338
|
if (ch !== MINUS) {
|
|
337
339
|
break;
|
|
338
340
|
}
|
|
339
|
-
|
|
341
|
+
following = this.peek(1);
|
|
340
342
|
if (!isWhiteSpaceOrEOL(following)) {
|
|
341
343
|
break;
|
|
342
344
|
}
|
|
@@ -349,18 +351,13 @@ export class LoaderState {
|
|
|
349
351
|
continue;
|
|
350
352
|
}
|
|
351
353
|
}
|
|
352
|
-
|
|
353
|
-
this.composeNode(
|
|
354
|
-
parentIndent: nodeIndent,
|
|
355
|
-
nodeContext: CONTEXT_BLOCK_IN,
|
|
356
|
-
allowToSeek: false,
|
|
357
|
-
allowCompact: true,
|
|
358
|
-
});
|
|
354
|
+
line = this.line;
|
|
355
|
+
this.composeNode(nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
359
356
|
result.push(this.result);
|
|
360
357
|
this.skipSeparationSpace(true, -1);
|
|
361
358
|
ch = this.peek();
|
|
362
359
|
if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
|
|
363
|
-
|
|
360
|
+
return this.throwError("Cannot read block sequence: bad indentation of a sequence entry");
|
|
364
361
|
}
|
|
365
362
|
else if (this.lineIndent < nodeIndent) {
|
|
366
363
|
break;
|
|
@@ -377,7 +374,7 @@ export class LoaderState {
|
|
|
377
374
|
}
|
|
378
375
|
mergeMappings(destination, source, overridableKeys) {
|
|
379
376
|
if (!isObject(source)) {
|
|
380
|
-
|
|
377
|
+
return this.throwError("Cannot merge mappings: the provided source object is unacceptable");
|
|
381
378
|
}
|
|
382
379
|
for (const [key, value] of Object.entries(source)) {
|
|
383
380
|
if (Object.hasOwn(destination, key))
|
|
@@ -399,7 +396,7 @@ export class LoaderState {
|
|
|
399
396
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
400
397
|
for (let index = 0; index < keyNode.length; index++) {
|
|
401
398
|
if (Array.isArray(keyNode[index])) {
|
|
402
|
-
|
|
399
|
+
return this.throwError("Cannot store mapping pair: nested arrays are not supported inside keys");
|
|
403
400
|
}
|
|
404
401
|
if (typeof keyNode === "object" && isPlainObject(keyNode[index])) {
|
|
405
402
|
keyNode[index] = "[object Object]";
|
|
@@ -429,7 +426,7 @@ export class LoaderState {
|
|
|
429
426
|
Object.hasOwn(result, keyNode)) {
|
|
430
427
|
this.line = startLine || this.line;
|
|
431
428
|
this.position = startPos || this.position;
|
|
432
|
-
|
|
429
|
+
return this.throwError("Cannot store mapping pair: duplicated key");
|
|
433
430
|
}
|
|
434
431
|
Object.defineProperty(result, keyNode, {
|
|
435
432
|
value: valueNode,
|
|
@@ -453,7 +450,7 @@ export class LoaderState {
|
|
|
453
450
|
}
|
|
454
451
|
}
|
|
455
452
|
else {
|
|
456
|
-
|
|
453
|
+
return this.throwError("Cannot read line: line break not found");
|
|
457
454
|
}
|
|
458
455
|
this.line += 1;
|
|
459
456
|
this.lineStart = this.position;
|
|
@@ -462,11 +459,13 @@ export class LoaderState {
|
|
|
462
459
|
let lineBreaks = 0;
|
|
463
460
|
let ch = this.peek();
|
|
464
461
|
while (ch !== 0) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
462
|
+
while (isWhiteSpace(ch)) {
|
|
463
|
+
ch = this.next();
|
|
464
|
+
}
|
|
465
|
+
if (allowComments && ch === SHARP) {
|
|
466
|
+
do {
|
|
467
|
+
ch = this.next();
|
|
468
|
+
} while (ch !== LINE_FEED && ch !== CARRIAGE_RETURN && ch !== 0);
|
|
470
469
|
}
|
|
471
470
|
if (isEOL(ch)) {
|
|
472
471
|
this.readLineBreak();
|
|
@@ -598,17 +597,18 @@ export class LoaderState {
|
|
|
598
597
|
return false;
|
|
599
598
|
}
|
|
600
599
|
readSingleQuotedScalar(nodeIndent) {
|
|
601
|
-
let ch
|
|
600
|
+
let ch;
|
|
601
|
+
let captureStart;
|
|
602
|
+
let captureEnd;
|
|
603
|
+
ch = this.peek();
|
|
602
604
|
if (ch !== SINGLE_QUOTE) {
|
|
603
605
|
return false;
|
|
604
606
|
}
|
|
605
607
|
this.kind = "scalar";
|
|
606
608
|
this.result = "";
|
|
607
609
|
this.position++;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
ch = this.peek();
|
|
611
|
-
while (ch !== 0) {
|
|
610
|
+
captureStart = captureEnd = this.position;
|
|
611
|
+
while ((ch = this.peek()) !== 0) {
|
|
612
612
|
if (ch === SINGLE_QUOTE) {
|
|
613
613
|
this.captureSegment(captureStart, this.position, true);
|
|
614
614
|
ch = this.next();
|
|
@@ -628,15 +628,14 @@ export class LoaderState {
|
|
|
628
628
|
}
|
|
629
629
|
else if (this.position === this.lineStart &&
|
|
630
630
|
this.testDocumentSeparator()) {
|
|
631
|
-
|
|
631
|
+
return this.throwError("Unexpected end of the document within a single quoted scalar");
|
|
632
632
|
}
|
|
633
633
|
else {
|
|
634
634
|
this.position++;
|
|
635
635
|
captureEnd = this.position;
|
|
636
636
|
}
|
|
637
|
-
ch = this.peek();
|
|
638
637
|
}
|
|
639
|
-
|
|
638
|
+
return this.throwError("Unexpected end of the stream within a single quoted scalar");
|
|
640
639
|
}
|
|
641
640
|
readDoubleQuotedScalar(nodeIndent) {
|
|
642
641
|
let ch = this.peek();
|
|
@@ -649,8 +648,7 @@ export class LoaderState {
|
|
|
649
648
|
let captureEnd = this.position;
|
|
650
649
|
let captureStart = this.position;
|
|
651
650
|
let tmp;
|
|
652
|
-
ch = this.peek()
|
|
653
|
-
while (ch !== 0) {
|
|
651
|
+
while ((ch = this.peek()) !== 0) {
|
|
654
652
|
if (ch === DOUBLE_QUOTE) {
|
|
655
653
|
this.captureSegment(captureStart, this.position, true);
|
|
656
654
|
this.position++;
|
|
@@ -675,14 +673,14 @@ export class LoaderState {
|
|
|
675
673
|
hexResult = (hexResult << 4) + tmp;
|
|
676
674
|
}
|
|
677
675
|
else {
|
|
678
|
-
|
|
676
|
+
return this.throwError("Cannot read double quoted scalar: expected hexadecimal character");
|
|
679
677
|
}
|
|
680
678
|
}
|
|
681
679
|
this.result += codepointToChar(hexResult);
|
|
682
680
|
this.position++;
|
|
683
681
|
}
|
|
684
682
|
else {
|
|
685
|
-
|
|
683
|
+
return this.throwError("Cannot read double quoted scalar: unknown escape sequence");
|
|
686
684
|
}
|
|
687
685
|
captureStart = captureEnd = this.position;
|
|
688
686
|
}
|
|
@@ -693,15 +691,14 @@ export class LoaderState {
|
|
|
693
691
|
}
|
|
694
692
|
else if (this.position === this.lineStart &&
|
|
695
693
|
this.testDocumentSeparator()) {
|
|
696
|
-
|
|
694
|
+
return this.throwError("Unexpected end of the document within a double quoted scalar");
|
|
697
695
|
}
|
|
698
696
|
else {
|
|
699
697
|
this.position++;
|
|
700
698
|
captureEnd = this.position;
|
|
701
699
|
}
|
|
702
|
-
ch = this.peek();
|
|
703
700
|
}
|
|
704
|
-
|
|
701
|
+
return this.throwError("Unexpected end of the stream within a double quoted scalar");
|
|
705
702
|
}
|
|
706
703
|
readFlowCollection(nodeIndent) {
|
|
707
704
|
let ch = this.peek();
|
|
@@ -746,7 +743,7 @@ export class LoaderState {
|
|
|
746
743
|
return true;
|
|
747
744
|
}
|
|
748
745
|
if (!readNext) {
|
|
749
|
-
|
|
746
|
+
return this.throwError("Cannot read flow collection: missing comma between flow collection entries");
|
|
750
747
|
}
|
|
751
748
|
keyTag = keyNode = valueNode = null;
|
|
752
749
|
isPair = isExplicitPair = false;
|
|
@@ -759,12 +756,7 @@ export class LoaderState {
|
|
|
759
756
|
}
|
|
760
757
|
}
|
|
761
758
|
line = this.line;
|
|
762
|
-
this.composeNode(
|
|
763
|
-
parentIndent: nodeIndent,
|
|
764
|
-
nodeContext: CONTEXT_FLOW_IN,
|
|
765
|
-
allowToSeek: false,
|
|
766
|
-
allowCompact: true,
|
|
767
|
-
});
|
|
759
|
+
this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
768
760
|
keyTag = this.tag || null;
|
|
769
761
|
keyNode = this.result;
|
|
770
762
|
this.skipSeparationSpace(true, nodeIndent);
|
|
@@ -773,12 +765,7 @@ export class LoaderState {
|
|
|
773
765
|
isPair = true;
|
|
774
766
|
ch = this.next();
|
|
775
767
|
this.skipSeparationSpace(true, nodeIndent);
|
|
776
|
-
this.composeNode(
|
|
777
|
-
parentIndent: nodeIndent,
|
|
778
|
-
nodeContext: CONTEXT_FLOW_IN,
|
|
779
|
-
allowToSeek: false,
|
|
780
|
-
allowCompact: true,
|
|
781
|
-
});
|
|
768
|
+
this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
782
769
|
valueNode = this.result;
|
|
783
770
|
}
|
|
784
771
|
if (isMapping) {
|
|
@@ -800,7 +787,7 @@ export class LoaderState {
|
|
|
800
787
|
readNext = false;
|
|
801
788
|
}
|
|
802
789
|
}
|
|
803
|
-
|
|
790
|
+
return this.throwError("Cannot read flow collection: unexpected end of the stream within a flow collection");
|
|
804
791
|
}
|
|
805
792
|
// Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
|
|
806
793
|
// https://yaml.org/spec/1.2.2/#81-block-scalar-styles
|
|
@@ -832,19 +819,19 @@ export class LoaderState {
|
|
|
832
819
|
chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
833
820
|
}
|
|
834
821
|
else {
|
|
835
|
-
|
|
822
|
+
return this.throwError("Cannot read block: chomping mode identifier repeated");
|
|
836
823
|
}
|
|
837
824
|
}
|
|
838
825
|
else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
|
|
839
826
|
if (tmp === 0) {
|
|
840
|
-
|
|
827
|
+
return this.throwError("Cannot read block: indentation width must be greater than 0");
|
|
841
828
|
}
|
|
842
829
|
else if (!detectedIndent) {
|
|
843
830
|
textIndent = nodeIndent + tmp - 1;
|
|
844
831
|
detectedIndent = true;
|
|
845
832
|
}
|
|
846
833
|
else {
|
|
847
|
-
|
|
834
|
+
return this.throwError("Cannot read block: indentation width identifier repeated");
|
|
848
835
|
}
|
|
849
836
|
}
|
|
850
837
|
else {
|
|
@@ -852,9 +839,14 @@ export class LoaderState {
|
|
|
852
839
|
}
|
|
853
840
|
}
|
|
854
841
|
if (isWhiteSpace(ch)) {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
842
|
+
do {
|
|
843
|
+
ch = this.next();
|
|
844
|
+
} while (isWhiteSpace(ch));
|
|
845
|
+
if (ch === SHARP) {
|
|
846
|
+
do {
|
|
847
|
+
ch = this.next();
|
|
848
|
+
} while (!isEOL(ch) && ch !== 0);
|
|
849
|
+
}
|
|
858
850
|
}
|
|
859
851
|
while (ch !== 0) {
|
|
860
852
|
this.readLineBreak();
|
|
@@ -933,6 +925,7 @@ export class LoaderState {
|
|
|
933
925
|
const anchor = this.anchor;
|
|
934
926
|
const result = {};
|
|
935
927
|
const overridableKeys = new Set();
|
|
928
|
+
let following;
|
|
936
929
|
let allowCompact = false;
|
|
937
930
|
let line;
|
|
938
931
|
let pos;
|
|
@@ -941,12 +934,13 @@ export class LoaderState {
|
|
|
941
934
|
let valueNode = null;
|
|
942
935
|
let atExplicitKey = false;
|
|
943
936
|
let detected = false;
|
|
937
|
+
let ch;
|
|
944
938
|
if (this.anchor !== null && typeof this.anchor !== "undefined") {
|
|
945
939
|
this.anchorMap.set(this.anchor, result);
|
|
946
940
|
}
|
|
947
|
-
|
|
941
|
+
ch = this.peek();
|
|
948
942
|
while (ch !== 0) {
|
|
949
|
-
|
|
943
|
+
following = this.peek(1);
|
|
950
944
|
line = this.line; // Save the current line.
|
|
951
945
|
pos = this.position;
|
|
952
946
|
//
|
|
@@ -957,9 +951,7 @@ export class LoaderState {
|
|
|
957
951
|
if (ch === QUESTION) {
|
|
958
952
|
if (atExplicitKey) {
|
|
959
953
|
this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
|
|
960
|
-
keyTag = null;
|
|
961
|
-
keyNode = null;
|
|
962
|
-
valueNode = null;
|
|
954
|
+
keyTag = keyNode = valueNode = null;
|
|
963
955
|
}
|
|
964
956
|
detected = true;
|
|
965
957
|
atExplicitKey = true;
|
|
@@ -971,7 +963,7 @@ export class LoaderState {
|
|
|
971
963
|
allowCompact = true;
|
|
972
964
|
}
|
|
973
965
|
else {
|
|
974
|
-
|
|
966
|
+
return this.throwError("Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
|
|
975
967
|
}
|
|
976
968
|
this.position += 1;
|
|
977
969
|
ch = following;
|
|
@@ -979,26 +971,20 @@ export class LoaderState {
|
|
|
979
971
|
// Implicit notation case. Flow-style node as the key first, then ":", and the value.
|
|
980
972
|
//
|
|
981
973
|
}
|
|
982
|
-
else if (this.composeNode({
|
|
983
|
-
parentIndent: flowIndent,
|
|
984
|
-
nodeContext: CONTEXT_FLOW_OUT,
|
|
985
|
-
allowToSeek: false,
|
|
986
|
-
allowCompact: true,
|
|
987
|
-
})) {
|
|
974
|
+
else if (this.composeNode(flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
988
975
|
if (this.line === line) {
|
|
989
976
|
ch = this.peek();
|
|
990
|
-
|
|
991
|
-
|
|
977
|
+
while (isWhiteSpace(ch)) {
|
|
978
|
+
ch = this.next();
|
|
979
|
+
}
|
|
992
980
|
if (ch === COLON) {
|
|
993
981
|
ch = this.next();
|
|
994
982
|
if (!isWhiteSpaceOrEOL(ch)) {
|
|
995
|
-
|
|
983
|
+
return this.throwError("Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
|
|
996
984
|
}
|
|
997
985
|
if (atExplicitKey) {
|
|
998
986
|
this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
|
|
999
|
-
keyTag = null;
|
|
1000
|
-
keyNode = null;
|
|
1001
|
-
valueNode = null;
|
|
987
|
+
keyTag = keyNode = valueNode = null;
|
|
1002
988
|
}
|
|
1003
989
|
detected = true;
|
|
1004
990
|
atExplicitKey = false;
|
|
@@ -1007,7 +993,7 @@ export class LoaderState {
|
|
|
1007
993
|
keyNode = this.result;
|
|
1008
994
|
}
|
|
1009
995
|
else if (detected) {
|
|
1010
|
-
|
|
996
|
+
return this.throwError("Cannot read an implicit mapping pair: missing colon");
|
|
1011
997
|
}
|
|
1012
998
|
else {
|
|
1013
999
|
this.tag = tag;
|
|
@@ -1016,7 +1002,7 @@ export class LoaderState {
|
|
|
1016
1002
|
}
|
|
1017
1003
|
}
|
|
1018
1004
|
else if (detected) {
|
|
1019
|
-
|
|
1005
|
+
return this.throwError("Cannot read a block mapping entry: a multiline key may not be an implicit key");
|
|
1020
1006
|
}
|
|
1021
1007
|
else {
|
|
1022
1008
|
this.tag = tag;
|
|
@@ -1031,12 +1017,7 @@ export class LoaderState {
|
|
|
1031
1017
|
// Common reading code for both explicit and implicit notations.
|
|
1032
1018
|
//
|
|
1033
1019
|
if (this.line === line || this.lineIndent > nodeIndent) {
|
|
1034
|
-
if (this.composeNode({
|
|
1035
|
-
parentIndent: nodeIndent,
|
|
1036
|
-
nodeContext: CONTEXT_BLOCK_OUT,
|
|
1037
|
-
allowToSeek: true,
|
|
1038
|
-
allowCompact,
|
|
1039
|
-
})) {
|
|
1020
|
+
if (this.composeNode(nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
1040
1021
|
if (atExplicitKey) {
|
|
1041
1022
|
keyNode = this.result;
|
|
1042
1023
|
}
|
|
@@ -1052,7 +1033,7 @@ export class LoaderState {
|
|
|
1052
1033
|
ch = this.peek();
|
|
1053
1034
|
}
|
|
1054
1035
|
if (this.lineIndent > nodeIndent && ch !== 0) {
|
|
1055
|
-
|
|
1036
|
+
return this.throwError("Cannot read block: bad indentation of a mapping entry");
|
|
1056
1037
|
}
|
|
1057
1038
|
else if (this.lineIndent < nodeIndent) {
|
|
1058
1039
|
break;
|
|
@@ -1075,15 +1056,17 @@ export class LoaderState {
|
|
|
1075
1056
|
return detected;
|
|
1076
1057
|
}
|
|
1077
1058
|
readTagProperty() {
|
|
1059
|
+
let position;
|
|
1078
1060
|
let isVerbatim = false;
|
|
1079
1061
|
let isNamed = false;
|
|
1080
1062
|
let tagHandle = "";
|
|
1081
1063
|
let tagName;
|
|
1082
|
-
let ch
|
|
1064
|
+
let ch;
|
|
1065
|
+
ch = this.peek();
|
|
1083
1066
|
if (ch !== EXCLAMATION)
|
|
1084
1067
|
return false;
|
|
1085
1068
|
if (this.tag !== null) {
|
|
1086
|
-
|
|
1069
|
+
return this.throwError("Cannot read tag property: duplication of a tag property");
|
|
1087
1070
|
}
|
|
1088
1071
|
ch = this.next();
|
|
1089
1072
|
if (ch === SMALLER_THAN) {
|
|
@@ -1098,7 +1081,7 @@ export class LoaderState {
|
|
|
1098
1081
|
else {
|
|
1099
1082
|
tagHandle = "!";
|
|
1100
1083
|
}
|
|
1101
|
-
|
|
1084
|
+
position = this.position;
|
|
1102
1085
|
if (isVerbatim) {
|
|
1103
1086
|
do {
|
|
1104
1087
|
ch = this.next();
|
|
@@ -1108,7 +1091,7 @@ export class LoaderState {
|
|
|
1108
1091
|
ch = this.next();
|
|
1109
1092
|
}
|
|
1110
1093
|
else {
|
|
1111
|
-
|
|
1094
|
+
return this.throwError("Cannot read tag property: unexpected end of stream");
|
|
1112
1095
|
}
|
|
1113
1096
|
}
|
|
1114
1097
|
else {
|
|
@@ -1117,24 +1100,24 @@ export class LoaderState {
|
|
|
1117
1100
|
if (!isNamed) {
|
|
1118
1101
|
tagHandle = this.input.slice(position - 1, this.position + 1);
|
|
1119
1102
|
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
1120
|
-
|
|
1103
|
+
return this.throwError("Cannot read tag property: named tag handle contains invalid characters");
|
|
1121
1104
|
}
|
|
1122
1105
|
isNamed = true;
|
|
1123
1106
|
position = this.position + 1;
|
|
1124
1107
|
}
|
|
1125
1108
|
else {
|
|
1126
|
-
|
|
1109
|
+
return this.throwError("Cannot read tag property: tag suffix cannot contain an exclamation mark");
|
|
1127
1110
|
}
|
|
1128
1111
|
}
|
|
1129
1112
|
ch = this.next();
|
|
1130
1113
|
}
|
|
1131
1114
|
tagName = this.input.slice(position, this.position);
|
|
1132
1115
|
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
1133
|
-
|
|
1116
|
+
return this.throwError("Cannot read tag property: tag suffix cannot contain flow indicator characters");
|
|
1134
1117
|
}
|
|
1135
1118
|
}
|
|
1136
1119
|
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
1137
|
-
|
|
1120
|
+
return this.throwError(`Cannot read tag property: invalid characters in tag name "${tagName}"`);
|
|
1138
1121
|
}
|
|
1139
1122
|
if (isVerbatim) {
|
|
1140
1123
|
this.tag = tagName;
|
|
@@ -1149,7 +1132,7 @@ export class LoaderState {
|
|
|
1149
1132
|
this.tag = `tag:yaml.org,2002:${tagName}`;
|
|
1150
1133
|
}
|
|
1151
1134
|
else {
|
|
1152
|
-
|
|
1135
|
+
return this.throwError(`Cannot read tag property: undeclared tag handle "${tagHandle}"`);
|
|
1153
1136
|
}
|
|
1154
1137
|
return true;
|
|
1155
1138
|
}
|
|
@@ -1158,7 +1141,7 @@ export class LoaderState {
|
|
|
1158
1141
|
if (ch !== AMPERSAND)
|
|
1159
1142
|
return false;
|
|
1160
1143
|
if (this.anchor !== null) {
|
|
1161
|
-
|
|
1144
|
+
return this.throwError("Cannot read anchor property: duplicate anchor property");
|
|
1162
1145
|
}
|
|
1163
1146
|
ch = this.next();
|
|
1164
1147
|
const position = this.position;
|
|
@@ -1166,7 +1149,7 @@ export class LoaderState {
|
|
|
1166
1149
|
ch = this.next();
|
|
1167
1150
|
}
|
|
1168
1151
|
if (this.position === position) {
|
|
1169
|
-
|
|
1152
|
+
return this.throwError("Cannot read anchor property: name of an anchor node must contain at least one character");
|
|
1170
1153
|
}
|
|
1171
1154
|
this.anchor = this.input.slice(position, this.position);
|
|
1172
1155
|
return true;
|
|
@@ -1180,29 +1163,32 @@ export class LoaderState {
|
|
|
1180
1163
|
ch = this.next();
|
|
1181
1164
|
}
|
|
1182
1165
|
if (this.position === position) {
|
|
1183
|
-
|
|
1166
|
+
return this.throwError("Cannot read alias: alias name must contain at least one character");
|
|
1184
1167
|
}
|
|
1185
1168
|
const alias = this.input.slice(position, this.position);
|
|
1186
1169
|
if (!this.anchorMap.has(alias)) {
|
|
1187
|
-
|
|
1170
|
+
return this.throwError(`Cannot read alias: unidentified alias "${alias}"`);
|
|
1188
1171
|
}
|
|
1189
1172
|
this.result = this.anchorMap.get(alias);
|
|
1190
1173
|
this.skipSeparationSpace(true, -1);
|
|
1191
1174
|
return true;
|
|
1192
1175
|
}
|
|
1193
|
-
composeNode(
|
|
1176
|
+
composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
1177
|
+
let allowBlockScalars;
|
|
1178
|
+
let allowBlockCollections;
|
|
1194
1179
|
let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
|
|
1195
1180
|
let atNewLine = false;
|
|
1196
1181
|
let hasContent = false;
|
|
1197
1182
|
let type;
|
|
1183
|
+
let flowIndent;
|
|
1184
|
+
let blockIndent;
|
|
1198
1185
|
this.tag = null;
|
|
1199
1186
|
this.anchor = null;
|
|
1200
1187
|
this.kind = null;
|
|
1201
1188
|
this.result = null;
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
const allowBlockStyles = allowBlockScalars;
|
|
1189
|
+
const allowBlockStyles = (allowBlockScalars =
|
|
1190
|
+
allowBlockCollections =
|
|
1191
|
+
CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext);
|
|
1206
1192
|
if (allowToSeek) {
|
|
1207
1193
|
if (this.skipSeparationSpace(true, -1)) {
|
|
1208
1194
|
atNewLine = true;
|
|
@@ -1243,8 +1229,8 @@ export class LoaderState {
|
|
|
1243
1229
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
1244
1230
|
const cond = CONTEXT_FLOW_IN === nodeContext ||
|
|
1245
1231
|
CONTEXT_FLOW_OUT === nodeContext;
|
|
1246
|
-
|
|
1247
|
-
|
|
1232
|
+
flowIndent = cond ? parentIndent : parentIndent + 1;
|
|
1233
|
+
blockIndent = this.position - this.lineStart;
|
|
1248
1234
|
if (indentStatus === 1) {
|
|
1249
1235
|
if ((allowBlockCollections &&
|
|
1250
1236
|
(this.readBlockSequence(blockIndent) ||
|
|
@@ -1261,7 +1247,7 @@ export class LoaderState {
|
|
|
1261
1247
|
else if (this.readAlias()) {
|
|
1262
1248
|
hasContent = true;
|
|
1263
1249
|
if (this.tag !== null || this.anchor !== null) {
|
|
1264
|
-
|
|
1250
|
+
return this.throwError("Cannot compose node: alias node should not have any properties");
|
|
1265
1251
|
}
|
|
1266
1252
|
}
|
|
1267
1253
|
else if (this.readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
@@ -1304,11 +1290,11 @@ export class LoaderState {
|
|
|
1304
1290
|
const map = this.typeMap[this.kind ?? "fallback"];
|
|
1305
1291
|
type = map.get(this.tag);
|
|
1306
1292
|
if (this.result !== null && type.kind !== this.kind) {
|
|
1307
|
-
|
|
1293
|
+
return this.throwError(`Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
|
|
1308
1294
|
}
|
|
1309
1295
|
if (!type.resolve(this.result)) {
|
|
1310
1296
|
// `state.result` updated in resolver if matched
|
|
1311
|
-
|
|
1297
|
+
return this.throwError(`Cannot resolve a node with !<${this.tag}> explicit tag`);
|
|
1312
1298
|
}
|
|
1313
1299
|
else {
|
|
1314
1300
|
this.result = type.construct(this.result);
|
|
@@ -1318,16 +1304,23 @@ export class LoaderState {
|
|
|
1318
1304
|
}
|
|
1319
1305
|
}
|
|
1320
1306
|
else {
|
|
1321
|
-
|
|
1307
|
+
return this.throwError(`Cannot resolve unknown tag !<${this.tag}>`);
|
|
1322
1308
|
}
|
|
1323
1309
|
}
|
|
1324
1310
|
return this.tag !== null || this.anchor !== null || hasContent;
|
|
1325
1311
|
}
|
|
1326
|
-
|
|
1312
|
+
readDocument() {
|
|
1313
|
+
const documentStart = this.position;
|
|
1314
|
+
let position;
|
|
1315
|
+
let directiveName;
|
|
1316
|
+
let directiveArgs;
|
|
1327
1317
|
let hasDirectives = false;
|
|
1328
|
-
let
|
|
1329
|
-
|
|
1330
|
-
|
|
1318
|
+
let ch;
|
|
1319
|
+
this.version = null;
|
|
1320
|
+
this.checkLineBreaks = false;
|
|
1321
|
+
this.tagMap = new Map();
|
|
1322
|
+
this.anchorMap = new Map();
|
|
1323
|
+
while ((ch = this.peek()) !== 0) {
|
|
1331
1324
|
this.skipSeparationSpace(true, -1);
|
|
1332
1325
|
ch = this.peek();
|
|
1333
1326
|
if (this.lineIndent > 0 || ch !== PERCENT) {
|
|
@@ -1335,19 +1328,25 @@ export class LoaderState {
|
|
|
1335
1328
|
}
|
|
1336
1329
|
hasDirectives = true;
|
|
1337
1330
|
ch = this.next();
|
|
1338
|
-
|
|
1331
|
+
position = this.position;
|
|
1339
1332
|
while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
|
|
1340
1333
|
ch = this.next();
|
|
1341
1334
|
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1335
|
+
directiveName = this.input.slice(position, this.position);
|
|
1336
|
+
directiveArgs = [];
|
|
1344
1337
|
if (directiveName.length < 1) {
|
|
1345
|
-
|
|
1338
|
+
return this.throwError("Cannot read document: directive name length must be greater than zero");
|
|
1346
1339
|
}
|
|
1347
1340
|
while (ch !== 0) {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1341
|
+
while (isWhiteSpace(ch)) {
|
|
1342
|
+
ch = this.next();
|
|
1343
|
+
}
|
|
1344
|
+
if (ch === SHARP) {
|
|
1345
|
+
do {
|
|
1346
|
+
ch = this.next();
|
|
1347
|
+
} while (ch !== 0 && !isEOL(ch));
|
|
1348
|
+
break;
|
|
1349
|
+
}
|
|
1351
1350
|
if (isEOL(ch))
|
|
1352
1351
|
break;
|
|
1353
1352
|
position = this.position;
|
|
@@ -1360,28 +1359,16 @@ export class LoaderState {
|
|
|
1360
1359
|
this.readLineBreak();
|
|
1361
1360
|
switch (directiveName) {
|
|
1362
1361
|
case "YAML":
|
|
1363
|
-
|
|
1364
|
-
throw __classPrivateFieldGet(this, _LoaderState_instances, "m", _LoaderState_createError).call(this, "Cannot handle YAML directive: duplication of %YAML directive");
|
|
1365
|
-
}
|
|
1366
|
-
version = this.yamlDirectiveHandler(directiveArgs);
|
|
1362
|
+
this.yamlDirectiveHandler(...directiveArgs);
|
|
1367
1363
|
break;
|
|
1368
1364
|
case "TAG":
|
|
1369
|
-
this.tagDirectiveHandler(directiveArgs);
|
|
1365
|
+
this.tagDirectiveHandler(...directiveArgs);
|
|
1370
1366
|
break;
|
|
1371
1367
|
default:
|
|
1372
1368
|
this.dispatchWarning(`unknown document directive "${directiveName}"`);
|
|
1373
1369
|
break;
|
|
1374
1370
|
}
|
|
1375
|
-
ch = this.peek();
|
|
1376
1371
|
}
|
|
1377
|
-
return hasDirectives;
|
|
1378
|
-
}
|
|
1379
|
-
readDocument() {
|
|
1380
|
-
const documentStart = this.position;
|
|
1381
|
-
this.checkLineBreaks = false;
|
|
1382
|
-
this.tagMap = new Map();
|
|
1383
|
-
this.anchorMap = new Map();
|
|
1384
|
-
const hasDirectives = this.readDirectives();
|
|
1385
1372
|
this.skipSeparationSpace(true, -1);
|
|
1386
1373
|
if (this.lineIndent === 0 &&
|
|
1387
1374
|
this.peek() === MINUS &&
|
|
@@ -1391,14 +1378,9 @@ export class LoaderState {
|
|
|
1391
1378
|
this.skipSeparationSpace(true, -1);
|
|
1392
1379
|
}
|
|
1393
1380
|
else if (hasDirectives) {
|
|
1394
|
-
|
|
1381
|
+
return this.throwError("Cannot read document: directives end mark is expected");
|
|
1395
1382
|
}
|
|
1396
|
-
this.composeNode(
|
|
1397
|
-
parentIndent: this.lineIndent - 1,
|
|
1398
|
-
nodeContext: CONTEXT_BLOCK_OUT,
|
|
1399
|
-
allowToSeek: false,
|
|
1400
|
-
allowCompact: true,
|
|
1401
|
-
});
|
|
1383
|
+
this.composeNode(this.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
1402
1384
|
this.skipSeparationSpace(true, -1);
|
|
1403
1385
|
if (this.checkLineBreaks &&
|
|
1404
1386
|
PATTERN_NON_ASCII_LINE_BREAKS.test(this.input.slice(documentStart, this.position))) {
|
|
@@ -1411,7 +1393,7 @@ export class LoaderState {
|
|
|
1411
1393
|
}
|
|
1412
1394
|
}
|
|
1413
1395
|
else if (this.position < this.length - 1) {
|
|
1414
|
-
|
|
1396
|
+
return this.throwError("Cannot read document: end of the stream or a document separator is expected");
|
|
1415
1397
|
}
|
|
1416
1398
|
return this.result;
|
|
1417
1399
|
}
|