windmill-cli 1.617.1 → 1.617.2

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.
Files changed (49) hide show
  1. package/esm/_dnt.polyfills.js +127 -1
  2. package/esm/gen/core/OpenAPI.js +1 -1
  3. package/esm/gen/services.gen.js +5 -1
  4. package/esm/src/commands/app/dev.js +2 -34
  5. package/esm/src/commands/app/new.js +3 -1
  6. package/esm/src/main.js +3 -3
  7. package/esm/src/utils/resource_folders.js +37 -1
  8. package/esm/wasm/csharp/windmill_parser_wasm.js +1 -1
  9. package/esm/wasm/go/windmill_parser_wasm.js +1 -1
  10. package/esm/wasm/java/windmill_parser_wasm.js +1 -1
  11. package/esm/wasm/nu/windmill_parser_wasm.js +1 -1
  12. package/esm/wasm/php/windmill_parser_wasm.js +1 -1
  13. package/esm/wasm/py/windmill_parser_wasm.js +1 -1
  14. package/esm/wasm/regex/windmill_parser_wasm.js +1 -1
  15. package/esm/wasm/ruby/windmill_parser_wasm.js +1 -1
  16. package/esm/wasm/rust/windmill_parser_wasm.js +1 -1
  17. package/esm/wasm/ts/windmill_parser_wasm.js +1 -1
  18. package/esm/wasm/yaml/windmill_parser_wasm.js +1 -1
  19. package/package.json +2 -1
  20. package/types/_dnt.polyfills.d.ts +82 -7
  21. package/types/_dnt.polyfills.d.ts.map +1 -1
  22. package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.d.ts +1 -1
  23. package/types/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.d.ts.map +1 -1
  24. package/types/deps/jsr.io/@std/fs/1.0.22/eol.d.ts.map +1 -1
  25. package/types/deps/jsr.io/@std/path/1.0.0-rc.2/posix/constants.d.ts.map +1 -1
  26. package/types/deps/jsr.io/@std/path/1.0.0-rc.2/windows/constants.d.ts.map +1 -1
  27. package/types/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -1
  28. package/types/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -1
  29. package/types/deps/jsr.io/@std/yaml/1.0.11/_loader_state.d.ts +2 -2
  30. package/types/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_utils.d.ts.map +1 -1
  31. package/types/gen/core/request.d.ts.map +1 -1
  32. package/types/gen/services.gen.d.ts +2 -0
  33. package/types/gen/services.gen.d.ts.map +1 -1
  34. package/types/gen/types.gen.d.ts +8 -0
  35. package/types/gen/types.gen.d.ts.map +1 -1
  36. package/types/src/commands/app/dev.d.ts.map +1 -1
  37. package/types/src/commands/app/new.d.ts.map +1 -1
  38. package/types/src/commands/sync/sync.d.ts.map +1 -1
  39. package/types/src/main.d.ts +1 -1
  40. package/types/src/utils/resource_folders.d.ts +9 -0
  41. package/types/src/utils/resource_folders.d.ts.map +1 -1
  42. package/types/wasm/php/windmill_parser_wasm.d.ts +1 -1
  43. package/types/wasm/php/windmill_parser_wasm.d.ts.map +1 -1
  44. package/types/wasm/py/windmill_parser_wasm.d.ts +1 -1
  45. package/types/wasm/py/windmill_parser_wasm.d.ts.map +1 -1
  46. package/types/wasm/ts/windmill_parser_wasm.d.ts +1 -1
  47. package/types/wasm/ts/windmill_parser_wasm.d.ts.map +1 -1
  48. package/types/windmill-utils-internal/src/gen/types.gen.d.ts +8 -0
  49. package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
@@ -1,3 +1,130 @@
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ //@ts-ignore
14
+ import { createRequire } from "node:module";
15
+ //@ts-ignore
16
+ import { fileURLToPath, pathToFileURL } from "node:url";
17
+ //@ts-ignore
18
+ import { dirname } from "node:path";
19
+ const defineGlobalPonyfill = (symbolFor, fn) => {
20
+ if (!Reflect.has(globalThis, Symbol.for(symbolFor))) {
21
+ Object.defineProperty(globalThis, Symbol.for(symbolFor), {
22
+ configurable: true,
23
+ get() {
24
+ return fn;
25
+ },
26
+ });
27
+ }
28
+ };
29
+ export let import_meta_ponyfill_commonjs = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-commonjs")) ??
30
+ (() => {
31
+ const moduleImportMetaWM = new WeakMap();
32
+ return (require, module) => {
33
+ let importMetaCache = moduleImportMetaWM.get(module);
34
+ if (importMetaCache == null) {
35
+ const importMeta = Object.assign(Object.create(null), {
36
+ url: pathToFileURL(module.filename).href,
37
+ main: require.main == module,
38
+ resolve: (specifier, parentURL = importMeta.url) => {
39
+ return pathToFileURL((importMeta.url === parentURL
40
+ ? require
41
+ : createRequire(parentURL))
42
+ .resolve(specifier)).href;
43
+ },
44
+ filename: module.filename,
45
+ dirname: module.path,
46
+ });
47
+ moduleImportMetaWM.set(module, importMeta);
48
+ importMetaCache = importMeta;
49
+ }
50
+ return importMetaCache;
51
+ };
52
+ })());
53
+ defineGlobalPonyfill("import-meta-ponyfill-commonjs", import_meta_ponyfill_commonjs);
54
+ export let import_meta_ponyfill_esmodule = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-esmodule")) ??
55
+ ((importMeta) => {
56
+ const resolveFunStr = String(importMeta.resolve);
57
+ const shimWs = new WeakSet();
58
+ //@ts-ignore
59
+ const mainUrl = ("file:///" + process.argv[1].replace(/\\/g, "/"))
60
+ .replace(/\/{3,}/, "///");
61
+ const commonShim = (importMeta) => {
62
+ if (typeof importMeta.main !== "boolean") {
63
+ importMeta.main = importMeta.url === mainUrl;
64
+ }
65
+ if (typeof importMeta.filename !== "string") {
66
+ importMeta.filename = fileURLToPath(importMeta.url);
67
+ importMeta.dirname = dirname(importMeta.filename);
68
+ }
69
+ };
70
+ if (
71
+ // v16.2.0+, v14.18.0+: Add support for WHATWG URL object to parentURL parameter.
72
+ resolveFunStr === "undefined" ||
73
+ // v20.0.0+, v18.19.0+"" This API now returns a string synchronously instead of a Promise.
74
+ resolveFunStr.startsWith("async")
75
+ // enable by --experimental-import-meta-resolve flag
76
+ ) {
77
+ import_meta_ponyfill_esmodule = (importMeta) => {
78
+ if (!shimWs.has(importMeta)) {
79
+ shimWs.add(importMeta);
80
+ const importMetaUrlRequire = {
81
+ url: importMeta.url,
82
+ require: createRequire(importMeta.url),
83
+ };
84
+ importMeta.resolve = function resolve(specifier, parentURL = importMeta.url) {
85
+ return pathToFileURL((importMetaUrlRequire.url === parentURL
86
+ ? importMetaUrlRequire.require
87
+ : createRequire(parentURL)).resolve(specifier)).href;
88
+ };
89
+ commonShim(importMeta);
90
+ }
91
+ return importMeta;
92
+ };
93
+ }
94
+ else {
95
+ /// native support
96
+ import_meta_ponyfill_esmodule = (importMeta) => {
97
+ if (!shimWs.has(importMeta)) {
98
+ shimWs.add(importMeta);
99
+ commonShim(importMeta);
100
+ }
101
+ return importMeta;
102
+ };
103
+ }
104
+ return import_meta_ponyfill_esmodule(importMeta);
105
+ }));
106
+ defineGlobalPonyfill("import-meta-ponyfill-esmodule", import_meta_ponyfill_esmodule);
107
+ export let import_meta_ponyfill = ((...args) => {
108
+ const _MODULE = (() => {
109
+ if (typeof require === "function" && typeof module === "object") {
110
+ return "commonjs";
111
+ }
112
+ else {
113
+ // eval("typeof import.meta");
114
+ return "esmodule";
115
+ }
116
+ })();
117
+ if (_MODULE === "commonjs") {
118
+ //@ts-ignore
119
+ import_meta_ponyfill = (r, m) => import_meta_ponyfill_commonjs(r, m);
120
+ }
121
+ else {
122
+ //@ts-ignore
123
+ import_meta_ponyfill = (im) => import_meta_ponyfill_esmodule(im);
124
+ }
125
+ //@ts-ignore
126
+ return import_meta_ponyfill(...args);
127
+ });
1
128
  // https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
2
129
  if (!Object.hasOwn) {
3
130
  Object.defineProperty(Object, "hasOwn", {
@@ -121,4 +248,3 @@ async function fromAsync(items, mapfn, thisArg) {
121
248
  if (!Array.fromAsync) {
122
249
  Array.fromAsync = fromAsync;
123
250
  }
124
- export {};
@@ -32,7 +32,7 @@ export const OpenAPI = {
32
32
  PASSWORD: undefined,
33
33
  TOKEN: getEnv("WM_TOKEN"),
34
34
  USERNAME: undefined,
35
- VERSION: '1.617.1',
35
+ VERSION: '1.617.2',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
@@ -9265,6 +9265,8 @@ export const deleteNativeTrigger = (data) => {
9265
9265
  * @param data.serviceName
9266
9266
  * @param data.page which page to return (start at 1, default 1)
9267
9267
  * @param data.perPage number of items to return for a given page (default 30, max 100)
9268
+ * @param data.path filter by script path
9269
+ * @param data.isFlow filter by is_flow
9268
9270
  * @returns NativeTrigger native triggers list
9269
9271
  * @throws ApiError
9270
9272
  */
@@ -9278,7 +9280,9 @@ export const listNativeTriggers = (data) => {
9278
9280
  },
9279
9281
  query: {
9280
9282
  page: data.page,
9281
- per_page: data.perPage
9283
+ per_page: data.perPage,
9284
+ path: data.path,
9285
+ is_flow: data.isFlow
9282
9286
  }
9283
9287
  });
9284
9288
  };
@@ -17,41 +17,9 @@ import { replaceInlineScripts, repopulateFields } from "./app.js";
17
17
  import { APP_BACKEND_FOLDER, inferRunnableSchemaFromFile, } from "./app_metadata.js";
18
18
  import { loadRunnablesFromBackend } from "./raw_apps.js";
19
19
  import { regenerateAgentDocs } from "./generate_agents.js";
20
- import { getFolderSuffix, hasFolderSuffix, setNonDottedPaths, } from "../../utils/resource_folders.js";
20
+ import { getFolderSuffix, hasFolderSuffix, loadNonDottedPathsSetting, } from "../../utils/resource_folders.js";
21
21
  const DEFAULT_PORT = 4000;
22
22
  const DEFAULT_HOST = "localhost";
23
- /**
24
- * Search for wmill.yaml by traversing upward from the current directory.
25
- * Unlike the standard findWmillYaml() in conf.ts, this does not stop at
26
- * the git root - it continues searching until the filesystem root.
27
- * This is needed for `app dev` which runs from inside a raw_app folder
28
- * that may be deeply nested within a larger git repository.
29
- */
30
- async function findAndLoadNonDottedPathsSetting() {
31
- let currentDir = process.cwd();
32
- while (true) {
33
- const wmillYamlPath = path.join(currentDir, "wmill.yaml");
34
- if (fs.existsSync(wmillYamlPath)) {
35
- try {
36
- const config = await yamlParseFile(wmillYamlPath);
37
- setNonDottedPaths(config?.nonDottedPaths ?? false);
38
- log.debug(`Found wmill.yaml at ${wmillYamlPath}, nonDottedPaths=${config?.nonDottedPaths ?? false}`);
39
- }
40
- catch (e) {
41
- log.debug(`Failed to parse wmill.yaml at ${wmillYamlPath}: ${e}`);
42
- }
43
- return;
44
- }
45
- // Check if we've reached the filesystem root
46
- const parentDir = path.dirname(currentDir);
47
- if (parentDir === currentDir) {
48
- // Reached filesystem root without finding wmill.yaml
49
- log.debug("No wmill.yaml found, using default dotted paths");
50
- return;
51
- }
52
- currentDir = parentDir;
53
- }
54
- }
55
23
  // HTML template with live reload and SQL migration modal
56
24
  const createHTML = (jsPath, cssPath) => `
57
25
  <!DOCTYPE html>
@@ -309,7 +277,7 @@ async function dev(opts) {
309
277
  GLOBAL_CONFIG_OPT.noCdToRoot = true;
310
278
  // Search for wmill.yaml by traversing upward (without git root constraint)
311
279
  // to initialize nonDottedPaths setting before using folder suffix functions
312
- await findAndLoadNonDottedPathsSetting();
280
+ await loadNonDottedPathsSetting();
313
281
  // Validate that we're in a .raw_app folder
314
282
  const cwd = process.cwd();
315
283
  const currentDirName = path.basename(cwd);
@@ -5,7 +5,7 @@ import { resolveWorkspace } from "../../core/context.js";
5
5
  import { requireLogin } from "../../core/auth.js";
6
6
  import * as wmill from "../../../gen/services.gen.js";
7
7
  import path from "node:path";
8
- import { buildFolderPath } from "../../utils/resource_folders.js";
8
+ import { buildFolderPath, loadNonDottedPathsSetting, } from "../../utils/resource_folders.js";
9
9
  // Framework templates - adapted from frontend/src/routes/(root)/(logged)/apps_raw/add/templates.ts
10
10
  const reactIndex = `
11
11
  import React from 'react'
@@ -393,6 +393,8 @@ CREATE SCHEMA IF NOT EXISTS ${schemaName};
393
393
  log.info(colors.yellow("No datatables configured in this workspace. Skipping data configuration."));
394
394
  log.info(colors.gray("You can configure datatables in Workspace Settings > Windmill Data Tables"));
395
395
  }
396
+ // Load nonDottedPaths setting from wmill.yaml before creating folder
397
+ await loadNonDottedPathsSetting();
396
398
  // Create the directory structure - preserve full path (e.g., f/foobar/x/y becomes f/foobar/x/y.raw_app)
397
399
  const folderName = buildFolderPath(appPath, "raw_app");
398
400
  const appDir = path.join(dntShim.Deno.cwd(), folderName);
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.617.1";
43
+ export const VERSION = "1.617.2";
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()
@@ -159,7 +159,7 @@ function isMain() {
159
159
  const { Deno } = globalThis;
160
160
  const isDeno = Deno != undefined;
161
161
  if (isDeno) {
162
- const isMain = (import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///"));
162
+ const isMain = globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).main;
163
163
  if (isMain) {
164
164
  if (!Deno.args.includes("completions")) {
165
165
  if (Deno.env.get("SKIP_DENO_DEPRECATION_WARNING") !== "true") {
@@ -171,7 +171,7 @@ function isMain() {
171
171
  }
172
172
  else {
173
173
  //@ts-ignore
174
- return esMain.default(import.meta);
174
+ return esMain.default(globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta));
175
175
  }
176
176
  }
177
177
  if (isMain()) {
@@ -7,7 +7,10 @@
7
7
  * The folder suffixes can be configured to use either dot-prefixed names
8
8
  * (.flow, .app, .raw_app) or dunder-prefixed names (__flow, __app, __raw_app).
9
9
  */
10
- import { log, SEP } from "../../deps.js";
10
+ import { log, SEP, yamlParseFile } from "../../deps.js";
11
+ import * as fs from "node:fs";
12
+ import * as path from "node:path";
13
+ import process from "node:process";
11
14
  // Configuration for folder suffixes - can be switched between dot and dunder prefixes
12
15
  // The default uses dot-prefixed names (.flow, .app, .raw_app)
13
16
  const DOTTED_SUFFIXES = {
@@ -42,6 +45,39 @@ export function setNonDottedPaths(value) {
42
45
  export function getNonDottedPaths() {
43
46
  return _nonDottedPaths;
44
47
  }
48
+ /**
49
+ * Search for wmill.yaml by traversing upward from the current directory
50
+ * and initialize the nonDottedPaths setting.
51
+ * Unlike findWmillYaml() in conf.ts, this does not stop at the git root -
52
+ * it continues searching until the filesystem root.
53
+ * This is needed for commands like `app dev` and `app new` which may run
54
+ * from inside folders that are deeply nested within a larger git repository.
55
+ */
56
+ export async function loadNonDottedPathsSetting() {
57
+ let currentDir = process.cwd();
58
+ while (true) {
59
+ const wmillYamlPath = path.join(currentDir, "wmill.yaml");
60
+ if (fs.existsSync(wmillYamlPath)) {
61
+ try {
62
+ const config = (await yamlParseFile(wmillYamlPath));
63
+ setNonDottedPaths(config?.nonDottedPaths ?? false);
64
+ log.debug(`Found wmill.yaml at ${wmillYamlPath}, nonDottedPaths=${config?.nonDottedPaths ?? false}`);
65
+ }
66
+ catch (e) {
67
+ log.debug(`Failed to parse wmill.yaml at ${wmillYamlPath}: ${e}`);
68
+ }
69
+ return;
70
+ }
71
+ // Check if we've reached the filesystem root
72
+ const parentDir = path.dirname(currentDir);
73
+ if (parentDir === currentDir) {
74
+ // Reached filesystem root without finding wmill.yaml
75
+ log.debug("No wmill.yaml found, using default dotted paths");
76
+ return;
77
+ }
78
+ currentDir = parentDir;
79
+ }
80
+ }
45
81
  /**
46
82
  * Get the folder suffixes based on the global configuration.
47
83
  */
@@ -84,7 +84,7 @@ const imports = {
84
84
  },
85
85
  },
86
86
  };
87
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
87
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
88
88
  let wasmCode = '';
89
89
  switch (wasm_url.protocol) {
90
90
  case 'file:':
@@ -84,7 +84,7 @@ const imports = {
84
84
  },
85
85
  },
86
86
  };
87
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
87
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
88
88
  let wasmCode = '';
89
89
  switch (wasm_url.protocol) {
90
90
  case 'file:':
@@ -84,7 +84,7 @@ const imports = {
84
84
  },
85
85
  },
86
86
  };
87
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
87
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
88
88
  let wasmCode = '';
89
89
  switch (wasm_url.protocol) {
90
90
  case 'file:':
@@ -87,7 +87,7 @@ const imports = {
87
87
  },
88
88
  },
89
89
  };
90
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
90
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
91
91
  let wasmCode = '';
92
92
  switch (wasm_url.protocol) {
93
93
  case 'file:':
@@ -93,7 +93,7 @@ const imports = {
93
93
  },
94
94
  },
95
95
  };
96
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
96
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
97
97
  let wasmCode = '';
98
98
  switch (wasm_url.protocol) {
99
99
  case 'file:':
@@ -112,7 +112,7 @@ const imports = {
112
112
  },
113
113
  },
114
114
  };
115
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
115
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
116
116
  let wasmCode = '';
117
117
  switch (wasm_url.protocol) {
118
118
  case 'file:':
@@ -292,7 +292,7 @@ const imports = {
292
292
  },
293
293
  },
294
294
  };
295
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
295
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
296
296
  let wasmCode = '';
297
297
  switch (wasm_url.protocol) {
298
298
  case 'file:':
@@ -84,7 +84,7 @@ const imports = {
84
84
  },
85
85
  },
86
86
  };
87
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
87
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
88
88
  let wasmCode = '';
89
89
  switch (wasm_url.protocol) {
90
90
  case 'file:':
@@ -80,7 +80,7 @@ const imports = {
80
80
  },
81
81
  },
82
82
  };
83
- const wasmUrl = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
83
+ const wasmUrl = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
84
84
  const wasm = (await WebAssembly.instantiateStreaming(fetch(wasmUrl), imports)).instance.exports;
85
85
  export { wasm as __wasm };
86
86
  wasm.__wbindgen_start();
@@ -419,7 +419,7 @@ const imports = {
419
419
  },
420
420
  },
421
421
  };
422
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
422
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
423
423
  let wasmCode = '';
424
424
  switch (wasm_url.protocol) {
425
425
  case 'file:':
@@ -84,7 +84,7 @@ const imports = {
84
84
  },
85
85
  },
86
86
  };
87
- const wasm_url = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
87
+ const wasm_url = new URL('windmill_parser_wasm_bg.wasm', globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url);
88
88
  let wasmCode = '';
89
89
  switch (wasm_url.protocol) {
90
90
  case 'file:':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.617.1",
3
+ "version": "1.617.2",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,6 +21,7 @@
21
21
  }
22
22
  }
23
23
  },
24
+ "scripts": {},
24
25
  "bin": {
25
26
  "wmill": "./esm/src/main.js"
26
27
  },
@@ -1,5 +1,49 @@
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ import { createRequire } from "node:module";
14
+ import { type URL } from "node:url";
1
15
  declare global {
2
16
  interface ImportMeta {
17
+ /** A string representation of the fully qualified module URL. When the
18
+ * module is loaded locally, the value will be a file URL (e.g.
19
+ * `file:///path/module.ts`).
20
+ *
21
+ * You can also parse the string as a URL to determine more information about
22
+ * how the current module was loaded. For example to determine if a module was
23
+ * local or not:
24
+ *
25
+ * ```ts
26
+ * const url = new URL(import.meta.url);
27
+ * if (url.protocol === "file:") {
28
+ * console.log("this module was loaded locally");
29
+ * }
30
+ * ```
31
+ */
32
+ url: string;
33
+ /**
34
+ * A function that returns resolved specifier as if it would be imported
35
+ * using `import(specifier)`.
36
+ *
37
+ * ```ts
38
+ * console.log(import.meta.resolve("./foo.js"));
39
+ * // file:///dev/foo.js
40
+ * ```
41
+ *
42
+ * @param specifier The module specifier to resolve relative to `parent`.
43
+ * @param parent The absolute parent module URL to resolve from.
44
+ * @returns The absolute (`file:`) URL string for the resolved module.
45
+ */
46
+ resolve(specifier: string, parent?: string | URL | undefined): string;
3
47
  /** A flag that indicates if the current module is the main module that was
4
48
  * called when starting the program under Deno.
5
49
  *
@@ -10,18 +54,49 @@ declare global {
10
54
  * ```
11
55
  */
12
56
  main: boolean;
13
- /** A function that returns resolved specifier as if it would be imported
14
- * using `import(specifier)`.
57
+ /** The absolute path of the current module.
15
58
  *
16
- * ```ts
17
- * console.log(import.meta.resolve("./foo.js"));
18
- * // file:///dev/foo.js
59
+ * This property is only provided for local modules (ie. using `file://` URLs).
60
+ *
61
+ * Example:
62
+ * ```
63
+ * // Unix
64
+ * console.log(import.meta.filename); // /home/alice/my_module.ts
65
+ *
66
+ * // Windows
67
+ * console.log(import.meta.filename); // C:\alice\my_module.ts
68
+ * ```
69
+ */
70
+ filename: string;
71
+ /** The absolute path of the directory containing the current module.
72
+ *
73
+ * This property is only provided for local modules (ie. using `file://` URLs).
74
+ *
75
+ * * Example:
76
+ * ```
77
+ * // Unix
78
+ * console.log(import.meta.dirname); // /home/alice
79
+ *
80
+ * // Windows
81
+ * console.log(import.meta.dirname); // C:\alice
19
82
  * ```
20
83
  */
21
- resolve(specifier: string): string;
84
+ dirname: string;
22
85
  }
23
86
  }
24
- export {};
87
+ type NodeRequest = ReturnType<typeof createRequire>;
88
+ type NodeModule = NonNullable<NodeRequest["main"]>;
89
+ interface ImportMetaPonyfillCommonjs {
90
+ (require: NodeRequest, module: NodeModule): ImportMeta;
91
+ }
92
+ interface ImportMetaPonyfillEsmodule {
93
+ (importMeta: ImportMeta): ImportMeta;
94
+ }
95
+ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyfillEsmodule {
96
+ }
97
+ export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
98
+ export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
99
+ export declare let import_meta_ponyfill: ImportMetaPonyfill;
25
100
  declare global {
26
101
  interface Error {
27
102
  cause?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;WAOG;QAEH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;KACpC;CACF;AAED,OAAO,EAAE,CAAA;AACT,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC;AAgBV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,SAAS,CAAC,CAAC,EACP,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAC7F,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAEhB,SAAS,CAAC,CAAC,EAAE,CAAC,EACV,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAClE,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO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,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC;AAgBV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,SAAS,CAAC,CAAC,EACP,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAC7F,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAEhB,SAAS,CAAC,CAAC,EAAE,CAAC,EACV,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAClE,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAC/B,OAAO,CAAC,EAAE,GAAG,GACd,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAC1B;CACF;AAoID,OAAO,EAAE,CAAC"}
@@ -5,5 +5,5 @@ export declare function runLengthEncode(arr: number[]): {
5
5
  export declare function runLengthDecode({ d, r }: {
6
6
  d: string;
7
7
  r: string;
8
- }): Uint8Array;
8
+ }): Uint8Array<ArrayBuffer>;
9
9
  //# sourceMappingURL=_run_length.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_run_length.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE;;;EA0B5C;AAED,wBAAgB,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,cAUjE"}
1
+ {"version":3,"file":"_run_length.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cli/1.0.0-rc.2/_run_length.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE;;;EA0B5C;AAED,wBAAgB,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,2BAUjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.22/eol.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,MAAgB,CAAC;AAEhC,mDAAmD;AACnD,eAAO,MAAM,IAAI,QAAkB,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,IAAI,GAAG,MAEgD,CAAC;AAI1E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,CAE/D"}
1
+ {"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.22/eol.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,EAAG,IAAa,CAAC;AAEhC,mDAAmD;AACnD,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,IAAI,GAAG,MAEgD,CAAC;AAI1E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,CAE/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0-rc.2/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0-rc.2/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0-rc.2/windows/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,MAAgB,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAW,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.0-rc.2/windows/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,IAAa,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,MAAgB,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAW,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,IAAa,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAW,CAAC"}
@@ -62,8 +62,8 @@ export declare class LoaderState {
62
62
  allowCompact: boolean;
63
63
  }): State | void;
64
64
  readDirectives(): boolean;
65
- readDocument(): string | Record<string, unknown> | unknown[] | null;
66
- readDocuments(): Generator<string | Record<string, unknown> | unknown[] | null, void, unknown>;
65
+ readDocument(): string | unknown[] | Record<string, unknown> | null;
66
+ readDocuments(): Generator<string | unknown[] | Record<string, unknown> | null, void, unknown>;
67
67
  }
68
68
  export {};
69
69
  //# sourceMappingURL=_loader_state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAKhD;;GAEG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,EAC5B,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAmBR;AAED,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,MAEvC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,eAAe,QAGjB,CAAC;AAEZ;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM;IAwB5C,wEAAwE;;IAExE;;;OAGG;;EAGN"}
1
+ {"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@windmill-labs/cliffy-table/1.0.0-rc.5/_utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAKhD;;GAEG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAA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