@tailor-platform/sdk 0.18.2 → 0.20.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/CHANGELOG.md +18 -0
- package/dist/cli/api.d.mts +24 -14
- package/dist/cli/api.mjs +1 -1
- package/dist/cli/api.mjs.map +1 -1
- package/dist/cli/index.d.mts +8 -1
- package/dist/cli/index.mjs +74 -182
- package/dist/cli/index.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Ba6ekRxa.d.mts → index-Zqsfkae6.d.mts} +2 -2
- package/dist/job-CL8myeqs.mjs.map +1 -1
- package/dist/{resume-8Y9mmXHa.mjs → resume-DSfYKl2w.mjs} +754 -665
- package/dist/{resume-8Y9mmXHa.mjs.map → resume-DSfYKl2w.mjs.map} +1 -1
- package/dist/{types-Dz5wcR2h.d.mts → types-BLZiwB6E.d.mts} +31 -7
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/application.md +3 -3
- package/docs/cli/auth.md +4 -4
- package/docs/cli/secret.md +2 -2
- package/docs/cli/user.md +10 -10
- package/docs/cli/workflow.md +12 -12
- package/docs/cli/workspace.md +6 -6
- package/docs/cli-reference.md +34 -7
- package/docs/services/workflow.md +1 -1
- package/package.json +6 -6
|
@@ -4,14 +4,16 @@ import { defineCommand } from "citty";
|
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
7
|
-
import util, { styleText } from "node:util";
|
|
8
7
|
import * as fs$1 from "node:fs";
|
|
9
8
|
import fs from "node:fs";
|
|
9
|
+
import chalk from "chalk";
|
|
10
|
+
import { createConsola } from "consola";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import * as inflection from "inflection";
|
|
12
13
|
import nativeFsp, { glob } from "node:fs/promises";
|
|
13
14
|
import * as os$1 from "node:os";
|
|
14
15
|
import os from "node:os";
|
|
16
|
+
import util from "node:util";
|
|
15
17
|
import assert from "node:assert";
|
|
16
18
|
import { loadEnvFile } from "node:process";
|
|
17
19
|
import ml from "multiline-ts";
|
|
@@ -19,7 +21,6 @@ import { readPackageJSON, resolveTSConfig } from "pkg-types";
|
|
|
19
21
|
import * as rolldown from "rolldown";
|
|
20
22
|
import { parseSync } from "oxc-parser";
|
|
21
23
|
import { parseTOML, parseYAML, stringifyYAML } from "confbox";
|
|
22
|
-
import consola, { consola as consola$1 } from "consola";
|
|
23
24
|
import { xdgConfig } from "xdg-basedir";
|
|
24
25
|
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
25
26
|
import { MethodOptions_IdempotencyLevel, ValueSchema, file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_struct, file_google_protobuf_timestamp, timestampDate } from "@bufbuild/protobuf/wkt";
|
|
@@ -27,13 +28,11 @@ import { Code, ConnectError, createClient } from "@connectrpc/connect";
|
|
|
27
28
|
import { createConnectTransport } from "@connectrpc/connect-node";
|
|
28
29
|
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
29
30
|
import { create, fromJson } from "@bufbuild/protobuf";
|
|
30
|
-
import chalk from "chalk";
|
|
31
31
|
import { spawn } from "node:child_process";
|
|
32
32
|
import chokidar from "chokidar";
|
|
33
33
|
import * as madgeModule from "madge";
|
|
34
34
|
import { formatDistanceToNowStrict } from "date-fns";
|
|
35
35
|
import { getBorderCharacters, table } from "table";
|
|
36
|
-
import { validate } from "uuid";
|
|
37
36
|
import ora from "ora";
|
|
38
37
|
|
|
39
38
|
//#region rolldown:runtime
|
|
@@ -126,6 +125,125 @@ var AuthService = class {
|
|
|
126
125
|
}
|
|
127
126
|
};
|
|
128
127
|
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/cli/utils/logger.ts
|
|
130
|
+
/**
|
|
131
|
+
* Semantic style functions for inline text styling
|
|
132
|
+
*/
|
|
133
|
+
const styles = {
|
|
134
|
+
success: chalk.green,
|
|
135
|
+
error: chalk.red,
|
|
136
|
+
warning: chalk.yellow,
|
|
137
|
+
info: chalk.cyan,
|
|
138
|
+
create: chalk.green,
|
|
139
|
+
update: chalk.yellow,
|
|
140
|
+
delete: chalk.red,
|
|
141
|
+
unchanged: chalk.gray,
|
|
142
|
+
bold: chalk.bold,
|
|
143
|
+
dim: chalk.gray,
|
|
144
|
+
highlight: chalk.cyanBright,
|
|
145
|
+
successBright: chalk.greenBright,
|
|
146
|
+
errorBright: chalk.redBright,
|
|
147
|
+
resourceType: chalk.bold,
|
|
148
|
+
resourceName: chalk.cyan,
|
|
149
|
+
path: chalk.cyan,
|
|
150
|
+
value: chalk.white,
|
|
151
|
+
placeholder: chalk.gray.italic
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Standardized symbols for CLI output
|
|
155
|
+
*/
|
|
156
|
+
const symbols = {
|
|
157
|
+
success: chalk.green("✓"),
|
|
158
|
+
error: chalk.red("✖"),
|
|
159
|
+
warning: chalk.yellow("⚠"),
|
|
160
|
+
info: chalk.cyan("i"),
|
|
161
|
+
create: chalk.green("+"),
|
|
162
|
+
update: chalk.yellow("~"),
|
|
163
|
+
delete: chalk.red("-"),
|
|
164
|
+
bullet: chalk.gray("•"),
|
|
165
|
+
arrow: chalk.gray("→")
|
|
166
|
+
};
|
|
167
|
+
const defaultLogger = createConsola({ formatOptions: { date: false } });
|
|
168
|
+
const streamLogger = createConsola({ formatOptions: { date: true } });
|
|
169
|
+
const plainLogger = createConsola({ formatOptions: {
|
|
170
|
+
date: false,
|
|
171
|
+
compact: true
|
|
172
|
+
} });
|
|
173
|
+
/**
|
|
174
|
+
* Logger object for CLI output
|
|
175
|
+
*/
|
|
176
|
+
const logger = {
|
|
177
|
+
jsonMode: false,
|
|
178
|
+
info(message, opts) {
|
|
179
|
+
if (this.jsonMode) return;
|
|
180
|
+
switch (opts?.mode ?? "default") {
|
|
181
|
+
case "stream":
|
|
182
|
+
streamLogger.info(message);
|
|
183
|
+
break;
|
|
184
|
+
case "plain":
|
|
185
|
+
plainLogger.log(message);
|
|
186
|
+
break;
|
|
187
|
+
default: defaultLogger.info(message);
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
success(message, opts) {
|
|
191
|
+
if (this.jsonMode) return;
|
|
192
|
+
switch (opts?.mode ?? "default") {
|
|
193
|
+
case "stream":
|
|
194
|
+
streamLogger.success(message);
|
|
195
|
+
break;
|
|
196
|
+
case "plain":
|
|
197
|
+
plainLogger.log(styles.success(message));
|
|
198
|
+
break;
|
|
199
|
+
default: defaultLogger.success(message);
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
warn(message, opts) {
|
|
203
|
+
if (this.jsonMode) return;
|
|
204
|
+
switch (opts?.mode ?? "default") {
|
|
205
|
+
case "stream":
|
|
206
|
+
streamLogger.warn(message);
|
|
207
|
+
break;
|
|
208
|
+
case "plain":
|
|
209
|
+
plainLogger.log(styles.warning(message));
|
|
210
|
+
break;
|
|
211
|
+
default: defaultLogger.warn(message);
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
error(message, opts) {
|
|
215
|
+
switch (opts?.mode ?? "default") {
|
|
216
|
+
case "stream":
|
|
217
|
+
streamLogger.error(message);
|
|
218
|
+
break;
|
|
219
|
+
case "plain":
|
|
220
|
+
plainLogger.error(styles.error(message));
|
|
221
|
+
break;
|
|
222
|
+
default: defaultLogger.error(message);
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
log(message) {
|
|
226
|
+
if (this.jsonMode) return;
|
|
227
|
+
plainLogger.log(message);
|
|
228
|
+
},
|
|
229
|
+
newline() {
|
|
230
|
+
if (this.jsonMode) return;
|
|
231
|
+
plainLogger.log("");
|
|
232
|
+
},
|
|
233
|
+
debug(message) {
|
|
234
|
+
if (this.jsonMode) return;
|
|
235
|
+
plainLogger.log(styles.dim(message));
|
|
236
|
+
},
|
|
237
|
+
data(dataValue, formatFn) {
|
|
238
|
+
if (this.jsonMode) plainLogger.log(JSON.stringify(dataValue, null, 2));
|
|
239
|
+
else if (formatFn) formatFn(dataValue);
|
|
240
|
+
else plainLogger.log(String(dataValue));
|
|
241
|
+
},
|
|
242
|
+
prompt(message, options) {
|
|
243
|
+
return defaultLogger.prompt(message, options);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
|
|
129
247
|
//#endregion
|
|
130
248
|
//#region src/cli/application/file-loader.ts
|
|
131
249
|
const DEFAULT_IGNORE_PATTERNS = ["**/*.test.ts", "**/*.spec.ts"];
|
|
@@ -144,7 +262,7 @@ function loadFilesWithIgnores(config) {
|
|
|
144
262
|
try {
|
|
145
263
|
fs$1.globSync(absoluteIgnorePattern).forEach((file) => ignoreFiles.add(file));
|
|
146
264
|
} catch (error) {
|
|
147
|
-
|
|
265
|
+
logger.warn(`Failed to glob ignore pattern "${ignorePattern}": ${String(error)}`);
|
|
148
266
|
}
|
|
149
267
|
}
|
|
150
268
|
const files = [];
|
|
@@ -154,7 +272,7 @@ function loadFilesWithIgnores(config) {
|
|
|
154
272
|
const filteredFiles = fs$1.globSync(absolutePattern).filter((file) => !ignoreFiles.has(file));
|
|
155
273
|
files.push(...filteredFiles);
|
|
156
274
|
} catch (error) {
|
|
157
|
-
|
|
275
|
+
logger.warn(`Failed to glob pattern "${pattern}": ${String(error)}`);
|
|
158
276
|
}
|
|
159
277
|
}
|
|
160
278
|
return files;
|
|
@@ -427,8 +545,8 @@ var ExecutorService = class {
|
|
|
427
545
|
if (Object.keys(this.executors).length > 0) return this.executors;
|
|
428
546
|
if (!this.config.files || this.config.files.length === 0) return;
|
|
429
547
|
const executorFiles = loadFilesWithIgnores(this.config);
|
|
430
|
-
|
|
431
|
-
|
|
548
|
+
logger.newline();
|
|
549
|
+
logger.log(`Found ${styles.highlight(executorFiles.length.toString())} executor files`);
|
|
432
550
|
await Promise.all(executorFiles.map((executorFile) => this.loadExecutorForFile(executorFile)));
|
|
433
551
|
return this.executors;
|
|
434
552
|
}
|
|
@@ -438,14 +556,14 @@ var ExecutorService = class {
|
|
|
438
556
|
const result = ExecutorSchema.safeParse(executorModule.default);
|
|
439
557
|
if (result.success) {
|
|
440
558
|
const relativePath = path$1.relative(process.cwd(), executorFile);
|
|
441
|
-
|
|
559
|
+
logger.log(`Executor: ${styles.successBright(`"${result.data.name}"`)} loaded from ${styles.path(relativePath)}`);
|
|
442
560
|
this.executors[executorFile] = result.data;
|
|
443
561
|
return result.data;
|
|
444
562
|
}
|
|
445
563
|
} catch (error) {
|
|
446
564
|
const relativePath = path$1.relative(process.cwd(), executorFile);
|
|
447
|
-
|
|
448
|
-
|
|
565
|
+
logger.error(`${styles.error("Failed to load executor from")} ${styles.errorBright(relativePath)}`);
|
|
566
|
+
logger.error(String(error));
|
|
449
567
|
throw error;
|
|
450
568
|
}
|
|
451
569
|
}
|
|
@@ -512,8 +630,8 @@ var ResolverService = class {
|
|
|
512
630
|
if (Object.keys(this.resolvers).length > 0) return;
|
|
513
631
|
if (!this.config.files || this.config.files.length === 0) return;
|
|
514
632
|
const resolverFiles = loadFilesWithIgnores(this.config);
|
|
515
|
-
|
|
516
|
-
|
|
633
|
+
logger.newline();
|
|
634
|
+
logger.log(`Found ${styles.highlight(resolverFiles.length.toString())} resolver files for service ${styles.highlight(`"${this.namespace}"`)}`);
|
|
517
635
|
await Promise.all(resolverFiles.map((resolverFile) => this.loadResolverForFile(resolverFile)));
|
|
518
636
|
}
|
|
519
637
|
async loadResolverForFile(resolverFile) {
|
|
@@ -522,14 +640,14 @@ var ResolverService = class {
|
|
|
522
640
|
const result = ResolverSchema.safeParse(resolverModule.default);
|
|
523
641
|
if (result.success) {
|
|
524
642
|
const relativePath = path$1.relative(process.cwd(), resolverFile);
|
|
525
|
-
|
|
643
|
+
logger.log(`Resolver: ${styles.successBright(`"${result.data.name}"`)} loaded from ${styles.path(relativePath)}`);
|
|
526
644
|
this.resolvers[resolverFile] = result.data;
|
|
527
645
|
return result.data;
|
|
528
646
|
}
|
|
529
647
|
} catch (error) {
|
|
530
648
|
const relativePath = path$1.relative(process.cwd(), resolverFile);
|
|
531
|
-
|
|
532
|
-
|
|
649
|
+
logger.error(`${styles.error("Failed to load resolver from")} ${styles.errorBright(relativePath)}`);
|
|
650
|
+
logger.error(String(error));
|
|
533
651
|
throw error;
|
|
534
652
|
}
|
|
535
653
|
}
|
|
@@ -11009,7 +11127,7 @@ var require_arrow_body_style = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
11009
11127
|
* @param {ASTNode} node The arrow function node.
|
|
11010
11128
|
* @returns {void}
|
|
11011
11129
|
*/
|
|
11012
|
-
function validate$
|
|
11130
|
+
function validate$2(node) {
|
|
11013
11131
|
const arrowBody = node.body;
|
|
11014
11132
|
if (arrowBody.type === "BlockStatement") {
|
|
11015
11133
|
const blockBody = arrowBody.body;
|
|
@@ -11087,7 +11205,7 @@ var require_arrow_body_style = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
11087
11205
|
};
|
|
11088
11206
|
},
|
|
11089
11207
|
"ArrowFunctionExpression:exit"(node) {
|
|
11090
|
-
validate$
|
|
11208
|
+
validate$2(node);
|
|
11091
11209
|
funcInfo = funcInfo.upper;
|
|
11092
11210
|
}
|
|
11093
11211
|
};
|
|
@@ -25023,7 +25141,7 @@ var require_no_await_in_loop = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
25023
25141
|
* @param {ASTNode} awaitNode An AwaitExpression or ForOfStatement node to validate.
|
|
25024
25142
|
* @returns {void}
|
|
25025
25143
|
*/
|
|
25026
|
-
function validate$
|
|
25144
|
+
function validate$2(awaitNode) {
|
|
25027
25145
|
if (awaitNode.type === "VariableDeclaration" && awaitNode.kind !== "await using") return;
|
|
25028
25146
|
if (awaitNode.type === "ForOfStatement" && !awaitNode.await) return;
|
|
25029
25147
|
let node = awaitNode;
|
|
@@ -25041,9 +25159,9 @@ var require_no_await_in_loop = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
25041
25159
|
}
|
|
25042
25160
|
}
|
|
25043
25161
|
return {
|
|
25044
|
-
AwaitExpression: validate$
|
|
25045
|
-
ForOfStatement: validate$
|
|
25046
|
-
VariableDeclaration: validate$
|
|
25162
|
+
AwaitExpression: validate$2,
|
|
25163
|
+
ForOfStatement: validate$2,
|
|
25164
|
+
VariableDeclaration: validate$2
|
|
25047
25165
|
};
|
|
25048
25166
|
}
|
|
25049
25167
|
};
|
|
@@ -62137,7 +62255,7 @@ var require_source_code$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/esl
|
|
|
62137
62255
|
* @returns {void}
|
|
62138
62256
|
* @private
|
|
62139
62257
|
*/
|
|
62140
|
-
function validate$
|
|
62258
|
+
function validate$1(ast$1) {
|
|
62141
62259
|
if (!ast$1) throw new TypeError(`Unexpected empty AST. (${ast$1})`);
|
|
62142
62260
|
if (!ast$1.tokens) throw new TypeError("AST is missing the tokens array.");
|
|
62143
62261
|
if (!ast$1.comments) throw new TypeError("AST is missing the comments array.");
|
|
@@ -62361,7 +62479,7 @@ var require_source_code$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/esl
|
|
|
62361
62479
|
scopeManager = textOrConfig.scopeManager;
|
|
62362
62480
|
visitorKeys = textOrConfig.visitorKeys;
|
|
62363
62481
|
}
|
|
62364
|
-
validate$
|
|
62482
|
+
validate$1(ast$1);
|
|
62365
62483
|
super(ast$1.tokens, ast$1.comments);
|
|
62366
62484
|
/**
|
|
62367
62485
|
* General purpose caching for the class.
|
|
@@ -68077,9 +68195,9 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/c
|
|
|
68077
68195
|
endCompiling.call(this, schema, root$1, baseId);
|
|
68078
68196
|
}
|
|
68079
68197
|
function callValidate() {
|
|
68080
|
-
var validate$
|
|
68081
|
-
var result = validate$
|
|
68082
|
-
callValidate.errors = validate$
|
|
68198
|
+
var validate$2 = compilation.validate;
|
|
68199
|
+
var result = validate$2.apply(this, arguments);
|
|
68200
|
+
callValidate.errors = validate$2.errors;
|
|
68083
68201
|
return result;
|
|
68084
68202
|
}
|
|
68085
68203
|
function localCompile(_schema, _root, localRefs$1, baseId$1) {
|
|
@@ -68111,26 +68229,26 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/c
|
|
|
68111
68229
|
});
|
|
68112
68230
|
sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode) + vars(defaults, defaultCode) + vars(customRules, customRuleCode$1) + sourceCode;
|
|
68113
68231
|
if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema);
|
|
68114
|
-
var validate$
|
|
68232
|
+
var validate$2;
|
|
68115
68233
|
try {
|
|
68116
|
-
validate$
|
|
68117
|
-
refVal[0] = validate$
|
|
68234
|
+
validate$2 = new Function("self", "RULES", "formats", "root", "refVal", "defaults", "customRules", "equal", "ucs2length", "ValidationError", sourceCode)(self$1, RULES, formats$2, root$1, refVal, defaults, customRules, equal$1, ucs2length, ValidationError);
|
|
68235
|
+
refVal[0] = validate$2;
|
|
68118
68236
|
} catch (e) {
|
|
68119
68237
|
self$1.logger.error("Error compiling schema, function code:", sourceCode);
|
|
68120
68238
|
throw e;
|
|
68121
68239
|
}
|
|
68122
|
-
validate$
|
|
68123
|
-
validate$
|
|
68124
|
-
validate$
|
|
68125
|
-
validate$
|
|
68126
|
-
validate$
|
|
68127
|
-
if ($async) validate$
|
|
68128
|
-
if (opts.sourceCode === true) validate$
|
|
68240
|
+
validate$2.schema = _schema;
|
|
68241
|
+
validate$2.errors = null;
|
|
68242
|
+
validate$2.refs = refs;
|
|
68243
|
+
validate$2.refVal = refVal;
|
|
68244
|
+
validate$2.root = isRoot ? validate$2 : _root;
|
|
68245
|
+
if ($async) validate$2.$async = true;
|
|
68246
|
+
if (opts.sourceCode === true) validate$2.source = {
|
|
68129
68247
|
code: sourceCode,
|
|
68130
68248
|
patterns,
|
|
68131
68249
|
defaults
|
|
68132
68250
|
};
|
|
68133
|
-
return validate$
|
|
68251
|
+
return validate$2;
|
|
68134
68252
|
}
|
|
68135
68253
|
function resolveRef(baseId$1, ref$1, isRoot) {
|
|
68136
68254
|
ref$1 = resolve$6.url(baseId$1, ref$1);
|
|
@@ -68224,22 +68342,22 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/c
|
|
|
68224
68342
|
}
|
|
68225
68343
|
}
|
|
68226
68344
|
var compile$2 = rule.definition.compile, inline = rule.definition.inline, macro = rule.definition.macro;
|
|
68227
|
-
var validate$
|
|
68228
|
-
if (compile$2) validate$
|
|
68345
|
+
var validate$2;
|
|
68346
|
+
if (compile$2) validate$2 = compile$2.call(self$1, schema$1, parentSchema, it$1);
|
|
68229
68347
|
else if (macro) {
|
|
68230
|
-
validate$
|
|
68231
|
-
if (opts.validateSchema !== false) self$1.validateSchema(validate$
|
|
68232
|
-
} else if (inline) validate$
|
|
68348
|
+
validate$2 = macro.call(self$1, schema$1, parentSchema, it$1);
|
|
68349
|
+
if (opts.validateSchema !== false) self$1.validateSchema(validate$2, true);
|
|
68350
|
+
} else if (inline) validate$2 = inline.call(self$1, it$1, rule.keyword, schema$1, parentSchema);
|
|
68233
68351
|
else {
|
|
68234
|
-
validate$
|
|
68235
|
-
if (!validate$
|
|
68352
|
+
validate$2 = rule.definition.validate;
|
|
68353
|
+
if (!validate$2) return;
|
|
68236
68354
|
}
|
|
68237
|
-
if (validate$
|
|
68355
|
+
if (validate$2 === void 0) throw new Error("custom keyword \"" + rule.keyword + "\"failed to compile");
|
|
68238
68356
|
var index$1 = customRules.length;
|
|
68239
|
-
customRules[index$1] = validate$
|
|
68357
|
+
customRules[index$1] = validate$2;
|
|
68240
68358
|
return {
|
|
68241
68359
|
code: "customRule" + index$1,
|
|
68242
|
-
validate: validate$
|
|
68360
|
+
validate: validate$2
|
|
68243
68361
|
};
|
|
68244
68362
|
}
|
|
68245
68363
|
}
|
|
@@ -71012,7 +71130,7 @@ var require_data = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/refs
|
|
|
71012
71130
|
var require_ajv$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/ajv.js": ((exports, module) => {
|
|
71013
71131
|
var compileSchema = require_compile(), resolve$5 = require_resolve(), Cache = require_cache$2(), SchemaObject = require_schema_obj(), stableStringify = require_fast_json_stable_stringify(), formats = require_formats(), rules = require_rules$1(), $dataMetaSchema = require_data$1(), util$2 = require_util();
|
|
71014
71132
|
module.exports = Ajv$2;
|
|
71015
|
-
Ajv$2.prototype.validate = validate
|
|
71133
|
+
Ajv$2.prototype.validate = validate;
|
|
71016
71134
|
Ajv$2.prototype.compile = compile;
|
|
71017
71135
|
Ajv$2.prototype.addSchema = addSchema;
|
|
71018
71136
|
Ajv$2.prototype.addMetaSchema = addMetaSchema;
|
|
@@ -71079,7 +71197,7 @@ var require_ajv$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/ajv
|
|
|
71079
71197
|
* @param {Any} data to be validated
|
|
71080
71198
|
* @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
|
|
71081
71199
|
*/
|
|
71082
|
-
function validate
|
|
71200
|
+
function validate(schemaKeyRef, data$1) {
|
|
71083
71201
|
var v;
|
|
71084
71202
|
if (typeof schemaKeyRef == "string") {
|
|
71085
71203
|
v = this.getSchema(schemaKeyRef);
|
|
@@ -71401,16 +71519,16 @@ var require_ajv$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/ajv/lib/ajv
|
|
|
71401
71519
|
return metaOpts;
|
|
71402
71520
|
}
|
|
71403
71521
|
function setLogger(self$1) {
|
|
71404
|
-
var logger = self$1._opts.logger;
|
|
71405
|
-
if (logger === false) self$1.logger = {
|
|
71522
|
+
var logger$1 = self$1._opts.logger;
|
|
71523
|
+
if (logger$1 === false) self$1.logger = {
|
|
71406
71524
|
log: noop$2,
|
|
71407
71525
|
warn: noop$2,
|
|
71408
71526
|
error: noop$2
|
|
71409
71527
|
};
|
|
71410
71528
|
else {
|
|
71411
|
-
if (logger === void 0) logger = console;
|
|
71412
|
-
if (!(typeof logger == "object" && logger.log && logger.warn && logger.error)) throw new Error("logger must implement log, warn and error methods");
|
|
71413
|
-
self$1.logger = logger;
|
|
71529
|
+
if (logger$1 === void 0) logger$1 = console;
|
|
71530
|
+
if (!(typeof logger$1 == "object" && logger$1.log && logger$1.warn && logger$1.error)) throw new Error("logger must implement log, warn and error methods");
|
|
71531
|
+
self$1.logger = logger$1;
|
|
71414
71532
|
}
|
|
71415
71533
|
}
|
|
71416
71534
|
function noop$2() {}
|
|
@@ -89224,10 +89342,10 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
89224
89342
|
});
|
|
89225
89343
|
}
|
|
89226
89344
|
if (flattenedConfigs.some(({ config: { options: { ignore: ignore$4, only } } }) => shouldIgnore(context, ignore$4, only, dirname$2))) return null;
|
|
89227
|
-
const chain = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
89345
|
+
const chain = emptyChain(), logger$1 = createLogger(input, context, baseLogger);
|
|
89228
89346
|
for (const { config, index: index$1, envName } of flattenedConfigs) {
|
|
89229
89347
|
if (!(yield* mergeExtendsChain(chain, config.options, dirname$2, context, files, baseLogger))) return null;
|
|
89230
|
-
logger(config, index$1, envName), yield* mergeChainOpts(chain, config);
|
|
89348
|
+
logger$1(config, index$1, envName), yield* mergeChainOpts(chain, config);
|
|
89231
89349
|
}
|
|
89232
89350
|
return chain;
|
|
89233
89351
|
};
|
|
@@ -111553,10 +111671,10 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
111553
111671
|
const node = parent$1[key$1];
|
|
111554
111672
|
parent$1[key$1] = value$1, "Identifier" !== node.type && "Placeholder" !== node.type || (node.typeAnnotation && (value$1.typeAnnotation = node.typeAnnotation), node.optional && (value$1.optional = node.optional), node.decorators && (value$1.decorators = node.decorators));
|
|
111555
111673
|
}
|
|
111556
|
-
if (void 0 === index$1) validate$
|
|
111674
|
+
if (void 0 === index$1) validate$2(parent, key, replacement), set$1(parent, key, replacement);
|
|
111557
111675
|
else {
|
|
111558
111676
|
const items = parent[key].slice();
|
|
111559
|
-
"statement" === placeholder$2.type || "param" === placeholder$2.type ? null == replacement ? items.splice(index$1, 1) : Array.isArray(replacement) ? items.splice(index$1, 1, ...replacement) : set$1(items, index$1, replacement) : set$1(items, index$1, replacement), validate$
|
|
111677
|
+
"statement" === placeholder$2.type || "param" === placeholder$2.type ? null == replacement ? items.splice(index$1, 1) : Array.isArray(replacement) ? items.splice(index$1, 1, ...replacement) : set$1(items, index$1, replacement) : set$1(items, index$1, replacement), validate$2(parent, key, items), parent[key] = items;
|
|
111560
111678
|
}
|
|
111561
111679
|
})(placeholder$1, ast$1, null != (_ref = replacements && replacements[placeholder$1.name]) ? _ref : null);
|
|
111562
111680
|
} catch (e) {
|
|
@@ -111564,7 +111682,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
111564
111682
|
}
|
|
111565
111683
|
}), ast$1;
|
|
111566
111684
|
};
|
|
111567
|
-
const { blockStatement, cloneNode, emptyStatement, expressionStatement, identifier, isStatement, isStringLiteral: isStringLiteral$3, stringLiteral, validate: validate$
|
|
111685
|
+
const { blockStatement, cloneNode, emptyStatement, expressionStatement, identifier, isStatement, isStringLiteral: isStringLiteral$3, stringLiteral, validate: validate$2 } = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/index.js");
|
|
111568
111686
|
},
|
|
111569
111687
|
"./node_modules/.pnpm/@babel+template@7.27.2/node_modules/@babel/template/lib/string.js": (__unused_webpack_module, exports$1, __webpack_require__$1) => {
|
|
111570
111688
|
Object.defineProperty(exports$1, "__esModule", { value: !0 }), exports$1.default = function(formatter, code, opts) {
|
|
@@ -112619,7 +112737,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
112619
112737
|
"./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/index.js": (__unused_webpack_module, exports$1, __webpack_require__$1) => {
|
|
112620
112738
|
Object.defineProperty(exports$1, "__esModule", { value: !0 }), exports$1.default = exports$1.SHOULD_STOP = exports$1.SHOULD_SKIP = exports$1.REMOVED = void 0;
|
|
112621
112739
|
var virtualTypes = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/lib/virtual-types.js"), _debug = __webpack_require__$1("./node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"), _index = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/index.js"), _index2 = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/scope/index.js"), _t = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/index.js"), t = _t, cache$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/cache.js"), _generator = __webpack_require__$1("./node_modules/.pnpm/@babel+generator@7.28.0/node_modules/@babel/generator/lib/index.js"), NodePath_ancestry = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/ancestry.js"), NodePath_inference = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/inference/index.js"), NodePath_replacement = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/replacement.js"), NodePath_evaluation = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/evaluation.js"), NodePath_conversion = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/conversion.js"), NodePath_introspection = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/introspection.js"), _context = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/context.js"), NodePath_context = _context, NodePath_removal = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/removal.js"), NodePath_modification = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/modification.js"), NodePath_family = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/family.js"), NodePath_comments = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/comments.js"), NodePath_virtual_types_validator = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js");
|
|
112622
|
-
const { validate: validate$
|
|
112740
|
+
const { validate: validate$2 } = _t, debug$20 = _debug("babel"), NodePath_Final = (exports$1.REMOVED = 1, exports$1.SHOULD_STOP = 2, exports$1.SHOULD_SKIP = 4, exports$1.default = class NodePath {
|
|
112623
112741
|
constructor(hub, parent) {
|
|
112624
112742
|
this.contexts = [], this.state = null, this.opts = null, this._traverseFlags = 0, this.skipKeys = null, this.parentPath = null, this.container = null, this.listKey = null, this.key = null, this.node = null, this.type = null, this._store = null, this.parent = parent, this.hub = hub, this.data = null, this.context = null, this.scope = null;
|
|
112625
112743
|
}
|
|
@@ -112668,7 +112786,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
112668
112786
|
(0, _index.default)(this.node, visitor$1, this.scope, state, this);
|
|
112669
112787
|
}
|
|
112670
112788
|
set(key, node) {
|
|
112671
|
-
validate$
|
|
112789
|
+
validate$2(this.node, key, node), this.node[key] = node;
|
|
112672
112790
|
}
|
|
112673
112791
|
getPathLocation() {
|
|
112674
112792
|
const parts = [];
|
|
@@ -113658,11 +113776,11 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
113658
113776
|
return _index.default.removeProperties(expressionAST), this.replaceWith(expressionAST);
|
|
113659
113777
|
};
|
|
113660
113778
|
var _codeFrame = __webpack_require__$1("./stubs/babel-codeframe.mjs"), _index = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/index.js"), _index2 = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/index.js"), _cache = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/cache.js"), _modification = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/modification.js"), _parser = __webpack_require__$1("./node_modules/.pnpm/@babel+parser@7.28.0/node_modules/@babel/parser/lib/index.js"), _t = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/index.js"), _context = __webpack_require__$1("./node_modules/.pnpm/@babel+traverse@7.28.0/node_modules/@babel/traverse/lib/path/context.js");
|
|
113661
|
-
const { FUNCTION_TYPES, arrowFunctionExpression, assignmentExpression, awaitExpression, blockStatement, buildUndefinedNode, callExpression, cloneNode, conditionalExpression, expressionStatement, getBindingIdentifiers, identifier, inheritLeadingComments, inheritTrailingComments, inheritsComments, isBlockStatement, isEmptyStatement, isExpression, isExpressionStatement, isIfStatement, isProgram, isStatement, isVariableDeclaration, removeComments, returnStatement, sequenceExpression, validate: validate$
|
|
113779
|
+
const { FUNCTION_TYPES, arrowFunctionExpression, assignmentExpression, awaitExpression, blockStatement, buildUndefinedNode, callExpression, cloneNode, conditionalExpression, expressionStatement, getBindingIdentifiers, identifier, inheritLeadingComments, inheritTrailingComments, inheritsComments, isBlockStatement, isEmptyStatement, isExpression, isExpressionStatement, isIfStatement, isProgram, isStatement, isVariableDeclaration, removeComments, returnStatement, sequenceExpression, validate: validate$2, yieldExpression } = _t;
|
|
113662
113780
|
function _replaceWith(node) {
|
|
113663
113781
|
var _getCachedPaths2;
|
|
113664
113782
|
if (!this.container) throw new ReferenceError("Container is falsy");
|
|
113665
|
-
this.inList ? validate$
|
|
113783
|
+
this.inList ? validate$2(this.parent, this.key, [node]) : validate$2(this.parent, this.key, node), this.debug(`Replace with ${null == node ? void 0 : node.type}`), null == (_getCachedPaths2 = (0, _cache.getCachedPaths)(this)) || _getCachedPaths2.set(node, this).delete(this.node), this.node = this.container[this.key] = node;
|
|
113666
113784
|
}
|
|
113667
113785
|
function gatherSequenceExpressions(nodes, declars) {
|
|
113668
113786
|
const exprs = [];
|
|
@@ -115253,19 +115371,19 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115253
115371
|
type: "ArrayExpression",
|
|
115254
115372
|
elements
|
|
115255
115373
|
}, defs = NODE_FIELDS.ArrayExpression;
|
|
115256
|
-
return validate$
|
|
115374
|
+
return validate$2(defs.elements, node, "elements", elements, 1), node;
|
|
115257
115375
|
}, exports$1.arrayPattern = function(elements) {
|
|
115258
115376
|
const node = {
|
|
115259
115377
|
type: "ArrayPattern",
|
|
115260
115378
|
elements
|
|
115261
115379
|
}, defs = NODE_FIELDS.ArrayPattern;
|
|
115262
|
-
return validate$
|
|
115380
|
+
return validate$2(defs.elements, node, "elements", elements, 1), node;
|
|
115263
115381
|
}, exports$1.arrayTypeAnnotation = function(elementType) {
|
|
115264
115382
|
const node = {
|
|
115265
115383
|
type: "ArrayTypeAnnotation",
|
|
115266
115384
|
elementType
|
|
115267
115385
|
}, defs = NODE_FIELDS.ArrayTypeAnnotation;
|
|
115268
|
-
return validate$
|
|
115386
|
+
return validate$2(defs.elementType, node, "elementType", elementType, 1), node;
|
|
115269
115387
|
}, exports$1.arrowFunctionExpression = function(params, body, async = !1) {
|
|
115270
115388
|
const node = {
|
|
115271
115389
|
type: "ArrowFunctionExpression",
|
|
@@ -115274,7 +115392,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115274
115392
|
async,
|
|
115275
115393
|
expression: null
|
|
115276
115394
|
}, defs = NODE_FIELDS.ArrowFunctionExpression;
|
|
115277
|
-
return validate$
|
|
115395
|
+
return validate$2(defs.params, node, "params", params, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.async, node, "async", async), node;
|
|
115278
115396
|
}, exports$1.assignmentExpression = function(operator, left, right) {
|
|
115279
115397
|
const node = {
|
|
115280
115398
|
type: "AssignmentExpression",
|
|
@@ -115282,27 +115400,27 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115282
115400
|
left,
|
|
115283
115401
|
right
|
|
115284
115402
|
}, defs = NODE_FIELDS.AssignmentExpression;
|
|
115285
|
-
return validate$
|
|
115403
|
+
return validate$2(defs.operator, node, "operator", operator), validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
115286
115404
|
}, exports$1.assignmentPattern = function(left, right) {
|
|
115287
115405
|
const node = {
|
|
115288
115406
|
type: "AssignmentPattern",
|
|
115289
115407
|
left,
|
|
115290
115408
|
right
|
|
115291
115409
|
}, defs = NODE_FIELDS.AssignmentPattern;
|
|
115292
|
-
return validate$
|
|
115410
|
+
return validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
115293
115411
|
}, exports$1.awaitExpression = function(argument) {
|
|
115294
115412
|
const node = {
|
|
115295
115413
|
type: "AwaitExpression",
|
|
115296
115414
|
argument
|
|
115297
115415
|
}, defs = NODE_FIELDS.AwaitExpression;
|
|
115298
|
-
return validate$
|
|
115416
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
115299
115417
|
}, exports$1.bigIntLiteral = function(value$1) {
|
|
115300
115418
|
"bigint" == typeof value$1 && (value$1 = value$1.toString());
|
|
115301
115419
|
const node = {
|
|
115302
115420
|
type: "BigIntLiteral",
|
|
115303
115421
|
value: value$1
|
|
115304
115422
|
}, defs = NODE_FIELDS.BigIntLiteral;
|
|
115305
|
-
return validate$
|
|
115423
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115306
115424
|
}, exports$1.binaryExpression = function(operator, left, right) {
|
|
115307
115425
|
const node = {
|
|
115308
115426
|
type: "BinaryExpression",
|
|
@@ -115310,33 +115428,33 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115310
115428
|
left,
|
|
115311
115429
|
right
|
|
115312
115430
|
}, defs = NODE_FIELDS.BinaryExpression;
|
|
115313
|
-
return validate$
|
|
115431
|
+
return validate$2(defs.operator, node, "operator", operator), validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
115314
115432
|
}, exports$1.bindExpression = function(object$1, callee) {
|
|
115315
115433
|
const node = {
|
|
115316
115434
|
type: "BindExpression",
|
|
115317
115435
|
object: object$1,
|
|
115318
115436
|
callee
|
|
115319
115437
|
}, defs = NODE_FIELDS.BindExpression;
|
|
115320
|
-
return validate$
|
|
115438
|
+
return validate$2(defs.object, node, "object", object$1, 1), validate$2(defs.callee, node, "callee", callee, 1), node;
|
|
115321
115439
|
}, exports$1.blockStatement = function(body, directives = []) {
|
|
115322
115440
|
const node = {
|
|
115323
115441
|
type: "BlockStatement",
|
|
115324
115442
|
body,
|
|
115325
115443
|
directives
|
|
115326
115444
|
}, defs = NODE_FIELDS.BlockStatement;
|
|
115327
|
-
return validate$
|
|
115445
|
+
return validate$2(defs.body, node, "body", body, 1), validate$2(defs.directives, node, "directives", directives, 1), node;
|
|
115328
115446
|
}, exports$1.booleanLiteral = function(value$1) {
|
|
115329
115447
|
const node = {
|
|
115330
115448
|
type: "BooleanLiteral",
|
|
115331
115449
|
value: value$1
|
|
115332
115450
|
}, defs = NODE_FIELDS.BooleanLiteral;
|
|
115333
|
-
return validate$
|
|
115451
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115334
115452
|
}, exports$1.booleanLiteralTypeAnnotation = function(value$1) {
|
|
115335
115453
|
const node = {
|
|
115336
115454
|
type: "BooleanLiteralTypeAnnotation",
|
|
115337
115455
|
value: value$1
|
|
115338
115456
|
}, defs = NODE_FIELDS.BooleanLiteralTypeAnnotation;
|
|
115339
|
-
return validate$
|
|
115457
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115340
115458
|
}, exports$1.booleanTypeAnnotation = function() {
|
|
115341
115459
|
return { type: "BooleanTypeAnnotation" };
|
|
115342
115460
|
}, exports$1.breakStatement = function(label = null) {
|
|
@@ -115344,21 +115462,21 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115344
115462
|
type: "BreakStatement",
|
|
115345
115463
|
label
|
|
115346
115464
|
}, defs = NODE_FIELDS.BreakStatement;
|
|
115347
|
-
return validate$
|
|
115465
|
+
return validate$2(defs.label, node, "label", label, 1), node;
|
|
115348
115466
|
}, exports$1.callExpression = function(callee, _arguments) {
|
|
115349
115467
|
const node = {
|
|
115350
115468
|
type: "CallExpression",
|
|
115351
115469
|
callee,
|
|
115352
115470
|
arguments: _arguments
|
|
115353
115471
|
}, defs = NODE_FIELDS.CallExpression;
|
|
115354
|
-
return validate$
|
|
115472
|
+
return validate$2(defs.callee, node, "callee", callee, 1), validate$2(defs.arguments, node, "arguments", _arguments, 1), node;
|
|
115355
115473
|
}, exports$1.catchClause = function(param = null, body) {
|
|
115356
115474
|
const node = {
|
|
115357
115475
|
type: "CatchClause",
|
|
115358
115476
|
param,
|
|
115359
115477
|
body
|
|
115360
115478
|
}, defs = NODE_FIELDS.CatchClause;
|
|
115361
|
-
return validate$
|
|
115479
|
+
return validate$2(defs.param, node, "param", param, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115362
115480
|
}, exports$1.classAccessorProperty = function(key, value$1 = null, typeAnnotation = null, decorators = null, computed = !1, _static = !1) {
|
|
115363
115481
|
const node = {
|
|
115364
115482
|
type: "ClassAccessorProperty",
|
|
@@ -115369,13 +115487,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115369
115487
|
computed,
|
|
115370
115488
|
static: _static
|
|
115371
115489
|
}, defs = NODE_FIELDS.ClassAccessorProperty;
|
|
115372
|
-
return validate$
|
|
115490
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate$2(defs.decorators, node, "decorators", decorators, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.static, node, "static", _static), node;
|
|
115373
115491
|
}, exports$1.classBody = function(body) {
|
|
115374
115492
|
const node = {
|
|
115375
115493
|
type: "ClassBody",
|
|
115376
115494
|
body
|
|
115377
115495
|
}, defs = NODE_FIELDS.ClassBody;
|
|
115378
|
-
return validate$
|
|
115496
|
+
return validate$2(defs.body, node, "body", body, 1), node;
|
|
115379
115497
|
}, exports$1.classDeclaration = function(id$1 = null, superClass = null, body, decorators = null) {
|
|
115380
115498
|
const node = {
|
|
115381
115499
|
type: "ClassDeclaration",
|
|
@@ -115384,7 +115502,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115384
115502
|
body,
|
|
115385
115503
|
decorators
|
|
115386
115504
|
}, defs = NODE_FIELDS.ClassDeclaration;
|
|
115387
|
-
return validate$
|
|
115505
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.superClass, node, "superClass", superClass, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.decorators, node, "decorators", decorators, 1), node;
|
|
115388
115506
|
}, exports$1.classExpression = function(id$1 = null, superClass = null, body, decorators = null) {
|
|
115389
115507
|
const node = {
|
|
115390
115508
|
type: "ClassExpression",
|
|
@@ -115393,14 +115511,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115393
115511
|
body,
|
|
115394
115512
|
decorators
|
|
115395
115513
|
}, defs = NODE_FIELDS.ClassExpression;
|
|
115396
|
-
return validate$
|
|
115514
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.superClass, node, "superClass", superClass, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.decorators, node, "decorators", decorators, 1), node;
|
|
115397
115515
|
}, exports$1.classImplements = function(id$1, typeParameters = null) {
|
|
115398
115516
|
const node = {
|
|
115399
115517
|
type: "ClassImplements",
|
|
115400
115518
|
id: id$1,
|
|
115401
115519
|
typeParameters
|
|
115402
115520
|
}, defs = NODE_FIELDS.ClassImplements;
|
|
115403
|
-
return validate$
|
|
115521
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
115404
115522
|
}, exports$1.classMethod = function(kind = "method", key, params, body, computed = !1, _static = !1, generator = !1, async = !1) {
|
|
115405
115523
|
const node = {
|
|
115406
115524
|
type: "ClassMethod",
|
|
@@ -115413,7 +115531,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115413
115531
|
generator,
|
|
115414
115532
|
async
|
|
115415
115533
|
}, defs = NODE_FIELDS.ClassMethod;
|
|
115416
|
-
return validate$
|
|
115534
|
+
return validate$2(defs.kind, node, "kind", kind), validate$2(defs.key, node, "key", key, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.static, node, "static", _static), validate$2(defs.generator, node, "generator", generator), validate$2(defs.async, node, "async", async), node;
|
|
115417
115535
|
}, exports$1.classPrivateMethod = function(kind = "method", key, params, body, _static = !1) {
|
|
115418
115536
|
const node = {
|
|
115419
115537
|
type: "ClassPrivateMethod",
|
|
@@ -115423,7 +115541,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115423
115541
|
body,
|
|
115424
115542
|
static: _static
|
|
115425
115543
|
}, defs = NODE_FIELDS.ClassPrivateMethod;
|
|
115426
|
-
return validate$
|
|
115544
|
+
return validate$2(defs.kind, node, "kind", kind), validate$2(defs.key, node, "key", key, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.static, node, "static", _static), node;
|
|
115427
115545
|
}, exports$1.classPrivateProperty = function(key, value$1 = null, decorators = null, _static = !1) {
|
|
115428
115546
|
const node = {
|
|
115429
115547
|
type: "ClassPrivateProperty",
|
|
@@ -115432,7 +115550,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115432
115550
|
decorators,
|
|
115433
115551
|
static: _static
|
|
115434
115552
|
}, defs = NODE_FIELDS.ClassPrivateProperty;
|
|
115435
|
-
return validate$
|
|
115553
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.decorators, node, "decorators", decorators, 1), validate$2(defs.static, node, "static", _static), node;
|
|
115436
115554
|
}, exports$1.classProperty = function(key, value$1 = null, typeAnnotation = null, decorators = null, computed = !1, _static = !1) {
|
|
115437
115555
|
const node = {
|
|
115438
115556
|
type: "ClassProperty",
|
|
@@ -115443,7 +115561,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115443
115561
|
computed,
|
|
115444
115562
|
static: _static
|
|
115445
115563
|
}, defs = NODE_FIELDS.ClassProperty;
|
|
115446
|
-
return validate$
|
|
115564
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate$2(defs.decorators, node, "decorators", decorators, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.static, node, "static", _static), node;
|
|
115447
115565
|
}, exports$1.conditionalExpression = function(test, consequent, alternate) {
|
|
115448
115566
|
const node = {
|
|
115449
115567
|
type: "ConditionalExpression",
|
|
@@ -115451,13 +115569,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115451
115569
|
consequent,
|
|
115452
115570
|
alternate
|
|
115453
115571
|
}, defs = NODE_FIELDS.ConditionalExpression;
|
|
115454
|
-
return validate$
|
|
115572
|
+
return validate$2(defs.test, node, "test", test, 1), validate$2(defs.consequent, node, "consequent", consequent, 1), validate$2(defs.alternate, node, "alternate", alternate, 1), node;
|
|
115455
115573
|
}, exports$1.continueStatement = function(label = null) {
|
|
115456
115574
|
const node = {
|
|
115457
115575
|
type: "ContinueStatement",
|
|
115458
115576
|
label
|
|
115459
115577
|
}, defs = NODE_FIELDS.ContinueStatement;
|
|
115460
|
-
return validate$
|
|
115578
|
+
return validate$2(defs.label, node, "label", label, 1), node;
|
|
115461
115579
|
}, exports$1.debuggerStatement = function() {
|
|
115462
115580
|
return { type: "DebuggerStatement" };
|
|
115463
115581
|
}, exports$1.decimalLiteral = function(value$1) {
|
|
@@ -115465,7 +115583,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115465
115583
|
type: "DecimalLiteral",
|
|
115466
115584
|
value: value$1
|
|
115467
115585
|
}, defs = NODE_FIELDS.DecimalLiteral;
|
|
115468
|
-
return validate$
|
|
115586
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115469
115587
|
}, exports$1.declareClass = function(id$1, typeParameters = null, _extends = null, body) {
|
|
115470
115588
|
const node = {
|
|
115471
115589
|
type: "DeclareClass",
|
|
@@ -115474,14 +115592,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115474
115592
|
extends: _extends,
|
|
115475
115593
|
body
|
|
115476
115594
|
}, defs = NODE_FIELDS.DeclareClass;
|
|
115477
|
-
return validate$
|
|
115595
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.extends, node, "extends", _extends, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115478
115596
|
}, exports$1.declareExportAllDeclaration = function(source, attributes = null) {
|
|
115479
115597
|
const node = {
|
|
115480
115598
|
type: "DeclareExportAllDeclaration",
|
|
115481
115599
|
source,
|
|
115482
115600
|
attributes
|
|
115483
115601
|
}, defs = NODE_FIELDS.DeclareExportAllDeclaration;
|
|
115484
|
-
return validate$
|
|
115602
|
+
return validate$2(defs.source, node, "source", source, 1), validate$2(defs.attributes, node, "attributes", attributes, 1), node;
|
|
115485
115603
|
}, exports$1.declareExportDeclaration = function(declaration = null, specifiers = null, source = null, attributes = null) {
|
|
115486
115604
|
const node = {
|
|
115487
115605
|
type: "DeclareExportDeclaration",
|
|
@@ -115490,13 +115608,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115490
115608
|
source,
|
|
115491
115609
|
attributes
|
|
115492
115610
|
}, defs = NODE_FIELDS.DeclareExportDeclaration;
|
|
115493
|
-
return validate$
|
|
115611
|
+
return validate$2(defs.declaration, node, "declaration", declaration, 1), validate$2(defs.specifiers, node, "specifiers", specifiers, 1), validate$2(defs.source, node, "source", source, 1), validate$2(defs.attributes, node, "attributes", attributes, 1), node;
|
|
115494
115612
|
}, exports$1.declareFunction = function(id$1) {
|
|
115495
115613
|
const node = {
|
|
115496
115614
|
type: "DeclareFunction",
|
|
115497
115615
|
id: id$1
|
|
115498
115616
|
}, defs = NODE_FIELDS.DeclareFunction;
|
|
115499
|
-
return validate$
|
|
115617
|
+
return validate$2(defs.id, node, "id", id$1, 1), node;
|
|
115500
115618
|
}, exports$1.declareInterface = function(id$1, typeParameters = null, _extends = null, body) {
|
|
115501
115619
|
const node = {
|
|
115502
115620
|
type: "DeclareInterface",
|
|
@@ -115505,7 +115623,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115505
115623
|
extends: _extends,
|
|
115506
115624
|
body
|
|
115507
115625
|
}, defs = NODE_FIELDS.DeclareInterface;
|
|
115508
|
-
return validate$
|
|
115626
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.extends, node, "extends", _extends, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115509
115627
|
}, exports$1.declareModule = function(id$1, body, kind = null) {
|
|
115510
115628
|
const node = {
|
|
115511
115629
|
type: "DeclareModule",
|
|
@@ -115513,13 +115631,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115513
115631
|
body,
|
|
115514
115632
|
kind
|
|
115515
115633
|
}, defs = NODE_FIELDS.DeclareModule;
|
|
115516
|
-
return validate$
|
|
115634
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.kind, node, "kind", kind), node;
|
|
115517
115635
|
}, exports$1.declareModuleExports = function(typeAnnotation) {
|
|
115518
115636
|
const node = {
|
|
115519
115637
|
type: "DeclareModuleExports",
|
|
115520
115638
|
typeAnnotation
|
|
115521
115639
|
}, defs = NODE_FIELDS.DeclareModuleExports;
|
|
115522
|
-
return validate$
|
|
115640
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
115523
115641
|
}, exports$1.declareOpaqueType = function(id$1, typeParameters = null, supertype = null) {
|
|
115524
115642
|
const node = {
|
|
115525
115643
|
type: "DeclareOpaqueType",
|
|
@@ -115527,7 +115645,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115527
115645
|
typeParameters,
|
|
115528
115646
|
supertype
|
|
115529
115647
|
}, defs = NODE_FIELDS.DeclareOpaqueType;
|
|
115530
|
-
return validate$
|
|
115648
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.supertype, node, "supertype", supertype, 1), node;
|
|
115531
115649
|
}, exports$1.declareTypeAlias = function(id$1, typeParameters = null, right) {
|
|
115532
115650
|
const node = {
|
|
115533
115651
|
type: "DeclareTypeAlias",
|
|
@@ -115535,51 +115653,51 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115535
115653
|
typeParameters,
|
|
115536
115654
|
right
|
|
115537
115655
|
}, defs = NODE_FIELDS.DeclareTypeAlias;
|
|
115538
|
-
return validate$
|
|
115656
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
115539
115657
|
}, exports$1.declareVariable = function(id$1) {
|
|
115540
115658
|
const node = {
|
|
115541
115659
|
type: "DeclareVariable",
|
|
115542
115660
|
id: id$1
|
|
115543
115661
|
}, defs = NODE_FIELDS.DeclareVariable;
|
|
115544
|
-
return validate$
|
|
115662
|
+
return validate$2(defs.id, node, "id", id$1, 1), node;
|
|
115545
115663
|
}, exports$1.declaredPredicate = function(value$1) {
|
|
115546
115664
|
const node = {
|
|
115547
115665
|
type: "DeclaredPredicate",
|
|
115548
115666
|
value: value$1
|
|
115549
115667
|
}, defs = NODE_FIELDS.DeclaredPredicate;
|
|
115550
|
-
return validate$
|
|
115668
|
+
return validate$2(defs.value, node, "value", value$1, 1), node;
|
|
115551
115669
|
}, exports$1.decorator = function(expression) {
|
|
115552
115670
|
const node = {
|
|
115553
115671
|
type: "Decorator",
|
|
115554
115672
|
expression
|
|
115555
115673
|
}, defs = NODE_FIELDS.Decorator;
|
|
115556
|
-
return validate$
|
|
115674
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
115557
115675
|
}, exports$1.directive = function(value$1) {
|
|
115558
115676
|
const node = {
|
|
115559
115677
|
type: "Directive",
|
|
115560
115678
|
value: value$1
|
|
115561
115679
|
}, defs = NODE_FIELDS.Directive;
|
|
115562
|
-
return validate$
|
|
115680
|
+
return validate$2(defs.value, node, "value", value$1, 1), node;
|
|
115563
115681
|
}, exports$1.directiveLiteral = function(value$1) {
|
|
115564
115682
|
const node = {
|
|
115565
115683
|
type: "DirectiveLiteral",
|
|
115566
115684
|
value: value$1
|
|
115567
115685
|
}, defs = NODE_FIELDS.DirectiveLiteral;
|
|
115568
|
-
return validate$
|
|
115686
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115569
115687
|
}, exports$1.doExpression = function(body, async = !1) {
|
|
115570
115688
|
const node = {
|
|
115571
115689
|
type: "DoExpression",
|
|
115572
115690
|
body,
|
|
115573
115691
|
async
|
|
115574
115692
|
}, defs = NODE_FIELDS.DoExpression;
|
|
115575
|
-
return validate$
|
|
115693
|
+
return validate$2(defs.body, node, "body", body, 1), validate$2(defs.async, node, "async", async), node;
|
|
115576
115694
|
}, exports$1.doWhileStatement = function(test, body) {
|
|
115577
115695
|
const node = {
|
|
115578
115696
|
type: "DoWhileStatement",
|
|
115579
115697
|
test,
|
|
115580
115698
|
body
|
|
115581
115699
|
}, defs = NODE_FIELDS.DoWhileStatement;
|
|
115582
|
-
return validate$
|
|
115700
|
+
return validate$2(defs.test, node, "test", test, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115583
115701
|
}, exports$1.emptyStatement = function() {
|
|
115584
115702
|
return { type: "EmptyStatement" };
|
|
115585
115703
|
}, exports$1.emptyTypeAnnotation = function() {
|
|
@@ -115591,27 +115709,27 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115591
115709
|
explicitType: null,
|
|
115592
115710
|
hasUnknownMembers: null
|
|
115593
115711
|
}, defs = NODE_FIELDS.EnumBooleanBody;
|
|
115594
|
-
return validate$
|
|
115712
|
+
return validate$2(defs.members, node, "members", members, 1), node;
|
|
115595
115713
|
}, exports$1.enumBooleanMember = function(id$1) {
|
|
115596
115714
|
const node = {
|
|
115597
115715
|
type: "EnumBooleanMember",
|
|
115598
115716
|
id: id$1,
|
|
115599
115717
|
init: null
|
|
115600
115718
|
}, defs = NODE_FIELDS.EnumBooleanMember;
|
|
115601
|
-
return validate$
|
|
115719
|
+
return validate$2(defs.id, node, "id", id$1, 1), node;
|
|
115602
115720
|
}, exports$1.enumDeclaration = function(id$1, body) {
|
|
115603
115721
|
const node = {
|
|
115604
115722
|
type: "EnumDeclaration",
|
|
115605
115723
|
id: id$1,
|
|
115606
115724
|
body
|
|
115607
115725
|
}, defs = NODE_FIELDS.EnumDeclaration;
|
|
115608
|
-
return validate$
|
|
115726
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115609
115727
|
}, exports$1.enumDefaultedMember = function(id$1) {
|
|
115610
115728
|
const node = {
|
|
115611
115729
|
type: "EnumDefaultedMember",
|
|
115612
115730
|
id: id$1
|
|
115613
115731
|
}, defs = NODE_FIELDS.EnumDefaultedMember;
|
|
115614
|
-
return validate$
|
|
115732
|
+
return validate$2(defs.id, node, "id", id$1, 1), node;
|
|
115615
115733
|
}, exports$1.enumNumberBody = function(members) {
|
|
115616
115734
|
const node = {
|
|
115617
115735
|
type: "EnumNumberBody",
|
|
@@ -115619,14 +115737,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115619
115737
|
explicitType: null,
|
|
115620
115738
|
hasUnknownMembers: null
|
|
115621
115739
|
}, defs = NODE_FIELDS.EnumNumberBody;
|
|
115622
|
-
return validate$
|
|
115740
|
+
return validate$2(defs.members, node, "members", members, 1), node;
|
|
115623
115741
|
}, exports$1.enumNumberMember = function(id$1, init$1) {
|
|
115624
115742
|
const node = {
|
|
115625
115743
|
type: "EnumNumberMember",
|
|
115626
115744
|
id: id$1,
|
|
115627
115745
|
init: init$1
|
|
115628
115746
|
}, defs = NODE_FIELDS.EnumNumberMember;
|
|
115629
|
-
return validate$
|
|
115747
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.init, node, "init", init$1, 1), node;
|
|
115630
115748
|
}, exports$1.enumStringBody = function(members) {
|
|
115631
115749
|
const node = {
|
|
115632
115750
|
type: "EnumStringBody",
|
|
@@ -115634,21 +115752,21 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115634
115752
|
explicitType: null,
|
|
115635
115753
|
hasUnknownMembers: null
|
|
115636
115754
|
}, defs = NODE_FIELDS.EnumStringBody;
|
|
115637
|
-
return validate$
|
|
115755
|
+
return validate$2(defs.members, node, "members", members, 1), node;
|
|
115638
115756
|
}, exports$1.enumStringMember = function(id$1, init$1) {
|
|
115639
115757
|
const node = {
|
|
115640
115758
|
type: "EnumStringMember",
|
|
115641
115759
|
id: id$1,
|
|
115642
115760
|
init: init$1
|
|
115643
115761
|
}, defs = NODE_FIELDS.EnumStringMember;
|
|
115644
|
-
return validate$
|
|
115762
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.init, node, "init", init$1, 1), node;
|
|
115645
115763
|
}, exports$1.enumSymbolBody = function(members) {
|
|
115646
115764
|
const node = {
|
|
115647
115765
|
type: "EnumSymbolBody",
|
|
115648
115766
|
members,
|
|
115649
115767
|
hasUnknownMembers: null
|
|
115650
115768
|
}, defs = NODE_FIELDS.EnumSymbolBody;
|
|
115651
|
-
return validate$
|
|
115769
|
+
return validate$2(defs.members, node, "members", members, 1), node;
|
|
115652
115770
|
}, exports$1.existsTypeAnnotation = function() {
|
|
115653
115771
|
return { type: "ExistsTypeAnnotation" };
|
|
115654
115772
|
}, exports$1.exportAllDeclaration = function(source) {
|
|
@@ -115656,19 +115774,19 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115656
115774
|
type: "ExportAllDeclaration",
|
|
115657
115775
|
source
|
|
115658
115776
|
}, defs = NODE_FIELDS.ExportAllDeclaration;
|
|
115659
|
-
return validate$
|
|
115777
|
+
return validate$2(defs.source, node, "source", source, 1), node;
|
|
115660
115778
|
}, exports$1.exportDefaultDeclaration = function(declaration) {
|
|
115661
115779
|
const node = {
|
|
115662
115780
|
type: "ExportDefaultDeclaration",
|
|
115663
115781
|
declaration
|
|
115664
115782
|
}, defs = NODE_FIELDS.ExportDefaultDeclaration;
|
|
115665
|
-
return validate$
|
|
115783
|
+
return validate$2(defs.declaration, node, "declaration", declaration, 1), node;
|
|
115666
115784
|
}, exports$1.exportDefaultSpecifier = function(exported) {
|
|
115667
115785
|
const node = {
|
|
115668
115786
|
type: "ExportDefaultSpecifier",
|
|
115669
115787
|
exported
|
|
115670
115788
|
}, defs = NODE_FIELDS.ExportDefaultSpecifier;
|
|
115671
|
-
return validate$
|
|
115789
|
+
return validate$2(defs.exported, node, "exported", exported, 1), node;
|
|
115672
115790
|
}, exports$1.exportNamedDeclaration = function(declaration = null, specifiers = [], source = null) {
|
|
115673
115791
|
const node = {
|
|
115674
115792
|
type: "ExportNamedDeclaration",
|
|
@@ -115676,26 +115794,26 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115676
115794
|
specifiers,
|
|
115677
115795
|
source
|
|
115678
115796
|
}, defs = NODE_FIELDS.ExportNamedDeclaration;
|
|
115679
|
-
return validate$
|
|
115797
|
+
return validate$2(defs.declaration, node, "declaration", declaration, 1), validate$2(defs.specifiers, node, "specifiers", specifiers, 1), validate$2(defs.source, node, "source", source, 1), node;
|
|
115680
115798
|
}, exports$1.exportNamespaceSpecifier = function(exported) {
|
|
115681
115799
|
const node = {
|
|
115682
115800
|
type: "ExportNamespaceSpecifier",
|
|
115683
115801
|
exported
|
|
115684
115802
|
}, defs = NODE_FIELDS.ExportNamespaceSpecifier;
|
|
115685
|
-
return validate$
|
|
115803
|
+
return validate$2(defs.exported, node, "exported", exported, 1), node;
|
|
115686
115804
|
}, exports$1.exportSpecifier = function(local, exported) {
|
|
115687
115805
|
const node = {
|
|
115688
115806
|
type: "ExportSpecifier",
|
|
115689
115807
|
local,
|
|
115690
115808
|
exported
|
|
115691
115809
|
}, defs = NODE_FIELDS.ExportSpecifier;
|
|
115692
|
-
return validate$
|
|
115810
|
+
return validate$2(defs.local, node, "local", local, 1), validate$2(defs.exported, node, "exported", exported, 1), node;
|
|
115693
115811
|
}, exports$1.expressionStatement = function(expression) {
|
|
115694
115812
|
const node = {
|
|
115695
115813
|
type: "ExpressionStatement",
|
|
115696
115814
|
expression
|
|
115697
115815
|
}, defs = NODE_FIELDS.ExpressionStatement;
|
|
115698
|
-
return validate$
|
|
115816
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
115699
115817
|
}, exports$1.file = function(program, comments = null, tokens = null) {
|
|
115700
115818
|
const node = {
|
|
115701
115819
|
type: "File",
|
|
@@ -115703,7 +115821,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115703
115821
|
comments,
|
|
115704
115822
|
tokens
|
|
115705
115823
|
}, defs = NODE_FIELDS.File;
|
|
115706
|
-
return validate$
|
|
115824
|
+
return validate$2(defs.program, node, "program", program, 1), validate$2(defs.comments, node, "comments", comments, 1), validate$2(defs.tokens, node, "tokens", tokens), node;
|
|
115707
115825
|
}, exports$1.forInStatement = function(left, right, body) {
|
|
115708
115826
|
const node = {
|
|
115709
115827
|
type: "ForInStatement",
|
|
@@ -115711,7 +115829,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115711
115829
|
right,
|
|
115712
115830
|
body
|
|
115713
115831
|
}, defs = NODE_FIELDS.ForInStatement;
|
|
115714
|
-
return validate$
|
|
115832
|
+
return validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115715
115833
|
}, exports$1.forOfStatement = function(left, right, body, _await = !1) {
|
|
115716
115834
|
const node = {
|
|
115717
115835
|
type: "ForOfStatement",
|
|
@@ -115720,7 +115838,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115720
115838
|
body,
|
|
115721
115839
|
await: _await
|
|
115722
115840
|
}, defs = NODE_FIELDS.ForOfStatement;
|
|
115723
|
-
return validate$
|
|
115841
|
+
return validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.await, node, "await", _await), node;
|
|
115724
115842
|
}, exports$1.forStatement = function(init$1 = null, test = null, update = null, body) {
|
|
115725
115843
|
const node = {
|
|
115726
115844
|
type: "ForStatement",
|
|
@@ -115729,7 +115847,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115729
115847
|
update,
|
|
115730
115848
|
body
|
|
115731
115849
|
}, defs = NODE_FIELDS.ForStatement;
|
|
115732
|
-
return validate$
|
|
115850
|
+
return validate$2(defs.init, node, "init", init$1, 1), validate$2(defs.test, node, "test", test, 1), validate$2(defs.update, node, "update", update, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115733
115851
|
}, exports$1.functionDeclaration = function(id$1 = null, params, body, generator = !1, async = !1) {
|
|
115734
115852
|
const node = {
|
|
115735
115853
|
type: "FunctionDeclaration",
|
|
@@ -115739,7 +115857,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115739
115857
|
generator,
|
|
115740
115858
|
async
|
|
115741
115859
|
}, defs = NODE_FIELDS.FunctionDeclaration;
|
|
115742
|
-
return validate$
|
|
115860
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.generator, node, "generator", generator), validate$2(defs.async, node, "async", async), node;
|
|
115743
115861
|
}, exports$1.functionExpression = function(id$1 = null, params, body, generator = !1, async = !1) {
|
|
115744
115862
|
const node = {
|
|
115745
115863
|
type: "FunctionExpression",
|
|
@@ -115749,7 +115867,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115749
115867
|
generator,
|
|
115750
115868
|
async
|
|
115751
115869
|
}, defs = NODE_FIELDS.FunctionExpression;
|
|
115752
|
-
return validate$
|
|
115870
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.generator, node, "generator", generator), validate$2(defs.async, node, "async", async), node;
|
|
115753
115871
|
}, exports$1.functionTypeAnnotation = function(typeParameters = null, params, rest = null, returnType) {
|
|
115754
115872
|
const node = {
|
|
115755
115873
|
type: "FunctionTypeAnnotation",
|
|
@@ -115758,27 +115876,27 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115758
115876
|
rest,
|
|
115759
115877
|
returnType
|
|
115760
115878
|
}, defs = NODE_FIELDS.FunctionTypeAnnotation;
|
|
115761
|
-
return validate$
|
|
115879
|
+
return validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.rest, node, "rest", rest, 1), validate$2(defs.returnType, node, "returnType", returnType, 1), node;
|
|
115762
115880
|
}, exports$1.functionTypeParam = function(name$2 = null, typeAnnotation) {
|
|
115763
115881
|
const node = {
|
|
115764
115882
|
type: "FunctionTypeParam",
|
|
115765
115883
|
name: name$2,
|
|
115766
115884
|
typeAnnotation
|
|
115767
115885
|
}, defs = NODE_FIELDS.FunctionTypeParam;
|
|
115768
|
-
return validate$
|
|
115886
|
+
return validate$2(defs.name, node, "name", name$2, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
115769
115887
|
}, exports$1.genericTypeAnnotation = function(id$1, typeParameters = null) {
|
|
115770
115888
|
const node = {
|
|
115771
115889
|
type: "GenericTypeAnnotation",
|
|
115772
115890
|
id: id$1,
|
|
115773
115891
|
typeParameters
|
|
115774
115892
|
}, defs = NODE_FIELDS.GenericTypeAnnotation;
|
|
115775
|
-
return validate$
|
|
115893
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
115776
115894
|
}, exports$1.identifier = function(name$2) {
|
|
115777
115895
|
const node = {
|
|
115778
115896
|
type: "Identifier",
|
|
115779
115897
|
name: name$2
|
|
115780
115898
|
}, defs = NODE_FIELDS.Identifier;
|
|
115781
|
-
return validate$
|
|
115899
|
+
return validate$2(defs.name, node, "name", name$2), node;
|
|
115782
115900
|
}, exports$1.ifStatement = function(test, consequent, alternate = null) {
|
|
115783
115901
|
const node = {
|
|
115784
115902
|
type: "IfStatement",
|
|
@@ -115786,7 +115904,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115786
115904
|
consequent,
|
|
115787
115905
|
alternate
|
|
115788
115906
|
}, defs = NODE_FIELDS.IfStatement;
|
|
115789
|
-
return validate$
|
|
115907
|
+
return validate$2(defs.test, node, "test", test, 1), validate$2(defs.consequent, node, "consequent", consequent, 1), validate$2(defs.alternate, node, "alternate", alternate, 1), node;
|
|
115790
115908
|
}, exports$1.import = function() {
|
|
115791
115909
|
return { type: "Import" };
|
|
115792
115910
|
}, exports$1.importAttribute = function(key, value$1) {
|
|
@@ -115795,47 +115913,47 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115795
115913
|
key,
|
|
115796
115914
|
value: value$1
|
|
115797
115915
|
}, defs = NODE_FIELDS.ImportAttribute;
|
|
115798
|
-
return validate$
|
|
115916
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), node;
|
|
115799
115917
|
}, exports$1.importDeclaration = function(specifiers, source) {
|
|
115800
115918
|
const node = {
|
|
115801
115919
|
type: "ImportDeclaration",
|
|
115802
115920
|
specifiers,
|
|
115803
115921
|
source
|
|
115804
115922
|
}, defs = NODE_FIELDS.ImportDeclaration;
|
|
115805
|
-
return validate$
|
|
115923
|
+
return validate$2(defs.specifiers, node, "specifiers", specifiers, 1), validate$2(defs.source, node, "source", source, 1), node;
|
|
115806
115924
|
}, exports$1.importDefaultSpecifier = function(local) {
|
|
115807
115925
|
const node = {
|
|
115808
115926
|
type: "ImportDefaultSpecifier",
|
|
115809
115927
|
local
|
|
115810
115928
|
}, defs = NODE_FIELDS.ImportDefaultSpecifier;
|
|
115811
|
-
return validate$
|
|
115929
|
+
return validate$2(defs.local, node, "local", local, 1), node;
|
|
115812
115930
|
}, exports$1.importExpression = function(source, options = null) {
|
|
115813
115931
|
const node = {
|
|
115814
115932
|
type: "ImportExpression",
|
|
115815
115933
|
source,
|
|
115816
115934
|
options
|
|
115817
115935
|
}, defs = NODE_FIELDS.ImportExpression;
|
|
115818
|
-
return validate$
|
|
115936
|
+
return validate$2(defs.source, node, "source", source, 1), validate$2(defs.options, node, "options", options, 1), node;
|
|
115819
115937
|
}, exports$1.importNamespaceSpecifier = function(local) {
|
|
115820
115938
|
const node = {
|
|
115821
115939
|
type: "ImportNamespaceSpecifier",
|
|
115822
115940
|
local
|
|
115823
115941
|
}, defs = NODE_FIELDS.ImportNamespaceSpecifier;
|
|
115824
|
-
return validate$
|
|
115942
|
+
return validate$2(defs.local, node, "local", local, 1), node;
|
|
115825
115943
|
}, exports$1.importSpecifier = function(local, imported) {
|
|
115826
115944
|
const node = {
|
|
115827
115945
|
type: "ImportSpecifier",
|
|
115828
115946
|
local,
|
|
115829
115947
|
imported
|
|
115830
115948
|
}, defs = NODE_FIELDS.ImportSpecifier;
|
|
115831
|
-
return validate$
|
|
115949
|
+
return validate$2(defs.local, node, "local", local, 1), validate$2(defs.imported, node, "imported", imported, 1), node;
|
|
115832
115950
|
}, exports$1.indexedAccessType = function(objectType, indexType) {
|
|
115833
115951
|
const node = {
|
|
115834
115952
|
type: "IndexedAccessType",
|
|
115835
115953
|
objectType,
|
|
115836
115954
|
indexType
|
|
115837
115955
|
}, defs = NODE_FIELDS.IndexedAccessType;
|
|
115838
|
-
return validate$
|
|
115956
|
+
return validate$2(defs.objectType, node, "objectType", objectType, 1), validate$2(defs.indexType, node, "indexType", indexType, 1), node;
|
|
115839
115957
|
}, exports$1.inferredPredicate = function() {
|
|
115840
115958
|
return { type: "InferredPredicate" };
|
|
115841
115959
|
}, exports$1.interfaceDeclaration = function(id$1, typeParameters = null, _extends = null, body) {
|
|
@@ -115846,46 +115964,46 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115846
115964
|
extends: _extends,
|
|
115847
115965
|
body
|
|
115848
115966
|
}, defs = NODE_FIELDS.InterfaceDeclaration;
|
|
115849
|
-
return validate$
|
|
115967
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.extends, node, "extends", _extends, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115850
115968
|
}, exports$1.interfaceExtends = function(id$1, typeParameters = null) {
|
|
115851
115969
|
const node = {
|
|
115852
115970
|
type: "InterfaceExtends",
|
|
115853
115971
|
id: id$1,
|
|
115854
115972
|
typeParameters
|
|
115855
115973
|
}, defs = NODE_FIELDS.InterfaceExtends;
|
|
115856
|
-
return validate$
|
|
115974
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
115857
115975
|
}, exports$1.interfaceTypeAnnotation = function(_extends = null, body) {
|
|
115858
115976
|
const node = {
|
|
115859
115977
|
type: "InterfaceTypeAnnotation",
|
|
115860
115978
|
extends: _extends,
|
|
115861
115979
|
body
|
|
115862
115980
|
}, defs = NODE_FIELDS.InterfaceTypeAnnotation;
|
|
115863
|
-
return validate$
|
|
115981
|
+
return validate$2(defs.extends, node, "extends", _extends, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115864
115982
|
}, exports$1.interpreterDirective = function(value$1) {
|
|
115865
115983
|
const node = {
|
|
115866
115984
|
type: "InterpreterDirective",
|
|
115867
115985
|
value: value$1
|
|
115868
115986
|
}, defs = NODE_FIELDS.InterpreterDirective;
|
|
115869
|
-
return validate$
|
|
115987
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115870
115988
|
}, exports$1.intersectionTypeAnnotation = function(types$2) {
|
|
115871
115989
|
const node = {
|
|
115872
115990
|
type: "IntersectionTypeAnnotation",
|
|
115873
115991
|
types: types$2
|
|
115874
115992
|
}, defs = NODE_FIELDS.IntersectionTypeAnnotation;
|
|
115875
|
-
return validate$
|
|
115993
|
+
return validate$2(defs.types, node, "types", types$2, 1), node;
|
|
115876
115994
|
}, exports$1.jSXAttribute = exports$1.jsxAttribute = function(name$2, value$1 = null) {
|
|
115877
115995
|
const node = {
|
|
115878
115996
|
type: "JSXAttribute",
|
|
115879
115997
|
name: name$2,
|
|
115880
115998
|
value: value$1
|
|
115881
115999
|
}, defs = NODE_FIELDS.JSXAttribute;
|
|
115882
|
-
return validate$
|
|
116000
|
+
return validate$2(defs.name, node, "name", name$2, 1), validate$2(defs.value, node, "value", value$1, 1), node;
|
|
115883
116001
|
}, exports$1.jSXClosingElement = exports$1.jsxClosingElement = function(name$2) {
|
|
115884
116002
|
const node = {
|
|
115885
116003
|
type: "JSXClosingElement",
|
|
115886
116004
|
name: name$2
|
|
115887
116005
|
}, defs = NODE_FIELDS.JSXClosingElement;
|
|
115888
|
-
return validate$
|
|
116006
|
+
return validate$2(defs.name, node, "name", name$2, 1), node;
|
|
115889
116007
|
}, exports$1.jSXClosingFragment = exports$1.jsxClosingFragment = function() {
|
|
115890
116008
|
return { type: "JSXClosingFragment" };
|
|
115891
116009
|
}, exports$1.jSXElement = exports$1.jsxElement = function(openingElement, closingElement = null, children, selfClosing = null) {
|
|
@@ -115896,7 +116014,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115896
116014
|
children,
|
|
115897
116015
|
selfClosing
|
|
115898
116016
|
}, defs = NODE_FIELDS.JSXElement;
|
|
115899
|
-
return validate$
|
|
116017
|
+
return validate$2(defs.openingElement, node, "openingElement", openingElement, 1), validate$2(defs.closingElement, node, "closingElement", closingElement, 1), validate$2(defs.children, node, "children", children, 1), validate$2(defs.selfClosing, node, "selfClosing", selfClosing), node;
|
|
115900
116018
|
}, exports$1.jSXEmptyExpression = exports$1.jsxEmptyExpression = function() {
|
|
115901
116019
|
return { type: "JSXEmptyExpression" };
|
|
115902
116020
|
}, exports$1.jSXExpressionContainer = exports$1.jsxExpressionContainer = function(expression) {
|
|
@@ -115904,7 +116022,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115904
116022
|
type: "JSXExpressionContainer",
|
|
115905
116023
|
expression
|
|
115906
116024
|
}, defs = NODE_FIELDS.JSXExpressionContainer;
|
|
115907
|
-
return validate$
|
|
116025
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
115908
116026
|
}, exports$1.jSXFragment = exports$1.jsxFragment = function(openingFragment, closingFragment, children) {
|
|
115909
116027
|
const node = {
|
|
115910
116028
|
type: "JSXFragment",
|
|
@@ -115912,27 +116030,27 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115912
116030
|
closingFragment,
|
|
115913
116031
|
children
|
|
115914
116032
|
}, defs = NODE_FIELDS.JSXFragment;
|
|
115915
|
-
return validate$
|
|
116033
|
+
return validate$2(defs.openingFragment, node, "openingFragment", openingFragment, 1), validate$2(defs.closingFragment, node, "closingFragment", closingFragment, 1), validate$2(defs.children, node, "children", children, 1), node;
|
|
115916
116034
|
}, exports$1.jSXIdentifier = exports$1.jsxIdentifier = function(name$2) {
|
|
115917
116035
|
const node = {
|
|
115918
116036
|
type: "JSXIdentifier",
|
|
115919
116037
|
name: name$2
|
|
115920
116038
|
}, defs = NODE_FIELDS.JSXIdentifier;
|
|
115921
|
-
return validate$
|
|
116039
|
+
return validate$2(defs.name, node, "name", name$2), node;
|
|
115922
116040
|
}, exports$1.jSXMemberExpression = exports$1.jsxMemberExpression = function(object$1, property) {
|
|
115923
116041
|
const node = {
|
|
115924
116042
|
type: "JSXMemberExpression",
|
|
115925
116043
|
object: object$1,
|
|
115926
116044
|
property
|
|
115927
116045
|
}, defs = NODE_FIELDS.JSXMemberExpression;
|
|
115928
|
-
return validate$
|
|
116046
|
+
return validate$2(defs.object, node, "object", object$1, 1), validate$2(defs.property, node, "property", property, 1), node;
|
|
115929
116047
|
}, exports$1.jSXNamespacedName = exports$1.jsxNamespacedName = function(namespace, name$2) {
|
|
115930
116048
|
const node = {
|
|
115931
116049
|
type: "JSXNamespacedName",
|
|
115932
116050
|
namespace,
|
|
115933
116051
|
name: name$2
|
|
115934
116052
|
}, defs = NODE_FIELDS.JSXNamespacedName;
|
|
115935
|
-
return validate$
|
|
116053
|
+
return validate$2(defs.namespace, node, "namespace", namespace, 1), validate$2(defs.name, node, "name", name$2, 1), node;
|
|
115936
116054
|
}, exports$1.jSXOpeningElement = exports$1.jsxOpeningElement = function(name$2, attributes, selfClosing = !1) {
|
|
115937
116055
|
const node = {
|
|
115938
116056
|
type: "JSXOpeningElement",
|
|
@@ -115940,7 +116058,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115940
116058
|
attributes,
|
|
115941
116059
|
selfClosing
|
|
115942
116060
|
}, defs = NODE_FIELDS.JSXOpeningElement;
|
|
115943
|
-
return validate$
|
|
116061
|
+
return validate$2(defs.name, node, "name", name$2, 1), validate$2(defs.attributes, node, "attributes", attributes, 1), validate$2(defs.selfClosing, node, "selfClosing", selfClosing), node;
|
|
115944
116062
|
}, exports$1.jSXOpeningFragment = exports$1.jsxOpeningFragment = function() {
|
|
115945
116063
|
return { type: "JSXOpeningFragment" };
|
|
115946
116064
|
}, exports$1.jSXSpreadAttribute = exports$1.jsxSpreadAttribute = function(argument) {
|
|
@@ -115948,26 +116066,26 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115948
116066
|
type: "JSXSpreadAttribute",
|
|
115949
116067
|
argument
|
|
115950
116068
|
}, defs = NODE_FIELDS.JSXSpreadAttribute;
|
|
115951
|
-
return validate$
|
|
116069
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
115952
116070
|
}, exports$1.jSXSpreadChild = exports$1.jsxSpreadChild = function(expression) {
|
|
115953
116071
|
const node = {
|
|
115954
116072
|
type: "JSXSpreadChild",
|
|
115955
116073
|
expression
|
|
115956
116074
|
}, defs = NODE_FIELDS.JSXSpreadChild;
|
|
115957
|
-
return validate$
|
|
116075
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
115958
116076
|
}, exports$1.jSXText = exports$1.jsxText = function(value$1) {
|
|
115959
116077
|
const node = {
|
|
115960
116078
|
type: "JSXText",
|
|
115961
116079
|
value: value$1
|
|
115962
116080
|
}, defs = NODE_FIELDS.JSXText;
|
|
115963
|
-
return validate$
|
|
116081
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
115964
116082
|
}, exports$1.labeledStatement = function(label, body) {
|
|
115965
116083
|
const node = {
|
|
115966
116084
|
type: "LabeledStatement",
|
|
115967
116085
|
label,
|
|
115968
116086
|
body
|
|
115969
116087
|
}, defs = NODE_FIELDS.LabeledStatement;
|
|
115970
|
-
return validate$
|
|
116088
|
+
return validate$2(defs.label, node, "label", label, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
115971
116089
|
}, exports$1.logicalExpression = function(operator, left, right) {
|
|
115972
116090
|
const node = {
|
|
115973
116091
|
type: "LogicalExpression",
|
|
@@ -115975,7 +116093,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115975
116093
|
left,
|
|
115976
116094
|
right
|
|
115977
116095
|
}, defs = NODE_FIELDS.LogicalExpression;
|
|
115978
|
-
return validate$
|
|
116096
|
+
return validate$2(defs.operator, node, "operator", operator), validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
115979
116097
|
}, exports$1.memberExpression = function(object$1, property, computed = !1, optional = null) {
|
|
115980
116098
|
const node = {
|
|
115981
116099
|
type: "MemberExpression",
|
|
@@ -115984,14 +116102,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115984
116102
|
computed,
|
|
115985
116103
|
optional
|
|
115986
116104
|
}, defs = NODE_FIELDS.MemberExpression;
|
|
115987
|
-
return validate$
|
|
116105
|
+
return validate$2(defs.object, node, "object", object$1, 1), validate$2(defs.property, node, "property", property, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.optional, node, "optional", optional), node;
|
|
115988
116106
|
}, exports$1.metaProperty = function(meta, property) {
|
|
115989
116107
|
const node = {
|
|
115990
116108
|
type: "MetaProperty",
|
|
115991
116109
|
meta,
|
|
115992
116110
|
property
|
|
115993
116111
|
}, defs = NODE_FIELDS.MetaProperty;
|
|
115994
|
-
return validate$
|
|
116112
|
+
return validate$2(defs.meta, node, "meta", meta, 1), validate$2(defs.property, node, "property", property, 1), node;
|
|
115995
116113
|
}, exports$1.mixedTypeAnnotation = function() {
|
|
115996
116114
|
return { type: "MixedTypeAnnotation" };
|
|
115997
116115
|
}, exports$1.moduleExpression = function(body) {
|
|
@@ -115999,14 +116117,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
115999
116117
|
type: "ModuleExpression",
|
|
116000
116118
|
body
|
|
116001
116119
|
}, defs = NODE_FIELDS.ModuleExpression;
|
|
116002
|
-
return validate$
|
|
116120
|
+
return validate$2(defs.body, node, "body", body, 1), node;
|
|
116003
116121
|
}, exports$1.newExpression = function(callee, _arguments) {
|
|
116004
116122
|
const node = {
|
|
116005
116123
|
type: "NewExpression",
|
|
116006
116124
|
callee,
|
|
116007
116125
|
arguments: _arguments
|
|
116008
116126
|
}, defs = NODE_FIELDS.NewExpression;
|
|
116009
|
-
return validate$
|
|
116127
|
+
return validate$2(defs.callee, node, "callee", callee, 1), validate$2(defs.arguments, node, "arguments", _arguments, 1), node;
|
|
116010
116128
|
}, exports$1.noop = function() {
|
|
116011
116129
|
return { type: "Noop" };
|
|
116012
116130
|
}, exports$1.nullLiteral = function() {
|
|
@@ -116018,7 +116136,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116018
116136
|
type: "NullableTypeAnnotation",
|
|
116019
116137
|
typeAnnotation
|
|
116020
116138
|
}, defs = NODE_FIELDS.NullableTypeAnnotation;
|
|
116021
|
-
return validate$
|
|
116139
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116022
116140
|
}, exports$1.numberLiteral = function(value$1) {
|
|
116023
116141
|
return (0, _deprecationWarning.default)("NumberLiteral", "NumericLiteral", "The node type "), numericLiteral(value$1);
|
|
116024
116142
|
}, exports$1.numberLiteralTypeAnnotation = function(value$1) {
|
|
@@ -116026,7 +116144,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116026
116144
|
type: "NumberLiteralTypeAnnotation",
|
|
116027
116145
|
value: value$1
|
|
116028
116146
|
}, defs = NODE_FIELDS.NumberLiteralTypeAnnotation;
|
|
116029
|
-
return validate$
|
|
116147
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
116030
116148
|
}, exports$1.numberTypeAnnotation = function() {
|
|
116031
116149
|
return { type: "NumberTypeAnnotation" };
|
|
116032
116150
|
}, exports$1.numericLiteral = numericLiteral, exports$1.objectExpression = function(properties) {
|
|
@@ -116034,7 +116152,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116034
116152
|
type: "ObjectExpression",
|
|
116035
116153
|
properties
|
|
116036
116154
|
}, defs = NODE_FIELDS.ObjectExpression;
|
|
116037
|
-
return validate$
|
|
116155
|
+
return validate$2(defs.properties, node, "properties", properties, 1), node;
|
|
116038
116156
|
}, exports$1.objectMethod = function(kind = "method", key, params, body, computed = !1, generator = !1, async = !1) {
|
|
116039
116157
|
const node = {
|
|
116040
116158
|
type: "ObjectMethod",
|
|
@@ -116046,13 +116164,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116046
116164
|
generator,
|
|
116047
116165
|
async
|
|
116048
116166
|
}, defs = NODE_FIELDS.ObjectMethod;
|
|
116049
|
-
return validate$
|
|
116167
|
+
return validate$2(defs.kind, node, "kind", kind), validate$2(defs.key, node, "key", key, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.body, node, "body", body, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.generator, node, "generator", generator), validate$2(defs.async, node, "async", async), node;
|
|
116050
116168
|
}, exports$1.objectPattern = function(properties) {
|
|
116051
116169
|
const node = {
|
|
116052
116170
|
type: "ObjectPattern",
|
|
116053
116171
|
properties
|
|
116054
116172
|
}, defs = NODE_FIELDS.ObjectPattern;
|
|
116055
|
-
return validate$
|
|
116173
|
+
return validate$2(defs.properties, node, "properties", properties, 1), node;
|
|
116056
116174
|
}, exports$1.objectProperty = function(key, value$1, computed = !1, shorthand = !1, decorators = null) {
|
|
116057
116175
|
const node = {
|
|
116058
116176
|
type: "ObjectProperty",
|
|
@@ -116062,7 +116180,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116062
116180
|
shorthand,
|
|
116063
116181
|
decorators
|
|
116064
116182
|
}, defs = NODE_FIELDS.ObjectProperty;
|
|
116065
|
-
return validate$
|
|
116183
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.shorthand, node, "shorthand", shorthand), validate$2(defs.decorators, node, "decorators", decorators, 1), node;
|
|
116066
116184
|
}, exports$1.objectTypeAnnotation = function(properties, indexers = [], callProperties = [], internalSlots = [], exact = !1) {
|
|
116067
116185
|
const node = {
|
|
116068
116186
|
type: "ObjectTypeAnnotation",
|
|
@@ -116072,14 +116190,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116072
116190
|
internalSlots,
|
|
116073
116191
|
exact
|
|
116074
116192
|
}, defs = NODE_FIELDS.ObjectTypeAnnotation;
|
|
116075
|
-
return validate$
|
|
116193
|
+
return validate$2(defs.properties, node, "properties", properties, 1), validate$2(defs.indexers, node, "indexers", indexers, 1), validate$2(defs.callProperties, node, "callProperties", callProperties, 1), validate$2(defs.internalSlots, node, "internalSlots", internalSlots, 1), validate$2(defs.exact, node, "exact", exact), node;
|
|
116076
116194
|
}, exports$1.objectTypeCallProperty = function(value$1) {
|
|
116077
116195
|
const node = {
|
|
116078
116196
|
type: "ObjectTypeCallProperty",
|
|
116079
116197
|
value: value$1,
|
|
116080
116198
|
static: null
|
|
116081
116199
|
}, defs = NODE_FIELDS.ObjectTypeCallProperty;
|
|
116082
|
-
return validate$
|
|
116200
|
+
return validate$2(defs.value, node, "value", value$1, 1), node;
|
|
116083
116201
|
}, exports$1.objectTypeIndexer = function(id$1 = null, key, value$1, variance = null) {
|
|
116084
116202
|
const node = {
|
|
116085
116203
|
type: "ObjectTypeIndexer",
|
|
@@ -116089,7 +116207,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116089
116207
|
variance,
|
|
116090
116208
|
static: null
|
|
116091
116209
|
}, defs = NODE_FIELDS.ObjectTypeIndexer;
|
|
116092
|
-
return validate$
|
|
116210
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.variance, node, "variance", variance, 1), node;
|
|
116093
116211
|
}, exports$1.objectTypeInternalSlot = function(id$1, value$1, optional, _static, method) {
|
|
116094
116212
|
const node = {
|
|
116095
116213
|
type: "ObjectTypeInternalSlot",
|
|
@@ -116099,7 +116217,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116099
116217
|
static: _static,
|
|
116100
116218
|
method
|
|
116101
116219
|
}, defs = NODE_FIELDS.ObjectTypeInternalSlot;
|
|
116102
|
-
return validate$
|
|
116220
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.optional, node, "optional", optional), validate$2(defs.static, node, "static", _static), validate$2(defs.method, node, "method", method), node;
|
|
116103
116221
|
}, exports$1.objectTypeProperty = function(key, value$1, variance = null) {
|
|
116104
116222
|
const node = {
|
|
116105
116223
|
type: "ObjectTypeProperty",
|
|
@@ -116112,13 +116230,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116112
116230
|
proto: null,
|
|
116113
116231
|
static: null
|
|
116114
116232
|
}, defs = NODE_FIELDS.ObjectTypeProperty;
|
|
116115
|
-
return validate$
|
|
116233
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.value, node, "value", value$1, 1), validate$2(defs.variance, node, "variance", variance, 1), node;
|
|
116116
116234
|
}, exports$1.objectTypeSpreadProperty = function(argument) {
|
|
116117
116235
|
const node = {
|
|
116118
116236
|
type: "ObjectTypeSpreadProperty",
|
|
116119
116237
|
argument
|
|
116120
116238
|
}, defs = NODE_FIELDS.ObjectTypeSpreadProperty;
|
|
116121
|
-
return validate$
|
|
116239
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
116122
116240
|
}, exports$1.opaqueType = function(id$1, typeParameters = null, supertype = null, impltype) {
|
|
116123
116241
|
const node = {
|
|
116124
116242
|
type: "OpaqueType",
|
|
@@ -116127,7 +116245,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116127
116245
|
supertype,
|
|
116128
116246
|
impltype
|
|
116129
116247
|
}, defs = NODE_FIELDS.OpaqueType;
|
|
116130
|
-
return validate$
|
|
116248
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.supertype, node, "supertype", supertype, 1), validate$2(defs.impltype, node, "impltype", impltype, 1), node;
|
|
116131
116249
|
}, exports$1.optionalCallExpression = function(callee, _arguments, optional) {
|
|
116132
116250
|
const node = {
|
|
116133
116251
|
type: "OptionalCallExpression",
|
|
@@ -116135,7 +116253,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116135
116253
|
arguments: _arguments,
|
|
116136
116254
|
optional
|
|
116137
116255
|
}, defs = NODE_FIELDS.OptionalCallExpression;
|
|
116138
|
-
return validate$
|
|
116256
|
+
return validate$2(defs.callee, node, "callee", callee, 1), validate$2(defs.arguments, node, "arguments", _arguments, 1), validate$2(defs.optional, node, "optional", optional), node;
|
|
116139
116257
|
}, exports$1.optionalIndexedAccessType = function(objectType, indexType) {
|
|
116140
116258
|
const node = {
|
|
116141
116259
|
type: "OptionalIndexedAccessType",
|
|
@@ -116143,7 +116261,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116143
116261
|
indexType,
|
|
116144
116262
|
optional: null
|
|
116145
116263
|
}, defs = NODE_FIELDS.OptionalIndexedAccessType;
|
|
116146
|
-
return validate$
|
|
116264
|
+
return validate$2(defs.objectType, node, "objectType", objectType, 1), validate$2(defs.indexType, node, "indexType", indexType, 1), node;
|
|
116147
116265
|
}, exports$1.optionalMemberExpression = function(object$1, property, computed = !1, optional) {
|
|
116148
116266
|
const node = {
|
|
116149
116267
|
type: "OptionalMemberExpression",
|
|
@@ -116152,19 +116270,19 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116152
116270
|
computed,
|
|
116153
116271
|
optional
|
|
116154
116272
|
}, defs = NODE_FIELDS.OptionalMemberExpression;
|
|
116155
|
-
return validate$
|
|
116273
|
+
return validate$2(defs.object, node, "object", object$1, 1), validate$2(defs.property, node, "property", property, 1), validate$2(defs.computed, node, "computed", computed), validate$2(defs.optional, node, "optional", optional), node;
|
|
116156
116274
|
}, exports$1.parenthesizedExpression = function(expression) {
|
|
116157
116275
|
const node = {
|
|
116158
116276
|
type: "ParenthesizedExpression",
|
|
116159
116277
|
expression
|
|
116160
116278
|
}, defs = NODE_FIELDS.ParenthesizedExpression;
|
|
116161
|
-
return validate$
|
|
116279
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
116162
116280
|
}, exports$1.pipelineBareFunction = function(callee) {
|
|
116163
116281
|
const node = {
|
|
116164
116282
|
type: "PipelineBareFunction",
|
|
116165
116283
|
callee
|
|
116166
116284
|
}, defs = NODE_FIELDS.PipelineBareFunction;
|
|
116167
|
-
return validate$
|
|
116285
|
+
return validate$2(defs.callee, node, "callee", callee, 1), node;
|
|
116168
116286
|
}, exports$1.pipelinePrimaryTopicReference = function() {
|
|
116169
116287
|
return { type: "PipelinePrimaryTopicReference" };
|
|
116170
116288
|
}, exports$1.pipelineTopicExpression = function(expression) {
|
|
@@ -116172,20 +116290,20 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116172
116290
|
type: "PipelineTopicExpression",
|
|
116173
116291
|
expression
|
|
116174
116292
|
}, defs = NODE_FIELDS.PipelineTopicExpression;
|
|
116175
|
-
return validate$
|
|
116293
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
116176
116294
|
}, exports$1.placeholder = function(expectedNode, name$2) {
|
|
116177
116295
|
const node = {
|
|
116178
116296
|
type: "Placeholder",
|
|
116179
116297
|
expectedNode,
|
|
116180
116298
|
name: name$2
|
|
116181
116299
|
}, defs = NODE_FIELDS.Placeholder;
|
|
116182
|
-
return validate$
|
|
116300
|
+
return validate$2(defs.expectedNode, node, "expectedNode", expectedNode), validate$2(defs.name, node, "name", name$2, 1), node;
|
|
116183
116301
|
}, exports$1.privateName = function(id$1) {
|
|
116184
116302
|
const node = {
|
|
116185
116303
|
type: "PrivateName",
|
|
116186
116304
|
id: id$1
|
|
116187
116305
|
}, defs = NODE_FIELDS.PrivateName;
|
|
116188
|
-
return validate$
|
|
116306
|
+
return validate$2(defs.id, node, "id", id$1, 1), node;
|
|
116189
116307
|
}, exports$1.program = function(body, directives = [], sourceType = "script", interpreter = null) {
|
|
116190
116308
|
const node = {
|
|
116191
116309
|
type: "Program",
|
|
@@ -116194,20 +116312,20 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116194
116312
|
sourceType,
|
|
116195
116313
|
interpreter
|
|
116196
116314
|
}, defs = NODE_FIELDS.Program;
|
|
116197
|
-
return validate$
|
|
116315
|
+
return validate$2(defs.body, node, "body", body, 1), validate$2(defs.directives, node, "directives", directives, 1), validate$2(defs.sourceType, node, "sourceType", sourceType), validate$2(defs.interpreter, node, "interpreter", interpreter, 1), node;
|
|
116198
116316
|
}, exports$1.qualifiedTypeIdentifier = function(id$1, qualification) {
|
|
116199
116317
|
const node = {
|
|
116200
116318
|
type: "QualifiedTypeIdentifier",
|
|
116201
116319
|
id: id$1,
|
|
116202
116320
|
qualification
|
|
116203
116321
|
}, defs = NODE_FIELDS.QualifiedTypeIdentifier;
|
|
116204
|
-
return validate$
|
|
116322
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.qualification, node, "qualification", qualification, 1), node;
|
|
116205
116323
|
}, exports$1.recordExpression = function(properties) {
|
|
116206
116324
|
const node = {
|
|
116207
116325
|
type: "RecordExpression",
|
|
116208
116326
|
properties
|
|
116209
116327
|
}, defs = NODE_FIELDS.RecordExpression;
|
|
116210
|
-
return validate$
|
|
116328
|
+
return validate$2(defs.properties, node, "properties", properties, 1), node;
|
|
116211
116329
|
}, exports$1.regExpLiteral = regExpLiteral, exports$1.regexLiteral = function(pattern, flags = "") {
|
|
116212
116330
|
return (0, _deprecationWarning.default)("RegexLiteral", "RegExpLiteral", "The node type "), regExpLiteral(pattern, flags);
|
|
116213
116331
|
}, exports$1.restElement = restElement, exports$1.restProperty = function(argument) {
|
|
@@ -116217,13 +116335,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116217
116335
|
type: "ReturnStatement",
|
|
116218
116336
|
argument
|
|
116219
116337
|
}, defs = NODE_FIELDS.ReturnStatement;
|
|
116220
|
-
return validate$
|
|
116338
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
116221
116339
|
}, exports$1.sequenceExpression = function(expressions) {
|
|
116222
116340
|
const node = {
|
|
116223
116341
|
type: "SequenceExpression",
|
|
116224
116342
|
expressions
|
|
116225
116343
|
}, defs = NODE_FIELDS.SequenceExpression;
|
|
116226
|
-
return validate$
|
|
116344
|
+
return validate$2(defs.expressions, node, "expressions", expressions, 1), node;
|
|
116227
116345
|
}, exports$1.spreadElement = spreadElement, exports$1.spreadProperty = function(argument) {
|
|
116228
116346
|
return (0, _deprecationWarning.default)("SpreadProperty", "SpreadElement", "The node type "), spreadElement(argument);
|
|
116229
116347
|
}, exports$1.staticBlock = function(body) {
|
|
@@ -116231,19 +116349,19 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116231
116349
|
type: "StaticBlock",
|
|
116232
116350
|
body
|
|
116233
116351
|
}, defs = NODE_FIELDS.StaticBlock;
|
|
116234
|
-
return validate$
|
|
116352
|
+
return validate$2(defs.body, node, "body", body, 1), node;
|
|
116235
116353
|
}, exports$1.stringLiteral = function(value$1) {
|
|
116236
116354
|
const node = {
|
|
116237
116355
|
type: "StringLiteral",
|
|
116238
116356
|
value: value$1
|
|
116239
116357
|
}, defs = NODE_FIELDS.StringLiteral;
|
|
116240
|
-
return validate$
|
|
116358
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
116241
116359
|
}, exports$1.stringLiteralTypeAnnotation = function(value$1) {
|
|
116242
116360
|
const node = {
|
|
116243
116361
|
type: "StringLiteralTypeAnnotation",
|
|
116244
116362
|
value: value$1
|
|
116245
116363
|
}, defs = NODE_FIELDS.StringLiteralTypeAnnotation;
|
|
116246
|
-
return validate$
|
|
116364
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
116247
116365
|
}, exports$1.stringTypeAnnotation = function() {
|
|
116248
116366
|
return { type: "StringTypeAnnotation" };
|
|
116249
116367
|
}, exports$1.super = function() {
|
|
@@ -116254,14 +116372,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116254
116372
|
test,
|
|
116255
116373
|
consequent
|
|
116256
116374
|
}, defs = NODE_FIELDS.SwitchCase;
|
|
116257
|
-
return validate$
|
|
116375
|
+
return validate$2(defs.test, node, "test", test, 1), validate$2(defs.consequent, node, "consequent", consequent, 1), node;
|
|
116258
116376
|
}, exports$1.switchStatement = function(discriminant, cases) {
|
|
116259
116377
|
const node = {
|
|
116260
116378
|
type: "SwitchStatement",
|
|
116261
116379
|
discriminant,
|
|
116262
116380
|
cases
|
|
116263
116381
|
}, defs = NODE_FIELDS.SwitchStatement;
|
|
116264
|
-
return validate$
|
|
116382
|
+
return validate$2(defs.discriminant, node, "discriminant", discriminant, 1), validate$2(defs.cases, node, "cases", cases, 1), node;
|
|
116265
116383
|
}, exports$1.symbolTypeAnnotation = function() {
|
|
116266
116384
|
return { type: "SymbolTypeAnnotation" };
|
|
116267
116385
|
}, exports$1.taggedTemplateExpression = function(tag, quasi) {
|
|
@@ -116270,21 +116388,21 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116270
116388
|
tag,
|
|
116271
116389
|
quasi
|
|
116272
116390
|
}, defs = NODE_FIELDS.TaggedTemplateExpression;
|
|
116273
|
-
return validate$
|
|
116391
|
+
return validate$2(defs.tag, node, "tag", tag, 1), validate$2(defs.quasi, node, "quasi", quasi, 1), node;
|
|
116274
116392
|
}, exports$1.templateElement = function(value$1, tail$1 = !1) {
|
|
116275
116393
|
const node = {
|
|
116276
116394
|
type: "TemplateElement",
|
|
116277
116395
|
value: value$1,
|
|
116278
116396
|
tail: tail$1
|
|
116279
116397
|
}, defs = NODE_FIELDS.TemplateElement;
|
|
116280
|
-
return validate$
|
|
116398
|
+
return validate$2(defs.value, node, "value", value$1), validate$2(defs.tail, node, "tail", tail$1), node;
|
|
116281
116399
|
}, exports$1.templateLiteral = function(quasis, expressions) {
|
|
116282
116400
|
const node = {
|
|
116283
116401
|
type: "TemplateLiteral",
|
|
116284
116402
|
quasis,
|
|
116285
116403
|
expressions
|
|
116286
116404
|
}, defs = NODE_FIELDS.TemplateLiteral;
|
|
116287
|
-
return validate$
|
|
116405
|
+
return validate$2(defs.quasis, node, "quasis", quasis, 1), validate$2(defs.expressions, node, "expressions", expressions, 1), node;
|
|
116288
116406
|
}, exports$1.thisExpression = function() {
|
|
116289
116407
|
return { type: "ThisExpression" };
|
|
116290
116408
|
}, exports$1.thisTypeAnnotation = function() {
|
|
@@ -116294,7 +116412,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116294
116412
|
type: "ThrowStatement",
|
|
116295
116413
|
argument
|
|
116296
116414
|
}, defs = NODE_FIELDS.ThrowStatement;
|
|
116297
|
-
return validate$
|
|
116415
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
116298
116416
|
}, exports$1.topicReference = function() {
|
|
116299
116417
|
return { type: "TopicReference" };
|
|
116300
116418
|
}, exports$1.tryStatement = function(block, handler = null, finalizer = null) {
|
|
@@ -116304,7 +116422,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116304
116422
|
handler,
|
|
116305
116423
|
finalizer
|
|
116306
116424
|
}, defs = NODE_FIELDS.TryStatement;
|
|
116307
|
-
return validate$
|
|
116425
|
+
return validate$2(defs.block, node, "block", block, 1), validate$2(defs.handler, node, "handler", handler, 1), validate$2(defs.finalizer, node, "finalizer", finalizer, 1), node;
|
|
116308
116426
|
}, exports$1.tSAnyKeyword = exports$1.tsAnyKeyword = function() {
|
|
116309
116427
|
return { type: "TSAnyKeyword" };
|
|
116310
116428
|
}, exports$1.tSArrayType = exports$1.tsArrayType = function(elementType) {
|
|
@@ -116312,14 +116430,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116312
116430
|
type: "TSArrayType",
|
|
116313
116431
|
elementType
|
|
116314
116432
|
}, defs = NODE_FIELDS.TSArrayType;
|
|
116315
|
-
return validate$
|
|
116433
|
+
return validate$2(defs.elementType, node, "elementType", elementType, 1), node;
|
|
116316
116434
|
}, exports$1.tSAsExpression = exports$1.tsAsExpression = function(expression, typeAnnotation) {
|
|
116317
116435
|
const node = {
|
|
116318
116436
|
type: "TSAsExpression",
|
|
116319
116437
|
expression,
|
|
116320
116438
|
typeAnnotation
|
|
116321
116439
|
}, defs = NODE_FIELDS.TSAsExpression;
|
|
116322
|
-
return validate$
|
|
116440
|
+
return validate$2(defs.expression, node, "expression", expression, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116323
116441
|
}, exports$1.tSBigIntKeyword = exports$1.tsBigIntKeyword = function() {
|
|
116324
116442
|
return { type: "TSBigIntKeyword" };
|
|
116325
116443
|
}, exports$1.tSBooleanKeyword = exports$1.tsBooleanKeyword = function() {
|
|
@@ -116331,7 +116449,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116331
116449
|
parameters,
|
|
116332
116450
|
typeAnnotation
|
|
116333
116451
|
}, defs = NODE_FIELDS.TSCallSignatureDeclaration;
|
|
116334
|
-
return validate$
|
|
116452
|
+
return validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.parameters, node, "parameters", parameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116335
116453
|
}, exports$1.tSConditionalType = exports$1.tsConditionalType = function(checkType$1, extendsType, trueType, falseType) {
|
|
116336
116454
|
const node = {
|
|
116337
116455
|
type: "TSConditionalType",
|
|
@@ -116340,7 +116458,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116340
116458
|
trueType,
|
|
116341
116459
|
falseType
|
|
116342
116460
|
}, defs = NODE_FIELDS.TSConditionalType;
|
|
116343
|
-
return validate$
|
|
116461
|
+
return validate$2(defs.checkType, node, "checkType", checkType$1, 1), validate$2(defs.extendsType, node, "extendsType", extendsType, 1), validate$2(defs.trueType, node, "trueType", trueType, 1), validate$2(defs.falseType, node, "falseType", falseType, 1), node;
|
|
116344
116462
|
}, exports$1.tSConstructSignatureDeclaration = exports$1.tsConstructSignatureDeclaration = function(typeParameters = null, parameters, typeAnnotation = null) {
|
|
116345
116463
|
const node = {
|
|
116346
116464
|
type: "TSConstructSignatureDeclaration",
|
|
@@ -116348,7 +116466,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116348
116466
|
parameters,
|
|
116349
116467
|
typeAnnotation
|
|
116350
116468
|
}, defs = NODE_FIELDS.TSConstructSignatureDeclaration;
|
|
116351
|
-
return validate$
|
|
116469
|
+
return validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.parameters, node, "parameters", parameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116352
116470
|
}, exports$1.tSConstructorType = exports$1.tsConstructorType = function(typeParameters = null, parameters, typeAnnotation = null) {
|
|
116353
116471
|
const node = {
|
|
116354
116472
|
type: "TSConstructorType",
|
|
@@ -116356,7 +116474,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116356
116474
|
parameters,
|
|
116357
116475
|
typeAnnotation
|
|
116358
116476
|
}, defs = NODE_FIELDS.TSConstructorType;
|
|
116359
|
-
return validate$
|
|
116477
|
+
return validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.parameters, node, "parameters", parameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116360
116478
|
}, exports$1.tSDeclareFunction = exports$1.tsDeclareFunction = function(id$1 = null, typeParameters = null, params, returnType = null) {
|
|
116361
116479
|
const node = {
|
|
116362
116480
|
type: "TSDeclareFunction",
|
|
@@ -116365,7 +116483,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116365
116483
|
params,
|
|
116366
116484
|
returnType
|
|
116367
116485
|
}, defs = NODE_FIELDS.TSDeclareFunction;
|
|
116368
|
-
return validate$
|
|
116486
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.returnType, node, "returnType", returnType, 1), node;
|
|
116369
116487
|
}, exports$1.tSDeclareMethod = exports$1.tsDeclareMethod = function(decorators = null, key, typeParameters = null, params, returnType = null) {
|
|
116370
116488
|
const node = {
|
|
116371
116489
|
type: "TSDeclareMethod",
|
|
@@ -116375,46 +116493,46 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116375
116493
|
params,
|
|
116376
116494
|
returnType
|
|
116377
116495
|
}, defs = NODE_FIELDS.TSDeclareMethod;
|
|
116378
|
-
return validate$
|
|
116496
|
+
return validate$2(defs.decorators, node, "decorators", decorators, 1), validate$2(defs.key, node, "key", key, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.params, node, "params", params, 1), validate$2(defs.returnType, node, "returnType", returnType, 1), node;
|
|
116379
116497
|
}, exports$1.tSEnumBody = exports$1.tsEnumBody = function(members) {
|
|
116380
116498
|
const node = {
|
|
116381
116499
|
type: "TSEnumBody",
|
|
116382
116500
|
members
|
|
116383
116501
|
}, defs = NODE_FIELDS.TSEnumBody;
|
|
116384
|
-
return validate$
|
|
116502
|
+
return validate$2(defs.members, node, "members", members, 1), node;
|
|
116385
116503
|
}, exports$1.tSEnumDeclaration = exports$1.tsEnumDeclaration = function(id$1, members) {
|
|
116386
116504
|
const node = {
|
|
116387
116505
|
type: "TSEnumDeclaration",
|
|
116388
116506
|
id: id$1,
|
|
116389
116507
|
members
|
|
116390
116508
|
}, defs = NODE_FIELDS.TSEnumDeclaration;
|
|
116391
|
-
return validate$
|
|
116509
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.members, node, "members", members, 1), node;
|
|
116392
116510
|
}, exports$1.tSEnumMember = exports$1.tsEnumMember = function(id$1, initializer = null) {
|
|
116393
116511
|
const node = {
|
|
116394
116512
|
type: "TSEnumMember",
|
|
116395
116513
|
id: id$1,
|
|
116396
116514
|
initializer
|
|
116397
116515
|
}, defs = NODE_FIELDS.TSEnumMember;
|
|
116398
|
-
return validate$
|
|
116516
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.initializer, node, "initializer", initializer, 1), node;
|
|
116399
116517
|
}, exports$1.tSExportAssignment = exports$1.tsExportAssignment = function(expression) {
|
|
116400
116518
|
const node = {
|
|
116401
116519
|
type: "TSExportAssignment",
|
|
116402
116520
|
expression
|
|
116403
116521
|
}, defs = NODE_FIELDS.TSExportAssignment;
|
|
116404
|
-
return validate$
|
|
116522
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
116405
116523
|
}, exports$1.tSExpressionWithTypeArguments = exports$1.tsExpressionWithTypeArguments = function(expression, typeParameters = null) {
|
|
116406
116524
|
const node = {
|
|
116407
116525
|
type: "TSExpressionWithTypeArguments",
|
|
116408
116526
|
expression,
|
|
116409
116527
|
typeParameters
|
|
116410
116528
|
}, defs = NODE_FIELDS.TSExpressionWithTypeArguments;
|
|
116411
|
-
return validate$
|
|
116529
|
+
return validate$2(defs.expression, node, "expression", expression, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
116412
116530
|
}, exports$1.tSExternalModuleReference = exports$1.tsExternalModuleReference = function(expression) {
|
|
116413
116531
|
const node = {
|
|
116414
116532
|
type: "TSExternalModuleReference",
|
|
116415
116533
|
expression
|
|
116416
116534
|
}, defs = NODE_FIELDS.TSExternalModuleReference;
|
|
116417
|
-
return validate$
|
|
116535
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
116418
116536
|
}, exports$1.tSFunctionType = exports$1.tsFunctionType = function(typeParameters = null, parameters, typeAnnotation = null) {
|
|
116419
116537
|
const node = {
|
|
116420
116538
|
type: "TSFunctionType",
|
|
@@ -116422,7 +116540,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116422
116540
|
parameters,
|
|
116423
116541
|
typeAnnotation
|
|
116424
116542
|
}, defs = NODE_FIELDS.TSFunctionType;
|
|
116425
|
-
return validate$
|
|
116543
|
+
return validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.parameters, node, "parameters", parameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116426
116544
|
}, exports$1.tSImportEqualsDeclaration = exports$1.tsImportEqualsDeclaration = function(id$1, moduleReference) {
|
|
116427
116545
|
const node = {
|
|
116428
116546
|
type: "TSImportEqualsDeclaration",
|
|
@@ -116430,7 +116548,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116430
116548
|
moduleReference,
|
|
116431
116549
|
isExport: null
|
|
116432
116550
|
}, defs = NODE_FIELDS.TSImportEqualsDeclaration;
|
|
116433
|
-
return validate$
|
|
116551
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.moduleReference, node, "moduleReference", moduleReference, 1), node;
|
|
116434
116552
|
}, exports$1.tSImportType = exports$1.tsImportType = function(argument, qualifier = null, typeParameters = null) {
|
|
116435
116553
|
const node = {
|
|
116436
116554
|
type: "TSImportType",
|
|
@@ -116438,40 +116556,40 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116438
116556
|
qualifier,
|
|
116439
116557
|
typeParameters
|
|
116440
116558
|
}, defs = NODE_FIELDS.TSImportType;
|
|
116441
|
-
return validate$
|
|
116559
|
+
return validate$2(defs.argument, node, "argument", argument, 1), validate$2(defs.qualifier, node, "qualifier", qualifier, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
116442
116560
|
}, exports$1.tSIndexSignature = exports$1.tsIndexSignature = function(parameters, typeAnnotation = null) {
|
|
116443
116561
|
const node = {
|
|
116444
116562
|
type: "TSIndexSignature",
|
|
116445
116563
|
parameters,
|
|
116446
116564
|
typeAnnotation
|
|
116447
116565
|
}, defs = NODE_FIELDS.TSIndexSignature;
|
|
116448
|
-
return validate$
|
|
116566
|
+
return validate$2(defs.parameters, node, "parameters", parameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116449
116567
|
}, exports$1.tSIndexedAccessType = exports$1.tsIndexedAccessType = function(objectType, indexType) {
|
|
116450
116568
|
const node = {
|
|
116451
116569
|
type: "TSIndexedAccessType",
|
|
116452
116570
|
objectType,
|
|
116453
116571
|
indexType
|
|
116454
116572
|
}, defs = NODE_FIELDS.TSIndexedAccessType;
|
|
116455
|
-
return validate$
|
|
116573
|
+
return validate$2(defs.objectType, node, "objectType", objectType, 1), validate$2(defs.indexType, node, "indexType", indexType, 1), node;
|
|
116456
116574
|
}, exports$1.tSInferType = exports$1.tsInferType = function(typeParameter) {
|
|
116457
116575
|
const node = {
|
|
116458
116576
|
type: "TSInferType",
|
|
116459
116577
|
typeParameter
|
|
116460
116578
|
}, defs = NODE_FIELDS.TSInferType;
|
|
116461
|
-
return validate$
|
|
116579
|
+
return validate$2(defs.typeParameter, node, "typeParameter", typeParameter, 1), node;
|
|
116462
116580
|
}, exports$1.tSInstantiationExpression = exports$1.tsInstantiationExpression = function(expression, typeParameters = null) {
|
|
116463
116581
|
const node = {
|
|
116464
116582
|
type: "TSInstantiationExpression",
|
|
116465
116583
|
expression,
|
|
116466
116584
|
typeParameters
|
|
116467
116585
|
}, defs = NODE_FIELDS.TSInstantiationExpression;
|
|
116468
|
-
return validate$
|
|
116586
|
+
return validate$2(defs.expression, node, "expression", expression, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
116469
116587
|
}, exports$1.tSInterfaceBody = exports$1.tsInterfaceBody = function(body) {
|
|
116470
116588
|
const node = {
|
|
116471
116589
|
type: "TSInterfaceBody",
|
|
116472
116590
|
body
|
|
116473
116591
|
}, defs = NODE_FIELDS.TSInterfaceBody;
|
|
116474
|
-
return validate$
|
|
116592
|
+
return validate$2(defs.body, node, "body", body, 1), node;
|
|
116475
116593
|
}, exports$1.tSInterfaceDeclaration = exports$1.tsInterfaceDeclaration = function(id$1, typeParameters = null, _extends = null, body) {
|
|
116476
116594
|
const node = {
|
|
116477
116595
|
type: "TSInterfaceDeclaration",
|
|
@@ -116480,13 +116598,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116480
116598
|
extends: _extends,
|
|
116481
116599
|
body
|
|
116482
116600
|
}, defs = NODE_FIELDS.TSInterfaceDeclaration;
|
|
116483
|
-
return validate$
|
|
116601
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.extends, node, "extends", _extends, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
116484
116602
|
}, exports$1.tSIntersectionType = exports$1.tsIntersectionType = function(types$2) {
|
|
116485
116603
|
const node = {
|
|
116486
116604
|
type: "TSIntersectionType",
|
|
116487
116605
|
types: types$2
|
|
116488
116606
|
}, defs = NODE_FIELDS.TSIntersectionType;
|
|
116489
|
-
return validate$
|
|
116607
|
+
return validate$2(defs.types, node, "types", types$2, 1), node;
|
|
116490
116608
|
}, exports$1.tSIntrinsicKeyword = exports$1.tsIntrinsicKeyword = function() {
|
|
116491
116609
|
return { type: "TSIntrinsicKeyword" };
|
|
116492
116610
|
}, exports$1.tSLiteralType = exports$1.tsLiteralType = function(literal$1) {
|
|
@@ -116494,7 +116612,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116494
116612
|
type: "TSLiteralType",
|
|
116495
116613
|
literal: literal$1
|
|
116496
116614
|
}, defs = NODE_FIELDS.TSLiteralType;
|
|
116497
|
-
return validate$
|
|
116615
|
+
return validate$2(defs.literal, node, "literal", literal$1, 1), node;
|
|
116498
116616
|
}, exports$1.tSMappedType = exports$1.tsMappedType = function(typeParameter, typeAnnotation = null, nameType = null) {
|
|
116499
116617
|
const node = {
|
|
116500
116618
|
type: "TSMappedType",
|
|
@@ -116502,7 +116620,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116502
116620
|
typeAnnotation,
|
|
116503
116621
|
nameType
|
|
116504
116622
|
}, defs = NODE_FIELDS.TSMappedType;
|
|
116505
|
-
return validate$
|
|
116623
|
+
return validate$2(defs.typeParameter, node, "typeParameter", typeParameter, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate$2(defs.nameType, node, "nameType", nameType, 1), node;
|
|
116506
116624
|
}, exports$1.tSMethodSignature = exports$1.tsMethodSignature = function(key, typeParameters = null, parameters, typeAnnotation = null) {
|
|
116507
116625
|
const node = {
|
|
116508
116626
|
type: "TSMethodSignature",
|
|
@@ -116512,13 +116630,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116512
116630
|
typeAnnotation,
|
|
116513
116631
|
kind: null
|
|
116514
116632
|
}, defs = NODE_FIELDS.TSMethodSignature;
|
|
116515
|
-
return validate$
|
|
116633
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.parameters, node, "parameters", parameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116516
116634
|
}, exports$1.tSModuleBlock = exports$1.tsModuleBlock = function(body) {
|
|
116517
116635
|
const node = {
|
|
116518
116636
|
type: "TSModuleBlock",
|
|
116519
116637
|
body
|
|
116520
116638
|
}, defs = NODE_FIELDS.TSModuleBlock;
|
|
116521
|
-
return validate$
|
|
116639
|
+
return validate$2(defs.body, node, "body", body, 1), node;
|
|
116522
116640
|
}, exports$1.tSModuleDeclaration = exports$1.tsModuleDeclaration = function(id$1, body) {
|
|
116523
116641
|
const node = {
|
|
116524
116642
|
type: "TSModuleDeclaration",
|
|
@@ -116526,7 +116644,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116526
116644
|
body,
|
|
116527
116645
|
kind: null
|
|
116528
116646
|
}, defs = NODE_FIELDS.TSModuleDeclaration;
|
|
116529
|
-
return validate$
|
|
116647
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
116530
116648
|
}, exports$1.tSNamedTupleMember = exports$1.tsNamedTupleMember = function(label, elementType, optional = !1) {
|
|
116531
116649
|
const node = {
|
|
116532
116650
|
type: "TSNamedTupleMember",
|
|
@@ -116534,13 +116652,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116534
116652
|
elementType,
|
|
116535
116653
|
optional
|
|
116536
116654
|
}, defs = NODE_FIELDS.TSNamedTupleMember;
|
|
116537
|
-
return validate$
|
|
116655
|
+
return validate$2(defs.label, node, "label", label, 1), validate$2(defs.elementType, node, "elementType", elementType, 1), validate$2(defs.optional, node, "optional", optional), node;
|
|
116538
116656
|
}, exports$1.tSNamespaceExportDeclaration = exports$1.tsNamespaceExportDeclaration = function(id$1) {
|
|
116539
116657
|
const node = {
|
|
116540
116658
|
type: "TSNamespaceExportDeclaration",
|
|
116541
116659
|
id: id$1
|
|
116542
116660
|
}, defs = NODE_FIELDS.TSNamespaceExportDeclaration;
|
|
116543
|
-
return validate$
|
|
116661
|
+
return validate$2(defs.id, node, "id", id$1, 1), node;
|
|
116544
116662
|
}, exports$1.tSNeverKeyword = exports$1.tsNeverKeyword = function() {
|
|
116545
116663
|
return { type: "TSNeverKeyword" };
|
|
116546
116664
|
}, exports$1.tSNonNullExpression = exports$1.tsNonNullExpression = function(expression) {
|
|
@@ -116548,7 +116666,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116548
116666
|
type: "TSNonNullExpression",
|
|
116549
116667
|
expression
|
|
116550
116668
|
}, defs = NODE_FIELDS.TSNonNullExpression;
|
|
116551
|
-
return validate$
|
|
116669
|
+
return validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
116552
116670
|
}, exports$1.tSNullKeyword = exports$1.tsNullKeyword = function() {
|
|
116553
116671
|
return { type: "TSNullKeyword" };
|
|
116554
116672
|
}, exports$1.tSNumberKeyword = exports$1.tsNumberKeyword = function() {
|
|
@@ -116560,46 +116678,46 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116560
116678
|
type: "TSOptionalType",
|
|
116561
116679
|
typeAnnotation
|
|
116562
116680
|
}, defs = NODE_FIELDS.TSOptionalType;
|
|
116563
|
-
return validate$
|
|
116681
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116564
116682
|
}, exports$1.tSParameterProperty = exports$1.tsParameterProperty = function(parameter) {
|
|
116565
116683
|
const node = {
|
|
116566
116684
|
type: "TSParameterProperty",
|
|
116567
116685
|
parameter
|
|
116568
116686
|
}, defs = NODE_FIELDS.TSParameterProperty;
|
|
116569
|
-
return validate$
|
|
116687
|
+
return validate$2(defs.parameter, node, "parameter", parameter, 1), node;
|
|
116570
116688
|
}, exports$1.tSParenthesizedType = exports$1.tsParenthesizedType = function(typeAnnotation) {
|
|
116571
116689
|
const node = {
|
|
116572
116690
|
type: "TSParenthesizedType",
|
|
116573
116691
|
typeAnnotation
|
|
116574
116692
|
}, defs = NODE_FIELDS.TSParenthesizedType;
|
|
116575
|
-
return validate$
|
|
116693
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116576
116694
|
}, exports$1.tSPropertySignature = exports$1.tsPropertySignature = function(key, typeAnnotation = null) {
|
|
116577
116695
|
const node = {
|
|
116578
116696
|
type: "TSPropertySignature",
|
|
116579
116697
|
key,
|
|
116580
116698
|
typeAnnotation
|
|
116581
116699
|
}, defs = NODE_FIELDS.TSPropertySignature;
|
|
116582
|
-
return validate$
|
|
116700
|
+
return validate$2(defs.key, node, "key", key, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116583
116701
|
}, exports$1.tSQualifiedName = exports$1.tsQualifiedName = function(left, right) {
|
|
116584
116702
|
const node = {
|
|
116585
116703
|
type: "TSQualifiedName",
|
|
116586
116704
|
left,
|
|
116587
116705
|
right
|
|
116588
116706
|
}, defs = NODE_FIELDS.TSQualifiedName;
|
|
116589
|
-
return validate$
|
|
116707
|
+
return validate$2(defs.left, node, "left", left, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
116590
116708
|
}, exports$1.tSRestType = exports$1.tsRestType = function(typeAnnotation) {
|
|
116591
116709
|
const node = {
|
|
116592
116710
|
type: "TSRestType",
|
|
116593
116711
|
typeAnnotation
|
|
116594
116712
|
}, defs = NODE_FIELDS.TSRestType;
|
|
116595
|
-
return validate$
|
|
116713
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116596
116714
|
}, exports$1.tSSatisfiesExpression = exports$1.tsSatisfiesExpression = function(expression, typeAnnotation) {
|
|
116597
116715
|
const node = {
|
|
116598
116716
|
type: "TSSatisfiesExpression",
|
|
116599
116717
|
expression,
|
|
116600
116718
|
typeAnnotation
|
|
116601
116719
|
}, defs = NODE_FIELDS.TSSatisfiesExpression;
|
|
116602
|
-
return validate$
|
|
116720
|
+
return validate$2(defs.expression, node, "expression", expression, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116603
116721
|
}, exports$1.tSStringKeyword = exports$1.tsStringKeyword = function() {
|
|
116604
116722
|
return { type: "TSStringKeyword" };
|
|
116605
116723
|
}, exports$1.tSSymbolKeyword = exports$1.tsSymbolKeyword = function() {
|
|
@@ -116610,7 +116728,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116610
116728
|
quasis,
|
|
116611
116729
|
types: types$2
|
|
116612
116730
|
}, defs = NODE_FIELDS.TSTemplateLiteralType;
|
|
116613
|
-
return validate$
|
|
116731
|
+
return validate$2(defs.quasis, node, "quasis", quasis, 1), validate$2(defs.types, node, "types", types$2, 1), node;
|
|
116614
116732
|
}, exports$1.tSThisType = exports$1.tsThisType = function() {
|
|
116615
116733
|
return { type: "TSThisType" };
|
|
116616
116734
|
}, exports$1.tSTupleType = exports$1.tsTupleType = function(elementTypes) {
|
|
@@ -116618,7 +116736,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116618
116736
|
type: "TSTupleType",
|
|
116619
116737
|
elementTypes
|
|
116620
116738
|
}, defs = NODE_FIELDS.TSTupleType;
|
|
116621
|
-
return validate$
|
|
116739
|
+
return validate$2(defs.elementTypes, node, "elementTypes", elementTypes, 1), node;
|
|
116622
116740
|
}, exports$1.tSTypeAliasDeclaration = exports$1.tsTypeAliasDeclaration = function(id$1, typeParameters = null, typeAnnotation) {
|
|
116623
116741
|
const node = {
|
|
116624
116742
|
type: "TSTypeAliasDeclaration",
|
|
@@ -116626,33 +116744,33 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116626
116744
|
typeParameters,
|
|
116627
116745
|
typeAnnotation
|
|
116628
116746
|
}, defs = NODE_FIELDS.TSTypeAliasDeclaration;
|
|
116629
|
-
return validate$
|
|
116747
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116630
116748
|
}, exports$1.tSTypeAnnotation = exports$1.tsTypeAnnotation = function(typeAnnotation) {
|
|
116631
116749
|
const node = {
|
|
116632
116750
|
type: "TSTypeAnnotation",
|
|
116633
116751
|
typeAnnotation
|
|
116634
116752
|
}, defs = NODE_FIELDS.TSTypeAnnotation;
|
|
116635
|
-
return validate$
|
|
116753
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116636
116754
|
}, exports$1.tSTypeAssertion = exports$1.tsTypeAssertion = function(typeAnnotation, expression) {
|
|
116637
116755
|
const node = {
|
|
116638
116756
|
type: "TSTypeAssertion",
|
|
116639
116757
|
typeAnnotation,
|
|
116640
116758
|
expression
|
|
116641
116759
|
}, defs = NODE_FIELDS.TSTypeAssertion;
|
|
116642
|
-
return validate$
|
|
116760
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate$2(defs.expression, node, "expression", expression, 1), node;
|
|
116643
116761
|
}, exports$1.tSTypeLiteral = exports$1.tsTypeLiteral = function(members) {
|
|
116644
116762
|
const node = {
|
|
116645
116763
|
type: "TSTypeLiteral",
|
|
116646
116764
|
members
|
|
116647
116765
|
}, defs = NODE_FIELDS.TSTypeLiteral;
|
|
116648
|
-
return validate$
|
|
116766
|
+
return validate$2(defs.members, node, "members", members, 1), node;
|
|
116649
116767
|
}, exports$1.tSTypeOperator = exports$1.tsTypeOperator = function(typeAnnotation, operator) {
|
|
116650
116768
|
const node = {
|
|
116651
116769
|
type: "TSTypeOperator",
|
|
116652
116770
|
typeAnnotation,
|
|
116653
116771
|
operator
|
|
116654
116772
|
}, defs = NODE_FIELDS.TSTypeOperator;
|
|
116655
|
-
return validate$
|
|
116773
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate$2(defs.operator, node, "operator", operator), node;
|
|
116656
116774
|
}, exports$1.tSTypeParameter = exports$1.tsTypeParameter = function(constraint = null, _default = null, name$2) {
|
|
116657
116775
|
const node = {
|
|
116658
116776
|
type: "TSTypeParameter",
|
|
@@ -116660,19 +116778,19 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116660
116778
|
default: _default,
|
|
116661
116779
|
name: name$2
|
|
116662
116780
|
}, defs = NODE_FIELDS.TSTypeParameter;
|
|
116663
|
-
return validate$
|
|
116781
|
+
return validate$2(defs.constraint, node, "constraint", constraint, 1), validate$2(defs.default, node, "default", _default, 1), validate$2(defs.name, node, "name", name$2), node;
|
|
116664
116782
|
}, exports$1.tSTypeParameterDeclaration = exports$1.tsTypeParameterDeclaration = function(params) {
|
|
116665
116783
|
const node = {
|
|
116666
116784
|
type: "TSTypeParameterDeclaration",
|
|
116667
116785
|
params
|
|
116668
116786
|
}, defs = NODE_FIELDS.TSTypeParameterDeclaration;
|
|
116669
|
-
return validate$
|
|
116787
|
+
return validate$2(defs.params, node, "params", params, 1), node;
|
|
116670
116788
|
}, exports$1.tSTypeParameterInstantiation = exports$1.tsTypeParameterInstantiation = function(params) {
|
|
116671
116789
|
const node = {
|
|
116672
116790
|
type: "TSTypeParameterInstantiation",
|
|
116673
116791
|
params
|
|
116674
116792
|
}, defs = NODE_FIELDS.TSTypeParameterInstantiation;
|
|
116675
|
-
return validate$
|
|
116793
|
+
return validate$2(defs.params, node, "params", params, 1), node;
|
|
116676
116794
|
}, exports$1.tSTypePredicate = exports$1.tsTypePredicate = function(parameterName, typeAnnotation = null, asserts = null) {
|
|
116677
116795
|
const node = {
|
|
116678
116796
|
type: "TSTypePredicate",
|
|
@@ -116680,21 +116798,21 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116680
116798
|
typeAnnotation,
|
|
116681
116799
|
asserts
|
|
116682
116800
|
}, defs = NODE_FIELDS.TSTypePredicate;
|
|
116683
|
-
return validate$
|
|
116801
|
+
return validate$2(defs.parameterName, node, "parameterName", parameterName, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate$2(defs.asserts, node, "asserts", asserts), node;
|
|
116684
116802
|
}, exports$1.tSTypeQuery = exports$1.tsTypeQuery = function(exprName, typeParameters = null) {
|
|
116685
116803
|
const node = {
|
|
116686
116804
|
type: "TSTypeQuery",
|
|
116687
116805
|
exprName,
|
|
116688
116806
|
typeParameters
|
|
116689
116807
|
}, defs = NODE_FIELDS.TSTypeQuery;
|
|
116690
|
-
return validate$
|
|
116808
|
+
return validate$2(defs.exprName, node, "exprName", exprName, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
116691
116809
|
}, exports$1.tSTypeReference = exports$1.tsTypeReference = function(typeName, typeParameters = null) {
|
|
116692
116810
|
const node = {
|
|
116693
116811
|
type: "TSTypeReference",
|
|
116694
116812
|
typeName,
|
|
116695
116813
|
typeParameters
|
|
116696
116814
|
}, defs = NODE_FIELDS.TSTypeReference;
|
|
116697
|
-
return validate$
|
|
116815
|
+
return validate$2(defs.typeName, node, "typeName", typeName, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), node;
|
|
116698
116816
|
}, exports$1.tSUndefinedKeyword = exports$1.tsUndefinedKeyword = function() {
|
|
116699
116817
|
return { type: "TSUndefinedKeyword" };
|
|
116700
116818
|
}, exports$1.tSUnionType = exports$1.tsUnionType = function(types$2) {
|
|
@@ -116702,7 +116820,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116702
116820
|
type: "TSUnionType",
|
|
116703
116821
|
types: types$2
|
|
116704
116822
|
}, defs = NODE_FIELDS.TSUnionType;
|
|
116705
|
-
return validate$
|
|
116823
|
+
return validate$2(defs.types, node, "types", types$2, 1), node;
|
|
116706
116824
|
}, exports$1.tSUnknownKeyword = exports$1.tsUnknownKeyword = function() {
|
|
116707
116825
|
return { type: "TSUnknownKeyword" };
|
|
116708
116826
|
}, exports$1.tSVoidKeyword = exports$1.tsVoidKeyword = function() {
|
|
@@ -116712,13 +116830,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116712
116830
|
type: "TupleExpression",
|
|
116713
116831
|
elements
|
|
116714
116832
|
}, defs = NODE_FIELDS.TupleExpression;
|
|
116715
|
-
return validate$
|
|
116833
|
+
return validate$2(defs.elements, node, "elements", elements, 1), node;
|
|
116716
116834
|
}, exports$1.tupleTypeAnnotation = function(types$2) {
|
|
116717
116835
|
const node = {
|
|
116718
116836
|
type: "TupleTypeAnnotation",
|
|
116719
116837
|
types: types$2
|
|
116720
116838
|
}, defs = NODE_FIELDS.TupleTypeAnnotation;
|
|
116721
|
-
return validate$
|
|
116839
|
+
return validate$2(defs.types, node, "types", types$2, 1), node;
|
|
116722
116840
|
}, exports$1.typeAlias = function(id$1, typeParameters = null, right) {
|
|
116723
116841
|
const node = {
|
|
116724
116842
|
type: "TypeAlias",
|
|
@@ -116726,20 +116844,20 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116726
116844
|
typeParameters,
|
|
116727
116845
|
right
|
|
116728
116846
|
}, defs = NODE_FIELDS.TypeAlias;
|
|
116729
|
-
return validate$
|
|
116847
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.typeParameters, node, "typeParameters", typeParameters, 1), validate$2(defs.right, node, "right", right, 1), node;
|
|
116730
116848
|
}, exports$1.typeAnnotation = function(typeAnnotation) {
|
|
116731
116849
|
const node = {
|
|
116732
116850
|
type: "TypeAnnotation",
|
|
116733
116851
|
typeAnnotation
|
|
116734
116852
|
}, defs = NODE_FIELDS.TypeAnnotation;
|
|
116735
|
-
return validate$
|
|
116853
|
+
return validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116736
116854
|
}, exports$1.typeCastExpression = function(expression, typeAnnotation) {
|
|
116737
116855
|
const node = {
|
|
116738
116856
|
type: "TypeCastExpression",
|
|
116739
116857
|
expression,
|
|
116740
116858
|
typeAnnotation
|
|
116741
116859
|
}, defs = NODE_FIELDS.TypeCastExpression;
|
|
116742
|
-
return validate$
|
|
116860
|
+
return validate$2(defs.expression, node, "expression", expression, 1), validate$2(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), node;
|
|
116743
116861
|
}, exports$1.typeParameter = function(bound = null, _default = null, variance = null) {
|
|
116744
116862
|
const node = {
|
|
116745
116863
|
type: "TypeParameter",
|
|
@@ -116748,25 +116866,25 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116748
116866
|
variance,
|
|
116749
116867
|
name: null
|
|
116750
116868
|
}, defs = NODE_FIELDS.TypeParameter;
|
|
116751
|
-
return validate$
|
|
116869
|
+
return validate$2(defs.bound, node, "bound", bound, 1), validate$2(defs.default, node, "default", _default, 1), validate$2(defs.variance, node, "variance", variance, 1), node;
|
|
116752
116870
|
}, exports$1.typeParameterDeclaration = function(params) {
|
|
116753
116871
|
const node = {
|
|
116754
116872
|
type: "TypeParameterDeclaration",
|
|
116755
116873
|
params
|
|
116756
116874
|
}, defs = NODE_FIELDS.TypeParameterDeclaration;
|
|
116757
|
-
return validate$
|
|
116875
|
+
return validate$2(defs.params, node, "params", params, 1), node;
|
|
116758
116876
|
}, exports$1.typeParameterInstantiation = function(params) {
|
|
116759
116877
|
const node = {
|
|
116760
116878
|
type: "TypeParameterInstantiation",
|
|
116761
116879
|
params
|
|
116762
116880
|
}, defs = NODE_FIELDS.TypeParameterInstantiation;
|
|
116763
|
-
return validate$
|
|
116881
|
+
return validate$2(defs.params, node, "params", params, 1), node;
|
|
116764
116882
|
}, exports$1.typeofTypeAnnotation = function(argument) {
|
|
116765
116883
|
const node = {
|
|
116766
116884
|
type: "TypeofTypeAnnotation",
|
|
116767
116885
|
argument
|
|
116768
116886
|
}, defs = NODE_FIELDS.TypeofTypeAnnotation;
|
|
116769
|
-
return validate$
|
|
116887
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
116770
116888
|
}, exports$1.unaryExpression = function(operator, argument, prefix = !0) {
|
|
116771
116889
|
const node = {
|
|
116772
116890
|
type: "UnaryExpression",
|
|
@@ -116774,13 +116892,13 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116774
116892
|
argument,
|
|
116775
116893
|
prefix
|
|
116776
116894
|
}, defs = NODE_FIELDS.UnaryExpression;
|
|
116777
|
-
return validate$
|
|
116895
|
+
return validate$2(defs.operator, node, "operator", operator), validate$2(defs.argument, node, "argument", argument, 1), validate$2(defs.prefix, node, "prefix", prefix), node;
|
|
116778
116896
|
}, exports$1.unionTypeAnnotation = function(types$2) {
|
|
116779
116897
|
const node = {
|
|
116780
116898
|
type: "UnionTypeAnnotation",
|
|
116781
116899
|
types: types$2
|
|
116782
116900
|
}, defs = NODE_FIELDS.UnionTypeAnnotation;
|
|
116783
|
-
return validate$
|
|
116901
|
+
return validate$2(defs.types, node, "types", types$2, 1), node;
|
|
116784
116902
|
}, exports$1.updateExpression = function(operator, argument, prefix = !1) {
|
|
116785
116903
|
const node = {
|
|
116786
116904
|
type: "UpdateExpression",
|
|
@@ -116788,33 +116906,33 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116788
116906
|
argument,
|
|
116789
116907
|
prefix
|
|
116790
116908
|
}, defs = NODE_FIELDS.UpdateExpression;
|
|
116791
|
-
return validate$
|
|
116909
|
+
return validate$2(defs.operator, node, "operator", operator), validate$2(defs.argument, node, "argument", argument, 1), validate$2(defs.prefix, node, "prefix", prefix), node;
|
|
116792
116910
|
}, exports$1.v8IntrinsicIdentifier = function(name$2) {
|
|
116793
116911
|
const node = {
|
|
116794
116912
|
type: "V8IntrinsicIdentifier",
|
|
116795
116913
|
name: name$2
|
|
116796
116914
|
}, defs = NODE_FIELDS.V8IntrinsicIdentifier;
|
|
116797
|
-
return validate$
|
|
116915
|
+
return validate$2(defs.name, node, "name", name$2), node;
|
|
116798
116916
|
}, exports$1.variableDeclaration = function(kind, declarations) {
|
|
116799
116917
|
const node = {
|
|
116800
116918
|
type: "VariableDeclaration",
|
|
116801
116919
|
kind,
|
|
116802
116920
|
declarations
|
|
116803
116921
|
}, defs = NODE_FIELDS.VariableDeclaration;
|
|
116804
|
-
return validate$
|
|
116922
|
+
return validate$2(defs.kind, node, "kind", kind), validate$2(defs.declarations, node, "declarations", declarations, 1), node;
|
|
116805
116923
|
}, exports$1.variableDeclarator = function(id$1, init$1 = null) {
|
|
116806
116924
|
const node = {
|
|
116807
116925
|
type: "VariableDeclarator",
|
|
116808
116926
|
id: id$1,
|
|
116809
116927
|
init: init$1
|
|
116810
116928
|
}, defs = NODE_FIELDS.VariableDeclarator;
|
|
116811
|
-
return validate$
|
|
116929
|
+
return validate$2(defs.id, node, "id", id$1, 1), validate$2(defs.init, node, "init", init$1, 1), node;
|
|
116812
116930
|
}, exports$1.variance = function(kind) {
|
|
116813
116931
|
const node = {
|
|
116814
116932
|
type: "Variance",
|
|
116815
116933
|
kind
|
|
116816
116934
|
}, defs = NODE_FIELDS.Variance;
|
|
116817
|
-
return validate$
|
|
116935
|
+
return validate$2(defs.kind, node, "kind", kind), node;
|
|
116818
116936
|
}, exports$1.voidPattern = function() {
|
|
116819
116937
|
return { type: "VoidPattern" };
|
|
116820
116938
|
}, exports$1.voidTypeAnnotation = function() {
|
|
@@ -116825,30 +116943,30 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116825
116943
|
test,
|
|
116826
116944
|
body
|
|
116827
116945
|
}, defs = NODE_FIELDS.WhileStatement;
|
|
116828
|
-
return validate$
|
|
116946
|
+
return validate$2(defs.test, node, "test", test, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
116829
116947
|
}, exports$1.withStatement = function(object$1, body) {
|
|
116830
116948
|
const node = {
|
|
116831
116949
|
type: "WithStatement",
|
|
116832
116950
|
object: object$1,
|
|
116833
116951
|
body
|
|
116834
116952
|
}, defs = NODE_FIELDS.WithStatement;
|
|
116835
|
-
return validate$
|
|
116953
|
+
return validate$2(defs.object, node, "object", object$1, 1), validate$2(defs.body, node, "body", body, 1), node;
|
|
116836
116954
|
}, exports$1.yieldExpression = function(argument = null, delegate = !1) {
|
|
116837
116955
|
const node = {
|
|
116838
116956
|
type: "YieldExpression",
|
|
116839
116957
|
argument,
|
|
116840
116958
|
delegate
|
|
116841
116959
|
}, defs = NODE_FIELDS.YieldExpression;
|
|
116842
|
-
return validate$
|
|
116960
|
+
return validate$2(defs.argument, node, "argument", argument, 1), validate$2(defs.delegate, node, "delegate", delegate), node;
|
|
116843
116961
|
};
|
|
116844
116962
|
var _validate = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/validators/validate.js"), _deprecationWarning = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/utils/deprecationWarning.js"), utils$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/definitions/utils.js");
|
|
116845
|
-
const { validateInternal: validate$
|
|
116963
|
+
const { validateInternal: validate$2 } = _validate, { NODE_FIELDS } = utils$2;
|
|
116846
116964
|
function numericLiteral(value$1) {
|
|
116847
116965
|
const node = {
|
|
116848
116966
|
type: "NumericLiteral",
|
|
116849
116967
|
value: value$1
|
|
116850
116968
|
}, defs = NODE_FIELDS.NumericLiteral;
|
|
116851
|
-
return validate$
|
|
116969
|
+
return validate$2(defs.value, node, "value", value$1), node;
|
|
116852
116970
|
}
|
|
116853
116971
|
function regExpLiteral(pattern, flags = "") {
|
|
116854
116972
|
const node = {
|
|
@@ -116856,21 +116974,21 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
116856
116974
|
pattern,
|
|
116857
116975
|
flags
|
|
116858
116976
|
}, defs = NODE_FIELDS.RegExpLiteral;
|
|
116859
|
-
return validate$
|
|
116977
|
+
return validate$2(defs.pattern, node, "pattern", pattern), validate$2(defs.flags, node, "flags", flags), node;
|
|
116860
116978
|
}
|
|
116861
116979
|
function restElement(argument) {
|
|
116862
116980
|
const node = {
|
|
116863
116981
|
type: "RestElement",
|
|
116864
116982
|
argument
|
|
116865
116983
|
}, defs = NODE_FIELDS.RestElement;
|
|
116866
|
-
return validate$
|
|
116984
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
116867
116985
|
}
|
|
116868
116986
|
function spreadElement(argument) {
|
|
116869
116987
|
const node = {
|
|
116870
116988
|
type: "SpreadElement",
|
|
116871
116989
|
argument
|
|
116872
116990
|
}, defs = NODE_FIELDS.SpreadElement;
|
|
116873
|
-
return validate$
|
|
116991
|
+
return validate$2(defs.argument, node, "argument", argument, 1), node;
|
|
116874
116992
|
}
|
|
116875
116993
|
},
|
|
116876
116994
|
"./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/builders/generated/uppercase.js": (__unused_webpack_module, exports$1, __webpack_require__$1) => {
|
|
@@ -120131,17 +120249,17 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120131
120249
|
},
|
|
120132
120250
|
"./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/definitions/utils.js": (__unused_webpack_module, exports$1, __webpack_require__$1) => {
|
|
120133
120251
|
Object.defineProperty(exports$1, "__esModule", { value: !0 }), exports$1.allExpandedTypes = exports$1.VISITOR_KEYS = exports$1.NODE_PARENT_VALIDATIONS = exports$1.NODE_FIELDS = exports$1.FLIPPED_ALIAS_KEYS = exports$1.DEPRECATED_KEYS = exports$1.BUILDER_KEYS = exports$1.ALIAS_KEYS = void 0, exports$1.arrayOf = arrayOf, exports$1.arrayOfType = arrayOfType, exports$1.assertEach = assertEach, exports$1.assertNodeOrValueType = function(...types$2) {
|
|
120134
|
-
function validate$
|
|
120252
|
+
function validate$3(node, key, val) {
|
|
120135
120253
|
const primitiveType = getType(val);
|
|
120136
120254
|
for (const type of types$2) if (primitiveType === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
|
|
120137
120255
|
throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types$2)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
|
|
120138
120256
|
}
|
|
120139
|
-
return validate$
|
|
120257
|
+
return validate$3.oneOfNodeOrValueTypes = types$2, validate$3;
|
|
120140
120258
|
}, exports$1.assertNodeType = assertNodeType, exports$1.assertOneOf = function(...values$1) {
|
|
120141
|
-
function validate$
|
|
120259
|
+
function validate$3(node, key, val) {
|
|
120142
120260
|
if (!values$1.includes(val)) throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values$1)} but got ${JSON.stringify(val)}`);
|
|
120143
120261
|
}
|
|
120144
|
-
return validate$
|
|
120262
|
+
return validate$3.oneOf = values$1, validate$3;
|
|
120145
120263
|
}, exports$1.assertOptionalChainStart = function() {
|
|
120146
120264
|
return function(node) {
|
|
120147
120265
|
var _current;
|
|
@@ -120161,7 +120279,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120161
120279
|
};
|
|
120162
120280
|
}, exports$1.assertShape = function(shape) {
|
|
120163
120281
|
const keys$2 = Object.keys(shape);
|
|
120164
|
-
function validate$
|
|
120282
|
+
function validate$3(node, key, val) {
|
|
120165
120283
|
const errors = [];
|
|
120166
120284
|
for (const property of keys$2) try {
|
|
120167
120285
|
(0, _validate.validateField)(node, property, val[property], shape[property]);
|
|
@@ -120174,7 +120292,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120174
120292
|
}
|
|
120175
120293
|
if (errors.length) throw new TypeError(`Property ${key} of ${node.type} expected to have the following:\n${errors.join("\n")}`);
|
|
120176
120294
|
}
|
|
120177
|
-
return validate$
|
|
120295
|
+
return validate$3.shapeOf = shape, validate$3;
|
|
120178
120296
|
}, exports$1.assertValueType = assertValueType, exports$1.chain = chain, exports$1.default = defineType, exports$1.defineAliasedType = function(...aliases) {
|
|
120179
120297
|
return (type, opts = {}) => {
|
|
120180
120298
|
let defined = opts.aliases;
|
|
@@ -120183,11 +120301,11 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120183
120301
|
const additional = aliases.filter((a) => !defined.includes(a));
|
|
120184
120302
|
defined.unshift(...additional), defineType(type, opts);
|
|
120185
120303
|
};
|
|
120186
|
-
}, exports$1.validate = validate$
|
|
120187
|
-
return validate$
|
|
120188
|
-
}, exports$1.validateOptional = function(validate$
|
|
120304
|
+
}, exports$1.validate = validate$2, exports$1.validateArrayOfType = function(...typeNames) {
|
|
120305
|
+
return validate$2(arrayOfType(...typeNames));
|
|
120306
|
+
}, exports$1.validateOptional = function(validate$3) {
|
|
120189
120307
|
return {
|
|
120190
|
-
validate: validate$
|
|
120308
|
+
validate: validate$3,
|
|
120191
120309
|
optional: !0
|
|
120192
120310
|
};
|
|
120193
120311
|
}, exports$1.validateOptionalType = function(...typeNames) {
|
|
@@ -120196,15 +120314,15 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120196
120314
|
optional: !0
|
|
120197
120315
|
};
|
|
120198
120316
|
}, exports$1.validateType = function(...typeNames) {
|
|
120199
|
-
return validate$
|
|
120317
|
+
return validate$2(assertNodeType(...typeNames));
|
|
120200
120318
|
};
|
|
120201
120319
|
var _is = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/validators/is.js"), _validate = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/validators/validate.js");
|
|
120202
120320
|
const VISITOR_KEYS = exports$1.VISITOR_KEYS = {}, ALIAS_KEYS = exports$1.ALIAS_KEYS = {}, FLIPPED_ALIAS_KEYS = exports$1.FLIPPED_ALIAS_KEYS = {}, NODE_FIELDS = exports$1.NODE_FIELDS = {}, BUILDER_KEYS = exports$1.BUILDER_KEYS = {}, DEPRECATED_KEYS = exports$1.DEPRECATED_KEYS = {}, NODE_PARENT_VALIDATIONS = exports$1.NODE_PARENT_VALIDATIONS = {};
|
|
120203
120321
|
function getType(val) {
|
|
120204
120322
|
return Array.isArray(val) ? "array" : null === val ? "null" : typeof val;
|
|
120205
120323
|
}
|
|
120206
|
-
function validate$
|
|
120207
|
-
return { validate: validate$
|
|
120324
|
+
function validate$2(validate$3) {
|
|
120325
|
+
return { validate: validate$3 };
|
|
120208
120326
|
}
|
|
120209
120327
|
function arrayOf(elementType) {
|
|
120210
120328
|
return chain(assertValueType("array"), assertEach(elementType));
|
|
@@ -120228,7 +120346,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120228
120346
|
const allExpandedTypes = exports$1.allExpandedTypes = [];
|
|
120229
120347
|
function assertNodeType(...types$2) {
|
|
120230
120348
|
const expandedTypes = /* @__PURE__ */ new Set();
|
|
120231
|
-
function validate$
|
|
120349
|
+
function validate$3(node, key, val) {
|
|
120232
120350
|
const valType = null == val ? void 0 : val.type;
|
|
120233
120351
|
if (null != valType) {
|
|
120234
120352
|
if (expandedTypes.has(valType)) return void (0, _validate.validateChild)(node, key, val);
|
|
@@ -120241,20 +120359,20 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120241
120359
|
return allExpandedTypes.push({
|
|
120242
120360
|
types: types$2,
|
|
120243
120361
|
set: expandedTypes
|
|
120244
|
-
}), validate$
|
|
120362
|
+
}), validate$3.oneOfNodeTypes = types$2, validate$3;
|
|
120245
120363
|
}
|
|
120246
120364
|
function assertValueType(type) {
|
|
120247
|
-
function validate$
|
|
120365
|
+
function validate$3(node, key, val) {
|
|
120248
120366
|
if (getType(val) !== type) throw new TypeError(`Property ${key} expected type of ${type} but got ${getType(val)}`);
|
|
120249
120367
|
}
|
|
120250
|
-
return validate$
|
|
120368
|
+
return validate$3.type = type, validate$3;
|
|
120251
120369
|
}
|
|
120252
120370
|
function chain(...fns) {
|
|
120253
|
-
function validate$
|
|
120371
|
+
function validate$3(...args) {
|
|
120254
120372
|
for (const fn of fns) fn(...args);
|
|
120255
120373
|
}
|
|
120256
|
-
if (validate$
|
|
120257
|
-
return validate$
|
|
120374
|
+
if (validate$3.chainOf = fns, fns.length >= 2 && "type" in fns[0] && "array" === fns[0].type && !("each" in fns[1])) throw new Error("An assertValueType(\"array\") validator can only be followed by an assertEach(...) validator.");
|
|
120375
|
+
return validate$3;
|
|
120258
120376
|
}
|
|
120259
120377
|
const validTypeOpts = new Set([
|
|
120260
120378
|
"aliases",
|
|
@@ -120793,8 +120911,8 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
120793
120911
|
const map$2 = opts.preserveComments ? CLEAR_KEYS : CLEAR_KEYS_PLUS_COMMENTS;
|
|
120794
120912
|
for (const key of map$2) null != node[key] && (node[key] = void 0);
|
|
120795
120913
|
for (const key of Object.keys(node)) "_" === key[0] && null != node[key] && (node[key] = void 0);
|
|
120796
|
-
const symbols = Object.getOwnPropertySymbols(node);
|
|
120797
|
-
for (const sym of symbols) node[sym] = null;
|
|
120914
|
+
const symbols$1 = Object.getOwnPropertySymbols(node);
|
|
120915
|
+
for (const sym of symbols$1) node[sym] = null;
|
|
120798
120916
|
};
|
|
120799
120917
|
var _index = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.28.1/node_modules/@babel/types/lib/constants/index.js");
|
|
120800
120918
|
const CLEAR_KEYS = [
|
|
@@ -141512,8 +141630,8 @@ var TailorDBService = class {
|
|
|
141512
141630
|
if (Object.keys(this.rawTypes).length > 0) return this.rawTypes;
|
|
141513
141631
|
if (!this.config.files || this.config.files.length === 0) return;
|
|
141514
141632
|
const typeFiles = loadFilesWithIgnores(this.config);
|
|
141515
|
-
|
|
141516
|
-
|
|
141633
|
+
logger.newline();
|
|
141634
|
+
logger.log(`Found ${styles.highlight(typeFiles.length.toString())} type files for TailorDB service ${styles.highlight(`"${this.namespace}"`)}`);
|
|
141517
141635
|
await Promise.all(typeFiles.map((typeFile) => this.loadTypeFile(typeFile)));
|
|
141518
141636
|
this.parseTypes();
|
|
141519
141637
|
return this.types;
|
|
@@ -141532,7 +141650,7 @@ var TailorDBService = class {
|
|
|
141532
141650
|
const exportedValue = module$1[exportName];
|
|
141533
141651
|
if (exportedValue && typeof exportedValue === "object" && exportedValue.constructor?.name === "TailorDBType" && typeof exportedValue.name === "string" && typeof exportedValue.fields === "object" && exportedValue.metadata && typeof exportedValue.metadata === "object") {
|
|
141534
141652
|
const relativePath = path$1.relative(process.cwd(), typeFile);
|
|
141535
|
-
|
|
141653
|
+
logger.log(`Type: ${styles.successBright(`"${exportName}"`)} loaded from ${styles.path(relativePath)}`);
|
|
141536
141654
|
this.rawTypes[typeFile][exportedValue.name] = exportedValue;
|
|
141537
141655
|
loadedTypes[exportedValue.name] = exportedValue;
|
|
141538
141656
|
this.typeSourceInfo[exportedValue.name] = {
|
|
@@ -141543,8 +141661,8 @@ var TailorDBService = class {
|
|
|
141543
141661
|
}
|
|
141544
141662
|
} catch (error) {
|
|
141545
141663
|
const relativePath = path$1.relative(process.cwd(), typeFile);
|
|
141546
|
-
|
|
141547
|
-
|
|
141664
|
+
logger.error(`${styles.error("Failed to load type from")} ${styles.errorBright(relativePath)}`);
|
|
141665
|
+
logger.error(String(error));
|
|
141548
141666
|
throw error;
|
|
141549
141667
|
}
|
|
141550
141668
|
return loadedTypes;
|
|
@@ -141632,8 +141750,17 @@ var TailorDBService = class {
|
|
|
141632
141750
|
//#region src/parser/service/idp/schema.ts
|
|
141633
141751
|
const IdPLangSchema$1 = z.enum(["en", "ja"]);
|
|
141634
141752
|
const IdPUserAuthPolicySchema = z.object({
|
|
141635
|
-
useNonEmailIdentifier: z.boolean().
|
|
141636
|
-
allowSelfPasswordReset: z.boolean().
|
|
141753
|
+
useNonEmailIdentifier: z.boolean().optional(),
|
|
141754
|
+
allowSelfPasswordReset: z.boolean().optional(),
|
|
141755
|
+
passwordRequireUppercase: z.boolean().optional(),
|
|
141756
|
+
passwordRequireLowercase: z.boolean().optional(),
|
|
141757
|
+
passwordRequireNonAlphanumeric: z.boolean().optional(),
|
|
141758
|
+
passwordRequireNumeric: z.boolean().optional(),
|
|
141759
|
+
passwordMinLength: z.number().int().refine((val) => val >= 6 && val <= 30, { message: "passwordMinLength must be between 6 and 30" }).optional(),
|
|
141760
|
+
passwordMaxLength: z.number().int().refine((val) => val >= 6 && val <= 4096, { message: "passwordMaxLength must be between 6 and 4096" }).optional()
|
|
141761
|
+
}).refine((data$1) => data$1.passwordMinLength === void 0 || data$1.passwordMaxLength === void 0 || data$1.passwordMinLength <= data$1.passwordMaxLength, {
|
|
141762
|
+
message: "passwordMinLength must be less than or equal to passwordMaxLength",
|
|
141763
|
+
path: ["passwordMinLength"]
|
|
141637
141764
|
});
|
|
141638
141765
|
const IdPSchema = z.object({
|
|
141639
141766
|
name: z.string(),
|
|
@@ -141843,11 +141970,11 @@ async function loadAndCollectJobs(config) {
|
|
|
141843
141970
|
*/
|
|
141844
141971
|
function printLoadedWorkflows(result) {
|
|
141845
141972
|
if (result.fileCount === 0) return;
|
|
141846
|
-
|
|
141847
|
-
|
|
141973
|
+
logger.newline();
|
|
141974
|
+
logger.log(`Found ${styles.highlight(result.fileCount.toString())} workflow files`);
|
|
141848
141975
|
for (const { workflow, sourceFile } of result.workflowSources) {
|
|
141849
141976
|
const relativePath = path$1.relative(process.cwd(), sourceFile);
|
|
141850
|
-
|
|
141977
|
+
logger.log(`Workflow: ${styles.successBright(`"${workflow.name}"`)} loaded from ${styles.path(relativePath)}`);
|
|
141851
141978
|
}
|
|
141852
141979
|
}
|
|
141853
141980
|
/**
|
|
@@ -141875,8 +142002,8 @@ async function loadFileContent(filePath) {
|
|
|
141875
142002
|
}
|
|
141876
142003
|
} catch (error) {
|
|
141877
142004
|
const relativePath = path$1.relative(process.cwd(), filePath);
|
|
141878
|
-
|
|
141879
|
-
|
|
142005
|
+
logger.error(`${styles.error("Failed to load workflow from")} ${styles.errorBright(relativePath)}`);
|
|
142006
|
+
logger.error(String(error));
|
|
141880
142007
|
throw error;
|
|
141881
142008
|
}
|
|
141882
142009
|
return {
|
|
@@ -142444,7 +142571,7 @@ async function buildTriggerContext(workflowConfig) {
|
|
|
142444
142571
|
for (const [exportName, jobName] of jobMap) jobNameMap.set(exportName, jobName);
|
|
142445
142572
|
} catch (error) {
|
|
142446
142573
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
142447
|
-
|
|
142574
|
+
logger.warn(`Failed to process workflow file ${file}: ${errorMessage}`, { mode: "stream" });
|
|
142448
142575
|
continue;
|
|
142449
142576
|
}
|
|
142450
142577
|
return {
|
|
@@ -142492,17 +142619,17 @@ async function loadExecutor(executorFilePath) {
|
|
|
142492
142619
|
async function bundleExecutors(config, triggerContext) {
|
|
142493
142620
|
const files = loadFilesWithIgnores(config);
|
|
142494
142621
|
if (files.length === 0) throw new Error(`No files found matching pattern: ${config.files?.join(", ")}`);
|
|
142495
|
-
|
|
142496
|
-
|
|
142622
|
+
logger.newline();
|
|
142623
|
+
logger.log(`Bundling ${styles.highlight(files.length.toString())} files for ${styles.info("\"executor\"")}`);
|
|
142497
142624
|
const executors = [];
|
|
142498
142625
|
for (const file of files) {
|
|
142499
142626
|
const executor = await loadExecutor(file);
|
|
142500
142627
|
if (!executor) {
|
|
142501
|
-
|
|
142628
|
+
logger.debug(` Skipping: ${file} (could not be loaded)`);
|
|
142502
142629
|
continue;
|
|
142503
142630
|
}
|
|
142504
142631
|
if (!["function", "jobFunction"].includes(executor.operation.kind)) {
|
|
142505
|
-
|
|
142632
|
+
logger.debug(` Skipping: ${executor.name} (not a function executor)`);
|
|
142506
142633
|
continue;
|
|
142507
142634
|
}
|
|
142508
142635
|
executors.push({
|
|
@@ -142511,7 +142638,7 @@ async function bundleExecutors(config, triggerContext) {
|
|
|
142511
142638
|
});
|
|
142512
142639
|
}
|
|
142513
142640
|
if (executors.length === 0) {
|
|
142514
|
-
|
|
142641
|
+
logger.debug(" No function executors to bundle");
|
|
142515
142642
|
return;
|
|
142516
142643
|
}
|
|
142517
142644
|
const outputDir = path$1.resolve(getDistDir(), "executors");
|
|
@@ -142523,7 +142650,7 @@ async function bundleExecutors(config, triggerContext) {
|
|
|
142523
142650
|
tsconfig = void 0;
|
|
142524
142651
|
}
|
|
142525
142652
|
await Promise.all(executors.map((executor) => bundleSingleExecutor(executor, outputDir, tsconfig, triggerContext)));
|
|
142526
|
-
|
|
142653
|
+
logger.log(`${styles.success("Bundled")} ${styles.info("\"executor\"")}`);
|
|
142527
142654
|
}
|
|
142528
142655
|
async function bundleSingleExecutor(executor, outputDir, tsconfig, triggerContext) {
|
|
142529
142656
|
const entryPath = path$1.join(outputDir, `${executor.name}.entry.js`);
|
|
@@ -142581,13 +142708,13 @@ async function loadResolver(resolverFilePath) {
|
|
|
142581
142708
|
async function bundleResolvers(namespace, config, triggerContext) {
|
|
142582
142709
|
const files = loadFilesWithIgnores(config);
|
|
142583
142710
|
if (files.length === 0) throw new Error(`No files found matching pattern: ${config.files?.join(", ")}`);
|
|
142584
|
-
|
|
142585
|
-
|
|
142711
|
+
logger.newline();
|
|
142712
|
+
logger.log(`Bundling ${styles.highlight(files.length.toString())} files for ${styles.info(`"${namespace}"`)}`);
|
|
142586
142713
|
const resolvers = [];
|
|
142587
142714
|
for (const file of files) {
|
|
142588
142715
|
const resolver = await loadResolver(file);
|
|
142589
142716
|
if (!resolver) {
|
|
142590
|
-
|
|
142717
|
+
logger.debug(` Skipping: ${file} (could not be loaded)`);
|
|
142591
142718
|
continue;
|
|
142592
142719
|
}
|
|
142593
142720
|
resolvers.push({
|
|
@@ -142604,7 +142731,7 @@ async function bundleResolvers(namespace, config, triggerContext) {
|
|
|
142604
142731
|
tsconfig = void 0;
|
|
142605
142732
|
}
|
|
142606
142733
|
await Promise.all(resolvers.map((resolver) => bundleSingleResolver(resolver, outputDir, tsconfig, triggerContext)));
|
|
142607
|
-
|
|
142734
|
+
logger.log(`${styles.success("Bundled")} ${styles.info(`"${namespace}"`)}`);
|
|
142608
142735
|
}
|
|
142609
142736
|
async function bundleSingleResolver(resolver, outputDir, tsconfig, triggerContext) {
|
|
142610
142737
|
const entryPath = path$1.join(outputDir, `${resolver.name}.entry.js`);
|
|
@@ -142823,12 +142950,12 @@ function transformWorkflowSource(source, targetJobName, targetJobExportName, oth
|
|
|
142823
142950
|
*/
|
|
142824
142951
|
async function bundleWorkflowJobs(allJobs, mainJobNames, env$1 = {}, triggerContext) {
|
|
142825
142952
|
if (allJobs.length === 0) {
|
|
142826
|
-
|
|
142953
|
+
logger.debug("No workflow jobs to bundle");
|
|
142827
142954
|
return { mainJobDeps: {} };
|
|
142828
142955
|
}
|
|
142829
142956
|
const { usedJobs, mainJobDeps } = await filterUsedJobs(allJobs, mainJobNames);
|
|
142830
|
-
|
|
142831
|
-
|
|
142957
|
+
logger.newline();
|
|
142958
|
+
logger.log(`Bundling ${styles.highlight(usedJobs.length.toString())} files for ${styles.info("\"workflow-job\"")}`);
|
|
142832
142959
|
const outputDir = path$1.resolve(getDistDir(), "workflow-jobs");
|
|
142833
142960
|
if (fs$1.existsSync(outputDir)) fs$1.rmSync(outputDir, { recursive: true });
|
|
142834
142961
|
fs$1.mkdirSync(outputDir, { recursive: true });
|
|
@@ -142839,7 +142966,7 @@ async function bundleWorkflowJobs(allJobs, mainJobNames, env$1 = {}, triggerCont
|
|
|
142839
142966
|
tsconfig = void 0;
|
|
142840
142967
|
}
|
|
142841
142968
|
await Promise.all(usedJobs.map((job) => bundleSingleJob(job, usedJobs, outputDir, tsconfig, env$1, triggerContext)));
|
|
142842
|
-
|
|
142969
|
+
logger.log(`${styles.success("Bundled")} ${styles.info("\"workflow-job\"")}`);
|
|
142843
142970
|
return { mainJobDeps };
|
|
142844
142971
|
}
|
|
142845
142972
|
/**
|
|
@@ -143303,7 +143430,11 @@ const file_tailor_v1_function = /* @__PURE__ */ fileDesc("Chh0YWlsb3IvdjEvZnVuY3
|
|
|
143303
143430
|
/**
|
|
143304
143431
|
* Describes the file tailor/v1/idp_resource.proto.
|
|
143305
143432
|
*/
|
|
143306
|
-
const file_tailor_v1_idp_resource = /* @__PURE__ */ fileDesc("Chx0YWlsb3IvdjEvaWRwX3Jlc291cmNlLnByb3RvEgl0YWlsb3IudjEiwQEKCklkUFNlcnZpY2USJwoJbmFtZXNwYWNlGAEgASgLMhQudGFpbG9yLnYxLk5hbWVzcGFjZRIVCg1hdXRob3JpemF0aW9uGAIgASgJEhkKDHByb3ZpZGVyX3VybBgDIAEoCUID4EEDEjYKEHVzZXJfYXV0aF9wb2xpY3kYBCABKAsyHC50YWlsb3IudjEuSWRQVXNlckF1dGhQb2xpY3kSIAoEbGFuZxgFIAEoDjISLnRhaWxvci52MS5JZFBMYW5nIk0KCUlkUENsaWVudBIMCgRuYW1lGAEgASgJEhYKCWNsaWVudF9pZBgCIAEoCUID4EEDEhoKDWNsaWVudF9zZWNyZXQYAyABKAlCA+
|
|
143433
|
+
const file_tailor_v1_idp_resource = /* @__PURE__ */ fileDesc("Chx0YWlsb3IvdjEvaWRwX3Jlc291cmNlLnByb3RvEgl0YWlsb3IudjEiwQEKCklkUFNlcnZpY2USJwoJbmFtZXNwYWNlGAEgASgLMhQudGFpbG9yLnYxLk5hbWVzcGFjZRIVCg1hdXRob3JpemF0aW9uGAIgASgJEhkKDHByb3ZpZGVyX3VybBgDIAEoCUID4EEDEjYKEHVzZXJfYXV0aF9wb2xpY3kYBCABKAsyHC50YWlsb3IudjEuSWRQVXNlckF1dGhQb2xpY3kSIAoEbGFuZxgFIAEoDjISLnRhaWxvci52MS5JZFBMYW5nIk0KCUlkUENsaWVudBIMCgRuYW1lGAEgASgJEhYKCWNsaWVudF9pZBgCIAEoCUID4EEDEhoKDWNsaWVudF9zZWNyZXQYAyABKAlCA+BBAyK3BgoRSWRQVXNlckF1dGhQb2xpY3kSIAoYdXNlX25vbl9lbWFpbF9pZGVudGlmaWVyGAEgASgIEiEKGWFsbG93X3NlbGZfcGFzc3dvcmRfcmVzZXQYAiABKAgSIgoacGFzc3dvcmRfcmVxdWlyZV91cHBlcmNhc2UYAyABKAgSIgoacGFzc3dvcmRfcmVxdWlyZV9sb3dlcmNhc2UYBCABKAgSKQohcGFzc3dvcmRfcmVxdWlyZV9ub25fYWxwaGFudW1lcmljGAUgASgIEiAKGHBhc3N3b3JkX3JlcXVpcmVfbnVtZXJpYxgGIAEoCBKmAQoTcGFzc3dvcmRfbWluX2xlbmd0aBgHIAEoBUKIAbpIhAG6AYABChlwYXNzd29yZF9taW5fbGVuZ3RoX3JhbmdlEjtwYXNzd29yZF9taW5fbGVuZ3RoIG11c3QgYmUgMCAoZGVmYXVsdCkgb3IgYmV0d2VlbiA2IGFuZCAzMBomdGhpcyA9PSAwIHx8ICh0aGlzID49IDYgJiYgdGhpcyA8PSAzMCkSqgEKE3Bhc3N3b3JkX21heF9sZW5ndGgYCCABKAVCjAG6SIgBugGEAQoZcGFzc3dvcmRfbWF4X2xlbmd0aF9yYW5nZRI9cGFzc3dvcmRfbWF4X2xlbmd0aCBtdXN0IGJlIDAgKGRlZmF1bHQpIG9yIGJldHdlZW4gNiBhbmQgNDA5NhoodGhpcyA9PSAwIHx8ICh0aGlzID49IDYgJiYgdGhpcyA8PSA0MDk2KTrxAbpI7QEa6gEKG3Bhc3N3b3JkX2xlbmd0aF9jb25zaXN0ZW5jeRJFcGFzc3dvcmRfbWluX2xlbmd0aCBtdXN0IGJlIGxlc3MgdGhhbiBvciBlcXVhbCB0byBwYXNzd29yZF9tYXhfbGVuZ3RoGoMBKHRoaXMucGFzc3dvcmRfbWluX2xlbmd0aCA9PSAwID8gNiA6IHRoaXMucGFzc3dvcmRfbWluX2xlbmd0aCkgPD0gKHRoaXMucGFzc3dvcmRfbWF4X2xlbmd0aCA9PSAwID8gNDA5NiA6IHRoaXMucGFzc3dvcmRfbWF4X2xlbmd0aCkqSAoHSWRQTGFuZxIZChVJRF9QX0xBTkdfVU5TUEVDSUZJRUQQABIQCgxJRF9QX0xBTkdfRU4QARIQCgxJRF9QX0xBTkdfSkEQAmIGcHJvdG8z", [
|
|
143434
|
+
file_buf_validate_validate,
|
|
143435
|
+
file_google_api_field_behavior,
|
|
143436
|
+
file_tailor_v1_resource
|
|
143437
|
+
]);
|
|
143307
143438
|
/**
|
|
143308
143439
|
* Describes the enum tailor.v1.IdPLang.
|
|
143309
143440
|
*/
|
|
@@ -143586,7 +143717,7 @@ const file_tailor_v1_service = /* @__PURE__ */ fileDesc("Chd0YWlsb3IvdjEvc2Vydml
|
|
|
143586
143717
|
const OperatorService = /* @__PURE__ */ serviceDesc(file_tailor_v1_service, 0);
|
|
143587
143718
|
|
|
143588
143719
|
//#endregion
|
|
143589
|
-
//#region src/cli/package-json.ts
|
|
143720
|
+
//#region src/cli/utils/package-json.ts
|
|
143590
143721
|
let packageJson = null;
|
|
143591
143722
|
async function readPackageJson() {
|
|
143592
143723
|
if (packageJson) return packageJson;
|
|
@@ -143702,11 +143833,11 @@ async function resolveStaticWebsiteUrls(client, workspaceId, urls, context) {
|
|
|
143702
143833
|
});
|
|
143703
143834
|
if (response.staticwebsite?.url) return [response.staticwebsite.url + pathSuffix];
|
|
143704
143835
|
else {
|
|
143705
|
-
|
|
143836
|
+
logger.warn(`Static website "${siteName}" has no URL assigned yet. Excluding from ${context}.`);
|
|
143706
143837
|
return [];
|
|
143707
143838
|
}
|
|
143708
143839
|
} catch {
|
|
143709
|
-
|
|
143840
|
+
logger.warn(`Static website "${siteName}" not found for ${context} configuration. Excluding from ${context}.`);
|
|
143710
143841
|
return [];
|
|
143711
143842
|
}
|
|
143712
143843
|
}
|
|
@@ -143758,7 +143889,7 @@ function platformConfigPath() {
|
|
|
143758
143889
|
function readPlatformConfig() {
|
|
143759
143890
|
const configPath = platformConfigPath();
|
|
143760
143891
|
if (!fs$1.existsSync(configPath)) {
|
|
143761
|
-
|
|
143892
|
+
logger.warn(`Config not found at ${configPath}, migrating from tailorctl config...`);
|
|
143762
143893
|
const tcConfig = readTailorctlConfig();
|
|
143763
143894
|
const pfConfig = tcConfig ? fromTailorctlConfig(tcConfig) : {
|
|
143764
143895
|
version: 1,
|
|
@@ -143819,14 +143950,19 @@ function fromTailorctlConfig(config) {
|
|
|
143819
143950
|
current_user: currentUser
|
|
143820
143951
|
};
|
|
143821
143952
|
}
|
|
143953
|
+
function validateWorkspaceId(workspaceId, source) {
|
|
143954
|
+
const result = z.uuid().safeParse(workspaceId);
|
|
143955
|
+
if (!result.success) throw new Error(`Invalid workspace ID from ${source}: must be a valid UUID`);
|
|
143956
|
+
return result.data;
|
|
143957
|
+
}
|
|
143822
143958
|
function loadWorkspaceId(opts) {
|
|
143823
|
-
if (opts?.workspaceId) return opts.workspaceId;
|
|
143824
|
-
if (process.env.TAILOR_PLATFORM_WORKSPACE_ID) return process.env.TAILOR_PLATFORM_WORKSPACE_ID;
|
|
143959
|
+
if (opts?.workspaceId) return validateWorkspaceId(opts.workspaceId, "--workspace-id option");
|
|
143960
|
+
if (process.env.TAILOR_PLATFORM_WORKSPACE_ID) return validateWorkspaceId(process.env.TAILOR_PLATFORM_WORKSPACE_ID, "TAILOR_PLATFORM_WORKSPACE_ID environment variable");
|
|
143825
143961
|
const profile = opts?.profile || process.env.TAILOR_PLATFORM_PROFILE;
|
|
143826
143962
|
if (profile) {
|
|
143827
143963
|
const wsId = readPlatformConfig().profiles[profile]?.workspace_id;
|
|
143828
143964
|
if (!wsId) throw new Error(`Profile "${profile}" not found`);
|
|
143829
|
-
return wsId;
|
|
143965
|
+
return validateWorkspaceId(wsId, `profile "${profile}"`);
|
|
143830
143966
|
}
|
|
143831
143967
|
throw new Error(ml`
|
|
143832
143968
|
Workspace ID not found.
|
|
@@ -143835,7 +143971,10 @@ function loadWorkspaceId(opts) {
|
|
|
143835
143971
|
}
|
|
143836
143972
|
async function loadAccessToken(opts) {
|
|
143837
143973
|
if (process.env.TAILOR_PLATFORM_TOKEN) return process.env.TAILOR_PLATFORM_TOKEN;
|
|
143838
|
-
if (process.env.TAILOR_TOKEN)
|
|
143974
|
+
if (process.env.TAILOR_TOKEN) {
|
|
143975
|
+
logger.warn("TAILOR_TOKEN is deprecated. Please use TAILOR_PLATFORM_TOKEN instead.");
|
|
143976
|
+
return process.env.TAILOR_TOKEN;
|
|
143977
|
+
}
|
|
143839
143978
|
const pfConfig = readPlatformConfig();
|
|
143840
143979
|
let user;
|
|
143841
143980
|
const profile = opts?.useProfile ? opts.profile || process.env.TAILOR_PLATFORM_PROFILE : void 0;
|
|
@@ -144820,21 +144959,21 @@ function resolveTypeDefinitionPath(configPath) {
|
|
|
144820
144959
|
async function generateUserTypes(config, configPath) {
|
|
144821
144960
|
try {
|
|
144822
144961
|
const { attributeMap, attributeList } = extractAttributesFromConfig(config);
|
|
144823
|
-
if (!attributeMap && !attributeList)
|
|
144824
|
-
if (attributeMap)
|
|
144825
|
-
if (attributeList)
|
|
144962
|
+
if (!attributeMap && !attributeList) logger.info("No attributes found in configuration", { mode: "plain" });
|
|
144963
|
+
if (attributeMap) logger.debug(`Extracted AttributeMap: ${JSON.stringify(attributeMap)}`);
|
|
144964
|
+
if (attributeList) logger.debug(`Extracted AttributeList: ${JSON.stringify(attributeList)}`);
|
|
144826
144965
|
const env$1 = config.env;
|
|
144827
|
-
if (env$1)
|
|
144966
|
+
if (env$1) logger.debug(`Extracted Env: ${JSON.stringify(env$1)}`);
|
|
144828
144967
|
const typeDefContent = generateTypeDefinition(attributeMap, attributeList, env$1);
|
|
144829
144968
|
const outputPath = resolveTypeDefinitionPath(configPath);
|
|
144830
144969
|
fs$1.mkdirSync(path$1.dirname(outputPath), { recursive: true });
|
|
144831
144970
|
fs$1.writeFileSync(outputPath, typeDefContent);
|
|
144832
144971
|
const relativePath = path$1.relative(process.cwd(), outputPath);
|
|
144833
|
-
|
|
144834
|
-
|
|
144972
|
+
logger.newline();
|
|
144973
|
+
logger.success(`Generated type definitions: ${relativePath}`, { mode: "plain" });
|
|
144835
144974
|
} catch (error) {
|
|
144836
|
-
|
|
144837
|
-
|
|
144975
|
+
logger.error("Error generating types");
|
|
144976
|
+
logger.error(String(error));
|
|
144838
144977
|
}
|
|
144839
144978
|
}
|
|
144840
144979
|
function resolvePackageDirectory(startDir) {
|
|
@@ -144855,8 +144994,52 @@ function resolvePackageDirectory(startDir) {
|
|
|
144855
144994
|
}
|
|
144856
144995
|
}
|
|
144857
144996
|
|
|
144997
|
+
//#endregion
|
|
144998
|
+
//#region src/cli/utils/errors.ts
|
|
144999
|
+
/**
|
|
145000
|
+
* Type guard to check if an error is a CLIError
|
|
145001
|
+
*/
|
|
145002
|
+
function isCLIError(error) {
|
|
145003
|
+
return error instanceof Error && error.name === "CLIError";
|
|
145004
|
+
}
|
|
145005
|
+
|
|
144858
145006
|
//#endregion
|
|
144859
145007
|
//#region src/cli/args.ts
|
|
145008
|
+
/**
|
|
145009
|
+
* Check if a string is a valid UUID
|
|
145010
|
+
*/
|
|
145011
|
+
function isUUID(value$1) {
|
|
145012
|
+
return z.uuid().safeParse(value$1).success;
|
|
145013
|
+
}
|
|
145014
|
+
const durationUnits = [
|
|
145015
|
+
"ms",
|
|
145016
|
+
"s",
|
|
145017
|
+
"m"
|
|
145018
|
+
];
|
|
145019
|
+
const unitToMs = {
|
|
145020
|
+
ms: 1,
|
|
145021
|
+
s: 1e3,
|
|
145022
|
+
m: 60 * 1e3
|
|
145023
|
+
};
|
|
145024
|
+
/**
|
|
145025
|
+
* Schema for duration string validation (e.g., "3s", "500ms", "1m")
|
|
145026
|
+
* Transforms the string to milliseconds
|
|
145027
|
+
*/
|
|
145028
|
+
const durationSchema = z.templateLiteral([z.number().int().positive(), z.enum(durationUnits)]).transform((duration) => {
|
|
145029
|
+
const match = duration.match(/^(\d+)(ms|s|m)$/);
|
|
145030
|
+
const value$1 = parseInt(match[1], 10);
|
|
145031
|
+
const unit = match[2];
|
|
145032
|
+
return value$1 * unitToMs[unit];
|
|
145033
|
+
});
|
|
145034
|
+
/**
|
|
145035
|
+
* Parse a duration string (e.g., "3s", "500ms", "1m") to milliseconds
|
|
145036
|
+
*/
|
|
145037
|
+
function parseDuration(duration) {
|
|
145038
|
+
return durationSchema.parse(duration);
|
|
145039
|
+
}
|
|
145040
|
+
/**
|
|
145041
|
+
* Common arguments for all CLI commands
|
|
145042
|
+
*/
|
|
144860
145043
|
const commonArgs = {
|
|
144861
145044
|
"env-file": {
|
|
144862
145045
|
type: "string",
|
|
@@ -144870,27 +145053,68 @@ const commonArgs = {
|
|
|
144870
145053
|
default: false
|
|
144871
145054
|
}
|
|
144872
145055
|
};
|
|
145056
|
+
/**
|
|
145057
|
+
* Arguments for commands that require workspace context
|
|
145058
|
+
*/
|
|
145059
|
+
const workspaceArgs = {
|
|
145060
|
+
"workspace-id": {
|
|
145061
|
+
type: "string",
|
|
145062
|
+
description: "Workspace ID",
|
|
145063
|
+
alias: "w"
|
|
145064
|
+
},
|
|
145065
|
+
profile: {
|
|
145066
|
+
type: "string",
|
|
145067
|
+
description: "Workspace profile",
|
|
145068
|
+
alias: "p"
|
|
145069
|
+
}
|
|
145070
|
+
};
|
|
145071
|
+
/**
|
|
145072
|
+
* Arguments for commands that interact with deployed resources (includes config)
|
|
145073
|
+
*/
|
|
145074
|
+
const deploymentArgs = {
|
|
145075
|
+
...workspaceArgs,
|
|
145076
|
+
config: {
|
|
145077
|
+
type: "string",
|
|
145078
|
+
description: "Path to SDK config file",
|
|
145079
|
+
alias: "c",
|
|
145080
|
+
default: "tailor.config.ts"
|
|
145081
|
+
}
|
|
145082
|
+
};
|
|
145083
|
+
/**
|
|
145084
|
+
* Arguments for JSON output
|
|
145085
|
+
*/
|
|
145086
|
+
const jsonArgs = { json: {
|
|
145087
|
+
type: "boolean",
|
|
145088
|
+
description: "Output as JSON",
|
|
145089
|
+
alias: "j",
|
|
145090
|
+
default: false
|
|
145091
|
+
} };
|
|
145092
|
+
/**
|
|
145093
|
+
* Wrapper for command handlers that provides:
|
|
145094
|
+
* - Environment file loading
|
|
145095
|
+
* - Error handling with formatted output
|
|
145096
|
+
* - Exit code management
|
|
145097
|
+
*/
|
|
144873
145098
|
const withCommonArgs = (handler) => async ({ args }) => {
|
|
144874
145099
|
try {
|
|
145100
|
+
if ("json" in args && typeof args.json === "boolean") logger.jsonMode = args.json;
|
|
144875
145101
|
if (args["env-file"] !== void 0) {
|
|
144876
145102
|
const envPath = path$1.resolve(process.cwd(), args["env-file"]);
|
|
144877
145103
|
loadEnvFile(envPath);
|
|
144878
145104
|
}
|
|
144879
145105
|
await handler(args);
|
|
144880
145106
|
} catch (error) {
|
|
144881
|
-
if (error
|
|
144882
|
-
|
|
144883
|
-
if (args.verbose && error.stack)
|
|
144884
|
-
} else
|
|
145107
|
+
if (isCLIError(error)) {
|
|
145108
|
+
logger.log(error.format());
|
|
145109
|
+
if (args.verbose && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
145110
|
+
} else if (error instanceof Error) {
|
|
145111
|
+
logger.error(error.message);
|
|
145112
|
+
if (args.verbose && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
145113
|
+
} else logger.error(`Unknown error: ${error}`);
|
|
144885
145114
|
process.exit(1);
|
|
144886
145115
|
}
|
|
144887
145116
|
process.exit(0);
|
|
144888
145117
|
};
|
|
144889
|
-
const jsonArgs = { json: {
|
|
144890
|
-
type: "boolean",
|
|
144891
|
-
description: "Output as JSON",
|
|
144892
|
-
default: false
|
|
144893
|
-
} };
|
|
144894
145118
|
|
|
144895
145119
|
//#endregion
|
|
144896
145120
|
//#region src/cli/apply/services/label.ts
|
|
@@ -144919,17 +145143,20 @@ var ChangeSet = class {
|
|
|
144919
145143
|
constructor(title) {
|
|
144920
145144
|
this.title = title;
|
|
144921
145145
|
}
|
|
145146
|
+
isEmpty() {
|
|
145147
|
+
return this.creates.length === 0 && this.updates.length === 0 && this.deletes.length === 0;
|
|
145148
|
+
}
|
|
144922
145149
|
print() {
|
|
144923
|
-
if (this.
|
|
144924
|
-
|
|
145150
|
+
if (this.isEmpty()) return;
|
|
145151
|
+
logger.log(styles.bold(`${this.title}:`));
|
|
144925
145152
|
this.creates.forEach((item) => {
|
|
144926
|
-
|
|
145153
|
+
logger.log(` ${symbols.create} ${item.name}`);
|
|
144927
145154
|
});
|
|
144928
145155
|
this.deletes.forEach((item) => {
|
|
144929
|
-
|
|
145156
|
+
logger.log(` ${symbols.delete} ${item.name}`);
|
|
144930
145157
|
});
|
|
144931
145158
|
this.updates.forEach((item) => {
|
|
144932
|
-
|
|
145159
|
+
logger.log(` ${symbols.update} ${item.name}`);
|
|
144933
145160
|
});
|
|
144934
145161
|
}
|
|
144935
145162
|
};
|
|
@@ -146156,18 +146383,18 @@ function protoSCIMAttribute(attr) {
|
|
|
146156
146383
|
async function confirmOwnerConflict(conflicts, appName, yes) {
|
|
146157
146384
|
if (conflicts.length === 0) return;
|
|
146158
146385
|
const currentOwners = [...new Set(conflicts.map((c) => c.currentOwner))];
|
|
146159
|
-
|
|
146160
|
-
|
|
146161
|
-
|
|
146162
|
-
|
|
146163
|
-
|
|
146164
|
-
for (const c of conflicts)
|
|
146386
|
+
logger.warn("Application name mismatch detected:");
|
|
146387
|
+
logger.log(` ${styles.warning("Current application(s)")}: ${currentOwners.map((o) => styles.bold(`"${o}"`)).join(", ")}`);
|
|
146388
|
+
logger.log(` ${styles.success("New application")}: ${styles.bold(`"${appName}"`)}`);
|
|
146389
|
+
logger.newline();
|
|
146390
|
+
logger.log(` ${styles.info("Resources")}:`);
|
|
146391
|
+
for (const c of conflicts) logger.log(` • ${styles.bold(c.resourceType)} ${styles.info(`"${c.resourceName}"`)}`);
|
|
146165
146392
|
if (yes) {
|
|
146166
|
-
|
|
146393
|
+
logger.success("Updating resources (--yes flag specified)...", { mode: "plain" });
|
|
146167
146394
|
return;
|
|
146168
146395
|
}
|
|
146169
|
-
const promptMessage = currentOwners.length === 1 ? `Update these resources to be managed by "${appName}"?\n${
|
|
146170
|
-
if (!await
|
|
146396
|
+
const promptMessage = currentOwners.length === 1 ? `Update these resources to be managed by "${appName}"?\n${styles.dim("(Common when renaming your application)")}` : `Update these resources to be managed by "${appName}"?`;
|
|
146397
|
+
if (!await logger.prompt(promptMessage, {
|
|
146171
146398
|
type: "confirm",
|
|
146172
146399
|
initial: false
|
|
146173
146400
|
})) throw new Error(ml`
|
|
@@ -146177,16 +146404,16 @@ async function confirmOwnerConflict(conflicts, appName, yes) {
|
|
|
146177
146404
|
}
|
|
146178
146405
|
async function confirmUnmanagedResources(resources, appName, yes) {
|
|
146179
146406
|
if (resources.length === 0) return;
|
|
146180
|
-
|
|
146181
|
-
|
|
146182
|
-
for (const r of resources)
|
|
146183
|
-
|
|
146184
|
-
|
|
146407
|
+
logger.warn("Unmanaged resources detected:");
|
|
146408
|
+
logger.log(` ${styles.info("Resources")}:`);
|
|
146409
|
+
for (const r of resources) logger.log(` • ${styles.bold(r.resourceType)} ${styles.info(`"${r.resourceName}"`)}`);
|
|
146410
|
+
logger.newline();
|
|
146411
|
+
logger.log(" These resources are not managed by any application.");
|
|
146185
146412
|
if (yes) {
|
|
146186
|
-
|
|
146413
|
+
logger.success(`Adding to "${appName}" (--yes flag specified)...`, { mode: "plain" });
|
|
146187
146414
|
return;
|
|
146188
146415
|
}
|
|
146189
|
-
if (!await
|
|
146416
|
+
if (!await logger.prompt(`Add these resources to "${appName}"?`, {
|
|
146190
146417
|
type: "confirm",
|
|
146191
146418
|
initial: false
|
|
146192
146419
|
})) throw new Error(ml`
|
|
@@ -146196,16 +146423,16 @@ async function confirmUnmanagedResources(resources, appName, yes) {
|
|
|
146196
146423
|
}
|
|
146197
146424
|
async function confirmImportantResourceDeletion(resources, yes) {
|
|
146198
146425
|
if (resources.length === 0) return;
|
|
146199
|
-
|
|
146200
|
-
|
|
146201
|
-
for (const r of resources)
|
|
146202
|
-
|
|
146203
|
-
|
|
146426
|
+
logger.warn("The following resources will be deleted:");
|
|
146427
|
+
logger.log(` ${styles.info("Resources")}:`);
|
|
146428
|
+
for (const r of resources) logger.log(` • ${styles.bold(r.resourceType)} ${styles.error(`"${r.resourceName}"`)}`);
|
|
146429
|
+
logger.newline();
|
|
146430
|
+
logger.log(styles.warning(" Deleting these resources will permanently remove all associated data."));
|
|
146204
146431
|
if (yes) {
|
|
146205
|
-
|
|
146432
|
+
logger.success("Deleting resources (--yes flag specified)...", { mode: "plain" });
|
|
146206
146433
|
return;
|
|
146207
146434
|
}
|
|
146208
|
-
if (!await
|
|
146435
|
+
if (!await logger.prompt("Are you sure you want to delete these resources?", {
|
|
146209
146436
|
type: "confirm",
|
|
146210
146437
|
initial: false
|
|
146211
146438
|
})) throw new Error(ml`
|
|
@@ -146681,7 +146908,7 @@ function processResolver(resolver, executorUsedResolvers, env$1) {
|
|
|
146681
146908
|
try {
|
|
146682
146909
|
functionCode = fs$1.readFileSync(functionPath, "utf-8");
|
|
146683
146910
|
} catch {
|
|
146684
|
-
|
|
146911
|
+
logger.warn(`Function file not found: ${functionPath}`);
|
|
146685
146912
|
}
|
|
146686
146913
|
const pipelines = [{
|
|
146687
146914
|
name: "body",
|
|
@@ -147590,7 +147817,7 @@ async function apply(options) {
|
|
|
147590
147817
|
for (const pipeline$1 of application.resolverServices) await pipeline$1.loadResolvers();
|
|
147591
147818
|
if (application.executorService) await application.executorService.loadExecutors();
|
|
147592
147819
|
if (workflowResult) printLoadedWorkflows(workflowResult);
|
|
147593
|
-
|
|
147820
|
+
logger.newline();
|
|
147594
147821
|
const ctx = {
|
|
147595
147822
|
client,
|
|
147596
147823
|
workspaceId,
|
|
@@ -147653,7 +147880,7 @@ async function apply(options) {
|
|
|
147653
147880
|
}
|
|
147654
147881
|
});
|
|
147655
147882
|
if (dryRun) {
|
|
147656
|
-
|
|
147883
|
+
logger.info("Dry run enabled. No changes applied.");
|
|
147657
147884
|
return;
|
|
147658
147885
|
}
|
|
147659
147886
|
await applyTailorDB(client, tailorDB, "create-update");
|
|
@@ -147672,7 +147899,7 @@ async function apply(options) {
|
|
|
147672
147899
|
await applyIdP(client, idp, "delete");
|
|
147673
147900
|
await applyStaticWebsite(client, staticWebsite, "delete");
|
|
147674
147901
|
await applyTailorDB(client, tailorDB, "delete");
|
|
147675
|
-
|
|
147902
|
+
logger.success("Successfully applied changes.");
|
|
147676
147903
|
}
|
|
147677
147904
|
async function buildPipeline(namespace, config, triggerContext) {
|
|
147678
147905
|
await bundleResolvers(namespace, config, triggerContext);
|
|
@@ -147706,10 +147933,10 @@ const applyCommand = defineCommand({
|
|
|
147706
147933
|
alias: "c",
|
|
147707
147934
|
default: "tailor.config.ts"
|
|
147708
147935
|
},
|
|
147709
|
-
|
|
147936
|
+
"dry-run": {
|
|
147710
147937
|
type: "boolean",
|
|
147711
147938
|
description: "Run the command without making any changes",
|
|
147712
|
-
alias: "
|
|
147939
|
+
alias: "n"
|
|
147713
147940
|
},
|
|
147714
147941
|
yes: {
|
|
147715
147942
|
type: "boolean",
|
|
@@ -147722,7 +147949,7 @@ const applyCommand = defineCommand({
|
|
|
147722
147949
|
workspaceId: args["workspace-id"],
|
|
147723
147950
|
profile: args.profile,
|
|
147724
147951
|
configPath: args.config,
|
|
147725
|
-
dryRun: args
|
|
147952
|
+
dryRun: args["dry-run"],
|
|
147726
147953
|
yes: args.yes
|
|
147727
147954
|
});
|
|
147728
147955
|
})
|
|
@@ -147828,7 +148055,7 @@ var DependencyGraphManager = class {
|
|
|
147828
148055
|
try {
|
|
147829
148056
|
return this.madgeInstance.circular();
|
|
147830
148057
|
} catch (error) {
|
|
147831
|
-
|
|
148058
|
+
logger.warn(`Failed to detect circular dependencies: ${String(error)}`);
|
|
147832
148059
|
return [];
|
|
147833
148060
|
}
|
|
147834
148061
|
}
|
|
@@ -147932,19 +148159,19 @@ var DependencyWatcher = class {
|
|
|
147932
148159
|
...this.options.chokidarOptions
|
|
147933
148160
|
});
|
|
147934
148161
|
this.chokidarWatcher.on("add", (filePath) => {
|
|
147935
|
-
|
|
148162
|
+
logger.debug(`File added: ${filePath}`);
|
|
147936
148163
|
this.debounceFileChange("add", filePath);
|
|
147937
148164
|
});
|
|
147938
148165
|
this.chokidarWatcher.on("change", (filePath) => {
|
|
147939
|
-
|
|
148166
|
+
logger.debug(`File changed: ${filePath}`);
|
|
147940
148167
|
this.debounceFileChange("change", filePath);
|
|
147941
148168
|
});
|
|
147942
148169
|
this.chokidarWatcher.on("unlink", (filePath) => {
|
|
147943
|
-
|
|
148170
|
+
logger.debug(`File removed: ${filePath}`);
|
|
147944
148171
|
this.debounceFileChange("unlink", filePath);
|
|
147945
148172
|
});
|
|
147946
148173
|
this.chokidarWatcher.on("error", (error) => {
|
|
147947
|
-
|
|
148174
|
+
logger.error(`Watcher error: ${error instanceof Error ? error.message : String(error)}`, { mode: "stream" });
|
|
147948
148175
|
this.handleError(new WatcherError(`File watcher error: ${error instanceof Error ? error.message : String(error)}`, WatcherErrorCode.FILE_WATCH_FAILED, void 0, error instanceof Error ? error : void 0));
|
|
147949
148176
|
});
|
|
147950
148177
|
this.setupSignalHandlers();
|
|
@@ -147961,7 +148188,7 @@ var DependencyWatcher = class {
|
|
|
147961
148188
|
if (!this.isInitialized) await this.initialize();
|
|
147962
148189
|
const files = /* @__PURE__ */ new Set();
|
|
147963
148190
|
for (const pattern of patterns) {
|
|
147964
|
-
|
|
148191
|
+
logger.log(`${styles.dim(`Watch pattern for`)} ${styles.dim(groupId + ":")} ${path$1.relative(process.cwd(), pattern)}`);
|
|
147965
148192
|
for await (const file of glob(pattern)) files.add(path$1.resolve(file));
|
|
147966
148193
|
}
|
|
147967
148194
|
const watchGroup = {
|
|
@@ -148023,7 +148250,7 @@ var DependencyWatcher = class {
|
|
|
148023
148250
|
this.dependencyCache.clear();
|
|
148024
148251
|
if (this.options.detectCircularDependencies) {
|
|
148025
148252
|
const circularDeps = this.dependencyGraphManager.findCircularDependencies();
|
|
148026
|
-
if (circularDeps.length > 0)
|
|
148253
|
+
if (circularDeps.length > 0) logger.warn(`Circular dependencies detected: ${JSON.stringify(circularDeps)}`);
|
|
148027
148254
|
}
|
|
148028
148255
|
}
|
|
148029
148256
|
/**
|
|
@@ -148091,11 +148318,11 @@ var DependencyWatcher = class {
|
|
|
148091
148318
|
this.dependencyCache.clear();
|
|
148092
148319
|
const impactResult = this.calculateImpact(absolutePath);
|
|
148093
148320
|
if (impactResult.affectedGroups.length > 0) {
|
|
148094
|
-
|
|
148095
|
-
|
|
148096
|
-
|
|
148321
|
+
logger.warn("File change detected, restarting watch process...", { mode: "stream" });
|
|
148322
|
+
logger.info(`Changed file: ${absolutePath}`, { mode: "stream" });
|
|
148323
|
+
logger.info(`Affected groups: ${impactResult.affectedGroups.join(", ")}`, { mode: "stream" });
|
|
148097
148324
|
if (this.restartCallback) this.restartCallback();
|
|
148098
|
-
} else
|
|
148325
|
+
} else logger.debug(`No affected groups found for file: ${absolutePath}`);
|
|
148099
148326
|
} catch (error) {
|
|
148100
148327
|
this.handleError(new WatcherError(`Failed to handle file change: ${error instanceof Error ? error.message : String(error)}`, WatcherErrorCode.DEPENDENCY_ANALYSIS_FAILED, filePath, error instanceof Error ? error : void 0));
|
|
148101
148328
|
}
|
|
@@ -148104,10 +148331,10 @@ var DependencyWatcher = class {
|
|
|
148104
148331
|
return this.dependencyGraphManager.getDependents(changedFile);
|
|
148105
148332
|
}
|
|
148106
148333
|
findAffectedGroups(affectedFiles) {
|
|
148107
|
-
|
|
148334
|
+
logger.debug(`Finding affected groups for files: ${affectedFiles.join(", ")}`);
|
|
148108
148335
|
const affectedGroups = /* @__PURE__ */ new Set();
|
|
148109
148336
|
for (const [groupId, group] of this.watchGroups) for (const affectedFile of affectedFiles) if (group.files.has(affectedFile)) {
|
|
148110
|
-
|
|
148337
|
+
logger.debug(`Group ${groupId} is affected by file: ${affectedFile}`);
|
|
148111
148338
|
affectedGroups.add(groupId);
|
|
148112
148339
|
break;
|
|
148113
148340
|
}
|
|
@@ -148119,10 +148346,7 @@ var DependencyWatcher = class {
|
|
|
148119
148346
|
if (this.watchGroups.has(groupId)) throw new WatcherError(`Watch group with ID '${groupId}' already exists`, WatcherErrorCode.INVALID_WATCH_GROUP);
|
|
148120
148347
|
}
|
|
148121
148348
|
handleError(error) {
|
|
148122
|
-
|
|
148123
|
-
code: error.code,
|
|
148124
|
-
filePath: error.filePath
|
|
148125
|
-
});
|
|
148349
|
+
logger.error(`[DependencyWatcher] ${error.message} (code: ${error.code}, filePath: ${error.filePath})`);
|
|
148126
148350
|
if (this.errorCallback) this.errorCallback(error);
|
|
148127
148351
|
}
|
|
148128
148352
|
setCacheValue(key, value$1) {
|
|
@@ -148140,10 +148364,10 @@ var DependencyWatcher = class {
|
|
|
148140
148364
|
const handleSignal = async () => {
|
|
148141
148365
|
try {
|
|
148142
148366
|
await this.stop();
|
|
148143
|
-
|
|
148367
|
+
logger.info("Watcher stopped successfully");
|
|
148144
148368
|
process.exit(0);
|
|
148145
148369
|
} catch (error) {
|
|
148146
|
-
|
|
148370
|
+
logger.error(`Error during shutdown: ${String(error)}`);
|
|
148147
148371
|
process.exit(0);
|
|
148148
148372
|
}
|
|
148149
148373
|
};
|
|
@@ -148180,9 +148404,9 @@ var GenerationManager = class {
|
|
|
148180
148404
|
fs$1.mkdirSync(this.baseDir, { recursive: true });
|
|
148181
148405
|
}
|
|
148182
148406
|
async generate(watch) {
|
|
148183
|
-
|
|
148184
|
-
|
|
148185
|
-
|
|
148407
|
+
logger.newline();
|
|
148408
|
+
logger.log(`Generation for application: ${styles.highlight(this.application.config.name)}`);
|
|
148409
|
+
logger.newline();
|
|
148186
148410
|
const app = this.application;
|
|
148187
148411
|
for (const db of app.tailorDBServices) {
|
|
148188
148412
|
const namespace = db.namespace;
|
|
@@ -148193,8 +148417,8 @@ var GenerationManager = class {
|
|
|
148193
148417
|
sourceInfo: db.getTypeSourceInfo()
|
|
148194
148418
|
};
|
|
148195
148419
|
} catch (error) {
|
|
148196
|
-
|
|
148197
|
-
|
|
148420
|
+
logger.error(`${styles.error("Error loading types for TailorDB service")} ${styles.errorBright(namespace)}`);
|
|
148421
|
+
logger.error(String(error));
|
|
148198
148422
|
if (!watch) throw error;
|
|
148199
148423
|
}
|
|
148200
148424
|
}
|
|
@@ -148207,8 +148431,8 @@ var GenerationManager = class {
|
|
|
148207
148431
|
this.services.resolver[namespace][resolver.name] = resolver;
|
|
148208
148432
|
});
|
|
148209
148433
|
} catch (error) {
|
|
148210
|
-
|
|
148211
|
-
|
|
148434
|
+
logger.error(`${styles.error("Error loading resolvers for Resolver service")} ${styles.errorBright(namespace)}`);
|
|
148435
|
+
logger.error(String(error));
|
|
148212
148436
|
if (!watch) throw error;
|
|
148213
148437
|
}
|
|
148214
148438
|
}
|
|
@@ -148237,8 +148461,8 @@ var GenerationManager = class {
|
|
|
148237
148461
|
await this.processExecutors(gen);
|
|
148238
148462
|
await this.aggregate(gen);
|
|
148239
148463
|
} catch (error) {
|
|
148240
|
-
|
|
148241
|
-
|
|
148464
|
+
logger.error(`${styles.error("Error processing generator")} ${styles.errorBright(gen.id)}`);
|
|
148465
|
+
logger.error(String(error));
|
|
148242
148466
|
}
|
|
148243
148467
|
}
|
|
148244
148468
|
async processTailorDBNamespace(gen, namespace, typeInfo) {
|
|
@@ -148252,8 +148476,8 @@ var GenerationManager = class {
|
|
|
148252
148476
|
source: typeInfo.sourceInfo[typeName]
|
|
148253
148477
|
});
|
|
148254
148478
|
} catch (error) {
|
|
148255
|
-
|
|
148256
|
-
|
|
148479
|
+
logger.error(`${styles.error(`Error processing type`)} ${styles.errorBright(typeName)} ${styles.error(`in ${namespace} with generator ${gen.id}`)}`);
|
|
148480
|
+
logger.error(String(error));
|
|
148257
148481
|
}
|
|
148258
148482
|
}));
|
|
148259
148483
|
if (gen.processTailorDBNamespace) try {
|
|
@@ -148262,8 +148486,8 @@ var GenerationManager = class {
|
|
|
148262
148486
|
types: results.tailordbResults[namespace]
|
|
148263
148487
|
});
|
|
148264
148488
|
} catch (error) {
|
|
148265
|
-
|
|
148266
|
-
|
|
148489
|
+
logger.error(`${styles.error(`Error processing TailorDB namespace`)} ${styles.errorBright(namespace)} ${styles.error(`with generator ${gen.id}`)}`);
|
|
148490
|
+
logger.error(String(error));
|
|
148267
148491
|
}
|
|
148268
148492
|
else results.tailordbNamespaceResults[namespace] = results.tailordbResults[namespace];
|
|
148269
148493
|
}
|
|
@@ -148277,8 +148501,8 @@ var GenerationManager = class {
|
|
|
148277
148501
|
namespace
|
|
148278
148502
|
});
|
|
148279
148503
|
} catch (error) {
|
|
148280
|
-
|
|
148281
|
-
|
|
148504
|
+
logger.error(`${styles.error(`Error processing resolver`)} ${styles.errorBright(resolverName)} ${styles.error(`in ${namespace} with generator ${gen.id}`)}`);
|
|
148505
|
+
logger.error(String(error));
|
|
148282
148506
|
}
|
|
148283
148507
|
}));
|
|
148284
148508
|
if (gen.processResolverNamespace) try {
|
|
@@ -148287,8 +148511,8 @@ var GenerationManager = class {
|
|
|
148287
148511
|
resolvers: results.resolverResults[namespace]
|
|
148288
148512
|
});
|
|
148289
148513
|
} catch (error) {
|
|
148290
|
-
|
|
148291
|
-
|
|
148514
|
+
logger.error(`${styles.error(`Error processing Resolver namespace`)} ${styles.errorBright(namespace)} ${styles.error(`with generator ${gen.id}`)}`);
|
|
148515
|
+
logger.error(String(error));
|
|
148292
148516
|
}
|
|
148293
148517
|
else results.resolverNamespaceResults[namespace] = results.resolverResults[namespace];
|
|
148294
148518
|
}
|
|
@@ -148298,8 +148522,8 @@ var GenerationManager = class {
|
|
|
148298
148522
|
try {
|
|
148299
148523
|
results.executorResults[executorId] = await gen.processExecutor(executor);
|
|
148300
148524
|
} catch (error) {
|
|
148301
|
-
|
|
148302
|
-
|
|
148525
|
+
logger.error(`${styles.error(`Error processing executor`)} ${styles.errorBright(executor.name)} ${styles.error(`with generator ${gen.id}`)}`);
|
|
148526
|
+
logger.error(String(error));
|
|
148303
148527
|
}
|
|
148304
148528
|
}));
|
|
148305
148529
|
}
|
|
@@ -148347,23 +148571,23 @@ var GenerationManager = class {
|
|
|
148347
148571
|
return new Promise((resolve$9, reject$2) => {
|
|
148348
148572
|
if (file.skipIfExists && fs$1.existsSync(file.path)) {
|
|
148349
148573
|
const relativePath = path$1.relative(process.cwd(), file.path);
|
|
148350
|
-
|
|
148574
|
+
logger.debug(`${gen.id} | skip existing: ${relativePath}`);
|
|
148351
148575
|
return resolve$9();
|
|
148352
148576
|
}
|
|
148353
148577
|
fs$1.writeFile(file.path, file.content, (err) => {
|
|
148354
148578
|
if (err) {
|
|
148355
148579
|
const relativePath = path$1.relative(process.cwd(), file.path);
|
|
148356
|
-
|
|
148357
|
-
|
|
148580
|
+
logger.error(`${styles.error("Error writing file")} ${styles.errorBright(relativePath)}`);
|
|
148581
|
+
logger.error(String(err));
|
|
148358
148582
|
reject$2(err);
|
|
148359
148583
|
} else {
|
|
148360
148584
|
const relativePath = path$1.relative(process.cwd(), file.path);
|
|
148361
|
-
|
|
148585
|
+
logger.log(`${gen.id} | generate: ${styles.success(relativePath)}`);
|
|
148362
148586
|
if (file.executable) fs$1.chmod(file.path, 493, (chmodErr) => {
|
|
148363
148587
|
if (chmodErr) {
|
|
148364
148588
|
const relativePath$1 = path$1.relative(process.cwd(), file.path);
|
|
148365
|
-
|
|
148366
|
-
|
|
148589
|
+
logger.error(`${styles.error("Error setting executable permission on")} ${styles.errorBright(relativePath$1)}`);
|
|
148590
|
+
logger.error(String(chmodErr));
|
|
148367
148591
|
reject$2(chmodErr);
|
|
148368
148592
|
} else resolve$9();
|
|
148369
148593
|
});
|
|
@@ -148372,7 +148596,7 @@ var GenerationManager = class {
|
|
|
148372
148596
|
});
|
|
148373
148597
|
});
|
|
148374
148598
|
}));
|
|
148375
|
-
|
|
148599
|
+
logger.newline();
|
|
148376
148600
|
}
|
|
148377
148601
|
watcher = null;
|
|
148378
148602
|
async watch() {
|
|
@@ -148393,9 +148617,9 @@ var GenerationManager = class {
|
|
|
148393
148617
|
await new Promise(() => {});
|
|
148394
148618
|
}
|
|
148395
148619
|
async restartWatchProcess() {
|
|
148396
|
-
|
|
148397
|
-
|
|
148398
|
-
|
|
148620
|
+
logger.newline();
|
|
148621
|
+
logger.warn("Restarting watch process to clear module cache...", { mode: "stream" });
|
|
148622
|
+
logger.newline();
|
|
148399
148623
|
if (this.watcher) await this.watcher.stop();
|
|
148400
148624
|
const args = process.argv.slice(2);
|
|
148401
148625
|
const env$1 = {
|
|
@@ -148441,7 +148665,7 @@ const generateCommand = defineCommand({
|
|
|
148441
148665
|
watch: {
|
|
148442
148666
|
type: "boolean",
|
|
148443
148667
|
description: "Watch for type/resolver changes and regenerate",
|
|
148444
|
-
alias: "
|
|
148668
|
+
alias: "W",
|
|
148445
148669
|
default: false
|
|
148446
148670
|
}
|
|
148447
148671
|
},
|
|
@@ -148454,7 +148678,7 @@ const generateCommand = defineCommand({
|
|
|
148454
148678
|
});
|
|
148455
148679
|
|
|
148456
148680
|
//#endregion
|
|
148457
|
-
//#region src/cli/format.ts
|
|
148681
|
+
//#region src/cli/utils/format.ts
|
|
148458
148682
|
function humanizeRelativeTime(isoString) {
|
|
148459
148683
|
const date$1 = new Date(isoString);
|
|
148460
148684
|
if (Number.isNaN(date$1.getTime())) return isoString;
|
|
@@ -148643,19 +148867,20 @@ const removeCommand = defineCommand({
|
|
|
148643
148867
|
profile: args.profile,
|
|
148644
148868
|
configPath: args.config
|
|
148645
148869
|
});
|
|
148646
|
-
|
|
148870
|
+
logger.info(`Planning removal of resources managed by "${application.name}"...`);
|
|
148871
|
+
logger.newline();
|
|
148647
148872
|
await execRemove(client, workspaceId, application, async () => {
|
|
148648
148873
|
if (!args.yes) {
|
|
148649
|
-
if (!await
|
|
148874
|
+
if (!await logger.prompt("Are you sure you want to remove all resources?", {
|
|
148650
148875
|
type: "confirm",
|
|
148651
148876
|
initial: false
|
|
148652
148877
|
})) throw new Error(ml`
|
|
148653
148878
|
Remove cancelled. No resources were deleted.
|
|
148654
148879
|
To override, run again and confirm, or use --yes flag.
|
|
148655
148880
|
`);
|
|
148656
|
-
} else
|
|
148881
|
+
} else logger.success("Removing all resources (--yes flag specified)...");
|
|
148657
148882
|
});
|
|
148658
|
-
|
|
148883
|
+
logger.success(`Successfully removed all resources managed by "${application.name}".`);
|
|
148659
148884
|
})
|
|
148660
148885
|
});
|
|
148661
148886
|
|
|
@@ -148673,29 +148898,35 @@ const workspaceInfo = (workspace) => {
|
|
|
148673
148898
|
|
|
148674
148899
|
//#endregion
|
|
148675
148900
|
//#region src/cli/workspace/create.ts
|
|
148676
|
-
|
|
148677
|
-
|
|
148678
|
-
|
|
148679
|
-
|
|
148680
|
-
|
|
148901
|
+
/**
|
|
148902
|
+
* Schema for workspace creation options
|
|
148903
|
+
* - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
|
|
148904
|
+
* - organizationId, folderId: optional UUIDs
|
|
148905
|
+
*/
|
|
148906
|
+
const createWorkspaceOptionsSchema = z.object({
|
|
148907
|
+
name: z.string().min(3, "Name must be at least 3 characters").max(63, "Name must be at most 63 characters").regex(/^[a-z0-9-]+$/, "Name can only contain lowercase letters, numbers, and hyphens").refine((n) => !n.startsWith("-") && !n.endsWith("-"), "Name cannot start or end with a hyphen"),
|
|
148908
|
+
region: z.string(),
|
|
148909
|
+
deleteProtection: z.boolean().optional(),
|
|
148910
|
+
organizationId: z.uuid().optional(),
|
|
148911
|
+
folderId: z.uuid().optional()
|
|
148912
|
+
});
|
|
148681
148913
|
const validateRegion = async (region, client) => {
|
|
148682
148914
|
const availableRegions = await client.listAvailableWorkspaceRegions({});
|
|
148683
148915
|
if (!availableRegions.regions.includes(region)) throw new Error(`Region must be one of: ${availableRegions.regions.join(", ")}.`);
|
|
148684
148916
|
};
|
|
148685
148917
|
async function createWorkspace(options) {
|
|
148918
|
+
const result = createWorkspaceOptionsSchema.safeParse(options);
|
|
148919
|
+
if (!result.success) throw new Error(result.error.issues[0].message);
|
|
148920
|
+
const validated$1 = result.data;
|
|
148686
148921
|
const accessToken = await loadAccessToken();
|
|
148687
148922
|
const client = await initOperatorClient(accessToken);
|
|
148688
|
-
|
|
148689
|
-
await validateRegion(options.region, client);
|
|
148690
|
-
const deleteProtection = options.deleteProtection ?? false;
|
|
148691
|
-
if (options.organizationId && !validate(options.organizationId)) throw new Error(`Organization ID must be a valid UUID.`);
|
|
148692
|
-
if (options.folderId && !validate(options.folderId)) throw new Error(`Folder ID must be a valid UUID.`);
|
|
148923
|
+
await validateRegion(validated$1.region, client);
|
|
148693
148924
|
const resp = await client.createWorkspace({
|
|
148694
|
-
workspaceName:
|
|
148695
|
-
workspaceRegion:
|
|
148696
|
-
deleteProtection,
|
|
148697
|
-
organizationId:
|
|
148698
|
-
folderId:
|
|
148925
|
+
workspaceName: validated$1.name,
|
|
148926
|
+
workspaceRegion: validated$1.region,
|
|
148927
|
+
deleteProtection: validated$1.deleteProtection ?? false,
|
|
148928
|
+
organizationId: validated$1.organizationId,
|
|
148929
|
+
folderId: validated$1.folderId
|
|
148699
148930
|
});
|
|
148700
148931
|
return workspaceInfo(resp.workspace);
|
|
148701
148932
|
}
|
|
@@ -148711,7 +148942,7 @@ const createCommand = defineCommand({
|
|
|
148711
148942
|
type: "string",
|
|
148712
148943
|
description: "Workspace name",
|
|
148713
148944
|
required: true,
|
|
148714
|
-
alias: "
|
|
148945
|
+
alias: "N"
|
|
148715
148946
|
},
|
|
148716
148947
|
region: {
|
|
148717
148948
|
type: "string",
|
|
@@ -148722,7 +148953,7 @@ const createCommand = defineCommand({
|
|
|
148722
148953
|
"delete-protection": {
|
|
148723
148954
|
type: "boolean",
|
|
148724
148955
|
description: "Enable delete protection",
|
|
148725
|
-
alias: "
|
|
148956
|
+
alias: "D",
|
|
148726
148957
|
default: false
|
|
148727
148958
|
},
|
|
148728
148959
|
"organization-id": {
|
|
@@ -148744,7 +148975,7 @@ const createCommand = defineCommand({
|
|
|
148744
148975
|
organizationId: args["organization-id"],
|
|
148745
148976
|
folderId: args["folder-id"]
|
|
148746
148977
|
});
|
|
148747
|
-
if (!args.json)
|
|
148978
|
+
if (!args.json) logger.success(`Workspace "${args.name}" created successfully.`);
|
|
148748
148979
|
printData(workspace, args.json);
|
|
148749
148980
|
})
|
|
148750
148981
|
});
|
|
@@ -148785,6 +149016,7 @@ const listCommand$3 = defineCommand({
|
|
|
148785
149016
|
...jsonArgs,
|
|
148786
149017
|
limit: {
|
|
148787
149018
|
type: "string",
|
|
149019
|
+
alias: "l",
|
|
148788
149020
|
description: "Maximum number of workspaces to list"
|
|
148789
149021
|
}
|
|
148790
149022
|
},
|
|
@@ -148806,13 +149038,14 @@ const listCommand$3 = defineCommand({
|
|
|
148806
149038
|
|
|
148807
149039
|
//#endregion
|
|
148808
149040
|
//#region src/cli/workspace/delete.ts
|
|
149041
|
+
const deleteWorkspaceOptionsSchema = z.object({ workspaceId: z.uuid({ message: "workspace-id must be a valid UUID" }) });
|
|
148809
149042
|
async function loadOptions(options) {
|
|
149043
|
+
const result = deleteWorkspaceOptionsSchema.safeParse(options);
|
|
149044
|
+
if (!result.success) throw new Error(result.error.issues[0].message);
|
|
148810
149045
|
const accessToken = await loadAccessToken();
|
|
148811
|
-
const client = await initOperatorClient(accessToken);
|
|
148812
|
-
if (!validate(options.workspaceId)) throw new Error(`Workspace ID "${options.workspaceId}" is not a valid UUID.`);
|
|
148813
149046
|
return {
|
|
148814
|
-
client,
|
|
148815
|
-
workspaceId:
|
|
149047
|
+
client: await initOperatorClient(accessToken),
|
|
149048
|
+
workspaceId: result.data.workspaceId
|
|
148816
149049
|
};
|
|
148817
149050
|
}
|
|
148818
149051
|
async function deleteWorkspace(options) {
|
|
@@ -148848,13 +149081,13 @@ const deleteCommand = defineCommand({
|
|
|
148848
149081
|
throw new Error(`Workspace "${workspaceId}" not found.`);
|
|
148849
149082
|
}
|
|
148850
149083
|
if (!args.yes) {
|
|
148851
|
-
if (await
|
|
148852
|
-
|
|
149084
|
+
if (await logger.prompt(`Enter the workspace name to confirm deletion (${workspace.workspace?.name}):`, { type: "text" }) !== workspace.workspace?.name) {
|
|
149085
|
+
logger.info("Workspace deletion cancelled.");
|
|
148853
149086
|
return;
|
|
148854
149087
|
}
|
|
148855
149088
|
}
|
|
148856
149089
|
await client.deleteWorkspace({ workspaceId });
|
|
148857
|
-
|
|
149090
|
+
logger.success(`Workspace "${args["workspace-id"]}" deleted successfully.`);
|
|
148858
149091
|
})
|
|
148859
149092
|
});
|
|
148860
149093
|
|
|
@@ -148902,22 +149135,7 @@ const listCommand$2 = defineCommand({
|
|
|
148902
149135
|
args: {
|
|
148903
149136
|
...commonArgs,
|
|
148904
149137
|
...jsonArgs,
|
|
148905
|
-
|
|
148906
|
-
type: "string",
|
|
148907
|
-
description: "Workspace ID",
|
|
148908
|
-
alias: "w"
|
|
148909
|
-
},
|
|
148910
|
-
profile: {
|
|
148911
|
-
type: "string",
|
|
148912
|
-
description: "Workspace profile",
|
|
148913
|
-
alias: "p"
|
|
148914
|
-
},
|
|
148915
|
-
config: {
|
|
148916
|
-
type: "string",
|
|
148917
|
-
description: "Path to SDK config file",
|
|
148918
|
-
alias: "c",
|
|
148919
|
-
default: "tailor.config.ts"
|
|
148920
|
-
}
|
|
149138
|
+
...deploymentArgs
|
|
148921
149139
|
},
|
|
148922
149140
|
run: withCommonArgs(async (args) => {
|
|
148923
149141
|
const machineUsers = await listMachineUsers({
|
|
@@ -148970,22 +149188,7 @@ const tokenCommand = defineCommand({
|
|
|
148970
149188
|
args: {
|
|
148971
149189
|
...commonArgs,
|
|
148972
149190
|
...jsonArgs,
|
|
148973
|
-
|
|
148974
|
-
type: "string",
|
|
148975
|
-
description: "Workspace ID",
|
|
148976
|
-
alias: "w"
|
|
148977
|
-
},
|
|
148978
|
-
profile: {
|
|
148979
|
-
type: "string",
|
|
148980
|
-
description: "Workspace profile",
|
|
148981
|
-
alias: "p"
|
|
148982
|
-
},
|
|
148983
|
-
config: {
|
|
148984
|
-
type: "string",
|
|
148985
|
-
description: "Path to SDK config file",
|
|
148986
|
-
alias: "c",
|
|
148987
|
-
default: "tailor.config.ts"
|
|
148988
|
-
},
|
|
149191
|
+
...deploymentArgs,
|
|
148989
149192
|
name: {
|
|
148990
149193
|
type: "positional",
|
|
148991
149194
|
description: "Machine user name",
|
|
@@ -149077,26 +149280,11 @@ const getCommand$1 = defineCommand({
|
|
|
149077
149280
|
args: {
|
|
149078
149281
|
...commonArgs,
|
|
149079
149282
|
...jsonArgs,
|
|
149283
|
+
...deploymentArgs,
|
|
149080
149284
|
name: {
|
|
149081
149285
|
type: "positional",
|
|
149082
149286
|
description: "OAuth2 client name",
|
|
149083
149287
|
required: true
|
|
149084
|
-
},
|
|
149085
|
-
"workspace-id": {
|
|
149086
|
-
type: "string",
|
|
149087
|
-
description: "Workspace ID",
|
|
149088
|
-
alias: "w"
|
|
149089
|
-
},
|
|
149090
|
-
profile: {
|
|
149091
|
-
type: "string",
|
|
149092
|
-
description: "Workspace profile",
|
|
149093
|
-
alias: "p"
|
|
149094
|
-
},
|
|
149095
|
-
config: {
|
|
149096
|
-
type: "string",
|
|
149097
|
-
description: "Path to SDK config file",
|
|
149098
|
-
alias: "c",
|
|
149099
|
-
default: "tailor.config.ts"
|
|
149100
149288
|
}
|
|
149101
149289
|
},
|
|
149102
149290
|
run: withCommonArgs(async (args) => {
|
|
@@ -149145,22 +149333,7 @@ const listCommand$1 = defineCommand({
|
|
|
149145
149333
|
args: {
|
|
149146
149334
|
...commonArgs,
|
|
149147
149335
|
...jsonArgs,
|
|
149148
|
-
|
|
149149
|
-
type: "string",
|
|
149150
|
-
description: "Workspace ID",
|
|
149151
|
-
alias: "w"
|
|
149152
|
-
},
|
|
149153
|
-
profile: {
|
|
149154
|
-
type: "string",
|
|
149155
|
-
description: "Workspace profile",
|
|
149156
|
-
alias: "p"
|
|
149157
|
-
},
|
|
149158
|
-
config: {
|
|
149159
|
-
type: "string",
|
|
149160
|
-
description: "Path to SDK config file",
|
|
149161
|
-
alias: "c",
|
|
149162
|
-
default: "tailor.config.ts"
|
|
149163
|
-
}
|
|
149336
|
+
...deploymentArgs
|
|
149164
149337
|
},
|
|
149165
149338
|
run: withCommonArgs(async (args) => {
|
|
149166
149339
|
const oauth2Clients = await listOAuth2Clients({
|
|
@@ -149262,26 +149435,17 @@ const listCommand = defineCommand({
|
|
|
149262
149435
|
args: {
|
|
149263
149436
|
...commonArgs,
|
|
149264
149437
|
...jsonArgs,
|
|
149265
|
-
|
|
149266
|
-
type: "string",
|
|
149267
|
-
description: "Workspace ID",
|
|
149268
|
-
alias: "w"
|
|
149269
|
-
},
|
|
149270
|
-
profile: {
|
|
149271
|
-
type: "string",
|
|
149272
|
-
description: "Workspace profile",
|
|
149273
|
-
alias: "p"
|
|
149274
|
-
}
|
|
149438
|
+
...workspaceArgs
|
|
149275
149439
|
},
|
|
149276
149440
|
run: withCommonArgs(async (args) => {
|
|
149277
149441
|
const workflows = await listWorkflows({
|
|
149278
149442
|
workspaceId: args["workspace-id"],
|
|
149279
149443
|
profile: args.profile
|
|
149280
149444
|
});
|
|
149281
|
-
if (args.json)
|
|
149445
|
+
if (args.json) printData(workflows, args.json);
|
|
149282
149446
|
else {
|
|
149283
149447
|
if (workflows.length === 0) {
|
|
149284
|
-
|
|
149448
|
+
logger.info("No workflows found.");
|
|
149285
149449
|
return;
|
|
149286
149450
|
}
|
|
149287
149451
|
const headers = [
|
|
@@ -149303,10 +149467,6 @@ const listCommand = defineCommand({
|
|
|
149303
149467
|
|
|
149304
149468
|
//#endregion
|
|
149305
149469
|
//#region src/cli/workflow/get.ts
|
|
149306
|
-
const UUID_REGEX$1 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
149307
|
-
function isUUID$1(value$1) {
|
|
149308
|
-
return UUID_REGEX$1.test(value$1);
|
|
149309
|
-
}
|
|
149310
149470
|
async function getWorkflow(options) {
|
|
149311
149471
|
const accessToken = await loadAccessToken({
|
|
149312
149472
|
useProfile: true,
|
|
@@ -149318,7 +149478,7 @@ async function getWorkflow(options) {
|
|
|
149318
149478
|
profile: options.profile
|
|
149319
149479
|
});
|
|
149320
149480
|
try {
|
|
149321
|
-
if (isUUID
|
|
149481
|
+
if (isUUID(options.nameOrId)) {
|
|
149322
149482
|
const { workflow: workflow$1 } = await client.getWorkflow({
|
|
149323
149483
|
workspaceId,
|
|
149324
149484
|
workflowId: options.nameOrId
|
|
@@ -149345,20 +149505,11 @@ const getCommand = defineCommand({
|
|
|
149345
149505
|
args: {
|
|
149346
149506
|
...commonArgs,
|
|
149347
149507
|
...jsonArgs,
|
|
149508
|
+
...workspaceArgs,
|
|
149348
149509
|
nameOrId: {
|
|
149349
149510
|
type: "positional",
|
|
149350
149511
|
description: "Workflow name or ID",
|
|
149351
149512
|
required: true
|
|
149352
|
-
},
|
|
149353
|
-
"workspace-id": {
|
|
149354
|
-
type: "string",
|
|
149355
|
-
description: "Workspace ID",
|
|
149356
|
-
alias: "w"
|
|
149357
|
-
},
|
|
149358
|
-
profile: {
|
|
149359
|
-
type: "string",
|
|
149360
|
-
description: "Workspace profile",
|
|
149361
|
-
alias: "p"
|
|
149362
149513
|
}
|
|
149363
149514
|
},
|
|
149364
149515
|
run: withCommonArgs(async (args) => {
|
|
@@ -149373,10 +149524,6 @@ const getCommand = defineCommand({
|
|
|
149373
149524
|
|
|
149374
149525
|
//#endregion
|
|
149375
149526
|
//#region src/cli/workflow/start.ts
|
|
149376
|
-
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
149377
|
-
function isUUID(value$1) {
|
|
149378
|
-
return UUID_REGEX.test(value$1);
|
|
149379
|
-
}
|
|
149380
149527
|
function sleep$1(ms) {
|
|
149381
149528
|
return new Promise((resolve$9) => setTimeout(resolve$9, ms));
|
|
149382
149529
|
}
|
|
@@ -149386,32 +149533,19 @@ function formatTime$1(date$1) {
|
|
|
149386
149533
|
function colorizeStatus$1(status) {
|
|
149387
149534
|
const statusText = WorkflowExecution_Status[status];
|
|
149388
149535
|
switch (status) {
|
|
149389
|
-
case WorkflowExecution_Status.PENDING: return
|
|
149390
|
-
case WorkflowExecution_Status.PENDING_RESUME: return
|
|
149391
|
-
case WorkflowExecution_Status.RUNNING: return
|
|
149392
|
-
case WorkflowExecution_Status.SUCCESS: return
|
|
149393
|
-
case WorkflowExecution_Status.FAILED: return
|
|
149536
|
+
case WorkflowExecution_Status.PENDING: return styles.dim(statusText);
|
|
149537
|
+
case WorkflowExecution_Status.PENDING_RESUME: return styles.warning(statusText);
|
|
149538
|
+
case WorkflowExecution_Status.RUNNING: return styles.info(statusText);
|
|
149539
|
+
case WorkflowExecution_Status.SUCCESS: return styles.success(statusText);
|
|
149540
|
+
case WorkflowExecution_Status.FAILED: return styles.error(statusText);
|
|
149394
149541
|
default: return statusText;
|
|
149395
149542
|
}
|
|
149396
149543
|
}
|
|
149397
|
-
function parseDuration(duration) {
|
|
149398
|
-
const match = duration.match(/^(\d+)(s|ms|m)$/);
|
|
149399
|
-
if (!match) throw new Error(`Invalid duration format: ${duration}. Use format like '3s', '500ms', or '1m'.`);
|
|
149400
|
-
const value$1 = parseInt(match[1], 10);
|
|
149401
|
-
const unit = match[2];
|
|
149402
|
-
switch (unit) {
|
|
149403
|
-
case "ms": return value$1;
|
|
149404
|
-
case "s": return value$1 * 1e3;
|
|
149405
|
-
case "m": return value$1 * 60 * 1e3;
|
|
149406
|
-
default: throw new Error(`Unknown duration unit: ${unit}`);
|
|
149407
|
-
}
|
|
149408
|
-
}
|
|
149409
149544
|
async function waitForExecution(options) {
|
|
149410
|
-
const { client, workspaceId, executionId, interval,
|
|
149411
|
-
if (format$2 !== "json") consola.info(`Execution ID: ${executionId}`);
|
|
149545
|
+
const { client, workspaceId, executionId, interval, showProgress, trackJobs } = options;
|
|
149412
149546
|
let lastStatus;
|
|
149413
149547
|
let lastRunningJobs;
|
|
149414
|
-
const spinner =
|
|
149548
|
+
const spinner = showProgress ? ora().start("Waiting...") : null;
|
|
149415
149549
|
try {
|
|
149416
149550
|
while (true) {
|
|
149417
149551
|
const { execution } = await client.getWorkflowExecution({
|
|
@@ -149425,9 +149559,9 @@ async function waitForExecution(options) {
|
|
|
149425
149559
|
const now = formatTime$1(/* @__PURE__ */ new Date());
|
|
149426
149560
|
const coloredStatus = colorizeStatus$1(execution.status);
|
|
149427
149561
|
if (execution.status !== lastStatus) {
|
|
149428
|
-
if (
|
|
149562
|
+
if (showProgress) {
|
|
149429
149563
|
spinner?.stop();
|
|
149430
|
-
|
|
149564
|
+
logger.info(`Status: ${coloredStatus}`, { mode: "stream" });
|
|
149431
149565
|
spinner?.start(`Polling...`);
|
|
149432
149566
|
}
|
|
149433
149567
|
lastStatus = execution.status;
|
|
@@ -149435,9 +149569,9 @@ async function waitForExecution(options) {
|
|
|
149435
149569
|
if (trackJobs && execution.status === WorkflowExecution_Status.RUNNING) {
|
|
149436
149570
|
const runningJobs = getRunningJobs(execution);
|
|
149437
149571
|
if (runningJobs && runningJobs !== lastRunningJobs) {
|
|
149438
|
-
if (
|
|
149572
|
+
if (showProgress) {
|
|
149439
149573
|
spinner?.stop();
|
|
149440
|
-
|
|
149574
|
+
logger.info(`Job | ${runningJobs}: ${coloredStatus}`, { mode: "stream" });
|
|
149441
149575
|
spinner?.start(`Polling...`);
|
|
149442
149576
|
}
|
|
149443
149577
|
lastRunningJobs = runningJobs;
|
|
@@ -149503,12 +149637,12 @@ async function startWorkflow(options) {
|
|
|
149503
149637
|
});
|
|
149504
149638
|
return {
|
|
149505
149639
|
executionId,
|
|
149506
|
-
wait: () => waitForExecution({
|
|
149640
|
+
wait: (waitOptions) => waitForExecution({
|
|
149507
149641
|
client,
|
|
149508
149642
|
workspaceId,
|
|
149509
149643
|
executionId,
|
|
149510
149644
|
interval: options.interval ?? 3e3,
|
|
149511
|
-
|
|
149645
|
+
showProgress: waitOptions?.showProgress,
|
|
149512
149646
|
trackJobs: true
|
|
149513
149647
|
})
|
|
149514
149648
|
};
|
|
@@ -149525,6 +149659,7 @@ const startCommand = defineCommand({
|
|
|
149525
149659
|
args: {
|
|
149526
149660
|
...commonArgs,
|
|
149527
149661
|
...jsonArgs,
|
|
149662
|
+
...deploymentArgs,
|
|
149528
149663
|
nameOrId: {
|
|
149529
149664
|
type: "positional",
|
|
149530
149665
|
description: "Workflow name or ID",
|
|
@@ -149539,26 +149674,11 @@ const startCommand = defineCommand({
|
|
|
149539
149674
|
arg: {
|
|
149540
149675
|
type: "string",
|
|
149541
149676
|
description: "Workflow argument (JSON string)",
|
|
149542
|
-
alias: "
|
|
149543
|
-
},
|
|
149544
|
-
"workspace-id": {
|
|
149545
|
-
type: "string",
|
|
149546
|
-
description: "Workspace ID",
|
|
149547
|
-
alias: "w"
|
|
149548
|
-
},
|
|
149549
|
-
profile: {
|
|
149550
|
-
type: "string",
|
|
149551
|
-
description: "Workspace profile",
|
|
149552
|
-
alias: "p"
|
|
149553
|
-
},
|
|
149554
|
-
config: {
|
|
149555
|
-
type: "string",
|
|
149556
|
-
description: "Path to SDK config file",
|
|
149557
|
-
alias: "c",
|
|
149558
|
-
default: "tailor.config.ts"
|
|
149677
|
+
alias: "a"
|
|
149559
149678
|
},
|
|
149560
149679
|
wait: {
|
|
149561
149680
|
type: "boolean",
|
|
149681
|
+
alias: "W",
|
|
149562
149682
|
description: "Wait for execution to complete",
|
|
149563
149683
|
default: false
|
|
149564
149684
|
},
|
|
@@ -149579,9 +149699,9 @@ const startCommand = defineCommand({
|
|
|
149579
149699
|
configPath: args.config,
|
|
149580
149700
|
interval
|
|
149581
149701
|
});
|
|
149582
|
-
if (!args.json)
|
|
149702
|
+
if (!args.json) logger.info(`Execution ID: ${executionId}`, { mode: "stream" });
|
|
149583
149703
|
if (args.wait) {
|
|
149584
|
-
const result = await wait();
|
|
149704
|
+
const result = await wait({ showProgress: !args.json });
|
|
149585
149705
|
printData(result, args.json);
|
|
149586
149706
|
} else printData({ executionId }, args.json);
|
|
149587
149707
|
})
|
|
@@ -149598,11 +149718,11 @@ function formatTime(date$1) {
|
|
|
149598
149718
|
function colorizeStatus(status) {
|
|
149599
149719
|
const statusText = WorkflowExecution_Status[status];
|
|
149600
149720
|
switch (status) {
|
|
149601
|
-
case WorkflowExecution_Status.PENDING: return
|
|
149602
|
-
case WorkflowExecution_Status.PENDING_RESUME: return
|
|
149603
|
-
case WorkflowExecution_Status.RUNNING: return
|
|
149604
|
-
case WorkflowExecution_Status.SUCCESS: return
|
|
149605
|
-
case WorkflowExecution_Status.FAILED: return
|
|
149721
|
+
case WorkflowExecution_Status.PENDING: return styles.dim(statusText);
|
|
149722
|
+
case WorkflowExecution_Status.PENDING_RESUME: return styles.warning(statusText);
|
|
149723
|
+
case WorkflowExecution_Status.RUNNING: return styles.info(statusText);
|
|
149724
|
+
case WorkflowExecution_Status.SUCCESS: return styles.success(statusText);
|
|
149725
|
+
case WorkflowExecution_Status.FAILED: return styles.error(statusText);
|
|
149606
149726
|
default: return statusText;
|
|
149607
149727
|
}
|
|
149608
149728
|
}
|
|
@@ -149724,18 +149844,6 @@ async function getWorkflowExecution(options) {
|
|
|
149724
149844
|
wait: waitForCompletion
|
|
149725
149845
|
};
|
|
149726
149846
|
}
|
|
149727
|
-
function parseDuration$1(duration) {
|
|
149728
|
-
const match = duration.match(/^(\d+)(s|ms|m)$/);
|
|
149729
|
-
if (!match) throw new Error(`Invalid duration format: ${duration}. Use format like '5s', '500ms', or '1m'.`);
|
|
149730
|
-
const value$1 = parseInt(match[1], 10);
|
|
149731
|
-
const unit = match[2];
|
|
149732
|
-
switch (unit) {
|
|
149733
|
-
case "ms": return value$1;
|
|
149734
|
-
case "s": return value$1 * 1e3;
|
|
149735
|
-
case "m": return value$1 * 60 * 1e3;
|
|
149736
|
-
default: throw new Error(`Unknown duration unit: ${unit}`);
|
|
149737
|
-
}
|
|
149738
|
-
}
|
|
149739
149847
|
async function waitWithSpinner(waitFn, interval, json) {
|
|
149740
149848
|
const spinner = !json ? ora().start("Waiting...") : null;
|
|
149741
149849
|
const updateInterval = setInterval(() => {
|
|
@@ -149763,24 +149871,24 @@ function printExecutionWithLogs(execution) {
|
|
|
149763
149871
|
];
|
|
149764
149872
|
process.stdout.write(table(summaryData, { singleLine: true }));
|
|
149765
149873
|
if (execution.jobDetails && execution.jobDetails.length > 0) {
|
|
149766
|
-
|
|
149874
|
+
logger.log(styles.bold("\nJob Executions:"));
|
|
149767
149875
|
for (const job of execution.jobDetails) {
|
|
149768
|
-
|
|
149769
|
-
|
|
149770
|
-
|
|
149771
|
-
|
|
149876
|
+
logger.log(styles.info(`\n--- ${job.stackedJobName} ---`));
|
|
149877
|
+
logger.log(` Status: ${job.status}`);
|
|
149878
|
+
logger.log(` Started: ${job.startedAt}`);
|
|
149879
|
+
logger.log(` Finished: ${job.finishedAt}`);
|
|
149772
149880
|
if (job.logs) {
|
|
149773
|
-
|
|
149881
|
+
logger.log(styles.warning("\n Logs:"));
|
|
149774
149882
|
const logLines = job.logs.split("\n");
|
|
149775
|
-
for (const line of logLines)
|
|
149883
|
+
for (const line of logLines) logger.log(` ${line}`);
|
|
149776
149884
|
}
|
|
149777
149885
|
if (job.result) {
|
|
149778
|
-
|
|
149886
|
+
logger.log(styles.success("\n Result:"));
|
|
149779
149887
|
try {
|
|
149780
149888
|
const parsed = JSON.parse(job.result);
|
|
149781
|
-
|
|
149889
|
+
logger.log(` ${JSON.stringify(parsed, null, 2).split("\n").join("\n ")}`);
|
|
149782
149890
|
} catch {
|
|
149783
|
-
|
|
149891
|
+
logger.log(` ${job.result}`);
|
|
149784
149892
|
}
|
|
149785
149893
|
}
|
|
149786
149894
|
}
|
|
@@ -149794,21 +149902,12 @@ const executionsCommand = defineCommand({
|
|
|
149794
149902
|
args: {
|
|
149795
149903
|
...commonArgs,
|
|
149796
149904
|
...jsonArgs,
|
|
149905
|
+
...workspaceArgs,
|
|
149797
149906
|
executionId: {
|
|
149798
149907
|
type: "positional",
|
|
149799
149908
|
description: "Execution ID (if provided, shows details)",
|
|
149800
149909
|
required: false
|
|
149801
149910
|
},
|
|
149802
|
-
"workspace-id": {
|
|
149803
|
-
type: "string",
|
|
149804
|
-
description: "Workspace ID",
|
|
149805
|
-
alias: "w"
|
|
149806
|
-
},
|
|
149807
|
-
profile: {
|
|
149808
|
-
type: "string",
|
|
149809
|
-
description: "Workspace profile",
|
|
149810
|
-
alias: "p"
|
|
149811
|
-
},
|
|
149812
149911
|
"workflow-name": {
|
|
149813
149912
|
type: "string",
|
|
149814
149913
|
description: "Filter by workflow name (list mode only)",
|
|
@@ -149821,6 +149920,7 @@ const executionsCommand = defineCommand({
|
|
|
149821
149920
|
},
|
|
149822
149921
|
wait: {
|
|
149823
149922
|
type: "boolean",
|
|
149923
|
+
alias: "W",
|
|
149824
149924
|
description: "Wait for execution to complete (detail mode only)",
|
|
149825
149925
|
default: false
|
|
149826
149926
|
},
|
|
@@ -149837,7 +149937,7 @@ const executionsCommand = defineCommand({
|
|
|
149837
149937
|
},
|
|
149838
149938
|
run: withCommonArgs(async (args) => {
|
|
149839
149939
|
if (args.executionId) {
|
|
149840
|
-
const interval = parseDuration
|
|
149940
|
+
const interval = parseDuration(args.interval);
|
|
149841
149941
|
const { execution, wait } = await getWorkflowExecution({
|
|
149842
149942
|
executionId: args.executionId,
|
|
149843
149943
|
workspaceId: args["workspace-id"],
|
|
@@ -149845,7 +149945,7 @@ const executionsCommand = defineCommand({
|
|
|
149845
149945
|
interval,
|
|
149846
149946
|
logs: args.logs
|
|
149847
149947
|
});
|
|
149848
|
-
if (!args.json)
|
|
149948
|
+
if (!args.json) logger.info(`Execution ID: ${execution.id}`, { mode: "stream" });
|
|
149849
149949
|
const result = args.wait ? await waitWithSpinner(wait, interval, args.json) : execution;
|
|
149850
149950
|
if (args.logs && !args.json) printExecutionWithLogs(result);
|
|
149851
149951
|
else printData(result, args.json);
|
|
@@ -149880,12 +149980,12 @@ async function resumeWorkflow(options) {
|
|
|
149880
149980
|
});
|
|
149881
149981
|
return {
|
|
149882
149982
|
executionId,
|
|
149883
|
-
wait: () => waitForExecution({
|
|
149983
|
+
wait: (waitOptions) => waitForExecution({
|
|
149884
149984
|
client,
|
|
149885
149985
|
workspaceId,
|
|
149886
149986
|
executionId,
|
|
149887
149987
|
interval: options.interval ?? 3e3,
|
|
149888
|
-
|
|
149988
|
+
showProgress: waitOptions?.showProgress
|
|
149889
149989
|
})
|
|
149890
149990
|
};
|
|
149891
149991
|
} catch (error) {
|
|
@@ -149904,23 +150004,15 @@ const resumeCommand = defineCommand({
|
|
|
149904
150004
|
args: {
|
|
149905
150005
|
...commonArgs,
|
|
149906
150006
|
...jsonArgs,
|
|
150007
|
+
...workspaceArgs,
|
|
149907
150008
|
executionId: {
|
|
149908
150009
|
type: "positional",
|
|
149909
150010
|
description: "Failed execution ID",
|
|
149910
150011
|
required: true
|
|
149911
150012
|
},
|
|
149912
|
-
"workspace-id": {
|
|
149913
|
-
type: "string",
|
|
149914
|
-
description: "Workspace ID",
|
|
149915
|
-
alias: "w"
|
|
149916
|
-
},
|
|
149917
|
-
profile: {
|
|
149918
|
-
type: "string",
|
|
149919
|
-
description: "Workspace profile",
|
|
149920
|
-
alias: "p"
|
|
149921
|
-
},
|
|
149922
150013
|
wait: {
|
|
149923
150014
|
type: "boolean",
|
|
150015
|
+
alias: "W",
|
|
149924
150016
|
description: "Wait for execution to complete after resuming",
|
|
149925
150017
|
default: false
|
|
149926
150018
|
},
|
|
@@ -149938,17 +150030,14 @@ const resumeCommand = defineCommand({
|
|
|
149938
150030
|
profile: args.profile,
|
|
149939
150031
|
interval
|
|
149940
150032
|
});
|
|
149941
|
-
if (!args.json) {
|
|
149942
|
-
const { default: consola$2 } = await import("consola");
|
|
149943
|
-
consola$2.info(`Execution ID: ${executionId}`);
|
|
149944
|
-
}
|
|
150033
|
+
if (!args.json) logger.info(`Execution ID: ${executionId}`, { mode: "stream" });
|
|
149945
150034
|
if (args.wait) {
|
|
149946
|
-
const result = await wait();
|
|
150035
|
+
const result = await wait({ showProgress: !args.json });
|
|
149947
150036
|
printData(result, args.json);
|
|
149948
150037
|
} else printData({ executionId }, args.json);
|
|
149949
150038
|
})
|
|
149950
150039
|
});
|
|
149951
150040
|
|
|
149952
150041
|
//#endregion
|
|
149953
|
-
export { PATScope, apply, applyCommand, commonArgs, createCommand, createWorkspace, deleteCommand, deleteWorkspace, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, generate, generateCommand, generateUserTypes, getCommand, getCommand$1, getMachineUserToken, getOAuth2Client, getWorkflow, getWorkflowExecution, initOAuth2Client, initOperatorClient, jsonArgs, listCommand, listCommand$1, listCommand$2, listCommand$3, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, printData, readPackageJson, readPlatformConfig, remove, removeCommand, resumeCommand, resumeWorkflow, show, showCommand, startCommand, startWorkflow, tokenCommand, withCommonArgs, writePlatformConfig };
|
|
149954
|
-
//# sourceMappingURL=resume-
|
|
150042
|
+
export { PATScope, apply, applyCommand, commonArgs, createCommand, createWorkspace, deleteCommand, deleteWorkspace, deploymentArgs, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, generate, generateCommand, generateUserTypes, getCommand, getCommand$1, getMachineUserToken, getOAuth2Client, getWorkflow, getWorkflowExecution, initOAuth2Client, initOperatorClient, jsonArgs, listCommand, listCommand$1, listCommand$2, listCommand$3, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, logger, printData, readPackageJson, readPlatformConfig, remove, removeCommand, resumeCommand, resumeWorkflow, show, showCommand, startCommand, startWorkflow, tokenCommand, withCommonArgs, workspaceArgs, writePlatformConfig };
|
|
150043
|
+
//# sourceMappingURL=resume-DSfYKl2w.mjs.map
|