windmill-cli 1.652.0 → 1.653.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 +24 -4
  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.652.0",
11788
+ VERSION: "1.653.0",
11789
11789
  WITH_CREDENTIALS: true,
11790
11790
  interceptors: {
11791
11791
  request: new Interceptors,
@@ -67155,6 +67155,12 @@ function migrateToGroupedFormat(settings) {
67155
67155
  result.color = settings.color;
67156
67156
  if (settings.operator_settings !== undefined)
67157
67157
  result.operator_settings = settings.operator_settings;
67158
+ if (settings.slack_team_id !== undefined)
67159
+ result.slack_team_id = settings.slack_team_id;
67160
+ if (settings.slack_name !== undefined)
67161
+ result.slack_name = settings.slack_name;
67162
+ if (settings.slack_command_script !== undefined)
67163
+ result.slack_command_script = settings.slack_command_script;
67158
67164
  if (settings.auto_invite && typeof settings.auto_invite === "object") {
67159
67165
  result.auto_invite = settings.auto_invite;
67160
67166
  } else if (settings.auto_invite_enabled !== undefined) {
@@ -67216,12 +67222,17 @@ async function pushWorkspaceSettings(workspace, _path, settings, localSettings)
67216
67222
  name: workspaceName,
67217
67223
  mute_critical_alerts: remoteSettings.mute_critical_alerts,
67218
67224
  color: remoteSettings.color,
67219
- operator_settings: remoteSettings.operator_settings
67225
+ operator_settings: remoteSettings.operator_settings,
67226
+ slack_team_id: remoteSettings.slack_team_id,
67227
+ slack_name: remoteSettings.slack_name,
67228
+ slack_command_script: remoteSettings.slack_command_script
67220
67229
  };
67221
67230
  } catch (err) {
67222
67231
  throw new Error(`Failed to get workspace settings: ${err}`);
67223
67232
  }
67224
- if (isSuperset(localSettings, settings)) {
67233
+ const { slack_team_id: _lst, slack_name: _lsn, ...comparableLocal } = localSettings;
67234
+ const { slack_team_id: _rst, slack_name: _rsn, ...comparableRemote } = settings;
67235
+ if (isSuperset(comparableLocal, comparableRemote)) {
67225
67236
  debug(`Workspace settings are up to date`);
67226
67237
  return;
67227
67238
  }
@@ -67370,6 +67381,15 @@ async function pushWorkspaceSettings(workspace, _path, settings, localSettings)
67370
67381
  requestBody: localSettings.operator_settings
67371
67382
  });
67372
67383
  }
67384
+ if (localSettings.slack_command_script != settings.slack_command_script) {
67385
+ debug(`Updating slack command script...`);
67386
+ await editSlackCommand({
67387
+ workspace,
67388
+ requestBody: {
67389
+ slack_command_script: localSettings.slack_command_script
67390
+ }
67391
+ });
67392
+ }
67373
67393
  }
67374
67394
  async function pushWorkspaceKey(workspace, _path, key, localKey) {
67375
67395
  try {
@@ -78440,7 +78460,7 @@ var docs_default = command29;
78440
78460
 
78441
78461
  // src/main.ts
78442
78462
  await init_context();
78443
- var VERSION = "1.652.0";
78463
+ var VERSION = "1.653.0";
78444
78464
  var command30 = 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("docs", docs_default).command("version --version", "Show version information").action(async (opts) => {
78445
78465
  console.log("CLI version: " + VERSION);
78446
78466
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.652.0",
3
+ "version": "1.653.0",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",