windmill-cli 1.657.2 → 1.658.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.
Files changed (2) hide show
  1. package/esm/main.js +8 -6
  2. package/package.json +1 -1
package/esm/main.js CHANGED
@@ -11785,7 +11785,7 @@ var init_OpenAPI = __esm(() => {
11785
11785
  PASSWORD: undefined,
11786
11786
  TOKEN: getEnv2("WM_TOKEN"),
11787
11787
  USERNAME: undefined,
11788
- VERSION: "1.657.2",
11788
+ VERSION: "1.658.0",
11789
11789
  WITH_CREDENTIALS: true,
11790
11790
  interceptors: {
11791
11791
  request: new Interceptors,
@@ -31128,7 +31128,7 @@ end
31128
31128
 
31129
31129
  // src/utils/script_common.ts
31130
31130
  function languageNeedsLock(language) {
31131
- return workspaceDependenciesLanguages.some((l) => l.language === language) || language === "deno" || language === "rust" || language === "ansible";
31131
+ return workspaceDependenciesLanguages.some((l) => l.language === language) && language !== "powershell" || language === "deno" || language === "rust" || language === "ansible";
31132
31132
  }
31133
31133
  function inferContentTypeFromFilePath(contentPath, defaultTs) {
31134
31134
  if (contentPath.endsWith(".py")) {
@@ -31187,7 +31187,8 @@ var init_script_common = __esm(() => {
31187
31187
  { language: "bun", filename: "package.json" },
31188
31188
  { language: "python3", filename: "requirements.in" },
31189
31189
  { language: "php", filename: "composer.json" },
31190
- { language: "go", filename: "go.mod" }
31190
+ { language: "go", filename: "go.mod" },
31191
+ { language: "powershell", filename: "modules.json" }
31191
31192
  ];
31192
31193
  });
31193
31194
 
@@ -63268,7 +63269,7 @@ async function fetchScriptLock(workspace, scriptContent, language, remotePath, r
63268
63269
  }
63269
63270
  }
63270
63271
  async function updateScriptLock(workspace, scriptContent, language, remotePath, metadataContent, rawWorkspaceDependencies) {
63271
- if (!(workspaceDependenciesLanguages.some((l) => l.language == language) || language == "deno" || language == "rust" || language == "ansible")) {
63272
+ if (!(workspaceDependenciesLanguages.some((l) => l.language == language) && language !== "powershell" || language == "deno" || language == "rust" || language == "ansible")) {
63272
63273
  return;
63273
63274
  }
63274
63275
  if (Object.keys(rawWorkspaceDependencies).length > 0) {
@@ -63612,7 +63613,8 @@ var init_metadata = __esm(async () => {
63612
63613
  bun: { comment: "//", keyword: "package_json" },
63613
63614
  nativets: { comment: "//", keyword: "package_json" },
63614
63615
  go: { comment: "//", keyword: "go_mod" },
63615
- php: { comment: "//", keyword: "composer_json" }
63616
+ php: { comment: "//", keyword: "composer_json" },
63617
+ powershell: { comment: "#", keyword: "modules_json" }
63616
63618
  };
63617
63619
  lockCache = new Map;
63618
63620
  });
@@ -79254,7 +79256,7 @@ var docs_default = command30;
79254
79256
 
79255
79257
  // src/main.ts
79256
79258
  await init_context();
79257
- var VERSION = "1.657.2";
79259
+ var VERSION = "1.658.0";
79258
79260
  var command31 = new Command().name("wmill").action(() => info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`)).description("Windmill CLI").globalOption("--workspace <workspace:string>", "Specify the target workspace. This overrides the default workspace.").globalOption("--debug --verbose", "Show debug/verbose logs").globalOption("--show-diffs", "Show diff informations when syncing (may show sensitive informations)").globalOption("--token <token:string>", "Specify an API token. This will override any stored token.").globalOption("--base-url <baseUrl:string>", "Specify the base URL of the API. If used, --token and --workspace are required and no local remote/workspace already set will be used.").globalOption("--config-dir <configDir:string>", "Specify a custom config directory. Overrides WMILL_CONFIG_DIR environment variable and default ~/.config location.").env("HEADERS <headers:string>", `Specify headers to use for all requests. e.g: "HEADERS='h1: v1, h2: v2'"`).version(VERSION).versionOption(false).command("init", init_default).command("app", app_default).command("flow", flow_default).command("script", script_default).command("workspace", workspace_default).command("resource", resource_default).command("resource-type", resource_type_default).command("user", user_default).command("variable", variable_default).command("hub", hub_default).command("folder", folder_default).command("schedule", schedule_default).command("trigger", trigger_default).command("dev", dev_default2).command("sync", sync_default).command("lint", lint_default).command("gitsync-settings", gitsync_settings_default).command("instance", instance_default).command("worker-groups", worker_groups_default).command("workers", workers_default).command("queues", queues_default).command("dependencies", dependencies_default).command("jobs", jobs_default).command("generate-metadata", generate_metadata_default).command("docs", docs_default).command("version --version", "Show version information").action(async (opts) => {
79259
79261
  console.log("CLI version: " + VERSION);
79260
79262
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.657.2",
3
+ "version": "1.658.0",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",