windmill-cli 1.394.6 → 1.396.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/main.js +10 -1
- package/esm/metadata.js +40 -4
- package/esm/wasm/windmill_parser_wasm.generated.js +62 -38
- package/esm/wasm/windmill_parser_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/types/bootstrap/common.d.ts +5 -1
- package/types/bootstrap/common.d.ts.map +1 -1
- package/types/main.d.ts +2 -1
- package/types/main.d.ts.map +1 -1
- package/types/metadata.d.ts +8 -1
- package/types/metadata.d.ts.map +1 -1
- package/types/wasm/windmill_parser_wasm.generated.d.ts +7 -0
- package/types/wasm/windmill_parser_wasm.generated.d.ts.map +1 -1
package/esm/main.js
CHANGED
|
@@ -30,7 +30,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
|
|
|
30
30
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
31
31
|
// }
|
|
32
32
|
// });
|
|
33
|
-
export const VERSION = "1.
|
|
33
|
+
export const VERSION = "1.396.0";
|
|
34
34
|
const command = new Command()
|
|
35
35
|
.name("wmill")
|
|
36
36
|
.action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
|
|
@@ -89,6 +89,14 @@ const command = new Command()
|
|
|
89
89
|
}))
|
|
90
90
|
.command("completions", new CompletionsCommand());
|
|
91
91
|
export let showDiffs = false;
|
|
92
|
+
let isWin = undefined;
|
|
93
|
+
export async function getIsWin() {
|
|
94
|
+
if (isWin === undefined) {
|
|
95
|
+
const os = await import("node:os");
|
|
96
|
+
isWin = os.platform() === "win32";
|
|
97
|
+
}
|
|
98
|
+
return isWin;
|
|
99
|
+
}
|
|
92
100
|
async function main() {
|
|
93
101
|
try {
|
|
94
102
|
if (dntShim.Deno.args.length === 0) {
|
|
@@ -103,6 +111,7 @@ async function main() {
|
|
|
103
111
|
handlers: {
|
|
104
112
|
console: new log.ConsoleHandler(LOG_LEVEL, {
|
|
105
113
|
formatter: ({ msg }) => `${msg}`,
|
|
114
|
+
useColors: isWin ? false : true,
|
|
106
115
|
}),
|
|
107
116
|
},
|
|
108
117
|
loggers: {
|
package/esm/metadata.js
CHANGED
|
@@ -8,6 +8,7 @@ import { exts } from "./script.js";
|
|
|
8
8
|
import { FSFSElement, extractInlineScriptsForFlows, findCodebase, newPathAssigner, yamlOptions, } from "./sync.js";
|
|
9
9
|
import { generateHash, readInlinePathSync } from "./utils.js";
|
|
10
10
|
import { replaceInlineScripts } from "./flow.js";
|
|
11
|
+
import { getIsWin } from "./main.js";
|
|
11
12
|
export async function generateAllMetadata() { }
|
|
12
13
|
function findClosestRawReqs(lang, remotePath, globalDeps) {
|
|
13
14
|
let bestCandidate = undefined;
|
|
@@ -97,6 +98,11 @@ export async function generateFlowLockInternal(folder, dryRun, workspace, justUp
|
|
|
97
98
|
}
|
|
98
99
|
log.info(colors.green(`Flow ${remote_path} lockfiles updated`));
|
|
99
100
|
}
|
|
101
|
+
// on windows, when using powershell, blue is not readable
|
|
102
|
+
async function blueColor() {
|
|
103
|
+
const isWin = await getIsWin();
|
|
104
|
+
return isWin ? colors.black : colors.blue;
|
|
105
|
+
}
|
|
100
106
|
export async function generateScriptMetadataInternal(scriptPath, workspace, opts, dryRun, noStaleMessage, globalDeps, codebases, justUpdateMetadataLock) {
|
|
101
107
|
const remotePath = scriptPath
|
|
102
108
|
.substring(0, scriptPath.indexOf("."))
|
|
@@ -104,7 +110,7 @@ export async function generateScriptMetadataInternal(scriptPath, workspace, opts
|
|
|
104
110
|
const language = inferContentTypeFromFilePath(scriptPath, opts.defaultTs);
|
|
105
111
|
const rawReqs = findClosestRawReqs(language, scriptPath, globalDeps);
|
|
106
112
|
if (rawReqs) {
|
|
107
|
-
log.info(
|
|
113
|
+
log.info((await blueColor())(`Found raw requirements (package.json/requirements.txt/composer.json) for ${scriptPath}, using it`));
|
|
108
114
|
}
|
|
109
115
|
const metadataWithType = await parseMetadataFile(remotePath, undefined, globalDeps, codebases);
|
|
110
116
|
// read script content
|
|
@@ -352,8 +358,9 @@ function sortObject(obj) {
|
|
|
352
358
|
[key]: obj[key],
|
|
353
359
|
}), {});
|
|
354
360
|
}
|
|
361
|
+
//copied straight fron frontend /src/utils/inferArgs.ts
|
|
355
362
|
export function argSigToJsonSchemaType(t, oldS) {
|
|
356
|
-
|
|
363
|
+
const newS = { type: "" };
|
|
357
364
|
if (t === "int") {
|
|
358
365
|
newS.type = "integer";
|
|
359
366
|
}
|
|
@@ -430,6 +437,10 @@ export function argSigToJsonSchemaType(t, oldS) {
|
|
|
430
437
|
newS.originalType = "enum";
|
|
431
438
|
newS.enum = t.str;
|
|
432
439
|
}
|
|
440
|
+
else if (oldS.originalType == "string" && oldS.enum) {
|
|
441
|
+
newS.originalType = "string";
|
|
442
|
+
newS.enum = oldS.enum;
|
|
443
|
+
}
|
|
433
444
|
else {
|
|
434
445
|
newS.originalType = "string";
|
|
435
446
|
newS.enum = undefined;
|
|
@@ -439,6 +450,10 @@ export function argSigToJsonSchemaType(t, oldS) {
|
|
|
439
450
|
newS.type = "object";
|
|
440
451
|
newS.format = `resource-${t.resource}`;
|
|
441
452
|
}
|
|
453
|
+
else if (typeof t !== "string" && `dynselect` in t) {
|
|
454
|
+
newS.type = "object";
|
|
455
|
+
newS.format = `dynselect-${t.dynselect}`;
|
|
456
|
+
}
|
|
442
457
|
else if (typeof t !== "string" && `list` in t) {
|
|
443
458
|
newS.type = "array";
|
|
444
459
|
if (t.list === "int" || t.list === "float") {
|
|
@@ -453,6 +468,27 @@ export function argSigToJsonSchemaType(t, oldS) {
|
|
|
453
468
|
else if (t.list && typeof t.list == "object" && "str" in t.list) {
|
|
454
469
|
newS.items = { type: "string", enum: t.list.str };
|
|
455
470
|
}
|
|
471
|
+
else if (t.list &&
|
|
472
|
+
typeof t.list == "object" &&
|
|
473
|
+
"resource" in t.list &&
|
|
474
|
+
t.list.resource) {
|
|
475
|
+
newS.items = {
|
|
476
|
+
type: "resource",
|
|
477
|
+
resourceType: t.list.resource,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
else if (t.list &&
|
|
481
|
+
typeof t.list == "object" &&
|
|
482
|
+
"object" in t.list &&
|
|
483
|
+
t.list.object &&
|
|
484
|
+
t.list.object.length > 0) {
|
|
485
|
+
const properties = {};
|
|
486
|
+
for (const prop of t.list.object) {
|
|
487
|
+
properties[prop.key] = { description: "", type: "" };
|
|
488
|
+
argSigToJsonSchemaType(prop.typ, properties[prop.key]);
|
|
489
|
+
}
|
|
490
|
+
newS.items = { type: "object", properties: properties };
|
|
491
|
+
}
|
|
456
492
|
else {
|
|
457
493
|
newS.items = { type: "object" };
|
|
458
494
|
}
|
|
@@ -553,7 +589,7 @@ export async function parseMetadataFile(scriptPath, generateMetadataIfMissing, g
|
|
|
553
589
|
}
|
|
554
590
|
catch {
|
|
555
591
|
// no metadata file at all. Create it
|
|
556
|
-
log.info(
|
|
592
|
+
log.info((await blueColor())(`Creating script metadata file for ${metadataFilePath}`));
|
|
557
593
|
metadataFilePath = scriptPath + ".script.yaml";
|
|
558
594
|
let scriptInitialMetadata = defaultScriptMetadata();
|
|
559
595
|
const scriptInitialMetadataYaml = yamlStringify(scriptInitialMetadata, yamlOptions);
|
|
@@ -561,7 +597,7 @@ export async function parseMetadataFile(scriptPath, generateMetadataIfMissing, g
|
|
|
561
597
|
createNew: true,
|
|
562
598
|
});
|
|
563
599
|
if (generateMetadataIfMissing) {
|
|
564
|
-
log.info(
|
|
600
|
+
log.info((await blueColor())(`Generating lockfile and schema for ${metadataFilePath}`));
|
|
565
601
|
try {
|
|
566
602
|
await generateScriptMetadataInternal(generateMetadataIfMissing.path, generateMetadataIfMissing.workspaceRemote, generateMetadataIfMissing, false, false, globalDeps, codebases, false);
|
|
567
603
|
scriptInitialMetadata = yamlParse(await dntShim.Deno.readTextFile(metadataFilePath));
|
|
@@ -15,25 +15,13 @@ import * as dntShim from "../_dnt.shims.js";
|
|
|
15
15
|
// @ts-nocheck: generated
|
|
16
16
|
// deno-lint-ignore-file
|
|
17
17
|
// deno-fmt-ignore-file
|
|
18
|
-
// source-hash:
|
|
18
|
+
// source-hash: d36b5583d8f6223c130a246a8713b8621d55b990
|
|
19
19
|
let wasm;
|
|
20
20
|
const heap = new Array(128).fill(undefined);
|
|
21
21
|
heap.push(undefined, null, true, false);
|
|
22
22
|
function getObject(idx) {
|
|
23
23
|
return heap[idx];
|
|
24
24
|
}
|
|
25
|
-
let heap_next = heap.length;
|
|
26
|
-
function dropObject(idx) {
|
|
27
|
-
if (idx < 132)
|
|
28
|
-
return;
|
|
29
|
-
heap[idx] = heap_next;
|
|
30
|
-
heap_next = idx;
|
|
31
|
-
}
|
|
32
|
-
function takeObject(idx) {
|
|
33
|
-
const ret = getObject(idx);
|
|
34
|
-
dropObject(idx);
|
|
35
|
-
return ret;
|
|
36
|
-
}
|
|
37
25
|
let WASM_VECTOR_LEN = 0;
|
|
38
26
|
let cachedUint8Memory0 = null;
|
|
39
27
|
function getUint8Memory0() {
|
|
@@ -93,6 +81,33 @@ function getInt32Memory0() {
|
|
|
93
81
|
}
|
|
94
82
|
return cachedInt32Memory0;
|
|
95
83
|
}
|
|
84
|
+
let heap_next = heap.length;
|
|
85
|
+
function dropObject(idx) {
|
|
86
|
+
if (idx < 132)
|
|
87
|
+
return;
|
|
88
|
+
heap[idx] = heap_next;
|
|
89
|
+
heap_next = idx;
|
|
90
|
+
}
|
|
91
|
+
function takeObject(idx) {
|
|
92
|
+
const ret = getObject(idx);
|
|
93
|
+
dropObject(idx);
|
|
94
|
+
return ret;
|
|
95
|
+
}
|
|
96
|
+
let cachedFloat64Memory0 = null;
|
|
97
|
+
function getFloat64Memory0() {
|
|
98
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
99
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
100
|
+
}
|
|
101
|
+
return cachedFloat64Memory0;
|
|
102
|
+
}
|
|
103
|
+
function addHeapObject(obj) {
|
|
104
|
+
if (heap_next === heap.length)
|
|
105
|
+
heap.push(heap.length + 1);
|
|
106
|
+
const idx = heap_next;
|
|
107
|
+
heap_next = heap[idx];
|
|
108
|
+
heap[idx] = obj;
|
|
109
|
+
return idx;
|
|
110
|
+
}
|
|
96
111
|
const cachedTextDecoder = typeof TextDecoder !== "undefined"
|
|
97
112
|
? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true })
|
|
98
113
|
: {
|
|
@@ -106,21 +121,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
106
121
|
ptr = ptr >>> 0;
|
|
107
122
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
108
123
|
}
|
|
109
|
-
function addHeapObject(obj) {
|
|
110
|
-
if (heap_next === heap.length)
|
|
111
|
-
heap.push(heap.length + 1);
|
|
112
|
-
const idx = heap_next;
|
|
113
|
-
heap_next = heap[idx];
|
|
114
|
-
heap[idx] = obj;
|
|
115
|
-
return idx;
|
|
116
|
-
}
|
|
117
|
-
let cachedFloat64Memory0 = null;
|
|
118
|
-
function getFloat64Memory0() {
|
|
119
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
120
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
121
|
-
}
|
|
122
|
-
return cachedFloat64Memory0;
|
|
123
|
-
}
|
|
124
124
|
let cachedBigInt64Memory0 = null;
|
|
125
125
|
function getBigInt64Memory0() {
|
|
126
126
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -541,6 +541,29 @@ export function parse_php(code) {
|
|
|
541
541
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* @param {string} code
|
|
546
|
+
* @returns {string}
|
|
547
|
+
*/
|
|
548
|
+
export function parse_rust(code) {
|
|
549
|
+
let deferred2_0;
|
|
550
|
+
let deferred2_1;
|
|
551
|
+
try {
|
|
552
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
553
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
554
|
+
const len0 = WASM_VECTOR_LEN;
|
|
555
|
+
wasm.parse_rust(retptr, ptr0, len0);
|
|
556
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
557
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
558
|
+
deferred2_0 = r0;
|
|
559
|
+
deferred2_1 = r1;
|
|
560
|
+
return getStringFromWasm0(r0, r1);
|
|
561
|
+
}
|
|
562
|
+
finally {
|
|
563
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
564
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
544
567
|
function handleError(f, args) {
|
|
545
568
|
try {
|
|
546
569
|
return f.apply(this, args);
|
|
@@ -551,9 +574,6 @@ function handleError(f, args) {
|
|
|
551
574
|
}
|
|
552
575
|
const imports = {
|
|
553
576
|
__wbindgen_placeholder__: {
|
|
554
|
-
__wbindgen_object_drop_ref: function (arg0) {
|
|
555
|
-
takeObject(arg0);
|
|
556
|
-
},
|
|
557
577
|
__wbindgen_string_get: function (arg0, arg1) {
|
|
558
578
|
const obj = getObject(arg1);
|
|
559
579
|
const ret = typeof obj === "string" ? obj : undefined;
|
|
@@ -564,13 +584,8 @@ const imports = {
|
|
|
564
584
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
565
585
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
566
586
|
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
return addHeapObject(ret);
|
|
570
|
-
},
|
|
571
|
-
__wbindgen_error_new: function (arg0, arg1) {
|
|
572
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
573
|
-
return addHeapObject(ret);
|
|
587
|
+
__wbindgen_object_drop_ref: function (arg0) {
|
|
588
|
+
takeObject(arg0);
|
|
574
589
|
},
|
|
575
590
|
__wbindgen_boolean_get: function (arg0) {
|
|
576
591
|
const v = getObject(arg0);
|
|
@@ -608,6 +623,14 @@ const imports = {
|
|
|
608
623
|
const ret = BigInt.asUintN(64, arg0);
|
|
609
624
|
return addHeapObject(ret);
|
|
610
625
|
},
|
|
626
|
+
__wbindgen_error_new: function (arg0, arg1) {
|
|
627
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
628
|
+
return addHeapObject(ret);
|
|
629
|
+
},
|
|
630
|
+
__wbg_eval_c227cc6614cd76e5: function (arg0, arg1) {
|
|
631
|
+
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
632
|
+
return addHeapObject(ret);
|
|
633
|
+
},
|
|
611
634
|
__wbindgen_jsval_loose_eq: function (arg0, arg1) {
|
|
612
635
|
const ret = getObject(arg0) == getObject(arg1);
|
|
613
636
|
return ret;
|
|
@@ -859,6 +882,7 @@ function getWasmInstanceExports() {
|
|
|
859
882
|
parse_db_resource,
|
|
860
883
|
parse_graphql,
|
|
861
884
|
parse_php,
|
|
885
|
+
parse_rust,
|
|
862
886
|
};
|
|
863
887
|
}
|
|
864
888
|
export function isInstantiated() {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -8,9 +8,13 @@ export interface SchemaProperty {
|
|
|
8
8
|
contentEncoding?: "base64" | "binary";
|
|
9
9
|
format?: string;
|
|
10
10
|
items?: {
|
|
11
|
-
type?: "string" | "number" | "bytes" | "object";
|
|
11
|
+
type?: "string" | "number" | "bytes" | "object" | "resource";
|
|
12
12
|
contentEncoding?: "base64";
|
|
13
13
|
enum?: string[];
|
|
14
|
+
resourceType?: string;
|
|
15
|
+
properties?: {
|
|
16
|
+
[name: string]: SchemaProperty;
|
|
17
|
+
};
|
|
14
18
|
};
|
|
15
19
|
min?: number;
|
|
16
20
|
max?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/bootstrap/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,eAAe,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/bootstrap/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,eAAe,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;QAC7D,eAAe,CAAC,EAAE,QAAQ,CAAC;QAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;SAAE,CAAC;KACjD,CAAC;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
package/types/main.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { pull as hubPull } from "./hub.js";
|
|
|
19
19
|
import { pull, push } from "./sync.js";
|
|
20
20
|
import { add as workspaceAdd } from "./workspace.js";
|
|
21
21
|
export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, sync, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
22
|
-
export declare const VERSION = "1.
|
|
22
|
+
export declare const VERSION = "1.396.0";
|
|
23
23
|
declare const command: Command<{
|
|
24
24
|
workspace?: (import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
|
|
25
25
|
} & {
|
|
@@ -58,5 +58,6 @@ declare const command: Command<{
|
|
|
58
58
|
file: string;
|
|
59
59
|
}, void, undefined>>;
|
|
60
60
|
export declare let showDiffs: boolean;
|
|
61
|
+
export declare function getIsWin(): Promise<boolean>;
|
|
61
62
|
export default command;
|
|
62
63
|
//# sourceMappingURL=main.d.ts.map
|
package/types/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EACL,OAAO,EAOR,MAAM,WAAW,CAAC;AACnB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAiC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,GAAG,MAAM,UAAU,CAAC;AAM3B,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,GAAG,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EACL,IAAI,EACJ,GAAG,EACH,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,YAA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AASF,eAAO,MAAM,OAAO,YAAY,CAAC;AAEjC,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAoFsC,CAAC;AAEpD,eAAO,IAAI,SAAS,SAAQ,CAAC;AAI7B,wBAAsB,QAAQ,qBAM7B;AAkED,eAAe,OAAO,CAAC"}
|
package/types/metadata.d.ts
CHANGED
|
@@ -18,7 +18,12 @@ export declare function inferSchema(language: ScriptLanguage, content: string, c
|
|
|
18
18
|
export declare function argSigToJsonSchemaType(t: string | {
|
|
19
19
|
resource: string | null;
|
|
20
20
|
} | {
|
|
21
|
-
list: string | {
|
|
21
|
+
list: (string | {
|
|
22
|
+
object: {
|
|
23
|
+
key: string;
|
|
24
|
+
typ: any;
|
|
25
|
+
}[];
|
|
26
|
+
}) | {
|
|
22
27
|
str: any;
|
|
23
28
|
} | {
|
|
24
29
|
object: {
|
|
@@ -26,6 +31,8 @@ export declare function argSigToJsonSchemaType(t: string | {
|
|
|
26
31
|
typ: any;
|
|
27
32
|
}[];
|
|
28
33
|
} | null;
|
|
34
|
+
} | {
|
|
35
|
+
dynselect: string;
|
|
29
36
|
} | {
|
|
30
37
|
str: string[] | null;
|
|
31
38
|
} | {
|
package/types/metadata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EACL,SAAS,EAOV,MAAM,WAAW,CAAC;AAmBnB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAQ,MAAM,aAAa,CAAC;AAS/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC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MAAM,EAAE,CAAA;CAAE,QAe3D;AACD,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,yBAAyB,EACrB,CAAC,aAAa,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,GACF,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,YAAY,EAAE,GACxB,OAAO,CAAC;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CA0E1D;AAED,UAAU,IAAI;IACZ,KAAK,CAAC,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG;YAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACpE;AAGD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAclD;AAED,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,IAAI,GAAG,SAAS,EACtB,OAAO,CAAC,EAAE,MAAM,oBAWjB;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,mBAK3B;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
|
@@ -73,6 +73,11 @@ export function parse_graphql(code: string): string;
|
|
|
73
73
|
* @returns {string}
|
|
74
74
|
*/
|
|
75
75
|
export function parse_php(code: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* @param {string} code
|
|
78
|
+
* @returns {string}
|
|
79
|
+
*/
|
|
80
|
+
export function parse_rust(code: string): string;
|
|
76
81
|
export function instantiate(opts: any): Promise<{
|
|
77
82
|
parse_deno: typeof parse_deno;
|
|
78
83
|
parse_outputs: typeof parse_outputs;
|
|
@@ -89,6 +94,7 @@ export function instantiate(opts: any): Promise<{
|
|
|
89
94
|
parse_db_resource: typeof parse_db_resource;
|
|
90
95
|
parse_graphql: typeof parse_graphql;
|
|
91
96
|
parse_php: typeof parse_php;
|
|
97
|
+
parse_rust: typeof parse_rust;
|
|
92
98
|
}>;
|
|
93
99
|
export function instantiateWithInstance(opts: any): Promise<{
|
|
94
100
|
instance: any;
|
|
@@ -108,6 +114,7 @@ export function instantiateWithInstance(opts: any): Promise<{
|
|
|
108
114
|
parse_db_resource: typeof parse_db_resource;
|
|
109
115
|
parse_graphql: typeof parse_graphql;
|
|
110
116
|
parse_php: typeof parse_php;
|
|
117
|
+
parse_rust: typeof parse_rust;
|
|
111
118
|
};
|
|
112
119
|
}>;
|
|
113
120
|
export function isInstantiated(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windmill_parser_wasm.generated.d.ts","sourceRoot":"","sources":["../../src/wasm/windmill_parser_wasm.generated.js"],"names":[],"mappings":"AAuNA;;;GAGG;AACH,iCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,iCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,+BAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,mCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,gCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,kCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,qCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,sCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,kCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,wCAHW,MAAM,GACJ,MAAM,GAAG,SAAS,CAuB9B;AAED;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,gCAHW,MAAM,GACJ,MAAM,CAuBlB;AA4TD
|
|
1
|
+
{"version":3,"file":"windmill_parser_wasm.generated.d.ts","sourceRoot":"","sources":["../../src/wasm/windmill_parser_wasm.generated.js"],"names":[],"mappings":"AAuNA;;;GAGG;AACH,iCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,iCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,+BAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,mCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,gCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,kCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,qCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,sCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,kCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,wCAHW,MAAM,GACJ,MAAM,GAAG,SAAS,CAuB9B;AAED;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,gCAHW,MAAM,GACJ,MAAM,CAuBlB;AAED;;;GAGG;AACH,iCAHW,MAAM,GACJ,MAAM,CAuBlB;AA4TD;;;;;;;;;;;;;;;;;GAEC;AAED;;;;;;;;;;;;;;;;;;;;GAYC;AAuBD,0CAEC;AACD,yEAeC;AAuGD,mFAmBC"}
|