windmill-cli 1.641.0 → 1.643.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/main.js +78213 -0
- package/package.json +23 -36
- package/esm/_dnt.polyfills.js +0 -250
- package/esm/_dnt.shims.js +0 -61
- package/esm/bootstrap/common.js +0 -1
- package/esm/bootstrap/flow_bootstrap.js +0 -17
- package/esm/bootstrap/script_bootstrap.js +0 -103
- package/esm/deps/jsr.io/@std/assert/1.0.0-rc.2/equal.js +0 -113
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +0 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +0 -32
- package/esm/deps/jsr.io/@std/cli/1.0.0-rc.2/_data.js +0 -17
- package/esm/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.js +0 -34
- package/esm/deps/jsr.io/@std/cli/1.0.0-rc.2/unicode_width.js +0 -74
- package/esm/deps/jsr.io/@std/encoding/1.0.0-rc.2/_validate_binary_like.js +0 -26
- package/esm/deps/jsr.io/@std/encoding/1.0.0-rc.2/base64.js +0 -163
- package/esm/deps/jsr.io/@std/encoding/1.0.4/_base32_common.js +0 -183
- package/esm/deps/jsr.io/@std/encoding/1.0.4/_validate_binary_like.js +0 -26
- package/esm/deps/jsr.io/@std/encoding/1.0.4/ascii85.js +0 -152
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32.js +0 -69
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32_stream.js +0 -92
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex.js +0 -77
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.js +0 -92
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base58.js +0 -131
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base64.js +0 -163
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base64_stream.js +0 -92
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base64url.js +0 -81
- package/esm/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.js +0 -93
- package/esm/deps/jsr.io/@std/encoding/1.0.4/hex.js +0 -109
- package/esm/deps/jsr.io/@std/encoding/1.0.4/hex_stream.js +0 -81
- package/esm/deps/jsr.io/@std/encoding/1.0.4/mod.js +0 -28
- package/esm/deps/jsr.io/@std/encoding/1.0.4/varint.js +0 -207
- package/esm/deps/jsr.io/@std/fmt/0.225.6/colors.js +0 -916
- package/esm/deps/jsr.io/@std/fmt/1.0.9/colors.js +0 -903
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +0 -34
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +0 -18
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +0 -17
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +0 -25
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +0 -13
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.js +0 -313
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +0 -87
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +0 -102
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +0 -90
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +0 -61
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +0 -156
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.js +0 -67
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.js +0 -271
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +0 -442
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.js +0 -29
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.js +0 -142
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.js +0 -846
- 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/io/0.224.9/types.js +0 -15
- package/esm/deps/jsr.io/@std/io/0.225.3/_constants.js +0 -4
- package/esm/deps/jsr.io/@std/io/0.225.3/copy.js +0 -36
- package/esm/deps/jsr.io/@std/io/0.225.3/read_all.js +0 -72
- package/esm/deps/jsr.io/@std/io/0.225.3/types.js +0 -15
- package/esm/deps/jsr.io/@std/io/0.225.3/write_all.js +0 -61
- package/esm/deps/jsr.io/@std/log/0.224.14/_config.js +0 -14
- package/esm/deps/jsr.io/@std/log/0.224.14/_file_handler_symbols.js +0 -8
- package/esm/deps/jsr.io/@std/log/0.224.14/_state.js +0 -7
- package/esm/deps/jsr.io/@std/log/0.224.14/base_handler.js +0 -331
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +0 -112
- package/esm/deps/jsr.io/@std/log/0.224.14/critical.js +0 -11
- package/esm/deps/jsr.io/@std/log/0.224.14/debug.js +0 -11
- package/esm/deps/jsr.io/@std/log/0.224.14/error.js +0 -11
- package/esm/deps/jsr.io/@std/log/0.224.14/file_handler.js +0 -267
- package/esm/deps/jsr.io/@std/log/0.224.14/formatters.js +0 -45
- package/esm/deps/jsr.io/@std/log/0.224.14/get_logger.js +0 -75
- package/esm/deps/jsr.io/@std/log/0.224.14/info.js +0 -11
- package/esm/deps/jsr.io/@std/log/0.224.14/levels.js +0 -45
- package/esm/deps/jsr.io/@std/log/0.224.14/logger.js +0 -525
- package/esm/deps/jsr.io/@std/log/0.224.14/mod.js +0 -394
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +0 -125
- package/esm/deps/jsr.io/@std/log/0.224.14/setup.js +0 -41
- package/esm/deps/jsr.io/@std/log/0.224.14/warn.js +0 -11
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/glob_to_reg_exp.js +0 -234
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_interface.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/_os.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/basename.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/dirname.js +0 -26
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/extname.js +0 -26
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/join.js +0 -26
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/mod.js +0 -54
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/normalize.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/basename.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/dirname.js +0 -47
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/extname.js +0 -70
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/join.js +0 -26
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/join_globs.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/normalize.js +0 -36
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/normalize_glob.js +0 -31
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/basename.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/dirname.js +0 -109
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/extname.js +0 -78
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/join.js +0 -71
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/normalize.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/normalize_glob.js +0 -31
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.0.0-rc.2/windows/to_namespaced_path.js +0 -49
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +0 -235
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.4/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.1.4/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.4/mod.js +0 -216
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.4/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +0 -52
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +0 -64
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +0 -93
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +0 -45
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +0 -58
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.4/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.4/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +0 -47
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +0 -113
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +0 -135
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +0 -49
- package/esm/deps/jsr.io/@std/text/1.0.0-rc.1/closest_string.js +0 -52
- package/esm/deps/jsr.io/@std/text/1.0.0-rc.1/levenshtein_distance.js +0 -40
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_chars.js +0 -48
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_dumper_state.js +0 -712
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_loader_state.js +0 -1445
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_schema.js +0 -117
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/binary.js +0 -103
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/bool.js +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/float.js +0 -96
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/int.js +0 -159
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/map.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/merge.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/nil.js +0 -22
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/omap.js +0 -29
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/pairs.js +0 -19
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/regexp.js +0 -30
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/seq.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/set.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/str.js +0 -9
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/timestamp.js +0 -81
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type/undefined.js +0 -20
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_type.js +0 -6
- package/esm/deps/jsr.io/@std/yaml/1.0.12/_utils.js +0 -13
- package/esm/deps/jsr.io/@std/yaml/1.0.12/mod.js +0 -52
- package/esm/deps/jsr.io/@std/yaml/1.0.12/parse.js +0 -91
- package/esm/deps/jsr.io/@std/yaml/1.0.12/stringify.js +0 -33
- package/esm/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/ansi_escapes.js +0 -218
- package/esm/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/chain.js +0 -1
- package/esm/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/colors.js +0 -48
- package/esm/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/cursor_position.js +0 -31
- package/esm/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/tty.js +0 -61
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_argument_types.js +0 -1
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_errors.js +0 -155
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_spread.js +0 -1
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_type_utils.js +0 -1
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_utils.js +0 -125
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/command.js +0 -1789
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_bash_completions_generator.js +0 -211
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_fish_completions_generator.js +0 -151
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_zsh_completions_generator.js +0 -314
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/bash.js +0 -39
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/complete.js +0 -32
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/completions_command.js +0 -47
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/fish.js +0 -39
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.js +0 -4
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/zsh.js +0 -39
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/deprecated.js +0 -2
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/help/_help_generator.js +0 -320
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js +0 -13
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/type.js +0 -27
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/action_list.js +0 -20
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/boolean.js +0 -13
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/child_command.js +0 -27
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/command.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/enum.js +0 -29
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/file.js +0 -12
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/integer.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/number.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/string.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types.js +0 -2
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/_check_version.js +0 -21
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/get_runtime.js +0 -20
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/logger.js +0 -15
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.js +0 -2
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/provider/npm.js +0 -60
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/provider.js +0 -118
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/bun_runtime.js +0 -21
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/deno_runtime.js +0 -34
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/node_runtime.js +0 -29
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime.js +0 -3
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/spinner.js +0 -198
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/upgrade.js +0 -42
- package/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/upgrade_command.js +0 -133
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_errors.js +0 -117
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_utils.js +0 -89
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_validate_flags.js +0 -155
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/deprecated.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/flags.js +0 -401
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/mod.js +0 -7
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/boolean.js +0 -11
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/integer.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/number.js +0 -9
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/string.js +0 -4
- package/esm/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types.js +0 -1
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/exit.js +0 -15
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_args.js +0 -10
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_columns.js +0 -23
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_env.js +0 -17
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_os.js +0 -18
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/inspect.js +0 -11
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/is_directory.js +0 -16
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/is_terminal.js +0 -18
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/no_color.js +0 -16
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read.js +0 -35
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read_dir.js +0 -23
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read_sync.js +0 -28
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/set_raw.js +0 -20
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/stat.js +0 -21
- package/esm/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/write_sync.js +0 -20
- package/esm/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/_key_codes.js +0 -103
- package/esm/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/key_code.js +0 -235
- package/esm/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/mod.js +0 -1
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_figures.js +0 -63
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_input.js +0 -112
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_list.js +0 -523
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_prompt.js +0 -284
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_suggestions.js +0 -424
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_utils.js +0 -5
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/confirm.js +0 -117
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/input.js +0 -88
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/secret.js +0 -96
- package/esm/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/select.js +0 -184
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_layout.js +0 -546
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_utils.js +0 -71
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/border.js +0 -18
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/cell.js +0 -199
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/column.js +0 -85
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/consume_words.js +0 -64
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/mod.js +0 -6
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/row.js +0 -90
- package/esm/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/table.js +0 -304
- package/esm/deps/jsr.io/@windmill-labs/shared-utils/1.0.12/lib.es.js +0 -1689
- package/esm/deps.js +0 -68
- package/esm/gen/core/ApiError.js +0 -41
- package/esm/gen/core/ApiRequestOptions.js +0 -1
- package/esm/gen/core/ApiResult.js +0 -1
- package/esm/gen/core/CancelablePromise.js +0 -130
- package/esm/gen/core/OpenAPI.js +0 -41
- package/esm/gen/core/request.js +0 -305
- package/esm/gen/index.js +0 -6
- package/esm/gen/services.gen.js +0 -12750
- package/esm/gen/types.gen.js +0 -2
- package/esm/package.json +0 -3
- package/esm/src/commands/app/app.js +0 -211
- package/esm/src/commands/app/app_metadata.js +0 -542
- package/esm/src/commands/app/bundle.js +0 -253
- package/esm/src/commands/app/dev.js +0 -1289
- package/esm/src/commands/app/generate_agents.js +0 -219
- package/esm/src/commands/app/lint.js +0 -162
- package/esm/src/commands/app/metadata.js +0 -1
- package/esm/src/commands/app/new.js +0 -537
- package/esm/src/commands/app/raw_apps.js +0 -385
- package/esm/src/commands/app/wmillTsDev.js +0 -128
- package/esm/src/commands/dependencies/dependencies.js +0 -71
- package/esm/src/commands/dev/dev.js +0 -146
- package/esm/src/commands/flow/flow.js +0 -290
- package/esm/src/commands/flow/flow_metadata.js +0 -156
- package/esm/src/commands/folder/folder.js +0 -101
- package/esm/src/commands/gitsync-settings/converter.js +0 -134
- package/esm/src/commands/gitsync-settings/gitsync-settings.js +0 -28
- package/esm/src/commands/gitsync-settings/legacySettings.js +0 -119
- package/esm/src/commands/gitsync-settings/pull.js +0 -369
- package/esm/src/commands/gitsync-settings/push.js +0 -261
- package/esm/src/commands/gitsync-settings/types.js +0 -37
- package/esm/src/commands/gitsync-settings/utils.js +0 -129
- package/esm/src/commands/hub/hub.js +0 -94
- package/esm/src/commands/init/init.js +0 -259
- package/esm/src/commands/instance/instance.js +0 -586
- package/esm/src/commands/jobs/jobs.js +0 -186
- package/esm/src/commands/lint/lint.js +0 -600
- package/esm/src/commands/queues/queues.js +0 -117
- package/esm/src/commands/resource/resource.js +0 -117
- package/esm/src/commands/resource-type/resource-type.js +0 -112
- package/esm/src/commands/schedule/schedule.js +0 -101
- package/esm/src/commands/script/script.js +0 -997
- package/esm/src/commands/sync/global.js +0 -23
- package/esm/src/commands/sync/pull.js +0 -39
- package/esm/src/commands/sync/sync.js +0 -2309
- package/esm/src/commands/trigger/trigger.js +0 -269
- package/esm/src/commands/user/user.js +0 -428
- package/esm/src/commands/variable/variable.js +0 -121
- package/esm/src/commands/worker-groups/worker-groups.js +0 -96
- package/esm/src/commands/workers/workers.js +0 -79
- package/esm/src/commands/workspace/fork.js +0 -131
- package/esm/src/commands/workspace/workspace.js +0 -403
- package/esm/src/core/auth.js +0 -40
- package/esm/src/core/branch-profiles.js +0 -46
- package/esm/src/core/conf.js +0 -335
- package/esm/src/core/constants.js +0 -5
- package/esm/src/core/context.js +0 -326
- package/esm/src/core/login.js +0 -100
- package/esm/src/core/settings.js +0 -496
- package/esm/src/core/specific_items.js +0 -318
- package/esm/src/core/store.js +0 -19
- package/esm/src/guidance/core.js +0 -57
- package/esm/src/guidance/skills.js +0 -5742
- package/esm/src/main.js +0 -203
- package/esm/src/types.js +0 -315
- package/esm/src/utils/codebase.js +0 -38
- package/esm/src/utils/git.js +0 -51
- package/esm/src/utils/local_encryption.js +0 -70
- package/esm/src/utils/metadata.js +0 -672
- package/esm/src/utils/resource_folders.js +0 -367
- package/esm/src/utils/resource_types.js +0 -32
- package/esm/src/utils/script_common.js +0 -91
- package/esm/src/utils/upgrade.js +0 -48
- package/esm/src/utils/utils.js +0 -234
- package/esm/wasm/csharp/windmill_parser_wasm.js +0 -103
- package/esm/wasm/csharp/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/go/windmill_parser_wasm.js +0 -103
- package/esm/wasm/go/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/java/windmill_parser_wasm.js +0 -103
- package/esm/wasm/java/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/nu/windmill_parser_wasm.js +0 -106
- package/esm/wasm/nu/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/php/windmill_parser_wasm.js +0 -112
- package/esm/wasm/php/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/py/windmill_parser_wasm.js +0 -131
- package/esm/wasm/py/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/regex/windmill_parser_wasm.js +0 -311
- package/esm/wasm/regex/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/ruby/windmill_parser_wasm.js +0 -103
- package/esm/wasm/ruby/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/rust/windmill_parser_wasm.js +0 -86
- package/esm/wasm/rust/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/ts/windmill_parser_wasm.js +0 -438
- package/esm/wasm/ts/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/yaml/windmill_parser_wasm.js +0 -103
- package/esm/wasm/yaml/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/windmill-utils-internal/src/config/config.js +0 -190
- package/esm/windmill-utils-internal/src/gen/types.gen.js +0 -2
- package/esm/windmill-utils-internal/src/inline-scripts/extractor.js +0 -109
- package/esm/windmill-utils-internal/src/inline-scripts/replacer.js +0 -85
- package/esm/windmill-utils-internal/src/parse/parse-schema.js +0 -254
- package/esm/windmill-utils-internal/src/path-utils/path-assigner.js +0 -159
- package/types/_dnt.polyfills.d.ts +0 -124
- package/types/_dnt.polyfills.d.ts.map +0 -1
- package/types/_dnt.shims.d.ts +0 -6
- package/types/_dnt.shims.d.ts.map +0 -1
- package/types/bootstrap/common.d.ts +0 -51
- package/types/bootstrap/common.d.ts.map +0 -1
- package/types/bootstrap/flow_bootstrap.d.ts +0 -20
- package/types/bootstrap/flow_bootstrap.d.ts.map +0 -1
- package/types/bootstrap/script_bootstrap.d.ts +0 -42
- package/types/bootstrap/script_bootstrap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.0-rc.2/equal.d.ts +0 -17
- package/types/deps/jsr.io/@std/assert/1.0.0-rc.2/equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +0 -9
- package/types/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +0 -21
- package/types/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/_data.d.ts +0 -9
- package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/_data.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.d.ts +0 -9
- package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/unicode_width.d.ts +0 -40
- package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/unicode_width.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.0-rc.2/_validate_binary_like.d.ts +0 -2
- package/types/deps/jsr.io/@std/encoding/1.0.0-rc.2/_validate_binary_like.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.0-rc.2/base64.d.ts +0 -38
- package/types/deps/jsr.io/@std/encoding/1.0.0-rc.2/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/_base32_common.d.ts +0 -17
- package/types/deps/jsr.io/@std/encoding/1.0.4/_base32_common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/_validate_binary_like.d.ts +0 -2
- package/types/deps/jsr.io/@std/encoding/1.0.4/_validate_binary_like.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/ascii85.d.ts +0 -59
- package/types/deps/jsr.io/@std/encoding/1.0.4/ascii85.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32.d.ts +0 -38
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts +0 -42
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base58.d.ts +0 -38
- package/types/deps/jsr.io/@std/encoding/1.0.4/base58.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64.d.ts +0 -38
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64url.d.ts +0 -38
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts +0 -49
- package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/hex.d.ts +0 -37
- package/types/deps/jsr.io/@std/encoding/1.0.4/hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts +0 -48
- package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/mod.d.ts +0 -28
- package/types/deps/jsr.io/@std/encoding/1.0.4/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.4/varint.d.ts +0 -118
- package/types/deps/jsr.io/@std/encoding/1.0.4/varint.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fmt/0.225.6/colors.d.ts +0 -716
- package/types/deps/jsr.io/@std/fmt/0.225.6/colors.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fmt/1.0.9/colors.d.ts +0 -700
- package/types/deps/jsr.io/@std/fmt/1.0.9/colors.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +0 -14
- package/types/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +0 -13
- package/types/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +0 -10
- package/types/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +0 -12
- package/types/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +0 -9
- package/types/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +0 -117
- package/types/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +0 -48
- package/types/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +0 -49
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +0 -47
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +0 -49
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +0 -70
- package/types/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +0 -52
- package/types/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +0 -218
- package/types/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +0 -267
- package/types/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +0 -29
- package/types/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/move.d.ts +0 -86
- package/types/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +0 -777
- package/types/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +0 -1
- 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/io/0.224.9/types.d.ts +0 -146
- package/types/deps/jsr.io/@std/io/0.224.9/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/io/0.225.3/_constants.d.ts +0 -3
- package/types/deps/jsr.io/@std/io/0.225.3/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/io/0.225.3/copy.d.ts +0 -25
- package/types/deps/jsr.io/@std/io/0.225.3/copy.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/io/0.225.3/read_all.d.ts +0 -42
- package/types/deps/jsr.io/@std/io/0.225.3/read_all.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/io/0.225.3/types.d.ts +0 -146
- package/types/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +0 -52
- package/types/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/_config.d.ts +0 -4
- package/types/deps/jsr.io/@std/log/0.224.14/_config.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/_file_handler_symbols.d.ts +0 -8
- package/types/deps/jsr.io/@std/log/0.224.14/_file_handler_symbols.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/_state.d.ts +0 -8
- package/types/deps/jsr.io/@std/log/0.224.14/_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/base_handler.d.ts +0 -326
- package/types/deps/jsr.io/@std/log/0.224.14/base_handler.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/console_handler.d.ts +0 -76
- package/types/deps/jsr.io/@std/log/0.224.14/console_handler.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/critical.d.ts +0 -53
- package/types/deps/jsr.io/@std/log/0.224.14/critical.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/debug.d.ts +0 -105
- package/types/deps/jsr.io/@std/log/0.224.14/debug.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/error.d.ts +0 -53
- package/types/deps/jsr.io/@std/log/0.224.14/error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/file_handler.d.ts +0 -200
- package/types/deps/jsr.io/@std/log/0.224.14/file_handler.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/formatters.d.ts +0 -34
- package/types/deps/jsr.io/@std/log/0.224.14/formatters.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/get_logger.d.ts +0 -59
- package/types/deps/jsr.io/@std/log/0.224.14/get_logger.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/info.d.ts +0 -53
- package/types/deps/jsr.io/@std/log/0.224.14/info.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/levels.d.ts +0 -28
- package/types/deps/jsr.io/@std/log/0.224.14/levels.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/logger.d.ts +0 -622
- package/types/deps/jsr.io/@std/log/0.224.14/logger.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/mod.d.ts +0 -394
- package/types/deps/jsr.io/@std/log/0.224.14/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.d.ts +0 -53
- package/types/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/setup.d.ts +0 -4
- package/types/deps/jsr.io/@std/log/0.224.14/setup.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/log/0.224.14/warn.d.ts +0 -53
- package/types/deps/jsr.io/@std/log/0.224.14/warn.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/assert_path.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/assert_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/basename.d.ts +0 -4
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/common.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/constants.d.ts +0 -40
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/dirname.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/format.d.ts +0 -4
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/from_file_url.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/glob_to_reg_exp.d.ts +0 -34
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/normalize.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/normalize_string.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/normalize_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/relative.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/strip_trailing_separators.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/strip_trailing_separators.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/to_file_url.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_common/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_interface.d.ts +0 -42
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_interface.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_os.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/basename.d.ts +0 -25
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/common.d.ts +0 -28
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/constants.d.ts +0 -15
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/dirname.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/extname.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/format.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/from_file_url.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/glob_to_regexp.d.ts +0 -79
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/is_absolute.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/is_glob.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/is_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/join.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/join_globs.d.ts +0 -28
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/mod.d.ts +0 -51
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/normalize.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/normalize_glob.d.ts +0 -29
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/parse.d.ts +0 -35
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/_util.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/_util.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/basename.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/constants.d.ts +0 -13
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/dirname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/extname.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/format.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/from_file_url.d.ts +0 -16
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/glob_to_regexp.d.ts +0 -72
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/is_absolute.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/join.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/join_globs.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/normalize.d.ts +0 -19
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/normalize_glob.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/parse.d.ts +0 -25
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/relative.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/resolve.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/to_file_url.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/to_namespaced_path.d.ts +0 -16
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/relative.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/resolve.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/to_file_url.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/to_namespaced_path.d.ts +0 -21
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/_util.d.ts +0 -4
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/_util.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/basename.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/constants.d.ts +0 -13
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/dirname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/extname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/format.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/from_file_url.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/glob_to_regexp.d.ts +0 -71
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/is_absolute.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/join.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/join_globs.d.ts +0 -21
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/normalize.d.ts +0 -19
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/normalize_glob.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/parse.d.ts +0 -25
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/relative.d.ts +0 -23
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/resolve.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/to_file_url.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/to_namespaced_path.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +0 -4
- package/types/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +0 -40
- package/types/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +0 -4
- package/types/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +0 -35
- package/types/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts +0 -27
- package/types/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/common.d.ts +0 -28
- package/types/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/constants.d.ts +0 -15
- package/types/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/format.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +0 -77
- package/types/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/join.d.ts +0 -23
- package/types/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +0 -28
- package/types/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/mod.d.ts +0 -213
- package/types/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +0 -26
- package/types/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +0 -29
- package/types/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/parse.d.ts +0 -35
- package/types/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +0 -39
- package/types/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +0 -13
- package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +0 -30
- package/types/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +0 -37
- package/types/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +0 -16
- package/types/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +0 -72
- package/types/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +0 -31
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +0 -37
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +0 -25
- package/types/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +0 -16
- package/types/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/relative.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +0 -21
- package/types/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/types.d.ts +0 -38
- package/types/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +0 -4
- package/types/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +0 -13
- package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +0 -24
- package/types/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +0 -71
- package/types/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +0 -21
- package/types/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +0 -19
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +0 -25
- package/types/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +0 -23
- package/types/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/1.0.0-rc.1/closest_string.d.ts +0 -29
- package/types/deps/jsr.io/@std/text/1.0.0-rc.1/closest_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/text/1.0.0-rc.1/levenshtein_distance.d.ts +0 -18
- package/types/deps/jsr.io/@std/text/1.0.0-rc.1/levenshtein_distance.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_chars.d.ts +0 -33
- package/types/deps/jsr.io/@std/yaml/1.0.12/_chars.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_dumper_state.d.ts +0 -106
- package/types/deps/jsr.io/@std/yaml/1.0.12/_dumper_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_loader_state.d.ts +0 -64
- package/types/deps/jsr.io/@std/yaml/1.0.12/_loader_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_schema.d.ts +0 -44
- package/types/deps/jsr.io/@std/yaml/1.0.12/_schema.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/binary.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/binary.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/bool.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/bool.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/float.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/float.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/int.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/int.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/map.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/map.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/merge.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/merge.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/nil.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/nil.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/omap.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/omap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/pairs.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/pairs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/regexp.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/seq.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/seq.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/set.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/str.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/timestamp.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/timestamp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/undefined.d.ts +0 -3
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type/undefined.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type.d.ts +0 -32
- package/types/deps/jsr.io/@std/yaml/1.0.12/_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/_utils.d.ts +0 -4
- package/types/deps/jsr.io/@std/yaml/1.0.12/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/mod.d.ts +0 -50
- package/types/deps/jsr.io/@std/yaml/1.0.12/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/parse.d.ts +0 -76
- package/types/deps/jsr.io/@std/yaml/1.0.12/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.12/stringify.d.ts +0 -100
- package/types/deps/jsr.io/@std/yaml/1.0.12/stringify.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/ansi_escapes.d.ts +0 -135
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/ansi_escapes.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/chain.d.ts +0 -137
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/chain.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/colors.d.ts +0 -39
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/colors.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/cursor_position.d.ts +0 -28
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/cursor_position.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/tty.d.ts +0 -37
- package/types/deps/jsr.io/@windmill-labs/cliffy-ansi/1.0.0-rc.5/tty.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_argument_types.d.ts +0 -157
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_argument_types.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_errors.d.ts +0 -77
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_errors.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_spread.d.ts +0 -16
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_spread.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_type_utils.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_type_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_utils.d.ts +0 -37
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/command.d.ts +0 -815
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/command.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_bash_completions_generator.d.ts +0 -19
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_bash_completions_generator.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_fish_completions_generator.d.ts +0 -16
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_fish_completions_generator.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_zsh_completions_generator.d.ts +0 -23
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/_zsh_completions_generator.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/bash.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/bash.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/complete.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/complete.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/completions_command.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/completions_command.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/fish.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/fish.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.d.ts +0 -5
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/zsh.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/zsh.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/deprecated.d.ts +0 -46
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/deprecated.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/help/_help_generator.d.ts +0 -28
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/help/_help_generator.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.d.ts +0 -15
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/type.d.ts +0 -45
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/type.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/action_list.d.ts +0 -10
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/action_list.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/boolean.d.ts +0 -10
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/boolean.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/child_command.d.ts +0 -10
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/child_command.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/command.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/command.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/enum.d.ts +0 -11
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/enum.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/file.d.ts +0 -6
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/file.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/integer.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/integer.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/number.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/number.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/string.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types/string.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types.d.ts +0 -119
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/_check_version.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/_check_version.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/get_runtime.d.ts +0 -11
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/get_runtime.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/logger.d.ts +0 -13
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/logger.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.d.ts +0 -3
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/provider/npm.d.ts +0 -19
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/provider/npm.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/provider.d.ts +0 -66
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/provider.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/bun_runtime.d.ts +0 -6
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/bun_runtime.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/deno_runtime.d.ts +0 -14
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/deno_runtime.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/node_runtime.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime/node_runtime.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime.d.ts +0 -12
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/runtime.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/spinner.d.ts +0 -156
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/spinner.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/upgrade.d.ts +0 -27
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/upgrade.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/upgrade_command.d.ts +0 -52
- package/types/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/upgrade_command.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_errors.d.ts +0 -61
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_errors.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_utils.d.ts +0 -17
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_validate_flags.d.ts +0 -11
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/_validate_flags.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/deprecated.d.ts +0 -25
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/deprecated.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/flags.d.ts +0 -35
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/flags.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/mod.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/boolean.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/boolean.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/integer.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/integer.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/number.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/number.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/string.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types/string.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types.d.ts +0 -137
- package/types/deps/jsr.io/@windmill-labs/cliffy-flags/1.0.0-rc.5/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/exit.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/exit.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_args.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_args.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_columns.d.ts +0 -2
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_columns.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_env.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_env.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_os.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/get_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/inspect.d.ts +0 -2
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/inspect.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/is_directory.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/is_directory.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/is_terminal.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/is_terminal.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/no_color.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/no_color.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read_dir.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read_dir.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read_sync.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/read_sync.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/set_raw.d.ts +0 -11
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/set_raw.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/stat.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/stat.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/write_sync.d.ts +0 -8
- package/types/deps/jsr.io/@windmill-labs/cliffy-internal/1.0.0-rc.5/runtime/write_sync.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/_key_codes.d.ts +0 -9
- package/types/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/_key_codes.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/key_code.d.ts +0 -37
- package/types/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/key_code.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/mod.d.ts +0 -2
- package/types/deps/jsr.io/@windmill-labs/cliffy-keycode/1.0.0-rc.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_figures.d.ts +0 -34
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_figures.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_input.d.ts +0 -49
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_input.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_list.d.ts +0 -190
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_list.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_prompt.d.ts +0 -142
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_prompt.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_suggestions.d.ts +0 -115
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_generic_suggestions.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_utils.d.ts +0 -4
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/confirm.d.ts +0 -66
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/confirm.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/input.d.ts +0 -64
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/input.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/secret.d.ts +0 -74
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/secret.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/select.d.ts +0 -142
- package/types/deps/jsr.io/@windmill-labs/cliffy-prompt/1.0.0-rc.6/select.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_layout.d.ts +0 -104
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_layout.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_utils.d.ts +0 -29
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/border.d.ts +0 -23
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/border.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/cell.d.ts +0 -157
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/cell.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/column.d.ts +0 -62
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/column.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/consume_words.d.ts +0 -30
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/consume_words.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/mod.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/row.d.ts +0 -71
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/row.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/table.d.ts +0 -192
- package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/table.d.ts.map +0 -1
- package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.12/lib.es.d.ts +0 -7
- package/types/deps/jsr.io/@windmill-labs/shared-utils/1.0.12/lib.es.d.ts.map +0 -1
- package/types/deps.d.ts +0 -35
- package/types/deps.d.ts.map +0 -1
- package/types/gen/core/ApiError.d.ts +0 -11
- package/types/gen/core/ApiError.d.ts.map +0 -1
- package/types/gen/core/ApiRequestOptions.d.ts +0 -15
- package/types/gen/core/ApiRequestOptions.d.ts.map +0 -1
- package/types/gen/core/ApiResult.d.ts +0 -8
- package/types/gen/core/ApiResult.d.ts.map +0 -1
- package/types/gen/core/CancelablePromise.d.ts +0 -27
- package/types/gen/core/CancelablePromise.d.ts.map +0 -1
- package/types/gen/core/OpenAPI.d.ts +0 -28
- package/types/gen/core/OpenAPI.d.ts.map +0 -1
- package/types/gen/core/request.d.ts +0 -30
- package/types/gen/core/request.d.ts.map +0 -1
- package/types/gen/index.d.ts +0 -6
- package/types/gen/index.d.ts.map +0 -1
- package/types/gen/services.gen.d.ts +0 -6251
- package/types/gen/services.gen.d.ts.map +0 -1
- package/types/gen/types.gen.d.ts +0 -11952
- package/types/gen/types.gen.d.ts.map +0 -1
- package/types/src/commands/app/app.d.ts +0 -28
- package/types/src/commands/app/app.d.ts.map +0 -1
- package/types/src/commands/app/app_metadata.d.ts +0 -38
- package/types/src/commands/app/app_metadata.d.ts.map +0 -1
- package/types/src/commands/app/bundle.d.ts +0 -70
- package/types/src/commands/app/bundle.d.ts.map +0 -1
- package/types/src/commands/app/dev.d.ts +0 -18
- package/types/src/commands/app/dev.d.ts.map +0 -1
- package/types/src/commands/app/generate_agents.d.ts +0 -15
- package/types/src/commands/app/generate_agents.d.ts.map +0 -1
- package/types/src/commands/app/lint.d.ts +0 -12
- package/types/src/commands/app/lint.d.ts.map +0 -1
- package/types/src/commands/app/metadata.d.ts +0 -19
- package/types/src/commands/app/metadata.d.ts.map +0 -1
- package/types/src/commands/app/new.d.ts +0 -10
- package/types/src/commands/app/new.d.ts.map +0 -1
- package/types/src/commands/app/raw_apps.d.ts +0 -44
- package/types/src/commands/app/raw_apps.d.ts.map +0 -1
- package/types/src/commands/app/wmillTsDev.d.ts +0 -2
- package/types/src/commands/app/wmillTsDev.d.ts.map +0 -1
- package/types/src/commands/dependencies/dependencies.d.ts +0 -11
- package/types/src/commands/dependencies/dependencies.d.ts.map +0 -1
- package/types/src/commands/dev/dev.d.ts +0 -12
- package/types/src/commands/dev/dev.d.ts.map +0 -1
- package/types/src/commands/flow/flow.d.ts +0 -28
- package/types/src/commands/flow/flow.d.ts.map +0 -1
- package/types/src/commands/flow/flow_metadata.d.ts +0 -8
- package/types/src/commands/flow/flow_metadata.d.ts.map +0 -1
- package/types/src/commands/folder/folder.d.ts +0 -19
- package/types/src/commands/folder/folder.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/converter.d.ts +0 -10
- package/types/src/commands/gitsync-settings/converter.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/gitsync-settings.d.ts +0 -25
- package/types/src/commands/gitsync-settings/gitsync-settings.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/legacySettings.d.ts +0 -4
- package/types/src/commands/gitsync-settings/legacySettings.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/pull.d.ts +0 -14
- package/types/src/commands/gitsync-settings/pull.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/push.d.ts +0 -10
- package/types/src/commands/gitsync-settings/push.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/types.d.ts +0 -35
- package/types/src/commands/gitsync-settings/types.d.ts.map +0 -1
- package/types/src/commands/gitsync-settings/utils.d.ts +0 -36
- package/types/src/commands/gitsync-settings/utils.d.ts.map +0 -1
- package/types/src/commands/hub/hub.d.ts +0 -12
- package/types/src/commands/hub/hub.d.ts.map +0 -1
- package/types/src/commands/init/init.d.ts +0 -34
- package/types/src/commands/init/init.d.ts.map +0 -1
- package/types/src/commands/instance/instance.d.ts +0 -50
- package/types/src/commands/instance/instance.d.ts.map +0 -1
- package/types/src/commands/jobs/jobs.d.ts +0 -28
- package/types/src/commands/jobs/jobs.d.ts.map +0 -1
- package/types/src/commands/lint/lint.d.ts +0 -62
- package/types/src/commands/lint/lint.d.ts.map +0 -1
- package/types/src/commands/queues/queues.d.ts +0 -14
- package/types/src/commands/queues/queues.d.ts.map +0 -1
- package/types/src/commands/resource/resource.d.ts +0 -18
- package/types/src/commands/resource/resource.d.ts.map +0 -1
- package/types/src/commands/resource-type/resource-type.d.ts +0 -18
- package/types/src/commands/resource-type/resource-type.d.ts.map +0 -1
- package/types/src/commands/schedule/schedule.d.ts +0 -21
- package/types/src/commands/schedule/schedule.d.ts.map +0 -1
- package/types/src/commands/script/script.d.ts +0 -72
- package/types/src/commands/script/script.d.ts.map +0 -1
- package/types/src/commands/sync/global.d.ts +0 -3
- package/types/src/commands/sync/global.d.ts.map +0 -1
- package/types/src/commands/sync/pull.d.ts +0 -12
- package/types/src/commands/sync/pull.d.ts.map +0 -1
- package/types/src/commands/sync/sync.d.ts +0 -164
- package/types/src/commands/sync/sync.d.ts.map +0 -1
- package/types/src/commands/trigger/trigger.d.ts +0 -27
- package/types/src/commands/trigger/trigger.d.ts.map +0 -1
- package/types/src/commands/user/user.d.ts +0 -34
- package/types/src/commands/user/user.d.ts.map +0 -1
- package/types/src/commands/variable/variable.d.ts +0 -23
- package/types/src/commands/variable/variable.d.ts.map +0 -1
- package/types/src/commands/worker-groups/worker-groups.d.ts +0 -23
- package/types/src/commands/worker-groups/worker-groups.d.ts.map +0 -1
- package/types/src/commands/workers/workers.d.ts +0 -14
- package/types/src/commands/workers/workers.d.ts.map +0 -1
- package/types/src/commands/workspace/fork.d.ts +0 -9
- package/types/src/commands/workspace/fork.d.ts.map +0 -1
- package/types/src/commands/workspace/workspace.d.ts +0 -32
- package/types/src/commands/workspace/workspace.d.ts.map +0 -1
- package/types/src/core/auth.d.ts +0 -8
- package/types/src/core/auth.d.ts.map +0 -1
- package/types/src/core/branch-profiles.d.ts +0 -12
- package/types/src/core/branch-profiles.d.ts.map +0 -1
- package/types/src/core/conf.d.ts +0 -116
- package/types/src/core/conf.d.ts.map +0 -1
- package/types/src/core/constants.d.ts +0 -6
- package/types/src/core/constants.d.ts.map +0 -1
- package/types/src/core/context.d.ts +0 -14
- package/types/src/core/context.d.ts.map +0 -1
- package/types/src/core/login.d.ts +0 -5
- package/types/src/core/login.d.ts.map +0 -1
- package/types/src/core/settings.d.ts +0 -46
- package/types/src/core/settings.d.ts.map +0 -1
- package/types/src/core/specific_items.d.ts +0 -45
- package/types/src/core/specific_items.d.ts.map +0 -1
- package/types/src/core/store.d.ts +0 -2
- package/types/src/core/store.d.ts.map +0 -1
- package/types/src/guidance/core.d.ts +0 -13
- package/types/src/guidance/core.d.ts.map +0 -1
- package/types/src/guidance/skills.d.ts +0 -15
- package/types/src/guidance/skills.d.ts.map +0 -1
- package/types/src/main.d.ts +0 -76
- package/types/src/main.d.ts.map +0 -1
- package/types/src/types.d.ts +0 -58
- package/types/src/types.d.ts.map +0 -1
- package/types/src/utils/codebase.d.ts +0 -6
- package/types/src/utils/codebase.d.ts.map +0 -1
- package/types/src/utils/git.d.ts +0 -5
- package/types/src/utils/git.d.ts.map +0 -1
- package/types/src/utils/local_encryption.d.ts +0 -3
- package/types/src/utils/local_encryption.d.ts.map +0 -1
- package/types/src/utils/metadata.d.ts +0 -84
- package/types/src/utils/metadata.d.ts.map +0 -1
- package/types/src/utils/resource_folders.d.ts +0 -169
- package/types/src/utils/resource_folders.d.ts.map +0 -1
- package/types/src/utils/resource_types.d.ts +0 -3
- package/types/src/utils/resource_types.d.ts.map +0 -1
- package/types/src/utils/script_common.d.ts +0 -22
- package/types/src/utils/script_common.d.ts.map +0 -1
- package/types/src/utils/upgrade.d.ts +0 -21
- package/types/src/utils/upgrade.d.ts.map +0 -1
- package/types/src/utils/utils.d.ts +0 -34
- package/types/src/utils/utils.d.ts.map +0 -1
- package/types/wasm/csharp/windmill_parser_wasm.d.ts +0 -7
- package/types/wasm/csharp/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/go/windmill_parser_wasm.d.ts +0 -7
- package/types/wasm/go/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/java/windmill_parser_wasm.d.ts +0 -7
- package/types/wasm/java/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/nu/windmill_parser_wasm.d.ts +0 -7
- package/types/wasm/nu/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/php/windmill_parser_wasm.d.ts +0 -8
- package/types/wasm/php/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/py/windmill_parser_wasm.d.ts +0 -13
- package/types/wasm/py/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/regex/windmill_parser_wasm.d.ts +0 -62
- package/types/wasm/regex/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/ruby/windmill_parser_wasm.d.ts +0 -7
- package/types/wasm/ruby/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/rust/windmill_parser_wasm.d.ts +0 -8
- package/types/wasm/rust/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/ts/windmill_parser_wasm.d.ts +0 -23
- package/types/wasm/ts/windmill_parser_wasm.d.ts.map +0 -1
- package/types/wasm/yaml/windmill_parser_wasm.d.ts +0 -7
- package/types/wasm/yaml/windmill_parser_wasm.d.ts.map +0 -1
- package/types/windmill-utils-internal/src/config/config.d.ts +0 -12
- package/types/windmill-utils-internal/src/config/config.d.ts.map +0 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +0 -11952
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +0 -1
- package/types/windmill-utils-internal/src/inline-scripts/extractor.d.ts +0 -44
- package/types/windmill-utils-internal/src/inline-scripts/extractor.d.ts.map +0 -1
- package/types/windmill-utils-internal/src/inline-scripts/replacer.d.ts +0 -17
- package/types/windmill-utils-internal/src/inline-scripts/replacer.d.ts.map +0 -1
- package/types/windmill-utils-internal/src/parse/parse-schema.d.ts +0 -99
- package/types/windmill-utils-internal/src/parse/parse-schema.d.ts.map +0 -1
- package/types/windmill-utils-internal/src/path-utils/path-assigner.d.ts +0 -59
- package/types/windmill-utils-internal/src/path-utils/path-assigner.d.ts.map +0 -1
|
@@ -1,2309 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
|
-
import { requireLogin } from "../../core/auth.js";
|
|
3
|
-
import { resolveWorkspace } from "../../core/context.js";
|
|
4
|
-
import { colors, Command, Confirm, ensureDir, log, minimatch, path, SEP, yamlParseContent, yamlStringify, } from "../../../deps.js";
|
|
5
|
-
import * as wmill from "../../../gen/services.gen.js";
|
|
6
|
-
import { getTypeStrFromPath, parseFromPath, pushObj, showConflict, showDiff, extractNativeTriggerInfo, } from "../../types.js";
|
|
7
|
-
import { downloadZip } from "./pull.js";
|
|
8
|
-
import { runLint, printReport, checkMissingLocks } from "../lint/lint.js";
|
|
9
|
-
import { exts, findContentFile, findResourceFile, handleScriptMetadata, removeExtensionToPath, } from "../script/script.js";
|
|
10
|
-
import { handleFile } from "../script/script.js";
|
|
11
|
-
import { deepEqual, fetchRemoteVersion, isFileResource, isRawAppFile, isWorkspaceDependencies, } from "../../utils/utils.js";
|
|
12
|
-
import { getEffectiveSettings, mergeConfigWithConfigFile, validateBranchConfiguration, } from "../../core/conf.js";
|
|
13
|
-
import { fromBranchSpecificPath, getBranchSpecificPath, getSpecificItemsForCurrentBranch, isBranchSpecificFile, isCurrentBranchFile, isItemTypeConfigured, isSpecificItem, } from "../../core/specific_items.js";
|
|
14
|
-
import { getCurrentGitBranch, isGitRepository } from "../../utils/git.js";
|
|
15
|
-
import { removePathPrefix } from "../../types.js";
|
|
16
|
-
import { listSyncCodebases } from "../../utils/codebase.js";
|
|
17
|
-
import { generateScriptMetadataInternal, getRawWorkspaceDependencies, readLockfile, workspaceDependenciesPathToLanguageAndFilename, } from "../../utils/metadata.js";
|
|
18
|
-
import { pushResource } from "../resource/resource.js";
|
|
19
|
-
import { newPathAssigner, newRawAppPathAssigner, } from "../../../windmill-utils-internal/src/path-utils/path-assigner.js";
|
|
20
|
-
import { extractInlineScripts as extractInlineScriptsForFlows } from "../../../windmill-utils-internal/src/inline-scripts/extractor.js";
|
|
21
|
-
import { generateFlowLockInternal } from "../flow/flow_metadata.js";
|
|
22
|
-
import { isExecutionModeAnonymous } from "../app/app.js";
|
|
23
|
-
import { APP_BACKEND_FOLDER, generateAppLocksInternal, } from "../app/app_metadata.js";
|
|
24
|
-
import { isFlowPath, isAppPath, isRawAppPath, extractFolderPath, extractResourceName, isFlowMetadataFile, isAppMetadataFile, isRawAppMetadataFile, isRawAppFolderMetadataFile, getDeleteSuffix, transformJsonPathToDir, getFolderSuffix, getNonDottedPaths, } from "../../utils/resource_folders.js";
|
|
25
|
-
// Merge CLI options with effective settings, preserving CLI flags as overrides
|
|
26
|
-
function mergeCliWithEffectiveOptions(cliOpts, effectiveOpts) {
|
|
27
|
-
// overlay CLI options on top (undefined cliOpts won't override effectiveOpts)
|
|
28
|
-
return Object.assign({}, effectiveOpts, cliOpts);
|
|
29
|
-
}
|
|
30
|
-
// Resolve effective sync options using branch-based configuration
|
|
31
|
-
async function resolveEffectiveSyncOptions(workspace, localConfig, promotion, branchOverride) {
|
|
32
|
-
return await getEffectiveSettings(localConfig, promotion, false, false, branchOverride);
|
|
33
|
-
}
|
|
34
|
-
export function findCodebase(path, codebases) {
|
|
35
|
-
if (!path.endsWith(".ts")) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
for (const c of codebases) {
|
|
39
|
-
let included = false;
|
|
40
|
-
let excluded = false;
|
|
41
|
-
if (c.includes == undefined || c.includes == null) {
|
|
42
|
-
included = true;
|
|
43
|
-
}
|
|
44
|
-
if (typeof c.includes == "string") {
|
|
45
|
-
c.includes = [c.includes];
|
|
46
|
-
}
|
|
47
|
-
for (const r of c.includes ?? []) {
|
|
48
|
-
if (included) {
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
if (minimatch(path, r)) {
|
|
52
|
-
included = true;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
if (typeof c.excludes == "string") {
|
|
56
|
-
c.excludes = [c.excludes];
|
|
57
|
-
}
|
|
58
|
-
for (const r of c.excludes ?? []) {
|
|
59
|
-
if (minimatch(path, r)) {
|
|
60
|
-
excluded = true;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (included && !excluded) {
|
|
64
|
-
return c;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
async function addCodebaseDigestIfRelevant(path, content, codebases, ignoreCodebaseChanges) {
|
|
69
|
-
const isScript = path.endsWith(".script.yaml");
|
|
70
|
-
if (!isScript) {
|
|
71
|
-
return content;
|
|
72
|
-
}
|
|
73
|
-
let isTs = true;
|
|
74
|
-
const replacedPath = path.replace(".script.yaml", ".ts");
|
|
75
|
-
try {
|
|
76
|
-
await dntShim.Deno.stat(replacedPath);
|
|
77
|
-
}
|
|
78
|
-
catch {
|
|
79
|
-
isTs = false;
|
|
80
|
-
}
|
|
81
|
-
if (!isTs) {
|
|
82
|
-
return content;
|
|
83
|
-
}
|
|
84
|
-
if (isTs) {
|
|
85
|
-
const c = findCodebase(replacedPath, codebases);
|
|
86
|
-
if (c) {
|
|
87
|
-
let parsed;
|
|
88
|
-
try {
|
|
89
|
-
parsed = yamlParseContent(path, content);
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
log.error(`Failed to parse YAML content for codebase digest at path: ${path}`);
|
|
93
|
-
throw error;
|
|
94
|
-
}
|
|
95
|
-
if (parsed && typeof parsed == "object") {
|
|
96
|
-
if (ignoreCodebaseChanges) {
|
|
97
|
-
parsed["codebase"] = undefined;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
parsed["codebase"] = await c.getDigest();
|
|
101
|
-
}
|
|
102
|
-
parsed["lock"] = "";
|
|
103
|
-
return yamlStringify(parsed, yamlOptions);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
throw Error(`Expected local yaml ${path} to be an object, found: ${content} instead`);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return content;
|
|
111
|
-
}
|
|
112
|
-
export async function FSFSElement(p, codebases, ignoreCodebaseChanges) {
|
|
113
|
-
function _internal_element(localP, isDir, codebases) {
|
|
114
|
-
return {
|
|
115
|
-
isDirectory: isDir,
|
|
116
|
-
path: localP.substring(p.length + 1),
|
|
117
|
-
async *getChildren() {
|
|
118
|
-
if (!isDir)
|
|
119
|
-
return [];
|
|
120
|
-
try {
|
|
121
|
-
for await (const e of dntShim.Deno.readDir(localP)) {
|
|
122
|
-
yield _internal_element(path.join(localP, e.name), e.isDirectory, codebases);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
catch (e) {
|
|
126
|
-
log.warn(`Error reading dir: ${localP}, ${e}`);
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
// async getContentBytes(): Promise<Uint8Array> {
|
|
130
|
-
// return await Deno.readFile(localP);
|
|
131
|
-
// },
|
|
132
|
-
async getContentText() {
|
|
133
|
-
const content = await dntShim.Deno.readTextFile(localP);
|
|
134
|
-
const itemPath = localP.substring(p.length + 1);
|
|
135
|
-
const r = await addCodebaseDigestIfRelevant(itemPath, content, codebases, ignoreCodebaseChanges);
|
|
136
|
-
return r;
|
|
137
|
-
},
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
return _internal_element(p, (await dntShim.Deno.stat(p)).isDirectory, codebases);
|
|
141
|
-
}
|
|
142
|
-
function prioritizeName(name) {
|
|
143
|
-
if (name == "version")
|
|
144
|
-
return "aaa";
|
|
145
|
-
if (name == "id")
|
|
146
|
-
return "aa";
|
|
147
|
-
if (name == "type")
|
|
148
|
-
return "ab";
|
|
149
|
-
if (name == "summary")
|
|
150
|
-
return "ad";
|
|
151
|
-
if (name == "name")
|
|
152
|
-
return "ae";
|
|
153
|
-
if (name == "display_name")
|
|
154
|
-
return "af";
|
|
155
|
-
if (name == "description")
|
|
156
|
-
return "ag";
|
|
157
|
-
if (name == "value")
|
|
158
|
-
return "ah";
|
|
159
|
-
if (name == "content")
|
|
160
|
-
return "ai";
|
|
161
|
-
if (name == "modules")
|
|
162
|
-
return "aj";
|
|
163
|
-
if (name == "failure_module")
|
|
164
|
-
return "ak";
|
|
165
|
-
if (name == "input_transforms")
|
|
166
|
-
return "al";
|
|
167
|
-
if (name == "lock")
|
|
168
|
-
return "az";
|
|
169
|
-
if (name == "locks")
|
|
170
|
-
return "azz";
|
|
171
|
-
return name;
|
|
172
|
-
}
|
|
173
|
-
export const yamlOptions = {
|
|
174
|
-
sortKeys: (a, b) => {
|
|
175
|
-
return prioritizeName(a).localeCompare(prioritizeName(b));
|
|
176
|
-
},
|
|
177
|
-
noCompatMode: true,
|
|
178
|
-
noRefs: true,
|
|
179
|
-
skipInvalid: true,
|
|
180
|
-
};
|
|
181
|
-
function extractFields(fields) {
|
|
182
|
-
Object.entries(fields).forEach(([k, v]) => {
|
|
183
|
-
if (typeof v == "object") {
|
|
184
|
-
if (v.type == "static") {
|
|
185
|
-
fields[k] = { value: v.value };
|
|
186
|
-
}
|
|
187
|
-
else if (v.type == "javascript") {
|
|
188
|
-
fields[k] = { expr: v.expr, allowUserResources: v.allowUserResources };
|
|
189
|
-
}
|
|
190
|
-
else if (v.type == "user") {
|
|
191
|
-
fields[k] = undefined;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
export function extractFieldsForRawApps(runnables) {
|
|
197
|
-
Object.values(runnables).forEach((v) => {
|
|
198
|
-
if (typeof v == "object") {
|
|
199
|
-
if (v.fields !== undefined) {
|
|
200
|
-
extractFields(v.fields);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Generates AGENTS.md - app-specific configuration for AI agents working with raw apps.
|
|
207
|
-
* References the raw-app skill for complete documentation and includes instance-specific
|
|
208
|
-
* data configuration (datatable, schema, whitelisted tables).
|
|
209
|
-
*/
|
|
210
|
-
export function generateAgentsDocumentation(data) {
|
|
211
|
-
const tables = data?.tables ?? [];
|
|
212
|
-
const defaultDatatable = data?.datatable;
|
|
213
|
-
const defaultSchema = data?.schema;
|
|
214
|
-
return `# AI Agent Instructions
|
|
215
|
-
|
|
216
|
-
For complete raw app documentation (app structure, backend runnables, datatables, SQL migrations), use the \`raw-app\` skill.
|
|
217
|
-
|
|
218
|
-
This file contains **app-specific configuration** for this raw app instance.
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
## Data Configuration
|
|
223
|
-
|
|
224
|
-
${defaultDatatable
|
|
225
|
-
? `**Default Datatable:** \`${defaultDatatable}\`${defaultSchema ? ` | **Default Schema:** \`${defaultSchema}\`` : ''}`
|
|
226
|
-
: '**No default datatable configured.** Set \`data.datatable\` in \`raw_app.yaml\` to enable database access.'}
|
|
227
|
-
|
|
228
|
-
### Whitelisted Tables
|
|
229
|
-
|
|
230
|
-
${tables.length > 0
|
|
231
|
-
? `These tables are accessible to this app:\n\n${tables.map(t => `- \`${t}\``).join('\n')}`
|
|
232
|
-
: `**No tables whitelisted.** Add tables to \`data.tables\` in \`raw_app.yaml\`.`}
|
|
233
|
-
|
|
234
|
-
### Adding a Table
|
|
235
|
-
|
|
236
|
-
Edit \`raw_app.yaml\`:
|
|
237
|
-
|
|
238
|
-
\`\`\`yaml
|
|
239
|
-
data:
|
|
240
|
-
datatable: ${defaultDatatable || 'main'}
|
|
241
|
-
${defaultSchema ? `schema: ${defaultSchema}\n ` : ''}tables:
|
|
242
|
-
${tables.length > 0 ? tables.map(t => ` - ${t}`).join('\n') : ' # Add tables here'}
|
|
243
|
-
- ${defaultDatatable || 'main'}/${defaultSchema ? defaultSchema + ':' : ''}new_table # ← Add like this
|
|
244
|
-
\`\`\`
|
|
245
|
-
|
|
246
|
-
**Table reference formats:**
|
|
247
|
-
- \`<datatable>/<table>\` - Table in public schema
|
|
248
|
-
- \`<datatable>/<schema>:<table>\` - Table in specific schema
|
|
249
|
-
|
|
250
|
-
---
|
|
251
|
-
|
|
252
|
-
## Quick Reference
|
|
253
|
-
|
|
254
|
-
**Backend runnable:** Add \`backend/<name>.ts\` (or .py, etc.), then run \`wmill app generate-locks\`
|
|
255
|
-
|
|
256
|
-
**Call from frontend:**
|
|
257
|
-
\`\`\`typescript
|
|
258
|
-
import { backend } from './wmill';
|
|
259
|
-
const result = await backend.<name>({ arg: 'value' });
|
|
260
|
-
\`\`\`
|
|
261
|
-
|
|
262
|
-
**Query datatable (TypeScript):**
|
|
263
|
-
\`\`\`typescript
|
|
264
|
-
const sql = wmill.datatable();
|
|
265
|
-
const rows = await sql\`SELECT * FROM table WHERE id = \${id}\`.fetch();
|
|
266
|
-
\`\`\`
|
|
267
|
-
|
|
268
|
-
**SQL migrations:** Add \`.sql\` files to \`sql_to_apply/\`, run \`wmill app dev\`, then whitelist tables
|
|
269
|
-
|
|
270
|
-
---
|
|
271
|
-
*Run \`wmill app generate-agents\` to refresh. See \`.claude/skills/raw-app\` skill for full documentation.*
|
|
272
|
-
`;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Generates a simple DATATABLES.md with just the current configuration summary.
|
|
276
|
-
* The detailed schema information is generated by generate_datatables.ts command.
|
|
277
|
-
*/
|
|
278
|
-
export function generateDatatablesDocumentation(data) {
|
|
279
|
-
const tables = data?.tables ?? [];
|
|
280
|
-
const defaultDatatable = data?.datatable;
|
|
281
|
-
const defaultSchema = data?.schema;
|
|
282
|
-
return `# Data Tables
|
|
283
|
-
|
|
284
|
-
This file contains the database schema information for this app.
|
|
285
|
-
Run \`wmill app generate-agents\` to refresh with current workspace schemas.
|
|
286
|
-
|
|
287
|
-
**For full instructions, see \`AGENTS.md\`.**
|
|
288
|
-
|
|
289
|
-
## Current Configuration
|
|
290
|
-
|
|
291
|
-
${defaultDatatable
|
|
292
|
-
? `**Default Datatable:** \`${defaultDatatable}\`${defaultSchema ? ` | **Default Schema:** \`${defaultSchema}\`` : ''}`
|
|
293
|
-
: '**No default datatable configured.**'}
|
|
294
|
-
|
|
295
|
-
## Whitelisted Tables
|
|
296
|
-
|
|
297
|
-
${tables.length > 0
|
|
298
|
-
? `${tables.map(t => `- \`${t}\``).join('\n')}`
|
|
299
|
-
: `*No tables whitelisted. Add tables to \`data.tables\` in \`raw_app.yaml\`.*`}
|
|
300
|
-
|
|
301
|
-
---
|
|
302
|
-
|
|
303
|
-
## Schema Information
|
|
304
|
-
|
|
305
|
-
Run \`wmill app generate-agents\` to populate this section with detailed schema information
|
|
306
|
-
from the workspace datatables.
|
|
307
|
-
|
|
308
|
-
---
|
|
309
|
-
*Auto-generated. Run \`wmill app generate-agents\` to refresh schemas.*
|
|
310
|
-
`;
|
|
311
|
-
}
|
|
312
|
-
export function extractInlineScriptsForApps(key, rec, pathAssigner, toId, removeSchema) {
|
|
313
|
-
if (!rec) {
|
|
314
|
-
return [];
|
|
315
|
-
}
|
|
316
|
-
if (typeof rec == "object") {
|
|
317
|
-
return Object.entries(rec).flatMap(([k, v]) => {
|
|
318
|
-
if (k == "inlineScript" && typeof v == "object") {
|
|
319
|
-
rec["type"] = undefined;
|
|
320
|
-
const o = v;
|
|
321
|
-
const name = toId(key ?? "", rec);
|
|
322
|
-
const [basePathO, ext] = pathAssigner.assignPath(name, o["language"]);
|
|
323
|
-
const basePath = basePathO.replaceAll(SEP, "/");
|
|
324
|
-
const r = [];
|
|
325
|
-
if (o["content"]) {
|
|
326
|
-
const content = o["content"];
|
|
327
|
-
o["content"] = "!inline " + basePath.replaceAll(SEP, "/") + ext;
|
|
328
|
-
r.push({
|
|
329
|
-
path: basePath + ext,
|
|
330
|
-
content: content,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
if (o["lock"] && o["lock"] != "") {
|
|
334
|
-
const lock = o["lock"];
|
|
335
|
-
o["lock"] = "!inline " + basePath.replaceAll(SEP, "/") + "lock";
|
|
336
|
-
r.push({
|
|
337
|
-
path: basePath + "lock",
|
|
338
|
-
content: lock,
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
if (removeSchema) {
|
|
342
|
-
o.schema = undefined;
|
|
343
|
-
}
|
|
344
|
-
return r;
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
return extractInlineScriptsForApps(k, v, pathAssigner, toId, removeSchema);
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
return [];
|
|
352
|
-
}
|
|
353
|
-
function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ignoreCodebaseChanges) {
|
|
354
|
-
async function _internal_file(p, f) {
|
|
355
|
-
const kind = isFlowMetadataFile(p)
|
|
356
|
-
? "flow"
|
|
357
|
-
: isAppMetadataFile(p)
|
|
358
|
-
? "app"
|
|
359
|
-
: isRawAppMetadataFile(p)
|
|
360
|
-
? "raw_app"
|
|
361
|
-
: p.endsWith(".script.json")
|
|
362
|
-
? "script"
|
|
363
|
-
: p.endsWith(".resource.json")
|
|
364
|
-
? "resource"
|
|
365
|
-
: p.startsWith("dependencies/")
|
|
366
|
-
? "dependencies"
|
|
367
|
-
: "other";
|
|
368
|
-
const isJson = p.endsWith(".json");
|
|
369
|
-
function transformPath() {
|
|
370
|
-
if (kind == "flow") {
|
|
371
|
-
return transformJsonPathToDir(p, "flow");
|
|
372
|
-
}
|
|
373
|
-
else if (kind == "app") {
|
|
374
|
-
return transformJsonPathToDir(p, "app");
|
|
375
|
-
}
|
|
376
|
-
else if (kind == "raw_app") {
|
|
377
|
-
return transformJsonPathToDir(p, "raw_app");
|
|
378
|
-
}
|
|
379
|
-
else if (kind == "dependencies") {
|
|
380
|
-
return p;
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
return useYaml && isJson ? p.replaceAll(".json", ".yaml") : p;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
const finalPath = transformPath();
|
|
387
|
-
const r = [
|
|
388
|
-
{
|
|
389
|
-
isDirectory: kind == "flow" || kind == "app" || kind == "raw_app",
|
|
390
|
-
path: finalPath,
|
|
391
|
-
async *getChildren() {
|
|
392
|
-
if (kind == "flow") {
|
|
393
|
-
let flow;
|
|
394
|
-
try {
|
|
395
|
-
flow = JSON.parse(await f.async("text"));
|
|
396
|
-
}
|
|
397
|
-
catch (error) {
|
|
398
|
-
log.error(`Failed to parse flow.yaml at path: ${p}`);
|
|
399
|
-
throw error;
|
|
400
|
-
}
|
|
401
|
-
let inlineScripts;
|
|
402
|
-
try {
|
|
403
|
-
inlineScripts = extractInlineScriptsForFlows(flow.value.modules, {}, SEP, defaultTs, undefined, // pathAssigner - let it create one
|
|
404
|
-
{ skipInlineScriptSuffix: getNonDottedPaths() });
|
|
405
|
-
}
|
|
406
|
-
catch (error) {
|
|
407
|
-
log.error(`Failed to extract inline scripts for flow at path: ${p}`);
|
|
408
|
-
throw error;
|
|
409
|
-
}
|
|
410
|
-
for (const s of inlineScripts) {
|
|
411
|
-
yield {
|
|
412
|
-
isDirectory: false,
|
|
413
|
-
path: path.join(finalPath, s.path),
|
|
414
|
-
async *getChildren() { },
|
|
415
|
-
// deno-lint-ignore require-await
|
|
416
|
-
async getContentText() {
|
|
417
|
-
return s.content;
|
|
418
|
-
},
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
yield {
|
|
422
|
-
isDirectory: false,
|
|
423
|
-
path: path.join(finalPath, "flow.yaml"),
|
|
424
|
-
async *getChildren() { },
|
|
425
|
-
// deno-lint-ignore require-await
|
|
426
|
-
async getContentText() {
|
|
427
|
-
return yamlStringify(flow, yamlOptions);
|
|
428
|
-
},
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
else if (kind == "app") {
|
|
432
|
-
let app;
|
|
433
|
-
try {
|
|
434
|
-
app = JSON.parse(await f.async("text"));
|
|
435
|
-
}
|
|
436
|
-
catch (error) {
|
|
437
|
-
log.error(`Failed to parse app.yaml at path: ${p}`);
|
|
438
|
-
throw error;
|
|
439
|
-
}
|
|
440
|
-
let inlineScripts;
|
|
441
|
-
try {
|
|
442
|
-
inlineScripts = extractInlineScriptsForApps(undefined, app?.["value"], newPathAssigner(defaultTs, { skipInlineScriptSuffix: getNonDottedPaths() }), (_, val) => val["name"], false);
|
|
443
|
-
}
|
|
444
|
-
catch (error) {
|
|
445
|
-
log.error(`Failed to extract inline scripts for app at path: ${p}`);
|
|
446
|
-
throw error;
|
|
447
|
-
}
|
|
448
|
-
for (const s of inlineScripts) {
|
|
449
|
-
yield {
|
|
450
|
-
isDirectory: false,
|
|
451
|
-
path: path.join(finalPath, s.path),
|
|
452
|
-
async *getChildren() { },
|
|
453
|
-
// deno-lint-ignore require-await
|
|
454
|
-
async getContentText() {
|
|
455
|
-
return s.content;
|
|
456
|
-
},
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
if (isExecutionModeAnonymous(app)) {
|
|
460
|
-
app.public = true;
|
|
461
|
-
}
|
|
462
|
-
app.policy = undefined;
|
|
463
|
-
yield {
|
|
464
|
-
isDirectory: false,
|
|
465
|
-
path: path.join(finalPath, "app.yaml"),
|
|
466
|
-
async *getChildren() { },
|
|
467
|
-
// deno-lint-ignore require-await
|
|
468
|
-
async getContentText() {
|
|
469
|
-
return yamlStringify(app, yamlOptions);
|
|
470
|
-
},
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
else if (kind == "raw_app") {
|
|
474
|
-
let rawApp;
|
|
475
|
-
try {
|
|
476
|
-
rawApp = JSON.parse(await f.async("text"));
|
|
477
|
-
}
|
|
478
|
-
catch (error) {
|
|
479
|
-
log.error(`Failed to parse app.yaml at path: ${p}`);
|
|
480
|
-
throw error;
|
|
481
|
-
}
|
|
482
|
-
if (rawApp?.["policy"]?.["execution_mode"] == "anonymous") {
|
|
483
|
-
rawApp.public = true;
|
|
484
|
-
}
|
|
485
|
-
// console.log("rawApp", rawApp);
|
|
486
|
-
rawApp.policy = undefined;
|
|
487
|
-
// custom_path is derived from the file path, don't store it
|
|
488
|
-
delete rawApp?.["custom_path"];
|
|
489
|
-
let inlineScripts;
|
|
490
|
-
const value = rawApp?.["value"];
|
|
491
|
-
const runnables = value?.["runnables"] ?? {};
|
|
492
|
-
// console.log("FOOB", value?.["runnables"])
|
|
493
|
-
extractFieldsForRawApps(runnables);
|
|
494
|
-
try {
|
|
495
|
-
inlineScripts = extractInlineScriptsForApps(undefined, value, newRawAppPathAssigner(defaultTs), (key, val_) => key, true);
|
|
496
|
-
}
|
|
497
|
-
catch (error) {
|
|
498
|
-
log.error(`Failed to extract inline scripts for raw app at path: ${p}`);
|
|
499
|
-
throw error;
|
|
500
|
-
}
|
|
501
|
-
try {
|
|
502
|
-
for (const [filePath, content] of Object.entries(value?.["files"] ?? [])) {
|
|
503
|
-
// Skip generated/dev-only files and folders
|
|
504
|
-
if (filePath.startsWith("/sql_to_apply/") ||
|
|
505
|
-
filePath === "/wmill.d.ts" ||
|
|
506
|
-
filePath === "/AGENTS.md" ||
|
|
507
|
-
filePath === "/DATATABLES.md") {
|
|
508
|
-
continue;
|
|
509
|
-
}
|
|
510
|
-
yield {
|
|
511
|
-
isDirectory: false,
|
|
512
|
-
path: path.join(finalPath, filePath.substring(1)),
|
|
513
|
-
async *getChildren() { },
|
|
514
|
-
// deno-lint-ignore require-await
|
|
515
|
-
async getContentText() {
|
|
516
|
-
if (typeof content !== "string") {
|
|
517
|
-
throw new Error(`Content of raw app file ${filePath} is not a string`);
|
|
518
|
-
}
|
|
519
|
-
return content;
|
|
520
|
-
},
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
catch (error) {
|
|
525
|
-
log.error(`Failed to extract files for raw app at path: ${p}`);
|
|
526
|
-
throw error;
|
|
527
|
-
}
|
|
528
|
-
// Yield inline script content and lock files
|
|
529
|
-
for (const s of inlineScripts) {
|
|
530
|
-
yield {
|
|
531
|
-
isDirectory: false,
|
|
532
|
-
path: path.join(finalPath, APP_BACKEND_FOLDER, s.path),
|
|
533
|
-
async *getChildren() { },
|
|
534
|
-
// deno-lint-ignore require-await
|
|
535
|
-
async getContentText() {
|
|
536
|
-
return s.content;
|
|
537
|
-
},
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
// Helper to simplify fields for YAML output
|
|
541
|
-
// { type: 'static', value: X } -> { value: X }
|
|
542
|
-
// { type: 'ctx', ctx: X } -> { ctx: X }
|
|
543
|
-
function simplifyFields(fields) {
|
|
544
|
-
if (!fields)
|
|
545
|
-
return undefined;
|
|
546
|
-
const simplified = {};
|
|
547
|
-
for (const [k, v] of Object.entries(fields)) {
|
|
548
|
-
if (typeof v === "object" && v !== null) {
|
|
549
|
-
if (v.type === "static" && v.value !== undefined) {
|
|
550
|
-
simplified[k] = { value: v.value };
|
|
551
|
-
}
|
|
552
|
-
else if (v.type === "ctx" && v.ctx !== undefined) {
|
|
553
|
-
simplified[k] = { ctx: v.ctx };
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
// Keep other field types as-is
|
|
557
|
-
simplified[k] = v;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
else {
|
|
561
|
-
simplified[k] = v;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
return simplified;
|
|
565
|
-
}
|
|
566
|
-
// Yield each runnable as a separate YAML file in the backend folder
|
|
567
|
-
// For inline scripts, simplify the YAML - inlineScript is not needed since
|
|
568
|
-
// content/lock/language can be derived from sibling files
|
|
569
|
-
for (const [runnableId, runnable] of Object.entries(runnables)) {
|
|
570
|
-
const runnableObj = runnable;
|
|
571
|
-
let simplifiedRunnable;
|
|
572
|
-
if (runnableObj.inlineScript) {
|
|
573
|
-
// For inline scripts, remove inlineScript and just keep type: 'inline'
|
|
574
|
-
// plus any other metadata (name, fields, etc.)
|
|
575
|
-
simplifiedRunnable = { type: "inline" };
|
|
576
|
-
// Copy over any other fields that aren't inlineScript or type
|
|
577
|
-
for (const [key, value] of Object.entries(runnableObj)) {
|
|
578
|
-
if (key !== "inlineScript" && key !== "type") {
|
|
579
|
-
simplifiedRunnable[key] = value;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
else if (runnableObj.type === "path" && runnableObj.runType) {
|
|
584
|
-
// For path-based runnables, convert from API format to file format
|
|
585
|
-
// { type: "path", runType: "script" } -> { type: "script" }
|
|
586
|
-
// Also remove schema field
|
|
587
|
-
const { type: _type, runType, schema: _schema, ...rest } = runnableObj;
|
|
588
|
-
simplifiedRunnable = {
|
|
589
|
-
type: runType,
|
|
590
|
-
...rest,
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
else {
|
|
594
|
-
// For other runnables, keep as-is
|
|
595
|
-
simplifiedRunnable = runnableObj;
|
|
596
|
-
}
|
|
597
|
-
// Simplify fields for cleaner YAML output
|
|
598
|
-
if (simplifiedRunnable.fields) {
|
|
599
|
-
simplifiedRunnable.fields = simplifyFields(simplifiedRunnable.fields);
|
|
600
|
-
}
|
|
601
|
-
yield {
|
|
602
|
-
isDirectory: false,
|
|
603
|
-
path: path.join(finalPath, APP_BACKEND_FOLDER, `${runnableId}.yaml`),
|
|
604
|
-
async *getChildren() { },
|
|
605
|
-
// deno-lint-ignore require-await
|
|
606
|
-
async getContentText() {
|
|
607
|
-
return yamlStringify(simplifiedRunnable, yamlOptions);
|
|
608
|
-
},
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
// Extract data field from value before deleting it
|
|
612
|
-
const data = value?.["data"];
|
|
613
|
-
if (data) {
|
|
614
|
-
rawApp.data = data;
|
|
615
|
-
}
|
|
616
|
-
// Remove runnables and value from raw_app.yaml - they are now in separate files
|
|
617
|
-
delete rawApp?.["value"];
|
|
618
|
-
// Don't include runnables in raw_app.yaml anymore
|
|
619
|
-
yield {
|
|
620
|
-
isDirectory: false,
|
|
621
|
-
path: path.join(finalPath, "raw_app.yaml"),
|
|
622
|
-
async *getChildren() { },
|
|
623
|
-
// deno-lint-ignore require-await
|
|
624
|
-
async getContentText() {
|
|
625
|
-
return yamlStringify(rawApp, yamlOptions);
|
|
626
|
-
},
|
|
627
|
-
};
|
|
628
|
-
// Yield DATATABLES.md documentation file for AI agents
|
|
629
|
-
yield {
|
|
630
|
-
isDirectory: false,
|
|
631
|
-
path: path.join(finalPath, "DATATABLES.md"),
|
|
632
|
-
async *getChildren() { },
|
|
633
|
-
// deno-lint-ignore require-await
|
|
634
|
-
async getContentText() {
|
|
635
|
-
return generateDatatablesDocumentation(data);
|
|
636
|
-
},
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
async getContentText() {
|
|
641
|
-
const content = await f.async("text");
|
|
642
|
-
if (kind == "script") {
|
|
643
|
-
let parsed;
|
|
644
|
-
try {
|
|
645
|
-
parsed = JSON.parse(content);
|
|
646
|
-
}
|
|
647
|
-
catch (error) {
|
|
648
|
-
log.error(`Failed to parse script.yaml at path: ${p}`);
|
|
649
|
-
throw error;
|
|
650
|
-
}
|
|
651
|
-
if (parsed["lock"] &&
|
|
652
|
-
parsed["lock"] != "" &&
|
|
653
|
-
parsed["codebase"] == undefined) {
|
|
654
|
-
parsed["lock"] =
|
|
655
|
-
"!inline " +
|
|
656
|
-
removeSuffix(p.replaceAll(SEP, "/"), ".json") +
|
|
657
|
-
".lock";
|
|
658
|
-
}
|
|
659
|
-
else if (parsed["lock"] == "") {
|
|
660
|
-
parsed["lock"] = "";
|
|
661
|
-
}
|
|
662
|
-
else {
|
|
663
|
-
parsed["lock"] = undefined;
|
|
664
|
-
}
|
|
665
|
-
if (ignoreCodebaseChanges && parsed["codebase"]) {
|
|
666
|
-
parsed["codebase"] = undefined;
|
|
667
|
-
}
|
|
668
|
-
return useYaml
|
|
669
|
-
? yamlStringify(parsed, yamlOptions)
|
|
670
|
-
: JSON.stringify(parsed, null, 2);
|
|
671
|
-
}
|
|
672
|
-
if (kind == "resource") {
|
|
673
|
-
const content = await f.async("text");
|
|
674
|
-
let parsed;
|
|
675
|
-
try {
|
|
676
|
-
parsed = JSON.parse(content);
|
|
677
|
-
}
|
|
678
|
-
catch (error) {
|
|
679
|
-
log.error(`Failed to parse resource.yaml at path: ${p}`);
|
|
680
|
-
throw error;
|
|
681
|
-
}
|
|
682
|
-
const formatExtension = resourceTypeToFormatExtension[parsed["resource_type"]];
|
|
683
|
-
if (formatExtension) {
|
|
684
|
-
parsed["value"]["content"] =
|
|
685
|
-
"!inline " +
|
|
686
|
-
removeSuffix(p.replaceAll(SEP, "/"), ".resource.json") +
|
|
687
|
-
".resource.file." +
|
|
688
|
-
formatExtension;
|
|
689
|
-
}
|
|
690
|
-
return useYaml
|
|
691
|
-
? yamlStringify(parsed, yamlOptions)
|
|
692
|
-
: JSON.stringify(parsed, null, 2);
|
|
693
|
-
}
|
|
694
|
-
return useYaml && isJson && kind != "dependencies"
|
|
695
|
-
? (() => {
|
|
696
|
-
try {
|
|
697
|
-
return yamlStringify(JSON.parse(content), yamlOptions);
|
|
698
|
-
}
|
|
699
|
-
catch (error) {
|
|
700
|
-
log.error(`Failed to parse JSON content at path: ${p}`);
|
|
701
|
-
throw error;
|
|
702
|
-
}
|
|
703
|
-
})()
|
|
704
|
-
: content;
|
|
705
|
-
},
|
|
706
|
-
},
|
|
707
|
-
];
|
|
708
|
-
if (kind == "script") {
|
|
709
|
-
const content = await f.async("text");
|
|
710
|
-
let parsed;
|
|
711
|
-
try {
|
|
712
|
-
parsed = JSON.parse(content);
|
|
713
|
-
}
|
|
714
|
-
catch (error) {
|
|
715
|
-
log.error(`Failed to parse script lock content at path: ${p}`);
|
|
716
|
-
throw error;
|
|
717
|
-
}
|
|
718
|
-
const lock = parsed["lock"];
|
|
719
|
-
if (lock && lock != "") {
|
|
720
|
-
r.push({
|
|
721
|
-
isDirectory: false,
|
|
722
|
-
path: removeSuffix(finalPath, ".json") + ".lock",
|
|
723
|
-
async *getChildren() { },
|
|
724
|
-
// deno-lint-ignore require-await
|
|
725
|
-
async getContentText() {
|
|
726
|
-
return lock;
|
|
727
|
-
},
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
if (kind == "resource") {
|
|
732
|
-
const content = await f.async("text");
|
|
733
|
-
let parsed;
|
|
734
|
-
try {
|
|
735
|
-
parsed = JSON.parse(content);
|
|
736
|
-
}
|
|
737
|
-
catch (error) {
|
|
738
|
-
log.error(`Failed to parse resource file content at path: ${p}`);
|
|
739
|
-
throw error;
|
|
740
|
-
}
|
|
741
|
-
const formatExtension = resourceTypeToFormatExtension[parsed["resource_type"]];
|
|
742
|
-
if (formatExtension) {
|
|
743
|
-
const fileContent = parsed["value"]["content"];
|
|
744
|
-
if (typeof fileContent === "string") {
|
|
745
|
-
r.push({
|
|
746
|
-
isDirectory: false,
|
|
747
|
-
path: removeSuffix(finalPath, ".resource.json") +
|
|
748
|
-
".resource.file." +
|
|
749
|
-
formatExtension,
|
|
750
|
-
async *getChildren() { },
|
|
751
|
-
// deno-lint-ignore require-await
|
|
752
|
-
async getContentText() {
|
|
753
|
-
return fileContent;
|
|
754
|
-
},
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
return r;
|
|
760
|
-
}
|
|
761
|
-
function _internal_folder(p, zip) {
|
|
762
|
-
return {
|
|
763
|
-
isDirectory: true,
|
|
764
|
-
path: p,
|
|
765
|
-
async *getChildren() {
|
|
766
|
-
for (const filename in zip.files) {
|
|
767
|
-
const file = zip.files[filename];
|
|
768
|
-
const totalPath = path.join(p, filename);
|
|
769
|
-
if (file.dir) {
|
|
770
|
-
const e = zip.folder(file.name);
|
|
771
|
-
yield _internal_folder(totalPath, e);
|
|
772
|
-
}
|
|
773
|
-
else {
|
|
774
|
-
const fs = await _internal_file(totalPath, file);
|
|
775
|
-
for (const f of fs) {
|
|
776
|
-
yield f;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
// // deno-lint-ignore require-await
|
|
782
|
-
// async getContentBytes(): Promise<Uint8Array> {
|
|
783
|
-
// throw new Error("Cannot get content of folder");
|
|
784
|
-
// },
|
|
785
|
-
// deno-lint-ignore require-await
|
|
786
|
-
async getContentText() {
|
|
787
|
-
throw new Error("Cannot get content of folder");
|
|
788
|
-
},
|
|
789
|
-
};
|
|
790
|
-
}
|
|
791
|
-
return _internal_folder("." + SEP, zip);
|
|
792
|
-
}
|
|
793
|
-
export async function* readDirRecursiveWithIgnore(ignore, root) {
|
|
794
|
-
const stack = [
|
|
795
|
-
{
|
|
796
|
-
path: root.path,
|
|
797
|
-
ignored: ignore(root.path, root.isDirectory),
|
|
798
|
-
isDirectory: root.isDirectory,
|
|
799
|
-
c: root.getChildren,
|
|
800
|
-
// getContentBytes(): Promise<Uint8Array> {
|
|
801
|
-
// throw undefined;
|
|
802
|
-
// },
|
|
803
|
-
getContentText() {
|
|
804
|
-
throw undefined;
|
|
805
|
-
},
|
|
806
|
-
},
|
|
807
|
-
];
|
|
808
|
-
while (stack.length > 0) {
|
|
809
|
-
const e = stack.pop();
|
|
810
|
-
yield e;
|
|
811
|
-
for await (const e2 of e.c()) {
|
|
812
|
-
if (e2.isDirectory) {
|
|
813
|
-
const dirName = e2.path.split(SEP).pop();
|
|
814
|
-
if (dirName == "node_modules" ||
|
|
815
|
-
dirName == ".claude" ||
|
|
816
|
-
dirName?.startsWith(".")) {
|
|
817
|
-
continue;
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
stack.push({
|
|
821
|
-
path: e2.path,
|
|
822
|
-
ignored: e.ignored || ignore(e2.path, e2.isDirectory),
|
|
823
|
-
isDirectory: e2.isDirectory,
|
|
824
|
-
// getContentBytes: e2.getContentBytes,
|
|
825
|
-
getContentText: e2.getContentText,
|
|
826
|
-
c: e2.getChildren,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
export async function elementsToMap(els, ignore, json, skips, specificItems, branchOverride, isRemote) {
|
|
832
|
-
const map = {};
|
|
833
|
-
const processedBasePaths = new Set();
|
|
834
|
-
// Cache git branch at the start to avoid repeated execSync calls per file
|
|
835
|
-
const cachedBranch = branchOverride ?? getCurrentGitBranch() ?? undefined;
|
|
836
|
-
for await (const entry of readDirRecursiveWithIgnore(ignore, els)) {
|
|
837
|
-
// console.log("FOO", entry.path, entry.ignored, entry.isDirectory)
|
|
838
|
-
if (entry.isDirectory || entry.ignored) {
|
|
839
|
-
continue;
|
|
840
|
-
}
|
|
841
|
-
const path = entry.path;
|
|
842
|
-
if (!isFileResource(path) &&
|
|
843
|
-
!isRawAppFile(path) &&
|
|
844
|
-
!isWorkspaceDependencies(path)) {
|
|
845
|
-
if (json && path.endsWith(".yaml"))
|
|
846
|
-
continue;
|
|
847
|
-
if (!json && path.endsWith(".json"))
|
|
848
|
-
continue;
|
|
849
|
-
if (![
|
|
850
|
-
"json",
|
|
851
|
-
"yaml",
|
|
852
|
-
"go",
|
|
853
|
-
"sh",
|
|
854
|
-
"ts",
|
|
855
|
-
"py",
|
|
856
|
-
"sql",
|
|
857
|
-
"gql",
|
|
858
|
-
"ps1",
|
|
859
|
-
"php",
|
|
860
|
-
"js",
|
|
861
|
-
"lock",
|
|
862
|
-
"rs",
|
|
863
|
-
"cs",
|
|
864
|
-
"yml",
|
|
865
|
-
"nu",
|
|
866
|
-
"java",
|
|
867
|
-
"rb",
|
|
868
|
-
// for related places search: ADD_NEW_LANG
|
|
869
|
-
].includes(path.split(".").pop() ?? "")) {
|
|
870
|
-
continue;
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
if (isRawAppFile(path)) {
|
|
874
|
-
const suffix = path.split(getFolderSuffix("raw_app") + SEP).pop();
|
|
875
|
-
if (suffix?.startsWith("dist/") ||
|
|
876
|
-
suffix == "wmill.d.ts" ||
|
|
877
|
-
suffix == "package-lock.json" ||
|
|
878
|
-
suffix == "DATATABLES.md") {
|
|
879
|
-
continue;
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
if (skips.skipResources && isFileResource(path))
|
|
883
|
-
continue;
|
|
884
|
-
const ext = json ? ".json" : ".yaml";
|
|
885
|
-
if (!skips.includeSchedules && path.endsWith(".schedule" + ext))
|
|
886
|
-
continue;
|
|
887
|
-
if (!skips.includeTriggers &&
|
|
888
|
-
(path.endsWith(".http_trigger" + ext) ||
|
|
889
|
-
path.endsWith(".websocket_trigger" + ext) ||
|
|
890
|
-
path.endsWith(".kafka_trigger" + ext) ||
|
|
891
|
-
path.endsWith(".nats_trigger" + ext) ||
|
|
892
|
-
path.endsWith(".postgres_trigger" + ext) ||
|
|
893
|
-
path.endsWith(".mqtt_trigger" + ext) ||
|
|
894
|
-
path.endsWith(".sqs_trigger" + ext) ||
|
|
895
|
-
path.endsWith(".gcp_trigger" + ext) ||
|
|
896
|
-
path.endsWith(".email_trigger" + ext) ||
|
|
897
|
-
path.endsWith("_native_trigger" + ext))) {
|
|
898
|
-
continue;
|
|
899
|
-
}
|
|
900
|
-
if (!skips.includeUsers && path.endsWith(".user" + ext))
|
|
901
|
-
continue;
|
|
902
|
-
if (!skips.includeGroups && path.endsWith(".group" + ext))
|
|
903
|
-
continue;
|
|
904
|
-
if (!skips.includeSettings && path === "settings" + ext)
|
|
905
|
-
continue;
|
|
906
|
-
if (!skips.includeKey && path === "encryption_key")
|
|
907
|
-
continue;
|
|
908
|
-
if (skips.skipResources && path.endsWith(".resource" + ext))
|
|
909
|
-
continue;
|
|
910
|
-
if (skips.skipResourceTypes && path.endsWith(".resource-type" + ext)) {
|
|
911
|
-
continue;
|
|
912
|
-
}
|
|
913
|
-
// Use getTypeStrFromPath for consistent type detection
|
|
914
|
-
try {
|
|
915
|
-
const fileType = getTypeStrFromPath(path);
|
|
916
|
-
if (skips.skipVariables && fileType === "variable")
|
|
917
|
-
continue;
|
|
918
|
-
if (skips.skipScripts && fileType === "script")
|
|
919
|
-
continue;
|
|
920
|
-
if (skips.skipFlows && fileType === "flow")
|
|
921
|
-
continue;
|
|
922
|
-
if (skips.skipApps && fileType === "app")
|
|
923
|
-
continue;
|
|
924
|
-
if (skips.skipFolders && fileType === "folder")
|
|
925
|
-
continue;
|
|
926
|
-
if (skips.skipWorkspaceDependencies &&
|
|
927
|
-
fileType === "workspace_dependencies")
|
|
928
|
-
continue;
|
|
929
|
-
}
|
|
930
|
-
catch {
|
|
931
|
-
// If getTypeStrFromPath can't determine the type, continue processing the file
|
|
932
|
-
}
|
|
933
|
-
// Handle branch-specific files - skip files for other branches
|
|
934
|
-
if (specificItems && isBranchSpecificFile(path)) {
|
|
935
|
-
if (!isCurrentBranchFile(path, cachedBranch)) {
|
|
936
|
-
// Skip branch-specific files for other branches
|
|
937
|
-
continue;
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
const content = await entry.getContentText();
|
|
941
|
-
if (skips.skipSecrets && path.endsWith(".variable" + ext)) {
|
|
942
|
-
try {
|
|
943
|
-
let o;
|
|
944
|
-
if (json) {
|
|
945
|
-
try {
|
|
946
|
-
o = JSON.parse(content);
|
|
947
|
-
}
|
|
948
|
-
catch (error) {
|
|
949
|
-
log.error(`Failed to parse JSON variable content at path: ${path}`);
|
|
950
|
-
throw error;
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
else {
|
|
954
|
-
try {
|
|
955
|
-
o = yamlParseContent(path, content);
|
|
956
|
-
}
|
|
957
|
-
catch (error) {
|
|
958
|
-
log.error(`Failed to parse YAML variable content at path: ${path}`);
|
|
959
|
-
throw error;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
if (o["is_secret"]) {
|
|
963
|
-
continue;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
catch (e) {
|
|
967
|
-
log.warn(`Error reading variable ${path} to check for secrets`);
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
// Handle branch-specific path mapping after all filtering
|
|
971
|
-
if (cachedBranch && isCurrentBranchFile(path, cachedBranch)) {
|
|
972
|
-
// This is a branch-specific file for current branch
|
|
973
|
-
const currentBranch = cachedBranch;
|
|
974
|
-
const basePath = fromBranchSpecificPath(path, currentBranch);
|
|
975
|
-
// Only use branch-specific files if the item type IS configured as branch-specific
|
|
976
|
-
// AND matches the pattern. Otherwise, skip and use base file instead.
|
|
977
|
-
if (!isItemTypeConfigured(basePath, specificItems)) {
|
|
978
|
-
// Type not configured as branch-specific - skip, use base file instead
|
|
979
|
-
continue;
|
|
980
|
-
}
|
|
981
|
-
if (!isSpecificItem(basePath, specificItems)) {
|
|
982
|
-
// Type configured but doesn't match pattern - skip
|
|
983
|
-
continue;
|
|
984
|
-
}
|
|
985
|
-
// Type configured AND matches - map to base path
|
|
986
|
-
map[basePath] = content;
|
|
987
|
-
processedBasePaths.add(basePath);
|
|
988
|
-
}
|
|
989
|
-
else if (!isBranchSpecificFile(path)) {
|
|
990
|
-
// This is a regular base file
|
|
991
|
-
if (processedBasePaths.has(path)) {
|
|
992
|
-
// Skip base file, we already processed branch-specific version
|
|
993
|
-
continue;
|
|
994
|
-
}
|
|
995
|
-
// Skip base file if it's configured as branch-specific (expect branch version)
|
|
996
|
-
// Only for LOCAL files - remote workspace only has base paths
|
|
997
|
-
if (!isRemote && isSpecificItem(path, specificItems)) {
|
|
998
|
-
continue;
|
|
999
|
-
}
|
|
1000
|
-
map[path] = content;
|
|
1001
|
-
}
|
|
1002
|
-
// Note: branch-specific files for other branches are already filtered out earlier
|
|
1003
|
-
}
|
|
1004
|
-
return map;
|
|
1005
|
-
}
|
|
1006
|
-
async function compareDynFSElement(els1, els2, ignore, json, skips, ignoreMetadataDeletion, codebases, ignoreCodebaseChanges, specificItems, branchOverride, isEls1Remote) {
|
|
1007
|
-
const [m1, m2] = els2
|
|
1008
|
-
? await Promise.all([
|
|
1009
|
-
elementsToMap(els1, ignore, json, skips, specificItems, branchOverride, isEls1Remote),
|
|
1010
|
-
elementsToMap(els2, ignore, json, skips, specificItems, branchOverride, !isEls1Remote),
|
|
1011
|
-
])
|
|
1012
|
-
: [await elementsToMap(els1, ignore, json, skips, specificItems, branchOverride, isEls1Remote), {}];
|
|
1013
|
-
const changes = [];
|
|
1014
|
-
function parseYaml(k, v) {
|
|
1015
|
-
if (k.endsWith(".script.yaml")) {
|
|
1016
|
-
let o;
|
|
1017
|
-
try {
|
|
1018
|
-
o = yamlParseContent(k, v);
|
|
1019
|
-
}
|
|
1020
|
-
catch (error) {
|
|
1021
|
-
log.error(`Failed to parse script YAML content at path: ${k}`);
|
|
1022
|
-
throw error;
|
|
1023
|
-
}
|
|
1024
|
-
if (typeof o == "object") {
|
|
1025
|
-
if (Array.isArray(o?.["lock"])) {
|
|
1026
|
-
o["lock"] = o["lock"].join("\n");
|
|
1027
|
-
}
|
|
1028
|
-
if (o["is_template"] != undefined) {
|
|
1029
|
-
delete o["is_template"];
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
return o;
|
|
1033
|
-
}
|
|
1034
|
-
else {
|
|
1035
|
-
try {
|
|
1036
|
-
return yamlParseContent(k, v);
|
|
1037
|
-
}
|
|
1038
|
-
catch (error) {
|
|
1039
|
-
log.error(`Failed to parse YAML content at path: ${k}`);
|
|
1040
|
-
throw error;
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
const codebaseChanges = {};
|
|
1045
|
-
for (let [k, v] of Object.entries(m1)) {
|
|
1046
|
-
const isScriptMetadata = k.endsWith(".script.yaml") || k.endsWith(".script.json");
|
|
1047
|
-
const skipMetadata = skips.skipScriptsMetadata && isScriptMetadata;
|
|
1048
|
-
if (m2[k] === undefined) {
|
|
1049
|
-
if (skipMetadata) {
|
|
1050
|
-
continue;
|
|
1051
|
-
}
|
|
1052
|
-
if (k.startsWith("dependencies/")) {
|
|
1053
|
-
log.info(`Adding workspace dependencies file: ${k}`);
|
|
1054
|
-
}
|
|
1055
|
-
changes.push({ name: "added", path: k, content: v });
|
|
1056
|
-
}
|
|
1057
|
-
else {
|
|
1058
|
-
if (m2[k] == v) {
|
|
1059
|
-
continue;
|
|
1060
|
-
}
|
|
1061
|
-
else if (k.endsWith(".json") && !isWorkspaceDependencies(k)) {
|
|
1062
|
-
let parsedV, parsedM2;
|
|
1063
|
-
try {
|
|
1064
|
-
parsedV = JSON.parse(v);
|
|
1065
|
-
}
|
|
1066
|
-
catch (error) {
|
|
1067
|
-
log.error(`Failed to parse new JSON content for comparison at path: ${k}`);
|
|
1068
|
-
throw error;
|
|
1069
|
-
}
|
|
1070
|
-
try {
|
|
1071
|
-
parsedM2 = JSON.parse(m2[k]);
|
|
1072
|
-
}
|
|
1073
|
-
catch (error) {
|
|
1074
|
-
log.error(`Failed to parse existing JSON content for comparison at path: ${k}`);
|
|
1075
|
-
throw error;
|
|
1076
|
-
}
|
|
1077
|
-
if (deepEqual(parsedV, parsedM2)) {
|
|
1078
|
-
continue;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
else if (k.endsWith(".yaml")) {
|
|
1082
|
-
const before = parseYaml(k, m2[k]);
|
|
1083
|
-
const after = parseYaml(k, v);
|
|
1084
|
-
if (deepEqual(before, after)) {
|
|
1085
|
-
continue;
|
|
1086
|
-
}
|
|
1087
|
-
if (!ignoreCodebaseChanges) {
|
|
1088
|
-
if (before?.codebase != undefined) {
|
|
1089
|
-
delete before.codebase;
|
|
1090
|
-
m2[k] = yamlStringify(before, yamlOptions);
|
|
1091
|
-
}
|
|
1092
|
-
if (after?.codebase != undefined) {
|
|
1093
|
-
if (before.codebase != after.codebase) {
|
|
1094
|
-
codebaseChanges[k] = after.codebase;
|
|
1095
|
-
}
|
|
1096
|
-
delete after.codebase;
|
|
1097
|
-
v = yamlStringify(after, yamlOptions);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
if (skipMetadata) {
|
|
1101
|
-
continue;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
changes.push({
|
|
1105
|
-
name: "edited",
|
|
1106
|
-
path: k,
|
|
1107
|
-
after: v,
|
|
1108
|
-
before: m2[k],
|
|
1109
|
-
codebase: codebaseChanges[k],
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
const remoteCodebase = {};
|
|
1114
|
-
for (const [k] of Object.entries(m2)) {
|
|
1115
|
-
if (m1[k] === undefined) {
|
|
1116
|
-
if (!ignoreMetadataDeletion ||
|
|
1117
|
-
(!k?.endsWith(".script.yaml") && !k?.endsWith(".script.json"))) {
|
|
1118
|
-
changes.push({ name: "deleted", path: k });
|
|
1119
|
-
}
|
|
1120
|
-
else if (k?.endsWith(".script.yaml")) {
|
|
1121
|
-
const o = parseYaml(k, m2[k]);
|
|
1122
|
-
if (o.codebase != undefined) {
|
|
1123
|
-
remoteCodebase[k] = o.codebase;
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
if (!ignoreCodebaseChanges) {
|
|
1129
|
-
for (const [k, v] of Object.entries(remoteCodebase)) {
|
|
1130
|
-
const tsFile = k.replace(".script.yaml", ".ts");
|
|
1131
|
-
if (changes.find((c) => c.path == tsFile && (c.name == "edited" || c.name == "deleted"))) {
|
|
1132
|
-
continue;
|
|
1133
|
-
}
|
|
1134
|
-
const c = findCodebase(tsFile, codebases);
|
|
1135
|
-
if ((await c?.getDigest()) != v) {
|
|
1136
|
-
changes.push({
|
|
1137
|
-
name: "edited",
|
|
1138
|
-
path: tsFile,
|
|
1139
|
-
codebase: v,
|
|
1140
|
-
before: m1[tsFile],
|
|
1141
|
-
after: m2[tsFile],
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
if (!ignoreCodebaseChanges) {
|
|
1147
|
-
for (const change of changes) {
|
|
1148
|
-
const codebase = codebaseChanges[change.path];
|
|
1149
|
-
if (!codebase)
|
|
1150
|
-
continue;
|
|
1151
|
-
const tsFile = change.path.replace(".script.yaml", ".ts");
|
|
1152
|
-
if (change.name == "edited" && change.path == tsFile) {
|
|
1153
|
-
change.codebase = codebase;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
changes.sort((a, b) => getOrderFromPath(a.path) == getOrderFromPath(b.path)
|
|
1158
|
-
? a.path.localeCompare(b.path)
|
|
1159
|
-
: getOrderFromPath(a.path) - getOrderFromPath(b.path));
|
|
1160
|
-
return changes;
|
|
1161
|
-
}
|
|
1162
|
-
function getOrderFromPath(p) {
|
|
1163
|
-
const typ = getTypeStrFromPath(p);
|
|
1164
|
-
// Order by dependencies: items that others depend on should be pushed first
|
|
1165
|
-
if (typ == "settings") {
|
|
1166
|
-
return 0;
|
|
1167
|
-
}
|
|
1168
|
-
else if (typ == "encryption_key") {
|
|
1169
|
-
return 1;
|
|
1170
|
-
}
|
|
1171
|
-
else if (typ == "user") {
|
|
1172
|
-
return 2;
|
|
1173
|
-
}
|
|
1174
|
-
else if (typ == "group") {
|
|
1175
|
-
return 3;
|
|
1176
|
-
}
|
|
1177
|
-
else if (typ == "folder") {
|
|
1178
|
-
return 4;
|
|
1179
|
-
}
|
|
1180
|
-
else if (typ == "resource-type") {
|
|
1181
|
-
return 5;
|
|
1182
|
-
}
|
|
1183
|
-
else if (typ == "variable") {
|
|
1184
|
-
return 6;
|
|
1185
|
-
}
|
|
1186
|
-
else if (typ == "resource") {
|
|
1187
|
-
return 7;
|
|
1188
|
-
}
|
|
1189
|
-
else if (typ == "workspace_dependencies") {
|
|
1190
|
-
return 8;
|
|
1191
|
-
}
|
|
1192
|
-
else if (typ == "script") {
|
|
1193
|
-
return 9;
|
|
1194
|
-
}
|
|
1195
|
-
else if (typ == "flow") {
|
|
1196
|
-
return 10;
|
|
1197
|
-
}
|
|
1198
|
-
else if (typ == "raw_app") {
|
|
1199
|
-
return 11;
|
|
1200
|
-
}
|
|
1201
|
-
else if (typ == "app") {
|
|
1202
|
-
return 12;
|
|
1203
|
-
}
|
|
1204
|
-
else if (typ == "schedule") {
|
|
1205
|
-
return 13;
|
|
1206
|
-
}
|
|
1207
|
-
else if (typ == "http_trigger" ||
|
|
1208
|
-
typ == "websocket_trigger" ||
|
|
1209
|
-
typ == "kafka_trigger" ||
|
|
1210
|
-
typ == "nats_trigger" ||
|
|
1211
|
-
typ == "postgres_trigger" ||
|
|
1212
|
-
typ == "mqtt_trigger" ||
|
|
1213
|
-
typ == "sqs_trigger" ||
|
|
1214
|
-
typ == "gcp_trigger" ||
|
|
1215
|
-
typ == "email_trigger" ||
|
|
1216
|
-
typ == "native_trigger") {
|
|
1217
|
-
return 14;
|
|
1218
|
-
}
|
|
1219
|
-
else {
|
|
1220
|
-
return 15;
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
const isNotWmillFile = (p, isDirectory) => {
|
|
1224
|
-
if (p.endsWith(SEP)) {
|
|
1225
|
-
return false;
|
|
1226
|
-
}
|
|
1227
|
-
if (isDirectory) {
|
|
1228
|
-
return (!p.startsWith("u" + SEP) &&
|
|
1229
|
-
!p.startsWith("f" + SEP) &&
|
|
1230
|
-
!p.startsWith("g" + SEP) &&
|
|
1231
|
-
!p.startsWith("users" + SEP) &&
|
|
1232
|
-
!p.startsWith("groups" + SEP) &&
|
|
1233
|
-
!p.startsWith("dependencies" + SEP));
|
|
1234
|
-
}
|
|
1235
|
-
try {
|
|
1236
|
-
const typ = getTypeStrFromPath(p);
|
|
1237
|
-
if (typ == "resource-type" ||
|
|
1238
|
-
typ == "settings" ||
|
|
1239
|
-
typ == "encryption_key") {
|
|
1240
|
-
return p.includes(SEP);
|
|
1241
|
-
}
|
|
1242
|
-
else {
|
|
1243
|
-
return (!p.startsWith("u" + SEP) &&
|
|
1244
|
-
!p.startsWith("f" + SEP) &&
|
|
1245
|
-
!p.startsWith("g" + SEP) &&
|
|
1246
|
-
!p.startsWith("users" + SEP) &&
|
|
1247
|
-
!p.startsWith("groups" + SEP) &&
|
|
1248
|
-
!p.startsWith("dependencies" + SEP));
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
catch {
|
|
1252
|
-
return true;
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
|
-
export const isWhitelisted = (p) => {
|
|
1256
|
-
return (p == "." + SEP ||
|
|
1257
|
-
p == "" ||
|
|
1258
|
-
p == "u" ||
|
|
1259
|
-
p == "f" ||
|
|
1260
|
-
p == "g" ||
|
|
1261
|
-
p == "users" ||
|
|
1262
|
-
p == "groups" ||
|
|
1263
|
-
p == "dependencies");
|
|
1264
|
-
};
|
|
1265
|
-
export async function ignoreF(wmillconf) {
|
|
1266
|
-
let whitelist = undefined;
|
|
1267
|
-
if ((Array.isArray(wmillconf?.includes) && wmillconf?.includes?.length > 0) ||
|
|
1268
|
-
(Array.isArray(wmillconf?.excludes) && wmillconf?.excludes?.length > 0)) {
|
|
1269
|
-
whitelist = {
|
|
1270
|
-
approve(file) {
|
|
1271
|
-
return ((!wmillconf.includes ||
|
|
1272
|
-
wmillconf.includes?.some((i) => minimatch(file, i))) &&
|
|
1273
|
-
(!wmillconf?.excludes ||
|
|
1274
|
-
wmillconf.excludes.every((i) => !minimatch(file, i))) &&
|
|
1275
|
-
(!wmillconf.extraIncludes ||
|
|
1276
|
-
wmillconf.extraIncludes.length === 0 ||
|
|
1277
|
-
wmillconf.extraIncludes.some((i) => minimatch(file, i))));
|
|
1278
|
-
},
|
|
1279
|
-
};
|
|
1280
|
-
}
|
|
1281
|
-
try {
|
|
1282
|
-
await dntShim.Deno.stat(".wmillignore");
|
|
1283
|
-
throw Error(".wmillignore is not supported anymore, switch to wmill.yaml");
|
|
1284
|
-
}
|
|
1285
|
-
catch {
|
|
1286
|
-
//expected
|
|
1287
|
-
}
|
|
1288
|
-
// new Gitignore.default({ initialRules: ignoreContent.split("\n")}).ignoreContent).compile();
|
|
1289
|
-
return (p, isDirectory) => {
|
|
1290
|
-
const ext = wmillconf.json ? ".json" : ".yaml";
|
|
1291
|
-
if (!isDirectory && p.endsWith(".resource-type" + ext)) {
|
|
1292
|
-
return wmillconf.skipResourceTypes ?? false;
|
|
1293
|
-
}
|
|
1294
|
-
// Special files should bypass path-based filtering when their include flags are set
|
|
1295
|
-
if (!isDirectory) {
|
|
1296
|
-
try {
|
|
1297
|
-
const fileType = getTypeStrFromPath(p);
|
|
1298
|
-
if (wmillconf.includeUsers && fileType === "user") {
|
|
1299
|
-
return false; // Don't ignore, always include
|
|
1300
|
-
}
|
|
1301
|
-
if (wmillconf.includeGroups && fileType === "group") {
|
|
1302
|
-
return false; // Don't ignore, always include
|
|
1303
|
-
}
|
|
1304
|
-
if (wmillconf.includeSettings && fileType === "settings") {
|
|
1305
|
-
return false; // Don't ignore, always include
|
|
1306
|
-
}
|
|
1307
|
-
if (wmillconf.includeKey && fileType === "encryption_key") {
|
|
1308
|
-
return false; // Don't ignore, always include
|
|
1309
|
-
}
|
|
1310
|
-
if (!wmillconf.skipWorkspaceDependencies &&
|
|
1311
|
-
fileType === "workspace_dependencies") {
|
|
1312
|
-
return false; // Don't ignore workspace dependencies (they are always included unless explicitly skipped)
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
catch {
|
|
1316
|
-
// If getTypeStrFromPath can't determine the type, fall through to normal logic
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
return (!isWhitelisted(p) &&
|
|
1320
|
-
(isNotWmillFile(p, isDirectory) ||
|
|
1321
|
-
(!isDirectory && whitelist != undefined && !whitelist.approve(p))));
|
|
1322
|
-
};
|
|
1323
|
-
}
|
|
1324
|
-
// deno-lint-ignore no-inner-declarations
|
|
1325
|
-
async function addToChangedIfNotExists(p, tracker) {
|
|
1326
|
-
const isScript = exts.some((e) => p.endsWith(e));
|
|
1327
|
-
if (isScript) {
|
|
1328
|
-
if (isFlowPath(p)) {
|
|
1329
|
-
const folder = extractFolderPath(p, "flow");
|
|
1330
|
-
if (!tracker.flows.includes(folder)) {
|
|
1331
|
-
tracker.flows.push(folder);
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
else if (isAppPath(p)) {
|
|
1335
|
-
const folder = extractFolderPath(p, "app");
|
|
1336
|
-
if (!tracker.apps.includes(folder)) {
|
|
1337
|
-
tracker.apps.push(folder);
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
else if (isRawAppPath(p)) {
|
|
1341
|
-
const folder = extractFolderPath(p, "raw_app");
|
|
1342
|
-
if (!tracker.rawApps.includes(folder)) {
|
|
1343
|
-
tracker.rawApps.push(folder);
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
else {
|
|
1347
|
-
if (!tracker.scripts.includes(p)) {
|
|
1348
|
-
tracker.scripts.push(p);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
else if (p.endsWith(".script.yaml") || p.endsWith(".script.json")) {
|
|
1353
|
-
try {
|
|
1354
|
-
const contentPath = await findContentFile(p);
|
|
1355
|
-
if (!contentPath)
|
|
1356
|
-
return;
|
|
1357
|
-
if (tracker.scripts.includes(contentPath))
|
|
1358
|
-
return;
|
|
1359
|
-
tracker.scripts.push(contentPath);
|
|
1360
|
-
}
|
|
1361
|
-
catch {
|
|
1362
|
-
// ignore
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
async function buildTracker(changes) {
|
|
1367
|
-
const tracker = {
|
|
1368
|
-
scripts: [],
|
|
1369
|
-
flows: [],
|
|
1370
|
-
apps: [],
|
|
1371
|
-
rawApps: [],
|
|
1372
|
-
};
|
|
1373
|
-
for (const change of changes) {
|
|
1374
|
-
if (change.name == "added" || change.name == "edited") {
|
|
1375
|
-
await addToChangedIfNotExists(change.path, tracker);
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
return tracker;
|
|
1379
|
-
}
|
|
1380
|
-
export async function pull(opts) {
|
|
1381
|
-
const originalCliOpts = { ...opts };
|
|
1382
|
-
opts = await mergeConfigWithConfigFile(opts);
|
|
1383
|
-
// Validate branch configuration early (skipped when --branch is used)
|
|
1384
|
-
try {
|
|
1385
|
-
await validateBranchConfiguration(opts, opts.branch);
|
|
1386
|
-
}
|
|
1387
|
-
catch (error) {
|
|
1388
|
-
if (error instanceof Error && error.message.includes("overrides")) {
|
|
1389
|
-
log.error(error.message);
|
|
1390
|
-
dntShim.Deno.exit(1);
|
|
1391
|
-
}
|
|
1392
|
-
throw error;
|
|
1393
|
-
}
|
|
1394
|
-
if (opts.stateful) {
|
|
1395
|
-
await ensureDir(path.join(dntShim.Deno.cwd(), ".wmill"));
|
|
1396
|
-
}
|
|
1397
|
-
const workspace = await resolveWorkspace(opts, opts.branch);
|
|
1398
|
-
await requireLogin(opts);
|
|
1399
|
-
// Resolve effective sync options with branch awareness
|
|
1400
|
-
const effectiveOpts = await resolveEffectiveSyncOptions(workspace, opts, opts.promotion, opts.branch);
|
|
1401
|
-
// Extract specific items configuration before merging overwrites gitBranches
|
|
1402
|
-
const specificItems = getSpecificItemsForCurrentBranch(opts, opts.branch);
|
|
1403
|
-
// Merge CLI flags with resolved settings (CLI flags take precedence only for explicit overrides)
|
|
1404
|
-
opts = mergeCliWithEffectiveOptions(originalCliOpts, effectiveOpts);
|
|
1405
|
-
const codebases = await listSyncCodebases(opts);
|
|
1406
|
-
log.info(colors.gray("Computing the files to update locally to match remote (taking wmill.yaml into account)"));
|
|
1407
|
-
let resourceTypeToFormatExtension = {};
|
|
1408
|
-
try {
|
|
1409
|
-
resourceTypeToFormatExtension = (await wmill.fileResourceTypeToFileExtMap({
|
|
1410
|
-
workspace: workspace.workspaceId,
|
|
1411
|
-
}));
|
|
1412
|
-
}
|
|
1413
|
-
catch {
|
|
1414
|
-
// ignore
|
|
1415
|
-
}
|
|
1416
|
-
const zipFile = await downloadZip(workspace, opts.plainSecrets, opts.skipVariables, opts.skipResources, opts.skipResourceTypes, opts.skipSecrets, opts.includeSchedules, opts.includeTriggers, opts.includeUsers, opts.includeGroups, opts.includeSettings, opts.includeKey, opts.skipWorkspaceDependencies, opts.defaultTs);
|
|
1417
|
-
const remote = ZipFSElement(zipFile, !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, true);
|
|
1418
|
-
const local = !opts.stateful
|
|
1419
|
-
? await FSFSElement(dntShim.Deno.cwd(), codebases, true)
|
|
1420
|
-
: await FSFSElement(path.join(dntShim.Deno.cwd(), ".wmill"), [], true);
|
|
1421
|
-
const changes = await compareDynFSElement(remote, local, await ignoreF(opts), opts.json ?? false, opts, false, codebases, true, specificItems, opts.branch, true);
|
|
1422
|
-
log.info(`remote (${workspace.name}) -> local: ${changes.length} changes to apply`);
|
|
1423
|
-
// Handle JSON output for dry-run
|
|
1424
|
-
if (opts.dryRun && opts.jsonOutput) {
|
|
1425
|
-
const result = {
|
|
1426
|
-
success: true,
|
|
1427
|
-
changes: changes.map((change) => ({
|
|
1428
|
-
type: change.name,
|
|
1429
|
-
path: change.path,
|
|
1430
|
-
...(change.name === "edited" && change.codebase
|
|
1431
|
-
? { codebase_changed: true }
|
|
1432
|
-
: {}),
|
|
1433
|
-
...(specificItems && isSpecificItem(change.path, specificItems)
|
|
1434
|
-
? {
|
|
1435
|
-
branch_specific: true,
|
|
1436
|
-
branch_specific_path: getBranchSpecificPath(change.path, specificItems, opts.branch),
|
|
1437
|
-
}
|
|
1438
|
-
: {}),
|
|
1439
|
-
})),
|
|
1440
|
-
total: changes.length,
|
|
1441
|
-
};
|
|
1442
|
-
console.log(JSON.stringify(result, null, 2));
|
|
1443
|
-
return;
|
|
1444
|
-
}
|
|
1445
|
-
if (changes.length > 0) {
|
|
1446
|
-
if (!opts.jsonOutput) {
|
|
1447
|
-
prettyChanges(changes, specificItems, opts.branch);
|
|
1448
|
-
}
|
|
1449
|
-
if (opts.dryRun) {
|
|
1450
|
-
log.info(colors.gray(`Dry run complete.`));
|
|
1451
|
-
return;
|
|
1452
|
-
}
|
|
1453
|
-
if (!opts.yes &&
|
|
1454
|
-
!(await Confirm.prompt({
|
|
1455
|
-
message: `Do you want to apply these ${changes.length} changes to your local files?`,
|
|
1456
|
-
default: true,
|
|
1457
|
-
}))) {
|
|
1458
|
-
return;
|
|
1459
|
-
}
|
|
1460
|
-
const conflicts = [];
|
|
1461
|
-
log.info(colors.gray(`Applying changes to files ...`));
|
|
1462
|
-
for await (const change of changes) {
|
|
1463
|
-
// Determine if this file should be written to a branch-specific path
|
|
1464
|
-
let targetPath = change.path;
|
|
1465
|
-
if (specificItems && isSpecificItem(change.path, specificItems)) {
|
|
1466
|
-
const branchSpecificPath = getBranchSpecificPath(change.path, specificItems, opts.branch);
|
|
1467
|
-
if (branchSpecificPath) {
|
|
1468
|
-
targetPath = branchSpecificPath;
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
const target = path.join(dntShim.Deno.cwd(), targetPath);
|
|
1472
|
-
const stateTarget = path.join(dntShim.Deno.cwd(), ".wmill", targetPath);
|
|
1473
|
-
if (change.name === "edited") {
|
|
1474
|
-
if (opts.stateful) {
|
|
1475
|
-
try {
|
|
1476
|
-
const currentLocal = await dntShim.Deno.readTextFile(target);
|
|
1477
|
-
if (currentLocal !== change.before &&
|
|
1478
|
-
currentLocal !== change.after) {
|
|
1479
|
-
log.info(colors.red(`Conflict detected on ${change.path}\nBoth local and remote have been modified.`));
|
|
1480
|
-
if (opts.failConflicts) {
|
|
1481
|
-
conflicts.push({
|
|
1482
|
-
local: currentLocal,
|
|
1483
|
-
change,
|
|
1484
|
-
path: change.path,
|
|
1485
|
-
});
|
|
1486
|
-
continue;
|
|
1487
|
-
}
|
|
1488
|
-
else if (opts.yes) {
|
|
1489
|
-
log.info(colors.red(`Override local version with remote since --yes was passed and no --fail-conflicts.`));
|
|
1490
|
-
}
|
|
1491
|
-
else {
|
|
1492
|
-
showConflict(change.path, currentLocal, change.after);
|
|
1493
|
-
if (await Confirm.prompt("Preserve local (push to change remote and avoid seeing this again)?")) {
|
|
1494
|
-
continue;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
catch {
|
|
1500
|
-
// ignore
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
if (exts.some((e) => change.path.endsWith(e))) {
|
|
1504
|
-
log.info(`Editing script content of ${targetPath}${targetPath !== change.path
|
|
1505
|
-
? colors.gray(` (branch-specific override for ${change.path})`)
|
|
1506
|
-
: ""}`);
|
|
1507
|
-
}
|
|
1508
|
-
else if (change.path.endsWith(".yaml") ||
|
|
1509
|
-
change.path.endsWith(".json")) {
|
|
1510
|
-
log.info(`Editing ${getTypeStrFromPath(change.path)} ${targetPath}${targetPath !== change.path
|
|
1511
|
-
? colors.gray(` (branch-specific override for ${change.path})`)
|
|
1512
|
-
: ""}`);
|
|
1513
|
-
}
|
|
1514
|
-
await dntShim.Deno.writeTextFile(target, change.after);
|
|
1515
|
-
if (opts.stateful) {
|
|
1516
|
-
await ensureDir(path.dirname(stateTarget));
|
|
1517
|
-
await dntShim.Deno.copyFile(target, stateTarget);
|
|
1518
|
-
}
|
|
1519
|
-
}
|
|
1520
|
-
else if (change.name === "added") {
|
|
1521
|
-
await ensureDir(path.dirname(target));
|
|
1522
|
-
if (opts.stateful) {
|
|
1523
|
-
await ensureDir(path.dirname(stateTarget));
|
|
1524
|
-
log.info(`Adding ${getTypeStrFromPath(change.path)} ${targetPath}${targetPath !== change.path
|
|
1525
|
-
? colors.gray(` (branch-specific override for ${change.path})`)
|
|
1526
|
-
: ""}`);
|
|
1527
|
-
}
|
|
1528
|
-
await dntShim.Deno.writeTextFile(target, change.content);
|
|
1529
|
-
log.info(`Writing ${getTypeStrFromPath(change.path)} ${targetPath}${targetPath !== change.path
|
|
1530
|
-
? colors.gray(` (branch-specific override for ${change.path})`)
|
|
1531
|
-
: ""}`);
|
|
1532
|
-
if (opts.stateful) {
|
|
1533
|
-
await dntShim.Deno.copyFile(target, stateTarget);
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
else if (change.name === "deleted") {
|
|
1537
|
-
try {
|
|
1538
|
-
log.info(`Deleting ${getTypeStrFromPath(change.path)} ${change.path}`);
|
|
1539
|
-
await dntShim.Deno.remove(target);
|
|
1540
|
-
if (opts.stateful) {
|
|
1541
|
-
await dntShim.Deno.remove(stateTarget);
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
catch {
|
|
1545
|
-
if (opts.stateful) {
|
|
1546
|
-
await dntShim.Deno.remove(stateTarget);
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
if (opts.failConflicts) {
|
|
1552
|
-
if (conflicts.length > 0) {
|
|
1553
|
-
console.error(colors.red(`Conflicts were found`));
|
|
1554
|
-
log.info("Conflicts:");
|
|
1555
|
-
for (const conflict of conflicts) {
|
|
1556
|
-
showConflict(conflict.path, conflict.local, conflict.change.after);
|
|
1557
|
-
}
|
|
1558
|
-
log.info(colors.red(`Please resolve these conflicts manually by either:
|
|
1559
|
-
- reverting the content back to its remote (\`wmill pull\` and refuse to preserve local when prompted)
|
|
1560
|
-
- pushing the changes with \`wmill push --skip-pull\` to override wmill with all your local changes
|
|
1561
|
-
`));
|
|
1562
|
-
dntShim.Deno.exit(1);
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
log.info("All local changes pulled, now updating wmill-lock.yaml");
|
|
1566
|
-
await readLockfile(); // ensure wmill-lock.yaml exists
|
|
1567
|
-
const tracker = await buildTracker(changes);
|
|
1568
|
-
const rawWorkspaceDependencies = await getRawWorkspaceDependencies();
|
|
1569
|
-
for (const change of tracker.scripts) {
|
|
1570
|
-
await generateScriptMetadataInternal(change, workspace, opts, false, true, rawWorkspaceDependencies, codebases, true);
|
|
1571
|
-
}
|
|
1572
|
-
for (const change of tracker.flows) {
|
|
1573
|
-
log.info(`Updating lock for flow ${change}`);
|
|
1574
|
-
await generateFlowLockInternal(change, false, workspace, opts, true, false);
|
|
1575
|
-
}
|
|
1576
|
-
if (tracker.apps.length > 0) {
|
|
1577
|
-
log.info(colors.gray(`Apps ${tracker.apps.join(", ")} inline scripts were changed but ignoring metadata regeneration for now`));
|
|
1578
|
-
}
|
|
1579
|
-
for (const change of tracker.rawApps) {
|
|
1580
|
-
log.info(`Updating lock metadata for raw app ${change}`);
|
|
1581
|
-
await generateAppLocksInternal(change, true, true, workspace, opts, true, true);
|
|
1582
|
-
}
|
|
1583
|
-
for (const change of tracker.apps) {
|
|
1584
|
-
log.info(`Updating lock metadata for app ${change}`);
|
|
1585
|
-
await generateAppLocksInternal(change, false, false, workspace, opts, true, true);
|
|
1586
|
-
}
|
|
1587
|
-
if (opts.jsonOutput) {
|
|
1588
|
-
const result = {
|
|
1589
|
-
success: true,
|
|
1590
|
-
message: `All ${changes.length} changes applied locally and wmill-lock.yaml updated`,
|
|
1591
|
-
changes: changes.map((change) => ({
|
|
1592
|
-
type: change.name,
|
|
1593
|
-
path: change.path,
|
|
1594
|
-
...(change.name === "edited" && change.codebase
|
|
1595
|
-
? { codebase_changed: true }
|
|
1596
|
-
: {}),
|
|
1597
|
-
...(specificItems && isSpecificItem(change.path, specificItems)
|
|
1598
|
-
? {
|
|
1599
|
-
branch_specific: true,
|
|
1600
|
-
branch_specific_path: getBranchSpecificPath(change.path, specificItems, opts.branch),
|
|
1601
|
-
}
|
|
1602
|
-
: {}),
|
|
1603
|
-
})),
|
|
1604
|
-
total: changes.length,
|
|
1605
|
-
};
|
|
1606
|
-
console.log(JSON.stringify(result, null, 2));
|
|
1607
|
-
}
|
|
1608
|
-
else {
|
|
1609
|
-
log.info(colors.bold.green.underline(`\nDone! All ${changes.length} changes applied locally and wmill-lock.yaml updated.`));
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
else if (opts.jsonOutput) {
|
|
1613
|
-
console.log(JSON.stringify({ success: true, message: "No changes to apply", total: 0 }, null, 2));
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
function prettyChanges(changes, specificItems, branchOverride) {
|
|
1617
|
-
for (const change of changes) {
|
|
1618
|
-
let displayPath = change.path;
|
|
1619
|
-
let branchNote = "";
|
|
1620
|
-
// Check if this will be written as a branch-specific file
|
|
1621
|
-
if (specificItems && isSpecificItem(change.path, specificItems)) {
|
|
1622
|
-
const branchSpecificPath = getBranchSpecificPath(change.path, specificItems, branchOverride);
|
|
1623
|
-
if (branchSpecificPath) {
|
|
1624
|
-
displayPath = branchSpecificPath;
|
|
1625
|
-
branchNote = " (branch-specific)";
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
if (change.name === "added") {
|
|
1629
|
-
log.info(colors.green(`+ ${getTypeStrFromPath(change.path)} ` +
|
|
1630
|
-
displayPath +
|
|
1631
|
-
colors.gray(branchNote)));
|
|
1632
|
-
}
|
|
1633
|
-
else if (change.name === "deleted") {
|
|
1634
|
-
log.info(colors.red(`- ${getTypeStrFromPath(change.path)} ` +
|
|
1635
|
-
displayPath +
|
|
1636
|
-
colors.gray(branchNote)));
|
|
1637
|
-
}
|
|
1638
|
-
else if (change.name === "edited") {
|
|
1639
|
-
log.info(colors.yellow(`~ ${getTypeStrFromPath(change.path)} ` +
|
|
1640
|
-
displayPath +
|
|
1641
|
-
colors.gray(branchNote) +
|
|
1642
|
-
(change.codebase ? ` (codebase changed)` : "")));
|
|
1643
|
-
if (change.before != change.after) {
|
|
1644
|
-
if (change.path.endsWith(".yaml")) {
|
|
1645
|
-
try {
|
|
1646
|
-
showDiff(yamlStringify(yamlParseContent(change.path, change.before), yamlOptions), yamlStringify(yamlParseContent(change.path, change.after), yamlOptions));
|
|
1647
|
-
}
|
|
1648
|
-
catch {
|
|
1649
|
-
showDiff(change.before, change.after);
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
else {
|
|
1653
|
-
showDiff(change.before, change.after);
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1659
|
-
// function prettyDiff(diffs: Difference[]) {
|
|
1660
|
-
// for (const diff of diffs) {
|
|
1661
|
-
// let pathString = "";
|
|
1662
|
-
// for (const pathSegment of diff.path) {
|
|
1663
|
-
// if (typeof pathSegment === "string") {
|
|
1664
|
-
// pathString += ".";
|
|
1665
|
-
// pathString += pathSegment;
|
|
1666
|
-
// } else {
|
|
1667
|
-
// pathString += "[";
|
|
1668
|
-
// pathString += pathSegment;
|
|
1669
|
-
// pathString += "]";
|
|
1670
|
-
// }
|
|
1671
|
-
// }
|
|
1672
|
-
// if (diff.type === "REMOVE" || diff.type === "CHANGE") {
|
|
1673
|
-
// log.info(colors.red("- " + pathString + " = " + diff.oldValue));
|
|
1674
|
-
// }
|
|
1675
|
-
// if (diff.type === "CREATE" || diff.type === "CHANGE") {
|
|
1676
|
-
// log.info(colors.green("+ " + pathString + " = " + diff.value));
|
|
1677
|
-
// }
|
|
1678
|
-
// }
|
|
1679
|
-
// }
|
|
1680
|
-
function removeSuffix(str, suffix) {
|
|
1681
|
-
return str.slice(0, str.length - suffix.length);
|
|
1682
|
-
}
|
|
1683
|
-
export async function push(opts) {
|
|
1684
|
-
// Save original CLI options before merging with config file
|
|
1685
|
-
const originalCliOpts = { ...opts };
|
|
1686
|
-
// Load configuration from wmill.yaml and merge with CLI options
|
|
1687
|
-
opts = await mergeConfigWithConfigFile(opts);
|
|
1688
|
-
// Validate branch configuration early (skipped when --branch is used)
|
|
1689
|
-
try {
|
|
1690
|
-
await validateBranchConfiguration(opts, opts.branch);
|
|
1691
|
-
}
|
|
1692
|
-
catch (error) {
|
|
1693
|
-
if (error instanceof Error && error.message.includes("overrides")) {
|
|
1694
|
-
log.error(error.message);
|
|
1695
|
-
dntShim.Deno.exit(1);
|
|
1696
|
-
}
|
|
1697
|
-
throw error;
|
|
1698
|
-
}
|
|
1699
|
-
const workspace = await resolveWorkspace(opts, opts.branch);
|
|
1700
|
-
await requireLogin(opts);
|
|
1701
|
-
// Resolve effective sync options with branch awareness
|
|
1702
|
-
const effectiveOpts = await resolveEffectiveSyncOptions(workspace, opts, opts.promotion, opts.branch);
|
|
1703
|
-
// Extract specific items configuration BEFORE merging overwrites gitBranches
|
|
1704
|
-
const specificItems = getSpecificItemsForCurrentBranch(opts, opts.branch);
|
|
1705
|
-
// Merge CLI flags with resolved settings (CLI flags take precedence only for explicit overrides)
|
|
1706
|
-
opts = mergeCliWithEffectiveOptions(originalCliOpts, effectiveOpts);
|
|
1707
|
-
if (opts.lint) {
|
|
1708
|
-
log.info("Running lint validation before push...");
|
|
1709
|
-
const lintReport = await runLint(opts);
|
|
1710
|
-
printReport(lintReport, !!opts.jsonOutput);
|
|
1711
|
-
if (!lintReport.success) {
|
|
1712
|
-
log.error(colors.red("Push aborted due to lint failures."));
|
|
1713
|
-
dntShim.Deno.exit(1);
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
if (opts.locksRequired) {
|
|
1717
|
-
log.info("Checking for missing locks...");
|
|
1718
|
-
const lockIssues = await checkMissingLocks(opts);
|
|
1719
|
-
if (lockIssues.length > 0) {
|
|
1720
|
-
for (const issue of lockIssues) {
|
|
1721
|
-
for (const error of issue.errors) {
|
|
1722
|
-
log.error(colors.red(` ${issue.path}: ${error}`));
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
log.error(colors.red(`\nPush aborted: ${lockIssues.length} script(s) missing locks.`));
|
|
1726
|
-
dntShim.Deno.exit(1);
|
|
1727
|
-
}
|
|
1728
|
-
log.info(colors.green("All scripts have valid locks."));
|
|
1729
|
-
}
|
|
1730
|
-
const codebases = await listSyncCodebases(opts);
|
|
1731
|
-
if (opts.raw) {
|
|
1732
|
-
log.info("--raw is now the default, you can remove it as a flag");
|
|
1733
|
-
}
|
|
1734
|
-
if (opts.stateful) {
|
|
1735
|
-
if (!opts.skipPull) {
|
|
1736
|
-
log.info(colors.gray("You need to be up-to-date before pushing, pulling first."));
|
|
1737
|
-
await pull(opts);
|
|
1738
|
-
log.info(colors.green("Pull done, now pushing."));
|
|
1739
|
-
log.info("\n");
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
log.info(colors.gray("Computing the files to update on the remote to match local (taking wmill.yaml includes/excludes into account)"));
|
|
1743
|
-
let resourceTypeToFormatExtension = {};
|
|
1744
|
-
try {
|
|
1745
|
-
resourceTypeToFormatExtension = (await wmill.fileResourceTypeToFileExtMap({
|
|
1746
|
-
workspace: workspace.workspaceId,
|
|
1747
|
-
}));
|
|
1748
|
-
}
|
|
1749
|
-
catch {
|
|
1750
|
-
// ignore
|
|
1751
|
-
}
|
|
1752
|
-
const remote = ZipFSElement((await downloadZip(workspace, opts.plainSecrets, opts.skipVariables, opts.skipResources, opts.skipResourceTypes, opts.skipSecrets, opts.includeSchedules, opts.includeTriggers, opts.includeUsers, opts.includeGroups, opts.includeSettings, opts.includeKey, opts.skipWorkspaceDependencies, opts.defaultTs)), !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, false);
|
|
1753
|
-
const local = await FSFSElement(path.join(dntShim.Deno.cwd(), ""), codebases, false);
|
|
1754
|
-
const changes = await compareDynFSElement(local, remote, await ignoreF(opts), opts.json ?? false, opts, true, codebases, false, specificItems, opts.branch, false);
|
|
1755
|
-
const rawWorkspaceDependencies = await getRawWorkspaceDependencies();
|
|
1756
|
-
const tracker = await buildTracker(changes);
|
|
1757
|
-
const staleScripts = [];
|
|
1758
|
-
const staleFlows = [];
|
|
1759
|
-
const staleApps = [];
|
|
1760
|
-
for (const change of tracker.scripts) {
|
|
1761
|
-
const stale = await generateScriptMetadataInternal(change, workspace, opts, true, true, rawWorkspaceDependencies, codebases, false);
|
|
1762
|
-
if (stale) {
|
|
1763
|
-
staleScripts.push(stale);
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
if (staleScripts.length > 0) {
|
|
1767
|
-
log.info("");
|
|
1768
|
-
log.warn("Stale scripts metadata found, you may want to update them using 'wmill script generate-metadata' before pushing:");
|
|
1769
|
-
for (const stale of staleScripts) {
|
|
1770
|
-
log.warn(stale);
|
|
1771
|
-
}
|
|
1772
|
-
log.info("");
|
|
1773
|
-
}
|
|
1774
|
-
for (const change of tracker.flows) {
|
|
1775
|
-
const stale = await generateFlowLockInternal(change, true, workspace, opts, false, true);
|
|
1776
|
-
if (stale) {
|
|
1777
|
-
staleFlows.push(stale);
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
if (staleFlows.length > 0) {
|
|
1781
|
-
log.warn("Stale flows locks found, you may want to update them using 'wmill flow generate-locks' before pushing:");
|
|
1782
|
-
for (const stale of staleFlows) {
|
|
1783
|
-
log.warn(stale);
|
|
1784
|
-
}
|
|
1785
|
-
log.info("");
|
|
1786
|
-
}
|
|
1787
|
-
for (const change of tracker.apps) {
|
|
1788
|
-
const stale = await generateAppLocksInternal(change, false, true, workspace, opts, true, true);
|
|
1789
|
-
if (stale) {
|
|
1790
|
-
staleApps.push(stale);
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
for (const change of tracker.rawApps) {
|
|
1794
|
-
const stale = await generateAppLocksInternal(change, true, true, workspace, opts, true, true);
|
|
1795
|
-
if (stale) {
|
|
1796
|
-
staleApps.push(stale);
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
if (staleApps.length > 0) {
|
|
1800
|
-
log.warn("Stale apps locks found, you may want to update them using 'wmill app generate-locks' before pushing:");
|
|
1801
|
-
for (const stale of staleApps) {
|
|
1802
|
-
log.warn(stale);
|
|
1803
|
-
}
|
|
1804
|
-
log.info("");
|
|
1805
|
-
}
|
|
1806
|
-
await fetchRemoteVersion(workspace);
|
|
1807
|
-
log.info(`remote (${workspace.name}) <- local: ${changes.length} changes to apply`);
|
|
1808
|
-
// Handle JSON output for dry-run
|
|
1809
|
-
if (opts.dryRun && opts.jsonOutput) {
|
|
1810
|
-
const result = {
|
|
1811
|
-
success: true,
|
|
1812
|
-
changes: changes.map((change) => ({
|
|
1813
|
-
type: change.name,
|
|
1814
|
-
path: change.path,
|
|
1815
|
-
...(change.name === "edited" && change.codebase
|
|
1816
|
-
? { codebase_changed: true }
|
|
1817
|
-
: {}),
|
|
1818
|
-
...(specificItems && isSpecificItem(change.path, specificItems)
|
|
1819
|
-
? {
|
|
1820
|
-
branch_specific: true,
|
|
1821
|
-
branch_specific_path: getBranchSpecificPath(change.path, specificItems, opts.branch),
|
|
1822
|
-
}
|
|
1823
|
-
: {}),
|
|
1824
|
-
})),
|
|
1825
|
-
total: changes.length,
|
|
1826
|
-
};
|
|
1827
|
-
console.log(JSON.stringify(result, null, 2));
|
|
1828
|
-
return;
|
|
1829
|
-
}
|
|
1830
|
-
if (changes.length > 0) {
|
|
1831
|
-
if (!opts.jsonOutput) {
|
|
1832
|
-
prettyChanges(changes, specificItems, opts.branch);
|
|
1833
|
-
}
|
|
1834
|
-
if (opts.dryRun) {
|
|
1835
|
-
log.info(colors.gray(`Dry run complete.`));
|
|
1836
|
-
return;
|
|
1837
|
-
}
|
|
1838
|
-
if (!opts.yes &&
|
|
1839
|
-
!(await Confirm.prompt({
|
|
1840
|
-
message: `Do you want to apply these ${changes.length} changes to the remote?`,
|
|
1841
|
-
default: true,
|
|
1842
|
-
}))) {
|
|
1843
|
-
return;
|
|
1844
|
-
}
|
|
1845
|
-
const start = performance.now();
|
|
1846
|
-
log.info(colors.gray(`Applying changes to files ...`));
|
|
1847
|
-
let stateful = opts.stateful;
|
|
1848
|
-
if (stateful) {
|
|
1849
|
-
try {
|
|
1850
|
-
await dntShim.Deno.stat(path.join(dntShim.Deno.cwd(), ".wmill"));
|
|
1851
|
-
}
|
|
1852
|
-
catch {
|
|
1853
|
-
stateful = false;
|
|
1854
|
-
}
|
|
1855
|
-
}
|
|
1856
|
-
// Group changes by base path (before first dot)
|
|
1857
|
-
const groupedChanges = new Map();
|
|
1858
|
-
for (const change of changes) {
|
|
1859
|
-
const basePath = change.path.split(".")[0];
|
|
1860
|
-
if (!groupedChanges.has(basePath)) {
|
|
1861
|
-
groupedChanges.set(basePath, []);
|
|
1862
|
-
}
|
|
1863
|
-
groupedChanges.get(basePath).push(change);
|
|
1864
|
-
}
|
|
1865
|
-
let parallelizationFactor = opts.parallel ?? 1;
|
|
1866
|
-
if (parallelizationFactor <= 0) {
|
|
1867
|
-
parallelizationFactor = 1;
|
|
1868
|
-
}
|
|
1869
|
-
const groupedChangesArray = Array.from(groupedChanges.entries());
|
|
1870
|
-
log.info(`found changes for ${groupedChangesArray.length} items with a total of ${groupedChangesArray.reduce((acc, [_, changes]) => acc + changes.length, 0)} files to process`);
|
|
1871
|
-
if (parallelizationFactor > 1) {
|
|
1872
|
-
log.info(`Parallelizing ${parallelizationFactor} changes at a time`);
|
|
1873
|
-
}
|
|
1874
|
-
// Create a pool of workers that processes items as they become available
|
|
1875
|
-
const pool = new Set();
|
|
1876
|
-
const queue = [...groupedChangesArray];
|
|
1877
|
-
// Cache git branch at the start to avoid repeated execSync calls per change
|
|
1878
|
-
const cachedBranchForPush = opts.branch || (isGitRepository() ? getCurrentGitBranch() : null);
|
|
1879
|
-
while (queue.length > 0 || pool.size > 0) {
|
|
1880
|
-
// Fill the pool until we reach parallelizationFactor
|
|
1881
|
-
while (pool.size < parallelizationFactor && queue.length > 0) {
|
|
1882
|
-
let [_basePath, changes] = queue.shift();
|
|
1883
|
-
const promise = (async () => {
|
|
1884
|
-
const alreadySynced = [];
|
|
1885
|
-
const isRawApp = isRawAppFile(changes[0].path);
|
|
1886
|
-
if (isRawApp) {
|
|
1887
|
-
const deleteRawApp = changes.find((change) => change.name === "deleted" &&
|
|
1888
|
-
isRawAppFolderMetadataFile(change.path));
|
|
1889
|
-
if (deleteRawApp) {
|
|
1890
|
-
changes = [deleteRawApp];
|
|
1891
|
-
}
|
|
1892
|
-
else {
|
|
1893
|
-
changes.splice(1, changes.length - 1);
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
for await (const change of changes) {
|
|
1897
|
-
let stateTarget = undefined;
|
|
1898
|
-
if (stateful) {
|
|
1899
|
-
try {
|
|
1900
|
-
stateTarget = path.join(dntShim.Deno.cwd(), ".wmill", change.path);
|
|
1901
|
-
await dntShim.Deno.stat(stateTarget);
|
|
1902
|
-
}
|
|
1903
|
-
catch {
|
|
1904
|
-
stateTarget = undefined;
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
if (change.name === "edited") {
|
|
1908
|
-
if (await handleScriptMetadata(change.path, workspace, alreadySynced, opts.message, rawWorkspaceDependencies, codebases, opts)) {
|
|
1909
|
-
if (stateTarget) {
|
|
1910
|
-
await dntShim.Deno.writeTextFile(stateTarget, change.after);
|
|
1911
|
-
}
|
|
1912
|
-
continue;
|
|
1913
|
-
}
|
|
1914
|
-
else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, rawWorkspaceDependencies, codebases)) {
|
|
1915
|
-
if (stateTarget) {
|
|
1916
|
-
await dntShim.Deno.writeTextFile(stateTarget, change.after);
|
|
1917
|
-
}
|
|
1918
|
-
continue;
|
|
1919
|
-
}
|
|
1920
|
-
if (stateTarget) {
|
|
1921
|
-
await ensureDir(path.dirname(stateTarget));
|
|
1922
|
-
log.info(`Editing ${getTypeStrFromPath(change.path)} ${change.path}`);
|
|
1923
|
-
}
|
|
1924
|
-
if (isFileResource(change.path)) {
|
|
1925
|
-
const resourceFilePath = await findResourceFile(change.path);
|
|
1926
|
-
if (!alreadySynced.includes(resourceFilePath)) {
|
|
1927
|
-
alreadySynced.push(resourceFilePath);
|
|
1928
|
-
const newObj = parseFromPath(resourceFilePath, await dntShim.Deno.readTextFile(resourceFilePath));
|
|
1929
|
-
// For branch-specific resources, push to the base path on the workspace server
|
|
1930
|
-
// This ensures branch-specific files are stored with their base names in the workspace
|
|
1931
|
-
let serverPath = resourceFilePath;
|
|
1932
|
-
const currentBranch = cachedBranchForPush;
|
|
1933
|
-
if (currentBranch && isBranchSpecificFile(resourceFilePath)) {
|
|
1934
|
-
serverPath = fromBranchSpecificPath(resourceFilePath, currentBranch);
|
|
1935
|
-
}
|
|
1936
|
-
await pushResource(workspace.workspaceId, serverPath, undefined, newObj, resourceFilePath);
|
|
1937
|
-
if (stateTarget) {
|
|
1938
|
-
await dntShim.Deno.writeTextFile(stateTarget, change.after);
|
|
1939
|
-
}
|
|
1940
|
-
continue;
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
const oldObj = parseFromPath(change.path, change.before);
|
|
1944
|
-
const newObj = parseFromPath(change.path, change.after);
|
|
1945
|
-
// Check if this is a branch-specific item and get the original branch-specific path
|
|
1946
|
-
let originalBranchSpecificPath;
|
|
1947
|
-
if (specificItems && isSpecificItem(change.path, specificItems)) {
|
|
1948
|
-
originalBranchSpecificPath = getBranchSpecificPath(change.path, specificItems, opts.branch);
|
|
1949
|
-
}
|
|
1950
|
-
await pushObj(workspace.workspaceId, change.path, oldObj, newObj, opts.plainSecrets ?? false, alreadySynced, opts.message, originalBranchSpecificPath);
|
|
1951
|
-
if (stateTarget) {
|
|
1952
|
-
await dntShim.Deno.writeTextFile(stateTarget, change.after);
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
|
-
else if (change.name === "added") {
|
|
1956
|
-
if (change.path.endsWith(".script.json") ||
|
|
1957
|
-
change.path.endsWith(".script.yaml") ||
|
|
1958
|
-
change.path.endsWith(".lock") ||
|
|
1959
|
-
isFileResource(change.path)) {
|
|
1960
|
-
continue;
|
|
1961
|
-
}
|
|
1962
|
-
else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, rawWorkspaceDependencies, codebases)) {
|
|
1963
|
-
continue;
|
|
1964
|
-
}
|
|
1965
|
-
if (stateTarget) {
|
|
1966
|
-
await ensureDir(path.dirname(stateTarget));
|
|
1967
|
-
log.info(`Adding ${getTypeStrFromPath(change.path)} ${change.path}`);
|
|
1968
|
-
}
|
|
1969
|
-
const obj = parseFromPath(change.path, change.content);
|
|
1970
|
-
// Determine the actual local file path for this change
|
|
1971
|
-
// For branch-specific items, we read from branch-specific files but push to base server paths
|
|
1972
|
-
let localFilePath = change.path;
|
|
1973
|
-
if (specificItems && isSpecificItem(change.path, specificItems)) {
|
|
1974
|
-
const branchSpecificPath = getBranchSpecificPath(change.path, specificItems, opts.branch);
|
|
1975
|
-
if (branchSpecificPath) {
|
|
1976
|
-
localFilePath = branchSpecificPath;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
await pushObj(workspace.workspaceId, change.path, undefined, obj, opts.plainSecrets ?? false, [], opts.message, localFilePath);
|
|
1980
|
-
if (stateTarget) {
|
|
1981
|
-
await dntShim.Deno.writeTextFile(stateTarget, change.content);
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
|
-
else if (change.name === "deleted") {
|
|
1985
|
-
if (change.path.endsWith(".lock")) {
|
|
1986
|
-
continue;
|
|
1987
|
-
}
|
|
1988
|
-
const typ = getTypeStrFromPath(change.path);
|
|
1989
|
-
if (typ == "script") {
|
|
1990
|
-
log.info(`Archiving ${typ} ${change.path}`);
|
|
1991
|
-
}
|
|
1992
|
-
else {
|
|
1993
|
-
log.info(`Deleting ${typ} ${change.path}`);
|
|
1994
|
-
}
|
|
1995
|
-
const workspaceId = workspace.workspaceId;
|
|
1996
|
-
const target = change.path.replaceAll(SEP, "/");
|
|
1997
|
-
switch (typ) {
|
|
1998
|
-
case "script": {
|
|
1999
|
-
await wmill.archiveScriptByPath({
|
|
2000
|
-
workspace: workspaceId,
|
|
2001
|
-
path: removeExtensionToPath(target),
|
|
2002
|
-
});
|
|
2003
|
-
break;
|
|
2004
|
-
}
|
|
2005
|
-
case "folder":
|
|
2006
|
-
await wmill.deleteFolder({
|
|
2007
|
-
workspace: workspaceId,
|
|
2008
|
-
name: change.path.split(SEP)[1],
|
|
2009
|
-
});
|
|
2010
|
-
break;
|
|
2011
|
-
case "resource":
|
|
2012
|
-
await wmill.deleteResource({
|
|
2013
|
-
workspace: workspaceId,
|
|
2014
|
-
path: removeSuffix(target, ".resource.json"),
|
|
2015
|
-
});
|
|
2016
|
-
break;
|
|
2017
|
-
case "resource-type":
|
|
2018
|
-
await wmill.deleteResourceType({
|
|
2019
|
-
workspace: workspaceId,
|
|
2020
|
-
path: removeSuffix(target, ".resource-type.json"),
|
|
2021
|
-
});
|
|
2022
|
-
break;
|
|
2023
|
-
case "flow":
|
|
2024
|
-
await wmill.deleteFlowByPath({
|
|
2025
|
-
workspace: workspaceId,
|
|
2026
|
-
path: removeSuffix(target, getDeleteSuffix("flow", "json")),
|
|
2027
|
-
});
|
|
2028
|
-
break;
|
|
2029
|
-
case "app":
|
|
2030
|
-
await wmill.deleteApp({
|
|
2031
|
-
workspace: workspaceId,
|
|
2032
|
-
path: removeSuffix(target, getDeleteSuffix("app", "json")),
|
|
2033
|
-
});
|
|
2034
|
-
break;
|
|
2035
|
-
case "raw_app":
|
|
2036
|
-
if (isRawAppFolderMetadataFile(target)) {
|
|
2037
|
-
// Delete the entire raw app
|
|
2038
|
-
await wmill.deleteApp({
|
|
2039
|
-
workspace: workspaceId,
|
|
2040
|
-
path: removeSuffix(target, getDeleteSuffix("raw_app", "json")),
|
|
2041
|
-
});
|
|
2042
|
-
}
|
|
2043
|
-
else {
|
|
2044
|
-
const rawAppFolder = extractFolderPath(target, "raw_app");
|
|
2045
|
-
let folderExists = false;
|
|
2046
|
-
if (rawAppFolder) {
|
|
2047
|
-
try {
|
|
2048
|
-
await dntShim.Deno.stat(rawAppFolder);
|
|
2049
|
-
folderExists = true;
|
|
2050
|
-
}
|
|
2051
|
-
catch {
|
|
2052
|
-
// folder doesn't exist
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
if (folderExists) {
|
|
2056
|
-
// For individual file deletions within a raw app,
|
|
2057
|
-
// re-push the entire raw app so the backend gets the updated file list
|
|
2058
|
-
// (the deleted file won't be included in the push)
|
|
2059
|
-
await pushObj(workspaceId, target, undefined, undefined, opts.plainSecrets ?? false, alreadySynced, opts.message);
|
|
2060
|
-
}
|
|
2061
|
-
else {
|
|
2062
|
-
// The entire raw app folder was deleted locally,
|
|
2063
|
-
// delete the raw app on the server
|
|
2064
|
-
const remotePath = extractResourceName(target, "raw_app");
|
|
2065
|
-
if (remotePath) {
|
|
2066
|
-
await wmill.deleteApp({
|
|
2067
|
-
workspace: workspaceId,
|
|
2068
|
-
path: remotePath,
|
|
2069
|
-
});
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
break;
|
|
2074
|
-
case "schedule":
|
|
2075
|
-
await wmill.deleteSchedule({
|
|
2076
|
-
workspace: workspaceId,
|
|
2077
|
-
path: removeSuffix(target, ".schedule.json"),
|
|
2078
|
-
});
|
|
2079
|
-
break;
|
|
2080
|
-
case "http_trigger":
|
|
2081
|
-
await wmill.deleteHttpTrigger({
|
|
2082
|
-
workspace: workspaceId,
|
|
2083
|
-
path: removeSuffix(target, ".http_trigger.json"),
|
|
2084
|
-
});
|
|
2085
|
-
break;
|
|
2086
|
-
case "websocket_trigger":
|
|
2087
|
-
await wmill.deleteWebsocketTrigger({
|
|
2088
|
-
workspace: workspaceId,
|
|
2089
|
-
path: removeSuffix(target, ".websocket_trigger.json"),
|
|
2090
|
-
});
|
|
2091
|
-
break;
|
|
2092
|
-
case "kafka_trigger":
|
|
2093
|
-
await wmill.deleteKafkaTrigger({
|
|
2094
|
-
workspace: workspaceId,
|
|
2095
|
-
path: removeSuffix(target, ".kafka_trigger.json"),
|
|
2096
|
-
});
|
|
2097
|
-
break;
|
|
2098
|
-
case "nats_trigger":
|
|
2099
|
-
await wmill.deleteNatsTrigger({
|
|
2100
|
-
workspace: workspaceId,
|
|
2101
|
-
path: removeSuffix(target, ".nats_trigger.json"),
|
|
2102
|
-
});
|
|
2103
|
-
break;
|
|
2104
|
-
case "postgres_trigger":
|
|
2105
|
-
await wmill.deletePostgresTrigger({
|
|
2106
|
-
workspace: workspaceId,
|
|
2107
|
-
path: removeSuffix(target, ".postgres_trigger.json"),
|
|
2108
|
-
});
|
|
2109
|
-
break;
|
|
2110
|
-
case "mqtt_trigger":
|
|
2111
|
-
await wmill.deleteMqttTrigger({
|
|
2112
|
-
workspace: workspaceId,
|
|
2113
|
-
path: removeSuffix(target, ".mqtt_trigger.json"),
|
|
2114
|
-
});
|
|
2115
|
-
break;
|
|
2116
|
-
case "sqs_trigger":
|
|
2117
|
-
await wmill.deleteSqsTrigger({
|
|
2118
|
-
workspace: workspaceId,
|
|
2119
|
-
path: removeSuffix(target, ".sqs_trigger.json"),
|
|
2120
|
-
});
|
|
2121
|
-
break;
|
|
2122
|
-
case "gcp_trigger":
|
|
2123
|
-
await wmill.deleteGcpTrigger({
|
|
2124
|
-
workspace: workspaceId,
|
|
2125
|
-
path: removeSuffix(target, ".gcp_trigger.json"),
|
|
2126
|
-
});
|
|
2127
|
-
break;
|
|
2128
|
-
case "email_trigger":
|
|
2129
|
-
await wmill.deleteEmailTrigger({
|
|
2130
|
-
workspace: workspaceId,
|
|
2131
|
-
path: removeSuffix(target, ".email_trigger.json"),
|
|
2132
|
-
});
|
|
2133
|
-
break;
|
|
2134
|
-
case "native_trigger": {
|
|
2135
|
-
const triggerInfo = extractNativeTriggerInfo(change.path);
|
|
2136
|
-
if (!triggerInfo) {
|
|
2137
|
-
throw new Error(`Invalid native trigger path: ${change.path}`);
|
|
2138
|
-
}
|
|
2139
|
-
await wmill.deleteNativeTrigger({
|
|
2140
|
-
workspace: workspaceId,
|
|
2141
|
-
serviceName: triggerInfo.serviceName,
|
|
2142
|
-
externalId: triggerInfo.externalId,
|
|
2143
|
-
});
|
|
2144
|
-
break;
|
|
2145
|
-
}
|
|
2146
|
-
case "variable":
|
|
2147
|
-
await wmill.deleteVariable({
|
|
2148
|
-
workspace: workspaceId,
|
|
2149
|
-
path: removeSuffix(target, ".variable.json"),
|
|
2150
|
-
});
|
|
2151
|
-
break;
|
|
2152
|
-
case "user": {
|
|
2153
|
-
const users = await wmill.listUsers({
|
|
2154
|
-
workspace: workspaceId,
|
|
2155
|
-
});
|
|
2156
|
-
const email = removeSuffix(removePathPrefix(change.path, "users"), ".user.json");
|
|
2157
|
-
const user = users.find((u) => u.email === email);
|
|
2158
|
-
if (!user) {
|
|
2159
|
-
throw new Error(`User ${email} not found`);
|
|
2160
|
-
}
|
|
2161
|
-
await wmill.deleteUser({
|
|
2162
|
-
workspace: workspaceId,
|
|
2163
|
-
username: user.username,
|
|
2164
|
-
});
|
|
2165
|
-
break;
|
|
2166
|
-
}
|
|
2167
|
-
case "group":
|
|
2168
|
-
await wmill.deleteGroup({
|
|
2169
|
-
workspace: workspaceId,
|
|
2170
|
-
name: removeSuffix(removePathPrefix(change.path, "groups"), ".group.json"),
|
|
2171
|
-
});
|
|
2172
|
-
break;
|
|
2173
|
-
case "workspace_dependencies":
|
|
2174
|
-
const relativePath = removePathPrefix(change.path, "dependencies");
|
|
2175
|
-
const res = workspaceDependenciesPathToLanguageAndFilename(change.path);
|
|
2176
|
-
if (!res) {
|
|
2177
|
-
throw new Error(`Unknown workspace dependencies file format: ${change.path}`);
|
|
2178
|
-
}
|
|
2179
|
-
const { name, language } = res;
|
|
2180
|
-
await wmill.deleteWorkspaceDependencies({
|
|
2181
|
-
workspace: workspaceId,
|
|
2182
|
-
language,
|
|
2183
|
-
name,
|
|
2184
|
-
});
|
|
2185
|
-
break;
|
|
2186
|
-
default:
|
|
2187
|
-
break;
|
|
2188
|
-
}
|
|
2189
|
-
if (stateTarget) {
|
|
2190
|
-
try {
|
|
2191
|
-
await dntShim.Deno.remove(stateTarget);
|
|
2192
|
-
}
|
|
2193
|
-
catch {
|
|
2194
|
-
// state target may not exist already
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
})();
|
|
2200
|
-
pool.add(promise);
|
|
2201
|
-
// Remove from pool when complete
|
|
2202
|
-
promise.then(() => pool.delete(promise));
|
|
2203
|
-
}
|
|
2204
|
-
// Wait for at least one task to complete before continuing
|
|
2205
|
-
if (pool.size > 0) {
|
|
2206
|
-
await Promise.race(pool);
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
if (opts.jsonOutput) {
|
|
2210
|
-
const result = {
|
|
2211
|
-
success: true,
|
|
2212
|
-
message: `All ${changes.length} changes pushed to the remote workspace ${workspace.workspaceId} named ${workspace.name}`,
|
|
2213
|
-
changes: changes.map((change) => ({
|
|
2214
|
-
type: change.name,
|
|
2215
|
-
path: change.path,
|
|
2216
|
-
...(change.name === "edited" && change.codebase
|
|
2217
|
-
? { codebase_changed: true }
|
|
2218
|
-
: {}),
|
|
2219
|
-
...(specificItems && isSpecificItem(change.path, specificItems)
|
|
2220
|
-
? {
|
|
2221
|
-
branch_specific: true,
|
|
2222
|
-
branch_specific_path: getBranchSpecificPath(change.path, specificItems, opts.branch),
|
|
2223
|
-
}
|
|
2224
|
-
: {}),
|
|
2225
|
-
})),
|
|
2226
|
-
total: changes.length,
|
|
2227
|
-
duration_ms: Math.round(performance.now() - start),
|
|
2228
|
-
};
|
|
2229
|
-
console.log(JSON.stringify(result, null, 2));
|
|
2230
|
-
}
|
|
2231
|
-
else {
|
|
2232
|
-
log.info(colors.bold.green.underline(`\nDone! All ${changes.length} changes pushed to the remote workspace ${workspace.workspaceId} named ${workspace.name} (${(performance.now() - start).toFixed(0)}ms)`));
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
else if (opts.jsonOutput) {
|
|
2236
|
-
console.log(JSON.stringify({ success: true, message: "No changes to push", total: 0 }, null, 2));
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
const command = new Command()
|
|
2240
|
-
.description("sync local with a remote workspaces or the opposite (push or pull)")
|
|
2241
|
-
.action(() => log.info("2 actions available, pull and push. Use -h to display help."))
|
|
2242
|
-
.command("pull")
|
|
2243
|
-
.description("Pull any remote changes and apply them locally.")
|
|
2244
|
-
.option("--yes", "Pull without needing confirmation")
|
|
2245
|
-
.option("--dry-run", "Show changes that would be pulled without actually pushing")
|
|
2246
|
-
.option("--plain-secrets", "Pull secrets as plain text")
|
|
2247
|
-
.option("--json", "Use JSON instead of YAML")
|
|
2248
|
-
.option("--skip-variables", "Skip syncing variables (including secrets)")
|
|
2249
|
-
.option("--skip-secrets", "Skip syncing only secrets variables")
|
|
2250
|
-
.option("--skip-resources", "Skip syncing resources")
|
|
2251
|
-
.option("--skip-resource-types", "Skip syncing resource types")
|
|
2252
|
-
.option("--skip-scripts", "Skip syncing scripts")
|
|
2253
|
-
.option("--skip-flows", "Skip syncing flows")
|
|
2254
|
-
.option("--skip-apps", "Skip syncing apps")
|
|
2255
|
-
.option("--skip-folders", "Skip syncing folders")
|
|
2256
|
-
.option("--skip-workspace-dependencies", "Skip syncing workspace dependencies")
|
|
2257
|
-
// .option("--skip-scripts-metadata", "Skip syncing scripts metadata, focus solely on logic")
|
|
2258
|
-
.option("--include-schedules", "Include syncing schedules")
|
|
2259
|
-
.option("--include-triggers", "Include syncing triggers")
|
|
2260
|
-
.option("--include-users", "Include syncing users")
|
|
2261
|
-
.option("--include-groups", "Include syncing groups")
|
|
2262
|
-
.option("--include-settings", "Include syncing workspace settings")
|
|
2263
|
-
.option("--include-key", "Include workspace encryption key")
|
|
2264
|
-
.option("--skip-branch-validation", "Skip git branch validation and prompts")
|
|
2265
|
-
.option("--json-output", "Output results in JSON format")
|
|
2266
|
-
.option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes")
|
|
2267
|
-
.option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account. Overrides wmill.yaml excludes")
|
|
2268
|
-
.option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy")
|
|
2269
|
-
.option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist")
|
|
2270
|
-
.option("--promotion <branch:string>", "Use promotionOverrides from the specified branch instead of regular overrides")
|
|
2271
|
-
.option("--branch <branch:string>", "Override the current git branch (works even outside a git repository)")
|
|
2272
|
-
// deno-lint-ignore no-explicit-any
|
|
2273
|
-
.action(pull)
|
|
2274
|
-
.command("push")
|
|
2275
|
-
.description("Push any local changes and apply them remotely.")
|
|
2276
|
-
.option("--yes", "Push without needing confirmation")
|
|
2277
|
-
.option("--dry-run", "Show changes that would be pushed without actually pushing")
|
|
2278
|
-
.option("--plain-secrets", "Push secrets as plain text")
|
|
2279
|
-
.option("--json", "Use JSON instead of YAML")
|
|
2280
|
-
.option("--skip-variables", "Skip syncing variables (including secrets)")
|
|
2281
|
-
.option("--skip-secrets", "Skip syncing only secrets variables")
|
|
2282
|
-
.option("--skip-resources", "Skip syncing resources")
|
|
2283
|
-
.option("--skip-resource-types", "Skip syncing resource types")
|
|
2284
|
-
.option("--skip-scripts", "Skip syncing scripts")
|
|
2285
|
-
.option("--skip-flows", "Skip syncing flows")
|
|
2286
|
-
.option("--skip-apps", "Skip syncing apps")
|
|
2287
|
-
.option("--skip-folders", "Skip syncing folders")
|
|
2288
|
-
.option("--skip-workspace-dependencies", "Skip syncing workspace dependencies")
|
|
2289
|
-
// .option("--skip-scripts-metadata", "Skip syncing scripts metadata, focus solely on logic")
|
|
2290
|
-
.option("--include-schedules", "Include syncing schedules")
|
|
2291
|
-
.option("--include-triggers", "Include syncing triggers")
|
|
2292
|
-
.option("--include-users", "Include syncing users")
|
|
2293
|
-
.option("--include-groups", "Include syncing groups")
|
|
2294
|
-
.option("--include-settings", "Include syncing workspace settings")
|
|
2295
|
-
.option("--include-key", "Include workspace encryption key")
|
|
2296
|
-
.option("--skip-branch-validation", "Skip git branch validation and prompts")
|
|
2297
|
-
.option("--json-output", "Output results in JSON format")
|
|
2298
|
-
.option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)")
|
|
2299
|
-
.option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.")
|
|
2300
|
-
.option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy")
|
|
2301
|
-
.option("--message <message:string>", "Include a message that will be added to all scripts/flows/apps updated during this push")
|
|
2302
|
-
.option("--parallel <number>", "Number of changes to process in parallel")
|
|
2303
|
-
.option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist")
|
|
2304
|
-
.option("--branch <branch:string>", "Override the current git branch (works even outside a git repository)")
|
|
2305
|
-
.option("--lint", "Run lint validation before pushing")
|
|
2306
|
-
.option("--locks-required", "Fail if scripts or flow inline scripts that need locks have no locks")
|
|
2307
|
-
// deno-lint-ignore no-explicit-any
|
|
2308
|
-
.action(push);
|
|
2309
|
-
export default command;
|