windmill-cli 1.669.0 → 1.670.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 +23 -3
  2. package/package.json +1 -1
package/esm/main.js CHANGED
@@ -11812,7 +11812,7 @@ var init_OpenAPI = __esm(() => {
11812
11812
  PASSWORD: undefined,
11813
11813
  TOKEN: getEnv2("WM_TOKEN"),
11814
11814
  USERNAME: undefined,
11815
- VERSION: "1.669.0",
11815
+ VERSION: "1.670.0",
11816
11816
  WITH_CREDENTIALS: true,
11817
11817
  interceptors: {
11818
11818
  request: new Interceptors,
@@ -61430,7 +61430,13 @@ async function generateFlowLockInternal(folder, dryRun, workspace, opts, justUpd
61430
61430
  await replaceInlineScripts([flowValue.value.preprocessor_module], fileReader, exports_log, folder + SEP7, SEP7, locksToRemove);
61431
61431
  }
61432
61432
  const tempScriptRefs = tree?.getTempScriptRefs(folderNormalized);
61433
+ const savedNotes = flowValue.value.notes;
61434
+ const savedGroups = flowValue.value.groups;
61433
61435
  flowValue.value = await updateFlow2(workspace, flowValue.value, remote_path, filteredDeps, tempScriptRefs);
61436
+ if (savedNotes !== undefined)
61437
+ flowValue.value.notes = savedNotes;
61438
+ if (savedGroups !== undefined)
61439
+ flowValue.value.groups = savedGroups;
61434
61440
  const lockAssigner = newPathAssigner(opts.defaultTs ?? "bun", {
61435
61441
  skipInlineScriptSuffix: getNonDottedPaths()
61436
61442
  });
@@ -61444,7 +61450,7 @@ async function generateFlowLockInternal(folder, dryRun, workspace, opts, justUpd
61444
61450
  inlineScripts.forEach((s) => {
61445
61451
  writeIfChanged(process.cwd() + SEP7 + folder + SEP7 + s.path, s.content);
61446
61452
  });
61447
- writeIfChanged(process.cwd() + SEP7 + folder + SEP7 + "flow.yaml", import_yaml8.stringify(flowValue));
61453
+ writeIfChanged(process.cwd() + SEP7 + folder + SEP7 + "flow.yaml", import_yaml8.stringify(flowValue, yamlOptions));
61448
61454
  }
61449
61455
  const depsForHash = tree && !legacyBehaviour ? {} : filteredDeps;
61450
61456
  const finalHashes = await generateFlowHash(depsForHash, folder, opts.defaultTs);
@@ -80171,6 +80177,13 @@ properties:
80171
80177
  key:
80172
80178
  type: string
80173
80179
  value: {}
80180
+ filter_logic:
80181
+ type: string
80182
+ enum:
80183
+ - and
80184
+ - or
80185
+ description: Logic to apply when evaluating filters. 'and' requires all filters
80186
+ to match, 'or' requires any filter to match.
80174
80187
  auto_offset_reset:
80175
80188
  type: string
80176
80189
  enum:
@@ -80698,6 +80711,13 @@ properties:
80698
80711
  value: {}
80699
80712
  description: Array of key-value filters to match incoming messages (only matching
80700
80713
  messages trigger the script)
80714
+ filter_logic:
80715
+ type: string
80716
+ enum:
80717
+ - and
80718
+ - or
80719
+ description: Logic to apply when evaluating filters. 'and' requires all filters
80720
+ to match, 'or' requires any filter to match.
80701
80721
  initial_messages:
80702
80722
  type: array
80703
80723
  items:
@@ -82342,7 +82362,7 @@ var config_default = command35;
82342
82362
 
82343
82363
  // src/main.ts
82344
82364
  await init_context();
82345
- var VERSION = "1.669.0";
82365
+ var VERSION = "1.670.0";
82346
82366
  var command36 = 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("job", job_default).command("group", group_default).command("audit", audit_default).command("token", token_default).command("generate-metadata", generate_metadata_default).command("docs", docs_default).command("config", config_default).command("version --version", "Show version information").action(async (opts) => {
82347
82367
  console.log("CLI version: " + VERSION);
82348
82368
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.669.0",
3
+ "version": "1.670.0",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",