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.
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/src/commands/app/apps.js +7 -3
- package/esm/src/commands/sync/sync.js +3 -0
- package/esm/src/main.js +1 -1
- package/package.json +1 -1
- package/types/gen/types.gen.d.ts +6 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/commands/app/apps.d.ts +1 -0
- package/types/src/commands/app/apps.d.ts.map +1 -1
- package/types/src/commands/sync/sync.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +6 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
package/esm/gen/core/OpenAPI.js
CHANGED
|
@@ -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.
|
|
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
package/types/gen/types.gen.d.ts
CHANGED
|
@@ -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
|
};
|