windmill-cli 1.583.3 → 1.584.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.
@@ -32,7 +32,7 @@ export const OpenAPI = {
32
32
  PASSWORD: undefined,
33
33
  TOKEN: getEnv("WM_TOKEN"),
34
34
  USERNAME: undefined,
35
- VERSION: '1.583.3',
35
+ VERSION: '1.584.0',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
@@ -23,6 +23,10 @@ export async function pushApp(workspace, remotePath, localPath, message) {
23
23
  catch {
24
24
  //ignore
25
25
  }
26
+ if (app?.["policy"]?.["execution_mode"] == "anonymous") {
27
+ app.public = true;
28
+ }
29
+ // console.log(app);
26
30
  if (app) {
27
31
  app.policy = undefined;
28
32
  }
@@ -56,7 +60,7 @@ export async function pushApp(workspace, remotePath, localPath, message) {
56
60
  return [];
57
61
  }
58
62
  replaceInlineScripts(localApp.value);
59
- await generatingPolicy(localApp, remotePath);
63
+ await generatingPolicy(localApp, remotePath, localApp?.["public"] ?? false);
60
64
  if (app) {
61
65
  if (isSuperset(localApp, app)) {
62
66
  log.info(colors.green(`App ${remotePath} is up to date`));
@@ -84,11 +88,11 @@ export async function pushApp(workspace, remotePath, localPath, message) {
84
88
  });
85
89
  }
86
90
  }
87
- async function generatingPolicy(app, path) {
91
+ async function generatingPolicy(app, path, publicApp) {
88
92
  log.info(colors.gray(`Generating fresh policy for app ${path}...`));
89
93
  try {
90
94
  app.policy = await windmillUtils.updatePolicy(app.value, undefined);
91
- app.policy.execution_mode = "publisher";
95
+ app.policy.execution_mode = publicApp ? "anonymous" : "publisher";
92
96
  }
93
97
  catch (e) {
94
98
  log.error(colors.red(`Error generating policy for app ${path}: ${e}`));
@@ -304,6 +304,9 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, ig
304
304
  },
305
305
  };
306
306
  }
307
+ if (app?.["policy"]?.["execution_mode"] == "anonymous") {
308
+ app.public = true;
309
+ }
307
310
  app.policy = undefined;
308
311
  yield {
309
312
  isDirectory: false,
package/esm/src/main.js CHANGED
@@ -38,7 +38,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
38
38
  // console.error(JSON.stringify(event.error, null, 4));
39
39
  // }
40
40
  // });
41
- export const VERSION = "1.583.3";
41
+ export const VERSION = "1.584.0";
42
42
  export const WM_FORK_PREFIX = "wm-fork";
43
43
  const command = new Command()
44
44
  .name("wmill")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.583.3",
3
+ "version": "1.584.0",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -5680,6 +5680,12 @@ export type ExecuteComponentData = {
5680
5680
  [key: string]: unknown;
5681
5681
  };
5682
5682
  force_viewer_allow_user_resources?: Array<(string)>;
5683
+ /**
5684
+ * Runnable query parameters
5685
+ */
5686
+ run_query_params?: {
5687
+ [key: string]: unknown;
5688
+ };
5683
5689
  };
5684
5690
  workspace: string;
5685
5691
  };