windmill-cli 1.586.0 → 1.586.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.js +5 -4
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.js +4 -3
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.js +12 -36
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.js +1 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.js +1 -1
- package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/basename.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/dirname.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/extname.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join.js +7 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize.js +5 -4
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/basename.js +4 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/dirname.js +4 -6
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/extname.js +4 -8
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join.js +8 -11
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/basename.js +4 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/dirname.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/extname.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join.js +7 -10
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize.js +6 -7
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_chars.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_dumper_state.js +5 -14
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_loader_state.js +150 -168
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_schema.js +6 -11
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/bool.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/float.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/int.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/map.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/merge.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/nil.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/omap.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/pairs.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/regexp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/seq.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/set.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/str.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/timestamp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/undefined.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_utils.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/parse.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/stringify.js +1 -1
- package/esm/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.js +1522 -0
- package/esm/deps.js +6 -6
- package/esm/gen/services.gen.js +138 -0
- package/esm/src/commands/app/app_metadata.js +287 -0
- package/esm/src/commands/app/apps.js +65 -31
- package/esm/src/commands/app/bundle.js +249 -0
- package/esm/src/commands/app/dev.js +591 -0
- package/esm/src/commands/app/metadata.js +1 -0
- package/esm/src/commands/app/raw_apps.js +212 -0
- package/esm/src/commands/app/wmillTsDev.js +89 -0
- package/esm/src/commands/dependencies/dependencies.js +66 -0
- package/esm/src/commands/dev/dev.js +1 -1
- package/esm/src/commands/flow/flow.js +4 -5
- package/esm/src/commands/flow/flow_metadata.js +140 -0
- package/esm/src/commands/script/script.js +20 -37
- package/esm/src/commands/sync/pull.js +5 -3
- package/esm/src/commands/sync/sync.js +264 -76
- package/esm/src/commands/workspace/fork.js +6 -8
- package/esm/src/commands/workspace/workspace.js +7 -4
- package/esm/src/core/conf.js +5 -1
- package/esm/src/core/context.js +57 -47
- package/esm/src/main.js +2 -0
- package/esm/src/types.js +33 -16
- package/esm/src/utils/metadata.js +58 -178
- package/esm/src/utils/script_common.js +5 -5
- package/esm/src/utils/utils.js +21 -9
- package/package.json +4 -3
- package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.d.ts +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/basename.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/dirname.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/extname.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/basename.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/dirname.d.ts +4 -2
- package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/extname.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join.d.ts +6 -4
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize.d.ts +6 -3
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/basename.d.ts +4 -3
- package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/extname.d.ts +6 -3
- package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize.d.ts +6 -3
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_dumper_state.d.ts +1 -8
- package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_loader_state.d.ts +8 -14
- package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_schema.d.ts +3 -7
- package/types/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type.d.ts +0 -16
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
- package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.d.ts +7 -0
- package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.d.ts.map +1 -0
- package/types/deps.d.ts +6 -6
- package/types/deps.d.ts.map +1 -1
- package/types/gen/services.gen.d.ts +66 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +73 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/app_metadata.d.ts +26 -0
- package/types/src/commands/app/app_metadata.d.ts.map +1 -0
- package/types/src/commands/app/apps.d.ts +10 -1
- package/types/src/commands/app/apps.d.ts.map +1 -1
- package/types/src/commands/app/bundle.d.ts +70 -0
- package/types/src/commands/app/bundle.d.ts.map +1 -0
- package/types/src/commands/app/dev.d.ts +18 -0
- package/types/src/commands/app/dev.d.ts.map +1 -0
- package/types/src/commands/app/metadata.d.ts +20 -0
- package/types/src/commands/app/metadata.d.ts.map +1 -0
- package/types/src/commands/app/raw_apps.d.ts +18 -0
- package/types/src/commands/app/raw_apps.d.ts.map +1 -0
- package/types/src/commands/app/wmillTsDev.d.ts +2 -0
- package/types/src/commands/app/wmillTsDev.d.ts.map +1 -0
- package/types/src/commands/dependencies/dependencies.d.ts +15 -0
- package/types/src/commands/dependencies/dependencies.d.ts.map +1 -0
- package/types/src/commands/flow/flow.d.ts.map +1 -1
- package/types/src/commands/flow/flow_metadata.d.ts +8 -0
- package/types/src/commands/flow/flow_metadata.d.ts.map +1 -0
- package/types/src/commands/script/script.d.ts +4 -5
- package/types/src/commands/script/script.d.ts.map +1 -1
- package/types/src/commands/sync/pull.d.ts +1 -1
- package/types/src/commands/sync/pull.d.ts.map +1 -1
- package/types/src/commands/sync/sync.d.ts +7 -1
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/commands/workspace/fork.d.ts.map +1 -1
- package/types/src/commands/workspace/workspace.d.ts.map +1 -1
- package/types/src/core/conf.d.ts +8 -1
- package/types/src/core/conf.d.ts.map +1 -1
- package/types/src/core/context.d.ts.map +1 -1
- package/types/src/main.d.ts.map +1 -1
- package/types/src/types.d.ts +1 -1
- package/types/src/types.d.ts.map +1 -1
- package/types/src/utils/metadata.d.ts +8 -9
- package/types/src/utils/metadata.d.ts.map +1 -1
- package/types/src/utils/script_common.d.ts +6 -6
- package/types/src/utils/script_common.d.ts.map +1 -1
- package/types/src/utils/utils.d.ts +2 -0
- package/types/src/utils/utils.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +73 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +0 -5
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +0 -216
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +0 -3
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_dumper_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/stringify.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/binary.js +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.16}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.0.8}/windows/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_chars.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/binary.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/bool.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/float.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/int.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/map.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/merge.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/nil.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/omap.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/pairs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/seq.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/str.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/timestamp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_type/undefined.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/_utils.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.10 → 1.0.5}/stringify.d.ts +0 -0
package/esm/deps.js
CHANGED
|
@@ -12,16 +12,16 @@ export { NpmProvider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-r
|
|
|
12
12
|
export { Provider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.js";
|
|
13
13
|
export { CompletionsCommand } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.js";
|
|
14
14
|
// std
|
|
15
|
-
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.
|
|
16
|
-
export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.
|
|
17
|
-
export * as path from "./deps/jsr.io/@std/path/1.
|
|
15
|
+
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.16/mod.js";
|
|
16
|
+
export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
17
|
+
export * as path from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
18
18
|
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.4/mod.js";
|
|
19
19
|
export { writeAllSync } from "./deps/jsr.io/@std/io/0.225.2/write_all.js";
|
|
20
20
|
export { copy } from "./deps/jsr.io/@std/io/0.225.2/copy.js";
|
|
21
21
|
export { readAll } from "./deps/jsr.io/@std/io/0.225.2/read_all.js";
|
|
22
22
|
export * as log from "./deps/jsr.io/@std/log/0.224.14/mod.js";
|
|
23
|
-
export { stringify as yamlStringify } from "./deps/jsr.io/@std/yaml/1.0.
|
|
24
|
-
import { parse as yamlParse } from "./deps/jsr.io/@std/yaml/1.0.
|
|
23
|
+
export { stringify as yamlStringify } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
24
|
+
import { parse as yamlParse } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
25
25
|
export async function yamlParseFile(path, options = {}) {
|
|
26
26
|
try {
|
|
27
27
|
return yamlParse(await dntShim.Deno.readTextFile(path), options);
|
|
@@ -48,7 +48,7 @@ export { WebSocketServer, WebSocket } from "ws";
|
|
|
48
48
|
export * as getPort from "get-port";
|
|
49
49
|
export * as open from "open";
|
|
50
50
|
export * as esMain from "es-main";
|
|
51
|
-
export * as windmillUtils from "
|
|
51
|
+
export * as windmillUtils from "./deps/jsr.io/@windmill-labs/shared-utils/1.0.10/lib.es.js";
|
|
52
52
|
import { OpenAPI } from "./gen/index.js";
|
|
53
53
|
export function setClient(token, baseUrl) {
|
|
54
54
|
if (baseUrl === undefined) {
|
package/esm/gen/services.gen.js
CHANGED
|
@@ -1485,6 +1485,43 @@ export const rebuildDependencyMap = (data) => {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
};
|
|
1488
|
+
/**
|
|
1489
|
+
* get dependents of an imported path
|
|
1490
|
+
* @param data The data for the request.
|
|
1491
|
+
* @param data.workspace
|
|
1492
|
+
* @param data.importedPath The imported path to get dependents for
|
|
1493
|
+
* @returns DependencyDependent list of dependents
|
|
1494
|
+
* @throws ApiError
|
|
1495
|
+
*/
|
|
1496
|
+
export const getDependents = (data) => {
|
|
1497
|
+
return __request(OpenAPI, {
|
|
1498
|
+
method: 'GET',
|
|
1499
|
+
url: '/w/{workspace}/workspaces/get_dependents/{imported_path}',
|
|
1500
|
+
path: {
|
|
1501
|
+
workspace: data.workspace,
|
|
1502
|
+
imported_path: data.importedPath
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
};
|
|
1506
|
+
/**
|
|
1507
|
+
* get dependents amounts for multiple imported paths
|
|
1508
|
+
* @param data The data for the request.
|
|
1509
|
+
* @param data.workspace
|
|
1510
|
+
* @param data.requestBody List of imported paths to get dependents counts for
|
|
1511
|
+
* @returns DependentsAmount list of dependents amounts
|
|
1512
|
+
* @throws ApiError
|
|
1513
|
+
*/
|
|
1514
|
+
export const getDependentsAmounts = (data) => {
|
|
1515
|
+
return __request(OpenAPI, {
|
|
1516
|
+
method: 'POST',
|
|
1517
|
+
url: '/w/{workspace}/workspaces/get_dependents_amounts',
|
|
1518
|
+
path: {
|
|
1519
|
+
workspace: data.workspace
|
|
1520
|
+
},
|
|
1521
|
+
body: data.requestBody,
|
|
1522
|
+
mediaType: 'application/json'
|
|
1523
|
+
});
|
|
1524
|
+
};
|
|
1488
1525
|
/**
|
|
1489
1526
|
* get dependency map
|
|
1490
1527
|
* @param data The data for the request.
|
|
@@ -3681,6 +3718,107 @@ export const isDefaultTagsPerWorkspace = () => {
|
|
|
3681
3718
|
url: '/workers/is_default_tags_per_workspace'
|
|
3682
3719
|
});
|
|
3683
3720
|
};
|
|
3721
|
+
/**
|
|
3722
|
+
* create workspace dependencies
|
|
3723
|
+
* @param data The data for the request.
|
|
3724
|
+
* @param data.workspace
|
|
3725
|
+
* @param data.requestBody New workspace dependencies
|
|
3726
|
+
* @returns string workspace dependencies created
|
|
3727
|
+
* @throws ApiError
|
|
3728
|
+
*/
|
|
3729
|
+
export const createWorkspaceDependencies = (data) => {
|
|
3730
|
+
return __request(OpenAPI, {
|
|
3731
|
+
method: 'POST',
|
|
3732
|
+
url: '/w/{workspace}/workspace_dependencies/create',
|
|
3733
|
+
path: {
|
|
3734
|
+
workspace: data.workspace
|
|
3735
|
+
},
|
|
3736
|
+
body: data.requestBody,
|
|
3737
|
+
mediaType: 'application/json'
|
|
3738
|
+
});
|
|
3739
|
+
};
|
|
3740
|
+
/**
|
|
3741
|
+
* archive workspace dependencies (require admin)
|
|
3742
|
+
* @param data The data for the request.
|
|
3743
|
+
* @param data.workspace
|
|
3744
|
+
* @param data.language
|
|
3745
|
+
* @param data.name
|
|
3746
|
+
* @returns unknown result
|
|
3747
|
+
* @throws ApiError
|
|
3748
|
+
*/
|
|
3749
|
+
export const archiveWorkspaceDependencies = (data) => {
|
|
3750
|
+
return __request(OpenAPI, {
|
|
3751
|
+
method: 'POST',
|
|
3752
|
+
url: '/w/{workspace}/workspace_dependencies/archive/{language}',
|
|
3753
|
+
path: {
|
|
3754
|
+
workspace: data.workspace,
|
|
3755
|
+
language: data.language
|
|
3756
|
+
},
|
|
3757
|
+
query: {
|
|
3758
|
+
name: data.name
|
|
3759
|
+
}
|
|
3760
|
+
});
|
|
3761
|
+
};
|
|
3762
|
+
/**
|
|
3763
|
+
* delete workspace dependencies (require admin)
|
|
3764
|
+
* @param data The data for the request.
|
|
3765
|
+
* @param data.workspace
|
|
3766
|
+
* @param data.language
|
|
3767
|
+
* @param data.name
|
|
3768
|
+
* @returns unknown result
|
|
3769
|
+
* @throws ApiError
|
|
3770
|
+
*/
|
|
3771
|
+
export const deleteWorkspaceDependencies = (data) => {
|
|
3772
|
+
return __request(OpenAPI, {
|
|
3773
|
+
method: 'POST',
|
|
3774
|
+
url: '/w/{workspace}/workspace_dependencies/delete/{language}',
|
|
3775
|
+
path: {
|
|
3776
|
+
workspace: data.workspace,
|
|
3777
|
+
language: data.language
|
|
3778
|
+
},
|
|
3779
|
+
query: {
|
|
3780
|
+
name: data.name
|
|
3781
|
+
}
|
|
3782
|
+
});
|
|
3783
|
+
};
|
|
3784
|
+
/**
|
|
3785
|
+
* list all workspace dependencies
|
|
3786
|
+
* @param data The data for the request.
|
|
3787
|
+
* @param data.workspace
|
|
3788
|
+
* @returns WorkspaceDependencies All workspace dependencies
|
|
3789
|
+
* @throws ApiError
|
|
3790
|
+
*/
|
|
3791
|
+
export const listWorkspaceDependencies = (data) => {
|
|
3792
|
+
return __request(OpenAPI, {
|
|
3793
|
+
method: 'GET',
|
|
3794
|
+
url: '/w/{workspace}/workspace_dependencies/list',
|
|
3795
|
+
path: {
|
|
3796
|
+
workspace: data.workspace
|
|
3797
|
+
}
|
|
3798
|
+
});
|
|
3799
|
+
};
|
|
3800
|
+
/**
|
|
3801
|
+
* get latest workspace dependencies by language and name
|
|
3802
|
+
* @param data The data for the request.
|
|
3803
|
+
* @param data.workspace
|
|
3804
|
+
* @param data.language
|
|
3805
|
+
* @param data.name
|
|
3806
|
+
* @returns WorkspaceDependencies Latest workspace dependencies
|
|
3807
|
+
* @throws ApiError
|
|
3808
|
+
*/
|
|
3809
|
+
export const getLatestWorkspaceDependencies = (data) => {
|
|
3810
|
+
return __request(OpenAPI, {
|
|
3811
|
+
method: 'GET',
|
|
3812
|
+
url: '/w/{workspace}/workspace_dependencies/get_latest/{language}',
|
|
3813
|
+
path: {
|
|
3814
|
+
workspace: data.workspace,
|
|
3815
|
+
language: data.language
|
|
3816
|
+
},
|
|
3817
|
+
query: {
|
|
3818
|
+
name: data.name
|
|
3819
|
+
}
|
|
3820
|
+
});
|
|
3821
|
+
};
|
|
3684
3822
|
/**
|
|
3685
3823
|
* archive script by path
|
|
3686
3824
|
* @param data The data for the request.
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
// deno-lint-ignore-file no-explicit-any
|
|
2
|
+
import * as dntShim from "../../../_dnt.shims.js";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { SEP, colors, log, yamlParseFile, yamlStringify, } from "../../../deps.js";
|
|
5
|
+
import { checkifMetadataUptodate, blueColor, clearGlobalLock, updateMetadataGlobalLock, inferSchema, getRawWorkspaceDependencies, } from "../../utils/metadata.js";
|
|
6
|
+
import { workspaceDependenciesLanguages } from "../../utils/script_common.js";
|
|
7
|
+
import { inferContentTypeFromFilePath, } from "../../utils/script_common.js";
|
|
8
|
+
import { generateHash, getHeaders, writeIfChanged } from "../../utils/utils.js";
|
|
9
|
+
import { exts } from "../script/script.js";
|
|
10
|
+
import { FSFSElement, yamlOptions } from "../sync/sync.js";
|
|
11
|
+
import { replaceInlineScripts } from "./apps.js";
|
|
12
|
+
import { newPathAssigner, } from "../../../windmill-utils-internal/src/path-utils/path-assigner.js";
|
|
13
|
+
const TOP_HASH = "__app_hash";
|
|
14
|
+
/**
|
|
15
|
+
* Generates a hash for all inline scripts in an app directory
|
|
16
|
+
*/
|
|
17
|
+
async function generateAppHash(rawReqs, folder, defaultTs) {
|
|
18
|
+
const runnablesFolder = path.join(folder, "runnables");
|
|
19
|
+
const hashes = {};
|
|
20
|
+
try {
|
|
21
|
+
const elems = await FSFSElement(runnablesFolder, [], true);
|
|
22
|
+
for await (const f of elems.getChildren()) {
|
|
23
|
+
if (exts.some((e) => f.path.endsWith(e))) {
|
|
24
|
+
let reqs;
|
|
25
|
+
if (rawReqs) {
|
|
26
|
+
// Get language name from path
|
|
27
|
+
const lang = inferContentTypeFromFilePath(f.path, defaultTs);
|
|
28
|
+
// Get lock for that language
|
|
29
|
+
[, reqs] =
|
|
30
|
+
Object.entries(rawReqs).find(([lang2, _]) => lang == lang2) ?? [];
|
|
31
|
+
}
|
|
32
|
+
// Embed lock into hash
|
|
33
|
+
const relativePath = f.path.replace(runnablesFolder + SEP, "");
|
|
34
|
+
hashes[relativePath] = await generateHash((await f.getContentText()) + (reqs ?? ""));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
// If runnables folder doesn't exist, that's okay
|
|
40
|
+
if (error.name !== "NotFound") {
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return { ...hashes, [TOP_HASH]: await generateHash(JSON.stringify(hashes)) };
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Updates locks for inline scripts in an app
|
|
48
|
+
*/
|
|
49
|
+
export async function generateAppLocksInternal(appFolder, dryRun, workspace, opts, justUpdateMetadataLock, noStaleMessage) {
|
|
50
|
+
if (appFolder.endsWith(SEP)) {
|
|
51
|
+
appFolder = appFolder.substring(0, appFolder.length - 1);
|
|
52
|
+
}
|
|
53
|
+
const remote_path = appFolder.replaceAll(SEP, "/");
|
|
54
|
+
if (!justUpdateMetadataLock && !noStaleMessage) {
|
|
55
|
+
log.info(`Generating locks for app ${appFolder} at ${remote_path}`);
|
|
56
|
+
}
|
|
57
|
+
const rawWorkspaceDependencies = await getRawWorkspaceDependencies();
|
|
58
|
+
let hashes = await generateAppHash(rawWorkspaceDependencies, appFolder, opts.defaultTs);
|
|
59
|
+
const conf = await import("../../utils/metadata.js").then((m) => m.readLockfile());
|
|
60
|
+
if (await checkifMetadataUptodate(appFolder, hashes[TOP_HASH], conf, TOP_HASH)) {
|
|
61
|
+
if (!noStaleMessage) {
|
|
62
|
+
log.info(colors.green(`App ${remote_path} metadata is up-to-date, skipping`));
|
|
63
|
+
}
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
else if (dryRun) {
|
|
67
|
+
return remote_path;
|
|
68
|
+
}
|
|
69
|
+
if (Object.keys(rawWorkspaceDependencies).length > 0) {
|
|
70
|
+
log.info((await blueColor())(`Found workspace dependencies (${workspaceDependenciesLanguages
|
|
71
|
+
.map((l) => l.filename)
|
|
72
|
+
.join("/")}) for ${appFolder}, using them`));
|
|
73
|
+
}
|
|
74
|
+
// Read the app file
|
|
75
|
+
const appFilePath = path.join(appFolder, "raw_app.yaml");
|
|
76
|
+
const appFile = (await yamlParseFile(appFilePath));
|
|
77
|
+
if (!justUpdateMetadataLock) {
|
|
78
|
+
const changedScripts = [];
|
|
79
|
+
// Find hashes that do not correspond to previous hashes
|
|
80
|
+
for (const [scriptPath, hash] of Object.entries(hashes)) {
|
|
81
|
+
if (scriptPath == TOP_HASH) {
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (!(await checkifMetadataUptodate(appFolder, hash, conf, scriptPath))) {
|
|
85
|
+
changedScripts.push(scriptPath);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (changedScripts.length > 0) {
|
|
89
|
+
log.info(`Recomputing locks of ${changedScripts.join(", ")} in ${appFolder}`);
|
|
90
|
+
const runnablesPath = path.join(appFolder, "runnables") + SEP;
|
|
91
|
+
// Replace inline scripts for changed runnables
|
|
92
|
+
await replaceInlineScripts(appFile.runnables, runnablesPath);
|
|
93
|
+
// Update the app runnables with new locks
|
|
94
|
+
appFile.runnables = await updateAppRunnables(workspace, appFile.runnables, remote_path, appFolder, rawWorkspaceDependencies, opts.defaultTs);
|
|
95
|
+
// Write the updated app file
|
|
96
|
+
writeIfChanged(appFilePath, yamlStringify(appFile, yamlOptions));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
log.info(colors.gray(`No scripts changed in ${appFolder}`));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Regenerate hashes after updates
|
|
103
|
+
hashes = await generateAppHash(rawWorkspaceDependencies, appFolder, opts.defaultTs);
|
|
104
|
+
await clearGlobalLock(appFolder);
|
|
105
|
+
for (const [scriptPath, hash] of Object.entries(hashes)) {
|
|
106
|
+
await updateMetadataGlobalLock(appFolder, hash, scriptPath);
|
|
107
|
+
}
|
|
108
|
+
log.info(colors.green(`App ${remote_path} lockfiles updated`));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Updates locks for all runnables in an app, generating locks inline script by inline script
|
|
112
|
+
* Also writes content and locks back to the runnables folder
|
|
113
|
+
*/
|
|
114
|
+
async function updateAppRunnables(workspace, runnables, remotePath, appFolder, rawDeps, defaultTs = "bun") {
|
|
115
|
+
const updatedRunnables = { ...runnables };
|
|
116
|
+
const runnablesFolder = path.join(appFolder, "runnables");
|
|
117
|
+
// Ensure runnables folder exists
|
|
118
|
+
try {
|
|
119
|
+
await dntShim.Deno.mkdir(runnablesFolder, { recursive: true });
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
// Folder may already exist
|
|
123
|
+
}
|
|
124
|
+
const pathAssigner = newPathAssigner(defaultTs);
|
|
125
|
+
for (const [runnableId, runnable] of Object.entries(runnables)) {
|
|
126
|
+
// Only process inline scripts (runnableByName with inlineScript)
|
|
127
|
+
if (runnable?.type !== "runnableByName" || !runnable?.inlineScript) {
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
const inlineScript = runnable.inlineScript;
|
|
131
|
+
const language = inlineScript.language;
|
|
132
|
+
const content = inlineScript.content;
|
|
133
|
+
if (!content || !language) {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
// Skip if content is still an !inline reference (should have been replaced by replaceInlineScripts)
|
|
137
|
+
if (typeof content === "string" && content.startsWith("!inline ")) {
|
|
138
|
+
log.warn(colors.yellow(`Runnable ${runnableId} content is still an !inline reference, skipping`));
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
// Skip frontend scripts - they don't need locks
|
|
142
|
+
if (language === "frontend") {
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
// Find raw deps for this language if available
|
|
146
|
+
const langRawDeps = rawDeps?.[language];
|
|
147
|
+
log.info(colors.gray(`Generating lock for runnable ${runnableId} (${language})${langRawDeps ? " with raw deps" : ""}`));
|
|
148
|
+
try {
|
|
149
|
+
const lock = await generateInlineScriptLock(workspace, content, language, `${remotePath}/${runnableId}`, langRawDeps);
|
|
150
|
+
// Determine file extension for this language
|
|
151
|
+
const [basePathO, ext] = pathAssigner.assignPath(runnable.name, language);
|
|
152
|
+
const basePath = basePathO.replaceAll(SEP, "/");
|
|
153
|
+
const contentPath = path.join(runnablesFolder, `${basePath}${ext}`);
|
|
154
|
+
const lockPath = path.join(runnablesFolder, `${basePath}lock`);
|
|
155
|
+
// Write content to file
|
|
156
|
+
writeIfChanged(contentPath, content);
|
|
157
|
+
// Write lock to file if it exists
|
|
158
|
+
if (lock && lock !== "") {
|
|
159
|
+
writeIfChanged(lockPath, lock);
|
|
160
|
+
}
|
|
161
|
+
// Update the runnable with !inline references (preserve existing schema)
|
|
162
|
+
const inlineContentRef = `!inline ${basePath}${ext}`;
|
|
163
|
+
const inlineLockRef = lock && lock !== "" ? `!inline ${basePath}lock` : "";
|
|
164
|
+
updatedRunnables[runnableId] = {
|
|
165
|
+
...runnable,
|
|
166
|
+
inlineScript: {
|
|
167
|
+
...inlineScript,
|
|
168
|
+
content: inlineContentRef,
|
|
169
|
+
lock: inlineLockRef,
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
log.info(colors.gray(` Written ${basePath}${ext}${lock ? ` and ${basePath}lock` : ""}`));
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
log.error(colors.red(`Failed to generate lock for runnable ${runnableId}: ${error.message}`));
|
|
176
|
+
// Continue with other runnables even if one fails
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return updatedRunnables;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Generates a lock for a single inline script using the dependencies endpoint
|
|
183
|
+
*/
|
|
184
|
+
async function generateInlineScriptLock(workspace, content, language, scriptPath, rawDeps) {
|
|
185
|
+
const extraHeaders = getHeaders();
|
|
186
|
+
const rawResponse = await fetch(`${workspace.remote}api/w/${workspace.workspaceId}/jobs/run/dependencies`, {
|
|
187
|
+
method: "POST",
|
|
188
|
+
headers: {
|
|
189
|
+
Cookie: `token=${workspace.token}`,
|
|
190
|
+
"Content-Type": "application/json",
|
|
191
|
+
...extraHeaders,
|
|
192
|
+
},
|
|
193
|
+
body: JSON.stringify({
|
|
194
|
+
raw_scripts: [
|
|
195
|
+
{
|
|
196
|
+
raw_code: content,
|
|
197
|
+
language: language,
|
|
198
|
+
script_path: scriptPath,
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
raw_deps: rawDeps,
|
|
202
|
+
entrypoint: scriptPath,
|
|
203
|
+
}),
|
|
204
|
+
});
|
|
205
|
+
if (!rawResponse.ok) {
|
|
206
|
+
const text = await rawResponse.text();
|
|
207
|
+
throw new Error(`Dependency generation failed: ${rawResponse.status} ${rawResponse.statusText}\n${text}`);
|
|
208
|
+
}
|
|
209
|
+
let responseText = "reading response failed";
|
|
210
|
+
try {
|
|
211
|
+
responseText = await rawResponse.text();
|
|
212
|
+
const response = JSON.parse(responseText);
|
|
213
|
+
const lock = response.lock;
|
|
214
|
+
if (lock === undefined) {
|
|
215
|
+
if (response?.["error"]?.["message"]) {
|
|
216
|
+
throw new Error(`Failed to generate lockfile: ${response?.["error"]?.["message"]}`);
|
|
217
|
+
}
|
|
218
|
+
throw new Error(`Failed to generate lockfile: ${JSON.stringify(response, null, 2)}`);
|
|
219
|
+
}
|
|
220
|
+
return lock ?? "";
|
|
221
|
+
}
|
|
222
|
+
catch (e) {
|
|
223
|
+
throw new Error(`Failed to parse dependency response: ${rawResponse.statusText}, ${responseText}, ${e.message}`);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Infers schema for a single runnable from its file content.
|
|
228
|
+
* Used by dev server to update schema in memory (for wmill.d.ts generation).
|
|
229
|
+
* Does NOT write to raw_app.yaml - schema is kept in memory only.
|
|
230
|
+
*
|
|
231
|
+
* @param appFolder - The folder containing the raw app
|
|
232
|
+
* @param runnableFilePath - The path to the changed runnable file (relative to runnables folder)
|
|
233
|
+
* @returns The runnable ID and inferred schema, or undefined if inference failed/not applicable
|
|
234
|
+
*/
|
|
235
|
+
export async function inferRunnableSchemaFromFile(appFolder, runnableFilePath) {
|
|
236
|
+
// Extract runnable ID from file path (e.g., "myRunnable.inline_script.ts" -> "myRunnable")
|
|
237
|
+
const fileName = path.basename(runnableFilePath);
|
|
238
|
+
// Skip lock files
|
|
239
|
+
if (fileName.endsWith(".lock")) {
|
|
240
|
+
return undefined;
|
|
241
|
+
}
|
|
242
|
+
// Match pattern: {runnableId}.inline_script.{ext}
|
|
243
|
+
const match = fileName.match(/^(.+)\.inline_script\.[^.]+$/);
|
|
244
|
+
if (!match) {
|
|
245
|
+
return undefined;
|
|
246
|
+
}
|
|
247
|
+
const runnableId = match[1];
|
|
248
|
+
// Read the app file to get the language
|
|
249
|
+
const appFilePath = path.join(appFolder, "raw_app.yaml");
|
|
250
|
+
const appFile = (await yamlParseFile(appFilePath));
|
|
251
|
+
if (!appFile.runnables?.[runnableId]) {
|
|
252
|
+
log.warn(colors.yellow(`Runnable ${runnableId} not found in raw_app.yaml`));
|
|
253
|
+
return undefined;
|
|
254
|
+
}
|
|
255
|
+
const runnable = appFile.runnables[runnableId];
|
|
256
|
+
// Only process inline scripts
|
|
257
|
+
if (!runnable?.inlineScript) {
|
|
258
|
+
return undefined;
|
|
259
|
+
}
|
|
260
|
+
const inlineScript = runnable.inlineScript;
|
|
261
|
+
const language = inlineScript.language;
|
|
262
|
+
// Read the actual content from the file
|
|
263
|
+
const fullFilePath = path.join(appFolder, "runnables", runnableFilePath);
|
|
264
|
+
let content;
|
|
265
|
+
try {
|
|
266
|
+
content = await dntShim.Deno.readTextFile(fullFilePath);
|
|
267
|
+
}
|
|
268
|
+
catch {
|
|
269
|
+
log.warn(colors.yellow(`Could not read file: ${fullFilePath}`));
|
|
270
|
+
return undefined;
|
|
271
|
+
}
|
|
272
|
+
// Infer schema from script content
|
|
273
|
+
const currentSchema = inlineScript.schema;
|
|
274
|
+
const remotePath = appFolder.replaceAll(SEP, "/");
|
|
275
|
+
try {
|
|
276
|
+
const schemaResult = await inferSchema(language, content, currentSchema, `${remotePath}/${runnableId}`);
|
|
277
|
+
log.info(colors.green(` Inferred schema for ${runnableId}`));
|
|
278
|
+
return {
|
|
279
|
+
runnableId: runnableId,
|
|
280
|
+
schema: schemaResult.schema,
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
catch (schemaError) {
|
|
284
|
+
log.warn(colors.yellow(`Failed to infer schema for ${runnableId}: ${schemaError.message}`));
|
|
285
|
+
return undefined;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -5,7 +5,57 @@ import { colors, Command, log, SEP, Table, windmillUtils, yamlParseFile, } from
|
|
|
5
5
|
import * as wmill from "../../../gen/services.gen.js";
|
|
6
6
|
import { isSuperset } from "../../types.js";
|
|
7
7
|
import { readInlinePathSync } from "../../utils/utils.js";
|
|
8
|
+
import devCommand from "./dev.js";
|
|
8
9
|
const alreadySynced = [];
|
|
10
|
+
function respecializeFields(fields) {
|
|
11
|
+
Object.entries(fields).forEach(([k, v]) => {
|
|
12
|
+
if (typeof v == "object") {
|
|
13
|
+
if (v.value !== undefined) {
|
|
14
|
+
fields[k] = { value: v.value, type: "static" };
|
|
15
|
+
}
|
|
16
|
+
else if (v.expr !== undefined) {
|
|
17
|
+
fields[k] = { expr: v.expr, allowUserResources: v.allowUserResources, type: "javascript" };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export function repopulateFields(runnables) {
|
|
23
|
+
Object.values(runnables).forEach((v) => {
|
|
24
|
+
if (typeof v == "object") {
|
|
25
|
+
if (v.fields !== undefined) {
|
|
26
|
+
respecializeFields(v.fields);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export function replaceInlineScripts(rec, localPath) {
|
|
32
|
+
if (!rec) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (typeof rec == "object") {
|
|
36
|
+
return Object.entries(rec).flatMap(([k, v]) => {
|
|
37
|
+
if (k == 'runType') {
|
|
38
|
+
rec["type"] = 'path';
|
|
39
|
+
}
|
|
40
|
+
else if (k == "inlineScript" && typeof v == "object") {
|
|
41
|
+
rec["type"] = 'inline';
|
|
42
|
+
const o = v;
|
|
43
|
+
if (o["content"] && o["content"].startsWith("!inline")) {
|
|
44
|
+
const basePath = localPath + o["content"].split(" ")[1];
|
|
45
|
+
o["content"] = readInlinePathSync(basePath);
|
|
46
|
+
}
|
|
47
|
+
if (o["lock"] && o["lock"].startsWith("!inline")) {
|
|
48
|
+
const basePath = localPath + o["lock"].split(" ")[1];
|
|
49
|
+
o["lock"] = readInlinePathSync(basePath);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
replaceInlineScripts(v, localPath);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
9
59
|
export function isExecutionModeAnonymous(app) {
|
|
10
60
|
return app?.["policy"]?.["execution_mode"] == "anonymous";
|
|
11
61
|
}
|
|
@@ -38,34 +88,8 @@ export async function pushApp(workspace, remotePath, localPath, message) {
|
|
|
38
88
|
}
|
|
39
89
|
const path = localPath + "app.yaml";
|
|
40
90
|
const localApp = (await yamlParseFile(path));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (typeof rec == "object") {
|
|
46
|
-
return Object.entries(rec).flatMap(([k, v]) => {
|
|
47
|
-
if (k == "inlineScript" && typeof v == "object") {
|
|
48
|
-
const o = v;
|
|
49
|
-
if (o["content"] && o["content"].startsWith("!inline")) {
|
|
50
|
-
const basePath = localPath + o["content"].split(" ")[1];
|
|
51
|
-
o["content"] = readInlinePathSync(basePath);
|
|
52
|
-
}
|
|
53
|
-
if (o["lock"] && o["lock"].startsWith("!inline")) {
|
|
54
|
-
const basePath = localPath + o["lock"].split(" ")[1];
|
|
55
|
-
o["lock"] = readInlinePathSync(basePath);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
replaceInlineScripts(v);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
replaceInlineScripts(localApp.value);
|
|
66
|
-
// console.log(localApp, localApp?.["policy"]);
|
|
67
|
-
await generatingPolicy(localApp, remotePath, localApp?.["public"] ?? (localApp.policy ? isExecutionModeAnonymous(localApp) : false));
|
|
68
|
-
// console.log(localApp, localApp?.["policy"]);
|
|
91
|
+
replaceInlineScripts(localApp.value, localPath);
|
|
92
|
+
await generatingPolicy(localApp, remotePath, localApp?.["public"] ?? false);
|
|
69
93
|
if (app) {
|
|
70
94
|
if (isSuperset(localApp, app)) {
|
|
71
95
|
log.info(colors.green(`App ${remotePath} is up to date`));
|
|
@@ -93,7 +117,7 @@ export async function pushApp(workspace, remotePath, localPath, message) {
|
|
|
93
117
|
});
|
|
94
118
|
}
|
|
95
119
|
}
|
|
96
|
-
async function generatingPolicy(app, path, publicApp) {
|
|
120
|
+
export async function generatingPolicy(app, path, publicApp) {
|
|
97
121
|
log.info(colors.gray(`Generating fresh policy for app ${path}...`));
|
|
98
122
|
try {
|
|
99
123
|
app.policy = await windmillUtils.updatePolicy(app.value, undefined);
|
|
@@ -137,12 +161,22 @@ async function push(opts, filePath, remotePath) {
|
|
|
137
161
|
const workspace = await resolveWorkspace(opts);
|
|
138
162
|
await requireLogin(opts);
|
|
139
163
|
await pushApp(workspace.workspaceId, remotePath, filePath);
|
|
140
|
-
log.info(colors.bold.underline.green("
|
|
164
|
+
log.info(colors.bold.underline.green("App pushed"));
|
|
141
165
|
}
|
|
142
166
|
const command = new Command()
|
|
143
167
|
.description("app related commands")
|
|
144
168
|
.action(list)
|
|
145
169
|
.command("push", "push a local app ")
|
|
146
170
|
.arguments("<file_path:string> <remote_path:string>")
|
|
147
|
-
.action(push)
|
|
171
|
+
.action(push)
|
|
172
|
+
.command("dev", devCommand)
|
|
173
|
+
.command("generate-locks", "re-generate the lockfiles for app runnables inline scripts that have changed")
|
|
174
|
+
.arguments("[app_folder:string]")
|
|
175
|
+
.option("--yes", "Skip confirmation prompt")
|
|
176
|
+
.option("--dry-run", "Perform a dry run without making changes")
|
|
177
|
+
.option("--default-ts <runtime:string>", "Default TypeScript runtime (bun or deno)")
|
|
178
|
+
.action(async (opts, appFolder) => {
|
|
179
|
+
const { generateLocksCommand } = await import("./raw_apps.js");
|
|
180
|
+
await generateLocksCommand(opts, appFolder);
|
|
181
|
+
});
|
|
148
182
|
export default command;
|