windmill-cli 1.518.1 → 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/core/OpenAPI.js +1 -1
- 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,46 @@
|
|
|
1
|
+
import * as dntShim from "../../_dnt.shims.js";
|
|
2
|
+
import { log } from "../../deps.js";
|
|
3
|
+
import { getStore } from "./store.js";
|
|
4
|
+
const BRANCH_PROFILES_FILE = "branch-profiles.json";
|
|
5
|
+
export async function getBranchProfilesPath(configDirOverride) {
|
|
6
|
+
return (await getStore("", configDirOverride)) + BRANCH_PROFILES_FILE;
|
|
7
|
+
}
|
|
8
|
+
export async function loadBranchProfiles(configDirOverride) {
|
|
9
|
+
try {
|
|
10
|
+
const path = await getBranchProfilesPath(configDirOverride);
|
|
11
|
+
const content = await dntShim.Deno.readTextFile(path);
|
|
12
|
+
return JSON.parse(content);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
// File doesn't exist or invalid JSON - return empty mapping
|
|
16
|
+
return { lastUsed: {} };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export async function saveBranchProfiles(mapping, configDirOverride) {
|
|
20
|
+
const path = await getBranchProfilesPath(configDirOverride);
|
|
21
|
+
await dntShim.Deno.writeTextFile(path, JSON.stringify(mapping, null, 2));
|
|
22
|
+
}
|
|
23
|
+
export function getBranchProfileKey(branch, baseUrl, workspaceId) {
|
|
24
|
+
// Normalize baseUrl to ensure consistency
|
|
25
|
+
let normalizedUrl;
|
|
26
|
+
try {
|
|
27
|
+
normalizedUrl = new URL(baseUrl).toString();
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
// Fallback to non-normalized URL if parsing fails
|
|
31
|
+
normalizedUrl = baseUrl;
|
|
32
|
+
}
|
|
33
|
+
return `${branch}|${normalizedUrl}|${workspaceId}`;
|
|
34
|
+
}
|
|
35
|
+
export async function getLastUsedProfile(branch, baseUrl, workspaceId, configDirOverride) {
|
|
36
|
+
const mapping = await loadBranchProfiles(configDirOverride);
|
|
37
|
+
const key = getBranchProfileKey(branch, baseUrl, workspaceId);
|
|
38
|
+
return mapping.lastUsed[key];
|
|
39
|
+
}
|
|
40
|
+
export async function setLastUsedProfile(branch, baseUrl, workspaceId, profileName, configDirOverride) {
|
|
41
|
+
const mapping = await loadBranchProfiles(configDirOverride);
|
|
42
|
+
const key = getBranchProfileKey(branch, baseUrl, workspaceId);
|
|
43
|
+
mapping.lastUsed[key] = profileName;
|
|
44
|
+
await saveBranchProfiles(mapping, configDirOverride);
|
|
45
|
+
log.debug(`Saved last used profile for ${key}: ${profileName}`);
|
|
46
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as dntShim from "../../_dnt.shims.js";
|
|
2
|
+
import { log, yamlParseFile, Confirm, yamlStringify } from "../../deps.js";
|
|
3
|
+
import { getCurrentGitBranch, isGitRepository } from "../utils/git.js";
|
|
4
|
+
export let showDiffs = false;
|
|
5
|
+
export function setShowDiffs(value) {
|
|
6
|
+
showDiffs = value;
|
|
7
|
+
}
|
|
8
|
+
export async function readConfigFile() {
|
|
9
|
+
try {
|
|
10
|
+
const conf = (await yamlParseFile("wmill.yaml"));
|
|
11
|
+
// Handle obsolete overrides format
|
|
12
|
+
if (conf && 'overrides' in conf) {
|
|
13
|
+
const overrides = conf.overrides;
|
|
14
|
+
const hasSettings = overrides && typeof overrides === 'object' && Object.keys(overrides).length > 0;
|
|
15
|
+
if (hasSettings) {
|
|
16
|
+
throw new Error("❌ The 'overrides' field is no longer supported.\n" +
|
|
17
|
+
" The configuration system now uses Git branch-based configuration only.\n" +
|
|
18
|
+
" Please delete your wmill.yaml and run 'wmill init' to recreate it with the new format.");
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
// Remove empty overrides with a note
|
|
22
|
+
log.info("ℹ️ Removing empty 'overrides: {}' from wmill.yaml (migrated to git_branches format)");
|
|
23
|
+
delete conf.overrides;
|
|
24
|
+
// Write the updated config back to file
|
|
25
|
+
try {
|
|
26
|
+
await dntShim.Deno.writeTextFile("wmill.yaml", yamlStringify(conf));
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
log.warn(`Could not update wmill.yaml to remove empty overrides: ${error instanceof Error ? error.message : error}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (conf?.defaultTs == undefined) {
|
|
34
|
+
log.warn("No defaultTs defined in your wmill.yaml. Using 'bun' as default.");
|
|
35
|
+
}
|
|
36
|
+
return typeof conf == "object" ? conf : {};
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
if (e instanceof Error && (e.message.includes("overrides") || e.message.includes("Obsolete configuration format"))) {
|
|
40
|
+
throw e; // Re-throw the specific obsolete format error
|
|
41
|
+
}
|
|
42
|
+
log.warn("No wmill.yaml found. Use 'wmill init' to bootstrap it. Using 'bun' as default typescript runtime.");
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Default sync options - shared across the codebase to prevent duplication
|
|
47
|
+
export const DEFAULT_SYNC_OPTIONS = {
|
|
48
|
+
defaultTs: 'bun',
|
|
49
|
+
includes: ['f/**'],
|
|
50
|
+
excludes: [],
|
|
51
|
+
codebases: [],
|
|
52
|
+
skipVariables: false,
|
|
53
|
+
skipResources: false,
|
|
54
|
+
skipResourceTypes: false,
|
|
55
|
+
skipSecrets: true,
|
|
56
|
+
skipScripts: false,
|
|
57
|
+
skipFlows: false,
|
|
58
|
+
skipApps: false,
|
|
59
|
+
skipFolders: false,
|
|
60
|
+
includeSchedules: false,
|
|
61
|
+
includeTriggers: false,
|
|
62
|
+
includeUsers: false,
|
|
63
|
+
includeGroups: false,
|
|
64
|
+
includeSettings: false,
|
|
65
|
+
includeKey: false
|
|
66
|
+
};
|
|
67
|
+
export async function mergeConfigWithConfigFile(opts) {
|
|
68
|
+
const configFile = await readConfigFile();
|
|
69
|
+
return Object.assign(configFile ?? {}, opts);
|
|
70
|
+
}
|
|
71
|
+
// Validate branch configuration early in the process
|
|
72
|
+
export async function validateBranchConfiguration(skipValidation, autoAccept) {
|
|
73
|
+
if (skipValidation || !isGitRepository()) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const config = await readConfigFile();
|
|
77
|
+
const { git_branches } = config;
|
|
78
|
+
const currentBranch = getCurrentGitBranch();
|
|
79
|
+
// In a git repository, git_branches section is recommended
|
|
80
|
+
if (!git_branches || Object.keys(git_branches).length === 0) {
|
|
81
|
+
log.warn("⚠️ WARNING: In a Git repository, the 'git_branches' section is recommended in wmill.yaml.\n" +
|
|
82
|
+
" Consider adding a git_branches section with configuration for your Git branches.\n" +
|
|
83
|
+
" Run 'wmill init' to recreate the configuration file with proper branch setup.");
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
// Current branch must be defined in git_branches config
|
|
87
|
+
if (currentBranch && !git_branches[currentBranch]) {
|
|
88
|
+
// In interactive mode, offer to create the branch
|
|
89
|
+
if (dntShim.Deno.stdin.isTerminal()) {
|
|
90
|
+
const availableBranches = Object.keys(git_branches).join(', ');
|
|
91
|
+
log.info(`Current Git branch '${currentBranch}' is not defined in the git_branches configuration.\n` +
|
|
92
|
+
`Available branches: ${availableBranches}`);
|
|
93
|
+
const shouldCreate = autoAccept || await Confirm.prompt({
|
|
94
|
+
message: `Create empty branch configuration for '${currentBranch}'?`,
|
|
95
|
+
default: true,
|
|
96
|
+
});
|
|
97
|
+
if (shouldCreate) {
|
|
98
|
+
// Read current config, add branch, and write it back
|
|
99
|
+
const currentConfig = await readConfigFile();
|
|
100
|
+
if (!currentConfig.git_branches) {
|
|
101
|
+
currentConfig.git_branches = {};
|
|
102
|
+
}
|
|
103
|
+
currentConfig.git_branches[currentBranch] = { overrides: {} };
|
|
104
|
+
await dntShim.Deno.writeTextFile("wmill.yaml", yamlStringify(currentConfig));
|
|
105
|
+
log.info(`✅ Created empty branch configuration for '${currentBranch}'`);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
log.warn("⚠️ WARNING: Branch creation cancelled. You can manually add the branch to wmill.yaml or use 'wmill gitsync-settings pull' to pull configuration from an existing windmill workspace git-sync configuration.");
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
log.warn(`⚠️ WARNING: Current Git branch '${currentBranch}' is not defined in the git_branches configuration.\n` +
|
|
114
|
+
` Consider adding configuration for branch '${currentBranch}' in the git_branches section of wmill.yaml.\n` +
|
|
115
|
+
` Available branches: ${Object.keys(git_branches).join(', ')}`);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Get effective settings by merging top-level settings with branch-specific overrides
|
|
121
|
+
export async function getEffectiveSettings(config, promotion, skipBranchValidation, suppressLogs) {
|
|
122
|
+
// Start with top-level settings from config
|
|
123
|
+
const { git_branches, ...topLevelSettings } = config;
|
|
124
|
+
let effective = { ...topLevelSettings };
|
|
125
|
+
if (isGitRepository()) {
|
|
126
|
+
const currentBranch = getCurrentGitBranch();
|
|
127
|
+
// If promotion is specified, use that branch's promotionOverrides or overrides
|
|
128
|
+
if (promotion && git_branches && git_branches[promotion]) {
|
|
129
|
+
const targetBranch = git_branches[promotion];
|
|
130
|
+
// First try promotionOverrides, then fall back to overrides
|
|
131
|
+
if (targetBranch.promotionOverrides) {
|
|
132
|
+
Object.assign(effective, targetBranch.promotionOverrides);
|
|
133
|
+
if (!suppressLogs) {
|
|
134
|
+
log.info(`Applied promotion settings from branch: ${promotion}`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
else if (targetBranch.overrides) {
|
|
138
|
+
Object.assign(effective, targetBranch.overrides);
|
|
139
|
+
if (!suppressLogs) {
|
|
140
|
+
log.info(`Applied settings from branch: ${promotion} (no promotionOverrides found)`);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
log.debug(`No promotion or regular overrides found for branch '${promotion}', using top-level settings`);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
// Otherwise use current branch overrides (existing behavior)
|
|
148
|
+
else if (currentBranch && git_branches && git_branches[currentBranch] && git_branches[currentBranch].overrides) {
|
|
149
|
+
Object.assign(effective, git_branches[currentBranch].overrides);
|
|
150
|
+
if (!suppressLogs) {
|
|
151
|
+
log.info(`Applied settings for Git branch: ${currentBranch}`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
else if (currentBranch) {
|
|
155
|
+
log.debug(`No branch-specific overrides found for '${currentBranch}', using top-level settings`);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
log.debug("Not in a Git repository, using top-level settings");
|
|
160
|
+
}
|
|
161
|
+
return effective;
|
|
162
|
+
}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
// deno-lint-ignore-file no-explicit-any
|
|
2
|
+
import * as dntShim from "../../_dnt.shims.js";
|
|
3
|
+
import { colors, log, Select, Confirm, Input } from "../../deps.js";
|
|
4
|
+
import { loginInteractive } from "./login.js";
|
|
5
|
+
import { getHeaders } from "../utils/utils.js";
|
|
6
|
+
import { getActiveWorkspace, getWorkspaceByName, allWorkspaces, addWorkspace, } from "../commands/workspace/workspace.js";
|
|
7
|
+
import { getLastUsedProfile, setLastUsedProfile } from "./branch-profiles.js";
|
|
8
|
+
import { readConfigFile } from "./conf.js";
|
|
9
|
+
import { getCurrentGitBranch, isGitRepository } from "../utils/git.js";
|
|
10
|
+
// Helper function to select from multiple matching profiles
|
|
11
|
+
async function selectFromMultipleProfiles(profiles, baseUrl, workspaceId, context, configDir) {
|
|
12
|
+
if (profiles.length === 1) {
|
|
13
|
+
return profiles[0];
|
|
14
|
+
}
|
|
15
|
+
// Check for last used profile
|
|
16
|
+
const lastUsedProfileName = await getLastUsedProfile("", baseUrl, workspaceId, configDir);
|
|
17
|
+
if (lastUsedProfileName) {
|
|
18
|
+
const lastUsedProfile = profiles.find(p => p.name === lastUsedProfileName);
|
|
19
|
+
if (lastUsedProfile) {
|
|
20
|
+
log.info(colors.green(`Using last used profile '${lastUsedProfile.name}' for ${context}`));
|
|
21
|
+
return lastUsedProfile;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
// No last used or it no longer exists - prompt for selection
|
|
25
|
+
if (!dntShim.Deno.stdin.isTerminal() || !dntShim.Deno.stdout.isTerminal()) {
|
|
26
|
+
const selectedProfile = profiles[0];
|
|
27
|
+
log.info(colors.yellow(`Multiple profiles found for ${context}. Using first available profile: '${selectedProfile.name}'`));
|
|
28
|
+
// Save selection for next time
|
|
29
|
+
await setLastUsedProfile("", // No branch context for general workspace selection
|
|
30
|
+
baseUrl, workspaceId, selectedProfile.name, configDir);
|
|
31
|
+
return selectedProfile;
|
|
32
|
+
}
|
|
33
|
+
log.info(colors.yellow(`\nMultiple workspace profiles found for ${context}:`));
|
|
34
|
+
const selectedName = await Select.prompt({
|
|
35
|
+
message: "Select profile",
|
|
36
|
+
options: profiles.map(p => ({
|
|
37
|
+
name: `${p.name} (${p.workspaceId} on ${p.remote})`,
|
|
38
|
+
value: p.name,
|
|
39
|
+
})),
|
|
40
|
+
});
|
|
41
|
+
const selectedProfile = profiles.find(p => p.name === selectedName);
|
|
42
|
+
// Save selection for next time
|
|
43
|
+
await setLastUsedProfile("", // No branch context for general workspace selection
|
|
44
|
+
baseUrl, workspaceId, selectedProfile.name, configDir);
|
|
45
|
+
return selectedProfile;
|
|
46
|
+
}
|
|
47
|
+
async function tryResolveWorkspace(opts) {
|
|
48
|
+
const cache = opts.__secret_workspace;
|
|
49
|
+
if (cache)
|
|
50
|
+
return { isError: false, value: cache };
|
|
51
|
+
if (opts.workspace) {
|
|
52
|
+
const e = await getWorkspaceByName(opts.workspace, opts.configDir);
|
|
53
|
+
if (!e) {
|
|
54
|
+
return {
|
|
55
|
+
isError: true,
|
|
56
|
+
error: colors.red.underline("Given workspace does not exist."),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
opts.__secret_workspace = e;
|
|
60
|
+
return { isError: false, value: e };
|
|
61
|
+
}
|
|
62
|
+
const defaultWorkspace = await getActiveWorkspace(opts);
|
|
63
|
+
if (!defaultWorkspace) {
|
|
64
|
+
return {
|
|
65
|
+
isError: true,
|
|
66
|
+
error: colors.red.underline("No workspace given and no default set."),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return { isError: false, value: defaultWorkspace };
|
|
70
|
+
}
|
|
71
|
+
async function tryResolveBranchWorkspace(opts) {
|
|
72
|
+
// Only try branch-based resolution if in a Git repository
|
|
73
|
+
if (!isGitRepository()) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
const currentBranch = getCurrentGitBranch();
|
|
77
|
+
if (!currentBranch) {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
// Read wmill.yaml to check for branch workspace configuration
|
|
81
|
+
const config = await readConfigFile();
|
|
82
|
+
const branchConfig = config.git_branches?.[currentBranch];
|
|
83
|
+
// Check if branch has workspace configuration
|
|
84
|
+
if (!branchConfig?.baseUrl || !branchConfig?.workspaceId) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
const { baseUrl, workspaceId } = branchConfig;
|
|
88
|
+
let normalizedBaseUrl;
|
|
89
|
+
try {
|
|
90
|
+
normalizedBaseUrl = new URL(baseUrl).toString();
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
log.error(colors.red(`Invalid baseUrl in branch configuration: ${baseUrl}`));
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
// Find all profiles matching this baseUrl and workspaceId
|
|
97
|
+
const allProfiles = await allWorkspaces(opts.configDir);
|
|
98
|
+
const matchingProfiles = allProfiles.filter(w => w.remote === normalizedBaseUrl && w.workspaceId === workspaceId);
|
|
99
|
+
if (matchingProfiles.length === 0) {
|
|
100
|
+
// No matching profile exists - prompt to create one
|
|
101
|
+
log.info(colors.yellow(`\nNo workspace profile found for branch '${currentBranch}'\n` +
|
|
102
|
+
`(${normalizedBaseUrl}, ${workspaceId})`));
|
|
103
|
+
if (!dntShim.Deno.stdin.isTerminal() || !dntShim.Deno.stdout.isTerminal()) {
|
|
104
|
+
log.info("Not a TTY, cannot create profile interactively. Use 'wmill workspace add' first.");
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
const shouldCreate = await Confirm.prompt({
|
|
108
|
+
message: "Would you like to create a new profile?",
|
|
109
|
+
default: true,
|
|
110
|
+
});
|
|
111
|
+
if (!shouldCreate) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
// Prompt for profile details
|
|
115
|
+
const profileName = await Input.prompt({
|
|
116
|
+
message: "Profile name",
|
|
117
|
+
default: workspaceId,
|
|
118
|
+
});
|
|
119
|
+
const token = await loginInteractive(normalizedBaseUrl);
|
|
120
|
+
if (!token) {
|
|
121
|
+
log.error("Failed to obtain token");
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
// Create the new profile
|
|
125
|
+
const newWorkspace = {
|
|
126
|
+
name: profileName,
|
|
127
|
+
remote: normalizedBaseUrl,
|
|
128
|
+
workspaceId: workspaceId,
|
|
129
|
+
token: token,
|
|
130
|
+
};
|
|
131
|
+
await addWorkspace(newWorkspace, opts);
|
|
132
|
+
// Set as last used for this branch
|
|
133
|
+
await setLastUsedProfile(currentBranch, normalizedBaseUrl, workspaceId, profileName, opts.configDir);
|
|
134
|
+
log.info(colors.green(`✓ Created profile '${profileName}' for ${workspaceId} on ${normalizedBaseUrl}`));
|
|
135
|
+
log.info(colors.green(`✓ Profile '${profileName}' is now active`));
|
|
136
|
+
return newWorkspace;
|
|
137
|
+
}
|
|
138
|
+
// Handle multiple profiles - use special branch-aware logic
|
|
139
|
+
let selectedProfile;
|
|
140
|
+
if (matchingProfiles.length === 1) {
|
|
141
|
+
selectedProfile = matchingProfiles[0];
|
|
142
|
+
log.info(colors.green(`Using workspace profile '${selectedProfile.name}' for branch '${currentBranch}'`));
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
// For multiple profiles, check branch-specific last used first
|
|
146
|
+
const lastUsedName = await getLastUsedProfile(currentBranch, normalizedBaseUrl, workspaceId, opts.configDir);
|
|
147
|
+
if (lastUsedName) {
|
|
148
|
+
const lastUsedProfile = matchingProfiles.find(p => p.name === lastUsedName);
|
|
149
|
+
if (lastUsedProfile) {
|
|
150
|
+
log.info(colors.green(`Using workspace profile '${lastUsedProfile.name}' for branch '${currentBranch}' (last used)`));
|
|
151
|
+
return lastUsedProfile;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// Fall back to general selection logic
|
|
155
|
+
selectedProfile = await selectFromMultipleProfiles(matchingProfiles, normalizedBaseUrl, workspaceId, `branch '${currentBranch}'`, opts.configDir);
|
|
156
|
+
// Save branch-specific selection
|
|
157
|
+
await setLastUsedProfile(currentBranch, normalizedBaseUrl, workspaceId, selectedProfile.name, opts.configDir);
|
|
158
|
+
log.info(colors.green(`Using workspace profile '${selectedProfile.name}' for branch '${currentBranch}'`));
|
|
159
|
+
}
|
|
160
|
+
return selectedProfile;
|
|
161
|
+
}
|
|
162
|
+
export async function resolveWorkspace(opts) {
|
|
163
|
+
if (opts.baseUrl) {
|
|
164
|
+
if (opts.workspace && opts.token) {
|
|
165
|
+
let normalizedBaseUrl;
|
|
166
|
+
try {
|
|
167
|
+
normalizedBaseUrl = new URL(opts.baseUrl).toString(); // add trailing slash if not present
|
|
168
|
+
}
|
|
169
|
+
catch (error) {
|
|
170
|
+
log.info(colors.red(`Invalid base URL: ${opts.baseUrl}`));
|
|
171
|
+
return dntShim.Deno.exit(-1);
|
|
172
|
+
}
|
|
173
|
+
// Try to find existing workspace profile by name, then by workspaceId + remote
|
|
174
|
+
if (opts.workspace) {
|
|
175
|
+
// Try by workspace name first
|
|
176
|
+
let existingWorkspace = await getWorkspaceByName(opts.workspace, opts.configDir);
|
|
177
|
+
// If not found by name, try to find by workspaceId + remote match
|
|
178
|
+
if (!existingWorkspace) {
|
|
179
|
+
const { allWorkspaces } = await import("../commands/workspace/workspace.js");
|
|
180
|
+
const workspaces = await allWorkspaces(opts.configDir);
|
|
181
|
+
const matchingWorkspaces = workspaces.filter(w => w.workspaceId === opts.workspace && w.remote === normalizedBaseUrl);
|
|
182
|
+
if (matchingWorkspaces.length >= 1) {
|
|
183
|
+
existingWorkspace = await selectFromMultipleProfiles(matchingWorkspaces, normalizedBaseUrl, opts.workspace, `workspace "${opts.workspace}" on ${normalizedBaseUrl}`, opts.configDir);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (existingWorkspace) {
|
|
187
|
+
// Validate that the base URL matches the profile's remote
|
|
188
|
+
if (existingWorkspace.remote !== normalizedBaseUrl) {
|
|
189
|
+
log.info(colors.red(`Base URL mismatch: --base-url is ${normalizedBaseUrl} but workspace profile "${opts.workspace}" uses ${existingWorkspace.remote}`));
|
|
190
|
+
return dntShim.Deno.exit(-1);
|
|
191
|
+
}
|
|
192
|
+
// Use the existing workspace profile (preserves workspace name)
|
|
193
|
+
return {
|
|
194
|
+
...existingWorkspace,
|
|
195
|
+
token: opts.token, // Use the provided token
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
// No existing profile found, create temporary workspace
|
|
200
|
+
return {
|
|
201
|
+
remote: normalizedBaseUrl,
|
|
202
|
+
workspaceId: opts.workspace,
|
|
203
|
+
name: opts.workspace,
|
|
204
|
+
token: opts.token,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
log.info(colors.red("If you specify a base URL with --base-url, you must also specify a workspace (--workspace) and token (--token)."));
|
|
209
|
+
return dntShim.Deno.exit(-1);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// Try explicit workspace flag first (should override branch-based resolution)
|
|
213
|
+
const res = await tryResolveWorkspace(opts);
|
|
214
|
+
if (!res.isError) {
|
|
215
|
+
return res.value;
|
|
216
|
+
}
|
|
217
|
+
// Fall back to branch-based resolution if no explicit workspace
|
|
218
|
+
const branchWorkspace = await tryResolveBranchWorkspace(opts);
|
|
219
|
+
if (branchWorkspace) {
|
|
220
|
+
return branchWorkspace;
|
|
221
|
+
}
|
|
222
|
+
// If both failed, show the original error from explicit workspace resolution
|
|
223
|
+
log.info(colors.red.bold(res.error));
|
|
224
|
+
return dntShim.Deno.exit(-1);
|
|
225
|
+
}
|
|
226
|
+
export async function fetchVersion(baseUrl) {
|
|
227
|
+
const requestHeaders = new Headers();
|
|
228
|
+
const extraHeaders = getHeaders();
|
|
229
|
+
if (extraHeaders) {
|
|
230
|
+
for (const [key, value] of Object.entries(extraHeaders)) {
|
|
231
|
+
requestHeaders.set(key, value);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const response = await fetch(new URL(new URL(baseUrl).origin + "/api/version"), { headers: requestHeaders, method: "GET" });
|
|
235
|
+
if (!response.ok) {
|
|
236
|
+
// Consume response body even on error to avoid resource leak
|
|
237
|
+
await response.text();
|
|
238
|
+
throw new Error(`Failed to fetch version: ${response.status} ${response.statusText}`);
|
|
239
|
+
}
|
|
240
|
+
return await response.text();
|
|
241
|
+
}
|
|
242
|
+
export async function tryResolveVersion(opts) {
|
|
243
|
+
if (opts.__cache_version) {
|
|
244
|
+
return opts.__cache_version;
|
|
245
|
+
}
|
|
246
|
+
const workspaceRes = await tryResolveWorkspace(opts);
|
|
247
|
+
if (workspaceRes.isError)
|
|
248
|
+
return undefined;
|
|
249
|
+
const version = await fetchVersion(workspaceRes.value.remote);
|
|
250
|
+
try {
|
|
251
|
+
return Number.parseInt(version.split("-", 1)[0].replaceAll(".", "").replace("v", ""));
|
|
252
|
+
}
|
|
253
|
+
catch {
|
|
254
|
+
return undefined;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
export function validatePath(path) {
|
|
258
|
+
if (!(path.startsWith("g") || path.startsWith("u") || path.startsWith("f"))) {
|
|
259
|
+
log.info(colors.red("Given remote path looks invalid. Remote paths are typically of the form <u|g|f>/<username|group|folder>/..."));
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
return true;
|
|
263
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as dntShim from "../../_dnt.shims.js";
|
|
2
|
+
import { colors, getPort, log, open, Secret, Select } from "../../deps.js";
|
|
3
|
+
import * as http from "node:http";
|
|
4
|
+
export async function loginInteractive(remote) {
|
|
5
|
+
let token;
|
|
6
|
+
if (dntShim.Deno.stdin.isTerminal && !dntShim.Deno.stdin.isTerminal()) {
|
|
7
|
+
log.info("Not a TTY, can't login interactively.");
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
if ((await Select.prompt({
|
|
11
|
+
message: "How do you want to login",
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: "Browser",
|
|
15
|
+
value: "b",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "Token",
|
|
19
|
+
value: "t",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
})) === "b") {
|
|
23
|
+
token = await browserLogin(remote);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
token = await Secret.prompt("Enter your token");
|
|
27
|
+
}
|
|
28
|
+
return token;
|
|
29
|
+
}
|
|
30
|
+
// deno-lint-ignore require-await
|
|
31
|
+
export async function tryGetLoginInfo(opts) {
|
|
32
|
+
if (opts.token) {
|
|
33
|
+
return opts.token;
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
export async function browserLogin(baseUrl) {
|
|
38
|
+
const env = dntShim.Deno.env.get("TOKEN_PORT") != undefined
|
|
39
|
+
? parseInt(dntShim.Deno.env.get("TOKEN_PORT"))
|
|
40
|
+
: undefined;
|
|
41
|
+
const port = await getPort.default({ port: env });
|
|
42
|
+
if (port == undefined) {
|
|
43
|
+
log.info(colors.red.underline("failed to aquire port"));
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
// const server = Deno.listen({ transport: "tcp", port });
|
|
47
|
+
// const url = `${baseUrl}user/cli?port=${port}`;
|
|
48
|
+
// log.info(`Login by going to ${url}`);
|
|
49
|
+
// try {
|
|
50
|
+
// await open.openApp(open.apps.browser, { arguments: [url] });
|
|
51
|
+
// log.info("Opened browser for you");
|
|
52
|
+
// } catch {
|
|
53
|
+
// console.error(`Failed to open browser, please navigate to ${url}`);
|
|
54
|
+
// }
|
|
55
|
+
// const firstConnection = await server.accept();
|
|
56
|
+
// const httpFirstConnection = Deno.serveHttp(firstConnection);
|
|
57
|
+
// const firstRequest = (await httpFirstConnection.nextRequest())!;
|
|
58
|
+
// const params = new URL(firstRequest.request.url!).searchParams;
|
|
59
|
+
// const token = params.get("token");
|
|
60
|
+
// // const _workspace = params.get("workspace");
|
|
61
|
+
// await firstRequest?.respondWith(
|
|
62
|
+
// Response.redirect(baseUrl + "user/cli-success", 302)
|
|
63
|
+
// );
|
|
64
|
+
// setTimeout(() => {
|
|
65
|
+
// httpFirstConnection.close();
|
|
66
|
+
// server.close();
|
|
67
|
+
// }, 10);
|
|
68
|
+
// return token ?? undefined;
|
|
69
|
+
return new Promise((resolve) => {
|
|
70
|
+
const server = http.createServer((req, res) => {
|
|
71
|
+
const params = new URL(req.url, `http://${req.headers.host}`)
|
|
72
|
+
.searchParams;
|
|
73
|
+
const token = params.get("token");
|
|
74
|
+
// Redirect the user to the success page
|
|
75
|
+
res.writeHead(302, { Location: `${baseUrl}user/cli-success` });
|
|
76
|
+
res.end();
|
|
77
|
+
// Close the server after a short delay
|
|
78
|
+
setTimeout(() => {
|
|
79
|
+
server.close();
|
|
80
|
+
}, 10);
|
|
81
|
+
// Resolve the promise with the token
|
|
82
|
+
resolve(token ?? undefined);
|
|
83
|
+
});
|
|
84
|
+
const url = `${baseUrl}user/cli?port=${port}`;
|
|
85
|
+
log.info(`Login by going to ${url}`);
|
|
86
|
+
try {
|
|
87
|
+
open.openApp(open.apps.browser, { arguments: [url] }).catch((error) => {
|
|
88
|
+
console.error(`Failed to open browser, please navigate to ${url}, error: ${error}`);
|
|
89
|
+
});
|
|
90
|
+
log.info("Opened browser for you");
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
console.error(`Failed to open browser, please navigate to ${url}, error: ${error}`);
|
|
94
|
+
}
|
|
95
|
+
// Start the server
|
|
96
|
+
server.listen(port, () => {
|
|
97
|
+
console.log(`Listening on port ${port}`);
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
}
|