windmill-cli 1.545.0 → 1.546.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/core/settings.js +4 -4
- package/esm/src/main.js +1 -1
- package/esm/src/types.js +14 -5
- package/package.json +1 -1
- package/types/gen/types.gen.d.ts +4 -1
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/src/types.d.ts.map +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +4 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/src/core/settings.js
CHANGED
|
@@ -43,7 +43,7 @@ export async function pushWorkspaceSettings(workspace, _path, settings, localSet
|
|
|
43
43
|
deploy_to: remoteSettings.deploy_to,
|
|
44
44
|
error_handler: remoteSettings.error_handler,
|
|
45
45
|
error_handler_extra_args: remoteSettings.error_handler_extra_args,
|
|
46
|
-
error_handler_muted_on_cancel: remoteSettings.error_handler_muted_on_cancel,
|
|
46
|
+
error_handler_muted_on_cancel: remoteSettings.error_handler_muted_on_cancel ?? false,
|
|
47
47
|
ai_config: remoteSettings.ai_config,
|
|
48
48
|
large_file_storage: remoteSettings.large_file_storage,
|
|
49
49
|
git_sync: remoteSettings.git_sync,
|
|
@@ -118,15 +118,15 @@ export async function pushWorkspaceSettings(workspace, _path, settings, localSet
|
|
|
118
118
|
}
|
|
119
119
|
if (localSettings.error_handler != settings.error_handler ||
|
|
120
120
|
!deepEqual(localSettings.error_handler_extra_args, settings.error_handler_extra_args) ||
|
|
121
|
-
localSettings.error_handler_muted_on_cancel !=
|
|
122
|
-
settings.error_handler_muted_on_cancel) {
|
|
121
|
+
(localSettings.error_handler_muted_on_cancel ?? false) !=
|
|
122
|
+
(settings.error_handler_muted_on_cancel ?? false)) {
|
|
123
123
|
log.debug(`Updating error handler...`);
|
|
124
124
|
await wmill.editErrorHandler({
|
|
125
125
|
workspace,
|
|
126
126
|
requestBody: {
|
|
127
127
|
error_handler: localSettings.error_handler,
|
|
128
128
|
error_handler_extra_args: localSettings.error_handler_extra_args,
|
|
129
|
-
error_handler_muted_on_cancel: localSettings.error_handler_muted_on_cancel,
|
|
129
|
+
error_handler_muted_on_cancel: localSettings.error_handler_muted_on_cancel ?? false,
|
|
130
130
|
},
|
|
131
131
|
});
|
|
132
132
|
}
|
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.546.0";
|
|
42
42
|
export const WM_FORK_PREFIX = "wm-fork";
|
|
43
43
|
const command = new Command()
|
|
44
44
|
.name("wmill")
|
package/esm/src/types.js
CHANGED
|
@@ -236,15 +236,24 @@ export function getTypeStrFromPath(p) {
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
export function removeType(str, type) {
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
// Normalize path for cross-platform compatibility and convert to forward slashes for API consistency
|
|
240
|
+
const normalizedStr = path.normalize(str).replaceAll(SEP, "/");
|
|
241
|
+
if (!normalizedStr.endsWith("." + type + ".yaml") &&
|
|
242
|
+
!normalizedStr.endsWith("." + type + ".json")) {
|
|
241
243
|
throw new Error(str + " does not end with ." + type + ".(yaml|json)");
|
|
242
244
|
}
|
|
243
|
-
return
|
|
245
|
+
return normalizedStr.slice(0, normalizedStr.length - type.length - 6);
|
|
244
246
|
}
|
|
245
247
|
export function removePathPrefix(str, prefix) {
|
|
246
|
-
|
|
248
|
+
// Normalize paths for cross-platform compatibility and convert to forward slashes for API consistency
|
|
249
|
+
const normalizedStr = path.normalize(str).replaceAll(SEP, "/");
|
|
250
|
+
const normalizedPrefix = path.normalize(prefix).replaceAll(SEP, "/");
|
|
251
|
+
// Handle exact match case
|
|
252
|
+
if (normalizedStr === normalizedPrefix) {
|
|
253
|
+
return "";
|
|
254
|
+
}
|
|
255
|
+
if (!normalizedStr.startsWith(normalizedPrefix + "/")) {
|
|
247
256
|
throw new Error(str + " does not start with " + prefix);
|
|
248
257
|
}
|
|
249
|
-
return
|
|
258
|
+
return normalizedStr.slice(normalizedPrefix.length + 1);
|
|
250
259
|
}
|
package/package.json
CHANGED
package/types/gen/types.gen.d.ts
CHANGED
|
@@ -3525,7 +3525,10 @@ export type CreateAccountData = {
|
|
|
3525
3525
|
* code endpoint
|
|
3526
3526
|
*/
|
|
3527
3527
|
requestBody: {
|
|
3528
|
-
|
|
3528
|
+
/**
|
|
3529
|
+
* OAuth refresh token. For authorization_code flow, this contains the actual refresh token. For client_credentials flow, this must be set to an empty string.
|
|
3530
|
+
*/
|
|
3531
|
+
refresh_token: string;
|
|
3529
3532
|
expires_in: number;
|
|
3530
3533
|
client: string;
|
|
3531
3534
|
grant_type?: string;
|