windmill-cli 1.601.1 → 1.602.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.601.1',
35
+ VERSION: '1.602.0',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
package/esm/src/main.js CHANGED
@@ -40,7 +40,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
40
40
  // console.error(JSON.stringify(event.error, null, 4));
41
41
  // }
42
42
  // });
43
- export const VERSION = "1.601.1";
43
+ export const VERSION = "1.602.0";
44
44
  // Re-exported from constants.ts to maintain backwards compatibility
45
45
  export { WM_FORK_PREFIX } from "./core/constants.js";
46
46
  const command = new Command()
@@ -1,3 +1,12 @@
1
+ const ITEMS_PRESERVED_FIELDS = [
2
+ "properties",
3
+ "required",
4
+ "additionalProperties",
5
+ "enum",
6
+ "resourceType",
7
+ "contentEncoding",
8
+ "description",
9
+ ];
1
10
  /**
2
11
  * Converts argument signature types to JSON schema properties.
3
12
  * This function handles various Windmill-specific types and converts them
@@ -156,17 +165,34 @@ export function argSigToJsonSchemaType(t, oldS) {
156
165
  newS.items = { type: "object", properties: properties };
157
166
  }
158
167
  else {
159
- newS.items = { type: "object" };
168
+ // Preserve ALL user-defined fields when parser cannot infer structure
169
+ newS.items = { type: oldS.items?.type || "object" };
170
+ if (oldS.items && typeof oldS.items === "object") {
171
+ ITEMS_PRESERVED_FIELDS.forEach((field) => {
172
+ if (oldS.items && oldS.items[field] !== undefined) {
173
+ newS.items[field] = oldS.items[field];
174
+ }
175
+ });
176
+ }
160
177
  }
161
178
  newS.originalType = "record[]";
162
179
  }
163
180
  else {
164
- newS.items = { type: "object" };
181
+ // Preserve ALL user-defined fields for untyped lists (same as record[] branch)
182
+ newS.items = { type: oldS.items?.type || "object" };
183
+ if (oldS.items && typeof oldS.items === "object") {
184
+ ITEMS_PRESERVED_FIELDS.forEach((field) => {
185
+ if (oldS.items && oldS.items[field] !== undefined) {
186
+ newS.items[field] = oldS.items[field];
187
+ }
188
+ });
189
+ }
165
190
  newS.originalType = "object[]";
166
191
  }
167
192
  }
168
193
  else {
169
- newS.type = "object";
194
+ // Preserve existing type when inference fails, default to "object" for undefined/null
195
+ newS.type = oldS.type ?? "object";
170
196
  }
171
197
  const preservedFields = [
172
198
  "description",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.601.1",
3
+ "version": "1.602.0",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2661,6 +2661,7 @@ export type DucklakeSettings = {
2661
2661
  storage?: string;
2662
2662
  path: string;
2663
2663
  };
2664
+ extra_args?: string;
2664
2665
  };
2665
2666
  };
2666
2667
  };