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,753 @@
|
|
|
1
|
+
// deno-lint-ignore-file no-explicit-any
|
|
2
|
+
import * as dntShim from "../../../_dnt.shims.js";
|
|
3
|
+
import { requireLogin } from "../../core/auth.js";
|
|
4
|
+
import { resolveWorkspace, validatePath } from "../../core/context.js";
|
|
5
|
+
import { colors, Command, Confirm, log, readAll, SEP, Table, writeAllSync, yamlStringify, } from "../../../deps.js";
|
|
6
|
+
import { deepEqual } from "../../utils/utils.js";
|
|
7
|
+
import * as wmill from "../../../gen/services.gen.js";
|
|
8
|
+
import { defaultScriptMetadata, scriptBootstrapCode, } from "../../../bootstrap/script_bootstrap.js";
|
|
9
|
+
import { generateScriptMetadataInternal, parseMetadataFile, } from "../../utils/metadata.js";
|
|
10
|
+
import { inferContentTypeFromFilePath, languagesWithRawReqsSupport, } from "../../utils/script_common.js";
|
|
11
|
+
import { elementsToMap, findCodebase, readDirRecursiveWithIgnore, yamlOptions, } from "../sync/sync.js";
|
|
12
|
+
import { ignoreF } from "../sync/sync.js";
|
|
13
|
+
import { FSFSElement } from "../sync/sync.js";
|
|
14
|
+
import { mergeConfigWithConfigFile, readConfigFile, } from "../../core/conf.js";
|
|
15
|
+
import { listSyncCodebases } from "../../utils/codebase.js";
|
|
16
|
+
import fs from "node:fs";
|
|
17
|
+
import { execSync } from "node:child_process";
|
|
18
|
+
async function push(opts, filePath) {
|
|
19
|
+
opts = await mergeConfigWithConfigFile(opts);
|
|
20
|
+
const workspace = await resolveWorkspace(opts);
|
|
21
|
+
if (!validatePath(filePath)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const fstat = await dntShim.Deno.stat(filePath);
|
|
25
|
+
if (!fstat.isFile) {
|
|
26
|
+
throw new Error("file path must refer to a file.");
|
|
27
|
+
}
|
|
28
|
+
if (filePath.endsWith(".script.json") || filePath.endsWith(".script.yaml")) {
|
|
29
|
+
throw Error("Cannot push a script metadata file, point to the script content file instead (.py, .ts, .go|.sh)");
|
|
30
|
+
}
|
|
31
|
+
await requireLogin(opts);
|
|
32
|
+
const codebases = await listSyncCodebases(opts);
|
|
33
|
+
const globalDeps = await findGlobalDeps();
|
|
34
|
+
await handleFile(filePath, workspace, [], undefined, opts, globalDeps, codebases);
|
|
35
|
+
log.info(colors.bold.underline.green(`Script ${filePath} pushed`));
|
|
36
|
+
}
|
|
37
|
+
export async function findResourceFile(path) {
|
|
38
|
+
const splitPath = path.split(".");
|
|
39
|
+
const contentBasePathJSON = splitPath[0] + "." + splitPath[1] + ".json";
|
|
40
|
+
const contentBasePathYAML = splitPath[0] + "." + splitPath[1] + ".yaml";
|
|
41
|
+
const validCandidates = (await Promise.all([contentBasePathJSON, contentBasePathYAML].map((x) => {
|
|
42
|
+
return dntShim.Deno.stat(x)
|
|
43
|
+
.catch(() => undefined)
|
|
44
|
+
.then((x) => x?.isFile)
|
|
45
|
+
.then((e) => {
|
|
46
|
+
return { path: x, file: e };
|
|
47
|
+
});
|
|
48
|
+
})))
|
|
49
|
+
.filter((x) => x.file)
|
|
50
|
+
.map((x) => x.path);
|
|
51
|
+
if (validCandidates.length > 1) {
|
|
52
|
+
throw new Error("Found two resource files for the same resource" +
|
|
53
|
+
validCandidates.join(", "));
|
|
54
|
+
}
|
|
55
|
+
if (validCandidates.length < 1) {
|
|
56
|
+
throw new Error(`No resource matching file resource: ${path}.`);
|
|
57
|
+
}
|
|
58
|
+
return validCandidates[0];
|
|
59
|
+
}
|
|
60
|
+
export async function handleScriptMetadata(path, workspace, alreadySynced, message, globalDeps, codebases, opts) {
|
|
61
|
+
if (path.endsWith(".script.json") ||
|
|
62
|
+
path.endsWith(".script.yaml") ||
|
|
63
|
+
path.endsWith(".script.lock")) {
|
|
64
|
+
const contentPath = await findContentFile(path);
|
|
65
|
+
return handleFile(contentPath, workspace, alreadySynced, message, opts, globalDeps, codebases);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export async function handleFile(path, workspace, alreadySynced, message, opts, globalDeps, codebases) {
|
|
72
|
+
if (!path.includes(".inline_script.") &&
|
|
73
|
+
exts.some((exts) => path.endsWith(exts))) {
|
|
74
|
+
if (alreadySynced.includes(path)) {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
log.debug(`Processing local script ${path}`);
|
|
78
|
+
alreadySynced.push(path);
|
|
79
|
+
const remotePath = path
|
|
80
|
+
.substring(0, path.indexOf("."))
|
|
81
|
+
.replaceAll(SEP, "/");
|
|
82
|
+
const language = inferContentTypeFromFilePath(path, opts?.defaultTs);
|
|
83
|
+
const codebase = language == "bun" ? findCodebase(path, codebases) : undefined;
|
|
84
|
+
let bundleContent = undefined;
|
|
85
|
+
if (codebase) {
|
|
86
|
+
if (codebase.customBundler) {
|
|
87
|
+
log.info(`Using custom bundler ${codebase.customBundler} for ${path}`);
|
|
88
|
+
bundleContent = execSync(codebase.customBundler + " " + path).toString();
|
|
89
|
+
log.info("Custom bundler executed for " + path);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
const esbuild = await import("esbuild");
|
|
93
|
+
log.info(`Started bundling ${path} ...`);
|
|
94
|
+
const startTime = performance.now();
|
|
95
|
+
const out = await esbuild.build({
|
|
96
|
+
entryPoints: [path],
|
|
97
|
+
format: "cjs",
|
|
98
|
+
bundle: true,
|
|
99
|
+
write: false,
|
|
100
|
+
external: codebase.external,
|
|
101
|
+
inject: codebase.inject,
|
|
102
|
+
define: codebase.define,
|
|
103
|
+
platform: "node",
|
|
104
|
+
packages: "bundle",
|
|
105
|
+
target: "node20.15.1",
|
|
106
|
+
});
|
|
107
|
+
const endTime = performance.now();
|
|
108
|
+
bundleContent = out.outputFiles[0].text;
|
|
109
|
+
log.info(`Finished bundling ${path}: ${(bundleContent.length / 1024).toFixed(0)}kB (${(endTime - startTime).toFixed(0)}ms)`);
|
|
110
|
+
}
|
|
111
|
+
if (Array.isArray(codebase.assets) && codebase.assets.length > 0) {
|
|
112
|
+
const archiveNpm = await import("@ayonli/jsext/archive");
|
|
113
|
+
log.info(`Using the following asset configuration for ${path}: ${JSON.stringify(codebase.assets)}`);
|
|
114
|
+
const startTime = performance.now();
|
|
115
|
+
const tarball = new archiveNpm.Tarball();
|
|
116
|
+
tarball.append(new File([bundleContent], "main.js", { type: "text/plain" }));
|
|
117
|
+
for (const asset of codebase.assets) {
|
|
118
|
+
const data = fs.readFileSync(asset.from);
|
|
119
|
+
const blob = new Blob([data], { type: "text/plain" });
|
|
120
|
+
const file = new File([blob], asset.to);
|
|
121
|
+
tarball.append(file);
|
|
122
|
+
}
|
|
123
|
+
const endTime = performance.now();
|
|
124
|
+
log.info(`Finished creating tarball for ${path}: ${(tarball.size / 1024).toFixed(0)}kB (${(endTime - startTime).toFixed(0)}ms)`);
|
|
125
|
+
bundleContent = tarball;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
let typed = opts?.skipScriptsMetadata
|
|
129
|
+
? undefined
|
|
130
|
+
: (await parseMetadataFile(remotePath, opts
|
|
131
|
+
? {
|
|
132
|
+
...opts,
|
|
133
|
+
path,
|
|
134
|
+
workspaceRemote: workspace,
|
|
135
|
+
schemaOnly: codebase ? true : undefined,
|
|
136
|
+
}
|
|
137
|
+
: undefined, globalDeps, codebases))?.payload;
|
|
138
|
+
const workspaceId = workspace.workspaceId;
|
|
139
|
+
let remote = undefined;
|
|
140
|
+
try {
|
|
141
|
+
remote = await wmill.getScriptByPath({
|
|
142
|
+
workspace: workspaceId,
|
|
143
|
+
path: remotePath,
|
|
144
|
+
});
|
|
145
|
+
log.debug(`Script ${remotePath} exists on remote`);
|
|
146
|
+
}
|
|
147
|
+
catch {
|
|
148
|
+
log.debug(`Script ${remotePath} does not exist on remote`);
|
|
149
|
+
}
|
|
150
|
+
const content = await dntShim.Deno.readTextFile(path);
|
|
151
|
+
if (opts?.skipScriptsMetadata) {
|
|
152
|
+
// if (codebase) {
|
|
153
|
+
// const typedBefore = JSON.parse(JSON.stringify(typed.schema));
|
|
154
|
+
// await updateScriptSchema(content, language, typed, path);
|
|
155
|
+
// if (typedBefore != typed.schema) {
|
|
156
|
+
// log.info(`Updated metadata for bundle ${path}`);
|
|
157
|
+
// showDiff(
|
|
158
|
+
// yamlStringify(typedBefore, yamlOptions),
|
|
159
|
+
// yamlStringify(typed.schema, yamlOptions)
|
|
160
|
+
// );
|
|
161
|
+
// await Deno.writeTextFile(
|
|
162
|
+
// remotePath + ".script.yaml",
|
|
163
|
+
// yamlStringify(typed as Record<string, any>, yamlOptions)
|
|
164
|
+
// );
|
|
165
|
+
// }
|
|
166
|
+
// }
|
|
167
|
+
// else {
|
|
168
|
+
typed = structuredClone(remote);
|
|
169
|
+
// }
|
|
170
|
+
}
|
|
171
|
+
if (typed && codebase) {
|
|
172
|
+
typed.codebase = await codebase.getDigest();
|
|
173
|
+
}
|
|
174
|
+
const requestBodyCommon = {
|
|
175
|
+
content,
|
|
176
|
+
description: typed?.description ?? "",
|
|
177
|
+
language: language,
|
|
178
|
+
path: remotePath.replaceAll(SEP, "/"),
|
|
179
|
+
summary: typed?.summary ?? "",
|
|
180
|
+
kind: typed?.kind,
|
|
181
|
+
lock: typed?.lock,
|
|
182
|
+
schema: typed?.schema,
|
|
183
|
+
tag: typed?.tag,
|
|
184
|
+
ws_error_handler_muted: typed?.ws_error_handler_muted,
|
|
185
|
+
dedicated_worker: typed?.dedicated_worker,
|
|
186
|
+
cache_ttl: typed?.cache_ttl,
|
|
187
|
+
concurrency_time_window_s: typed?.concurrency_time_window_s,
|
|
188
|
+
concurrent_limit: typed?.concurrent_limit,
|
|
189
|
+
deployment_message: message,
|
|
190
|
+
restart_unless_cancelled: typed?.restart_unless_cancelled,
|
|
191
|
+
visible_to_runner_only: typed?.visible_to_runner_only,
|
|
192
|
+
no_main_func: typed?.no_main_func,
|
|
193
|
+
has_preprocessor: typed?.has_preprocessor,
|
|
194
|
+
priority: typed?.priority,
|
|
195
|
+
concurrency_key: typed?.concurrency_key,
|
|
196
|
+
codebase: await codebase?.getDigest(),
|
|
197
|
+
timeout: typed?.timeout,
|
|
198
|
+
on_behalf_of_email: typed?.on_behalf_of_email,
|
|
199
|
+
};
|
|
200
|
+
// log.info(JSON.stringify(requestBodyCommon, null, 2))
|
|
201
|
+
// log.info(JSON.stringify(opts, null, 2))
|
|
202
|
+
if (remote) {
|
|
203
|
+
if (content === remote.content) {
|
|
204
|
+
if (typed == undefined ||
|
|
205
|
+
(typed.description === remote.description &&
|
|
206
|
+
typed.summary === remote.summary &&
|
|
207
|
+
typed.kind == remote.kind &&
|
|
208
|
+
!remote.archived &&
|
|
209
|
+
(Array.isArray(remote?.lock)
|
|
210
|
+
? remote?.lock?.join("\n")
|
|
211
|
+
: remote?.lock ?? "").trim() == (typed?.lock ?? "").trim() &&
|
|
212
|
+
deepEqual(typed.schema, remote.schema) &&
|
|
213
|
+
typed.tag == remote.tag &&
|
|
214
|
+
(typed.ws_error_handler_muted ?? false) ==
|
|
215
|
+
remote.ws_error_handler_muted &&
|
|
216
|
+
typed.dedicated_worker == remote.dedicated_worker &&
|
|
217
|
+
typed.cache_ttl == remote.cache_ttl &&
|
|
218
|
+
typed.concurrency_time_window_s ==
|
|
219
|
+
remote.concurrency_time_window_s &&
|
|
220
|
+
typed.concurrent_limit == remote.concurrent_limit &&
|
|
221
|
+
Boolean(typed.restart_unless_cancelled) ==
|
|
222
|
+
Boolean(remote.restart_unless_cancelled) &&
|
|
223
|
+
Boolean(typed.visible_to_runner_only) ==
|
|
224
|
+
Boolean(remote.visible_to_runner_only) &&
|
|
225
|
+
Boolean(typed.no_main_func) == Boolean(remote.no_main_func) &&
|
|
226
|
+
Boolean(typed.has_preprocessor) ==
|
|
227
|
+
Boolean(remote.has_preprocessor) &&
|
|
228
|
+
typed.priority == Boolean(remote.priority) &&
|
|
229
|
+
typed.timeout == remote.timeout &&
|
|
230
|
+
//@ts-ignore
|
|
231
|
+
typed.concurrency_key == remote["concurrency_key"] &&
|
|
232
|
+
typed.codebase == remote.codebase &&
|
|
233
|
+
typed.on_behalf_of_email == remote.on_behalf_of_email)) {
|
|
234
|
+
log.info(colors.green(`Script ${remotePath} is up to date`));
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
log.info(`Updating script ${remotePath} ...`);
|
|
239
|
+
const body = {
|
|
240
|
+
...requestBodyCommon,
|
|
241
|
+
parent_hash: remote.hash,
|
|
242
|
+
};
|
|
243
|
+
const execTime = await createScript(bundleContent, workspaceId, body, workspace);
|
|
244
|
+
log.info(colors.yellow.bold(`Updated script ${remotePath} (${execTime.toFixed(0)}ms)`));
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
log.info(`Creating new script ${remotePath} ...`);
|
|
248
|
+
const body = {
|
|
249
|
+
...requestBodyCommon,
|
|
250
|
+
parent_hash: undefined,
|
|
251
|
+
};
|
|
252
|
+
const execTime = await createScript(bundleContent, workspaceId, body, workspace);
|
|
253
|
+
log.info(colors.yellow.bold(`Created new script ${remotePath} (${execTime.toFixed(0)}ms)`));
|
|
254
|
+
}
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
async function streamToBlob(stream) {
|
|
260
|
+
// Create a reader from the stream
|
|
261
|
+
const reader = stream.getReader();
|
|
262
|
+
const chunks = [];
|
|
263
|
+
// Read the data from the stream
|
|
264
|
+
while (true) {
|
|
265
|
+
const { done, value } = await reader.read();
|
|
266
|
+
if (done) {
|
|
267
|
+
// If stream is finished, break the loop
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
// Push the chunk to the array
|
|
271
|
+
chunks.push(value);
|
|
272
|
+
}
|
|
273
|
+
// Create a Blob from the chunks
|
|
274
|
+
const blob = new Blob(chunks);
|
|
275
|
+
return blob;
|
|
276
|
+
}
|
|
277
|
+
async function createScript(bundleContent, workspaceId, body, workspace) {
|
|
278
|
+
const start = performance.now();
|
|
279
|
+
if (!bundleContent) {
|
|
280
|
+
try {
|
|
281
|
+
// no parent hash
|
|
282
|
+
await wmill.createScript({
|
|
283
|
+
workspace: workspaceId,
|
|
284
|
+
requestBody: body,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
catch (e) {
|
|
288
|
+
throw Error(`Script creation for ${body.path} with parent ${body.parent_hash} was not successful: ${e.body ?? e.message} `);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
const form = new FormData();
|
|
293
|
+
form.append("script", JSON.stringify(body));
|
|
294
|
+
form.append("file", typeof bundleContent == "string"
|
|
295
|
+
? bundleContent
|
|
296
|
+
: await streamToBlob(bundleContent.stream()));
|
|
297
|
+
const url = workspace.remote +
|
|
298
|
+
"api/w/" +
|
|
299
|
+
workspace.workspaceId +
|
|
300
|
+
"/scripts/create_snapshot";
|
|
301
|
+
const req = await fetch(url, {
|
|
302
|
+
method: "POST",
|
|
303
|
+
headers: { Authorization: `Bearer ${workspace.token} ` },
|
|
304
|
+
body: form,
|
|
305
|
+
});
|
|
306
|
+
if (req.status != 201) {
|
|
307
|
+
throw Error(`Script snapshot creation was not successful: ${req.status} - ${req.statusText} - ${await req.text()} `);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return performance.now() - start;
|
|
311
|
+
}
|
|
312
|
+
export async function findContentFile(filePath) {
|
|
313
|
+
const candidates = filePath.endsWith("script.json")
|
|
314
|
+
? exts.map((x) => filePath.replace(".script.json", x))
|
|
315
|
+
: filePath.endsWith("script.lock")
|
|
316
|
+
? exts.map((x) => filePath.replace(".script.lock", x))
|
|
317
|
+
: exts.map((x) => filePath.replace(".script.yaml", x));
|
|
318
|
+
const validCandidates = (await Promise.all(candidates.map((x) => {
|
|
319
|
+
return dntShim.Deno.stat(x)
|
|
320
|
+
.catch(() => undefined)
|
|
321
|
+
.then((x) => x?.isFile)
|
|
322
|
+
.then((e) => {
|
|
323
|
+
return { path: x, file: e };
|
|
324
|
+
});
|
|
325
|
+
})))
|
|
326
|
+
.filter((x) => x.file)
|
|
327
|
+
.map((x) => x.path);
|
|
328
|
+
if (validCandidates.length > 1) {
|
|
329
|
+
throw new Error("No content path given and more than one candidate found: " +
|
|
330
|
+
validCandidates.join(", "));
|
|
331
|
+
}
|
|
332
|
+
if (validCandidates.length < 1) {
|
|
333
|
+
throw new Error(`No content path given and no content file found for ${filePath}.`);
|
|
334
|
+
}
|
|
335
|
+
return validCandidates[0];
|
|
336
|
+
}
|
|
337
|
+
export function filePathExtensionFromContentType(language, defaultTs) {
|
|
338
|
+
if (language === "python3") {
|
|
339
|
+
return ".py";
|
|
340
|
+
}
|
|
341
|
+
else if (language === "nativets") {
|
|
342
|
+
return ".fetch.ts";
|
|
343
|
+
}
|
|
344
|
+
else if (language === "bun") {
|
|
345
|
+
if (defaultTs == "deno") {
|
|
346
|
+
return ".bun.ts";
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
return ".ts";
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
else if (language === "deno") {
|
|
353
|
+
if (defaultTs == undefined || defaultTs == "bun") {
|
|
354
|
+
return ".deno.ts";
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
return ".ts";
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
else if (language === "go") {
|
|
361
|
+
return ".go";
|
|
362
|
+
}
|
|
363
|
+
else if (language === "mysql") {
|
|
364
|
+
return ".my.sql";
|
|
365
|
+
}
|
|
366
|
+
else if (language === "bigquery") {
|
|
367
|
+
return ".bq.sql";
|
|
368
|
+
}
|
|
369
|
+
else if (language === "duckdb") {
|
|
370
|
+
return ".duckdb.sql";
|
|
371
|
+
}
|
|
372
|
+
else if (language === "oracledb") {
|
|
373
|
+
return ".odb.sql";
|
|
374
|
+
}
|
|
375
|
+
else if (language === "snowflake") {
|
|
376
|
+
return ".sf.sql";
|
|
377
|
+
}
|
|
378
|
+
else if (language === "mssql") {
|
|
379
|
+
return ".ms.sql";
|
|
380
|
+
}
|
|
381
|
+
else if (language === "postgresql") {
|
|
382
|
+
return ".pg.sql";
|
|
383
|
+
}
|
|
384
|
+
else if (language === "graphql") {
|
|
385
|
+
return ".gql";
|
|
386
|
+
}
|
|
387
|
+
else if (language === "bash") {
|
|
388
|
+
return ".sh";
|
|
389
|
+
}
|
|
390
|
+
else if (language === "powershell") {
|
|
391
|
+
return ".ps1";
|
|
392
|
+
}
|
|
393
|
+
else if (language === "php") {
|
|
394
|
+
return ".php";
|
|
395
|
+
}
|
|
396
|
+
else if (language === "rust") {
|
|
397
|
+
return ".rs";
|
|
398
|
+
}
|
|
399
|
+
else if (language === "ansible") {
|
|
400
|
+
return ".playbook.yml";
|
|
401
|
+
}
|
|
402
|
+
else if (language === "csharp") {
|
|
403
|
+
return ".cs";
|
|
404
|
+
}
|
|
405
|
+
else if (language === "nu") {
|
|
406
|
+
return ".nu";
|
|
407
|
+
}
|
|
408
|
+
else if (language === "java") {
|
|
409
|
+
return ".java";
|
|
410
|
+
// for related places search: ADD_NEW_LANG
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
throw new Error("Invalid language: " + language);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
export const exts = [
|
|
417
|
+
".fetch.ts",
|
|
418
|
+
".deno.ts",
|
|
419
|
+
".bun.ts",
|
|
420
|
+
".ts",
|
|
421
|
+
".py",
|
|
422
|
+
".go",
|
|
423
|
+
".sh",
|
|
424
|
+
".pg.sql",
|
|
425
|
+
".my.sql",
|
|
426
|
+
".bq.sql",
|
|
427
|
+
".odb.sql",
|
|
428
|
+
".sf.sql",
|
|
429
|
+
".ms.sql",
|
|
430
|
+
".duckdb.sql",
|
|
431
|
+
".sql",
|
|
432
|
+
".gql",
|
|
433
|
+
".ps1",
|
|
434
|
+
".php",
|
|
435
|
+
".rs",
|
|
436
|
+
".cs",
|
|
437
|
+
".nu",
|
|
438
|
+
".playbook.yml",
|
|
439
|
+
".java",
|
|
440
|
+
// for related places search: ADD_NEW_LANG
|
|
441
|
+
];
|
|
442
|
+
export function removeExtensionToPath(path) {
|
|
443
|
+
for (const ext of exts) {
|
|
444
|
+
if (path.endsWith(ext)) {
|
|
445
|
+
return path.substring(0, path.length - ext.length);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
throw new Error("Invalid extension: " + path);
|
|
449
|
+
}
|
|
450
|
+
async function list(opts) {
|
|
451
|
+
const workspace = await resolveWorkspace(opts);
|
|
452
|
+
await requireLogin(opts);
|
|
453
|
+
let page = 0;
|
|
454
|
+
const perPage = 10;
|
|
455
|
+
const total = [];
|
|
456
|
+
while (true) {
|
|
457
|
+
const res = await wmill.listScripts({
|
|
458
|
+
workspace: workspace.workspaceId,
|
|
459
|
+
page,
|
|
460
|
+
perPage,
|
|
461
|
+
showArchived: opts.showArchived ?? false,
|
|
462
|
+
includeWithoutMain: opts.includeWithoutMain ?? false,
|
|
463
|
+
includeDraftOnly: opts.includeDraftOnly ?? true,
|
|
464
|
+
});
|
|
465
|
+
page += 1;
|
|
466
|
+
total.push(...res);
|
|
467
|
+
if (res.length < perPage) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
new Table()
|
|
472
|
+
.header(["path", "summary", "language", "created by"])
|
|
473
|
+
.padding(2)
|
|
474
|
+
.border(true)
|
|
475
|
+
.body(total.map((x) => [x.path, x.summary, x.language, x.created_by]))
|
|
476
|
+
.render();
|
|
477
|
+
}
|
|
478
|
+
export async function resolve(input) {
|
|
479
|
+
if (!input) {
|
|
480
|
+
throw new Error("No data given");
|
|
481
|
+
}
|
|
482
|
+
if (input == "@-") {
|
|
483
|
+
input = new TextDecoder().decode(await readAll(dntShim.Deno.stdin));
|
|
484
|
+
}
|
|
485
|
+
if (input[0] == "@") {
|
|
486
|
+
input = await dntShim.Deno.readTextFile(input.substring(1));
|
|
487
|
+
}
|
|
488
|
+
try {
|
|
489
|
+
return JSON.parse(input);
|
|
490
|
+
}
|
|
491
|
+
catch (e) {
|
|
492
|
+
console.error("Impossible to parse input as JSON", input);
|
|
493
|
+
throw e;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
async function run(opts, path) {
|
|
497
|
+
const workspace = await resolveWorkspace(opts);
|
|
498
|
+
await requireLogin(opts);
|
|
499
|
+
const input = opts.data ? await resolve(opts.data) : {};
|
|
500
|
+
const id = await wmill.runScriptByPath({
|
|
501
|
+
workspace: workspace.workspaceId,
|
|
502
|
+
path,
|
|
503
|
+
requestBody: input,
|
|
504
|
+
});
|
|
505
|
+
if (!opts.silent) {
|
|
506
|
+
await track_job(workspace.workspaceId, id);
|
|
507
|
+
}
|
|
508
|
+
while (true) {
|
|
509
|
+
try {
|
|
510
|
+
const result = (await wmill.getCompletedJob({
|
|
511
|
+
workspace: workspace.workspaceId,
|
|
512
|
+
id,
|
|
513
|
+
})).result ?? {};
|
|
514
|
+
if (opts.silent) {
|
|
515
|
+
console.log(result);
|
|
516
|
+
}
|
|
517
|
+
else {
|
|
518
|
+
log.info(result);
|
|
519
|
+
}
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
catch {
|
|
523
|
+
new Promise((resolve, _) => setTimeout(() => resolve(undefined), 100));
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
export async function track_job(workspace, id) {
|
|
528
|
+
try {
|
|
529
|
+
const result = await wmill.getCompletedJob({ workspace, id });
|
|
530
|
+
log.info(result.logs);
|
|
531
|
+
log.info("\n");
|
|
532
|
+
log.info(colors.bold.underline.green("Job Completed"));
|
|
533
|
+
log.info("\n");
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
catch {
|
|
537
|
+
/* ignore */
|
|
538
|
+
}
|
|
539
|
+
log.info(colors.yellow("Waiting for Job " + id + " to start..."));
|
|
540
|
+
let logOffset = 0;
|
|
541
|
+
let running = false;
|
|
542
|
+
let retry = 0;
|
|
543
|
+
while (true) {
|
|
544
|
+
let updates;
|
|
545
|
+
try {
|
|
546
|
+
updates = await wmill.getJobUpdates({
|
|
547
|
+
workspace,
|
|
548
|
+
id,
|
|
549
|
+
logOffset,
|
|
550
|
+
running,
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
catch {
|
|
554
|
+
retry++;
|
|
555
|
+
if (retry > 3) {
|
|
556
|
+
log.info("failed to get job updated. skipping log streaming.");
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
if (!running && updates.running === true) {
|
|
562
|
+
running = true;
|
|
563
|
+
log.info(colors.green("Job running. Streaming logs..."));
|
|
564
|
+
}
|
|
565
|
+
if (updates.new_logs) {
|
|
566
|
+
writeAllSync(dntShim.Deno.stdout, new TextEncoder().encode(updates.new_logs));
|
|
567
|
+
logOffset += updates.new_logs.length;
|
|
568
|
+
}
|
|
569
|
+
if (updates.completed === true) {
|
|
570
|
+
running = false;
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
if (running && updates.running === false) {
|
|
574
|
+
running = false;
|
|
575
|
+
log.info(colors.yellow("Job suspended. Waiting for it to continue..."));
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
await new Promise((resolve, _) => setTimeout(() => resolve(undefined), 1000));
|
|
579
|
+
try {
|
|
580
|
+
const final_job = await wmill.getCompletedJob({ workspace, id });
|
|
581
|
+
if ((final_job.logs?.length ?? -1) > logOffset) {
|
|
582
|
+
log.info(final_job.logs.substring(logOffset));
|
|
583
|
+
}
|
|
584
|
+
log.info("\n");
|
|
585
|
+
if (final_job.success) {
|
|
586
|
+
log.info(colors.bold.underline.green("Job Completed"));
|
|
587
|
+
}
|
|
588
|
+
else {
|
|
589
|
+
log.info(colors.bold.underline.red("Job Completed"));
|
|
590
|
+
}
|
|
591
|
+
log.info("\n");
|
|
592
|
+
}
|
|
593
|
+
catch {
|
|
594
|
+
log.info("Job appears to have completed, but no data can be retrieved");
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
async function show(opts, path) {
|
|
598
|
+
const workspace = await resolveWorkspace(opts);
|
|
599
|
+
await requireLogin(opts);
|
|
600
|
+
const s = await wmill.getScriptByPath({
|
|
601
|
+
workspace: workspace.workspaceId,
|
|
602
|
+
path,
|
|
603
|
+
});
|
|
604
|
+
log.info(colors.underline(s.path));
|
|
605
|
+
if (s.description)
|
|
606
|
+
log.info(s.description);
|
|
607
|
+
log.info("");
|
|
608
|
+
log.info(s.content);
|
|
609
|
+
}
|
|
610
|
+
async function bootstrap(opts, scriptPath, language) {
|
|
611
|
+
if (!validatePath(scriptPath)) {
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
const scriptInitialCode = scriptBootstrapCode[language];
|
|
615
|
+
if (scriptInitialCode === undefined) {
|
|
616
|
+
throw new Error("Language unknown");
|
|
617
|
+
}
|
|
618
|
+
const config = await readConfigFile();
|
|
619
|
+
const extension = filePathExtensionFromContentType(language, config.defaultTs);
|
|
620
|
+
const scriptCodeFileFullPath = scriptPath + extension;
|
|
621
|
+
const scriptMetadataFileFullPath = scriptPath + ".script.yaml";
|
|
622
|
+
try {
|
|
623
|
+
await dntShim.Deno.stat(scriptCodeFileFullPath);
|
|
624
|
+
await dntShim.Deno.stat(scriptMetadataFileFullPath);
|
|
625
|
+
throw new Error("File already exists in repository");
|
|
626
|
+
}
|
|
627
|
+
catch {
|
|
628
|
+
// file does not exist, we can continue
|
|
629
|
+
}
|
|
630
|
+
const scriptMetadata = defaultScriptMetadata();
|
|
631
|
+
if (opts.summary !== undefined) {
|
|
632
|
+
scriptMetadata.summary = opts.summary;
|
|
633
|
+
}
|
|
634
|
+
if (opts.description !== undefined) {
|
|
635
|
+
scriptMetadata.description = opts.description;
|
|
636
|
+
}
|
|
637
|
+
const scriptInitialMetadataYaml = yamlStringify(scriptMetadata, yamlOptions);
|
|
638
|
+
await dntShim.Deno.writeTextFile(scriptCodeFileFullPath, scriptInitialCode, {
|
|
639
|
+
createNew: true,
|
|
640
|
+
});
|
|
641
|
+
await dntShim.Deno.writeTextFile(scriptMetadataFileFullPath, scriptInitialMetadataYaml, {
|
|
642
|
+
createNew: true,
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
export async function findGlobalDeps() {
|
|
646
|
+
var globalDeps = new Map();
|
|
647
|
+
const els = await FSFSElement(dntShim.Deno.cwd(), [], false);
|
|
648
|
+
for await (const entry of readDirRecursiveWithIgnore((p, isDir) => {
|
|
649
|
+
p = SEP + p;
|
|
650
|
+
return (!isDir &&
|
|
651
|
+
// Skip if the filename is not one of lockfile names
|
|
652
|
+
!(languagesWithRawReqsSupport.some(lockfile => p.endsWith(SEP + lockfile.rrFilename))));
|
|
653
|
+
}, els)) {
|
|
654
|
+
if (entry.isDirectory || entry.ignored)
|
|
655
|
+
continue;
|
|
656
|
+
const content = await entry.getContentText();
|
|
657
|
+
// Iterate over available languages to find which lockfile
|
|
658
|
+
languagesWithRawReqsSupport.map((lock) => {
|
|
659
|
+
if (entry.path.endsWith(lock.rrFilename)) {
|
|
660
|
+
const current = globalDeps.get(lock) ?? {};
|
|
661
|
+
current[entry.path.substring(0, entry.path.length - lock.rrFilename.length)] = content;
|
|
662
|
+
globalDeps.set(lock, current);
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
return globalDeps;
|
|
667
|
+
}
|
|
668
|
+
async function generateMetadata(opts, scriptPath) {
|
|
669
|
+
log.info("This command only works for workspace scripts, for flows inline scripts use `wmill flow generate - locks`");
|
|
670
|
+
if (scriptPath == "") {
|
|
671
|
+
scriptPath = undefined;
|
|
672
|
+
}
|
|
673
|
+
if (scriptPath && !validatePath(scriptPath)) {
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
const workspace = await resolveWorkspace(opts);
|
|
677
|
+
await requireLogin(opts);
|
|
678
|
+
opts = await mergeConfigWithConfigFile(opts);
|
|
679
|
+
const codebases = await listSyncCodebases(opts);
|
|
680
|
+
const globalDeps = await findGlobalDeps();
|
|
681
|
+
if (scriptPath) {
|
|
682
|
+
// read script metadata file
|
|
683
|
+
await generateScriptMetadataInternal(scriptPath, workspace, opts, false, false, globalDeps, codebases, false);
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
const ignore = await ignoreF(opts);
|
|
687
|
+
const elems = await elementsToMap(await FSFSElement(dntShim.Deno.cwd(), codebases, false), (p, isD) => {
|
|
688
|
+
return ((!isD && !exts.some((ext) => p.endsWith(ext))) ||
|
|
689
|
+
ignore(p, isD) ||
|
|
690
|
+
p.includes(".flow" + SEP) ||
|
|
691
|
+
p.includes(".app" + SEP));
|
|
692
|
+
}, false, {});
|
|
693
|
+
let hasAny = false;
|
|
694
|
+
log.info("Generating metadata for all stale scripts:");
|
|
695
|
+
for (const e of Object.keys(elems)) {
|
|
696
|
+
const candidate = await generateScriptMetadataInternal(e, workspace, opts, true, true, globalDeps, codebases, false);
|
|
697
|
+
if (candidate) {
|
|
698
|
+
hasAny = true;
|
|
699
|
+
log.info(colors.green(`+ ${candidate} `));
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
if (hasAny) {
|
|
703
|
+
if (opts.dryRun) {
|
|
704
|
+
log.info(colors.gray(`Dry run complete.`));
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
if (!opts.yes &&
|
|
708
|
+
!(await Confirm.prompt({
|
|
709
|
+
message: "Update the metadata of the above scripts?",
|
|
710
|
+
default: true,
|
|
711
|
+
}))) {
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
log.info(colors.green.bold("No metadata to update"));
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
for (const e of Object.keys(elems)) {
|
|
720
|
+
await generateScriptMetadataInternal(e, workspace, opts, false, true, globalDeps, codebases, false);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
const command = new Command()
|
|
725
|
+
.description("script related commands")
|
|
726
|
+
.option("--show-archived", "Enable archived scripts in output")
|
|
727
|
+
.action(list)
|
|
728
|
+
.command("push", "push a local script spec. This overrides any remote versions. Use the script file (.ts, .js, .py, .sh)")
|
|
729
|
+
.arguments("<path:file>")
|
|
730
|
+
.action(push)
|
|
731
|
+
.command("show", "show a scripts content")
|
|
732
|
+
.arguments("<path:file>")
|
|
733
|
+
.action(show)
|
|
734
|
+
.command("run", "run a script by path")
|
|
735
|
+
.arguments("<path:file>")
|
|
736
|
+
.option("-d --data <data:file>", "Inputs specified as a JSON string or a file using @<filename> or stdin using @-.")
|
|
737
|
+
.option("-s --silent", "Do not output anything other then the final output. Useful for scripting.")
|
|
738
|
+
.action(run)
|
|
739
|
+
.command("bootstrap", "create a new script")
|
|
740
|
+
.arguments("<path:file> <language:string>")
|
|
741
|
+
.option("--summary <summary:string>", "script summary")
|
|
742
|
+
.option("--description <description:string>", "script description")
|
|
743
|
+
.action(bootstrap)
|
|
744
|
+
.command("generate-metadata", "re-generate the metadata file updating the lock and the script schema (for flows, use `wmill flow generate-locks`)")
|
|
745
|
+
.arguments("[script:file]")
|
|
746
|
+
.option("--yes", "Skip confirmation prompt")
|
|
747
|
+
.option("--dry-run", "Perform a dry run without making changes")
|
|
748
|
+
.option("--lock-only", "re-generate only the lock")
|
|
749
|
+
.option("--schema-only", "re-generate only script schema")
|
|
750
|
+
.option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)")
|
|
751
|
+
.option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.")
|
|
752
|
+
.action(generateMetadata);
|
|
753
|
+
export default command;
|