windmill-cli 1.518.2 → 1.518.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/deps/jsr.io/@std/fs/1.0.16/_create_walk_entry.js +34 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/copy.js +314 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/empty_dir.js +87 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/ensure_file.js +90 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/ensure_link.js +61 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/ensure_symlink.js +157 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/expand_glob.js +416 -0
- package/esm/deps/jsr.io/@std/fs/1.0.16/walk.js +846 -0
- package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +36 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +49 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +62 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +89 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +44 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +112 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +81 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +74 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +134 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +49 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_chars.js +48 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.js +707 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_loader_state.js +1409 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_schema.js +112 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/bool.js +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/float.js +96 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/int.js +159 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/map.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/merge.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/nil.js +22 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/omap.js +29 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.js +19 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.js +30 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/seq.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/set.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/str.js +9 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.js +81 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.js +20 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_type.js +6 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/_utils.js +13 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/mod.js +52 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/parse.js +93 -0
- package/esm/deps/jsr.io/@std/yaml/1.0.5/stringify.js +33 -0
- package/esm/deps.js +5 -5
- package/esm/gen/services.gen.js +66 -0
- package/esm/src/commands/app/apps.js +124 -0
- package/esm/src/commands/dev/dev.js +145 -0
- package/esm/src/commands/flow/flow.js +236 -0
- package/esm/src/commands/folder/folder.js +101 -0
- package/esm/src/commands/gitsync-settings/converter.js +134 -0
- package/esm/src/commands/gitsync-settings/gitsync-settings.js +2 -0
- package/esm/src/commands/gitsync-settings/index.js +28 -0
- package/esm/src/commands/gitsync-settings/legacySettings.js +119 -0
- package/esm/src/commands/gitsync-settings/pull.js +372 -0
- package/esm/src/commands/gitsync-settings/push.js +263 -0
- package/esm/src/commands/gitsync-settings/types.js +37 -0
- package/esm/src/commands/gitsync-settings/utils.js +129 -0
- package/esm/src/commands/hub/hub.js +65 -0
- package/esm/src/commands/init/init.js +214 -0
- package/esm/src/commands/instance/instance.js +569 -0
- package/esm/src/commands/queues/queues.js +117 -0
- package/esm/src/commands/resource/resource.js +93 -0
- package/esm/src/commands/resource-type/resource-type.js +85 -0
- package/esm/src/commands/schedule/schedule.js +101 -0
- package/esm/src/commands/script/script.js +753 -0
- package/esm/src/commands/sync/pull.js +37 -0
- package/esm/src/commands/sync/sync.js +1563 -0
- package/esm/src/commands/trigger/trigger.js +182 -0
- package/esm/src/commands/user/user.js +428 -0
- package/esm/src/commands/variable/variable.js +121 -0
- package/esm/src/commands/worker-groups/worker_groups.js +96 -0
- package/esm/src/commands/workers/workers.js +79 -0
- package/esm/src/commands/workspace/workspace.js +348 -0
- package/esm/src/core/auth.js +40 -0
- package/esm/src/core/branch-profiles.js +46 -0
- package/esm/src/core/conf.js +162 -0
- package/esm/src/core/context.js +263 -0
- package/esm/src/core/login.js +100 -0
- package/esm/src/core/settings.js +432 -0
- package/esm/src/core/store.js +19 -0
- package/esm/src/main.js +174 -0
- package/esm/src/types.js +223 -0
- package/esm/src/utils/codebase.js +24 -0
- package/esm/src/utils/git.js +29 -0
- package/esm/src/utils/metadata.js +623 -0
- package/esm/src/utils/upgrade.js +48 -0
- package/esm/src/utils/utils.js +176 -0
- package/esm/windmill-utils-internal/src/config/config.js +190 -0
- package/esm/windmill-utils-internal/src/inline-scripts/extractor.js +13 -9
- package/esm/windmill-utils-internal/src/path-utils/path-assigner.js +25 -9
- package/package.json +6 -6
- package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +21 -0
- package/types/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fmt/1.0.6/colors.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/_create_walk_entry.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/_get_file_info_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/_is_same_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/_is_subdir.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/_to_path_string.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/copy.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/empty_dir.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/ensure_dir.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/ensure_file.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/ensure_link.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/ensure_symlink.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/eol.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/exists.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/expand_glob.d.ts +267 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/expand_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/move.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fs/1.0.16/walk.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts +28 -0
- package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +27 -0
- package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +40 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +32 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +37 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +33 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +40 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +23 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +22 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts +99 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts +60 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +1 -0
- package/types/deps.d.ts +5 -5
- package/types/gen/services.gen.d.ts +34 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +43 -3
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/apps.d.ts +17 -0
- package/types/src/commands/app/apps.d.ts.map +1 -0
- package/types/src/commands/dev/dev.d.ts +12 -0
- package/types/src/commands/dev/dev.d.ts.map +1 -0
- package/types/src/commands/flow/flow.d.ts +28 -0
- package/types/src/commands/flow/flow.d.ts.map +1 -0
- package/types/src/commands/folder/folder.d.ts +19 -0
- package/types/src/commands/folder/folder.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/converter.d.ts +10 -0
- package/types/src/commands/gitsync-settings/converter.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/gitsync-settings.d.ts +3 -0
- package/types/src/commands/gitsync-settings/gitsync-settings.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/index.d.ts +25 -0
- package/types/src/commands/gitsync-settings/index.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/legacySettings.d.ts +4 -0
- package/types/src/commands/gitsync-settings/legacySettings.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/pull.d.ts +14 -0
- package/types/src/commands/gitsync-settings/pull.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/push.d.ts +10 -0
- package/types/src/commands/gitsync-settings/push.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/types.d.ts +35 -0
- package/types/src/commands/gitsync-settings/types.d.ts.map +1 -0
- package/types/src/commands/gitsync-settings/utils.d.ts +36 -0
- package/types/src/commands/gitsync-settings/utils.d.ts.map +1 -0
- package/types/src/commands/hub/hub.d.ts +12 -0
- package/types/src/commands/hub/hub.d.ts.map +1 -0
- package/types/src/commands/init/init.d.ts +34 -0
- package/types/src/commands/init/init.d.ts.map +1 -0
- package/types/src/commands/instance/instance.d.ts +46 -0
- package/types/src/commands/instance/instance.d.ts.map +1 -0
- package/types/src/commands/queues/queues.d.ts +14 -0
- package/types/src/commands/queues/queues.d.ts.map +1 -0
- package/types/src/commands/resource/resource.d.ts +18 -0
- package/types/src/commands/resource/resource.d.ts.map +1 -0
- package/types/src/commands/resource-type/resource-type.d.ts +16 -0
- package/types/src/commands/resource-type/resource-type.d.ts.map +1 -0
- package/types/src/commands/schedule/schedule.d.ts +21 -0
- package/types/src/commands/schedule/schedule.d.ts.map +1 -0
- package/types/src/commands/script/script.d.ts +51 -0
- package/types/src/commands/script/script.d.ts.map +1 -0
- package/types/src/commands/sync/pull.d.ts +12 -0
- package/types/src/commands/sync/pull.d.ts.map +1 -0
- package/types/src/commands/sync/sync.d.ts +128 -0
- package/types/src/commands/sync/sync.d.ts.map +1 -0
- package/types/src/commands/trigger/trigger.d.ts +24 -0
- package/types/src/commands/trigger/trigger.d.ts.map +1 -0
- package/types/src/commands/user/user.d.ts +34 -0
- package/types/src/commands/user/user.d.ts.map +1 -0
- package/types/src/commands/variable/variable.d.ts +23 -0
- package/types/src/commands/variable/variable.d.ts.map +1 -0
- package/types/src/commands/worker-groups/worker_groups.d.ts +23 -0
- package/types/src/commands/worker-groups/worker_groups.d.ts.map +1 -0
- package/types/src/commands/workers/workers.d.ts +14 -0
- package/types/src/commands/workers/workers.d.ts.map +1 -0
- package/types/src/commands/workspace/workspace.d.ts +30 -0
- package/types/src/commands/workspace/workspace.d.ts.map +1 -0
- package/types/src/core/auth.d.ts +8 -0
- package/types/src/core/auth.d.ts.map +1 -0
- package/types/src/core/branch-profiles.d.ts +12 -0
- package/types/src/core/branch-profiles.d.ts.map +1 -0
- package/types/src/core/conf.d.ts +64 -0
- package/types/src/core/conf.d.ts.map +1 -0
- package/types/src/core/context.d.ts +13 -0
- package/types/src/core/context.d.ts.map +1 -0
- package/types/src/core/login.d.ts +5 -0
- package/types/src/core/login.d.ts.map +1 -0
- package/types/src/core/settings.d.ts +30 -0
- package/types/src/core/settings.d.ts.map +1 -0
- package/types/src/core/store.d.ts +2 -0
- package/types/src/core/store.d.ts.map +1 -0
- package/types/src/guidance/flow_guidance.d.ts.map +1 -0
- package/types/src/guidance/script_guidance.d.ts.map +1 -0
- package/types/src/main.d.ts +74 -0
- package/types/src/main.d.ts.map +1 -0
- package/types/src/types.d.ts.map +1 -0
- package/types/src/utils/codebase.d.ts +6 -0
- package/types/src/utils/codebase.d.ts.map +1 -0
- package/types/src/utils/git.d.ts +3 -0
- package/types/src/utils/git.d.ts.map +1 -0
- package/types/src/utils/local_encryption.d.ts.map +1 -0
- package/types/src/utils/metadata.d.ts +52 -0
- package/types/src/utils/metadata.d.ts.map +1 -0
- package/types/src/utils/script_common.d.ts.map +1 -0
- package/types/src/utils/upgrade.d.ts +21 -0
- package/types/src/utils/upgrade.d.ts.map +1 -0
- package/types/src/utils/utils.d.ts +20 -0
- package/types/src/utils/utils.d.ts.map +1 -0
- package/types/windmill-utils-internal/src/config/config.d.ts +12 -0
- package/types/windmill-utils-internal/src/config/config.d.ts.map +1 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +43 -3
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/inline-scripts/extractor.d.ts +1 -4
- package/types/windmill-utils-internal/src/inline-scripts/extractor.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/path-utils/path-assigner.d.ts +6 -6
- package/types/windmill-utils-internal/src/path-utils/path-assigner.d.ts.map +1 -1
- package/esm/apps.js +0 -124
- package/esm/auth.js +0 -40
- package/esm/codebase.js +0 -24
- package/esm/conf.js +0 -78
- package/esm/context.js +0 -121
- package/esm/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.js +0 -34
- package/esm/deps/jsr.io/@std/fs/1.0.19/_is_same_path.js +0 -17
- package/esm/deps/jsr.io/@std/fs/1.0.19/_is_subdir.js +0 -25
- package/esm/deps/jsr.io/@std/fs/1.0.19/_to_path_string.js +0 -13
- package/esm/deps/jsr.io/@std/fs/1.0.19/copy.js +0 -313
- package/esm/deps/jsr.io/@std/fs/1.0.19/empty_dir.js +0 -87
- package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_file.js +0 -90
- package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_link.js +0 -61
- package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.js +0 -156
- package/esm/deps/jsr.io/@std/fs/1.0.19/expand_glob.js +0 -415
- package/esm/deps/jsr.io/@std/fs/1.0.19/walk.js +0 -846
- package/esm/deps/jsr.io/@std/internal/1.0.10/_os.js +0 -12
- package/esm/deps/jsr.io/@std/internal/1.0.10/os.js +0 -5
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/glob_to_reg_exp.js +0 -234
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.1/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.1/basename.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.1/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.1.1/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.1/dirname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/extname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.1/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.1.1/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.1.1/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.1/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.1/mod.js +0 -216
- package/esm/deps/jsr.io/@std/path/1.1.1/normalize.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.1/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.1/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/basename.js +0 -52
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/dirname.js +0 -64
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/extname.js +0 -93
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/join.js +0 -45
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/normalize.js +0 -58
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.1/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.1/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.1/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.1/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.1/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/basename.js +0 -47
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/dirname.js +0 -113
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/extname.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/join.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/join_globs.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/normalize.js +0 -135
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.1/windows/to_namespaced_path.js +0 -49
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_chars.js +0 -48
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.js +0 -716
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_loader_state.js +0 -1427
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_schema.js +0 -107
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/bool.js +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/float.js +0 -96
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/int.js +0 -159
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/map.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/merge.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/nil.js +0 -22
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/omap.js +0 -29
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/pairs.js +0 -19
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/regexp.js +0 -30
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/seq.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/set.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/str.js +0 -9
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/timestamp.js +0 -81
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type/undefined.js +0 -20
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_type.js +0 -6
- package/esm/deps/jsr.io/@std/yaml/1.0.9/_utils.js +0 -13
- package/esm/deps/jsr.io/@std/yaml/1.0.9/mod.js +0 -52
- package/esm/deps/jsr.io/@std/yaml/1.0.9/parse.js +0 -93
- package/esm/deps/jsr.io/@std/yaml/1.0.9/stringify.js +0 -33
- package/esm/dev.js +0 -145
- package/esm/flow.js +0 -236
- package/esm/folder.js +0 -101
- package/esm/gitsync-settings.js +0 -984
- package/esm/hub.js +0 -65
- package/esm/instance.js +0 -569
- package/esm/login.js +0 -100
- package/esm/main.js +0 -337
- package/esm/metadata.js +0 -623
- package/esm/pull.js +0 -37
- package/esm/queues.js +0 -117
- package/esm/resource-type.js +0 -85
- package/esm/resource.js +0 -93
- package/esm/schedule.js +0 -101
- package/esm/script.js +0 -753
- package/esm/settings.js +0 -432
- package/esm/store.js +0 -76
- package/esm/sync.js +0 -1662
- package/esm/trigger.js +0 -182
- package/esm/types.js +0 -223
- package/esm/upgrade.js +0 -48
- package/esm/user.js +0 -428
- package/esm/utils.js +0 -168
- package/esm/variable.js +0 -121
- package/esm/worker_groups.js +0 -96
- package/esm/workers.js +0 -79
- package/esm/workspace.js +0 -314
- package/types/apps.d.ts +0 -17
- package/types/apps.d.ts.map +0 -1
- package/types/auth.d.ts +0 -8
- package/types/auth.d.ts.map +0 -1
- package/types/codebase.d.ts +0 -6
- package/types/codebase.d.ts.map +0 -1
- package/types/conf.d.ts +0 -55
- package/types/conf.d.ts.map +0 -1
- package/types/context.d.ts +0 -13
- package/types/context.d.ts.map +0 -1
- 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/fmt/1.0.8/colors.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/_is_same_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/_is_subdir.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/_to_path_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/copy.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/empty_dir.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/ensure_dir.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/ensure_file.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/ensure_link.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/eol.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/exists.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/expand_glob.d.ts +0 -267
- package/types/deps/jsr.io/@std/fs/1.0.19/expand_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/move.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fs/1.0.19/walk.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +0 -2
- package/types/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.10/os.d.ts +0 -3
- package/types/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/assert_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/normalize_string.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/strip_trailing_separators.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/_common/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/basename.d.ts +0 -27
- package/types/deps/jsr.io/@std/path/1.1.1/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/dirname.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.1/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/extname.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.1/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/is_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/join.d.ts +0 -23
- package/types/deps/jsr.io/@std/path/1.1.1/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/mod.d.ts +0 -213
- package/types/deps/jsr.io/@std/path/1.1.1/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/normalize.d.ts +0 -26
- package/types/deps/jsr.io/@std/path/1.1.1/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/_util.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/basename.d.ts +0 -39
- package/types/deps/jsr.io/@std/path/1.1.1/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/dirname.d.ts +0 -30
- package/types/deps/jsr.io/@std/path/1.1.1/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/extname.d.ts +0 -37
- package/types/deps/jsr.io/@std/path/1.1.1/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/join.d.ts +0 -31
- package/types/deps/jsr.io/@std/path/1.1.1/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/normalize.d.ts +0 -37
- package/types/deps/jsr.io/@std/path/1.1.1/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/posix/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/_util.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/basename.d.ts +0 -22
- package/types/deps/jsr.io/@std/path/1.1.1/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/dirname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.1/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/extname.d.ts +0 -17
- package/types/deps/jsr.io/@std/path/1.1.1/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/from_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/glob_to_regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/is_absolute.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/join.d.ts +0 -18
- package/types/deps/jsr.io/@std/path/1.1.1/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/join_globs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/normalize.d.ts +0 -19
- package/types/deps/jsr.io/@std/path/1.1.1/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/normalize_glob.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/relative.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/resolve.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/to_file_url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.1.1/windows/to_namespaced_path.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_chars.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.d.ts +0 -106
- package/types/deps/jsr.io/@std/yaml/1.0.9/_dumper_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_loader_state.d.ts +0 -66
- package/types/deps/jsr.io/@std/yaml/1.0.9/_loader_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_schema.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/binary.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/bool.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/float.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/int.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/map.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/merge.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/nil.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/omap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/pairs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/seq.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/timestamp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type/undefined.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.9/stringify.d.ts.map +0 -1
- package/types/dev.d.ts +0 -12
- package/types/dev.d.ts.map +0 -1
- package/types/flow.d.ts +0 -28
- package/types/flow.d.ts.map +0 -1
- package/types/flow_guidance.d.ts.map +0 -1
- package/types/folder.d.ts +0 -19
- package/types/folder.d.ts.map +0 -1
- package/types/gitsync-settings.d.ts +0 -40
- package/types/gitsync-settings.d.ts.map +0 -1
- package/types/hub.d.ts +0 -12
- package/types/hub.d.ts.map +0 -1
- package/types/instance.d.ts +0 -46
- package/types/instance.d.ts.map +0 -1
- package/types/local_encryption.d.ts.map +0 -1
- package/types/login.d.ts +0 -5
- package/types/login.d.ts.map +0 -1
- package/types/main.d.ts +0 -70
- package/types/main.d.ts.map +0 -1
- package/types/metadata.d.ts +0 -52
- package/types/metadata.d.ts.map +0 -1
- package/types/pull.d.ts +0 -12
- package/types/pull.d.ts.map +0 -1
- package/types/queues.d.ts +0 -14
- package/types/queues.d.ts.map +0 -1
- package/types/resource-type.d.ts +0 -16
- package/types/resource-type.d.ts.map +0 -1
- package/types/resource.d.ts +0 -18
- package/types/resource.d.ts.map +0 -1
- package/types/schedule.d.ts +0 -21
- package/types/schedule.d.ts.map +0 -1
- package/types/script.d.ts +0 -51
- package/types/script.d.ts.map +0 -1
- package/types/script_common.d.ts.map +0 -1
- package/types/script_guidance.d.ts.map +0 -1
- package/types/settings.d.ts +0 -30
- package/types/settings.d.ts.map +0 -1
- package/types/store.d.ts +0 -3
- package/types/store.d.ts.map +0 -1
- package/types/sync.d.ts +0 -130
- package/types/sync.d.ts.map +0 -1
- package/types/trigger.d.ts +0 -24
- package/types/trigger.d.ts.map +0 -1
- package/types/types.d.ts.map +0 -1
- package/types/upgrade.d.ts +0 -21
- package/types/upgrade.d.ts.map +0 -1
- package/types/user.d.ts +0 -34
- package/types/user.d.ts.map +0 -1
- package/types/utils.d.ts +0 -19
- package/types/utils.d.ts.map +0 -1
- package/types/variable.d.ts +0 -23
- package/types/variable.d.ts.map +0 -1
- package/types/worker_groups.d.ts +0 -24
- package/types/worker_groups.d.ts.map +0 -1
- package/types/workers.d.ts +0 -14
- package/types/workers.d.ts.map +0 -1
- package/types/workspace.d.ts +0 -28
- package/types/workspace.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/move.js +0 -0
- /package/esm/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/binary.js +0 -0
- /package/esm/{flow_guidance.js → src/guidance/flow_guidance.js} +0 -0
- /package/esm/{script_guidance.js → src/guidance/script_guidance.js} +0 -0
- /package/esm/{local_encryption.js → src/utils/local_encryption.js} +0 -0
- /package/esm/{script_common.js → src/utils/script_common.js} +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.6 → 1.0.5}/_types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.8 → 1.0.6}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.19 → 1.0.16}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.1 → 1.0.8}/windows/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_chars.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_schema.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/binary.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/bool.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/float.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/int.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/map.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/merge.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/nil.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/omap.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/pairs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/seq.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/str.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/timestamp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type/undefined.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/_utils.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.9 → 1.0.5}/stringify.d.ts +0 -0
- /package/types/{flow_guidance.d.ts → src/guidance/flow_guidance.d.ts} +0 -0
- /package/types/{script_guidance.d.ts → src/guidance/script_guidance.d.ts} +0 -0
- /package/types/{types.d.ts → src/types.d.ts} +0 -0
- /package/types/{local_encryption.d.ts → src/utils/local_encryption.d.ts} +0 -0
- /package/types/{script_common.d.ts → src/utils/script_common.d.ts} +0 -0
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
|
+
import { Select, path, Confirm, yamlStringify, yamlParseFile, Command, setClient, Table, } from "../../../deps.js";
|
|
3
|
+
import * as wmill from "../../../gen/services.gen.js";
|
|
4
|
+
import { Input, colors, log } from "../../../deps.js";
|
|
5
|
+
import { loginInteractive } from "../../core/login.js";
|
|
6
|
+
import { getActiveInstanceFilePath, getInstancesConfigFilePath } from "../../../windmill-utils-internal/src/config/config.js";
|
|
7
|
+
import { push, pull } from "../sync/sync.js";
|
|
8
|
+
import { showDiff } from "../../types.js";
|
|
9
|
+
import { pushInstanceUsers, pullInstanceUsers, pullInstanceGroups, pushInstanceGroups, } from "../user/user.js";
|
|
10
|
+
import { add as workspaceSetup, addWorkspace, removeWorkspace, setActiveWorkspace, } from "../workspace/workspace.js";
|
|
11
|
+
import { pushInstanceSettings, pullInstanceSettings, pullInstanceConfigs, pushInstanceConfigs, } from "../../core/settings.js";
|
|
12
|
+
import { deepEqual } from "../../utils/utils.js";
|
|
13
|
+
import { getActiveWorkspace } from "../workspace/workspace.js";
|
|
14
|
+
export async function allInstances() {
|
|
15
|
+
try {
|
|
16
|
+
const file = await getInstancesConfigFilePath();
|
|
17
|
+
const txt = await dntShim.Deno.readTextFile(file);
|
|
18
|
+
return txt
|
|
19
|
+
.split("\n")
|
|
20
|
+
.map((line) => {
|
|
21
|
+
if (line.length <= 2) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const instance = JSON.parse(line);
|
|
25
|
+
return instance;
|
|
26
|
+
})
|
|
27
|
+
.filter(Boolean);
|
|
28
|
+
}
|
|
29
|
+
catch (_) {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export async function addInstance(opts, instanceName, remote, token) {
|
|
34
|
+
if (!remote) {
|
|
35
|
+
remote = await Input.prompt({
|
|
36
|
+
message: "Enter the remote url of this instance",
|
|
37
|
+
default: "https://my.windmill.dev/",
|
|
38
|
+
});
|
|
39
|
+
remote = new URL(remote).toString(); // add trailing slash in all cases!
|
|
40
|
+
}
|
|
41
|
+
if (!instanceName) {
|
|
42
|
+
const defaultName = new URL(remote).hostname.split(".")[0];
|
|
43
|
+
instanceName = await Input.prompt({
|
|
44
|
+
message: "Enter a name for this instance",
|
|
45
|
+
default: defaultName,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
const prefix = instanceName.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
49
|
+
while (!token) {
|
|
50
|
+
token = await loginInteractive(remote);
|
|
51
|
+
}
|
|
52
|
+
await appendInstance({
|
|
53
|
+
name: instanceName,
|
|
54
|
+
remote,
|
|
55
|
+
token,
|
|
56
|
+
prefix,
|
|
57
|
+
});
|
|
58
|
+
log.info(colors.green.underline(`Added instance ${instanceName} with remote ${remote}!`));
|
|
59
|
+
await switchI({}, instanceName);
|
|
60
|
+
return {
|
|
61
|
+
name: instanceName,
|
|
62
|
+
remote,
|
|
63
|
+
token,
|
|
64
|
+
prefix,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
async function appendInstance(instance) {
|
|
68
|
+
instance.remote = new URL(instance.remote).toString(); // add trailing slash in all cases!
|
|
69
|
+
await removeInstance(instance.name);
|
|
70
|
+
const file = await dntShim.Deno.open(await getInstancesConfigFilePath(), {
|
|
71
|
+
append: true,
|
|
72
|
+
write: true,
|
|
73
|
+
read: true,
|
|
74
|
+
create: true,
|
|
75
|
+
});
|
|
76
|
+
await file.write(new TextEncoder().encode(JSON.stringify(instance) + "\n"));
|
|
77
|
+
file.close();
|
|
78
|
+
}
|
|
79
|
+
async function removeInstance(name) {
|
|
80
|
+
const orgWorkspaces = await allInstances();
|
|
81
|
+
await dntShim.Deno.writeTextFile(await getInstancesConfigFilePath(), orgWorkspaces
|
|
82
|
+
.filter((x) => x.name !== name)
|
|
83
|
+
.map((x) => JSON.stringify(x))
|
|
84
|
+
.join("\n") + "\n");
|
|
85
|
+
}
|
|
86
|
+
export function compareInstanceObjects(fromObjects, toObjects, idProp, objectName) {
|
|
87
|
+
let changes = 0;
|
|
88
|
+
for (const toObject of toObjects) {
|
|
89
|
+
const fromMatch = fromObjects.find((u) => u[idProp] === toObject[idProp]);
|
|
90
|
+
if (!fromMatch) {
|
|
91
|
+
log.info(colors.red(`- instance ${objectName} ${toObject[idProp]}`));
|
|
92
|
+
changes += 1;
|
|
93
|
+
}
|
|
94
|
+
else if (!deepEqual(toObject, fromMatch)) {
|
|
95
|
+
log.info(colors.yellow(`~ instance ${objectName} ${toObject[idProp]}`));
|
|
96
|
+
showDiff(yamlStringify(toObject), yamlStringify(fromMatch));
|
|
97
|
+
changes += 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
for (const fromObject of fromObjects) {
|
|
101
|
+
const toMatch = toObjects.find((u) => u[idProp] === fromObject[idProp]);
|
|
102
|
+
if (!toMatch) {
|
|
103
|
+
log.info(colors.green(`+ instance ${objectName} ${fromObject[idProp]}`));
|
|
104
|
+
changes += 1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return changes;
|
|
108
|
+
}
|
|
109
|
+
export async function pickInstance(opts, allowNew) {
|
|
110
|
+
const instances = await allInstances();
|
|
111
|
+
if (opts.baseUrl && opts.token && opts.instance) {
|
|
112
|
+
log.info("Using instance defined by --instance, --base-url and --token");
|
|
113
|
+
setClient(opts.token, opts.baseUrl.endsWith("/") ? opts.baseUrl.slice(0, -1) : opts.baseUrl);
|
|
114
|
+
return {
|
|
115
|
+
name: opts.instance,
|
|
116
|
+
remote: opts.baseUrl,
|
|
117
|
+
token: opts.token,
|
|
118
|
+
prefix: opts.prefix ?? opts.instance,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
if (opts.baseUrl && opts.token) {
|
|
122
|
+
log.info("Using instance fully defined by --base-url and --token");
|
|
123
|
+
setClient(opts.token, opts.baseUrl.endsWith("/") ? opts.baseUrl.slice(0, -1) : opts.baseUrl);
|
|
124
|
+
return {
|
|
125
|
+
name: "custom",
|
|
126
|
+
remote: opts.baseUrl,
|
|
127
|
+
token: opts.token,
|
|
128
|
+
prefix: opts.prefix ?? "custom",
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
if (!allowNew && instances.length < 1) {
|
|
132
|
+
throw new Error("No instance found, please add one first");
|
|
133
|
+
}
|
|
134
|
+
const instanceName = await getActiveInstance(opts);
|
|
135
|
+
let instance = instances.find((i) => i.name === instanceName);
|
|
136
|
+
if (!instance) {
|
|
137
|
+
if (instances.length < 1) {
|
|
138
|
+
instance = await addInstance({}, undefined, undefined, undefined);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
const choice = (await Select.prompt({
|
|
142
|
+
message: "Select an instance",
|
|
143
|
+
options: [
|
|
144
|
+
...instances.map((i) => ({
|
|
145
|
+
name: `${i.name} (${i.remote})`,
|
|
146
|
+
value: i.name,
|
|
147
|
+
})),
|
|
148
|
+
{ name: "Add new instance", value: "new" },
|
|
149
|
+
],
|
|
150
|
+
}));
|
|
151
|
+
if (choice === "new") {
|
|
152
|
+
instance = await addInstance({}, undefined, undefined, undefined);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
instance = instances.find((i) => i.name === choice);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
log.info(`Selected instance: ${instance.name}`);
|
|
161
|
+
}
|
|
162
|
+
setClient(instance.token, instance.remote.slice(0, instance.remote.length - 1));
|
|
163
|
+
return instance;
|
|
164
|
+
}
|
|
165
|
+
async function instancePull(opts) {
|
|
166
|
+
const instance = await pickInstance(opts, true);
|
|
167
|
+
log.info("Pulling instance-level changes");
|
|
168
|
+
log.info(`remote (${instance.name}) -> local`);
|
|
169
|
+
opts.prefix = opts.prefix ?? instance.prefix;
|
|
170
|
+
let uChanges = 0;
|
|
171
|
+
if (!opts.skipUsers) {
|
|
172
|
+
uChanges = (await pullInstanceUsers(opts, true));
|
|
173
|
+
}
|
|
174
|
+
let sChanges = 0;
|
|
175
|
+
if (!opts.skipSettings) {
|
|
176
|
+
sChanges = (await pullInstanceSettings(opts, true));
|
|
177
|
+
}
|
|
178
|
+
let cChanges = 0;
|
|
179
|
+
if (!opts.skipConfigs) {
|
|
180
|
+
cChanges = (await pullInstanceConfigs(opts, true));
|
|
181
|
+
}
|
|
182
|
+
let gChanges = 0;
|
|
183
|
+
if (!opts.skipGroups) {
|
|
184
|
+
gChanges = (await pullInstanceGroups(opts, true));
|
|
185
|
+
}
|
|
186
|
+
const totalChanges = uChanges + sChanges + cChanges + gChanges;
|
|
187
|
+
const rootDir = dntShim.Deno.cwd();
|
|
188
|
+
if (totalChanges > 0) {
|
|
189
|
+
let confirm = true;
|
|
190
|
+
if (opts.dryRun) {
|
|
191
|
+
log.info(colors.gray(`Dry run complete.`));
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (opts.yes !== true) {
|
|
195
|
+
confirm = await Confirm.prompt({
|
|
196
|
+
message: `Do you want to pull these ${totalChanges} instance-level changes?`,
|
|
197
|
+
default: true,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
if (confirm) {
|
|
201
|
+
if (uChanges > 0) {
|
|
202
|
+
if (opts.folderPerInstance && opts.prefixSettings) {
|
|
203
|
+
await dntShim.Deno.mkdir(path.join(rootDir, opts.prefix), {
|
|
204
|
+
recursive: true,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (!opts.skipUsers && uChanges > 0) {
|
|
209
|
+
await pullInstanceUsers(opts);
|
|
210
|
+
}
|
|
211
|
+
if (!opts.skipSettings && sChanges > 0) {
|
|
212
|
+
await pullInstanceSettings(opts);
|
|
213
|
+
}
|
|
214
|
+
if (!opts.skipConfigs && cChanges > 0) {
|
|
215
|
+
await pullInstanceConfigs(opts);
|
|
216
|
+
}
|
|
217
|
+
if (!opts.skipGroups && gChanges > 0) {
|
|
218
|
+
await pullInstanceGroups(opts);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
log.info("No instance-level changes to apply");
|
|
224
|
+
}
|
|
225
|
+
if (opts.includeWorkspaces) {
|
|
226
|
+
log.info("\nPulling all workspaces");
|
|
227
|
+
const localWorkspaces = await getLocalWorkspaces(rootDir, instance.prefix, opts.folderPerInstance);
|
|
228
|
+
const previousActiveWorkspace = await getActiveWorkspace(undefined);
|
|
229
|
+
const remoteWorkspaces = await wmill.listWorkspacesAsSuperAdmin({
|
|
230
|
+
page: 1,
|
|
231
|
+
perPage: 1000,
|
|
232
|
+
});
|
|
233
|
+
for (const remoteWorkspace of remoteWorkspaces) {
|
|
234
|
+
log.info("\nPulling workspace " + remoteWorkspace.id);
|
|
235
|
+
const workspaceName = opts?.folderPerInstance
|
|
236
|
+
? instance.prefix + "/" + remoteWorkspace.id
|
|
237
|
+
: instance.prefix + "_" + remoteWorkspace.id;
|
|
238
|
+
await dntShim.Deno.mkdir(path.join(rootDir, workspaceName), {
|
|
239
|
+
recursive: true,
|
|
240
|
+
});
|
|
241
|
+
await dntShim.Deno.chdir(path.join(rootDir, workspaceName));
|
|
242
|
+
await addWorkspace({
|
|
243
|
+
remote: instance.remote,
|
|
244
|
+
name: workspaceName,
|
|
245
|
+
workspaceId: remoteWorkspace.id,
|
|
246
|
+
token: instance.token,
|
|
247
|
+
}, {
|
|
248
|
+
token: undefined,
|
|
249
|
+
workspace: undefined,
|
|
250
|
+
});
|
|
251
|
+
await pull({
|
|
252
|
+
workspace: workspaceName,
|
|
253
|
+
token: undefined,
|
|
254
|
+
baseUrl: undefined,
|
|
255
|
+
configDir: undefined,
|
|
256
|
+
includeGroups: true,
|
|
257
|
+
includeSchedules: true,
|
|
258
|
+
includeTriggers: true,
|
|
259
|
+
includeSettings: true,
|
|
260
|
+
includeUsers: true,
|
|
261
|
+
includeKey: true,
|
|
262
|
+
yes: opts.yes,
|
|
263
|
+
dryRun: opts.dryRun,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
const localWorkspacesToDelete = localWorkspaces.filter((w) => !remoteWorkspaces.find((r) => r.id === w.id));
|
|
267
|
+
if (localWorkspacesToDelete.length > 0) {
|
|
268
|
+
const confirmDelete = opts.yes ||
|
|
269
|
+
(await Confirm.prompt({
|
|
270
|
+
message: "Do you want to delete the local copy of workspaces that don't exist anymore on the instance?\n" +
|
|
271
|
+
localWorkspacesToDelete.map((w) => w).join(", "),
|
|
272
|
+
default: true,
|
|
273
|
+
}));
|
|
274
|
+
if (confirmDelete) {
|
|
275
|
+
for (const workspace of localWorkspacesToDelete) {
|
|
276
|
+
await removeWorkspace(workspace.id, false, {});
|
|
277
|
+
await dntShim.Deno.remove(path.join(rootDir, workspace.dir), {
|
|
278
|
+
recursive: true,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if (previousActiveWorkspace) {
|
|
284
|
+
await setActiveWorkspace(previousActiveWorkspace?.name);
|
|
285
|
+
}
|
|
286
|
+
log.info(colors.green.underline.bold("All workspaces pulled"));
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
async function instancePush(opts) {
|
|
290
|
+
let instances = await allInstances();
|
|
291
|
+
const instance = await pickInstance(opts, true);
|
|
292
|
+
log.info("Pushing instance-level changes");
|
|
293
|
+
log.info(`remote (${instance.name}) <- local`);
|
|
294
|
+
let uChanges = 0;
|
|
295
|
+
if (!opts.skipUsers) {
|
|
296
|
+
uChanges = (await pushInstanceUsers(opts, true));
|
|
297
|
+
}
|
|
298
|
+
let sChanges = 0;
|
|
299
|
+
if (!opts.skipSettings) {
|
|
300
|
+
sChanges = (await pushInstanceSettings(opts, true));
|
|
301
|
+
}
|
|
302
|
+
let cChanges = 0;
|
|
303
|
+
if (!opts.skipConfigs) {
|
|
304
|
+
cChanges = (await pushInstanceConfigs(opts, true));
|
|
305
|
+
}
|
|
306
|
+
let gChanges = 0;
|
|
307
|
+
if (!opts.skipGroups) {
|
|
308
|
+
gChanges = (await pushInstanceGroups(opts, true));
|
|
309
|
+
}
|
|
310
|
+
const totalChanges = uChanges + sChanges + cChanges + gChanges;
|
|
311
|
+
if (totalChanges > 0) {
|
|
312
|
+
let confirm = true;
|
|
313
|
+
if (opts.yes !== true) {
|
|
314
|
+
confirm = await Confirm.prompt({
|
|
315
|
+
message: `Do you want to apply these ${totalChanges} instance-level changes?`,
|
|
316
|
+
default: true,
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
if (confirm) {
|
|
320
|
+
if (!opts.skipUsers && uChanges > 0) {
|
|
321
|
+
await pushInstanceUsers(opts);
|
|
322
|
+
}
|
|
323
|
+
if (!opts.skipSettings && sChanges > 0) {
|
|
324
|
+
await pushInstanceSettings(opts);
|
|
325
|
+
}
|
|
326
|
+
if (!opts.skipConfigs && cChanges > 0) {
|
|
327
|
+
await pushInstanceConfigs(opts);
|
|
328
|
+
}
|
|
329
|
+
if (!opts.skipGroups && gChanges > 0) {
|
|
330
|
+
await pushInstanceGroups(opts);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
log.info("No instance-level changes to apply");
|
|
336
|
+
}
|
|
337
|
+
if (opts.includeWorkspaces) {
|
|
338
|
+
instances = await allInstances();
|
|
339
|
+
const rootDir = dntShim.Deno.cwd();
|
|
340
|
+
let localPrefix;
|
|
341
|
+
if (opts.prefix) {
|
|
342
|
+
localPrefix = opts.prefix;
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
localPrefix = (await Select.prompt({
|
|
346
|
+
message: "What is the prefix of the local workspaces you want to sync?",
|
|
347
|
+
options: [
|
|
348
|
+
...instances.map((i) => ({
|
|
349
|
+
name: `${i.prefix} (${i.name} - ${i.remote})`,
|
|
350
|
+
value: i.prefix,
|
|
351
|
+
})),
|
|
352
|
+
],
|
|
353
|
+
default: instance.prefix,
|
|
354
|
+
}));
|
|
355
|
+
}
|
|
356
|
+
const remoteWorkspaces = await wmill.listWorkspacesAsSuperAdmin({
|
|
357
|
+
page: 1,
|
|
358
|
+
perPage: 1000,
|
|
359
|
+
});
|
|
360
|
+
const previousActiveWorkspace = await getActiveWorkspace(undefined);
|
|
361
|
+
const localWorkspaces = await getLocalWorkspaces(rootDir, localPrefix, opts.folderPerInstance);
|
|
362
|
+
log.info(`\nPushing all workspaces: ${localWorkspaces.map((x) => x.id).join(", ")}`);
|
|
363
|
+
for (const localWorkspace of localWorkspaces) {
|
|
364
|
+
log.info("\nPushing workspace " + localWorkspace.id);
|
|
365
|
+
try {
|
|
366
|
+
await dntShim.Deno.chdir(path.join(rootDir, localWorkspace.dir));
|
|
367
|
+
}
|
|
368
|
+
catch (_) {
|
|
369
|
+
throw new Error("Workspace folder not found, are you in the right directory?");
|
|
370
|
+
}
|
|
371
|
+
try {
|
|
372
|
+
const workspaceSettings = (await yamlParseFile("settings.yaml"));
|
|
373
|
+
await workspaceSetup({
|
|
374
|
+
token: instance.token,
|
|
375
|
+
workspace: undefined,
|
|
376
|
+
baseUrl: undefined,
|
|
377
|
+
configDir: undefined,
|
|
378
|
+
create: true,
|
|
379
|
+
createWorkspaceName: workspaceSettings.name,
|
|
380
|
+
createUsername: undefined,
|
|
381
|
+
}, localWorkspace.dir, localWorkspace.id, instance.remote);
|
|
382
|
+
}
|
|
383
|
+
catch (_) {
|
|
384
|
+
log.error("Settings file not found in workspace local folder, skipping");
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
await push({
|
|
388
|
+
workspace: localWorkspace.dir,
|
|
389
|
+
token: undefined,
|
|
390
|
+
baseUrl: undefined,
|
|
391
|
+
configDir: undefined,
|
|
392
|
+
includeGroups: true,
|
|
393
|
+
includeSchedules: true,
|
|
394
|
+
includeTriggers: true,
|
|
395
|
+
includeSettings: true,
|
|
396
|
+
includeUsers: true,
|
|
397
|
+
includeKey: true,
|
|
398
|
+
yes: opts.yes,
|
|
399
|
+
dryRun: opts.dryRun,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
const workspacesToDelete = remoteWorkspaces.filter((w) => !localWorkspaces.find((l) => l.id === w.id));
|
|
403
|
+
if (workspacesToDelete.length > 0) {
|
|
404
|
+
const confirmDelete = opts.yes ||
|
|
405
|
+
(await Confirm.prompt({
|
|
406
|
+
message: "Do you want to delete the following remote workspaces that don't exist locally?\n" +
|
|
407
|
+
workspacesToDelete.map((w) => w.id).join(", "),
|
|
408
|
+
default: true,
|
|
409
|
+
}));
|
|
410
|
+
if (confirmDelete) {
|
|
411
|
+
for (const workspace of workspacesToDelete) {
|
|
412
|
+
await wmill.deleteWorkspace({ workspace: workspace.id });
|
|
413
|
+
log.info(colors.green.underline("Deleted workspace " + workspace.id));
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
if (previousActiveWorkspace) {
|
|
418
|
+
await setActiveWorkspace(previousActiveWorkspace?.name);
|
|
419
|
+
}
|
|
420
|
+
log.info(colors.green.underline.bold("All workspaces pushed"));
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
async function getLocalWorkspaces(rootDir, localPrefix, folderPerInstance) {
|
|
424
|
+
const localWorkspaces = [];
|
|
425
|
+
if (!(await dntShim.Deno.stat(localPrefix).catch(() => null))) {
|
|
426
|
+
await dntShim.Deno.mkdir(localPrefix);
|
|
427
|
+
}
|
|
428
|
+
if (folderPerInstance) {
|
|
429
|
+
for await (const dir of dntShim.Deno.readDir(rootDir + "/" + localPrefix)) {
|
|
430
|
+
if (dir.isDirectory) {
|
|
431
|
+
const dirName = dir.name;
|
|
432
|
+
localWorkspaces.push({
|
|
433
|
+
dir: localPrefix + "/" + dirName,
|
|
434
|
+
id: dirName,
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
for await (const dir of dntShim.Deno.readDir(rootDir)) {
|
|
441
|
+
const dirName = dir.name;
|
|
442
|
+
if (dirName.startsWith(localPrefix + "_")) {
|
|
443
|
+
localWorkspaces.push({
|
|
444
|
+
dir: dirName,
|
|
445
|
+
id: dirName.substring(localPrefix.length + 1),
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
log.info("Local workspaces found: " + localWorkspaces.map((x) => x.id).join(", "));
|
|
451
|
+
return localWorkspaces;
|
|
452
|
+
}
|
|
453
|
+
async function switchI(opts, instanceName) {
|
|
454
|
+
const all = await allInstances();
|
|
455
|
+
if (all.findIndex((x) => x.name === instanceName) === -1) {
|
|
456
|
+
log.info(colors.red.bold(`! This instance ${instanceName} does not exist locally.`));
|
|
457
|
+
log.info("available instances:");
|
|
458
|
+
for (const w of all) {
|
|
459
|
+
log.info(" - " + w.name);
|
|
460
|
+
}
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
await dntShim.Deno.writeTextFile(await getActiveInstanceFilePath(), instanceName);
|
|
464
|
+
log.info(colors.green.underline(`Switched to instance ${instanceName}`));
|
|
465
|
+
}
|
|
466
|
+
export async function getActiveInstance(opts) {
|
|
467
|
+
if (opts.instance) {
|
|
468
|
+
return opts.instance;
|
|
469
|
+
}
|
|
470
|
+
try {
|
|
471
|
+
return await dntShim.Deno.readTextFile(await getActiveInstanceFilePath());
|
|
472
|
+
}
|
|
473
|
+
catch {
|
|
474
|
+
return undefined;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
async function whoami(opts) {
|
|
478
|
+
await pickInstance({}, false);
|
|
479
|
+
try {
|
|
480
|
+
const whoamiInfo = await wmill.globalWhoami();
|
|
481
|
+
log.info(colors.green.underline(`global whoami infos:`));
|
|
482
|
+
log.info(JSON.stringify(whoamiInfo, null, 2));
|
|
483
|
+
}
|
|
484
|
+
catch (error) {
|
|
485
|
+
log.error(
|
|
486
|
+
//@ts-ignore
|
|
487
|
+
colors.red(`Failed to retrieve whoami information: ${error.message}`));
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
const command = new Command()
|
|
491
|
+
.description("sync local with a remote instance or the opposite (push or pull)")
|
|
492
|
+
.action(async () => {
|
|
493
|
+
log.info("4 actions available, add, remove, switch, pull and push. Use -h to display help.");
|
|
494
|
+
const activeInstance = await getActiveInstance({});
|
|
495
|
+
new Table()
|
|
496
|
+
.header(["name", "remote", "token"])
|
|
497
|
+
.padding(2)
|
|
498
|
+
.border(true)
|
|
499
|
+
.body((await allInstances()).map((x) => [
|
|
500
|
+
x.name === activeInstance ? colors.underline(x.name) : x.name,
|
|
501
|
+
x.remote,
|
|
502
|
+
x.token.substring(0, 7) + "***",
|
|
503
|
+
]))
|
|
504
|
+
.render();
|
|
505
|
+
if (activeInstance) {
|
|
506
|
+
log.info(`Selected instance: ${activeInstance}`);
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
log.info("No active instance selected");
|
|
510
|
+
}
|
|
511
|
+
log.info("Use 'wmill instance add' to add a new instance");
|
|
512
|
+
})
|
|
513
|
+
.command("add")
|
|
514
|
+
.description("Add a new instance")
|
|
515
|
+
.action(addInstance)
|
|
516
|
+
.arguments("[instance_name:string] [remote:string] [token:string]")
|
|
517
|
+
.command("remove")
|
|
518
|
+
.description("Remove an instance")
|
|
519
|
+
.complete("instance", async () => (await allInstances()).map((x) => x.name))
|
|
520
|
+
.arguments("<instance:string:instance>")
|
|
521
|
+
.action(async (instance) => {
|
|
522
|
+
const instances = await allInstances();
|
|
523
|
+
const choice = (await Select.prompt({
|
|
524
|
+
message: "Select an instance to remove",
|
|
525
|
+
options: instances.map((i) => ({
|
|
526
|
+
name: `${i.name} (${i.remote})`,
|
|
527
|
+
value: i.name,
|
|
528
|
+
})),
|
|
529
|
+
}));
|
|
530
|
+
await removeInstance(choice);
|
|
531
|
+
log.info(colors.green.underline(`Removed instance ${choice}`));
|
|
532
|
+
})
|
|
533
|
+
.command("switch")
|
|
534
|
+
.complete("instance", async () => (await allInstances()).map((x) => x.name))
|
|
535
|
+
.arguments("<instance:string:instance>")
|
|
536
|
+
.description("Switch the current instance")
|
|
537
|
+
.action(switchI)
|
|
538
|
+
.command("pull")
|
|
539
|
+
.description("Pull instance settings, users, configs, instance groups and overwrite local")
|
|
540
|
+
.option("--yes", "Pull without needing confirmation")
|
|
541
|
+
.option("--dry-run", "Perform a dry run without making changes")
|
|
542
|
+
.option("--skip-users", "Skip pulling users")
|
|
543
|
+
.option("--skip-settings", "Skip pulling settings")
|
|
544
|
+
.option("--skip-configs", "Skip pulling configs (worker groups and SMTP)")
|
|
545
|
+
.option("--skip-groups", "Skip pulling instance groups")
|
|
546
|
+
.option("--include-workspaces", "Also pull workspaces")
|
|
547
|
+
.option("--folder-per-instance", "Create a folder per instance")
|
|
548
|
+
.option("--instance <instance:string>", "Name of the instance to pull from, override the active instance")
|
|
549
|
+
.option("--prefix <prefix:string>", "Prefix of the local workspaces to pull, used to create the folders when using --include-workspaces")
|
|
550
|
+
.option("--prefix-settings", "Store instance yamls inside prefixed folders when using --prefix and --folder-per-instance")
|
|
551
|
+
.action(instancePull)
|
|
552
|
+
.command("push")
|
|
553
|
+
.description("Push instance settings, users, configs, group and overwrite remote")
|
|
554
|
+
.option("--yes", "Push without needing confirmation")
|
|
555
|
+
.option("--dry-run", "Perform a dry run without making changes")
|
|
556
|
+
.option("--skip-users", "Skip pushing users")
|
|
557
|
+
.option("--skip-settings", "Skip pushing settings")
|
|
558
|
+
.option("--skip-configs", "Skip pushing configs (worker groups and SMTP)")
|
|
559
|
+
.option("--skip-groups", "Skip pushing instance groups")
|
|
560
|
+
.option("--include-workspaces", "Also push workspaces")
|
|
561
|
+
.option("--folder-per-instance", "Create a folder per instance")
|
|
562
|
+
.option("--instance <instance:string>", "Name of the instance to push to, override the active instance")
|
|
563
|
+
.option("--prefix <prefix:string>", "Prefix of the local workspaces folders to push")
|
|
564
|
+
.option("--prefix-settings", "Store instance yamls inside prefixed folders when using --prefix and --folder-per-instance")
|
|
565
|
+
.action(instancePush)
|
|
566
|
+
.command("whoami")
|
|
567
|
+
.description("Display information about the currently logged-in user")
|
|
568
|
+
.action(whoami);
|
|
569
|
+
export default command;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Command, Table } from "../../../deps.js";
|
|
2
|
+
import { log } from "../../../deps.js";
|
|
3
|
+
import * as wmill from "../../../gen/services.gen.js";
|
|
4
|
+
import { pickInstance } from "../instance/instance.js";
|
|
5
|
+
function createRow(tag, data) {
|
|
6
|
+
if (data[tag]) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
data[tag] = {
|
|
11
|
+
count: 0,
|
|
12
|
+
waiting: 0,
|
|
13
|
+
later: 0,
|
|
14
|
+
running: 0,
|
|
15
|
+
suspended: 0,
|
|
16
|
+
rps30s: "",
|
|
17
|
+
rps5min: "",
|
|
18
|
+
rps30min: "",
|
|
19
|
+
rps24h: "",
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async function displayQueues(opts, workspace) {
|
|
24
|
+
const activeInstance = await pickInstance(opts, true);
|
|
25
|
+
if (activeInstance) {
|
|
26
|
+
try {
|
|
27
|
+
const queuedJobs = await wmill.listQueue({ workspace: workspace ?? 'admins', allWorkspaces: workspace === undefined, perPage: 100000 });
|
|
28
|
+
const jobCounts30s = await wmill.countJobsByTag({
|
|
29
|
+
horizonSecs: 30,
|
|
30
|
+
workspaceId: workspace,
|
|
31
|
+
});
|
|
32
|
+
const nowFromDb = new Date(await wmill.getDbClock());
|
|
33
|
+
const jobCounts5min = await wmill.countJobsByTag({
|
|
34
|
+
horizonSecs: 300,
|
|
35
|
+
workspaceId: workspace,
|
|
36
|
+
});
|
|
37
|
+
const jobCounts30min = await wmill.countJobsByTag({
|
|
38
|
+
horizonSecs: 1800,
|
|
39
|
+
workspaceId: workspace,
|
|
40
|
+
});
|
|
41
|
+
const jobCounts24h = await wmill.countJobsByTag({
|
|
42
|
+
horizonSecs: 86400,
|
|
43
|
+
workspaceId: workspace,
|
|
44
|
+
});
|
|
45
|
+
const data = {};
|
|
46
|
+
for (const job of queuedJobs) {
|
|
47
|
+
createRow(job.tag, data);
|
|
48
|
+
const scheduledFor = new Date(job.scheduled_for ?? "");
|
|
49
|
+
if (job.running) {
|
|
50
|
+
if (job.suspend) {
|
|
51
|
+
data[job.tag].suspended += 1;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
data[job.tag].running += 1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else if (scheduledFor <= nowFromDb) {
|
|
58
|
+
data[job.tag].waiting += 1;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
data[job.tag].later += 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
for (const count of jobCounts30s) {
|
|
65
|
+
const tag = count.tag;
|
|
66
|
+
createRow(tag, data);
|
|
67
|
+
data[tag].rps30s = (count.count / 30).toFixed(3);
|
|
68
|
+
}
|
|
69
|
+
for (const count of jobCounts5min) {
|
|
70
|
+
const tag = count.tag;
|
|
71
|
+
createRow(tag, data);
|
|
72
|
+
data[tag].rps5min = (count.count / 300).toFixed(3);
|
|
73
|
+
}
|
|
74
|
+
for (const count of jobCounts30min) {
|
|
75
|
+
const tag = count.tag;
|
|
76
|
+
createRow(tag, data);
|
|
77
|
+
data[tag].rps30min = (count.count / 1800).toFixed(3);
|
|
78
|
+
}
|
|
79
|
+
for (const count of jobCounts24h) {
|
|
80
|
+
const tag = count.tag;
|
|
81
|
+
createRow(tag, data);
|
|
82
|
+
data[tag].rps24h = (count.count / 86400).toFixed(3);
|
|
83
|
+
}
|
|
84
|
+
const table = new Table();
|
|
85
|
+
table.header([
|
|
86
|
+
"",
|
|
87
|
+
"Running",
|
|
88
|
+
"Waiting",
|
|
89
|
+
"Later",
|
|
90
|
+
"Suspended",
|
|
91
|
+
"RPS (30s)",
|
|
92
|
+
"RPS (5min)",
|
|
93
|
+
"RPS (30min)",
|
|
94
|
+
"RPS (24h)",
|
|
95
|
+
]);
|
|
96
|
+
let body = [];
|
|
97
|
+
for (const tag in data) {
|
|
98
|
+
body.push([tag, data[tag].running, data[tag].waiting, data[tag].later, data[tag].suspended, data[tag].rps30s, data[tag].rps5min, data[tag].rps30min, data[tag].rps24h]);
|
|
99
|
+
}
|
|
100
|
+
table.body(body).render();
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
log.error("Failed to fetch queue metrics:", error);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
log.info("No active instance found");
|
|
108
|
+
log.info("Use 'wmill instance add' to add a new instance");
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const command = new Command()
|
|
112
|
+
.description("List all queues with their metrics")
|
|
113
|
+
.arguments("[workspace:string] the optional workspace to filter by (default to all workspaces)")
|
|
114
|
+
.option("--instance [instance]", "Name of the instance to push to, override the active instance")
|
|
115
|
+
.option("--base-url [baseUrl]", "If used with --token, will be used as the base url for the instance")
|
|
116
|
+
.action(displayQueues);
|
|
117
|
+
export default command;
|