windmill-cli 1.586.0 → 1.586.1
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 +5 -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
|
@@ -0,0 +1,1522 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __esmMin = (c, L) => () => (c && (L = c(c = 0)), L), __commonJSMin = (c, L) => () => (L || c((L = { exports: {} }).exports, L), L.exports), __export = (L, R) => {
|
|
2
|
+
let z = {};
|
|
3
|
+
for (var B in L)
|
|
4
|
+
__defProp(z, B, {
|
|
5
|
+
get: L[B],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return R && __defProp(z, Symbol.toStringTag, { value: "Module" }), z;
|
|
9
|
+
}, __copyProps = (B, V, H, U) => {
|
|
10
|
+
if (V && typeof V == "object" || typeof V == "function")
|
|
11
|
+
for (var W = __getOwnPropNames(V), G = 0, K = W.length, q; G < K; G++)
|
|
12
|
+
q = W[G], !__hasOwnProp.call(B, q) && q !== H && __defProp(B, q, {
|
|
13
|
+
get: ((c) => V[c]).bind(null, q),
|
|
14
|
+
enumerable: !(U = __getOwnPropDesc(V, q)) || U.enumerable
|
|
15
|
+
});
|
|
16
|
+
return B;
|
|
17
|
+
}, __toCommonJS = (L) => __hasOwnProp.call(L, "module.exports") ? L["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: !0 }), L), tslib_es6_exports = /* @__PURE__ */ __export({
|
|
18
|
+
__assign: () => __assign,
|
|
19
|
+
__asyncDelegator: () => __asyncDelegator,
|
|
20
|
+
__asyncGenerator: () => __asyncGenerator,
|
|
21
|
+
__asyncValues: () => __asyncValues,
|
|
22
|
+
__await: () => __await,
|
|
23
|
+
__awaiter: () => __awaiter,
|
|
24
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
25
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
26
|
+
__createBinding: () => __createBinding,
|
|
27
|
+
__decorate: () => __decorate,
|
|
28
|
+
__exportStar: () => __exportStar,
|
|
29
|
+
__extends: () => __extends,
|
|
30
|
+
__generator: () => __generator,
|
|
31
|
+
__importDefault: () => __importDefault,
|
|
32
|
+
__importStar: () => __importStar,
|
|
33
|
+
__makeTemplateObject: () => __makeTemplateObject,
|
|
34
|
+
__metadata: () => __metadata,
|
|
35
|
+
__param: () => __param,
|
|
36
|
+
__read: () => __read,
|
|
37
|
+
__rest: () => __rest,
|
|
38
|
+
__spread: () => __spread,
|
|
39
|
+
__spreadArrays: () => __spreadArrays,
|
|
40
|
+
__values: () => __values
|
|
41
|
+
});
|
|
42
|
+
function __extends(c, L) {
|
|
43
|
+
extendStatics(c, L);
|
|
44
|
+
function R() {
|
|
45
|
+
this.constructor = c;
|
|
46
|
+
}
|
|
47
|
+
c.prototype = L === null ? Object.create(L) : (R.prototype = L.prototype, new R());
|
|
48
|
+
}
|
|
49
|
+
function __rest(c, L) {
|
|
50
|
+
var R = {};
|
|
51
|
+
for (var z in c)
|
|
52
|
+
Object.prototype.hasOwnProperty.call(c, z) && L.indexOf(z) < 0 && (R[z] = c[z]);
|
|
53
|
+
if (c != null && typeof Object.getOwnPropertySymbols == "function")
|
|
54
|
+
for (var B = 0, z = Object.getOwnPropertySymbols(c); B < z.length; B++)
|
|
55
|
+
L.indexOf(z[B]) < 0 && Object.prototype.propertyIsEnumerable.call(c, z[B]) && (R[z[B]] = c[z[B]]);
|
|
56
|
+
return R;
|
|
57
|
+
}
|
|
58
|
+
function __decorate(c, L, R, z) {
|
|
59
|
+
var B = arguments.length, V = B < 3 ? L : z === null ? z = Object.getOwnPropertyDescriptor(L, R) : z, H;
|
|
60
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
61
|
+
V = Reflect.decorate(c, L, R, z);
|
|
62
|
+
else
|
|
63
|
+
for (var U = c.length - 1; U >= 0; U--)
|
|
64
|
+
(H = c[U]) && (V = (B < 3 ? H(V) : B > 3 ? H(L, R, V) : H(L, R)) || V);
|
|
65
|
+
return B > 3 && V && Object.defineProperty(L, R, V), V;
|
|
66
|
+
}
|
|
67
|
+
function __param(c, L) {
|
|
68
|
+
return function (R, z) {
|
|
69
|
+
L(R, z, c);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function __metadata(c, L) {
|
|
73
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
74
|
+
return Reflect.metadata(c, L);
|
|
75
|
+
}
|
|
76
|
+
function __awaiter(c, L, R, z) {
|
|
77
|
+
function B(c) {
|
|
78
|
+
return c instanceof R ? c : new R(function (L) {
|
|
79
|
+
L(c);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return new (R ||= Promise)(function (R, V) {
|
|
83
|
+
function H(c) {
|
|
84
|
+
try {
|
|
85
|
+
W(z.next(c));
|
|
86
|
+
}
|
|
87
|
+
catch (c) {
|
|
88
|
+
V(c);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function U(c) {
|
|
92
|
+
try {
|
|
93
|
+
W(z.throw(c));
|
|
94
|
+
}
|
|
95
|
+
catch (c) {
|
|
96
|
+
V(c);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function W(c) {
|
|
100
|
+
c.done ? R(c.value) : B(c.value).then(H, U);
|
|
101
|
+
}
|
|
102
|
+
W((z = z.apply(c, L || [])).next());
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function __generator(c, L) {
|
|
106
|
+
var R = {
|
|
107
|
+
label: 0,
|
|
108
|
+
sent: function () {
|
|
109
|
+
if (V[0] & 1)
|
|
110
|
+
throw V[1];
|
|
111
|
+
return V[1];
|
|
112
|
+
},
|
|
113
|
+
trys: [],
|
|
114
|
+
ops: []
|
|
115
|
+
}, z, B, V, H;
|
|
116
|
+
return H = {
|
|
117
|
+
next: U(0),
|
|
118
|
+
throw: U(1),
|
|
119
|
+
return: U(2)
|
|
120
|
+
}, typeof Symbol == "function" && (H[Symbol.iterator] = function () {
|
|
121
|
+
return this;
|
|
122
|
+
}), H;
|
|
123
|
+
function U(c) {
|
|
124
|
+
return function (L) {
|
|
125
|
+
return W([c, L]);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function W(H) {
|
|
129
|
+
if (z)
|
|
130
|
+
throw TypeError("Generator is already executing.");
|
|
131
|
+
for (; R;)
|
|
132
|
+
try {
|
|
133
|
+
if (z = 1, B && (V = H[0] & 2 ? B.return : H[0] ? B.throw || ((V = B.return) && V.call(B), 0) : B.next) && !(V = V.call(B, H[1])).done)
|
|
134
|
+
return V;
|
|
135
|
+
switch (B = 0, V && (H = [H[0] & 2, V.value]), H[0]) {
|
|
136
|
+
case 0:
|
|
137
|
+
case 1:
|
|
138
|
+
V = H;
|
|
139
|
+
break;
|
|
140
|
+
case 4: return R.label++, {
|
|
141
|
+
value: H[1],
|
|
142
|
+
done: !1
|
|
143
|
+
};
|
|
144
|
+
case 5:
|
|
145
|
+
R.label++, B = H[1], H = [0];
|
|
146
|
+
continue;
|
|
147
|
+
case 7:
|
|
148
|
+
H = R.ops.pop(), R.trys.pop();
|
|
149
|
+
continue;
|
|
150
|
+
default:
|
|
151
|
+
if ((V = R.trys, !(V = V.length > 0 && V[V.length - 1])) && (H[0] === 6 || H[0] === 2)) {
|
|
152
|
+
R = 0;
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if (H[0] === 3 && (!V || H[1] > V[0] && H[1] < V[3])) {
|
|
156
|
+
R.label = H[1];
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
if (H[0] === 6 && R.label < V[1]) {
|
|
160
|
+
R.label = V[1], V = H;
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (V && R.label < V[2]) {
|
|
164
|
+
R.label = V[2], R.ops.push(H);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
V[2] && R.ops.pop(), R.trys.pop();
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
H = L.call(c, R);
|
|
171
|
+
}
|
|
172
|
+
catch (c) {
|
|
173
|
+
H = [6, c], B = 0;
|
|
174
|
+
}
|
|
175
|
+
finally {
|
|
176
|
+
z = V = 0;
|
|
177
|
+
}
|
|
178
|
+
if (H[0] & 5)
|
|
179
|
+
throw H[1];
|
|
180
|
+
return {
|
|
181
|
+
value: H[0] ? H[1] : void 0,
|
|
182
|
+
done: !0
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function __createBinding(c, L, R, z) {
|
|
187
|
+
z === void 0 && (z = R), c[z] = L[R];
|
|
188
|
+
}
|
|
189
|
+
function __exportStar(c, L) {
|
|
190
|
+
for (var R in c)
|
|
191
|
+
R !== "default" && !L.hasOwnProperty(R) && (L[R] = c[R]);
|
|
192
|
+
}
|
|
193
|
+
function __values(c) {
|
|
194
|
+
var L = typeof Symbol == "function" && Symbol.iterator, R = L && c[L], z = 0;
|
|
195
|
+
if (R)
|
|
196
|
+
return R.call(c);
|
|
197
|
+
if (c && typeof c.length == "number")
|
|
198
|
+
return { next: function () {
|
|
199
|
+
return c && z >= c.length && (c = void 0), {
|
|
200
|
+
value: c && c[z++],
|
|
201
|
+
done: !c
|
|
202
|
+
};
|
|
203
|
+
} };
|
|
204
|
+
throw TypeError(L ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
205
|
+
}
|
|
206
|
+
function __read(c, L) {
|
|
207
|
+
var R = typeof Symbol == "function" && c[Symbol.iterator];
|
|
208
|
+
if (!R)
|
|
209
|
+
return c;
|
|
210
|
+
var z = R.call(c), B, V = [], H;
|
|
211
|
+
try {
|
|
212
|
+
for (; (L === void 0 || L-- > 0) && !(B = z.next()).done;)
|
|
213
|
+
V.push(B.value);
|
|
214
|
+
}
|
|
215
|
+
catch (c) {
|
|
216
|
+
H = { error: c };
|
|
217
|
+
}
|
|
218
|
+
finally {
|
|
219
|
+
try {
|
|
220
|
+
B && !B.done && (R = z.return) && R.call(z);
|
|
221
|
+
}
|
|
222
|
+
finally {
|
|
223
|
+
if (H)
|
|
224
|
+
throw H.error;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return V;
|
|
228
|
+
}
|
|
229
|
+
function __spread() {
|
|
230
|
+
for (var c = [], L = 0; L < arguments.length; L++)
|
|
231
|
+
c = c.concat(__read(arguments[L]));
|
|
232
|
+
return c;
|
|
233
|
+
}
|
|
234
|
+
function __spreadArrays() {
|
|
235
|
+
for (var c = 0, L = 0, R = arguments.length; L < R; L++)
|
|
236
|
+
c += arguments[L].length;
|
|
237
|
+
for (var z = Array(c), B = 0, L = 0; L < R; L++)
|
|
238
|
+
for (var V = arguments[L], H = 0, U = V.length; H < U; H++, B++)
|
|
239
|
+
z[B] = V[H];
|
|
240
|
+
return z;
|
|
241
|
+
}
|
|
242
|
+
function __await(c) {
|
|
243
|
+
return this instanceof __await ? (this.v = c, this) : new __await(c);
|
|
244
|
+
}
|
|
245
|
+
function __asyncGenerator(c, L, R) {
|
|
246
|
+
if (!Symbol.asyncIterator)
|
|
247
|
+
throw TypeError("Symbol.asyncIterator is not defined.");
|
|
248
|
+
var z = R.apply(c, L || []), B, V = [];
|
|
249
|
+
return B = {}, H("next"), H("throw"), H("return"), B[Symbol.asyncIterator] = function () {
|
|
250
|
+
return this;
|
|
251
|
+
}, B;
|
|
252
|
+
function H(c) {
|
|
253
|
+
z[c] && (B[c] = function (L) {
|
|
254
|
+
return new Promise(function (R, z) {
|
|
255
|
+
V.push([
|
|
256
|
+
c,
|
|
257
|
+
L,
|
|
258
|
+
R,
|
|
259
|
+
z
|
|
260
|
+
]) > 1 || U(c, L);
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
function U(c, L) {
|
|
265
|
+
try {
|
|
266
|
+
W(z[c](L));
|
|
267
|
+
}
|
|
268
|
+
catch (c) {
|
|
269
|
+
q(V[0][3], c);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
function W(c) {
|
|
273
|
+
c.value instanceof __await ? Promise.resolve(c.value.v).then(G, K) : q(V[0][2], c);
|
|
274
|
+
}
|
|
275
|
+
function G(c) {
|
|
276
|
+
U("next", c);
|
|
277
|
+
}
|
|
278
|
+
function K(c) {
|
|
279
|
+
U("throw", c);
|
|
280
|
+
}
|
|
281
|
+
function q(c, L) {
|
|
282
|
+
c(L), V.shift(), V.length && U(V[0][0], V[0][1]);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function __asyncDelegator(c) {
|
|
286
|
+
var L, R;
|
|
287
|
+
return L = {}, z("next"), z("throw", function (c) {
|
|
288
|
+
throw c;
|
|
289
|
+
}), z("return"), L[Symbol.iterator] = function () {
|
|
290
|
+
return this;
|
|
291
|
+
}, L;
|
|
292
|
+
function z(z, B) {
|
|
293
|
+
L[z] = c[z] ? function (L) {
|
|
294
|
+
return (R = !R) ? {
|
|
295
|
+
value: __await(c[z](L)),
|
|
296
|
+
done: z === "return"
|
|
297
|
+
} : B ? B(L) : L;
|
|
298
|
+
} : B;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
function __asyncValues(c) {
|
|
302
|
+
if (!Symbol.asyncIterator)
|
|
303
|
+
throw TypeError("Symbol.asyncIterator is not defined.");
|
|
304
|
+
var L = c[Symbol.asyncIterator], R;
|
|
305
|
+
return L ? L.call(c) : (c = typeof __values == "function" ? __values(c) : c[Symbol.iterator](), R = {}, z("next"), z("throw"), z("return"), R[Symbol.asyncIterator] = function () {
|
|
306
|
+
return this;
|
|
307
|
+
}, R);
|
|
308
|
+
function z(L) {
|
|
309
|
+
R[L] = c[L] && function (R) {
|
|
310
|
+
return new Promise(function (z, V) {
|
|
311
|
+
R = c[L](R), B(z, V, R.done, R.value);
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function B(c, L, R, z) {
|
|
316
|
+
Promise.resolve(z).then(function (L) {
|
|
317
|
+
c({
|
|
318
|
+
value: L,
|
|
319
|
+
done: R
|
|
320
|
+
});
|
|
321
|
+
}, L);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
function __makeTemplateObject(c, L) {
|
|
325
|
+
return Object.defineProperty ? Object.defineProperty(c, "raw", { value: L }) : c.raw = L, c;
|
|
326
|
+
}
|
|
327
|
+
function __importStar(c) {
|
|
328
|
+
if (c && c.__esModule)
|
|
329
|
+
return c;
|
|
330
|
+
var L = {};
|
|
331
|
+
if (c != null)
|
|
332
|
+
for (var R in c)
|
|
333
|
+
Object.hasOwnProperty.call(c, R) && (L[R] = c[R]);
|
|
334
|
+
return L.default = c, L;
|
|
335
|
+
}
|
|
336
|
+
function __importDefault(c) {
|
|
337
|
+
return c && c.__esModule ? c : { default: c };
|
|
338
|
+
}
|
|
339
|
+
function __classPrivateFieldGet(c, L) {
|
|
340
|
+
if (!L.has(c))
|
|
341
|
+
throw TypeError("attempted to get private field on non-instance");
|
|
342
|
+
return L.get(c);
|
|
343
|
+
}
|
|
344
|
+
function __classPrivateFieldSet(c, L, R) {
|
|
345
|
+
if (!L.has(c))
|
|
346
|
+
throw TypeError("attempted to set private field on non-instance");
|
|
347
|
+
return L.set(c, R), R;
|
|
348
|
+
}
|
|
349
|
+
var extendStatics, __assign, init_tslib_es6 = __esmMin((() => {
|
|
350
|
+
extendStatics = function (c, L) {
|
|
351
|
+
return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (c, L) {
|
|
352
|
+
c.__proto__ = L;
|
|
353
|
+
} || function (c, L) {
|
|
354
|
+
for (var R in L)
|
|
355
|
+
L.hasOwnProperty(R) && (c[R] = L[R]);
|
|
356
|
+
}, extendStatics(c, L);
|
|
357
|
+
}, __assign = function () {
|
|
358
|
+
return __assign = Object.assign || function (c) {
|
|
359
|
+
for (var L, R = 1, z = arguments.length; R < z; R++)
|
|
360
|
+
for (var B in L = arguments[R], L)
|
|
361
|
+
Object.prototype.hasOwnProperty.call(L, B) && (c[B] = L[B]);
|
|
362
|
+
return c;
|
|
363
|
+
}, __assign.apply(this, arguments);
|
|
364
|
+
};
|
|
365
|
+
})), require_constants = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
366
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.MAX_HASHABLE_LENGTH = c.INIT = c.KEY = c.DIGEST_LENGTH = c.BLOCK_SIZE = void 0, c.BLOCK_SIZE = 64, c.DIGEST_LENGTH = 32, c.KEY = new Uint32Array([
|
|
367
|
+
1116352408,
|
|
368
|
+
1899447441,
|
|
369
|
+
3049323471,
|
|
370
|
+
3921009573,
|
|
371
|
+
961987163,
|
|
372
|
+
1508970993,
|
|
373
|
+
2453635748,
|
|
374
|
+
2870763221,
|
|
375
|
+
3624381080,
|
|
376
|
+
310598401,
|
|
377
|
+
607225278,
|
|
378
|
+
1426881987,
|
|
379
|
+
1925078388,
|
|
380
|
+
2162078206,
|
|
381
|
+
2614888103,
|
|
382
|
+
3248222580,
|
|
383
|
+
3835390401,
|
|
384
|
+
4022224774,
|
|
385
|
+
264347078,
|
|
386
|
+
604807628,
|
|
387
|
+
770255983,
|
|
388
|
+
1249150122,
|
|
389
|
+
1555081692,
|
|
390
|
+
1996064986,
|
|
391
|
+
2554220882,
|
|
392
|
+
2821834349,
|
|
393
|
+
2952996808,
|
|
394
|
+
3210313671,
|
|
395
|
+
3336571891,
|
|
396
|
+
3584528711,
|
|
397
|
+
113926993,
|
|
398
|
+
338241895,
|
|
399
|
+
666307205,
|
|
400
|
+
773529912,
|
|
401
|
+
1294757372,
|
|
402
|
+
1396182291,
|
|
403
|
+
1695183700,
|
|
404
|
+
1986661051,
|
|
405
|
+
2177026350,
|
|
406
|
+
2456956037,
|
|
407
|
+
2730485921,
|
|
408
|
+
2820302411,
|
|
409
|
+
3259730800,
|
|
410
|
+
3345764771,
|
|
411
|
+
3516065817,
|
|
412
|
+
3600352804,
|
|
413
|
+
4094571909,
|
|
414
|
+
275423344,
|
|
415
|
+
430227734,
|
|
416
|
+
506948616,
|
|
417
|
+
659060556,
|
|
418
|
+
883997877,
|
|
419
|
+
958139571,
|
|
420
|
+
1322822218,
|
|
421
|
+
1537002063,
|
|
422
|
+
1747873779,
|
|
423
|
+
1955562222,
|
|
424
|
+
2024104815,
|
|
425
|
+
2227730452,
|
|
426
|
+
2361852424,
|
|
427
|
+
2428436474,
|
|
428
|
+
2756734187,
|
|
429
|
+
3204031479,
|
|
430
|
+
3329325298
|
|
431
|
+
]), c.INIT = [
|
|
432
|
+
1779033703,
|
|
433
|
+
3144134277,
|
|
434
|
+
1013904242,
|
|
435
|
+
2773480762,
|
|
436
|
+
1359893119,
|
|
437
|
+
2600822924,
|
|
438
|
+
528734635,
|
|
439
|
+
1541459225
|
|
440
|
+
], c.MAX_HASHABLE_LENGTH = 2 ** 53 - 1;
|
|
441
|
+
})), require_RawSha256 = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
442
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.RawSha256 = void 0;
|
|
443
|
+
var L = require_constants();
|
|
444
|
+
c.RawSha256 = function () {
|
|
445
|
+
function c() {
|
|
446
|
+
this.state = Int32Array.from(L.INIT), this.temp = new Int32Array(64), this.buffer = new Uint8Array(64), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1;
|
|
447
|
+
}
|
|
448
|
+
return c.prototype.update = function (c) {
|
|
449
|
+
if (this.finished)
|
|
450
|
+
throw Error("Attempted to update an already finished hash.");
|
|
451
|
+
var R = 0, z = c.byteLength;
|
|
452
|
+
if (this.bytesHashed += z, this.bytesHashed * 8 > L.MAX_HASHABLE_LENGTH)
|
|
453
|
+
throw Error("Cannot hash more than 2^53 - 1 bits");
|
|
454
|
+
for (; z > 0;)
|
|
455
|
+
this.buffer[this.bufferLength++] = c[R++], z--, this.bufferLength === L.BLOCK_SIZE && (this.hashBuffer(), this.bufferLength = 0);
|
|
456
|
+
}, c.prototype.digest = function () {
|
|
457
|
+
if (!this.finished) {
|
|
458
|
+
var c = this.bytesHashed * 8, R = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength), z = this.bufferLength;
|
|
459
|
+
if (R.setUint8(this.bufferLength++, 128), z % L.BLOCK_SIZE >= L.BLOCK_SIZE - 8) {
|
|
460
|
+
for (var B = this.bufferLength; B < L.BLOCK_SIZE; B++)
|
|
461
|
+
R.setUint8(B, 0);
|
|
462
|
+
this.hashBuffer(), this.bufferLength = 0;
|
|
463
|
+
}
|
|
464
|
+
for (var B = this.bufferLength; B < L.BLOCK_SIZE - 8; B++)
|
|
465
|
+
R.setUint8(B, 0);
|
|
466
|
+
R.setUint32(L.BLOCK_SIZE - 8, Math.floor(c / 4294967296), !0), R.setUint32(L.BLOCK_SIZE - 4, c), this.hashBuffer(), this.finished = !0;
|
|
467
|
+
}
|
|
468
|
+
for (var V = new Uint8Array(L.DIGEST_LENGTH), B = 0; B < 8; B++)
|
|
469
|
+
V[B * 4] = this.state[B] >>> 24 & 255, V[B * 4 + 1] = this.state[B] >>> 16 & 255, V[B * 4 + 2] = this.state[B] >>> 8 & 255, V[B * 4 + 3] = this.state[B] >>> 0 & 255;
|
|
470
|
+
return V;
|
|
471
|
+
}, c.prototype.hashBuffer = function () {
|
|
472
|
+
for (var c = this, R = c.buffer, z = c.state, B = z[0], V = z[1], H = z[2], U = z[3], W = z[4], G = z[5], K = z[6], q = z[7], J = 0; J < L.BLOCK_SIZE; J++) {
|
|
473
|
+
if (J < 16)
|
|
474
|
+
this.temp[J] = (R[J * 4] & 255) << 24 | (R[J * 4 + 1] & 255) << 16 | (R[J * 4 + 2] & 255) << 8 | R[J * 4 + 3] & 255;
|
|
475
|
+
else {
|
|
476
|
+
var Y = this.temp[J - 2], X = (Y >>> 17 | Y << 15) ^ (Y >>> 19 | Y << 13) ^ Y >>> 10;
|
|
477
|
+
Y = this.temp[J - 15];
|
|
478
|
+
var Z = (Y >>> 7 | Y << 25) ^ (Y >>> 18 | Y << 14) ^ Y >>> 3;
|
|
479
|
+
this.temp[J] = (X + this.temp[J - 7] | 0) + (Z + this.temp[J - 16] | 0);
|
|
480
|
+
}
|
|
481
|
+
var Q = (((W >>> 6 | W << 26) ^ (W >>> 11 | W << 21) ^ (W >>> 25 | W << 7)) + (W & G ^ ~W & K) | 0) + (q + (L.KEY[J] + this.temp[J] | 0) | 0) | 0, $ = ((B >>> 2 | B << 30) ^ (B >>> 13 | B << 19) ^ (B >>> 22 | B << 10)) + (B & V ^ B & H ^ V & H) | 0;
|
|
482
|
+
q = K, K = G, G = W, W = U + Q | 0, U = H, H = V, V = B, B = Q + $ | 0;
|
|
483
|
+
}
|
|
484
|
+
z[0] += B, z[1] += V, z[2] += H, z[3] += U, z[4] += W, z[5] += G, z[6] += K, z[7] += q;
|
|
485
|
+
}, c;
|
|
486
|
+
}();
|
|
487
|
+
})), fromUtf8$1, toUtf8, init_pureJs = __esmMin((() => {
|
|
488
|
+
fromUtf8$1 = (c) => {
|
|
489
|
+
let L = [];
|
|
490
|
+
for (let R = 0, z = c.length; R < z; R++) {
|
|
491
|
+
let z = c.charCodeAt(R);
|
|
492
|
+
if (z < 128)
|
|
493
|
+
L.push(z);
|
|
494
|
+
else if (z < 2048)
|
|
495
|
+
L.push(z >> 6 | 192, z & 63 | 128);
|
|
496
|
+
else if (R + 1 < c.length && (z & 64512) == 55296 && (c.charCodeAt(R + 1) & 64512) == 56320) {
|
|
497
|
+
let B = 65536 + ((z & 1023) << 10) + (c.charCodeAt(++R) & 1023);
|
|
498
|
+
L.push(B >> 18 | 240, B >> 12 & 63 | 128, B >> 6 & 63 | 128, B & 63 | 128);
|
|
499
|
+
}
|
|
500
|
+
else
|
|
501
|
+
L.push(z >> 12 | 224, z >> 6 & 63 | 128, z & 63 | 128);
|
|
502
|
+
}
|
|
503
|
+
return Uint8Array.from(L);
|
|
504
|
+
}, toUtf8 = (c) => {
|
|
505
|
+
let L = "";
|
|
506
|
+
for (let R = 0, z = c.length; R < z; R++) {
|
|
507
|
+
let z = c[R];
|
|
508
|
+
if (z < 128)
|
|
509
|
+
L += String.fromCharCode(z);
|
|
510
|
+
else if (192 <= z && z < 224) {
|
|
511
|
+
let B = c[++R];
|
|
512
|
+
L += String.fromCharCode((z & 31) << 6 | B & 63);
|
|
513
|
+
}
|
|
514
|
+
else if (240 <= z && z < 365) {
|
|
515
|
+
let B = "%" + [
|
|
516
|
+
z,
|
|
517
|
+
c[++R],
|
|
518
|
+
c[++R],
|
|
519
|
+
c[++R]
|
|
520
|
+
].map((c) => c.toString(16)).join("%");
|
|
521
|
+
L += decodeURIComponent(B);
|
|
522
|
+
}
|
|
523
|
+
else
|
|
524
|
+
L += String.fromCharCode((z & 15) << 12 | (c[++R] & 63) << 6 | c[++R] & 63);
|
|
525
|
+
}
|
|
526
|
+
return L;
|
|
527
|
+
};
|
|
528
|
+
}));
|
|
529
|
+
function fromUtf8$2(c) {
|
|
530
|
+
return new TextEncoder().encode(c);
|
|
531
|
+
}
|
|
532
|
+
function toUtf8$1(c) {
|
|
533
|
+
return new TextDecoder("utf-8").decode(c);
|
|
534
|
+
}
|
|
535
|
+
var init_whatwgEncodingApi = __esmMin((() => { })), dist_es_exports = /* @__PURE__ */ __export({
|
|
536
|
+
fromUtf8: () => fromUtf8$3,
|
|
537
|
+
toUtf8: () => toUtf8$2
|
|
538
|
+
}), fromUtf8$3, toUtf8$2, init_dist_es = __esmMin((() => {
|
|
539
|
+
init_pureJs(), init_whatwgEncodingApi(), fromUtf8$3 = (c) => typeof TextEncoder == "function" ? fromUtf8$2(c) : fromUtf8$1(c), toUtf8$2 = (c) => typeof TextDecoder == "function" ? toUtf8$1(c) : toUtf8(c);
|
|
540
|
+
})), require_convertToBuffer = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
541
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.convertToBuffer = void 0;
|
|
542
|
+
var L = (init_dist_es(), __toCommonJS(dist_es_exports)), R = typeof Buffer < "u" && Buffer.from ? function (c) {
|
|
543
|
+
return Buffer.from(c, "utf8");
|
|
544
|
+
} : L.fromUtf8;
|
|
545
|
+
function z(c) {
|
|
546
|
+
return c instanceof Uint8Array ? c : typeof c == "string" ? R(c) : ArrayBuffer.isView(c) ? new Uint8Array(c.buffer, c.byteOffset, c.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(c);
|
|
547
|
+
}
|
|
548
|
+
c.convertToBuffer = z;
|
|
549
|
+
})), require_isEmptyData = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
550
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.isEmptyData = void 0;
|
|
551
|
+
function L(c) {
|
|
552
|
+
return typeof c == "string" ? c.length === 0 : c.byteLength === 0;
|
|
553
|
+
}
|
|
554
|
+
c.isEmptyData = L;
|
|
555
|
+
})), require_numToUint8 = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
556
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.numToUint8 = void 0;
|
|
557
|
+
function L(c) {
|
|
558
|
+
return new Uint8Array([
|
|
559
|
+
(c & 4278190080) >> 24,
|
|
560
|
+
(c & 16711680) >> 16,
|
|
561
|
+
(c & 65280) >> 8,
|
|
562
|
+
c & 255
|
|
563
|
+
]);
|
|
564
|
+
}
|
|
565
|
+
c.numToUint8 = L;
|
|
566
|
+
})), require_uint32ArrayFrom = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
567
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.uint32ArrayFrom = void 0;
|
|
568
|
+
function L(c) {
|
|
569
|
+
if (!Uint32Array.from) {
|
|
570
|
+
for (var L = new Uint32Array(c.length), R = 0; R < c.length;)
|
|
571
|
+
L[R] = c[R], R += 1;
|
|
572
|
+
return L;
|
|
573
|
+
}
|
|
574
|
+
return Uint32Array.from(c);
|
|
575
|
+
}
|
|
576
|
+
c.uint32ArrayFrom = L;
|
|
577
|
+
})), require_build$1 = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
578
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.uint32ArrayFrom = c.numToUint8 = c.isEmptyData = c.convertToBuffer = void 0;
|
|
579
|
+
var L = require_convertToBuffer();
|
|
580
|
+
Object.defineProperty(c, "convertToBuffer", {
|
|
581
|
+
enumerable: !0,
|
|
582
|
+
get: function () {
|
|
583
|
+
return L.convertToBuffer;
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
var R = require_isEmptyData();
|
|
587
|
+
Object.defineProperty(c, "isEmptyData", {
|
|
588
|
+
enumerable: !0,
|
|
589
|
+
get: function () {
|
|
590
|
+
return R.isEmptyData;
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
var z = require_numToUint8();
|
|
594
|
+
Object.defineProperty(c, "numToUint8", {
|
|
595
|
+
enumerable: !0,
|
|
596
|
+
get: function () {
|
|
597
|
+
return z.numToUint8;
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
var B = require_uint32ArrayFrom();
|
|
601
|
+
Object.defineProperty(c, "uint32ArrayFrom", {
|
|
602
|
+
enumerable: !0,
|
|
603
|
+
get: function () {
|
|
604
|
+
return B.uint32ArrayFrom;
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
})), require_jsSha256 = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
608
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), c.Sha256 = void 0;
|
|
609
|
+
var L = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)), R = require_constants(), z = require_RawSha256(), B = require_build$1();
|
|
610
|
+
c.Sha256 = function () {
|
|
611
|
+
function c(c) {
|
|
612
|
+
this.secret = c, this.hash = new z.RawSha256(), this.reset();
|
|
613
|
+
}
|
|
614
|
+
return c.prototype.update = function (c) {
|
|
615
|
+
if (!((0, B.isEmptyData)(c) || this.error))
|
|
616
|
+
try {
|
|
617
|
+
this.hash.update((0, B.convertToBuffer)(c));
|
|
618
|
+
}
|
|
619
|
+
catch (c) {
|
|
620
|
+
this.error = c;
|
|
621
|
+
}
|
|
622
|
+
}, c.prototype.digestSync = function () {
|
|
623
|
+
if (this.error)
|
|
624
|
+
throw this.error;
|
|
625
|
+
return this.outer ? (this.outer.finished || this.outer.update(this.hash.digest()), this.outer.digest()) : this.hash.digest();
|
|
626
|
+
}, c.prototype.digest = function () {
|
|
627
|
+
return L.__awaiter(this, void 0, void 0, function () {
|
|
628
|
+
return L.__generator(this, function (c) {
|
|
629
|
+
return [2, this.digestSync()];
|
|
630
|
+
});
|
|
631
|
+
});
|
|
632
|
+
}, c.prototype.reset = function () {
|
|
633
|
+
if (this.hash = new z.RawSha256(), this.secret) {
|
|
634
|
+
this.outer = new z.RawSha256();
|
|
635
|
+
var c = V(this.secret), L = new Uint8Array(R.BLOCK_SIZE);
|
|
636
|
+
L.set(c);
|
|
637
|
+
for (var B = 0; B < R.BLOCK_SIZE; B++)
|
|
638
|
+
c[B] ^= 54, L[B] ^= 92;
|
|
639
|
+
this.hash.update(c), this.outer.update(L);
|
|
640
|
+
for (var B = 0; B < c.byteLength; B++)
|
|
641
|
+
c[B] = 0;
|
|
642
|
+
}
|
|
643
|
+
}, c;
|
|
644
|
+
}();
|
|
645
|
+
function V(c) {
|
|
646
|
+
var L = (0, B.convertToBuffer)(c);
|
|
647
|
+
if (L.byteLength > R.BLOCK_SIZE) {
|
|
648
|
+
var V = new z.RawSha256();
|
|
649
|
+
V.update(L), L = V.digest();
|
|
650
|
+
}
|
|
651
|
+
var H = new Uint8Array(R.BLOCK_SIZE);
|
|
652
|
+
return H.set(L), H;
|
|
653
|
+
}
|
|
654
|
+
})), require_build = /* @__PURE__ */ __commonJSMin(((c) => {
|
|
655
|
+
Object.defineProperty(c, "__esModule", { value: !0 }), (init_tslib_es6(), __toCommonJS(tslib_es6_exports)).__exportStar(require_jsSha256(), c);
|
|
656
|
+
})), import_build$1 = require_build();
|
|
657
|
+
function wrapDucklakeQuery(c, L) {
|
|
658
|
+
let R = `ATTACH 'ducklake://${L}' AS dl;USE dl;\n`;
|
|
659
|
+
return c.replace(/^(--.*\n)*/, (c) => c + R);
|
|
660
|
+
}
|
|
661
|
+
function getIntrospectionQuery(c) {
|
|
662
|
+
let L = {
|
|
663
|
+
descriptions: !0,
|
|
664
|
+
specifiedByUrl: !1,
|
|
665
|
+
directiveIsRepeatable: !1,
|
|
666
|
+
schemaDescription: !1,
|
|
667
|
+
inputValueDeprecation: !1,
|
|
668
|
+
oneOf: !1,
|
|
669
|
+
...c
|
|
670
|
+
}, R = L.descriptions ? "description" : "", z = L.specifiedByUrl ? "specifiedByURL" : "", B = L.directiveIsRepeatable ? "isRepeatable" : "", V = L.schemaDescription ? R : "";
|
|
671
|
+
function H(c) {
|
|
672
|
+
return L.inputValueDeprecation ? c : "";
|
|
673
|
+
}
|
|
674
|
+
let U = L.oneOf ? "isOneOf" : "";
|
|
675
|
+
return `
|
|
676
|
+
query IntrospectionQuery {
|
|
677
|
+
__schema {
|
|
678
|
+
${V}
|
|
679
|
+
queryType { name kind }
|
|
680
|
+
mutationType { name kind }
|
|
681
|
+
subscriptionType { name kind }
|
|
682
|
+
types {
|
|
683
|
+
...FullType
|
|
684
|
+
}
|
|
685
|
+
directives {
|
|
686
|
+
name
|
|
687
|
+
${R}
|
|
688
|
+
${B}
|
|
689
|
+
locations
|
|
690
|
+
args${H("(includeDeprecated: true)")} {
|
|
691
|
+
...InputValue
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
fragment FullType on __Type {
|
|
698
|
+
kind
|
|
699
|
+
name
|
|
700
|
+
${R}
|
|
701
|
+
${z}
|
|
702
|
+
${U}
|
|
703
|
+
fields(includeDeprecated: true) {
|
|
704
|
+
name
|
|
705
|
+
${R}
|
|
706
|
+
args${H("(includeDeprecated: true)")} {
|
|
707
|
+
...InputValue
|
|
708
|
+
}
|
|
709
|
+
type {
|
|
710
|
+
...TypeRef
|
|
711
|
+
}
|
|
712
|
+
isDeprecated
|
|
713
|
+
deprecationReason
|
|
714
|
+
}
|
|
715
|
+
inputFields${H("(includeDeprecated: true)")} {
|
|
716
|
+
...InputValue
|
|
717
|
+
}
|
|
718
|
+
interfaces {
|
|
719
|
+
...TypeRef
|
|
720
|
+
}
|
|
721
|
+
enumValues(includeDeprecated: true) {
|
|
722
|
+
name
|
|
723
|
+
${R}
|
|
724
|
+
isDeprecated
|
|
725
|
+
deprecationReason
|
|
726
|
+
}
|
|
727
|
+
possibleTypes {
|
|
728
|
+
...TypeRef
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
fragment InputValue on __InputValue {
|
|
733
|
+
name
|
|
734
|
+
${R}
|
|
735
|
+
type { ...TypeRef }
|
|
736
|
+
defaultValue
|
|
737
|
+
${H("isDeprecated")}
|
|
738
|
+
${H("deprecationReason")}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
fragment TypeRef on __Type {
|
|
742
|
+
kind
|
|
743
|
+
name
|
|
744
|
+
ofType {
|
|
745
|
+
kind
|
|
746
|
+
name
|
|
747
|
+
ofType {
|
|
748
|
+
kind
|
|
749
|
+
name
|
|
750
|
+
ofType {
|
|
751
|
+
kind
|
|
752
|
+
name
|
|
753
|
+
ofType {
|
|
754
|
+
kind
|
|
755
|
+
name
|
|
756
|
+
ofType {
|
|
757
|
+
kind
|
|
758
|
+
name
|
|
759
|
+
ofType {
|
|
760
|
+
kind
|
|
761
|
+
name
|
|
762
|
+
ofType {
|
|
763
|
+
kind
|
|
764
|
+
name
|
|
765
|
+
ofType {
|
|
766
|
+
kind
|
|
767
|
+
name
|
|
768
|
+
ofType {
|
|
769
|
+
kind
|
|
770
|
+
name
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
`;
|
|
782
|
+
}
|
|
783
|
+
let ColumnIdentity = /* @__PURE__ */ function (c) {
|
|
784
|
+
return c.ByDefault = "By Default", c.Always = "Always", c.No = "No", c;
|
|
785
|
+
}({});
|
|
786
|
+
getIntrospectionQuery();
|
|
787
|
+
function buildVisibleFieldList(c, L) {
|
|
788
|
+
return c.filter((c) => c && c.ignored !== !0).map((c) => {
|
|
789
|
+
switch (L) {
|
|
790
|
+
case "postgresql": return `"${c?.field}"`;
|
|
791
|
+
case "ms_sql_server": return `[${c?.field}]`;
|
|
792
|
+
case "mysql": return `\`${c?.field}\``;
|
|
793
|
+
case "snowflake": return `"${c?.field}"`;
|
|
794
|
+
case "bigquery": return `\`${c?.field}\``;
|
|
795
|
+
case "duckdb": return `"${c?.field}"`;
|
|
796
|
+
default: throw Error("Unsupported database type: " + L);
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
function getLanguageByResourceType(c) {
|
|
801
|
+
return {
|
|
802
|
+
postgresql: "postgresql",
|
|
803
|
+
mysql: "mysql",
|
|
804
|
+
ms_sql_server: "mssql",
|
|
805
|
+
snowflake: "snowflake",
|
|
806
|
+
snowflake_oauth: "snowflake",
|
|
807
|
+
bigquery: "bigquery",
|
|
808
|
+
duckdb: "duckdb"
|
|
809
|
+
}[c];
|
|
810
|
+
}
|
|
811
|
+
function buildParameters(c, L) {
|
|
812
|
+
return c.map((c, R) => {
|
|
813
|
+
switch (L) {
|
|
814
|
+
case "postgresql": return `-- $${R + 1} ${c.field}`;
|
|
815
|
+
case "mysql": return `-- :${c.field} (${c.datatype.split("(")[0]})`;
|
|
816
|
+
case "ms_sql_server": return `-- @p${R + 1} ${c.field} (${c.datatype.split("(")[0]})`;
|
|
817
|
+
case "snowflake": return `-- ? ${c.field} (${c.datatype.split("(")[0]})`;
|
|
818
|
+
case "bigquery": return `-- @${c.field} (${c.datatype.split("(")[0]})`;
|
|
819
|
+
case "duckdb": return `-- $${c.field} (${c.datatype.split("(")[0]})`;
|
|
820
|
+
}
|
|
821
|
+
}).join("\n");
|
|
822
|
+
}
|
|
823
|
+
function getPrimaryKeys(c) {
|
|
824
|
+
let L = c?.filter((c) => c.isprimarykey)?.map((c) => c.field) ?? [];
|
|
825
|
+
return L?.length === 0 && (L = c?.map((c) => c.field) ?? []), L ?? [];
|
|
826
|
+
}
|
|
827
|
+
function makeCountQuery(c, L, R = void 0, z) {
|
|
828
|
+
let B = " WHERE ", V = " AND ", H = "", U = buildParameters([{
|
|
829
|
+
field: "quicksearch",
|
|
830
|
+
datatype: c === "bigquery" ? "string" : "text"
|
|
831
|
+
}], c);
|
|
832
|
+
U += "\n", R && (H = ` ${R} AND `);
|
|
833
|
+
let W = buildVisibleFieldList(z, c);
|
|
834
|
+
switch (c) {
|
|
835
|
+
case "mysql":
|
|
836
|
+
W.length > 0 ? H += ` (:quicksearch = '' OR CONCAT_WS(' ', ${W.join(", ")}) LIKE CONCAT('%', :quicksearch, '%'))` : H += " (:quicksearch = '' OR 1 = 1)", U += `SELECT COUNT(*) as count FROM ${L}`;
|
|
837
|
+
break;
|
|
838
|
+
case "postgresql":
|
|
839
|
+
W.length > 0 ? H += `($1 = '' OR CONCAT(${W.join(", ")}) ILIKE '%' || $1 || '%')` : H += "($1 = '' OR 1 = 1)", U += `SELECT COUNT(*) as count FROM ${L}`;
|
|
840
|
+
break;
|
|
841
|
+
case "ms_sql_server":
|
|
842
|
+
W.length > 0 ? H += `(@p1 = '' OR CONCAT(${W.join(", +")}) LIKE '%' + @p1 + '%')` : H += "(@p1 = '' OR 1 = 1)", U += `SELECT COUNT(*) as count FROM [${L}]`;
|
|
843
|
+
break;
|
|
844
|
+
case "snowflake":
|
|
845
|
+
U = "", W.length > 0 ? (U += buildParameters([{
|
|
846
|
+
field: "quicksearch",
|
|
847
|
+
datatype: "text"
|
|
848
|
+
}, {
|
|
849
|
+
field: "quicksearch",
|
|
850
|
+
datatype: "text"
|
|
851
|
+
}], c), U += "\n", H += `(? = '' OR CONCAT(${W.join(", ")}) ILIKE '%' || ? || '%')`) : (U += buildParameters([{
|
|
852
|
+
field: "quicksearch",
|
|
853
|
+
datatype: "text"
|
|
854
|
+
}], c), U += "\n", H += "(? = '' OR 1 = 1)"), U += `SELECT COUNT(*) as count FROM ${L}`;
|
|
855
|
+
break;
|
|
856
|
+
case "bigquery":
|
|
857
|
+
if (W.length > 0) {
|
|
858
|
+
let c = W.map((c) => {
|
|
859
|
+
let L = z.find((L) => L.field === c.slice(1, -1));
|
|
860
|
+
return L?.datatype === "JSON" || L?.datatype.startsWith("STRUCT") || L?.datatype.startsWith("ARRAY") ? `TO_JSON_STRING(${c})` : `${c}`;
|
|
861
|
+
}).join(",");
|
|
862
|
+
H += `(@quicksearch = '' OR REGEXP_CONTAINS(CONCAT(${c}), '(?i)' || @quicksearch))`;
|
|
863
|
+
}
|
|
864
|
+
else
|
|
865
|
+
H += "(@quicksearch = '' OR 1 = 1)";
|
|
866
|
+
U += `SELECT COUNT(*) as count FROM \`${L}\``;
|
|
867
|
+
break;
|
|
868
|
+
case "duckdb":
|
|
869
|
+
W.length > 0 ? H += ` ($quicksearch = '' OR CONCAT(' ', ${W.join(", ")}) LIKE CONCAT('%', $quicksearch, '%'))` : H += " ($quicksearch = '' OR 1 = 1)", U += `SELECT COUNT(*) as count FROM ${L}`;
|
|
870
|
+
break;
|
|
871
|
+
default: throw Error("Unsupported database type:" + c);
|
|
872
|
+
}
|
|
873
|
+
return R ? U += `${B}${H}` : (U += c === "ms_sql_server" && !R ? B : V, U += H), !R && (c === "mysql" || c === "postgresql" || c === "snowflake" || c === "bigquery" || c === "duckdb") && (U = U.replace(`${V}`, B)), U;
|
|
874
|
+
}
|
|
875
|
+
function getCountInput(c, L, R, z) {
|
|
876
|
+
if (c.type == "ducklake" && !c.ducklake || c.type == "database" && !c.resourcePath || !L || !R?.length)
|
|
877
|
+
return;
|
|
878
|
+
let B = c.type === "ducklake" ? "duckdb" : c.resourceType, V = makeCountQuery(B, L, z, R);
|
|
879
|
+
return c.type === "ducklake" && (V = wrapDucklakeQuery(V, c.ducklake)), {
|
|
880
|
+
runnable: {
|
|
881
|
+
name: "AppDbExplorer",
|
|
882
|
+
type: "inline",
|
|
883
|
+
inlineScript: {
|
|
884
|
+
content: V,
|
|
885
|
+
language: getLanguageByResourceType(B),
|
|
886
|
+
schema: {
|
|
887
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
888
|
+
properties: c.type === "database" ? { database: {
|
|
889
|
+
description: "Database name",
|
|
890
|
+
type: "object",
|
|
891
|
+
format: `resource-${B}`
|
|
892
|
+
} } : {},
|
|
893
|
+
required: ["database"],
|
|
894
|
+
type: "object"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
fields: c.type === "database" ? { database: {
|
|
899
|
+
type: "static",
|
|
900
|
+
value: `$res:${c.resourcePath}`,
|
|
901
|
+
fieldType: "object",
|
|
902
|
+
format: `resource-${B}`
|
|
903
|
+
} } : {},
|
|
904
|
+
type: "runnable",
|
|
905
|
+
fieldType: "object"
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
function makeDeleteQuery(c, L, R) {
|
|
909
|
+
let z = buildParameters(R === "snowflake" ? L.flatMap((c) => [c, c]) : L, R);
|
|
910
|
+
switch (R) {
|
|
911
|
+
case "postgresql": {
|
|
912
|
+
let R = L.map((c, L) => `($${L + 1}::text::${c.datatype} IS NULL AND ${c.field} IS NULL OR ${c.field} = $${L + 1}::text::${c.datatype})`).join("\n AND ");
|
|
913
|
+
return z += `\nDELETE FROM ${c} \nWHERE ${R} RETURNING 1;`, z;
|
|
914
|
+
}
|
|
915
|
+
case "mysql": {
|
|
916
|
+
let R = L.map((c) => `(:${c.field} IS NULL AND ${c.field} IS NULL OR ${c.field} = :${c.field})`).join("\n AND ");
|
|
917
|
+
return z += `\nDELETE FROM ${c} \nWHERE ${R}`, z;
|
|
918
|
+
}
|
|
919
|
+
case "ms_sql_server": {
|
|
920
|
+
let R = L.map((c, L) => `(@p${L + 1} IS NULL AND ${c.field} IS NULL OR ${c.field} = @p${L + 1})`).join("\n AND ");
|
|
921
|
+
return z += `\nDELETE FROM ${c} \nWHERE ${R}`, z;
|
|
922
|
+
}
|
|
923
|
+
case "snowflake": {
|
|
924
|
+
let R = L.map((c, L) => `(? = 'null' AND ${c.field} IS NULL OR ${c.field} = ?)`).join("\n AND ");
|
|
925
|
+
return z += `\nDELETE FROM ${c} \nWHERE ${R}`, z;
|
|
926
|
+
}
|
|
927
|
+
case "bigquery": {
|
|
928
|
+
let R = L.map((c, L) => `(CAST(@${c.field} AS STRING) = 'null' AND ${c.field} IS NULL OR ${c.field} = @${c.field})`).join("\n AND ");
|
|
929
|
+
return z += `\nDELETE FROM ${c} \nWHERE ${R}`, z;
|
|
930
|
+
}
|
|
931
|
+
case "duckdb": {
|
|
932
|
+
let R = L.map((c) => `($${c.field} IS NULL AND ${c.field} IS NULL OR ${c.field} = $${c.field})`).join("\n AND ");
|
|
933
|
+
return z += `\nDELETE FROM ${c} \nWHERE ${R}`, z;
|
|
934
|
+
}
|
|
935
|
+
default: throw Error("Unsupported database type");
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
function getDeleteInput(c, L, R) {
|
|
939
|
+
if (c.type == "ducklake" && !c.ducklake || c.type == "database" && !c.resourcePath || !L)
|
|
940
|
+
return;
|
|
941
|
+
let z = c.type === "ducklake" ? "duckdb" : c.resourceType, B = makeDeleteQuery(L, R, z);
|
|
942
|
+
return c.type === "ducklake" && (B = wrapDucklakeQuery(B, c.ducklake)), {
|
|
943
|
+
runnable: {
|
|
944
|
+
name: "AppDbExplorer",
|
|
945
|
+
type: "inline",
|
|
946
|
+
inlineScript: {
|
|
947
|
+
content: B,
|
|
948
|
+
language: getLanguageByResourceType(z),
|
|
949
|
+
schema: {
|
|
950
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
951
|
+
properties: {},
|
|
952
|
+
required: ["database"],
|
|
953
|
+
type: "object"
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
fields: c.type == "database" ? { database: {
|
|
958
|
+
type: "static",
|
|
959
|
+
value: `$res:${c.resourcePath}`,
|
|
960
|
+
fieldType: "object",
|
|
961
|
+
format: `resource-${z}`
|
|
962
|
+
} } : {},
|
|
963
|
+
type: "runnable",
|
|
964
|
+
fieldType: "object"
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
function formatInsertValues(c, L, R = 1) {
|
|
968
|
+
switch (L) {
|
|
969
|
+
case "mysql": return c.map((c) => `:${c.field}`).join(", ");
|
|
970
|
+
case "postgresql": return c.map((c, L) => `$${R + L}::${c.datatype}`).join(", ");
|
|
971
|
+
case "ms_sql_server": return c.map((c, L) => `@p${R + L}`).join(", ");
|
|
972
|
+
case "snowflake": return c.map(() => "?").join(", ");
|
|
973
|
+
case "bigquery": return c.map((c) => `@${c.field}`).join(", ");
|
|
974
|
+
case "duckdb": return c.map((c) => `$${c.field}`).join(", ");
|
|
975
|
+
default: throw Error("Unsupported database type");
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function formatColumnNames(c) {
|
|
979
|
+
return c.map((c) => c.field).join(", ");
|
|
980
|
+
}
|
|
981
|
+
function getUserDefaultValue(c) {
|
|
982
|
+
if (c.defaultValueNull)
|
|
983
|
+
return "NULL";
|
|
984
|
+
if (c.defaultUserValue)
|
|
985
|
+
return typeof c.defaultUserValue == "string" ? `'${c.defaultUserValue}'` : c.defaultUserValue;
|
|
986
|
+
}
|
|
987
|
+
function formatDefaultValues(c) {
|
|
988
|
+
return c.map((c) => {
|
|
989
|
+
let L = getUserDefaultValue(c);
|
|
990
|
+
return c.overrideDefaultValue === !0 ? L : L ?? c.defaultvalue;
|
|
991
|
+
}).join(", ");
|
|
992
|
+
}
|
|
993
|
+
function shouldOmitColumnInInsert(c) {
|
|
994
|
+
if (!c.hideInsert || c.isidentity === ColumnIdentity.Always)
|
|
995
|
+
return !0;
|
|
996
|
+
let L = c.defaultUserValue !== void 0 && c.defaultUserValue !== "" || c.defaultValueNull === !0, R = !!c.defaultvalue;
|
|
997
|
+
if (c.isnullable === "NO") {
|
|
998
|
+
if (!L && !R && c.isidentity === ColumnIdentity.No)
|
|
999
|
+
throw Error(`Column ${c.field} is not nullable and has no default value`);
|
|
1000
|
+
return !L && !R ? c.isidentity !== ColumnIdentity.No : !L && R;
|
|
1001
|
+
}
|
|
1002
|
+
else if (c.isnullable === "YES")
|
|
1003
|
+
return !L;
|
|
1004
|
+
return !1;
|
|
1005
|
+
}
|
|
1006
|
+
function makeInsertQuery(c, L, R) {
|
|
1007
|
+
if (!c)
|
|
1008
|
+
throw Error("Table name is required");
|
|
1009
|
+
let z = L.filter((c) => !c.hideInsert && !(R == "postgresql" && c.defaultvalue?.startsWith("nextval("))), B = L.filter((c) => !shouldOmitColumnInInsert(c)), V = z.concat(B), H = buildParameters(z, R);
|
|
1010
|
+
H += "\n";
|
|
1011
|
+
let U = B.length > 0, W = formatColumnNames(V), G = formatInsertValues(z, R), K = formatDefaultValues(B);
|
|
1012
|
+
return H += `INSERT INTO ${c} (${W}) VALUES (${G}${U ? ", " : ""}${K})`, H;
|
|
1013
|
+
}
|
|
1014
|
+
function getInsertInput(c, L, R) {
|
|
1015
|
+
let z = c.type === "ducklake" ? "duckdb" : c.resourceType, B = makeInsertQuery(L, R, z);
|
|
1016
|
+
return c.type === "ducklake" && (B = wrapDucklakeQuery(B, c.ducklake)), {
|
|
1017
|
+
runnable: {
|
|
1018
|
+
name: "AppDbExplorer",
|
|
1019
|
+
type: "inline",
|
|
1020
|
+
inlineScript: {
|
|
1021
|
+
content: B,
|
|
1022
|
+
language: getLanguageByResourceType(z),
|
|
1023
|
+
schema: {
|
|
1024
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
1025
|
+
properties: {},
|
|
1026
|
+
required: ["database"],
|
|
1027
|
+
type: "object"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
fields: c.type === "database" ? { database: {
|
|
1032
|
+
type: "static",
|
|
1033
|
+
value: `$res:${c.resourcePath}`,
|
|
1034
|
+
fieldType: "object",
|
|
1035
|
+
format: `resource-${z}`
|
|
1036
|
+
} } : {},
|
|
1037
|
+
type: "runnable",
|
|
1038
|
+
fieldType: "object"
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
function makeSnowflakeSelectQuery(c, L, R, z) {
|
|
1042
|
+
let B = coerceToNumber(z?.limit) || 100, V = coerceToNumber(z?.offset) || 0, H = [{
|
|
1043
|
+
field: "quicksearch",
|
|
1044
|
+
datatype: "text"
|
|
1045
|
+
}], U = "";
|
|
1046
|
+
U += "\n";
|
|
1047
|
+
let W = buildVisibleFieldList(L, "snowflake"), G = W.join(", ");
|
|
1048
|
+
U += `SELECT ${G} FROM ${c}`;
|
|
1049
|
+
let K = ["LENGTH(?) = 0", ...W.map((c) => (H.push({
|
|
1050
|
+
field: "quicksearch",
|
|
1051
|
+
datatype: "text"
|
|
1052
|
+
}), `CONCAT(${c}) ILIKE CONCAT('%', ?, '%')`))].join(" OR ");
|
|
1053
|
+
R ? U += ` WHERE ${R} AND (${K})` : U += ` WHERE ${K}`;
|
|
1054
|
+
let q = L.map((c) => (H.push({
|
|
1055
|
+
field: "order_by",
|
|
1056
|
+
datatype: "text"
|
|
1057
|
+
}, {
|
|
1058
|
+
field: "is_desc",
|
|
1059
|
+
datatype: "boolean"
|
|
1060
|
+
}, {
|
|
1061
|
+
field: "order_by",
|
|
1062
|
+
datatype: "text"
|
|
1063
|
+
}, {
|
|
1064
|
+
field: "is_desc",
|
|
1065
|
+
datatype: "boolean"
|
|
1066
|
+
}), `CASE WHEN ? = '${c.field}' AND ? = FALSE THEN "${c.field}" END ASC,
|
|
1067
|
+
CASE WHEN ? = '${c.field}' AND ? = TRUE THEN "${c.field}" END DESC`));
|
|
1068
|
+
return U += ` ORDER BY ${q.join(",\n")}`, U += ` LIMIT ${B} OFFSET ${V}`, U = buildParameters(H, "snowflake") + "\n" + U, U;
|
|
1069
|
+
}
|
|
1070
|
+
function makeSelectQuery(c, L, R, z, B) {
|
|
1071
|
+
if (!c)
|
|
1072
|
+
throw Error("Table name is required");
|
|
1073
|
+
let V = "", H = buildParameters([
|
|
1074
|
+
{
|
|
1075
|
+
field: "limit",
|
|
1076
|
+
datatype: z === "bigquery" ? "integer" : "int"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
field: "offset",
|
|
1080
|
+
datatype: z === "bigquery" ? "integer" : "int"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
field: "quicksearch",
|
|
1084
|
+
datatype: z === "bigquery" ? "string" : "text"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
field: "order_by",
|
|
1088
|
+
datatype: z === "bigquery" ? "string" : "text"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
field: "is_desc",
|
|
1092
|
+
datatype: z === "bigquery" ? "bool" : "boolean"
|
|
1093
|
+
}
|
|
1094
|
+
], z);
|
|
1095
|
+
H += "\n";
|
|
1096
|
+
let U = buildVisibleFieldList(L, z), W = U.join(", ");
|
|
1097
|
+
switch (z) {
|
|
1098
|
+
case "mysql": {
|
|
1099
|
+
let z = L.map((c) => `
|
|
1100
|
+
CASE WHEN :order_by = '${c.field}' AND :is_desc IS false THEN \`${c.field}\` END,
|
|
1101
|
+
CASE WHEN :order_by = '${c.field}' AND :is_desc IS true THEN \`${c.field}\` END DESC`).join(",\n");
|
|
1102
|
+
V = ` (:quicksearch = '' OR CONCAT_WS(' ', ${U.join(", ")}) LIKE CONCAT('%', :quicksearch, '%'))`, H += `SELECT ${W} FROM ${c}`, H += ` WHERE ${R ? `${R} AND` : ""} ${V}`, H += ` ORDER BY ${z}`, H += " LIMIT :limit OFFSET :offset";
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
case "postgresql": {
|
|
1106
|
+
let z = `
|
|
1107
|
+
${L.map((c) => `
|
|
1108
|
+
(CASE WHEN $4 = '${c.field}' AND $5 IS false THEN "${c.field}"::text END),
|
|
1109
|
+
(CASE WHEN $4 = '${c.field}' AND $5 IS true THEN "${c.field}"::text END) DESC`).join(",\n")}`;
|
|
1110
|
+
V = `($3 = '' OR CONCAT(${U.join(", ")}) ILIKE '%' || $3 || '%')`, H += `SELECT ${U.map((c) => `${c}::text`).join(", ")} FROM ${c}\n`, H += ` WHERE ${R ? `${R} AND` : ""} ${V}\n`, H += ` ORDER BY ${z}\n`, H += " LIMIT $1::INT OFFSET $2::INT";
|
|
1111
|
+
break;
|
|
1112
|
+
}
|
|
1113
|
+
case "ms_sql_server":
|
|
1114
|
+
let z = L.map((c) => `
|
|
1115
|
+
(CASE WHEN @p4 = '${c.field}' AND @p5 = 0 THEN ${c.field} END) ASC,
|
|
1116
|
+
(CASE WHEN @p4 = '${c.field}' AND @p5 = 1 THEN ${c.field} END) DESC`).join(",\n");
|
|
1117
|
+
V = ` (@p3 = '' OR CONCAT(${W}) LIKE '%' + @p3 + '%')`, H += `SELECT ${W} FROM ${c}`, H += ` WHERE ${R ? `${R} AND` : ""} ${V}`, H += ` ORDER BY ${z}`, H += " OFFSET @p2 ROWS FETCH NEXT @p1 ROWS ONLY";
|
|
1118
|
+
break;
|
|
1119
|
+
case "snowflake": return makeSnowflakeSelectQuery(c, L, R, B);
|
|
1120
|
+
case "bigquery": {
|
|
1121
|
+
let z = L.map((c) => c.datatype === "JSON" || c.datatype.startsWith("STRUCT") || c.datatype.startsWith("ARRAY") || c.datatype === "GEOGRAPHY" ? `
|
|
1122
|
+
(CASE WHEN @order_by = '${c.field}' AND @is_desc = false THEN TO_JSON_STRING(${c.field}) END) ASC,
|
|
1123
|
+
(CASE WHEN @order_by = '${c.field}' AND @is_desc = true THEN TO_JSON_STRING(${c.field}) END) DESC` : `
|
|
1124
|
+
(CASE WHEN @order_by = '${c.field}' AND @is_desc = false THEN ${c.field} END) ASC,
|
|
1125
|
+
(CASE WHEN @order_by = '${c.field}' AND @is_desc = true THEN ${c.field} END) DESC`).join(",\n");
|
|
1126
|
+
V = ` (@quicksearch = '' OR REGEXP_CONTAINS(CONCAT(${U.map((c) => {
|
|
1127
|
+
let R = L.find((L) => L.field === c.slice(1, -1));
|
|
1128
|
+
return R?.datatype === "JSON" || R?.datatype.startsWith("STRUCT") || R?.datatype.startsWith("ARRAY") || R?.datatype === "GEOGRAPHY" ? `TO_JSON_STRING(${c})` : `CAST(${c} AS STRING)`;
|
|
1129
|
+
}).join(",")}), '(?i)' || @quicksearch))`, H += `SELECT ${W} FROM ${c}`, H += ` WHERE ${R ? `${R} AND` : ""} ${V}`, H += ` ORDER BY ${z}`, H += " LIMIT @limit OFFSET @offset";
|
|
1130
|
+
break;
|
|
1131
|
+
}
|
|
1132
|
+
case "duckdb": {
|
|
1133
|
+
let z = `
|
|
1134
|
+
${L.map((c) => `
|
|
1135
|
+
(CASE WHEN $order_by = '${c.field}' AND $is_desc IS false THEN "${c.field}"::text END),
|
|
1136
|
+
(CASE WHEN $order_by = '${c.field}' AND $is_desc IS true THEN "${c.field}"::text END) DESC`).join(",\n")}`;
|
|
1137
|
+
V = `($quicksearch = '' OR CONCAT(${U.join(", ")}) ILIKE '%' || $quicksearch || '%')`, H += `SELECT ${U.join(", ")} FROM ${c}\n`, H += ` WHERE ${R ? `${R} AND` : ""} ${V}\n`, H += ` ORDER BY ${z}\n`, H += " LIMIT $limit::INT OFFSET $offset::INT";
|
|
1138
|
+
break;
|
|
1139
|
+
}
|
|
1140
|
+
default: throw Error("Unsupported database type");
|
|
1141
|
+
}
|
|
1142
|
+
return H;
|
|
1143
|
+
}
|
|
1144
|
+
function coerceToNumber(c) {
|
|
1145
|
+
return typeof c == "number" ? c : typeof c == "string" ? parseInt(c, 10) : 0;
|
|
1146
|
+
}
|
|
1147
|
+
function getSelectInput(c, L, R, z, B) {
|
|
1148
|
+
if (c.type == "ducklake" && !c.ducklake || c.type == "database" && !c.resourcePath || !L || !R?.length)
|
|
1149
|
+
return;
|
|
1150
|
+
let V = c.type === "ducklake" ? "duckdb" : c.resourceType, H = makeSelectQuery(L, R, z, V, B);
|
|
1151
|
+
return c.type === "ducklake" && (H = wrapDucklakeQuery(H, c.ducklake)), {
|
|
1152
|
+
runnable: {
|
|
1153
|
+
name: "AppDbExplorer",
|
|
1154
|
+
type: "inline",
|
|
1155
|
+
inlineScript: {
|
|
1156
|
+
content: H,
|
|
1157
|
+
language: getLanguageByResourceType(V)
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
fields: c.type === "database" ? { database: {
|
|
1161
|
+
type: "static",
|
|
1162
|
+
value: `$res:${c.resourcePath}`,
|
|
1163
|
+
fieldType: "object",
|
|
1164
|
+
format: `resource-${V}`
|
|
1165
|
+
} } : {},
|
|
1166
|
+
type: "runnable",
|
|
1167
|
+
fieldType: "object",
|
|
1168
|
+
hideRefreshButton: !0
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
function makeUpdateQuery(c, L, R, z) {
|
|
1172
|
+
let B = buildParameters([{
|
|
1173
|
+
field: "value_to_update",
|
|
1174
|
+
datatype: L.datatype
|
|
1175
|
+
}, ...z === "snowflake" ? R.flatMap((c) => [c, c]) : R], z);
|
|
1176
|
+
switch (B += "\n", z) {
|
|
1177
|
+
case "postgresql": {
|
|
1178
|
+
let z = R.map((c, L) => `($${L + 2}::text::${c.datatype} IS NULL AND ${c.field} IS NULL OR ${c.field} = $${L + 2}::text::${c.datatype})`).join("\n AND ");
|
|
1179
|
+
return B += `\nUPDATE ${c} SET ${L.field} = $1::text::${L.datatype} \nWHERE ${z} RETURNING 1`, B;
|
|
1180
|
+
}
|
|
1181
|
+
case "mysql": {
|
|
1182
|
+
let z = R.map((c) => `(:${c.field} IS NULL AND ${c.field} IS NULL OR ${c.field} = :${c.field})`).join("\n AND ");
|
|
1183
|
+
return B += `\nUPDATE ${c} SET ${L.field} = :value_to_update \nWHERE ${z}`, B;
|
|
1184
|
+
}
|
|
1185
|
+
case "ms_sql_server": {
|
|
1186
|
+
let z = R.map((c, L) => `(@p${L + 2} IS NULL AND ${c.field} IS NULL OR ${c.field} = @p${L + 2})`).join("\n AND ");
|
|
1187
|
+
return B += `\nUPDATE ${c} SET ${L.field} = @p1 \nWHERE ${z}`, B;
|
|
1188
|
+
}
|
|
1189
|
+
case "snowflake": {
|
|
1190
|
+
let z = R.map((c, L) => `(? = 'null' AND ${c.field} IS NULL OR ${c.field} = ?)`).join("\n AND ");
|
|
1191
|
+
return B += `\nUPDATE ${c} SET ${L.field} = ? \nWHERE ${z}`, B;
|
|
1192
|
+
}
|
|
1193
|
+
case "bigquery": {
|
|
1194
|
+
let z = R.map((c, L) => `(CAST(@${c.field} AS STRING) = 'null' AND ${c.field} IS NULL OR ${c.field} = @${c.field})`).join("\n AND ");
|
|
1195
|
+
return B += `\nUPDATE ${c} SET ${L.field} = @value_to_update \nWHERE ${z}`, B;
|
|
1196
|
+
}
|
|
1197
|
+
case "duckdb": {
|
|
1198
|
+
let z = R.map((c) => `($${c.field} IS NULL AND ${c.field} IS NULL OR ${c.field} = $${c.field})`).join("\n AND ");
|
|
1199
|
+
return B += `\nUPDATE ${c} SET ${L.field} = $value_to_update \nWHERE ${z}`, B;
|
|
1200
|
+
}
|
|
1201
|
+
default: throw Error("Unsupported database type");
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
function getUpdateInput(c, L, R, z) {
|
|
1205
|
+
if (c.type == "ducklake" && !c.ducklake || c.type == "database" && !c.resourcePath || !L)
|
|
1206
|
+
return;
|
|
1207
|
+
let B = c.type === "ducklake" ? "duckdb" : c.resourceType, V = makeUpdateQuery(L, R, z, B);
|
|
1208
|
+
return c.type === "ducklake" && (V = wrapDucklakeQuery(V, c.ducklake)), {
|
|
1209
|
+
runnable: {
|
|
1210
|
+
name: "AppDbExplorer",
|
|
1211
|
+
type: "inline",
|
|
1212
|
+
inlineScript: {
|
|
1213
|
+
content: V,
|
|
1214
|
+
language: getLanguageByResourceType(B),
|
|
1215
|
+
schema: {
|
|
1216
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
1217
|
+
properties: {},
|
|
1218
|
+
required: ["database"],
|
|
1219
|
+
type: "object"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
fields: c.type === "database" ? { database: {
|
|
1224
|
+
type: "static",
|
|
1225
|
+
value: `$res:${c.resourcePath}`,
|
|
1226
|
+
fieldType: "object",
|
|
1227
|
+
format: `resource-${B}`
|
|
1228
|
+
} } : {},
|
|
1229
|
+
type: "runnable",
|
|
1230
|
+
fieldType: "object"
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
function isRunnableByPath(c) {
|
|
1234
|
+
return c?.type == "runnableByPath" || c?.type == "path";
|
|
1235
|
+
}
|
|
1236
|
+
function isRunnableByName(c) {
|
|
1237
|
+
return c?.type == "runnableByName" || c?.type == "inline";
|
|
1238
|
+
}
|
|
1239
|
+
function findGridItemById(c, L, R) {
|
|
1240
|
+
for (let z of allItems(c, L))
|
|
1241
|
+
if (z.id === R)
|
|
1242
|
+
return z;
|
|
1243
|
+
}
|
|
1244
|
+
function allItems(c, L) {
|
|
1245
|
+
return L == null ? c ?? [] : [...c ?? [], ...Object.values(L).flat()];
|
|
1246
|
+
}
|
|
1247
|
+
function findGridItem(c, L) {
|
|
1248
|
+
return findGridItemById(c.grid, c.subgrids, L);
|
|
1249
|
+
}
|
|
1250
|
+
function collectOneOfFields(c, L) {
|
|
1251
|
+
return Object.fromEntries(Object.entries(c ?? {}).filter(([c, L]) => L.type == "evalv2").map(([c, R]) => {
|
|
1252
|
+
let z = R;
|
|
1253
|
+
if (!z.connections || z.connections.length !== 1)
|
|
1254
|
+
return [c, void 0];
|
|
1255
|
+
let B = z.connections[0], V = findGridItem(L, B.componentId);
|
|
1256
|
+
if (z.expr !== B.componentId + "." + B.id)
|
|
1257
|
+
return [c, void 0];
|
|
1258
|
+
if (V) {
|
|
1259
|
+
let L = V.data;
|
|
1260
|
+
if (L && (L.type === "resourceselectcomponent" || L.type === "selectcomponent" || L.type === "multiselectcomponent" || L.type === "multiselectcomponentv2")) {
|
|
1261
|
+
if ((L.type === "selectcomponent" || L.type === "multiselectcomponent" || L.type === "multiselectcomponentv2") && L.configuration?.create?.type === "static" && L.configuration?.create?.value === !0)
|
|
1262
|
+
return [c, void 0];
|
|
1263
|
+
if (L.configuration?.items?.type === "static") {
|
|
1264
|
+
let R = L.configuration.items.value;
|
|
1265
|
+
if (R && Array.isArray(R))
|
|
1266
|
+
return L.type === "multiselectcomponent" || L.type === "multiselectcomponentv2" ? [c, R] : [c, R.filter((c) => c && typeof c == "object" && "value" in c && c.value).map((c) => c.value)];
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
return [c, void 0];
|
|
1271
|
+
}).filter(([c, L]) => L !== void 0));
|
|
1272
|
+
}
|
|
1273
|
+
function filenameExprToRegex(c) {
|
|
1274
|
+
return `^${c.replaceAll("${file.name}", "<file_name>").slice(1, -1).replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replaceAll("<file_name>", "[^/]+")}$`;
|
|
1275
|
+
}
|
|
1276
|
+
function staticToRegex(c) {
|
|
1277
|
+
return `^${c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`;
|
|
1278
|
+
}
|
|
1279
|
+
function checkIfExprIsString(c) {
|
|
1280
|
+
return /^(['"`])[^'"`]*\1$/g.test(c);
|
|
1281
|
+
}
|
|
1282
|
+
function checkIfEvalIsStringWithFilename(c) {
|
|
1283
|
+
return c.connections.length > 0 ? !1 : checkIfExprIsString(c.expr.replaceAll("${file.name}", ""));
|
|
1284
|
+
}
|
|
1285
|
+
function removeResourcePrefix(c) {
|
|
1286
|
+
return c.replace(/^\$res:/, "");
|
|
1287
|
+
}
|
|
1288
|
+
function computeWorkspaceS3FileInputPolicy() {
|
|
1289
|
+
return {
|
|
1290
|
+
allow_workspace_resource: !0,
|
|
1291
|
+
allowed_resources: [],
|
|
1292
|
+
allow_user_resources: !1,
|
|
1293
|
+
file_key_regex: ""
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
function computeS3FileInputPolicy(c, L) {
|
|
1297
|
+
let R = c?.resource, z = c?.pathTemplate, B = !R || R.type === "static" && !R.value, V = R ? R.type === "static" ? R.value ? [removeResourcePrefix(R.value)] : [] : collectOneOfFields({ s3_resource: R }, L).s3_resource?.map((c) => removeResourcePrefix(c)) ?? [] : [], H = (R?.type === "evalv2" && R?.allowUserResources) ?? !1, U = "^.*$";
|
|
1298
|
+
return z && (z.type === "static" ? U = staticToRegex(z.value) : z.type === "evalv2" && checkIfEvalIsStringWithFilename(z) && (U = filenameExprToRegex(z.expr))), {
|
|
1299
|
+
allow_workspace_resource: B,
|
|
1300
|
+
allowed_resources: V,
|
|
1301
|
+
allow_user_resources: H,
|
|
1302
|
+
file_key_regex: U
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
function isPartialS3Object(c) {
|
|
1306
|
+
return typeof c == "object" && !!c && typeof c.s3 == "string";
|
|
1307
|
+
}
|
|
1308
|
+
function computeS3ImageViewerPolicy(c) {
|
|
1309
|
+
if (c.source.type === "uploadS3" && isPartialS3Object(c.source.value))
|
|
1310
|
+
return {
|
|
1311
|
+
s3_path: c.source.value.s3,
|
|
1312
|
+
storage: c.source.value.storage
|
|
1313
|
+
};
|
|
1314
|
+
if (c.source.type === "static" && typeof c.source.value == "string" && (c.sourceKind.type === "static" && c.sourceKind.value === "s3 (workspace storage)" || c.source.value.startsWith("s3://")))
|
|
1315
|
+
return {
|
|
1316
|
+
s3_path: c.source.value.replace("s3://", ""),
|
|
1317
|
+
storage: void 0
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
function collectStaticFields(c) {
|
|
1321
|
+
return Object.fromEntries(Object.entries(c ?? {}).filter(([c, L]) => L.type == "static").map(([c, L]) => [c, L.value]));
|
|
1322
|
+
}
|
|
1323
|
+
async function hash(c) {
|
|
1324
|
+
try {
|
|
1325
|
+
let L = new TextEncoder().encode(c), R = await crypto.subtle.digest("SHA-256", L);
|
|
1326
|
+
return Array.from(new Uint8Array(R)).map((c) => c.toString(16).padStart(2, "0")).join("");
|
|
1327
|
+
}
|
|
1328
|
+
catch {
|
|
1329
|
+
let L = new import_build$1.Sha256();
|
|
1330
|
+
return L.update(c ?? ""), Array.from(await L.digest()).map((c) => c.toString(16).padStart(2, "0")).join("");
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
var import_build = require_build();
|
|
1334
|
+
async function updatePolicy(c, L) {
|
|
1335
|
+
let R = allItems(c.grid, c.subgrids), z = await Promise.all(R.flatMap((L) => {
|
|
1336
|
+
let R = L.data, z = [{
|
|
1337
|
+
input: R.componentInput,
|
|
1338
|
+
id: L.id
|
|
1339
|
+
}];
|
|
1340
|
+
if (R.type === "tablecomponent" && z.push(...R.actionButtons.map((c) => ({
|
|
1341
|
+
input: c.componentInput,
|
|
1342
|
+
id: c.id
|
|
1343
|
+
}))), (R.type === "aggridcomponent" || R.type === "aggridcomponentee" || R.type === "dbexplorercomponent" || R.type === "aggridinfinitecomponent" || R.type === "aggridinfinitecomponentee") && Array.isArray(R.actions) && z.push(...R.actions.map((c) => ({
|
|
1344
|
+
input: c.componentInput,
|
|
1345
|
+
id: c.id
|
|
1346
|
+
}))), R.type === "menucomponent" && z.push(...R.menuItems.map((c) => ({
|
|
1347
|
+
input: c.componentInput,
|
|
1348
|
+
id: c.id
|
|
1349
|
+
}))), R.type === "dbexplorercomponent") {
|
|
1350
|
+
let c = [], B = R.configuration, V = B?.type?.selected, H = B?.type?.configuration?.[V];
|
|
1351
|
+
if (H && V) {
|
|
1352
|
+
let { table: c, resource: U, ducklake: W } = H, G = c.value, K = U?.value.split("$res:")[1] ?? (W?.value)?.split("ducklake://")[1], q = R.configuration.columnDefs.value, J = R.configuration.whereClause.value;
|
|
1353
|
+
if (G && K && q) {
|
|
1354
|
+
let c = W ? {
|
|
1355
|
+
type: "ducklake",
|
|
1356
|
+
ducklake: K
|
|
1357
|
+
} : {
|
|
1358
|
+
type: "database",
|
|
1359
|
+
resourcePath: K,
|
|
1360
|
+
resourceType: V
|
|
1361
|
+
};
|
|
1362
|
+
z.push({
|
|
1363
|
+
input: getSelectInput(c, G, q, J),
|
|
1364
|
+
id: L.id
|
|
1365
|
+
}), z.push({
|
|
1366
|
+
input: getCountInput(c, G, q, J),
|
|
1367
|
+
id: L.id + "_count"
|
|
1368
|
+
}), z.push({
|
|
1369
|
+
input: getInsertInput(c, G, q),
|
|
1370
|
+
id: L.id + "_insert"
|
|
1371
|
+
});
|
|
1372
|
+
let R = getPrimaryKeys(q), H = q?.filter((c) => R.includes(c.field));
|
|
1373
|
+
z.push({
|
|
1374
|
+
input: getDeleteInput(c, G, H),
|
|
1375
|
+
id: L.id + "_delete"
|
|
1376
|
+
}), q.filter((c) => c.editable || B.allEditable.value).forEach((R) => {
|
|
1377
|
+
z.push({
|
|
1378
|
+
input: getUpdateInput(c, G, R, H),
|
|
1379
|
+
id: L.id + "_update"
|
|
1380
|
+
});
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
z.push(...c);
|
|
1385
|
+
}
|
|
1386
|
+
return z.filter((c) => c.input).map(async (L) => {
|
|
1387
|
+
if (L.input?.type == "runnable")
|
|
1388
|
+
return await processRunnable$1(L.id, L.input.runnable, L.input.fields, c);
|
|
1389
|
+
});
|
|
1390
|
+
}).concat(Object.values(c.hiddenInlineScripts ?? {}).map(async (L, R) => await processRunnable$1("bg_" + R, L, L.fields, c)))), B = Object.fromEntries(z.filter(Boolean)), V = R.filter((c) => c.data.type === "s3fileinputcomponent").map((L) => {
|
|
1391
|
+
let R = L.data.configuration;
|
|
1392
|
+
return computeS3FileInputPolicy(R?.type?.configuration?.s3, c);
|
|
1393
|
+
}).filter(Boolean);
|
|
1394
|
+
R.findIndex((c) => {
|
|
1395
|
+
let L = c.data;
|
|
1396
|
+
if (L.type === "schemaformcomponent" || L.type === "formbuttoncomponent" || L.type === "formcomponent") {
|
|
1397
|
+
let c = L.type === "schemaformcomponent" ? L.componentInput?.value?.properties : isRunnableByName(L.componentInput?.runnable) ? L.componentInput?.runnable?.inlineScript?.schema?.properties : L.componentInput?.runnable?.schema?.properties;
|
|
1398
|
+
return Object.values(c ?? {}).findIndex((c) => c?.type === "object" && c?.format === "resource-s3_object" || c?.type === "array" && (c?.items?.resourceType === "s3object" || c?.items?.resourceType === "s3_object")) !== -1;
|
|
1399
|
+
}
|
|
1400
|
+
else
|
|
1401
|
+
return !1;
|
|
1402
|
+
}) !== -1 && V.push(computeWorkspaceS3FileInputPolicy());
|
|
1403
|
+
let H = R.filter((c) => c.data.type === "imagecomponent").map((c) => {
|
|
1404
|
+
let L = c.data.configuration;
|
|
1405
|
+
return computeS3ImageViewerPolicy(L);
|
|
1406
|
+
}).filter(Boolean);
|
|
1407
|
+
return {
|
|
1408
|
+
...L ?? {},
|
|
1409
|
+
allowed_s3_keys: H,
|
|
1410
|
+
s3_inputs: V,
|
|
1411
|
+
triggerables_v2: B
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
async function processRunnable$1(c, L, R, z) {
|
|
1415
|
+
let B = collectStaticFields(R), V = collectOneOfFields(R, z), H = Object.entries(R).map(([c, L]) => L.allowUserResources ? c : void 0).filter(Boolean);
|
|
1416
|
+
if (isRunnableByName(L)) {
|
|
1417
|
+
let R = await hash$1(L.inlineScript?.content);
|
|
1418
|
+
return console.debug("hex", R, c), [`${c}:rawscript/${R}`, {
|
|
1419
|
+
static_inputs: B,
|
|
1420
|
+
one_of_inputs: V,
|
|
1421
|
+
allow_user_resources: H
|
|
1422
|
+
}];
|
|
1423
|
+
}
|
|
1424
|
+
else if (isRunnableByPath(L))
|
|
1425
|
+
return [`${c}:${L.runType === "hubscript" ? "script" : L.runType}/${L.path}`, {
|
|
1426
|
+
static_inputs: B,
|
|
1427
|
+
one_of_inputs: V,
|
|
1428
|
+
allow_user_resources: H
|
|
1429
|
+
}];
|
|
1430
|
+
}
|
|
1431
|
+
async function hash$1(c) {
|
|
1432
|
+
try {
|
|
1433
|
+
let L = new TextEncoder().encode(c), R = await crypto.subtle.digest("SHA-256", L);
|
|
1434
|
+
return Array.from(new Uint8Array(R)).map((c) => c.toString(16).padStart(2, "0")).join("");
|
|
1435
|
+
}
|
|
1436
|
+
catch {
|
|
1437
|
+
let L = new import_build.Sha256();
|
|
1438
|
+
return L.update(c ?? ""), Array.from(await L.digest()).map((c) => c.toString(16).padStart(2, "0")).join("");
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
function schemaToTsType(c) {
|
|
1442
|
+
let L = c.properties, R = c.required;
|
|
1443
|
+
return !c || !L ? "any" : `{ ${Object.keys(L).map((c) => {
|
|
1444
|
+
let z = L[c], B = `${c}${R?.includes(c) ? "" : "?"}`, V = "any";
|
|
1445
|
+
return z.type === "string" ? V = "string" : z.type === "number" || z.type === "integer" ? V = "number" : z.type === "boolean" ? V = "boolean" : z.type === "array" ? (V = z.items?.type ?? "any", V === "integer" && (V = "number"), V = `${V}[]`) : z.type === "object" && z.properties && (V = schemaToTsType(z)), `${B}: ${V}`;
|
|
1446
|
+
}).join("; ")} }`;
|
|
1447
|
+
}
|
|
1448
|
+
function removeStaticFields(c, L) {
|
|
1449
|
+
let R = Object.keys(L).filter((c) => L[c].type == "static");
|
|
1450
|
+
return {
|
|
1451
|
+
...c,
|
|
1452
|
+
properties: { ...Object.fromEntries(Object.entries(c.properties ?? {}).filter(([c]) => !R.includes(c))) }
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
function hiddenRunnableToTsType(c) {
|
|
1456
|
+
return isRunnableByName(c) ? c?.inlineScript?.schema ? schemaToTsType(removeStaticFields(c?.inlineScript?.schema, c?.fields ?? {})) : "{}" : isRunnableByPath(c) ? schemaToTsType(removeStaticFields(c?.schema, c?.fields ?? {})) : "{}";
|
|
1457
|
+
}
|
|
1458
|
+
function genWmillTs(c) {
|
|
1459
|
+
return `// THIS FILE IS READ-ONLY
|
|
1460
|
+
// AND GENERATED AUTOMATICALLY FROM YOUR RUNNABLES
|
|
1461
|
+
|
|
1462
|
+
export declare const backend: {
|
|
1463
|
+
${Object.entries(c).map(([c, L]) => ` ${c}: (args: ${hiddenRunnableToTsType(L)}) => Promise<any>;`).join("\n")}
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
export declare const backendAsync: {
|
|
1467
|
+
${Object.entries(c).map(([c, L]) => ` ${c}: (args: ${hiddenRunnableToTsType(L)}) => Promise<string>;`).join("\n")}
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
export type Job = {
|
|
1471
|
+
type: "QueuedJob" | "CompletedJob";
|
|
1472
|
+
id: string;
|
|
1473
|
+
created_at: number;
|
|
1474
|
+
started_at: number | undefined;
|
|
1475
|
+
duration_ms: number;
|
|
1476
|
+
success: boolean;
|
|
1477
|
+
args: any;
|
|
1478
|
+
result: any;
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Execute a job and wait for it to complete and return the completed job
|
|
1483
|
+
* @param id
|
|
1484
|
+
*/
|
|
1485
|
+
export declare function waitJob(id: string): Promise<Job>;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Get a job by id and return immediately with the current state of the job
|
|
1489
|
+
* @param id
|
|
1490
|
+
*/
|
|
1491
|
+
export declare function getJob(id: string): Promise<Job>;
|
|
1492
|
+
`;
|
|
1493
|
+
}
|
|
1494
|
+
async function updateRawAppPolicy(c, L) {
|
|
1495
|
+
let R = Object.fromEntries(await Promise.all(Object.entries(c).map(async ([c, L]) => await processRunnable(c, L, L?.fields ?? {}))));
|
|
1496
|
+
return {
|
|
1497
|
+
...L,
|
|
1498
|
+
triggerables_v2: R
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
async function processRunnable(c, L, R) {
|
|
1502
|
+
let z = collectStaticFields(R), B = Object.entries(R).map(([c, L]) => L.allowUserResources ? c : void 0).filter(Boolean);
|
|
1503
|
+
if (isRunnableByName(L)) {
|
|
1504
|
+
let R = await hash(L.inlineScript?.content);
|
|
1505
|
+
return console.log("hex", R, c), [`${c}:rawscript/${R}`, {
|
|
1506
|
+
static_inputs: z,
|
|
1507
|
+
one_of_inputs: {},
|
|
1508
|
+
allow_user_resources: B
|
|
1509
|
+
}];
|
|
1510
|
+
}
|
|
1511
|
+
else if (isRunnableByPath(L))
|
|
1512
|
+
return [`${c}:${L.runType === "hubscript" ? "script" : L.runType}/${L.path}`, {
|
|
1513
|
+
static_inputs: z,
|
|
1514
|
+
one_of_inputs: {},
|
|
1515
|
+
allow_user_resources: B
|
|
1516
|
+
}];
|
|
1517
|
+
}
|
|
1518
|
+
var rawAppWmillTs_exports = /* @__PURE__ */ __export({ default: () => rawAppWmillTs_default }), rawAppWmillTs_default = "let reqs: Record<string, any> = {}\n\nfunction doRequest(type: string, o: object) {\n return new Promise((resolve, reject) => {\n const reqId = Math.random().toString(36)\n reqs[reqId] = { resolve, reject }\n parent.postMessage({ ...o, type, reqId }, '*')\n })\n}\n\nexport const backend = new Proxy(\n {},\n {\n get(_, runnable_id: string) {\n return (v: any) => {\n return doRequest('backend', { runnable_id, v })\n }\n }\n })\n\nexport const backendAsync = new Proxy(\n {},\n {\n get(_, runnable_id: string) {\n return (v: any) => {\n return doRequest('backendAsync', { runnable_id, v })\n }\n }\n })\n\nexport function waitJob(jobId: string) {\n return doRequest('waitJob', { jobId })\n}\n\nexport function getJob(jobId: string) {\n return doRequest('getJob', { jobId })\n}\n\n\nwindow.addEventListener('message', (e) => {\n if (e.data.type == 'runBgRes' || e.data.type == 'runBgAsyncRes') {\n console.log('Message from parent backend', e.data)\n let job = reqs[e.data.reqId]\n if (job) {\n const result = e.data.result\n if (e.data.error) {\n job.reject(new Error(result.stack ?? result.message))\n } else {\n job.resolve(result)\n }\n } else {\n console.error('No job found for', e.data.reqId)\n }\n }\n})";
|
|
1519
|
+
function capitalize(c) {
|
|
1520
|
+
return c ? c.charAt(0).toUpperCase() + c.slice(1) : "";
|
|
1521
|
+
}
|
|
1522
|
+
export { capitalize, genWmillTs, updatePolicy, updateRawAppPolicy, rawAppWmillTs_exports as wmillTsRaw };
|