windmill-cli 1.565.0 → 1.566.1

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.565.0',
35
+ VERSION: '1.566.1',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
@@ -23,16 +23,45 @@ export async function pull(opts) {
23
23
  Accept: "application/json",
24
24
  "X-email": userInfo.email,
25
25
  };
26
+ if (hubBaseUrl !== DEFAULT_HUB_BASE_URL) {
27
+ const hubSecret = (await wmill.getGlobal({
28
+ key: "hub_api_secret",
29
+ }));
30
+ log.info("Fetching resource types from private hub: " + hubBaseUrl);
31
+ if (hubSecret) {
32
+ log.info("Using hub API secret");
33
+ headers["X-api-secret"] = hubSecret;
34
+ }
35
+ }
26
36
  if (uid) {
27
37
  headers["X-uid"] = uid;
28
38
  }
29
- let list = await fetch(hubBaseUrl + "/resource_types/list", {
39
+ let res1 = await fetch(hubBaseUrl + "/resource_types/list", {
30
40
  headers,
31
- }).then((r) => r.json());
41
+ });
42
+ if (!res1.ok) {
43
+ if (res1.status === 401) {
44
+ // 401 can only happen on a private hub
45
+ throw new Error("Unauthorized access to private hub: " + hubBaseUrl);
46
+ }
47
+ else {
48
+ throw new Error("Couldn't fetch resource types from hub " +
49
+ hubBaseUrl +
50
+ ": " +
51
+ (await res1.text()));
52
+ }
53
+ }
54
+ let list = (await res1.json());
32
55
  if (list && list.length === 0 && hubBaseUrl !== DEFAULT_HUB_BASE_URL) {
33
- list = await fetch(DEFAULT_HUB_BASE_URL + "/resource_types/list", {
56
+ log.info("No resource types found in private hub, fetching from public hub");
57
+ delete headers["X-api-secret"];
58
+ const res2 = await fetch(DEFAULT_HUB_BASE_URL + "/resource_types/list", {
34
59
  headers,
35
- }).then((r) => r.json());
60
+ });
61
+ if (!res2.ok) {
62
+ throw new Error("Couldn't fetch resource types from public hub: " + (await res2.text()));
63
+ }
64
+ list = (await res2.json());
36
65
  }
37
66
  const resourceTypes = await wmill.listResourceType({
38
67
  workspace: workspace.workspaceId,
@@ -96,7 +96,7 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
96
96
  if (codebase) {
97
97
  if (codebase.customBundler) {
98
98
  log.info(`Using custom bundler ${codebase.customBundler} for ${path}`);
99
- bundleContent = execSync(codebase.customBundler + " " + path).toString();
99
+ bundleContent = execSync(codebase.customBundler + " " + path, { maxBuffer: 1024 * 1024 * 50 }).toString();
100
100
  log.info("Custom bundler executed for " + path);
101
101
  }
102
102
  else {
@@ -205,6 +205,8 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
205
205
  has_preprocessor: typed?.has_preprocessor,
206
206
  priority: typed?.priority,
207
207
  concurrency_key: typed?.concurrency_key,
208
+ debounce_key: typed?.debounce_key,
209
+ debounce_delay_s: typed?.debounce_delay_s,
208
210
  codebase: await codebase?.getDigest(),
209
211
  timeout: typed?.timeout,
210
212
  on_behalf_of_email: typed?.on_behalf_of_email,
@@ -241,6 +243,8 @@ export async function handleFile(path, workspace, alreadySynced, message, opts,
241
243
  typed.timeout == remote.timeout &&
242
244
  //@ts-ignore
243
245
  typed.concurrency_key == remote["concurrency_key"] &&
246
+ typed.debounce_key == remote["debounce_key"] &&
247
+ typed.debounce_delay_s == remote["debounce_delay_s"] &&
244
248
  typed.codebase == remote.codebase &&
245
249
  typed.on_behalf_of_email == remote.on_behalf_of_email)) {
246
250
  log.info(colors.green(`Script ${remotePath} is up to date`));
@@ -29,6 +29,8 @@ value:
29
29
  concurrent_limit: 0 # Limit concurrent executions
30
30
  concurrency_key: "string" # Custom concurrency grouping
31
31
  concurrency_time_window_s: 0
32
+ custom_debounce_key: "key"
33
+ debounce_delay_s: 0
32
34
  skip_expr: "javascript_expression" # Skip workflow condition
33
35
  cache_ttl: 0 # Cache results duration
34
36
  priority: 0 # Execution priority
@@ -59,6 +61,8 @@ value:
59
61
  concurrent_limit: 0
60
62
  concurrency_time_window_s: 0
61
63
  custom_concurrency_key: "key"
64
+ custom_debounce_key: "key"
65
+ debounce_delay_s: 0
62
66
  is_trigger: false
63
67
  assets: []
64
68
  \`\`\`
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.565.0";
41
+ export const VERSION = "1.566.1";
42
42
  export const WM_FORK_PREFIX = "wm-fork";
43
43
  const command = new Command()
44
44
  .name("wmill")
@@ -1,4 +1,3 @@
1
- import * as dntShim from "../../_dnt.shims.js";
2
1
  let WASM_VECTOR_LEN = 0;
3
2
  let cachedUint8ArrayMemory0 = null;
4
3
  function getUint8ArrayMemory0() {
@@ -7,10 +6,7 @@ function getUint8ArrayMemory0() {
7
6
  }
8
7
  return cachedUint8ArrayMemory0;
9
8
  }
10
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available'); } });
11
- const encodeString = function (arg, view) {
12
- return cachedTextEncoder.encodeInto(arg, view);
13
- };
9
+ const cachedTextEncoder = new TextEncoder();
14
10
  function passStringToWasm0(arg, malloc, realloc) {
15
11
  if (realloc === undefined) {
16
12
  const buf = cachedTextEncoder.encode(arg);
@@ -35,21 +31,21 @@ function passStringToWasm0(arg, malloc, realloc) {
35
31
  }
36
32
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
37
33
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
38
- const ret = encodeString(arg, view);
34
+ const ret = cachedTextEncoder.encodeInto(arg, view);
39
35
  offset += ret.written;
40
36
  ptr = realloc(ptr, len, offset, 1) >>> 0;
41
37
  }
42
38
  WASM_VECTOR_LEN = offset;
43
39
  return ptr;
44
40
  }
45
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
46
- if (typeof TextDecoder !== 'undefined') {
47
- cachedTextDecoder.decode();
41
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
42
+ cachedTextDecoder.decode();
43
+ function decodeText(ptr, len) {
44
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
48
45
  }
49
- ;
50
46
  function getStringFromWasm0(ptr, len) {
51
47
  ptr = ptr >>> 0;
52
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
48
+ return decodeText(ptr, len);
53
49
  }
54
50
  /**
55
51
  * @param {string} code
@@ -289,20 +285,7 @@ const imports = {
289
285
  },
290
286
  },
291
287
  };
292
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
293
- let wasmCode = '';
294
- switch (wasm_url.protocol) {
295
- case 'file:':
296
- wasmCode = await dntShim.Deno.readFile(wasm_url);
297
- break;
298
- case 'https:':
299
- case 'http:':
300
- wasmCode = await (await fetch(wasm_url)).arrayBuffer();
301
- break;
302
- default:
303
- throw new Error(`Unsupported protocol: ${wasm_url.protocol}`);
304
- }
305
- const wasmInstance = (await WebAssembly.instantiate(wasmCode, imports)).instance;
306
- const wasm = wasmInstance.exports;
307
- export const __wasm = wasm;
288
+ const wasmUrl = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
289
+ const wasm = (await WebAssembly.instantiateStreaming(fetch(wasmUrl), imports)).instance.exports;
290
+ export { wasm as __wasm };
308
291
  wasm.__wbindgen_start();
@@ -1,4 +1,19 @@
1
- import * as dntShim from "../../_dnt.shims.js";
1
+ let cachedUint8ArrayMemory0 = null;
2
+ function getUint8ArrayMemory0() {
3
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
4
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
5
+ }
6
+ return cachedUint8ArrayMemory0;
7
+ }
8
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
9
+ cachedTextDecoder.decode();
10
+ function decodeText(ptr, len) {
11
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
12
+ }
13
+ function getStringFromWasm0(ptr, len) {
14
+ ptr = ptr >>> 0;
15
+ return decodeText(ptr, len);
16
+ }
2
17
  function addToExternrefTable0(obj) {
3
18
  const idx = wasm.__externref_table_alloc();
4
19
  wasm.__wbindgen_export_2.set(idx, obj);
@@ -13,21 +28,9 @@ function handleError(f, args) {
13
28
  wasm.__wbindgen_exn_store(idx);
14
29
  }
15
30
  }
16
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
17
- if (typeof TextDecoder !== 'undefined') {
18
- cachedTextDecoder.decode();
19
- }
20
- ;
21
- let cachedUint8ArrayMemory0 = null;
22
- function getUint8ArrayMemory0() {
23
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
24
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
25
- }
26
- return cachedUint8ArrayMemory0;
27
- }
28
- function getStringFromWasm0(ptr, len) {
31
+ function getArrayU8FromWasm0(ptr, len) {
29
32
  ptr = ptr >>> 0;
30
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
33
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
31
34
  }
32
35
  function isLikeNone(x) {
33
36
  return x === undefined || x === null;
@@ -108,10 +111,7 @@ function debugString(val) {
108
111
  return className;
109
112
  }
110
113
  let WASM_VECTOR_LEN = 0;
111
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available'); } });
112
- const encodeString = function (arg, view) {
113
- return cachedTextEncoder.encodeInto(arg, view);
114
- };
114
+ const cachedTextEncoder = new TextEncoder();
115
115
  function passStringToWasm0(arg, malloc, realloc) {
116
116
  if (realloc === undefined) {
117
117
  const buf = cachedTextEncoder.encode(arg);
@@ -136,7 +136,7 @@ function passStringToWasm0(arg, malloc, realloc) {
136
136
  }
137
137
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
138
138
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
139
- const ret = encodeString(arg, view);
139
+ const ret = cachedTextEncoder.encodeInto(arg, view);
140
140
  offset += ret.written;
141
141
  ptr = realloc(ptr, len, offset, 1) >>> 0;
142
142
  }
@@ -224,39 +224,39 @@ export function parse_assets_ts(code) {
224
224
  }
225
225
  const imports = {
226
226
  __wbindgen_placeholder__: {
227
- __wbg_buffer_609cc3eee51ed158: function (arg0) {
228
- const ret = arg0.buffer;
227
+ __wbg_Error_e17e777aac105295: function (arg0, arg1) {
228
+ const ret = Error(getStringFromWasm0(arg0, arg1));
229
229
  return ret;
230
230
  },
231
- __wbg_call_672a4d21634d4a24: function () {
231
+ __wbg_call_13410aac570ffff7: function () {
232
232
  return handleError(function (arg0, arg1) {
233
233
  const ret = arg0.call(arg1);
234
234
  return ret;
235
235
  }, arguments);
236
236
  },
237
- __wbg_done_769e5ede4b31c67b: function (arg0) {
237
+ __wbg_done_75ed0ee6dd243d9d: function (arg0) {
238
238
  const ret = arg0.done;
239
239
  return ret;
240
240
  },
241
- __wbg_entries_3265d4158b33e5dc: function (arg0) {
241
+ __wbg_entries_2be2f15bd5554996: function (arg0) {
242
242
  const ret = Object.entries(arg0);
243
243
  return ret;
244
244
  },
245
- __wbg_eval_d0dfcbbfaeff4b3c: function (arg0, arg1) {
245
+ __wbg_eval_5088487c29e8df77: function (arg0, arg1) {
246
246
  const ret = eval(getStringFromWasm0(arg0, arg1));
247
247
  return ret;
248
248
  },
249
- __wbg_get_67b2ba62fc30de12: function () {
249
+ __wbg_get_0da715ceaecea5c8: function (arg0, arg1) {
250
+ const ret = arg0[arg1 >>> 0];
251
+ return ret;
252
+ },
253
+ __wbg_get_458e874b43b18b25: function () {
250
254
  return handleError(function (arg0, arg1) {
251
255
  const ret = Reflect.get(arg0, arg1);
252
256
  return ret;
253
257
  }, arguments);
254
258
  },
255
- __wbg_get_b9b93047fe3cf45b: function (arg0, arg1) {
256
- const ret = arg0[arg1 >>> 0];
257
- return ret;
258
- },
259
- __wbg_instanceof_ArrayBuffer_e14585432e3737fc: function (arg0) {
259
+ __wbg_instanceof_ArrayBuffer_67f3012529f6a2dd: function (arg0) {
260
260
  let result;
261
261
  try {
262
262
  result = arg0 instanceof ArrayBuffer;
@@ -267,7 +267,7 @@ const imports = {
267
267
  const ret = result;
268
268
  return ret;
269
269
  },
270
- __wbg_instanceof_Map_f3469ce2244d2430: function (arg0) {
270
+ __wbg_instanceof_Map_ebb01a5b6b5ffd0b: function (arg0) {
271
271
  let result;
272
272
  try {
273
273
  result = arg0 instanceof Map;
@@ -278,7 +278,7 @@ const imports = {
278
278
  const ret = result;
279
279
  return ret;
280
280
  },
281
- __wbg_instanceof_Uint8Array_17156bcf118086a9: function (arg0) {
281
+ __wbg_instanceof_Uint8Array_9a8378d955933db7: function (arg0) {
282
282
  let result;
283
283
  try {
284
284
  result = arg0 instanceof Uint8Array;
@@ -289,123 +289,97 @@ const imports = {
289
289
  const ret = result;
290
290
  return ret;
291
291
  },
292
- __wbg_isArray_a1eab7e0d067391b: function (arg0) {
292
+ __wbg_isArray_030cce220591fb41: function (arg0) {
293
293
  const ret = Array.isArray(arg0);
294
294
  return ret;
295
295
  },
296
- __wbg_isSafeInteger_343e2beeeece1bb0: function (arg0) {
296
+ __wbg_isSafeInteger_1c0d1af5542e102a: function (arg0) {
297
297
  const ret = Number.isSafeInteger(arg0);
298
298
  return ret;
299
299
  },
300
- __wbg_iterator_9a24c88df860dc65: function () {
300
+ __wbg_iterator_f370b34483c71a1c: function () {
301
301
  const ret = Symbol.iterator;
302
302
  return ret;
303
303
  },
304
- __wbg_length_a446193dc22c12f8: function (arg0) {
304
+ __wbg_length_186546c51cd61acd: function (arg0) {
305
305
  const ret = arg0.length;
306
306
  return ret;
307
307
  },
308
- __wbg_length_e2d2a49132c1b256: function (arg0) {
308
+ __wbg_length_6bb7e81f9d7713e4: function (arg0) {
309
309
  const ret = arg0.length;
310
310
  return ret;
311
311
  },
312
- __wbg_new_a12002a7f91c75be: function (arg0) {
312
+ __wbg_new_638ebfaedbf32a5e: function (arg0) {
313
313
  const ret = new Uint8Array(arg0);
314
314
  return ret;
315
315
  },
316
- __wbg_next_25feadfc0913fea9: function (arg0) {
316
+ __wbg_next_5b3530e612fde77d: function (arg0) {
317
317
  const ret = arg0.next;
318
318
  return ret;
319
319
  },
320
- __wbg_next_6574e1a8a62d1055: function () {
320
+ __wbg_next_692e82279131b03c: function () {
321
321
  return handleError(function (arg0) {
322
322
  const ret = arg0.next();
323
323
  return ret;
324
324
  }, arguments);
325
325
  },
326
- __wbg_set_65595bdd868b3009: function (arg0, arg1, arg2) {
327
- arg0.set(arg1, arg2 >>> 0);
326
+ __wbg_prototypesetcall_3d4a26c1ed734349: function (arg0, arg1, arg2) {
327
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
328
328
  },
329
- __wbg_value_cd1ffa7b1ab794f1: function (arg0) {
329
+ __wbg_value_dd9372230531eade: function (arg0) {
330
330
  const ret = arg0.value;
331
331
  return ret;
332
332
  },
333
- __wbindgen_bigint_from_i64: function (arg0) {
334
- const ret = arg0;
335
- return ret;
336
- },
337
- __wbindgen_bigint_from_u64: function (arg0) {
338
- const ret = BigInt.asUintN(64, arg0);
339
- return ret;
340
- },
341
- __wbindgen_bigint_get_as_i64: function (arg0, arg1) {
333
+ __wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1: function (arg0, arg1) {
342
334
  const v = arg1;
343
335
  const ret = typeof (v) === 'bigint' ? v : undefined;
344
336
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
345
337
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
346
338
  },
347
- __wbindgen_boolean_get: function (arg0) {
339
+ __wbg_wbindgenbooleanget_3fe6f642c7d97746: function (arg0) {
348
340
  const v = arg0;
349
- const ret = typeof (v) === 'boolean' ? (v ? 1 : 0) : 2;
350
- return ret;
341
+ const ret = typeof (v) === 'boolean' ? v : undefined;
342
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
351
343
  },
352
- __wbindgen_debug_string: function (arg0, arg1) {
344
+ __wbg_wbindgendebugstring_99ef257a3ddda34d: function (arg0, arg1) {
353
345
  const ret = debugString(arg1);
354
346
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
355
347
  const len1 = WASM_VECTOR_LEN;
356
348
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
357
349
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
358
350
  },
359
- __wbindgen_error_new: function (arg0, arg1) {
360
- const ret = new Error(getStringFromWasm0(arg0, arg1));
361
- return ret;
362
- },
363
- __wbindgen_in: function (arg0, arg1) {
351
+ __wbg_wbindgenin_d7a1ee10933d2d55: function (arg0, arg1) {
364
352
  const ret = arg0 in arg1;
365
353
  return ret;
366
354
  },
367
- __wbindgen_init_externref_table: function () {
368
- const table = wasm.__wbindgen_export_2;
369
- const offset = table.grow(4);
370
- table.set(0, undefined);
371
- table.set(offset + 0, undefined);
372
- table.set(offset + 1, null);
373
- table.set(offset + 2, true);
374
- table.set(offset + 3, false);
375
- ;
376
- },
377
- __wbindgen_is_bigint: function (arg0) {
355
+ __wbg_wbindgenisbigint_ecb90cc08a5a9154: function (arg0) {
378
356
  const ret = typeof (arg0) === 'bigint';
379
357
  return ret;
380
358
  },
381
- __wbindgen_is_function: function (arg0) {
359
+ __wbg_wbindgenisfunction_8cee7dce3725ae74: function (arg0) {
382
360
  const ret = typeof (arg0) === 'function';
383
361
  return ret;
384
362
  },
385
- __wbindgen_is_object: function (arg0) {
363
+ __wbg_wbindgenisobject_307a53c6bd97fbf8: function (arg0) {
386
364
  const val = arg0;
387
365
  const ret = typeof (val) === 'object' && val !== null;
388
366
  return ret;
389
367
  },
390
- __wbindgen_jsval_eq: function (arg0, arg1) {
368
+ __wbg_wbindgenjsvaleq_e6f2ad59ccae1b58: function (arg0, arg1) {
391
369
  const ret = arg0 === arg1;
392
370
  return ret;
393
371
  },
394
- __wbindgen_jsval_loose_eq: function (arg0, arg1) {
372
+ __wbg_wbindgenjsvallooseeq_9bec8c9be826bed1: function (arg0, arg1) {
395
373
  const ret = arg0 == arg1;
396
374
  return ret;
397
375
  },
398
- __wbindgen_memory: function () {
399
- const ret = wasm.memory;
400
- return ret;
401
- },
402
- __wbindgen_number_get: function (arg0, arg1) {
376
+ __wbg_wbindgennumberget_f74b4c7525ac05cb: function (arg0, arg1) {
403
377
  const obj = arg1;
404
378
  const ret = typeof (obj) === 'number' ? obj : undefined;
405
379
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
406
380
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
407
381
  },
408
- __wbindgen_string_get: function (arg0, arg1) {
382
+ __wbg_wbindgenstringget_0f16a6ddddef376f: function (arg0, arg1) {
409
383
  const obj = arg1;
410
384
  const ret = typeof (obj) === 'string' ? obj : undefined;
411
385
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -413,25 +387,32 @@ const imports = {
413
387
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
414
388
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
415
389
  },
416
- __wbindgen_throw: function (arg0, arg1) {
390
+ __wbg_wbindgenthrow_451ec1a8469d7eb6: function (arg0, arg1) {
417
391
  throw new Error(getStringFromWasm0(arg0, arg1));
418
392
  },
393
+ __wbindgen_cast_4625c577ab2ec9ee: function (arg0) {
394
+ // Cast intrinsic for `U64 -> Externref`.
395
+ const ret = BigInt.asUintN(64, arg0);
396
+ return ret;
397
+ },
398
+ __wbindgen_cast_9ae0607507abb057: function (arg0) {
399
+ // Cast intrinsic for `I64 -> Externref`.
400
+ const ret = arg0;
401
+ return ret;
402
+ },
403
+ __wbindgen_init_externref_table: function () {
404
+ const table = wasm.__wbindgen_export_2;
405
+ const offset = table.grow(4);
406
+ table.set(0, undefined);
407
+ table.set(offset + 0, undefined);
408
+ table.set(offset + 1, null);
409
+ table.set(offset + 2, true);
410
+ table.set(offset + 3, false);
411
+ ;
412
+ },
419
413
  },
420
414
  };
421
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
422
- let wasmCode = '';
423
- switch (wasm_url.protocol) {
424
- case 'file:':
425
- wasmCode = await dntShim.Deno.readFile(wasm_url);
426
- break;
427
- case 'https:':
428
- case 'http:':
429
- wasmCode = await (await fetch(wasm_url)).arrayBuffer();
430
- break;
431
- default:
432
- throw new Error(`Unsupported protocol: ${wasm_url.protocol}`);
433
- }
434
- const wasmInstance = (await WebAssembly.instantiate(wasmCode, imports)).instance;
435
- const wasm = wasmInstance.exports;
436
- export const __wasm = wasm;
415
+ const wasmUrl = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
416
+ const wasm = (await WebAssembly.instantiateStreaming(fetch(wasmUrl), imports)).instance.exports;
417
+ export { wasm as __wasm };
437
418
  wasm.__wbindgen_start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.565.0",
3
+ "version": "1.566.1",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,6 +14,8 @@ export type FlowValue = {
14
14
  concurrent_limit?: number;
15
15
  concurrency_key?: string;
16
16
  concurrency_time_window_s?: number;
17
+ debounce_delay_s?: number;
18
+ debounce_key?: string;
17
19
  skip_expr?: string;
18
20
  cache_ttl?: number;
19
21
  priority?: number;
@@ -80,7 +82,7 @@ export type FlowModule = {
80
82
  };
81
83
  export type InputTransform = StaticTransform | JavascriptTransform;
82
84
  export type StaticTransform = {
83
- value: unknown;
85
+ value?: unknown;
84
86
  type: 'static';
85
87
  };
86
88
  export type JavascriptTransform = {
@@ -424,6 +426,8 @@ export type Script = {
424
426
  concurrent_limit?: number;
425
427
  concurrency_time_window_s?: number;
426
428
  concurrency_key?: string;
429
+ debounce_key?: string;
430
+ debounce_delay_s?: number;
427
431
  cache_ttl?: number;
428
432
  dedicated_worker?: boolean;
429
433
  ws_error_handler_muted?: boolean;
@@ -465,6 +469,8 @@ export type NewScript = {
465
469
  delete_after_use?: boolean;
466
470
  deployment_message?: string;
467
471
  concurrency_key?: string;
472
+ debounce_key?: string;
473
+ debounce_delay_s?: number;
468
474
  visible_to_runner_only?: boolean;
469
475
  no_main_func?: boolean;
470
476
  codebase?: string;