windmill-cli 1.454.1 → 1.455.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_base32_common.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/ascii85.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base32.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base58.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/varint.js +1 -3
- package/esm/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/mod.js +5 -1
- package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/rotating_file_handler.js +1 -1
- package/esm/deps.js +6 -6
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/main.js +1 -1
- package/esm/script.js +23 -16
- package/esm/sync.js +208 -157
- package/esm/utils.js +7 -0
- package/package.json +1 -1
- package/types/conf.d.ts +1 -0
- package/types/conf.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
- 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.4 → 1.0.5}/concat.d.ts +3 -1
- package/types/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_base32_common.d.ts +2 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/_base32_common.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/ascii85.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/ascii85.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base32.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base32.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base58.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base58.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/varint.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/varint.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/fmt/{1.0.4 → 1.0.5}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/_constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/read_all.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/write_all.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_config.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_file_handler_symbols.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_state.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/base_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/console_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/critical.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/debug.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/error.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/file_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/formatters.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/get_logger.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/info.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/levels.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/logger.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/mod.d.ts +5 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/rotating_file_handler.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/setup.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/warn.d.ts.map +1 -1
- package/types/deps.d.ts +6 -6
- package/types/gen/types.gen.d.ts +1 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/main.d.ts +1 -1
- package/types/script.d.ts.map +1 -1
- package/types/sync.d.ts +2 -0
- package/types/sync.d.ts.map +1 -1
- package/types/utils.d.ts +6 -0
- package/types/utils.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fmt/{1.0.4 → 1.0.5}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_create_walk_entry.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_is_same_path.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_is_subdir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_to_path_string.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/copy.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/empty_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_file.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_link.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_symlink.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/expand_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/move.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/walk.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/copy.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/write_all.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_config.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_file_handler_symbols.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_state.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/base_handler.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/critical.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/debug.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/error.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/formatters.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/get_logger.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/info.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/levels.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/logger.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/setup.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/warn.js +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.4 → 1.0.5}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/expand_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.10 → 1.0.11}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/_constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/read_all.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/io/{0.225.1 → 0.225.2}/write_all.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_config.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_file_handler_symbols.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/_state.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/base_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/console_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/critical.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/debug.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/error.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/file_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/formatters.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/get_logger.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/info.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/levels.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/logger.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/rotating_file_handler.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/setup.d.ts +0 -0
- /package/types/deps/jsr.io/@std/log/{0.224.13 → 0.224.14}/warn.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
/**
|
|
4
4
|
* Utilities for working with {@link https://en.wikipedia.org/wiki/Ascii85 | ascii85} encoding.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
2
2
|
// https://github.com/golang/go/blob/master/LICENSE
|
|
3
|
-
// Copyright 2018-
|
|
3
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
4
4
|
// This module is browser compatible.
|
|
5
5
|
/**
|
|
6
6
|
* Port of the Go
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// Copyright 2020 Keith Cirkel. All rights reserved. MIT license.
|
|
3
3
|
// Copyright 2023 Skye "MierenManz". All rights reserved. MIT license.
|
|
4
4
|
/**
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
*
|
|
25
25
|
* @module
|
|
26
26
|
*/
|
|
27
|
-
// This implementation is a port of https://deno.land/x/varint@v2.0.0 by @keithamus
|
|
28
|
-
// This module is browser compatible.
|
|
29
27
|
/**
|
|
30
28
|
* The maximum value of an unsigned 64-bit integer.
|
|
31
29
|
* Equivalent to `2n**64n - 1n`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { concat } from "../../bytes/1.0.
|
|
3
|
+
import { concat } from "../../bytes/1.0.5/concat.js";
|
|
4
4
|
import { DEFAULT_CHUNK_SIZE } from "./_constants.js";
|
|
5
5
|
/**
|
|
6
6
|
* Read {@linkcode Reader} `r` until EOF (`null`) and resolve to the content as
|
|
@@ -13,7 +13,7 @@ var _ConsoleHandler_useColors;
|
|
|
13
13
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
// This module is browser compatible.
|
|
15
15
|
import { LogLevels } from "./levels.js";
|
|
16
|
-
import { blue, bold, red, yellow } from "../../fmt/1.0.
|
|
16
|
+
import { blue, bold, red, yellow } from "../../fmt/1.0.5/colors.js";
|
|
17
17
|
import { BaseHandler } from "./base_handler.js";
|
|
18
18
|
function applyColors(msg, level) {
|
|
19
19
|
switch (level) {
|
|
@@ -8,7 +8,7 @@ var _FileHandler_instances, _FileHandler_unloadCallback, _FileHandler_resetBuffe
|
|
|
8
8
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
9
9
|
import { LogLevels } from "./levels.js";
|
|
10
10
|
import { BaseHandler } from "./base_handler.js";
|
|
11
|
-
import { writeAllSync } from "../../io/0.225.
|
|
11
|
+
import { writeAllSync } from "../../io/0.225.2/write_all.js";
|
|
12
12
|
import { bufSymbol, encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openOptionsSymbol, pointerSymbol, } from "./_file_handler_symbols.js";
|
|
13
13
|
/**
|
|
14
14
|
* A file-based log handler that writes log messages to a specified file with buffering and optional modes.
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
/**
|
|
3
|
-
* Logging library with
|
|
3
|
+
* Logging library with support for terminal and file outputs. Also provides
|
|
4
4
|
* interfaces for building custom loggers.
|
|
5
5
|
*
|
|
6
|
+
* > [!IMPORTANT]
|
|
7
|
+
* > @std/log is [likely to be removed in the future](https://github.com/denoland/std/issues/6124).
|
|
8
|
+
* > Consider using [Open Telemetry](https://docs.deno.com/runtime/fundamentals/open_telemetry/).
|
|
9
|
+
*
|
|
6
10
|
* ## Loggers
|
|
7
11
|
*
|
|
8
12
|
* Loggers are objects that you interact with. When you use a logger method it
|
|
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
|
|
13
13
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
15
|
-
import { existsSync } from "../../fs/1.0.
|
|
15
|
+
import { existsSync } from "../../fs/1.0.11/exists.js";
|
|
16
16
|
import { FileHandler } from "./file_handler.js";
|
|
17
17
|
import { encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openOptionsSymbol, } from "./_file_handler_symbols.js";
|
|
18
18
|
/**
|
package/esm/deps.js
CHANGED
|
@@ -12,14 +12,14 @@ export { NpmProvider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-r
|
|
|
12
12
|
export { Provider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.js";
|
|
13
13
|
export { CompletionsCommand } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.js";
|
|
14
14
|
// std
|
|
15
|
-
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.
|
|
15
|
+
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.11/mod.js";
|
|
16
16
|
export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
17
17
|
export * as path from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
18
|
-
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.
|
|
19
|
-
export { writeAllSync } from "./deps/jsr.io/@std/io/0.225.
|
|
20
|
-
export { copy } from "./deps/jsr.io/@std/io/0.225.
|
|
21
|
-
export { readAll } from "./deps/jsr.io/@std/io/0.225.
|
|
22
|
-
export * as log from "./deps/jsr.io/@std/log/0.224.
|
|
18
|
+
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.7/mod.js";
|
|
19
|
+
export { writeAllSync } from "./deps/jsr.io/@std/io/0.225.2/write_all.js";
|
|
20
|
+
export { copy } from "./deps/jsr.io/@std/io/0.225.2/copy.js";
|
|
21
|
+
export { readAll } from "./deps/jsr.io/@std/io/0.225.2/read_all.js";
|
|
22
|
+
export * as log from "./deps/jsr.io/@std/log/0.224.14/mod.js";
|
|
23
23
|
export { stringify as yamlStringify } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
24
24
|
import { parse as yamlParse } from "./deps/jsr.io/@std/yaml/1.0.5/mod.js";
|
|
25
25
|
export async function yamlParseFile(path, options = {}) {
|
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/main.js
CHANGED
|
@@ -33,7 +33,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
|
|
|
33
33
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
34
34
|
// }
|
|
35
35
|
// });
|
|
36
|
-
export const VERSION = "1.
|
|
36
|
+
export const VERSION = "1.455.0";
|
|
37
37
|
const command = new Command()
|
|
38
38
|
.name("wmill")
|
|
39
39
|
.action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
|
package/esm/script.js
CHANGED
|
@@ -85,11 +85,12 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
|
|
|
85
85
|
if (codebase.customBundler) {
|
|
86
86
|
log.info(`Using custom bundler ${codebase.customBundler} for ${path}`);
|
|
87
87
|
bundleContent = execSync(codebase.customBundler + " " + path).toString();
|
|
88
|
-
log.info("Custom bundler executed");
|
|
88
|
+
log.info("Custom bundler executed for " + path);
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
91
|
const esbuild = await import("esbuild");
|
|
92
|
-
log.info(`
|
|
92
|
+
log.info(`Started bundling ${path} ...`);
|
|
93
|
+
const startTime = performance.now();
|
|
93
94
|
const out = await esbuild.build({
|
|
94
95
|
entryPoints: [path],
|
|
95
96
|
format: "cjs",
|
|
@@ -102,12 +103,14 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
|
|
|
102
103
|
packages: "bundle",
|
|
103
104
|
target: "node20.15.1",
|
|
104
105
|
});
|
|
106
|
+
const endTime = performance.now();
|
|
105
107
|
bundleContent = out.outputFiles[0].text;
|
|
106
|
-
log.info(
|
|
108
|
+
log.info(`Finished bundling ${path}: ${(bundleContent.length / 1024).toFixed(0)}kB (${(endTime - startTime).toFixed(0)}ms)`);
|
|
107
109
|
}
|
|
108
110
|
if (Array.isArray(codebase.assets) && codebase.assets.length > 0) {
|
|
109
111
|
const archiveNpm = await import("@ayonli/jsext/archive");
|
|
110
|
-
log.info(`Using the following asset configuration: ${JSON.stringify(codebase.assets)}`);
|
|
112
|
+
log.info(`Using the following asset configuration for ${path}: ${JSON.stringify(codebase.assets)}`);
|
|
113
|
+
const startTime = performance.now();
|
|
111
114
|
const tarball = new archiveNpm.Tarball();
|
|
112
115
|
tarball.append(new File([bundleContent], "main.js", { type: "text/plain" }));
|
|
113
116
|
for (const asset of codebase.assets) {
|
|
@@ -116,10 +119,10 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
|
|
|
116
119
|
const file = new File([blob], asset.to);
|
|
117
120
|
tarball.append(file);
|
|
118
121
|
}
|
|
119
|
-
|
|
122
|
+
const endTime = performance.now();
|
|
123
|
+
log.info(`Finished creating tarball for ${path}: ${(tarball.size / 1024).toFixed(0)}kB (${(endTime - startTime).toFixed(0)}ms)`);
|
|
120
124
|
bundleContent = tarball;
|
|
121
125
|
}
|
|
122
|
-
log.info(`Finished building the bundle for ${path}`);
|
|
123
126
|
}
|
|
124
127
|
let typed = opts?.skipScriptsMetadata ? undefined :
|
|
125
128
|
(await parseMetadataFile(remotePath, opts
|
|
@@ -231,20 +234,22 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
|
|
|
231
234
|
return true;
|
|
232
235
|
}
|
|
233
236
|
}
|
|
234
|
-
log.info(
|
|
237
|
+
log.info(`Updating script ${remotePath} ...`);
|
|
235
238
|
const body = {
|
|
236
239
|
...requestBodyCommon,
|
|
237
240
|
parent_hash: remote.hash,
|
|
238
241
|
};
|
|
239
|
-
await createScript(bundleContent, workspaceId, body, workspace);
|
|
242
|
+
const execTime = await createScript(bundleContent, workspaceId, body, workspace);
|
|
243
|
+
log.info(colors.yellow.bold(`Updated script ${remotePath} (${execTime.toFixed(0)}ms)`));
|
|
240
244
|
}
|
|
241
245
|
else {
|
|
242
|
-
log.info(
|
|
246
|
+
log.info(`Creating new script ${remotePath} ...`);
|
|
243
247
|
const body = {
|
|
244
248
|
...requestBodyCommon,
|
|
245
249
|
parent_hash: undefined,
|
|
246
250
|
};
|
|
247
|
-
await createScript(bundleContent, workspaceId, body, workspace);
|
|
251
|
+
const execTime = await createScript(bundleContent, workspaceId, body, workspace);
|
|
252
|
+
log.info(colors.yellow.bold(`Created new script ${remotePath} (${execTime.toFixed(0)}ms)`));
|
|
248
253
|
}
|
|
249
254
|
return true;
|
|
250
255
|
}
|
|
@@ -269,6 +274,7 @@ async function streamToBlob(stream) {
|
|
|
269
274
|
return blob;
|
|
270
275
|
}
|
|
271
276
|
async function createScript(bundleContent, workspaceId, body, workspace) {
|
|
277
|
+
const start = performance.now();
|
|
272
278
|
if (!bundleContent) {
|
|
273
279
|
try {
|
|
274
280
|
// no parent hash
|
|
@@ -278,7 +284,7 @@ async function createScript(bundleContent, workspaceId, body, workspace) {
|
|
|
278
284
|
});
|
|
279
285
|
}
|
|
280
286
|
catch (e) {
|
|
281
|
-
throw Error(`Script creation for ${body.path} with parent ${body.parent_hash} was not successful: ${e.body ?? e.message}`);
|
|
287
|
+
throw Error(`Script creation for ${body.path} with parent ${body.parent_hash} was not successful: ${e.body ?? e.message} `);
|
|
282
288
|
}
|
|
283
289
|
}
|
|
284
290
|
else {
|
|
@@ -293,13 +299,14 @@ async function createScript(bundleContent, workspaceId, body, workspace) {
|
|
|
293
299
|
"/scripts/create_snapshot";
|
|
294
300
|
const req = await fetch(url, {
|
|
295
301
|
method: "POST",
|
|
296
|
-
headers: { Authorization: `Bearer ${workspace.token}` },
|
|
302
|
+
headers: { Authorization: `Bearer ${workspace.token} ` },
|
|
297
303
|
body: form,
|
|
298
304
|
});
|
|
299
305
|
if (req.status != 201) {
|
|
300
|
-
throw Error(`Script snapshot creation was not successful: ${req.status} - ${req.statusText} - ${await req.text()}`);
|
|
306
|
+
throw Error(`Script snapshot creation was not successful: ${req.status} - ${req.statusText} - ${await req.text()} `);
|
|
301
307
|
}
|
|
302
308
|
}
|
|
309
|
+
return performance.now() - start;
|
|
303
310
|
}
|
|
304
311
|
export async function findContentFile(filePath) {
|
|
305
312
|
const candidates = filePath.endsWith("script.json")
|
|
@@ -648,7 +655,7 @@ export async function findGlobalDeps() {
|
|
|
648
655
|
return { pkgs, reqs, composers };
|
|
649
656
|
}
|
|
650
657
|
async function generateMetadata(opts, scriptPath) {
|
|
651
|
-
log.info("This command only works for workspace scripts, for flows inline scripts use `wmill flow generate-locks`");
|
|
658
|
+
log.info("This command only works for workspace scripts, for flows inline scripts use `wmill flow generate - locks`");
|
|
652
659
|
if (scriptPath == "") {
|
|
653
660
|
scriptPath = undefined;
|
|
654
661
|
}
|
|
@@ -678,7 +685,7 @@ async function generateMetadata(opts, scriptPath) {
|
|
|
678
685
|
const candidate = await generateScriptMetadataInternal(e, workspace, opts, true, true, globalDeps, codebases, false);
|
|
679
686
|
if (candidate) {
|
|
680
687
|
hasAny = true;
|
|
681
|
-
log.info(colors.green(`+ ${candidate}`));
|
|
688
|
+
log.info(colors.green(`+ ${candidate} `));
|
|
682
689
|
}
|
|
683
690
|
}
|
|
684
691
|
if (hasAny) {
|
|
@@ -719,7 +726,7 @@ const command = new Command()
|
|
|
719
726
|
.option("--summary <summary:string>", "script summary")
|
|
720
727
|
.option("--description <description:string>", "script description")
|
|
721
728
|
.action(bootstrap)
|
|
722
|
-
.command("generate-metadata", "re-generate the metadata file updating the lock and the script schema (for flows, use `wmill flow generate-locks`)")
|
|
729
|
+
.command("generate-metadata", "re-generate the metadata file updating the lock and the script schema (for flows, use `wmill flow generate - locks`)")
|
|
723
730
|
.arguments("[script:file]")
|
|
724
731
|
.option("--yes", "Skip confirmation prompt")
|
|
725
732
|
.option("--lock-only", "re-generate only the lock")
|