windmill-cli 1.598.0 → 1.599.1
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.20 → 1.0.21}/_create_walk_entry.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_is_subdir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/copy.js +3 -3
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_symlink.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/expand_glob.js +9 -7
- package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/walk.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.1.3 → 1.1.4}/_common/glob_to_reg_exp.js +2 -1
- package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/relative.js +1 -1
- package/esm/deps.js +3 -3
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +16 -0
- package/esm/src/commands/app/app.js +4 -0
- package/esm/src/commands/app/dev.js +488 -11
- package/esm/src/commands/app/generate_agents.js +214 -0
- package/esm/src/commands/app/new.js +532 -0
- package/esm/src/commands/app/raw_apps.js +74 -10
- package/esm/src/commands/sync/sync.js +345 -1
- package/esm/src/main.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/expand_glob.d.ts +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/extname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/extname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/extname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/relative.d.ts +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/deps.d.ts +3 -3
- package/types/gen/services.gen.d.ts +9 -1
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +18 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/app.d.ts.map +1 -1
- package/types/src/commands/app/dev.d.ts.map +1 -1
- package/types/src/commands/app/generate_agents.d.ts +15 -0
- package/types/src/commands/app/generate_agents.d.ts.map +1 -0
- package/types/src/commands/app/new.d.ts +10 -0
- package/types/src/commands/app/new.d.ts.map +1 -0
- package/types/src/commands/app/raw_apps.d.ts +6 -3
- package/types/src/commands/app/raw_apps.d.ts.map +1 -1
- package/types/src/commands/sync/sync.d.ts +18 -0
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +18 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/move.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/common.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/dirname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/common.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/dirname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/glob_to_regexp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/is_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join_globs.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/dirname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join_globs.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/resolve.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/relative.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/resolve.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/to_namespaced_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/dirname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/format.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join_globs.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/parse.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/resolve.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/to_namespaced_path.js +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.20 → 1.0.21}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/extname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/extname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/extname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.1.3 → 1.1.4}/windows/to_namespaced_path.d.ts +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
|
+
import { colors, Command, log, yamlParseFile } from "../../../deps.js";
|
|
3
|
+
import { resolveWorkspace } from "../../core/context.js";
|
|
4
|
+
import { requireLogin } from "../../core/auth.js";
|
|
5
|
+
import * as wmill from "../../../gen/services.gen.js";
|
|
6
|
+
import { generateAgentsDocumentation } from "../sync/sync.js";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import * as fs from "node:fs";
|
|
9
|
+
/**
|
|
10
|
+
* Generates DATATABLES.md content from remote workspace datatable schemas.
|
|
11
|
+
* This file focuses on schema information. For full instructions, see AGENTS.md.
|
|
12
|
+
*/
|
|
13
|
+
function generateDatatablesMarkdown(schemas, localData) {
|
|
14
|
+
const defaultDatatable = localData?.datatable;
|
|
15
|
+
const defaultSchema = localData?.schema;
|
|
16
|
+
const tables = localData?.tables ?? [];
|
|
17
|
+
let content = `# Data Tables
|
|
18
|
+
|
|
19
|
+
This file contains database schema information for this app.
|
|
20
|
+
**For full instructions on using datatables, see \`AGENTS.md\`.**
|
|
21
|
+
|
|
22
|
+
## ⚠️ IMPORTANT
|
|
23
|
+
|
|
24
|
+
**You can ONLY use tables listed in \`data.tables\` in \`raw_app.yaml\`.**
|
|
25
|
+
To use a table from the schemas below, first add it to the whitelist.
|
|
26
|
+
|
|
27
|
+
## Current Configuration
|
|
28
|
+
|
|
29
|
+
${defaultDatatable
|
|
30
|
+
? `**Default Datatable:** \`${defaultDatatable}\`${defaultSchema ? ` | **Default Schema:** \`${defaultSchema}\`` : ''}`
|
|
31
|
+
: `**No default datatable configured.** Set \`data.datatable\` in \`raw_app.yaml\`.`}
|
|
32
|
+
|
|
33
|
+
### Whitelisted Tables (You Can Use These)
|
|
34
|
+
|
|
35
|
+
${tables.length > 0
|
|
36
|
+
? tables.map((t) => `- \`${t}\``).join("\n")
|
|
37
|
+
: `*No tables whitelisted yet.*`}
|
|
38
|
+
|
|
39
|
+
### To Add a Table
|
|
40
|
+
|
|
41
|
+
Edit \`raw_app.yaml\`:
|
|
42
|
+
\`\`\`yaml
|
|
43
|
+
data:
|
|
44
|
+
datatable: ${defaultDatatable || 'main'}
|
|
45
|
+
tables:
|
|
46
|
+
${tables.length > 0 ? tables.map((t) => ` - ${t}`).join("\n") : ' # Add tables here'}
|
|
47
|
+
- ${defaultDatatable || 'main'}/${defaultSchema ? defaultSchema + ':' : ''}table_name # ← Add like this
|
|
48
|
+
\`\`\`
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Available Schemas
|
|
53
|
+
|
|
54
|
+
`;
|
|
55
|
+
if (schemas.length === 0) {
|
|
56
|
+
content += `*No datatables configured in this workspace.*
|
|
57
|
+
|
|
58
|
+
Configure datatables in Workspace Settings > Windmill Data Tables.
|
|
59
|
+
`;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
for (const dt of schemas) {
|
|
63
|
+
const isDefault = dt.datatable_name === defaultDatatable;
|
|
64
|
+
content += `### ${isDefault ? '★ ' : ''}Datatable: \`${dt.datatable_name}\`${isDefault ? ' (default)' : ''}
|
|
65
|
+
|
|
66
|
+
`;
|
|
67
|
+
if (dt.error) {
|
|
68
|
+
content += `> ⚠️ Error loading schema: ${dt.error}
|
|
69
|
+
|
|
70
|
+
`;
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
if (!dt.schemas || Object.keys(dt.schemas).length === 0) {
|
|
74
|
+
content += `*No schemas found.*
|
|
75
|
+
|
|
76
|
+
`;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
for (const [schemaName, schemaTables] of Object.entries(dt.schemas)) {
|
|
80
|
+
const isDefaultSchema = schemaName === defaultSchema;
|
|
81
|
+
content += `#### ${isDefaultSchema ? '★ ' : ''}Schema: \`${schemaName}\`${isDefaultSchema ? ' (default)' : ''}
|
|
82
|
+
|
|
83
|
+
`;
|
|
84
|
+
if (!schemaTables || Object.keys(schemaTables).length === 0) {
|
|
85
|
+
content += `*No tables.*
|
|
86
|
+
|
|
87
|
+
`;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
for (const [tableName, columns] of Object.entries(schemaTables)) {
|
|
91
|
+
const fullTableRef = schemaName === 'public'
|
|
92
|
+
? `${dt.datatable_name}/${tableName}`
|
|
93
|
+
: `${dt.datatable_name}/${schemaName}:${tableName}`;
|
|
94
|
+
const isWhitelisted = tables.some(t => t === fullTableRef ||
|
|
95
|
+
t === `${dt.datatable_name}/${schemaName}.${tableName}` ||
|
|
96
|
+
t === dt.datatable_name);
|
|
97
|
+
content += `**\`${tableName}\`**${isWhitelisted ? ' ✓' : ''} → add as \`${fullTableRef}\`
|
|
98
|
+
|
|
99
|
+
| Column | Type |
|
|
100
|
+
|--------|------|
|
|
101
|
+
`;
|
|
102
|
+
for (const [colName, colType] of Object.entries(columns)) {
|
|
103
|
+
content += `| ${colName} | \`${colType}\` |
|
|
104
|
+
`;
|
|
105
|
+
}
|
|
106
|
+
content += `
|
|
107
|
+
`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
content += `---
|
|
113
|
+
*Generated by \`wmill app generate-agents\`. See \`AGENTS.md\` for full instructions.*
|
|
114
|
+
`;
|
|
115
|
+
return content;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Regenerates AGENTS.md and DATATABLES.md for a raw app.
|
|
119
|
+
* Can be called from CLI or programmatically (e.g., after SQL migration).
|
|
120
|
+
*/
|
|
121
|
+
export async function regenerateAgentDocs(workspaceId, targetDir, silent = false) {
|
|
122
|
+
// Check for raw_app.yaml
|
|
123
|
+
const rawAppPath = path.join(targetDir, "raw_app.yaml");
|
|
124
|
+
if (!fs.existsSync(rawAppPath)) {
|
|
125
|
+
if (!silent) {
|
|
126
|
+
log.error(colors.red(`Error: raw_app.yaml not found in ${targetDir}`));
|
|
127
|
+
}
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
if (!silent) {
|
|
131
|
+
log.info(colors.cyan("Refreshing agent documentation..."));
|
|
132
|
+
}
|
|
133
|
+
// Fetch schemas
|
|
134
|
+
let schemas = [];
|
|
135
|
+
try {
|
|
136
|
+
schemas = await wmill.listDataTableSchemas({ workspace: workspaceId });
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
140
|
+
if (!silent) {
|
|
141
|
+
log.warn(colors.yellow(`Could not fetch datatable schemas: ${errorMessage}`));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
// Read local data configuration from raw_app.yaml
|
|
145
|
+
let localData;
|
|
146
|
+
try {
|
|
147
|
+
const rawApp = (await yamlParseFile(rawAppPath));
|
|
148
|
+
if (rawApp.data && typeof rawApp.data === "object") {
|
|
149
|
+
localData = rawApp.data;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
// Ignore errors reading raw_app.yaml
|
|
154
|
+
}
|
|
155
|
+
// Generate and write AGENTS.md
|
|
156
|
+
const agentsContent = generateAgentsDocumentation(localData);
|
|
157
|
+
await dntShim.Deno.writeTextFile(path.join(targetDir, "AGENTS.md"), agentsContent);
|
|
158
|
+
// Generate and write DATATABLES.md
|
|
159
|
+
const datatablesContent = generateDatatablesMarkdown(schemas, localData);
|
|
160
|
+
await dntShim.Deno.writeTextFile(path.join(targetDir, "DATATABLES.md"), datatablesContent);
|
|
161
|
+
if (!silent) {
|
|
162
|
+
log.info(colors.green(`✓ Generated AGENTS.md and DATATABLES.md`));
|
|
163
|
+
// Summary
|
|
164
|
+
const datatableCount = schemas.length;
|
|
165
|
+
const tableCount = schemas.reduce((acc, dt) => {
|
|
166
|
+
if (!dt.schemas)
|
|
167
|
+
return acc;
|
|
168
|
+
return (acc +
|
|
169
|
+
Object.values(dt.schemas).reduce((schemaAcc, tables) => {
|
|
170
|
+
return schemaAcc + Object.keys(tables || {}).length;
|
|
171
|
+
}, 0));
|
|
172
|
+
}, 0);
|
|
173
|
+
log.info(colors.gray(` Found ${datatableCount} datatable(s) with ${tableCount} table(s)`));
|
|
174
|
+
if (localData?.datatable) {
|
|
175
|
+
log.info(colors.gray(` App configured for datatable: ${localData.datatable}`));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async function generateAgents(opts, appFolder) {
|
|
180
|
+
// Resolve the app folder
|
|
181
|
+
const cwd = dntShim.Deno.cwd();
|
|
182
|
+
let targetDir = cwd;
|
|
183
|
+
if (appFolder) {
|
|
184
|
+
targetDir = path.isAbsolute(appFolder)
|
|
185
|
+
? appFolder
|
|
186
|
+
: path.join(cwd, appFolder);
|
|
187
|
+
}
|
|
188
|
+
// Ensure we're in a .raw_app folder or targeting one
|
|
189
|
+
const dirName = path.basename(targetDir);
|
|
190
|
+
if (!dirName.endsWith(".raw_app")) {
|
|
191
|
+
// Check if current directory is a .raw_app folder
|
|
192
|
+
if (!path.basename(cwd).endsWith(".raw_app") && !appFolder) {
|
|
193
|
+
log.error(colors.red("Error: Must be run inside a .raw_app folder or specify one as argument."));
|
|
194
|
+
log.info(colors.gray("Usage: wmill app generate-agents [app_folder]"));
|
|
195
|
+
dntShim.Deno.exit(1);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// Check for raw_app.yaml
|
|
199
|
+
const rawAppPath = path.join(targetDir, "raw_app.yaml");
|
|
200
|
+
if (!fs.existsSync(rawAppPath)) {
|
|
201
|
+
log.error(colors.red(`Error: raw_app.yaml not found in ${targetDir}`));
|
|
202
|
+
dntShim.Deno.exit(1);
|
|
203
|
+
}
|
|
204
|
+
// Resolve workspace and authenticate
|
|
205
|
+
const workspace = await resolveWorkspace(opts);
|
|
206
|
+
await requireLogin(opts);
|
|
207
|
+
await regenerateAgentDocs(workspace.workspaceId, targetDir);
|
|
208
|
+
}
|
|
209
|
+
// deno-lint-ignore no-explicit-any
|
|
210
|
+
const command = new Command()
|
|
211
|
+
.description("regenerate AGENTS.md and DATATABLES.md from remote workspace")
|
|
212
|
+
.arguments("[app_folder:string]")
|
|
213
|
+
.action(generateAgents);
|
|
214
|
+
export default command;
|