windmill-cli 1.644.0 → 1.645.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 +28 -6
  2. package/package.json +1 -1
package/esm/main.js CHANGED
@@ -5,25 +5,43 @@ var __getProtoOf = Object.getPrototypeOf;
5
5
  var __defProp = Object.defineProperty;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ function __accessProp(key) {
9
+ return this[key];
10
+ }
11
+ var __toESMCache_node;
12
+ var __toESMCache_esm;
8
13
  var __toESM = (mod, isNodeMode, target) => {
14
+ var canCache = mod != null && typeof mod === "object";
15
+ if (canCache) {
16
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
17
+ var cached = cache.get(mod);
18
+ if (cached)
19
+ return cached;
20
+ }
9
21
  target = mod != null ? __create(__getProtoOf(mod)) : {};
10
22
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
11
23
  for (let key of __getOwnPropNames(mod))
12
24
  if (!__hasOwnProp.call(to, key))
13
25
  __defProp(to, key, {
14
- get: () => mod[key],
26
+ get: __accessProp.bind(mod, key),
15
27
  enumerable: true
16
28
  });
29
+ if (canCache)
30
+ cache.set(mod, to);
17
31
  return to;
18
32
  };
19
33
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
34
+ var __returnValue = (v) => v;
35
+ function __exportSetter(name, newValue) {
36
+ this[name] = __returnValue.bind(null, newValue);
37
+ }
20
38
  var __export = (target, all) => {
21
39
  for (var name in all)
22
40
  __defProp(target, name, {
23
41
  get: all[name],
24
42
  enumerable: true,
25
43
  configurable: true,
26
- set: (newValue) => all[name] = () => newValue
44
+ set: __exportSetter.bind(all, name)
27
45
  });
28
46
  };
29
47
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
@@ -11767,7 +11785,7 @@ var init_OpenAPI = __esm(() => {
11767
11785
  PASSWORD: undefined,
11768
11786
  TOKEN: getEnv2("WM_TOKEN"),
11769
11787
  USERNAME: undefined,
11770
- VERSION: "1.644.0",
11788
+ VERSION: "1.645.0",
11771
11789
  WITH_CREDENTIALS: true,
11772
11790
  interceptors: {
11773
11791
  request: new Interceptors,
@@ -16645,7 +16663,9 @@ var backendVersion = () => {
16645
16663
  channel_id: data2.channelId,
16646
16664
  flow_step_id: data2.flowStepId,
16647
16665
  default_args_json: data2.defaultArgsJson,
16648
- dynamic_enums_json: data2.dynamicEnumsJson
16666
+ dynamic_enums_json: data2.dynamicEnumsJson,
16667
+ resume_button_text: data2.resumeButtonText,
16668
+ cancel_button_text: data2.cancelButtonText
16649
16669
  }
16650
16670
  });
16651
16671
  }, getTeamsApprovalPayload = (data2) => {
@@ -16663,7 +16683,9 @@ var backendVersion = () => {
16663
16683
  channel_name: data2.channelName,
16664
16684
  flow_step_id: data2.flowStepId,
16665
16685
  default_args_json: data2.defaultArgsJson,
16666
- dynamic_enums_json: data2.dynamicEnumsJson
16686
+ dynamic_enums_json: data2.dynamicEnumsJson,
16687
+ resume_button_text: data2.resumeButtonText,
16688
+ cancel_button_text: data2.cancelButtonText
16667
16689
  }
16668
16690
  });
16669
16691
  }, resumeSuspendedJobGet = (data2) => {
@@ -78213,7 +78235,7 @@ var jobs_default = command28;
78213
78235
 
78214
78236
  // src/main.ts
78215
78237
  await init_context();
78216
- var VERSION = "1.644.0";
78238
+ var VERSION = "1.645.0";
78217
78239
  var command29 = 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("version --version", "Show version information").action(async (opts) => {
78218
78240
  console.log("CLI version: " + VERSION);
78219
78241
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.644.0",
3
+ "version": "1.645.0",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",